@voplus/morpho-workspace 6.0.138 → 6.0.140

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ export type SortDnDProps<T extends {
3
+ id: string;
4
+ }> = {
5
+ list: T[];
6
+ text: (card: T, index: number) => React.ReactNode;
7
+ moveAfter?: (id: string, afterId: string, list: T[]) => void;
8
+ };
9
+ declare const DndList: <T extends {
10
+ id: string;
11
+ }>(props: SortDnDProps<T>) => React.JSX.Element;
12
+ export default DndList;
@@ -0,0 +1,29 @@
1
+ import React, { useState } from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { DndContext } from "@dnd-kit/core";
4
+ import { State } from "./state";
5
+ import { arrayMove, SortableContext, verticalListSortingStrategy } from "@dnd-kit/sortable";
6
+ const DndList = (props) => {
7
+ const { list, text } = props;
8
+ const [state] = useState(new State());
9
+ state.cards = list;
10
+ return observe(() => {
11
+ return (React.createElement(DndContext, { onDragEnd: handleDragEnd },
12
+ React.createElement(SortableContext, { items: state.cards.map((i) => i.id), strategy: verticalListSortingStrategy }, state.cards.map((item, index) => text(item, index)))));
13
+ });
14
+ function handleDragEnd({ active, over }) {
15
+ var _a;
16
+ if (active.id !== (over === null || over === void 0 ? void 0 : over.id)) {
17
+ const activeIndex = state.cards.findIndex((i) => i.id === active.id);
18
+ const overIndex = state.cards.findIndex((i) => i.id === (over === null || over === void 0 ? void 0 : over.id));
19
+ state.cards = arrayMove(state.cards, activeIndex, overIndex);
20
+ /** 查找drop card end drag 后的前一个card的id */
21
+ const index = state.cards.findIndex((i) => i.id === active.id);
22
+ const afterId = state.cards[index - 1] ? state.cards[index - 1].id : "";
23
+ /** api 需要用到drop card 完成 drag 位于哪个card 的id */
24
+ (_a = props.moveAfter) === null || _a === void 0 ? void 0 : _a.call(props, active.id, afterId, state.cards);
25
+ }
26
+ }
27
+ };
28
+ export default DndList;
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","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,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC;YACrE,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,MAAK,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,CAAA,CAAC,CAAC;YAClE,KAAK,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;YAE7D,yCAAyC;YACzC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC;YAC/D,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACxE,6CAA6C;YAC7C,MAAA,KAAK,CAAC,SAAS,sDAAG,MAAM,CAAC,EAAY,EAAE,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare class State<T> {
2
+ constructor();
3
+ cards: T[];
4
+ }
@@ -0,0 +1,17 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ Object.defineProperty(this, "cards", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: void 0
10
+ });
11
+ makeObservable(this);
12
+ }
13
+ }
14
+ __decorate([
15
+ observable
16
+ ], State.prototype, "cards", void 0);
17
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/DndList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAU,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IACjB;QAImB;;;;;WAAW;QAH7B,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAGD;AADmB;IAAlB,UAAU;oCAAmB"}
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useState } from "react";
1
+ import React, { useEffect } from "react";
2
2
  import { Badge, message } from "antd";
3
3
  import { DeleteButton, SelectButton, LockButton, UnLockButton, } from "@voplus/morpho-ui/es/components/layout/ListView/headers";
4
4
  import { useAutoUpdateListData, useDocumentStore, useOnDeleteDocument, useOnNewDocument, useSelectNodeInfoService, } from "@voplus/morpho-document-core";
