@voplus/morpho-workspace 1.1.0-dev059 → 1.2.0-dev.11
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 +7 -0
- package/es/components/AssignPeople/index.js +3 -2
- package/es/components/AssignPeople/index.js.map +1 -1
- package/es/components/TimeLog/index.js +3 -2
- package/es/components/TimeLog/index.js.map +1 -1
- package/es/controls/AssignButton/index.js +2 -2
- package/es/controls/AssignButton/index.js.map +1 -1
- package/es/controls/Corner/index.js +2 -1
- package/es/controls/Corner/index.js.map +1 -1
- 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 +5 -4
- package/es/controls/MoreOperateDropdown/index.js.map +1 -1
- package/es/controls/StickyAddButton/index.js +3 -2
- package/es/controls/StickyAddButton/index.js.map +1 -1
- package/es/controls/filters/AssigneeViewFilter/index.js +2 -2
- package/es/controls/filters/AssigneeViewFilter/index.js.map +1 -1
- package/es/controls/filters/AssigneeViewFilter/state.d.ts +1 -0
- package/es/controls/filters/AssigneeViewFilter/state.js +14 -3
- package/es/controls/filters/AssigneeViewFilter/state.js.map +1 -1
- package/es/controls/filters/DueDateFilter/index.js +2 -2
- package/es/controls/filters/DueDateFilter/index.js.map +1 -1
- package/es/controls/filters/DueDateFilter/state.js +8 -1
- package/es/controls/filters/DueDateFilter/state.js.map +1 -1
- package/es/controls/filters/StartDateFilter/index.js +2 -2
- package/es/controls/filters/StartDateFilter/index.js.map +1 -1
- package/es/controls/filters/StartDateFilter/state.js +8 -1
- package/es/controls/filters/StartDateFilter/state.js.map +1 -1
- package/es/controls/filters/TaskStatusFilter/index.js +2 -2
- package/es/controls/filters/TaskStatusFilter/index.js.map +1 -1
- package/es/controls/filters/TaskStatusFilter/state.d.ts +1 -0
- package/es/controls/filters/TaskStatusFilter/state.js +8 -2
- package/es/controls/filters/TaskStatusFilter/state.js.map +1 -1
- package/es/data/board/BoardColumnStore.js +6 -1
- package/es/data/board/BoardColumnStore.js.map +1 -1
- package/es/data/board/BoardStore.js +6 -1
- package/es/data/board/BoardStore.js.map +1 -1
- package/es/data/board/contexts/BoardListContextState/index.js +8 -1
- package/es/data/board/contexts/BoardListContextState/index.js.map +1 -1
- package/es/data/board/metas.js +6 -1
- package/es/data/board/metas.js.map +1 -1
- package/es/data/board/mock.js +21 -0
- package/es/data/board/mock.js.map +1 -1
- package/es/data/calendar/CalendarStore.js +26 -5
- package/es/data/calendar/CalendarStore.js.map +1 -1
- package/es/data/meeting/AgendaStore.js +6 -1
- package/es/data/meeting/AgendaStore.js.map +1 -1
- package/es/data/meeting/MeetingStore.js +12 -2
- package/es/data/meeting/MeetingStore.js.map +1 -1
- package/es/data/meeting/metas.js +12 -2
- package/es/data/meeting/metas.js.map +1 -1
- package/es/data/task/TaskStore.js +6 -1
- package/es/data/task/TaskStore.js.map +1 -1
- package/es/data/task/interfaces.d.ts +2 -1
- package/es/data/task/metas.js +6 -1
- package/es/data/task/metas.js.map +1 -1
- package/es/modules/board/components/Board/index.js +18 -12
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/board/components/Board/state.js +164 -43
- package/es/modules/board/components/Board/state.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.js +12 -20
- package/es/modules/board/components/BoardColumn/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.less +2 -0
- package/es/modules/board/components/BoardColumn/state.d.ts +5 -3
- package/es/modules/board/components/BoardColumn/state.js +157 -42
- package/es/modules/board/components/BoardColumn/state.js.map +1 -1
- package/es/modules/board/components/BoardPropertiesView/index.js +2 -2
- package/es/modules/board/components/BoardPropertiesView/index.js.map +1 -1
- package/es/modules/board/components/SubDocument/index.js +2 -2
- package/es/modules/board/components/SubDocument/index.js.map +1 -1
- package/es/modules/board/components/SubDocumentList/index.js +31 -17
- package/es/modules/board/components/SubDocumentList/index.js.map +1 -1
- package/es/modules/board/components/SubDocumentList/state.d.ts +1 -0
- package/es/modules/board/components/SubDocumentList/state.js +41 -4
- package/es/modules/board/components/SubDocumentList/state.js.map +1 -1
- package/es/modules/board/pages/BoardViewList/index.js +9 -9
- package/es/modules/board/pages/BoardViewList/index.js.map +1 -1
- package/es/modules/board/pages/BoardViewList/state.d.ts +1 -0
- package/es/modules/board/pages/BoardViewList/state.js +10 -1
- package/es/modules/board/pages/BoardViewList/state.js.map +1 -1
- package/es/modules/calendar/components/ActionCard/index.js +2 -2
- package/es/modules/calendar/components/ActionCard/index.js.map +1 -1
- package/es/modules/calendar/components/CalendarEventContent/index.js +2 -2
- package/es/modules/calendar/components/CalendarEventContent/index.js.map +1 -1
- package/es/modules/calendar/components/CalendarMenu/index.js +3 -2
- package/es/modules/calendar/components/CalendarMenu/index.js.map +1 -1
- package/es/modules/calendar/pages/CalendarMonth/index.js +13 -14
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -1
- package/es/modules/calendar/pages/CalendarMonth/state.d.ts +3 -0
- package/es/modules/calendar/pages/CalendarMonth/state.js +35 -3
- package/es/modules/calendar/pages/CalendarMonth/state.js.map +1 -1
- package/es/modules/meeting/MeetingRoutes.js +1 -1
- package/es/modules/meeting/MeetingRoutes.js.map +1 -1
- 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 +18 -29
- 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 +2 -2
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js +94 -24
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +47 -26
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +8 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.d.ts +8 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js +111 -13
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.js +10 -31
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.js.map +1 -1
- 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 +4 -3
- package/es/modules/meeting/components/AgendaList/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/state.d.ts +1 -0
- package/es/modules/meeting/components/AgendaList/state.js +14 -3
- package/es/modules/meeting/components/AgendaList/state.js.map +1 -1
- package/es/modules/meeting/components/MeetingDescription/index.js +2 -2
- package/es/modules/meeting/components/MeetingDescription/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.js +3 -3
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.js +23 -22
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/state.d.ts +1 -2
- package/es/modules/meeting/components/MeetingItem/state.js +32 -9
- 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 +2 -2
- package/es/modules/meeting/components/MeetingList/index.js +11 -5
- package/es/modules/meeting/components/MeetingList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingPropertiesView/index.js +2 -2
- package/es/modules/meeting/components/MeetingPropertiesView/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js +2 -2
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingTaskList/index.js +3 -3
- package/es/modules/meeting/components/MeetingTaskList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js +5 -9
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js +5 -3
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js +21 -24
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- 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.js +2 -2
- package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingListView/index.js +3 -3
- package/es/modules/meeting/pages/MeetingListView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingPrintView/index.js +2 -2
- package/es/modules/meeting/pages/MeetingPrintView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.js +9 -8
- package/es/modules/meeting/pages/MeetingTabView/index.js.map +1 -1
- package/es/modules/member/pages/MemberListView/index.js +5 -4
- package/es/modules/member/pages/MemberListView/index.js.map +1 -1
- package/es/modules/menus/components/Access/index.js +3 -2
- package/es/modules/menus/components/Access/index.js.map +1 -1
- package/es/modules/menus/components/Account/index.js +3 -2
- package/es/modules/menus/components/Account/index.js.map +1 -1
- package/es/modules/menus/components/AddUsers/index.js +3 -2
- package/es/modules/menus/components/AddUsers/index.js.map +1 -1
- package/es/modules/menus/components/Status/index.js +3 -2
- package/es/modules/menus/components/Status/index.js.map +1 -1
- package/es/modules/menus/components/UsersList/index.js +7 -6
- package/es/modules/menus/components/UsersList/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/Company/index.js +3 -2
- package/es/modules/menus/pages/ListOptions/Company/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/Teams/index.js +5 -6
- 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 +9 -8
- package/es/modules/menus/pages/ListOptions/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.js +12 -7
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- 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.js +8 -4
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/state.d.ts +1 -0
- package/es/modules/tasks/components/SubTaskList/state.js +44 -8
- package/es/modules/tasks/components/SubTaskList/state.js.map +1 -1
- package/es/modules/tasks/components/TaskDescription/index.js +2 -2
- package/es/modules/tasks/components/TaskDescription/index.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/index.js +21 -12
- package/es/modules/tasks/components/TaskEstimatedTime/index.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/state.js +102 -40
- package/es/modules/tasks/components/TaskEstimatedTime/state.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +9 -10
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +25 -55
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/state.d.ts +7 -5
- package/es/modules/tasks/components/TaskItem/state.js +157 -33
- package/es/modules/tasks/components/TaskItem/state.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/subTaskItem.less +1 -10
- package/es/modules/tasks/components/TaskPropertiesView/index.js +7 -8
- package/es/modules/tasks/components/TaskPropertiesView/index.js.map +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js +4 -4
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js.map +1 -1
- 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 +0 -1
- package/es/modules/tasks/pages/TaskList/index.js +6 -5
- package/es/modules/tasks/pages/TaskList/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.js +13 -13
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.less +1 -1
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/index.js +11 -9
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/index.js.map +1 -1
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/state.d.ts +1 -3
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/state.js +44 -15
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/state.js.map +1 -1
- package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.js +3 -2
- package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.js.map +1 -1
- package/es/modules/tasks/reports/TaskSummaryCard/index.js +5 -5
- package/es/modules/tasks/reports/TaskSummaryCard/index.js.map +1 -1
- package/es/modules/tasks/reports/TaskSummaryCard/state.d.ts +1 -1
- package/es/modules/tasks/reports/TaskSummaryCard/state.js +20 -6
- package/es/modules/tasks/reports/TaskSummaryCard/state.js.map +1 -1
- package/es/modules/user/pages/Positions/index.js +6 -5
- package/es/modules/user/pages/Positions/index.js.map +1 -1
- package/es/modules/workspaces/components/Access/index.js +3 -2
- package/es/modules/workspaces/components/Access/index.js.map +1 -1
- package/es/modules/workspaces/components/Account/index.js +3 -2
- package/es/modules/workspaces/components/Account/index.js.map +1 -1
- package/es/modules/workspaces/components/AddUsers/index.js +3 -2
- package/es/modules/workspaces/components/AddUsers/index.js.map +1 -1
- package/es/modules/workspaces/components/ListHeard/index.js +3 -2
- package/es/modules/workspaces/components/ListHeard/index.js.map +1 -1
- package/es/modules/workspaces/components/Status/index.js +3 -2
- package/es/modules/workspaces/components/Status/index.js.map +1 -1
- package/es/modules/workspaces/components/UsersList/index.js +7 -6
- package/es/modules/workspaces/components/UsersList/index.js.map +1 -1
- package/es/modules/workspaces/pages/BoardView/index.js +5 -5
- package/es/modules/workspaces/pages/BoardView/index.js.map +1 -1
- package/es/modules/workspaces/pages/ListView/index.js +3 -2
- package/es/modules/workspaces/pages/ListView/index.js.map +1 -1
- package/es/modules/workspaces/pages/Users/index.js +4 -3
- package/es/modules/workspaces/pages/Users/index.js.map +1 -1
- package/es/pages/Project/ProjectDefaultView/index.js +2 -2
- package/es/pages/Project/ProjectDefaultView/index.js.map +1 -1
- package/es/pages/Project/data/ProjectStore.js +6 -1
- package/es/pages/Project/data/ProjectStore.js.map +1 -1
- package/es/pages/Space/components/Documents/index.js +2 -2
- package/es/pages/Space/components/Documents/index.js.map +1 -1
- package/es/pages/Space/components/Notes/ColorSelect/index.js +2 -1
- package/es/pages/Space/components/Notes/ColorSelect/index.js.map +1 -1
- package/es/pages/Space/components/Notes/NewNoteDialog/index.js +3 -2
- package/es/pages/Space/components/Notes/NewNoteDialog/index.js.map +1 -1
- package/es/pages/Space/components/Notes/TextNoteCard/index.js +7 -6
- package/es/pages/Space/components/Notes/TextNoteCard/index.js.map +1 -1
- package/es/pages/Space/components/Notes/TextNoteCard/state.d.ts +1 -0
- package/es/pages/Space/components/Notes/TextNoteCard/state.js +20 -4
- package/es/pages/Space/components/Notes/TextNoteCard/state.js.map +1 -1
- package/es/pages/Space/components/Notes/index.js +2 -2
- package/es/pages/Space/components/Notes/index.js.map +1 -1
- package/es/pages/Space/components/Projects/index.js +2 -2
- package/es/pages/Space/components/Projects/index.js.map +1 -1
- package/es/pages/Space/components/Tasks/index.js +2 -2
- package/es/pages/Space/components/Tasks/index.js.map +1 -1
- package/es/pages/Space/components/Tasks/index.less +1 -1
- package/es/pages/Space/components/Works/index.js +2 -2
- package/es/pages/Space/components/Works/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/index.js +5 -19
- package/es/pages/Space/pages/MySpace/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/state.d.ts +3 -0
- package/es/pages/Space/pages/MySpace/state.js +32 -2
- package/es/pages/Space/pages/MySpace/state.js.map +1 -1
- package/es/pages/Work/components/NewWorkDialog/index.js +3 -2
- package/es/pages/Work/components/NewWorkDialog/index.js.map +1 -1
- package/es/pages/Work/components/WorkCheckList/index.js +2 -2
- package/es/pages/Work/components/WorkCheckList/index.js.map +1 -1
- package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/index.js +2 -2
- package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/index.js.map +1 -1
- package/es/pages/Work/components/WorkSummaryCards/WorkBlockingsCard/index.js +2 -2
- package/es/pages/Work/components/WorkSummaryCards/WorkBlockingsCard/index.js.map +1 -1
- package/es/pages/Work/components/WorkSummaryCards/WorkDueCard/index.js +2 -2
- package/es/pages/Work/components/WorkSummaryCards/WorkDueCard/index.js.map +1 -1
- package/es/pages/Work/components/WorkSummaryCards/index.js +11 -9
- package/es/pages/Work/components/WorkSummaryCards/index.js.map +1 -1
- package/es/pages/Work/components/WorkSummaryCards/state.d.ts +1 -0
- package/es/pages/Work/components/WorkSummaryCards/state.js +26 -4
- package/es/pages/Work/components/WorkSummaryCards/state.js.map +1 -1
- package/es/pages/Work/components/WorkTrail/index.js +2 -2
- package/es/pages/Work/components/WorkTrail/index.js.map +1 -1
- package/es/pages/Work/data/WorkStore.js +6 -1
- package/es/pages/Work/data/WorkStore.js.map +1 -1
- package/es/pages/Work/pages/WorkDefaultView/index.js +6 -5
- package/es/pages/Work/pages/WorkDefaultView/index.js.map +1 -1
- package/es/pages/Work/pages/WorkDefaultView/state.d.ts +1 -0
- package/es/pages/Work/pages/WorkDefaultView/state.js +8 -2
- package/es/pages/Work/pages/WorkDefaultView/state.js.map +1 -1
- package/es/pages/WorkType/WorkTypeCheckList/index.js +2 -2
- package/es/pages/WorkType/WorkTypeCheckList/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeDefaultView/index.js +4 -3
- package/es/pages/WorkType/WorkTypeDefaultView/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeDetail/index.js +14 -11
- package/es/pages/WorkType/WorkTypeDetail/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeDetail/state.d.ts +1 -0
- package/es/pages/WorkType/WorkTypeDetail/state.js +21 -3
- package/es/pages/WorkType/WorkTypeDetail/state.js.map +1 -1
- package/es/pages/WorkType/WorkTypePropertiesView/index.js +2 -2
- package/es/pages/WorkType/WorkTypePropertiesView/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeSelect/index.js +2 -2
- package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
- package/es/pages/WorkType/data/WorkTypeStore.js +18 -3
- package/es/pages/WorkType/data/WorkTypeStore.js.map +1 -1
- package/package.json +31 -28
- package/es/modules/tasks/pages/TaskList/index.less +0 -0
@@ -13,7 +13,7 @@ const MeetingRoutes = () => {
|
|
13
13
|
const Routes = {
|
14
14
|
MeetingList: {
|
15
15
|
route: "/meetings/:id?",
|
16
|
-
tabPattern: RegExp("/meetings"),
|
16
|
+
tabPattern: RegExp("/meetings/[^/]+"),
|
17
17
|
getUrl: (id) => `/meetings${id ? "/" + id : ""}`,
|
18
18
|
component: MeetingListView,
|
19
19
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MeetingRoutes.js","sourceRoot":"","sources":["../../../src/modules/meeting/MeetingRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,eAAe,MAAM,yBAAyB,CAAC;AACtD,OAAO,gBAAgB,MAAM,0BAA0B,CAAC;AACxD,OAAO,cAAc,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,aAAa,GAAG,GAAG,EAAE;IAC1B,OAAO,CACN,oBAAC,MAAM;QACN,oBAAC,KAAK,IACL,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,KAAK,EAC9B,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,SAAS,GACtC;QACF,oBAAC,KAAK,IAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,GAAI;QACvF,oBAAC,KAAK,IACL,IAAI,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,EAC/B,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,SAAS,GACvC,CACM,CACT,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG;IACd,WAAW,EAAE;QACZ,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,MAAM,CAAC,
|
1
|
+
{"version":3,"file":"MeetingRoutes.js","sourceRoot":"","sources":["../../../src/modules/meeting/MeetingRoutes.tsx"],"names":[],"mappings":"AAAA,OA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c;KACzB;IACD,YAAY,EAAE;QACb,KAAK,EAAE,oBAAoB;QAC3B,UAAU,EAAE,MAAM,CAAC,gBAAgB,CAAC;QACpC,MAAM,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,kBAAkB,EAAE,EAAE;QAC9C,SAAS,EAAE,gBAAgB;KAC3B;IAED,SAAS,EAAE,GAAG,EAAE;QACf,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,SAAS;YACf,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU;YACzC,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,eAAe;YACrB,cAAc,EAAE,MAAM,CAAC,YAAY,CAAC,UAAU;YAC9C,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,cAAc;YACpB,cAAc,EAAE,MAAM,CAAC,WAAW,CAAC,UAAU;YAC7C,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import classnames from "classnames";
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
3
4
|
import styles from "./index.less";
|
4
5
|
export default (props) => {
|
5
|
-
return (React.createElement("div", { className: classnames(styles["agenda-List-header"], props.className) },
|
6
|
+
return observe(() => (React.createElement("div", { className: classnames(styles["agenda-List-header"], props.className) },
|
6
7
|
React.createElement("div", null, "Agenda"),
|
7
8
|
props.preview && (React.createElement("div", { className: "agenda-task-type" },
|
8
9
|
React.createElement("span", null, "Due Date"),
|
9
10
|
React.createElement("span", null, "Priority"),
|
10
|
-
React.createElement("span", null, "Assign")))));
|
11
|
+
React.createElement("span", null, "Assign"))))));
|
11
12
|
};
|
12
13
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/meeting/components/AgendaList/AgendaHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/meeting/components/AgendaList/AgendaHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,eAAe,CAAC,KAAgD,EAAE,EAAE;IACnE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxE,0CAAiB;QAChB,KAAK,CAAC,OAAO,IAAI,CACjB,6BAAK,SAAS,EAAC,kBAAkB;YAChC,6CAAqB;YACrB,6CAAqB;YACrB,2CAAmB,CACd,CACN,CACI,CACN,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import "../../index.less";
|
3
3
|
import { AgendaItemProps } from "./state";
|
4
|
-
declare const
|
5
|
-
export default
|
4
|
+
declare const TaskList: (props: AgendaItemProps) => JSX.Element;
|
5
|
+
export default TaskList;
|
@@ -1,43 +1,32 @@
|
|
1
1
|
import "../../index.less";
|
2
2
|
import { State } from "./state";
|
3
|
-
import {
|
3
|
+
import { Empty, Skeleton } from "@voplus/antd";
|
4
|
+
import { useTaskListEffect } from "../../../../../../../data/task";
|
5
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
4
6
|
import React, { useEffect, useState } from "react";
|
7
|
+
import { useAutoUpdateListData, useDocumentStore } from "@voplus/morpho-document-core";
|
5
8
|
import NewTaskForm from "../../../../../../tasks/components/NewTaskForm";
|
6
9
|
import SortDnD from "@voplus/morpho-ui/es/controls/SortDnD";
|
7
10
|
import SubTaskItem from "../../../../../../tasks/components/TaskItem/SubTaskItem";
|
8
|
-
import {
|
9
|
-
|
10
|
-
import { useTaskListEffect } from "../../../../../../../data/task";
|
11
|
-
const AgendaItem = (props) => {
|
11
|
+
import { observe } from "@voplus/morpho-ui";
|
12
|
+
const TaskList = (props) => {
|
12
13
|
const { id, editable } = props;
|
13
14
|
const documents = useDocumentStore();
|
14
15
|
const [state] = useState(new State(documents));
|
15
16
|
state.props = props;
|
16
17
|
useEffect(state.subscribeOnTaskCreateCallback, []);
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
Page: { Page: 1, PageSize: 500 },
|
23
|
-
});
|
24
|
-
const moveAfter = async (id, afterId, list) => {
|
25
|
-
await documents.moveAfter(id, afterId);
|
26
|
-
state.tasks = list;
|
27
|
-
};
|
28
|
-
const onAddTask = () => {
|
29
|
-
state.addAble = !state.addAble;
|
30
|
-
state.showMore = false;
|
31
|
-
};
|
32
|
-
useEffect(() => {
|
33
|
-
state.loading = true;
|
34
|
-
state.showMore = false;
|
18
|
+
const list = useCreateListDataState({
|
19
|
+
filterDefaults: {
|
20
|
+
includes: "tags",
|
21
|
+
filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
|
22
|
+
},
|
35
23
|
}, [id]);
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
React.createElement(
|
24
|
+
useTaskListEffect(list, (result) => list.union(result), list.filters.options);
|
25
|
+
useAutoUpdateListData(list, (d) => d.parentId === id && d.type === "Task");
|
26
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
27
|
+
list.loading ? (React.createElement(Skeleton, { active: true })) : !!list.data.length ? (React.createElement(SortDnD, { list: list.data, moveAfter: (id, afterId, list) => state.moveAfter(id, afterId, list), text: (task, index, connectDragSource) => (React.createElement(SubTaskItem, { key: task.id, id: task.id })) })) : editable ? (React.createElement(React.Fragment, null)) : (React.createElement("div", { className: "agenda-task-nothing" },
|
28
|
+
React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE, description: false }))),
|
29
|
+
editable && (React.createElement(NewTaskForm, { simple: true, parentId: id, block: true, onSave: state.onAddTask, onCancel: state.onAddTask })))));
|
41
30
|
};
|
42
|
-
export default
|
31
|
+
export default TaskList;
|
43
32
|
//# sourceMappingURL=index.js.map
|
package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAmB,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAmB,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAU,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAS,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,WAAW,MAA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,CACnB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CACxB,oBAAC,OAAO,IACP,IAAI,EAAE,IAAI,CAAC,IAAW,EACtB,SAAS,EAAE,CAAC,EAAU,EAAE,OAAe,EAAE,IAAW,EAAE,EAAE,CACvD,KAAK,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,EAEnC,IAAI,EAAE,CAAC,IAAW,EAAE,KAAa,EAAE,iBAAsB,EAAE,EAAE,CAAC,CAC7D,oBAAC,WAAW,IACX,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,EAAE,EAAE,IAAI,CAAC,EAAE,GAIV,CACF,GACA,CACF,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CACd,oBAAC,KAAK,CAAC,QAAQ,OAAG,CAClB,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,qBAAqB;YACnC,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,EAAE,WAAW,EAAE,KAAK,GAAI,CAC7D,CACN;QACA,QAAQ,IAAI,CACZ,oBAAC,WAAW,IACX,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,EAAE,EACZ,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,KAAK,CAAC,SAAS,EACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,GACxB,CACF,CACyB,CAC3B,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,QAAQ,CAAC"}
|
@@ -2,7 +2,6 @@ import { DocumentStore, IDocument } from "@voplus/morpho-document-core";
|
|
2
2
|
import { ITask } from "../../../../../../../data/task";
|
3
3
|
export declare type AgendaItemProps = {
|
4
4
|
id: string;
|
5
|
-
name: string;
|
6
5
|
editable?: boolean;
|
7
6
|
onCancel?: () => void;
|
8
7
|
};
|
@@ -13,8 +12,9 @@ export declare class State {
|
|
13
12
|
tasks: ITask[];
|
14
13
|
addAble: boolean;
|
15
14
|
loading: boolean;
|
16
|
-
showMore: boolean;
|
17
15
|
onTaskCreated: (s: DocumentStore, t: IDocument) => void;
|
18
16
|
onTaskDeleted: (s: DocumentStore, t: IDocument) => void;
|
19
17
|
subscribeOnTaskCreateCallback: () => () => void;
|
18
|
+
onAddTask: () => void;
|
19
|
+
moveAfter: (id: string, afterId: string, list: any[]) => Promise<void>;
|
20
20
|
}
|
@@ -1,29 +1,87 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { observable } from "mobx";
|
2
|
+
import { action, makeObservable, observable } from "mobx";
|
3
3
|
export class State {
|
4
4
|
constructor(_store) {
|
5
|
-
this
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
Object.defineProperty(this, "_store", {
|
6
|
+
enumerable: true,
|
7
|
+
configurable: true,
|
8
|
+
writable: true,
|
9
|
+
value: _store
|
10
|
+
});
|
11
|
+
Object.defineProperty(this, "props", {
|
12
|
+
enumerable: true,
|
13
|
+
configurable: true,
|
14
|
+
writable: true,
|
15
|
+
value: void 0
|
16
|
+
});
|
17
|
+
Object.defineProperty(this, "tasks", {
|
18
|
+
enumerable: true,
|
19
|
+
configurable: true,
|
20
|
+
writable: true,
|
21
|
+
value: []
|
22
|
+
});
|
23
|
+
Object.defineProperty(this, "addAble", {
|
24
|
+
enumerable: true,
|
25
|
+
configurable: true,
|
26
|
+
writable: true,
|
27
|
+
value: false
|
28
|
+
});
|
29
|
+
Object.defineProperty(this, "loading", {
|
30
|
+
enumerable: true,
|
31
|
+
configurable: true,
|
32
|
+
writable: true,
|
33
|
+
value: true
|
34
|
+
});
|
35
|
+
Object.defineProperty(this, "onTaskCreated", {
|
36
|
+
enumerable: true,
|
37
|
+
configurable: true,
|
38
|
+
writable: true,
|
39
|
+
value: (s, t) => {
|
40
|
+
if (t.parentId === this.props.id && t.type == "Task") {
|
41
|
+
this.tasks.push(t);
|
42
|
+
}
|
13
43
|
}
|
14
|
-
};
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
44
|
+
});
|
45
|
+
Object.defineProperty(this, "onTaskDeleted", {
|
46
|
+
enumerable: true,
|
47
|
+
configurable: true,
|
48
|
+
writable: true,
|
49
|
+
value: (s, t) => {
|
50
|
+
if (t.type == "Task")
|
51
|
+
this.tasks = this.tasks.filter((task) => task.id !== t.id);
|
52
|
+
}
|
53
|
+
});
|
54
|
+
Object.defineProperty(this, "subscribeOnTaskCreateCallback", {
|
55
|
+
enumerable: true,
|
56
|
+
configurable: true,
|
57
|
+
writable: true,
|
58
|
+
value: () => {
|
59
|
+
this._store.DocumentCreatedEvent.subscribe(this.onTaskCreated);
|
60
|
+
this._store.DocumentDeletedEvent.subscribe(this.onTaskDeleted);
|
61
|
+
return () => {
|
62
|
+
this._store.DocumentCreatedEvent.unsubscribe(this.onTaskCreated);
|
63
|
+
this._store.DocumentDeletedEvent.unsubscribe(this.onTaskDeleted);
|
64
|
+
};
|
65
|
+
}
|
66
|
+
});
|
67
|
+
Object.defineProperty(this, "onAddTask", {
|
68
|
+
enumerable: true,
|
69
|
+
configurable: true,
|
70
|
+
writable: true,
|
71
|
+
value: () => {
|
72
|
+
this.addAble = !this.addAble;
|
73
|
+
}
|
74
|
+
});
|
75
|
+
Object.defineProperty(this, "moveAfter", {
|
76
|
+
enumerable: true,
|
77
|
+
configurable: true,
|
78
|
+
writable: true,
|
79
|
+
value: async (id, afterId, list) => {
|
80
|
+
await this._store.moveAfter(id, afterId);
|
81
|
+
// this.tasks = list;
|
82
|
+
}
|
83
|
+
});
|
84
|
+
makeObservable(this);
|
27
85
|
}
|
28
86
|
}
|
29
87
|
__decorate([
|
@@ -36,6 +94,18 @@ __decorate([
|
|
36
94
|
observable
|
37
95
|
], State.prototype, "loading", void 0);
|
38
96
|
__decorate([
|
39
|
-
|
40
|
-
], State.prototype, "
|
97
|
+
action
|
98
|
+
], State.prototype, "onTaskCreated", void 0);
|
99
|
+
__decorate([
|
100
|
+
action
|
101
|
+
], State.prototype, "onTaskDeleted", void 0);
|
102
|
+
__decorate([
|
103
|
+
action
|
104
|
+
], State.prototype, "subscribeOnTaskCreateCallback", void 0);
|
105
|
+
__decorate([
|
106
|
+
action
|
107
|
+
], State.prototype, "onAddTask", void 0);
|
108
|
+
__decorate([
|
109
|
+
action
|
110
|
+
], State.prototype, "moveAfter", void 0);
|
41
111
|
//# sourceMappingURL=state.js.map
|
package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAU1D,MAAM,OAAO,KAAK;IAEjB,YAA2B,MAAqB;;;;;mBAArB;;QAD3B;;;;;WAA8B;QAKlB;;;;mBAAwB,EAAE;WAAC;QAC3B;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAAiB,IAAI;WAAC;QAGlC;;;;mBAAuB,CAAC,CAAgB,EAAE,CAAY,EAAE,EAAE;gBACzD,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC,IAAI,IAAI,MAAM,EAAE;oBACrD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAU,CAAC,CAAC;iBAC5B;YACF,CAAC;WAAC;QAGF;;;;mBAAuB,CAAC,CAAgB,EAAE,CAAY,EAAE,EAAE;gBACzD,IAAI,CAAC,CAAC,IAAI,I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|
import { State } from "./state";
|
3
|
+
import { Button, Checkbox, Modal, Row, Tooltip } from "@voplus/antd";
|
3
4
|
import React, { useEffect, useState } from "react";
|
4
|
-
import { faAngleRight, faBars } from "@fortawesome/pro-light-svg-icons";
|
5
|
-
import { faClipboard,
|
5
|
+
import { faAngleDown, faAngleRight, faBars, faCommentAltEdit, } from "@fortawesome/pro-light-svg-icons";
|
6
|
+
import { faClipboard, faTasksAlt } from "@fortawesome/pro-duotone-svg-icons";
|
6
7
|
import { useAgenda, useAgendaStore } from "../../../../../data/meeting";
|
7
|
-
import { Checkbox } from "@voplus/antd";
|
8
|
-
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
9
8
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
10
9
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
10
|
+
import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
|
11
11
|
import TaskList from "./components/TaskList";
|
12
|
+
import { TextEditor } from "@voplus/morpho-text";
|
12
13
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
13
14
|
import classnames from "classnames";
|
14
|
-
import {
|
15
|
+
import { observe } from "@voplus/morpho-ui";
|
16
|
+
import { runInAction } from "mobx";
|
15
17
|
const AgendaItem = (props) => {
|
16
18
|
const { id, index, multiple, connectDragSource, preview, reload } = props;
|
17
19
|
const agendaStore = useAgendaStore();
|
18
20
|
const [state] = useState(new State(agendaStore));
|
19
|
-
|
20
|
-
|
21
|
-
// state.foldable = (state.editable && state.foldable) || !state.foldable;
|
22
|
-
state.foldable = !state.foldable;
|
23
|
-
};
|
21
|
+
const agenda = useAgenda(id, { reload: !!reload });
|
22
|
+
state.update(agenda);
|
24
23
|
useEffect(() => {
|
25
|
-
|
26
|
-
state.editable
|
24
|
+
runInAction(() => {
|
25
|
+
if (multiple && state.editable)
|
26
|
+
state.editable = false;
|
27
|
+
});
|
27
28
|
}, [multiple]);
|
28
29
|
useEffect(() => {
|
29
|
-
state.
|
30
|
+
runInAction(() => (state.expand = !!props.preview));
|
30
31
|
}, [preview]);
|
31
|
-
|
32
|
+
// useEffect(() => state.onAddTask(false), [id]);
|
33
|
+
return observe(() => (React.createElement("div", { className: "agenda-item-view" },
|
32
34
|
React.createElement("div", { className: "agenda-item-header" },
|
33
35
|
multiple ? (React.createElement(Checkbox, { value: id, className: "select-checkbox" })) : (React.createElement(React.Fragment, null,
|
34
36
|
!multiple &&
|
@@ -37,22 +39,41 @@ const AgendaItem = (props) => {
|
|
37
39
|
connectDragSource(React.createElement("span", { className: classnames("sort-icon-move", { show: state.editable }) },
|
38
40
|
React.createElement(FAIcon, { icon: faBars, color: "#222" }))),
|
39
41
|
React.createElement("span", { className: classnames("agenda-item-index", { show: multiple || state.readonly }) }, `${(index || 0) + 1}.`))),
|
40
|
-
React.createElement(DocumentHeader, { id: id, clickNameEffect: "edit", autoSaveName: true, flagVisible: false, statusVisible: false, preVisible: false, tagsVisible: false, tools: React.createElement(ToolBar, { id: id }
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
React.createElement(
|
42
|
+
React.createElement(DocumentHeader, { id: id, clickNameEffect: "edit", autoSaveName: true, flagVisible: false, statusVisible: false, preVisible: false, tagsVisible: false, tools: React.createElement(ToolBar, { id: id },
|
43
|
+
React.createElement(Tooltip, { title: "Edit agenda description" },
|
44
|
+
React.createElement(Button, { size: "small", shape: "circle", onClick: () => runInAction(() => {
|
45
|
+
state.description = agenda.description || "";
|
46
|
+
state.desVisible = true;
|
47
|
+
}) },
|
48
|
+
React.createElement(FAIcon, { icon: faCommentAltEdit, color: "#666" })))), quickDataBarVisible: false }),
|
49
|
+
React.createElement("span", { onClick: onFoldIconClick, className: classnames("collapse-arrow", { "collapse-active": !state.expand }) },
|
50
|
+
React.createElement(FAIcon, { icon: state.expand ? faAngleDown : faAngleRight }))),
|
51
|
+
state.expand && (React.createElement("div", { className: classnames("agenda-item-box", { "collapse-inactive": state.expand }) },
|
48
52
|
React.createElement("div", { className: "section-title" },
|
49
53
|
React.createElement(FAIcon, { icon: faClipboard, color: "#666" }),
|
50
54
|
"Agenda Minutes"),
|
55
|
+
React.createElement(TextEditor, { id: id, proseMirrorProps: {
|
56
|
+
readonly: state.textOnly,
|
57
|
+
onClick: () => (state.textOnly = state.readonly),
|
58
|
+
onBlur: () => (state.textOnly = true),
|
59
|
+
showNoContent: true,
|
60
|
+
className: classnames({ "agenda-minutes": !state.textOnly }),
|
61
|
+
} }),
|
51
62
|
React.createElement("div", { className: "agenda-task-list-view" },
|
52
|
-
React.createElement(
|
53
|
-
React.createElement(
|
54
|
-
|
55
|
-
|
63
|
+
React.createElement(Row, { justify: "space-between", align: "middle" },
|
64
|
+
React.createElement("div", { className: "section-title" },
|
65
|
+
React.createElement(FAIcon, { icon: faTasksAlt, color: "#666" }),
|
66
|
+
" Action Tasks"),
|
67
|
+
!state.readonly && (React.createElement(Button, { type: state.addAble ? "text" : "link", onClick: () => state.onAddTask(!state.addAble), style: { padding: 0, fontStyle: "italic" } }, state.addAble ? "Cancel" : "Add Task"))),
|
68
|
+
React.createElement(TaskList, { id: id, editable: state.addAble && !state.readonly })))),
|
69
|
+
state.desVisible && (React.createElement(Modal, { title: `${agenda.name} Description`, visible: true, bodyStyle: { padding: "0", height: "50vh" }, okText: "Save", onCancel: () => runInAction(() => (state.desVisible = false)), confirmLoading: state.loading, onOk: () => state.onEdit({
|
70
|
+
Description: state.description,
|
71
|
+
}) },
|
72
|
+
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, defaultHtml: state.description, scroll: true, className: "agenda-description_mirror", onChange: (opt) => runInAction(() => (state.description =
|
73
|
+
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML)) }))))));
|
74
|
+
function onFoldIconClick() {
|
75
|
+
state.toggleExpand();
|
76
|
+
}
|
56
77
|
};
|
57
78
|
export default AgendaItem;
|
58
79
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAmB,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAmB,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,WAAW,EACX,YAAY,EACZ,MAAM,EACN,gBAAgB,GAChB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE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F,CAAC,CAAC;AACF,eAAe,UAAU,CAAC"}
|
@@ -13,13 +13,20 @@ export declare class State {
|
|
13
13
|
agenda: IAgenda;
|
14
14
|
name: string;
|
15
15
|
description: string;
|
16
|
-
|
16
|
+
expand: boolean;
|
17
17
|
editable: boolean;
|
18
18
|
loading: boolean;
|
19
19
|
textOnly: boolean;
|
20
20
|
/** is hover item */
|
21
21
|
isHover: boolean;
|
22
|
+
/** */
|
23
|
+
addAble: boolean;
|
24
|
+
/** visible of edit description */
|
25
|
+
desVisible: boolean;
|
22
26
|
constructor(agendaStore: AgendaStore);
|
23
27
|
get readonly(): boolean;
|
28
|
+
update(agenda: IAgenda): void;
|
24
29
|
onEdit: (option: EditAgendaOptions) => Promise<void>;
|
30
|
+
toggleExpand(): void;
|
31
|
+
onAddTask: (addAble: boolean) => void;
|
25
32
|
}
|
@@ -1,23 +1,106 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { action, computed, observable } from "mobx";
|
2
|
+
import { action, computed, makeObservable, observable } from "mobx";
|
3
3
|
export class State {
|
4
4
|
constructor(agendaStore) {
|
5
|
-
this
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
this
|
5
|
+
Object.defineProperty(this, "agendaStore", {
|
6
|
+
enumerable: true,
|
7
|
+
configurable: true,
|
8
|
+
writable: true,
|
9
|
+
value: agendaStore
|
10
|
+
});
|
11
|
+
Object.defineProperty(this, "agenda", {
|
12
|
+
enumerable: true,
|
13
|
+
configurable: true,
|
14
|
+
writable: true,
|
15
|
+
value: void 0
|
16
|
+
});
|
17
|
+
Object.defineProperty(this, "name", {
|
18
|
+
enumerable: true,
|
19
|
+
configurable: true,
|
20
|
+
writable: true,
|
21
|
+
value: ""
|
22
|
+
});
|
23
|
+
Object.defineProperty(this, "description", {
|
24
|
+
enumerable: true,
|
25
|
+
configurable: true,
|
26
|
+
writable: true,
|
27
|
+
value: ""
|
28
|
+
});
|
29
|
+
Object.defineProperty(this, "expand", {
|
30
|
+
enumerable: true,
|
31
|
+
configurable: true,
|
32
|
+
writable: true,
|
33
|
+
value: false
|
34
|
+
});
|
35
|
+
Object.defineProperty(this, "editable", {
|
36
|
+
enumerable: true,
|
37
|
+
configurable: true,
|
38
|
+
writable: true,
|
39
|
+
value: false
|
40
|
+
});
|
41
|
+
Object.defineProperty(this, "loading", {
|
42
|
+
enumerable: true,
|
43
|
+
configurable: true,
|
44
|
+
writable: true,
|
45
|
+
value: false
|
46
|
+
});
|
47
|
+
Object.defineProperty(this, "textOnly", {
|
48
|
+
enumerable: true,
|
49
|
+
configurable: true,
|
50
|
+
writable: true,
|
51
|
+
value: true
|
52
|
+
});
|
12
53
|
/** is hover item */
|
13
|
-
this
|
14
|
-
|
15
|
-
|
16
|
-
|
54
|
+
Object.defineProperty(this, "isHover", {
|
55
|
+
enumerable: true,
|
56
|
+
configurable: true,
|
57
|
+
writable: true,
|
58
|
+
value: false
|
59
|
+
});
|
60
|
+
/** */
|
61
|
+
Object.defineProperty(this, "addAble", {
|
62
|
+
enumerable: true,
|
63
|
+
configurable: true,
|
64
|
+
writable: true,
|
65
|
+
value: false
|
66
|
+
});
|
67
|
+
/** visible of edit description */
|
68
|
+
Object.defineProperty(this, "desVisible", {
|
69
|
+
enumerable: true,
|
70
|
+
configurable: true,
|
71
|
+
writable: true,
|
72
|
+
value: false
|
73
|
+
});
|
74
|
+
Object.defineProperty(this, "onEdit", {
|
75
|
+
enumerable: true,
|
76
|
+
configurable: true,
|
77
|
+
writable: true,
|
78
|
+
value: async (option) => {
|
79
|
+
this.loading = true;
|
80
|
+
await this.agendaStore.edit(this.agenda.id, { data: option, error: "message" });
|
81
|
+
this.loading = false;
|
82
|
+
this.desVisible = false;
|
83
|
+
}
|
84
|
+
});
|
85
|
+
Object.defineProperty(this, "onAddTask", {
|
86
|
+
enumerable: true,
|
87
|
+
configurable: true,
|
88
|
+
writable: true,
|
89
|
+
value: (addAble) => {
|
90
|
+
this.addAble = addAble;
|
91
|
+
}
|
92
|
+
});
|
93
|
+
makeObservable(this);
|
17
94
|
}
|
18
95
|
get readonly() {
|
19
96
|
return this.agenda && this.agenda.status === "Readonly";
|
20
97
|
}
|
98
|
+
update(agenda) {
|
99
|
+
this.agenda = agenda;
|
100
|
+
}
|
101
|
+
toggleExpand() {
|
102
|
+
this.expand = !this.expand;
|
103
|
+
}
|
21
104
|
}
|
22
105
|
__decorate([
|
23
106
|
observable
|
@@ -30,7 +113,7 @@ __decorate([
|
|
30
113
|
], State.prototype, "description", void 0);
|
31
114
|
__decorate([
|
32
115
|
observable
|
33
|
-
], State.prototype, "
|
116
|
+
], State.prototype, "expand", void 0);
|
34
117
|
__decorate([
|
35
118
|
observable
|
36
119
|
], State.prototype, "editable", void 0);
|
@@ -43,10 +126,25 @@ __decorate([
|
|
43
126
|
__decorate([
|
44
127
|
observable
|
45
128
|
], State.prototype, "isHover", void 0);
|
129
|
+
__decorate([
|
130
|
+
observable
|
131
|
+
], State.prototype, "addAble", void 0);
|
132
|
+
__decorate([
|
133
|
+
observable
|
134
|
+
], State.prototype, "desVisible", void 0);
|
46
135
|
__decorate([
|
47
136
|
computed
|
48
137
|
], State.prototype, "readonly", null);
|
138
|
+
__decorate([
|
139
|
+
action
|
140
|
+
], State.prototype, "update", null);
|
49
141
|
__decorate([
|
50
142
|
action
|
51
143
|
], State.prototype, "onEdit", void 0);
|
144
|
+
__decorate([
|
145
|
+
action
|
146
|
+
], State.prototype, "toggleExpand", null);
|
147
|
+
__decorate([
|
148
|
+
action
|
149
|
+
], State.prototype, "onAddTask", void 0);
|
52
150
|
//# sourceMappingURL=state.js.map
|