@voplus/morpho-document 6.0.87 → 6.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/DocumentBreadCrumbsHeader/index.d.ts +1 -1
- package/es/components/DocumentCardList/index.d.ts +2 -2
- package/es/components/DocumentList/index.d.ts +12 -12
- package/es/components/DocumentList/index.js +8 -8
- package/es/components/DocumentList/index.js.map +1 -1
- package/es/components/DocumentList/index.less +33 -0
- package/es/components/DocumentListCard/index.d.ts +8 -8
- package/es/components/DocumentSelectDialog/index.d.ts +4 -4
- package/es/components/DocumentSortableTree/SortableTreeContext.d.ts +0 -1
- package/es/components/DocumentTabs/index.d.ts +5 -5
- package/es/components/FileViewer/FileViewer.d.ts +2 -2
- package/es/components/Links/NewLinkType.d.ts +2 -2
- package/es/components/NewDocumentForm/NewDocumentFormDialog.d.ts +4 -4
- package/es/components/NewDocumentForm/index.d.ts +8 -8
- package/es/components/PasteListInDocument/index.d.ts +4 -4
- package/es/components/SendForm/index.d.ts +7 -7
- package/es/components/ViewFrame/ViewFrameContext.js +3 -2
- package/es/components/ViewFrame/ViewFrameContext.js.map +1 -1
- package/es/components/ViewFrame/index.d.ts +6 -6
- package/es/components/ViewFrame/index.js +9 -6
- package/es/components/ViewFrame/index.js.map +1 -1
- package/es/components/WordFillView/WordFillContext.d.ts +0 -1
- package/es/controls/ChildDocumentSelect/Item.d.ts +2 -2
- package/es/controls/ChildDocumentSelect/index.d.ts +6 -6
- package/es/controls/DocumentDataIconBar/index.d.ts +3 -3
- package/es/controls/DocumentLabel/index.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Access.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Archive.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Copy.d.ts +2 -2
- package/es/controls/DocumentMenu/items/CopyReference.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Delete.d.ts +4 -4
- package/es/controls/DocumentMenu/items/DownloadFiles.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Lock.d.ts +3 -3
- package/es/controls/DocumentMenu/items/Notifications.d.ts +2 -2
- package/es/controls/DocumentMenu/items/OpenInBrowser.d.ts +2 -2
- package/es/controls/DocumentMenu/items/OpenReferenceView.d.ts +2 -2
- package/es/controls/DocumentMenu/items/OpenWordFillPage.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Pin.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Print.d.ts +3 -3
- package/es/controls/DocumentMenu/items/PrintActivities.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Publish.d.ts +4 -4
- package/es/controls/DocumentMenu/items/PublishLock.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Revert.d.ts +2 -2
- package/es/controls/DocumentMenu/items/Unlock.d.ts +3 -3
- package/es/controls/DocumentMenu/items/Unpin.d.ts +2 -2
- package/es/controls/DocumentStatusLabel/index.d.ts +4 -4
- package/es/controls/ToolBar/buttons/Delete.d.ts +3 -3
- package/es/controls/ToolBar/buttons/Download.d.ts +3 -3
- package/es/controls/ToolBar/buttons/Edit.d.ts +3 -3
- package/es/controls/ToolBar/buttons/Open.d.ts +4 -4
- package/es/controls/ToolBar/buttons/UpLevel.d.ts +3 -3
- package/es/controls/data-icons/FlagIcon/index.d.ts +6 -6
- package/es/data/DocumentMetaStore.d.ts +0 -1
- package/es/data/contexts/DocumentListContext/index.d.ts +0 -1
- package/es/data/email-template/metas.d.ts +0 -1
- package/es/data/metas/ContainerMeta.d.ts +0 -1
- package/es/data/metas/DocumentRegisterMeta.d.ts +0 -1
- package/es/data/metas/FileTypeMeta.d.ts +0 -1
- package/es/data/metas/GraphMeta.d.ts +0 -1
- package/es/data/metas/LibraryMeta.d.ts +0 -1
- package/es/data/metas/PageMeta.d.ts +0 -1
- package/es/data/metas/ShortcutMeta.d.ts +0 -1
- package/es/data/metas/SignEnvelopeMeta.d.ts +0 -1
- package/es/data/metas/TextMeta.d.ts +0 -1
- package/es/modules/document-register/controls/DocumentRegisterStatusLabel/index.d.ts +1 -1
- package/es/modules/email-template/components/CodeMirror/index.d.ts +3 -3
- package/es/modules/graph/control/GraphMenu/item/OpenEditor.d.ts +2 -2
- package/es/modules/page/components/PageItemHeader/index.d.ts +3 -3
- package/es/modules/page/data/PageContext.d.ts +0 -1
- package/es/modules/tenant-service/components/StringDynamicField/index.d.ts +1 -1
- package/es/modules/tenant-service/components/TenantServiceList/index.d.ts +4 -4
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionList/index.d.ts +4 -4
- package/es/obsolete/EmailTemplate/CodeMirror/index.d.ts +3 -3
- package/es/obsolete/EmailTemplate/EmailTemplateSelect/index.d.ts +2 -2
- package/es/pages/Signature/Envelope/components/ReasonDialog/index.d.ts +1 -1
- package/es/pages/Signature/Envelope/components/RemindersDialog/index.d.ts +1 -1
- package/es/pages/Signature/Envelope/components/RemoveSignatureDialog/index.d.ts +2 -2
- package/es/pages/Signature/Envelope/components/SendDialog/index.d.ts +3 -3
- package/es/pages/Signature/Letter/LetterItem/index.d.ts +4 -4
- package/es/pages/Signature/Letter/LetterList/index.d.ts +6 -6
- package/es/pages/Signature/Letter/LetterRecipientItem/index.d.ts +2 -2
- package/es/pages/Signature/Letter/LetterViewer/index.d.ts +1 -1
- package/es/pages/Signature/SignatureTable/RemoveSignatureDialog.d.ts +2 -2
- package/es/pages/Signature/SigningReminderDialog/index.d.ts +1 -1
- package/es/pages/Signature/data/EnvelopeContext.d.ts +0 -1
- package/es/pages/VSubmit/components/EmailRecipients/index.d.ts +3 -3
- package/es/views/ExplorerView/ExplorerView2.d.ts +6 -0
- package/es/views/ExplorerView/ExplorerView2.js +37 -0
- package/es/views/ExplorerView/ExplorerView2.js.map +1 -0
- package/es/views/ExplorerView/index.d.ts +0 -1
- package/es/views/ExplorerView/index.js +4 -33
- package/es/views/ExplorerView/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,12 +9,12 @@ declare const LetterItem: (props: {
|
|
|
9
9
|
/** letter of envelope */
|
|
10
10
|
letter: ILetter;
|
|
11
11
|
/** Size of title and icon */
|
|
12
|
-
size?: "normal" | "h1" | "h2" | "h3" | "h4"
|
|
12
|
+
size?: "normal" | "h1" | "h2" | "h3" | "h4";
|
|
13
13
|
/** EnvelopeRecipientView 格式 */
|
|
14
|
-
recipient?: boolean
|
|
14
|
+
recipient?: boolean;
|
|
15
15
|
/** 可点击Name */
|
|
16
|
-
clickName?: boolean
|
|
16
|
+
clickName?: boolean;
|
|
17
17
|
/** */
|
|
18
|
-
onClick?: (
|
|
18
|
+
onClick?: (id: string) => void;
|
|
19
19
|
}) => React.JSX.Element;
|
|
20
20
|
export default LetterItem;
|
|
@@ -3,15 +3,15 @@ import "./index.less";
|
|
|
3
3
|
declare const LetterList: (props: {
|
|
4
4
|
id: string;
|
|
5
5
|
/** Letter Item active id */
|
|
6
|
-
activeId?: string
|
|
6
|
+
activeId?: string;
|
|
7
7
|
/** Size of title and icon of DocumentHeader */
|
|
8
|
-
size?: "normal" | "h1" | "h2" | "h3" | "h4"
|
|
8
|
+
size?: "normal" | "h1" | "h2" | "h3" | "h4";
|
|
9
9
|
/** EnvelopeRecipientView 格式 */
|
|
10
|
-
recipient?: boolean
|
|
10
|
+
recipient?: boolean;
|
|
11
11
|
/** 可点击name */
|
|
12
|
-
clickName?: boolean
|
|
13
|
-
style?: React.CSSProperties
|
|
12
|
+
clickName?: boolean;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
14
|
/** */
|
|
15
|
-
onClick?: (
|
|
15
|
+
onClick?: (id: string) => void;
|
|
16
16
|
}) => React.JSX.Element;
|
|
17
17
|
export default LetterList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
declare const LetterRecipientItem: (props: {
|
|
3
|
-
activeId?: string
|
|
4
|
-
onClick?: (
|
|
3
|
+
activeId?: string;
|
|
4
|
+
onClick?: (id: string) => void;
|
|
5
5
|
}) => React.JSX.Element;
|
|
6
6
|
export default LetterRecipientItem;
|
|
@@ -7,6 +7,6 @@ declare const LetterViewer: (props: {
|
|
|
7
7
|
/** info of letter */
|
|
8
8
|
letter: ILetter;
|
|
9
9
|
/** update Modal show or hide */
|
|
10
|
-
updateVisible?: (
|
|
10
|
+
updateVisible?: (visible: boolean) => void;
|
|
11
11
|
}) => React.JSX.Element;
|
|
12
12
|
export default LetterViewer;
|
|
@@ -8,7 +8,7 @@ declare const RemoveSignatureDialog: (props: {
|
|
|
8
8
|
/** line of signature */
|
|
9
9
|
signature: ISignatureLine;
|
|
10
10
|
/** 非 Modal 方式显示签名内容 */
|
|
11
|
-
visible?: boolean
|
|
12
|
-
updateVisible?: (
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
updateVisible?: (visible: boolean) => void;
|
|
13
13
|
}) => React.JSX.Element;
|
|
14
14
|
export default RemoveSignatureDialog;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ILetter } from "../data/envelope";
|
|
3
3
|
declare const SigningReminderDialog: (props: {
|
|
4
|
-
onOk?: (
|
|
4
|
+
onOk?: (letter: ILetter) => void;
|
|
5
5
|
}) => React.JSX.Element;
|
|
6
6
|
export default SigningReminderDialog;
|
|
@@ -2,8 +2,8 @@ import "./index.less";
|
|
|
2
2
|
import { IUnit } from "@voplus/morpho-org";
|
|
3
3
|
import React from "react";
|
|
4
4
|
declare const EmailRecipients: (props: {
|
|
5
|
-
submitters?: IUnit[]
|
|
6
|
-
readonly?: boolean
|
|
7
|
-
onChange?: (
|
|
5
|
+
submitters?: IUnit[];
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
onChange?: (units?: IUnit[]) => void;
|
|
8
8
|
}) => React.JSX.Element;
|
|
9
9
|
export default EmailRecipients;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import DocumentListView from "../../components/DocumentListView/DocumentListView2";
|
|
2
|
+
import DocumentProperties from "../../components/DocumentProperties";
|
|
3
|
+
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
4
|
+
import React, { useState } from "react";
|
|
5
|
+
import { Button } from "antd";
|
|
6
|
+
import NewDocumentForm from "../../components/NewDocumentForm";
|
|
7
|
+
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
8
|
+
import { faEllipsisVertical } from "@fortawesome/pro-solid-svg-icons";
|
|
9
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
|
+
import ToolBar from "../../controls/ToolBar/ToolBar2";
|
|
11
|
+
import DocumentTabs from "../../components/DocumentTabs";
|
|
12
|
+
import { useDocument } from "@voplus/morpho-document-core";
|
|
13
|
+
import "./index.less";
|
|
14
|
+
const ExplorerView = (props) => {
|
|
15
|
+
const { id } = props;
|
|
16
|
+
const asideContext = useAsideContentContext();
|
|
17
|
+
const [activeKey, setActiveKey] = useState();
|
|
18
|
+
const doc = useDocument(id);
|
|
19
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: "Documents", onChange: (key) => setActiveKey(key), tabItems: [
|
|
20
|
+
{
|
|
21
|
+
key: "Properties",
|
|
22
|
+
label: "Properties",
|
|
23
|
+
children: (React.createElement(Scrollbars, { autoHide: true },
|
|
24
|
+
React.createElement("div", { className: "properties-list document-properties-list" },
|
|
25
|
+
React.createElement(DocumentProperties, { id: id })))),
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "Documents",
|
|
29
|
+
label: "Documents",
|
|
30
|
+
children: React.createElement(DocumentListView, { id: props.id }),
|
|
31
|
+
},
|
|
32
|
+
], tabBarExtraContent: React.createElement("div", { className: "doc-tabs-extra-content" },
|
|
33
|
+
activeKey === "Documents" && doc.status !== "Readonly" && (React.createElement(Button, { type: "link", className: "doc-tab-create", onClick: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewDocumentForm, { parentId: id }), { span: 12 }) }, "+ Create New")),
|
|
34
|
+
React.createElement(ToolBar, { id: id, moreProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } })) })));
|
|
35
|
+
};
|
|
36
|
+
export default ExplorerView;
|
|
37
|
+
//# sourceMappingURL=ExplorerView2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExplorerView2.js","sourceRoot":"","sources":["../../../src/views/ExplorerView/ExplorerView2.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,qDAAqD,CAAC;AACnF,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,iCAAiC,CAAC;AACtD,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,cAAc,CAAC;AAEtB,MAAM,YAAY,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IAErD,MAAM,GAAG,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAE5B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAC,WAAW,EAClB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,EACpC,QAAQ,EAAE;YACT;gBACC,GAAG,EAAE,YAAY;gBACjB,KAAK,EAAE,YAAY;gBACnB,QAAQ,EAAE,CACT,oBAAC,UAAU,IAAC,QAAQ;oBACnB,6BAAK,SAAS,EAAC,0CAA0C;wBACxD,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CACzB,CACM,CACb;aACD;YACD;gBACC,GAAG,EAAE,WAAW;gBAChB,KAAK,EAAE,WAAW;gBAClB,QAAQ,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;aAC5C;SACD,EACD,kBAAkB,EACjB,6BAAK,SAAS,EAAC,wBAAwB;YACrC,SAAS,KAAK,WAAW,IAAI,GAAG,CAAC,MAAM,KAAK,UAAU,IAAI,CAC1D,oBAAC,MAAM,IACN,IAAI,EAAC,MAAM,EACX,SAAS,EAAC,gBAAgB,EAC1B,OAAO,EAAE,GAAG,EAAE,CACb,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,eAAe,IAAC,QAAQ,EAAE,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,mBAIjE,CACT;YACD,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI,EAAE,GAAI,CACzE,GAEN,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,37 +1,8 @@
|
|
|
1
|
-
import DocumentListView from "../../components/DocumentListView
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import React, { useState } from "react";
|
|
5
|
-
import { Button } from "antd";
|
|
6
|
-
import NewDocumentForm from "../../components/NewDocumentForm";
|
|
7
|
-
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
8
|
-
import { faEllipsisVertical } from "@fortawesome/pro-solid-svg-icons";
|
|
9
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
|
-
import ToolBar from "../../controls/ToolBar/ToolBar2";
|
|
11
|
-
import DocumentTabs from "../../components/DocumentTabs";
|
|
12
|
-
import { useDocument } from "@voplus/morpho-document-core";
|
|
13
|
-
import "./index.less";
|
|
1
|
+
import DocumentListView from "../../components/DocumentListView";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
14
4
|
const ExplorerView = (props) => {
|
|
15
|
-
|
|
16
|
-
const asideContext = useAsideContentContext();
|
|
17
|
-
const [activeKey, setActiveKey] = useState();
|
|
18
|
-
const doc = useDocument(id);
|
|
19
|
-
return observe(() => (React.createElement(DocumentTabs, { id: id, active: "Documents", onChange: (key) => setActiveKey(key), tabItems: [
|
|
20
|
-
{
|
|
21
|
-
key: "Properties",
|
|
22
|
-
label: "Properties",
|
|
23
|
-
children: (React.createElement(Scrollbars, { autoHide: true },
|
|
24
|
-
React.createElement("div", { className: "properties-list document-properties-list" },
|
|
25
|
-
React.createElement(DocumentProperties, { id: id })))),
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
key: "Documents",
|
|
29
|
-
label: "Documents",
|
|
30
|
-
children: React.createElement(DocumentListView, { id: props.id }),
|
|
31
|
-
},
|
|
32
|
-
], tabBarExtraContent: React.createElement("div", { className: "doc-tabs-extra-content" },
|
|
33
|
-
activeKey === "Documents" && doc.status !== "Readonly" && (React.createElement(Button, { type: "link", className: "doc-tab-create", onClick: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewDocumentForm, { parentId: id }), { span: 12 }) }, "+ Create New")),
|
|
34
|
-
React.createElement(ToolBar, { id: id, moreProps: { icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) } })) })));
|
|
5
|
+
return observe(() => React.createElement(DocumentListView, { id: props.id, headerVisible: false }));
|
|
35
6
|
};
|
|
36
7
|
export default ExplorerView;
|
|
37
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/views/ExplorerView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/views/ExplorerView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,YAAY,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,gBAAgB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,aAAa,EAAE,KAAK,GAAI,CAAC,CAAC;AAChF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|