@@ -8,9 +8,8 @@ import { ListDataContext, useCreateListDataState, BatchContext, BatchContextStat
8
8
  import { State } from "./state";
9
9
  import { useApplicationContext, useDeepMemo } from "@voplus/morpho-data";
10
10
  import { FlagFilter } from "@voplus/morpho-document/es/controls/filters";
11
- import { observe } from "@voplus/morpho-ui";
12
11
  import { runInAction } from "mobx";
13
- import { useRenderOnChange } from "@voplus/morpho-ui";
12
+ import { observe, useRenderOnChange, useAsideContentContext } from "@voplus/morpho-ui";
14
13
  import AddTaskDropdown from "../AddTaskDropdown";
15
14
  import AssignButton from "../../../../controls/AssignButton";
16
15
  import ChildTaskItem from "../TaskItem/ChildTaskItem";
@@ -19,7 +18,6 @@ import List from "@voplus/morpho-ui/es/components/layout/ListView/List";
19
18
  import NewTaskForm from "../NewTaskForm";
20
19
  import SubTaskItem from "../TaskItem/SubTaskItem";
21
20
  import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
22
- import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
23
21
  import TaskPageHead from "../TaskPageHead";
24
22
  import classnames from "classnames";
25
23
  import "./index.less";
@@ -27,7 +25,8 @@ const SubTaskList = (props) => {
27
25
  var _a;
28
26
  const { readonly, total, header, simple, headerType, viewTitle } = props;
29
27
  const { user } = useApplicationContext();
30
- const [asideContext] = useState(AsideContent.createContext());
28
+ const asideContext = useAsideContentContext();
29
+ // const [asideContext] = useState(AsideContent.createContext());
31
30
  const select = useSelectNodeInfoService();
32
31
  const documents = useDocumentStore();
33
32
  const taskStore = useTaskStore();
@@ -79,55 +78,54 @@ const SubTaskList = (props) => {
79
78
  /** 建立新ListView所需Context. */
80
79
  React.createElement(ListDataContext.Provider, { value: list },
81
80
  React.createElement(BatchContext.Provider, { value: batch },
82
- React.createElement(AsideContent, { context: asideContext },
83
- React.createElement("div", { style: props.style, className: classnames("sub-task-list", props.className) },
84
- !state.showMore && (React.createElement(React.Fragment, null,
85
- React.createElement(TaskPageHead, { className: classnames({ "sub-page-head": headerType === "sub" }), listHeaderProps: {
86
- visible: !!header,
87
- addAble: !readonly,
88
- filterViewProps: {
89
- columns: [
90
- React.createElement(TaskFilter, { id: user.info.unit.id, key: "TaskFilter" }),
91
- React.createElement(TaskStatusFilter, { key: "TaskStatusFilter", ...props.taskStatusFilterProps }),
92
- React.createElement(FlagFilter, { key: "FlagFilter" }),
93
- // <AssigneeViewFilter key="AssigneeViewFilter" />,
94
- React.createElement(StartDateFilter, { key: "StartDateFilter" }),
95
- React.createElement(DueDateFilter, { key: "DueDateFilter" }),
81
+ React.createElement("div", { style: props.style, className: classnames("sub-task-list", props.className) },
82
+ !state.showMore && (React.createElement(React.Fragment, null,
83
+ React.createElement(TaskPageHead, { className: classnames({ "sub-page-head": headerType === "sub" }), listHeaderProps: {
84
+ visible: !!header,
85
+ addAble: !readonly,
86
+ filterViewProps: {
87
+ columns: [
88
+ React.createElement(TaskFilter, { id: user.info.unit.id, key: "TaskFilter" }),
89
+ React.createElement(TaskStatusFilter, { key: "TaskStatusFilter", ...props.taskStatusFilterProps }),
90
+ React.createElement(FlagFilter, { key: "FlagFilter" }),
91
+ // <AssigneeViewFilter key="AssigneeViewFilter" />,
92
+ React.createElement(StartDateFilter, { key: "StartDateFilter" }),
93
+ React.createElement(DueDateFilter, { key: "DueDateFilter" }),
94
+ ],
95
+ },
96
+ addOptions: {
97
+ btnType: "text",
98
+ overlay: headerType === "sub" ? (React.createElement(AddTaskDropdown, { id: props.parentId,
99
+ // onCancelClick={() => (state.addAble = false)}
100
+ onItemClick: (val) => {
101
+ state.addAble = true;
102
+ state.self = val === "Task (Self)";
103
+ } })) : undefined,
104
+ },
105
+ onAdd: () => {
106
+ if (headerType === "page")
107
+ asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewTaskForm, { showView: true }), { span: 12 });
108
+ },
109
+ batchProps: {
110
+ visible: headerType === "sub" ? true : false,
111
+ props: {
112
+ viewTitle: (React.createElement(React.Fragment, null,
113
+ viewTitle,
114
+ total && (React.createElement(Badge, { count: state.total, overflowCount: 9999, className: "site-badge-count" })))),
115
+ buttons: [
116
+ React.createElement(DeleteButton, { execute: onDelete, key: "DeleteButton", disabled: state.batchLoading }),
117
+ React.createElement(SelectButton, { execute: onMove, key: "SelectButton", disabled: state.batchLoading }),
118
+ React.createElement(AssignButton, { execute: onAssign, loading: state.batchLoading, key: "AssignButton" }),
119
+ React.createElement(LockButton, { execute: onLock, loading: state.batchLoading, key: "LockButton" }),
120
+ React.createElement(UnLockButton, { execute: onUnLock, loading: state.batchLoading, key: "UnLockButton" }),
96
121
  ],
97
122
  },
98
- addOptions: {
99
- btnType: "text",
100
- overlay: headerType === "sub" ? (React.createElement(AddTaskDropdown, { id: props.parentId,
101
- // onCancelClick={() => (state.addAble = false)}
102
- onItemClick: (val) => {
103
- state.addAble = true;
104
- state.self = val === "Task (Self)";
105
- } })) : undefined,
106
- },
107
- onAdd: () => {
108
- if (headerType === "page")
109
- asideContext.openAside(React.createElement(NewTaskForm, { showView: true }), { span: 12 });
110
- },
111
- batchProps: {
112
- visible: headerType === "sub" ? true : false,
113
- props: {
114
- viewTitle: (React.createElement(React.Fragment, null,
115
- viewTitle,
116
- total && (React.createElement(Badge, { count: state.total, overflowCount: 9999, className: "site-badge-count" })))),
117
- buttons: [
118
- React.createElement(DeleteButton, { execute: onDelete, key: "DeleteButton", disabled: state.batchLoading }),
119
- React.createElement(SelectButton, { execute: onMove, key: "SelectButton", disabled: state.batchLoading }),
120
- React.createElement(AssignButton, { execute: onAssign, loading: state.batchLoading, key: "AssignButton" }),
121
- React.createElement(LockButton, { execute: onLock, loading: state.batchLoading, key: "LockButton" }),
122
- React.createElement(UnLockButton, { execute: onUnLock, loading: state.batchLoading, key: "UnLockButton" }),
123
- ],
124
- },
125
- },
126
- } }),
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 })))) }))),
128
- state.addAble && (React.createElement(NewTaskForm, { simple: true, self: state.self, parentId: props.parentId, block: true, onSave: () => {
129
- state.clearAdd();
130
- }, onCancel: () => state.clearAdd(), onShowMore: () => (state.showMore = !state.showMore) }))))),
123
+ },
124
+ } }),
125
+ 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, block: true, onSave: () => {
127
+ state.clearAdd();
128
+ }, onCancel: () => state.clearAdd(), onShowMore: () => (state.showMore = !state.showMore) })))),
131
129
  state.batchAssign && (React.createElement(UnitsSelectDialog, { onSelect: onSelectMember, onCancel: () => (state.batchAssign = false) })))));
