@voplus/morpho-document 6.1.89 → 6.1.90
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 +1 -1
- package/es/components/DocumentTabs/index.d.ts +1 -0
- package/es/components/DocumentTabs/index.js +3 -3
- package/es/components/DocumentTabs/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionItem/index.d.ts +1 -0
- package/es/modules/action-plan/components/ActionItem/index.js +4 -3
- package/es/modules/action-plan/components/ActionItem/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionList/index.js +34 -31
- package/es/modules/action-plan/components/ActionList/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionPlanItem/index.js +2 -3
- package/es/modules/action-plan/components/ActionPlanItem/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionPlanProperties/index.d.ts +0 -1
- package/es/modules/action-plan/components/ActionPlanProperties/index.js +3 -12
- package/es/modules/action-plan/components/ActionPlanProperties/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionPlanPropertiesView/index.js +4 -4
- package/es/modules/action-plan/components/ActionPlanPropertiesView/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionPlanTabs/index.d.ts +1 -0
- package/es/modules/action-plan/components/ActionPlanTabs/index.js +11 -2
- package/es/modules/action-plan/components/ActionPlanTabs/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionQuickViewDialog/index.d.ts +9 -0
- package/es/modules/action-plan/components/ActionQuickViewDialog/index.js +33 -0
- package/es/modules/action-plan/components/ActionQuickViewDialog/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionQuickViewDialog/index.less +15 -0
- package/es/modules/action-plan/pages/ActionPlanDefaultView/index.js +7 -4
- package/es/modules/action-plan/pages/ActionPlanDefaultView/index.js.map +1 -1
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.d.ts +0 -1
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js +2 -14
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js.map +1 -1
- package/es/modules/document-register/components/DocumentRegisterProperties/index.d.ts +0 -1
- package/es/modules/document-register/components/DocumentRegisterProperties/index.js +2 -10
- package/es/modules/document-register/components/DocumentRegisterProperties/index.js.map +1 -1
- package/es/modules/message-template/components/MessageTemplateProperties/index.d.ts +0 -1
- package/es/modules/message-template/components/MessageTemplateProperties/index.js +1 -3
- package/es/modules/message-template/components/MessageTemplateProperties/index.js.map +1 -1
- package/es/modules/registered-document/components/RegisteredDocumentProperties/index.d.ts +0 -1
- package/es/modules/registered-document/components/RegisteredDocumentProperties/index.js +2 -5
- package/es/modules/registered-document/components/RegisteredDocumentProperties/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceProperties/index.d.ts +0 -1
- package/es/modules/tenant-service/components/TenantServiceProperties/index.js +2 -10
- package/es/modules/tenant-service/components/TenantServiceProperties/index.js.map +1 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.d.ts +0 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.js +2 -10
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.js.map +1 -1
- package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.d.ts +0 -1
- package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.js +2 -5
- package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.js.map +1 -1
- package/package.json +1 -1
package/es/Modules.js
CHANGED
|
@@ -8,7 +8,7 @@ import { UnitUIService } from "@voplus/morpho-org/es/UnitUIService";
|
|
|
8
8
|
import { NodeFieldRegister } from "@voplus/morpho-fields/es/services/NodeFieldRegister";
|
|
9
9
|
import DocumentActivityLogRenderer from "./services/DocumentActivityLogRenderer";
|
|
10
10
|
import SignActivityLogRenderer from "./services/SignActivityLogRenderer";
|
|
11
|
-
import registerItems from "@voplus/morpho-fields/es/
|
|
11
|
+
import registerItems from "@voplus/morpho-fields/es/fields/registerItems";
|
|
12
12
|
import Routes from "./routes";
|
|
13
13
|
const Modules = {
|
|
14
14
|
/** Register necessary module resources. */
|
|
@@ -13,7 +13,7 @@ import classnames from "classnames";
|
|
|
13
13
|
import styles from "./index.less";
|
|
14
14
|
const DocumentTabs = (props) => {
|
|
15
15
|
var _a, _b, _c;
|
|
16
|
-
const { id, active, tabItems, details, properties } = props;
|
|
16
|
+
const { id, active, tabItems, details, properties, actionPlan = true } = props;
|
|
17
17
|
/**Tabs 当前激活 tab 面板的 key */
|
|
18
18
|
const [activeKey, setActiveKey] = useState(active !== null && active !== void 0 ? active : "Details");
|
|
19
19
|
useEffect(() => setActiveKey(active !== null && active !== void 0 ? active : "Details"), [id, active]);
|
|
@@ -22,7 +22,7 @@ const DocumentTabs = (props) => {
|
|
|
22
22
|
if (tabItems) {
|
|
23
23
|
// 复制 tabItems,插入 ActionPlan tab 到倒数第三项
|
|
24
24
|
items = [...tabItems];
|
|
25
|
-
if (host.isTest) {
|
|
25
|
+
if (actionPlan && host.isTest) {
|
|
26
26
|
const actionPlanTab = {
|
|
27
27
|
key: "ActionPlan",
|
|
28
28
|
label: "Action Plan",
|
|
@@ -51,7 +51,7 @@ const DocumentTabs = (props) => {
|
|
|
51
51
|
},
|
|
52
52
|
];
|
|
53
53
|
// 只有 host.isTest 时才添加 ActionPlan
|
|
54
|
-
if (host.isTest) {
|
|
54
|
+
if (actionPlan && host.isTest) {
|
|
55
55
|
items.splice(1, 0, {
|
|
56
56
|
key: "ActionPlan",
|
|
57
57
|
label: "Action Plan",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DocumentTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU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Ae,YAAY,CAAC"}
|
|
@@ -5,16 +5,17 @@ import { faTrashXmark, faPenToSquare } from "@fortawesome/pro-light-svg-icons";
|
|
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
6
|
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
7
7
|
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
8
|
+
import ActionQuickViewDialog from "../ActionQuickViewDialog";
|
|
8
9
|
import classnames from "classnames";
|
|
9
10
|
import styles from "./index.less";
|
|
10
11
|
const ActionItem = (props) => {
|
|
11
|
-
const { action } = props;
|
|
12
|
+
const { action, parentId } = props;
|
|
12
13
|
const [hover, setHover] = useState(false);
|
|
13
14
|
return observe(() => {
|
|
14
15
|
var _a, _b;
|
|
15
|
-
return (React.createElement(ItemFunction, { className: styles["action-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false) },
|
|
16
|
+
return (React.createElement(ItemFunction, { className: styles["action-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), quickViewDialog: (onCancel) => (React.createElement(ActionQuickViewDialog, { id: parentId, itemKey: action.id, visible: true, onCancel: onCancel })) },
|
|
16
17
|
React.createElement(ColumnItem, { className: "action-column-item" },
|
|
17
|
-
React.createElement(ColumnItemCol, { span: 5, label: "FILE" }, "
|
|
18
|
+
React.createElement(ColumnItemCol, { span: 5, label: "FILE" }, "Action"),
|
|
18
19
|
React.createElement(ColumnItemCol, { span: 7, label: "TYPE" }, action.type),
|
|
19
20
|
React.createElement(ColumnItemCol, { span: 4, label: "OFFSET" }, (_a = action.data) === null || _a === void 0 ? void 0 : _a.offset),
|
|
20
21
|
React.createElement(ColumnItemCol, { span: 4, label: "TEMPLATE" }, (_b = action.data) === null || _b === void 0 ? void 0 : _b.template.value),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,UAAU,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,UAAU,GAAG,CAAC,KAMnB,EAAE,EAAE;IACJ,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;I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CAAC,MAAM,GAAI;wBACxF,oBAAC,MAAM,IACN,IAAI,EAAE,YAAY,EAClB,SAAS,EAAC,oBAAoB,EAC9B,OAAO,EAAE,GAAG,EAAE,CACb,KAAK,CAAC,OAAO,CAAC;gCACb,KAAK,EAAE,gBAAgB;gCACvB,OAAO,EAAE,8CAA8C;gCACvD,MAAM,EAAE,QAAQ;gCAChB,UAAU,EAAE,QAAQ;gCACpB,IAAI,EAAE,KAAK,CAAC,QAAQ;6BACpB,CAAC,GAEF,CACG,CACS,CACJ,CACC,CACf,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
1
|
+
import React, { useMemo, useState } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
4
|
import { Button, Skeleton, Empty, message } from "antd";
|
|
4
5
|
import { useActionPlan, useActionPlanStore } from "../../../../data/action-plan";
|
|
5
6
|
import ActionPlanItem from "../ActionItem";
|
|
@@ -11,40 +12,42 @@ const ActionList = (props) => {
|
|
|
11
12
|
});
|
|
12
13
|
const actionPlans = useActionPlan(props.templatePlanId);
|
|
13
14
|
const store = useActionPlanStore();
|
|
15
|
+
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
14
16
|
return observe(() => {
|
|
15
17
|
var _a, _b;
|
|
16
|
-
return (React.createElement(
|
|
17
|
-
React.createElement("div", { className: "list
|
|
18
|
-
React.createElement("div", { className: "list-
|
|
19
|
-
React.createElement("div", { className: "view-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
React.createElement(
|
|
18
|
+
return (React.createElement(ViewContext.Provider, { value: view },
|
|
19
|
+
React.createElement("div", { className: "action-list" },
|
|
20
|
+
React.createElement("div", { className: "list-header-content" },
|
|
21
|
+
React.createElement("div", { className: "list-view-header" },
|
|
22
|
+
React.createElement("div", { className: "view-title" }),
|
|
23
|
+
React.createElement(Button, { className: "create-new-btn", onClick: () => setAdd(true) }, "+ New"))),
|
|
24
|
+
React.createElement("div", { className: "list-body-content" },
|
|
25
|
+
React.createElement(Skeleton, { active: true, loading: !actionPlans.loaded }, ((_a = actionPlans === null || actionPlans === void 0 ? void 0 : actionPlans.actions) === null || _a === void 0 ? void 0 : _a.length) === 0 ? (React.createElement(Empty, { description: "No actions", image: Empty.PRESENTED_IMAGE_SIMPLE })) : ((_b = actionPlans === null || actionPlans === void 0 ? void 0 : actionPlans.actions) === null || _b === void 0 ? void 0 : _b.map((action, index) => (React.createElement(ActionPlanItem, { key: index, parentId: actionPlans.id, action: action, onEdit: () => setEdit({ action: action, visible: true }), onDelete: async () => {
|
|
26
|
+
await store.edit(props.templatePlanId, {
|
|
27
|
+
data: {
|
|
28
|
+
ActionChanges: [
|
|
29
|
+
{
|
|
30
|
+
Id: action.id,
|
|
31
|
+
Operation: "Delete",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
} })))))),
|
|
37
|
+
add && (React.createElement(NewActionsForm, { operation: "Create", onCancel: () => setAdd(false), onOk: async (data) => {
|
|
23
38
|
await store.edit(props.templatePlanId, {
|
|
24
|
-
data: {
|
|
25
|
-
|
|
26
|
-
{
|
|
27
|
-
Id: action.id,
|
|
28
|
-
Operation: "Delete",
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
},
|
|
39
|
+
data: { ActionChanges: [data] },
|
|
40
|
+
error: (error) => message.error(error.message),
|
|
32
41
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
await store.edit(props.templatePlanId, {
|
|
43
|
-
data: { ActionChanges: [{ Id: edit.action.id, ...data }] },
|
|
44
|
-
error: (error) => message.error(error.message),
|
|
45
|
-
});
|
|
46
|
-
setEdit({ action: undefined, visible: false });
|
|
47
|
-
} }))));
|
|
42
|
+
setAdd(false);
|
|
43
|
+
} })),
|
|
44
|
+
edit.visible && edit.action && (React.createElement(NewActionsForm, { operation: "Update", action: edit.action, onCancel: () => setEdit({ action: undefined, visible: false }), onOk: async (data) => {
|
|
45
|
+
await store.edit(props.templatePlanId, {
|
|
46
|
+
data: { ActionChanges: [{ Id: edit.action.id, ...data }] },
|
|
47
|
+
error: (error) => message.error(error.message),
|
|
48
|
+
});
|
|
49
|
+
setEdit({ action: undefined, visible: false });
|
|
50
|
+
} })))));
|
|
48
51
|
});
|
|
49
52
|
};
|
|
50
53
|
export default ActionList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAqB,MAAM,8BAA8B,CAAC;AACpG,OAAO,cAAc,MAAM,eAAe,CAAC;AAC3C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAM/C,MAAM,UAAU,GAAG,CAAC,KAA0B,EAAE,EAAE;IACjD,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,KAAK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c,EAAE;4BACtC,IAAI,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,MAAO,CAAC,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE;4BAC3D,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;yBAC9C,CAAC,CAAC;wBACH,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;oBAChD,CAAC,GACA,CACF,CACI,CACgB,CACvB,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { Skeleton } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
5
4
|
import { Open } from "../../../../controls/ToolBar/buttons";
|
|
6
5
|
import { useActionPlan } from "../../../../data/action-plan";
|
|
7
6
|
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
@@ -10,12 +9,12 @@ import ActionPlanPropertiesView from "../ActionPlanPropertiesView";
|
|
|
10
9
|
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
11
10
|
import ActionPlanMenu from "../../controls/ActionPlanMenu";
|
|
12
11
|
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
12
|
+
import Routes from "../../../../routes";
|
|
13
13
|
import classnames from "classnames";
|
|
14
14
|
import styles from "./index.less";
|
|
15
15
|
const ActionPlanItem = (props) => {
|
|
16
16
|
const { id } = props;
|
|
17
17
|
const actionPlan = useActionPlan(id);
|
|
18
|
-
const meta = useMetaStore();
|
|
19
18
|
const [hover, setHover] = useState(false);
|
|
20
19
|
return observe(() => (React.createElement(ItemFunction, { className: styles["action-plan-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(ActionPlanPropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(ActionPlanQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
|
|
21
20
|
React.createElement(Skeleton, { paragraph: { rows: 1 }, loading: !actionPlan.loaded },
|
|
@@ -32,7 +31,7 @@ const ActionPlanItem = (props) => {
|
|
|
32
31
|
setHover(false);
|
|
33
32
|
} },
|
|
34
33
|
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
35
|
-
React.createElement(Open, { size: "middle", url:
|
|
34
|
+
React.createElement(Open, { size: "middle", url: Routes.ActionPlanDefaultView.getUrl(id) }),
|
|
36
35
|
React.createElement(ActionPlanMenu, { id: id, closeAside: true })))))))));
|
|
37
36
|
};
|
|
38
37
|
export default ActionPlanItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,a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E,KAAK,EAAC,MAAM;oBACpC,6BAAK,SAAS,EAAC,uBAAuB,IAAE,GAAG,UAAU,CAAC,IAAI,EAAE,CAAO,CACpD;gBAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC;oBACrB,yCAAK,CACU;gBAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC;oBACrB,yCAAK,CACU;gBAChB,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU;oBACvC,6BACC,SAAS,EAAE,UAAU,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAC/D,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;4BACd,CAAC,CAAC,eAAe,EAAE,CAAC;4BACpB,QAAQ,CAAC,KAAK,CAAC,CAAC;wBACjB,CAAC;wBAED,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;4BAC/B,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,MAAM,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;4BACpE,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACnC,CACL,CACS,CACJ,CACH,CACG,CACf,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
4
|
-
import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
4
|
import { useActionPlan, useActionPlanStore } from "../../../../data/action-plan";
|
|
7
|
-
import
|
|
8
|
-
import ActionPlanMenu from "../../controls/ActionPlanMenu";
|
|
9
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
10
|
-
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
5
|
+
import FieldsProperties from "@voplus/morpho-fields/es/components/FieldsProperties";
|
|
11
6
|
const ActionPlanProperties = (props) => {
|
|
12
7
|
/** 加class name 为了方便做integration tests */
|
|
13
8
|
const classId = "action-plan-properties";
|
|
14
|
-
const { id,
|
|
9
|
+
const { id, actionPlanTitle, actionPlanProperties } = props;
|
|
15
10
|
const actionPlan = useActionPlan(id);
|
|
16
11
|
const store = useActionPlanStore();
|
|
17
12
|
return observe(() => {
|
|
18
13
|
const filterPro = actionPlanProperties === null || actionPlanProperties === void 0 ? void 0 : actionPlanProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
19
14
|
return (React.createElement("div", { className: "properties-list" },
|
|
20
|
-
headerVisible && (React.createElement("div", { className: "properties-header" },
|
|
21
|
-
React.createElement("div", { className: "title" }, actionPlan === null || actionPlan === void 0 ? void 0 : actionPlan.name),
|
|
22
|
-
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
23
|
-
React.createElement(ActionPlanMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })))),
|
|
24
15
|
React.createElement(Scrollbars, { autoHide: true },
|
|
25
|
-
React.createElement(
|
|
16
|
+
React.createElement(FieldsProperties, { id: id }))));
|
|
26
17
|
});
|
|
27
18
|
function renderProp(item) {
|
|
28
19
|
switch (item.name) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","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B;IACzC,oBAAoB,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;CAC9C,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
2
3
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
4
|
import PropertiesHeader from "@voplus/morpho-org/es/components/PropertiesHeader";
|
|
4
|
-
import {
|
|
5
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
5
6
|
import { useActionPlan, useActionPlanStore } from "../../../../data/action-plan";
|
|
6
7
|
import { faSuitcase } from "@fortawesome/pro-solid-svg-icons";
|
|
7
8
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
9
|
import ActionPlanMenu from "../../controls/ActionPlanMenu";
|
|
9
10
|
import ActionPlanTabs from "../ActionPlanTabs";
|
|
10
|
-
import
|
|
11
|
+
import Routes from "../../../../routes";
|
|
11
12
|
const ActionPlanPropertiesView = (props) => {
|
|
12
13
|
const id = props.id;
|
|
13
|
-
const meta = useMetaStore();
|
|
14
14
|
const store = useActionPlanStore();
|
|
15
15
|
const handleError = useHandleError();
|
|
16
16
|
const actionPlan = useActionPlan(id, {
|
|
@@ -21,7 +21,7 @@ const ActionPlanPropertiesView = (props) => {
|
|
|
21
21
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
22
22
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
23
23
|
React.createElement("div", { className: "module-detail-view action-plan-properties-view" },
|
|
24
|
-
React.createElement(PropertiesHeader, { id: id, icon: React.createElement(FAIcon, { icon: faSuitcase }), nodeName: actionPlan.name, url:
|
|
24
|
+
React.createElement(PropertiesHeader, { id: id, icon: React.createElement(FAIcon, { icon: faSuitcase }), nodeName: actionPlan.name, url: Routes.ActionPlanDefaultView.getUrl(id), tagProps: { id: id, items: store.items, tags: actionPlan.tags }, nodeMenu: React.createElement(ActionPlanMenu, { id: id, closeAside: true }) }),
|
|
25
25
|
React.createElement(ActionPlanTabs, { id: id, properties: true })))));
|
|
26
26
|
};
|
|
27
27
|
export default ActionPlanPropertiesView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,gBAAgB,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,gBAAgB,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,wBAAwB,GAAG,CAAC,KAAwC,EAAE,EAAE;IAC7E,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IAEpB,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,EAAE;QACpC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;QACtB,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,WAAW;KACpB,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,gDAAgD;YAC9D,oBAAC,gBAAgB,IAChB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI,EAClC,QAAQ,EAAE,UAAU,CAAC,IAAI,EACzB,GAAG,EAAE,MAAM,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,CAAC,EAC5C,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,EAC/D,QAAQ,EAAE,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,GACrD;YACF,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAChC,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,wBAAwB,CAAC"}
|
|
@@ -2,13 +2,16 @@ import React, { useState } from "react";
|
|
|
2
2
|
import { Badge } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
5
|
+
import { FieldsContext, RefreshState, } from "@voplus/morpho-fields/es/components/FieldsProperties/FieldsRefreshContext";
|
|
5
6
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
7
|
+
import FieldList from "@voplus/morpho-fields/es/components/FieldList";
|
|
6
8
|
import DocumentList from "../../../../components/DocumentList";
|
|
7
9
|
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
8
10
|
import ActionPlanProperties from "../ActionPlanProperties";
|
|
9
11
|
import ActionList from "../ActionList";
|
|
10
12
|
const ActionPlanTabs = (props) => {
|
|
11
|
-
const { id, properties } = props;
|
|
13
|
+
const { id, properties, fieldsContext = true } = props;
|
|
14
|
+
const [fields] = useState(() => new RefreshState());
|
|
12
15
|
const [docTotals, setDocTotals] = useState(0);
|
|
13
16
|
const [activeKey, setActiveKey] = useState();
|
|
14
17
|
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
@@ -23,6 +26,11 @@ const ActionPlanTabs = (props) => {
|
|
|
23
26
|
label: "Actions",
|
|
24
27
|
children: React.createElement(ActionList, { templatePlanId: id }),
|
|
25
28
|
},
|
|
29
|
+
{
|
|
30
|
+
key: "CustomField",
|
|
31
|
+
label: "Custom Field",
|
|
32
|
+
children: React.createElement(FieldList, { id: id }),
|
|
33
|
+
},
|
|
26
34
|
{
|
|
27
35
|
key: "Document",
|
|
28
36
|
label: (React.createElement(React.Fragment, null,
|
|
@@ -42,7 +50,8 @@ const ActionPlanTabs = (props) => {
|
|
|
42
50
|
label: "Properties",
|
|
43
51
|
children: React.createElement(ActionPlanProperties, { id: id }),
|
|
44
52
|
});
|
|
45
|
-
return (React.createElement(
|
|
53
|
+
return fieldsContext ? (React.createElement(FieldsContext.Provider, { value: fields },
|
|
54
|
+
React.createElement(DocumentTabs, { id: id, tabItems: items, actionPlan: false, active: properties ? "Properties" : "Actions", onChange: (key) => setActiveKey(key) }))) : (React.createElement(DocumentTabs, { id: id, tabItems: items, actionPlan: false, active: properties ? "Properties" : "Actions", onChange: (key) => setActiveKey(key) }));
|
|
46
55
|
});
|
|
47
56
|
};
|
|
48
57
|
export default ActionPlanTabs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,MAAM,cAAc,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EACN,aAAa,EACb,YAAY,GACZ,MAAM,2EAA2E,CAAC;AACnF,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,SAAS,MAAM,+CAA+C,CAAC;AACtE,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,oBAAoB,MAA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0 +1,33 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { faTag } from "@fortawesome/pro-light-svg-icons";
|
|
4
|
+
import { Close } from "../../../../controls/ToolBar/buttons";
|
|
5
|
+
import { FieldsContext, RefreshState, } from "@voplus/morpho-fields/es/components/FieldsProperties/FieldsRefreshContext";
|
|
6
|
+
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
7
|
+
import FieldList from "@voplus/morpho-fields/es/components/FieldList";
|
|
8
|
+
import FieldsProperties from "@voplus/morpho-fields/es/components/FieldsProperties";
|
|
9
|
+
import NodeHeaderLayout from "@voplus/morpho-ui/es/controls/NodeHeaderLayout";
|
|
10
|
+
import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
11
|
+
import "./index.less";
|
|
12
|
+
const ActionQuickViewDialog = (props) => {
|
|
13
|
+
const { id, itemKey } = props;
|
|
14
|
+
const [fields] = useState(() => new RefreshState());
|
|
15
|
+
const [error, setError] = useState(null);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
setError(null);
|
|
18
|
+
}, [id]);
|
|
19
|
+
return observe(() => (React.createElement(FieldsContext.Provider, { value: fields },
|
|
20
|
+
React.createElement(QuickViewDialog, { ...props, error: error, className: "action-quick-view", header: React.createElement(NodeHeaderLayout, { content: "Action", tool: React.createElement(ToolBar, { id: id, showMenu: false },
|
|
21
|
+
React.createElement(Close, { action: props.onCancel })) }), items: [
|
|
22
|
+
{
|
|
23
|
+
name: "field",
|
|
24
|
+
icon: faTag,
|
|
25
|
+
title: "Custom Field",
|
|
26
|
+
detail: React.createElement(FieldList, { id: id, itemKey: itemKey }),
|
|
27
|
+
},
|
|
28
|
+
] },
|
|
29
|
+
React.createElement("div", { className: "properties-list" },
|
|
30
|
+
React.createElement(FieldsProperties, { id: id, itemKey: itemKey }))))));
|
|
31
|
+
};
|
|
32
|
+
export default ActionQuickViewDialog;
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EACN,aAAa,EACb,YAAY,GACZ,MAAM,2EAA2E,CAAC;AACnF,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,SAAS,MAAM,+CAA+C,CAAC;AACtE,OAAO,gBAAgB,MAAM,sDAAsD,CAAC;AACpF,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,CAAC,KAO9B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE9B,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,YAAY,EAAE,CAAC,CAAC;IACpD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IAEvD,SAAS,CAAC,GAAG,EAAE;QACd,QAAQ,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM;QACpC,oBAAC,eAAe,OACX,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,mBAAmB,EAC7B,MAAM,EACL,oBAAC,gBAAgB,IAChB,OAAO,EAAC,QAAQ,EAChB,IAAI,EACH,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;oBAC/B,oBAAC,KAAK,IAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,GAAI,CACxB,GAEV,EAEH,KAAK,EAAE;gBACN;oBACC,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,KAAK;oBACX,KAAK,EAAE,cAAc;oBACrB,MAAM,EAAE,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,GAAI;iBAC/C;aACD;YAED,6BAAK,SAAS,EAAC,iBAAiB;gBAC/B,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,GAAI,CACzC,CACW,CACM,CACzB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useEffect } from "react";
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { runInAction } from "mobx";
|
|
4
4
|
import { useParams } from "react-router-dom";
|
|
@@ -7,6 +7,7 @@ import { useActionPlan } from "../../../../data/action-plan";
|
|
|
7
7
|
import { useHandleError } from "@voplus/morpho-document-core";
|
|
8
8
|
import { faEllipsisVertical, faClock } from "@fortawesome/pro-solid-svg-icons";
|
|
9
9
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
|
+
import { FieldsContext, RefreshState, } from "@voplus/morpho-fields/es/components/FieldsProperties/FieldsRefreshContext";
|
|
10
11
|
import ActionPlanProperties from "../../components/ActionPlanProperties";
|
|
11
12
|
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
12
13
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
@@ -20,12 +21,14 @@ const ActionPlanDefaultView = () => {
|
|
|
20
21
|
const tab = useTabItem();
|
|
21
22
|
const handleError = useHandleError();
|
|
22
23
|
const actionPlan = useActionPlan(id, { onError: handleError });
|
|
24
|
+
const [fields] = useState(() => new RefreshState());
|
|
23
25
|
useEffect(() => {
|
|
24
26
|
runInAction(() => (tab.title = actionPlan.name));
|
|
25
27
|
}, [id]);
|
|
26
|
-
return observe(() => (React.createElement(
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
return observe(() => (React.createElement(FieldsContext.Provider, { value: fields },
|
|
29
|
+
React.createElement(DefaultViewLayout, { className: styles["action-plan-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faClock }), title: actionPlan.name, upAble: true, description: "Streamlining Engagement: A Comprehensive Overview of Nominee Services Performance", toolMenu: React.createElement(ToolBar, { id: id, showMenu: false },
|
|
30
|
+
React.createElement(ActionPlanMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })) }), properties: React.createElement(ActionPlanProperties, { id: id }) },
|
|
31
|
+
React.createElement(ActionPlanTabs, { id: id, fieldsContext: false })))));
|
|
29
32
|
};
|
|
30
33
|
export default ActionPlanDefaultView;
|
|
31
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/pages/ActionPlanDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/pages/ActionPlanDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,m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CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAClD,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,MAAM;QACpC,oBAAC,iBAAiB,IACjB,SAAS,EAAE,MAAM,CAAC,0BAA0B,CAAC,EAC7C,MAAM,EACL,oBAAC,iBAAiB,IACjB,UAAU,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,GAAI,EACrC,KAAK,EAAE,UAAU,CAAC,IAAI,EACtB,MAAM,QACN,WAAW,EAAC,mFAAmF,EAC/F,QAAQ,EACP,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;oBAC/B,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI,GAAI,CAC7D,GAEV,EAEH,UAAU,EAAE,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAG,GAAI;YAE7C,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,aAAa,EAAE,KAAK,GAAI,CAC7B,CACI,CACzB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,30 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Button } from "antd";
|
|
3
2
|
import { observe } from "@voplus/morpho-ui";
|
|
4
3
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
5
|
-
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
6
4
|
import DocumentProperties from "../../../../components/DocumentProperties";
|
|
7
5
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
8
|
-
import DocumentPropertiesHeader from "../../../../components/DocumentPropertiesHeader";
|
|
9
|
-
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
10
6
|
const ActionPlanTemplateProperties = (props) => {
|
|
11
|
-
const { id,
|
|
7
|
+
const { id, messagePlanTitle, documentTitle, messagePlanProperties, documentProperties } = props;
|
|
12
8
|
const filterPro = messagePlanProperties === null || messagePlanProperties === void 0 ? void 0 : messagePlanProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
13
9
|
/** 加class name 为了方便做integration tests */
|
|
14
10
|
const classId = "message-plan-properties";
|
|
15
11
|
const appContext = useApplicationContext();
|
|
16
12
|
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
17
|
-
headerVisible && React.createElement(DocumentPropertiesHeader, { id: id }),
|
|
18
13
|
React.createElement(Scrollbars, { autoHide: true },
|
|
19
|
-
React.createElement(PropertiesSection, { title: messagePlanTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => renderProp(i)) }),
|
|
20
14
|
React.createElement(DocumentProperties, { id: id, title: documentTitle, customProperties: documentProperties })))));
|
|
21
|
-
function renderProp(item) {
|
|
22
|
-
switch (item.name) {
|
|
23
|
-
case "Actions Plans":
|
|
24
|
-
return (appContext.host.isTest && (React.createElement(Prop, { label: "Actions Plans (test)" },
|
|
25
|
-
React.createElement(Button, { size: "small" }, "Create"))));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
15
|
+
function renderProp(item) { }
|
|
28
16
|
};
|
|
29
17
|
ActionPlanTemplateProperties.defaultProps = {
|
|
30
18
|
messagePlanTitle: "MESSAGE PLAN PROPERTIES",
|
package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan-template/components/ActionPlanTemplateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../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"}
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import { useDocumentRegisterStore } from "../../../../data/document-register";
|
|
2
1
|
import DocumentProperties from "../../../../components/DocumentProperties";
|
|
3
|
-
import DocumentPropertiesHeader from "../../../../components/DocumentPropertiesHeader";
|
|
4
2
|
import DescriptionEditor from "../../../../controls/DescriptionEditor2";
|
|
5
|
-
import { useDocument } from "@voplus/morpho-document-core";
|
|
6
3
|
import React from "react";
|
|
7
4
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
8
5
|
import { observe } from "@voplus/morpho-ui";
|
|
9
|
-
import classnames from "classnames";
|
|
10
6
|
const DocumentRegisterProperties = (props) => {
|
|
11
7
|
/** 加class name 为了方便做integration tests */
|
|
12
8
|
const classId = "documentRegister-properties";
|
|
13
|
-
const { id,
|
|
14
|
-
// const documentRegister = useDocumentRegister(id, { includes: "tags" });
|
|
15
|
-
const documentRegister = useDocument(id, { includes: "tags" });
|
|
16
|
-
const store = useDocumentRegisterStore();
|
|
9
|
+
const { id, documentRegisterTitle, documentTitle, documentRegisterProperties, documentProperties, } = props;
|
|
17
10
|
const filterPro = documentRegisterProperties === null || documentRegisterProperties === void 0 ? void 0 : documentRegisterProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
18
|
-
return observe(() => (React.createElement("div", { className:
|
|
19
|
-
headerVisible && React.createElement(DocumentPropertiesHeader, { id: id }),
|
|
11
|
+
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
20
12
|
React.createElement(Scrollbars, { autoHide: true },
|
|
21
13
|
React.createElement(DescriptionEditor, { id: id }),
|
|
22
14
|
React.createElement(DocumentProperties, { id: id, title: documentTitle, customProperties: documentProperties })))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/components/DocumentRegisterProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/components/DocumentRegisterProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAEN,MAAM,2CAA2C,CAAC;AACnD,OAAO,iBAAiB,MAAM,yCAAyC,CAAC;AACxE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAI5C,MAAM,0BAA0B,GAAG,CAAC,KAYnC,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,6BAA6B,CAAC;IAE9C,MAAM,EACL,EAAE,EACF,qBAAqB,EACrB,aAAa,EACb,0BAA0B,EAC1B,kBAAkB,GAClB,GAAG,KAAK,CAAC;IAEV,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,EAAC,iBAAiB;QAC/B,oBAAC,UAAU,IAAC,QAAQ;YACnB,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,GAAI;YAC7B,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,8BAA8B;IACrD,aAAa,EAAE,qBAAqB;IACpC,0BAA0B,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;CACxD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -8,10 +8,9 @@ import DocumentProperties from "../../../../components/DocumentProperties";
|
|
|
8
8
|
import MessageTemplateSelect from "../MessageTemplateSelect";
|
|
9
9
|
import DocumentReference from "../../../../controls/DocumentReference";
|
|
10
10
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
11
|
-
import DocumentPropertiesHeader from "../../../../components/DocumentPropertiesHeader";
|
|
12
11
|
import classnames from "classnames";
|
|
13
12
|
const MessageTemplateProperties = (props) => {
|
|
14
|
-
const { id,
|
|
13
|
+
const { id, messageTemplateTitle, documentTitle, messageTemplateProperties, documentProperties } = props;
|
|
15
14
|
const [showEditIcon, setShowEditIcon] = useState(true);
|
|
16
15
|
const [folderEditable, setFolderEditable] = useState(false);
|
|
17
16
|
const [showEditorEditIcon, setShowEditorEditIcon] = useState(true);
|
|
@@ -22,7 +21,6 @@ const MessageTemplateProperties = (props) => {
|
|
|
22
21
|
/** 加class name 为了方便做integration tests */
|
|
23
22
|
const classId = "message-template-properties";
|
|
24
23
|
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
25
|
-
headerVisible && React.createElement(DocumentPropertiesHeader, { id: id }),
|
|
26
24
|
React.createElement(Scrollbars, { autoHide: true },
|
|
27
25
|
React.createElement(PropertiesSection, { title: messageTemplateTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => renderProp(i)) }),
|
|
28
26
|
React.createElement(DocumentProperties, { id: id, title: documentTitle, customProperties: documentProperties })))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GAEvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,kBAEN,MAAM,2CAA2C,CAAC;AACnD,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EACN,kBAAkB,EAClB,uBAAuB,GAEvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,kBAEN,MAAM,2CAA2C,CAAC;AACnD,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,UAAU,MAAM,YAAY,CAAC;AASpC,MAAM,yBAAyB,GAAG,CAAC,KAYlC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,oBAAoB,EAAE,aAAa,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,GAC/F,KAAK,CAAC;IAEP,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,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AAEF,yBAAyB,CAAC,YAAY,GAAG;IACxC,oBAAoB,EAAE,6BAA6B;IACnD,aAAa,EAAE,qBAAqB;IACpC,yBAAyB,EAAE;QAC1B,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,eAAe,EAAE;QACzB,EAAE,IAAI,EAAE,QAAQ,EAAE;KAClB;CACD,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -4,7 +4,6 @@ export type RegisteredDocumentPropertiesName = "Date" | "Documents" | "Types";
|
|
|
4
4
|
declare const RegisteredDocumentProperties: {
|
|
5
5
|
(props: {
|
|
6
6
|
id: string;
|
|
7
|
-
headerVisible?: boolean;
|
|
8
7
|
documentRegisterTitle?: string;
|
|
9
8
|
documentTitle?: string;
|
|
10
9
|
documentRegisterProperties?: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useRegisteredDocument, useRegisteredDocumentStore, } from "../../../../data/registered-document";
|
|
2
2
|
import DocumentProperties from "../../../../components/DocumentProperties";
|
|
3
3
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
4
|
-
import DocumentPropertiesHeader from "../../../../components/DocumentPropertiesHeader";
|
|
5
4
|
import DescriptionEditor from "../../../../controls/DescriptionEditor2";
|
|
6
5
|
import Documents from "../Documents";
|
|
7
6
|
import VerificationInformation from "@voplus/morpho-org/es/modules/verification/VerificationInformation";
|
|
@@ -11,16 +10,14 @@ import React from "react";
|
|
|
11
10
|
import TypesView from "../TypesView";
|
|
12
11
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
13
12
|
import { observe } from "@voplus/morpho-ui";
|
|
14
|
-
import classnames from "classnames";
|
|
15
13
|
const RegisteredDocumentProperties = (props) => {
|
|
16
14
|
/** 加class name 为了方便做integration tests */
|
|
17
15
|
const classId = "documentRegister-properties";
|
|
18
|
-
const { id,
|
|
16
|
+
const { id, documentRegisterTitle, documentTitle, documentRegisterProperties, documentProperties, } = props;
|
|
19
17
|
const documentRegister = useRegisteredDocument(id, { includes: "tags" });
|
|
20
18
|
const store = useRegisteredDocumentStore();
|
|
21
19
|
const filterPro = documentRegisterProperties === null || documentRegisterProperties === void 0 ? void 0 : documentRegisterProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
22
|
-
return observe(() => (React.createElement("div", { className:
|
|
23
|
-
headerVisible && React.createElement(DocumentPropertiesHeader, { id: id }),
|
|
20
|
+
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
24
21
|
React.createElement(Scrollbars, { autoHide: true },
|
|
25
22
|
React.createElement(DescriptionEditor, { id: id }),
|
|
26
23
|
React.createElement(VerificationInformation, { id: id }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/registered-document/components/RegisteredDocumentProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,0BAA0B,GAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,kBAEN,MAAM,2CAA2C,CAAC;AACnD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/registered-document/components/RegisteredDocumentProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,0BAA0B,GAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,kBAEN,MAAM,2CAA2C,CAAC;AACnD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,yCAAyC,CAAC;AACxE,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,uBAAuB,MAAM,oEAAoE,CAAC;AACzG,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC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AAI,EAAE,IACjE,UAAU,CAAC,CAAC,CAAC,CACR,CACP,CAAC,GAEF;YACF,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,GAAI,CAC9E,CACR,CACN,CAAC,CAAC;IAEH,SAAS,UAAU,CAAC,IAAmE;QACtF,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,MAAM;gBACV,OAAO,CACN,oBAAC,YAAY,IACZ,IAAI,EAAE,gBAAgB,CAAC,IAAI,EAC3B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GAC3E,CACF,CAAC;YACH,KAAK,OAAO;gBACX,OAAO,CACN,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,gBAAgB,CAAC,QAAS,EAAE,KAAK,EAAE,gBAAgB,CAAC,KAAK,GAAI,CAC1F,CAAC;YACH,KAAK,WAAW;gBACf,OAAO,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC;QAC/B,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,4BAA4B,CAAC,YAAY,GAAG;IAC3C,qBAAqB,EAAE,8BAA8B;IACrD,aAAa,EAAE,qBAAqB;IACpC,0BAA0B,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;CACxF,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -3,7 +3,6 @@ export type TenantServicePropertiesName = "Enabled" | "Is Running" | "Interval"
|
|
|
3
3
|
declare const TenantServiceProperties: {
|
|
4
4
|
(props: {
|
|
5
5
|
id: string;
|
|
6
|
-
headerVisible?: boolean;
|
|
7
6
|
tenantServiceTitle?: string;
|
|
8
7
|
tenantServiceProperties?: {
|
|
9
8
|
name: TenantServicePropertiesName;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import DescriptionEditor from "../../../../controls/DescriptionEditor";
|
|
2
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
3
2
|
import { observe } from "@voplus/morpho-ui";
|
|
4
3
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
5
|
-
import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
4
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
8
5
|
import React from "react";
|
|
9
6
|
import { Switch, Badge } from "antd";
|
|
@@ -11,19 +8,14 @@ import Scrollbars from "react-custom-scrollbars-2";
|
|
|
11
8
|
import TenantServiceInterval from "../TenantServiceInterval";
|
|
12
9
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
13
10
|
import { useTenantService, useTenantServiceStore } from "../../../../data/tenant-service";
|
|
14
|
-
import TenantServiceMenu from "../../controls/TenantServiceMenu";
|
|
15
11
|
const TenantServiceProperties = (props) => {
|
|
16
12
|
/** 加class name 为了方便做integration tests */
|
|
17
13
|
const classId = "tenantService-properties";
|
|
18
|
-
const { id,
|
|
14
|
+
const { id, tenantServiceTitle, tenantServiceProperties } = props;
|
|
19
15
|
const tenantService = useTenantService(id);
|
|
20
16
|
const store = useTenantServiceStore();
|
|
21
17
|
const filterPro = tenantServiceProperties === null || tenantServiceProperties === void 0 ? void 0 : tenantServiceProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
22
18
|
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
23
|
-
headerVisible && (React.createElement("div", { className: "properties-header" },
|
|
24
|
-
React.createElement("div", { className: "title" }, tenantService.name),
|
|
25
|
-
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
26
|
-
React.createElement(TenantServiceMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })))),
|
|
27
19
|
React.createElement(Scrollbars, { autoHide: true },
|
|
28
20
|
tenantService.description ? (React.createElement(DescriptionEditor, { id: id, description: tenantService.description, readonly: true })) : null,
|
|
29
21
|
React.createElement(PropertiesSection, { title: tenantServiceTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => React.createElement(React.Fragment, { key: i.name }, renderProp(i))) })))));
|
|
@@ -48,7 +40,7 @@ const TenantServiceProperties = (props) => {
|
|
|
48
40
|
}
|
|
49
41
|
};
|
|
50
42
|
TenantServiceProperties.defaultProps = {
|
|
51
|
-
tenantServiceTitle: "
|
|
43
|
+
tenantServiceTitle: "TENANT SERVICE PROPERTIES",
|
|
52
44
|
tenantServiceProperties: [
|
|
53
45
|
{ name: "Interval" },
|
|
54
46
|
{ name: "Enabled" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,qBAAqB,MAAM,0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E,SAAS,EAAE,GAAG,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE;oBAC3D,oBAAC,qBAAqB,IAAC,EAAE,EAAE,EAAE,GAAI,CAC3B,CACP,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,uBAAuB,CAAC,YAAY,GAAG;IACtC,kBAAkB,EAAE,2BAA2B;IAC/C,uBAAuB,EAAE;QACxB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,YAAY,EAAE;QACtB,EAAE,IAAI,EAAE,UAAU,EAAE;KACpB;CACD,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export type TenantServiceExecutionPropertiesName = "Date" | "Time" | "Duration"
|
|
|
3
3
|
declare const TenantServiceExecutionProperties: {
|
|
4
4
|
(props: {
|
|
5
5
|
id: string;
|
|
6
|
-
headerVisible?: boolean;
|
|
7
6
|
tenantServiceExecutionTitle?: string;
|
|
8
7
|
tenantServiceExecutionProperties?: {
|
|
9
8
|
name: TenantServiceExecutionPropertiesName;
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
2
1
|
import { observe } from "@voplus/morpho-ui";
|
|
3
2
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
4
3
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
5
|
-
import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
4
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
8
5
|
import TenantServiceReference from "../../../tenant-service/components/TenantServiceReference";
|
|
9
6
|
import React from "react";
|
|
@@ -11,18 +8,13 @@ import dayjs from "dayjs";
|
|
|
11
8
|
import Duration from "../Duration";
|
|
12
9
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
13
10
|
import { useTenantServiceExecution } from "../../../../data/tenant-service-execution";
|
|
14
|
-
import TenantServiceExecutionMenu from "../../controls/TenantServiceExecutionMenu";
|
|
15
11
|
const TenantServiceExecutionProperties = (props) => {
|
|
16
12
|
/** 加class name 为了方便做integration tests */
|
|
17
13
|
const classId = "tenantServiceExecution-properties";
|
|
18
|
-
const { id,
|
|
14
|
+
const { id, tenantServiceExecutionTitle, tenantServiceExecutionProperties } = props;
|
|
19
15
|
const tenantServiceExecution = useTenantServiceExecution(id);
|
|
20
16
|
const filterPro = tenantServiceExecutionProperties === null || tenantServiceExecutionProperties === void 0 ? void 0 : tenantServiceExecutionProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
21
17
|
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
22
|
-
headerVisible && (React.createElement("div", { className: "properties-header" },
|
|
23
|
-
React.createElement("div", { className: "title" }, "TenantServiceExecution"),
|
|
24
|
-
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
25
|
-
React.createElement(TenantServiceExecutionMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })))),
|
|
26
18
|
React.createElement(Scrollbars, { autoHide: true },
|
|
27
19
|
React.createElement(PropertiesSection, { title: tenantServiceExecutionTitle, 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)))) })))));
|
|
28
20
|
function renderProp(item) {
|
|
@@ -40,7 +32,7 @@ const TenantServiceExecutionProperties = (props) => {
|
|
|
40
32
|
}
|
|
41
33
|
};
|
|
42
34
|
TenantServiceExecutionProperties.defaultProps = {
|
|
43
|
-
tenantServiceExecutionTitle: "
|
|
35
|
+
tenantServiceExecutionTitle: "TENANT SERVICE EXECUTION PROPERTIES",
|
|
44
36
|
tenantServiceExecutionProperties: [
|
|
45
37
|
{ name: "Date" },
|
|
46
38
|
{ name: "Time" },
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,sBAAsB,MAAM,2DAA2D,CAAC;AAC/F,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAItF,MAAM,gCAAgC,GAAG,CAAC,KAOzC,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,mCAAmC,CAAC;IAEpD,MAAM,EAAE,EAAE,EAAE,2BAA2B,EAAE,gCAAgC,EAAE,GAAG,KAAK,CAAC;IAEpF,MAAM,sBAAsB,GAAG,yBAAyB,CAAC,EAAE,CAAC,CAAC;IAE7D,MAAM,SAAS,GAAG,gCAAgC,aAAhC,gCAAgC,uBAAhC,gCAAgC,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD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C,EAAE,EAAE,MAAA,sBAAsB,CAAC,OAAO,0CAAE,EAAY,GAAI,CAC5E,CACD,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,gCAAgC,CAAC,YAAY,GAAG;IAC/C,2BAA2B,EAAE,qCAAqC;IAClE,gCAAgC,EAAE;QACjC,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,SAAS,EAAE;KACnB;CACD,CAAC;AAEF,eAAe,gCAAgC,CAAC"}
|
|
@@ -4,20 +4,17 @@ import { observe } from "@voplus/morpho-ui";
|
|
|
4
4
|
import { useEnvelope } from "../../../../../data/envelope";
|
|
5
5
|
import DocumentReference from "../../../../../controls/DocumentReference";
|
|
6
6
|
import DescriptionEditor from "../../../../../controls/DescriptionEditor2";
|
|
7
|
-
import DocumentPropertiesHeader from "../../../../../components/DocumentPropertiesHeader";
|
|
8
7
|
import DocumentProperties from "../../../../../components/DocumentProperties";
|
|
9
8
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
10
9
|
import EnvelopeStatusLabel from "../../controls/EnvelopeStatusLabel";
|
|
11
10
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
12
|
-
import classnames from "classnames";
|
|
13
11
|
const EnvelopeProperties = (props) => {
|
|
14
12
|
/** 加class name 为了方便做integration tests */
|
|
15
13
|
const classId = "envelope-properties";
|
|
16
|
-
const { id,
|
|
14
|
+
const { id, descriptionVisible, documentPropertiesVisible, envelopeTitle, documentTitle, envelopeProperties, documentProperties, } = props;
|
|
17
15
|
const envelope = useEnvelope(id, { includes: "tags,createdby,folder" });
|
|
18
16
|
const filterPro = envelopeProperties === null || envelopeProperties === void 0 ? void 0 : envelopeProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
19
|
-
return observe(() => (React.createElement("div", { className:
|
|
20
|
-
headerVisible && React.createElement(DocumentPropertiesHeader, { id: id }),
|
|
17
|
+
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
21
18
|
React.createElement(Scrollbars, { autoHide: true },
|
|
22
19
|
descriptionVisible && React.createElement(DescriptionEditor, { id: id }),
|
|
23
20
|
React.createElement(PropertiesSection, { title: envelopeTitle, 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)))) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/pages/Signature/Envelope/components/EnvelopeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,iBAAiB,MAAM,2CAA2C,CAAC;AAC1E,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/pages/Signature/Envelope/components/EnvelopeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,iBAAiB,MAAM,2CAA2C,CAAC;AAC1E,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,kBAEN,MAAM,8CAA8C,CAAC;AACtD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,mBAAmB,MAAM,o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