@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
|
@@ -1,108 +1,69 @@
|
|
|
1
1
|
import { platformNames } from '../common';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
class DeviceRef {
|
|
3
|
+
get manufacturer() {
|
|
4
|
+
return 'Apple';
|
|
4
5
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
get: function () {
|
|
36
|
-
if (!this._model) {
|
|
37
|
-
this._model = UIDevice.currentDevice.model;
|
|
38
|
-
}
|
|
39
|
-
return this._model;
|
|
40
|
-
},
|
|
41
|
-
enumerable: false,
|
|
42
|
-
configurable: true
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(DeviceRef.prototype, "sdkVersion", {
|
|
45
|
-
get: function () {
|
|
46
|
-
if (!this._sdkVersion) {
|
|
47
|
-
this._sdkVersion = UIDevice.currentDevice.systemVersion;
|
|
6
|
+
get os() {
|
|
7
|
+
if (__VISIONOS__) {
|
|
8
|
+
return platformNames.visionos;
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
return platformNames.ios;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
get osVersion() {
|
|
15
|
+
if (!this._osVersion) {
|
|
16
|
+
this._osVersion = UIDevice.currentDevice.systemVersion;
|
|
17
|
+
}
|
|
18
|
+
return this._osVersion;
|
|
19
|
+
}
|
|
20
|
+
get model() {
|
|
21
|
+
if (!this._model) {
|
|
22
|
+
this._model = UIDevice.currentDevice.model;
|
|
23
|
+
}
|
|
24
|
+
return this._model;
|
|
25
|
+
}
|
|
26
|
+
get sdkVersion() {
|
|
27
|
+
if (!this._sdkVersion) {
|
|
28
|
+
this._sdkVersion = UIDevice.currentDevice.systemVersion;
|
|
29
|
+
}
|
|
30
|
+
return this._sdkVersion;
|
|
31
|
+
}
|
|
32
|
+
get deviceType() {
|
|
33
|
+
if (!this._deviceType) {
|
|
34
|
+
if (UIDevice.currentDevice.userInterfaceIdiom === 0 /* UIUserInterfaceIdiom.Phone */) {
|
|
35
|
+
this._deviceType = 'Phone';
|
|
48
36
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(DeviceRef.prototype, "deviceType", {
|
|
55
|
-
get: function () {
|
|
56
|
-
if (!this._deviceType) {
|
|
57
|
-
if (UIDevice.currentDevice.userInterfaceIdiom === 0 /* UIUserInterfaceIdiom.Phone */) {
|
|
58
|
-
this._deviceType = 'Phone';
|
|
59
|
-
}
|
|
60
|
-
else if (UIDevice.currentDevice.userInterfaceIdiom === 6 /* UIUserInterfaceIdiom.Vision */) {
|
|
61
|
-
this._deviceType = 'Tablet';
|
|
62
|
-
// TODO: could add conditions throughout core for this
|
|
63
|
-
// this._deviceType = 'Vision';
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
this._deviceType = 'Tablet';
|
|
67
|
-
}
|
|
37
|
+
else if (UIDevice.currentDevice.userInterfaceIdiom === 6 /* UIUserInterfaceIdiom.Vision */) {
|
|
38
|
+
this._deviceType = 'Tablet';
|
|
39
|
+
// TODO: could add conditions throughout core for this
|
|
40
|
+
// this._deviceType = 'Vision';
|
|
68
41
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
enumerable: false,
|
|
72
|
-
configurable: true
|
|
73
|
-
});
|
|
74
|
-
Object.defineProperty(DeviceRef.prototype, "uuid", {
|
|
75
|
-
get: function () {
|
|
76
|
-
var userDefaults = NSUserDefaults.standardUserDefaults;
|
|
77
|
-
var uuid_key = 'TNSUUID';
|
|
78
|
-
var app_uuid = userDefaults.stringForKey(uuid_key);
|
|
79
|
-
if (!app_uuid) {
|
|
80
|
-
app_uuid = NSUUID.UUID().UUIDString;
|
|
81
|
-
userDefaults.setObjectForKey(app_uuid, uuid_key);
|
|
82
|
-
userDefaults.synchronize();
|
|
42
|
+
else {
|
|
43
|
+
this._deviceType = 'Tablet';
|
|
83
44
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export
|
|
45
|
+
}
|
|
46
|
+
return this._deviceType;
|
|
47
|
+
}
|
|
48
|
+
get uuid() {
|
|
49
|
+
const userDefaults = NSUserDefaults.standardUserDefaults;
|
|
50
|
+
const uuid_key = 'TNSUUID';
|
|
51
|
+
let app_uuid = userDefaults.stringForKey(uuid_key);
|
|
52
|
+
if (!app_uuid) {
|
|
53
|
+
app_uuid = NSUUID.UUID().UUIDString;
|
|
54
|
+
userDefaults.setObjectForKey(app_uuid, uuid_key);
|
|
55
|
+
userDefaults.synchronize();
|
|
56
|
+
}
|
|
57
|
+
return app_uuid;
|
|
58
|
+
}
|
|
59
|
+
get language() {
|
|
60
|
+
return NSLocale.preferredLanguages[0];
|
|
61
|
+
}
|
|
62
|
+
get region() {
|
|
63
|
+
return NSLocale.currentLocale.objectForKey(NSLocaleCountryCode);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export const Device = new DeviceRef();
|
|
106
67
|
// This retains compatibility with NS6
|
|
107
|
-
export
|
|
68
|
+
export const device = Device;
|
|
108
69
|
//# sourceMappingURL=index.ios.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../../packages/core/platform/device/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAI1C
|
|
1
|
+
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../../packages/core/platform/device/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAI1C,MAAM,SAAS;IAMd,IAAI,YAAY;QACf,OAAO,OAAO,CAAC;IAChB,CAAC;IAED,IAAI,EAAE;QACL,IAAI,YAAY,EAAE,CAAC;YAClB,OAAO,aAAa,CAAC,QAAQ,CAAC;QAC/B,CAAC;aAAM,CAAC;YACP,OAAO,aAAa,CAAC,GAAG,CAAC;QAC1B,CAAC;IACF,CAAC;IAED,IAAI,SAAS;QACZ,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACtB,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC;QACxD,CAAC;QAED,OAAO,IAAI,CAAC,UAAU,CAAC;IACxB,CAAC;IAED,IAAI,KAAK;QACR,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YAClB,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;QAC5C,CAAC;QAED,OAAO,IAAI,CAAC,MAAM,CAAC;IACpB,CAAC;IAED,IAAI,UAAU;QACb,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACvB,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC;QACzD,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC;IACzB,CAAC;IAED,IAAI,UAAU;QACb,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACvB,IAAI,QAAQ,CAAC,aAAa,CAAC,kBAAkB,uCAA+B,EAAE,CAAC;gBAC9E,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;YAC5B,CAAC;iBAAM,IAAI,QAAQ,CAAC,aAAa,CAAC,kBAAkB,wCAAgC,EAAE,CAAC;gBACtF,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC;gBAC5B,sDAAsD;gBACtD,+BAA+B;YAChC,CAAC;iBAAM,CAAC;gBACP,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC;YAC7B,CAAC;QACF,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC;IACzB,CAAC;IAED,IAAI,IAAI;QACP,MAAM,YAAY,GAAG,cAAc,CAAC,oBAAoB,CAAC;QACzD,MAAM,QAAQ,GAAG,SAAS,CAAC;QAC3B,IAAI,QAAQ,GAAG,YAAY,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAEnD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACf,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC;YACpC,YAAY,CAAC,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YACjD,YAAY,CAAC,WAAW,EAAE,CAAC;QAC5B,CAAC;QAED,OAAO,QAAQ,CAAC;IACjB,CAAC;IAED,IAAI,QAAQ;QACX,OAAO,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,MAAM;QACT,OAAO,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;IACjE,CAAC;CACD;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;AAEtC,sCAAsC;AACtC,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -1,72 +1,41 @@
|
|
|
1
1
|
import { Application } from '../../application';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
MainScreen.prototype.initMetrics = function () {
|
|
6
|
-
var nativeApp = Application.android.getNativeApplication();
|
|
2
|
+
class MainScreen {
|
|
3
|
+
initMetrics() {
|
|
4
|
+
const nativeApp = Application.android.getNativeApplication();
|
|
7
5
|
nativeApp.getSystemService(android.content.Context.WINDOW_SERVICE).getDefaultDisplay().getRealMetrics(this._metrics);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
configurable: true
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(MainScreen.prototype, "scale", {
|
|
35
|
-
get: function () {
|
|
36
|
-
return this.metrics.density;
|
|
37
|
-
},
|
|
38
|
-
enumerable: false,
|
|
39
|
-
configurable: true
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(MainScreen.prototype, "widthDIPs", {
|
|
42
|
-
get: function () {
|
|
43
|
-
return this.metrics.widthPixels / this.metrics.density;
|
|
44
|
-
},
|
|
45
|
-
enumerable: false,
|
|
46
|
-
configurable: true
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(MainScreen.prototype, "heightDIPs", {
|
|
49
|
-
get: function () {
|
|
50
|
-
return this.metrics.heightPixels / this.metrics.density;
|
|
51
|
-
},
|
|
52
|
-
enumerable: false,
|
|
53
|
-
configurable: true
|
|
54
|
-
});
|
|
55
|
-
MainScreen.prototype._updateMetrics = function () {
|
|
6
|
+
}
|
|
7
|
+
get metrics() {
|
|
8
|
+
if (!this._metrics) {
|
|
9
|
+
this._metrics = new android.util.DisplayMetrics();
|
|
10
|
+
this.initMetrics();
|
|
11
|
+
}
|
|
12
|
+
return this._metrics;
|
|
13
|
+
}
|
|
14
|
+
get widthPixels() {
|
|
15
|
+
return this.metrics.widthPixels;
|
|
16
|
+
}
|
|
17
|
+
get heightPixels() {
|
|
18
|
+
return this.metrics.heightPixels;
|
|
19
|
+
}
|
|
20
|
+
get scale() {
|
|
21
|
+
return this.metrics.density;
|
|
22
|
+
}
|
|
23
|
+
get widthDIPs() {
|
|
24
|
+
return this.metrics.widthPixels / this.metrics.density;
|
|
25
|
+
}
|
|
26
|
+
get heightDIPs() {
|
|
27
|
+
return this.metrics.heightPixels / this.metrics.density;
|
|
28
|
+
}
|
|
29
|
+
_updateMetrics() {
|
|
56
30
|
if (!this._metrics) {
|
|
57
31
|
this._metrics = new android.util.DisplayMetrics();
|
|
58
32
|
}
|
|
59
33
|
this.initMetrics();
|
|
60
|
-
};
|
|
61
|
-
return MainScreen;
|
|
62
|
-
}());
|
|
63
|
-
var Screen = /** @class */ (function () {
|
|
64
|
-
function Screen() {
|
|
65
34
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
|
|
35
|
+
}
|
|
36
|
+
export class Screen {
|
|
37
|
+
}
|
|
38
|
+
Screen.mainScreen = new MainScreen();
|
|
70
39
|
// This retains compatibility with NS6
|
|
71
|
-
export
|
|
40
|
+
export const screen = Screen;
|
|
72
41
|
//# sourceMappingURL=index.android.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../../packages/core/platform/screen/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD
|
|
1
|
+
{"version":3,"file":"index.android.js","sourceRoot":"","sources":["../../../../../packages/core/platform/screen/index.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,UAAU;IAGP,WAAW;QAClB,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,CAAC,oBAAoB,EAAE,CAAC;QAC7D,SAAS,CAAC,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,iBAAiB,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtH,CAAC;IAED,IAAY,OAAO;QAClB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;YAClD,IAAI,CAAC,WAAW,EAAE,CAAC;QACpB,CAAC;QAED,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAED,IAAI,WAAW;QACd,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;IACjC,CAAC;IACD,IAAI,YAAY;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;IAClC,CAAC;IACD,IAAI,KAAK;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IAC7B,CAAC;IACD,IAAI,SAAS;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IACxD,CAAC;IACD,IAAI,UAAU;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IACzD,CAAC;IAEM,cAAc;QACpB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;QACnD,CAAC;QACD,IAAI,CAAC,WAAW,EAAE,CAAC;IACpB,CAAC;CACD;AAED,MAAM,OAAO,MAAM;;AACX,iBAAU,GAAG,IAAI,UAAU,EAAE,CAAC;AAGtC,sCAAsC;AACtC,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -1,66 +1,35 @@
|
|
|
1
1
|
import { ios } from '../../utils';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
class MainScreen {
|
|
3
|
+
get screen() {
|
|
4
|
+
if (!this._screen) {
|
|
5
|
+
// NOTE: may not want to cache this value with SwiftUI app lifecycle based apps (using NativeScriptViewFactory) given the potential of multiple scenes
|
|
6
|
+
const window = ios.getWindow();
|
|
7
|
+
this._screen = window ? window.screen : UIScreen.mainScreen;
|
|
8
|
+
}
|
|
9
|
+
return this._screen;
|
|
4
10
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
enumerable: false,
|
|
22
|
-
configurable: true
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(MainScreen.prototype, "heightPixels", {
|
|
25
|
-
get: function () {
|
|
26
|
-
return this.heightDIPs * this.scale;
|
|
27
|
-
},
|
|
28
|
-
enumerable: false,
|
|
29
|
-
configurable: true
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(MainScreen.prototype, "scale", {
|
|
32
|
-
get: function () {
|
|
33
|
-
return this.screen.scale;
|
|
34
|
-
},
|
|
35
|
-
enumerable: false,
|
|
36
|
-
configurable: true
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(MainScreen.prototype, "widthDIPs", {
|
|
39
|
-
get: function () {
|
|
40
|
-
return this.screen.bounds.size.width;
|
|
41
|
-
},
|
|
42
|
-
enumerable: false,
|
|
43
|
-
configurable: true
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(MainScreen.prototype, "heightDIPs", {
|
|
46
|
-
get: function () {
|
|
47
|
-
return this.screen.bounds.size.height;
|
|
48
|
-
},
|
|
49
|
-
enumerable: false,
|
|
50
|
-
configurable: true
|
|
51
|
-
});
|
|
52
|
-
MainScreen.prototype._updateMetrics = function () {
|
|
11
|
+
get widthPixels() {
|
|
12
|
+
return this.widthDIPs * this.scale;
|
|
13
|
+
}
|
|
14
|
+
get heightPixels() {
|
|
15
|
+
return this.heightDIPs * this.scale;
|
|
16
|
+
}
|
|
17
|
+
get scale() {
|
|
18
|
+
return this.screen.scale;
|
|
19
|
+
}
|
|
20
|
+
get widthDIPs() {
|
|
21
|
+
return this.screen.bounds.size.width;
|
|
22
|
+
}
|
|
23
|
+
get heightDIPs() {
|
|
24
|
+
return this.screen.bounds.size.height;
|
|
25
|
+
}
|
|
26
|
+
_updateMetrics() {
|
|
53
27
|
// UIScreen handles the update on iOS
|
|
54
|
-
};
|
|
55
|
-
return MainScreen;
|
|
56
|
-
}());
|
|
57
|
-
var Screen = /** @class */ (function () {
|
|
58
|
-
function Screen() {
|
|
59
28
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
29
|
+
}
|
|
30
|
+
export class Screen {
|
|
31
|
+
}
|
|
32
|
+
Screen.mainScreen = new MainScreen();
|
|
64
33
|
// This retains compatibility with NS6
|
|
65
|
-
export
|
|
34
|
+
export const screen = Screen;
|
|
66
35
|
//# sourceMappingURL=index.ios.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../../packages/core/platform/screen/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC
|
|
1
|
+
{"version":3,"file":"index.ios.js","sourceRoot":"","sources":["../../../../../packages/core/platform/screen/index.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,MAAM,UAAU;IAGf,IAAY,MAAM;QACjB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YACnB,sJAAsJ;YACtJ,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,EAAE,CAAC;YAC/B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC;QAC7D,CAAC;QAED,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;IAED,IAAI,WAAW;QACd,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;IACpC,CAAC;IACD,IAAI,YAAY;QACf,OAAO,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC;IACrC,CAAC;IACD,IAAI,KAAK;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;IAC1B,CAAC;IACD,IAAI,SAAS;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;IACtC,CAAC;IACD,IAAI,UAAU;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;IACvC,CAAC;IAEM,cAAc;QACpB,qCAAqC;IACtC,CAAC;CACD;AAED,MAAM,OAAO,MAAM;;AACX,iBAAU,GAAG,IAAI,UAAU,EAAE,CAAC;AAGtC,sCAAsC;AACtC,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC"}
|
package/profiling/index.js
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
export function uptime() {
|
|
2
2
|
return global.android ? org.nativescript.Process.getUpTime() : global.__tns_uptime();
|
|
3
3
|
}
|
|
4
|
-
export function log(message) {
|
|
5
|
-
var optionalParams = [];
|
|
6
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
7
|
-
optionalParams[_i - 1] = arguments[_i];
|
|
8
|
-
}
|
|
4
|
+
export function log(message, ...optionalParams) {
|
|
9
5
|
if (global.__nslog) {
|
|
10
6
|
global.__nslog('CONSOLE LOG: ' + message);
|
|
11
7
|
}
|
|
12
|
-
console.log
|
|
8
|
+
console.log(message, ...optionalParams);
|
|
13
9
|
}
|
|
14
10
|
// Use object instead of map as it is a bit faster
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export
|
|
11
|
+
const timers = {};
|
|
12
|
+
const anyGlobal = global;
|
|
13
|
+
const profileNames = [];
|
|
14
|
+
export const time = (global.__time || Date.now);
|
|
19
15
|
export function start(name) {
|
|
20
|
-
|
|
16
|
+
let info = timers[name];
|
|
21
17
|
if (info) {
|
|
22
18
|
info.currentStart = time();
|
|
23
19
|
info.runCount++;
|
|
@@ -34,9 +30,9 @@ export function start(name) {
|
|
|
34
30
|
}
|
|
35
31
|
}
|
|
36
32
|
export function stop(name) {
|
|
37
|
-
|
|
33
|
+
const info = timers[name];
|
|
38
34
|
if (!info) {
|
|
39
|
-
throw new Error(
|
|
35
|
+
throw new Error(`No timer started: ${name}`);
|
|
40
36
|
}
|
|
41
37
|
if (info.runCount) {
|
|
42
38
|
info.runCount--;
|
|
@@ -51,7 +47,7 @@ export function stop(name) {
|
|
|
51
47
|
}
|
|
52
48
|
}
|
|
53
49
|
else {
|
|
54
|
-
throw new Error(
|
|
50
|
+
throw new Error(`Timer ${name} paused more times than started.`);
|
|
55
51
|
}
|
|
56
52
|
return info;
|
|
57
53
|
}
|
|
@@ -59,19 +55,18 @@ export function timer(name) {
|
|
|
59
55
|
return timers[name];
|
|
60
56
|
}
|
|
61
57
|
export function print(name) {
|
|
62
|
-
|
|
58
|
+
const info = timers[name];
|
|
63
59
|
if (!info) {
|
|
64
|
-
throw new Error(
|
|
60
|
+
throw new Error(`No timer started: ${name}`);
|
|
65
61
|
}
|
|
66
|
-
console.log(
|
|
62
|
+
console.log(`---- [${name}] STOP total: ${info.totalTime} count:${info.count}`);
|
|
67
63
|
return info;
|
|
68
64
|
}
|
|
69
65
|
export function isRunning(name) {
|
|
70
|
-
|
|
66
|
+
const info = timers[name];
|
|
71
67
|
return !!(info && info.runCount);
|
|
72
68
|
}
|
|
73
|
-
function countersProfileFunctionFactory(fn, name, type) {
|
|
74
|
-
if (type === void 0) { type = 1 /* MemberType.Instance */; }
|
|
69
|
+
function countersProfileFunctionFactory(fn, name, type = 1 /* MemberType.Instance */) {
|
|
75
70
|
profileNames.push(name);
|
|
76
71
|
return function () {
|
|
77
72
|
start(name);
|
|
@@ -83,27 +78,26 @@ function countersProfileFunctionFactory(fn, name, type) {
|
|
|
83
78
|
}
|
|
84
79
|
};
|
|
85
80
|
}
|
|
86
|
-
function timelineProfileFunctionFactory(fn, name, type) {
|
|
87
|
-
if (type === void 0) { type = 1 /* MemberType.Instance */; }
|
|
81
|
+
function timelineProfileFunctionFactory(fn, name, type = 1 /* MemberType.Instance */) {
|
|
88
82
|
return type === 1 /* MemberType.Instance */
|
|
89
83
|
? function () {
|
|
90
|
-
|
|
84
|
+
const start = time();
|
|
91
85
|
try {
|
|
92
86
|
return fn.apply(this, arguments);
|
|
93
87
|
}
|
|
94
88
|
finally {
|
|
95
|
-
|
|
96
|
-
console.log(
|
|
89
|
+
const end = time();
|
|
90
|
+
console.log(`Timeline: Modules: ${name} ${this} (${start}ms. - ${end}ms.)`);
|
|
97
91
|
}
|
|
98
92
|
}
|
|
99
93
|
: function () {
|
|
100
|
-
|
|
94
|
+
const start = time();
|
|
101
95
|
try {
|
|
102
96
|
return fn.apply(this, arguments);
|
|
103
97
|
}
|
|
104
98
|
finally {
|
|
105
|
-
|
|
106
|
-
console.log(
|
|
99
|
+
const end = time();
|
|
100
|
+
console.log(`Timeline: Modules: ${name} (${start}ms. - ${end}ms.)`);
|
|
107
101
|
}
|
|
108
102
|
};
|
|
109
103
|
}
|
|
@@ -113,10 +107,9 @@ export var Level;
|
|
|
113
107
|
Level[Level["lifecycle"] = 1] = "lifecycle";
|
|
114
108
|
Level[Level["timeline"] = 2] = "timeline";
|
|
115
109
|
})(Level || (Level = {}));
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
export function enable(mode) {
|
|
119
|
-
if (mode === void 0) { mode = 'counters'; }
|
|
110
|
+
let tracingLevel = Level.none;
|
|
111
|
+
let profileFunctionFactory;
|
|
112
|
+
export function enable(mode = 'counters') {
|
|
120
113
|
profileFunctionFactory =
|
|
121
114
|
mode &&
|
|
122
115
|
{
|
|
@@ -130,7 +123,7 @@ export function enable(mode) {
|
|
|
130
123
|
}[mode] || Level.none;
|
|
131
124
|
}
|
|
132
125
|
try {
|
|
133
|
-
|
|
126
|
+
const appConfig = require('~/package.json');
|
|
134
127
|
if (appConfig && appConfig.profiling) {
|
|
135
128
|
enable(appConfig.profiling);
|
|
136
129
|
}
|
|
@@ -149,55 +142,55 @@ export function disable() {
|
|
|
149
142
|
function profileFunction(fn, customName) {
|
|
150
143
|
return profileFunctionFactory(fn, customName || fn.name);
|
|
151
144
|
}
|
|
152
|
-
|
|
145
|
+
const profileMethodUnnamed = (target, key, descriptor) => {
|
|
153
146
|
// save a reference to the original method this way we keep the values currently in the
|
|
154
147
|
// descriptor and don't overwrite what another decorator might have done to the descriptor.
|
|
155
148
|
if (descriptor === undefined) {
|
|
156
149
|
descriptor = Object.getOwnPropertyDescriptor(target, key);
|
|
157
150
|
}
|
|
158
|
-
|
|
159
|
-
|
|
151
|
+
const originalMethod = descriptor.value;
|
|
152
|
+
let className = '';
|
|
160
153
|
if (target && target.constructor && target.constructor.name) {
|
|
161
154
|
className = target.constructor.name + '.';
|
|
162
155
|
}
|
|
163
|
-
|
|
156
|
+
const name = className + key?.toString();
|
|
164
157
|
//editing the descriptor/value parameter
|
|
165
158
|
descriptor.value = profileFunctionFactory(originalMethod, name, 1 /* MemberType.Instance */);
|
|
166
159
|
// return edited descriptor as opposed to overwriting the descriptor
|
|
167
160
|
return descriptor;
|
|
168
161
|
};
|
|
169
|
-
|
|
162
|
+
const profileStaticMethodUnnamed = (ctor, key, descriptor) => {
|
|
170
163
|
// save a reference to the original method this way we keep the values currently in the
|
|
171
164
|
// descriptor and don't overwrite what another decorator might have done to the descriptor.
|
|
172
165
|
if (descriptor === undefined) {
|
|
173
166
|
descriptor = Object.getOwnPropertyDescriptor(ctor, key);
|
|
174
167
|
}
|
|
175
|
-
|
|
176
|
-
|
|
168
|
+
const originalMethod = descriptor.value;
|
|
169
|
+
let className = '';
|
|
177
170
|
if (ctor && ctor.name) {
|
|
178
171
|
className = ctor.name + '.';
|
|
179
172
|
}
|
|
180
|
-
|
|
173
|
+
const name = className + key?.toString();
|
|
181
174
|
//editing the descriptor/value parameter
|
|
182
175
|
descriptor.value = profileFunctionFactory(originalMethod, name, 0 /* MemberType.Static */);
|
|
183
176
|
// return edited descriptor as opposed to overwriting the descriptor
|
|
184
177
|
return descriptor;
|
|
185
178
|
};
|
|
186
179
|
function profileMethodNamed(name) {
|
|
187
|
-
return
|
|
180
|
+
return (target, key, descriptor) => {
|
|
188
181
|
// save a reference to the original method this way we keep the values currently in the
|
|
189
182
|
// descriptor and don't overwrite what another decorator might have done to the descriptor.
|
|
190
183
|
if (descriptor === undefined) {
|
|
191
184
|
descriptor = Object.getOwnPropertyDescriptor(target, key);
|
|
192
185
|
}
|
|
193
|
-
|
|
186
|
+
const originalMethod = descriptor.value;
|
|
194
187
|
//editing the descriptor/value parameter
|
|
195
188
|
descriptor.value = profileFunctionFactory(originalMethod, name);
|
|
196
189
|
// return edited descriptor as opposed to overwriting the descriptor
|
|
197
190
|
return descriptor;
|
|
198
191
|
};
|
|
199
192
|
}
|
|
200
|
-
|
|
193
|
+
const voidMethodDecorator = () => {
|
|
201
194
|
// no op
|
|
202
195
|
};
|
|
203
196
|
export function profile(nameFnOrTarget, fnOrKey, descriptor, attrs) {
|
|
@@ -240,7 +233,7 @@ export function profile(nameFnOrTarget, fnOrKey, descriptor, attrs) {
|
|
|
240
233
|
}
|
|
241
234
|
export function dumpProfiles() {
|
|
242
235
|
profileNames.forEach(function (name) {
|
|
243
|
-
|
|
236
|
+
const info = timers[name];
|
|
244
237
|
if (info) {
|
|
245
238
|
console.log('---- [' + name + '] STOP total: ' + info.totalTime + ' count:' + info.count);
|
|
246
239
|
}
|
|
@@ -251,7 +244,7 @@ export function dumpProfiles() {
|
|
|
251
244
|
}
|
|
252
245
|
export function resetProfiles() {
|
|
253
246
|
profileNames.forEach(function (name) {
|
|
254
|
-
|
|
247
|
+
const info = timers[name];
|
|
255
248
|
if (info) {
|
|
256
249
|
if (info.runCount) {
|
|
257
250
|
console.log('---- timer with name [' + name + "] is currently running and won't be reset");
|
|
@@ -276,6 +269,6 @@ export function level() {
|
|
|
276
269
|
return tracingLevel;
|
|
277
270
|
}
|
|
278
271
|
export function trace(message, start, end) {
|
|
279
|
-
log(
|
|
272
|
+
log(`Timeline: Modules: ${message} (${start}ms. - ${end}ms.)`);
|
|
280
273
|
}
|
|
281
274
|
//# sourceMappingURL=index.js.map
|