132
130
  function onMove(state) {
133
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,EAAE,QAAQ,EAAE,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,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAC7D,OAAO,aAAa,MAAM,2BAA2B,CAAC;AACtD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,IAAI,MAAM,sDAAsD,CAAC;AACxE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAA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AI,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"}
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,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAC7D,OAAO,aAAa,MAAM,2BAA2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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"}
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from "react";
2
2
  import { observe } from "@voplus/morpho-ui";
3
3
  import { Skeleton, Collapse, Empty } from "antd";
4
- import { useOnNewDocument, useOnDeleteDocument } from "@voplus/morpho-document-core";
4
+ import { useDocumentStore, useOnNewDocument, useOnDeleteDocument, } from "@voplus/morpho-document-core";
5
5
  import { CaretRightOutlined } from "@ant-design/icons";
6
6
  import TaskCheckItem from "../TaskCheckItem";
7
7
  import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
@@ -10,9 +10,11 @@ import { State } from "./state";
10
10
  import { runInAction } from "mobx";
11
11
  import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
12
12
  import { useTaskListEffect } from "@voplus/morpho-document-core";
13
+ import DndList from "../DndList";
13
14
  import "./index.less";
14
15
  const TaskCheckActiveTab = (props) => {
15
16
  const { parentId, taskCheckState } = props;
17
+ const store = useDocumentStore();
16
18
  const [state] = useState(new State());
17
19
  const list = useCreateListDataState({
18
20
  filterDefaults: {
@@ -64,36 +66,36 @@ const TaskCheckActiveTab = (props) => {
64
66
  items.push({
65
67
  key: "Due",
66
68
  label: "Due",
67
- children: (React.createElement(React.Fragment, null, state.dueList.map((item) => (React.createElement(DocumentItemFrame, { key: item.id },
68
- React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) })))))),
69
+ children: (React.createElement(DndList, { list: state.dueList, text: (item) => (React.createElement(DocumentItemFrame, { key: item.id },
70
+ React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) }))), moveAfter: moveAfter })),
69
71
  });
