@voplus/morpho-document 6.1.7 → 6.1.8

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 (127) hide show
  1. package/es/components/DocumentBreadCrumbsHeader/index.d.ts +1 -1
  2. package/es/components/DocumentBreadCrumbsPath/index.d.ts +6 -0
  3. package/es/components/DocumentBreadCrumbsPath/index.js +20 -0
  4. package/es/components/DocumentBreadCrumbsPath/index.js.map +1 -0
  5. package/es/components/DocumentCardList/index.d.ts +2 -2
  6. package/es/components/DocumentList/index.d.ts +11 -11
  7. package/es/components/DocumentListCard/index.d.ts +8 -8
  8. package/es/components/DocumentSelectDialog/index.d.ts +5 -5
  9. package/es/components/DocumentSortableTree/SortableTreeContext.d.ts +0 -1
  10. package/es/components/DocumentTabs/index.d.ts +7 -7
  11. package/es/components/DocumentTree/index.d.ts +2 -2
  12. package/es/components/FileViewer/FileViewer.d.ts +2 -2
  13. package/es/components/Links/NewLinkType.d.ts +2 -2
  14. package/es/components/NewDocumentForm/NewDocumentFormDialog.d.ts +4 -4
  15. package/es/components/NewDocumentForm/index.d.ts +8 -8
  16. package/es/components/PasteListInDocument/index.d.ts +3 -3
  17. package/es/components/SendForm/index.d.ts +7 -7
  18. package/es/components/TextDefaultView/index.js +11 -20
  19. package/es/components/TextDefaultView/index.js.map +1 -1
  20. package/es/components/ViewFrame/index.d.ts +6 -6
  21. package/es/components/WordFillView/WordFillContext.d.ts +0 -1
  22. package/es/controls/ChildDocumentSelect/Item.d.ts +2 -2
  23. package/es/controls/ChildDocumentSelect/index.d.ts +6 -6
  24. package/es/controls/DocumentDataIconBar/index.d.ts +4 -4
  25. package/es/controls/DocumentLabel/index.d.ts +2 -2
  26. package/es/controls/DocumentMenu/items/Access.d.ts +2 -2
  27. package/es/controls/DocumentMenu/items/Archive.d.ts +2 -2
  28. package/es/controls/DocumentMenu/items/Copy.d.ts +2 -2
  29. package/es/controls/DocumentMenu/items/CopyReference.d.ts +2 -2
  30. package/es/controls/DocumentMenu/items/Delete.d.ts +4 -4
  31. package/es/controls/DocumentMenu/items/DownloadFiles.d.ts +2 -2
  32. package/es/controls/DocumentMenu/items/DownloadLetter.d.ts +2 -2
  33. package/es/controls/DocumentMenu/items/Duplicate.d.ts +2 -2
  34. package/es/controls/DocumentMenu/items/Lock.d.ts +3 -3
  35. package/es/controls/DocumentMenu/items/Notifications.d.ts +2 -2
  36. package/es/controls/DocumentMenu/items/OpenInBrowser.d.ts +2 -2
  37. package/es/controls/DocumentMenu/items/OpenReferenceView.d.ts +2 -2
  38. package/es/controls/DocumentMenu/items/OpenWordFillPage.d.ts +2 -2
  39. package/es/controls/DocumentMenu/items/Pin.d.ts +2 -2
  40. package/es/controls/DocumentMenu/items/Print.d.ts +3 -3
  41. package/es/controls/DocumentMenu/items/PrintActivities.d.ts +2 -2
  42. package/es/controls/DocumentMenu/items/Publish.d.ts +4 -4
  43. package/es/controls/DocumentMenu/items/PublishLock.d.ts +2 -2
  44. package/es/controls/DocumentMenu/items/Revert.d.ts +2 -2
  45. package/es/controls/DocumentMenu/items/Unlock.d.ts +3 -3
  46. package/es/controls/DocumentMenu/items/Unpin.d.ts +2 -2
  47. package/es/controls/DocumentStatusLabel/index.d.ts +4 -4
  48. package/es/controls/ToolBar/buttons/Delete.d.ts +3 -3
  49. package/es/controls/ToolBar/buttons/Download.d.ts +4 -4
  50. package/es/controls/ToolBar/buttons/Edit.d.ts +3 -3
  51. package/es/controls/ToolBar/buttons/Open.d.ts +4 -4
  52. package/es/controls/ToolBar/buttons/UpLevel.d.ts +3 -3
  53. package/es/controls/data-icons/FlagIcon/index.d.ts +6 -6
  54. package/es/data/DocumentMetaStore.d.ts +0 -1
  55. package/es/data/contexts/DocumentListContext/index.d.ts +0 -1
  56. package/es/data/message-template/metas.d.ts +0 -1
  57. package/es/data/metas/ContainerMeta.d.ts +0 -1
  58. package/es/data/metas/DocumentRegisterMeta.d.ts +0 -1
  59. package/es/data/metas/FileTypeMeta.d.ts +0 -1
  60. package/es/data/metas/GraphMeta.d.ts +0 -1
  61. package/es/data/metas/LibraryMeta.d.ts +0 -1
  62. package/es/data/metas/PageMeta.d.ts +0 -1
  63. package/es/data/metas/RegisteredDocumentMeta.d.ts +0 -1
  64. package/es/data/metas/ShortcutMeta.d.ts +0 -1
  65. package/es/data/metas/SignEnvelopeMeta.d.ts +0 -1
  66. package/es/data/metas/TextMeta.d.ts +0 -1
  67. package/es/modules/document-register/controls/DocumentRegisterStatusLabel/index.d.ts +1 -1
  68. package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js +20 -29
  69. package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.js.map +1 -1
  70. package/es/modules/graph/control/GraphMenu/item/OpenEditor.d.ts +2 -2
  71. package/es/modules/graph/pages/GraphDefaultView/index.js +10 -19
  72. package/es/modules/graph/pages/GraphDefaultView/index.js.map +1 -1
  73. package/es/modules/message-template/components/CodeMirror/index.d.ts +3 -3
  74. package/es/modules/message-template/components/MessageTemplateSelect/index.d.ts +4 -4
  75. package/es/modules/message-template/controls/MessageTemplateMenu/items/SendPreviewEmail.d.ts +2 -2
  76. package/es/modules/message-template/pages/MessageTemplateDefaultView/index.js +10 -19
  77. package/es/modules/message-template/pages/MessageTemplateDefaultView/index.js.map +1 -1
  78. package/es/modules/page/components/PageItemHeader/index.d.ts +3 -3
  79. package/es/modules/page/data/PageContext.d.ts +0 -1
  80. package/es/modules/page/views/PageDefaultView/index.js +16 -25
  81. package/es/modules/page/views/PageDefaultView/index.js.map +1 -1
  82. package/es/modules/quick-access/AdvanceFilterForm/index.d.ts +2 -2
  83. package/es/modules/quick-access/GeneralFilterForm/index.d.ts +2 -2
  84. package/es/modules/quick-access/QuickAccessPage/QuickAccessContext.d.ts +0 -1
  85. package/es/modules/registered-document/RegisteredDocumentContext.d.ts +1 -1
  86. package/es/modules/registered-document/components/RegisteredDocumentListHeader/index.d.ts +4 -4
  87. package/es/modules/registered-document/controls/RegisteredDocumentStatusLabel/index.d.ts +1 -1
  88. package/es/modules/registered-document/pages/RegisteredDocumentDefaultView/index.js +10 -19
  89. package/es/modules/registered-document/pages/RegisteredDocumentDefaultView/index.js.map +1 -1
  90. package/es/modules/tenant-service/components/StringDynamicField/index.d.ts +1 -1
  91. package/es/modules/tenant-service/components/TenantServiceList/index.d.ts +4 -4
  92. package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.d.ts +4 -4
  93. package/es/obsolete/EmailTemplate/CodeMirror/index.d.ts +3 -3
  94. package/es/obsolete/EmailTemplate/EmailTemplateSelect/index.d.ts +2 -2
  95. package/es/pages/FileContentPage/index.js +5 -10
  96. package/es/pages/FileContentPage/index.js.map +1 -1
  97. package/es/pages/Library/LibraryDefaultView/index.js +30 -36
  98. package/es/pages/Library/LibraryDefaultView/index.js.map +1 -1
  99. package/es/pages/Library/components/DocumentTree/index.d.ts +2 -2
  100. package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js +16 -24
  101. package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js.map +1 -1
  102. package/es/pages/Signature/Envelope/components/ReasonDialog/index.d.ts +1 -1
  103. package/es/pages/Signature/Envelope/components/RemindersDialog/index.d.ts +1 -1
  104. package/es/pages/Signature/Envelope/components/RemoveSignatureDialog/index.d.ts +2 -2
  105. package/es/pages/Signature/Envelope/components/ReviewDialog/index.d.ts +1 -1
  106. package/es/pages/Signature/Envelope/components/ReviewDialog/state.d.ts +2 -2
  107. package/es/pages/Signature/Envelope/components/SendDialog/index.d.ts +3 -3
  108. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Cancel.d.ts +2 -2
  109. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Complete.d.ts +2 -2
  110. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/Reopen.d.ts +2 -2
  111. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendInvite.d.ts +2 -2
  112. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReminders.d.ts +2 -2
  113. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/SendReview.d.ts +2 -2
  114. package/es/pages/Signature/Envelope/controls/EnvelopeMenu/items/ViewSignatures.d.ts +2 -2
  115. package/es/pages/Signature/Letter/LetterItem/index.d.ts +4 -4
  116. package/es/pages/Signature/Letter/LetterList/index.d.ts +6 -6
  117. package/es/pages/Signature/Letter/LetterRecipientItem/index.d.ts +2 -2
  118. package/es/pages/Signature/Letter/LetterViewer/index.d.ts +1 -1
  119. package/es/pages/Signature/SignatureTable/RemoveSignatureDialog.d.ts +2 -2
  120. package/es/pages/Signature/SigningReminderDialog/index.d.ts +1 -1
  121. package/es/pages/Signature/data/EnvelopeContext.d.ts +0 -1
  122. package/es/pages/VSubmit/components/EmailRecipients/index.d.ts +3 -3
  123. package/es/pages/WordFillPage/index.js +10 -18
  124. package/es/pages/WordFillPage/index.js.map +1 -1
  125. package/es/views/ExplorerView/ExplorerView2.js +3 -8
  126. package/es/views/ExplorerView/ExplorerView2.js.map +1 -1
  127. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const OpenWordFillPage: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
