@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,86 +1,34 @@
1
- import "./index.less";
2
- import { AsideContent, useAsideContentContext } from "@voplus/morpho-ui";
3
- import { Button, Skeleton, Tooltip } from "antd";
1
+ import React, { useEffect, useState } from "react";
2
+ import { Skeleton } from "antd";
4
3
  import { PageContext, PageContextState, usePage } from "../../data";
5
- import React, { useEffect, useMemo, useState } from "react";
6
- import { Reload, Sidebar, Versions } from "../../../../controls/ToolBar/buttons";
7
- import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
8
- import { faChevronDown, faChevronUp } from "@fortawesome/pro-light-svg-icons";
9
- import { useLayout, useTabItem } from "@voplus/morpho-data";
10
- import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
11
- import DescriptionEditor from "../../../../controls/DescriptionEditor";
12
- import DocumentHeader from "../../../../components/DocumentHeader";
13
- import DocumentTabs from "../../../../components/DocumentTabs";
4
+ import { faEllipsisVertical } from "@fortawesome/pro-solid-svg-icons";
14
5
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
15
- import Links from "../../../../components/Links";
16
- import PageItems from "../../components/PageItems";
17
- import ToolBar from "../../../../controls/ToolBar/ToolBar2";
6
+ import { useTabItem } from "@voplus/morpho-data";
18
7
  import { observe } from "@voplus/morpho-ui";
19
8
  import { runInAction } from "mobx";
20
9
  import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
10
+ import DocumentTabs from "../../../../components/DocumentTabs";
11
+ import ToolBar from "../../../../controls/ToolBar/ToolBar2";
12
+ import PageItems from "../../components/PageItems";
13
+ import "./index.less";
21
14
  /** The Page Page component with router parameters support. */
22
15
  const PageDefaultView = ({ id }) => {
23
- var _a;
24
16
  const frame = useFrame();
25
- const layout = useLayout();
26
- const query = new URLSearchParams(layout.history.location.search);
27
- const expand = (_a = query.get("expand")) !== null && _a !== void 0 ? _a : undefined;
28
- const [asideContext] = useState(frame ? useAsideContentContext() : AsideContent.createContext());
29
- const view = useMemo(() => new ViewContextData("PropertiesView"), []);
17
+ frame.header = "PathHeader";
18
+ frame.asideSpan = 12;
30
19
  const [context] = useState(new PageContextState());
31
- const [activeKey, setActiveKey] = useState("Activities");
32
20
  const page = usePage(id, { reload: true, includes: "tags,versions" });
33
21
  const tab = useTabItem();
34
22
  useEffect(() => {
35
23
  runInAction(() => (tab.title = page.name));
36
24
  }, [page === null || page === void 0 ? void 0 : page.name]);
37
- useEffect(() => {
38
- if (expand)
39
- asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(AsideElement, { span: 12 });
40
- }, []);
41
- const AsideElement = observe(() => (React.createElement("div", { className: "page-default-view_aside" },
42
- React.createElement(DocumentTabs, { id: id, active: "Activities", tabItems: [
43
- {
44
- key: "Activities",
45
- label: "Activities",
46
- children: (React.createElement(React.Fragment, null,
47
- " ",
48
- activeKey === "Activities" ? React.createElement(ActivityLog, { id: id, title: " " }) : null,
49
- " ")),
50
- },
51
- {
52
- key: "Links",
53
- label: "Links",
54
- children: React.createElement(Links, { id: id, isTitle: false }),
55
- },
56
- ], onChange: (key) => setActiveKey(key) }))));
57
- const PageContent = observe(() => (React.createElement(PageContext.Provider, { value: context },
25
+ return observe(() => (React.createElement(PageContext.Provider, { value: context },
58
26
  React.createElement("div", { className: "page-default-view" },
59
27
  React.createElement(Skeleton, { active: true, loading: !page.loaded },
60
- React.createElement("header", null,
61
- React.createElement(DocumentHeader, { id: id, size: "h2", tools: React.createElement(React.Fragment, null,
62
- React.createElement(ToolBar, { id: id },
63
- React.createElement(Tooltip, { title: context.collapsed ? "Expand All" : "Collapse All" },
64
- React.createElement(Button, { type: "link", onClick: () => {
65
- context.collapse(!context.collapsed);
66
- } },
67
- React.createElement(FAIcon, { icon: context.collapsed ? faChevronDown : faChevronUp }))),
68
- React.createElement(Reload, { action: onReLoad }),
69
- React.createElement(Sidebar, { action: () => (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
70
- ? asideContext.closeAside()
71
- : asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(AsideElement, { span: 12 }) }),
72
- React.createElement(Versions, null))), clickNameEffect: "edit", autoSaveName: true, descriptionVisible: false }),
73
- React.createElement(DescriptionEditor, { id: id, description: page.description, readonly: page.readonly, padding: "0 0 0.75rem 0", collapseAll: true })),
74
- React.createElement(Skeleton, { active: true, loading: !context.reload },
75
- React.createElement(PageItems, { id: id, readonly: page.readonly })))))));
76
- return observe(() => (React.createElement(ViewContext.Provider, { value: view }, frame ? (PageContent) : (React.createElement(AsideContent, { context: asideContext }, PageContent)))));
77
- /** reload data */
78
- function onReLoad() {
79
- context.reload = false;
80
- setTimeout(() => {
81
- context.reload = true;
82
- }, 100);
83
- }
28
+ React.createElement(DocumentTabs, { id: id, properties: true, details:
29
+ /* pageItem List */
30
+ React.createElement(Skeleton, { active: true, loading: !context.reload },
31
+ React.createElement(PageItems, { id: id, readonly: page.readonly })), tabBarExtraContent: React.createElement(ToolBar, { id: id, moreProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } }) }))))));
84
32
  };
