@voplus/morpho-workspace 11.0.4 → 11.1.0
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/components/AutoSequenceDialog/index.js +1 -1
- package/es/components/AutoSequenceDialog/index.js.map +1 -1
- package/es/components/TeamTaskList/index.js +1 -1
- package/es/components/TeamTaskList/index.js.map +1 -1
- package/es/controls/AssignButton/index.js +1 -5
- package/es/controls/AssignButton/index.js.map +1 -1
- package/es/controls/filters/AssigneeViewFilter/index.js +12 -4
- package/es/controls/filters/AssigneeViewFilter/index.js.map +1 -1
- package/es/controls/filters/EventsFilter/state.js +6 -1
- package/es/controls/filters/EventsFilter/state.js.map +1 -1
- package/es/controls/filters/TaskStatusFilter/state.js +6 -1
- package/es/controls/filters/TaskStatusFilter/state.js.map +1 -1
- package/es/controls/filters/WorkStatusFilter/state.js +6 -1
- package/es/controls/filters/WorkStatusFilter/state.js.map +1 -1
- package/es/controls/filters/WorkTypeStatusFilter/state.js +6 -1
- package/es/controls/filters/WorkTypeStatusFilter/state.js.map +1 -1
- package/es/controls/filters/WorkTypesFilter/state.js +6 -1
- package/es/controls/filters/WorkTypesFilter/state.js.map +1 -1
- package/es/data/board/hooks.js.map +1 -1
- package/es/data/calendar/CalendarStore.js +1 -1
- package/es/data/calendar/CalendarStore.js.map +1 -1
- package/es/data/calendar/hooks.js.map +1 -1
- package/es/data/meeting/MeetingStore.js.map +1 -1
- package/es/data/meeting/hooks.js.map +1 -1
- package/es/data/notification/NotificationStore.js.map +1 -1
- package/es/data/notification/hooks.js.map +1 -1
- package/es/data/notification-workspace/NotificationStore.js.map +1 -1
- package/es/data/notification-workspace/hooks.js.map +1 -1
- package/es/data/reports/useEstimatedTimeEffect.js.map +1 -1
- package/es/data/reports/useTaskSummaryEffect.js.map +1 -1
- package/es/data/work/hook.js.map +1 -1
- package/es/data/work-report/WorkReportStore.js.map +1 -1
- package/es/data/work-schedule/WorkScheduleStore.js.map +1 -1
- package/es/data/work-schedule/hooks.js.map +1 -1
- package/es/data/workerror/WorkErrorStore.js.map +1 -1
- package/es/data/workerror/hook.js.map +1 -1
- package/es/data/workspace/WorkSpaceStore.js.map +1 -1
- package/es/data/workspace/hooks.js.map +1 -1
- package/es/data/worktype/WorkTypeStore.js.map +1 -1
- package/es/data/worktype/hook.js.map +1 -1
- package/es/modules/Routes.d.ts +0 -6
- package/es/modules/Routes.js +0 -13
- package/es/modules/Routes.js.map +1 -1
- package/es/modules/board/components/Board/index.js +3 -2
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.js +1 -1
- package/es/modules/board/components/BoardColumn/index.js.map +1 -1
- package/es/modules/board/components/NewBoardColumnDialog/index.js +1 -1
- package/es/modules/board/components/NewBoardColumnDialog/index.js.map +1 -1
- package/es/modules/board/components/SubDocumentList/index.js +1 -1
- package/es/modules/board/components/SubDocumentList/index.js.map +1 -1
- 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/meeting/components/AgendaList/AgendaNewForm/index.js +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/index.js +1 -1
- package/es/modules/meeting/components/AgendaList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.js +2 -2
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingProperties/index.js +1 -1
- package/es/modules/meeting/components/MeetingProperties/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js +2 -2
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/my-document/DocumentViewContext.js.map +1 -1
- package/es/modules/my-document/SectionTemplate/DocumentTableUI/index.js.map +1 -1
- package/es/modules/notification/components/NewNotificationForm/NotificationForm.js +2 -2
- package/es/modules/notification/components/NewNotificationForm/NotificationForm.js.map +1 -1
- package/es/modules/notification/components/NotificationTabs/index.js +2 -1
- package/es/modules/notification/components/NotificationTabs/index.js.map +1 -1
- package/es/modules/notification/controls/NotificationStatusFilter/state.js +6 -1
- package/es/modules/notification/controls/NotificationStatusFilter/state.js.map +1 -1
- package/es/modules/notification-workspace/components/NotificationList/index.js +5 -1
- package/es/modules/notification-workspace/components/NotificationList/index.js.map +1 -1
- package/es/modules/project/data/hook.js.map +1 -1
- package/es/modules/tasks/components/AddTaskDropdown/index.js +2 -1
- package/es/modules/tasks/components/AddTaskDropdown/index.js.map +1 -1
- package/es/modules/tasks/components/DelegateDialog/index.js +3 -2
- package/es/modules/tasks/components/DelegateDialog/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/NewTaskFormDialog.js +5 -4
- package/es/modules/tasks/components/NewTaskForm/NewTaskFormDialog.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.js +5 -2
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/NotificationNewTaskForm/index.js +1 -1
- package/es/modules/tasks/components/NotificationNewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.js +3 -6
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckActiveTab/index.js +5 -5
- package/es/modules/tasks/components/TaskCheckActiveTab/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckDoneTab/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckItem/index.js +14 -7
- package/es/modules/tasks/components/TaskCheckItem/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckList/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckNewForm/index.js +1 -1
- package/es/modules/tasks/components/TaskCheckNewForm/index.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/index.js +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/index.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/state.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +9 -4
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +2 -2
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/state.js +3 -1
- package/es/modules/tasks/components/TaskItem/state.js.map +1 -1
- package/es/modules/tasks/components/TaskProperties/index.js +4 -2
- package/es/modules/tasks/components/TaskProperties/index.js.map +1 -1
- package/es/modules/tasks/components/TaskSimpleProperties/index.js +5 -3
- package/es/modules/tasks/components/TaskSimpleProperties/index.js.map +1 -1
- package/es/modules/tasks/components/TaskTabs/index.js +2 -1
- package/es/modules/tasks/components/TaskTabs/index.js.map +1 -1
- package/es/modules/tasks/components/task-check/TaskCheckDoneTab/index.js.map +1 -1
- package/es/modules/tasks/components/task-check/TaskCheckNewForm/index.js +1 -1
- package/es/modules/tasks/components/task-check/TaskCheckNewForm/index.js.map +1 -1
- package/es/modules/tasks/components/task-check/TaskCheckTableCard/TableCell.js +5 -3
- package/es/modules/tasks/components/task-check/TaskCheckTableCard/TableCell.js.map +1 -1
- package/es/modules/tasks/components/task-check/TaskCheckTableList/index.js.map +1 -1
- package/es/modules/tasks/controls/DueDateToolBar/index.js +9 -4
- package/es/modules/tasks/controls/DueDateToolBar/index.js.map +1 -1
- package/es/modules/tasks/controls/TaskStatusDataIcon/index.js +9 -10
- package/es/modules/tasks/controls/TaskStatusDataIcon/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskList/index.js +1 -1
- package/es/modules/tasks/pages/TaskList/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.js +4 -2
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/work/components/NewWorkForm/index.js +5 -3
- package/es/modules/work/components/NewWorkForm/index.js.map +1 -1
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.js +2 -1
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.js.map +1 -1
- package/es/modules/work/components/WorkList/index.js +1 -1
- package/es/modules/work/components/WorkList/index.js.map +1 -1
- package/es/modules/work/components/WorkTableCard/index.js.map +1 -1
- package/es/modules/work/components/WorkTableListCard/TableCell.js +13 -9
- package/es/modules/work/components/WorkTableListCard/TableCell.js.map +1 -1
- package/es/modules/work/components/WorkTableListCard/index.js.map +1 -1
- package/es/modules/work/components/WorkTableListCardPage/index.js.map +1 -1
- package/es/modules/work/components/WorkTabs/index.js +2 -1
- package/es/modules/work/components/WorkTabs/index.js.map +1 -1
- package/es/modules/work/components/WorksProperties/index.js +3 -10
- package/es/modules/work/components/WorksProperties/index.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Accept.js +5 -2
- package/es/modules/work/controls/WorkMenu/item/Accept.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Reject.js +5 -2
- package/es/modules/work/controls/WorkMenu/item/Reject.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Send.js +7 -4
- package/es/modules/work/controls/WorkMenu/item/Send.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Took.js +5 -2
- package/es/modules/work/controls/WorkMenu/item/Took.js.map +1 -1
- package/es/modules/work/controls/WorkStatusDataIcon/index.js +8 -10
- package/es/modules/work/controls/WorkStatusDataIcon/index.js.map +1 -1
- package/es/modules/work/work-error/components/NewWorkErrorDialog/index.js +1 -1
- package/es/modules/work/work-error/components/NewWorkErrorDialog/index.js.map +1 -1
- package/es/modules/work/work-error/components/WorkErrorProperties/index.js +9 -7
- package/es/modules/work/work-error/components/WorkErrorProperties/index.js.map +1 -1
- package/es/modules/work/work-error/components/WorkErrorTabs/index.js +2 -1
- package/es/modules/work/work-error/components/WorkErrorTabs/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.js +5 -3
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js +9 -7
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleTabs/index.js +2 -1
- package/es/modules/work/work-schedule/components/WorkScheduleTabs/index.js.map +1 -1
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/item/LinkWork.js +7 -5
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/item/LinkWork.js.map +1 -1
- package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/index.js +5 -3
- package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/index.js.map +1 -1
- package/es/modules/work/work-type/components/NewTypeForm/index.js +1 -1
- package/es/modules/work/work-type/components/NewTypeForm/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeProperties/Properties.js +5 -3
- package/es/modules/work/work-type/components/WorkTypeProperties/Properties.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeQA/index.js +1 -1
- package/es/modules/work/work-type/components/WorkTypeQA/index.js.map +1 -1
- package/es/modules/work/work-type/pages/WorkTypePage/index.js +2 -1
- package/es/modules/work/work-type/pages/WorkTypePage/index.js.map +1 -1
- package/es/modules/workspace/components/NewWorkspaceDialog/index.js +1 -1
- package/es/modules/workspace/components/NewWorkspaceDialog/index.js.map +1 -1
- package/es/routes.js +0 -1
- package/es/routes.js.map +1 -1
- package/package.json +6 -4
- package/es/obsolete/BoardPropertiesView/index.d.ts +0 -9
- package/es/obsolete/BoardPropertiesView/index.js +0 -45
- package/es/obsolete/BoardPropertiesView/index.js.map +0 -1
- package/es/obsolete/NotificationItem/index.css +0 -21
- package/es/obsolete/NotificationItem/index.d.ts +0 -6
- package/es/obsolete/NotificationItem/index.js +0 -34
- package/es/obsolete/NotificationItem/index.js.map +0 -1
- package/es/obsolete/NotificationList2/index.css +0 -9
- package/es/obsolete/NotificationList2/index.d.ts +0 -13
- package/es/obsolete/NotificationList2/index.js +0 -50
- package/es/obsolete/NotificationList2/index.js.map +0 -1
- package/es/obsolete/WorkTypeDefaultView/index.css +0 -17
- package/es/obsolete/WorkTypeDefaultView/index.d.ts +0 -4
- package/es/obsolete/WorkTypeDefaultView/index.js +0 -32
- package/es/obsolete/WorkTypeDefaultView/index.js.map +0 -1
- package/es/obsolete/WorkTypePage/Dashboard.d.ts +0 -6
- package/es/obsolete/WorkTypePage/Dashboard.js +0 -18
- package/es/obsolete/WorkTypePage/Dashboard.js.map +0 -1
- package/es/obsolete/WorkTypePage/Summary.d.ts +0 -6
- package/es/obsolete/WorkTypePage/Summary.js +0 -21
- package/es/obsolete/WorkTypePage/Summary.js.map +0 -1
- package/es/obsolete/WorkTypePage/WorkListPage.d.ts +0 -7
- package/es/obsolete/WorkTypePage/WorkListPage.js +0 -25
- package/es/obsolete/WorkTypePage/WorkListPage.js.map +0 -1
- package/es/obsolete/WorkTypePage/WorkTypeDescriptionCard.d.ts +0 -5
- package/es/obsolete/WorkTypePage/WorkTypeDescriptionCard.js +0 -14
- package/es/obsolete/WorkTypePage/WorkTypeDescriptionCard.js.map +0 -1
- package/es/obsolete/WorkTypePage/index.css +0 -50
- package/es/obsolete/WorkTypePage/index.d.ts +0 -4
- package/es/obsolete/WorkTypePage/index.js +0 -180
- package/es/obsolete/WorkTypePage/index.js.map +0 -1
- package/es/obsolete/WorkTypePage/state.d.ts +0 -16
- package/es/obsolete/WorkTypePage/state.js +0 -163
- package/es/obsolete/WorkTypePage/state.js.map +0 -1
- package/es/obsolete/WorkTypeQA/index.css +0 -38
- package/es/obsolete/WorkTypeQA/index.d.ts +0 -6
- package/es/obsolete/WorkTypeQA/index.js +0 -40
- package/es/obsolete/WorkTypeQA/index.js.map +0 -1
- package/es/obsolete/WorkTypeQA/state.d.ts +0 -17
- package/es/obsolete/WorkTypeQA/state.js +0 -133
- package/es/obsolete/WorkTypeQA/state.js.map +0 -1
- package/es/obsolete/member/components/MemberDropdown.d.ts +0 -5
- package/es/obsolete/member/components/MemberDropdown.js +0 -15
- package/es/obsolete/member/components/MemberDropdown.js.map +0 -1
- package/es/obsolete/member/components/MemberList.d.ts +0 -7
- package/es/obsolete/member/components/MemberList.js +0 -27
- package/es/obsolete/member/components/MemberList.js.map +0 -1
- package/es/obsolete/member/components/MemberMenu.d.ts +0 -7
- package/es/obsolete/member/components/MemberMenu.js +0 -15
- package/es/obsolete/member/components/MemberMenu.js.map +0 -1
- package/es/obsolete/member/components/MemberSelect.d.ts +0 -5
- package/es/obsolete/member/components/MemberSelect.js +0 -11
- package/es/obsolete/member/components/MemberSelect.js.map +0 -1
- package/es/obsolete/member/components/member.css +0 -25
- package/es/obsolete/member/pages/MemberListView/index.d.ts +0 -4
- package/es/obsolete/member/pages/MemberListView/index.js +0 -227
- package/es/obsolete/member/pages/MemberListView/index.js.map +0 -1
- package/es/obsolete/member/pages/MemberRoutes.d.ts +0 -2
- package/es/obsolete/member/pages/MemberRoutes.js +0 -25
- package/es/obsolete/member/pages/MemberRoutes.js.map +0 -1
- package/es/obsolete/member/styles/MemberMinView.css +0 -22
- package/es/obsolete/space/components/Notes/ColorSelect/index.css +0 -15
- package/es/obsolete/space/components/Notes/ColorSelect/index.d.ts +0 -10
- package/es/obsolete/space/components/Notes/ColorSelect/index.js +0 -29
- package/es/obsolete/space/components/Notes/ColorSelect/index.js.map +0 -1
- package/es/obsolete/space/components/Notes/NewNoteDialog/index.css +0 -76
- package/es/obsolete/space/components/Notes/NewNoteDialog/index.d.ts +0 -10
- package/es/obsolete/space/components/Notes/NewNoteDialog/index.js +0 -38
- package/es/obsolete/space/components/Notes/NewNoteDialog/index.js.map +0 -1
- package/es/obsolete/space/components/Notes/TextNoteCard/index.css +0 -54
- package/es/obsolete/space/components/Notes/TextNoteCard/index.d.ts +0 -6
- package/es/obsolete/space/components/Notes/TextNoteCard/index.js +0 -35
- package/es/obsolete/space/components/Notes/TextNoteCard/index.js.map +0 -1
- package/es/obsolete/space/components/Notes/TextNoteCard/state.d.ts +0 -5
- package/es/obsolete/space/components/Notes/TextNoteCard/state.js +0 -39
- package/es/obsolete/space/components/Notes/TextNoteCard/state.js.map +0 -1
- package/es/obsolete/space/components/Notes/index.d.ts +0 -5
- package/es/obsolete/space/components/Notes/index.js +0 -50
- package/es/obsolete/space/components/Notes/index.js.map +0 -1
- package/es/obsolete/space/components/Notifications/index.d.ts +0 -7
- package/es/obsolete/space/components/Notifications/index.js +0 -34
- package/es/obsolete/space/components/Notifications/index.js.map +0 -1
- package/es/obsolete/space/components/Projects/index.d.ts +0 -5
- package/es/obsolete/space/components/Projects/index.js +0 -35
- package/es/obsolete/space/components/Projects/index.js.map +0 -1
- package/es/obsolete/space/components/Roles/index.d.ts +0 -5
- package/es/obsolete/space/components/Roles/index.js +0 -14
- package/es/obsolete/space/components/Roles/index.js.map +0 -1
- package/es/obsolete/space/components/Tasks/index.css +0 -15
- package/es/obsolete/space/components/Tasks/index.d.ts +0 -8
- package/es/obsolete/space/components/Tasks/index.js +0 -205
- package/es/obsolete/space/components/Tasks/index.js.map +0 -1
- package/es/obsolete/space/components/Teams/index.d.ts +0 -5
- package/es/obsolete/space/components/Teams/index.js +0 -14
- package/es/obsolete/space/components/Teams/index.js.map +0 -1
- package/es/obsolete/space/components/Works/index.d.ts +0 -7
- package/es/obsolete/space/components/Works/index.js +0 -22
- package/es/obsolete/space/components/Works/index.js.map +0 -1
- package/es/obsolete/space/components/Workspaces/index.d.ts +0 -5
- package/es/obsolete/space/components/Workspaces/index.js +0 -18
- package/es/obsolete/space/components/Workspaces/index.js.map +0 -1
- package/es/obsolete/space/pages/MySpace/index.css +0 -52
- package/es/obsolete/space/pages/MySpace/index.d.ts +0 -7
- package/es/obsolete/space/pages/MySpace/index.js +0 -248
- package/es/obsolete/space/pages/MySpace/index.js.map +0 -1
- package/es/obsolete/space/pages/MySpace/state.d.ts +0 -30
- package/es/obsolete/space/pages/MySpace/state.js +0 -148
- package/es/obsolete/space/pages/MySpace/state.js.map +0 -1
- package/es/obsolete/space/pages/MySpace/taskState.d.ts +0 -36
- package/es/obsolete/space/pages/MySpace/taskState.js +0 -339
- package/es/obsolete/space/pages/MySpace/taskState.js.map +0 -1
- package/es/obsolete/space/pages/MySpace/workState.d.ts +0 -32
- package/es/obsolete/space/pages/MySpace/workState.js +0 -249
- package/es/obsolete/space/pages/MySpace/workState.js.map +0 -1
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import ListItemController from "@voplus/morpho-document-core/es/controls/ListItemController";
|
|
2
|
-
import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
|
|
3
|
-
import { Open } from "@voplus/morpho-document-core/es/controls/ToolBar/buttons";
|
|
4
|
-
import { observe } from "@voplus/morpho-ui";
|
|
5
|
-
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
6
|
-
import classnames from "classnames";
|
|
7
|
-
import React, { useState } from "react";
|
|
8
|
-
import { useNotification } from "../../data/notification";
|
|
9
|
-
import Routes from "../../modules/Routes";
|
|
10
|
-
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
11
|
-
import NotificationMenu from "../../modules/notification/controls/NotificationMenu";
|
|
12
|
-
import PropertiesView from "../../modules/notification/components/NotificationPropertiesView";
|
|
13
|
-
import NotificationQuickViewDialog from "../../modules/notification/components/NotificationQuickViewDialog";
|
|
14
|
-
import NotificationStatusLabel from "../../modules/notification/controls/NotificationStatusLabel";
|
|
15
|
-
import "./index.css";
|
|
16
|
-
const NotificationItem = (props) => {
|
|
17
|
-
const { id } = props;
|
|
18
|
-
const notification = useNotification(id);
|
|
19
|
-
const [hover, setHover] = useState(false);
|
|
20
|
-
return observe(() => (React.createElement(ListItemController, { className: "notification-item", onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false), propertiesView: React.createElement(PropertiesView, { id: id }), quickViewDialog: (onCancel) => (React.createElement(NotificationQuickViewDialog, { id: id, visible: true, onCancel: onCancel })) },
|
|
21
|
-
React.createElement(ColumnItem, { className: "notification-column-item" },
|
|
22
|
-
React.createElement(ColumnItemCol, { span: 10, label: "Subject" },
|
|
23
|
-
React.createElement("div", { className: "notification-item-name" }, notification.subject)),
|
|
24
|
-
React.createElement(ColumnItemCol, { span: 10, label: "Date" },
|
|
25
|
-
React.createElement(UTCShortDate, { value: notification.createDate, format: "DD MMM YYYY" })),
|
|
26
|
-
React.createElement(ColumnItemCol, { span: 4, align: "flex-end" },
|
|
27
|
-
!hover && notification.draft ? (React.createElement(NotificationStatusLabel, { status: notification.draft ? "Draft" : "" })) : null,
|
|
28
|
-
React.createElement("div", { className: classnames("notification-item-tool", { show: hover }) },
|
|
29
|
-
React.createElement(ToolBar, { showMenu: false, id: id },
|
|
30
|
-
React.createElement(Open, { url: Routes.NotificationDefaultView.getUrl(id) }),
|
|
31
|
-
notification.draft && React.createElement(NotificationMenu, { id: id, closeAside: true }))))))));
|
|
32
|
-
};
|
|
33
|
-
export default NotificationItem;
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/obsolete/NotificationItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,6DAA6D,CAAC;AAC7F,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,0DAA0D,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,gBAAgB,MAAM,sDAAsD,CAAC;AACpF,OAAO,cAAc,MAAM,kEA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Y,CAAC,KAAK,CAAC,CAAC,CAAC,CAC/B,oBAAC,uBAAuB,IAAC,MAAM,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAI,CACtE,CAAC,CAAC,CAAC,IAAI;gBACR,6BAAK,SAAS,EAAE,UAAU,CAAC,wBAAwB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;oBACpE,oBAAC,OAAO,IAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;wBAC/B,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;wBACvD,YAAY,CAAC,KAAK,IAAI,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CAC5D,CACL,CACS,CACJ,CACO,CACrB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "./index.css";
|
|
2
|
-
import React from "react";
|
|
3
|
-
export type NotificationListProps = {
|
|
4
|
-
/** 需要 corporate 或者 customer id */
|
|
5
|
-
parentId: string;
|
|
6
|
-
addAble?: boolean;
|
|
7
|
-
recipients?: {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}[];
|
|
11
|
-
};
|
|
12
|
-
declare const NotificationList: ({ addAble, ...props }: NotificationListProps) => React.JSX.Element;
|
|
13
|
-
export default NotificationList;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import "./index.css";
|
|
2
|
-
import { useNotificationListEffect } from "../../data/notification";
|
|
3
|
-
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data/ListDataContext";
|
|
4
|
-
import React, { useState } from "react";
|
|
5
|
-
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView";
|
|
6
|
-
import NotificationForm from "../../modules/notification/components/NewNotificationForm/NotificationForm";
|
|
7
|
-
import NewNotificationFormDialog from "../../modules/notification/components/NewNotificationForm";
|
|
8
|
-
import NotificationItem from "../NotificationItem";
|
|
9
|
-
import { observe } from "@voplus/morpho-ui";
|
|
10
|
-
import { useAutoUpdateListData } from "../../data/notification";
|
|
11
|
-
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
12
|
-
import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
13
|
-
const NotificationList = ({ addAble = true, ...props }) => {
|
|
14
|
-
const { parentId } = props;
|
|
15
|
-
const [addNotification, setAddNotification] = useState(false);
|
|
16
|
-
const view = useViewContext();
|
|
17
|
-
const list = useCreateListDataState({
|
|
18
|
-
filterDefaults: {
|
|
19
|
-
includes: "recipients",
|
|
20
|
-
filters: [{ c: "Target", o: "=", l: "And", v1: parentId }],
|
|
21
|
-
},
|
|
22
|
-
}, [parentId]);
|
|
23
|
-
useAutoUpdateListData(list, (d) => d.target.id === parentId);
|
|
24
|
-
useRenderOnChange(() => list.filters.options);
|
|
25
|
-
useNotificationListEffect(list, (result, total) => {
|
|
26
|
-
list.union(result);
|
|
27
|
-
}, {
|
|
28
|
-
Total: false,
|
|
29
|
-
...list.filters.options,
|
|
30
|
-
});
|
|
31
|
-
return observe(() => {
|
|
32
|
-
return (React.createElement(ListDataContext.Provider, { value: list },
|
|
33
|
-
React.createElement(ListView, { className: "notification-list-view",
|
|
34
|
-
// headerProps={{
|
|
35
|
-
// viewTitle: "Notification List",
|
|
36
|
-
// addAble: addAble,
|
|
37
|
-
// sortable: false,
|
|
38
|
-
// quickSearch: true,
|
|
39
|
-
// onAdd: () =>
|
|
40
|
-
// (view?.Type === "PropertiesView" || view?.Type === "QuickView") &&
|
|
41
|
-
// setAddNotification(!addNotification),
|
|
42
|
-
// }}
|
|
43
|
-
// formViewTitle="Add Offiec"
|
|
44
|
-
formView: view?.Type !== "PropertiesView" &&
|
|
45
|
-
view?.Type !== "QuickView" && (React.createElement(NotificationForm, { showView: true, targetId: parentId, recipients: props.recipients })), renderItem: ({ item, index }) => (React.createElement(NotificationItem, { key: item.id, id: item.id })) }),
|
|
46
|
-
addNotification && (React.createElement(NewNotificationFormDialog, { targetId: parentId, recipients: props.recipients, onCancel: () => setAddNotification(false), onSave: () => setAddNotification(false) }))));
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
export default NotificationList;
|
|
50
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/obsolete/NotificationList2/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAoB,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,QAAQ,MAAM,0DAA0D,CAAC;AAChF,OAAO,gBAAgB,MAAM,4EAA4E,CAAC;AAC1G,OAAO,yBAAyB,MAAM,2DAA2D,CAAC;AAClG,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAS1F,MAAM,gBAAgB,GAAG,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,GAAG,KAAK,EAAyB,EAAE,EAAE;IAChF,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9D,MAAM,IAAI,GAAG,cAAc,EAAE,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,EAAE,KAAK,EAA6C,EAAE,EAAE,CAAC,CAC3E,oBAAC,gBAAgB,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CAC/C,GACA;YACD,eAAe,IAAI,CACnB,oBAAC,yBAAyB,IACzB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,QAAQ,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,EACzC,MAAM,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,GACtC,CACF,CACyB,CAC3B,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from "react";
|
|
2
|
-
import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
|
|
3
|
-
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
4
|
-
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
5
|
-
import WorkTypeProperties from "../../modules/work/work-type/components/WorkTypeProperties";
|
|
6
|
-
import WorkTypeTabs from "../../modules/work/work-type/components/WorkTypeTabs";
|
|
7
|
-
import { observe } from "@voplus/morpho-ui";
|
|
8
|
-
import { runInAction } from "mobx";
|
|
9
|
-
import "./index.css";
|
|
10
|
-
import { useParams } from "react-router-dom";
|
|
11
|
-
import { useTabItem } from "@voplus/morpho-data";
|
|
12
|
-
import { useWorkType } from "../../data/worktype";
|
|
13
|
-
const WorkTypeDefaultView = () => {
|
|
14
|
-
const params = useParams();
|
|
15
|
-
const id = params.id || "";
|
|
16
|
-
const store = new TabItemStore({ url: "" });
|
|
17
|
-
const [asideContext] = useState(AsideContent.createContext());
|
|
18
|
-
const worktype = useWorkType(id);
|
|
19
|
-
const tab = useTabItem();
|
|
20
|
-
useEffect(() => {
|
|
21
|
-
runInAction(() => (tab.title = worktype.name));
|
|
22
|
-
}, []);
|
|
23
|
-
return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
|
|
24
|
-
React.createElement(MainContent, { className: "work-type-default-view" },
|
|
25
|
-
React.createElement(MainContent.Nav, { collapsible: true },
|
|
26
|
-
React.createElement(WorkTypeProperties, { id: id })),
|
|
27
|
-
React.createElement("div", { className: "work-type-context" },
|
|
28
|
-
React.createElement(AsideContent, { context: asideContext },
|
|
29
|
-
React.createElement(WorkTypeTabs, { id: id })))))));
|
|
30
|
-
};
|
|
31
|
-
export default WorkTypeDefaultView;
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/obsolete/WorkTypeDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,kBAAkB,MAAM,4DAA4D,CAAC;AAC5F,OAAO,YAAY,MAAM,sDAAsD,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAChC,MAAM,MAAM,GAAG,SAAS,EAAkB,CAAC;IAC3C,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;IAE3B,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAG,CAAC,CAAC;IAElC,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAChD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,WAAW,IAAC,SAAS,EAAE,wBAAwB;YAC/C,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;gBAC3B,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CACb;YAClB,6BAAK,SAAS,EAAC,mBAAmB;gBACjC,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;oBAClC,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,GAAI,CACV,CACV,CACO,CACW,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Col, Row } from "antd";
|
|
3
|
-
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import RelatedDocument from "@voplus/morpho-org/es/controls/RelatedDocument";
|
|
5
|
-
import WorkListCard from "../../modules/work/components/WorkListCard";
|
|
6
|
-
import WorkTypeStatsCard from "../../modules/work/work-type/components/WorkTypeStats/WorkTypeStatsCard";
|
|
7
|
-
import "./index.css";
|
|
8
|
-
const Dashboard = (props) => {
|
|
9
|
-
const { id } = props;
|
|
10
|
-
return observe(() => (React.createElement("div", { className: "work-type-dashboard-content" },
|
|
11
|
-
React.createElement(RelatedDocument, null,
|
|
12
|
-
React.createElement(Row, { gutter: [16, 0] },
|
|
13
|
-
React.createElement(Col, { span: 24 },
|
|
14
|
-
React.createElement(WorkTypeStatsCard, { id: id, style: { height: "370px" } }),
|
|
15
|
-
React.createElement(WorkListCard, { typesId: id, style: { height: "430px" } })))))));
|
|
16
|
-
};
|
|
17
|
-
export default Dashboard;
|
|
18
|
-
//# sourceMappingURL=Dashboard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../src/obsolete/WorkTypePage/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,iBAAiB,MAAM,yEAAyE,CAAC;AACxG,OAAO,aAAa,CAAC;AAErB,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC3C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,6BAA6B;QAC5C,oBAAC,eAAe;YACf,oBAAC,GAAG,IAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;gBACnB,oBAAC,GAAG,IAAC,IAAI,EAAE,EAAE;oBACZ,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAI;oBACzD,oBAAC,YAAY,IAAC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAI,CACpD,CACD,CACW,CACb,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Col, Row } from "antd";
|
|
3
|
-
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import RelatedDocument from "@voplus/morpho-org/es/controls/RelatedDocument";
|
|
5
|
-
import WorkTypePropertiesCard from "../../modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard";
|
|
6
|
-
import WorkTypeTabsCard from "../../modules/work/work-type/components/WorkTypeTabs/WorkTypeTabsCard";
|
|
7
|
-
import WorkTypeDescriptionCard from "./WorkTypeDescriptionCard";
|
|
8
|
-
import "./index.css";
|
|
9
|
-
const Summary = (props) => {
|
|
10
|
-
const { id } = props;
|
|
11
|
-
return observe(() => (React.createElement("div", { className: "work-type-dashboard-content" },
|
|
12
|
-
React.createElement(RelatedDocument, null,
|
|
13
|
-
React.createElement(Row, { gutter: [16, 0] },
|
|
14
|
-
React.createElement(Col, { xs: 24, sm: 24, md: 24, lg: 24, xl: 8 },
|
|
15
|
-
React.createElement(WorkTypePropertiesCard, { id: id })),
|
|
16
|
-
React.createElement(Col, { xs: 24, sm: 24, md: 24, lg: 24, xl: 16 },
|
|
17
|
-
React.createElement(WorkTypeDescriptionCard, { id: id }),
|
|
18
|
-
React.createElement(WorkTypeTabsCard, { id: id })))))));
|
|
19
|
-
};
|
|
20
|
-
export default Summary;
|
|
21
|
-
//# sourceMappingURL=Summary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Summary.js","sourceRoot":"","sources":["../../../src/obsolete/WorkTypePage/Summary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,sBAAsB,MAAM,mFAAmF,CAAC;AACvH,OAAO,gBAAgB,MAAM,uEAAuE,CAAC;AACrG,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,aAAa,CAAC;AAErB,MAAM,OAAO,GAAG,CAAC,KAAqB,EAAE,EAAE;IACzC,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,6BAA6B;QAC5C,oBAAC,eAAe;YACf,oBAAC,GAAG,IAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;gBACnB,oBAAC,GAAG,IAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;oBACzC,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,CAC7B;gBACN,oBAAC,GAAG,IAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;oBAC1C,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI;oBACnC,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI,CACvB,CACD,CACW,CACb,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useParams, useResolvedPath } from "react-router-dom";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import WorkList from "../../modules/work/components/WorkList";
|
|
4
|
-
import { generatePath } from "react-router";
|
|
5
|
-
import { observe } from "@voplus/morpho-ui";
|
|
6
|
-
import { runInAction } from "mobx";
|
|
7
|
-
import { useLayout } from "@voplus/morpho-data";
|
|
8
|
-
const WorkListPage = (props) => {
|
|
9
|
-
const params = useParams();
|
|
10
|
-
const url = useResolvedPath("").pathname;
|
|
11
|
-
const layout = useLayout();
|
|
12
|
-
return observe(() => (React.createElement(WorkList, { status: params.status, active: params.active, typesId: params.id, onClickItem: (item) => {
|
|
13
|
-
layout.history.replace(generatePath(props.path, {
|
|
14
|
-
id: params.id,
|
|
15
|
-
status: params.status,
|
|
16
|
-
active: item.id,
|
|
17
|
-
}));
|
|
18
|
-
}, onTotal: (total) => {
|
|
19
|
-
runInAction(() => {
|
|
20
|
-
props.state.workStatusTotals[params.status] = total;
|
|
21
|
-
});
|
|
22
|
-
} })));
|
|
23
|
-
};
|
|
24
|
-
export default WorkListPage;
|
|
25
|
-
//# sourceMappingURL=WorkListPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WorkListPage.js","sourceRoot":"","sources":["../../../src/obsolete/WorkTypePage/WorkListPage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,YAAY,GAAG,CAAC,KAAqC,EAAE,EAAE;IAC9D,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,GAAG,GAAG,eAAe,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC;IACzC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,IACR,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,OAAO,EAAE,MAAM,CAAC,EAAE,EAClB,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,MAAM,CAAC,OAAO,CAAC,OAAO,CACrB,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE;gBACxB,EAAE,EAAE,MAAM,CAAC,EAAG;gBACd,MAAM,EAAE,MAAM,CAAC,MAAO;gBACtB,MAAM,EAAE,IAAI,CAAC,EAAE;aACf,CAAC,CACF,CAAC;QACH,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,WAAW,CAAC,GAAG,EAAE;gBAChB,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAO,CAAC,GAAG,KAAK,CAAC;YACtD,CAAC,CAAC,CAAC;QACJ,CAAC,GACA,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import { useWorkType, useWorkTypeStore } from "../../data/worktype";
|
|
4
|
-
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
5
|
-
const WorkTypeDescriptionCard = (props) => {
|
|
6
|
-
const worktype = useWorkType(props.id);
|
|
7
|
-
const store = useWorkTypeStore();
|
|
8
|
-
return observe(() => (React.createElement("div", { className: "mt-5 overflow-hidden bg-white shadow-sm sm:rounded-lg" },
|
|
9
|
-
React.createElement("div", { className: "px-4 py-4 sm:px-6" },
|
|
10
|
-
React.createElement("h3", { className: "text-lg font-medium leading-6 text-gray-900" }, "Default Description")),
|
|
11
|
-
React.createElement(DescriptionEditor, { id: props.id, description: worktype.description, onSave: (description) => store.edit(worktype.id, { data: { Description: description }, error: "message" }) }))));
|
|
12
|
-
};
|
|
13
|
-
export default WorkTypeDescriptionCard;
|
|
14
|
-
//# sourceMappingURL=WorkTypeDescriptionCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WorkTypeDescriptionCard.js","sourceRoot":"","sources":["../../../src/obsolete/WorkTypePage/WorkTypeDescriptionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAEtF,MAAM,uBAAuB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACzD,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IAEjC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,uDAAuD;QACrE,6BAAK,SAAS,EAAC,mBAAmB;YACjC,4BAAI,SAAS,EAAC,6CAA6C,0BAAyB,CAC/E;QACN,oBAAC,iBAAiB,IACjB,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,WAAW,EAAE,QAAQ,CAAC,WAAW,EACjC,MAAM,EAAE,CAAC,WAAoB,EAAE,EAAE,CAChC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GAEjF,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
.work-type-page {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
|
|
5
|
-
.work-type-page-content {
|
|
6
|
-
background: #fff;
|
|
7
|
-
padding: 0;
|
|
8
|
-
|
|
9
|
-
.activity-log-view {
|
|
10
|
-
.activity-time-line {
|
|
11
|
-
.list-view-header {
|
|
12
|
-
padding: 1em 20px;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.work-type-dashboard-content {
|
|
20
|
-
height: 100%;
|
|
21
|
-
background: #f5f9fc;
|
|
22
|
-
.plus-icon {
|
|
23
|
-
position: relative;
|
|
24
|
-
color: #000;
|
|
25
|
-
background: #fff !important;
|
|
26
|
-
|
|
27
|
-
&::after {
|
|
28
|
-
position: absolute;
|
|
29
|
-
top: -1px;
|
|
30
|
-
left: -1px;
|
|
31
|
-
content: " ";
|
|
32
|
-
width: 23px;
|
|
33
|
-
height: 23px;
|
|
34
|
-
border-radius: 4px;
|
|
35
|
-
border: 1px solid rgb(209 213 219);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.work-type-properties-card {
|
|
40
|
-
margin-top: 1.25rem;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.description-editor {
|
|
44
|
-
padding-top: 0 !important;
|
|
45
|
-
|
|
46
|
-
.description-editor-proseMirror {
|
|
47
|
-
padding: 0 !important;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { Badge, Menu } from "antd";
|
|
2
|
-
import { InlineEdit, observe, useAutorunEffect, NavPanel } from "@voplus/morpho-ui";
|
|
3
|
-
import { Navigate, Route, Routes, useParams, useResolvedPath } from "react-router-dom";
|
|
4
|
-
import React, { useMemo, useState } from "react";
|
|
5
|
-
import { TabItemContext, TabItemStore, useLayout, useTabItem } from "@voplus/morpho-data";
|
|
6
|
-
import { faCalendarCheckSolid, faEllipsisVerticalSolid, faGearSolid, faListTimelineSolid, faTableRowsSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
7
|
-
import { useDocumentListEffect, useTaskListEffect } from "@voplus/morpho-document-core";
|
|
8
|
-
import { useWorkType, useWorkTypeStore } from "../../data/worktype";
|
|
9
|
-
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
10
|
-
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
11
|
-
import Dashboard from "./Dashboard";
|
|
12
|
-
import DocumentPage from "@voplus/morpho-document/es/pages/DocumentPage";
|
|
13
|
-
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
14
|
-
import Scrollbars from "react-custom-scrollbars-2";
|
|
15
|
-
import { State } from "./state";
|
|
16
|
-
import Summary from "./Summary";
|
|
17
|
-
import TaskList from "../../modules/tasks/components/SubTaskList";
|
|
18
|
-
import WorkListPage from "./WorkListPage";
|
|
19
|
-
import WorkTypeMenu from "../../modules/work/work-type/controls/WorkTypeMenu";
|
|
20
|
-
import WorkTypeQA from "../../modules/work/work-type/components/WorkTypeQA";
|
|
21
|
-
import { runInAction } from "mobx";
|
|
22
|
-
import "./index.css";
|
|
23
|
-
import { useWorkListEffect } from "../../data/work";
|
|
24
|
-
const WorkTypePage = () => {
|
|
25
|
-
/** 加class name 为了方便做integration tests */
|
|
26
|
-
const classId = "workType-page";
|
|
27
|
-
const params = useParams();
|
|
28
|
-
const id = params.id || "";
|
|
29
|
-
const url = useResolvedPath("").pathname;
|
|
30
|
-
const store = new TabItemStore({ url: "" });
|
|
31
|
-
const worktype = useWorkType(id);
|
|
32
|
-
const workTypeStore = useWorkTypeStore();
|
|
33
|
-
const layout = useLayout();
|
|
34
|
-
const tab = useTabItem();
|
|
35
|
-
const state = useMemo(() => new State(id), []);
|
|
36
|
-
const [asideContext, setAsideContext] = useState(AsideContent.createContext());
|
|
37
|
-
const [menuKey, setMenuKey] = useState("/dashboard");
|
|
38
|
-
const [docTotals, setDocTotals] = useState(0);
|
|
39
|
-
useAutorunEffect(() => runInAction(() => (tab.title = worktype.name)));
|
|
40
|
-
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), state.nDocumentOptions);
|
|
41
|
-
useTaskListEffect(null, (result, total) => runInAction(() => (state.taskTotals = total || 0)), state.nTaskOptions);
|
|
42
|
-
useWorkListEffect(null, (result, total) => {
|
|
43
|
-
runInAction(() => (state.workStatusTotals.new = total || 0));
|
|
44
|
-
}, state.nNewOptions);
|
|
45
|
-
useWorkListEffect(null, (result, total) => {
|
|
46
|
-
runInAction(() => (state.workStatusTotals.active = total || 0));
|
|
47
|
-
}, state.nActiveOptions);
|
|
48
|
-
useWorkListEffect(null, (result, total) => {
|
|
49
|
-
runInAction(() => (state.workStatusTotals.done = total || 0));
|
|
50
|
-
}, state.nDoneOptions);
|
|
51
|
-
useWorkListEffect(null, (result, total) => {
|
|
52
|
-
runInAction(() => (state.workStatusTotals.rejected = total || 0));
|
|
53
|
-
}, state.nRejectedOptions);
|
|
54
|
-
useWorkListEffect(null, (result, total) => {
|
|
55
|
-
runInAction(() => (state.workStatusTotals.closed = total || 0));
|
|
56
|
-
}, state.nClosedOptions);
|
|
57
|
-
return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
|
|
58
|
-
React.createElement(MainContent, { className: "work-type-page" },
|
|
59
|
-
React.createElement(MainContent.Nav, { collapsible: true },
|
|
60
|
-
React.createElement(NavPanel, null,
|
|
61
|
-
React.createElement("h2", { className: "nav-panel-title" },
|
|
62
|
-
React.createElement("div", { className: "nav-panel-name" },
|
|
63
|
-
React.createElement(InlineEdit, { defaultValue: worktype?.name, content: (v) => React.createElement("div", null, worktype?.name), onSave: (value) => {
|
|
64
|
-
if (value?.trim() === worktype.name || value?.trim() === "")
|
|
65
|
-
return;
|
|
66
|
-
workTypeStore.edit(id, { data: { Name: value }, error: "message" });
|
|
67
|
-
} })),
|
|
68
|
-
React.createElement(WorkTypeMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }) })),
|
|
69
|
-
React.createElement(Scrollbars, { autoHide: true },
|
|
70
|
-
React.createElement(Menu, { className: "nav-panel-menu", mode: "inline", defaultSelectedKeys: ["/dashboard"], selectedKeys: [menuKey], onClick: ({ key }) => onClick(key), items: [
|
|
71
|
-
{
|
|
72
|
-
key: "/dashboard",
|
|
73
|
-
label: "Dashboard",
|
|
74
|
-
icon: React.createElement(FAIcon, { icon: faTableRowsSolid }),
|
|
75
|
-
className: classId + "-dashboard",
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
key: "Workstatus",
|
|
79
|
-
label: (React.createElement(React.Fragment, null,
|
|
80
|
-
"Works",
|
|
81
|
-
React.createElement("span", { className: "submenu-status-title" }, "Status"))),
|
|
82
|
-
icon: React.createElement(FAIcon, { icon: faCalendarCheckSolid }),
|
|
83
|
-
className: classId + "-workstatus",
|
|
84
|
-
children: [
|
|
85
|
-
{
|
|
86
|
-
key: "/workstatus/new",
|
|
87
|
-
label: (React.createElement(React.Fragment, null,
|
|
88
|
-
React.createElement("span", { className: "item-name" }, "New"),
|
|
89
|
-
React.createElement(Badge, { count: state.workStatusTotals.new }))),
|
|
90
|
-
className: classId + "-workstatus-new",
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
key: "/workstatus/rejected",
|
|
94
|
-
label: (React.createElement(React.Fragment, null,
|
|
95
|
-
React.createElement("span", { className: "item-name" }, "Rejected"),
|
|
96
|
-
React.createElement(Badge, { count: state.workStatusTotals.rejected }))),
|
|
97
|
-
className: classId + "-workstatus-rejected",
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
key: "/workstatus/active",
|
|
101
|
-
label: (React.createElement(React.Fragment, null,
|
|
102
|
-
React.createElement("span", { className: "item-name" }, "Active"),
|
|
103
|
-
React.createElement(Badge, { count: state.workStatusTotals.active }))),
|
|
104
|
-
className: classId + "-workstatus-active",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
key: "/workstatus/closed",
|
|
108
|
-
label: (React.createElement(React.Fragment, null,
|
|
109
|
-
React.createElement("span", { className: "item-name" }, "Closed"),
|
|
110
|
-
React.createElement(Badge, { count: state.workStatusTotals.closed }))),
|
|
111
|
-
className: classId + "-workstatus-closed",
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
key: "/workstatus/done",
|
|
115
|
-
label: (React.createElement(React.Fragment, null,
|
|
116
|
-
React.createElement("span", { className: "item-name" }, "Done"),
|
|
117
|
-
React.createElement(Badge, { count: state.workStatusTotals.done }))),
|
|
118
|
-
className: classId + "-workstatus-done",
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
key: "/activities",
|
|
124
|
-
label: "Activities",
|
|
125
|
-
icon: React.createElement(FAIcon, { icon: faListTimelineSolid }),
|
|
126
|
-
className: classId + "-activities",
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
key: "Settings",
|
|
130
|
-
label: "Settings",
|
|
131
|
-
icon: React.createElement(FAIcon, { icon: faGearSolid }),
|
|
132
|
-
className: classId + "-settings",
|
|
133
|
-
children: [
|
|
134
|
-
{
|
|
135
|
-
key: "/setting/summary",
|
|
136
|
-
label: "Summary",
|
|
137
|
-
className: classId + "-settings-summary",
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
key: "/setting/work-type-tasks",
|
|
141
|
-
label: (React.createElement(React.Fragment, null,
|
|
142
|
-
React.createElement("span", { className: "item-name" }, "Tasks"),
|
|
143
|
-
React.createElement(Badge, { count: state.taskTotals }))),
|
|
144
|
-
className: classId + "-settings-tasks",
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
key: "/setting/documents",
|
|
148
|
-
label: (React.createElement(React.Fragment, null,
|
|
149
|
-
React.createElement("span", { className: "item-name" }, "Documents"),
|
|
150
|
-
React.createElement(Badge, { count: docTotals }))),
|
|
151
|
-
className: classId + "-settings-documents",
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
key: "/setting/quality-assurance",
|
|
155
|
-
label: "Quality Assurance",
|
|
156
|
-
className: classId + "-settings-quality-assurance",
|
|
157
|
-
},
|
|
158
|
-
],
|
|
159
|
-
},
|
|
160
|
-
] })))),
|
|
161
|
-
React.createElement("div", { className: "work-type-page-content" },
|
|
162
|
-
React.createElement(Routes, null,
|
|
163
|
-
React.createElement(Route, { path: `dashboard`, element: React.createElement(Dashboard, { id: id }) }),
|
|
164
|
-
React.createElement(Route, { path: `workstatus/:status/:active?`, element: React.createElement(WorkListPage, { state: state, path: `${url}/workstatus/:status/:active?` }) }),
|
|
165
|
-
React.createElement(Route, { path: `activities`, element: React.createElement(ActivityLog, { id: id }) }),
|
|
166
|
-
React.createElement(Route, { path: `setting/summary`, element: React.createElement(Summary, { id: id }) }),
|
|
167
|
-
React.createElement(Route, { path: `setting/work-type-tasks`, element: React.createElement(AsideContent, { context: asideContext },
|
|
168
|
-
React.createElement(TaskList, { parentId: id, headerType: "page", filters: [{ c: "Template", o: "", l: "And", v1: "" }], onTotalChanged: (c) => (state.taskTotals = c) })) }),
|
|
169
|
-
React.createElement(Route, { path: `setting/documents`, element: React.createElement(DocumentPage, { root: id, exclude: ["Task"], route: `/setting/documents`, tabTitle: worktype.name }) }),
|
|
170
|
-
React.createElement(Route, { path: `setting/quality-assurance`, element: React.createElement(WorkTypeQA, { id: id, headerVisible: true }) }),
|
|
171
|
-
React.createElement(Route, { path: "/", element: React.createElement(Navigate, { to: `dashboard` }) })))))));
|
|
172
|
-
function onClick(key) {
|
|
173
|
-
key === "/setting/work-type-tasks" && setAsideContext(AsideContent.createContext());
|
|
174
|
-
setMenuKey(key.toString());
|
|
175
|
-
const path = url.charAt(url.length - 1) === "/" ? url.slice(0, url.length - 1) : url;
|
|
176
|
-
layout.history.push(`${path}${key}`);
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
export default WorkTypePage;
|
|
180
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"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oBAAC,YAAY,IACZ,IAAI,EAAE,EAAE,EACR,OAAO,EAAE,CAAC,MAAM,CAAC,EACjB,KAAK,EAAE,oBAAoB,EAC3B,QAAQ,EAAE,QAAQ,CAAC,IAAI,GACtB,GAEF;oBACF,oBAAC,KAAK,IACL,IAAI,EAAE,2BAA2B,EACjC,OAAO,EAAE,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,aAAa,SAAG,GAC5C;oBACF,oBAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAE,WAAW,GAAI,GAAI,CAClD,CACJ,CACO,CACW,CAC1B,CAAC,CAAC;IAEH,SAAS,OAAO,CAAC,GAAW;QAC3B,GAAG,KAAK,0BAA0B,IAAI,eAAe,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;QACpF,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE3B,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QACrF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,GAAG,EAAE,CAAC,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
2
|
-
import { WorkStatus } from "../../data/work";
|
|
3
|
-
export declare class State {
|
|
4
|
-
private workTypeId;
|
|
5
|
-
accessor taskTotals: number;
|
|
6
|
-
accessor workStatusTotals: Record<string, number>;
|
|
7
|
-
constructor(workTypeId: string);
|
|
8
|
-
get nDocumentOptions(): LoadDocumentListOptions;
|
|
9
|
-
get nTaskOptions(): LoadDocumentListOptions;
|
|
10
|
-
updateWorkStatusTotal(oldStatus: WorkStatus, status: WorkStatus): void;
|
|
11
|
-
get nNewOptions(): LoadDocumentListOptions;
|
|
12
|
-
get nRejectedOptions(): LoadDocumentListOptions;
|
|
13
|
-
get nDoneOptions(): LoadDocumentListOptions;
|
|
14
|
-
get nActiveOptions(): LoadDocumentListOptions;
|
|
15
|
-
get nClosedOptions(): LoadDocumentListOptions;
|
|
16
|
-
}
|