@nativescript/core 8.9.0-alpha.2 → 8.9.0-napi-es5.0
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/abortcontroller/abortsignal.js +23 -16
- package/abortcontroller/abortsignal.js.map +1 -1
- package/abortcontroller/index.js +20 -14
- package/abortcontroller/index.js.map +1 -1
- package/accessibility/accessibility-common.js +8 -8
- package/accessibility/accessibility-common.js.map +1 -1
- package/accessibility/accessibility-css-helper.js +27 -27
- package/accessibility/accessibility-css-helper.js.map +1 -1
- package/accessibility/accessibility-properties.js +23 -23
- package/accessibility/accessibility-properties.js.map +1 -1
- package/accessibility/accessibility-service-common.js +22 -12
- package/accessibility/accessibility-service-common.js.map +1 -1
- package/accessibility/accessibility-service.android.js +39 -27
- package/accessibility/accessibility-service.android.js.map +1 -1
- package/accessibility/accessibility-service.ios.js +17 -14
- package/accessibility/accessibility-service.ios.js.map +1 -1
- package/accessibility/font-scale-common.js +2 -2
- package/accessibility/font-scale-common.js.map +1 -1
- package/accessibility/font-scale.android.js +8 -7
- package/accessibility/font-scale.android.js.map +1 -1
- package/accessibility/font-scale.ios.js +10 -9
- package/accessibility/font-scale.ios.js.map +1 -1
- package/accessibility/index.android.js +83 -77
- package/accessibility/index.android.js.map +1 -1
- package/accessibility/index.ios.js +36 -34
- package/accessibility/index.ios.js.map +1 -1
- package/animation-frame/animation-native.ios.js +1 -1
- package/animation-frame/animation-native.ios.js.map +1 -1
- package/animation-frame/index.js +16 -16
- package/animation-frame/index.js.map +1 -1
- package/application/application-common.js +214 -196
- package/application/application-common.js.map +1 -1
- package/application/application-shims.js +39 -39
- package/application/application-shims.js.map +1 -1
- package/application/application.android.js +149 -110
- package/application/application.android.js.map +1 -1
- package/application/application.ios.js +197 -162
- package/application/application.ios.js.map +1 -1
- package/application-settings/index.android.js +11 -11
- package/application-settings/index.android.js.map +1 -1
- package/application-settings/index.ios.js +1 -1
- package/application-settings/index.ios.js.map +1 -1
- package/bundle-entry-points.js +1 -1
- package/bundle-entry-points.js.map +1 -1
- package/color/color-common.js +200 -157
- package/color/color-common.js.map +1 -1
- package/color/index.android.js +14 -4
- package/color/index.android.js.map +1 -1
- package/color/index.ios.js +24 -14
- package/color/index.ios.js.map +1 -1
- package/color/known-colors.js +144 -144
- package/color/known-colors.js.map +1 -1
- package/connectivity/index.android.js +23 -23
- package/connectivity/index.android.js.map +1 -1
- package/connectivity/index.ios.js +25 -25
- package/connectivity/index.ios.js.map +1 -1
- package/console/index.js +24 -20
- package/console/index.js.map +1 -1
- package/core-types/index.d.ts +2 -2
- package/core-types/index.js +41 -41
- package/core-types/index.js.map +1 -1
- package/css/CSS3Parser.js +106 -104
- package/css/CSS3Parser.js.map +1 -1
- package/css/CSSNativeScript.js +34 -29
- package/css/CSSNativeScript.js.map +1 -1
- package/css/css-tree-parser.js.map +1 -1
- package/css/parser.js +179 -158
- package/css/parser.js.map +1 -1
- package/css/system-classes.js +9 -9
- package/css/system-classes.js.map +1 -1
- package/css-mediaquery/index.js +29 -27
- package/css-mediaquery/index.js.map +1 -1
- package/data/observable/index.d.ts +1 -0
- package/data/observable/index.js +124 -114
- package/data/observable/index.js.map +1 -1
- package/data/observable-array/index.js +176 -119
- package/data/observable-array/index.js.map +1 -1
- package/data/virtual-array/index.js +74 -61
- package/data/virtual-array/index.js.map +1 -1
- package/debugger/InspectorBackendCommands.js +161 -137
- package/debugger/InspectorBackendCommands.js.map +1 -1
- package/debugger/devtools-elements.common.js +20 -20
- package/debugger/devtools-elements.common.js.map +1 -1
- package/debugger/devtools-elements.js +2 -2
- package/debugger/devtools-elements.js.map +1 -1
- package/debugger/dom-node.js +73 -61
- package/debugger/dom-node.js.map +1 -1
- package/debugger/index.js +19 -19
- package/debugger/index.js.map +1 -1
- package/debugger/webinspector-css.js +30 -25
- package/debugger/webinspector-css.js.map +1 -1
- package/debugger/webinspector-dom.js +43 -38
- package/debugger/webinspector-dom.js.map +1 -1
- package/debugger/webinspector-network.android.js +132 -103
- package/debugger/webinspector-network.android.js.map +1 -1
- package/debugger/webinspector-network.ios.js +128 -100
- package/debugger/webinspector-network.ios.js.map +1 -1
- package/file-system/file-system-access.android.js +421 -414
- package/file-system/file-system-access.android.js.map +1 -1
- package/file-system/file-system-access.ios.js +215 -205
- package/file-system/file-system-access.ios.js.map +1 -1
- package/file-system/index.js +372 -294
- package/file-system/index.js.map +1 -1
- package/fps-meter/fps-native.android.js +18 -15
- package/fps-meter/fps-native.android.js.map +1 -1
- package/fps-meter/fps-native.ios.js +11 -9
- package/fps-meter/fps-native.ios.js.map +1 -1
- package/fps-meter/index.js +11 -11
- package/fps-meter/index.js.map +1 -1
- package/globals/index.js +117 -91
- package/globals/index.js.map +1 -1
- package/http/http-request/http-request-common.js +5 -5
- package/http/http-request/http-request-common.js.map +1 -1
- package/http/http-request/index.android.js +54 -53
- package/http/http-request/index.android.js.map +1 -1
- package/http/http-request/index.ios.js +58 -56
- package/http/http-request/index.ios.js.map +1 -1
- package/http/index.js +19 -19
- package/http/index.js.map +1 -1
- package/image-asset/image-asset-common.js +37 -25
- package/image-asset/image-asset-common.js.map +1 -1
- package/image-asset/index.android.js +25 -17
- package/image-asset/index.android.js.map +1 -1
- package/image-asset/index.ios.js +35 -25
- package/image-asset/index.ios.js.map +1 -1
- package/image-source/image-source-common.js +2 -2
- package/image-source/image-source-common.js.map +1 -1
- package/image-source/index.android.d.ts +3 -2
- package/image-source/index.android.js +189 -156
- package/image-source/index.android.js.map +1 -1
- package/image-source/index.d.ts +5 -0
- package/image-source/index.ios.d.ts +3 -2
- package/image-source/index.ios.js +211 -178
- package/image-source/index.ios.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +8 -4
- package/index.js.map +1 -1
- package/matrix/index.js +27 -17
- package/matrix/index.js.map +1 -1
- package/media-query-list/index.js +87 -61
- package/media-query-list/index.js.map +1 -1
- package/module-name-resolver/index.js +24 -21
- package/module-name-resolver/index.js.map +1 -1
- package/module-name-resolver/non-bundle-workflow-compat.js +24 -24
- package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
- package/module-name-resolver/qualifier-matcher/index.js +46 -46
- package/module-name-resolver/qualifier-matcher/index.js.map +1 -1
- package/package.json +1 -1
- package/platform/common.js +5 -5
- package/platform/common.js.map +1 -1
- package/platform/device/index.android.js +107 -68
- package/platform/device/index.android.js.map +1 -1
- package/platform/device/index.ios.js +101 -62
- package/platform/device/index.ios.js.map +1 -1
- package/platform/screen/index.android.js +63 -32
- package/platform/screen/index.android.js.map +1 -1
- package/platform/screen/index.ios.js +60 -29
- package/platform/screen/index.ios.js.map +1 -1
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/android/winter_tc-release.aar +0 -0
- package/platforms/ios/{NSCWinterCG.xcframework → NSCWinterTC.xcframework}/Info.plist +22 -22
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework}/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64/NSCWinterTC.framework/NSCWinterTC} +0 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/NSCWinterTC} +0 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework}/Resources/Info.plist +10 -10
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A}/Headers/NSCCrypto.h +1 -1
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Headers/NSString+WinterTC.h} +3 -3
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/Modules/module.modulemap +6 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A/NSCWinterTC} +0 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/A}/Resources/Info.plist +10 -10
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/Current/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC} +0 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/Headers/NSCCrypto.h +1 -1
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h} +3 -3
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC} +0 -0
- package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/NSCWinterTC.framework}/_CodeSignature/CodeResources +13 -13
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework}/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/xros-arm64/NSCWinterTC.framework/NSCWinterTC} +0 -0
- package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM → NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM}/Contents/Info.plist +1 -1
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCCrypto.h +79 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSCWinterTC.h +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Headers/NSString+WinterTC.h +21 -0
- package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework}/Info.plist +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/Modules/module.modulemap +6 -0
- package/platforms/ios/{NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/NSCWinterCG → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework/NSCWinterTC} +0 -0
- package/platforms/ios/{NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework → NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/NSCWinterTC.framework}/_CodeSignature/CodeResources +13 -13
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Info.plist +20 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/DWARF/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterTC.yml +40 -0
- package/platforms/ios/NSCWinterTC.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterTC.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterTC.yml +40 -0
- package/platforms/ios/src/NativeScriptMainWindow.swift +24 -7
- package/platforms/ios/src/UIView+NativeScript.m +2 -4
- package/profiling/index.js +47 -40
- package/profiling/index.js.map +1 -1
- package/text/text-common.js +49 -36
- package/text/text-common.js.map +1 -1
- package/timer/index.android.js +30 -20
- package/timer/index.android.js.map +1 -1
- package/timer/index.ios.js +22 -12
- package/timer/index.ios.js.map +1 -1
- package/trace/index.js +36 -26
- package/trace/index.js.map +1 -1
- package/ui/action-bar/action-bar-common.js +252 -193
- package/ui/action-bar/action-bar-common.js.map +1 -1
- package/ui/action-bar/index.android.d.ts +1 -0
- package/ui/action-bar/index.android.js +212 -167
- package/ui/action-bar/index.android.js.map +1 -1
- package/ui/action-bar/index.d.ts +33 -0
- package/ui/action-bar/index.ios.d.ts +7 -2
- package/ui/action-bar/index.ios.js +337 -193
- package/ui/action-bar/index.ios.js.map +1 -1
- package/ui/activity-indicator/activity-indicator-common.js +11 -6
- package/ui/activity-indicator/activity-indicator-common.js.map +1 -1
- package/ui/activity-indicator/index.android.js +26 -20
- package/ui/activity-indicator/index.android.js.map +1 -1
- package/ui/activity-indicator/index.d.ts +4 -0
- package/ui/activity-indicator/index.ios.js +31 -23
- package/ui/activity-indicator/index.ios.js.map +1 -1
- package/ui/animation/animation-common.d.ts +1 -8
- package/ui/animation/animation-common.js +50 -51
- package/ui/animation/animation-common.js.map +1 -1
- package/ui/animation/animation-interfaces.d.ts +11 -0
- package/ui/animation/animation-interfaces.js +14 -1
- package/ui/animation/animation-interfaces.js.map +1 -1
- package/ui/animation/index.android.d.ts +2 -2
- package/ui/animation/index.android.js +96 -92
- package/ui/animation/index.android.js.map +1 -1
- package/ui/animation/index.d.ts +0 -13
- package/ui/animation/index.ios.d.ts +2 -2
- package/ui/animation/index.ios.js +195 -229
- package/ui/animation/index.ios.js.map +1 -1
- package/ui/animation/keyframe-animation.js +89 -67
- package/ui/animation/keyframe-animation.js.map +1 -1
- package/ui/builder/binding-builder.js +31 -31
- package/ui/builder/binding-builder.js.map +1 -1
- package/ui/builder/component-builder/index.js +37 -37
- package/ui/builder/component-builder/index.js.map +1 -1
- package/ui/builder/index.js +59 -54
- package/ui/builder/index.js.map +1 -1
- package/ui/builder/xml2ui.js +158 -128
- package/ui/builder/xml2ui.js.map +1 -1
- package/ui/button/button-common.js +25 -18
- package/ui/button/button-common.js.map +1 -1
- package/ui/button/index.android.d.ts +1 -1
- package/ui/button/index.android.js +93 -80
- package/ui/button/index.android.js.map +1 -1
- package/ui/button/index.d.ts +6 -0
- package/ui/button/index.ios.js +118 -101
- package/ui/button/index.ios.js.map +1 -1
- package/ui/content-view/index.d.ts +9 -0
- package/ui/content-view/index.js +78 -60
- package/ui/content-view/index.js.map +1 -1
- package/ui/core/bindable/bindable-expressions.js +101 -93
- package/ui/core/bindable/bindable-expressions.js.map +1 -1
- package/ui/core/bindable/bindable-resources.js +1 -1
- package/ui/core/bindable/index.js +141 -136
- package/ui/core/bindable/index.js.map +1 -1
- package/ui/core/control-state-change/index.android.d.ts +2 -2
- package/ui/core/control-state-change/index.android.js +7 -5
- package/ui/core/control-state-change/index.android.js.map +1 -1
- package/ui/core/control-state-change/index.d.ts +4 -2
- package/ui/core/control-state-change/index.ios.d.ts +3 -7
- package/ui/core/control-state-change/index.ios.js +29 -42
- package/ui/core/control-state-change/index.ios.js.map +1 -1
- package/ui/core/properties/index.js +489 -440
- package/ui/core/properties/index.js.map +1 -1
- package/ui/core/view/index.android.d.ts +2 -7
- package/ui/core/view/index.android.js +387 -352
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/index.d.ts +238 -14
- package/ui/core/view/index.ios.d.ts +3 -13
- package/ui/core/view/index.ios.js +411 -367
- package/ui/core/view/index.ios.js.map +1 -1
- package/ui/core/view/view-common.d.ts +11 -15
- package/ui/core/view/view-common.js +951 -654
- package/ui/core/view/view-common.js.map +1 -1
- package/ui/core/view/view-helper/index.android.js +19 -15
- package/ui/core/view/view-helper/index.android.js.map +1 -1
- package/ui/core/view/view-helper/index.d.ts +3 -3
- package/ui/core/view/view-helper/index.ios.d.ts +3 -18
- package/ui/core/view/view-helper/index.ios.js +85 -81
- package/ui/core/view/view-helper/index.ios.js.map +1 -1
- package/ui/core/view/view-helper/view-helper-common.js +49 -44
- package/ui/core/view/view-helper/view-helper-common.js.map +1 -1
- package/ui/core/view-base/index.d.ts +107 -4
- package/ui/core/view-base/index.js +452 -349
- package/ui/core/view-base/index.js.map +1 -1
- package/ui/core/weak-event-listener/index.js +26 -25
- package/ui/core/weak-event-listener/index.js.map +1 -1
- package/ui/date-picker/date-picker-common.d.ts +1 -0
- package/ui/date-picker/date-picker-common.js +35 -29
- package/ui/date-picker/date-picker-common.js.map +1 -1
- package/ui/date-picker/index.android.js +51 -43
- package/ui/date-picker/index.android.js.map +1 -1
- package/ui/date-picker/index.d.ts +30 -0
- package/ui/date-picker/index.ios.js +61 -51
- package/ui/date-picker/index.ios.js.map +1 -1
- package/ui/dialogs/dialogs-common.js +18 -18
- package/ui/dialogs/dialogs-common.js.map +1 -1
- package/ui/dialogs/index.android.js +98 -86
- package/ui/dialogs/index.android.js.map +1 -1
- package/ui/dialogs/index.ios.js +80 -67
- package/ui/dialogs/index.ios.js.map +1 -1
- package/ui/editable-text-base/editable-text-base-common.d.ts +1 -2
- package/ui/editable-text-base/editable-text-base-common.js +44 -32
- package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
- package/ui/editable-text-base/index.android.js +112 -106
- package/ui/editable-text-base/index.android.js.map +1 -1
- package/ui/editable-text-base/index.d.ts +42 -0
- package/ui/editable-text-base/index.ios.js +53 -47
- package/ui/editable-text-base/index.ios.js.map +1 -1
- package/ui/embedding/index.android.js +3 -2
- package/ui/embedding/index.android.js.map +1 -1
- package/ui/frame/activity.android.js +44 -44
- package/ui/frame/activity.android.js.map +1 -1
- package/ui/frame/callbacks/activity-callbacks.js +123 -118
- package/ui/frame/callbacks/activity-callbacks.js.map +1 -1
- package/ui/frame/callbacks/fragment-callbacks.js +141 -139
- package/ui/frame/callbacks/fragment-callbacks.js.map +1 -1
- package/ui/frame/fragment.android.js +21 -21
- package/ui/frame/fragment.android.js.map +1 -1
- package/ui/frame/fragment.ios.js +1 -1
- package/ui/frame/fragment.transitions.android.js +114 -105
- package/ui/frame/fragment.transitions.android.js.map +1 -1
- package/ui/frame/frame-common.d.ts +4 -3
- package/ui/frame/frame-common.js +288 -252
- package/ui/frame/frame-common.js.map +1 -1
- package/ui/frame/frame-helpers.js +1 -1
- package/ui/frame/frame-helpers.js.map +1 -1
- package/ui/frame/frame-stack.js +4 -4
- package/ui/frame/frame-stack.js.map +1 -1
- package/ui/frame/index.android.js +291 -239
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.d.ts +40 -3
- package/ui/frame/index.ios.js +167 -133
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/gestures/gestures-common.d.ts +22 -0
- package/ui/gestures/gestures-common.js +51 -15
- package/ui/gestures/gestures-common.js.map +1 -1
- package/ui/gestures/index.android.d.ts +1 -1
- package/ui/gestures/index.android.js +124 -109
- package/ui/gestures/index.android.js.map +1 -1
- package/ui/gestures/index.ios.d.ts +1 -1
- package/ui/gestures/index.ios.js +121 -108
- package/ui/gestures/index.ios.js.map +1 -1
- package/ui/gestures/touch-manager.d.ts +1 -1
- package/ui/gestures/touch-manager.js +48 -43
- package/ui/gestures/touch-manager.js.map +1 -1
- package/ui/html-view/html-view-common.d.ts +1 -0
- package/ui/html-view/html-view-common.js +14 -9
- package/ui/html-view/html-view-common.js.map +1 -1
- package/ui/html-view/index.android.js +43 -37
- package/ui/html-view/index.android.js.map +1 -1
- package/ui/html-view/index.d.ts +16 -2
- package/ui/html-view/index.ios.js +73 -62
- package/ui/html-view/index.ios.js.map +1 -1
- package/ui/image/image-common.d.ts +2 -0
- package/ui/image/image-common.js +59 -47
- package/ui/image/image-common.js.map +1 -1
- package/ui/image/index.android.js +59 -54
- package/ui/image/index.android.js.map +1 -1
- package/ui/image/index.d.ts +43 -1
- package/ui/image/index.ios.js +72 -65
- package/ui/image/index.ios.js.map +1 -1
- package/ui/image/symbol-effects-common.js +6 -2
- package/ui/image/symbol-effects-common.js.map +1 -1
- package/ui/image/symbol-effects.android.js +10 -4
- package/ui/image/symbol-effects.android.js.map +1 -1
- package/ui/image/symbol-effects.ios.js +11 -7
- package/ui/image/symbol-effects.ios.js.map +1 -1
- package/ui/image-cache/image-cache-common.js +61 -57
- package/ui/image-cache/image-cache-common.js.map +1 -1
- package/ui/image-cache/index.android.js +27 -23
- package/ui/image-cache/index.android.js.map +1 -1
- package/ui/image-cache/index.ios.js +29 -24
- package/ui/image-cache/index.ios.js.map +1 -1
- package/ui/index.d.ts +3 -1
- package/ui/index.js +1 -1
- package/ui/index.js.map +1 -1
- package/ui/label/index.android.js +38 -29
- package/ui/label/index.android.js.map +1 -1
- package/ui/label/index.d.ts +4 -0
- package/ui/label/index.ios.js +102 -89
- package/ui/label/index.ios.js.map +1 -1
- package/ui/layouts/absolute-layout/absolute-layout-common.js +30 -25
- package/ui/layouts/absolute-layout/absolute-layout-common.js.map +1 -1
- package/ui/layouts/absolute-layout/index.android.js +12 -6
- package/ui/layouts/absolute-layout/index.android.js.map +1 -1
- package/ui/layouts/absolute-layout/index.d.ts +2 -0
- package/ui/layouts/absolute-layout/index.ios.js +40 -32
- package/ui/layouts/absolute-layout/index.ios.js.map +1 -1
- package/ui/layouts/dock-layout/dock-layout-common.js +21 -16
- package/ui/layouts/dock-layout/dock-layout-common.js.map +1 -1
- package/ui/layouts/dock-layout/index.android.js +17 -11
- package/ui/layouts/dock-layout/index.android.js.map +1 -1
- package/ui/layouts/dock-layout/index.d.ts +5 -1
- package/ui/layouts/dock-layout/index.ios.js +53 -45
- package/ui/layouts/dock-layout/index.ios.js.map +1 -1
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js +115 -90
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +1 -1
- package/ui/layouts/flexbox-layout/index.android.js +97 -92
- package/ui/layouts/flexbox-layout/index.android.js.map +1 -1
- package/ui/layouts/flexbox-layout/index.d.ts +32 -0
- package/ui/layouts/flexbox-layout/index.ios.js +427 -366
- package/ui/layouts/flexbox-layout/index.ios.js.map +1 -1
- package/ui/layouts/grid-layout/grid-layout-common.js +211 -159
- package/ui/layouts/grid-layout/grid-layout-common.js.map +1 -1
- package/ui/layouts/grid-layout/index.android.js +55 -49
- package/ui/layouts/grid-layout/index.android.js.map +1 -1
- package/ui/layouts/grid-layout/index.d.ts +19 -0
- package/ui/layouts/grid-layout/index.ios.js +348 -340
- package/ui/layouts/grid-layout/index.ios.js.map +1 -1
- package/ui/layouts/layout-base-common.d.ts +0 -1
- package/ui/layouts/layout-base-common.js +106 -85
- package/ui/layouts/layout-base-common.js.map +1 -1
- package/ui/layouts/layout-base.android.js +31 -25
- package/ui/layouts/layout-base.android.js.map +1 -1
- package/ui/layouts/layout-base.d.ts +14 -0
- package/ui/layouts/layout-base.ios.js +27 -21
- package/ui/layouts/layout-base.ios.js.map +1 -1
- package/ui/layouts/root-layout/index.android.js +46 -47
- package/ui/layouts/root-layout/index.android.js.map +1 -1
- package/ui/layouts/root-layout/index.d.ts +3 -0
- package/ui/layouts/root-layout/index.ios.js +53 -54
- package/ui/layouts/root-layout/index.ios.js.map +1 -1
- package/ui/layouts/root-layout/root-layout-common.js +190 -186
- package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
- package/ui/layouts/stack-layout/index.android.js +12 -6
- package/ui/layouts/stack-layout/index.android.js.map +1 -1
- package/ui/layouts/stack-layout/index.d.ts +3 -0
- package/ui/layouts/stack-layout/index.ios.js +69 -62
- package/ui/layouts/stack-layout/index.ios.js.map +1 -1
- package/ui/layouts/stack-layout/stack-layout-common.js +12 -7
- package/ui/layouts/stack-layout/stack-layout-common.js.map +1 -1
- package/ui/layouts/wrap-layout/index.android.js +16 -10
- package/ui/layouts/wrap-layout/index.android.js.map +1 -1
- package/ui/layouts/wrap-layout/index.d.ts +8 -0
- package/ui/layouts/wrap-layout/index.ios.js +76 -70
- package/ui/layouts/wrap-layout/index.ios.js.map +1 -1
- package/ui/layouts/wrap-layout/wrap-layout-common.js +18 -13
- package/ui/layouts/wrap-layout/wrap-layout-common.js.map +1 -1
- package/ui/list-picker/index.android.js +48 -42
- package/ui/list-picker/index.android.js.map +1 -1
- package/ui/list-picker/index.d.ts +12 -1
- package/ui/list-picker/index.ios.js +36 -26
- package/ui/list-picker/index.ios.js.map +1 -1
- package/ui/list-picker/list-picker-common.d.ts +1 -0
- package/ui/list-picker/list-picker-common.js +32 -26
- package/ui/list-picker/list-picker-common.js.map +1 -1
- package/ui/list-view/index.android.js +110 -98
- package/ui/list-view/index.android.js.map +1 -1
- package/ui/list-view/index.d.ts +24 -0
- package/ui/list-view/index.ios.js +137 -121
- package/ui/list-view/index.ios.js.map +1 -1
- package/ui/list-view/list-view-common.js +116 -100
- package/ui/list-view/list-view-common.js.map +1 -1
- package/ui/page/index.android.js +65 -57
- package/ui/page/index.android.js.map +1 -1
- package/ui/page/index.d.ts +31 -2
- package/ui/page/index.ios.js +107 -98
- package/ui/page/index.ios.js.map +1 -1
- package/ui/page/page-common.js +145 -113
- package/ui/page/page-common.js.map +1 -1
- package/ui/placeholder/index.android.d.ts +1 -1
- package/ui/placeholder/index.android.js +16 -10
- package/ui/placeholder/index.android.js.map +1 -1
- package/ui/placeholder/index.d.ts +4 -0
- package/ui/placeholder/index.js +12 -6
- package/ui/placeholder/index.js.map +1 -1
- package/ui/progress/index.android.js +34 -28
- package/ui/progress/index.android.js.map +1 -1
- package/ui/progress/index.d.ts +13 -0
- package/ui/progress/index.ios.js +39 -29
- package/ui/progress/index.ios.js.map +1 -1
- package/ui/progress/progress-common.js +16 -11
- package/ui/progress/progress-common.js.map +1 -1
- package/ui/proxy-view-container/index.d.ts +2 -0
- package/ui/proxy-view-container/index.js +113 -90
- package/ui/proxy-view-container/index.js.map +1 -1
- package/ui/repeater/index.d.ts +2 -0
- package/ui/repeater/index.js +114 -100
- package/ui/repeater/index.js.map +1 -1
- package/ui/scroll-view/index.android.d.ts +1 -1
- package/ui/scroll-view/index.android.js +95 -75
- package/ui/scroll-view/index.android.js.map +1 -1
- package/ui/scroll-view/index.d.ts +10 -0
- package/ui/scroll-view/index.ios.js +92 -72
- package/ui/scroll-view/index.ios.js.map +1 -1
- package/ui/scroll-view/scroll-view-common.js +65 -45
- package/ui/scroll-view/scroll-view-common.js.map +1 -1
- package/ui/search-bar/index.android.js +94 -88
- package/ui/search-bar/index.android.js.map +1 -1
- package/ui/search-bar/index.d.ts +14 -0
- package/ui/search-bar/index.ios.js +88 -74
- package/ui/search-bar/index.ios.js.map +1 -1
- package/ui/search-bar/search-bar-common.js +18 -13
- package/ui/search-bar/search-bar-common.js.map +1 -1
- package/ui/segmented-bar/index.android.js +112 -98
- package/ui/segmented-bar/index.android.js.map +1 -1
- package/ui/segmented-bar/index.d.ts +21 -5
- package/ui/segmented-bar/index.ios.js +80 -63
- package/ui/segmented-bar/index.ios.js.map +1 -1
- package/ui/segmented-bar/segmented-bar-common.js +81 -61
- package/ui/segmented-bar/segmented-bar-common.js.map +1 -1
- package/ui/slider/index.android.js +49 -43
- package/ui/slider/index.android.js.map +1 -1
- package/ui/slider/index.d.ts +27 -0
- package/ui/slider/index.ios.js +59 -49
- package/ui/slider/index.ios.js.map +1 -1
- package/ui/slider/slider-common.d.ts +1 -0
- package/ui/slider/slider-common.js +35 -27
- package/ui/slider/slider-common.js.map +1 -1
- package/ui/styling/background-common.js +100 -98
- package/ui/styling/background-common.js.map +1 -1
- package/ui/styling/background.android.js +38 -35
- package/ui/styling/background.android.js.map +1 -1
- package/ui/styling/background.d.ts +2 -0
- package/ui/styling/background.ios.d.ts +1 -15
- package/ui/styling/background.ios.js +294 -290
- package/ui/styling/background.ios.js.map +1 -1
- package/ui/styling/box-shadow.js +6 -2
- package/ui/styling/box-shadow.js.map +1 -1
- package/ui/styling/converters.js +7 -7
- package/ui/styling/converters.js.map +1 -1
- package/ui/styling/css-animation-parser.js +69 -56
- package/ui/styling/css-animation-parser.js.map +1 -1
- package/ui/styling/css-selector.js +522 -425
- package/ui/styling/css-selector.js.map +1 -1
- package/ui/styling/css-shadow.js +2 -2
- package/ui/styling/css-shadow.js.map +1 -1
- package/ui/styling/css-stroke.js +3 -3
- package/ui/styling/css-stroke.js.map +1 -1
- package/ui/styling/css-utils.js +22 -22
- package/ui/styling/css-utils.js.map +1 -1
- package/ui/styling/font-common.js +59 -44
- package/ui/styling/font-common.js.map +1 -1
- package/ui/styling/font.android.js +42 -34
- package/ui/styling/font.android.js.map +1 -1
- package/ui/styling/font.ios.js +54 -49
- package/ui/styling/font.ios.js.map +1 -1
- package/ui/styling/linear-gradient.js +17 -13
- package/ui/styling/linear-gradient.js.map +1 -1
- package/ui/styling/style/index.d.ts +3 -1
- package/ui/styling/style/index.js +46 -35
- package/ui/styling/style/index.js.map +1 -1
- package/ui/styling/style-properties.d.ts +1 -0
- package/ui/styling/style-properties.js +306 -291
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/styling/style-scope.js +416 -377
- package/ui/styling/style-scope.js.map +1 -1
- package/ui/switch/index.android.js +47 -41
- package/ui/switch/index.android.js.map +1 -1
- package/ui/switch/index.d.ts +11 -0
- package/ui/switch/index.ios.js +66 -57
- package/ui/switch/index.ios.js.map +1 -1
- package/ui/switch/switch-common.js +20 -15
- package/ui/switch/switch-common.js.map +1 -1
- package/ui/tab-view/index.android.js +206 -187
- package/ui/tab-view/index.android.js.map +1 -1
- package/ui/tab-view/index.d.ts +43 -5
- package/ui/tab-view/index.ios.js +177 -161
- package/ui/tab-view/index.ios.js.map +1 -1
- package/ui/tab-view/tab-view-common.js +197 -143
- package/ui/tab-view/tab-view-common.js.map +1 -1
- package/ui/text-base/formatted-string.d.ts +24 -0
- package/ui/text-base/formatted-string.js +158 -105
- package/ui/text-base/formatted-string.js.map +1 -1
- package/ui/text-base/index.android.js +138 -141
- package/ui/text-base/index.android.js.map +1 -1
- package/ui/text-base/index.d.ts +47 -0
- package/ui/text-base/index.ios.js +120 -112
- package/ui/text-base/index.ios.js.map +1 -1
- package/ui/text-base/span.d.ts +30 -0
- package/ui/text-base/span.js +158 -102
- package/ui/text-base/span.js.map +1 -1
- package/ui/text-base/text-base-common.d.ts +2 -0
- package/ui/text-base/text-base-common.js +268 -175
- package/ui/text-base/text-base-common.js.map +1 -1
- package/ui/text-field/index.android.js +24 -18
- package/ui/text-field/index.android.js.map +1 -1
- package/ui/text-field/index.d.ts +13 -0
- package/ui/text-field/index.ios.js +80 -70
- package/ui/text-field/index.ios.js.map +1 -1
- package/ui/text-field/text-field-common.js +13 -8
- package/ui/text-field/text-field-common.js.map +1 -1
- package/ui/text-view/index.android.d.ts +0 -1
- package/ui/text-view/index.android.js +19 -14
- package/ui/text-view/index.android.js.map +1 -1
- package/ui/text-view/index.d.ts +11 -11
- package/ui/text-view/index.ios.d.ts +0 -3
- package/ui/text-view/index.ios.js +129 -177
- package/ui/text-view/index.ios.js.map +1 -1
- package/ui/text-view/text-view-common.d.ts +0 -26
- package/ui/text-view/text-view-common.js +9 -37
- package/ui/text-view/text-view-common.js.map +1 -1
- package/ui/time-picker/index.android.js +24 -18
- package/ui/time-picker/index.android.js.map +1 -1
- package/ui/time-picker/index.d.ts +27 -0
- package/ui/time-picker/index.ios.js +69 -61
- package/ui/time-picker/index.ios.js.map +1 -1
- package/ui/time-picker/time-picker-common.d.ts +1 -0
- package/ui/time-picker/time-picker-common.js +42 -36
- package/ui/time-picker/time-picker-common.js.map +1 -1
- package/ui/transition/fade-transition.android.js +14 -8
- package/ui/transition/fade-transition.android.js.map +1 -1
- package/ui/transition/fade-transition.ios.js +10 -4
- package/ui/transition/fade-transition.ios.js.map +1 -1
- package/ui/transition/flip-transition.android.js +18 -14
- package/ui/transition/flip-transition.android.js.map +1 -1
- package/ui/transition/index.android.js +27 -24
- package/ui/transition/index.android.js.map +1 -1
- package/ui/transition/index.ios.js +22 -18
- package/ui/transition/index.ios.js.map +1 -1
- package/ui/transition/modal-transition.android.js +10 -4
- package/ui/transition/modal-transition.android.js.map +1 -1
- package/ui/transition/modal-transition.ios.js +25 -18
- package/ui/transition/modal-transition.ios.js.map +1 -1
- package/ui/transition/page-transition.android.js +71 -57
- package/ui/transition/page-transition.android.js.map +1 -1
- package/ui/transition/page-transition.ios.js +27 -19
- package/ui/transition/page-transition.ios.js.map +1 -1
- package/ui/transition/shared-transition-helper.android.js +12 -8
- package/ui/transition/shared-transition-helper.android.js.map +1 -1
- package/ui/transition/shared-transition-helper.ios.js +539 -442
- package/ui/transition/shared-transition-helper.ios.js.map +1 -1
- package/ui/transition/shared-transition.js +76 -77
- package/ui/transition/shared-transition.js.map +1 -1
- package/ui/transition/slide-transition.android.js +22 -17
- package/ui/transition/slide-transition.android.js.map +1 -1
- package/ui/transition/slide-transition.ios.js +11 -7
- package/ui/transition/slide-transition.ios.js.map +1 -1
- package/ui/utils.d.ts +1 -1
- package/ui/utils.ios.d.ts +1 -2
- package/ui/utils.ios.js +13 -13
- package/ui/utils.ios.js.map +1 -1
- package/ui/web-view/index.android.js +64 -50
- package/ui/web-view/index.android.js.map +1 -1
- package/ui/web-view/index.d.ts +12 -0
- package/ui/web-view/index.ios.js +73 -50
- package/ui/web-view/index.ios.js.map +1 -1
- package/ui/web-view/web-view-common.d.ts +1 -1
- package/ui/web-view/web-view-common.js +43 -29
- package/ui/web-view/web-view-common.js.map +1 -1
- package/utils/android/index.js +27 -26
- package/utils/android/index.js.map +1 -1
- package/utils/common.js +65 -49
- package/utils/common.js.map +1 -1
- package/utils/constants.android.js +1 -1
- package/utils/constants.android.js.map +1 -1
- package/utils/constants.ios.js +1 -1
- package/utils/constants.ios.js.map +1 -1
- package/utils/debug.js +54 -32
- package/utils/debug.js.map +1 -1
- package/utils/index.android.d.ts +1 -0
- package/utils/index.android.js +48 -36
- package/utils/index.android.js.map +1 -1
- package/utils/index.d.ts +6 -0
- package/utils/index.ios.d.ts +1 -0
- package/utils/index.ios.js +27 -7
- package/utils/index.ios.js.map +1 -1
- package/utils/ios/index.js +42 -45
- package/utils/ios/index.js.map +1 -1
- package/utils/layout-helper/index.android.js +4 -4
- package/utils/layout-helper/index.android.js.map +1 -1
- package/utils/layout-helper/index.ios.js +2 -2
- package/utils/layout-helper/index.ios.js.map +1 -1
- package/utils/layout-helper/layout-helper-common.js +13 -13
- package/utils/layout-helper/layout-helper-common.js.map +1 -1
- package/utils/lazy.js +2 -2
- package/utils/lazy.js.map +1 -1
- package/utils/macrotask-scheduler.js +6 -6
- package/utils/macrotask-scheduler.js.map +1 -1
- package/utils/mainthread-helper.android.js +4 -4
- package/utils/mainthread-helper.android.js.map +1 -1
- package/utils/mainthread-helper.ios.js +1 -1
- package/utils/mainthread-helper.ios.js.map +1 -1
- package/utils/module-merge.js +1 -1
- package/utils/module-merge.js.map +1 -1
- package/utils/native-helper.android.js +19 -19
- package/utils/native-helper.android.js.map +1 -1
- package/utils/native-helper.ios.js +24 -16
- package/utils/native-helper.ios.js.map +1 -1
- package/utils/number-utils.js +3 -3
- package/utils/number-utils.js.map +1 -1
- package/utils/platform-check.js +6 -6
- package/utils/platform-check.js.map +1 -1
- package/utils/types.js +43 -33
- package/utils/types.js.map +1 -1
- package/wgc/atob.js +1 -1
- package/wgc/btoa.js +1 -1
- package/wgc/crypto/SubtleCrypto.js +168 -133
- package/wgc/crypto/SubtleCrypto.js.map +1 -1
- package/wgc/crypto/index.d.ts +1 -1
- package/wgc/crypto/index.js +21 -12
- package/wgc/crypto/index.js.map +1 -1
- package/xhr/index.js +308 -226
- package/xhr/index.js.map +1 -1
- package/xml/index.js +119 -79
- package/xml/index.js.map +1 -1
- package/platforms/android/winter_cg-release.aar +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterCG.framework/Versions/A/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/ios-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/NSCWinterCG.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSCWinterCG.h +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Headers/NSString+WinterCG.h +0 -21
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/NSCWinterCG.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Info.plist +0 -20
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/DWARF/NSCWinterCG +0 -0
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/aarch64/NSCWinterCG.yml +0 -40
- package/platforms/ios/NSCWinterCG.xcframework/xros-arm64_x86_64-simulator/dSYMs/NSCWinterCG.framework.dSYM/Contents/Resources/Relocations/x86_64/NSCWinterCG.yml +0 -40
|
@@ -19,25 +19,25 @@ export * from './view-common';
|
|
|
19
19
|
export * from './view-helper';
|
|
20
20
|
// This one can eventually be cleaned up but causes issues with a lot of ui-suite plugins in particular if not exported here
|
|
21
21
|
export * from '../properties';
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
22
|
+
var DOMID = '_domId';
|
|
23
|
+
var androidBackPressedEvent = 'androidBackPressed';
|
|
24
|
+
var shortAnimTime = 17694720; // android.R.integer.config_shortAnimTime
|
|
25
|
+
var statePressed = 16842919; // android.R.attr.state_pressed
|
|
26
|
+
var stateEnabled = 16842910; // android.R.attr.state_enabled
|
|
27
|
+
var styleAnimationDialog = 16973826; // android.R.style.Animation_Dialog
|
|
28
|
+
var VERTICAL_GRAVITY_MASK = 112; // android.view.Gravity.VERTICAL_GRAVITY_MASK
|
|
29
|
+
var HORIZONTAL_GRAVITY_MASK = 7; // android.view.Gravity.HORIZONTAL_GRAVITY_MASK
|
|
30
|
+
var GRAVITY_LEFT = 3; // android.view.Gravity.LEFT
|
|
31
|
+
var GRAVITY_RIGHT = 5; // android.view.Gravity.RIGHT
|
|
32
|
+
var GRAVITY_TOP = 48; // android.view.Gravity.TOP
|
|
33
|
+
var GRAVITY_BOTTOM = 80; // android.view.Gravity.BOTTOM
|
|
34
|
+
var GRAVITY_CENTER_HORIZONTAL = 1; // android.view.Gravity.CENTER_HORIZONTAL
|
|
35
|
+
var GRAVITY_FILL_HORIZONTAL = 7; // android.view.Gravity.FILL_HORIZONTAL
|
|
36
|
+
var GRAVITY_CENTER_VERTICAL = 16; // android.view.Gravity.CENTER_VERTICAL
|
|
37
|
+
var GRAVITY_FILL_VERTICAL = 112; // android.view.Gravity.FILL_VERTICAL
|
|
38
|
+
var modalMap = new Map();
|
|
39
|
+
var TouchListener;
|
|
40
|
+
var DialogFragment;
|
|
41
41
|
function initializeTouchListener() {
|
|
42
42
|
if (TouchListener) {
|
|
43
43
|
return;
|
|
@@ -239,51 +239,55 @@ function removeModal(domId) {
|
|
|
239
239
|
function getModalOptions(domId) {
|
|
240
240
|
return modalMap.get(domId);
|
|
241
241
|
}
|
|
242
|
-
|
|
242
|
+
var View = /** @class */ (function (_super) {
|
|
243
|
+
__extends(View, _super);
|
|
244
|
+
function View() {
|
|
245
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
246
|
+
}
|
|
243
247
|
// TODO: Implement unobserve that detach the touchListener.
|
|
244
|
-
_observe(type, callback, thisArg) {
|
|
245
|
-
|
|
248
|
+
View.prototype._observe = function (type, callback, thisArg) {
|
|
249
|
+
_super.prototype._observe.call(this, type, callback, thisArg);
|
|
246
250
|
if (this.isLoaded && !this.touchListenerIsSet) {
|
|
247
251
|
this.setOnTouchListener();
|
|
248
252
|
}
|
|
249
|
-
}
|
|
250
|
-
addEventListener(eventNames, callback, thisArg) {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
+
};
|
|
254
|
+
View.prototype.addEventListener = function (eventNames, callback, thisArg) {
|
|
255
|
+
_super.prototype.addEventListener.call(this, eventNames, callback, thisArg);
|
|
256
|
+
var isLayoutEvent = typeof eventNames === 'string' ? eventNames.indexOf(ViewCommon.layoutChangedEvent) !== -1 : false;
|
|
253
257
|
if (this.isLoaded && !this.layoutChangeListenerIsSet && isLayoutEvent) {
|
|
254
258
|
this.setOnLayoutChangeListener();
|
|
255
259
|
}
|
|
256
|
-
}
|
|
257
|
-
removeEventListener(eventNames, callback, thisArg) {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
+
};
|
|
261
|
+
View.prototype.removeEventListener = function (eventNames, callback, thisArg) {
|
|
262
|
+
_super.prototype.removeEventListener.call(this, eventNames, callback, thisArg);
|
|
263
|
+
var isLayoutEvent = typeof eventNames === 'string' ? eventNames.indexOf(ViewCommon.layoutChangedEvent) !== -1 : false;
|
|
260
264
|
// Remove native listener only if there are no more user listeners for LayoutChanged event
|
|
261
265
|
if (this.isLoaded && this.layoutChangeListenerIsSet && isLayoutEvent && !this.needsOnLayoutChangeListener()) {
|
|
262
266
|
this.nativeViewProtected.removeOnLayoutChangeListener(this.layoutChangeListener);
|
|
263
267
|
this.layoutChangeListenerIsSet = false;
|
|
264
268
|
}
|
|
265
|
-
}
|
|
266
|
-
_getChildFragmentManager() {
|
|
269
|
+
};
|
|
270
|
+
View.prototype._getChildFragmentManager = function () {
|
|
267
271
|
return null;
|
|
268
|
-
}
|
|
269
|
-
_getRootFragmentManager() {
|
|
272
|
+
};
|
|
273
|
+
View.prototype._getRootFragmentManager = function () {
|
|
270
274
|
if (!this._rootManager && this._context) {
|
|
271
275
|
this._rootManager = this._context.getSupportFragmentManager();
|
|
272
276
|
}
|
|
273
277
|
return this._rootManager;
|
|
274
|
-
}
|
|
275
|
-
_getFragmentManager() {
|
|
276
|
-
|
|
278
|
+
};
|
|
279
|
+
View.prototype._getFragmentManager = function () {
|
|
280
|
+
var manager = this._manager;
|
|
277
281
|
if (!manager) {
|
|
278
|
-
|
|
279
|
-
|
|
282
|
+
var view = this;
|
|
283
|
+
var frameOrTabViewItemFound = false;
|
|
280
284
|
while (view) {
|
|
281
285
|
// when interacting with nested fragments instead of using getSupportFragmentManager
|
|
282
286
|
// we must always use getChildFragmentManager instead;
|
|
283
287
|
// we have three sources of fragments -- Frame fragments, TabViewItem fragments, and
|
|
284
288
|
// modal dialog fragments
|
|
285
289
|
// modal -> frame / tabview (frame / tabview use modal CHILD fm)
|
|
286
|
-
|
|
290
|
+
var dialogFragment = view._dialogFragment;
|
|
287
291
|
if (dialogFragment) {
|
|
288
292
|
manager = dialogFragment.getChildFragmentManager();
|
|
289
293
|
break;
|
|
@@ -309,51 +313,51 @@ export class View extends ViewCommon {
|
|
|
309
313
|
this._manager = manager;
|
|
310
314
|
}
|
|
311
315
|
return manager;
|
|
312
|
-
}
|
|
313
|
-
onLoaded() {
|
|
316
|
+
};
|
|
317
|
+
View.prototype.onLoaded = function () {
|
|
314
318
|
this._manager = null;
|
|
315
319
|
this._rootManager = null;
|
|
316
|
-
|
|
320
|
+
_super.prototype.onLoaded.call(this);
|
|
317
321
|
this.setOnTouchListener();
|
|
318
|
-
}
|
|
319
|
-
onUnloaded() {
|
|
322
|
+
};
|
|
323
|
+
View.prototype.onUnloaded = function () {
|
|
320
324
|
this._manager = null;
|
|
321
325
|
this._rootManager = null;
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
onBackPressed() {
|
|
325
|
-
|
|
326
|
+
_super.prototype.onUnloaded.call(this);
|
|
327
|
+
};
|
|
328
|
+
View.prototype.onBackPressed = function () {
|
|
329
|
+
var topmostFrame = topmost();
|
|
326
330
|
// Delegate back navigation handling to the topmost Frame
|
|
327
331
|
// when it's a child of the current View.
|
|
328
332
|
if (topmostFrame && topmostFrame._hasAncestorView(this)) {
|
|
329
333
|
return topmostFrame.onBackPressed();
|
|
330
334
|
}
|
|
331
335
|
return false;
|
|
332
|
-
}
|
|
333
|
-
handleGestureTouch(event) {
|
|
334
|
-
for (
|
|
335
|
-
|
|
336
|
-
list.forEach((element)
|
|
336
|
+
};
|
|
337
|
+
View.prototype.handleGestureTouch = function (event) {
|
|
338
|
+
for (var type in this._gestureObservers) {
|
|
339
|
+
var list = this._gestureObservers[type];
|
|
340
|
+
list.forEach(function (element) {
|
|
337
341
|
element.androidOnTouchEvent(event);
|
|
338
342
|
});
|
|
339
343
|
}
|
|
340
344
|
if (this.parent instanceof View) {
|
|
341
345
|
this.parent.handleGestureTouch(event);
|
|
342
346
|
}
|
|
343
|
-
}
|
|
344
|
-
hasGestureObservers() {
|
|
347
|
+
};
|
|
348
|
+
View.prototype.hasGestureObservers = function () {
|
|
345
349
|
return this._gestureObservers && Object.keys(this._gestureObservers).length > 0;
|
|
346
|
-
}
|
|
347
|
-
initNativeView() {
|
|
348
|
-
|
|
350
|
+
};
|
|
351
|
+
View.prototype.initNativeView = function () {
|
|
352
|
+
_super.prototype.initNativeView.call(this);
|
|
349
353
|
if (this.needsOnLayoutChangeListener()) {
|
|
350
354
|
this.setOnLayoutChangeListener();
|
|
351
355
|
}
|
|
352
|
-
}
|
|
353
|
-
needsOnLayoutChangeListener() {
|
|
356
|
+
};
|
|
357
|
+
View.prototype.needsOnLayoutChangeListener = function () {
|
|
354
358
|
return this.hasListeners(ViewCommon.layoutChangedEvent);
|
|
355
|
-
}
|
|
356
|
-
disposeNativeView() {
|
|
359
|
+
};
|
|
360
|
+
View.prototype.disposeNativeView = function () {
|
|
357
361
|
if (this.touchListenerIsSet) {
|
|
358
362
|
this.touchListenerIsSet = false;
|
|
359
363
|
if (this.nativeViewProtected) {
|
|
@@ -367,9 +371,9 @@ export class View extends ViewCommon {
|
|
|
367
371
|
this.layoutChangeListener = null;
|
|
368
372
|
}
|
|
369
373
|
}
|
|
370
|
-
|
|
371
|
-
}
|
|
372
|
-
setOnTouchListener() {
|
|
374
|
+
_super.prototype.disposeNativeView.call(this);
|
|
375
|
+
};
|
|
376
|
+
View.prototype.setOnTouchListener = function () {
|
|
373
377
|
if (this.touchListenerIsSet || !this.nativeViewProtected || !this.hasGestureObservers()) {
|
|
374
378
|
return;
|
|
375
379
|
}
|
|
@@ -382,68 +386,80 @@ export class View extends ViewCommon {
|
|
|
382
386
|
if (this.nativeViewProtected.setClickable) {
|
|
383
387
|
this.nativeViewProtected.setClickable(this.isUserInteractionEnabled);
|
|
384
388
|
}
|
|
385
|
-
}
|
|
386
|
-
setOnLayoutChangeListener() {
|
|
389
|
+
};
|
|
390
|
+
View.prototype.setOnLayoutChangeListener = function () {
|
|
387
391
|
if (this.nativeViewProtected) {
|
|
388
|
-
|
|
392
|
+
var owner_1 = this;
|
|
389
393
|
this.layoutChangeListenerIsSet = true;
|
|
390
394
|
this.layoutChangeListener =
|
|
391
395
|
this.layoutChangeListener ||
|
|
392
396
|
new android.view.View.OnLayoutChangeListener({
|
|
393
|
-
onLayoutChange(v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) {
|
|
397
|
+
onLayoutChange: function (v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) {
|
|
394
398
|
if (left !== oldLeft || top !== oldTop || right !== oldRight || bottom !== oldBottom) {
|
|
395
|
-
|
|
399
|
+
owner_1._raiseLayoutChangedEvent();
|
|
396
400
|
}
|
|
397
401
|
},
|
|
398
402
|
});
|
|
399
403
|
this.nativeViewProtected.addOnLayoutChangeListener(this.layoutChangeListener);
|
|
400
404
|
}
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
405
|
+
};
|
|
406
|
+
Object.defineProperty(View.prototype, "isLayoutRequired", {
|
|
407
|
+
get: function () {
|
|
408
|
+
return !this.isLayoutValid;
|
|
409
|
+
},
|
|
410
|
+
enumerable: false,
|
|
411
|
+
configurable: true
|
|
412
|
+
});
|
|
413
|
+
Object.defineProperty(View.prototype, "isLayoutValid", {
|
|
414
|
+
get: function () {
|
|
415
|
+
if (this.nativeViewProtected) {
|
|
416
|
+
return !this.nativeViewProtected.isLayoutRequested();
|
|
417
|
+
}
|
|
418
|
+
return false;
|
|
419
|
+
},
|
|
420
|
+
enumerable: false,
|
|
421
|
+
configurable: true
|
|
422
|
+
});
|
|
423
|
+
Object.defineProperty(View.prototype, "_hasFragments", {
|
|
424
|
+
get: function () {
|
|
425
|
+
return false;
|
|
426
|
+
},
|
|
427
|
+
enumerable: false,
|
|
428
|
+
configurable: true
|
|
429
|
+
});
|
|
430
|
+
View.prototype.layoutNativeView = function (left, top, right, bottom) {
|
|
415
431
|
if (this.nativeViewProtected) {
|
|
416
432
|
this.nativeViewProtected.layout(left, top, right, bottom);
|
|
417
433
|
}
|
|
418
|
-
}
|
|
419
|
-
requestLayout() {
|
|
420
|
-
|
|
434
|
+
};
|
|
435
|
+
View.prototype.requestLayout = function () {
|
|
436
|
+
_super.prototype.requestLayout.call(this);
|
|
421
437
|
if (this.nativeViewProtected) {
|
|
422
438
|
this.nativeViewProtected.requestLayout();
|
|
423
439
|
}
|
|
424
|
-
}
|
|
425
|
-
measure(widthMeasureSpec, heightMeasureSpec) {
|
|
426
|
-
|
|
440
|
+
};
|
|
441
|
+
View.prototype.measure = function (widthMeasureSpec, heightMeasureSpec) {
|
|
442
|
+
_super.prototype.measure.call(this, widthMeasureSpec, heightMeasureSpec);
|
|
427
443
|
this.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
|
428
|
-
}
|
|
429
|
-
layout(left, top, right, bottom) {
|
|
430
|
-
|
|
444
|
+
};
|
|
445
|
+
View.prototype.layout = function (left, top, right, bottom) {
|
|
446
|
+
_super.prototype.layout.call(this, left, top, right, bottom);
|
|
431
447
|
this.onLayout(left, top, right, bottom);
|
|
432
|
-
}
|
|
433
|
-
onMeasure(widthMeasureSpec, heightMeasureSpec) {
|
|
434
|
-
|
|
448
|
+
};
|
|
449
|
+
View.prototype.onMeasure = function (widthMeasureSpec, heightMeasureSpec) {
|
|
450
|
+
var view = this.nativeViewProtected;
|
|
435
451
|
if (view) {
|
|
436
452
|
view.measure(widthMeasureSpec, heightMeasureSpec);
|
|
437
453
|
this.setMeasuredDimension(view.getMeasuredWidth(), view.getMeasuredHeight());
|
|
438
454
|
}
|
|
439
|
-
}
|
|
440
|
-
onLayout(left, top, right, bottom) {
|
|
441
|
-
|
|
455
|
+
};
|
|
456
|
+
View.prototype.onLayout = function (left, top, right, bottom) {
|
|
457
|
+
var view = this.nativeViewProtected;
|
|
442
458
|
if (view) {
|
|
443
459
|
this.layoutNativeView(left, top, right, bottom);
|
|
444
460
|
}
|
|
445
|
-
}
|
|
446
|
-
_getCurrentLayoutBounds() {
|
|
461
|
+
};
|
|
462
|
+
View.prototype._getCurrentLayoutBounds = function () {
|
|
447
463
|
if (this.nativeViewProtected && !this.isCollapsed) {
|
|
448
464
|
return {
|
|
449
465
|
left: this.nativeViewProtected.getLeft(),
|
|
@@ -455,62 +471,62 @@ export class View extends ViewCommon {
|
|
|
455
471
|
else {
|
|
456
472
|
return { left: 0, top: 0, right: 0, bottom: 0 };
|
|
457
473
|
}
|
|
458
|
-
}
|
|
459
|
-
getMeasuredWidth() {
|
|
474
|
+
};
|
|
475
|
+
View.prototype.getMeasuredWidth = function () {
|
|
460
476
|
if (this.nativeViewProtected) {
|
|
461
477
|
return this.nativeViewProtected.getMeasuredWidth();
|
|
462
478
|
}
|
|
463
|
-
return
|
|
464
|
-
}
|
|
465
|
-
getMeasuredHeight() {
|
|
479
|
+
return _super.prototype.getMeasuredWidth.call(this);
|
|
480
|
+
};
|
|
481
|
+
View.prototype.getMeasuredHeight = function () {
|
|
466
482
|
if (this.nativeViewProtected) {
|
|
467
483
|
return this.nativeViewProtected.getMeasuredHeight();
|
|
468
484
|
}
|
|
469
|
-
return
|
|
470
|
-
}
|
|
471
|
-
focus() {
|
|
485
|
+
return _super.prototype.getMeasuredHeight.call(this);
|
|
486
|
+
};
|
|
487
|
+
View.prototype.focus = function () {
|
|
472
488
|
if (this.nativeViewProtected) {
|
|
473
489
|
return this.nativeViewProtected.requestFocus();
|
|
474
490
|
}
|
|
475
491
|
return false;
|
|
476
|
-
}
|
|
477
|
-
getLocationInWindow() {
|
|
492
|
+
};
|
|
493
|
+
View.prototype.getLocationInWindow = function () {
|
|
478
494
|
if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken()) {
|
|
479
495
|
return undefined;
|
|
480
496
|
}
|
|
481
|
-
|
|
497
|
+
var nativeArray = Array.create('int', 2);
|
|
482
498
|
this.nativeViewProtected.getLocationInWindow(nativeArray);
|
|
483
499
|
return {
|
|
484
500
|
x: layout.toDeviceIndependentPixels(nativeArray[0]),
|
|
485
501
|
y: layout.toDeviceIndependentPixels(nativeArray[1]),
|
|
486
502
|
};
|
|
487
|
-
}
|
|
488
|
-
getLocationOnScreen() {
|
|
503
|
+
};
|
|
504
|
+
View.prototype.getLocationOnScreen = function () {
|
|
489
505
|
if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken()) {
|
|
490
506
|
return undefined;
|
|
491
507
|
}
|
|
492
|
-
|
|
508
|
+
var nativeArray = Array.create('int', 2);
|
|
493
509
|
this.nativeViewProtected.getLocationOnScreen(nativeArray);
|
|
494
510
|
return {
|
|
495
511
|
x: layout.toDeviceIndependentPixels(nativeArray[0]),
|
|
496
512
|
y: layout.toDeviceIndependentPixels(nativeArray[1]),
|
|
497
513
|
};
|
|
498
|
-
}
|
|
499
|
-
getLocationRelativeTo(otherView) {
|
|
514
|
+
};
|
|
515
|
+
View.prototype.getLocationRelativeTo = function (otherView) {
|
|
500
516
|
if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken() || !otherView || !otherView.nativeViewProtected || !otherView.nativeViewProtected.getWindowToken() || this.nativeViewProtected.getWindowToken() !== otherView.nativeViewProtected.getWindowToken()) {
|
|
501
517
|
return undefined;
|
|
502
518
|
}
|
|
503
|
-
|
|
519
|
+
var myArray = Array.create('int', 2);
|
|
504
520
|
this.nativeViewProtected.getLocationOnScreen(myArray);
|
|
505
|
-
|
|
521
|
+
var otherArray = Array.create('int', 2);
|
|
506
522
|
otherView.nativeViewProtected.getLocationOnScreen(otherArray);
|
|
507
523
|
return {
|
|
508
524
|
x: layout.toDeviceIndependentPixels(myArray[0] - otherArray[0]),
|
|
509
525
|
y: layout.toDeviceIndependentPixels(myArray[1] - otherArray[1]),
|
|
510
526
|
};
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
|
|
527
|
+
};
|
|
528
|
+
View.resolveSizeAndState = function (size, specSize, specMode, childMeasuredState) {
|
|
529
|
+
var result = size;
|
|
514
530
|
switch (specMode) {
|
|
515
531
|
case layout.UNSPECIFIED:
|
|
516
532
|
result = size;
|
|
@@ -525,27 +541,28 @@ export class View extends ViewCommon {
|
|
|
525
541
|
break;
|
|
526
542
|
}
|
|
527
543
|
return result | (childMeasuredState & layout.MEASURED_STATE_MASK);
|
|
528
|
-
}
|
|
529
|
-
_showNativeModalView(parent, options) {
|
|
544
|
+
};
|
|
545
|
+
View.prototype._showNativeModalView = function (parent, options) {
|
|
546
|
+
var _this = this;
|
|
530
547
|
// if the app is in background while triggering _showNativeModalView
|
|
531
548
|
// then DialogFragment.show will trigger IllegalStateException: Can not perform this action after onSaveInstanceState
|
|
532
549
|
// so if in background we create an event to call _showNativeModalView when loaded (going back in foreground)
|
|
533
550
|
if (Application.inBackground && !parent.isLoaded) {
|
|
534
|
-
|
|
535
|
-
parent.off('loaded',
|
|
536
|
-
|
|
551
|
+
var onLoaded_1 = function () {
|
|
552
|
+
parent.off('loaded', onLoaded_1);
|
|
553
|
+
_this._showNativeModalView(parent, options);
|
|
537
554
|
};
|
|
538
|
-
parent.on('loaded',
|
|
555
|
+
parent.on('loaded', onLoaded_1);
|
|
539
556
|
return;
|
|
540
557
|
}
|
|
541
|
-
|
|
558
|
+
_super.prototype._showNativeModalView.call(this, parent, options);
|
|
542
559
|
initializeDialogFragment();
|
|
543
|
-
|
|
544
|
-
|
|
560
|
+
var df = new DialogFragment();
|
|
561
|
+
var args = new android.os.Bundle();
|
|
545
562
|
args.putInt(DOMID, this._domId);
|
|
546
563
|
df.setArguments(args);
|
|
547
|
-
|
|
548
|
-
|
|
564
|
+
var cancelable = true;
|
|
565
|
+
var windowSoftInputMode;
|
|
549
566
|
if (options.android) {
|
|
550
567
|
if (options.android.cancelable !== undefined) {
|
|
551
568
|
cancelable = !!options.android.cancelable;
|
|
@@ -554,58 +571,58 @@ export class View extends ViewCommon {
|
|
|
554
571
|
windowSoftInputMode = options.android.windowSoftInputMode;
|
|
555
572
|
}
|
|
556
573
|
cancelable = options.cancelable !== undefined ? !!options.cancelable : cancelable;
|
|
557
|
-
|
|
574
|
+
var dialogOptions = {
|
|
558
575
|
owner: this,
|
|
559
576
|
fullscreen: !!options.fullscreen,
|
|
560
577
|
animated: !!options.animated,
|
|
561
578
|
stretched: !!options.stretched,
|
|
562
579
|
cancelable: cancelable,
|
|
563
580
|
windowSoftInputMode: windowSoftInputMode,
|
|
564
|
-
shownCallback: ()
|
|
565
|
-
dismissCallback: ()
|
|
581
|
+
shownCallback: function () { return _this._raiseShownModallyEvent(); },
|
|
582
|
+
dismissCallback: function () { return _this.closeModal(); },
|
|
566
583
|
};
|
|
567
584
|
saveModal(dialogOptions);
|
|
568
585
|
this._dialogFragment = df;
|
|
569
586
|
this._raiseShowingModallyEvent();
|
|
570
587
|
this._dialogFragment.show(parent._getRootFragmentManager(), this._domId.toString());
|
|
571
|
-
}
|
|
572
|
-
_hideNativeModalView(parent, whenClosedCallback) {
|
|
588
|
+
};
|
|
589
|
+
View.prototype._hideNativeModalView = function (parent, whenClosedCallback) {
|
|
573
590
|
if (this._dialogFragment) {
|
|
574
|
-
|
|
591
|
+
var manager = this._dialogFragment.getFragmentManager();
|
|
575
592
|
if (manager) {
|
|
576
593
|
this._dialogFragment.dismissAllowingStateLoss();
|
|
577
594
|
}
|
|
578
595
|
}
|
|
579
596
|
this._dialogFragment = null;
|
|
580
597
|
whenClosedCallback();
|
|
581
|
-
}
|
|
582
|
-
[isEnabledProperty.setNative](value) {
|
|
598
|
+
};
|
|
599
|
+
View.prototype[isEnabledProperty.setNative] = function (value) {
|
|
583
600
|
this.nativeViewProtected.setEnabled(value);
|
|
584
|
-
}
|
|
585
|
-
[originXProperty.getDefault]() {
|
|
601
|
+
};
|
|
602
|
+
View.prototype[originXProperty.getDefault] = function () {
|
|
586
603
|
return this.nativeViewProtected.getPivotX();
|
|
587
|
-
}
|
|
588
|
-
[originXProperty.setNative](value) {
|
|
604
|
+
};
|
|
605
|
+
View.prototype[originXProperty.setNative] = function (value) {
|
|
589
606
|
org.nativescript.widgets.OriginPoint.setX(this.nativeViewProtected, value);
|
|
590
|
-
}
|
|
591
|
-
[originYProperty.getDefault]() {
|
|
607
|
+
};
|
|
608
|
+
View.prototype[originYProperty.getDefault] = function () {
|
|
592
609
|
return this.nativeViewProtected.getPivotY();
|
|
593
|
-
}
|
|
594
|
-
[originYProperty.setNative](value) {
|
|
610
|
+
};
|
|
611
|
+
View.prototype[originYProperty.setNative] = function (value) {
|
|
595
612
|
org.nativescript.widgets.OriginPoint.setY(this.nativeViewProtected, value);
|
|
596
|
-
}
|
|
597
|
-
[isUserInteractionEnabledProperty.setNative](value) {
|
|
613
|
+
};
|
|
614
|
+
View.prototype[isUserInteractionEnabledProperty.setNative] = function (value) {
|
|
598
615
|
this.nativeViewProtected.setClickable(value);
|
|
599
616
|
this.nativeViewProtected.setFocusable(value);
|
|
600
|
-
}
|
|
601
|
-
[hiddenProperty.getDefault]() {
|
|
617
|
+
};
|
|
618
|
+
View.prototype[hiddenProperty.getDefault] = function () {
|
|
602
619
|
return this.nativeViewProtected.getVisibility() === android.view.View.GONE;
|
|
603
|
-
}
|
|
604
|
-
[hiddenProperty.setNative](value) {
|
|
620
|
+
};
|
|
621
|
+
View.prototype[hiddenProperty.setNative] = function (value) {
|
|
605
622
|
this.nativeViewProtected.setVisibility(value ? android.view.View.GONE : android.view.View.VISIBLE);
|
|
606
|
-
}
|
|
607
|
-
[visibilityProperty.getDefault]() {
|
|
608
|
-
|
|
623
|
+
};
|
|
624
|
+
View.prototype[visibilityProperty.getDefault] = function () {
|
|
625
|
+
var nativeVisibility = this.nativeViewProtected.getVisibility();
|
|
609
626
|
switch (nativeVisibility) {
|
|
610
627
|
case android.view.View.VISIBLE:
|
|
611
628
|
return 'visible';
|
|
@@ -614,10 +631,10 @@ export class View extends ViewCommon {
|
|
|
614
631
|
case android.view.View.GONE:
|
|
615
632
|
return 'collapse';
|
|
616
633
|
default:
|
|
617
|
-
throw new Error(
|
|
634
|
+
throw new Error("Unsupported android.view.View visibility: ".concat(nativeVisibility, ". Currently supported values are android.view.View.VISIBLE, android.view.View.INVISIBLE, android.view.View.GONE."));
|
|
618
635
|
}
|
|
619
|
-
}
|
|
620
|
-
[visibilityProperty.setNative](value) {
|
|
636
|
+
};
|
|
637
|
+
View.prototype[visibilityProperty.setNative] = function (value) {
|
|
621
638
|
switch (value) {
|
|
622
639
|
case 'visible':
|
|
623
640
|
this.nativeViewProtected.setVisibility(android.view.View.VISIBLE);
|
|
@@ -629,20 +646,20 @@ export class View extends ViewCommon {
|
|
|
629
646
|
this.nativeViewProtected.setVisibility(android.view.View.GONE);
|
|
630
647
|
break;
|
|
631
648
|
default:
|
|
632
|
-
throw new Error(
|
|
649
|
+
throw new Error("Invalid visibility value: ".concat(value, ". Valid values are: visible, hidden, collapse."));
|
|
633
650
|
}
|
|
634
|
-
}
|
|
635
|
-
[opacityProperty.getDefault]() {
|
|
651
|
+
};
|
|
652
|
+
View.prototype[opacityProperty.getDefault] = function () {
|
|
636
653
|
return this.nativeViewProtected.getAlpha();
|
|
637
|
-
}
|
|
638
|
-
[opacityProperty.setNative](value) {
|
|
654
|
+
};
|
|
655
|
+
View.prototype[opacityProperty.setNative] = function (value) {
|
|
639
656
|
this.nativeViewProtected.setAlpha(float(value));
|
|
640
|
-
}
|
|
641
|
-
[testIDProperty.setNative](value) {
|
|
657
|
+
};
|
|
658
|
+
View.prototype[testIDProperty.setNative] = function (value) {
|
|
642
659
|
this.setAccessibilityIdentifier(this.nativeViewProtected, value);
|
|
643
|
-
}
|
|
644
|
-
setAccessibilityIdentifier(view, value) {
|
|
645
|
-
|
|
660
|
+
};
|
|
661
|
+
View.prototype.setAccessibilityIdentifier = function (view, value) {
|
|
662
|
+
var id = Utils.android.resources.getId(':id/nativescript_accessibility_id');
|
|
646
663
|
if (id) {
|
|
647
664
|
view.setTag(id, value);
|
|
648
665
|
view.setTag(value);
|
|
@@ -651,44 +668,43 @@ export class View extends ViewCommon {
|
|
|
651
668
|
this.testID = value;
|
|
652
669
|
if (this.accessibilityIdentifier !== value)
|
|
653
670
|
this.accessibilityIdentifier = value;
|
|
654
|
-
}
|
|
655
|
-
[accessibilityEnabledProperty.setNative](value) {
|
|
671
|
+
};
|
|
672
|
+
View.prototype[accessibilityEnabledProperty.setNative] = function (value) {
|
|
656
673
|
this.nativeViewProtected.setFocusable(!!value);
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
}
|
|
661
|
-
[accessibilityIdentifierProperty.setNative](value) {
|
|
674
|
+
updateAccessibilityProperties(this);
|
|
675
|
+
};
|
|
676
|
+
View.prototype[accessibilityIdentifierProperty.setNative] = function (value) {
|
|
662
677
|
this.setAccessibilityIdentifier(this.nativeViewProtected, value);
|
|
663
|
-
}
|
|
664
|
-
[accessibilityRoleProperty.setNative](value) {
|
|
678
|
+
};
|
|
679
|
+
View.prototype[accessibilityRoleProperty.setNative] = function (value) {
|
|
680
|
+
var _a;
|
|
665
681
|
this.accessibilityRole = value;
|
|
666
682
|
updateAccessibilityProperties(this);
|
|
667
683
|
if (SDK_VERSION >= 28) {
|
|
668
|
-
this.nativeViewProtected
|
|
684
|
+
(_a = this.nativeViewProtected) === null || _a === void 0 ? void 0 : _a.setAccessibilityHeading(value === AccessibilityRole.Header);
|
|
669
685
|
}
|
|
670
|
-
}
|
|
671
|
-
[accessibilityValueProperty.setNative]() {
|
|
686
|
+
};
|
|
687
|
+
View.prototype[accessibilityValueProperty.setNative] = function () {
|
|
672
688
|
this._androidContentDescriptionUpdated = true;
|
|
673
689
|
updateContentDescription(this);
|
|
674
|
-
}
|
|
675
|
-
[accessibilityLabelProperty.setNative]() {
|
|
690
|
+
};
|
|
691
|
+
View.prototype[accessibilityLabelProperty.setNative] = function () {
|
|
676
692
|
this._androidContentDescriptionUpdated = true;
|
|
677
693
|
updateContentDescription(this);
|
|
678
|
-
}
|
|
679
|
-
[accessibilityHintProperty.setNative]() {
|
|
694
|
+
};
|
|
695
|
+
View.prototype[accessibilityHintProperty.setNative] = function () {
|
|
680
696
|
this._androidContentDescriptionUpdated = true;
|
|
681
697
|
updateContentDescription(this);
|
|
682
|
-
}
|
|
683
|
-
[accessibilityHiddenProperty.setNative](value) {
|
|
698
|
+
};
|
|
699
|
+
View.prototype[accessibilityHiddenProperty.setNative] = function (value) {
|
|
684
700
|
if (value) {
|
|
685
701
|
this.nativeViewProtected.setImportantForAccessibility(android.view.View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS);
|
|
686
702
|
}
|
|
687
703
|
else {
|
|
688
704
|
this.nativeViewProtected.setImportantForAccessibility(android.view.View.IMPORTANT_FOR_ACCESSIBILITY_YES);
|
|
689
705
|
}
|
|
690
|
-
}
|
|
691
|
-
[accessibilityLiveRegionProperty.setNative](value) {
|
|
706
|
+
};
|
|
707
|
+
View.prototype[accessibilityLiveRegionProperty.setNative] = function (value) {
|
|
692
708
|
switch (value) {
|
|
693
709
|
case AccessibilityLiveRegion.Assertive: {
|
|
694
710
|
this.nativeViewProtected.setAccessibilityLiveRegion(android.view.View.ACCESSIBILITY_LIVE_REGION_ASSERTIVE);
|
|
@@ -703,84 +719,84 @@ export class View extends ViewCommon {
|
|
|
703
719
|
break;
|
|
704
720
|
}
|
|
705
721
|
}
|
|
706
|
-
}
|
|
707
|
-
[accessibilityStateProperty.setNative](value) {
|
|
722
|
+
};
|
|
723
|
+
View.prototype[accessibilityStateProperty.setNative] = function (value) {
|
|
708
724
|
this.accessibilityState = value;
|
|
709
725
|
updateAccessibilityProperties(this);
|
|
710
|
-
}
|
|
711
|
-
[accessibilityMediaSessionProperty.setNative]() {
|
|
726
|
+
};
|
|
727
|
+
View.prototype[accessibilityMediaSessionProperty.setNative] = function () {
|
|
712
728
|
updateAccessibilityProperties(this);
|
|
713
|
-
}
|
|
714
|
-
[androidElevationProperty.getDefault]() {
|
|
729
|
+
};
|
|
730
|
+
View.prototype[androidElevationProperty.getDefault] = function () {
|
|
715
731
|
return this.getDefaultElevation();
|
|
716
|
-
}
|
|
717
|
-
[androidElevationProperty.setNative](value) {
|
|
732
|
+
};
|
|
733
|
+
View.prototype[androidElevationProperty.setNative] = function (value) {
|
|
718
734
|
if (SDK_VERSION < 21) {
|
|
719
735
|
return;
|
|
720
736
|
}
|
|
721
737
|
this.refreshStateListAnimator();
|
|
722
|
-
}
|
|
723
|
-
[androidDynamicElevationOffsetProperty.getDefault]() {
|
|
738
|
+
};
|
|
739
|
+
View.prototype[androidDynamicElevationOffsetProperty.getDefault] = function () {
|
|
724
740
|
return this.getDefaultDynamicElevationOffset();
|
|
725
|
-
}
|
|
726
|
-
[androidDynamicElevationOffsetProperty.setNative](value) {
|
|
741
|
+
};
|
|
742
|
+
View.prototype[androidDynamicElevationOffsetProperty.setNative] = function (value) {
|
|
727
743
|
if (SDK_VERSION < 21) {
|
|
728
744
|
return;
|
|
729
745
|
}
|
|
730
746
|
this.refreshStateListAnimator();
|
|
731
|
-
}
|
|
732
|
-
getDefaultElevation() {
|
|
747
|
+
};
|
|
748
|
+
View.prototype.getDefaultElevation = function () {
|
|
733
749
|
if (SDK_VERSION < 21) {
|
|
734
750
|
return 0;
|
|
735
751
|
}
|
|
736
752
|
// NOTE: overriden in Button implementation as for widgets with StateListAnimator (Button)
|
|
737
753
|
// nativeView.getElevation() returns 0 at the time of the getDefault() query
|
|
738
754
|
return layout.toDeviceIndependentPixels(this.nativeViewProtected.getElevation());
|
|
739
|
-
}
|
|
740
|
-
getDefaultDynamicElevationOffset() {
|
|
755
|
+
};
|
|
756
|
+
View.prototype.getDefaultDynamicElevationOffset = function () {
|
|
741
757
|
// NOTE: overriden in Button implementation
|
|
742
758
|
return 0;
|
|
743
|
-
}
|
|
744
|
-
refreshStateListAnimator() {
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
759
|
+
};
|
|
760
|
+
View.prototype.refreshStateListAnimator = function () {
|
|
761
|
+
var nativeView = this.nativeViewProtected;
|
|
762
|
+
var ObjectAnimator = android.animation.ObjectAnimator;
|
|
763
|
+
var AnimatorSet = android.animation.AnimatorSet;
|
|
764
|
+
var duration = nativeView.getContext().getResources().getInteger(shortAnimTime) / 2;
|
|
765
|
+
var elevation = this.androidElevation;
|
|
750
766
|
if (typeof elevation === 'undefined' || elevation === null) {
|
|
751
767
|
elevation = this.getDefaultElevation();
|
|
752
768
|
}
|
|
753
769
|
elevation = layout.toDevicePixels(elevation);
|
|
754
|
-
|
|
755
|
-
|
|
770
|
+
var z = layout.toDevicePixels(0);
|
|
771
|
+
var pressedZ = this.androidDynamicElevationOffset;
|
|
756
772
|
if (typeof pressedZ === 'undefined' || pressedZ === null) {
|
|
757
773
|
pressedZ = this.getDefaultDynamicElevationOffset();
|
|
758
774
|
}
|
|
759
775
|
pressedZ = layout.toDevicePixels(pressedZ);
|
|
760
|
-
|
|
776
|
+
var pressedSet = new AnimatorSet();
|
|
761
777
|
pressedSet.playTogether(java.util.Arrays.asList([ObjectAnimator.ofFloat(nativeView, 'translationZ', [pressedZ]).setDuration(duration), ObjectAnimator.ofFloat(nativeView, 'elevation', [elevation]).setDuration(0)]));
|
|
762
|
-
|
|
778
|
+
var notPressedSet = new AnimatorSet();
|
|
763
779
|
notPressedSet.playTogether(java.util.Arrays.asList([ObjectAnimator.ofFloat(nativeView, 'translationZ', [z]).setDuration(duration), ObjectAnimator.ofFloat(nativeView, 'elevation', [elevation]).setDuration(0)]));
|
|
764
|
-
|
|
780
|
+
var defaultSet = new AnimatorSet();
|
|
765
781
|
defaultSet.playTogether(java.util.Arrays.asList([ObjectAnimator.ofFloat(nativeView, 'translationZ', [0]).setDuration(0), ObjectAnimator.ofFloat(nativeView, 'elevation', [0]).setDuration(0)]));
|
|
766
|
-
|
|
782
|
+
var stateListAnimator = new android.animation.StateListAnimator();
|
|
767
783
|
stateListAnimator.addState([statePressed, stateEnabled], pressedSet);
|
|
768
784
|
stateListAnimator.addState([stateEnabled], notPressedSet);
|
|
769
785
|
stateListAnimator.addState([], defaultSet);
|
|
770
|
-
|
|
786
|
+
var currentAnimator = nativeView.getStateListAnimator();
|
|
771
787
|
if (currentAnimator) {
|
|
772
788
|
currentAnimator.jumpToCurrentState();
|
|
773
789
|
}
|
|
774
790
|
nativeView.setStateListAnimator(stateListAnimator);
|
|
775
|
-
}
|
|
776
|
-
[horizontalAlignmentProperty.getDefault]() {
|
|
791
|
+
};
|
|
792
|
+
View.prototype[horizontalAlignmentProperty.getDefault] = function () {
|
|
777
793
|
return org.nativescript.widgets.ViewHelper.getHorizontalAlignment(this.nativeViewProtected);
|
|
778
|
-
}
|
|
779
|
-
[horizontalAlignmentProperty.setNative](value) {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
794
|
+
};
|
|
795
|
+
View.prototype[horizontalAlignmentProperty.setNative] = function (value) {
|
|
796
|
+
var nativeView = this.nativeViewProtected;
|
|
797
|
+
var lp = nativeView.getLayoutParams() || new org.nativescript.widgets.CommonLayoutParams();
|
|
798
|
+
var gravity = lp.gravity;
|
|
799
|
+
var weight = lp.weight;
|
|
784
800
|
// Set only if params gravity exists.
|
|
785
801
|
if (gravity !== undefined) {
|
|
786
802
|
switch (value) {
|
|
@@ -811,15 +827,15 @@ export class View extends ViewCommon {
|
|
|
811
827
|
}
|
|
812
828
|
nativeView.setLayoutParams(lp);
|
|
813
829
|
}
|
|
814
|
-
}
|
|
815
|
-
[verticalAlignmentProperty.getDefault]() {
|
|
830
|
+
};
|
|
831
|
+
View.prototype[verticalAlignmentProperty.getDefault] = function () {
|
|
816
832
|
return org.nativescript.widgets.ViewHelper.getVerticalAlignment(this.nativeViewProtected);
|
|
817
|
-
}
|
|
818
|
-
[verticalAlignmentProperty.setNative](value) {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
833
|
+
};
|
|
834
|
+
View.prototype[verticalAlignmentProperty.setNative] = function (value) {
|
|
835
|
+
var nativeView = this.nativeViewProtected;
|
|
836
|
+
var lp = nativeView.getLayoutParams() || new org.nativescript.widgets.CommonLayoutParams();
|
|
837
|
+
var gravity = lp.gravity;
|
|
838
|
+
var height = lp.height;
|
|
823
839
|
// Set only if params gravity exists.
|
|
824
840
|
if (gravity !== undefined) {
|
|
825
841
|
switch (value) {
|
|
@@ -850,70 +866,72 @@ export class View extends ViewCommon {
|
|
|
850
866
|
}
|
|
851
867
|
nativeView.setLayoutParams(lp);
|
|
852
868
|
}
|
|
853
|
-
}
|
|
854
|
-
[rotateProperty.setNative](value) {
|
|
869
|
+
};
|
|
870
|
+
View.prototype[rotateProperty.setNative] = function (value) {
|
|
855
871
|
org.nativescript.widgets.ViewHelper.setRotate(this.nativeViewProtected, float(value));
|
|
856
|
-
}
|
|
857
|
-
[rotateXProperty.setNative](value) {
|
|
872
|
+
};
|
|
873
|
+
View.prototype[rotateXProperty.setNative] = function (value) {
|
|
858
874
|
org.nativescript.widgets.ViewHelper.setRotateX(this.nativeViewProtected, float(value));
|
|
859
|
-
}
|
|
860
|
-
[rotateYProperty.setNative](value) {
|
|
875
|
+
};
|
|
876
|
+
View.prototype[rotateYProperty.setNative] = function (value) {
|
|
861
877
|
org.nativescript.widgets.ViewHelper.setRotateY(this.nativeViewProtected, float(value));
|
|
862
|
-
}
|
|
863
|
-
[perspectiveProperty.setNative](value) {
|
|
878
|
+
};
|
|
879
|
+
View.prototype[perspectiveProperty.setNative] = function (value) {
|
|
864
880
|
org.nativescript.widgets.ViewHelper.setPerspective(this.nativeViewProtected, float(value * Screen.mainScreen.scale));
|
|
865
|
-
}
|
|
866
|
-
[scaleXProperty.setNative](value) {
|
|
881
|
+
};
|
|
882
|
+
View.prototype[scaleXProperty.setNative] = function (value) {
|
|
867
883
|
org.nativescript.widgets.ViewHelper.setScaleX(this.nativeViewProtected, float(value));
|
|
868
|
-
}
|
|
869
|
-
[scaleYProperty.setNative](value) {
|
|
884
|
+
};
|
|
885
|
+
View.prototype[scaleYProperty.setNative] = function (value) {
|
|
870
886
|
org.nativescript.widgets.ViewHelper.setScaleY(this.nativeViewProtected, float(value));
|
|
871
|
-
}
|
|
872
|
-
[translateXProperty.setNative](value) {
|
|
887
|
+
};
|
|
888
|
+
View.prototype[translateXProperty.setNative] = function (value) {
|
|
873
889
|
org.nativescript.widgets.ViewHelper.setTranslateX(this.nativeViewProtected, layout.toDevicePixels(value));
|
|
874
|
-
}
|
|
875
|
-
[translateYProperty.setNative](value) {
|
|
890
|
+
};
|
|
891
|
+
View.prototype[translateYProperty.setNative] = function (value) {
|
|
876
892
|
org.nativescript.widgets.ViewHelper.setTranslateY(this.nativeViewProtected, layout.toDevicePixels(value));
|
|
877
|
-
}
|
|
878
|
-
[zIndexProperty.getDefault]() {
|
|
893
|
+
};
|
|
894
|
+
View.prototype[zIndexProperty.getDefault] = function () {
|
|
879
895
|
return 0;
|
|
880
|
-
}
|
|
881
|
-
[zIndexProperty.setNative](value) {
|
|
896
|
+
};
|
|
897
|
+
View.prototype[zIndexProperty.setNative] = function (value) {
|
|
882
898
|
org.nativescript.widgets.ViewHelper.setZIndex(this.nativeViewProtected, value);
|
|
883
|
-
}
|
|
884
|
-
[backgroundInternalProperty.getDefault]() {
|
|
885
|
-
|
|
899
|
+
};
|
|
900
|
+
View.prototype[backgroundInternalProperty.getDefault] = function () {
|
|
901
|
+
var nativeView = this.nativeViewProtected;
|
|
886
902
|
return AndroidHelper.getCopyOrDrawable(nativeView.getBackground(), nativeView.getResources());
|
|
887
|
-
}
|
|
888
|
-
[backgroundInternalProperty.setNative](value) {
|
|
903
|
+
};
|
|
904
|
+
View.prototype[backgroundInternalProperty.setNative] = function (value) {
|
|
889
905
|
this._redrawNativeBackground(value);
|
|
890
|
-
}
|
|
891
|
-
[minWidthProperty.setNative](value) {
|
|
906
|
+
};
|
|
907
|
+
View.prototype[minWidthProperty.setNative] = function (value) {
|
|
892
908
|
if (this.parent instanceof CustomLayoutView && this.parent.nativeViewProtected) {
|
|
893
909
|
this.parent._setChildMinWidthNative(this, value);
|
|
894
910
|
}
|
|
895
911
|
else {
|
|
896
912
|
this._setMinWidthNative(value);
|
|
897
913
|
}
|
|
898
|
-
}
|
|
899
|
-
[minHeightProperty.setNative](value) {
|
|
914
|
+
};
|
|
915
|
+
View.prototype[minHeightProperty.setNative] = function (value) {
|
|
900
916
|
if (this.parent instanceof CustomLayoutView && this.parent.nativeViewProtected) {
|
|
901
917
|
this.parent._setChildMinHeightNative(this, value);
|
|
902
918
|
}
|
|
903
919
|
else {
|
|
904
920
|
this._setMinHeightNative(value);
|
|
905
921
|
}
|
|
906
|
-
}
|
|
907
|
-
_applyBackground(background, isBorderDrawable, onlyColor, backgroundDrawable) {
|
|
908
|
-
|
|
922
|
+
};
|
|
923
|
+
View.prototype._applyBackground = function (background, isBorderDrawable, onlyColor, backgroundDrawable) {
|
|
924
|
+
var _a;
|
|
925
|
+
var nativeView = this.nativeViewProtected;
|
|
909
926
|
if (onlyColor) {
|
|
910
|
-
|
|
927
|
+
var backgroundColor = background.color.android;
|
|
911
928
|
if (isBorderDrawable) {
|
|
912
929
|
// We need to duplicate the drawable or we lose the "default" cached drawable
|
|
913
930
|
backgroundDrawable = nativeView._cachedDrawable != null ? AndroidHelper.getCopyOrDrawable(nativeView._cachedDrawable, nativeView.getResources()) : null;
|
|
914
931
|
nativeView.setBackground(backgroundDrawable);
|
|
915
932
|
}
|
|
916
|
-
|
|
933
|
+
// Apply color to drawables when there is the need to maintain visual things like button ripple effect
|
|
934
|
+
if (this.needsNativeDrawableFill && backgroundDrawable) {
|
|
917
935
|
backgroundDrawable.mutate();
|
|
918
936
|
AndroidHelper.setDrawableColor(backgroundColor, backgroundDrawable);
|
|
919
937
|
backgroundDrawable.invalidateSelf();
|
|
@@ -935,7 +953,7 @@ export class View extends ViewCommon {
|
|
|
935
953
|
}
|
|
936
954
|
if (background.isEmpty()) {
|
|
937
955
|
// Reset background to default if not already set
|
|
938
|
-
|
|
956
|
+
var defaultDrawable = (_a = nativeView._cachedDrawable) !== null && _a !== void 0 ? _a : null;
|
|
939
957
|
if (backgroundDrawable !== defaultDrawable) {
|
|
940
958
|
nativeView.setBackground(defaultDrawable);
|
|
941
959
|
}
|
|
@@ -946,16 +964,16 @@ export class View extends ViewCommon {
|
|
|
946
964
|
refreshBorderDrawable(this, backgroundDrawable);
|
|
947
965
|
}
|
|
948
966
|
else {
|
|
949
|
-
|
|
967
|
+
var borderDrawable = new org.nativescript.widgets.BorderDrawable(layout.getDisplayDensity(), this.toString());
|
|
950
968
|
refreshBorderDrawable(this, borderDrawable);
|
|
951
969
|
nativeView.setBackground(borderDrawable);
|
|
952
970
|
}
|
|
953
971
|
}
|
|
954
972
|
}
|
|
955
|
-
}
|
|
956
|
-
_drawBoxShadow(boxShadow) {
|
|
957
|
-
|
|
958
|
-
|
|
973
|
+
};
|
|
974
|
+
View.prototype._drawBoxShadow = function (boxShadow) {
|
|
975
|
+
var nativeView = this.nativeViewProtected;
|
|
976
|
+
var config = {
|
|
959
977
|
shadowColor: boxShadow.color.android,
|
|
960
978
|
cornerRadius: Length.toDevicePixels(this.borderRadius, 0.0),
|
|
961
979
|
spreadRadius: boxShadow.spreadRadius,
|
|
@@ -964,19 +982,19 @@ export class View extends ViewCommon {
|
|
|
964
982
|
offsetY: boxShadow.offsetY,
|
|
965
983
|
};
|
|
966
984
|
org.nativescript.widgets.Utils.drawBoxShadow(nativeView, JSON.stringify(config));
|
|
967
|
-
}
|
|
968
|
-
_redrawNativeBackground(value) {
|
|
985
|
+
};
|
|
986
|
+
View.prototype._redrawNativeBackground = function (value) {
|
|
969
987
|
if (value instanceof Background) {
|
|
970
988
|
this.onBackgroundOrBorderPropertyChanged();
|
|
971
989
|
}
|
|
972
990
|
else {
|
|
973
|
-
|
|
991
|
+
var nativeView = this.nativeViewProtected;
|
|
974
992
|
nativeView.setBackground(value);
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
993
|
+
var style = this.style;
|
|
994
|
+
var paddingTop = paddingTopProperty.isSet(style) ? this.effectivePaddingTop : this._defaultPaddingTop;
|
|
995
|
+
var paddingRight = paddingRightProperty.isSet(style) ? this.effectivePaddingRight : this._defaultPaddingRight;
|
|
996
|
+
var paddingBottom = paddingBottomProperty.isSet(style) ? this.effectivePaddingBottom : this._defaultPaddingBottom;
|
|
997
|
+
var paddingLeft = paddingLeftProperty.isSet(style) ? this.effectivePaddingLeft : this._defaultPaddingLeft;
|
|
980
998
|
if (this._isPaddingRelative) {
|
|
981
999
|
nativeView.setPaddingRelative(paddingLeft, paddingTop, paddingRight, paddingBottom);
|
|
982
1000
|
}
|
|
@@ -984,15 +1002,16 @@ export class View extends ViewCommon {
|
|
|
984
1002
|
nativeView.setPadding(paddingLeft, paddingTop, paddingRight, paddingBottom);
|
|
985
1003
|
}
|
|
986
1004
|
}
|
|
987
|
-
}
|
|
988
|
-
onBackgroundOrBorderPropertyChanged() {
|
|
989
|
-
|
|
1005
|
+
};
|
|
1006
|
+
View.prototype.onBackgroundOrBorderPropertyChanged = function () {
|
|
1007
|
+
var _a;
|
|
1008
|
+
var nativeView = this.nativeViewProtected;
|
|
990
1009
|
if (!nativeView) {
|
|
991
1010
|
return;
|
|
992
1011
|
}
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
1012
|
+
var background = this.style.backgroundInternal;
|
|
1013
|
+
var drawable = nativeView.getBackground();
|
|
1014
|
+
var isBorderDrawable = drawable instanceof org.nativescript.widgets.BorderDrawable;
|
|
996
1015
|
// Use undefined as not set. getBackground will never return undefined only Drawable or null;
|
|
997
1016
|
if (nativeView._cachedDrawable === undefined) {
|
|
998
1017
|
nativeView._cachedDrawable = drawable;
|
|
@@ -1000,11 +1019,11 @@ export class View extends ViewCommon {
|
|
|
1000
1019
|
if (background.clearFlags & 2 /* BackgroundClearFlags.CLEAR_BOX_SHADOW */) {
|
|
1001
1020
|
// Clear background if we're clearing the box shadow
|
|
1002
1021
|
if (drawable instanceof org.nativescript.widgets.BoxShadowDrawable) {
|
|
1003
|
-
nativeView.setBackground(nativeView._cachedDrawable
|
|
1022
|
+
nativeView.setBackground((_a = nativeView._cachedDrawable) !== null && _a !== void 0 ? _a : null);
|
|
1004
1023
|
}
|
|
1005
1024
|
}
|
|
1006
1025
|
// prettier-ignore
|
|
1007
|
-
|
|
1026
|
+
var onlyColor = !background.hasBorderWidth()
|
|
1008
1027
|
&& !background.hasBorderRadius()
|
|
1009
1028
|
&& !background.hasBoxShadow()
|
|
1010
1029
|
&& !background.clipPath
|
|
@@ -1016,10 +1035,10 @@ export class View extends ViewCommon {
|
|
|
1016
1035
|
}
|
|
1017
1036
|
// TODO: Can we move BorderWidths as separate native setter?
|
|
1018
1037
|
// This way we could skip setPadding if borderWidth is not changed.
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1038
|
+
var leftPadding = Math.ceil(this.effectiveBorderLeftWidth + this.effectivePaddingLeft);
|
|
1039
|
+
var topPadding = Math.ceil(this.effectiveBorderTopWidth + this.effectivePaddingTop);
|
|
1040
|
+
var rightPadding = Math.ceil(this.effectiveBorderRightWidth + this.effectivePaddingRight);
|
|
1041
|
+
var bottomPadding = Math.ceil(this.effectiveBorderBottomWidth + this.effectivePaddingBottom);
|
|
1023
1042
|
if (this._isPaddingRelative) {
|
|
1024
1043
|
nativeView.setPaddingRelative(leftPadding, topPadding, rightPadding, bottomPadding);
|
|
1025
1044
|
}
|
|
@@ -1028,49 +1047,63 @@ export class View extends ViewCommon {
|
|
|
1028
1047
|
}
|
|
1029
1048
|
// reset clear flags
|
|
1030
1049
|
background.clearFlags = 0 /* BackgroundClearFlags.NONE */;
|
|
1031
|
-
}
|
|
1032
|
-
accessibilityAnnouncement
|
|
1050
|
+
};
|
|
1051
|
+
View.prototype.accessibilityAnnouncement = function (message) {
|
|
1052
|
+
if (message === void 0) { message = this.accessibilityLabel; }
|
|
1033
1053
|
this.sendAccessibilityEvent({
|
|
1034
1054
|
androidAccessibilityEvent: AndroidAccessibilityEvent.ANNOUNCEMENT,
|
|
1035
|
-
message,
|
|
1055
|
+
message: message,
|
|
1036
1056
|
});
|
|
1037
|
-
}
|
|
1038
|
-
accessibilityScreenChanged() {
|
|
1057
|
+
};
|
|
1058
|
+
View.prototype.accessibilityScreenChanged = function () {
|
|
1039
1059
|
this.sendAccessibilityEvent({
|
|
1040
1060
|
androidAccessibilityEvent: AndroidAccessibilityEvent.WINDOW_STATE_CHANGED,
|
|
1041
1061
|
});
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
|
|
1062
|
+
};
|
|
1063
|
+
View.androidBackPressedEvent = androidBackPressedEvent;
|
|
1064
|
+
__decorate([
|
|
1065
|
+
profile,
|
|
1066
|
+
__metadata("design:type", Function),
|
|
1067
|
+
__metadata("design:paramtypes", []),
|
|
1068
|
+
__metadata("design:returntype", void 0)
|
|
1069
|
+
], View.prototype, "onLoaded", null);
|
|
1070
|
+
__decorate([
|
|
1071
|
+
profile,
|
|
1072
|
+
__metadata("design:type", Function),
|
|
1073
|
+
__metadata("design:paramtypes", []),
|
|
1074
|
+
__metadata("design:returntype", void 0)
|
|
1075
|
+
], View.prototype, "onUnloaded", null);
|
|
1076
|
+
__decorate([
|
|
1077
|
+
profile,
|
|
1078
|
+
__metadata("design:type", Function),
|
|
1079
|
+
__metadata("design:paramtypes", []),
|
|
1080
|
+
__metadata("design:returntype", void 0)
|
|
1081
|
+
], View.prototype, "requestLayout", null);
|
|
1082
|
+
return View;
|
|
1083
|
+
}(ViewCommon));
|
|
1084
|
+
export { View };
|
|
1085
|
+
var ContainerView = /** @class */ (function (_super) {
|
|
1086
|
+
__extends(ContainerView, _super);
|
|
1087
|
+
function ContainerView() {
|
|
1088
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1089
|
+
}
|
|
1090
|
+
return ContainerView;
|
|
1091
|
+
}(View));
|
|
1092
|
+
export { ContainerView };
|
|
1093
|
+
var CustomLayoutView = /** @class */ (function (_super) {
|
|
1094
|
+
__extends(CustomLayoutView, _super);
|
|
1095
|
+
function CustomLayoutView() {
|
|
1096
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1097
|
+
}
|
|
1098
|
+
CustomLayoutView.prototype.createNativeView = function () {
|
|
1067
1099
|
return new org.nativescript.widgets.ContentLayout(this._context);
|
|
1068
|
-
}
|
|
1069
|
-
_addViewToNativeVisualTree(child, atIndex
|
|
1070
|
-
|
|
1100
|
+
};
|
|
1101
|
+
CustomLayoutView.prototype._addViewToNativeVisualTree = function (child, atIndex) {
|
|
1102
|
+
if (atIndex === void 0) { atIndex = Number.MAX_SAFE_INTEGER; }
|
|
1103
|
+
_super.prototype._addViewToNativeVisualTree.call(this, child);
|
|
1071
1104
|
if (this.nativeViewProtected && child.nativeViewProtected) {
|
|
1072
1105
|
if (Trace.isEnabled()) {
|
|
1073
|
-
Trace.write(
|
|
1106
|
+
Trace.write("".concat(this, ".nativeView.addView(").concat(child, ".nativeView, ").concat(atIndex, ")"), Trace.categories.VisualTreeEvents);
|
|
1074
1107
|
}
|
|
1075
1108
|
this.nativeViewProtected.addView(child.nativeViewProtected, atIndex);
|
|
1076
1109
|
if (child instanceof View) {
|
|
@@ -1079,35 +1112,37 @@ export class CustomLayoutView extends ContainerView {
|
|
|
1079
1112
|
return true;
|
|
1080
1113
|
}
|
|
1081
1114
|
return false;
|
|
1082
|
-
}
|
|
1083
|
-
_updateNativeLayoutParams(child) {
|
|
1115
|
+
};
|
|
1116
|
+
CustomLayoutView.prototype._updateNativeLayoutParams = function (child) {
|
|
1084
1117
|
// noop
|
|
1085
|
-
}
|
|
1086
|
-
_setChildMinWidthNative(child, value) {
|
|
1118
|
+
};
|
|
1119
|
+
CustomLayoutView.prototype._setChildMinWidthNative = function (child, value) {
|
|
1087
1120
|
child._setMinWidthNative(value);
|
|
1088
|
-
}
|
|
1089
|
-
_setChildMinHeightNative(child, value) {
|
|
1121
|
+
};
|
|
1122
|
+
CustomLayoutView.prototype._setChildMinHeightNative = function (child, value) {
|
|
1090
1123
|
child._setMinHeightNative(value);
|
|
1091
|
-
}
|
|
1092
|
-
_removeViewFromNativeVisualTree(child) {
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1124
|
+
};
|
|
1125
|
+
CustomLayoutView.prototype._removeViewFromNativeVisualTree = function (child) {
|
|
1126
|
+
_super.prototype._removeViewFromNativeVisualTree.call(this, child);
|
|
1127
|
+
var nativeView = this.nativeViewProtected;
|
|
1128
|
+
var childView = child.nativeViewProtected;
|
|
1096
1129
|
if (nativeView && childView) {
|
|
1097
1130
|
nativeView.removeView(childView);
|
|
1098
1131
|
if (Trace.isEnabled()) {
|
|
1099
|
-
Trace.write(
|
|
1132
|
+
Trace.write("".concat(nativeView, ".removeView(").concat(childView, ")"), Trace.categories.VisualTreeEvents);
|
|
1100
1133
|
Trace.notifyEvent(child, 'childInLayoutRemovedFromNativeVisualTree');
|
|
1101
1134
|
}
|
|
1102
1135
|
}
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
|
|
1136
|
+
};
|
|
1137
|
+
return CustomLayoutView;
|
|
1138
|
+
}(ContainerView));
|
|
1139
|
+
export { CustomLayoutView };
|
|
1140
|
+
var percentNotSupported = function (view, value) {
|
|
1106
1141
|
throw new Error('PercentLength is not supported.');
|
|
1107
1142
|
};
|
|
1108
1143
|
function createNativePercentLengthProperty(options) {
|
|
1109
|
-
|
|
1110
|
-
|
|
1144
|
+
var getter = options.getter, setter = options.setter, _a = options.auto, auto = _a === void 0 ? 0 : _a;
|
|
1145
|
+
var setPixels, getPixels, setPercent;
|
|
1111
1146
|
if (getter) {
|
|
1112
1147
|
View.prototype[getter] = function () {
|
|
1113
1148
|
if (options) {
|
|
@@ -1116,13 +1151,13 @@ function createNativePercentLengthProperty(options) {
|
|
|
1116
1151
|
setPercent = options.setPercent || percentNotSupported;
|
|
1117
1152
|
options = null;
|
|
1118
1153
|
}
|
|
1119
|
-
|
|
1154
|
+
var value = getPixels(this.nativeViewProtected);
|
|
1120
1155
|
if (value == auto) {
|
|
1121
1156
|
// tslint:disable-line
|
|
1122
1157
|
return 'auto';
|
|
1123
1158
|
}
|
|
1124
1159
|
else {
|
|
1125
|
-
return { value, unit: 'px' };
|
|
1160
|
+
return { value: value, unit: 'px' };
|
|
1126
1161
|
}
|
|
1127
1162
|
};
|
|
1128
1163
|
}
|
|
@@ -1154,7 +1189,7 @@ function createNativePercentLengthProperty(options) {
|
|
|
1154
1189
|
setPercent(this.nativeViewProtected, length.value);
|
|
1155
1190
|
}
|
|
1156
1191
|
else {
|
|
1157
|
-
throw new Error(
|
|
1192
|
+
throw new Error("Unsupported PercentLength ".concat(length));
|
|
1158
1193
|
}
|
|
1159
1194
|
};
|
|
1160
1195
|
}
|