@voplus/morpho-workspace 6.0.103 → 6.0.105

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/es/components/AutoSequenceDialog/index.d.ts +3 -3
  2. package/es/components/AutoSequenceLink/index.d.ts +2 -2
  3. package/es/controls/InlineSearch/index.d.ts +2 -2
  4. package/es/controls/MoreOperateDropdown/index.d.ts +15 -15
  5. package/es/controls/NodeLink/index.d.ts +1 -1
  6. package/es/data/board/contexts/BoardListContextState/index.d.ts +0 -1
  7. package/es/data/board/metas.d.ts +0 -1
  8. package/es/data/meeting/metas.d.ts +0 -1
  9. package/es/data/task/metas.d.ts +0 -1
  10. package/es/data/work/metas.d.ts +0 -1
  11. package/es/data/work-schedule/metas.d.ts +0 -1
  12. package/es/modules/board/components/Board/index.d.ts +1 -1
  13. package/es/modules/board/components/NewBoardColumnDialog/index.d.ts +2 -2
  14. package/es/modules/board/components/NewColumnDocumentForm/index.d.ts +1 -1
  15. package/es/modules/board/components/SubDocument/index.d.ts +2 -2
  16. package/es/modules/meeting/components/AgendaList/AgendaContext.d.ts +0 -1
  17. package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.d.ts +5 -5
  18. package/es/modules/meeting/components/MeetingList/QuickSearch/index.d.ts +8 -9
  19. package/es/modules/notification/components/DocumentNotificationCard/index.d.ts +4 -4
  20. package/es/modules/notification/components/NotificationList/index.d.ts +3 -3
  21. package/es/modules/notification/components/NotificationList/index.less +6 -1
  22. package/es/modules/notification/components/NotificationListHeader/index.d.ts +1 -1
  23. package/es/modules/notification/components/NotificationListHeader/index.js +2 -4
  24. package/es/modules/notification/components/NotificationListHeader/index.js.map +1 -1
  25. package/es/modules/notification/controls/NotificationMenu/item/Send.d.ts +3 -3
  26. package/es/modules/pin/components/MyPinned/index.d.ts +2 -2
  27. package/es/modules/pin/components/PinnedCardList/index.d.ts +3 -3
  28. package/es/modules/tasks/components/AddTaskDropdown/index.d.ts +4 -4
  29. package/es/modules/tasks/components/DelegateDialog/index.d.ts +2 -2
  30. package/es/modules/tasks/components/NewTaskForm/index.d.ts +11 -11
  31. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.d.ts +9 -9
  32. package/es/modules/tasks/components/TaskCheckItem/index.d.ts +2 -2
  33. package/es/modules/tasks/components/TaskCheckNewForm/index.d.ts +4 -4
  34. package/es/modules/tasks/controls/TaskStatusLabel/index.d.ts +1 -1
  35. package/es/modules/work/components/NewWorkErrorDialog/index.d.ts +3 -3
  36. package/es/modules/work/components/NewWorkForm/index.d.ts +8 -8
  37. package/es/modules/work/components/RejectWorkDialog/index.d.ts +4 -4
  38. package/es/modules/work/components/WorkCashReport/index.d.ts +1 -1
  39. package/es/modules/work/components/WorkErrorList/index.d.ts +3 -3
  40. package/es/modules/work/components/WorkList/index.d.ts +0 -2
  41. package/es/modules/work/components/WorkList/index.js +2 -2
  42. package/es/modules/work/components/WorkList/index.js.map +1 -1
  43. package/es/modules/work/components/WorkList2/index.d.ts +45 -0
  44. package/es/modules/work/components/WorkList2/index.js +227 -0
  45. package/es/modules/work/components/WorkList2/index.js.map +1 -0
  46. package/es/modules/work/components/WorkList2/index.less +27 -0
  47. package/es/modules/work/components/WorkListHeader/index.d.ts +17 -0
  48. package/es/modules/work/components/WorkListHeader/index.js +26 -0
  49. package/es/modules/work/components/WorkListHeader/index.js.map +1 -0
  50. package/es/modules/work/controls/SeveritySelect/index.d.ts +8 -8
  51. package/es/modules/work/controls/WorkErrorSelect/index.d.ts +8 -8
  52. package/es/modules/work/controls/WorkMenu/item/Accept.d.ts +3 -3
  53. package/es/modules/work/controls/WorkMenu/item/Reject.d.ts +3 -3
  54. package/es/modules/work/controls/WorkMenu/item/Send.d.ts +3 -3
  55. package/es/modules/work/controls/WorkStatusLabel/index.d.ts +1 -1
  56. package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/index.d.ts +3 -3
  57. package/es/modules/work/work-type/components/ErrorTypeList/Item.d.ts +5 -5
  58. package/es/modules/work/work-type/components/ErrorTypeList/index.d.ts +6 -6
  59. package/es/modules/work/work-type/components/NewTypeForm/index.d.ts +4 -4
  60. package/es/modules/work/work-type/components/WorkTypeIconList/index.d.ts +1 -1
  61. package/es/modules/work/work-type/components/WorkTypeList/index.d.ts +2 -2
  62. package/es/modules/work/work-type/components/WorkTypeSelect/index.d.ts +5 -5
  63. package/es/modules/work/work-type/controls/WorkTypeStatusLabel/index.d.ts +1 -1
  64. package/es/modules/workspace/components/MyWorkspaces/index.d.ts +3 -3
  65. package/es/modules/workspace/components/NewWorkspaceDialog/index.d.ts +5 -5
  66. package/es/modules/workspace/components/WorkspaceIconList/index.d.ts +5 -5
  67. package/es/modules/workspace/components/WorkspaceIconList2/index.d.ts +2 -2
  68. package/es/obsolete/space/components/Notes/ColorSelect/index.d.ts +3 -3
  69. package/es/obsolete/space/components/Notes/NewNoteDialog/index.d.ts +2 -2
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAS,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAC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AC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,GAAG,eAAe,CAAC;gBAC7E,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC;QACzB,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IAED,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,YAAY;QACpB,QAAQ,OAAO,EAAE,CAAC;YACjB,KAAK,OAAO,CAAC;YACb,KAAK,MAAM,CAAC;YACZ,KAAK,OAAO,CAAC;YACb,KAAK,KAAK;gBACT,OAAO,CAAC,QAAQ,CAAC,CAAC;YACnB,KAAK,WAAW;gBACf,OAAO,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;YACnC;gBACC,MAAM;QACR,CAAC;QAED,IAAI,SAAS;YAAE,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAExC,IAAI,OAAO;YAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;QAE/B,OAAO,EAAE,CAAC;IACX,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,QAAQ,CAAC,YAAY,GAAG;IACvB,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,IAAI;CACnB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * 换有新头部样式的 WorkList
3
+ * */
4
+ import React from "react";
5
+ import { WorkListHeaderProps } from "../WorkListHeader";
6
+ import { IWork } from "../../../../data/work";
7
+ import "./index.less";
8
+ export type WorkListProps = {
9
+ workHeaderProps?: WorkListHeaderProps;
10
+ /** 是否显示 filter icon 或者自定义显示 Filter WorkStatus 和 WorkTypes */
11
+ filterVisible?: Array<"WorkStatus" | "WorkTypes"> | boolean;
12
+ /** status of works shown on the list. */
13
+ status?: string;
14
+ /** filter work status */
15
+ statusArr?: string[];
16
+ /** types id of works shown on the list. */
17
+ typesId?: string;
18
+ /** The current active item */
19
+ active?: string;
20
+ /** filter roles */
21
+ roles?: boolean;
22
+ /** filter workspaceId */
23
+ workspaceId?: string;
24
+ /** filter workId */
25
+ workId?: string;
26
+ /** filter by contactId */
27
+ contactId?: string;
28
+ /** 用于预选的 contact */
29
+ contact?: {
30
+ name: string;
31
+ id: string;
32
+ };
33
+ /** Call back when an item has been clicked on the list. */
34
+ onClickItem?: (item: IWork) => void;
35
+ /** Call back when received total number of works. */
36
+ onTotal?: (total: number) => void;
37
+ };
38
+ declare const WorkList2: {
39
+ (props: WorkListProps): React.JSX.Element;
40
+ defaultProps: {
41
+ asideable: boolean;
42
+ filterVisible: boolean;
43
+ };
44
+ };
45
+ export default WorkList2;
@@ -0,0 +1,227 @@
1
+ /**
2
+ * 换有新头部样式的 WorkList
3
+ * */
4
+ import React, { useState } from "react";
5
+ import WorkListHeader from "../WorkListHeader";
6
+ import { useWorkListEffect } from "../../../../data/work";
7
+ import { useWorkType } from "../../../../data/worktype";
8
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
9
+ import { WorkStatusFilter, WorkTypesFilter } from "../../../../controls/filters";
10
+ import { useAutoUpdateListData, useDocumentStore } from "@voplus/morpho-document-core";
11
+ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
12
+ import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
13
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
14
+ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
15
+ import NewWorkForm from "../NewWorkForm";
16
+ import WorkItem from "../WorkItem";
17
+ import dayjs from "dayjs";
18
+ import S from "string";
19
+ import "./index.less";
20
+ const WorkList2 = (props) => {
21
+ const { typesId, roles, status, statusArr, workspaceId, workId, contactId, contact, workHeaderProps, } = props;
22
+ const [activeId, setActiveId] = useState("");
23
+ const [asideContext] = useState(AsideContent.createContext());
24
+ const documentStore = useDocumentStore();
25
+ const workType = useWorkType(typesId);
26
+ let listViewHeaderProps = {};
27
+ const filterCol = () => {
28
+ let filtercolumns = [];
29
+ if (Array.isArray(props.filterVisible)) {
30
+ if (props.filterVisible.includes("WorkStatus")) {
31
+ filtercolumns.push(React.createElement(WorkStatusFilter, { key: "WorkStatusFilter", defaultValue: defaultValue() }));
32
+ }
33
+ if (props.filterVisible.includes("WorkTypes")) {
34
+ filtercolumns.push(React.createElement(WorkTypesFilter, { key: "WorkTypesFilter", workspaceId: workspaceId }));
35
+ }
36
+ }
37
+ else if (status && workspaceId) {
38
+ filtercolumns = [React.createElement(WorkTypesFilter, { key: "WorkTypesFilter", workspaceId: workspaceId })];
39
+ }
40
+ else {
41
+ filtercolumns = [React.createElement(WorkStatusFilter, { key: "WorkStatusFilter", defaultValue: defaultValue() })];
42
+ }
43
+ return filtercolumns;
44
+ };
45
+ if (!!props.filterVisible)
46
+ listViewHeaderProps = {
47
+ columns: filterCol(),
48
+ onFilter,
49
+ };
50
+ const list = useCreateListDataState({
51
+ filterDefaults: {
52
+ includes: "tags",
53
+ filters: filters(),
54
+ },
55
+ }, [status, workHeaderProps === null || workHeaderProps === void 0 ? void 0 : workHeaderProps.dueDate, typesId, statusArr]);
56
+ /** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
57
+ useAutoUpdateListData(list, (d) => d.type === "Work");
58
+ useRenderOnChange(() => list.filters.options);
59
+ /** 把ListDataState传给useWorkListEffect,使之可以自動更新loading, hasmore. */
60
+ useWorkListEffect(list, (result, total) => {
61
+ var _a;
62
+ list.union(result);
63
+ (_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total);
64
+ }, {
65
+ Total: true,
66
+ ...list.filters.options,
67
+ });
68
+ return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
69
+ React.createElement(AsideContent, { context: asideContext },
70
+ React.createElement("div", { className: "work-list-2" },
71
+ React.createElement(WorkListHeader, { ...workHeaderProps, viewTitle: (workHeaderProps === null || workHeaderProps === void 0 ? void 0 : workHeaderProps.viewTitle) || (workType === null || workType === void 0 ? void 0 : workType.name) || "My Works", filterProps: { ...listViewHeaderProps }, onAdd: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewWorkForm, { contact: contact, showView: true }), {
72
+ span: 12,
73
+ }) }),
74
+ React.createElement(ListView, { headerProps: { visible: false }, moveAfter: moveAfter, asideable: false, renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
75
+ var _a;
76
+ setActiveId(item.id);
77
+ (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
78
+ } },
79
+ React.createElement(WorkItem, { id: item.id, clickNameEffect: "default" }))) }))))));
80
+ function filters() {
81
+ let filter = [];
82
+ const rolesFilter = {
83
+ c: "Roles",
84
+ o: "contains",
85
+ l: "And",
86
+ v1: JSON.stringify(["Owner"]),
87
+ };
88
+ const defaultFilter = {
89
+ c: "WorkStatus",
90
+ l: "And",
91
+ o: "=",
92
+ v1: "Active",
93
+ };
94
+ const dueFilter = {
95
+ c: "DueDate",
96
+ o: "<",
97
+ l: "And",
98
+ v1: dayjs().format("YYYY-MM-DD HH:mm:ss"),
99
+ };
100
+ const requestedFilter = [
101
+ {
102
+ c: "Roles",
103
+ o: "contains",
104
+ l: "And",
105
+ v1: JSON.stringify(["Requester"]),
106
+ },
107
+ {
108
+ c: "WorkStatus",
109
+ o: "contains",
110
+ l: "And",
111
+ v1: JSON.stringify(["Draft", "New", "Active"]),
112
+ },
113
+ ];
114
+ if (roles) {
115
+ filter.push(rolesFilter);
116
+ }
117
+ if (status) {
118
+ filter.push({
119
+ c: "WorkStatus",
120
+ o: "=",
121
+ l: "And",
122
+ v1: S(status).capitalize().toString(),
123
+ });
124
+ }
125
+ else if (!(statusArr === null || statusArr === void 0 ? void 0 : statusArr.length)) {
126
+ filter.push(defaultFilter);
127
+ }
128
+ if (statusArr === null || statusArr === void 0 ? void 0 : statusArr.length) {
129
+ filter = [
130
+ {
131
+ c: "WorkStatus",
132
+ o: "contains",
133
+ l: "And",
134
+ v1: JSON.stringify(statusArr),
135
+ },
136
+ ];
137
+ }
138
+ if (typesId) {
139
+ filter.push({
140
+ c: "WorkType",
141
+ o: "=",
142
+ l: "And",
143
+ v1: typesId,
144
+ });
145
+ }
146
+ if (workspaceId) {
147
+ filter.push({ c: "Workspace", o: "=", l: "And", v1: workspaceId });
148
+ }
149
+ if (workId) {
150
+ filter.push({ c: "RelatedId", o: "=", l: "And", v1: workId });
151
+ }
152
+ if (contactId) {
153
+ filter = [
154
+ { c: "Contact", o: "=", l: "And", v1: contactId },
155
+ {
156
+ c: "WorkStatus",
157
+ o: "contains",
158
+ l: "And",
159
+ v1: JSON.stringify(["New", "Active"]),
160
+ },
161
+ ];
162
+ }
163
+ if ((workHeaderProps === null || workHeaderProps === void 0 ? void 0 : workHeaderProps.dueDate) && (workHeaderProps === null || workHeaderProps === void 0 ? void 0 : workHeaderProps.dueDate) !== "due") {
164
+ let date = "day";
165
+ let v1 = "";
166
+ let v2 = "";
167
+ if ((workHeaderProps === null || workHeaderProps === void 0 ? void 0 : workHeaderProps.dueDate) !== "today")
168
+ date = workHeaderProps === null || workHeaderProps === void 0 ? void 0 : workHeaderProps.dueDate;
169
+ v1 = dayjs().startOf(date).format("YYYY-MM-DD HH:mm:ss");
170
+ v2 = dayjs().endOf(date).format("YYYY-MM-DD HH:mm:ss");
171
+ // if (workHeaderProps?.dueDate === "unscheduled") {
172
+ // v1 = dayjs().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss");
173
+ // v2 = dayjs().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss");
174
+ // } else {
175
+ // v1 = dayjs().startOf(date).format("YYYY-MM-DD HH:mm:ss");
176
+ // v2 = dayjs().endOf(date).format("YYYY-MM-DD HH:mm:ss");
177
+ // }
178
+ filter.push({
179
+ c: "DueDate",
180
+ o: "between",
181
+ l: "And",
182
+ v1: v1,
183
+ v2: v2,
184
+ });
185
+ }
186
+ if ((workHeaderProps === null || workHeaderProps === void 0 ? void 0 : workHeaderProps.dueDate) === "due") {
187
+ filter.push(dueFilter);
188
+ }
189
+ if ((workHeaderProps === null || workHeaderProps === void 0 ? void 0 : workHeaderProps.dueDate) === "requested") {
190
+ filter = workspaceId
191
+ ? [{ c: "Workspace", o: "=", l: "And", v1: workspaceId }, ...requestedFilter]
192
+ : [...requestedFilter];
193
+ }
194
+ return filter;
195
+ }
196
+ async function moveAfter(id, afterId) {
197
+ await documentStore.moveAfter(id, afterId);
198
+ }
199
+ function defaultValue() {
200
+ switch (workHeaderProps === null || workHeaderProps === void 0 ? void 0 : workHeaderProps.dueDate) {
201
+ case "today":
202
+ case "week":
203
+ case "month":
204
+ case "due":
205
+ return ["Active"];
206
+ case "requested":
207
+ return ["Draft", "New", "Active"];
208
+ default:
209
+ break;
210
+ }
211
+ if (contactId)
212
+ return ["New", "Active"];
213
+ if (typesId)
214
+ return ["Active"];
215
+ return [];
216
+ }
217
+ function onFilter(context) {
218
+ context.paging.Page = 1;
219
+ context.filter();
220
+ }
221
+ };
222
+ WorkList2.defaultProps = {
223
+ asideable: true,
224
+ filterVisible: true,
225
+ };
226
+ export default WorkList2;
227
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkList2/index.tsx"],"names":[],"mappings":"AAAA;;KAEK;AAEL,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,cAAuC,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAS,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,WAAW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ClB,CAAC;AACF,CAAC,CAAC;AAEF,SAAS,CAAC,YAAY,GAAG;IACxB,SAAS,EAAE,IAAI;IACf,aAAa,EAAE,IAAI;CACnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,27 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .work-list-2 {
5
+ height: 100%;
6
+ display: flex;
7
+ flex-direction: column;
8
+ background-color: #fff;
9
+
10
+ .work-status-menu {
11
+ .ant-btn {
12
+ height: 30px;
13
+ line-height: 20px;
14
+ color: @default-border-color;
15
+ border-radius: @default-border-radius;
16
+ border: 1px solid @default-border-color;
17
+ margin: 0 15px 10px 0;
18
+
19
+ &.active {
20
+ color: @btn-active-color;
21
+ background: #f4f9ff;
22
+ border-color: @btn-active-color;
23
+ }
24
+ }
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { FilterViewProps } from "@voplus/morpho-ui/es/controls/FilterView";
3
+ export type WorkListHeaderProps = {
4
+ addAble?: boolean;
5
+ dueDate?: string;
6
+ viewTitle?: string;
7
+ filterProps?: FilterViewProps;
8
+ workMenu?: {
9
+ key: string;
10
+ label: string;
11
+ total?: number;
12
+ }[];
13
+ onAdd?: () => void;
14
+ onChangeFilter?: (dueDate: string) => void;
15
+ };
16
+ declare const WorkListHeader: (props: WorkListHeaderProps) => React.JSX.Element;
17
+ export default WorkListHeader;
@@ -0,0 +1,26 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { Button } from "antd";
4
+ import { faBriefcase } from "@fortawesome/pro-solid-svg-icons";
5
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
6
+ import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
7
+ import PageHeaderPath from "@voplus/morpho-ui/es/components/layout/headers/PageHeaderPath";
8
+ import classnames from "classnames";
9
+ const WorkListHeader = (props) => {
10
+ const { addAble, viewTitle, dueDate, workMenu, filterProps } = props;
11
+ const [active, setActive] = useState();
12
+ useEffect(() => setActive(dueDate || ""), [dueDate]);
13
+ return observe(() => (React.createElement("div", { className: "work-header" },
14
+ React.createElement(PageHeaderPath, { title: viewTitle, background: true, icon: React.createElement(FAIcon, { icon: faBriefcase }) }),
15
+ React.createElement(ListHeaderTool, { filterViewProps: filterProps, addAble: addAble, onAdd: props.onAdd, sortable: false, searchHeader: true, searchOptions: { placeholder: "search in work list" }, preExtra: () => (React.createElement("div", { className: "work-status-menu" }, workMenu === null || workMenu === void 0 ? void 0 : workMenu.map((item, index) => (React.createElement(Button, { key: index, className: classnames(item, {
16
+ active: active === item.key,
17
+ }), onClick: () => onChangeFilter(item.key) },
18
+ React.createElement(React.Fragment, null, `${item.label} ${item.total ? ` (${item.total})` : null}`)))))) }))));
19
+ function onChangeFilter(item) {
20
+ var _a;
21
+ setActive(item);
22
+ (_a = props.onChangeFilter) === null || _a === void 0 ? void 0 : _a.call(props, item);
23
+ }
24
+ };
25
+ export default WorkListHeader;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkListHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,cAAc,MAAM,+DAA+D,CAAC;AAC3F,OAAO,UAAU,MAAM,YAAY,CAAC;AAYpC,MAAM,cAAc,GAAG,CAAC,KAA0B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D,CACT,CAAC,CACG,CACN,GACA,CACG,CACN,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,IAAY;;QACnC,SAAS,CAAC,IAAI,CAAC,CAAC;QAEhB,MAAA,KAAK,CAAC,cAAc,sDAAG,IAAI,CAAC,CAAC;IAC9B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import React from "react";
2
2
  declare const SeveritySelect: {
3
3
  (props: {
4
- defaultValue?: string | undefined;
5
- open?: boolean | undefined;
6
- autoFocus?: boolean | undefined;
7
- placeholder?: string | undefined;
8
- className?: string | undefined;
9
- onChange?: ((severity: string) => void) | undefined;
10
- onBlur?: (() => void) | undefined;
11
- style?: React.CSSProperties | undefined;
4
+ defaultValue?: string;
5
+ open?: boolean;
6
+ autoFocus?: boolean;
7
+ placeholder?: string;
8
+ className?: string;
9
+ onChange?: (severity: string) => void;
10
+ onBlur?: () => void;
11
+ style?: React.CSSProperties;
12
12
  }): React.JSX.Element;
13
13
  defaultProps: {
14
14
  style: {
@@ -2,14 +2,14 @@ import React from "react";
2
2
  declare const WorkErrorSelect: {
3
3
  (props: {
4
4
  workTypeId: string;
5
- defaultValue?: string | undefined;
6
- open?: boolean | undefined;
7
- autoFocus?: boolean | undefined;
8
- placeholder?: string | undefined;
9
- className?: string | undefined;
10
- onChange?: ((val: string) => void) | undefined;
11
- onBlur?: (() => void) | undefined;
12
- style?: React.CSSProperties | undefined;
5
+ defaultValue?: string;
6
+ open?: boolean;
7
+ autoFocus?: boolean;
8
+ placeholder?: string;
9
+ className?: string;
10
+ onChange?: (val: string) => void;
11
+ onBlur?: () => void;
12
+ style?: React.CSSProperties;
13
13
  }): React.JSX.Element;
14
14
  defaultProps: {
15
15
  style: {
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const Accept: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
7
- className?: string | undefined;
6
+ action?: (context?: any) => void;
7
+ className?: string;
8
8
  }) => React.JSX.Element;
9
9
  export default Accept;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const Reject: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
7
- className?: string | undefined;
6
+ action?: (context?: any) => void;
7
+ className?: string;
8
8
  }) => React.JSX.Element;
9
9
  export default Reject;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  declare const Send: (props: {
3
3
  /** disabled Button */
4
- disabled?: boolean | undefined;
4
+ disabled?: boolean;
5
5
  /** function of Click */
6
- action?: ((context?: any) => void) | undefined;
7
- className?: string | undefined;
6
+ action?: (context?: any) => void;
7
+ className?: string;
8
8
  }) => React.JSX.Element;
9
9
  export default Send;
@@ -4,7 +4,7 @@ import { WorkStatus } from "../../../../data/work";
4
4
  declare const WorkStatusLabel: (props: {
5
5
  status: string;
6
6
  editable: boolean;
7
- className?: string | undefined;
7
+ className?: string;
8
8
  onChange: (status: WorkStatus) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default WorkStatusLabel;
@@ -4,8 +4,8 @@ declare const ChangeWorkDefaultFolderDialog: (props: {
4
4
  defaultDocument?: {
5
5
  id: string;
6
6
  name: string;
7
- } | undefined;
8
- onCancel?: (() => void) | undefined;
9
- onSubmit?: (() => void) | undefined;
7
+ };
8
+ onCancel?: () => void;
9
+ onSubmit?: () => void;
10
10
  }) => React.JSX.Element;
11
11
  export default ChangeWorkDefaultFolderDialog;
@@ -3,16 +3,16 @@ import { ListItem } from "./state";
3
3
  import React from "react";
4
4
  import { ConnectDragSource } from "react-dnd";
5
5
  declare const Item: (props: {
6
- index?: number | undefined;
6
+ index?: number;
7
7
  /** item of check */
8
8
  value: ListItem;
9
9
  /** 现在是不是sort mode */
10
- sortMode?: boolean | undefined;
10
+ sortMode?: boolean;
11
11
  /** DragSource of sort */
12
- connectDragSource?: ConnectDragSource | undefined;
12
+ connectDragSource?: ConnectDragSource;
13
13
  /** edit item 的call back */
14
- onChange?: ((item: ListItem) => void) | undefined;
14
+ onChange?: (item: ListItem) => void;
15
15
  /** delete item 的call back */
16
- onDelete?: ((item: ListItem) => void) | undefined;
16
+ onDelete?: (item: ListItem) => void;
17
17
  }) => React.JSX.Element;
18
18
  export default Item;
@@ -4,16 +4,16 @@ import React from "react";
4
4
  declare const ErrorTypeList: (props: {
5
5
  list: ListItem[];
6
6
  /** drag sort */
7
- moveAfter?: ((id: string | number, afterId: string | number, list?: any[]) => void) | undefined;
7
+ moveAfter?: (id: string | number, afterId: string | number, list?: any[]) => void;
8
8
  /** 新增item的call back */
9
- onCreate?: ((item: string) => void) | undefined;
9
+ onCreate?: (item: string) => void;
10
10
  /** item 內容變化的 call back */
11
- onChange?: ((item: ListItem) => void) | undefined;
11
+ onChange?: (item: ListItem) => void;
12
12
  /** delete item 的call back */
13
- onDelete?: ((item: ListItem) => void) | undefined;
13
+ onDelete?: (item: ListItem) => void;
14
14
  /** 现在是不是sort mode */
15
- sortMode?: boolean | undefined;
15
+ sortMode?: boolean;
16
16
  /** header title */
17
- viewTitle?: string | undefined;
17
+ viewTitle?: string;
18
18
  }) => React.JSX.Element;
19
19
  export default ErrorTypeList;
@@ -2,9 +2,9 @@ import "./index.less";
2
2
  import React from "react";
3
3
  declare const NewTypeForm: (props: {
4
4
  workspaceId: string;
5
- className?: string | undefined;
6
- block?: boolean | undefined;
7
- onSave?: ((params?: any) => void) | undefined;
8
- onCancel?: (() => void) | undefined;
5
+ className?: string;
6
+ block?: boolean;
7
+ onSave?: (params?: any) => void;
8
+ onCancel?: () => void;
9
9
  }) => React.JSX.Element;
10
10
  export default NewTypeForm;
@@ -4,6 +4,6 @@ import React from "react";
4
4
  declare const WorkTypeIconList: (props: {
5
5
  workspaceId: string;
6
6
  /** item onclick */
7
- onItemClick?: ((item: IWorkType) => void) | undefined;
7
+ onItemClick?: (item: IWorkType) => void;
8
8
  }) => React.JSX.Element;
9
9
  export default WorkTypeIconList;
@@ -2,8 +2,8 @@ import React from "react";
2
2
  import { IWorkType } from "../../../../../data/worktype";
3
3
  declare const WorkTypeList: (props: {
4
4
  workspaceId: string;
5
- active?: string | undefined;
5
+ active?: string;
6
6
  /** item onclick */
7
- onClickItem?: ((item: IWorkType) => void) | undefined;
7
+ onClickItem?: (item: IWorkType) => void;
8
8
  }) => React.JSX.Element;
9
9
  export default WorkTypeList;
@@ -1,10 +1,10 @@
1
1
  import { IWorkType } from "../../../../../data/worktype";
2
2
  import React, { CSSProperties } from "react";
3
3
  declare const WorkTypeSelect: (props: {
4
- onChange?: ((id: string, workType: IWorkType) => void) | undefined;
5
- open?: boolean | undefined;
6
- autoFocus?: boolean | undefined;
7
- onBlur?: (() => void) | undefined;
8
- style?: React.CSSProperties | undefined;
4
+ onChange?: (id: string, workType: IWorkType) => void;
5
+ open?: boolean;
6
+ autoFocus?: boolean;
7
+ onBlur?: () => void;
8
+ style?: CSSProperties;
9
9
  }) => React.JSX.Element;
10
10
  export default WorkTypeSelect;
@@ -4,7 +4,7 @@ import "./index.less";
4
4
  declare const WorkTypeStatusLabel: (props: {
5
5
  status: string;
6
6
  editable: boolean;
7
- className?: string | undefined;
7
+ className?: string;
8
8
  onChange: (status: WorkTypeStatus) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default WorkTypeStatusLabel;
@@ -2,10 +2,10 @@ import React from "react";
2
2
  import { IWorkspace } from "../../../../data/workspace";
3
3
  import "./index.less";
4
4
  declare const MyWorkspaces: (props: {
5
- parentId?: string | undefined;
5
+ parentId?: string;
6
6
  /** The current active item */
7
- active?: string | undefined;
7
+ active?: string;
8
8
  /** Call back when an item has been clicked on the list. */
9
- onClickItem?: ((item: IWorkspace) => void) | undefined;
9
+ onClickItem?: (item: IWorkspace) => void;
10
10
  }) => React.JSX.Element;
11
11
  export default MyWorkspaces;