@voplus/morpho-workspace 1.1.0 → 1.2.0-dev.12
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/changelog.md +75 -0
- package/es/Modules.js +16 -7
- package/es/Modules.js.map +1 -1
- package/es/components/AssignPeople/index.js +7 -6
- package/es/components/AssignPeople/index.js.map +1 -1
- package/es/components/TimeLog/index.d.ts +1 -1
- package/es/components/TimeLog/index.js +7 -6
- package/es/components/TimeLog/index.js.map +1 -1
- package/es/controls/AssignButton/index.d.ts +9 -0
- package/es/controls/AssignButton/index.js +19 -0
- package/es/controls/AssignButton/index.js.map +1 -0
- package/es/controls/Corner/index.d.ts +9 -0
- package/es/controls/Corner/index.js +10 -0
- package/es/controls/Corner/index.js.map +1 -0
- package/es/controls/Corner/index.less +7 -0
- package/es/controls/InlineSearch/index.d.ts +6 -0
- package/es/controls/InlineSearch/index.js +42 -0
- package/es/controls/InlineSearch/index.js.map +1 -0
- package/es/controls/InlineSearch/index.less +10 -0
- package/es/controls/MoreOperateDropdown/index.d.ts +1 -1
- package/es/controls/MoreOperateDropdown/index.js +14 -13
- package/es/controls/MoreOperateDropdown/index.js.map +1 -1
- package/es/controls/StickyAddButton/index.d.ts +10 -0
- package/es/controls/StickyAddButton/index.js +14 -0
- package/es/controls/StickyAddButton/index.js.map +1 -0
- package/es/controls/StickyAddButton/index.less +21 -0
- package/es/controls/filters/AssigneeViewFilter/index.d.ts +4 -0
- package/es/controls/filters/AssigneeViewFilter/index.js +48 -0
- package/es/controls/filters/AssigneeViewFilter/index.js.map +1 -0
- package/es/controls/filters/AssigneeViewFilter/index.less +24 -0
- package/es/controls/filters/AssigneeViewFilter/state.d.ts +13 -0
- package/es/controls/filters/AssigneeViewFilter/state.js +44 -0
- package/es/controls/filters/AssigneeViewFilter/state.js.map +1 -0
- package/es/controls/filters/DueDateFilter/index.d.ts +3 -0
- package/es/controls/filters/DueDateFilter/index.js +22 -0
- package/es/controls/filters/DueDateFilter/index.js.map +1 -0
- package/es/controls/filters/DueDateFilter/state.d.ts +11 -0
- package/es/controls/filters/DueDateFilter/state.js +39 -0
- package/es/controls/filters/DueDateFilter/state.js.map +1 -0
- package/es/controls/filters/StartDateFilter/index.d.ts +10 -0
- package/es/controls/filters/StartDateFilter/index.js +25 -0
- package/es/controls/filters/StartDateFilter/index.js.map +1 -0
- package/es/controls/filters/StartDateFilter/state.d.ts +11 -0
- package/es/controls/filters/StartDateFilter/state.js +39 -0
- package/es/controls/filters/StartDateFilter/state.js.map +1 -0
- package/es/controls/filters/TaskStatusFilter/index.d.ts +3 -0
- package/es/controls/filters/TaskStatusFilter/index.js +21 -0
- package/es/controls/filters/TaskStatusFilter/index.js.map +1 -0
- package/es/controls/filters/TaskStatusFilter/state.d.ts +17 -0
- package/es/controls/filters/TaskStatusFilter/state.js +47 -0
- package/es/controls/filters/TaskStatusFilter/state.js.map +1 -0
- package/es/controls/filters/index.d.ts +4 -0
- package/es/controls/filters/index.js +5 -0
- package/es/controls/filters/index.js.map +1 -0
- package/es/data/board/BoardColumnStore.d.ts +3 -13
- package/es/data/board/BoardColumnStore.js +9 -26
- package/es/data/board/BoardColumnStore.js.map +1 -1
- package/es/data/board/BoardStore.d.ts +2 -12
- package/es/data/board/BoardStore.js +8 -25
- package/es/data/board/BoardStore.js.map +1 -1
- package/es/data/board/contexts/BoardListContextState/index.d.ts +17 -0
- package/es/data/board/contexts/BoardListContextState/index.js +38 -0
- package/es/data/board/contexts/BoardListContextState/index.js.map +1 -0
- package/es/data/board/hooks.d.ts +2 -2
- package/es/data/board/hooks.js +4 -4
- package/es/data/board/hooks.js.map +1 -1
- package/es/data/board/index.d.ts +1 -1
- package/es/data/board/index.js +3 -1
- package/es/data/board/index.js.map +1 -1
- package/es/data/board/interfaces.d.ts +2 -2
- package/es/data/board/interfaces.js +1 -0
- package/es/data/board/metas.d.ts +3 -1
- package/es/data/board/metas.js +11 -3
- package/es/data/board/metas.js.map +1 -1
- package/es/data/board/mock.js +8 -8
- package/es/data/board/types.js +1 -0
- package/es/data/calendar/CalendarStore.d.ts +47 -0
- package/es/data/calendar/CalendarStore.js +98 -0
- package/es/data/calendar/CalendarStore.js.map +1 -0
- package/es/data/calendar/hooks.d.ts +11 -0
- package/es/data/calendar/hooks.js +22 -0
- package/es/data/calendar/hooks.js.map +1 -0
- package/es/data/calendar/index.d.ts +3 -0
- package/es/data/calendar/index.js +4 -0
- package/es/data/calendar/index.js.map +1 -0
- package/es/data/calendar/interfaces.d.ts +11 -0
- package/es/data/calendar/interfaces.js +2 -0
- package/es/data/calendar/interfaces.js.map +1 -0
- package/es/data/calendar/mock.d.ts +2 -0
- package/es/data/calendar/mock.js +26 -0
- package/es/data/calendar/mock.js.map +1 -0
- package/es/data/meeting/AgendaStore.d.ts +2 -5
- package/es/data/meeting/AgendaStore.js +8 -15
- package/es/data/meeting/AgendaStore.js.map +1 -1
- package/es/data/meeting/MeetingStore.d.ts +5 -5
- package/es/data/meeting/MeetingStore.js +24 -11
- package/es/data/meeting/MeetingStore.js.map +1 -1
- package/es/data/meeting/hooks.d.ts +7 -4
- package/es/data/meeting/hooks.js +11 -6
- package/es/data/meeting/hooks.js.map +1 -1
- package/es/data/meeting/index.js +2 -0
- package/es/data/meeting/index.js.map +1 -1
- package/es/data/meeting/interfaces.d.ts +15 -1
- package/es/data/meeting/interfaces.js +1 -0
- package/es/data/meeting/metas.d.ts +11 -2
- package/es/data/meeting/metas.js +38 -7
- package/es/data/meeting/metas.js.map +1 -1
- package/es/data/meeting/types.d.ts +1 -1
- package/es/data/meeting/types.js +1 -0
- package/es/data/reports/useEstimatedTimeEffect.d.ts +13 -0
- package/es/data/reports/useEstimatedTimeEffect.js +16 -0
- package/es/data/reports/useEstimatedTimeEffect.js.map +1 -0
- package/es/data/reports/useTaskSummaryEffect.d.ts +12 -0
- package/es/data/reports/useTaskSummaryEffect.js +26 -0
- package/es/data/reports/useTaskSummaryEffect.js.map +1 -0
- package/es/data/task/TaskStore.d.ts +2 -12
- package/es/data/task/TaskStore.js +8 -25
- package/es/data/task/TaskStore.js.map +1 -1
- package/es/data/task/hooks.d.ts +3 -2
- package/es/data/task/hooks.js +5 -5
- package/es/data/task/hooks.js.map +1 -1
- package/es/data/task/index.js +2 -0
- package/es/data/task/index.js.map +1 -1
- package/es/data/task/interfaces.d.ts +6 -3
- package/es/data/task/interfaces.js +1 -0
- package/es/data/task/metas.d.ts +3 -1
- package/es/data/task/metas.js +12 -4
- package/es/data/task/metas.js.map +1 -1
- package/es/data/task/types.js +1 -0
- package/es/modules/board/BoardRouets.js +5 -5
- package/es/modules/board/components/Board/index.js +54 -54
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/board/components/Board/index.less +83 -51
- package/es/modules/board/components/Board/state.d.ts +25 -5
- package/es/modules/board/components/Board/state.js +249 -50
- package/es/modules/board/components/Board/state.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.js +26 -44
- package/es/modules/board/components/BoardColumn/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.less +28 -16
- package/es/modules/board/components/BoardColumn/state.d.ts +24 -18
- package/es/modules/board/components/BoardColumn/state.js +193 -66
- package/es/modules/board/components/BoardColumn/state.js.map +1 -1
- package/es/modules/board/components/BoardPropertiesView/index.d.ts +7 -0
- package/es/modules/board/components/BoardPropertiesView/index.js +35 -0
- package/es/modules/board/components/BoardPropertiesView/index.js.map +1 -0
- package/es/modules/board/components/BoardPropertiesView/index.less +12 -0
- package/es/modules/board/components/SubDocument/index.d.ts +13 -0
- package/es/modules/board/components/SubDocument/index.js +13 -0
- package/es/modules/board/components/SubDocument/index.js.map +1 -0
- package/es/modules/board/components/SubDocumentList/index.d.ts +6 -0
- package/es/modules/board/components/SubDocumentList/index.js +161 -0
- package/es/modules/board/components/SubDocumentList/index.js.map +1 -0
- package/es/modules/board/components/SubDocumentList/index.less +28 -0
- package/es/modules/board/components/SubDocumentList/state.d.ts +25 -0
- package/es/modules/board/components/SubDocumentList/state.js +68 -0
- package/es/modules/board/components/SubDocumentList/state.js.map +1 -0
- package/es/modules/board/pages/BoardViewList/index.js +25 -14
- package/es/modules/board/pages/BoardViewList/index.js.map +1 -1
- package/es/modules/board/pages/BoardViewList/state.d.ts +1 -1
- package/es/modules/board/pages/BoardViewList/state.js +8 -5
- package/es/modules/board/pages/BoardViewList/state.js.map +1 -1
- package/es/modules/calendar/CalendarRoutes.js +5 -5
- package/es/modules/calendar/CalendarRoutes.js.map +1 -1
- package/es/modules/calendar/components/ActionCard/index.d.ts +7 -0
- package/es/modules/calendar/components/ActionCard/index.js +12 -0
- package/es/modules/calendar/components/ActionCard/index.js.map +1 -0
- package/es/modules/calendar/components/CalendarEventContent/index.d.ts +7 -0
- package/es/modules/calendar/components/CalendarEventContent/index.js +10 -0
- package/es/modules/calendar/components/CalendarEventContent/index.js.map +1 -0
- package/es/modules/calendar/components/CalendarMenu/index.d.ts +1 -1
- package/es/modules/calendar/components/CalendarMenu/index.js +4 -3
- package/es/modules/calendar/components/CalendarMenu/index.js.map +1 -1
- package/es/modules/calendar/pages/CalendarMonth/index.d.ts +0 -4
- package/es/modules/calendar/pages/CalendarMonth/index.js +86 -165
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -1
- package/es/modules/calendar/pages/CalendarMonth/index.less +194 -142
- package/es/modules/calendar/pages/CalendarMonth/state.d.ts +10 -1
- package/es/modules/calendar/pages/CalendarMonth/state.js +46 -4
- package/es/modules/calendar/pages/CalendarMonth/state.js.map +1 -1
- package/es/modules/meeting/MeetingRoutes.d.ts +4 -2
- package/es/modules/meeting/MeetingRoutes.js +18 -18
- package/es/modules/meeting/MeetingRoutes.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaHeader/index.d.ts +2 -2
- package/es/modules/meeting/components/AgendaList/AgendaHeader/index.js +3 -2
- package/es/modules/meeting/components/AgendaList/AgendaHeader/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.d.ts +2 -2
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js +20 -31
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.d.ts +7 -7
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js +94 -33
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +57 -74
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +43 -69
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.d.ts +10 -3
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js +113 -17
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.js +14 -31
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.less +2 -2
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.d.ts +7 -0
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js +86 -5
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/index.js +53 -48
- package/es/modules/meeting/components/AgendaList/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/state.d.ts +3 -21
- package/es/modules/meeting/components/AgendaList/state.js +22 -71
- package/es/modules/meeting/components/AgendaList/state.js.map +1 -1
- package/es/modules/meeting/components/MeetingDescription/index.d.ts +0 -1
- package/es/modules/meeting/components/MeetingDescription/index.js +10 -21
- package/es/modules/meeting/components/MeetingDescription/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.d.ts +2 -4
- package/es/modules/meeting/components/MeetingHeader/index.js +70 -88
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.less +5 -22
- package/es/modules/meeting/components/MeetingItem/index.d.ts +4 -1
- package/es/modules/meeting/components/MeetingItem/index.js +50 -30
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.less +48 -41
- package/es/modules/meeting/components/MeetingItem/state.d.ts +5 -2
- package/es/modules/meeting/components/MeetingItem/state.js +40 -7
- package/es/modules/meeting/components/MeetingItem/state.js.map +1 -1
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.d.ts +20 -0
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.js +52 -0
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.less +12 -0
- package/es/modules/meeting/components/MeetingList/index.d.ts +11 -0
- package/es/modules/meeting/components/MeetingList/index.js +59 -0
- package/es/modules/meeting/components/MeetingList/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingPropertiesView/index.js +4 -8
- package/es/modules/meeting/components/MeetingPropertiesView/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingPropertiesView/index.less +1 -1
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.d.ts +3 -2
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js +11 -4
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.less +7 -0
- package/es/modules/meeting/components/MeetingTaskList/index.d.ts +6 -0
- package/es/modules/meeting/components/MeetingTaskList/index.js +22 -0
- package/es/modules/meeting/components/MeetingTaskList/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingTaskList/index.less +30 -0
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.d.ts +6 -0
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js +30 -0
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.less +8 -0
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.d.ts +8 -0
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js +33 -0
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.less +7 -0
- package/es/modules/meeting/components/NewMeetingForm/index.d.ts +7 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js +72 -94
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.less +9 -0
- package/es/modules/meeting/components/NewMeetingForm/state.d.ts +3 -0
- package/es/modules/meeting/components/NewMeetingForm/state.js +46 -13
- package/es/modules/meeting/components/NewMeetingForm/state.js.map +1 -1
- package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.d.ts +17 -0
- package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.js +24 -0
- package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.js.map +1 -0
- package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.less +7 -0
- package/es/modules/meeting/pages/MeetingListView/index.d.ts +5 -0
- package/es/modules/meeting/pages/MeetingListView/index.js +19 -0
- package/es/modules/meeting/pages/MeetingListView/index.js.map +1 -0
- package/es/modules/meeting/pages/MeetingPrintView/index.js +19 -18
- package/es/modules/meeting/pages/MeetingPrintView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.js +16 -21
- package/es/modules/meeting/pages/MeetingTabView/index.js.map +1 -1
- package/es/modules/member/components/MemberDropdown.js +3 -2
- package/es/modules/member/components/MemberDropdown.js.map +1 -1
- package/es/modules/member/components/MemberList.js +4 -4
- package/es/modules/member/components/MemberList.js.map +1 -1
- package/es/modules/member/pages/MemberListView/index.js +29 -28
- package/es/modules/member/pages/MemberListView/index.js.map +1 -1
- package/es/modules/menus/components/Access/index.d.ts +2 -2
- package/es/modules/menus/components/Access/index.js +5 -4
- package/es/modules/menus/components/Access/index.js.map +1 -1
- package/es/modules/menus/components/Account/index.d.ts +2 -2
- package/es/modules/menus/components/Account/index.js +5 -4
- package/es/modules/menus/components/Account/index.js.map +1 -1
- package/es/modules/menus/components/AddUsers/index.js +11 -15
- package/es/modules/menus/components/AddUsers/index.js.map +1 -1
- package/es/modules/menus/components/Status/index.d.ts +2 -2
- package/es/modules/menus/components/Status/index.js +5 -4
- package/es/modules/menus/components/Status/index.js.map +1 -1
- package/es/modules/menus/components/UsersList/index.js +22 -21
- package/es/modules/menus/components/UsersList/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/Company/index.d.ts +2 -2
- package/es/modules/menus/pages/ListOptions/Company/index.js +52 -54
- package/es/modules/menus/pages/ListOptions/Company/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/Teams/index.js +18 -17
- package/es/modules/menus/pages/ListOptions/Teams/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/Users/index.js +4 -3
- package/es/modules/menus/pages/ListOptions/Users/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/index.js +16 -15
- package/es/modules/menus/pages/ListOptions/index.js.map +1 -1
- package/es/modules/tasks/TasksRoutes.d.ts +3 -1
- package/es/modules/tasks/TasksRoutes.js +6 -6
- package/es/modules/tasks/TasksRoutes.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.js +72 -63
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.less +24 -39
- package/es/modules/tasks/components/NewTaskForm/state.js +41 -15
- package/es/modules/tasks/components/NewTaskForm/state.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.d.ts +1 -0
- package/es/modules/tasks/components/SubTaskList/index.js +117 -61
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.less +16 -0
- package/es/modules/tasks/components/SubTaskList/state.d.ts +12 -17
- package/es/modules/tasks/components/SubTaskList/state.js +58 -54
- package/es/modules/tasks/components/SubTaskList/state.js.map +1 -1
- package/es/modules/tasks/components/TaskDescription/index.d.ts +1 -1
- package/es/modules/tasks/components/TaskDescription/index.js +8 -11
- package/es/modules/tasks/components/TaskDescription/index.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/index.d.ts +12 -0
- package/es/modules/tasks/components/TaskEstimatedTime/index.js +74 -0
- package/es/modules/tasks/components/TaskEstimatedTime/index.js.map +1 -0
- package/es/modules/tasks/components/{TaskTimeBox → TaskEstimatedTime}/state.d.ts +18 -6
- package/es/modules/tasks/components/TaskEstimatedTime/state.js +159 -0
- package/es/modules/tasks/components/TaskEstimatedTime/state.js.map +1 -0
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +46 -29
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +47 -41
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/defaultTaskItem.less +30 -33
- package/es/modules/tasks/components/TaskItem/state.d.ts +19 -17
- package/es/modules/tasks/components/TaskItem/state.js +165 -87
- package/es/modules/tasks/components/TaskItem/state.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/subTaskItem.less +48 -106
- package/es/modules/tasks/components/TaskPropertiesView/index.d.ts +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.js +60 -16
- package/es/modules/tasks/components/TaskPropertiesView/index.js.map +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.less +6 -0
- package/es/modules/tasks/components/TaskQuickViewDialog/index.d.ts +2 -2
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js +68 -5
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js.map +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.less +12 -6
- package/es/modules/tasks/controls/TaskStatusLabel/index.d.ts +10 -0
- package/es/modules/tasks/controls/TaskStatusLabel/index.js +9 -0
- package/es/modules/tasks/controls/TaskStatusLabel/index.js.map +1 -0
- package/es/modules/tasks/controls/TaskStatusLabel/index.less +33 -0
- package/es/modules/tasks/pages/TaskList/index.d.ts +3 -1
- package/es/modules/tasks/pages/TaskList/index.js +56 -97
- package/es/modules/tasks/pages/TaskList/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.js +81 -25
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.less +23 -1
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/index.d.ts +6 -0
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/index.js +41 -0
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/index.js.map +1 -0
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/index.less +21 -0
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/state.d.ts +22 -0
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/state.js +148 -0
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/state.js.map +1 -0
- package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.d.ts +7 -0
- package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.js +17 -0
- package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.js.map +1 -0
- package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.less +8 -0
- package/es/modules/tasks/reports/TaskSummaryCard/index.d.ts +17 -0
- package/es/modules/tasks/reports/TaskSummaryCard/index.js +67 -0
- package/es/modules/tasks/reports/TaskSummaryCard/index.js.map +1 -0
- package/es/modules/tasks/reports/TaskSummaryCard/index.less +20 -0
- package/es/modules/tasks/reports/TaskSummaryCard/state.d.ts +11 -0
- package/es/modules/tasks/reports/TaskSummaryCard/state.js +54 -0
- package/es/modules/tasks/reports/TaskSummaryCard/state.js.map +1 -0
- package/es/modules/user/pages/Positions/index.js +19 -18
- package/es/modules/user/pages/Positions/index.js.map +1 -1
- package/es/modules/workspaces/components/Access/index.d.ts +2 -2
- package/es/modules/workspaces/components/Access/index.js +5 -4
- package/es/modules/workspaces/components/Access/index.js.map +1 -1
- package/es/modules/workspaces/components/Account/index.d.ts +2 -2
- package/es/modules/workspaces/components/Account/index.js +5 -4
- package/es/modules/workspaces/components/Account/index.js.map +1 -1
- package/es/modules/workspaces/components/AddUsers/index.js +11 -15
- package/es/modules/workspaces/components/AddUsers/index.js.map +1 -1
- package/es/modules/workspaces/components/ListHeard/index.d.ts +1 -1
- package/es/modules/workspaces/components/ListHeard/index.js +5 -4
- package/es/modules/workspaces/components/ListHeard/index.js.map +1 -1
- package/es/modules/workspaces/components/Status/index.d.ts +2 -2
- package/es/modules/workspaces/components/Status/index.js +5 -4
- package/es/modules/workspaces/components/Status/index.js.map +1 -1
- package/es/modules/workspaces/components/UsersList/index.js +22 -21
- package/es/modules/workspaces/components/UsersList/index.js.map +1 -1
- package/es/modules/workspaces/pages/BoardView/index.js +20 -18
- package/es/modules/workspaces/pages/BoardView/index.js.map +1 -1
- package/es/modules/workspaces/pages/ListView/index.js +17 -14
- package/es/modules/workspaces/pages/ListView/index.js.map +1 -1
- package/es/modules/workspaces/pages/Users/index.js +5 -4
- package/es/modules/workspaces/pages/Users/index.js.map +1 -1
- package/es/pages/Project/ProjectDefaultView/index.d.ts +3 -0
- package/es/pages/Project/ProjectDefaultView/index.js +65 -0
- package/es/pages/Project/ProjectDefaultView/index.js.map +1 -0
- package/es/pages/Project/ProjectDefaultView/index.less +22 -0
- package/es/pages/Project/data/ProjectStore.d.ts +10 -0
- package/es/pages/Project/data/ProjectStore.js +21 -0
- package/es/pages/Project/data/ProjectStore.js.map +1 -0
- package/es/pages/Project/data/hook.d.ts +9 -0
- package/es/pages/Project/data/hook.js +20 -0
- package/es/pages/Project/data/hook.js.map +1 -0
- package/es/pages/Project/data/index.d.ts +3 -0
- package/es/pages/Project/data/index.js +4 -0
- package/es/pages/Project/data/index.js.map +1 -0
- package/es/pages/Project/data/interfaces.d.ts +2 -0
- package/es/pages/Project/data/interfaces.js +2 -0
- package/es/pages/Project/data/interfaces.js.map +1 -0
- package/es/pages/Routes.d.ts +29 -0
- package/es/pages/Routes.js +64 -0
- package/es/pages/Routes.js.map +1 -0
- package/es/pages/Space/components/Documents/index.d.ts +6 -0
- package/es/pages/Space/components/Documents/index.js +41 -0
- package/es/pages/Space/components/Documents/index.js.map +1 -0
- package/es/pages/Space/components/Documents/index.less +9 -0
- package/es/pages/Space/components/Notes/ColorSelect/index.d.ts +10 -0
- package/es/pages/Space/components/Notes/ColorSelect/index.js +30 -0
- package/es/pages/Space/components/Notes/ColorSelect/index.js.map +1 -0
- package/es/pages/Space/components/Notes/ColorSelect/index.less +17 -0
- package/es/pages/Space/components/Notes/NewNoteDialog/index.d.ts +10 -0
- package/es/pages/Space/components/Notes/NewNoteDialog/index.js +41 -0
- package/es/pages/Space/components/Notes/NewNoteDialog/index.js.map +1 -0
- package/es/pages/Space/components/Notes/NewNoteDialog/index.less +63 -0
- package/es/pages/Space/components/Notes/TextNoteCard/index.d.ts +6 -0
- package/es/pages/Space/components/Notes/TextNoteCard/index.js +34 -0
- package/es/pages/Space/components/Notes/TextNoteCard/index.js.map +1 -0
- package/es/pages/Space/components/Notes/TextNoteCard/index.less +56 -0
- package/es/pages/Space/components/Notes/TextNoteCard/state.d.ts +6 -0
- package/es/pages/Space/components/Notes/TextNoteCard/state.js +35 -0
- package/es/pages/Space/components/Notes/TextNoteCard/state.js.map +1 -0
- package/es/pages/Space/components/Notes/index.d.ts +5 -0
- package/es/pages/Space/components/Notes/index.js +51 -0
- package/es/pages/Space/components/Notes/index.js.map +1 -0
- package/es/pages/Space/components/Projects/index.d.ts +5 -0
- package/es/pages/Space/components/Projects/index.js +35 -0
- package/es/pages/Space/components/Projects/index.js.map +1 -0
- package/es/pages/Space/components/Tasks/index.d.ts +7 -0
- package/es/pages/Space/components/Tasks/index.js +43 -0
- package/es/pages/Space/components/Tasks/index.js.map +1 -0
- package/es/pages/Space/components/Tasks/index.less +17 -0
- package/es/pages/Space/components/Works/index.d.ts +6 -0
- package/es/pages/Space/components/Works/index.js +43 -0
- package/es/pages/Space/components/Works/index.js.map +1 -0
- package/es/pages/Space/components/Works/index.less +18 -0
- package/es/pages/Space/pages/MySpace/index.d.ts +4 -0
- package/es/pages/Space/pages/MySpace/index.js +47 -0
- package/es/pages/Space/pages/MySpace/index.js.map +1 -0
- package/es/pages/Space/pages/MySpace/index.less +60 -0
- package/es/pages/Space/pages/MySpace/state.d.ts +12 -0
- package/es/pages/Space/pages/MySpace/state.js +61 -0
- package/es/pages/Space/pages/MySpace/state.js.map +1 -0
- package/es/pages/Work/components/NewWorkDialog/index.d.ts +11 -0
- package/es/pages/Work/components/NewWorkDialog/index.js +45 -0
- package/es/pages/Work/components/NewWorkDialog/index.js.map +1 -0
- package/es/pages/Work/components/NewWorkDialog/index.less +11 -0
- package/es/pages/Work/components/WorkCheckList/index.d.ts +5 -0
- package/es/pages/Work/components/WorkCheckList/index.js +38 -0
- package/es/pages/Work/components/WorkCheckList/index.js.map +1 -0
- package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/index.d.ts +6 -0
- package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/index.js +21 -0
- package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/index.js.map +1 -0
- package/es/pages/Work/components/WorkSummaryCards/WorkBlockingsCard/index.d.ts +5 -0
- package/es/pages/Work/components/WorkSummaryCards/WorkBlockingsCard/index.js +11 -0
- package/es/pages/Work/components/WorkSummaryCards/WorkBlockingsCard/index.js.map +1 -0
- package/es/pages/Work/components/WorkSummaryCards/WorkDueCard/index.d.ts +7 -0
- package/es/pages/Work/components/WorkSummaryCards/WorkDueCard/index.js +16 -0
- package/es/pages/Work/components/WorkSummaryCards/WorkDueCard/index.js.map +1 -0
- package/es/pages/Work/components/WorkSummaryCards/index.d.ts +5 -0
- package/es/pages/Work/components/WorkSummaryCards/index.js +69 -0
- package/es/pages/Work/components/WorkSummaryCards/index.js.map +1 -0
- package/es/pages/Work/components/WorkSummaryCards/index.less +35 -0
- package/es/pages/Work/components/WorkSummaryCards/state.d.ts +11 -0
- package/es/pages/Work/components/WorkSummaryCards/state.js +47 -0
- package/es/pages/Work/components/WorkSummaryCards/state.js.map +1 -0
- package/es/pages/Work/components/WorkTrail/index.d.ts +5 -0
- package/es/pages/Work/components/WorkTrail/index.js +14 -0
- package/es/pages/Work/components/WorkTrail/index.js.map +1 -0
- package/es/pages/Work/components/WorkTrail/index.less +20 -0
- package/es/pages/Work/data/WorkStore.d.ts +10 -0
- package/es/pages/Work/data/WorkStore.js +21 -0
- package/es/pages/Work/data/WorkStore.js.map +1 -0
- package/es/pages/Work/data/hook.d.ts +3 -0
- package/es/pages/Work/data/hook.js +10 -0
- package/es/pages/Work/data/hook.js.map +1 -0
- package/es/pages/Work/data/index.d.ts +3 -0
- package/es/pages/Work/data/index.js +4 -0
- package/es/pages/Work/data/index.js.map +1 -0
- package/es/pages/Work/data/interfaces.d.ts +14 -0
- package/es/pages/Work/data/interfaces.js +2 -0
- package/es/pages/Work/data/interfaces.js.map +1 -0
- package/es/pages/Work/pages/WorkDefaultView/index.d.ts +3 -0
- package/es/pages/Work/pages/WorkDefaultView/index.js +58 -0
- package/es/pages/Work/pages/WorkDefaultView/index.js.map +1 -0
- package/es/pages/Work/pages/WorkDefaultView/index.less +12 -0
- package/es/pages/Work/pages/WorkDefaultView/state.d.ts +5 -0
- package/es/pages/Work/pages/WorkDefaultView/state.js +18 -0
- package/es/pages/Work/pages/WorkDefaultView/state.js.map +1 -0
- package/es/pages/WorkType/WorkTypeCheckList/index.d.ts +5 -0
- package/es/pages/WorkType/WorkTypeCheckList/index.js +38 -0
- package/es/pages/WorkType/WorkTypeCheckList/index.js.map +1 -0
- package/es/pages/WorkType/WorkTypeDefaultView/index.d.ts +3 -0
- package/es/pages/WorkType/WorkTypeDefaultView/index.js +19 -0
- package/es/pages/WorkType/WorkTypeDefaultView/index.js.map +1 -0
- package/es/pages/WorkType/WorkTypeDetail/index.d.ts +6 -0
- package/es/pages/WorkType/WorkTypeDetail/index.js +88 -0
- package/es/pages/WorkType/WorkTypeDetail/index.js.map +1 -0
- package/es/pages/WorkType/WorkTypeDetail/index.less +35 -0
- package/es/pages/WorkType/WorkTypeDetail/state.d.ts +9 -0
- package/es/pages/WorkType/WorkTypeDetail/state.js +38 -0
- package/es/pages/WorkType/WorkTypeDetail/state.js.map +1 -0
- package/es/pages/WorkType/WorkTypePropertiesView/index.d.ts +5 -0
- package/es/pages/WorkType/WorkTypePropertiesView/index.js +32 -0
- package/es/pages/WorkType/WorkTypePropertiesView/index.js.map +1 -0
- package/es/pages/WorkType/WorkTypePropertiesView/index.less +31 -0
- package/es/pages/WorkType/WorkTypeSelect/index.d.ts +7 -0
- package/es/pages/WorkType/WorkTypeSelect/index.js +18 -0
- package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -0
- package/es/pages/WorkType/data/WorkTypeStore.d.ts +21 -0
- package/es/pages/WorkType/data/WorkTypeStore.js +75 -0
- package/es/pages/WorkType/data/WorkTypeStore.js.map +1 -0
- package/es/pages/WorkType/data/hook.d.ts +9 -0
- package/es/pages/WorkType/data/hook.js +19 -0
- package/es/pages/WorkType/data/hook.js.map +1 -0
- package/es/pages/WorkType/data/index.d.ts +4 -0
- package/es/pages/WorkType/data/index.js +5 -0
- package/es/pages/WorkType/data/index.js.map +1 -0
- package/es/pages/WorkType/data/interfaces.d.ts +35 -0
- package/es/pages/WorkType/data/interfaces.js +2 -0
- package/es/pages/WorkType/data/interfaces.js.map +1 -0
- package/es/pages/WorkType/data/types.d.ts +41 -0
- package/es/pages/WorkType/data/types.js +2 -0
- package/es/pages/WorkType/data/types.js.map +1 -0
- package/es/routes.js +6 -2
- package/es/routes.js.map +1 -1
- package/es/style/common.less +3 -0
- package/package.json +35 -37
- package/es/components/AssignPeople/index.less +0 -0
- package/es/components/AvatarList/index.d.ts +0 -19
- package/es/components/AvatarList/index.js +0 -124
- package/es/components/AvatarList/index.js.map +0 -1
- package/es/components/AvatarList/index.less +0 -72
- package/es/components/AvatarList/state.d.ts +0 -25
- package/es/components/AvatarList/state.js +0 -52
- package/es/components/AvatarList/state.js.map +0 -1
- package/es/components/PermissionModal/index.d.ts +0 -7
- package/es/components/PermissionModal/index.js +0 -18
- package/es/components/PermissionModal/index.js.map +0 -1
- package/es/components/PermissionModal/index.less +0 -7
- package/es/components/ToolBar/index.d.ts +0 -47
- package/es/components/ToolBar/index.js +0 -72
- package/es/components/ToolBar/index.js.map +0 -1
- package/es/components/ToolBar/index.less +0 -18
- package/es/components/ToolBar/state.d.ts +0 -9
- package/es/components/ToolBar/state.js +0 -23
- package/es/components/ToolBar/state.js.map +0 -1
- package/es/components/VersionsModal/index.d.ts +0 -5
- package/es/components/VersionsModal/index.js +0 -20
- package/es/components/VersionsModal/index.js.map +0 -1
- package/es/components/VersionsModal/index.less +0 -19
- package/es/components/VersionsModal/state.d.ts +0 -4
- package/es/components/VersionsModal/state.js +0 -12
- package/es/components/VersionsModal/state.js.map +0 -1
- package/es/controls/DocumentStatusLabel/index.d.ts +0 -14
- package/es/controls/DocumentStatusLabel/index.js +0 -41
- package/es/controls/DocumentStatusLabel/index.js.map +0 -1
- package/es/controls/DocumentStatusLabel/index.less +0 -45
- package/es/controls/FlagIcon/index.d.ts +0 -17
- package/es/controls/FlagIcon/index.js +0 -58
- package/es/controls/FlagIcon/index.js.map +0 -1
- package/es/controls/FlagIcon/index.less +0 -21
- package/es/controls/IconNumbers/index.d.ts +0 -18
- package/es/controls/IconNumbers/index.js +0 -31
- package/es/controls/IconNumbers/index.js.map +0 -1
- package/es/controls/IconNumbers/index.less +0 -10
- package/es/data/board/LinkStore.d.ts +0 -11
- package/es/data/board/LinkStore.js +0 -40
- package/es/data/board/LinkStore.js.map +0 -1
- package/es/modules/board/components/DocumentCard/index.d.ts +0 -10
- package/es/modules/board/components/DocumentCard/index.js +0 -111
- package/es/modules/board/components/DocumentCard/index.js.map +0 -1
- package/es/modules/board/components/DocumentCard/index.less +0 -116
- package/es/modules/board/components/DocumentCard/state.d.ts +0 -15
- package/es/modules/board/components/DocumentCard/state.js +0 -54
- package/es/modules/board/components/DocumentCard/state.js.map +0 -1
- package/es/modules/board/components/LinkList/index.d.ts +0 -4
- package/es/modules/board/components/LinkList/index.js +0 -38
- package/es/modules/board/components/LinkList/index.js.map +0 -1
- package/es/modules/board/components/LinkList/state.d.ts +0 -15
- package/es/modules/board/components/LinkList/state.js +0 -33
- package/es/modules/board/components/LinkList/state.js.map +0 -1
- package/es/modules/board/components/NewTaskForm/index.d.ts +0 -11
- package/es/modules/board/components/NewTaskForm/index.js +0 -85
- package/es/modules/board/components/NewTaskForm/index.js.map +0 -1
- package/es/modules/board/components/NewTaskForm/index.less +0 -102
- package/es/modules/board/components/NewTaskForm/state.d.ts +0 -25
- package/es/modules/board/components/NewTaskForm/state.js +0 -41
- package/es/modules/board/components/NewTaskForm/state.js.map +0 -1
- package/es/modules/board/components/TaskCard/index.d.ts +0 -4
- package/es/modules/board/components/TaskCard/index.js +0 -97
- package/es/modules/board/components/TaskCard/index.js.map +0 -1
- package/es/modules/board/components/TaskCard/index.less +0 -115
- package/es/modules/board/components/TaskCard/state.d.ts +0 -44
- package/es/modules/board/components/TaskCard/state.js +0 -119
- package/es/modules/board/components/TaskCard/state.js.map +0 -1
- package/es/modules/board/components/links/index.d.ts +0 -12
- package/es/modules/board/components/links/index.js +0 -26
- package/es/modules/board/components/links/index.js.map +0 -1
- package/es/modules/calendar/components/TaskCard/index.d.ts +0 -7
- package/es/modules/calendar/components/TaskCard/index.js +0 -25
- package/es/modules/calendar/components/TaskCard/index.js.map +0 -1
- package/es/modules/calendar/components/TaskCard/index.less +0 -64
- package/es/modules/calendar/components/TaskCard/state.d.ts +0 -16
- package/es/modules/calendar/components/TaskCard/state.js +0 -58
- package/es/modules/calendar/components/TaskCard/state.js.map +0 -1
- package/es/modules/calendar/pages/CalendarWeek/index.d.ts +0 -0
- package/es/modules/calendar/pages/CalendarWeek/index.js +0 -1
- package/es/modules/calendar/pages/CalendarWeek/index.js.map +0 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.d.ts +0 -7
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.js +0 -37
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.js.map +0 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.less +0 -57
- package/es/modules/meeting/pages/MeetingList/index.d.ts +0 -3
- package/es/modules/meeting/pages/MeetingList/index.js +0 -40
- package/es/modules/meeting/pages/MeetingList/index.js.map +0 -1
- package/es/modules/meeting/pages/MeetingList/state.d.ts +0 -14
- package/es/modules/meeting/pages/MeetingList/state.js +0 -44
- package/es/modules/meeting/pages/MeetingList/state.js.map +0 -1
- package/es/modules/tasks/components/TaskHeader/index.d.ts +0 -13
- package/es/modules/tasks/components/TaskHeader/index.js +0 -43
- package/es/modules/tasks/components/TaskHeader/index.js.map +0 -1
- package/es/modules/tasks/components/TaskHeader/index.less +0 -51
- package/es/modules/tasks/components/TaskTimeBox/index.d.ts +0 -16
- package/es/modules/tasks/components/TaskTimeBox/index.js +0 -62
- package/es/modules/tasks/components/TaskTimeBox/index.js.map +0 -1
- package/es/modules/tasks/components/TaskTimeBox/state.js +0 -76
- package/es/modules/tasks/components/TaskTimeBox/state.js.map +0 -1
- package/es/modules/tasks/pages/TaskList/state.d.ts +0 -10
- package/es/modules/tasks/pages/TaskList/state.js +0 -31
- package/es/modules/tasks/pages/TaskList/state.js.map +0 -1
- /package/es/modules/tasks/components/{TaskTimeBox → TaskEstimatedTime}/index.less +0 -0
@@ -1,97 +1,181 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { action, computed, observable, toJS } from "mobx";
|
3
|
-
import {
|
4
|
-
import { isEqual } from "lodash-es";
|
2
|
+
import { action, computed, makeObservable, observable, runInAction, toJS } from "mobx";
|
3
|
+
import { clone, isEqual } from "lodash-es";
|
5
4
|
import { message } from "@voplus/antd";
|
6
5
|
export class State {
|
7
|
-
constructor(taskStore) {
|
8
|
-
this
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
constructor(id, taskStore) {
|
7
|
+
Object.defineProperty(this, "id", {
|
8
|
+
enumerable: true,
|
9
|
+
configurable: true,
|
10
|
+
writable: true,
|
11
|
+
value: id
|
12
|
+
});
|
13
|
+
Object.defineProperty(this, "taskStore", {
|
14
|
+
enumerable: true,
|
15
|
+
configurable: true,
|
16
|
+
writable: true,
|
17
|
+
value: taskStore
|
18
|
+
});
|
19
|
+
/** Detail of task */
|
20
|
+
Object.defineProperty(this, "task", {
|
21
|
+
enumerable: true,
|
22
|
+
configurable: true,
|
23
|
+
writable: true,
|
24
|
+
value: void 0
|
25
|
+
});
|
26
|
+
/** id of member of task of list */
|
27
|
+
Object.defineProperty(this, "ids", {
|
28
|
+
enumerable: true,
|
29
|
+
configurable: true,
|
30
|
+
writable: true,
|
31
|
+
value: []
|
32
|
+
});
|
33
|
+
/** members of task */
|
34
|
+
Object.defineProperty(this, "members", {
|
35
|
+
enumerable: true,
|
36
|
+
configurable: true,
|
37
|
+
writable: true,
|
38
|
+
value: []
|
39
|
+
});
|
40
|
+
/** name of task */
|
41
|
+
Object.defineProperty(this, "name", {
|
42
|
+
enumerable: true,
|
43
|
+
configurable: true,
|
44
|
+
writable: true,
|
45
|
+
value: ""
|
46
|
+
});
|
12
47
|
/** Schedule of task */
|
13
|
-
this
|
48
|
+
Object.defineProperty(this, "schedule", {
|
49
|
+
enumerable: true,
|
50
|
+
configurable: true,
|
51
|
+
writable: true,
|
52
|
+
value: []
|
53
|
+
});
|
14
54
|
/** EstimatedHours of task */
|
15
|
-
this
|
55
|
+
Object.defineProperty(this, "estimatedHours", {
|
56
|
+
enumerable: true,
|
57
|
+
configurable: true,
|
58
|
+
writable: true,
|
59
|
+
value: 0
|
60
|
+
});
|
16
61
|
/** Edit model of task */
|
17
|
-
this
|
62
|
+
Object.defineProperty(this, "editable", {
|
63
|
+
enumerable: true,
|
64
|
+
configurable: true,
|
65
|
+
writable: true,
|
66
|
+
value: false
|
67
|
+
});
|
18
68
|
/** loading of save */
|
19
|
-
this
|
20
|
-
|
21
|
-
|
69
|
+
Object.defineProperty(this, "loading", {
|
70
|
+
enumerable: true,
|
71
|
+
configurable: true,
|
72
|
+
writable: true,
|
73
|
+
value: false
|
74
|
+
});
|
75
|
+
Object.defineProperty(this, "modalType", {
|
76
|
+
enumerable: true,
|
77
|
+
configurable: true,
|
78
|
+
writable: true,
|
79
|
+
value: ""
|
80
|
+
});
|
22
81
|
/** MouseOver of sub task */
|
23
|
-
this
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
82
|
+
Object.defineProperty(this, "isHover", {
|
83
|
+
enumerable: true,
|
84
|
+
configurable: true,
|
85
|
+
writable: true,
|
86
|
+
value: false
|
87
|
+
});
|
88
|
+
Object.defineProperty(this, "startEdit", {
|
89
|
+
enumerable: true,
|
90
|
+
configurable: true,
|
91
|
+
writable: true,
|
92
|
+
value: () => {
|
93
|
+
this.name = this.task.name;
|
94
|
+
this.ids = [...(this.task.members || [])].map(({ id }) => id);
|
95
|
+
this.isHover = false;
|
96
|
+
this.editable = !this.editable;
|
97
|
+
}
|
98
|
+
});
|
99
|
+
Object.defineProperty(this, "save", {
|
100
|
+
enumerable: true,
|
101
|
+
configurable: true,
|
102
|
+
writable: true,
|
103
|
+
value: async () => {
|
104
|
+
const params = { Name: this.name, MemberIds: this.ids };
|
105
|
+
// if (this.estimatedHours) params = { ...params, EstimatedHours: this.estimatedHours };
|
106
|
+
// if (this.schedule[0])
|
107
|
+
// params = { ...params, StartDate: this.schedule[0], DueDate: this.schedule[1] };
|
108
|
+
this.loading = true;
|
109
|
+
await this.taskStore.edit(this.task.id, { data: params, error: "message" });
|
110
|
+
this.loading = false;
|
111
|
+
this.editable = false;
|
112
|
+
}
|
113
|
+
});
|
53
114
|
/** task delete */
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
115
|
+
Object.defineProperty(this, "onDelete", {
|
116
|
+
enumerable: true,
|
117
|
+
configurable: true,
|
118
|
+
writable: true,
|
119
|
+
value: async () => {
|
120
|
+
await this.taskStore.delete([this.task.id], { DeleteChilds: true });
|
121
|
+
}
|
122
|
+
});
|
123
|
+
Object.defineProperty(this, "onChange", {
|
124
|
+
enumerable: true,
|
125
|
+
configurable: true,
|
126
|
+
writable: true,
|
127
|
+
value: async (ids, members) => {
|
128
|
+
if (!this.editable) {
|
129
|
+
await this.taskStore.edit(this.id, { data: { MemberIds: ids }, error: "message" });
|
130
|
+
runInAction(() => (this.members = this.taskMembers));
|
131
|
+
}
|
132
|
+
else {
|
133
|
+
this.ids = ids;
|
134
|
+
this.members = members;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
});
|
138
|
+
makeObservable(this);
|
139
|
+
}
|
140
|
+
update(task) {
|
141
|
+
this.task = task;
|
142
|
+
}
|
143
|
+
undo() {
|
144
|
+
this.editable = false;
|
145
|
+
this.members = this.taskMembers;
|
69
146
|
}
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
147
|
+
async onEdit(TaskStatus) {
|
148
|
+
const status = clone(this.task.taskStatus);
|
149
|
+
this.task.taskStatus = TaskStatus;
|
150
|
+
await this.taskStore.edit(this.id, {
|
151
|
+
data: { TaskStatus },
|
152
|
+
error: (error) => {
|
153
|
+
message.error(error.message);
|
154
|
+
this.task.taskStatus = status;
|
155
|
+
},
|
156
|
+
});
|
157
|
+
}
|
158
|
+
get childMembers() {
|
159
|
+
return (this.task.childMembers || [])
|
160
|
+
.filter((item) => !this.task.members.some((member) => member.id === item.id))
|
161
|
+
.map((item) => ({
|
74
162
|
...item,
|
75
|
-
disabled: true
|
163
|
+
disabled: true,
|
76
164
|
}));
|
77
165
|
}
|
78
|
-
get
|
79
|
-
return this.task.
|
166
|
+
get taskMembers() {
|
167
|
+
return [...(this.task.members || []), ...(this.childMembers || [])];
|
80
168
|
}
|
81
169
|
get hasChanges() {
|
82
170
|
if (!this.name)
|
83
171
|
return;
|
84
|
-
const ids = toJS([...(this.task.members || []), ...this.
|
172
|
+
const ids = toJS([...(this.task.members || []), ...this.childMembers].map(({ id }) => id));
|
85
173
|
const { name, startDate, dueDate, estimatedHours } = this.task;
|
86
174
|
const originalData = { name, ids };
|
87
175
|
const modifiedData = {
|
88
176
|
name: this.name.trim(),
|
89
|
-
ids: this.ids
|
90
|
-
// startDate: toJS(this.schedule)[0],
|
91
|
-
// dueDate: toJS(this.schedule)[1],
|
92
|
-
// estimatedHours: this.estimatedHours || estimatedHours
|
177
|
+
ids: this.ids,
|
93
178
|
};
|
94
|
-
// console.log(originalData, modifiedData, isEqual(originalData, modifiedData), "4444");
|
95
179
|
return !isEqual(originalData, modifiedData);
|
96
180
|
}
|
97
181
|
}
|
@@ -119,9 +203,6 @@ __decorate([
|
|
119
203
|
__decorate([
|
120
204
|
observable
|
121
205
|
], State.prototype, "loading", void 0);
|
122
|
-
__decorate([
|
123
|
-
observable
|
124
|
-
], State.prototype, "visibleQuickView", void 0);
|
125
206
|
__decorate([
|
126
207
|
observable
|
127
208
|
], State.prototype, "modalType", void 0);
|
@@ -129,35 +210,32 @@ __decorate([
|
|
129
210
|
observable
|
130
211
|
], State.prototype, "isHover", void 0);
|
131
212
|
__decorate([
|
132
|
-
|
133
|
-
], State.prototype, "
|
134
|
-
__decorate([
|
135
|
-
observable
|
136
|
-
], State.prototype, "open", void 0);
|
213
|
+
action
|
214
|
+
], State.prototype, "update", null);
|
137
215
|
__decorate([
|
138
216
|
action
|
139
217
|
], State.prototype, "startEdit", void 0);
|
140
218
|
__decorate([
|
141
219
|
action
|
142
|
-
], State.prototype, "
|
220
|
+
], State.prototype, "save", void 0);
|
143
221
|
__decorate([
|
144
222
|
action
|
145
|
-
], State.prototype, "
|
223
|
+
], State.prototype, "onDelete", void 0);
|
146
224
|
__decorate([
|
147
225
|
action
|
148
|
-
], State.prototype, "
|
226
|
+
], State.prototype, "undo", null);
|
149
227
|
__decorate([
|
150
228
|
action
|
151
|
-
], State.prototype, "
|
229
|
+
], State.prototype, "onChange", void 0);
|
152
230
|
__decorate([
|
153
231
|
action
|
154
|
-
], State.prototype, "
|
232
|
+
], State.prototype, "onEdit", null);
|
155
233
|
__decorate([
|
156
234
|
computed
|
157
|
-
], State.prototype, "
|
235
|
+
], State.prototype, "childMembers", null);
|
158
236
|
__decorate([
|
159
237
|
computed
|
160
|
-
], State.prototype, "
|
238
|
+
], State.prototype, "taskMembers", null);
|
161
239
|
__decorate([
|
162
240
|
computed
|
163
241
|
], State.prototype, "hasChanges", null);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskItem/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskItem/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACvF,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAK3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAcvC,MAAM,OAAO,KAAK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E,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC/D,MAAM,YAAY,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QACnC,MAAM,YAAY,GAAG;YACpB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACtB,GAAG,EAAE,IAAI,CAAC,GAAG;SACb,CAAC;QACF,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IAC7C,CAAC;CACD;AA9GY;IAAX,UAAU;mCAAoB;AAEnB;IAAX,UAAU;kCAA2B;AAE1B;IAAX,UAAU;sCAA4B;AAE3B;IAAX,UAAU;mCAAkB;AAEjB;IAAX,UAAU;uCAA6B;AAE5B;IAAX,UAAU;6CAA2B;AAE1B;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;wCAAuB;AAEtB;IAAX,UAAU;sCAAwB;AAOnC;IADC,MAAM;mCAGN;AAGD;IADC,MAAM;wCAML;AAGF;IADC,MAAM;mCAUL;AAIF;IADC,MAAM;uCAGL;AAIF;IAFC,MAAM;iCAKN;AAED;IADC,MAAM;uCASL;AAGF;IAFC,MAAM;mCAYN;AAGD;IADC,QAAQ;yCAQR;AAED;IADC,QAAQ;wCAGR;AAGD;IADC,QAAQ;uCAWR"}
|
@@ -3,125 +3,67 @@
|
|
3
3
|
:global {
|
4
4
|
.sub-task-item {
|
5
5
|
position: relative;
|
6
|
-
display: flex;
|
7
|
-
// flex: 1;
|
8
|
-
justify-content: space-between;
|
9
6
|
align-items: center;
|
10
|
-
padding
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
&_box {
|
16
|
-
flex: 1;
|
17
|
-
display: flex;
|
18
|
-
align-items: center;
|
19
|
-
> div:first-child {
|
20
|
-
flex: 1;
|
21
|
-
}
|
22
|
-
.multiple-checkbox {
|
23
|
-
margin-right: 10px;
|
24
|
-
}
|
25
|
-
.task-move {
|
26
|
-
display: inline-block;
|
27
|
-
width: 25px;
|
28
|
-
opacity: 0;
|
29
|
-
font-size: 16px;
|
30
|
-
color: #000;
|
31
|
-
cursor: move;
|
32
|
-
}
|
33
|
-
.task-header {
|
34
|
-
display: flex;
|
35
|
-
.task-flag {
|
36
|
-
width: 25px;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
.task-item-name {
|
40
|
-
color: #000;
|
41
|
-
font-size: 15px;
|
42
|
-
font-weight: 500;
|
43
|
-
z-index: 100;
|
44
|
-
&.task-item-name_done {
|
45
|
-
color: #a8a8a8;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
.task-file-info {
|
49
|
-
display: flex;
|
50
|
-
color: #444;
|
51
|
-
font-size: 13px;
|
52
|
-
padding-top: 5px;
|
53
|
-
line-height: 24px;
|
54
|
-
p {
|
55
|
-
margin: 0;
|
56
|
-
}
|
57
|
-
& span + span {
|
58
|
-
margin-left: 12px;
|
59
|
-
}
|
60
|
-
.svg-inline--fa {
|
61
|
-
margin-right: 5px;
|
62
|
-
}
|
63
|
-
}
|
64
|
-
.padding-left-25 {
|
65
|
-
padding-left: 25px;
|
66
|
-
}
|
67
|
-
.tag-view,
|
68
|
-
.task-time-box {
|
69
|
-
position: relative;
|
70
|
-
z-index: 100;
|
71
|
-
.ant-tag {
|
72
|
-
margin: 0 0 0 5px;
|
73
|
-
padding: 0 5px;
|
74
|
-
font-size: 12px;
|
75
|
-
line-height: 15px;
|
76
|
-
}
|
77
|
-
}
|
7
|
+
padding: 10px 20px;
|
8
|
+
background: transparent;
|
9
|
+
cursor: pointer;
|
10
|
+
.tag-view {
|
11
|
+
line-height: 20px;
|
78
12
|
.add-tag-btn {
|
79
13
|
visibility: hidden;
|
80
14
|
}
|
81
|
-
|
82
|
-
|
15
|
+
}
|
16
|
+
&:hover {
|
17
|
+
.tag-view .add-tag-btn {
|
18
|
+
display: inline-block;
|
19
|
+
visibility: visible;
|
83
20
|
}
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
21
|
+
}
|
22
|
+
.flag-icon {
|
23
|
+
display: inline-block;
|
24
|
+
margin: 0 2px 0 0;
|
25
|
+
width: 16px;
|
26
|
+
}
|
27
|
+
.task-move {
|
28
|
+
display: inline-block;
|
29
|
+
width: 16px;
|
30
|
+
margin-right: 8px;
|
31
|
+
opacity: 0;
|
32
|
+
font-size: 16px;
|
33
|
+
text-align: right;
|
34
|
+
cursor: move;
|
35
|
+
color: #000;
|
36
|
+
&.show {
|
37
|
+
opacity: 1;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
.member-align-block {
|
41
|
+
display: block;
|
42
|
+
padding-left: 24px;
|
43
|
+
}
|
44
|
+
.sub-task-members {
|
45
|
+
width: 25%;
|
46
|
+
flex-shrink: 0;
|
47
|
+
}
|
48
|
+
.task-status-label {
|
49
|
+
opacity: 1;
|
50
|
+
transition: opacity 0.3s;
|
51
|
+
flex-shrink: 0;
|
52
|
+
margin-left: 50px;
|
53
|
+
&.hide {
|
54
|
+
opacity: 0;
|
106
55
|
}
|
107
56
|
}
|
108
57
|
.hover-operate-icon {
|
109
58
|
display: none;
|
110
59
|
position: absolute;
|
111
|
-
right:
|
112
|
-
|
60
|
+
right: 20px;
|
61
|
+
.ant-btn:first-child {
|
62
|
+
margin-left: 0;
|
63
|
+
}
|
113
64
|
&.show {
|
114
65
|
display: block;
|
115
66
|
}
|
116
67
|
}
|
117
|
-
.hide {
|
118
|
-
visibility: hidden;
|
119
|
-
}
|
120
|
-
}
|
121
|
-
.task-date-picker {
|
122
|
-
.ant-calendar-range .ant-calendar-footer-extra {
|
123
|
-
float: right;
|
124
|
-
// text-align: right;
|
125
|
-
}
|
126
68
|
}
|
127
69
|
}
|
@@ -1,28 +1,61 @@
|
|
1
1
|
import "./index.less";
|
2
|
-
import
|
2
|
+
import { Archive, Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
3
|
+
import { CommentDataIcon, DocumentDataIcon, UserQuickIcon, } from "@voplus/morpho-document/es/controls/data-icons";
|
4
|
+
import React, { useEffect, useState } from "react";
|
5
|
+
import { Skeleton, message } from "@voplus/antd";
|
3
6
|
import { useTask, useTaskStore } from "../../../../data/task";
|
7
|
+
import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
8
|
+
import DataIconBar from "@voplus/morpho-document/es/controls/DataIconBar";
|
9
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
10
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
4
11
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
5
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
|
-
import RichTextEditor from "@voplus/morpho-ui/es/controls/RichTextEditor";
|
7
|
-
import Scrollbars from "react-custom-scrollbars";
|
8
|
-
import { Skeleton } from "@voplus/antd";
|
9
12
|
import SubTaskList from "../SubTaskList";
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import
|
13
|
+
import TaskAnalyticsDataIcon from "../../reports/TaskAnalyticsDataIcon";
|
14
|
+
import TaskEstimatedTime from "../TaskEstimatedTime";
|
15
|
+
import TaskStatusLabel from "../../controls/TaskStatusLabel";
|
16
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
17
|
+
import { autorun } from "mobx";
|
18
|
+
import { observe } from "@voplus/morpho-ui";
|
19
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
13
20
|
const TaskPropertiesView = (props) => {
|
14
21
|
const id = props.id;
|
15
|
-
const
|
22
|
+
const { user } = useApplicationContext();
|
23
|
+
const task = useTask(id, { reload: false, includes: "tags" });
|
16
24
|
const taskStore = useTaskStore();
|
25
|
+
const [taskStatus, setTaskStatus] = useState(task.taskStatus);
|
17
26
|
const [loaded, setLoaded] = useState(true);
|
18
|
-
|
19
|
-
|
27
|
+
useEffect(() => autorun(() => setTaskStatus(task.taskStatus)), [task.taskStatus]);
|
28
|
+
return observe(() => (React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
29
|
+
React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, className: "task-properties-view-header", quickDataBar: React.createElement(React.Fragment, null,
|
30
|
+
React.createElement("div", null,
|
31
|
+
React.createElement(TaskEstimatedTime, { id: id, estimatedHours: task.estimatedHours || 0, startDate: task.startDate, dueDate: task.dueDate, editable: !task.readonly, className: "margin-right-10" }),
|
32
|
+
React.createElement(DataIconBar, null,
|
33
|
+
React.createElement(DocumentDataIcon, { id: id }),
|
34
|
+
React.createElement(CommentDataIcon, { id: id }),
|
35
|
+
React.createElement(UserQuickIcon, { id: id })),
|
36
|
+
React.createElement(TaskAnalyticsDataIcon, { id: id, className: "margin-left-10" })),
|
37
|
+
React.createElement(AvatarList, { organizationId: user.info.organizationId, editable: !task.readonly, multiple: true, list: [
|
38
|
+
...(task.members || []),
|
39
|
+
...(task.childMembers || [])
|
40
|
+
.filter((item) => !(task.members || []).some((member) => member.id === item.id))
|
41
|
+
.map((item) => ({
|
42
|
+
...item,
|
43
|
+
disabled: true,
|
44
|
+
})),
|
45
|
+
], onChange: (ids) => {
|
46
|
+
taskStore.edit(id, { data: { MemberIds: ids }, error: "message" });
|
47
|
+
} })), tools: React.createElement("div", { className: "tools-bar" },
|
48
|
+
React.createElement("div", null,
|
49
|
+
React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
|
50
|
+
React.createElement(Reload, { action: onReload }),
|
51
|
+
React.createElement(Open, { url: `/tasks/${id}` }),
|
52
|
+
React.createElement(Archive, null))),
|
53
|
+
React.createElement(TaskStatusLabel, { status: taskStatus, editable: !task.readonly, onChange: (TaskStatus) => onEdit(TaskStatus), className: "margin-top-10" })), descriptionVisible: false }),
|
20
54
|
React.createElement(DocumentTabs, { id: id, exclude: ["Task"], details: React.createElement("div", { className: "task-properties-view" },
|
21
|
-
React.createElement(
|
22
|
-
React.createElement(
|
23
|
-
|
24
|
-
|
25
|
-
React.createElement(SubTaskList, { parentId: id, readonly: task.status === "Readonly" }))) }))))));
|
55
|
+
task.loading ? (React.createElement("div", { className: "task-description" },
|
56
|
+
React.createElement(Skeleton, { active: true }),
|
57
|
+
" ")) : (React.createElement(DescriptionEditor, { id: id, description: task.description, readonly: task.readonly })),
|
58
|
+
React.createElement(SubTaskList, { parentId: id, readonly: task.status === "Readonly" })) }))))));
|
26
59
|
/** reload data */
|
27
60
|
function onReload() {
|
28
61
|
setLoaded(false);
|
@@ -30,6 +63,17 @@ const TaskPropertiesView = (props) => {
|
|
30
63
|
setLoaded(true);
|
31
64
|
}, 100);
|
32
65
|
}
|
66
|
+
/** task edit TaskStatus */
|
67
|
+
async function onEdit(TaskStatus) {
|
68
|
+
setTaskStatus(TaskStatus);
|
69
|
+
await taskStore.edit(id, {
|
70
|
+
data: { TaskStatus },
|
71
|
+
error: (error) => {
|
72
|
+
message.error(error.message);
|
73
|
+
setTaskStatus(task.taskStatus);
|
74
|
+
},
|
75
|
+
});
|
76
|
+
}
|
33
77
|
};
|
34
78
|
export default TaskPropertiesView;
|
35
79
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IA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