@elliemae/ds-shuttle 2.3.0-next.3 → 3.0.0-alpha.0

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 (220) hide show
  1. package/dist/cjs/AnimationState.js +75 -0
  2. package/dist/cjs/AnimationState.js.map +7 -0
  3. package/dist/cjs/DSShuttle.js +170 -0
  4. package/dist/cjs/DSShuttle.js.map +7 -0
  5. package/dist/cjs/SearchState.js +60 -0
  6. package/dist/cjs/SearchState.js.map +7 -0
  7. package/dist/cjs/Shuttle.actions.js +126 -0
  8. package/dist/cjs/Shuttle.actions.js.map +7 -0
  9. package/dist/cjs/ShuttleContainer.js +82 -0
  10. package/dist/cjs/ShuttleContainer.js.map +7 -0
  11. package/dist/cjs/ShuttleImpl.js +214 -0
  12. package/dist/cjs/ShuttleImpl.js.map +7 -0
  13. package/dist/cjs/ShuttleRenderer.js +144 -0
  14. package/dist/cjs/ShuttleRenderer.js.map +7 -0
  15. package/dist/cjs/ShuttleState.js +84 -0
  16. package/dist/cjs/ShuttleState.js.map +7 -0
  17. package/dist/cjs/animation/animationConfig.js +78 -0
  18. package/dist/cjs/animation/animationConfig.js.map +7 -0
  19. package/dist/cjs/classedComponents.js +72 -0
  20. package/dist/cjs/classedComponents.js.map +7 -0
  21. package/dist/cjs/components/LoadingIndicator.js +52 -0
  22. package/dist/cjs/components/LoadingIndicator.js.map +7 -0
  23. package/dist/cjs/components/OverflowList.js +55 -0
  24. package/dist/cjs/components/OverflowList.js.map +7 -0
  25. package/dist/cjs/components/ShuttleBreadcrumb.js +54 -0
  26. package/dist/cjs/components/ShuttleBreadcrumb.js.map +7 -0
  27. package/dist/cjs/components/ShuttleInfiniteScrollIndicator.js +48 -0
  28. package/dist/cjs/components/ShuttleInfiniteScrollIndicator.js.map +7 -0
  29. package/dist/cjs/components/ShuttleListItem/ActionButtons.js +60 -0
  30. package/dist/cjs/components/ShuttleListItem/ActionButtons.js.map +7 -0
  31. package/dist/cjs/components/ShuttleListItem/ShuttleListItem.js +83 -0
  32. package/dist/cjs/components/ShuttleListItem/ShuttleListItem.js.map +7 -0
  33. package/dist/cjs/components/ShuttleListItem/ShuttleSourceListItem.js +90 -0
  34. package/dist/cjs/components/ShuttleListItem/ShuttleSourceListItem.js.map +7 -0
  35. package/dist/cjs/components/ShuttleListItem/ShuttleTargetListItem.js +73 -0
  36. package/dist/cjs/components/ShuttleListItem/ShuttleTargetListItem.js.map +7 -0
  37. package/dist/cjs/components/ShuttleListPanel.js +49 -0
  38. package/dist/cjs/components/ShuttleListPanel.js.map +7 -0
  39. package/dist/cjs/components/ShuttleSearchBox.js +99 -0
  40. package/dist/cjs/components/ShuttleSearchBox.js.map +7 -0
  41. package/dist/cjs/components/ShuttleSource.js +192 -0
  42. package/dist/cjs/components/ShuttleSource.js.map +7 -0
  43. package/dist/cjs/components/ShuttleTarget.js +104 -0
  44. package/dist/cjs/components/ShuttleTarget.js.map +7 -0
  45. package/dist/cjs/components/VirtualizedItem.js +51 -0
  46. package/dist/cjs/components/VirtualizedItem.js.map +7 -0
  47. package/dist/cjs/components/VirtualizedList.js +88 -0
  48. package/dist/cjs/components/VirtualizedList.js.map +7 -0
  49. package/dist/cjs/components/VirtualizedSortableList.js +48 -0
  50. package/dist/cjs/components/VirtualizedSortableList.js.map +7 -0
  51. package/dist/cjs/helper.js +83 -0
  52. package/dist/cjs/helper.js.map +7 -0
  53. package/dist/cjs/index.js +38 -0
  54. package/dist/cjs/index.js.map +7 -0
  55. package/dist/cjs/tests/utils.js +1218 -0
  56. package/dist/cjs/tests/utils.js.map +7 -0
  57. package/dist/cjs/updateShuttleStateFromProps.js +98 -0
  58. package/dist/cjs/updateShuttleStateFromProps.js.map +7 -0
  59. package/dist/cjs/utils.js +41 -0
  60. package/dist/cjs/utils.js.map +7 -0
  61. package/dist/cjs/withProviders.js +45 -0
  62. package/dist/cjs/withProviders.js.map +7 -0
  63. package/{esm → dist/esm}/AnimationState.js +12 -8
  64. package/dist/esm/AnimationState.js.map +7 -0
  65. package/dist/esm/DSShuttle.js +141 -0
  66. package/dist/esm/DSShuttle.js.map +7 -0
  67. package/dist/esm/SearchState.js +31 -0
  68. package/dist/esm/SearchState.js.map +7 -0
  69. package/dist/esm/Shuttle.actions.js +106 -0
  70. package/dist/esm/Shuttle.actions.js.map +7 -0
  71. package/dist/esm/ShuttleContainer.js +64 -0
  72. package/dist/esm/ShuttleContainer.js.map +7 -0
  73. package/dist/esm/ShuttleImpl.js +199 -0
  74. package/dist/esm/ShuttleImpl.js.map +7 -0
  75. package/dist/esm/ShuttleRenderer.js +115 -0
  76. package/dist/esm/ShuttleRenderer.js.map +7 -0
  77. package/dist/esm/ShuttleState.js +55 -0
  78. package/dist/esm/ShuttleState.js.map +7 -0
  79. package/dist/esm/animation/animationConfig.js +49 -0
  80. package/dist/esm/animation/animationConfig.js.map +7 -0
  81. package/dist/esm/classedComponents.js +43 -0
  82. package/dist/esm/classedComponents.js.map +7 -0
  83. package/dist/esm/components/LoadingIndicator.js +23 -0
  84. package/dist/esm/components/LoadingIndicator.js.map +7 -0
  85. package/dist/esm/components/OverflowList.js +26 -0
  86. package/dist/esm/components/OverflowList.js.map +7 -0
  87. package/dist/esm/components/ShuttleBreadcrumb.js +25 -0
  88. package/dist/esm/components/ShuttleBreadcrumb.js.map +7 -0
  89. package/dist/esm/components/ShuttleInfiniteScrollIndicator.js +19 -0
  90. package/dist/esm/components/ShuttleInfiniteScrollIndicator.js.map +7 -0
  91. package/dist/esm/components/ShuttleListItem/ActionButtons.js +31 -0
  92. package/dist/esm/components/ShuttleListItem/ActionButtons.js.map +7 -0
  93. package/dist/esm/components/ShuttleListItem/ShuttleListItem.js +54 -0
  94. package/dist/esm/components/ShuttleListItem/ShuttleListItem.js.map +7 -0
  95. package/dist/esm/components/ShuttleListItem/ShuttleSourceListItem.js +61 -0
  96. package/dist/esm/components/ShuttleListItem/ShuttleSourceListItem.js.map +7 -0
  97. package/dist/esm/components/ShuttleListItem/ShuttleTargetListItem.js +44 -0
  98. package/dist/esm/components/ShuttleListItem/ShuttleTargetListItem.js.map +7 -0
  99. package/dist/esm/components/ShuttleListPanel.js +20 -0
  100. package/dist/esm/components/ShuttleListPanel.js.map +7 -0
  101. package/dist/esm/components/ShuttleSearchBox.js +70 -0
  102. package/dist/esm/components/ShuttleSearchBox.js.map +7 -0
  103. package/dist/esm/components/ShuttleSource.js +175 -0
  104. package/dist/esm/components/ShuttleSource.js.map +7 -0
  105. package/dist/esm/components/ShuttleTarget.js +86 -0
  106. package/dist/esm/components/ShuttleTarget.js.map +7 -0
  107. package/dist/esm/components/VirtualizedItem.js +22 -0
  108. package/dist/esm/components/VirtualizedItem.js.map +7 -0
  109. package/dist/esm/components/VirtualizedList.js +59 -0
  110. package/dist/esm/components/VirtualizedList.js.map +7 -0
  111. package/dist/esm/components/VirtualizedSortableList.js +19 -0
  112. package/dist/esm/components/VirtualizedSortableList.js.map +7 -0
  113. package/dist/esm/helper.js +54 -0
  114. package/dist/esm/helper.js.map +7 -0
  115. package/dist/esm/index.js +9 -0
  116. package/dist/esm/index.js.map +7 -0
  117. package/dist/esm/tests/utils.js +1189 -0
  118. package/dist/esm/tests/utils.js.map +7 -0
  119. package/dist/esm/updateShuttleStateFromProps.js +69 -0
  120. package/dist/esm/updateShuttleStateFromProps.js.map +7 -0
  121. package/dist/esm/utils.js +12 -0
  122. package/dist/esm/utils.js.map +7 -0
  123. package/dist/esm/withProviders.js +16 -0
  124. package/dist/esm/withProviders.js.map +7 -0
  125. package/{types → dist/types}/AnimationState.d.ts +3 -2
  126. package/{types → dist/types}/DSShuttle.d.ts +1 -1
  127. package/{types → dist/types}/SearchState.d.ts +3 -2
  128. package/{types → dist/types}/Shuttle.actions.d.ts +0 -0
  129. package/{types → dist/types}/ShuttleContainer.d.ts +0 -0
  130. package/dist/types/ShuttleImpl.d.ts +4 -0
  131. package/{types → dist/types}/ShuttleRenderer.d.ts +1 -0
  132. package/{types → dist/types}/ShuttleState.d.ts +3 -2
  133. package/{types → dist/types}/animation/animationConfig.d.ts +0 -0
  134. package/{types → dist/types}/classedComponents.d.ts +0 -0
  135. package/{types → dist/types}/components/LoadingIndicator.d.ts +1 -0
  136. package/{types → dist/types}/components/OverflowList.d.ts +1 -0
  137. package/{types → dist/types}/components/ShuttleBreadcrumb.d.ts +1 -0
  138. package/{types → dist/types}/components/ShuttleInfiniteScrollIndicator.d.ts +1 -0
  139. package/{types → dist/types}/components/ShuttleListItem/ActionButtons.d.ts +0 -0
  140. package/{types → dist/types}/components/ShuttleListItem/ShuttleListItem.d.ts +1 -0
  141. package/{types → dist/types}/components/ShuttleListItem/ShuttleSourceListItem.d.ts +1 -0
  142. package/{types → dist/types}/components/ShuttleListItem/ShuttleTargetListItem.d.ts +1 -0
  143. package/{types → dist/types}/components/ShuttleListPanel.d.ts +1 -0
  144. package/{types → dist/types}/components/ShuttleSearchBox.d.ts +3 -1
  145. package/{types → dist/types}/components/ShuttleSource.d.ts +1 -0
  146. package/{types → dist/types}/components/ShuttleTarget.d.ts +1 -0
  147. package/{types → dist/types}/components/VirtualizedItem.d.ts +1 -0
  148. package/{types → dist/types}/components/VirtualizedList.d.ts +1 -0
  149. package/{types → dist/types}/components/VirtualizedSortableList.d.ts +1 -0
  150. package/{types → dist/types}/helper.d.ts +0 -0
  151. package/dist/types/index.d.ts +1 -0
  152. package/{types → dist/types}/tests/DSShuttle.events.test.d.ts +0 -0
  153. package/{types → dist/types}/tests/DSShuttle.test.d.ts +0 -0
  154. package/{types → dist/types}/tests/utils.d.ts +0 -0
  155. package/dist/types/updateShuttleStateFromProps.d.ts +3 -0
  156. package/{types → dist/types}/utils.d.ts +0 -0
  157. package/{types → dist/types}/withProviders.d.ts +1 -0
  158. package/package.json +97 -89
  159. package/cjs/AnimationState.js +0 -48
  160. package/cjs/DSShuttle.js +0 -223
  161. package/cjs/SearchState.js +0 -41
  162. package/cjs/Shuttle.actions.js +0 -137
  163. package/cjs/ShuttleContainer.js +0 -87
  164. package/cjs/ShuttleImpl.js +0 -311
  165. package/cjs/ShuttleRenderer.js +0 -139
  166. package/cjs/ShuttleState.js +0 -80
  167. package/cjs/animation/animationConfig.js +0 -81
  168. package/cjs/classedComponents.js +0 -71
  169. package/cjs/components/LoadingIndicator.js +0 -25
  170. package/cjs/components/OverflowList.js +0 -53
  171. package/cjs/components/ShuttleBreadcrumb.js +0 -42
  172. package/cjs/components/ShuttleInfiniteScrollIndicator.js +0 -39
  173. package/cjs/components/ShuttleListItem/ActionButtons.js +0 -55
  174. package/cjs/components/ShuttleListItem/ShuttleListItem.js +0 -85
  175. package/cjs/components/ShuttleListItem/ShuttleSourceListItem.js +0 -76
  176. package/cjs/components/ShuttleListItem/ShuttleTargetListItem.js +0 -57
  177. package/cjs/components/ShuttleListPanel.js +0 -31
  178. package/cjs/components/ShuttleSearchBox.js +0 -110
  179. package/cjs/components/ShuttleSource.js +0 -188
  180. package/cjs/components/ShuttleTarget.js +0 -116
  181. package/cjs/components/VirtualizedItem.js +0 -46
  182. package/cjs/components/VirtualizedList.js +0 -93
  183. package/cjs/components/VirtualizedSortableList.js +0 -41
  184. package/cjs/helper.js +0 -117
  185. package/cjs/index.js +0 -12
  186. package/cjs/updateShuttleStateFromProps.js +0 -94
  187. package/cjs/utils.js +0 -43
  188. package/cjs/withProviders.js +0 -29
  189. package/esm/DSShuttle.js +0 -213
  190. package/esm/SearchState.js +0 -35
  191. package/esm/Shuttle.actions.js +0 -123
  192. package/esm/ShuttleContainer.js +0 -80
  193. package/esm/ShuttleImpl.js +0 -304
  194. package/esm/ShuttleRenderer.js +0 -132
  195. package/esm/ShuttleState.js +0 -74
  196. package/esm/animation/animationConfig.js +0 -77
  197. package/esm/classedComponents.js +0 -51
  198. package/esm/components/LoadingIndicator.js +0 -18
  199. package/esm/components/OverflowList.js +0 -46
  200. package/esm/components/ShuttleBreadcrumb.js +0 -35
  201. package/esm/components/ShuttleInfiniteScrollIndicator.js +0 -32
  202. package/esm/components/ShuttleListItem/ActionButtons.js +0 -43
  203. package/esm/components/ShuttleListItem/ShuttleListItem.js +0 -76
  204. package/esm/components/ShuttleListItem/ShuttleSourceListItem.js +0 -68
  205. package/esm/components/ShuttleListItem/ShuttleTargetListItem.js +0 -49
  206. package/esm/components/ShuttleListPanel.js +0 -24
  207. package/esm/components/ShuttleSearchBox.js +0 -104
  208. package/esm/components/ShuttleSource.js +0 -179
  209. package/esm/components/ShuttleTarget.js +0 -107
  210. package/esm/components/VirtualizedItem.js +0 -40
  211. package/esm/components/VirtualizedList.js +0 -84
  212. package/esm/components/VirtualizedSortableList.js +0 -34
  213. package/esm/helper.js +0 -78
  214. package/esm/index.js +0 -2
  215. package/esm/updateShuttleStateFromProps.js +0 -88
  216. package/esm/utils.js +0 -18
  217. package/esm/withProviders.js +0 -22
  218. package/types/ShuttleImpl.d.ts +0 -3
  219. package/types/index.d.ts +0 -1
  220. package/types/updateShuttleStateFromProps.d.ts +0 -1