70
72
  if (state.todayList.length)
71
73
  items.push({
72
74
  key: "Today",
73
75
  label: "Today",
74
- children: (React.createElement(React.Fragment, null, state.todayList.map((item) => (React.createElement(DocumentItemFrame, { key: item.id },
75
- React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) })))))),
76
+ children: (React.createElement(DndList, { list: state.todayList, text: (item) => (React.createElement(DocumentItemFrame, { key: item.id },
77
+ React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) }))), moveAfter: moveAfter })),
76
78
  });
77
79
  if (state.tomorrowList.length)
78
80
  items.push({
79
81
  key: "Tomorrow",
80
82
  label: "Tomorrow",
81
- children: (React.createElement(React.Fragment, null, state.tomorrowList.map((item) => (React.createElement(DocumentItemFrame, { key: item.id },
82
- React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) })))))),
83
+ children: (React.createElement(DndList, { list: state.tomorrowList, text: (item) => (React.createElement(DocumentItemFrame, { key: item.id },
84
+ React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) }))), moveAfter: moveAfter })),
83
85
  });
84
86
  if (state.thisWeekList.length)
85
87
  items.push({
86
88
  key: "This Week",
87
89
  label: "This Week",
88
- children: (React.createElement(React.Fragment, null, state.thisWeekList.map((item) => (React.createElement(DocumentItemFrame, { key: item.id },
89
- React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) })))))),
90
+ children: (React.createElement(DndList, { list: state.thisWeekList, text: (item) => (React.createElement(DocumentItemFrame, { key: item.id },
91
+ React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) }))), moveAfter: moveAfter })),
90
92
  });
91
93
  if (state.upcomingList.length)
92
94
  items.push({
93
95
  key: "Upcoming",
94
96
  label: "Upcoming",
95
- children: (React.createElement(React.Fragment, null, state.upcomingList.map((item) => (React.createElement(DocumentItemFrame, { key: item.id },
96
- React.createElement(TaskCheckItem, { id: item.id, dueDate: true, onChangeDueDate: (date) => state.onChangeDueDate(item, date) })))))),
97
+ children: (React.createElement(DndList, { list: state.upcomingList, text: (item) => (React.createElement(DocumentItemFrame, { key: item.id },
98
+ React.createElement(TaskCheckItem, { id: item.id, onChangeDueDate: (date) => state.onChangeDueDate(item, date) }))), moveAfter: moveAfter })),
97
99
  });
