@voplus/morpho-workspace 6.0.142 → 6.0.144
Sign up to get free protection for your applications and to get access to all the features.
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.d.ts +0 -1
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.js +4 -4
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorProperties/index.js +3 -1
- package/es/modules/work/components/WorkErrorProperties/index.js.map +1 -1
- package/es/modules/work/components/WorkTaskList/index.js +1 -3
- package/es/modules/work/components/WorkTaskList/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.d.ts +0 -1
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js +5 -11
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.d.ts +4 -2
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.js +30 -23
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.less +61 -0
- package/es/modules/work/work-schedule/components/WorkScheduleListCard/index.js +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleListCard/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypePropertiesTabs/index.js +1 -1
- package/es/modules/work/work-type/components/WorkTypePropertiesTabs/index.js.map +1 -1
- package/package.json +1 -1
@@ -27,7 +27,7 @@ const TaskList = (props) => {
|
|
27
27
|
React.createElement(Skeleton, { active: true, loading: list.loading },
|
28
28
|
React.createElement(React.Fragment, null, list.data.length ? (React.createElement(SortDnD, { list: list.data, moveAfter: (id, afterId, list) => state.moveAfter(id, afterId, list), text: (task, index, connectDragSource) => (React.createElement(SubTaskItem, { key: task.id, id: task.id })) })) : editable ? (React.createElement(React.Fragment, null)) : (React.createElement("div", { className: "agenda-task-nothing" },
|
29
29
|
React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE, description: false }))))),
|
30
|
-
editable && (React.createElement(NewTaskForm, { simple: true, parentId: id,
|
30
|
+
editable && (React.createElement(NewTaskForm, { simple: true, parentId: id, onSave: state.onAddTask, onCancel: state.onAddTask })))));
|
31
31
|
};
|
32
32
|
export default TaskList;
|
33
33
|
//# sourceMappingURL=index.js.map
|
package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAmB,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAU,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EAAS,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,WAAW,MAAM,yDAAyD,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,MAAM,QAAQ,GAAG,CAAC,KAAsB,EAAE,EAAE;IAC3C,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC/B,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,MAAM,CAAC,K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C,WAAW,IACX,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,EAAE,EAAE,IAAI,CAAC,EAAE,GAIV,CACF,GACA,CACF,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CACd,oBAAC,KAAK,CAAC,QAAQ,OAAG,CAClB,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,qBAAqB;gBACnC,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,EAAE,WAAW,EAAE,KAAK,GAAI,CAC7D,CACN,CACC,CACO;QACV,QAAQ,IAAI,CACZ,oBAAC,WAAW,IACX,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,EAAE,EACZ,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAmB,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAU,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EAAS,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,WAAW,MAAM,gDAAgD,CAAC;AACzE,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,WAAW,MAAM,yDAAyD,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,MAAM,QAAQ,GAAG,CAAC,KAAsB,EAAE,EAAE;IAC3C,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;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
104
104
|
},
|
105
105
|
onAdd: () => {
|
106
106
|
if (headerType === "page")
|
107
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewTaskForm, { showView: true }), {
|
107
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewTaskForm, { parentId: props.parentId, showView: true }), {
|
108
|
+
span: 12,
|
109
|
+
});
|
108
110
|
},
|
109
111
|
batchProps: {
|
110
112
|
visible: headerType === "sub" ? true : false,
|
@@ -123,9 +125,7 @@ const SubTaskList = (props) => {
|
|
123
125
|
},
|
124
126
|
} }),
|
125
127
|
React.createElement(List, { renderId: props.parentId, moveAfter: moveAfter, renderItem: ({ item, connectDragSource, multiple }) => (React.createElement(DocumentItemFrame, { key: item.id }, simple ? (React.createElement(ChildTaskItem, { id: item.id })) : (React.createElement(SubTaskItem, { id: item.id, multiple: batch.multiple, reload: !!readonly, connectDragSource: connectDragSource })))) }))),
|
126
|
-
state.addAble && (React.createElement(NewTaskForm, { simple: true, self: state.self, parentId: props.parentId,
|
127
|
-
state.clearAdd();
|
128
|
-
}, onCancel: () => state.clearAdd(), onShowMore: () => (state.showMore = !state.showMore) })))),
|
128
|
+
state.addAble && (React.createElement(NewTaskForm, { simple: true, self: state.self, parentId: props.parentId, onSave: () => state.clearAdd(), onCancel: () => state.clearAdd(), onShowMore: () => (state.showMore = !state.showMore) })))),
|
129
129
|
state.batchAssign && (React.createElement(UnitsSelectDialog, { onSelect: onSelectMember, onCancel: () => (state.batchAssign = false) })))));
|
130
130
|
function onMove(state) {
|
131
131
|
if (!state.ids.length) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/SubTaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtC,OAA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K,IAAI,CAAC,CAAC;IACjE,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC;IACpB,4BAA4B;IAC5B,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QACpC,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/SubTaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,GACZ,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAEN,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,aAAa,EACb,eAAe,EACf,UAAU,EACV,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAS,iBAAiB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EACN,eAAe,EACf,sBAAsB,EACtB,YAAY,EACZ,iBAAiB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,EAAoB,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE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AAE,OAAe;QACnD,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IACD,KAAK,UAAU,QAAQ,CAAC,KAAwB;QAC/C,MAAM,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3D,CAAC;AACF,CAAC,CAAC;AACF,WAAW,CAAC,YAAY,GAAG;IAC1B,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,KAAK;CACjB,CAAC;AACF,eAAe,WAAW,CAAC"}
|
@@ -3,13 +3,14 @@ import { InlineEdit, observe, PropertiesSection } from "@voplus/morpho-ui";
|
|
3
3
|
import { useWorkError, useWorkErrorStore } from "../../../../data/workerror";
|
4
4
|
import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
|
+
import { utcdayjs, isSame } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
6
7
|
import { useApplicationContext } from "@voplus/morpho-data";
|
7
8
|
import { State } from "./state";
|
8
9
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
9
10
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
10
11
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
11
12
|
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
12
|
-
import
|
13
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
13
14
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
14
15
|
import WorkErrorMenu from "../../controls/WorkErrorMenu";
|
15
16
|
import SeveritySelect from "../../controls/SeveritySelect";
|
@@ -31,6 +32,7 @@ const WorkErrorProperties = (props) => {
|
|
31
32
|
React.createElement("div", { className: "title" }, workerror.type),
|
32
33
|
React.createElement(ToolBar, { id: id, showMenu: false },
|
33
34
|
React.createElement(WorkErrorMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })))),
|
35
|
+
React.createElement(DescriptionEditor, { id: props.id, description: workerror.description, onSave: (description) => store.edit(workerror.id, { data: { Description: description }, error: "message" }) }),
|
34
36
|
React.createElement(PropertiesSection, { title: workErrorTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }))));
|
35
37
|
async function save(params) {
|
36
38
|
await store.edit(id, { data: params, error: "message" });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KA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CAAC,YAAY,GAAI,CAC5E,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,eAAgB,CAChD,EAEF,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,CAAC,CAAc,EAAE,EAAE;wBAC1B,aAAa;wBACb,IAAI,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC;4BAAE,OAAO;wBAC9C,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC;oBAC3B,CAAC,GACA,CACF,CAAC;YACH,KAAK,SAAS;gBACb,OAAO,CACN,oBAAC,UAAU,IACV,IAAI,EAAE,SAAS,CAAC,OAAO,IAAI,EAAE,EAC7B,QAAQ,QACR,UAAU,EAAC,IAAI,EACf,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,QAAQ,EAAE,CAAC,GAAa,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,GACpD,CACF,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG;IAClC,cAAc,EAAE,uBAAuB;IACvC,aAAa,EAAE,qBAAqB;IACpC,mBAAmB,EAAE;QACpB,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,eAAe,EAAE;QACzB,EAAE,IAAI,EAAE,SAAS,EAAE;KACnB;CACD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
@@ -41,9 +41,7 @@ const WorkTaskList = (props) => {
|
|
41
41
|
onAdd: () => (state.addAble = !state.addAble),
|
42
42
|
}, moveAfter: moveAfter, renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, onClick: () => { var _a; return (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item.id); } },
|
43
43
|
React.createElement(DefaultTaskItem, { id: item.id, connectDragSource: connectDragSource }))) }),
|
44
|
-
state.addAble && (React.createElement(NewTaskForm, { simple: true, parentId: props.parentId,
|
45
|
-
state.clearAdd();
|
46
|
-
}, onCancel: () => state.clearAdd() }))))));
|
44
|
+
state.addAble && (React.createElement(NewTaskForm, { simple: true, parentId: props.parentId, onSave: () => state.clearAdd(), onCancel: () => state.clearAdd() }))))));
|
47
45
|
function filters() {
|
48
46
|
if (!props.roles)
|
49
47
|
return [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkTaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAgB,qBAAqB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAS,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,eAAe,MAAM,oDAAoD,CAAC;AACjF,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAChE,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,YAAY,GAAG,CAAC,KAAwB,EAAE,EAAE;IACjD,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE,C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E,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE;aACjD,CAAC;QACH,OAAO;YACN,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,CAAC,QAAQ,EAAE;YAC3D,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE;YAClF,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAAS,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE;SACjD,CAAC;IACH,CAAC;IAED,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -12,17 +12,18 @@ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
12
12
|
import UnitReference from "@voplus/morpho-org/es/controls/UnitReference/LoadedUnitReference";
|
13
13
|
import WorkScheduleMenu from "../../controls/WorkScheduleMenu";
|
14
14
|
import WorkScheduleQuickViewDialog from "../WorkScheduleQuickViewDialog";
|
15
|
+
import WorkSchedulePropertiesView from "../WorkSchedulePropertiesView";
|
16
|
+
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
15
17
|
import classnames from "classnames";
|
16
18
|
import styles from "./index.less";
|
17
19
|
const WorkScheduleItem = (props) => {
|
18
|
-
const { id, avatar
|
20
|
+
const { id, avatar } = props;
|
19
21
|
const workSchedule = useWorkSchedule(id);
|
20
22
|
const meta = useMetaStore();
|
21
23
|
const [hover, setHover] = useState(false);
|
22
|
-
const [visibleQuickView, setVisibleQuickView] = useState(false);
|
23
24
|
return observe(() => {
|
24
25
|
var _a, _b, _c, _d, _e, _f;
|
25
|
-
return (React.createElement(
|
26
|
+
return (React.createElement(ItemFunction, { className: styles["work-schedule-item"], onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(WorkSchedulePropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(WorkScheduleQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
|
26
27
|
React.createElement(Skeleton, { avatar: avatar, paragraph: { rows: 1 }, loading: !workSchedule.loaded },
|
27
28
|
React.createElement(ColumnItem, { className: "workSchedule-column-item" },
|
28
29
|
React.createElement(ColumnItemCol, { span: 10 },
|
@@ -53,15 +54,8 @@ const WorkScheduleItem = (props) => {
|
|
53
54
|
} },
|
54
55
|
React.createElement(ToolBar, { id: id, showMenu: false },
|
55
56
|
React.createElement(Open, { size: "middle", url: meta.getRoute(workSchedule) }),
|
56
|
-
React.createElement(WorkScheduleMenu, { id: id, closeAside: true }))))))))
|
57
|
-
visibleQuickView && (React.createElement(WorkScheduleQuickViewDialog, { id: id, visible: true, onCancel: onQuickView }))));
|
57
|
+
React.createElement(WorkScheduleMenu, { id: id, closeAside: true }))))))))));
|
58
58
|
});
|
59
|
-
/** Quick View */
|
60
|
-
function onQuickView() {
|
61
|
-
if (!quickView)
|
62
|
-
return;
|
63
|
-
setVisibleQuickView(!visibleQuickView);
|
64
|
-
}
|
65
59
|
};
|
66
60
|
export default WorkScheduleItem;
|
67
61
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM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CACG,CACf,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -10,12 +10,14 @@ export type WorkScheduleListProps = {
|
|
10
10
|
};
|
11
11
|
/** title */
|
12
12
|
viewTitle?: React.ReactNode;
|
13
|
-
/**
|
14
|
-
|
13
|
+
/** 是否允 new */
|
14
|
+
addAble?: boolean;
|
15
15
|
/** Call back when received total number of workSchedule. */
|
16
16
|
onTotal?: (total: number) => void;
|
17
17
|
/** Call back when an item has been clicked on the list. */
|
18
18
|
onClickItem?: (item: IWorkSchedule) => void;
|
19
|
+
/** 如果card 头部样式不一样 */
|
20
|
+
type?: "card";
|
19
21
|
};
|
20
22
|
declare const WorkScheduleList: {
|
21
23
|
(props: WorkScheduleListProps): React.JSX.Element;
|
@@ -9,19 +9,24 @@ import WorkScheduleFilter from "../../controls/WorkScheduleFilter";
|
|
9
9
|
import WorkTypesFilter from "../../../../../controls/filters/WorkTypesFilter";
|
10
10
|
import NewWorkScheduleForm from "../NewWorkScheduleForm";
|
11
11
|
import NewWorkScheduleFormDialog from "../NewWorkScheduleForm/NewWorkScheduleFormDialog";
|
12
|
-
import
|
12
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
13
|
+
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
13
14
|
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
14
15
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
16
|
+
import { faSuitcase } from "@fortawesome/pro-solid-svg-icons";
|
17
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
15
18
|
import WorkScheduleItem from "../WorkScheduleItem";
|
16
19
|
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
20
|
+
import classnames from "classnames";
|
17
21
|
import dayjs from "dayjs";
|
18
22
|
import styles from "./index.less";
|
19
23
|
dayjs.extend(quarterOfYear);
|
20
24
|
const WorkScheduleList = (props) => {
|
21
|
-
const { contact, viewTitle,
|
25
|
+
const { contact, viewTitle, scheduleDate } = props;
|
22
26
|
const [activeId, setActiveId] = useState("");
|
23
27
|
const [addAble, setAddAble] = useState(false);
|
24
28
|
const view = useViewContext();
|
29
|
+
const [asideContext] = useState(AsideContent.createContext());
|
25
30
|
const list = useCreateListDataState({
|
26
31
|
filterDefaults: {
|
27
32
|
filters: filters(),
|
@@ -47,26 +52,32 @@ const WorkScheduleList = (props) => {
|
|
47
52
|
...list.filters.options,
|
48
53
|
});
|
49
54
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
50
|
-
React.createElement(
|
51
|
-
React.createElement(
|
52
|
-
|
53
|
-
sortable: false,
|
54
|
-
quickSearch: true,
|
55
|
-
selectedFilterKey: ["WorkTypes"],
|
56
|
-
onAdd: () => (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" && setAddAble(!addAble),
|
57
|
-
filterViewProps: {
|
55
|
+
React.createElement(AsideContent, { context: asideContext },
|
56
|
+
React.createElement("div", { className: styles["work-schedule-list"] },
|
57
|
+
React.createElement(ListHeaderTool, { className: classnames({ "page-card": props.type === "card" }), addAble: props.addAble, sortable: false, selectedFilterKey: ["WorkTypes"], filterViewProps: {
|
58
58
|
columns: [
|
59
59
|
React.createElement(WorkScheduleFilter, { key: "WorkScheduleFilter", defaultValue: "Empty" }),
|
60
60
|
React.createElement(WorkTypesFilter, { key: "WorkTypesFilter" }),
|
61
61
|
],
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
62
|
+
}, searchOptions: { placeholder: "Search in work schedules" }, onAdd: () => {
|
63
|
+
if ((view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView") {
|
64
|
+
setAddAble(!addAble);
|
65
|
+
}
|
66
|
+
else {
|
67
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewWorkScheduleForm, { contact: contact }), { span: 12 });
|
68
|
+
}
|
69
|
+
}, preExtra: () => (React.createElement("div", { className: "page-head-content" }, props.type === "card" ? (React.createElement("div", { className: "page-head-name" }, viewTitle)) : (React.createElement(React.Fragment, null,
|
70
|
+
React.createElement("div", { className: "page-head-avatar" },
|
71
|
+
React.createElement(FAIcon, { icon: faSuitcase })),
|
72
|
+
React.createElement("div", { className: "page-head-info" },
|
73
|
+
React.createElement("div", { className: "page-head-name" }, viewTitle),
|
74
|
+
React.createElement("div", { className: "description" }, "Your tasks: prioritize and complete your work")))))) }),
|
75
|
+
React.createElement(ListView, { headerProps: { visible: false }, asideable: false, className: "work-schedule-list-content", renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
|
76
|
+
var _a;
|
77
|
+
setActiveId(item.id);
|
78
|
+
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
79
|
+
} },
|
80
|
+
React.createElement(WorkScheduleItem, { id: item.id }))) }))),
|
70
81
|
addAble && (React.createElement(NewWorkScheduleFormDialog, { contact: contact, onCancel: () => setAddAble(false), onSave: () => setAddAble(false) })))));
|
71
82
|
function filters() {
|
72
83
|
let filter = [];
|
@@ -133,13 +144,9 @@ const WorkScheduleList = (props) => {
|
|
133
144
|
}
|
134
145
|
return filter;
|
135
146
|
}
|
136
|
-
function onFilter(context) {
|
137
|
-
context.paging.Page = 1;
|
138
|
-
context.filter();
|
139
|
-
}
|
140
147
|
};
|
141
148
|
WorkScheduleList.defaultProps = {
|
142
|
-
viewTitle: "Work
|
149
|
+
viewTitle: "Work Schedules",
|
143
150
|
};
|
144
151
|
export default WorkScheduleList;
|
145
152
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAA0B,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,eAAe,MAAM,iDAAiD,CAAC;AAC9E,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,yBAAyB,MAAM,kDAAkD,CAAC;AACzF,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;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IAAI,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAW,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAClE,CAAC;aAAM,CAAC;YACP,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1D,CAAC;QAED,QAAQ,YAAY,EAAE,CAAC;YACtB,KAAK,aAAa;gBACjB,MAAM,GAAG,CAAC,iBAAiB,EAAE,GAAG,MAAM,CAAC,CAAC;gBACxC,MAAM;YACP,KAAK,KAAK;gBACT,MAAM,GAAG,CAAC,SAAS,EAAE,GAAG,MAAM,CAAC,CAAC;gBAChC,MAAM;YACP,KAAK,MAAM;gBACV,MAAM,GAAG,CAAC,UAAU,EAAE,GAAG,MAAM,CAAC,CAAC;gBACjC,MAAM;YACP,KAAK,OAAO;gBACX,MAAM,GAAG,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,CAAC;gBAClC,MAAM;YACP,KAAK,SAAS;gBACb,MAAM,GAAG,CAAC,aAAa,EAAE,GAAG,MAAM,CAAC,CAAC;gBACpC,MAAM;YACP;gBACC,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC;AACF,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,SAAS,EAAE,gBAAgB;CAC3B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -8,5 +8,66 @@
|
|
8
8
|
background-color: #fff;
|
9
9
|
padding: 0 !important;
|
10
10
|
}
|
11
|
+
.list-view-header-tool {
|
12
|
+
padding: 20px 20px 0 20px;
|
13
|
+
background: #fff;
|
14
|
+
border-bottom: 1px solid #e6e6e6;
|
15
|
+
&.page-card {
|
16
|
+
padding: 14px 20px 0 20px;
|
17
|
+
.selected-filter-list {
|
18
|
+
margin-top: 14px;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
.selected-filter-list {
|
22
|
+
margin-top: 20px;
|
23
|
+
}
|
24
|
+
.header-tool-space {
|
25
|
+
align-items: end;
|
26
|
+
justify-content: space-between;
|
27
|
+
}
|
28
|
+
.page-head-content {
|
29
|
+
flex: 1;
|
30
|
+
display: flex;
|
31
|
+
.ant-avatar {
|
32
|
+
width: 50px;
|
33
|
+
height: 50px;
|
34
|
+
line-height: 50px;
|
35
|
+
border-radius: 2px;
|
36
|
+
}
|
37
|
+
.page-head-avatar {
|
38
|
+
width: 50px;
|
39
|
+
height: 50px;
|
40
|
+
padding: 0 12px;
|
41
|
+
line-height: 50px;
|
42
|
+
font-size: 22px;
|
43
|
+
display: flex;
|
44
|
+
align-items: center;
|
45
|
+
justify-content: center;
|
46
|
+
color: #217eb2;
|
47
|
+
background: #e5fbff;
|
48
|
+
border-radius: 5px;
|
49
|
+
border: 2px solid #217eb2;
|
50
|
+
}
|
51
|
+
.page-head-info {
|
52
|
+
color: #868686;
|
53
|
+
margin-left: 15px;
|
54
|
+
}
|
55
|
+
.page-head-name {
|
56
|
+
display: flex;
|
57
|
+
align-items: center;
|
58
|
+
color: #217eb2;
|
59
|
+
font-size: 20px;
|
60
|
+
font-weight: bold;
|
61
|
+
line-height: 27px;
|
62
|
+
.ant-dropdown-trigger {
|
63
|
+
color: #cbcbcb;
|
64
|
+
font-weight: normal;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
.description {
|
68
|
+
font-size: 14px;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
11
72
|
}
|
12
73
|
}
|
@@ -4,7 +4,7 @@ import ListCard from "@voplus/morpho-ui/es/controls/ListCard";
|
|
4
4
|
import WorkScheduleList from "../WorkScheduleList";
|
5
5
|
const WorkScheduleListCard = (props) => {
|
6
6
|
return observe(() => (React.createElement(ListCard, { style: props.style },
|
7
|
-
React.createElement(WorkScheduleList, { ...props }))));
|
7
|
+
React.createElement(WorkScheduleList, { ...props, type: "card" }))));
|
8
8
|
};
|
9
9
|
export default WorkScheduleListCard;
|
10
10
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,gBAA2C,MAAM,qBAAqB,CAAC;AAE9E,MAAM,oBAAoB,GAAG,CAC3B,KAA8D,EAC9D,EAAE;IACF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK;QAC1B,oBAAC,gBAAgB,OAAK,KAAK,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,gBAA2C,MAAM,qBAAqB,CAAC;AAE9E,MAAM,oBAAoB,GAAG,CAC3B,KAA8D,EAC9D,EAAE;IACF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACnB,oBAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK;QAC1B,oBAAC,gBAAgB,OAAK,KAAK,EAAE,IAAI,EAAC,MAAM,GAAG,CAClC,CACZ,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
@@ -20,7 +20,7 @@ const WorkTypePropertiesTabs = (props) => {
|
|
20
20
|
{
|
21
21
|
key: "Tasks",
|
22
22
|
label: "Tasks",
|
23
|
-
children: React.createElement(TaskList, { parentId: id, total: false }),
|
23
|
+
children: (React.createElement(TaskList, { parentId: id, total: false, filters: [{ c: "Template", o: "", l: "And", v1: "" }] })),
|
24
24
|
},
|
25
25
|
{
|
26
26
|
key: "Documents",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypePropertiesTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,QAAQ,MAAM,0CAA0C,CAAC;AAChE,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,sBAAsB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,2BAA2B;IAC3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IAEzD,SAAS,CAAC,GAAG,EAAE;QACd,YAAY,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAEf,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,IAAI,IACJ,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,MAAM,CAAC,2BAA2B,CAAC,EAC9C,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE;YACN,EAAE,GAAG,EAAE,YAAY,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