85
33
  PageDefaultView.defaultProps = {
86
34
  expand: false,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/page/views/PageDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,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I,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;IAEtE,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IACzB,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5C,CAAC,EAAE,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CAAC,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QACnC,6BAAK,SAAS,EAAC,mBAAmB;YACjC,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;gBACrC,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,UAAU,QACV,OAAO;oBACN,mBAAmB;oBACnB,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,OAAO,CAAC,MAAM;wBACxC,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI,CACpC,EAEZ,kBAAkB,EACjB,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI,EAAE,GAAI,GAE9E,CACQ,CACN,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,CAAC,YAAY,GAAG;IAC9B,MAAM,EAAE,KAAK;CACb,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -2,91 +2,11 @@
2
2
 
3
3
  :global {
4
4
  .page-default-view {
5
- position: relative;
6
- display: flex;
7
5
  height: 100%;
8
- flex-direction: column;
9
- overflow: hidden;
10
-
11
- > header {
12
- z-index: 1;
13
- box-shadow: 2px 2px 5px #e8e8e8;
14
- background-color: @component-background;
15
- }
16
-
17
- .document-header-default {
18
- background-color: transparent;
19
- }
20
-
21
- .page-description {
22
- padding: 0 20px 10px 20px;
23
- }
6
+ position: relative;
24
7
 
25
8
  .list-view-header {
26
9
  display: none;
27
10
  }
28
-
29
- .new-page-item-form {
30
- width: 100%;
31
- height: 0;
32
- opacity: 0;
33
- margin: 0;
34
- background-color: #fff;
35
- border-top: 0 @border-style-base @border-color-split;
36
- transition: height 0.3s, opacity 0.2s ease-out, border-color 0.1s;
37
-
38
- &.show {
39
- opacity: 1;
40
- height: auto;
41
- border-top-width: @border-width-base;
42
- }
43
- }
44
-
45
- .plus-icon-position {
46
- position: absolute;
47
- bottom: 20px;
48
- right: 20px;
49
- width: 26px;
50
- height: 26px;
51
- line-height: 26px;
52
- font-size: 18px;
53
- border-radius: 2px;
54
- box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
55
- 0 9px 28px 8px rgba(0, 0, 0, 0.05);
56
- transition: width 0.3s, opacity 0.2s ease-out, color 0.3s;
57
-
58
- &.hide {
59
- width: 0;
60
- opacity: 0;
61
- }
62
- }
63
- }
64
-
65
- .page-default-view_aside {
66
- height: 100%;
67
-
68
- .ant-tabs {
69
- display: flex;
70
- flex-direction: column;
71
- height: 100%;
72
-
73
- .ant-tabs-nav {
74
- margin: 0;
75
- }
76
-
77
- .ant-tabs-content {
78
- height: 100%;
79
- padding-bottom: 0px !important;
80
-
81
- .ant-tabs-tabpane {
82
- position: relative;
83
- height: 100%;
84
- }
85
- }
86
-
87
- .ant-tabs-bar {
88
- margin: 0 20px;
89
- }
90
- }
91
11
  }
92
12
  }
@@ -36,7 +36,7 @@
36
36
  }
