@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
|
@@ -10,19 +10,19 @@ import { paddingTopProperty, paddingRightProperty, paddingBottomProperty, paddin
|
|
|
10
10
|
import { getClass } from '../../../utils/types';
|
|
11
11
|
import { profile } from '../../../profiling';
|
|
12
12
|
import * as ssm from '../../styling/style-scope';
|
|
13
|
-
|
|
13
|
+
var domNodeModule;
|
|
14
14
|
function ensuredomNodeModule() {
|
|
15
15
|
if (!domNodeModule) {
|
|
16
16
|
domNodeModule = require('../../../debugger/dom-node');
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
var styleScopeModule;
|
|
20
20
|
function ensureStyleScopeModule() {
|
|
21
21
|
if (!styleScopeModule) {
|
|
22
22
|
styleScopeModule = require('../../styling/style-scope');
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
var defaultBindingSource = {};
|
|
26
26
|
/**
|
|
27
27
|
* Gets an ancestor from a given type.
|
|
28
28
|
* @param view - Starting view (child view).
|
|
@@ -30,16 +30,16 @@ const defaultBindingSource = {};
|
|
|
30
30
|
* Returns an instance of a view (if found), otherwise undefined.
|
|
31
31
|
*/
|
|
32
32
|
export function getAncestor(view, criterion) {
|
|
33
|
-
|
|
33
|
+
var matcher = null;
|
|
34
34
|
if (typeof criterion === 'string') {
|
|
35
|
-
matcher = (view)
|
|
35
|
+
matcher = function (view) { return view.typeName === criterion; };
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
38
|
-
matcher = (view)
|
|
38
|
+
matcher = function (view) { return view instanceof criterion; };
|
|
39
39
|
}
|
|
40
|
-
for (
|
|
41
|
-
if (matcher(
|
|
42
|
-
return
|
|
40
|
+
for (var parent_1 = view.parent; parent_1 != null; parent_1 = parent_1.parent) {
|
|
41
|
+
if (matcher(parent_1)) {
|
|
42
|
+
return parent_1;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
return null;
|
|
@@ -57,8 +57,8 @@ export function getViewById(view, id) {
|
|
|
57
57
|
if (view.id === id) {
|
|
58
58
|
return view;
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
var retVal;
|
|
61
|
+
var descendantsCallback = function (child) {
|
|
62
62
|
if (child.id === id) {
|
|
63
63
|
retVal = child;
|
|
64
64
|
// break the iteration by returning false
|
|
@@ -82,8 +82,8 @@ export function getViewByDomId(view, domId) {
|
|
|
82
82
|
if (view._domId === domId) {
|
|
83
83
|
return view;
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
var retVal;
|
|
86
|
+
var descendantsCallback = function (child) {
|
|
87
87
|
if (view._domId === domId) {
|
|
88
88
|
retVal = child;
|
|
89
89
|
// break the iteration by returning false
|
|
@@ -105,11 +105,11 @@ export function querySelectorAll(view, selector) {
|
|
|
105
105
|
if (!view) {
|
|
106
106
|
return [];
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
var retVal = [];
|
|
109
109
|
if (view[selector]) {
|
|
110
110
|
retVal.push(view);
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
var descendantsCallback = function (child) {
|
|
113
113
|
if (child[selector]) {
|
|
114
114
|
retVal.push(child);
|
|
115
115
|
}
|
|
@@ -127,8 +127,8 @@ export function eachDescendant(view, callback) {
|
|
|
127
127
|
if (!callback || !view) {
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
var continueIteration;
|
|
131
|
+
var localCallback = function (child) {
|
|
132
132
|
continueIteration = callback(child);
|
|
133
133
|
if (continueIteration) {
|
|
134
134
|
child.eachChild(localCallback);
|
|
@@ -137,7 +137,7 @@ export function eachDescendant(view, callback) {
|
|
|
137
137
|
};
|
|
138
138
|
view.eachChild(localCallback);
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
var viewIdCounter = 1;
|
|
141
141
|
// const contextMap = new WeakMap<Object, Map<string, WeakRef<Object>[]>>();
|
|
142
142
|
// function getNativeView(context: Object, typeName: string): Object {
|
|
143
143
|
// let typeMap = contextMap.get(context);
|
|
@@ -188,125 +188,175 @@ var SuspendType;
|
|
|
188
188
|
}
|
|
189
189
|
SuspendType.toString = toString;
|
|
190
190
|
})(SuspendType || (SuspendType = {}));
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
191
|
+
var DEFAULT_VIEW_PADDINGS = new Map();
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @nsView ViewBase
|
|
195
|
+
*/
|
|
196
|
+
var ViewBase = /** @class */ (function (_super) {
|
|
197
|
+
__extends(ViewBase, _super);
|
|
198
|
+
function ViewBase() {
|
|
199
|
+
var _this = _super.call(this) || this;
|
|
200
|
+
_this._onLoadedCalled = false;
|
|
201
|
+
_this._onUnloadedCalled = false;
|
|
197
202
|
/**
|
|
198
203
|
* Default visual state, defaults to 'normal'
|
|
204
|
+
*
|
|
205
|
+
* @nsProperty
|
|
199
206
|
*/
|
|
200
|
-
|
|
201
|
-
/* "ui/styling/style-scope" */
|
|
202
|
-
|
|
207
|
+
_this.defaultVisualState = 'normal';
|
|
208
|
+
/* "ui/styling/style-scope" */ _this._cssState = new ssm.CssState(new WeakRef(_this));
|
|
209
|
+
_this.pseudoClassAliases = {
|
|
203
210
|
highlighted: ['active', 'pressed'],
|
|
204
211
|
};
|
|
205
|
-
this.cssClasses = new Set();
|
|
206
|
-
this.cssPseudoClasses = new Set();
|
|
207
212
|
/**
|
|
208
213
|
* if _setupAsRootView is called it means it is not supposed to be
|
|
209
214
|
* added to a parent. However parent can be set before for the purpose
|
|
210
215
|
* of CSS variables/classes. That variable ensures that _addViewToNativeVisualTree
|
|
211
216
|
* is not called in _setupAsRootView
|
|
212
217
|
*/
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
218
|
+
_this.mIsRootView = false;
|
|
219
|
+
_this._domId = viewIdCounter++;
|
|
220
|
+
_this._style = new Style(new WeakRef(_this));
|
|
221
|
+
_this.cssClasses = new Set();
|
|
222
|
+
_this.cssPseudoClasses = new Set();
|
|
223
|
+
_this.cssPseudoClasses.add(_this.defaultVisualState);
|
|
224
|
+
_this.notify({ eventName: ViewBase.createdEvent, type: _this.constructor.name, object: _this });
|
|
225
|
+
return _this;
|
|
226
|
+
}
|
|
227
|
+
Object.defineProperty(ViewBase.prototype, "parentNode", {
|
|
228
|
+
// Used in Angular. TODO: remove from here
|
|
229
|
+
/**
|
|
230
|
+
* Gets the template parent or the native parent. Sets the template parent.
|
|
231
|
+
*/
|
|
232
|
+
get: function () {
|
|
233
|
+
return this._templateParent || this.parent;
|
|
234
|
+
},
|
|
235
|
+
set: function (node) {
|
|
236
|
+
this._templateParent = node;
|
|
237
|
+
},
|
|
238
|
+
enumerable: false,
|
|
239
|
+
configurable: true
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(ViewBase.prototype, "nativeView", {
|
|
242
|
+
get: function () {
|
|
243
|
+
// this._disableNativeViewRecycling = true;
|
|
244
|
+
return this.nativeViewProtected;
|
|
245
|
+
},
|
|
246
|
+
set: function (value) {
|
|
247
|
+
this.setNativeView(value);
|
|
248
|
+
},
|
|
249
|
+
enumerable: false,
|
|
250
|
+
configurable: true
|
|
251
|
+
});
|
|
252
|
+
Object.defineProperty(ViewBase.prototype, "typeName", {
|
|
253
|
+
// TODO: Use Type.prototype.typeName instead.
|
|
254
|
+
/**
|
|
255
|
+
* Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button".
|
|
256
|
+
*/
|
|
257
|
+
get: function () {
|
|
258
|
+
return getClass(this);
|
|
259
|
+
},
|
|
260
|
+
enumerable: false,
|
|
261
|
+
configurable: true
|
|
262
|
+
});
|
|
263
|
+
Object.defineProperty(ViewBase.prototype, "style", {
|
|
264
|
+
/**
|
|
265
|
+
* Gets the style object associated to this view.
|
|
266
|
+
*/
|
|
267
|
+
get: function () {
|
|
268
|
+
return this._style;
|
|
269
|
+
},
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @nsProperty
|
|
273
|
+
*/
|
|
274
|
+
set: function (inlineStyle /* | string */) {
|
|
275
|
+
if (typeof inlineStyle === 'string') {
|
|
276
|
+
this.setInlineStyle(inlineStyle);
|
|
277
|
+
}
|
|
278
|
+
else {
|
|
279
|
+
throw new Error('View.style property is read-only.');
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
enumerable: false,
|
|
283
|
+
configurable: true
|
|
284
|
+
});
|
|
285
|
+
Object.defineProperty(ViewBase.prototype, "android", {
|
|
286
|
+
get: function () {
|
|
287
|
+
// this._disableNativeViewRecycling = true;
|
|
288
|
+
return this._androidView;
|
|
289
|
+
},
|
|
290
|
+
enumerable: false,
|
|
291
|
+
configurable: true
|
|
292
|
+
});
|
|
293
|
+
Object.defineProperty(ViewBase.prototype, "ios", {
|
|
294
|
+
get: function () {
|
|
295
|
+
// this._disableNativeViewRecycling = true;
|
|
296
|
+
return this._iosView;
|
|
297
|
+
},
|
|
298
|
+
enumerable: false,
|
|
299
|
+
configurable: true
|
|
300
|
+
});
|
|
301
|
+
Object.defineProperty(ViewBase.prototype, "isLoaded", {
|
|
302
|
+
get: function () {
|
|
303
|
+
return this._isLoaded;
|
|
304
|
+
},
|
|
305
|
+
enumerable: false,
|
|
306
|
+
configurable: true
|
|
307
|
+
});
|
|
308
|
+
Object.defineProperty(ViewBase.prototype, 'class', {
|
|
309
|
+
get: function () {
|
|
310
|
+
return this.className;
|
|
311
|
+
},
|
|
312
|
+
set: function (v) {
|
|
313
|
+
this.className = v;
|
|
314
|
+
},
|
|
315
|
+
enumerable: false,
|
|
316
|
+
configurable: true
|
|
317
|
+
});
|
|
273
318
|
/**
|
|
274
319
|
* Returns the child view with the specified id.
|
|
275
320
|
*/
|
|
276
|
-
getViewById(id) {
|
|
321
|
+
ViewBase.prototype.getViewById = function (id) {
|
|
277
322
|
return getViewById(this, id);
|
|
278
|
-
}
|
|
323
|
+
};
|
|
279
324
|
/**
|
|
280
325
|
* Returns the child view with the specified domId.
|
|
281
326
|
*/
|
|
282
|
-
getViewByDomId(domId) {
|
|
327
|
+
ViewBase.prototype.getViewByDomId = function (domId) {
|
|
283
328
|
return getViewByDomId(this, domId);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
329
|
+
};
|
|
330
|
+
Object.defineProperty(ViewBase.prototype, "page", {
|
|
331
|
+
/**
|
|
332
|
+
* Gets owner page. This is a read-only property.
|
|
333
|
+
*/
|
|
334
|
+
get: function () {
|
|
335
|
+
if (this.parent) {
|
|
336
|
+
return this.parent.page;
|
|
337
|
+
}
|
|
338
|
+
return null;
|
|
339
|
+
},
|
|
340
|
+
enumerable: false,
|
|
341
|
+
configurable: true
|
|
342
|
+
});
|
|
294
343
|
/**
|
|
295
344
|
* @unstable
|
|
296
345
|
* Ensures a dom-node for this view.
|
|
297
346
|
*/
|
|
298
|
-
ensureDomNode() {
|
|
347
|
+
ViewBase.prototype.ensureDomNode = function () {
|
|
299
348
|
if (!this.domNode) {
|
|
300
349
|
ensuredomNodeModule();
|
|
301
350
|
this.domNode = new domNodeModule.DOMNode(this);
|
|
302
351
|
}
|
|
303
|
-
}
|
|
352
|
+
};
|
|
304
353
|
// Overridden so we don't raise `propertyChange`
|
|
305
354
|
// The property will raise its own event.
|
|
306
|
-
set(name, value) {
|
|
355
|
+
ViewBase.prototype.set = function (name, value) {
|
|
307
356
|
this[name] = WrappedValue.unwrap(value);
|
|
308
|
-
}
|
|
309
|
-
onLoaded() {
|
|
357
|
+
};
|
|
358
|
+
ViewBase.prototype.onLoaded = function () {
|
|
359
|
+
var _this = this;
|
|
310
360
|
this.setFlag(Flags.superOnLoadedCalled, true);
|
|
311
361
|
if (this._isLoaded) {
|
|
312
362
|
return;
|
|
@@ -314,57 +364,58 @@ export class ViewBase extends Observable {
|
|
|
314
364
|
this._isLoaded = true;
|
|
315
365
|
this._cssState.onLoaded();
|
|
316
366
|
this._resumeNativeUpdates(SuspendType.Loaded);
|
|
317
|
-
this.eachChild((child)
|
|
318
|
-
|
|
367
|
+
this.eachChild(function (child) {
|
|
368
|
+
_this.loadView(child);
|
|
319
369
|
return true;
|
|
320
370
|
});
|
|
321
371
|
this._emit('loaded');
|
|
322
|
-
}
|
|
323
|
-
onUnloaded() {
|
|
372
|
+
};
|
|
373
|
+
ViewBase.prototype.onUnloaded = function () {
|
|
374
|
+
var _this = this;
|
|
324
375
|
this.setFlag(Flags.superOnUnloadedCalled, true);
|
|
325
376
|
if (!this._isLoaded) {
|
|
326
377
|
return;
|
|
327
378
|
}
|
|
328
379
|
this._suspendNativeUpdates(SuspendType.Loaded);
|
|
329
|
-
this.eachChild((child)
|
|
330
|
-
|
|
380
|
+
this.eachChild(function (child) {
|
|
381
|
+
_this.unloadView(child);
|
|
331
382
|
return true;
|
|
332
383
|
});
|
|
333
384
|
this._isLoaded = false;
|
|
334
385
|
this._cssState.onUnloaded();
|
|
335
386
|
this._emit('unloaded');
|
|
336
|
-
}
|
|
337
|
-
_layoutParent() {
|
|
387
|
+
};
|
|
388
|
+
ViewBase.prototype._layoutParent = function () {
|
|
338
389
|
if (this.parent) {
|
|
339
390
|
this.parent._layoutParent();
|
|
340
391
|
}
|
|
341
|
-
}
|
|
342
|
-
_suspendNativeUpdates(type) {
|
|
392
|
+
};
|
|
393
|
+
ViewBase.prototype._suspendNativeUpdates = function (type) {
|
|
343
394
|
if (type) {
|
|
344
395
|
this._suspendNativeUpdatesCount = this._suspendNativeUpdatesCount | type;
|
|
345
396
|
}
|
|
346
397
|
else {
|
|
347
398
|
this._suspendNativeUpdatesCount++;
|
|
348
399
|
}
|
|
349
|
-
}
|
|
350
|
-
_resumeNativeUpdates(type) {
|
|
400
|
+
};
|
|
401
|
+
ViewBase.prototype._resumeNativeUpdates = function (type) {
|
|
351
402
|
if (type) {
|
|
352
403
|
this._suspendNativeUpdatesCount = this._suspendNativeUpdatesCount & ~type;
|
|
353
404
|
}
|
|
354
405
|
else {
|
|
355
406
|
if ((this._suspendNativeUpdatesCount & SuspendType.IncrementalCountMask) === 0) {
|
|
356
|
-
throw new Error(
|
|
407
|
+
throw new Error("Invalid call to ".concat(this, "._resumeNativeUpdates"));
|
|
357
408
|
}
|
|
358
409
|
this._suspendNativeUpdatesCount--;
|
|
359
410
|
}
|
|
360
411
|
if (!this._suspendNativeUpdatesCount) {
|
|
361
412
|
this.onResumeNativeUpdates();
|
|
362
413
|
}
|
|
363
|
-
}
|
|
414
|
+
};
|
|
364
415
|
/**
|
|
365
416
|
* Allow multiple updates to be performed on the instance at once.
|
|
366
417
|
*/
|
|
367
|
-
_batchUpdate(callback) {
|
|
418
|
+
ViewBase.prototype._batchUpdate = function (callback) {
|
|
368
419
|
try {
|
|
369
420
|
this._suspendNativeUpdates(SuspendType.Incremental);
|
|
370
421
|
return callback();
|
|
@@ -372,8 +423,8 @@ export class ViewBase extends Observable {
|
|
|
372
423
|
finally {
|
|
373
424
|
this._resumeNativeUpdates(SuspendType.Incremental);
|
|
374
425
|
}
|
|
375
|
-
}
|
|
376
|
-
setFlag(flag, value) {
|
|
426
|
+
};
|
|
427
|
+
ViewBase.prototype.setFlag = function (flag, value) {
|
|
377
428
|
switch (flag) {
|
|
378
429
|
case Flags.superOnLoadedCalled:
|
|
379
430
|
this._onLoadedCalled = value;
|
|
@@ -382,89 +433,91 @@ export class ViewBase extends Observable {
|
|
|
382
433
|
this._onUnloadedCalled = value;
|
|
383
434
|
break;
|
|
384
435
|
}
|
|
385
|
-
}
|
|
386
|
-
isFlagSet(flag) {
|
|
436
|
+
};
|
|
437
|
+
ViewBase.prototype.isFlagSet = function (flag) {
|
|
387
438
|
switch (flag) {
|
|
388
439
|
case Flags.superOnLoadedCalled:
|
|
389
440
|
return this._onLoadedCalled;
|
|
390
441
|
case Flags.superOnUnloadedCalled:
|
|
391
442
|
return this._onUnloadedCalled;
|
|
392
443
|
}
|
|
393
|
-
}
|
|
394
|
-
callFunctionWithSuper(flag, func) {
|
|
444
|
+
};
|
|
445
|
+
ViewBase.prototype.callFunctionWithSuper = function (flag, func) {
|
|
395
446
|
this.setFlag(flag, false);
|
|
396
447
|
func();
|
|
397
448
|
if (!this.isFlagSet(flag)) {
|
|
398
|
-
throw new Error(
|
|
449
|
+
throw new Error("super.".concat(flag, " not called in ").concat(this));
|
|
399
450
|
}
|
|
400
|
-
}
|
|
401
|
-
callLoaded() {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
451
|
+
};
|
|
452
|
+
ViewBase.prototype.callLoaded = function () {
|
|
453
|
+
var _this = this;
|
|
454
|
+
this.callFunctionWithSuper(Flags.superOnLoadedCalled, function () { return _this.onLoaded(); });
|
|
455
|
+
};
|
|
456
|
+
ViewBase.prototype.callUnloaded = function () {
|
|
457
|
+
var _this = this;
|
|
458
|
+
this.callFunctionWithSuper(Flags.superOnUnloadedCalled, function () { return _this.onUnloaded(); });
|
|
459
|
+
};
|
|
460
|
+
ViewBase.prototype.notifyPseudoClassChanged = function (pseudoClass) {
|
|
408
461
|
this.notify({ eventName: ':' + pseudoClass, object: this });
|
|
409
|
-
}
|
|
410
|
-
getAllAliasedStates(name) {
|
|
411
|
-
|
|
412
|
-
allStates.push(name);
|
|
462
|
+
};
|
|
463
|
+
ViewBase.prototype.getAllAliasedStates = function (name) {
|
|
464
|
+
var allStates = [name];
|
|
413
465
|
if (name in this.pseudoClassAliases) {
|
|
414
|
-
for (
|
|
466
|
+
for (var i = 0, length_1 = this.pseudoClassAliases[name].length; i < length_1; i++) {
|
|
415
467
|
allStates.push(this.pseudoClassAliases[name][i]);
|
|
416
468
|
}
|
|
417
469
|
}
|
|
418
470
|
return allStates;
|
|
419
|
-
}
|
|
471
|
+
};
|
|
420
472
|
/**
|
|
421
473
|
* @protected
|
|
422
474
|
* @unstable
|
|
423
475
|
* A widget can call this method to add a matching css pseudo class.
|
|
424
476
|
*/
|
|
425
|
-
addPseudoClass(name) {
|
|
426
|
-
|
|
427
|
-
for (
|
|
477
|
+
ViewBase.prototype.addPseudoClass = function (name) {
|
|
478
|
+
var allStates = this.getAllAliasedStates(name);
|
|
479
|
+
for (var i = 0, length_2 = allStates.length; i < length_2; i++) {
|
|
428
480
|
if (!this.cssPseudoClasses.has(allStates[i])) {
|
|
429
481
|
this.cssPseudoClasses.add(allStates[i]);
|
|
430
482
|
this.notifyPseudoClassChanged(allStates[i]);
|
|
431
483
|
}
|
|
432
484
|
}
|
|
433
|
-
}
|
|
485
|
+
};
|
|
434
486
|
/**
|
|
435
487
|
* @protected
|
|
436
488
|
* @unstable
|
|
437
489
|
* A widget can call this method to discard matching css pseudo class.
|
|
438
490
|
*/
|
|
439
|
-
deletePseudoClass(name) {
|
|
440
|
-
|
|
441
|
-
for (
|
|
491
|
+
ViewBase.prototype.deletePseudoClass = function (name) {
|
|
492
|
+
var allStates = this.getAllAliasedStates(name);
|
|
493
|
+
for (var i = 0, length_3 = allStates.length; i < length_3; i++) {
|
|
442
494
|
if (this.cssPseudoClasses.has(allStates[i])) {
|
|
443
495
|
this.cssPseudoClasses.delete(allStates[i]);
|
|
444
496
|
this.notifyPseudoClassChanged(allStates[i]);
|
|
445
497
|
}
|
|
446
498
|
}
|
|
447
|
-
}
|
|
448
|
-
bindingContextChanged(data) {
|
|
499
|
+
};
|
|
500
|
+
ViewBase.prototype.bindingContextChanged = function (data) {
|
|
449
501
|
this.bindings.get('bindingContext').bind(data.value);
|
|
450
|
-
}
|
|
451
|
-
bind(options, source
|
|
452
|
-
|
|
502
|
+
};
|
|
503
|
+
ViewBase.prototype.bind = function (options, source) {
|
|
504
|
+
if (source === void 0) { source = defaultBindingSource; }
|
|
505
|
+
var targetProperty = options.targetProperty;
|
|
453
506
|
this.unbind(targetProperty);
|
|
454
507
|
if (!this.bindings) {
|
|
455
508
|
this.bindings = new Map();
|
|
456
509
|
}
|
|
457
|
-
|
|
510
|
+
var binding = new Binding(this, options);
|
|
458
511
|
this.bindings.set(targetProperty, binding);
|
|
459
|
-
|
|
512
|
+
var bindingSource = source;
|
|
460
513
|
if (bindingSource === defaultBindingSource) {
|
|
461
514
|
bindingSource = this.bindingContext;
|
|
462
515
|
binding.sourceIsBindingContext = true;
|
|
463
516
|
if (targetProperty === 'bindingContext') {
|
|
464
517
|
this.bindingContextBoundToParentBindingContextChanged = true;
|
|
465
|
-
|
|
466
|
-
if (
|
|
467
|
-
|
|
518
|
+
var parent_2 = this.parent;
|
|
519
|
+
if (parent_2) {
|
|
520
|
+
parent_2.on('bindingContextChange', this.bindingContextChanged, this);
|
|
468
521
|
}
|
|
469
522
|
else {
|
|
470
523
|
this.shouldAddHandlerToParentBindingContextChanged = true;
|
|
@@ -472,13 +525,13 @@ export class ViewBase extends Observable {
|
|
|
472
525
|
}
|
|
473
526
|
}
|
|
474
527
|
binding.bind(bindingSource);
|
|
475
|
-
}
|
|
476
|
-
unbind(property) {
|
|
477
|
-
|
|
528
|
+
};
|
|
529
|
+
ViewBase.prototype.unbind = function (property) {
|
|
530
|
+
var bindings = this.bindings;
|
|
478
531
|
if (!bindings) {
|
|
479
532
|
return;
|
|
480
533
|
}
|
|
481
|
-
|
|
534
|
+
var binding = bindings.get(property);
|
|
482
535
|
if (binding) {
|
|
483
536
|
binding.unbind();
|
|
484
537
|
bindings.delete(property);
|
|
@@ -486,51 +539,53 @@ export class ViewBase extends Observable {
|
|
|
486
539
|
if (property === 'bindingContext') {
|
|
487
540
|
this.shouldAddHandlerToParentBindingContextChanged = false;
|
|
488
541
|
this.bindingContextBoundToParentBindingContextChanged = false;
|
|
489
|
-
|
|
490
|
-
if (
|
|
491
|
-
|
|
542
|
+
var parent_3 = this.parent;
|
|
543
|
+
if (parent_3) {
|
|
544
|
+
parent_3.off('bindingContextChange', this.bindingContextChanged, this);
|
|
492
545
|
}
|
|
493
546
|
}
|
|
494
547
|
}
|
|
495
548
|
}
|
|
496
|
-
}
|
|
497
|
-
performLayout
|
|
549
|
+
};
|
|
550
|
+
ViewBase.prototype.performLayout = function (currentRun) {
|
|
551
|
+
var _this = this;
|
|
552
|
+
if (currentRun === void 0) { currentRun = 0; }
|
|
498
553
|
// if there's an animation in progress we need to delay the layout
|
|
499
554
|
// we've added a guard of 5000 milliseconds execution
|
|
500
555
|
// to make sure that the layout will happen even if the animation haven't finished in 5 seconds
|
|
501
556
|
if (this._shouldDelayLayout() && currentRun < 100) {
|
|
502
|
-
setTimeout(()
|
|
557
|
+
setTimeout(function () { return _this.performLayout(currentRun); }, currentRun);
|
|
503
558
|
currentRun++;
|
|
504
559
|
}
|
|
505
560
|
else {
|
|
506
561
|
this.parent.requestLayout();
|
|
507
562
|
}
|
|
508
|
-
}
|
|
563
|
+
};
|
|
509
564
|
/**
|
|
510
565
|
* Invalidates the layout of the view and triggers a new layout pass.
|
|
511
566
|
*/
|
|
512
|
-
requestLayout() {
|
|
567
|
+
ViewBase.prototype.requestLayout = function () {
|
|
513
568
|
// Default implementation for non View instances (like TabViewItem).
|
|
514
|
-
|
|
569
|
+
var parent = this.parent;
|
|
515
570
|
if (parent) {
|
|
516
571
|
this.performLayout();
|
|
517
572
|
}
|
|
518
|
-
}
|
|
573
|
+
};
|
|
519
574
|
/**
|
|
520
575
|
* Iterates over children of type ViewBase.
|
|
521
576
|
* @param callback Called for each child of type ViewBase. Iteration stops if this method returns falsy value.
|
|
522
577
|
*/
|
|
523
|
-
eachChild(callback) {
|
|
578
|
+
ViewBase.prototype.eachChild = function (callback) {
|
|
524
579
|
//
|
|
525
|
-
}
|
|
526
|
-
_inheritStyles(view) {
|
|
580
|
+
};
|
|
581
|
+
ViewBase.prototype._inheritStyles = function (view) {
|
|
527
582
|
propagateInheritableProperties(this, view);
|
|
528
583
|
view._inheritStyleScope(this._styleScope);
|
|
529
584
|
propagateInheritableCssProperties(this.style, view.style);
|
|
530
|
-
}
|
|
531
|
-
_addView(view, atIndex) {
|
|
585
|
+
};
|
|
586
|
+
ViewBase.prototype._addView = function (view, atIndex) {
|
|
532
587
|
if (Trace.isEnabled()) {
|
|
533
|
-
Trace.write(
|
|
588
|
+
Trace.write("".concat(this, "._addView(").concat(view, ", ").concat(atIndex, ")"), Trace.categories.ViewHierarchy);
|
|
534
589
|
}
|
|
535
590
|
if (!view) {
|
|
536
591
|
throw new Error('Expecting a valid View instance.');
|
|
@@ -547,11 +602,11 @@ export class ViewBase extends Observable {
|
|
|
547
602
|
if (this.domNode) {
|
|
548
603
|
this.domNode.onChildAdded(view);
|
|
549
604
|
}
|
|
550
|
-
}
|
|
605
|
+
};
|
|
551
606
|
/**
|
|
552
607
|
* Method is intended to be overridden by inheritors and used as "protected"
|
|
553
608
|
*/
|
|
554
|
-
_addViewCore(view, atIndex) {
|
|
609
|
+
ViewBase.prototype._addViewCore = function (view, atIndex) {
|
|
555
610
|
this._inheritStyles(view);
|
|
556
611
|
if (this._context) {
|
|
557
612
|
view._setupUI(this._context, atIndex);
|
|
@@ -559,38 +614,38 @@ export class ViewBase extends Observable {
|
|
|
559
614
|
if (this._isLoaded) {
|
|
560
615
|
this.loadView(view);
|
|
561
616
|
}
|
|
562
|
-
}
|
|
617
|
+
};
|
|
563
618
|
/**
|
|
564
619
|
* Load view.
|
|
565
620
|
* @param view to load.
|
|
566
621
|
*/
|
|
567
|
-
loadView(view) {
|
|
622
|
+
ViewBase.prototype.loadView = function (view) {
|
|
568
623
|
if (view && !view.isLoaded) {
|
|
569
624
|
view.callLoaded();
|
|
570
625
|
}
|
|
571
|
-
}
|
|
626
|
+
};
|
|
572
627
|
/**
|
|
573
628
|
* When returning true the callLoaded method will be run in setTimeout
|
|
574
629
|
* Method is intended to be overridden by inheritors and used as "protected"
|
|
575
630
|
*/
|
|
576
|
-
_shouldDelayLayout() {
|
|
631
|
+
ViewBase.prototype._shouldDelayLayout = function () {
|
|
577
632
|
return false;
|
|
578
|
-
}
|
|
633
|
+
};
|
|
579
634
|
/**
|
|
580
635
|
* Unload view.
|
|
581
636
|
* @param view to unload.
|
|
582
637
|
*/
|
|
583
|
-
unloadView(view) {
|
|
638
|
+
ViewBase.prototype.unloadView = function (view) {
|
|
584
639
|
if (view && view.isLoaded) {
|
|
585
640
|
view.callUnloaded();
|
|
586
641
|
}
|
|
587
|
-
}
|
|
642
|
+
};
|
|
588
643
|
/**
|
|
589
644
|
* Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation.
|
|
590
645
|
*/
|
|
591
|
-
_removeView(view) {
|
|
646
|
+
ViewBase.prototype._removeView = function (view) {
|
|
592
647
|
if (Trace.isEnabled()) {
|
|
593
|
-
Trace.write(
|
|
648
|
+
Trace.write("".concat(this, "._removeView(").concat(view, ")"), Trace.categories.ViewHierarchy);
|
|
594
649
|
}
|
|
595
650
|
if (view.parent !== this) {
|
|
596
651
|
throw new Error('View not added to this instance. View: ' + view + ' CurrentParent: ' + view.parent + ' ExpectedParent: ' + this);
|
|
@@ -601,27 +656,27 @@ export class ViewBase extends Observable {
|
|
|
601
656
|
this._removeViewCore(view);
|
|
602
657
|
view.parent = undefined;
|
|
603
658
|
view._parentChanged(this);
|
|
604
|
-
}
|
|
659
|
+
};
|
|
605
660
|
/**
|
|
606
661
|
* Method is intended to be overridden by inheritors and used as "protected"
|
|
607
662
|
*/
|
|
608
|
-
_removeViewCore(view) {
|
|
663
|
+
ViewBase.prototype._removeViewCore = function (view) {
|
|
609
664
|
this.unloadView(view);
|
|
610
665
|
if (view._context) {
|
|
611
666
|
view._tearDownUI();
|
|
612
667
|
}
|
|
613
|
-
}
|
|
668
|
+
};
|
|
614
669
|
/**
|
|
615
670
|
* Creates a native view.
|
|
616
671
|
* Returns either android.view.View or UIView.
|
|
617
672
|
*/
|
|
618
|
-
createNativeView() {
|
|
673
|
+
ViewBase.prototype.createNativeView = function () {
|
|
619
674
|
return undefined;
|
|
620
|
-
}
|
|
675
|
+
};
|
|
621
676
|
/**
|
|
622
677
|
* Clean up references to the native view.
|
|
623
678
|
*/
|
|
624
|
-
disposeNativeView() {
|
|
679
|
+
ViewBase.prototype.disposeNativeView = function () {
|
|
625
680
|
// Unset those values so that view will check for resize after being removed and re-added to view-tree
|
|
626
681
|
this._oldLeft = 0;
|
|
627
682
|
this._oldTop = 0;
|
|
@@ -631,20 +686,20 @@ export class ViewBase extends Observable {
|
|
|
631
686
|
eventName: ViewBase.disposeNativeViewEvent,
|
|
632
687
|
object: this,
|
|
633
688
|
});
|
|
634
|
-
}
|
|
689
|
+
};
|
|
635
690
|
/**
|
|
636
691
|
* Initializes properties/listeners of the native view.
|
|
637
692
|
*/
|
|
638
|
-
initNativeView() {
|
|
693
|
+
ViewBase.prototype.initNativeView = function () {
|
|
639
694
|
//
|
|
640
|
-
}
|
|
695
|
+
};
|
|
641
696
|
/**
|
|
642
697
|
* Resets properties/listeners set to the native view.
|
|
643
698
|
*/
|
|
644
|
-
resetNativeView() {
|
|
699
|
+
ViewBase.prototype.resetNativeView = function () {
|
|
645
700
|
//
|
|
646
|
-
}
|
|
647
|
-
resetNativeViewInternal() {
|
|
701
|
+
};
|
|
702
|
+
ViewBase.prototype.resetNativeViewInternal = function () {
|
|
648
703
|
// const nativeView = this.nativeViewProtected;
|
|
649
704
|
// if (nativeView && __ANDROID__) {
|
|
650
705
|
// const recycle = this.recycleNativeView;
|
|
@@ -661,23 +716,23 @@ export class ViewBase extends Observable {
|
|
|
661
716
|
// if (this._cssState) {
|
|
662
717
|
// this._cancelAllAnimations();
|
|
663
718
|
// }
|
|
664
|
-
}
|
|
665
|
-
_setupAsRootView(context) {
|
|
719
|
+
};
|
|
720
|
+
ViewBase.prototype._setupAsRootView = function (context) {
|
|
666
721
|
this.mIsRootView = true;
|
|
667
722
|
this._setupUI(context);
|
|
668
723
|
this.mIsRootView = false;
|
|
669
|
-
}
|
|
724
|
+
};
|
|
670
725
|
/**
|
|
671
726
|
* Setups the UI for ViewBase and all its children recursively.
|
|
672
727
|
* This method should *not* be overridden by derived views.
|
|
673
728
|
*/
|
|
674
|
-
_setupUI(context /* android.content.Context */, atIndex, parentIsLoaded) {
|
|
729
|
+
ViewBase.prototype._setupUI = function (context /* android.content.Context */, atIndex, parentIsLoaded) {
|
|
675
730
|
if (this._context === context) {
|
|
676
731
|
// this check is unnecessary as this function should never be called when this._context === context as it means the view was somehow detached,
|
|
677
732
|
// which is only possible by setting reusable = true. Adding it either way for feature flag safety
|
|
678
733
|
if (this.reusable) {
|
|
679
734
|
if (!this.mIsRootView && this.parent && !this._isAddedToNativeVisualTree) {
|
|
680
|
-
|
|
735
|
+
var nativeIndex = this.parent._childIndexToNativeChildIndex(atIndex);
|
|
681
736
|
this._isAddedToNativeVisualTree = this.parent._addViewToNativeVisualTree(this, nativeIndex);
|
|
682
737
|
}
|
|
683
738
|
}
|
|
@@ -689,7 +744,7 @@ export class ViewBase extends Observable {
|
|
|
689
744
|
this._context = context;
|
|
690
745
|
// This will account for nativeView that is created in createNativeView, recycled
|
|
691
746
|
// or for backward compatibility - set before _setupUI in iOS constructor.
|
|
692
|
-
|
|
747
|
+
var nativeView = this.nativeViewProtected;
|
|
693
748
|
// if (__ANDROID__) {
|
|
694
749
|
// const recycle = this.recycleNativeView;
|
|
695
750
|
// if (recycle === "always" || (recycle === "auto" && !this._disableNativeViewRecycling)) {
|
|
@@ -705,11 +760,11 @@ export class ViewBase extends Observable {
|
|
|
705
760
|
if (this._androidView !== nativeView || !this.reusable) {
|
|
706
761
|
this._androidView = nativeView;
|
|
707
762
|
if (nativeView) {
|
|
708
|
-
|
|
763
|
+
var className = this.constructor.name;
|
|
709
764
|
if (this._isPaddingRelative === undefined) {
|
|
710
765
|
this._isPaddingRelative = nativeView.isPaddingRelative();
|
|
711
766
|
}
|
|
712
|
-
|
|
767
|
+
var result /* android.graphics.Rect */ = DEFAULT_VIEW_PADDINGS.get(className) || nativeView.defaultPaddings;
|
|
713
768
|
if (result === undefined) {
|
|
714
769
|
DEFAULT_VIEW_PADDINGS.set(className, org.nativescript.widgets.ViewHelper.getPadding(nativeView));
|
|
715
770
|
nativeView.defaultPaddings = DEFAULT_VIEW_PADDINGS.get(className);
|
|
@@ -722,7 +777,7 @@ export class ViewBase extends Observable {
|
|
|
722
777
|
this._defaultPaddingRight = result.right;
|
|
723
778
|
this._defaultPaddingBottom = result.bottom;
|
|
724
779
|
this._defaultPaddingLeft = result.left;
|
|
725
|
-
|
|
780
|
+
var style = this.style;
|
|
726
781
|
if (!paddingTopProperty.isSet(style)) {
|
|
727
782
|
this.effectivePaddingTop = this._defaultPaddingTop;
|
|
728
783
|
}
|
|
@@ -743,21 +798,21 @@ export class ViewBase extends Observable {
|
|
|
743
798
|
}
|
|
744
799
|
this.setNativeView(nativeView);
|
|
745
800
|
if (!this.mIsRootView && this.parent) {
|
|
746
|
-
|
|
801
|
+
var nativeIndex = this.parent._childIndexToNativeChildIndex(atIndex);
|
|
747
802
|
this._isAddedToNativeVisualTree = this.parent._addViewToNativeVisualTree(this, nativeIndex);
|
|
748
803
|
}
|
|
749
804
|
this._resumeNativeUpdates(SuspendType.UISetup);
|
|
750
|
-
this.eachChild((child)
|
|
805
|
+
this.eachChild(function (child) {
|
|
751
806
|
child._setupUI(context);
|
|
752
807
|
return true;
|
|
753
808
|
});
|
|
754
|
-
}
|
|
809
|
+
};
|
|
755
810
|
/**
|
|
756
811
|
* Set the nativeView field performing extra checks and updates to the native properties on the new view.
|
|
757
812
|
* Use in cases where the createNativeView is not suitable.
|
|
758
813
|
* As an example use in item controls where the native parent view will create the native views for child items.
|
|
759
814
|
*/
|
|
760
|
-
setNativeView(value) {
|
|
815
|
+
ViewBase.prototype.setNativeView = function (value) {
|
|
761
816
|
if (this.__nativeView === value) {
|
|
762
817
|
return;
|
|
763
818
|
}
|
|
@@ -771,30 +826,30 @@ export class ViewBase extends Observable {
|
|
|
771
826
|
this.initNativeView();
|
|
772
827
|
this._resumeNativeUpdates(SuspendType.NativeView);
|
|
773
828
|
}
|
|
774
|
-
}
|
|
829
|
+
};
|
|
775
830
|
/**
|
|
776
831
|
* Tears down the UI of a reusable node by making it no longer reusable.
|
|
777
832
|
* @see _tearDownUI
|
|
778
833
|
* @param forceDestroyChildren Force destroy the children (even if they are reusable)
|
|
779
834
|
*/
|
|
780
|
-
destroyNode(forceDestroyChildren) {
|
|
835
|
+
ViewBase.prototype.destroyNode = function (forceDestroyChildren) {
|
|
781
836
|
this.reusable = false;
|
|
782
837
|
this.callUnloaded();
|
|
783
838
|
this._tearDownUI(forceDestroyChildren);
|
|
784
|
-
}
|
|
839
|
+
};
|
|
785
840
|
/**
|
|
786
841
|
* Tears down the UI for ViewBase and all its children recursively.
|
|
787
842
|
* This method should *not* be overridden by derived views.
|
|
788
843
|
*/
|
|
789
|
-
_tearDownUI(force) {
|
|
844
|
+
ViewBase.prototype._tearDownUI = function (force) {
|
|
790
845
|
// No context means we are already teared down.
|
|
791
846
|
if (!this._context) {
|
|
792
847
|
return;
|
|
793
848
|
}
|
|
794
|
-
|
|
849
|
+
var preserveNativeView = this.reusable && !force;
|
|
795
850
|
this.resetNativeViewInternal();
|
|
796
851
|
if (!preserveNativeView) {
|
|
797
|
-
this.eachChild((child)
|
|
852
|
+
this.eachChild(function (child) {
|
|
798
853
|
child._tearDownUI(force);
|
|
799
854
|
return true;
|
|
800
855
|
});
|
|
@@ -831,30 +886,51 @@ export class ViewBase extends Observable {
|
|
|
831
886
|
this.domNode.dispose();
|
|
832
887
|
this.domNode = undefined;
|
|
833
888
|
}
|
|
834
|
-
}
|
|
835
|
-
_childIndexToNativeChildIndex(index) {
|
|
889
|
+
};
|
|
890
|
+
ViewBase.prototype._childIndexToNativeChildIndex = function (index) {
|
|
836
891
|
return index;
|
|
837
|
-
}
|
|
892
|
+
};
|
|
838
893
|
/**
|
|
839
894
|
* Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise.
|
|
840
895
|
* Method is intended to be overridden by inheritors and used as "protected".
|
|
841
896
|
*/
|
|
842
|
-
_addViewToNativeVisualTree(view, atIndex) {
|
|
897
|
+
ViewBase.prototype._addViewToNativeVisualTree = function (view, atIndex) {
|
|
843
898
|
if (view._isAddedToNativeVisualTree) {
|
|
844
899
|
throw new Error('Child already added to the native visual tree.');
|
|
845
900
|
}
|
|
846
901
|
return true;
|
|
847
|
-
}
|
|
902
|
+
};
|
|
848
903
|
/**
|
|
849
904
|
* Method is intended to be overridden by inheritors and used as "protected"
|
|
850
905
|
*/
|
|
851
|
-
_removeViewFromNativeVisualTree(view) {
|
|
906
|
+
ViewBase.prototype._removeViewFromNativeVisualTree = function (view) {
|
|
852
907
|
view._isAddedToNativeVisualTree = false;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
908
|
+
};
|
|
909
|
+
Object.defineProperty(ViewBase.prototype, "visualState", {
|
|
910
|
+
/**
|
|
911
|
+
* @deprecated
|
|
912
|
+
*/
|
|
913
|
+
get: function () {
|
|
914
|
+
return this._visualState;
|
|
915
|
+
},
|
|
916
|
+
enumerable: false,
|
|
917
|
+
configurable: true
|
|
918
|
+
});
|
|
919
|
+
ViewBase.prototype._addVisualState = function (state) {
|
|
920
|
+
this.deletePseudoClass(this.defaultVisualState);
|
|
921
|
+
this.addPseudoClass(state);
|
|
922
|
+
};
|
|
923
|
+
ViewBase.prototype._removeVisualState = function (state) {
|
|
924
|
+
this.deletePseudoClass(state);
|
|
925
|
+
if (!this.cssPseudoClasses.size) {
|
|
926
|
+
this.addPseudoClass(this.defaultVisualState);
|
|
927
|
+
}
|
|
928
|
+
};
|
|
929
|
+
/**
|
|
930
|
+
* @deprecated Use View._addVisualState() and View._removeVisualState() instead.
|
|
931
|
+
*/
|
|
932
|
+
ViewBase.prototype._goToVisualState = function (state) {
|
|
933
|
+
console.log('_goToVisualState() is deprecated. Use View._addVisualState() and View._removeVisualState() instead.');
|
|
858
934
|
if (Trace.isEnabled()) {
|
|
859
935
|
Trace.write(this + ' going to state: ' + state, Trace.categories.Style);
|
|
860
936
|
}
|
|
@@ -864,30 +940,30 @@ export class ViewBase extends Observable {
|
|
|
864
940
|
this.deletePseudoClass(this._visualState);
|
|
865
941
|
this._visualState = state;
|
|
866
942
|
this.addPseudoClass(state);
|
|
867
|
-
}
|
|
943
|
+
};
|
|
868
944
|
/**
|
|
869
945
|
* @deprecated
|
|
870
946
|
*
|
|
871
947
|
* This used to be the way to set attribute values in early {N} versions.
|
|
872
948
|
* Now attributes are expected to be set as plain properties on the view instances.
|
|
873
949
|
*/
|
|
874
|
-
_applyXmlAttribute(attribute, value) {
|
|
950
|
+
ViewBase.prototype._applyXmlAttribute = function (attribute, value) {
|
|
875
951
|
console.log('ViewBase._applyXmlAttribute(...) is deprecated; set attributes as plain properties instead');
|
|
876
952
|
if (attribute === 'style' || attribute === 'rows' || attribute === 'columns' || attribute === 'fontAttributes') {
|
|
877
953
|
this[attribute] = value;
|
|
878
954
|
return true;
|
|
879
955
|
}
|
|
880
956
|
return false;
|
|
881
|
-
}
|
|
882
|
-
setInlineStyle(style) {
|
|
957
|
+
};
|
|
958
|
+
ViewBase.prototype.setInlineStyle = function (style) {
|
|
883
959
|
if (typeof style !== 'string') {
|
|
884
960
|
throw new Error('Parameter should be valid CSS string!');
|
|
885
961
|
}
|
|
886
962
|
ensureStyleScopeModule();
|
|
887
963
|
styleScopeModule.applyInlineStyle(this, style, undefined);
|
|
888
|
-
}
|
|
889
|
-
_parentChanged(oldParent) {
|
|
890
|
-
|
|
964
|
+
};
|
|
965
|
+
ViewBase.prototype._parentChanged = function (oldParent) {
|
|
966
|
+
var newParent = this.parent;
|
|
891
967
|
//Overridden
|
|
892
968
|
if (oldParent) {
|
|
893
969
|
clearInheritedProperties(this);
|
|
@@ -899,38 +975,38 @@ export class ViewBase extends Observable {
|
|
|
899
975
|
newParent.on('bindingContextChange', this.bindingContextChanged, this);
|
|
900
976
|
this.bindings.get('bindingContext').bind(newParent.bindingContext);
|
|
901
977
|
}
|
|
902
|
-
}
|
|
903
|
-
onResumeNativeUpdates() {
|
|
978
|
+
};
|
|
979
|
+
ViewBase.prototype.onResumeNativeUpdates = function () {
|
|
904
980
|
// Apply native setters...
|
|
905
981
|
initNativeView(this, undefined, undefined);
|
|
906
|
-
}
|
|
907
|
-
toString() {
|
|
908
|
-
|
|
982
|
+
};
|
|
983
|
+
ViewBase.prototype.toString = function () {
|
|
984
|
+
var str = this.typeName;
|
|
909
985
|
if (this.id) {
|
|
910
|
-
str +=
|
|
986
|
+
str += "<".concat(this.id, ">");
|
|
911
987
|
}
|
|
912
988
|
else {
|
|
913
|
-
str +=
|
|
989
|
+
str += "(".concat(this._domId, ")");
|
|
914
990
|
}
|
|
915
|
-
|
|
991
|
+
var source = Source.get(this);
|
|
916
992
|
if (source) {
|
|
917
|
-
str +=
|
|
993
|
+
str += "@".concat(source, ";");
|
|
918
994
|
}
|
|
919
995
|
return str;
|
|
920
|
-
}
|
|
996
|
+
};
|
|
921
997
|
/**
|
|
922
998
|
* @private
|
|
923
999
|
* Notifies each child's css state for change, recursively.
|
|
924
1000
|
* Either the style scope, className or id properties were changed.
|
|
925
1001
|
*/
|
|
926
|
-
_onCssStateChange() {
|
|
1002
|
+
ViewBase.prototype._onCssStateChange = function () {
|
|
927
1003
|
this._cssState.onChange();
|
|
928
|
-
eachDescendant(this, (child)
|
|
1004
|
+
eachDescendant(this, function (child) {
|
|
929
1005
|
child._cssState.onChange();
|
|
930
1006
|
return true;
|
|
931
1007
|
});
|
|
932
|
-
}
|
|
933
|
-
_inheritStyleScope(styleScope) {
|
|
1008
|
+
};
|
|
1009
|
+
ViewBase.prototype._inheritStyleScope = function (styleScope) {
|
|
934
1010
|
// If we are styleScope don't inherit parent stylescope.
|
|
935
1011
|
// TODO: Consider adding parent scope and merge selectors.
|
|
936
1012
|
if (this._isStyleScopeHost) {
|
|
@@ -939,109 +1015,123 @@ export class ViewBase extends Observable {
|
|
|
939
1015
|
if (this._styleScope !== styleScope) {
|
|
940
1016
|
this._styleScope = styleScope;
|
|
941
1017
|
this._onCssStateChange();
|
|
942
|
-
this.eachChild((child)
|
|
1018
|
+
this.eachChild(function (child) {
|
|
943
1019
|
child._inheritStyleScope(styleScope);
|
|
944
1020
|
return true;
|
|
945
1021
|
});
|
|
946
1022
|
}
|
|
947
|
-
}
|
|
948
|
-
showModal(moduleOrView, modalOptions) {
|
|
949
|
-
|
|
1023
|
+
};
|
|
1024
|
+
ViewBase.prototype.showModal = function (moduleOrView, modalOptions) {
|
|
1025
|
+
var parent = this.parent;
|
|
950
1026
|
return parent && parent.showModal(moduleOrView, modalOptions);
|
|
951
|
-
}
|
|
1027
|
+
};
|
|
952
1028
|
/**
|
|
953
1029
|
* Closes the current modal view that this page is showing.
|
|
954
1030
|
* @param context - Any context you want to pass back to the host when closing the modal view.
|
|
955
1031
|
*/
|
|
956
|
-
closeModal(
|
|
957
|
-
|
|
1032
|
+
ViewBase.prototype.closeModal = function () {
|
|
1033
|
+
var args = [];
|
|
1034
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1035
|
+
args[_i] = arguments[_i];
|
|
1036
|
+
}
|
|
1037
|
+
var parent = this.parent;
|
|
958
1038
|
if (parent) {
|
|
959
|
-
parent.closeModal(
|
|
1039
|
+
parent.closeModal.apply(parent, args);
|
|
960
1040
|
}
|
|
961
|
-
}
|
|
1041
|
+
};
|
|
962
1042
|
/**
|
|
963
1043
|
* Method is intended to be overridden by inheritors and used as "protected"
|
|
964
1044
|
*/
|
|
965
|
-
_dialogClosed() {
|
|
966
|
-
eachDescendant(this, (child)
|
|
1045
|
+
ViewBase.prototype._dialogClosed = function () {
|
|
1046
|
+
eachDescendant(this, function (child) {
|
|
967
1047
|
child._dialogClosed();
|
|
968
1048
|
return true;
|
|
969
1049
|
});
|
|
970
|
-
}
|
|
1050
|
+
};
|
|
971
1051
|
/**
|
|
972
1052
|
* Method is intended to be overridden by inheritors and used as "protected"
|
|
973
1053
|
*/
|
|
974
|
-
_onRootViewReset() {
|
|
975
|
-
eachDescendant(this, (child)
|
|
1054
|
+
ViewBase.prototype._onRootViewReset = function () {
|
|
1055
|
+
eachDescendant(this, function (child) {
|
|
976
1056
|
child._onRootViewReset();
|
|
977
1057
|
return true;
|
|
978
1058
|
});
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1059
|
+
};
|
|
1060
|
+
/**
|
|
1061
|
+
* String value used when hooking to loaded event.
|
|
1062
|
+
*
|
|
1063
|
+
* @nsEvent loaded
|
|
1064
|
+
*/
|
|
1065
|
+
ViewBase.loadedEvent = 'loaded';
|
|
1066
|
+
/**
|
|
1067
|
+
* String value used when hooking to unloaded event.
|
|
1068
|
+
*
|
|
1069
|
+
* @nsEvent unloaded
|
|
1070
|
+
*/
|
|
1071
|
+
ViewBase.unloadedEvent = 'unloaded';
|
|
1072
|
+
/**
|
|
1073
|
+
* String value used when hooking to creation event
|
|
1074
|
+
*
|
|
1075
|
+
* @nsEvent created
|
|
1076
|
+
*/
|
|
1077
|
+
ViewBase.createdEvent = 'created';
|
|
1078
|
+
/**
|
|
1079
|
+
* String value used when hooking to disposeNativeView event
|
|
1080
|
+
*
|
|
1081
|
+
* @nsEvent disposeNativeView
|
|
1082
|
+
*/
|
|
1083
|
+
ViewBase.disposeNativeViewEvent = 'disposeNativeView';
|
|
1084
|
+
__decorate([
|
|
1085
|
+
profile,
|
|
1086
|
+
__metadata("design:type", Function),
|
|
1087
|
+
__metadata("design:paramtypes", []),
|
|
1088
|
+
__metadata("design:returntype", void 0)
|
|
1089
|
+
], ViewBase.prototype, "onLoaded", null);
|
|
1090
|
+
__decorate([
|
|
1091
|
+
profile,
|
|
1092
|
+
__metadata("design:type", Function),
|
|
1093
|
+
__metadata("design:paramtypes", []),
|
|
1094
|
+
__metadata("design:returntype", void 0)
|
|
1095
|
+
], ViewBase.prototype, "onUnloaded", null);
|
|
1096
|
+
__decorate([
|
|
1097
|
+
profile,
|
|
1098
|
+
__metadata("design:type", Function),
|
|
1099
|
+
__metadata("design:paramtypes", [String]),
|
|
1100
|
+
__metadata("design:returntype", void 0)
|
|
1101
|
+
], ViewBase.prototype, "addPseudoClass", null);
|
|
1102
|
+
__decorate([
|
|
1103
|
+
profile,
|
|
1104
|
+
__metadata("design:type", Function),
|
|
1105
|
+
__metadata("design:paramtypes", [String]),
|
|
1106
|
+
__metadata("design:returntype", void 0)
|
|
1107
|
+
], ViewBase.prototype, "deletePseudoClass", null);
|
|
1108
|
+
__decorate([
|
|
1109
|
+
profile,
|
|
1110
|
+
__metadata("design:type", Function),
|
|
1111
|
+
__metadata("design:paramtypes", []),
|
|
1112
|
+
__metadata("design:returntype", void 0)
|
|
1113
|
+
], ViewBase.prototype, "requestLayout", null);
|
|
1114
|
+
__decorate([
|
|
1115
|
+
profile,
|
|
1116
|
+
__metadata("design:type", Function),
|
|
1117
|
+
__metadata("design:paramtypes", [ViewBase, Number]),
|
|
1118
|
+
__metadata("design:returntype", void 0)
|
|
1119
|
+
], ViewBase.prototype, "_addView", null);
|
|
1120
|
+
__decorate([
|
|
1121
|
+
profile,
|
|
1122
|
+
__metadata("design:type", Function),
|
|
1123
|
+
__metadata("design:paramtypes", [Object, Number, Boolean]),
|
|
1124
|
+
__metadata("design:returntype", void 0)
|
|
1125
|
+
], ViewBase.prototype, "_setupUI", null);
|
|
1126
|
+
__decorate([
|
|
1127
|
+
profile,
|
|
1128
|
+
__metadata("design:type", Function),
|
|
1129
|
+
__metadata("design:paramtypes", [Boolean]),
|
|
1130
|
+
__metadata("design:returntype", void 0)
|
|
1131
|
+
], ViewBase.prototype, "_tearDownUI", null);
|
|
1132
|
+
return ViewBase;
|
|
1133
|
+
}(Observable));
|
|
1134
|
+
export { ViewBase };
|
|
1045
1135
|
ViewBase.prototype.isCollapsed = false;
|
|
1046
1136
|
ViewBase.prototype._oldLeft = 0;
|
|
1047
1137
|
ViewBase.prototype._oldTop = 0;
|
|
@@ -1071,29 +1161,29 @@ ViewBase.prototype._isViewBase = true;
|
|
|
1071
1161
|
ViewBase.prototype.recycleNativeView = 'never';
|
|
1072
1162
|
ViewBase.prototype.reusable = false;
|
|
1073
1163
|
ViewBase.prototype._suspendNativeUpdatesCount = SuspendType.Loaded | SuspendType.NativeView | SuspendType.UISetup;
|
|
1074
|
-
export
|
|
1164
|
+
export var bindingContextProperty = new InheritedProperty({
|
|
1075
1165
|
name: 'bindingContext',
|
|
1076
1166
|
});
|
|
1077
1167
|
bindingContextProperty.register(ViewBase);
|
|
1078
|
-
export
|
|
1168
|
+
export var hiddenProperty = new Property({
|
|
1079
1169
|
name: 'hidden',
|
|
1080
1170
|
defaultValue: false,
|
|
1081
1171
|
affectsLayout: __APPLE__,
|
|
1082
1172
|
valueConverter: booleanConverter,
|
|
1083
|
-
valueChanged: (target, oldValue, newValue)
|
|
1173
|
+
valueChanged: function (target, oldValue, newValue) {
|
|
1084
1174
|
if (target) {
|
|
1085
1175
|
target.isCollapsed = !!newValue;
|
|
1086
1176
|
}
|
|
1087
1177
|
},
|
|
1088
1178
|
});
|
|
1089
1179
|
hiddenProperty.register(ViewBase);
|
|
1090
|
-
export
|
|
1180
|
+
export var classNameProperty = new Property({
|
|
1091
1181
|
name: 'className',
|
|
1092
|
-
valueChanged(view, oldValue, newValue) {
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1182
|
+
valueChanged: function (view, oldValue, newValue) {
|
|
1183
|
+
var cssClasses = view.cssClasses;
|
|
1184
|
+
var rootViewsCssClasses = CSSUtils.getSystemCssClasses();
|
|
1185
|
+
var shouldAddModalRootViewCssClasses = cssClasses.has(CSSUtils.MODAL_ROOT_VIEW_CSS_CLASS);
|
|
1186
|
+
var shouldAddRootViewCssClasses = cssClasses.has(CSSUtils.ROOT_VIEW_CSS_CLASS);
|
|
1097
1187
|
cssClasses.clear();
|
|
1098
1188
|
if (shouldAddModalRootViewCssClasses) {
|
|
1099
1189
|
cssClasses.add(CSSUtils.MODAL_ROOT_VIEW_CSS_CLASS);
|
|
@@ -1101,27 +1191,40 @@ export const classNameProperty = new Property({
|
|
|
1101
1191
|
else if (shouldAddRootViewCssClasses) {
|
|
1102
1192
|
cssClasses.add(CSSUtils.ROOT_VIEW_CSS_CLASS);
|
|
1103
1193
|
}
|
|
1104
|
-
rootViewsCssClasses.forEach((c)
|
|
1194
|
+
rootViewsCssClasses.forEach(function (c) { return cssClasses.add(c); });
|
|
1105
1195
|
if (typeof newValue === 'string' && newValue !== '') {
|
|
1106
|
-
newValue.split(' ').forEach((c)
|
|
1196
|
+
newValue.split(' ').forEach(function (c) { return cssClasses.add(c); });
|
|
1107
1197
|
}
|
|
1108
1198
|
view._onCssStateChange();
|
|
1109
1199
|
},
|
|
1110
1200
|
});
|
|
1111
1201
|
classNameProperty.register(ViewBase);
|
|
1112
|
-
export
|
|
1202
|
+
export var idProperty = new Property({
|
|
1113
1203
|
name: 'id',
|
|
1114
|
-
valueChanged: (view, oldValue, newValue)
|
|
1204
|
+
valueChanged: function (view, oldValue, newValue) { return view._onCssStateChange(); },
|
|
1115
1205
|
});
|
|
1116
1206
|
idProperty.register(ViewBase);
|
|
1207
|
+
export var defaultVisualStateProperty = new Property({
|
|
1208
|
+
name: 'defaultVisualState',
|
|
1209
|
+
defaultValue: 'normal',
|
|
1210
|
+
valueChanged: function (target, oldValue, newValue) {
|
|
1211
|
+
var value = newValue || 'normal';
|
|
1212
|
+
// Append new default if old one is currently applied
|
|
1213
|
+
if (target.cssPseudoClasses && target.cssPseudoClasses.has(oldValue)) {
|
|
1214
|
+
target.deletePseudoClass(oldValue);
|
|
1215
|
+
target.addPseudoClass(newValue);
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
});
|
|
1219
|
+
defaultVisualStateProperty.register(ViewBase);
|
|
1117
1220
|
export function booleanConverter(v) {
|
|
1118
|
-
|
|
1221
|
+
var lowercase = (v + '').toLowerCase();
|
|
1119
1222
|
if (lowercase === 'true') {
|
|
1120
1223
|
return true;
|
|
1121
1224
|
}
|
|
1122
1225
|
else if (lowercase === 'false') {
|
|
1123
1226
|
return false;
|
|
1124
1227
|
}
|
|
1125
|
-
throw new Error(
|
|
1228
|
+
throw new Error("Invalid boolean: ".concat(v));
|
|
1126
1229
|
}
|
|
1127
1230
|
//# sourceMappingURL=index.js.map
|