@nativescript/core 9.0.10 → 9.0.11-next.1
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/css/package.json +36 -0
- package/css-value/package.json +23 -0
- package/package.json +86 -86
- package/LICENSE +0 -19
- package/abortcontroller/abortsignal.d.ts +0 -23
- package/abortcontroller/abortsignal.js +0 -57
- package/abortcontroller/abortsignal.js.map +0 -1
- package/abortcontroller/index.d.ts +0 -20
- package/abortcontroller/index.js +0 -52
- package/abortcontroller/index.js.map +0 -1
- package/accessibility/accessibility-common.d.ts +0 -282
- package/accessibility/accessibility-common.js +0 -416
- package/accessibility/accessibility-common.js.map +0 -1
- package/accessibility/accessibility-properties.d.ts +0 -24
- package/accessibility/accessibility-properties.js +0 -118
- package/accessibility/accessibility-properties.js.map +0 -1
- package/accessibility/index.d.ts +0 -1
- package/accessibility/index.js +0 -2
- package/accessibility/index.js.map +0 -1
- package/animation-frame/animation-native.android.d.ts +0 -1
- package/animation-frame/animation-native.android.js +0 -4
- package/animation-frame/animation-native.android.js.map +0 -1
- package/animation-frame/animation-native.ios.d.ts +0 -1
- package/animation-frame/animation-native.ios.js +0 -3
- package/animation-frame/animation-native.ios.js.map +0 -1
- package/animation-frame/index.js +0 -81
- package/animation-frame/index.js.map +0 -1
- package/application/application-common.d.ts +0 -247
- package/application/application-common.js +0 -578
- package/application/application-common.js.map +0 -1
- package/application/application-interfaces.d.ts +0 -220
- package/application/application-interfaces.js +0 -2
- package/application/application-interfaces.js.map +0 -1
- package/application/application-shims.d.ts +0 -378
- package/application/application-shims.js +0 -380
- package/application/application-shims.js.map +0 -1
- package/application/application.android.d.ts +0 -81
- package/application/application.android.js +0 -1233
- package/application/application.android.js.map +0 -1
- package/application/application.ios.d.ts +0 -145
- package/application/application.ios.js +0 -1481
- package/application/application.ios.js.map +0 -1
- package/application/helpers-common.d.ts +0 -50
- package/application/helpers-common.js +0 -153
- package/application/helpers-common.js.map +0 -1
- package/application/helpers.android.d.ts +0 -8
- package/application/helpers.android.js +0 -119
- package/application/helpers.android.js.map +0 -1
- package/application/helpers.ios.d.ts +0 -8
- package/application/helpers.ios.js +0 -24
- package/application/helpers.ios.js.map +0 -1
- package/application/index.android.d.ts +0 -2
- package/application/index.android.js +0 -3
- package/application/index.android.js.map +0 -1
- package/application/index.ios.d.ts +0 -2
- package/application/index.ios.js +0 -3
- package/application/index.ios.js.map +0 -1
- package/application-settings/application-settings-common.d.ts +0 -2
- package/application-settings/application-settings-common.js +0 -15
- package/application-settings/application-settings-common.js.map +0 -1
- package/application-settings/index.android.d.ts +0 -11
- package/application-settings/index.android.js +0 -124
- package/application-settings/index.android.js.map +0 -1
- package/application-settings/index.ios.d.ts +0 -11
- package/application-settings/index.ios.js +0 -81
- package/application-settings/index.ios.js.map +0 -1
- package/bundle-entry-points.d.ts +0 -1
- package/bundle-entry-points.js +0 -47
- package/bundle-entry-points.js.map +0 -1
- package/color/color-common.d.ts +0 -136
- package/color/color-common.js +0 -341
- package/color/color-common.js.map +0 -1
- package/color/color-types.d.ts +0 -49
- package/color/color-types.js +0 -3
- package/color/color-types.js.map +0 -1
- package/color/color-utils.d.ts +0 -38
- package/color/color-utils.js +0 -213
- package/color/color-utils.js.map +0 -1
- package/color/index.android.d.ts +0 -4
- package/color/index.android.js +0 -7
- package/color/index.android.js.map +0 -1
- package/color/index.ios.d.ts +0 -7
- package/color/index.ios.js +0 -19
- package/color/index.ios.js.map +0 -1
- package/color/known-colors.d.ts +0 -144
- package/color/known-colors.js +0 -165
- package/color/known-colors.js.map +0 -1
- package/config/config.interface.d.ts +0 -275
- package/config/config.interface.js +0 -2
- package/config/config.interface.js.map +0 -1
- package/config/index.d.ts +0 -1
- package/config/index.js +0 -2
- package/config/index.js.map +0 -1
- package/connectivity/index.android.d.ts +0 -11
- package/connectivity/index.android.js +0 -157
- package/connectivity/index.android.js.map +0 -1
- package/connectivity/index.ios.d.ts +0 -11
- package/connectivity/index.ios.js +0 -132
- package/connectivity/index.ios.js.map +0 -1
- package/console/index.d.ts +0 -14
- package/console/index.js +0 -33
- package/console/index.js.map +0 -1
- package/core-types/animation-types.d.ts +0 -11
- package/core-types/animation-types.js +0 -13
- package/core-types/animation-types.js.map +0 -1
- package/core-types/index.d.ts +0 -345
- package/core-types/index.js +0 -290
- package/core-types/index.js.map +0 -1
- package/core-types/validators.d.ts +0 -2
- package/core-types/validators.js +0 -27
- package/core-types/validators.js.map +0 -1
- package/css/CSS3Parser.d.ts +0 -184
- package/css/CSS3Parser.js +0 -534
- package/css/CSS3Parser.js.map +0 -1
- package/css/CSSNativeScript.d.ts +0 -14
- package/css/CSSNativeScript.js +0 -113
- package/css/CSSNativeScript.js.map +0 -1
- package/css/css-tree-parser.d.ts +0 -1
- package/css/css-tree-parser.js +0 -133
- package/css/css-tree-parser.js.map +0 -1
- package/css/lib/parse/index.d.ts +0 -1
- package/css/lib/parse/index.js +0 -500
- package/css/lib/parse/index.js.map +0 -1
- package/css/parser.d.ts +0 -70
- package/css/parser.js +0 -517
- package/css/parser.js.map +0 -1
- package/css/reworkcss.d.ts +0 -44
- package/css/reworkcss.js +0 -5
- package/css/reworkcss.js.map +0 -1
- package/css/system-classes.d.ts +0 -12
- package/css/system-classes.js +0 -47
- package/css/system-classes.js.map +0 -1
- package/css-mediaquery/index.d.ts +0 -27
- package/css-mediaquery/index.js +0 -118
- package/css-mediaquery/index.js.map +0 -1
- package/css-value/reworkcss-value.d.ts +0 -31
- package/css-value/reworkcss-value.js +0 -91
- package/css-value/reworkcss-value.js.map +0 -1
- package/data/observable/index.d.ts +0 -213
- package/data/observable/index.js +0 -452
- package/data/observable/index.js.map +0 -1
- package/data/observable-array/index.d.ts +0 -215
- package/data/observable-array/index.js +0 -325
- package/data/observable-array/index.js.map +0 -1
- package/data/virtual-array/index.d.ts +0 -72
- package/data/virtual-array/index.js +0 -133
- package/data/virtual-array/index.js.map +0 -1
- package/debugger/InspectorBackendCommands.d.ts +0 -1056
- package/debugger/InspectorBackendCommands.js +0 -578
- package/debugger/InspectorBackendCommands.js.map +0 -1
- package/debugger/devtools-elements-interfaces.d.ts +0 -16
- package/debugger/devtools-elements-interfaces.js +0 -2
- package/debugger/devtools-elements-interfaces.js.map +0 -1
- package/debugger/devtools-elements.common.d.ts +0 -7
- package/debugger/devtools-elements.common.js +0 -93
- package/debugger/devtools-elements.common.js.map +0 -1
- package/debugger/devtools-elements.js +0 -20
- package/debugger/devtools-elements.js.map +0 -1
- package/debugger/dom-types.d.ts +0 -24
- package/debugger/dom-types.js +0 -152
- package/debugger/dom-types.js.map +0 -1
- package/debugger/index.d.ts +0 -87
- package/debugger/index.js +0 -118
- package/debugger/index.js.map +0 -1
- package/debugger/webinspector-css.d.ts +0 -34
- package/debugger/webinspector-css.js +0 -72
- package/debugger/webinspector-css.js.map +0 -1
- package/debugger/webinspector-dom.d.ts +0 -33
- package/debugger/webinspector-dom.js +0 -75
- package/debugger/webinspector-dom.js.map +0 -1
- package/debugger/webinspector-network.android.d.ts +0 -79
- package/debugger/webinspector-network.android.js +0 -208
- package/debugger/webinspector-network.android.js.map +0 -1
- package/debugger/webinspector-network.ios.d.ts +0 -79
- package/debugger/webinspector-network.ios.js +0 -204
- package/debugger/webinspector-network.ios.js.map +0 -1
- package/fetch/index.d.ts +0 -72
- package/fetch/index.js +0 -529
- package/fetch/index.js.map +0 -1
- package/file-system/file-system-access.android.d.ts +0 -151
- package/file-system/file-system-access.android.js +0 -1162
- package/file-system/file-system-access.android.js.map +0 -1
- package/file-system/file-system-access.ios.d.ts +0 -85
- package/file-system/file-system-access.ios.js +0 -622
- package/file-system/file-system-access.ios.js.map +0 -1
- package/file-system/index.js +0 -873
- package/file-system/index.js.map +0 -1
- package/fps-meter/fps-native.android.d.ts +0 -11
- package/fps-meter/fps-native.android.js +0 -62
- package/fps-meter/fps-native.android.js.map +0 -1
- package/fps-meter/fps-native.ios.d.ts +0 -10
- package/fps-meter/fps-native.ios.js +0 -56
- package/fps-meter/fps-native.ios.js.map +0 -1
- package/fps-meter/index.js +0 -77
- package/fps-meter/index.js.map +0 -1
- package/globals/global-utils.d.ts +0 -27
- package/globals/global-utils.js +0 -67
- package/globals/global-utils.js.map +0 -1
- package/globals/index.d.ts +0 -3
- package/globals/index.js +0 -313
- package/globals/index.js.map +0 -1
- package/http/http-interfaces.d.ts +0 -84
- package/http/http-interfaces.js +0 -6
- package/http/http-interfaces.js.map +0 -1
- package/http/http-request/http-request-common.d.ts +0 -1
- package/http/http-request/http-request-common.js +0 -15
- package/http/http-request/http-request-common.js.map +0 -1
- package/http/http-request/index.android.d.ts +0 -3
- package/http/http-request/index.android.js +0 -274
- package/http/http-request/index.android.js.map +0 -1
- package/http/http-request/index.ios.d.ts +0 -3
- package/http/http-request/index.ios.js +0 -221
- package/http/http-request/index.ios.js.map +0 -1
- package/http/http-shared.d.ts +0 -3
- package/http/http-shared.js +0 -2
- package/http/http-shared.js.map +0 -1
- package/http/index.js +0 -70
- package/http/index.js.map +0 -1
- package/image-asset/image-asset-common.d.ts +0 -25
- package/image-asset/image-asset-common.js +0 -74
- package/image-asset/image-asset-common.js.map +0 -1
- package/image-asset/index.android.d.ts +0 -9
- package/image-asset/index.android.js +0 -33
- package/image-asset/index.android.js.map +0 -1
- package/image-asset/index.ios.d.ts +0 -10
- package/image-asset/index.ios.js +0 -57
- package/image-asset/index.ios.js.map +0 -1
- package/image-source/image-source-common.d.ts +0 -4
- package/image-source/image-source-common.js +0 -21
- package/image-source/image-source-common.js.map +0 -1
- package/image-source/index.android.d.ts +0 -58
- package/image-source/index.android.js +0 -371
- package/image-source/index.android.js.map +0 -1
- package/image-source/index.ios.d.ts +0 -59
- package/image-source/index.ios.js +0 -454
- package/image-source/index.ios.js.map +0 -1
- package/index.js +0 -38
- package/index.js.map +0 -1
- package/inspector_modules.d.ts +0 -7
- package/inspector_modules.js +0 -233
- package/inspector_modules.js.map +0 -1
- package/matrix/index.js +0 -45
- package/matrix/index.js.map +0 -1
- package/media-query-list/index.d.ts +0 -21
- package/media-query-list/index.js +0 -159
- package/media-query-list/index.js.map +0 -1
- package/module-name-resolver/helpers.d.ts +0 -14
- package/module-name-resolver/helpers.js +0 -27
- package/module-name-resolver/helpers.js.map +0 -1
- package/module-name-resolver/index.d.ts +0 -14
- package/module-name-resolver/index.js +0 -67
- package/module-name-resolver/index.js.map +0 -1
- package/module-name-resolver/non-bundle-workflow-compat.d.ts +0 -6
- package/module-name-resolver/non-bundle-workflow-compat.js +0 -128
- package/module-name-resolver/non-bundle-workflow-compat.js.map +0 -1
- package/module-name-resolver/qualifier-matcher/index.d.ts +0 -11
- package/module-name-resolver/qualifier-matcher/index.js +0 -141
- package/module-name-resolver/qualifier-matcher/index.js.map +0 -1
- package/platform/common.d.ts +0 -10
- package/platform/common.js +0 -14
- package/platform/common.js.map +0 -1
- package/platform/device/index.android.d.ts +0 -20
- package/platform/device/index.android.js +0 -78
- package/platform/device/index.android.js.map +0 -1
- package/platform/device/index.ios.d.ts +0 -19
- package/platform/device/index.ios.js +0 -69
- package/platform/device/index.ios.js.map +0 -1
- package/platform/index.js +0 -4
- package/platform/index.js.map +0 -1
- package/platform/screen/index.android.d.ts +0 -16
- package/platform/screen/index.android.js +0 -41
- package/platform/screen/index.android.js.map +0 -1
- package/platform/screen/index.ios.d.ts +0 -15
- package/platform/screen/index.ios.js +0 -35
- package/platform/screen/index.ios.js.map +0 -1
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSCWinterTC.h +0 -20
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Headers/NSString+WinterTC.h +0 -21
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Resources/Info.plist +0 -52
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSCCrypto.h +0 -79
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSCWinterTC.h +0 -20
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Headers/NSString+WinterTC.h +0 -21
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Modules/module.modulemap +0 -6
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/NSCWinterTC +0 -0
- package/platforms/ios/NSCWinterTC.xcframework/ios-arm64_x86_64-maccatalyst/NSCWinterTC.framework/Versions/Current/Resources/Info.plist +0 -52
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +0 -52
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSCCrypto.h +0 -60
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSData+Async.h +0 -24
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSFileHandle+Async.h +0 -22
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/NSString+Async.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSLabel.h +0 -16
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSProcess.h +0 -29
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/TNSWidgets.h +0 -25
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIImage+TNSBlocks.h +0 -26
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Headers/UIView+PassThroughParent.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Modules/module.modulemap +0 -6
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/NSObject+Swizzling.h +0 -17
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/PrivateHeaders/UIView+PropertyBag.h +0 -18
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Resources/Info.plist +0 -52
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/profiling/index.js +0 -273
- package/profiling/index.js.map +0 -1
- package/text/formatted-string.js +0 -2
- package/text/formatted-string.js.map +0 -1
- package/text/index.android.d.ts +0 -9
- package/text/index.android.js +0 -11
- package/text/index.android.js.map +0 -1
- package/text/index.ios.d.ts +0 -9
- package/text/index.ios.js +0 -11
- package/text/index.ios.js.map +0 -1
- package/text/span.js +0 -2
- package/text/span.js.map +0 -1
- package/text/text-common.d.ts +0 -12
- package/text/text-common.js +0 -111
- package/text/text-common.js.map +0 -1
- package/timer/index.android.d.ts +0 -4
- package/timer/index.android.js +0 -83
- package/timer/index.android.js.map +0 -1
- package/timer/index.ios.d.ts +0 -4
- package/timer/index.ios.js +0 -68
- package/timer/index.ios.js.map +0 -1
- package/trace/index.js +0 -255
- package/trace/index.js.map +0 -1
- package/ui/action-bar/action-bar-common.d.ts +0 -85
- package/ui/action-bar/action-bar-common.js +0 -381
- package/ui/action-bar/action-bar-common.js.map +0 -1
- package/ui/action-bar/index.android.d.ts +0 -55
- package/ui/action-bar/index.android.js +0 -502
- package/ui/action-bar/index.android.js.map +0 -1
- package/ui/action-bar/index.ios.d.ts +0 -64
- package/ui/action-bar/index.ios.js +0 -614
- package/ui/action-bar/index.ios.js.map +0 -1
- package/ui/activity-indicator/activity-indicator-common.d.ts +0 -9
- package/ui/activity-indicator/activity-indicator-common.js +0 -22
- package/ui/activity-indicator/activity-indicator-common.js.map +0 -1
- package/ui/activity-indicator/index.android.d.ts +0 -15
- package/ui/activity-indicator/index.android.js +0 -54
- package/ui/activity-indicator/index.android.js.map +0 -1
- package/ui/activity-indicator/index.ios.d.ts +0 -16
- package/ui/activity-indicator/index.ios.js +0 -54
- package/ui/activity-indicator/index.ios.js.map +0 -1
- package/ui/animation/animation-common.d.ts +0 -30
- package/ui/animation/animation-common.js +0 -239
- package/ui/animation/animation-common.js.map +0 -1
- package/ui/animation/animation-shared.d.ts +0 -84
- package/ui/animation/animation-shared.js +0 -4
- package/ui/animation/animation-shared.js.map +0 -1
- package/ui/animation/animation-types.d.ts +0 -1
- package/ui/animation/animation-types.js +0 -3
- package/ui/animation/animation-types.js.map +0 -1
- package/ui/animation/index.android.d.ts +0 -23
- package/ui/animation/index.android.js +0 -432
- package/ui/animation/index.android.js.map +0 -1
- package/ui/animation/index.ios.d.ts +0 -28
- package/ui/animation/index.ios.js +0 -808
- package/ui/animation/index.ios.js.map +0 -1
- package/ui/animation/keyframe-animation.d.ts +0 -76
- package/ui/animation/keyframe-animation.js +0 -238
- package/ui/animation/keyframe-animation.js.map +0 -1
- package/ui/builder/binding-builder.d.ts +0 -13
- package/ui/builder/binding-builder.js +0 -171
- package/ui/builder/binding-builder.js.map +0 -1
- package/ui/builder/component-builder/index.d.ts +0 -7
- package/ui/builder/component-builder/index.js +0 -219
- package/ui/builder/component-builder/index.js.map +0 -1
- package/ui/builder/index.d.ts +0 -193
- package/ui/builder/index.js +0 -643
- package/ui/builder/index.js.map +0 -1
- package/ui/button/button-common.d.ts +0 -9
- package/ui/button/button-common.js +0 -26
- package/ui/button/button-common.js.map +0 -1
- package/ui/button/index.android.d.ts +0 -29
- package/ui/button/index.android.js +0 -166
- package/ui/button/index.android.js.map +0 -1
- package/ui/button/index.ios.d.ts +0 -37
- package/ui/button/index.ios.js +0 -316
- package/ui/button/index.ios.js.map +0 -1
- package/ui/content-view/index.js +0 -87
- package/ui/content-view/index.js.map +0 -1
- package/ui/core/bindable/bindable-expressions.d.ts +0 -7
- package/ui/core/bindable/bindable-expressions.js +0 -255
- package/ui/core/bindable/bindable-expressions.js.map +0 -1
- package/ui/core/bindable/bindable-resources.d.ts +0 -2
- package/ui/core/bindable/bindable-resources.js +0 -8
- package/ui/core/bindable/bindable-resources.js.map +0 -1
- package/ui/core/bindable/bindable-types.d.ts +0 -37
- package/ui/core/bindable/bindable-types.js +0 -3
- package/ui/core/bindable/bindable-types.js.map +0 -1
- package/ui/core/bindable/index.d.ts +0 -53
- package/ui/core/bindable/index.js +0 -555
- package/ui/core/bindable/index.js.map +0 -1
- package/ui/core/control-state-change/index.android.d.ts +0 -6
- package/ui/core/control-state-change/index.android.js +0 -8
- package/ui/core/control-state-change/index.android.js.map +0 -1
- package/ui/core/control-state-change/index.ios.d.ts +0 -10
- package/ui/core/control-state-change/index.ios.js +0 -43
- package/ui/core/control-state-change/index.ios.js.map +0 -1
- package/ui/core/properties/index.d.ts +0 -114
- package/ui/core/properties/index.js +0 -1290
- package/ui/core/properties/index.js.map +0 -1
- package/ui/core/properties/property-shared.d.ts +0 -35
- package/ui/core/properties/property-shared.js +0 -16
- package/ui/core/properties/property-shared.js.map +0 -1
- package/ui/core/view/index.android.d.ts +0 -144
- package/ui/core/view/index.android.js +0 -1576
- package/ui/core/view/index.android.js.map +0 -1
- package/ui/core/view/index.ios.d.ts +0 -151
- package/ui/core/view/index.ios.js +0 -1091
- package/ui/core/view/index.ios.js.map +0 -1
- package/ui/core/view/view-common.d.ts +0 -349
- package/ui/core/view/view-common.js +0 -1147
- package/ui/core/view/view-common.js.map +0 -1
- package/ui/core/view/view-helper/index.android.d.ts +0 -9
- package/ui/core/view/view-helper/index.android.js +0 -56
- package/ui/core/view/view-helper/index.android.js.map +0 -1
- package/ui/core/view/view-helper/index.ios.d.ts +0 -67
- package/ui/core/view/view-helper/index.ios.js +0 -414
- package/ui/core/view/view-helper/index.ios.js.map +0 -1
- package/ui/core/view/view-helper/view-helper-common.d.ts +0 -11
- package/ui/core/view/view-helper/view-helper-common.js +0 -166
- package/ui/core/view/view-helper/view-helper-common.js.map +0 -1
- package/ui/core/view/view-helper/view-helper-shared.d.ts +0 -5
- package/ui/core/view/view-helper/view-helper-shared.js +0 -6
- package/ui/core/view/view-helper/view-helper-shared.js.map +0 -1
- package/ui/core/view/view-interfaces.d.ts +0 -76
- package/ui/core/view/view-interfaces.js +0 -2
- package/ui/core/view/view-interfaces.js.map +0 -1
- package/ui/core/view-base/index.d.ts +0 -597
- package/ui/core/view-base/index.js +0 -1154
- package/ui/core/view-base/index.js.map +0 -1
- package/ui/core/view-base/utils.d.ts +0 -1
- package/ui/core/view-base/utils.js +0 -9
- package/ui/core/view-base/utils.js.map +0 -1
- package/ui/core/weak-event-listener/index.js +0 -123
- package/ui/core/weak-event-listener/index.js.map +0 -1
- package/ui/date-picker/date-picker-common.d.ts +0 -28
- package/ui/date-picker/date-picker-common.js +0 -82
- package/ui/date-picker/date-picker-common.js.map +0 -1
- package/ui/date-picker/index.android.d.ts +0 -19
- package/ui/date-picker/index.android.js +0 -131
- package/ui/date-picker/index.android.js.map +0 -1
- package/ui/date-picker/index.ios.d.ts +0 -27
- package/ui/date-picker/index.ios.js +0 -165
- package/ui/date-picker/index.ios.js.map +0 -1
- package/ui/dialogs/dialogs-common.d.ts +0 -211
- package/ui/dialogs/dialogs-common.js +0 -167
- package/ui/dialogs/dialogs-common.js.map +0 -1
- package/ui/dialogs/index.android.d.ts +0 -20
- package/ui/dialogs/index.android.js +0 -330
- package/ui/dialogs/index.android.js.map +0 -1
- package/ui/dialogs/index.ios.d.ts +0 -17
- package/ui/dialogs/index.ios.js +0 -293
- package/ui/dialogs/index.ios.js.map +0 -1
- package/ui/editable-text-base/editable-text-base-common.d.ts +0 -36
- package/ui/editable-text-base/editable-text-base-common.js +0 -91
- package/ui/editable-text-base/editable-text-base-common.js.map +0 -1
- package/ui/editable-text-base/index.android.d.ts +0 -48
- package/ui/editable-text-base/index.android.js +0 -497
- package/ui/editable-text-base/index.android.js.map +0 -1
- package/ui/editable-text-base/index.ios.d.ts +0 -20
- package/ui/editable-text-base/index.ios.js +0 -255
- package/ui/editable-text-base/index.ios.js.map +0 -1
- package/ui/embedding/index.android.d.ts +0 -4
- package/ui/embedding/index.android.js +0 -14
- package/ui/embedding/index.android.js.map +0 -1
- package/ui/embedding/index.ios.d.ts +0 -1
- package/ui/embedding/index.ios.js +0 -4
- package/ui/embedding/index.ios.js.map +0 -1
- package/ui/enums/enums.js +0 -6
- package/ui/enums/enums.js.map +0 -1
- package/ui/enums/index.js +0 -6
- package/ui/enums/index.js.map +0 -1
- package/ui/frame/activity.android.d.ts +0 -1
- package/ui/frame/activity.android.js +0 -110
- package/ui/frame/activity.android.js.map +0 -1
- package/ui/frame/fragment.android.d.ts +0 -3
- package/ui/frame/fragment.android.js +0 -90
- package/ui/frame/fragment.android.js.map +0 -1
- package/ui/frame/fragment.ios.d.ts +0 -3
- package/ui/frame/fragment.ios.js +0 -4
- package/ui/frame/fragment.ios.js.map +0 -1
- package/ui/frame/fragment.transitions.android.d.ts +0 -40
- package/ui/frame/fragment.transitions.android.js +0 -679
- package/ui/frame/fragment.transitions.android.js.map +0 -1
- package/ui/frame/fragment.transitions.types.d.ts +0 -6
- package/ui/frame/fragment.transitions.types.js +0 -2
- package/ui/frame/fragment.transitions.types.js.map +0 -1
- package/ui/frame/frame-common.d.ts +0 -101
- package/ui/frame/frame-common.js +0 -688
- package/ui/frame/frame-common.js.map +0 -1
- package/ui/frame/frame-helper-for-android.d.ts +0 -37
- package/ui/frame/frame-helper-for-android.js +0 -337
- package/ui/frame/frame-helper-for-android.js.map +0 -1
- package/ui/frame/frame-helpers.d.ts +0 -16
- package/ui/frame/frame-helpers.js +0 -19
- package/ui/frame/frame-helpers.js.map +0 -1
- package/ui/frame/frame-interfaces.d.ts +0 -130
- package/ui/frame/frame-interfaces.js +0 -7
- package/ui/frame/frame-interfaces.js.map +0 -1
- package/ui/frame/frame-stack.d.ts +0 -7
- package/ui/frame/frame-stack.js +0 -41
- package/ui/frame/frame-stack.js.map +0 -1
- package/ui/frame/index.android.d.ts +0 -93
- package/ui/frame/index.android.js +0 -977
- package/ui/frame/index.android.js.map +0 -1
- package/ui/frame/index.ios.d.ts +0 -61
- package/ui/frame/index.ios.js +0 -728
- package/ui/frame/index.ios.js.map +0 -1
- package/ui/gestures/gestures-common.d.ts +0 -32
- package/ui/gestures/gestures-common.js +0 -78
- package/ui/gestures/gestures-common.js.map +0 -1
- package/ui/gestures/gestures-types.d.ts +0 -108
- package/ui/gestures/gestures-types.js +0 -40
- package/ui/gestures/gestures-types.js.map +0 -1
- package/ui/gestures/index.android.d.ts +0 -49
- package/ui/gestures/index.android.js +0 -596
- package/ui/gestures/index.android.js.map +0 -1
- package/ui/gestures/index.ios.d.ts +0 -70
- package/ui/gestures/index.ios.js +0 -510
- package/ui/gestures/index.ios.js.map +0 -1
- package/ui/gestures/touch-manager.d.ts +0 -82
- package/ui/gestures/touch-manager.js +0 -268
- package/ui/gestures/touch-manager.js.map +0 -1
- package/ui/html-view/html-view-common.d.ts +0 -12
- package/ui/html-view/html-view-common.js +0 -31
- package/ui/html-view/html-view-common.js.map +0 -1
- package/ui/html-view/index.android.d.ts +0 -27
- package/ui/html-view/index.android.js +0 -90
- package/ui/html-view/index.android.js.map +0 -1
- package/ui/html-view/index.ios.d.ts +0 -22
- package/ui/html-view/index.ios.js +0 -101
- package/ui/html-view/index.ios.js.map +0 -1
- package/ui/image/image-common.d.ts +0 -45
- package/ui/image/image-common.js +0 -195
- package/ui/image/image-common.js.map +0 -1
- package/ui/image/index.android.d.ts +0 -23
- package/ui/image/index.android.js +0 -171
- package/ui/image/index.android.js.map +0 -1
- package/ui/image/index.ios.d.ts +0 -26
- package/ui/image/index.ios.js +0 -186
- package/ui/image/index.ios.js.map +0 -1
- package/ui/image/symbol-effects-common.d.ts +0 -36
- package/ui/image/symbol-effects-common.js +0 -35
- package/ui/image/symbol-effects-common.js.map +0 -1
- package/ui/image/symbol-effects.android.d.ts +0 -5
- package/ui/image/symbol-effects.android.js +0 -8
- package/ui/image/symbol-effects.android.js.map +0 -1
- package/ui/image/symbol-effects.ios.d.ts +0 -6
- package/ui/image/symbol-effects.ios.js +0 -79
- package/ui/image/symbol-effects.ios.js.map +0 -1
- package/ui/image-cache/image-cache-common.d.ts +0 -40
- package/ui/image-cache/image-cache-common.js +0 -176
- package/ui/image-cache/image-cache-common.js.map +0 -1
- package/ui/image-cache/index.android.d.ts +0 -11
- package/ui/image-cache/index.android.js +0 -74
- package/ui/image-cache/index.android.js.map +0 -1
- package/ui/image-cache/index.ios.d.ts +0 -11
- package/ui/image-cache/index.ios.js +0 -78
- package/ui/image-cache/index.ios.js.map +0 -1
- package/ui/index.d.ts +0 -92
- package/ui/index.js +0 -80
- package/ui/index.js.map +0 -1
- package/ui/label/index.android.d.ts +0 -13
- package/ui/label/index.android.js +0 -47
- package/ui/label/index.android.js.map +0 -1
- package/ui/label/index.ios.d.ts +0 -31
- package/ui/label/index.ios.js +0 -234
- package/ui/label/index.ios.js.map +0 -1
- package/ui/layouts/absolute-layout/absolute-layout-common.d.ts +0 -16
- package/ui/layouts/absolute-layout/absolute-layout-common.js +0 -72
- package/ui/layouts/absolute-layout/absolute-layout-common.js.map +0 -1
- package/ui/layouts/absolute-layout/index.android.d.ts +0 -6
- package/ui/layouts/absolute-layout/index.android.js +0 -26
- package/ui/layouts/absolute-layout/index.android.js.map +0 -1
- package/ui/layouts/absolute-layout/index.ios.d.ts +0 -10
- package/ui/layouts/absolute-layout/index.ios.js +0 -48
- package/ui/layouts/absolute-layout/index.ios.js.map +0 -1
- package/ui/layouts/dock-layout/dock-layout-common.d.ts +0 -14
- package/ui/layouts/dock-layout/dock-layout-common.js +0 -51
- package/ui/layouts/dock-layout/dock-layout-common.js.map +0 -1
- package/ui/layouts/dock-layout/index.android.d.ts +0 -8
- package/ui/layouts/dock-layout/index.android.js +0 -38
- package/ui/layouts/dock-layout/index.android.js.map +0 -1
- package/ui/layouts/dock-layout/index.ios.d.ts +0 -8
- package/ui/layouts/dock-layout/index.ios.js +0 -115
- package/ui/layouts/dock-layout/index.ios.js.map +0 -1
- package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +0 -126
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js +0 -403
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +0 -1
- package/ui/layouts/flexbox-layout/index.android.d.ts +0 -23
- package/ui/layouts/flexbox-layout/index.android.js +0 -152
- package/ui/layouts/flexbox-layout/index.android.js.map +0 -1
- package/ui/layouts/flexbox-layout/index.ios.d.ts +0 -44
- package/ui/layouts/flexbox-layout/index.ios.js +0 -1241
- package/ui/layouts/flexbox-layout/index.ios.js.map +0 -1
- package/ui/layouts/grid-layout/grid-layout-common.d.ts +0 -72
- package/ui/layouts/grid-layout/grid-layout-common.js +0 -358
- package/ui/layouts/grid-layout/grid-layout-common.js.map +0 -1
- package/ui/layouts/grid-layout/index.android.d.ts +0 -23
- package/ui/layouts/grid-layout/index.android.js +0 -122
- package/ui/layouts/grid-layout/index.android.js.map +0 -1
- package/ui/layouts/grid-layout/index.ios.d.ts +0 -28
- package/ui/layouts/grid-layout/index.ios.js +0 -778
- package/ui/layouts/grid-layout/index.ios.js.map +0 -1
- package/ui/layouts/index.d.ts +0 -12
- package/ui/layouts/index.js +0 -11
- package/ui/layouts/index.js.map +0 -1
- package/ui/layouts/layout-base-common.d.ts +0 -36
- package/ui/layouts/layout-base-common.js +0 -141
- package/ui/layouts/layout-base-common.js.map +0 -1
- package/ui/layouts/layout-base.android.d.ts +0 -17
- package/ui/layouts/layout-base.android.js +0 -50
- package/ui/layouts/layout-base.android.js.map +0 -1
- package/ui/layouts/layout-base.ios.d.ts +0 -13
- package/ui/layouts/layout-base.ios.js +0 -40
- package/ui/layouts/layout-base.ios.js.map +0 -1
- package/ui/layouts/liquid-glass/index.android.d.ts +0 -5
- package/ui/layouts/liquid-glass/index.android.js +0 -8
- package/ui/layouts/liquid-glass/index.android.js.map +0 -1
- package/ui/layouts/liquid-glass/index.ios.d.ts +0 -10
- package/ui/layouts/liquid-glass/index.ios.js +0 -59
- package/ui/layouts/liquid-glass/index.ios.js.map +0 -1
- package/ui/layouts/liquid-glass/liquid-glass-common.d.ts +0 -3
- package/ui/layouts/liquid-glass/liquid-glass-common.js +0 -4
- package/ui/layouts/liquid-glass/liquid-glass-common.js.map +0 -1
- package/ui/layouts/liquid-glass-container/index.android.d.ts +0 -3
- package/ui/layouts/liquid-glass-container/index.android.js +0 -4
- package/ui/layouts/liquid-glass-container/index.android.js.map +0 -1
- package/ui/layouts/liquid-glass-container/index.ios.d.ts +0 -14
- package/ui/layouts/liquid-glass-container/index.ios.js +0 -121
- package/ui/layouts/liquid-glass-container/index.ios.js.map +0 -1
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.d.ts +0 -4
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.js +0 -5
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.js.map +0 -1
- package/ui/layouts/root-layout/index.android.d.ts +0 -15
- package/ui/layouts/root-layout/index.android.js +0 -126
- package/ui/layouts/root-layout/index.android.js.map +0 -1
- package/ui/layouts/root-layout/index.ios.d.ts +0 -17
- package/ui/layouts/root-layout/index.ios.js +0 -101
- package/ui/layouts/root-layout/index.ios.js.map +0 -1
- package/ui/layouts/root-layout/root-layout-common.d.ts +0 -61
- package/ui/layouts/root-layout/root-layout-common.js +0 -425
- package/ui/layouts/root-layout/root-layout-common.js.map +0 -1
- package/ui/layouts/root-layout/root-layout-stack.d.ts +0 -5
- package/ui/layouts/root-layout/root-layout-stack.js +0 -19
- package/ui/layouts/root-layout/root-layout-stack.js.map +0 -1
- package/ui/layouts/stack-layout/index.android.d.ts +0 -7
- package/ui/layouts/stack-layout/index.android.js +0 -11
- package/ui/layouts/stack-layout/index.android.js.map +0 -1
- package/ui/layouts/stack-layout/index.ios.d.ts +0 -10
- package/ui/layouts/stack-layout/index.ios.js +0 -155
- package/ui/layouts/stack-layout/index.ios.js.map +0 -1
- package/ui/layouts/stack-layout/stack-layout-common.d.ts +0 -8
- package/ui/layouts/stack-layout/stack-layout-common.js +0 -19
- package/ui/layouts/stack-layout/stack-layout-common.js.map +0 -1
- package/ui/layouts/wrap-layout/index.android.d.ts +0 -10
- package/ui/layouts/wrap-layout/index.android.js +0 -18
- package/ui/layouts/wrap-layout/index.android.js.map +0 -1
- package/ui/layouts/wrap-layout/index.ios.d.ts +0 -8
- package/ui/layouts/wrap-layout/index.ios.js +0 -170
- package/ui/layouts/wrap-layout/index.ios.js.map +0 -1
- package/ui/layouts/wrap-layout/wrap-layout-common.d.ts +0 -15
- package/ui/layouts/wrap-layout/wrap-layout-common.js +0 -40
- package/ui/layouts/wrap-layout/wrap-layout-common.js.map +0 -1
- package/ui/list-picker/index.android.d.ts +0 -18
- package/ui/list-picker/index.android.js +0 -177
- package/ui/list-picker/index.android.js.map +0 -1
- package/ui/list-picker/index.ios.d.ts +0 -19
- package/ui/list-picker/index.ios.js +0 -99
- package/ui/list-picker/index.ios.js.map +0 -1
- package/ui/list-picker/list-picker-common.d.ts +0 -23
- package/ui/list-picker/list-picker-common.js +0 -78
- package/ui/list-picker/list-picker-common.js.map +0 -1
- package/ui/list-view/index.android.d.ts +0 -68
- package/ui/list-view/index.android.js +0 -1005
- package/ui/list-view/index.android.js.map +0 -1
- package/ui/list-view/index.ios.d.ts +0 -84
- package/ui/list-view/index.ios.js +0 -996
- package/ui/list-view/index.ios.js.map +0 -1
- package/ui/list-view/list-view-common.d.ts +0 -87
- package/ui/list-view/list-view-common.js +0 -296
- package/ui/list-view/list-view-common.js.map +0 -1
- package/ui/page/events.d.ts +0 -6
- package/ui/page/events.js +0 -7
- package/ui/page/events.js.map +0 -1
- package/ui/page/index.android.d.ts +0 -16
- package/ui/page/index.android.js +0 -106
- package/ui/page/index.android.js.map +0 -1
- package/ui/page/index.ios.d.ts +0 -52
- package/ui/page/index.ios.js +0 -515
- package/ui/page/index.ios.js.map +0 -1
- package/ui/page/page-common.d.ts +0 -73
- package/ui/page/page-common.js +0 -191
- package/ui/page/page-common.js.map +0 -1
- package/ui/placeholder/index.android.d.ts +0 -12
- package/ui/placeholder/index.android.js +0 -21
- package/ui/placeholder/index.android.js.map +0 -1
- package/ui/placeholder/index.js +0 -16
- package/ui/placeholder/index.js.map +0 -1
- package/ui/placeholder/placeholder-common.d.ts +0 -11
- package/ui/placeholder/placeholder-common.js +0 -2
- package/ui/placeholder/placeholder-common.js.map +0 -1
- package/ui/progress/index.android.d.ts +0 -18
- package/ui/progress/index.android.js +0 -65
- package/ui/progress/index.android.js.map +0 -1
- package/ui/progress/index.ios.d.ts +0 -19
- package/ui/progress/index.ios.js +0 -45
- package/ui/progress/index.ios.js.map +0 -1
- package/ui/progress/progress-common.d.ts +0 -15
- package/ui/progress/progress-common.js +0 -34
- package/ui/progress/progress-common.js.map +0 -1
- package/ui/proxy-view-container/index.d.ts +0 -33
- package/ui/proxy-view-container/index.js +0 -247
- package/ui/proxy-view-container/index.js.map +0 -1
- package/ui/repeater/index.d.ts +0 -67
- package/ui/repeater/index.js +0 -225
- package/ui/repeater/index.js.map +0 -1
- package/ui/scroll-view/index.android.d.ts +0 -27
- package/ui/scroll-view/index.android.js +0 -157
- package/ui/scroll-view/index.android.js.map +0 -1
- package/ui/scroll-view/index.ios.d.ts +0 -29
- package/ui/scroll-view/index.ios.js +0 -193
- package/ui/scroll-view/index.ios.js.map +0 -1
- package/ui/scroll-view/scroll-view-common.d.ts +0 -27
- package/ui/scroll-view/scroll-view-common.js +0 -93
- package/ui/scroll-view/scroll-view-common.js.map +0 -1
- package/ui/search-bar/index.android.d.ts +0 -44
- package/ui/search-bar/index.android.js +0 -260
- package/ui/search-bar/index.android.js.map +0 -1
- package/ui/search-bar/index.ios.d.ts +0 -36
- package/ui/search-bar/index.ios.js +0 -203
- package/ui/search-bar/index.ios.js.map +0 -1
- package/ui/search-bar/search-bar-common.d.ts +0 -19
- package/ui/search-bar/search-bar-common.js +0 -43
- package/ui/search-bar/search-bar-common.js.map +0 -1
- package/ui/segmented-bar/index.android.d.ts +0 -42
- package/ui/segmented-bar/index.android.js +0 -280
- package/ui/segmented-bar/index.android.js.map +0 -1
- package/ui/segmented-bar/index.ios.d.ts +0 -28
- package/ui/segmented-bar/index.ios.js +0 -140
- package/ui/segmented-bar/index.ios.js.map +0 -1
- package/ui/segmented-bar/segmented-bar-common.d.ts +0 -37
- package/ui/segmented-bar/segmented-bar-common.js +0 -146
- package/ui/segmented-bar/segmented-bar-common.js.map +0 -1
- package/ui/slider/index.android.d.ts +0 -32
- package/ui/slider/index.android.js +0 -123
- package/ui/slider/index.android.js.map +0 -1
- package/ui/slider/index.ios.d.ts +0 -34
- package/ui/slider/index.ios.js +0 -145
- package/ui/slider/index.ios.js.map +0 -1
- package/ui/slider/slider-common.d.ts +0 -27
- package/ui/slider/slider-common.js +0 -69
- package/ui/slider/slider-common.js.map +0 -1
- package/ui/split-view/index.android.d.ts +0 -3
- package/ui/split-view/index.android.js +0 -4
- package/ui/split-view/index.android.js.map +0 -1
- package/ui/split-view/index.ios.d.ts +0 -51
- package/ui/split-view/index.ios.js +0 -567
- package/ui/split-view/index.ios.js.map +0 -1
- package/ui/split-view/split-view-common.d.ts +0 -59
- package/ui/split-view/split-view-common.js +0 -127
- package/ui/split-view/split-view-common.js.map +0 -1
- package/ui/styling/background-common.d.ts +0 -78
- package/ui/styling/background-common.js +0 -241
- package/ui/styling/background-common.js.map +0 -1
- package/ui/styling/background.android.d.ts +0 -3
- package/ui/styling/background.android.js +0 -82
- package/ui/styling/background.android.js.map +0 -1
- package/ui/styling/background.ios.d.ts +0 -21
- package/ui/styling/background.ios.js +0 -1105
- package/ui/styling/background.ios.js.map +0 -1
- package/ui/styling/box-shadow.d.ts +0 -9
- package/ui/styling/box-shadow.js +0 -3
- package/ui/styling/box-shadow.js.map +0 -1
- package/ui/styling/clip-path-function.d.ts +0 -16
- package/ui/styling/clip-path-function.js +0 -25
- package/ui/styling/clip-path-function.js.map +0 -1
- package/ui/styling/converters.d.ts +0 -2
- package/ui/styling/converters.js +0 -41
- package/ui/styling/converters.js.map +0 -1
- package/ui/styling/css-animation-parser.d.ts +0 -14
- package/ui/styling/css-animation-parser.js +0 -187
- package/ui/styling/css-animation-parser.js.map +0 -1
- package/ui/styling/css-selector.d.ts +0 -270
- package/ui/styling/css-selector.js +0 -934
- package/ui/styling/css-selector.js.map +0 -1
- package/ui/styling/css-shadow.d.ts +0 -19
- package/ui/styling/css-shadow.js +0 -26
- package/ui/styling/css-shadow.js.map +0 -1
- package/ui/styling/css-stroke.d.ts +0 -12
- package/ui/styling/css-stroke.js +0 -19
- package/ui/styling/css-stroke.js.map +0 -1
- package/ui/styling/css-transform.d.ts +0 -2
- package/ui/styling/css-transform.js +0 -110
- package/ui/styling/css-transform.js.map +0 -1
- package/ui/styling/css-utils.d.ts +0 -8
- package/ui/styling/css-utils.js +0 -73
- package/ui/styling/css-utils.js.map +0 -1
- package/ui/styling/font-common.d.ts +0 -62
- package/ui/styling/font-common.js +0 -195
- package/ui/styling/font-common.js.map +0 -1
- package/ui/styling/font-interfaces.d.ts +0 -16
- package/ui/styling/font-interfaces.js +0 -2
- package/ui/styling/font-interfaces.js.map +0 -1
- package/ui/styling/font.android.d.ts +0 -15
- package/ui/styling/font.android.js +0 -226
- package/ui/styling/font.android.js.map +0 -1
- package/ui/styling/font.ios.d.ts +0 -18
- package/ui/styling/font.ios.js +0 -159
- package/ui/styling/font.ios.js.map +0 -1
- package/ui/styling/length-shared.d.ts +0 -52
- package/ui/styling/length-shared.js +0 -173
- package/ui/styling/length-shared.js.map +0 -1
- package/ui/styling/linear-gradient.d.ts +0 -13
- package/ui/styling/linear-gradient.js +0 -48
- package/ui/styling/linear-gradient.js.map +0 -1
- package/ui/styling/style/index.d.ts +0 -166
- package/ui/styling/style/index.js +0 -67
- package/ui/styling/style/index.js.map +0 -1
- package/ui/styling/style-properties.d.ts +0 -63
- package/ui/styling/style-properties.js +0 -1151
- package/ui/styling/style-properties.js.map +0 -1
- package/ui/styling/style-scope.d.ts +0 -87
- package/ui/styling/style-scope.js +0 -1020
- package/ui/styling/style-scope.js.map +0 -1
- package/ui/styling/styling-profile.d.ts +0 -1
- package/ui/styling/styling-profile.js +0 -4
- package/ui/styling/styling-profile.js.map +0 -1
- package/ui/styling/styling-shared.d.ts +0 -3
- package/ui/styling/styling-shared.js +0 -6
- package/ui/styling/styling-shared.js.map +0 -1
- package/ui/switch/index.android.d.ts +0 -23
- package/ui/switch/index.android.js +0 -111
- package/ui/switch/index.android.js.map +0 -1
- package/ui/switch/index.ios.d.ts +0 -26
- package/ui/switch/index.ios.js +0 -185
- package/ui/switch/index.ios.js.map +0 -1
- package/ui/switch/switch-common.d.ts +0 -12
- package/ui/switch/switch-common.js +0 -37
- package/ui/switch/switch-common.js.map +0 -1
- package/ui/tab-view/index.android.d.ts +0 -73
- package/ui/tab-view/index.android.js +0 -646
- package/ui/tab-view/index.android.js.map +0 -1
- package/ui/tab-view/index.ios.d.ts +0 -80
- package/ui/tab-view/index.ios.js +0 -877
- package/ui/tab-view/index.ios.js.map +0 -1
- package/ui/tab-view/tab-view-common.d.ts +0 -86
- package/ui/tab-view/tab-view-common.js +0 -277
- package/ui/tab-view/tab-view-common.js.map +0 -1
- package/ui/text-base/formatted-string.js +0 -163
- package/ui/text-base/formatted-string.js.map +0 -1
- package/ui/text-base/index.android.d.ts +0 -79
- package/ui/text-base/index.android.js +0 -589
- package/ui/text-base/index.android.js.map +0 -1
- package/ui/text-base/index.ios.d.ts +0 -53
- package/ui/text-base/index.ios.js +0 -452
- package/ui/text-base/index.ios.js.map +0 -1
- package/ui/text-base/span.js +0 -113
- package/ui/text-base/span.js.map +0 -1
- package/ui/text-base/text-base-common.d.ts +0 -99
- package/ui/text-base/text-base-common.js +0 -324
- package/ui/text-base/text-base-common.js.map +0 -1
- package/ui/text-field/index.android.d.ts +0 -10
- package/ui/text-field/index.android.js +0 -92
- package/ui/text-field/index.android.js.map +0 -1
- package/ui/text-field/index.ios.d.ts +0 -56
- package/ui/text-field/index.ios.js +0 -315
- package/ui/text-field/index.ios.js.map +0 -1
- package/ui/text-field/text-field-common.d.ts +0 -11
- package/ui/text-field/text-field-common.js +0 -25
- package/ui/text-field/text-field-common.js.map +0 -1
- package/ui/text-view/index.android.d.ts +0 -8
- package/ui/text-view/index.android.js +0 -24
- package/ui/text-view/index.android.js.map +0 -1
- package/ui/text-view/index.ios.d.ts +0 -59
- package/ui/text-view/index.ios.js +0 -432
- package/ui/text-view/index.ios.js.map +0 -1
- package/ui/text-view/text-view-common.d.ts +0 -32
- package/ui/text-view/text-view-common.js +0 -39
- package/ui/text-view/text-view-common.js.map +0 -1
- package/ui/time-picker/index.android.d.ts +0 -10
- package/ui/time-picker/index.android.js +0 -79
- package/ui/time-picker/index.android.js.map +0 -1
- package/ui/time-picker/index.ios.d.ts +0 -31
- package/ui/time-picker/index.ios.js +0 -138
- package/ui/time-picker/index.ios.js.map +0 -1
- package/ui/time-picker/time-picker-common.d.ts +0 -31
- package/ui/time-picker/time-picker-common.js +0 -176
- package/ui/time-picker/time-picker-common.js.map +0 -1
- package/ui/transition/fade-transition.android.d.ts +0 -4
- package/ui/transition/fade-transition.android.js +0 -28
- package/ui/transition/fade-transition.android.js.map +0 -1
- package/ui/transition/fade-transition.ios.d.ts +0 -17
- package/ui/transition/fade-transition.ios.js +0 -64
- package/ui/transition/fade-transition.ios.js.map +0 -1
- package/ui/transition/flip-transition.android.d.ts +0 -6
- package/ui/transition/flip-transition.android.js +0 -90
- package/ui/transition/flip-transition.android.js.map +0 -1
- package/ui/transition/index.android.d.ts +0 -19
- package/ui/transition/index.android.js +0 -37
- package/ui/transition/index.android.js.map +0 -1
- package/ui/transition/index.ios.d.ts +0 -14
- package/ui/transition/index.ios.js +0 -30
- package/ui/transition/index.ios.js.map +0 -1
- package/ui/transition/modal-transition.android.d.ts +0 -5
- package/ui/transition/modal-transition.android.js +0 -7
- package/ui/transition/modal-transition.android.js.map +0 -1
- package/ui/transition/modal-transition.ios.d.ts +0 -34
- package/ui/transition/modal-transition.ios.js +0 -175
- package/ui/transition/modal-transition.ios.js.map +0 -1
- package/ui/transition/page-transition.android.d.ts +0 -9
- package/ui/transition/page-transition.android.js +0 -284
- package/ui/transition/page-transition.android.js.map +0 -1
- package/ui/transition/page-transition.ios.d.ts +0 -35
- package/ui/transition/page-transition.ios.js +0 -193
- package/ui/transition/page-transition.ios.js.map +0 -1
- package/ui/transition/shared-transition-helper.android.d.ts +0 -9
- package/ui/transition/shared-transition-helper.android.js +0 -10
- package/ui/transition/shared-transition-helper.android.js.map +0 -1
- package/ui/transition/shared-transition-helper.ios.d.ts +0 -14
- package/ui/transition/shared-transition-helper.ios.js +0 -539
- package/ui/transition/shared-transition-helper.ios.js.map +0 -1
- package/ui/transition/shared-transition.d.ts +0 -271
- package/ui/transition/shared-transition.js +0 -215
- package/ui/transition/shared-transition.js.map +0 -1
- package/ui/transition/slide-transition.android.d.ts +0 -7
- package/ui/transition/slide-transition.android.js +0 -116
- package/ui/transition/slide-transition.android.js.map +0 -1
- package/ui/transition/slide-transition.ios.d.ts +0 -19
- package/ui/transition/slide-transition.ios.js +0 -94
- package/ui/transition/slide-transition.ios.js.map +0 -1
- package/ui/utils.android.d.ts +0 -5
- package/ui/utils.android.js +0 -16
- package/ui/utils.android.js.map +0 -1
- package/ui/utils.ios.d.ts +0 -11
- package/ui/utils.ios.js +0 -66
- package/ui/utils.ios.js.map +0 -1
- package/ui/web-view/index.android.d.ts +0 -18
- package/ui/web-view/index.android.js +0 -173
- package/ui/web-view/index.android.js.map +0 -1
- package/ui/web-view/index.ios.d.ts +0 -27
- package/ui/web-view/index.ios.js +0 -246
- package/ui/web-view/index.ios.js.map +0 -1
- package/ui/web-view/web-view-common.d.ts +0 -30
- package/ui/web-view/web-view-common.js +0 -74
- package/ui/web-view/web-view-common.js.map +0 -1
- package/ui/web-view/web-view-interfaces.d.ts +0 -11
- package/ui/web-view/web-view-interfaces.js +0 -2
- package/ui/web-view/web-view-interfaces.js.map +0 -1
- package/utils/animation-helpers.d.ts +0 -27
- package/utils/animation-helpers.js +0 -48
- package/utils/animation-helpers.js.map +0 -1
- package/utils/common.d.ts +0 -28
- package/utils/common.js +0 -158
- package/utils/common.js.map +0 -1
- package/utils/constants.android.d.ts +0 -2
- package/utils/constants.android.js +0 -5
- package/utils/constants.android.js.map +0 -1
- package/utils/constants.ios.d.ts +0 -2
- package/utils/constants.ios.js +0 -5
- package/utils/constants.ios.js.map +0 -1
- package/utils/debug-source.d.ts +0 -19
- package/utils/debug-source.js +0 -78
- package/utils/debug-source.js.map +0 -1
- package/utils/debug.js +0 -3
- package/utils/debug.js.map +0 -1
- package/utils/index.android.d.ts +0 -26
- package/utils/index.android.js +0 -205
- package/utils/index.android.js.map +0 -1
- package/utils/index.ios.d.ts +0 -22
- package/utils/index.ios.js +0 -113
- package/utils/index.ios.js.map +0 -1
- package/utils/layout-helper/index.android.d.ts +0 -25
- package/utils/layout-helper/index.android.js +0 -86
- package/utils/layout-helper/index.android.js.map +0 -1
- package/utils/layout-helper/index.ios.d.ts +0 -25
- package/utils/layout-helper/index.ios.js +0 -68
- package/utils/layout-helper/index.ios.js.map +0 -1
- package/utils/layout-helper/layout-helper-common.d.ts +0 -5
- package/utils/layout-helper/layout-helper-common.js +0 -49
- package/utils/layout-helper/layout-helper-common.js.map +0 -1
- package/utils/layout-helper/layout-helper-shared.d.ts +0 -9
- package/utils/layout-helper/layout-helper-shared.js +0 -13
- package/utils/layout-helper/layout-helper-shared.js.map +0 -1
- package/utils/lazy.js +0 -5
- package/utils/lazy.js.map +0 -1
- package/utils/macrotask-scheduler.js +0 -26
- package/utils/macrotask-scheduler.js.map +0 -1
- package/utils/mainthread-helper.android.d.ts +0 -3
- package/utils/mainthread-helper.android.js +0 -28
- package/utils/mainthread-helper.android.js.map +0 -1
- package/utils/mainthread-helper.ios.d.ts +0 -3
- package/utils/mainthread-helper.ios.js +0 -17
- package/utils/mainthread-helper.ios.js.map +0 -1
- package/utils/module-merge.d.ts +0 -1
- package/utils/module-merge.js +0 -8
- package/utils/module-merge.js.map +0 -1
- package/utils/native-helper-for-android.d.ts +0 -45
- package/utils/native-helper-for-android.js +0 -376
- package/utils/native-helper-for-android.js.map +0 -1
- package/utils/native-helper.android.d.ts +0 -42
- package/utils/native-helper.android.js +0 -30
- package/utils/native-helper.android.js.map +0 -1
- package/utils/native-helper.ios.d.ts +0 -79
- package/utils/native-helper.ios.js +0 -339
- package/utils/native-helper.ios.js.map +0 -1
- package/utils/number-utils.d.ts +0 -19
- package/utils/number-utils.js +0 -37
- package/utils/number-utils.js.map +0 -1
- package/utils/platform-check.d.ts +0 -4
- package/utils/platform-check.js +0 -21
- package/utils/platform-check.js.map +0 -1
- package/utils/shared.d.ts +0 -17
- package/utils/shared.js +0 -40
- package/utils/shared.js.map +0 -1
- package/utils/types.js +0 -104
- package/utils/types.js.map +0 -1
- package/utils/utils-shared.d.ts +0 -1
- package/utils/utils-shared.js +0 -8
- package/utils/utils-shared.js.map +0 -1
- package/wgc/atob.d.ts +0 -1
- package/wgc/atob.js +0 -9
- package/wgc/atob.js.map +0 -1
- package/wgc/btoa.d.ts +0 -1
- package/wgc/btoa.js +0 -9
- package/wgc/btoa.js.map +0 -1
- package/wgc/crypto/SubtleCrypto.d.ts +0 -63
- package/wgc/crypto/SubtleCrypto.js +0 -551
- package/wgc/crypto/SubtleCrypto.js.map +0 -1
- package/wgc/crypto/index.d.ts +0 -8
- package/wgc/crypto/index.js +0 -32
- package/wgc/crypto/index.js.map +0 -1
- package/wgc/index.d.ts +0 -2
- package/wgc/index.js +0 -3
- package/wgc/index.js.map +0 -1
- package/xhr/index.d.ts +0 -113
- package/xhr/index.js +0 -486
- package/xhr/index.js.map +0 -1
- package/xml/index.d.ts +0 -108
- package/xml/index.js +0 -574
- package/xml/index.js.map +0 -1
|
@@ -1,1290 +0,0 @@
|
|
|
1
|
-
import { WrappedValue } from '../../../data/observable';
|
|
2
|
-
import { Trace } from '../../../trace';
|
|
3
|
-
import { profile } from '../../../profiling';
|
|
4
|
-
import { unsetValue, isResetValue } from './property-shared';
|
|
5
|
-
import { calc } from '@csstools/css-calc';
|
|
6
|
-
// Backwards compatibility
|
|
7
|
-
export { unsetValue } from './property-shared';
|
|
8
|
-
const cssPropertyNames = [];
|
|
9
|
-
const HAS_OWN = Object.prototype.hasOwnProperty;
|
|
10
|
-
const symbolPropertyMap = {};
|
|
11
|
-
const cssSymbolPropertyMap = {};
|
|
12
|
-
// Hoisted regex/constants for hot paths to avoid re-allocation
|
|
13
|
-
const CSS_VARIABLE_NAME_RE = /^--[^,\s]+?$/;
|
|
14
|
-
const DIP_RE = /([0-9]+(\.[0-9]+)?)dip\b/g;
|
|
15
|
-
const UNSET_RE = /unset/g;
|
|
16
|
-
const INFINITY_RE = /infinity/g;
|
|
17
|
-
const inheritableProperties = new Array();
|
|
18
|
-
const inheritableCssProperties = new Array();
|
|
19
|
-
function print(map) {
|
|
20
|
-
const symbols = Object.getOwnPropertySymbols(map);
|
|
21
|
-
for (const symbol of symbols) {
|
|
22
|
-
const prop = map[symbol];
|
|
23
|
-
if (!prop.registered) {
|
|
24
|
-
console.log(`Property ${prop.name} not Registered!!!!!`);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export function _printUnregisteredProperties() {
|
|
29
|
-
print(symbolPropertyMap);
|
|
30
|
-
print(cssSymbolPropertyMap);
|
|
31
|
-
}
|
|
32
|
-
export function _getProperties() {
|
|
33
|
-
return getPropertiesFromMap(symbolPropertyMap);
|
|
34
|
-
}
|
|
35
|
-
export function _getStyleProperties() {
|
|
36
|
-
return getPropertiesFromMap(cssSymbolPropertyMap);
|
|
37
|
-
}
|
|
38
|
-
export function isCssVariable(property) {
|
|
39
|
-
return CSS_VARIABLE_NAME_RE.test(property);
|
|
40
|
-
}
|
|
41
|
-
export function isCssCalcExpression(value) {
|
|
42
|
-
return value.includes('calc(');
|
|
43
|
-
}
|
|
44
|
-
export function isCssVariableExpression(value) {
|
|
45
|
-
return value.includes('var(--');
|
|
46
|
-
}
|
|
47
|
-
export function _evaluateCssVariableExpression(view, cssName, value) {
|
|
48
|
-
if (typeof value !== 'string') {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
if (!isCssVariableExpression(value)) {
|
|
52
|
-
// Value is not using css-variable(s)
|
|
53
|
-
return value;
|
|
54
|
-
}
|
|
55
|
-
let output = value.trim();
|
|
56
|
-
// Evaluate every (and nested) css-variables in the value.
|
|
57
|
-
let lastValue;
|
|
58
|
-
while (lastValue !== output) {
|
|
59
|
-
lastValue = output;
|
|
60
|
-
const idx = output.lastIndexOf('var(');
|
|
61
|
-
if (idx === -1) {
|
|
62
|
-
continue;
|
|
63
|
-
}
|
|
64
|
-
const endIdx = output.indexOf(')', idx);
|
|
65
|
-
if (endIdx === -1) {
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
const matched = output
|
|
69
|
-
.substring(idx + 4, endIdx)
|
|
70
|
-
.split(',')
|
|
71
|
-
.map((v) => v.trim())
|
|
72
|
-
.filter((v) => !!v);
|
|
73
|
-
const cssVariableName = matched.shift();
|
|
74
|
-
let cssVariableValue = view.style.getCssVariable(cssVariableName);
|
|
75
|
-
if (cssVariableValue === null && matched.length) {
|
|
76
|
-
cssVariableValue = _evaluateCssVariableExpression(view, cssName, matched.join(', ')).split(',')[0];
|
|
77
|
-
}
|
|
78
|
-
if (!cssVariableValue) {
|
|
79
|
-
cssVariableValue = 'unset';
|
|
80
|
-
}
|
|
81
|
-
output = `${output.substring(0, idx)}${cssVariableValue}${output.substring(endIdx + 1)}`;
|
|
82
|
-
}
|
|
83
|
-
return output;
|
|
84
|
-
}
|
|
85
|
-
export function _evaluateCssCalcExpression(value) {
|
|
86
|
-
if (typeof value !== 'string') {
|
|
87
|
-
return value;
|
|
88
|
-
}
|
|
89
|
-
if (isCssCalcExpression(value)) {
|
|
90
|
-
return calc(_replaceKeywordsWithValues(_replaceDip(value)));
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return value;
|
|
94
|
-
}
|
|
95
|
-
return value;
|
|
96
|
-
}
|
|
97
|
-
function _replaceDip(value) {
|
|
98
|
-
return value.replace(DIP_RE, '$1');
|
|
99
|
-
}
|
|
100
|
-
function _replaceKeywordsWithValues(value) {
|
|
101
|
-
let cssValue = value;
|
|
102
|
-
if (cssValue.includes('unset')) {
|
|
103
|
-
cssValue = cssValue.replace(UNSET_RE, '0');
|
|
104
|
-
}
|
|
105
|
-
if (cssValue.includes('infinity')) {
|
|
106
|
-
cssValue = cssValue.replace(INFINITY_RE, '999999');
|
|
107
|
-
}
|
|
108
|
-
return cssValue;
|
|
109
|
-
}
|
|
110
|
-
function getPropertiesFromMap(map) {
|
|
111
|
-
const symbols = Object.getOwnPropertySymbols(map);
|
|
112
|
-
const len = symbols.length;
|
|
113
|
-
const props = new Array(len);
|
|
114
|
-
for (let i = 0; i < len; i++) {
|
|
115
|
-
props[i] = map[symbols[i]];
|
|
116
|
-
}
|
|
117
|
-
return props;
|
|
118
|
-
}
|
|
119
|
-
export class Property {
|
|
120
|
-
constructor(options) {
|
|
121
|
-
this.enumerable = true;
|
|
122
|
-
this.configurable = true;
|
|
123
|
-
const propertyName = options.name;
|
|
124
|
-
this.name = propertyName;
|
|
125
|
-
const key = Symbol(propertyName + ':propertyKey');
|
|
126
|
-
this.key = key;
|
|
127
|
-
const getDefault = Symbol(propertyName + ':getDefault');
|
|
128
|
-
this.getDefault = getDefault;
|
|
129
|
-
const setNative = Symbol(propertyName + ':setNative');
|
|
130
|
-
this.setNative = setNative;
|
|
131
|
-
const defaultValueKey = Symbol(propertyName + ':nativeDefaultValue');
|
|
132
|
-
this.defaultValueKey = defaultValueKey;
|
|
133
|
-
const defaultValue = options.defaultValue;
|
|
134
|
-
this.defaultValue = defaultValue;
|
|
135
|
-
const eventName = propertyName + 'Change';
|
|
136
|
-
let equalityComparer = options.equalityComparer;
|
|
137
|
-
let affectsLayout = options.affectsLayout;
|
|
138
|
-
let valueChanged = options.valueChanged;
|
|
139
|
-
let valueConverter = options.valueConverter;
|
|
140
|
-
this.overrideHandlers = function (options) {
|
|
141
|
-
if (typeof options.equalityComparer !== 'undefined') {
|
|
142
|
-
equalityComparer = options.equalityComparer;
|
|
143
|
-
}
|
|
144
|
-
if (typeof options.affectsLayout !== 'undefined') {
|
|
145
|
-
affectsLayout = options.affectsLayout;
|
|
146
|
-
}
|
|
147
|
-
if (typeof options.valueChanged !== 'undefined') {
|
|
148
|
-
valueChanged = options.valueChanged;
|
|
149
|
-
}
|
|
150
|
-
if (typeof options.valueConverter !== 'undefined') {
|
|
151
|
-
valueConverter = options.valueConverter;
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
const property = this;
|
|
155
|
-
this.set = function (boxedValue) {
|
|
156
|
-
const reset = isResetValue(boxedValue);
|
|
157
|
-
let value;
|
|
158
|
-
let wrapped;
|
|
159
|
-
if (reset) {
|
|
160
|
-
value = defaultValue;
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
wrapped = boxedValue && boxedValue.wrapped;
|
|
164
|
-
value = wrapped ? WrappedValue.unwrap(boxedValue) : boxedValue;
|
|
165
|
-
if (valueConverter && typeof value === 'string') {
|
|
166
|
-
value = valueConverter(value);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
const oldValue = (key in this ? this[key] : defaultValue);
|
|
170
|
-
const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
171
|
-
if (wrapped || changed) {
|
|
172
|
-
if (affectsLayout) {
|
|
173
|
-
this.requestLayout();
|
|
174
|
-
}
|
|
175
|
-
if (reset) {
|
|
176
|
-
delete this[key];
|
|
177
|
-
if (valueChanged) {
|
|
178
|
-
valueChanged(this, oldValue, value);
|
|
179
|
-
}
|
|
180
|
-
if (this[setNative]) {
|
|
181
|
-
if (this._suspendNativeUpdatesCount) {
|
|
182
|
-
if (this._suspendedUpdates) {
|
|
183
|
-
this._suspendedUpdates[propertyName] = property;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
else if (defaultValueKey in this) {
|
|
187
|
-
this[setNative](this[defaultValueKey]);
|
|
188
|
-
delete this[defaultValueKey];
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
this[setNative](defaultValue);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
this[key] = value;
|
|
197
|
-
if (valueChanged) {
|
|
198
|
-
valueChanged(this, oldValue, value);
|
|
199
|
-
}
|
|
200
|
-
if (this[setNative]) {
|
|
201
|
-
if (this._suspendNativeUpdatesCount) {
|
|
202
|
-
if (this._suspendedUpdates) {
|
|
203
|
-
this._suspendedUpdates[propertyName] = property;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
if (!(defaultValueKey in this)) {
|
|
208
|
-
this[defaultValueKey] = this[getDefault] ? this[getDefault]() : defaultValue;
|
|
209
|
-
}
|
|
210
|
-
this[setNative](value);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
if (this.hasListeners(eventName)) {
|
|
215
|
-
this.notify({
|
|
216
|
-
object: this,
|
|
217
|
-
eventName,
|
|
218
|
-
propertyName,
|
|
219
|
-
value,
|
|
220
|
-
oldValue,
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
if (this.domNode) {
|
|
224
|
-
if (reset) {
|
|
225
|
-
this.domNode.attributeRemoved(propertyName);
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
this.domNode.attributeModified(propertyName, value);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
this.get = function () {
|
|
234
|
-
return (key in this ? this[key] : defaultValue);
|
|
235
|
-
};
|
|
236
|
-
this.nativeValueChange = function (owner, value) {
|
|
237
|
-
const oldValue = (key in owner ? owner[key] : defaultValue);
|
|
238
|
-
const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
239
|
-
if (changed) {
|
|
240
|
-
owner[key] = value;
|
|
241
|
-
if (valueChanged) {
|
|
242
|
-
valueChanged(owner, oldValue, value);
|
|
243
|
-
}
|
|
244
|
-
if (owner.nativeViewProtected && !(defaultValueKey in owner)) {
|
|
245
|
-
owner[defaultValueKey] = owner[getDefault] ? owner[getDefault]() : defaultValue;
|
|
246
|
-
}
|
|
247
|
-
if (owner.hasListeners(eventName)) {
|
|
248
|
-
owner.notify({
|
|
249
|
-
object: owner,
|
|
250
|
-
eventName,
|
|
251
|
-
propertyName,
|
|
252
|
-
value,
|
|
253
|
-
oldValue,
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
if (affectsLayout) {
|
|
257
|
-
owner.requestLayout();
|
|
258
|
-
}
|
|
259
|
-
if (owner.domNode) {
|
|
260
|
-
owner.domNode.attributeModified(propertyName, value);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
symbolPropertyMap[key] = this;
|
|
265
|
-
}
|
|
266
|
-
register(cls) {
|
|
267
|
-
if (this.registered) {
|
|
268
|
-
throw new Error(`Property ${this.name} already registered.`);
|
|
269
|
-
}
|
|
270
|
-
this.registered = true;
|
|
271
|
-
Object.defineProperty(cls.prototype, this.name, this);
|
|
272
|
-
}
|
|
273
|
-
isSet(instance) {
|
|
274
|
-
return this.key in instance;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
Property.prototype.isStyleProperty = false;
|
|
278
|
-
export class CoercibleProperty extends Property {
|
|
279
|
-
constructor(options) {
|
|
280
|
-
super(options);
|
|
281
|
-
const propertyName = options.name;
|
|
282
|
-
const key = this.key;
|
|
283
|
-
const getDefault = this.getDefault;
|
|
284
|
-
const setNative = this.setNative;
|
|
285
|
-
const defaultValueKey = this.defaultValueKey;
|
|
286
|
-
const defaultValue = this.defaultValue;
|
|
287
|
-
const coerceKey = Symbol(propertyName + ':coerceKey');
|
|
288
|
-
const eventName = propertyName + 'Change';
|
|
289
|
-
let affectsLayout = options.affectsLayout;
|
|
290
|
-
let equalityComparer = options.equalityComparer;
|
|
291
|
-
let valueChanged = options.valueChanged;
|
|
292
|
-
let valueConverter = options.valueConverter;
|
|
293
|
-
let coerceCallback = options.coerceValue;
|
|
294
|
-
const property = this;
|
|
295
|
-
this.overrideHandlers = function (options) {
|
|
296
|
-
if (typeof options.equalityComparer !== 'undefined') {
|
|
297
|
-
equalityComparer = options.equalityComparer;
|
|
298
|
-
}
|
|
299
|
-
if (typeof options.affectsLayout !== 'undefined') {
|
|
300
|
-
affectsLayout = options.affectsLayout;
|
|
301
|
-
}
|
|
302
|
-
if (typeof options.valueChanged !== 'undefined') {
|
|
303
|
-
valueChanged = options.valueChanged;
|
|
304
|
-
}
|
|
305
|
-
if (typeof options.valueConverter !== 'undefined') {
|
|
306
|
-
valueConverter = options.valueConverter;
|
|
307
|
-
}
|
|
308
|
-
if (typeof options.coerceValue !== 'undefined') {
|
|
309
|
-
coerceCallback = options.coerceValue;
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
this.coerce = function (target) {
|
|
313
|
-
const originalValue = (coerceKey in target ? target[coerceKey] : defaultValue);
|
|
314
|
-
// need that to make coercing but also fire change events
|
|
315
|
-
target[propertyName] = originalValue;
|
|
316
|
-
};
|
|
317
|
-
this.set = function (boxedValue) {
|
|
318
|
-
const reset = isResetValue(boxedValue);
|
|
319
|
-
let value;
|
|
320
|
-
let wrapped;
|
|
321
|
-
if (reset) {
|
|
322
|
-
value = defaultValue;
|
|
323
|
-
delete this[coerceKey];
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
wrapped = boxedValue && boxedValue.wrapped;
|
|
327
|
-
value = wrapped ? WrappedValue.unwrap(boxedValue) : boxedValue;
|
|
328
|
-
if (valueConverter && typeof value === 'string') {
|
|
329
|
-
value = valueConverter(value);
|
|
330
|
-
}
|
|
331
|
-
this[coerceKey] = value;
|
|
332
|
-
value = coerceCallback(this, value);
|
|
333
|
-
}
|
|
334
|
-
const oldValue = key in this ? this[key] : defaultValue;
|
|
335
|
-
const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
336
|
-
if (wrapped || changed) {
|
|
337
|
-
if (reset) {
|
|
338
|
-
delete this[key];
|
|
339
|
-
if (valueChanged) {
|
|
340
|
-
valueChanged(this, oldValue, value);
|
|
341
|
-
}
|
|
342
|
-
if (this[setNative]) {
|
|
343
|
-
if (this._suspendNativeUpdatesCount) {
|
|
344
|
-
if (this._suspendedUpdates) {
|
|
345
|
-
this._suspendedUpdates[propertyName] = property;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
else if (defaultValueKey in this) {
|
|
349
|
-
this[setNative](this[defaultValueKey]);
|
|
350
|
-
delete this[defaultValueKey];
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
this[setNative](defaultValue);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
this[key] = value;
|
|
359
|
-
if (valueChanged) {
|
|
360
|
-
valueChanged(this, oldValue, value);
|
|
361
|
-
}
|
|
362
|
-
if (this[setNative]) {
|
|
363
|
-
if (this._suspendNativeUpdatesCount) {
|
|
364
|
-
if (this._suspendedUpdates) {
|
|
365
|
-
this._suspendedUpdates[propertyName] = property;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
else {
|
|
369
|
-
if (!(defaultValueKey in this)) {
|
|
370
|
-
this[defaultValueKey] = this[getDefault] ? this[getDefault]() : defaultValue;
|
|
371
|
-
}
|
|
372
|
-
this[setNative](value);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
if (this.hasListeners(eventName)) {
|
|
377
|
-
this.notify({
|
|
378
|
-
object: this,
|
|
379
|
-
eventName,
|
|
380
|
-
propertyName,
|
|
381
|
-
value,
|
|
382
|
-
oldValue,
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
if (affectsLayout) {
|
|
386
|
-
this.requestLayout();
|
|
387
|
-
}
|
|
388
|
-
if (this.domNode) {
|
|
389
|
-
if (reset) {
|
|
390
|
-
this.domNode.attributeRemoved(propertyName);
|
|
391
|
-
}
|
|
392
|
-
else {
|
|
393
|
-
this.domNode.attributeModified(propertyName, value);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
};
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
export class InheritedProperty extends Property {
|
|
401
|
-
constructor(options) {
|
|
402
|
-
super(options);
|
|
403
|
-
const name = options.name;
|
|
404
|
-
const key = this.key;
|
|
405
|
-
const defaultValue = options.defaultValue;
|
|
406
|
-
const sourceKey = Symbol(name + ':valueSourceKey');
|
|
407
|
-
this.sourceKey = sourceKey;
|
|
408
|
-
const setBase = this.set;
|
|
409
|
-
const setFunc = (valueSource) => function (value) {
|
|
410
|
-
const that = this;
|
|
411
|
-
let unboxedValue;
|
|
412
|
-
let newValueSource;
|
|
413
|
-
if (isResetValue(value)) {
|
|
414
|
-
const parent = that.parent;
|
|
415
|
-
// If value is not initial or unset and view has a parent that has non-default value, use it as the reset value.
|
|
416
|
-
if (value !== 'initial' && parent && parent[sourceKey] !== 0 /* ValueSource.Default */) {
|
|
417
|
-
unboxedValue = parent[name];
|
|
418
|
-
newValueSource = 1 /* ValueSource.Inherited */;
|
|
419
|
-
}
|
|
420
|
-
else {
|
|
421
|
-
unboxedValue = defaultValue;
|
|
422
|
-
newValueSource = 0 /* ValueSource.Default */;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
else {
|
|
426
|
-
// else we are set through property set.
|
|
427
|
-
unboxedValue = value;
|
|
428
|
-
newValueSource = valueSource;
|
|
429
|
-
}
|
|
430
|
-
// take currentValue before calling base - base may change it.
|
|
431
|
-
const currentValue = that[key];
|
|
432
|
-
setBase.call(that, unboxedValue);
|
|
433
|
-
const newValue = that[key];
|
|
434
|
-
that[sourceKey] = newValueSource;
|
|
435
|
-
if (currentValue !== newValue) {
|
|
436
|
-
const reset = newValueSource === 0 /* ValueSource.Default */;
|
|
437
|
-
that.eachChild((child) => {
|
|
438
|
-
const childValueSource = child[sourceKey] || 0 /* ValueSource.Default */;
|
|
439
|
-
if (reset) {
|
|
440
|
-
if (childValueSource === 1 /* ValueSource.Inherited */) {
|
|
441
|
-
setFunc.call(child, unsetValue);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
else {
|
|
445
|
-
if (childValueSource <= 1 /* ValueSource.Inherited */) {
|
|
446
|
-
setInheritedValue.call(child, newValue);
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
return true;
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
};
|
|
453
|
-
const setInheritedValue = setFunc(1 /* ValueSource.Inherited */);
|
|
454
|
-
this.setInheritedValue = setInheritedValue;
|
|
455
|
-
this.set = setFunc(3 /* ValueSource.Local */);
|
|
456
|
-
inheritableProperties.push(this);
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
export class CssProperty {
|
|
460
|
-
constructor(options) {
|
|
461
|
-
const propertyName = options.name;
|
|
462
|
-
this.name = propertyName;
|
|
463
|
-
// Guard against undefined cssName
|
|
464
|
-
if (options.cssName) {
|
|
465
|
-
cssPropertyNames.push(options.cssName);
|
|
466
|
-
}
|
|
467
|
-
this.cssName = `css:${options.cssName}`;
|
|
468
|
-
this.cssLocalName = options.cssName;
|
|
469
|
-
const key = Symbol(propertyName + ':propertyKey');
|
|
470
|
-
this.key = key;
|
|
471
|
-
const sourceKey = Symbol(propertyName + ':valueSourceKey');
|
|
472
|
-
this.sourceKey = sourceKey;
|
|
473
|
-
const getDefault = Symbol(propertyName + ':getDefault');
|
|
474
|
-
this.getDefault = getDefault;
|
|
475
|
-
const setNative = Symbol(propertyName + ':setNative');
|
|
476
|
-
this.setNative = setNative;
|
|
477
|
-
const defaultValueKey = Symbol(propertyName + ':nativeDefaultValue');
|
|
478
|
-
this.defaultValueKey = defaultValueKey;
|
|
479
|
-
const defaultValue = options.defaultValue;
|
|
480
|
-
this.defaultValue = defaultValue;
|
|
481
|
-
const eventName = propertyName + 'Change';
|
|
482
|
-
let affectsLayout = options.affectsLayout;
|
|
483
|
-
let equalityComparer = options.equalityComparer;
|
|
484
|
-
let valueChanged = options.valueChanged;
|
|
485
|
-
let valueConverter = options.valueConverter;
|
|
486
|
-
this.overrideHandlers = function (options) {
|
|
487
|
-
if (typeof options.equalityComparer !== 'undefined') {
|
|
488
|
-
equalityComparer = options.equalityComparer;
|
|
489
|
-
}
|
|
490
|
-
if (typeof options.affectsLayout !== 'undefined') {
|
|
491
|
-
affectsLayout = options.affectsLayout;
|
|
492
|
-
}
|
|
493
|
-
if (typeof options.valueChanged !== 'undefined') {
|
|
494
|
-
valueChanged = options.valueChanged;
|
|
495
|
-
}
|
|
496
|
-
if (typeof options.valueConverter !== 'undefined') {
|
|
497
|
-
valueConverter = options.valueConverter;
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
const property = this;
|
|
501
|
-
function setLocalValue(newValue) {
|
|
502
|
-
const view = this.viewRef.get();
|
|
503
|
-
if (!view) {
|
|
504
|
-
Trace.write(`${newValue} not set to view because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
505
|
-
return;
|
|
506
|
-
}
|
|
507
|
-
const reset = isResetValue(newValue) || newValue === '';
|
|
508
|
-
let value;
|
|
509
|
-
if (reset) {
|
|
510
|
-
value = defaultValue;
|
|
511
|
-
delete this[sourceKey];
|
|
512
|
-
}
|
|
513
|
-
else {
|
|
514
|
-
this[sourceKey] = 3 /* ValueSource.Local */;
|
|
515
|
-
value = valueConverter && typeof newValue === 'string' ? valueConverter(newValue) : newValue;
|
|
516
|
-
}
|
|
517
|
-
const oldValue = (key in this ? this[key] : defaultValue);
|
|
518
|
-
const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
519
|
-
if (changed) {
|
|
520
|
-
if (reset) {
|
|
521
|
-
delete this[key];
|
|
522
|
-
if (valueChanged) {
|
|
523
|
-
valueChanged(this, oldValue, value);
|
|
524
|
-
}
|
|
525
|
-
if (view[setNative]) {
|
|
526
|
-
if (view._suspendNativeUpdatesCount) {
|
|
527
|
-
if (view._suspendedUpdates) {
|
|
528
|
-
view._suspendedUpdates[propertyName] = property;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
else if (defaultValueKey in this) {
|
|
532
|
-
view[setNative](this[defaultValueKey]);
|
|
533
|
-
delete this[defaultValueKey];
|
|
534
|
-
}
|
|
535
|
-
else {
|
|
536
|
-
view[setNative](defaultValue);
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
else {
|
|
541
|
-
this[key] = value;
|
|
542
|
-
if (valueChanged) {
|
|
543
|
-
valueChanged(this, oldValue, value);
|
|
544
|
-
}
|
|
545
|
-
if (view[setNative]) {
|
|
546
|
-
if (view._suspendNativeUpdatesCount) {
|
|
547
|
-
if (view._suspendedUpdates) {
|
|
548
|
-
view._suspendedUpdates[propertyName] = property;
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
else {
|
|
552
|
-
if (!(defaultValueKey in this)) {
|
|
553
|
-
this[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
|
|
554
|
-
}
|
|
555
|
-
view[setNative](value);
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
if (this.hasListeners(eventName)) {
|
|
560
|
-
this.notify({
|
|
561
|
-
object: this,
|
|
562
|
-
eventName,
|
|
563
|
-
propertyName,
|
|
564
|
-
value,
|
|
565
|
-
oldValue,
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
if (affectsLayout) {
|
|
569
|
-
view.requestLayout();
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
function setCssValue(newValue) {
|
|
574
|
-
const view = this.viewRef.get();
|
|
575
|
-
if (!view) {
|
|
576
|
-
Trace.write(`${newValue} not set to view because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
577
|
-
return;
|
|
578
|
-
}
|
|
579
|
-
const currentValueSource = this[sourceKey] || 0 /* ValueSource.Default */;
|
|
580
|
-
// We have localValueSource - NOOP.
|
|
581
|
-
if (currentValueSource === 3 /* ValueSource.Local */) {
|
|
582
|
-
return;
|
|
583
|
-
}
|
|
584
|
-
const reset = isResetValue(newValue) || newValue === '';
|
|
585
|
-
let value;
|
|
586
|
-
if (reset) {
|
|
587
|
-
value = defaultValue;
|
|
588
|
-
delete this[sourceKey];
|
|
589
|
-
}
|
|
590
|
-
else {
|
|
591
|
-
value = valueConverter && typeof newValue === 'string' ? valueConverter(newValue) : newValue;
|
|
592
|
-
this[sourceKey] = 2 /* ValueSource.Css */;
|
|
593
|
-
}
|
|
594
|
-
const oldValue = (key in this ? this[key] : defaultValue);
|
|
595
|
-
const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
596
|
-
if (changed) {
|
|
597
|
-
if (reset) {
|
|
598
|
-
delete this[key];
|
|
599
|
-
if (valueChanged) {
|
|
600
|
-
valueChanged(this, oldValue, value);
|
|
601
|
-
}
|
|
602
|
-
if (view[setNative]) {
|
|
603
|
-
if (view._suspendNativeUpdatesCount) {
|
|
604
|
-
if (view._suspendedUpdates) {
|
|
605
|
-
view._suspendedUpdates[propertyName] = property;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
else if (defaultValueKey in this) {
|
|
609
|
-
view[setNative](this[defaultValueKey]);
|
|
610
|
-
delete this[defaultValueKey];
|
|
611
|
-
}
|
|
612
|
-
else {
|
|
613
|
-
view[setNative](defaultValue);
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
else {
|
|
618
|
-
this[key] = value;
|
|
619
|
-
if (valueChanged) {
|
|
620
|
-
valueChanged(this, oldValue, value);
|
|
621
|
-
}
|
|
622
|
-
if (view[setNative]) {
|
|
623
|
-
if (view._suspendNativeUpdatesCount) {
|
|
624
|
-
if (view._suspendedUpdates) {
|
|
625
|
-
view._suspendedUpdates[propertyName] = property;
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
else {
|
|
629
|
-
if (!(defaultValueKey in this)) {
|
|
630
|
-
this[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
|
|
631
|
-
}
|
|
632
|
-
view[setNative](value);
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
if (this.hasListeners(eventName)) {
|
|
637
|
-
this.notify({
|
|
638
|
-
object: this,
|
|
639
|
-
eventName,
|
|
640
|
-
propertyName,
|
|
641
|
-
value,
|
|
642
|
-
oldValue,
|
|
643
|
-
});
|
|
644
|
-
}
|
|
645
|
-
if (affectsLayout) {
|
|
646
|
-
view.requestLayout();
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
function get() {
|
|
651
|
-
return key in this ? this[key] : defaultValue;
|
|
652
|
-
}
|
|
653
|
-
this.cssValueDescriptor = {
|
|
654
|
-
enumerable: true,
|
|
655
|
-
configurable: true,
|
|
656
|
-
get: get,
|
|
657
|
-
set: setCssValue,
|
|
658
|
-
};
|
|
659
|
-
this.localValueDescriptor = {
|
|
660
|
-
enumerable: true,
|
|
661
|
-
configurable: true,
|
|
662
|
-
get: get,
|
|
663
|
-
set: setLocalValue,
|
|
664
|
-
};
|
|
665
|
-
cssSymbolPropertyMap[key] = this;
|
|
666
|
-
}
|
|
667
|
-
register(cls) {
|
|
668
|
-
if (this.registered) {
|
|
669
|
-
throw new Error(`Property ${this.name} already registered.`);
|
|
670
|
-
}
|
|
671
|
-
this.registered = true;
|
|
672
|
-
Object.defineProperty(cls.prototype, this.name, this.localValueDescriptor);
|
|
673
|
-
Object.defineProperty(cls.prototype, this.cssName, this.cssValueDescriptor);
|
|
674
|
-
if (this.cssLocalName !== this.cssName) {
|
|
675
|
-
Object.defineProperty(cls.prototype, this.cssLocalName, this.localValueDescriptor);
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
isSet(instance) {
|
|
679
|
-
return this.key in instance;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
CssProperty.prototype.isStyleProperty = true;
|
|
683
|
-
export class CssAnimationProperty {
|
|
684
|
-
constructor(options) {
|
|
685
|
-
const propertyName = options.name;
|
|
686
|
-
this.name = propertyName;
|
|
687
|
-
if (options.cssName) {
|
|
688
|
-
cssPropertyNames.push(options.cssName);
|
|
689
|
-
}
|
|
690
|
-
CssAnimationProperty.properties[propertyName] = this;
|
|
691
|
-
if (options.cssName && options.cssName !== propertyName) {
|
|
692
|
-
CssAnimationProperty.properties[options.cssName] = this;
|
|
693
|
-
}
|
|
694
|
-
this._valueConverter = options.valueConverter;
|
|
695
|
-
const cssLocalName = options.cssName || propertyName;
|
|
696
|
-
this.cssLocalName = cssLocalName;
|
|
697
|
-
const cssName = 'css:' + cssLocalName;
|
|
698
|
-
this.cssName = cssName;
|
|
699
|
-
const keyframeName = 'keyframe:' + propertyName;
|
|
700
|
-
this.keyframe = keyframeName;
|
|
701
|
-
const defaultName = 'default:' + propertyName;
|
|
702
|
-
const defaultValueKey = Symbol(defaultName);
|
|
703
|
-
this.defaultValueKey = defaultValueKey;
|
|
704
|
-
this.defaultValue = options.defaultValue;
|
|
705
|
-
const cssValue = Symbol(cssName);
|
|
706
|
-
const styleValue = Symbol(`local:${propertyName}`);
|
|
707
|
-
const keyframeValue = Symbol(keyframeName);
|
|
708
|
-
const computedValue = Symbol('computed-value:' + propertyName);
|
|
709
|
-
this.key = computedValue;
|
|
710
|
-
const computedSource = Symbol('computed-source:' + propertyName);
|
|
711
|
-
this.source = computedSource;
|
|
712
|
-
this.getDefault = Symbol(propertyName + ':getDefault');
|
|
713
|
-
const getDefault = this.getDefault;
|
|
714
|
-
const setNative = (this.setNative = Symbol(propertyName + ':setNative'));
|
|
715
|
-
const eventName = propertyName + 'Change';
|
|
716
|
-
const property = this;
|
|
717
|
-
function descriptor(symbol, propertySource, enumerable, configurable, getsComputed) {
|
|
718
|
-
return {
|
|
719
|
-
enumerable,
|
|
720
|
-
configurable,
|
|
721
|
-
get: getsComputed
|
|
722
|
-
? function () {
|
|
723
|
-
return this[computedValue];
|
|
724
|
-
}
|
|
725
|
-
: function () {
|
|
726
|
-
return this[symbol];
|
|
727
|
-
},
|
|
728
|
-
set(boxedValue) {
|
|
729
|
-
const view = this.viewRef.get();
|
|
730
|
-
if (!view) {
|
|
731
|
-
Trace.write(`${boxedValue} not set to view because ".viewRef" is cleared`, Trace.categories.Animation, Trace.messageType.warn);
|
|
732
|
-
return;
|
|
733
|
-
}
|
|
734
|
-
const oldValue = this[computedValue];
|
|
735
|
-
const oldSource = this[computedSource];
|
|
736
|
-
const wasSet = oldSource !== 0 /* ValueSource.Default */;
|
|
737
|
-
const reset = isResetValue(boxedValue) || boxedValue === '';
|
|
738
|
-
if (reset) {
|
|
739
|
-
this[symbol] = boxedValue;
|
|
740
|
-
if (this[computedSource] === propertySource) {
|
|
741
|
-
// Fallback to lower value source.
|
|
742
|
-
if (!isResetValue(this[styleValue])) {
|
|
743
|
-
this[computedSource] = 3 /* ValueSource.Local */;
|
|
744
|
-
this[computedValue] = this[styleValue];
|
|
745
|
-
}
|
|
746
|
-
else if (!isResetValue(this[cssValue])) {
|
|
747
|
-
this[computedSource] = 2 /* ValueSource.Css */;
|
|
748
|
-
this[computedValue] = this[cssValue];
|
|
749
|
-
}
|
|
750
|
-
else {
|
|
751
|
-
delete this[computedSource];
|
|
752
|
-
delete this[computedValue];
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
else {
|
|
757
|
-
if (options.valueConverter && typeof boxedValue === 'string') {
|
|
758
|
-
boxedValue = options.valueConverter(boxedValue);
|
|
759
|
-
}
|
|
760
|
-
this[symbol] = boxedValue;
|
|
761
|
-
if (this[computedSource] <= propertySource) {
|
|
762
|
-
this[computedSource] = propertySource;
|
|
763
|
-
this[computedValue] = boxedValue;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
const value = this[computedValue];
|
|
767
|
-
const source = this[computedSource];
|
|
768
|
-
const isSet = source !== 0 /* ValueSource.Default */;
|
|
769
|
-
const computedValueChanged = oldValue !== value && (!options.equalityComparer || !options.equalityComparer(oldValue, value));
|
|
770
|
-
if (computedValueChanged && options.valueChanged) {
|
|
771
|
-
options.valueChanged(this, oldValue, value);
|
|
772
|
-
}
|
|
773
|
-
if (view[setNative] && (computedValueChanged || isSet !== wasSet)) {
|
|
774
|
-
if (view._suspendNativeUpdatesCount) {
|
|
775
|
-
if (view._suspendedUpdates) {
|
|
776
|
-
view._suspendedUpdates[propertyName] = property;
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
else {
|
|
780
|
-
if (isSet) {
|
|
781
|
-
if (!wasSet && !(defaultValueKey in this)) {
|
|
782
|
-
this[defaultValueKey] = view[getDefault] ? view[getDefault]() : options.defaultValue;
|
|
783
|
-
}
|
|
784
|
-
view[setNative](value);
|
|
785
|
-
}
|
|
786
|
-
else if (wasSet) {
|
|
787
|
-
if (defaultValueKey in this) {
|
|
788
|
-
view[setNative](this[defaultValueKey]);
|
|
789
|
-
}
|
|
790
|
-
else {
|
|
791
|
-
view[setNative](options.defaultValue);
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
if (computedValueChanged && this.hasListeners(eventName)) {
|
|
797
|
-
this.notify({
|
|
798
|
-
object: this,
|
|
799
|
-
eventName,
|
|
800
|
-
propertyName,
|
|
801
|
-
value,
|
|
802
|
-
oldValue,
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
},
|
|
806
|
-
};
|
|
807
|
-
}
|
|
808
|
-
const defaultPropertyDescriptor = descriptor(defaultValueKey, 0 /* ValueSource.Default */, false, false, false);
|
|
809
|
-
const cssPropertyDescriptor = descriptor(cssValue, 2 /* ValueSource.Css */, false, false, false);
|
|
810
|
-
const stylePropertyDescriptor = descriptor(styleValue, 3 /* ValueSource.Local */, true, true, true);
|
|
811
|
-
const keyframePropertyDescriptor = descriptor(keyframeValue, 4 /* ValueSource.Keyframe */, false, false, false);
|
|
812
|
-
symbolPropertyMap[computedValue] = this;
|
|
813
|
-
cssSymbolPropertyMap[computedValue] = this;
|
|
814
|
-
this.register = (cls) => {
|
|
815
|
-
cls.prototype[computedValue] = options.defaultValue;
|
|
816
|
-
cls.prototype[computedSource] = 0 /* ValueSource.Default */;
|
|
817
|
-
cls.prototype[cssValue] = unsetValue;
|
|
818
|
-
cls.prototype[styleValue] = unsetValue;
|
|
819
|
-
cls.prototype[keyframeValue] = unsetValue;
|
|
820
|
-
Object.defineProperty(cls.prototype, defaultName, defaultPropertyDescriptor);
|
|
821
|
-
Object.defineProperty(cls.prototype, cssName, cssPropertyDescriptor);
|
|
822
|
-
Object.defineProperty(cls.prototype, propertyName, stylePropertyDescriptor);
|
|
823
|
-
if (options.cssName && options.cssName !== options.name) {
|
|
824
|
-
Object.defineProperty(cls.prototype, options.cssName, stylePropertyDescriptor);
|
|
825
|
-
}
|
|
826
|
-
Object.defineProperty(cls.prototype, keyframeName, keyframePropertyDescriptor);
|
|
827
|
-
};
|
|
828
|
-
}
|
|
829
|
-
_initDefaultNativeValue(target) {
|
|
830
|
-
const view = target.viewRef.get();
|
|
831
|
-
if (!view) {
|
|
832
|
-
Trace.write(`_initDefaultNativeValue not executed to view because ".viewRef" is cleared`, Trace.categories.Animation, Trace.messageType.warn);
|
|
833
|
-
return;
|
|
834
|
-
}
|
|
835
|
-
const defaultValueKey = this.defaultValueKey;
|
|
836
|
-
if (!(defaultValueKey in target)) {
|
|
837
|
-
const getDefault = this.getDefault;
|
|
838
|
-
target[defaultValueKey] = view[getDefault] ? view[getDefault]() : this.defaultValue;
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
static _getByCssName(name) {
|
|
842
|
-
return this.properties[name];
|
|
843
|
-
}
|
|
844
|
-
static _getPropertyNames() {
|
|
845
|
-
return Object.keys(CssAnimationProperty.properties);
|
|
846
|
-
}
|
|
847
|
-
isSet(instance) {
|
|
848
|
-
return instance[this.source] !== 0 /* ValueSource.Default */;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
CssAnimationProperty.properties = {};
|
|
852
|
-
CssAnimationProperty.prototype.isStyleProperty = true;
|
|
853
|
-
export class InheritedCssProperty extends CssProperty {
|
|
854
|
-
constructor(options) {
|
|
855
|
-
super(options);
|
|
856
|
-
const propertyName = options.name;
|
|
857
|
-
const key = this.key;
|
|
858
|
-
const sourceKey = this.sourceKey;
|
|
859
|
-
const getDefault = this.getDefault;
|
|
860
|
-
const setNative = this.setNative;
|
|
861
|
-
const defaultValueKey = this.defaultValueKey;
|
|
862
|
-
const eventName = propertyName + 'Change';
|
|
863
|
-
const defaultValue = options.defaultValue;
|
|
864
|
-
let affectsLayout = options.affectsLayout;
|
|
865
|
-
let equalityComparer = options.equalityComparer;
|
|
866
|
-
let valueChanged = options.valueChanged;
|
|
867
|
-
let valueConverter = options.valueConverter;
|
|
868
|
-
const property = this;
|
|
869
|
-
this.overrideHandlers = function (options) {
|
|
870
|
-
if (typeof options.equalityComparer !== 'undefined') {
|
|
871
|
-
equalityComparer = options.equalityComparer;
|
|
872
|
-
}
|
|
873
|
-
if (typeof options.affectsLayout !== 'undefined') {
|
|
874
|
-
affectsLayout = options.affectsLayout;
|
|
875
|
-
}
|
|
876
|
-
if (typeof options.valueChanged !== 'undefined') {
|
|
877
|
-
valueChanged = options.valueChanged;
|
|
878
|
-
}
|
|
879
|
-
if (typeof options.valueConverter !== 'undefined') {
|
|
880
|
-
valueConverter = options.valueConverter;
|
|
881
|
-
}
|
|
882
|
-
};
|
|
883
|
-
const setFunc = (valueSource) => function (boxedValue) {
|
|
884
|
-
const view = this.viewRef.get();
|
|
885
|
-
if (!view) {
|
|
886
|
-
Trace.write(`${boxedValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
887
|
-
return;
|
|
888
|
-
}
|
|
889
|
-
const reset = isResetValue(boxedValue) || boxedValue === '';
|
|
890
|
-
const currentValueSource = this[sourceKey] || 0 /* ValueSource.Default */;
|
|
891
|
-
if (reset) {
|
|
892
|
-
// If we want to reset cssValue and we have localValue - return;
|
|
893
|
-
if (valueSource === 2 /* ValueSource.Css */ && currentValueSource === 3 /* ValueSource.Local */) {
|
|
894
|
-
return;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
else {
|
|
898
|
-
if (currentValueSource > valueSource) {
|
|
899
|
-
return;
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
const oldValue = key in this ? this[key] : defaultValue;
|
|
903
|
-
let value;
|
|
904
|
-
let unsetNativeValue = false;
|
|
905
|
-
if (reset) {
|
|
906
|
-
const parentStyle = view.parent ? view.parent.style : null;
|
|
907
|
-
// If value is not initial or unset and view has a parent that has non-default value, use it as the reset value.
|
|
908
|
-
if (boxedValue !== 'initial' && parentStyle && parentStyle[sourceKey] > 0 /* ValueSource.Default */) {
|
|
909
|
-
value = parentStyle[propertyName];
|
|
910
|
-
this[sourceKey] = 1 /* ValueSource.Inherited */;
|
|
911
|
-
this[key] = value;
|
|
912
|
-
}
|
|
913
|
-
else {
|
|
914
|
-
value = defaultValue;
|
|
915
|
-
delete this[sourceKey];
|
|
916
|
-
delete this[key];
|
|
917
|
-
unsetNativeValue = true;
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
else {
|
|
921
|
-
this[sourceKey] = valueSource;
|
|
922
|
-
if (valueConverter && typeof boxedValue === 'string') {
|
|
923
|
-
value = valueConverter(boxedValue);
|
|
924
|
-
}
|
|
925
|
-
else {
|
|
926
|
-
value = boxedValue;
|
|
927
|
-
}
|
|
928
|
-
this[key] = value;
|
|
929
|
-
}
|
|
930
|
-
const changed = equalityComparer ? !equalityComparer(oldValue, value) : oldValue !== value;
|
|
931
|
-
if (changed) {
|
|
932
|
-
if (valueChanged) {
|
|
933
|
-
valueChanged(this, oldValue, value);
|
|
934
|
-
}
|
|
935
|
-
if (view[setNative]) {
|
|
936
|
-
if (view._suspendNativeUpdatesCount) {
|
|
937
|
-
if (view._suspendedUpdates) {
|
|
938
|
-
view._suspendedUpdates[propertyName] = property;
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
else if (unsetNativeValue) {
|
|
942
|
-
if (defaultValueKey in this) {
|
|
943
|
-
view[setNative](this[defaultValueKey]);
|
|
944
|
-
delete this[defaultValueKey];
|
|
945
|
-
}
|
|
946
|
-
else {
|
|
947
|
-
view[setNative](defaultValue);
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
else {
|
|
951
|
-
if (!(defaultValueKey in this)) {
|
|
952
|
-
this[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
|
|
953
|
-
}
|
|
954
|
-
view[setNative](value);
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
if (this.hasListeners(eventName)) {
|
|
958
|
-
this.notify({
|
|
959
|
-
object: this,
|
|
960
|
-
eventName,
|
|
961
|
-
propertyName,
|
|
962
|
-
value,
|
|
963
|
-
oldValue,
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
if (affectsLayout) {
|
|
967
|
-
view.requestLayout();
|
|
968
|
-
}
|
|
969
|
-
view.eachChild((child) => {
|
|
970
|
-
const childStyle = child.style;
|
|
971
|
-
const childValueSource = childStyle[sourceKey] || 0 /* ValueSource.Default */;
|
|
972
|
-
if (reset) {
|
|
973
|
-
if (childValueSource === 1 /* ValueSource.Inherited */) {
|
|
974
|
-
setDefaultFunc.call(childStyle, unsetValue);
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
else {
|
|
978
|
-
if (childValueSource <= 1 /* ValueSource.Inherited */) {
|
|
979
|
-
setInheritedFunc.call(childStyle, value);
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
return true;
|
|
983
|
-
});
|
|
984
|
-
}
|
|
985
|
-
};
|
|
986
|
-
const setDefaultFunc = setFunc(0 /* ValueSource.Default */);
|
|
987
|
-
const setInheritedFunc = setFunc(1 /* ValueSource.Inherited */);
|
|
988
|
-
this.setInheritedValue = setInheritedFunc;
|
|
989
|
-
this.cssValueDescriptor.set = setFunc(2 /* ValueSource.Css */);
|
|
990
|
-
this.localValueDescriptor.set = setFunc(3 /* ValueSource.Local */);
|
|
991
|
-
inheritableCssProperties.push(this);
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
export class ShorthandProperty {
|
|
995
|
-
constructor(options) {
|
|
996
|
-
this.name = options.name;
|
|
997
|
-
const key = Symbol(this.name + ':propertyKey');
|
|
998
|
-
this.key = key;
|
|
999
|
-
this.cssName = `css:${options.cssName}`;
|
|
1000
|
-
this.cssLocalName = `${options.cssName}`;
|
|
1001
|
-
const converter = options.converter;
|
|
1002
|
-
function setLocalValue(value) {
|
|
1003
|
-
const view = this.viewRef.get();
|
|
1004
|
-
if (!view) {
|
|
1005
|
-
Trace.write(`setLocalValue not executed to view because ".viewRef" is cleared`, Trace.categories.Animation, Trace.messageType.warn);
|
|
1006
|
-
return;
|
|
1007
|
-
}
|
|
1008
|
-
view._batchUpdate(() => {
|
|
1009
|
-
for (const [p, v] of converter(value)) {
|
|
1010
|
-
this[p.name] = v;
|
|
1011
|
-
}
|
|
1012
|
-
});
|
|
1013
|
-
}
|
|
1014
|
-
function setCssValue(value) {
|
|
1015
|
-
const view = this.viewRef.get();
|
|
1016
|
-
if (!view) {
|
|
1017
|
-
Trace.write(`setCssValue not executed to view because ".viewRef" is cleared`, Trace.categories.Animation, Trace.messageType.warn);
|
|
1018
|
-
return;
|
|
1019
|
-
}
|
|
1020
|
-
view._batchUpdate(() => {
|
|
1021
|
-
for (const [p, v] of converter(value)) {
|
|
1022
|
-
this[p.cssName] = v;
|
|
1023
|
-
}
|
|
1024
|
-
});
|
|
1025
|
-
}
|
|
1026
|
-
this.cssValueDescriptor = {
|
|
1027
|
-
enumerable: true,
|
|
1028
|
-
configurable: true,
|
|
1029
|
-
get: options.getter,
|
|
1030
|
-
set: setCssValue,
|
|
1031
|
-
};
|
|
1032
|
-
this.localValueDescriptor = {
|
|
1033
|
-
enumerable: true,
|
|
1034
|
-
configurable: true,
|
|
1035
|
-
get: options.getter,
|
|
1036
|
-
set: setLocalValue,
|
|
1037
|
-
};
|
|
1038
|
-
this.propertyBagDescriptor = {
|
|
1039
|
-
enumerable: false,
|
|
1040
|
-
configurable: true,
|
|
1041
|
-
set(value) {
|
|
1042
|
-
converter(value).forEach(([property, value]) => {
|
|
1043
|
-
this[property.cssLocalName] = value;
|
|
1044
|
-
});
|
|
1045
|
-
},
|
|
1046
|
-
};
|
|
1047
|
-
cssSymbolPropertyMap[key] = this;
|
|
1048
|
-
}
|
|
1049
|
-
register(cls) {
|
|
1050
|
-
if (this.registered) {
|
|
1051
|
-
throw new Error(`Property ${this.name} already registered.`);
|
|
1052
|
-
}
|
|
1053
|
-
this.registered = true;
|
|
1054
|
-
Object.defineProperty(cls.prototype, this.name, this.localValueDescriptor);
|
|
1055
|
-
Object.defineProperty(cls.prototype, this.cssName, this.cssValueDescriptor);
|
|
1056
|
-
if (this.cssLocalName !== this.cssName) {
|
|
1057
|
-
Object.defineProperty(cls.prototype, this.cssLocalName, this.localValueDescriptor);
|
|
1058
|
-
}
|
|
1059
|
-
Object.defineProperty(cls.prototype.PropertyBag, this.cssLocalName, this.propertyBagDescriptor);
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
export { makeValidator, makeParser } from '../../../core-types/validators';
|
|
1063
|
-
function inheritablePropertyValuesOn(view) {
|
|
1064
|
-
const array = new Array();
|
|
1065
|
-
for (const prop of inheritableProperties) {
|
|
1066
|
-
const sourceKey = prop.sourceKey;
|
|
1067
|
-
const valueSource = view[sourceKey] || 0 /* ValueSource.Default */;
|
|
1068
|
-
if (valueSource !== 0 /* ValueSource.Default */) {
|
|
1069
|
-
// use prop.name as it will return value or default value.
|
|
1070
|
-
// prop.key will return undefined if property is set the same value as default one.
|
|
1071
|
-
array.push({ property: prop, value: view[prop.name] });
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
return array;
|
|
1075
|
-
}
|
|
1076
|
-
function inheritableCssPropertyValuesOn(style) {
|
|
1077
|
-
const array = new Array();
|
|
1078
|
-
for (const prop of inheritableCssProperties) {
|
|
1079
|
-
const sourceKey = prop.sourceKey;
|
|
1080
|
-
const valueSource = style[sourceKey] || 0 /* ValueSource.Default */;
|
|
1081
|
-
if (valueSource !== 0 /* ValueSource.Default */) {
|
|
1082
|
-
// use prop.name as it will return value or default value.
|
|
1083
|
-
// prop.key will return undefined if property is set the same value as default one.
|
|
1084
|
-
array.push({ property: prop, value: style[prop.name] });
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
return array;
|
|
1088
|
-
}
|
|
1089
|
-
export const initNativeView = profile('"properties".initNativeView', function initNativeView(view) {
|
|
1090
|
-
if (view._suspendedUpdates) {
|
|
1091
|
-
applyPendingNativeSetters(view);
|
|
1092
|
-
}
|
|
1093
|
-
else {
|
|
1094
|
-
applyAllNativeSetters(view);
|
|
1095
|
-
}
|
|
1096
|
-
// Would it be faster to delete all members of the old object?
|
|
1097
|
-
view._suspendedUpdates = {};
|
|
1098
|
-
});
|
|
1099
|
-
export function applyPendingNativeSetters(view) {
|
|
1100
|
-
// TODO: Check what happens if a view was suspended and its value was reset, or set back to default!
|
|
1101
|
-
const suspendedUpdates = view._suspendedUpdates;
|
|
1102
|
-
for (const propertyName in suspendedUpdates) {
|
|
1103
|
-
if (!HAS_OWN.call(suspendedUpdates, propertyName))
|
|
1104
|
-
continue;
|
|
1105
|
-
const property = suspendedUpdates[propertyName];
|
|
1106
|
-
const setNative = property.setNative;
|
|
1107
|
-
if (view[setNative]) {
|
|
1108
|
-
const { getDefault, isStyleProperty, defaultValueKey, defaultValue } = property;
|
|
1109
|
-
let value;
|
|
1110
|
-
if (isStyleProperty) {
|
|
1111
|
-
const style = view.style;
|
|
1112
|
-
if (property.isSet(view.style)) {
|
|
1113
|
-
if (!(defaultValueKey in style)) {
|
|
1114
|
-
style[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
|
|
1115
|
-
}
|
|
1116
|
-
value = view.style[propertyName];
|
|
1117
|
-
}
|
|
1118
|
-
else {
|
|
1119
|
-
value = style[defaultValueKey];
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
else {
|
|
1123
|
-
if (property.isSet(view)) {
|
|
1124
|
-
if (!(defaultValueKey in view)) {
|
|
1125
|
-
view[defaultValueKey] = view[getDefault] ? view[getDefault]() : defaultValue;
|
|
1126
|
-
}
|
|
1127
|
-
value = view[propertyName];
|
|
1128
|
-
}
|
|
1129
|
-
else {
|
|
1130
|
-
value = view[defaultValueKey];
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
// TODO: Only if value is different from the value before the scope was created.
|
|
1134
|
-
view[setNative](value);
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
export function applyAllNativeSetters(view) {
|
|
1139
|
-
let symbols = Object.getOwnPropertySymbols(view);
|
|
1140
|
-
for (const symbol of symbols) {
|
|
1141
|
-
const property = symbolPropertyMap[symbol];
|
|
1142
|
-
if (!property) {
|
|
1143
|
-
continue;
|
|
1144
|
-
}
|
|
1145
|
-
const setNative = property.setNative;
|
|
1146
|
-
const getDefault = property.getDefault;
|
|
1147
|
-
if (setNative in view) {
|
|
1148
|
-
const defaultValueKey = property.defaultValueKey;
|
|
1149
|
-
if (!(defaultValueKey in view)) {
|
|
1150
|
-
view[defaultValueKey] = view[getDefault] ? view[getDefault]() : property.defaultValue;
|
|
1151
|
-
}
|
|
1152
|
-
const value = view[symbol];
|
|
1153
|
-
view[setNative](value);
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
const style = view.style;
|
|
1157
|
-
symbols = Object.getOwnPropertySymbols(style);
|
|
1158
|
-
for (const symbol of symbols) {
|
|
1159
|
-
const property = cssSymbolPropertyMap[symbol];
|
|
1160
|
-
if (!property) {
|
|
1161
|
-
continue;
|
|
1162
|
-
}
|
|
1163
|
-
if (view[property.setNative]) {
|
|
1164
|
-
const defaultValueKey = property.defaultValueKey;
|
|
1165
|
-
if (!(defaultValueKey in style)) {
|
|
1166
|
-
style[defaultValueKey] = view[property.getDefault] ? view[property.getDefault]() : property.defaultValue;
|
|
1167
|
-
}
|
|
1168
|
-
const value = style[symbol];
|
|
1169
|
-
view[property.setNative](value);
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
export function resetNativeView(view) {
|
|
1174
|
-
let symbols = Object.getOwnPropertySymbols(view);
|
|
1175
|
-
for (const symbol of symbols) {
|
|
1176
|
-
const property = symbolPropertyMap[symbol];
|
|
1177
|
-
if (!property) {
|
|
1178
|
-
continue;
|
|
1179
|
-
}
|
|
1180
|
-
if (view[property.setNative]) {
|
|
1181
|
-
if (property.defaultValueKey in view) {
|
|
1182
|
-
view[property.setNative](view[property.defaultValueKey]);
|
|
1183
|
-
delete view[property.defaultValueKey];
|
|
1184
|
-
}
|
|
1185
|
-
else {
|
|
1186
|
-
view[property.setNative](property.defaultValue);
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
const style = view.style;
|
|
1191
|
-
symbols = Object.getOwnPropertySymbols(style);
|
|
1192
|
-
for (const symbol of symbols) {
|
|
1193
|
-
const property = cssSymbolPropertyMap[symbol];
|
|
1194
|
-
if (!property) {
|
|
1195
|
-
continue;
|
|
1196
|
-
}
|
|
1197
|
-
if (view[property.setNative]) {
|
|
1198
|
-
if (property.defaultValueKey in style) {
|
|
1199
|
-
view[property.setNative](style[property.defaultValueKey]);
|
|
1200
|
-
delete style[property.defaultValueKey];
|
|
1201
|
-
}
|
|
1202
|
-
else {
|
|
1203
|
-
view[property.setNative](property.defaultValue);
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
export function clearInheritedProperties(view) {
|
|
1209
|
-
for (const prop of inheritableProperties) {
|
|
1210
|
-
const sourceKey = prop.sourceKey;
|
|
1211
|
-
if (view[sourceKey] === 1 /* ValueSource.Inherited */) {
|
|
1212
|
-
prop.set.call(view, unsetValue);
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
const style = view.style;
|
|
1216
|
-
for (const prop of inheritableCssProperties) {
|
|
1217
|
-
const sourceKey = prop.sourceKey;
|
|
1218
|
-
if (style[sourceKey] === 1 /* ValueSource.Inherited */) {
|
|
1219
|
-
prop.setInheritedValue.call(style, unsetValue);
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
export function resetCSSProperties(style) {
|
|
1224
|
-
const symbols = Object.getOwnPropertySymbols(style);
|
|
1225
|
-
for (const symbol of symbols) {
|
|
1226
|
-
let cssProperty;
|
|
1227
|
-
if ((cssProperty = cssSymbolPropertyMap[symbol])) {
|
|
1228
|
-
style[cssProperty.cssName] = unsetValue;
|
|
1229
|
-
if (cssProperty instanceof CssAnimationProperty) {
|
|
1230
|
-
style[cssProperty.keyframe] = unsetValue;
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
export function propagateInheritableProperties(view, child) {
|
|
1236
|
-
const inheritablePropertyValues = inheritablePropertyValuesOn(view);
|
|
1237
|
-
for (const pair of inheritablePropertyValues) {
|
|
1238
|
-
const prop = pair.property;
|
|
1239
|
-
const sourceKey = prop.sourceKey;
|
|
1240
|
-
const currentValueSource = child[sourceKey] || 0 /* ValueSource.Default */;
|
|
1241
|
-
if (currentValueSource <= 1 /* ValueSource.Inherited */) {
|
|
1242
|
-
prop.setInheritedValue.call(child, pair.value);
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
export function propagateInheritableCssProperties(parentStyle, childStyle) {
|
|
1247
|
-
const inheritableCssPropertyValues = inheritableCssPropertyValuesOn(parentStyle);
|
|
1248
|
-
for (const pair of inheritableCssPropertyValues) {
|
|
1249
|
-
const prop = pair.property;
|
|
1250
|
-
const sourceKey = prop.sourceKey;
|
|
1251
|
-
const currentValueSource = childStyle[sourceKey] || 0 /* ValueSource.Default */;
|
|
1252
|
-
if (currentValueSource <= 1 /* ValueSource.Inherited */) {
|
|
1253
|
-
prop.setInheritedValue.call(childStyle, pair.value, 1 /* ValueSource.Inherited */);
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
export function getSetProperties(view) {
|
|
1258
|
-
const result = [];
|
|
1259
|
-
const ownProps = Object.getOwnPropertyNames(view);
|
|
1260
|
-
for (let i = 0; i < ownProps.length; i++) {
|
|
1261
|
-
const prop = ownProps[i];
|
|
1262
|
-
result.push([prop, view[prop]]);
|
|
1263
|
-
}
|
|
1264
|
-
const symbols = Object.getOwnPropertySymbols(view);
|
|
1265
|
-
for (const symbol of symbols) {
|
|
1266
|
-
const property = symbolPropertyMap[symbol];
|
|
1267
|
-
if (!property) {
|
|
1268
|
-
continue;
|
|
1269
|
-
}
|
|
1270
|
-
const value = view[property.key];
|
|
1271
|
-
result.push([property.name, value]);
|
|
1272
|
-
}
|
|
1273
|
-
return result;
|
|
1274
|
-
}
|
|
1275
|
-
export function getComputedCssValues(view) {
|
|
1276
|
-
const result = [];
|
|
1277
|
-
const style = view.style;
|
|
1278
|
-
for (const prop of cssPropertyNames) {
|
|
1279
|
-
if (prop !== undefined && prop !== null) {
|
|
1280
|
-
result.push([prop, style[prop]]);
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
// Add these to enable box model in chrome-devtools styles tab
|
|
1284
|
-
result.push(['top', 'auto']);
|
|
1285
|
-
result.push(['left', 'auto']);
|
|
1286
|
-
result.push(['bottom', 'auto']);
|
|
1287
|
-
result.push(['right', 'auto']);
|
|
1288
|
-
return result;
|
|
1289
|
-
}
|
|
1290
|
-
//# sourceMappingURL=index.js.map
|