6
+ action?: (context?: any) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default OpenWordFillPage;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const Pin: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
6
+ action?: (context?: any) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default Pin;
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
2
  declare const Print: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** url of open new page eg:`meeting/print/${id}` */
6
- url?: string | undefined;
6
+ url?: string;
7
7
  /** function of Click */
8
- action?: ((context?: any) => void) | undefined;
8
+ action?: (context?: any) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default Print;
@@ -2,9 +2,9 @@ import React from "react";
2
2
  declare const PrintActivities: {
3
3
  (props: {
4
4
  /** disabled Button */
5
- disabled?: boolean | undefined;
5
+ disabled?: boolean;
6
6
  /** function of Click */
7
- action?: ((context?: any) => void) | undefined;
7
+ action?: (context?: any) => void;
8
8
  }): React.JSX.Element;
9
9
  defaultProps: {
10
10
  size: string;
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  declare const Publish: (props: {
3
- style?: React.CSSProperties | undefined;
3
+ style?: React.CSSProperties;
4
4
  /** disabled Button */
5
- disabled?: boolean | undefined;
5
+ disabled?: boolean;
6
6
  /** 需不需要查 system */
7
- isCheckSystem?: boolean | undefined;
7
+ isCheckSystem?: boolean;
8
8
  /** function of Click */
9
- action?: ((context?: any) => void) | undefined;
9
+ action?: (context?: any) => void;
10
10
  }) => React.JSX.Element;
11
11
  export default Publish;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const PublishLock: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
6
+ action?: (context?: any) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default PublishLock;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const Revert: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
6
+ action?: (context?: any) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default Revert;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const Unlock: (props: {
3
- style?: React.CSSProperties | undefined;
3
+ style?: React.CSSProperties;
4
4
  /** disabled Button */
5
- disabled?: boolean | undefined;
5
+ disabled?: boolean;
6
6
  /** function of Click */
7
- action?: ((context?: any) => void) | undefined;
7
+ action?: (context?: any) => void;
8
8
  }) => React.JSX.Element;
9
9
  export default Unlock;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const Unpin: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
6
+ action?: (context?: any) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default Unpin;
@@ -6,9 +6,9 @@ declare const DocumentStatusLabel: (props: {
6
6
  displayName?: string;
7
7
  }[];
8
8
  /** The current status */
9
- status?: string | undefined;
10
- className?: string | undefined;
11
- editable?: boolean | undefined;
12
- onChange?: ((params: any) => void) | undefined;
9
+ status?: string;
10
+ className?: string;
11
+ editable?: boolean;
12
+ onChange?: (params: any) => void;
13
13
  }) => React.JSX.Element;
14
14
  export default DocumentStatusLabel;
@@ -2,11 +2,11 @@ import React from "react";
2
2
  declare const Delete: {
3
3
  (props: {
4
4
  /** size of Button */
5
- size?: "small" | "middle" | "large" | undefined;
5
+ size?: "small" | "middle" | "large";
6
6
  /** disabled Button */
7
- disabled?: boolean | undefined;
7
+ disabled?: boolean;
8
8
  /** function of Click */
9
- action?: ((context?: any) => void) | undefined;
9
+ action?: (context?: any) => void;
10
10
  }): React.JSX.Element;
11
11
  defaultProps: {
12
12
  size: string;
@@ -2,12 +2,12 @@ import React from "react";
2
2
  declare const Download: {
3
3
  (props: {
4
4
  /** size of Button */
5
- size?: "small" | "middle" | "large" | undefined;
5
+ size?: "small" | "middle" | "large";
6
6
  /** disabled Button */
7
- disabled?: boolean | undefined;
8
- text?: string | undefined;
7
+ disabled?: boolean;
8
+ text?: string;
9
9
  /** function of Click */
10
- action?: ((context?: any) => void) | undefined;
10
+ action?: (context?: any) => void;
11
11
  }): React.JSX.Element;
12
12
  defaultProps: {
13
13
  size: string;
@@ -2,11 +2,11 @@ import React from "react";
2
2
  declare const Edit: {
3
3
  (props: {
4
4
  /** size of Button */
5
- size?: "small" | "middle" | "large" | undefined;
5
+ size?: "small" | "middle" | "large";
6
6
  /** disabled Button */
7
- disabled?: boolean | undefined;
7
+ disabled?: boolean;
8
8
  /** function of Click */
9
- action?: ((context?: any) => void) | undefined;
9
+ action?: (context?: any) => void;
10
10
  }): React.JSX.Element;
11
11
  defaultProps: {
12
12
  size: string;
@@ -2,13 +2,13 @@ import React from "react";
2
2
  declare const Open: {
3
3
  (props: {
4
4
  /** size of Button */
5
- size?: "small" | "middle" | "large" | undefined;
5
+ size?: "small" | "middle" | "large";
6
6
  /** disabled Button */
7
- disabled?: boolean | undefined;
7
+ disabled?: boolean;
8
8
  /** url of open new page */
9
- url?: string | undefined;
9
+ url?: string;
10
10
  /** function of Click */
11
- action?: ((context?: any) => void) | undefined;
11
+ action?: (context?: any) => void;
12
12
  }): React.JSX.Element;
13
13
  defaultProps: {
14
14
  size: string;
@@ -4,11 +4,11 @@ declare const UpLevel: {
4
4
  /** */
5
5
  id: string;
6
6
  /** size of Button */
7
- size?: "small" | "middle" | "large" | undefined;
7
+ size?: "small" | "middle" | "large";
8
8
  /** disabled Button */
9
- disabled?: boolean | undefined;
9
+ disabled?: boolean;
10
10
  /** function of Click */
11
- action?: ((context?: any) => void) | undefined;
11
+ action?: (context?: any) => void;
12
12
  }): React.JSX.Element;
13
13
  defaultProps: {
14
14
  size: string;
@@ -3,13 +3,13 @@ import React from "react";
3
3
  declare const FlagIcon: {
4
4
  (props: {
5
5
  id: string;
6
- editable?: boolean | undefined;
7
- flag?: "Star" | "Urgent" | "None" | undefined;
6
+ editable?: boolean;
7
+ flag?: "None" | "Star" | "Urgent";
8
8
  icon?: any;
9
- color?: string | undefined;
10
- size?: "sm" | "xs" | "lg" | undefined;
11
- className?: string | undefined;
12
- onchange?: ((params?: any) => void) | undefined;
9
+ color?: string;
10
+ size?: "xs" | "sm" | "lg";
11
+ className?: string;
12
+ onchange?: (params?: any) => void;
13
13
  }): React.JSX.Element;
14
14
  defaultProps: {
15
15
  editable: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DocumentCardProps, IDocument, IDocumentMetaStore, IDocumentTypeMeta, QuickViewProps, DocumentMenuProps, DocumentNewFormProps } from "@voplus/morpho-document-core";
3
2
  import { FilterOption, Store } from "@voplus/morpho-data";
4
3
  export declare class DocumentMetaStore extends Store implements IDocumentMetaStore {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare class DocumentListContextState {
3
2
  /** active?: string (文件id) 在DocumentSortableTree-FileExplorerTheme需要用到,显示点击当前的item的active效果 */
4
3
  active?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterOption } from "@voplus/morpho-data";
3
2
  import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
4
3
  import { IDocument, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DefaultDocumentTypeMeta } from "../..";
3
2
  import { IDocumentMetaStore } from "@voplus/morpho-document-core";
4
3
  /** Meta information for graph. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, QuickViewProps, IDocumentMetaStore, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
4
3
  /** Meta information for DocumentRegister document. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
4
3
  /** Meta information for File document. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, IDocumentMetaStore, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../..";
4
3
  /** Meta information for graph. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DefaultDocumentTypeMeta } from "../..";
3
2
  import { IDocumentMetaStore } from "@voplus/morpho-document-core";
4
3
  /** Meta information for shortcut. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, IDocumentMetaStore, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../..";
4
3
  /** Meta information for shortcut. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, QuickViewProps, IDocumentMetaStore, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
4
3
  /** Meta information for RegisteredDocument document. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IDocument, IDocumentMetaStore, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../..";
4
3
  /** Meta information for shortcut. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DocumentCardProps, IDocument, IDocumentMetaStore, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../..";
4
3
  /** Meta information for e-sign envelope. */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DocumentMenuProps, IDocument, IDocumentMetaStore, QuickViewProps } from "@voplus/morpho-document-core";
3
2
  import { DefaultDocumentTypeMeta } from "../..";
4
3
  /** Meta information for shortcut. */
@@ -4,7 +4,7 @@ import { DocumentRegisterStatus } from "../../../../data/document-register";
4
4
  declare const DocumentRegisterStatusLabel: (props: {
5
5
  status: string;
6
6
  editable: boolean;
7
- className?: string | undefined;
7
+ className?: string;
8
8
  onChange: (status: DocumentRegisterStatus) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default DocumentRegisterStatusLabel;
@@ -7,14 +7,13 @@ import DocumentRegisterProperties from "../../components/DocumentRegisterPropert
7
7
  import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
8
8
  import { faFileZipper, faEllipsisVertical } from "@fortawesome/pro-solid-svg-icons";
9
9
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
10
- import { useMetaStore, DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
10
+ import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
11
11
  import DocumentTabs from "../../../../components/DocumentTabs";
12
12
  import ToolBar from "../../../../controls/ToolBar/ToolBar2";
13
13
  import { Lock, Unlock } from "../../../../controls/DocumentMenu/items";
14
14
  import RegisteredDocumentTableList from "../../../registered-document/components/RegisteredDocumentTableList";
15
15
  import DocumentRegisterSettings from "../DocumentRegisterSettings";
16
- import { useLayout } from "@voplus/morpho-data";
17
- import BreadCrumbsPath from "@voplus/morpho-ui/es/components/layout/headers/components/BreadCrumbsPath";
16
+ import DocumentBreadCrumbsPath from "../../../../components/DocumentBreadCrumbsPath";
18
17
  import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
19
18
  import "./index.less";
20
19
  /** The Document Register component with router parameters support. */
@@ -22,35 +21,27 @@ const DocumentRegisterDefaultView = ({ id }) => {
22
21
  const frame = useFrame();
23
22
  if (frame)
24
23
  frame.header = null;
25
- const layout = useLayout();
26
- const metas = useMetaStore();
27
24
  const [packUp, setPackUp] = useState(false);
28
25
  const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
29
26
  const documentRegister = useDocumentRegister(id, { reload: true, includes: "tags,path,types" });
30
- return observe(() => {
31
- var _a;
32
- return (React.createElement(DefaultViewLayout, { className: "document-register-default-view", header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faFileZipper }), title: documentRegister.name, upAble: true, onPackUp: (up) => setPackUp(up), description: React.createElement(BreadCrumbsPath, { path: (_a = documentRegister.path) === null || _a === void 0 ? void 0 : _a.slice(-3), current: packUp ? { id: id, name: documentRegister.name } : undefined, onToPath: (item) => {
33
- const route = metas.getRoute({ id: item.id, type: item.objectType });
34
- layout.history.push(`${route}`);
35
- } }), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
36
- React.createElement(Space, { className: "menu-buttons" },
37
- React.createElement(Lock, null),
38
- React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
39
- icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
40
- }, blankMenu: packUp ? [] : ["Lock", "Unlock"] }) }), properties: React.createElement(DocumentRegisterProperties, { id: id }) },
41
- React.createElement(DocumentTabs, { id: "", active: "Documents", tabItems: [
42
- {
43
- key: "Documents",
44
- label: "Documents",
45
- children: React.createElement(RegisteredDocumentTableList, { ParentId: id }),
46
- },
47
- {
48
- key: "Settings",
49
- label: "Settings",
50
- children: React.createElement(DocumentRegisterSettings, { id: id }),
51
- },
52
- ] })));
53
- });
27
+ return observe(() => (React.createElement(DefaultViewLayout, { className: "document-register-default-view", header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faFileZipper }), title: documentRegister.name, upAble: true, onPackUp: (up) => setPackUp(up), description: React.createElement(DocumentBreadCrumbsPath, { id: id, packUp: packUp }), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
28
+ React.createElement(Space, { className: "menu-buttons" },
29
+ React.createElement(Lock, null),
30
+ React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
31
+ icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
32
+ }, blankMenu: packUp ? [] : ["Lock", "Unlock"] }) }), properties: React.createElement(DocumentRegisterProperties, { id: id }) },
33
+ React.createElement(DocumentTabs, { id: "", active: "Documents", tabItems: [
34
+ {
35
+ key: "Documents",
36
+ label: "Documents",
37
+ children: React.createElement(RegisteredDocumentTableList, { ParentId: id }),
38
+ },
39
+ {
40
+ key: "Settings",
41
+ label: "Settings",
42
+ children: React.createElement(DocumentRegisterSettings, { id: id }),
43
+ },
44
+ ] }))));
54
45
  };
55
46
  export default DocumentRegisterDefaultView;
56
47
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/pages/DocumentRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,0BAA0B,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,YAAY,MAAM,qCAAqC,CAAC;AAC/D,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,2BAA2B,MAAM,qEAAqE,CAAC;AAC9G,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,eAAe,MAAM,2EAA2E,CAAC;AACxG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,cAAc,CAAC;AAEtB,sEAAsE;AACtE,MAAM,2BAA2B,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAC9D,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,IAAI,KAAK;QAAE,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IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;oBACjC,CAAC,GACA,EAEH,UAAU,EACT,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW;oBAC/C,oBAAC,KAAK,IAAC,SAAS,EAAC,cAAc;wBAC9B,oBAAC,IAAI,OAAG;wBACR,oBAAC,MAAM,OAAG,CACH,CACsB,EAEhC,QAAQ,EACP,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;wBACV,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI;qBAC1C,EACD,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,GAC1C,GAEF,EAEH,UAAU,EAAE,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,GAAI;YAElD,oBAAC,YAAY,IACZ,EAAE,EAAC,EAAE,EACL,MAAM,EAAC,WAAW,EAClB,QAAQ,EAAE;oBACT;wBACC,GAAG,EAAE,WAAW;wBAChB,KAAK,EAAE,WAAW;wBAClB,QAAQ,EAAE,oBAAC,2BAA2B,IAAC,QAAQ,EAAE,EAAE,GAAI;qBACvD;oBACD;wBACC,GAAG,EAAE,UAAU;wBACf,KAAK,EAAE,UAAU;wBACjB,QAAQ,EAAE,oBAAC,wBAAwB,IAAC,EAAE,EAAE,EAAE,GAAI;qBAC9C;iBACD,GACA,CACiB,CACpB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/pages/DocumentRegisterDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAA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AAC,EAAE,EAAE,EAAE,GAAI;iBAC9C;aACD,GACA,CACiB,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const OpenEditor: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
6
+ action?: (context?: any) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default OpenEditor;
@@ -1,6 +1,5 @@
1
- import { useLayout } from "@voplus/morpho-data";
2
1
  import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
3
- import { DocumentMenuContext, DocumentMenuState, useMetaStore } from "@voplus/morpho-document-core";
2
+ import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
4
3
  import GraphProperties from "../../components/GraphProperties";
5
4
  import GraphViewer from "../../components/GraphViewer";
6
5
  import ToolBar from "../../../../controls/ToolBar/ToolBar2";
@@ -14,32 +13,24 @@ import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
14
13
  import { useDocument } from "@voplus/morpho-document-core";
15
14
  import { Publish } from "../../../../controls/DocumentMenu/items";
16
15
  import { OpenEditor } from "../../control/GraphMenu/item";
17
- import BreadCrumbsPath from "@voplus/morpho-ui/es/components/layout/headers/components/BreadCrumbsPath";
16
+ import DocumentBreadCrumbsPath from "../../../../components/DocumentBreadCrumbsPath";
18
17
  import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
19
18
  /** The Graph Page component with router parameters support. */
20
19
  const GraphDefaultView = ({ id }) => {
21
20
  const frame = useFrame();
22
21
  if (frame)
23
22
  frame.header = null;
24
- const layout = useLayout();
25
- const metas = useMetaStore();
26
23
  const [packUp, setPackUp] = useState(false);
27
24
  const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
28
25
  const doc = useDocument(id, { includes: "path" });
29
- return observe(() => {
30
- var _a;
31
- return (React.createElement(DefaultViewLayout, { className: styles["graph-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faDiagramProject }), title: doc.name, upAble: true, onPackUp: (up) => setPackUp(up), description: React.createElement(BreadCrumbsPath, { path: (_a = doc.path) === null || _a === void 0 ? void 0 : _a.slice(-3), current: packUp ? { id: id, name: doc.name } : undefined, onToPath: (item) => {
32
- const route = metas.getRoute({ id: item.id, type: item.objectType });
33
- layout.history.push(`${route}`);
34
- } }), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
35
- React.createElement(Space, { className: "menu-buttons" },
36
- React.createElement(OpenEditor, null),
37
- React.createElement(Publish, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
38
- icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
39
- }, blankMenu: packUp ? [] : ["OpenEditor", "Publish"] }) }), properties: React.createElement(GraphProperties, { id: id }) },
40
- React.createElement(Skeleton, { active: true, loading: !doc.loaded },
41
- React.createElement(GraphViewer, { id: id, autoHeight: true }))));
42
- });
26
+ return observe(() => (React.createElement(DefaultViewLayout, { className: styles["graph-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faDiagramProject }), title: doc.name, upAble: true, onPackUp: (up) => setPackUp(up), description: React.createElement(DocumentBreadCrumbsPath, { id: id, packUp: packUp }), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
27
+ React.createElement(Space, { className: "menu-buttons" },
28
+ React.createElement(OpenEditor, null),
29
+ React.createElement(Publish, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
30
+ icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
31
+ }, blankMenu: packUp ? [] : ["OpenEditor", "Publish"] }) }), properties: React.createElement(GraphProperties, { id: id }) },
32
+ React.createElement(Skeleton, { active: true, loading: !doc.loaded },
33
+ React.createElement(GraphViewer, { id: id, autoHeight: true })))));
43
34
  };
