@elliemae/ds-shuttle 2.3.0-next.0 → 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.
- package/dist/cjs/AnimationState.js +75 -0
- package/dist/cjs/AnimationState.js.map +7 -0
- package/dist/cjs/DSShuttle.js +170 -0
- package/dist/cjs/DSShuttle.js.map +7 -0
- package/dist/cjs/SearchState.js +60 -0
- package/dist/cjs/SearchState.js.map +7 -0
- package/dist/cjs/Shuttle.actions.js +126 -0
- package/dist/cjs/Shuttle.actions.js.map +7 -0
- package/dist/cjs/ShuttleContainer.js +82 -0
- package/dist/cjs/ShuttleContainer.js.map +7 -0
- package/dist/cjs/ShuttleImpl.js +214 -0
- package/dist/cjs/ShuttleImpl.js.map +7 -0
- package/dist/cjs/ShuttleRenderer.js +144 -0
- package/dist/cjs/ShuttleRenderer.js.map +7 -0
- package/dist/cjs/ShuttleState.js +84 -0
- package/dist/cjs/ShuttleState.js.map +7 -0
- package/dist/cjs/animation/animationConfig.js +78 -0
- package/dist/cjs/animation/animationConfig.js.map +7 -0
- package/dist/cjs/classedComponents.js +72 -0
- package/dist/cjs/classedComponents.js.map +7 -0
- package/dist/cjs/components/LoadingIndicator.js +52 -0
- package/dist/cjs/components/LoadingIndicator.js.map +7 -0
- package/dist/cjs/components/OverflowList.js +55 -0
- package/dist/cjs/components/OverflowList.js.map +7 -0
- package/dist/cjs/components/ShuttleBreadcrumb.js +54 -0
- package/dist/cjs/components/ShuttleBreadcrumb.js.map +7 -0
- package/dist/cjs/components/ShuttleInfiniteScrollIndicator.js +48 -0
- package/dist/cjs/components/ShuttleInfiniteScrollIndicator.js.map +7 -0
- package/dist/cjs/components/ShuttleListItem/ActionButtons.js +60 -0
- package/dist/cjs/components/ShuttleListItem/ActionButtons.js.map +7 -0
- package/dist/cjs/components/ShuttleListItem/ShuttleListItem.js +83 -0
- package/dist/cjs/components/ShuttleListItem/ShuttleListItem.js.map +7 -0
- package/dist/cjs/components/ShuttleListItem/ShuttleSourceListItem.js +90 -0
- package/dist/cjs/components/ShuttleListItem/ShuttleSourceListItem.js.map +7 -0
- package/dist/cjs/components/ShuttleListItem/ShuttleTargetListItem.js +73 -0
- package/dist/cjs/components/ShuttleListItem/ShuttleTargetListItem.js.map +7 -0
- package/dist/cjs/components/ShuttleListPanel.js +49 -0
- package/dist/cjs/components/ShuttleListPanel.js.map +7 -0
- package/dist/cjs/components/ShuttleSearchBox.js +99 -0
- package/dist/cjs/components/ShuttleSearchBox.js.map +7 -0
- package/dist/cjs/components/ShuttleSource.js +192 -0
- package/dist/cjs/components/ShuttleSource.js.map +7 -0
- package/dist/cjs/components/ShuttleTarget.js +104 -0
- package/dist/cjs/components/ShuttleTarget.js.map +7 -0
- package/dist/cjs/components/VirtualizedItem.js +51 -0
- package/dist/cjs/components/VirtualizedItem.js.map +7 -0
- package/dist/cjs/components/VirtualizedList.js +88 -0
- package/dist/cjs/components/VirtualizedList.js.map +7 -0
- package/dist/cjs/components/VirtualizedSortableList.js +48 -0
- package/dist/cjs/components/VirtualizedSortableList.js.map +7 -0
- package/dist/cjs/helper.js +83 -0
- package/dist/cjs/helper.js.map +7 -0
- package/dist/cjs/index.js +38 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/tests/utils.js +1218 -0
- package/dist/cjs/tests/utils.js.map +7 -0
- package/dist/cjs/updateShuttleStateFromProps.js +98 -0
- package/dist/cjs/updateShuttleStateFromProps.js.map +7 -0
- package/dist/cjs/utils.js +41 -0
- package/dist/cjs/utils.js.map +7 -0
- package/dist/cjs/withProviders.js +45 -0
- package/dist/cjs/withProviders.js.map +7 -0
- package/{esm → dist/esm}/AnimationState.js +12 -8
- package/dist/esm/AnimationState.js.map +7 -0
- package/dist/esm/DSShuttle.js +141 -0
- package/dist/esm/DSShuttle.js.map +7 -0
- package/dist/esm/SearchState.js +31 -0
- package/dist/esm/SearchState.js.map +7 -0
- package/dist/esm/Shuttle.actions.js +106 -0
- package/dist/esm/Shuttle.actions.js.map +7 -0
- package/dist/esm/ShuttleContainer.js +64 -0
- package/dist/esm/ShuttleContainer.js.map +7 -0
- package/dist/esm/ShuttleImpl.js +199 -0
- package/dist/esm/ShuttleImpl.js.map +7 -0
- package/dist/esm/ShuttleRenderer.js +115 -0
- package/dist/esm/ShuttleRenderer.js.map +7 -0
- package/dist/esm/ShuttleState.js +55 -0
- package/dist/esm/ShuttleState.js.map +7 -0
- package/dist/esm/animation/animationConfig.js +49 -0
- package/dist/esm/animation/animationConfig.js.map +7 -0
- package/dist/esm/classedComponents.js +43 -0
- package/dist/esm/classedComponents.js.map +7 -0
- package/dist/esm/components/LoadingIndicator.js +23 -0
- package/dist/esm/components/LoadingIndicator.js.map +7 -0
- package/dist/esm/components/OverflowList.js +26 -0
- package/dist/esm/components/OverflowList.js.map +7 -0
- package/dist/esm/components/ShuttleBreadcrumb.js +25 -0
- package/dist/esm/components/ShuttleBreadcrumb.js.map +7 -0
- package/dist/esm/components/ShuttleInfiniteScrollIndicator.js +19 -0
- package/dist/esm/components/ShuttleInfiniteScrollIndicator.js.map +7 -0
- package/dist/esm/components/ShuttleListItem/ActionButtons.js +31 -0
- package/dist/esm/components/ShuttleListItem/ActionButtons.js.map +7 -0
- package/dist/esm/components/ShuttleListItem/ShuttleListItem.js +54 -0
- package/dist/esm/components/ShuttleListItem/ShuttleListItem.js.map +7 -0
- package/dist/esm/components/ShuttleListItem/ShuttleSourceListItem.js +61 -0
- package/dist/esm/components/ShuttleListItem/ShuttleSourceListItem.js.map +7 -0
- package/dist/esm/components/ShuttleListItem/ShuttleTargetListItem.js +44 -0
- package/dist/esm/components/ShuttleListItem/ShuttleTargetListItem.js.map +7 -0
- package/dist/esm/components/ShuttleListPanel.js +20 -0
- package/dist/esm/components/ShuttleListPanel.js.map +7 -0
- package/dist/esm/components/ShuttleSearchBox.js +70 -0
- package/dist/esm/components/ShuttleSearchBox.js.map +7 -0
- package/dist/esm/components/ShuttleSource.js +175 -0
- package/dist/esm/components/ShuttleSource.js.map +7 -0
- package/dist/esm/components/ShuttleTarget.js +86 -0
- package/dist/esm/components/ShuttleTarget.js.map +7 -0
- package/dist/esm/components/VirtualizedItem.js +22 -0
- package/dist/esm/components/VirtualizedItem.js.map +7 -0
- package/dist/esm/components/VirtualizedList.js +59 -0
- package/dist/esm/components/VirtualizedList.js.map +7 -0
- package/dist/esm/components/VirtualizedSortableList.js +19 -0
- package/dist/esm/components/VirtualizedSortableList.js.map +7 -0
- package/dist/esm/helper.js +54 -0
- package/dist/esm/helper.js.map +7 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/tests/utils.js +1189 -0
- package/dist/esm/tests/utils.js.map +7 -0
- package/dist/esm/updateShuttleStateFromProps.js +69 -0
- package/dist/esm/updateShuttleStateFromProps.js.map +7 -0
- package/dist/esm/utils.js +12 -0
- package/dist/esm/utils.js.map +7 -0
- package/dist/esm/withProviders.js +16 -0
- package/dist/esm/withProviders.js.map +7 -0
- package/{types → dist/types}/AnimationState.d.ts +3 -2
- package/{types → dist/types}/DSShuttle.d.ts +1 -1
- package/{types → dist/types}/SearchState.d.ts +3 -2
- package/{types → dist/types}/Shuttle.actions.d.ts +0 -0
- package/{types → dist/types}/ShuttleContainer.d.ts +0 -0
- package/dist/types/ShuttleImpl.d.ts +4 -0
- package/{types → dist/types}/ShuttleRenderer.d.ts +1 -0
- package/{types → dist/types}/ShuttleState.d.ts +3 -2
- package/{types → dist/types}/animation/animationConfig.d.ts +0 -0
- package/{types → dist/types}/classedComponents.d.ts +0 -0
- package/{types → dist/types}/components/LoadingIndicator.d.ts +1 -0
- package/{types → dist/types}/components/OverflowList.d.ts +1 -0
- package/{types → dist/types}/components/ShuttleBreadcrumb.d.ts +1 -0
- package/{types → dist/types}/components/ShuttleInfiniteScrollIndicator.d.ts +1 -0
- package/{types → dist/types}/components/ShuttleListItem/ActionButtons.d.ts +0 -0
- package/{types → dist/types}/components/ShuttleListItem/ShuttleListItem.d.ts +1 -0
- package/{types → dist/types}/components/ShuttleListItem/ShuttleSourceListItem.d.ts +1 -0
- package/{types → dist/types}/components/ShuttleListItem/ShuttleTargetListItem.d.ts +1 -0
- package/{types → dist/types}/components/ShuttleListPanel.d.ts +1 -0
- package/{types → dist/types}/components/ShuttleSearchBox.d.ts +3 -1
- package/{types → dist/types}/components/ShuttleSource.d.ts +1 -0
- package/{types → dist/types}/components/ShuttleTarget.d.ts +1 -0
- package/{types → dist/types}/components/VirtualizedItem.d.ts +1 -0
- package/{types → dist/types}/components/VirtualizedList.d.ts +1 -0
- package/{types → dist/types}/components/VirtualizedSortableList.d.ts +1 -0
- package/{types → dist/types}/helper.d.ts +0 -0
- package/dist/types/index.d.ts +1 -0
- package/{types → dist/types}/tests/DSShuttle.events.test.d.ts +0 -0
- package/{types → dist/types}/tests/DSShuttle.test.d.ts +0 -0
- package/{types → dist/types}/tests/utils.d.ts +0 -0
- package/dist/types/updateShuttleStateFromProps.d.ts +3 -0
- package/{types → dist/types}/utils.d.ts +0 -0
- package/{types → dist/types}/withProviders.d.ts +1 -0
- package/package.json +97 -89
- package/cjs/AnimationState.js +0 -48
- package/cjs/DSShuttle.js +0 -223
- package/cjs/SearchState.js +0 -41
- package/cjs/Shuttle.actions.js +0 -137
- package/cjs/ShuttleContainer.js +0 -87
- package/cjs/ShuttleImpl.js +0 -311
- package/cjs/ShuttleRenderer.js +0 -139
- package/cjs/ShuttleState.js +0 -80
- package/cjs/animation/animationConfig.js +0 -81
- package/cjs/classedComponents.js +0 -71
- package/cjs/components/LoadingIndicator.js +0 -25
- package/cjs/components/OverflowList.js +0 -53
- package/cjs/components/ShuttleBreadcrumb.js +0 -42
- package/cjs/components/ShuttleInfiniteScrollIndicator.js +0 -39
- package/cjs/components/ShuttleListItem/ActionButtons.js +0 -55
- package/cjs/components/ShuttleListItem/ShuttleListItem.js +0 -85
- package/cjs/components/ShuttleListItem/ShuttleSourceListItem.js +0 -76
- package/cjs/components/ShuttleListItem/ShuttleTargetListItem.js +0 -57
- package/cjs/components/ShuttleListPanel.js +0 -31
- package/cjs/components/ShuttleSearchBox.js +0 -110
- package/cjs/components/ShuttleSource.js +0 -188
- package/cjs/components/ShuttleTarget.js +0 -116
- package/cjs/components/VirtualizedItem.js +0 -46
- package/cjs/components/VirtualizedList.js +0 -93
- package/cjs/components/VirtualizedSortableList.js +0 -41
- package/cjs/helper.js +0 -117
- package/cjs/index.js +0 -12
- package/cjs/updateShuttleStateFromProps.js +0 -94
- package/cjs/utils.js +0 -43
- package/cjs/withProviders.js +0 -29
- package/esm/DSShuttle.js +0 -213
- package/esm/SearchState.js +0 -35
- package/esm/Shuttle.actions.js +0 -123
- package/esm/ShuttleContainer.js +0 -80
- package/esm/ShuttleImpl.js +0 -304
- package/esm/ShuttleRenderer.js +0 -132
- package/esm/ShuttleState.js +0 -74
- package/esm/animation/animationConfig.js +0 -77
- package/esm/classedComponents.js +0 -51
- package/esm/components/LoadingIndicator.js +0 -18
- package/esm/components/OverflowList.js +0 -46
- package/esm/components/ShuttleBreadcrumb.js +0 -35
- package/esm/components/ShuttleInfiniteScrollIndicator.js +0 -32
- package/esm/components/ShuttleListItem/ActionButtons.js +0 -43
- package/esm/components/ShuttleListItem/ShuttleListItem.js +0 -76
- package/esm/components/ShuttleListItem/ShuttleSourceListItem.js +0 -68
- package/esm/components/ShuttleListItem/ShuttleTargetListItem.js +0 -49
- package/esm/components/ShuttleListPanel.js +0 -24
- package/esm/components/ShuttleSearchBox.js +0 -104
- package/esm/components/ShuttleSource.js +0 -179
- package/esm/components/ShuttleTarget.js +0 -107
- package/esm/components/VirtualizedItem.js +0 -40
- package/esm/components/VirtualizedList.js +0 -84
- package/esm/components/VirtualizedSortableList.js +0 -34
- package/esm/helper.js +0 -78
- package/esm/index.js +0 -2
- package/esm/updateShuttleStateFromProps.js +0 -88
- package/esm/utils.js +0 -18
- package/esm/withProviders.js +0 -22
- package/types/ShuttleImpl.d.ts +0 -3
- package/types/index.d.ts +0 -1
- 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": "
|
|
3
|
+
"version": "3.0.0-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Shuttle",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
"
|
|
145
|
-
"node": ">=
|
|
147
|
+
"pnpm": ">=6",
|
|
148
|
+
"node": ">=16"
|
|
146
149
|
},
|
|
147
150
|
"author": "ICE MT",
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
151
|
+
"jestSonar": {
|
|
152
|
+
"sonar56x": true,
|
|
153
|
+
"reportPath": "reports",
|
|
154
|
+
"reportFile": "tests.xml",
|
|
155
|
+
"indent": 4
|
|
153
156
|
},
|
|
154
157
|
"dependencies": {
|
|
155
|
-
"@elliemae/ds-
|
|
156
|
-
"@elliemae/ds-button": "
|
|
157
|
-
"@elliemae/ds-circular-progress-indicator": "
|
|
158
|
-
"@elliemae/ds-classnames": "
|
|
159
|
-
"@elliemae/ds-form": "
|
|
160
|
-
"@elliemae/ds-icons": "
|
|
161
|
-
"@elliemae/ds-indeterminate-progress-indicator": "
|
|
162
|
-
"@elliemae/ds-system": "
|
|
163
|
-
"@elliemae/ds-truncated-tooltip-text": "
|
|
164
|
-
"@elliemae/ds-utilities": "
|
|
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.
|
|
171
|
-
"react-window": "~1.8.
|
|
172
|
-
"react-window-infinite-loader": "~1.0.
|
|
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.
|
|
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
|
-
"
|
|
190
|
-
|
|
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
|
}
|
package/cjs/AnimationState.js
DELETED
|
@@ -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;
|
package/cjs/SearchState.js
DELETED
|
@@ -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;
|