@elliemae/ds-shuttle 3.27.0-next.1 → 3.27.0-next.12
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/index.js +4 -5
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +3 -5
- package/dist/esm/index.js.map +2 -2
- package/dist/types/index.d.ts +2 -1
- package/package.json +6 -144
- package/dist/cjs/AnimationState.js +0 -86
- package/dist/cjs/AnimationState.js.map +0 -7
- package/dist/cjs/DSShuttle.js +0 -225
- package/dist/cjs/DSShuttle.js.map +0 -7
- package/dist/cjs/SearchState.js +0 -61
- package/dist/cjs/SearchState.js.map +0 -7
- package/dist/cjs/Shuttle.actions.js +0 -127
- package/dist/cjs/Shuttle.actions.js.map +0 -7
- package/dist/cjs/ShuttleContainer.js +0 -96
- package/dist/cjs/ShuttleContainer.js.map +0 -7
- package/dist/cjs/ShuttleImpl.js +0 -232
- package/dist/cjs/ShuttleImpl.js.map +0 -7
- package/dist/cjs/ShuttleRenderer.js +0 -152
- package/dist/cjs/ShuttleRenderer.js.map +0 -7
- package/dist/cjs/ShuttleState.js +0 -85
- package/dist/cjs/ShuttleState.js.map +0 -7
- package/dist/cjs/animation/animationConfig.js +0 -79
- package/dist/cjs/animation/animationConfig.js.map +0 -7
- package/dist/cjs/classedComponents.js +0 -73
- package/dist/cjs/classedComponents.js.map +0 -7
- package/dist/cjs/components/LoadingIndicator.js +0 -48
- package/dist/cjs/components/LoadingIndicator.js.map +0 -7
- package/dist/cjs/components/OverflowList.js +0 -53
- package/dist/cjs/components/OverflowList.js.map +0 -7
- package/dist/cjs/components/ShuttleBreadcrumb.js +0 -54
- package/dist/cjs/components/ShuttleBreadcrumb.js.map +0 -7
- package/dist/cjs/components/ShuttleInfiniteScrollIndicator.js +0 -43
- package/dist/cjs/components/ShuttleInfiniteScrollIndicator.js.map +0 -7
- package/dist/cjs/components/ShuttleListItem/ActionButtons.js +0 -68
- package/dist/cjs/components/ShuttleListItem/ActionButtons.js.map +0 -7
- package/dist/cjs/components/ShuttleListItem/ShuttleListItem.js +0 -92
- package/dist/cjs/components/ShuttleListItem/ShuttleListItem.js.map +0 -7
- package/dist/cjs/components/ShuttleListItem/ShuttleSourceListItem.js +0 -99
- package/dist/cjs/components/ShuttleListItem/ShuttleSourceListItem.js.map +0 -7
- package/dist/cjs/components/ShuttleListItem/ShuttleTargetListItem.js +0 -82
- package/dist/cjs/components/ShuttleListItem/ShuttleTargetListItem.js.map +0 -7
- package/dist/cjs/components/ShuttleListPanel.js +0 -41
- package/dist/cjs/components/ShuttleListPanel.js.map +0 -7
- package/dist/cjs/components/ShuttleSearchBox.js +0 -102
- package/dist/cjs/components/ShuttleSearchBox.js.map +0 -7
- package/dist/cjs/components/ShuttleSource.js +0 -212
- package/dist/cjs/components/ShuttleSource.js.map +0 -7
- package/dist/cjs/components/ShuttleTarget.js +0 -121
- package/dist/cjs/components/ShuttleTarget.js.map +0 -7
- package/dist/cjs/components/VirtualizedItem.js +0 -52
- package/dist/cjs/components/VirtualizedItem.js.map +0 -7
- package/dist/cjs/components/VirtualizedList.js +0 -90
- package/dist/cjs/components/VirtualizedList.js.map +0 -7
- package/dist/cjs/components/VirtualizedSortableList.js +0 -43
- package/dist/cjs/components/VirtualizedSortableList.js.map +0 -7
- package/dist/cjs/helper.js +0 -92
- package/dist/cjs/helper.js.map +0 -7
- package/dist/cjs/tests/utils.js +0 -1219
- package/dist/cjs/tests/utils.js.map +0 -7
- package/dist/cjs/updateShuttleStateFromProps.js +0 -104
- package/dist/cjs/updateShuttleStateFromProps.js.map +0 -7
- package/dist/cjs/utils.js +0 -42
- package/dist/cjs/utils.js.map +0 -7
- package/dist/cjs/withProviders.js +0 -46
- package/dist/cjs/withProviders.js.map +0 -7
- package/dist/esm/AnimationState.js +0 -56
- package/dist/esm/AnimationState.js.map +0 -7
- package/dist/esm/DSShuttle.js +0 -195
- package/dist/esm/DSShuttle.js.map +0 -7
- package/dist/esm/SearchState.js +0 -31
- package/dist/esm/SearchState.js.map +0 -7
- package/dist/esm/Shuttle.actions.js +0 -97
- package/dist/esm/Shuttle.actions.js.map +0 -7
- package/dist/esm/ShuttleContainer.js +0 -66
- package/dist/esm/ShuttleContainer.js.map +0 -7
- package/dist/esm/ShuttleImpl.js +0 -216
- package/dist/esm/ShuttleImpl.js.map +0 -7
- package/dist/esm/ShuttleRenderer.js +0 -122
- package/dist/esm/ShuttleRenderer.js.map +0 -7
- package/dist/esm/ShuttleState.js +0 -55
- package/dist/esm/ShuttleState.js.map +0 -7
- package/dist/esm/animation/animationConfig.js +0 -49
- package/dist/esm/animation/animationConfig.js.map +0 -7
- package/dist/esm/classedComponents.js +0 -43
- package/dist/esm/classedComponents.js.map +0 -7
- package/dist/esm/components/LoadingIndicator.js +0 -18
- package/dist/esm/components/LoadingIndicator.js.map +0 -7
- package/dist/esm/components/OverflowList.js +0 -23
- package/dist/esm/components/OverflowList.js.map +0 -7
- package/dist/esm/components/ShuttleBreadcrumb.js +0 -24
- package/dist/esm/components/ShuttleBreadcrumb.js.map +0 -7
- package/dist/esm/components/ShuttleInfiniteScrollIndicator.js +0 -13
- package/dist/esm/components/ShuttleInfiniteScrollIndicator.js.map +0 -7
- package/dist/esm/components/ShuttleListItem/ActionButtons.js +0 -38
- package/dist/esm/components/ShuttleListItem/ActionButtons.js.map +0 -7
- package/dist/esm/components/ShuttleListItem/ShuttleListItem.js +0 -62
- package/dist/esm/components/ShuttleListItem/ShuttleListItem.js.map +0 -7
- package/dist/esm/components/ShuttleListItem/ShuttleSourceListItem.js +0 -69
- package/dist/esm/components/ShuttleListItem/ShuttleSourceListItem.js.map +0 -7
- package/dist/esm/components/ShuttleListItem/ShuttleTargetListItem.js +0 -52
- package/dist/esm/components/ShuttleListItem/ShuttleTargetListItem.js.map +0 -7
- package/dist/esm/components/ShuttleListPanel.js +0 -11
- package/dist/esm/components/ShuttleListPanel.js.map +0 -7
- package/dist/esm/components/ShuttleSearchBox.js +0 -72
- package/dist/esm/components/ShuttleSearchBox.js.map +0 -7
- package/dist/esm/components/ShuttleSource.js +0 -194
- package/dist/esm/components/ShuttleSource.js.map +0 -7
- package/dist/esm/components/ShuttleTarget.js +0 -102
- package/dist/esm/components/ShuttleTarget.js.map +0 -7
- package/dist/esm/components/VirtualizedItem.js +0 -22
- package/dist/esm/components/VirtualizedItem.js.map +0 -7
- package/dist/esm/components/VirtualizedList.js +0 -60
- package/dist/esm/components/VirtualizedList.js.map +0 -7
- package/dist/esm/components/VirtualizedSortableList.js +0 -13
- package/dist/esm/components/VirtualizedSortableList.js.map +0 -7
- package/dist/esm/helper.js +0 -62
- package/dist/esm/helper.js.map +0 -7
- package/dist/esm/tests/utils.js +0 -1189
- package/dist/esm/tests/utils.js.map +0 -7
- package/dist/esm/updateShuttleStateFromProps.js +0 -74
- package/dist/esm/updateShuttleStateFromProps.js.map +0 -7
- package/dist/esm/utils.js +0 -12
- package/dist/esm/utils.js.map +0 -7
- package/dist/esm/withProviders.js +0 -16
- package/dist/esm/withProviders.js.map +0 -7
- package/dist/types/AnimationState.d.ts +0 -27
- package/dist/types/DSShuttle.d.ts +0 -156
- package/dist/types/SearchState.d.ts +0 -23
- package/dist/types/Shuttle.actions.d.ts +0 -11
- package/dist/types/ShuttleContainer.d.ts +0 -2
- package/dist/types/ShuttleImpl.d.ts +0 -3
- package/dist/types/ShuttleRenderer.d.ts +0 -37
- package/dist/types/ShuttleState.d.ts +0 -54
- package/dist/types/animation/animationConfig.d.ts +0 -68
- package/dist/types/classedComponents.d.ts +0 -14
- package/dist/types/components/LoadingIndicator.d.ts +0 -3
- package/dist/types/components/OverflowList.d.ts +0 -7
- package/dist/types/components/ShuttleBreadcrumb.d.ts +0 -7
- package/dist/types/components/ShuttleInfiniteScrollIndicator.d.ts +0 -5
- package/dist/types/components/ShuttleListItem/ActionButtons.d.ts +0 -3
- package/dist/types/components/ShuttleListItem/ShuttleListItem.d.ts +0 -14
- package/dist/types/components/ShuttleListItem/ShuttleSourceListItem.d.ts +0 -13
- package/dist/types/components/ShuttleListItem/ShuttleTargetListItem.d.ts +0 -13
- package/dist/types/components/ShuttleListPanel.d.ts +0 -7
- package/dist/types/components/ShuttleSearchBox.d.ts +0 -22
- package/dist/types/components/ShuttleSource.d.ts +0 -53
- package/dist/types/components/ShuttleTarget.d.ts +0 -16
- package/dist/types/components/VirtualizedItem.d.ts +0 -4
- package/dist/types/components/VirtualizedList.d.ts +0 -12
- package/dist/types/components/VirtualizedSortableList.d.ts +0 -6
- package/dist/types/helper.d.ts +0 -16
- package/dist/types/tests/DSShuttle.events.test.d.ts +0 -1
- package/dist/types/tests/DSShuttle.test.d.ts +0 -1
- package/dist/types/tests/utils.d.ts +0 -116
- package/dist/types/updateShuttleStateFromProps.d.ts +0 -3
- package/dist/types/utils.d.ts +0 -2
- package/dist/types/withProviders.d.ts +0 -3
package/dist/cjs/index.js
CHANGED
|
@@ -17,6 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
21
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
22
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
23
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -28,12 +29,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
30
|
var src_exports = {};
|
|
30
31
|
__export(src_exports, {
|
|
31
|
-
|
|
32
|
-
DSShuttleWithSchema: () => import_DSShuttle.DSShuttleWithSchema,
|
|
33
|
-
default: () => import_DSShuttle.default,
|
|
34
|
-
utils: () => import_DSShuttle.utils
|
|
32
|
+
default: () => import_ds_legacy_shuttle.default
|
|
35
33
|
});
|
|
36
34
|
module.exports = __toCommonJS(src_exports);
|
|
37
35
|
var React = __toESM(require("react"));
|
|
38
|
-
|
|
36
|
+
__reExport(src_exports, require("@elliemae/ds-legacy-shuttle"), module.exports);
|
|
37
|
+
var import_ds_legacy_shuttle = __toESM(require("@elliemae/ds-legacy-shuttle"));
|
|
39
38
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["export * from '@elliemae/ds-legacy-shuttle';\nexport { default } from '@elliemae/ds-legacy-shuttle';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,wCAAd;AACA,+BAAwB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
2
|
+
export * from "@elliemae/ds-legacy-shuttle";
|
|
3
|
+
import { default as default2 } from "@elliemae/ds-legacy-shuttle";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
DSShuttleWithSchema,
|
|
6
|
-
default2 as default,
|
|
7
|
-
utils
|
|
5
|
+
default2 as default
|
|
8
6
|
};
|
|
9
7
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAAA,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from '@elliemae/ds-legacy-shuttle';\nexport { default } from '@elliemae/ds-legacy-shuttle';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,SAAS,WAAAA,gBAAe;",
|
|
6
6
|
"names": ["default"]
|
|
7
7
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '@elliemae/ds-legacy-shuttle';
|
|
2
|
+
export { default } from '@elliemae/ds-legacy-shuttle';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-shuttle",
|
|
3
|
-
"version": "3.27.0-next.
|
|
3
|
+
"version": "3.27.0-next.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Shuttle",
|
|
6
6
|
"files": [
|
|
@@ -13,126 +13,6 @@
|
|
|
13
13
|
".": {
|
|
14
14
|
"import": "./dist/esm/index.js",
|
|
15
15
|
"require": "./dist/cjs/index.js"
|
|
16
|
-
},
|
|
17
|
-
"./withProviders": {
|
|
18
|
-
"import": "./dist/esm/withProviders.js",
|
|
19
|
-
"require": "./dist/cjs/withProviders.js"
|
|
20
|
-
},
|
|
21
|
-
"./utils": {
|
|
22
|
-
"import": "./dist/esm/utils.js",
|
|
23
|
-
"require": "./dist/cjs/utils.js"
|
|
24
|
-
},
|
|
25
|
-
"./updateShuttleStateFromProps": {
|
|
26
|
-
"import": "./dist/esm/updateShuttleStateFromProps.js",
|
|
27
|
-
"require": "./dist/cjs/updateShuttleStateFromProps.js"
|
|
28
|
-
},
|
|
29
|
-
"./tests/utils": {
|
|
30
|
-
"import": "./dist/esm/tests/utils.js",
|
|
31
|
-
"require": "./dist/cjs/tests/utils.js"
|
|
32
|
-
},
|
|
33
|
-
"./ShuttleState": {
|
|
34
|
-
"import": "./dist/esm/ShuttleState.js",
|
|
35
|
-
"require": "./dist/cjs/ShuttleState.js"
|
|
36
|
-
},
|
|
37
|
-
"./ShuttleRenderer": {
|
|
38
|
-
"import": "./dist/esm/ShuttleRenderer.js",
|
|
39
|
-
"require": "./dist/cjs/ShuttleRenderer.js"
|
|
40
|
-
},
|
|
41
|
-
"./ShuttleImpl": {
|
|
42
|
-
"import": "./dist/esm/ShuttleImpl.js",
|
|
43
|
-
"require": "./dist/cjs/ShuttleImpl.js"
|
|
44
|
-
},
|
|
45
|
-
"./ShuttleContainer": {
|
|
46
|
-
"import": "./dist/esm/ShuttleContainer.js",
|
|
47
|
-
"require": "./dist/cjs/ShuttleContainer.js"
|
|
48
|
-
},
|
|
49
|
-
"./Shuttle.actions": {
|
|
50
|
-
"import": "./dist/esm/Shuttle.actions.js",
|
|
51
|
-
"require": "./dist/cjs/Shuttle.actions.js"
|
|
52
|
-
},
|
|
53
|
-
"./SearchState": {
|
|
54
|
-
"import": "./dist/esm/SearchState.js",
|
|
55
|
-
"require": "./dist/cjs/SearchState.js"
|
|
56
|
-
},
|
|
57
|
-
"./helper": {
|
|
58
|
-
"import": "./dist/esm/helper.js",
|
|
59
|
-
"require": "./dist/cjs/helper.js"
|
|
60
|
-
},
|
|
61
|
-
"./DSShuttle": {
|
|
62
|
-
"import": "./dist/esm/DSShuttle.js",
|
|
63
|
-
"require": "./dist/cjs/DSShuttle.js"
|
|
64
|
-
},
|
|
65
|
-
"./components/VirtualizedSortableList": {
|
|
66
|
-
"import": "./dist/esm/components/VirtualizedSortableList.js",
|
|
67
|
-
"require": "./dist/cjs/components/VirtualizedSortableList.js"
|
|
68
|
-
},
|
|
69
|
-
"./components/VirtualizedList": {
|
|
70
|
-
"import": "./dist/esm/components/VirtualizedList.js",
|
|
71
|
-
"require": "./dist/cjs/components/VirtualizedList.js"
|
|
72
|
-
},
|
|
73
|
-
"./components/VirtualizedItem": {
|
|
74
|
-
"import": "./dist/esm/components/VirtualizedItem.js",
|
|
75
|
-
"require": "./dist/cjs/components/VirtualizedItem.js"
|
|
76
|
-
},
|
|
77
|
-
"./components/ShuttleTarget": {
|
|
78
|
-
"import": "./dist/esm/components/ShuttleTarget.js",
|
|
79
|
-
"require": "./dist/cjs/components/ShuttleTarget.js"
|
|
80
|
-
},
|
|
81
|
-
"./components/ShuttleSource": {
|
|
82
|
-
"import": "./dist/esm/components/ShuttleSource.js",
|
|
83
|
-
"require": "./dist/cjs/components/ShuttleSource.js"
|
|
84
|
-
},
|
|
85
|
-
"./components/ShuttleSearchBox": {
|
|
86
|
-
"import": "./dist/esm/components/ShuttleSearchBox.js",
|
|
87
|
-
"require": "./dist/cjs/components/ShuttleSearchBox.js"
|
|
88
|
-
},
|
|
89
|
-
"./components/ShuttleListPanel": {
|
|
90
|
-
"import": "./dist/esm/components/ShuttleListPanel.js",
|
|
91
|
-
"require": "./dist/cjs/components/ShuttleListPanel.js"
|
|
92
|
-
},
|
|
93
|
-
"./components/ShuttleListItem/ShuttleTargetListItem": {
|
|
94
|
-
"import": "./dist/esm/components/ShuttleListItem/ShuttleTargetListItem.js",
|
|
95
|
-
"require": "./dist/cjs/components/ShuttleListItem/ShuttleTargetListItem.js"
|
|
96
|
-
},
|
|
97
|
-
"./components/ShuttleListItem/ShuttleSourceListItem": {
|
|
98
|
-
"import": "./dist/esm/components/ShuttleListItem/ShuttleSourceListItem.js",
|
|
99
|
-
"require": "./dist/cjs/components/ShuttleListItem/ShuttleSourceListItem.js"
|
|
100
|
-
},
|
|
101
|
-
"./components/ShuttleListItem/ShuttleListItem": {
|
|
102
|
-
"import": "./dist/esm/components/ShuttleListItem/ShuttleListItem.js",
|
|
103
|
-
"require": "./dist/cjs/components/ShuttleListItem/ShuttleListItem.js"
|
|
104
|
-
},
|
|
105
|
-
"./components/ShuttleListItem/ActionButtons": {
|
|
106
|
-
"import": "./dist/esm/components/ShuttleListItem/ActionButtons.js",
|
|
107
|
-
"require": "./dist/cjs/components/ShuttleListItem/ActionButtons.js"
|
|
108
|
-
},
|
|
109
|
-
"./components/ShuttleInfiniteScrollIndicator": {
|
|
110
|
-
"import": "./dist/esm/components/ShuttleInfiniteScrollIndicator.js",
|
|
111
|
-
"require": "./dist/cjs/components/ShuttleInfiniteScrollIndicator.js"
|
|
112
|
-
},
|
|
113
|
-
"./components/ShuttleBreadcrumb": {
|
|
114
|
-
"import": "./dist/esm/components/ShuttleBreadcrumb.js",
|
|
115
|
-
"require": "./dist/cjs/components/ShuttleBreadcrumb.js"
|
|
116
|
-
},
|
|
117
|
-
"./components/OverflowList": {
|
|
118
|
-
"import": "./dist/esm/components/OverflowList.js",
|
|
119
|
-
"require": "./dist/cjs/components/OverflowList.js"
|
|
120
|
-
},
|
|
121
|
-
"./components/LoadingIndicator": {
|
|
122
|
-
"import": "./dist/esm/components/LoadingIndicator.js",
|
|
123
|
-
"require": "./dist/cjs/components/LoadingIndicator.js"
|
|
124
|
-
},
|
|
125
|
-
"./classedComponents": {
|
|
126
|
-
"import": "./dist/esm/classedComponents.js",
|
|
127
|
-
"require": "./dist/cjs/classedComponents.js"
|
|
128
|
-
},
|
|
129
|
-
"./AnimationState": {
|
|
130
|
-
"import": "./dist/esm/AnimationState.js",
|
|
131
|
-
"require": "./dist/cjs/AnimationState.js"
|
|
132
|
-
},
|
|
133
|
-
"./animation/animationConfig": {
|
|
134
|
-
"import": "./dist/esm/animation/animationConfig.js",
|
|
135
|
-
"require": "./dist/cjs/animation/animationConfig.js"
|
|
136
16
|
}
|
|
137
17
|
},
|
|
138
18
|
"sideEffects": [
|
|
@@ -155,31 +35,13 @@
|
|
|
155
35
|
"indent": 4
|
|
156
36
|
},
|
|
157
37
|
"dependencies": {
|
|
158
|
-
"
|
|
159
|
-
"prop-types": "~15.8.1",
|
|
160
|
-
"react-sortable-hoc": "~1.9.1",
|
|
161
|
-
"react-spring": "~8.0.27",
|
|
162
|
-
"react-virtualized-auto-sizer": "1.0.6",
|
|
163
|
-
"react-window": "~1.8.8",
|
|
164
|
-
"react-window-infinite-loader": "~1.0.8",
|
|
165
|
-
"treetabular": "~3.6.0",
|
|
166
|
-
"@elliemae/ds-breadcrumb": "3.27.0-next.1",
|
|
167
|
-
"@elliemae/ds-circular-progress-indicator": "3.27.0-next.1",
|
|
168
|
-
"@elliemae/ds-button": "3.27.0-next.1",
|
|
169
|
-
"@elliemae/ds-form": "3.27.0-next.1",
|
|
170
|
-
"@elliemae/ds-classnames": "3.27.0-next.1",
|
|
171
|
-
"@elliemae/ds-indeterminate-progress-indicator": "3.27.0-next.1",
|
|
172
|
-
"@elliemae/ds-icons": "3.27.0-next.1",
|
|
173
|
-
"@elliemae/ds-props-helpers": "3.27.0-next.1",
|
|
174
|
-
"@elliemae/ds-system": "3.27.0-next.1",
|
|
175
|
-
"@elliemae/ds-truncated-tooltip-text": "3.27.0-next.1",
|
|
176
|
-
"@elliemae/ds-utilities": "3.27.0-next.1"
|
|
38
|
+
"@elliemae/ds-legacy-shuttle": "1.0.1"
|
|
177
39
|
},
|
|
178
40
|
"devDependencies": {
|
|
179
41
|
"@elliemae/pui-cli": "~9.0.0-next.31",
|
|
180
42
|
"redux": "~4.1.2",
|
|
181
43
|
"styled-components": "~5.3.9",
|
|
182
|
-
"@elliemae/ds-monorepo-devops": "3.27.0-next.
|
|
44
|
+
"@elliemae/ds-monorepo-devops": "3.27.0-next.12"
|
|
183
45
|
},
|
|
184
46
|
"peerDependencies": {
|
|
185
47
|
"lodash": "^4.17.21",
|
|
@@ -193,13 +55,13 @@
|
|
|
193
55
|
},
|
|
194
56
|
"scripts": {
|
|
195
57
|
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
196
|
-
"test": "
|
|
197
|
-
"lint": "
|
|
58
|
+
"test": "exit 0 | echo",
|
|
59
|
+
"lint": "exit 0 | echo",
|
|
198
60
|
"eslint:fix": "exit 0 | echo",
|
|
199
61
|
"dts": "exit 0 | echo",
|
|
200
62
|
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
201
63
|
"dev:build": "pnpm --filter {.}... build",
|
|
202
64
|
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
203
|
-
"checkDeps": "
|
|
65
|
+
"checkDeps": "exit 0 | echo"
|
|
204
66
|
}
|
|
205
67
|
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var AnimationState_exports = {};
|
|
30
|
-
__export(AnimationState_exports, {
|
|
31
|
-
AnimationState: () => AnimationState,
|
|
32
|
-
default: () => AnimationState_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(AnimationState_exports);
|
|
35
|
-
var React = __toESM(require("react"));
|
|
36
|
-
var import_react = require("react");
|
|
37
|
-
var import_constate = __toESM(require("constate"));
|
|
38
|
-
function useShuttleAnimationState() {
|
|
39
|
-
const [animationState, setAnimationState] = (0, import_react.useState)({
|
|
40
|
-
isMoving: false,
|
|
41
|
-
isMovingBack: false,
|
|
42
|
-
isDrillingDown: false
|
|
43
|
-
});
|
|
44
|
-
const reset = (0, import_react.useCallback)(
|
|
45
|
-
() => setAnimationState({
|
|
46
|
-
isMoving: false,
|
|
47
|
-
isMovingBack: false,
|
|
48
|
-
isDrillingDown: false
|
|
49
|
-
}),
|
|
50
|
-
[]
|
|
51
|
-
);
|
|
52
|
-
const move = (0, import_react.useCallback)(
|
|
53
|
-
() => setAnimationState({
|
|
54
|
-
isMovingBack: false,
|
|
55
|
-
isMoving: true,
|
|
56
|
-
isDrillingDown: false
|
|
57
|
-
}),
|
|
58
|
-
[]
|
|
59
|
-
);
|
|
60
|
-
const moveBack = (0, import_react.useCallback)(
|
|
61
|
-
() => setAnimationState({
|
|
62
|
-
isMovingBack: true,
|
|
63
|
-
isMoving: false,
|
|
64
|
-
isDrillingDown: false
|
|
65
|
-
}),
|
|
66
|
-
[]
|
|
67
|
-
);
|
|
68
|
-
const drilldown = (0, import_react.useCallback)(
|
|
69
|
-
() => setAnimationState({
|
|
70
|
-
isMovingBack: false,
|
|
71
|
-
isMoving: false,
|
|
72
|
-
isDrillingDown: true
|
|
73
|
-
}),
|
|
74
|
-
[]
|
|
75
|
-
);
|
|
76
|
-
return {
|
|
77
|
-
state: animationState,
|
|
78
|
-
setIsMoving: move,
|
|
79
|
-
setIsMovingBack: moveBack,
|
|
80
|
-
setIsDrillingDown: drilldown,
|
|
81
|
-
reset
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
const AnimationState = (0, import_constate.default)(useShuttleAnimationState, (value) => [value.state]);
|
|
85
|
-
var AnimationState_default = AnimationState;
|
|
86
|
-
//# sourceMappingURL=AnimationState.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/AnimationState.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { useCallback, useState } from 'react';\nimport createContainer from 'constate';\n\nfunction useShuttleAnimationState() {\n const [animationState, setAnimationState] = useState({\n isMoving: false,\n isMovingBack: false,\n isDrillingDown: false,\n });\n const reset = useCallback(\n () =>\n setAnimationState({\n isMoving: false,\n isMovingBack: false,\n isDrillingDown: false,\n }),\n [],\n );\n const move = useCallback(\n () =>\n setAnimationState({\n isMovingBack: false,\n isMoving: true,\n isDrillingDown: false,\n }),\n [],\n );\n\n const moveBack = useCallback(\n () =>\n setAnimationState({\n isMovingBack: true,\n isMoving: false,\n isDrillingDown: false,\n }),\n [],\n );\n\n const drilldown = useCallback(\n () =>\n setAnimationState({\n isMovingBack: false,\n isMoving: false,\n isDrillingDown: true,\n }),\n [],\n );\n\n return {\n state: animationState,\n setIsMoving: move,\n setIsMovingBack: moveBack,\n setIsDrillingDown: drilldown,\n reset,\n };\n}\n\nconst AnimationState = createContainer(useShuttleAnimationState, (value) => [value.state]);\n\nexport { AnimationState };\nexport default AnimationState;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAsC;AACtC,sBAA4B;AAE5B,SAAS,2BAA2B;AAClC,QAAM,CAAC,gBAAgB,iBAAiB,QAAI,uBAAS;AAAA,IACnD,UAAU;AAAA,IACV,cAAc;AAAA,IACd,gBAAgB;AAAA,EAClB,CAAC;AACD,QAAM,YAAQ;AAAA,IACZ,MACE,kBAAkB;AAAA,MAChB,UAAU;AAAA,MACV,cAAc;AAAA,MACd,gBAAgB;AAAA,IAClB,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AACA,QAAM,WAAO;AAAA,IACX,MACE,kBAAkB;AAAA,MAChB,cAAc;AAAA,MACd,UAAU;AAAA,MACV,gBAAgB;AAAA,IAClB,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AAEA,QAAM,eAAW;AAAA,IACf,MACE,kBAAkB;AAAA,MAChB,cAAc;AAAA,MACd,UAAU;AAAA,MACV,gBAAgB;AAAA,IAClB,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AAEA,QAAM,gBAAY;AAAA,IAChB,MACE,kBAAkB;AAAA,MAChB,cAAc;AAAA,MACd,UAAU;AAAA,MACV,gBAAgB;AAAA,IAClB,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AAEA,SAAO;AAAA,IACL,OAAO;AAAA,IACP,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB;AAAA,EACF;AACF;AAEA,MAAM,qBAAiB,gBAAAA,SAAgB,0BAA0B,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;AAGzF,IAAO,yBAAQ;",
|
|
6
|
-
"names": ["createContainer"]
|
|
7
|
-
}
|
package/dist/cjs/DSShuttle.js
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var DSShuttle_exports = {};
|
|
30
|
-
__export(DSShuttle_exports, {
|
|
31
|
-
DSShuttle: () => DSShuttle,
|
|
32
|
-
DSShuttleWithSchema: () => DSShuttleWithSchema,
|
|
33
|
-
default: () => DSShuttle_default,
|
|
34
|
-
utils: () => import_utils.default
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(DSShuttle_exports);
|
|
37
|
-
var React = __toESM(require("react"));
|
|
38
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
|
-
var import_lodash = require("lodash");
|
|
40
|
-
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
41
|
-
var import_ds_truncated_tooltip_text = require("@elliemae/ds-truncated-tooltip-text");
|
|
42
|
-
var import_ShuttleImpl = require("./ShuttleImpl.js");
|
|
43
|
-
var import_utils = __toESM(require("./utils.js"));
|
|
44
|
-
const noop = () => {
|
|
45
|
-
};
|
|
46
|
-
const DSShuttle = ({
|
|
47
|
-
containerProps = {},
|
|
48
|
-
idField = "id",
|
|
49
|
-
parentIdField = "parent",
|
|
50
|
-
showIcons = true,
|
|
51
|
-
items = [],
|
|
52
|
-
selectedItems = void 0,
|
|
53
|
-
// if defined it becomes controlled (v1)
|
|
54
|
-
// TODO make `nonSelectedItems` the default controlled behavior (v2)
|
|
55
|
-
nonSelectedItems = void 0,
|
|
56
|
-
onSearch = noop,
|
|
57
|
-
onSearchOpen = noop,
|
|
58
|
-
onSearchClose = noop,
|
|
59
|
-
onDrillDown = noop,
|
|
60
|
-
onDrillDownTarget = noop,
|
|
61
|
-
onTargetSortEnd = noop,
|
|
62
|
-
setGetStatus = noop,
|
|
63
|
-
targetSortable = true,
|
|
64
|
-
sourceEmptyMessage = "No Items Found",
|
|
65
|
-
sourceRootTitle = "Category",
|
|
66
|
-
targetEmptyMessage = "No Items Selected",
|
|
67
|
-
targetRootTitle = "Selected Items",
|
|
68
|
-
composeSourceItemProps = () => ({}),
|
|
69
|
-
composeTargetItemProps = () => ({}),
|
|
70
|
-
onAddToTarget = noop,
|
|
71
|
-
onAddCheckedItems = noop,
|
|
72
|
-
onRemoveFromTarget = noop,
|
|
73
|
-
onRemoveAllFromTarget = noop,
|
|
74
|
-
onChange = noop,
|
|
75
|
-
renderSourceCounter = noop,
|
|
76
|
-
renderTargetCounter = noop,
|
|
77
|
-
sourceClearItemsText = "CLEAR ALL",
|
|
78
|
-
targetClearItemsText = "CLEAR ALL",
|
|
79
|
-
searchPlaceholder = "Search field ID, name, etc.",
|
|
80
|
-
loadingSource = false,
|
|
81
|
-
loadingTarget = false,
|
|
82
|
-
onGetMoreItems = () => null,
|
|
83
|
-
hasNextPage = false,
|
|
84
|
-
moreItemsLoading
|
|
85
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_truncated_tooltip_text.TooltipTextProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
86
|
-
import_ShuttleImpl.ShuttleImpl,
|
|
87
|
-
{
|
|
88
|
-
composeSourceItemProps,
|
|
89
|
-
composeTargetItemProps,
|
|
90
|
-
containerProps,
|
|
91
|
-
idField,
|
|
92
|
-
items,
|
|
93
|
-
onAddCheckedItems,
|
|
94
|
-
onAddToTarget,
|
|
95
|
-
onChange,
|
|
96
|
-
onDrillDown,
|
|
97
|
-
nonSelectedItems,
|
|
98
|
-
onDrillDownTarget,
|
|
99
|
-
onRemoveAllFromTarget,
|
|
100
|
-
onRemoveFromTarget,
|
|
101
|
-
onSearch,
|
|
102
|
-
onSearchClose,
|
|
103
|
-
onSearchOpen,
|
|
104
|
-
onTargetSortEnd,
|
|
105
|
-
parentIdField,
|
|
106
|
-
renderSourceCounter,
|
|
107
|
-
renderTargetCounter,
|
|
108
|
-
searchPlaceholder,
|
|
109
|
-
selectedItems,
|
|
110
|
-
setGetStatus,
|
|
111
|
-
showIcons,
|
|
112
|
-
sourceClearItemsText,
|
|
113
|
-
sourceEmptyMessage,
|
|
114
|
-
sourceRootTitle,
|
|
115
|
-
targetClearItemsText,
|
|
116
|
-
targetEmptyMessage,
|
|
117
|
-
targetRootTitle,
|
|
118
|
-
targetSortable,
|
|
119
|
-
loadingSource,
|
|
120
|
-
loadingTarget,
|
|
121
|
-
onGetMoreItems: (0, import_lodash.debounce)((...args) => {
|
|
122
|
-
onGetMoreItems(...args);
|
|
123
|
-
}, 500),
|
|
124
|
-
moreItemsLoading,
|
|
125
|
-
hasNextPage
|
|
126
|
-
}
|
|
127
|
-
) });
|
|
128
|
-
const props = {
|
|
129
|
-
/** inject props to shuttle wrapper */
|
|
130
|
-
containerProps: import_ds_props_helpers.PropTypes.object.description("inject props to shuttle wrapper"),
|
|
131
|
-
/** The identifier field for the item object */
|
|
132
|
-
idField: import_ds_props_helpers.PropTypes.string.description("The identifier field for the item object"),
|
|
133
|
-
/** The parent identifier field for the item object */
|
|
134
|
-
parentIdField: import_ds_props_helpers.PropTypes.string.description("The parent identifier field for the item object"),
|
|
135
|
-
/** Whether to show the icons or not */
|
|
136
|
-
showIcons: import_ds_props_helpers.PropTypes.string.description("Whether to show the icons or not"),
|
|
137
|
-
/** List of items */
|
|
138
|
-
items: import_ds_props_helpers.PropTypes.arrayOf(
|
|
139
|
-
import_ds_props_helpers.PropTypes.shape({
|
|
140
|
-
disableDrillDown: import_ds_props_helpers.PropTypes.bool,
|
|
141
|
-
icon: import_ds_props_helpers.PropTypes.element,
|
|
142
|
-
name: import_ds_props_helpers.PropTypes.string,
|
|
143
|
-
readOnly: import_ds_props_helpers.PropTypes.bool,
|
|
144
|
-
description: import_ds_props_helpers.PropTypes.string
|
|
145
|
-
})
|
|
146
|
-
).description("list of items"),
|
|
147
|
-
/** Array of item ids that are selected. If passed the component behaves as controlled */
|
|
148
|
-
selectedItems: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.string).description(
|
|
149
|
-
"Array of item ids that are selected. If passed the component behaves as controlled"
|
|
150
|
-
),
|
|
151
|
-
/** Array of item ids that aren't selected. Should include ALL non selected items, even those not rendered */
|
|
152
|
-
nonSelectedItems: import_ds_props_helpers.PropTypes.arrayOf(import_ds_props_helpers.PropTypes.string).description(
|
|
153
|
-
"Array of item ids that aren't selected.. Should include ALL non selected items, even those not rendered"
|
|
154
|
-
),
|
|
155
|
-
/** Handler on search */
|
|
156
|
-
onSearch: import_ds_props_helpers.PropTypes.func.description("Handler on search"),
|
|
157
|
-
/** Handler when the searchbox is visible */
|
|
158
|
-
onSearchOpen: import_ds_props_helpers.PropTypes.func.description("Handler when the searchbox is visible"),
|
|
159
|
-
/** Handler when the searchbox is not visible */
|
|
160
|
-
onSearchClose: import_ds_props_helpers.PropTypes.func.description("Handler when the searchbox is not visible"),
|
|
161
|
-
/** Source handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction ("up" | "down") */
|
|
162
|
-
onDrillDown: import_ds_props_helpers.PropTypes.func.description(
|
|
163
|
-
'Source handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction ("up" | "down")'
|
|
164
|
-
),
|
|
165
|
-
/** Target handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction ("up" | "down") */
|
|
166
|
-
onDrillDownTarget: import_ds_props_helpers.PropTypes.func.description(
|
|
167
|
-
'Target handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction ("up" | "down")'
|
|
168
|
-
),
|
|
169
|
-
/** Target handler when user stops dragging an item */
|
|
170
|
-
onTargetSortEnd: import_ds_props_helpers.PropTypes.func.description("Target handler when user stops dragging an item"),
|
|
171
|
-
/** Callback function that gets more items for Infinite Scroll */
|
|
172
|
-
onGetMoreItems: import_ds_props_helpers.PropTypes.func.description("Callback function that gets more items for Infinite Scroll"),
|
|
173
|
-
/** Wheter there are mor items loading for Infinite Scroll */
|
|
174
|
-
moreItemsLoading: import_ds_props_helpers.PropTypes.bool.description("Wheter there are mor items loading for Infinite Scroll"),
|
|
175
|
-
/** Wheter there is a next page for Infinite Scroll, controls when to trigger onGetMoreItems */
|
|
176
|
-
hasNextPage: import_ds_props_helpers.PropTypes.bool.description(
|
|
177
|
-
"Wheter there is a next page for Infinite Scroll, controls when to trigger onGetMoreItems"
|
|
178
|
-
),
|
|
179
|
-
/** Function that takes as a parameter an internal getter for the state */
|
|
180
|
-
setGetStatus: import_ds_props_helpers.PropTypes.func.description("Function that takes as a parameter an internal getter for the state"),
|
|
181
|
-
/** Whether the target can be sortable with DnD */
|
|
182
|
-
targetSortable: import_ds_props_helpers.PropTypes.bool.description("Whether the target can be sortable with DnD"),
|
|
183
|
-
/** Handler when the searchbox is visible */
|
|
184
|
-
sourceRootTitle: import_ds_props_helpers.PropTypes.string.description("Handler when the searchbox is visible"),
|
|
185
|
-
/** Source text when there is no items */
|
|
186
|
-
sourceEmptyMessage: import_ds_props_helpers.PropTypes.string.description("Source text when there is no items"),
|
|
187
|
-
/** Target text when there is no items */
|
|
188
|
-
targetEmptyMessage: import_ds_props_helpers.PropTypes.string.description("Target text when there is no items"),
|
|
189
|
-
/** Target text for the first hierarchy item */
|
|
190
|
-
targetRootTitle: import_ds_props_helpers.PropTypes.string.description("Target text for the first hierarchy item"),
|
|
191
|
-
/** Function that allow to compose the item props in the source */
|
|
192
|
-
composeSourceItemProps: import_ds_props_helpers.PropTypes.func.description("Function that allow to compose the item props in the source"),
|
|
193
|
-
/** Function that allow to compose the item props in the target */
|
|
194
|
-
composeTargetItemProps: import_ds_props_helpers.PropTypes.func.description("Function that allow to compose the item props in the target"),
|
|
195
|
-
/** Handler when a users moves an item to the target */
|
|
196
|
-
onAddToTarget: import_ds_props_helpers.PropTypes.func.description("Handler when a users moves an item to the target"),
|
|
197
|
-
/** Handler when a users moves all the 'checked' items to the target */
|
|
198
|
-
onAddCheckedItems: import_ds_props_helpers.PropTypes.func.description("Handler when a users moves all the 'checked' items to the target"),
|
|
199
|
-
/** Handler when a user removes an item from the target */
|
|
200
|
-
onRemoveFromTarget: import_ds_props_helpers.PropTypes.func.description("Handler when a user removes an item from the target"),
|
|
201
|
-
/** Handler when a user removes all the items from the target */
|
|
202
|
-
onRemoveAllFromTarget: import_ds_props_helpers.PropTypes.func.description("Handler when a user removes all the items from the target"),
|
|
203
|
-
/** Handler for every change on the state */
|
|
204
|
-
onChange: import_ds_props_helpers.PropTypes.func.description("Handler for every change on the state"),
|
|
205
|
-
/** Function that returns an element for the source counter */
|
|
206
|
-
renderSourceCounter: import_ds_props_helpers.PropTypes.func.description("Function that returns an element for the source counter"),
|
|
207
|
-
/** Function that returns an element for the target counter */
|
|
208
|
-
renderTargetCounter: import_ds_props_helpers.PropTypes.func.description("Function that returns an element for the target counter"),
|
|
209
|
-
/** Source text for the clear items button */
|
|
210
|
-
sourceClearItemsText: import_ds_props_helpers.PropTypes.string.description("Source text for the clear items button"),
|
|
211
|
-
/** Target text for the clear items button */
|
|
212
|
-
targetClearItemsText: import_ds_props_helpers.PropTypes.string.description("Target text for the clear items button"),
|
|
213
|
-
/** Searchbox placeholder */
|
|
214
|
-
searchPlaceholder: import_ds_props_helpers.PropTypes.string.description("Searchbox placeholder"),
|
|
215
|
-
/** Displays loading indicator on source section */
|
|
216
|
-
loadingSource: import_ds_props_helpers.PropTypes.bool.description("Displays loading indicator on source section"),
|
|
217
|
-
/** Displays loading indicator on target section */
|
|
218
|
-
loadingTarget: import_ds_props_helpers.PropTypes.bool.description("Displays loading indicator on target section")
|
|
219
|
-
};
|
|
220
|
-
DSShuttle.propTypes = props;
|
|
221
|
-
DSShuttle.displayName = "DSShuttle";
|
|
222
|
-
const DSShuttleWithSchema = (0, import_ds_props_helpers.describe)(DSShuttle);
|
|
223
|
-
DSShuttleWithSchema.propTypes = props;
|
|
224
|
-
var DSShuttle_default = DSShuttle;
|
|
225
|
-
//# sourceMappingURL=DSShuttle.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/DSShuttle.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport React from 'react';\nimport { debounce } from 'lodash';\nimport { describe, PropTypes } from '@elliemae/ds-props-helpers';\nimport { TooltipTextProvider } from '@elliemae/ds-truncated-tooltip-text';\nimport { ShuttleImpl } from './ShuttleImpl.js';\nimport utils from './utils.js';\n\nconst noop = () => {};\n\nconst DSShuttle = ({\n containerProps = {},\n idField = 'id',\n parentIdField = 'parent',\n showIcons = true,\n items = [],\n selectedItems = undefined, // if defined it becomes controlled (v1)\n // TODO make `nonSelectedItems` the default controlled behavior (v2)\n nonSelectedItems = undefined,\n onSearch = noop,\n onSearchOpen = noop,\n onSearchClose = noop,\n onDrillDown = noop,\n onDrillDownTarget = noop,\n onTargetSortEnd = noop,\n setGetStatus = noop,\n targetSortable = true,\n sourceEmptyMessage = 'No Items Found',\n sourceRootTitle = 'Category',\n targetEmptyMessage = 'No Items Selected',\n targetRootTitle = 'Selected Items',\n composeSourceItemProps = () => ({}),\n composeTargetItemProps = () => ({}),\n onAddToTarget = noop,\n onAddCheckedItems = noop,\n onRemoveFromTarget = noop,\n onRemoveAllFromTarget = noop,\n onChange = noop,\n renderSourceCounter = noop,\n renderTargetCounter = noop,\n sourceClearItemsText = 'CLEAR ALL',\n targetClearItemsText = 'CLEAR ALL',\n searchPlaceholder = 'Search field ID, name, etc.',\n loadingSource = false,\n loadingTarget = false,\n onGetMoreItems = () => null,\n hasNextPage = false,\n moreItemsLoading,\n}) => (\n <TooltipTextProvider>\n <ShuttleImpl\n composeSourceItemProps={composeSourceItemProps}\n composeTargetItemProps={composeTargetItemProps}\n containerProps={containerProps}\n idField={idField}\n items={items}\n onAddCheckedItems={onAddCheckedItems}\n onAddToTarget={onAddToTarget}\n onChange={onChange}\n onDrillDown={onDrillDown}\n nonSelectedItems={nonSelectedItems}\n onDrillDownTarget={onDrillDownTarget}\n onRemoveAllFromTarget={onRemoveAllFromTarget}\n onRemoveFromTarget={onRemoveFromTarget}\n onSearch={onSearch}\n onSearchClose={onSearchClose}\n onSearchOpen={onSearchOpen}\n onTargetSortEnd={onTargetSortEnd}\n parentIdField={parentIdField}\n renderSourceCounter={renderSourceCounter}\n renderTargetCounter={renderTargetCounter}\n searchPlaceholder={searchPlaceholder}\n selectedItems={selectedItems}\n setGetStatus={setGetStatus}\n showIcons={showIcons}\n sourceClearItemsText={sourceClearItemsText}\n sourceEmptyMessage={sourceEmptyMessage}\n sourceRootTitle={sourceRootTitle}\n targetClearItemsText={targetClearItemsText}\n targetEmptyMessage={targetEmptyMessage}\n targetRootTitle={targetRootTitle}\n targetSortable={targetSortable}\n loadingSource={loadingSource}\n loadingTarget={loadingTarget}\n onGetMoreItems={debounce((...args) => {\n onGetMoreItems(...args);\n }, 500)}\n moreItemsLoading={moreItemsLoading}\n hasNextPage={hasNextPage}\n />\n </TooltipTextProvider>\n);\n\nconst props = {\n /** inject props to shuttle wrapper */\n containerProps: PropTypes.object.description('inject props to shuttle wrapper'),\n /** The identifier field for the item object */\n idField: PropTypes.string.description('The identifier field for the item object'),\n /** The parent identifier field for the item object */\n parentIdField: PropTypes.string.description('The parent identifier field for the item object'),\n /** Whether to show the icons or not */\n showIcons: PropTypes.string.description('Whether to show the icons or not'),\n /** List of items */\n items: PropTypes.arrayOf(\n PropTypes.shape({\n disableDrillDown: PropTypes.bool,\n icon: PropTypes.element,\n name: PropTypes.string,\n readOnly: PropTypes.bool,\n description: PropTypes.string,\n }),\n ).description('list of items'),\n /** Array of item ids that are selected. If passed the component behaves as controlled */\n selectedItems: PropTypes.arrayOf(PropTypes.string).description(\n 'Array of item ids that are selected. If passed the component behaves as controlled',\n ),\n /** Array of item ids that aren't selected. Should include ALL non selected items, even those not rendered */\n nonSelectedItems: PropTypes.arrayOf(PropTypes.string).description(\n \"Array of item ids that aren't selected.. Should include ALL non selected items, even those not rendered\",\n ),\n /** Handler on search */\n onSearch: PropTypes.func.description('Handler on search'),\n /** Handler when the searchbox is visible */\n onSearchOpen: PropTypes.func.description('Handler when the searchbox is visible'),\n /** Handler when the searchbox is not visible */\n onSearchClose: PropTypes.func.description('Handler when the searchbox is not visible'),\n /** Source handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction (\"up\" | \"down\") */\n onDrillDown: PropTypes.func.description(\n 'Source handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction (\"up\" | \"down\")',\n ),\n /** Target handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction (\"up\" | \"down\") */\n onDrillDownTarget: PropTypes.func.description(\n 'Target handler when a user navigates to a level down on the nested structure. First param: item drilled. Second param: direction (\"up\" | \"down\")',\n ),\n /** Target handler when user stops dragging an item */\n onTargetSortEnd: PropTypes.func.description('Target handler when user stops dragging an item'),\n /** Callback function that gets more items for Infinite Scroll */\n onGetMoreItems: PropTypes.func.description('Callback function that gets more items for Infinite Scroll'),\n /** Wheter there are mor items loading for Infinite Scroll */\n moreItemsLoading: PropTypes.bool.description('Wheter there are mor items loading for Infinite Scroll'),\n /** Wheter there is a next page for Infinite Scroll, controls when to trigger onGetMoreItems */\n hasNextPage: PropTypes.bool.description(\n 'Wheter there is a next page for Infinite Scroll, controls when to trigger onGetMoreItems',\n ),\n /** Function that takes as a parameter an internal getter for the state */\n setGetStatus: PropTypes.func.description('Function that takes as a parameter an internal getter for the state'),\n /** Whether the target can be sortable with DnD */\n targetSortable: PropTypes.bool.description('Whether the target can be sortable with DnD'),\n /** Handler when the searchbox is visible */\n sourceRootTitle: PropTypes.string.description('Handler when the searchbox is visible'),\n /** Source text when there is no items */\n sourceEmptyMessage: PropTypes.string.description('Source text when there is no items'),\n /** Target text when there is no items */\n targetEmptyMessage: PropTypes.string.description('Target text when there is no items'),\n /** Target text for the first hierarchy item */\n targetRootTitle: PropTypes.string.description('Target text for the first hierarchy item'),\n /** Function that allow to compose the item props in the source */\n composeSourceItemProps: PropTypes.func.description('Function that allow to compose the item props in the source'),\n /** Function that allow to compose the item props in the target */\n composeTargetItemProps: PropTypes.func.description('Function that allow to compose the item props in the target'),\n /** Handler when a users moves an item to the target */\n onAddToTarget: PropTypes.func.description('Handler when a users moves an item to the target'),\n /** Handler when a users moves all the 'checked' items to the target */\n onAddCheckedItems: PropTypes.func.description(\"Handler when a users moves all the 'checked' items to the target\"),\n /** Handler when a user removes an item from the target */\n onRemoveFromTarget: PropTypes.func.description('Handler when a user removes an item from the target'),\n /** Handler when a user removes all the items from the target */\n onRemoveAllFromTarget: PropTypes.func.description('Handler when a user removes all the items from the target'),\n /** Handler for every change on the state */\n onChange: PropTypes.func.description('Handler for every change on the state'),\n /** Function that returns an element for the source counter */\n renderSourceCounter: PropTypes.func.description('Function that returns an element for the source counter'),\n /** Function that returns an element for the target counter */\n renderTargetCounter: PropTypes.func.description('Function that returns an element for the target counter'),\n /** Source text for the clear items button */\n sourceClearItemsText: PropTypes.string.description('Source text for the clear items button'),\n /** Target text for the clear items button */\n targetClearItemsText: PropTypes.string.description('Target text for the clear items button'),\n /** Searchbox placeholder */\n searchPlaceholder: PropTypes.string.description('Searchbox placeholder'),\n /** Displays loading indicator on source section */\n loadingSource: PropTypes.bool.description('Displays loading indicator on source section'),\n /** Displays loading indicator on target section */\n loadingTarget: PropTypes.bool.description('Displays loading indicator on target section'),\n};\n\nDSShuttle.propTypes = props;\nDSShuttle.displayName = 'DSShuttle';\nconst DSShuttleWithSchema = describe(DSShuttle);\nDSShuttleWithSchema.propTypes = props;\n\nexport { utils, DSShuttleWithSchema, DSShuttle };\n\nexport default DSShuttle;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "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",
|
|
6
|
-
"names": ["utils"]
|
|
7
|
-
}
|