@voplus/morpho-document 6.1.67 → 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 (39) hide show
  1. package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js +2 -3
  2. package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js.map +1 -1
  3. package/es/obsolete/LibraryDefaultView/index.js +2 -3
  4. package/es/obsolete/LibraryDefaultView/index.js.map +1 -1
  5. package/es/pages/TreeViewPage/index.js.map +1 -1
  6. package/es/views/TreeView/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/es/components/DocumentSortableTree/SortableTreeContext.d.ts +0 -8
  9. package/es/components/DocumentSortableTree/SortableTreeContext.js +0 -25
  10. package/es/components/DocumentSortableTree/SortableTreeContext.js.map +0 -1
  11. package/es/components/DocumentSortableTree/index.d.ts +0 -11
  12. package/es/components/DocumentSortableTree/index.js +0 -161
  13. package/es/components/DocumentSortableTree/index.js.map +0 -1
  14. package/es/components/DocumentSortableTree/index.less +0 -22
  15. package/es/components/DocumentSortableTree/state.d.ts +0 -88
  16. package/es/components/DocumentSortableTree/state.js +0 -339
  17. package/es/components/DocumentSortableTree/state.js.map +0 -1
  18. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/index.d.ts +0 -3
  19. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/index.js +0 -22
  20. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/index.js.map +0 -1
  21. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.d.ts +0 -4
  22. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js +0 -85
  23. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +0 -1
  24. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.less +0 -406
  25. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.d.ts +0 -3
  26. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.js +0 -21
  27. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.js.map +0 -1
  28. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.less +0 -4
  29. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/index.d.ts +0 -4
  30. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/index.js +0 -23
  31. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/index.js.map +0 -1
  32. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.d.ts +0 -3
  33. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.js +0 -60
  34. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.js.map +0 -1
  35. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.less +0 -64
  36. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.d.ts +0 -3
  37. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.js +0 -95
  38. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.js.map +0 -1
  39. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.less +0 -18
