@nativescript/core 9.0.0-alpha.5 → 9.0.0-next-07-20-2025-16403500407
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 +0 -264
- package/accessibility/accessibility-common.js +0 -352
- package/accessibility/accessibility-common.js.map +1 -1
- package/accessibility/accessibility-css-helper.d.ts +1 -0
- package/accessibility/accessibility-css-helper.js +101 -0
- package/accessibility/accessibility-css-helper.js.map +1 -0
- package/accessibility/accessibility-properties.d.ts +1 -1
- package/accessibility/accessibility-properties.js +2 -2
- package/accessibility/accessibility-properties.js.map +1 -1
- package/accessibility/accessibility-service-common.d.ts +8 -0
- package/accessibility/accessibility-service-common.js +26 -0
- package/accessibility/accessibility-service-common.js.map +1 -0
- package/accessibility/accessibility-service.android.d.ts +6 -0
- package/accessibility/accessibility-service.android.js +103 -0
- package/accessibility/accessibility-service.android.js.map +1 -0
- package/accessibility/accessibility-service.d.ts +10 -0
- package/accessibility/accessibility-service.ios.d.ts +6 -0
- package/accessibility/accessibility-service.ios.js +61 -0
- package/accessibility/accessibility-service.ios.js.map +1 -0
- package/accessibility/accessibility-types.d.ts +224 -0
- package/accessibility/accessibility-types.js +222 -0
- package/accessibility/accessibility-types.js.map +1 -0
- package/accessibility/font-scale-common.d.ts +7 -0
- package/accessibility/font-scale-common.js +14 -0
- package/accessibility/font-scale-common.js.map +1 -0
- package/accessibility/font-scale.android.d.ts +5 -0
- package/accessibility/font-scale.android.js +55 -0
- package/accessibility/font-scale.android.js.map +1 -0
- package/accessibility/font-scale.d.ts +9 -0
- package/accessibility/font-scale.ios.d.ts +5 -0
- package/accessibility/font-scale.ios.js +89 -0
- package/accessibility/font-scale.ios.js.map +1 -0
- package/accessibility/index.android.d.ts +10 -0
- package/accessibility/index.android.js +577 -0
- package/accessibility/index.android.js.map +1 -0
- package/accessibility/index.d.ts +36 -0
- package/accessibility/index.ios.d.ts +9 -0
- package/accessibility/index.ios.js +229 -0
- package/accessibility/index.ios.js.map +1 -0
- package/application/application-common.d.ts +8 -6
- package/application/application-common.js +14 -21
- package/application/application-common.js.map +1 -1
- package/application/application-interfaces.d.ts +3 -2
- package/application/application.android.d.ts +7 -14
- package/application/application.android.js +75 -754
- package/application/application.android.js.map +1 -1
- package/application/application.d.ts +0 -25
- package/application/application.ios.d.ts +18 -16
- package/application/application.ios.js +45 -455
- package/application/application.ios.js.map +1 -1
- package/application-settings/index.android.js +2 -2
- package/application-settings/index.android.js.map +1 -1
- package/cli-hooks/{before-checkForChanges.mjs → before-checkForChanges.js} +6 -6
- package/cli-hooks/postinstall.js +2 -0
- package/cli-hooks/preuninstall.js +2 -0
- package/color/color-common.d.ts +19 -18
- package/color/color-common.js +14 -13
- package/color/color-common.js.map +1 -1
- package/color/index.ios.d.ts +1 -2
- package/color/index.ios.js.map +1 -1
- package/connectivity/index.android.js +4 -5
- package/connectivity/index.android.js.map +1 -1
- package/core-types/index.d.ts +1 -1
- package/core-types/index.js +2 -2
- package/core-types/index.js.map +1 -1
- package/css/css-tree-parser.js +21 -17
- package/css/css-tree-parser.js.map +1 -1
- package/css/lib/parse/index.js +577 -475
- package/css/package.json +36 -0
- package/css/reworkcss.d.ts +28 -25
- package/css/reworkcss.js +1 -5
- package/css-mediaquery/index.js +1 -1
- package/css-mediaquery/index.js.map +1 -1
- package/css-value/package.json +23 -0
- package/css-value/reworkcss-value.d.ts +8 -31
- package/css-value/reworkcss-value.js +111 -89
- package/debugger/devtools-elements-interfaces.d.ts +1 -1
- package/debugger/devtools-elements.common.js +8 -17
- package/debugger/devtools-elements.common.js.map +1 -1
- package/debugger/devtools-elements.js +1 -1
- package/debugger/devtools-elements.js.map +1 -1
- package/debugger/dom-node.d.ts +27 -0
- package/debugger/{dom-types.js → dom-node.js} +9 -11
- package/debugger/dom-node.js.map +1 -0
- package/debugger/webinspector-css.d.ts +18 -18
- package/debugger/webinspector-css.js +1 -1
- package/debugger/webinspector-css.js.map +1 -1
- package/debugger/webinspector-dom.d.ts +15 -15
- package/debugger/webinspector-dom.js +1 -1
- package/debugger/webinspector-dom.js.map +1 -1
- package/debugger/webinspector-network.android.d.ts +9 -9
- package/debugger/webinspector-network.android.js +3 -3
- package/debugger/webinspector-network.android.js.map +1 -1
- package/debugger/webinspector-network.ios.d.ts +9 -9
- package/debugger/webinspector-network.ios.js +1 -1
- package/debugger/webinspector-network.ios.js.map +1 -1
- package/fetch/index.js +458 -448
- package/file-system/file-system-access.android.js +39 -32
- package/file-system/file-system-access.android.js.map +1 -1
- package/file-system/index.d.ts +2 -2
- package/file-system/index.js +11 -4
- package/file-system/index.js.map +1 -1
- package/fps-meter/fps-native.android.d.ts +2 -1
- package/fps-meter/fps-native.android.js.map +1 -1
- package/fps-meter/fps-native.ios.d.ts +2 -1
- package/fps-meter/fps-native.ios.js.map +1 -1
- package/global-types.d.ts +1 -1
- package/globals/index.js +288 -254
- package/globals/index.js.map +1 -1
- package/http/http-request/http-request-common.js +2 -2
- package/http/http-request/http-request-common.js.map +1 -1
- package/http/http-request/index.android.d.ts +7 -3
- package/http/http-request/index.android.js +22 -6
- package/http/http-request/index.android.js.map +1 -1
- package/http/http-request/index.d.ts +1 -5
- package/http/http-request/index.ios.d.ts +7 -3
- package/http/http-request/index.ios.js +22 -6
- package/http/http-request/index.ios.js.map +1 -1
- package/http/index.d.ts +105 -6
- package/http/index.js +12 -10
- package/http/index.js.map +1 -1
- package/image-asset/index.android.js +3 -3
- package/image-asset/index.android.js.map +1 -1
- package/image-source/index.android.d.ts +1 -1
- package/image-source/index.android.js +23 -5
- package/image-source/index.android.js.map +1 -1
- package/image-source/index.ios.js +9 -2
- package/image-source/index.ios.js.map +1 -1
- package/index.d.ts +8 -12
- package/index.js +3 -6
- package/index.js.map +1 -1
- package/inspector_modules.d.ts +0 -3
- package/inspector_modules.js +3 -6
- package/inspector_modules.js.map +1 -1
- package/js-libs/easysax/easysax.js +3 -5
- package/media-query-list/index.js +17 -7
- package/media-query-list/index.js.map +1 -1
- package/module-name-resolver/index.d.ts +11 -2
- package/module-name-resolver/index.js +18 -6
- package/module-name-resolver/index.js.map +1 -1
- package/module-name-resolver/non-bundle-workflow-compat.js +23 -32
- package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
- package/package.json +5 -8
- package/platform/device/index.android.js +2 -2
- package/platform/device/index.android.js.map +1 -1
- package/platform/screen/index.android.js +2 -2
- package/platform/screen/index.android.js.map +1 -1
- package/platform/screen/index.ios.js +2 -2
- package/platform/screen/index.ios.js.map +1 -1
- package/profiling/index.js +1 -2
- package/profiling/index.js.map +1 -1
- package/ui/action-bar/action-bar-common.js +2 -4
- package/ui/action-bar/action-bar-common.js.map +1 -1
- package/ui/action-bar/index.android.js +6 -7
- package/ui/action-bar/index.android.js.map +1 -1
- package/ui/action-bar/index.ios.js +11 -10
- package/ui/action-bar/index.ios.js.map +1 -1
- package/ui/activity-indicator/index.ios.js +4 -3
- package/ui/activity-indicator/index.ios.js.map +1 -1
- package/ui/animation/animation-common.d.ts +4 -4
- package/ui/animation/animation-common.js +3 -2
- package/ui/animation/animation-common.js.map +1 -1
- package/ui/animation/{animation-shared.d.ts → animation-interfaces.d.ts} +31 -39
- package/{core-types/animation-types.js → ui/animation/animation-interfaces.js} +1 -1
- package/ui/animation/animation-interfaces.js.map +1 -0
- package/ui/animation/index.android.d.ts +2 -1
- package/ui/animation/index.android.js +5 -5
- package/ui/animation/index.android.js.map +1 -1
- package/ui/animation/index.d.ts +138 -2
- package/ui/animation/index.ios.d.ts +2 -1
- package/ui/animation/index.ios.js +3 -3
- package/ui/animation/index.ios.js.map +1 -1
- package/ui/animation/keyframe-animation.d.ts +118 -67
- package/ui/animation/keyframe-animation.js +2 -2
- package/ui/animation/keyframe-animation.js.map +1 -1
- package/ui/builder/component-builder/index.js +2 -2
- package/ui/builder/component-builder/index.js.map +1 -1
- package/ui/builder/index.js +3 -415
- package/ui/builder/index.js.map +1 -1
- package/ui/builder/xml2ui.d.ts +134 -0
- package/ui/builder/xml2ui.js +397 -0
- package/ui/builder/xml2ui.js.map +1 -0
- package/ui/button/index.android.js +1 -2
- package/ui/button/index.android.js.map +1 -1
- package/ui/core/bindable/index.d.ts +38 -2
- package/ui/core/bindable/index.js +2 -1
- package/ui/core/bindable/index.js.map +1 -1
- package/ui/core/properties/index.d.ts +37 -4
- package/ui/core/properties/index.js +35 -6
- package/ui/core/properties/index.js.map +1 -1
- package/ui/core/view/index.android.d.ts +2 -2
- package/ui/core/view/index.android.js +10 -13
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/index.d.ts +61 -1
- package/ui/core/view/index.ios.d.ts +3 -3
- package/ui/core/view/index.ios.js +13 -21
- package/ui/core/view/index.ios.js.map +1 -1
- package/ui/core/view/view-common.d.ts +16 -19
- package/ui/core/view/view-common.js +14 -12
- package/ui/core/view/view-common.js.map +1 -1
- package/ui/core/view/view-helper/index.ios.d.ts +1 -2
- package/ui/core/view/view-helper/index.ios.js +4 -3
- package/ui/core/view/view-helper/index.ios.js.map +1 -1
- package/ui/core/view/view-helper/view-helper-common.js +3 -1
- package/ui/core/view/view-helper/view-helper-common.js.map +1 -1
- package/ui/core/view-base/index.d.ts +25 -23
- package/ui/core/view-base/index.js +30 -9
- package/ui/core/view-base/index.js.map +1 -1
- package/ui/dialogs/dialogs-common.js +3 -3
- package/ui/dialogs/dialogs-common.js.map +1 -1
- package/ui/dialogs/index.android.js +7 -8
- package/ui/dialogs/index.android.js.map +1 -1
- package/ui/dialogs/index.ios.js +2 -2
- package/ui/dialogs/index.ios.js.map +1 -1
- package/ui/embedding/index.android.d.ts +1 -1
- package/ui/embedding/index.d.ts +1 -1
- package/ui/frame/callbacks/activity-callbacks.d.ts +19 -0
- package/ui/frame/callbacks/activity-callbacks.js +301 -0
- package/ui/frame/callbacks/activity-callbacks.js.map +1 -0
- package/ui/frame/{frame-helper-for-android.d.ts → callbacks/fragment-callbacks.d.ts} +1 -20
- package/ui/frame/{frame-helper-for-android.js → callbacks/fragment-callbacks.js} +38 -52
- package/ui/frame/callbacks/fragment-callbacks.js.map +1 -0
- package/ui/frame/fragment.android.js +2 -3
- package/ui/frame/fragment.android.js.map +1 -1
- package/ui/frame/fragment.transitions.android.js.map +1 -1
- package/ui/frame/frame-common.d.ts +2 -2
- package/ui/frame/frame-common.js.map +1 -1
- package/ui/frame/frame-interfaces.d.ts +4 -4
- package/ui/frame/frame-interfaces.js.map +1 -1
- package/ui/frame/frame-stack.js.map +1 -1
- package/ui/frame/index.android.d.ts +5 -20
- package/ui/frame/index.android.js +19 -296
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.d.ts +19 -18
- package/ui/frame/index.ios.d.ts +1 -1
- package/ui/frame/index.ios.js +4 -5
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/gestures/gestures-common.d.ts +273 -4
- package/ui/gestures/gestures-common.js +146 -3
- package/ui/gestures/gestures-common.js.map +1 -1
- package/ui/gestures/index.android.d.ts +1 -29
- package/ui/gestures/index.android.js +2 -4
- package/ui/gestures/index.android.js.map +1 -1
- package/ui/gestures/index.d.ts +0 -35
- package/ui/gestures/index.ios.d.ts +1 -35
- package/ui/gestures/index.ios.js +3 -3
- package/ui/gestures/index.ios.js.map +1 -1
- package/ui/gestures/touch-manager.d.ts +1 -1
- package/ui/html-view/index.ios.js +3 -3
- package/ui/html-view/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 +1 -1
- package/ui/image/index.android.js.map +1 -1
- package/ui/image-cache/index.ios.js +11 -5
- package/ui/image-cache/index.ios.js.map +1 -1
- package/ui/index.d.ts +5 -10
- package/ui/index.js +3 -11
- package/ui/index.js.map +1 -1
- package/ui/label/index.ios.js.map +1 -1
- package/ui/layouts/absolute-layout/absolute-layout-common.js +1 -1
- package/ui/layouts/absolute-layout/absolute-layout-common.js.map +1 -1
- package/ui/layouts/absolute-layout/index.android.js +1 -1
- package/ui/layouts/absolute-layout/index.android.js.map +1 -1
- package/ui/layouts/absolute-layout/index.d.ts +1 -1
- package/ui/layouts/absolute-layout/index.ios.js.map +1 -1
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js +1 -2
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +1 -1
- package/ui/layouts/flexbox-layout/index.android.js +1 -1
- package/ui/layouts/flexbox-layout/index.android.js.map +1 -1
- package/ui/layouts/flexbox-layout/index.ios.js.map +1 -1
- package/ui/layouts/layout-base.android.js +1 -2
- package/ui/layouts/layout-base.android.js.map +1 -1
- package/ui/layouts/stack-layout/index.ios.js.map +1 -1
- package/ui/layouts/wrap-layout/index.android.js +1 -1
- package/ui/layouts/wrap-layout/index.android.js.map +1 -1
- package/ui/layouts/wrap-layout/index.d.ts +1 -1
- package/ui/layouts/wrap-layout/wrap-layout-common.js +1 -1
- package/ui/layouts/wrap-layout/wrap-layout-common.js.map +1 -1
- package/ui/list-view/index.android.js +1 -1
- package/ui/list-view/index.android.js.map +1 -1
- package/ui/list-view/index.d.ts +1 -1
- package/ui/list-view/index.ios.js +1 -1
- package/ui/list-view/index.ios.js.map +1 -1
- package/ui/list-view/list-view-common.js +1 -1
- package/ui/list-view/list-view-common.js.map +1 -1
- package/ui/page/index.android.js +1 -2
- package/ui/page/index.android.js.map +1 -1
- package/ui/page/index.d.ts +1 -1
- package/ui/page/index.ios.js +5 -4
- package/ui/page/index.ios.js.map +1 -1
- package/ui/page/page-common.d.ts +2 -3
- package/ui/page/page-common.js +4 -5
- package/ui/page/page-common.js.map +1 -1
- package/ui/scroll-view/index.ios.js +3 -3
- package/ui/scroll-view/index.ios.js.map +1 -1
- package/ui/styling/background-common.js +1 -0
- package/ui/styling/background-common.js.map +1 -1
- package/ui/styling/background.android.d.ts +6 -0
- package/ui/styling/background.android.js +53 -1
- package/ui/styling/background.android.js.map +1 -1
- package/ui/styling/background.ios.js +1 -2
- package/ui/styling/background.ios.js.map +1 -1
- package/ui/styling/converters.d.ts +2 -2
- package/ui/styling/css-shadow.js.map +1 -1
- package/ui/styling/css-stroke.js.map +1 -1
- package/ui/styling/css-transform.d.ts +1 -1
- package/ui/styling/css-utils.js +1 -1
- package/ui/styling/css-utils.js.map +1 -1
- package/ui/styling/font.android.js +2 -2
- package/ui/styling/font.android.js.map +1 -1
- package/ui/styling/font.ios.js +10 -10
- package/ui/styling/font.ios.js.map +1 -1
- package/ui/styling/style/index.d.ts +1 -1
- package/ui/styling/style-properties.d.ts +113 -58
- package/ui/styling/style-properties.js +93 -7
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/styling/style-scope.d.ts +48 -85
- package/ui/styling/style-scope.js +36 -30
- package/ui/styling/style-scope.js.map +1 -1
- package/ui/switch/index.ios.js +5 -5
- package/ui/switch/index.ios.js.map +1 -1
- package/ui/tab-view/index.android.js +6 -6
- package/ui/tab-view/index.android.js.map +1 -1
- package/ui/text-base/index.android.d.ts +1 -1
- package/ui/text-base/index.android.js +4 -4
- package/ui/text-base/index.android.js.map +1 -1
- package/ui/text-base/index.d.ts +1 -1
- package/ui/text-base/index.ios.js +4 -5
- package/ui/text-base/index.ios.js.map +1 -1
- package/ui/text-view/index.ios.js.map +1 -1
- package/ui/transition/fade-transition.ios.js +1 -1
- package/ui/transition/fade-transition.ios.js.map +1 -1
- package/ui/transition/index.ios.js +1 -1
- package/ui/transition/index.ios.js.map +1 -1
- package/ui/transition/modal-transition.ios.js +1 -1
- package/ui/transition/modal-transition.ios.js.map +1 -1
- package/ui/transition/page-transition.android.d.ts +1 -1
- package/ui/transition/page-transition.android.js +4 -4
- package/ui/transition/page-transition.android.js.map +1 -1
- package/ui/transition/page-transition.ios.js +1 -1
- package/ui/transition/page-transition.ios.js.map +1 -1
- package/ui/transition/shared-transition-helper.ios.js +1 -1
- package/ui/transition/shared-transition-helper.ios.js.map +1 -1
- package/ui/transition/shared-transition.js +1 -2
- package/ui/transition/shared-transition.js.map +1 -1
- package/ui/transition/slide-transition.ios.js +2 -2
- package/ui/transition/slide-transition.ios.js.map +1 -1
- package/utils/{native-helper-for-android.d.ts → android/index.d.ts} +2 -4
- package/utils/android/index.js +160 -0
- package/utils/android/index.js.map +1 -0
- package/utils/common.d.ts +38 -1
- package/utils/common.js +111 -1
- package/utils/common.js.map +1 -1
- package/utils/debug.js +59 -1
- package/utils/debug.js.map +1 -1
- package/utils/index.android.d.ts +1 -3
- package/utils/index.android.js +11 -37
- package/utils/index.android.js.map +1 -1
- package/utils/index.d.ts +14 -2
- package/utils/index.ios.d.ts +1 -4
- package/utils/index.ios.js +5 -32
- package/utils/index.ios.js.map +1 -1
- package/utils/ios/index.d.ts +39 -0
- package/utils/ios/index.js +229 -0
- package/utils/ios/index.js.map +1 -0
- package/utils/layout-helper/index.android.js +4 -4
- package/utils/layout-helper/index.android.js.map +1 -1
- package/utils/layout-helper/index.d.ts +4 -6
- package/utils/layout-helper/index.ios.js +5 -5
- package/utils/layout-helper/index.ios.js.map +1 -1
- package/utils/layout-helper/layout-helper-common.d.ts +9 -0
- package/utils/layout-helper/layout-helper-common.js +9 -1
- package/utils/layout-helper/layout-helper-common.js.map +1 -1
- package/utils/native-helper.android.d.ts +5 -29
- package/utils/native-helper.android.js +131 -18
- package/utils/native-helper.android.js.map +1 -1
- package/utils/native-helper.d.ts +258 -206
- package/utils/native-helper.ios.d.ts +3 -72
- package/utils/native-helper.ios.js +3 -250
- package/utils/native-helper.ios.js.map +1 -1
- package/xhr/index.js +13 -12
- package/xhr/index.js.map +1 -1
- package/xml/index.d.ts +98 -94
- package/xml/index.js +2 -58
- package/xml/index.js.map +1 -1
- package/accessibility/index.js +0 -2
- package/accessibility/index.js.map +0 -1
- package/application/helpers-common.d.ts +0 -50
- package/application/helpers-common.js +0 -153
- package/application/helpers-common.js.map +0 -1
- package/application/helpers.android.d.ts +0 -17
- package/application/helpers.android.js +0 -173
- package/application/helpers.android.js.map +0 -1
- package/application/helpers.d.ts +0 -25
- package/application/helpers.ios.d.ts +0 -27
- package/application/helpers.ios.js +0 -62
- package/application/helpers.ios.js.map +0 -1
- package/cli-hooks/postinstall.mjs +0 -7
- package/cli-hooks/preuninstall.mjs +0 -7
- package/color/color-types.d.ts +0 -49
- package/color/color-types.js +0 -3
- package/color/color-types.js.map +0 -1
- package/core-types/animation-types.d.ts +0 -11
- package/core-types/animation-types.js.map +0 -1
- package/core-types/validators.d.ts +0 -2
- package/core-types/validators.js +0 -18
- package/core-types/validators.js.map +0 -1
- package/css/lib/parse/index.d.ts +0 -1
- package/css/lib/parse/index.js.map +0 -1
- package/css/reworkcss.js.map +0 -1
- package/css-value/reworkcss-value.js.map +0 -1
- package/debugger/dom-types.d.ts +0 -24
- package/debugger/dom-types.js.map +0 -1
- package/fetch/index.d.ts +0 -72
- package/fetch/index.js.map +0 -1
- package/globals/global-utils.d.ts +0 -27
- package/globals/global-utils.js +0 -67
- package/globals/global-utils.js.map +0 -1
- package/http/http-interfaces.d.ts +0 -84
- package/http/http-interfaces.js +0 -6
- package/http/http-interfaces.js.map +0 -1
- package/http/http-shared.d.ts +0 -5
- package/http/http-shared.js +0 -14
- package/http/http-shared.js.map +0 -1
- package/module-name-resolver/helpers.d.ts +0 -14
- package/module-name-resolver/helpers.js +0 -27
- package/module-name-resolver/helpers.js.map +0 -1
- package/ui/animation/animation-shared.js +0 -4
- package/ui/animation/animation-shared.js.map +0 -1
- package/ui/animation/animation-types.d.ts +0 -1
- package/ui/animation/animation-types.js +0 -3
- package/ui/animation/animation-types.js.map +0 -1
- package/ui/core/bindable/bindable-types.d.ts +0 -37
- package/ui/core/bindable/bindable-types.js +0 -3
- package/ui/core/bindable/bindable-types.js.map +0 -1
- package/ui/core/properties/property-shared.d.ts +0 -35
- package/ui/core/properties/property-shared.js +0 -16
- package/ui/core/properties/property-shared.js.map +0 -1
- package/ui/core/view/view-helper/view-helper-shared.d.ts +0 -5
- package/ui/core/view/view-helper/view-helper-shared.js +0 -6
- package/ui/core/view/view-helper/view-helper-shared.js.map +0 -1
- package/ui/core/view/view-interfaces.d.ts +0 -54
- package/ui/core/view/view-interfaces.js +0 -2
- package/ui/core/view/view-interfaces.js.map +0 -1
- package/ui/core/view-base/utils.d.ts +0 -1
- package/ui/core/view-base/utils.js +0 -9
- package/ui/core/view-base/utils.js.map +0 -1
- package/ui/frame/frame-helper-for-android.js.map +0 -1
- package/ui/gestures/gestures-types.d.ts +0 -108
- package/ui/gestures/gestures-types.js +0 -40
- package/ui/gestures/gestures-types.js.map +0 -1
- package/ui/page/events.d.ts +0 -6
- package/ui/page/events.js +0 -7
- package/ui/page/events.js.map +0 -1
- package/ui/styling/length-shared.d.ts +0 -52
- package/ui/styling/length-shared.js +0 -173
- package/ui/styling/length-shared.js.map +0 -1
- package/ui/styling/styling-profile.d.ts +0 -1
- package/ui/styling/styling-profile.js +0 -4
- package/ui/styling/styling-profile.js.map +0 -1
- package/ui/styling/styling-shared.d.ts +0 -3
- package/ui/styling/styling-shared.js +0 -6
- package/ui/styling/styling-shared.js.map +0 -1
- package/utils/animation-helpers.d.ts +0 -27
- package/utils/animation-helpers.js +0 -48
- package/utils/animation-helpers.js.map +0 -1
- package/utils/debug-source.d.ts +0 -19
- package/utils/debug-source.js +0 -78
- package/utils/debug-source.js.map +0 -1
- package/utils/layout-helper/layout-helper-shared.d.ts +0 -9
- package/utils/layout-helper/layout-helper-shared.js +0 -13
- package/utils/layout-helper/layout-helper-shared.js.map +0 -1
- package/utils/native-helper-for-android.js +0 -273
- package/utils/native-helper-for-android.js.map +0 -1
- package/utils/shared.d.ts +0 -17
- package/utils/shared.js +0 -40
- package/utils/shared.js.map +0 -1
- package/utils/utils-shared.d.ts +0 -1
- package/utils/utils-shared.js +0 -8
- package/utils/utils-shared.js.map +0 -1
|
@@ -7,15 +7,13 @@ export namespace layout {
|
|
|
7
7
|
/**
|
|
8
8
|
* Bits that provide the actual measured size.
|
|
9
9
|
*/
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
10
|
+
export const MEASURED_HEIGHT_STATE_SHIFT: number;
|
|
11
|
+
export const MEASURED_SIZE_MASK: number;
|
|
12
|
+
export const MEASURED_STATE_MASK: number;
|
|
13
|
+
export const MEASURED_STATE_TOO_SMALL: number;
|
|
12
14
|
export const UNSPECIFIED: number;
|
|
13
15
|
export const EXACTLY: number;
|
|
14
16
|
export const AT_MOST: number;
|
|
15
|
-
export const MEASURED_HEIGHT_STATE_SHIFT: number;
|
|
16
|
-
export const MEASURED_STATE_TOO_SMALL: number;
|
|
17
|
-
export const MEASURED_STATE_MASK: number;
|
|
18
|
-
export const MEASURED_SIZE_MASK: number;
|
|
19
17
|
|
|
20
18
|
/**
|
|
21
19
|
* Gets layout mode from a given specification as string.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as layoutCommon from './layout-helper-common';
|
|
2
|
-
import {
|
|
2
|
+
import { getMainScreen } from '../ios';
|
|
3
3
|
export var layout;
|
|
4
4
|
(function (layout) {
|
|
5
5
|
// cache the MeasureSpec constants here, to prevent extensive marshaling calls to and from Objective C
|
|
@@ -26,19 +26,19 @@ export var layout;
|
|
|
26
26
|
}
|
|
27
27
|
layout.getMeasureSpecSize = getMeasureSpecSize;
|
|
28
28
|
function makeMeasureSpec(size, mode) {
|
|
29
|
-
return (Math.round(Math.max(0, size)) & ~
|
|
29
|
+
return (Math.round(Math.max(0, size)) & ~layoutCommon.MODE_MASK) | (mode & layoutCommon.MODE_MASK);
|
|
30
30
|
}
|
|
31
31
|
layout.makeMeasureSpec = makeMeasureSpec;
|
|
32
32
|
function getDisplayDensity() {
|
|
33
|
-
return
|
|
33
|
+
return getMainScreen().scale;
|
|
34
34
|
}
|
|
35
35
|
layout.getDisplayDensity = getDisplayDensity;
|
|
36
36
|
function toDevicePixels(value) {
|
|
37
|
-
return value *
|
|
37
|
+
return value * getMainScreen().scale;
|
|
38
38
|
}
|
|
39
39
|
layout.toDevicePixels = toDevicePixels;
|
|
40
40
|
function toDeviceIndependentPixels(value) {
|
|
41
|
-
return value /
|
|
41
|
+
return value / getMainScreen().scale;
|
|
42
42
|
}
|
|
43
43
|
layout.toDeviceIndependentPixels = toDeviceIndependentPixels;
|
|
44
44
|
function round(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../../packages/core/utils/layout-helper/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../../packages/core/utils/layout-helper/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,KAAW,MAAM,CA+DtB;AA/DD,WAAiB,MAAM;IACtB,sGAAsG;IACtG,mGAAmG;IACtF,iBAAU,GAAG,EAAE,CAAC;IAChB,gBAAS,GAAG,GAAG,IAAI,OAAA,UAAU,CAAC;IAE9B,kBAAW,GAAG,CAAC,IAAI,OAAA,UAAU,CAAC;IAC9B,cAAO,GAAG,CAAC,IAAI,OAAA,UAAU,CAAC;IAC1B,cAAO,GAAG,CAAC,IAAI,OAAA,UAAU,CAAC;IAE1B,kCAA2B,GAAG,UAAU,CAAC,CAAC,QAAQ;IAClD,+BAAwB,GAAG,UAAU,CAAC;IACtC,0BAAmB,GAAG,UAAU,CAAC;IACjC,yBAAkB,GAAG,UAAU,CAAC;IAE7C,SAAgB,OAAO,CAAC,IAAY;QACnC,OAAO,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;IAFe,cAAO,UAEtB,CAAA;IAED,SAAgB,kBAAkB,CAAC,IAAY;QAC9C,OAAO,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IAFe,yBAAkB,qBAEjC,CAAA;IAED,SAAgB,kBAAkB,CAAC,IAAY;QAC9C,OAAO,YAAY,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC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SAChH,CAAC,CAAC;QAEH,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3D,UAAU,CAAC,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;QAE7D,OAAO,UAAU,CAAC;IACnB,CAAC;IAXe,wBAAiB,oBAWhC,CAAA;IAED,SAAgB,mBAAmB,CAAC,WAAmB;QACtD,OAAO,YAAY,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACtD,CAAC;IAFe,0BAAmB,sBAElC,CAAA;AACF,CAAC,EA/DgB,MAAM,KAAN,MAAM,QA+DtB"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export declare const MODE_SHIFT = 30;
|
|
2
|
+
export declare const MODE_MASK: number;
|
|
3
|
+
export declare const UNSPECIFIED: number;
|
|
4
|
+
export declare const EXACTLY: number;
|
|
5
|
+
export declare const AT_MOST: number;
|
|
6
|
+
export declare const MEASURED_HEIGHT_STATE_SHIFT = 16;
|
|
7
|
+
export declare const MEASURED_STATE_TOO_SMALL = 16777216;
|
|
8
|
+
export declare const MEASURED_STATE_MASK = 4278190080;
|
|
9
|
+
export declare const MEASURED_SIZE_MASK = 16777215;
|
|
1
10
|
export declare function getMode(mode: number): string;
|
|
2
11
|
export declare function getMeasureSpecMode(spec: number): number;
|
|
3
12
|
export declare function getMeasureSpecSize(spec: number): number;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
// cache the MeasureSpec constants here, to prevent extensive marshaling calls to and from Java
|
|
2
2
|
// TODO: While this boosts the performance it is error-prone in case Google changes these constants
|
|
3
|
-
|
|
3
|
+
export const MODE_SHIFT = 30;
|
|
4
|
+
export const MODE_MASK = 0x3 << MODE_SHIFT;
|
|
5
|
+
export const UNSPECIFIED = 0 << MODE_SHIFT;
|
|
6
|
+
export const EXACTLY = 1 << MODE_SHIFT;
|
|
7
|
+
export const AT_MOST = 2 << MODE_SHIFT;
|
|
8
|
+
export const MEASURED_HEIGHT_STATE_SHIFT = 0x00000010; /* 16 */
|
|
9
|
+
export const MEASURED_STATE_TOO_SMALL = 0x01000000;
|
|
10
|
+
export const MEASURED_STATE_MASK = 0xff000000;
|
|
11
|
+
export const MEASURED_SIZE_MASK = 0x00ffffff;
|
|
4
12
|
export function getMode(mode) {
|
|
5
13
|
switch (mode) {
|
|
6
14
|
case EXACTLY:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-helper-common.js","sourceRoot":"","sources":["../../../../../packages/core/utils/layout-helper/layout-helper-common.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,mGAAmG;AACnG,
|
|
1
|
+
{"version":3,"file":"layout-helper-common.js","sourceRoot":"","sources":["../../../../../packages/core/utils/layout-helper/layout-helper-common.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,mGAAmG;AACnG,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAC;AAC7B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,IAAI,UAAU,CAAC;AAE3C,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAI,UAAU,CAAC;AAC3C,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAI,UAAU,CAAC;AACvC,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAI,UAAU,CAAC;AAEvC,MAAM,CAAC,MAAM,2BAA2B,GAAG,UAAU,CAAC,CAAC,QAAQ;AAC/D,MAAM,CAAC,MAAM,wBAAwB,GAAG,UAAU,CAAC;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAC9C,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAE7C,MAAM,UAAU,OAAO,CAAC,IAAY;IACnC,QAAQ,IAAI,EAAE,CAAC;QACd,KAAK,OAAO;YACX,OAAO,OAAO,CAAC;QAChB,KAAK,OAAO;YACX,OAAO,QAAQ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-
resources: typeof resources;
|
|
6
|
-
collections: typeof collections;
|
|
7
|
-
getApplication: typeof getApplication;
|
|
8
|
-
getCurrentActivity: typeof getCurrentActivity;
|
|
9
|
-
getApplicationContext: typeof getApplicationContext;
|
|
10
|
-
getWindow: typeof getWindow;
|
|
11
|
-
getResources: typeof getResources;
|
|
12
|
-
getPackageName: typeof getPackageName;
|
|
13
|
-
getInputMethodManager: typeof getInputMethodManager;
|
|
14
|
-
showSoftInput: typeof showSoftInput;
|
|
15
|
-
dismissSoftInput: typeof dismissSoftInput;
|
|
16
|
-
};
|
|
1
|
+
import * as AndroidUtils from './android';
|
|
2
|
+
export declare function dataDeserialize(nativeData?: any): any;
|
|
3
|
+
export declare function dataSerialize(data?: any, wrapPrimitives?: boolean): any;
|
|
4
|
+
export import android = AndroidUtils;
|
|
17
5
|
/**
|
|
18
6
|
* @deprecated Use `Utils.android` instead.
|
|
19
7
|
*/
|
|
20
|
-
export
|
|
21
|
-
resources: typeof resources;
|
|
22
|
-
collections: typeof collections;
|
|
23
|
-
getApplication: typeof getApplication;
|
|
24
|
-
getCurrentActivity: typeof getCurrentActivity;
|
|
25
|
-
getApplicationContext: typeof getApplicationContext;
|
|
26
|
-
getWindow: typeof getWindow;
|
|
27
|
-
getResources: typeof getResources;
|
|
28
|
-
getPackageName: typeof getPackageName;
|
|
29
|
-
getInputMethodManager: typeof getInputMethodManager;
|
|
30
|
-
showSoftInput: typeof showSoftInput;
|
|
31
|
-
dismissSoftInput: typeof dismissSoftInput;
|
|
32
|
-
};
|
|
8
|
+
export import ad = AndroidUtils;
|
|
33
9
|
export declare const iOSNativeHelper: {};
|
|
34
10
|
export declare const ios: {};
|
|
@@ -1,25 +1,138 @@
|
|
|
1
|
+
import * as AndroidUtils from './android';
|
|
1
2
|
import { platformCheck } from './platform-check';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
import { numberHasDecimals, numberIs64Bit } from './types';
|
|
4
|
+
export function dataDeserialize(nativeData) {
|
|
5
|
+
if (nativeData === null || typeof nativeData !== 'object') {
|
|
6
|
+
return nativeData;
|
|
7
|
+
}
|
|
8
|
+
let store;
|
|
9
|
+
switch (nativeData.getClass().getName()) {
|
|
10
|
+
case 'java.lang.String': {
|
|
11
|
+
return String(nativeData);
|
|
12
|
+
}
|
|
13
|
+
case 'java.lang.Boolean': {
|
|
14
|
+
return String(nativeData) === 'true';
|
|
15
|
+
}
|
|
16
|
+
case 'java.lang.Float':
|
|
17
|
+
case 'java.lang.Integer':
|
|
18
|
+
case 'java.lang.Long':
|
|
19
|
+
case 'java.lang.Double':
|
|
20
|
+
case 'java.lang.Short': {
|
|
21
|
+
return Number(nativeData);
|
|
22
|
+
}
|
|
23
|
+
case 'org.json.JSONArray': {
|
|
24
|
+
store = [];
|
|
25
|
+
for (let j = 0; j < nativeData.length(); j++) {
|
|
26
|
+
store[j] = dataDeserialize(nativeData.get(j));
|
|
27
|
+
}
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
case 'org.json.JSONObject': {
|
|
31
|
+
store = {};
|
|
32
|
+
const i = nativeData.keys();
|
|
33
|
+
let key;
|
|
34
|
+
while (i.hasNext()) {
|
|
35
|
+
key = i.next();
|
|
36
|
+
store[key] = dataDeserialize(nativeData.get(key));
|
|
37
|
+
}
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
case 'androidx.collection.SimpleArrayMap': {
|
|
41
|
+
const count = nativeData.size();
|
|
42
|
+
for (let l = 0; l < count; l++) {
|
|
43
|
+
const key = nativeData.keyAt(l);
|
|
44
|
+
store[key] = dataDeserialize(nativeData.get(key));
|
|
45
|
+
}
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
case 'androidx.collection.ArrayMap':
|
|
49
|
+
case 'android.os.Bundle':
|
|
50
|
+
case 'java.util.HashMap':
|
|
51
|
+
case 'java.util.Map': {
|
|
52
|
+
store = {};
|
|
53
|
+
const keys = nativeData.keySet().toArray();
|
|
54
|
+
for (let k = 0; k < keys.length; k++) {
|
|
55
|
+
const key = keys[k];
|
|
56
|
+
store[key] = dataDeserialize(nativeData.get(key));
|
|
57
|
+
}
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
default:
|
|
61
|
+
if (typeof nativeData === 'object' && nativeData instanceof java.util.List) {
|
|
62
|
+
const array = [];
|
|
63
|
+
const size = nativeData.size();
|
|
64
|
+
for (let i = 0, n = size; i < n; i++) {
|
|
65
|
+
array[i] = dataDeserialize(nativeData.get(i));
|
|
66
|
+
}
|
|
67
|
+
store = array;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
store = null;
|
|
71
|
+
}
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
return store;
|
|
75
|
+
}
|
|
76
|
+
export function dataSerialize(data, wrapPrimitives) {
|
|
77
|
+
let store;
|
|
78
|
+
switch (typeof data) {
|
|
79
|
+
case 'string':
|
|
80
|
+
case 'boolean': {
|
|
81
|
+
if (wrapPrimitives) {
|
|
82
|
+
if (typeof data === 'string') {
|
|
83
|
+
return new java.lang.String(data);
|
|
84
|
+
}
|
|
85
|
+
return new java.lang.Boolean(data);
|
|
86
|
+
}
|
|
87
|
+
return data;
|
|
88
|
+
}
|
|
89
|
+
case 'number': {
|
|
90
|
+
const hasDecimals = numberHasDecimals(data);
|
|
91
|
+
if (numberIs64Bit(data)) {
|
|
92
|
+
if (hasDecimals) {
|
|
93
|
+
return java.lang.Double.valueOf(data);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return java.lang.Long.valueOf(data);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
if (hasDecimals) {
|
|
101
|
+
return java.lang.Float.valueOf(data);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
return java.lang.Integer.valueOf(data);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
case 'object': {
|
|
109
|
+
if (!data) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
if (data instanceof Date) {
|
|
113
|
+
return new java.util.Date(data.getTime());
|
|
114
|
+
}
|
|
115
|
+
if (Array.isArray(data)) {
|
|
116
|
+
store = new java.util.ArrayList();
|
|
117
|
+
data.forEach((item) => store.add(dataSerialize(item, wrapPrimitives)));
|
|
118
|
+
return store;
|
|
119
|
+
}
|
|
120
|
+
if (data.native) {
|
|
121
|
+
return data.native;
|
|
122
|
+
}
|
|
123
|
+
store = new java.util.HashMap();
|
|
124
|
+
Object.keys(data).forEach((key) => store.put(key, dataSerialize(data[key], wrapPrimitives)));
|
|
125
|
+
return store;
|
|
126
|
+
}
|
|
127
|
+
default:
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
export var android = AndroidUtils;
|
|
19
132
|
/**
|
|
20
133
|
* @deprecated Use `Utils.android` instead.
|
|
21
134
|
*/
|
|
22
|
-
export
|
|
135
|
+
export var ad = AndroidUtils;
|
|
23
136
|
// these don't exist on Android.Stub them to empty functions.
|
|
24
137
|
export const iOSNativeHelper = platformCheck('Utils.iOSNativeHelper');
|
|
25
138
|
export const ios = platformCheck('Utils.ios');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-helper.android.js","sourceRoot":"","sources":["../../../../packages/core/utils/native-helper.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"native-helper.android.js","sourceRoot":"","sources":["../../../../packages/core/utils/native-helper.android.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,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