37
37
  }
38
38
 
39
- .page-items-view {
39
+ .page-items {
40
40
  height: calc(100% - 84px);
41
41
  }
42
42
 
@@ -1,13 +1,13 @@
1
1
  import "./index.less";
2
2
  import { Skeleton } from "antd";
3
- import { PageContext, PageContextState, usePage } from "../../data";
3
+ import { PageContext, PageContextState, usePage } from "../../modules/page/data";
4
4
  import React, { useEffect, useState } from "react";
5
5
  import { useTabItem } from "@voplus/morpho-data";
6
- import DocumentTabs from "../../../../components/DocumentTabs";
7
- import PageItems from "../../components/PageItems";
6
+ import DocumentTabs from "../../components/DocumentTabs";
7
+ import PageItems from "../../modules/page/components/PageItems";
8
8
  import { observe } from "@voplus/morpho-ui";
9
9
  import { runInAction } from "mobx";
10
- import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
10
+ import { useFrame } from "../../components/ViewFrame/ViewFrameContext";
11
11
  /** The Page Page component with router parameters support. */
12
12
  const PageDefaultView = ({ id }) => {
13
13
  const frame = useFrame();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageDefaultView2.js","sourceRoot":"","sources":["../../../src/obsolete/PageDefaultView/PageDefaultView2.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,SAAS,MAAM,yCAAyC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAEvE,8DAA8D;AAC9D,MAAM,eAAe,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAClD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,KAAK,CAAC,MAAM,GAAG,YAAY,CAAC;IAC5B,KAAK,CAAC,SAAS,GAAG,EAAE,CAAC;IAErB,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,IAAI,gBAAgB,EAAE,CAAC,CAAC;IAEnD,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;IAEtE,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IACzB,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5C,CAAC,EAAE,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,CAAC,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QACnC,6BAAK,SAAS,EAAC,mBAAmB;YACjC,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;gBACrC,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,UAAU,QACV,OAAO;oBACN,mBAAmB;oBACnB,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,OAAO,CAAC,MAAM;wBACxC,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI,CACpC,GAEX,CACQ,CACN,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,CAAC,YAAY,GAAG;IAC9B,MAAM,EAAE,KAAK;CACb,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,12 @@
1
+ import "./index.less";
2
+ import React from "react";
3
+ /** The Page Page component with router parameters support. */
4
+ declare const PageDefaultView: {
5
+ ({ id }: {
6
+ id: string;
7
+ }): React.JSX.Element;
8
+ defaultProps: {
9
+ expand: boolean;
10
+ };
11
+ };
12
+ export default PageDefaultView;
@@ -0,0 +1,89 @@
1
+ import "./index.less";
2
+ import { AsideContent, useAsideContentContext } from "@voplus/morpho-ui";
3
+ import { Button, Skeleton, Tooltip } from "antd";
4
+ import { PageContext, PageContextState, usePage } from "../../modules/page/data";
5
+ import React, { useEffect, useMemo, useState } from "react";
6
+ import { Reload, Sidebar, Versions } from "../../controls/ToolBar/buttons";
7
+ import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
8
+ import { faChevronDown, faChevronUp } from "@fortawesome/pro-light-svg-icons";
9
+ import { useLayout, useTabItem } from "@voplus/morpho-data";
10
+ import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
11
+ import DescriptionEditor from "../../controls/DescriptionEditor";
12
+ import DocumentHeader from "../../components/DocumentHeader";
13
+ import DocumentTabs from "../../components/DocumentTabs";
14
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
15
+ import Links from "../../components/Links";
16
+ import PageItems from "../../modules/page/components/PageItems";
17
+ import ToolBar from "../../controls/ToolBar/ToolBar2";
18
+ import { observe } from "@voplus/morpho-ui";
19
+ import { runInAction } from "mobx";
20
+ import { useFrame } from "../../components/ViewFrame/ViewFrameContext";
21
+ /** The Page Page component with router parameters support. */
22
+ const PageDefaultView = ({ id }) => {
23
+ var _a;
24
+ const frame = useFrame();
25
+ const layout = useLayout();
26
+ const query = new URLSearchParams(layout.history.location.search);
27
+ const expand = (_a = query.get("expand")) !== null && _a !== void 0 ? _a : undefined;
28
+ const [asideContext] = useState(frame ? useAsideContentContext() : AsideContent.createContext());
29
+ const view = useMemo(() => new ViewContextData("PropertiesView"), []);
30
+ const [context] = useState(new PageContextState());
31
+ const [activeKey, setActiveKey] = useState("Activities");
32
+ const page = usePage(id, { reload: true, includes: "tags,versions" });
33
+ const tab = useTabItem();
34
+ useEffect(() => {
35
+ runInAction(() => (tab.title = page.name));
36
+ }, [page === null || page === void 0 ? void 0 : page.name]);
37
+ useEffect(() => {
38
+ if (expand)
39
+ asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(AsideElement, { span: 12 });
40
+ }, []);
41
+ const AsideElement = observe(() => (React.createElement("div", { className: "page-default-view_aside" },
42
+ React.createElement(DocumentTabs, { id: id, active: "Activities", tabItems: [
43
+ {
44
+ key: "Activities",
45
+ label: "Activities",
46
+ children: (React.createElement(React.Fragment, null,
47
+ " ",
48
+ activeKey === "Activities" ? React.createElement(ActivityLog, { id: id, title: " " }) : null,
49
+ " ")),
50
+ },
51
+ {
52
+ key: "Links",
53
+ label: "Links",
54
+ children: React.createElement(Links, { id: id, isTitle: false }),
55
+ },
56
+ ], onChange: (key) => setActiveKey(key) }))));
57
+ const PageContent = observe(() => (React.createElement(PageContext.Provider, { value: context },
58
+ React.createElement("div", { className: "page-default-view" },
59
+ React.createElement(Skeleton, { active: true, loading: !page.loaded },
60
+ React.createElement("header", null,
61
+ React.createElement(DocumentHeader, { id: id, size: "h2", tools: React.createElement(React.Fragment, null,
62
+ React.createElement(ToolBar, { id: id },
63
+ React.createElement(Tooltip, { title: context.collapsed ? "Expand All" : "Collapse All" },
64
+ React.createElement(Button, { type: "link", onClick: () => {
65
+ context.collapse(!context.collapsed);
66
+ } },
67
+ React.createElement(FAIcon, { icon: context.collapsed ? faChevronDown : faChevronUp }))),
68
+ React.createElement(Reload, { action: onReLoad }),
69
+ React.createElement(Sidebar, { action: () => (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
70
+ ? asideContext.closeAside()
71
+ : asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(AsideElement, { span: 12 }) }),
72
+ React.createElement(Versions, null))), clickNameEffect: "edit", autoSaveName: true, descriptionVisible: false }),
73
+ React.createElement(DescriptionEditor, { id: id, description: page.description, readonly: page.readonly, padding: "0 0 0.75rem 0", collapseAll: true })),
74
+ React.createElement(Skeleton, { active: true, loading: !context.reload },
75
+ React.createElement(PageItems, { id: id, readonly: page.readonly })))))));
76
+ return observe(() => (React.createElement(ViewContext.Provider, { value: view }, frame ? (PageContent) : (React.createElement(AsideContent, { context: asideContext }, PageContent)))));
77
+ /** reload data */
78
+ function onReLoad() {
79
+ context.reload = false;
80
+ setTimeout(() => {
81
+ context.reload = true;
82
+ }, 100);
83
+ }
84
+ };
85
+ PageDefaultView.defaultProps = {
86
+ expand: false,
87
+ };
88
+ export default PageDefaultView;
89
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/obsolete/PageDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAU,MAAM,kCAAkC,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAA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AAO,EAAE,CAAC,OAAO,CAAC,MAAM;oBACxC,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI,CACpC,CACD,CACN,CACgB,CACvB,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,IAC/B,KAAK,CAAC,CAAC,CAAC,CACR,WAAW,CACX,CAAC,CAAC,CAAC,CACH,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAmB,IAAG,WAAW,CAAgB,CACxE,CACqB,CACvB,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC;QACvB,UAAU,CAAC,GAAG,EAAE;YACf,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;QACvB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,CAAC,YAAY,GAAG;IAC9B,MAAM,EAAE,KAAK;CACb,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,94 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .page-default-view {
5
+ position: relative;
6
+ display: flex;
7
+ height: 100%;
8
+ flex-direction: column;
9
+ overflow: hidden;
10
+
11
+ border: 1px solid pink;
12
+
13
+ > header {
14
+ z-index: 1;
15
+ box-shadow: 2px 2px 5px #e8e8e8;
16
+ background-color: @component-background;
17
+ }
18
+
19
+ .document-header-default {
20
+ background-color: transparent;
21
+ }
22
+
23
+ .page-description {
24
+ padding: 0 20px 10px 20px;
25
+ }
26
+
27
+ .list-view-header {
28
+ display: none;
29
+ }
30
+
31
+ .new-page-item-form {
32
+ width: 100%;
33
+ height: 0;
34
+ opacity: 0;
35
+ margin: 0;
36
+ background-color: #fff;
37
+ border-top: 0 @border-style-base @border-color-split;
38
+ transition: height 0.3s, opacity 0.2s ease-out, border-color 0.1s;
39
+
40
+ &.show {
41
+ opacity: 1;
42
+ height: auto;
43
+ border-top-width: @border-width-base;
44
+ }
45
+ }
46
+
47
+ .plus-icon-position {
48
+ position: absolute;
49
+ bottom: 20px;
50
+ right: 20px;
51
+ width: 26px;
52
+ height: 26px;
53
+ line-height: 26px;
54
+ font-size: 18px;
55
+ border-radius: 2px;
56
+ box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
57
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05);
58
+ transition: width 0.3s, opacity 0.2s ease-out, color 0.3s;
59
+
60
+ &.hide {
61
+ width: 0;
62
+ opacity: 0;
63
+ }
64
+ }
65
+ }
66
+
67
+ .page-default-view_aside {
68
+ height: 100%;
69
+
70
+ .ant-tabs {
71
+ display: flex;
72
+ flex-direction: column;
73
+ height: 100%;
74
+
75
+ .ant-tabs-nav {
76
+ margin: 0;
77
+ }
78
+
79
+ .ant-tabs-content {
80
+ height: 100%;
81
+ padding-bottom: 0px !important;
82
+
83
+ .ant-tabs-tabpane {
84
+ position: relative;
85
+ height: 100%;
86
+ }
87
+ }
88
+
89
+ .ant-tabs-bar {
90
+ margin: 0 20px;
91
+ }
92
+ }
93
+ }
94
+ }
@@ -17,7 +17,7 @@
17
17
  height: 40px;
18
18
  line-height: 40px;
19
19
  font-weight: bold;
20
- border-radius: @default-border-radius;
20
+ border-radius: @border-radius;
21
21
  }
