@voplus/morpho-document 1.0.0-dev214 → 1.0.0-dev215
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 +7 -0
- package/es/components/AddDocDropdown/index.js +12 -1
- package/es/components/AddDocDropdown/index.js.map +1 -1
- package/es/components/AddDocDropdown/state.js +7 -1
- package/es/components/AddDocDropdown/state.js.map +1 -1
- package/es/components/BreadCrumbsHeader/index.d.ts +9 -0
- package/es/components/BreadCrumbsHeader/index.js +30 -0
- package/es/components/BreadCrumbsHeader/index.js.map +1 -0
- package/es/components/BreadCrumbsHeader/index.less +10 -0
- package/es/components/BreadCrumbsHeader/state.d.ts +10 -0
- package/es/components/BreadCrumbsHeader/state.js +34 -0
- package/es/components/BreadCrumbsHeader/state.js.map +1 -0
- package/es/components/DocumentItem/index.js +2 -8
- package/es/components/DocumentItem/index.js.map +1 -1
- package/es/components/DocumentList/Header.d.ts +13 -0
- package/es/components/DocumentList/Header.js +16 -0
- package/es/components/DocumentList/Header.js.map +1 -0
- package/es/components/DocumentList/index.js +29 -29
- package/es/components/DocumentList/index.js.map +1 -1
- package/es/components/DocumentList/index.less +39 -15
- package/es/components/DocumentList/state.d.ts +5 -8
- package/es/components/DocumentList/state.js +21 -38
- package/es/components/DocumentList/state.js.map +1 -1
- package/es/components/DocumentListView/index.d.ts +3 -2
- package/es/components/DocumentListView/index.js +31 -54
- package/es/components/DocumentListView/index.js.map +1 -1
- package/es/components/DocumentListView/state.d.ts +1 -36
- package/es/components/DocumentListView/state.js +1 -100
- package/es/components/DocumentListView/state.js.map +1 -1
- package/es/components/DocumentSortableTree/index.js +31 -4
- package/es/components/DocumentSortableTree/index.js.map +1 -1
- package/es/components/DocumentSortableTree/state.d.ts +7 -6
- package/es/components/DocumentSortableTree/state.js +23 -32
- package/es/components/DocumentSortableTree/state.js.map +1 -1
- package/es/components/DocumentTabs/index.js +2 -4
- package/es/components/DocumentTabs/index.js.map +1 -1
- package/es/components/DocumentTree/index.js +1 -1
- package/es/components/DocumentTree/index.js.map +1 -1
- package/es/components/FileViewer/ImageViewer.js +4 -3
- package/es/components/FileViewer/ImageViewer.js.map +1 -1
- package/es/components/FileViewer/PDFViewer.js +4 -2
- package/es/components/FileViewer/PDFViewer.js.map +1 -1
- package/es/components/FileViewer/Preview.js +12 -10
- package/es/components/FileViewer/Preview.js.map +1 -1
- package/es/components/FileViewer/index.less +33 -0
- package/es/components/NewDocumentForm/index.d.ts +1 -1
- package/es/components/NewDocumentForm/index.js +3 -1
- package/es/components/NewDocumentForm/index.js.map +1 -1
- package/es/components/QuickAccessSearch/index.js +5 -4
- package/es/components/QuickAccessSearch/index.js.map +1 -1
- package/es/components/QuickViewDialog/QuickSubTab/index.d.ts +10 -4
- package/es/components/QuickViewDialog/QuickSubTab/index.js +16 -16
- package/es/components/QuickViewDialog/QuickSubTab/index.js.map +1 -1
- package/es/components/QuickViewDialog/QuickSubTab/index.less +7 -19
- package/es/components/QuickViewDialog/index.js +2 -1
- package/es/components/QuickViewDialog/index.js.map +1 -1
- package/es/components/QuickViewDialog/index.less +8 -1
- package/es/components/helper.d.ts +1 -1
- package/es/components/helper.js +4 -0
- package/es/components/helper.js.map +1 -1
- package/es/components/styles/common.less +4 -1
- package/es/controls/filters/DocumentTypeFilter/index.d.ts +3 -0
- package/es/controls/filters/DocumentTypeFilter/index.js +21 -0
- package/es/controls/filters/DocumentTypeFilter/index.js.map +1 -0
- package/es/controls/filters/DocumentTypeFilter/state.d.ts +18 -0
- package/es/controls/filters/DocumentTypeFilter/state.js +57 -0
- package/es/controls/filters/DocumentTypeFilter/state.js.map +1 -0
- package/es/controls/filters/index.d.ts +1 -0
- package/es/controls/filters/index.js +1 -0
- package/es/controls/filters/index.js.map +1 -1
- package/es/data/DocumentStore/hooks/useDocumentListEffect.d.ts +2 -1
- package/es/data/DocumentStore/hooks/useDocumentListEffect.js +2 -2
- package/es/data/DocumentStore/hooks/useDocumentListEffect.js.map +1 -1
- package/es/data/DocumentType.d.ts +3 -1
- package/es/data/DocumentType.js +3 -1
- package/es/data/DocumentType.js.map +1 -1
- package/es/modules/unit/components/ActivityLog/index.d.ts +6 -0
- package/es/modules/unit/components/ActivityLog/index.js +62 -0
- package/es/modules/unit/components/ActivityLog/index.js.map +1 -0
- package/es/modules/unit/components/ActivityLog/index.less +64 -0
- package/es/modules/unit/components/ActivityLog/state.d.ts +14 -0
- package/es/modules/unit/components/ActivityLog/state.js +51 -0
- package/es/modules/unit/components/ActivityLog/state.js.map +1 -0
- package/es/modules/unit/components/BreadCrumbsHeader/index.d.ts +6 -0
- package/es/modules/unit/components/BreadCrumbsHeader/index.js +27 -0
- package/es/modules/unit/components/BreadCrumbsHeader/index.js.map +1 -0
- package/es/modules/unit/components/BreadCrumbsHeader/index.less +10 -0
- package/es/modules/unit/components/BreadCrumbsHeader/state.d.ts +5 -0
- package/es/modules/unit/components/BreadCrumbsHeader/state.js +19 -0
- package/es/modules/unit/components/BreadCrumbsHeader/state.js.map +1 -0
- package/es/modules/unit/components/NewUnitForm/index.d.ts +11 -0
- package/es/modules/unit/components/NewUnitForm/index.js +51 -0
- package/es/modules/unit/components/NewUnitForm/index.js.map +1 -0
- package/es/modules/unit/components/NewUnitForm/index.less +33 -0
- package/es/modules/unit/components/NewUnitForm/state.d.ts +22 -0
- package/es/modules/unit/components/NewUnitForm/state.js +49 -0
- package/es/modules/unit/components/NewUnitForm/state.js.map +1 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/index.d.ts +4 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/index.js +23 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/index.js.map +1 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/node-content-renderer.d.ts +3 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/node-content-renderer.js +58 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/node-content-renderer.js.map +1 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/node-content-renderer.less +46 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/tree-node-renderer.d.ts +3 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/tree-node-renderer.js +73 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/tree-node-renderer.js.map +1 -0
- package/es/modules/unit/components/SortableTreeUnitTheme/tree-node-renderer.less +12 -0
- package/es/modules/unit/components/SubUnitList/index.d.ts +5 -0
- package/es/modules/unit/components/SubUnitList/index.js +77 -0
- package/es/modules/unit/components/SubUnitList/index.js.map +1 -0
- package/es/modules/unit/components/SubUnitList/index.less +13 -0
- package/es/modules/unit/components/SubUnitList/state.d.ts +17 -0
- package/es/modules/unit/components/SubUnitList/state.js +41 -0
- package/es/modules/unit/components/SubUnitList/state.js.map +1 -0
- package/es/modules/unit/components/UnitAvatar/index.d.ts +1 -0
- package/es/modules/unit/components/UnitAvatar/index.js +4 -3
- package/es/modules/unit/components/UnitAvatar/index.js.map +1 -1
- package/es/modules/unit/components/UnitAvatar/index.less +2 -3
- package/es/modules/unit/components/UnitDetails/index.js +98 -7
- package/es/modules/unit/components/UnitDetails/index.js.map +1 -1
- package/es/modules/unit/components/UnitDetails/index.less +41 -5
- package/es/modules/unit/components/UnitDetails/state.d.ts +8 -0
- package/es/modules/unit/components/UnitDetails/state.js +24 -0
- package/es/modules/unit/components/UnitDetails/state.js.map +1 -0
- package/es/modules/unit/components/UnitHead/index.d.ts +2 -0
- package/es/modules/unit/components/UnitHead/index.js +31 -7
- package/es/modules/unit/components/UnitHead/index.js.map +1 -1
- package/es/modules/unit/components/UnitHead/index.less +18 -3
- package/es/modules/unit/components/UnitHead/state.d.ts +11 -0
- package/es/modules/unit/components/UnitHead/state.js +8 -0
- package/es/modules/unit/components/UnitHead/state.js.map +1 -0
- package/es/modules/unit/components/UnitItem/DefaultUnitItem.d.ts +4 -0
- package/es/modules/unit/components/UnitItem/DefaultUnitItem.js +29 -0
- package/es/modules/unit/components/UnitItem/DefaultUnitItem.js.map +1 -0
- package/es/modules/unit/components/UnitItem/SubUnitItem.d.ts +4 -0
- package/es/modules/unit/components/UnitItem/SubUnitItem.js +35 -0
- package/es/modules/unit/components/UnitItem/SubUnitItem.js.map +1 -0
- package/es/modules/unit/components/UnitItem/index.less +23 -5
- package/es/modules/unit/components/UnitItem/state.d.ts +20 -0
- package/es/modules/unit/components/UnitItem/state.js +20 -0
- package/es/modules/unit/components/UnitItem/state.js.map +1 -0
- package/es/modules/unit/components/UnitList/index.d.ts +4 -0
- package/es/modules/unit/components/UnitList/index.js +35 -0
- package/es/modules/unit/components/UnitList/index.js.map +1 -0
- package/es/modules/unit/components/UnitList/state.d.ts +15 -0
- package/es/modules/unit/components/UnitList/state.js +31 -0
- package/es/modules/unit/components/UnitList/state.js.map +1 -0
- package/es/modules/unit/components/UnitPropertiesView/index.d.ts +6 -0
- package/es/modules/unit/components/UnitPropertiesView/index.js +22 -0
- package/es/modules/unit/components/UnitPropertiesView/index.js.map +1 -0
- package/es/modules/unit/components/UnitSortableTree/index.d.ts +10 -0
- package/es/modules/unit/components/UnitSortableTree/index.js +54 -0
- package/es/modules/unit/components/UnitSortableTree/index.js.map +1 -0
- package/es/modules/unit/components/UnitSortableTree/state.d.ts +50 -0
- package/es/modules/unit/components/UnitSortableTree/state.js +151 -0
- package/es/modules/unit/components/UnitSortableTree/state.js.map +1 -0
- package/es/modules/unit/components/UnitTabs/index.d.ts +6 -0
- package/es/modules/unit/components/UnitTabs/index.js +27 -0
- package/es/modules/unit/components/UnitTabs/index.js.map +1 -0
- package/es/modules/unit/controls/QuickDataIcon/UnitTeamsIcon/index.d.ts +6 -0
- package/es/modules/unit/controls/QuickDataIcon/UnitTeamsIcon/index.js +32 -0
- package/es/modules/unit/controls/QuickDataIcon/UnitTeamsIcon/index.js.map +1 -0
- package/es/modules/unit/{components → controls}/QuickDataIcon/index.d.ts +1 -5
- package/es/modules/unit/controls/QuickDataIcon/index.js +36 -0
- package/es/modules/unit/controls/QuickDataIcon/index.js.map +1 -0
- package/es/modules/unit/controls/QuickDataIcon/index.less +0 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.d.ts +13 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.js +59 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.js.map +1 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/index.less +20 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.d.ts +34 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.js +71 -0
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.js.map +1 -0
- package/es/modules/unit/controls/ToolBar/index.d.ts +12 -0
- package/es/modules/unit/controls/ToolBar/index.js +54 -0
- package/es/modules/unit/controls/ToolBar/index.js.map +1 -0
- package/es/modules/unit/controls/ToolBar/index.less +18 -0
- package/es/modules/unit/controls/ToolBar/state.d.ts +40 -0
- package/es/modules/unit/controls/ToolBar/state.js +50 -0
- package/es/modules/unit/controls/ToolBar/state.js.map +1 -0
- package/es/modules/unit/controls/UnitTypeFilter/index.d.ts +3 -0
- package/es/modules/unit/controls/UnitTypeFilter/index.js +21 -0
- package/es/modules/unit/controls/UnitTypeFilter/index.js.map +1 -0
- package/es/modules/unit/controls/UnitTypeFilter/state.d.ts +18 -0
- package/es/modules/unit/controls/UnitTypeFilter/state.js +63 -0
- package/es/modules/unit/controls/UnitTypeFilter/state.js.map +1 -0
- package/es/modules/unit/data/ContactStore.d.ts +82 -0
- package/es/modules/unit/data/ContactStore.js +140 -0
- package/es/modules/unit/data/ContactStore.js.map +1 -0
- package/es/modules/unit/data/FileStore/FileContext.d.ts +6 -0
- package/es/modules/unit/data/FileStore/FileContext.js +40 -0
- package/es/modules/unit/data/FileStore/FileContext.js.map +1 -0
- package/es/modules/unit/data/FileStore/index.d.ts +1 -0
- package/es/modules/unit/data/FileStore/index.js +2 -0
- package/es/modules/unit/data/FileStore/index.js.map +1 -0
- package/es/modules/unit/data/StoreContext/index.d.ts +3 -0
- package/es/modules/unit/data/StoreContext/index.js +4 -0
- package/es/modules/unit/data/StoreContext/index.js.map +1 -0
- package/es/modules/unit/data/UnitContext/index.d.ts +20 -0
- package/es/modules/unit/data/UnitContext/index.js +32 -0
- package/es/modules/unit/data/UnitContext/index.js.map +1 -0
- package/es/modules/unit/data/hooks.d.ts +24 -0
- package/es/modules/unit/data/hooks.js +65 -0
- package/es/modules/unit/data/hooks.js.map +1 -0
- package/es/modules/unit/data/index.d.ts +3 -0
- package/es/modules/unit/data/index.js +3 -0
- package/es/modules/unit/data/index.js.map +1 -0
- package/es/modules/unit/data/interfaces/IAddress.d.ts +14 -0
- package/es/modules/unit/data/interfaces/IAddress.js +1 -0
- package/es/modules/unit/data/interfaces/IAddress.js.map +1 -0
- package/es/modules/unit/data/interfaces/IContact.d.ts +45 -0
- package/es/modules/unit/data/interfaces/IContact.js +1 -0
- package/es/modules/unit/data/interfaces/IContact.js.map +1 -0
- package/es/modules/unit/data/interfaces/IEntityName.d.ts +6 -0
- package/es/modules/unit/data/interfaces/IEntityName.js +1 -0
- package/es/modules/unit/data/interfaces/IEntityName.js.map +1 -0
- package/es/modules/unit/data/interfaces/index.d.ts +3 -0
- package/es/modules/unit/data/interfaces/index.js +1 -0
- package/es/modules/unit/data/interfaces/index.js.map +1 -0
- package/es/modules/unit/pages/UnitDefaultView/index.d.ts +3 -0
- package/es/modules/unit/pages/UnitDefaultView/index.js +47 -0
- package/es/modules/unit/pages/UnitDefaultView/index.js.map +1 -0
- package/es/modules/unit/pages/UnitDefaultView/index.less +17 -0
- package/es/modules/unit/pages/UnitListView/index.d.ts +3 -0
- package/es/modules/unit/pages/UnitListView/index.js +10 -0
- package/es/modules/unit/pages/UnitListView/index.js.map +1 -0
- package/es/modules/unit/pages/UnitTreeView/index.d.ts +3 -0
- package/es/modules/unit/pages/UnitTreeView/index.js +47 -0
- package/es/modules/unit/pages/UnitTreeView/index.js.map +1 -0
- package/es/modules/unit/pages/UnitTreeView/index.less +31 -0
- package/es/modules/unit/pages/UnitTreeView/state.d.ts +5 -0
- package/es/modules/unit/pages/UnitTreeView/state.js +14 -0
- package/es/modules/unit/pages/UnitTreeView/state.js.map +1 -0
- package/es/pages/TreeViewPage/index.js +27 -20
- package/es/pages/TreeViewPage/index.js.map +1 -1
- package/es/pages/TreeViewPage/index.less +28 -19
- package/es/pages/TreeViewPage/state.d.ts +5 -0
- package/es/pages/TreeViewPage/state.js +14 -0
- package/es/pages/TreeViewPage/state.js.map +1 -0
- package/es/routes.d.ts +18 -0
- package/es/routes.js +40 -1
- package/es/routes.js.map +1 -1
- package/package.json +3 -1
- package/es/controls/DocumentTypeFilter/index.js +0 -54
- package/es/controls/DocumentTypeFilter/index.js.map +0 -1
- package/es/modules/unit/components/QuickDataIcon/UnitTeamsIcon/index.d.ts +0 -14
- package/es/modules/unit/components/QuickDataIcon/UnitTeamsIcon/index.js +0 -28
- package/es/modules/unit/components/QuickDataIcon/UnitTeamsIcon/index.js.map +0 -1
- package/es/modules/unit/components/QuickDataIcon/index.js +0 -45
- package/es/modules/unit/components/QuickDataIcon/index.js.map +0 -1
- package/es/modules/unit/components/UnitItem/index.d.ts +0 -6
- package/es/modules/unit/components/UnitItem/index.js +0 -19
- package/es/modules/unit/components/UnitItem/index.js.map +0 -1
- /package/es/modules/unit/components/{QuickDataIcon → UnitList}/index.less +0 -0
- /package/es/{controls/DocumentTypeFilter/index.d.ts → modules/unit/components/UnitPropertiesView/index.less} +0 -0
- /package/es/modules/unit/{components → controls}/QuickDataIcon/UnitTeamsIcon/index.less +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ContactStore } from "../../data";
|
|
2
|
+
export declare class State {
|
|
3
|
+
private _store;
|
|
4
|
+
constructor(_store: ContactStore);
|
|
5
|
+
Params: {
|
|
6
|
+
parentId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
/** new unit params */
|
|
11
|
+
params: {
|
|
12
|
+
parentId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
/** loading */
|
|
17
|
+
loading: boolean;
|
|
18
|
+
/** new unit submit function */
|
|
19
|
+
onSubmit: () => Promise<any>;
|
|
20
|
+
/** input KeyDown */
|
|
21
|
+
onKeyDown(e: any): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { action, observable } from "mobx";
|
|
3
|
+
import { message } from "@voplus/antd";
|
|
4
|
+
export class State {
|
|
5
|
+
constructor(_store) {
|
|
6
|
+
this._store = _store;
|
|
7
|
+
this.Params = {
|
|
8
|
+
parentId: "",
|
|
9
|
+
name: "",
|
|
10
|
+
type: ""
|
|
11
|
+
};
|
|
12
|
+
/** new unit params */
|
|
13
|
+
this.params = this.Params;
|
|
14
|
+
/** loading */
|
|
15
|
+
this.loading = false;
|
|
16
|
+
/** new unit submit function */
|
|
17
|
+
this.onSubmit = async () => {
|
|
18
|
+
if (!this.params.name)
|
|
19
|
+
return message.warning("Title is required!");
|
|
20
|
+
this.loading = true;
|
|
21
|
+
const name = this.params.name;
|
|
22
|
+
await this._store.createFromType({
|
|
23
|
+
type: this.params.type,
|
|
24
|
+
name: name,
|
|
25
|
+
parentId: this.params.parentId
|
|
26
|
+
});
|
|
27
|
+
this.loading = false;
|
|
28
|
+
// this.params.name = this.Params.name;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/** input KeyDown */
|
|
32
|
+
onKeyDown(e) {
|
|
33
|
+
if (e.keyCode !== 27)
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
__decorate([
|
|
38
|
+
observable
|
|
39
|
+
], State.prototype, "params", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
observable
|
|
42
|
+
], State.prototype, "loading", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
action
|
|
45
|
+
], State.prototype, "onSubmit", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
action
|
|
48
|
+
], State.prototype, "onKeyDown", null);
|
|
49
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/NewUnitForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,OAAO,KAAK;IACjB,YAA2B,MAAoB;QAApB,WAAM,GAAN,MAAM,CAAc;QACxC,WAAM,GAAG;YACf,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,EAAE;YACR,IAAI,EAAE,EAAE;SACR,CAAC;QACF,sBAAsB;QACH,WAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QACxC,cAAc;QACK,YAAO,GAAG,KAAK,CAAC;QAEnC,+BAA+B;QAExB,aAAQ,GAAG,KAAK,IAAI,EAAE;YAC5B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI;gBAAE,OAAO,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;YACpE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACpB,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YAC9B,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;gBAChC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI;gBACtB,IAAI,EAAE,IAAI;gBACV,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;aAC9B,CAAC,CAAC;YACH,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,uCAAuC;QACxC,CAAC,CAAC;IAxBgD,CAAC;IA0BnD,oBAAoB;IAEb,SAAS,CAAC,CAAM;QACtB,IAAI,CAAC,CAAC,OAAO,KAAK,EAAE;YAAE,OAAO;IAC9B,CAAC;CACD;AAxBY;IAAX,UAAU;qCAA6B;AAE5B;IAAX,UAAU;sCAAwB;AAInC;IADC,MAAM;uCAYL;AAIF;IADC,MAAM;sCAGN"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 "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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/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,+BAA+B,CAAC;AAGvC,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"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { Spin } from "@voplus/antd";
|
|
4
|
+
import UnitItem from "../UnitItem/DefaultUnitItem";
|
|
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.loading && 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", Object.assign({ 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, className: "unit-tree-item" })))))));
|
|
56
|
+
};
|
|
57
|
+
export default FileThemeNodeContentRenderer;
|
|
58
|
+
//# sourceMappingURL=node-content-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-content-renderer.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/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,cAAc,CAAC;AACpC,OAAO,QAAQ,MAAM,6BAA6B,CAAC;AACnD,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,O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0 +1,46 @@
|
|
|
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
|
+
padding: 10px 15px;
|
|
32
|
+
border-bottom: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.doc-moveHandle {
|
|
38
|
+
width: 20px;
|
|
39
|
+
font-size: 20px;
|
|
40
|
+
color: #ccc;
|
|
41
|
+
cursor: move;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
z-index: 1;
|
|
46
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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", Object.assign({}, 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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-node-renderer.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/SortableTreeUnitTheme/tree-node-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;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YACN,OAAO;YACP,WAAW;SACX,CAAC,CACF,CACI,CACD,CACN,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { BatchHeader, DeleteButton, MoveButton } from "@voplus/morpho-ui/es/components/layout/ListView/headers";
|
|
3
|
+
import { DocumentStatusFilter, FlagFilter } from "../../../../controls/filters";
|
|
4
|
+
import { FilterViewContext, FilterViewContextState } from "@voplus/morpho-ui/es/data/FilterViewContext";
|
|
5
|
+
import { useContactListEffect, useContactStore } from "../../data";
|
|
6
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
7
|
+
import React, { useEffect, useState } from "react";
|
|
8
|
+
import { State } from "./state";
|
|
9
|
+
import { FileStore } from "../../data/FileStore/FileContext";
|
|
10
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
11
|
+
import NewUnitForm from "../NewUnitForm";
|
|
12
|
+
import UnitItem from "../UnitItem/SubUnitItem";
|
|
13
|
+
import classnames from "classnames";
|
|
14
|
+
import { toJS } from "mobx";
|
|
15
|
+
import { useDeepMemo } from "@voplus/morpho-data";
|
|
16
|
+
import { useObserver } from "mobx-react-lite";
|
|
17
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
18
|
+
const SubUnitList = (props) => {
|
|
19
|
+
const { readonly, parentId } = props;
|
|
20
|
+
const store = useContactStore();
|
|
21
|
+
const [files] = useState(new FileStore());
|
|
22
|
+
const state = useDeepMemo(() => new State(), [props.parentId]);
|
|
23
|
+
const [filterState] = useState(new FilterViewContextState());
|
|
24
|
+
// filterState.statusMenus = state.statusList;
|
|
25
|
+
/** 建立 ListView 和useContactListEffect所需的ListDataState. 会根据parentId重建所以不需reset. */
|
|
26
|
+
const list = useCreateListDataState({
|
|
27
|
+
filterDefaults: {
|
|
28
|
+
filters: [
|
|
29
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: parentId },
|
|
30
|
+
{
|
|
31
|
+
c: "Type",
|
|
32
|
+
o: "contains",
|
|
33
|
+
l: "And",
|
|
34
|
+
v1: toJS(JSON.stringify(["Organization"]))
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}, [parentId]);
|
|
39
|
+
/** 如果 list.filters.options变更了就重渲染,使下一行的useContactListEffect 可以接收新参数*/
|
|
40
|
+
useRenderOnChange(() => list.filters.options);
|
|
41
|
+
/** 把ListDataState传给useContactListEffect,使之可以自動更新loading, hasmore. */
|
|
42
|
+
useContactListEffect(list, result => list.union(result), list.filters.options);
|
|
43
|
+
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
44
|
+
// useAutoUpdateListData(list, d => d.parentId === state.id);
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
state.clearAdd();
|
|
47
|
+
filterState.status = [];
|
|
48
|
+
filterState.flags = [];
|
|
49
|
+
}, [parentId]);
|
|
50
|
+
return useObserver(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
51
|
+
React.createElement(FilterViewContext.Provider, { value: filterState },
|
|
52
|
+
React.createElement("div", { className: classnames("sub-units-list", props.className) },
|
|
53
|
+
React.createElement(ListView, { renderId: parentId, headerProps: {
|
|
54
|
+
header: (React.createElement(BatchHeader, { viewTitle: "Sub-Units", buttons: [
|
|
55
|
+
React.createElement(DeleteButton, { execute: onDelete, key: "DeleteButton" }),
|
|
56
|
+
React.createElement(MoveButton, { execute: onMove, key: "MoveButton" })
|
|
57
|
+
] })),
|
|
58
|
+
addAble: !readonly,
|
|
59
|
+
filterViewProps: {
|
|
60
|
+
columns: [React.createElement(DocumentStatusFilter, { key: "Status" }), React.createElement(FlagFilter, { key: "Flag" })]
|
|
61
|
+
},
|
|
62
|
+
onAdd: () => (state.addAble = !state.addAble)
|
|
63
|
+
}, moveAfter: moveAfter, renderItem: ({ item, index, multiple, connectDragSource }) => (React.createElement(UnitItem, { id: item.id, index: index, type: "sub", multiple: multiple, reload: !!readonly })) }),
|
|
64
|
+
state.addAble && (React.createElement(NewUnitForm, { parentId: props.parentId, simple: true, type: "Organization", onSave: () => state.clearAdd(), onCancel: () => state.clearAdd() })))))));
|
|
65
|
+
function onMove(state) {
|
|
66
|
+
files.onMove(state.ids);
|
|
67
|
+
}
|
|
68
|
+
// order by sub unit
|
|
69
|
+
async function moveAfter(id, afterId) {
|
|
70
|
+
await store.moveAfter(id, afterId);
|
|
71
|
+
}
|
|
72
|
+
async function onDelete(state) {
|
|
73
|
+
await store.delete(state.ids[0]);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
export default SubUnitList;
|
|
77
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/SubUnitList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACN,WAAW,EACX,YAAY,EACZ,UAAU,EACV,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EACN,iBAAiB,EACjB,sBAAsB,EACtB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAY,oBAAoB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CA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;IAClC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IContact } from "../../data";
|
|
2
|
+
export declare type UnitListProps = {
|
|
3
|
+
parentId: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
scrollParentRef?: any;
|
|
6
|
+
header?: boolean;
|
|
7
|
+
readonly?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare class State {
|
|
10
|
+
props: UnitListProps;
|
|
11
|
+
list: IContact[];
|
|
12
|
+
addAble: boolean;
|
|
13
|
+
clearAdd(): void;
|
|
14
|
+
onMove(ids: string[]): void;
|
|
15
|
+
moveAfter(id: string, afterId: string, list: any[]): Promise<void>;
|
|
16
|
+
onDelete(ids: string[]): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { action, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.list = [];
|
|
6
|
+
this.addAble = false;
|
|
7
|
+
}
|
|
8
|
+
clearAdd() {
|
|
9
|
+
this.addAble = false;
|
|
10
|
+
}
|
|
11
|
+
onMove(ids) {
|
|
12
|
+
// store.onMove(ids);
|
|
13
|
+
}
|
|
14
|
+
// order by sub task
|
|
15
|
+
async moveAfter(id, afterId, list) {
|
|
16
|
+
// await taskStore.moveAfter(id, afterId);
|
|
17
|
+
// this.list = list;
|
|
18
|
+
}
|
|
19
|
+
async onDelete(ids) {
|
|
20
|
+
// await taskStore.delete(ids, { DeleteChilds: true });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
observable
|
|
25
|
+
], State.prototype, "list", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
observable
|
|
28
|
+
], State.prototype, "addAble", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
action
|
|
31
|
+
], State.prototype, "clearAdd", null);
|
|
32
|
+
__decorate([
|
|
33
|
+
action
|
|
34
|
+
], State.prototype, "onMove", null);
|
|
35
|
+
__decorate([
|
|
36
|
+
action
|
|
37
|
+
], State.prototype, "moveAfter", null);
|
|
38
|
+
__decorate([
|
|
39
|
+
action
|
|
40
|
+
], State.prototype, "onDelete", null);
|
|
41
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/SubUnitList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAY,UAAU,EAAQ,MAAM,MAAM,CAAC;AAc1D,MAAM,OAAO,KAAK;IAAlB;QAEoB,SAAI,GAAe,EAAE,CAAC;QACtB,YAAO,GAAG,KAAK,CAAC;IAuBpC,CAAC;IApBO,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACtB,CAAC;IAGM,MAAM,CAAC,GAAa;QAC1B,qBAAqB;IACtB,CAAC;IAED,oBAAoB;IAEb,KAAK,CAAC,SAAS,CAAC,EAAU,EAAE,OAAe,EAAE,IAAW;QAC9D,0CAA0C;QAC1C,oBAAoB;IACrB,CAAC;IAGM,KAAK,CAAC,QAAQ,CAAC,GAAa;QAClC,uDAAuD;IACxD,CAAC;CACD;AAxBY;IAAX,UAAU;mCAA8B;AAC7B;IAAX,UAAU;sCAAwB;AAGnC;IADC,MAAM;qCAGN;AAGD;IADC,MAAM;mCAGN;AAID;IADC,MAAM;sCAIN;AAGD;IADC,MAAM;qCAGN"}
|
|
@@ -2,17 +2,18 @@ import "./index.less";
|
|
|
2
2
|
import { Avatar, Tooltip } from "@voplus/antd";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import classnames from "classnames";
|
|
5
|
-
import
|
|
5
|
+
import styles from "./index.less";
|
|
6
|
+
import { useContact } from "../../data";
|
|
6
7
|
import { useObserver } from "mobx-react-lite";
|
|
7
8
|
const colorList = ["#765FEE", "#fe4066", "#FFC832", "#FF8F5E", "#3AC43A", "#FFC832"];
|
|
8
9
|
const UnitAvatar = (props) => {
|
|
9
|
-
const { id, index, size, disabled, tooltip } = props;
|
|
10
|
+
const { id, index, size, disabled, tooltip, className } = props;
|
|
10
11
|
const contact = useContact(id, { reload: false });
|
|
11
12
|
const avatar = useObserver(() => (React.createElement(Avatar
|
|
12
13
|
// src={contact.url}
|
|
13
14
|
, {
|
|
14
15
|
// src={contact.url}
|
|
15
|
-
size: size, className: classnames({ "avatar-item-disabled": !!disabled }, "avatar-item-img"), style: { backgroundColor: colorList[(index || 0) % 6] } }, setName(contact.name))));
|
|
16
|
+
size: size, className: classnames({ "avatar-item-disabled": !!disabled }, styles["avatar-item-img"], className), style: { backgroundColor: colorList[(index || 0) % 6] } }, setName(contact.name))));
|
|
16
17
|
return useObserver(() => (React.createElement(React.Fragment, null, !tooltip ? avatar : React.createElement(Tooltip, { title: contact.name }, avatar))));
|
|
17
18
|
function setName(name) {
|
|
18
19
|
let str = "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitAvatar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitAvatar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAA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