@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
|
@@ -5,18 +5,19 @@ import { profile } from '../../../profiling';
|
|
|
5
5
|
/**
|
|
6
6
|
* Value specifying that Property should be set to its initial value.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
export var unsetValue = new Object();
|
|
9
|
+
var cssPropertyNames = [];
|
|
10
|
+
var symbolPropertyMap = {};
|
|
11
|
+
var cssSymbolPropertyMap = {};
|
|
12
|
+
var inheritableProperties = new Array();
|
|
13
|
+
var inheritableCssProperties = new Array();
|
|
14
14
|
function print(map) {
|
|
15
|
-
|
|
16
|
-
for (
|
|
17
|
-
|
|
15
|
+
var symbols = Object.getOwnPropertySymbols(map);
|
|
16
|
+
for (var _i = 0, symbols_1 = symbols; _i < symbols_1.length; _i++) {
|
|
17
|
+
var symbol = symbols_1[_i];
|
|
18
|
+
var prop = map[symbol];
|
|
18
19
|
if (!prop.registered) {
|
|
19
|
-
console.log(
|
|
20
|
+
console.log("Property ".concat(prop.name, " not Registered!!!!!"));
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -47,33 +48,33 @@ export function _evaluateCssVariableExpression(view, cssName, value) {
|
|
|
47
48
|
// Value is not using css-variable(s)
|
|
48
49
|
return value;
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
+
var output = value.trim();
|
|
51
52
|
// Evaluate every (and nested) css-variables in the value.
|
|
52
|
-
|
|
53
|
+
var lastValue;
|
|
53
54
|
while (lastValue !== output) {
|
|
54
55
|
lastValue = output;
|
|
55
|
-
|
|
56
|
+
var idx = output.lastIndexOf('var(');
|
|
56
57
|
if (idx === -1) {
|
|
57
58
|
continue;
|
|
58
59
|
}
|
|
59
|
-
|
|
60
|
+
var endIdx = output.indexOf(')', idx);
|
|
60
61
|
if (endIdx === -1) {
|
|
61
62
|
continue;
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
+
var matched = output
|
|
64
65
|
.substring(idx + 4, endIdx)
|
|
65
66
|
.split(',')
|
|
66
|
-
.map((v)
|
|
67
|
-
.filter((v)
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
.map(function (v) { return v.trim(); })
|
|
68
|
+
.filter(function (v) { return !!v; });
|
|
69
|
+
var cssVariableName = matched.shift();
|
|
70
|
+
var cssVariableValue = view.style.getCssVariable(cssVariableName);
|
|
70
71
|
if (cssVariableValue === null && matched.length) {
|
|
71
72
|
cssVariableValue = _evaluateCssVariableExpression(view, cssName, matched.join(', ')).split(',')[0];
|
|
72
73
|
}
|
|
73
74
|
if (!cssVariableValue) {
|
|
74
75
|
cssVariableValue = 'unset';
|
|
75
76
|
}
|
|
76
|
-
output =
|
|
77
|
+
output = "".concat(output.substring(0, idx)).concat(cssVariableValue).concat(output.substring(endIdx + 1));
|
|
77
78
|
}
|
|
78
79
|
return output;
|
|
79
80
|
}
|
|
@@ -90,31 +91,31 @@ export function _evaluateCssCalcExpression(value) {
|
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
function getPropertiesFromMap(map) {
|
|
93
|
-
|
|
94
|
-
Object.getOwnPropertySymbols(map).forEach((symbol)
|
|
94
|
+
var props = [];
|
|
95
|
+
Object.getOwnPropertySymbols(map).forEach(function (symbol) { return props.push(map[symbol]); });
|
|
95
96
|
return props;
|
|
96
97
|
}
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
var Property = /** @class */ (function () {
|
|
99
|
+
function Property(options) {
|
|
99
100
|
this.enumerable = true;
|
|
100
101
|
this.configurable = true;
|
|
101
|
-
|
|
102
|
+
var propertyName = options.name;
|
|
102
103
|
this.name = propertyName;
|
|
103
|
-
|
|
104
|
+
var key = Symbol(propertyName + ':propertyKey');
|
|
104
105
|
this.key = key;
|
|
105
|
-
|
|
106
|
+
var getDefault = Symbol(propertyName + ':getDefault');
|
|
106
107
|
this.getDefault = getDefault;
|
|
107
|
-
|
|
108
|
+
var setNative = Symbol(propertyName + ':setNative');
|
|
108
109
|
this.setNative = setNative;
|
|
109
|
-
|
|
110
|
+
var defaultValueKey = Symbol(propertyName + ':nativeDefaultValue');
|
|
110
111
|
this.defaultValueKey = defaultValueKey;
|
|
111
|
-
|
|
112
|
+
var defaultValue = options.defaultValue;
|
|
112
113
|
this.defaultValue = defaultValue;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
var eventName = propertyName + 'Change';
|
|
115
|
+
var equalityComparer = options.equalityComparer;
|
|
116
|
+
var affectsLayout = options.affectsLayout;
|
|
117
|
+
var valueChanged = options.valueChanged;
|
|
118
|
+
var valueConverter = options.valueConverter;
|
|
118
119
|
this.overrideHandlers = function (options) {
|
|
119
120
|
if (typeof options.equalityComparer !== 'undefined') {
|
|
120
121
|
equalityComparer = options.equalityComparer;
|
|
@@ -129,11 +130,11 @@ export class Property {
|
|
|
129
130
|
valueConverter = options.valueConverter;
|
|
130
131
|
}
|
|
131
132
|
};
|
|
132
|
-
|
|
133
|
+
var property = this;
|
|
133
134
|
this.set = function (boxedValue) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
var reset = boxedValue === unsetValue;
|
|
136
|
+
var value;
|
|
137
|
+
var wrapped;
|
|
137
138
|
if (reset) {
|
|
138
139
|
value = defaultValue;
|
|
139
140
|
}
|
|
@@ -144,8 +145,8 @@ export class Property {
|
|
|
144
145
|
value = valueConverter(value);
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
var oldValue = (key in this ? this[key] : defaultValue);
|
|
149
|
+
var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
149
150
|
if (wrapped || changed) {
|
|
150
151
|
if (affectsLayout) {
|
|
151
152
|
this.requestLayout();
|
|
@@ -194,10 +195,10 @@ export class Property {
|
|
|
194
195
|
if (this.hasListeners(eventName)) {
|
|
195
196
|
this.notify({
|
|
196
197
|
object: this,
|
|
197
|
-
eventName,
|
|
198
|
-
propertyName,
|
|
199
|
-
value,
|
|
200
|
-
oldValue,
|
|
198
|
+
eventName: eventName,
|
|
199
|
+
propertyName: propertyName,
|
|
200
|
+
value: value,
|
|
201
|
+
oldValue: oldValue,
|
|
201
202
|
});
|
|
202
203
|
}
|
|
203
204
|
if (this.domNode) {
|
|
@@ -214,8 +215,8 @@ export class Property {
|
|
|
214
215
|
return (key in this ? this[key] : defaultValue);
|
|
215
216
|
};
|
|
216
217
|
this.nativeValueChange = function (owner, value) {
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
var oldValue = (key in owner ? owner[key] : defaultValue);
|
|
219
|
+
var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
219
220
|
if (changed) {
|
|
220
221
|
owner[key] = value;
|
|
221
222
|
if (valueChanged) {
|
|
@@ -227,10 +228,10 @@ export class Property {
|
|
|
227
228
|
if (owner.hasListeners(eventName)) {
|
|
228
229
|
owner.notify({
|
|
229
230
|
object: owner,
|
|
230
|
-
eventName,
|
|
231
|
-
propertyName,
|
|
232
|
-
value,
|
|
233
|
-
oldValue,
|
|
231
|
+
eventName: eventName,
|
|
232
|
+
propertyName: propertyName,
|
|
233
|
+
value: value,
|
|
234
|
+
oldValue: oldValue,
|
|
234
235
|
});
|
|
235
236
|
}
|
|
236
237
|
if (affectsLayout) {
|
|
@@ -243,36 +244,39 @@ export class Property {
|
|
|
243
244
|
};
|
|
244
245
|
symbolPropertyMap[key] = this;
|
|
245
246
|
}
|
|
246
|
-
register(cls) {
|
|
247
|
+
Property.prototype.register = function (cls) {
|
|
247
248
|
if (this.registered) {
|
|
248
|
-
throw new Error(
|
|
249
|
+
throw new Error("Property ".concat(this.name, " already registered."));
|
|
249
250
|
}
|
|
250
251
|
this.registered = true;
|
|
251
252
|
Object.defineProperty(cls.prototype, this.name, this);
|
|
252
|
-
}
|
|
253
|
-
isSet(instance) {
|
|
253
|
+
};
|
|
254
|
+
Property.prototype.isSet = function (instance) {
|
|
254
255
|
return this.key in instance;
|
|
255
|
-
}
|
|
256
|
-
|
|
256
|
+
};
|
|
257
|
+
return Property;
|
|
258
|
+
}());
|
|
259
|
+
export { Property };
|
|
257
260
|
Property.prototype.isStyleProperty = false;
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
261
|
+
var CoercibleProperty = /** @class */ (function (_super) {
|
|
262
|
+
__extends(CoercibleProperty, _super);
|
|
263
|
+
function CoercibleProperty(options) {
|
|
264
|
+
var _this = _super.call(this, options) || this;
|
|
265
|
+
var propertyName = options.name;
|
|
266
|
+
var key = _this.key;
|
|
267
|
+
var getDefault = _this.getDefault;
|
|
268
|
+
var setNative = _this.setNative;
|
|
269
|
+
var defaultValueKey = _this.defaultValueKey;
|
|
270
|
+
var defaultValue = _this.defaultValue;
|
|
271
|
+
var coerceKey = Symbol(propertyName + ':coerceKey');
|
|
272
|
+
var eventName = propertyName + 'Change';
|
|
273
|
+
var affectsLayout = options.affectsLayout;
|
|
274
|
+
var equalityComparer = options.equalityComparer;
|
|
275
|
+
var valueChanged = options.valueChanged;
|
|
276
|
+
var valueConverter = options.valueConverter;
|
|
277
|
+
var coerceCallback = options.coerceValue;
|
|
278
|
+
var property = _this;
|
|
279
|
+
_this.overrideHandlers = function (options) {
|
|
276
280
|
if (typeof options.equalityComparer !== 'undefined') {
|
|
277
281
|
equalityComparer = options.equalityComparer;
|
|
278
282
|
}
|
|
@@ -289,15 +293,15 @@ export class CoercibleProperty extends Property {
|
|
|
289
293
|
coerceCallback = options.coerceValue;
|
|
290
294
|
}
|
|
291
295
|
};
|
|
292
|
-
|
|
293
|
-
|
|
296
|
+
_this.coerce = function (target) {
|
|
297
|
+
var originalValue = (coerceKey in target ? target[coerceKey] : defaultValue);
|
|
294
298
|
// need that to make coercing but also fire change events
|
|
295
299
|
target[propertyName] = originalValue;
|
|
296
300
|
};
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
+
_this.set = function (boxedValue) {
|
|
302
|
+
var reset = boxedValue === unsetValue;
|
|
303
|
+
var value;
|
|
304
|
+
var wrapped;
|
|
301
305
|
if (reset) {
|
|
302
306
|
value = defaultValue;
|
|
303
307
|
delete this[coerceKey];
|
|
@@ -311,8 +315,8 @@ export class CoercibleProperty extends Property {
|
|
|
311
315
|
this[coerceKey] = value;
|
|
312
316
|
value = coerceCallback(this, value);
|
|
313
317
|
}
|
|
314
|
-
|
|
315
|
-
|
|
318
|
+
var oldValue = key in this ? this[key] : defaultValue;
|
|
319
|
+
var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
316
320
|
if (wrapped || changed) {
|
|
317
321
|
if (reset) {
|
|
318
322
|
delete this[key];
|
|
@@ -358,10 +362,10 @@ export class CoercibleProperty extends Property {
|
|
|
358
362
|
if (this.hasListeners(eventName)) {
|
|
359
363
|
this.notify({
|
|
360
364
|
object: this,
|
|
361
|
-
eventName,
|
|
362
|
-
propertyName,
|
|
363
|
-
value,
|
|
364
|
-
oldValue,
|
|
365
|
+
eventName: eventName,
|
|
366
|
+
propertyName: propertyName,
|
|
367
|
+
value: value,
|
|
368
|
+
oldValue: oldValue,
|
|
365
369
|
});
|
|
366
370
|
}
|
|
367
371
|
if (affectsLayout) {
|
|
@@ -377,92 +381,101 @@ export class CoercibleProperty extends Property {
|
|
|
377
381
|
}
|
|
378
382
|
}
|
|
379
383
|
};
|
|
384
|
+
return _this;
|
|
380
385
|
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
if (
|
|
400
|
-
|
|
401
|
-
|
|
386
|
+
return CoercibleProperty;
|
|
387
|
+
}(Property));
|
|
388
|
+
export { CoercibleProperty };
|
|
389
|
+
var InheritedProperty = /** @class */ (function (_super) {
|
|
390
|
+
__extends(InheritedProperty, _super);
|
|
391
|
+
function InheritedProperty(options) {
|
|
392
|
+
var _this = _super.call(this, options) || this;
|
|
393
|
+
var name = options.name;
|
|
394
|
+
var key = _this.key;
|
|
395
|
+
var defaultValue = options.defaultValue;
|
|
396
|
+
var sourceKey = Symbol(name + ':valueSourceKey');
|
|
397
|
+
_this.sourceKey = sourceKey;
|
|
398
|
+
var setBase = _this.set;
|
|
399
|
+
var setFunc = function (valueSource) {
|
|
400
|
+
return function (value) {
|
|
401
|
+
var that = this;
|
|
402
|
+
var unboxedValue;
|
|
403
|
+
var newValueSource;
|
|
404
|
+
if (value === unsetValue) {
|
|
405
|
+
// If unsetValue - we want to reset the property.
|
|
406
|
+
var parent_1 = that.parent;
|
|
407
|
+
// If we have parent and it has non-default value we use as our inherited value.
|
|
408
|
+
if (parent_1 && parent_1[sourceKey] !== 0 /* ValueSource.Default */) {
|
|
409
|
+
unboxedValue = parent_1[name];
|
|
410
|
+
newValueSource = 1 /* ValueSource.Inherited */;
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
unboxedValue = defaultValue;
|
|
414
|
+
newValueSource = 0 /* ValueSource.Default */;
|
|
415
|
+
}
|
|
402
416
|
}
|
|
403
417
|
else {
|
|
404
|
-
|
|
405
|
-
|
|
418
|
+
// else we are set through property set.
|
|
419
|
+
unboxedValue = value;
|
|
420
|
+
newValueSource = valueSource;
|
|
406
421
|
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
that.eachChild((child) => {
|
|
421
|
-
const childValueSource = child[sourceKey] || 0 /* ValueSource.Default */;
|
|
422
|
-
if (reset) {
|
|
423
|
-
if (childValueSource === 1 /* ValueSource.Inherited */) {
|
|
424
|
-
setFunc.call(child, unsetValue);
|
|
422
|
+
// take currentValue before calling base - base may change it.
|
|
423
|
+
var currentValue = that[key];
|
|
424
|
+
setBase.call(that, unboxedValue);
|
|
425
|
+
var newValue = that[key];
|
|
426
|
+
that[sourceKey] = newValueSource;
|
|
427
|
+
if (currentValue !== newValue) {
|
|
428
|
+
var reset_1 = newValueSource === 0 /* ValueSource.Default */;
|
|
429
|
+
that.eachChild(function (child) {
|
|
430
|
+
var childValueSource = child[sourceKey] || 0 /* ValueSource.Default */;
|
|
431
|
+
if (reset_1) {
|
|
432
|
+
if (childValueSource === 1 /* ValueSource.Inherited */) {
|
|
433
|
+
setFunc.call(child, unsetValue);
|
|
434
|
+
}
|
|
425
435
|
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
436
|
+
else {
|
|
437
|
+
if (childValueSource <= 1 /* ValueSource.Inherited */) {
|
|
438
|
+
setInheritedValue.call(child, newValue);
|
|
439
|
+
}
|
|
430
440
|
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
}
|
|
434
|
-
}
|
|
441
|
+
return true;
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
};
|
|
435
445
|
};
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
inheritableProperties.push(
|
|
446
|
+
var setInheritedValue = setFunc(1 /* ValueSource.Inherited */);
|
|
447
|
+
_this.setInheritedValue = setInheritedValue;
|
|
448
|
+
_this.set = setFunc(3 /* ValueSource.Local */);
|
|
449
|
+
inheritableProperties.push(_this);
|
|
450
|
+
return _this;
|
|
440
451
|
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
452
|
+
return InheritedProperty;
|
|
453
|
+
}(Property));
|
|
454
|
+
export { InheritedProperty };
|
|
455
|
+
var CssProperty = /** @class */ (function () {
|
|
456
|
+
function CssProperty(options) {
|
|
457
|
+
var propertyName = options.name;
|
|
445
458
|
this.name = propertyName;
|
|
446
459
|
cssPropertyNames.push(options.cssName);
|
|
447
|
-
this.cssName =
|
|
460
|
+
this.cssName = "css:".concat(options.cssName);
|
|
448
461
|
this.cssLocalName = options.cssName;
|
|
449
|
-
|
|
462
|
+
var key = Symbol(propertyName + ':propertyKey');
|
|
450
463
|
this.key = key;
|
|
451
|
-
|
|
464
|
+
var sourceKey = Symbol(propertyName + ':valueSourceKey');
|
|
452
465
|
this.sourceKey = sourceKey;
|
|
453
|
-
|
|
466
|
+
var getDefault = Symbol(propertyName + ':getDefault');
|
|
454
467
|
this.getDefault = getDefault;
|
|
455
|
-
|
|
468
|
+
var setNative = Symbol(propertyName + ':setNative');
|
|
456
469
|
this.setNative = setNative;
|
|
457
|
-
|
|
470
|
+
var defaultValueKey = Symbol(propertyName + ':nativeDefaultValue');
|
|
458
471
|
this.defaultValueKey = defaultValueKey;
|
|
459
|
-
|
|
472
|
+
var defaultValue = options.defaultValue;
|
|
460
473
|
this.defaultValue = defaultValue;
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
474
|
+
var eventName = propertyName + 'Change';
|
|
475
|
+
var affectsLayout = options.affectsLayout;
|
|
476
|
+
var equalityComparer = options.equalityComparer;
|
|
477
|
+
var valueChanged = options.valueChanged;
|
|
478
|
+
var valueConverter = options.valueConverter;
|
|
466
479
|
this.overrideHandlers = function (options) {
|
|
467
480
|
if (typeof options.equalityComparer !== 'undefined') {
|
|
468
481
|
equalityComparer = options.equalityComparer;
|
|
@@ -477,15 +490,15 @@ export class CssProperty {
|
|
|
477
490
|
valueConverter = options.valueConverter;
|
|
478
491
|
}
|
|
479
492
|
};
|
|
480
|
-
|
|
493
|
+
var property = this;
|
|
481
494
|
function setLocalValue(newValue) {
|
|
482
|
-
|
|
495
|
+
var view = this.viewRef.get();
|
|
483
496
|
if (!view) {
|
|
484
|
-
Trace.write(
|
|
497
|
+
Trace.write("".concat(newValue, " not set to view because \".viewRef\" is cleared"), Trace.categories.Style, Trace.messageType.warn);
|
|
485
498
|
return;
|
|
486
499
|
}
|
|
487
|
-
|
|
488
|
-
|
|
500
|
+
var reset = newValue === unsetValue || newValue === '';
|
|
501
|
+
var value;
|
|
489
502
|
if (reset) {
|
|
490
503
|
value = defaultValue;
|
|
491
504
|
delete this[sourceKey];
|
|
@@ -494,8 +507,8 @@ export class CssProperty {
|
|
|
494
507
|
this[sourceKey] = 3 /* ValueSource.Local */;
|
|
495
508
|
value = valueConverter && typeof newValue === 'string' ? valueConverter(newValue) : newValue;
|
|
496
509
|
}
|
|
497
|
-
|
|
498
|
-
|
|
510
|
+
var oldValue = (key in this ? this[key] : defaultValue);
|
|
511
|
+
var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
499
512
|
if (changed) {
|
|
500
513
|
if (reset) {
|
|
501
514
|
delete this[key];
|
|
@@ -541,10 +554,10 @@ export class CssProperty {
|
|
|
541
554
|
if (this.hasListeners(eventName)) {
|
|
542
555
|
this.notify({
|
|
543
556
|
object: this,
|
|
544
|
-
eventName,
|
|
545
|
-
propertyName,
|
|
546
|
-
value,
|
|
547
|
-
oldValue,
|
|
557
|
+
eventName: eventName,
|
|
558
|
+
propertyName: propertyName,
|
|
559
|
+
value: value,
|
|
560
|
+
oldValue: oldValue,
|
|
548
561
|
});
|
|
549
562
|
}
|
|
550
563
|
if (affectsLayout) {
|
|
@@ -553,18 +566,18 @@ export class CssProperty {
|
|
|
553
566
|
}
|
|
554
567
|
}
|
|
555
568
|
function setCssValue(newValue) {
|
|
556
|
-
|
|
569
|
+
var view = this.viewRef.get();
|
|
557
570
|
if (!view) {
|
|
558
|
-
Trace.write(
|
|
571
|
+
Trace.write("".concat(newValue, " not set to view because \".viewRef\" is cleared"), Trace.categories.Style, Trace.messageType.warn);
|
|
559
572
|
return;
|
|
560
573
|
}
|
|
561
|
-
|
|
574
|
+
var currentValueSource = this[sourceKey] || 0 /* ValueSource.Default */;
|
|
562
575
|
// We have localValueSource - NOOP.
|
|
563
576
|
if (currentValueSource === 3 /* ValueSource.Local */) {
|
|
564
577
|
return;
|
|
565
578
|
}
|
|
566
|
-
|
|
567
|
-
|
|
579
|
+
var reset = newValue === unsetValue || newValue === '';
|
|
580
|
+
var value;
|
|
568
581
|
if (reset) {
|
|
569
582
|
value = defaultValue;
|
|
570
583
|
delete this[sourceKey];
|
|
@@ -573,8 +586,8 @@ export class CssProperty {
|
|
|
573
586
|
value = valueConverter && typeof newValue === 'string' ? valueConverter(newValue) : newValue;
|
|
574
587
|
this[sourceKey] = 2 /* ValueSource.Css */;
|
|
575
588
|
}
|
|
576
|
-
|
|
577
|
-
|
|
589
|
+
var oldValue = (key in this ? this[key] : defaultValue);
|
|
590
|
+
var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
578
591
|
if (changed) {
|
|
579
592
|
if (reset) {
|
|
580
593
|
delete this[key];
|
|
@@ -620,10 +633,10 @@ export class CssProperty {
|
|
|
620
633
|
if (this.hasListeners(eventName)) {
|
|
621
634
|
this.notify({
|
|
622
635
|
object: this,
|
|
623
|
-
eventName,
|
|
624
|
-
propertyName,
|
|
625
|
-
value,
|
|
626
|
-
oldValue,
|
|
636
|
+
eventName: eventName,
|
|
637
|
+
propertyName: propertyName,
|
|
638
|
+
value: value,
|
|
639
|
+
oldValue: oldValue,
|
|
627
640
|
});
|
|
628
641
|
}
|
|
629
642
|
if (affectsLayout) {
|
|
@@ -648,9 +661,9 @@ export class CssProperty {
|
|
|
648
661
|
};
|
|
649
662
|
cssSymbolPropertyMap[key] = this;
|
|
650
663
|
}
|
|
651
|
-
register(cls) {
|
|
664
|
+
CssProperty.prototype.register = function (cls) {
|
|
652
665
|
if (this.registered) {
|
|
653
|
-
throw new Error(
|
|
666
|
+
throw new Error("Property ".concat(this.name, " already registered."));
|
|
654
667
|
}
|
|
655
668
|
this.registered = true;
|
|
656
669
|
Object.defineProperty(cls.prototype, this.name, this.localValueDescriptor);
|
|
@@ -658,15 +671,17 @@ export class CssProperty {
|
|
|
658
671
|
if (this.cssLocalName !== this.cssName) {
|
|
659
672
|
Object.defineProperty(cls.prototype, this.cssLocalName, this.localValueDescriptor);
|
|
660
673
|
}
|
|
661
|
-
}
|
|
662
|
-
isSet(instance) {
|
|
674
|
+
};
|
|
675
|
+
CssProperty.prototype.isSet = function (instance) {
|
|
663
676
|
return this.key in instance;
|
|
664
|
-
}
|
|
665
|
-
|
|
677
|
+
};
|
|
678
|
+
return CssProperty;
|
|
679
|
+
}());
|
|
680
|
+
export { CssProperty };
|
|
666
681
|
CssProperty.prototype.isStyleProperty = true;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
682
|
+
var CssAnimationProperty = /** @class */ (function () {
|
|
683
|
+
function CssAnimationProperty(options) {
|
|
684
|
+
var propertyName = options.name;
|
|
670
685
|
this.name = propertyName;
|
|
671
686
|
cssPropertyNames.push(options.cssName);
|
|
672
687
|
CssAnimationProperty.properties[propertyName] = this;
|
|
@@ -674,32 +689,32 @@ export class CssAnimationProperty {
|
|
|
674
689
|
CssAnimationProperty.properties[options.cssName] = this;
|
|
675
690
|
}
|
|
676
691
|
this._valueConverter = options.valueConverter;
|
|
677
|
-
|
|
692
|
+
var cssLocalName = options.cssName || propertyName;
|
|
678
693
|
this.cssLocalName = cssLocalName;
|
|
679
|
-
|
|
694
|
+
var cssName = 'css:' + cssLocalName;
|
|
680
695
|
this.cssName = cssName;
|
|
681
|
-
|
|
696
|
+
var keyframeName = 'keyframe:' + propertyName;
|
|
682
697
|
this.keyframe = keyframeName;
|
|
683
|
-
|
|
684
|
-
|
|
698
|
+
var defaultName = 'default:' + propertyName;
|
|
699
|
+
var defaultValueKey = Symbol(defaultName);
|
|
685
700
|
this.defaultValueKey = defaultValueKey;
|
|
686
701
|
this.defaultValue = options.defaultValue;
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
702
|
+
var cssValue = Symbol(cssName);
|
|
703
|
+
var styleValue = Symbol("local:".concat(propertyName));
|
|
704
|
+
var keyframeValue = Symbol(keyframeName);
|
|
705
|
+
var computedValue = Symbol('computed-value:' + propertyName);
|
|
691
706
|
this.key = computedValue;
|
|
692
|
-
|
|
707
|
+
var computedSource = Symbol('computed-source:' + propertyName);
|
|
693
708
|
this.source = computedSource;
|
|
694
709
|
this.getDefault = Symbol(propertyName + ':getDefault');
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
710
|
+
var getDefault = this.getDefault;
|
|
711
|
+
var setNative = (this.setNative = Symbol(propertyName + ':setNative'));
|
|
712
|
+
var eventName = propertyName + 'Change';
|
|
713
|
+
var property = this;
|
|
699
714
|
function descriptor(symbol, propertySource, enumerable, configurable, getsComputed) {
|
|
700
715
|
return {
|
|
701
|
-
enumerable,
|
|
702
|
-
configurable,
|
|
716
|
+
enumerable: enumerable,
|
|
717
|
+
configurable: configurable,
|
|
703
718
|
get: getsComputed
|
|
704
719
|
? function () {
|
|
705
720
|
return this[computedValue];
|
|
@@ -707,16 +722,16 @@ export class CssAnimationProperty {
|
|
|
707
722
|
: function () {
|
|
708
723
|
return this[symbol];
|
|
709
724
|
},
|
|
710
|
-
set(boxedValue) {
|
|
711
|
-
|
|
725
|
+
set: function (boxedValue) {
|
|
726
|
+
var view = this.viewRef.get();
|
|
712
727
|
if (!view) {
|
|
713
|
-
Trace.write(
|
|
728
|
+
Trace.write("".concat(boxedValue, " not set to view because \".viewRef\" is cleared"), Trace.categories.Animation, Trace.messageType.warn);
|
|
714
729
|
return;
|
|
715
730
|
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
731
|
+
var oldValue = this[computedValue];
|
|
732
|
+
var oldSource = this[computedSource];
|
|
733
|
+
var wasSet = oldSource !== 0 /* ValueSource.Default */;
|
|
734
|
+
var reset = boxedValue === unsetValue || boxedValue === '';
|
|
720
735
|
if (reset) {
|
|
721
736
|
this[symbol] = unsetValue;
|
|
722
737
|
if (this[computedSource] === propertySource) {
|
|
@@ -745,10 +760,10 @@ export class CssAnimationProperty {
|
|
|
745
760
|
this[computedValue] = boxedValue;
|
|
746
761
|
}
|
|
747
762
|
}
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
763
|
+
var value = this[computedValue];
|
|
764
|
+
var source = this[computedSource];
|
|
765
|
+
var isSet = source !== 0 /* ValueSource.Default */;
|
|
766
|
+
var computedValueChanged = oldValue !== value && (!options.equalityComparer || !options.equalityComparer(oldValue, value));
|
|
752
767
|
if (computedValueChanged && options.valueChanged) {
|
|
753
768
|
options.valueChanged(this, oldValue, value);
|
|
754
769
|
}
|
|
@@ -778,22 +793,22 @@ export class CssAnimationProperty {
|
|
|
778
793
|
if (computedValueChanged && this.hasListeners(eventName)) {
|
|
779
794
|
this.notify({
|
|
780
795
|
object: this,
|
|
781
|
-
eventName,
|
|
782
|
-
propertyName,
|
|
783
|
-
value,
|
|
784
|
-
oldValue,
|
|
796
|
+
eventName: eventName,
|
|
797
|
+
propertyName: propertyName,
|
|
798
|
+
value: value,
|
|
799
|
+
oldValue: oldValue,
|
|
785
800
|
});
|
|
786
801
|
}
|
|
787
802
|
},
|
|
788
803
|
};
|
|
789
804
|
}
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
805
|
+
var defaultPropertyDescriptor = descriptor(defaultValueKey, 0 /* ValueSource.Default */, false, false, false);
|
|
806
|
+
var cssPropertyDescriptor = descriptor(cssValue, 2 /* ValueSource.Css */, false, false, false);
|
|
807
|
+
var stylePropertyDescriptor = descriptor(styleValue, 3 /* ValueSource.Local */, true, true, true);
|
|
808
|
+
var keyframePropertyDescriptor = descriptor(keyframeValue, 4 /* ValueSource.Keyframe */, false, false, false);
|
|
794
809
|
symbolPropertyMap[computedValue] = this;
|
|
795
810
|
cssSymbolPropertyMap[computedValue] = this;
|
|
796
|
-
this.register = (cls)
|
|
811
|
+
this.register = function (cls) {
|
|
797
812
|
cls.prototype[computedValue] = options.defaultValue;
|
|
798
813
|
cls.prototype[computedSource] = 0 /* ValueSource.Default */;
|
|
799
814
|
cls.prototype[cssValue] = unsetValue;
|
|
@@ -808,47 +823,50 @@ export class CssAnimationProperty {
|
|
|
808
823
|
Object.defineProperty(cls.prototype, keyframeName, keyframePropertyDescriptor);
|
|
809
824
|
};
|
|
810
825
|
}
|
|
811
|
-
_initDefaultNativeValue(target) {
|
|
812
|
-
|
|
826
|
+
CssAnimationProperty.prototype._initDefaultNativeValue = function (target) {
|
|
827
|
+
var view = target.viewRef.get();
|
|
813
828
|
if (!view) {
|
|
814
|
-
Trace.write(
|
|
829
|
+
Trace.write("_initDefaultNativeValue not executed to view because \".viewRef\" is cleared", Trace.categories.Animation, Trace.messageType.warn);
|
|
815
830
|
return;
|
|
816
831
|
}
|
|
817
|
-
|
|
832
|
+
var defaultValueKey = this.defaultValueKey;
|
|
818
833
|
if (!(defaultValueKey in target)) {
|
|
819
|
-
|
|
834
|
+
var getDefault = this.getDefault;
|
|
820
835
|
target[defaultValueKey] = view[getDefault] ? view[getDefault]() : this.defaultValue;
|
|
821
836
|
}
|
|
822
|
-
}
|
|
823
|
-
|
|
837
|
+
};
|
|
838
|
+
CssAnimationProperty._getByCssName = function (name) {
|
|
824
839
|
return this.properties[name];
|
|
825
|
-
}
|
|
826
|
-
|
|
840
|
+
};
|
|
841
|
+
CssAnimationProperty._getPropertyNames = function () {
|
|
827
842
|
return Object.keys(CssAnimationProperty.properties);
|
|
828
|
-
}
|
|
829
|
-
isSet(instance) {
|
|
843
|
+
};
|
|
844
|
+
CssAnimationProperty.prototype.isSet = function (instance) {
|
|
830
845
|
return instance[this.source] !== 0 /* ValueSource.Default */;
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
CssAnimationProperty
|
|
846
|
+
};
|
|
847
|
+
CssAnimationProperty.properties = {};
|
|
848
|
+
return CssAnimationProperty;
|
|
849
|
+
}());
|
|
850
|
+
export { CssAnimationProperty };
|
|
834
851
|
CssAnimationProperty.prototype.isStyleProperty = true;
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
+
var InheritedCssProperty = /** @class */ (function (_super) {
|
|
853
|
+
__extends(InheritedCssProperty, _super);
|
|
854
|
+
function InheritedCssProperty(options) {
|
|
855
|
+
var _this = _super.call(this, options) || this;
|
|
856
|
+
var propertyName = options.name;
|
|
857
|
+
var key = _this.key;
|
|
858
|
+
var sourceKey = _this.sourceKey;
|
|
859
|
+
var getDefault = _this.getDefault;
|
|
860
|
+
var setNative = _this.setNative;
|
|
861
|
+
var defaultValueKey = _this.defaultValueKey;
|
|
862
|
+
var eventName = propertyName + 'Change';
|
|
863
|
+
var defaultValue = options.defaultValue;
|
|
864
|
+
var affectsLayout = options.affectsLayout;
|
|
865
|
+
var equalityComparer = options.equalityComparer;
|
|
866
|
+
var valueChanged = options.valueChanged;
|
|
867
|
+
var valueConverter = options.valueConverter;
|
|
868
|
+
var property = _this;
|
|
869
|
+
_this.overrideHandlers = function (options) {
|
|
852
870
|
if (typeof options.equalityComparer !== 'undefined') {
|
|
853
871
|
equalityComparer = options.equalityComparer;
|
|
854
872
|
}
|
|
@@ -862,150 +880,159 @@ export class InheritedCssProperty extends CssProperty {
|
|
|
862
880
|
valueConverter = options.valueConverter;
|
|
863
881
|
}
|
|
864
882
|
};
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
}
|
|
871
|
-
const reset = boxedValue === unsetValue || boxedValue === '';
|
|
872
|
-
const currentValueSource = this[sourceKey] || 0 /* ValueSource.Default */;
|
|
873
|
-
if (reset) {
|
|
874
|
-
// If we want to reset cssValue and we have localValue - return;
|
|
875
|
-
if (valueSource === 2 /* ValueSource.Css */ && currentValueSource === 3 /* ValueSource.Local */) {
|
|
876
|
-
return;
|
|
877
|
-
}
|
|
878
|
-
}
|
|
879
|
-
else {
|
|
880
|
-
if (currentValueSource > valueSource) {
|
|
883
|
+
var setFunc = function (valueSource) {
|
|
884
|
+
return function (boxedValue) {
|
|
885
|
+
var view = this.viewRef.get();
|
|
886
|
+
if (!view) {
|
|
887
|
+
Trace.write("".concat(boxedValue, " not set to view's property because \".viewRef\" is cleared"), Trace.categories.Style, Trace.messageType.warn);
|
|
881
888
|
return;
|
|
882
889
|
}
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
const style = parent ? parent.style : null;
|
|
891
|
-
// If we have parent and it has non-default value we use as our inherited value.
|
|
892
|
-
if (style && style[sourceKey] > 0 /* ValueSource.Default */) {
|
|
893
|
-
value = style[propertyName];
|
|
894
|
-
this[sourceKey] = 1 /* ValueSource.Inherited */;
|
|
895
|
-
this[key] = value;
|
|
890
|
+
var reset = boxedValue === unsetValue || boxedValue === '';
|
|
891
|
+
var currentValueSource = this[sourceKey] || 0 /* ValueSource.Default */;
|
|
892
|
+
if (reset) {
|
|
893
|
+
// If we want to reset cssValue and we have localValue - return;
|
|
894
|
+
if (valueSource === 2 /* ValueSource.Css */ && currentValueSource === 3 /* ValueSource.Local */) {
|
|
895
|
+
return;
|
|
896
|
+
}
|
|
896
897
|
}
|
|
897
898
|
else {
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
unsetNativeValue = true;
|
|
899
|
+
if (currentValueSource > valueSource) {
|
|
900
|
+
return;
|
|
901
|
+
}
|
|
902
902
|
}
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
if (
|
|
907
|
-
|
|
903
|
+
var oldValue = key in this ? this[key] : defaultValue;
|
|
904
|
+
var value;
|
|
905
|
+
var unsetNativeValue = false;
|
|
906
|
+
if (reset) {
|
|
907
|
+
// If unsetValue - we want to reset this property.
|
|
908
|
+
var parent_2 = view.parent;
|
|
909
|
+
var style = parent_2 ? parent_2.style : null;
|
|
910
|
+
// If we have parent and it has non-default value we use as our inherited value.
|
|
911
|
+
if (style && style[sourceKey] > 0 /* ValueSource.Default */) {
|
|
912
|
+
value = style[propertyName];
|
|
913
|
+
this[sourceKey] = 1 /* ValueSource.Inherited */;
|
|
914
|
+
this[key] = value;
|
|
915
|
+
}
|
|
916
|
+
else {
|
|
917
|
+
value = defaultValue;
|
|
918
|
+
delete this[sourceKey];
|
|
919
|
+
delete this[key];
|
|
920
|
+
unsetNativeValue = true;
|
|
921
|
+
}
|
|
908
922
|
}
|
|
909
923
|
else {
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
}
|
|
914
|
-
const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
915
|
-
if (changed) {
|
|
916
|
-
if (valueChanged) {
|
|
917
|
-
valueChanged(this, oldValue, value);
|
|
918
|
-
}
|
|
919
|
-
if (view[setNative]) {
|
|
920
|
-
if (view._suspendNativeUpdatesCount) {
|
|
921
|
-
if (view._suspendedUpdates) {
|
|
922
|
-
view._suspendedUpdates[propertyName] = property;
|
|
923
|
-
}
|
|
924
|
+
this[sourceKey] = valueSource;
|
|
925
|
+
if (valueConverter && typeof boxedValue === 'string') {
|
|
926
|
+
value = valueConverter(boxedValue);
|
|
924
927
|
}
|
|
925
928
|
else {
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
929
|
+
value = boxedValue;
|
|
930
|
+
}
|
|
931
|
+
this[key] = value;
|
|
932
|
+
}
|
|
933
|
+
var changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
934
|
+
if (changed) {
|
|
935
|
+
if (valueChanged) {
|
|
936
|
+
valueChanged(this, oldValue, value);
|
|
937
|
+
}
|
|
938
|
+
if (view[setNative]) {
|
|
939
|
+
if (view._suspendNativeUpdatesCount) {
|
|
940
|
+
if (view._suspendedUpdates) {
|
|
941
|
+
view._suspendedUpdates[propertyName] = property;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
else {
|
|
945
|
+
if (unsetNativeValue) {
|
|
946
|
+
if (defaultValueKey in this) {
|
|
947
|
+
view[setNative](this[defaultValueKey]);
|
|
948
|
+
delete this[defaultValueKey];
|
|
949
|
+
}
|
|
950
|
+
else {
|
|
951
|
+
view[setNative](defaultValue);
|
|
952
|
+
}
|
|
930
953
|
}
|
|
931
954
|
else {
|
|
932
|
-
|
|
955
|
+
if (!(defaultValueKey in this)) {
|
|
956
|
+
this[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
|
|
957
|
+
}
|
|
958
|
+
view[setNative](value);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
if (this.hasListeners(eventName)) {
|
|
963
|
+
this.notify({
|
|
964
|
+
object: this,
|
|
965
|
+
eventName: eventName,
|
|
966
|
+
propertyName: propertyName,
|
|
967
|
+
value: value,
|
|
968
|
+
oldValue: oldValue,
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
if (affectsLayout) {
|
|
972
|
+
view.requestLayout();
|
|
973
|
+
}
|
|
974
|
+
view.eachChild(function (child) {
|
|
975
|
+
var childStyle = child.style;
|
|
976
|
+
var childValueSource = childStyle[sourceKey] || 0 /* ValueSource.Default */;
|
|
977
|
+
if (reset) {
|
|
978
|
+
if (childValueSource === 1 /* ValueSource.Inherited */) {
|
|
979
|
+
setDefaultFunc.call(childStyle, unsetValue);
|
|
933
980
|
}
|
|
934
981
|
}
|
|
935
982
|
else {
|
|
936
|
-
if (
|
|
937
|
-
|
|
983
|
+
if (childValueSource <= 1 /* ValueSource.Inherited */) {
|
|
984
|
+
setInheritedFunc.call(childStyle, value);
|
|
938
985
|
}
|
|
939
|
-
view[setNative](value);
|
|
940
986
|
}
|
|
941
|
-
|
|
942
|
-
}
|
|
943
|
-
if (this.hasListeners(eventName)) {
|
|
944
|
-
this.notify({
|
|
945
|
-
object: this,
|
|
946
|
-
eventName,
|
|
947
|
-
propertyName,
|
|
948
|
-
value,
|
|
949
|
-
oldValue,
|
|
987
|
+
return true;
|
|
950
988
|
});
|
|
951
989
|
}
|
|
952
|
-
|
|
953
|
-
view.requestLayout();
|
|
954
|
-
}
|
|
955
|
-
view.eachChild((child) => {
|
|
956
|
-
const childStyle = child.style;
|
|
957
|
-
const childValueSource = childStyle[sourceKey] || 0 /* ValueSource.Default */;
|
|
958
|
-
if (reset) {
|
|
959
|
-
if (childValueSource === 1 /* ValueSource.Inherited */) {
|
|
960
|
-
setDefaultFunc.call(childStyle, unsetValue);
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
else {
|
|
964
|
-
if (childValueSource <= 1 /* ValueSource.Inherited */) {
|
|
965
|
-
setInheritedFunc.call(childStyle, value);
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
return true;
|
|
969
|
-
});
|
|
970
|
-
}
|
|
990
|
+
};
|
|
971
991
|
};
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
inheritableCssProperties.push(
|
|
992
|
+
var setDefaultFunc = setFunc(0 /* ValueSource.Default */);
|
|
993
|
+
var setInheritedFunc = setFunc(1 /* ValueSource.Inherited */);
|
|
994
|
+
_this.setInheritedValue = setInheritedFunc;
|
|
995
|
+
_this.cssValueDescriptor.set = setFunc(2 /* ValueSource.Css */);
|
|
996
|
+
_this.localValueDescriptor.set = setFunc(3 /* ValueSource.Local */);
|
|
997
|
+
inheritableCssProperties.push(_this);
|
|
998
|
+
return _this;
|
|
978
999
|
}
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
1000
|
+
return InheritedCssProperty;
|
|
1001
|
+
}(CssProperty));
|
|
1002
|
+
export { InheritedCssProperty };
|
|
1003
|
+
var ShorthandProperty = /** @class */ (function () {
|
|
1004
|
+
function ShorthandProperty(options) {
|
|
982
1005
|
this.name = options.name;
|
|
983
|
-
|
|
1006
|
+
var key = Symbol(this.name + ':propertyKey');
|
|
984
1007
|
this.key = key;
|
|
985
|
-
this.cssName =
|
|
986
|
-
this.cssLocalName =
|
|
987
|
-
|
|
1008
|
+
this.cssName = "css:".concat(options.cssName);
|
|
1009
|
+
this.cssLocalName = "".concat(options.cssName);
|
|
1010
|
+
var converter = options.converter;
|
|
988
1011
|
function setLocalValue(value) {
|
|
989
|
-
|
|
1012
|
+
var _this = this;
|
|
1013
|
+
var view = this.viewRef.get();
|
|
990
1014
|
if (!view) {
|
|
991
|
-
Trace.write(
|
|
1015
|
+
Trace.write("setLocalValue not executed to view because \".viewRef\" is cleared", Trace.categories.Animation, Trace.messageType.warn);
|
|
992
1016
|
return;
|
|
993
1017
|
}
|
|
994
|
-
view._batchUpdate(()
|
|
995
|
-
for (
|
|
996
|
-
|
|
1018
|
+
view._batchUpdate(function () {
|
|
1019
|
+
for (var _i = 0, _a = converter(value); _i < _a.length; _i++) {
|
|
1020
|
+
var _b = _a[_i], p = _b[0], v = _b[1];
|
|
1021
|
+
_this[p.name] = v;
|
|
997
1022
|
}
|
|
998
1023
|
});
|
|
999
1024
|
}
|
|
1000
1025
|
function setCssValue(value) {
|
|
1001
|
-
|
|
1026
|
+
var _this = this;
|
|
1027
|
+
var view = this.viewRef.get();
|
|
1002
1028
|
if (!view) {
|
|
1003
|
-
Trace.write(
|
|
1029
|
+
Trace.write("setCssValue not executed to view because \".viewRef\" is cleared", Trace.categories.Animation, Trace.messageType.warn);
|
|
1004
1030
|
return;
|
|
1005
1031
|
}
|
|
1006
|
-
view._batchUpdate(()
|
|
1007
|
-
for (
|
|
1008
|
-
|
|
1032
|
+
view._batchUpdate(function () {
|
|
1033
|
+
for (var _i = 0, _a = converter(value); _i < _a.length; _i++) {
|
|
1034
|
+
var _b = _a[_i], p = _b[0], v = _b[1];
|
|
1035
|
+
_this[p.cssName] = v;
|
|
1009
1036
|
}
|
|
1010
1037
|
});
|
|
1011
1038
|
}
|
|
@@ -1024,17 +1051,19 @@ export class ShorthandProperty {
|
|
|
1024
1051
|
this.propertyBagDescriptor = {
|
|
1025
1052
|
enumerable: false,
|
|
1026
1053
|
configurable: true,
|
|
1027
|
-
set(value) {
|
|
1028
|
-
|
|
1029
|
-
|
|
1054
|
+
set: function (value) {
|
|
1055
|
+
var _this = this;
|
|
1056
|
+
converter(value).forEach(function (_a) {
|
|
1057
|
+
var property = _a[0], value = _a[1];
|
|
1058
|
+
_this[property.cssLocalName] = value;
|
|
1030
1059
|
});
|
|
1031
1060
|
},
|
|
1032
1061
|
};
|
|
1033
1062
|
cssSymbolPropertyMap[key] = this;
|
|
1034
1063
|
}
|
|
1035
|
-
register(cls) {
|
|
1064
|
+
ShorthandProperty.prototype.register = function (cls) {
|
|
1036
1065
|
if (this.registered) {
|
|
1037
|
-
throw new Error(
|
|
1066
|
+
throw new Error("Property ".concat(this.name, " already registered."));
|
|
1038
1067
|
}
|
|
1039
1068
|
this.registered = true;
|
|
1040
1069
|
Object.defineProperty(cls.prototype, this.name, this.localValueDescriptor);
|
|
@@ -1043,13 +1072,16 @@ export class ShorthandProperty {
|
|
|
1043
1072
|
Object.defineProperty(cls.prototype, this.cssLocalName, this.localValueDescriptor);
|
|
1044
1073
|
}
|
|
1045
1074
|
Object.defineProperty(cls.prototype.PropertyBag, this.cssLocalName, this.propertyBagDescriptor);
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1075
|
+
};
|
|
1076
|
+
return ShorthandProperty;
|
|
1077
|
+
}());
|
|
1078
|
+
export { ShorthandProperty };
|
|
1048
1079
|
function inheritablePropertyValuesOn(view) {
|
|
1049
|
-
|
|
1050
|
-
for (
|
|
1051
|
-
|
|
1052
|
-
|
|
1080
|
+
var array = new Array();
|
|
1081
|
+
for (var _i = 0, inheritableProperties_1 = inheritableProperties; _i < inheritableProperties_1.length; _i++) {
|
|
1082
|
+
var prop = inheritableProperties_1[_i];
|
|
1083
|
+
var sourceKey = prop.sourceKey;
|
|
1084
|
+
var valueSource = view[sourceKey] || 0 /* ValueSource.Default */;
|
|
1053
1085
|
if (valueSource !== 0 /* ValueSource.Default */) {
|
|
1054
1086
|
// use prop.name as it will return value or default value.
|
|
1055
1087
|
// prop.key will return undefined if property is set the same value as default one.
|
|
@@ -1059,10 +1091,11 @@ function inheritablePropertyValuesOn(view) {
|
|
|
1059
1091
|
return array;
|
|
1060
1092
|
}
|
|
1061
1093
|
function inheritableCssPropertyValuesOn(style) {
|
|
1062
|
-
|
|
1063
|
-
for (
|
|
1064
|
-
|
|
1065
|
-
|
|
1094
|
+
var array = new Array();
|
|
1095
|
+
for (var _i = 0, inheritableCssProperties_1 = inheritableCssProperties; _i < inheritableCssProperties_1.length; _i++) {
|
|
1096
|
+
var prop = inheritableCssProperties_1[_i];
|
|
1097
|
+
var sourceKey = prop.sourceKey;
|
|
1098
|
+
var valueSource = style[sourceKey] || 0 /* ValueSource.Default */;
|
|
1066
1099
|
if (valueSource !== 0 /* ValueSource.Default */) {
|
|
1067
1100
|
// use prop.name as it will return value or default value.
|
|
1068
1101
|
// prop.key will return undefined if property is set the same value as default one.
|
|
@@ -1071,7 +1104,7 @@ function inheritableCssPropertyValuesOn(style) {
|
|
|
1071
1104
|
}
|
|
1072
1105
|
return array;
|
|
1073
1106
|
}
|
|
1074
|
-
export
|
|
1107
|
+
export var initNativeView = profile('"properties".initNativeView', function initNativeView(view) {
|
|
1075
1108
|
if (view._suspendedUpdates) {
|
|
1076
1109
|
applyPendingNativeSetters(view);
|
|
1077
1110
|
}
|
|
@@ -1083,15 +1116,15 @@ export const initNativeView = profile('"properties".initNativeView', function in
|
|
|
1083
1116
|
});
|
|
1084
1117
|
export function applyPendingNativeSetters(view) {
|
|
1085
1118
|
// TODO: Check what happens if a view was suspended and its value was reset, or set back to default!
|
|
1086
|
-
|
|
1087
|
-
for (
|
|
1088
|
-
|
|
1089
|
-
|
|
1119
|
+
var suspendedUpdates = view._suspendedUpdates;
|
|
1120
|
+
for (var propertyName in suspendedUpdates) {
|
|
1121
|
+
var property = suspendedUpdates[propertyName];
|
|
1122
|
+
var setNative = property.setNative;
|
|
1090
1123
|
if (view[setNative]) {
|
|
1091
|
-
|
|
1092
|
-
|
|
1124
|
+
var getDefault = property.getDefault, isStyleProperty = property.isStyleProperty, defaultValueKey = property.defaultValueKey, defaultValue = property.defaultValue;
|
|
1125
|
+
var value = void 0;
|
|
1093
1126
|
if (isStyleProperty) {
|
|
1094
|
-
|
|
1127
|
+
var style = view.style;
|
|
1095
1128
|
if (property.isSet(view.style)) {
|
|
1096
1129
|
if (!(defaultValueKey in style)) {
|
|
1097
1130
|
style[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
|
|
@@ -1119,44 +1152,47 @@ export function applyPendingNativeSetters(view) {
|
|
|
1119
1152
|
}
|
|
1120
1153
|
}
|
|
1121
1154
|
export function applyAllNativeSetters(view) {
|
|
1122
|
-
|
|
1123
|
-
for (
|
|
1124
|
-
|
|
1155
|
+
var symbols = Object.getOwnPropertySymbols(view);
|
|
1156
|
+
for (var _i = 0, symbols_2 = symbols; _i < symbols_2.length; _i++) {
|
|
1157
|
+
var symbol = symbols_2[_i];
|
|
1158
|
+
var property = symbolPropertyMap[symbol];
|
|
1125
1159
|
if (!property) {
|
|
1126
1160
|
continue;
|
|
1127
1161
|
}
|
|
1128
|
-
|
|
1129
|
-
|
|
1162
|
+
var setNative = property.setNative;
|
|
1163
|
+
var getDefault = property.getDefault;
|
|
1130
1164
|
if (setNative in view) {
|
|
1131
|
-
|
|
1165
|
+
var defaultValueKey = property.defaultValueKey;
|
|
1132
1166
|
if (!(defaultValueKey in view)) {
|
|
1133
1167
|
view[defaultValueKey] = view[getDefault] ? view[getDefault]() : property.defaultValue;
|
|
1134
1168
|
}
|
|
1135
|
-
|
|
1169
|
+
var value = view[symbol];
|
|
1136
1170
|
view[setNative](value);
|
|
1137
1171
|
}
|
|
1138
1172
|
}
|
|
1139
|
-
|
|
1173
|
+
var style = view.style;
|
|
1140
1174
|
symbols = Object.getOwnPropertySymbols(style);
|
|
1141
|
-
for (
|
|
1142
|
-
|
|
1175
|
+
for (var _a = 0, symbols_3 = symbols; _a < symbols_3.length; _a++) {
|
|
1176
|
+
var symbol = symbols_3[_a];
|
|
1177
|
+
var property = cssSymbolPropertyMap[symbol];
|
|
1143
1178
|
if (!property) {
|
|
1144
1179
|
continue;
|
|
1145
1180
|
}
|
|
1146
1181
|
if (view[property.setNative]) {
|
|
1147
|
-
|
|
1182
|
+
var defaultValueKey = property.defaultValueKey;
|
|
1148
1183
|
if (!(defaultValueKey in style)) {
|
|
1149
1184
|
style[defaultValueKey] = view[property.getDefault] ? view[property.getDefault]() : property.defaultValue;
|
|
1150
1185
|
}
|
|
1151
|
-
|
|
1186
|
+
var value = style[symbol];
|
|
1152
1187
|
view[property.setNative](value);
|
|
1153
1188
|
}
|
|
1154
1189
|
}
|
|
1155
1190
|
}
|
|
1156
1191
|
export function resetNativeView(view) {
|
|
1157
|
-
|
|
1158
|
-
for (
|
|
1159
|
-
|
|
1192
|
+
var symbols = Object.getOwnPropertySymbols(view);
|
|
1193
|
+
for (var _i = 0, symbols_4 = symbols; _i < symbols_4.length; _i++) {
|
|
1194
|
+
var symbol = symbols_4[_i];
|
|
1195
|
+
var property = symbolPropertyMap[symbol];
|
|
1160
1196
|
if (!property) {
|
|
1161
1197
|
continue;
|
|
1162
1198
|
}
|
|
@@ -1170,10 +1206,11 @@ export function resetNativeView(view) {
|
|
|
1170
1206
|
}
|
|
1171
1207
|
}
|
|
1172
1208
|
}
|
|
1173
|
-
|
|
1209
|
+
var style = view.style;
|
|
1174
1210
|
symbols = Object.getOwnPropertySymbols(style);
|
|
1175
|
-
for (
|
|
1176
|
-
|
|
1211
|
+
for (var _a = 0, symbols_5 = symbols; _a < symbols_5.length; _a++) {
|
|
1212
|
+
var symbol = symbols_5[_a];
|
|
1213
|
+
var property = cssSymbolPropertyMap[symbol];
|
|
1177
1214
|
if (!property) {
|
|
1178
1215
|
continue;
|
|
1179
1216
|
}
|
|
@@ -1189,24 +1226,27 @@ export function resetNativeView(view) {
|
|
|
1189
1226
|
}
|
|
1190
1227
|
}
|
|
1191
1228
|
export function clearInheritedProperties(view) {
|
|
1192
|
-
for (
|
|
1193
|
-
|
|
1229
|
+
for (var _i = 0, inheritableProperties_2 = inheritableProperties; _i < inheritableProperties_2.length; _i++) {
|
|
1230
|
+
var prop = inheritableProperties_2[_i];
|
|
1231
|
+
var sourceKey = prop.sourceKey;
|
|
1194
1232
|
if (view[sourceKey] === 1 /* ValueSource.Inherited */) {
|
|
1195
1233
|
prop.set.call(view, unsetValue);
|
|
1196
1234
|
}
|
|
1197
1235
|
}
|
|
1198
|
-
|
|
1199
|
-
for (
|
|
1200
|
-
|
|
1236
|
+
var style = view.style;
|
|
1237
|
+
for (var _a = 0, inheritableCssProperties_2 = inheritableCssProperties; _a < inheritableCssProperties_2.length; _a++) {
|
|
1238
|
+
var prop = inheritableCssProperties_2[_a];
|
|
1239
|
+
var sourceKey = prop.sourceKey;
|
|
1201
1240
|
if (style[sourceKey] === 1 /* ValueSource.Inherited */) {
|
|
1202
1241
|
prop.setInheritedValue.call(style, unsetValue);
|
|
1203
1242
|
}
|
|
1204
1243
|
}
|
|
1205
1244
|
}
|
|
1206
1245
|
export function resetCSSProperties(style) {
|
|
1207
|
-
|
|
1208
|
-
for (
|
|
1209
|
-
|
|
1246
|
+
var symbols = Object.getOwnPropertySymbols(style);
|
|
1247
|
+
for (var _i = 0, symbols_6 = symbols; _i < symbols_6.length; _i++) {
|
|
1248
|
+
var symbol = symbols_6[_i];
|
|
1249
|
+
var cssProperty = void 0;
|
|
1210
1250
|
if ((cssProperty = cssSymbolPropertyMap[symbol])) {
|
|
1211
1251
|
style[cssProperty.cssName] = unsetValue;
|
|
1212
1252
|
if (cssProperty instanceof CssAnimationProperty) {
|
|
@@ -1216,40 +1256,47 @@ export function resetCSSProperties(style) {
|
|
|
1216
1256
|
}
|
|
1217
1257
|
}
|
|
1218
1258
|
export function propagateInheritableProperties(view, child) {
|
|
1219
|
-
|
|
1220
|
-
for (
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1259
|
+
var inheritablePropertyValues = inheritablePropertyValuesOn(view);
|
|
1260
|
+
for (var _i = 0, inheritablePropertyValues_1 = inheritablePropertyValues; _i < inheritablePropertyValues_1.length; _i++) {
|
|
1261
|
+
var pair = inheritablePropertyValues_1[_i];
|
|
1262
|
+
var prop = pair.property;
|
|
1263
|
+
var sourceKey = prop.sourceKey;
|
|
1264
|
+
var currentValueSource = child[sourceKey] || 0 /* ValueSource.Default */;
|
|
1224
1265
|
if (currentValueSource <= 1 /* ValueSource.Inherited */) {
|
|
1225
1266
|
prop.setInheritedValue.call(child, pair.value);
|
|
1226
1267
|
}
|
|
1227
1268
|
}
|
|
1228
1269
|
}
|
|
1229
1270
|
export function propagateInheritableCssProperties(parentStyle, childStyle) {
|
|
1230
|
-
|
|
1231
|
-
for (
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1271
|
+
var inheritableCssPropertyValues = inheritableCssPropertyValuesOn(parentStyle);
|
|
1272
|
+
for (var _i = 0, inheritableCssPropertyValues_1 = inheritableCssPropertyValues; _i < inheritableCssPropertyValues_1.length; _i++) {
|
|
1273
|
+
var pair = inheritableCssPropertyValues_1[_i];
|
|
1274
|
+
var prop = pair.property;
|
|
1275
|
+
var sourceKey = prop.sourceKey;
|
|
1276
|
+
var currentValueSource = childStyle[sourceKey] || 0 /* ValueSource.Default */;
|
|
1235
1277
|
if (currentValueSource <= 1 /* ValueSource.Inherited */) {
|
|
1236
1278
|
prop.setInheritedValue.call(childStyle, pair.value, 1 /* ValueSource.Inherited */);
|
|
1237
1279
|
}
|
|
1238
1280
|
}
|
|
1239
1281
|
}
|
|
1240
|
-
export function makeValidator(
|
|
1241
|
-
|
|
1242
|
-
|
|
1282
|
+
export function makeValidator() {
|
|
1283
|
+
var values = [];
|
|
1284
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
1285
|
+
values[_i] = arguments[_i];
|
|
1286
|
+
}
|
|
1287
|
+
var set = new Set(values);
|
|
1288
|
+
return function (value) { return set.has(value); };
|
|
1243
1289
|
}
|
|
1244
|
-
export function makeParser(isValid, allowNumbers
|
|
1245
|
-
|
|
1246
|
-
|
|
1290
|
+
export function makeParser(isValid, allowNumbers) {
|
|
1291
|
+
if (allowNumbers === void 0) { allowNumbers = false; }
|
|
1292
|
+
return function (value) {
|
|
1293
|
+
var lower = value && value.toLowerCase();
|
|
1247
1294
|
if (isValid(lower)) {
|
|
1248
1295
|
return lower;
|
|
1249
1296
|
}
|
|
1250
1297
|
else {
|
|
1251
1298
|
if (allowNumbers) {
|
|
1252
|
-
|
|
1299
|
+
var convNumber = +value;
|
|
1253
1300
|
if (!isNaN(convNumber)) {
|
|
1254
1301
|
return value;
|
|
1255
1302
|
}
|
|
@@ -1259,25 +1306,27 @@ export function makeParser(isValid, allowNumbers = false) {
|
|
|
1259
1306
|
};
|
|
1260
1307
|
}
|
|
1261
1308
|
export function getSetProperties(view) {
|
|
1262
|
-
|
|
1263
|
-
Object.getOwnPropertyNames(view).forEach((prop)
|
|
1309
|
+
var result = [];
|
|
1310
|
+
Object.getOwnPropertyNames(view).forEach(function (prop) {
|
|
1264
1311
|
result.push([prop, view[prop]]);
|
|
1265
1312
|
});
|
|
1266
|
-
|
|
1267
|
-
for (
|
|
1268
|
-
|
|
1313
|
+
var symbols = Object.getOwnPropertySymbols(view);
|
|
1314
|
+
for (var _i = 0, symbols_7 = symbols; _i < symbols_7.length; _i++) {
|
|
1315
|
+
var symbol = symbols_7[_i];
|
|
1316
|
+
var property = symbolPropertyMap[symbol];
|
|
1269
1317
|
if (!property) {
|
|
1270
1318
|
continue;
|
|
1271
1319
|
}
|
|
1272
|
-
|
|
1320
|
+
var value = view[property.key];
|
|
1273
1321
|
result.push([property.name, value]);
|
|
1274
1322
|
}
|
|
1275
1323
|
return result;
|
|
1276
1324
|
}
|
|
1277
1325
|
export function getComputedCssValues(view) {
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
for (
|
|
1326
|
+
var result = [];
|
|
1327
|
+
var style = view.style;
|
|
1328
|
+
for (var _i = 0, cssPropertyNames_1 = cssPropertyNames; _i < cssPropertyNames_1.length; _i++) {
|
|
1329
|
+
var prop = cssPropertyNames_1[_i];
|
|
1281
1330
|
result.push([prop, style[prop]]);
|
|
1282
1331
|
}
|
|
1283
1332
|
// Add these to enable box model in chrome-devtools styles tab
|