@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.
Files changed (193) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +149 -90
  3. package/angular/bundles/nativescript-community-ui-drawer-angular.umd.js +54 -31
  4. package/angular/esm2015/index.js +1 -1
  5. package/angular/esm2015/module.js +11 -10
  6. package/angular/esm2015/nativescript-community-ui-drawer-angular.js +1 -1
  7. package/angular/fesm2015/nativescript-community-ui-drawer-angular.js +34 -32
  8. package/angular/module.d.ts +15 -14
  9. package/angular/package.json +3 -3
  10. package/index.js +15 -10
  11. package/package.json +11 -3
  12. package/vue/index.js +1 -1
  13. package/angular/bundles/nativescript-community-ui-drawer-angular.umd.min.js +0 -2
  14. package/pnpm-global/5/node_modules/.modules.yaml +0 -24
  15. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/CHANGELOG.md +0 -467
  16. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/LICENSE +0 -201
  17. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/README.md +0 -56
  18. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.d.ts +0 -155
  19. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.js +0 -535
  20. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.d.ts +0 -93
  21. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.js +0 -222
  22. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.d.ts +0 -149
  23. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.d.ts +0 -53
  24. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.js +0 -253
  25. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gestures_override.d.ts +0 -27
  26. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/gestures_override.js +0 -263
  27. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/package.json +0 -39
  28. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/AndroidManifest.xml +0 -2
  29. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/platforms/android/include.gradle +0 -9
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  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/PinchGestureHandler.java +0 -138
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  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/ScaleGestureDetector.java +0 -597
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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
  82. 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
  83. 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
  84. 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
  85. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/pnpm-lock.yaml +0 -10
  86. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/references.d.ts +0 -3
  87. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/typings/android.d.ts +0 -456
  88. 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
  89. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/gesturehandler/typings/ios.d.ts +0 -266
  90. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
  91. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/LICENSE +0 -201
  92. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/README.md +0 -17
  93. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
  94. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observable.js +0 -37
  95. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
  96. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/observablearray.js +0 -224
  97. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+gesturehandler@0.1.41/node_modules/@nativescript-community/observable/package.json +0 -31
  98. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
  99. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/LICENSE +0 -201
  100. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/README.md +0 -17
  101. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
  102. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observable.js +0 -37
  103. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
  104. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/observablearray.js +0 -224
  105. package/pnpm-global/5/node_modules/.pnpm/@nativescript-community+observable@2.0.9/node_modules/@nativescript-community/observable/package.json +0 -31
  106. package/pnpm-global/5/node_modules/.pnpm/lock.yaml +0 -19
  107. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/CHANGELOG.md +0 -94
  108. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/LICENSE +0 -201
  109. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/README.md +0 -17
  110. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observable.d.ts +0 -17
  111. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observable.js +0 -37
  112. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observablearray.d.ts +0 -10
  113. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/observablearray.js +0 -224
  114. package/pnpm-global/5/node_modules/.pnpm/node_modules/@nativescript-community/observable/package.json +0 -31
  115. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/CHANGELOG.md +0 -467
  116. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/LICENSE +0 -201
  117. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/README.md +0 -56
  118. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.d.ts +0 -155
  119. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.js +0 -535
  120. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.d.ts +0 -93
  121. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.common.js +0 -222
  122. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.d.ts +0 -149
  123. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.d.ts +0 -53
  124. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gesturehandler.ios.js +0 -253
  125. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gestures_override.d.ts +0 -27
  126. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/gestures_override.js +0 -263
  127. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/package.json +0 -39
  128. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/AndroidManifest.xml +0 -2
  129. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/include.gradle +0 -9
  130. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/GestureHandlerInteractionController.java +0 -79
  131. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/PageLayout.java +0 -169
  132. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/nativescript/gesturehandler/RootViewGestureHandler.java +0 -45
  133. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/BaseGestureHandlerInteractionController.java +0 -19
  134. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/FlingGestureHandler.java +0 -125
  135. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandler.java +0 -541
  136. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerInteractionController.java +0 -11
  137. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerOrchestrator.java +0 -569
  138. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistry.java +0 -10
  139. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerRegistryImpl.java +0 -97
  140. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/GestureUtils.java +0 -51
  141. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/LongPressGestureHandler.java +0 -77
  142. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/NativeViewGestureHandler.java +0 -141
  143. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/OnTouchEventListener.java +0 -11
  144. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PanGestureHandler.java +0 -320
  145. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PinchGestureHandler.java +0 -138
  146. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEvents.java +0 -25
  147. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsConfig.java +0 -25
  148. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PointerEventsSpec.java +0 -25
  149. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureDetector.java +0 -171
  150. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/RotationGestureHandler.java +0 -96
  151. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ScaleGestureDetector.java +0 -597
  152. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/TapGestureHandler.java +0 -176
  153. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/ViewConfigurationHelper.java +0 -12
  154. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/android/res/values/config.xml +0 -13
  155. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.h +0 -6
  156. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/FlingHandler.m +0 -131
  157. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.h +0 -4
  158. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/ForceTouchHandler.m +0 -170
  159. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.h +0 -98
  160. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandler.m +0 -365
  161. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerDirection.h +0 -8
  162. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.h +0 -30
  163. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerEvents.m +0 -122
  164. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerHeader.h +0 -23
  165. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.h +0 -25
  166. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerManager.m +0 -169
  167. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.h +0 -18
  168. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerRegistry.m +0 -49
  169. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/GestureHandlerState.h +0 -10
  170. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.h +0 -12
  171. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/LongPressHandler.m +0 -100
  172. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.h +0 -15
  173. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/NativeViewHandler.m +0 -163
  174. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.h +0 -14
  175. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PanHandler.m +0 -242
  176. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.h +0 -12
  177. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/PinchHandler.m +0 -36
  178. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.h +0 -17
  179. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RootViewGestureRecognizer.m +0 -93
  180. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.h +0 -12
  181. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/RotationHandler.m +0 -36
  182. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.h +0 -13
  183. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/TapHandler.m +0 -228
  184. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/platforms/ios/src/module.modulemap +0 -5
  185. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/pnpm-lock.yaml +0 -10
  186. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/references.d.ts +0 -3
  187. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/android.d.ts +0 -456
  188. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/extensions.android.d.ts +0 -16
  189. package/pnpm-global/5/node_modules/@nativescript-community/gesturehandler/typings/ios.d.ts +0 -266
  190. package/pnpm-global/5/pnpm-lock.yaml +0 -19
  191. package/pnpm-lock.yaml +0 -16
  192. package/react/index.d.ts +0 -20
  193. package/react/index.js +0 -8
