@nativescript/core 8.9.0-napi-es5.0 → 8.9.0-napi.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abortcontroller/abortsignal.js +16 -23
- package/abortcontroller/abortsignal.js.map +1 -1
- package/abortcontroller/index.js +14 -20
- package/abortcontroller/index.js.map +1 -1
- package/accessibility/accessibility-common.js +8 -8
- package/accessibility/accessibility-common.js.map +1 -1
- package/accessibility/accessibility-css-helper.js +27 -27
- package/accessibility/accessibility-css-helper.js.map +1 -1
- package/accessibility/accessibility-properties.js +22 -23
- package/accessibility/accessibility-properties.js.map +1 -1
- package/accessibility/accessibility-service-common.js +12 -22
- package/accessibility/accessibility-service-common.js.map +1 -1
- package/accessibility/accessibility-service.android.js +27 -39
- package/accessibility/accessibility-service.android.js.map +1 -1
- package/accessibility/accessibility-service.ios.js +14 -17
- package/accessibility/accessibility-service.ios.js.map +1 -1
- package/accessibility/font-scale-common.js +2 -2
- package/accessibility/font-scale-common.js.map +1 -1
- package/accessibility/font-scale.android.js +7 -8
- package/accessibility/font-scale.android.js.map +1 -1
- package/accessibility/font-scale.ios.js +9 -10
- package/accessibility/font-scale.ios.js.map +1 -1
- package/accessibility/index.android.js +77 -83
- package/accessibility/index.android.js.map +1 -1
- package/accessibility/index.ios.js +34 -36
- package/accessibility/index.ios.js.map +1 -1
- package/animation-frame/animation-native.ios.js +1 -1
- package/animation-frame/animation-native.ios.js.map +1 -1
- package/animation-frame/index.js +16 -16
- package/animation-frame/index.js.map +1 -1
- package/application/application-common.js +196 -214
- package/application/application-common.js.map +1 -1
- package/application/application-shims.js +39 -39
- package/application/application-shims.js.map +1 -1
- package/application/application.android.js +110 -149
- package/application/application.android.js.map +1 -1
- package/application/application.ios.js +162 -197
- package/application/application.ios.js.map +1 -1
- package/application-settings/index.android.js +11 -11
- package/application-settings/index.android.js.map +1 -1
- package/application-settings/index.ios.js +1 -1
- package/application-settings/index.ios.js.map +1 -1
- package/bundle-entry-points.js +1 -1
- package/bundle-entry-points.js.map +1 -1
- package/color/color-common.js +157 -200
- package/color/color-common.js.map +1 -1
- package/color/index.android.js +4 -14
- package/color/index.android.js.map +1 -1
- package/color/index.ios.js +14 -24
- package/color/index.ios.js.map +1 -1
- package/color/known-colors.js +144 -144
- package/color/known-colors.js.map +1 -1
- package/connectivity/index.android.js +23 -23
- package/connectivity/index.android.js.map +1 -1
- package/connectivity/index.ios.js +25 -25
- package/connectivity/index.ios.js.map +1 -1
- package/console/index.js +20 -24
- package/console/index.js.map +1 -1
- package/core-types/index.js +38 -38
- package/core-types/index.js.map +1 -1
- package/css/CSS3Parser.js +104 -106
- package/css/CSS3Parser.js.map +1 -1
- package/css/CSSNativeScript.js +29 -34
- package/css/CSSNativeScript.js.map +1 -1
- package/css/css-tree-parser.js.map +1 -1
- package/css/parser.js +158 -178
- package/css/parser.js.map +1 -1
- package/css/system-classes.js +9 -9
- package/css/system-classes.js.map +1 -1
- package/css-mediaquery/index.js +27 -29
- package/css-mediaquery/index.js.map +1 -1
- package/data/observable/index.js +115 -124
- package/data/observable/index.js.map +1 -1
- package/data/observable-array/index.js +119 -176
- package/data/observable-array/index.js.map +1 -1
- package/data/virtual-array/index.js +61 -74
- package/data/virtual-array/index.js.map +1 -1
- package/debugger/InspectorBackendCommands.js +137 -161
- package/debugger/InspectorBackendCommands.js.map +1 -1
- package/debugger/devtools-elements.common.js +20 -20
- package/debugger/devtools-elements.common.js.map +1 -1
- package/debugger/devtools-elements.js +2 -2
- package/debugger/devtools-elements.js.map +1 -1
- package/debugger/dom-node.js +61 -73
- package/debugger/dom-node.js.map +1 -1
- package/debugger/index.js +19 -19
- package/debugger/index.js.map +1 -1
- package/debugger/webinspector-css.js +25 -30
- package/debugger/webinspector-css.js.map +1 -1
- package/debugger/webinspector-dom.js +38 -43
- package/debugger/webinspector-dom.js.map +1 -1
- package/debugger/webinspector-network.android.js +103 -132
- package/debugger/webinspector-network.android.js.map +1 -1
- package/debugger/webinspector-network.ios.js +100 -128
- package/debugger/webinspector-network.ios.js.map +1 -1
- package/file-system/file-system-access.android.js +414 -421
- package/file-system/file-system-access.android.js.map +1 -1
- package/file-system/file-system-access.ios.js +203 -213
- package/file-system/file-system-access.ios.js.map +1 -1
- package/file-system/index.js +294 -372
- package/file-system/index.js.map +1 -1
- package/fps-meter/fps-native.android.js +15 -18
- package/fps-meter/fps-native.android.js.map +1 -1
- package/fps-meter/fps-native.ios.js +9 -11
- package/fps-meter/fps-native.ios.js.map +1 -1
- package/fps-meter/index.js +11 -11
- package/fps-meter/index.js.map +1 -1
- package/globals/index.js +88 -112
- package/globals/index.js.map +1 -1
- package/http/http-request/http-request-common.js +5 -5
- package/http/http-request/http-request-common.js.map +1 -1
- package/http/http-request/index.android.js +53 -54
- package/http/http-request/index.android.js.map +1 -1
- package/http/http-request/index.ios.js +56 -58
- package/http/http-request/index.ios.js.map +1 -1
- package/http/index.js +19 -19
- package/http/index.js.map +1 -1
- package/image-asset/image-asset-common.js +25 -37
- package/image-asset/image-asset-common.js.map +1 -1
- package/image-asset/index.android.js +17 -25
- package/image-asset/index.android.js.map +1 -1
- package/image-asset/index.ios.js +25 -35
- package/image-asset/index.ios.js.map +1 -1
- package/image-source/image-source-common.js +2 -2
- package/image-source/image-source-common.js.map +1 -1
- package/image-source/index.android.js +152 -178
- package/image-source/index.android.js.map +1 -1
- package/image-source/index.ios.js +177 -203
- package/image-source/index.ios.js.map +1 -1
- package/index.js +4 -8
- package/index.js.map +1 -1
- package/matrix/index.js +17 -27
- package/matrix/index.js.map +1 -1
- package/media-query-list/index.js +61 -87
- package/media-query-list/index.js.map +1 -1
- package/module-name-resolver/index.js +21 -24
- package/module-name-resolver/index.js.map +1 -1
- package/module-name-resolver/non-bundle-workflow-compat.js +24 -24
- package/module-name-resolver/non-bundle-workflow-compat.js.map +1 -1
- package/module-name-resolver/qualifier-matcher/index.js +46 -46
- package/module-name-resolver/qualifier-matcher/index.js.map +1 -1
- package/package.json +1 -1
- package/platform/common.js +5 -5
- package/platform/common.js.map +1 -1
- package/platform/device/index.android.js +68 -107
- package/platform/device/index.android.js.map +1 -1
- package/platform/device/index.ios.js +62 -101
- package/platform/device/index.ios.js.map +1 -1
- package/platform/screen/index.android.js +32 -63
- package/platform/screen/index.android.js.map +1 -1
- package/platform/screen/index.ios.js +29 -60
- package/platform/screen/index.ios.js.map +1 -1
- package/profiling/index.js +40 -47
- package/profiling/index.js.map +1 -1
- package/text/text-common.js +36 -49
- package/text/text-common.js.map +1 -1
- package/timer/index.android.js +20 -30
- package/timer/index.android.js.map +1 -1
- package/timer/index.ios.js +12 -22
- package/timer/index.ios.js.map +1 -1
- package/trace/index.js +26 -36
- package/trace/index.js.map +1 -1
- package/ui/action-bar/action-bar-common.js +193 -252
- package/ui/action-bar/action-bar-common.js.map +1 -1
- package/ui/action-bar/index.android.js +170 -212
- package/ui/action-bar/index.android.js.map +1 -1
- package/ui/action-bar/index.ios.js +208 -251
- package/ui/action-bar/index.ios.js.map +1 -1
- package/ui/activity-indicator/activity-indicator-common.js +6 -11
- package/ui/activity-indicator/activity-indicator-common.js.map +1 -1
- package/ui/activity-indicator/index.android.js +20 -26
- package/ui/activity-indicator/index.android.js.map +1 -1
- package/ui/activity-indicator/index.ios.js +23 -31
- package/ui/activity-indicator/index.ios.js.map +1 -1
- package/ui/animation/animation-common.js +43 -50
- package/ui/animation/animation-common.js.map +1 -1
- package/ui/animation/animation-interfaces.js +3 -5
- package/ui/animation/animation-interfaces.js.map +1 -1
- package/ui/animation/index.android.js +90 -94
- package/ui/animation/index.android.js.map +1 -1
- package/ui/animation/index.ios.js +225 -191
- package/ui/animation/index.ios.js.map +1 -1
- package/ui/animation/keyframe-animation.js +67 -89
- package/ui/animation/keyframe-animation.js.map +1 -1
- package/ui/builder/binding-builder.js +31 -31
- package/ui/builder/binding-builder.js.map +1 -1
- package/ui/builder/component-builder/index.js +37 -37
- package/ui/builder/component-builder/index.js.map +1 -1
- package/ui/builder/index.js +54 -59
- package/ui/builder/index.js.map +1 -1
- package/ui/builder/xml2ui.js +128 -158
- package/ui/builder/xml2ui.js.map +1 -1
- package/ui/button/button-common.js +18 -25
- package/ui/button/button-common.js.map +1 -1
- package/ui/button/index.android.js +69 -80
- package/ui/button/index.android.js.map +1 -1
- package/ui/button/index.ios.js +103 -114
- package/ui/button/index.ios.js.map +1 -1
- package/ui/content-view/index.js +60 -78
- package/ui/content-view/index.js.map +1 -1
- package/ui/core/bindable/bindable-expressions.js +93 -101
- package/ui/core/bindable/bindable-expressions.js.map +1 -1
- package/ui/core/bindable/bindable-resources.js +1 -1
- package/ui/core/bindable/index.js +136 -141
- package/ui/core/bindable/index.js.map +1 -1
- package/ui/core/control-state-change/index.android.js +5 -7
- package/ui/core/control-state-change/index.android.js.map +1 -1
- package/ui/core/control-state-change/index.ios.js +9 -13
- package/ui/core/control-state-change/index.ios.js.map +1 -1
- package/ui/core/properties/index.js +440 -489
- package/ui/core/properties/index.js.map +1 -1
- package/ui/core/view/index.android.js +348 -384
- package/ui/core/view/index.android.js.map +1 -1
- package/ui/core/view/index.ios.js +364 -400
- package/ui/core/view/index.ios.js.map +1 -1
- package/ui/core/view/view-common.js +655 -944
- package/ui/core/view/view-common.js.map +1 -1
- package/ui/core/view/view-helper/index.android.js +15 -19
- package/ui/core/view/view-helper/index.android.js.map +1 -1
- package/ui/core/view/view-helper/index.ios.js +81 -85
- package/ui/core/view/view-helper/index.ios.js.map +1 -1
- package/ui/core/view/view-helper/view-helper-common.js +44 -49
- package/ui/core/view/view-helper/view-helper-common.js.map +1 -1
- package/ui/core/view-base/index.js +371 -426
- package/ui/core/view-base/index.js.map +1 -1
- package/ui/core/weak-event-listener/index.js +25 -26
- package/ui/core/weak-event-listener/index.js.map +1 -1
- package/ui/date-picker/date-picker-common.js +30 -35
- package/ui/date-picker/date-picker-common.js.map +1 -1
- package/ui/date-picker/index.android.js +43 -51
- package/ui/date-picker/index.android.js.map +1 -1
- package/ui/date-picker/index.ios.js +51 -61
- package/ui/date-picker/index.ios.js.map +1 -1
- package/ui/dialogs/dialogs-common.js +18 -18
- package/ui/dialogs/dialogs-common.js.map +1 -1
- package/ui/dialogs/index.android.js +86 -98
- package/ui/dialogs/index.android.js.map +1 -1
- package/ui/dialogs/index.ios.js +67 -80
- package/ui/dialogs/index.ios.js.map +1 -1
- package/ui/editable-text-base/editable-text-base-common.js +29 -35
- package/ui/editable-text-base/editable-text-base-common.js.map +1 -1
- package/ui/editable-text-base/index.android.js +106 -112
- package/ui/editable-text-base/index.android.js.map +1 -1
- package/ui/editable-text-base/index.ios.js +47 -53
- package/ui/editable-text-base/index.ios.js.map +1 -1
- package/ui/embedding/index.android.js +2 -3
- package/ui/embedding/index.android.js.map +1 -1
- package/ui/frame/activity.android.js +44 -44
- package/ui/frame/activity.android.js.map +1 -1
- package/ui/frame/callbacks/activity-callbacks.js +118 -123
- package/ui/frame/callbacks/activity-callbacks.js.map +1 -1
- package/ui/frame/callbacks/fragment-callbacks.js +139 -141
- package/ui/frame/callbacks/fragment-callbacks.js.map +1 -1
- package/ui/frame/fragment.android.js +21 -21
- package/ui/frame/fragment.android.js.map +1 -1
- package/ui/frame/fragment.ios.js +1 -1
- package/ui/frame/fragment.transitions.android.js +105 -114
- package/ui/frame/fragment.transitions.android.js.map +1 -1
- package/ui/frame/frame-common.d.ts +1 -1
- package/ui/frame/frame-common.js +249 -285
- package/ui/frame/frame-common.js.map +1 -1
- package/ui/frame/frame-helpers.js +1 -1
- package/ui/frame/frame-helpers.js.map +1 -1
- package/ui/frame/frame-stack.js +4 -4
- package/ui/frame/frame-stack.js.map +1 -1
- package/ui/frame/index.android.js +239 -291
- package/ui/frame/index.android.js.map +1 -1
- package/ui/frame/index.ios.js +133 -167
- package/ui/frame/index.ios.js.map +1 -1
- package/ui/gestures/gestures-common.js +15 -29
- package/ui/gestures/gestures-common.js.map +1 -1
- package/ui/gestures/index.android.js +108 -124
- package/ui/gestures/index.android.js.map +1 -1
- package/ui/gestures/index.ios.js +108 -121
- package/ui/gestures/index.ios.js.map +1 -1
- package/ui/gestures/touch-manager.js +42 -48
- package/ui/gestures/touch-manager.js.map +1 -1
- package/ui/html-view/html-view-common.js +9 -14
- package/ui/html-view/html-view-common.js.map +1 -1
- package/ui/html-view/index.android.js +37 -43
- package/ui/html-view/index.android.js.map +1 -1
- package/ui/html-view/index.ios.js +62 -73
- package/ui/html-view/index.ios.js.map +1 -1
- package/ui/image/image-common.js +47 -57
- package/ui/image/image-common.js.map +1 -1
- package/ui/image/index.android.js +54 -59
- package/ui/image/index.android.js.map +1 -1
- package/ui/image/index.ios.js +65 -72
- package/ui/image/index.ios.js.map +1 -1
- package/ui/image/symbol-effects-common.js +2 -6
- package/ui/image/symbol-effects-common.js.map +1 -1
- package/ui/image/symbol-effects.android.js +4 -10
- package/ui/image/symbol-effects.android.js.map +1 -1
- package/ui/image/symbol-effects.ios.js +7 -11
- package/ui/image/symbol-effects.ios.js.map +1 -1
- package/ui/image-cache/image-cache-common.js +57 -61
- package/ui/image-cache/image-cache-common.js.map +1 -1
- package/ui/image-cache/index.android.js +23 -27
- package/ui/image-cache/index.android.js.map +1 -1
- package/ui/image-cache/index.ios.js +24 -29
- package/ui/image-cache/index.ios.js.map +1 -1
- package/ui/label/index.android.js +29 -38
- package/ui/label/index.android.js.map +1 -1
- package/ui/label/index.ios.js +89 -102
- package/ui/label/index.ios.js.map +1 -1
- package/ui/layouts/absolute-layout/absolute-layout-common.js +25 -30
- package/ui/layouts/absolute-layout/absolute-layout-common.js.map +1 -1
- package/ui/layouts/absolute-layout/index.android.js +6 -12
- package/ui/layouts/absolute-layout/index.android.js.map +1 -1
- package/ui/layouts/absolute-layout/index.ios.js +32 -40
- package/ui/layouts/absolute-layout/index.ios.js.map +1 -1
- package/ui/layouts/dock-layout/dock-layout-common.js +16 -21
- package/ui/layouts/dock-layout/dock-layout-common.js.map +1 -1
- package/ui/layouts/dock-layout/index.android.js +11 -17
- package/ui/layouts/dock-layout/index.android.js.map +1 -1
- package/ui/layouts/dock-layout/index.ios.js +45 -53
- package/ui/layouts/dock-layout/index.ios.js.map +1 -1
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js +90 -115
- package/ui/layouts/flexbox-layout/flexbox-layout-common.js.map +1 -1
- package/ui/layouts/flexbox-layout/index.android.js +92 -97
- package/ui/layouts/flexbox-layout/index.android.js.map +1 -1
- package/ui/layouts/flexbox-layout/index.ios.js +366 -427
- package/ui/layouts/flexbox-layout/index.ios.js.map +1 -1
- package/ui/layouts/grid-layout/grid-layout-common.js +159 -211
- package/ui/layouts/grid-layout/grid-layout-common.js.map +1 -1
- package/ui/layouts/grid-layout/index.android.js +49 -55
- package/ui/layouts/grid-layout/index.android.js.map +1 -1
- package/ui/layouts/grid-layout/index.ios.js +340 -348
- package/ui/layouts/grid-layout/index.ios.js.map +1 -1
- package/ui/layouts/layout-base-common.js +78 -106
- package/ui/layouts/layout-base-common.js.map +1 -1
- package/ui/layouts/layout-base.android.js +25 -31
- package/ui/layouts/layout-base.android.js.map +1 -1
- package/ui/layouts/layout-base.ios.js +21 -27
- package/ui/layouts/layout-base.ios.js.map +1 -1
- package/ui/layouts/root-layout/index.android.js +47 -46
- package/ui/layouts/root-layout/index.android.js.map +1 -1
- package/ui/layouts/root-layout/index.ios.js +54 -53
- package/ui/layouts/root-layout/index.ios.js.map +1 -1
- package/ui/layouts/root-layout/root-layout-common.js +186 -190
- package/ui/layouts/root-layout/root-layout-common.js.map +1 -1
- package/ui/layouts/stack-layout/index.android.js +6 -12
- package/ui/layouts/stack-layout/index.android.js.map +1 -1
- package/ui/layouts/stack-layout/index.ios.js +62 -69
- package/ui/layouts/stack-layout/index.ios.js.map +1 -1
- package/ui/layouts/stack-layout/stack-layout-common.js +7 -12
- package/ui/layouts/stack-layout/stack-layout-common.js.map +1 -1
- package/ui/layouts/wrap-layout/index.android.js +10 -16
- package/ui/layouts/wrap-layout/index.android.js.map +1 -1
- package/ui/layouts/wrap-layout/index.ios.js +70 -76
- package/ui/layouts/wrap-layout/index.ios.js.map +1 -1
- package/ui/layouts/wrap-layout/wrap-layout-common.js +13 -18
- package/ui/layouts/wrap-layout/wrap-layout-common.js.map +1 -1
- package/ui/list-picker/index.android.js +42 -48
- package/ui/list-picker/index.android.js.map +1 -1
- package/ui/list-picker/index.ios.js +26 -36
- package/ui/list-picker/index.ios.js.map +1 -1
- package/ui/list-picker/list-picker-common.js +27 -32
- package/ui/list-picker/list-picker-common.js.map +1 -1
- package/ui/list-view/index.android.js +98 -110
- package/ui/list-view/index.android.js.map +1 -1
- package/ui/list-view/index.ios.js +121 -137
- package/ui/list-view/index.ios.js.map +1 -1
- package/ui/list-view/list-view-common.js +100 -116
- package/ui/list-view/list-view-common.js.map +1 -1
- package/ui/page/index.android.js +57 -65
- package/ui/page/index.android.js.map +1 -1
- package/ui/page/index.ios.js +98 -107
- package/ui/page/index.ios.js.map +1 -1
- package/ui/page/page-common.js +113 -145
- package/ui/page/page-common.js.map +1 -1
- package/ui/placeholder/index.android.js +10 -16
- package/ui/placeholder/index.android.js.map +1 -1
- package/ui/placeholder/index.js +6 -12
- package/ui/placeholder/index.js.map +1 -1
- package/ui/progress/index.android.js +28 -34
- package/ui/progress/index.android.js.map +1 -1
- package/ui/progress/index.ios.js +29 -39
- package/ui/progress/index.ios.js.map +1 -1
- package/ui/progress/progress-common.js +11 -16
- package/ui/progress/progress-common.js.map +1 -1
- package/ui/proxy-view-container/index.js +90 -111
- package/ui/proxy-view-container/index.js.map +1 -1
- package/ui/repeater/index.js +100 -112
- package/ui/repeater/index.js.map +1 -1
- package/ui/scroll-view/index.android.d.ts +1 -1
- package/ui/scroll-view/index.android.js +75 -95
- package/ui/scroll-view/index.android.js.map +1 -1
- package/ui/scroll-view/index.ios.js +72 -92
- package/ui/scroll-view/index.ios.js.map +1 -1
- package/ui/scroll-view/scroll-view-common.js +45 -65
- package/ui/scroll-view/scroll-view-common.js.map +1 -1
- package/ui/search-bar/index.android.js +88 -94
- package/ui/search-bar/index.android.js.map +1 -1
- package/ui/search-bar/index.ios.js +74 -88
- package/ui/search-bar/index.ios.js.map +1 -1
- package/ui/search-bar/search-bar-common.js +13 -18
- package/ui/search-bar/search-bar-common.js.map +1 -1
- package/ui/segmented-bar/index.android.js +98 -112
- package/ui/segmented-bar/index.android.js.map +1 -1
- package/ui/segmented-bar/index.ios.js +63 -80
- package/ui/segmented-bar/index.ios.js.map +1 -1
- package/ui/segmented-bar/segmented-bar-common.js +61 -81
- package/ui/segmented-bar/segmented-bar-common.js.map +1 -1
- package/ui/slider/index.android.js +43 -49
- package/ui/slider/index.android.js.map +1 -1
- package/ui/slider/index.ios.js +49 -59
- package/ui/slider/index.ios.js.map +1 -1
- package/ui/slider/slider-common.js +28 -35
- package/ui/slider/slider-common.js.map +1 -1
- package/ui/styling/background-common.js +98 -100
- package/ui/styling/background-common.js.map +1 -1
- package/ui/styling/background.android.js +35 -38
- package/ui/styling/background.android.js.map +1 -1
- package/ui/styling/background.ios.js +252 -258
- package/ui/styling/background.ios.js.map +1 -1
- package/ui/styling/box-shadow.js +2 -6
- package/ui/styling/box-shadow.js.map +1 -1
- package/ui/styling/converters.js +7 -7
- package/ui/styling/converters.js.map +1 -1
- package/ui/styling/css-animation-parser.js +56 -69
- package/ui/styling/css-animation-parser.js.map +1 -1
- package/ui/styling/css-selector.js +425 -522
- package/ui/styling/css-selector.js.map +1 -1
- package/ui/styling/css-shadow.js +2 -2
- package/ui/styling/css-shadow.js.map +1 -1
- package/ui/styling/css-stroke.js +3 -3
- package/ui/styling/css-stroke.js.map +1 -1
- package/ui/styling/css-utils.js +22 -22
- package/ui/styling/css-utils.js.map +1 -1
- package/ui/styling/font-common.js +44 -59
- package/ui/styling/font-common.js.map +1 -1
- package/ui/styling/font.android.js +34 -42
- package/ui/styling/font.android.js.map +1 -1
- package/ui/styling/font.ios.js +49 -54
- package/ui/styling/font.ios.js.map +1 -1
- package/ui/styling/linear-gradient.js +13 -17
- package/ui/styling/linear-gradient.js.map +1 -1
- package/ui/styling/style/index.js +36 -47
- package/ui/styling/style/index.js.map +1 -1
- package/ui/styling/style-properties.js +291 -306
- package/ui/styling/style-properties.js.map +1 -1
- package/ui/styling/style-scope.js +377 -416
- package/ui/styling/style-scope.js.map +1 -1
- package/ui/switch/index.android.js +41 -47
- package/ui/switch/index.android.js.map +1 -1
- package/ui/switch/index.ios.js +57 -66
- package/ui/switch/index.ios.js.map +1 -1
- package/ui/switch/switch-common.js +11 -16
- package/ui/switch/switch-common.js.map +1 -1
- package/ui/tab-view/index.android.js +187 -206
- package/ui/tab-view/index.android.js.map +1 -1
- package/ui/tab-view/index.ios.js +161 -177
- package/ui/tab-view/index.ios.js.map +1 -1
- package/ui/tab-view/tab-view-common.js +143 -197
- package/ui/tab-view/tab-view-common.js.map +1 -1
- package/ui/text-base/formatted-string.js +105 -158
- package/ui/text-base/formatted-string.js.map +1 -1
- package/ui/text-base/index.android.js +130 -136
- package/ui/text-base/index.android.js.map +1 -1
- package/ui/text-base/index.ios.js +112 -120
- package/ui/text-base/index.ios.js.map +1 -1
- package/ui/text-base/span.js +102 -158
- package/ui/text-base/span.js.map +1 -1
- package/ui/text-base/text-base-common.js +181 -268
- package/ui/text-base/text-base-common.js.map +1 -1
- package/ui/text-field/index.android.js +18 -24
- package/ui/text-field/index.android.js.map +1 -1
- package/ui/text-field/index.ios.js +70 -80
- package/ui/text-field/index.ios.js.map +1 -1
- package/ui/text-field/text-field-common.js +8 -13
- package/ui/text-field/text-field-common.js.map +1 -1
- package/ui/text-view/index.android.js +13 -19
- package/ui/text-view/index.android.js.map +1 -1
- package/ui/text-view/index.ios.js +116 -124
- package/ui/text-view/index.ios.js.map +1 -1
- package/ui/text-view/text-view-common.js +3 -9
- package/ui/text-view/text-view-common.js.map +1 -1
- package/ui/time-picker/index.android.js +18 -24
- package/ui/time-picker/index.android.js.map +1 -1
- package/ui/time-picker/index.ios.js +61 -69
- package/ui/time-picker/index.ios.js.map +1 -1
- package/ui/time-picker/time-picker-common.js +37 -42
- package/ui/time-picker/time-picker-common.js.map +1 -1
- package/ui/transition/fade-transition.android.js +8 -14
- package/ui/transition/fade-transition.android.js.map +1 -1
- package/ui/transition/fade-transition.ios.js +4 -10
- package/ui/transition/fade-transition.ios.js.map +1 -1
- package/ui/transition/flip-transition.android.js +14 -18
- package/ui/transition/flip-transition.android.js.map +1 -1
- package/ui/transition/index.android.js +24 -27
- package/ui/transition/index.android.js.map +1 -1
- package/ui/transition/index.ios.js +18 -22
- package/ui/transition/index.ios.js.map +1 -1
- package/ui/transition/modal-transition.android.js +4 -10
- package/ui/transition/modal-transition.android.js.map +1 -1
- package/ui/transition/modal-transition.ios.js +18 -25
- package/ui/transition/modal-transition.ios.js.map +1 -1
- package/ui/transition/page-transition.android.js +57 -71
- package/ui/transition/page-transition.android.js.map +1 -1
- package/ui/transition/page-transition.ios.js +19 -27
- package/ui/transition/page-transition.ios.js.map +1 -1
- package/ui/transition/shared-transition-helper.android.js +8 -12
- package/ui/transition/shared-transition-helper.android.js.map +1 -1
- package/ui/transition/shared-transition-helper.ios.js +442 -539
- package/ui/transition/shared-transition-helper.ios.js.map +1 -1
- package/ui/transition/shared-transition.js +77 -76
- package/ui/transition/shared-transition.js.map +1 -1
- package/ui/transition/slide-transition.android.js +17 -22
- package/ui/transition/slide-transition.android.js.map +1 -1
- package/ui/transition/slide-transition.ios.js +7 -11
- package/ui/transition/slide-transition.ios.js.map +1 -1
- package/ui/utils.ios.js +13 -13
- package/ui/utils.ios.js.map +1 -1
- package/ui/web-view/index.android.js +50 -64
- package/ui/web-view/index.android.js.map +1 -1
- package/ui/web-view/index.ios.js +50 -73
- package/ui/web-view/index.ios.js.map +1 -1
- package/ui/web-view/web-view-common.js +29 -43
- package/ui/web-view/web-view-common.js.map +1 -1
- package/utils/android/index.js +26 -27
- package/utils/android/index.js.map +1 -1
- package/utils/common.js +49 -65
- package/utils/common.js.map +1 -1
- package/utils/constants.android.js +1 -1
- package/utils/constants.android.js.map +1 -1
- package/utils/constants.ios.js +1 -1
- package/utils/constants.ios.js.map +1 -1
- package/utils/debug.js +32 -54
- package/utils/debug.js.map +1 -1
- package/utils/index.android.js +40 -36
- package/utils/index.android.js.map +1 -1
- package/utils/index.ios.js +9 -9
- package/utils/index.ios.js.map +1 -1
- package/utils/ios/index.js +45 -42
- package/utils/ios/index.js.map +1 -1
- package/utils/layout-helper/index.android.js +4 -4
- package/utils/layout-helper/index.android.js.map +1 -1
- package/utils/layout-helper/index.ios.js +2 -2
- package/utils/layout-helper/index.ios.js.map +1 -1
- package/utils/layout-helper/layout-helper-common.js +13 -13
- package/utils/layout-helper/layout-helper-common.js.map +1 -1
- package/utils/lazy.js +2 -2
- package/utils/lazy.js.map +1 -1
- package/utils/macrotask-scheduler.js +6 -6
- package/utils/macrotask-scheduler.js.map +1 -1
- package/utils/mainthread-helper.android.js +4 -4
- package/utils/mainthread-helper.android.js.map +1 -1
- package/utils/mainthread-helper.ios.js +1 -1
- package/utils/mainthread-helper.ios.js.map +1 -1
- package/utils/module-merge.js +1 -1
- package/utils/module-merge.js.map +1 -1
- package/utils/native-helper.android.js +19 -19
- package/utils/native-helper.android.js.map +1 -1
- package/utils/native-helper.ios.js +16 -23
- package/utils/native-helper.ios.js.map +1 -1
- package/utils/number-utils.js +3 -3
- package/utils/number-utils.js.map +1 -1
- package/utils/platform-check.js +6 -6
- package/utils/platform-check.js.map +1 -1
- package/utils/types.js +33 -43
- package/utils/types.js.map +1 -1
- package/wgc/crypto/SubtleCrypto.js +132 -167
- package/wgc/crypto/SubtleCrypto.js.map +1 -1
- package/wgc/crypto/index.d.ts +1 -1
- package/wgc/crypto/index.js +10 -18
- package/wgc/crypto/index.js.map +1 -1
- package/xhr/index.js +226 -308
- package/xhr/index.js.map +1 -1
- package/xml/index.js +78 -118
- package/xml/index.js.map +1 -1
|
@@ -17,31 +17,27 @@ import { accessibilityBlurEvent, accessibilityFocusChangedEvent, accessibilityFo
|
|
|
17
17
|
import { SharedTransition } from '../../transition/shared-transition';
|
|
18
18
|
// helpers (these are okay re-exported here)
|
|
19
19
|
export * from './view-helper';
|
|
20
|
-
|
|
20
|
+
let animationModule;
|
|
21
21
|
function ensureAnimationModule() {
|
|
22
22
|
if (!animationModule) {
|
|
23
23
|
animationModule = require('../../animation');
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
export function CSSType(type) {
|
|
27
|
-
return
|
|
27
|
+
return (cls) => {
|
|
28
28
|
cls.prototype.cssType = type;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
export function viewMatchesModuleContext(view, context, types) {
|
|
32
|
-
return context && view._moduleName && context.type && types.some(
|
|
32
|
+
return context && view._moduleName && context.type && types.some((type) => type === context.type) && context.path && context.path.includes(view._moduleName);
|
|
33
33
|
}
|
|
34
|
-
export function PseudoClassHandler() {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
var stateEventNames = pseudoClasses.map(function (s) { return ':' + s; });
|
|
40
|
-
var listeners = Symbol('listeners');
|
|
41
|
-
return function (target, propertyKey, descriptor) {
|
|
34
|
+
export function PseudoClassHandler(...pseudoClasses) {
|
|
35
|
+
const stateEventNames = pseudoClasses.map((s) => ':' + s);
|
|
36
|
+
const listeners = Symbol('listeners');
|
|
37
|
+
return (target, propertyKey, descriptor) => {
|
|
42
38
|
function update(change) {
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
const prev = this[listeners] || 0;
|
|
40
|
+
const next = prev + change;
|
|
45
41
|
if (prev <= 0 && next > 0) {
|
|
46
42
|
this[propertyKey](true);
|
|
47
43
|
}
|
|
@@ -49,45 +45,39 @@ export function PseudoClassHandler() {
|
|
|
49
45
|
this[propertyKey](false);
|
|
50
46
|
}
|
|
51
47
|
}
|
|
52
|
-
stateEventNames.forEach(
|
|
48
|
+
stateEventNames.forEach((s) => (target[s] = update));
|
|
53
49
|
};
|
|
54
50
|
}
|
|
55
|
-
export
|
|
51
|
+
export const _rootModalViews = new Array();
|
|
56
52
|
// TODO: remove once we fully switch to the new event system
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
this._updateStyleScope(undefined, undefined, value);
|
|
72
|
-
},
|
|
73
|
-
enumerable: false,
|
|
74
|
-
configurable: true
|
|
75
|
-
});
|
|
76
|
-
ViewCommon.prototype.addCss = function (cssString) {
|
|
53
|
+
const warnedEvent = new Set();
|
|
54
|
+
export class ViewCommon extends ViewBase {
|
|
55
|
+
constructor() {
|
|
56
|
+
super(...arguments);
|
|
57
|
+
this._gestureObservers = {};
|
|
58
|
+
}
|
|
59
|
+
get css() {
|
|
60
|
+
const scope = this._styleScope;
|
|
61
|
+
return scope && scope.css;
|
|
62
|
+
}
|
|
63
|
+
set css(value) {
|
|
64
|
+
this._updateStyleScope(undefined, undefined, value);
|
|
65
|
+
}
|
|
66
|
+
addCss(cssString) {
|
|
77
67
|
this._updateStyleScope(undefined, cssString);
|
|
78
|
-
}
|
|
79
|
-
|
|
68
|
+
}
|
|
69
|
+
addCssFile(cssFileName) {
|
|
80
70
|
this._updateStyleScope(cssFileName);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
71
|
+
}
|
|
72
|
+
changeCssFile(cssFileName) {
|
|
73
|
+
const scope = this._styleScope;
|
|
84
74
|
if (scope && cssFileName) {
|
|
85
75
|
scope.changeCssFile(cssFileName);
|
|
86
76
|
this._onCssStateChange();
|
|
87
77
|
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
|
|
78
|
+
}
|
|
79
|
+
_updateStyleScope(cssFileName, cssString, css) {
|
|
80
|
+
let scope = this._styleScope;
|
|
91
81
|
if (!scope) {
|
|
92
82
|
scope = new StyleScope();
|
|
93
83
|
this.setScopeProperty(scope, cssFileName, cssString, css);
|
|
@@ -98,8 +88,8 @@ var ViewCommon = /** @class */ (function (_super) {
|
|
|
98
88
|
this.setScopeProperty(scope, cssFileName, cssString, css);
|
|
99
89
|
this._onCssStateChange();
|
|
100
90
|
}
|
|
101
|
-
}
|
|
102
|
-
|
|
91
|
+
}
|
|
92
|
+
setScopeProperty(scope, cssFileName, cssString, css) {
|
|
103
93
|
if (cssFileName !== undefined) {
|
|
104
94
|
scope.addCssFile(cssFileName);
|
|
105
95
|
}
|
|
@@ -109,73 +99,73 @@ var ViewCommon = /** @class */ (function (_super) {
|
|
|
109
99
|
else if (css !== undefined) {
|
|
110
100
|
scope.css = css;
|
|
111
101
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
102
|
+
}
|
|
103
|
+
onLoaded() {
|
|
114
104
|
if (!this.isLoaded) {
|
|
115
|
-
|
|
116
|
-
|
|
105
|
+
const hasTap = this.hasListeners('tap') || this.hasListeners('tapChange') || !!this.getGestureObservers(GestureTypes.tap);
|
|
106
|
+
const enableTapAnimations = TouchManager.enableGlobalTapAnimations && hasTap;
|
|
117
107
|
if (!this.ignoreTouchAnimation && (this.touchAnimation || enableTapAnimations)) {
|
|
118
108
|
TouchManager.addAnimations(this);
|
|
119
109
|
}
|
|
120
110
|
if (__VISIONOS__) {
|
|
121
|
-
|
|
111
|
+
const enableHoverStyle = TouchManager.enableGlobalHoverWhereTap && hasTap;
|
|
122
112
|
if (!this.visionIgnoreHoverStyle && (this.visionHoverStyle || enableHoverStyle)) {
|
|
123
113
|
TouchManager.addHoverStyle(this);
|
|
124
114
|
}
|
|
125
115
|
}
|
|
126
116
|
}
|
|
127
|
-
|
|
117
|
+
super.onLoaded();
|
|
128
118
|
setupAccessibleView(this);
|
|
129
|
-
}
|
|
130
|
-
|
|
119
|
+
}
|
|
120
|
+
_closeAllModalViewsInternal() {
|
|
131
121
|
if (_rootModalViews && _rootModalViews.length > 0) {
|
|
132
|
-
_rootModalViews.forEach(
|
|
122
|
+
_rootModalViews.forEach((v) => {
|
|
133
123
|
v.closeModal();
|
|
134
124
|
});
|
|
135
125
|
return true;
|
|
136
126
|
}
|
|
137
127
|
return false;
|
|
138
|
-
}
|
|
139
|
-
|
|
128
|
+
}
|
|
129
|
+
_getRootModalViews() {
|
|
140
130
|
return _rootModalViews;
|
|
141
|
-
}
|
|
142
|
-
|
|
131
|
+
}
|
|
132
|
+
_onLivesync(context) {
|
|
143
133
|
if (Trace.isEnabled()) {
|
|
144
|
-
Trace.write(
|
|
134
|
+
Trace.write(`${this}._onLivesync(${JSON.stringify(context)})`, Trace.categories.Livesync);
|
|
145
135
|
}
|
|
146
|
-
|
|
136
|
+
let handled = false;
|
|
147
137
|
if (this._closeAllModalViewsInternal()) {
|
|
148
138
|
handled = true;
|
|
149
139
|
}
|
|
150
140
|
if (this._handleLivesync(context)) {
|
|
151
141
|
return true;
|
|
152
142
|
}
|
|
153
|
-
this.eachChildView(
|
|
143
|
+
this.eachChildView((child) => {
|
|
154
144
|
if (child._onLivesync(context)) {
|
|
155
145
|
handled = true;
|
|
156
146
|
return false;
|
|
157
147
|
}
|
|
158
148
|
});
|
|
159
149
|
return handled;
|
|
160
|
-
}
|
|
161
|
-
|
|
150
|
+
}
|
|
151
|
+
_handleLivesync(context) {
|
|
162
152
|
if (Trace.isEnabled()) {
|
|
163
|
-
Trace.write(
|
|
153
|
+
Trace.write(`${this}._handleLivesync(${JSON.stringify(context)})`, Trace.categories.Livesync);
|
|
164
154
|
}
|
|
165
155
|
// Handle local CSS
|
|
166
156
|
if (viewMatchesModuleContext(this, context, ['style'])) {
|
|
167
157
|
if (Trace.isEnabled()) {
|
|
168
|
-
Trace.write(
|
|
158
|
+
Trace.write(`Change Handled: Changing CSS for ${this}`, Trace.categories.Livesync);
|
|
169
159
|
}
|
|
170
160
|
// Always load styles with ".css" extension. Even when changes are in ".scss" ot ".less" files
|
|
171
|
-
|
|
161
|
+
const cssModuleName = `${sanitizeModuleName(context.path)}.css`;
|
|
172
162
|
this.changeCssFile(cssModuleName);
|
|
173
163
|
return true;
|
|
174
164
|
}
|
|
175
165
|
// Handle script/markup changes in custom components by falling back to page refresh
|
|
176
166
|
if (viewMatchesModuleContext(this, context, ['markup', 'script']) && this.page && this.page.frame) {
|
|
177
167
|
if (Trace.isEnabled()) {
|
|
178
|
-
Trace.write(
|
|
168
|
+
Trace.write(`Change Handled: Changing ${context.type} for ${this} inside ${this.page}`, Trace.categories.Livesync);
|
|
179
169
|
}
|
|
180
170
|
return this.page.frame._handleLivesync({
|
|
181
171
|
type: context.type,
|
|
@@ -183,17 +173,16 @@ var ViewCommon = /** @class */ (function (_super) {
|
|
|
183
173
|
});
|
|
184
174
|
}
|
|
185
175
|
return false;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
176
|
+
}
|
|
177
|
+
_setupAsRootView(context) {
|
|
178
|
+
super._setupAsRootView(context);
|
|
189
179
|
if (!this._styleScope) {
|
|
190
180
|
this._updateStyleScope();
|
|
191
181
|
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
var _a;
|
|
182
|
+
}
|
|
183
|
+
_observe(type, callback, thisArg) {
|
|
195
184
|
thisArg = thisArg || undefined;
|
|
196
|
-
if (
|
|
185
|
+
if (this._gestureObservers[type]?.find((observer) => observer.callback === callback && observer.context === thisArg)) {
|
|
197
186
|
// Already added.
|
|
198
187
|
return;
|
|
199
188
|
}
|
|
@@ -201,70 +190,70 @@ var ViewCommon = /** @class */ (function (_super) {
|
|
|
201
190
|
this._gestureObservers[type] = [];
|
|
202
191
|
}
|
|
203
192
|
this._gestureObservers[type].push(gestureObserve(this, type, callback, thisArg));
|
|
204
|
-
}
|
|
205
|
-
|
|
193
|
+
}
|
|
194
|
+
getGestureObservers(type) {
|
|
206
195
|
return this._gestureObservers[type];
|
|
207
|
-
}
|
|
208
|
-
|
|
196
|
+
}
|
|
197
|
+
addEventListener(eventNames, callback, thisArg) {
|
|
209
198
|
thisArg = thisArg || undefined;
|
|
210
199
|
// TODO: Remove this once we fully switch to the new event system
|
|
211
200
|
if (typeof eventNames === 'number') {
|
|
212
201
|
// likely a gesture type from a plugin
|
|
213
|
-
|
|
202
|
+
const gestureName = gestureToString(eventNames);
|
|
214
203
|
if (!warnedEvent.has(gestureName)) {
|
|
215
|
-
console.warn(
|
|
204
|
+
console.warn(`Using a gesture type (${gestureName}) as an event name is deprecated. Please use the event name instead.`);
|
|
216
205
|
warnedEvent.add(gestureName);
|
|
217
206
|
}
|
|
218
207
|
eventNames = gestureName;
|
|
219
208
|
}
|
|
220
209
|
// Normalize "ontap" -> "tap"
|
|
221
|
-
|
|
210
|
+
const normalizedName = getEventOrGestureName(eventNames);
|
|
222
211
|
// Coerce "tap" -> GestureTypes.tap
|
|
223
212
|
// Coerce "loaded" -> undefined
|
|
224
|
-
|
|
213
|
+
const gestureType = gestureFromString(normalizedName);
|
|
225
214
|
// If it's a gesture (and this Observable declares e.g. `static tapEvent`)
|
|
226
215
|
if (gestureType && !this._isEvent(normalizedName)) {
|
|
227
216
|
this._observe(gestureType, callback, thisArg);
|
|
228
217
|
return;
|
|
229
218
|
}
|
|
230
|
-
|
|
231
|
-
}
|
|
232
|
-
|
|
219
|
+
super.addEventListener(normalizedName, callback, thisArg);
|
|
220
|
+
}
|
|
221
|
+
removeEventListener(eventNames, callback, thisArg) {
|
|
233
222
|
thisArg = thisArg || undefined;
|
|
234
223
|
// TODO: Remove this once we fully switch to the new event system
|
|
235
224
|
if (typeof eventNames === 'number') {
|
|
236
225
|
// likely a gesture type from a plugin
|
|
237
|
-
|
|
226
|
+
const gestureName = gestureToString(eventNames);
|
|
238
227
|
if (!warnedEvent.has(gestureName)) {
|
|
239
|
-
console.warn(
|
|
228
|
+
console.warn(`Using a gesture type (${gestureName}) as an event name is deprecated. Please use the event name instead.`);
|
|
240
229
|
warnedEvent.add(gestureName);
|
|
241
230
|
}
|
|
242
231
|
eventNames = gestureName;
|
|
243
232
|
}
|
|
244
233
|
// Normalize "ontap" -> "tap"
|
|
245
|
-
|
|
234
|
+
const normalizedName = getEventOrGestureName(eventNames);
|
|
246
235
|
// Coerce "tap" -> GestureTypes.tap
|
|
247
236
|
// Coerce "loaded" -> undefined
|
|
248
|
-
|
|
237
|
+
const gestureType = gestureFromString(normalizedName);
|
|
249
238
|
// If it's a gesture (and this Observable declares e.g. `static tapEvent`)
|
|
250
239
|
if (gestureType && !this._isEvent(normalizedName)) {
|
|
251
240
|
this._disconnectGestureObservers(gestureType, callback, thisArg);
|
|
252
241
|
return;
|
|
253
242
|
}
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
|
|
243
|
+
super.removeEventListener(normalizedName, callback, thisArg);
|
|
244
|
+
}
|
|
245
|
+
onBackPressed() {
|
|
257
246
|
return false;
|
|
258
|
-
}
|
|
259
|
-
|
|
247
|
+
}
|
|
248
|
+
_getFragmentManager() {
|
|
260
249
|
return undefined;
|
|
261
|
-
}
|
|
262
|
-
|
|
250
|
+
}
|
|
251
|
+
getModalOptions(args) {
|
|
263
252
|
if (args.length === 0) {
|
|
264
253
|
throw new Error('showModal without parameters is deprecated. Please call showModal on a view instance instead.');
|
|
265
254
|
}
|
|
266
255
|
else {
|
|
267
|
-
|
|
256
|
+
let options = null;
|
|
268
257
|
if (args.length === 2) {
|
|
269
258
|
options = args[1];
|
|
270
259
|
}
|
|
@@ -283,137 +272,119 @@ var ViewCommon = /** @class */ (function (_super) {
|
|
|
283
272
|
stretched: args[5],
|
|
284
273
|
};
|
|
285
274
|
}
|
|
286
|
-
|
|
287
|
-
|
|
275
|
+
const firstArgument = args[0];
|
|
276
|
+
const view = firstArgument instanceof ViewCommon ? firstArgument : Builder.createViewFromEntry({
|
|
288
277
|
moduleName: firstArgument,
|
|
289
278
|
});
|
|
290
|
-
return { view
|
|
279
|
+
return { view, options };
|
|
291
280
|
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
args[_i] = arguments[_i];
|
|
298
|
-
}
|
|
299
|
-
var _c = this.getModalOptions(args), view = _c.view, options = _c.options;
|
|
300
|
-
if ((_a = options.transition) === null || _a === void 0 ? void 0 : _a.instance) {
|
|
301
|
-
SharedTransition.updateState((_b = options.transition) === null || _b === void 0 ? void 0 : _b.instance.id, {
|
|
281
|
+
}
|
|
282
|
+
showModal(...args) {
|
|
283
|
+
const { view, options } = this.getModalOptions(args);
|
|
284
|
+
if (options.transition?.instance) {
|
|
285
|
+
SharedTransition.updateState(options.transition?.instance.id, {
|
|
302
286
|
page: this,
|
|
303
287
|
toPage: view,
|
|
304
288
|
});
|
|
305
289
|
}
|
|
306
290
|
view._showNativeModalView(this, options);
|
|
307
291
|
return view;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
312
|
-
args[_i] = arguments[_i];
|
|
313
|
-
}
|
|
314
|
-
var closeCallback = this._closeModalCallback;
|
|
292
|
+
}
|
|
293
|
+
closeModal(...args) {
|
|
294
|
+
const closeCallback = this._closeModalCallback;
|
|
315
295
|
if (closeCallback) {
|
|
316
|
-
closeCallback
|
|
296
|
+
closeCallback(...args);
|
|
317
297
|
}
|
|
318
298
|
else {
|
|
319
|
-
|
|
320
|
-
if (
|
|
321
|
-
|
|
299
|
+
const parent = this.parent;
|
|
300
|
+
if (parent) {
|
|
301
|
+
parent.closeModal(...args);
|
|
322
302
|
}
|
|
323
303
|
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
enumerable: false,
|
|
330
|
-
configurable: true
|
|
331
|
-
});
|
|
332
|
-
ViewCommon.prototype._showNativeModalView = function (parent, options) {
|
|
333
|
-
var _this = this;
|
|
304
|
+
}
|
|
305
|
+
get modal() {
|
|
306
|
+
return this._modal;
|
|
307
|
+
}
|
|
308
|
+
_showNativeModalView(parent, options) {
|
|
334
309
|
_rootModalViews.push(this);
|
|
335
310
|
this.cssClasses.add(CSSUtils.MODAL_ROOT_VIEW_CSS_CLASS);
|
|
336
|
-
|
|
337
|
-
modalRootViewCssClasses.forEach(
|
|
311
|
+
const modalRootViewCssClasses = CSSUtils.getSystemCssClasses();
|
|
312
|
+
modalRootViewCssClasses.forEach((c) => this.cssClasses.add(c));
|
|
338
313
|
parent._modal = this;
|
|
339
314
|
this.style.fontScaleInternal = getCurrentFontScale();
|
|
340
315
|
this._modalParent = parent;
|
|
341
316
|
this._modalContext = options.context;
|
|
342
|
-
this._closeModalCallback =
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
originalArgs[_i] = arguments[_i];
|
|
346
|
-
}
|
|
347
|
-
var cleanupModalViews = function () {
|
|
348
|
-
var modalIndex = _rootModalViews.indexOf(_this);
|
|
317
|
+
this._closeModalCallback = (...originalArgs) => {
|
|
318
|
+
const cleanupModalViews = () => {
|
|
319
|
+
const modalIndex = _rootModalViews.indexOf(this);
|
|
349
320
|
_rootModalViews.splice(modalIndex, 1);
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
321
|
+
this._modalParent = null;
|
|
322
|
+
this._modalContext = null;
|
|
323
|
+
this._closeModalCallback = null;
|
|
324
|
+
this._dialogClosed();
|
|
354
325
|
parent._modal = null;
|
|
355
326
|
};
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
if (transitionState
|
|
359
|
-
SharedTransition.updateState(
|
|
327
|
+
const whenClosedCallback = () => {
|
|
328
|
+
const transitionState = SharedTransition.getState(this.transitionId);
|
|
329
|
+
if (transitionState?.interactiveBegan) {
|
|
330
|
+
SharedTransition.updateState(this.transitionId, {
|
|
360
331
|
interactiveBegan: false,
|
|
361
332
|
});
|
|
362
|
-
if (!
|
|
333
|
+
if (!transitionState?.interactiveCancelled) {
|
|
363
334
|
cleanupModalViews();
|
|
364
335
|
}
|
|
365
336
|
}
|
|
366
|
-
if (!
|
|
337
|
+
if (!transitionState?.interactiveCancelled) {
|
|
367
338
|
if (typeof options.closeCallback === 'function') {
|
|
368
339
|
options.closeCallback.apply(undefined, originalArgs);
|
|
369
340
|
}
|
|
370
|
-
|
|
341
|
+
this._tearDownUI(true);
|
|
371
342
|
}
|
|
372
343
|
};
|
|
373
|
-
|
|
374
|
-
if (!
|
|
344
|
+
const transitionState = SharedTransition.getState(this.transitionId);
|
|
345
|
+
if (!transitionState?.interactiveBegan) {
|
|
375
346
|
cleanupModalViews();
|
|
376
347
|
}
|
|
377
|
-
|
|
348
|
+
this._hideNativeModalView(parent, whenClosedCallback);
|
|
378
349
|
};
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
350
|
+
}
|
|
351
|
+
_hideNativeModalView(parent, whenClosedCallback) { }
|
|
352
|
+
_raiseLayoutChangedEvent() {
|
|
353
|
+
const args = {
|
|
383
354
|
eventName: ViewCommon.layoutChangedEvent,
|
|
384
355
|
object: this,
|
|
385
356
|
};
|
|
386
357
|
this.notify(args);
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
|
|
358
|
+
}
|
|
359
|
+
_raiseShownModallyEvent() {
|
|
360
|
+
const args = {
|
|
390
361
|
eventName: ViewCommon.shownModallyEvent,
|
|
391
362
|
object: this,
|
|
392
363
|
context: this._modalContext,
|
|
393
364
|
closeCallback: this._closeModalCallback,
|
|
394
365
|
};
|
|
395
366
|
this.notify(args);
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
|
|
367
|
+
}
|
|
368
|
+
_raiseShowingModallyEvent() {
|
|
369
|
+
const args = {
|
|
399
370
|
eventName: ViewCommon.showingModallyEvent,
|
|
400
371
|
object: this,
|
|
401
372
|
context: this._modalContext,
|
|
402
373
|
closeCallback: this._closeModalCallback,
|
|
403
374
|
};
|
|
404
375
|
this.notify(args);
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
return this.constructor &&
|
|
408
|
-
}
|
|
409
|
-
|
|
376
|
+
}
|
|
377
|
+
_isEvent(name) {
|
|
378
|
+
return this.constructor && `${name}Event` in this.constructor;
|
|
379
|
+
}
|
|
380
|
+
_disconnectGestureObservers(type, callback, thisArg) {
|
|
410
381
|
// Largely mirrors the implementation of Observable.innerRemoveEventListener().
|
|
411
|
-
|
|
382
|
+
const observers = this.getGestureObservers(type);
|
|
412
383
|
if (!observers) {
|
|
413
384
|
return;
|
|
414
385
|
}
|
|
415
|
-
for (
|
|
416
|
-
|
|
386
|
+
for (let i = 0; i < observers.length; i++) {
|
|
387
|
+
const observer = observers[i];
|
|
417
388
|
// If we have a `thisArg`, refine on both `callback` and `thisArg`.
|
|
418
389
|
if (thisArg && (observer.callback !== callback || observer.context !== thisArg)) {
|
|
419
390
|
continue;
|
|
@@ -429,732 +400,475 @@ var ViewCommon = /** @class */ (function (_super) {
|
|
|
429
400
|
if (!observers.length) {
|
|
430
401
|
delete this._gestureObservers[type];
|
|
431
402
|
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
this.
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
});
|
|
814
|
-
Object.defineProperty(ViewCommon.prototype, "rotate", {
|
|
815
|
-
get: function () {
|
|
816
|
-
return this.style.rotate;
|
|
817
|
-
},
|
|
818
|
-
set: function (value) {
|
|
819
|
-
this.style.rotate = value;
|
|
820
|
-
},
|
|
821
|
-
enumerable: false,
|
|
822
|
-
configurable: true
|
|
823
|
-
});
|
|
824
|
-
Object.defineProperty(ViewCommon.prototype, "rotateX", {
|
|
825
|
-
get: function () {
|
|
826
|
-
return this.style.rotateX;
|
|
827
|
-
},
|
|
828
|
-
set: function (value) {
|
|
829
|
-
this.style.rotateX = value;
|
|
830
|
-
},
|
|
831
|
-
enumerable: false,
|
|
832
|
-
configurable: true
|
|
833
|
-
});
|
|
834
|
-
Object.defineProperty(ViewCommon.prototype, "rotateY", {
|
|
835
|
-
get: function () {
|
|
836
|
-
return this.style.rotateY;
|
|
837
|
-
},
|
|
838
|
-
set: function (value) {
|
|
839
|
-
this.style.rotateY = value;
|
|
840
|
-
},
|
|
841
|
-
enumerable: false,
|
|
842
|
-
configurable: true
|
|
843
|
-
});
|
|
844
|
-
Object.defineProperty(ViewCommon.prototype, "perspective", {
|
|
845
|
-
get: function () {
|
|
846
|
-
return this.style.perspective;
|
|
847
|
-
},
|
|
848
|
-
set: function (value) {
|
|
849
|
-
this.style.perspective = value;
|
|
850
|
-
},
|
|
851
|
-
enumerable: false,
|
|
852
|
-
configurable: true
|
|
853
|
-
});
|
|
854
|
-
Object.defineProperty(ViewCommon.prototype, "textTransform", {
|
|
855
|
-
get: function () {
|
|
856
|
-
return this.style.textTransform;
|
|
857
|
-
},
|
|
858
|
-
set: function (value) {
|
|
859
|
-
this.style.textTransform = value;
|
|
860
|
-
},
|
|
861
|
-
enumerable: false,
|
|
862
|
-
configurable: true
|
|
863
|
-
});
|
|
864
|
-
Object.defineProperty(ViewCommon.prototype, "translateX", {
|
|
865
|
-
get: function () {
|
|
866
|
-
return this.style.translateX;
|
|
867
|
-
},
|
|
868
|
-
set: function (value) {
|
|
869
|
-
this.style.translateX = value;
|
|
870
|
-
},
|
|
871
|
-
enumerable: false,
|
|
872
|
-
configurable: true
|
|
873
|
-
});
|
|
874
|
-
Object.defineProperty(ViewCommon.prototype, "translateY", {
|
|
875
|
-
get: function () {
|
|
876
|
-
return this.style.translateY;
|
|
877
|
-
},
|
|
878
|
-
set: function (value) {
|
|
879
|
-
this.style.translateY = value;
|
|
880
|
-
},
|
|
881
|
-
enumerable: false,
|
|
882
|
-
configurable: true
|
|
883
|
-
});
|
|
884
|
-
Object.defineProperty(ViewCommon.prototype, "scaleX", {
|
|
885
|
-
get: function () {
|
|
886
|
-
return this.style.scaleX;
|
|
887
|
-
},
|
|
888
|
-
set: function (value) {
|
|
889
|
-
this.style.scaleX = value;
|
|
890
|
-
},
|
|
891
|
-
enumerable: false,
|
|
892
|
-
configurable: true
|
|
893
|
-
});
|
|
894
|
-
Object.defineProperty(ViewCommon.prototype, "scaleY", {
|
|
895
|
-
get: function () {
|
|
896
|
-
return this.style.scaleY;
|
|
897
|
-
},
|
|
898
|
-
set: function (value) {
|
|
899
|
-
this.style.scaleY = value;
|
|
900
|
-
},
|
|
901
|
-
enumerable: false,
|
|
902
|
-
configurable: true
|
|
903
|
-
});
|
|
904
|
-
Object.defineProperty(ViewCommon.prototype, "accessible", {
|
|
905
|
-
get: function () {
|
|
906
|
-
return this.style.accessible;
|
|
907
|
-
},
|
|
908
|
-
set: function (value) {
|
|
909
|
-
this.style.accessible = value;
|
|
910
|
-
},
|
|
911
|
-
enumerable: false,
|
|
912
|
-
configurable: true
|
|
913
|
-
});
|
|
914
|
-
Object.defineProperty(ViewCommon.prototype, "accessibilityHidden", {
|
|
915
|
-
get: function () {
|
|
916
|
-
return this.style.accessibilityHidden;
|
|
917
|
-
},
|
|
918
|
-
set: function (value) {
|
|
919
|
-
this.style.accessibilityHidden = value;
|
|
920
|
-
},
|
|
921
|
-
enumerable: false,
|
|
922
|
-
configurable: true
|
|
923
|
-
});
|
|
924
|
-
Object.defineProperty(ViewCommon.prototype, "accessibilityRole", {
|
|
925
|
-
get: function () {
|
|
926
|
-
return this.style.accessibilityRole;
|
|
927
|
-
},
|
|
928
|
-
set: function (value) {
|
|
929
|
-
this.style.accessibilityRole = value;
|
|
930
|
-
},
|
|
931
|
-
enumerable: false,
|
|
932
|
-
configurable: true
|
|
933
|
-
});
|
|
934
|
-
Object.defineProperty(ViewCommon.prototype, "accessibilityState", {
|
|
935
|
-
get: function () {
|
|
936
|
-
return this.style.accessibilityState;
|
|
937
|
-
},
|
|
938
|
-
set: function (value) {
|
|
939
|
-
this.style.accessibilityState = value;
|
|
940
|
-
},
|
|
941
|
-
enumerable: false,
|
|
942
|
-
configurable: true
|
|
943
|
-
});
|
|
944
|
-
Object.defineProperty(ViewCommon.prototype, "accessibilityLiveRegion", {
|
|
945
|
-
get: function () {
|
|
946
|
-
return this.style.accessibilityLiveRegion;
|
|
947
|
-
},
|
|
948
|
-
set: function (value) {
|
|
949
|
-
this.style.accessibilityLiveRegion = value;
|
|
950
|
-
},
|
|
951
|
-
enumerable: false,
|
|
952
|
-
configurable: true
|
|
953
|
-
});
|
|
954
|
-
Object.defineProperty(ViewCommon.prototype, "accessibilityLanguage", {
|
|
955
|
-
get: function () {
|
|
956
|
-
return this.style.accessibilityLanguage;
|
|
957
|
-
},
|
|
958
|
-
set: function (value) {
|
|
959
|
-
this.style.accessibilityLanguage = value;
|
|
960
|
-
},
|
|
961
|
-
enumerable: false,
|
|
962
|
-
configurable: true
|
|
963
|
-
});
|
|
964
|
-
Object.defineProperty(ViewCommon.prototype, "accessibilityMediaSession", {
|
|
965
|
-
get: function () {
|
|
966
|
-
return this.style.accessibilityMediaSession;
|
|
967
|
-
},
|
|
968
|
-
set: function (value) {
|
|
969
|
-
this.style.accessibilityMediaSession = value;
|
|
970
|
-
},
|
|
971
|
-
enumerable: false,
|
|
972
|
-
configurable: true
|
|
973
|
-
});
|
|
974
|
-
Object.defineProperty(ViewCommon.prototype, "iosAccessibilityAdjustsFontSize", {
|
|
975
|
-
get: function () {
|
|
976
|
-
return this.style.iosAccessibilityAdjustsFontSize;
|
|
977
|
-
},
|
|
978
|
-
set: function (value) {
|
|
979
|
-
this.style.iosAccessibilityAdjustsFontSize = value;
|
|
980
|
-
},
|
|
981
|
-
enumerable: false,
|
|
982
|
-
configurable: true
|
|
983
|
-
});
|
|
984
|
-
Object.defineProperty(ViewCommon.prototype, "iosAccessibilityMinFontScale", {
|
|
985
|
-
get: function () {
|
|
986
|
-
return this.style.iosAccessibilityMinFontScale;
|
|
987
|
-
},
|
|
988
|
-
set: function (value) {
|
|
989
|
-
this.style.iosAccessibilityMinFontScale = value;
|
|
990
|
-
},
|
|
991
|
-
enumerable: false,
|
|
992
|
-
configurable: true
|
|
993
|
-
});
|
|
994
|
-
Object.defineProperty(ViewCommon.prototype, "iosAccessibilityMaxFontScale", {
|
|
995
|
-
get: function () {
|
|
996
|
-
return this.style.iosAccessibilityMaxFontScale;
|
|
997
|
-
},
|
|
998
|
-
set: function (value) {
|
|
999
|
-
this.style.iosAccessibilityMaxFontScale = value;
|
|
1000
|
-
},
|
|
1001
|
-
enumerable: false,
|
|
1002
|
-
configurable: true
|
|
1003
|
-
});
|
|
1004
|
-
Object.defineProperty(ViewCommon.prototype, "automationText", {
|
|
1005
|
-
get: function () {
|
|
1006
|
-
return this.accessibilityIdentifier;
|
|
1007
|
-
},
|
|
1008
|
-
set: function (value) {
|
|
1009
|
-
this.accessibilityIdentifier = value;
|
|
1010
|
-
},
|
|
1011
|
-
enumerable: false,
|
|
1012
|
-
configurable: true
|
|
1013
|
-
});
|
|
1014
|
-
Object.defineProperty(ViewCommon.prototype, "androidElevation", {
|
|
1015
|
-
get: function () {
|
|
1016
|
-
return this.style.androidElevation;
|
|
1017
|
-
},
|
|
1018
|
-
set: function (value) {
|
|
1019
|
-
this.style.androidElevation = value;
|
|
1020
|
-
},
|
|
1021
|
-
enumerable: false,
|
|
1022
|
-
configurable: true
|
|
1023
|
-
});
|
|
1024
|
-
Object.defineProperty(ViewCommon.prototype, "androidDynamicElevationOffset", {
|
|
1025
|
-
get: function () {
|
|
1026
|
-
return this.style.androidDynamicElevationOffset;
|
|
1027
|
-
},
|
|
1028
|
-
set: function (value) {
|
|
1029
|
-
this.style.androidDynamicElevationOffset = value;
|
|
1030
|
-
},
|
|
1031
|
-
enumerable: false,
|
|
1032
|
-
configurable: true
|
|
1033
|
-
});
|
|
1034
|
-
Object.defineProperty(ViewCommon.prototype, "isLayoutValid", {
|
|
1035
|
-
get: function () {
|
|
1036
|
-
return this._isLayoutValid;
|
|
1037
|
-
},
|
|
1038
|
-
enumerable: false,
|
|
1039
|
-
configurable: true
|
|
1040
|
-
});
|
|
1041
|
-
Object.defineProperty(ViewCommon.prototype, "cssType", {
|
|
1042
|
-
get: function () {
|
|
1043
|
-
if (!this._cssType) {
|
|
1044
|
-
this._cssType = this.typeName.toLowerCase();
|
|
1045
|
-
}
|
|
1046
|
-
return this._cssType;
|
|
1047
|
-
},
|
|
1048
|
-
set: function (type) {
|
|
1049
|
-
this._cssType = type.toLowerCase();
|
|
1050
|
-
},
|
|
1051
|
-
enumerable: false,
|
|
1052
|
-
configurable: true
|
|
1053
|
-
});
|
|
1054
|
-
Object.defineProperty(ViewCommon.prototype, "isLayoutRequired", {
|
|
1055
|
-
get: function () {
|
|
1056
|
-
return true;
|
|
1057
|
-
},
|
|
1058
|
-
enumerable: false,
|
|
1059
|
-
configurable: true
|
|
1060
|
-
});
|
|
1061
|
-
Object.defineProperty(ViewCommon.prototype, "needsNativeDrawableFill", {
|
|
1062
|
-
get: function () {
|
|
1063
|
-
return false;
|
|
1064
|
-
},
|
|
1065
|
-
enumerable: false,
|
|
1066
|
-
configurable: true
|
|
1067
|
-
});
|
|
1068
|
-
ViewCommon.prototype.measure = function (widthMeasureSpec, heightMeasureSpec) {
|
|
403
|
+
}
|
|
404
|
+
// START Style property shortcuts
|
|
405
|
+
get flexFlow() {
|
|
406
|
+
return this.style.flexFlow;
|
|
407
|
+
}
|
|
408
|
+
set flexFlow(value) {
|
|
409
|
+
this.style.flexFlow = value;
|
|
410
|
+
}
|
|
411
|
+
get flex() {
|
|
412
|
+
return this.style.flex;
|
|
413
|
+
}
|
|
414
|
+
set flex(value) {
|
|
415
|
+
this.style.flex = value;
|
|
416
|
+
}
|
|
417
|
+
get borderColor() {
|
|
418
|
+
return this.style.borderColor;
|
|
419
|
+
}
|
|
420
|
+
set borderColor(value) {
|
|
421
|
+
this.style.borderColor = value;
|
|
422
|
+
}
|
|
423
|
+
get borderTopColor() {
|
|
424
|
+
return this.style.borderTopColor;
|
|
425
|
+
}
|
|
426
|
+
set borderTopColor(value) {
|
|
427
|
+
this.style.borderTopColor = value;
|
|
428
|
+
}
|
|
429
|
+
get borderRightColor() {
|
|
430
|
+
return this.style.borderRightColor;
|
|
431
|
+
}
|
|
432
|
+
set borderRightColor(value) {
|
|
433
|
+
this.style.borderRightColor = value;
|
|
434
|
+
}
|
|
435
|
+
get borderBottomColor() {
|
|
436
|
+
return this.style.borderBottomColor;
|
|
437
|
+
}
|
|
438
|
+
set borderBottomColor(value) {
|
|
439
|
+
this.style.borderBottomColor = value;
|
|
440
|
+
}
|
|
441
|
+
get borderLeftColor() {
|
|
442
|
+
return this.style.borderLeftColor;
|
|
443
|
+
}
|
|
444
|
+
set borderLeftColor(value) {
|
|
445
|
+
this.style.borderLeftColor = value;
|
|
446
|
+
}
|
|
447
|
+
get borderWidth() {
|
|
448
|
+
return this.style.borderWidth;
|
|
449
|
+
}
|
|
450
|
+
set borderWidth(value) {
|
|
451
|
+
this.style.borderWidth = value;
|
|
452
|
+
}
|
|
453
|
+
get borderTopWidth() {
|
|
454
|
+
return this.style.borderTopWidth;
|
|
455
|
+
}
|
|
456
|
+
set borderTopWidth(value) {
|
|
457
|
+
this.style.borderTopWidth = value;
|
|
458
|
+
}
|
|
459
|
+
get borderRightWidth() {
|
|
460
|
+
return this.style.borderRightWidth;
|
|
461
|
+
}
|
|
462
|
+
set borderRightWidth(value) {
|
|
463
|
+
this.style.borderRightWidth = value;
|
|
464
|
+
}
|
|
465
|
+
get borderBottomWidth() {
|
|
466
|
+
return this.style.borderBottomWidth;
|
|
467
|
+
}
|
|
468
|
+
set borderBottomWidth(value) {
|
|
469
|
+
this.style.borderBottomWidth = value;
|
|
470
|
+
}
|
|
471
|
+
get borderLeftWidth() {
|
|
472
|
+
return this.style.borderLeftWidth;
|
|
473
|
+
}
|
|
474
|
+
set borderLeftWidth(value) {
|
|
475
|
+
this.style.borderLeftWidth = value;
|
|
476
|
+
}
|
|
477
|
+
get borderRadius() {
|
|
478
|
+
return this.style.borderRadius;
|
|
479
|
+
}
|
|
480
|
+
set borderRadius(value) {
|
|
481
|
+
this.style.borderRadius = value;
|
|
482
|
+
}
|
|
483
|
+
get borderTopLeftRadius() {
|
|
484
|
+
return this.style.borderTopLeftRadius;
|
|
485
|
+
}
|
|
486
|
+
set borderTopLeftRadius(value) {
|
|
487
|
+
this.style.borderTopLeftRadius = value;
|
|
488
|
+
}
|
|
489
|
+
get borderTopRightRadius() {
|
|
490
|
+
return this.style.borderTopRightRadius;
|
|
491
|
+
}
|
|
492
|
+
set borderTopRightRadius(value) {
|
|
493
|
+
this.style.borderTopRightRadius = value;
|
|
494
|
+
}
|
|
495
|
+
get borderBottomRightRadius() {
|
|
496
|
+
return this.style.borderBottomRightRadius;
|
|
497
|
+
}
|
|
498
|
+
set borderBottomRightRadius(value) {
|
|
499
|
+
this.style.borderBottomRightRadius = value;
|
|
500
|
+
}
|
|
501
|
+
get borderBottomLeftRadius() {
|
|
502
|
+
return this.style.borderBottomLeftRadius;
|
|
503
|
+
}
|
|
504
|
+
set borderBottomLeftRadius(value) {
|
|
505
|
+
this.style.borderBottomLeftRadius = value;
|
|
506
|
+
}
|
|
507
|
+
get color() {
|
|
508
|
+
return this.style.color;
|
|
509
|
+
}
|
|
510
|
+
set color(value) {
|
|
511
|
+
this.style.color = value;
|
|
512
|
+
}
|
|
513
|
+
get background() {
|
|
514
|
+
return this.style.background;
|
|
515
|
+
}
|
|
516
|
+
set background(value) {
|
|
517
|
+
this.style.background = value;
|
|
518
|
+
}
|
|
519
|
+
get backgroundColor() {
|
|
520
|
+
return this.style.backgroundColor;
|
|
521
|
+
}
|
|
522
|
+
set backgroundColor(value) {
|
|
523
|
+
this.style.backgroundColor = value;
|
|
524
|
+
}
|
|
525
|
+
get backgroundImage() {
|
|
526
|
+
return this.style.backgroundImage;
|
|
527
|
+
}
|
|
528
|
+
set backgroundImage(value) {
|
|
529
|
+
this.style.backgroundImage = value;
|
|
530
|
+
}
|
|
531
|
+
get backgroundSize() {
|
|
532
|
+
return this.style.backgroundSize;
|
|
533
|
+
}
|
|
534
|
+
set backgroundSize(value) {
|
|
535
|
+
this.style.backgroundSize = value;
|
|
536
|
+
}
|
|
537
|
+
get backgroundPosition() {
|
|
538
|
+
return this.style.backgroundPosition;
|
|
539
|
+
}
|
|
540
|
+
set backgroundPosition(value) {
|
|
541
|
+
this.style.backgroundPosition = value;
|
|
542
|
+
}
|
|
543
|
+
get backgroundRepeat() {
|
|
544
|
+
return this.style.backgroundRepeat;
|
|
545
|
+
}
|
|
546
|
+
set backgroundRepeat(value) {
|
|
547
|
+
this.style.backgroundRepeat = value;
|
|
548
|
+
}
|
|
549
|
+
get boxShadow() {
|
|
550
|
+
return this.style.boxShadow;
|
|
551
|
+
}
|
|
552
|
+
set boxShadow(value) {
|
|
553
|
+
this.style.boxShadow = value;
|
|
554
|
+
}
|
|
555
|
+
get minWidth() {
|
|
556
|
+
return this.style.minWidth;
|
|
557
|
+
}
|
|
558
|
+
set minWidth(value) {
|
|
559
|
+
this.style.minWidth = value;
|
|
560
|
+
}
|
|
561
|
+
get minHeight() {
|
|
562
|
+
return this.style.minHeight;
|
|
563
|
+
}
|
|
564
|
+
set minHeight(value) {
|
|
565
|
+
this.style.minHeight = value;
|
|
566
|
+
}
|
|
567
|
+
get width() {
|
|
568
|
+
return this.style.width;
|
|
569
|
+
}
|
|
570
|
+
set width(value) {
|
|
571
|
+
this.style.width = value;
|
|
572
|
+
}
|
|
573
|
+
get height() {
|
|
574
|
+
return this.style.height;
|
|
575
|
+
}
|
|
576
|
+
set height(value) {
|
|
577
|
+
this.style.height = value;
|
|
578
|
+
}
|
|
579
|
+
get margin() {
|
|
580
|
+
return this.style.margin;
|
|
581
|
+
}
|
|
582
|
+
set margin(value) {
|
|
583
|
+
this.style.margin = value;
|
|
584
|
+
}
|
|
585
|
+
get marginLeft() {
|
|
586
|
+
return this.style.marginLeft;
|
|
587
|
+
}
|
|
588
|
+
set marginLeft(value) {
|
|
589
|
+
this.style.marginLeft = value;
|
|
590
|
+
}
|
|
591
|
+
get marginTop() {
|
|
592
|
+
return this.style.marginTop;
|
|
593
|
+
}
|
|
594
|
+
set marginTop(value) {
|
|
595
|
+
this.style.marginTop = value;
|
|
596
|
+
}
|
|
597
|
+
get marginRight() {
|
|
598
|
+
return this.style.marginRight;
|
|
599
|
+
}
|
|
600
|
+
set marginRight(value) {
|
|
601
|
+
this.style.marginRight = value;
|
|
602
|
+
}
|
|
603
|
+
get marginBottom() {
|
|
604
|
+
return this.style.marginBottom;
|
|
605
|
+
}
|
|
606
|
+
set marginBottom(value) {
|
|
607
|
+
this.style.marginBottom = value;
|
|
608
|
+
}
|
|
609
|
+
get horizontalAlignment() {
|
|
610
|
+
return this.style.horizontalAlignment;
|
|
611
|
+
}
|
|
612
|
+
set horizontalAlignment(value) {
|
|
613
|
+
this.style.horizontalAlignment = value;
|
|
614
|
+
}
|
|
615
|
+
get verticalAlignment() {
|
|
616
|
+
return this.style.verticalAlignment;
|
|
617
|
+
}
|
|
618
|
+
set verticalAlignment(value) {
|
|
619
|
+
this.style.verticalAlignment = value;
|
|
620
|
+
}
|
|
621
|
+
get visibility() {
|
|
622
|
+
return this.style.visibility;
|
|
623
|
+
}
|
|
624
|
+
set visibility(value) {
|
|
625
|
+
this.style.visibility = value;
|
|
626
|
+
}
|
|
627
|
+
get opacity() {
|
|
628
|
+
return this.style.opacity;
|
|
629
|
+
}
|
|
630
|
+
set opacity(value) {
|
|
631
|
+
this.style.opacity = value;
|
|
632
|
+
}
|
|
633
|
+
get rotate() {
|
|
634
|
+
return this.style.rotate;
|
|
635
|
+
}
|
|
636
|
+
set rotate(value) {
|
|
637
|
+
this.style.rotate = value;
|
|
638
|
+
}
|
|
639
|
+
get rotateX() {
|
|
640
|
+
return this.style.rotateX;
|
|
641
|
+
}
|
|
642
|
+
set rotateX(value) {
|
|
643
|
+
this.style.rotateX = value;
|
|
644
|
+
}
|
|
645
|
+
get rotateY() {
|
|
646
|
+
return this.style.rotateY;
|
|
647
|
+
}
|
|
648
|
+
set rotateY(value) {
|
|
649
|
+
this.style.rotateY = value;
|
|
650
|
+
}
|
|
651
|
+
get perspective() {
|
|
652
|
+
return this.style.perspective;
|
|
653
|
+
}
|
|
654
|
+
set perspective(value) {
|
|
655
|
+
this.style.perspective = value;
|
|
656
|
+
}
|
|
657
|
+
get textTransform() {
|
|
658
|
+
return this.style.textTransform;
|
|
659
|
+
}
|
|
660
|
+
set textTransform(value) {
|
|
661
|
+
this.style.textTransform = value;
|
|
662
|
+
}
|
|
663
|
+
get translateX() {
|
|
664
|
+
return this.style.translateX;
|
|
665
|
+
}
|
|
666
|
+
set translateX(value) {
|
|
667
|
+
this.style.translateX = value;
|
|
668
|
+
}
|
|
669
|
+
get translateY() {
|
|
670
|
+
return this.style.translateY;
|
|
671
|
+
}
|
|
672
|
+
set translateY(value) {
|
|
673
|
+
this.style.translateY = value;
|
|
674
|
+
}
|
|
675
|
+
get scaleX() {
|
|
676
|
+
return this.style.scaleX;
|
|
677
|
+
}
|
|
678
|
+
set scaleX(value) {
|
|
679
|
+
this.style.scaleX = value;
|
|
680
|
+
}
|
|
681
|
+
get scaleY() {
|
|
682
|
+
return this.style.scaleY;
|
|
683
|
+
}
|
|
684
|
+
set scaleY(value) {
|
|
685
|
+
this.style.scaleY = value;
|
|
686
|
+
}
|
|
687
|
+
get accessible() {
|
|
688
|
+
return this.style.accessible;
|
|
689
|
+
}
|
|
690
|
+
set accessible(value) {
|
|
691
|
+
this.style.accessible = value;
|
|
692
|
+
}
|
|
693
|
+
get accessibilityHidden() {
|
|
694
|
+
return this.style.accessibilityHidden;
|
|
695
|
+
}
|
|
696
|
+
set accessibilityHidden(value) {
|
|
697
|
+
this.style.accessibilityHidden = value;
|
|
698
|
+
}
|
|
699
|
+
get accessibilityRole() {
|
|
700
|
+
return this.style.accessibilityRole;
|
|
701
|
+
}
|
|
702
|
+
set accessibilityRole(value) {
|
|
703
|
+
this.style.accessibilityRole = value;
|
|
704
|
+
}
|
|
705
|
+
get accessibilityState() {
|
|
706
|
+
return this.style.accessibilityState;
|
|
707
|
+
}
|
|
708
|
+
set accessibilityState(value) {
|
|
709
|
+
this.style.accessibilityState = value;
|
|
710
|
+
}
|
|
711
|
+
get accessibilityLiveRegion() {
|
|
712
|
+
return this.style.accessibilityLiveRegion;
|
|
713
|
+
}
|
|
714
|
+
set accessibilityLiveRegion(value) {
|
|
715
|
+
this.style.accessibilityLiveRegion = value;
|
|
716
|
+
}
|
|
717
|
+
get accessibilityLanguage() {
|
|
718
|
+
return this.style.accessibilityLanguage;
|
|
719
|
+
}
|
|
720
|
+
set accessibilityLanguage(value) {
|
|
721
|
+
this.style.accessibilityLanguage = value;
|
|
722
|
+
}
|
|
723
|
+
get accessibilityMediaSession() {
|
|
724
|
+
return this.style.accessibilityMediaSession;
|
|
725
|
+
}
|
|
726
|
+
set accessibilityMediaSession(value) {
|
|
727
|
+
this.style.accessibilityMediaSession = value;
|
|
728
|
+
}
|
|
729
|
+
get iosAccessibilityAdjustsFontSize() {
|
|
730
|
+
return this.style.iosAccessibilityAdjustsFontSize;
|
|
731
|
+
}
|
|
732
|
+
set iosAccessibilityAdjustsFontSize(value) {
|
|
733
|
+
this.style.iosAccessibilityAdjustsFontSize = value;
|
|
734
|
+
}
|
|
735
|
+
get iosAccessibilityMinFontScale() {
|
|
736
|
+
return this.style.iosAccessibilityMinFontScale;
|
|
737
|
+
}
|
|
738
|
+
set iosAccessibilityMinFontScale(value) {
|
|
739
|
+
this.style.iosAccessibilityMinFontScale = value;
|
|
740
|
+
}
|
|
741
|
+
get iosAccessibilityMaxFontScale() {
|
|
742
|
+
return this.style.iosAccessibilityMaxFontScale;
|
|
743
|
+
}
|
|
744
|
+
set iosAccessibilityMaxFontScale(value) {
|
|
745
|
+
this.style.iosAccessibilityMaxFontScale = value;
|
|
746
|
+
}
|
|
747
|
+
get automationText() {
|
|
748
|
+
return this.accessibilityIdentifier;
|
|
749
|
+
}
|
|
750
|
+
set automationText(value) {
|
|
751
|
+
this.accessibilityIdentifier = value;
|
|
752
|
+
}
|
|
753
|
+
get androidElevation() {
|
|
754
|
+
return this.style.androidElevation;
|
|
755
|
+
}
|
|
756
|
+
set androidElevation(value) {
|
|
757
|
+
this.style.androidElevation = value;
|
|
758
|
+
}
|
|
759
|
+
get androidDynamicElevationOffset() {
|
|
760
|
+
return this.style.androidDynamicElevationOffset;
|
|
761
|
+
}
|
|
762
|
+
set androidDynamicElevationOffset(value) {
|
|
763
|
+
this.style.androidDynamicElevationOffset = value;
|
|
764
|
+
}
|
|
765
|
+
get isLayoutValid() {
|
|
766
|
+
return this._isLayoutValid;
|
|
767
|
+
}
|
|
768
|
+
get cssType() {
|
|
769
|
+
if (!this._cssType) {
|
|
770
|
+
this._cssType = this.typeName.toLowerCase();
|
|
771
|
+
}
|
|
772
|
+
return this._cssType;
|
|
773
|
+
}
|
|
774
|
+
set cssType(type) {
|
|
775
|
+
this._cssType = type.toLowerCase();
|
|
776
|
+
}
|
|
777
|
+
get isLayoutRequired() {
|
|
778
|
+
return true;
|
|
779
|
+
}
|
|
780
|
+
get needsNativeDrawableFill() {
|
|
781
|
+
return false;
|
|
782
|
+
}
|
|
783
|
+
measure(widthMeasureSpec, heightMeasureSpec) {
|
|
1069
784
|
this._setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec);
|
|
1070
|
-
}
|
|
1071
|
-
|
|
785
|
+
}
|
|
786
|
+
layout(left, top, right, bottom) {
|
|
1072
787
|
this._setCurrentLayoutBounds(left, top, right, bottom);
|
|
1073
|
-
}
|
|
1074
|
-
|
|
788
|
+
}
|
|
789
|
+
getMeasuredWidth() {
|
|
1075
790
|
return this._measuredWidth & layout.MEASURED_SIZE_MASK || 0;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
791
|
+
}
|
|
792
|
+
getMeasuredHeight() {
|
|
1078
793
|
return this._measuredHeight & layout.MEASURED_SIZE_MASK || 0;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
794
|
+
}
|
|
795
|
+
getMeasuredState() {
|
|
1081
796
|
return (this._measuredWidth & layout.MEASURED_STATE_MASK) | ((this._measuredHeight >> layout.MEASURED_HEIGHT_STATE_SHIFT) & (layout.MEASURED_STATE_MASK >> layout.MEASURED_HEIGHT_STATE_SHIFT));
|
|
1082
|
-
}
|
|
1083
|
-
|
|
797
|
+
}
|
|
798
|
+
setMeasuredDimension(measuredWidth, measuredHeight) {
|
|
1084
799
|
this._measuredWidth = measuredWidth;
|
|
1085
800
|
this._measuredHeight = measuredHeight;
|
|
1086
801
|
if (Trace.isEnabled()) {
|
|
1087
802
|
Trace.write(this + ' :setMeasuredDimension: ' + measuredWidth + ', ' + measuredHeight, Trace.categories.Layout);
|
|
1088
803
|
}
|
|
1089
|
-
}
|
|
1090
|
-
|
|
804
|
+
}
|
|
805
|
+
requestLayout() {
|
|
1091
806
|
this._isLayoutValid = false;
|
|
1092
|
-
|
|
1093
|
-
}
|
|
1094
|
-
|
|
807
|
+
super.requestLayout();
|
|
808
|
+
}
|
|
809
|
+
static resolveSizeAndState(size, specSize, specMode, childMeasuredState) {
|
|
1095
810
|
return ViewHelper.resolveSizeAndState(size, specSize, specMode, childMeasuredState);
|
|
1096
|
-
}
|
|
1097
|
-
|
|
811
|
+
}
|
|
812
|
+
static combineMeasuredStates(curState, newState) {
|
|
1098
813
|
return ViewHelper.combineMeasuredStates(curState, newState);
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
if (setFrame === void 0) { setFrame = true; }
|
|
814
|
+
}
|
|
815
|
+
static layoutChild(parent, child, left, top, right, bottom, setFrame = true) {
|
|
1102
816
|
ViewHelper.layoutChild(parent, child, left, top, right, bottom);
|
|
1103
|
-
}
|
|
1104
|
-
|
|
817
|
+
}
|
|
818
|
+
static measureChild(parent, child, widthMeasureSpec, heightMeasureSpec) {
|
|
1105
819
|
return ViewHelper.measureChild(parent, child, widthMeasureSpec, heightMeasureSpec);
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
|
|
820
|
+
}
|
|
821
|
+
_setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec) {
|
|
822
|
+
const changed = this._currentWidthMeasureSpec !== widthMeasureSpec || this._currentHeightMeasureSpec !== heightMeasureSpec;
|
|
1109
823
|
this._currentWidthMeasureSpec = widthMeasureSpec;
|
|
1110
824
|
this._currentHeightMeasureSpec = heightMeasureSpec;
|
|
1111
825
|
return changed;
|
|
1112
|
-
}
|
|
1113
|
-
|
|
826
|
+
}
|
|
827
|
+
_getCurrentLayoutBounds() {
|
|
1114
828
|
return { left: 0, top: 0, right: 0, bottom: 0 };
|
|
1115
|
-
}
|
|
829
|
+
}
|
|
1116
830
|
/**
|
|
1117
831
|
* Returns two booleans - the first if "boundsChanged" the second is "sizeChanged".
|
|
1118
832
|
*/
|
|
1119
|
-
|
|
833
|
+
_setCurrentLayoutBounds(left, top, right, bottom) {
|
|
1120
834
|
this._isLayoutValid = true;
|
|
1121
|
-
|
|
1122
|
-
|
|
835
|
+
const boundsChanged = this._oldLeft !== left || this._oldTop !== top || this._oldRight !== right || this._oldBottom !== bottom;
|
|
836
|
+
const sizeChanged = this._oldRight - this._oldLeft !== right - left || this._oldBottom - this._oldTop !== bottom - top;
|
|
1123
837
|
this._oldLeft = left;
|
|
1124
838
|
this._oldTop = top;
|
|
1125
839
|
this._oldRight = right;
|
|
1126
840
|
this._oldBottom = bottom;
|
|
1127
|
-
return { boundsChanged
|
|
1128
|
-
}
|
|
1129
|
-
|
|
841
|
+
return { boundsChanged, sizeChanged };
|
|
842
|
+
}
|
|
843
|
+
eachChild(callback) {
|
|
1130
844
|
this.eachChildView(callback);
|
|
1131
|
-
}
|
|
1132
|
-
|
|
845
|
+
}
|
|
846
|
+
eachChildView(callback) {
|
|
1133
847
|
//
|
|
1134
|
-
}
|
|
1135
|
-
|
|
848
|
+
}
|
|
849
|
+
_getNativeViewsCount() {
|
|
1136
850
|
return this._isAddedToNativeVisualTree ? 1 : 0;
|
|
1137
|
-
}
|
|
1138
|
-
|
|
851
|
+
}
|
|
852
|
+
_eachLayoutView(callback) {
|
|
1139
853
|
return callback(this);
|
|
1140
|
-
}
|
|
1141
|
-
|
|
854
|
+
}
|
|
855
|
+
focus() {
|
|
1142
856
|
return undefined;
|
|
1143
|
-
}
|
|
1144
|
-
|
|
857
|
+
}
|
|
858
|
+
getSafeAreaInsets() {
|
|
1145
859
|
return { left: 0, top: 0, right: 0, bottom: 0 };
|
|
1146
|
-
}
|
|
1147
|
-
|
|
860
|
+
}
|
|
861
|
+
getLocationInWindow() {
|
|
1148
862
|
return undefined;
|
|
1149
|
-
}
|
|
1150
|
-
|
|
863
|
+
}
|
|
864
|
+
getLocationOnScreen() {
|
|
1151
865
|
return undefined;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
866
|
+
}
|
|
867
|
+
getLocationRelativeTo(otherView) {
|
|
1154
868
|
return undefined;
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
|
|
869
|
+
}
|
|
870
|
+
getActualSize() {
|
|
871
|
+
const currentBounds = this._getCurrentLayoutBounds();
|
|
1158
872
|
if (!currentBounds) {
|
|
1159
873
|
return undefined;
|
|
1160
874
|
}
|
|
@@ -1162,22 +876,22 @@ var ViewCommon = /** @class */ (function (_super) {
|
|
|
1162
876
|
width: layout.toDeviceIndependentPixels(currentBounds.right - currentBounds.left),
|
|
1163
877
|
height: layout.toDeviceIndependentPixels(currentBounds.bottom - currentBounds.top),
|
|
1164
878
|
};
|
|
1165
|
-
}
|
|
1166
|
-
|
|
879
|
+
}
|
|
880
|
+
animate(animation) {
|
|
1167
881
|
return this.createAnimation(animation).play();
|
|
1168
|
-
}
|
|
1169
|
-
|
|
882
|
+
}
|
|
883
|
+
createAnimation(animation) {
|
|
1170
884
|
ensureAnimationModule();
|
|
1171
885
|
if (!this._localAnimations) {
|
|
1172
886
|
this._localAnimations = new Set();
|
|
1173
887
|
}
|
|
1174
888
|
animation.target = this;
|
|
1175
|
-
|
|
889
|
+
const anim = new animationModule.Animation([animation]);
|
|
1176
890
|
this._localAnimations.add(anim);
|
|
1177
891
|
return anim;
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
|
|
892
|
+
}
|
|
893
|
+
_removeAnimation(animation) {
|
|
894
|
+
const localAnimations = this._localAnimations;
|
|
1181
895
|
if (localAnimations && localAnimations.has(animation)) {
|
|
1182
896
|
localAnimations.delete(animation);
|
|
1183
897
|
if (animation.isPlaying) {
|
|
@@ -1186,98 +900,95 @@ var ViewCommon = /** @class */ (function (_super) {
|
|
|
1186
900
|
return true;
|
|
1187
901
|
}
|
|
1188
902
|
return false;
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
var _this = this;
|
|
903
|
+
}
|
|
904
|
+
resetNativeView() {
|
|
1192
905
|
if (this._localAnimations) {
|
|
1193
|
-
this._localAnimations.forEach(
|
|
906
|
+
this._localAnimations.forEach((a) => this._removeAnimation(a));
|
|
1194
907
|
}
|
|
1195
|
-
|
|
1196
|
-
}
|
|
1197
|
-
|
|
908
|
+
super.resetNativeView();
|
|
909
|
+
}
|
|
910
|
+
_setNativeViewFrame(nativeView, frame) {
|
|
1198
911
|
//
|
|
1199
|
-
}
|
|
1200
|
-
|
|
912
|
+
}
|
|
913
|
+
_getValue() {
|
|
1201
914
|
throw new Error('The View._getValue is obsolete. There is a new property system.');
|
|
1202
|
-
}
|
|
1203
|
-
|
|
915
|
+
}
|
|
916
|
+
_setValue() {
|
|
1204
917
|
throw new Error('The View._setValue is obsolete. There is a new property system.');
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
918
|
+
}
|
|
919
|
+
_updateEffectiveLayoutValues(parentWidthMeasureSize, parentWidthMeasureMode, parentHeightMeasureSize, parentHeightMeasureMode) {
|
|
920
|
+
const style = this.style;
|
|
921
|
+
const availableWidth = parentWidthMeasureMode === layout.UNSPECIFIED ? -1 : parentWidthMeasureSize;
|
|
1209
922
|
this.effectiveWidth = PercentLength.toDevicePixels(style.width, -2, availableWidth);
|
|
1210
923
|
this.effectiveMarginLeft = PercentLength.toDevicePixels(style.marginLeft, 0, availableWidth);
|
|
1211
924
|
this.effectiveMarginRight = PercentLength.toDevicePixels(style.marginRight, 0, availableWidth);
|
|
1212
|
-
|
|
925
|
+
const availableHeight = parentHeightMeasureMode === layout.UNSPECIFIED ? -1 : parentHeightMeasureSize;
|
|
1213
926
|
this.effectiveHeight = PercentLength.toDevicePixels(style.height, -2, availableHeight);
|
|
1214
927
|
this.effectiveMarginTop = PercentLength.toDevicePixels(style.marginTop, 0, availableHeight);
|
|
1215
928
|
this.effectiveMarginBottom = PercentLength.toDevicePixels(style.marginBottom, 0, availableHeight);
|
|
1216
|
-
}
|
|
1217
|
-
|
|
929
|
+
}
|
|
930
|
+
_setNativeClipToBounds() {
|
|
1218
931
|
//
|
|
1219
|
-
}
|
|
1220
|
-
|
|
932
|
+
}
|
|
933
|
+
_redrawNativeBackground(value) {
|
|
1221
934
|
//
|
|
1222
|
-
}
|
|
1223
|
-
|
|
935
|
+
}
|
|
936
|
+
_applyBackground(background, isBorderDrawable, onlyColor, backgroundDrawable) {
|
|
1224
937
|
//
|
|
1225
|
-
}
|
|
1226
|
-
|
|
938
|
+
}
|
|
939
|
+
_onAttachedToWindow() {
|
|
1227
940
|
//
|
|
1228
|
-
}
|
|
1229
|
-
|
|
941
|
+
}
|
|
942
|
+
_onDetachedFromWindow() {
|
|
1230
943
|
//
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
for (
|
|
1235
|
-
if (matcher(
|
|
944
|
+
}
|
|
945
|
+
_hasAncestorView(ancestorView) {
|
|
946
|
+
const matcher = (view) => view === ancestorView;
|
|
947
|
+
for (let parent = this.parent; parent != null; parent = parent.parent) {
|
|
948
|
+
if (matcher(parent)) {
|
|
1236
949
|
return true;
|
|
1237
950
|
}
|
|
1238
951
|
}
|
|
1239
952
|
return false;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
953
|
+
}
|
|
954
|
+
sendAccessibilityEvent(options) {
|
|
1242
955
|
return;
|
|
1243
|
-
}
|
|
1244
|
-
|
|
956
|
+
}
|
|
957
|
+
accessibilityAnnouncement(msg) {
|
|
1245
958
|
return;
|
|
1246
|
-
}
|
|
1247
|
-
|
|
959
|
+
}
|
|
960
|
+
accessibilityScreenChanged() {
|
|
1248
961
|
return;
|
|
1249
|
-
}
|
|
1250
|
-
|
|
962
|
+
}
|
|
963
|
+
setAccessibilityIdentifier(view, value) {
|
|
1251
964
|
return;
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
export { ViewCommon };
|
|
1263
|
-
export var originXProperty = new Property({
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
ViewCommon.layoutChangedEvent = 'layoutChanged';
|
|
968
|
+
ViewCommon.shownModallyEvent = 'shownModally';
|
|
969
|
+
ViewCommon.showingModallyEvent = 'showingModally';
|
|
970
|
+
ViewCommon.accessibilityBlurEvent = accessibilityBlurEvent;
|
|
971
|
+
ViewCommon.accessibilityFocusEvent = accessibilityFocusEvent;
|
|
972
|
+
ViewCommon.accessibilityFocusChangedEvent = accessibilityFocusChangedEvent;
|
|
973
|
+
ViewCommon.accessibilityPerformEscapeEvent = accessibilityPerformEscapeEvent;
|
|
974
|
+
export const originXProperty = new Property({
|
|
1264
975
|
name: 'originX',
|
|
1265
976
|
defaultValue: 0.5,
|
|
1266
|
-
valueConverter:
|
|
977
|
+
valueConverter: (v) => parseFloat(v),
|
|
1267
978
|
});
|
|
1268
979
|
originXProperty.register(ViewCommon);
|
|
1269
|
-
export
|
|
980
|
+
export const originYProperty = new Property({
|
|
1270
981
|
name: 'originY',
|
|
1271
982
|
defaultValue: 0.5,
|
|
1272
|
-
valueConverter:
|
|
983
|
+
valueConverter: (v) => parseFloat(v),
|
|
1273
984
|
});
|
|
1274
985
|
originYProperty.register(ViewCommon);
|
|
1275
|
-
export
|
|
986
|
+
export const isEnabledProperty = new Property({
|
|
1276
987
|
name: 'isEnabled',
|
|
1277
988
|
defaultValue: true,
|
|
1278
989
|
valueConverter: booleanConverter,
|
|
1279
|
-
valueChanged
|
|
1280
|
-
|
|
990
|
+
valueChanged(target, oldValue, newValue) {
|
|
991
|
+
const state = 'disabled';
|
|
1281
992
|
if (newValue) {
|
|
1282
993
|
target._removeVisualState(state);
|
|
1283
994
|
}
|
|
@@ -1287,51 +998,51 @@ export var isEnabledProperty = new Property({
|
|
|
1287
998
|
},
|
|
1288
999
|
});
|
|
1289
1000
|
isEnabledProperty.register(ViewCommon);
|
|
1290
|
-
export
|
|
1001
|
+
export const isUserInteractionEnabledProperty = new Property({
|
|
1291
1002
|
name: 'isUserInteractionEnabled',
|
|
1292
1003
|
defaultValue: true,
|
|
1293
1004
|
valueConverter: booleanConverter,
|
|
1294
1005
|
});
|
|
1295
1006
|
isUserInteractionEnabledProperty.register(ViewCommon);
|
|
1296
|
-
export
|
|
1007
|
+
export const iosOverflowSafeAreaProperty = new Property({
|
|
1297
1008
|
name: 'iosOverflowSafeArea',
|
|
1298
1009
|
defaultValue: false,
|
|
1299
1010
|
valueConverter: booleanConverter,
|
|
1300
1011
|
});
|
|
1301
1012
|
iosOverflowSafeAreaProperty.register(ViewCommon);
|
|
1302
|
-
export
|
|
1013
|
+
export const iosOverflowSafeAreaEnabledProperty = new InheritedProperty({
|
|
1303
1014
|
name: 'iosOverflowSafeAreaEnabled',
|
|
1304
1015
|
defaultValue: true,
|
|
1305
1016
|
valueConverter: booleanConverter,
|
|
1306
1017
|
});
|
|
1307
1018
|
iosOverflowSafeAreaEnabledProperty.register(ViewCommon);
|
|
1308
|
-
export
|
|
1019
|
+
export const iosIgnoreSafeAreaProperty = new InheritedProperty({
|
|
1309
1020
|
name: 'iosIgnoreSafeArea',
|
|
1310
1021
|
defaultValue: false,
|
|
1311
1022
|
valueConverter: booleanConverter,
|
|
1312
1023
|
});
|
|
1313
1024
|
iosIgnoreSafeAreaProperty.register(ViewCommon);
|
|
1314
|
-
export
|
|
1025
|
+
export const visionHoverStyleProperty = new Property({
|
|
1315
1026
|
name: 'visionHoverStyle',
|
|
1316
|
-
valueChanged
|
|
1027
|
+
valueChanged(view, oldValue, newValue) {
|
|
1317
1028
|
view.visionHoverStyle = newValue;
|
|
1318
1029
|
},
|
|
1319
1030
|
});
|
|
1320
1031
|
visionHoverStyleProperty.register(ViewCommon);
|
|
1321
|
-
|
|
1032
|
+
const visionIgnoreHoverStyleProperty = new Property({
|
|
1322
1033
|
name: 'visionIgnoreHoverStyle',
|
|
1323
|
-
valueChanged
|
|
1034
|
+
valueChanged(view, oldValue, newValue) {
|
|
1324
1035
|
view.visionIgnoreHoverStyle = newValue;
|
|
1325
1036
|
},
|
|
1326
1037
|
valueConverter: booleanConverter,
|
|
1327
1038
|
});
|
|
1328
1039
|
visionIgnoreHoverStyleProperty.register(ViewCommon);
|
|
1329
|
-
|
|
1040
|
+
const touchAnimationProperty = new Property({
|
|
1330
1041
|
name: 'touchAnimation',
|
|
1331
|
-
valueChanged
|
|
1042
|
+
valueChanged(view, oldValue, newValue) {
|
|
1332
1043
|
view.touchAnimation = newValue;
|
|
1333
1044
|
},
|
|
1334
|
-
valueConverter
|
|
1045
|
+
valueConverter(value) {
|
|
1335
1046
|
if (isObject(value)) {
|
|
1336
1047
|
return value;
|
|
1337
1048
|
}
|
|
@@ -1341,23 +1052,23 @@ var touchAnimationProperty = new Property({
|
|
|
1341
1052
|
},
|
|
1342
1053
|
});
|
|
1343
1054
|
touchAnimationProperty.register(ViewCommon);
|
|
1344
|
-
|
|
1055
|
+
const ignoreTouchAnimationProperty = new Property({
|
|
1345
1056
|
name: 'ignoreTouchAnimation',
|
|
1346
|
-
valueChanged
|
|
1057
|
+
valueChanged(view, oldValue, newValue) {
|
|
1347
1058
|
view.ignoreTouchAnimation = newValue;
|
|
1348
1059
|
},
|
|
1349
1060
|
valueConverter: booleanConverter,
|
|
1350
1061
|
});
|
|
1351
1062
|
ignoreTouchAnimationProperty.register(ViewCommon);
|
|
1352
|
-
|
|
1063
|
+
const touchDelayProperty = new Property({
|
|
1353
1064
|
name: 'touchDelay',
|
|
1354
|
-
valueChanged
|
|
1065
|
+
valueChanged(view, oldValue, newValue) {
|
|
1355
1066
|
view.touchDelay = newValue;
|
|
1356
1067
|
},
|
|
1357
|
-
valueConverter:
|
|
1068
|
+
valueConverter: (v) => parseFloat(v),
|
|
1358
1069
|
});
|
|
1359
1070
|
touchDelayProperty.register(ViewCommon);
|
|
1360
|
-
export
|
|
1071
|
+
export const testIDProperty = new Property({
|
|
1361
1072
|
name: 'testID',
|
|
1362
1073
|
});
|
|
1363
1074
|
testIDProperty.register(ViewCommon);
|