@voplus/morpho-document 6.1.66 → 6.1.68

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 (43) hide show
  1. package/es/modules/quick-access/AdvanceFilterForm/RenderFilterItem.js +3 -0
  2. package/es/modules/quick-access/AdvanceFilterForm/RenderFilterItem.js.map +1 -1
  3. package/es/modules/quick-access/AdvanceFilterForm/index.less +1 -1
  4. package/es/modules/quick-access/GeneralFilterForm/index.less +1 -1
  5. package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js +2 -3
  6. package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js.map +1 -1
  7. package/es/obsolete/LibraryDefaultView/index.js +2 -3
  8. package/es/obsolete/LibraryDefaultView/index.js.map +1 -1
  9. package/es/pages/TreeViewPage/index.js.map +1 -1
  10. package/es/views/TreeView/index.js.map +1 -1
  11. package/package.json +1 -1
  12. package/es/components/DocumentSortableTree/SortableTreeContext.d.ts +0 -8
  13. package/es/components/DocumentSortableTree/SortableTreeContext.js +0 -25
  14. package/es/components/DocumentSortableTree/SortableTreeContext.js.map +0 -1
  15. package/es/components/DocumentSortableTree/index.d.ts +0 -11
  16. package/es/components/DocumentSortableTree/index.js +0 -161
  17. package/es/components/DocumentSortableTree/index.js.map +0 -1
  18. package/es/components/DocumentSortableTree/index.less +0 -22
  19. package/es/components/DocumentSortableTree/state.d.ts +0 -88
  20. package/es/components/DocumentSortableTree/state.js +0 -339
  21. package/es/components/DocumentSortableTree/state.js.map +0 -1
  22. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/index.d.ts +0 -3
  23. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/index.js +0 -22
  24. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/index.js.map +0 -1
  25. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.d.ts +0 -4
  26. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js +0 -85
  27. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +0 -1
  28. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.less +0 -406
  29. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.d.ts +0 -3
  30. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.js +0 -21
  31. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.js.map +0 -1
  32. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.less +0 -4
  33. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/index.d.ts +0 -4
  34. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/index.js +0 -23
  35. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/index.js.map +0 -1
  36. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.d.ts +0 -3
  37. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.js +0 -60
  38. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.js.map +0 -1
  39. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.less +0 -64
  40. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.d.ts +0 -3
  41. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.js +0 -95
  42. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.js.map +0 -1
  43. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.less +0 -18
