@nativescript/core 9.1.0-dev.0 → 9.1.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accessibility/accessibility-common.d.ts +8 -0
- package/accessibility/accessibility-common.js +28 -0
- package/accessibility/accessibility-common.js.map +1 -1
- package/application/application-common.d.ts +188 -6
- package/application/application-common.js +402 -98
- package/application/application-common.js.map +1 -1
- package/application/application-interfaces.d.ts +59 -1
- package/application/application.android.d.ts +38 -1
- package/application/application.android.js +195 -12
- package/application/application.android.js.map +1 -1
- package/application/application.d.ts +121 -75
- package/application/application.ios.d.ts +106 -28
- package/application/application.ios.js +619 -343
- package/application/application.ios.js.map +1 -1
- package/application/helpers-common.d.ts +5 -0
- package/application/helpers-common.js +23 -1
- package/application/helpers-common.js.map +1 -1
- package/application/scene-delegate-bridge.d.ts +55 -0
- package/application/scene-delegate-bridge.js +122 -0
- package/application/scene-delegate-bridge.js.map +1 -0
- package/color/index.d.ts +0 -5
- package/config/config.interface.d.ts +44 -2
- package/core-types/index.d.ts +9 -2
- package/core-types/index.js +7 -0
- package/core-types/index.js.map +1 -1
- package/css/CSS3Parser.js +3 -2
- package/css/CSS3Parser.js.map +1 -1
- package/css/system-classes.d.ts +9 -0
- package/css/system-classes.js +23 -0
- package/css/system-classes.js.map +1 -1
- package/data/observable/index.d.ts +5 -0
- package/data/observable/index.js +46 -9
- package/data/observable/index.js.map +1 -1
- package/debugger/dom-types.js +31 -1
- package/debugger/dom-types.js.map +1 -1
- package/fetch/index.mjs +2 -2
- package/file-system/file-system-access.ios.js +18 -10
- package/file-system/file-system-access.ios.js.map +1 -1
- package/file-system/index.d.ts +3 -3
- package/global-types.d.ts +39 -34
- package/globals/global-utils.d.ts +6 -1
- package/globals/global-utils.js +10 -5
- package/globals/global-utils.js.map +1 -1
- package/globals/index.js +18 -5
- package/globals/index.js.map +1 -1
- package/globals/polyfills/utils.js +2 -0
- package/globals/polyfills/utils.js.map +1 -1
- package/http/http-request/index.android.js.map +1 -1
- package/http/http-request/index.ios.js.map +1 -1
- package/http/http-request-internal/index.android.d.ts +7 -1
- package/http/http-request-internal/index.android.js.map +1 -1
- package/http/http-request-internal/index.ios.d.ts +7 -1
- package/http/http-request-internal/index.ios.js.map +1 -1
- package/image-source/index.android.d.ts +0 -1
- package/image-source/index.android.js.map +1 -1
- package/image-source/index.d.ts +0 -5
- package/image-source/index.ios.d.ts +0 -1
- package/image-source/index.ios.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/inspector_modules.js +1 -1
- package/inspector_modules.js.map +1 -1
- package/native-window/index.d.ts +426 -0
- package/native-window/index.js +4 -0
- package/native-window/index.js.map +1 -0
- package/native-window/native-window-common.d.ts +153 -0
- package/native-window/native-window-common.js +340 -0
- package/native-window/native-window-common.js.map +1 -0
- package/native-window/native-window-interfaces.d.ts +186 -0
- package/native-window/native-window-interfaces.js +90 -0
- package/native-window/native-window-interfaces.js.map +1 -0
- package/native-window/native-window.android.d.ts +59 -0
- package/native-window/native-window.android.js +175 -0
- package/native-window/native-window.android.js.map +1 -0
- package/native-window/native-window.ios.d.ts +57 -0
- package/native-window/native-window.ios.js +208 -0
- package/native-window/native-window.ios.js.map +1 -0
- package/native-window/window-base.d.ts +103 -0
- package/native-window/window-base.js +78 -0
- package/native-window/window-base.js.map +1 -0
- package/package.json +4 -6
- package/platform/common.d.ts +0 -2
- package/platform/common.js +0 -2
- package/platform/common.js.map +1 -1
- package/platforms/android/widgets-release.aar +0 -0
- package/platforms/ios/TNSWidgets.xcframework/Info.plist +14 -14
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +78 -78
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Resources/Info.plist +7 -7
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/Resources/Info.plist +7 -7
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/A/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/Resources/Info.plist +7 -7
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/TNSWidgets.framework/Versions/Current/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +78 -78
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-maccatalyst/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +78 -78
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +1 -1
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +78 -78
- package/platforms/ios/TNSWidgets.xcframework/ios-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +78 -78
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +78 -78
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/Info.plist +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/TNSWidgets.framework/_CodeSignature/CodeResources +1 -1
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/DWARF/TNSWidgets +0 -0
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/aarch64/TNSWidgets.yml +78 -78
- package/platforms/ios/TNSWidgets.xcframework/xros-arm64_x86_64-simulator/dSYMs/TNSWidgets.framework.dSYM/Contents/Resources/Relocations/x86_64/TNSWidgets.yml +78 -78
- package/platforms/ios/src/NativeScriptMainWindow.swift +72 -39
- package/references.d.ts +0 -4
- package/trace/index.d.ts +2 -2
- package/ui/action-bar/action-bar-common.js +0 -1
- package/ui/action-bar/action-bar-common.js.map +1 -1
- package/ui/action-bar/index.ios.js +0 -1
- package/ui/action-bar/index.ios.js.map +1 -1
- package/ui/animation/keyframe-animation.d.ts +1 -1
- package/ui/builder/index.d.ts +0 -1
- package/ui/builder/index.js +10 -3
- package/ui/builder/index.js.map +1 -1
- package/ui/button/index.android.d.ts +2 -9
- package/ui/button/index.android.js +7 -24
- package/ui/button/index.android.js.map +1 -1
- package/ui/button/index.ios.d.ts +2 -9
- package/ui/button/index.ios.js +17 -72
- package/ui/button/index.ios.js.map +1 -1
- package/ui/core/bindable/index.js +2 -1
- package/ui/core/bindable/index.js.map +1 -1
- package/ui/core/properties/index.d.ts +24 -1
- package/ui/core/properties/index.js +96 -10
- package/ui/core/properties/index.js.map +1 -1
- package/ui/core/properties/property-shared.js +11 -2
- package/ui/core/properties/property-shared.js.map +1 -1
- package/ui/core/view/index.android.d.ts +1 -0
- package/ui/core/view/index.android.js +42 -11
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/index.d.ts +58 -1
- package/ui/core/view/index.ios.d.ts +1 -0
- package/ui/core/view/index.ios.js +28 -6
- package/ui/core/view/index.ios.js.map +1 -1
- package/ui/core/view/view-common.d.ts +37 -2
- package/ui/core/view/view-common.js +82 -6
- package/ui/core/view/view-common.js.map +1 -1
- package/ui/core/view/view-helper/index.d.ts +1 -0
- package/ui/core/view/view-helper/index.ios.d.ts +10 -0
- package/ui/core/view/view-helper/index.ios.js +33 -5
- package/ui/core/view/view-helper/index.ios.js.map +1 -1
- package/ui/core/view/view-helper/view-helper-common.js +21 -3
- package/ui/core/view/view-helper/view-helper-common.js.map +1 -1
- package/ui/core/view-base/index.d.ts +37 -18
- package/ui/core/view-base/index.js +104 -65
- package/ui/core/view-base/index.js.map +1 -1
- package/ui/frame/fragment.transitions.android.d.ts +13 -13
- package/ui/frame/fragment.transitions.android.js.map +1 -1
- package/ui/frame/frame-common.d.ts +16 -3
- package/ui/frame/frame-common.js +19 -7
- package/ui/frame/frame-common.js.map +1 -1
- package/ui/frame/frame-constants.d.ts +9 -0
- package/ui/frame/frame-constants.js +10 -0
- package/ui/frame/frame-constants.js.map +1 -0
- package/ui/frame/frame-helper-for-android.d.ts +6 -6
- package/ui/frame/frame-helper-for-android.js +31 -13
- package/ui/frame/frame-helper-for-android.js.map +1 -1
- package/ui/frame/frame-interfaces.d.ts +1 -1
- package/ui/frame/frame-stack.d.ts +17 -1
- package/ui/frame/frame-stack.js +32 -5
- package/ui/frame/frame-stack.js.map +1 -1
- package/ui/frame/index.android.d.ts +7 -12
- package/ui/frame/index.android.js +157 -97
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.d.ts +27 -26
- package/ui/frame/index.ios.d.ts +2 -2
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/image/image-common.js +1 -1
- package/ui/image/image-common.js.map +1 -1
- package/ui/image/index.android.js +13 -1
- package/ui/image/index.android.js.map +1 -1
- package/ui/label/index.ios.d.ts +2 -5
- package/ui/label/index.ios.js +12 -44
- package/ui/label/index.ios.js.map +1 -1
- package/ui/layouts/absolute-layout/index.ios.js +3 -0
- package/ui/layouts/absolute-layout/index.ios.js.map +1 -1
- package/ui/layouts/dock-layout/index.ios.js +3 -0
- package/ui/layouts/dock-layout/index.ios.js.map +1 -1
- package/ui/layouts/flexbox-layout/flexbox-layout-common.d.ts +9 -17
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js +11 -64
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +1 -1
- package/ui/layouts/flexbox-layout/index.android.d.ts +5 -0
- package/ui/layouts/flexbox-layout/index.android.js +15 -0
- package/ui/layouts/flexbox-layout/index.android.js.map +1 -1
- package/ui/layouts/flexbox-layout/index.d.ts +19 -1
- package/ui/layouts/flexbox-layout/index.ios.d.ts +2 -0
- package/ui/layouts/flexbox-layout/index.ios.js +244 -193
- package/ui/layouts/flexbox-layout/index.ios.js.map +1 -1
- package/ui/layouts/grid-layout/index.ios.js +3 -0
- package/ui/layouts/grid-layout/index.ios.js.map +1 -1
- package/ui/layouts/layout-base-common.d.ts +1 -0
- package/ui/layouts/layout-base-common.js +21 -0
- package/ui/layouts/layout-base-common.js.map +1 -1
- package/ui/layouts/layout-base.android.d.ts +3 -10
- package/ui/layouts/layout-base.android.js +7 -24
- package/ui/layouts/layout-base.android.js.map +1 -1
- package/ui/layouts/layout-base.ios.js.map +1 -1
- package/ui/layouts/stack-layout/index.ios.js +3 -0
- package/ui/layouts/stack-layout/index.ios.js.map +1 -1
- package/ui/layouts/wrap-layout/index.ios.js +3 -0
- package/ui/layouts/wrap-layout/index.ios.js.map +1 -1
- package/ui/list-view/index.android.js +3 -2
- package/ui/list-view/index.android.js.map +1 -1
- package/ui/list-view/index.d.ts +13 -1
- package/ui/list-view/index.ios.d.ts +5 -3
- package/ui/list-view/index.ios.js +63 -27
- package/ui/list-view/index.ios.js.map +1 -1
- package/ui/list-view/list-view-common.d.ts +15 -0
- package/ui/list-view/list-view-common.js +19 -0
- package/ui/list-view/list-view-common.js.map +1 -1
- package/ui/page/index.android.d.ts +1 -0
- package/ui/page/index.android.js +4 -0
- package/ui/page/index.android.js.map +1 -1
- package/ui/page/index.d.ts +1 -1
- package/ui/page/index.ios.d.ts +3 -1
- package/ui/page/index.ios.js +23 -6
- package/ui/page/index.ios.js.map +1 -1
- package/ui/page/page-common.d.ts +5 -2
- package/ui/page/page-common.js.map +1 -1
- package/ui/repeater/index.d.ts +2 -1
- package/ui/repeater/index.js.map +1 -1
- package/ui/scroll-view/index.d.ts +11 -0
- package/ui/scroll-view/index.ios.d.ts +3 -1
- package/ui/scroll-view/index.ios.js +28 -8
- package/ui/scroll-view/index.ios.js.map +1 -1
- package/ui/scroll-view/scroll-view-common.d.ts +6 -0
- package/ui/scroll-view/scroll-view-common.js +8 -0
- package/ui/scroll-view/scroll-view-common.js.map +1 -1
- package/ui/segmented-bar/segmented-bar-common.d.ts +5 -1
- package/ui/segmented-bar/segmented-bar-common.js +6 -1
- package/ui/segmented-bar/segmented-bar-common.js.map +1 -1
- package/ui/styling/background-common.d.ts +2 -0
- package/ui/styling/background-common.js +9 -0
- package/ui/styling/background-common.js.map +1 -1
- package/ui/styling/background.ios.js +2 -0
- package/ui/styling/background.ios.js.map +1 -1
- package/ui/styling/css-selector.d.ts +57 -13
- package/ui/styling/css-selector.js +280 -51
- package/ui/styling/css-selector.js.map +1 -1
- package/ui/styling/css-utils.d.ts +16 -0
- package/ui/styling/css-utils.js +121 -7
- package/ui/styling/css-utils.js.map +1 -1
- package/ui/styling/font.d.ts +0 -4
- package/ui/styling/style/index.d.ts +12 -0
- package/ui/styling/style/index.js.map +1 -1
- package/ui/styling/style-properties.d.ts +6 -0
- package/ui/styling/style-properties.js +175 -106
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/styling/style-scope.d.ts +15 -3
- package/ui/styling/style-scope.js +300 -65
- package/ui/styling/style-scope.js.map +1 -1
- package/ui/switch/index.ios.js +2 -1
- package/ui/switch/index.ios.js.map +1 -1
- package/ui/tab-view/index.android.d.ts +3 -1
- package/ui/tab-view/index.android.js +56 -46
- package/ui/tab-view/index.android.js.map +1 -1
- package/ui/tab-view/index.ios.d.ts +10 -1
- package/ui/tab-view/index.ios.js +22 -4
- package/ui/tab-view/index.ios.js.map +1 -1
- package/ui/tab-view/tab-view-common.d.ts +6 -1
- package/ui/tab-view/tab-view-common.js +16 -3
- package/ui/tab-view/tab-view-common.js.map +1 -1
- package/ui/text-base/index.android.d.ts +3 -10
- package/ui/text-base/index.android.js +15 -32
- package/ui/text-base/index.android.js.map +1 -1
- package/ui/text-base/index.ios.js +5 -3
- package/ui/text-base/index.ios.js.map +1 -1
- package/ui/text-field/index.ios.d.ts +2 -9
- package/ui/text-field/index.ios.js +2 -23
- package/ui/text-field/index.ios.js.map +1 -1
- package/ui/text-view/index.ios.d.ts +2 -9
- package/ui/text-view/index.ios.js +20 -72
- package/ui/text-view/index.ios.js.map +1 -1
- package/ui/transition/index.d.ts +2 -1
- package/ui/transition/modal-transition.ios.js +33 -5
- package/ui/transition/modal-transition.ios.js.map +1 -1
- package/ui/transition/page-transition.ios.d.ts +5 -0
- package/ui/transition/page-transition.ios.js +296 -33
- package/ui/transition/page-transition.ios.js.map +1 -1
- package/ui/transition/shared-transition-helper.android.d.ts +3 -0
- package/ui/transition/shared-transition-helper.android.js +9 -0
- package/ui/transition/shared-transition-helper.android.js.map +1 -1
- package/ui/transition/shared-transition-helper.d.ts +7 -0
- package/ui/transition/shared-transition-helper.ios.d.ts +36 -0
- package/ui/transition/shared-transition-helper.ios.js +765 -89
- package/ui/transition/shared-transition-helper.ios.js.map +1 -1
- package/ui/transition/shared-transition.d.ts +67 -0
- package/ui/transition/shared-transition.js +62 -2
- package/ui/transition/shared-transition.js.map +1 -1
- package/utils/debug-source.js +0 -3
- package/utils/debug-source.js.map +1 -1
- package/utils/layout-helper/index.ios.js +11 -3
- package/utils/layout-helper/index.ios.js.map +1 -1
- package/utils/native-helper.android.d.ts +66 -2
- package/utils/native-helper.android.js.map +1 -1
- package/utils/native-helper.d.ts +2 -2
- package/utils/native-helper.ios.d.ts +105 -2
- package/utils/native-helper.ios.js +15 -4
- package/utils/native-helper.ios.js.map +1 -1
- package/utils/native-helper.types.d.ts +2 -0
- package/utils/platform-check.d.ts +1 -1
- package/utils/platform-check.js.map +1 -1
- package/animation-frame/animation-native.windows.d.ts +0 -1
- package/animation-frame/animation-native.windows.js +0 -4
- package/animation-frame/animation-native.windows.js.map +0 -1
- package/application/application.windows.d.ts +0 -27
- package/application/application.windows.js +0 -331
- package/application/application.windows.js.map +0 -1
- package/application/helpers.windows.d.ts +0 -8
- package/application/helpers.windows.js +0 -12
- package/application/helpers.windows.js.map +0 -1
- package/application/index.windows.d.ts +0 -2
- package/application/index.windows.js +0 -3
- package/application/index.windows.js.map +0 -1
- package/application/window-helper.windows.d.ts +0 -29
- package/application/window-helper.windows.js +0 -159
- package/application/window-helper.windows.js.map +0 -1
- package/application-settings/index.windows.d.ts +0 -11
- package/application-settings/index.windows.js +0 -93
- package/application-settings/index.windows.js.map +0 -1
- package/color/index.windows.d.ts +0 -8
- package/color/index.windows.js +0 -19
- package/color/index.windows.js.map +0 -1
- package/connectivity/index.windows.d.ts +0 -11
- package/connectivity/index.windows.js +0 -50
- package/connectivity/index.windows.js.map +0 -1
- package/debugger/webinspector-network.windows.d.ts +0 -79
- package/debugger/webinspector-network.windows.js +0 -307
- package/debugger/webinspector-network.windows.js.map +0 -1
- package/file-system/file-system-access.windows.d.ts +0 -76
- package/file-system/file-system-access.windows.js +0 -476
- package/file-system/file-system-access.windows.js.map +0 -1
- package/fps-meter/fps-native.windows.d.ts +0 -8
- package/fps-meter/fps-native.windows.js +0 -40
- package/fps-meter/fps-native.windows.js.map +0 -1
- package/http/http-request/index.windows.d.ts +0 -2
- package/http/http-request/index.windows.js +0 -41
- package/http/http-request/index.windows.js.map +0 -1
- package/http/http-request-internal/index.windows.d.ts +0 -4
- package/http/http-request-internal/index.windows.js +0 -134
- package/http/http-request-internal/index.windows.js.map +0 -1
- package/image-asset/index.windows.d.ts +0 -9
- package/image-asset/index.windows.js +0 -34
- package/image-asset/index.windows.js.map +0 -1
- package/image-source/index.windows.d.ts +0 -52
- package/image-source/index.windows.js +0 -498
- package/image-source/index.windows.js.map +0 -1
- package/platform/device/index.windows.d.ts +0 -18
- package/platform/device/index.windows.js +0 -94
- package/platform/device/index.windows.js.map +0 -1
- package/platform/screen/index.windows.d.ts +0 -13
- package/platform/screen/index.windows.js +0 -25
- package/platform/screen/index.windows.js.map +0 -1
- package/platforms/windows/arm64/NativeScript.Widgets.dll +0 -0
- package/platforms/windows/arm64/NativeScript.Widgets.winmd +0 -0
- package/platforms/windows/x64/NativeScript.Widgets.dll +0 -0
- package/platforms/windows/x64/NativeScript.Widgets.winmd +0 -0
- package/plugin.props +0 -12
- package/plugin.targets +0 -71
- package/text/index.windows.d.ts +0 -9
- package/text/index.windows.js +0 -12
- package/text/index.windows.js.map +0 -1
- package/timer/index.windows.d.ts +0 -4
- package/timer/index.windows.js +0 -14
- package/timer/index.windows.js.map +0 -1
- package/ui/action-bar/index.windows.d.ts +0 -12
- package/ui/action-bar/index.windows.js +0 -36
- package/ui/action-bar/index.windows.js.map +0 -1
- package/ui/activity-indicator/index.windows.d.ts +0 -15
- package/ui/activity-indicator/index.windows.js +0 -65
- package/ui/activity-indicator/index.windows.js.map +0 -1
- package/ui/animation/index.windows.d.ts +0 -19
- package/ui/animation/index.windows.js +0 -603
- package/ui/animation/index.windows.js.map +0 -1
- package/ui/button/index.windows.d.ts +0 -13
- package/ui/button/index.windows.js +0 -73
- package/ui/button/index.windows.js.map +0 -1
- package/ui/core/control-state-change/index.windows.d.ts +0 -4
- package/ui/core/control-state-change/index.windows.js +0 -6
- package/ui/core/control-state-change/index.windows.js.map +0 -1
- package/ui/core/view/index.windows.d.ts +0 -120
- package/ui/core/view/index.windows.js +0 -2178
- package/ui/core/view/index.windows.js.map +0 -1
- package/ui/core/view/view-helper/index.windows.d.ts +0 -3
- package/ui/core/view/view-helper/index.windows.js +0 -4
- package/ui/core/view/view-helper/index.windows.js.map +0 -1
- package/ui/date-picker/index.windows.d.ts +0 -22
- package/ui/date-picker/index.windows.js +0 -97
- package/ui/date-picker/index.windows.js.map +0 -1
- package/ui/dialogs/index.windows.d.ts +0 -17
- package/ui/dialogs/index.windows.js +0 -471
- package/ui/dialogs/index.windows.js.map +0 -1
- package/ui/editable-text-base/index.windows.d.ts +0 -27
- package/ui/editable-text-base/index.windows.js +0 -165
- package/ui/editable-text-base/index.windows.js.map +0 -1
- package/ui/embedding/index.windows.d.ts +0 -1
- package/ui/embedding/index.windows.js +0 -4
- package/ui/embedding/index.windows.js.map +0 -1
- package/ui/frame/index.windows.d.ts +0 -52
- package/ui/frame/index.windows.js +0 -778
- package/ui/frame/index.windows.js.map +0 -1
- package/ui/gestures/index.windows.d.ts +0 -35
- package/ui/gestures/index.windows.js +0 -483
- package/ui/gestures/index.windows.js.map +0 -1
- package/ui/html-view/index.windows.d.ts +0 -18
- package/ui/html-view/index.windows.js +0 -191
- package/ui/html-view/index.windows.js.map +0 -1
- package/ui/image/index.windows.d.ts +0 -17
- package/ui/image/index.windows.js +0 -132
- package/ui/image/index.windows.js.map +0 -1
- package/ui/image/symbol-effects.windows.d.ts +0 -5
- package/ui/image/symbol-effects.windows.js +0 -8
- package/ui/image/symbol-effects.windows.js.map +0 -1
- package/ui/image-cache/index.windows.d.ts +0 -11
- package/ui/image-cache/index.windows.js +0 -48
- package/ui/image-cache/index.windows.js.map +0 -1
- package/ui/label/index.windows.d.ts +0 -15
- package/ui/label/index.windows.js +0 -66
- package/ui/label/index.windows.js.map +0 -1
- package/ui/layouts/absolute-layout/index.windows.d.ts +0 -8
- package/ui/layouts/absolute-layout/index.windows.js +0 -47
- package/ui/layouts/absolute-layout/index.windows.js.map +0 -1
- package/ui/layouts/dock-layout/index.windows.d.ts +0 -19
- package/ui/layouts/dock-layout/index.windows.js +0 -202
- package/ui/layouts/dock-layout/index.windows.js.map +0 -1
- package/ui/layouts/flexbox-layout/index.windows.d.ts +0 -27
- package/ui/layouts/flexbox-layout/index.windows.js +0 -188
- package/ui/layouts/flexbox-layout/index.windows.js.map +0 -1
- package/ui/layouts/grid-layout/index.windows.d.ts +0 -20
- package/ui/layouts/grid-layout/index.windows.js +0 -130
- package/ui/layouts/grid-layout/index.windows.js.map +0 -1
- package/ui/layouts/layout-base.windows.d.ts +0 -4
- package/ui/layouts/layout-base.windows.js +0 -5
- package/ui/layouts/layout-base.windows.js.map +0 -1
- package/ui/layouts/liquid-glass/index.windows.d.ts +0 -4
- package/ui/layouts/liquid-glass/index.windows.js +0 -5
- package/ui/layouts/liquid-glass/index.windows.js.map +0 -1
- package/ui/layouts/liquid-glass-container/index.windows.d.ts +0 -4
- package/ui/layouts/liquid-glass-container/index.windows.js +0 -5
- package/ui/layouts/liquid-glass-container/index.windows.js.map +0 -1
- package/ui/layouts/root-layout/index.windows.d.ts +0 -13
- package/ui/layouts/root-layout/index.windows.js +0 -160
- package/ui/layouts/root-layout/index.windows.js.map +0 -1
- package/ui/layouts/stack-layout/index.windows.d.ts +0 -13
- package/ui/layouts/stack-layout/index.windows.js +0 -63
- package/ui/layouts/stack-layout/index.windows.js.map +0 -1
- package/ui/layouts/wrap-layout/index.windows.d.ts +0 -20
- package/ui/layouts/wrap-layout/index.windows.js +0 -182
- package/ui/layouts/wrap-layout/index.windows.js.map +0 -1
- package/ui/list-picker/index.windows.d.ts +0 -19
- package/ui/list-picker/index.windows.js +0 -75
- package/ui/list-picker/index.windows.js.map +0 -1
- package/ui/list-view/index.windows.d.ts +0 -60
- package/ui/list-view/index.windows.js +0 -842
- package/ui/list-view/index.windows.js.map +0 -1
- package/ui/page/index.windows.d.ts +0 -12
- package/ui/page/index.windows.js +0 -42
- package/ui/page/index.windows.js.map +0 -1
- package/ui/progress/index.windows.d.ts +0 -20
- package/ui/progress/index.windows.js +0 -65
- package/ui/progress/index.windows.js.map +0 -1
- package/ui/scroll-view/index.windows.d.ts +0 -29
- package/ui/scroll-view/index.windows.js +0 -192
- package/ui/scroll-view/index.windows.js.map +0 -1
- package/ui/search-bar/index.windows.d.ts +0 -19
- package/ui/search-bar/index.windows.js +0 -91
- package/ui/search-bar/index.windows.js.map +0 -1
- package/ui/segmented-bar/index.windows.d.ts +0 -23
- package/ui/segmented-bar/index.windows.js +0 -117
- package/ui/segmented-bar/index.windows.js.map +0 -1
- package/ui/slider/index.windows.d.ts +0 -25
- package/ui/slider/index.windows.js +0 -134
- package/ui/slider/index.windows.js.map +0 -1
- package/ui/split-view/index.windows.d.ts +0 -49
- package/ui/split-view/index.windows.js +0 -549
- package/ui/split-view/index.windows.js.map +0 -1
- package/ui/styling/background.windows.d.ts +0 -2
- package/ui/styling/background.windows.js +0 -2
- package/ui/styling/background.windows.js.map +0 -1
- package/ui/styling/font.windows.d.ts +0 -25
- package/ui/styling/font.windows.js +0 -213
- package/ui/styling/font.windows.js.map +0 -1
- package/ui/switch/index.windows.d.ts +0 -20
- package/ui/switch/index.windows.js +0 -97
- package/ui/switch/index.windows.js.map +0 -1
- package/ui/tab-view/index.windows.d.ts +0 -29
- package/ui/tab-view/index.windows.js +0 -268
- package/ui/tab-view/index.windows.js.map +0 -1
- package/ui/text-base/index.windows.d.ts +0 -47
- package/ui/text-base/index.windows.js +0 -639
- package/ui/text-base/index.windows.js.map +0 -1
- package/ui/text-field/index.windows.d.ts +0 -23
- package/ui/text-field/index.windows.js +0 -186
- package/ui/text-field/index.windows.js.map +0 -1
- package/ui/text-view/index.windows.d.ts +0 -12
- package/ui/text-view/index.windows.js +0 -47
- package/ui/text-view/index.windows.js.map +0 -1
- package/ui/time-picker/index.windows.d.ts +0 -18
- package/ui/time-picker/index.windows.js +0 -77
- package/ui/time-picker/index.windows.js.map +0 -1
- package/ui/transition/fade-transition.windows.d.ts +0 -3
- package/ui/transition/fade-transition.windows.js +0 -4
- package/ui/transition/fade-transition.windows.js.map +0 -1
- package/ui/transition/index.windows.d.ts +0 -20
- package/ui/transition/index.windows.js +0 -30
- package/ui/transition/index.windows.js.map +0 -1
- package/ui/transition/modal-transition.windows.d.ts +0 -3
- package/ui/transition/modal-transition.windows.js +0 -4
- package/ui/transition/modal-transition.windows.js.map +0 -1
- package/ui/transition/page-transition.windows.d.ts +0 -3
- package/ui/transition/page-transition.windows.js +0 -4
- package/ui/transition/page-transition.windows.js.map +0 -1
- package/ui/transition/shared-transition-helper.windows.d.ts +0 -30
- package/ui/transition/shared-transition-helper.windows.js +0 -155
- package/ui/transition/shared-transition-helper.windows.js.map +0 -1
- package/ui/transition/slide-transition.windows.d.ts +0 -3
- package/ui/transition/slide-transition.windows.js +0 -4
- package/ui/transition/slide-transition.windows.js.map +0 -1
- package/ui/utils.windows.d.ts +0 -9
- package/ui/utils.windows.js +0 -21
- package/ui/utils.windows.js.map +0 -1
- package/ui/web-view/index.windows.d.ts +0 -23
- package/ui/web-view/index.windows.js +0 -115
- package/ui/web-view/index.windows.js.map +0 -1
- package/utils/constants.windows.d.ts +0 -2
- package/utils/constants.windows.js +0 -5
- package/utils/constants.windows.js.map +0 -1
- package/utils/index.windows.d.ts +0 -20
- package/utils/index.windows.js +0 -94
- package/utils/index.windows.js.map +0 -1
- package/utils/layout-helper/index.windows.d.ts +0 -25
- package/utils/layout-helper/index.windows.js +0 -74
- package/utils/layout-helper/index.windows.js.map +0 -1
- package/utils/mainthread-helper.windows.d.ts +0 -3
- package/utils/mainthread-helper.windows.js +0 -18
- package/utils/mainthread-helper.windows.js.map +0 -1
- package/utils/native-helper.windows.d.ts +0 -8
- package/utils/native-helper.windows.js +0 -101
- package/utils/native-helper.windows.js.map +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { CssProperty, CssAnimationProperty, ShorthandProperty, InheritedCssProperty } from '../core/properties';
|
|
2
|
-
import { unsetValue
|
|
2
|
+
import { unsetValue } from '../core/properties/property-shared';
|
|
3
3
|
import { Style } from './style';
|
|
4
4
|
import { Color } from '../../color';
|
|
5
5
|
import { Font, parseFont, FontStyle, FontWeight, FontVariationSettings } from './font';
|
|
6
6
|
import { Background } from './background';
|
|
7
|
-
import { layout } from '../../utils';
|
|
8
7
|
import { Trace } from '../../trace';
|
|
9
8
|
import { CoreTypes } from '../../core-types';
|
|
10
9
|
import { Length, FixedLength, PercentLength } from './length-shared';
|
|
@@ -13,68 +12,7 @@ import { LinearGradient } from './linear-gradient';
|
|
|
13
12
|
import { parseCSSShadow } from './css-shadow';
|
|
14
13
|
import { transformConverter } from './css-transform';
|
|
15
14
|
import { ClipPathFunction } from './clip-path-function';
|
|
16
|
-
import { parseCSSCommaSeparatedListOfValues } from './css-utils';
|
|
17
|
-
function equalsCommon(a, b) {
|
|
18
|
-
if (a == 'auto' || isCssWideKeyword(a)) {
|
|
19
|
-
return b == 'auto' || isCssWideKeyword(b);
|
|
20
|
-
}
|
|
21
|
-
if (b == 'auto' || isCssWideKeyword(b)) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
if (typeof a === 'number') {
|
|
25
|
-
if (typeof b === 'number') {
|
|
26
|
-
return a == b;
|
|
27
|
-
}
|
|
28
|
-
if (!b) {
|
|
29
|
-
return false;
|
|
30
|
-
}
|
|
31
|
-
return b.unit == 'dip' && a == b.value;
|
|
32
|
-
}
|
|
33
|
-
if (typeof b === 'number') {
|
|
34
|
-
return a ? a.unit == 'dip' && a.value == b : false;
|
|
35
|
-
}
|
|
36
|
-
if (!a || !b) {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
return a.value == b.value && a.unit == b.unit;
|
|
40
|
-
}
|
|
41
|
-
function convertToStringCommon(length) {
|
|
42
|
-
if (length == 'auto' || isCssWideKeyword(length)) {
|
|
43
|
-
return 'auto';
|
|
44
|
-
}
|
|
45
|
-
if (typeof length === 'number') {
|
|
46
|
-
return length.toString();
|
|
47
|
-
}
|
|
48
|
-
let val = length.value;
|
|
49
|
-
if (length.unit === '%') {
|
|
50
|
-
val *= 100;
|
|
51
|
-
}
|
|
52
|
-
return val + length.unit;
|
|
53
|
-
}
|
|
54
|
-
function toDevicePixelsCommon(length, auto = Number.NaN, parentAvailableWidth = Number.NaN) {
|
|
55
|
-
if (length == 'auto' || isCssWideKeyword(length)) {
|
|
56
|
-
return auto;
|
|
57
|
-
}
|
|
58
|
-
if (typeof length === 'number') {
|
|
59
|
-
return layout.round(layout.toDevicePixels(length));
|
|
60
|
-
}
|
|
61
|
-
if (!length) {
|
|
62
|
-
return auto;
|
|
63
|
-
}
|
|
64
|
-
// @ts-ignore
|
|
65
|
-
switch (length.unit) {
|
|
66
|
-
case 'px':
|
|
67
|
-
// @ts-ignore
|
|
68
|
-
return layout.round(length.value);
|
|
69
|
-
case '%':
|
|
70
|
-
// @ts-ignore
|
|
71
|
-
return layout.round(parentAvailableWidth * length.value);
|
|
72
|
-
case 'dip':
|
|
73
|
-
default:
|
|
74
|
-
// @ts-ignore
|
|
75
|
-
return layout.round(layout.toDevicePixels(length.value));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
15
|
+
import { parseCSSCommaSeparatedListOfValues, splitOnTopLevelSpacesAndCommas } from './css-utils';
|
|
78
16
|
function isNonNegativeFiniteNumber(value) {
|
|
79
17
|
return isFinite(value) && !isNaN(value) && value >= 0;
|
|
80
18
|
}
|
|
@@ -104,7 +42,9 @@ function parseClipPath(value) {
|
|
|
104
42
|
}
|
|
105
43
|
}
|
|
106
44
|
function parseShorthandPositioning(value) {
|
|
107
|
-
|
|
45
|
+
return positioningFromParts(value.split(/[ ,]+/), value);
|
|
46
|
+
}
|
|
47
|
+
function positioningFromParts(arr, value) {
|
|
108
48
|
let top;
|
|
109
49
|
let right;
|
|
110
50
|
let bottom;
|
|
@@ -143,16 +83,31 @@ function parseShorthandPositioning(value) {
|
|
|
143
83
|
left: left,
|
|
144
84
|
};
|
|
145
85
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
86
|
+
function parseShorthandGap(value) {
|
|
87
|
+
const arr = value.split(/[ ,]+/);
|
|
88
|
+
let row;
|
|
89
|
+
let col;
|
|
90
|
+
if (arr.length === 1) {
|
|
91
|
+
row = arr[0];
|
|
92
|
+
col = arr[0];
|
|
93
|
+
}
|
|
94
|
+
else if (arr.length === 2) {
|
|
95
|
+
row = arr[0];
|
|
96
|
+
col = arr[1];
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
throw new Error('Expected 1 or 2 parameters. Actual: ' + value);
|
|
154
100
|
}
|
|
155
|
-
return
|
|
101
|
+
return {
|
|
102
|
+
row,
|
|
103
|
+
col,
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function parseBorderColorPositioning(value) {
|
|
107
|
+
// Colors can be functions with spaces and commas in their arguments
|
|
108
|
+
// (`rgb(0, 0, 0)`, `color-mix(in srgb, red 35%, blue)`), so only
|
|
109
|
+
// top-level separators delimit the sides.
|
|
110
|
+
return positioningFromParts(splitOnTopLevelSpacesAndCommas(value.trim()), value);
|
|
156
111
|
}
|
|
157
112
|
function convertToBackgrounds(value) {
|
|
158
113
|
if (typeof value === 'string') {
|
|
@@ -224,6 +179,29 @@ function convertToPaddings(value) {
|
|
|
224
179
|
];
|
|
225
180
|
}
|
|
226
181
|
}
|
|
182
|
+
function convertToGaps(value) {
|
|
183
|
+
let rowGap;
|
|
184
|
+
let colGap;
|
|
185
|
+
if (typeof value === 'string' && value !== 'auto') {
|
|
186
|
+
if (value.length) {
|
|
187
|
+
const gaps = parseShorthandGap(value);
|
|
188
|
+
rowGap = Length.parse(gaps.row);
|
|
189
|
+
colGap = Length.parse(gaps.col);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
rowGap = 0;
|
|
193
|
+
colGap = 0;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
rowGap = value;
|
|
198
|
+
colGap = value;
|
|
199
|
+
}
|
|
200
|
+
return [
|
|
201
|
+
[rowGapProperty, rowGap],
|
|
202
|
+
[columnGapProperty, colGap],
|
|
203
|
+
];
|
|
204
|
+
}
|
|
227
205
|
function convertToTransform(value) {
|
|
228
206
|
if (value === unsetValue) {
|
|
229
207
|
value = 'none';
|
|
@@ -243,7 +221,7 @@ export const minWidthProperty = new CssProperty({
|
|
|
243
221
|
name: 'minWidth',
|
|
244
222
|
cssName: 'min-width',
|
|
245
223
|
defaultValue: CoreTypes.zeroLength,
|
|
246
|
-
affectsLayout:
|
|
224
|
+
affectsLayout: __APPLE__,
|
|
247
225
|
equalityComparer: Length.equals,
|
|
248
226
|
valueChanged: (target, oldValue, newValue) => {
|
|
249
227
|
const view = target.viewRef.get();
|
|
@@ -261,7 +239,7 @@ export const minHeightProperty = new CssProperty({
|
|
|
261
239
|
name: 'minHeight',
|
|
262
240
|
cssName: 'min-height',
|
|
263
241
|
defaultValue: CoreTypes.zeroLength,
|
|
264
|
-
affectsLayout:
|
|
242
|
+
affectsLayout: __APPLE__,
|
|
265
243
|
equalityComparer: Length.equals,
|
|
266
244
|
valueChanged: (target, oldValue, newValue) => {
|
|
267
245
|
const view = target.viewRef.get();
|
|
@@ -283,7 +261,7 @@ export const widthProperty = new CssAnimationProperty({
|
|
|
283
261
|
// TODO: CSSAnimationProperty was needed for keyframe (copying other impls), but `affectsLayout` does not exist
|
|
284
262
|
// on the animation property, so fake it here. x_x
|
|
285
263
|
valueChanged: (target, oldValue, newValue) => {
|
|
286
|
-
if (
|
|
264
|
+
if (__APPLE__) {
|
|
287
265
|
const view = target.viewRef.get();
|
|
288
266
|
if (view) {
|
|
289
267
|
view.requestLayout();
|
|
@@ -301,7 +279,7 @@ export const heightProperty = new CssAnimationProperty({
|
|
|
301
279
|
// TODO: CSSAnimationProperty was needed for keyframe (copying other impls), but `affectsLayout` does not exist
|
|
302
280
|
// on the animation property, so fake it here. -_-
|
|
303
281
|
valueChanged: (target, oldValue, newValue) => {
|
|
304
|
-
if (
|
|
282
|
+
if (__APPLE__) {
|
|
305
283
|
const view = target.viewRef.get();
|
|
306
284
|
if (view) {
|
|
307
285
|
view.requestLayout();
|
|
@@ -311,6 +289,30 @@ export const heightProperty = new CssAnimationProperty({
|
|
|
311
289
|
valueConverter: PercentLength.parse,
|
|
312
290
|
});
|
|
313
291
|
heightProperty.register(Style);
|
|
292
|
+
export const maxWidthProperty = new CssProperty({
|
|
293
|
+
name: 'maxWidth',
|
|
294
|
+
cssName: 'max-width',
|
|
295
|
+
// 'auto' means unconstrained (no maximum).
|
|
296
|
+
defaultValue: 'auto',
|
|
297
|
+
affectsLayout: global.isIOS,
|
|
298
|
+
equalityComparer: Length.equals,
|
|
299
|
+
// The effective pixel value is resolved at measure time in
|
|
300
|
+
// View._updateEffectiveLayoutValues (percent needs the parent size), so we
|
|
301
|
+
// only need to trigger a relayout here. On iOS that is done via affectsLayout;
|
|
302
|
+
// on Android the native setNative handler applies it and re-measures.
|
|
303
|
+
valueConverter: PercentLength.parse,
|
|
304
|
+
});
|
|
305
|
+
maxWidthProperty.register(Style);
|
|
306
|
+
export const maxHeightProperty = new CssProperty({
|
|
307
|
+
name: 'maxHeight',
|
|
308
|
+
cssName: 'max-height',
|
|
309
|
+
// 'auto' means unconstrained (no maximum).
|
|
310
|
+
defaultValue: 'auto',
|
|
311
|
+
affectsLayout: global.isIOS,
|
|
312
|
+
equalityComparer: Length.equals,
|
|
313
|
+
valueConverter: PercentLength.parse,
|
|
314
|
+
});
|
|
315
|
+
maxHeightProperty.register(Style);
|
|
314
316
|
const marginProperty = new ShorthandProperty({
|
|
315
317
|
name: 'margin',
|
|
316
318
|
cssName: 'margin',
|
|
@@ -327,7 +329,7 @@ export const marginLeftProperty = new CssProperty({
|
|
|
327
329
|
name: 'marginLeft',
|
|
328
330
|
cssName: 'margin-left',
|
|
329
331
|
defaultValue: CoreTypes.zeroLength,
|
|
330
|
-
affectsLayout:
|
|
332
|
+
affectsLayout: __APPLE__,
|
|
331
333
|
equalityComparer: Length.equals,
|
|
332
334
|
valueConverter: PercentLength.parse,
|
|
333
335
|
});
|
|
@@ -336,7 +338,7 @@ export const marginRightProperty = new CssProperty({
|
|
|
336
338
|
name: 'marginRight',
|
|
337
339
|
cssName: 'margin-right',
|
|
338
340
|
defaultValue: CoreTypes.zeroLength,
|
|
339
|
-
affectsLayout:
|
|
341
|
+
affectsLayout: __APPLE__,
|
|
340
342
|
equalityComparer: Length.equals,
|
|
341
343
|
valueConverter: PercentLength.parse,
|
|
342
344
|
});
|
|
@@ -345,7 +347,7 @@ export const marginTopProperty = new CssProperty({
|
|
|
345
347
|
name: 'marginTop',
|
|
346
348
|
cssName: 'margin-top',
|
|
347
349
|
defaultValue: CoreTypes.zeroLength,
|
|
348
|
-
affectsLayout:
|
|
350
|
+
affectsLayout: __APPLE__,
|
|
349
351
|
equalityComparer: Length.equals,
|
|
350
352
|
valueConverter: PercentLength.parse,
|
|
351
353
|
});
|
|
@@ -354,11 +356,16 @@ export const marginBottomProperty = new CssProperty({
|
|
|
354
356
|
name: 'marginBottom',
|
|
355
357
|
cssName: 'margin-bottom',
|
|
356
358
|
defaultValue: CoreTypes.zeroLength,
|
|
357
|
-
affectsLayout:
|
|
359
|
+
affectsLayout: __APPLE__,
|
|
358
360
|
equalityComparer: Length.equals,
|
|
359
361
|
valueConverter: PercentLength.parse,
|
|
360
362
|
});
|
|
361
363
|
marginBottomProperty.register(Style);
|
|
364
|
+
export const paddingInternalProperty = new CssProperty({
|
|
365
|
+
name: 'paddingInternal',
|
|
366
|
+
cssName: '_paddingInternal',
|
|
367
|
+
});
|
|
368
|
+
paddingInternalProperty.register(Style);
|
|
362
369
|
const paddingProperty = new ShorthandProperty({
|
|
363
370
|
name: 'padding',
|
|
364
371
|
cssName: 'padding',
|
|
@@ -375,12 +382,13 @@ export const paddingLeftProperty = new CssProperty({
|
|
|
375
382
|
name: 'paddingLeft',
|
|
376
383
|
cssName: 'padding-left',
|
|
377
384
|
defaultValue: CoreTypes.zeroLength,
|
|
378
|
-
affectsLayout:
|
|
385
|
+
affectsLayout: __APPLE__,
|
|
379
386
|
equalityComparer: Length.equals,
|
|
380
387
|
valueChanged: (target, oldValue, newValue) => {
|
|
381
388
|
const view = target.viewRef.get();
|
|
382
389
|
if (view) {
|
|
383
|
-
view.effectivePaddingLeft = Length.toDevicePixels(newValue, 0);
|
|
390
|
+
view.effectivePaddingLeft = paddingLeftProperty.isSet(target) ? Length.toDevicePixels(newValue, 0) : null;
|
|
391
|
+
target.paddingInternal = view.getEffectivePaddingShorthand();
|
|
384
392
|
}
|
|
385
393
|
else {
|
|
386
394
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
@@ -393,12 +401,13 @@ export const paddingRightProperty = new CssProperty({
|
|
|
393
401
|
name: 'paddingRight',
|
|
394
402
|
cssName: 'padding-right',
|
|
395
403
|
defaultValue: CoreTypes.zeroLength,
|
|
396
|
-
affectsLayout:
|
|
404
|
+
affectsLayout: __APPLE__,
|
|
397
405
|
equalityComparer: Length.equals,
|
|
398
406
|
valueChanged: (target, oldValue, newValue) => {
|
|
399
407
|
const view = target.viewRef.get();
|
|
400
408
|
if (view) {
|
|
401
|
-
view.effectivePaddingRight = Length.toDevicePixels(newValue, 0);
|
|
409
|
+
view.effectivePaddingRight = paddingRightProperty.isSet(target) ? Length.toDevicePixels(newValue, 0) : null;
|
|
410
|
+
target.paddingInternal = view.getEffectivePaddingShorthand();
|
|
402
411
|
}
|
|
403
412
|
else {
|
|
404
413
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
@@ -411,12 +420,13 @@ export const paddingTopProperty = new CssProperty({
|
|
|
411
420
|
name: 'paddingTop',
|
|
412
421
|
cssName: 'padding-top',
|
|
413
422
|
defaultValue: CoreTypes.zeroLength,
|
|
414
|
-
affectsLayout:
|
|
423
|
+
affectsLayout: __APPLE__,
|
|
415
424
|
equalityComparer: Length.equals,
|
|
416
425
|
valueChanged: (target, oldValue, newValue) => {
|
|
417
426
|
const view = target.viewRef.get();
|
|
418
427
|
if (view) {
|
|
419
|
-
view.effectivePaddingTop = Length.toDevicePixels(newValue, 0);
|
|
428
|
+
view.effectivePaddingTop = paddingTopProperty.isSet(target) ? Length.toDevicePixels(newValue, 0) : null;
|
|
429
|
+
target.paddingInternal = view.getEffectivePaddingShorthand();
|
|
420
430
|
}
|
|
421
431
|
else {
|
|
422
432
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
@@ -429,12 +439,13 @@ export const paddingBottomProperty = new CssProperty({
|
|
|
429
439
|
name: 'paddingBottom',
|
|
430
440
|
cssName: 'padding-bottom',
|
|
431
441
|
defaultValue: CoreTypes.zeroLength,
|
|
432
|
-
affectsLayout:
|
|
442
|
+
affectsLayout: __APPLE__,
|
|
433
443
|
equalityComparer: Length.equals,
|
|
434
444
|
valueChanged: (target, oldValue, newValue) => {
|
|
435
445
|
const view = target.viewRef.get();
|
|
436
446
|
if (view) {
|
|
437
|
-
view.effectivePaddingBottom = Length.toDevicePixels(newValue, 0);
|
|
447
|
+
view.effectivePaddingBottom = paddingBottomProperty.isSet(target) ? Length.toDevicePixels(newValue, 0) : null;
|
|
448
|
+
target.paddingInternal = view.getEffectivePaddingShorthand();
|
|
438
449
|
}
|
|
439
450
|
else {
|
|
440
451
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
@@ -443,11 +454,59 @@ export const paddingBottomProperty = new CssProperty({
|
|
|
443
454
|
valueConverter: Length.parse,
|
|
444
455
|
});
|
|
445
456
|
paddingBottomProperty.register(Style);
|
|
457
|
+
const gapProperty = new ShorthandProperty({
|
|
458
|
+
name: 'gap',
|
|
459
|
+
cssName: 'gap',
|
|
460
|
+
getter: function () {
|
|
461
|
+
if (Length.equals(this.rowGap, this.columnGap)) {
|
|
462
|
+
return this.rowGap;
|
|
463
|
+
}
|
|
464
|
+
return `${Length.convertToString(this.rowGap)} ${PercentLength.convertToString(this.columnGap)}`;
|
|
465
|
+
},
|
|
466
|
+
converter: convertToGaps,
|
|
467
|
+
});
|
|
468
|
+
gapProperty.register(Style);
|
|
469
|
+
export const rowGapProperty = new CssProperty({
|
|
470
|
+
name: 'rowGap',
|
|
471
|
+
cssName: 'row-gap',
|
|
472
|
+
defaultValue: 0,
|
|
473
|
+
affectsLayout: global.isIOS,
|
|
474
|
+
equalityComparer: Length.equals,
|
|
475
|
+
valueConverter: Length.parse,
|
|
476
|
+
valueChanged: (target, oldValue, newValue) => {
|
|
477
|
+
const view = target.viewRef.get();
|
|
478
|
+
if (view) {
|
|
479
|
+
view.effectiveRowGap = Length.toDevicePixels(newValue, 0);
|
|
480
|
+
}
|
|
481
|
+
else {
|
|
482
|
+
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
});
|
|
486
|
+
rowGapProperty.register(Style);
|
|
487
|
+
export const columnGapProperty = new CssProperty({
|
|
488
|
+
name: 'columnGap',
|
|
489
|
+
cssName: 'column-gap',
|
|
490
|
+
defaultValue: 0,
|
|
491
|
+
affectsLayout: global.isIOS,
|
|
492
|
+
equalityComparer: Length.equals,
|
|
493
|
+
valueConverter: Length.parse,
|
|
494
|
+
valueChanged: (target, oldValue, newValue) => {
|
|
495
|
+
const view = target.viewRef.get();
|
|
496
|
+
if (view) {
|
|
497
|
+
view.effectiveColumnGap = Length.toDevicePixels(newValue, 0);
|
|
498
|
+
}
|
|
499
|
+
else {
|
|
500
|
+
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
});
|
|
504
|
+
columnGapProperty.register(Style);
|
|
446
505
|
export const horizontalAlignmentProperty = new CssProperty({
|
|
447
506
|
name: 'horizontalAlignment',
|
|
448
507
|
cssName: 'horizontal-align',
|
|
449
508
|
defaultValue: CoreTypes.HorizontalAlignment.stretch,
|
|
450
|
-
affectsLayout:
|
|
509
|
+
affectsLayout: __APPLE__,
|
|
451
510
|
valueConverter: CoreTypes.HorizontalAlignment.parse,
|
|
452
511
|
});
|
|
453
512
|
horizontalAlignmentProperty.register(Style);
|
|
@@ -455,7 +514,7 @@ export const verticalAlignmentProperty = new CssProperty({
|
|
|
455
514
|
name: 'verticalAlignment',
|
|
456
515
|
cssName: 'vertical-align',
|
|
457
516
|
defaultValue: CoreTypes.VerticalAlignmentText.stretch,
|
|
458
|
-
affectsLayout:
|
|
517
|
+
affectsLayout: __APPLE__,
|
|
459
518
|
valueConverter: CoreTypes.VerticalAlignmentText.parse,
|
|
460
519
|
});
|
|
461
520
|
verticalAlignmentProperty.register(Style);
|
|
@@ -730,7 +789,7 @@ export const borderTopWidthProperty = new CssProperty({
|
|
|
730
789
|
name: 'borderTopWidth',
|
|
731
790
|
cssName: 'border-top-width',
|
|
732
791
|
defaultValue: CoreTypes.zeroLength,
|
|
733
|
-
affectsLayout:
|
|
792
|
+
affectsLayout: __APPLE__,
|
|
734
793
|
equalityComparer: Length.equals,
|
|
735
794
|
valueChanged: (target, oldValue, newValue) => {
|
|
736
795
|
const value = Length.toDevicePixels(newValue, 0);
|
|
@@ -753,7 +812,7 @@ export const borderRightWidthProperty = new CssProperty({
|
|
|
753
812
|
name: 'borderRightWidth',
|
|
754
813
|
cssName: 'border-right-width',
|
|
755
814
|
defaultValue: CoreTypes.zeroLength,
|
|
756
|
-
affectsLayout:
|
|
815
|
+
affectsLayout: __APPLE__,
|
|
757
816
|
equalityComparer: Length.equals,
|
|
758
817
|
valueChanged: (target, oldValue, newValue) => {
|
|
759
818
|
const value = Length.toDevicePixels(newValue, 0);
|
|
@@ -776,7 +835,7 @@ export const borderBottomWidthProperty = new CssProperty({
|
|
|
776
835
|
name: 'borderBottomWidth',
|
|
777
836
|
cssName: 'border-bottom-width',
|
|
778
837
|
defaultValue: CoreTypes.zeroLength,
|
|
779
|
-
affectsLayout:
|
|
838
|
+
affectsLayout: __APPLE__,
|
|
780
839
|
equalityComparer: Length.equals,
|
|
781
840
|
valueChanged: (target, oldValue, newValue) => {
|
|
782
841
|
const value = Length.toDevicePixels(newValue, 0);
|
|
@@ -799,7 +858,7 @@ export const borderLeftWidthProperty = new CssProperty({
|
|
|
799
858
|
name: 'borderLeftWidth',
|
|
800
859
|
cssName: 'border-left-width',
|
|
801
860
|
defaultValue: CoreTypes.zeroLength,
|
|
802
|
-
affectsLayout:
|
|
861
|
+
affectsLayout: __APPLE__,
|
|
803
862
|
equalityComparer: Length.equals,
|
|
804
863
|
valueChanged: (target, oldValue, newValue) => {
|
|
805
864
|
const value = Length.toDevicePixels(newValue, 0);
|
|
@@ -853,7 +912,7 @@ export const borderTopLeftRadiusProperty = new CssProperty({
|
|
|
853
912
|
name: 'borderTopLeftRadius',
|
|
854
913
|
cssName: 'border-top-left-radius',
|
|
855
914
|
defaultValue: 0,
|
|
856
|
-
affectsLayout:
|
|
915
|
+
affectsLayout: __APPLE__,
|
|
857
916
|
valueChanged: (target, oldValue, newValue) => {
|
|
858
917
|
const value = Length.toDevicePixels(newValue, 0);
|
|
859
918
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
@@ -869,7 +928,7 @@ export const borderTopRightRadiusProperty = new CssProperty({
|
|
|
869
928
|
name: 'borderTopRightRadius',
|
|
870
929
|
cssName: 'border-top-right-radius',
|
|
871
930
|
defaultValue: 0,
|
|
872
|
-
affectsLayout:
|
|
931
|
+
affectsLayout: __APPLE__,
|
|
873
932
|
valueChanged: (target, oldValue, newValue) => {
|
|
874
933
|
const value = Length.toDevicePixels(newValue, 0);
|
|
875
934
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
@@ -885,7 +944,7 @@ export const borderBottomRightRadiusProperty = new CssProperty({
|
|
|
885
944
|
name: 'borderBottomRightRadius',
|
|
886
945
|
cssName: 'border-bottom-right-radius',
|
|
887
946
|
defaultValue: 0,
|
|
888
|
-
affectsLayout:
|
|
947
|
+
affectsLayout: __APPLE__,
|
|
889
948
|
valueChanged: (target, oldValue, newValue) => {
|
|
890
949
|
const value = Length.toDevicePixels(newValue, 0);
|
|
891
950
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
@@ -901,7 +960,7 @@ export const borderBottomLeftRadiusProperty = new CssProperty({
|
|
|
901
960
|
name: 'borderBottomLeftRadius',
|
|
902
961
|
cssName: 'border-bottom-left-radius',
|
|
903
962
|
defaultValue: 0,
|
|
904
|
-
affectsLayout:
|
|
963
|
+
affectsLayout: __APPLE__,
|
|
905
964
|
valueChanged: (target, oldValue, newValue) => {
|
|
906
965
|
const value = Length.toDevicePixels(newValue, 0);
|
|
907
966
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
@@ -913,6 +972,16 @@ export const borderBottomLeftRadiusProperty = new CssProperty({
|
|
|
913
972
|
equalityComparer: Length.equals,
|
|
914
973
|
});
|
|
915
974
|
borderBottomLeftRadiusProperty.register(Style);
|
|
975
|
+
export const cornerShapeProperty = new CssProperty({
|
|
976
|
+
name: 'cornerShape',
|
|
977
|
+
cssName: 'corner-shape',
|
|
978
|
+
defaultValue: CoreTypes.CornerShape.round,
|
|
979
|
+
valueConverter: CoreTypes.CornerShape.parse,
|
|
980
|
+
valueChanged: (target, oldValue, newValue) => {
|
|
981
|
+
target.backgroundInternal = target.backgroundInternal.withCornerShape(newValue);
|
|
982
|
+
},
|
|
983
|
+
});
|
|
984
|
+
cornerShapeProperty.register(Style);
|
|
916
985
|
const boxShadowProperty = new CssProperty({
|
|
917
986
|
name: 'boxShadow',
|
|
918
987
|
cssName: 'box-shadow',
|
|
@@ -1011,7 +1080,7 @@ fontInternalProperty.register(Style);
|
|
|
1011
1080
|
export const fontFamilyProperty = new InheritedCssProperty({
|
|
1012
1081
|
name: 'fontFamily',
|
|
1013
1082
|
cssName: 'font-family',
|
|
1014
|
-
affectsLayout:
|
|
1083
|
+
affectsLayout: __APPLE__,
|
|
1015
1084
|
valueChanged: (target, oldValue, newValue) => {
|
|
1016
1085
|
const currentFont = target.fontInternal || Font.default;
|
|
1017
1086
|
if (currentFont.fontFamily !== newValue) {
|
|
@@ -1031,7 +1100,7 @@ fontScaleInternalProperty.register(Style);
|
|
|
1031
1100
|
export const fontSizeProperty = new InheritedCssProperty({
|
|
1032
1101
|
name: 'fontSize',
|
|
1033
1102
|
cssName: 'font-size',
|
|
1034
|
-
affectsLayout:
|
|
1103
|
+
affectsLayout: __APPLE__,
|
|
1035
1104
|
valueChanged: (target, oldValue, newValue) => {
|
|
1036
1105
|
if (target.viewRef['handleFontSize'] === true) {
|
|
1037
1106
|
return;
|
|
@@ -1048,7 +1117,7 @@ fontSizeProperty.register(Style);
|
|
|
1048
1117
|
export const fontStyleProperty = new InheritedCssProperty({
|
|
1049
1118
|
name: 'fontStyle',
|
|
1050
1119
|
cssName: 'font-style',
|
|
1051
|
-
affectsLayout:
|
|
1120
|
+
affectsLayout: __APPLE__,
|
|
1052
1121
|
defaultValue: FontStyle.NORMAL,
|
|
1053
1122
|
valueConverter: FontStyle.parse,
|
|
1054
1123
|
valueChanged: (target, oldValue, newValue) => {
|
|
@@ -1063,7 +1132,7 @@ fontStyleProperty.register(Style);
|
|
|
1063
1132
|
export const fontWeightProperty = new InheritedCssProperty({
|
|
1064
1133
|
name: 'fontWeight',
|
|
1065
1134
|
cssName: 'font-weight',
|
|
1066
|
-
affectsLayout:
|
|
1135
|
+
affectsLayout: __APPLE__,
|
|
1067
1136
|
defaultValue: FontWeight.NORMAL,
|
|
1068
1137
|
valueConverter: FontWeight.parse,
|
|
1069
1138
|
valueChanged: (target, oldValue, newValue) => {
|
|
@@ -1106,7 +1175,7 @@ fontProperty.register(Style);
|
|
|
1106
1175
|
export const fontVariationSettingsProperty = new InheritedCssProperty({
|
|
1107
1176
|
name: 'fontVariationSettings',
|
|
1108
1177
|
cssName: 'font-variation-settings',
|
|
1109
|
-
affectsLayout:
|
|
1178
|
+
affectsLayout: __APPLE__,
|
|
1110
1179
|
valueChanged: (target, oldValue, newValue) => {
|
|
1111
1180
|
const currentFont = target.fontInternal || Font.default;
|
|
1112
1181
|
if (currentFont.fontVariationSettings !== newValue) {
|
|
@@ -1123,7 +1192,7 @@ export const visibilityProperty = new CssProperty({
|
|
|
1123
1192
|
name: 'visibility',
|
|
1124
1193
|
cssName: 'visibility',
|
|
1125
1194
|
defaultValue: CoreTypes.Visibility.visible,
|
|
1126
|
-
affectsLayout:
|
|
1195
|
+
affectsLayout: __APPLE__,
|
|
1127
1196
|
valueConverter: CoreTypes.Visibility.parse,
|
|
1128
1197
|
valueChanged: (target, oldValue, newValue) => {
|
|
1129
1198
|
const view = target.viewRef.get();
|