@voplus/morpho-workspace 7.0.1 → 7.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/components/TeamTaskList/index.js +2 -3
- package/es/components/TeamTaskList/index.js.map +1 -1
- package/es/components/TimeLog/index.js +3 -5
- package/es/components/TimeLog/index.js.map +1 -1
- package/es/controls/InlineSearch/index.js +2 -3
- package/es/controls/InlineSearch/index.js.map +1 -1
- package/es/controls/MoreOperateDropdown/index.js +12 -14
- package/es/controls/MoreOperateDropdown/index.js.map +1 -1
- package/es/controls/StickyAddButton/index.d.ts +0 -1
- package/es/controls/StickyAddButton/index.js +2 -4
- package/es/controls/StickyAddButton/index.js.map +1 -1
- package/es/controls/filters/DueDateFilter/index.js +3 -4
- package/es/controls/filters/DueDateFilter/index.js.map +1 -1
- package/es/controls/filters/EventsFilter/index.js +2 -3
- package/es/controls/filters/EventsFilter/index.js.map +1 -1
- package/es/controls/filters/StartDateFilter/index.js +3 -4
- package/es/controls/filters/StartDateFilter/index.js.map +1 -1
- package/es/controls/filters/TaskFilter/index.js +2 -3
- package/es/controls/filters/TaskFilter/index.js.map +1 -1
- package/es/controls/filters/TaskStatusFilter/index.js +2 -3
- package/es/controls/filters/TaskStatusFilter/index.js.map +1 -1
- package/es/controls/filters/WorkStatusFilter/index.js +3 -4
- package/es/controls/filters/WorkStatusFilter/index.js.map +1 -1
- package/es/controls/filters/WorkTypeStatusFilter/index.js +2 -3
- package/es/controls/filters/WorkTypeStatusFilter/index.js.map +1 -1
- package/es/controls/filters/WorkTypesFilter/index.js +2 -3
- package/es/controls/filters/WorkTypesFilter/index.js.map +1 -1
- package/es/data/board/metas.js +2 -3
- package/es/data/board/metas.js.map +1 -1
- package/es/data/meeting/metas.js +3 -4
- package/es/data/meeting/metas.js.map +1 -1
- package/es/data/task/metas.js +2 -3
- package/es/data/task/metas.js.map +1 -1
- package/es/data/work/metas.js +2 -3
- package/es/data/work/metas.js.map +1 -1
- package/es/modules/board/components/Board/index.js +3 -4
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.js +3 -5
- package/es/modules/board/components/BoardColumn/index.js.map +1 -1
- package/es/modules/board/components/BoardTabs/index.js +4 -5
- package/es/modules/board/components/BoardTabs/index.js.map +1 -1
- package/es/modules/calendar/components/CalendarMenu/index.js +11 -12
- package/es/modules/calendar/components/CalendarMenu/index.js.map +1 -1
- package/es/modules/calendar/pages/CalendarMonth/index.js +4 -8
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -1
- package/es/modules/calendar/pages/CalendarMonth/index.less +0 -7
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +6 -8
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.js +3 -4
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.less +2 -0
- package/es/modules/meeting/components/AgendaList/index.js +2 -3
- package/es/modules/meeting/components/AgendaList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.js +6 -6
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.js +4 -5
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.js +4 -4
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingProperties/index.d.ts +2 -0
- package/es/modules/meeting/components/MeetingProperties/index.js +5 -6
- package/es/modules/meeting/components/MeetingProperties/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js +3 -3
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js +2 -2
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js +4 -4
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingDefaultView/index.js +5 -5
- package/es/modules/meeting/pages/MeetingDefaultView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingListView/index.js +3 -4
- package/es/modules/meeting/pages/MeetingListView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingPrintView/index.js +6 -6
- package/es/modules/meeting/pages/MeetingPrintView/index.js.map +1 -1
- package/es/modules/menus/components/UsersList/index.js +2 -3
- package/es/modules/menus/components/UsersList/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/index.js +6 -8
- package/es/modules/menus/pages/ListOptions/index.js.map +1 -1
- package/es/modules/notification/components/AllNewNotificationListHeader/index.js +3 -3
- package/es/modules/notification/components/AllNewNotificationListHeader/index.js.map +1 -1
- package/es/modules/notification/components/AllNewNotificationTableList/index.js +6 -6
- package/es/modules/notification/components/AllNewNotificationTableList/index.js.map +1 -1
- package/es/modules/notification/components/NotificationListHeader/index.js +2 -3
- package/es/modules/notification/components/NotificationListHeader/index.js.map +1 -1
- package/es/modules/notification/components/NotificationOverview/index.d.ts +1 -1
- package/es/modules/notification/components/NotificationProperties/index.js +2 -3
- package/es/modules/notification/components/NotificationProperties/index.js.map +1 -1
- package/es/modules/notification/components/NotificationPropertiesView/index.js +2 -3
- package/es/modules/notification/components/NotificationPropertiesView/index.js.map +1 -1
- package/es/modules/notification/components/NotificationRecipients/index.less +0 -3
- package/es/modules/notification/controls/NotificationMenu/item/Send.js +2 -3
- package/es/modules/notification/controls/NotificationMenu/item/Send.js.map +1 -1
- package/es/modules/notification/controls/NotificationStatusFilter/index.js +2 -3
- package/es/modules/notification/controls/NotificationStatusFilter/index.js.map +1 -1
- package/es/modules/notification/pages/NotificationDefaultView/index.js +2 -3
- package/es/modules/notification/pages/NotificationDefaultView/index.js.map +1 -1
- package/es/modules/notification/pages/NotificationListPage/index.js +2 -3
- package/es/modules/notification/pages/NotificationListPage/index.js.map +1 -1
- package/es/modules/notification/pages/NotificationListPage/state.d.ts +1 -1
- package/es/modules/notification/pages/NotificationListPage/state.js +5 -5
- package/es/modules/notification/pages/NotificationListPage/state.js.map +1 -1
- package/es/modules/pin/components/MyPinned/index.js +3 -3
- package/es/modules/pin/components/MyPinned/index.js.map +1 -1
- package/es/modules/pin/components/PinnedCardList/index.d.ts +1 -1
- package/es/modules/pin/components/PinnedCardList/index.js +1 -1
- package/es/modules/pin/components/PinnedCardList/index.js.map +1 -1
- package/es/modules/project/ProjectDefaultView/index.js +6 -8
- package/es/modules/project/ProjectDefaultView/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.js +2 -3
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.js +4 -3
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckList/index.js +2 -4
- package/es/modules/tasks/components/TaskCheckList/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckNewForm/index.js +2 -3
- package/es/modules/tasks/components/TaskCheckNewForm/index.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/index.js +6 -7
- package/es/modules/tasks/components/TaskEstimatedTime/index.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +4 -4
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +5 -5
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskOverview/index.d.ts +1 -1
- package/es/modules/tasks/components/TaskPageHead/index.js +2 -3
- package/es/modules/tasks/components/TaskPageHead/index.js.map +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js +3 -3
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js.map +1 -1
- package/es/modules/tasks/components/task-check/TaskCheckTableCard/TableCell.js +2 -3
- package/es/modules/tasks/components/task-check/TaskCheckTableCard/TableCell.js.map +1 -1
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.js +3 -3
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.js.map +1 -1
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.less +1 -1
- package/es/modules/tasks/controls/DueDateToolBar/index.js +3 -3
- package/es/modules/tasks/controls/DueDateToolBar/index.js.map +1 -1
- package/es/modules/tasks/controls/TaskMenu/items/Delegate.js +2 -3
- package/es/modules/tasks/controls/TaskMenu/items/Delegate.js.map +1 -1
- package/es/modules/tasks/pages/TaskDefaultView/index.js +4 -4
- package/es/modules/tasks/pages/TaskDefaultView/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskListPage/index.js +2 -3
- package/es/modules/tasks/pages/TaskListPage/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskListPage/state.d.ts +1 -1
- package/es/modules/tasks/pages/TaskListPage/state.js +6 -6
- package/es/modules/tasks/pages/TaskListPage/state.js.map +1 -1
- package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.js +2 -3
- package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.js.map +1 -1
- package/es/modules/tasks/reports/TaskSummaryCard/index.js +2 -3
- package/es/modules/tasks/reports/TaskSummaryCard/index.js.map +1 -1
- package/es/modules/user/pages/Positions/index.js +2 -3
- package/es/modules/user/pages/Positions/index.js.map +1 -1
- package/es/modules/work/components/WorkCashReport/index.js +2 -3
- package/es/modules/work/components/WorkCashReport/index.js.map +1 -1
- package/es/modules/work/components/WorkItem/index.js +2 -3
- package/es/modules/work/components/WorkItem/index.js.map +1 -1
- package/es/modules/work/components/WorkListHeader/index.js +3 -4
- package/es/modules/work/components/WorkListHeader/index.js.map +1 -1
- package/es/modules/work/components/WorkOverview/index.d.ts +1 -1
- package/es/modules/work/components/WorkQuickViewDialog/index.js +3 -3
- package/es/modules/work/components/WorkQuickViewDialog/index.js.map +1 -1
- package/es/modules/work/components/WorkTableList/TableCell.js +2 -3
- package/es/modules/work/components/WorkTableList/TableCell.js.map +1 -1
- package/es/modules/work/components/WorkTableList/index.js +5 -6
- package/es/modules/work/components/WorkTableList/index.js.map +1 -1
- package/es/modules/work/components/WorkTableListCard/TableCell.js +5 -7
- package/es/modules/work/components/WorkTableListCard/TableCell.js.map +1 -1
- package/es/modules/work/components/WorkTableListCard/TableCellDetails.js +13 -14
- package/es/modules/work/components/WorkTableListCard/TableCellDetails.js.map +1 -1
- package/es/modules/work/components/WorkTableListCardPage/index.js +2 -3
- package/es/modules/work/components/WorkTableListCardPage/index.js.map +1 -1
- package/es/modules/work/controls/WorkDataIconBar/index.js +3 -3
- package/es/modules/work/controls/WorkDataIconBar/index.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Accept.js +2 -3
- package/es/modules/work/controls/WorkMenu/item/Accept.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Reject.js +2 -3
- package/es/modules/work/controls/WorkMenu/item/Reject.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Send.js +2 -3
- package/es/modules/work/controls/WorkMenu/item/Send.js.map +1 -1
- package/es/modules/work/pages/WorkDefaultView/index.js +3 -4
- package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -1
- package/es/modules/work/pages/WorkListPage2/index.js +2 -3
- package/es/modules/work/pages/WorkListPage2/index.js.map +1 -1
- package/es/modules/work/pages/WorkListPage2/state.d.ts +1 -1
- package/es/modules/work/pages/WorkListPage2/state.js +7 -7
- package/es/modules/work/pages/WorkListPage2/state.js.map +1 -1
- package/es/modules/work/work-error/components/WorkErrorProperties/index.js +2 -3
- package/es/modules/work/work-error/components/WorkErrorProperties/index.js.map +1 -1
- package/es/modules/work/work-error/components/WorkErrorPropertiesView/index.js +2 -3
- package/es/modules/work/work-error/components/WorkErrorPropertiesView/index.js.map +1 -1
- package/es/modules/work/work-error/pages/WorkErrorDefaultView/index.js +3 -4
- package/es/modules/work/work-error/pages/WorkErrorDefaultView/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js +2 -3
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.js +3 -3
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleOverview/index.js +3 -3
- package/es/modules/work/work-schedule/components/WorkScheduleOverview/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js +2 -3
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkSchedulePropertiesView/index.js +2 -3
- package/es/modules/work/work-schedule/components/WorkSchedulePropertiesView/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.js +5 -5
- package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.js.map +1 -1
- package/es/modules/work/work-schedule/controls/WorkScheduleFilter/index.js +2 -3
- package/es/modules/work/work-schedule/controls/WorkScheduleFilter/index.js.map +1 -1
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/item/CreateWork.js +2 -3
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/item/CreateWork.js.map +1 -1
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/item/LinkWork.js +2 -3
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/item/LinkWork.js.map +1 -1
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/item/UnLinkWork.js +2 -3
- package/es/modules/work/work-schedule/controls/WorkScheduleMenu/item/UnLinkWork.js.map +1 -1
- package/es/modules/work/work-schedule/pages/WorkScheduleDefaultView/index.js +3 -4
- package/es/modules/work/work-schedule/pages/WorkScheduleDefaultView/index.js.map +1 -1
- package/es/modules/work/work-schedule/pages/WorkScheduleListPage/index.js +2 -3
- package/es/modules/work/work-schedule/pages/WorkScheduleListPage/index.js.map +1 -1
- package/es/modules/work/work-type/components/ErrorTypeList/Item.js +3 -4
- package/es/modules/work/work-type/components/ErrorTypeList/Item.js.map +1 -1
- package/es/modules/work/work-type/components/ErrorTypeList/index.js +2 -3
- package/es/modules/work/work-type/components/ErrorTypeList/index.js.map +1 -1
- package/es/modules/work/work-type/components/ReportsCompletedWorks/index.js +2 -3
- package/es/modules/work/work-type/components/ReportsCompletedWorks/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeIcon/index.js +2 -2
- package/es/modules/work/work-type/components/WorkTypeIcon/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.js +2 -3
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeQA/index.js +2 -3
- package/es/modules/work/work-type/components/WorkTypeQA/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeStatsLabel/index.js +5 -5
- package/es/modules/work/work-type/components/WorkTypeStatsLabel/index.js.map +1 -1
- package/es/modules/work/work-type/controls/WorkTypeMenu/index.js +3 -4
- package/es/modules/work/work-type/controls/WorkTypeMenu/index.js.map +1 -1
- package/es/modules/work/work-type/controls/WorkTypeMenu/item/Select.js +2 -3
- package/es/modules/work/work-type/controls/WorkTypeMenu/item/Select.js.map +1 -1
- package/es/modules/work/work-type/pages/WorkTypePage/Dashboard.js +3 -4
- package/es/modules/work/work-type/pages/WorkTypePage/Dashboard.js.map +1 -1
- package/es/modules/work/work-type/pages/WorkTypePage/index.js +6 -7
- package/es/modules/work/work-type/pages/WorkTypePage/index.js.map +1 -1
- package/es/modules/workspace/components/MyWorkspaces/index.js +16 -10
- package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -1
- package/es/modules/workspace/components/NewIcon/index.js +2 -3
- package/es/modules/workspace/components/NewIcon/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceIcon/index.js +2 -2
- package/es/modules/workspace/components/WorkspaceIcon/index.js.map +1 -1
- package/es/modules/workspace/controls/WorkspaceMenu/index.js +3 -4
- package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -1
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +4 -6
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
- package/es/modules/workspace/pages/WorkspacePage/SettingPage.js +2 -3
- package/es/modules/workspace/pages/WorkspacePage/SettingPage.js.map +1 -1
- package/es/modules/workspace/pages/WorkspacePage/index.js +8 -9
- package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -1
- package/es/obsolete/WorkTypePage/index.js +6 -7
- package/es/obsolete/WorkTypePage/index.js.map +1 -1
- package/es/obsolete/member/components/MemberList.js +2 -3
- package/es/obsolete/member/components/MemberList.js.map +1 -1
- package/es/obsolete/space/components/Notes/ColorSelect/index.js +2 -3
- package/es/obsolete/space/components/Notes/ColorSelect/index.js.map +1 -1
- package/es/obsolete/space/components/Notes/NewNoteDialog/index.js +3 -4
- package/es/obsolete/space/components/Notes/NewNoteDialog/index.js.map +1 -1
- package/es/obsolete/space/pages/MySpace/index.js +11 -12
- package/es/obsolete/space/pages/MySpace/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useState, useMemo, useEffect } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons/react-fontawesome";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon, faSuitcaseSolid } from "@voplus/morpho-ui/es/faIcons";
|
|
4
3
|
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
5
4
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
6
5
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
@@ -28,7 +27,7 @@ const WorkScheduleListPage = (props) => {
|
|
|
28
27
|
return observe(() => {
|
|
29
28
|
var _a, _b;
|
|
30
29
|
return (React.createElement(QuickFilterContext.Provider, { value: context },
|
|
31
|
-
React.createElement(DefaultViewLayout, { className: styles["workSchedule-list-page"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon:
|
|
30
|
+
React.createElement(DefaultViewLayout, { className: styles["workSchedule-list-page"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faSuitcaseSolid }), title: "Work Schedules", upAble: true, description: "Your tasks: prioritize and complete your work." }), propertiesWidth: "295px", properties: React.createElement(WorkSchedulePanel, { overviewProps: {
|
|
32
31
|
onOverviewItemClick: () => state.onOverviewItemClick(context.actives),
|
|
33
32
|
}, workScheduleFilterProps: {
|
|
34
33
|
onFilter(options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/pages/WorkScheduleListPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/pages/WorkScheduleListPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAA2C,MAAM,mCAAmC,CAAC;AAC5F,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;A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C7B,oBAAC,WAAW,IACX,MAAM,EAAE,OAAO,CAAC,OAAO,EACvB,QAAQ,EAAE,CAAC,EACX,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;4BACf,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;4BACzB,KAAK,CAAC,mBAAmB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;wBAC5C,CAAC,GACA,CACF,CAAC,CAAC,CAAC,SAAS,CACR,CACN,CAAC,CAAC,CAAC,SAAS,GAEb,CACiB,CACS,CAC9B,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -3,8 +3,7 @@ import { Button, Modal } from "antd";
|
|
|
3
3
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { State } from "./state";
|
|
5
5
|
import React, { useState } from "react";
|
|
6
|
-
import {
|
|
7
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons/react-fontawesome";
|
|
6
|
+
import { faBarsRegular, faTrashAltRegular, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
8
7
|
import classnames from "classnames";
|
|
9
8
|
import { runInAction } from "mobx";
|
|
10
9
|
const Item = (props) => {
|
|
@@ -12,13 +11,13 @@ const Item = (props) => {
|
|
|
12
11
|
const [state] = useState(new State());
|
|
13
12
|
return observe(() => (React.createElement("div", { className: "check-item", onMouseOver: () => runInAction(() => (state.hovered = true)), onMouseLeave: () => runInAction(() => (state.hovered = false)) },
|
|
14
13
|
sortMode && connectDragSource
|
|
15
|
-
? connectDragSource(React.createElement("span", { className: "icon-box" }, React.createElement(FAIcon, { icon:
|
|
14
|
+
? connectDragSource(React.createElement("span", { className: "icon-box" }, React.createElement(FAIcon, { icon: faBarsRegular })))
|
|
16
15
|
: null,
|
|
17
16
|
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
17
|
React.createElement(Button, { danger: true, type: "link", onClick: del, className: classnames("check-remove-btn", {
|
|
19
18
|
show: !sortMode && state.hovered,
|
|
20
19
|
}) },
|
|
21
|
-
React.createElement(FAIcon, { icon:
|
|
20
|
+
React.createElement(FAIcon, { icon: faTrashAltRegular })))));
|
|
22
21
|
/** edit checked or item */
|
|
23
22
|
function edit(item) {
|
|
24
23
|
if (onChange)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/ErrorTypeList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAY,KAAK,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/ErrorTypeList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAY,KAAK,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,aAAa,EACb,iBAAiB,EACjB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,MAA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IAAC,IAAI,EAAE,iBAAiB,GAAI,CAC3B,CACJ,CACN,CAAC,CAAC;IACH,2BAA2B;IAC3B,SAAS,IAAI,CAAC,IAAc;QAC3B,IAAI,QAAQ;YAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IACD,aAAa;IACb,SAAS,GAAG;QACX,KAAK,CAAC,OAAO,CAAC;YACb,KAAK,EAAE,kCAAkC;YACzC,IAAI;gBACH,OAAO,QAAQ,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;YACpC,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,eAAe,IAAI,CAAC"}
|
|
@@ -2,11 +2,10 @@ import "./index.less";
|
|
|
2
2
|
import { Button, Input } from "antd";
|
|
3
3
|
import { State } from "./state";
|
|
4
4
|
import React, { useState } from "react";
|
|
5
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons/react-fontawesome";
|
|
6
5
|
import Item from "./Item";
|
|
7
6
|
import SortDnD from "@voplus/morpho-ui/es/controls/SortDnD";
|
|
8
7
|
import classnames from "classnames";
|
|
9
|
-
import {
|
|
8
|
+
import { FontAwesomeIcon as FAIcon, faArrowUpArrowDownRegular } from "@voplus/morpho-ui/es/faIcons";
|
|
10
9
|
import { observe } from "@voplus/morpho-ui";
|
|
11
10
|
import { runInAction } from "mobx";
|
|
12
11
|
const ErrorTypeList = (props) => {
|
|
@@ -16,7 +15,7 @@ const ErrorTypeList = (props) => {
|
|
|
16
15
|
return observe(() => (React.createElement("div", { className: "check-list-view" },
|
|
17
16
|
React.createElement("div", { className: "check-list-header" },
|
|
18
17
|
React.createElement("div", { className: "title" }, viewTitle || "List"),
|
|
19
|
-
!state.sortMode ? (React.createElement(Button, { type: "link", icon: React.createElement(FAIcon, { icon:
|
|
18
|
+
!state.sortMode ? (React.createElement(Button, { type: "link", icon: React.createElement(FAIcon, { icon: faArrowUpArrowDownRegular, style: { marginRight: "7px" } }), onClick: () => runInAction(() => (state.sortMode = true)) }, "Sort")) : (React.createElement(Button, { type: "link", onClick: () => runInAction(() => (state.sortMode = false)) }, "Done"))),
|
|
20
19
|
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
20
|
React.createElement("div", { className: classnames("add-error-type-item") },
|
|
22
21
|
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 })))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/ErrorTypeList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAY,KAAK,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/ErrorTypeList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAY,KAAK,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,yBAAy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C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -3,8 +3,7 @@ import React, { useState } from "react";
|
|
|
3
3
|
import Card from "@voplus/morpho-ui/es/controls/Card";
|
|
4
4
|
import { State } from "./state";
|
|
5
5
|
import { Select } from "antd";
|
|
6
|
-
import {
|
|
7
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons/react-fontawesome";
|
|
6
|
+
import { faCalendarDaysSolid, FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
8
7
|
import WorktypeCompleteWorksChart from "../../controls/WorktypeCompleteWorksChart/WorkTypeCompletedWorksChart";
|
|
9
8
|
import { observe } from "@voplus/morpho-ui";
|
|
10
9
|
import "./index.less";
|
|
@@ -13,7 +12,7 @@ const ReportsCompletedWorks = (props) => {
|
|
|
13
12
|
return observe(() => (React.createElement(Card, { className: "reports-completed-works shadow ring-1 ring-black ring-opacity-5" },
|
|
14
13
|
React.createElement("div", { className: "workstats-head" },
|
|
15
14
|
React.createElement("div", null, "Completed Works"),
|
|
16
|
-
React.createElement(Select, { value: state.group, onChange: (value) => (state.group = value), prefix: React.createElement(FAIcon, { icon:
|
|
15
|
+
React.createElement(Select, { value: state.group, onChange: (value) => (state.group = value), prefix: React.createElement(FAIcon, { icon: faCalendarDaysSolid }), options: [
|
|
17
16
|
{ value: "monthly", label: "Monthly" },
|
|
18
17
|
{ value: "yearly", label: "Yearly" },
|
|
19
18
|
] })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/ReportsCompletedWorks/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/ReportsCompletedWorks/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,mBAAmB,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAC9F,OAAO,0BAA0B,MAAM,uEAAuE,CAAC;AAC/G,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvD,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEtC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,IAAI,IAAC,SAAS,EAAC,iEAAiE;QAChF,6BAAK,SAAS,EAAC,gBAAgB;YAC9B,mDAA0B;YAC1B,oBAAC,MAAM,IACN,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,EAC1C,MAAM,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,mBAAmB,GAAI,EAC7C,OAAO,EAAE;oBACR,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACtC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;iBACpC,GACA,CACG;QACN,6BAAK,SAAS,EAAC,mBAAmB,IAChC,KAAK,CAAC,EAAE,IAAI,CACZ,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,KAAK,CAAC,eAAe;YAC/C,oBAAC,0BAA0B,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,GAAI,CACtD,CACX,CACI,CACA,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { useWorkType } from "../../../../../data/worktype";
|
|
3
|
-
import {
|
|
3
|
+
import { faFileAltRegular } from "@voplus/morpho-ui/es/faIcons";
|
|
4
4
|
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
5
5
|
import CommonCard, { colorList } from "@voplus/morpho-ui/es/controls/ResponsiveGrid/GridCard";
|
|
6
6
|
import WorkTypePropertiesView from "../WorkTypePropertiesView";
|
|
@@ -9,7 +9,7 @@ const WorkTypeIcon = (props) => {
|
|
|
9
9
|
const { id, active, index = 0 } = props;
|
|
10
10
|
const worktype = useWorkType(id);
|
|
11
11
|
const asideContext = useAsideContentContext();
|
|
12
|
-
return observe(() => (React.createElement(CommonCard, { icon:
|
|
12
|
+
return observe(() => (React.createElement(CommonCard, { icon: faFileAltRegular, iconColor: colorList[index % colorList.length].text, iconBg: colorList[index % colorList.length].bg, title: worktype === null || worktype === void 0 ? void 0 : worktype.name,
|
|
13
13
|
// description={
|
|
14
14
|
// <NodeLink node={worktype?.workspace!} url={`/workspaces/${worktype.workspace?.id}`} />
|
|
15
15
|
// }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAA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AQ,CAAE,MAAM,MAAK,QAAQ;gBAC9B,kEAAkE,EACjE,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,MAAK,UAAU;aAChC,CACD,IAEA,QAAQ,CAAC,MAAM,CACV,EAER,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,WAAW,GACnB,CACF,CAAC,CAAC;IAEH,SAAS,WAAW;;QACnB,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAC1E,MAAA,KAAK,CAAC,WAAW,qDAAI,CAAC;IACvB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -7,8 +7,7 @@ import { useDocumentStore, useHandleError } from "@voplus/morpho-document-core";
|
|
|
7
7
|
import { useWorkType, useWorkTypeStore } from "../../../../../data/worktype";
|
|
8
8
|
import WorktypeCompleteWorksChart from "../../controls/WorktypeCompleteWorksChart";
|
|
9
9
|
import PropertiesHeader from "@voplus/morpho-org/es/components/PropertiesHeader";
|
|
10
|
-
import {
|
|
11
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons/react-fontawesome";
|
|
10
|
+
import { FontAwesomeIcon as FAIcon, faBriefcaseSolid } from "@voplus/morpho-ui/es/faIcons";
|
|
12
11
|
import WorkTypePropertiesTabs from "../WorkTypePropertiesTabs";
|
|
13
12
|
import WorkTypeMenu from "../../controls/WorkTypeMenu";
|
|
14
13
|
import "./index.less";
|
|
@@ -33,7 +32,7 @@ const WorkTypePropertiesView = (props) => {
|
|
|
33
32
|
return observe(() => {
|
|
34
33
|
var _a;
|
|
35
34
|
return (React.createElement(ViewContext.Provider, { value: view }, worktype.loaded && (React.createElement("div", { className: "module-detail-view worktype-properties-view" },
|
|
36
|
-
React.createElement(PropertiesHeader, { id: id, icon: React.createElement(FAIcon, { icon:
|
|
35
|
+
React.createElement(PropertiesHeader, { id: id, icon: React.createElement(FAIcon, { icon: faBriefcaseSolid }), nodeName: (_a = worktype.name) !== null && _a !== void 0 ? _a : "", url: `/work-types-page/${id}`, tagProps: { id: id, items: store.items, tags: worktype.tags }, nodeMenu: React.createElement(WorkTypeMenu, { id: id, closeAside: true }), onEditName: (name) => state.save(name, worktype.name, { Name: name }) }),
|
|
37
36
|
React.createElement(WorktypeCompleteWorksChart, { id: id }),
|
|
38
37
|
React.createElement(WorkTypePropertiesTabs, { id: id })))));
|
|
39
38
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,0BAA0B,MAAM,2CAA2C,CAAC;AACnF,OAAO,gBAAgB,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,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/worktype";
|
|
|
4
4
|
import { SettingFormPage, SettingItem, SettingFormItem, } from "@voplus/morpho-ui/es/controls/SettingFormPage";
|
|
5
5
|
import { State } from "./state";
|
|
6
6
|
import MentionList from "@voplus/morpho-org/es/controls/MentionList";
|
|
7
|
-
import {
|
|
8
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons/react-fontawesome";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon, faHardDriveSolid } from "@voplus/morpho-ui/es/faIcons";
|
|
9
8
|
import { observe } from "@voplus/morpho-ui";
|
|
10
9
|
import { runInAction } from "mobx";
|
|
11
10
|
import ErrorTypeList from "../ErrorTypeList2";
|
|
@@ -23,7 +22,7 @@ const WorkTypeQA = (props) => {
|
|
|
23
22
|
return (React.createElement(SettingFormPage, { headerVisible: headerVisible, pageHeadProps: { title: "Quality Assurance Setting" }, className: "work-type-oa" },
|
|
24
23
|
React.createElement(Form, { layout: "vertical" },
|
|
25
24
|
React.createElement(SettingItem, { title: React.createElement(React.Fragment, null,
|
|
26
|
-
React.createElement(FAIcon, { icon:
|
|
25
|
+
React.createElement(FAIcon, { icon: faHardDriveSolid }),
|
|
27
26
|
"CENTER DETAILS"), description: "This information will be displayed publicly." },
|
|
28
27
|
React.createElement(SettingFormItem, { item1: React.createElement(Form.Item, { label: "Auditor" },
|
|
29
28
|
React.createElement("div", { className: classnames("form-item-border", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeQA/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EACN,eAAe,EACf,WAAW,EACX,eAAe,GACf,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeQA/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EACN,eAAe,EACf,WAAW,EACX,eAAe,GACf,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC3F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,UAAU,GAAG,CAAC,KAA8C,EAAE,EAAE;IACrE,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,EAAiB,CAAC;IAClD,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IACjC,KAAK,CAAC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KAAK,UAAU,eAAe;;QAC7B,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,MAAK,MAAA,KAAK,CAAC,QAAQ,CAAC,KAAK,0CAAE,SAAS,CAAA,EAAE,CAAC;YAC/D,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACvC,CAAC;QACD,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC;QAC5B,OAAO,CAAC,IAAI,CAAC,CAAC;IACf,CAAC;AACF,CAAC,CAAC;AAEF,UAAU,CAAC,YAAY,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,CAAC;AAEnD,eAAe,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import Card from "@voplus/morpho-ui/es/controls/Card";
|
|
3
|
-
import {
|
|
3
|
+
import { faPlusSolid, faPenSolid, faCheckSolid, faBarsProgressSolid, } from "@voplus/morpho-ui/es/faIcons";
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
|
5
5
|
import { useWorkListEffect } from "../../../../../data/work";
|
|
6
6
|
import { State } from "../../pages/WorkTypePage/state";
|
|
@@ -23,10 +23,10 @@ const WorkTypeStatsLabel = (props) => {
|
|
|
23
23
|
runInAction(() => (state.workStatusTotals.works = total || 0));
|
|
24
24
|
}, state.nWorksOptions);
|
|
25
25
|
return observe(() => (React.createElement(Card, { className: "work-type-stats-label shadow ring-1 ring-black ring-opacity-5" },
|
|
26
|
-
React.createElement(StatsLabel, { icon:
|
|
27
|
-
React.createElement(StatsLabel, { icon:
|
|
28
|
-
React.createElement(StatsLabel, { icon:
|
|
29
|
-
React.createElement(StatsLabel, { icon:
|
|
26
|
+
React.createElement(StatsLabel, { icon: faPenSolid, total: state.workStatusTotals.draft, title: "Draft", description: "Total Works", className: "draft", url: `/work-types-page/${typesId}/works/draft` }),
|
|
27
|
+
React.createElement(StatsLabel, { icon: faPlusSolid, total: state.workStatusTotals.new, title: "New", description: "Total Works", url: `/work-types-page/${typesId}/works/new` }),
|
|
28
|
+
React.createElement(StatsLabel, { icon: faCheckSolid, total: state.workStatusTotals.active, title: "Active", description: "Total Works", className: "active", url: `/work-types-page/${typesId}/works/active` }),
|
|
29
|
+
React.createElement(StatsLabel, { icon: faBarsProgressSolid, total: state.workStatusTotals.works, title: "All", description: "In Total", className: "all", url: `/work-types-page/${typesId}/works/all` }),
|
|
30
30
|
React.createElement("div", { className: "description" }, "Lates Update on 13 August 2024"))));
|
|
31
31
|
};
|
|
32
32
|
export default WorkTypeStatsLabel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeStatsLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeStatsLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EACN,WAAW,EACX,UAAU,EACV,YAAY,EACZ,mBAAmB,GACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvD,OAAO,UAAU,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC,KAAsC,EAAE,EAAE;IACrE,MAAM,E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KAAK,CAAC,gBAAgB,CAAC,KAAK,EACnC,KAAK,EAAC,OAAO,EACb,WAAW,EAAC,aAAa,EACzB,SAAS,EAAC,OAAO,EACjB,GAAG,EAAE,oBAAoB,OAAO,cAAc,GAC7C;QACF,oBAAC,UAAU,IACV,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,EACjC,KAAK,EAAC,KAAK,EACX,WAAW,EAAC,aAAa,EACzB,GAAG,EAAE,oBAAoB,OAAO,YAAY,GAC3C;QACF,oBAAC,UAAU,IACV,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,EACpC,KAAK,EAAC,QAAQ,EACd,WAAW,EAAC,aAAa,EACzB,SAAS,EAAC,QAAQ,EAClB,GAAG,EAAE,oBAAoB,OAAO,eAAe,GAC9C;QACF,oBAAC,UAAU,IACV,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,EACnC,KAAK,EAAC,KAAK,EACX,WAAW,EAAC,UAAU,EACtB,SAAS,EAAC,KAAK,EACf,GAAG,EAAE,oBAAoB,OAAO,YAAY,GAC3C;QACF,6BAAK,SAAS,EAAC,aAAa,qCAAqC,CAC3D,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -4,8 +4,7 @@ import { observe } from "@voplus/morpho-ui";
|
|
|
4
4
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
5
5
|
import { Access, Delete } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
6
6
|
import { useWorkType, useWorkTypeStore } from "../../../../../data/worktype";
|
|
7
|
-
import {
|
|
8
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons/react-fontawesome";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon, faUserLockRegular, faUserUnlockRegular, } from "@voplus/morpho-ui/es/faIcons";
|
|
9
8
|
import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
|
|
10
9
|
import Select from "./item/Select";
|
|
11
10
|
const WorkTypeMenu = (props) => {
|
|
@@ -23,10 +22,10 @@ const WorkTypeMenu = (props) => {
|
|
|
23
22
|
React.createElement(Select, { id: id, className: classId + "-move" }),
|
|
24
23
|
user.can("delete", worktype.p) && React.createElement(Delete, { closeAside: props.closeAside }),
|
|
25
24
|
user.can("disable", worktype.p) && (React.createElement(Button, { type: "link", onClick: () => onChangeStatus("Disabled"), className: classId + "-disabled" },
|
|
26
|
-
React.createElement(FAIcon, { icon:
|
|
25
|
+
React.createElement(FAIcon, { icon: faUserLockRegular }),
|
|
27
26
|
React.createElement("span", null, "Disabled"))),
|
|
28
27
|
user.can("enable", worktype.p) && (React.createElement(Button, { type: "link", onClick: () => onChangeStatus("Active"), className: classId + "-enable" },
|
|
29
|
-
React.createElement(FAIcon, { icon:
|
|
28
|
+
React.createElement(FAIcon, { icon: faUserUnlockRegular }),
|
|
30
29
|
React.createElement("span", null, "Enable")))) })));
|
|
31
30
|
function onChangeStatus(status) {
|
|
32
31
|
store.edit(id, { data: { Status: status }, error: "message" });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/controls/WorkTypeMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAa,MAAM,8BAA8B,CAAC;AACxF,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":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"@voplus/morpho-document-core";
|
|
4
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons
|
|
5
|
-
import { faSquareCheck } from "@voplus/morpho-ui/es/faIcons/pro-light-svg-icons";
|
|
4
|
+
import { faSquareCheckRegular, FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
6
5
|
import { useWorkType } from "../../../../../../data/worktype";
|
|
7
6
|
import { observe } from "@voplus/morpho-ui";
|
|
8
7
|
const WorkTypeMove = (props) => {
|
|
@@ -10,7 +9,7 @@ const WorkTypeMove = (props) => {
|
|
|
10
9
|
const worktype = useWorkType(props.id);
|
|
11
10
|
const select = useSelectNodeInfoService();
|
|
12
11
|
return observe(() => (React.createElement(Button, { className: className, type: "link", disabled: disabled, onClick: onClick },
|
|
13
|
-
React.createElement(FAIcon, { icon:
|
|
12
|
+
React.createElement(FAIcon, { icon: faSquareCheckRegular }),
|
|
14
13
|
React.createElement("span", null, "Select"))));
|
|
15
14
|
function onClick() {
|
|
16
15
|
select.add([props.id], worktype.name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../../../../../src/modules/work/work-type/controls/WorkTypeMenu/item/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../../../../../src/modules/work/work-type/controls/WorkTypeMenu/item/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,YAAY,GAAG,CAAC,KAKrB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtC,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,MAAM,GAAG,wBAAwB,EAAE,CAAC;IAE1C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,MAAM,IAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO;QAC7E,oBAAC,MAAM,IAAC,IAAI,EAAE,oBAAoB,GAAI;QACtC,2CAAmB,CACX,CACT,CAAC,CAAC;IACH,SAAS,OAAO;QACf,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -3,8 +3,7 @@ import { Col, Row } from "antd";
|
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import RelatedDocument from "@voplus/morpho-org/es/controls/RelatedDocument";
|
|
5
5
|
import WorkTypeMenu from "../../controls/WorkTypeMenu";
|
|
6
|
-
import {
|
|
7
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons/react-fontawesome";
|
|
6
|
+
import { faEllipsisVerticalSolid, faBriefcaseSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
8
7
|
import { useWorkType } from "../../../../../data/worktype";
|
|
9
8
|
import ActivityLogCard from "@voplus/morpho-org/es/components/ActivityLogCard";
|
|
10
9
|
import WorkTypeStatsLabel from "../../components/WorkTypeStatsLabel";
|
|
@@ -20,9 +19,9 @@ const Dashboard = (props) => {
|
|
|
20
19
|
const cardProps = { typesId: id, details: true, addAble: false, type: "details" };
|
|
21
20
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
22
21
|
React.createElement("div", { className: styles["work-type-dashboard-content"] },
|
|
23
|
-
React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon:
|
|
22
|
+
React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faBriefcaseSolid }), title: React.createElement(React.Fragment, null,
|
|
24
23
|
worktype.name,
|
|
25
|
-
React.createElement(WorkTypeMenu, { id: id, icon: React.createElement(FAIcon, { icon:
|
|
24
|
+
React.createElement(WorkTypeMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }) })), description: React.createElement(React.Fragment, null, "Created on 18 September 2024") }),
|
|
26
25
|
React.createElement(RelatedDocument, { className: "work-type-related-document" },
|
|
27
26
|
React.createElement(Row, { gutter: [16, 0] },
|
|
28
27
|
React.createElement(Col, { xs: 24, sm: 24, md: 24, lg: 24, xl: 18 },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/pages/WorkTypePage/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../../src/modules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AM,EAAC,KAAK,KAAK,SAAS,GAAI;wBACjD,oBAAC,iBAAiB,IAAC,MAAM,EAAC,QAAQ,KAAK,SAAS,GAAI,CAC/C;oBACN,oBAAC,GAAG,IAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,SAAS,EAAC,6BAA6B;wBAClF,oBAAC,eAAe,IAAC,EAAE,EAAE,QAAQ,CAAC,EAAE,GAAI,CAC/B,CACD,CACW,CACb,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { observe, useAutorunEffect, NavPanel } from "@voplus/morpho-ui";
|
|
|
3
3
|
import { Navigate, Route, Routes, useParams, useResolvedPath } from "react-router-dom";
|
|
4
4
|
import React, { useMemo, useState } from "react";
|
|
5
5
|
import { TabItemContext, TabItemStore, useLayout, useTabItem } from "@voplus/morpho-data";
|
|
6
|
-
import {
|
|
6
|
+
import { faCalendarCheckRegular, faGearRegular, faListTimelineRegular, faTableRowsRegular, faTagsRegular, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
7
7
|
import { useDocumentListEffect, useTaskListEffect, useHandleError, } from "@voplus/morpho-document-core";
|
|
8
8
|
import { useWorkType } from "../../../../../data/worktype";
|
|
9
9
|
import NavHeaderSection from "@voplus/morpho-ui/es/controls/NavHeaderSection";
|
|
@@ -11,7 +11,6 @@ import ActivityLogPage from "@voplus/morpho-org/es/pages/ActivityLogPage";
|
|
|
11
11
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
12
12
|
import Dashboard from "./Dashboard";
|
|
13
13
|
import DocumentPage from "@voplus/morpho-document/es/pages/DocumentPage";
|
|
14
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons/react-fontawesome";
|
|
15
14
|
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
16
15
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
17
16
|
import { State } from "./state";
|
|
@@ -43,31 +42,31 @@ const WorkTypePage = () => {
|
|
|
43
42
|
React.createElement(MainContent, { className: styles["work-type-page"] },
|
|
44
43
|
React.createElement(MainContent.Nav, { collapsible: true },
|
|
45
44
|
React.createElement(NavPanel, null,
|
|
46
|
-
React.createElement(NavHeaderSection, { title: "Work Types", icon:
|
|
45
|
+
React.createElement(NavHeaderSection, { title: "Work Types", icon: faTagsRegular }),
|
|
47
46
|
React.createElement(Scrollbars, { autoHide: true },
|
|
48
47
|
React.createElement(Menu, { className: "nav-panel-menu", mode: "inline", defaultSelectedKeys: ["/dashboard"], selectedKeys: [menuKey], onClick: ({ key }) => onClick(key), items: [
|
|
49
48
|
{
|
|
50
49
|
key: "/dashboard",
|
|
51
50
|
label: "Dashboard",
|
|
52
|
-
icon: React.createElement(FAIcon, { icon:
|
|
51
|
+
icon: React.createElement(FAIcon, { icon: faTableRowsRegular }),
|
|
53
52
|
className: classId + "-dashboard",
|
|
54
53
|
},
|
|
55
54
|
{
|
|
56
55
|
key: "/works/all",
|
|
57
56
|
label: "Works",
|
|
58
|
-
icon: React.createElement(FAIcon, { icon:
|
|
57
|
+
icon: React.createElement(FAIcon, { icon: faCalendarCheckRegular }),
|
|
59
58
|
className: classId + "-works",
|
|
60
59
|
},
|
|
61
60
|
{
|
|
62
61
|
key: "/activities",
|
|
63
62
|
label: "Activities",
|
|
64
|
-
icon: React.createElement(FAIcon, { icon:
|
|
63
|
+
icon: React.createElement(FAIcon, { icon: faListTimelineRegular }),
|
|
65
64
|
className: classId + "-activities",
|
|
66
65
|
},
|
|
67
66
|
{
|
|
68
67
|
key: "Settings",
|
|
69
68
|
label: "Settings",
|
|
70
|
-
icon: React.createElement(FAIcon, { icon:
|
|
69
|
+
icon: React.createElement(FAIcon, { icon: faGearRegular }),
|
|
71
70
|
className: classId + "-settings",
|
|
72
71
|
children: [
|
|
73
72
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/pages/WorkTypePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/pages/WorkTypePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EACN,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,GACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,gBAAgB,MAAM,gDAAgD,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zB,OAAO,EACN,oBAAC,YAAY,IACZ,IAAI,EAAE,EAAE,EACR,OAAO,EAAE,CAAC,MAAM,CAAC,EACjB,KAAK,EAAE,oBAAoB,EAC3B,QAAQ,EAAE,QAAQ,CAAC,IAAI,GACtB,GAEF;oBACF,oBAAC,KAAK,IACL,IAAI,EAAE,2BAA2B,EACjC,OAAO,EAAE,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,aAAa,SAAG,GAC5C;oBACF,oBAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAE,WAAW,GAAI,GAAI,CAClD,CACJ,CACO,CACW,CAC1B,CAAC,CAAC;IAEH,SAAS,OAAO,CAAC,GAAW;QAC3B,GAAG,KAAK,0BAA0B,IAAI,eAAe,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;QACpF,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QAE3B,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QACrF,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,GAAG,EAAE,CAAC,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -2,9 +2,8 @@ import React, { useState } from "react";
|
|
|
2
2
|
import { State } from "./state";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
5
|
-
import {
|
|
5
|
+
import { faUserSolid, faUsersSolid, faPlusSolid, faBanSolid, faThLargeSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
6
6
|
import { useWorkspaceListEffect } from "../../../../data/workspace";
|
|
7
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons/react-fontawesome";
|
|
8
7
|
import CreatedOrDisabledWorkspacesList from "../CreatedOrDisabledWorkspacesList";
|
|
9
8
|
import ResponsiveGridContainer from "@voplus/morpho-ui/es/controls/ResponsiveGrid/ResponsiveGridContainer";
|
|
10
9
|
import AllNewHeaderLayout from "@voplus/morpho-ui/es/controls/ResponsiveGrid/AllNewHeaderLayout";
|
|
@@ -28,19 +27,22 @@ const MyWorkspaces = (props) => {
|
|
|
28
27
|
Total: true,
|
|
29
28
|
Filters: [{ c: "WorkspaceStatus", o: "=", l: "And", v1: "Disabled" }],
|
|
30
29
|
});
|
|
31
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: "my-workSpaces", header: React.createElement(AllNewHeaderLayout, { icon:
|
|
30
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: "my-workSpaces", header: React.createElement(AllNewHeaderLayout, { icon: faThLargeSolid, title: "My Workspaces", subtitle: "Easy access on convenient shortcuts to your go-to folders", rightContent: React.createElement(React.Fragment, null,
|
|
32
31
|
React.createElement("div", { className: "flex items-center gap-2" },
|
|
33
|
-
React.createElement(FAIcon, { icon:
|
|
32
|
+
React.createElement(FAIcon, { icon: faUserSolid, className: "text-green-600 text-xs" }),
|
|
33
|
+
React.createElement(FAIcon, { icon: faUserSolid, className: "text-green-600 text-xs" }),
|
|
34
34
|
React.createElement("span", null,
|
|
35
35
|
state.personalTotal,
|
|
36
36
|
" Personal")),
|
|
37
37
|
React.createElement("div", { className: "flex items-center gap-2" },
|
|
38
|
-
React.createElement(FAIcon, { icon:
|
|
38
|
+
React.createElement(FAIcon, { icon: faUsersSolid, className: "text-blue-600 text-xs" }),
|
|
39
|
+
React.createElement(FAIcon, { icon: faUsersSolid, className: "text-blue-600 text-xs" }),
|
|
39
40
|
React.createElement("span", null,
|
|
40
41
|
state.sharedTotal,
|
|
41
42
|
" Shared")),
|
|
42
43
|
React.createElement("div", { className: "flex items-center gap-2" },
|
|
43
|
-
React.createElement(FAIcon, { icon:
|
|
44
|
+
React.createElement(FAIcon, { icon: faBanSolid, className: "text-gray-400 text-xs" }),
|
|
45
|
+
React.createElement(FAIcon, { icon: faBanSolid, className: "text-gray-400 text-xs" }),
|
|
44
46
|
React.createElement("span", null,
|
|
45
47
|
state.disabledTotal,
|
|
46
48
|
" Disabled"))) }) },
|
|
@@ -49,24 +51,28 @@ const MyWorkspaces = (props) => {
|
|
|
49
51
|
React.createElement("div", { className: "animate-fade-in" },
|
|
50
52
|
React.createElement("div", { className: "flex items-center justify-between mb-6" },
|
|
51
53
|
React.createElement("h2", { className: "text-xl font-semibold text-slate-900 flex items-center gap-3" },
|
|
52
|
-
React.createElement(FAIcon, { icon:
|
|
54
|
+
React.createElement(FAIcon, { icon: faUserSolid, className: "text-green-600" }),
|
|
55
|
+
React.createElement(FAIcon, { icon: faUserSolid, className: "text-green-600" }),
|
|
53
56
|
"Personal Created Workspaces"),
|
|
54
57
|
React.createElement("button", { className: "text-green-600 hover:text-green-700 text-sm font-medium flex items-center gap-2 hover:bg-green-50 px-3 py-1.5 rounded-lg transition-colors", onClick: () => setVisible(true) },
|
|
55
|
-
React.createElement(FAIcon, { icon:
|
|
58
|
+
React.createElement(FAIcon, { icon: faPlusSolid, className: "text-xs" }),
|
|
56
59
|
"Create Workspace")),
|
|
57
60
|
React.createElement("div", { className: "grid gap-6", style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` } },
|
|
58
61
|
React.createElement(CreatedOrDisabledWorkspacesList, { className: classId + "-my", workspaceType: "Personal", onItemClick: props.onClickItem }))),
|
|
59
62
|
React.createElement("div", { className: "animate-fade-in" },
|
|
60
63
|
React.createElement("div", { className: "flex items-center justify-between mb-6" },
|
|
61
64
|
React.createElement("h2", { className: "text-xl font-semibold text-slate-900 flex items-center gap-3" },
|
|
62
|
-
React.createElement(FAIcon, { icon:
|
|
65
|
+
React.createElement(FAIcon, { icon: faUsersSolid, className: "text-blue-600" }),
|
|
66
|
+
React.createElement(FAIcon, { icon: faUsersSolid, className: "text-blue-600" }),
|
|
63
67
|
"Shared Workspaces")),
|
|
64
68
|
React.createElement("div", { className: "grid gap-6", style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` } },
|
|
65
69
|
React.createElement(SharedWorkspacesList, { className: classId + "-access", onTotal: (total) => (state.sharedTotal = total), onItemClick: props.onClickItem }))),
|
|
66
70
|
React.createElement("div", { className: "animate-fade-in" },
|
|
67
71
|
React.createElement("div", { className: "flex items-center justify-between mb-6" },
|
|
68
72
|
React.createElement("h2", { className: "text-xl font-semibold text-slate-900 flex items-center gap-3" },
|
|
69
|
-
React.createElement(FAIcon, { icon:
|
|
73
|
+
React.createElement(FAIcon, { icon: faBanSolid, className: "text-gray-400" }),
|
|
74
|
+
React.createElement(FAIcon, { icon: faBanSolid, className: "text-gray-400" }),
|
|
75
|
+
React.createElement(FAIcon, { icon: faPlusSolid, className: "text-xs" }),
|
|
70
76
|
"Disabled Workspaces")),
|
|
71
77
|
React.createElement("div", { className: "grid gap-6", style: { gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))` } },
|
|
72
78
|
React.createElement(CreatedOrDisabledWorkspacesList, { className: classId + "-disabled", workspaceType: "Disabled", onItemClick: props.onClickItem })))))),
|