package/package.json CHANGED
@@ -1,135 +1,138 @@
1
1
  {
2
2
  "name": "@elliemae/ds-shuttle",
3
- "version": "2.3.0-next.3",
3
+ "version": "3.0.0-alpha.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Shuttle",
6
- "module": "./esm/index.js",
7
- "main": "./cjs/index.js",
8
- "types": "./types/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
9
12
  "exports": {
10
13
  ".": {
11
- "import": "./esm/index.js",
12
- "require": "./cjs/index.js"
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
13
16
  },
14
17
  "./withProviders": {
15
- "import": "./esm/withProviders.js",
16
- "require": "./cjs/withProviders.js"
18
+ "import": "./dist/esm/withProviders.js",
19
+ "require": "./dist/cjs/withProviders.js"
17
20
  },
18
21
  "./utils": {
19
- "import": "./esm/utils.js",
20
- "require": "./cjs/utils.js"
22
+ "import": "./dist/esm/utils.js",
23
+ "require": "./dist/cjs/utils.js"
21
24
  },
22
25
  "./updateShuttleStateFromProps": {
23
- "import": "./esm/updateShuttleStateFromProps.js",
24
- "require": "./cjs/updateShuttleStateFromProps.js"
26
+ "import": "./dist/esm/updateShuttleStateFromProps.js",
27
+ "require": "./dist/cjs/updateShuttleStateFromProps.js"
25
28
  },
26
29
  "./tests/utils": {
27
- "import": "./esm/tests/utils.js",
28
- "require": "./cjs/tests/utils.js"
30
+ "import": "./dist/esm/tests/utils.js",
31
+ "require": "./dist/cjs/tests/utils.js"
29
32
  },
30
33
  "./ShuttleState": {
31
- "import": "./esm/ShuttleState.js",
32
- "require": "./cjs/ShuttleState.js"
34
+ "import": "./dist/esm/ShuttleState.js",
35
+ "require": "./dist/cjs/ShuttleState.js"
33
36
  },
34
37
  "./ShuttleRenderer": {
35
- "import": "./esm/ShuttleRenderer.js",
36
- "require": "./cjs/ShuttleRenderer.js"
38
+ "import": "./dist/esm/ShuttleRenderer.js",
39
+ "require": "./dist/cjs/ShuttleRenderer.js"
37
40
  },
38
41
  "./ShuttleImpl": {
39
- "import": "./esm/ShuttleImpl.js",
40
- "require": "./cjs/ShuttleImpl.js"
42
+ "import": "./dist/esm/ShuttleImpl.js",
43
+ "require": "./dist/cjs/ShuttleImpl.js"
41
44
  },
42
45
  "./ShuttleContainer": {
43
- "import": "./esm/ShuttleContainer.js",
44
- "require": "./cjs/ShuttleContainer.js"
46
+ "import": "./dist/esm/ShuttleContainer.js",
47
+ "require": "./dist/cjs/ShuttleContainer.js"
45
48
  },
46
49
  "./Shuttle.actions": {
47
- "import": "./esm/Shuttle.actions.js",
48
- "require": "./cjs/Shuttle.actions.js"
50
+ "import": "./dist/esm/Shuttle.actions.js",
51
+ "require": "./dist/cjs/Shuttle.actions.js"
49
52
  },
50
53
  "./SearchState": {
51
- "import": "./esm/SearchState.js",
52
- "require": "./cjs/SearchState.js"
54
+ "import": "./dist/esm/SearchState.js",
55
+ "require": "./dist/cjs/SearchState.js"
53
56
  },
54
57
  "./helper": {
55
- "import": "./esm/helper.js",
56
- "require": "./cjs/helper.js"
58
+ "import": "./dist/esm/helper.js",
59
+ "require": "./dist/cjs/helper.js"
57
60
  },
58
61
  "./DSShuttle": {
59
- "import": "./esm/DSShuttle.js",
60
- "require": "./cjs/DSShuttle.js"
62
+ "import": "./dist/esm/DSShuttle.js",
63
+ "require": "./dist/cjs/DSShuttle.js"
61
64
  },
62
65
  "./components/VirtualizedSortableList": {
63
- "import": "./esm/components/VirtualizedSortableList.js",
64
- "require": "./cjs/components/VirtualizedSortableList.js"
66
+ "import": "./dist/esm/components/VirtualizedSortableList.js",
67
+ "require": "./dist/cjs/components/VirtualizedSortableList.js"
65
68
  },
66
69
  "./components/VirtualizedList": {
67
- "import": "./esm/components/VirtualizedList.js",
68
- "require": "./cjs/components/VirtualizedList.js"
70
+ "import": "./dist/esm/components/VirtualizedList.js",
71
+ "require": "./dist/cjs/components/VirtualizedList.js"
69
72
  },
70
73
  "./components/VirtualizedItem": {
71
- "import": "./esm/components/VirtualizedItem.js",
72
- "require": "./cjs/components/VirtualizedItem.js"
74
+ "import": "./dist/esm/components/VirtualizedItem.js",
75
+ "require": "./dist/cjs/components/VirtualizedItem.js"
73
76
  },
74
77
  "./components/ShuttleTarget": {
75
- "import": "./esm/components/ShuttleTarget.js",
76
- "require": "./cjs/components/ShuttleTarget.js"
78
+ "import": "./dist/esm/components/ShuttleTarget.js",
79
+ "require": "./dist/cjs/components/ShuttleTarget.js"
77
80
  },
78
81
  "./components/ShuttleSource": {
79
- "import": "./esm/components/ShuttleSource.js",
80
- "require": "./cjs/components/ShuttleSource.js"
82
+ "import": "./dist/esm/components/ShuttleSource.js",
83
+ "require": "./dist/cjs/components/ShuttleSource.js"
81
84
  },
82
85
  "./components/ShuttleSearchBox": {
83
- "import": "./esm/components/ShuttleSearchBox.js",
84
- "require": "./cjs/components/ShuttleSearchBox.js"
86
+ "import": "./dist/esm/components/ShuttleSearchBox.js",
87
+ "require": "./dist/cjs/components/ShuttleSearchBox.js"
85
88
  },
86
89
  "./components/ShuttleListPanel": {
87
- "import": "./esm/components/ShuttleListPanel.js",
88
- "require": "./cjs/components/ShuttleListPanel.js"
90
+ "import": "./dist/esm/components/ShuttleListPanel.js",
91
+ "require": "./dist/cjs/components/ShuttleListPanel.js"
89
92
  },
90
93
  "./components/ShuttleListItem/ShuttleTargetListItem": {
91
- "import": "./esm/components/ShuttleListItem/ShuttleTargetListItem.js",
92
- "require": "./cjs/components/ShuttleListItem/ShuttleTargetListItem.js"
94
+ "import": "./dist/esm/components/ShuttleListItem/ShuttleTargetListItem.js",
95
+ "require": "./dist/cjs/components/ShuttleListItem/ShuttleTargetListItem.js"
93
96
  },
94
97
  "./components/ShuttleListItem/ShuttleSourceListItem": {
95
- "import": "./esm/components/ShuttleListItem/ShuttleSourceListItem.js",
96
- "require": "./cjs/components/ShuttleListItem/ShuttleSourceListItem.js"
98
+ "import": "./dist/esm/components/ShuttleListItem/ShuttleSourceListItem.js",
99
+ "require": "./dist/cjs/components/ShuttleListItem/ShuttleSourceListItem.js"
97
100
  },
98
101
  "./components/ShuttleListItem/ShuttleListItem": {
99
- "import": "./esm/components/ShuttleListItem/ShuttleListItem.js",
100
- "require": "./cjs/components/ShuttleListItem/ShuttleListItem.js"
102
+ "import": "./dist/esm/components/ShuttleListItem/ShuttleListItem.js",
103
+ "require": "./dist/cjs/components/ShuttleListItem/ShuttleListItem.js"
101
104
  },
102
105
  "./components/ShuttleListItem/ActionButtons": {
103
- "import": "./esm/components/ShuttleListItem/ActionButtons.js",
104
- "require": "./cjs/components/ShuttleListItem/ActionButtons.js"
106
+ "import": "./dist/esm/components/ShuttleListItem/ActionButtons.js",
107
+ "require": "./dist/cjs/components/ShuttleListItem/ActionButtons.js"
105
108
  },
106
109
  "./components/ShuttleInfiniteScrollIndicator": {
107
- "import": "./esm/components/ShuttleInfiniteScrollIndicator.js",
108
- "require": "./cjs/components/ShuttleInfiniteScrollIndicator.js"
110
+ "import": "./dist/esm/components/ShuttleInfiniteScrollIndicator.js",
111
+ "require": "./dist/cjs/components/ShuttleInfiniteScrollIndicator.js"
109
112
  },
110
113
  "./components/ShuttleBreadcrumb": {
111
- "import": "./esm/components/ShuttleBreadcrumb.js",
112
- "require": "./cjs/components/ShuttleBreadcrumb.js"
114
+ "import": "./dist/esm/components/ShuttleBreadcrumb.js",
115
+ "require": "./dist/cjs/components/ShuttleBreadcrumb.js"
113
116
  },
114
117
  "./components/OverflowList": {
115
- "import": "./esm/components/OverflowList.js",
116
- "require": "./cjs/components/OverflowList.js"
118
+ "import": "./dist/esm/components/OverflowList.js",
119
+ "require": "./dist/cjs/components/OverflowList.js"
117
120
  },
118
121
  "./components/LoadingIndicator": {
119
- "import": "./esm/components/LoadingIndicator.js",
120
- "require": "./cjs/components/LoadingIndicator.js"
122
+ "import": "./dist/esm/components/LoadingIndicator.js",
123
+ "require": "./dist/cjs/components/LoadingIndicator.js"
121
124
  },
122
125
  "./classedComponents": {
123
- "import": "./esm/classedComponents.js",
124
- "require": "./cjs/classedComponents.js"
126
+ "import": "./dist/esm/classedComponents.js",
127
+ "require": "./dist/cjs/classedComponents.js"
125
128
  },
126
129
  "./AnimationState": {
127
- "import": "./esm/AnimationState.js",
128
- "require": "./cjs/AnimationState.js"
130
+ "import": "./dist/esm/AnimationState.js",
131
+ "require": "./dist/cjs/AnimationState.js"
129
132
  },
130
133
  "./animation/animationConfig": {
131
- "import": "./esm/animation/animationConfig.js",
132
- "require": "./cjs/animation/animationConfig.js"
134
+ "import": "./dist/esm/animation/animationConfig.js",
135
+ "require": "./dist/cjs/animation/animationConfig.js"
133
136
  }
134
137
  },
135
138
  "sideEffects": [
@@ -141,39 +144,39 @@
141
144
  "url": "https://git.elliemae.io/platform-ui/dimsum.git"
142
145
  },
143
146
  "engines": {
144
- "npm": ">=7",
145
- "node": ">=14"
147
+ "pnpm": ">=6",
148
+ "node": ">=16"
146
149
  },
147
150
  "author": "ICE MT",
148
- "scripts": {
149
- "dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
150
- "prebuild": "exit 0",
151
- "predev": "exit 0",
152
- "build": "node ../../scripts/build/build.js"
151
+ "jestSonar": {
152
+ "sonar56x": true,
153
+ "reportPath": "reports",
154
+ "reportFile": "tests.xml",
155
+ "indent": 4
153
156
  },
154
157
  "dependencies": {
155
- "@elliemae/ds-basic": "2.3.0-next.1",
156
- "@elliemae/ds-button": "2.3.0-next.3",
157
- "@elliemae/ds-circular-progress-indicator": "2.3.0-next.3",
158
- "@elliemae/ds-classnames": "2.3.0-next.3",
159
- "@elliemae/ds-form": "2.3.0-next.3",
160
- "@elliemae/ds-icons": "2.3.0-next.3",
161
- "@elliemae/ds-indeterminate-progress-indicator": "2.3.0-next.3",
162
- "@elliemae/ds-system": "2.3.0-next.1",
163
- "@elliemae/ds-truncated-tooltip-text": "2.3.0-next.3",
164
- "@elliemae/ds-utilities": "2.3.0-next.3",
158
+ "@elliemae/ds-breadcrumb": "3.0.0-alpha.0",
159
+ "@elliemae/ds-button": "3.0.0-alpha.0",
160
+ "@elliemae/ds-circular-progress-indicator": "3.0.0-alpha.0",
161
+ "@elliemae/ds-classnames": "3.0.0-alpha.0",
162
+ "@elliemae/ds-form": "3.0.0-alpha.0",
163
+ "@elliemae/ds-icons": "3.0.0-alpha.0",
164
+ "@elliemae/ds-indeterminate-progress-indicator": "3.0.0-alpha.0",
165
+ "@elliemae/ds-system": "3.0.0-alpha.0",
166
+ "@elliemae/ds-truncated-tooltip-text": "3.0.0-alpha.0",
167
+ "@elliemae/ds-utilities": "3.0.0-alpha.0",
165
168
  "constate": "~1.3.2",
166
169
  "prop-types": "~15.7.2",
167
170
  "react-desc": "~4.1.3",
168
171
  "react-sortable-hoc": "~1.9.1",
169
172
  "react-spring": "~8.0.27",
170
- "react-virtualized-auto-sizer": "~1.0.4",
171
- "react-window": "~1.8.5",
172
- "react-window-infinite-loader": "~1.0.5",
173
+ "react-virtualized-auto-sizer": "~1.0.6",
174
+ "react-window": "~1.8.6",
175
+ "react-window-infinite-loader": "~1.0.7",
173
176
  "treetabular": "~3.6.0"
174
177
  },
175
178
  "devDependencies": {
176
- "@testing-library/jest-dom": "~5.15.0",
179
+ "@testing-library/jest-dom": "~5.15.1",
177
180
  "@testing-library/react": "~12.1.2",
178
181
  "@testing-library/user-event": "~13.5.0",
179
182
  "styled-components": "~5.3.3"
@@ -186,7 +189,12 @@
186
189
  },
187
190
  "publishConfig": {
188
191
  "access": "public",
189
- "directory": "dist",
190
- "generateSubmodules": true
192
+ "typeSafety": false
193
+ },
194
+ "scripts": {
195
+ "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
196
+ "test": "node ../../scripts/testing/test.mjs",
197
+ "lint": "node ../../scripts/lint.mjs",
198
+ "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
191
199
  }
192
200
  }
@@ -1,48 +0,0 @@
1
- 'use strict';
2
-
3
- require('core-js/modules/web.dom-collections.iterator.js');
4
- var react = require('react');
5
- var createContainer = require('constate');
6
-
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
-
9
- var createContainer__default = /*#__PURE__*/_interopDefaultLegacy(createContainer);
10
-
11
- function useShuttleAnimationState() {
12
- const [animationState, setAnimationState] = react.useState({
13
- isMoving: false,
14
- isMovingBack: false,
15
- isDrillingDown: false
16
- });
17
- const reset = react.useCallback(() => setAnimationState({
18
- isMoving: false,
19
- isMovingBack: false,
20
- isDrillingDown: false
21
- }), []);
22
- const move = react.useCallback(() => setAnimationState({
23
- isMovingBack: false,
24
- isMoving: true,
25
- isDrillingDown: false
26
- }), []);
27
- const moveBack = react.useCallback(() => setAnimationState({
28
- isMovingBack: true,
29
- isMoving: false,
30
- isDrillingDown: false
31
- }), []);
32
- const drilldown = react.useCallback(() => setAnimationState({
33
- isMovingBack: false,
34
- isMoving: false,
35
- isDrillingDown: true
36
- }), []);
37
- return {
38
- state: animationState,
39
- setIsMoving: move,
40
- setIsMovingBack: moveBack,
41
- setIsDrillingDown: drilldown,
42
- reset
43
- };
44
- }
45
-
46
- var AnimationContext = createContainer__default["default"](useShuttleAnimationState, value => [value.state]);
47
-
48
- module.exports = AnimationContext;
package/cjs/DSShuttle.js DELETED
@@ -1,223 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _jsx = require('@babel/runtime/helpers/jsx');
6
- require('core-js/modules/web.dom-collections.iterator.js');
7
- require('react');
8
- var lodash = require('lodash');
9
- var reactDesc = require('react-desc');
10
- var dsTruncatedTooltipText = require('@elliemae/ds-truncated-tooltip-text');
11
- var ShuttleImpl = require('./ShuttleImpl.js');
12
- var utils = require('./utils.js');
13
-
14
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
-
16
- var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
17
-
18
- const noop = () => {};
19
-
20
- const DSShuttle = _ref => {
21
- let {
22
- containerProps = {},
23
- idField = 'id',
24
- parentIdField = 'parent',
25
- showIcons = true,
26
- items = [],
27
- selectedItems = undefined,
28
- // if defined it becomes controlled (v1)
29
- // TODO make `nonSelectedItems` the default controlled behavior (v2)
30
- nonSelectedItems = undefined,
31
- onSearch = noop,
32
- onSearchOpen = noop,
33
- onSearchClose = noop,
34
- onDrillDown = noop,
35
- onDrillDownTarget = noop,
36
- onTargetSortEnd = noop,
37
- setGetStatus = noop,
38
- targetSortable = true,
39
- sourceEmptyMessage = 'No Items Found',
40
- sourceRootTitle = 'Category',
41
- targetEmptyMessage = 'No Items Selected',
42
- targetRootTitle = 'Selected Items',
43
- composeSourceItemProps = () => ({}),
44
- composeTargetItemProps = () => ({}),
45
- onAddToTarget = noop,
46
- onAddCheckedItems = noop,
47
- onRemoveFromTarget = noop,
48
- onRemoveAllFromTarget = noop,
49
- onChange = noop,
50
- renderSourceCounter = noop,
51
- renderTargetCounter = noop,
52
- sourceClearItemsText = 'CLEAR ALL',
53
- targetClearItemsText = 'CLEAR ALL',
54
- searchPlaceholder = 'Search field ID, name, etc.',
55
- loadingSource = false,
56
- loadingTarget = false,
57
- onGetMoreItems = () => null,
58
- hasNextPage = false,
59
- moreItemsLoading
60
- } = _ref;
61
- return /*#__PURE__*/_jsx__default["default"](dsTruncatedTooltipText.TooltipTextProvider, {}, void 0, /*#__PURE__*/_jsx__default["default"](ShuttleImpl, {
62
- composeSourceItemProps: composeSourceItemProps,
63
- composeTargetItemProps: composeTargetItemProps,
64
- containerProps: containerProps,
65
- idField: idField,
66
- items: items,
67
- onAddCheckedItems: onAddCheckedItems,
68
- onAddToTarget: onAddToTarget,
69
- onChange: onChange,
70
- onDrillDown: onDrillDown,
71
- nonSelectedItems: nonSelectedItems,
72
- onDrillDownTarget: onDrillDownTarget,
73
- onRemoveAllFromTarget: onRemoveAllFromTarget,
74
- onRemoveFromTarget: onRemoveFromTarget,
75
- onSearch: onSearch,
76
- onSearchClose: onSearchClose,
77
- onSearchOpen: onSearchOpen,
78
- onTargetSortEnd: onTargetSortEnd,
79
- parentIdField: parentIdField,
80
- renderSourceCounter: renderSourceCounter,
81
- renderTargetCounter: renderTargetCounter,
82
- searchPlaceholder: searchPlaceholder,
83
- selectedItems: selectedItems,
84
- setGetStatus: setGetStatus,
85
- showIcons: showIcons,
86
- sourceClearItemsText: sourceClearItemsText,
87
- sourceEmptyMessage: sourceEmptyMessage,
88
- sourceRootTitle: sourceRootTitle,
89
- targetClearItemsText: targetClearItemsText,
90
- targetEmptyMessage: targetEmptyMessage,
91
- targetRootTitle: targetRootTitle,
92
- targetSortable: targetSortable,
93
- loadingSource: loadingSource,
94
- loadingTarget: loadingTarget,
95
- onGetMoreItems: lodash.debounce(function () {
96
- onGetMoreItems(...arguments);
97
- }, 500),
98
- moreItemsLoading: moreItemsLoading,
99
- hasNextPage: hasNextPage
100
- }));
101
- };
102
-
103
- const props = {
104
- /** inject props to shuttle wrapper */
105
- containerProps: reactDesc.PropTypes.object.description('inject props to shuttle wrapper'),
106
-
107
- /** The identifier field for the item object */
108
- idField: reactDesc.PropTypes.string.description('The identifier field for the item object'),
109
-
110
- /** The parent identifier field for the item object */
111
- parentIdField: reactDesc.PropTypes.string.description('The parent identifier field for the item object'),
112
-
113
- /** Whether to show the icons or not */
114
- showIcons: reactDesc.PropTypes.string.description('Whether to show the icons or not'),
115
-
116
- /** List of items */
117
- items: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.shape({
118
- disableDrillDown: reactDesc.PropTypes.bool,
119
- icon: reactDesc.PropTypes.element,
120
- name: reactDesc.PropTypes.string,
121
- readOnly: reactDesc.PropTypes.bool,
122
- description: reactDesc.PropTypes.string
123
- })).description('list of items'),
124
-
125
- /** Array of item ids that are selected. If passed the component behaves as controlled */
126
- selectedItems: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.string).description('Array of item ids that are selected. If passed the component behaves as controlled'),
127
-
128
- /** Array of item ids that aren't selected. Should include ALL non selected items, even those not rendered */
129
- nonSelectedItems: reactDesc.PropTypes.arrayOf(reactDesc.PropTypes.string).description("Array of item ids that aren't selected.. Should include ALL non selected items, even those not rendered"),
130
-
131
- /** Handler on search */
132
- onSearch: reactDesc.PropTypes.func.description('Handler on search'),
133
-
134
- /** Handler when the searchbox is visible */
135
- onSearchOpen: reactDesc.PropTypes.func.description('Handler when the searchbox is visible'),
136
-
137
- /** Handler when the searchbox is not visible */
138
- onSearchClose: reactDesc.PropTypes.func.description('Handler when the searchbox is not visible'),
139
-
140
- /** Source handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction ("up" | "down") */
141
- onDrillDown: reactDesc.PropTypes.func.description('Source handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction ("up" | "down")'),
142
-
143
- /** Target handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction ("up" | "down") */
144
- onDrillDownTarget: reactDesc.PropTypes.func.description('Target handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction ("up" | "down")'),
145
-
146
- /** Target handler when user stops dragging an item */
147
- onTargetSortEnd: reactDesc.PropTypes.func.description('Target handler when user stops dragging an item'),
148
-
149
- /** Callback function that gets more items for Infinite Scroll */
150
- onGetMoreItems: reactDesc.PropTypes.func.description('Callback function that gets more items for Infinite Scroll'),
151
-
152
- /** Wheter there are mor items loading for Infinite Scroll */
153
- moreItemsLoading: reactDesc.PropTypes.bool.description('Wheter there are mor items loading for Infinite Scroll'),
154
-
155
- /** Wheter there is a next page for Infinite Scroll, controls when to trigger onGetMoreItems */
156
- hasNextPage: reactDesc.PropTypes.bool.description('Wheter there is a next page for Infinite Scroll, controls when to trigger onGetMoreItems'),
157
-
158
- /** Function that takes as a parameter an internal getter for the state */
159
- setGetStatus: reactDesc.PropTypes.func.description('Function that takes as a parameter an internal getter for the state'),
160
-
161
- /** Whether the target can be sortable with DnD */
162
- targetSortable: reactDesc.PropTypes.bool.description('Whether the target can be sortable with DnD'),
163
-
164
- /** Handler when the searchbox is visible */
165
- sourceRootTitle: reactDesc.PropTypes.string.description('Handler when the searchbox is visible'),
166
-
167
- /** Source text when there is no items */
168
- sourceEmptyMessage: reactDesc.PropTypes.string.description('Source text when there is no items'),
169
-
170
- /** Target text when there is no items */
171
- targetEmptyMessage: reactDesc.PropTypes.string.description('Target text when there is no items'),
172
-
173
- /** Target text for the first hierarchy item */
174
- targetRootTitle: reactDesc.PropTypes.string.description('Target text for the first hierarchy item'),
175
-
176
- /** Function that allow to compose the item props in the source */
177
- composeSourceItemProps: reactDesc.PropTypes.func.description('Function that allow to compose the item props in the source'),
178
-
179
- /** Function that allow to compose the item props in the target */
180
- composeTargetItemProps: reactDesc.PropTypes.func.description('Function that allow to compose the item props in the target'),
181
-
182
- /** Handler when a users moves an item to the target */
183
- onAddToTarget: reactDesc.PropTypes.func.description('Handler when a users moves an item to the target'),
184
-
185
- /** Handler when a users moves all the 'checked' items to the target */
186
- onAddCheckedItems: reactDesc.PropTypes.func.description("Handler when a users moves all the 'checked' items to the target"),
187
-
188
- /** Handler when a user removes an item from the target */
189
- onRemoveFromTarget: reactDesc.PropTypes.func.description('Handler when a user removes an item from the target'),
190
-
191
- /** Handler when a user removes all the items from the target */
192
- onRemoveAllFromTarget: reactDesc.PropTypes.func.description('Handler when a user removes all the items from the target'),
193
-
194
- /** Handler for every change on the state */
195
- onChange: reactDesc.PropTypes.func.description('Handler for every change on the state'),
196
-
197
- /** Function that returns an element for the source counter */
198
- renderSourceCounter: reactDesc.PropTypes.func.description('Function that returns an element for the source counter'),
199
-
200
- /** Function that returns an element for the target counter */
201
- renderTargetCounter: reactDesc.PropTypes.func.description('Function that returns an element for the target counter'),
202
-
203
- /** Source text for the clear items button */
204
- sourceClearItemsText: reactDesc.PropTypes.string.description('Source text for the clear items button'),
205
-
206
- /** Target text for the clear items button */
207
- targetClearItemsText: reactDesc.PropTypes.string.description('Target text for the clear items button'),
208
-
209
- /** Searchbox placeholder */
210
- searchPlaceholder: reactDesc.PropTypes.string.description('Searchbox placeholder'),
211
-
212
- /** Displays loading indicator on source section */
213
- loadingSource: reactDesc.PropTypes.bool.description('Displays loading indicator on source section'),
214
-
215
- /** Displays loading indicator on target section */
216
- loadingTarget: reactDesc.PropTypes.bool.description('Displays loading indicator on target section')
217
- };
218
- const DSShuttleWithSchema = reactDesc.describe(DSShuttle);
219
- DSShuttleWithSchema.propTypes = props;
220
-
221
- exports.utils = utils;
222
- exports.DSShuttleWithSchema = DSShuttleWithSchema;
223
- exports["default"] = DSShuttle;
@@ -1,41 +0,0 @@
1
- 'use strict';
2
-
3
- require('core-js/modules/web.dom-collections.iterator.js');
4
- var react = require('react');
5
- var createContainer = require('constate');
6
-
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
-
9
- var createContainer__default = /*#__PURE__*/_interopDefaultLegacy(createContainer);
10
-
11
- function useSearchState() {
12
- const [searchTerm, setSearchTerm] = react.useState('');
13
- const [searching, setSearchBoxVisibility] = react.useState(false); // todo: create a hook for Visibility behavior
14
-
15
- function toggleSearchBox(userVisible) {
16
- if (userVisible !== undefined) {
17
- setSearchBoxVisibility(userVisible);
18
- } else {
19
- setSearchBoxVisibility(!searching);
20
- }
21
- }
22
-
23
- function reset() {
24
- setSearchTerm('');
25
- setSearchBoxVisibility(false);
26
- }
27
-
28
- return {
29
- state: {
30
- searchTerm,
31
- searching
32
- },
33
- setSearchTerm,
34
- toggleSearchBox,
35
- reset
36
- };
37
- }
38
-
39
- var SearchState = createContainer__default["default"](useSearchState, value => [value.state]);
40
-
41
- module.exports = SearchState;