@@ -1,406 +0,0 @@
1
- @import "~@voplus/morpho-theme/styles/index.less";
2
-
3
- :global {
4
- .explorer-theme-node {
5
- border-radius: 5px;
6
- margin-bottom: 5px;
7
- padding: 5px 0;
8
-
9
- &:hover {
10
- background: #f0f7ff;
11
- }
12
-
13
- &.active {
14
- background: #f0f7ff;
15
-
16
- svg {
17
- color: #5d5d5d;
18
- }
19
-
20
- .file-document-name {
21
- .file-name {
22
- color: @purple-primary-color;
23
- }
24
-
25
- .file-type {
26
- > svg {
27
- color: @purple-primary-color;
28
- }
29
- }
30
- }
31
-
32
- .file-tree-item {
33
- .document-header-default {
34
- .document-name-content {
35
- .document-pre {
36
- > svg {
37
- color: @purple-primary-color;
38
- }
39
- }
40
-
41
- .document-header-target {
42
- .document-name {
43
- color: @purple-primary-color;
44
- }
45
- }
46
- }
47
- }
48
- }
49
- }
50
-
51
- :global {
52
- .doc-spin {
53
- z-index: 2;
54
- position: absolute;
55
- top: 50%;
56
- width: 30px;
57
- height: 30px;
58
- display: flex;
59
- align-items: center;
60
- justify-content: center;
61
- transform: translate3d(-50%, -50%, 0);
62
- }
63
-
64
- .collapseButton,
65
- .expandButton {
66
- appearance: none;
67
- border: none;
68
- background: transparent;
69
- padding: 0;
70
- z-index: 2;
71
- position: absolute;
72
- top: 45%;
73
- width: 30px;
74
- height: 30px;
75
- transform: translate3d(-50%, -50%, 0);
76
- cursor: pointer;
77
-
78
- .arrows {
79
- display: inline-block;
80
- font-size: 10px;
81
- transform: translate3d(50%, 0, 0) rotateZ(90deg);
82
- }
83
-
84
- &:focus {
85
- outline: none;
86
- }
87
- }
88
-
89
- .expandButton .arrows {
90
- display: inline-block;
91
- font-size: 10px;
92
- transform: translate3d(50%, 0, 0);
93
- }
94
-
95
- .rowWrapper {
96
- height: 100%;
97
- box-sizing: border-box;
98
- }
99
-
100
- .rowWrapperDragDisabled {
101
- cursor: default;
102
- }
103
-
104
- .row {
105
- height: 100%;
106
- white-space: nowrap;
107
- display: flex;
108
- position: relative;
109
-
110
- & > * {
111
- box-sizing: border-box;
112
- }
113
- }
114
-
115
- /**
116
- * The outline of where the element will go if dropped, displayed while dragging
117
- */
118
- .rowLandingPad {
119
- border: none;
120
- box-shadow: none;
121
- outline: none;
122
-
123
- * {
124
- opacity: 0 !important;
125
- }
126
-
127
- &::before {
128
- background-color: lightblue;
129
- border: 2px dotted black;
130
- content: "";
131
- position: absolute;
132
- top: 0;
133
- right: 0;
134
- bottom: 0;
135
- left: 0;
136
- z-index: -1;
137
- }
138
- }
139
-
140
- /**
141
- * Alternate appearance of the landing pad when the dragged location is invalid
142
- */
143
- .rowCancelPad {
144
- // @extend .rowLandingPad;
145
-
146
- &::before {
147
- background-color: #e6a8ad;
148
- }
149
- }
150
-
151
- /**
152
- * Nodes matching the search conditions are highlighted
153
- */
154
- .rowSearchMatch {
155
- box-shadow: inset 0 -7px 7px -3px #0080ff;
156
- }
157
-
158
- /**
159
- * The node that matches the search conditions and is currently focused
160
- */
161
- .rowSearchFocus {
162
- box-shadow: inset 0 -7px 7px -3px #fc6421;
163
- }
164
-
165
- // %rowItem {
166
- // display: inline-block;
167
- // vertical-align: middle;
168
- // }
169
-
170
- .rowContents {
171
- // @extend %rowItem;
172
- position: relative;
173
- width: 100%;
174
- height: 100%;
175
- flex: 1 0 auto;
176
- display: flex;
177
- align-items: center;
178
- justify-content: space-between;
179
- }
180
-
181
- .rowLabel {
182
- // @extend %rowItem;
183
- display: flex;
184
- flex: 0 1 auto;
185
- padding-right: 20px;
186
- }
187
-
188
- .file-document-name {
189
- display: flex;
190
- align-items: center;
191
-
192
- .file-type {
193
- display: flex;
194
- align-items: center;
195
- width: 22px;
196
-
197
- > svg {
198
- height: 13px;
199
- color: #5d5d5d;
200
- }
201
- }
202
-
203
- .file-name {
204
- z-index: 100;
205
- cursor: pointer;
206
- display: inline-block;
207
- color: #5d5d5d;
208
- font-weight: bold;
209
- font-size: 14px;
210
- line-height: 19px;
211
- }
212
- }
213
-
214
- .file-tree-item {
215
- padding: 0;
216
- margin: 0;
217
-
218
- .document-header-default {
219
- padding: 0;
220
- height: 19px;
221
-
222
- &::after {
223
- border-bottom: none;
224
- }
225
-
226
- .document-name-content {
227
- .document-pre {
228
- min-width: 22px;
229
- margin-right: 0;
230
-
231
- > svg {
232
- height: 13px;
233
- color: #5d5d5d;
234
- }
235
- }
236
-
237
- .document-header-target {
238
- .document-name {
239
- color: #5d5d5d;
240
- vertical-align: sub;
241
- font-weight: bold;
242
- font-size: 14px;
243
- line-height: 19px;
244
- }
245
- }
246
- }
247
- }
248
- }
249
-
250
- // .rowToolbar {
251
- // // @extend %rowItem;
252
- // flex: 0 1 auto;
253
- // display: flex;
254
- // }
255
-
256
- .toolbarButton {
257
- // @extend %rowItem;
258
- }
259
-
260
- /**
261
- * Line for under a node with children
262
- */
263
- .lineChildren {
264
- height: 100%;
265
- display: inline-block;
266
- }
267
-
268
- /* ==========================================================================
269
- Scaffold
270
-
271
- Line-overlaid blocks used for showing the tree structure
272
- ========================================================================== */
273
- .lineBlock {
274
- height: 100%;
275
- position: relative;
276
- display: inline-block;
277
- flex: 0 0 auto;
278
- }
279
-
280
- .absoluteLineBlock {
281
- // @extend .lineBlock;
282
- position: absolute;
283
- top: 0;
284
- }
285
-
286
- /* Highlight line for pointing to dragged row destination
287
- ========================================================================== */
288
- // $highlight-color: #36c2f6;
289
- // $highlight-line-size: 6px; // Make it an even number for clean rendering
290
-
291
- /**
292
- * +--+--+
293
- * | | |
294
- * | | |
295
- * | | |
296
- * +--+--+
297
- */
298
- .highlightLineVertical {
299
- z-index: 3;
300
-
301
- &::before {
302
- position: absolute;
303
- content: "";
304
- // background-color: $highlight-color;
305
- // width: $highlight-line-size;
306
- // margin-left: $highlight-line-size / -2;
307
- left: 50%;
308
- top: 0;
309
- height: 100%;
310
- }
311
-
312
- // @keyframes arrow-pulse {
313
- // $base-multiplier: 10;
314
- // 0% {
315
- // transform: translate(0, 0);
316
- // opacity: 0;
317
- // }
318
- // 30% {
319
- // transform: translate(0, 30% * $base-multiplier);
320
- // opacity: 1;
321
- // }
322
- // 70% {
323
- // transform: translate(0, 70% * $base-multiplier);
324
- // opacity: 1;
325
- // }
326
- // 100% {
327
- // transform: translate(0, 100% * $base-multiplier);
328
- // opacity: 0;
329
- // }
330
- // }
331
-
332
- &::after {
333
- content: "";
334
- position: absolute;
335
- height: 0;
336
- // margin-left: -1 * $highlight-line-size / 2;
337
- left: 50%;
338
- top: 0;
339
- // border-left: $highlight-line-size / 2 solid transparent;
340
- // border-right: $highlight-line-size / 2 solid transparent;
341
- // border-top: $highlight-line-size / 2 solid white;
342
- animation: arrow-pulse 1s infinite linear both;
343
- }
344
- }
345
-
346
- /**
347
- * +-----+
348
- * | |
349
- * | +--+
350
- * | | |
351
- * +--+--+
352
- */
353
- .highlightTopLeftCorner {
354
- &::before {
355
- z-index: 3;
356
- content: "";
357
- position: absolute;
358
- // border-top: solid $highlight-line-size $highlight-color;
359
- // border-left: solid $highlight-line-size $highlight-color;
360
- box-sizing: border-box;
361
- // height: calc(50% + #{$highlight-line-size / 2});
362
- // top: 50%;
363
- // margin-top: $highlight-line-size / -2;
364
- // right: 0;
365
- // width: calc(50% + #{$highlight-line-size / 2});
366
- }
367
- }
368
-
369
- /**
370
- * +--+--+
371
- * | | |
372
- * | | |
373
- * | +->|
374
- * +-----+
375
- */
376
- .highlightBottomLeftCorner {
377
- // $arrow-size: 7px;
378
- z-index: 3;
379
-
380
- &::before {
381
- content: "";
382
- position: absolute;
383
- // border-bottom: solid $highlight-line-size $highlight-color;
384
- // border-left: solid $highlight-line-size $highlight-color;
385
- box-sizing: border-box;
386
- // height: calc(100% + #{$highlight-line-size / 2});
387
- // top: 0;
388
- // right: $arrow-size;
389
- // width: calc(50% - #{$arrow-size - ($highlight-line-size / 2)});
390
- }
391
-
392
- &::after {
393
- content: "";
394
- position: absolute;
395
- height: 0;
396
- right: 0;
397
- top: 100%;
398
- // margin-top: -1 * $arrow-size;
399
- // border-top: $arrow-size solid transparent;
400
- // border-bottom: $arrow-size solid transparent;
401
- // border-left: $arrow-size solid $highlight-color;
402
- }
403
- }
404
- }
405
- }
406
- }
@@ -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, style: { height: "auto" } }, 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/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAEtD,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,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IACpE,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 SortableTreeDocumentTheme: ThemeProps;
4
- export default SortableTreeDocumentTheme;
@@ -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 SortableTreeDocumentTheme = {
16
- nodeContentRenderer,
17
- treeNodeRenderer,
18
- scaffoldBlockPxWidth: 44,
19
- // rowHeight: 80,
20
- slideRegionSize: 50,
21
- };
22
- export default SortableTreeDocumentTheme;
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/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,yBAAyB,GAAe;IAC7C,mBAAmB;IACnB,gBAAgB;IAChB,oBAAoB,EAAE,EAAE;IACxB,iBAAiB;IACjB,eAAe,EAAE,EAAE;CACnB,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1,3 +0,0 @@
1
- import { NodeRenderer } from "@voplus/react-sortable-tree";
2
- declare const FileThemeNodeContentRenderer: NodeRenderer;
3
- export default FileThemeNodeContentRenderer;
@@ -1,60 +0,0 @@
1
- import React, { useState } from "react";
2
- import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
3
- import { Spin } from "antd";
4
- import { faBars } from "@fortawesome/pro-light-svg-icons";
5
- import TreeDocumentItem from "../../../DocumentItem/TreeDocumentItem";
6
- import classnames from "classnames";
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,
31
- React.createElement(React.Fragment, null, node.childrenListLoading && node.expanded ? (
32
- // Show a loading symbol on the handle when the children are expanded
33
- React.createElement("div", { className: styles["doc-moveHandle"] },
34
- React.createElement(Spin, null))) : (
35
- // Show the handle used to initiate a drag-and-drop
36
- React.createElement(React.Fragment, null, canDrag ? (connectDragSource(React.createElement("div", { className: styles["doc-moveHandle"] },
37
- React.createElement(FAIcon, { icon: faBars })), {
38
- dropEffect: "copy",
39
- })) : (React.createElement("div", { className: styles["doc-moveHandle"] },
40
- React.createElement(FAIcon, { icon: faBars }))))))));
41
- return (React.createElement("div", { style: { height: "100%" }, className: styles["theme-nodeContent"], ...otherProps },
42
- toggleChildrenVisibility &&
43
- node.children &&
44
- (node.children.length > 0 || typeof node.children === "function") && (React.createElement("div", null,
45
- React.createElement("button", { type: "button", "aria-label": node.expanded ? "Collapse" : "Expand", className: classnames(node.expanded ? "rst__collapseButton" : "rst__expandButton"), style: buttonStyle, onClick: () => toggleChildrenVisibility({
46
- node,
47
- path,
48
- treeIndex,
49
- }) }),
50
- node.expanded && !isDragging && (React.createElement("div", { style: { width: scaffoldBlockPxWidth }, className: classnames("rst__lineChildren") })))),
51
- 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: {
52
- opacity: isDraggedDescendant ? 0.5 : 1,
53
- ...style,
54
- } },
55
- handle,
56
- React.createElement("div", { className: classnames("doc-rowContents") },
57
- React.createElement(TreeDocumentItem, { id: node.id })))))));
58
- };
59
- export default FileThemeNodeContentRenderer;
60
- //# sourceMappingURL=node-content-renderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node-content-renderer.js","sourceRoot":"","sources":["../../../../../src/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.tsx"],"names":[],"mappings":"AAAA,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,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,gBAAgB,MAAM,wCAAwC,CAAC;AACtE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,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,OAAO,EACP,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,SAAS,EACT,MAAM,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
- .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
- flex: 1;
24
- display: flex;
25
- align-items: center;
26
- justify-content: space-between;
27
- cursor: pointer;
28
- > div:before {
29
- border-bottom: none;
30
- }
31
- }
32
- }
33
- .document-header-default {
34
- &:after {
35
- border-bottom: none !important;
36
- }
37
- .document-name-content > div {
38
- display: flex;
39
- }
40
- .document-name {
41
- text-overflow: -o-ellipsis-lastline;
42
- overflow: hidden;
43
- text-overflow: ellipsis;
44
- display: -webkit-box;
45
- -webkit-line-clamp: 2;
46
- line-clamp: 2;
47
- -webkit-box-orient: vertical;
48
- }
49
- .document-pre {
50
- padding-top: 3px;
51
- }
52
- }
53
- }
54
- }
55
- .doc-moveHandle {
56
- width: 20px;
57
- font-size: 20px;
58
- color: #ccc;
59
- cursor: move;
60
- display: flex;
61
- align-items: center;
62
- justify-content: center;
63
- z-index: 1;
64
- }
@@ -1,3 +0,0 @@
1
- import { TreeRenderer } from "@voplus/react-sortable-tree";
2
- declare const FileThemeTreeNodeRenderer: TreeRenderer;
3
- export default FileThemeTreeNodeRenderer;