@voplus/morpho-workspace 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/controls/filters/WorkStatusFilter/index.d.ts +3 -0
- package/es/controls/filters/WorkStatusFilter/index.js +21 -0
- package/es/controls/filters/WorkStatusFilter/index.js.map +1 -0
- package/es/controls/filters/WorkStatusFilter/state.d.ts +17 -0
- package/es/controls/filters/WorkStatusFilter/state.js +49 -0
- package/es/controls/filters/WorkStatusFilter/state.js.map +1 -0
- package/es/data/notification/interfaces.d.ts +2 -1
- package/es/data/work/WorkStore.d.ts +10 -0
- package/es/data/work/WorkStore.js +21 -0
- package/es/data/work/WorkStore.js.map +1 -0
- package/es/data/work/hook.d.ts +9 -0
- package/es/data/work/hook.js +20 -0
- package/es/data/work/hook.js.map +1 -0
- package/es/data/work/index.d.ts +3 -0
- package/es/data/work/index.js +4 -0
- package/es/data/work/index.js.map +1 -0
- package/es/data/work/interfaces.d.ts +37 -0
- package/es/data/work/interfaces.js +2 -0
- package/es/data/work/interfaces.js.map +1 -0
- package/es/data/workerror/WorkErrorStore.d.ts +37 -0
- package/es/data/workerror/WorkErrorStore.js +117 -0
- package/es/data/workerror/WorkErrorStore.js.map +1 -0
- package/es/data/workerror/hook.d.ts +9 -0
- package/es/data/workerror/hook.js +19 -0
- package/es/data/workerror/hook.js.map +1 -0
- package/es/data/workerror/index.d.ts +4 -0
- package/es/data/workerror/index.js +5 -0
- package/es/data/workerror/index.js.map +1 -0
- package/es/data/workerror/interfaces.d.ts +20 -0
- package/es/data/workerror/interfaces.js +2 -0
- package/es/data/workerror/interfaces.js.map +1 -0
- package/es/data/workerror/types.d.ts +50 -0
- package/es/data/workerror/types.js +9 -0
- package/es/data/workerror/types.js.map +1 -0
- package/es/data/workerror/workerror-events/index.d.ts +3 -0
- package/es/data/workerror/workerror-events/index.js +4 -0
- package/es/data/workerror/workerror-events/index.js.map +1 -0
- package/es/data/workerror/workerror-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/workerror/workerror-events/useAutoUpdateListData.js +13 -0
- package/es/data/workerror/workerror-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/workerror/workerror-events/useOnDeleteWorkspace.d.ts +4 -0
- package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js +17 -0
- package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js.map +1 -0
- package/es/data/workerror/workerror-events/useOnNewWorkspace.d.ts +4 -0
- package/es/data/workerror/workerror-events/useOnNewWorkspace.js +17 -0
- package/es/data/workerror/workerror-events/useOnNewWorkspace.js.map +1 -0
- package/es/data/workspace/WorkSpaceStore.d.ts +39 -0
- package/es/data/workspace/WorkSpaceStore.js +134 -0
- package/es/data/workspace/WorkSpaceStore.js.map +1 -0
- package/es/data/workspace/hooks.d.ts +13 -0
- package/es/data/workspace/hooks.js +23 -0
- package/es/data/workspace/hooks.js.map +1 -0
- package/es/data/workspace/index.d.ts +4 -0
- package/es/data/workspace/index.js +5 -0
- package/es/data/workspace/index.js.map +1 -0
- package/es/data/workspace/interfaces.d.ts +17 -0
- package/es/data/workspace/interfaces.js +2 -0
- package/es/data/workspace/interfaces.js.map +1 -0
- package/es/data/workspace/types.d.ts +28 -0
- package/es/data/workspace/types.js +2 -0
- package/es/data/workspace/types.js.map +1 -0
- package/es/data/workspace/useWorkSpaceCompletedWorkEffect.d.ts +10 -0
- package/es/data/workspace/useWorkSpaceCompletedWorkEffect.js +14 -0
- package/es/data/workspace/useWorkSpaceCompletedWorkEffect.js.map +1 -0
- package/es/data/workspace/workspace-events/index.d.ts +3 -0
- package/es/data/workspace/workspace-events/index.js +4 -0
- package/es/data/workspace/workspace-events/index.js.map +1 -0
- package/es/data/workspace/workspace-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/workspace/workspace-events/useAutoUpdateListData.js +13 -0
- package/es/data/workspace/workspace-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/workspace/workspace-events/useOnDeleteWorkspace.d.ts +4 -0
- package/es/data/workspace/workspace-events/useOnDeleteWorkspace.js +17 -0
- package/es/data/workspace/workspace-events/useOnDeleteWorkspace.js.map +1 -0
- package/es/data/workspace/workspace-events/useOnNewWorkspace.d.ts +4 -0
- package/es/data/workspace/workspace-events/useOnNewWorkspace.js +17 -0
- package/es/data/workspace/workspace-events/useOnNewWorkspace.js.map +1 -0
- package/es/data/worktype/WorkTypeStore.d.ts +21 -0
- package/es/data/worktype/WorkTypeStore.js +75 -0
- package/es/data/worktype/WorkTypeStore.js.map +1 -0
- package/es/data/worktype/hook.d.ts +9 -0
- package/es/data/worktype/hook.js +20 -0
- package/es/data/worktype/hook.js.map +1 -0
- package/es/data/worktype/index.d.ts +4 -0
- package/es/data/worktype/index.js +5 -0
- package/es/data/worktype/index.js.map +1 -0
- package/es/data/worktype/interfaces.d.ts +57 -0
- package/es/data/worktype/interfaces.js +2 -0
- package/es/data/worktype/interfaces.js.map +1 -0
- package/es/data/worktype/types.d.ts +55 -0
- package/es/data/worktype/types.js +2 -0
- package/es/data/worktype/types.js.map +1 -0
- package/es/data/worktype/useWorkTypeCompletedWorkEffect.d.ts +10 -0
- package/es/data/worktype/useWorkTypeCompletedWorkEffect.js +14 -0
- package/es/data/worktype/useWorkTypeCompletedWorkEffect.js.map +1 -0
- package/es/modules/board/components/Board/index.js +1 -3
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +2 -2
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingList/index.js +1 -2
- package/es/modules/meeting/components/MeetingList/index.js.map +1 -1
- package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.d.ts +2 -2
- package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.js +3 -3
- package/es/modules/notification/components/DocumentNotificationCard/index.js.map +1 -0
- package/es/modules/notification/components/NotificationList/index.js +2 -2
- package/es/modules/notification/components/NotificationList/index.js.map +1 -1
- package/es/modules/notification/components/NotificationList/index.less +11 -3
- package/es/modules/tasks/reports/TaskSummaryCard/index.js +2 -2
- package/es/modules/tasks/reports/TaskSummaryCard/index.js.map +1 -1
- package/es/modules/work/components/NewWorkErrorDialog/index.d.ts +9 -0
- package/es/modules/work/components/NewWorkErrorDialog/index.js +70 -0
- package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -0
- package/es/modules/work/components/NewWorkErrorDialog/index.less +18 -0
- package/es/modules/work/components/NewWorkErrorDialog/state.d.ts +16 -0
- package/es/modules/work/components/NewWorkErrorDialog/state.js +37 -0
- package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -0
- package/es/modules/work/components/RejectWorkDialog/index.d.ts +9 -0
- package/es/modules/work/components/RejectWorkDialog/index.js +54 -0
- package/es/modules/work/components/RejectWorkDialog/index.js.map +1 -0
- package/es/modules/work/components/RejectWorkDialog/index.less +18 -0
- package/es/modules/work/components/RejectWorkDialog/state.d.ts +12 -0
- package/es/modules/work/components/RejectWorkDialog/state.js +35 -0
- package/es/modules/work/components/RejectWorkDialog/state.js.map +1 -0
- package/es/modules/work/components/WorkErrorItem/index.d.ts +6 -0
- package/es/modules/work/components/WorkErrorItem/index.js +24 -0
- package/es/modules/work/components/WorkErrorItem/index.js.map +1 -0
- package/es/modules/work/components/WorkErrorItem/index.less +26 -0
- package/es/modules/work/components/WorkErrorList/index.d.ts +8 -0
- package/es/modules/work/components/WorkErrorList/index.js +44 -0
- package/es/modules/work/components/WorkErrorList/index.js.map +1 -0
- package/es/modules/work/components/WorkErrorList/index.less +5 -0
- package/es/modules/work/components/WorkErrorPropertiesView/index.d.ts +6 -0
- package/es/modules/work/components/WorkErrorPropertiesView/index.js +45 -0
- package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -0
- package/es/modules/work/components/WorkErrorPropertiesView/index.less +22 -0
- package/es/modules/work/components/WorkItem/index.d.ts +11 -0
- package/es/modules/work/components/WorkItem/index.js +25 -0
- package/es/modules/work/components/WorkItem/index.js.map +1 -0
- package/es/modules/work/components/WorkItem/index.less +17 -0
- package/es/modules/work/components/WorkList/index.d.ts +16 -0
- package/es/modules/work/components/WorkList/index.js +88 -0
- package/es/modules/work/components/WorkList/index.js.map +1 -0
- package/es/modules/work/components/WorkList/index.less +7 -0
- package/es/modules/work/components/WorkPropertiesView/index.d.ts +7 -0
- package/es/modules/work/components/WorkPropertiesView/index.js +35 -0
- package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -0
- package/es/modules/work/components/WorkPropertiesView/index.less +23 -0
- package/es/{pages/Space/components/Documents → modules/work/components/WorkQATab}/index.d.ts +2 -2
- package/es/modules/work/components/WorkQATab/index.js +33 -0
- package/es/modules/work/components/WorkQATab/index.js.map +1 -0
- package/es/modules/work/components/WorkQATab/index.less +24 -0
- package/es/modules/work/components/WorkTabs/index.d.ts +7 -0
- package/es/modules/work/components/WorkTabs/index.js +45 -0
- package/es/modules/work/components/WorkTabs/index.js.map +1 -0
- package/es/modules/work/components/WorkTabs/index.less +16 -0
- package/es/modules/work/components/WorkTaskList/index.d.ts +5 -0
- package/es/modules/work/components/WorkTaskList/index.js +65 -0
- package/es/modules/work/components/WorkTaskList/index.js.map +1 -0
- package/es/modules/work/components/WorkTaskList/index.less +18 -0
- package/es/modules/work/components/WorkTaskList/state.d.ts +14 -0
- package/es/modules/work/components/WorkTaskList/state.js +23 -0
- package/es/modules/work/components/WorkTaskList/state.js.map +1 -0
- package/es/modules/work/components/WorkTasksTab/index.d.ts +6 -0
- package/es/modules/work/components/WorkTasksTab/index.js +17 -0
- package/es/modules/work/components/WorkTasksTab/index.js.map +1 -0
- package/es/modules/work/components/WorkTasksTab/index.less +7 -0
- package/es/modules/work/components/WorksProperties/index.d.ts +6 -0
- package/es/modules/work/components/WorksProperties/index.js +27 -0
- package/es/modules/work/components/WorksProperties/index.js.map +1 -0
- package/es/modules/work/components/WorksProperties/index.less +8 -0
- package/es/modules/work/pages/WorkDefaultView/index.d.ts +4 -0
- package/es/modules/work/pages/WorkDefaultView/index.js +26 -0
- package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -0
- package/es/modules/work/pages/WorkDefaultView/index.less +17 -0
- package/es/modules/work/pages/WorkListPage/index.d.ts +6 -0
- package/es/modules/work/pages/WorkListPage/index.js +19 -0
- package/es/modules/work/pages/WorkListPage/index.js.map +1 -0
- package/es/modules/workspace/components/MyWorkspaces/index.d.ts +11 -0
- package/es/modules/workspace/components/MyWorkspaces/index.js +34 -0
- package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -0
- package/es/modules/workspace/components/MyWorkspaces/index.less +18 -0
- package/es/modules/workspace/components/NewWorkspaceDialog/index.d.ts +10 -0
- package/es/modules/workspace/components/NewWorkspaceDialog/index.js +59 -0
- package/es/modules/workspace/components/NewWorkspaceDialog/index.js.map +1 -0
- package/es/modules/workspace/components/NewWorkspaceDialog/index.less +18 -0
- package/es/modules/workspace/components/NewWorkspaceDialog/state.d.ts +12 -0
- package/es/modules/workspace/components/NewWorkspaceDialog/state.js +35 -0
- package/es/modules/workspace/components/NewWorkspaceDialog/state.js.map +1 -0
- package/es/modules/workspace/components/WorkspaceCard/index.d.ts +8 -0
- package/es/modules/workspace/components/WorkspaceCard/index.js +18 -0
- package/es/modules/workspace/components/WorkspaceCard/index.js.map +1 -0
- package/es/modules/workspace/components/WorkspaceCard/index.less +47 -0
- package/es/modules/workspace/components/WorkspaceCardList/index.d.ts +13 -0
- package/es/modules/workspace/components/WorkspaceCardList/index.js +49 -0
- package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -0
- package/es/modules/workspace/components/WorkspaceCardList/index.less +13 -0
- package/es/modules/workspace/components/WorkspacePropertiesView/index.d.ts +6 -0
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js +41 -0
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -0
- package/es/modules/workspace/components/WorkspacePropertiesView/index.less +19 -0
- package/es/modules/workspace/components/WorkspacePropertiesView/state.d.ts +15 -0
- package/es/modules/workspace/components/WorkspacePropertiesView/state.js +68 -0
- package/es/modules/workspace/components/WorkspacePropertiesView/state.js.map +1 -0
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.d.ts +6 -0
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js +68 -0
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js.map +1 -0
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.less +8 -0
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.d.ts +5 -0
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.js +26 -0
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.js.map +1 -0
- package/es/modules/workspace/controls/WorkspaceMenu/index.d.ts +8 -0
- package/es/modules/workspace/controls/WorkspaceMenu/index.js +36 -0
- package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -0
- package/es/modules/workspace/controls/WorkspaceMenu/index.less +33 -0
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.d.ts +4 -0
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +51 -0
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -0
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.less +22 -0
- package/es/modules/workspace/pages/WorkspaceDefaultView/state.d.ts +15 -0
- package/es/modules/workspace/pages/WorkspaceDefaultView/state.js +68 -0
- package/es/modules/workspace/pages/WorkspaceDefaultView/state.js.map +1 -0
- package/es/modules/workspace/pages/WorkspacePage/index.d.ts +4 -0
- package/es/modules/workspace/pages/WorkspacePage/index.js +73 -0
- package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -0
- package/es/modules/workspace/pages/WorkspacePage/index.less +1 -0
- package/es/modules/workspace/pages/WorkspacePage/state.d.ts +23 -0
- package/es/modules/workspace/pages/WorkspacePage/state.js +108 -0
- package/es/modules/workspace/pages/WorkspacePage/state.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeCard/index.d.ts +8 -0
- package/es/modules/worktype/components/WorkTypeCard/index.js +18 -0
- package/es/modules/worktype/components/WorkTypeCard/index.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeCard/index.less +47 -0
- package/es/modules/worktype/components/WorkTypeCardList/index.d.ts +16 -0
- package/es/modules/worktype/components/WorkTypeCardList/index.js +50 -0
- package/es/modules/worktype/components/WorkTypeCardList/index.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeCardList/index.less +15 -0
- package/es/modules/worktype/components/WorkTypeItem/index.d.ts +8 -0
- package/es/modules/worktype/components/WorkTypeItem/index.js +11 -0
- package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeItem/index.less +19 -0
- package/es/modules/worktype/components/WorkTypeProperties/index.d.ts +6 -0
- package/es/modules/worktype/components/WorkTypeProperties/index.js +55 -0
- package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeProperties/index.less +5 -0
- package/es/modules/worktype/components/WorkTypeProperties/state.d.ts +11 -0
- package/es/modules/worktype/components/WorkTypeProperties/state.js +57 -0
- package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -0
- package/es/modules/worktype/components/WorkTypePropertiesTabs/index.d.ts +5 -0
- package/es/modules/worktype/components/WorkTypePropertiesTabs/index.js +28 -0
- package/es/modules/worktype/components/WorkTypePropertiesTabs/index.js.map +1 -0
- package/es/modules/worktype/components/WorkTypePropertiesTabs/index.less +0 -0
- package/es/modules/worktype/components/WorkTypePropertiesView/index.d.ts +6 -0
- package/es/modules/worktype/components/WorkTypePropertiesView/index.js +38 -0
- package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -0
- package/es/modules/worktype/components/WorkTypePropertiesView/index.less +19 -0
- package/es/modules/worktype/components/WorkTypePropertiesView/state.d.ts +15 -0
- package/es/modules/worktype/components/WorkTypePropertiesView/state.js +68 -0
- package/es/modules/worktype/components/WorkTypePropertiesView/state.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeQA/index.d.ts +6 -0
- package/es/modules/worktype/components/WorkTypeQA/index.js +60 -0
- package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeQA/index.less +35 -0
- package/es/modules/worktype/components/WorkTypeQA/state.d.ts +21 -0
- package/es/modules/worktype/components/WorkTypeQA/state.js +145 -0
- package/es/modules/worktype/components/WorkTypeQA/state.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeStats/index.d.ts +5 -0
- package/es/modules/worktype/components/WorkTypeStats/index.js +16 -0
- package/es/modules/worktype/components/WorkTypeStats/index.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeStats/index.less +29 -0
- package/es/modules/worktype/components/WorkTypeStats/state.d.ts +6 -0
- package/es/modules/worktype/components/WorkTypeStats/state.js +27 -0
- package/es/modules/worktype/components/WorkTypeStats/state.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeTabs/index.d.ts +6 -0
- package/es/modules/worktype/components/WorkTypeTabs/index.js +45 -0
- package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -0
- package/es/modules/worktype/components/WorkTypeTabs/index.less +16 -0
- package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.d.ts +6 -0
- package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.js +70 -0
- package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.js.map +1 -0
- package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.less +8 -0
- package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.d.ts +5 -0
- package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.js +26 -0
- package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.js.map +1 -0
- package/es/modules/worktype/pages/WorkTypeDefaultView/index.d.ts +4 -0
- package/es/modules/worktype/pages/WorkTypeDefaultView/index.js +24 -0
- package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +1 -0
- package/es/modules/worktype/pages/WorkTypeDefaultView/index.less +21 -0
- package/es/pages/Routes.d.ts +12 -0
- package/es/pages/Routes.js +29 -3
- package/es/pages/Routes.js.map +1 -1
- package/es/pages/Space/components/Notifications/index.js +1 -0
- package/es/pages/Space/components/Notifications/index.js.map +1 -1
- package/es/pages/Space/components/Tasks/index.d.ts +2 -2
- package/es/pages/Space/components/Tasks/index.js +50 -11
- package/es/pages/Space/components/Tasks/index.js.map +1 -1
- package/es/pages/Space/components/Works/index.d.ts +2 -2
- package/es/pages/Space/components/Works/index.js +13 -37
- package/es/pages/Space/components/Works/index.js.map +1 -1
- package/es/pages/Space/components/Workspaces/index.d.ts +3 -0
- package/es/pages/Space/components/Workspaces/index.js +19 -0
- package/es/pages/Space/components/Workspaces/index.js.map +1 -0
- package/es/pages/Space/pages/MySpace/index.js +49 -14
- package/es/pages/Space/pages/MySpace/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/state.d.ts +27 -6
- package/es/pages/Space/pages/MySpace/state.js +114 -24
- package/es/pages/Space/pages/MySpace/state.js.map +1 -1
- package/es/pages/Work/components/NewWorkDialog/index.js +3 -7
- package/es/pages/Work/components/NewWorkDialog/index.js.map +1 -1
- package/es/pages/Work/pages/WorkDefaultView/index.js +20 -17
- package/es/pages/Work/pages/WorkDefaultView/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeCheckList/index.d.ts +1 -2
- package/es/pages/WorkType/WorkTypeCheckList/index.js +43 -34
- package/es/pages/WorkType/WorkTypeCheckList/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeDetail/index.js +6 -10
- package/es/pages/WorkType/WorkTypeDetail/index.js.map +1 -1
- package/es/pages/WorkType/data/WorkTypeStore.js +4 -4
- package/es/pages/WorkType/data/WorkTypeStore.js.map +1 -1
- package/es/pages/WorkType/data/interfaces.d.ts +24 -7
- package/es/pages/WorkType/data/types.d.ts +19 -18
- package/es/routes.js.map +1 -1
- package/package.json +2 -2
- package/es/modules/notification/components/MentionNotificationCard/index.js.map +0 -1
- package/es/pages/Space/components/Documents/index.js +0 -26
- package/es/pages/Space/components/Documents/index.js.map +0 -1
- package/es/pages/Space/components/Documents/index.less +0 -5
- /package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.less +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeQA/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAMjB,YAAoB,KAAoB;;;;;mBAApB;;QALR;;;;;WAA2B;QAC3B;;;;mBAAuB,KAAK;WAAA;QAC5B;;;;;WAA0B;QAC1B;;;;;WAAuB;QAGlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,MAAM,CAAC,QAAmB;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC;QACzD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,oCAAoC;IACrB,gBAAgB,CAAC,aAAuB;QACtD,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;QACxB,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAClC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QACpD,CAAC,CAAC,CAAA;IACH,CAAC;IAED,iBAAiB;IACF,aAAa,CAAC,UAAoB;QAChD,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,UAAU,aAAV,UAAU,uBAAV,UAAU,C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AkB,CAAC,IAAS;QAChD,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,IAAI,EAAE,CAAC;QAC5C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;QACnF,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QACtC,IAAI,CAAC,aAAa,CAAC,IAAK,CAAC,CAAC;IAC3B,CAAC;CACD;AAjFY;IAAX,UAAU;uCAA4B;AAC3B;IAAX,UAAU;4CAA6B;AAC5B;IAAX,UAAU;4CAA2B;AAC1B;IAAX,UAAU;yCAAwB;AAM3B;IAAP,MAAM;mCAIN;AAGO;IAAP,MAAM;6CAKN;AAGO;IAAP,MAAM;0CAKN;AAEO;IAAP,MAAM;iCAGN;AAEO;IAAP,MAAM;kDAQN;AAEO;IAAP,MAAM;kDAIN;AAEO;IAAP,MAAM;kDAKN;AAEO;IAAP,MAAM;+CAQN;AAEO;IAAP,MAAM;+CAIN;AAEO;IAAP,MAAM;+CAKN"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React, { useState } from "react";
|
2
|
+
import { Col, Row, Skeleton } from "@voplus/antd";
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
4
|
+
import { State } from "./state";
|
5
|
+
import WorktypeCompleteWorksChart from "../../controls/WorktypeCompleteWorksChart";
|
6
|
+
import styles from "./index.less";
|
7
|
+
const WorkTypeStats = (props) => {
|
8
|
+
const [state] = useState(new State());
|
9
|
+
return observe(() => (React.createElement("div", { className: styles["workstats"] },
|
10
|
+
React.createElement("div", { className: "workstats-head" }, "Work Stats"),
|
11
|
+
React.createElement("div", { className: "workstats-content" },
|
12
|
+
React.createElement(Row, { gutter: 24 }, props.id && (React.createElement(Col, { span: 24 }, state.estimatedLoaded ? (React.createElement(WorktypeCompleteWorksChart, { id: props.id })) : (React.createElement("div", { className: "skelecton-card" },
|
13
|
+
React.createElement(Skeleton, { active: true }))))))))));
|
14
|
+
};
|
15
|
+
export default WorkTypeStats;
|
16
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeStats/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,0BAA0B,MAAM,2CAA2C,CAAC;AACnF,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,aAAa,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC/C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC;QAClC,6BAAK,SAAS,EAAC,gBAAgB,iBAAiB;QAChD,6BAAK,SAAS,EAAC,mBAAmB;YACjC,oBAAC,GAAG,IAAC,MAAM,EAAE,EAAE,IACb,KAAK,CAAC,EAAE,IAAI,CACZ,oBAAC,GAAG,IAAC,IAAI,EAAE,EAAE,IACX,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,CACxB,oBAAC,0BAA0B,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAC5C,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,gBAAgB;gBAC9B,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CACI,CACN,CACI,CACD,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
.workstats {
|
2
|
+
width: 100%;
|
3
|
+
height: 100%;
|
4
|
+
display: flex;
|
5
|
+
flex-direction: column;
|
6
|
+
background: #f5f5f5;
|
7
|
+
:global {
|
8
|
+
.workstats-head {
|
9
|
+
padding: 10px 20px;
|
10
|
+
background: #fff;
|
11
|
+
font-size: 16px;
|
12
|
+
font-weight: 600;
|
13
|
+
border-bottom: 1px solid #f2f2f2;
|
14
|
+
}
|
15
|
+
.workstats-content {
|
16
|
+
height: 100%;
|
17
|
+
// padding: 10px 20px 0;
|
18
|
+
.ant-col > div {
|
19
|
+
// height: 340px;
|
20
|
+
// min-width: 250px;
|
21
|
+
background-color: #ffffff;
|
22
|
+
}
|
23
|
+
.skelecton-card{
|
24
|
+
padding:15px;
|
25
|
+
box-shadow: 2px 2px 5px #e8e8e8;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { action, makeObservable, observable, runInAction } from "mobx";
|
3
|
+
export class State {
|
4
|
+
constructor() {
|
5
|
+
Object.defineProperty(this, "estimatedLoaded", {
|
6
|
+
enumerable: true,
|
7
|
+
configurable: true,
|
8
|
+
writable: true,
|
9
|
+
value: true
|
10
|
+
});
|
11
|
+
makeObservable(this);
|
12
|
+
}
|
13
|
+
/** reload Estimated data */
|
14
|
+
onEstimatedReload() {
|
15
|
+
this.estimatedLoaded = false;
|
16
|
+
setTimeout(() => {
|
17
|
+
runInAction(() => (this.estimatedLoaded = true));
|
18
|
+
}, 100);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
__decorate([
|
22
|
+
observable
|
23
|
+
], State.prototype, "estimatedLoaded", void 0);
|
24
|
+
__decorate([
|
25
|
+
action
|
26
|
+
], State.prototype, "onEstimatedReload", null);
|
27
|
+
//# sourceMappingURL=state.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeStats/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEvE,MAAM,OAAO,KAAK;IAGjB;QAFY;;;;mBAAyB,IAAI;WAAC;QAGzC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,4BAA4B;IAErB,iBAAiB;QACvB,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QAC7B,UAAU,CAAC,GAAG,EAAE;YACf,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC;QAClD,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;CACD;AAdY;IAAX,UAAU;8CAA+B;AAQ1C;IADC,MAAM;8CAMN"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
2
|
+
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
3
|
+
import { Badge, Tabs } from "@voplus/antd";
|
4
|
+
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
5
|
+
import TaskPropertiesView from "../../../tasks/components/TaskPropertiesView";
|
6
|
+
import WorkTaskList from "../../../work/components/WorkTaskList";
|
7
|
+
import WorkTypeQA from "../WorkTypeQA";
|
8
|
+
import WorkTypeStats from "../WorkTypeStats";
|
9
|
+
import "./index.less";
|
10
|
+
const WorkTypeTabs = (props) => {
|
11
|
+
const { id } = props;
|
12
|
+
/**Tabs 当前激活 tab 面板的 key */
|
13
|
+
const [activeKey, setActiveKey] = useState("Stats");
|
14
|
+
const asideContext = useAsideContentContext();
|
15
|
+
useEffect(() => {
|
16
|
+
setActiveKey("Stats");
|
17
|
+
}, [props.id]);
|
18
|
+
return observe(() => (React.createElement(Tabs, { activeKey: activeKey, className: "work-type-tabs", onChange: onChange },
|
19
|
+
React.createElement(Tabs.TabPane, { tab: "Stats", key: "Stats" }, activeKey === "Stats" && React.createElement(WorkTypeStats, { id: props.id })),
|
20
|
+
React.createElement(Tabs.TabPane, { tab: React.createElement(React.Fragment, null,
|
21
|
+
"Tasks",
|
22
|
+
React.createElement(Badge, { count: 6, className: "site-badge-count" })), key: "TaskList" }, activeKey === "TaskList" && (React.createElement(WorkTaskList, { Title: "Task", parentId: id, onClickItem: onClickItem }))),
|
23
|
+
React.createElement(Tabs.TabPane, { tab: React.createElement(React.Fragment, null,
|
24
|
+
"Documents",
|
25
|
+
React.createElement(Badge, { count: 3, className: "site-badge-count" })), key: "Document" }, activeKey === "Document" && React.createElement(DocumentList, { id: id, multiple: true, exclude: ["Task"] })),
|
26
|
+
React.createElement(Tabs.TabPane, { tab: "QA Setting", key: "QA Setting" }, activeKey === "QA Setting" && React.createElement(WorkTypeQA, { id: id })))));
|
27
|
+
/**切换面板的回调*/
|
28
|
+
function onChange(activeKey) {
|
29
|
+
setActiveKey(activeKey);
|
30
|
+
}
|
31
|
+
function onClickItem(id) {
|
32
|
+
// asideContext?.openAside(
|
33
|
+
// <TaskPropertiesView id={id} />,
|
34
|
+
// { span: 12 }
|
35
|
+
// );
|
36
|
+
if (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent) {
|
37
|
+
asideContext.closeAside();
|
38
|
+
}
|
39
|
+
else {
|
40
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(TaskPropertiesView, { id: id }), { span: 12 });
|
41
|
+
}
|
42
|
+
}
|
43
|
+
};
|
44
|
+
export default WorkTypeTabs;
|
45
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeTabs/index.tsx"],"names":[],"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abs-nav-wrap {
|
5
|
+
padding-left: 20px;
|
6
|
+
}
|
7
|
+
.site-badge-count {
|
8
|
+
margin-left: 10px;
|
9
|
+
.ant-badge-count {
|
10
|
+
color: #999;
|
11
|
+
background-color: #fff;
|
12
|
+
box-shadow: 0 0 0 1px #d9d9d9 inset;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import React, { useEffect, useRef, useState } from "react";
|
2
|
+
import { Empty, Spin } from "@voplus/antd";
|
3
|
+
import { Column } from "@antv/g2plot";
|
4
|
+
import { LoadingOutlined } from "@ant-design/icons";
|
5
|
+
import { State } from "./state";
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
7
|
+
import { useWorkTypeCompletedWork, } from "../../../../data/worktype/useWorkTypeCompletedWorkEffect";
|
8
|
+
import moment from "moment";
|
9
|
+
import "./index.less";
|
10
|
+
const WorkTypeCompletedWorksChart = (props) => {
|
11
|
+
const { id } = props;
|
12
|
+
const divEl = useRef(null);
|
13
|
+
const [state] = useState(new State());
|
14
|
+
const [columnData, setColumnData] = useState([]);
|
15
|
+
useWorkTypeCompletedWork(id, (list) => {
|
16
|
+
const data = [];
|
17
|
+
list.map((i) => {
|
18
|
+
data.push({ date: moment(i.date).format("DD MMM"), total: i.total });
|
19
|
+
});
|
20
|
+
setColumnData(data);
|
21
|
+
state.loading = false;
|
22
|
+
});
|
23
|
+
useEffect(() => {
|
24
|
+
if (state.columnPlot) {
|
25
|
+
state.columnPlot.update({
|
26
|
+
data: columnData,
|
27
|
+
});
|
28
|
+
}
|
29
|
+
else if (divEl.current && columnData.length) {
|
30
|
+
state.columnPlot = new Column(divEl.current, {
|
31
|
+
data: columnData,
|
32
|
+
xField: "date",
|
33
|
+
// 图形在 x 方向对应的数据字段名
|
34
|
+
yField: "total",
|
35
|
+
label: {
|
36
|
+
// 可手动配置 label 数据标签位置
|
37
|
+
position: "middle",
|
38
|
+
// 配置样式
|
39
|
+
style: {
|
40
|
+
fill: "#FFFFFF",
|
41
|
+
opacity: 0.6,
|
42
|
+
},
|
43
|
+
},
|
44
|
+
xAxis: {
|
45
|
+
label: {
|
46
|
+
autoHide: true,
|
47
|
+
autoRotate: false,
|
48
|
+
},
|
49
|
+
},
|
50
|
+
// 数据的类型和展示方式
|
51
|
+
meta: {
|
52
|
+
date: {
|
53
|
+
alias: "日期",
|
54
|
+
},
|
55
|
+
total: {
|
56
|
+
alias: "完成度",
|
57
|
+
},
|
58
|
+
},
|
59
|
+
height: 200,
|
60
|
+
});
|
61
|
+
state.columnPlot.render();
|
62
|
+
}
|
63
|
+
}, [columnData]);
|
64
|
+
return observe(() => (React.createElement("div", { className: "completed-works-chart" },
|
65
|
+
React.createElement("div", { ref: divEl }),
|
66
|
+
state.loading ? (React.createElement("div", { className: "card-loading" },
|
67
|
+
React.createElement(Spin, { tip: "Loading...", indicator: React.createElement(LoadingOutlined, null) }))) : !columnData.length ? (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })) : null)));
|
68
|
+
};
|
69
|
+
export default WorkTypeCompletedWorksChart;
|
70
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/controls/WorktypeCompleteWorksChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAEN,wBAAwB,GACxB,MAAM,0DA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AE;oBACN,qBAAqB;oBACrB,QAAQ,EAAE,QAAQ;oBAClB,OAAO;oBACP,KAAK,EAAE;wBACN,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,GAAG;qBACZ;iBACD;gBACD,KAAK,EAAE;oBACN,KAAK,EAAE;wBACN,QAAQ,EAAE,IAAI;wBACd,UAAU,EAAE,KAAK;qBACjB;iBACD;gBACW,aAAa;gBACzB,IAAI,EAAE;oBACL,IAAI,EAAE;wBACL,KAAK,EAAE,IAAI;qBACX;oBACD,KAAK,EAAE;wBACN,KAAK,EAAE,KAAK;qBACZ;iBACD;gBACD,MAAM,EAAE,GAAG;aACX,CAAC,CAAC;YACH,KAAK,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;SAC1B;IACF,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,uBAAuB;QACrC,6BAAK,GAAG,EAAE,KAAK,GAAI;QAClB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,6BAAK,SAAS,EAAC,cAAc;YAC5B,oBAAC,IAAI,IAAC,GAAG,EAAC,YAAY,EAAC,SAAS,EAAE,oBAAC,eAAe,OAAG,GAAI,CACpD,CACN,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CACxB,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,GAAI,CAC9C,CAAC,CAAC,CAAC,IAAI,CACH,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { makeObservable, observable } from "mobx";
|
3
|
+
export class State {
|
4
|
+
constructor() {
|
5
|
+
Object.defineProperty(this, "columnPlot", {
|
6
|
+
enumerable: true,
|
7
|
+
configurable: true,
|
8
|
+
writable: true,
|
9
|
+
value: void 0
|
10
|
+
});
|
11
|
+
Object.defineProperty(this, "loading", {
|
12
|
+
enumerable: true,
|
13
|
+
configurable: true,
|
14
|
+
writable: true,
|
15
|
+
value: true
|
16
|
+
});
|
17
|
+
makeObservable(this);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
__decorate([
|
21
|
+
observable
|
22
|
+
], State.prototype, "columnPlot", void 0);
|
23
|
+
__decorate([
|
24
|
+
observable
|
25
|
+
], State.prototype, "loading", void 0);
|
26
|
+
//# sourceMappingURL=state.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/controls/WorktypeCompleteWorksChart/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IAId;QAHY;;;;;WAAuB;QACvB;;;;mBAAiB,IAAI;WAAC;QAG9B,cAAc,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CACJ;AANe;IAAX,UAAU;yCAAwB;AACvB;IAAX,UAAU;sCAAuB"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import "./index.less";
|
2
|
+
import React, { useState } from "react";
|
3
|
+
import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
|
4
|
+
import { useRouteMatch } from "react-router";
|
5
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
6
|
+
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
7
|
+
import WorkTypeProperties from "../../components/WorkTypeProperties";
|
8
|
+
import WorkTypeTabs from "../../components/WorkTypeTabs";
|
9
|
+
import { observe } from "@voplus/morpho-ui";
|
10
|
+
const WorkTypeDefaultView = () => {
|
11
|
+
const match = useRouteMatch();
|
12
|
+
const id = match.params.id;
|
13
|
+
const store = new TabItemStore({ url: "" });
|
14
|
+
const [asideContext] = useState(AsideContent.createContext());
|
15
|
+
return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
|
16
|
+
React.createElement(MainContent, { className: "work-type-default-view" },
|
17
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
18
|
+
React.createElement(WorkTypeProperties, { id: id })),
|
19
|
+
React.createElement("div", { className: "work-type-context" },
|
20
|
+
React.createElement(AsideContent, { context: asideContext },
|
21
|
+
React.createElement(WorkTypeTabs, { id: id })))))));
|
22
|
+
};
|
23
|
+
export default WorkTypeDefaultView;
|
24
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/pages/WorkTypeDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAChC,MAAM,KAAK,GAAG,aAAa,EAAkB,CAAC;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE3B,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,WAAW,IAAC,SAAS,EAAC,wBAAwB;YAC9C,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;gBAC3B,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CACb;YAClB,6BAAK,SAAS,EAAC,mBAAmB;gBACjC,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;oBAClC,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,GAAI,CACV,CACV,CACO,CACW,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
:global {
|
2
|
+
.work-type-default-view {
|
3
|
+
.main-content-nav {
|
4
|
+
width: 300px;
|
5
|
+
// box-shadow: 6px 0 16px -8px rgb(0 0 0 / 8%), 9px 0 28px 0 rgb(0 0 0 / 5%),
|
6
|
+
// 12px 0 48px 16px rgb(0 0 0 / 3%) !important;
|
7
|
+
box-shadow: 1px 0 3px 0px rgba(0, 0, 0, 0.15) !important;
|
8
|
+
}
|
9
|
+
|
10
|
+
.work-type-context {
|
11
|
+
display: flex;
|
12
|
+
padding: 0;
|
13
|
+
background: #ffffff;
|
14
|
+
display: flex;
|
15
|
+
|
16
|
+
>div {
|
17
|
+
flex: 1;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
package/es/pages/Routes.d.ts
CHANGED
@@ -18,12 +18,24 @@ declare const Routes: {
|
|
18
18
|
getUrl: (id: string) => string;
|
19
19
|
component: () => JSX.Element;
|
20
20
|
};
|
21
|
+
WorkspaceDefaultView: {
|
22
|
+
route: string;
|
23
|
+
tabPattern: RegExp;
|
24
|
+
getUrl: (id: string) => string;
|
25
|
+
component: () => JSX.Element;
|
26
|
+
};
|
21
27
|
MySpace: {
|
22
28
|
route: string;
|
23
29
|
tabPattern: RegExp;
|
24
30
|
getUrl: () => string;
|
25
31
|
component: () => JSX.Element;
|
26
32
|
};
|
33
|
+
WorkspacePage: {
|
34
|
+
route: string;
|
35
|
+
tabPattern: RegExp;
|
36
|
+
getUrl: () => string;
|
37
|
+
component: () => JSX.Element;
|
38
|
+
};
|
27
39
|
addRoutes: () => void;
|
28
40
|
};
|
29
41
|
export default Routes;
|
package/es/pages/Routes.js
CHANGED
@@ -3,14 +3,18 @@ import { BaseRoutes } from "@voplus/morpho-data";
|
|
3
3
|
import MySpace from "./Space/pages/MySpace";
|
4
4
|
import ProjectDefaultView from "./Project/ProjectDefaultView";
|
5
5
|
import React from "react";
|
6
|
-
import WorkDefaultView from "
|
7
|
-
import WorkTypeDefaultView from "
|
6
|
+
import WorkDefaultView from "../modules/work/pages/WorkDefaultView";
|
7
|
+
import WorkTypeDefaultView from "../modules/worktype/pages/WorkTypeDefaultView";
|
8
|
+
import WorkspaceDefaultView from "../modules/workspace/pages/WorkspaceDefaultView";
|
9
|
+
import WorkspacePage from '../modules/workspace/pages/WorkspacePage';
|
8
10
|
const ProjectRoutes = () => {
|
9
11
|
return (React.createElement(Switch, null,
|
10
12
|
React.createElement(Route, { path: Routes.ProjectDefaultView.route, exact: true, component: Routes.ProjectDefaultView.component }),
|
11
13
|
React.createElement(Route, { path: Routes.WorkDefaultView.route, exact: true, component: Routes.WorkDefaultView.component }),
|
12
14
|
React.createElement(Route, { path: Routes.WorkTypeDefaultView.route, exact: true, component: Routes.WorkTypeDefaultView.component }),
|
13
|
-
React.createElement(Route, { path: Routes.
|
15
|
+
React.createElement(Route, { path: Routes.WorkspaceDefaultView.route, exact: true, component: Routes.WorkspaceDefaultView.component }),
|
16
|
+
React.createElement(Route, { path: Routes.MySpace.route, component: Routes.MySpace.component }),
|
17
|
+
React.createElement(Route, { path: Routes.WorkspacePage.route, component: Routes.WorkspacePage.component })));
|
14
18
|
};
|
15
19
|
const Routes = {
|
16
20
|
ProjectDefaultView: {
|
@@ -31,12 +35,24 @@ const Routes = {
|
|
31
35
|
getUrl: (id) => `/workType/${id}`,
|
32
36
|
component: WorkTypeDefaultView,
|
33
37
|
},
|
38
|
+
WorkspaceDefaultView: {
|
39
|
+
route: "/workSpace/:id",
|
40
|
+
tabPattern: RegExp("/workSpace/[^/]+"),
|
41
|
+
getUrl: (id) => `/workSpace/${id}`,
|
42
|
+
component: WorkspaceDefaultView,
|
43
|
+
},
|
34
44
|
MySpace: {
|
35
45
|
route: "/my-space",
|
36
46
|
tabPattern: RegExp("/my-space"),
|
37
47
|
getUrl: () => `/my-space`,
|
38
48
|
component: MySpace,
|
39
49
|
},
|
50
|
+
WorkspacePage: {
|
51
|
+
route: "/work-space",
|
52
|
+
tabPattern: RegExp("/work-space"),
|
53
|
+
getUrl: () => `/work-space`,
|
54
|
+
component: WorkspacePage,
|
55
|
+
},
|
40
56
|
addRoutes: () => {
|
41
57
|
BaseRoutes.routes.push({
|
42
58
|
name: "ProjectDefaultView",
|
@@ -53,11 +69,21 @@ const Routes = {
|
|
53
69
|
tabBasePattern: Routes.WorkTypeDefaultView.tabPattern,
|
54
70
|
component: React.createElement(ProjectRoutes, null),
|
55
71
|
});
|
72
|
+
BaseRoutes.routes.push({
|
73
|
+
name: "WorkspaceDefaultView",
|
74
|
+
tabBasePattern: Routes.WorkspaceDefaultView.tabPattern,
|
75
|
+
component: React.createElement(ProjectRoutes, null),
|
76
|
+
});
|
56
77
|
BaseRoutes.routes.push({
|
57
78
|
name: "MySpace",
|
58
79
|
tabBasePattern: Routes.MySpace.tabPattern,
|
59
80
|
component: React.createElement(ProjectRoutes, null),
|
60
81
|
});
|
82
|
+
BaseRoutes.routes.push({
|
83
|
+
name: "WorkspacePage",
|
84
|
+
tabBasePattern: Routes.WorkspacePage.tabPattern,
|
85
|
+
component: React.createElement(ProjectRoutes, null),
|
86
|
+
});
|
61
87
|
},
|
62
88
|
};
|
63
89
|
export default Routes;
|
package/es/pages/Routes.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Routes.js","sourceRoot":"","sources":["../../src/pages/Routes.tsx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,IAAI,EAAE,eAAe;YACrB,cAAc,EAAE,MAAM,CAAC,aAAa,CAAC,UAAU;YAC/C,SAAS,EAAE,oBAAC,aAAa,OAAG;SAC5B,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -12,6 +12,7 @@ const Notifications = (props) => {
|
|
12
12
|
const layout = useLayout();
|
13
13
|
const [error, setError] = useState(0);
|
14
14
|
useEffect(() => {
|
15
|
+
/** 当 status 是 redirect 时,需要 load notification 然后选择正确的 menu */
|
15
16
|
if (match.params.status === "redirect" && match.params.active) {
|
16
17
|
store
|
17
18
|
.load(match.params.active)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Notifications/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,gBAAgB,MAAM,8DAA8D,CAAC;AAE5F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,aAAa,GAAG,CAAC,KAAuB,EAAE,EAAE;IACjD,MAAM,KAAK,GAAG,aAAa,EAAuC,CAAC;IACnE,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEtC,SAAS,CAAC,G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AC,EAAE,EAAE,CAAC,CAC1E,CAAC;QACH,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,WAAW,CAAC,GAAG,EAAE;gBAChB,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;YAC7D,CAAC,CAAC,CAAC;QACJ,CAAC,EACD,mBAAmB,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YAClC,KAAK,CAAC,KAAK,CAAC,uBAAuB,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACvD,CAAC,GACA,CACF,CACI,CACN,CACD,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Notifications/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,gBAAgB,MAAM,8DAA8D,CAAC;AAE5F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,aAAa,GAAG,CAAC,KAAuB,EAAE,EAAE;IACjD,MAAM,KAAK,GAAG,aAAa,EAAuC,CAAC;IACnE,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAA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,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAC1E,CAAC;QACH,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,WAAW,CAAC,GAAG,EAAE;gBAChB,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;YAC7D,CAAC,CAAC,CAAC;QACJ,CAAC,EACD,mBAAmB,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YAClC,KAAK,CAAC,KAAK,CAAC,uBAAuB,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACvD,CAAC,GACA,CACF,CACI,CACN,CACD,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import "./index.less";
|
3
|
-
import {
|
3
|
+
import { State } from "../../pages/MySpace/state";
|
4
4
|
declare const TaskList: (props: {
|
5
|
-
|
5
|
+
state: State;
|
6
6
|
}) => JSX.Element;
|
7
7
|
export default TaskList;
|
@@ -1,40 +1,79 @@
|
|
1
1
|
import "./index.less";
|
2
|
+
import { useLayout } from "@voplus/morpho-data";
|
2
3
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
3
|
-
import React
|
4
|
+
import React from "react";
|
5
|
+
import { generatePath, useRouteMatch } from "react-router";
|
4
6
|
import { useAutoUpdateListData, useDocumentStore } from "@voplus/morpho-document-core";
|
7
|
+
import DefaultTaskItem from "../../../../modules/tasks/components/TaskItem/DefaultTaskItem";
|
5
8
|
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
6
9
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
7
10
|
import NewTaskForm from "../../../../modules/tasks/components/NewTaskForm";
|
8
|
-
import
|
11
|
+
import TaskPropertiesView from "../../../../modules/tasks/components/TaskPropertiesView";
|
12
|
+
import moment from "moment";
|
9
13
|
import { observe } from "@voplus/morpho-ui";
|
14
|
+
import { runInAction } from "mobx";
|
10
15
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
11
16
|
import { useTaskListEffect } from "../../../../data/task/hooks";
|
12
17
|
const TaskList = (props) => {
|
18
|
+
const match = useRouteMatch();
|
19
|
+
const layout = useLayout();
|
13
20
|
const documentStore = useDocumentStore();
|
14
21
|
const list = useCreateListDataState({
|
15
22
|
filterDefaults: {
|
16
23
|
includes: "tags,task-number-reports",
|
24
|
+
filters: filters()
|
17
25
|
},
|
18
|
-
}, []);
|
19
|
-
useEffect(() => {
|
20
|
-
if (props.filters)
|
21
|
-
list.clear();
|
22
|
-
}, [props.filters]);
|
23
|
-
list.filters.options.Filters = props.filters || [];
|
26
|
+
}, [match.params.dueDate]);
|
24
27
|
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
25
28
|
useAutoUpdateListData(list, (d) => d.type === "Task" && !d.parentId);
|
26
29
|
/** 如果 list.filters.options变更了就重渲染,使下一行的useTaskListEffect 可以接收新参数*/
|
27
30
|
useRenderOnChange(() => list.filters.options);
|
28
31
|
/** 把ListDataState传给useTaskListEffect,使之可以自動更新loading, hasmore. */
|
29
|
-
useTaskListEffect(list, (result) =>
|
32
|
+
useTaskListEffect(list, (result, total) => {
|
33
|
+
list.union(result);
|
34
|
+
runInAction(() => {
|
35
|
+
props.state.updateTaskTotal[match.params.dueDate] = total;
|
36
|
+
});
|
37
|
+
}, {
|
38
|
+
Total: true,
|
39
|
+
...list.filters.options,
|
40
|
+
});
|
30
41
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
31
|
-
React.createElement(ListView, { headerProps: { viewTitle: "My Tasks" }, formViewTitle: "Add Task", className: "my-space-tasks", formView: React.createElement(NewTaskForm, null), moveAfter: moveAfter, renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
|
42
|
+
React.createElement(ListView, { headerProps: { viewTitle: "My Tasks" }, formViewTitle: "Add Task", className: "my-space-tasks", formView: React.createElement(NewTaskForm, null), moveAfter: moveAfter, propertiesView: (id) => React.createElement(TaskPropertiesView, { id: id }), renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
|
32
43
|
React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
|
33
44
|
hoverEffect: "background",
|
34
45
|
hoverBackgroundProps: { color: "#f2f2f2" },
|
35
46
|
style: { border: "none", flex: "1" },
|
47
|
+
}, onClick: () => {
|
48
|
+
layout.history.push(generatePath(match.path, { dueDate: match.params.dueDate, active: item.id }));
|
36
49
|
} },
|
37
|
-
React.createElement(
|
50
|
+
React.createElement(DefaultTaskItem, { id: item.id, memberAlign: "block", connectDragSource: connectDragSource })))) }))));
|
51
|
+
function filters() {
|
52
|
+
if (!match.params.dueDate)
|
53
|
+
return [];
|
54
|
+
let date = "day";
|
55
|
+
let v1 = "";
|
56
|
+
let v2 = "";
|
57
|
+
if (match.params.dueDate !== "today")
|
58
|
+
date = match.params.dueDate;
|
59
|
+
if (match.params.dueDate !== "unscheduled") {
|
60
|
+
v1 = moment().startOf(date).format("YYYY-MM-DD HH:mm:ss");
|
61
|
+
v2 = moment().endOf(date).format("YYYY-MM-DD HH:mm:ss");
|
62
|
+
}
|
63
|
+
else {
|
64
|
+
v1 = moment().add(1, "months").startOf("month").format("YYYY-MM-DD HH:mm:ss");
|
65
|
+
v2 = moment().add(1, "months").endOf("month").format("YYYY-MM-DD HH:mm:ss");
|
66
|
+
}
|
67
|
+
return [
|
68
|
+
{
|
69
|
+
c: "DueDate",
|
70
|
+
o: "between",
|
71
|
+
l: "And",
|
72
|
+
v1: v1,
|
73
|
+
v2: v2,
|
74
|
+
},
|
75
|
+
];
|
76
|
+
}
|
38
77
|
async function moveAfter(id, afterId) {
|
39
78
|
await documentStore.moveAfter(id, afterId);
|
40
79
|
}
|