@nativescript-community/ui-drawer 0.0.29 → 0.0.33
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/CHANGELOG.md +38 -0
- package/README.md +149 -90
- package/angular/bundles/nativescript-community-ui-drawer-angular.umd.js +54 -31
- package/angular/esm2015/index.js +1 -1
- package/angular/esm2015/module.js +11 -10
- package/angular/esm2015/nativescript-community-ui-drawer-angular.js +1 -1
- package/angular/fesm2015/nativescript-community-ui-drawer-angular.js +34 -32
- package/angular/module.d.ts +15 -14
- package/angular/package.json +3 -3
- package/index.js +15 -10
- package/package.json +11 -3
- package/vue/index.js +1 -1
- package/angular/bundles/nativescript-community-ui-drawer-angular.umd.min.js +0 -2
- package/pnpm-global/5/node_modules/.modules.yaml +0 -24
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/CHANGELOG.md +0 -467
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/LICENSE +0 -201
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/README.md +0 -56
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.d.ts +0 -155
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.js +0 -535
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.d.ts +0 -93
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.js +0 -222
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.d.ts +0 -149
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.d.ts +0 -53
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.js +0 -253
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gestures_override.d.ts +0 -27
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gestures_override.js +0 -263
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/package.json +0 -39
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/AndroidManifest.xml +0 -2
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/include.gradle +0 -9
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/GestureHandlerInteractionController.java +0 -79
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/PageLayout.java +0 -169
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/RootViewGestureHandler.java +0 -45
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/BaseGestureHandlerInteractionController.java +0 -19
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/FlingGestureHandler.java +0 -125
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandler.java +0 -541
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerInteractionController.java +0 -11
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerOrchestrator.java +0 -569
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistry.java +0 -10
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistryImpl.java +0 -97
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureUtils.java +0 -51
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/LongPressGestureHandler.java +0 -77
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/NativeViewGestureHandler.java +0 -141
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/OnTouchEventListener.java +0 -11
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PanGestureHandler.java +0 -320
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PinchGestureHandler.java +0 -138
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEvents.java +0 -25
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsConfig.java +0 -25
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsSpec.java +0 -25
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureDetector.java +0 -171
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureHandler.java +0 -96
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ScaleGestureDetector.java +0 -597
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/TapGestureHandler.java +0 -176
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ViewConfigurationHelper.java +0 -12
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/res/values/config.xml +0 -13
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.h +0 -6
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.m +0 -131
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.h +0 -4
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.m +0 -170
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.h +0 -98
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.m +0 -365
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerDirection.h +0 -8
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.h +0 -30
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.m +0 -122
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerHeader.h +0 -23
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.h +0 -25
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.m +0 -169
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.h +0 -18
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.m +0 -49
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerState.h +0 -10
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.h +0 -12
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.m +0 -100
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.h +0 -15
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.m +0 -163
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.h +0 -14
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.m +0 -242
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.h +0 -12
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.m +0 -36
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.h +0 -17
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.m +0 -93
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.h +0 -12
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.m +0 -36
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.h +0 -13
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.m +0 -228
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/module.modulemap +0 -5
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/pnpm-lock.yaml +0 -10
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/references.d.ts +0 -3
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/typings/android.d.ts +0 -456
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/typings/extensions.android.d.ts +0 -16
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/typings/ios.d.ts +0 -266
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/LICENSE +0 -201
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/README.md +0 -17
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observable.js +0 -37
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observablearray.js +0 -224
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/package.json +0 -31
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/LICENSE +0 -201
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/README.md +0 -17
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observable.js +0 -37
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observablearray.js +0 -224
- package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/package.json +0 -31
- package/pnpm-global/5/node_modules/.pnpm/lock.yaml +0 -19
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/LICENSE +0 -201
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/README.md +0 -17
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observable.js +0 -37
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observablearray.js +0 -224
- package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/package.json +0 -31
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/CHANGELOG.md +0 -467
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/LICENSE +0 -201
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/README.md +0 -56
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.d.ts +0 -155
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.js +0 -535
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.d.ts +0 -93
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.js +0 -222
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.d.ts +0 -149
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.d.ts +0 -53
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.js +0 -253
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gestures_override.d.ts +0 -27
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gestures_override.js +0 -263
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/package.json +0 -39
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/AndroidManifest.xml +0 -2
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/include.gradle +0 -9
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/GestureHandlerInteractionController.java +0 -79
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/PageLayout.java +0 -169
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/RootViewGestureHandler.java +0 -45
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/BaseGestureHandlerInteractionController.java +0 -19
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/FlingGestureHandler.java +0 -125
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandler.java +0 -541
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerInteractionController.java +0 -11
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerOrchestrator.java +0 -569
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistry.java +0 -10
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistryImpl.java +0 -97
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureUtils.java +0 -51
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/LongPressGestureHandler.java +0 -77
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/NativeViewGestureHandler.java +0 -141
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/OnTouchEventListener.java +0 -11
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PanGestureHandler.java +0 -320
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PinchGestureHandler.java +0 -138
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEvents.java +0 -25
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsConfig.java +0 -25
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsSpec.java +0 -25
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureDetector.java +0 -171
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureHandler.java +0 -96
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ScaleGestureDetector.java +0 -597
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/TapGestureHandler.java +0 -176
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ViewConfigurationHelper.java +0 -12
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/res/values/config.xml +0 -13
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.h +0 -6
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.m +0 -131
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.h +0 -4
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.m +0 -170
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.h +0 -98
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.m +0 -365
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerDirection.h +0 -8
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.h +0 -30
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.m +0 -122
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerHeader.h +0 -23
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.h +0 -25
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.m +0 -169
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.h +0 -18
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.m +0 -49
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerState.h +0 -10
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.h +0 -12
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.m +0 -100
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.h +0 -15
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.m +0 -163
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.h +0 -14
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.m +0 -242
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.h +0 -12
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.m +0 -36
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.h +0 -17
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.m +0 -93
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.h +0 -12
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.m +0 -36
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.h +0 -13
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.m +0 -228
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/module.modulemap +0 -5
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/pnpm-lock.yaml +0 -10
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/references.d.ts +0 -3
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/android.d.ts +0 -456
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/extensions.android.d.ts +0 -16
- package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/ios.d.ts +0 -266
- package/pnpm-global/5/pnpm-lock.yaml +0 -19
- package/pnpm-lock.yaml +0 -16
- package/react/index.d.ts +0 -20
- package/react/index.js +0 -8
package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.js
DELETED
@@ -1,222 +0,0 @@
|
|
1
|
-
import Observable from '@nativescript-community/observable';
|
2
|
-
import { CssProperty, Style, View, booleanConverter } from '@nativescript/core/ui';
|
3
|
-
import { Manager, } from './gesturehandler';
|
4
|
-
export const GestureHandlerStateEvent = 'GestureHandlerStateEvent';
|
5
|
-
export const GestureHandlerTouchEvent = 'GestureHandlerTouchEvent';
|
6
|
-
export var HandlerType;
|
7
|
-
(function (HandlerType) {
|
8
|
-
HandlerType["PAN"] = "pan";
|
9
|
-
HandlerType["TAP"] = "tap";
|
10
|
-
HandlerType["FLING"] = "fling";
|
11
|
-
HandlerType["LONG_PRESS"] = "longPress";
|
12
|
-
HandlerType["NATIVE_VIEW"] = "nativeView";
|
13
|
-
HandlerType["PINCH"] = "pinch";
|
14
|
-
HandlerType["ROTATION"] = "rotation";
|
15
|
-
HandlerType["FORCE_TOUCH"] = "forceTouch";
|
16
|
-
})(HandlerType || (HandlerType = {}));
|
17
|
-
function createGetter(key, options) {
|
18
|
-
const nativeGetterName = ((global.isAndroid ? options.android : options.ios) || options).nativeGetterName || 'get' + key.charAt(0).toUpperCase() + key.slice(1);
|
19
|
-
const converter = options.converter;
|
20
|
-
return function () {
|
21
|
-
let result;
|
22
|
-
if (this.native && this.native[nativeGetterName]) {
|
23
|
-
result = this.native[nativeGetterName]();
|
24
|
-
}
|
25
|
-
else {
|
26
|
-
result = this.options[key] || options.defaultValue;
|
27
|
-
}
|
28
|
-
result = converter && converter.fromNative ? converter.fromNative.call(this, result, key) : result;
|
29
|
-
return result;
|
30
|
-
};
|
31
|
-
}
|
32
|
-
function createSetter(key, options) {
|
33
|
-
const nativeSetterName = ((global.isAndroid ? options.android : options.ios) || options).nativeSetterName || 'set' + key.charAt(0).toUpperCase() + key.slice(1);
|
34
|
-
return function (newVal) {
|
35
|
-
this.options[key] = newVal;
|
36
|
-
if (this.native && this.native[nativeSetterName]) {
|
37
|
-
const actualVal = options.converter && options.converter.toNative ? options.converter.toNative.call(this, newVal, key) : newVal;
|
38
|
-
this.native[nativeSetterName].call(this.native, actualVal);
|
39
|
-
}
|
40
|
-
};
|
41
|
-
}
|
42
|
-
function nativePropertyGenerator(target, key, options) {
|
43
|
-
Object.defineProperty(target, key, {
|
44
|
-
get: createGetter(key, options),
|
45
|
-
set: createSetter(key, options),
|
46
|
-
enumerable: true,
|
47
|
-
configurable: true,
|
48
|
-
});
|
49
|
-
}
|
50
|
-
export function nativeProperty(...args) {
|
51
|
-
if (args.length === 1) {
|
52
|
-
return function (target, key, descriptor) {
|
53
|
-
return nativePropertyGenerator(target, key, args[0] || {});
|
54
|
-
};
|
55
|
-
}
|
56
|
-
else {
|
57
|
-
const options = typeof args[1] === 'string' ? undefined : args[0];
|
58
|
-
const startIndex = !!options ? 1 : 0;
|
59
|
-
return nativePropertyGenerator(args[startIndex], args[startIndex + 1], options || {});
|
60
|
-
}
|
61
|
-
}
|
62
|
-
export class BaseNative extends Observable {
|
63
|
-
constructor(options, native) {
|
64
|
-
super();
|
65
|
-
this.options = options;
|
66
|
-
this.getNative = () => {
|
67
|
-
if (!this.native) {
|
68
|
-
this.native = this.createNative(this.options);
|
69
|
-
this.initNativeView(this.native, this.options);
|
70
|
-
}
|
71
|
-
return this.native;
|
72
|
-
};
|
73
|
-
if (native) {
|
74
|
-
this.native = native;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
initNativeView(native, options) {
|
78
|
-
for (const key in options) {
|
79
|
-
this[key] = options[key];
|
80
|
-
}
|
81
|
-
}
|
82
|
-
disposeNativeView() {
|
83
|
-
this.native = null;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
export class ManagerBase extends Observable {
|
87
|
-
}
|
88
|
-
export var GestureState;
|
89
|
-
(function (GestureState) {
|
90
|
-
GestureState[GestureState["UNDETERMINED"] = 0] = "UNDETERMINED";
|
91
|
-
GestureState[GestureState["FAILED"] = 1] = "FAILED";
|
92
|
-
GestureState[GestureState["BEGAN"] = 2] = "BEGAN";
|
93
|
-
GestureState[GestureState["CANCELLED"] = 3] = "CANCELLED";
|
94
|
-
GestureState[GestureState["ACTIVE"] = 4] = "ACTIVE";
|
95
|
-
GestureState[GestureState["END"] = 5] = "END";
|
96
|
-
})(GestureState || (GestureState = {}));
|
97
|
-
export function applyMixins(derivedCtor, baseCtors, options) {
|
98
|
-
const omits = options && options.omit ? options.omit : [];
|
99
|
-
baseCtors.forEach((baseCtor) => {
|
100
|
-
Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
|
101
|
-
if (omits.indexOf(name) !== -1) {
|
102
|
-
return;
|
103
|
-
}
|
104
|
-
const descriptor = Object.getOwnPropertyDescriptor(baseCtor.prototype, name);
|
105
|
-
if (name === 'constructor')
|
106
|
-
return;
|
107
|
-
if (descriptor && (!descriptor.writable || !descriptor.configurable || descriptor.get || descriptor.set)) {
|
108
|
-
Object.defineProperty(derivedCtor.prototype, name, descriptor);
|
109
|
-
}
|
110
|
-
else {
|
111
|
-
const oldImpl = derivedCtor.prototype[name];
|
112
|
-
if (!oldImpl) {
|
113
|
-
derivedCtor.prototype[name] = baseCtor.prototype[name];
|
114
|
-
}
|
115
|
-
else {
|
116
|
-
derivedCtor.prototype[name] = function (...args) {
|
117
|
-
if (options) {
|
118
|
-
if (!!options.override) {
|
119
|
-
return baseCtor.prototype[name].apply(this, args);
|
120
|
-
}
|
121
|
-
else if (!!options.after) {
|
122
|
-
oldImpl.apply(this, args);
|
123
|
-
return baseCtor.prototype[name].apply(this, args);
|
124
|
-
}
|
125
|
-
else {
|
126
|
-
baseCtor.prototype[name].apply(this, args);
|
127
|
-
return oldImpl.apply(this, args);
|
128
|
-
}
|
129
|
-
}
|
130
|
-
else {
|
131
|
-
baseCtor.prototype[name].apply(this, args);
|
132
|
-
return oldImpl.apply(this, args);
|
133
|
-
}
|
134
|
-
};
|
135
|
-
}
|
136
|
-
}
|
137
|
-
});
|
138
|
-
Object.getOwnPropertySymbols(baseCtor.prototype).forEach((symbol) => {
|
139
|
-
if (omits.indexOf(symbol) !== -1) {
|
140
|
-
return;
|
141
|
-
}
|
142
|
-
const oldImpl = derivedCtor.prototype[symbol];
|
143
|
-
if (!oldImpl) {
|
144
|
-
derivedCtor.prototype[symbol] = baseCtor.prototype[symbol];
|
145
|
-
}
|
146
|
-
else {
|
147
|
-
derivedCtor.prototype[symbol] = function (...args) {
|
148
|
-
if (options) {
|
149
|
-
if (!!options.override) {
|
150
|
-
return baseCtor.prototype[symbol].apply(this, args);
|
151
|
-
}
|
152
|
-
else if (!!options.after) {
|
153
|
-
oldImpl.apply(this, args);
|
154
|
-
return baseCtor.prototype[symbol].apply(this, args);
|
155
|
-
}
|
156
|
-
else {
|
157
|
-
baseCtor.prototype[symbol].apply(this, args);
|
158
|
-
return oldImpl.apply(this, args);
|
159
|
-
}
|
160
|
-
}
|
161
|
-
else {
|
162
|
-
baseCtor.prototype[symbol].apply(this, args);
|
163
|
-
return oldImpl.apply(this, args);
|
164
|
-
}
|
165
|
-
};
|
166
|
-
}
|
167
|
-
});
|
168
|
-
});
|
169
|
-
}
|
170
|
-
export const exclusiveTouchProperty = new CssProperty({
|
171
|
-
name: 'exclusiveTouch',
|
172
|
-
cssName: 'exclusive-touch',
|
173
|
-
defaultValue: false,
|
174
|
-
valueConverter: booleanConverter,
|
175
|
-
});
|
176
|
-
export const ViewInitEvent = 'ViewInitEvent';
|
177
|
-
export const ViewDisposeEvent = 'ViewDisposeEvent';
|
178
|
-
let NATIVE_GESTURE_TAG = 74000;
|
179
|
-
class ViewGestureExtended extends View {
|
180
|
-
initNativeView() {
|
181
|
-
if (this.nativeView) {
|
182
|
-
this.nativeView.nsView = new WeakRef(this);
|
183
|
-
}
|
184
|
-
this.notify({ eventName: ViewInitEvent, object: this });
|
185
|
-
}
|
186
|
-
disposeNativeView() {
|
187
|
-
if (this.nativeView) {
|
188
|
-
this.nativeView.nsView = null;
|
189
|
-
}
|
190
|
-
this.notify({ eventName: ViewDisposeEvent, object: this });
|
191
|
-
}
|
192
|
-
[exclusiveTouchProperty.setNative](value) {
|
193
|
-
if (value) {
|
194
|
-
if (!this.exclusiveTouchGestureHandler) {
|
195
|
-
const gestureHandler = Manager.getInstance().createGestureHandler(HandlerType.NATIVE_VIEW, NATIVE_GESTURE_TAG++, {
|
196
|
-
disallowInterruption: true,
|
197
|
-
shouldActivateOnStart: false,
|
198
|
-
shouldCancelWhenOutside: false,
|
199
|
-
});
|
200
|
-
this.exclusiveTouchGestureHandler = gestureHandler;
|
201
|
-
}
|
202
|
-
this.exclusiveTouchGestureHandler.attachToView(this);
|
203
|
-
}
|
204
|
-
else if (this.exclusiveTouchGestureHandler) {
|
205
|
-
this.exclusiveTouchGestureHandler.detachFromView();
|
206
|
-
}
|
207
|
-
}
|
208
|
-
}
|
209
|
-
exclusiveTouchProperty.register(Style);
|
210
|
-
let installed = false;
|
211
|
-
export function overrideViewBase() {
|
212
|
-
const NSView = require('@nativescript/core/ui/core/view').View;
|
213
|
-
applyMixins(NSView, [ViewGestureExtended]);
|
214
|
-
}
|
215
|
-
export function install(overrideNGestures) {
|
216
|
-
if (installed) {
|
217
|
-
return;
|
218
|
-
}
|
219
|
-
installed = true;
|
220
|
-
overrideViewBase();
|
221
|
-
}
|
222
|
-
//# sourceMappingURL=gesturehandler.common.js.map
|
package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.d.ts
DELETED
@@ -1,149 +0,0 @@
|
|
1
|
-
/* eslint-disable no-redeclare */
|
2
|
-
import { Observable } from '@nativescript/core/data/observable';
|
3
|
-
import { View } from '@nativescript/core';
|
4
|
-
import { HandlerType, OptionsTypeMap, TypeMap } from './gesturehandler.common';
|
5
|
-
|
6
|
-
export { GestureState, GestureHandlerStateEvent, GestureHandlerTouchEvent, GestureStateEventData, GestureTouchEventData, HandlerType } from './gesturehandler.common';
|
7
|
-
// export * from './gesturehandler.ios';
|
8
|
-
|
9
|
-
export enum FlingDirection {
|
10
|
-
DIRECTION_LEFT,
|
11
|
-
DIRECTION_UP,
|
12
|
-
DIRECTION_DOWN,
|
13
|
-
DIRECTION_RIGHT,
|
14
|
-
}
|
15
|
-
|
16
|
-
export abstract class BaseNative<T, U extends {}> extends Observable {
|
17
|
-
options?: U;
|
18
|
-
native: T;
|
19
|
-
constructor(options?: U, native?: T);
|
20
|
-
initNativeView(native: T, options: U): void;
|
21
|
-
getNative(): T;
|
22
|
-
log(...args);
|
23
|
-
}
|
24
|
-
export interface NativePropertyOptions {
|
25
|
-
converter?: {
|
26
|
-
fromNative: Function;
|
27
|
-
toNative: Function;
|
28
|
-
};
|
29
|
-
defaultValue?: any;
|
30
|
-
nativeGetterName?: string;
|
31
|
-
nativeSetterName?: string;
|
32
|
-
getConverter?: Function;
|
33
|
-
ios?: {
|
34
|
-
nativeGetterName?: string;
|
35
|
-
nativeSetterName?: string;
|
36
|
-
};
|
37
|
-
android?: {
|
38
|
-
nativeGetterName?: string;
|
39
|
-
nativeSetterName?: string;
|
40
|
-
};
|
41
|
-
}
|
42
|
-
|
43
|
-
export declare function nativeProperty(target: any, k?, desc?: PropertyDescriptor): any;
|
44
|
-
export declare function nativeProperty(options: NativePropertyOptions): (target: any, k?, desc?: PropertyDescriptor) => any;
|
45
|
-
export declare function nativeProperty(...args);
|
46
|
-
|
47
|
-
export interface HandlerOptions {
|
48
|
-
[k: string]: any;
|
49
|
-
enabled?: boolean;
|
50
|
-
shouldCancelWhenOutside?: boolean;
|
51
|
-
waitFor?: number[];
|
52
|
-
simultaneousHandlers?: number[];
|
53
|
-
shouldStartGesture?: (event) => boolean;
|
54
|
-
}
|
55
|
-
export abstract class Handler<T, U extends HandlerOptions> extends BaseNative<T, U> {
|
56
|
-
enabled: boolean;
|
57
|
-
shouldCancelWhenOutside: boolean;
|
58
|
-
setTag(tag: number);
|
59
|
-
getTag(): number;
|
60
|
-
getView(): View;
|
61
|
-
cancel();
|
62
|
-
attachToView(view: View);
|
63
|
-
detachFromView(view?: View);
|
64
|
-
}
|
65
|
-
export interface TapGestureHandlerOptions extends HandlerOptions {
|
66
|
-
numberOfTaps?: number;
|
67
|
-
maxDurationMs?: number;
|
68
|
-
maxDelayMs?: number;
|
69
|
-
maxDeltaX?: number;
|
70
|
-
maxDeltaY?: number;
|
71
|
-
maxDist?: number;
|
72
|
-
minPointers?: number;
|
73
|
-
}
|
74
|
-
|
75
|
-
export class TapGestureHandler extends Handler<any, TapGestureHandlerOptions> {
|
76
|
-
numberOfTaps: number;
|
77
|
-
maxDurationMs: number;
|
78
|
-
maxDelayMs: number;
|
79
|
-
maxDeltaX: number;
|
80
|
-
maxDeltaY: number;
|
81
|
-
maxDist: number;
|
82
|
-
minPointers: number;
|
83
|
-
}
|
84
|
-
export interface PanGestureHandlerOptions extends HandlerOptions {
|
85
|
-
minDist?: number;
|
86
|
-
activeOffsetXStart?: number;
|
87
|
-
activeOffsetXEnd?: number;
|
88
|
-
failOffsetXStart?: number;
|
89
|
-
failOffsetXEnd?: number;
|
90
|
-
activeOffsetYStart?: number;
|
91
|
-
activeOffsetYEnd?: number;
|
92
|
-
failOffsetYStart?: number;
|
93
|
-
failOffsetYEnd?: number;
|
94
|
-
}
|
95
|
-
|
96
|
-
export class PanGestureHandler extends Handler<any, PanGestureHandlerOptions> {
|
97
|
-
minDist: number;
|
98
|
-
activeOffsetXStart: number;
|
99
|
-
activeOffsetXEnd: number;
|
100
|
-
failOffsetXStart: number;
|
101
|
-
failOffsetXEnd: number;
|
102
|
-
activeOffsetYStart: number;
|
103
|
-
activeOffsetYEnd: number;
|
104
|
-
failOffsetYStart: number;
|
105
|
-
failOffsetYEnd: number;
|
106
|
-
}
|
107
|
-
export interface NativeViewGestureHandlerOptions extends HandlerOptions {
|
108
|
-
shouldActivateOnStart?: boolean;
|
109
|
-
disallowInterruption?: boolean;
|
110
|
-
}
|
111
|
-
export class NativeViewGestureHandler extends Handler<any, NativeViewGestureHandlerOptions> {
|
112
|
-
shouldActivateOnStart: boolean;
|
113
|
-
disallowInterruption: boolean;
|
114
|
-
}
|
115
|
-
export interface LongPressGestureHandlerOptions extends HandlerOptions {
|
116
|
-
maxDist?: number;
|
117
|
-
minDurationMs?: number;
|
118
|
-
}
|
119
|
-
export class LongPressGestureHandler extends Handler<any, LongPressGestureHandlerOptions> {
|
120
|
-
maxDist: number;
|
121
|
-
minDurationMs: number;
|
122
|
-
}
|
123
|
-
export interface FlingGestureHandlerOptions extends HandlerOptions {
|
124
|
-
numberOfPointers?: number;
|
125
|
-
direction?: number;
|
126
|
-
}
|
127
|
-
export class FlingGestureHandler extends Handler<any, FlingGestureHandlerOptions> {
|
128
|
-
numberOfPointers: number;
|
129
|
-
direction: number;
|
130
|
-
}
|
131
|
-
export interface PinchGestureHandlerOptions extends HandlerOptions {}
|
132
|
-
export class PinchGestureHandler extends Handler<any, PinchGestureHandlerOptions> {}
|
133
|
-
export interface RotationGestureHandlerOptions extends HandlerOptions {}
|
134
|
-
export class RotationGestureHandler extends Handler<any, RotationGestureHandlerOptions> {}
|
135
|
-
|
136
|
-
export interface ForceTouchGestureHandlerOptions extends HandlerOptions {
|
137
|
-
minForce?: number;
|
138
|
-
maxForce?: number;
|
139
|
-
}
|
140
|
-
export class ForceTouchGestureHandler extends Handler<any, ForceTouchGestureHandlerOptions> {
|
141
|
-
minForce: number;
|
142
|
-
maxForce: number;
|
143
|
-
}
|
144
|
-
|
145
|
-
export class Manager extends Observable {
|
146
|
-
static getInstance(): Manager;
|
147
|
-
createGestureHandler<T extends HandlerType>(handlerName: T, handlerTag: number, config?: OptionsTypeMap[T]): TypeMap[T];
|
148
|
-
}
|
149
|
-
export function install(overrideNGestures?: boolean);
|
package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.d.ts
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
import { View } from '@nativescript/core/ui';
|
2
|
-
import { HandlerOptions } from './gesturehandler';
|
3
|
-
import { BaseNative, GestureHandlerStateEvent, GestureHandlerTouchEvent, GestureState, GestureStateEventData, GestureTouchEventData, HandlerType, ManagerBase, OptionsTypeMap, TypeMap, ViewDisposeEvent, ViewInitEvent } from './gesturehandler.common';
|
4
|
-
export { GestureState, GestureHandlerStateEvent, GestureHandlerTouchEvent, GestureStateEventData, GestureTouchEventData, HandlerType, ViewInitEvent, ViewDisposeEvent };
|
5
|
-
export declare enum FlingDirection {
|
6
|
-
DIRECTION_LEFT = 2,
|
7
|
-
DIRECTION_UP = 4,
|
8
|
-
DIRECTION_DOWN = 8,
|
9
|
-
DIRECTION_RIGHT = 1
|
10
|
-
}
|
11
|
-
export declare function install(overrideNGestures?: boolean): void;
|
12
|
-
export declare class HandlerDelegate extends NSObject implements GestureHandlerDelegate {
|
13
|
-
static ObjCProtocols: {
|
14
|
-
prototype: GestureHandlerDelegate;
|
15
|
-
}[];
|
16
|
-
private _owner;
|
17
|
-
static new(): HandlerDelegate;
|
18
|
-
static initWithOwner(owner: WeakRef<Handler<any, any>>): HandlerDelegate;
|
19
|
-
gestureHandlerDidChangeStatePrevStateExtraDataView(handler: GestureHandler, state: GestureHandlerState, prevState: GestureHandlerState, extraData: NSDictionary<any, any>, view: UIView & {
|
20
|
-
nsView?: WeakRef<View>;
|
21
|
-
}): void;
|
22
|
-
gestureHandlerTouchEventOnViewStateExtraData(handler: GestureHandler, view: UIView & {
|
23
|
-
nsView?: WeakRef<View>;
|
24
|
-
}, state: GestureHandlerState, extraData: NSDictionary<any, any>): void;
|
25
|
-
gestureHandlerShouldActivateForEvent(handler: GestureHandler, extraData: NSDictionary<any, any>): any;
|
26
|
-
}
|
27
|
-
export declare class Handler<T extends GestureHandler, U extends HandlerOptions> extends BaseNative<T, U> {
|
28
|
-
manager: WeakRef<Manager>;
|
29
|
-
delegate: HandlerDelegate;
|
30
|
-
enabled: boolean;
|
31
|
-
shouldCancelWhenOutside: boolean;
|
32
|
-
createNative(): any;
|
33
|
-
attachedView: View;
|
34
|
-
attachToView(view: View): void;
|
35
|
-
detachFromView(view?: View): void;
|
36
|
-
getTag(): number;
|
37
|
-
setTag(value: any): void;
|
38
|
-
getView(): View;
|
39
|
-
cancel(): void;
|
40
|
-
}
|
41
|
-
export declare class Manager extends ManagerBase {
|
42
|
-
_manager: GestureHandlerManager;
|
43
|
-
get manager(): GestureHandlerManager;
|
44
|
-
static sManager: Manager;
|
45
|
-
static getInstance(): Manager;
|
46
|
-
createGestureHandler<T extends HandlerType>(handlerName: T, handlerTag: number, config?: OptionsTypeMap[T]): TypeMap[T];
|
47
|
-
viewListeners: Map<View, Map<number, {
|
48
|
-
init: () => void;
|
49
|
-
dispose: () => void;
|
50
|
-
}>>;
|
51
|
-
attachGestureHandler(handlerTag: number, view: View): void;
|
52
|
-
detachGestureHandler(handlerTag: number, view: View): void;
|
53
|
-
}
|
package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.js
DELETED
@@ -1,253 +0,0 @@
|
|
1
|
-
import { getClass } from '@nativescript/core/utils/types';
|
2
|
-
import { BaseNative, GestureHandlerStateEvent, GestureHandlerTouchEvent, GestureState, HandlerType, ManagerBase, ViewDisposeEvent, ViewInitEvent, install as installBase, nativeProperty, } from './gesturehandler.common';
|
3
|
-
import { observe as gestureObserve } from './gestures_override';
|
4
|
-
export { GestureState, GestureHandlerStateEvent, GestureHandlerTouchEvent, HandlerType, ViewInitEvent, ViewDisposeEvent };
|
5
|
-
export var FlingDirection;
|
6
|
-
(function (FlingDirection) {
|
7
|
-
FlingDirection[FlingDirection["DIRECTION_LEFT"] = 2] = "DIRECTION_LEFT";
|
8
|
-
FlingDirection[FlingDirection["DIRECTION_UP"] = 4] = "DIRECTION_UP";
|
9
|
-
FlingDirection[FlingDirection["DIRECTION_DOWN"] = 8] = "DIRECTION_DOWN";
|
10
|
-
FlingDirection[FlingDirection["DIRECTION_RIGHT"] = 1] = "DIRECTION_RIGHT";
|
11
|
-
})(FlingDirection || (FlingDirection = {}));
|
12
|
-
let installed = false;
|
13
|
-
let installedOverrides = false;
|
14
|
-
export function install(overrideNGestures = false) {
|
15
|
-
if (!installed) {
|
16
|
-
installed = true;
|
17
|
-
installBase(overrideNGestures);
|
18
|
-
}
|
19
|
-
if (overrideNGestures === true && !installedOverrides) {
|
20
|
-
installedOverrides = true;
|
21
|
-
const NSView = require('@nativescript/core/ui/core/view').View;
|
22
|
-
NSView.prototype._observe = function (type, callback, thisArg) {
|
23
|
-
if (!this._gestureObservers[type]) {
|
24
|
-
this._gestureObservers[type] = [];
|
25
|
-
}
|
26
|
-
this._gestureObservers[type].push(gestureObserve(this, type, callback, thisArg));
|
27
|
-
};
|
28
|
-
}
|
29
|
-
}
|
30
|
-
function toJsObject(objCObj) {
|
31
|
-
if (objCObj === null || typeof objCObj !== 'object') {
|
32
|
-
return objCObj;
|
33
|
-
}
|
34
|
-
let node, key, i, l;
|
35
|
-
const oKeyArr = objCObj.allKeys;
|
36
|
-
if (oKeyArr === undefined && objCObj.count !== undefined) {
|
37
|
-
node = [];
|
38
|
-
for (i = 0, l = objCObj.count; i < l; i++) {
|
39
|
-
key = objCObj.objectAtIndex(i);
|
40
|
-
node.push(toJsObject(key));
|
41
|
-
}
|
42
|
-
}
|
43
|
-
else if (oKeyArr !== undefined) {
|
44
|
-
node = {};
|
45
|
-
for (i = 0, l = oKeyArr.count; i < l; i++) {
|
46
|
-
key = oKeyArr.objectAtIndex(i);
|
47
|
-
const val = objCObj.valueForKey(key);
|
48
|
-
if (val === null) {
|
49
|
-
node[key] = null;
|
50
|
-
continue;
|
51
|
-
}
|
52
|
-
node[key] = getValueForClass(val);
|
53
|
-
}
|
54
|
-
}
|
55
|
-
else {
|
56
|
-
node = getValueForClass(objCObj);
|
57
|
-
}
|
58
|
-
return node;
|
59
|
-
}
|
60
|
-
function getValueForClass(val) {
|
61
|
-
switch (getClass(val)) {
|
62
|
-
case 'NSArray':
|
63
|
-
case 'NSMutableArray':
|
64
|
-
return toJsObject(val);
|
65
|
-
case 'NSDictionary':
|
66
|
-
case 'NSMutableDictionary':
|
67
|
-
return toJsObject(val);
|
68
|
-
case 'String':
|
69
|
-
return String(val);
|
70
|
-
case 'Boolean':
|
71
|
-
return val;
|
72
|
-
case 'Number':
|
73
|
-
case 'NSDecimalNumber':
|
74
|
-
return Number(String(val));
|
75
|
-
case 'Date':
|
76
|
-
return new Date(val);
|
77
|
-
default:
|
78
|
-
console.log("Please report this at https://github.com/farfromrefug/@nativescript-community/gesturehandler-febase/issues: iOS toJsObject is missing a converter for class '" +
|
79
|
-
getClass(val) +
|
80
|
-
"'. Casting to String as a fallback.");
|
81
|
-
return String(val);
|
82
|
-
}
|
83
|
-
}
|
84
|
-
"use strict";
|
85
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
86
|
-
exports.HandlerDelegate = void 0;
|
87
|
-
var HandlerDelegate = /** @class */ (function (_super) {
|
88
|
-
__extends(HandlerDelegate, _super);
|
89
|
-
function HandlerDelegate() {
|
90
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
91
|
-
}
|
92
|
-
HandlerDelegate.new = function () {
|
93
|
-
return _super.new.call(this);
|
94
|
-
};
|
95
|
-
// public initWithOwner(owner: WeakRef<Handler<any, any>>): HandlerDelegate {
|
96
|
-
// this._owner = owner;
|
97
|
-
// return this;
|
98
|
-
// }
|
99
|
-
HandlerDelegate.initWithOwner = function (owner) {
|
100
|
-
var impl = HandlerDelegate.new();
|
101
|
-
impl._owner = owner;
|
102
|
-
return impl;
|
103
|
-
};
|
104
|
-
HandlerDelegate.prototype.gestureHandlerDidChangeStatePrevStateExtraDataView = function (handler, state, prevState, extraData, view) {
|
105
|
-
var owner = this._owner && this._owner.get();
|
106
|
-
if (owner) {
|
107
|
-
owner.notify({
|
108
|
-
eventName: GestureHandlerStateEvent,
|
109
|
-
object: owner,
|
110
|
-
data: {
|
111
|
-
state: state,
|
112
|
-
prevState: prevState,
|
113
|
-
ios: view,
|
114
|
-
extraData: toJsObject(extraData),
|
115
|
-
view: view.nsView ? view.nsView.get() : null,
|
116
|
-
},
|
117
|
-
});
|
118
|
-
}
|
119
|
-
};
|
120
|
-
HandlerDelegate.prototype.gestureHandlerTouchEventOnViewStateExtraData = function (handler, view, state, extraData) {
|
121
|
-
var owner = this._owner && this._owner.get();
|
122
|
-
if (owner) {
|
123
|
-
owner.notify({
|
124
|
-
eventName: GestureHandlerTouchEvent,
|
125
|
-
object: owner,
|
126
|
-
data: {
|
127
|
-
state: state,
|
128
|
-
ios: view,
|
129
|
-
extraData: toJsObject(extraData),
|
130
|
-
view: view.nsView ? view.nsView.get() : null,
|
131
|
-
},
|
132
|
-
});
|
133
|
-
}
|
134
|
-
};
|
135
|
-
HandlerDelegate.prototype.gestureHandlerShouldActivateForEvent = function (handler, extraData) {
|
136
|
-
var owner = this._owner && this._owner.get();
|
137
|
-
if (owner && owner.options && owner.options.shouldStartGesture) {
|
138
|
-
return owner.options.shouldStartGesture(toJsObject(extraData));
|
139
|
-
}
|
140
|
-
return true;
|
141
|
-
};
|
142
|
-
HandlerDelegate.ObjCProtocols = [GestureHandlerDelegate];
|
143
|
-
return HandlerDelegate;
|
144
|
-
}(NSObject));
|
145
|
-
exports.HandlerDelegate = HandlerDelegate;
|
146
|
-
export class Handler extends BaseNative {
|
147
|
-
createNative() {
|
148
|
-
return null;
|
149
|
-
}
|
150
|
-
attachToView(view) {
|
151
|
-
if (view === this.attachedView) {
|
152
|
-
return;
|
153
|
-
}
|
154
|
-
if (this.attachedView) {
|
155
|
-
this.detachFromView(this.attachedView);
|
156
|
-
}
|
157
|
-
this.attachedView = view;
|
158
|
-
const tag = this.native.tag;
|
159
|
-
this.delegate = HandlerDelegate.initWithOwner(new WeakRef(this));
|
160
|
-
this.native.delegate = this.delegate;
|
161
|
-
this.manager.get().attachGestureHandler(tag, view);
|
162
|
-
}
|
163
|
-
detachFromView(view) {
|
164
|
-
if (view && view !== this.attachedView) {
|
165
|
-
return;
|
166
|
-
}
|
167
|
-
const tag = this.native.tag;
|
168
|
-
this.delegate = this.native.delegate = null;
|
169
|
-
this.manager.get().detachGestureHandler(tag, this.attachedView);
|
170
|
-
this.attachedView = null;
|
171
|
-
}
|
172
|
-
getTag() {
|
173
|
-
return this.native.tag;
|
174
|
-
}
|
175
|
-
setTag(value) {
|
176
|
-
}
|
177
|
-
getView() {
|
178
|
-
return this.attachedView;
|
179
|
-
}
|
180
|
-
cancel() {
|
181
|
-
this.native.reset();
|
182
|
-
}
|
183
|
-
}
|
184
|
-
__decorate([
|
185
|
-
nativeProperty
|
186
|
-
], Handler.prototype, "enabled", void 0);
|
187
|
-
__decorate([
|
188
|
-
nativeProperty
|
189
|
-
], Handler.prototype, "shouldCancelWhenOutside", void 0);
|
190
|
-
export class Manager extends ManagerBase {
|
191
|
-
constructor() {
|
192
|
-
super(...arguments);
|
193
|
-
this.viewListeners = new Map();
|
194
|
-
}
|
195
|
-
get manager() {
|
196
|
-
if (!this._manager) {
|
197
|
-
this._manager = GestureHandlerManager.alloc().init();
|
198
|
-
}
|
199
|
-
return this._manager;
|
200
|
-
}
|
201
|
-
static getInstance() {
|
202
|
-
if (!Manager.sManager) {
|
203
|
-
Manager.sManager = new Manager();
|
204
|
-
}
|
205
|
-
return Manager.sManager;
|
206
|
-
}
|
207
|
-
createGestureHandler(handlerName, handlerTag, config) {
|
208
|
-
const nHandler = this.manager.createGestureHandlerTagConfig(handlerName, handlerTag, config ? NSDictionary.dictionaryWithDictionary(config) : null);
|
209
|
-
const result = new Handler(config, nHandler);
|
210
|
-
result.manager = new WeakRef(this);
|
211
|
-
return result;
|
212
|
-
}
|
213
|
-
attachGestureHandler(handlerTag, view) {
|
214
|
-
if (view.nativeView) {
|
215
|
-
this.manager.attachGestureHandlerToView(handlerTag, view.nativeView);
|
216
|
-
}
|
217
|
-
const onInit = () => {
|
218
|
-
this.manager.attachGestureHandlerToView(handlerTag, view.nativeView);
|
219
|
-
};
|
220
|
-
const onDispose = () => this.manager.dropGestureHandler(handlerTag);
|
221
|
-
view.on(ViewInitEvent, onInit, this);
|
222
|
-
view.on(ViewDisposeEvent, onDispose, this);
|
223
|
-
let viewListeners = this.viewListeners.get(view);
|
224
|
-
if (!viewListeners) {
|
225
|
-
viewListeners = new Map();
|
226
|
-
this.viewListeners.set(view, viewListeners);
|
227
|
-
}
|
228
|
-
viewListeners.set(handlerTag, {
|
229
|
-
init: onInit,
|
230
|
-
dispose: onDispose,
|
231
|
-
});
|
232
|
-
}
|
233
|
-
detachGestureHandler(handlerTag, view) {
|
234
|
-
if (view.nativeView) {
|
235
|
-
this.manager.dropGestureHandler(handlerTag);
|
236
|
-
}
|
237
|
-
if (view) {
|
238
|
-
const viewListeners = this.viewListeners.get(view);
|
239
|
-
if (viewListeners) {
|
240
|
-
const listeners = viewListeners.get(handlerTag);
|
241
|
-
if (listeners) {
|
242
|
-
view.off(ViewInitEvent, listeners.init, this);
|
243
|
-
view.off(ViewDisposeEvent, () => listeners.dispose, this);
|
244
|
-
viewListeners.delete(handlerTag);
|
245
|
-
if (viewListeners.size === 0) {
|
246
|
-
this.viewListeners.delete(view);
|
247
|
-
}
|
248
|
-
}
|
249
|
-
}
|
250
|
-
}
|
251
|
-
}
|
252
|
-
}
|
253
|
-
//# sourceMappingURL=gesturehandler.ios.js.map
|