98
100
  return (React.createElement(ListDataContext.Provider, { value: list },
99
101
  React.createElement("div", { className: "active-tab-task-list" },
@@ -101,6 +103,9 @@ const TaskCheckActiveTab = (props) => {
101
103
  React.createElement(Collapse, { className: "active-task-collapse", bordered: false, defaultActiveKey: ["Due", "Today", "Tomorrow", "This Week", "Upcoming"], expandIcon: ({ isActive }) => React.createElement(CaretRightOutlined, { rotate: isActive ? 90 : 0 }), items: items }),
102
104
  !items.length && React.createElement(Empty, null)))));
103
105
  });
106
+ async function moveAfter(id, afterId) {
107
+ await store.moveAfter(id, afterId);
108
+ }
104
109
  };
105
110
  export default TaskCheckActiveTab;
106
111
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckActiveTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAiB,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAA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AAE,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC,GAC3D,CACiB,CACpB,EACD,SAAS,EAAE,SAAS,GACnB,CACF;aACD,CAAC,CAAC;QAEJ,OAAO,CACN,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;YACpC,6BAAK,SAAS,EAAC,sBAAsB;gBACpC,oBAAC,QAAQ,IAAC,OAAO,EAAE,IAAI,CAAC,OAAO;oBAC9B,oBAAC,QAAQ,IACR,SAAS,EAAC,sBAAsB,EAChC,QAAQ,EAAE,KAAK,EACf,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,CAAC,EACvE,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,oBAAC,kBAAkB,IAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAI,EAC/E,KAAK,EAAE,KAAK,GACX;oBACD,CAAC,KAAK,CAAC,MAAM,IAAI,oBAAC,KAAK,OAAG,CACjB,CACN,CACoB,CAC3B,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACpC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -8,12 +8,16 @@ import FlagIcon from "@voplus/morpho-document/es/controls/data-icons/FlagIcon";
8
8
  import { useTask, useTaskStore, useMetaStore } from "@voplus/morpho-document-core";
9
9
  import dayjs from "dayjs";
10
10
  import { State } from "./state";
11
+ import { MenuOutlined } from "@ant-design/icons";
11
12
  import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
12
13
  import PresetDatePicker from "@voplus/morpho-ui/es/controls/PresetDatePicker";
13
14
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
14
15
  import { faCalendar } from "@fortawesome/pro-light-svg-icons";
15
16
  import { useApplicationContext } from "@voplus/morpho-data";
16
17
  import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
18
+ import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
19
+ import { useSortable } from "@dnd-kit/sortable";
20
+ import { CSS } from "@dnd-kit/utilities";
17
21
  import "./index.less";