22
22
 
23
23
  &.mobile {
@@ -20,7 +20,7 @@
20
20
  .singing-dropdown-content {
21
21
  background: #ffffff;
22
22
  padding: 16px;
23
- border-radius: @default-border-radius;
23
+ border-radius: @border-radius;
24
24
  box-shadow: 0px 3px 6px #00000029;
25
25
  .singing-recepients-content {
26
26
  .singing-recepients-title {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-document",
3
- "version": "6.0.97",
3
+ "version": "6.0.99",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://voplus.visualstudio.com/morpho-document/_git/morpho-document"
@@ -1,11 +0,0 @@
1
- import { DocumentStore, DocumentTypeStore, LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
2
- import { ApiEndPoint } from "@voplus/api";
3
- import { IEmailTemplate, CreateEmailTemplateOptions, EditEmailTemplateOptions, PlaceholderOptions } from ".";
4
- export declare class EmailTemplateStore extends DocumentTypeStore<IEmailTemplate, LoadDocumentOptions, LoadDocumentListOptions, CreateEmailTemplateOptions, EditEmailTemplateOptions, any> {
5
- /** Name of the store */
6
- readonly name: string;
7
- constructor(endpoint: ApiEndPoint, documents: DocumentStore);
8
- placeholdersPreview(id: string, options: PlaceholderOptions): Promise<any>;
9
- }
10
- /** 响应钩子检索 EmailTemplateStore */
11
- export declare const useEmailTemplateStore: () => EmailTemplateStore;
@@ -1 +0,0 @@
1
- {"version":3,"file":"EmailTemplateStore.js","sourceRoot":"","sources":["../../../src/data/email-template/EmailTemplateStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAEN,iBAAiB,EAGjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAO1D,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,MAAM,SAAS,GAAG,oBAAoB,CAAC;AAEvC,MAAM,OAAO,kBAAmB,SAAQ,iBAOvC;IAIA,YAAmB,QAAqB,EAAE,SAAwB;QACjE,KAAK,CAAC,QAAQ,EAAE,uBAAuB,EAAE,SAAS,CAAC,CAAC;QAJrD,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;IAIzC,CAAC;IAEM,KAAK,CAAC,mBAAmB,CAAC,EAAU,EAAE,OAA2B;QACvE,SAAS,CAAC,EAAE,EAAE,qBAAqB,CAAC,CAAC;QACrC,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YACnC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,yBAAyB,EAAE,UAAU,EACrC,IAAI,cAAc,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CACvC,CAAC;YACF,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;YACzB,OAAO,CAAC,CAAC;QACV,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;CACD;AAED,gCAAgC;AAChC,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IACzC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,UAAU,CAChB,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAC3E,CAAC;AACH,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
2
- import { IEmailTemplate } from ".";
3
- import { ListDataContextState } from "@voplus/morpho-ui/es/data";
4
- export declare const useEmailTemplate: (id: string, options?: LoadDocumentOptions) => IEmailTemplate;
5
- export declare const useEmailTemplateListEffect: (list: ListDataContextState<IEmailTemplate> | null, effect: (list: IEmailTemplate[], total: number) => void | null, options?: LoadDocumentListOptions) => void;
@@ -1 +0,0 @@
1
- {"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../src/data/email-template/hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,2BAA2B,EAC3B,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAkB,MAAM,GAAG,CAAC;AAE1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAU,EAAE,OAA6B,EAAE,EAAE;IAC7E,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAE1D,MAAM,KAAK,GAAG,qBAAqB,EAAE,CAAC;IACtC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,CAAC,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,EACxD,OAAO,CACW,CAAC;AACrB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACzC,IAAiD,EACjD,MAA8D,EAC9D,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,qBAAqB,EAAE,CAAC;IAEtC,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AACzF,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/email-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/email-template/interfaces.ts"],"names":[],"mappings":""}
@@ -1,38 +0,0 @@
1
- import React, { lazy } from "react";
2
- import { faCode } from "@fortawesome/pro-light-svg-icons";
3
- import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
4
- import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
5
- import { suspense } from "@voplus/morpho-ui/es/controls/Suspense";
6
- const EmailTemplatePropertiesView = lazy(() => import("../../modules/email-template/components/EmailTemplatePropertiesView"));
7
- const EmailTemplateQuickViewDialog = lazy(() => import("../../modules/email-template/components/EmailTemplateQuickViewDialog"));
8
- const EmailTemplateDefaultView = lazy(() => import("../../modules/email-template/pages/EmailTemplateDefaultView"));
9
- /** Meta information for EmailTemplate document. */
10
- export class EmailTemplateTypeMeta extends DefaultDocumentTypeMeta {
11
- get name() {
12
- return EmailTemplateTypeMeta.TypeName;
13
- }
14
- getIcon(document) {
15
- return React.createElement(FontAwesomeIcon, { icon: faCode });
16
- }
17
- getPropertiesView(document) {
18
- return suspense(EmailTemplatePropertiesView)({ id: document.id });
19
- }
20
- getQuickView(document, props) {
21
- props.id = document.id;
22
- return suspense(EmailTemplateQuickViewDialog)({
23
- id: document.id,
24
- visible: props.visible,
25
- onCancel: props.onCancel,
26
- });
27
- }
28
- getDefaultView(props) {
29
- return suspense(EmailTemplateDefaultView)({ id: props.id });
30
- }
31
- }
32
- Object.defineProperty(EmailTemplateTypeMeta, "TypeName", {
33
- enumerable: true,
34
- configurable: true,
35
- writable: true,
36
- value: "EmailTemplate"
37
- });
38
- //# sourceMappingURL=metas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/email-template/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAElE,MAAM,2BAA2B,GAAG,IAAI,CACvC,GAAG,EAAE,CAAC,MAAM,CAAC,qEAAqE,CAAC,CACnF,CAAC;AACF,MAAM,4BAA4B,GAAG,IAAI,CACxC,GAAG,EAAE,CAAC,MAAM,CAAC,sEAAsE,CAAC,CACpF,CAAC;AACF,MAAM,wBAAwB,GAAG,IAAI,CACpC,GAAG,EAAE,CAAC,MAAM,CAAC,6DAA6D,CAAC,CAC3E,CAAC;AAEF,mDAAmD;AACnD,MAAM,OAAO,qBAAsB,SAAQ,uBAAuB;IAGjE,IAAW,IAAI;QACd,OAAO,qBAAqB,CAAC,QAAQ,CAAC;IACvC,CAAC;IAEM,OAAO,CAAC,QAAmB;QACjC,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,MAAM,GAAI,CAAC;IAC1C,CAAC;IAEM,iBAAiB,CAAC,QAAmB;QAC3C,OAAO,QAAQ,CAAC,2BAA2B,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;IAEM,YAAY,CAAC,QAAmB,EAAE,KAAqB;QAC7D,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;QAEvB,OAAO,QAAQ,CAAC,4BAA4B,CAAC,CAAC;YAC7C,EAAE,EAAE,QAAQ,CAAC,EAAE;YACf,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SACxB,CAAC,CAAC;IACJ,CAAC;IAEM,cAAc,CAAC,KAAqB;QAC1C,OAAO,QAAQ,CAAC,wBAAwB,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC;;AA1Ba;;;;WAAW,eAAe;GAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/email-template/types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/components/CodeMirror/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE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ACnB,CAAC,GACA,CACQ,CACX,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/components/CodeMirror/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAGjB;QAFmB;;;;;WAAc;QAO1B;;;;mBAAS,CAAC,IAAa,EAAE,EAAE;gBACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YAClB,CAAC;WAAC;QAND,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAMD;AAVmB;IAAlB,UAAU;mCAAsB;AAO1B;IADN,MAAM;qCAGL"}
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- import { observe } from "@voplus/morpho-ui";
3
- import { Skeleton } from "antd";
4
- import { useEmailTemplate } from "../../../../data/email-template";
5
- import "./index.less";
6
- export function merge(isLayout, body = "", layoutBody = "") {
7
- return isLayout ? body : layoutBody + body;
8
- }
9
- const EmailTemplateContent = (props) => {
10
- const emailTemplate = useEmailTemplate(props.id, { reload: true, includes: "layout" });
11
- return observe(() => {
12
- var _a;
13
- return (React.createElement(Skeleton, { loading: !emailTemplate.loaded },
14
- React.createElement("div", { className: "email-template-iframe-content" },
15
- React.createElement("iframe", { srcDoc: merge(emailTemplate.isLayout, emailTemplate.body, (_a = emailTemplate === null || emailTemplate === void 0 ? void 0 : emailTemplate.layout) === null || _a === void 0 ? void 0 : _a.body) }))));
16
- });
17
- };
18
- export default EmailTemplateContent;
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/components/EmailTemplateContent/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,cAAc,CAAC;AAEtB,MAAM,UAAU,KAAK,CAAC,QAAiB,EAAE,OAAe,EAAE,EAAE,aAAqB,EAAE;IAClF,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC;AAC5C,CAAC;AAED,MAAM,oBAAoB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtD,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IAEvF,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,QAAQ,IAAC,OAAO,EAAE,CAAC,aAAa,CAAC,MAAM;YACvC,6BAAK,SAAS,EAAC,+BAA+B;gBAC7C,gCACC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,IAAI,EAAE,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,0CAAE,IAAI,CAAC,GACrF,CACG,CACI,CACX,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- declare const EmailTemplateItem: (props: {
3
- id: string;
4
- }) => React.JSX.Element;
5
- export default EmailTemplateItem;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/email-template/components/EmailTemplateItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAyB,MAAM,iCAAiC,CAAC;A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