44
35
  export default GraphDefaultView;
45
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/pages/GraphDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,eAAe,MAAM,2EAA2E,CAAC;AACxG,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AAEjG,+DAA+D;AAC/D,MAAM,gBAAgB,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IACnD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,IAAI,KAAK;QAAE,KAAK,C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,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,EAC/B,WAAW,EAAE,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,GAAI,EAChE,UAAU,EACT,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW;gBAC/C,oBAAC,KAAK,IAAC,SAAS,EAAC,cAAc;oBAC9B,oBAAC,UAAU,OAAG;oBACd,oBAAC,OAAO,OAAG,CACJ,CACsB,EAEhC,QAAQ,EACP,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;oBACV,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI;iBAC1C,EACD,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,SAAS,CAAC,GACjD,GAEF,EAEH,UAAU,EAAE,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI;QAEvC,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,GAAG,CAAC,MAAM;YACpC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CACxB,CACQ,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare const CodeMirror: (props: {
3
- code?: string | undefined;
4
- readOnly?: boolean | undefined;
5
- onChange?: ((code: string) => void) | undefined;
3
+ code?: string;
4
+ readOnly?: boolean;
5
+ onChange?: (code: string) => void;
6
6
  }) => React.JSX.Element;
7
7
  export default CodeMirror;