18
22
  const TaskCheckItem = (props) => {
19
23
  const { id, dueDate } = props;
@@ -23,43 +27,54 @@ const TaskCheckItem = (props) => {
23
27
  const taskStore = useTaskStore();
24
28
  const task = useTask(id);
25
29
  state.update(task);
30
+ const { attributes, listeners, setNodeRef, setActivatorNodeRef, transform, transition } = useSortable({
31
+ id: props.id,
32
+ });
33
+ const style = {
34
+ transform: CSS.Transform.toString(transform),
35
+ transition,
36
+ marginTop: 8,
37
+ };
26
38
  return observe(() => {
27
39
  var _a;
28
- return (React.createElement(DocumentHeader, { id: id, flagVisible: false, tagsVisible: false, quickDataBarVisible: false, className: "task-check-item", clickNameEffect: "default", onMouse: (over) => (state.isHover = over), pre: React.createElement("div", null,
29
- React.createElement(Checkbox, { checked: task.taskStatus === "Done", onChange: async (e) => {
30
- await taskStore.edit(task.id, {
31
- data: { TaskStatus: e.target.checked === true ? "Done" : "Progress" },
32
- error: (error) => message.error(error.message),
33
- });
34
- } }),
35
- React.createElement(FlagIcon, { id: task.id, flag: task.flag, editable: !task.readonly })), tools: React.createElement(React.Fragment, null,
36
- ((_a = task.members) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement("div", { className: classnames("task-members", { hide: state.isHover }) },
37
- React.createElement(AvatarList, { organizationId: user.info.organizationId, maxCount: 3, list: task.members, editable: false }))) : null,
38
- dueDate && (React.createElement("span", { className: classnames("task-dueDate", { hide: state.isHover }) },
39
- React.createElement("span", { className: classnames("no-dueDate", { open: state.openDate }), onClick: () => (state.openDate = true) }, task.dueDate ? dayjs(task.dueDate).format("DD MMM YYYY") : "No due date"),
40
- React.createElement(PresetDatePicker, { className: "task-item-preset-date-picker", open: state.openDate, value: task.dueDate ? dayjs(task.dueDate) : undefined, onChange: async (preset, date) => {
41
- var _a;
42
- state.openDate = false;
43
- await taskStore.edit(task.id, {
44
- data: { DueDate: date ? dayjs(date).format("YYYY-MM-DD") : "" },
45
- error: (error) => message.error(error.message),
46
- });
47
- (_a = props.onChangeDueDate) === null || _a === void 0 ? void 0 : _a.call(props, task.dueDate);
48
- }, handleOpenChange: (open) => (state.openDate = open), style: { width: "100%" } }))),
49
- React.createElement("div", { className: classnames("hover-operate-icon", { show: state.isHover }) },
50
- React.createElement(ToolBar, { id: id, moreProps: { buttonProps: { size: "middle" } } },
51
- React.createElement(Open, { size: "middle", url: meta.getRoute(task) }),
52
- !dueDate && (React.createElement(Button, { type: "link", key: "dueDate", className: "task-toolbar-dueDate", onClick: () => (state.openToolbarDate = true) },
53
- React.createElement(FAIcon, { icon: faCalendar }),
54
- React.createElement(PresetDatePicker, { className: "task-toolbar-preset-date-picker", open: state.openToolbarDate, value: task.dueDate ? dayjs(task.dueDate) : undefined, onChange: async (preset, date) => {
40
+ return (React.createElement("div", { style: style, ref: setNodeRef, ...attributes },
41
+ React.createElement(DocumentItemFrame, null,
42
+ React.createElement(DocumentHeader, { id: id, flagVisible: false, tagsVisible: false, quickDataBarVisible: false, className: "task-check-item", clickNameEffect: "default", onMouse: (over) => (state.isHover = over), pre: React.createElement("div", { className: "task-pre" },
43
+ React.createElement(MenuOutlined, { ref: setActivatorNodeRef, style: { touchAction: "none", cursor: "move" }, className: classnames("task-move", { show: state.isHover }), ...listeners }),
44
+ React.createElement(Checkbox, { checked: task.taskStatus === "Done", onChange: async (e) => {
45
+ await taskStore.edit(task.id, {
46
+ data: { TaskStatus: e.target.checked === true ? "Done" : "Progress" },
47
+ error: (error) => message.error(error.message),
48
+ });
49
+ } }),
50
+ React.createElement(FlagIcon, { id: task.id, flag: task.flag, editable: !task.readonly })), tools: React.createElement(React.Fragment, null,
51
+ ((_a = task.members) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement("div", { className: classnames("task-members", { hide: state.isHover }) },
52
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, maxCount: 3, list: task.members, editable: false }))) : null,
53
+ dueDate && (React.createElement("span", { className: classnames("task-dueDate", { hide: state.isHover }) },
54
+ React.createElement("span", { className: classnames("no-dueDate", { open: state.openDate }), onClick: () => (state.openDate = true) }, task.dueDate ? dayjs(task.dueDate).format("DD MMM YYYY") : "No due date"),
55
+ React.createElement(PresetDatePicker, { className: "task-item-preset-date-picker", open: state.openDate, value: task.dueDate ? dayjs(task.dueDate) : undefined, onChange: async (preset, date) => {
55
56
  var _a;
56
- state.openToolbarDate = false;
57
+ state.openDate = false;
57
58
  await taskStore.edit(task.id, {
58
59
  data: { DueDate: date ? dayjs(date).format("YYYY-MM-DD") : "" },
59
60
  error: (error) => message.error(error.message),
60
61
  });
61
62
  (_a = props.onChangeDueDate) === null || _a === void 0 ? void 0 : _a.call(props, task.dueDate);
62
- }, handleOpenChange: (open) => (state.openToolbarDate = open), style: { width: "100%" } })))))) }));
63
+ }, handleOpenChange: (open) => (state.openDate = open), style: { width: "100%" } }))),
64
+ React.createElement("div", { className: classnames("hover-operate-icon", { show: state.isHover }) },
65
+ React.createElement(ToolBar, { id: id, moreProps: { buttonProps: { size: "middle" } } },
66
+ React.createElement(Open, { size: "middle", url: meta.getRoute(task) }),
67
+ !dueDate && (React.createElement(Button, { type: "link", key: "dueDate", className: "task-toolbar-dueDate", onClick: () => (state.openToolbarDate = true) },
68
+ React.createElement(FAIcon, { icon: faCalendar }),
69
+ React.createElement(PresetDatePicker, { className: "task-toolbar-preset-date-picker", open: state.openToolbarDate, value: task.dueDate ? dayjs(task.dueDate) : undefined, onChange: async (preset, date) => {
70
+ var _a;
71
+ state.openToolbarDate = false;
72
+ await taskStore.edit(task.id, {
73
+ data: { DueDate: date ? dayjs(date).format("YYYY-MM-DD") : "" },
74
+ error: (error) => message.error(error.message),
75
+ });
76
+ (_a = props.onChangeDueDate) === null || _a === void 0 ? void 0 : _a.call(props, task.dueDate);
77
+ }, handleOpenChange: (open) => (state.openToolbarDate = open), style: { width: "100%" } })))))) }))));
63
78
  });
