@voplus/morpho-document 1.0.0-dev223 → 1.0.0-dev227
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/changelog.md +6 -0
- package/es/components/ActivityLog/ActivityActionFilter.d.ts +3 -0
- package/es/components/ActivityLog/ActivityActionFilter.js +23 -0
- package/es/components/ActivityLog/ActivityActionFilter.js.map +1 -0
- package/es/components/ActivityLog/index.d.ts +1 -1
- package/es/components/ActivityLog/index.js +72 -43
- package/es/components/ActivityLog/index.js.map +1 -1
- package/es/components/ActivityLog/index.less +73 -64
- package/es/components/ActivityLog/state.d.ts +12 -1
- package/es/components/ActivityLog/state.js +55 -16
- package/es/components/ActivityLog/state.js.map +1 -1
- package/es/components/AddDocDropdown/state.js +97 -93
- package/es/components/AddDocDropdown/state.js.map +1 -1
- package/es/components/AvatarList/AvatarItem/index.d.ts +3 -3
- package/es/components/AvatarList/state.js +50 -46
- package/es/components/AvatarList/state.js.map +1 -1
- package/es/components/BreadCrumbsHeader/state.js +31 -27
- package/es/components/BreadCrumbsHeader/state.js.map +1 -1
- package/es/components/DocumentDescription/index.d.ts +1 -1
- package/es/components/DocumentHeader/index.js +4 -8
- package/es/components/DocumentHeader/index.js.map +1 -1
- package/es/components/DocumentItem/state.js +48 -44
- package/es/components/DocumentItem/state.js.map +1 -1
- package/es/components/DocumentList/index.js +17 -4
- package/es/components/DocumentList/index.js.map +1 -1
- package/es/components/DocumentList/index.less +9 -2
- package/es/components/DocumentList/state.d.ts +7 -0
- package/es/components/DocumentList/state.js +221 -200
- package/es/components/DocumentList/state.js.map +1 -1
- package/es/components/DocumentListView/state.js +12 -8
- package/es/components/DocumentListView/state.js.map +1 -1
- package/es/components/DocumentMenu/index.js +2 -4
- package/es/components/DocumentMenu/index.js.map +1 -1
- package/es/components/DocumentMenu/state.d.ts +2 -4
- package/es/components/DocumentMenu/state.js +70 -69
- package/es/components/DocumentMenu/state.js.map +1 -1
- package/es/components/DocumentName/index.js +5 -4
- package/es/components/DocumentName/index.js.map +1 -1
- package/es/components/DocumentName/index.less +6 -2
- package/es/components/DocumentSelectDialog/state.js +72 -68
- package/es/components/DocumentSelectDialog/state.js.map +1 -1
- package/es/components/DocumentSortableTree/index.js +3 -1
- package/es/components/DocumentSortableTree/index.js.map +1 -1
- package/es/components/DocumentSortableTree/state.js +175 -171
- package/es/components/DocumentSortableTree/state.js.map +1 -1
- package/es/components/DocumentTabs/index.d.ts +4 -4
- package/es/components/DocumentTree/state.js +86 -82
- package/es/components/DocumentTree/state.js.map +1 -1
- package/es/components/FileViewer/Preview.d.ts +1 -1
- package/es/components/Links/Item.d.ts +3 -3
- package/es/components/Links/state.js +67 -63
- package/es/components/Links/state.js.map +1 -1
- package/es/components/NewDocumentForm/index.d.ts +1 -0
- package/es/components/NewDocumentForm/index.js +1 -1
- package/es/components/NewDocumentForm/index.js.map +1 -1
- package/es/components/NewDocumentForm/state.js +47 -43
- package/es/components/NewDocumentForm/state.js.map +1 -1
- package/es/components/PeopleAccess/NewAccessSelector.d.ts +1 -1
- package/es/components/PeopleAccess/PeopleAccessState.js +136 -132
- package/es/components/PeopleAccess/PeopleAccessState.js.map +1 -1
- package/es/components/PublishModal/index.d.ts +2 -2
- package/es/components/PublishModal/state.js +14 -10
- package/es/components/PublishModal/state.js.map +1 -1
- package/es/components/QuickAccessSearch/ObjectItem/index.d.ts +1 -1
- package/es/components/QuickAccessSearch/state.js +63 -59
- package/es/components/QuickAccessSearch/state.js.map +1 -1
- package/es/components/QuickViewDialog/QuickSubTab/index.d.ts +5 -5
- package/es/components/QuickViewDialog/QuickSubTab/index.js +1 -2
- package/es/components/QuickViewDialog/QuickSubTab/index.js.map +1 -1
- package/es/components/QuickViewDialog/state.js +26 -22
- package/es/components/QuickViewDialog/state.js.map +1 -1
- package/es/components/TagView/state.js +63 -59
- package/es/components/TagView/state.js.map +1 -1
- package/es/components/VersionsModal/state.js +27 -23
- package/es/components/VersionsModal/state.js.map +1 -1
- package/es/controls/Panable/state.js +31 -27
- package/es/controls/Panable/state.js.map +1 -1
- package/es/controls/PermissionModal/index.d.ts +1 -1
- package/es/controls/QuickDataIcon/index.d.ts +3 -3
- package/es/controls/TimeLog/index.d.ts +1 -1
- package/es/controls/ToolBar/index.js +1 -1
- package/es/controls/ToolBar/index.js.map +1 -1
- package/es/controls/ToolBar/state.js +147 -143
- package/es/controls/ToolBar/state.js.map +1 -1
- package/es/controls/filters/CreateDateFilter/state.js +31 -27
- package/es/controls/filters/CreateDateFilter/state.js.map +1 -1
- package/es/controls/filters/DocumentStatusFilter/state.js +42 -38
- package/es/controls/filters/DocumentStatusFilter/state.js.map +1 -1
- package/es/controls/filters/DocumentTypeFilter/state.js +52 -48
- package/es/controls/filters/DocumentTypeFilter/state.js.map +1 -1
- package/es/controls/filters/FlagFilter/state.js +50 -46
- package/es/controls/filters/FlagFilter/state.js.map +1 -1
- package/es/data/DocumentMetaStore.js +38 -34
- package/es/data/DocumentMetaStore.js.map +1 -1
- package/es/data/DocumentStore/DocumentStore.d.ts +5 -1
- package/es/data/DocumentStore/DocumentStore.js +234 -210
- package/es/data/DocumentStore/DocumentStore.js.map +1 -1
- package/es/data/DocumentStore/hooks/useDocumentActivityListEffect.d.ts +3 -2
- package/es/data/DocumentStore/hooks/useDocumentActivityListEffect.js +3 -5
- package/es/data/DocumentStore/hooks/useDocumentActivityListEffect.js.map +1 -1
- package/es/data/DocumentStore/hooks/useDocumentListLoaderEffect.d.ts +1 -1
- package/es/data/DocumentStore/hooks/useDocumentListLoaderEffect.js.map +1 -1
- package/es/data/FileStore/index.d.ts +0 -1
- package/es/data/FileStore/index.js +0 -1
- package/es/data/FileStore/index.js.map +1 -1
- package/es/data/contexts/DocumentListContext/index.d.ts +0 -2
- package/es/data/contexts/DocumentListContext/index.js +34 -30
- package/es/data/contexts/DocumentListContext/index.js.map +1 -1
- package/es/data/index.js +1 -0
- package/es/data/index.js.map +1 -1
- package/es/data/interfaces/index.js +9 -0
- package/es/data/interfaces/index.js.map +1 -1
- package/es/data/metas/FileTypeMeta.js +25 -21
- package/es/data/metas/FileTypeMeta.js.map +1 -1
- package/es/data/metas/ShortcutMeta.js +26 -22
- package/es/data/metas/ShortcutMeta.js.map +1 -1
- package/es/modules/unit/components/ActivityLog/index.d.ts +1 -1
- package/es/modules/unit/components/ActivityLog/state.js +19 -15
- package/es/modules/unit/components/ActivityLog/state.js.map +1 -1
- package/es/modules/unit/components/AddUnitDropdown/state.js +79 -75
- package/es/modules/unit/components/AddUnitDropdown/state.js.map +1 -1
- package/es/modules/unit/components/BreadCrumbsHeader/state.js +18 -14
- package/es/modules/unit/components/BreadCrumbsHeader/state.js.map +1 -1
- package/es/modules/unit/components/Members/index.js +2 -4
- package/es/modules/unit/components/Members/index.js.map +1 -1
- package/es/modules/unit/components/Members/state.js +25 -21
- package/es/modules/unit/components/Members/state.js.map +1 -1
- package/es/modules/unit/components/NewUnitForm/index.d.ts +2 -1
- package/es/modules/unit/components/NewUnitForm/index.js +1 -1
- package/es/modules/unit/components/NewUnitForm/index.js.map +1 -1
- package/es/modules/unit/components/NewUnitForm/state.js +47 -43
- package/es/modules/unit/components/NewUnitForm/state.js.map +1 -1
- package/es/modules/unit/components/SubUnitList/index.js +2 -4
- package/es/modules/unit/components/SubUnitList/index.js.map +1 -1
- package/es/modules/unit/components/SubUnitList/state.js +32 -28
- package/es/modules/unit/components/SubUnitList/state.js.map +1 -1
- package/es/modules/unit/components/UnitAvatar/index.d.ts +5 -5
- package/es/modules/unit/components/UnitDetails/index.js +50 -33
- package/es/modules/unit/components/UnitDetails/index.js.map +1 -1
- package/es/modules/unit/components/UnitDetails/index.less +25 -3
- package/es/modules/unit/components/UnitDetails/state.js +24 -20
- package/es/modules/unit/components/UnitDetails/state.js.map +1 -1
- package/es/modules/unit/components/UnitHead/index.d.ts +2 -2
- package/es/modules/unit/components/UnitHead/state.js +9 -5
- package/es/modules/unit/components/UnitHead/state.js.map +1 -1
- package/es/modules/unit/components/UnitItem/state.js +20 -16
- package/es/modules/unit/components/UnitItem/state.js.map +1 -1
- package/es/modules/unit/components/UnitList/state.js +31 -27
- package/es/modules/unit/components/UnitList/state.js.map +1 -1
- package/es/modules/unit/components/UnitSortableTree/index.js +20 -1
- package/es/modules/unit/components/UnitSortableTree/index.js.map +1 -1
- package/es/modules/unit/components/UnitSortableTree/state.d.ts +3 -0
- package/es/modules/unit/components/UnitSortableTree/state.js +158 -138
- package/es/modules/unit/components/UnitSortableTree/state.js.map +1 -1
- package/es/modules/unit/components/UnitTabs/index.d.ts +2 -2
- package/es/modules/unit/controls/ContactSelect/state.js +40 -36
- package/es/modules/unit/controls/ContactSelect/state.js.map +1 -1
- package/es/modules/unit/controls/QuickDataIcon/index.d.ts +3 -3
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.js +12 -8
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.js.map +1 -1
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.d.ts +6 -5
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.js +68 -59
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.js.map +1 -1
- package/es/modules/unit/controls/ToolBar/index.js +1 -1
- package/es/modules/unit/controls/ToolBar/index.js.map +1 -1
- package/es/modules/unit/controls/ToolBar/state.js +62 -58
- package/es/modules/unit/controls/ToolBar/state.js.map +1 -1
- package/es/modules/unit/controls/UnitTypeFilter/state.js +59 -55
- package/es/modules/unit/controls/UnitTypeFilter/state.js.map +1 -1
- package/es/modules/unit/data/UnitContext/index.d.ts +0 -2
- package/es/modules/unit/data/UnitContext/index.js +24 -20
- package/es/modules/unit/data/UnitContext/index.js.map +1 -1
- package/es/modules/unit/data/UnitStore.d.ts +4 -0
- package/es/modules/unit/data/UnitStore.js +203 -180
- package/es/modules/unit/data/UnitStore.js.map +1 -1
- package/es/modules/unit/data/hooks/useTeamListEffect.d.ts +1 -1
- package/es/modules/unit/data/hooks/useTeamListEffect.js.map +1 -1
- package/es/modules/unit/data/hooks/useUnitListEffect.d.ts +1 -1
- package/es/modules/unit/data/hooks/useUnitListEffect.js.map +1 -1
- package/es/modules/unit/data/index.js +2 -0
- package/es/modules/unit/data/index.js.map +1 -1
- package/es/modules/unit/data/interfaces/index.js +3 -0
- package/es/modules/unit/data/interfaces/index.js.map +1 -1
- package/es/modules/unit/pages/UnitTreeView/state.js +14 -10
- package/es/modules/unit/pages/UnitTreeView/state.js.map +1 -1
- package/es/pages/TreeViewPage/state.js +14 -10
- package/es/pages/TreeViewPage/state.js.map +1 -1
- package/package.json +4 -4
- package/es/components/DocumentIconView/index.d.ts +0 -13
- package/es/components/DocumentIconView/index.js +0 -118
- package/es/components/DocumentIconView/index.js.map +0 -1
- package/es/components/DocumentIconView/index.less +0 -70
- package/es/data/FileStore/FileContext.d.ts +0 -6
- package/es/data/FileStore/FileContext.js +0 -40
- package/es/data/FileStore/FileContext.js.map +0 -1
- package/es/modules/unit/data/FileStore/FileContext.d.ts +0 -6
- package/es/modules/unit/data/FileStore/FileContext.js +0 -40
- package/es/modules/unit/data/FileStore/FileContext.js.map +0 -1
- package/es/modules/unit/data/FileStore/index.d.ts +0 -1
- package/es/modules/unit/data/FileStore/index.js +0 -2
- package/es/modules/unit/data/FileStore/index.js.map +0 -1
|
@@ -7,98 +7,102 @@ import { faFileAlt, faFileInvoice, faFolderPlus, faGameBoard, faJournalWhills, f
|
|
|
7
7
|
* @height Menu height 超出max-height Scrollbars
|
|
8
8
|
* @types 原始types list 数据
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
let State = /** @class */ (() => {
|
|
11
|
+
class State {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.items = [];
|
|
14
|
+
this.visible = false;
|
|
15
|
+
this.height = 0;
|
|
16
|
+
this.types = [];
|
|
17
|
+
}
|
|
18
|
+
/** Menu item click */
|
|
19
|
+
moreOperate({ key, domEvent }) {
|
|
20
|
+
domEvent.stopPropagation();
|
|
21
|
+
this.visible = false;
|
|
22
|
+
this.props.onItemClick(key);
|
|
23
|
+
}
|
|
24
|
+
/** Menu search 输入框内容变化时的回调 点击搜索或按下回车键时的回调*/
|
|
25
|
+
searchByKeWord(keyWord) {
|
|
26
|
+
this.items = this.lists.filter(({ name }) => name
|
|
27
|
+
.toLowerCase()
|
|
28
|
+
.replace(/\s*/g, "")
|
|
29
|
+
.indexOf(keyWord.toLowerCase().replace(/\s*/g, "")) !== -1);
|
|
30
|
+
}
|
|
31
|
+
/** Menu 显示状态改变时调用,参数为 visible*/
|
|
32
|
+
onVisibleChange(visible) {
|
|
33
|
+
this.visible = visible;
|
|
34
|
+
this.props.onCancelClick();
|
|
35
|
+
}
|
|
36
|
+
get lists() {
|
|
37
|
+
var _a;
|
|
38
|
+
const arr = [];
|
|
39
|
+
(_a = this.types) === null || _a === void 0 ? void 0 : _a.map((val) => {
|
|
40
|
+
switch (val) {
|
|
41
|
+
case "text":
|
|
42
|
+
arr.push({ name: "Text", type: "text", icon: faFileAlt });
|
|
43
|
+
break;
|
|
44
|
+
case "document":
|
|
45
|
+
arr.push({ name: "Folder", type: "document", icon: faFolderPlus });
|
|
46
|
+
break;
|
|
47
|
+
case "task":
|
|
48
|
+
arr.push({ name: "Task", type: "task", icon: faTasks });
|
|
49
|
+
break;
|
|
50
|
+
case "meeting":
|
|
51
|
+
arr.push({ name: "Meeting", type: "meeting", icon: faTasksAlt });
|
|
52
|
+
break;
|
|
53
|
+
case "board":
|
|
54
|
+
arr.push({ name: "Board", type: "board", icon: faGameBoard });
|
|
55
|
+
break;
|
|
56
|
+
case "graph":
|
|
57
|
+
arr.push({ name: "Graph", type: "graph", icon: faProjectDiagram });
|
|
58
|
+
break;
|
|
59
|
+
case "quotation":
|
|
60
|
+
arr.push({ name: "Quotation", type: "quotation", icon: faTable });
|
|
61
|
+
break;
|
|
62
|
+
case "dashboard":
|
|
63
|
+
arr.push({ name: "Dashboard", type: "dashboard", icon: faTachometerSlowest });
|
|
64
|
+
break;
|
|
65
|
+
case "invoice":
|
|
66
|
+
arr.push({ name: "Invoice", type: "invoice", icon: faFileInvoice });
|
|
67
|
+
break;
|
|
68
|
+
case "journal":
|
|
69
|
+
arr.push({ name: "Journal", type: "journal", icon: faJournalWhills });
|
|
70
|
+
break;
|
|
71
|
+
default:
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
return arr;
|
|
76
|
+
}
|
|
16
77
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
arr.push({ name: "Task", type: "task", icon: faTasks });
|
|
48
|
-
break;
|
|
49
|
-
case "meeting":
|
|
50
|
-
arr.push({ name: "Meeting", type: "meeting", icon: faTasksAlt });
|
|
51
|
-
break;
|
|
52
|
-
case "board":
|
|
53
|
-
arr.push({ name: "Board", type: "board", icon: faGameBoard });
|
|
54
|
-
break;
|
|
55
|
-
case "graph":
|
|
56
|
-
arr.push({ name: "Graph", type: "graph", icon: faProjectDiagram });
|
|
57
|
-
break;
|
|
58
|
-
case "quotation":
|
|
59
|
-
arr.push({ name: "Quotation", type: "quotation", icon: faTable });
|
|
60
|
-
break;
|
|
61
|
-
case "dashboard":
|
|
62
|
-
arr.push({ name: "Dashboard", type: "dashboard", icon: faTachometerSlowest });
|
|
63
|
-
break;
|
|
64
|
-
case "invoice":
|
|
65
|
-
arr.push({ name: "Invoice", type: "invoice", icon: faFileInvoice });
|
|
66
|
-
break;
|
|
67
|
-
case "journal":
|
|
68
|
-
arr.push({ name: "Journal", type: "journal", icon: faJournalWhills });
|
|
69
|
-
break;
|
|
70
|
-
default:
|
|
71
|
-
break;
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
return arr;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
__decorate([
|
|
78
|
-
observable
|
|
79
|
-
], State.prototype, "props", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
observable
|
|
82
|
-
], State.prototype, "items", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
observable
|
|
85
|
-
], State.prototype, "visible", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
observable
|
|
88
|
-
], State.prototype, "height", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
observable
|
|
91
|
-
], State.prototype, "types", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
action
|
|
94
|
-
], State.prototype, "moreOperate", null);
|
|
95
|
-
__decorate([
|
|
96
|
-
action
|
|
97
|
-
], State.prototype, "searchByKeWord", null);
|
|
98
|
-
__decorate([
|
|
99
|
-
action
|
|
100
|
-
], State.prototype, "onVisibleChange", null);
|
|
101
|
-
__decorate([
|
|
102
|
-
computed
|
|
103
|
-
], State.prototype, "lists", null);
|
|
78
|
+
__decorate([
|
|
79
|
+
observable
|
|
80
|
+
], State.prototype, "props", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
observable
|
|
83
|
+
], State.prototype, "items", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
observable
|
|
86
|
+
], State.prototype, "visible", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
observable
|
|
89
|
+
], State.prototype, "height", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
observable
|
|
92
|
+
], State.prototype, "types", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
action
|
|
95
|
+
], State.prototype, "moreOperate", null);
|
|
96
|
+
__decorate([
|
|
97
|
+
action
|
|
98
|
+
], State.prototype, "searchByKeWord", null);
|
|
99
|
+
__decorate([
|
|
100
|
+
action
|
|
101
|
+
], State.prototype, "onVisibleChange", null);
|
|
102
|
+
__decorate([
|
|
103
|
+
computed
|
|
104
|
+
], State.prototype, "lists", null);
|
|
105
|
+
return State;
|
|
106
|
+
})();
|
|
107
|
+
export { State };
|
|
104
108
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/AddDocDropdown/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EACN,SAAS,EACT,aAAa,EACb,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,OAAO,EACP,mBAAmB,EACnB,OAAO,EACP,UAAU,EACV,MAAM,kCAAkC,CAAC;AAY1C;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/AddDocDropdown/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EACN,SAAS,EACT,aAAa,EACb,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,OAAO,EACP,mBAAmB,EACnB,OAAO,EACP,UAAU,EACV,MAAM,kCAAkC,CAAC;AAY1C;;;;;GAKG;AACH;IAAA,MAAa,KAAK;QAAlB;YAEoB,UAAK,GAAU,EAAE,CAAC;YAClB,YAAO,GAAG,KAAK,CAAC;YAChB,WAAM,GAAG,CAAC,CAAC;YACX,UAAK,GAAe,EAAE,CAAC;QAsE3C,CAAC;QApEA,sBAAsB;QAEf,WAAW,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAO;YACxC,QAAQ,CAAC,eAAe,EAAE,CAAC;YAC3B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACr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ADC,MAAM;4CAKN;IAID;QADC,MAAM;+CASN;IAID;QADC,MAAM;gDAIN;IAGD;QADC,QAAQ;sCAwCR;IACF,YAAC;KAAA;SA3EY,KAAK"}
|
|
@@ -3,9 +3,9 @@ import "./index.less";
|
|
|
3
3
|
declare const AvatarItem: {
|
|
4
4
|
(props: {
|
|
5
5
|
id: string;
|
|
6
|
-
index?: number
|
|
7
|
-
disabled?: boolean
|
|
8
|
-
showName?: boolean
|
|
6
|
+
index?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
showName?: boolean;
|
|
9
9
|
}): JSX.Element;
|
|
10
10
|
defaultProps: {
|
|
11
11
|
showName: boolean;
|
|
@@ -2,51 +2,55 @@ import { __decorate } from "tslib";
|
|
|
2
2
|
import { observable } from "mobx";
|
|
3
3
|
/** color of member of random display for no url */
|
|
4
4
|
export const colorList = ["#765FEE", "#fe4066", "#FFC832", "#FF8F5E", "#3AC43A", "#FFC832"];
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
let State = /** @class */ (() => {
|
|
6
|
+
class State {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.avatarList = [];
|
|
9
|
+
this.members = [];
|
|
10
|
+
this.list = [];
|
|
11
|
+
this.items = [];
|
|
12
|
+
/** checked of id of members */
|
|
13
|
+
this.checkedIds = [];
|
|
14
|
+
// @observable public loading = false;
|
|
15
|
+
this.visible = false;
|
|
16
|
+
this.num = 0;
|
|
17
|
+
this.hasMore = false;
|
|
18
|
+
/** Keword of member */
|
|
19
|
+
this.keyword = "";
|
|
20
|
+
this.reload = false;
|
|
21
|
+
}
|
|
20
22
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
23
|
+
__decorate([
|
|
24
|
+
observable
|
|
25
|
+
], State.prototype, "avatarList", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
observable
|
|
28
|
+
], State.prototype, "members", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
observable
|
|
31
|
+
], State.prototype, "list", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
observable
|
|
34
|
+
], State.prototype, "items", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
observable
|
|
37
|
+
], State.prototype, "checkedIds", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
observable
|
|
40
|
+
], State.prototype, "visible", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
observable
|
|
43
|
+
], State.prototype, "num", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
observable
|
|
46
|
+
], State.prototype, "hasMore", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
observable
|
|
49
|
+
], State.prototype, "keyword", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
observable
|
|
52
|
+
], State.prototype, "reload", void 0);
|
|
53
|
+
return State;
|
|
54
|
+
})();
|
|
55
|
+
export { State };
|
|
52
56
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/AvatarList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAYlC,mDAAmD;AACnD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAE5F,
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/AvatarList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAYlC,mDAAmD;AACnD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAE5F;IAAA,MAAa,KAAK;QAAlB;YACoB,eAAU,GAAU,EAAE,CAAC;YACvB,YAAO,GAAU,EAAE,CAAC;YACpB,SAAI,GAAU,EAAE,CAAC;YACjB,UAAK,GAAU,EAAE,CAAC;YACrC,+BAA+B;YACZ,eAAU,GAAa,EAAE,CAAC;YAC7C,sCAAsC;YACnB,YAAO,GAAG,KAAK,CAAC;YAChB,QAAG,GAAG,CAAC,CAAC;YACR,YAAO,GAAG,KAAK,CAAC;YACnC,uBAAuB;YACJ,YAAO,GAAG,EAAE,CAAC;YACb,WAAM,GAAG,KAAK,CAAC;QACnC,CAAC;KAAA;IAbY;QAAX,UAAU;6CAA+B;IAC9B;QAAX,UAAU;0CAA4B;IAC3B;QAAX,UAAU;uCAAyB;IACxB;QAAX,UAAU;wCAA0B;IAEzB;QAAX,UAAU;6CAAkC;IAEjC;QAAX,UAAU;0CAAwB;IACvB;QAAX,UAAU;sCAAgB;IACf;QAAX,UAAU;0CAAwB;IAEvB;QAAX,UAAU;0CAAqB;IACpB;QAAX,UAAU;yCAAuB;IACnC,YAAC;KAAA;SAdY,KAAK"}
|
|
@@ -1,34 +1,38 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { computed, observable } from "mobx";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
|
|
3
|
+
let State = /** @class */ (() => {
|
|
4
|
+
class State {
|
|
5
|
+
get paths() {
|
|
6
|
+
var _a;
|
|
7
|
+
let list = [];
|
|
8
|
+
if (this.doc && this.doc.name) {
|
|
9
|
+
if ((_a = this.doc.path) === null || _a === void 0 ? void 0 : _a.length) {
|
|
10
|
+
list = [...this.doc.path, { id: this.doc.id, name: this.doc.name }];
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
list = [{ id: this.doc.id, name: this.doc.name }];
|
|
14
|
+
}
|
|
10
15
|
}
|
|
11
|
-
|
|
12
|
-
|
|
16
|
+
if (this.drivePath) {
|
|
17
|
+
const index = list.findIndex((v) => {
|
|
18
|
+
var _a;
|
|
19
|
+
return v.id == ((_a = this.drivePath) === null || _a === void 0 ? void 0 : _a.id);
|
|
20
|
+
});
|
|
21
|
+
list = index === -1 ? [this.drivePath, ...list] : [...list];
|
|
13
22
|
}
|
|
23
|
+
return list;
|
|
14
24
|
}
|
|
15
|
-
if (this.drivePath) {
|
|
16
|
-
const index = list.findIndex((v) => {
|
|
17
|
-
var _a;
|
|
18
|
-
return v.id == ((_a = this.drivePath) === null || _a === void 0 ? void 0 : _a.id);
|
|
19
|
-
});
|
|
20
|
-
list = index === -1 ? [this.drivePath, ...list] : [...list];
|
|
21
|
-
}
|
|
22
|
-
return list;
|
|
23
25
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
__decorate([
|
|
27
|
+
observable
|
|
28
|
+
], State.prototype, "doc", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
observable
|
|
31
|
+
], State.prototype, "drivePath", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
computed
|
|
34
|
+
], State.prototype, "paths", null);
|
|
35
|
+
return State;
|
|
36
|
+
})();
|
|
37
|
+
export { State };
|
|
34
38
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/BreadCrumbsHeader/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAS5C,
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/BreadCrumbsHeader/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAS5C;IAAA,MAAa,KAAK;QAKjB,IAAW,KAAK;;YACf,IAAI,IAAI,GAAQ,EAAE,CAAC;YACnB,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE;gBAC9B,UAAI,IAAI,CAAC,GAAG,CAAC,IAAI,0CAAE,MAAM,EAAE;oBAC1B,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;iBACpE;qBAAM;oBACN,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;iBAClD;aACD;YACD,IAAI,IAAI,CAAC,SAAS,EAAE;gBACnB,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAM,EAAE,EAAE;;oBACvC,OAAO,CAAC,CAAC,EAAE,WAAI,IAAI,CAAC,SAAS,0CAAE,EAAE,CAAA,CAAC;gBACnC,CAAC,CAAC,CAAC;gBACH,IAAI,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;aAC5D;YACD,OAAO,IAAI,CAAC;QACb,CAAC;KACD;IArBY;QAAX,UAAU;sCAAuB;IACtB;QAAX,UAAU;4CAA0B;IAGrC;QADC,QAAQ;sCAiBR;IACF,YAAC;KAAA;SAtBY,KAAK"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
1
|
import { Skeleton, message } from "@voplus/antd";
|
|
3
2
|
import { useDocument, useDocumentStore } from "../../data";
|
|
4
3
|
import DocumentItem from "../DocumentItem";
|
|
5
|
-
import
|
|
4
|
+
import React from "react";
|
|
6
5
|
import ToolBar from "../../controls/ToolBar";
|
|
7
6
|
import { getRouteByType } from "../helper";
|
|
8
7
|
import styles from "./index.less";
|
|
@@ -12,7 +11,6 @@ import { useObserver } from "mobx-react-lite";
|
|
|
12
11
|
const DocumentHeader = (props) => {
|
|
13
12
|
const id = props.id;
|
|
14
13
|
const documents = useDocumentStore();
|
|
15
|
-
const [store] = useState(new FileStore());
|
|
16
14
|
const document = useDocument(id, { reload: true, includes: "tags,versions" });
|
|
17
15
|
const asideContext = useAsideContentContext();
|
|
18
16
|
return useObserver(() => (React.createElement("div", { className: styles["module-view-header"] },
|
|
@@ -27,7 +25,7 @@ const DocumentHeader = (props) => {
|
|
|
27
25
|
}
|
|
28
26
|
/**move document*/
|
|
29
27
|
function onMove() {
|
|
30
|
-
|
|
28
|
+
documents.cut([id]);
|
|
31
29
|
}
|
|
32
30
|
/**change document status :Readonly */
|
|
33
31
|
async function onLock() {
|
|
@@ -41,12 +39,10 @@ const DocumentHeader = (props) => {
|
|
|
41
39
|
}
|
|
42
40
|
/**paste document*/
|
|
43
41
|
async function onPaste() {
|
|
44
|
-
if (
|
|
42
|
+
if (documents.moveIds.some((id) => id === props.id)) {
|
|
45
43
|
return message.warn("Cannot move to itself");
|
|
46
44
|
}
|
|
47
|
-
|
|
48
|
-
documents.move(store.moveIds, props.id);
|
|
49
|
-
});
|
|
45
|
+
documents.paste(props.id);
|
|
50
46
|
}
|
|
51
47
|
};
|
|
52
48
|
export default DocumentHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DocumentHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DocumentHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,oCAAoC;AACpC,MAAM,cAAc,GAAG,CAAC,KAIvB,EAAE,EAAE;IACJ,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;IAC9E,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAE9C,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,6BAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC;QAC3C,oBAAC,QAAQ,IAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM;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,CAAC,CAAC;IAChC,CAAC;IACD,mBAAmB;IACnB,KAAK,UAAU,OAAO;QACrB,IAAI,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAU,EAAE,EAAE,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,EAAE;YAC5D,OAAO,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;SAC7C;QAED,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC;AACF,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
|
@@ -1,48 +1,52 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { computed, observable } from "mobx";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
let State = /** @class */ (() => {
|
|
4
|
+
class State {
|
|
5
|
+
constructor(documentStore) {
|
|
6
|
+
this.documentStore = documentStore;
|
|
7
|
+
this.id = "";
|
|
8
|
+
this.editable = false;
|
|
9
|
+
this.isHover = false;
|
|
10
|
+
this.loading = false;
|
|
11
|
+
this.visible = false;
|
|
12
|
+
this.modalType = "";
|
|
13
|
+
this.reload = false;
|
|
14
|
+
}
|
|
15
|
+
get readonly() {
|
|
16
|
+
return this.item.readonly;
|
|
17
|
+
}
|
|
13
18
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
], State.prototype, "readonly", null);
|
|
19
|
+
__decorate([
|
|
20
|
+
observable
|
|
21
|
+
], State.prototype, "props", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
observable
|
|
24
|
+
], State.prototype, "item", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
observable
|
|
27
|
+
], State.prototype, "id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
observable
|
|
30
|
+
], State.prototype, "editable", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
observable
|
|
33
|
+
], State.prototype, "isHover", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
observable
|
|
36
|
+
], State.prototype, "loading", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
observable
|
|
39
|
+
], State.prototype, "visible", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
observable
|
|
42
|
+
], State.prototype, "modalType", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
observable
|
|
45
|
+
], State.prototype, "reload", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
computed
|
|
48
|
+
], State.prototype, "readonly", null);
|
|
49
|
+
return State;
|
|
50
|
+
})();
|
|
51
|
+
export { State };
|
|
48
52
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/DocumentItem/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAU,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAiBpD,
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/DocumentItem/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAU,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAiBpD;IAAA,MAAa,KAAK;QAWjB,YAA2B,aAA4B;YAA5B,kBAAa,GAAb,aAAa,CAAe;YARpC,OAAE,GAAG,EAAE,CAAC;YACR,aAAQ,GAAG,KAAK,CAAC;YACjB,YAAO,GAAG,KAAK,CAAC;YAChB,YAAO,GAAG,KAAK,CAAC;YAChB,YAAO,GAAG,KAAK,CAAC;YAChB,cAAS,GAAG,EAAE,CAAC;YACf,WAAM,GAAG,KAAK,CAAC;QAEwB,CAAC;QAG3D,IAAW,QAAQ;YAClB,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC3B,CAAC;KACD;IAhBY;QAAX,UAAU;wCAAiC;IAChC;QAAX,UAAU;uCAAwB;IACvB;QAAX,UAAU;qCAAgB;IACf;QAAX,UAAU;2CAAyB;IACxB;QAAX,UAAU;0CAAwB;IACvB;QAAX,UAAU;0CAAwB;IACvB;QAAX,UAAU;0CAAwB;IACvB;QAAX,UAAU;4CAAuB;IACtB;QAAX,UAAU;yCAAuB;IAKlC;QADC,QAAQ;yCAGR;IACF,YAAC;KAAA;SAjBY,KAAK"}
|