@akylas/nativescript 9.0.24 → 9.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abortcontroller/abortsignal.js.map +1 -1
- package/abortcontroller/index.js.map +1 -1
- package/accessibility/accessibility-common.js.map +1 -1
- package/accessibility/accessibility-css-helper.js.map +1 -1
- package/accessibility/accessibility-properties.js.map +1 -1
- package/accessibility/accessibility-service-common.js.map +1 -1
- package/accessibility/accessibility-service.android.js.map +1 -1
- package/accessibility/accessibility-service.ios.js.map +1 -1
- package/accessibility/accessibility-types.js.map +1 -1
- package/accessibility/font-scale-common.js.map +1 -1
- package/accessibility/font-scale.android.js.map +1 -1
- package/accessibility/font-scale.ios.js.map +1 -1
- package/accessibility/index.android.js.map +1 -1
- package/accessibility/index.ios.js.map +1 -1
- package/animation-frame/animation-native.android.js.map +1 -1
- package/animation-frame/animation-native.ios.js.map +1 -1
- package/animation-frame/index.js.map +1 -1
- package/application/application-common.d.ts +199 -3
- package/application/application-common.js +425 -55
- package/application/application-common.js.map +1 -1
- package/application/application-interfaces.d.ts +67 -1
- package/application/application-interfaces.js.map +1 -1
- package/application/application-shims.js.map +1 -1
- package/application/application.android.d.ts +39 -0
- package/application/application.android.js +242 -17
- package/application/application.android.js.map +1 -1
- package/application/application.d.ts +161 -54
- package/application/application.ios.d.ts +189 -28
- package/application/application.ios.js +885 -379
- 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/helpers.android.js.map +1 -1
- package/application/helpers.ios.js.map +1 -1
- package/application/index.android.js.map +1 -1
- package/application/index.ios.js.map +1 -1
- package/application/scene-delegate-bridge.d.ts +60 -0
- package/application/scene-delegate-bridge.js +138 -0
- package/application/scene-delegate-bridge.js.map +1 -0
- package/application-settings/application-settings-common.js.map +1 -1
- package/application-settings/index.android.js.map +1 -1
- package/application-settings/index.ios.js.map +1 -1
- package/bundle-entry-points.js.map +1 -1
- package/cli-hooks/before-checkForChanges.mjs +0 -11
- package/color/color-common.js +16 -5
- package/color/color-common.js.map +1 -1
- package/color/color-types.js.map +1 -1
- package/color/color-utils.d.ts +4 -1
- package/color/color-utils.js +14 -9
- package/color/color-utils.js.map +1 -1
- package/color/index.android.js.map +1 -1
- package/color/index.ios.js.map +1 -1
- package/color/known-colors.js.map +1 -1
- package/config/config.interface.d.ts +44 -2
- package/config/config.interface.js.map +1 -1
- package/config/index.js.map +1 -1
- package/connectivity/index.android.js.map +1 -1
- package/connectivity/index.ios.js.map +1 -1
- package/console/index.js.map +1 -1
- package/core-types/animation-types.js.map +1 -1
- package/core-types/index.d.ts +25 -2
- package/core-types/index.js +23 -0
- package/core-types/index.js.map +1 -1
- package/core-types/validators.js.map +1 -1
- package/css/CSS3Parser.js +3 -2
- package/css/CSS3Parser.js.map +1 -1
- package/css/CSSNativeScript.js.map +1 -1
- package/css/css-tree-parser.js +5 -1
- package/css/css-tree-parser.js.map +1 -1
- package/css/lib/parse/index.js +5 -1
- package/css/lib/parse/index.js.map +1 -1
- package/css/parser.js +20 -3
- package/css/parser.js.map +1 -1
- package/css/reworkcss.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/css-mediaquery/index.js +4 -4
- package/css-mediaquery/index.js.map +1 -1
- package/css-value/reworkcss-value.js.map +1 -1
- package/data/observable/index.d.ts +23 -0
- package/data/observable/index.js +50 -9
- package/data/observable/index.js.map +1 -1
- package/data/observable-array/index.js.map +1 -1
- package/data/virtual-array/index.js.map +1 -1
- package/debugger/InspectorBackendCommands.js.map +1 -1
- package/debugger/devtools-elements-interfaces.js.map +1 -1
- package/debugger/devtools-elements.common.js.map +1 -1
- package/debugger/devtools-elements.js.map +1 -1
- package/debugger/dom-types.js +31 -1
- package/debugger/dom-types.js.map +1 -1
- package/debugger/index.js.map +1 -1
- package/debugger/webinspector-css.js.map +1 -1
- package/debugger/webinspector-dom.js.map +1 -1
- package/debugger/webinspector-network.android.js.map +1 -1
- package/debugger/webinspector-network.ios.js.map +1 -1
- package/file-system/file-system-access.android.js.map +1 -1
- package/file-system/file-system-access.ios.js +21 -13
- package/file-system/file-system-access.ios.js.map +1 -1
- package/file-system/index.d.ts +3 -3
- package/file-system/index.js.map +1 -1
- package/fps-meter/fps-native.android.js.map +1 -1
- package/fps-meter/fps-native.ios.js.map +1 -1
- package/fps-meter/index.js.map +1 -1
- package/global-types.d.ts +39 -33
- 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/polyfill-xhr.js.map +1 -1
- package/globals/polyfills/utils.js +2 -0
- package/globals/polyfills/utils.js.map +1 -1
- package/http/http-interfaces.js.map +1 -1
- package/http/http-request/http-request-common.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/http-request-internal-common.d.ts +5 -1
- package/http/http-request-internal/http-request-internal-common.js +10 -0
- package/http/http-request-internal/http-request-internal-common.js.map +1 -1
- package/http/http-request-internal/index.android.d.ts +7 -1
- package/http/http-request-internal/index.android.js +2 -2
- 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 +2 -2
- package/http/http-request-internal/index.ios.js.map +1 -1
- package/http/index.js.map +1 -1
- package/image-asset/image-asset-common.js.map +1 -1
- package/image-asset/index.android.js.map +1 -1
- package/image-asset/index.ios.js.map +1 -1
- package/image-source/image-source-common.js.map +1 -1
- package/image-source/index.android.js.map +1 -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/matrix/index.js.map +1 -1
- package/media-query-list/index.js.map +1 -1
- package/module-name-resolver/helpers.js.map +1 -1
- package/module-name-resolver/index.js.map +1 -1
- package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
- package/module-name-resolver/qualifier-matcher/index.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 +61 -0
- package/native-window/native-window.ios.js +220 -0
- package/native-window/native-window.ios.js.map +1 -0
- package/native-window/window-base.d.ts +111 -0
- package/native-window/window-base.js +91 -0
- package/native-window/window-base.js.map +1 -0
- package/package.json +3 -2
- package/platform/common.js.map +1 -1
- package/platform/device/index.android.js.map +1 -1
- package/platform/device/index.ios.js.map +1 -1
- package/platform/index.js.map +1 -1
- package/platform/screen/index.android.js.map +1 -1
- package/platform/screen/index.ios.d.ts +1 -0
- package/platform/screen/index.ios.js +6 -2
- package/platform/screen/index.ios.js.map +1 -1
- package/platforms/android/java/org/nativescript/widgets/BorderDrawable.java +5 -6
- package/platforms/android/java/org/nativescript/widgets/BoxShadowDrawable.java +0 -6
- package/platforms/android/java/org/nativescript/widgets/CommonLayoutParams.java +56 -0
- package/platforms/android/java/org/nativescript/widgets/ContentLayout.java +20 -4
- package/platforms/android/java/org/nativescript/widgets/CustomTransition.java +26 -9
- package/platforms/android/java/org/nativescript/widgets/FlexLine.java +3 -3
- package/platforms/android/java/org/nativescript/widgets/FlexboxLayout.java +194 -731
- package/platforms/android/java/org/nativescript/widgets/ImageView.java +2 -2
- package/platforms/android/java/org/nativescript/widgets/Utils.java +37 -9
- package/platforms/android/java/org/nativescript/widgets/ViewHelper.java +78 -0
- package/platforms/android/java/org/nativescript/widgets/image/BitmapOwner.java +1 -4
- package/platforms/android/java/org/nativescript/widgets/image/Worker.java +99 -76
- package/platforms/android/native-api-usage.json +11 -0
- package/platforms/ios/src/NativeScriptMainWindow.swift +72 -39
- package/profiling/index.js.map +1 -1
- package/references.d.ts +5 -2
- package/text/formatted-string.js.map +1 -1
- package/text/index.android.js.map +1 -1
- package/text/index.ios.js.map +1 -1
- package/text/span.js.map +1 -1
- package/text/text-common.js +1 -1
- package/text/text-common.js.map +1 -1
- package/timer/index.android.js.map +1 -1
- package/timer/index.ios.js.map +1 -1
- package/trace/index.d.ts +2 -2
- package/trace/index.js.map +1 -1
- package/ui/action-bar/action-bar-common.js.map +1 -1
- package/ui/action-bar/index.android.js +2 -7
- package/ui/action-bar/index.android.js.map +1 -1
- package/ui/action-bar/index.d.ts +13 -1
- package/ui/action-bar/index.ios.js +26 -0
- package/ui/action-bar/index.ios.js.map +1 -1
- package/ui/activity-indicator/activity-indicator-common.js.map +1 -1
- package/ui/activity-indicator/index.android.js.map +1 -1
- package/ui/activity-indicator/index.ios.js.map +1 -1
- package/ui/animation/animation-common.js.map +1 -1
- package/ui/animation/animation-interfaces.js.map +1 -1
- package/ui/animation/animation-shared.js.map +1 -1
- package/ui/animation/animation-types.js.map +1 -1
- package/ui/animation/index.android.js.map +1 -1
- package/ui/animation/index.ios.js.map +1 -1
- package/ui/animation/keyframe-animation.d.ts +3 -1
- package/ui/animation/keyframe-animation.js +72 -3
- package/ui/animation/keyframe-animation.js.map +1 -1
- package/ui/builder/binding-builder.js.map +1 -1
- package/ui/builder/component-builder/index.js.map +1 -1
- package/ui/builder/index.js +9 -1
- package/ui/builder/index.js.map +1 -1
- package/ui/button/button-common.js.map +1 -1
- package/ui/button/index.android.js.map +1 -1
- package/ui/button/index.ios.js.map +1 -1
- package/ui/content-view/index.js.map +1 -1
- package/ui/core/bindable/bindable-expressions.js.map +1 -1
- package/ui/core/bindable/bindable-resources.js.map +1 -1
- package/ui/core/bindable/bindable-types.js.map +1 -1
- package/ui/core/bindable/index.js +2 -1
- package/ui/core/bindable/index.js.map +1 -1
- package/ui/core/control-state-change/index.android.js.map +1 -1
- package/ui/core/control-state-change/index.ios.js.map +1 -1
- package/ui/core/properties/index.d.ts +37 -2
- package/ui/core/properties/index.js +209 -32
- 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 +5 -0
- package/ui/core/view/index.android.js +78 -6
- 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 +48 -11
- package/ui/core/view/index.ios.js.map +1 -1
- package/ui/core/view/view-common.d.ts +37 -0
- package/ui/core/view/view-common.js +81 -0
- package/ui/core/view/view-common.js.map +1 -1
- package/ui/core/view/view-helper/index.android.d.ts +1 -0
- package/ui/core/view/view-helper/index.android.js +8 -0
- package/ui/core/view/view-helper/index.android.js.map +1 -1
- package/ui/core/view/view-helper/index.d.ts +46 -0
- package/ui/core/view/view-helper/index.ios.d.ts +42 -0
- package/ui/core/view/view-helper/index.ios.js +170 -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/view-helper/view-helper-shared.js.map +1 -1
- package/ui/core/view/view-interfaces.js.map +1 -1
- package/ui/core/view-base/index.js +80 -36
- package/ui/core/view-base/index.js.map +1 -1
- package/ui/core/view-base/utils.js.map +1 -1
- package/ui/core/weak-event-listener/index.js.map +1 -1
- package/ui/date-picker/date-picker-common.js.map +1 -1
- package/ui/date-picker/index.android.js.map +1 -1
- package/ui/date-picker/index.ios.js.map +1 -1
- package/ui/dialogs/dialogs-common.js.map +1 -1
- package/ui/dialogs/index.android.js +5 -5
- package/ui/dialogs/index.android.js.map +1 -1
- package/ui/dialogs/index.ios.js.map +1 -1
- package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
- package/ui/editable-text-base/index.android.js +2 -1
- package/ui/editable-text-base/index.android.js.map +1 -1
- package/ui/editable-text-base/index.ios.js.map +1 -1
- package/ui/embedding/index.android.js.map +1 -1
- package/ui/embedding/index.ios.js.map +1 -1
- package/ui/enums/enums.js.map +1 -1
- package/ui/enums/index.js.map +1 -1
- package/ui/frame/activity.android.js.map +1 -1
- package/ui/frame/fragment.android.js.map +1 -1
- package/ui/frame/fragment.ios.js.map +1 -1
- package/ui/frame/fragment.transitions.android.d.ts +4 -4
- package/ui/frame/fragment.transitions.android.js +95 -78
- package/ui/frame/fragment.transitions.android.js.map +1 -1
- package/ui/frame/fragment.transitions.types.js.map +1 -1
- package/ui/frame/frame-common.d.ts +14 -2
- package/ui/frame/frame-common.js +51 -24
- 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 +2 -2
- package/ui/frame/frame-helper-for-android.js +14 -5
- package/ui/frame/frame-helper-for-android.js.map +1 -1
- package/ui/frame/frame-helpers.js.map +1 -1
- package/ui/frame/frame-interfaces.d.ts +1 -1
- package/ui/frame/frame-interfaces.js.map +1 -1
- package/ui/frame/frame-stack.d.ts +22 -1
- package/ui/frame/frame-stack.js +43 -5
- package/ui/frame/frame-stack.js.map +1 -1
- package/ui/frame/index.android.d.ts +1 -2
- package/ui/frame/index.android.js +152 -53
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.d.ts +15 -5
- package/ui/frame/index.ios.d.ts +1 -1
- package/ui/frame/index.ios.js +86 -26
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/gestures/gestures-common.js.map +1 -1
- package/ui/gestures/gestures-types.d.ts +2 -0
- package/ui/gestures/gestures-types.js.map +1 -1
- package/ui/gestures/index.android.d.ts +1 -1
- package/ui/gestures/index.android.js +159 -124
- package/ui/gestures/index.android.js.map +1 -1
- package/ui/gestures/index.ios.js +30 -1
- package/ui/gestures/index.ios.js.map +1 -1
- package/ui/gestures/touch-manager.d.ts +1 -2
- package/ui/gestures/touch-manager.js +79 -50
- package/ui/gestures/touch-manager.js.map +1 -1
- package/ui/html-view/html-view-common.js.map +1 -1
- package/ui/html-view/index.android.js.map +1 -1
- 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 +13 -1
- package/ui/image/index.android.js.map +1 -1
- package/ui/image/index.ios.js.map +1 -1
- package/ui/image/symbol-effects-common.js.map +1 -1
- package/ui/image/symbol-effects.android.js.map +1 -1
- package/ui/image/symbol-effects.ios.js.map +1 -1
- package/ui/image-cache/image-cache-common.js.map +1 -1
- package/ui/image-cache/index.android.js.map +1 -1
- package/ui/image-cache/index.ios.js.map +1 -1
- package/ui/index.d.ts +1 -1
- package/ui/index.js.map +1 -1
- package/ui/label/index.android.js.map +1 -1
- package/ui/label/index.ios.js.map +1 -1
- package/ui/layouts/absolute-layout/absolute-layout-common.js.map +1 -1
- package/ui/layouts/absolute-layout/index.android.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/dock-layout-common.js.map +1 -1
- package/ui/layouts/dock-layout/index.android.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 +7 -0
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js +18 -0
- 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 +246 -195
- package/ui/layouts/flexbox-layout/index.ios.js.map +1 -1
- package/ui/layouts/grid-layout/grid-layout-common.js.map +1 -1
- package/ui/layouts/grid-layout/index.android.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/index.js.map +1 -1
- package/ui/layouts/layout-base-common.d.ts +1 -0
- package/ui/layouts/layout-base-common.js +23 -1
- package/ui/layouts/layout-base-common.js.map +1 -1
- package/ui/layouts/layout-base.android.js.map +1 -1
- package/ui/layouts/layout-base.ios.js.map +1 -1
- package/ui/layouts/liquid-glass/index.android.js.map +1 -1
- package/ui/layouts/liquid-glass/index.ios.d.ts +0 -1
- package/ui/layouts/liquid-glass/index.ios.js +2 -43
- package/ui/layouts/liquid-glass/index.ios.js.map +1 -1
- package/ui/layouts/liquid-glass/liquid-glass-common.js.map +1 -1
- package/ui/layouts/liquid-glass-container/index.android.js.map +1 -1
- package/ui/layouts/liquid-glass-container/index.ios.d.ts +0 -1
- package/ui/layouts/liquid-glass-container/index.ios.js +2 -43
- package/ui/layouts/liquid-glass-container/index.ios.js.map +1 -1
- package/ui/layouts/liquid-glass-container/liquid-glass-container-common.js.map +1 -1
- package/ui/layouts/root-layout/index.android.js.map +1 -1
- package/ui/layouts/root-layout/index.ios.js.map +1 -1
- package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
- package/ui/layouts/root-layout/root-layout-stack.js.map +1 -1
- package/ui/layouts/stack-layout/index.android.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/stack-layout/stack-layout-common.js.map +1 -1
- package/ui/layouts/wrap-layout/index.android.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/layouts/wrap-layout/wrap-layout-common.js.map +1 -1
- package/ui/list-picker/index.android.js.map +1 -1
- package/ui/list-picker/index.ios.js.map +1 -1
- package/ui/list-picker/list-picker-common.js.map +1 -1
- package/ui/list-view/index.android.js +2 -2
- package/ui/list-view/index.android.js.map +1 -1
- package/ui/list-view/index.d.ts +47 -3
- package/ui/list-view/index.ios.d.ts +13 -3
- package/ui/list-view/index.ios.js +132 -41
- package/ui/list-view/index.ios.js.map +1 -1
- package/ui/list-view/list-view-common.d.ts +19 -0
- package/ui/list-view/list-view-common.js +30 -0
- package/ui/list-view/list-view-common.js.map +1 -1
- package/ui/page/events.js.map +1 -1
- 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 +26 -17
- package/ui/page/index.ios.js.map +1 -1
- package/ui/page/page-common.d.ts +5 -1
- package/ui/page/page-common.js.map +1 -1
- package/ui/placeholder/index.android.js.map +1 -1
- package/ui/placeholder/index.js.map +1 -1
- package/ui/placeholder/placeholder-common.js.map +1 -1
- package/ui/progress/index.android.js.map +1 -1
- package/ui/progress/index.ios.js.map +1 -1
- package/ui/progress/progress-common.js.map +1 -1
- package/ui/proxy-view-container/index.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.android.d.ts +2 -1
- package/ui/scroll-view/index.android.js +4 -1
- package/ui/scroll-view/index.android.js.map +1 -1
- package/ui/scroll-view/index.d.ts +53 -0
- package/ui/scroll-view/index.ios.d.ts +13 -1
- package/ui/scroll-view/index.ios.js +100 -20
- package/ui/scroll-view/index.ios.js.map +1 -1
- package/ui/scroll-view/scroll-view-common.d.ts +13 -0
- package/ui/scroll-view/scroll-view-common.js +27 -0
- package/ui/scroll-view/scroll-view-common.js.map +1 -1
- package/ui/search-bar/index.android.js.map +1 -1
- package/ui/search-bar/index.ios.js.map +1 -1
- package/ui/search-bar/search-bar-common.js.map +1 -1
- package/ui/segmented-bar/index.android.js.map +1 -1
- package/ui/segmented-bar/index.ios.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/slider/index.android.js.map +1 -1
- package/ui/slider/index.ios.js.map +1 -1
- package/ui/slider/slider-common.js.map +1 -1
- package/ui/split-view/index.android.js.map +1 -1
- package/ui/split-view/index.ios.js.map +1 -1
- package/ui/split-view/split-view-common.js.map +1 -1
- package/ui/styling/background-common.d.ts +2 -0
- package/ui/styling/background-common.js +8 -0
- package/ui/styling/background-common.js.map +1 -1
- package/ui/styling/background.android.d.ts +4 -1
- package/ui/styling/background.android.js +5 -2
- package/ui/styling/background.android.js.map +1 -1
- package/ui/styling/background.d.ts +1 -1
- package/ui/styling/background.ios.js +9 -2
- package/ui/styling/background.ios.js.map +1 -1
- package/ui/styling/box-shadow.js.map +1 -1
- package/ui/styling/clip-path-function.js.map +1 -1
- package/ui/styling/converters.js.map +1 -1
- package/ui/styling/css-animation-parser.js.map +1 -1
- package/ui/styling/css-selector.d.ts +60 -13
- package/ui/styling/css-selector.js +311 -50
- package/ui/styling/css-selector.js.map +1 -1
- package/ui/styling/css-shadow.js.map +1 -1
- package/ui/styling/css-stroke.js.map +1 -1
- package/ui/styling/css-transform.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-common.js.map +1 -1
- package/ui/styling/font-interfaces.js.map +1 -1
- package/ui/styling/font.android.js.map +1 -1
- package/ui/styling/font.ios.js.map +1 -1
- package/ui/styling/length-shared.d.ts +2 -0
- package/ui/styling/length-shared.js +29 -2
- package/ui/styling/length-shared.js.map +1 -1
- package/ui/styling/linear-gradient.js.map +1 -1
- package/ui/styling/style/index.d.ts +16 -0
- package/ui/styling/style/index.js +1 -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 +172 -101
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/styling/style-scope.d.ts +24 -3
- package/ui/styling/style-scope.js +455 -63
- package/ui/styling/style-scope.js.map +1 -1
- package/ui/styling/styling-profile.js.map +1 -1
- package/ui/styling/styling-shared.js.map +1 -1
- package/ui/switch/index.android.js.map +1 -1
- package/ui/switch/index.ios.js +5 -1
- package/ui/switch/index.ios.js.map +1 -1
- package/ui/switch/switch-common.js.map +1 -1
- package/ui/tab-view/index.android.js +4 -1
- package/ui/tab-view/index.android.js.map +1 -1
- package/ui/tab-view/index.d.ts +5 -3
- package/ui/tab-view/index.ios.d.ts +2 -1
- package/ui/tab-view/index.ios.js +81 -18
- 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 +17 -1
- package/ui/tab-view/tab-view-common.js.map +1 -1
- package/ui/text-base/formatted-string.js.map +1 -1
- package/ui/text-base/index.android.js +5 -8
- package/ui/text-base/index.android.js.map +1 -1
- package/ui/text-base/index.ios.d.ts +3 -0
- package/ui/text-base/index.ios.js +25 -3
- package/ui/text-base/index.ios.js.map +1 -1
- package/ui/text-base/span.js.map +1 -1
- package/ui/text-base/text-base-common.js.map +1 -1
- package/ui/text-field/index.android.js.map +1 -1
- package/ui/text-field/index.ios.js +13 -5
- package/ui/text-field/index.ios.js.map +1 -1
- package/ui/text-field/text-field-common.js.map +1 -1
- package/ui/text-view/index.android.js.map +1 -1
- package/ui/text-view/index.ios.js.map +1 -1
- package/ui/text-view/text-view-common.js.map +1 -1
- package/ui/time-picker/index.android.js.map +1 -1
- package/ui/time-picker/index.ios.js.map +1 -1
- package/ui/time-picker/time-picker-common.js.map +1 -1
- package/ui/transition/fade-transition.android.js.map +1 -1
- package/ui/transition/fade-transition.ios.js.map +1 -1
- package/ui/transition/flip-transition.android.js.map +1 -1
- package/ui/transition/index.android.js.map +1 -1
- package/ui/transition/index.d.ts +2 -1
- package/ui/transition/index.ios.js.map +1 -1
- package/ui/transition/modal-transition.android.js.map +1 -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.android.d.ts +4 -0
- package/ui/transition/page-transition.android.js +174 -45
- package/ui/transition/page-transition.android.js.map +1 -1
- package/ui/transition/page-transition.ios.d.ts +5 -0
- package/ui/transition/page-transition.ios.js +298 -36
- 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 +48 -0
- package/ui/transition/shared-transition-helper.ios.js +977 -95
- package/ui/transition/shared-transition-helper.ios.js.map +1 -1
- package/ui/transition/shared-transition.d.ts +134 -0
- package/ui/transition/shared-transition.js +90 -2
- package/ui/transition/shared-transition.js.map +1 -1
- package/ui/transition/slide-transition.android.js.map +1 -1
- package/ui/transition/slide-transition.ios.js.map +1 -1
- package/ui/utils.android.js.map +1 -1
- package/ui/utils.d.ts +2 -0
- package/ui/utils.ios.js.map +1 -1
- package/ui/web-view/index.android.js.map +1 -1
- package/ui/web-view/index.ios.js.map +1 -1
- package/ui/web-view/web-view-common.js.map +1 -1
- package/ui/web-view/web-view-interfaces.js.map +1 -1
- package/utils/animation-helpers.js.map +1 -1
- package/utils/common.js.map +1 -1
- package/utils/constants.android.js.map +1 -1
- package/utils/constants.ios.js.map +1 -1
- package/utils/debug-source.js.map +1 -1
- package/utils/debug.js.map +1 -1
- package/utils/index.android.js.map +1 -1
- package/utils/index.ios.js.map +1 -1
- package/utils/layout-helper/index.android.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/layout-helper/layout-helper-common.js.map +1 -1
- package/utils/layout-helper/layout-helper-shared.js.map +1 -1
- package/utils/lazy.js.map +1 -1
- package/utils/macrotask-scheduler.js.map +1 -1
- package/utils/mainthread-helper.android.js.map +1 -1
- package/utils/mainthread-helper.ios.js.map +1 -1
- package/utils/module-merge.js.map +1 -1
- package/utils/native-helper-for-android.js +6 -2
- package/utils/native-helper-for-android.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 +52 -2
- package/utils/native-helper.ios.js +35 -5
- package/utils/native-helper.ios.js.map +1 -1
- package/utils/native-helper.types.d.ts +2 -0
- package/utils/number-utils.js.map +1 -1
- package/utils/platform-check.d.ts +1 -1
- package/utils/platform-check.js.map +1 -1
- package/utils/shared.js.map +1 -1
- package/utils/types.js.map +1 -1
- package/utils/utils-shared.js.map +1 -1
- package/wgc/atob.js.map +1 -1
- package/wgc/btoa.js.map +1 -1
- package/wgc/crypto/SubtleCrypto.js.map +1 -1
- package/wgc/crypto/index.d.ts +1 -1
- package/wgc/crypto/index.js +12 -8
- package/wgc/crypto/index.js.map +1 -1
- package/wgc/index.js.map +1 -1
- package/xhr/index.js.map +1 -1
- package/xml/index.js.map +1 -1
|
@@ -3,6 +3,7 @@ import { ViewHelper } from './view-helper-common';
|
|
|
3
3
|
import { SDK_VERSION } from '../../../../utils/constants';
|
|
4
4
|
import { layout, Trace } from './view-helper-shared';
|
|
5
5
|
import { ios as iosUtils, getWindow } from '../../../../utils';
|
|
6
|
+
import { CoreTypes } from '../../../../core-types';
|
|
6
7
|
export * from './view-helper-common';
|
|
7
8
|
export const AndroidHelper = 0;
|
|
8
9
|
var UILayoutViewController = (function (_super) {
|
|
@@ -26,6 +27,7 @@ var UILayoutViewController = (function (_super) {
|
|
|
26
27
|
if (owner) {
|
|
27
28
|
IOSHelper.updateConstraints(this, owner);
|
|
28
29
|
}
|
|
30
|
+
// this.edgesForExtendedLayout = UIRectEdgeBottom;
|
|
29
31
|
};
|
|
30
32
|
UILayoutViewController.prototype.viewDidLayoutSubviews = function () {
|
|
31
33
|
var _a;
|
|
@@ -178,7 +180,99 @@ var UIPopoverPresentationControllerDelegateImp = (function (_super) {
|
|
|
178
180
|
UIPopoverPresentationControllerDelegateImp.ObjCProtocols = [UIPopoverPresentationControllerDelegate];
|
|
179
181
|
return UIPopoverPresentationControllerDelegateImp;
|
|
180
182
|
}(NSObject));
|
|
183
|
+
// UIRectEdge values; the enum lives in the UIUtilities typings.
|
|
184
|
+
const RECT_EDGES = { top: 1, left: 2, bottom: 4, right: 8 };
|
|
185
|
+
/**
|
|
186
|
+
* Bars a scroll view's content passes beneath, registered with UIKit so its
|
|
187
|
+
* scroll edge effect covers them (iOS 26+). A bar may load after the scroll
|
|
188
|
+
* view, be recreated, or live in another window (a keyboard accessory), so
|
|
189
|
+
* entries are kept per NativeScript view and registered whenever both native
|
|
190
|
+
* views exist.
|
|
191
|
+
*/
|
|
192
|
+
export class ScrollEdgeContainers {
|
|
193
|
+
constructor(owner) {
|
|
194
|
+
this.owner = owner;
|
|
195
|
+
this.entries = new Map();
|
|
196
|
+
this.onContainerLoaded = () => this.attach();
|
|
197
|
+
this.onContainerUnloaded = (args) => {
|
|
198
|
+
const view = args.object;
|
|
199
|
+
const entry = this.entries.get(view);
|
|
200
|
+
if (entry) {
|
|
201
|
+
this.release(view, entry);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
add(view, edge) {
|
|
206
|
+
this.remove(view);
|
|
207
|
+
this.entries.set(view, { edge, interaction: null });
|
|
208
|
+
view.on('loaded', this.onContainerLoaded);
|
|
209
|
+
view.on('unloaded', this.onContainerUnloaded);
|
|
210
|
+
this.attach();
|
|
211
|
+
}
|
|
212
|
+
remove(view) {
|
|
213
|
+
const entry = this.entries.get(view);
|
|
214
|
+
if (!entry) {
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
view.off('loaded', this.onContainerLoaded);
|
|
218
|
+
view.off('unloaded', this.onContainerUnloaded);
|
|
219
|
+
this.release(view, entry);
|
|
220
|
+
this.entries.delete(view);
|
|
221
|
+
}
|
|
222
|
+
/** Registers every entry whose native views exist. */
|
|
223
|
+
attach() {
|
|
224
|
+
const scrollView = this.owner.nativeViewProtected;
|
|
225
|
+
if (!scrollView || SDK_VERSION < 26) {
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
this.entries.forEach((entry, view) => {
|
|
229
|
+
const container = view.nativeViewProtected;
|
|
230
|
+
if (entry.interaction || !container) {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
const interaction = UIScrollEdgeElementContainerInteraction.new();
|
|
234
|
+
interaction.scrollView = scrollView;
|
|
235
|
+
interaction.edge = RECT_EDGES[entry.edge];
|
|
236
|
+
container.addInteraction(interaction);
|
|
237
|
+
entry.interaction = interaction;
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
/** Unregisters every entry; they register again on the next attach. */
|
|
241
|
+
detach() {
|
|
242
|
+
this.entries.forEach((entry, view) => this.release(view, entry));
|
|
243
|
+
}
|
|
244
|
+
release(view, entry) {
|
|
245
|
+
if (!entry.interaction) {
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
view.nativeViewProtected?.removeInteraction(entry.interaction);
|
|
249
|
+
entry.interaction = null;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
181
252
|
export class IOSHelper {
|
|
253
|
+
/**
|
|
254
|
+
* Styles the scroll edge effect on every edge of a scroll view, or hides
|
|
255
|
+
* them all for `none`. No-op before iOS 26.
|
|
256
|
+
*/
|
|
257
|
+
static setScrollEdgeEffect(scrollView, effect) {
|
|
258
|
+
if (!scrollView || SDK_VERSION < 26) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
const hidden = effect === CoreTypes.ScrollEdgeEffect.none;
|
|
262
|
+
let style = UIScrollEdgeEffectStyle.automaticStyle;
|
|
263
|
+
if (effect === CoreTypes.ScrollEdgeEffect.soft) {
|
|
264
|
+
style = UIScrollEdgeEffectStyle.softStyle;
|
|
265
|
+
}
|
|
266
|
+
else if (effect === CoreTypes.ScrollEdgeEffect.hard) {
|
|
267
|
+
style = UIScrollEdgeEffectStyle.hardStyle;
|
|
268
|
+
}
|
|
269
|
+
for (const edgeEffect of [scrollView.topEdgeEffect, scrollView.bottomEdgeEffect, scrollView.leftEdgeEffect, scrollView.rightEdgeEffect]) {
|
|
270
|
+
edgeEffect.hidden = hidden;
|
|
271
|
+
if (!hidden) {
|
|
272
|
+
edgeEffect.style = style;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
182
276
|
static getParentWithViewController(view) {
|
|
183
277
|
while (view && !view.viewController) {
|
|
184
278
|
view = view.parent;
|
|
@@ -186,6 +280,34 @@ export class IOSHelper {
|
|
|
186
280
|
// Note: Might return undefined if no parent with viewController is found
|
|
187
281
|
return view;
|
|
188
282
|
}
|
|
283
|
+
static isHostedInView(view) {
|
|
284
|
+
const container = view.nativeViewProtected?.superview;
|
|
285
|
+
if (!container) {
|
|
286
|
+
return false;
|
|
287
|
+
}
|
|
288
|
+
let parent = view.parent;
|
|
289
|
+
while (parent && !parent.nativeViewProtected) {
|
|
290
|
+
parent = parent.parent;
|
|
291
|
+
}
|
|
292
|
+
return container === parent?.nativeViewProtected;
|
|
293
|
+
}
|
|
294
|
+
static extendUnderContainerSafeArea(nativeView, frame) {
|
|
295
|
+
const container = nativeView?.superview;
|
|
296
|
+
if (!container) {
|
|
297
|
+
return null;
|
|
298
|
+
}
|
|
299
|
+
// Edges laid out against the container's safe area move out to its bounds; a controller's view insets its own content.
|
|
300
|
+
const safeArea = container.safeAreaLayoutGuide.layoutFrame;
|
|
301
|
+
const bounds = container.bounds;
|
|
302
|
+
const tolerance = 0.5;
|
|
303
|
+
const left = frame.origin.x <= safeArea.origin.x + tolerance ? bounds.origin.x : frame.origin.x;
|
|
304
|
+
const top = frame.origin.y <= safeArea.origin.y + tolerance ? bounds.origin.y : frame.origin.y;
|
|
305
|
+
const frameRight = frame.origin.x + frame.size.width;
|
|
306
|
+
const frameBottom = frame.origin.y + frame.size.height;
|
|
307
|
+
const right = frameRight >= safeArea.origin.x + safeArea.size.width - tolerance ? bounds.origin.x + bounds.size.width : frameRight;
|
|
308
|
+
const bottom = frameBottom >= safeArea.origin.y + safeArea.size.height - tolerance ? bounds.origin.y + bounds.size.height : frameBottom;
|
|
309
|
+
return CGRectMake(left, top, right - left, bottom - top);
|
|
310
|
+
}
|
|
189
311
|
static invalidateStatusBarAppearance(controller, reason = '') {
|
|
190
312
|
try {
|
|
191
313
|
if (!controller) {
|
|
@@ -265,6 +387,21 @@ export class IOSHelper {
|
|
|
265
387
|
}
|
|
266
388
|
return rootView.safeAreaLayoutGuide;
|
|
267
389
|
}
|
|
390
|
+
static insertNativeSubview(parentNativeView, childNativeView, atIndex) {
|
|
391
|
+
// Reading subviews copies the array, so appends skip it.
|
|
392
|
+
if (typeof atIndex !== 'number') {
|
|
393
|
+
parentNativeView.addSubview(childNativeView);
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
const subviews = parentNativeView.subviews;
|
|
397
|
+
if (atIndex >= subviews.count) {
|
|
398
|
+
parentNativeView.addSubview(childNativeView);
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
// insertSubview:atIndex: also counts non-view sublayers, e.g. gradient backgrounds
|
|
402
|
+
parentNativeView.insertSubviewBelowSubview(childNativeView, subviews.objectAtIndex(atIndex));
|
|
403
|
+
}
|
|
404
|
+
}
|
|
268
405
|
static layoutView(controller, owner) {
|
|
269
406
|
let layoutGuide = controller.view.safeAreaLayoutGuide;
|
|
270
407
|
if (!layoutGuide) {
|
|
@@ -310,6 +447,25 @@ export class IOSHelper {
|
|
|
310
447
|
}
|
|
311
448
|
return CGRectMake(left, top, width, height);
|
|
312
449
|
}
|
|
450
|
+
/**
|
|
451
|
+
* Returns `true` when an ancestor ScrollView has `iosContentInsetAdjustmentBehavior`
|
|
452
|
+
* other than `'never'`, meaning iOS applies safe-area insets via `adjustedContentInset`.
|
|
453
|
+
* `View.getSafeAreaInsets` returns empty insets in that case so nested content
|
|
454
|
+
* doesn't double-count them.
|
|
455
|
+
*
|
|
456
|
+
* Duck-types on the property name to avoid a circular import of ScrollView.
|
|
457
|
+
* The property defaults to `'never'`, so this returns `false` unless explicitly opted in.
|
|
458
|
+
*/
|
|
459
|
+
static hasIOSManagedInsetAncestor(view) {
|
|
460
|
+
let p = view.parent;
|
|
461
|
+
while (p) {
|
|
462
|
+
if (typeof p.iosContentInsetAdjustmentBehavior === 'string' && p.iosContentInsetAdjustmentBehavior !== 'never') {
|
|
463
|
+
return true;
|
|
464
|
+
}
|
|
465
|
+
p = p.parent;
|
|
466
|
+
}
|
|
467
|
+
return false;
|
|
468
|
+
}
|
|
313
469
|
static shrinkToSafeArea(view, frame) {
|
|
314
470
|
const insets = view.getSafeAreaInsets();
|
|
315
471
|
if (insets.left || insets.top) {
|
|
@@ -324,6 +480,11 @@ export class IOSHelper {
|
|
|
324
480
|
}
|
|
325
481
|
static expandBeyondSafeArea(view, frame) {
|
|
326
482
|
const availableSpace = IOSHelper.getAvailableSpaceFromParent(view, frame);
|
|
483
|
+
// Detached NS subtrees (e.g. TabView's `iosBottomAccessory`) have no safe-area
|
|
484
|
+
// reference rects to expand against; leave the frame as-is.
|
|
485
|
+
if (!availableSpace || !availableSpace.safeArea || !availableSpace.fullscreen) {
|
|
486
|
+
return frame;
|
|
487
|
+
}
|
|
327
488
|
const safeArea = availableSpace.safeArea;
|
|
328
489
|
const fullscreen = availableSpace.fullscreen;
|
|
329
490
|
const inWindow = availableSpace.inWindow;
|
|
@@ -364,11 +525,15 @@ export class IOSHelper {
|
|
|
364
525
|
while (parent && !parent.viewController && !(parent.nativeViewProtected instanceof UIScrollView)) {
|
|
365
526
|
parent = parent.parent;
|
|
366
527
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
528
|
+
// `parent` is null when `view` is attached to UIKit but has no NS parent
|
|
529
|
+
// (e.g. TabView's `iosBottomAccessory` hosted in UITabAccessory.contentView).
|
|
530
|
+
if (parent) {
|
|
531
|
+
if (parent.nativeViewProtected instanceof UIScrollView) {
|
|
532
|
+
scrollView = parent.nativeViewProtected;
|
|
533
|
+
}
|
|
534
|
+
else if (parent.viewController) {
|
|
535
|
+
viewControllerView = parent.viewController.view;
|
|
536
|
+
}
|
|
372
537
|
}
|
|
373
538
|
}
|
|
374
539
|
let fullscreen = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../../../../packages/core/ui/core/view/view-helper/index.ios.ts"],"names":[],"mappings":"AAIA,WAAW;AACX,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,GAAG,IAAI,QAAQ,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE/D,cAAc,sBAAsB,CAAC;AACrC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC;;;;;IAJnB,CAAC;;;;;IAMP,CAAC;;;;IAOqC,CAAC;;;;;;;QAYvC,CAAC;IAAS,CAAC;;;;;;;;;;;;gBAgCiC,CAAC;;;;;;;;;oBActB,CAAC;;;;;;;;;;;oBA0B6B,CAAC;;;oBAIrC,CAAC;gBAAqB,CAAC;YACzC,CAAC;;QAI6B,CAAC;IAAS,CAAC;;;;;;;QASX,CAAC;;;;;QAQP,CAAC;IAAS,CAAC;;;;;;;QAMoI,CAAC;IAAS,CAAC;;;;;QAsBrK,CAAC;;;;;;;;;;;;;;;gBAwBM,CAA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';\n\n// Requires\nimport { ViewHelper } from './view-helper-common';\nimport { SDK_VERSION } from '../../../../utils/constants';\nimport { layout, Trace } from './view-helper-shared';\nimport { ios as iosUtils, getWindow } from '../../../../utils';\nimport { CoreTypes } from '../../../../core-types';\nimport type { EventData } from '../../../../data/observable';\n\nexport * from './view-helper-common';\nexport const AndroidHelper = 0;\n\n@NativeClass\nclass UILayoutViewController extends UIViewController {\n\tpublic owner: WeakRef<View>;\n\t// used to know if we are a modal controller\n\t// in this case the owner has a parent (rootView) but we still need to load/unload it\n\tpublic modal;\n\n\tpublic static initWithOwner(owner: WeakRef<View>): UILayoutViewController {\n\t\tconst controller = <UILayoutViewController>UILayoutViewController.new();\n\t\tcontroller.owner = owner;\n\n\t\treturn controller;\n\t}\n\n\tpublic viewDidLoad(): void {\n\t\tsuper.viewDidLoad();\n\n\t\t// Unify translucent and opaque bars layout\n\t\t// this.edgesForExtendedLayout = UIRectEdgeBottom;\n\t\tthis.extendedLayoutIncludesOpaqueBars = true;\n\t}\n\n\tpublic viewWillLayoutSubviews(): void {\n\t\tsuper.viewWillLayoutSubviews();\n\t\tconst owner = this.owner?.deref();\n\t\tif (owner) {\n\t\t\tIOSHelper.updateConstraints(this, owner);\n\t\t}\n\t}\n\n\tpublic viewDidLayoutSubviews(): void {\n\t\tsuper.viewDidLayoutSubviews();\n\t\tconst owner = this.owner?.deref();\n\t\tif (owner) {\n\t\t\tif (SDK_VERSION >= 11) {\n\t\t\t\t// Handle nested UILayoutViewController safe area application.\n\t\t\t\t// Currently, UILayoutViewController can be nested only in a TabView.\n\t\t\t\t// The TabView itself is handled by the OS, so we check the TabView's parent (usually a Page, but can be a Layout).\n\t\t\t\tconst tabViewItem = owner.parent;\n\t\t\t\tconst tabView = tabViewItem && tabViewItem.parent;\n\t\t\t\tlet parent = tabView && tabView.parent;\n\n\t\t\t\t// Handle Angular scenario where TabView is in a ProxyViewContainer\n\t\t\t\t// It is possible to wrap components in ProxyViewContainers indefinitely\n\t\t\t\t// Not using instanceof ProxyViewContainer to avoid circular dependency\n\t\t\t\t// TODO: Try moving UILayoutViewController out of view module\n\t\t\t\twhile (parent && !parent.nativeViewProtected) {\n\t\t\t\t\tparent = parent.parent;\n\t\t\t\t}\n\n\t\t\t\tif (parent) {\n\t\t\t\t\tconst parentPageInsetsTop = parent.nativeViewProtected.safeAreaInsets.top;\n\t\t\t\t\tconst parentPageInsetsBottom = parent.nativeViewProtected.safeAreaInsets.bottom;\n\t\t\t\t\tlet currentInsetsTop = this.view.safeAreaInsets.top;\n\t\t\t\t\tlet currentInsetsBottom = this.view.safeAreaInsets.bottom;\n\n\t\t\t\t\t// Safe area insets include additional safe area insets too, so subtract old values\n\t\t\t\t\tif (this.additionalSafeAreaInsets) {\n\t\t\t\t\t\tcurrentInsetsTop -= this.additionalSafeAreaInsets.top;\n\t\t\t\t\t\tcurrentInsetsBottom -= this.additionalSafeAreaInsets.bottom;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst additionalInsetsTop = Math.max(parentPageInsetsTop - currentInsetsTop, 0);\n\t\t\t\t\tconst additionalInsetsBottom = Math.max(parentPageInsetsBottom - currentInsetsBottom, 0);\n\n\t\t\t\t\tif (additionalInsetsTop > 0 || additionalInsetsBottom > 0) {\n\t\t\t\t\t\tconst additionalInsets = new UIEdgeInsets({\n\t\t\t\t\t\t\ttop: additionalInsetsTop,\n\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\tbottom: additionalInsetsBottom,\n\t\t\t\t\t\t\tright: 0,\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.additionalSafeAreaInsets = additionalInsets;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.additionalSafeAreaInsets = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tIOSHelper.layoutView(this, owner);\n\t\t}\n\t}\n\n\tpublic viewWillAppear(animated: boolean): void {\n\t\tsuper.viewWillAppear(animated);\n\t\tconst owner = this.owner?.deref();\n\t\tif (!owner) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Ensure iOS re-queries `preferredStatusBarStyle` for this controller.\n\t\tIOSHelper.invalidateStatusBarAppearance(this, 'UILayoutViewController.viewWillAppear');\n\n\t\tIOSHelper.updateAutoAdjustScrollInsets(this, owner);\n\n\t\tif (!owner.isLoaded && (!owner.parent || this.modal)) {\n\t\t\towner.callLoaded();\n\t\t}\n\t}\n\n\tpublic viewDidDisappear(animated: boolean): void {\n\t\tsuper.viewDidDisappear(animated);\n\t\tconst owner = this.owner?.deref();\n\t\tif (owner && owner.isLoaded && (!owner.parent || this.modal)) {\n\t\t\towner.callUnloaded();\n\t\t}\n\t}\n\n\t// Forward status bar appearance to our content controller when available.\n\t// Without this, iOS may use this controller's own preferredStatusBarStyle,\n\t// which can be unrelated to the currently shown Page.\n\t// @ts-ignore\n\tpublic get childViewControllerForStatusBarStyle(): UIViewController {\n\t\treturn this.presentedViewController || this.childViewControllers?.lastObject;\n\t}\n\n\t// Mind implementation for other controllers\n\tpublic traitCollectionDidChange(previousTraitCollection: UITraitCollection): void {\n\t\tsuper.traitCollectionDidChange(previousTraitCollection);\n\n\t\tconst owner = this.owner?.deref();\n\t\tif (owner) {\n\t\t\tif (SDK_VERSION >= 13) {\n\t\t\t\tif (this.traitCollection.hasDifferentColorAppearanceComparedToTraitCollection && this.traitCollection.hasDifferentColorAppearanceComparedToTraitCollection(previousTraitCollection)) {\n\t\t\t\t\towner.notify({\n\t\t\t\t\t\teventName: IOSHelper.traitCollectionColorAppearanceChangedEvent,\n\t\t\t\t\t\tobject: owner,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.traitCollection.layoutDirection !== previousTraitCollection.layoutDirection) {\n\t\t\t\towner.notify({\n\t\t\t\t\teventName: IOSHelper.traitCollectionLayoutDirectionChangedEvent,\n\t\t\t\t\tobject: owner,\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\t// @ts-ignore\n\tpublic get preferredStatusBarStyle(): UIStatusBarStyle {\n\t\tconst owner = this.owner?.deref();\n\t\tif (owner?.statusBarStyle) {\n\t\t\tif (SDK_VERSION >= 13) {\n\t\t\t\treturn owner.statusBarStyle === 'light' ? UIStatusBarStyle.LightContent : UIStatusBarStyle.DarkContent;\n\t\t\t} else {\n\t\t\t\treturn owner.statusBarStyle === 'light' ? UIStatusBarStyle.LightContent : UIStatusBarStyle.Default;\n\t\t\t}\n\t\t}\n\t\treturn UIStatusBarStyle.Default;\n\t}\n}\n\n@NativeClass\nclass UIAdaptivePresentationControllerDelegateImp extends NSObject implements UIAdaptivePresentationControllerDelegate {\n\tpublic static ObjCProtocols = [UIAdaptivePresentationControllerDelegate];\n\n\towner: WeakRef<View>;\n\tclosedCallback: Function;\n\n\tpublic static initWithOwnerAndCallback(owner: WeakRef<View>, whenClosedCallback: Function): UIAdaptivePresentationControllerDelegateImp {\n\t\tconst instance = <UIAdaptivePresentationControllerDelegateImp>super.new();\n\t\tinstance.owner = owner;\n\t\tinstance.closedCallback = whenClosedCallback;\n\n\t\treturn instance;\n\t}\n\n\tpublic presentationControllerDidDismiss(presentationController: UIPresentationController) {\n\t\tconst owner = this.owner?.deref();\n\t\tif (owner && typeof this.closedCallback === 'function') {\n\t\t\tthis.closedCallback();\n\t\t}\n\t}\n}\n\n@NativeClass\nclass UIPopoverPresentationControllerDelegateImp extends NSObject implements UIPopoverPresentationControllerDelegate {\n\tpublic static ObjCProtocols = [UIPopoverPresentationControllerDelegate];\n\n\towner: WeakRef<View>;\n\tclosedCallback: Function;\n\n\tpublic static initWithOwnerAndCallback(owner: WeakRef<View>, whenClosedCallback: Function): UIPopoverPresentationControllerDelegateImp {\n\t\tconst instance = <UIPopoverPresentationControllerDelegateImp>super.new();\n\t\tinstance.owner = owner;\n\t\tinstance.closedCallback = whenClosedCallback;\n\n\t\treturn instance;\n\t}\n\n\tpublic popoverPresentationControllerDidDismissPopover(popoverPresentationController: UIPopoverPresentationController) {\n\t\tconst owner = this.owner?.deref();\n\t\tif (owner && typeof this.closedCallback === 'function') {\n\t\t\tthis.closedCallback();\n\t\t}\n\t}\n}\n\n// UIRectEdge values; the enum lives in the UIUtilities typings.\nconst RECT_EDGES: Record<CoreTypes.ScrollEdgeType, number> = { top: 1, left: 2, bottom: 4, right: 8 };\n\ninterface ScrollEdgeContainerEntry {\n\tedge: CoreTypes.ScrollEdgeType;\n\tinteraction: UIScrollEdgeElementContainerInteraction | null;\n}\n\n/**\n * Bars a scroll view's content passes beneath, registered with UIKit so its\n * scroll edge effect covers them (iOS 26+). A bar may load after the scroll\n * view, be recreated, or live in another window (a keyboard accessory), so\n * entries are kept per NativeScript view and registered whenever both native\n * views exist.\n */\nexport class ScrollEdgeContainers {\n\tprivate readonly entries = new Map<View, ScrollEdgeContainerEntry>();\n\tprivate readonly onContainerLoaded = () => this.attach();\n\tprivate readonly onContainerUnloaded = (args: EventData) => {\n\t\tconst view = args.object as View;\n\t\tconst entry = this.entries.get(view);\n\t\tif (entry) {\n\t\t\tthis.release(view, entry);\n\t\t}\n\t};\n\n\tconstructor(private readonly owner: { nativeViewProtected: UIScrollView }) {}\n\n\tadd(view: View, edge: CoreTypes.ScrollEdgeType): void {\n\t\tthis.remove(view);\n\t\tthis.entries.set(view, { edge, interaction: null });\n\t\tview.on('loaded', this.onContainerLoaded);\n\t\tview.on('unloaded', this.onContainerUnloaded);\n\t\tthis.attach();\n\t}\n\n\tremove(view: View): void {\n\t\tconst entry = this.entries.get(view);\n\t\tif (!entry) {\n\t\t\treturn;\n\t\t}\n\t\tview.off('loaded', this.onContainerLoaded);\n\t\tview.off('unloaded', this.onContainerUnloaded);\n\t\tthis.release(view, entry);\n\t\tthis.entries.delete(view);\n\t}\n\n\t/** Registers every entry whose native views exist. */\n\tattach(): void {\n\t\tconst scrollView = this.owner.nativeViewProtected;\n\t\tif (!scrollView || SDK_VERSION < 26) {\n\t\t\treturn;\n\t\t}\n\t\tthis.entries.forEach((entry, view) => {\n\t\t\tconst container = view.nativeViewProtected as UIView;\n\t\t\tif (entry.interaction || !container) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst interaction = UIScrollEdgeElementContainerInteraction.new();\n\t\t\tinteraction.scrollView = scrollView;\n\t\t\tinteraction.edge = RECT_EDGES[entry.edge];\n\t\t\tcontainer.addInteraction(interaction);\n\t\t\tentry.interaction = interaction;\n\t\t});\n\t}\n\n\t/** Unregisters every entry; they register again on the next attach. */\n\tdetach(): void {\n\t\tthis.entries.forEach((entry, view) => this.release(view, entry));\n\t}\n\n\tprivate release(view: View, entry: ScrollEdgeContainerEntry): void {\n\t\tif (!entry.interaction) {\n\t\t\treturn;\n\t\t}\n\t\t(view.nativeViewProtected as UIView)?.removeInteraction(entry.interaction);\n\t\tentry.interaction = null;\n\t}\n}\n\nexport class IOSHelper {\n\tstatic traitCollectionColorAppearanceChangedEvent = 'traitCollectionColorAppearanceChanged';\n\tstatic traitCollectionLayoutDirectionChangedEvent = 'traitCollectionLayoutDirectionChanged';\n\tstatic UILayoutViewController = UILayoutViewController;\n\tstatic UIAdaptivePresentationControllerDelegateImp = UIAdaptivePresentationControllerDelegateImp;\n\tstatic UIPopoverPresentationControllerDelegateImp = UIPopoverPresentationControllerDelegateImp;\n\n\t/**\n\t * Styles the scroll edge effect on every edge of a scroll view, or hides\n\t * them all for `none`. No-op before iOS 26.\n\t */\n\tstatic setScrollEdgeEffect(scrollView: UIScrollView, effect: CoreTypes.ScrollEdgeEffectType): void {\n\t\tif (!scrollView || SDK_VERSION < 26) {\n\t\t\treturn;\n\t\t}\n\t\tconst hidden = effect === CoreTypes.ScrollEdgeEffect.none;\n\t\tlet style = UIScrollEdgeEffectStyle.automaticStyle;\n\t\tif (effect === CoreTypes.ScrollEdgeEffect.soft) {\n\t\t\tstyle = UIScrollEdgeEffectStyle.softStyle;\n\t\t} else if (effect === CoreTypes.ScrollEdgeEffect.hard) {\n\t\t\tstyle = UIScrollEdgeEffectStyle.hardStyle;\n\t\t}\n\t\tfor (const edgeEffect of [scrollView.topEdgeEffect, scrollView.bottomEdgeEffect, scrollView.leftEdgeEffect, scrollView.rightEdgeEffect]) {\n\t\t\tedgeEffect.hidden = hidden;\n\t\t\tif (!hidden) {\n\t\t\t\tedgeEffect.style = style;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic getParentWithViewController(view: View): View {\n\t\twhile (view && !view.viewController) {\n\t\t\tview = view.parent as View;\n\t\t}\n\n\t\t// Note: Might return undefined if no parent with viewController is found\n\t\treturn view;\n\t}\n\n\tstatic isHostedInView(view: View): boolean {\n\t\tconst container = view.nativeViewProtected?.superview;\n\t\tif (!container) {\n\t\t\treturn false;\n\t\t}\n\n\t\tlet parent = view.parent as View;\n\t\twhile (parent && !parent.nativeViewProtected) {\n\t\t\tparent = parent.parent as View;\n\t\t}\n\n\t\treturn container === parent?.nativeViewProtected;\n\t}\n\n\tstatic extendUnderContainerSafeArea(nativeView: UIView, frame: CGRect): CGRect {\n\t\tconst container = nativeView?.superview;\n\t\tif (!container) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// Edges laid out against the container's safe area move out to its bounds; a controller's view insets its own content.\n\t\tconst safeArea = container.safeAreaLayoutGuide.layoutFrame;\n\t\tconst bounds = container.bounds;\n\t\tconst tolerance = 0.5;\n\t\tconst left = frame.origin.x <= safeArea.origin.x + tolerance ? bounds.origin.x : frame.origin.x;\n\t\tconst top = frame.origin.y <= safeArea.origin.y + tolerance ? bounds.origin.y : frame.origin.y;\n\t\tconst frameRight = frame.origin.x + frame.size.width;\n\t\tconst frameBottom = frame.origin.y + frame.size.height;\n\t\tconst right = frameRight >= safeArea.origin.x + safeArea.size.width - tolerance ? bounds.origin.x + bounds.size.width : frameRight;\n\t\tconst bottom = frameBottom >= safeArea.origin.y + safeArea.size.height - tolerance ? bounds.origin.y + bounds.size.height : frameBottom;\n\n\t\treturn CGRectMake(left, top, right - left, bottom - top);\n\t}\n\n\tstatic invalidateStatusBarAppearance(controller?: UIViewController, reason = ''): void {\n\t\ttry {\n\t\t\tif (!controller) {\n\t\t\t\tconst window = getWindow<UIWindow>?.();\n\t\t\t\tconst rootController = window?.rootViewController;\n\t\t\t\tcontroller = rootController ? iosUtils.getVisibleViewController(rootController) : null;\n\t\t\t}\n\n\t\t\tif (!controller) {\n\t\t\t\tif (Trace.isEnabled()) {\n\t\t\t\t\tTrace.write(`[StatusBar] invalidate skipped (no controller) reason=${reason}`, Trace.categories.NativeLifecycle);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst container = controller;\n\t\t\tlet child: UIViewController = null;\n\t\t\ttry {\n\t\t\t\tchild = container.childViewControllerForStatusBarStyle;\n\t\t\t} catch {\n\t\t\t\tchild = null;\n\t\t\t}\n\t\t\tif (!child) {\n\t\t\t\tif (container instanceof UINavigationController) {\n\t\t\t\t\tchild = container.topViewController;\n\t\t\t\t} else if (container instanceof UITabBarController) {\n\t\t\t\t\tchild = container.selectedViewController;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Always invalidate container and likely child.\n\t\t\tcontainer.setNeedsStatusBarAppearanceUpdate?.();\n\t\t\tchild?.setNeedsStatusBarAppearanceUpdate?.();\n\n\t\t\t// Also invalidate nav container if present.\n\t\t\tconst nav = container instanceof UINavigationController ? container : container.navigationController;\n\t\t\tnav?.setNeedsStatusBarAppearanceUpdate?.();\n\t\t\tnav?.topViewController?.setNeedsStatusBarAppearanceUpdate?.();\n\t\t} catch (e) {\n\t\t\tTrace.write(`[StatusBar] invalidate error: ${e}`, Trace.categories.Error, Trace.messageType.warn);\n\t\t}\n\t}\n\n\tstatic updateAutoAdjustScrollInsets(controller: UIViewController, owner: View): void {\n\t\tif (!__VISIONOS__ && SDK_VERSION <= 10) {\n\t\t\towner._automaticallyAdjustsScrollViewInsets = false;\n\t\t\t// This API is deprecated, but has no alternative for <= iOS 10\n\t\t\t// Defaults to true and results to appliyng the insets twice together with our logic\n\t\t\t// for iOS 11+ we use the contentInsetAdjustmentBehavior property in scrollview\n\t\t\t// https://developer.apple.com/documentation/uikit/uiviewcontroller/1621372-automaticallyadjustsscrollviewin\n\t\t\tcontroller.automaticallyAdjustsScrollViewInsets = false;\n\t\t}\n\t}\n\n\t/**\n\t * This method simulates the iOS 11+ safeAreaLayoutGuide property and its constraints for older versions.\n\t *\n\t * @param controller\n\t * @param owner\n\t */\n\tstatic updateConstraints(controller: UIViewController, owner: View): void {\n\t\tif (!__VISIONOS__ && SDK_VERSION <= 10) {\n\t\t\tif (!controller.view.safeAreaLayoutGuide) {\n\t\t\t\tIOSHelper.initLayoutGuide(controller);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * This method simulates the iOS 11+ safeAreaLayoutGuide property for older versions.\n\t *\n\t * @param controller\n\t */\n\tstatic initLayoutGuide(controller: UIViewController): UILayoutGuide {\n\t\tconst rootView = controller.view;\n\n\t\tif (!rootView.safeAreaLayoutGuide) {\n\t\t\tconst layoutGuide = UILayoutGuide.new();\n\n\t\t\trootView.addLayoutGuide(layoutGuide);\n\t\t\tNSLayoutConstraint.activateConstraints([layoutGuide.topAnchor.constraintEqualToAnchor(controller.topLayoutGuide.bottomAnchor), layoutGuide.bottomAnchor.constraintEqualToAnchor(controller.bottomLayoutGuide.topAnchor), layoutGuide.leadingAnchor.constraintEqualToAnchor(rootView.leadingAnchor), layoutGuide.trailingAnchor.constraintEqualToAnchor(rootView.trailingAnchor)]);\n\n\t\t\t(<any>rootView).safeAreaLayoutGuide = layoutGuide;\n\t\t}\n\n\t\treturn rootView.safeAreaLayoutGuide;\n\t}\n\n\tstatic insertNativeSubview(parentNativeView: UIView, childNativeView: UIView, atIndex?: number): void {\n\t\t// Reading subviews copies the array, so appends skip it.\n\t\tif (typeof atIndex !== 'number') {\n\t\t\tparentNativeView.addSubview(childNativeView);\n\t\t\treturn;\n\t\t}\n\t\tconst subviews = parentNativeView.subviews;\n\t\tif (atIndex >= subviews.count) {\n\t\t\tparentNativeView.addSubview(childNativeView);\n\t\t} else {\n\t\t\t// insertSubview:atIndex: also counts non-view sublayers, e.g. gradient backgrounds\n\t\t\tparentNativeView.insertSubviewBelowSubview(childNativeView, subviews.objectAtIndex(atIndex));\n\t\t}\n\t}\n\n\tstatic layoutView(controller: UIViewController, owner: View): void {\n\t\tlet layoutGuide = controller.view.safeAreaLayoutGuide;\n\t\tif (!layoutGuide) {\n\t\t\tTrace.write(`safeAreaLayoutGuide during layout of ${owner}. Creating fallback constraints, but layout might be wrong.`, Trace.categories.Layout, Trace.messageType.error);\n\n\t\t\tlayoutGuide = IOSHelper.initLayoutGuide(controller);\n\t\t}\n\t\tconst safeArea = layoutGuide.layoutFrame;\n\t\tlet position = IOSHelper.getPositionFromFrame(safeArea);\n\t\tconst safeAreaSize = safeArea.size;\n\n\t\tconst hasChildViewControllers = controller.childViewControllers.count > 0;\n\t\tif (hasChildViewControllers) {\n\t\t\tconst fullscreen = controller.view.frame;\n\t\t\tposition = IOSHelper.getPositionFromFrame(fullscreen);\n\t\t}\n\n\t\tconst safeAreaWidth = layout.round(layout.toDevicePixels(safeAreaSize.width));\n\t\tconst safeAreaHeight = layout.round(layout.toDevicePixels(safeAreaSize.height));\n\n\t\tconst widthSpec = layout.makeMeasureSpec(safeAreaWidth, layout.EXACTLY);\n\t\tconst heightSpec = layout.makeMeasureSpec(safeAreaHeight, layout.EXACTLY);\n\n\t\tViewHelper.measureChild(null, owner, widthSpec, heightSpec);\n\t\tViewHelper.layoutChild(null, owner, position.left, position.top, position.right, position.bottom);\n\n\t\tif (owner.parent) {\n\t\t\towner.parent._layoutParent();\n\t\t}\n\t}\n\n\tstatic getPositionFromFrame(frame: CGRect): Position {\n\t\tconst left = layout.round(layout.toDevicePixels(frame.origin.x));\n\t\tconst top = layout.round(layout.toDevicePixels(frame.origin.y));\n\t\tconst right = layout.round(layout.toDevicePixels(frame.origin.x + frame.size.width));\n\t\tconst bottom = layout.round(layout.toDevicePixels(frame.origin.y + frame.size.height));\n\n\t\treturn { left, right, top, bottom };\n\t}\n\n\tstatic getFrameFromPosition(position: Position, insets?: Position): CGRect {\n\t\tinsets = insets || { left: 0, top: 0, right: 0, bottom: 0 };\n\n\t\tconst left = layout.toDeviceIndependentPixels(position.left + insets.left);\n\t\tconst top = layout.toDeviceIndependentPixels(position.top + insets.top);\n\t\tlet width = layout.toDeviceIndependentPixels(position.right - position.left - insets.left - insets.right);\n\t\tlet height = layout.toDeviceIndependentPixels(position.bottom - position.top - insets.top - insets.bottom);\n\t\tif (width < 0) {\n\t\t\twidth = 0;\n\t\t}\n\t\tif (height < 0) {\n\t\t\theight = 0;\n\t\t}\n\t\treturn CGRectMake(left, top, width, height);\n\t}\n\n\t/**\n\t * Returns `true` when an ancestor ScrollView has `iosContentInsetAdjustmentBehavior`\n\t * other than `'never'`, meaning iOS applies safe-area insets via `adjustedContentInset`.\n\t * `View.getSafeAreaInsets` returns empty insets in that case so nested content\n\t * doesn't double-count them.\n\t *\n\t * Duck-types on the property name to avoid a circular import of ScrollView.\n\t * The property defaults to `'never'`, so this returns `false` unless explicitly opted in.\n\t */\n\tstatic hasIOSManagedInsetAncestor(view: View): boolean {\n\t\tlet p: any = view.parent;\n\t\twhile (p) {\n\t\t\tif (typeof p.iosContentInsetAdjustmentBehavior === 'string' && p.iosContentInsetAdjustmentBehavior !== 'never') {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tp = p.parent;\n\t\t}\n\t\treturn false;\n\t}\n\n\tstatic shrinkToSafeArea(view: View, frame: CGRect): CGRect {\n\t\tconst insets = view.getSafeAreaInsets();\n\t\tif (insets.left || insets.top) {\n\t\t\tconst position = IOSHelper.getPositionFromFrame(frame);\n\t\t\tconst adjustedFrame = IOSHelper.getFrameFromPosition(position, insets);\n\n\t\t\tif (Trace.isEnabled()) {\n\t\t\t\tTrace.write(`${view} :shrinkToSafeArea: ${JSON.stringify(IOSHelper.getPositionFromFrame(adjustedFrame))}`, Trace.categories.Layout);\n\t\t\t}\n\n\t\t\treturn adjustedFrame;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tstatic expandBeyondSafeArea(view: View, frame: CGRect): CGRect {\n\t\tconst availableSpace = IOSHelper.getAvailableSpaceFromParent(view, frame);\n\t\t// Detached NS subtrees (e.g. TabView's `iosBottomAccessory`) have no safe-area\n\t\t// reference rects to expand against; leave the frame as-is.\n\t\tif (!availableSpace || !availableSpace.safeArea || !availableSpace.fullscreen) {\n\t\t\treturn frame;\n\t\t}\n\t\tconst safeArea = availableSpace.safeArea;\n\t\tconst fullscreen = availableSpace.fullscreen;\n\t\tconst inWindow = availableSpace.inWindow;\n\n\t\tconst position = IOSHelper.getPositionFromFrame(frame);\n\t\tconst safeAreaPosition = IOSHelper.getPositionFromFrame(safeArea);\n\t\tconst fullscreenPosition = IOSHelper.getPositionFromFrame(fullscreen);\n\t\tconst inWindowPosition = IOSHelper.getPositionFromFrame(inWindow);\n\n\t\tconst adjustedPosition = position;\n\n\t\tif (position.left && inWindowPosition.left <= safeAreaPosition.left) {\n\t\t\tadjustedPosition.left = fullscreenPosition.left;\n\t\t}\n\n\t\tif (position.top && inWindowPosition.top <= safeAreaPosition.top) {\n\t\t\tadjustedPosition.top = fullscreenPosition.top;\n\t\t}\n\n\t\tif (inWindowPosition.right < fullscreenPosition.right && inWindowPosition.right >= safeAreaPosition.right + fullscreenPosition.left) {\n\t\t\tadjustedPosition.right += fullscreenPosition.right - inWindowPosition.right;\n\t\t}\n\n\t\tif (inWindowPosition.bottom < fullscreenPosition.bottom && inWindowPosition.bottom >= safeAreaPosition.bottom + fullscreenPosition.top) {\n\t\t\tadjustedPosition.bottom += fullscreenPosition.bottom - inWindowPosition.bottom;\n\t\t}\n\n\t\tconst adjustedFrame = CGRectMake(layout.toDeviceIndependentPixels(adjustedPosition.left), layout.toDeviceIndependentPixels(adjustedPosition.top), layout.toDeviceIndependentPixels(adjustedPosition.right - adjustedPosition.left), layout.toDeviceIndependentPixels(adjustedPosition.bottom - adjustedPosition.top));\n\n\t\tif (Trace.isEnabled()) {\n\t\t\tTrace.write(view + ' :expandBeyondSafeArea: ' + JSON.stringify(IOSHelper.getPositionFromFrame(adjustedFrame)), Trace.categories.Layout);\n\t\t}\n\n\t\treturn adjustedFrame;\n\t}\n\n\tstatic getAvailableSpaceFromParent(view: View, frame: CGRect): { safeArea: CGRect; fullscreen: CGRect; inWindow: CGRect } {\n\t\tif (!view) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet scrollView = null;\n\t\tlet viewControllerView = null;\n\n\t\tif (view.viewController) {\n\t\t\tviewControllerView = view.viewController.view;\n\t\t} else {\n\t\t\tlet parent = view.parent as View;\n\t\t\twhile (parent && !parent.viewController && !(parent.nativeViewProtected instanceof UIScrollView)) {\n\t\t\t\tparent = parent.parent as View;\n\t\t\t}\n\n\t\t\t// `parent` is null when `view` is attached to UIKit but has no NS parent\n\t\t\t// (e.g. TabView's `iosBottomAccessory` hosted in UITabAccessory.contentView).\n\t\t\tif (parent) {\n\t\t\t\tif (parent.nativeViewProtected instanceof UIScrollView) {\n\t\t\t\t\tscrollView = parent.nativeViewProtected;\n\t\t\t\t} else if (parent.viewController) {\n\t\t\t\t\tviewControllerView = parent.viewController.view;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tlet fullscreen = null;\n\t\tlet safeArea = null;\n\t\tlet controllerInWindow = { x: 0, y: 0 };\n\n\t\tif (viewControllerView) {\n\t\t\tsafeArea = viewControllerView.safeAreaLayoutGuide.layoutFrame;\n\t\t\tfullscreen = viewControllerView.frame;\n\t\t\tcontrollerInWindow = viewControllerView.convertPointToView(viewControllerView.bounds.origin, null);\n\t\t} else if (scrollView) {\n\t\t\tconst insets = scrollView.safeAreaInsets;\n\t\t\tsafeArea = CGRectMake(insets.left, insets.top, scrollView.contentSize.width - insets.left - insets.right, scrollView.contentSize.height - insets.top - insets.bottom);\n\t\t\tfullscreen = CGRectMake(0, 0, scrollView.contentSize.width, scrollView.contentSize.height);\n\t\t}\n\n\t\t// We take into account the controller position inside the window.\n\t\t// for example with a bottomsheet the controller will be \"offset\"\n\t\tconst locationInWindow = view.getLocationInWindow();\n\t\tlet inWindowLeft = locationInWindow.x - controllerInWindow.x;\n\t\tlet inWindowTop = locationInWindow.y - controllerInWindow.y;\n\n\t\tif (scrollView) {\n\t\t\tinWindowLeft += scrollView.contentOffset.x;\n\t\t\tinWindowTop += scrollView.contentOffset.y;\n\t\t}\n\n\t\tconst inWindow = CGRectMake(inWindowLeft, inWindowTop, frame.size.width, frame.size.height);\n\n\t\treturn {\n\t\t\tsafeArea: safeArea,\n\t\t\tfullscreen: fullscreen,\n\t\t\tinWindow: inWindow,\n\t\t};\n\t}\n}\n"]}
|
|
@@ -15,8 +15,8 @@ export class ViewHelper {
|
|
|
15
15
|
const style = child.style;
|
|
16
16
|
const horizontalMargins = child.effectiveMarginLeft + child.effectiveMarginRight;
|
|
17
17
|
const verticalMargins = child.effectiveMarginTop + child.effectiveMarginBottom;
|
|
18
|
-
const childWidthMeasureSpec = ViewHelper.getMeasureSpec(widthMeasureSpec, horizontalMargins, child.effectiveWidth, style.horizontalAlignment === 'stretch');
|
|
19
|
-
const childHeightMeasureSpec = ViewHelper.getMeasureSpec(heightMeasureSpec, verticalMargins, child.effectiveHeight, style.verticalAlignment === 'stretch');
|
|
18
|
+
const childWidthMeasureSpec = ViewHelper.getMeasureSpec(widthMeasureSpec, horizontalMargins, child.effectiveWidth, style.horizontalAlignment === 'stretch', child.effectiveMaxWidth);
|
|
19
|
+
const childHeightMeasureSpec = ViewHelper.getMeasureSpec(heightMeasureSpec, verticalMargins, child.effectiveHeight, style.verticalAlignment === 'stretch', child.effectiveMaxHeight);
|
|
20
20
|
if (Trace.isEnabled()) {
|
|
21
21
|
Trace.write(`${child.parent} :measureChild: ${child} ${layout.measureSpecToString(childWidthMeasureSpec)}, ${layout.measureSpecToString(childHeightMeasureSpec)}}`, Trace.categories.Layout);
|
|
22
22
|
}
|
|
@@ -122,7 +122,7 @@ export class ViewHelper {
|
|
|
122
122
|
static combineMeasuredStates(curState, newState) {
|
|
123
123
|
return curState | newState;
|
|
124
124
|
}
|
|
125
|
-
static getMeasureSpec(parentSpec, margins, childLength, stretched) {
|
|
125
|
+
static getMeasureSpec(parentSpec, margins, childLength, stretched, maxLength = Number.POSITIVE_INFINITY) {
|
|
126
126
|
const parentLength = layout.getMeasureSpecSize(parentSpec);
|
|
127
127
|
const parentSpecMode = layout.getMeasureSpecMode(parentSpec);
|
|
128
128
|
let resultSize;
|
|
@@ -156,6 +156,24 @@ export class ViewHelper {
|
|
|
156
156
|
break;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
+
// Apply max-width/max-height: the child may not exceed maxLength. When the parent
|
|
160
|
+
// is UNSPECIFIED, a finite max turns the spec into an AT_MOST cap so the child is
|
|
161
|
+
// still bounded; otherwise we shrink the resolved size (and relax EXACTLY to AT_MOST
|
|
162
|
+
// so a stretched child isn't forced past its max).
|
|
163
|
+
if (isFinite(maxLength) && maxLength >= 0) {
|
|
164
|
+
if (resultMode === layout.UNSPECIFIED) {
|
|
165
|
+
resultSize = maxLength;
|
|
166
|
+
resultMode = layout.AT_MOST;
|
|
167
|
+
}
|
|
168
|
+
else if (resultSize > maxLength) {
|
|
169
|
+
resultSize = maxLength;
|
|
170
|
+
// An explicit width/height capped by max is still an exact size (min(width, max)).
|
|
171
|
+
// A stretched child (no explicit length) should only be bounded, not forced to max.
|
|
172
|
+
if (resultMode === layout.EXACTLY && childLength < 0) {
|
|
173
|
+
resultMode = layout.AT_MOST;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
159
177
|
return layout.makeMeasureSpec(resultSize, resultMode);
|
|
160
178
|
}
|
|
161
179
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-helper-common.js","sourceRoot":"","sources":["../../../../../../../packages/core/ui/core/view/view-helper/view-helper-common.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,sBAAsB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,CAAC,WAAW,CAAC;oBAChC,MAAM;YACR,CAAC;QACF,CAAC;QAED,kFAAkF;QAClF,kFAAkF;QAClF,qFAAqF;QACrF,mDAAmD;QACnD,IAAI,QAAQ,CAAC,SAAS,CAAC,IAAI,SAAS,IAAI,CAAC,EAAE,CAAC;YAC3C,IAAI,UAAU,KAAK,MAAM,CAAC,WAAW,EAAE,CAAC;gBACvC,UAAU,GAAG,SAAS,CAAC;gBACvB,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC;YAC7B,CAAC;iBAAM,IAAI,UAAU,GAAG,SAAS,EAAE,CAAC;gBACnC,UAAU,GAAG,SAAS,CAAC;gBACvB,mFAAmF;gBACnF,oFAAoF;gBACpF,IAAI,UAAU,KAAK,MAAM,CAAC,OAAO,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC;oBACtD,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC;gBAC7B,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,MAAM,CAAC,eAAe,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IACvD,CAAC;CACD","sourcesContent":["// Types\nimport { View as ViewDefinition } from '..';\nimport { CoreTypes } from '../../../../core-types';\nimport { layout, Trace } from './view-helper-shared';\n\nexport class ViewHelper {\n\tpublic static measureChild(parent: ViewDefinition, child: ViewDefinition, widthMeasureSpec: number, heightMeasureSpec: number): { measuredWidth: number; measuredHeight: number } {\n\t\tlet measureWidth = 0;\n\t\tlet measureHeight = 0;\n\n\t\tif (child && !child.isCollapsed) {\n\t\t\tconst widthSpec = parent ? parent._currentWidthMeasureSpec : widthMeasureSpec;\n\t\t\tconst heightSpec = parent ? parent._currentHeightMeasureSpec : heightMeasureSpec;\n\n\t\t\tconst width = layout.getMeasureSpecSize(widthSpec);\n\t\t\tconst widthMode = layout.getMeasureSpecMode(widthSpec);\n\n\t\t\tconst height = layout.getMeasureSpecSize(heightSpec);\n\t\t\tconst heightMode = layout.getMeasureSpecMode(heightSpec);\n\n\t\t\tchild._updateEffectiveLayoutValues(width, widthMode, height, heightMode);\n\n\t\t\tconst style = child.style;\n\t\t\tconst horizontalMargins = child.effectiveMarginLeft + child.effectiveMarginRight;\n\t\t\tconst verticalMargins = child.effectiveMarginTop + child.effectiveMarginBottom;\n\n\t\t\tconst childWidthMeasureSpec = ViewHelper.getMeasureSpec(widthMeasureSpec, horizontalMargins, child.effectiveWidth, style.horizontalAlignment === 'stretch', child.effectiveMaxWidth);\n\t\t\tconst childHeightMeasureSpec = ViewHelper.getMeasureSpec(heightMeasureSpec, verticalMargins, child.effectiveHeight, style.verticalAlignment === 'stretch', child.effectiveMaxHeight);\n\n\t\t\tif (Trace.isEnabled()) {\n\t\t\t\tTrace.write(`${child.parent} :measureChild: ${child} ${layout.measureSpecToString(childWidthMeasureSpec)}, ${layout.measureSpecToString(childHeightMeasureSpec)}}`, Trace.categories.Layout);\n\t\t\t}\n\n\t\t\tchild.measure(childWidthMeasureSpec, childHeightMeasureSpec);\n\t\t\tmeasureWidth = Math.round(child.getMeasuredWidth() + horizontalMargins);\n\t\t\tmeasureHeight = Math.round(child.getMeasuredHeight() + verticalMargins);\n\t\t}\n\n\t\treturn { measuredWidth: measureWidth, measuredHeight: measureHeight };\n\t}\n\n\tpublic static layoutChild(parent: ViewDefinition, child: ViewDefinition, left: number, top: number, right: number, bottom: number, setFrame = true): void {\n\t\tif (!child || child.isCollapsed) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst childStyle = child.style;\n\n\t\tlet childTop: number;\n\t\tlet childLeft: number;\n\n\t\tlet childWidth = child.getMeasuredWidth();\n\t\tlet childHeight = child.getMeasuredHeight();\n\n\t\tconst effectiveMarginTop = child.effectiveMarginTop;\n\t\tconst effectiveMarginBottom = child.effectiveMarginBottom;\n\n\t\tlet vAlignment: CoreTypes.VerticalAlignmentType;\n\t\tif (child.effectiveHeight >= 0 && childStyle.verticalAlignment === 'stretch') {\n\t\t\tvAlignment = 'middle';\n\t\t} else {\n\t\t\tvAlignment = childStyle.verticalAlignment;\n\t\t}\n\n\t\tswitch (vAlignment) {\n\t\t\tcase 'top':\n\t\t\t\tchildTop = top + effectiveMarginTop;\n\t\t\t\tbreak;\n\n\t\t\tcase 'center':\n\t\t\tcase 'middle':\n\t\t\t\tchildTop = top + (bottom - top - childHeight + (effectiveMarginTop - effectiveMarginBottom)) / 2;\n\t\t\t\tbreak;\n\n\t\t\tcase 'bottom':\n\t\t\t\tchildTop = bottom - childHeight - effectiveMarginBottom;\n\t\t\t\tbreak;\n\n\t\t\tcase 'stretch':\n\t\t\tdefault:\n\t\t\t\tchildTop = top + effectiveMarginTop;\n\t\t\t\tchildHeight = bottom - top - (effectiveMarginTop + effectiveMarginBottom);\n\t\t\t\tif (childHeight < 0) {\n\t\t\t\t\tchildHeight = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\tconst effectiveMarginLeft = child.effectiveMarginLeft;\n\t\tconst effectiveMarginRight = child.effectiveMarginRight;\n\n\t\tconst hAlignment: CoreTypes.HorizontalAlignmentType = childStyle.horizontalAlignment;\n\n\t\tswitch (hAlignment) {\n\t\t\tcase 'start':\n\t\t\t\tchildLeft = child.direction === CoreTypes.LayoutDirection.rtl ? right - childWidth - effectiveMarginRight : left + effectiveMarginLeft;\n\t\t\t\tbreak;\n\t\t\tcase 'left':\n\t\t\t\tchildLeft = left + effectiveMarginLeft;\n\t\t\t\tbreak;\n\t\t\tcase 'middle':\n\t\t\tcase 'center':\n\t\t\t\tchildLeft = left + (right - left - childWidth + (effectiveMarginLeft - effectiveMarginRight)) / 2;\n\t\t\t\tbreak;\n\t\t\tcase 'right':\n\t\t\t\tchildLeft = right - childWidth - effectiveMarginRight;\n\t\t\t\tbreak;\n\t\t\tcase 'end':\n\t\t\t\tchildLeft = child.direction === CoreTypes.LayoutDirection.rtl ? left + effectiveMarginLeft : right - childWidth - effectiveMarginRight;\n\t\t\t\tbreak;\n\t\t\tcase 'stretch':\n\t\t\tdefault:\n\t\t\t\tchildLeft = left + effectiveMarginLeft;\n\t\t\t\tchildWidth = right - left - (effectiveMarginLeft + effectiveMarginRight);\n\t\t\t\tif (childWidth < 0) {\n\t\t\t\t\tchildWidth = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\tconst childRight = Math.round(childLeft + childWidth);\n\t\tconst childBottom = Math.round(childTop + childHeight);\n\t\tchildLeft = Math.round(childLeft);\n\t\tchildTop = Math.round(childTop);\n\n\t\tif (Trace.isEnabled()) {\n\t\t\tTrace.write(child.parent + ' :layoutChild: ' + child + ' ' + childLeft + ', ' + childTop + ', ' + childRight + ', ' + childBottom, Trace.categories.Layout);\n\t\t}\n\n\t\tchild.layout(childLeft, childTop, childRight, childBottom, setFrame);\n\t}\n\n\tpublic static resolveSizeAndState(size: number, specSize: number, specMode: number, childMeasuredState: number): number {\n\t\tlet result = size;\n\t\tswitch (specMode) {\n\t\t\tcase layout.UNSPECIFIED:\n\t\t\t\tresult = Math.ceil(size);\n\t\t\t\tbreak;\n\n\t\t\tcase layout.AT_MOST:\n\t\t\t\tif (specSize < size) {\n\t\t\t\t\tresult = Math.ceil(specSize) | layout.MEASURED_STATE_TOO_SMALL;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase layout.EXACTLY:\n\t\t\t\tresult = Math.ceil(specSize);\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn result | (childMeasuredState & layout.MEASURED_STATE_MASK);\n\t}\n\n\tpublic static combineMeasuredStates(curState: number, newState): number {\n\t\treturn curState | newState;\n\t}\n\n\tprivate static getMeasureSpec(parentSpec: number, margins: number, childLength: number, stretched: boolean, maxLength: number = Number.POSITIVE_INFINITY): number {\n\t\tconst parentLength = layout.getMeasureSpecSize(parentSpec);\n\t\tconst parentSpecMode = layout.getMeasureSpecMode(parentSpec);\n\n\t\tlet resultSize: number;\n\t\tlet resultMode: number;\n\n\t\t// We want a specific size... let be it.\n\t\tif (childLength >= 0) {\n\t\t\t// If mode !== UNSPECIFIED we take the smaller of parentLength and childLength\n\t\t\t// Otherwise we will need to clip the view but this is not possible in all Android API levels.\n\t\t\t// TODO: remove Math.min(parentLength, childLength)\n\t\t\tresultSize = parentSpecMode === layout.UNSPECIFIED ? childLength : Math.min(parentLength, childLength);\n\t\t\tresultMode = layout.EXACTLY;\n\t\t} else {\n\t\t\tswitch (parentSpecMode) {\n\t\t\t\t// Parent has imposed an exact size on us\n\t\t\t\tcase layout.EXACTLY:\n\t\t\t\t\tresultSize = Math.max(0, parentLength - margins);\n\t\t\t\t\t// if stretched - nativeView wants to be our size. So be it.\n\t\t\t\t\t// else - nativeView wants to determine its own size. It can't be bigger than us.\n\t\t\t\t\tresultMode = stretched ? layout.EXACTLY : layout.AT_MOST;\n\t\t\t\t\tbreak;\n\n\t\t\t\t// Parent has imposed a maximum size on us\n\t\t\t\tcase layout.AT_MOST:\n\t\t\t\t\tresultSize = Math.max(0, parentLength - margins);\n\t\t\t\t\tresultMode = layout.AT_MOST;\n\t\t\t\t\tbreak;\n\n\t\t\t\t// Equivalent to measure with Infinity.\n\t\t\t\tcase layout.UNSPECIFIED:\n\t\t\t\t\tresultSize = 0;\n\t\t\t\t\tresultMode = layout.UNSPECIFIED;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// Apply max-width/max-height: the child may not exceed maxLength. When the parent\n\t\t// is UNSPECIFIED, a finite max turns the spec into an AT_MOST cap so the child is\n\t\t// still bounded; otherwise we shrink the resolved size (and relax EXACTLY to AT_MOST\n\t\t// so a stretched child isn't forced past its max).\n\t\tif (isFinite(maxLength) && maxLength >= 0) {\n\t\t\tif (resultMode === layout.UNSPECIFIED) {\n\t\t\t\tresultSize = maxLength;\n\t\t\t\tresultMode = layout.AT_MOST;\n\t\t\t} else if (resultSize > maxLength) {\n\t\t\t\tresultSize = maxLength;\n\t\t\t\t// An explicit width/height capped by max is still an exact size (min(width, max)).\n\t\t\t\t// A stretched child (no explicit length) should only be bounded, not forced to max.\n\t\t\t\tif (resultMode === layout.EXACTLY && childLength < 0) {\n\t\t\t\t\tresultMode = layout.AT_MOST;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn layout.makeMeasureSpec(resultSize, resultMode);\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-helper-shared.js","sourceRoot":"","sources":["../../../../../../../packages/core/ui/core/view/view-helper/view-helper-shared.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,yCAAyC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"view-helper-shared.js","sourceRoot":"","sources":["../../../../../../../packages/core/ui/core/view/view-helper/view-helper-shared.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,yCAAyC;AAGzC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG1C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC","sourcesContent":["// Shared helpers and types for view-helper, used by both common and platform-specific files.\n// Only put platform-agnostic logic here.\n\nimport { CoreTypes } from '../../../../core-types';\nimport { layout } from '../../../../utils';\nimport { Trace } from '../../../../trace';\n\nexport type { CoreTypes };\nexport { layout, Trace };\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-interfaces.js","sourceRoot":"","sources":["../../../../../../packages/core/ui/core/view/view-interfaces.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"view-interfaces.js","sourceRoot":"","sources":["../../../../../../packages/core/ui/core/view/view-interfaces.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventData } from '../../../data/observable';\n/**\n * Defines the data for the shownModally event.\n */\nexport interface ShownModallyData extends EventData {\n\t/**\n\t * The context (optional, may be undefined) passed to the view when shown modally.\n\t */\n\tcontext?: any;\n\n\t/**\n\t * A callback to call when you want to close the modally shown view.\n\t * Pass in any kind of arguments and you will receive when the callback parameter\n\t * of View.showModal is executed.\n\t */\n\tcloseCallback?: Function;\n}\n\n/**\n * The Point interface describes a two dimensional location.\n * It has two properties x and y, representing the x and y coordinate of the location.\n */\nexport interface Point {\n\t/**\n\t * Represents the x coordinate of the location.\n\t */\n\tx: number;\n\n\t/**\n\t * Represents the y coordinate of the location.\n\t */\n\ty: number;\n\n\t/**\n\t * Represents the z coordinate of the location.\n\t */\n\tz?: number;\n}\n\nexport interface Position {\n\ttop: number;\n\tright: number;\n\tbottom: number;\n\tleft: number;\n}\n\n/**\n * The Size interface describes abstract dimensions in two dimensional space.\n * It has two properties width and height, representing the width and height values of the size.\n */\nexport interface Size {\n\t/**\n\t * Represents the width of the size.\n\t */\n\twidth: number;\n\n\t/**\n\t * Represents the height of the size.\n\t */\n\theight: number;\n}\n"]}
|