@voplus/morpho-document 6.0.151 → 6.0.152
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/es/Modules.js +2 -1
- package/es/Modules.js.map +1 -1
- package/es/components/DocumentTabs/index.js +2 -3
- package/es/components/DocumentTabs/index.js.map +1 -1
- package/es/data/document-register/DocumentRegisterStore.d.ts +3 -0
- package/es/data/document-register/DocumentRegisterStore.js +10 -2
- package/es/data/document-register/DocumentRegisterStore.js.map +1 -1
- package/es/data/document-register/interfaces.d.ts +4 -0
- package/es/data/metas/RegisteredDocumentMeta.d.ts +16 -0
- package/es/data/metas/RegisteredDocumentMeta.js +47 -0
- package/es/data/metas/RegisteredDocumentMeta.js.map +1 -0
- package/es/data/metas/index.d.ts +1 -0
- package/es/data/metas/index.js +1 -0
- package/es/data/metas/index.js.map +1 -1
- package/es/data/registered-document/RegisteredDocumentStore.d.ts +14 -0
- package/es/data/registered-document/RegisteredDocumentStore.js +30 -0
- package/es/data/registered-document/RegisteredDocumentStore.js.map +1 -0
- package/es/data/registered-document/hooks.d.ts +13 -0
- package/es/data/registered-document/hooks.js +24 -0
- package/es/data/registered-document/hooks.js.map +1 -0
- package/es/data/registered-document/index.d.ts +4 -0
- package/es/data/registered-document/index.js +5 -0
- package/es/data/registered-document/index.js.map +1 -0
- package/es/data/registered-document/interfaces.d.ts +24 -0
- package/es/data/registered-document/interfaces.js +2 -0
- package/es/data/registered-document/interfaces.js.map +1 -0
- package/es/data/registered-document/types.d.ts +16 -0
- package/es/data/registered-document/types.js +2 -0
- package/es/data/registered-document/types.js.map +1 -0
- package/es/data/tenant-service/interfaces.d.ts +8 -2
- package/es/modules/document-register/components/AddRegisterDocumentsTypeDialog/index.d.ts +8 -0
- package/es/modules/document-register/components/AddRegisterDocumentsTypeDialog/index.js +23 -0
- package/es/modules/document-register/components/AddRegisterDocumentsTypeDialog/index.js.map +1 -0
- package/es/modules/document-register/components/AddRegisterDocumentsTypeDialog/index.less +45 -0
- package/es/modules/document-register/components/DocumentRegisterItem/index.d.ts +1 -0
- package/es/modules/document-register/components/DocumentRegisterItem/index.js +8 -15
- package/es/modules/document-register/components/DocumentRegisterItem/index.js.map +1 -1
- package/es/modules/document-register/components/DocumentRegisterList/index.d.ts +7 -10
- package/es/modules/document-register/components/DocumentRegisterList/index.js +40 -37
- package/es/modules/document-register/components/DocumentRegisterList/index.js.map +1 -1
- package/es/modules/document-register/components/DocumentRegisterList/index.less +18 -13
- package/es/modules/document-register/components/DocumentRegisterProperties/index.d.ts +1 -1
- package/es/modules/document-register/components/DocumentRegisterProperties/index.js +10 -23
- package/es/modules/document-register/components/DocumentRegisterProperties/index.js.map +1 -1
- package/es/modules/document-register/components/DocumentRegisterTabs/index.js +1 -1
- package/es/modules/document-register/components/DocumentRegisterTabs/index.js.map +1 -1
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.d.ts +4 -3
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js +10 -17
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js.map +1 -1
- package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.less +12 -22
- package/es/modules/document-register/pages/DocumentRegisterListPage/index.d.ts +5 -0
- package/es/modules/document-register/pages/DocumentRegisterListPage/index.js +30 -0
- package/es/modules/document-register/pages/DocumentRegisterListPage/index.js.map +1 -0
- package/es/modules/document-register/pages/DocumentRegisterListPage/index.less +8 -0
- package/es/modules/document-register/pages/DocumentRegisterSettings/index.d.ts +7 -0
- package/es/modules/document-register/pages/DocumentRegisterSettings/index.js +42 -0
- package/es/modules/document-register/pages/DocumentRegisterSettings/index.js.map +1 -0
- package/es/modules/document-register/pages/DocumentRegisterSettings/index.less +9 -0
- package/es/modules/registered-document/RegisteredDocumentContext.d.ts +11 -0
- package/es/modules/registered-document/RegisteredDocumentContext.js +39 -0
- package/es/modules/registered-document/RegisteredDocumentContext.js.map +1 -0
- package/es/modules/registered-document/components/Documents/index.d.ts +6 -0
- package/es/modules/registered-document/components/Documents/index.js +49 -0
- package/es/modules/registered-document/components/Documents/index.js.map +1 -0
- package/es/modules/registered-document/components/Documents/index.less +28 -0
- package/es/modules/registered-document/components/RegisteredDocumentItem/index.d.ts +6 -0
- package/es/modules/registered-document/components/RegisteredDocumentItem/index.js +26 -0
- package/es/modules/registered-document/components/RegisteredDocumentItem/index.js.map +1 -0
- package/es/modules/registered-document/components/RegisteredDocumentItem/index.less +45 -0
- package/es/modules/registered-document/components/RegisteredDocumentListHeader/index.d.ts +8 -0
- package/es/modules/registered-document/components/RegisteredDocumentListHeader/index.js +82 -0
- package/es/modules/registered-document/components/RegisteredDocumentListHeader/index.js.map +1 -0
- package/es/modules/registered-document/components/RegisteredDocumentNewForm/index.d.ts +8 -0
- package/es/modules/registered-document/components/RegisteredDocumentNewForm/index.js +37 -0
- package/es/modules/registered-document/components/RegisteredDocumentNewForm/index.js.map +1 -0
- package/es/modules/registered-document/components/RegisteredDocumentNewForm/index.less +5 -0
- package/es/modules/registered-document/components/RegisteredDocumentNewForm/state.d.ts +5 -0
- package/es/modules/registered-document/components/RegisteredDocumentNewForm/state.js +26 -0
- package/es/modules/registered-document/components/RegisteredDocumentNewForm/state.js.map +1 -0
- package/es/modules/registered-document/components/RegisteredDocumentProperties/index.d.ts +27 -0
- package/es/modules/registered-document/components/RegisteredDocumentProperties/index.js +42 -0
- package/es/modules/registered-document/components/RegisteredDocumentProperties/index.js.map +1 -0
- package/es/modules/registered-document/components/RegisteredDocumentPropertiesView/index.d.ts +7 -0
- package/es/modules/registered-document/components/RegisteredDocumentPropertiesView/index.js +29 -0
- package/es/modules/registered-document/components/RegisteredDocumentPropertiesView/index.js.map +1 -0
- package/es/modules/registered-document/components/RegisteredDocumentPropertiesView/index.less +14 -0
- package/es/modules/registered-document/components/RegisteredDocumentQuickViewDialog/index.d.ts +7 -0
- package/es/modules/registered-document/components/RegisteredDocumentQuickViewDialog/index.js +29 -0
- package/es/modules/registered-document/components/RegisteredDocumentQuickViewDialog/index.js.map +1 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/TableCellDetail.d.ts +17 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/TableCellDetail.js +65 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/TableCellDetail.js.map +1 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/TableCellSimple.d.ts +15 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/TableCellSimple.js +25 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/TableCellSimple.js.map +1 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/index.d.ts +17 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/index.js +94 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/index.js.map +1 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/index.less +74 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/state.d.ts +22 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/state.js +136 -0
- package/es/modules/registered-document/components/RegisteredDocumentTableList/state.js.map +1 -0
- package/es/modules/registered-document/components/RegisteredDocumentTabs/index.d.ts +6 -0
- package/es/modules/registered-document/components/RegisteredDocumentTabs/index.js +48 -0
- package/es/modules/registered-document/components/RegisteredDocumentTabs/index.js.map +1 -0
- package/es/modules/registered-document/controls/RegisteredDocumentDataIconBar/index.d.ts +12 -0
- package/es/modules/registered-document/controls/RegisteredDocumentDataIconBar/index.js +18 -0
- package/es/modules/registered-document/controls/RegisteredDocumentDataIconBar/index.js.map +1 -0
- package/es/modules/registered-document/controls/RegisteredDocumentMenu/index.d.ts +7 -0
- package/es/modules/registered-document/controls/RegisteredDocumentMenu/index.js +14 -0
- package/es/modules/registered-document/controls/RegisteredDocumentMenu/index.js.map +1 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusDataIcon/index.d.ts +8 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusDataIcon/index.js +17 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusDataIcon/index.js.map +1 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusFilter/index.d.ts +5 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusFilter/index.js +23 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusFilter/index.js.map +1 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusFilter/state.d.ts +19 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusFilter/state.js +67 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusFilter/state.js.map +1 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusLabel/index.d.ts +10 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusLabel/index.js +17 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusLabel/index.js.map +1 -0
- package/es/modules/registered-document/controls/RegisteredDocumentStatusLabel/index.less +35 -0
- package/es/modules/registered-document/pages/RegisteredDocumentDefaultView/index.d.ts +6 -0
- package/es/modules/registered-document/pages/RegisteredDocumentDefaultView/index.js +34 -0
- package/es/modules/registered-document/pages/RegisteredDocumentDefaultView/index.js.map +1 -0
- package/es/modules/registered-document/pages/RegisteredDocumentDefaultView/index.less +22 -0
- package/es/modules/tenant-service/components/DynamicFiledList/index.js +3 -0
- package/es/modules/tenant-service/components/DynamicFiledList/index.js.map +1 -1
- package/es/modules/tenant-service/components/StringDynamicField/index.js +1 -1
- package/es/modules/tenant-service/components/StringDynamicField/index.js.map +1 -1
- package/es/modules/tenant-service/components/XeroTokenField/XeroTokenField.d.ts +8 -0
- package/es/modules/tenant-service/components/XeroTokenField/XeroTokenField.js +30 -0
- package/es/modules/tenant-service/components/XeroTokenField/XeroTokenField.js.map +1 -0
- package/es/modules/tenant-service/components/XeroTokenField/index.d.ts +8 -0
- package/es/modules/tenant-service/components/XeroTokenField/index.js +43 -0
- package/es/modules/tenant-service/components/XeroTokenField/index.js.map +1 -0
- package/es/modules/tenant-service/components/XeroTokenField/index.less +46 -0
- package/es/modules/tenant-service/components/XeroTokenField/state.d.ts +17 -0
- package/es/modules/tenant-service/components/XeroTokenField/state.js +134 -0
- package/es/modules/tenant-service/components/XeroTokenField/state.js.map +1 -0
- package/es/routes.d.ts +0 -6
- package/es/routes.js +12 -13
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/document-register/components/DocumentRegisterListCard/index.d.ts +0 -12
- package/es/modules/document-register/components/DocumentRegisterListCard/index.js +0 -14
- package/es/modules/document-register/components/DocumentRegisterListCard/index.js.map +0 -1
|
@@ -1,59 +1,62 @@
|
|
|
1
|
-
import { useDocumentRegisterListEffect, } from "../../../../data/document-register";
|
|
2
|
-
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
3
1
|
import React, { useState } from "react";
|
|
2
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
4
3
|
import { Badge } from "antd";
|
|
5
|
-
import
|
|
4
|
+
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
5
|
+
import { useAutoUpdateListData, useDocumentListEffect, } from "@voplus/morpho-document-core";
|
|
6
6
|
import DocumentRegisterItem from "../DocumentRegisterItem";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
7
|
+
import { faRegistered } from "@fortawesome/pro-solid-svg-icons";
|
|
8
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
9
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
10
|
+
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
11
|
+
import DocumentItemFrame from "../../../../controls/DocumentItemFrame";
|
|
12
|
+
import List from "@voplus/morpho-ui/es/components/layout/ListView/List";
|
|
9
13
|
import styles from "./index.less";
|
|
10
|
-
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
11
|
-
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
12
14
|
const DocumentRegisterList = (props) => {
|
|
13
|
-
const { viewTitle,
|
|
15
|
+
const { viewTitle, parentId, total } = props;
|
|
14
16
|
const [activeId, setActiveId] = useState("");
|
|
15
|
-
const [
|
|
17
|
+
const [documentRTotal, setDocumentRTotal] = useState(0);
|
|
18
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
19
|
+
// IDocumentRegister
|
|
16
20
|
const list = useCreateListDataState({
|
|
17
21
|
filterDefaults: {
|
|
18
|
-
includes: "tags
|
|
19
|
-
filters:
|
|
22
|
+
includes: "tags",
|
|
23
|
+
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: parentId }],
|
|
20
24
|
},
|
|
21
|
-
}, [parentId
|
|
25
|
+
}, [parentId]);
|
|
22
26
|
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
23
|
-
useAutoUpdateListData(list, (d) =>
|
|
27
|
+
useAutoUpdateListData(list, (d) => {
|
|
28
|
+
return d.type === "DocumentRegister";
|
|
29
|
+
});
|
|
24
30
|
useRenderOnChange(() => list.filters.options);
|
|
25
31
|
/** 把ListDataState传给useDocumentRegisterListEffect,使之可以自動更新loading, hasmore. */
|
|
26
|
-
|
|
32
|
+
useDocumentListEffect(list, (result, total) => {
|
|
27
33
|
var _a;
|
|
28
34
|
list.union(result);
|
|
29
|
-
|
|
30
|
-
(_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total);
|
|
35
|
+
setDocumentRTotal(total !== null && total !== void 0 ? total : 0);
|
|
36
|
+
(_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total !== null && total !== void 0 ? total : 0);
|
|
31
37
|
}, {
|
|
32
38
|
Total: true,
|
|
33
39
|
...list.filters.options,
|
|
34
40
|
});
|
|
35
|
-
return observe(() => (React.createElement(
|
|
36
|
-
React.createElement(
|
|
37
|
-
React.createElement(
|
|
38
|
-
|
|
41
|
+
return observe(() => (React.createElement(AsideContent, { context: asideContext },
|
|
42
|
+
React.createElement(ListDataContext.Provider, { value: list },
|
|
43
|
+
React.createElement("div", { className: styles["document-register-list"] },
|
|
44
|
+
React.createElement(PageHeadDashboard, { headerType: "page", avatarIcon: React.createElement(FAIcon, { icon: faRegistered }), title: React.createElement(React.Fragment, null,
|
|
39
45
|
React.createElement("span", { className: "margin-right-10" }, viewTitle),
|
|
40
|
-
total &&
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
context.paging.Page = 1;
|
|
55
|
-
context.filter();
|
|
56
|
-
}
|
|
46
|
+
total && documentRTotal ? (React.createElement(Badge, { count: documentRTotal, overflowCount: 99 })) : null), description: "Overview of Current and Pending Business DocumentRegisters.", listHeaderProps: {
|
|
47
|
+
visible: true,
|
|
48
|
+
sortable: false,
|
|
49
|
+
// onAdd: onAdd,
|
|
50
|
+
searchOptions: { placeholder: "Search in Document Registers list" },
|
|
51
|
+
} }),
|
|
52
|
+
React.createElement(List, { renderId: props.parentId, renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
|
53
|
+
active: activeId === item.id,
|
|
54
|
+
borderProps: { location: "right", color: "rgb(38, 135, 253)", size: "2px" },
|
|
55
|
+
}, onClick: () => setActiveId(item.id) },
|
|
56
|
+
React.createElement(DocumentRegisterItem, { id: item.id }))) }))))));
|
|
57
|
+
};
|
|
58
|
+
DocumentRegisterList.defaultProps = {
|
|
59
|
+
viewTitle: "My Document Register",
|
|
57
60
|
};
|
|
58
61
|
export default DocumentRegisterList;
|
|
59
62
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/components/DocumentRegisterList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register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,GAAI,CACnD,CAAC,CAAC,CAAC,IAAI,CACN,EAEJ,WAAW,EAAC,6DAA6D,EACzE,eAAe,EAAE;wBAChB,OAAO,EAAE,IAAI;wBACb,QAAQ,EAAE,KAAK;wBACf,gBAAgB;wBAChB,aAAa,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAE;qBACnE,GACA;gBACF,oBAAC,IAAI,IACJ,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACzB,oBAAC,iBAAiB,IACjB,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,UAAU,EAAE;4BACX,MAAM,EAAE,QAAQ,KAAK,IAAI,CAAC,EAAE;4BAC5B,WAAW,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,KAAK,EAAE;yBAC3E,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;wBAEnC,oBAAC,oBAAoB,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CAClB,CACpB,GACA,CACG,CACoB,CACb,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,SAAS,EAAE,sBAAsB;CACjC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
.document-register-list {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 100%;
|
|
5
|
+
background: #fff;
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
7
|
+
:global {
|
|
8
|
+
.page-head-dashboard {
|
|
9
|
+
margin-bottom: 20px;
|
|
10
|
+
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
.document-register-list-content {
|
|
13
|
+
// flex: 1;
|
|
14
|
+
// padding: 0 !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.new-form-bottom {
|
|
18
|
+
padding: 10px 20px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DocumentPropertiesName } from "../../../../components/DocumentProperties";
|
|
2
2
|
import React from "react";
|
|
3
|
-
export type DocumentRegisterPropertiesName = "
|
|
3
|
+
export type DocumentRegisterPropertiesName = "Documents List";
|
|
4
4
|
declare const DocumentRegisterProperties: {
|
|
5
5
|
(props: {
|
|
6
6
|
id: string;
|
|
@@ -1,43 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useDocumentRegister, useDocumentRegisterStore } from "../../../../data/document-register";
|
|
3
|
-
import DescriptionEditor from "../../../../controls/DescriptionEditor";
|
|
4
|
-
import DocumentPanelHeader from "../../../../components/DocumentPanelHeader";
|
|
1
|
+
import { useDocumentRegisterStore } from "../../../../data/document-register";
|
|
5
2
|
import DocumentProperties from "../../../../components/DocumentProperties";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
3
|
+
import DocumentPropertieHeader from "../../../../components/DocumentPropertieHeader";
|
|
4
|
+
import DescriptionEditor from "../../../../controls/DescriptionEditor2";
|
|
5
|
+
import { useDocument } from "@voplus/morpho-document-core";
|
|
9
6
|
import React from "react";
|
|
10
7
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
11
8
|
import { observe } from "@voplus/morpho-ui";
|
|
9
|
+
import classnames from "classnames";
|
|
12
10
|
const DocumentRegisterProperties = (props) => {
|
|
13
11
|
/** 加class name 为了方便做integration tests */
|
|
14
12
|
const classId = "documentRegister-properties";
|
|
15
13
|
const { id, headerVisible, documentRegisterTitle, documentTitle, documentRegisterProperties, documentProperties, } = props;
|
|
16
|
-
const documentRegister = useDocumentRegister(id, { includes: "tags" });
|
|
14
|
+
// const documentRegister = useDocumentRegister(id, { includes: "tags" });
|
|
15
|
+
const documentRegister = useDocument(id, { includes: "tags" });
|
|
17
16
|
const store = useDocumentRegisterStore();
|
|
18
17
|
const filterPro = documentRegisterProperties === null || documentRegisterProperties === void 0 ? void 0 : documentRegisterProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
19
|
-
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
20
|
-
headerVisible && React.createElement(
|
|
18
|
+
return observe(() => (React.createElement("div", { className: classnames("properties-list", { noDocHeader: !headerVisible }) },
|
|
19
|
+
headerVisible && React.createElement(DocumentPropertieHeader, { id: id }),
|
|
21
20
|
React.createElement(Scrollbars, { autoHide: true },
|
|
22
21
|
React.createElement(DescriptionEditor, { id: id, description: documentRegister.description, readonly: documentRegister.readonly }),
|
|
23
|
-
React.createElement(PropertiesSection, { title: documentRegisterTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }),
|
|
24
22
|
React.createElement(DocumentProperties, { id: id, title: documentTitle, customProperties: documentProperties })))));
|
|
25
|
-
function renderProp(item) {
|
|
26
|
-
switch (item.name) {
|
|
27
|
-
case "Status":
|
|
28
|
-
return (React.createElement(DocumentRegisterStatusLabel, { status: documentRegister.documentRegisterStatus, editable: !documentRegister.readonly, onChange: (DocumentRegisterStatus) => store.edit(documentRegister.id, {
|
|
29
|
-
data: { DocumentRegisterStatus },
|
|
30
|
-
error: (error) => message.error(error.message),
|
|
31
|
-
}) }));
|
|
32
|
-
case "Type":
|
|
33
|
-
return React.createElement("span", null, documentRegister.type);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
23
|
};
|
|
37
24
|
DocumentRegisterProperties.defaultProps = {
|
|
38
25
|
documentRegisterTitle: "DOCUMENTREGISTER PROPERTIES",
|
|
39
26
|
documentTitle: "DOCUMENT PROPERTIES",
|
|
40
|
-
documentRegisterProperties: [{ name: "
|
|
27
|
+
documentRegisterProperties: [{ name: "Documents List" }],
|
|
41
28
|
};
|
|
42
29
|
export default DocumentRegisterProperties;
|
|
43
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/components/DocumentRegisterProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/components/DocumentRegisterProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,kBAEN,MAAM,2CAA2C,CAAC;AACnD,OAAO,uBAAuB,MAAM,gDAAgD,CAAC;AACrF,OAAO,iBAAiB,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,UAAU,MAAM,YAAY,CAAC;AAIpC,MAAM,0BAA0B,GAAG,CAAC,KAanC,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,6BAA6B,CAAC;IAE9C,MAAM,EACL,EAAE,EACF,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,0BAA0B,EAC1B,kBAAkB,GAClB,GAAG,KAAK,CAAC;IAEV,0EAA0E;IAC1E,MAAM,gBAAgB,GAAG,WAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/D,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IAEzC,MAAM,SAAS,GAAG,0BAA0B,aAA1B,0BAA0B,uBAA1B,0BAA0B,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,MAAK,KAAK,CAAC,CAAC;IAElF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,EAAE,WAAW,EAAE,CAAC,aAAa,EAAE,CAAC;QAC5E,aAAa,IAAI,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI;QACrD,oBAAC,UAAU,IAAC,QAAQ;YACnB,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,gBAAgB,CAAC,WAAW,EACzC,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,GAClC;YACF,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,GAAI,CAC9E,CACR,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,0BAA0B,CAAC,YAAY,GAAG;IACzC,qBAAqB,EAAE,6BAA6B;IACpD,aAAa,EAAE,qBAAqB;IACpC,0BAA0B,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;CACxD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -41,7 +41,7 @@ const DocumentRegisterTabs = (props) => {
|
|
|
41
41
|
label: "Properties",
|
|
42
42
|
children: React.createElement(DocumentRegisterProperties, { id: id }),
|
|
43
43
|
});
|
|
44
|
-
return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "
|
|
44
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "Tasks", tabItems: items, onChange: (key) => setActiveKey(key) })));
|
|
45
45
|
};
|
|
46
46
|
export default DocumentRegisterTabs;
|
|
47
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/components/DocumentRegisterTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/components/DocumentRegisterTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AACvE,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,KAAK,MAAM,8BAA8B,CAAC;AAEjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,oBAAoB,GAAG,CAAC,KAA2C,EAAE,EAAE;IAC5E,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IACjC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IAErD,qBAAqB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE;QACxE,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,EAAE;KACX,CAAC,CAAC;IAEH,MAAM,KAAK,GAAuB;QACjC;YACC,GAAG,EAAE,UAAU;YACf,KAAK,EAAE,CACN;;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
2
|
+
import "./index.less";
|
|
3
|
+
/** The Document Register component with router parameters support. */
|
|
4
|
+
declare const DocumentRegisterDefaultView: ({ id }: {
|
|
5
|
+
id: string;
|
|
5
6
|
}) => React.JSX.Element;
|
|
6
7
|
export default DocumentRegisterDefaultView;
|
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
|
|
3
|
-
import { observe
|
|
4
|
-
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
5
|
-
import DocumentRegisterProperties from "../../components/DocumentRegisterProperties";
|
|
6
|
-
import DocumentRegisterTabs from "../../components/DocumentRegisterTabs";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
4
|
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
/** The
|
|
12
|
-
const DocumentRegisterDefaultView = (
|
|
13
|
-
const params = useParams();
|
|
14
|
-
const id = props.id || params.id || "";
|
|
5
|
+
import DocumentRegisterListPage from "../DocumentRegisterListPage";
|
|
6
|
+
import DocumentRegisterProperties from "../../components/DocumentRegisterProperties";
|
|
7
|
+
import "./index.less";
|
|
8
|
+
/** The Document Register component with router parameters support. */
|
|
9
|
+
const DocumentRegisterDefaultView = ({ id }) => {
|
|
15
10
|
const store = new TabItemStore({ url: "" });
|
|
16
|
-
const frame = useFrame();
|
|
17
|
-
const [asideContext] = useState(frame ? useAsideContentContext() : AsideContent.createContext());
|
|
18
11
|
return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
|
|
19
|
-
React.createElement(MainContent, { className:
|
|
12
|
+
React.createElement(MainContent, { className: "document-register-default-view" },
|
|
20
13
|
React.createElement(MainContent.Nav, { collapsible: true },
|
|
21
14
|
React.createElement(DocumentRegisterProperties, { id: id, headerVisible: true })),
|
|
22
|
-
React.createElement("div", { className: "document-register-context" },
|
|
23
|
-
React.createElement(
|
|
15
|
+
React.createElement("div", { className: "document-register-context" },
|
|
16
|
+
React.createElement(DocumentRegisterListPage, { id: id }))))));
|
|
24
17
|
};
|
|
25
18
|
export default DocumentRegisterDefaultView;
|
|
26
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/pages/DocumentRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/pages/DocumentRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,0BAA0B,MAAM,6CAA6C,CAAC;AACrF,OAAO,cAAc,CAAC;AAEtB,sEAAsE;AACtE,MAAM,2BAA2B,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAC9D,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAE5C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QAEpC,oBAAC,WAAW,IAAC,SAAS,EAAC,gCAAgC;YACtD,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;gBAC3B,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,EAAE,aAAa,SAAG,CACnC;YAClB,6BAAK,SAAS,EAAC,2BAA2B;gBACzC,oBAAC,wBAAwB,IAAC,EAAE,EAAE,EAAE,GAAI,CAC/B,CACO,CACW,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
>div {
|
|
14
|
-
flex: 1;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ant-tabs-nav {
|
|
18
|
-
margin: 0 !important;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
:global {
|
|
2
|
+
.document-register-default-view {
|
|
3
|
+
.main-content-nav {
|
|
4
|
+
width: 370px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
.document-register-context {
|
|
8
|
+
padding: 0;
|
|
9
|
+
background: #ffffff;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { faFileZipper } from "@fortawesome/pro-solid-svg-icons";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
5
|
+
import DocumentRegisterSettings from "../DocumentRegisterSettings";
|
|
6
|
+
import RegisteredDocumentTableList from "../../../registered-document/components/RegisteredDocumentTableList";
|
|
7
|
+
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
8
|
+
import { AsideContent, observe } from "@voplus/morpho-ui";
|
|
9
|
+
import styles from "./index.less";
|
|
10
|
+
const DocumentRegisterListPage = (props) => {
|
|
11
|
+
const { id } = props;
|
|
12
|
+
const [asideContext] = useState(AsideContent.createContext());
|
|
13
|
+
return observe(() => (React.createElement(AsideContent, { context: asideContext },
|
|
14
|
+
React.createElement("div", { className: styles["document-register-list-page"] },
|
|
15
|
+
React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faFileZipper }), title: "Register Documents", description: "Effortless Management of Corporate Registers & Compliance Documents" }),
|
|
16
|
+
React.createElement(DocumentTabs, { id: "", active: "Documents", headerVisibility: true, tabItems: [
|
|
17
|
+
{
|
|
18
|
+
key: "Documents",
|
|
19
|
+
label: "Documents",
|
|
20
|
+
children: React.createElement(RegisteredDocumentTableList, { ParentId: id }),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: "Settings",
|
|
24
|
+
label: "Settings",
|
|
25
|
+
children: React.createElement(DocumentRegisterSettings, { ParentId: id }),
|
|
26
|
+
},
|
|
27
|
+
] })))));
|
|
28
|
+
};
|
|
29
|
+
export default DocumentRegisterListPage;
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/pages/DocumentRegisterListPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAW,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,2BAA2B,MAAM,qEAAqE,CAAC;AAC9G,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,wBAAwB,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1D,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;QAClC,6BAAK,SAAS,EAAE,MAAM,CAAC,6BAA6B,CAAC;YACpD,oBAAC,iBAAiB,IACjB,UAAU,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI,EAC1C,KAAK,EAAC,oBAAoB,EAC1B,WAAW,EAAC,qEAAqE,GAChF;YACF,oBAAC,YAAY,IACZ,EAAE,EAAC,EAAE,EACL,MAAM,EAAC,WAAW,EAClB,gBAAgB,QAChB,QAAQ,EAAE;oBACT;wBACC,GAAG,EAAE,WAAW;wBAChB,KAAK,EAAE,WAAW;wBAClB,QAAQ,EAAE,oBAAC,2BAA2B,IAAC,QAAQ,EAAE,EAAE,GAAI;qBACvD;oBACD;wBACC,GAAG,EAAE,UAAU;wBACf,KAAK,EAAE,UAAU;wBACjB,QAAQ,EAAE,oBAAC,wBAAwB,IAAC,QAAQ,EAAE,EAAE,GAAI;qBACpD;iBACD,GACA,CACG,CACQ,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Tag } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import SettingPage from "@voplus/morpho-ui/es/controls/SettingPage";
|
|
5
|
+
import Setting from "@voplus/morpho-ui/es/controls/SettingPage/Setting";
|
|
6
|
+
import SettingSection from "@voplus/morpho-ui/es/controls/SettingPage/SettingSection";
|
|
7
|
+
import MentionList from "@voplus/morpho-org/es/controls/MentionList";
|
|
8
|
+
import AddRegisterDocumentsTypeDialog from "../../components/AddRegisterDocumentsTypeDialog";
|
|
9
|
+
import "./index.less";
|
|
10
|
+
const DocumentRegisterSettings = (props) => {
|
|
11
|
+
/** 加class name 为了方便做integration tests */
|
|
12
|
+
const classId = "register-setting";
|
|
13
|
+
const { ParentId } = props;
|
|
14
|
+
const [open, setOpen] = useState(false);
|
|
15
|
+
const [quickFilter, setQuickFilter] = useState(true);
|
|
16
|
+
const list = ["Board Resolution", "AGM", "Members Resolution", "Others"];
|
|
17
|
+
return observe(() => (React.createElement("div", { className: "register-setting-page" },
|
|
18
|
+
React.createElement(SettingPage, null,
|
|
19
|
+
React.createElement(SettingSection, null,
|
|
20
|
+
React.createElement(Setting, { label: "Owners", className: classId + "-owners", explain: "Principal manager endowed with full permissions, including the ability to change settings." },
|
|
21
|
+
React.createElement(MentionList, { placeholder: "Select Owners", contacts: [], onChange: (list) => {
|
|
22
|
+
let ownerIds = [];
|
|
23
|
+
list.map((item) => ownerIds.push(item.id));
|
|
24
|
+
console.log(ownerIds, "----ownerIds");
|
|
25
|
+
} })),
|
|
26
|
+
React.createElement(Setting, { label: "Register Documents Type", className: classId + "-type" },
|
|
27
|
+
list.map((i) => (React.createElement(Tag, { key: i, className: "voplus-tag", closeIcon: true, bordered: false, color: "#E6E6E6", onClose: onClose }, i))),
|
|
28
|
+
React.createElement("span", { className: "add-item", onClick: () => {
|
|
29
|
+
setOpen(true);
|
|
30
|
+
setQuickFilter(false);
|
|
31
|
+
} }, "+ Add Item")),
|
|
32
|
+
React.createElement(Setting, { label: "Quick Filter Access", className: classId + "-access", explain: "User are only able to add not more than 4 document type file in quick filter." },
|
|
33
|
+
list.map((i) => (React.createElement(Tag, { key: i, className: "voplus-tag", closeIcon: true, bordered: false, color: "#E6E6E6", onClose: onClose }, i))),
|
|
34
|
+
React.createElement("span", { className: "add-item", onClick: () => {
|
|
35
|
+
setOpen(true);
|
|
36
|
+
setQuickFilter(true);
|
|
37
|
+
} }, "+ Add Item")))),
|
|
38
|
+
open && (React.createElement(AddRegisterDocumentsTypeDialog, { quickFilter: quickFilter, onCancel: () => setOpen(false) })))));
|
|
39
|
+
function onClose() { }
|
|
40
|
+
};
|
|
41
|
+
export default DocumentRegisterSettings;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/pages/DocumentRegisterSettings/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAc,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,OAAO,MAAM,mDAAmD,CAAC;AACxE,OAAO,cAAc,MAAM,0DAA0D,CAAC;AACtF,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,8BAA8B,MAAM,iDAAiD,CAAC;AAC7F,OAAO,cAAc,CAAC;AAEtB,MAAM,wBAAwB,GAAG,CAAC,KAGjC,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,kBAAkB,CAAC;IACnC,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxC,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACrD,MAAM,IAAI,GAAG,CAAC,kBAAkB,EAAE,KAAK,EAAE,oBAAoB,EAAE,QAAQ,CAAC,CAAC;IAEzE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,uBAAuB;QACrC,oBAAC,WAAW;YACX,oBAAC,cAAc;gBACd,oBAAC,OAAO,IACP,KAAK,EAAC,QAAQ,EACd,SAAS,EAAE,OAAO,GAAG,SAAS,EAC9B,OAAO,EAAC,4FAA4F;oB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,EAAE;4BACb,OAAO,CAAC,IAAI,CAAC,CAAC;4BACd,cAAc,CAAC,IAAI,CAAC,CAAC;wBACtB,CAAC,iBAGK,CACE,CACM,CACJ;QACb,IAAI,IAAI,CACR,oBAAC,8BAA8B,IAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAI,CAC5F,CACI,CACN,CAAC,CAAC;IAEH,SAAS,OAAO,KAAI,CAAC;AACtB,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/** Registered Document State */
|
|
3
|
+
export declare class RegisteredDocumentState {
|
|
4
|
+
private viewType?;
|
|
5
|
+
constructor(viewType?: "PropertiesView" | "DefaultView" | undefined);
|
|
6
|
+
/** RegisteredDocumentProperties 点击 view more 跳转到 RegisteredDocumentTabs 的 Documents */
|
|
7
|
+
activeKey?: string;
|
|
8
|
+
setActiveKey(key: string): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const RegisteredDocumentContext: React.Context<RegisteredDocumentState | null>;
|
|
11
|
+
export declare const useRegisteredDocumentContext: () => RegisteredDocumentState;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import React, { useContext } from "react";
|
|
3
|
+
import { makeObservable, observable, action } from "mobx";
|
|
4
|
+
/** Registered Document State */
|
|
5
|
+
export class RegisteredDocumentState {
|
|
6
|
+
constructor(viewType) {
|
|
7
|
+
Object.defineProperty(this, "viewType", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
configurable: true,
|
|
10
|
+
writable: true,
|
|
11
|
+
value: viewType
|
|
12
|
+
});
|
|
13
|
+
/** RegisteredDocumentProperties 点击 view more 跳转到 RegisteredDocumentTabs 的 Documents */
|
|
14
|
+
Object.defineProperty(this, "activeKey", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true,
|
|
18
|
+
value: this.viewType === "DefaultView" ? "Document" : "Properties"
|
|
19
|
+
});
|
|
20
|
+
makeObservable(this);
|
|
21
|
+
}
|
|
22
|
+
setActiveKey(key) {
|
|
23
|
+
this.activeKey = key;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
__decorate([
|
|
27
|
+
observable
|
|
28
|
+
], RegisteredDocumentState.prototype, "activeKey", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
action
|
|
31
|
+
], RegisteredDocumentState.prototype, "setActiveKey", null);
|
|
32
|
+
export const RegisteredDocumentContext = React.createContext(null);
|
|
33
|
+
export const useRegisteredDocumentContext = () => {
|
|
34
|
+
const context = useContext(RegisteredDocumentContext);
|
|
35
|
+
if (context == null)
|
|
36
|
+
throw new Error("Menu Context not found. Please use <RegisteredDocumentContext.Provider value={}/>");
|
|
37
|
+
return context;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=RegisteredDocumentContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegisteredDocumentContext.js","sourceRoot":"","sources":["../../../src/modules/registered-document/RegisteredDocumentContext.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE1D,iCAAiC;AACjC,MAAM,OAAO,uBAAuB;IACnC,YAA2B,QAA2C;QAAnD;;;;mBAAQ,QAAQ;WAAmC;QAItE,uFAAuF;QACpE;;;;mBAClB,IAAI,CAAC,QAAQ,KAAK,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY;WAAC;QAL5D,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAMc,YAAY,CAAC,GAAW;QACtC,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC;IACtB,CAAC;CACD;AANmB;IAAlB,UAAU;0DACkD;AAE9C;IAAd,MAAM;2DAEN;AAGF,MAAM,CAAC,MAAM,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAAiC,IAAI,CAAC,CAAC;AACnG,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAChD,MAAM,OAAO,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAC;IACtD,IAAI,OAAO,IAAI,IAAI;QAClB,MAAM,IAAI,KAAK,CACd,mFAAmF,CACnF,CAAC;IACH,OAAO,OAAO,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { useDocumentStore, useMetaStore } from "@voplus/morpho-document-core";
|
|
3
|
+
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
6
|
+
import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
+
import QuickView from "@voplus/morpho-document-core/es/components/QuickView";
|
|
9
|
+
import { useRegisteredDocumentContext } from "../../RegisteredDocumentContext";
|
|
10
|
+
import { Skeleton } from "antd";
|
|
11
|
+
import "./index.less";
|
|
12
|
+
const Documents = (props) => {
|
|
13
|
+
const { id } = props;
|
|
14
|
+
const meta = useMetaStore();
|
|
15
|
+
const store = useDocumentStore();
|
|
16
|
+
const context = useRegisteredDocumentContext();
|
|
17
|
+
const [loading, setLoading] = useState(false);
|
|
18
|
+
const [list, setList] = useState();
|
|
19
|
+
const [total, setTotal] = useState(0);
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
loadList();
|
|
22
|
+
}, [id]);
|
|
23
|
+
return observe(() => (React.createElement("div", { className: "register-documents-shortcut-summary" },
|
|
24
|
+
React.createElement(Skeleton, { loading: loading },
|
|
25
|
+
(list === null || list === void 0 ? void 0 : list.length) ? (list === null || list === void 0 ? void 0 : list.map((item, index) => {
|
|
26
|
+
return index < 3 ? (React.createElement(ItemFunction, { className: "item", quickViewDialog: (onCancel) => (React.createElement(QuickView, { id: item.id, visible: true, onCancel: onCancel })) },
|
|
27
|
+
React.createElement("span", { className: "icon" }, meta.getIcon(item)),
|
|
28
|
+
React.createElement("span", { className: "name" }, item.name),
|
|
29
|
+
React.createElement(ToolBar, { id: item.id, moreProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } }))) : null;
|
|
30
|
+
})) : (React.createElement("span", { className: "add-info-style" }, "no data")),
|
|
31
|
+
total > 3 ? (React.createElement("div", { className: "more", onClick: () => {
|
|
32
|
+
context.setActiveKey("Document");
|
|
33
|
+
} },
|
|
34
|
+
"View ",
|
|
35
|
+
total - 3,
|
|
36
|
+
" more")) : null))));
|
|
37
|
+
async function loadList() {
|
|
38
|
+
setLoading(true);
|
|
39
|
+
const res = (await store.loadList({
|
|
40
|
+
Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
|
|
41
|
+
Total: true,
|
|
42
|
+
}));
|
|
43
|
+
setList(res.list);
|
|
44
|
+
setTotal(res.total);
|
|
45
|
+
setLoading(false);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
export default Documents;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/registered-document/components/Documents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAa,gBAAgB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,OAAO,MAAM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