64
79
  };
65
80
  export default TaskCheckItem;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskCheckItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,QAAQ,MAAM,yDAAyD,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,cAAc,CAAC;AAEtB,MAAM,aAAa,GAAG,CAAC,KAKtB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC9B,MAAM,CAAC,K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AiC,EAC3C,IAAI,EAAE,KAAK,CAAC,eAAe,EAC3B,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,EACrD,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE;;4CACrC,KAAK,CAAC,eAAe,GAAG,KAAK,CAAC;4CAC9B,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;gDAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;gDAC/D,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;6CACrD,CAAC,CAAC;4CACH,MAAA,KAAK,CAAC,eAAe,sDAAG,IAAI,CAAC,OAAO,CAAC,CAAC;wCACvC,CAAC,EACD,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,GAAG,IAAI,CAAC,EAC1D,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GACvB,CACM,CACT,CACQ,CACL,CACJ,GAEH,CACiB,CACf,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -79,5 +79,19 @@
79
79
  }
80
80
  }
81
81
  }
82
+
83
+ .task-pre {
84
+ display: flex;
85
+ align-items: center;
86
+ .task-move {
87
+ color: #585858;
88
+ margin-right: 6px;
89
+ cursor: move;
90
+ opacity: 0;
91
+ &.show {
92
+ opacity: 1;
93
+ }
94
+ }
95
+ }
82
96
  }
83
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.138",
3
+ "version": "6.0.140",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",