@voplus/morpho-csp 6.1.46 → 6.1.48

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 (51) hide show
  1. package/es/components/CorporateUnitSelectDialog/index.js +18 -4
  2. package/es/components/CorporateUnitSelectDialog/index.js.map +1 -1
  3. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js +1 -1
  4. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/ImportRelative.js.map +1 -1
  5. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.js +1 -1
  6. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/items/Search.js.map +1 -1
  7. package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.less +0 -11
  8. package/es/modules/corporate/clda/controls/CLDAMenu/items/DownloadLegal.js +1 -1
  9. package/es/modules/corporate/clda/controls/CLDAMenu/items/DownloadLegal.js.map +1 -1
  10. package/es/modules/corporate/clda/controls/CLDAMenu/items/GenerateLegalEnvelope.js +1 -1
  11. package/es/modules/corporate/clda/controls/CLDAMenu/items/GenerateLegalEnvelope.js.map +1 -1
  12. package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/items/DownloadFiles.js +1 -1
  13. package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/items/DownloadFiles.js.map +1 -1
  14. package/es/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.less +0 -12
  15. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Download.js +1 -1
  16. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Download.js.map +1 -1
  17. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.js +1 -1
  18. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToShareholder.js.map +1 -1
  19. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js +1 -1
  20. package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/SendToSignee.js.map +1 -1
  21. package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.less +0 -18
  22. package/es/modules/self-registration/incorporation-clda/pages/CLDADefaultView/index.less +0 -16
  23. package/package.json +1 -1
  24. package/es/components/CorporateUnitSortableTree/index.d.ts +0 -10
  25. package/es/components/CorporateUnitSortableTree/index.js +0 -87
  26. package/es/components/CorporateUnitSortableTree/index.js.map +0 -1
  27. package/es/components/CorporateUnitSortableTree/state.d.ts +0 -62
  28. package/es/components/CorporateUnitSortableTree/state.js +0 -223
  29. package/es/components/CorporateUnitSortableTree/state.js.map +0 -1
  30. package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.d.ts +0 -3
  31. package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.js +0 -22
  32. package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/index.js.map +0 -1
  33. package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.d.ts +0 -4
  34. package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js +0 -84
  35. package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +0 -1
  36. package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/node-content-renderer.less +0 -342
  37. package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.d.ts +0 -3
  38. package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js +0 -21
  39. package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.js.map +0 -1
  40. package/es/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.less +0 -4
  41. package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.d.ts +0 -4
  42. package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.js +0 -23
  43. package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.js.map +0 -1
  44. package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.d.ts +0 -3
  45. package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.js +0 -58
  46. package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.js.map +0 -1
  47. package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.less +0 -45
  48. package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.d.ts +0 -3
  49. package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js +0 -73
  50. package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.js.map +0 -1
  51. package/es/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.less +0 -12