@@ -1,535 +0,0 @@
1
- import { Application } from '@nativescript/core';
2
- import { Page } from '@nativescript/core/ui/page';
3
- import { layout } from '@nativescript/core/utils/utils';
4
- import { BaseNative, GestureHandlerStateEvent, GestureHandlerTouchEvent, GestureState, HandlerType, ManagerBase, ViewDisposeEvent, ViewInitEvent, applyMixins, install as installBase, nativeProperty, } from './gesturehandler.common';
5
- import { observe as gestureObserve } from './gestures_override';
6
- export { GestureState, GestureHandlerStateEvent, GestureHandlerTouchEvent, HandlerType, ViewInitEvent, ViewDisposeEvent };
7
- let PageLayout;
8
- class PageGestureExtended extends Page {
9
- initNativeView() {
10
- this.nativeView.initialize();
11
- }
12
- disposeNativeView() {
13
- this.nativeView.tearDown();
14
- }
15
- get registry() {
16
- return this.nativeView && this.nativeView.registry();
17
- }
18
- }
19
- let installed = false;
20
- let installedOverrides = false;
21
- export function install(overrideNGestures = false) {
22
- if (!installed) {
23
- installed = true;
24
- installBase(overrideNGestures);
25
- const NSPage = require('@nativescript/core/ui/page').Page;
26
- NSPage.prototype.createNativeView = function () {
27
- if (!PageLayout) {
28
- PageLayout = com.nativescript.gesturehandler.PageLayout;
29
- }
30
- const layout = new PageLayout(this._context);
31
- this.gestureRegistry = layout.registry;
32
- return layout;
33
- };
34
- applyMixins(NSPage, [PageGestureExtended]);
35
- }
36
- if (overrideNGestures === true && !installedOverrides) {
37
- installedOverrides = true;
38
- const NSView = require('@nativescript/core/ui/core/view').View;
39
- const NSButtonBase = require('@nativescript/core/ui/button').ButtonBase;
40
- const NSButton = require('@nativescript/core/ui/button').Button;
41
- delete NSButtonBase.tapEvent;
42
- NSButton.prototype.initNativeView = function () {
43
- NSButtonBase.prototype.initNativeView.call(this);
44
- };
45
- NSButton.prototype.disposeNativeView = function () {
46
- NSButtonBase.prototype.disposeNativeView.call(this);
47
- };
48
- NSView.prototype._observe = function (type, callback, thisArg) {
49
- if (!this._gestureObservers[type]) {
50
- this._gestureObservers[type] = [];
51
- }
52
- this._gestureObservers[type].push(gestureObserve(this, type, callback, thisArg));
53
- if (this.isLoaded && !this.touchListenerIsSet) {
54
- this.setOnTouchListener();
55
- }
56
- };
57
- }
58
- }
59
- const KEY_HIT_SLOP_LEFT = 'left';
60
- const KEY_HIT_SLOP_TOP = 'top';
61
- const KEY_HIT_SLOP_RIGHT = 'right';
62
- const KEY_HIT_SLOP_BOTTOM = 'bottom';
63
- const KEY_HIT_SLOP_VERTICAL = 'vertical';
64
- const KEY_HIT_SLOP_HORIZONTAL = 'horizontal';
65
- const KEY_HIT_SLOP_WIDTH = 'width';
66
- const KEY_HIT_SLOP_HEIGHT = 'height';
67
- export class Handler extends BaseNative {
68
- constructor() {
69
- super(...arguments);
70
- this.tag = 0;
71
- }
72
- getExtraData(handler) {
73
- const numberOfPointers = handler.getNumberOfPointers();
74
- const positions = [];
75
- for (let index = 0; index < numberOfPointers; index++) {
76
- positions.push(handler.getXAtIndex(index));
77
- positions.push(handler.getYAtIndex(index));
78
- }
79
- return {
80
- positions,
81
- numberOfPointers,
82
- };
83
- }
84
- initNativeView(native, options) {
85
- super.initNativeView(native, options);
86
- this.native.setTag(this.tag);
87
- this.touchListener = new com.swmansion.gesturehandler.OnTouchEventListener({
88
- shouldStartGesture: this.handleShouldStartGesture.bind(this),
89
- onTouchEvent: this.onTouchEvent.bind(this),
90
- onStateChange: this.onStateChange.bind(this),
91
- });
92
- native.setOnTouchEventListener(this.touchListener);
93
- this.manager.get().configureInteractions(this, options);
94
- }
95
- disposeNativeView() {
96
- this.native.setInteractionController(null);
97
- this.native.setOnTouchEventListener(null);
98
- this.touchListener = null;
99
- super.disposeNativeView();
100
- }
101
- handleShouldStartGesture(handler, event) {
102
- if (this.shouldStartGesture) {
103
- return this.shouldStartGesture(this.getExtraData(handler));
104
- }
105
- return true;
106
- }
107
- onTouchEvent(handler, event) {
108
- const view = handler.getView();
109
- this.notify({
110
- eventName: GestureHandlerTouchEvent,
111
- object: this,
112
- data: {
113
- state: handler.getState(),
114
- android: view,
115
- extraData: this.getExtraData(handler),
116
- view: view.nsView ? view.nsView.get() : null,
117
- },
118
- });
119
- }
120
- onStateChange(handler, state, prevState) {
121
- const view = handler.getView();
122
- this.notify({
123
- eventName: GestureHandlerStateEvent,
124
- object: this,
125
- data: {
126
- state,
127
- prevState,
128
- android: view,
129
- extraData: this.getExtraData(handler),
130
- view: view.nsView ? view.nsView.get() : null,
131
- },
132
- });
133
- }
134
- setTag(tag) {
135
- this.tag = tag;
136
- if (this.native) {
137
- this.native.setTag(tag);
138
- }
139
- }
140
- getTag() {
141
- return this.tag;
142
- }
143
- getView() {
144
- return this.getNative().getView();
145
- }
146
- cancel() {
147
- return this.getNative().cancel();
148
- }
149
- attachToView(view) {
150
- if (view === this.attachedView) {
151
- return;
152
- }
153
- if (this.attachedView) {
154
- this.detachFromView(this.attachedView);
155
- }
156
- this.attachedView = view;
157
- this.manager.get().attachGestureHandler(this, view);
158
- }
159
- detachFromView(view) {
160
- if (view && view !== this.attachedView) {
161
- return;
162
- }
163
- this.manager.get().detachGestureHandler(this, this.attachedView);
164
- this.attachedView = null;
165
- }
166
- }
167
- __decorate([
168
- nativeProperty({
169
- nativeSetterName: 'setHitSlop',
170
- nativegetterName: 'getHitSlop',
171
- converter: {
172
- toNative(value) {
173
- const HIT_SLOP_NONE = com.swmansion.gesturehandler.GestureHandler.HIT_SLOP_NONE;
174
- if (typeof value === 'number') {
175
- const hitSlop = layout.toDevicePixels(value);
176
- return [hitSlop, hitSlop, hitSlop, hitSlop, HIT_SLOP_NONE, HIT_SLOP_NONE];
177
- }
178
- else {
179
- let left = HIT_SLOP_NONE, top = HIT_SLOP_NONE, right = HIT_SLOP_NONE, bottom = HIT_SLOP_NONE;
180
- let width = HIT_SLOP_NONE, height = HIT_SLOP_NONE;
181
- if (value.hasOwnProperty(KEY_HIT_SLOP_HORIZONTAL)) {
182
- const horizontalPad = layout.toDevicePixels(value[KEY_HIT_SLOP_HORIZONTAL]);
183
- left = right = horizontalPad;
184
- }
185
- if (value.hasOwnProperty(KEY_HIT_SLOP_VERTICAL)) {
186
- const verticalPad = layout.toDevicePixels(value[KEY_HIT_SLOP_VERTICAL]);
187
- top = bottom = verticalPad;
188
- }
189
- if (value.hasOwnProperty(KEY_HIT_SLOP_LEFT)) {
190
- left = layout.toDevicePixels(value[KEY_HIT_SLOP_LEFT]);
191
- }
192
- if (value.hasOwnProperty(KEY_HIT_SLOP_TOP)) {
193
- top = layout.toDevicePixels(value[KEY_HIT_SLOP_TOP]);
194
- }
195
- if (value.hasKey(KEY_HIT_SLOP_RIGHT)) {
196
- right = layout.toDevicePixels(value[KEY_HIT_SLOP_RIGHT]);
197
- }
198
- if (value.hasOwnProperty(KEY_HIT_SLOP_BOTTOM)) {
199
- bottom = layout.toDevicePixels(value[KEY_HIT_SLOP_BOTTOM]);
200
- }
201
- if (value.hasOwnProperty(KEY_HIT_SLOP_WIDTH)) {
202
- width = layout.toDevicePixels(value[KEY_HIT_SLOP_WIDTH]);
203
- }
204
- if (value.hasOwnProperty(KEY_HIT_SLOP_HEIGHT)) {
205
- height = layout.toDevicePixels(value[KEY_HIT_SLOP_HEIGHT]);
206
- }
207
- return [left, top, right, bottom, width, height];
208
- }
209
- },
210
- },
211
- })
212
- ], Handler.prototype, "hitSlop", void 0);
213
- __decorate([
214
- nativeProperty
215
- ], Handler.prototype, "enabled", void 0);
216
- __decorate([
217
- nativeProperty
218
- ], Handler.prototype, "shouldCancelWhenOutside", void 0);
219
- export class TapGestureHandler extends Handler {
220
- createNative(options) {
221
- return new com.swmansion.gesturehandler.TapGestureHandler();
222
- }
223
- getExtraData(handler) {
224
- return Object.assign(super.getExtraData(handler), {
225
- x: layout.toDeviceIndependentPixels(handler.getLastRelativePositionX()),
226
- y: layout.toDeviceIndependentPixels(handler.getLastRelativePositionY()),
227
- absoluteX: layout.toDeviceIndependentPixels(handler.getLastAbsolutePositionX()),
228
- absoluteY: layout.toDeviceIndependentPixels(handler.getLastAbsolutePositionY()),
229
- });
230
- }
231
- }
232
- __decorate([
233
- nativeProperty
234
- ], TapGestureHandler.prototype, "numberOfTaps", void 0);
235
- __decorate([
236
- nativeProperty
237
- ], TapGestureHandler.prototype, "maxDurationMs", void 0);
238
- __decorate([
239
- nativeProperty
240
- ], TapGestureHandler.prototype, "maxDelayMs", void 0);
241
- __decorate([
242
- nativeProperty({ nativeSetterName: 'setMaxDx' })
243
- ], TapGestureHandler.prototype, "maxDeltaX", void 0);
244
- __decorate([
245
- nativeProperty({ nativeSetterName: 'setMaxDy' })
246
- ], TapGestureHandler.prototype, "maxDeltaY", void 0);
247
- __decorate([
248
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
249
- ], TapGestureHandler.prototype, "maxDist", void 0);
250
- __decorate([
251
- nativeProperty({ nativeSetterName: 'setMinNumberOfPointers' })
252
- ], TapGestureHandler.prototype, "minPointers", void 0);
253
- export class PanGestureHandler extends Handler {
254
- createNative(options) {
255
- const context = Application.android.context;
256
- return new com.swmansion.gesturehandler.PanGestureHandler(context);
257
- }
258
- getExtraData(handler) {
259
- return Object.assign(super.getExtraData(handler), {
260
- x: layout.toDeviceIndependentPixels(handler.getLastRelativePositionX()),
261
- y: layout.toDeviceIndependentPixels(handler.getLastRelativePositionY()),
262
- absoluteX: layout.toDeviceIndependentPixels(handler.getLastAbsolutePositionX()),
263
- absoluteY: layout.toDeviceIndependentPixels(handler.getLastAbsolutePositionY()),
264
- translationX: layout.toDeviceIndependentPixels(handler.getTranslationX()),
265
- translationY: layout.toDeviceIndependentPixels(handler.getTranslationY()),
266
- velocityX: layout.toDeviceIndependentPixels(handler.getVelocityX()),
267
- velocityY: layout.toDeviceIndependentPixels(handler.getVelocityY()),
268
- });
269
- }
270
- }
271
- __decorate([
272
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
273
- ], PanGestureHandler.prototype, "minDist", void 0);
274
- __decorate([
275
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
276
- ], PanGestureHandler.prototype, "activeOffsetXStart", void 0);
277
- __decorate([
278
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
279
- ], PanGestureHandler.prototype, "activeOffsetXEnd", void 0);
280
- __decorate([
281
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
282
- ], PanGestureHandler.prototype, "failOffsetXStart", void 0);
283
- __decorate([
284
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
285
- ], PanGestureHandler.prototype, "failOffsetXEnd", void 0);
286
- __decorate([
287
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
288
- ], PanGestureHandler.prototype, "activeOffsetYStart", void 0);
289
- __decorate([
290
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
291
- ], PanGestureHandler.prototype, "activeOffsetYEnd", void 0);
292
- __decorate([
293
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
294
- ], PanGestureHandler.prototype, "failOffsetYStart", void 0);
295
- __decorate([
296
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
297
- ], PanGestureHandler.prototype, "failOffsetYEnd", void 0);
298
- __decorate([
299
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
300
- ], PanGestureHandler.prototype, "minVelocity", void 0);
301
- __decorate([
302
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
303
- ], PanGestureHandler.prototype, "minVelocityX", void 0);
304
- __decorate([
305
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
306
- ], PanGestureHandler.prototype, "minVelocityY", void 0);
307
- __decorate([
308
- nativeProperty
309
- ], PanGestureHandler.prototype, "minPointers", void 0);
310
- __decorate([
311
- nativeProperty
312
- ], PanGestureHandler.prototype, "maxPointers", void 0);
313
- __decorate([
314
- nativeProperty({ nativeSetterName: 'setAverageTouches' })
315
- ], PanGestureHandler.prototype, "avgTouches", void 0);
316
- __decorate([
317
- nativeProperty
318
- ], PanGestureHandler.prototype, "numberOfPointers", void 0);
319
- export class PinchGestureHandler extends Handler {
320
- createNative(options) {
321
- return new com.swmansion.gesturehandler.PinchGestureHandler();
322
- }
323
- getExtraData(handler) {
324
- return Object.assign(super.getExtraData(handler), {
325
- scale: handler.getScale(),
326
- focalX: layout.toDeviceIndependentPixels(handler.getFocalPointX()),
327
- focalY: layout.toDeviceIndependentPixels(handler.getFocalPointY()),
328
- velocity: handler.getVelocity(),
329
- });
330
- }
331
- }
332
- __decorate([
333
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
334
- ], PinchGestureHandler.prototype, "minSpan", void 0);
335
- export var FlingDirection;
336
- (function (FlingDirection) {
337
- FlingDirection[FlingDirection["DIRECTION_LEFT"] = com.swmansion.gesturehandler.GestureHandler.DIRECTION_LEFT] = "DIRECTION_LEFT";
338
- FlingDirection[FlingDirection["DIRECTION_UP"] = com.swmansion.gesturehandler.GestureHandler.DIRECTION_UP] = "DIRECTION_UP";
339
- FlingDirection[FlingDirection["DIRECTION_DOWN"] = com.swmansion.gesturehandler.GestureHandler.DIRECTION_DOWN] = "DIRECTION_DOWN";
340
- FlingDirection[FlingDirection["DIRECTION_RIGHT"] = com.swmansion.gesturehandler.GestureHandler.DIRECTION_RIGHT] = "DIRECTION_RIGHT";
341
- })(FlingDirection || (FlingDirection = {}));
342
- function directionToString(direction) {
343
- switch (direction) {
344
- case com.swmansion.gesturehandler.GestureHandler.DIRECTION_RIGHT:
345
- return 'right';
346
- case com.swmansion.gesturehandler.GestureHandler.DIRECTION_UP:
347
- return 'up';
348
- case com.swmansion.gesturehandler.GestureHandler.DIRECTION_DOWN:
349
- return 'down';
350
- default:
351
- return 'left';
352
- }
353
- }
354
- function directionFromString(direction) {
355
- switch (direction) {
356
- case 'right':
357
- return com.swmansion.gesturehandler.GestureHandler.DIRECTION_RIGHT;
358
- case 'up':
359
- return com.swmansion.gesturehandler.GestureHandler.DIRECTION_UP;
360
- case 'down':
361
- return com.swmansion.gesturehandler.GestureHandler.DIRECTION_DOWN;
362
- default:
363
- return com.swmansion.gesturehandler.GestureHandler.DIRECTION_LEFT;
364
- }
365
- }
366
- export class FlingGestureHandler extends Handler {
367
- createNative(options) {
368
- return new com.swmansion.gesturehandler.FlingGestureHandler();
369
- }
370
- getExtraData(handler) {
371
- return Object.assign(super.getExtraData(handler), {
372
- direction: directionToString(handler.getRecognizedDirection()),
373
- });
374
- }
375
- }
376
- __decorate([
377
- nativeProperty
378
- ], FlingGestureHandler.prototype, "numberOfPointers", void 0);
379
- __decorate([
380
- nativeProperty
381
- ], FlingGestureHandler.prototype, "direction", void 0);
382
- export class LongPressGestureHandler extends Handler {
383
- createNative(options) {
384
- const context = Application.android.context;
385
- return new com.swmansion.gesturehandler.LongPressGestureHandler(context);
386
- }
387
- }
388
- __decorate([
389
- nativeProperty
390
- ], LongPressGestureHandler.prototype, "minDurationMs", void 0);
391
- __decorate([
392
- nativeProperty({ converter: { fromNative: layout.toDevicePixels } })
393
- ], LongPressGestureHandler.prototype, "maxDist", void 0);
394
- export class RotationGestureHandler extends Handler {
395
- createNative(options) {
396
- return new com.swmansion.gesturehandler.RotationGestureHandler();
397
- }
398
- getExtraData(handler) {
399
- return Object.assign(super.getExtraData(handler), {
400
- rotation: handler.getRotation(),
401
- anchorX: layout.toDeviceIndependentPixels(handler.getAnchorX()),
402
- anchorY: layout.toDeviceIndependentPixels(handler.getAnchorY()),
403
- velocity: handler.getVelocity(),
404
- });
405
- }
406
- }
407
- export class NativeViewGestureHandler extends Handler {
408
- createNative(options) {
409
- return new com.swmansion.gesturehandler.NativeViewGestureHandler();
410
- }
411
- getExtraData(handler) {
412
- return Object.assign(super.getExtraData(handler), {
413
- pointerInside: handler.isWithinBounds(),
414
- });
415
- }
416
- }
417
- __decorate([
418
- nativeProperty
419
- ], NativeViewGestureHandler.prototype, "shouldActivateOnStart", void 0);
420
- __decorate([
421
- nativeProperty
422
- ], NativeViewGestureHandler.prototype, "disallowInterruption", void 0);
423
- export class Manager extends ManagerBase {
424
- constructor() {
425
- super(...arguments);
426
- this.viewListeners = new Map();
427
- }
428
- configureInteractions(handler, options = {}) {
429
- this.interactionManager.configureInteractions(handler.getNative(), options.waitFor, options.simultaneousHandlers);
430
- }
431
- get interactionManager() {
432
- if (!this._interactionManager) {
433
- this._interactionManager = new com.nativescript.gesturehandler.GestureHandlerInteractionController();
434
- }
435
- return this._interactionManager;
436
- }
437
- static getInstance() {
438
- if (!Manager.sManager) {
439
- Manager.sManager = new Manager();
440
- }
441
- return Manager.sManager;
442
- }
443
- createGestureHandler(handlerName, handlerTag, config) {
444
- let handler = null;
445
- switch (handlerName) {
446
- case 'tap':
447
- handler = new TapGestureHandler(config);
448
- break;
449
- case 'pan':
450
- handler = new PanGestureHandler(config);
451
- break;
452
- case 'nativeView':
453
- handler = new NativeViewGestureHandler(config);
454
- break;
455
- case 'pinch':
456
- handler = new PinchGestureHandler(config);
457
- break;
458
- case 'fling':
459
- handler = new FlingGestureHandler(config);
460
- break;
461
- case 'rotation':
462
- handler = new RotationGestureHandler(config);
463
- break;
464
- case 'longPress':
465
- handler = new LongPressGestureHandler(config);
466
- break;
467
- }
468
- if (handler) {
469
- handler.manager = new WeakRef(this);
470
- handler.setTag(handlerTag);
471
- }
472
- return handler;
473
- }
474
- attachGestureHandlerToView(handler, view) {
475
- const nHandler = handler.getNative();
476
- if (nHandler) {
477
- const page = view.page;
478
- if (page) {
479
- const registry = page.registry;
480
- if (registry) {
481
- registry.registerHandler(nHandler);
482
- registry.attachHandlerToView(nHandler.getTag(), view.nativeView);
483
- }
484
- }
485
- else {
486
- throw new Error('a page is needed to attach a gesture');
487
- }
488
- }
489
- }
490
- detachGestureHandlerFromView(handler, view) {
491
- const nHandler = handler.getNative();
492
- if (nHandler) {
493
- const registry = view.page && view.page.registry;
494
- if (registry) {
495
- registry.dropHandler(handler.getNative());
496
- }
497
- }
498
- }
499
- attachGestureHandler(handler, view) {
500
- if (view.nativeView) {
501
- this.attachGestureHandlerToView(handler, view);
502
- }
503
- const onInit = () => this.attachGestureHandlerToView(handler, view);
504
- const onDispose = () => this.detachGestureHandlerFromView(handler, view);
505
- view.on(ViewInitEvent, onInit, this);
506
- view.on(ViewDisposeEvent, onDispose, this);
507
- let viewListeners = this.viewListeners.get(view);
508
- if (!viewListeners) {
509
- viewListeners = new Map();
510
- this.viewListeners.set(view, viewListeners);
511
- }
512
- viewListeners.set(handler.getTag(), {
513
- init: onInit,
514
- dispose: onDispose,
515
- });
516
- }
517
- detachGestureHandler(handler, view) {
518
- if (view) {
519
- const viewListeners = this.viewListeners.get(view);
520
- if (viewListeners) {
521
- const listeners = viewListeners.get(handler.getTag());
522
- if (listeners) {
523
- view.off(ViewInitEvent, listeners.init, this);
524
- view.off(ViewDisposeEvent, () => listeners.dispose, this);
525
- viewListeners.delete(handler.getTag());
526
- if (viewListeners.size === 0) {
527
- this.viewListeners.delete(view);
528
- }
529
- }
530
- }
531
- }
532
- this.detachGestureHandlerFromView(handler, view);
533
- }
534
- }
535
- //# sourceMappingURL=gesturehandler.android.js.map
@@ -1,93 +0,0 @@
1
- import Observable from '@nativescript-community/observable';
2
- import { EventData } from '@nativescript/core';
3
- import { CssProperty, Style, View } from '@nativescript/core/ui';
4
- import { FlingGestureHandler, FlingGestureHandlerOptions, ForceTouchGestureHandler, ForceTouchGestureHandlerOptions, Handler, LongPressGestureHandler, LongPressGestureHandlerOptions, NativePropertyOptions, NativeViewGestureHandler, NativeViewGestureHandlerOptions, PanGestureHandler, PanGestureHandlerOptions, PinchGestureHandler, PinchGestureHandlerOptions, RotationGestureHandler, RotationGestureHandlerOptions, TapGestureHandler, TapGestureHandlerOptions } from './gesturehandler';
5
- export declare const GestureHandlerStateEvent = "GestureHandlerStateEvent";
6
- export declare const GestureHandlerTouchEvent = "GestureHandlerTouchEvent";
7
- export declare enum HandlerType {
8
- PAN = "pan",
9
- TAP = "tap",
10
- FLING = "fling",
11
- LONG_PRESS = "longPress",
12
- NATIVE_VIEW = "nativeView",
13
- PINCH = "pinch",
14
- ROTATION = "rotation",
15
- FORCE_TOUCH = "forceTouch"
16
- }
17
- export interface OptionsTypeMap {
18
- [HandlerType.TAP]: TapGestureHandlerOptions;
19
- [HandlerType.LONG_PRESS]: LongPressGestureHandlerOptions;
20
- [HandlerType.PINCH]: PinchGestureHandlerOptions;
21
- [HandlerType.FLING]: FlingGestureHandlerOptions;
22
- [HandlerType.PAN]: PanGestureHandlerOptions;
23
- [HandlerType.ROTATION]: RotationGestureHandlerOptions;
24
- [HandlerType.NATIVE_VIEW]: NativeViewGestureHandlerOptions;
25
- [HandlerType.FORCE_TOUCH]: ForceTouchGestureHandlerOptions;
26
- }
27
- export interface TypeMap {
28
- [HandlerType.TAP]: TapGestureHandler;
29
- [HandlerType.LONG_PRESS]: LongPressGestureHandler;
30
- [HandlerType.PINCH]: PinchGestureHandler;
31
- [HandlerType.FLING]: FlingGestureHandler;
32
- [HandlerType.PAN]: PanGestureHandler;
33
- [HandlerType.ROTATION]: RotationGestureHandler;
34
- [HandlerType.NATIVE_VIEW]: NativeViewGestureHandler;
35
- [HandlerType.FORCE_TOUCH]: ForceTouchGestureHandler;
36
- }
37
- export declare function nativeProperty(target: any, k?: any, desc?: PropertyDescriptor): any;
38
- export declare function nativeProperty(options: NativePropertyOptions): (target: any, k?: any, desc?: PropertyDescriptor) => any;
39
- export declare abstract class BaseNative<T, U extends {}> extends Observable {
40
- options?: U;
41
- constructor(options?: U, native?: T);
42
- native: T;
43
- initNativeView(native: T, options: U): void;
44
- disposeNativeView(): void;
45
- getNative: () => T;
46
- abstract createNative(options: U): T;
47
- }
48
- export declare abstract class ManagerBase extends Observable {
49
- abstract createGestureHandler<T extends HandlerType>(handlerName: T, handlerTag: number, config?: OptionsTypeMap[T]): TypeMap[T];
50
- }
51
- export declare enum GestureState {
52
- UNDETERMINED = 0,
53
- FAILED = 1,
54
- BEGAN = 2,
55
- CANCELLED = 3,
56
- ACTIVE = 4,
57
- END = 5
58
- }
59
- export interface GestureStateEventData extends EventData {
60
- object: Handler<any, any>;
61
- data: {
62
- state: GestureState;
63
- prevState: GestureState;
64
- ios?: any;
65
- android?: any;
66
- view: View;
67
- extraData: {
68
- [k: string]: number;
69
- };
70
- };
71
- }
72
- export interface GestureTouchEventData extends EventData {
73
- object: Handler<any, any>;
74
- data: {
75
- state: GestureState;
76
- ios?: any;
77
- android?: any;
78
- view?: View;
79
- extraData: {
80
- [k: string]: number;
81
- };
82
- };
83
- }
84
- export declare function applyMixins(derivedCtor: any, baseCtors: any[], options?: {
85
- after?: boolean;
86
- override?: boolean;
87
- omit?: (string | symbol)[];
88
- }): void;
89
- export declare const exclusiveTouchProperty: CssProperty<Style, boolean>;
90
- export declare const ViewInitEvent = "ViewInitEvent";
91
- export declare const ViewDisposeEvent = "ViewDisposeEvent";
92
- export declare function overrideViewBase(): void;
93
- export declare function install(overrideNGestures?: boolean): void;