@voplus/morpho-document 6.0.57 → 6.0.58
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 +5 -3
- package/es/Modules.js.map +1 -1
- package/es/components/DescriptionDocumentList/index.js +1 -3
- package/es/components/DescriptionDocumentList/index.js.map +1 -1
- package/es/data/email-template/EmailTemplateStore.d.ts +10 -0
- package/es/data/email-template/EmailTemplateStore.js +21 -0
- package/es/data/email-template/EmailTemplateStore.js.map +1 -0
- package/es/data/email-template/hook.d.ts +5 -0
- package/es/data/email-template/hook.js +16 -0
- package/es/data/email-template/hook.js.map +1 -0
- package/es/data/email-template/index.js.map +1 -0
- package/es/data/email-template/interfaces.d.ts +10 -0
- package/es/data/email-template/interfaces.js.map +1 -0
- package/es/data/email-template/metas.d.ts +14 -0
- package/es/data/email-template/metas.js +38 -0
- package/es/data/email-template/metas.js.map +1 -0
- package/es/data/email-template/types.d.ts +15 -0
- package/es/data/email-template/types.js.map +1 -0
- package/es/modules/email-template/components/CodeMirror/index.d.ts +7 -0
- package/es/modules/email-template/components/CodeMirror/index.js +21 -0
- package/es/modules/email-template/components/CodeMirror/index.js.map +1 -0
- package/es/modules/email-template/components/CodeMirror/state.d.ts +5 -0
- package/es/modules/email-template/components/CodeMirror/state.js +28 -0
- package/es/modules/email-template/components/CodeMirror/state.js.map +1 -0
- package/es/modules/email-template/components/EmailTemplateContent/index.d.ts +6 -0
- package/es/modules/email-template/components/EmailTemplateContent/index.js +13 -0
- package/es/modules/email-template/components/EmailTemplateContent/index.js.map +1 -0
- package/es/modules/email-template/components/EmailTemplateContent/index.less +20 -0
- package/es/modules/email-template/components/EmailTemplateItem/index.d.ts +5 -0
- package/es/modules/email-template/components/EmailTemplateItem/index.js +25 -0
- package/es/modules/email-template/components/EmailTemplateItem/index.js.map +1 -0
- package/es/modules/email-template/components/EmailTemplateItem/index.less +32 -0
- package/es/modules/email-template/components/EmailTemplateList/index.d.ts +25 -0
- package/es/modules/email-template/components/EmailTemplateList/index.js +68 -0
- package/es/modules/email-template/components/EmailTemplateList/index.js.map +1 -0
- package/es/modules/email-template/components/EmailTemplateList/index.less +16 -0
- package/es/modules/email-template/components/EmailTemplateProperties/index.d.ts +27 -0
- package/es/modules/email-template/components/EmailTemplateProperties/index.js +39 -0
- package/es/modules/email-template/components/EmailTemplateProperties/index.js.map +1 -0
- package/es/modules/email-template/components/EmailTemplatePropertiesView/index.d.ts +7 -0
- package/es/modules/email-template/components/EmailTemplatePropertiesView/index.js +32 -0
- package/es/modules/email-template/components/EmailTemplatePropertiesView/index.js.map +1 -0
- package/es/modules/email-template/components/EmailTemplatePropertiesView/index.less +14 -0
- package/es/modules/email-template/components/EmailTemplateQuickViewDialog/index.d.ts +7 -0
- package/es/modules/email-template/components/EmailTemplateQuickViewDialog/index.js +28 -0
- package/es/modules/email-template/components/EmailTemplateQuickViewDialog/index.js.map +1 -0
- package/es/modules/email-template/components/EmailTemplateTabs/index.d.ts +5 -0
- package/es/modules/email-template/components/EmailTemplateTabs/index.js +55 -0
- package/es/modules/email-template/components/EmailTemplateTabs/index.js.map +1 -0
- package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.d.ts +10 -0
- package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.js +14 -0
- package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.js.map +1 -0
- package/es/modules/email-template/components/NewEmailTemplateForm/index.d.ts +18 -0
- package/es/modules/email-template/components/NewEmailTemplateForm/index.js +61 -0
- package/es/modules/email-template/components/NewEmailTemplateForm/index.js.map +1 -0
- package/es/modules/email-template/components/NewEmailTemplateForm/index.less +47 -0
- package/es/modules/email-template/components/NewEmailTemplateForm/state.d.ts +19 -0
- package/es/modules/email-template/components/NewEmailTemplateForm/state.js +55 -0
- package/es/modules/email-template/components/NewEmailTemplateForm/state.js.map +1 -0
- package/es/modules/email-template/controls/EmailTemplateDataIconBar/index.d.ts +12 -0
- package/es/modules/email-template/controls/EmailTemplateDataIconBar/index.js +19 -0
- package/es/modules/email-template/controls/EmailTemplateDataIconBar/index.js.map +1 -0
- package/es/modules/email-template/pages/EmailTemplateDefaultView/index.d.ts +6 -0
- package/es/modules/email-template/pages/EmailTemplateDefaultView/index.js +41 -0
- package/es/modules/email-template/pages/EmailTemplateDefaultView/index.js.map +1 -0
- package/es/modules/email-template/pages/EmailTemplateDefaultView/index.less +46 -0
- package/es/modules/graph/pages/GraphDefaultView/index.js +2 -4
- package/es/modules/graph/pages/GraphDefaultView/index.js.map +1 -1
- package/es/modules/page/views/PageDefaultView/index.js +17 -17
- package/es/modules/page/views/PageDefaultView/index.js.map +1 -1
- package/es/modules/page/views/PagePrintView/index.js +7 -6
- package/es/modules/page/views/PagePrintView/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceItem/index.js +1 -1
- package/es/modules/tenant-service/components/TenantServiceItem/index.js.map +1 -1
- package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.js +1 -1
- package/es/modules/tenant-service/pages/TenantServiceDefaultView/index.js.map +1 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.js +1 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionItem/index.js.map +1 -1
- package/es/obsolete/EmailTemplate/CodeMirror/index.js.map +1 -0
- package/es/obsolete/EmailTemplate/CodeMirror/state.js.map +1 -0
- package/es/obsolete/EmailTemplate/EmailTemplateDefaultView/index.js.map +1 -0
- package/es/obsolete/EmailTemplate/EmailTemplateForm/index.js.map +1 -0
- package/es/obsolete/EmailTemplate/EmailTemplateItem/index.js.map +1 -0
- package/es/obsolete/EmailTemplate/EmailTemplateItems/index.js.map +1 -0
- package/es/obsolete/EmailTemplate/EmailTemplateItems/state.js.map +1 -0
- package/es/obsolete/EmailTemplate/EmailTemplatePropertiesView/index.js.map +1 -0
- package/es/obsolete/EmailTemplate/EmailTemplateSelect/index.js.map +1 -0
- package/es/obsolete/EmailTemplate/data/EmailTemplateStore.js.map +1 -0
- package/es/obsolete/EmailTemplate/data/hook.js.map +1 -0
- package/es/obsolete/EmailTemplate/data/index.d.ts +4 -0
- package/es/obsolete/EmailTemplate/data/index.js +5 -0
- package/es/obsolete/EmailTemplate/data/index.js.map +1 -0
- package/es/obsolete/EmailTemplate/data/interfaces.js +2 -0
- package/es/obsolete/EmailTemplate/data/interfaces.js.map +1 -0
- package/es/obsolete/EmailTemplate/data/types.js +2 -0
- package/es/obsolete/EmailTemplate/data/types.js.map +1 -0
- package/es/pages/Library/LibraryDefaultView/Content.js +2 -2
- package/es/pages/Library/LibraryDefaultView/Content.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js +1 -1
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/mobile/index.js +1 -1
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/mobile/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/pc/index.js +2 -2
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/pc/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeReport/index.js +1 -1
- package/es/pages/Signature/Envelope/EnvelopeReport/index.js.map +1 -1
- package/es/pages/Signature/Envelope/components/EnvelopeQuickView/index.js +1 -1
- package/es/pages/Signature/Envelope/components/EnvelopeQuickView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/components/PropertiesView/index.js +1 -1
- package/es/pages/Signature/Envelope/components/PropertiesView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/controls/EnvelopeFootbar/index.js +10 -11
- package/es/pages/Signature/Envelope/controls/EnvelopeFootbar/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterContentView/index.js +1 -1
- package/es/pages/Signature/Letter/LetterContentView/index.js.map +1 -1
- package/es/pages/Signature/data/EnvelopeContext.js +1 -2
- package/es/pages/Signature/data/EnvelopeContext.js.map +1 -1
- package/es/pages/Signature/data/envelope/EnvelopeStore.d.ts +1 -1
- package/es/pages/Signature/data/envelope/EnvelopeStore.js +3 -7
- package/es/pages/Signature/data/envelope/EnvelopeStore.js.map +1 -1
- package/es/pages/VSubmit/VSubmitDefaultView/index.js +14 -14
- package/es/pages/VSubmit/VSubmitDefaultView/index.js.map +1 -1
- package/es/pages/VSubmit/VSubmitSubmitterView/index.js +10 -9
- package/es/pages/VSubmit/VSubmitSubmitterView/index.js.map +1 -1
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.js +2 -1
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.js.map +1 -1
- package/es/pages/VSubmit/components/SubmitSections/SubmitterSectionItem/index.js +2 -1
- package/es/pages/VSubmit/components/SubmitSections/SubmitterSectionItem/index.js.map +1 -1
- package/es/routes.js +2 -2
- package/es/routes.js.map +1 -1
- package/package.json +2 -1
- package/es/pages/EmailTemplate/CodeMirror/index.js.map +0 -1
- package/es/pages/EmailTemplate/CodeMirror/state.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplateDefaultView/index.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplateForm/index.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplateItem/index.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplateItems/index.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplateItems/state.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplatePropertiesView/index.js.map +0 -1
- package/es/pages/EmailTemplate/EmailTemplateSelect/index.js.map +0 -1
- package/es/pages/EmailTemplate/data/EmailTemplateStore.js.map +0 -1
- package/es/pages/EmailTemplate/data/hook.js.map +0 -1
- package/es/pages/EmailTemplate/data/index.js.map +0 -1
- package/es/pages/EmailTemplate/data/interfaces.js.map +0 -1
- package/es/pages/EmailTemplate/data/types.js.map +0 -1
- /package/es/{pages/EmailTemplate/data → data/email-template}/index.d.ts +0 -0
- /package/es/{pages/EmailTemplate/data → data/email-template}/index.js +0 -0
- /package/es/{pages/EmailTemplate/data → data/email-template}/interfaces.js +0 -0
- /package/es/{pages/EmailTemplate/data → data/email-template}/types.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/CodeMirror/index.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/CodeMirror/index.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/CodeMirror/state.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/CodeMirror/state.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateDefaultView/index.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateDefaultView/index.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateDefaultView/index.less +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateForm/index.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateForm/index.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateForm/index.less +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateItem/index.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateItem/index.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateItem/index.less +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateItems/index.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateItems/index.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateItems/index.less +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateItems/state.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateItems/state.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplatePropertiesView/index.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplatePropertiesView/index.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplatePropertiesView/index.less +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateSelect/index.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/EmailTemplateSelect/index.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/data/EmailTemplateStore.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/data/EmailTemplateStore.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/data/hook.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/data/hook.js +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/data/interfaces.d.ts +0 -0
- /package/es/{pages → obsolete}/EmailTemplate/data/types.d.ts +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { useMemo, useState } from "react";
|
|
2
|
+
import { Open, Reload } from "../../../../controls/ToolBar/buttons";
|
|
3
|
+
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
6
|
+
import { useEmailTemplate } from "../../../../data/email-template";
|
|
7
|
+
import DocumentHeader from "../../../../components/DocumentHeader";
|
|
8
|
+
import EmailTemplateTabs from "../EmailTemplateTabs";
|
|
9
|
+
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
10
|
+
import "./index.less";
|
|
11
|
+
const EmailTemplatePropertiesView = (props) => {
|
|
12
|
+
const id = props.id;
|
|
13
|
+
const meta = useMetaStore();
|
|
14
|
+
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
15
|
+
const data = useEmailTemplate(id);
|
|
16
|
+
const [loaded, setLoaded] = useState(true);
|
|
17
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
18
|
+
React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
|
19
|
+
React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, tagsVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, className: "email-template-properties-view-header", tools: React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
|
|
20
|
+
React.createElement(Reload, { action: onReload }),
|
|
21
|
+
React.createElement(Open, { url: meta.getRoute(data) })), descriptionVisible: false }),
|
|
22
|
+
React.createElement(EmailTemplateTabs, { id: id })))))));
|
|
23
|
+
/** reload data */
|
|
24
|
+
function onReload() {
|
|
25
|
+
setLoaded(false);
|
|
26
|
+
setTimeout(() => {
|
|
27
|
+
setLoaded(true);
|
|
28
|
+
}, 100);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default EmailTemplatePropertiesView;
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/components/EmailTemplatePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EACL,WAAW,EACX,eAAe,GAChB,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,cAAc,MAAM,uCAAuC,CAAC;AACnE,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,cAAc,CAAC;AAEtB,MAAM,2BAA2B,GAAG,CAAC,KAAwC,EAAE,EAAE;IAC/E,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,E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
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 { useEmailTemplate } from "../../../../data/email-template";
|
|
7
|
+
import DocumentHeader from "../../../../components/DocumentHeader";
|
|
8
|
+
import QuickViewDialog from "../../../../controls/QuickViewDialog";
|
|
9
|
+
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
10
|
+
import EmailTemplateProperties from "../EmailTemplateProperties";
|
|
11
|
+
import EmailTemplateContent from "../EmailTemplateContent";
|
|
12
|
+
const EmailTemplateQuickViewDialog = (props) => {
|
|
13
|
+
const { id } = props;
|
|
14
|
+
const meta = useMetaStore();
|
|
15
|
+
const emailTemplate = useEmailTemplate(id, { includes: "tags" });
|
|
16
|
+
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 },
|
|
17
|
+
React.createElement(Open, { url: meta.getRoute(emailTemplate) })) }), items: [
|
|
18
|
+
{
|
|
19
|
+
name: "Properties",
|
|
20
|
+
icon: faAlignLeft,
|
|
21
|
+
title: "Display properties separately",
|
|
22
|
+
detail: React.createElement(EmailTemplateProperties, { id: id }),
|
|
23
|
+
},
|
|
24
|
+
] },
|
|
25
|
+
React.createElement(EmailTemplateContent, { id: id }))));
|
|
26
|
+
};
|
|
27
|
+
export default EmailTemplateQuickViewDialog;
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/components/EmailTemplateQuickViewDialog/index.tsx"],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AI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAI,CAClC,GAEV,EAEH,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,+BAA+B;gBACtC,MAAM,EAAE,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI;aAC3C;SACD;QAED,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,GAAI,CACf,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React, { useMemo, 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 { SendFormContext, SendFormContextData, } from "@voplus/morpho-document-core/es/data/context/SendFormContext";
|
|
6
|
+
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
|
7
|
+
import EmailTemplateProperties from "../EmailTemplateProperties";
|
|
8
|
+
import DocumentList from "../../../../components/DocumentList";
|
|
9
|
+
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
10
|
+
import EmailTemplateContent from "../EmailTemplateContent";
|
|
11
|
+
import Links from "../../../../components/Links";
|
|
12
|
+
const EmailTemplateTabs = (props) => {
|
|
13
|
+
const { id } = props;
|
|
14
|
+
const [docTotals, setDocTotals] = useState(0);
|
|
15
|
+
const [activeKey, setActiveKey] = useState();
|
|
16
|
+
const openType = useMemo(() => new SendFormContextData("Dialog"), []);
|
|
17
|
+
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
18
|
+
Total: true,
|
|
19
|
+
List: false,
|
|
20
|
+
Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
|
|
21
|
+
});
|
|
22
|
+
const items = [
|
|
23
|
+
{
|
|
24
|
+
key: "Properties",
|
|
25
|
+
label: "Properties",
|
|
26
|
+
children: React.createElement(EmailTemplateProperties, { id: id }),
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: "Content",
|
|
30
|
+
label: "Content Preview",
|
|
31
|
+
children: React.createElement(EmailTemplateContent, { id: id }),
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
key: "Document",
|
|
35
|
+
label: (React.createElement(React.Fragment, null,
|
|
36
|
+
"Document",
|
|
37
|
+
React.createElement(Badge, { count: docTotals, className: "margin-left-10" }))),
|
|
38
|
+
children: React.createElement(DocumentList, { id: id, multiple: true, viewTitle: " ", total: false }),
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: "Activities",
|
|
42
|
+
label: "Activities",
|
|
43
|
+
children: React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id, title: " " }) : null),
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
key: "Links",
|
|
47
|
+
label: "Links",
|
|
48
|
+
children: React.createElement(Links, { id: id, isTitle: false }),
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
return observe(() => (React.createElement(SendFormContext.Provider, { value: openType },
|
|
52
|
+
React.createElement(DocumentTabs, { id: id, active: "Properties", tabItems: items, onChange: (key) => setActiveKey(key) }))));
|
|
53
|
+
};
|
|
54
|
+
export default EmailTemplateTabs;
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/components/EmailTemplateTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,E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C,oBAAoB,IAAC,EAAE,EAAE,EAAE,GAAI;SAC1C;QACD;YACC,GAAG,EAAE,UAAU;YACf,KAAK,EAAE,CACN;;gBAEC,oBAAC,KAAK,IAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAC,gBAAgB,GAAG,CACpD,CACH;YACD,QAAQ,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,QAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAI;SACzE;QACD;YACC,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,YAAY;YACnB,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;SACtF;QACD;YACC,GAAG,EAAE,OAAO;YACZ,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,oBAAC,KAAK,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI;SAC3C;KACD,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ;QACxC,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GACnC,CACwB,CAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NewEmailTemplateFormProps } from "./index";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
declare const NewEmailTemplateFormDialog: {
|
|
5
|
+
(props: NewEmailTemplateFormProps): React.JSX.Element;
|
|
6
|
+
defaultProps: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default NewEmailTemplateFormDialog;
|
package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import NewEmailTemplateForm from "./index";
|
|
3
|
+
import { Modal } from "antd";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
const NewEmailTemplateFormDialog = (props) => {
|
|
7
|
+
return observe(() => (React.createElement(Modal, { className: "new-email-template-form-dialog", title: "New EmailTemplate Form Dialog", open: true, closable: false, footer: false, onCancel: props.onCancel },
|
|
8
|
+
React.createElement(NewEmailTemplateForm, { ...props }))));
|
|
9
|
+
};
|
|
10
|
+
NewEmailTemplateFormDialog.defaultProps = {
|
|
11
|
+
type: "mini",
|
|
12
|
+
};
|
|
13
|
+
export default NewEmailTemplateFormDialog;
|
|
14
|
+
//# sourceMappingURL=NewEmailTemplateFormDialog.js.map
|
package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewEmailTemplateFormDialog.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,oBAAmD,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,CAAC;AAEtB,MAAM,0BAA0B,GAAG,CAAC,KAAgC,EAAE,EAAE;IACtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,KAAK,IACJ,SAAS,EAAC,gCAAgC,EAC1C,KAAK,EAAC,+BAA+B,EACrC,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,KAAK,EACb,QAAQ,EAAE,KAAK,CAAC,QAAQ;QAExB,oBAAC,oBAAoB,OAAK,KAAK,GAAI,CAC7B,CACT,CAAC,CAAC;AACL,CAAC,CAAC;AACF,0BAA0B,CAAC,YAAY,GAAG;IACxC,IAAI,EAAE,MAAM;CACb,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.less";
|
|
3
|
+
export type NewEmailTemplateFormProps = {
|
|
4
|
+
parentId?: string;
|
|
5
|
+
type?: "full" | "mini";
|
|
6
|
+
className?: string;
|
|
7
|
+
showView?: boolean;
|
|
8
|
+
onChange?: (data?: any) => void;
|
|
9
|
+
onSave?: (params?: any) => void;
|
|
10
|
+
onCancel?: () => void;
|
|
11
|
+
};
|
|
12
|
+
declare const NewEmailTemplateForm: {
|
|
13
|
+
(props: NewEmailTemplateFormProps): React.JSX.Element;
|
|
14
|
+
defaultProps: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default NewEmailTemplateForm;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Form, Row, Space, Checkbox, Button, Input } from "antd";
|
|
3
|
+
import { State } from "./state";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { runInAction } from "mobx";
|
|
6
|
+
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
7
|
+
import { useEmailTemplateStore } from "../../../../data/email-template";
|
|
8
|
+
import CodeMirror from "../CodeMirror";
|
|
9
|
+
import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
|
|
10
|
+
import EmailTemplatePropertiesView from "../EmailTemplatePropertiesView";
|
|
11
|
+
import classnames from "classnames";
|
|
12
|
+
import "./index.less";
|
|
13
|
+
const NewEmailTemplateForm = (props) => {
|
|
14
|
+
const store = useEmailTemplateStore();
|
|
15
|
+
const asideContext = useAsideContentContext();
|
|
16
|
+
const [state] = useState(new State());
|
|
17
|
+
const content = observe(() => (React.createElement("div", { className: classnames("new-email-template-form", { "sub-email-template-simply-form": props.type === "mini" }, props.className) },
|
|
18
|
+
React.createElement(Form, { layout: "vertical", onValuesChange: onFormLayoutChange },
|
|
19
|
+
React.createElement(Form.Item, { name: "Subject", label: "Subject" },
|
|
20
|
+
React.createElement(Input, { onChange: (e) => (state.params.Subject = e.target.value) })),
|
|
21
|
+
React.createElement(Form.Item, { name: "Body", label: "Body" },
|
|
22
|
+
React.createElement(CodeMirror, { onChange: (code) => (state.params.Body = code) })),
|
|
23
|
+
React.createElement(Form.Item, { name: "IsLayout" },
|
|
24
|
+
React.createElement(Checkbox, { onChange: (e) => (state.params.IsLayout = e.target.checked) }, "Is Layout")),
|
|
25
|
+
props.type === "mini" && !props.onChange && (React.createElement(Row, { className: "email-template-form-btn", justify: "end" },
|
|
26
|
+
React.createElement(Space, null,
|
|
27
|
+
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
|
28
|
+
React.createElement(Button, { type: "primary", onClick: onSubmit }, "Submit"))))))));
|
|
29
|
+
return observe(() => (React.createElement(React.Fragment, null, props.type === "full" ? (React.createElement(AddFormView, { title: "Add EmailTemplate", loading: !!state.loading, onCancel: onCancel, onSubmit: onSubmit }, content)) : (content))));
|
|
30
|
+
function onFormLayoutChange() {
|
|
31
|
+
if (props.onChange) {
|
|
32
|
+
props.onChange(state.params);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function onSubmit() {
|
|
36
|
+
runInAction(async () => {
|
|
37
|
+
var _a;
|
|
38
|
+
state.loading = true;
|
|
39
|
+
const res = await store.create({ data: state.params, error: "message" });
|
|
40
|
+
(_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props, state.params);
|
|
41
|
+
state.loading = false;
|
|
42
|
+
state.params = state.Params;
|
|
43
|
+
if (props.showView)
|
|
44
|
+
return asideContext.openAside(React.createElement(EmailTemplatePropertiesView, { id: res.id }), {
|
|
45
|
+
span: 12,
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function onCancel() {
|
|
50
|
+
state.params = state.Params;
|
|
51
|
+
if (props.showView)
|
|
52
|
+
return asideContext.closeAside();
|
|
53
|
+
if (props.onCancel)
|
|
54
|
+
props.onCancel();
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
NewEmailTemplateForm.defaultProps = {
|
|
58
|
+
type: "full",
|
|
59
|
+
};
|
|
60
|
+
export default NewEmailTemplateForm;
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/components/NewEmailTemplateForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO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,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE;oBAC3E,IAAI,EAAE,EAAE;iBACR,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,SAAS,QAAQ;QAChB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,KAAK,CAAC,QAAQ;YAAE,OAAO,YAAa,CAAC,UAAU,EAAE,CAAC;QACtD,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
:global {
|
|
4
|
+
.new-email-template-form {
|
|
5
|
+
&.sub-email-template-more-form {
|
|
6
|
+
padding: 0 20px;
|
|
7
|
+
|
|
8
|
+
.ant-form-item {
|
|
9
|
+
margin-bottom: 15px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.sub-email-template-simply-form {
|
|
14
|
+
flex: none;
|
|
15
|
+
padding-bottom: 10px;
|
|
16
|
+
// border-top: #f2f2f2 solid 1px;
|
|
17
|
+
|
|
18
|
+
.ant-form-item {
|
|
19
|
+
margin-bottom: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.email-template-code-mirror {
|
|
24
|
+
height: 200px;
|
|
25
|
+
|
|
26
|
+
.cm-editor {
|
|
27
|
+
height: 100%;
|
|
28
|
+
border-radius: 8px;
|
|
29
|
+
border: 1px solid #e5e7eb;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ͼ1.cm-focused {
|
|
33
|
+
outline: none;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.email-template-form-btn {
|
|
38
|
+
margin-top: 10px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.new-email-template-form-dialog {
|
|
43
|
+
.ant-modal-footer {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ICenter } from "@voplus/morpho-center-core/es/data";
|
|
2
|
+
export declare class State {
|
|
3
|
+
center: ICenter[];
|
|
4
|
+
centerTotal: number;
|
|
5
|
+
constructor();
|
|
6
|
+
Params: {
|
|
7
|
+
Name: string;
|
|
8
|
+
IsLayout: boolean;
|
|
9
|
+
Subject: string;
|
|
10
|
+
Body: string;
|
|
11
|
+
};
|
|
12
|
+
params: {
|
|
13
|
+
Name: string;
|
|
14
|
+
IsLayout: boolean;
|
|
15
|
+
Subject: string;
|
|
16
|
+
Body: string;
|
|
17
|
+
};
|
|
18
|
+
loading: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { makeObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
Object.defineProperty(this, "center", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
writable: true,
|
|
9
|
+
value: []
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(this, "centerTotal", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: 0
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(this, "Params", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: {
|
|
22
|
+
Name: "Email Template",
|
|
23
|
+
IsLayout: false,
|
|
24
|
+
Subject: "",
|
|
25
|
+
Body: "",
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(this, "params", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: this.Params
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(this, "loading", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: false
|
|
39
|
+
});
|
|
40
|
+
makeObservable(this);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
__decorate([
|
|
44
|
+
observable
|
|
45
|
+
], State.prototype, "center", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
observable
|
|
48
|
+
], State.prototype, "centerTotal", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
observable
|
|
51
|
+
], State.prototype, "params", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
observable
|
|
54
|
+
], State.prototype, "loading", void 0);
|
|
55
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/components/NewEmailTemplateForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlD,MAAM,OAAO,KAAK;IAIjB;QAHmB;;;;mBAAoB,EAAE;WAAC;QACvB;;;;mBAAc,CAAC;WAAC;QAM5B;;;;mBAAS;gBACf,IAAI,EAAE,gBAAgB;gBACtB,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,EAAE;gBACX,IAAI,EAAE,EAAE;aACR;WAAC;QAEiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACrB;;;;mBAAU,KAAK;WAAC;QAXlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAWD;AAhBmB;IAAlB,UAAU;qCAA+B;AACvB;IAAlB,UAAU;0CAAwB;AAahB;IAAlB,UAAU;qCAA6B;AACrB;IAAlB,UAAU;sCAAwB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const EmailTemplateDataIconBar: {
|
|
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 EmailTemplateDataIconBar;
|
|
@@ -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 EmailTemplateDataIconBar = (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
|
+
EmailTemplateDataIconBar.defaultProps = {
|
|
16
|
+
commentVisible: true,
|
|
17
|
+
};
|
|
18
|
+
export default EmailTemplateDataIconBar;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/controls/EmailTemplateDataIconBar/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,wBAAwB,GAAG,CAAC,KAIjC,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,wBAAwB,CAAC,YAAY,GAAG;IACvC,cAAc,EAAE,IAAI;CACpB,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Space, Button } from "antd";
|
|
3
|
+
import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
|
|
4
|
+
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
5
|
+
import { useEmailTemplate, useEmailTemplateStore } from "../../../../data/email-template";
|
|
6
|
+
import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
|
|
7
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
8
|
+
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
9
|
+
import EmailTemplateProperties from "../../components/EmailTemplateProperties";
|
|
10
|
+
import EmailTemplateContent from "../../components/EmailTemplateContent";
|
|
11
|
+
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
12
|
+
import CodeMirror from "../../components/CodeMirror";
|
|
13
|
+
import styles from "./index.less";
|
|
14
|
+
/** The EmailTemplate Page component with router parameters support. */
|
|
15
|
+
const EmailTemplateDefaultView = ({ id }) => {
|
|
16
|
+
const context = new TabItemStore({ url: "" });
|
|
17
|
+
const frame = useFrame();
|
|
18
|
+
const emailTemplate = useEmailTemplate(id, { includes: "tags" });
|
|
19
|
+
const store = useEmailTemplateStore();
|
|
20
|
+
const [edit, setEdit] = useState(false);
|
|
21
|
+
const [codeContent, setCodeContent] = useState();
|
|
22
|
+
const [asideContext] = useState(frame ? useAsideContentContext() : AsideContent.createContext());
|
|
23
|
+
return observe(() => (React.createElement(TabItemContext.Provider, { value: context },
|
|
24
|
+
React.createElement(MainContent, { className: styles["email-template-default-view"], asideable: !frame },
|
|
25
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
|
26
|
+
React.createElement(EmailTemplateProperties, { id: id, headerVisible: true })),
|
|
27
|
+
React.createElement("div", { className: "email-template-context" },
|
|
28
|
+
React.createElement("div", { className: "email-template-body" },
|
|
29
|
+
React.createElement("div", { className: "email-template-body-header" }, edit ? (React.createElement(Space, null,
|
|
30
|
+
React.createElement(Button, { onClick: () => setEdit(false) }, "Cancel"),
|
|
31
|
+
React.createElement(Button, { type: "primary", onClick: async () => {
|
|
32
|
+
await store
|
|
33
|
+
.edit(id, { data: { Body: codeContent }, error: "message" })
|
|
34
|
+
.then(() => setEdit(false));
|
|
35
|
+
} }, "Save"))) : (React.createElement(Button, { type: "primary", onClick: () => setEdit(true) }, "Edit"))),
|
|
36
|
+
edit ? (React.createElement(CodeMirror, { code: emailTemplate.body, onChange: (code) => setCodeContent(code) })) : (React.createElement(EmailTemplateContent, { id: id }))),
|
|
37
|
+
frame ? (React.createElement(DocumentTabs, { id: id, active: "Document" })) : (React.createElement(AsideContent, { className: "email-template-aside-content", context: asideContext },
|
|
38
|
+
React.createElement(DocumentTabs, { id: id, active: "Document" }))))))));
|
|
39
|
+
};
|
|
40
|
+
export default EmailTemplateDefaultView;
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/pages/EmailTemplateDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,uBAAuB,MAAM,0CAA0C,CAAC;AAC/E,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,uEAAuE;AACvE,MAAM,wBAAwB,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAC3D,MAAM,OAAO,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9C,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IACjE,MAAM,KAA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,EAAC,SAAS,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,WAE1C,CACT,CACI;oBACL,IAAI,CAAC,CAAC,CAAC,CACP,oBAAC,UAAU,IAAC,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,GAAI,CAClF,CAAC,CAAC,CAAC,CACH,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,GAAI,CAChC,CACI;gBACL,KAAK,CAAC,CAAC,CAAC,CACR,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAC,UAAU,GAAG,CAC1C,CAAC,CAAC,CAAC,CACH,oBAAC,YAAY,IAAC,SAAS,EAAC,8BAA8B,EAAC,OAAO,EAAE,YAAmB;oBAClF,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAC,UAAU,GAAG,CAC5B,CACf,CACI,CACO,CACW,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.email-template-default-view {
|
|
2
|
+
:global {
|
|
3
|
+
.main-content-nav {
|
|
4
|
+
width: 370px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
z-index: 2;
|
|
7
|
+
}
|
|
8
|
+
.email-template-context {
|
|
9
|
+
display: flex;
|
|
10
|
+
padding: 0;
|
|
11
|
+
background: #ffffff;
|
|
12
|
+
> .email-template-aside-content,
|
|
13
|
+
> .ant-tabs {
|
|
14
|
+
flex: 1;
|
|
15
|
+
}
|
|
16
|
+
.email-template-body {
|
|
17
|
+
width: 50%;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
border-right: 1px solid #e6e6e6;
|
|
20
|
+
|
|
21
|
+
.email-template-body-header {
|
|
22
|
+
height: 49px;
|
|
23
|
+
padding: 0 20px;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
border-bottom: 1px solid #e6e6e6;
|
|
26
|
+
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: end;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.email-template-iframe-content {
|
|
33
|
+
height: calc(100% - 50px);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.email-template-code-mirror {
|
|
37
|
+
height: calc(100% - 50px);
|
|
38
|
+
|
|
39
|
+
.cm-editor {
|
|
40
|
+
height: 100%;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -3,7 +3,7 @@ import GraphProperties from "../../components/GraphProperties";
|
|
|
3
3
|
import GraphViewer from "../../components/GraphViewer";
|
|
4
4
|
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
5
5
|
import React from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { Spin } from "antd";
|
|
7
7
|
import { observe } from "@voplus/morpho-ui";
|
|
8
8
|
import styles from "./index.less";
|
|
9
9
|
import { useDocument } from "@voplus/morpho-document-core";
|
|
@@ -15,9 +15,7 @@ const GraphDefaultView = ({ id }) => {
|
|
|
15
15
|
React.createElement(MainContent, { className: styles["graph-default-view"] },
|
|
16
16
|
React.createElement(MainContent.Nav, { collapsible: true },
|
|
17
17
|
React.createElement(GraphProperties, { id: id })),
|
|
18
|
-
React.createElement("div", { className: "graph-content" },
|
|
19
|
-
React.createElement(Skeleton, { active: true, loading: !doc.loaded },
|
|
20
|
-
React.createElement(GraphViewer, { id: id, autoHeight: true })))))));
|
|
18
|
+
React.createElement("div", { className: "graph-content" }, doc.loading ? React.createElement(Spin, null) : React.createElement(GraphViewer, { id: id, autoHeight: true }))))));
|
|
21
19
|
};
|
|
22
20
|
export default GraphDefaultView;
|
|
23
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/pages/GraphDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/pages/GraphDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,+DAA+D;AAC/D,MAAM,gBAAgB,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IACnD,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,GAAG,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAE5B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,WAAW,IAAC,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC;YACnD,oBAAC,WAAW,CAAC,GA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