@voplus/morpho-document 6.0.97 → 6.0.99

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.
Files changed (136) hide show
  1. package/es/Modules.js +2 -2
  2. package/es/Modules.js.map +1 -1
  3. package/es/components/AddDocOverlay/index.js +1 -1
  4. package/es/components/AddDocOverlay/index.js.map +1 -1
  5. package/es/components/AddDocOverlay/state.js +1 -1
  6. package/es/components/AddDocOverlay/state.js.map +1 -1
  7. package/es/components/DocumentTabs/index.d.ts +1 -1
  8. package/es/components/FilePropertiesView/index.js +1 -1
  9. package/es/components/FilePropertiesView/index.js.map +1 -1
  10. package/es/components/NewDocumentForm/state.js +2 -2
  11. package/es/components/NewDocumentForm/state.js.map +1 -1
  12. package/es/components/TagView/index.less +1 -1
  13. package/es/data/message-template/MessageTemplateStore.d.ts +11 -0
  14. package/es/data/{email-template/EmailTemplateStore.js → message-template/MessageTemplateStore.js} +8 -8
  15. package/es/data/message-template/MessageTemplateStore.js.map +1 -0
  16. package/es/data/message-template/hook.d.ts +5 -0
  17. package/es/data/{email-template → message-template}/hook.js +5 -5
  18. package/es/data/message-template/hook.js.map +1 -0
  19. package/es/data/{email-template → message-template}/index.d.ts +1 -1
  20. package/es/data/{email-template → message-template}/index.js +1 -1
  21. package/es/data/message-template/index.js.map +1 -0
  22. package/es/data/{email-template → message-template}/interfaces.d.ts +1 -1
  23. package/es/data/message-template/interfaces.js.map +1 -0
  24. package/es/data/{email-template → message-template}/metas.d.ts +2 -2
  25. package/es/data/message-template/metas.js +38 -0
  26. package/es/data/message-template/metas.js.map +1 -0
  27. package/es/data/{email-template → message-template}/types.d.ts +7 -5
  28. package/es/data/message-template/types.js.map +1 -0
  29. package/es/data/metas/PageMeta.js +1 -1
  30. package/es/data/metas/PageMeta.js.map +1 -1
  31. package/es/modules/{email-template → message-template}/components/CodeMirror/index.js +1 -1
  32. package/es/modules/message-template/components/CodeMirror/index.js.map +1 -0
  33. package/es/modules/message-template/components/CodeMirror/state.js.map +1 -0
  34. package/es/modules/{email-template/components/EmailTemplateContent → message-template/components/MessageTemplateContent}/index.d.ts +2 -2
  35. package/es/modules/message-template/components/MessageTemplateContent/index.js +19 -0
  36. package/es/modules/message-template/components/MessageTemplateContent/index.js.map +1 -0
  37. package/es/modules/{email-template/components/EmailTemplateContent → message-template/components/MessageTemplateContent}/index.less +1 -1
  38. package/es/modules/message-template/components/MessageTemplateItem/index.d.ts +5 -0
  39. package/es/modules/{email-template/components/EmailTemplateItem → message-template/components/MessageTemplateItem}/index.js +5 -5
  40. package/es/modules/message-template/components/MessageTemplateItem/index.js.map +1 -0
  41. package/es/modules/{email-template/components/EmailTemplateItem → message-template/components/MessageTemplateItem}/index.less +1 -1
  42. package/es/modules/{email-template/components/EmailTemplateList → message-template/components/MessageTemplateList}/index.d.ts +6 -6
  43. package/es/modules/{email-template/components/EmailTemplateList → message-template/components/MessageTemplateList}/index.js +18 -18
  44. package/es/modules/message-template/components/MessageTemplateList/index.js.map +1 -0
  45. package/es/modules/{email-template/components/EmailTemplateList → message-template/components/MessageTemplateList}/index.less +2 -2
  46. package/es/modules/{email-template/components/EmailTemplateProperties → message-template/components/MessageTemplateProperties}/index.d.ts +8 -8
  47. package/es/modules/{email-template/components/EmailTemplateProperties → message-template/components/MessageTemplateProperties}/index.js +18 -18
  48. package/es/modules/message-template/components/MessageTemplateProperties/index.js.map +1 -0
  49. package/es/modules/{email-template/components/EmailTemplatePropertiesView → message-template/components/MessageTemplatePropertiesView}/index.d.ts +2 -2
  50. package/es/modules/{email-template/components/EmailTemplatePropertiesView → message-template/components/MessageTemplatePropertiesView}/index.js +4 -4
  51. package/es/modules/message-template/components/MessageTemplatePropertiesView/index.js.map +1 -0
  52. package/es/modules/{email-template/components/EmailTemplatePropertiesView → message-template/components/MessageTemplatePropertiesView}/index.less +2 -2
  53. package/es/modules/{email-template/components/EmailTemplateQuickViewDialog → message-template/components/MessageTemplateQuickViewDialog}/index.d.ts +2 -2
  54. package/es/modules/{email-template/components/EmailTemplateQuickViewDialog → message-template/components/MessageTemplateQuickViewDialog}/index.js +9 -9
  55. package/es/modules/message-template/components/MessageTemplateQuickViewDialog/index.js.map +1 -0
  56. package/es/modules/{email-template/components/EmailTemplateSelect → message-template/components/MessageTemplateSelect}/index.d.ts +4 -4
  57. package/es/modules/{email-template/components/EmailTemplateSelect → message-template/components/MessageTemplateSelect}/index.js +9 -9
  58. package/es/modules/message-template/components/MessageTemplateSelect/index.js.map +1 -0
  59. package/es/modules/message-template/components/MessageTemplateTabs/index.d.ts +5 -0
  60. package/es/modules/{email-template/components/EmailTemplateTabs → message-template/components/MessageTemplateTabs}/index.js +6 -6
  61. package/es/modules/message-template/components/MessageTemplateTabs/index.js.map +1 -0
  62. package/es/modules/message-template/components/NewMessageTemplateForm/NewMessageTemplateFormDialog.d.ts +10 -0
  63. package/es/modules/message-template/components/NewMessageTemplateForm/NewMessageTemplateFormDialog.js +14 -0
  64. package/es/modules/message-template/components/NewMessageTemplateForm/NewMessageTemplateFormDialog.js.map +1 -0
  65. package/es/modules/{email-template/components/NewEmailTemplateForm → message-template/components/NewMessageTemplateForm}/index.d.ts +4 -4
  66. package/es/modules/{email-template/components/NewEmailTemplateForm → message-template/components/NewMessageTemplateForm}/index.js +10 -10
  67. package/es/modules/message-template/components/NewMessageTemplateForm/index.js.map +1 -0
  68. package/es/modules/{email-template/components/NewEmailTemplateForm → message-template/components/NewMessageTemplateForm}/index.less +7 -7
  69. package/es/modules/message-template/components/NewMessageTemplateForm/state.js.map +1 -0
  70. package/es/modules/{email-template/controls/EmailTemplateDataIconBar → message-template/controls/MessageTemplateDataIconBar}/index.d.ts +2 -2
  71. package/es/modules/{email-template/controls/EmailTemplateDataIconBar → message-template/controls/MessageTemplateDataIconBar}/index.js +3 -3
  72. package/es/modules/message-template/controls/MessageTemplateDataIconBar/index.js.map +1 -0
  73. package/es/modules/message-template/pages/MessageTemplateDefaultView/index.d.ts +6 -0
  74. package/es/modules/{email-template/pages/EmailTemplateDefaultView → message-template/pages/MessageTemplateDefaultView}/index.js +15 -15
  75. package/es/modules/message-template/pages/MessageTemplateDefaultView/index.js.map +1 -0
  76. package/es/modules/{email-template/pages/EmailTemplateDefaultView → message-template/pages/MessageTemplateDefaultView}/index.less +7 -7
  77. package/es/modules/page/components/PageItems/index.d.ts +1 -1
  78. package/es/modules/page/components/PageItems/index.js +38 -31
  79. package/es/modules/page/components/PageItems/index.js.map +1 -1
  80. package/es/modules/page/components/PageItems/index.less +85 -69
  81. package/es/modules/page/components/PlusDropDown/index.d.ts +1 -1
  82. package/es/modules/page/components/PlusDropDown/index.js +4 -4
  83. package/es/modules/page/components/PlusDropDown/index.js.map +1 -1
  84. package/es/modules/page/views/PageDefaultView/index.d.ts +1 -1
  85. package/es/modules/page/views/PageDefaultView/index.js +15 -67
  86. package/es/modules/page/views/PageDefaultView/index.js.map +1 -1
  87. package/es/modules/page/views/PageDefaultView/index.less +1 -81
  88. package/es/modules/page/views/PagePrintView/index.less +1 -1
  89. package/es/{modules/page/views → obsolete}/PageDefaultView/PageDefaultView2.js +4 -4
  90. package/es/obsolete/PageDefaultView/PageDefaultView2.js.map +1 -0
  91. package/es/obsolete/PageDefaultView/index.d.ts +12 -0
  92. package/es/obsolete/PageDefaultView/index.js +89 -0
  93. package/es/obsolete/PageDefaultView/index.js.map +1 -0
  94. package/es/obsolete/PageDefaultView/index.less +94 -0
  95. package/es/pages/Signature/Envelope/controls/EnvelopeFootbar/index.less +1 -1
  96. package/es/pages/Signature/components/SigningDropdown/index.less +1 -1
  97. package/package.json +1 -1
  98. package/es/data/email-template/EmailTemplateStore.d.ts +0 -11
  99. package/es/data/email-template/EmailTemplateStore.js.map +0 -1
  100. package/es/data/email-template/hook.d.ts +0 -5
  101. package/es/data/email-template/hook.js.map +0 -1
  102. package/es/data/email-template/index.js.map +0 -1
  103. package/es/data/email-template/interfaces.js.map +0 -1
  104. package/es/data/email-template/metas.js +0 -38
  105. package/es/data/email-template/metas.js.map +0 -1
  106. package/es/data/email-template/types.js.map +0 -1
  107. package/es/modules/email-template/components/CodeMirror/index.js.map +0 -1
  108. package/es/modules/email-template/components/CodeMirror/state.js.map +0 -1
  109. package/es/modules/email-template/components/EmailTemplateContent/index.js +0 -19
  110. package/es/modules/email-template/components/EmailTemplateContent/index.js.map +0 -1
  111. package/es/modules/email-template/components/EmailTemplateItem/index.d.ts +0 -5
  112. package/es/modules/email-template/components/EmailTemplateItem/index.js.map +0 -1
  113. package/es/modules/email-template/components/EmailTemplateList/index.js.map +0 -1
  114. package/es/modules/email-template/components/EmailTemplateProperties/index.js.map +0 -1
  115. package/es/modules/email-template/components/EmailTemplatePropertiesView/index.js.map +0 -1
  116. package/es/modules/email-template/components/EmailTemplateQuickViewDialog/index.js.map +0 -1
  117. package/es/modules/email-template/components/EmailTemplateSelect/index.js.map +0 -1
  118. package/es/modules/email-template/components/EmailTemplateTabs/index.d.ts +0 -5
  119. package/es/modules/email-template/components/EmailTemplateTabs/index.js.map +0 -1
  120. package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.d.ts +0 -10
  121. package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.js +0 -14
  122. package/es/modules/email-template/components/NewEmailTemplateForm/NewEmailTemplateFormDialog.js.map +0 -1
  123. package/es/modules/email-template/components/NewEmailTemplateForm/index.js.map +0 -1
  124. package/es/modules/email-template/components/NewEmailTemplateForm/state.js.map +0 -1
  125. package/es/modules/email-template/controls/EmailTemplateDataIconBar/index.js.map +0 -1
  126. package/es/modules/email-template/pages/EmailTemplateDefaultView/index.d.ts +0 -6
  127. package/es/modules/email-template/pages/EmailTemplateDefaultView/index.js.map +0 -1
  128. package/es/modules/page/views/PageDefaultView/PageDefaultView2.js.map +0 -1
  129. /package/es/data/{email-template → message-template}/interfaces.js +0 -0
  130. /package/es/data/{email-template → message-template}/types.js +0 -0
  131. /package/es/modules/{email-template → message-template}/components/CodeMirror/index.d.ts +0 -0
  132. /package/es/modules/{email-template → message-template}/components/CodeMirror/state.d.ts +0 -0
  133. /package/es/modules/{email-template → message-template}/components/CodeMirror/state.js +0 -0
  134. /package/es/modules/{email-template/components/NewEmailTemplateForm → message-template/components/NewMessageTemplateForm}/state.d.ts +0 -0
  135. /package/es/modules/{email-template/components/NewEmailTemplateForm → message-template/components/NewMessageTemplateForm}/state.js +0 -0
  136. /package/es/{modules/page/views → obsolete}/PageDefaultView/PageDefaultView2.d.ts +0 -0