@@ -1,339 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { action, computed, makeObservable, observable, toJS } from "mobx";
3
- import { message } from "antd";
4
- export class State {
5
- constructor(_store) {
6
- Object.defineProperty(this, "_store", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: _store
11
- });
12
- Object.defineProperty(this, "id", {
13
- enumerable: true,
14
- configurable: true,
15
- writable: true,
16
- value: ""
17
- }); //加载时id
18
- /** 根文件 */
19
- Object.defineProperty(this, "root", {
20
- enumerable: true,
21
- configurable: true,
22
- writable: true,
23
- value: void 0
24
- });
25
- /** 如果effect 是null就不执行 useDocumentListEffect*/
26
- Object.defineProperty(this, "effect", {
27
- enumerable: true,
28
- configurable: true,
29
- writable: true,
30
- value: null
31
- });
32
- Object.defineProperty(this, "treeNodeChildren", {
33
- enumerable: true,
34
- configurable: true,
35
- writable: true,
36
- value: void 0
37
- });
38
- /** dummy placeholder data */
39
- Object.defineProperty(this, "treeChildren", {
40
- enumerable: true,
41
- configurable: true,
42
- writable: true,
43
- value: [
44
- {
45
- id: "",
46
- name: "dummy placeholder data",
47
- documents: 1,
48
- sequence: 0,
49
- type: "Document",
50
- flag: "None",
51
- isSupportVersions: false,
52
- readonly: false,
53
- system: false,
54
- date: "",
55
- createDate: "",
56
- },
57
- ]
58
- });
59
- /** 沒load之前, 看看現在這個文件有沒有子文件, 有的話要放個 dummy placeholder data 在children里, */
60
- Object.defineProperty(this, "treeData", {
61
- enumerable: true,
62
- configurable: true,
63
- writable: true,
64
- value: []
65
- });
66
- /** e.g. exclude={["Task", "Agenda"]} 結果:不會顯示 Task和Agenda文件 */
67
- Object.defineProperty(this, "exclude", {
68
- enumerable: true,
69
- configurable: true,
70
- writable: true,
71
- value: []
72
- });
73
- Object.defineProperty(this, "include", {
74
- enumerable: true,
75
- configurable: true,
76
- writable: true,
77
- value: []
78
- });
79
- /** filter type for document */
80
- Object.defineProperty(this, "filterType", {
81
- enumerable: true,
82
- configurable: true,
83
- writable: true,
84
- value: void 0
85
- });
86
- /** onDragStateChanged 在拖动开始或结束时调用。拖动开始时为true,拖动结束时为false */
87
- Object.defineProperty(this, "isDragging", {
88
- enumerable: true,
89
- configurable: true,
90
- writable: true,
91
- value: void 0
92
- });
93
- /** */
94
- Object.defineProperty(this, "loading", {
95
- enumerable: true,
96
- configurable: true,
97
- writable: true,
98
- value: void 0
99
- });
100
- /** 请求后台move/moveAfter,是否加载完成(如没加载完成,不许再进入onDragEnd方法重复请求,重复请求会导致数据错误,报错)*/
101
- Object.defineProperty(this, "moveLoading", {
102
- enumerable: true,
103
- configurable: true,
104
- writable: true,
105
- value: false
106
- });
107
- /** update useDocumentListEffect */
108
- Object.defineProperty(this, "updateNodes", {
109
- enumerable: true,
110
- configurable: true,
111
- writable: true,
112
- value: (list) => {
113
- const docList = list;
114
- docList.map((item) => {
115
- if (item.documents > 0) {
116
- item.children = this.treeChildren;
117
- }
118
- });
119
- /** 如果tree node children存在,刚在tree node children下add数据,否则直接在treeData下add数据 */
120
- if (this.treeNodeChildren && this.treeNodeChildren.childrenListLoading) {
121
- this.treeNodeChildren.children = docList || [];
122
- this.treeNodeChildren.childrenListLoading = false;
123
- this.treeData = [...this.treeData];
124
- }
125
- else {
126
- this.loading = false;
127
- this.treeData = [...docList];
128
- }
129
- /** 防止重复加载document list */
130
- this.effect = null;
131
- }
132
- });
133
- makeObservable(this);
134
- }
135
- update(root) {
136
- this.root = root;
137
- }
138
- updateType() {
139
- var _a, _b;
140
- if (this.treeData.length &&
141
- ((_a = this.treeData[0]) === null || _a === void 0 ? void 0 : _a.id) &&
142
- ((_b = this.treeData[0]) === null || _b === void 0 ? void 0 : _b.childrenListLoading) !== undefined) {
143
- this.id = this.treeData[0].id;
144
- this.treeData[0].children = [];
145
- this.treeData = [...this.treeData];
146
- this.treeNodeChildren = this.treeData[0];
147
- this.treeNodeChildren.childrenListLoading = true;
148
- this.effect = this.updateNodes;
149
- }
150
- }
151
- /** 根据path查找文件 */
152
- findFiles(path) {
153
- var _a;
154
- let list;
155
- for (let i = 0; i < path.length; i++) {
156
- if (i == 0) {
157
- list = this.treeData.filter((item) => item.id === path[i]);
158
- }
159
- else {
160
- list = (_a = list[0].children) === null || _a === void 0 ? void 0 : _a.filter((item) => item.id === path[i]);
161
- }
162
- }
163
- return (list === null || list === void 0 ? void 0 : list.length) ? list[0] : null;
164
- }
165
- /** 接收@treeData state.treeData
166
- * @id 找id 文件 */
167
- editTreeData(treeData, id) {
168
- for (let i = 0, len = treeData.length; i < len; i++) {
169
- if (treeData[i].children) {
170
- this.editTreeData(treeData[i].children, id);
171
- }
172
- if (treeData[i].id === id) {
173
- this.treeNodeChildren = treeData[i];
174
- }
175
- }
176
- return;
177
- }
178
- /** 更新 TreeData */
179
- updateTreeData(val) {
180
- this.treeData = val;
181
- }
182
- /**在子节点折叠或者展开后调用*/
183
- onVisibilityToggle(val) {
184
- /** 如果是已展开 或者 已经加载过,不用再重新去加载 */
185
- if (!val.expanded || val.node.children[0].id !== "")
186
- return;
187
- this.id = val.path[val.path.length - 1];
188
- this.treeNodeChildren = this.findFiles(val.path);
189
- /** 加载中 */
190
- this.treeNodeChildren.childrenListLoading = true;
191
- this.treeNodeChildren.children = [];
192
- this.effect = this.updateNodes;
193
- }
194
- /** 在节点移动操作之后调用 */
195
- async onMoveNode(val) {
196
- if (this.moveLoading) {
197
- message.warning("Processing movement, please try again later!");
198
- return;
199
- }
200
- this.moveLoading = true;
201
- const id = val.nextPath[val.nextPath.length - 1];
202
- let afterId = "";
203
- if (val.nextParentNode) {
204
- const leg = val.nextParentNode.children.indexOf(val.node);
205
- afterId = leg - 1 >= 0 ? val.nextParentNode.children[leg - 1].id : "";
206
- }
207
- else {
208
- const aa = val.treeData.indexOf(val.node);
209
- afterId = aa - 1 >= 0 ? val.treeData[aa - 1].id : "";
210
- }
211
- const nextParent = this.findFiles(val.nextPath.slice(0, -1));
212
- const prevParent = this.findFiles(val.prevPath.slice(0, -1));
213
- /** 判断下一个父级 与 上一个父级 是不是同一个 */
214
- if ((nextParent === null || nextParent === void 0 ? void 0 : nextParent.id) === (prevParent === null || prevParent === void 0 ? void 0 : prevParent.id)) {
215
- await this._store.moveAfter(id, afterId);
216
- }
217
- else {
218
- await this._store.move([id], (nextParent === null || nextParent === void 0 ? void 0 : nextParent.id) || this.root.id);
219
- if (afterId !== "") {
220
- await this._store.moveAfter(id, afterId);
221
- }
222
- }
223
- this.moveLoading = false;
224
- }
225
- /**
226
- * 确定节点是否可以具有子级的功能,对于在canDrop有条件时防止悬停预览很有用。默认设置为返回的函数true。函数应为类型(node): bool
227
- */
228
- toHaveChildren(node) {
229
- const isLoaded = node.loaded ? node.loaded : false;
230
- if (node.documents !== 0 && !isLoaded) {
231
- return false;
232
- }
233
- return true;
234
- }
235
- /** treeData节点是否能展开, 如果当前item没有展开加载过list, 则不展开 */
236
- expandTreeData(treeData) {
237
- var _a;
238
- for (let i = 0, len = treeData.length; i < len; i++) {
239
- if (((_a = treeData[i].children) === null || _a === void 0 ? void 0 : _a[0].id) === "") {
240
- treeData[i].expanded = false;
241
- }
242
- else if (treeData[i].children) {
243
- this.expandTreeData(treeData[i].children);
244
- }
245
- }
246
- return treeData;
247
- }
248
- /**
249
- * document filters
250
- * @return document filters
251
- */
252
- get filters() {
253
- let filters = [];
254
- if (this.id) {
255
- filters.push({ c: "ParentNodeId", o: "=", l: "And", v1: this.id });
256
- }
257
- if (this.exclude.length) {
258
- filters.push({ c: "Type", o: "!contains", l: "And", v1: toJS(JSON.stringify(this.exclude)) });
259
- }
260
- if (this.include.length) {
261
- filters.push({ c: "Type", o: "contains", l: "And", v1: toJS(JSON.stringify(this.include)) });
262
- }
263
- if (this.filterType) {
264
- // filters.push(this.filterType);
265
- filters = [{ ...this.filterType }, ...filters];
266
- }
267
- return filters;
268
- }
269
- }
270
- __decorate([
271
- observable
272
- ], State.prototype, "id", void 0);
273
- __decorate([
274
- observable
275
- ], State.prototype, "root", void 0);
276
- __decorate([
277
- observable
278
- ], State.prototype, "effect", void 0);
279
- __decorate([
280
- observable
281
- ], State.prototype, "treeNodeChildren", void 0);
282
- __decorate([
283
- observable
284
- ], State.prototype, "treeChildren", void 0);
285
- __decorate([
286
- observable
287
- ], State.prototype, "treeData", void 0);
288
- __decorate([
289
- observable
290
- ], State.prototype, "exclude", void 0);
291
- __decorate([
292
- observable
293
- ], State.prototype, "include", void 0);
294
- __decorate([
295
- observable
296
- ], State.prototype, "filterType", void 0);
297
- __decorate([
298
- observable
299
- ], State.prototype, "isDragging", void 0);
300
- __decorate([
301
- observable
302
- ], State.prototype, "loading", void 0);
303
- __decorate([
304
- observable
305
- ], State.prototype, "moveLoading", void 0);
306
- __decorate([
307
- action
308
- ], State.prototype, "update", null);
309
- __decorate([
310
- action
311
- ], State.prototype, "updateType", null);
312
- __decorate([
313
- action
314
- ], State.prototype, "findFiles", null);
315
- __decorate([
316
- action
317
- ], State.prototype, "editTreeData", null);
318
- __decorate([
319
- action
320
- ], State.prototype, "updateTreeData", null);
321
- __decorate([
322
- action
323
- ], State.prototype, "updateNodes", void 0);
324
- __decorate([
325
- action
326
- ], State.prototype, "onVisibilityToggle", null);
327
- __decorate([
328
- action
329
- ], State.prototype, "onMoveNode", null);
330
- __decorate([
331
- action
332
- ], State.prototype, "toHaveChildren", null);
333
- __decorate([
334
- action
335
- ], State.prototype, "expandTreeData", null);
336
- __decorate([
337
- computed
338
- ], State.prototype, "filters", null);
339
- //# sourceMappingURL=state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/DocumentSortableTree/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG1E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAuC/B,MAAM,OAAO,KAAK;IACjB,YAA2B,MAAqB;QAA7B;;;;mBAAQ,MAAM;WAAe;QAG7B;;;;mBAAK,EAAE;WAAC,CAAC,OAAO;QACnC,UAAU;QACS;;;;;WAAU;QAC7B,8CAA8C;QAC3B;;;;mBAAS,IAAqD;WAAC;QAC/D;;;;;WAAsB;QACzC,8BAA8B;QACX;;;;mBAAgC;gBAClD;oBACC,EAAE,EAAE,EAAE;oBACN,IAAI,EAAE,wBAAwB;oBAC9B,SAAS,EAAE,CAAC;oBACZ,QAAQ,EAAE,CAAC;oBACX,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,MAAM;oBACZ,iBAAiB,EAAE,KAAK;oBACxB,QAAQ,EAAE,KAAK;oBACf,MAAM,EAAE,KAAK;oBACb,IAAI,E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EAAE,CAAC;YACrB,iCAAiC;YACjC,OAAO,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE,EAAE,GAAG,OAAO,CAAC,CAAC;QAChD,CAAC;QACD,OAAO,OAAO,CAAC;IAChB,CAAC;CACD;AA9MmB;IAAlB,UAAU;iCAAgB;AAER;IAAlB,UAAU;mCAAkB;AAEV;IAAlB,UAAU;qCAAuE;AAC/D;IAAlB,UAAU;+CAA8B;AAEtB;IAAlB,UAAU;2CAcF;AAEU;IAAlB,UAAU;uCAAuC;AAE/B;IAAlB,UAAU;sCAA+B;AACvB;IAAlB,UAAU;sCAA+B;AAEvB;IAAlB,UAAU;yCAA6C;AAErC;IAAlB,UAAU;yCAA6B;AAErB;IAAlB,UAAU;sCAA0B;AAElB;IAAlB,UAAU;0CAA4B;AAGhC;IADN,MAAM;mCAGN;AAGM;IADN,MAAM;uCAcN;AAIM;IADN,MAAM;sCAWN;AAKM;IADN,MAAM;yCAWN;AAIM;IADN,MAAM;2CAGN;AAIM;IADN,MAAM;0CAmBL;AAIK;IADN,MAAM;+CAUN;AAIY;IADZ,MAAM;uCA6BN;AAMM;IADN,MAAM;2CAON;AAIM;IADN,MAAM;2CAUN;AAOD;IADC,QAAQ;oCAiBR"}
@@ -1,3 +0,0 @@
1
- import { ThemeProps } from "@voplus/react-sortable-tree";
2
- declare const FileExplorerTheme: ThemeProps;
3
- export default FileExplorerTheme;
@@ -1,22 +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 nodeContentRenderer from "./node-content-renderer";
13
- import treeNodeRenderer from "./tree-node-renderer";
14
- const FileExplorerTheme = {
15
- nodeContentRenderer,
16
- treeNodeRenderer,
17
- scaffoldBlockPxWidth: 25,
18
- rowHeight: 30,
19
- slideRegionSize: 50,
20
- };
21
- export default FileExplorerTheme;
22
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/DocumentSortableTree/themes/FileExplorerTheme/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;AAGvC,OAAO,mBAAmB,MAAM,yBAAyB,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sBAAsB,CAAC;AAEpD,MAAM,iBAAiB,GAAe;IACrC,mBAAmB;IACnB,gBAAgB;IAChB,oBAAoB,EAAE,EAAE;IACxB,SAAS,EAAE,EAAE;IACb,eAAe,EAAE,EAAE;CACnB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,4 +0,0 @@
1
- import { NodeRenderer } from "@voplus/react-sortable-tree";
2
- import "./node-content-renderer.less";
3
- declare const FileThemeNodeContentRenderer: NodeRenderer;
4
- export default FileThemeNodeContentRenderer;
@@ -1,85 +0,0 @@
1
- import React from "react";
2
- import { faChevronRight } from "@fortawesome/pro-light-svg-icons";
3
- import { faFolderOpen, faCopy } from "@fortawesome/pro-solid-svg-icons";
4
- import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
5
- import { Spin } from "antd";
6
- import { useDocumentListContext } from "../../../../data/contexts/DocumentListContext";
7
- import TreeDocumentItem from "../../../DocumentItem/TreeDocumentItem";
8
- import classnames from "classnames";
9
- import "./node-content-renderer.less";
10
- function isDescendant(older, younger) {
11
- return (!!older.children &&
12
- typeof older.children !== "function" &&
13
- older.children.some((child) => child === younger || isDescendant(child, younger)));
14
- }
15
- const FileThemeNodeContentRenderer = (props) => {
16
- const { scaffoldBlockPxWidth, toggleChildrenVisibility, connectDragPreview, connectDragSource, isDragging, canDrop, canDrag, node, title, draggedNode, path, treeIndex, isSearchMatch, isSearchFocus, icons, buttons, className, style, didDrop, lowerSiblingCounts, listIndex, swapFrom, swapLength, swapDepth, treeId, // Not needed, but preserved for other renderers
17
- isOver, // Not needed, but preserved for other renderers
18
- parentNode, // Needed for dndManager
19
- rowDirection, ...otherProps } = props;
20
- const store = useDocumentListContext();
21
- const isDraggedDescendant = draggedNode && isDescendant(draggedNode, node);
22
- const isLandingPadActive = !didDrop && isDragging;
23
- /** 比較一下id是否active, 加上active css (点击当前id时,显示active背景色) */
24
- const active = store.active === node.id;
25
- // Construct the scaffold representing the structure of the tree
26
- const scaffold = [];
27
- lowerSiblingCounts.forEach((lowerSiblingCount, i) => {
28
- scaffold.push(React.createElement("div", { key: `pre_${1 + i}`, style: { width: scaffoldBlockPxWidth }, className: "lineBlock" }));
29
- if (treeIndex !== listIndex && i === swapDepth) {
30
- // This row has been shifted, and is at the depth of
31
- // the line pointing to the new destination
32
- let highlightLineClass = "";
33
- if (listIndex === swapFrom + swapLength - 1) {
34
- // This block is on the bottom (target) line
35
- // This block points at the target block (where the row will go when released)
36
- highlightLineClass = "highlightBottomLeftCorner";
37
- }
38
- else if (treeIndex === swapFrom) {
39
- // This block is on the top (source) line
40
- highlightLineClass = "highlightTopLeftCorner";
41
- }
42
- else {
43
- // This block is between the bottom and top
44
- highlightLineClass = "highlightLineVertical";
45
- }
46
- scaffold.push(React.createElement("div", { key: `highlight_${1 + i}`, style: {
47
- width: scaffoldBlockPxWidth,
48
- left: scaffoldBlockPxWidth * i,
49
- }, className: classnames("absoluteLineBlock", "highlightLineClass") }));
50
- }
51
- });
52
- const nodeContent = (React.createElement("div", { className: classnames("explorer-theme-node", { active: active }), ...otherProps },
53
- toggleChildrenVisibility && node.children && node.children.length > 0 && (React.createElement("button", { type: "button", className: node.expanded ? "collapseButton" : "expandButton", style: {
54
- left: (lowerSiblingCounts.length - 0.7) * scaffoldBlockPxWidth,
55
- }, onClick: () => toggleChildrenVisibility({
56
- node,
57
- path,
58
- treeIndex,
59
- }) },
60
- React.createElement("span", { className: "arrows" },
61
- React.createElement(FAIcon, { icon: faChevronRight })))),
62
- node.childrenListLoading && node.expanded && (React.createElement("div", { className: "doc-spin", style: {
63
- left: (lowerSiblingCounts.length - 0.7) * scaffoldBlockPxWidth,
64
- } },
65
- React.createElement(Spin, { size: "small" }))),
66
- React.createElement("div", { className: classnames("rowWrapper", !canDrag ? "rowWrapperDragDisabled" : "") }, connectDragPreview(React.createElement("div", { style: { display: "flex" } },
67
- scaffold,
68
- React.createElement("div", { className: classnames("row", {
69
- rowLandingPad: isLandingPadActive,
70
- rowCancelPad: isLandingPadActive && !canDrop,
71
- rowSearchMatch: isSearchMatch,
72
- rowSearchFocus: isSearchFocus,
73
- }, className), style: {
74
- opacity: isDraggedDescendant ? 0.5 : 1,
75
- ...style,
76
- } },
77
- React.createElement("div", { className: classnames("rowContents", { rowContentsDragDisabled: !canDrag }) },
78
- React.createElement("div", { className: "rowLabel" }, node.id === "" || node.id === "pasteList" ? (React.createElement("div", { className: "file-document-name", onClick: () => { var _a; return (_a = store === null || store === void 0 ? void 0 : store.onDocumentSelected) === null || _a === void 0 ? void 0 : _a.call(store, node.id); } },
79
- React.createElement("div", { className: "file-type" },
80
- React.createElement(FAIcon, { icon: node.id === "pasteList" ? faCopy : faFolderOpen })),
81
- React.createElement("div", { className: "file-name" }, node.name))) : (React.createElement(TreeDocumentItem, { className: "file-tree-item", id: node.id, headerProps: { quickDataBarVisible: false } }))))))))));
82
- return canDrag ? connectDragSource(nodeContent, { dropEffect: "copy" }) : nodeContent;
83
- };
84
- export default FileThemeNodeContentRenderer;
85
- //# sourceMappingURL=node-content-renderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node-content-renderer.js","sourceRoot":"","sources":["../../../../../src/components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