@voplus/morpho-workspace 1.2.0-dev07 → 1.2.0-dev08
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/controls/InlineSearch/index.d.ts +6 -0
- package/es/controls/InlineSearch/index.js +42 -0
- package/es/controls/InlineSearch/index.js.map +1 -0
- package/es/controls/InlineSearch/index.less +10 -0
- package/es/controls/MoreOperateDropdown/index.d.ts +1 -1
- package/es/controls/filters/DueDateFilter/state.js.map +1 -1
- package/es/controls/filters/StartDateFilter/state.js.map +1 -1
- package/es/data/board/mock.js +21 -0
- package/es/data/board/mock.js.map +1 -1
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/state.js.map +1 -1
- package/es/modules/board/components/SubDocumentList/index.js.map +1 -1
- package/es/modules/board/pages/BoardViewList/index.js.map +1 -1
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.d.ts +2 -2
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js +17 -25
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.d.ts +0 -2
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js +1 -11
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +11 -7
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.d.ts +4 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js +27 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js +6 -4
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/index.js +2 -1
- package/es/modules/meeting/components/AgendaList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.d.ts +20 -0
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.js +52 -0
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.less +12 -0
- package/es/modules/meeting/components/MeetingList/index.d.ts +2 -2
- package/es/modules/meeting/components/MeetingList/index.js +9 -3
- package/es/modules/meeting/components/MeetingList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingTaskList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js +2 -6
- 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/components/NewMeetingForm/index.js +8 -6
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingListView/index.js +6 -6
- package/es/modules/meeting/pages/MeetingListView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.js +4 -4
- package/es/modules/meeting/pages/MeetingTabView/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.js +10 -5
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.js +6 -2
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/state.js +2 -2
- package/es/modules/tasks/components/TaskItem/state.js.map +1 -1
- package/es/modules/tasks/controls/TaskStatusLabel/index.js +3 -1
- package/es/modules/tasks/controls/TaskStatusLabel/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskList/index.js +2 -1
- package/es/modules/tasks/pages/TaskList/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.js +4 -4
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.less +1 -1
- package/es/pages/Space/components/Tasks/index.less +1 -1
- package/es/pages/Space/pages/MySpace/state.js.map +1 -1
- package/es/pages/Work/components/WorkSummaryCards/WorkDueCard/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeDetail/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
- package/package.json +6 -6
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { action, makeObservable, observable } from "mobx";
|
2
|
+
import { action, makeObservable, observable, runInAction } from "mobx";
|
3
3
|
import { message } from "@voplus/antd";
|
4
4
|
export class State {
|
5
5
|
constructor(_store) {
|
@@ -62,13 +62,15 @@ export class State {
|
|
62
62
|
return;
|
63
63
|
if (!e.target.value)
|
64
64
|
return message.warning("Title is required");
|
65
|
-
this.loading = true;
|
65
|
+
runInAction(() => (this.loading = true));
|
66
66
|
await this._store.create({
|
67
67
|
data: { ParentId: this.id, Name: e.target.value },
|
68
68
|
error: "message",
|
69
69
|
});
|
70
|
-
|
71
|
-
|
70
|
+
runInAction(() => {
|
71
|
+
this.loading = false;
|
72
|
+
this.name = "";
|
73
|
+
});
|
72
74
|
}
|
73
75
|
});
|
74
76
|
makeObservable(this);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/meeting/components/AgendaList/AgendaNewForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,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C,MAAM,CAAC,KAAK,EAAE;oBACjD,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;gBACH,WAAW,CAAC,GAAG,EAAE;oBAChB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;oBACrB,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;gBAChB,CAAC,CAAC,CAAC;YACJ,CAAC;WAAC;QA1BD,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CA0BD;AAjCY;IAAX,UAAU;iCAAoB;AACnB;IAAX,UAAU;mCAAkB;AACjB;IAAX,UAAU;qCAA2B;AAC1B;IAAX,UAAU;sCAAwB;AAM3B;IAAP,MAAM;0CAEL;AAEM;IAAP,MAAM;0CAGL;AAIF;IADC,MAAM;yCAaL"}
|
@@ -10,6 +10,7 @@ import AgendaNewForm from "./AgendaNewForm";
|
|
10
10
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
11
11
|
import classnames from "classnames";
|
12
12
|
import { observe } from "@voplus/morpho-ui";
|
13
|
+
import { runInAction } from "mobx";
|
13
14
|
import { useAgendaListEffect } from "../../../../data/meeting";
|
14
15
|
import { useDeepMemo } from "@voplus/morpho-data";
|
15
16
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
@@ -44,7 +45,7 @@ const AgendaList = (props) => {
|
|
44
45
|
},
|
45
46
|
onAdd: () => (state.addAble = !state.addAble),
|
46
47
|
}, moveAfter: moveAfter, renderItem: ({ item, index, connectDragSource, multiple }) => (React.createElement(AgendaItem, { key: item.id, id: item.id, index: index, multiple: multiple, preview: !!preview, reload: !!props.readonly, connectDragSource: connectDragSource })) }),
|
47
|
-
state.addAble && (React.createElement(AgendaNewForm, { id: props.parentId, single: true, onCancel: () => (state.addAble = false) }))))));
|
48
|
+
state.addAble && (React.createElement(AgendaNewForm, { id: props.parentId, single: true, onCancel: () => runInAction(() => (state.addAble = false)) }))))));
|
48
49
|
function onMove(state) {
|
49
50
|
documents.cut(state.ids);
|
50
51
|
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AAG;yBACrC;wBACD,QAAQ,EAAE,QAAQ;qBAClB;oBACD,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC;iBAC7C,EACD,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAO,EAAE,EAAE,CAAC,CAClE,oBAAC,UAAU,IACV,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,CAAC,CAAC,OAAO,EAClB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,EACxB,iBAAiB,EAAE,iBAAiB,GACnC,CACF,GACA;YAED,KAAK,CAAC,OAAO,IAAI,CACjB,oBAAC,aAAa,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/AgendaList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAmB,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAEN,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACN,WAAW,EACX,YAAY,EACZ,UAAU,GACV,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAE5C,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,O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AI,EAAE,EAC3B,QAAQ,EAAE,KAAK,EACf,SAAS,EAAE,UAAU,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,GAC/D;gBACD,CAAC,MAAM,IAAI,CACX,6BACC,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE;wBAC3C,IAAI,EAAE,KAAK,CAAC,KAAK;qBACjB,CAAC;oBAEF,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;wBAC9D,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,YAAY,EAAE,EAAE,GAAI;wBAC7C,oBAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,GAAG,CAChB,CACL,CACN,CACe,GAEjB,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import React, { CSSProperties } from "react";
|
2
|
+
import style from "./index.less";
|
3
|
+
declare const QuickSearch: {
|
4
|
+
(props: {
|
5
|
+
/** reset 默认值标识/parentId */
|
6
|
+
renderId?: string | undefined;
|
7
|
+
title?: string | undefined;
|
8
|
+
placeholder?: string | undefined;
|
9
|
+
/** width of Input */
|
10
|
+
width?: string | undefined;
|
11
|
+
onChange?: ((value: string) => void) | undefined;
|
12
|
+
onPressEnter?: ((value: string) => void | Promise<void>) | undefined;
|
13
|
+
className?: string | undefined;
|
14
|
+
style?: React.CSSProperties | undefined;
|
15
|
+
}): JSX.Element;
|
16
|
+
defaultProps: {
|
17
|
+
width: string;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
export default QuickSearch;
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
2
|
+
import { faSearch, faTimes } from "@fortawesome/pro-light-svg-icons";
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
4
|
+
import { Input } from "@voplus/antd";
|
5
|
+
import classnames from "classnames";
|
6
|
+
import style from "./index.less";
|
7
|
+
const QuickSearch = (props) => {
|
8
|
+
const [inputVisible, setInputVisible] = useState(false);
|
9
|
+
const [keyword, setKeyword] = useState("");
|
10
|
+
const [timer, setTimer] = useState();
|
11
|
+
useEffect(() => {
|
12
|
+
setInputVisible(false);
|
13
|
+
setKeyword("");
|
14
|
+
}, [props === null || props === void 0 ? void 0 : props.renderId]);
|
15
|
+
return inputVisible ? (React.createElement("span", { className: classnames(style["quick-search"], props.className), style: props.style },
|
16
|
+
React.createElement(Input, { autoFocus: true, value: keyword, prefix: React.createElement(FAIcon, { icon: faSearch }), suffix: React.createElement(FAIcon, { icon: faTimes, onClick: cancel }), placeholder: props.placeholder, onChange: onChange, onPressEnter: () => props.onPressEnter && props.onPressEnter(keyword), style: { width: props.width } }))) : (React.createElement("span", { className: classnames(style["quick-search"], props.className), style: props.style, onClick: () => setInputVisible(true) },
|
17
|
+
React.createElement(FAIcon, { icon: faSearch, className: classnames({ "margin-right-10": props.title }) }),
|
18
|
+
props.title));
|
19
|
+
function onChange(e) {
|
20
|
+
setKeyword(e.target.value);
|
21
|
+
onSearch(e.target.value);
|
22
|
+
}
|
23
|
+
/** 若放置在onChange里,
|
24
|
+
* 1. props.onChange?.(e.target.value)
|
25
|
+
* If you're seeing this, you're accessing the property `target` on a released/nullified synthetic event.
|
26
|
+
* 2. props.onChange?.(keyword)
|
27
|
+
* keyword 会有点点延迟,keyword !== e.target.value
|
28
|
+
*/
|
29
|
+
function onSearch(value) {
|
30
|
+
if (timer)
|
31
|
+
clearTimeout(timer);
|
32
|
+
setTimer(setTimeout(() => {
|
33
|
+
var _a;
|
34
|
+
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, value);
|
35
|
+
setTimer(undefined);
|
36
|
+
}, 1000));
|
37
|
+
}
|
38
|
+
/** */
|
39
|
+
function cancel() {
|
40
|
+
var _a;
|
41
|
+
setInputVisible(false);
|
42
|
+
if (keyword) {
|
43
|
+
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, "");
|
44
|
+
setKeyword("");
|
45
|
+
}
|
46
|
+
}
|
47
|
+
};
|
48
|
+
QuickSearch.defaultProps = {
|
49
|
+
width: "auto",
|
50
|
+
};
|
51
|
+
export default QuickSearch;
|
52
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/meeting/components/MeetingList/QuickSearch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,MAAM,WAAW,GAAG,CAAC,KAWpB,EAAE,EAAE;IACJ,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAExD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE3C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAA8B,CAAC;IAEjE,SAAS,CAAC,GAAG,EAAE;QACd,eAAe,CAAC,KAAK,CAAC,CAAC;QACvB,UAAU,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,CAAC,CAAC,CAAC;IAEtB,OAAO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;QAC/B,QAAQ,CACP,UAAU,CAAC,GAAG,EAAE;;YACf,MAAA,KAAK,CAAC,QAAQ,+CAAd,KAAK,EAAY,KAAK,CAAC,CAAC;YACxB,QAAQ,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC,EAAE,IAAI,CAAQ,CACf,CAAC;IACH,CAAC;IACD,MAAM;IACN,SAAS,MAAM;;QACd,eAAe,CAAC,KAAK,CAAC,CAAC;QACvB,IAAI,OAAO,EAAE;YACZ,MAAA,KAAK,CAAC,QAAQ,+CAAd,KAAK,EAAY,EAAE,CAAC,CAAC;YACrB,UAAU,CAAC,EAAE,CAAC,CAAC;SACf;IACF,CAAC;AACF,CAAC,CAAC;AAEF,WAAW,CAAC,YAAY,GAAG;IAC1B,KAAK,EAAE,MAAM;CACb,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -6,12 +6,13 @@ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2"
|
|
6
6
|
import MeetingItem from "../../components/MeetingItem";
|
7
7
|
import MeetingPropertiesView from "../../components/MeetingPropertiesView";
|
8
8
|
import NewMeetingForm from "../../components/NewMeetingForm";
|
9
|
+
import QuickSearch from "@voplus/morpho-ui/es/components/layout/ListView/controls/QuickSearch";
|
9
10
|
import { observe } from "@voplus/morpho-ui";
|
10
11
|
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
11
12
|
import { useMeetingListEffect } from "../../../../data/meeting";
|
12
13
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
13
14
|
const MeetingList = (props) => {
|
14
|
-
const { parentId, readonly } = props;
|
15
|
+
const { parentId, quickSearch, readonly } = props;
|
15
16
|
const [addAble, setAddAble] = useState(false);
|
16
17
|
const [activeId, setActiveId] = useState("");
|
17
18
|
const list = useCreateListDataState({
|
@@ -24,8 +25,9 @@ const MeetingList = (props) => {
|
|
24
25
|
useRenderOnChange(() => list.filters.options);
|
25
26
|
useMeetingListEffect(list, (result) => list.union(result), list.filters.options);
|
26
27
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
27
|
-
React.createElement(ListView, { headerProps: {
|
28
|
-
viewTitle: props.title,
|
28
|
+
React.createElement(ListView, { renderId: parentId, headerProps: {
|
29
|
+
// viewTitle: props.title,
|
30
|
+
header: quickSearch ? undefined : (React.createElement(QuickSearch, { title: "Search", className: "view-title", onChange: onQuickSearch })),
|
29
31
|
filterViewProps: {
|
30
32
|
columns: [
|
31
33
|
React.createElement(AssigneeViewFilter, { key: "AssigneeViewFilter" }),
|
@@ -33,6 +35,7 @@ const MeetingList = (props) => {
|
|
33
35
|
],
|
34
36
|
},
|
35
37
|
addAble: !readonly,
|
38
|
+
quickSearch: !!quickSearch,
|
36
39
|
onAdd: onAdd,
|
37
40
|
}, formViewTitle: "Add Meeting", formView: !props.propertiesView && React.createElement(NewMeetingForm, { parentId: parentId }), propertiesView: (id) => !props.propertiesView && React.createElement(MeetingPropertiesView, { id: id }), renderItem: ({ item }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
38
41
|
active: activeId === item.id,
|
@@ -48,6 +51,9 @@ const MeetingList = (props) => {
|
|
48
51
|
return;
|
49
52
|
setAddAble(true);
|
50
53
|
}
|
54
|
+
function onQuickSearch(value) {
|
55
|
+
list.triggerName(value);
|
56
|
+
}
|
51
57
|
};
|
52
58
|
export default MeetingList;
|
53
59
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,k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IAAI,EAAE,eAAe,EAAE,YAAY,EAAE,GAChE,CACF,CAAC,CACG,CACN,CAAC,CACU,CACb,CACI,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
@@ -1,11 +1,9 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import { Archive, Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
3
3
|
import React, { useState } from "react";
|
4
|
-
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
5
4
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
6
5
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
7
6
|
import MeetingList from "../MeetingList";
|
8
|
-
import { Skeleton } from "@voplus/antd";
|
9
7
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
10
8
|
import { observe } from "@voplus/morpho-ui";
|
11
9
|
import { useDocument } from "@voplus/morpho-document-core";
|
@@ -18,10 +16,8 @@ const MeetingsFolderPropertiesView = (props) => {
|
|
18
16
|
React.createElement(Open, { url: `/meetings/${id}` }),
|
19
17
|
React.createElement(Reload, { action: onReload }),
|
20
18
|
React.createElement(Archive, null)) }),
|
21
|
-
React.createElement(DocumentTabs, { id: id, exclude: ["Meeting"], details: React.createElement("div", { className: "meetings-folder-properties-view" },
|
22
|
-
|
23
|
-
React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: document.description, readonly: document.readonly })),
|
24
|
-
React.createElement(MeetingList, { parentId: id, title: "Meetings", propertiesView: true, readonly: document.readonly })) }))))));
|
19
|
+
React.createElement(DocumentTabs, { id: id, exclude: ["Meeting"], detailTitle: "Meetings", details: React.createElement("div", { className: "meetings-folder-properties-view" },
|
20
|
+
React.createElement(MeetingList, { parentId: id, propertiesView: true, readonly: document.readonly })) }))))));
|
25
21
|
/** reload data */
|
26
22
|
function onReload() {
|
27
23
|
setReload(false);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingsFolderProperitesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingsFolderProperitesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,4BAA4B,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9D,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEjC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,oBAAoB,IACjC,MAAM,IAAI,CACV,oBAAC,KAAK,CAAC,QAAQ;QACd,oBAAC,cAAc,IACd,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,IAAI,EACT,YAAY,EAAE,KAAK,EACnB,iBAAiB,EAAC,MAAM,EACxB,eAAe,EAAC,MAAM,EACtB,YAAY,QACZ,KAAK,EACJ,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;gBAC/C,oBAAC,IAAI,IAAC,GAAG,EAAE,aAAa,EAAE,EAAE,GAAI;gBAChC,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;gBAC5B,oBAAC,OAAO,OAAG,CACF,GAEV;QACF,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,CAAC,SAAS,CAAC,EACpB,WAAW,EAAC,UAAU,EACtB,OAAO,EACN,6BAAK,SAAS,EAAC,iCAAiC;gBAC/C,oBAAC,WAAW,IAAC,QAAQ,EAAE,EAAE,EAAE,cAAc,QAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAAI,CACpE,GAEN,CACc,CACjB,CACI,CACN,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
@@ -18,7 +18,9 @@ const MeetingsFolderQuickViewDialog = (props) => {
|
|
18
18
|
React.createElement(Archive, null)) }))) }, reload && (React.createElement(React.Fragment, null,
|
19
19
|
document.loading ? (React.createElement("div", { style: { padding: "10px 20px" } },
|
20
20
|
React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: props.id, description: document.description, readonly: document.readonly, padding: "0px" })),
|
21
|
-
React.createElement(MeetingList, { parentId: props.id,
|
21
|
+
React.createElement(MeetingList, { parentId: props.id,
|
22
|
+
// title="Meetings"
|
23
|
+
propertiesView: true, readonly: document.readonly }))))));
|
22
24
|
/** reload data */
|
23
25
|
function onReload() {
|
24
26
|
setReload(false);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingsFolderQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,eAAe,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,6BAA6B,GAAG,CAAC,KAItC,EAAE,EAAE;IACJ,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEvC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,IACf,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,OAAO,EAAE,CAAC,SAAS,CAAC,EACpB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,SAAS,EAAC,4BAA4B,EACtC,MAAM,EACL,oBAAC,KAAK,CAAC,QAAQ,QACb,MAAM,IAAI,CACV,oBAAC,cAAc,IACd,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,IAAI,EAAC,IAAI,EACT,YAAY,EAAE,KAAK,EACnB,iBAAiB,EAAC,MAAM,EACxB,eAAe,EAAC,MAAM,EACtB,YAAY,QACZ,KAAK,EACJ,oBAAC,OAAO,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE;gBACpB,oBAAC,IAAI,IAAC,GAAG,EAAE,aAAa,KAAK,CAAC,EAAE,EAAE,GAAI;gBACtC,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;gBAC5B,oBAAC,OAAO,OAAG,CACF,GAEV,CACF,CACe,IAGjB,MAAM,IAAI,CACV,oBAAC,KAAK,CAAC,QAAQ;QACb,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CACnB,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;YACnC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,iBAAiB,IACjB,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,WAAW,EAAE,QAAQ,CAAC,WAAW,EACjC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAC3B,OAAO,EAAC,KAAK,GACZ,CACF;QACD,oBAAC,WAAW,IACX,QAAQ,EAAE,KAAK,CAAC,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingsFolderQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,eAAe,MAAM,uDAAuD,CAA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W,EAAE;YACnC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,iBAAiB,IACjB,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,WAAW,EAAE,QAAQ,CAAC,WAAW,EACjC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAC3B,OAAO,EAAC,KAAK,GACZ,CACF;QACD,oBAAC,WAAW,IACX,QAAQ,EAAE,KAAK,CAAC,EAAE;YAClB,mBAAmB;YACnB,cAAc,QACd,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAC1B,CACc,CACjB,CACgB,CAClB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
@@ -78,17 +78,19 @@ const NewMeetingForm = (props) => {
|
|
78
78
|
async function onSubmit() {
|
79
79
|
if (!state.params.Name)
|
80
80
|
return message.warning("Title is required");
|
81
|
-
state.loading = true;
|
81
|
+
runInAction(() => (state.loading = true));
|
82
82
|
const res = await meetings.create({
|
83
83
|
data: { ...state.params, ParentId: props.parentId },
|
84
84
|
error: "message",
|
85
85
|
});
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
86
|
+
runInAction(() => {
|
87
|
+
state.loading = false;
|
88
|
+
if (!props.simple)
|
89
|
+
asideContext.openAside(React.createElement(MeetingPropertiesView, { id: res.id }), { span: 12 });
|
90
|
+
state.params = Params;
|
91
|
+
});
|
90
92
|
if (agendaRef.current)
|
91
|
-
agendaRef.current.clear();
|
93
|
+
return agendaRef.current.clear();
|
92
94
|
}
|
93
95
|
/** key键:'Esc' cancel added */
|
94
96
|
function onKeyDown(e) {
|
@@ -1 +1 @@
|
|
1
|
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QACpE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;QAE1C,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;YACjC,IAAI,EAAE,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;YACnD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,IAAI,CAAC,KAAK,CAAC,MAAM;gBAChB,YAAa,CAAC,SAAS,CAAC,oBAAC,qBAAqB,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YAC9E,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,CAAC,CAAC,CAAC;QAEH,IAAI,SAAS,CAAC,OAAO;YAAE,OAAO,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACzD,CAAC;IACD,8BAA8B;IAC9B,SAAS,SAAS,CAAC,CAAM;;QACxB,IAAI,CAAC,CAAC,OAAO,KAAK,EAAE;YAAE,OAAO;QAC7B,MAAA,KAAK,CAAC,QAAQ,+CAAd,KAAK,CAAa,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import React, { useContext
|
1
|
+
import React, { useContext } from "react";
|
2
2
|
import { __RouterContext } from "react-router";
|
3
|
-
import { observe } from "@voplus/morpho-ui";
|
3
|
+
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
4
4
|
import MeetingList from "../../components/MeetingList";
|
5
|
-
import { runInAction } from "mobx";
|
6
5
|
import { useDocument } from "@voplus/morpho-document-core";
|
7
6
|
import { useTabItem } from "@voplus/morpho-data";
|
8
7
|
const MeetingListView = (props) => {
|
@@ -10,10 +9,11 @@ const MeetingListView = (props) => {
|
|
10
9
|
const id = props.parentId || match.params.id;
|
11
10
|
const tab = useTabItem();
|
12
11
|
const document = useDocument(id);
|
13
|
-
|
14
|
-
|
12
|
+
useAutorunEffect(() => {
|
13
|
+
var _a;
|
14
|
+
tab.title = (_a = document === null || document === void 0 ? void 0 : document.name) !== null && _a !== void 0 ? _a : "Meetings";
|
15
15
|
});
|
16
|
-
return observe(() => React.createElement(MeetingList, { parentId: id }));
|
16
|
+
return observe(() => React.createElement(MeetingList, { parentId: id, quickSearch: true }));
|
17
17
|
};
|
18
18
|
export default MeetingListView;
|
19
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAS,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,eAAe,GAAG,CAAC,KAA4B,EAAE,EAAE;IACxD,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,eAAe,CAE3C,CAAC;IACF,MAAM,EAAE,GAAG,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE7C,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEjC,gBAAgB,CAAC,GAAG,EAAE;;QACrB,GAAG,CAAC,KAAK,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,mCAAI,UAAU,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,WAAW,IAAC,QAAQ,EAAE,EAAE,EAAE,WAAW,SAAG,CAAC,CAAC;AACjE,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import React, { useContext, useEffect, useState } from "react";
|
2
2
|
import { __RouterContext } from "react-router";
|
3
|
+
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
3
4
|
import AgendaList from "../../components/AgendaList";
|
4
5
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
5
6
|
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
6
7
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
7
8
|
import MeetingHeader from "../../components/MeetingHeader";
|
8
9
|
import { Skeleton } from "@voplus/antd";
|
9
|
-
import { observe } from "@voplus/morpho-ui";
|
10
10
|
import { runInAction } from "mobx";
|
11
11
|
import styles from "./index.less";
|
12
12
|
import { useMeeting } from "../../../../data/meeting";
|
@@ -21,9 +21,9 @@ const MeetingTabView = () => {
|
|
21
21
|
useEffect(() => {
|
22
22
|
runInAction(() => asideContext.openAside(AsideElement, { span: 12 }));
|
23
23
|
}, []);
|
24
|
-
|
25
|
-
|
26
|
-
}
|
24
|
+
useAutorunEffect(() => {
|
25
|
+
tab.title = meeting.name;
|
26
|
+
});
|
27
27
|
const AsideElement = (React.createElement("div", { className: "module-tab-view_aside" },
|
28
28
|
React.createElement(DocumentTabs, { id: id, exclude: ["Agenda"] })));
|
29
29
|
return observe(() => (React.createElement("div", { className: "module-tab-view" },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingTabView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAS,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingTabView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAS,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,cAAc,GAAG,GAAG,EAAE;IAC3B,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,eAAe,CAE3C,CAAC;IACF,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IA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AAC,CAAC,CAClB,6BAAK,SAAS,EAAC,qBAAqB;oBACnC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,OAAO,CAAC,WAAW,EAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,OAAO,EAAC,eAAe,GACtB,CACF;gBAED,oBAAC,UAAU,IAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,EAAE,GAAI,CACxC,CACjB,CACI,CACQ,CACV,CACN,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -10,6 +10,7 @@ import classnames from "classnames";
|
|
10
10
|
import { faListAlt } from "@fortawesome/pro-light-svg-icons";
|
11
11
|
import moment from "moment";
|
12
12
|
import { observe } from "@voplus/morpho-ui";
|
13
|
+
import { runInAction } from "mobx";
|
13
14
|
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
14
15
|
import { useTaskStore } from "../../../../data/task";
|
15
16
|
const NewTaskForm = (props) => {
|
@@ -20,7 +21,7 @@ const NewTaskForm = (props) => {
|
|
20
21
|
state.showMore && React.createElement("h3", null, "Add Task"),
|
21
22
|
React.createElement(Form, { layout: "vertical" }, state.showMore || !props.simple ? (React.createElement(React.Fragment, null,
|
22
23
|
React.createElement(Form.Item, { label: "Title for your task" },
|
23
|
-
React.createElement(Input, { autoFocus: true, value: state.params.Name, onChange: (e) => (state.params.Name = e.target.value), onPressEnter: () => (!!props.simple && !state.showMore ? onSubmit() : null), onKeyDown: onKeyDown })),
|
24
|
+
React.createElement(Input, { autoFocus: true, value: state.params.Name, onChange: (e) => runInAction(() => (state.params.Name = e.target.value)), onPressEnter: () => (!!props.simple && !state.showMore ? onSubmit() : null), onKeyDown: onKeyDown })),
|
24
25
|
React.createElement(Form.Item, { label: "Description of your task" },
|
25
26
|
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", onChange: (opt) => (state.params.Description =
|
26
27
|
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })),
|
@@ -48,7 +49,7 @@ const NewTaskForm = (props) => {
|
|
48
49
|
React.createElement(Spin, { spinning: !!props.simple && !!state.loading },
|
49
50
|
React.createElement(Row, { justify: "space-between" },
|
50
51
|
React.createElement(Col, { flex: 1 },
|
51
|
-
React.createElement(Input, { autoFocus: true, value: state.params.Name, placeholder: "Enter a title for this task", onChange: (e) => (state.params.Name = e.target.value), onPressEnter: () => (!!props.simple && !state.showMore ? onSubmit() : null), onKeyDown: onKeyDown })),
|
52
|
+
React.createElement(Input, { autoFocus: true, value: state.params.Name, placeholder: "Enter a title for this task", onChange: (e) => runInAction(() => (state.params.Name = e.target.value)), onPressEnter: () => (!!props.simple && !state.showMore ? onSubmit() : null), onKeyDown: onKeyDown })),
|
52
53
|
props.simple && (React.createElement(Col, null,
|
53
54
|
React.createElement("span", { onClick: onShowMore, className: "detailed" },
|
54
55
|
React.createElement(FAIcon, { icon: faListAlt, size: "lg" }))))))))))));
|
@@ -57,13 +58,15 @@ const NewTaskForm = (props) => {
|
|
57
58
|
return message.warning("Title is required");
|
58
59
|
if (props.onSubmitSave)
|
59
60
|
return props.onSubmitSave(state.params);
|
60
|
-
state.loading = true;
|
61
|
+
runInAction(() => (state.loading = true));
|
61
62
|
const res = await tasks.create({
|
62
63
|
data: { ...state.params, ParentId: props.parentId },
|
63
64
|
error: "message",
|
64
65
|
});
|
65
|
-
|
66
|
-
|
66
|
+
runInAction(() => {
|
67
|
+
state.loading = false;
|
68
|
+
state.params = state.Params;
|
69
|
+
});
|
67
70
|
if (props.showView)
|
68
71
|
return asideContext.openAside(React.createElement(TaskPropertiesView, { id: res.id }), { span: 12 });
|
69
72
|
// if (state.showMore && props!.onSave) props!.onSave();
|
@@ -81,6 +84,8 @@ const NewTaskForm = (props) => {
|
|
81
84
|
state.params = state.Params;
|
82
85
|
if (props.showView)
|
83
86
|
return asideContext.closeAside();
|
87
|
+
if (props.simple)
|
88
|
+
state.showMore = false;
|
84
89
|
if (props.onCancel)
|
85
90
|
props.onCancel();
|
86
91
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/NewTaskForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACN,MAAM,EACN,QAAQ,EACR,GAAG,EACH,UAAU,EACV,IAAI,EACJ,KAAK,EACL,GAAG,EACH,KAAK,EACL,IAAI,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/NewTaskForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACN,MAAM,EACN,QAAQ,EACR,GAAG,EACH,UAAU,EACV,IAAI,EACJ,KAAK,EACL,GAAG,EACH,KAAK,EACL,IAAI,EACJ,OAAO,GACP,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,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
17
|
import classnames from "classnames";
|
18
18
|
import { observe } from "@voplus/morpho-ui";
|
19
|
+
import { runInAction } from "mobx";
|
19
20
|
import { useDeepMemo } from "@voplus/morpho-data";
|
20
21
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
21
22
|
const SubTaskList = (props) => {
|
22
|
-
const { readonly, total } = props;
|
23
|
+
const { readonly, total, header } = props;
|
23
24
|
const documents = useDocumentStore();
|
24
25
|
const taskStore = useTaskStore();
|
25
26
|
const state = useDeepMemo(() => new State(), [props.parentId]);
|
@@ -41,7 +42,7 @@ const SubTaskList = (props) => {
|
|
41
42
|
list.remove(id);
|
42
43
|
}
|
43
44
|
list.union(result);
|
44
|
-
state.total = total;
|
45
|
+
runInAction(() => (state.total = total));
|
45
46
|
}, { ...list.filters.options, Total: true });
|
46
47
|
/** */
|
47
48
|
useOnDeleteDocument((s, doc) => {
|
@@ -62,6 +63,7 @@ const SubTaskList = (props) => {
|
|
62
63
|
React.createElement(ListDataContext.Provider, { value: list },
|
63
64
|
React.createElement("div", { className: classnames("sub-task-list", props.className) },
|
64
65
|
!state.showMore && (React.createElement(ListView, { renderId: props.parentId, headerProps: {
|
66
|
+
visible: !!header,
|
65
67
|
header: (React.createElement(BatchHeader, { viewTitle: React.createElement(React.Fragment, null,
|
66
68
|
"Sub-Tasks",
|
67
69
|
total && (React.createElement(Badge, { count: state.total, overflowCount: 9999, className: "site-badge-count" }))), buttons: [
|
@@ -70,6 +72,8 @@ const SubTaskList = (props) => {
|
|
70
72
|
React.createElement(AssignButton, { execute: onAssign, loading: state.batchLoading, key: "AssignButton" }),
|
71
73
|
] })),
|
72
74
|
addAble: !readonly,
|
75
|
+
quickSearch: true,
|
76
|
+
searchOptions: { width: "150px" },
|
73
77
|
filterViewProps: {
|
74
78
|
columns: [
|
75
79
|
React.createElement(TaskStatusFilter, { key: "TaskStatusFilter" }),
|