@@ -1,8 +1,8 @@
1
1
  @import "~@voplus/morpho-theme/styles/index.less";
2
2
 
3
3
  :global {
4
- .new-email-template-form {
5
- &.sub-email-template-more-form {
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-email-template-simply-form {
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
- .email-template-code-mirror {
23
+ .message-template-code-mirror {
24
24
  height: 200px;
25
25
 
26
26
  .cm-editor {
27
27
  height: 100%;
28
- border-radius: 8px;
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
- .email-template-form-btn {
37
+ .message-template-form-btn {
38
38
  margin-top: 10px;
39
39
  }
40
40
  }
41
41
 
42
- .new-email-template-form-dialog {
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 EmailTemplateDataIconBar: {
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 EmailTemplateDataIconBar;
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 EmailTemplateDataIconBar = (props) => {
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
- EmailTemplateDataIconBar.defaultProps = {
15
+ MessageTemplateDataIconBar.defaultProps = {
16
16
  commentVisible: true,
17
17
  };
18
- export default EmailTemplateDataIconBar;
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"}
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ /** The MessageTemplate Page component with router parameters support. */
3
+ declare const MessageTemplateDefaultView: ({ id }: {
4
+ id: string;
5
+ }) => React.JSX.Element;
6
+ export default MessageTemplateDefaultView;
@@ -2,43 +2,43 @@ import React, { useState } from "react";
2
2
  import { Space, Button } from "antd";
3
3
  import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
4
4
  import { observe, useAsideContentContext } from "@voplus/morpho-ui";
5
- import { useEmailTemplate, useEmailTemplateStore } from "../../../../data/email-template";
5
+ import { useMessageTemplate, useMessageTemplateStore } from "../../../../data/message-template";
6
6
  import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
7
- import EmailTemplateContent, { merge } from "../../components/EmailTemplateContent";
7
+ import MessageTemplateContent, { merge } from "../../components/MessageTemplateContent";
8
8
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
9
9
  import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
10
- import EmailTemplateProperties from "../../components/EmailTemplateProperties";
10
+ import MessageTemplateProperties from "../../components/MessageTemplateProperties";
11
11
  import DocumentTabs from "../../../../components/DocumentTabs";
12
12
  import CodeMirror from "../../components/CodeMirror";
13
13
  import styles from "./index.less";
14
- /** The EmailTemplate Page component with router parameters support. */
15
- const EmailTemplateDefaultView = ({ id }) => {
14
+ /** The MessageTemplate Page component with router parameters support. */
15
+ const MessageTemplateDefaultView = ({ id }) => {
16
16
  const context = new TabItemStore({ url: "" });
17
17
  const frame = useFrame();
18
- const emailTemplate = useEmailTemplate(id, { reload: true, includes: "layout,tags" });
19
- const store = useEmailTemplateStore();
18
+ const messageTemplate = useMessageTemplate(id, { reload: true, includes: "layout,tags" });
19
+ const store = useMessageTemplateStore();
20
20
  const [edit, setEdit] = useState(false);
21
21
  const [codeContent, setCodeContent] = useState();
22
22
  const [asideContext] = useState(frame ? useAsideContentContext() : AsideContent.createContext());
23
23
  return observe(() => {
24
24
  var _a;
25
25
  return (React.createElement(TabItemContext.Provider, { value: context },
26
- React.createElement(MainContent, { className: styles["email-template-default-view"], asideable: !frame },
26
+ React.createElement(MainContent, { className: styles["message-template-default-view"], asideable: !frame },
27
27
  React.createElement(MainContent.Nav, { collapsible: true },
28
- React.createElement(EmailTemplateProperties, { id: id, headerVisible: true })),
29
- React.createElement("div", { className: "email-template-context" },
30
- React.createElement("div", { className: "email-template-body" },
31
- React.createElement("div", { className: "email-template-body-header" }, edit ? (React.createElement(Space, null,
28
+ React.createElement(MessageTemplateProperties, { id: id, headerVisible: true })),
29
+ React.createElement("div", { className: "message-template-context" },
30
+ React.createElement("div", { className: "message-template-body" },
31
+ React.createElement("div", { className: "message-template-body-header" }, edit ? (React.createElement(Space, null,
32
32
  React.createElement(Button, { onClick: () => setEdit(false) }, "Cancel"),
33
33
  React.createElement(Button, { type: "primary", onClick: async () => {
34
34
  await store
35
35
  .edit(id, { data: { Body: codeContent }, error: "message" })
36
36
  .then(() => setEdit(false));
37
37
  } }, "Save"))) : (React.createElement(Button, { type: "primary", onClick: () => setEdit(true) }, "Edit"))),
38
- edit ? (React.createElement(CodeMirror, { code: merge(emailTemplate.isLayout, emailTemplate.body, (_a = emailTemplate === null || emailTemplate === void 0 ? void 0 : emailTemplate.layout) === null || _a === void 0 ? void 0 : _a.body), onChange: (code) => setCodeContent(code) })) : (React.createElement(EmailTemplateContent, { id: id }))),
39
- frame ? (React.createElement(DocumentTabs, { id: id, active: "Document" })) : (React.createElement(AsideContent, { className: "email-template-aside-content", context: asideContext },
38
+ edit ? (React.createElement(CodeMirror, { code: merge(messageTemplate.isLayout, messageTemplate.body, (_a = messageTemplate === null || messageTemplate === void 0 ? void 0 : messageTemplate.layout) === null || _a === void 0 ? void 0 : _a.body), onChange: (code) => setCodeContent(code) })) : (React.createElement(MessageTemplateContent, { id: id }))),
39
+ frame ? (React.createElement(DocumentTabs, { id: id, active: "Document" })) : (React.createElement(AsideContent, { className: "message-template-aside-content", context: asideContext },
40
40
  React.createElement(DocumentTabs, { id: id, active: "Document" })))))));
41
41
  });
42
42
  };
43
- export default EmailTemplateDefaultView;
43
+ export default MessageTemplateDefaultView;
44
44
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/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eAAe,CAAC,QAAQ,EACxB,eAAe,CAAC,IAAI,EACpB,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,MAAM,0CAAE,IAAI,CAC7B,EACD,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,GACvC,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,CAClC,CACI;oBACL,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,gCAAgC,EAAC,OAAO,EAAE,YAAmB;wBACpF,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAC,UAAU,GAAG,CAC5B,CACf,CACI,CACO,CACW,CAC1B,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
@@ -1,24 +1,24 @@
1
- .email-template-default-view {
1
+ .message-template-default-view {
2
2
  :global {
3
3
  .main-content-nav {
4
4
  width: 370px;
5
5
  padding: 0;
6
6
  z-index: 2;
7
7
  }
8
- .email-template-context {
8
+ .message-template-context {
9
9
  display: flex;
10
10
  padding: 0;
11
11
  background: #ffffff;
12
- > .email-template-aside-content,
12
+ > .message-template-aside-content,
13
13
  > .ant-tabs {
14
14
  flex: 1;
15
15
  }
16
- .email-template-body {
16
+ .message-template-body {
17
17
  width: 50%;
18
18
  box-sizing: border-box;
19
19
  border-right: 1px solid #e6e6e6;
20
20
 
21
- .email-template-body-header {
21
+ .message-template-body-header {
22
22
  height: 49px;
23
23
  padding: 0 20px;
24
24
  box-sizing: border-box;
@@ -29,11 +29,11 @@
29
29
  justify-content: end;
30
30
  }
31
31
 
32
- .email-template-iframe-content {
32
+ .message-template-iframe-content {
33
33
  height: calc(100% - 50px);
34
34
  }
35
35
 
36
- .email-template-code-mirror {
36
+ .message-template-code-mirror {
37
37
  height: calc(100% - 50px);
38
38
 
39
39
  .cm-editor {
@@ -1,5 +1,5 @@
1
- import "./index.less";
2
1
  import React from "react";
2
+ import "./index.less";
3
3
  declare const PageItems: (props: {
4
4
  id: string;
5
5
  readonly?: boolean;
@@ -1,21 +1,20 @@
1
- import "./index.less";
2
- import { Card, useRenderOnChange } from "@voplus/morpho-ui";
3
- import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
4
1
  import React, { useState } from "react";
2
+ import { Menu } from "antd";
3
+ import { State } from "./state";
4
+ import { Card, useRenderOnChange, observe } from "@voplus/morpho-ui";
5
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
5
6
  import { useAutoUpdateListData, useDocumentListEffect, useDocumentStore, useMetaStore, } from "@voplus/morpho-document-core";
6
- import DocumentSelectDialog from "../../../../components/DocumentSelectDialog";
7
7
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
8
- import { Menu } from "antd";
8
+ import DocumentSelectDialog from "../../../../components/DocumentSelectDialog";
9
9
  import NewDocumentForm from "../../../../components/NewDocumentForm";
10
- import PageItem from "../PageItem";
11
10
  import PlusDropDown from "../PlusDropDown";
12
- import { State } from "./state";
11
+ import PageItem from "../PageItem";
13
12
  import classnames from "classnames";
14
- import { observe } from "@voplus/morpho-ui";
13
+ import "./index.less";
15
14
  const PageItems = (props) => {
16
15
  const { id, readonly } = props;
17
- const meta = useMetaStore();
18
16
  const [state] = useState(new State());
17
+ const meta = useMetaStore();
19
18
  const documentStore = useDocumentStore();
20
19
  const data = useCreateListDataState({
21
20
  filterDefaults: {
@@ -30,28 +29,36 @@ const PageItems = (props) => {
30
29
  useAutoUpdateListData(data, (d) => (d.type === "Text" || d.type === "Graph" || d.type === "Document" || d.type === "Shortcut") &&
31
30
  d.parentId === id);
32
31
  return observe(() => (React.createElement(ListDataContext.Provider, { value: data },
33
- React.createElement(ListView, { className: "page-items-view", headerProps: {
34
- header: React.createElement("span", null),
35
- sortable: false,
36
- addAble: false,
37
- }, renderItem: ({ item, index, connectDragSource }) => (React.createElement(React.Fragment, null,
38
- React.createElement(Card, { className: classnames("page-item-card", { "page-item-card_zero": index === 0 }) },
39
- React.createElement(PageItem, { id: item.id, connectDragSource: connectDragSource })))), moveAfter: moveAfter, dragDropContainerClassName: "page-dd-item-container", infiniteScrollViewProps: {
40
- className: classnames("page-scroll-view", { dataEmpty: !data.data.length }),
41
- customScroll: props.print ? false : true,
42
- } }),
43
- state.addAble && (React.createElement(NewDocumentForm, { parentId: id, type: state.type, placeholder: `Add a ${state.type} to this page`, className: classnames("new-page-item-form", { show: state.addAble }), onCancel: () => (state.addAble = false) })),
44
- React.createElement(PlusDropDown, { className: classnames("plus-icon-position", { hide: state.addAble || !!readonly }), menu: React.createElement(Menu, { onClick: state.selectType, items: [
45
- { key: "Text", label: "Text", icon: meta.getIcon({ type: "Text" }) },
46
- { key: "Graph", label: "Graph", icon: meta.getIcon({ type: "Graph" }) },
47
- { key: "Document", label: "Folder", icon: meta.getIcon({ type: "Folder" }) },
48
- {
49
- key: "Shortcut",
50
- label: "Link Existing Document",
51
- icon: meta.getIcon({ type: "Folder" }),
52
- },
53
- ] }) }),
54
- state.addLink && React.createElement(DocumentSelectDialog, { onSelect: onCreateShortcut }))));
32
+ React.createElement("div", { className: "page-items" },
33
+ React.createElement(ListView, { className: "page-items-view", headerProps: {
34
+ header: React.createElement("span", null),
35
+ sortable: false,
36
+ addAble: false,
37
+ }, renderItem: ({ item, index, connectDragSource }) => (React.createElement(Card, { className: classnames("page-item-card", { "page-item-card_zero": index === 0 }) },
38
+ React.createElement(PageItem, { id: item.id, connectDragSource: connectDragSource }))), moveAfter: moveAfter, dragDropContainerClassName: "page-dd-item-container", infiniteScrollViewProps: {
39
+ className: classnames("page-scroll-view", { dataEmpty: !data.data.length }),
40
+ customScroll: props.print ? false : true,
41
+ } }),
42
+ state.addAble && (React.createElement(NewDocumentForm, { parentId: id, type: state.type, placeholder: `Add a ${state.type} to this page`, className: classnames("new-page-item-form", { show: state.addAble }), onCancel: () => (state.addAble = false) })),
43
+ React.createElement(PlusDropDown, { className: classnames("plus-icon-position", { hide: state.addAble || !!readonly }), menu: React.createElement(Menu, { onClick: state.selectType, items: [
44
+ { key: "Text", label: "Text", icon: meta.getIcon({ type: "Text" }) },
45
+ {
46
+ key: "Graph",
47
+ label: "Graph",
48
+ icon: meta.getIcon({ type: "Graph" }),
49
+ },
50
+ {
51
+ key: "Document",
52
+ label: "Folder",
53
+ icon: meta.getIcon({ type: "Folder" }),
54
+ },
55
+ {
56
+ key: "Shortcut",
57
+ label: "Link Existing Document",
58
+ icon: meta.getIcon({ type: "Folder" }),
59
+ },
60
+ ] }) }),
61
+ state.addLink && React.createElement(DocumentSelectDialog, { onSelect: onCreateShortcut })))));
55
62
  /** document sort */
56
63
  async function moveAfter(id, afterId, list) {
57
64
  await documentStore.moveAfter(id, afterId);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/page/components/PageItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAEN,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,GACZ,MAAM,8BAA8B,CAAC;AAEtC,OAAO,oBAAoB,MAAM,6CAA6C,CAAC;AAE/E,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,eAAe,MAAM,wCAAwC,CAAC;AACrE,OAAO,QAAQ,MAAM,aAAa,CAAC;AACn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,eAAe,SAAS,CAAC"}
@@ -1,89 +1,105 @@
1
1
  @import "~@voplus/morpho-theme/styles/index.less";
2
2
 
3
3
  :global {
4
- .page-items-view {
5
- background: unset;
6
- .list-view-header {
7
- display: none;
8
- }
4
+ .page-items {
5
+ height: 100%;
6
+ display: flex;
7
+ flex-direction: column;
9
8
 
10
- // set height
11
- .page-scroll-view {
12
- height: 100%;
13
- &.dataEmpty {
14
- > div {
15
- height: auto;
9
+ .page-items-view {
10
+ flex: 1;
11
+ background: unset;
12
+
13
+ .list-view-header {
14
+ display: none;
15
+ }
16
+
17
+ // set height
18
+ .page-scroll-view {
19
+ height: 100%;
20
+
21
+ &.dataEmpty {
22
+ > div {
23
+ height: auto;
24
+ }
25
+
26
+ .ant-empty {
27
+ height: 100%;
28
+ margin: 0 auto;
29
+ padding: 50px 0;
30
+ }
16
31
  }
17
- .ant-empty {
32
+
33
+ > div {
18
34
  height: 100%;
19
- margin: 0 auto;
20
- padding: 50px 0;
35
+ background-color: @background-color-base;
36
+ }
37
+
38
+ .page-dd-item-container {
39
+ background-color: @background-color-base;
21
40
  }
22
41
  }
23
- > div {
24
- height: 100%;
25
- background-color: @background-color-base;
26
- }
27
- .page-dd-item-container {
42
+
43
+ // end ugly code to set items height
44
+
45
+ .page-item-card {
46
+ max-width: 70rem;
47
+ margin-left: auto;
48
+ margin-right: auto;
49
+ padding: 0 1rem 0 1rem;
28
50
  background-color: @background-color-base;
51
+
52
+ &.page-item-card_zero {
53
+ padding-top: 1rem;
54
+ }
55
+
56
+ .page-item-header {
57
+ padding: 10px 0;
58
+ margin: 0 20px;
59
+ border-bottom: 1px solid #eee;
60
+ }
29
61
  }
30
62
  }
31
63
 
32
- // end ugly code to set items height
64
+ .new-page-item-form {
65
+ width: 100%;
66
+ margin: 0;
67
+ height: auto;
68
+ background-color: #fff;
69
+ border-top: 0 @border-style-base @border-color-split;
70
+ transition: height 0.3s, opacity 0.2s ease-out, border-color 0.1s;
71
+
72
+ &.show {
73
+ border-top-width: @border-width-base;
33
74
 
34
- .page-item-card {
35
- max-width: 70rem;
36
- margin-left: auto;
37
- margin-right: auto;
38
- padding: 0 1rem 0 1rem;
39
- background-color: @background-color-base;
40
- &.page-item-card_zero {
41
- padding-top: 1rem;
75
+ .ant-input {
76
+ padding: 4px 0;
77
+ border: none;
78
+ box-shadow: none;
79
+ }
42
80
  }
43
- .page-item-header {
44
- padding: 10px 0;
45
- margin: 0 20px;
46
- border-bottom: 1px solid #eee;
81
+
82
+ .detailed {
83
+ display: none;
47
84
  }
48
85
  }
49
- }
50
- .new-page-item-form {
51
- width: 100%;
52
- height: 0;
53
- opacity: 0;
54
- margin: 0;
55
- background-color: #fff;
56
- border-top: 0 @border-style-base @border-color-split;
57
- transition: height 0.3s, opacity 0.2s ease-out, border-color 0.1s;
58
- &.show {
59
- opacity: 1;
60
- height: auto;
61
- border-top-width: @border-width-base;
62
- .ant-input {
63
- padding: 4px 0;
64
- border: none;
65
- box-shadow: none;
86
+
87
+ .plus-icon.plus-icon-position {
88
+ position: absolute;
89
+ bottom: 20px;
90
+ right: 20px;
91
+ width: 26px;
92
+ height: 26px;
93
+ line-height: 26px;
94
+ font-size: 18px;
95
+ border-radius: 2px;
96
+ box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
97
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05);
98
+ transition: width 0.3s, opacity 0.2s ease-out, color 0.3s;
99
+
100
+ &.hide {
101
+ display: none;
66
102
  }
67
103
  }
68
- .detailed {
69
- display: none;
70
- }
71
- }
72
- .plus-icon.plus-icon-position {
73
- position: absolute;
74
- bottom: 20px;
75
- right: 20px;
76
- width: 26px;
77
- height: 26px;
78
- line-height: 26px;
79
- font-size: 18px;
80
- border-radius: 2px;
81
- box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
82
- 0 9px 28px 8px rgba(0, 0, 0, 0.05);
83
- transition: width 0.3s, opacity 0.2s ease-out, color 0.3s;
84
- &.hide {
85
- width: 0;
86
- opacity: 0;
87
- }
88
104
  }
89
105
  }
@@ -1,5 +1,5 @@
1
- import "./index.less";
2
1
  import React from "react";
2
+ import "./index.less";
3
3
  declare const PlusDropDown: (props: {
4
4
  className?: string;
5
5
  menu?: JSX.Element;
@@ -1,15 +1,15 @@
1
- import "./index.less";
1
+ import React from "react";
2
2
  import { Dropdown } from "antd";
3
3
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
4
- import React from "react";
5
- import classnames from "classnames";
6
4
  import { faPlus } from "@fortawesome/pro-light-svg-icons";
7
5
  import { observe } from "@voplus/morpho-ui";
6
+ import classnames from "classnames";
7
+ import "./index.less";
8
8
  const PlusDropDown = (props) => {
9
9
  const { className, menu } = props;
10
10
  const PlusIcon = (React.createElement("span", { className: classnames("plus-icon", className) },
11
11
  React.createElement(FAIcon, { icon: faPlus })));
12
- return observe(() => menu ? (React.createElement(Dropdown, { dropdownRender: () => menu, placement: "top" }, PlusIcon)) : (PlusIcon));
12
+ return observe(() => menu ? React.createElement(Dropdown, { dropdownRender: () => menu }, PlusIcon) : PlusIcon);
13
13
  };
14
14
  export default PlusDropDown;
15
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/page/components/PlusDropDown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,YAAY,GAAG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C,oBAAC,QAAQ,IAAC,cAAc,EAAE,GAAG,EAAE,CAAC,IAAI,IAAG,QAAQ,CAAY,CAAC,CAAC,CAAC,QAAQ,CAC7E,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,5 +1,5 @@
1
- import "./index.less";
2
1
  import React from "react";
2
+ import "./index.less";
3
3
  /** The Page Page component with router parameters support. */
4
4
  declare const PageDefaultView: {
5
5
  ({ id }: {