@pinnacle0/web-ui 0.3.2-beta0 → 0.3.3

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 (52) hide show
  1. package/core/VirtualTable/index.d.ts +21 -2
  2. package/core/VirtualTable/index.js +5 -3
  3. package/core/VirtualTable/index.js.map +1 -1
  4. package/core/VirtualTable/index.less +3 -2
  5. package/core/VirtualTable/useRowSelection.js +35 -8
  6. package/core/VirtualTable/useRowSelection.js.map +1 -1
  7. package/core/VirtualTable/useScrollToEdge.js +9 -5
  8. package/core/VirtualTable/useScrollToEdge.js.map +1 -1
  9. package/package.json +2 -8
  10. package/util/BrowserUtil.d.ts +1 -1
  11. package/util/BrowserUtil.js +2 -2
  12. package/util/BrowserUtil.js.map +1 -1
  13. package/core/VirtualizedFlatList/CellMeasurer.d.ts +0 -17
  14. package/core/VirtualizedFlatList/CellMeasurer.js +0 -36
  15. package/core/VirtualizedFlatList/CellMeasurer.js.map +0 -1
  16. package/core/VirtualizedFlatList/CellMeasurerCache.d.ts +0 -16
  17. package/core/VirtualizedFlatList/CellMeasurerCache.js +0 -31
  18. package/core/VirtualizedFlatList/CellMeasurerCache.js.map +0 -1
  19. package/core/VirtualizedFlatList/Footer.d.ts +0 -8
  20. package/core/VirtualizedFlatList/Footer.js +0 -27
  21. package/core/VirtualizedFlatList/Footer.js.map +0 -1
  22. package/core/VirtualizedFlatList/ListItem.d.ts +0 -4
  23. package/core/VirtualizedFlatList/ListItem.js +0 -43
  24. package/core/VirtualizedFlatList/ListItem.js.map +0 -1
  25. package/core/VirtualizedFlatList/Loading.d.ts +0 -7
  26. package/core/VirtualizedFlatList/Loading.js +0 -9
  27. package/core/VirtualizedFlatList/Loading.js.map +0 -1
  28. package/core/VirtualizedFlatList/index.d.ts +0 -29
  29. package/core/VirtualizedFlatList/index.js +0 -182
  30. package/core/VirtualizedFlatList/index.js.map +0 -1
  31. package/core/VirtualizedFlatList/index.less +0 -59
  32. package/core/VirtualizedFlatList/type.d.ts +0 -29
  33. package/core/VirtualizedFlatList/type.js +0 -2
  34. package/core/VirtualizedFlatList/type.js.map +0 -1
  35. package/core/VirtualizedFlatList/useLoadingWithDelay.d.ts +0 -1
  36. package/core/VirtualizedFlatList/useLoadingWithDelay.js +0 -51
  37. package/core/VirtualizedFlatList/useLoadingWithDelay.js.map +0 -1
  38. package/hooks/useSwipe/controller.d.ts +0 -20
  39. package/hooks/useSwipe/controller.js +0 -126
  40. package/hooks/useSwipe/controller.js.map +0 -1
  41. package/hooks/useSwipe/index.d.ts +0 -3
  42. package/hooks/useSwipe/index.js +0 -9
  43. package/hooks/useSwipe/index.js.map +0 -1
  44. package/hooks/useSwipe/type.d.ts +0 -38
  45. package/hooks/useSwipe/type.js +0 -8
  46. package/hooks/useSwipe/type.js.map +0 -1
  47. package/hooks/useTransform.d.ts +0 -18
  48. package/hooks/useTransform.js +0 -50
  49. package/hooks/useTransform.js.map +0 -1
  50. package/util/SwipeUtil.d.ts +0 -8
  51. package/util/SwipeUtil.js +0 -26
  52. package/util/SwipeUtil.js.map +0 -1
@@ -1,8 +0,0 @@
1
- import { Direction } from "../hooks/useSwipe";
2
- declare function getDirection(start: [number, number], end: [number, number]): Direction;
3
- declare function getDisplacement(start: [number, number], end: [number, number]): number;
4
- export declare const SwipeUtil: Readonly<{
5
- getDirection: typeof getDirection;
6
- getDisplacement: typeof getDisplacement;
7
- }>;
8
- export {};
package/util/SwipeUtil.js DELETED
@@ -1,26 +0,0 @@
1
- import { Direction } from "../hooks/useSwipe";
2
- function getDirection(start, end) {
3
- var vector = [end[0] - start[0], start[1] - end[1]];
4
- var degree = (Math.atan2(vector[1], vector[0]) * 180) / Math.PI;
5
- degree = degree < 0 ? degree + 360 : degree;
6
- if ((degree >= 315 && degree < 360) || (degree >= 0 && degree < 45)) {
7
- return Direction.RIGHT;
8
- }
9
- else if (degree >= 45 && degree < 135) {
10
- return Direction.UP;
11
- }
12
- else if (degree >= 135 && degree < 225) {
13
- return Direction.LEFT;
14
- }
15
- else {
16
- return Direction.DOWN;
17
- }
18
- }
19
- function getDisplacement(start, end) {
20
- return Math.sqrt(Math.pow(start[0] - end[0], 2) + Math.pow(start[1] - end[1], 2));
21
- }
22
- export var SwipeUtil = Object.freeze({
23
- getDirection: getDirection,
24
- getDisplacement: getDisplacement,
25
- });
26
- //# sourceMappingURL=SwipeUtil.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SwipeUtil.js","sourceRoot":"","sources":["../../src/util/SwipeUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAE5C,SAAS,YAAY,CAAC,KAAuB,EAAE,GAAqB;IAChE,IAAM,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,IAAI,MAAM,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;IAChE,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;IAE5C,IAAI,CAAC,MAAM,IAAI,GAAG,IAAI,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC,EAAE;QACjE,OAAO,SAAS,CAAC,KAAK,CAAC;KAC1B;SAAM,IAAI,MAAM,IAAI,EAAE,IAAI,MAAM,GAAG,GAAG,EAAE;QACrC,OAAO,SAAS,CAAC,EAAE,CAAC;KACvB;SAAM,IAAI,MAAM,IAAI,GAAG,IAAI,MAAM,GAAG,GAAG,EAAE;QACtC,OAAO,SAAS,CAAC,IAAI,CA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