@voplus/morpho-document 1.0.0-dev241 → 1.0.0-dev243
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 +2 -0
- package/es/components/ActivityLog/state.js +50 -54
- package/es/components/ActivityLog/state.js.map +1 -1
- package/es/components/AddDocDropdown/state.js +93 -97
- package/es/components/AddDocDropdown/state.js.map +1 -1
- package/es/components/AvatarList/state.js +46 -50
- package/es/components/AvatarList/state.js.map +1 -1
- package/es/components/BreadCrumbsHeader/state.js +33 -37
- package/es/components/BreadCrumbsHeader/state.js.map +1 -1
- package/es/components/DocumentCard/index.d.ts +10 -0
- package/es/components/DocumentCard/index.js +36 -0
- package/es/components/DocumentCard/index.js.map +1 -0
- package/es/components/DocumentCard/index.less +109 -0
- package/es/components/DocumentCard/state.d.ts +15 -0
- package/es/components/DocumentCard/state.js +67 -0
- package/es/components/DocumentCard/state.js.map +1 -0
- package/es/components/DocumentHeader/index.d.ts +1 -0
- package/es/components/DocumentHeader/index.js +11 -5
- package/es/components/DocumentHeader/index.js.map +1 -1
- package/es/components/DocumentHeader/index.less +4 -4
- package/es/components/DocumentHeader/state.d.ts +2 -0
- package/es/components/DocumentHeader/state.js +63 -67
- package/es/components/DocumentHeader/state.js.map +1 -1
- package/es/components/DocumentItem/state.js +44 -48
- package/es/components/DocumentItem/state.js.map +1 -1
- package/es/components/DocumentList/state.js +212 -216
- package/es/components/DocumentList/state.js.map +1 -1
- package/es/components/DocumentListView/state.js +8 -12
- package/es/components/DocumentListView/state.js.map +1 -1
- package/es/components/DocumentMenu/state.js +74 -78
- package/es/components/DocumentMenu/state.js.map +1 -1
- package/es/components/DocumentSelectDialog/index.js +1 -1
- package/es/components/DocumentSelectDialog/index.js.map +1 -1
- package/es/components/DocumentSelectDialog/state.js +68 -72
- package/es/components/DocumentSelectDialog/state.js.map +1 -1
- package/es/components/DocumentSortableTree/index.js +2 -2
- package/es/components/DocumentSortableTree/index.js.map +1 -1
- package/es/components/DocumentSortableTree/state.js +171 -175
- package/es/components/DocumentSortableTree/state.js.map +1 -1
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/index.js.map +1 -0
- package/es/components/{FileExplorerTheme → DocumentSortableTree/themes/FileExplorerTheme}/node-content-renderer.js +3 -3
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +1 -0
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.js.map +1 -0
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/index.js.map +1 -0
- package/es/components/{SortableTreeDocumentTheme → DocumentSortableTree/themes/SortableTreeDocumentTheme}/node-content-renderer.js +1 -1
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.js.map +1 -0
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.js.map +1 -0
- package/es/components/DocumentTree/state.js +82 -86
- package/es/components/DocumentTree/state.js.map +1 -1
- package/es/components/FileViewer/ImageViewer.js +1 -1
- package/es/components/FileViewer/ImageViewer.js.map +1 -1
- package/es/components/Links/state.js +63 -67
- package/es/components/Links/state.js.map +1 -1
- package/es/components/NewDocumentForm/state.js +35 -39
- package/es/components/NewDocumentForm/state.js.map +1 -1
- package/es/components/PeopleAccess/PeopleAccessState.js +132 -136
- package/es/components/PeopleAccess/PeopleAccessState.js.map +1 -1
- package/es/components/PublishModal/state.js +10 -14
- package/es/components/PublishModal/state.js.map +1 -1
- package/es/components/QuickAccessSearch/state.js +59 -63
- package/es/components/QuickAccessSearch/state.js.map +1 -1
- package/es/components/QuickViewDialog/state.js +22 -26
- package/es/components/QuickViewDialog/state.js.map +1 -1
- package/es/components/TagView/state.js +59 -63
- package/es/components/TagView/state.js.map +1 -1
- package/es/components/VersionsModal/state.js +23 -27
- package/es/components/VersionsModal/state.js.map +1 -1
- package/es/controls/DocumentStatusLabel/index.js +3 -1
- package/es/controls/DocumentStatusLabel/index.js.map +1 -1
- package/es/controls/DocumentStatusLabel/index.less +7 -1
- package/es/controls/FlagIcon/index.js +1 -1
- package/es/controls/FlagIcon/index.js.map +1 -1
- package/es/controls/FlagIcon/index.less +4 -4
- package/es/controls/ToolBar/state.js +143 -147
- package/es/controls/ToolBar/state.js.map +1 -1
- package/es/controls/filters/CreateDateFilter/state.js +27 -31
- package/es/controls/filters/CreateDateFilter/state.js.map +1 -1
- package/es/controls/filters/DocumentStatusFilter/state.js +38 -42
- package/es/controls/filters/DocumentStatusFilter/state.js.map +1 -1
- package/es/controls/filters/DocumentTypeFilter/state.js +48 -52
- package/es/controls/filters/DocumentTypeFilter/state.js.map +1 -1
- package/es/controls/filters/FlagFilter/state.js +46 -50
- package/es/controls/filters/FlagFilter/state.js.map +1 -1
- package/es/data/DocumentMetaStore.js +34 -38
- package/es/data/DocumentMetaStore.js.map +1 -1
- package/es/data/DocumentStore/DocumentStore.js +228 -232
- package/es/data/DocumentStore/DocumentStore.js.map +1 -1
- package/es/data/contexts/DocumentListContext/index.js +30 -34
- package/es/data/contexts/DocumentListContext/index.js.map +1 -1
- package/es/data/metas/FileTypeMeta.js +21 -25
- package/es/data/metas/FileTypeMeta.js.map +1 -1
- package/es/data/metas/ShortcutMeta.js +22 -26
- package/es/data/metas/ShortcutMeta.js.map +1 -1
- package/es/modules/unit/components/ActivityLog/state.js +15 -19
- package/es/modules/unit/components/ActivityLog/state.js.map +1 -1
- package/es/modules/unit/components/AddUnitDropdown/state.js +75 -79
- package/es/modules/unit/components/AddUnitDropdown/state.js.map +1 -1
- package/es/modules/unit/components/BreadCrumbsHeader/state.js +14 -18
- package/es/modules/unit/components/BreadCrumbsHeader/state.js.map +1 -1
- package/es/modules/unit/components/Members/state.js +21 -25
- package/es/modules/unit/components/Members/state.js.map +1 -1
- package/es/modules/unit/components/NewUnitForm/state.js +43 -47
- package/es/modules/unit/components/NewUnitForm/state.js.map +1 -1
- package/es/modules/unit/components/SubUnitList/state.js +28 -32
- package/es/modules/unit/components/SubUnitList/state.js.map +1 -1
- package/es/modules/unit/components/UnitDetails/state.js +20 -24
- package/es/modules/unit/components/UnitDetails/state.js.map +1 -1
- package/es/modules/unit/components/UnitHead/state.js +5 -9
- package/es/modules/unit/components/UnitHead/state.js.map +1 -1
- package/es/modules/unit/components/UnitItem/state.js +16 -20
- package/es/modules/unit/components/UnitItem/state.js.map +1 -1
- package/es/modules/unit/components/UnitList/state.js +27 -31
- package/es/modules/unit/components/UnitList/state.js.map +1 -1
- package/es/modules/unit/components/UnitSortableTree/state.js +153 -157
- package/es/modules/unit/components/UnitSortableTree/state.js.map +1 -1
- package/es/modules/unit/controls/ContactSelect/state.js +36 -40
- package/es/modules/unit/controls/ContactSelect/state.js.map +1 -1
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.js +64 -68
- package/es/modules/unit/controls/ToolBar/ContactMenu/state.js.map +1 -1
- package/es/modules/unit/controls/ToolBar/state.js +58 -62
- package/es/modules/unit/controls/ToolBar/state.js.map +1 -1
- package/es/modules/unit/controls/UnitTypeFilter/state.js +55 -59
- package/es/modules/unit/controls/UnitTypeFilter/state.js.map +1 -1
- package/es/modules/unit/data/UnitContext/index.js +20 -24
- package/es/modules/unit/data/UnitContext/index.js.map +1 -1
- package/es/modules/unit/data/UnitStore.js +198 -202
- package/es/modules/unit/data/UnitStore.js.map +1 -1
- package/es/modules/unit/pages/UnitTreeView/state.js +10 -14
- package/es/modules/unit/pages/UnitTreeView/state.js.map +1 -1
- package/es/pages/Library/LibraryDefaultView/Content.d.ts +6 -0
- package/es/pages/Library/LibraryDefaultView/Content.js +31 -0
- package/es/pages/Library/LibraryDefaultView/Content.js.map +1 -0
- package/es/pages/Library/LibraryDefaultView/index.d.ts +4 -0
- package/es/pages/Library/LibraryDefaultView/index.js +74 -0
- package/es/pages/Library/LibraryDefaultView/index.js.map +1 -0
- package/es/pages/Library/LibraryDefaultView/index.less +54 -0
- package/es/pages/Library/LibraryDefaultView/state.d.ts +14 -0
- package/es/pages/Library/LibraryDefaultView/state.js +31 -0
- package/es/pages/Library/LibraryDefaultView/state.js.map +1 -0
- package/es/pages/Library/data/LibraryStore.d.ts +10 -0
- package/es/pages/Library/data/LibraryStore.js +16 -0
- package/es/pages/Library/data/LibraryStore.js.map +1 -0
- package/es/pages/Library/data/hook.d.ts +2 -0
- package/es/pages/Library/data/hook.js +10 -0
- package/es/pages/Library/data/hook.js.map +1 -0
- package/es/pages/Library/data/index.d.ts +3 -0
- package/es/pages/Library/data/index.js +4 -0
- package/es/pages/Library/data/index.js.map +1 -0
- package/es/pages/Library/data/interfaces.d.ts +2 -0
- package/es/pages/Library/data/interfaces.js +1 -0
- package/es/pages/Library/data/interfaces.js.map +1 -0
- package/es/pages/Page/PageDefaultView/index.d.ts +12 -0
- package/es/pages/Page/PageDefaultView/index.js +97 -0
- package/es/pages/Page/PageDefaultView/index.js.map +1 -0
- package/es/pages/Page/PageDefaultView/index.less +49 -0
- package/es/pages/Page/PageDefaultView/state.d.ts +7 -0
- package/es/pages/Page/PageDefaultView/state.js +15 -0
- package/es/pages/Page/PageDefaultView/state.js.map +1 -0
- package/es/pages/Page/PageTextItem/index.d.ts +7 -0
- package/es/pages/Page/PageTextItem/index.js +39 -0
- package/es/pages/Page/PageTextItem/index.js.map +1 -0
- package/es/pages/Page/PageTextItem/index.less +31 -0
- package/es/pages/Page/PageTextItem/state.d.ts +9 -0
- package/es/pages/Page/PageTextItem/state.js +22 -0
- package/es/pages/Page/PageTextItem/state.js.map +1 -0
- package/es/pages/Page/PlusDropDown/index.d.ts +7 -0
- package/es/pages/Page/PlusDropDown/index.js +14 -0
- package/es/pages/Page/PlusDropDown/index.js.map +1 -0
- package/es/pages/Page/PlusDropDown/index.less +11 -0
- package/es/pages/Page/data/IPageItemState.d.ts +4 -0
- package/es/pages/Page/data/IPageItemState.js +1 -0
- package/es/pages/Page/data/IPageItemState.js.map +1 -0
- package/es/pages/Page/data/PageContext.d.ts +18 -0
- package/es/pages/Page/data/PageContext.js +48 -0
- package/es/pages/Page/data/PageContext.js.map +1 -0
- package/es/pages/Page/data/PageStore.d.ts +10 -0
- package/es/pages/Page/data/PageStore.js +16 -0
- package/es/pages/Page/data/PageStore.js.map +1 -0
- package/es/pages/Page/data/hook.d.ts +2 -0
- package/es/pages/Page/data/hook.js +10 -0
- package/es/pages/Page/data/hook.js.map +1 -0
- package/es/pages/Page/data/index.d.ts +3 -0
- package/es/pages/Page/data/index.js +4 -0
- package/es/pages/Page/data/index.js.map +1 -0
- package/es/pages/Page/data/interfaces.d.ts +2 -0
- package/es/pages/Page/data/interfaces.js +1 -0
- package/es/pages/Page/data/interfaces.js.map +1 -0
- package/es/pages/TreeViewPage/state.js +10 -14
- package/es/pages/TreeViewPage/state.js.map +1 -1
- package/es/routes.d.ts +20 -0
- package/es/routes.js +27 -1
- package/es/routes.js.map +1 -1
- package/package.json +7 -7
- package/es/components/FileExplorerTheme/index.js.map +0 -1
- package/es/components/FileExplorerTheme/node-content-renderer.js.map +0 -1
- package/es/components/FileExplorerTheme/tree-node-renderer.js.map +0 -1
- package/es/components/SortableTreeDocumentTheme/index.js.map +0 -1
- package/es/components/SortableTreeDocumentTheme/node-content-renderer.js.map +0 -1
- package/es/components/SortableTreeDocumentTheme/tree-node-renderer.js.map +0 -1
- package/es/controls/Panable/index.d.ts +0 -7
- package/es/controls/Panable/index.js +0 -65
- package/es/controls/Panable/index.js.map +0 -1
- package/es/controls/Panable/index.less +0 -15
- package/es/controls/Panable/state.d.ts +0 -9
- package/es/controls/Panable/state.js +0 -39
- package/es/controls/Panable/state.js.map +0 -1
- /package/es/components/{FileExplorerTheme → DocumentSortableTree/themes/FileExplorerTheme}/index.d.ts +0 -0
- /package/es/components/{FileExplorerTheme → DocumentSortableTree/themes/FileExplorerTheme}/index.js +0 -0
- /package/es/components/{FileExplorerTheme → DocumentSortableTree/themes/FileExplorerTheme}/node-content-renderer.d.ts +0 -0
- /package/es/components/{FileExplorerTheme → DocumentSortableTree/themes/FileExplorerTheme}/node-content-renderer.less +0 -0
- /package/es/components/{FileExplorerTheme → DocumentSortableTree/themes/FileExplorerTheme}/tree-node-renderer.d.ts +0 -0
- /package/es/components/{FileExplorerTheme → DocumentSortableTree/themes/FileExplorerTheme}/tree-node-renderer.js +0 -0
- /package/es/components/{FileExplorerTheme → DocumentSortableTree/themes/FileExplorerTheme}/tree-node-renderer.less +0 -0
- /package/es/components/{SortableTreeDocumentTheme → DocumentSortableTree/themes/SortableTreeDocumentTheme}/index.d.ts +0 -0
- /package/es/components/{SortableTreeDocumentTheme → DocumentSortableTree/themes/SortableTreeDocumentTheme}/index.js +0 -0
- /package/es/components/{SortableTreeDocumentTheme → DocumentSortableTree/themes/SortableTreeDocumentTheme}/node-content-renderer.d.ts +0 -0
- /package/es/components/{SortableTreeDocumentTheme → DocumentSortableTree/themes/SortableTreeDocumentTheme}/node-content-renderer.less +0 -0
- /package/es/components/{SortableTreeDocumentTheme → DocumentSortableTree/themes/SortableTreeDocumentTheme}/tree-node-renderer.d.ts +0 -0
- /package/es/components/{SortableTreeDocumentTheme → DocumentSortableTree/themes/SortableTreeDocumentTheme}/tree-node-renderer.js +0 -0
- /package/es/components/{SortableTreeDocumentTheme → DocumentSortableTree/themes/SortableTreeDocumentTheme}/tree-node-renderer.less +0 -0
|
@@ -4,31 +4,27 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import invariant from "invariant";
|
|
6
6
|
/** Meta information for File document. */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return React.createElement(FontAwesomeIcon, { icon: faFile });
|
|
27
|
-
}
|
|
7
|
+
export class FileTypeMeta extends DefaultDocumentTypeMeta {
|
|
8
|
+
get name() {
|
|
9
|
+
return FileTypeMeta.TypeName;
|
|
10
|
+
}
|
|
11
|
+
getIcon(document) {
|
|
12
|
+
invariant(document, "Document cannot be empty.");
|
|
13
|
+
const file = document;
|
|
14
|
+
invariant(file.mimetype, "Mime cannot be empty.");
|
|
15
|
+
if (file.mimetype.startsWith("image/"))
|
|
16
|
+
return React.createElement(FontAwesomeIcon, { icon: faImage });
|
|
17
|
+
switch (file.mimetype) {
|
|
18
|
+
case "application/pdf":
|
|
19
|
+
return React.createElement(FontAwesomeIcon, { icon: faFilePdf });
|
|
20
|
+
case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
|
|
21
|
+
return React.createElement(FontAwesomeIcon, { icon: faFileWord });
|
|
22
|
+
case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
|
|
23
|
+
return React.createElement(FontAwesomeIcon, { icon: faFileExcel });
|
|
24
|
+
default:
|
|
25
|
+
return React.createElement(FontAwesomeIcon, { icon: faFile });
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
})();
|
|
33
|
-
export { FileTypeMeta };
|
|
28
|
+
}
|
|
29
|
+
FileTypeMeta.TypeName = "File";
|
|
34
30
|
//# sourceMappingURL=FileTypeMeta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileTypeMeta.js","sourceRoot":"","sources":["../../../src/data/metas/FileTypeMeta.tsx"],"names":[],"mappings":"AACA,OAAO,EACN,MAAM,EACN,WAAW,EACX,SAAS,EACT,UAAU,EACV,OAAO,EACP,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,0CAA0C;AAC1C
|
|
1
|
+
{"version":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4
|
import { faLink } from "@fortawesome/pro-solid-svg-icons";
|
|
5
5
|
import invariant from "invariant";
|
|
6
6
|
/** Meta information for shortcut. */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
this.store = store;
|
|
12
|
-
}
|
|
13
|
-
get name() {
|
|
14
|
-
return ShortcutMeta.TypeName;
|
|
15
|
-
}
|
|
16
|
-
getIcon(document) {
|
|
17
|
-
return React.createElement(FontAwesomeIcon, { icon: faLink });
|
|
18
|
-
}
|
|
19
|
-
getPropertiesView(document) {
|
|
20
|
-
const shortcut = document;
|
|
21
|
-
invariant(shortcut.target, "Shortcut must contains a target.");
|
|
22
|
-
return this.store.getPropertiesView(shortcut.target);
|
|
23
|
-
}
|
|
24
|
-
getQuickView(document, props) {
|
|
25
|
-
const shortcut = document;
|
|
26
|
-
invariant(shortcut.target, "Shortcut must contains a target.");
|
|
27
|
-
return this.store.getQuickView(shortcut.target, props);
|
|
28
|
-
}
|
|
7
|
+
export class ShortcutMeta extends DefaultDocumentTypeMeta {
|
|
8
|
+
constructor(store) {
|
|
9
|
+
super();
|
|
10
|
+
this.store = store;
|
|
29
11
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
12
|
+
get name() {
|
|
13
|
+
return ShortcutMeta.TypeName;
|
|
14
|
+
}
|
|
15
|
+
getIcon(document) {
|
|
16
|
+
return React.createElement(FontAwesomeIcon, { icon: faLink });
|
|
17
|
+
}
|
|
18
|
+
getPropertiesView(document) {
|
|
19
|
+
const shortcut = document;
|
|
20
|
+
invariant(shortcut.target, "Shortcut must contains a target.");
|
|
21
|
+
return this.store.getPropertiesView(shortcut.target);
|
|
22
|
+
}
|
|
23
|
+
getQuickView(document, props) {
|
|
24
|
+
const shortcut = document;
|
|
25
|
+
invariant(shortcut.target, "Shortcut must contains a target.");
|
|
26
|
+
return this.store.getQuickView(shortcut.target, props);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
ShortcutMeta.TypeName = "Shortcut";
|
|
34
30
|
//# sourceMappingURL=ShortcutMeta.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShortcutMeta.js","sourceRoot":"","sources":["../../../src/data/metas/ShortcutMeta.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAa,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,qCAAqC;AACrC
|
|
1
|
+
{"version":3,"file":"ShortcutMeta.js","sourceRoot":"","sources":["../../../src/data/metas/ShortcutMeta.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAa,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,qCAAqC;AACrC,MAAM,OAAO,YAAa,SAAQ,uBAAuB;IAGxD,YAA2B,KAAwB;QAClD,KAAK,EAAE,CAAC;QADkB,UAAK,GAAL,KAAK,CAAmB;IAEnD,CAAC;IAED,IAAW,IAAI;QACd,OAAO,YAAY,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAEM,OAAO,CAAC,QAAmB;QACjC,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,CAAC;IAC1C,CAAC;IAEM,iBAAiB,CAAC,QAAmB;QAC3C,MAAM,QAAQ,GAAG,QAAqB,CAAC;QACvC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,MAAa,CAAC,CAAC;IAC7D,CAAC;IAEM,YAAY,CAAC,QAAmB,EAAE,KAAqB;QAC7D,MAAM,QAAQ,GAAG,QAAqB,CAAC;QACvC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAa,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;;AAzBa,qBAAQ,GAAG,UAAU,CAAC"}
|
|
@@ -32,24 +32,20 @@ export const getActionIconColor = (action) => {
|
|
|
32
32
|
return "";
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
this.loading = true;
|
|
41
|
-
}
|
|
35
|
+
export class State {
|
|
36
|
+
constructor() {
|
|
37
|
+
this.activitys = [];
|
|
38
|
+
this.page = 1;
|
|
39
|
+
this.loading = true;
|
|
42
40
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
})();
|
|
54
|
-
export { State };
|
|
41
|
+
}
|
|
42
|
+
__decorate([
|
|
43
|
+
observable
|
|
44
|
+
], State.prototype, "activitys", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
observable
|
|
47
|
+
], State.prototype, "page", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
observable
|
|
50
|
+
], State.prototype, "loading", void 0);
|
|
55
51
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/ActivityLog/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACtB,CAAC;AACF,MAAM,CAAC,MAAM,aAAa,GAAQ,CAAC,MAAc,EAAE,EAAE;IACpD,QAAQ,MAAM,EAAE;QACf,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC7B,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;QAC9B,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC7B,KAAK,kBAAkB,CAAC,SAAS;YAChC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAC1B;YACC,OAAO,EAAE,CAAC;KACX;AACF,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,EAAE;IACpD,QAAQ,MAAM,EAAE;QACf,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,SAAS,CAAC;QAClB,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,SAAS,CAAC;QAClB,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,SAAS,CAAC;QAClB;YACC,OAAO,EAAE,CAAC;KACX;AACF,CAAC,CAAC;AACF
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/ActivityLog/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACtB,CAAC;AACF,MAAM,CAAC,MAAM,aAAa,GAAQ,CAAC,MAAc,EAAE,EAAE;IACpD,QAAQ,MAAM,EAAE;QACf,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC7B,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;QAC9B,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC7B,KAAK,kBAAkB,CAAC,SAAS;YAChC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAC1B;YACC,OAAO,EAAE,CAAC;KACX;AACF,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,EAAE;IACpD,QAAQ,MAAM,EAAE;QACf,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,SAAS,CAAC;QAClB,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,SAAS,CAAC;QAClB,KAAK,kBAAkB,CAAC,OAAO;YAC9B,OAAO,SAAS,CAAC;QAClB;YACC,OAAO,EAAE,CAAC;KACX;AACF,CAAC,CAAC;AACF,MAAM,OAAO,KAAK;IAAlB;QACa,cAAS,GAAmB,EAAE,CAAC;QAC/B,SAAI,GAAG,CAAC,CAAC;QACT,YAAO,GAAG,IAAI,CAAC;IAC5B,CAAC;CAAA;AAHY;IAAX,UAAU;wCAAgC;AAC/B;IAAX,UAAU;mCAAU;AACT;IAAX,UAAU;sCAAgB"}
|
|
@@ -7,84 +7,80 @@ import { faFileAlt, faFolderPlus, faTasks, faTasksAlt } from "@fortawesome/pro-l
|
|
|
7
7
|
* @height Menu height 超出max-height Scrollbars
|
|
8
8
|
* @types 原始types list 数据
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 "Organization":
|
|
42
|
-
arr.push({ name: "Organization", type: "Organization", icon: faFileAlt });
|
|
43
|
-
break;
|
|
44
|
-
case "Team":
|
|
45
|
-
arr.push({ name: "Team", type: "Team", icon: faFolderPlus });
|
|
46
|
-
break;
|
|
47
|
-
case "Account":
|
|
48
|
-
arr.push({ name: "Account", type: "Account", icon: faTasks });
|
|
49
|
-
break;
|
|
50
|
-
case "User":
|
|
51
|
-
arr.push({ name: "User", type: "User", icon: faTasksAlt });
|
|
52
|
-
break;
|
|
53
|
-
default:
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
return arr;
|
|
58
|
-
}
|
|
10
|
+
export class State {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.items = [];
|
|
13
|
+
this.visible = false;
|
|
14
|
+
this.height = 0;
|
|
15
|
+
this.types = [];
|
|
59
16
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
17
|
+
/** Menu item click */
|
|
18
|
+
moreOperate({ key, domEvent }) {
|
|
19
|
+
domEvent.stopPropagation();
|
|
20
|
+
this.visible = false;
|
|
21
|
+
this.props.onItemClick(key);
|
|
22
|
+
}
|
|
23
|
+
/** Menu search 输入框内容变化时的回调 点击搜索或按下回车键时的回调*/
|
|
24
|
+
searchByKeWord(keyWord) {
|
|
25
|
+
this.items = this.lists.filter(({ name }) => name
|
|
26
|
+
.toLowerCase()
|
|
27
|
+
.replace(/\s*/g, "")
|
|
28
|
+
.indexOf(keyWord.toLowerCase().replace(/\s*/g, "")) !== -1);
|
|
29
|
+
}
|
|
30
|
+
/** Menu 显示状态改变时调用,参数为 visible*/
|
|
31
|
+
onVisibleChange(visible) {
|
|
32
|
+
this.visible = visible;
|
|
33
|
+
this.props.onCancelClick();
|
|
34
|
+
}
|
|
35
|
+
get lists() {
|
|
36
|
+
var _a;
|
|
37
|
+
const arr = [];
|
|
38
|
+
(_a = this.types) === null || _a === void 0 ? void 0 : _a.map((val) => {
|
|
39
|
+
switch (val) {
|
|
40
|
+
case "Organization":
|
|
41
|
+
arr.push({ name: "Organization", type: "Organization", icon: faFileAlt });
|
|
42
|
+
break;
|
|
43
|
+
case "Team":
|
|
44
|
+
arr.push({ name: "Team", type: "Team", icon: faFolderPlus });
|
|
45
|
+
break;
|
|
46
|
+
case "Account":
|
|
47
|
+
arr.push({ name: "Account", type: "Account", icon: faTasks });
|
|
48
|
+
break;
|
|
49
|
+
case "User":
|
|
50
|
+
arr.push({ name: "User", type: "User", icon: faTasksAlt });
|
|
51
|
+
break;
|
|
52
|
+
default:
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return arr;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
__decorate([
|
|
60
|
+
observable
|
|
61
|
+
], State.prototype, "props", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
observable
|
|
64
|
+
], State.prototype, "items", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
observable
|
|
67
|
+
], State.prototype, "visible", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
observable
|
|
70
|
+
], State.prototype, "height", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
observable
|
|
73
|
+
], State.prototype, "types", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
action
|
|
76
|
+
], State.prototype, "moreOperate", null);
|
|
77
|
+
__decorate([
|
|
78
|
+
action
|
|
79
|
+
], State.prototype, "searchByKeWord", null);
|
|
80
|
+
__decorate([
|
|
81
|
+
action
|
|
82
|
+
], State.prototype, "onVisibleChange", null);
|
|
83
|
+
__decorate([
|
|
84
|
+
computed
|
|
85
|
+
], State.prototype, "lists", null);
|
|
90
86
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/AddUnitDropdown/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EACN,SAAS,EAET,YAAY,EAMZ,OAAO,EACP,UAAU,EACV,MAAM,kCAAkC,CAAC;AAY1C;;;;;GAKG;AACH
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/AddUnitDropdown/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,M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AAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;oBAC1E,MAAM;gBACP,KAAK,MAAM;oBACV,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;oBAC7D,MAAM;gBACP,KAAK,SAAS;oBACb,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;oBAC9D,MAAM;gBACP,KAAK,MAAM;oBACV,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC;oBAC3D,MAAM;gBACP;oBACC,MAAM;aACP;QACF,CAAC,EAAE;QACH,OAAO,GAAG,CAAC;IACZ,CAAC;CACD;AAxDY;IAAX,UAAU;oCAAoC;AACnC;IAAX,UAAU;oCAA0B;AACzB;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;qCAAmB;AAClB;IAAX,UAAU;oCAAgC;AAI3C;IADC,MAAM;wCAKN;AAID;IADC,MAAM;2CASN;AAID;IADC,MAAM;4CAIN;AAGD;IADC,QAAQ;kCAsBR"}
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { computed, observable } from "mobx";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
: [{ id: this.contact.id, name: this.contact.name }];
|
|
10
|
-
}
|
|
11
|
-
return [];
|
|
3
|
+
export class BreadState {
|
|
4
|
+
get paths() {
|
|
5
|
+
var _a;
|
|
6
|
+
if (this.contact.path) {
|
|
7
|
+
return ((_a = this.contact.path) === null || _a === void 0 ? void 0 : _a.length) ? [...this.contact.path, { id: this.contact.id, name: this.contact.name }]
|
|
8
|
+
: [{ id: this.contact.id, name: this.contact.name }];
|
|
12
9
|
}
|
|
10
|
+
return [];
|
|
13
11
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})();
|
|
22
|
-
export { BreadState };
|
|
12
|
+
}
|
|
13
|
+
__decorate([
|
|
14
|
+
observable
|
|
15
|
+
], BreadState.prototype, "contact", void 0);
|
|
16
|
+
__decorate([
|
|
17
|
+
computed
|
|
18
|
+
], BreadState.prototype, "paths", null);
|
|
23
19
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/BreadCrumbsHeader/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI5C
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/BreadCrumbsHeader/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI5C,MAAM,OAAO,UAAU;IAItB,IAAW,KAAK;;QACf,IAAI,IAAI,CAAC,OAAO,CAAC,IAAK,EAAE;YACvB,OAAO,OAAA,IAAI,CAAC,OAAO,CAAC,IAAI,0CAAE,MAAM,EAC/B,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;gBAC1E,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;SACtD;QACD,OAAO,EAAE,CAAC;IACX,CAAC;CACD;AAXY;IAAX,UAAU;2CAAuB;AAGlC;IADC,QAAQ;uCAQR"}
|
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { action, observable } from "mobx";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
this.loading = false;
|
|
9
|
-
}
|
|
10
|
-
clearAdd() {
|
|
11
|
-
this.addAble = false;
|
|
12
|
-
}
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.addAble = false;
|
|
6
|
+
/** add user to g */
|
|
7
|
+
this.loading = false;
|
|
13
8
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
9
|
+
clearAdd() {
|
|
10
|
+
this.addAble = false;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
__decorate([
|
|
14
|
+
observable
|
|
15
|
+
], State.prototype, "id", void 0);
|
|
16
|
+
__decorate([
|
|
17
|
+
observable
|
|
18
|
+
], State.prototype, "addAble", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
observable
|
|
21
|
+
], State.prototype, "loading", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
action
|
|
24
|
+
], State.prototype, "clearAdd", null);
|
|
29
25
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/Members/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAY1C
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/Members/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAY1C,MAAM,OAAO,KAAK;IAAlB;QAIoB,YAAO,GAAG,KAAK,CAAC;QACnC,oBAAoB;QACD,YAAO,GAAG,KAAK,CAAC;IAMpC,CAAC;IAHO,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACtB,CAAC;CACD;AATY;IAAX,UAAU;iCAAmB;AAClB;IAAX,UAAU;sCAAwB;AAEvB;IAAX,UAAU;sCAAwB;AAGnC;IADC,MAAM;qCAGN"}
|
|
@@ -1,53 +1,49 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { action, observable } from "mobx";
|
|
3
3
|
import { message } from "@voplus/antd";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
});
|
|
16
27
|
this.loading = false;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (!this.params.name)
|
|
20
|
-
return message.warning("Title is required!");
|
|
21
|
-
this.loading = true;
|
|
22
|
-
const name = this.params.name;
|
|
23
|
-
await this._store.createFromType({
|
|
24
|
-
type: this.params.type,
|
|
25
|
-
name: name,
|
|
26
|
-
parentId: this.params.parentId
|
|
27
|
-
});
|
|
28
|
-
this.loading = false;
|
|
29
|
-
// this.params.name = this.Params.name;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
/** input KeyDown */
|
|
33
|
-
onKeyDown(e) {
|
|
34
|
-
if (e.keyCode !== 27)
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
28
|
+
// this.params.name = this.Params.name;
|
|
29
|
+
};
|
|
37
30
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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);
|
|
53
49
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +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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AInC;IADC,MAAM;uCAYL;AAIF;IADC,MAAM;sCAGN"}
|
|
@@ -1,36 +1,32 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { action, observable } from "mobx";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
this.addAble = false;
|
|
8
|
-
}
|
|
9
|
-
clearAdd() {
|
|
10
|
-
this.addAble = false;
|
|
11
|
-
}
|
|
12
|
-
/** AddDocDropdown(新增type下拉Menu) item click */
|
|
13
|
-
onItemClick(val) {
|
|
14
|
-
this.type = val;
|
|
15
|
-
this.addAble = true;
|
|
16
|
-
}
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.list = [];
|
|
6
|
+
this.addAble = false;
|
|
17
7
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
8
|
+
clearAdd() {
|
|
9
|
+
this.addAble = false;
|
|
10
|
+
}
|
|
11
|
+
/** AddDocDropdown(新增type下拉Menu) item click */
|
|
12
|
+
onItemClick(val) {
|
|
13
|
+
this.type = val;
|
|
14
|
+
this.addAble = true;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
observable
|
|
19
|
+
], State.prototype, "list", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
observable
|
|
22
|
+
], State.prototype, "addAble", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
observable
|
|
25
|
+
], State.prototype, "type", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
action
|
|
28
|
+
], State.prototype, "clearAdd", null);
|
|
29
|
+
__decorate([
|
|
30
|
+
action
|
|
31
|
+
], State.prototype, "onItemClick", null);
|
|
36
32
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/SubUnitList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAU1C
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/SubUnitList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAU1C,MAAM,OAAO,KAAK;IAAlB;QAEoB,SAAI,GAAY,EAAE,CAAC;QACnB,YAAO,GAAG,KAAK,CAAC;IAepC,CAAC;IAVO,QAAQ;QACd,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,8CAA8C;IAEvC,WAAW,CAAC,GAAa;QAC/B,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACrB,CAAC;CACD;AAhBY;IAAX,UAAU;mCAA2B;AAC1B;IAAX,UAAU;sCAAwB;AAEvB;IAAX,UAAU;mCAAuB;AAGlC;IADC,MAAM;qCAGN;AAID;IADC,MAAM;wCAIN"}
|