@voplus/morpho-document 6.1.17 → 6.1.19
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 +4 -0
- package/es/Modules.js.map +1 -1
- package/es/components/AddDocOverlay/index.js +6 -2
- package/es/components/AddDocOverlay/index.js.map +1 -1
- package/es/components/AddDocOverlay/index.less +1 -1
- package/es/components/AddDocOverlay/state.js +1 -1
- package/es/components/AddDocOverlay/state.js.map +1 -1
- package/es/components/DocumentHeader/index.js +5 -22
- package/es/components/DocumentHeader/index.js.map +1 -1
- package/es/components/DocumentListView/DocumentListView2.js +5 -8
- package/es/components/DocumentListView/DocumentListView2.js.map +1 -1
- package/es/components/NewDocumentForm/DocumentForm.js +4 -2
- package/es/components/NewDocumentForm/DocumentForm.js.map +1 -1
- package/es/components/NewDocumentForm/state.js +4 -1
- package/es/components/NewDocumentForm/state.js.map +1 -1
- package/es/data/action-plan/ActionPlanStore.d.ts +33 -0
- package/es/data/action-plan/ActionPlanStore.js +115 -0
- package/es/data/action-plan/ActionPlanStore.js.map +1 -0
- package/es/data/action-plan/action-plan-events/index.d.ts +3 -0
- package/es/data/action-plan/action-plan-events/index.js +4 -0
- package/es/data/action-plan/action-plan-events/index.js.map +1 -0
- package/es/data/action-plan/action-plan-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/action-plan/action-plan-events/useAutoUpdateListData.js +15 -0
- package/es/data/action-plan/action-plan-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/action-plan/action-plan-events/useOnDeleteActionPlan.d.ts +4 -0
- package/es/data/action-plan/action-plan-events/useOnDeleteActionPlan.js +16 -0
- package/es/data/action-plan/action-plan-events/useOnDeleteActionPlan.js.map +1 -0
- package/es/data/action-plan/action-plan-events/useOnNewActionPlan.d.ts +4 -0
- package/es/data/action-plan/action-plan-events/useOnNewActionPlan.js +17 -0
- package/es/data/action-plan/action-plan-events/useOnNewActionPlan.js.map +1 -0
- package/es/data/action-plan/hooks.d.ts +10 -0
- package/es/data/action-plan/hooks.js +18 -0
- package/es/data/action-plan/hooks.js.map +1 -0
- package/es/data/action-plan/index.d.ts +4 -0
- package/es/data/action-plan/index.js +5 -0
- package/es/data/action-plan/index.js.map +1 -0
- package/es/data/action-plan/interfaces.d.ts +7 -0
- package/es/data/action-plan/interfaces.js.map +1 -0
- package/es/data/action-plan/metas.d.ts +9 -0
- package/es/data/action-plan/metas.js +31 -0
- package/es/data/action-plan/metas.js.map +1 -0
- package/es/data/action-plan/types.d.ts +22 -0
- package/es/data/action-plan/types.js +2 -0
- package/es/data/action-plan/types.js.map +1 -0
- package/es/data/action-plan-template/ActionPlanTemplateStore.d.ts +12 -0
- package/es/data/action-plan-template/ActionPlanTemplateStore.js +28 -0
- package/es/data/action-plan-template/ActionPlanTemplateStore.js.map +1 -0
- package/es/data/action-plan-template/hook.d.ts +5 -0
- package/es/data/action-plan-template/hook.js +16 -0
- package/es/data/action-plan-template/hook.js.map +1 -0
- package/es/data/action-plan-template/index.d.ts +4 -0
- package/es/data/action-plan-template/index.js +5 -0
- package/es/data/action-plan-template/index.js.map +1 -0
- package/es/data/action-plan-template/interfaces.d.ts +4 -0
- package/es/data/action-plan-template/interfaces.js.map +1 -0
- package/es/data/action-plan-template/metas.d.ts +14 -0
- package/es/data/action-plan-template/metas.js +43 -0
- package/es/data/action-plan-template/metas.js.map +1 -0
- package/es/data/action-plan-template/types.d.ts +8 -0
- package/es/data/action-plan-template/types.js +2 -0
- package/es/data/action-plan-template/types.js.map +1 -0
- package/es/data/library/LibraryStore.js.map +1 -0
- package/es/data/library/hook.js.map +1 -0
- package/es/data/library/index.js.map +1 -0
- package/es/data/library/interfaces.js +2 -0
- package/es/data/library/interfaces.js.map +1 -0
- package/es/data/message-schedule/MessageScheduleStore.d.ts +33 -0
- package/es/data/message-schedule/MessageScheduleStore.js +115 -0
- package/es/data/message-schedule/MessageScheduleStore.js.map +1 -0
- package/es/data/message-schedule/hooks.d.ts +10 -0
- package/es/data/message-schedule/hooks.js +18 -0
- package/es/data/message-schedule/hooks.js.map +1 -0
- package/es/data/message-schedule/index.d.ts +4 -0
- package/es/data/message-schedule/index.js +5 -0
- package/es/data/message-schedule/index.js.map +1 -0
- package/es/data/message-schedule/interfaces.d.ts +12 -0
- package/es/data/message-schedule/interfaces.js +2 -0
- package/es/data/message-schedule/interfaces.js.map +1 -0
- package/es/data/message-schedule/message-schedule-events/index.d.ts +3 -0
- package/es/data/message-schedule/message-schedule-events/index.js +4 -0
- package/es/data/message-schedule/message-schedule-events/index.js.map +1 -0
- package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.js +15 -0
- package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.d.ts +4 -0
- package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.js +16 -0
- package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.js.map +1 -0
- package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.d.ts +4 -0
- package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.js +17 -0
- package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.js.map +1 -0
- package/es/data/message-schedule/metas.d.ts +9 -0
- package/es/data/message-schedule/metas.js +31 -0
- package/es/data/message-schedule/metas.js.map +1 -0
- package/es/data/message-schedule/types.d.ts +25 -0
- package/es/data/message-schedule/types.js +2 -0
- package/es/data/message-schedule/types.js.map +1 -0
- package/es/data/v-submit/VSubmitStore.js.map +1 -0
- package/es/data/v-submit/hook.js.map +1 -0
- package/es/data/v-submit/index.js.map +1 -0
- package/es/data/v-submit/interfaces.js +2 -0
- package/es/data/v-submit/interfaces.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanHeader/index.d.ts +6 -0
- package/es/modules/action-plan/components/ActionPlanHeader/index.js +19 -0
- package/es/modules/action-plan/components/ActionPlanHeader/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanItem/index.d.ts +5 -0
- package/es/modules/action-plan/components/ActionPlanItem/index.js +39 -0
- package/es/modules/action-plan/components/ActionPlanItem/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanItem/index.less +30 -0
- package/es/modules/action-plan/components/ActionPlanList/index.d.ts +27 -0
- package/es/modules/action-plan/components/ActionPlanList/index.js +93 -0
- package/es/modules/action-plan/components/ActionPlanList/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanList/index.less +16 -0
- package/es/modules/action-plan/components/ActionPlanProperties/index.d.ts +20 -0
- package/es/modules/action-plan/components/ActionPlanProperties/index.js +39 -0
- package/es/modules/action-plan/components/ActionPlanProperties/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanPropertiesView/index.d.ts +6 -0
- package/es/modules/action-plan/components/ActionPlanPropertiesView/index.js +15 -0
- package/es/modules/action-plan/components/ActionPlanPropertiesView/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.d.ts +8 -0
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.js +13 -0
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.js.map +1 -0
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.less +7 -0
- package/es/modules/action-plan/components/ActionPlanTabs/index.d.ts +6 -0
- package/es/modules/action-plan/components/ActionPlanTabs/index.js +49 -0
- package/es/modules/action-plan/components/ActionPlanTabs/index.js.map +1 -0
- package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.d.ts +9 -0
- package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.js +13 -0
- package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.js.map +1 -0
- package/es/modules/action-plan/components/NewActionPlanForm/index.d.ts +15 -0
- package/es/modules/action-plan/components/NewActionPlanForm/index.js +59 -0
- package/es/modules/action-plan/components/NewActionPlanForm/index.js.map +1 -0
- package/es/modules/action-plan/components/NewActionPlanForm/index.less +10 -0
- package/es/modules/action-plan/components/NewActionPlanForm/state.d.ts +12 -0
- package/es/modules/action-plan/components/NewActionPlanForm/state.js +32 -0
- package/es/modules/action-plan/components/NewActionPlanForm/state.js.map +1 -0
- package/es/modules/action-plan/controls/ActionPlanMenu/index.d.ts +10 -0
- package/es/modules/action-plan/controls/ActionPlanMenu/index.js +23 -0
- package/es/modules/action-plan/controls/ActionPlanMenu/index.js.map +1 -0
- package/es/modules/action-plan/pages/ActionPlanDefaultView/index.d.ts +3 -0
- package/es/modules/action-plan/pages/ActionPlanDefaultView/index.js +29 -0
- package/es/modules/action-plan/pages/ActionPlanDefaultView/index.js.map +1 -0
- package/es/modules/action-plan/pages/ActionPlanDefaultView/index.less +4 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.d.ts +25 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js +26 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js.map +1 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplatePropertiesView/index.d.ts +6 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplatePropertiesView/index.js +25 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplatePropertiesView/index.js.map +1 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateQuickViewDialog/index.d.ts +7 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateQuickViewDialog/index.js +26 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateQuickViewDialog/index.js.map +1 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.d.ts +6 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.js +47 -0
- package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.js.map +1 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateDataIconBar/index.d.ts +12 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateDataIconBar/index.js +19 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateDataIconBar/index.js.map +1 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateMenu/index.d.ts +5 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateMenu/index.js +15 -0
- package/es/modules/action-plan-template/controls/ActionPlanTemplateMenu/index.js.map +1 -0
- package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.d.ts +5 -0
- package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.js +33 -0
- package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.js.map +1 -0
- package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.less +4 -0
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.d.ts +6 -0
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.js +19 -0
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageScheduleItem/index.d.ts +5 -0
- package/es/modules/message-schedule/components/MessageScheduleItem/index.js +40 -0
- package/es/modules/message-schedule/components/MessageScheduleItem/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageScheduleItem/index.less +30 -0
- package/es/modules/message-schedule/components/MessageScheduleList/index.d.ts +27 -0
- package/es/modules/message-schedule/components/MessageScheduleList/index.js +93 -0
- package/es/modules/message-schedule/components/MessageScheduleList/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageScheduleList/index.less +14 -0
- package/es/modules/message-schedule/components/MessageScheduleProperties/index.d.ts +20 -0
- package/es/modules/message-schedule/components/MessageScheduleProperties/index.js +58 -0
- package/es/modules/message-schedule/components/MessageScheduleProperties/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.d.ts +6 -0
- package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.js +15 -0
- package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.d.ts +8 -0
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.js +13 -0
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.js.map +1 -0
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.less +7 -0
- package/es/modules/message-schedule/components/MessageScheduleTabs/index.d.ts +6 -0
- package/es/modules/message-schedule/components/MessageScheduleTabs/index.js +52 -0
- package/es/modules/message-schedule/components/MessageScheduleTabs/index.js.map +1 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.d.ts +10 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.js +14 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.js.map +1 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.d.ts +15 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.js +62 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.js.map +1 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/index.less +17 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.d.ts +12 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.js +32 -0
- package/es/modules/message-schedule/components/NewMessageScheduleForm/state.js.map +1 -0
- package/es/modules/message-schedule/controls/MessageScheduleMenu/index.d.ts +10 -0
- package/es/modules/message-schedule/controls/MessageScheduleMenu/index.js +23 -0
- package/es/modules/message-schedule/controls/MessageScheduleMenu/index.js.map +1 -0
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.d.ts +3 -0
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.js +29 -0
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.js.map +1 -0
- package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.less +7 -0
- package/es/modules/message-template/components/MessageTemplateProperties/index.js +3 -3
- package/es/modules/message-template/components/MessageTemplateProperties/index.js.map +1 -1
- package/es/modules/message-template/components/MessageTemplatePropertiesView/index.d.ts +0 -1
- package/es/modules/message-template/components/MessageTemplatePropertiesView/index.js +0 -1
- package/es/modules/message-template/components/MessageTemplatePropertiesView/index.js.map +1 -1
- package/es/modules/quick-access/AdvanceFilterForm/index.js +14 -28
- package/es/modules/quick-access/AdvanceFilterForm/index.js.map +1 -1
- package/es/modules/quick-access/AdvanceFilterForm/state.d.ts +0 -1
- package/es/modules/quick-access/AdvanceFilterForm/state.js +2 -12
- package/es/modules/quick-access/AdvanceFilterForm/state.js.map +1 -1
- package/es/modules/registered-document/components/RegisteredDocumentTableList/index.less +0 -3
- package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js +1 -1
- package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js.map +1 -1
- package/es/obsolete/LibraryDefaultView/index.js +1 -1
- package/es/obsolete/LibraryDefaultView/index.js.map +1 -1
- package/es/pages/Library/LibraryDefaultView/index.js +20 -15
- package/es/pages/Library/LibraryDefaultView/index.js.map +1 -1
- package/es/pages/Library/components/DocumentTree/index.d.ts +2 -2
- package/es/pages/Library/components/DocumentTree/index.js +31 -4
- package/es/pages/Library/components/DocumentTree/index.js.map +1 -1
- package/es/pages/VSubmit/VSubmitDefaultView/index.js +1 -1
- package/es/pages/VSubmit/VSubmitDefaultView/index.js.map +1 -1
- package/es/pages/VSubmit/VSubmitSubmitterView/index.js +1 -1
- package/es/pages/VSubmit/VSubmitSubmitterView/index.js.map +1 -1
- package/es/routes.d.ts +6 -0
- package/es/routes.js +13 -0
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/message-template/components/MessageTemplatePropertiesView/index.less +0 -14
- package/es/pages/Library/data/LibraryStore.js.map +0 -1
- package/es/pages/Library/data/hook.js.map +0 -1
- package/es/pages/Library/data/index.js.map +0 -1
- package/es/pages/Library/data/interfaces.js.map +0 -1
- package/es/pages/VSubmit/data/VSubmitStore.js.map +0 -1
- package/es/pages/VSubmit/data/hook.js.map +0 -1
- package/es/pages/VSubmit/data/index.js.map +0 -1
- package/es/pages/VSubmit/data/interfaces.js.map +0 -1
- /package/es/{pages/VSubmit/data → data/action-plan}/interfaces.js +0 -0
- /package/es/{pages/Library/data → data/action-plan-template}/interfaces.js +0 -0
- /package/es/{pages/Library/data → data/library}/LibraryStore.d.ts +0 -0
- /package/es/{pages/Library/data → data/library}/LibraryStore.js +0 -0
- /package/es/{pages/Library/data → data/library}/hook.d.ts +0 -0
- /package/es/{pages/Library/data → data/library}/hook.js +0 -0
- /package/es/{pages/Library/data → data/library}/index.d.ts +0 -0
- /package/es/{pages/Library/data → data/library}/index.js +0 -0
- /package/es/{pages/Library/data → data/library}/interfaces.d.ts +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/VSubmitStore.d.ts +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/VSubmitStore.js +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/hook.d.ts +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/hook.js +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/index.d.ts +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/index.js +0 -0
- /package/es/{pages/VSubmit/data → data/v-submit}/interfaces.d.ts +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Badge } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
5
|
+
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
6
|
+
import MessageScheduleList from "../../../message-schedule/components/MessageScheduleList";
|
|
7
|
+
import DocumentList from "../../../../components/DocumentList";
|
|
8
|
+
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
9
|
+
import ActionPlanProperties from "../ActionPlanProperties";
|
|
10
|
+
const ActionPlanTabs = (props) => {
|
|
11
|
+
const { id, properties } = props;
|
|
12
|
+
const [docTotals, setDocTotals] = useState(0);
|
|
13
|
+
const [activeKey, setActiveKey] = useState();
|
|
14
|
+
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
15
|
+
Total: true,
|
|
16
|
+
List: false,
|
|
17
|
+
Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
|
|
18
|
+
});
|
|
19
|
+
return observe(() => {
|
|
20
|
+
let items = [
|
|
21
|
+
{
|
|
22
|
+
key: "MessageSchedule",
|
|
23
|
+
label: "Message Schedule",
|
|
24
|
+
children: React.createElement(MessageScheduleList, { parentNodeId: id, headerType: "tool" }),
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: "Document",
|
|
28
|
+
label: (React.createElement(React.Fragment, null,
|
|
29
|
+
"Document",
|
|
30
|
+
React.createElement(Badge, { count: docTotals, className: "margin-left-10" }))),
|
|
31
|
+
children: (React.createElement(DocumentList, { id: id, multiple: true, viewTitle: false, total: false, exclude: ["Task"] })),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
key: "Activities",
|
|
35
|
+
label: "Activities",
|
|
36
|
+
children: React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id, title: " " }) : null),
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
properties &&
|
|
40
|
+
items.unshift({
|
|
41
|
+
key: "Properties",
|
|
42
|
+
label: "Properties",
|
|
43
|
+
children: React.createElement(ActionPlanProperties, { id: id }),
|
|
44
|
+
});
|
|
45
|
+
return (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "MessageSchedule", tabItems: items, onChange: (key) => setActiveKey(key) }));
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
export default ActionPlanTabs;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanTabs/index.tsx"],"names":[],"mappings":"AAAA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;gBACf,KAAK,EAAE,CACN;;oBAEC,oBAAC,KAAK,IAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAC,gBAAgB,GAAG,CACpD,CACH;gBACD,QAAQ,EAAE,CACT,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,QAAC,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,MAAM,CAAC,GAAI,CACpF;aACD;YACD;gBACC,GAAG,EAAE,YAAY;gBACjB,KAAK,EAAE,YAAY;gBACnB,QAAQ,EAAE,0CAAG,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAC,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAAI;aACtF;SACD,CAAC;QAEF,UAAU;YACT,KAAK,CAAC,OAAO,CAAC;gBACb,GAAG,EAAE,YAAY;gBACjB,KAAK,EAAE,YAAY;gBACnB,QAAQ,EAAE,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,GAAI;aAC1C,CAAC,CAAC;QAEJ,OAAO,CACN,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EACrD,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GACnC,CACF,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NewActionPlanFormProps } from "./index";
|
|
3
|
+
declare const NewActionPlanFormDialog: {
|
|
4
|
+
(props: NewActionPlanFormProps): React.JSX.Element;
|
|
5
|
+
defaultProps: {
|
|
6
|
+
openMode: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default NewActionPlanFormDialog;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Modal } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import NewActionPlanForm from "./index";
|
|
5
|
+
const NewActionPlanFormDialog = (props) => {
|
|
6
|
+
return observe(() => (React.createElement(Modal, { title: "New Action Plan Form Dialog", open: true, closable: false, footer: false, onCancel: props.onCancel },
|
|
7
|
+
React.createElement(NewActionPlanForm, { ...props }))));
|
|
8
|
+
};
|
|
9
|
+
NewActionPlanFormDialog.defaultProps = {
|
|
10
|
+
openMode: "openDialog",
|
|
11
|
+
};
|
|
12
|
+
export default NewActionPlanFormDialog;
|
|
13
|
+
//# sourceMappingURL=NewActionPlanFormDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewActionPlanFormDialog.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,iBAA6C,MAAM,SAAS,CAAC;AAEpE,MAAM,uBAAuB,GAAG,CAAC,KAA6B,EAAE,EAAE;IACjE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,KAAK,EAAC,6BAA6B,EACnC,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,KAAK,EACb,QAAQ,EAAE,KAAK,CAAC,QAAQ;QAExB,oBAAC,iBAAiB,OAAK,KAAK,GAAI,CACzB,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,uBAAuB,CAAC,YAAY,GAAG;IACtC,QAAQ,EAAE,YAAY;CACtB,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type NewActionPlanFormProps = {
|
|
3
|
+
parentNodeId: string;
|
|
4
|
+
openMode?: "openAside" | "openDialog";
|
|
5
|
+
showView?: boolean;
|
|
6
|
+
onCancel?: () => void;
|
|
7
|
+
onSave?: (params?: any) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const NewActionPlanForm: {
|
|
10
|
+
(props: NewActionPlanFormProps): React.JSX.Element;
|
|
11
|
+
defaultProps: {
|
|
12
|
+
openMode: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default NewActionPlanForm;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { State } from "./state";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { Button, Form, Row, Space, Input, message } from "antd";
|
|
5
|
+
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
6
|
+
import { useViewLayoutContext } from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout/ViewLayoutContext";
|
|
7
|
+
import { useActionPlanStore } from "../../../../data/action-plan";
|
|
8
|
+
import ActionPlanPropertiesView from "../ActionPlanPropertiesView";
|
|
9
|
+
import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
|
|
10
|
+
import classnames from "classnames";
|
|
11
|
+
import styles from "./index.less";
|
|
12
|
+
const NewActionPlanForm = (props) => {
|
|
13
|
+
const { openMode } = props;
|
|
14
|
+
const [state] = useState(new State(props.parentNodeId));
|
|
15
|
+
const [form] = Form.useForm();
|
|
16
|
+
const [loading, setLoading] = useState(false);
|
|
17
|
+
const asideContext = useAsideContentContext();
|
|
18
|
+
const layoutContext = useViewLayoutContext();
|
|
19
|
+
const store = useActionPlanStore();
|
|
20
|
+
const content = observe(() => (React.createElement("div", { className: classnames(styles["new-action-plan-form"]) },
|
|
21
|
+
React.createElement(Form, { form: form, layout: "vertical" },
|
|
22
|
+
React.createElement(Form.Item, { label: "Name" },
|
|
23
|
+
React.createElement(Input, { onChange: (e) => (state.params.Name = e.target.value) })),
|
|
24
|
+
openMode === "openDialog" && (React.createElement(Form.Item, { className: "from-footer" },
|
|
25
|
+
React.createElement(Row, { justify: "end" },
|
|
26
|
+
React.createElement(Space, null,
|
|
27
|
+
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
|
28
|
+
React.createElement(Button, { type: "primary", htmlType: "submit", onClick: onSubmit, loading: loading }, "Submit")))))))));
|
|
29
|
+
return observe(() => (React.createElement(React.Fragment, null, openMode === "openDialog" ? (content) : (React.createElement(AddFormView, { title: "Add Action Plan Form", loading: loading, onCancel: onCancel, onSubmit: onSubmit }, content)))));
|
|
30
|
+
async function onSubmit() {
|
|
31
|
+
var _a;
|
|
32
|
+
if (!state.params.Name) {
|
|
33
|
+
message.warning("Name is required");
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
setLoading(true);
|
|
37
|
+
const res = await store.create({
|
|
38
|
+
data: state.params,
|
|
39
|
+
error: (error) => message.error(error.message),
|
|
40
|
+
});
|
|
41
|
+
setLoading(false);
|
|
42
|
+
(_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props, state.params);
|
|
43
|
+
if (props.showView && res) {
|
|
44
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(ActionPlanPropertiesView, { id: res.id }), {
|
|
45
|
+
span: (layoutContext === null || layoutContext === void 0 ? void 0 : layoutContext.asideColSpan) ? layoutContext.asideColSpan : 12,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function onCancel() {
|
|
50
|
+
var _a;
|
|
51
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside();
|
|
52
|
+
(_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
NewActionPlanForm.defaultProps = {
|
|
56
|
+
openMode: "openAside",
|
|
57
|
+
};
|
|
58
|
+
export default NewActionPlanForm;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/NewActionPlanForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,oBAAoB,EAAE,MAAM,4EAA4E,CAAC;AAClH,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAUlC,MAAM,iBAAiB,GAAG,CAAC,KAA6B,EAAE,EAAE;IAC3D,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE3B,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IACxD,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC9B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,aAAa,GAAG,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C;YACxB,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;YACpC,OAAO;QACR,CAAC;QAED,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;YAC9B,IAAI,EAAE,KAAK,CAAC,MAAM;YAClB,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACrD,CAAC,CAAC;QACH,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,MAAA,KAAK,CAAC,MAAM,sDAAG,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B,IAAI,KAAK,CAAC,QAAQ,IAAI,GAAG,EAAE,CAAC;YAC3B,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,wBAAwB,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE;gBACjE,IAAI,EAAE,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,EAAC,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;aACnE,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;IAED,SAAS,QAAQ;;QAChB,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;QAC3B,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,iBAAiB,CAAC,YAAY,GAAG;IAChC,QAAQ,EAAE,WAAW;CACrB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { makeObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor(parentId) {
|
|
5
|
+
Object.defineProperty(this, "parentId", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: parentId
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "Params", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: {
|
|
16
|
+
ParentNodeId: this.parentId,
|
|
17
|
+
Name: "",
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(this, "params", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: this.Params
|
|
25
|
+
});
|
|
26
|
+
makeObservable(this);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
__decorate([
|
|
30
|
+
observable
|
|
31
|
+
], State.prototype, "params", void 0);
|
|
32
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/NewActionPlanForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClD,MAAM,OAAO,KAAK;IACjB,YAA2B,QAAgB;QAAxB;;;;mBAAQ,QAAQ;WAAQ;QAGpC;;;;mBAAS;gBACf,YAAY,EAAE,IAAI,CAAC,QAAQ;gBAC3B,IAAI,EAAE,EAAE;aACR;WAAC;QAEiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QAPvC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAOD;AADmB;IAAlB,UAAU;qCAA6B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ActionPlanMenu: (props: {
|
|
3
|
+
id: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
closeAside?: boolean;
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
/** 是否是在 defaultView 内显示, defaultView 内有显示 menu button的,menu items里不需要重复显示 */
|
|
8
|
+
blankMenu?: string[];
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export default ActionPlanMenu;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useActionPlanStore, useActionPlan } from "../../../../data/action-plan";
|
|
4
|
+
import { Access, Delete } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
5
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
6
|
+
import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
|
|
7
|
+
const ActionPlanMenu = (props) => {
|
|
8
|
+
var _a;
|
|
9
|
+
const blankMenu = (_a = props.blankMenu) !== null && _a !== void 0 ? _a : [];
|
|
10
|
+
const { user } = useApplicationContext();
|
|
11
|
+
const store = useActionPlanStore();
|
|
12
|
+
const actionPlan = useActionPlan(props.id, {
|
|
13
|
+
reload: (i) => !user.info.guest && !i.p,
|
|
14
|
+
includes: "permissions",
|
|
15
|
+
});
|
|
16
|
+
return observe(() => {
|
|
17
|
+
return (React.createElement(NodeMenu, { id: props.id, icon: props.icon, className: props.className, store: store, menus: React.createElement(React.Fragment, null,
|
|
18
|
+
React.createElement(Access, { disabled: !user.can("view", actionPlan.p, { asset: "Access" }) }),
|
|
19
|
+
React.createElement(Delete, { closeAside: props.closeAside, disabled: !user.can("delete", actionPlan.p) })) }));
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export default ActionPlanMenu;
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/controls/ActionPlanMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM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,0 +1,29 @@
|
|
|
1
|
+
import React, { useEffect, } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { runInAction } from "mobx";
|
|
4
|
+
import { useParams } from "react-router-dom";
|
|
5
|
+
import { useTabItem } from "@voplus/morpho-data";
|
|
6
|
+
import { useActionPlan } from "../../../../data/action-plan";
|
|
7
|
+
import { faEllipsisVertical, faClock } from "@fortawesome/pro-solid-svg-icons";
|
|
8
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
9
|
+
import ActionPlanProperties from "../../components/ActionPlanProperties";
|
|
10
|
+
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
11
|
+
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
12
|
+
import ActionPlanTabs from "../../components/ActionPlanTabs";
|
|
13
|
+
import ActionPlanMenu from "../../controls/ActionPlanMenu";
|
|
14
|
+
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
15
|
+
import styles from "./index.less";
|
|
16
|
+
const ActionPlanDefaultView = () => {
|
|
17
|
+
const params = useParams();
|
|
18
|
+
const id = params.id || "";
|
|
19
|
+
const tab = useTabItem();
|
|
20
|
+
const actionPlan = useActionPlan(id);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
runInAction(() => (tab.title = actionPlan.name));
|
|
23
|
+
});
|
|
24
|
+
return observe(() => (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 },
|
|
25
|
+
React.createElement(ActionPlanMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })) }), properties: React.createElement(ActionPlanProperties, { id: id }) },
|
|
26
|
+
React.createElement(ActionPlanTabs, { id: id }))));
|
|
27
|
+
};
|
|
28
|
+
export default ActionPlanDefaultView;
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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,GAAI,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAClC,MAAM,MAAM,GAAG,SAAS,EAAkB,CAAC;IAC3C,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;IAC3B,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAErC,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,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;gBAC/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;QAE7C,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI,CACP,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DocumentPropertiesName } from "../../../../components/DocumentProperties";
|
|
3
|
+
export type ActionPlanTemplatePropertiesName = "";
|
|
4
|
+
declare const ActionPlanTemplateProperties: {
|
|
5
|
+
(props: {
|
|
6
|
+
id: string;
|
|
7
|
+
headerVisible?: boolean;
|
|
8
|
+
messagePlanTitle?: string;
|
|
9
|
+
documentTitle?: string;
|
|
10
|
+
messagePlanProperties?: {
|
|
11
|
+
name: ActionPlanTemplatePropertiesName;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
}[];
|
|
14
|
+
documentProperties?: {
|
|
15
|
+
name: DocumentPropertiesName;
|
|
16
|
+
visible?: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
defaultProps: {
|
|
20
|
+
messagePlanTitle: string;
|
|
21
|
+
documentTitle: string;
|
|
22
|
+
messagePlanProperties: never[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default ActionPlanTemplateProperties;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
4
|
+
import DocumentProperties from "../../../../components/DocumentProperties";
|
|
5
|
+
import DocumentPropertiesHeader from "../../../../components/DocumentPropertieHeader";
|
|
6
|
+
const ActionPlanTemplateProperties = (props) => {
|
|
7
|
+
const { id, headerVisible, messagePlanTitle, documentTitle, messagePlanProperties, documentProperties, } = props;
|
|
8
|
+
const filterPro = messagePlanProperties === null || messagePlanProperties === void 0 ? void 0 : messagePlanProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
9
|
+
/** 加class name 为了方便做integration tests */
|
|
10
|
+
const classId = "message-plan-properties";
|
|
11
|
+
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
12
|
+
headerVisible && React.createElement(DocumentPropertiesHeader, { id: id }),
|
|
13
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
14
|
+
React.createElement(DocumentProperties, { id: id, title: documentTitle, customProperties: documentProperties })))));
|
|
15
|
+
function renderProp(item) {
|
|
16
|
+
switch (item.name) {
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
ActionPlanTemplateProperties.defaultProps = {
|
|
21
|
+
messagePlanTitle: "MESSAGE PLAN PROPERTIES",
|
|
22
|
+
documentTitle: "DOCUMENT PROPERTIES",
|
|
23
|
+
messagePlanProperties: [],
|
|
24
|
+
};
|
|
25
|
+
export default ActionPlanTemplateProperties;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan-template/components/ActionPlanTemplateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,kBAEN,MAAM,2CAA2C,CAAC;AACnD,OAAO,wBAAwB,MAAM,gDAAgD,CAAC;AAKtF,MAAM,4BAA4B,GAAG,CAAC,KAarC,EAAE,EAAE;IACJ,MAAM,EACL,EAAE,EACF,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,GAClB,GAAG,KAAK,CAAC;IAEV,MAAM,SAAS,GAAG,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,MAAK,KAAK,CAAC,CAAC;IAC7E,yCAAyC;IACzC,MAAM,OAAO,GAAG,yBAAyB,CAAC;IAE1C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,iBAAiB;QAC9B,aAAa,IAAI,oBAAC,wBAAwB,IAAC,EAAE,EAAE,EAAE,GAAI;QACtD,oBAAC,UAAU,IAAC,QAAQ;YAKnB,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;QACpB,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,4BAA4B,CAAC,YAAY,GAAG;IAC3C,gBAAgB,EAAE,yBAAyB;IAC3C,aAAa,EAAE,qBAAqB;IACpC,qBAAqB,EAAE,EAAE;CACzB,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { useMemo, useState } from "react";
|
|
2
|
+
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import DocumentPropertiesHeader from "../../../../components/DocumentPropertiesHeader";
|
|
5
|
+
import ActionPlanTemplateTabs from "../ActionPlanTemplateTabs";
|
|
6
|
+
const ActionPlanTemplatePropertiesView = (props) => {
|
|
7
|
+
const id = props.id;
|
|
8
|
+
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
9
|
+
const [loaded, setLoaded] = useState(true);
|
|
10
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
11
|
+
React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
|
12
|
+
React.createElement(DocumentPropertiesHeader, { id: id, documentHeaderProper: {
|
|
13
|
+
toolBarProps: { closeAside: true, close: true, onReload: onReload },
|
|
14
|
+
} }),
|
|
15
|
+
React.createElement(ActionPlanTemplateTabs, { id: id, properties: true })))))));
|
|
16
|
+
/** reload data */
|
|
17
|
+
function onReload() {
|
|
18
|
+
setLoaded(false);
|
|
19
|
+
setTimeout(() => {
|
|
20
|
+
setLoaded(true);
|
|
21
|
+
}, 100);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export default ActionPlanTemplatePropertiesView;
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/action-plan-template/components/ActionPlanTemplatePropertiesView/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan-template/components/ActionPlanTemplatePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,Q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|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Open } from "../../../../controls/ToolBar/buttons";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
5
|
+
import { faAlignLeft } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
+
import { useActionPlanTemplate } from "../../../../data/action-plan-template";
|
|
7
|
+
import DocumentHeader from "../../../../components/DocumentHeader";
|
|
8
|
+
import QuickViewDialog from "../../../../controls/QuickViewDialog";
|
|
9
|
+
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
10
|
+
import ActionPlanTemplateProperties from "../ActionPlanTemplateProperties";
|
|
11
|
+
const ActionPlanTemplateQuickViewDialog = (props) => {
|
|
12
|
+
const { id } = props;
|
|
13
|
+
const meta = useMetaStore();
|
|
14
|
+
const messageTemplate = useActionPlanTemplate(id, { includes: "tags" });
|
|
15
|
+
return observe(() => (React.createElement(QuickViewDialog, { id: props.id, visible: props.visible, onCancel: props.onCancel, header: React.createElement(DocumentHeader, { id: id, quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, quickDataBarVisible: false, descriptionVisible: false, style: { paddingRight: "44px" }, tools: React.createElement(ToolBar, { id: id },
|
|
16
|
+
React.createElement(Open, { url: meta.getRoute(messageTemplate) })) }), items: [
|
|
17
|
+
{
|
|
18
|
+
name: "Properties",
|
|
19
|
+
icon: faAlignLeft,
|
|
20
|
+
title: "Display properties separately",
|
|
21
|
+
detail: React.createElement(ActionPlanTemplateProperties, { id: id }),
|
|
22
|
+
},
|
|
23
|
+
] })));
|
|
24
|
+
};
|
|
25
|
+
export default ActionPlanTemplateQuickViewDialog;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/action-plan-template/components/ActionPlanTemplateQuickViewDialog/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan-template/components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,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,GAAI,CACpC,GAEV,EAEH,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,+BAA+B;gBACtC,MAAM,EAAE,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAE,GAAI;aAChD;SACD,GAEgB,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Badge } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
5
|
+
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
6
|
+
import ActionPlanTemplateProperties from "../ActionPlanTemplateProperties";
|
|
7
|
+
import DocumentList from "../../../../components/DocumentList";
|
|
8
|
+
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
9
|
+
import Links from "../../../../components/Links";
|
|
10
|
+
const ActionPlanTemplateTabs = (props) => {
|
|
11
|
+
const { id, properties } = props;
|
|
12
|
+
const [docTotals, setDocTotals] = useState(0);
|
|
13
|
+
const [activeKey, setActiveKey] = useState();
|
|
14
|
+
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
15
|
+
Total: true,
|
|
16
|
+
List: false,
|
|
17
|
+
Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
|
|
18
|
+
});
|
|
19
|
+
let items = [
|
|
20
|
+
{
|
|
21
|
+
key: "Document",
|
|
22
|
+
label: (React.createElement(React.Fragment, null,
|
|
23
|
+
"Document",
|
|
24
|
+
React.createElement(Badge, { count: docTotals, className: "margin-left-10" }))),
|
|
25
|
+
children: React.createElement(DocumentList, { id: id, multiple: true, viewTitle: false, total: false }),
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "Activities",
|
|
29
|
+
label: "Activities",
|
|
30
|
+
children: React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id }) : null),
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: "Links",
|
|
34
|
+
label: "Links",
|
|
35
|
+
children: React.createElement(Links, { id: id, isTitle: false }),
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
props.properties &&
|
|
39
|
+
items.unshift({
|
|
40
|
+
key: "Properties",
|
|
41
|
+
label: "Properties",
|
|
42
|
+
children: React.createElement(ActionPlanTemplateProperties, { id: id }),
|
|
43
|
+
});
|
|
44
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "Document", tabItems: items, onChange: (key) => setActiveKey(key) })));
|
|
45
|
+
};
|
|
46
|
+
export default ActionPlanTemplateTabs;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan-template/components/ActionPlanTemplateTabs/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,4BAA4B,MAAM,iCAAiC,CAAC;AAC3E,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,KAAK,MAAM,8BAA8B,CAAC;AAEjD,MAAM,sBAAsB,GAAG,CAAC,KAA2C,EAAE,EAAE;IAC9E,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK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AE,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAE,GAAI;SAClD,CAAC,CAAC;IAEJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,EAC9C,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GACnC,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const MessagePlanDataIconBar: {
|
|
3
|
+
(props: {
|
|
4
|
+
id: string;
|
|
5
|
+
commentVisible?: boolean;
|
|
6
|
+
more?: boolean;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
defaultProps: {
|
|
9
|
+
commentVisible: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default MessagePlanDataIconBar;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { CommentDataIcon, DateQuickIcon, DocumentDataIcon, DocumentPathDataIcon, UserQuickIcon, } from "../../../../controls/data-icons";
|
|
4
|
+
import DataIconBar from "../../../../controls/DataIconBar";
|
|
5
|
+
const MessagePlanDataIconBar = (props) => {
|
|
6
|
+
const { id, commentVisible, more } = props;
|
|
7
|
+
return observe(() => (React.createElement(DataIconBar, null,
|
|
8
|
+
React.createElement(DocumentDataIcon, { id: id }),
|
|
9
|
+
commentVisible && React.createElement(CommentDataIcon, { id: id }),
|
|
10
|
+
React.createElement(UserQuickIcon, { id: id }),
|
|
11
|
+
more && (React.createElement(React.Fragment, null,
|
|
12
|
+
React.createElement(DateQuickIcon, { id: id }),
|
|
13
|
+
React.createElement(DocumentPathDataIcon, { id: id }))))));
|
|
14
|
+
};
|
|
15
|
+
MessagePlanDataIconBar.defaultProps = {
|
|
16
|
+
commentVisible: true,
|
|
17
|
+
};
|
|
18
|
+
export default MessagePlanDataIconBar;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan-template/controls/ActionPlanTemplateDataIconBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,GACb,MAAM,iCAAiC,CAAC;AACzC,OAAO,WAAW,MAAM,kCAAkC,CAAC;AAE3D,MAAM,sBAAsB,GAAG,CAAC,KAI/B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW;QACX,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI;QAC3B,cAAc,IAAI,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI;QAC9C,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI;QACxB,IAAI,IAAI,CACR;YACC,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI;YACzB,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,GAAI,CAC9B,CACH,CACY,CACd,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG;IACrC,cAAc,EAAE,IAAI;CACpB,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
|
|
4
|
+
import { useToolBarContext } from "../../../../controls/ToolBar/ToolBarState";
|
|
5
|
+
import DocumentMenu from "../../../../controls/DocumentMenu";
|
|
6
|
+
const MessageTemplateMenu = (props) => {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
|
9
|
+
const toolContext = useToolBarContext();
|
|
10
|
+
const blankMenu = (_b = (_a = toolContext.props) === null || _a === void 0 ? void 0 : _a.blankMenu) !== null && _b !== void 0 ? _b : [];
|
|
11
|
+
return observe(() => (React.createElement(DocumentMenuContext.Provider, { value: context },
|
|
12
|
+
React.createElement(DocumentMenu, { id: props.id, isTitle: true }))));
|
|
13
|
+
};
|
|
14
|
+
export default MessageTemplateMenu;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan-template/controls/ActionPlanTemplateMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAa,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAE7D,MAAM,mBAAmB,GAAG,CAAC,KAAqB,EAAE,EAAE;;IACrD,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3E,MAAM,WAAW,GAAG,iBAAiB,EAAE,CAAC;IACxC,MAAM,SAAS,GAAG,MAAA,MAAA,WAAW,CAAC,KAAK,0CAAE,SAAS,mCAAI,EAAE,CAAC;IAErD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QAM3C,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,SAAG,CACR,CAC/B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|