@@ -1,342 +0,0 @@
1
- @import "~@voplus/morpho-theme/styles/index.less";
2
-
3
- :global {
4
- .explorer-theme-node {
5
- border-radius: 5px;
6
- padding: 5px 0;
7
-
8
- &:hover {
9
- background: #f0f7ff;
10
- }
11
-
12
- &.active {
13
- background: #f0f7ff;
14
-
15
- .file-document-name {
16
- .file-name {
17
- color: @purple-primary-color;
18
- }
19
-
20
- .file-type {
21
- > svg {
22
- color: @purple-primary-color;
23
- }
24
- }
25
- }
26
- }
27
-
28
- :global {
29
- .doc-spin {
30
- z-index: 2;
31
- position: absolute;
32
- top: 50%;
33
- width: 30px;
34
- height: 30px;
35
- display: flex;
36
- align-items: center;
37
- justify-content: center;
38
- transform: translate3d(-50%, -50%, 0);
39
- }
40
- .collapseButton,
41
- .expandButton {
42
- appearance: none;
43
- border: none;
44
- background: transparent;
45
- padding: 0;
46
- z-index: 2;
47
- position: absolute;
48
- top: 45%;
49
- width: 30px;
50
- height: 30px;
51
- transform: translate3d(-50%, -50%, 0);
52
- cursor: pointer;
53
- .arrows {
54
- display: inline-block;
55
- font-size: 10px;
56
- transform: translate3d(50%, 0, 0) rotateZ(90deg);
57
- }
58
- &:focus {
59
- outline: none;
60
- }
61
- }
62
- .expandButton .arrows {
63
- display: inline-block;
64
- font-size: 10px;
65
- transform: translate3d(50%, 0, 0);
66
- }
67
- .rowWrapper {
68
- height: 100%;
69
- box-sizing: border-box;
70
- }
71
- .rowWrapperDragDisabled {
72
- cursor: default;
73
- }
74
- .row {
75
- height: 100%;
76
- white-space: nowrap;
77
- display: flex;
78
- position: relative;
79
-
80
- & > * {
81
- box-sizing: border-box;
82
- }
83
- }
84
-
85
- /**
86
- * The outline of where the element will go if dropped, displayed while dragging
87
- */
88
- .rowLandingPad {
89
- border: none;
90
- box-shadow: none;
91
- outline: none;
92
-
93
- * {
94
- opacity: 0 !important;
95
- }
96
-
97
- &::before {
98
- background-color: lightblue;
99
- border: 2px dotted black;
100
- content: "";
101
- position: absolute;
102
- top: 0;
103
- right: 0;
104
- bottom: 0;
105
- left: 0;
106
- z-index: -1;
107
- }
108
- }
109
-
110
- /**
111
- * Alternate appearance of the landing pad when the dragged location is invalid
112
- */
113
- .rowCancelPad {
114
- // @extend .rowLandingPad;
115
-
116
- &::before {
117
- background-color: #e6a8ad;
118
- }
119
- }
120
-
121
- /**
122
- * Nodes matching the search conditions are highlighted
123
- */
124
- .rowSearchMatch {
125
- box-shadow: inset 0 -7px 7px -3px #0080ff;
126
- }
127
-
128
- /**
129
- * The node that matches the search conditions and is currently focused
130
- */
131
- .rowSearchFocus {
132
- box-shadow: inset 0 -7px 7px -3px #fc6421;
133
- }
134
-
135
- // %rowItem {
136
- // display: inline-block;
137
- // vertical-align: middle;
138
- // }
139
-
140
- .rowContents {
141
- // @extend %rowItem;
142
- position: relative;
143
- height: 100%;
144
- flex: 1 0 auto;
145
- display: flex;
146
- align-items: center;
147
- justify-content: space-between;
148
- }
149
-
150
- .rowLabel {
151
- // @extend %rowItem;
152
- display: flex;
153
- flex: 0 1 auto;
154
- padding-right: 20px;
155
- // .doc-spin{
156
- // padding-right: 6px;
157
- // }
158
- }
159
-
160
- .file-document-name {
161
- display: flex;
162
- align-items: center;
163
-
164
- .file-type {
165
- display: flex;
166
- align-items: center;
167
- width: 22px;
168
-
169
- > svg {
170
- height: 13px;
171
- color: #5d5d5d;
172
- }
173
- }
174
-
175
- .file-name {
176
- z-index: 100;
177
- cursor: pointer;
178
- display: inline-block;
179
- color: #5d5d5d;
180
- font-weight: bold;
181
- font-size: 14px;
182
- line-height: 19px;
183
- }
184
- }
185
-
186
- // .rowToolbar {
187
- // // @extend %rowItem;
188
- // flex: 0 1 auto;
189
- // display: flex;
190
- // }
191
-
192
- .toolbarButton {
193
- // @extend %rowItem;
194
- }
195
-
196
- /**
197
- * Line for under a node with children
198
- */
199
- .lineChildren {
200
- height: 100%;
201
- display: inline-block;
202
- }
203
-
204
- /* ==========================================================================
205
- Scaffold
206
-
207
- Line-overlaid blocks used for showing the tree structure
208
- ========================================================================== */
209
- .lineBlock {
210
- height: 100%;
211
- position: relative;
212
- display: inline-block;
213
- flex: 0 0 auto;
214
- }
215
-
216
- .absoluteLineBlock {
217
- // @extend .lineBlock;
218
- position: absolute;
219
- top: 0;
220
- }
221
-
222
- /* Highlight line for pointing to dragged row destination
223
- ========================================================================== */
224
- // $highlight-color: #36c2f6;
225
- // $highlight-line-size: 6px; // Make it an even number for clean rendering
226
-
227
- /**
228
- * +--+--+
229
- * | | |
230
- * | | |
231
- * | | |
232
- * +--+--+
233
- */
234
- .highlightLineVertical {
235
- z-index: 3;
236
-
237
- &::before {
238
- position: absolute;
239
- content: "";
240
- // background-color: $highlight-color;
241
- // width: $highlight-line-size;
242
- // margin-left: $highlight-line-size / -2;
243
- left: 50%;
244
- top: 0;
245
- height: 100%;
246
- }
247
-
248
- // @keyframes arrow-pulse {
249
- // $base-multiplier: 10;
250
- // 0% {
251
- // transform: translate(0, 0);
252
- // opacity: 0;
253
- // }
254
- // 30% {
255
- // transform: translate(0, 30% * $base-multiplier);
256
- // opacity: 1;
257
- // }
258
- // 70% {
259
- // transform: translate(0, 70% * $base-multiplier);
260
- // opacity: 1;
261
- // }
262
- // 100% {
263
- // transform: translate(0, 100% * $base-multiplier);
264
- // opacity: 0;
265
- // }
266
- // }
267
-
268
- &::after {
269
- content: "";
270
- position: absolute;
271
- height: 0;
272
- // margin-left: -1 * $highlight-line-size / 2;
273
- left: 50%;
274
- top: 0;
275
- // border-left: $highlight-line-size / 2 solid transparent;
276
- // border-right: $highlight-line-size / 2 solid transparent;
277
- // border-top: $highlight-line-size / 2 solid white;
278
- animation: arrow-pulse 1s infinite linear both;
279
- }
280
- }
281
-
282
- /**
283
- * +-----+
284
- * | |
285
- * | +--+
286
- * | | |
287
- * +--+--+
288
- */
289
- .highlightTopLeftCorner {
290
- &::before {
291
- z-index: 3;
292
- content: "";
293
- position: absolute;
294
- // border-top: solid $highlight-line-size $highlight-color;
295
- // border-left: solid $highlight-line-size $highlight-color;
296
- box-sizing: border-box;
297
- // height: calc(50% + #{$highlight-line-size / 2});
298
- // top: 50%;
299
- // margin-top: $highlight-line-size / -2;
300
- // right: 0;
301
- // width: calc(50% + #{$highlight-line-size / 2});
302
- }
303
- }
304
-
305
- /**
306
- * +--+--+
307
- * | | |
308
- * | | |
309
- * | +->|
310
- * +-----+
311
- */
312
- .highlightBottomLeftCorner {
313
- // $arrow-size: 7px;
314
- z-index: 3;
315
-
316
- &::before {
317
- content: "";
318
- position: absolute;
319
- // border-bottom: solid $highlight-line-size $highlight-color;
320
- // border-left: solid $highlight-line-size $highlight-color;
321
- box-sizing: border-box;
322
- // height: calc(100% + #{$highlight-line-size / 2});
323
- // top: 0;
324
- // right: $arrow-size;
325
- // width: calc(50% - #{$arrow-size - ($highlight-line-size / 2)});
326
- }
327
-
328
- &::after {
329
- content: "";
330
- position: absolute;
331
- height: 0;
332
- right: 0;
333
- top: 100%;
334
- // margin-top: -1 * $arrow-size;
335
- // border-top: $arrow-size solid transparent;
336
- // border-bottom: $arrow-size solid transparent;
337
- // border-left: $arrow-size solid $highlight-color;
338
- }
339
- }
340
- }
341
- }
342
- }
@@ -1,3 +0,0 @@
1
- import { TreeRenderer } from "@voplus/react-sortable-tree";
2
- declare const FileThemeTreeNodeRenderer: TreeRenderer;
3
- export default FileThemeTreeNodeRenderer;
@@ -1,21 +0,0 @@
1
- import React, { Children, cloneElement } from "react";
2
- import styles from "./tree-node-renderer.less";
3
- const FileThemeTreeNodeRenderer = (props) => {
4
- const { children, listIndex, swapFrom, swapLength, swapDepth, scaffoldBlockPxWidth, lowerSiblingCounts, connectDropTarget, isOver, draggedNode, canDrop, treeIndex, treeId, // Delete from otherProps
5
- getPrevRow, // Delete from otherProps
6
- node, // Delete from otherProps
7
- path, // Delete from otherProps
8
- rowDirection, ...otherProps } = props;
9
- return connectDropTarget(React.createElement("div", { ...otherProps, className: styles.node }, Children.map(children, (child) => cloneElement(child, {
10
- isOver,
11
- canDrop,
12
- draggedNode,
13
- lowerSiblingCounts,
14
- listIndex,
15
- swapFrom,
16
- swapLength,
17
- swapDepth,
18
- }))));
19
- };
20
- export default FileThemeTreeNodeRenderer;
21
- //# sourceMappingURL=tree-node-renderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tree-node-renderer.js","sourceRoot":"","sources":["../../../../../src/components/CorporateUnitSortableTree/themes/FileExplorerTheme/tree-node-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAa,YAAY,EAAE,MAAM,OAAO,CAAC;AAIjE,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAE/C,MAAM,yBAAyB,GAAiB,CAAC,KAAwB,EAAE,EAAE;IAC5E,MAAM,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,OAAO,EACP,SAAS,EACT,MAAM,EAAE,yBAAyB;IACjC,UAAU,EAAE,yBAAyB;IACrC,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,yBAAyB;IAC/B,YAAY,EACZ,GAAG,UAAU,EACb,GAAG,KAAK,CAAC;IACV,OAAO,iBAAiB,CACvB,gCAAS,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,IACzC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CACjC,YAAY,CAAC,KAAK,EAAE;QACnB,MAAM;QACN,OAAO;QACP,WAAW;QACX,kBAAkB;QAClB,SAAS;QACT,QAAQ;QACR,UAAU;QACV,SAAS;KACT,CAAC,CACF,CACI,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1,4 +0,0 @@
1
- .node {
2
- min-width: 100%;
3
- position: relative;
4
- }
@@ -1,4 +0,0 @@
1
- import "@voplus/react-sortable-tree/style.css";
2
- import { ThemeProps } from "@voplus/react-sortable-tree";
3
- declare const SortableTreeUnitTheme: ThemeProps;
4
- export default SortableTreeUnitTheme;
@@ -1,23 +0,0 @@
1
- // Can override the following:
2
- //
3
- // style: PropTypes.shape({}),
4
- // innerStyle: PropTypes.shape({}),
5
- // reactVirtualizedListProps: PropTypes.shape({}),
6
- // scaffoldBlockPxWidth: PropTypes.number,
7
- // slideRegionSize: PropTypes.number,
8
- // rowHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
9
- // treeNodeRenderer: PropTypes.func,
10
- // nodeContentRenderer: PropTypes.func,
11
- // placeholderRenderer: PropTypes.func,
12
- import "@voplus/react-sortable-tree/style.css";
13
- import nodeContentRenderer from "./node-content-renderer";
14
- import treeNodeRenderer from "./tree-node-renderer";
15
- const SortableTreeUnitTheme = {
16
- nodeContentRenderer,
17
- treeNodeRenderer,
18
- scaffoldBlockPxWidth: 44,
19
- rowHeight: 85,
20
- slideRegionSize: 50,
21
- };
22
- export default SortableTreeUnitTheme;
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/index.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,8BAA8B;AAC9B,mCAAmC;AACnC,kDAAkD;AAClD,0CAA0C;AAC1C,qCAAqC;AACrC,sEAAsE;AACtE,oCAAoC;AACpC,uCAAuC;AACvC,uCAAuC;AAEvC,OAAO,uCAAuC,CAAC;AAG/C,OAAO,mBAAmB,MAAM,yBAAyB,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AAEpD,MAAM,qBAAqB,GAAe;IACzC,mBAAmB;IACnB,gBAAgB;IAChB,oBAAoB,EAAE,EAAE;IACxB,SAAS,EAAE,EAAE;IACb,eAAe,EAAE,EAAE;CACnB,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { NodeRenderer } from "@voplus/react-sortable-tree";
2
- declare const FileThemeNodeContentRenderer: NodeRenderer;
3
- export default FileThemeNodeContentRenderer;
@@ -1,58 +0,0 @@
1
- import React, { useState } from "react";
2
- import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
3
- import { Spin } from "antd";
4
- import UnitItem from "@voplus/morpho-org/es/components/UnitItem";
5
- import classnames from "classnames";
6
- import { faBars } from "@fortawesome/pro-light-svg-icons";
7
- import styles from "./node-content-renderer.less";
8
- /**
9
- * Check if a node is a descendant of another node.
10
- *
11
- * @param {!Object} older - Potential ancestor of younger node
12
- * @param {!Object} younger - Potential descendant of older node
13
- *
14
- * @return {boolean}
15
- */
16
- function isDescendant(older, younger) {
17
- return (!!older.children &&
18
- typeof older.children !== "function" &&
19
- older.children.some((child) => child === younger || isDescendant(child, younger)));
20
- }
21
- const FileThemeNodeContentRenderer = (props) => {
22
- const { scaffoldBlockPxWidth, toggleChildrenVisibility, connectDragPreview, connectDragSource, isDragging, canDrop, canDrag, node, title, subtitle, draggedNode, path, treeIndex, isSearchMatch, isSearchFocus, icons, buttons, className, style, didDrop, lowerSiblingCounts, listIndex, swapFrom, swapLength, swapDepth, treeId, // Not needed, but preserved for other renderers
23
- isOver, // Not needed, but preserved for other renderers
24
- parentNode, // Needed for dndManager
25
- rowDirection, ...otherProps } = props;
26
- const [isHover, setIsHover] = useState(false);
27
- const isDraggedDescendant = draggedNode && isDescendant(draggedNode, node);
28
- const isLandingPadActive = !didDrop && isDragging;
29
- const buttonStyle = { left: -0.5 * scaffoldBlockPxWidth };
30
- const handle = (React.createElement(React.Fragment, null, canDrag && (React.createElement(React.Fragment, null, node.childrenListLoading && node.expanded ? (
31
- // Show a loading symbol on the handle when the children are expanded
32
- React.createElement("div", { className: styles["doc-moveHandle"] },
33
- React.createElement(Spin, null))) : (
34
- // Show the handle used to initiate a drag-and-drop
35
- connectDragSource(React.createElement("div", { className: styles["doc-moveHandle"] },
36
- React.createElement(FAIcon, { icon: faBars })), {
37
- dropEffect: "copy",
38
- }))))));
39
- return (React.createElement("div", { style: { height: "100%" }, className: styles["theme-nodeContent"], ...otherProps },
40
- toggleChildrenVisibility &&
41
- node.children &&
42
- (node.children.length > 0 || typeof node.children === "function") && (React.createElement("div", null,
43
- React.createElement("button", { type: "button", "aria-label": node.expanded ? "Collapse" : "Expand", className: classnames(node.expanded ? "rst__collapseButton" : "rst__expandButton"), style: buttonStyle, onClick: () => toggleChildrenVisibility({
44
- node,
45
- path,
46
- treeIndex,
47
- }) }),
48
- node.expanded && !isDragging && (React.createElement("div", { style: { width: scaffoldBlockPxWidth }, className: classnames("rst__lineChildren") })))),
49
- React.createElement("div", { className: classnames("rst__rowWrapper") }, connectDragPreview(React.createElement("div", { className: classnames("doc-row", isLandingPadActive && "rst__rowLandingPad", isLandingPadActive && !canDrop && "rst__rowCancelPad", isSearchMatch && "rst__rowSearchMatch", isSearchFocus && "rst__rowSearchFocus", className), style: {
50
- opacity: isDraggedDescendant ? 0.5 : 1,
51
- ...style,
52
- } },
53
- handle,
54
- React.createElement("div", { className: classnames("doc-rowContents", !canDrag && "rst__rowContentsDragDisabled") },
55
- React.createElement(UnitItem, { id: node.id, type: "tree", className: "unit-tree-item" })))))));
56
- };
57
- export default FileThemeNodeContentRenderer;
58
- //# sourceMappingURL=node-content-renderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node-content-renderer.js","sourceRoot":"","sources":["../../../../../src/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/node-content-renderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,MAAM,MAAM,8BAA8B,CAAC;AAElD;;;;;;;GAOG;AACH,SAAS,YAAY,CAAC,KAAU,EAAE,OAAY;IAC7C,OAAO,CACN,CAAC,CAAC,KAAK,CAAC,QAAQ;QAChB,OAAO,KAAK,CAAC,QAAQ,KAAK,UAAU;QACpC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,KAAK,OAAO,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CACtF,CAAC;AACH,CAAC;AAED,MAAM,4BAA4B,GAAiB,CAAC,KAAwB,EAAE,EAAE;IAC/E,MAAM,EACL,oBAAoB,EACpB,wBAAwB,EACxB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,SAAS,EACT,aAAa,EACb,aAAa,EACb,KAAK,EACL,OAAO,EACP,SAAS,EACT,KAAK,EACL,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@@
1
- .theme-nodeContent {
2
- :global {
3
- .rst__collapseButton,
4
- .rst__expandButton {
5
- box-shadow: 0 0 0 1px #cccccc;
6
- }
7
- .rst__lineChildren::after {
8
- background-color: #cccccc;
9
- }
10
- .doc-row {
11
- height: 100%;
12
- white-space: nowrap;
13
- display: flex;
14
- border: solid #bbb 1px;
15
- box-shadow: 0 2px 2px -2px;
16
- padding: 0 5px 0 10px;
17
- border-radius: 2px;
18
- .doc-rowContents {
19
- position: relative;
20
- height: 100%;
21
- min-width: 230px;
22
- flex: 1 0 auto;
23
- display: flex;
24
- align-items: center;
25
- justify-content: space-between;
26
- cursor: pointer;
27
- }
28
- .unit-tree-item {
29
- min-width: 100%;
30
- margin: 0;
31
- border-bottom: none;
32
- }
33
- }
34
- }
35
- }
36
- .doc-moveHandle {
37
- width: 20px;
38
- font-size: 20px;
39
- color: #ccc;
40
- cursor: move;
41
- display: flex;
42
- align-items: center;
43
- justify-content: center;
44
- z-index: 1;
45
- }
@@ -1,3 +0,0 @@
1
- import { TreeRenderer } from "@voplus/react-sortable-tree";
2
- declare const FileThemeTreeNodeRenderer: TreeRenderer;
3
- export default FileThemeTreeNodeRenderer;
@@ -1,73 +0,0 @@
1
- import React, { Children, cloneElement } from "react";
2
- import classnames from "classnames";
3
- import styles from "./tree-node-renderer.less";
4
- const FileThemeTreeNodeRenderer = (props) => {
5
- const { children, listIndex, swapFrom, swapLength, swapDepth, scaffoldBlockPxWidth, lowerSiblingCounts, connectDropTarget, isOver, draggedNode, canDrop, treeIndex, treeId, // Delete from otherProps
6
- getPrevRow, // Delete from otherProps
7
- node, // Delete from otherProps
8
- path, // Delete from otherProps
9
- rowDirection, ...otherProps } = props;
10
- // Construct the scaffold representing the structure of the tree
11
- const scaffoldBlockCount = lowerSiblingCounts.length;
12
- const scaffold = [];
13
- lowerSiblingCounts.forEach((lowerSiblingCount, i) => {
14
- let lineClass = "";
15
- if (lowerSiblingCount > 0) {
16
- // At this level in the tree, the nodes had sibling nodes further down
17
- if (listIndex === 0) {
18
- // Top-left corner of the tree
19
- lineClass = "rst__lineHalfHorizontalRight rst__lineHalfVerticalBottom";
20
- }
21
- else if (i === scaffoldBlockCount - 1) {
22
- // Last scaffold block in the row, right before the row content
23
- lineClass = "rst__lineHalfHorizontalRight rst__lineFullVertical";
24
- }
25
- else {
26
- // Simply connecting the line extending down to the next sibling on this level
27
- lineClass = "rst__lineFullVertical";
28
- }
29
- }
30
- else if (listIndex === 0) {
31
- // Top-left corner of the tree, but has no siblings
32
- lineClass = "rst__lineHalfHorizontalRight";
33
- }
34
- else if (i === scaffoldBlockCount - 1) {
35
- // The last or only node in this level of the tree
36
- lineClass = "rst__lineHalfVerticalTop rst__lineHalfHorizontalRight";
37
- }
38
- scaffold.push(React.createElement("div", { key: `pre_${1 + i}`, style: { width: scaffoldBlockPxWidth }, className: classnames("rst__lineBlock", lineClass) }));
39
- if (treeIndex !== listIndex && i === swapDepth) {
40
- // This row has been shifted, and is at the depth of
41
- // the line pointing to the new destination
42
- let highlightLineClass = "";
43
- if (listIndex === swapFrom + swapLength - 1) {
44
- // This block is on the bottom (target) line
45
- // This block points at the target block (where the row will go when released)
46
- highlightLineClass = "rst__highlightBottomLeftCorner";
47
- }
48
- else if (treeIndex === swapFrom) {
49
- // This block is on the top (source) line
50
- highlightLineClass = "rst__highlightTopLeftCorner";
51
- }
52
- else {
53
- // This block is between the bottom and top
54
- highlightLineClass = "rst__highlightLineVertical";
55
- }
56
- const style = {
57
- width: scaffoldBlockPxWidth,
58
- left: scaffoldBlockPxWidth * i,
59
- };
60
- scaffold.push(React.createElement("div", { key: i, style: style, className: classnames("rst__absoluteLineBlock", highlightLineClass) }));
61
- }
62
- });
63
- const style = { left: scaffoldBlockPxWidth * scaffoldBlockCount };
64
- return connectDropTarget(React.createElement("div", { ...otherProps, className: classnames("rst__node", styles["documenet-node"]) },
65
- scaffold,
66
- React.createElement("div", { className: "rst__nodeContent", style: style }, Children.map(children, (child) => cloneElement(child, {
67
- isOver,
68
- canDrop,
69
- draggedNode,
70
- })))));
71
- };
72
- export default FileThemeTreeNodeRenderer;
73
- //# sourceMappingURL=tree-node-renderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tree-node-renderer.js","sourceRoot":"","sources":["../../../../../src/components/CorporateUnitSortableTree/themes/SortableTreeUnitTheme/tree-node-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAE/C,MAAM,yBAAyB,GAAiB,CAAC,KAAwB,EAAE,EAAE;IAC5E,MAAM,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,OAAO,EACP,SAAS,EACT,MAAM,EAAE,yBAAyB;IACjC,UAAU,EAAE,yBAAyB;IACrC,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,yBAAyB;IAC/B,YAAY,EACZ,GAAG,UAAU,EACb,GAAG,KAAK,CAAC;IAEV,gEAAgE;IAChE,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,CAAC;IACrD,MAAM,QAAQ,GAAQ,EAAE,CAAC;IACzB,kBAAkB,CAAC,OAAO,CAAC,CAAC,iBAAiB,EAAE,CAAC,EAAE,EAAE;QACnD,IAAI,SAAS,GAAG,EAAE,CAAC;QACnB,IAAI,iBAAiB,GAAG,CAAC,EAAE,CAAC;YAC3B,sEAAsE;YAEtE,IAAI,SAAS,KAAK,CAAC,EAAE,CAAC;gBACrB,8BAA8B;gBAC9B,SAAS,GAAG,0DAA0D,CAAC;YACxE,CAAC;iBAAM,IAAI,CAAC,KAAK,kBAAkB,GAAG,CAAC,EAAE,CAAC;gBACzC,+DAA+D;gBAC/D,SAAS,GAAG,oDAAo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CAAC,GAClE,CACF,CAAC;QACH,CAAC;IACF,CAAC,CAAC,CAAC;IAEH,MAAM,KAAK,GAAG,EAAE,IAAI,EAAE,oBAAoB,GAAG,kBAAkB,EAAE,CAAC;IAClE,OAAO,iBAAiB,CACvB,gCAAS,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,WAAW,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAC/E,QAAQ;QAET,6BAAK,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,KAAK,IAC5C,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CACjC,YAAY,CAAC,KAAK,EAAE;YACnB,MAAM;YACN,OAAO;YACP,WAAW;SACX,CAAC,CACF,CACI,CACD,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1,12 +0,0 @@
1
- .documenet-node {
2
- :global {
3
- .rst__lineHalfHorizontalRight::before,
4
- .rst__lineFullVertical::after,
5
- .rst__lineHalfVerticalTop::after,
6
- .rst__lineHalfVerticalBottom::after {
7
- position: absolute;
8
- content: "";
9
- background-color: #cccccc !important;
10
- }
11
- }
12
- }