@voplus/morpho-workspace 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/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/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 +46 -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/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 +14 -0
- package/es/modules/work/components/WorkList/index.js +64 -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 +56 -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 +12 -0
- package/es/modules/worktype/components/WorkTypeProperties/state.js +65 -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 +20 -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/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 +7 -3
- package/es/pages/Space/pages/MySpace/index.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/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
@@ -0,0 +1,57 @@
|
|
1
|
+
import { ILoadable } from "@voplus/morpho-data";
|
2
|
+
export interface ICheckListItem {
|
3
|
+
key?: string;
|
4
|
+
/** checked of the CheckListItem. */
|
5
|
+
checked: boolean;
|
6
|
+
/** item name of the CheckListItem. */
|
7
|
+
item: string;
|
8
|
+
}
|
9
|
+
export interface ISequenceInfo {
|
10
|
+
format?: string;
|
11
|
+
startfrom?: number;
|
12
|
+
}
|
13
|
+
export interface IAuditAuditorInfo {
|
14
|
+
/** a value indicating whether audit is enabled */
|
15
|
+
/** the rate in percentage audit shall be performed */
|
16
|
+
auditRate?: number;
|
17
|
+
/** list of default work member */
|
18
|
+
auditors?: {
|
19
|
+
name: string;
|
20
|
+
id: string;
|
21
|
+
}[];
|
22
|
+
}
|
23
|
+
export interface IWorkType extends ILoadable {
|
24
|
+
/** id of the workType */
|
25
|
+
id: string;
|
26
|
+
sequence?: ISequenceInfo;
|
27
|
+
/** name of the workType */
|
28
|
+
name?: string;
|
29
|
+
/** description of the workType */
|
30
|
+
description?: string;
|
31
|
+
defaultDue?: number;
|
32
|
+
status?: string;
|
33
|
+
defaultFolder?: {
|
34
|
+
id: string;
|
35
|
+
name: string;
|
36
|
+
};
|
37
|
+
document?: {
|
38
|
+
id: string;
|
39
|
+
name: string;
|
40
|
+
};
|
41
|
+
requester?: {
|
42
|
+
name: string;
|
43
|
+
id: string;
|
44
|
+
}[];
|
45
|
+
reviewers?: {
|
46
|
+
name: string;
|
47
|
+
id: string;
|
48
|
+
}[];
|
49
|
+
accepters?: {
|
50
|
+
name: string;
|
51
|
+
id: string;
|
52
|
+
}[];
|
53
|
+
/** audit info of the workType */
|
54
|
+
audit?: IAuditAuditorInfo;
|
55
|
+
rejectReasons?: string[];
|
56
|
+
errorTypes?: string[];
|
57
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/worktype/interfaces.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { IWorkType } from "./interfaces";
|
2
|
+
import { LoadOptions } from "@voplus/morpho-data";
|
3
|
+
import { StoreActionOptions } from "@voplus/morpho-data";
|
4
|
+
/** Custom load contact options type */
|
5
|
+
export declare type LoadWorkTypeOptions = {
|
6
|
+
/** Comma separated include options e.g. path */
|
7
|
+
includes?: string;
|
8
|
+
} & LoadOptions<IWorkType>;
|
9
|
+
export declare type WorkTypeCreateDataOptions = {
|
10
|
+
/** workspaceId of the new workType */
|
11
|
+
workspaceId: string;
|
12
|
+
/** name of the new workType */
|
13
|
+
Name: string;
|
14
|
+
};
|
15
|
+
export declare type SequenceEditOptions = {
|
16
|
+
/** gets the format of the sequence */
|
17
|
+
Format?: string;
|
18
|
+
/** gets the reset value of the sequence */
|
19
|
+
/** gets the start value of the sequence */
|
20
|
+
StartFrom?: number;
|
21
|
+
};
|
22
|
+
export declare type WorkTypeCreateOptions = {
|
23
|
+
data: WorkTypeCreateDataOptions;
|
24
|
+
} & StoreActionOptions;
|
25
|
+
export interface WorkTypeEditDataOptions {
|
26
|
+
/** name of the edit workType. */
|
27
|
+
Name?: string;
|
28
|
+
/** gets the description of the work */
|
29
|
+
Description?: string;
|
30
|
+
/** gets the format of the work number */
|
31
|
+
Sequence?: SequenceEditOptions;
|
32
|
+
/** gets the default folder id of the work type */
|
33
|
+
DefaultFolderId?: string;
|
34
|
+
/** gets the document id of the work type */
|
35
|
+
DocumentId?: string;
|
36
|
+
/** gets the default due date in this number of days from work create date */
|
37
|
+
DefaultDue?: number;
|
38
|
+
/** gets the audit rate of the work type */
|
39
|
+
AuditRate?: number;
|
40
|
+
/** gets list of unit ids who can rquest this job */
|
41
|
+
RequesterIds?: string[];
|
42
|
+
/** gets a list of accepter ids */
|
43
|
+
AccepterIds?: string[];
|
44
|
+
/** gets a list of reviewer ids */
|
45
|
+
ReviewerIds?: string[];
|
46
|
+
/** gets list of auditor ids */
|
47
|
+
AuditorIds?: string[];
|
48
|
+
/** gets or the reject reasons of the work type */
|
49
|
+
RejectReasons?: string[];
|
50
|
+
/** gets or the error types of the work type */
|
51
|
+
ErrorTypes?: string[];
|
52
|
+
}
|
53
|
+
export declare type WorkTypeEditOptions = {
|
54
|
+
data: WorkTypeEditDataOptions;
|
55
|
+
} & StoreActionOptions;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/worktype/types.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export interface IWorkTypeCompletedWork {
|
2
|
+
/** date of the completed-works. */
|
3
|
+
date: string;
|
4
|
+
/** total of the completed-works */
|
5
|
+
total: number;
|
6
|
+
}
|
7
|
+
/** React hook to retrieve worktype summary report.
|
8
|
+
* @param {string} id - id of the dashboard
|
9
|
+
*/
|
10
|
+
export declare const useWorkTypeCompletedWork: (id: string, effect: (data: IWorkTypeCompletedWork[]) => void) => void;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { useDeepDepEffect } from "@voplus/morpho-data";
|
2
|
+
import { useDocumentStore } from "@voplus/morpho-document-core";
|
3
|
+
/** React hook to retrieve worktype summary report.
|
4
|
+
* @param {string} id - id of the dashboard
|
5
|
+
*/
|
6
|
+
export const useWorkTypeCompletedWork = (id, effect) => {
|
7
|
+
const documents = useDocumentStore();
|
8
|
+
return useDeepDepEffect(() => {
|
9
|
+
documents.endpoint.get(`/api/workspaces/reports/completed-works/${id}`).then((r) => {
|
10
|
+
r.json().then((result) => effect(result));
|
11
|
+
});
|
12
|
+
}, [id]);
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=useWorkTypeCompletedWorkEffect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useWorkTypeCompletedWorkEffect.js","sourceRoot":"","sources":["../../../src/data/worktype/useWorkTypeCompletedWorkEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAShE;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACvC,EAAU,EACV,MAAgD,EAC/C,EAAE;IACH,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,gBAAgB,CAAC,GAAG,EAAE;QAC5B,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,2CAA2C,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;YAClF,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACV,CAAC,CAAC"}
|
@@ -78,9 +78,7 @@ const Board = (props) => {
|
|
78
78
|
frame.PreExtra = observe(() => (React.createElement(QuickSearch, { title: "Search", onChange: onSearch })));
|
79
79
|
frame.Extra = observe(() => (React.createElement(FilterOptionsContext.Provider, { value: list.filters },
|
80
80
|
React.createElement(SortViewDropdown, { onSort: (sort) => list.triggerSort(sort), className: "margin-left-10" }),
|
81
|
-
React.createElement(FilterView, { columns: [React.createElement(CreateDateFilter, { key: "createDateFilter" }),
|
82
|
-
React.createElement(FlagFilter, { key: "flagFilter" }),
|
83
|
-
React.createElement(DocumentStatusFilter, { key: "documentStatusFilter" }),], className: "margin-left-10" }))));
|
81
|
+
React.createElement(FilterView, { columns: [React.createElement(CreateDateFilter, { key: "createDateFilter" }), React.createElement(FlagFilter, { key: "flagFilter" }), React.createElement(DocumentStatusFilter, { key: "documentStatusFilter" }),], className: "margin-left-10" }))));
|
84
82
|
}
|
85
83
|
};
|
86
84
|
export default Board;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACV,MAAM,6CAA6C,CAAC;AAErD,OAAO,gBAAgB,MAAM,2EAA2E,CAAC;AACzG,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE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CAAC,GAAG,EAAE,CAAC,CAAC,oBAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,QAAQ,EAAE,QAAQ,GAAI,CAAC,CAAC,CAAA;QACpF,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAC3B,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,OAAO;YACjD,oBAAC,gBAAgB,IAChB,MAAM,EAAE,CAAC,IAAqB,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EACzD,SAAS,EAAC,gBAAgB,GACzB;YACF,oBAAC,UAAU,IACV,OAAO,EAAE,CAAC,oBAAC,gBAAgB,IAAC,GAAG,EAAC,kBAAkB,GAAG,EACrD,oBAAC,UAAU,IAAC,GAAG,EAAC,YAAY,GAAG,EAC/B,oBAAC,oBAAoB,IAAC,GAAG,EAAC,sBAAsB,GAAG,EAAE,EACrD,SAAS,EAAC,gBAAgB,GACzB,CAC6B,CAChC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
@@ -41,7 +41,7 @@ const AgendaItem = (props) => {
|
|
41
41
|
React.createElement("span", { className: classnames("agenda-item-index", { show: multiple || state.readonly }) }, `${(index || 0) + 1}.`))),
|
42
42
|
React.createElement(DocumentHeader, { id: id, clickNameEffect: "edit", autoSaveName: true, flagVisible: false, statusVisible: false, preVisible: false, tagsVisible: false, tools: React.createElement(ToolBar, { id: id }, !state.readonly && (React.createElement(Tooltip, { title: "Edit agenda description" },
|
43
43
|
React.createElement(Button, { size: "small", shape: "circle", onClick: () => runInAction(() => {
|
44
|
-
state.description = agenda.description || "";
|
44
|
+
// state.description = agenda.description || "";
|
45
45
|
state.desVisible = true;
|
46
46
|
}) },
|
47
47
|
React.createElement(FAIcon, { icon: faCommentAltEdit, color: "#666" }))))), quickDataBarVisible: false }),
|
@@ -68,7 +68,7 @@ const AgendaItem = (props) => {
|
|
68
68
|
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({
|
69
69
|
Description: state.description,
|
70
70
|
}) },
|
71
|
-
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, defaultHtml:
|
71
|
+
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, defaultHtml: agenda.description || "", scroll: true, className: "agenda-description_mirror", onChange: (opt) => runInAction(() => (state.description =
|
72
72
|
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML)) }))))));
|
73
73
|
function onFoldIconClick() {
|
74
74
|
state.toggleExpand();
|
@@ -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,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;A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AC,CAAC,CAAC,CACX,oBAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,EAAE,SAAS,EAAC,iBAAiB,GAAG,CACnD,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,CAAC,QAAQ;gBACb,CAAC,QAAQ;oBACT,CAAC,KAAK,CAAC,QAAQ;oBACf,iBAAiB;oBACjB,iBAAiB,CAChB,8BAAM,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;wBACtE,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAC,MAAM,GAAG,CAC/B,CACP;gBACF,8BAAM,SAAS,EAAE,UAAU,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC,IACpF,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CACjB,CACS,CACjB;YAED,oBAAC,cAAc,IACd,EAAE,EAAE,EAAE,EACN,eAAe,EAAC,MAAM,EACtB,YAAY,QACZ,WAAW,EAAE,KAAK,EAClB,aAAa,EAAE,KAAK,EACpB,UAAU,EAAE,KAAK,EACjB,WAAW,EAAE,KAAK,EAClB,KAAK,EACJ,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,IACb,CAAC,KAAK,CAAC,QAAQ,IAAI,CACnB,oBAAC,OAAO,IAAC,KAAK,EAAC,yBAAyB;oBACvC,oBAAC,MAAM,IACN,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,QAAQ,EACd,OAAO,EAAE,GAAG,EAAE,CACb,WAAW,CAAC,GAAG,EAAE;4BAChB,
|
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,O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E,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC,EAC7D,cAAc,EAAE,KAAK,CAAC,OAAO,EAC7B,IAAI,EAAE,GAAG,EAAE,CACV,KAAK,CAAC,MAAM,CAAC;gBACZ,WAAW,EAAE,KAAK,CAAC,WAAW;aAC9B,CAAC;YAGH,oBAAC,WAAW,IACX,YAAY,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAC/B,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,EAAE,EACrC,MAAM,QACN,SAAS,EAAC,2BAA2B,EACrC,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CACjB,WAAW,CACV,GAAG,EAAE,CACJ,CAAC,KAAK,CAAC,WAAW;oBACjB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,KAAK,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAC7E,GAED,CACK,CACR,CACI,CACN,CAAC,CAAC;IAEH,SAAS,eAAe;QACvB,KAAK,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,UAAU,CAAC"}
|
@@ -72,8 +72,7 @@ const MeetingList = (props) => {
|
|
72
72
|
frame.Extra = observe(() => (React.createElement(FilterOptionsContext.Provider, { value: list.filters },
|
73
73
|
quickSearch ? undefined : (React.createElement(QuickSearch, { title: "Search", className: "view-title", onChange: onQuickSearch })),
|
74
74
|
React.createElement(SortViewDropdown, { onSort: (sort) => list.triggerSort(sort), className: "margin-left-10" }),
|
75
|
-
React.createElement(FilterView, { columns: [React.createElement(AssigneeViewFilter, { key: "AssigneeViewFilter" }),
|
76
|
-
React.createElement(StartDateFilter, { key: "StartDateFilter", title: "MeetingDate" }),], className: "margin-left-10" }),
|
75
|
+
React.createElement(FilterView, { columns: [React.createElement(AssigneeViewFilter, { key: "AssigneeViewFilter" }), React.createElement(StartDateFilter, { key: "StartDateFilter", title: "MeetingDate" }),], className: "margin-left-10" }),
|
77
76
|
React.createElement(AddForm, { formViewTitle: "Add Meeting", formView: React.createElement(NewMeetingForm, { parentId: parentId, simple: true }), onAdd: (addFormElement) => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(addFormElement, { span: 12 }), onClose: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside() }))));
|
78
77
|
}
|
79
78
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAEtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,WAAW,MAAM,sEAAsE,CAAC;AAE/F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,gBA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AAG,EAAE,EAC/D,SAAS,EAAC,gBAAgB,GACzB;YACF,oBAAC,OAAO,IACP,aAAa,EAAC,aAAa,EAC3B,QAAQ,EAAE,oBAAC,cAAc,IAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAG,EACvD,KAAK,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAChF,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,GACxC,CAC6B,CAChC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
@@ -1,9 +1,17 @@
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/index.less";
|
1
2
|
:global {
|
2
|
-
.my-
|
3
|
-
background-color: #fff;
|
3
|
+
.my-notifications {
|
4
|
+
//background-color: #fff;
|
4
5
|
padding: 0 !important;
|
5
6
|
.list-view-main {
|
6
|
-
background-color:
|
7
|
+
background-color: @background-color-base;
|
8
|
+
}
|
9
|
+
.list-view-header {
|
10
|
+
background-color: @background-color-base;
|
11
|
+
.view-title {
|
12
|
+
color: @heading-color;
|
13
|
+
font-size: @heading-3-size;
|
14
|
+
}
|
7
15
|
}
|
8
16
|
}
|
9
17
|
.notification-card-exit {
|
@@ -55,8 +55,8 @@ const TaskSummaryCard = (props) => {
|
|
55
55
|
React.createElement(FilterView, { columns: [React.createElement(DocumentStatusFilter, { key: "DocumentStatus" })] })),
|
56
56
|
React.createElement("span", { className: "menu-refresh", onClick: props.onReload },
|
57
57
|
React.createElement(FAIcon, { icon: faRedo })))));
|
58
|
-
return observe(() => (React.createElement(DCard, { title: "TaskSummary", menu: menu, className: styles["task-summary-card"] }, state.loading ? (React.createElement("div", { className: "card-loading" },
|
59
|
-
React.createElement(Spin, { tip: "Loading...", indicator: React.createElement(LoadingOutlined, null) }))) :
|
58
|
+
return observe(() => (React.createElement(DCard, { title: "TaskSummary", menu: menu, className: styles["task-summary-card"] }, (pieData && pieData.length) ? (React.createElement("div", { ref: divEl })) : state.loading ? (React.createElement("div", { className: "card-loading" },
|
59
|
+
React.createElement(Spin, { tip: "Loading...", indicator: React.createElement(LoadingOutlined, null) }))) : (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })))));
|
60
60
|
};
|
61
61
|
TaskSummaryCard.defaultProps = {
|
62
62
|
width: 400,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/reports/TaskSummaryCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,KAAK,MAAM,2CAA2C,CAAC;AAC9D,OAAO,oBAAoB,MAAM,kEAAkE,CAAC;AACpG,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAA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O,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IAAC,KAAK,EAAC,aAAa,EAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,IAC3E,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAC9B,6BAAK,GAAG,EAAE,KAAK,GAAI,CACnB,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CACnB,6BAAK,SAAS,EAAC,cAAc;QAC5B,oBAAC,IAAI,IAAC,GAAG,EAAC,YAAY,EAAC,SAAS,EAAE,oBAAC,eAAe,OAAG,GAAI,CACpD,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,GAAI,CAC9C,CACM,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,CAAC,YAAY,GAAG;IAC9B,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,GAAG;CACX,CAAC;AACF,eAAe,eAAe,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import "./index.less";
|
3
|
+
declare const NewWorkErrorDialog: (props: {
|
4
|
+
WorkId: string;
|
5
|
+
className?: string | undefined;
|
6
|
+
onSubmitSave?: ((params?: any) => void) | undefined;
|
7
|
+
onCancel?: (() => void) | undefined;
|
8
|
+
}) => JSX.Element;
|
9
|
+
export default NewWorkErrorDialog;
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import "./index.less";
|
2
|
+
import { Button, Form, Row, Select, Space, } from "@voplus/antd";
|
3
|
+
import React, { useState } from "react";
|
4
|
+
import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
5
|
+
import Modal from "@voplus/morpho-ui/es/components/Modal";
|
6
|
+
import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
|
7
|
+
import { State } from "./state";
|
8
|
+
import classnames from "classnames";
|
9
|
+
import { observe } from "@voplus/morpho-ui";
|
10
|
+
import { runInAction } from "mobx";
|
11
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
12
|
+
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
13
|
+
import { useWorkErrorStore } from "../../../../data/workerror";
|
14
|
+
// import { useWorkspaceStore } from "../../../../data/workspace";
|
15
|
+
const NewWorkErrorDialog = (props) => {
|
16
|
+
// const workspaces = useWorkspaceStore();
|
17
|
+
const { Option } = Select;
|
18
|
+
const [state] = useState(new State());
|
19
|
+
const { user } = useApplicationContext();
|
20
|
+
const store = useWorkErrorStore();
|
21
|
+
const asideContext = useAsideContentContext();
|
22
|
+
return observe(() => (React.createElement(Modal, { title: "New Error Dialog", visible: true, destroyOnClose: true, closable: false, footer: null, onCancel: props.onCancel },
|
23
|
+
React.createElement("div", { className: classnames("new-error-form", props.className) },
|
24
|
+
React.createElement(Form, { layout: "vertical" },
|
25
|
+
React.createElement(React.Fragment, null,
|
26
|
+
React.createElement(Form.Item, { label: "type for your error" },
|
27
|
+
React.createElement(Select, { defaultValue: "Type1", onChange: (value) => state.params.Type = value },
|
28
|
+
React.createElement(Option, { value: "Type1" }, "Type1"),
|
29
|
+
React.createElement(Option, { value: "Type2" }, "Type2"),
|
30
|
+
React.createElement(Option, { value: "Type3" }, "Type3"))),
|
31
|
+
React.createElement(Form.Item, { label: "Severity for your error" },
|
32
|
+
React.createElement(Select, { defaultValue: "S0", onChange: (value) => {
|
33
|
+
state.params.Severity = value;
|
34
|
+
} },
|
35
|
+
React.createElement(Option, { value: "S0" }, "S0"),
|
36
|
+
React.createElement(Option, { value: "S1" }, "S1"),
|
37
|
+
React.createElement(Option, { value: "S2" }, "S2"))),
|
38
|
+
React.createElement(Form.Item, { label: "Causer of your error" },
|
39
|
+
React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, onChange: (ids) => { state.params.CauserIds = ids; } })),
|
40
|
+
React.createElement(Form.Item, { label: "Description of your error" },
|
41
|
+
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", onChange: (opt) => (state.params.Description =
|
42
|
+
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })),
|
43
|
+
React.createElement(Form.Item, null,
|
44
|
+
React.createElement(Row, { justify: "end" },
|
45
|
+
React.createElement(Space, null,
|
46
|
+
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
47
|
+
React.createElement(Button, { type: "primary", loading: !!state.loading, onClick: onSubmit }, "Submit"))))))))));
|
48
|
+
async function onSubmit() {
|
49
|
+
// if (!state.params.Name) return message.warning("Title is required");
|
50
|
+
runInAction(() => (state.loading = true));
|
51
|
+
const res = await store.create({
|
52
|
+
data: { ...state.params, WorkId: props.WorkId },
|
53
|
+
error: "message",
|
54
|
+
});
|
55
|
+
runInAction(() => {
|
56
|
+
state.loading = false;
|
57
|
+
state.params = state.Params;
|
58
|
+
});
|
59
|
+
if (props.onSubmitSave)
|
60
|
+
props.onSubmitSave(state.params);
|
61
|
+
}
|
62
|
+
// cancel add error
|
63
|
+
function onCancel() {
|
64
|
+
state.params = state.Params;
|
65
|
+
if (props.onCancel)
|
66
|
+
props.onCancel();
|
67
|
+
}
|
68
|
+
};
|
69
|
+
export default NewWorkErrorDialog;
|
70
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkErrorDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAEH,MAAM,EAEN,IAAI,EAEJ,GAAG,EACH,MAAM,EACN,KAAK,GAER,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,KAAK,MAAM,uCAAuC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
@import "~@voplus/antd/es/style/themes/default.less";
|
3
|
+
:global {
|
4
|
+
.new-error-form {
|
5
|
+
.ant-select {
|
6
|
+
width: 100%;
|
7
|
+
}
|
8
|
+
.proseMirror {
|
9
|
+
height: 10rem !important;
|
10
|
+
.editor-toolbar {
|
11
|
+
padding: 0.2rem 0.65rem;
|
12
|
+
}
|
13
|
+
.ProseMirror {
|
14
|
+
padding: 1rem 1.25rem;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare class State {
|
2
|
+
constructor();
|
3
|
+
Params: {
|
4
|
+
Type: string;
|
5
|
+
Severity: string;
|
6
|
+
CauserIds: string[];
|
7
|
+
Description: string;
|
8
|
+
};
|
9
|
+
params: {
|
10
|
+
Type: string;
|
11
|
+
Severity: string;
|
12
|
+
CauserIds: string[];
|
13
|
+
Description: string;
|
14
|
+
};
|
15
|
+
loading: boolean;
|
16
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { makeObservable, observable } from "mobx";
|
3
|
+
export class State {
|
4
|
+
constructor() {
|
5
|
+
Object.defineProperty(this, "Params", {
|
6
|
+
enumerable: true,
|
7
|
+
configurable: true,
|
8
|
+
writable: true,
|
9
|
+
value: {
|
10
|
+
Type: "Type1",
|
11
|
+
Severity: "S1",
|
12
|
+
CauserIds: [""],
|
13
|
+
Description: "",
|
14
|
+
}
|
15
|
+
});
|
16
|
+
Object.defineProperty(this, "params", {
|
17
|
+
enumerable: true,
|
18
|
+
configurable: true,
|
19
|
+
writable: true,
|
20
|
+
value: this.Params
|
21
|
+
});
|
22
|
+
Object.defineProperty(this, "loading", {
|
23
|
+
enumerable: true,
|
24
|
+
configurable: true,
|
25
|
+
writable: true,
|
26
|
+
value: false
|
27
|
+
});
|
28
|
+
makeObservable(this);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
__decorate([
|
32
|
+
observable
|
33
|
+
], State.prototype, "params", void 0);
|
34
|
+
__decorate([
|
35
|
+
observable
|
36
|
+
], State.prototype, "loading", void 0);
|
37
|
+
//# sourceMappingURL=state.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkErrorDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlD,MAAM,OAAO,KAAK;IACjB;QAGA;;;;mBAAgB;gBACf,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC,EAAE,CAAC;gBACf,WAAW,EAAE,EAAE;aACf;WAAC;QACU;;;;mBAAgB,IAAI,CAAC,MAAM;WAAC;QAC5B;;;;mBAAiB,KAAK;WAAC;QATlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CASD;AAFY;IAAX,UAAU;qCAA6B;AAC5B;IAAX,UAAU;sCAAwB"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import "./index.less";
|
3
|
+
declare const RejectWorkDialog: (props: {
|
4
|
+
parentId?: string | undefined;
|
5
|
+
className?: string | undefined;
|
6
|
+
onSubmitSave?: ((params?: any) => void) | undefined;
|
7
|
+
onCancel?: (() => void) | undefined;
|
8
|
+
}) => JSX.Element;
|
9
|
+
export default RejectWorkDialog;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import "./index.less";
|
2
|
+
import { Button, Form, Row, Select, Space, } from "@voplus/antd";
|
3
|
+
import React, { useState } from "react";
|
4
|
+
import Modal from "@voplus/morpho-ui/es/components/Modal";
|
5
|
+
import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
|
6
|
+
import { State } from "./state";
|
7
|
+
import classnames from "classnames";
|
8
|
+
import { observe } from "@voplus/morpho-ui";
|
9
|
+
import { runInAction } from "mobx";
|
10
|
+
// import { useWorkspaceStore } from "../../../../data/workspace";
|
11
|
+
const RejectWorkDialog = (props) => {
|
12
|
+
// const workspaces = useWorkspaceStore();
|
13
|
+
const { Option } = Select;
|
14
|
+
const [state] = useState(new State());
|
15
|
+
return observe(() => (React.createElement(Modal, { title: "Reject Work Dialog", visible: true, destroyOnClose: true, closable: false, footer: null, onCancel: props.onCancel },
|
16
|
+
React.createElement("div", { className: classnames("new-reject-form", props.className) },
|
17
|
+
React.createElement(Form, { layout: "vertical" },
|
18
|
+
React.createElement(React.Fragment, null,
|
19
|
+
React.createElement(Form.Item, { label: "Reason for your reject work" },
|
20
|
+
React.createElement(Select, { defaultValue: "Reason1", onChange: (value) => state.params.Reason = value },
|
21
|
+
React.createElement(Option, { value: "Reason1" }, "Reason1"),
|
22
|
+
React.createElement(Option, { value: "Reason2" }, "Reason2"),
|
23
|
+
React.createElement(Option, { value: "Reason3" }, "Reason3"))),
|
24
|
+
React.createElement(Form.Item, { label: "Description of your reject work" },
|
25
|
+
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", onChange: (opt) => (state.params.Description =
|
26
|
+
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })),
|
27
|
+
React.createElement(Form.Item, null,
|
28
|
+
React.createElement(Row, { justify: "end" },
|
29
|
+
React.createElement(Space, null,
|
30
|
+
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
31
|
+
React.createElement(Button, { type: "primary", loading: !!state.loading, onClick: onSubmit }, "Submit"))))))))));
|
32
|
+
async function onSubmit() {
|
33
|
+
// if (!state.params.Name) return message.warning("Title is required");
|
34
|
+
runInAction(() => (state.loading = true));
|
35
|
+
// const res = await workspaces.create({
|
36
|
+
// data: { ...state.params, ParentId: props.parentId },
|
37
|
+
// error: "message",
|
38
|
+
// });
|
39
|
+
runInAction(() => {
|
40
|
+
state.loading = false;
|
41
|
+
state.params = state.Params;
|
42
|
+
});
|
43
|
+
if (props.onSubmitSave)
|
44
|
+
props.onSubmitSave(state.params);
|
45
|
+
}
|
46
|
+
// cancel add reject work
|
47
|
+
function onCancel() {
|
48
|
+
state.params = state.Params;
|
49
|
+
if (props.onCancel)
|
50
|
+
props.onCancel();
|
51
|
+
}
|
52
|
+
};
|
53
|
+
export default RejectWorkDialog;
|
54
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/RejectWorkDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACH,MAAM,EACN,IAAI,EAEJ,GAAG,EACH,MAAM,EACN,KAAK,GAER,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,MAAM,uCAAuC,CAAC;AAC1D,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,kEAAkE;AAElE,MAAM,gBAAgB,GAAG,CAAC,KAKzB,EAAE,EAAE;IACD,0CAA0C;IAC1C,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACjB,oBAAC,KAAK,IACF,KAAK,EAAC,oBAAoB,EAC1B,OAAO,EAAE,IAAI,EACb,cAAc,EAAE,IAAI,EACpB,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ;QAExB,6BACI,SAAS,EAAE,UAAU,CAAC,iBAAiB,E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ACnB,uEAAuE;QACvE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;QAC1C,wCAAwC;QACxC,2DAA2D;QAC3D,wBAAwB;QACxB,MAAM;QACN,WAAW,CAAC,GAAG,EAAE;YACb,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAChC,CAAC,CAAC,CAAC;QACH,IAAI,KAAK,CAAC,YAAY;YAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IACD,yBAAyB;IACzB,SAAS,QAAQ;QACb,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC;AACL,CAAC,CAAC;AACF,eAAe,gBAAgB,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@import "../../../../style/common.less";
|
2
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
3
|
+
:global {
|
4
|
+
.new-reject-form {
|
5
|
+
.ant-select {
|
6
|
+
width: 100%;
|
7
|
+
}
|
8
|
+
.proseMirror {
|
9
|
+
height: 10rem !important;
|
10
|
+
.editor-toolbar {
|
11
|
+
padding: 0.2rem 0.65rem;
|
12
|
+
}
|
13
|
+
.ProseMirror {
|
14
|
+
padding: 1rem 1.25rem;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|