@@ -2,10 +2,10 @@ import React from "react";
2
2
  import { SelectProps } from "antd";
3
3
  import { IMessageTemplate } from "../../../../data/message-template";
4
4
  declare const MessageTemplateSelect: {
5
- (props: SelectProps<any, import("rc-select/lib/Select").DefaultOptionType> & {
6
- defaultValue?: string | undefined;
7
- isLayout?: boolean | undefined;
8
- onChange?: ((messageTemplate?: IMessageTemplate) => void) | undefined;
5
+ (props: SelectProps & {
6
+ defaultValue?: string;
7
+ isLayout?: boolean;
8
+ onChange?: (messageTemplate?: IMessageTemplate) => void;
9
9
  }): React.JSX.Element;
10
10
  defaultProps: {
11
11
  isLayout: boolean;
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  declare const SendPreviewEmail: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
6
+ action?: (context?: any) => void;
7
7
  }) => React.JSX.Element;
8
8
  export default SendPreviewEmail;
@@ -7,13 +7,12 @@ import { useFrame } from "../../../../components/ViewFrame/ViewFrameContext";
7
7
  import MessageTemplateProperties from "../../components/MessageTemplateProperties";
8
8
  import MessageTemplateTabs from "../../components/MessageTemplateTabs";
9
9
  import ToolBar from "../../../../controls/ToolBar/ToolBar2";
10
+ import DocumentBreadCrumbsPath from "../../../../components/DocumentBreadCrumbsPath";
10
11
  import { SendPreviewEmail } from "../../controls/MessageTemplateMenu/items";
11
- import { useLayout } from "@voplus/morpho-data";
12
12
  import { Lock, Unlock } from "../../../../controls/DocumentMenu/items";
13
13
  import { Space } from "antd";
14
14
  import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
15
- import { DocumentMenuContext, DocumentMenuState, useMetaStore } from "@voplus/morpho-document-core";
16
- import BreadCrumbsPath from "@voplus/morpho-ui/es/components/layout/headers/components/BreadCrumbsPath";
15
+ import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
17
16
  import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
18
17
  import styles from "./index.less";
19
18
  /** The MessageTemplate Page component with router parameters support. */
@@ -21,28 +20,20 @@ const MessageTemplateDefaultView = ({ id }) => {
21
20
  const frame = useFrame();
22
21
  if (frame)
23
22
  frame.header = null;
24
- const layout = useLayout();
25
- const metas = useMetaStore();
26
23
  const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
27
24
  const [packUp, setPackUp] = useState(false);
28
25
  const messageTemplate = useMessageTemplate(id, {
29
26
  reload: true,
30
27
  includes: "layout,preview,path",
31
28
  });
32
- return observe(() => {
33
- var _a;
34
- return (React.createElement(DefaultViewLayout, { className: styles["message-template-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faCode }), title: messageTemplate.name, upAble: true, onPackUp: (up) => setPackUp(up), description: React.createElement(BreadCrumbsPath, { path: (_a = messageTemplate.path) === null || _a === void 0 ? void 0 : _a.slice(-3), current: packUp ? { id: id, name: messageTemplate.name } : undefined, onToPath: (item) => {
35
- const route = metas.getRoute({ id: item.id, type: item.objectType });
36
- layout.history.push(`${route}`);
37
- } }), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
38
- React.createElement(Space, { className: "menu-buttons" },
39
- React.createElement(SendPreviewEmail, null),
40
- React.createElement(Lock, null),
41
- React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
42
- icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
43
- }, blankMenu: packUp ? [] : ["SendPreviewEmail", "Lock", "Unlock"] }) }), properties: React.createElement(MessageTemplateProperties, { id: id }) },
44
- React.createElement(MessageTemplateTabs, { id: id, templateCanEdit: true })));
45
- });
29
+ return observe(() => (React.createElement(DefaultViewLayout, { className: styles["message-template-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faCode }), title: messageTemplate.name, upAble: true, onPackUp: (up) => setPackUp(up), description: React.createElement(DocumentBreadCrumbsPath, { id: id, packUp: packUp }), rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
30
+ React.createElement(Space, { className: "menu-buttons" },
31
+ React.createElement(SendPreviewEmail, null),
32
+ React.createElement(Lock, null),
33
+ React.createElement(Unlock, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
34
+ icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
35
+ }, blankMenu: packUp ? [] : ["SendPreviewEmail", "Lock", "Unlock"] }) }), properties: React.createElement(MessageTemplateProperties, { id: id }) },
36
+ React.createElement(MessageTemplateTabs, { id: id, templateCanEdit: true }))));
46
37
  };
47
38
  export default MessageTemplateDefaultView;
48
39
  //# sourceMappingURL=index.js.map