@voplus/morpho-document 1.2.0-dev30 → 1.2.1
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/ActivityLog/CommentBar.js +6 -2
- package/es/components/ActivityLog/CommentBar.js.map +1 -1
- package/es/components/ActivityLog/state.d.ts +2 -0
- package/es/components/ActivityLog/state.js +10 -0
- package/es/components/ActivityLog/state.js.map +1 -1
- package/es/components/AdvanceSearch/index.d.ts +1 -0
- package/es/components/AdvanceSearch/index.js +1 -0
- package/es/components/AdvanceSearch/index.js.map +1 -1
- package/es/components/DescriptionDocumentList/index.less +3 -0
- package/es/components/DocumentHeader/index.d.ts +2 -1
- package/es/components/DocumentHeader/index.js +3 -2
- package/es/components/DocumentHeader/index.js.map +1 -1
- package/es/components/DocumentItem/index.js +6 -2
- package/es/components/DocumentItem/index.js.map +1 -1
- package/es/components/DocumentItem/index.less +5 -1
- package/es/components/DocumentItem/state.d.ts +5 -0
- package/es/components/DocumentItem/state.js.map +1 -1
- package/es/components/DocumentList/index.js +18 -4
- package/es/components/DocumentList/index.js.map +1 -1
- package/es/components/DocumentName/index.js +25 -3
- package/es/components/DocumentName/index.js.map +1 -1
- package/es/components/DocumentName/index.less +8 -0
- package/es/components/DocumentSelectDialog/index.js +1 -1
- package/es/components/DocumentSelectDialog/index.js.map +1 -1
- package/es/components/DocumentSelectDialog/state.js +4 -4
- package/es/components/DocumentSelectDialog/state.js.map +1 -1
- package/es/components/DocumentSortableTree/index.js +1 -12
- package/es/components/DocumentSortableTree/index.js.map +1 -1
- package/es/components/DocumentSortableTree/state.d.ts +1 -0
- package/es/components/DocumentSortableTree/state.js +17 -0
- package/es/components/DocumentSortableTree/state.js.map +1 -1
- package/es/components/QuickAccessSearch/ObjectItem/index.js +2 -1
- package/es/components/QuickAccessSearch/ObjectItem/index.js.map +1 -1
- package/es/components/QuickViewDialog/QuickSubTab/index.js +12 -8
- package/es/components/QuickViewDialog/QuickSubTab/index.js.map +1 -1
- package/es/components/QuickViewDialog/QuickSubTab/index.less +1 -0
- package/es/components/QuickViewDialog/index.js +20 -6
- package/es/components/QuickViewDialog/index.js.map +1 -1
- package/es/components/QuickViewDialog/index.less +40 -34
- package/es/controls/DescriptionEditor/index.js +30 -10
- package/es/controls/DescriptionEditor/index.js.map +1 -1
- package/es/controls/DescriptionEditor/index.less +5 -3
- package/es/controls/DocumentMenu/items/OpenTreeView.js +4 -1
- package/es/controls/DocumentMenu/items/OpenTreeView.js.map +1 -1
- package/es/controls/ToolBar/buttons/UpLevel.d.ts +17 -0
- package/es/controls/ToolBar/buttons/UpLevel.js +27 -0
- package/es/controls/ToolBar/buttons/UpLevel.js.map +1 -0
- package/es/controls/ToolBar/buttons/index.d.ts +1 -0
- package/es/controls/ToolBar/buttons/index.js +1 -0
- package/es/controls/ToolBar/buttons/index.js.map +1 -1
- package/es/data/ActivityStore/ActivityStore.d.ts +6 -6
- package/es/data/ActivityStore/ActivityStore.js +3 -3
- package/es/data/ActivityStore/ActivityStore.js.map +1 -1
- package/es/data/ActivityStore/hook.d.ts +1 -1
- package/es/data/ActivityStore/interfaces.d.ts +6 -0
- package/es/data/metas/PageMeta.js +2 -2
- package/es/data/metas/PageMeta.js.map +1 -1
- package/es/modules/graph/components/GraphEditor/index.d.ts +6 -0
- package/es/modules/graph/components/GraphEditor/index.js +11 -0
- package/es/modules/graph/components/GraphEditor/index.js.map +1 -0
- package/es/modules/graph/components/GraphViewer/index.d.ts +8 -0
- package/es/modules/graph/components/GraphViewer/index.js +24 -0
- package/es/modules/graph/components/GraphViewer/index.js.map +1 -0
- package/es/modules/graph/components/GraphViewer/index.less +4 -0
- package/es/{pages → modules/graph/pages}/GraphEditorPage/index.js +4 -3
- package/es/modules/graph/pages/GraphEditorPage/index.js.map +1 -0
- package/es/modules/page/components/FolderItem/index.d.ts +6 -0
- package/es/modules/page/components/FolderItem/index.js +26 -0
- package/es/modules/page/components/FolderItem/index.js.map +1 -0
- package/es/modules/page/components/FolderItem/state.d.ts +7 -0
- package/es/modules/page/components/FolderItem/state.js +29 -0
- package/es/modules/page/components/FolderItem/state.js.map +1 -0
- package/es/modules/page/components/GraphItem/index.d.ts +6 -0
- package/es/modules/page/components/GraphItem/index.js +26 -0
- package/es/modules/page/components/GraphItem/index.js.map +1 -0
- package/es/modules/page/components/GraphItem/state.d.ts +7 -0
- package/es/modules/page/components/GraphItem/state.js +29 -0
- package/es/modules/page/components/GraphItem/state.js.map +1 -0
- package/es/modules/page/components/PageItem/index.js +17 -0
- package/es/modules/page/components/PageItem/index.js.map +1 -0
- package/es/modules/page/components/PageItem/index.less +27 -0
- package/es/modules/page/components/PageItemHeader/index.d.ts +11 -0
- package/es/modules/page/components/PageItemHeader/index.js +37 -0
- package/es/modules/page/components/PageItemHeader/index.js.map +1 -0
- package/es/modules/page/components/PageItemHeader/index.less +27 -0
- package/es/modules/page/components/PageItemHeader/state.d.ts +8 -0
- package/es/modules/page/components/PageItemHeader/state.js +28 -0
- package/es/modules/page/components/PageItemHeader/state.js.map +1 -0
- package/es/{pages/Page → modules/page/components}/PageItems/index.js +11 -5
- package/es/modules/page/components/PageItems/index.js.map +1 -0
- package/es/{pages/Page → modules/page/components}/PageItems/index.less +10 -6
- package/es/{pages/Page → modules/page/components}/PageItems/state.d.ts +1 -1
- package/es/modules/page/components/PageItems/state.js.map +1 -0
- package/es/modules/page/components/PlusDropDown/index.js.map +1 -0
- package/es/modules/page/components/TextItem/index.d.ts +6 -0
- package/es/modules/page/components/TextItem/index.js +36 -0
- package/es/modules/page/components/TextItem/index.js.map +1 -0
- package/es/{pages/Page/PageItem → modules/page/components/TextItem}/state.d.ts +2 -4
- package/es/{pages/Page/PageItem → modules/page/components/TextItem}/state.js +2 -12
- package/es/modules/page/components/TextItem/state.js.map +1 -0
- package/es/modules/page/data/IPageItemState.js.map +1 -0
- package/es/{pages/Page → modules/page}/data/PageContext.d.ts +6 -0
- package/es/{pages/Page → modules/page}/data/PageContext.js +27 -5
- package/es/modules/page/data/PageContext.js.map +1 -0
- package/es/modules/page/data/PageStore.js.map +1 -0
- package/es/modules/page/data/hook.js.map +1 -0
- package/es/modules/page/data/index.js.map +1 -0
- package/es/modules/page/data/interfaces.js.map +1 -0
- package/es/{pages/Page → modules/page/views}/PageDefaultView/index.js +10 -9
- package/es/modules/page/views/PageDefaultView/index.js.map +1 -0
- package/es/{pages/Page → modules/page/views}/PagePropertiesView/index.js +4 -4
- package/es/modules/page/views/PagePropertiesView/index.js.map +1 -0
- package/es/{pages/Page → modules/page/views}/PageQuickView/index.js +3 -3
- package/es/modules/page/views/PageQuickView/index.js.map +1 -0
- package/es/pages/ArchivedPage/index.js +1 -1
- package/es/pages/ArchivedPage/index.js.map +1 -1
- package/es/pages/Library/LibraryDefaultView/Content.js +1 -1
- package/es/pages/Library/LibraryDefaultView/Content.js.map +1 -1
- package/es/pages/Library/LibraryDefaultView/index.js +1 -1
- package/es/pages/Library/LibraryDefaultView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeReport/index.d.ts +4 -0
- package/es/pages/Signature/Envelope/EnvelopeReport/index.js +58 -0
- package/es/pages/Signature/Envelope/EnvelopeReport/index.js.map +1 -0
- package/es/pages/Signature/Envelope/EnvelopeReport/index.less +49 -0
- package/es/pages/Signature/Envelope/components/EnvelopeCard/index.js +1 -1
- package/es/pages/Signature/Envelope/components/EnvelopeCard/index.js.map +1 -1
- package/es/pages/Signature/Envelope/components/EnvelopeMenu.js +3 -2
- package/es/pages/Signature/Envelope/components/EnvelopeMenu.js.map +1 -1
- package/es/pages/Signature/Envelope/components/PropertiesView/index.js +1 -1
- package/es/pages/Signature/Envelope/components/PropertiesView/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterContentView/index.less +1 -0
- package/es/pages/Signature/Letter/LetterList/index.less +3 -0
- package/es/pages/VSubmit/VSubmitSubmitterView/index.js +2 -2
- package/es/pages/VSubmit/VSubmitSubmitterView/index.js.map +1 -1
- package/es/routes.d.ts +6 -0
- package/es/routes.js +16 -3
- package/es/routes.js.map +1 -1
- package/es/services/SignActivityLogRenderer.js +8 -9
- package/es/services/SignActivityLogRenderer.js.map +1 -1
- package/package.json +21 -39
- package/changelog.md +0 -148
- package/es/pages/GraphEditorPage/index.js.map +0 -1
- package/es/pages/Page/PageDefaultView/index.js.map +0 -1
- package/es/pages/Page/PageItem/index.js +0 -37
- package/es/pages/Page/PageItem/index.js.map +0 -1
- package/es/pages/Page/PageItem/index.less +0 -48
- package/es/pages/Page/PageItem/state.js.map +0 -1
- package/es/pages/Page/PageItems/index.js.map +0 -1
- package/es/pages/Page/PageItems/state.js.map +0 -1
- package/es/pages/Page/PagePropertiesView/index.js.map +0 -1
- package/es/pages/Page/PageQuickView/index.js.map +0 -1
- package/es/pages/Page/PlusDropDown/index.js.map +0 -1
- package/es/pages/Page/data/IPageItemState.js.map +0 -1
- package/es/pages/Page/data/PageContext.js.map +0 -1
- package/es/pages/Page/data/PageStore.js.map +0 -1
- package/es/pages/Page/data/hook.js.map +0 -1
- package/es/pages/Page/data/index.js.map +0 -1
- package/es/pages/Page/data/interfaces.js.map +0 -1
- /package/es/{pages → modules/graph/pages}/GraphEditorPage/index.d.ts +0 -0
- /package/es/{pages/Page → modules/page/components}/PageItem/index.d.ts +0 -0
- /package/es/{pages/Page → modules/page/components}/PageItems/index.d.ts +0 -0
- /package/es/{pages/Page → modules/page/components}/PageItems/state.js +0 -0
- /package/es/{pages/Page → modules/page/components}/PlusDropDown/index.d.ts +0 -0
- /package/es/{pages/Page → modules/page/components}/PlusDropDown/index.js +0 -0
- /package/es/{pages/Page → modules/page/components}/PlusDropDown/index.less +0 -0
- /package/es/{pages/Page → modules/page}/data/IPageItemState.d.ts +0 -0
- /package/es/{pages/Page → modules/page}/data/IPageItemState.js +0 -0
- /package/es/{pages/Page → modules/page}/data/PageStore.d.ts +0 -0
- /package/es/{pages/Page → modules/page}/data/PageStore.js +0 -0
- /package/es/{pages/Page → modules/page}/data/hook.d.ts +0 -0
- /package/es/{pages/Page → modules/page}/data/hook.js +0 -0
- /package/es/{pages/Page → modules/page}/data/index.d.ts +0 -0
- /package/es/{pages/Page → modules/page}/data/index.js +0 -0
- /package/es/{pages/Page → modules/page}/data/interfaces.d.ts +0 -0
- /package/es/{pages/Page → modules/page}/data/interfaces.js +0 -0
- /package/es/{pages/Page → modules/page/views}/PageDefaultView/index.d.ts +0 -0
- /package/es/{pages/Page → modules/page/views}/PageDefaultView/index.less +0 -0
- /package/es/{pages/Page → modules/page/views}/PagePropertiesView/index.d.ts +0 -0
- /package/es/{pages/Page → modules/page/views}/PageQuickView/index.d.ts +0 -0
|
@@ -5,5 +5,5 @@ import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
|
5
5
|
* @param {string} id - id of the Activity
|
|
6
6
|
* @param {LoadActivityOptions} options - options
|
|
7
7
|
*/
|
|
8
|
-
export declare const useActivity: (id: string, options?: LoadActivityOptions | undefined) =>
|
|
8
|
+
export declare const useActivity: (id: string, options?: LoadActivityOptions | undefined) => import("@voplus/morpho-document-core").IActivityLog;
|
|
9
9
|
export declare const useActivityListEffect: (list: ListDataContextState<IActivity> | null, effect: (list: any[]) => void, options?: LoadDocumentListOptions | undefined) => void;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { ILoadable } from "@voplus/morpho-data";
|
|
2
2
|
export declare type ActivityAction = "Created" | "Changed" | "Deleted";
|
|
3
|
+
/** @deprecated use the interface in document-core */
|
|
3
4
|
export interface ICollaborationTarget {
|
|
4
5
|
/** Id of the target. */
|
|
5
6
|
id: string;
|
|
6
7
|
/** Name of the collaboration target. */
|
|
7
8
|
name: string;
|
|
9
|
+
/** email of the target. */
|
|
10
|
+
email?: string;
|
|
11
|
+
/** ip of the target. */
|
|
12
|
+
iP?: string;
|
|
8
13
|
/** type of the target. */
|
|
9
14
|
type: string;
|
|
10
15
|
/** target object if the collaboration object is a link */
|
|
11
16
|
target?: ICollaborationTarget;
|
|
12
17
|
}
|
|
18
|
+
/** @deprecated use the interface in document-core */
|
|
13
19
|
/** Represent an activity log. */
|
|
14
20
|
export interface IActivity extends ILoadable {
|
|
15
21
|
/** Id of the log. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefaultDocumentTypeMeta } from "../..";
|
|
2
2
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
-
import PagePropertiesView from "../../
|
|
4
|
-
import PageQuickView from "../../
|
|
3
|
+
import PagePropertiesView from "../../modules/page/views/PagePropertiesView";
|
|
4
|
+
import PageQuickView from "../../modules/page/views/PageQuickView";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { faBookAlt } from "@fortawesome/pro-light-svg-icons";
|
|
7
7
|
/** Meta information for shortcut. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageMeta.js","sourceRoot":"","sources":["../../../src/data/metas/PageMeta.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,kBAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"PageMeta.js","sourceRoot":"","sources":["../../../src/data/metas/PageMeta.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,aAAa,MAAM,wCAAwC,CAAC;AAEnE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAE7D,qCAAqC;AACrC,MAAM,OAAO,QAAS,SAAQ,uBAAuB;IAMpD,YAA2B,KAAwB;QAClD,KAAK,EAAE,CAAC;;;;;mBADkB;;IAE3B,CAAC;IAND,IAAW,IAAI;QACd,OAAO,QAAQ,CAAC,QAAQ,CAAC;IAC1B,CAAC;IAMM,QAAQ,CAAC,QAAmB;QAClC,OAAO,SAAS,QAAQ,CAAC,EAAE,EAAE,CAAC;IAC/B,CAAC;IAEM,OAAO;QACb,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,SAAS,GAAI,CAAC;IAC7C,CAAC;IAEM,iBAAiB,CAAC,QAAmB;QAC3C,OAAO,oBAAC,kBAAkB,IAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,GAAI,CAAC;IAChD,CAAC;IAEM,YAAY,CAAC,QAAmB,EAAE,KAAqB;QAC7D,OAAO,oBAAC,aAAa,IAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAI,CAAC;IAC7F,CAAC;;AAvBD;;;;WAAyB,MAAM;GAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
4
|
+
/** The Graph editor component . */
|
|
5
|
+
const GraphEditor = (props) => {
|
|
6
|
+
const context = useApplicationContext();
|
|
7
|
+
const path = `/mxgraph/editor/index.html?id=${props.id}&access_token=${encodeURIComponent(context.user.info.accessToken)}`;
|
|
8
|
+
return observe(() => (React.createElement("iframe", { src: `${context.api.currentEndPoint.url(path)}`, style: { width: "100%", height: "100%" }, frameBorder: "0" })));
|
|
9
|
+
};
|
|
10
|
+
export default GraphEditor;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/components/GraphEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,mCAAmC;AACnC,MAAM,WAAW,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7C,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,MAAM,IAAI,GAAG,iCAAiC,KAAK,CAAC,EAAE,iBAAiB,kBAAkB,CACxF,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAC7B,EAAE,CAAC;IAEJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,gCACC,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAC/C,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EACxC,WAAW,EAAC,GAAG,GACd,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
import IframeResizer from "iframe-resizer-react";
|
|
4
|
+
import Panable from "@voplus/morpho-ui/es/controls/Panable";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useApplicationContext } from "@voplus/morpho-data"; // eslint-disable-line
|
|
7
|
+
const GraphViewer = (props) => {
|
|
8
|
+
const context = useApplicationContext();
|
|
9
|
+
const [height, setHeight] = useState(null);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (props.autoHeight !== true)
|
|
12
|
+
setHeight(null);
|
|
13
|
+
});
|
|
14
|
+
const path = `/mxgraph/editor/viewer.html?id=${props.id}&access_token=${encodeURIComponent(context.user.info.accessToken)}`;
|
|
15
|
+
return observe(() => (React.createElement("div", { className: "graph-viewer", style: { height: height ? `${height}px` : undefined } },
|
|
16
|
+
React.createElement(Panable, { scroll: true },
|
|
17
|
+
React.createElement(IframeResizer, { onResized: handleIFrameResize, src: `${context.api.currentEndPoint.url(path)}`, style: { pointerEvents: "none" }, frameBorder: "0", scrolling: false, sizeWidth: true })))));
|
|
18
|
+
function handleIFrameResize(ev) {
|
|
19
|
+
if (props.autoHeight)
|
|
20
|
+
setHeight(+ev.height + 10);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
export default GraphViewer;
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/components/GraphViewer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAU,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC,CAAC,sBAAsB;AAEnF,MAAM,WAAW,GAAG,CAAC,KAIpB,EAAE,EAAE;IACJ,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE1D,SAAS,CAAC,GAAG,EAAE;QACd,IAAI,KAAK,CAAC,UAAU,KAAK,IAAI;YAAE,SAAS,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,MAAM,IAAI,GAAG,kCAAkC,KAAK,CAAC,EAAE,iBAAiB,kBAAkB,CACzF,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAC7B,EAAE,CAAC;IAEJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,cAAc,EAAC,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE;QAClF,oBAAC,OAAO,IAAC,MAAM;YACd,oBAAC,aAAa,IACb,SAAS,EAAE,kBAAkB,EAC7B,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAC/C,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,EAChC,WAAW,EAAC,GAAG,EACf,SAAS,EAAE,KAAK,EAChB,SAAS,EAAE,IAAI,GACd,CACO,CACL,CACN,CAAC,CAAC;IAEH,SAAS,kBAAkB,CAAC,EAAmB;QAC9C,IAAI,KAAK,CAAC,UAAU;YAAE,SAAS,CAAC,CAAC,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAClD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
3
2
|
import { useApplicationContext, useTabItem } from "@voplus/morpho-data";
|
|
4
3
|
import { Empty } from "@voplus/antd";
|
|
4
|
+
import GraphEditor from "../../components/GraphEditor";
|
|
5
|
+
import GraphViewer from "../../components/GraphViewer";
|
|
6
|
+
import React from "react";
|
|
5
7
|
import { useDocument } from "@voplus/morpho-document-core";
|
|
6
8
|
import { useParams } from "react-router";
|
|
7
9
|
/** The Graph Page component with router parameters support. */
|
|
@@ -9,13 +11,12 @@ const GraphEditorPage = () => {
|
|
|
9
11
|
const context = useApplicationContext();
|
|
10
12
|
const params = useParams();
|
|
11
13
|
const doc = useDocument(params.id);
|
|
12
|
-
const path = `/mxgraph/editor/index.html?id=${params.id}&access_token=${encodeURIComponent(context.user.info.accessToken)}`;
|
|
13
14
|
const tab = useTabItem();
|
|
14
15
|
useAutorunEffect(() => {
|
|
15
16
|
var _a;
|
|
16
17
|
tab.title = (_a = doc.name) !== null && _a !== void 0 ? _a : "Document";
|
|
17
18
|
});
|
|
18
|
-
return observe(() => doc.loaded ? (React.createElement(
|
|
19
|
+
return observe(() => doc.loaded ? (doc.readonly ? (React.createElement(GraphViewer, { id: params.id })) : (React.createElement(GraphEditor, { id: params.id }))) : (React.createElement(Empty, null)));
|
|
19
20
|
};
|
|
20
21
|
export default GraphEditorPage;
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/pages/GraphEditorPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,+DAA+D;AAC/D,MAAM,eAAe,GAAG,GAAG,EAAE;IAC5B,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,MAAM,MAAM,GAAG,SAAS,EAAkB,CAAC;IAE3C,MAAM,GAAG,GAAG,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAEnC,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,gBAAgB,CAAC,GAAG,EAAE;;QACrB,GAAG,CAAC,KAAK,GAAG,MAAA,GAAG,CAAC,IAAI,mCAAI,UAAU,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CACZ,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CACd,oBAAC,WAAW,IAAC,EAAE,EAAE,MAAM,CAAC,EAAE,GAAI,CAC9B,CAAC,CAAC,CAAC,CACH,oBAAC,WAAW,IAAC,EAAE,EAAE,MAAM,CAAC,EAAE,GAAI,CAC9B,CACD,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,OAAG,CACT,CACD,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { useEffect } from "react";
|
|
2
|
+
import { autorun, runInAction } from "mobx";
|
|
3
|
+
import DocumentList from "../../../../components/DocumentList";
|
|
4
|
+
import PageItemHeader from "../PageItemHeader";
|
|
5
|
+
import { State } from "./state";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
import { usePageContext } from "../../data";
|
|
8
|
+
const FolderItem = (props) => {
|
|
9
|
+
const { id, connectDragSource } = props;
|
|
10
|
+
const context = usePageContext();
|
|
11
|
+
const state = context.getState(id, () => new State());
|
|
12
|
+
useEffect(() => autorun(() => context.setCollapse(id, state.collapse)), [id]);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
runInAction(() => {
|
|
15
|
+
context._data.map((i) => {
|
|
16
|
+
if (i.id === id)
|
|
17
|
+
state.collapse = i.collapse;
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
}, [context.collapsed]);
|
|
21
|
+
return observe(() => (React.createElement("div", { id: id, className: "page-item page-text-item" },
|
|
22
|
+
React.createElement(PageItemHeader, { id: id, collapse: state.collapse, connectDragSource: connectDragSource, changeCollapse: state.changeCollapse }),
|
|
23
|
+
!state.collapse && React.createElement(DocumentList, { id: id, header: true, className: "folder-document-list" }))));
|
|
24
|
+
};
|
|
25
|
+
export default FolderItem;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","source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K,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,0BAA0B;QAChD,oBAAC,cAAc,IACd,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,KAAK,CAAC,cAAc,GACnC;QACD,CAAC,KAAK,CAAC,QAAQ,IAAI,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAC,sBAAsB,GAAG,CACtF,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { action, makeObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** collapse PageTextItem */
|
|
6
|
+
Object.defineProperty(this, "collapse", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: false
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(this, "changeCollapse", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: (collapse) => {
|
|
17
|
+
this.collapse = collapse;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
makeObservable(this);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
observable
|
|
25
|
+
], State.prototype, "collapse", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
action
|
|
28
|
+
], State.prototype, "changeCollapse", void 0);
|
|
29
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/page/components/FolderItem/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI1D,MAAM,OAAO,KAAK;IAIjB;QAHA,4BAA4B;QAChB;;;;mBAAkB,KAAK;WAAC;QAQpC;;;;mBAAwB,CAAC,QAAiB,EAAE,EAAE;gBAC7C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC1B,CAAC;WAAC;QAPD,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAOD;AAXY;IAAX,UAAU;uCAAyB;AAQpC;IAFC,MAAM;6CAIL"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { useEffect } from "react";
|
|
2
|
+
import { autorun, runInAction } from "mobx";
|
|
3
|
+
import GraphViewer from "../../../graph/components/GraphViewer";
|
|
4
|
+
import PageItemHeader from "../PageItemHeader";
|
|
5
|
+
import { State } from "./state";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
import { usePageContext } from "../../data";
|
|
8
|
+
const GraphItem = (props) => {
|
|
9
|
+
const { id, connectDragSource } = props;
|
|
10
|
+
const context = usePageContext();
|
|
11
|
+
const state = context.getState(id, () => new State());
|
|
12
|
+
useEffect(() => autorun(() => context.setCollapse(id, state.collapse)), [id]);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
runInAction(() => {
|
|
15
|
+
context._data.map((i) => {
|
|
16
|
+
if (i.id === id)
|
|
17
|
+
state.collapse = i.collapse;
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
}, [context.collapsed]);
|
|
21
|
+
return observe(() => (React.createElement("div", { id: id, className: "page-item page-graph-item" },
|
|
22
|
+
React.createElement(PageItemHeader, { id: id, collapse: state.collapse, connectDragSource: connectDragSource, changeCollapse: state.changeCollapse, openVisible: true }),
|
|
23
|
+
!state.collapse && React.createElement(GraphViewer, { id: id, autoHeight: true }))));
|
|
24
|
+
};
|
|
25
|
+
export default GraphItem;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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,EAAE,CAAC,CACpB,6BAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,2BAA2B;QACjD,oBAAC,cAAc,IACd,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,WAAW,EAAE,IAAI,GAChB;QACD,CAAC,KAAK,CAAC,QAAQ,IAAI,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CACjD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { action, makeObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** collapse PageTextItem */
|
|
6
|
+
Object.defineProperty(this, "collapse", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: false
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(this, "changeCollapse", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: (collapse) => {
|
|
17
|
+
this.collapse = collapse;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
makeObservable(this);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
observable
|
|
25
|
+
], State.prototype, "collapse", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
action
|
|
28
|
+
], State.prototype, "changeCollapse", void 0);
|
|
29
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/page/components/GraphItem/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI1D,MAAM,OAAO,KAAK;IAIjB;QAHA,4BAA4B;QAChB;;;;mBAAkB,KAAK;WAAC;QAQpC;;;;mBAAwB,CAAC,QAAiB,EAAE,EAAE;gBAC7C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC1B,CAAC;WAAC;QAPD,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAOD;AAXY;IAAX,UAAU;uCAAyB;AAQpC;IAFC,MAAM;6CAIL"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import FolderItem from "../FolderItem";
|
|
3
|
+
import GraphItem from "../GraphItem";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import TextItem from "../TextItem";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
import { useDocument } from "@voplus/morpho-document-core";
|
|
8
|
+
const PageItem = (props) => {
|
|
9
|
+
const { id, connectDragSource } = props;
|
|
10
|
+
const page = useDocument(props.id);
|
|
11
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
12
|
+
page.type === "Text" && React.createElement(TextItem, { id: id, connectDragSource: connectDragSource }),
|
|
13
|
+
page.type === "Document" && React.createElement(FolderItem, { id: id, connectDragSource: connectDragSource }),
|
|
14
|
+
page.type === "Graph" && React.createElement(GraphItem, { id: id, connectDragSource: connectDragSource }))));
|
|
15
|
+
};
|
|
16
|
+
export default PageItem;
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/page/components/PageItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,QAAQ,GAAG,CAAC,KAA8C,EAAE,EAAE;IACnE,MAAM,EAAE,EAAE,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IAExC,MAAM,IAAI,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEnC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACb,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,GAAI;QAClF,IAAI,CAAC,IAAI,KAAK,UAAU,IAAI,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,GAAI;QACxF,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,GAAI,CACrE,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/index.less";
|
|
2
|
+
:global {
|
|
3
|
+
.page-item {
|
|
4
|
+
position: relative;
|
|
5
|
+
background-color: @component-background;
|
|
6
|
+
//&:not(:last-child) {
|
|
7
|
+
//border-bottom: 1px solid rgb(228, 230, 232);
|
|
8
|
+
//}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.page-text-item {
|
|
12
|
+
.ProseMirror-container {
|
|
13
|
+
min-height: 5rem;
|
|
14
|
+
}
|
|
15
|
+
> .padding-top-10 {
|
|
16
|
+
// this is the class from prosemirror editor
|
|
17
|
+
padding: 0;
|
|
18
|
+
margin-top: -1px;
|
|
19
|
+
.ProseMirror-container {
|
|
20
|
+
border: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.folder-document-list {
|
|
24
|
+
height: 350px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "./index.less";
|
|
3
|
+
declare const PageItemHeader: (props: {
|
|
4
|
+
id: string;
|
|
5
|
+
collapse: boolean;
|
|
6
|
+
connectDragSource?: any;
|
|
7
|
+
changeCollapse?: ((collapse: boolean) => void) | undefined;
|
|
8
|
+
/** Open new tab button */
|
|
9
|
+
openVisible?: boolean | undefined;
|
|
10
|
+
}) => JSX.Element;
|
|
11
|
+
export default PageItemHeader;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import "./index.less";
|
|
2
|
+
import { Button, Tooltip } from "@voplus/antd";
|
|
3
|
+
import { Open, Versions } from "../../../../controls/ToolBar/buttons";
|
|
4
|
+
import React, { useEffect, useState } from "react";
|
|
5
|
+
import { faBars, faChevronDown, faChevronUp } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
+
import DocumentHeader from "../../../../components/DocumentHeader";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
+
import { State } from "./state";
|
|
9
|
+
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
10
|
+
import { observe } from "@voplus/morpho-ui";
|
|
11
|
+
import { runInAction } from "mobx";
|
|
12
|
+
import { useMetaStore } from "../../../../data";
|
|
13
|
+
const PageItemHeader = (props) => {
|
|
14
|
+
const { id, connectDragSource, collapse } = props;
|
|
15
|
+
const meta = useMetaStore();
|
|
16
|
+
const [state] = useState(new State());
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
runInAction(() => (state.collapse = collapse));
|
|
19
|
+
}, [collapse]);
|
|
20
|
+
return observe(() => (React.createElement(DocumentHeader, { id: id, className: "page-item-header", size: "h2", clickNameEffect: "edit", autoSaveName: true, itemHover: true, skeletonVisible: false, quickDataBarVisible: false, flagVisible: false, onMouse: (over) => (state.over = over), pre: React.createElement(React.Fragment, null, state.over && connectDragSource && (React.createElement("div", { className: "page-move" }, connectDragSource(React.createElement("span", null, React.createElement(FAIcon, { icon: faBars })))))), tools: React.createElement("div", { style: { visibility: state.over ? "visible" : "hidden" }, className: "page-item-tools" },
|
|
21
|
+
React.createElement(ToolBar, { id: id, moreProps: { buttonProps: { size: "middle" } } },
|
|
22
|
+
React.createElement(Tooltip, { title: state.collapse ? "Expand" : "Collapse" },
|
|
23
|
+
React.createElement(Button, { size: "middle", shape: "circle", onClick: changeCollapse },
|
|
24
|
+
React.createElement(FAIcon, { icon: state.collapse ? faChevronDown : faChevronUp }))),
|
|
25
|
+
props.openVisible && (React.createElement(Open, { size: "middle", url: meta.getRoute({ type: "Graph", id: id }) })),
|
|
26
|
+
React.createElement(Versions, { size: "middle" }))) })));
|
|
27
|
+
/** change item collapse */
|
|
28
|
+
function changeCollapse() {
|
|
29
|
+
runInAction(() => {
|
|
30
|
+
var _a;
|
|
31
|
+
state.collapse = !state.collapse;
|
|
32
|
+
(_a = props.changeCollapse) === null || _a === void 0 ? void 0 : _a.call(props, state.collapse);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export default PageItemHeader;
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/page/components/PageItemHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,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AAC,CAAC;QACxC,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/index.less";
|
|
2
|
+
:global {
|
|
3
|
+
.page-item-header {
|
|
4
|
+
background-color: transparent;
|
|
5
|
+
.document-pre {
|
|
6
|
+
margin-right: 0 !important;
|
|
7
|
+
line-height: unset !important;
|
|
8
|
+
> div {
|
|
9
|
+
margin-right: 0.5rem;
|
|
10
|
+
}
|
|
11
|
+
.page-move {
|
|
12
|
+
color: lightgray;
|
|
13
|
+
cursor: move;
|
|
14
|
+
font-size: 50%;
|
|
15
|
+
svg {
|
|
16
|
+
vertical-align: middle;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.page-item-tools {
|
|
23
|
+
> * {
|
|
24
|
+
display: inline-block;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { makeObservable, observable } from "mobx";
|
|
3
|
+
export class State {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** collapse PageTextItem */
|
|
6
|
+
Object.defineProperty(this, "collapse", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: false
|
|
11
|
+
});
|
|
12
|
+
/** over of MouseOver */
|
|
13
|
+
Object.defineProperty(this, "over", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: false
|
|
18
|
+
});
|
|
19
|
+
makeObservable(this);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
__decorate([
|
|
23
|
+
observable
|
|
24
|
+
], State.prototype, "collapse", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
observable
|
|
27
|
+
], State.prototype, "over", void 0);
|
|
28
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/page/components/PageItemHeader/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAU,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAI1D,MAAM,OAAO,KAAK;IAMjB;QALA,4BAA4B;QAChB;;;;mBAAkB,KAAK;WAAC;QACpC,wBAAwB;QACZ;;;;mBAAc,KAAK;WAAC;QAG/B,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACD;AAPY;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;mCAAqB"}
|
|
@@ -5,13 +5,13 @@ import React, { useState } from "react";
|
|
|
5
5
|
import { useAutoUpdateListData, useDocumentListEffect, useDocumentStore, } from "@voplus/morpho-document-core";
|
|
6
6
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
7
7
|
import { Menu } from "@voplus/antd";
|
|
8
|
-
import NewDocumentForm from "
|
|
8
|
+
import NewDocumentForm from "../../../../components/NewDocumentForm";
|
|
9
9
|
import PageItem from "../PageItem";
|
|
10
10
|
import PlusDropDown from "../PlusDropDown";
|
|
11
11
|
import { State } from "./state";
|
|
12
12
|
import classnames from "classnames";
|
|
13
13
|
import { observe } from "@voplus/morpho-ui";
|
|
14
|
-
import { useMetaStore } from "
|
|
14
|
+
import { useMetaStore } from "../../../../data/DocumentMetaStore";
|
|
15
15
|
const PageItems = (props) => {
|
|
16
16
|
const { id, readonly } = props;
|
|
17
17
|
const meta = useMetaStore();
|
|
@@ -33,12 +33,18 @@ const PageItems = (props) => {
|
|
|
33
33
|
sortable: false,
|
|
34
34
|
addAble: false,
|
|
35
35
|
}, renderItem: ({ item, index, connectDragSource }) => (React.createElement(Card, { className: classnames("page-item-card", { "page-item-card_zero": index === 0 }) },
|
|
36
|
-
React.createElement(PageItem, { id: item.id, connectDragSource: connectDragSource }))), moveAfter: moveAfter }),
|
|
37
|
-
React.createElement(NewDocumentForm, { parentId: id, type: state.type, className: classnames("new-page-item-form", { show: state.addAble }), onCancel: () => (state.addAble = false) }),
|
|
36
|
+
React.createElement(PageItem, { id: item.id, connectDragSource: connectDragSource }))), moveAfter: moveAfter, dragDropContainerClassName: "page-dd-item-container", infiniteScrollViewProps: { className: "page-scroll-view" } }),
|
|
37
|
+
React.createElement(NewDocumentForm, { parentId: id, type: state.type, placeholder: `Add a ${state.type} to this page`, className: classnames("new-page-item-form", { show: state.addAble }), onCancel: () => (state.addAble = false) }),
|
|
38
38
|
React.createElement(PlusDropDown, { className: classnames("plus-icon-position", { hide: state.addAble || !!readonly }), menu: React.createElement(Menu, { onClick: state.selectType },
|
|
39
39
|
React.createElement(Menu.Item, { key: "Text", style: { fontSize: "15px" } },
|
|
40
40
|
meta.getIcon({ type: "Text" }),
|
|
41
|
-
" Text")
|
|
41
|
+
" Text"),
|
|
42
|
+
React.createElement(Menu.Item, { key: "Graph", style: { fontSize: "15px" } },
|
|
43
|
+
meta.getIcon({ type: "Graph" }),
|
|
44
|
+
" Graph"),
|
|
45
|
+
React.createElement(Menu.Item, { key: "Document", style: { fontSize: "15px" } },
|
|
46
|
+
meta.getIcon({ type: "Folder" }),
|
|
47
|
+
" Folder")) }))));
|
|
42
48
|
/** document sort */
|
|
43
49
|
async function moveAfter(id, afterId, list) {
|
|
44
50
|
await documentStore.moveAfter(id, afterId);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/page/components/PageItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAA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IAAI,EAAE,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,EAClF,IAAI,EACH,oBAAC,IAAI,IAAC,OAAO,EAAE,KAAK,CAAC,UAAU;gBAC9B,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAC,MAAM,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;oBAC/C,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAS,CAAC;4BAC3B;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;oBAChD,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,OAAO,EAAS,CAAC;6BAC5B;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAC,UAAU,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;oBACnD,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAS,CAAC;8BAC7B,CACN,GAEP,CACwB,CAC3B,CAAC,CAAC;IACH,oBAAoB;IACpB,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe,EAAE,IAAW;QAChE,MAAM,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC,CAAC;AACF,eAAe,SAAS,CAAC"}
|
|
@@ -5,15 +5,19 @@
|
|
|
5
5
|
.list-view-header {
|
|
6
6
|
display: none;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
|
|
9
|
+
// set height
|
|
10
|
+
.page-scroll-view {
|
|
11
|
+
height: 100%;
|
|
12
|
+
> div {
|
|
11
13
|
height: 100%;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
background-color: @background-color-base;
|
|
15
|
+
}
|
|
16
|
+
.page-dd-item-container {
|
|
17
|
+
background-color: @background-color-base;
|
|
15
18
|
}
|
|
16
19
|
}
|
|
20
|
+
|
|
17
21
|
// end ugly code to set items height
|
|
18
22
|
|
|
19
23
|
.page-item-card {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/page/components/PageItems/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAK1D,MAAM,OAAO,KAAK;IAMjB;QALA,0BAA0B;QACd;;;;mBAAiB,KAAK;WAAC;QACnC,uBAAuB;QACX;;;;;WAAqB;QAQjC;;;;mBAAoB,CAAC,EAAE,GAAG,EAAY,EAAE,EAAE;gBACzC,IAAI,CAAC,IAAI,GAAG,GAAc,CAAC;gBAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACrB,CAAC;WAAC;QARD,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAQD;AAdY;IAAX,UAAU;sCAAwB;AAEvB;IAAX,UAAU;mCAAsB;AAQjC;IAFC,MAAM;yCAKL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/page/components/PlusDropDown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,YAAY,GAAG,CAAC,KAAiD,EAAE,EAAE;IAC1E,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAElC,MAAM,QAAQ,GAAG,CAChB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