@voplus/morpho-document 6.0.97 → 6.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Modules.js +2 -2
- package/es/Modules.js.map +1 -1
- package/es/components/AddDocOverlay/index.js +1 -1
- package/es/components/AddDocOverlay/index.js.map +1 -1
- package/es/components/AddDocOverlay/state.js +1 -1
- package/es/components/AddDocOverlay/state.js.map +1 -1
- package/es/components/NewDocumentForm/state.js +2 -2
- package/es/components/NewDocumentForm/state.js.map +1 -1
- package/es/components/TagView/index.less +1 -1
- package/es/data/message-template/MessageTemplateStore.d.ts +11 -0
- package/es/data/{email-template/EmailTemplateStore.js → message-template/MessageTemplateStore.js} +8 -8
- package/es/data/message-template/MessageTemplateStore.js.map +1 -0
- package/es/data/message-template/hook.d.ts +5 -0
- package/es/data/{email-template → message-template}/hook.js +5 -5
- package/es/data/message-template/hook.js.map +1 -0
- package/es/data/{email-template → message-template}/index.d.ts +1 -1
- package/es/data/{email-template → message-template}/index.js +1 -1
- package/es/data/message-template/index.js.map +1 -0
- package/es/data/{email-template → message-template}/interfaces.d.ts +1 -1
- package/es/data/message-template/interfaces.js.map +1 -0
- package/es/data/{email-template → message-template}/metas.d.ts +2 -2
- package/es/data/message-template/metas.js +38 -0
- package/es/data/message-template/metas.js.map +1 -0
- package/es/data/{email-template → message-template}/types.d.ts +7 -5
- package/es/data/message-template/types.js.map +1 -0
- package/es/modules/{email-template → message-template}/components/CodeMirror/index.js +1 -1
- package/es/modules/message-template/components/CodeMirror/index.js.map +1 -0
- package/es/modules/message-template/components/CodeMirror/state.js.map +1 -0
- package/es/modules/{email-template/components/EmailTemplateContent → message-template/components/MessageTemplateContent}/index.d.ts +2 -2
- package/es/modules/message-template/components/MessageTemplateContent/index.js +19 -0
- package/es/modules/message-template/components/MessageTemplateContent/index.js.map +1 -0
- package/es/modules/{email-template/components/EmailTemplateContent → message-template/components/MessageTemplateContent}/index.less +1 -1
- package/es/modules/message-template/components/MessageTemplateItem/index.d.ts +5 -0
- package/es/modules/{email-template/components/EmailTemplateItem → message-template/components/MessageTemplateItem}/index.js +5 -5
- package/es/modules/message-template/components/MessageTemplateItem/index.js.map +1 -0
- package/es/modules/{email-template/components/EmailTemplateItem → message-template/components/MessageTemplateItem}/index.less +1 -1
- package/es/modules/{email-template/components/EmailTemplateList → message-template/components/MessageTemplateList}/index.d.ts +6 -6
- package/es/modules/{email-template/components/EmailTemplateList → message-template/components/MessageTemplateList}/index.js +18 -18
- package/es/modules/message-template/components/MessageTemplateList/index.js.map +1 -0
- package/es/modules/{email-template/components/EmailTemplateList → message-template/components/MessageTemplateList}/index.less +2 -2
- package/es/modules/{email-template/components/EmailTemplateProperties → message-template/components/MessageTemplateProperties}/index.d.ts +8 -8
- package/es/modules/{email-template/components/EmailTemplateProperties → message-template/components/MessageTemplateProperties}/index.js +18 -18
- package/es/modules/message-template/components/MessageTemplateProperties/index.js.map +1 -0
- package/es/modules/{email-template/components/EmailTemplatePropertiesView → message-template/components/MessageTemplatePropertiesView}/index.d.ts +2 -2
- package/es/modules/{email-template/components/EmailTemplatePropertiesView → message-template/components/MessageTemplatePropertiesView}/index.js +4 -4
- package/es/modules/message-template/components/MessageTemplatePropertiesView/index.js.map +1 -0
- package/es/modules/{email-template/components/EmailTemplatePropertiesView → message-template/components/MessageTemplatePropertiesView}/index.less +2 -2
- package/es/modules/{email-template/components/EmailTemplateQuickViewDialog → message-template/components/MessageTemplateQuickViewDialog}/index.d.ts +2 -2
- package/es/modules/{email-template/components/EmailTemplateQuickViewDialog → message-template/components/MessageTemplateQuickViewDialog}/index.js +9 -9
- package/es/modules/message-template/components/MessageTemplateQuickViewDialog/index.js.map +1 -0
- package/es/modules/{email-template/components/EmailTemplateSelect → message-template/components/MessageTemplateSelect}/index.d.ts +4 -4
- package/es/modules/{email-template/components/EmailTemplateSelect → message-template/components/MessageTemplateSelect}/index.js +9 -9
- package/es/modules/message-template/components/MessageTemplateSelect/index.js.map +1 -0
- package/es/modules/message-template/components/MessageTemplateTabs/index.d.ts +5 -0
- package/es/modules/{email-template/components/EmailTemplateTabs → message-template/components/MessageTemplateTabs}/index.js +6 -6
- package/es/modules/message-template/components/MessageTemplateTabs/index.js.map +1 -0
- package/es/modules/message-template/components/NewMessageTemplateForm/NewMessageTemplateFormDialog.d.ts +10 -0
- package/es/modules/message-template/components/NewMessageTemplateForm/NewMessageTemplateFormDialog.js +14 -0
- package/es/modules/message-template/components/NewMessageTemplateForm/NewMessageTemplateFormDialog.js.map +1 -0
- package/es/modules/{email-template/components/NewEmailTemplateForm → message-template/components/NewMessageTemplateForm}/index.d.ts +4 -4
- package/es/modules/{email-template/components/NewEmailTemplateForm → message-template/components/NewMessageTemplateForm}/index.js +10 -10
- package/es/modules/message-template/components/NewMessageTemplateForm/index.js.map +1 -0
- package/es/modules/{email-template/components/NewEmailTemplateForm → message-template/components/NewMessageTemplateForm}/index.less +7 -7
- package/es/modules/message-template/components/NewMessageTemplateForm/state.js.map +1 -0
- package/es/modules/{email-template/controls/EmailTemplateDataIconBar → message-template/controls/MessageTemplateDataIconBar}/index.d.ts +2 -2
- package/es/modules/{email-template/controls/EmailTemplateDataIconBar → message-template/controls/MessageTemplateDataIconBar}/index.js +3 -3
- package/es/modules/message-template/controls/MessageTemplateDataIconBar/index.js.map +1 -0
- package/es/modules/message-template/pages/MessageTemplateDefaultView/index.d.ts +6 -0
- package/es/modules/{email-template/pages/EmailTemplateDefaultView → message-template/pages/MessageTemplateDefaultView}/index.js +15 -15
- package/es/modules/message-template/pages/MessageTemplateDefaultView/index.js.map +1 -0
- package/es/modules/{email-template/pages/EmailTemplateDefaultView → message-template/pages/MessageTemplateDefaultView}/index.less +7 -7
- package/es/pages/Signature/Envelope/controls/EnvelopeFootbar/index.less +1 -1
- package/es/pages/Signature/components/SigningDropdown/index.less +1 -1
- package/package.json +1 -1
- package/es/data/email-template/EmailTemplateStore.d.ts +0 -11
- package/es/data/email-template/EmailTemplateStore.js.map +0 -1
- package/es/data/email-template/hook.d.ts +0 -5
- package/es/data/email-template/hook.js.map +0 -1
- package/es/data/email-template/index.js.map +0 -1
- package/es/data/email-template/interfaces.js.map +0 -1
- package/es/data/email-template/metas.js +0 -38
- package/es/data/email-template/metas.js.map +0 -1
- package/es/data/email-template/types.js.map +0 -1
- package/es/modules/email-template/components/CodeMirror/index.js.map +0 -1
- package/es/modules/email-template/components/CodeMirror/state.js.map +0 -1
- package/es/modules/email-template/components/EmailTemplateContent/index.js +0 -19
- package/es/modules/email-template/components/EmailTemplateContent/index.js.map +0 -1
- package/es/modules/email-template/components/EmailTemplateItem/index.d.ts +0 -5
- package/es/modules/email-template/components/EmailTemplateItem/index.js.map +0 -1
- package/es/modules/email-template/components/EmailTemplateList/index.js.map +0 -1
- package/es/modules/email-template/components/EmailTemplateProperties/index.js.map +0 -1
- package/es/modules/email-template/components/EmailTemplatePropertiesView/index.js.map +0 -1
- package/es/modules/email-template/components/EmailTemplateQuickViewDialog/index.js.map +0 -1
- package/es/modules/email-template/components/EmailTemplateSelect/index.js.map +0 -1
- package/es/modules/email-template/components/EmailTemplateTabs/index.d.ts +0 -5
- package/es/modules/email-template/components/EmailTemplateTabs/index.js.map +0 -1
- package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.d.ts +0 -10
- package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.js +0 -14
- package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.js.map +0 -1
- package/es/modules/email-template/components/NewEmailTemplateForm/index.js.map +0 -1
- package/es/modules/email-template/components/NewEmailTemplateForm/state.js.map +0 -1
- package/es/modules/email-template/controls/EmailTemplateDataIconBar/index.js.map +0 -1
- package/es/modules/email-template/pages/EmailTemplateDefaultView/index.d.ts +0 -6
- package/es/modules/email-template/pages/EmailTemplateDefaultView/index.js.map +0 -1
- /package/es/data/{email-template → message-template}/interfaces.js +0 -0
- /package/es/data/{email-template → message-template}/types.js +0 -0
- /package/es/modules/{email-template → message-template}/components/CodeMirror/index.d.ts +0 -0
- /package/es/modules/{email-template → message-template}/components/CodeMirror/state.d.ts +0 -0
- /package/es/modules/{email-template → message-template}/components/CodeMirror/state.js +0 -0
- /package/es/modules/{email-template/components/NewEmailTemplateForm → message-template/components/NewMessageTemplateForm}/state.d.ts +0 -0
- /package/es/modules/{email-template/components/NewEmailTemplateForm → message-template/components/NewMessageTemplateForm}/state.js +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DocumentPropertiesName } from "../../../../components/DocumentProperties";
|
|
3
|
-
export type
|
|
4
|
-
declare const
|
|
3
|
+
export type MessageTemplatePropertiesName = "Is Layout" | "Layout" | "Subject";
|
|
4
|
+
declare const MessageTemplateProperties: {
|
|
5
5
|
(props: {
|
|
6
6
|
id: string;
|
|
7
7
|
headerVisible?: boolean;
|
|
8
|
-
|
|
8
|
+
messageTemplateTitle?: string;
|
|
9
9
|
documentTitle?: string;
|
|
10
|
-
|
|
11
|
-
name:
|
|
10
|
+
messageTemplateProperties?: {
|
|
11
|
+
name: MessageTemplatePropertiesName;
|
|
12
12
|
visible?: boolean;
|
|
13
13
|
}[];
|
|
14
14
|
documentProperties?: {
|
|
@@ -17,11 +17,11 @@ declare const EmailTemplateProperties: {
|
|
|
17
17
|
}[];
|
|
18
18
|
}): React.JSX.Element;
|
|
19
19
|
defaultProps: {
|
|
20
|
-
|
|
20
|
+
messageTemplateTitle: string;
|
|
21
21
|
documentTitle: string;
|
|
22
|
-
|
|
22
|
+
messageTemplateProperties: {
|
|
23
23
|
name: string;
|
|
24
24
|
}[];
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
export default
|
|
27
|
+
export default MessageTemplateProperties;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { Switch } from "antd";
|
|
3
3
|
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
4
|
-
import {
|
|
4
|
+
import { useMessageTemplate, useMessageTemplateStore } from "../../../../data/message-template";
|
|
5
5
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
6
6
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
7
7
|
import DocumentProperties from "../../../../components/DocumentProperties";
|
|
8
|
-
import
|
|
8
|
+
import MessageTemplateSelect from "../MessageTemplateSelect";
|
|
9
9
|
import FolderEdit from "../../../../controls/FolderEdit";
|
|
10
10
|
import DocumentReference from "../../../../controls/DocumentReference";
|
|
11
11
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
12
12
|
import DocumentPanelHeader from "../../../../components/DocumentPanelHeader";
|
|
13
|
-
const
|
|
14
|
-
const { id, headerVisible,
|
|
13
|
+
const MessageTemplateProperties = (props) => {
|
|
14
|
+
const { id, headerVisible, messageTemplateTitle, documentTitle, messageTemplateProperties, documentProperties, } = props;
|
|
15
15
|
const [showEditIcon, setShowEditIcon] = useState(true);
|
|
16
16
|
const [folderEditable, setFolderEditable] = useState(false);
|
|
17
|
-
const
|
|
18
|
-
const store =
|
|
19
|
-
const filterPro =
|
|
17
|
+
const messageTemplate = useMessageTemplate(id, { reload: true, includes: "layout" });
|
|
18
|
+
const store = useMessageTemplateStore();
|
|
19
|
+
const filterPro = messageTemplateProperties === null || messageTemplateProperties === void 0 ? void 0 : messageTemplateProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
20
20
|
/** 加class name 为了方便做integration tests */
|
|
21
|
-
const classId = "
|
|
21
|
+
const classId = "message-template-properties";
|
|
22
22
|
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
23
23
|
headerVisible && React.createElement(DocumentPanelHeader, { id: id }),
|
|
24
24
|
React.createElement(Scrollbars, { autoHide: true },
|
|
25
|
-
React.createElement(PropertiesSection, { title:
|
|
25
|
+
React.createElement(PropertiesSection, { title: messageTemplateTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => renderProp(i)) }),
|
|
26
26
|
React.createElement(DocumentProperties, { id: id, title: documentTitle, customProperties: documentProperties })))));
|
|
27
27
|
function renderProp(item) {
|
|
28
28
|
var _a, _b, _c;
|
|
29
29
|
switch (item.name) {
|
|
30
30
|
case "Is Layout":
|
|
31
31
|
return (React.createElement(Prop, { label: "Is Layout", className: `${classId}-Is Layout` },
|
|
32
|
-
React.createElement(Switch, { checked:
|
|
32
|
+
React.createElement(Switch, { checked: messageTemplate.isLayout, onChange: async (checked) => await store.edit(id, { data: { IsLayout: checked }, error: "message" }) })));
|
|
33
33
|
case "Layout":
|
|
34
|
-
return (!
|
|
35
|
-
React.createElement(FolderEdit, { showEditIcon: showEditIcon, onEditIconClick: onEditFolder }, folderEditable ? (React.createElement(
|
|
34
|
+
return (!messageTemplate.isLayout && (React.createElement(Prop, { label: "Layout", className: `${classId}-Layout` },
|
|
35
|
+
React.createElement(FolderEdit, { showEditIcon: showEditIcon, onEditIconClick: onEditFolder }, folderEditable ? (React.createElement(MessageTemplateSelect, { defaultValue: (_a = messageTemplate.layout) === null || _a === void 0 ? void 0 : _a.id, onBlur: onBulurFolder, onChange: (data) => {
|
|
36
36
|
onBulurFolder();
|
|
37
37
|
store.edit(id, { data: { LayoutId: (data === null || data === void 0 ? void 0 : data.id) || "" }, error: "message" });
|
|
38
|
-
} })) : ((_b =
|
|
38
|
+
} })) : ((_b = messageTemplate.layout) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement(DocumentReference, { type: "link", id: (_c = messageTemplate.layout) === null || _c === void 0 ? void 0 : _c.id })) : (React.createElement("span", { className: "add-info-style" }, "Select MessageTemplate"))))));
|
|
39
39
|
case "Subject":
|
|
40
40
|
return (React.createElement(Prop, { label: "Subject", className: `${classId}-Subject` },
|
|
41
|
-
React.createElement(InlineEdit, { defaultValue:
|
|
41
|
+
React.createElement(InlineEdit, { defaultValue: messageTemplate.subject, content: (v) => v.store.value ? (React.createElement("span", { className: "properties-value" }, v.store.value)) : (React.createElement("span", { className: "add-info-style" }, "Add Subject")), onSave: async (value) => {
|
|
42
42
|
await store.edit(id, { data: { Subject: value }, error: "message" });
|
|
43
43
|
} })));
|
|
44
44
|
}
|
|
@@ -52,10 +52,10 @@ const EmailTemplateProperties = (props) => {
|
|
|
52
52
|
setFolderEditable(false);
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
MessageTemplateProperties.defaultProps = {
|
|
56
|
+
messageTemplateTitle: "MESSAGE TEMPLATE PROPERTIES",
|
|
57
57
|
documentTitle: "DOCUMENT PROPERTIES",
|
|
58
|
-
|
|
58
|
+
messageTemplateProperties: [{ name: "Is Layout" }, { name: "Layout" }, { name: "Subject" }],
|
|
59
59
|
};
|
|
60
|
-
export default
|
|
60
|
+
export default MessageTemplateProperties;
|
|
61
61
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,kBAEN,MAAM,2CAA2C,CAAC;AACnD,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,UAAU,MAAM,iCAAiC,CAAC;AACzD,OAAO,iBAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;A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C;CAC3F,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./index.less";
|
|
3
|
-
declare const
|
|
3
|
+
declare const MessageTemplatePropertiesView: (props: {
|
|
4
4
|
id: string;
|
|
5
5
|
default?: boolean;
|
|
6
6
|
}) => React.JSX.Element;
|
|
7
|
-
export default
|
|
7
|
+
export default MessageTemplatePropertiesView;
|
|
@@ -2,9 +2,9 @@ import React, { useMemo, useState } from "react";
|
|
|
2
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import DocumentPropertiesHeader from "../../../../components/DocumentPropertiesHeader";
|
|
5
|
-
import
|
|
5
|
+
import MessageTemplateTabs from "../MessageTemplateTabs";
|
|
6
6
|
import "./index.less";
|
|
7
|
-
const
|
|
7
|
+
const MessageTemplatePropertiesView = (props) => {
|
|
8
8
|
const id = props.id;
|
|
9
9
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
10
10
|
const [loaded, setLoaded] = useState(true);
|
|
@@ -13,7 +13,7 @@ const EmailTemplatePropertiesView = (props) => {
|
|
|
13
13
|
React.createElement(DocumentPropertiesHeader, { id: id, documentHeaderProper: {
|
|
14
14
|
toolBarProps: { closeAside: true, close: true, onReload: onReload },
|
|
15
15
|
} }),
|
|
16
|
-
React.createElement(
|
|
16
|
+
React.createElement(MessageTemplateTabs, { id: id })))))));
|
|
17
17
|
/** reload data */
|
|
18
18
|
function onReload() {
|
|
19
19
|
setLoaded(false);
|
|
@@ -22,5 +22,5 @@ const EmailTemplatePropertiesView = (props) => {
|
|
|
22
22
|
}, 100);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
export default
|
|
25
|
+
export default MessageTemplatePropertiesView;
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplatePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,wBAAwB,MAAM,iDAAiD,CAAC;AACvF,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,cAAc,CAAC;AAEtB,MAAM,6BAA6B,GAAG,CAAC,KAAwC,EAAE,EAAE;IAClF,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,oBAAoB,IACjC,MAAM,IAAI,CACV,oBAAC,KAAK,CAAC,QAAQ;YACd,oBAAC,wBAAwB,IACxB,EAAE,EAAE,EAAE,EACN,oBAAoB,EAAE;oBACrB,YAAY,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE;iBACnE,GACA;YACF,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,GAAI,CACf,CACjB,CACI,CACgB,CACvB,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
:global {
|
|
2
|
-
.
|
|
2
|
+
.message-template-properties-view-header {
|
|
3
3
|
color: #444;
|
|
4
4
|
.tools-bar {
|
|
5
5
|
text-align: right;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
.
|
|
8
|
+
.message-template-properties-view {
|
|
9
9
|
display: flex;
|
|
10
10
|
flex-direction: column;
|
|
11
11
|
height: 100%;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const
|
|
2
|
+
declare const MessageTemplateQuickViewDialog: (props: {
|
|
3
3
|
id: string;
|
|
4
4
|
visible?: boolean;
|
|
5
5
|
onCancel?: () => void;
|
|
6
6
|
}) => React.JSX.Element;
|
|
7
|
-
export default
|
|
7
|
+
export default MessageTemplateQuickViewDialog;
|
|
@@ -3,26 +3,26 @@ import { Open } from "../../../../controls/ToolBar/buttons";
|
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
5
5
|
import { faAlignLeft } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
-
import {
|
|
6
|
+
import { useMessageTemplate } from "../../../../data/message-template";
|
|
7
7
|
import DocumentHeader from "../../../../components/DocumentHeader";
|
|
8
8
|
import QuickViewDialog from "../../../../controls/QuickViewDialog";
|
|
9
9
|
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const
|
|
10
|
+
import MessageTemplateProperties from "../MessageTemplateProperties";
|
|
11
|
+
import MessageTemplateContent from "../MessageTemplateContent";
|
|
12
|
+
const MessageTemplateQuickViewDialog = (props) => {
|
|
13
13
|
const { id } = props;
|
|
14
14
|
const meta = useMetaStore();
|
|
15
|
-
const
|
|
15
|
+
const messageTemplate = useMessageTemplate(id, { includes: "tags" });
|
|
16
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(
|
|
17
|
+
React.createElement(Open, { url: meta.getRoute(messageTemplate) })) }), items: [
|
|
18
18
|
{
|
|
19
19
|
name: "Properties",
|
|
20
20
|
icon: faAlignLeft,
|
|
21
21
|
title: "Display properties separately",
|
|
22
|
-
detail: React.createElement(
|
|
22
|
+
detail: React.createElement(MessageTemplateProperties, { id: id }),
|
|
23
23
|
},
|
|
24
24
|
] },
|
|
25
|
-
React.createElement(
|
|
25
|
+
React.createElement(MessageTemplateContent, { id: id }))));
|
|
26
26
|
};
|
|
27
|
-
export default
|
|
27
|
+
export default MessageTemplateQuickViewDialog;
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,cAAc,MAAM,uCAAuC,CAAC;AACnE,OAAO,eAAe,MAAM,sCAAsC,CAAC;AACnE,OAAO,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
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SelectProps } from "antd";
|
|
3
|
-
import {
|
|
4
|
-
declare const
|
|
3
|
+
import { IMessageTemplate } from "../../../../data/message-template";
|
|
4
|
+
declare const MessageTemplateSelect: {
|
|
5
5
|
(props: SelectProps<any, import("rc-select/lib/Select").DefaultOptionType> & {
|
|
6
6
|
defaultValue?: string | undefined;
|
|
7
7
|
isLayout?: boolean | undefined;
|
|
8
|
-
onChange?: ((
|
|
8
|
+
onChange?: ((messageTemplate?: IMessageTemplate) => void) | undefined;
|
|
9
9
|
}): React.JSX.Element;
|
|
10
10
|
defaultProps: {
|
|
11
11
|
isLayout: boolean;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export default
|
|
14
|
+
export default MessageTemplateSelect;
|
|
@@ -2,8 +2,8 @@ import React, { useState } from "react";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
4
4
|
import { Select } from "antd";
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
5
|
+
import { useMessageTemplateListEffect } from "../../../../data/message-template";
|
|
6
|
+
const MessageTemplateSelect = (props) => {
|
|
7
7
|
const { defaultValue, isLayout } = props;
|
|
8
8
|
const [timer, setTimer] = useState();
|
|
9
9
|
const list = useCreateListDataState({
|
|
@@ -11,10 +11,10 @@ const EmailTemplateSelect = (props) => {
|
|
|
11
11
|
filters: [{ c: "IsLayout", o: "=", l: "And", v1: JSON.stringify(isLayout) }],
|
|
12
12
|
},
|
|
13
13
|
}, []);
|
|
14
|
-
|
|
14
|
+
useMessageTemplateListEffect(null, (result) => {
|
|
15
15
|
list.union(result);
|
|
16
16
|
}, list.filters.options);
|
|
17
|
-
return observe(() => (React.createElement(Select, { ...props, showSearch: true, allowClear: true, defaultValue: defaultValue, style: { width: "100%" }, loading: list.loading, filterOption: false, placeholder: "Select
|
|
17
|
+
return observe(() => (React.createElement(Select, { ...props, showSearch: true, allowClear: true, defaultValue: defaultValue, style: { width: "100%" }, loading: list.loading, filterOption: false, placeholder: "Select MessageTemplate", popupClassName: "select-message-template-popup", optionLabelProp: "label", onSearch: onSearch, onChange: handleChange, options: list.data.map((item) => ({ value: item.id, label: item.name, name: item.name })), optionRender: (option) => React.createElement("div", null, option.data.name) })));
|
|
18
18
|
function onSearch(val) {
|
|
19
19
|
if (timer)
|
|
20
20
|
clearTimeout(timer);
|
|
@@ -26,17 +26,17 @@ const EmailTemplateSelect = (props) => {
|
|
|
26
26
|
function handleChange(id) {
|
|
27
27
|
var _a, _b;
|
|
28
28
|
if (id) {
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props,
|
|
29
|
+
const messageTemplate = list.data.find((d) => d.id === id);
|
|
30
|
+
if (messageTemplate)
|
|
31
|
+
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, messageTemplate);
|
|
32
32
|
}
|
|
33
33
|
else {
|
|
34
34
|
(_b = props.onChange) === null || _b === void 0 ? void 0 : _b.call(props, undefined);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
MessageTemplateSelect.defaultProps = {
|
|
39
39
|
isLayout: true,
|
|
40
40
|
};
|
|
41
|
-
export default
|
|
41
|
+
export default MessageTemplateSelect;
|
|
42
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,MAAM,EAAe,MAAM,MAAM,CAAC;AAC3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Y,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,iCAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAO,GACtD,CACF,CAAC,CAAC;IAEH,SAAS,QAAQ,CAAC,GAAW;QAC5B,IAAI,KAAK;YAAE,YAAY,CAAC,KAAK,CAAC,CAAC;QAC/B,QAAQ,CACP,UAAU,CAAC,GAAG,EAAE;YACf,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;YACxB,QAAQ,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC,EAAE,IAAI,CAAQ,CACf,CAAC;IACH,CAAC;IAED,SAAS,YAAY,CAAC,EAAU;;QAC/B,IAAI,EAAE,EAAE,CAAC;YACR,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;YAC3D,IAAI,eAAe;gBAAE,MAAA,KAAK,CAAC,QAAQ,sDAAG,eAAe,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACP,MAAA,KAAK,CAAC,QAAQ,sDAAG,SAAS,CAAC,CAAC;QAC7B,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,qBAAqB,CAAC,YAAY,GAAG;IACpC,QAAQ,EAAE,IAAI;CACd,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -4,12 +4,12 @@ import { observe } from "@voplus/morpho-ui";
|
|
|
4
4
|
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
5
5
|
import { SendFormContext, SendFormContextData, } from "@voplus/morpho-document-core/es/data/context/SendFormContext";
|
|
6
6
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
7
|
-
import
|
|
7
|
+
import MessageTemplateProperties from "../MessageTemplateProperties";
|
|
8
8
|
import DocumentList from "../../../../components/DocumentList";
|
|
9
9
|
import DocumentTabs from "../../../../components/DocumentTabs";
|
|
10
|
-
import
|
|
10
|
+
import MessageTemplateContent from "../MessageTemplateContent";
|
|
11
11
|
import Links from "../../../../components/Links";
|
|
12
|
-
const
|
|
12
|
+
const MessageTemplateTabs = (props) => {
|
|
13
13
|
const { id } = props;
|
|
14
14
|
const [docTotals, setDocTotals] = useState(0);
|
|
15
15
|
const [activeKey, setActiveKey] = useState();
|
|
@@ -23,12 +23,12 @@ const EmailTemplateTabs = (props) => {
|
|
|
23
23
|
{
|
|
24
24
|
key: "Properties",
|
|
25
25
|
label: "Properties",
|
|
26
|
-
children: React.createElement(
|
|
26
|
+
children: React.createElement(MessageTemplateProperties, { id: id }),
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
key: "Content",
|
|
30
30
|
label: "Content Preview",
|
|
31
|
-
children: React.createElement(
|
|
31
|
+
children: React.createElement(MessageTemplateContent, { id: id }),
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
key: "Document",
|
|
@@ -51,5 +51,5 @@ const EmailTemplateTabs = (props) => {
|
|
|
51
51
|
return observe(() => (React.createElement(SendFormContext.Provider, { value: openType },
|
|
52
52
|
React.createElement(DocumentTabs, { id: id, active: "Properties", tabItems: items, onChange: (key) => setActiveKey(key) }))));
|
|
53
53
|
};
|
|
54
|
-
export default
|
|
54
|
+
export default MessageTemplateTabs;
|
|
55
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateTabs/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,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EACN,eAAe,EACf,mBAAmB,G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,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,KAAK,EAAE,KAAK,EAAE,KAAK,GAAI;SAC3E;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,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NewMessageTemplateFormProps } from "./index";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
declare const NewMessageTemplateFormDialog: {
|
|
5
|
+
(props: NewMessageTemplateFormProps): React.JSX.Element;
|
|
6
|
+
defaultProps: {
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default NewMessageTemplateFormDialog;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import NewMessageTemplateForm from "./index";
|
|
3
|
+
import { Modal } from "antd";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import "./index.less";
|
|
6
|
+
const NewMessageTemplateFormDialog = (props) => {
|
|
7
|
+
return observe(() => (React.createElement(Modal, { className: "new-message-template-form-dialog", title: "New MessageTemplate Form Dialog", open: true, closable: false, footer: false, onCancel: props.onCancel },
|
|
8
|
+
React.createElement(NewMessageTemplateForm, { ...props }))));
|
|
9
|
+
};
|
|
10
|
+
NewMessageTemplateFormDialog.defaultProps = {
|
|
11
|
+
type: "mini",
|
|
12
|
+
};
|
|
13
|
+
export default NewMessageTemplateFormDialog;
|
|
14
|
+
//# sourceMappingURL=NewMessageTemplateFormDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NewMessageTemplateFormDialog.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/NewMessageTemplateForm/NewMessageTemplateFormDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,sBAAuD,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,CAAC;AAEtB,MAAM,4BAA4B,GAAG,CAAC,KAAkC,EAAE,EAAE;IAC1E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,KAAK,IACJ,SAAS,EAAC,kCAAkC,EAC5C,KAAK,EAAC,iCAAiC,EACvC,IAAI,QACJ,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,KAAK,EACb,QAAQ,EAAE,KAAK,CAAC,QAAQ;QAExB,oBAAC,sBAAsB,OAAK,KAAK,GAAI,CAC/B,CACT,CAAC,CAAC;AACL,CAAC,CAAC;AACF,4BAA4B,CAAC,YAAY,GAAG;IAC1C,IAAI,EAAE,MAAM;CACb,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./index.less";
|
|
3
|
-
export type
|
|
3
|
+
export type NewMessageTemplateFormProps = {
|
|
4
4
|
parentId?: string;
|
|
5
5
|
type?: "full" | "mini";
|
|
6
6
|
className?: string;
|
|
@@ -9,10 +9,10 @@ export type NewEmailTemplateFormProps = {
|
|
|
9
9
|
onSave?: (params?: any) => void;
|
|
10
10
|
onCancel?: () => void;
|
|
11
11
|
};
|
|
12
|
-
declare const
|
|
13
|
-
(props:
|
|
12
|
+
declare const NewMessageTemplateForm: {
|
|
13
|
+
(props: NewMessageTemplateFormProps): React.JSX.Element;
|
|
14
14
|
defaultProps: {
|
|
15
15
|
type: string;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export default
|
|
18
|
+
export default NewMessageTemplateForm;
|
|
@@ -4,17 +4,17 @@ import { State } from "./state";
|
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
|
5
5
|
import { runInAction } from "mobx";
|
|
6
6
|
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
7
|
-
import {
|
|
7
|
+
import { useMessageTemplateStore } from "../../../../data/message-template";
|
|
8
8
|
import CodeMirror from "../CodeMirror";
|
|
9
9
|
import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
|
|
10
|
-
import
|
|
10
|
+
import MessageTemplatePropertiesView from "../MessageTemplatePropertiesView";
|
|
11
11
|
import classnames from "classnames";
|
|
12
12
|
import "./index.less";
|
|
13
|
-
const
|
|
14
|
-
const store =
|
|
13
|
+
const NewMessageTemplateForm = (props) => {
|
|
14
|
+
const store = useMessageTemplateStore();
|
|
15
15
|
const asideContext = useAsideContentContext();
|
|
16
16
|
const [state] = useState(new State());
|
|
17
|
-
const content = observe(() => (React.createElement("div", { className: classnames("new-
|
|
17
|
+
const content = observe(() => (React.createElement("div", { className: classnames("new-message-template-form", { "sub-message-template-simply-form": props.type === "mini" }, props.className) },
|
|
18
18
|
React.createElement(Form, { layout: "vertical", onValuesChange: onFormLayoutChange },
|
|
19
19
|
React.createElement(Form.Item, { name: "Subject", label: "Subject" },
|
|
20
20
|
React.createElement(Input, { onChange: (e) => (state.params.Subject = e.target.value) })),
|
|
@@ -22,11 +22,11 @@ const NewEmailTemplateForm = (props) => {
|
|
|
22
22
|
React.createElement(CodeMirror, { onChange: (code) => (state.params.Body = code) })),
|
|
23
23
|
React.createElement(Form.Item, { name: "IsLayout" },
|
|
24
24
|
React.createElement(Checkbox, { onChange: (e) => (state.params.IsLayout = e.target.checked) }, "Is Layout")),
|
|
25
|
-
props.type === "mini" && !props.onChange && (React.createElement(Row, { className: "
|
|
25
|
+
props.type === "mini" && !props.onChange && (React.createElement(Row, { className: "message-template-form-btn", justify: "end" },
|
|
26
26
|
React.createElement(Space, null,
|
|
27
27
|
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
|
28
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
|
|
29
|
+
return observe(() => (React.createElement(React.Fragment, null, props.type === "full" ? (React.createElement(AddFormView, { title: "Add MessageTemplate", loading: !!state.loading, onCancel: onCancel, onSubmit: onSubmit }, content)) : (content))));
|
|
30
30
|
function onFormLayoutChange() {
|
|
31
31
|
if (props.onChange) {
|
|
32
32
|
props.onChange(state.params);
|
|
@@ -41,7 +41,7 @@ const NewEmailTemplateForm = (props) => {
|
|
|
41
41
|
state.loading = false;
|
|
42
42
|
state.params = state.Params;
|
|
43
43
|
if (props.showView)
|
|
44
|
-
return asideContext.openAside(React.createElement(
|
|
44
|
+
return asideContext.openAside(React.createElement(MessageTemplatePropertiesView, { id: res.id }), {
|
|
45
45
|
span: 12,
|
|
46
46
|
});
|
|
47
47
|
});
|
|
@@ -54,8 +54,8 @@ const NewEmailTemplateForm = (props) => {
|
|
|
54
54
|
props.onCancel();
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
|
|
57
|
+
NewMessageTemplateForm.defaultProps = {
|
|
58
58
|
type: "full",
|
|
59
59
|
};
|
|
60
|
-
export default
|
|
60
|
+
export default NewMessageTemplateForm;
|
|
61
61
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/NewMessageTemplateForm/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,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,6BAA6B,MAAM,kCAAkC,CAAC;AAC7E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAYtB,MAAM,sBAAsB,GAAG,CAAC,KAAkC,EAAE,EAAE;IACrE,MAAM,KAAK,GAAG,uBAAuB,EAAE,CAAC;IACxC,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI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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,sBAAsB,CAAC,YAAY,GAAG;IACrC,IAAI,EAAE,MAAM;CACZ,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
2
|
|
|
3
3
|
:global {
|
|
4
|
-
.new-
|
|
5
|
-
&.sub-
|
|
4
|
+
.new-message-template-form {
|
|
5
|
+
&.sub-message-template-more-form {
|
|
6
6
|
padding: 0 20px;
|
|
7
7
|
|
|
8
8
|
.ant-form-item {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
&.sub-
|
|
13
|
+
&.sub-message-template-simply-form {
|
|
14
14
|
flex: none;
|
|
15
15
|
padding-bottom: 10px;
|
|
16
16
|
// border-top: #f2f2f2 solid 1px;
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.
|
|
23
|
+
.message-template-code-mirror {
|
|
24
24
|
height: 200px;
|
|
25
25
|
|
|
26
26
|
.cm-editor {
|
|
27
27
|
height: 100%;
|
|
28
|
-
border-radius:
|
|
28
|
+
border-radius: @border-radius;
|
|
29
29
|
border: 1px solid #e5e7eb;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.
|
|
37
|
+
.message-template-form-btn {
|
|
38
38
|
margin-top: 10px;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.new-
|
|
42
|
+
.new-message-template-form-dialog {
|
|
43
43
|
.ant-modal-footer {
|
|
44
44
|
display: none;
|
|
45
45
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/NewMessageTemplateForm/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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const
|
|
2
|
+
declare const MessageTemplateDataIconBar: {
|
|
3
3
|
(props: {
|
|
4
4
|
id: string;
|
|
5
5
|
commentVisible?: boolean;
|
|
@@ -9,4 +9,4 @@ declare const EmailTemplateDataIconBar: {
|
|
|
9
9
|
commentVisible: boolean;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
export default
|
|
12
|
+
export default MessageTemplateDataIconBar;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { CommentDataIcon, DateQuickIcon, DocumentDataIcon, DocumentPathDataIcon, UserQuickIcon, } from "../../../../controls/data-icons";
|
|
4
4
|
import DataIconBar from "../../../../controls/DataIconBar";
|
|
5
|
-
const
|
|
5
|
+
const MessageTemplateDataIconBar = (props) => {
|
|
6
6
|
const { id, commentVisible, more } = props;
|
|
7
7
|
return observe(() => (React.createElement(DataIconBar, null,
|
|
8
8
|
React.createElement(DocumentDataIcon, { id: id }),
|
|
@@ -12,8 +12,8 @@ const EmailTemplateDataIconBar = (props) => {
|
|
|
12
12
|
React.createElement(DateQuickIcon, { id: id }),
|
|
13
13
|
React.createElement(DocumentPathDataIcon, { id: id }))))));
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
MessageTemplateDataIconBar.defaultProps = {
|
|
16
16
|
commentVisible: true,
|
|
17
17
|
};
|
|
18
|
-
export default
|
|
18
|
+
export default MessageTemplateDataIconBar;
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/controls/MessageTemplateDataIconBar/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,0BAA0B,GAAG,CAAC,KAInC,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,0BAA0B,CAAC,YAAY,GAAG;IACzC,cAAc,EAAE,IAAI;CACpB,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|