@voplus/morpho-workspace 1.2.0-dev10 → 1.2.2
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/Modules.js +4 -0
- package/es/Modules.js.map +1 -1
- package/es/controls/AssignButton/index.js +1 -1
- package/es/controls/AssignButton/index.js.map +1 -1
- package/es/controls/StickyAddButton/index.js +1 -1
- package/es/controls/StickyAddButton/index.js.map +1 -1
- package/es/data/meeting/metas.d.ts +6 -2
- package/es/data/meeting/metas.js +8 -6
- package/es/data/meeting/metas.js.map +1 -1
- package/es/data/task/metas.d.ts +3 -1
- package/es/data/task/metas.js +4 -3
- package/es/data/task/metas.js.map +1 -1
- package/es/modules/board/components/Board/index.js +2 -2
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.js +7 -6
- package/es/modules/board/components/BoardColumn/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.less +2 -0
- package/es/modules/board/components/BoardColumn/state.d.ts +1 -0
- package/es/modules/board/components/BoardColumn/state.js +8 -2
- package/es/modules/board/components/BoardColumn/state.js.map +1 -1
- package/es/modules/board/components/SubDocument/index.js +1 -1
- package/es/modules/board/components/SubDocument/index.js.map +1 -1
- package/es/modules/board/components/SubDocumentList/index.js +2 -2
- package/es/modules/board/components/SubDocumentList/index.js.map +1 -1
- package/es/modules/meeting/MeetingRoutes.d.ts +3 -10
- package/es/modules/meeting/MeetingRoutes.js +3 -22
- package/es/modules/meeting/MeetingRoutes.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +16 -10
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +9 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.d.ts +2 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js +13 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.js +3 -1
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.js +3 -1
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js +3 -1
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js +3 -1
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingListView/index.d.ts +3 -2
- package/es/modules/meeting/pages/MeetingListView/index.js +3 -5
- package/es/modules/meeting/pages/MeetingListView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.d.ts +4 -1
- package/es/modules/meeting/pages/MeetingTabView/index.js +3 -5
- package/es/modules/meeting/pages/MeetingTabView/index.js.map +1 -1
- package/es/modules/menus/components/AddUsers/index.js +1 -1
- package/es/modules/menus/components/AddUsers/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/Company/index.js +2 -2
- package/es/modules/menus/pages/ListOptions/Company/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/Teams/index.js.map +1 -1
- package/es/modules/tasks/TasksRoutes.d.ts +2 -4
- package/es/modules/tasks/TasksRoutes.js +3 -12
- package/es/modules/tasks/TasksRoutes.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +4 -5
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +3 -2
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.js +5 -4
- package/es/modules/tasks/components/TaskPropertiesView/index.js.map +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js +3 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.d.ts +4 -1
- package/es/modules/tasks/pages/TaskTabView/index.js +6 -24
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/workspaces/components/AddUsers/index.js +1 -1
- package/es/modules/workspaces/components/AddUsers/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeDetail/index.js +1 -1
- package/es/pages/WorkType/WorkTypeDetail/index.js.map +1 -1
- package/package.json +21 -32
- package/changelog.md +0 -83
package/es/Modules.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { MeetingFolderTypeMeta, MeetingTypeMeta } from "./data/meeting/metas";
|
2
2
|
import { BoardTypeMeta } from "./data/board/metas";
|
3
3
|
import { DocumentMetaStore } from "@voplus/morpho-document/es/data/DocumentMetaStore";
|
4
|
+
import { DocumentUIService } from "@voplus/morpho-document/es/DocumentUIService";
|
4
5
|
import { FormElementRegister } from "@voplus/morpho-form/es/services";
|
5
6
|
import Routes from "./routes";
|
6
7
|
import { TaskTypeMeta } from "./data/task/metas";
|
@@ -9,6 +10,9 @@ import registerItems from "@voplus/morpho-form/es/elements/registerItems";
|
|
9
10
|
const Modules = {
|
10
11
|
/** Register necessary module resources. */
|
11
12
|
register: (context) => {
|
13
|
+
if (!context.getService(DocumentUIService.TypeName)) {
|
14
|
+
context.registerService(new DocumentUIService());
|
15
|
+
}
|
12
16
|
if (!context.getService(DocumentMetaStore.StoreName)) {
|
13
17
|
context.registerService(new DocumentMetaStore());
|
14
18
|
}
|
package/es/Modules.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Modules.js","sourceRoot":"","sources":["../src/Modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG9E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AACtF,OAAO,EAAE,mBAAmB,EAAE,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a,EAAE,CAAC,CAAC;QACnC,KAAK,CAAC,OAAO,CAAC,IAAI,YAAY,EAAE,CAAC,CAAC;QAElC,mBAAmB;QACnB,MAAM,CAAC,SAAS,EAAE,CAAC;IACpB,CAAC;CACD,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -8,7 +8,7 @@ const AssignButton = (props) => {
|
|
8
8
|
const buttonProps = Object.assign({}, props);
|
9
9
|
delete buttonProps["confirmTitle"];
|
10
10
|
delete buttonProps["execute"];
|
11
|
-
return (React.createElement(Button,
|
11
|
+
return (React.createElement(Button, { type: "link", onClick: onClick, ...buttonProps }, "Assign"));
|
12
12
|
function onClick() {
|
13
13
|
if (props.execute)
|
14
14
|
props.execute(batch);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/AssignButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAE5F,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,MAAM,YAAY,GAAG,CAAC,KAAwB,EAAE,EAAE;IACjD,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAChC,OAAO,OAAO,CAAC,GAAG,EAAE;QACnB,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAC7C,OAAO,WAAW,CAAC,cAAc,CAAC,CAAC;QACnC,OAAO,WAAW,CAAC,SAAS,CAAC,CAAC;QAE9B,OAAO,CACN,oBAAC,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/AssignButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAE5F,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAO5C,MAAM,YAAY,GAAG,CAAC,KAAwB,EAAE,EAAE;IACjD,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAChC,OAAO,OAAO,CAAC,GAAG,EAAE;QACnB,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAC7C,OAAO,WAAW,CAAC,cAAc,CAAC,CAAC;QACnC,OAAO,WAAW,CAAC,SAAS,CAAC,CAAC;QAE9B,OAAO,CACN,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO,KAAM,WAAW,aAE5C,CACT,CAAC;QAEF,SAAS,OAAO;YACf,IAAI,KAAK,CAAC,OAAO;gBAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACzC,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -6,7 +6,7 @@ import React from "react";
|
|
6
6
|
import { faPlus } from "@fortawesome/pro-light-svg-icons";
|
7
7
|
import { observe } from "@voplus/morpho-ui";
|
8
8
|
const StickyAddButton = (props) => {
|
9
|
-
return observe(() => (React.createElement(Corner,
|
9
|
+
return observe(() => (React.createElement(Corner, { ...props },
|
10
10
|
React.createElement("span", { className: "sticky-add-button" },
|
11
11
|
React.createElement(FAIcon, { icon: faPlus })))));
|
12
12
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/StickyAddButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AAEtB,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,eAAe,GAAG,CAAC,KAKxB,EAAE,EAAE;IACJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/StickyAddButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AAEtB,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,eAAe,GAAG,CAAC,KAKxB,EAAE,EAAE;IACJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,MAAM,OAAK,KAAK;QAChB,8BAAM,SAAS,EAAC,mBAAmB;YAClC,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAM,GAAI,CAClB,CACC,CACT,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
@@ -7,15 +7,19 @@ export declare class MeetingTypeMeta extends DefaultDocumentTypeMeta {
|
|
7
7
|
static TypeName: string;
|
8
8
|
get name(): string;
|
9
9
|
getIcon(document: IDocument): JSX.Element;
|
10
|
-
getRoute(document: IDocument): string;
|
11
10
|
getPropertiesView(document: IDocument): JSX.Element;
|
12
11
|
getQuickView(document: IDocument, props: QuickViewProps): JSX.Element;
|
12
|
+
getDefaultView(props: {
|
13
|
+
id: string;
|
14
|
+
}): JSX.Element | null;
|
13
15
|
}
|
14
16
|
export declare class MeetingFolderTypeMeta extends DefaultDocumentTypeMeta {
|
15
17
|
static TypeName: string;
|
16
18
|
get name(): string;
|
17
19
|
getIcon(document: IDocument): JSX.Element;
|
18
|
-
getRoute(document: IDocument): string;
|
19
20
|
getPropertiesView(document: IDocument): JSX.Element;
|
20
21
|
getQuickView(document: IDocument, props: QuickViewProps): JSX.Element;
|
22
|
+
getDefaultView(props: {
|
23
|
+
id: string;
|
24
|
+
}): JSX.Element | null;
|
21
25
|
}
|
package/es/data/meeting/metas.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
|
2
|
+
import DefaultView from "../../modules/meeting/pages/MeetingTabView";
|
2
3
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
3
4
|
import MeetingPropertiesView from "../../modules/meeting/components/MeetingPropertiesView";
|
4
5
|
import MeetingQuickViewDialog from "../../modules/meeting/components/MeetingQuickViewDialog";
|
6
|
+
import MeetingsFolderDefaultView from "../../modules/meeting/pages/MeetingListView";
|
5
7
|
import MeetingsFolderPropertiesView from "../../modules/meeting/components/MeetingsFolderProperitesView";
|
6
8
|
import MeetingsFolderQuickViewDialog from "../../modules/meeting/components/MeetingsFolderQuickViewDialog";
|
7
9
|
import React from "react";
|
@@ -14,9 +16,6 @@ export class MeetingTypeMeta extends DefaultDocumentTypeMeta {
|
|
14
16
|
getIcon(document) {
|
15
17
|
return React.createElement(FontAwesomeIcon, { icon: faCalendarDay });
|
16
18
|
}
|
17
|
-
getRoute(document) {
|
18
|
-
return `/meeting/${document.id}`;
|
19
|
-
}
|
20
19
|
getPropertiesView(document) {
|
21
20
|
return React.createElement(MeetingPropertiesView, { id: document.id });
|
22
21
|
}
|
@@ -24,6 +23,9 @@ export class MeetingTypeMeta extends DefaultDocumentTypeMeta {
|
|
24
23
|
props.id = document.id;
|
25
24
|
return (React.createElement(MeetingQuickViewDialog, { id: document.id, visible: props.visible, onCancel: props.onCancel }));
|
26
25
|
}
|
26
|
+
getDefaultView(props) {
|
27
|
+
return React.createElement(DefaultView, { id: props.id });
|
28
|
+
}
|
27
29
|
}
|
28
30
|
Object.defineProperty(MeetingTypeMeta, "TypeName", {
|
29
31
|
enumerable: true,
|
@@ -38,9 +40,6 @@ export class MeetingFolderTypeMeta extends DefaultDocumentTypeMeta {
|
|
38
40
|
getIcon(document) {
|
39
41
|
return React.createElement(FontAwesomeIcon, { icon: faCalendarDay });
|
40
42
|
}
|
41
|
-
getRoute(document) {
|
42
|
-
return `/meetings/${document.id}`;
|
43
|
-
}
|
44
43
|
getPropertiesView(document) {
|
45
44
|
return React.createElement(MeetingsFolderPropertiesView, { id: document.id });
|
46
45
|
}
|
@@ -48,6 +47,9 @@ export class MeetingFolderTypeMeta extends DefaultDocumentTypeMeta {
|
|
48
47
|
props.id = document.id;
|
49
48
|
return (React.createElement(MeetingsFolderQuickViewDialog, { id: document.id, visible: props.visible, onCancel: props.onCancel }));
|
50
49
|
}
|
50
|
+
getDefaultView(props) {
|
51
|
+
return React.createElement(MeetingsFolderDefaultView, { id: props.id });
|
52
|
+
}
|
51
53
|
}
|
52
54
|
Object.defineProperty(MeetingFolderTypeMeta, "TypeName", {
|
53
55
|
enumerable: true,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/meeting/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,qBAAqB,MAAM,wDAAwD,CAAC;AAC3F,OAAO,sBAAsB,MAAM,yDAAyD,CAAC;AAC7F,OAAO,4BAA4B,MAAM,+DAA+D,CAAC;AACzG,OAAO,6BAA6B,MAAM,gEAAgE,CAAC;AAE3G,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEjE,6CAA6C;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C,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAI,CAC7F,CAAC;IACH,CAAC;IAEM,cAAc,CAAC,KAAqB;QAC1C,OAAO,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAAC;IACtC,CAAC;;AAvBD;;;;WAAyB,SAAS;GAAC;AA0BpC,MAAM,OAAO,qBAAsB,SAAQ,uBAAuB;IAGjE,IAAW,IAAI;QACd,OAAO,qBAAqB,CAAC,QAAQ,CAAC;IACvC,CAAC;IAEM,OAAO,CAAC,QAAmB;QACjC,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,aAAa,GAAI,CAAC;IACjD,CAAC;IAEM,iBAAiB,CAAC,QAAmB;QAC3C,OAAO,oBAAC,4BAA4B,IAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,GAAI,CAAC;IAC1D,CAAC;IACM,YAAY,CAAC,QAAmB,EAAE,KAAqB;QAC7D,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;QACvB,OAAO,CACN,oBAAC,6BAA6B,IAC7B,EAAE,EAAE,QAAQ,CAAC,EAAE,EACf,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF,CAAC;IACH,CAAC;IAGM,cAAc,CAAC,KAAqB;QAC1C,OAAO,oBAAC,yBAAyB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAAC;IACpD,CAAC;;AA3BD;;;;WAAyB,gBAAgB;GAAC"}
|
package/es/data/task/metas.d.ts
CHANGED
@@ -6,8 +6,10 @@ import { QuickViewProps } from "@voplus/morpho-document/es/components/QuickViewD
|
|
6
6
|
export declare class TaskTypeMeta extends DefaultDocumentTypeMeta {
|
7
7
|
static TypeName: string;
|
8
8
|
get name(): string;
|
9
|
-
getRoute(document: IDocument): string;
|
10
9
|
getIcon(document: IDocument): JSX.Element;
|
11
10
|
getPropertiesView(document: IDocument): JSX.Element;
|
12
11
|
getQuickView(document: IDocument, props: QuickViewProps): JSX.Element;
|
12
|
+
getDefaultView(props: {
|
13
|
+
id: string;
|
14
|
+
}): JSX.Element | null;
|
13
15
|
}
|
package/es/data/task/metas.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
|
2
|
+
import DefaultView from "../../modules/tasks/pages/TaskTabView";
|
2
3
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
3
4
|
import React from "react";
|
4
5
|
import TaskDetail from "../../modules/tasks/components/TaskPropertiesView";
|
@@ -9,9 +10,6 @@ export class TaskTypeMeta extends DefaultDocumentTypeMeta {
|
|
9
10
|
get name() {
|
10
11
|
return TaskTypeMeta.TypeName;
|
11
12
|
}
|
12
|
-
getRoute(document) {
|
13
|
-
return `/tasks/${document.id}`;
|
14
|
-
}
|
15
13
|
getIcon(document) {
|
16
14
|
return React.createElement(FontAwesomeIcon, { icon: faTasks });
|
17
15
|
}
|
@@ -22,6 +20,9 @@ export class TaskTypeMeta extends DefaultDocumentTypeMeta {
|
|
22
20
|
props.id = document.id;
|
23
21
|
return (React.createElement(TaskQuickViewDialog, { id: document.id, visible: props.visible, onCancel: props.onCancel }));
|
24
22
|
}
|
23
|
+
getDefaultView(props) {
|
24
|
+
return React.createElement(DefaultView, { id: props.id });
|
25
|
+
}
|
25
26
|
}
|
26
27
|
Object.defineProperty(TaskTypeMeta, "TypeName", {
|
27
28
|
enumerable: true,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/task/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,M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IACH,CAAC;IAEM,cAAc,CAAC,KAAqB;QAC1C,OAAO,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAAC;IACtC,CAAC;;AAvBD;;;;WAAyB,MAAM;GAAC"}
|
@@ -51,13 +51,13 @@ const Board = (props) => {
|
|
51
51
|
const board = observe(() => (React.createElement(Droppable, { droppableId: props.parentId, type: "COLUMN", direction: "horizontal" }, (provided) => (React.createElement(Panable, { scroll: true },
|
52
52
|
React.createElement(Observer, null, () => {
|
53
53
|
var _a;
|
54
|
-
return (React.createElement("div",
|
54
|
+
return (React.createElement("div", { style: {
|
55
55
|
flex: 1,
|
56
56
|
height: "100%",
|
57
57
|
display: "inline-flex",
|
58
58
|
},
|
59
59
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
60
|
-
ref: provided.innerRef
|
60
|
+
ref: provided.innerRef, ...provided.droppableProps }, (_a = state.boardcolumns) === null || _a === void 0 ? void 0 :
|
61
61
|
_a.map((item, index) => (React.createElement(BoardColumn, { key: item.id, index: index, id: item.id, reload: state.reload, colorStyle: state.colorList[index % 6], destination: state.destination, source: state.source, onIds: (v) => state.onIds(v) }))),
|
62
62
|
provided.placeholder));
|
63
63
|
}))))));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACV,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF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E,CAAC,CAAC,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC,YAAa,CAChF,CACD,CACD,CACoB,CACC,CAC7B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
@@ -21,19 +21,20 @@ const BoardColumn = (props) => {
|
|
21
21
|
const boardStore = useBoardColumnStore();
|
22
22
|
const [state] = useState(new State(boardStore, documentStore));
|
23
23
|
state.props = props;
|
24
|
-
|
24
|
+
const boardcolumn = useBoardColumn(props.id, { reload: state.reload });
|
25
|
+
state.update(boardcolumn);
|
25
26
|
return observe(() => (React.createElement(Draggable, { draggableId: state.boardcolumn.id, index: index }, (provided, snapshot) => (React.createElement(Observer, null, () => {
|
26
27
|
var _a;
|
27
|
-
return (React.createElement("div",
|
28
|
+
return (React.createElement("div", { className: classnames(styles["board-column"], snapshot.isDragging && "action"),
|
28
29
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
29
|
-
ref: provided.innerRef
|
30
|
-
React.createElement("div",
|
30
|
+
ref: provided.innerRef, ...provided.draggableProps },
|
31
|
+
React.createElement("div", { className: "content-top", style: { borderTop: ` solid 2px ${props.colorStyle}` }, ...provided.dragHandleProps,
|
31
32
|
// avoid mouse down propagate to panable
|
32
|
-
onMouseDown: (e) => e.stopPropagation() }
|
33
|
+
onMouseDown: (e) => e.stopPropagation() },
|
33
34
|
React.createElement("div", { className: "board-name" },
|
34
35
|
state.checked && (React.createElement(Checkbox, { onChange: state.onCheckAllChange, checked: state.checkAll })),
|
35
36
|
state.editable ? (React.createElement(Spin, { spinning: state.loading },
|
36
|
-
React.createElement(Input.TextArea, { autoSize: true, autoFocus: true, value: state.name, onBlur: () => state.save(), onChange: (e) => runInAction(() => (state.name = e.target.value)) }))) : (React.createElement("div", { className: "task-card-title" }, ((_a = state.boardcolumn.name) === null || _a === void 0 ? void 0 : _a.length) > 15 ? (React.createElement(Tooltip, { title: state.boardcolumn.name, placement: "topLeft" },
|
37
|
+
React.createElement(Input.TextArea, { autoSize: true, autoFocus: true, value: state.name, onBlur: () => state.save(), onChange: (e) => runInAction(() => (state.name = e.target.value)) }))) : (React.createElement("div", { className: "task-card-title", onClick: state.onEdit }, ((_a = state.boardcolumn.name) === null || _a === void 0 ? void 0 : _a.length) > 15 ? (React.createElement(Tooltip, { title: state.boardcolumn.name, placement: "topLeft" },
|
37
38
|
React.createElement("span", null, state.boardcolumn.name))) : (state.boardcolumn.name))),
|
38
39
|
!state.editable && React.createElement("span", { className: "board-length" }, state.documents)),
|
39
40
|
React.createElement("div", { className: "board-control" },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardColumn/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,oBAAoB,MAAM,4DAA4D,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,kBAAkB,MAAM,0DAA0D,CAAC;AAC1F,OAAO,eAAe,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,M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 @@
|
|
68
69
|
.board-control {
|
69
70
|
display: flex;
|
70
71
|
align-items: center;
|
72
|
+
margin-left: 5px;
|
71
73
|
.svg-inline--fa {
|
72
74
|
cursor: pointer;
|
73
75
|
}
|
@@ -39,6 +39,7 @@ export declare class State {
|
|
39
39
|
addAble: boolean;
|
40
40
|
type: docType;
|
41
41
|
constructor(boardColumnStore: BoardColumnStore, docStore: DocumentStore);
|
42
|
+
update(boardcolumn: IBoardColumn): void;
|
42
43
|
/** DocumentMenu click edit */
|
43
44
|
onEdit: () => void;
|
44
45
|
/**@documents BoardColumn documents number
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { action, computed, makeObservable, observable, toJS } from "mobx";
|
2
|
+
import { action, computed, makeObservable, observable, runInAction, toJS } from "mobx";
|
3
3
|
import { message } from "@voplus/antd";
|
4
4
|
export class State {
|
5
5
|
constructor(boardColumnStore, docStore) {
|
@@ -155,6 +155,9 @@ export class State {
|
|
155
155
|
});
|
156
156
|
makeObservable(this);
|
157
157
|
}
|
158
|
+
update(boardcolumn) {
|
159
|
+
this.boardcolumn = boardcolumn;
|
160
|
+
}
|
158
161
|
/** edit save BoardColumn name function*/
|
159
162
|
async save() {
|
160
163
|
if (!this.name) {
|
@@ -165,7 +168,7 @@ export class State {
|
|
165
168
|
return (this.editable = false);
|
166
169
|
}
|
167
170
|
await this.docStore.edit(this.props.id, { data: { Name: this.name }, error: "message" });
|
168
|
-
this.editable = !this.editable;
|
171
|
+
runInAction(() => (this.editable = !this.editable));
|
169
172
|
}
|
170
173
|
/** BoardColumn文件是否 readonly */
|
171
174
|
get readonly() {
|
@@ -237,6 +240,9 @@ __decorate([
|
|
237
240
|
__decorate([
|
238
241
|
observable
|
239
242
|
], State.prototype, "type", void 0);
|
243
|
+
__decorate([
|
244
|
+
action
|
245
|
+
], State.prototype, "update", null);
|
240
246
|
__decorate([
|
241
247
|
action
|
242
248
|
], State.prototype, "onEdit", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardColumn/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardColumn/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAGvF,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAiBvC,MAAM,OAAO,KAAK;IAsBjB,YAA2B,gBAAkC,EAAU,QAAuB;;;;;mBAAnE;;;;;;mBAA4C;;QArBvE;;;;;WAA+B;QACnB;;;;;WAAiC;QACjC;;;;mBAAc,EAAE;WAAC;QAC7B,kCAAkC;QACtB;;;;mBAAmB,CAAC;WAAC;QACjC,uCAAuC;QAC3B;;;;mBAAa,EAAE;WAAC;QAChB;;;;mBAAgB,KAAK;WAAC;QAClC,4BAA4B;QAChB;;;;mBAAkB,KAAK;WAAC;QACpC,0BAA0B;QACd;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAA4B,EAAE;WAAC;QAC/B;;;;mBAAkB,KAAK;WAAC;QACxB;;;;mBAAkB,KAAK;WAAC;QACpC,yBAAyB;QACb;;;;mBAAkB,KAAK;WAAC;QACxB;;;;mBAAiB,KAAK;WAAC;QACvB;;;;;WAAqB;QAWjC,8BAA8B;QAE9B;;;;mBAAgB,GAAG,EAAE;gBACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;gBAClC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;YAChC,CAAC;WAAC;QAEF;sDAC8C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AX,UAAU;mCAAkB;AAEjB;IAAX,UAAU;wCAAsB;AAErB;IAAX,UAAU;kCAAiB;AAChB;IAAX,UAAU;qCAAuB;AAEtB;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;uCAAgC;AAC/B;IAAX,UAAU;uCAAyB;AACxB;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;uCAAyB;AACxB;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;mCAAsB;AAOjC;IADC,MAAM;mCAGN;AAID;IADC,MAAM;qCAIL;AAKF;IADC,MAAM;6CAKL;AAIF;IADC,MAAM;sCAIL;AAIF;IADC,MAAM;+CAIL;AAIF;IADC,MAAM;iCAWN;AAID;IADC,QAAQ;qCAGR;AAID;IADC,MAAM;wCAQN;AAID;IADC,MAAM;mCAIN;AAEO;IAAP,MAAM;6CAON"}
|
@@ -4,7 +4,7 @@ import SubDocumentList from "../SubDocumentList";
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
5
5
|
const SubDocument = (props) => {
|
6
6
|
const { id = "LIST", listType, destination, source } = props;
|
7
|
-
return observe(() => (React.createElement(Droppable, { droppableId: id, type: listType }, (dropProvided, dropSnapshot) => (React.createElement("div",
|
7
|
+
return observe(() => (React.createElement(Droppable, { droppableId: id, type: listType }, (dropProvided, dropSnapshot) => (React.createElement("div", { className: "wrapper", isdraggingover: dropSnapshot.isDraggingOver.toString(), isdraggingfrom: Boolean(dropSnapshot.draggingFromThisWith).toString(), ...dropProvided.droppableProps },
|
8
8
|
React.createElement("div", { className: "dropZone", ref: dropProvided.innerRef },
|
9
9
|
React.createElement(SubDocumentList, { id: id, onDocumentData: props.onDocumentData, destination: destination, source: source }),
|
10
10
|
dropProvided.placeholder))))));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/SubDocument/index.tsx"],"names":[],"mappings":"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,KACjE,YAAY,CAAC,cAAc;QAE/B,6BAAK,SAAS,EAAC,UAAU,EAAC,GAAG,EAAE,YAAY,CAAC,QAAQ;YACnD,oBAAC,eAAe,IACf,EAAE,EAAE,EAAE,EACN,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,GACb;YACD,YAAY,CAAC,WAAW,CACpB,CACD,CACN,CACU,CACZ,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -112,9 +112,9 @@ const SubDocumentList = (props) => {
|
|
112
112
|
});
|
113
113
|
return observe(() => (React.createElement("div", { className: styles["link-list-page"] },
|
114
114
|
React.createElement(Upload.Dragger, { className: classnames("link-upload", !disabled && "doc-drag-hover"), disabled: disabled, customRequest: (option) => customRequest(option), showUploadList: false, openFileDialogOnClick: false, multiple: true },
|
115
|
-
React.createElement(InfiniteScrollView, { empty: false, loading: docList.loading, hasMore: docList.hasMore, loadMore: () => docList.triggerNextPage() }, docList.data.map((item, index) => (React.createElement(Draggable, { key: item.id, draggableId: item.id, index: index }, (dragProvided, dragSnapshot) => (React.createElement("div",
|
115
|
+
React.createElement(InfiniteScrollView, { empty: false, loading: docList.loading, hasMore: docList.hasMore, loadMore: () => docList.triggerNextPage() }, docList.data.map((item, index) => (React.createElement(Draggable, { key: item.id, draggableId: item.id, index: index }, (dragProvided, dragSnapshot) => (React.createElement("div", { className: "link-container", isdragging: dragSnapshot.isDragging.toString(), isgroupedover: Boolean(dragSnapshot.combineTargetFor).toString(), ref: dragProvided.innerRef, ...dragProvided.draggableProps, ...dragProvided.dragHandleProps, "data-is-dragging": dragSnapshot.isDragging, "data-testid": props.id, "data-index": index,
|
116
116
|
// avoid mouse down propagate to panable
|
117
|
-
onMouseDown: (e) => e.stopPropagation() }
|
117
|
+
onMouseDown: (e) => e.stopPropagation() },
|
118
118
|
React.createElement("div", { className: "link-content" }, ui.renderDocumentCard({
|
119
119
|
id: item.id,
|
120
120
|
headerProps: { onShowQuickView: onChangeDisabled },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/SubDocumentList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAwB,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEvF,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,MAAM,eAAe,GAAG,CAAC,KAA2B,EAAE,EAAE;;IACvD,MAAM,EAAE,GAAG,oBAAoB,EAAE,CAAC;IAElC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,wCAAwC;IACxC,MAAM,IAAI,GAAG,kBAAkB,EAAE,CAAC;IAClC,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,KAAK,GAAG,g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EAAE;YAC3E,WAAW,CAAC,GAAG,EAAE;gBAChB,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBACvB,KAAK,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,CAAC;YACH,KAAK,CAAC,cAAe,CAAC,OAAO,EAAE,CAAC,CAAC;SACjC;IACF,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC;QACvC,oBAAC,MAAM,CAAC,OAAO,IACd,SAAS,EAAE,UAAU,CAAC,aAAa,EAAE,CAAC,QAAQ,IAAI,gBAAgB,CAAC,EACnE,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,CAAC,MAAW,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,EACrD,cAAc,EAAE,KAAK,EACrB,qBAAqB,EAAE,KAAK,EAC5B,QAAQ;YAER,oBAAC,kBAAkB,IAClB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,IAExC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,KAAa,EAAE,EAAE,CAAC,CAC/C,oBAAC,SAAS,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,IACzD,CAAC,YAAiB,EAAE,YAAiB,EAAE,EAAE,CAAC,CAC1C,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/SubDocumentList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAE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W,uBAAX,WAAW,CAAE,QAAQ,MAAK,KAAK,CAAC,EAAE,EAAE;YACvC,MAAM,GAAG,GAAG;gBACX,EAAE,EAAE,WAAW,CAAC,EAAE;aAClB,CAAC;YACF,OAAO,CAAC,MAAM,CAAC,GAAgB,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;YACpD,KAAK,CAAC,KAAK,EAAE,CAAC;YACd,KAAK,CAAC,cAAe,CAAC,OAAO,EAAE,CAAC,CAAC;SACjC;IACF,CAAC;IAED,kCAAkC;IAClC,SAAS,OAAO;QACf,MAAM,GAAG,GAAa,EAAE,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACxC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC7C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC,eAAe,CAAC,CAAC"}
|
@@ -1,18 +1,11 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { DocumentRoute } from "@voplus/morpho-document/es/routes";
|
2
3
|
declare const Routes: {
|
3
4
|
MeetingList: {
|
4
|
-
|
5
|
-
tabPattern: RegExp;
|
6
|
-
getUrl: (id?: string | undefined) => string;
|
7
|
-
component: (props: {
|
8
|
-
parentId?: string | undefined;
|
9
|
-
}) => JSX.Element;
|
5
|
+
getUrl: typeof DocumentRoute;
|
10
6
|
};
|
11
7
|
Meeting: {
|
12
|
-
|
13
|
-
tabPattern: RegExp;
|
14
|
-
getUrl: (id: string) => string;
|
15
|
-
component: () => JSX.Element;
|
8
|
+
getUrl: typeof DocumentRoute;
|
16
9
|
};
|
17
10
|
MeetingPrint: {
|
18
11
|
route: string;
|
@@ -1,27 +1,18 @@
|
|
1
1
|
import { Route, Switch } from "react-router";
|
2
2
|
import { BaseRoutes } from "@voplus/morpho-data";
|
3
|
-
import
|
3
|
+
import { DocumentRoute } from "@voplus/morpho-document/es/routes";
|
4
4
|
import MeetingPrintView from "./pages/MeetingPrintView";
|
5
|
-
import MeetingTabView from "./pages/MeetingTabView";
|
6
5
|
import React from "react";
|
7
6
|
const MeetingRoutes = () => {
|
8
7
|
return (React.createElement(Switch, null,
|
9
|
-
React.createElement(Route, { path: Routes.MeetingList.route, exact: true, component: Routes.MeetingList.component }),
|
10
|
-
React.createElement(Route, { path: Routes.Meeting.route, exact: true, component: Routes.Meeting.component }),
|
11
8
|
React.createElement(Route, { path: Routes.MeetingPrint.route, exact: true, component: Routes.MeetingPrint.component })));
|
12
9
|
};
|
13
10
|
const Routes = {
|
14
11
|
MeetingList: {
|
15
|
-
|
16
|
-
tabPattern: RegExp("/meetings/[^/]+"),
|
17
|
-
getUrl: (id) => `/meetings${id ? "/" + id : ""}`,
|
18
|
-
component: MeetingListView,
|
12
|
+
getUrl: DocumentRoute,
|
19
13
|
},
|
20
14
|
Meeting: {
|
21
|
-
|
22
|
-
tabPattern: RegExp("/meeting/[^/]+"),
|
23
|
-
getUrl: (id) => `/meeting/${id}`,
|
24
|
-
component: MeetingTabView,
|
15
|
+
getUrl: DocumentRoute,
|
25
16
|
},
|
26
17
|
MeetingPrint: {
|
27
18
|
route: "/meeting/print/:id",
|
@@ -30,21 +21,11 @@ const Routes = {
|
|
30
21
|
component: MeetingPrintView,
|
31
22
|
},
|
32
23
|
addRoutes: () => {
|
33
|
-
BaseRoutes.routes.push({
|
34
|
-
name: "meeting",
|
35
|
-
tabBasePattern: Routes.Meeting.tabPattern,
|
36
|
-
component: React.createElement(MeetingRoutes, null),
|
37
|
-
});
|
38
24
|
BaseRoutes.routes.push({
|
39
25
|
name: "meeting-print",
|
40
26
|
tabBasePattern: Routes.MeetingPrint.tabPattern,
|
41
27
|
component: React.createElement(MeetingRoutes, null),
|
42
28
|
});
|
43
|
-
BaseRoutes.routes.push({
|
44
|
-
name: "meeting-list",
|
45
|
-
tabBasePattern: Routes.MeetingList.tabPattern,
|
46
|
-
component: React.createElement(MeetingRoutes, null),
|
47
|
-
});
|
48
29
|
},
|
49
30
|
};
|
50
31
|
export default Routes;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MeetingRoutes.js","sourceRoot":"","sources":["../../../src/modules/meeting/MeetingRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,
|
1
|
+
{"version":3,"file":"MeetingRoutes.js","sourceRoot":"","sources":["../../../src/modules/meeting/MeetingRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,aAAa,GAAG,GAAG,EAAE;IAC1B,OAAO,CACN,oBAAC,MAAM;QACN,oBAAC,KAAK,IACL,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,EAC/B,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,SAAS,GACvC,CACM,CACT,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG;IACd,WAAW,EAAE;QACZ,MAAM,EAAE,aAAa;KACrB;IACD,OAAO,EAAE;QACR,MAAM,EAAE,aAAa;KACrB;IACD,YAAY,EAAE;QACb,KAAK,EAAE,oBAAoB;QAC3B,UAAU,EAAE,MAAM,CAAC,gBAAgB,CAAC;QACpC,MAAM,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,kBAAkB,EAAE,EAAE;QAC9C,SAAS,EAAE,gBAAgB;KAC3B;IAED,SAAS,EAAE,GAAG,EAAE;QACf,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,eAAe;YACrB,cAAc,EAAE,MAAM,CAAC,YAAY,CAAC,UAAU;YAC9C,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import { State } from "./state";
|
3
|
-
import { Button, Checkbox, Row } from "@voplus/antd";
|
3
|
+
import { Button, Checkbox, Modal, Row, Tooltip } from "@voplus/antd";
|
4
4
|
import React, { useEffect, useState } from "react";
|
5
|
-
import { faAngleDown, faAngleRight, faBars } from "@fortawesome/pro-light-svg-icons";
|
6
|
-
import { faClipboard,
|
5
|
+
import { faAngleDown, faAngleRight, faBars, faCommentAltEdit, } from "@fortawesome/pro-light-svg-icons";
|
6
|
+
import { faClipboard, faTasksAlt } from "@fortawesome/pro-duotone-svg-icons";
|
7
7
|
import { useAgenda, useAgendaStore } from "../../../../../data/meeting";
|
8
|
-
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
9
8
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
10
9
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
10
|
+
import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
|
11
11
|
import TaskList from "./components/TaskList";
|
12
12
|
import { TextEditor } from "@voplus/morpho-text";
|
13
13
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
@@ -39,14 +39,15 @@ const AgendaItem = (props) => {
|
|
39
39
|
connectDragSource(React.createElement("span", { className: classnames("sort-icon-move", { show: state.editable }) },
|
40
40
|
React.createElement(FAIcon, { icon: faBars, color: "#222" }))),
|
41
41
|
React.createElement("span", { className: classnames("agenda-item-index", { show: multiple || state.readonly }) }, `${(index || 0) + 1}.`))),
|
42
|
-
React.createElement(DocumentHeader, { id: id, clickNameEffect: "edit", autoSaveName: true, flagVisible: false, statusVisible: false, preVisible: false, tagsVisible: false, tools: React.createElement(ToolBar, { id: id }
|
42
|
+
React.createElement(DocumentHeader, { id: id, clickNameEffect: "edit", autoSaveName: true, flagVisible: false, statusVisible: false, preVisible: false, tagsVisible: false, tools: React.createElement(ToolBar, { id: id }, !state.readonly && (React.createElement(Tooltip, { title: "Edit agenda description" },
|
43
|
+
React.createElement(Button, { size: "small", shape: "circle", onClick: () => runInAction(() => {
|
44
|
+
state.description = agenda.description || "";
|
45
|
+
state.desVisible = true;
|
46
|
+
}) },
|
47
|
+
React.createElement(FAIcon, { icon: faCommentAltEdit, color: "#666" }))))), quickDataBarVisible: false }),
|
43
48
|
React.createElement("span", { onClick: onFoldIconClick, className: classnames("collapse-arrow", { "collapse-active": !state.expand }) },
|
44
49
|
React.createElement(FAIcon, { icon: state.expand ? faAngleDown : faAngleRight }))),
|
45
50
|
state.expand && (React.createElement("div", { className: classnames("agenda-item-box", { "collapse-inactive": state.expand }) },
|
46
|
-
React.createElement("div", { className: "section-title" },
|
47
|
-
React.createElement(FAIcon, { icon: faCommentAltLines, color: "#666" }),
|
48
|
-
"Agenda Description"),
|
49
|
-
React.createElement(DescriptionEditor, { id: id, description: agenda.description, readonly: state.readonly, collapsible: false }),
|
50
51
|
React.createElement("div", { className: "section-title" },
|
51
52
|
React.createElement(FAIcon, { icon: faClipboard, color: "#666" }),
|
52
53
|
"Agenda Minutes"),
|
@@ -63,7 +64,12 @@ const AgendaItem = (props) => {
|
|
63
64
|
React.createElement(FAIcon, { icon: faTasksAlt, color: "#666" }),
|
64
65
|
" Action Tasks"),
|
65
66
|
!state.readonly && (React.createElement(Button, { type: state.addAble ? "text" : "link", onClick: () => state.onAddTask(!state.addAble), style: { padding: 0, fontStyle: "italic" } }, state.addAble ? "Cancel" : "Add Task"))),
|
66
|
-
React.createElement(TaskList, { id: id, editable: state.addAble && !state.readonly }))))
|
67
|
+
React.createElement(TaskList, { id: id, editable: state.addAble && !state.readonly })))),
|
68
|
+
state.desVisible && (React.createElement(Modal, { title: `${agenda.name} Description`, visible: true, bodyStyle: { padding: "0", height: "50vh" }, okText: "Save", onCancel: () => runInAction(() => (state.desVisible = false)), confirmLoading: state.loading, onOk: () => state.onEdit({
|
69
|
+
Description: state.description,
|
70
|
+
}) },
|
71
|
+
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, defaultHtml: state.description, scroll: true, className: "agenda-description_mirror", onChange: (opt) => runInAction(() => (state.description =
|
72
|
+
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML)) }))))));
|
67
73
|
function onFoldIconClick() {
|
68
74
|
state.toggleExpand();
|
69
75
|
}
|