@voplus/morpho-workspace 11.1.0 → 11.2.1
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 +3 -3
- package/es/components/TeamTaskList/index.js.map +1 -1
- package/es/controls/filters/AssigneeViewFilter/index.js +4 -12
- package/es/controls/filters/AssigneeViewFilter/index.js.map +1 -1
- package/es/controls/filters/EventsFilter/state.js +1 -6
- package/es/controls/filters/EventsFilter/state.js.map +1 -1
- package/es/controls/filters/TaskStatusFilter/state.js +1 -6
- package/es/controls/filters/TaskStatusFilter/state.js.map +1 -1
- package/es/controls/filters/WorkStatusFilter/state.js +1 -6
- package/es/controls/filters/WorkStatusFilter/state.js.map +1 -1
- package/es/controls/filters/WorkTypeStatusFilter/state.js +1 -6
- package/es/controls/filters/WorkTypeStatusFilter/state.js.map +1 -1
- package/es/controls/filters/WorkTypesFilter/state.js +1 -6
- 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 +6 -0
- package/es/modules/Routes.js +13 -0
- package/es/modules/Routes.js.map +1 -1
- package/es/modules/board/components/Board/index.js +2 -3
- 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/calendar/pages/CalendarMonth/index.d.ts +1 -0
- package/es/modules/calendar/pages/CalendarMonth/index.js +15 -1
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -1
- package/es/modules/calendar-board/CalendarBoardRoutes.d.ts +12 -0
- package/es/modules/calendar-board/CalendarBoardRoutes.js +28 -0
- package/es/modules/calendar-board/CalendarBoardRoutes.js.map +1 -0
- package/es/modules/calendar-board/components/CalendarBoardGrid/index.d.ts +45 -0
- package/es/modules/calendar-board/components/CalendarBoardGrid/index.js +48 -0
- package/es/modules/calendar-board/components/CalendarBoardGrid/index.js.map +1 -0
- package/es/modules/calendar-board/components/CalendarEventChip/index.d.ts +22 -0
- package/es/modules/calendar-board/components/CalendarEventChip/index.js +20 -0
- package/es/modules/calendar-board/components/CalendarEventChip/index.js.map +1 -0
- package/es/modules/calendar-board/components/CalendarLegend/index.d.ts +37 -0
- package/es/modules/calendar-board/components/CalendarLegend/index.js +81 -0
- package/es/modules/calendar-board/components/CalendarLegend/index.js.map +1 -0
- package/es/modules/calendar-board/components/CalendarMoreLink/index.d.ts +11 -0
- package/es/modules/calendar-board/components/CalendarMoreLink/index.js +12 -0
- package/es/modules/calendar-board/components/CalendarMoreLink/index.js.map +1 -0
- package/es/modules/calendar-board/components/CalendarSidebar/index.d.ts +27 -0
- package/es/modules/calendar-board/components/CalendarSidebar/index.js +43 -0
- package/es/modules/calendar-board/components/CalendarSidebar/index.js.map +1 -0
- package/es/modules/calendar-board/components/CalendarToolbar/index.d.ts +23 -0
- package/es/modules/calendar-board/components/CalendarToolbar/index.js +28 -0
- package/es/modules/calendar-board/components/CalendarToolbar/index.js.map +1 -0
- package/es/modules/calendar-board/event-meta.d.ts +160 -0
- package/es/modules/calendar-board/event-meta.js +209 -0
- package/es/modules/calendar-board/event-meta.js.map +1 -0
- package/es/modules/calendar-board/pages/CalendarBoard/index.css +262 -0
- package/es/modules/calendar-board/pages/CalendarBoard/index.d.ts +4 -0
- package/es/modules/calendar-board/pages/CalendarBoard/index.js +181 -0
- package/es/modules/calendar-board/pages/CalendarBoard/index.js.map +1 -0
- package/es/modules/calendar-board/pages/CalendarBoard/state.d.ts +116 -0
- package/es/modules/calendar-board/pages/CalendarBoard/state.js +232 -0
- package/es/modules/calendar-board/pages/CalendarBoard/state.js.map +1 -0
- package/es/modules/calendar-board/sidebar-data.d.ts +27 -0
- package/es/modules/calendar-board/sidebar-data.js +19 -0
- package/es/modules/calendar-board/sidebar-data.js.map +1 -0
- 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/MeetingTaskList/index.css +0 -3
- package/es/modules/meeting/components/MeetingTaskList/index.js +2 -2
- package/es/modules/meeting/components/MeetingTaskList/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 +1 -2
- package/es/modules/notification/components/NotificationTabs/index.js.map +1 -1
- package/es/modules/notification/controls/NotificationStatusFilter/state.js +1 -6
- package/es/modules/notification/controls/NotificationStatusFilter/state.js.map +1 -1
- package/es/modules/notification-workspace/components/NotificationList/index.js +1 -5
- 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 +1 -2
- package/es/modules/tasks/components/AddTaskDropdown/index.js.map +1 -1
- package/es/modules/tasks/components/DelegateDialog/index.js +2 -3
- package/es/modules/tasks/components/DelegateDialog/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/NewTaskFormDialog.js +4 -5
- package/es/modules/tasks/components/NewTaskForm/NewTaskFormDialog.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.js +2 -5
- 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 -4
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/state.d.ts +2 -2
- 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 +7 -14
- 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/SubTaskItem.d.ts +13 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +64 -34
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/state.d.ts +4 -5
- package/es/modules/tasks/components/TaskItem/state.js +1 -3
- package/es/modules/tasks/components/TaskItem/state.js.map +1 -1
- package/es/modules/tasks/components/TaskProperties/index.js +2 -4
- package/es/modules/tasks/components/TaskProperties/index.js.map +1 -1
- package/es/modules/tasks/components/TaskSimpleProperties/index.js +3 -5
- package/es/modules/tasks/components/TaskSimpleProperties/index.js.map +1 -1
- package/es/modules/tasks/components/TaskTabs/index.js +1 -2
- 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 +3 -5
- 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 +4 -9
- package/es/modules/tasks/controls/DueDateToolBar/index.js.map +1 -1
- package/es/modules/tasks/controls/TaskDataIconBar/index.js +1 -1
- package/es/modules/tasks/controls/TaskDataIconBar/index.js.map +1 -1
- package/es/modules/tasks/controls/TaskStatusDataIcon/index.js +4 -9
- package/es/modules/tasks/controls/TaskStatusDataIcon/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskList/index.js +3 -3
- package/es/modules/tasks/pages/TaskList/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.js +2 -4
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/work/components/NewWorkForm/index.js +3 -5
- package/es/modules/work/components/NewWorkForm/index.js.map +1 -1
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.js +1 -2
- 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 +9 -13
- 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 +1 -2
- package/es/modules/work/components/WorkTabs/index.js.map +1 -1
- package/es/modules/work/components/WorksProperties/index.js +2 -2
- package/es/modules/work/components/WorksProperties/index.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Accept.js +2 -5
- package/es/modules/work/controls/WorkMenu/item/Accept.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Reject.js +2 -5
- package/es/modules/work/controls/WorkMenu/item/Reject.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Send.js +4 -7
- package/es/modules/work/controls/WorkMenu/item/Send.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Took.js +2 -5
- package/es/modules/work/controls/WorkMenu/item/Took.js.map +1 -1
- package/es/modules/work/controls/WorkStatusDataIcon/index.js +4 -8
- 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 +7 -9
- package/es/modules/work/work-error/components/WorkErrorProperties/index.js.map +1 -1
- package/es/modules/work/work-error/components/WorkErrorTabs/index.js +1 -2
- package/es/modules/work/work-error/components/WorkErrorTabs/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.js +3 -5
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js +7 -9
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleTabs/index.js +1 -2
- package/es/modules/work/work-schedule/components/WorkScheduleTabs/index.js.map +1 -1
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/item/LinkWork.js +5 -7
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/item/LinkWork.js.map +1 -1
- package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/index.js +3 -5
- 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 +3 -5
- 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 +1 -2
- 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/obsolete/BoardPropertiesView/index.d.ts +9 -0
- package/es/obsolete/BoardPropertiesView/index.js +45 -0
- package/es/obsolete/BoardPropertiesView/index.js.map +1 -0
- package/es/obsolete/NotificationItem/index.css +21 -0
- package/es/obsolete/NotificationItem/index.d.ts +6 -0
- package/es/obsolete/NotificationItem/index.js +34 -0
- package/es/obsolete/NotificationItem/index.js.map +1 -0
- package/es/obsolete/NotificationList2/index.css +9 -0
- package/es/obsolete/NotificationList2/index.d.ts +13 -0
- package/es/obsolete/NotificationList2/index.js +50 -0
- package/es/obsolete/NotificationList2/index.js.map +1 -0
- package/es/obsolete/WorkTypeDefaultView/index.css +17 -0
- package/es/obsolete/WorkTypeDefaultView/index.d.ts +4 -0
- package/es/obsolete/WorkTypeDefaultView/index.js +32 -0
- package/es/obsolete/WorkTypeDefaultView/index.js.map +1 -0
- package/es/obsolete/WorkTypePage/Dashboard.d.ts +6 -0
- package/es/obsolete/WorkTypePage/Dashboard.js +18 -0
- package/es/obsolete/WorkTypePage/Dashboard.js.map +1 -0
- package/es/obsolete/WorkTypePage/Summary.d.ts +6 -0
- package/es/obsolete/WorkTypePage/Summary.js +21 -0
- package/es/obsolete/WorkTypePage/Summary.js.map +1 -0
- package/es/obsolete/WorkTypePage/WorkListPage.d.ts +7 -0
- package/es/obsolete/WorkTypePage/WorkListPage.js +25 -0
- package/es/obsolete/WorkTypePage/WorkListPage.js.map +1 -0
- package/es/obsolete/WorkTypePage/WorkTypeDescriptionCard.d.ts +5 -0
- package/es/obsolete/WorkTypePage/WorkTypeDescriptionCard.js +14 -0
- package/es/obsolete/WorkTypePage/WorkTypeDescriptionCard.js.map +1 -0
- package/es/obsolete/WorkTypePage/index.css +50 -0
- package/es/obsolete/WorkTypePage/index.d.ts +4 -0
- package/es/obsolete/WorkTypePage/index.js +180 -0
- package/es/obsolete/WorkTypePage/index.js.map +1 -0
- package/es/obsolete/WorkTypePage/state.d.ts +16 -0
- package/es/obsolete/WorkTypePage/state.js +163 -0
- package/es/obsolete/WorkTypePage/state.js.map +1 -0
- package/es/obsolete/WorkTypeQA/index.css +38 -0
- package/es/obsolete/WorkTypeQA/index.d.ts +6 -0
- package/es/obsolete/WorkTypeQA/index.js +40 -0
- package/es/obsolete/WorkTypeQA/index.js.map +1 -0
- package/es/obsolete/WorkTypeQA/state.d.ts +17 -0
- package/es/obsolete/WorkTypeQA/state.js +133 -0
- package/es/obsolete/WorkTypeQA/state.js.map +1 -0
- package/es/obsolete/member/components/MemberDropdown.d.ts +5 -0
- package/es/obsolete/member/components/MemberDropdown.js +15 -0
- package/es/obsolete/member/components/MemberDropdown.js.map +1 -0
- package/es/obsolete/member/components/MemberList.d.ts +7 -0
- package/es/obsolete/member/components/MemberList.js +27 -0
- package/es/obsolete/member/components/MemberList.js.map +1 -0
- package/es/obsolete/member/components/MemberMenu.d.ts +7 -0
- package/es/obsolete/member/components/MemberMenu.js +15 -0
- package/es/obsolete/member/components/MemberMenu.js.map +1 -0
- package/es/obsolete/member/components/MemberSelect.d.ts +5 -0
- package/es/obsolete/member/components/MemberSelect.js +11 -0
- package/es/obsolete/member/components/MemberSelect.js.map +1 -0
- package/es/obsolete/member/components/member.css +25 -0
- package/es/obsolete/member/pages/MemberListView/index.d.ts +4 -0
- package/es/obsolete/member/pages/MemberListView/index.js +227 -0
- package/es/obsolete/member/pages/MemberListView/index.js.map +1 -0
- package/es/obsolete/member/pages/MemberRoutes.d.ts +2 -0
- package/es/obsolete/member/pages/MemberRoutes.js +25 -0
- package/es/obsolete/member/pages/MemberRoutes.js.map +1 -0
- package/es/obsolete/member/styles/MemberMinView.css +22 -0
- package/es/obsolete/space/components/Notes/ColorSelect/index.css +15 -0
- package/es/obsolete/space/components/Notes/ColorSelect/index.d.ts +10 -0
- package/es/obsolete/space/components/Notes/ColorSelect/index.js +29 -0
- package/es/obsolete/space/components/Notes/ColorSelect/index.js.map +1 -0
- package/es/obsolete/space/components/Notes/NewNoteDialog/index.css +76 -0
- package/es/obsolete/space/components/Notes/NewNoteDialog/index.d.ts +10 -0
- package/es/obsolete/space/components/Notes/NewNoteDialog/index.js +38 -0
- package/es/obsolete/space/components/Notes/NewNoteDialog/index.js.map +1 -0
- package/es/obsolete/space/components/Notes/TextNoteCard/index.css +54 -0
- package/es/obsolete/space/components/Notes/TextNoteCard/index.d.ts +6 -0
- package/es/obsolete/space/components/Notes/TextNoteCard/index.js +35 -0
- package/es/obsolete/space/components/Notes/TextNoteCard/index.js.map +1 -0
- package/es/obsolete/space/components/Notes/TextNoteCard/state.d.ts +5 -0
- package/es/obsolete/space/components/Notes/TextNoteCard/state.js +39 -0
- package/es/obsolete/space/components/Notes/TextNoteCard/state.js.map +1 -0
- package/es/obsolete/space/components/Notes/index.d.ts +5 -0
- package/es/obsolete/space/components/Notes/index.js +50 -0
- package/es/obsolete/space/components/Notes/index.js.map +1 -0
- package/es/obsolete/space/components/Notifications/index.d.ts +7 -0
- package/es/obsolete/space/components/Notifications/index.js +34 -0
- package/es/obsolete/space/components/Notifications/index.js.map +1 -0
- package/es/obsolete/space/components/Projects/index.d.ts +5 -0
- package/es/obsolete/space/components/Projects/index.js +35 -0
- package/es/obsolete/space/components/Projects/index.js.map +1 -0
- package/es/obsolete/space/components/Roles/index.d.ts +5 -0
- package/es/obsolete/space/components/Roles/index.js +14 -0
- package/es/obsolete/space/components/Roles/index.js.map +1 -0
- package/es/obsolete/space/components/Tasks/index.css +15 -0
- package/es/obsolete/space/components/Tasks/index.d.ts +8 -0
- package/es/obsolete/space/components/Tasks/index.js +204 -0
- package/es/obsolete/space/components/Tasks/index.js.map +1 -0
- package/es/obsolete/space/components/Teams/index.d.ts +5 -0
- package/es/obsolete/space/components/Teams/index.js +14 -0
- package/es/obsolete/space/components/Teams/index.js.map +1 -0
- package/es/obsolete/space/components/Works/index.d.ts +7 -0
- package/es/obsolete/space/components/Works/index.js +22 -0
- package/es/obsolete/space/components/Works/index.js.map +1 -0
- package/es/obsolete/space/components/Workspaces/index.d.ts +5 -0
- package/es/obsolete/space/components/Workspaces/index.js +18 -0
- package/es/obsolete/space/components/Workspaces/index.js.map +1 -0
- package/es/obsolete/space/pages/MySpace/index.css +52 -0
- package/es/obsolete/space/pages/MySpace/index.d.ts +7 -0
- package/es/obsolete/space/pages/MySpace/index.js +248 -0
- package/es/obsolete/space/pages/MySpace/index.js.map +1 -0
- package/es/obsolete/space/pages/MySpace/state.d.ts +30 -0
- package/es/obsolete/space/pages/MySpace/state.js +148 -0
- package/es/obsolete/space/pages/MySpace/state.js.map +1 -0
- package/es/obsolete/space/pages/MySpace/taskState.d.ts +36 -0
- package/es/obsolete/space/pages/MySpace/taskState.js +339 -0
- package/es/obsolete/space/pages/MySpace/taskState.js.map +1 -0
- package/es/obsolete/space/pages/MySpace/workState.d.ts +32 -0
- package/es/obsolete/space/pages/MySpace/workState.js +249 -0
- package/es/obsolete/space/pages/MySpace/workState.js.map +1 -0
- package/es/routes.js +3 -2
- package/es/routes.js.map +1 -1
- package/package.json +3 -3
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.d.ts +0 -5
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +0 -49
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +0 -1
- package/es/modules/tasks/components/TaskItem/defaultTaskItem.css +0 -49
- package/es/modules/tasks/components/TaskItem/subTaskItem.css +0 -89
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import "./index.css";
|
|
2
|
+
import { useDocumentStore } from "@voplus/morpho-document-core";
|
|
3
|
+
import React, { useState } from "react";
|
|
4
|
+
import { faCheckRegular, faTimesRegular, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
5
|
+
import ColorSelect from "../ColorSelect";
|
|
6
|
+
import { Modal } from "antd";
|
|
7
|
+
import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
|
|
8
|
+
import { RequestBuilder } from "@voplus/api";
|
|
9
|
+
import dayjs from "dayjs";
|
|
10
|
+
import { observe } from "@voplus/morpho-ui";
|
|
11
|
+
const NewNoteDialog = (props) => {
|
|
12
|
+
const { parentId, visible, onCancel, onOk } = props;
|
|
13
|
+
const [text, setText] = useState("");
|
|
14
|
+
const [color, setColor] = useState("");
|
|
15
|
+
const documentStore = useDocumentStore();
|
|
16
|
+
return observe(() => (React.createElement(Modal, { title: React.createElement(React.Fragment, null,
|
|
17
|
+
React.createElement("div", null, "Add Note"),
|
|
18
|
+
React.createElement("div", { className: "date" }, dayjs(dayjs()).format("dddd, MMM Do, h:mm A"))), width: "660px", open: visible, closable: false, footer: null, className: "new-note-dialog" },
|
|
19
|
+
React.createElement("div", { className: "note-header" },
|
|
20
|
+
React.createElement(ColorSelect, { onChange: (c) => setColor(c.name) }),
|
|
21
|
+
React.createElement("div", null,
|
|
22
|
+
React.createElement(FAIcon, { icon: faTimesRegular, color: "#999", onClick: () => onCancel && onCancel() }),
|
|
23
|
+
React.createElement(FAIcon, { icon: faCheckRegular, color: "#52c41a", onClick: save }))),
|
|
24
|
+
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true,
|
|
25
|
+
// defaultHtml={description || ""}
|
|
26
|
+
// readonly={!state.editable || readonly}
|
|
27
|
+
className: `note-bg-${color}`,
|
|
28
|
+
// onClick={() => (state.editable = !readonly)}
|
|
29
|
+
onChange: (opt) => setText(opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) }))));
|
|
30
|
+
async function save() {
|
|
31
|
+
const r = await documentStore.endpoint.post(`/api/documents/create`, new RequestBuilder().form({ type: "Text", name: "Note", parentId, Text: text }));
|
|
32
|
+
const t = await r.json();
|
|
33
|
+
if (onOk)
|
|
34
|
+
onOk(t);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export default NewNoteDialog;
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index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AAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.text-note-card {
|
|
2
|
+
padding: 0;
|
|
3
|
+
width: 20.5rem !important;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
&:hover {
|
|
6
|
+
.text-note-card_header .tool-bar {
|
|
7
|
+
opacity: 1;
|
|
8
|
+
transition: opacity 0.2s ease-out;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
.text-note-card_header {
|
|
12
|
+
position: relative;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
align-items: center;
|
|
16
|
+
height: 2.5rem;
|
|
17
|
+
padding: 0 15px;
|
|
18
|
+
color: #000;
|
|
19
|
+
font-size: 15px;
|
|
20
|
+
line-height: 22px;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
.tool-bar {
|
|
23
|
+
opacity: 0;
|
|
24
|
+
.ant-btn {
|
|
25
|
+
margin-left: 5px;
|
|
26
|
+
}
|
|
27
|
+
.ant-btn + .ant-btn {
|
|
28
|
+
margin-right: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.text-note-card_theme {
|
|
32
|
+
position: absolute;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
transform: translateY(-150%);
|
|
36
|
+
transition: transform 0.3s ease-out;
|
|
37
|
+
z-index: 1;
|
|
38
|
+
&.show {
|
|
39
|
+
transform: translateY(0);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.text-note-card_date {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
transition: opacity 0.2s ease-out;
|
|
45
|
+
&.hide {
|
|
46
|
+
opacity: 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
.ProseMirror-container {
|
|
51
|
+
height: 18rem;
|
|
52
|
+
padding: 0 15px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import "./index.css";
|
|
2
|
+
import React, { useState } from "react";
|
|
3
|
+
import Card from "@voplus/morpho-ui/es/controls/Card";
|
|
4
|
+
import ColorSelect from "../ColorSelect";
|
|
5
|
+
import { Open } from "@voplus/morpho-document/es/controls/DocumentToolbar/buttons";
|
|
6
|
+
import { Skeleton } from "antd";
|
|
7
|
+
import { State } from "./state";
|
|
8
|
+
import TextQuickViewDialog from "@voplus/morpho-document/es/components/TextQuickViewDialog";
|
|
9
|
+
import DocumentToolbar from "@voplus/morpho-document/es/controls/DocumentToolbar";
|
|
10
|
+
import Viewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
|
|
11
|
+
import classnames from "classnames";
|
|
12
|
+
import dayjs from "dayjs";
|
|
13
|
+
import { observe } from "@voplus/morpho-ui";
|
|
14
|
+
import { runInAction } from "mobx";
|
|
15
|
+
import { useText } from "@voplus/morpho-text/es/data";
|
|
16
|
+
const TextNoteCard = (props) => {
|
|
17
|
+
const { id } = props;
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
const note = useText(id, { reload: (t) => !t["text"] });
|
|
20
|
+
// const text = { loading: false, date: "2020-08-03" };
|
|
21
|
+
const [state] = useState(new State());
|
|
22
|
+
return observe(() => (React.createElement(Card, { className: "text-note-card", shadow: true },
|
|
23
|
+
React.createElement(Skeleton, { active: true, loading: !note.loaded },
|
|
24
|
+
React.createElement("div", { className: "text-card-container", onMouseOver: () => runInAction(() => (state.isHover = true)), onMouseLeave: () => runInAction(() => (state.isHover = false)), style: { backgroundColor: state.color } },
|
|
25
|
+
React.createElement("div", { className: "text-note-card_header" },
|
|
26
|
+
React.createElement("div", { className: classnames("text-note-card_theme", { show: state.isHover }) },
|
|
27
|
+
React.createElement(ColorSelect, { color: "", onChange: (c) => runInAction(() => (state.color = c.color)) })),
|
|
28
|
+
React.createElement("div", { className: classnames("text-note-card_date", { hide: state.isHover }) }, dayjs(note.date).format("D MMM YYYY HH:mm")),
|
|
29
|
+
React.createElement(DocumentToolbar, { id: id },
|
|
30
|
+
React.createElement(Open, { url: `/document/${props.id}` }))),
|
|
31
|
+
React.createElement(Viewer, { html: note.text, onClick: () => runInAction(() => (state.visible = true)) }))),
|
|
32
|
+
React.createElement(TextQuickViewDialog, { id: id, visible: state.visible, onCancel: () => runInAction(() => (state.visible = false)) }))));
|
|
33
|
+
};
|
|
34
|
+
export default TextNoteCard;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/obsolete/space/components/Notes/TextNoteCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,6DAA6D,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAC5F,OAAO,eAAe,MAAM,qDAAqD,CAAC;AAClF,OAAO,MAAM,MAAM,oDAAoD,CAAC;AACxE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,MAAM,YAAY,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,aAAa;IACb,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE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C,IAAI,IAAC,GAAG,EAAE,aAAa,KAAK,CAAC,EAAE,EAAE,GAAI,CACrB,CACb;gBACN,oBAAC,MAAM,IAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,GAAI,CAChF,CACI;QACX,oBAAC,mBAAmB,IACnB,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,GACzD,CACI,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __esDecorate, __runInitializers } from "tslib";
|
|
2
|
+
import { observable } from "mobx";
|
|
3
|
+
let State = (() => {
|
|
4
|
+
let _isHover_decorators;
|
|
5
|
+
let _isHover_initializers = [];
|
|
6
|
+
let _isHover_extraInitializers = [];
|
|
7
|
+
let _visible_decorators;
|
|
8
|
+
let _visible_initializers = [];
|
|
9
|
+
let _visible_extraInitializers = [];
|
|
10
|
+
let _color_decorators;
|
|
11
|
+
let _color_initializers = [];
|
|
12
|
+
let _color_extraInitializers = [];
|
|
13
|
+
return class State {
|
|
14
|
+
static {
|
|
15
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
16
|
+
_isHover_decorators = [observable];
|
|
17
|
+
_visible_decorators = [observable];
|
|
18
|
+
_color_decorators = [observable];
|
|
19
|
+
__esDecorate(this, null, _isHover_decorators, { kind: "accessor", name: "isHover", static: false, private: false, access: { has: obj => "isHover" in obj, get: obj => obj.isHover, set: (obj, value) => { obj.isHover = value; } }, metadata: _metadata }, _isHover_initializers, _isHover_extraInitializers);
|
|
20
|
+
__esDecorate(this, null, _visible_decorators, { kind: "accessor", name: "visible", static: false, private: false, access: { has: obj => "visible" in obj, get: obj => obj.visible, set: (obj, value) => { obj.visible = value; } }, metadata: _metadata }, _visible_initializers, _visible_extraInitializers);
|
|
21
|
+
__esDecorate(this, null, _color_decorators, { kind: "accessor", name: "color", static: false, private: false, access: { has: obj => "color" in obj, get: obj => obj.color, set: (obj, value) => { obj.color = value; } }, metadata: _metadata }, _color_initializers, _color_extraInitializers);
|
|
22
|
+
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
23
|
+
}
|
|
24
|
+
#isHover_accessor_storage = __runInitializers(this, _isHover_initializers, false);
|
|
25
|
+
get isHover() { return this.#isHover_accessor_storage; }
|
|
26
|
+
set isHover(value) { this.#isHover_accessor_storage = value; }
|
|
27
|
+
#visible_accessor_storage = (__runInitializers(this, _isHover_extraInitializers), __runInitializers(this, _visible_initializers, false));
|
|
28
|
+
get visible() { return this.#visible_accessor_storage; }
|
|
29
|
+
set visible(value) { this.#visible_accessor_storage = value; }
|
|
30
|
+
#color_accessor_storage = (__runInitializers(this, _visible_extraInitializers), __runInitializers(this, _color_initializers, ""));
|
|
31
|
+
get color() { return this.#color_accessor_storage; }
|
|
32
|
+
set color(value) { this.#color_accessor_storage = value; }
|
|
33
|
+
constructor() {
|
|
34
|
+
__runInitializers(this, _color_extraInitializers);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
export { State };
|
|
39
|
+
//# sourceMappingURL=state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/obsolete/space/components/Notes/TextNoteCard/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;IAErB,KAAK;;;;;;;;;;iBAAL,KAAK;;;mCAChB,UAAU;mCACV,UAAU;iCACV,UAAU;YAFC,0KAAgB,OAAO,6BAAP,OAAO,yFAAS;YAChC,0KAAgB,OAAO,6BAAP,OAAO,yFAAS;YAChC,oKAAgB,KAAK,6BAAL,KAAK,qFAAM;;;QAF3B,2EAA0B,KAAK,EAAC;QAAhC,IAAgB,OAAO,6CAAS;QAAhC,IAAgB,OAAO,mDAAS;QAChC,iIAA0B,KAAK,GAAC;QAAhC,IAAgB,OAAO,6CAAS;QAAhC,IAAgB,OAAO,mDAAS;QAChC,6HAAwB,EAAE,GAAC;QAA3B,IAAgB,KAAK,2CAAM;QAA3B,IAAgB,KAAK,iDAAM;;;;;;SAH3B,KAAK"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
2
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
3
|
+
import React, { useState } from "react";
|
|
4
|
+
import Card from "@voplus/morpho-ui/es/controls/Card";
|
|
5
|
+
import NewNoteDialog from "./NewNoteDialog";
|
|
6
|
+
import Scrollbars from "react-custom-scrollbars-2";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon, faMagnifyingGlassRegular } from "@voplus/morpho-ui/es/faIcons";
|
|
8
|
+
import SortViewDropdown from "@voplus/morpho-ui/es/components/layout/ListView/controls/SortViewDropdown";
|
|
9
|
+
import StickyAddButton from "@voplus/morpho-ui/es/controls/StickyAddButton";
|
|
10
|
+
import TextNoteCard from "./TextNoteCard";
|
|
11
|
+
import TimeoutInput from "@voplus/morpho-ui/es/controls/TimeoutInput";
|
|
12
|
+
import { observe } from "@voplus/morpho-ui";
|
|
13
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
14
|
+
const Notes = (props) => {
|
|
15
|
+
const { id } = props;
|
|
16
|
+
const [added, setAdded] = useState(false);
|
|
17
|
+
const list = useCreateListDataState({
|
|
18
|
+
filterDefaults: {
|
|
19
|
+
includes: "tags",
|
|
20
|
+
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
|
|
21
|
+
},
|
|
22
|
+
}, [id]);
|
|
23
|
+
/** 如果 list.filters.options变更了就重渲染,使下一行的useDocumentListEffect 可以接收新参数*/
|
|
24
|
+
useRenderOnChange(() => list.filters.options);
|
|
25
|
+
/** 把ListDataState传给useDocumentListEffect,使之可以自動更新loading, hasmore. */
|
|
26
|
+
useDocumentListEffect(list, (result) => list.union(result), list.filters.options);
|
|
27
|
+
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
28
|
+
// useAutoUpdateListData(list, d => d.parentId === id);
|
|
29
|
+
return observe(() => (React.createElement("div", { className: "my-space-view_content" },
|
|
30
|
+
React.createElement("header", null,
|
|
31
|
+
React.createElement("div", { className: "title" }, "My Notes"),
|
|
32
|
+
React.createElement("div", null,
|
|
33
|
+
React.createElement(SortViewDropdown, { onSort: onSort, className: "sort-btn" }),
|
|
34
|
+
React.createElement(TimeoutInput, { suffix: React.createElement(FAIcon, { icon: faMagnifyingGlassRegular }), allowClear: true, onIdle: (e) => console.log(e, "e") }))),
|
|
35
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
36
|
+
React.createElement("div", { className: "my-space-view_list" },
|
|
37
|
+
React.createElement(ListDataContext.Provider, { value: list }, list.data.map((i) => (React.createElement(React.Fragment, { key: i.id }, i.type === "Text" && React.createElement(TextNoteCard, { id: i.id }))))),
|
|
38
|
+
list.data.length === 0 && (React.createElement(Card, { style: { width: "20.5rem", height: "20.5rem", fontSize: "16px" }, shadow: true }, "Add a Note")))),
|
|
39
|
+
React.createElement(StickyAddButton, { onClick: () => setAdded(true) }),
|
|
40
|
+
React.createElement(NewNoteDialog, { parentId: id, visible: added, onCancel: () => setAdded(false), onOk: onOk }))));
|
|
41
|
+
function onSort(sort) {
|
|
42
|
+
// list.triggerSort(sort);
|
|
43
|
+
}
|
|
44
|
+
function onOk(t) {
|
|
45
|
+
list.union([t]);
|
|
46
|
+
setAdded(false);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
export default Notes;
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/obsolete/space/components/Notes/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAEnG,OAAO,gBAAgB,MAAM,2EAA2E,CAAC;AACzG,OAAO,eAAe,MAAM,+CAA+C,CAAC;AAC5E,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,KAAK,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvC,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1C,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;SAC1D;KACD,EACD,CAAC,EAAE,CAAC,CACJ,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E,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,IAAI,iBAE7E,CACP,CACI,CACM;QACb,oBAAC,eAAe,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI;QAClD,oBAAC,aAAa,IAAC,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,GAAI,CACvF,CACN,CAAC,CAAC;IACH,SAAS,MAAM,CAAC,IAAqB;QACpC,0BAA0B;IAC3B,CAAC;IACD,SAAS,IAAI,CAAC,CAAY;QACzB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAChB,QAAQ,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { Result, Skeleton } from "antd";
|
|
3
|
+
import NotificationList from "../../../../modules/notification-workspace/components/NotificationList";
|
|
4
|
+
import { generatePath } from "react-router";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import { useLayout } from "@voplus/morpho-data";
|
|
7
|
+
import { useNotificationStore } from "../../../../data/notification-workspace";
|
|
8
|
+
import { useParams } from "react-router-dom";
|
|
9
|
+
const Notifications = (props) => {
|
|
10
|
+
const params = useParams();
|
|
11
|
+
const store = useNotificationStore();
|
|
12
|
+
const layout = useLayout();
|
|
13
|
+
const [error, setError] = useState(0);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
/** 当 status 是 redirect 时,需要 load notification 然后选择正确的 menu */
|
|
16
|
+
if (params.status === "redirect" && params.active) {
|
|
17
|
+
store
|
|
18
|
+
.load(params.active)
|
|
19
|
+
.then((item) => {
|
|
20
|
+
props.state.navigate(`/notifications/${item.status.toLowerCase()}`, `/${item.id}`);
|
|
21
|
+
})
|
|
22
|
+
.catch((e) => {
|
|
23
|
+
setError(e.status);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}, [params.status]);
|
|
27
|
+
return observe(() => error ? (React.createElement(Result, { status: error.toString() })) : (React.createElement("div", { className: "my-notifications" },
|
|
28
|
+
React.createElement(Skeleton, { loading: params.status === "redirect" },
|
|
29
|
+
React.createElement(NotificationList, { status: params.status, active: params.active, onClickItem: (ev, item) => {
|
|
30
|
+
layout.history.push(generatePath(props.path, { status: params.status, active: item.id }));
|
|
31
|
+
} })))));
|
|
32
|
+
};
|
|
33
|
+
export default Notifications;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/obsolete/space/components/Notifications/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAExC,OAAO,gBAAgB,MAAM,wEAAwE,CAAC;AAEtG,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,aAAa,GAAG,CAAC,KAAqC,EAAE,EAAE;IAC/D,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAA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AC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import DocumentCard from "@voplus/morpho-document/es/components/DocumentCard";
|
|
4
|
+
import Scrollbars from "react-custom-scrollbars-2";
|
|
5
|
+
import { FontAwesomeIcon as FAIcon, faMagnifyingGlassRegular } from "@voplus/morpho-ui/es/faIcons";
|
|
6
|
+
import SortViewDropdown from "@voplus/morpho-ui/es/components/layout/ListView/controls/SortViewDropdown";
|
|
7
|
+
import TimeoutInput from "@voplus/morpho-ui/es/controls/TimeoutInput";
|
|
8
|
+
import { observe } from "@voplus/morpho-ui";
|
|
9
|
+
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
10
|
+
const Projects = (props) => {
|
|
11
|
+
const { id } = props;
|
|
12
|
+
const list = useCreateListDataState({
|
|
13
|
+
filterDefaults: {
|
|
14
|
+
includes: "tags,task-number-reports",
|
|
15
|
+
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
|
|
16
|
+
},
|
|
17
|
+
}, []);
|
|
18
|
+
useDocumentListEffect(list, (result) => list.union(result), list.filters.options);
|
|
19
|
+
// useProjectListEffect(list, result => list.union(result), list.filters.options);
|
|
20
|
+
return observe(() => (React.createElement("div", { className: "my-space-view_content" },
|
|
21
|
+
React.createElement("header", null,
|
|
22
|
+
React.createElement("div", { className: "title" }, "My Projects"),
|
|
23
|
+
React.createElement("div", null,
|
|
24
|
+
React.createElement("div", null,
|
|
25
|
+
React.createElement(SortViewDropdown, { onSort: onSort, className: "sort-btn" }),
|
|
26
|
+
React.createElement(TimeoutInput, { suffix: React.createElement(FAIcon, { icon: faMagnifyingGlassRegular }), allowClear: true, onIdle: (e) => console.log(e, "e") })))),
|
|
27
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
28
|
+
React.createElement("div", { className: "my-space-view_list" },
|
|
29
|
+
React.createElement(ListDataContext.Provider, { value: list }, list.data.map((i) => (React.createElement(DocumentCard, { id: i.id, key: i.id })))))))));
|
|
30
|
+
function onSort(sort) {
|
|
31
|
+
list.triggerSort(sort);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export default Projects;
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/obsolete/space/components/Projects/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAE9E,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAEnG,OAAO,gBAAgB,MAAM,2EAA2E,CAAC;AACzG,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,QAAQ,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,QAAQ,EAAE,0BAA0B;YACpC,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;SAC1D;KACD,EACD,EAAE,CACF,CAAC;IAEF,qBAAqB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAClF,kFAAkF;IAElF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,uBAAuB;QACrC;YACC,6BAAK,SAAS,EAAC,OAAO,kBAAkB;YACxC;gBACC;oBACC,oBAAC,gBAAgB,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAC,UAAU,GAAG;oBACzD,oBAAC,YAAY,IACZ,MAAM,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,wBAAwB,GAAI,EAClD,UAAU,QACV,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,GACjC,CACG,CACD,CACE;QACT,oBAAC,UAAU,IAAC,QAAQ;YACnB,6BAAK,SAAS,EAAC,oBAAoB;gBAClC,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,IACnC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACrB,oBAAC,YAAY,IAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,GAAI,CACrC,CAAC,CACwB,CACtB,CACM,CACR,CACN,CAAC,CAAC;IACH,SAAS,MAAM,CAAC,IAAqB;QACpC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import MyRoles from "@voplus/morpho-org/es/modules/role/components/MyRoles";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { generatePath } from "react-router";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { useLayout } from "@voplus/morpho-data";
|
|
6
|
+
const Roles = (props) => {
|
|
7
|
+
const layout = useLayout();
|
|
8
|
+
return observe(() => (React.createElement("div", { className: "my-roles" },
|
|
9
|
+
React.createElement(MyRoles, { onClickItem: (id) => {
|
|
10
|
+
layout.history.push(generatePath(props.path, { active: id }));
|
|
11
|
+
} }))));
|
|
12
|
+
};
|
|
13
|
+
export default Roles;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/obsolete/space/components/Roles/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,uDAAuD,CAAC;AAC5E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,KAAK,GAAG,CAAC,KAAuB,EAAE,EAAE;IACzC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,UAAU;QACxB,oBAAC,OAAO,IACP,WAAW,EAAE,CAAC,EAAW,EAAE,EAAE;gBAC5B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;YAC/D,CAAC,GACA,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.my-space-tasks {
|
|
2
|
+
background-color: #fff;
|
|
3
|
+
padding: 0 !important;
|
|
4
|
+
.sub-task-item {
|
|
5
|
+
position: relative;
|
|
6
|
+
&:after {
|
|
7
|
+
position: absolute;
|
|
8
|
+
content: "";
|
|
9
|
+
left: 20px;
|
|
10
|
+
right: 0;
|
|
11
|
+
bottom: 0;
|
|
12
|
+
border-bottom: 1px solid #f2f2f2;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import "./index.css";
|
|
2
|
+
import { useApplicationContext, useLayout } from "@voplus/morpho-data";
|
|
3
|
+
import { useTaskListEffect } from "@voplus/morpho-document-core";
|
|
4
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
5
|
+
import React, { useState } from "react";
|
|
6
|
+
import { useAutoUpdateListData, useDocumentStore, useOnDeleteDocument, useOnNewDocument, } from "@voplus/morpho-document-core";
|
|
7
|
+
import SubTaskItem from "../../../../modules/tasks/components/TaskItem/SubTaskItem";
|
|
8
|
+
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
|
9
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView";
|
|
10
|
+
import NewTaskForm from "../../../../modules/tasks/components/NewTaskForm";
|
|
11
|
+
import { generatePath } from "react-router";
|
|
12
|
+
import dayjs from "dayjs";
|
|
13
|
+
import { observe } from "@voplus/morpho-ui";
|
|
14
|
+
import { runInAction } from "mobx";
|
|
15
|
+
import { useParams } from "react-router-dom";
|
|
16
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
17
|
+
const TaskList = (props) => {
|
|
18
|
+
const params = useParams();
|
|
19
|
+
const layout = useLayout();
|
|
20
|
+
const { user } = useApplicationContext();
|
|
21
|
+
const documentStore = useDocumentStore();
|
|
22
|
+
const defaultTaskStatus = ["NotStarted", "Progress"];
|
|
23
|
+
const [activeId, setActiveId] = useState("");
|
|
24
|
+
const list = useCreateListDataState({
|
|
25
|
+
filterDefaults: {
|
|
26
|
+
includes: "tags",
|
|
27
|
+
filters: filters(),
|
|
28
|
+
},
|
|
29
|
+
}, [params.dueDate]);
|
|
30
|
+
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
31
|
+
useAutoUpdateListData(list, (d) => d.type === "Task" && !d.parentId);
|
|
32
|
+
useOnNewDocument((s, doc) => {
|
|
33
|
+
if (doc.type === "Task" && !doc.parentId)
|
|
34
|
+
props.state.taskTotals[params.dueDate.toLowerCase()]++;
|
|
35
|
+
});
|
|
36
|
+
useOnDeleteDocument((s, doc) => {
|
|
37
|
+
if (doc.type === "Task" && !doc.parentId)
|
|
38
|
+
props.state.taskTotals[params.dueDate.toLowerCase()]--;
|
|
39
|
+
});
|
|
40
|
+
/** 如果 list.filters.options变更了就重渲染,使下一行的useTaskListEffect 可以接收新参数*/
|
|
41
|
+
useRenderOnChange(() => list.filters.options);
|
|
42
|
+
/** 把ListDataState传给useTaskListEffect,使之可以自動更新loading, hasmore. */
|
|
43
|
+
useTaskListEffect(list, (result, total) => {
|
|
44
|
+
list.union(result);
|
|
45
|
+
runInAction(() => {
|
|
46
|
+
props.state.taskTotals[params.dueDate.toLowerCase()] = total;
|
|
47
|
+
});
|
|
48
|
+
}, {
|
|
49
|
+
Total: true,
|
|
50
|
+
...list.filters.options,
|
|
51
|
+
});
|
|
52
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
53
|
+
React.createElement(ListView
|
|
54
|
+
// headerProps={{
|
|
55
|
+
// viewTitle: "My Tasks",
|
|
56
|
+
// quickSearch: true,
|
|
57
|
+
// addAble: params.dueDate === "created" ? true : false,
|
|
58
|
+
// filterViewProps: {
|
|
59
|
+
// columns: [<TaskStatusFilter key="TaskStatusFilter" defaultValue={defaultTaskStatus} />],
|
|
60
|
+
// onFilter,
|
|
61
|
+
// },
|
|
62
|
+
// sortOptions: [
|
|
63
|
+
// { label: "Name", value: "Name" },
|
|
64
|
+
// { label: "Start Date", value: "StartDate" },
|
|
65
|
+
// { label: "Due Date", value: "DueDate" },
|
|
66
|
+
// { label: "Priority", value: "Flag" },
|
|
67
|
+
// ],
|
|
68
|
+
// }}
|
|
69
|
+
// formViewTitle="Add Task"
|
|
70
|
+
, {
|
|
71
|
+
// headerProps={{
|
|
72
|
+
// viewTitle: "My Tasks",
|
|
73
|
+
// quickSearch: true,
|
|
74
|
+
// addAble: params.dueDate === "created" ? true : false,
|
|
75
|
+
// filterViewProps: {
|
|
76
|
+
// columns: [<TaskStatusFilter key="TaskStatusFilter" defaultValue={defaultTaskStatus} />],
|
|
77
|
+
// onFilter,
|
|
78
|
+
// },
|
|
79
|
+
// sortOptions: [
|
|
80
|
+
// { label: "Name", value: "Name" },
|
|
81
|
+
// { label: "Start Date", value: "StartDate" },
|
|
82
|
+
// { label: "Due Date", value: "DueDate" },
|
|
83
|
+
// { label: "Priority", value: "Flag" },
|
|
84
|
+
// ],
|
|
85
|
+
// }}
|
|
86
|
+
// formViewTitle="Add Task"
|
|
87
|
+
className: "my-space-tasks", formView: React.createElement(NewTaskForm, { showView: true }), moveAfter: moveAfter, renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
|
|
88
|
+
React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
|
|
89
|
+
setActiveId(item.id);
|
|
90
|
+
layout.history.push(generatePath(props.path, {
|
|
91
|
+
dueDate: params.dueDate,
|
|
92
|
+
active: item.id,
|
|
93
|
+
}));
|
|
94
|
+
} },
|
|
95
|
+
React.createElement(SubTaskItem, { id: item.id, connectDragSource: connectDragSource })))) }))));
|
|
96
|
+
function filters() {
|
|
97
|
+
const todayFilter = {
|
|
98
|
+
c: "DueDate",
|
|
99
|
+
o: "between",
|
|
100
|
+
l: "And",
|
|
101
|
+
v1: dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
|
102
|
+
v2: dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
|
103
|
+
};
|
|
104
|
+
const weekFilter = {
|
|
105
|
+
c: "DueDate",
|
|
106
|
+
o: "between",
|
|
107
|
+
l: "And",
|
|
108
|
+
v1: dayjs().startOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
|
109
|
+
v2: dayjs().endOf("week").format("YYYY-MM-DD HH:mm:ss"),
|
|
110
|
+
};
|
|
111
|
+
const monthFilter = {
|
|
112
|
+
c: "DueDate",
|
|
113
|
+
o: "between",
|
|
114
|
+
l: "And",
|
|
115
|
+
v1: dayjs().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
|
116
|
+
v2: dayjs().endOf("month").format("YYYY-MM-DD HH:mm:ss"),
|
|
117
|
+
};
|
|
118
|
+
const dueFilter = {
|
|
119
|
+
c: "DueDate",
|
|
120
|
+
o: "<",
|
|
121
|
+
l: "And",
|
|
122
|
+
v1: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
|
123
|
+
};
|
|
124
|
+
const unscheduledFilter = [
|
|
125
|
+
{
|
|
126
|
+
c: "DueDate",
|
|
127
|
+
o: "is null",
|
|
128
|
+
l: "And",
|
|
129
|
+
v1: "",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
c: "TaskStatus",
|
|
133
|
+
o: "contains",
|
|
134
|
+
l: "And",
|
|
135
|
+
v1: JSON.stringify(["NotStarted", "Progress"]),
|
|
136
|
+
},
|
|
137
|
+
{ c: "Members", o: "contains", l: "And", v1: JSON.stringify([user.info?.unit?.id]) },
|
|
138
|
+
];
|
|
139
|
+
const templateFilter = [
|
|
140
|
+
{
|
|
141
|
+
c: "CreatedBy",
|
|
142
|
+
o: "=",
|
|
143
|
+
l: "And",
|
|
144
|
+
v1: `${user.info.unit.id}`,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
c: "TaskStatus",
|
|
148
|
+
o: "contains",
|
|
149
|
+
l: "And",
|
|
150
|
+
v1: JSON.stringify(["NotStarted", "Progress"]),
|
|
151
|
+
},
|
|
152
|
+
];
|
|
153
|
+
let filter = [
|
|
154
|
+
{ c: "Members", o: "contains", l: "And", v1: JSON.stringify([user.info?.unit?.id]) },
|
|
155
|
+
{ c: "Status", o: "!=", v1: "Draft", l: "And" },
|
|
156
|
+
{ c: "TaskStatus", o: "contains", l: "And", v1: JSON.stringify(["NotStarted", "Progress"]) },
|
|
157
|
+
];
|
|
158
|
+
// let date: moment.unitOfTime.StartOf = "day";
|
|
159
|
+
// let v1 = "";
|
|
160
|
+
// let v2 = "";
|
|
161
|
+
// if (match.params.dueDate !== "today")
|
|
162
|
+
// date = match.params.dueDate as moment.unitOfTime.StartOf;
|
|
163
|
+
// if (match.params.dueDate === "unscheduled") {
|
|
164
|
+
// v1 = moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss");
|
|
165
|
+
// v2 = moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss");
|
|
166
|
+
// } else {
|
|
167
|
+
// v1 = moment().startOf(date).format("YYYY-MM-DD HH:mm:ss");
|
|
168
|
+
// v2 = moment().endOf(date).format("YYYY-MM-DD HH:mm:ss");
|
|
169
|
+
// }
|
|
170
|
+
// filter.push({ c: "DueDate", o: "between", l: "And", v1: v1, v2: v2 } as FilterOption);
|
|
171
|
+
switch (params.dueDate) {
|
|
172
|
+
case "unscheduled":
|
|
173
|
+
filter = unscheduledFilter;
|
|
174
|
+
break;
|
|
175
|
+
case "today":
|
|
176
|
+
filter = [todayFilter, ...filter];
|
|
177
|
+
break;
|
|
178
|
+
case "week":
|
|
179
|
+
filter = [weekFilter, ...filter];
|
|
180
|
+
break;
|
|
181
|
+
case "month":
|
|
182
|
+
filter = [monthFilter, ...filter];
|
|
183
|
+
break;
|
|
184
|
+
case "due":
|
|
185
|
+
filter = [dueFilter, ...filter];
|
|
186
|
+
break;
|
|
187
|
+
case "created":
|
|
188
|
+
filter = [...templateFilter];
|
|
189
|
+
break;
|
|
190
|
+
default:
|
|
191
|
+
return filter;
|
|
192
|
+
}
|
|
193
|
+
return filter;
|
|
194
|
+
}
|
|
195
|
+
async function moveAfter(id, afterId) {
|
|
196
|
+
await documentStore.moveAfter(id, afterId);
|
|
197
|
+
}
|
|
198
|
+
function onFilter(context) {
|
|
199
|
+
context.paging.Page = 1;
|
|
200
|
+
context.filter();
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
export default TaskList;
|
|
204
|
+
//# sourceMappingURL=index.js.map
|