@voplus/morpho-workspace 4.0.0 → 4.0.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/Modules.d.ts +6 -6
- package/es/Modules.js +34 -34
- package/es/WorkSpaceUIService.d.ts +7 -7
- package/es/WorkSpaceUIService.js +8 -8
- package/es/components/AssignPeople/index.d.ts +3 -3
- package/es/components/AssignPeople/index.js +23 -23
- package/es/components/TeamTaskList/index.d.ts +8 -8
- package/es/components/TeamTaskList/index.js +185 -185
- package/es/components/TimeLog/index.d.ts +5 -5
- package/es/components/TimeLog/index.js +73 -73
- package/es/components/TimeLog/index.less +86 -86
- package/es/controls/AssignButton/index.d.ts +9 -9
- package/es/controls/AssignButton/index.js +18 -18
- package/es/controls/Corner/index.d.ts +9 -9
- package/es/controls/Corner/index.js +9 -9
- package/es/controls/Corner/index.less +7 -7
- package/es/controls/FolderEdit/index.d.ts +8 -8
- package/es/controls/FolderEdit/index.js +13 -13
- package/es/controls/FolderEdit/index.less +39 -39
- package/es/controls/InlineSearch/index.d.ts +6 -6
- package/es/controls/InlineSearch/index.js +41 -41
- package/es/controls/InlineSearch/index.less +10 -10
- package/es/controls/MoreOperateDropdown/index.d.ts +29 -29
- package/es/controls/MoreOperateDropdown/index.js +89 -89
- package/es/controls/MoreOperateDropdown/index.less +12 -12
- package/es/controls/StickyAddButton/index.d.ts +10 -10
- package/es/controls/StickyAddButton/index.js +13 -13
- package/es/controls/StickyAddButton/index.less +22 -22
- package/es/controls/filters/AssigneeViewFilter/index.d.ts +4 -4
- package/es/controls/filters/AssigneeViewFilter/index.js +47 -47
- package/es/controls/filters/AssigneeViewFilter/index.less +24 -24
- package/es/controls/filters/AssigneeViewFilter/state.d.ts +13 -13
- package/es/controls/filters/AssigneeViewFilter/state.js +43 -43
- package/es/controls/filters/DueDateFilter/index.d.ts +3 -3
- package/es/controls/filters/DueDateFilter/index.js +21 -21
- package/es/controls/filters/DueDateFilter/state.d.ts +11 -11
- package/es/controls/filters/DueDateFilter/state.js +38 -38
- package/es/controls/filters/EventsFilter/index.d.ts +5 -5
- package/es/controls/filters/EventsFilter/index.js +30 -30
- package/es/controls/filters/EventsFilter/state.d.ts +19 -19
- package/es/controls/filters/EventsFilter/state.js +55 -55
- package/es/controls/filters/MemberTaskDueDateFilter/index.d.ts +6 -6
- package/es/controls/filters/MemberTaskDueDateFilter/index.js +27 -27
- package/es/controls/filters/MemberTaskDueDateFilter/state.d.ts +37 -37
- package/es/controls/filters/MemberTaskDueDateFilter/state.js +78 -78
- package/es/controls/filters/StartDateFilter/index.d.ts +10 -10
- package/es/controls/filters/StartDateFilter/index.js +24 -24
- package/es/controls/filters/StartDateFilter/state.d.ts +11 -11
- package/es/controls/filters/StartDateFilter/state.js +38 -38
- package/es/controls/filters/TaskFilter/index.d.ts +5 -5
- package/es/controls/filters/TaskFilter/index.js +20 -20
- package/es/controls/filters/TaskFilter/state.d.ts +17 -17
- package/es/controls/filters/TaskFilter/state.js +55 -55
- package/es/controls/filters/TaskStatusFilter/index.d.ts +6 -6
- package/es/controls/filters/TaskStatusFilter/index.js +27 -27
- package/es/controls/filters/TaskStatusFilter/state.d.ts +19 -19
- package/es/controls/filters/TaskStatusFilter/state.js +58 -58
- package/es/controls/filters/WorkStatusFilter/index.d.ts +5 -5
- package/es/controls/filters/WorkStatusFilter/index.js +28 -28
- package/es/controls/filters/WorkStatusFilter/state.d.ts +19 -19
- package/es/controls/filters/WorkStatusFilter/state.js +58 -58
- package/es/controls/filters/WorkTypeStatusFilter/index.d.ts +3 -3
- package/es/controls/filters/WorkTypeStatusFilter/index.js +22 -22
- package/es/controls/filters/WorkTypeStatusFilter/state.d.ts +18 -18
- package/es/controls/filters/WorkTypeStatusFilter/state.js +44 -44
- package/es/controls/filters/WorkTypesFilter/index.d.ts +7 -7
- package/es/controls/filters/WorkTypesFilter/index.js +29 -29
- package/es/controls/filters/WorkTypesFilter/state.d.ts +16 -16
- package/es/controls/filters/WorkTypesFilter/state.js +70 -70
- package/es/controls/filters/index.d.ts +8 -8
- package/es/controls/filters/index.js +8 -8
- package/es/data/board/BoardColumnStore.d.ts +11 -11
- package/es/data/board/BoardColumnStore.js +21 -21
- package/es/data/board/BoardStore.d.ts +11 -11
- package/es/data/board/BoardStore.js +21 -21
- package/es/data/board/contexts/BoardListContextState/index.d.ts +17 -17
- package/es/data/board/contexts/BoardListContextState/index.js +38 -38
- package/es/data/board/hooks.d.ts +22 -22
- package/es/data/board/hooks.js +44 -44
- package/es/data/board/index.d.ts +6 -6
- package/es/data/board/index.js +6 -6
- package/es/data/board/interfaces.d.ts +31 -31
- package/es/data/board/interfaces.js +1 -1
- package/es/data/board/metas.d.ts +13 -13
- package/es/data/board/metas.js +26 -26
- package/es/data/board/mock.d.ts +3 -3
- package/es/data/board/mock.js +57 -57
- package/es/data/board/types.d.ts +27 -27
- package/es/data/board/types.js +1 -1
- package/es/data/calendar/CalendarStore.d.ts +48 -48
- package/es/data/calendar/CalendarStore.js +88 -88
- package/es/data/calendar/hooks.d.ts +13 -13
- package/es/data/calendar/hooks.js +24 -24
- package/es/data/calendar/index.d.ts +3 -3
- package/es/data/calendar/index.js +3 -3
- package/es/data/calendar/interfaces.d.ts +16 -16
- package/es/data/calendar/interfaces.js +1 -1
- package/es/data/calendar/mock.d.ts +2 -2
- package/es/data/calendar/mock.js +25 -25
- package/es/data/contexts/StoreContext/index.d.ts +3 -3
- package/es/data/contexts/StoreContext/index.js +3 -3
- package/es/data/meeting/AgendaStore.d.ts +12 -12
- package/es/data/meeting/AgendaStore.js +21 -21
- package/es/data/meeting/MeetingStore.d.ts +15 -15
- package/es/data/meeting/MeetingStore.js +37 -37
- package/es/data/meeting/hooks.d.ts +25 -25
- package/es/data/meeting/hooks.js +48 -48
- package/es/data/meeting/index.d.ts +5 -5
- package/es/data/meeting/index.js +5 -5
- package/es/data/meeting/interfaces.d.ts +37 -37
- package/es/data/meeting/interfaces.js +1 -1
- package/es/data/meeting/metas.d.ts +24 -24
- package/es/data/meeting/metas.js +59 -59
- package/es/data/meeting/types.d.ts +27 -27
- package/es/data/meeting/types.js +1 -1
- package/es/data/notification/NotificationStore.d.ts +26 -26
- package/es/data/notification/NotificationStore.js +74 -74
- package/es/data/notification/hooks.d.ts +5 -5
- package/es/data/notification/hooks.js +14 -14
- package/es/data/notification/index.d.ts +4 -4
- package/es/data/notification/index.js +4 -4
- package/es/data/notification/interfaces.d.ts +16 -16
- package/es/data/notification/interfaces.js +1 -1
- package/es/data/notification/types.d.ts +13 -13
- package/es/data/notification/types.js +1 -1
- package/es/data/reports/useEstimatedTimeEffect.d.ts +13 -13
- package/es/data/reports/useEstimatedTimeEffect.js +15 -15
- package/es/data/reports/useTaskSummaryEffect.d.ts +12 -12
- package/es/data/reports/useTaskSummaryEffect.js +25 -25
- package/es/data/task/metas.d.ts +15 -15
- package/es/data/task/metas.js +36 -36
- package/es/data/work/WorkStore.d.ts +23 -23
- package/es/data/work/WorkStore.js +57 -57
- package/es/data/work/hook.d.ts +9 -9
- package/es/data/work/hook.js +19 -19
- package/es/data/work/index.d.ts +3 -3
- package/es/data/work/index.js +3 -3
- package/es/data/work/interfaces.d.ts +68 -68
- package/es/data/work/interfaces.js +1 -1
- package/es/data/work/metas.d.ts +16 -16
- package/es/data/work/metas.js +41 -41
- package/es/data/work-schedule/WorkScheduleStore.d.ts +34 -34
- package/es/data/work-schedule/WorkScheduleStore.js +123 -123
- package/es/data/work-schedule/hooks.d.ts +10 -10
- package/es/data/work-schedule/hooks.js +18 -18
- package/es/data/work-schedule/index.d.ts +4 -4
- package/es/data/work-schedule/index.js +4 -4
- package/es/data/work-schedule/interfaces.d.ts +21 -21
- package/es/data/work-schedule/interfaces.js +1 -1
- package/es/data/work-schedule/metas.d.ts +9 -9
- package/es/data/work-schedule/metas.js +21 -21
- package/es/data/work-schedule/types.d.ts +29 -29
- package/es/data/work-schedule/types.js +1 -1
- package/es/data/work-schedule/work-schedule-events/index.d.ts +3 -3
- package/es/data/work-schedule/work-schedule-events/index.js +3 -3
- package/es/data/work-schedule/work-schedule-events/useAutoUpdateListData.d.ts +4 -4
- package/es/data/work-schedule/work-schedule-events/useAutoUpdateListData.js +14 -14
- package/es/data/work-schedule/work-schedule-events/useOnDeleteWorkSchedule.d.ts +4 -4
- package/es/data/work-schedule/work-schedule-events/useOnDeleteWorkSchedule.js +15 -15
- package/es/data/work-schedule/work-schedule-events/useOnNewWorkSchedule.d.ts +4 -4
- package/es/data/work-schedule/work-schedule-events/useOnNewWorkSchedule.js +16 -16
- package/es/data/workerror/WorkErrorStore.d.ts +37 -37
- package/es/data/workerror/WorkErrorStore.js +116 -116
- package/es/data/workerror/hook.d.ts +9 -9
- package/es/data/workerror/hook.js +18 -18
- package/es/data/workerror/index.d.ts +4 -4
- package/es/data/workerror/index.js +4 -4
- package/es/data/workerror/interfaces.d.ts +19 -19
- package/es/data/workerror/interfaces.js +1 -1
- package/es/data/workerror/types.d.ts +50 -50
- package/es/data/workerror/types.js +8 -8
- package/es/data/workerror/workerror-events/index.d.ts +3 -3
- package/es/data/workerror/workerror-events/index.js +3 -3
- package/es/data/workerror/workerror-events/useAutoUpdateListData.d.ts +4 -4
- package/es/data/workerror/workerror-events/useAutoUpdateListData.js +12 -12
- package/es/data/workerror/workerror-events/useOnDeleteWorkspace.d.ts +4 -4
- package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js +15 -15
- package/es/data/workerror/workerror-events/useOnNewWorkspace.d.ts +4 -4
- package/es/data/workerror/workerror-events/useOnNewWorkspace.js +15 -15
- package/es/data/workspace/WorkSpaceStore.d.ts +39 -39
- package/es/data/workspace/WorkSpaceStore.js +133 -133
- package/es/data/workspace/hooks.d.ts +13 -13
- package/es/data/workspace/hooks.js +22 -22
- package/es/data/workspace/index.d.ts +4 -4
- package/es/data/workspace/index.js +4 -4
- package/es/data/workspace/interfaces.d.ts +25 -25
- package/es/data/workspace/interfaces.js +1 -1
- package/es/data/workspace/types.d.ts +29 -29
- package/es/data/workspace/types.js +1 -1
- package/es/data/workspace/useWorkSpaceCompletedWorkEffect.d.ts +10 -10
- package/es/data/workspace/useWorkSpaceCompletedWorkEffect.js +13 -13
- package/es/data/workspace/workspace-events/index.d.ts +3 -3
- package/es/data/workspace/workspace-events/index.js +3 -3
- package/es/data/workspace/workspace-events/useAutoUpdateListData.d.ts +4 -4
- package/es/data/workspace/workspace-events/useAutoUpdateListData.js +12 -12
- package/es/data/workspace/workspace-events/useOnDeleteWorkspace.d.ts +4 -4
- package/es/data/workspace/workspace-events/useOnDeleteWorkspace.js +16 -16
- package/es/data/workspace/workspace-events/useOnNewWorkspace.d.ts +4 -4
- package/es/data/workspace/workspace-events/useOnNewWorkspace.js +16 -16
- package/es/data/worktype/WorkTypeStore.d.ts +32 -30
- package/es/data/worktype/WorkTypeStore.js +121 -113
- package/es/data/worktype/WorkTypeStore.js.map +1 -1
- package/es/data/worktype/hook.d.ts +9 -9
- package/es/data/worktype/hook.js +19 -19
- package/es/data/worktype/index.d.ts +4 -4
- package/es/data/worktype/index.js +4 -4
- package/es/data/worktype/interfaces.d.ts +72 -72
- package/es/data/worktype/interfaces.js +1 -1
- package/es/data/worktype/types.d.ts +64 -58
- package/es/data/worktype/types.js +1 -1
- package/es/data/worktype/useWorkTypeCompletedWorkEffect.d.ts +10 -10
- package/es/data/worktype/useWorkTypeCompletedWorkEffect.js +13 -13
- package/es/data/worktype/worktype-events/index.d.ts +3 -3
- package/es/data/worktype/worktype-events/index.js +3 -3
- package/es/data/worktype/worktype-events/useAutoUpdateListData.d.ts +4 -4
- package/es/data/worktype/worktype-events/useAutoUpdateListData.js +14 -14
- package/es/data/worktype/worktype-events/useOnDeleteWorkType.d.ts +4 -4
- package/es/data/worktype/worktype-events/useOnDeleteWorkType.js +15 -15
- package/es/data/worktype/worktype-events/useOnNewWorkType.d.ts +4 -4
- package/es/data/worktype/worktype-events/useOnNewWorkType.js +16 -16
- package/es/index.d.ts +1 -1
- package/es/index.js +12 -12
- package/es/modules/Routes.d.ts +45 -45
- package/es/modules/Routes.js +93 -93
- package/es/modules/board/BoardRouets.d.ts +15 -15
- package/es/modules/board/BoardRouets.js +28 -28
- package/es/modules/board/components/Board/index.d.ts +7 -7
- package/es/modules/board/components/Board/index.js +107 -107
- package/es/modules/board/components/Board/index.less +133 -133
- package/es/modules/board/components/Board/state.d.ts +52 -52
- package/es/modules/board/components/Board/state.js +307 -307
- package/es/modules/board/components/BoardColumn/index.d.ts +4 -4
- package/es/modules/board/components/BoardColumn/index.js +55 -55
- package/es/modules/board/components/BoardColumn/index.less +270 -270
- package/es/modules/board/components/BoardColumn/state.d.ts +65 -65
- package/es/modules/board/components/BoardColumn/state.js +273 -273
- package/es/modules/board/components/BoardPropertiesView/index.d.ts +7 -7
- package/es/modules/board/components/BoardPropertiesView/index.js +49 -49
- package/es/modules/board/components/BoardPropertiesView/index.less +12 -12
- package/es/modules/board/components/DocumentCard/index.d.ts +6 -6
- package/es/modules/board/components/DocumentCard/index.js +10 -10
- package/es/modules/board/components/NewColumnDocumentForm/index.d.ts +8 -8
- package/es/modules/board/components/NewColumnDocumentForm/index.js +50 -50
- package/es/modules/board/components/NewColumnDocumentForm/state.d.ts +6 -6
- package/es/modules/board/components/NewColumnDocumentForm/state.js +26 -26
- package/es/modules/board/components/SubDocument/index.d.ts +13 -13
- package/es/modules/board/components/SubDocument/index.js +12 -12
- package/es/modules/board/components/SubDocumentList/index.d.ts +6 -6
- package/es/modules/board/components/SubDocumentList/index.js +142 -142
- package/es/modules/board/components/SubDocumentList/index.less +30 -30
- package/es/modules/board/components/SubDocumentList/state.d.ts +23 -23
- package/es/modules/board/components/SubDocumentList/state.js +57 -57
- package/es/modules/board/pages/BoardViewList/index.d.ts +6 -6
- package/es/modules/board/pages/BoardViewList/index.js +52 -52
- package/es/modules/board/pages/BoardViewList/index.less +15 -15
- package/es/modules/board/pages/BoardViewList/state.d.ts +5 -5
- package/es/modules/board/pages/BoardViewList/state.js +16 -16
- package/es/modules/calendar/CalendarRoutes.d.ts +11 -11
- package/es/modules/calendar/CalendarRoutes.js +24 -24
- package/es/modules/calendar/components/ActionCard/index.d.ts +7 -7
- package/es/modules/calendar/components/ActionCard/index.js +11 -11
- package/es/modules/calendar/components/CalendarEventContent/index.d.ts +7 -7
- package/es/modules/calendar/components/CalendarEventContent/index.js +9 -9
- package/es/modules/calendar/components/CalendarMenu/index.d.ts +6 -6
- package/es/modules/calendar/components/CalendarMenu/index.js +52 -52
- package/es/modules/calendar/components/CalendarMenu/index.less +31 -31
- package/es/modules/calendar/pages/CalendarMonth/index.d.ts +3 -3
- package/es/modules/calendar/pages/CalendarMonth/index.js +140 -140
- package/es/modules/calendar/pages/CalendarMonth/index.less +263 -263
- package/es/modules/calendar/pages/CalendarMonth/state.d.ts +12 -12
- package/es/modules/calendar/pages/CalendarMonth/state.js +53 -53
- package/es/modules/meeting/MeetingRoutes.d.ts +18 -18
- package/es/modules/meeting/MeetingRoutes.js +31 -31
- package/es/modules/meeting/components/AgendaList/AgendaContext.d.ts +28 -28
- package/es/modules/meeting/components/AgendaList/AgendaContext.js +81 -81
- package/es/modules/meeting/components/AgendaList/AgendaHeader/index.d.ts +6 -6
- package/es/modules/meeting/components/AgendaList/AgendaHeader/index.js +12 -12
- package/es/modules/meeting/components/AgendaList/AgendaHeader/index.less +14 -14
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.d.ts +5 -5
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js +31 -31
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.d.ts +20 -20
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js +110 -110
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.d.ts +5 -5
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +81 -81
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +109 -109
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.d.ts +24 -24
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js +84 -84
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.d.ts +9 -9
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.js +34 -34
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.less +57 -57
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.d.ts +12 -12
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js +100 -100
- package/es/modules/meeting/components/AgendaList/index.d.ts +5 -5
- package/es/modules/meeting/components/AgendaList/index.js +62 -62
- package/es/modules/meeting/components/AgendaList/index.less +47 -47
- package/es/modules/meeting/components/AgendaList/state.d.ts +15 -15
- package/es/modules/meeting/components/AgendaList/state.js +32 -32
- package/es/modules/meeting/components/MeetingDescription/index.d.ts +8 -8
- package/es/modules/meeting/components/MeetingDescription/index.js +16 -16
- package/es/modules/meeting/components/MeetingDescription/index.less +12 -12
- package/es/modules/meeting/components/MeetingHeader/index.d.ts +8 -8
- package/es/modules/meeting/components/MeetingHeader/index.js +95 -95
- package/es/modules/meeting/components/MeetingHeader/index.less +13 -13
- package/es/modules/meeting/components/MeetingItem/index.d.ts +10 -10
- package/es/modules/meeting/components/MeetingItem/index.js +66 -66
- package/es/modules/meeting/components/MeetingItem/index.less +66 -66
- package/es/modules/meeting/components/MeetingItem/state.d.ts +10 -10
- package/es/modules/meeting/components/MeetingItem/state.js +54 -54
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.d.ts +20 -20
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.js +51 -51
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.less +12 -12
- package/es/modules/meeting/components/MeetingList/index.d.ts +9 -9
- package/es/modules/meeting/components/MeetingList/index.js +79 -79
- package/es/modules/meeting/components/MeetingProperties/index.d.ts +26 -26
- package/es/modules/meeting/components/MeetingProperties/index.js +108 -108
- package/es/modules/meeting/components/MeetingPropertiesView/index.d.ts +5 -5
- package/es/modules/meeting/components/MeetingPropertiesView/index.js +35 -35
- package/es/modules/meeting/components/MeetingPropertiesView/index.less +15 -15
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.d.ts +7 -7
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js +37 -37
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.less +14 -14
- package/es/modules/meeting/components/MeetingTabs/index.d.ts +6 -6
- package/es/modules/meeting/components/MeetingTabs/index.js +54 -54
- package/es/modules/meeting/components/MeetingTaskList/index.d.ts +6 -6
- package/es/modules/meeting/components/MeetingTaskList/index.js +21 -21
- package/es/modules/meeting/components/MeetingTaskList/index.less +30 -30
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.d.ts +6 -6
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js +57 -57
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.less +8 -8
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.d.ts +7 -7
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js +36 -36
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.less +7 -7
- package/es/modules/meeting/components/NewMeetingForm/index.d.ts +9 -9
- package/es/modules/meeting/components/NewMeetingForm/index.js +100 -100
- package/es/modules/meeting/components/NewMeetingForm/index.less +35 -35
- package/es/modules/meeting/components/NewMeetingForm/state.d.ts +9 -9
- package/es/modules/meeting/components/NewMeetingForm/state.js +63 -63
- package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.d.ts +17 -17
- package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.js +23 -23
- package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.less +7 -7
- package/es/modules/meeting/pages/MeetingDefaultView/index.d.ts +6 -6
- package/es/modules/meeting/pages/MeetingDefaultView/index.js +22 -22
- package/es/modules/meeting/pages/MeetingDefaultView/index.less +23 -23
- package/es/modules/meeting/pages/MeetingListView/index.d.ts +6 -6
- package/es/modules/meeting/pages/MeetingListView/index.js +17 -17
- package/es/modules/meeting/pages/MeetingPrintView/index.d.ts +4 -4
- package/es/modules/meeting/pages/MeetingPrintView/index.js +47 -47
- package/es/modules/meeting/pages/MeetingPrintView/index.less +82 -82
- package/es/modules/meeting/pages/MeetingPrintView/print.css +22 -22
- package/es/modules/meeting/pages/MeetingTabView/index.d.ts +6 -6
- package/es/modules/meeting/pages/MeetingTabView/index.js +44 -44
- package/es/modules/meeting/pages/MeetingTabView/index.less +21 -21
- package/es/modules/meeting/styles/MeetingMinView.less +32 -32
- package/es/modules/member/components/MemberDropdown.d.ts +5 -5
- package/es/modules/member/components/MemberDropdown.js +17 -17
- package/es/modules/member/components/MemberList.d.ts +6 -6
- package/es/modules/member/components/MemberList.js +27 -27
- package/es/modules/member/components/MemberMenu.d.ts +7 -7
- package/es/modules/member/components/MemberMenu.js +14 -14
- package/es/modules/member/components/MemberSelect.d.ts +5 -5
- package/es/modules/member/components/MemberSelect.js +9 -9
- package/es/modules/member/components/member.less +24 -24
- package/es/modules/member/pages/MemberListView/index.d.ts +3 -3
- package/es/modules/member/pages/MemberListView/index.js +226 -226
- package/es/modules/member/pages/MemberRoutes.d.ts +11 -11
- package/es/modules/member/pages/MemberRoutes.js +24 -24
- package/es/modules/member/styles/MemberMinView.less +24 -24
- package/es/modules/menus/components/Access/index.d.ts +6 -6
- package/es/modules/menus/components/Access/index.js +19 -19
- package/es/modules/menus/components/Account/index.d.ts +6 -6
- package/es/modules/menus/components/Account/index.js +19 -19
- package/es/modules/menus/components/AddUsers/index.d.ts +3 -3
- package/es/modules/menus/components/AddUsers/index.js +36 -36
- package/es/modules/menus/components/AddUsers/index.less +7 -7
- package/es/modules/menus/components/Status/index.d.ts +6 -6
- package/es/modules/menus/components/Status/index.js +19 -19
- package/es/modules/menus/components/UsersList/index.d.ts +3 -3
- package/es/modules/menus/components/UsersList/index.js +130 -130
- package/es/modules/menus/components/UsersList/index.less +64 -64
- package/es/modules/menus/pages/ListOptions/Company/index.d.ts +3 -3
- package/es/modules/menus/pages/ListOptions/Company/index.js +113 -113
- package/es/modules/menus/pages/ListOptions/Company/index.less +20 -20
- package/es/modules/menus/pages/ListOptions/Config/index.d.ts +3 -3
- package/es/modules/menus/pages/ListOptions/Config/index.js +4 -4
- package/es/modules/menus/pages/ListOptions/Teams/index.d.ts +3 -3
- package/es/modules/menus/pages/ListOptions/Teams/index.js +70 -70
- package/es/modules/menus/pages/ListOptions/Teams/index.less +44 -44
- package/es/modules/menus/pages/ListOptions/Users/index.d.ts +3 -3
- package/es/modules/menus/pages/ListOptions/Users/index.js +33 -33
- package/es/modules/menus/pages/ListOptions/Users/index.less +42 -42
- package/es/modules/menus/pages/ListOptions/index.d.ts +3 -3
- package/es/modules/menus/pages/ListOptions/index.js +56 -56
- package/es/modules/menus/pages/MenusRoutes.d.ts +11 -11
- package/es/modules/menus/pages/MenusRoutes.js +24 -24
- package/es/modules/notification/components/DocumentNotificationCard/index.d.ts +10 -10
- package/es/modules/notification/components/DocumentNotificationCard/index.js +31 -31
- package/es/modules/notification/components/DocumentNotificationCard/index.less +29 -29
- package/es/modules/notification/components/NotificationList/index.d.ts +16 -16
- package/es/modules/notification/components/NotificationList/index.js +92 -92
- package/es/modules/notification/components/NotificationList/index.less +32 -32
- package/es/modules/pin/components/MyPinned/index.d.ts +7 -7
- package/es/modules/pin/components/MyPinned/index.js +41 -41
- package/es/modules/pin/components/MyPinned/index.less +34 -34
- package/es/modules/pin/components/PinnedCardList/index.d.ts +6 -6
- package/es/modules/pin/components/PinnedCardList/index.js +74 -74
- package/es/modules/pin/components/PinnedCardList/state.d.ts +8 -8
- package/es/modules/pin/components/PinnedCardList/state.js +27 -27
- package/es/modules/pin/pages/PinnedPage/index.d.ts +5 -5
- package/es/modules/pin/pages/PinnedPage/index.js +13 -13
- package/es/modules/pin/pages/PinnedPage/index.less +31 -31
- package/es/modules/project/ProjectDefaultView/index.d.ts +3 -3
- package/es/modules/project/ProjectDefaultView/index.js +68 -68
- package/es/modules/project/ProjectDefaultView/index.less +20 -20
- package/es/modules/project/data/ProjectStore.d.ts +10 -10
- package/es/modules/project/data/ProjectStore.js +20 -20
- package/es/modules/project/data/hook.d.ts +9 -9
- package/es/modules/project/data/hook.js +19 -19
- package/es/modules/project/data/index.d.ts +3 -3
- package/es/modules/project/data/index.js +3 -3
- package/es/modules/project/data/interfaces.d.ts +2 -2
- package/es/modules/project/data/interfaces.js +1 -1
- package/es/modules/space/components/Notes/ColorSelect/index.d.ts +10 -10
- package/es/modules/space/components/Notes/ColorSelect/index.js +29 -29
- package/es/modules/space/components/Notes/ColorSelect/index.less +17 -17
- package/es/modules/space/components/Notes/NewNoteDialog/index.d.ts +10 -10
- package/es/modules/space/components/Notes/NewNoteDialog/index.js +40 -40
- package/es/modules/space/components/Notes/NewNoteDialog/index.less +78 -78
- package/es/modules/space/components/Notes/TextNoteCard/index.d.ts +6 -6
- package/es/modules/space/components/Notes/TextNoteCard/index.js +33 -33
- package/es/modules/space/components/Notes/TextNoteCard/index.less +56 -56
- package/es/modules/space/components/Notes/TextNoteCard/state.d.ts +6 -6
- package/es/modules/space/components/Notes/TextNoteCard/state.js +34 -34
- package/es/modules/space/components/Notes/index.d.ts +5 -5
- package/es/modules/space/components/Notes/index.js +50 -50
- package/es/modules/space/components/Notifications/index.d.ts +7 -7
- package/es/modules/space/components/Notifications/index.js +38 -38
- package/es/modules/space/components/Projects/index.d.ts +5 -5
- package/es/modules/space/components/Projects/index.js +34 -34
- package/es/modules/space/components/Roles/index.d.ts +5 -5
- package/es/modules/space/components/Roles/index.js +13 -13
- package/es/modules/space/components/Tasks/index.d.ts +8 -8
- package/es/modules/space/components/Tasks/index.js +185 -185
- package/es/modules/space/components/Tasks/index.less +17 -17
- package/es/modules/space/components/Teams/index.d.ts +5 -5
- package/es/modules/space/components/Teams/index.js +13 -13
- package/es/modules/space/components/Works/index.d.ts +7 -7
- package/es/modules/space/components/Works/index.js +19 -19
- package/es/modules/space/components/Works/index.less +18 -18
- package/es/modules/space/components/Workspaces/index.d.ts +5 -5
- package/es/modules/space/components/Workspaces/index.js +17 -17
- package/es/modules/space/pages/MySpace/index.d.ts +4 -4
- package/es/modules/space/pages/MySpace/index.js +193 -193
- package/es/modules/space/pages/MySpace/index.less +35 -35
- package/es/modules/space/pages/MySpace/state.d.ts +48 -48
- package/es/modules/space/pages/MySpace/state.js +155 -155
- package/es/modules/space/pages/MySpace/taskState.d.ts +36 -36
- package/es/modules/space/pages/MySpace/taskState.js +352 -352
- package/es/modules/space/pages/MySpace/workState.d.ts +32 -32
- package/es/modules/space/pages/MySpace/workState.js +260 -260
- package/es/modules/tasks/TasksRoutes.d.ts +15 -15
- package/es/modules/tasks/TasksRoutes.js +28 -28
- package/es/modules/tasks/components/AddTaskDropdown/index.d.ts +10 -10
- package/es/modules/tasks/components/AddTaskDropdown/index.js +31 -31
- package/es/modules/tasks/components/AddTaskDropdown/index.less +45 -45
- package/es/modules/tasks/components/NewTaskForm/index.d.ts +16 -16
- package/es/modules/tasks/components/NewTaskForm/index.js +112 -112
- package/es/modules/tasks/components/NewTaskForm/index.less +37 -37
- package/es/modules/tasks/components/NewTaskForm/state.d.ts +24 -24
- package/es/modules/tasks/components/NewTaskForm/state.js +55 -55
- package/es/modules/tasks/components/SubTaskList/index.d.ts +11 -11
- package/es/modules/tasks/components/SubTaskList/index.js +157 -157
- package/es/modules/tasks/components/SubTaskList/index.less +20 -20
- package/es/modules/tasks/components/SubTaskList/state.d.ts +36 -36
- package/es/modules/tasks/components/SubTaskList/state.js +91 -91
- package/es/modules/tasks/components/TaskCard/index.d.ts +5 -5
- package/es/modules/tasks/components/TaskCard/index.js +12 -12
- package/es/modules/tasks/components/TaskCard/index.less +8 -8
- package/es/modules/tasks/components/TaskDescription/index.d.ts +6 -6
- package/es/modules/tasks/components/TaskDescription/index.js +20 -20
- package/es/modules/tasks/components/TaskDescription/index.less +18 -18
- package/es/modules/tasks/components/TaskEstimatedTime/index.d.ts +12 -12
- package/es/modules/tasks/components/TaskEstimatedTime/index.js +74 -74
- package/es/modules/tasks/components/TaskEstimatedTime/index.less +25 -25
- package/es/modules/tasks/components/TaskEstimatedTime/state.d.ts +37 -37
- package/es/modules/tasks/components/TaskEstimatedTime/state.js +158 -158
- package/es/modules/tasks/components/TaskItem/ChildTaskItem.d.ts +4 -4
- package/es/modules/tasks/components/TaskItem/ChildTaskItem.js +17 -17
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.d.ts +5 -5
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +46 -46
- package/es/modules/tasks/components/TaskItem/SubTaskItem.d.ts +5 -5
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +59 -59
- package/es/modules/tasks/components/TaskItem/defaultTaskItem.less +51 -51
- package/es/modules/tasks/components/TaskItem/state.d.ts +55 -55
- package/es/modules/tasks/components/TaskItem/state.js +238 -238
- package/es/modules/tasks/components/TaskItem/subTaskItem.less +67 -67
- package/es/modules/tasks/components/TaskProperties/index.d.ts +26 -26
- package/es/modules/tasks/components/TaskProperties/index.js +69 -69
- package/es/modules/tasks/components/TaskPropertiesView/index.d.ts +7 -7
- package/es/modules/tasks/components/TaskPropertiesView/index.js +33 -33
- package/es/modules/tasks/components/TaskPropertiesView/index.less +23 -23
- package/es/modules/tasks/components/TaskQuickViewDialog/index.d.ts +7 -7
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js +36 -36
- package/es/modules/tasks/components/TaskQuickViewDialog/index.less +13 -13
- package/es/modules/tasks/components/TaskTabs/index.d.ts +6 -6
- package/es/modules/tasks/components/TaskTabs/index.js +72 -72
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.d.ts +9 -9
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.js +21 -21
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.less +29 -29
- package/es/modules/tasks/controls/TaskDataIconBar/index.d.ts +16 -16
- package/es/modules/tasks/controls/TaskDataIconBar/index.js +24 -24
- package/es/modules/tasks/controls/TaskStatusDataIcon/index.d.ts +8 -8
- package/es/modules/tasks/controls/TaskStatusDataIcon/index.js +30 -30
- package/es/modules/tasks/controls/TaskStatusLabel/index.d.ts +10 -10
- package/es/modules/tasks/controls/TaskStatusLabel/index.js +8 -8
- package/es/modules/tasks/controls/TaskStatusLabel/index.less +34 -34
- package/es/modules/tasks/controls/TasksProgressDataIcon/index.d.ts +14 -14
- package/es/modules/tasks/controls/TasksProgressDataIcon/index.js +26 -26
- package/es/modules/tasks/controls/TasksTotal/index.d.ts +14 -14
- package/es/modules/tasks/controls/TasksTotal/index.js +35 -35
- package/es/modules/tasks/pages/TaskDefaultView/index.d.ts +6 -6
- package/es/modules/tasks/pages/TaskDefaultView/index.js +22 -22
- package/es/modules/tasks/pages/TaskDefaultView/index.less +19 -19
- package/es/modules/tasks/pages/TaskList/index.d.ts +5 -5
- package/es/modules/tasks/pages/TaskList/index.js +61 -61
- package/es/modules/tasks/pages/TaskTabView/index.d.ts +6 -6
- package/es/modules/tasks/pages/TaskTabView/index.js +95 -95
- package/es/modules/tasks/pages/TaskTabView/index.less +66 -66
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/index.d.ts +6 -6
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/index.js +40 -40
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/index.less +21 -21
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/state.d.ts +22 -22
- package/es/modules/tasks/reports/MemberEstimatedDurationCard/state.js +147 -147
- package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.d.ts +7 -7
- package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.js +16 -16
- package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.less +8 -8
- package/es/modules/tasks/reports/TaskSummaryCard/index.d.ts +17 -17
- package/es/modules/tasks/reports/TaskSummaryCard/index.js +66 -66
- package/es/modules/tasks/reports/TaskSummaryCard/index.less +20 -20
- package/es/modules/tasks/reports/TaskSummaryCard/state.d.ts +11 -11
- package/es/modules/tasks/reports/TaskSummaryCard/state.js +53 -53
- package/es/modules/user/pages/Positions/index.d.ts +3 -3
- package/es/modules/user/pages/Positions/index.js +94 -94
- package/es/modules/user/pages/Positions/index.less +59 -59
- package/es/modules/work/components/NewWorkErrorDialog/index.d.ts +12 -12
- package/es/modules/work/components/NewWorkErrorDialog/index.js +80 -80
- package/es/modules/work/components/NewWorkErrorDialog/index.less +18 -18
- package/es/modules/work/components/NewWorkErrorDialog/state.d.ts +18 -18
- package/es/modules/work/components/NewWorkErrorDialog/state.js +37 -37
- package/es/modules/work/components/NewWorkForm/index.d.ts +26 -26
- package/es/modules/work/components/NewWorkForm/index.js +80 -80
- package/es/modules/work/components/NewWorkForm/index.less +18 -18
- package/es/modules/work/components/NewWorkForm/state.d.ts +16 -16
- package/es/modules/work/components/NewWorkForm/state.js +33 -33
- package/es/modules/work/components/RejectWorkDialog/index.d.ts +8 -8
- package/es/modules/work/components/RejectWorkDialog/index.js +53 -53
- package/es/modules/work/components/RejectWorkDialog/index.less +18 -18
- package/es/modules/work/components/RejectWorkDialog/state.d.ts +12 -12
- package/es/modules/work/components/RejectWorkDialog/state.js +34 -34
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.d.ts +23 -23
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.js +49 -49
- package/es/modules/work/components/RelatedWorkList/index.d.ts +4 -4
- package/es/modules/work/components/RelatedWorkList/index.js +15 -15
- package/es/modules/work/components/RelatedWorkList/index.less +21 -21
- package/es/modules/work/components/RelatedWorkList/state.d.ts +8 -8
- package/es/modules/work/components/RelatedWorkList/state.js +27 -27
- package/es/modules/work/components/SubWorkList/index.d.ts +5 -5
- package/es/modules/work/components/SubWorkList/index.js +43 -43
- package/es/modules/work/components/SubWorkList/index.less +7 -7
- package/es/modules/work/components/WorkCard/index.d.ts +5 -5
- package/es/modules/work/components/WorkCard/index.js +12 -12
- package/es/modules/work/components/WorkCard/index.less +7 -7
- package/es/modules/work/components/WorkErrorItem/index.d.ts +5 -5
- package/es/modules/work/components/WorkErrorItem/index.js +33 -33
- package/es/modules/work/components/WorkErrorItem/index.less +52 -52
- package/es/modules/work/components/WorkErrorList/index.d.ts +15 -15
- package/es/modules/work/components/WorkErrorList/index.js +75 -75
- package/es/modules/work/components/WorkErrorList/index.less +4 -4
- package/es/modules/work/components/WorkErrorProperties/index.d.ts +8 -8
- package/es/modules/work/components/WorkErrorProperties/index.js +56 -56
- package/es/modules/work/components/WorkErrorProperties/state.d.ts +6 -6
- package/es/modules/work/components/WorkErrorProperties/state.js +32 -32
- package/es/modules/work/components/WorkErrorPropertiesView/index.d.ts +8 -8
- package/es/modules/work/components/WorkErrorPropertiesView/index.js +64 -64
- package/es/modules/work/components/WorkErrorPropertiesView/index.less +38 -38
- package/es/modules/work/components/WorkErrorQuickViewDialog/index.d.ts +18 -18
- package/es/modules/work/components/WorkErrorQuickViewDialog/index.js +43 -43
- package/es/modules/work/components/WorkErrorQuickViewDialog/index.less +38 -38
- package/es/modules/work/components/WorkItem/index.d.ts +13 -13
- package/es/modules/work/components/WorkItem/index.js +54 -54
- package/es/modules/work/components/WorkItem/index.less +56 -56
- package/es/modules/work/components/WorkList/index.d.ts +40 -40
- package/es/modules/work/components/WorkList/index.js +188 -188
- package/es/modules/work/components/WorkList/index.less +7 -7
- package/es/modules/work/components/WorkListCard/index.d.ts +11 -11
- package/es/modules/work/components/WorkListCard/index.js +12 -12
- package/es/modules/work/components/WorkPropertiesView/index.d.ts +7 -7
- package/es/modules/work/components/WorkPropertiesView/index.js +34 -34
- package/es/modules/work/components/WorkPropertiesView/index.less +10 -10
- package/es/modules/work/components/WorkQATab/index.d.ts +5 -5
- package/es/modules/work/components/WorkQATab/index.js +42 -42
- package/es/modules/work/components/WorkQATab/index.less +24 -24
- package/es/modules/work/components/WorkQuickViewDialog/index.d.ts +7 -7
- package/es/modules/work/components/WorkQuickViewDialog/index.js +36 -36
- package/es/modules/work/components/WorkQuickViewDialog/index.less +13 -13
- package/es/modules/work/components/WorkSendForm/index.d.ts +12 -12
- package/es/modules/work/components/WorkSendForm/index.js +38 -38
- package/es/modules/work/components/WorkSendForm/index.js.map +1 -1
- package/es/modules/work/components/WorkSendForm/index.less +48 -46
- package/es/modules/work/components/WorkTabs/index.d.ts +6 -6
- package/es/modules/work/components/WorkTabs/index.js +68 -68
- package/es/modules/work/components/WorkTaskList/index.d.ts +5 -5
- package/es/modules/work/components/WorkTaskList/index.js +63 -63
- package/es/modules/work/components/WorkTaskList/index.less +7 -7
- package/es/modules/work/components/WorkTaskList/state.d.ts +14 -14
- package/es/modules/work/components/WorkTaskList/state.js +22 -22
- package/es/modules/work/components/WorkTasksTab/index.d.ts +5 -5
- package/es/modules/work/components/WorkTasksTab/index.js +16 -16
- package/es/modules/work/components/WorkTasksTab/index.less +4 -4
- package/es/modules/work/components/WorksProperties/index.d.ts +26 -26
- package/es/modules/work/components/WorksProperties/index.js +99 -99
- package/es/modules/work/components/WorksProperties/index.less +17 -17
- package/es/modules/work/components/WorksProperties/state.d.ts +14 -14
- package/es/modules/work/components/WorksProperties/state.js +87 -87
- package/es/modules/work/controls/WorkDataIconBar/index.d.ts +15 -15
- package/es/modules/work/controls/WorkDataIconBar/index.js +41 -41
- package/es/modules/work/controls/WorkErrorMenu/index.d.ts +14 -14
- package/es/modules/work/controls/WorkErrorMenu/index.js +35 -35
- package/es/modules/work/controls/WorkErrorMenu/index.less +32 -32
- package/es/modules/work/controls/WorkMenu/Accept.d.ts +8 -8
- package/es/modules/work/controls/WorkMenu/Accept.js +28 -28
- package/es/modules/work/controls/WorkMenu/Reject.d.ts +8 -8
- package/es/modules/work/controls/WorkMenu/Reject.js +28 -28
- package/es/modules/work/controls/WorkMenu/Send.d.ts +9 -8
- package/es/modules/work/controls/WorkMenu/Send.js +40 -39
- package/es/modules/work/controls/WorkMenu/Send.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/index.d.ts +8 -7
- package/es/modules/work/controls/WorkMenu/index.js +30 -30
- package/es/modules/work/controls/WorkMenu/index.js.map +1 -1
- package/es/modules/work/controls/WorkStatusDataIcon/index.d.ts +8 -8
- package/es/modules/work/controls/WorkStatusDataIcon/index.js +23 -23
- package/es/modules/work/controls/WorkStatusLabel/index.d.ts +10 -10
- package/es/modules/work/controls/WorkStatusLabel/index.js +16 -16
- package/es/modules/work/controls/WorkStatusLabel/index.less +36 -36
- package/es/modules/work/pages/WorkDefaultView/index.d.ts +6 -6
- package/es/modules/work/pages/WorkDefaultView/index.js +22 -22
- package/es/modules/work/pages/WorkDefaultView/index.less +18 -18
- package/es/modules/work/pages/WorkListPage/index.d.ts +7 -7
- package/es/modules/work/pages/WorkListPage/index.js +27 -27
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/NewWorkScheduleFormDialog.d.ts +9 -9
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/NewWorkScheduleFormDialog.js +12 -12
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.d.ts +18 -18
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.js +61 -61
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.less +10 -10
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/state.d.ts +17 -17
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/state.js +41 -41
- package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.d.ts +6 -6
- package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.js +22 -22
- package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.less +12 -12
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.d.ts +7 -7
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js +61 -61
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.less +44 -44
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.d.ts +26 -26
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.js +137 -137
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.less +11 -11
- package/es/modules/work/work-schedule/components/WorkScheduleListCard/index.d.ts +6 -6
- package/es/modules/work/work-schedule/components/WorkScheduleListCard/index.js +9 -9
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.d.ts +20 -20
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js +90 -90
- package/es/modules/work/work-schedule/components/WorkSchedulePropertiesView/index.d.ts +6 -6
- package/es/modules/work/work-schedule/components/WorkSchedulePropertiesView/index.js +14 -14
- package/es/modules/work/work-schedule/components/WorkScheduleQuickViewDialog/index.d.ts +9 -9
- package/es/modules/work/work-schedule/components/WorkScheduleQuickViewDialog/index.js +11 -11
- package/es/modules/work/work-schedule/components/WorkScheduleTabs/index.d.ts +6 -6
- package/es/modules/work/work-schedule/components/WorkScheduleTabs/index.js +39 -39
- package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.d.ts +9 -9
- package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.js +88 -88
- package/es/modules/work/work-schedule/controls/WorkScheduleFilter/index.d.ts +5 -5
- package/es/modules/work/work-schedule/controls/WorkScheduleFilter/index.js +28 -28
- package/es/modules/work/work-schedule/controls/WorkScheduleFilter/state.d.ts +19 -19
- package/es/modules/work/work-schedule/controls/WorkScheduleFilter/state.js +60 -60
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/index.d.ts +13 -13
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/index.js +72 -66
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/index.js.map +1 -1
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/index.less +38 -38
- package/es/modules/work/work-schedule/pages/WorkScheduleDefaultView/index.d.ts +3 -3
- package/es/modules/work/work-schedule/pages/WorkScheduleDefaultView/index.js +29 -29
- package/es/modules/work/work-schedule/pages/WorkScheduleDefaultView/index.less +23 -23
- package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/index.d.ts +11 -0
- package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/index.js +64 -0
- package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/index.js.map +1 -0
- package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/state.d.ts +15 -0
- package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/state.js +59 -0
- package/es/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/state.js.map +1 -0
- package/es/modules/work/work-type/components/ErrorTypeList/Item.d.ts +18 -18
- package/es/modules/work/work-type/components/ErrorTypeList/Item.js +37 -37
- package/es/modules/work/work-type/components/ErrorTypeList/index.d.ts +19 -19
- package/es/modules/work/work-type/components/ErrorTypeList/index.js +34 -34
- package/es/modules/work/work-type/components/ErrorTypeList/index.less +59 -59
- package/es/modules/work/work-type/components/ErrorTypeList/state.d.ts +17 -17
- package/es/modules/work/work-type/components/ErrorTypeList/state.js +57 -57
- package/es/modules/work/work-type/components/NewTypeForm/index.d.ts +10 -10
- package/es/modules/work/work-type/components/NewTypeForm/index.js +42 -42
- package/es/modules/work/work-type/components/NewTypeForm/index.less +7 -7
- package/es/modules/work/work-type/components/NewTypeForm/state.d.ts +11 -11
- package/es/modules/work/work-type/components/NewTypeForm/state.js +39 -39
- package/es/modules/work/work-type/components/RepeatTab/index.d.ts +6 -6
- package/es/modules/work/work-type/components/RepeatTab/index.js +50 -50
- package/es/modules/work/work-type/components/RepeatTab/index.less +42 -42
- package/es/modules/work/work-type/components/WorkTypeIcon/index.d.ts +10 -10
- package/es/modules/work/work-type/components/WorkTypeIcon/index.js +17 -17
- package/es/modules/work/work-type/components/WorkTypeIconList/index.d.ts +9 -9
- package/es/modules/work/work-type/components/WorkTypeIconList/index.js +35 -35
- package/es/modules/work/work-type/components/WorkTypeIconList/index.less +14 -14
- package/es/modules/work/work-type/components/WorkTypeItem/index.d.ts +8 -8
- package/es/modules/work/work-type/components/WorkTypeItem/index.js +27 -27
- package/es/modules/work/work-type/components/WorkTypeItem/index.less +48 -48
- package/es/modules/work/work-type/components/WorkTypeList/index.d.ts +9 -9
- package/es/modules/work/work-type/components/WorkTypeList/index.js +49 -49
- package/es/modules/work/work-type/components/WorkTypeList/index.less +4 -4
- package/es/modules/work/work-type/components/WorkTypeProperties/Properties.d.ts +7 -7
- package/es/modules/work/work-type/components/WorkTypeProperties/Properties.js +65 -63
- package/es/modules/work/work-type/components/WorkTypeProperties/Properties.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.d.ts +11 -11
- package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.js +27 -27
- package/es/modules/work/work-type/components/WorkTypeProperties/index.d.ts +11 -11
- package/es/modules/work/work-type/components/WorkTypeProperties/index.js +37 -37
- package/es/modules/work/work-type/components/WorkTypeProperties/state.d.ts +18 -18
- package/es/modules/work/work-type/components/WorkTypeProperties/state.js +82 -82
- package/es/modules/work/work-type/components/WorkTypePropertiesTabs/index.d.ts +5 -5
- package/es/modules/work/work-type/components/WorkTypePropertiesTabs/index.js +37 -37
- package/es/modules/work/work-type/components/WorkTypePropertiesTabs/index.less +12 -12
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.d.ts +6 -6
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.js +39 -39
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.less +19 -19
- package/es/modules/work/work-type/components/WorkTypePropertiesView/state.d.ts +15 -15
- package/es/modules/work/work-type/components/WorkTypePropertiesView/state.js +67 -67
- package/es/modules/work/work-type/components/WorkTypeQA/index.d.ts +6 -6
- package/es/modules/work/work-type/components/WorkTypeQA/index.js +42 -42
- package/es/modules/work/work-type/components/WorkTypeQA/index.less +42 -42
- package/es/modules/work/work-type/components/WorkTypeQA/state.d.ts +16 -16
- package/es/modules/work/work-type/components/WorkTypeQA/state.js +123 -123
- package/es/modules/work/work-type/components/WorkTypeSelect/index.d.ts +9 -9
- package/es/modules/work/work-type/components/WorkTypeSelect/index.js +40 -40
- package/es/modules/work/work-type/components/WorkTypeStats/WorkTypeStatsCard.d.ts +6 -6
- package/es/modules/work/work-type/components/WorkTypeStats/WorkTypeStatsCard.js +14 -14
- package/es/modules/work/work-type/components/WorkTypeStats/index.d.ts +5 -5
- package/es/modules/work/work-type/components/WorkTypeStats/index.js +15 -15
- package/es/modules/work/work-type/components/WorkTypeStats/index.less +29 -29
- package/es/modules/work/work-type/components/WorkTypeStats/state.d.ts +6 -6
- package/es/modules/work/work-type/components/WorkTypeStats/state.js +26 -26
- package/es/modules/work/work-type/components/WorkTypeTabs/WorkTypeTabsCard.d.ts +5 -5
- package/es/modules/work/work-type/components/WorkTypeTabs/WorkTypeTabsCard.js +48 -48
- package/es/modules/work/work-type/components/WorkTypeTabs/index.d.ts +5 -5
- package/es/modules/work/work-type/components/WorkTypeTabs/index.js +53 -53
- package/es/modules/work/work-type/components/WorkTypeTabs/index.less +41 -41
- package/es/modules/work/work-type/controls/WorkTypeMenu/index.d.ts +15 -16
- package/es/modules/work/work-type/controls/WorkTypeMenu/index.js +60 -56
- package/es/modules/work/work-type/controls/WorkTypeMenu/index.js.map +1 -1
- package/es/modules/work/work-type/controls/WorkTypeMenu/index.less +36 -37
- package/es/modules/work/work-type/controls/WorkTypeStatusLabel/index.d.ts +10 -10
- package/es/modules/work/work-type/controls/WorkTypeStatusLabel/index.js +12 -12
- package/es/modules/work/work-type/controls/WorkTypeStatusLabel/index.less +15 -15
- package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.d.ts +6 -6
- package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.js +74 -74
- package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.less +8 -8
- package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/state.d.ts +5 -5
- package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/state.js +25 -25
- package/es/modules/work/work-type/pages/WorkTypePage/Dashboard.d.ts +5 -5
- package/es/modules/work/work-type/pages/WorkTypePage/Dashboard.js +17 -17
- package/es/modules/work/work-type/pages/WorkTypePage/Summary.d.ts +5 -5
- package/es/modules/work/work-type/pages/WorkTypePage/Summary.js +21 -21
- package/es/modules/work/work-type/pages/WorkTypePage/WorkListPage.d.ts +7 -7
- package/es/modules/work/work-type/pages/WorkTypePage/WorkListPage.js +24 -24
- package/es/modules/work/work-type/pages/WorkTypePage/index.d.ts +3 -3
- package/es/modules/work/work-type/pages/WorkTypePage/index.js +155 -155
- package/es/modules/work/work-type/pages/WorkTypePage/index.less +113 -113
- package/es/modules/work/work-type/pages/WorkTypePage/state.d.ts +22 -22
- package/es/modules/work/work-type/pages/WorkTypePage/state.js +160 -160
- package/es/modules/workspace/components/MyWorkspaces/index.d.ts +11 -11
- package/es/modules/workspace/components/MyWorkspaces/index.js +37 -37
- package/es/modules/workspace/components/MyWorkspaces/index.less +30 -30
- package/es/modules/workspace/components/NewWorkspaceDialog/index.d.ts +9 -9
- package/es/modules/workspace/components/NewWorkspaceDialog/index.js +59 -59
- package/es/modules/workspace/components/NewWorkspaceDialog/index.less +30 -30
- package/es/modules/workspace/components/NewWorkspaceDialog/state.d.ts +12 -12
- package/es/modules/workspace/components/NewWorkspaceDialog/state.js +34 -34
- package/es/modules/workspace/components/WorkspaceIcon/index.d.ts +10 -10
- package/es/modules/workspace/components/WorkspaceIcon/index.js +24 -24
- package/es/modules/workspace/components/WorkspaceIcon/index.less +79 -79
- package/es/modules/workspace/components/WorkspaceIconList/index.d.ts +14 -14
- package/es/modules/workspace/components/WorkspaceIconList/index.js +53 -53
- package/es/modules/workspace/components/WorkspaceIconList/index.less +18 -18
- package/es/modules/workspace/components/WorkspaceIconList2/index.d.ts +11 -11
- package/es/modules/workspace/components/WorkspaceIconList2/index.js +52 -52
- package/es/modules/workspace/components/WorkspaceIconList2/index.less +18 -18
- package/es/modules/workspace/components/WorkspaceIconList2/state.d.ts +9 -9
- package/es/modules/workspace/components/WorkspaceIconList2/state.js +50 -50
- package/es/modules/workspace/components/WorkspacePropertiesView/index.d.ts +6 -6
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js +49 -49
- package/es/modules/workspace/components/WorkspacePropertiesView/index.less +19 -19
- package/es/modules/workspace/components/WorkspacePropertiesView/state.d.ts +15 -15
- package/es/modules/workspace/components/WorkspacePropertiesView/state.js +67 -67
- package/es/modules/workspace/components/WorkspaceTabs/index.d.ts +5 -5
- package/es/modules/workspace/components/WorkspaceTabs/index.js +31 -31
- package/es/modules/workspace/components/WorkspaceTabs/index.less +12 -12
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.d.ts +6 -6
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js +72 -72
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.less +8 -8
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.d.ts +5 -5
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.js +25 -25
- package/es/modules/workspace/controls/WorkspaceMenu/index.d.ts +7 -7
- package/es/modules/workspace/controls/WorkspaceMenu/index.js +59 -62
- package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -1
- package/es/modules/workspace/controls/WorkspaceMenu/index.less +38 -38
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.d.ts +6 -6
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +48 -48
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.less +22 -22
- package/es/modules/workspace/pages/WorkspaceDefaultView/state.d.ts +15 -15
- package/es/modules/workspace/pages/WorkspaceDefaultView/state.js +67 -67
- package/es/modules/workspace/pages/WorkspacePage/index.d.ts +3 -3
- package/es/modules/workspace/pages/WorkspacePage/index.js +203 -203
- package/es/modules/workspace/pages/WorkspacePage/index.less +25 -25
- package/es/modules/workspace/pages/WorkspacePage/state.d.ts +52 -52
- package/es/modules/workspace/pages/WorkspacePage/state.js +288 -288
- package/es/obsolete/WorkTypeDefaultView/index.d.ts +3 -3
- package/es/obsolete/WorkTypeDefaultView/index.js +31 -31
- package/es/obsolete/WorkTypeDefaultView/index.less +19 -19
- package/es/routes.d.ts +4 -4
- package/es/routes.js +19 -19
- package/es/style/common.less +187 -187
- package/es/style/index.less +13 -13
- package/package.json +63 -63
- package/readme.md +145 -145
@@ -1,39 +1,39 @@
|
|
1
|
-
@import "~@voplus/morpho-theme/styles/index.less";
|
2
|
-
|
3
|
-
.work-schedule-menu {
|
4
|
-
padding: 4px 8px;
|
5
|
-
list-style-type: none;
|
6
|
-
background-color: #fff;
|
7
|
-
background-clip: padding-box;
|
8
|
-
border-radius: @border-radius;
|
9
|
-
outline: none;
|
10
|
-
box-shadow: @more-box-shadow;
|
11
|
-
|
12
|
-
:global {
|
13
|
-
.ant-btn {
|
14
|
-
display: block;
|
15
|
-
width: 100%;
|
16
|
-
padding: 0 12px;
|
17
|
-
height: 34px;
|
18
|
-
color: #666;
|
19
|
-
text-align: left;
|
20
|
-
|
21
|
-
&[disabled] {
|
22
|
-
color: rgba(0, 0, 0, 0.25);
|
23
|
-
}
|
24
|
-
|
25
|
-
&:hover {
|
26
|
-
background-color: @ant-menu-hover-color;
|
27
|
-
box-shadow: @hover-button-shadow;
|
28
|
-
}
|
29
|
-
|
30
|
-
> span {
|
31
|
-
margin-left: 10px;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
.delete {
|
36
|
-
color: #f5222d;
|
37
|
-
}
|
38
|
-
}
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
2
|
+
|
3
|
+
.work-schedule-menu {
|
4
|
+
padding: 4px 8px;
|
5
|
+
list-style-type: none;
|
6
|
+
background-color: #fff;
|
7
|
+
background-clip: padding-box;
|
8
|
+
border-radius: @border-radius;
|
9
|
+
outline: none;
|
10
|
+
box-shadow: @more-box-shadow;
|
11
|
+
|
12
|
+
:global {
|
13
|
+
.ant-btn {
|
14
|
+
display: block;
|
15
|
+
width: 100%;
|
16
|
+
padding: 0 12px;
|
17
|
+
height: 34px;
|
18
|
+
color: #666;
|
19
|
+
text-align: left;
|
20
|
+
|
21
|
+
&[disabled] {
|
22
|
+
color: rgba(0, 0, 0, 0.25);
|
23
|
+
}
|
24
|
+
|
25
|
+
&:hover {
|
26
|
+
background-color: @ant-menu-hover-color;
|
27
|
+
box-shadow: @hover-button-shadow;
|
28
|
+
}
|
29
|
+
|
30
|
+
> span {
|
31
|
+
margin-left: 10px;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.delete {
|
36
|
+
color: #f5222d;
|
37
|
+
}
|
38
|
+
}
|
39
39
|
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare const WorkScheduleDefaultView: () => JSX.Element;
|
3
|
-
export default WorkScheduleDefaultView;
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const WorkScheduleDefaultView: () => JSX.Element;
|
3
|
+
export default WorkScheduleDefaultView;
|
@@ -1,30 +1,30 @@
|
|
1
|
-
import React, { useEffect, useState } from "react";
|
2
|
-
import { TabItemContext, TabItemStore, useTabItem } from "@voplus/morpho-data";
|
3
|
-
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
4
|
-
import { runInAction } from "mobx";
|
5
|
-
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
6
|
-
import { useParams } from "react-router-dom";
|
7
|
-
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
8
|
-
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
9
|
-
import WorkScheduleProperties from "../../components/WorkScheduleProperties";
|
10
|
-
import WorkScheduleTabs from "../../components/WorkScheduleTabs";
|
11
|
-
import styles from "./index.less";
|
12
|
-
const WorkScheduleDefaultView = () => {
|
13
|
-
const params = useParams();
|
14
|
-
const id = params.id || "";
|
15
|
-
const store = new TabItemStore({ url: "" });
|
16
|
-
const frame = useFrame();
|
17
|
-
const tab = useTabItem();
|
18
|
-
const [asideContext] = useState(frame ? useAsideContentContext() : AsideContent.createContext());
|
19
|
-
useEffect(() => {
|
20
|
-
runInAction(() => (tab.title = `Work Schedule`));
|
21
|
-
});
|
22
|
-
return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
|
23
|
-
React.createElement(MainContent, { className: styles["work-schedule-default-view"], asideable: frame ? false : true },
|
24
|
-
React.createElement(MainContent.Nav, { collapsible: true },
|
25
|
-
React.createElement(WorkScheduleProperties, { id: id, headerVisible: true })),
|
26
|
-
React.createElement("div", { className: "work-schedule-context" }, frame ? (React.createElement(WorkScheduleTabs, { id: id })) : (React.createElement(AsideContent, { context: asideContext },
|
27
|
-
React.createElement(WorkScheduleTabs, { id: id }))))))));
|
28
|
-
};
|
29
|
-
export default WorkScheduleDefaultView;
|
1
|
+
import React, { useEffect, useState } from "react";
|
2
|
+
import { TabItemContext, TabItemStore, useTabItem } from "@voplus/morpho-data";
|
3
|
+
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
4
|
+
import { runInAction } from "mobx";
|
5
|
+
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
6
|
+
import { useParams } from "react-router-dom";
|
7
|
+
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
8
|
+
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
9
|
+
import WorkScheduleProperties from "../../components/WorkScheduleProperties";
|
10
|
+
import WorkScheduleTabs from "../../components/WorkScheduleTabs";
|
11
|
+
import styles from "./index.less";
|
12
|
+
const WorkScheduleDefaultView = () => {
|
13
|
+
const params = useParams();
|
14
|
+
const id = params.id || "";
|
15
|
+
const store = new TabItemStore({ url: "" });
|
16
|
+
const frame = useFrame();
|
17
|
+
const tab = useTabItem();
|
18
|
+
const [asideContext] = useState(frame ? useAsideContentContext() : AsideContent.createContext());
|
19
|
+
useEffect(() => {
|
20
|
+
runInAction(() => (tab.title = `Work Schedule`));
|
21
|
+
});
|
22
|
+
return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
|
23
|
+
React.createElement(MainContent, { className: styles["work-schedule-default-view"], asideable: frame ? false : true },
|
24
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
25
|
+
React.createElement(WorkScheduleProperties, { id: id, headerVisible: true })),
|
26
|
+
React.createElement("div", { className: "work-schedule-context" }, frame ? (React.createElement(WorkScheduleTabs, { id: id })) : (React.createElement(AsideContent, { context: asideContext },
|
27
|
+
React.createElement(WorkScheduleTabs, { id: id }))))))));
|
28
|
+
};
|
29
|
+
export default WorkScheduleDefaultView;
|
30
30
|
//# sourceMappingURL=index.js.map
|
@@ -1,23 +1,23 @@
|
|
1
|
-
.work-schedule-default-view {
|
2
|
-
:global {
|
3
|
-
.main-content-nav {
|
4
|
-
width: 370px;
|
5
|
-
padding: 0;
|
6
|
-
}
|
7
|
-
|
8
|
-
.work-schedule-header {
|
9
|
-
padding: 10px 0;
|
10
|
-
}
|
11
|
-
|
12
|
-
.work-schedule-context {
|
13
|
-
display: flex;
|
14
|
-
padding: 0;
|
15
|
-
background: #ffffff;
|
16
|
-
|
17
|
-
> div {
|
18
|
-
flex: 1;
|
19
|
-
width: 100%;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
1
|
+
.work-schedule-default-view {
|
2
|
+
:global {
|
3
|
+
.main-content-nav {
|
4
|
+
width: 370px;
|
5
|
+
padding: 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
.work-schedule-header {
|
9
|
+
padding: 10px 0;
|
10
|
+
}
|
11
|
+
|
12
|
+
.work-schedule-context {
|
13
|
+
display: flex;
|
14
|
+
padding: 0;
|
15
|
+
background: #ffffff;
|
16
|
+
|
17
|
+
> div {
|
18
|
+
flex: 1;
|
19
|
+
width: 100%;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const ChangeWorkDefaultFolderDialog: (props: {
|
3
|
+
id: string;
|
4
|
+
defaultDocument?: {
|
5
|
+
id: string;
|
6
|
+
name: string;
|
7
|
+
} | undefined;
|
8
|
+
onCancel?: (() => void) | undefined;
|
9
|
+
onSubmit?: (() => void) | undefined;
|
10
|
+
}) => JSX.Element;
|
11
|
+
export default ChangeWorkDefaultFolderDialog;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import React, { useState } from "react";
|
2
|
+
import { useWorkTypeStore } from "../../../../../data/worktype";
|
3
|
+
import { State } from "./state";
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
5
|
+
import { Form, Checkbox, Modal, message } from "antd";
|
6
|
+
import { ExclamationCircleOutlined } from "@ant-design/icons";
|
7
|
+
import ReferenceList from "@voplus/morpho-document/es/controls/ReferenceList";
|
8
|
+
const ChangeWorkDefaultFolderDialog = (props) => {
|
9
|
+
const [state] = useState(new State(props.defaultDocument));
|
10
|
+
const [modal, contextHolder] = Modal.useModal();
|
11
|
+
const store = useWorkTypeStore();
|
12
|
+
const confirm = (confirm) => {
|
13
|
+
state.confirmVisible &&
|
14
|
+
modal.confirm({
|
15
|
+
title: "Confirm",
|
16
|
+
icon: React.createElement(ExclamationCircleOutlined, null),
|
17
|
+
content: "Are you sure move all existing works to new default folder ?",
|
18
|
+
okText: "Confirm",
|
19
|
+
cancelText: "Cancel",
|
20
|
+
onOk: () => {
|
21
|
+
state.checkMoveAll = confirm;
|
22
|
+
state.confirmVisible = false;
|
23
|
+
},
|
24
|
+
});
|
25
|
+
};
|
26
|
+
return observe(() => (React.createElement(Modal, { open: true, title: "Change Work Default Folder", okText: "Save", onCancel: props.onCancel, onOk: onSubmit },
|
27
|
+
React.createElement(Form, { labelAlign: "left", labelCol: { span: 8 } },
|
28
|
+
React.createElement(Form.Item, { label: "Default Folder" },
|
29
|
+
React.createElement(ReferenceList, { document: state.folder ? [state.folder] : [], multiple: false, onChange: (list) => {
|
30
|
+
state.folder = list[0];
|
31
|
+
state.defaultFolderId = list[0].id;
|
32
|
+
} })),
|
33
|
+
React.createElement(Form.Item, null,
|
34
|
+
React.createElement(Checkbox, { checked: state.checkMoveAll, onChange: onChange }, "Move all existing works to new default folder"),
|
35
|
+
contextHolder)))));
|
36
|
+
function onChange(e) {
|
37
|
+
if (!state.checkMoveAll) {
|
38
|
+
confirm(e.target.checked);
|
39
|
+
}
|
40
|
+
else {
|
41
|
+
state.checkMoveAll = false;
|
42
|
+
state.confirmVisible = true;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
async function onSubmit() {
|
46
|
+
if (!state.defaultFolderId) {
|
47
|
+
message.error("Default Folder can not be empty!");
|
48
|
+
return;
|
49
|
+
}
|
50
|
+
if (state.checkMoveAll) {
|
51
|
+
await store.changeDefaultFolder(props.id, {
|
52
|
+
data: { DefaultFolderId: state.defaultFolderId, Relocate: state.checkMoveAll },
|
53
|
+
error: "message",
|
54
|
+
});
|
55
|
+
}
|
56
|
+
await store.edit(props.id, {
|
57
|
+
data: { DefaultFolderId: state.defaultFolderId },
|
58
|
+
error: "message",
|
59
|
+
});
|
60
|
+
props.onSubmit && props.onSubmit();
|
61
|
+
}
|
62
|
+
};
|
63
|
+
export default ChangeWorkDefaultFolderDialog;
|
64
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,aAAa,MAAM,mDAAmD,CAAC;AAE9E,MAAM,6BAA6B,GAAG,CAAC,KAKtC,EAAE,EAAE;IACJ,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;IAC3D,MAAM,CAAC,KAAK,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAEhD,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IAEjC,MAAM,OAAO,GAAG,CAAC,OAAgB,EAAE,EAAE;QACpC,KAAK,CAAC,cAAc;YACnB,KAAK,CAAC,OAAO,CAAC;gBACb,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE,oBAAC,yBAAyB,OAAG;gBACnC,OAAO,EAAE,8DAA8D;gBACvE,MAAM,EAAE,SAAS;gBACjB,UAAU,EAAE,QAAQ;gBACpB,IAAI,EAAE,GAAG,EAAE;oBACV,KAAK,CAAC,YAAY,GAAG,OAAO,CAAC;oBAC7B,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC;gBAC9B,CAAC;aACD,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IACL,IAAI,QACJ,KAAK,EAAC,4BAA4B,EAClC,MAAM,EAAC,MAAM,EACb,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,IAAI,EAAE,QAAQ;QAEd,oBAAC,IAAI,IAAC,UAAU,EAAC,MAAM,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;YAC5C,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,gBAAgB;gBAChC,oBAAC,aAAa,IACb,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAC5C,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;wBAClB,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;wBACvB,KAAK,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;oBACpC,CAAC,GACA,CACS;YACZ,oBAAC,IAAI,CAAC,IAAI;gBACT,oBAAC,QAAQ,IAAC,OAAO,EAAE,KAAK,CAAC,YAAY,EAAE,QAAQ,EAAE,QAAQ,oDAE9C;gBACV,aAAa,CACH,CACN,CACA,CACR,CAAC,CAAC;IAEH,SAAS,QAAQ,CAAC,CAAsB;QACvC,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE;YACxB,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;SAC1B;aAAM;YACN,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC;YAC3B,KAAK,CAAC,cAAc,GAAG,IAAI,CAAC;SAC5B;IACF,CAAC;IAED,KAAK,UAAU,QAAQ;QACtB,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE;YAC3B,OAAO,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;YAClD,OAAO;SACP;QAED,IAAI,KAAK,CAAC,YAAY,EAAE;YACvB,MAAM,KAAK,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,EAAE;gBACzC,IAAI,EAAE,EAAE,eAAe,EAAE,KAAK,CAAC,eAAe,EAAE,QAAQ,EAAE,KAAK,CAAC,YAAY,EAAE;gBAC9E,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;SACH;QACD,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;YAC1B,IAAI,EAAE,EAAE,eAAe,EAAE,KAAK,CAAC,eAAe,EAAE;YAChD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QAEH,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;IACpC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare class State {
|
2
|
+
private defaultDocument?;
|
3
|
+
constructor(defaultDocument?: {
|
4
|
+
id: string;
|
5
|
+
name: string;
|
6
|
+
} | undefined);
|
7
|
+
defaultFolderId: string;
|
8
|
+
loading: boolean;
|
9
|
+
confirmVisible: boolean;
|
10
|
+
checkMoveAll: boolean;
|
11
|
+
folder: {
|
12
|
+
id: string;
|
13
|
+
name: string;
|
14
|
+
};
|
15
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { makeObservable, observable } from "mobx";
|
3
|
+
export class State {
|
4
|
+
constructor(defaultDocument) {
|
5
|
+
Object.defineProperty(this, "defaultDocument", {
|
6
|
+
enumerable: true,
|
7
|
+
configurable: true,
|
8
|
+
writable: true,
|
9
|
+
value: defaultDocument
|
10
|
+
});
|
11
|
+
Object.defineProperty(this, "defaultFolderId", {
|
12
|
+
enumerable: true,
|
13
|
+
configurable: true,
|
14
|
+
writable: true,
|
15
|
+
value: ""
|
16
|
+
});
|
17
|
+
Object.defineProperty(this, "loading", {
|
18
|
+
enumerable: true,
|
19
|
+
configurable: true,
|
20
|
+
writable: true,
|
21
|
+
value: false
|
22
|
+
});
|
23
|
+
Object.defineProperty(this, "confirmVisible", {
|
24
|
+
enumerable: true,
|
25
|
+
configurable: true,
|
26
|
+
writable: true,
|
27
|
+
value: true
|
28
|
+
});
|
29
|
+
Object.defineProperty(this, "checkMoveAll", {
|
30
|
+
enumerable: true,
|
31
|
+
configurable: true,
|
32
|
+
writable: true,
|
33
|
+
value: false
|
34
|
+
});
|
35
|
+
Object.defineProperty(this, "folder", {
|
36
|
+
enumerable: true,
|
37
|
+
configurable: true,
|
38
|
+
writable: true,
|
39
|
+
value: this.defaultDocument
|
40
|
+
});
|
41
|
+
makeObservable(this);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
__decorate([
|
45
|
+
observable
|
46
|
+
], State.prototype, "defaultFolderId", void 0);
|
47
|
+
__decorate([
|
48
|
+
observable
|
49
|
+
], State.prototype, "loading", void 0);
|
50
|
+
__decorate([
|
51
|
+
observable
|
52
|
+
], State.prototype, "confirmVisible", void 0);
|
53
|
+
__decorate([
|
54
|
+
observable
|
55
|
+
], State.prototype, "checkMoveAll", void 0);
|
56
|
+
__decorate([
|
57
|
+
observable
|
58
|
+
], State.prototype, "folder", void 0);
|
59
|
+
//# sourceMappingURL=state.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/ChangeWorkDefaultFolderDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB,YAA2B,eAA8C;;;;;mBAA9C;;QAIf;;;;mBAAyB,EAAE;WAAC;QAC5B;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAAwB,IAAI;WAAC;QAC7B;;;;mBAAsB,KAAK;WAAC;QAC5B;;;;mBAA8C,IAAI,CAAC,eAAgB;WAAC;QAP/E,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAOD;AALY;IAAX,UAAU;8CAA6B;AAC5B;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;6CAA8B;AAC7B;IAAX,UAAU;2CAA6B;AAC5B;IAAX,UAAU;qCAAqE"}
|
@@ -1,18 +1,18 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import "./index.less";
|
3
|
-
import { ListItem } from "./state";
|
4
|
-
import { ConnectDragSource } from "react-dnd";
|
5
|
-
declare const Item: (props: {
|
6
|
-
index?: number | undefined;
|
7
|
-
/** item of check */
|
8
|
-
value: ListItem;
|
9
|
-
/** 现在是不是sort mode */
|
10
|
-
sortMode?: boolean | undefined;
|
11
|
-
/** DragSource of sort */
|
12
|
-
connectDragSource?: ConnectDragSource | undefined;
|
13
|
-
/** edit item 的call back */
|
14
|
-
onChange?: ((item: ListItem) => void) | undefined;
|
15
|
-
/** delete item 的call back */
|
16
|
-
onDelete?: ((item: ListItem) => void) | undefined;
|
17
|
-
}) => JSX.Element;
|
18
|
-
export default Item;
|
1
|
+
/// <reference types="react" />
|
2
|
+
import "./index.less";
|
3
|
+
import { ListItem } from "./state";
|
4
|
+
import { ConnectDragSource } from "react-dnd";
|
5
|
+
declare const Item: (props: {
|
6
|
+
index?: number | undefined;
|
7
|
+
/** item of check */
|
8
|
+
value: ListItem;
|
9
|
+
/** 现在是不是sort mode */
|
10
|
+
sortMode?: boolean | undefined;
|
11
|
+
/** DragSource of sort */
|
12
|
+
connectDragSource?: ConnectDragSource | undefined;
|
13
|
+
/** edit item 的call back */
|
14
|
+
onChange?: ((item: ListItem) => void) | undefined;
|
15
|
+
/** delete item 的call back */
|
16
|
+
onDelete?: ((item: ListItem) => void) | undefined;
|
17
|
+
}) => JSX.Element;
|
18
|
+
export default Item;
|
@@ -1,38 +1,38 @@
|
|
1
|
-
import "./index.less";
|
2
|
-
import { Button, Modal } from "antd";
|
3
|
-
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
4
|
-
import { State } from "./state";
|
5
|
-
import React, { useState } from "react";
|
6
|
-
import { faBars, faTrashAlt } from "@fortawesome/pro-light-svg-icons";
|
7
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
8
|
-
import classnames from "classnames";
|
9
|
-
import { runInAction } from "mobx";
|
10
|
-
const Item = (props) => {
|
11
|
-
const { index, value, connectDragSource, sortMode, onChange, onDelete } = props;
|
12
|
-
const [state] = useState(new State());
|
13
|
-
return observe(() => (React.createElement("div", { className: "check-item", onMouseOver: () => runInAction(() => (state.hovered = true)), onMouseLeave: () => runInAction(() => (state.hovered = false)) },
|
14
|
-
sortMode && connectDragSource
|
15
|
-
? connectDragSource(React.createElement("span", { className: "icon-box" }, React.createElement(FAIcon, { icon: faBars })))
|
16
|
-
: null,
|
17
|
-
React.createElement(InlineEdit, { defaultValue: value.item, content: (v) => React.createElement("div", { className: "task-name" }, `${index}. ${v.store.value}`), onSave: (v) => edit({ ...value, item: v }) }),
|
18
|
-
React.createElement(Button, { danger: true, type: "link", onClick: del, className: classnames("check-remove-btn", {
|
19
|
-
show: !sortMode && state.hovered,
|
20
|
-
}) },
|
21
|
-
React.createElement(FAIcon, { icon: faTrashAlt })))));
|
22
|
-
/** edit checked or item */
|
23
|
-
function edit(item) {
|
24
|
-
if (onChange)
|
25
|
-
onChange(item);
|
26
|
-
}
|
27
|
-
/** delete */
|
28
|
-
function del() {
|
29
|
-
Modal.confirm({
|
30
|
-
title: "Do you want to delete this item?",
|
31
|
-
onOk() {
|
32
|
-
return onDelete && onDelete(value);
|
33
|
-
},
|
34
|
-
});
|
35
|
-
}
|
36
|
-
};
|
37
|
-
export default Item;
|
1
|
+
import "./index.less";
|
2
|
+
import { Button, Modal } from "antd";
|
3
|
+
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
4
|
+
import { State } from "./state";
|
5
|
+
import React, { useState } from "react";
|
6
|
+
import { faBars, faTrashAlt } from "@fortawesome/pro-light-svg-icons";
|
7
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
8
|
+
import classnames from "classnames";
|
9
|
+
import { runInAction } from "mobx";
|
10
|
+
const Item = (props) => {
|
11
|
+
const { index, value, connectDragSource, sortMode, onChange, onDelete } = props;
|
12
|
+
const [state] = useState(new State());
|
13
|
+
return observe(() => (React.createElement("div", { className: "check-item", onMouseOver: () => runInAction(() => (state.hovered = true)), onMouseLeave: () => runInAction(() => (state.hovered = false)) },
|
14
|
+
sortMode && connectDragSource
|
15
|
+
? connectDragSource(React.createElement("span", { className: "icon-box" }, React.createElement(FAIcon, { icon: faBars })))
|
16
|
+
: null,
|
17
|
+
React.createElement(InlineEdit, { defaultValue: value.item, content: (v) => React.createElement("div", { className: "task-name" }, `${index}. ${v.store.value}`), onSave: (v) => edit({ ...value, item: v }) }),
|
18
|
+
React.createElement(Button, { danger: true, type: "link", onClick: del, className: classnames("check-remove-btn", {
|
19
|
+
show: !sortMode && state.hovered,
|
20
|
+
}) },
|
21
|
+
React.createElement(FAIcon, { icon: faTrashAlt })))));
|
22
|
+
/** edit checked or item */
|
23
|
+
function edit(item) {
|
24
|
+
if (onChange)
|
25
|
+
onChange(item);
|
26
|
+
}
|
27
|
+
/** delete */
|
28
|
+
function del() {
|
29
|
+
Modal.confirm({
|
30
|
+
title: "Do you want to delete this item?",
|
31
|
+
onOk() {
|
32
|
+
return onDelete && onDelete(value);
|
33
|
+
},
|
34
|
+
});
|
35
|
+
}
|
36
|
+
};
|
37
|
+
export default Item;
|
38
38
|
//# sourceMappingURL=Item.js.map
|
@@ -1,19 +1,19 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import "./index.less";
|
3
|
-
import { ListItem } from "./state";
|
4
|
-
declare const ErrorTypeList: (props: {
|
5
|
-
list: ListItem[];
|
6
|
-
/** drag sort */
|
7
|
-
moveAfter?: ((id: string | number, afterId: string | number, list?: any[]) => void) | undefined;
|
8
|
-
/** 新增item的call back */
|
9
|
-
onCreate?: ((item: string) => void) | undefined;
|
10
|
-
/** item 內容變化的 call back */
|
11
|
-
onChange?: ((item: ListItem) => void) | undefined;
|
12
|
-
/** delete item 的call back */
|
13
|
-
onDelete?: ((item: ListItem) => void) | undefined;
|
14
|
-
/** 现在是不是sort mode */
|
15
|
-
sortMode?: boolean | undefined;
|
16
|
-
/** header title */
|
17
|
-
viewTitle?: string | undefined;
|
18
|
-
}) => JSX.Element;
|
19
|
-
export default ErrorTypeList;
|
1
|
+
/// <reference types="react" />
|
2
|
+
import "./index.less";
|
3
|
+
import { ListItem } from "./state";
|
4
|
+
declare const ErrorTypeList: (props: {
|
5
|
+
list: ListItem[];
|
6
|
+
/** drag sort */
|
7
|
+
moveAfter?: ((id: string | number, afterId: string | number, list?: any[]) => void) | undefined;
|
8
|
+
/** 新增item的call back */
|
9
|
+
onCreate?: ((item: string) => void) | undefined;
|
10
|
+
/** item 內容變化的 call back */
|
11
|
+
onChange?: ((item: ListItem) => void) | undefined;
|
12
|
+
/** delete item 的call back */
|
13
|
+
onDelete?: ((item: ListItem) => void) | undefined;
|
14
|
+
/** 现在是不是sort mode */
|
15
|
+
sortMode?: boolean | undefined;
|
16
|
+
/** header title */
|
17
|
+
viewTitle?: string | undefined;
|
18
|
+
}) => JSX.Element;
|
19
|
+
export default ErrorTypeList;
|
@@ -1,35 +1,35 @@
|
|
1
|
-
import "./index.less";
|
2
|
-
import { Button, Input } from "antd";
|
3
|
-
import { State } from "./state";
|
4
|
-
import React, { useState } from "react";
|
5
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
|
-
import Item from "./Item";
|
7
|
-
import SortDnD from "@voplus/morpho-ui/es/controls/SortDnD";
|
8
|
-
import classnames from "classnames";
|
9
|
-
import { faArrowUpArrowDown } from "@fortawesome/pro-light-svg-icons";
|
10
|
-
import { observe } from "@voplus/morpho-ui";
|
11
|
-
import { runInAction } from "mobx";
|
12
|
-
const ErrorTypeList = (props) => {
|
13
|
-
const { list, moveAfter, onChange, onDelete, viewTitle } = props;
|
14
|
-
const [state] = useState(new State());
|
15
|
-
const listData = (list || []).map((d, index) => ({ id: index, ...d }));
|
16
|
-
return observe(() => (React.createElement("div", { className: "check-list-view" },
|
17
|
-
React.createElement("div", { className: "check-list-header" },
|
18
|
-
React.createElement("div", { className: "title" }, viewTitle || "List"),
|
19
|
-
!state.sortMode ? (React.createElement(Button, { type: "link", icon: React.createElement(FAIcon, { icon: faArrowUpArrowDown, style: { marginRight: "7px" } }), onClick: () => runInAction(() => (state.sortMode = true)) }, "Sort")) : (React.createElement(Button, { type: "link", onClick: () => runInAction(() => (state.sortMode = false)) }, "Done"))),
|
20
|
-
React.createElement(SortDnD, { list: listData, moveAfter: (id, afterId, list) => moveAfter && moveAfter(id, afterId, list), text: (t, index, connectDragSource) => (React.createElement(Item, { key: t.id, value: t, index: index + 1, sortMode: state.sortMode, connectDragSource: connectDragSource, onChange: onChange, onDelete: onDelete })) }),
|
21
|
-
React.createElement("div", { className: classnames("add-error-type-item") },
|
22
|
-
React.createElement(Input, { autoFocus: true, value: state.item, disabled: state.loading, placeholder: "+ Add a item", onChange: (e) => runInAction(() => (state.item = e.target.value)), onPressEnter: onCreate })))));
|
23
|
-
function onCreate() {
|
24
|
-
runInAction(() => {
|
25
|
-
if (props.onCreate) {
|
26
|
-
state.loading = true;
|
27
|
-
props.onCreate(state.item);
|
28
|
-
state.loading = false;
|
29
|
-
state.item = "";
|
30
|
-
}
|
31
|
-
});
|
32
|
-
}
|
33
|
-
};
|
34
|
-
export default ErrorTypeList;
|
1
|
+
import "./index.less";
|
2
|
+
import { Button, Input } from "antd";
|
3
|
+
import { State } from "./state";
|
4
|
+
import React, { useState } from "react";
|
5
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
|
+
import Item from "./Item";
|
7
|
+
import SortDnD from "@voplus/morpho-ui/es/controls/SortDnD";
|
8
|
+
import classnames from "classnames";
|
9
|
+
import { faArrowUpArrowDown } from "@fortawesome/pro-light-svg-icons";
|
10
|
+
import { observe } from "@voplus/morpho-ui";
|
11
|
+
import { runInAction } from "mobx";
|
12
|
+
const ErrorTypeList = (props) => {
|
13
|
+
const { list, moveAfter, onChange, onDelete, viewTitle } = props;
|
14
|
+
const [state] = useState(new State());
|
15
|
+
const listData = (list || []).map((d, index) => ({ id: index, ...d }));
|
16
|
+
return observe(() => (React.createElement("div", { className: "check-list-view" },
|
17
|
+
React.createElement("div", { className: "check-list-header" },
|
18
|
+
React.createElement("div", { className: "title" }, viewTitle || "List"),
|
19
|
+
!state.sortMode ? (React.createElement(Button, { type: "link", icon: React.createElement(FAIcon, { icon: faArrowUpArrowDown, style: { marginRight: "7px" } }), onClick: () => runInAction(() => (state.sortMode = true)) }, "Sort")) : (React.createElement(Button, { type: "link", onClick: () => runInAction(() => (state.sortMode = false)) }, "Done"))),
|
20
|
+
React.createElement(SortDnD, { list: listData, moveAfter: (id, afterId, list) => moveAfter && moveAfter(id, afterId, list), text: (t, index, connectDragSource) => (React.createElement(Item, { key: t.id, value: t, index: index + 1, sortMode: state.sortMode, connectDragSource: connectDragSource, onChange: onChange, onDelete: onDelete })) }),
|
21
|
+
React.createElement("div", { className: classnames("add-error-type-item") },
|
22
|
+
React.createElement(Input, { autoFocus: true, value: state.item, disabled: state.loading, placeholder: "+ Add a item", onChange: (e) => runInAction(() => (state.item = e.target.value)), onPressEnter: onCreate })))));
|
23
|
+
function onCreate() {
|
24
|
+
runInAction(() => {
|
25
|
+
if (props.onCreate) {
|
26
|
+
state.loading = true;
|
27
|
+
props.onCreate(state.item);
|
28
|
+
state.loading = false;
|
29
|
+
state.item = "";
|
30
|
+
}
|
31
|
+
});
|
32
|
+
}
|
33
|
+
};
|
34
|
+
export default ErrorTypeList;
|
35
35
|
//# sourceMappingURL=index.js.map
|