@nativescript/core 9.1.0-dev.0 → 9.1.0-next.2
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/application/application-common.d.ts +1 -3
- package/application/application-common.js +5 -44
- package/application/application-common.js.map +1 -1
- package/application/application.android.d.ts +17 -1
- package/application/application.android.js +6 -5
- package/application/application.android.js.map +1 -1
- package/application/application.d.ts +0 -9
- package/application/application.ios.d.ts +18 -2
- package/application/application.ios.js +169 -16
- package/application/application.ios.js.map +1 -1
- package/color/index.d.ts +0 -5
- package/config/config.interface.d.ts +6 -0
- package/core-types/index.d.ts +2 -2
- package/css/CSS3Parser.js +3 -2
- package/css/CSS3Parser.js.map +1 -1
- package/data/observable/index.js +37 -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 +0 -1
- package/globals/index.js +4 -1
- package/globals/index.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 +1 -0
- package/inspector_modules.js +1 -1
- package/inspector_modules.js.map +1 -1
- 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/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 +39 -10
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/index.d.ts +33 -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 +18 -2
- package/ui/core/view/view-common.js +48 -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 +98 -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 +2 -1
- package/ui/frame/frame-common.js +2 -2
- package/ui/frame/frame-common.js.map +1 -1
- package/ui/frame/frame-helper-for-android.d.ts +4 -4
- package/ui/frame/frame-helper-for-android.js +29 -11
- package/ui/frame/frame-helper-for-android.js.map +1 -1
- package/ui/frame/index.android.d.ts +6 -11
- package/ui/frame/index.android.js +46 -59
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.d.ts +12 -21
- 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.map +1 -1
- package/ui/styling/css-selector.d.ts +20 -5
- package/ui/styling/css-selector.js +134 -28
- package/ui/styling/css-selector.js.map +1 -1
- package/ui/styling/font.d.ts +0 -4
- package/ui/styling/style/index.d.ts +6 -0
- package/ui/styling/style/index.js.map +1 -1
- package/ui/styling/style-properties.d.ts +5 -0
- package/ui/styling/style-properties.js +157 -95
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/styling/style-scope.d.ts +9 -1
- package/ui/styling/style-scope.js +41 -16
- 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 +12 -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.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';
|
|
@@ -14,67 +13,6 @@ import { parseCSSShadow } from './css-shadow';
|
|
|
14
13
|
import { transformConverter } from './css-transform';
|
|
15
14
|
import { ClipPathFunction } from './clip-path-function';
|
|
16
15
|
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
|
-
}
|
|
78
16
|
function isNonNegativeFiniteNumber(value) {
|
|
79
17
|
return isFinite(value) && !isNaN(value) && value >= 0;
|
|
80
18
|
}
|
|
@@ -143,6 +81,26 @@ function parseShorthandPositioning(value) {
|
|
|
143
81
|
left: left,
|
|
144
82
|
};
|
|
145
83
|
}
|
|
84
|
+
function parseShorthandGap(value) {
|
|
85
|
+
const arr = value.split(/[ ,]+/);
|
|
86
|
+
let row;
|
|
87
|
+
let col;
|
|
88
|
+
if (arr.length === 1) {
|
|
89
|
+
row = arr[0];
|
|
90
|
+
col = arr[0];
|
|
91
|
+
}
|
|
92
|
+
else if (arr.length === 2) {
|
|
93
|
+
row = arr[0];
|
|
94
|
+
col = arr[1];
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
throw new Error('Expected 1 or 2 parameters. Actual: ' + value);
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
row,
|
|
101
|
+
col,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
146
104
|
function parseBorderColorPositioning(value) {
|
|
147
105
|
if (value.indexOf('rgb') === 0 || value.indexOf('hsl') === 0) {
|
|
148
106
|
return {
|
|
@@ -224,6 +182,29 @@ function convertToPaddings(value) {
|
|
|
224
182
|
];
|
|
225
183
|
}
|
|
226
184
|
}
|
|
185
|
+
function convertToGaps(value) {
|
|
186
|
+
let rowGap;
|
|
187
|
+
let colGap;
|
|
188
|
+
if (typeof value === 'string' && value !== 'auto') {
|
|
189
|
+
if (value.length) {
|
|
190
|
+
const gaps = parseShorthandGap(value);
|
|
191
|
+
rowGap = Length.parse(gaps.row);
|
|
192
|
+
colGap = Length.parse(gaps.col);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
rowGap = 0;
|
|
196
|
+
colGap = 0;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
rowGap = value;
|
|
201
|
+
colGap = value;
|
|
202
|
+
}
|
|
203
|
+
return [
|
|
204
|
+
[rowGapProperty, rowGap],
|
|
205
|
+
[columnGapProperty, colGap],
|
|
206
|
+
];
|
|
207
|
+
}
|
|
227
208
|
function convertToTransform(value) {
|
|
228
209
|
if (value === unsetValue) {
|
|
229
210
|
value = 'none';
|
|
@@ -243,7 +224,7 @@ export const minWidthProperty = new CssProperty({
|
|
|
243
224
|
name: 'minWidth',
|
|
244
225
|
cssName: 'min-width',
|
|
245
226
|
defaultValue: CoreTypes.zeroLength,
|
|
246
|
-
affectsLayout:
|
|
227
|
+
affectsLayout: __APPLE__,
|
|
247
228
|
equalityComparer: Length.equals,
|
|
248
229
|
valueChanged: (target, oldValue, newValue) => {
|
|
249
230
|
const view = target.viewRef.get();
|
|
@@ -261,7 +242,7 @@ export const minHeightProperty = new CssProperty({
|
|
|
261
242
|
name: 'minHeight',
|
|
262
243
|
cssName: 'min-height',
|
|
263
244
|
defaultValue: CoreTypes.zeroLength,
|
|
264
|
-
affectsLayout:
|
|
245
|
+
affectsLayout: __APPLE__,
|
|
265
246
|
equalityComparer: Length.equals,
|
|
266
247
|
valueChanged: (target, oldValue, newValue) => {
|
|
267
248
|
const view = target.viewRef.get();
|
|
@@ -283,7 +264,7 @@ export const widthProperty = new CssAnimationProperty({
|
|
|
283
264
|
// TODO: CSSAnimationProperty was needed for keyframe (copying other impls), but `affectsLayout` does not exist
|
|
284
265
|
// on the animation property, so fake it here. x_x
|
|
285
266
|
valueChanged: (target, oldValue, newValue) => {
|
|
286
|
-
if (
|
|
267
|
+
if (__APPLE__) {
|
|
287
268
|
const view = target.viewRef.get();
|
|
288
269
|
if (view) {
|
|
289
270
|
view.requestLayout();
|
|
@@ -301,7 +282,7 @@ export const heightProperty = new CssAnimationProperty({
|
|
|
301
282
|
// TODO: CSSAnimationProperty was needed for keyframe (copying other impls), but `affectsLayout` does not exist
|
|
302
283
|
// on the animation property, so fake it here. -_-
|
|
303
284
|
valueChanged: (target, oldValue, newValue) => {
|
|
304
|
-
if (
|
|
285
|
+
if (__APPLE__) {
|
|
305
286
|
const view = target.viewRef.get();
|
|
306
287
|
if (view) {
|
|
307
288
|
view.requestLayout();
|
|
@@ -311,6 +292,30 @@ export const heightProperty = new CssAnimationProperty({
|
|
|
311
292
|
valueConverter: PercentLength.parse,
|
|
312
293
|
});
|
|
313
294
|
heightProperty.register(Style);
|
|
295
|
+
export const maxWidthProperty = new CssProperty({
|
|
296
|
+
name: 'maxWidth',
|
|
297
|
+
cssName: 'max-width',
|
|
298
|
+
// 'auto' means unconstrained (no maximum).
|
|
299
|
+
defaultValue: 'auto',
|
|
300
|
+
affectsLayout: global.isIOS,
|
|
301
|
+
equalityComparer: Length.equals,
|
|
302
|
+
// The effective pixel value is resolved at measure time in
|
|
303
|
+
// View._updateEffectiveLayoutValues (percent needs the parent size), so we
|
|
304
|
+
// only need to trigger a relayout here. On iOS that is done via affectsLayout;
|
|
305
|
+
// on Android the native setNative handler applies it and re-measures.
|
|
306
|
+
valueConverter: PercentLength.parse,
|
|
307
|
+
});
|
|
308
|
+
maxWidthProperty.register(Style);
|
|
309
|
+
export const maxHeightProperty = new CssProperty({
|
|
310
|
+
name: 'maxHeight',
|
|
311
|
+
cssName: 'max-height',
|
|
312
|
+
// 'auto' means unconstrained (no maximum).
|
|
313
|
+
defaultValue: 'auto',
|
|
314
|
+
affectsLayout: global.isIOS,
|
|
315
|
+
equalityComparer: Length.equals,
|
|
316
|
+
valueConverter: PercentLength.parse,
|
|
317
|
+
});
|
|
318
|
+
maxHeightProperty.register(Style);
|
|
314
319
|
const marginProperty = new ShorthandProperty({
|
|
315
320
|
name: 'margin',
|
|
316
321
|
cssName: 'margin',
|
|
@@ -327,7 +332,7 @@ export const marginLeftProperty = new CssProperty({
|
|
|
327
332
|
name: 'marginLeft',
|
|
328
333
|
cssName: 'margin-left',
|
|
329
334
|
defaultValue: CoreTypes.zeroLength,
|
|
330
|
-
affectsLayout:
|
|
335
|
+
affectsLayout: __APPLE__,
|
|
331
336
|
equalityComparer: Length.equals,
|
|
332
337
|
valueConverter: PercentLength.parse,
|
|
333
338
|
});
|
|
@@ -336,7 +341,7 @@ export const marginRightProperty = new CssProperty({
|
|
|
336
341
|
name: 'marginRight',
|
|
337
342
|
cssName: 'margin-right',
|
|
338
343
|
defaultValue: CoreTypes.zeroLength,
|
|
339
|
-
affectsLayout:
|
|
344
|
+
affectsLayout: __APPLE__,
|
|
340
345
|
equalityComparer: Length.equals,
|
|
341
346
|
valueConverter: PercentLength.parse,
|
|
342
347
|
});
|
|
@@ -345,7 +350,7 @@ export const marginTopProperty = new CssProperty({
|
|
|
345
350
|
name: 'marginTop',
|
|
346
351
|
cssName: 'margin-top',
|
|
347
352
|
defaultValue: CoreTypes.zeroLength,
|
|
348
|
-
affectsLayout:
|
|
353
|
+
affectsLayout: __APPLE__,
|
|
349
354
|
equalityComparer: Length.equals,
|
|
350
355
|
valueConverter: PercentLength.parse,
|
|
351
356
|
});
|
|
@@ -354,11 +359,16 @@ export const marginBottomProperty = new CssProperty({
|
|
|
354
359
|
name: 'marginBottom',
|
|
355
360
|
cssName: 'margin-bottom',
|
|
356
361
|
defaultValue: CoreTypes.zeroLength,
|
|
357
|
-
affectsLayout:
|
|
362
|
+
affectsLayout: __APPLE__,
|
|
358
363
|
equalityComparer: Length.equals,
|
|
359
364
|
valueConverter: PercentLength.parse,
|
|
360
365
|
});
|
|
361
366
|
marginBottomProperty.register(Style);
|
|
367
|
+
export const paddingInternalProperty = new CssProperty({
|
|
368
|
+
name: 'paddingInternal',
|
|
369
|
+
cssName: '_paddingInternal',
|
|
370
|
+
});
|
|
371
|
+
paddingInternalProperty.register(Style);
|
|
362
372
|
const paddingProperty = new ShorthandProperty({
|
|
363
373
|
name: 'padding',
|
|
364
374
|
cssName: 'padding',
|
|
@@ -375,12 +385,13 @@ export const paddingLeftProperty = new CssProperty({
|
|
|
375
385
|
name: 'paddingLeft',
|
|
376
386
|
cssName: 'padding-left',
|
|
377
387
|
defaultValue: CoreTypes.zeroLength,
|
|
378
|
-
affectsLayout:
|
|
388
|
+
affectsLayout: __APPLE__,
|
|
379
389
|
equalityComparer: Length.equals,
|
|
380
390
|
valueChanged: (target, oldValue, newValue) => {
|
|
381
391
|
const view = target.viewRef.get();
|
|
382
392
|
if (view) {
|
|
383
|
-
view.effectivePaddingLeft = Length.toDevicePixels(newValue, 0);
|
|
393
|
+
view.effectivePaddingLeft = paddingLeftProperty.isSet(target) ? Length.toDevicePixels(newValue, 0) : null;
|
|
394
|
+
target.paddingInternal = view.getEffectivePaddingShorthand();
|
|
384
395
|
}
|
|
385
396
|
else {
|
|
386
397
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
@@ -393,12 +404,13 @@ export const paddingRightProperty = new CssProperty({
|
|
|
393
404
|
name: 'paddingRight',
|
|
394
405
|
cssName: 'padding-right',
|
|
395
406
|
defaultValue: CoreTypes.zeroLength,
|
|
396
|
-
affectsLayout:
|
|
407
|
+
affectsLayout: __APPLE__,
|
|
397
408
|
equalityComparer: Length.equals,
|
|
398
409
|
valueChanged: (target, oldValue, newValue) => {
|
|
399
410
|
const view = target.viewRef.get();
|
|
400
411
|
if (view) {
|
|
401
|
-
view.effectivePaddingRight = Length.toDevicePixels(newValue, 0);
|
|
412
|
+
view.effectivePaddingRight = paddingRightProperty.isSet(target) ? Length.toDevicePixels(newValue, 0) : null;
|
|
413
|
+
target.paddingInternal = view.getEffectivePaddingShorthand();
|
|
402
414
|
}
|
|
403
415
|
else {
|
|
404
416
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
@@ -411,12 +423,13 @@ export const paddingTopProperty = new CssProperty({
|
|
|
411
423
|
name: 'paddingTop',
|
|
412
424
|
cssName: 'padding-top',
|
|
413
425
|
defaultValue: CoreTypes.zeroLength,
|
|
414
|
-
affectsLayout:
|
|
426
|
+
affectsLayout: __APPLE__,
|
|
415
427
|
equalityComparer: Length.equals,
|
|
416
428
|
valueChanged: (target, oldValue, newValue) => {
|
|
417
429
|
const view = target.viewRef.get();
|
|
418
430
|
if (view) {
|
|
419
|
-
view.effectivePaddingTop = Length.toDevicePixels(newValue, 0);
|
|
431
|
+
view.effectivePaddingTop = paddingTopProperty.isSet(target) ? Length.toDevicePixels(newValue, 0) : null;
|
|
432
|
+
target.paddingInternal = view.getEffectivePaddingShorthand();
|
|
420
433
|
}
|
|
421
434
|
else {
|
|
422
435
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
@@ -429,12 +442,13 @@ export const paddingBottomProperty = new CssProperty({
|
|
|
429
442
|
name: 'paddingBottom',
|
|
430
443
|
cssName: 'padding-bottom',
|
|
431
444
|
defaultValue: CoreTypes.zeroLength,
|
|
432
|
-
affectsLayout:
|
|
445
|
+
affectsLayout: __APPLE__,
|
|
433
446
|
equalityComparer: Length.equals,
|
|
434
447
|
valueChanged: (target, oldValue, newValue) => {
|
|
435
448
|
const view = target.viewRef.get();
|
|
436
449
|
if (view) {
|
|
437
|
-
view.effectivePaddingBottom = Length.toDevicePixels(newValue, 0);
|
|
450
|
+
view.effectivePaddingBottom = paddingBottomProperty.isSet(target) ? Length.toDevicePixels(newValue, 0) : null;
|
|
451
|
+
target.paddingInternal = view.getEffectivePaddingShorthand();
|
|
438
452
|
}
|
|
439
453
|
else {
|
|
440
454
|
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
@@ -443,11 +457,59 @@ export const paddingBottomProperty = new CssProperty({
|
|
|
443
457
|
valueConverter: Length.parse,
|
|
444
458
|
});
|
|
445
459
|
paddingBottomProperty.register(Style);
|
|
460
|
+
const gapProperty = new ShorthandProperty({
|
|
461
|
+
name: 'gap',
|
|
462
|
+
cssName: 'gap',
|
|
463
|
+
getter: function () {
|
|
464
|
+
if (Length.equals(this.rowGap, this.columnGap)) {
|
|
465
|
+
return this.rowGap;
|
|
466
|
+
}
|
|
467
|
+
return `${Length.convertToString(this.rowGap)} ${PercentLength.convertToString(this.columnGap)}`;
|
|
468
|
+
},
|
|
469
|
+
converter: convertToGaps,
|
|
470
|
+
});
|
|
471
|
+
gapProperty.register(Style);
|
|
472
|
+
export const rowGapProperty = new CssProperty({
|
|
473
|
+
name: 'rowGap',
|
|
474
|
+
cssName: 'row-gap',
|
|
475
|
+
defaultValue: 0,
|
|
476
|
+
affectsLayout: global.isIOS,
|
|
477
|
+
equalityComparer: Length.equals,
|
|
478
|
+
valueConverter: Length.parse,
|
|
479
|
+
valueChanged: (target, oldValue, newValue) => {
|
|
480
|
+
const view = target.viewRef.get();
|
|
481
|
+
if (view) {
|
|
482
|
+
view.effectiveRowGap = Length.toDevicePixels(newValue, 0);
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
});
|
|
489
|
+
rowGapProperty.register(Style);
|
|
490
|
+
export const columnGapProperty = new CssProperty({
|
|
491
|
+
name: 'columnGap',
|
|
492
|
+
cssName: 'column-gap',
|
|
493
|
+
defaultValue: 0,
|
|
494
|
+
affectsLayout: global.isIOS,
|
|
495
|
+
equalityComparer: Length.equals,
|
|
496
|
+
valueConverter: Length.parse,
|
|
497
|
+
valueChanged: (target, oldValue, newValue) => {
|
|
498
|
+
const view = target.viewRef.get();
|
|
499
|
+
if (view) {
|
|
500
|
+
view.effectiveColumnGap = Length.toDevicePixels(newValue, 0);
|
|
501
|
+
}
|
|
502
|
+
else {
|
|
503
|
+
Trace.write(`${newValue} not set to view's property because ".viewRef" is cleared`, Trace.categories.Style, Trace.messageType.warn);
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
});
|
|
507
|
+
columnGapProperty.register(Style);
|
|
446
508
|
export const horizontalAlignmentProperty = new CssProperty({
|
|
447
509
|
name: 'horizontalAlignment',
|
|
448
510
|
cssName: 'horizontal-align',
|
|
449
511
|
defaultValue: CoreTypes.HorizontalAlignment.stretch,
|
|
450
|
-
affectsLayout:
|
|
512
|
+
affectsLayout: __APPLE__,
|
|
451
513
|
valueConverter: CoreTypes.HorizontalAlignment.parse,
|
|
452
514
|
});
|
|
453
515
|
horizontalAlignmentProperty.register(Style);
|
|
@@ -455,7 +517,7 @@ export const verticalAlignmentProperty = new CssProperty({
|
|
|
455
517
|
name: 'verticalAlignment',
|
|
456
518
|
cssName: 'vertical-align',
|
|
457
519
|
defaultValue: CoreTypes.VerticalAlignmentText.stretch,
|
|
458
|
-
affectsLayout:
|
|
520
|
+
affectsLayout: __APPLE__,
|
|
459
521
|
valueConverter: CoreTypes.VerticalAlignmentText.parse,
|
|
460
522
|
});
|
|
461
523
|
verticalAlignmentProperty.register(Style);
|
|
@@ -730,7 +792,7 @@ export const borderTopWidthProperty = new CssProperty({
|
|
|
730
792
|
name: 'borderTopWidth',
|
|
731
793
|
cssName: 'border-top-width',
|
|
732
794
|
defaultValue: CoreTypes.zeroLength,
|
|
733
|
-
affectsLayout:
|
|
795
|
+
affectsLayout: __APPLE__,
|
|
734
796
|
equalityComparer: Length.equals,
|
|
735
797
|
valueChanged: (target, oldValue, newValue) => {
|
|
736
798
|
const value = Length.toDevicePixels(newValue, 0);
|
|
@@ -753,7 +815,7 @@ export const borderRightWidthProperty = new CssProperty({
|
|
|
753
815
|
name: 'borderRightWidth',
|
|
754
816
|
cssName: 'border-right-width',
|
|
755
817
|
defaultValue: CoreTypes.zeroLength,
|
|
756
|
-
affectsLayout:
|
|
818
|
+
affectsLayout: __APPLE__,
|
|
757
819
|
equalityComparer: Length.equals,
|
|
758
820
|
valueChanged: (target, oldValue, newValue) => {
|
|
759
821
|
const value = Length.toDevicePixels(newValue, 0);
|
|
@@ -776,7 +838,7 @@ export const borderBottomWidthProperty = new CssProperty({
|
|
|
776
838
|
name: 'borderBottomWidth',
|
|
777
839
|
cssName: 'border-bottom-width',
|
|
778
840
|
defaultValue: CoreTypes.zeroLength,
|
|
779
|
-
affectsLayout:
|
|
841
|
+
affectsLayout: __APPLE__,
|
|
780
842
|
equalityComparer: Length.equals,
|
|
781
843
|
valueChanged: (target, oldValue, newValue) => {
|
|
782
844
|
const value = Length.toDevicePixels(newValue, 0);
|
|
@@ -799,7 +861,7 @@ export const borderLeftWidthProperty = new CssProperty({
|
|
|
799
861
|
name: 'borderLeftWidth',
|
|
800
862
|
cssName: 'border-left-width',
|
|
801
863
|
defaultValue: CoreTypes.zeroLength,
|
|
802
|
-
affectsLayout:
|
|
864
|
+
affectsLayout: __APPLE__,
|
|
803
865
|
equalityComparer: Length.equals,
|
|
804
866
|
valueChanged: (target, oldValue, newValue) => {
|
|
805
867
|
const value = Length.toDevicePixels(newValue, 0);
|
|
@@ -853,7 +915,7 @@ export const borderTopLeftRadiusProperty = new CssProperty({
|
|
|
853
915
|
name: 'borderTopLeftRadius',
|
|
854
916
|
cssName: 'border-top-left-radius',
|
|
855
917
|
defaultValue: 0,
|
|
856
|
-
affectsLayout:
|
|
918
|
+
affectsLayout: __APPLE__,
|
|
857
919
|
valueChanged: (target, oldValue, newValue) => {
|
|
858
920
|
const value = Length.toDevicePixels(newValue, 0);
|
|
859
921
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
@@ -869,7 +931,7 @@ export const borderTopRightRadiusProperty = new CssProperty({
|
|
|
869
931
|
name: 'borderTopRightRadius',
|
|
870
932
|
cssName: 'border-top-right-radius',
|
|
871
933
|
defaultValue: 0,
|
|
872
|
-
affectsLayout:
|
|
934
|
+
affectsLayout: __APPLE__,
|
|
873
935
|
valueChanged: (target, oldValue, newValue) => {
|
|
874
936
|
const value = Length.toDevicePixels(newValue, 0);
|
|
875
937
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
@@ -885,7 +947,7 @@ export const borderBottomRightRadiusProperty = new CssProperty({
|
|
|
885
947
|
name: 'borderBottomRightRadius',
|
|
886
948
|
cssName: 'border-bottom-right-radius',
|
|
887
949
|
defaultValue: 0,
|
|
888
|
-
affectsLayout:
|
|
950
|
+
affectsLayout: __APPLE__,
|
|
889
951
|
valueChanged: (target, oldValue, newValue) => {
|
|
890
952
|
const value = Length.toDevicePixels(newValue, 0);
|
|
891
953
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
@@ -901,7 +963,7 @@ export const borderBottomLeftRadiusProperty = new CssProperty({
|
|
|
901
963
|
name: 'borderBottomLeftRadius',
|
|
902
964
|
cssName: 'border-bottom-left-radius',
|
|
903
965
|
defaultValue: 0,
|
|
904
|
-
affectsLayout:
|
|
966
|
+
affectsLayout: __APPLE__,
|
|
905
967
|
valueChanged: (target, oldValue, newValue) => {
|
|
906
968
|
const value = Length.toDevicePixels(newValue, 0);
|
|
907
969
|
if (!isNonNegativeFiniteNumber(value)) {
|
|
@@ -1011,7 +1073,7 @@ fontInternalProperty.register(Style);
|
|
|
1011
1073
|
export const fontFamilyProperty = new InheritedCssProperty({
|
|
1012
1074
|
name: 'fontFamily',
|
|
1013
1075
|
cssName: 'font-family',
|
|
1014
|
-
affectsLayout:
|
|
1076
|
+
affectsLayout: __APPLE__,
|
|
1015
1077
|
valueChanged: (target, oldValue, newValue) => {
|
|
1016
1078
|
const currentFont = target.fontInternal || Font.default;
|
|
1017
1079
|
if (currentFont.fontFamily !== newValue) {
|
|
@@ -1031,7 +1093,7 @@ fontScaleInternalProperty.register(Style);
|
|
|
1031
1093
|
export const fontSizeProperty = new InheritedCssProperty({
|
|
1032
1094
|
name: 'fontSize',
|
|
1033
1095
|
cssName: 'font-size',
|
|
1034
|
-
affectsLayout:
|
|
1096
|
+
affectsLayout: __APPLE__,
|
|
1035
1097
|
valueChanged: (target, oldValue, newValue) => {
|
|
1036
1098
|
if (target.viewRef['handleFontSize'] === true) {
|
|
1037
1099
|
return;
|
|
@@ -1048,7 +1110,7 @@ fontSizeProperty.register(Style);
|
|
|
1048
1110
|
export const fontStyleProperty = new InheritedCssProperty({
|
|
1049
1111
|
name: 'fontStyle',
|
|
1050
1112
|
cssName: 'font-style',
|
|
1051
|
-
affectsLayout:
|
|
1113
|
+
affectsLayout: __APPLE__,
|
|
1052
1114
|
defaultValue: FontStyle.NORMAL,
|
|
1053
1115
|
valueConverter: FontStyle.parse,
|
|
1054
1116
|
valueChanged: (target, oldValue, newValue) => {
|
|
@@ -1063,7 +1125,7 @@ fontStyleProperty.register(Style);
|
|
|
1063
1125
|
export const fontWeightProperty = new InheritedCssProperty({
|
|
1064
1126
|
name: 'fontWeight',
|
|
1065
1127
|
cssName: 'font-weight',
|
|
1066
|
-
affectsLayout:
|
|
1128
|
+
affectsLayout: __APPLE__,
|
|
1067
1129
|
defaultValue: FontWeight.NORMAL,
|
|
1068
1130
|
valueConverter: FontWeight.parse,
|
|
1069
1131
|
valueChanged: (target, oldValue, newValue) => {
|
|
@@ -1106,7 +1168,7 @@ fontProperty.register(Style);
|
|
|
1106
1168
|
export const fontVariationSettingsProperty = new InheritedCssProperty({
|
|
1107
1169
|
name: 'fontVariationSettings',
|
|
1108
1170
|
cssName: 'font-variation-settings',
|
|
1109
|
-
affectsLayout:
|
|
1171
|
+
affectsLayout: __APPLE__,
|
|
1110
1172
|
valueChanged: (target, oldValue, newValue) => {
|
|
1111
1173
|
const currentFont = target.fontInternal || Font.default;
|
|
1112
1174
|
if (currentFont.fontVariationSettings !== newValue) {
|
|
@@ -1123,7 +1185,7 @@ export const visibilityProperty = new CssProperty({
|
|
|
1123
1185
|
name: 'visibility',
|
|
1124
1186
|
cssName: 'visibility',
|
|
1125
1187
|
defaultValue: CoreTypes.Visibility.visible,
|
|
1126
|
-
affectsLayout:
|
|
1188
|
+
affectsLayout: __APPLE__,
|
|
1127
1189
|
valueConverter: CoreTypes.Visibility.parse,
|
|
1128
1190
|
valueChanged: (target, oldValue, newValue) => {
|
|
1129
1191
|
const view = target.viewRef.get();
|