@voplus/morpho-workspace 9.0.25 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/controls/MoreOperateDropdown/index.d.ts +17 -26
- package/es/controls/MoreOperateDropdown/index.js +2 -10
- package/es/controls/MoreOperateDropdown/index.js.map +1 -1
- package/es/controls/filters/StartDateFilter/index.d.ts +3 -8
- package/es/controls/filters/StartDateFilter/index.js +2 -5
- package/es/controls/filters/StartDateFilter/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingProperties/index.d.ts +16 -24
- package/es/modules/meeting/components/MeetingProperties/index.js +7 -12
- package/es/modules/meeting/components/MeetingProperties/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingPropertiesView/index.js +8 -9
- package/es/modules/meeting/components/MeetingPropertiesView/index.js.map +1 -1
- package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.d.ts +8 -13
- package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.js +2 -6
- package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.js.map +1 -1
- package/es/modules/notification/components/NewNotificationForm/NotificationForm.d.ts +1 -6
- package/es/modules/notification/components/NewNotificationForm/NotificationForm.js +4 -7
- package/es/modules/notification/components/NewNotificationForm/NotificationForm.js.map +1 -1
- package/es/modules/notification/components/NewNotificationForm/index.d.ts +1 -7
- package/es/modules/notification/components/NewNotificationForm/index.js +2 -6
- package/es/modules/notification/components/NewNotificationForm/index.js.map +1 -1
- package/es/modules/notification/components/NotificationHeader/index.d.ts +5 -10
- package/es/modules/notification/components/NotificationHeader/index.js +2 -5
- package/es/modules/notification/components/NotificationHeader/index.js.map +1 -1
- package/es/modules/notification/components/NotificationList/index.d.ts +1 -9
- package/es/modules/notification/components/NotificationList/index.js +4 -10
- package/es/modules/notification/components/NotificationList/index.js.map +1 -1
- package/es/modules/notification/components/NotificationListHeader/index.d.ts +1 -7
- package/es/modules/notification/components/NotificationListHeader/index.js +2 -6
- package/es/modules/notification/components/NotificationListHeader/index.js.map +1 -1
- package/es/modules/notification/components/NotificationProperties/index.d.ts +9 -16
- package/es/modules/notification/components/NotificationProperties/index.js +7 -11
- package/es/modules/notification/components/NotificationProperties/index.js.map +1 -1
- package/es/modules/notification/components/NotificationPropertiesView/index.d.ts +0 -1
- package/es/modules/notification/components/NotificationPropertiesView/index.js +2 -6
- package/es/modules/notification/components/NotificationPropertiesView/index.js.map +1 -1
- package/es/modules/notification/components/NotificationTableList/index.d.ts +1 -6
- package/es/modules/notification/components/NotificationTableList/index.js +2 -5
- package/es/modules/notification/components/NotificationTableList/index.js.map +1 -1
- package/es/modules/notification/pages/NotificationListPage/index.d.ts +1 -7
- package/es/modules/notification/pages/NotificationListPage/index.js +3 -7
- package/es/modules/notification/pages/NotificationListPage/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.d.ts +1 -6
- package/es/modules/tasks/components/NewTaskForm/index.js +2 -5
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.d.ts +1 -9
- package/es/modules/tasks/components/SubTaskList/index.js +2 -8
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/TaskCheckListCard/index.d.ts +4 -10
- package/es/modules/tasks/components/TaskCheckListCard/index.js +0 -4
- package/es/modules/tasks/components/TaskCheckListCard/index.js.map +1 -1
- package/es/modules/tasks/components/TaskEstimatedTime/index.d.ts +1 -8
- package/es/modules/tasks/components/TaskEstimatedTime/index.js +2 -3
- package/es/modules/tasks/components/TaskEstimatedTime/index.js.map +1 -1
- package/es/modules/tasks/components/TaskPageHead/index.d.ts +6 -11
- package/es/modules/tasks/components/TaskPageHead/index.js +2 -6
- package/es/modules/tasks/components/TaskPageHead/index.js.map +1 -1
- package/es/modules/tasks/components/TaskProperties/index.d.ts +15 -24
- package/es/modules/tasks/components/TaskProperties/index.js +3 -9
- package/es/modules/tasks/components/TaskProperties/index.js.map +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.d.ts +0 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.js +0 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.js.map +1 -1
- package/es/modules/tasks/components/TaskSimpleProperties/index.d.ts +14 -21
- package/es/modules/tasks/components/TaskSimpleProperties/index.js +2 -6
- package/es/modules/tasks/components/TaskSimpleProperties/index.js.map +1 -1
- package/es/modules/tasks/controls/TaskDataIconBar/index.d.ts +9 -15
- package/es/modules/tasks/controls/TaskDataIconBar/index.js +2 -7
- package/es/modules/tasks/controls/TaskDataIconBar/index.js.map +1 -1
- package/es/modules/tasks/controls/TasksProgressDataIcon/index.d.ts +6 -11
- package/es/modules/tasks/controls/TasksProgressDataIcon/index.js +2 -6
- package/es/modules/tasks/controls/TasksProgressDataIcon/index.js.map +1 -1
- package/es/modules/tasks/controls/TasksTotal/index.d.ts +6 -10
- package/es/modules/tasks/controls/TasksTotal/index.js +2 -5
- package/es/modules/tasks/controls/TasksTotal/index.js.map +1 -1
- package/es/modules/tasks/reports/TaskSummaryCard/index.d.ts +8 -14
- package/es/modules/tasks/reports/TaskSummaryCard/index.js +1 -7
- package/es/modules/tasks/reports/TaskSummaryCard/index.js.map +1 -1
- package/es/modules/work/components/NewWorkForm/NewWorkFormDialog.d.ts +1 -6
- package/es/modules/work/components/NewWorkForm/NewWorkFormDialog.js +0 -3
- package/es/modules/work/components/NewWorkForm/NewWorkFormDialog.js.map +1 -1
- package/es/modules/work/components/NewWorkForm/index.d.ts +1 -6
- package/es/modules/work/components/NewWorkForm/index.js +4 -7
- package/es/modules/work/components/NewWorkForm/index.js.map +1 -1
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.d.ts +1 -6
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.js +2 -5
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.js.map +1 -1
- package/es/modules/work/components/WorkList/index.d.ts +1 -7
- package/es/modules/work/components/WorkList/index.js +6 -10
- package/es/modules/work/components/WorkList/index.js.map +1 -1
- package/es/modules/work/components/WorkList2/index.d.ts +1 -7
- package/es/modules/work/components/WorkList2/index.js +7 -11
- package/es/modules/work/components/WorkList2/index.js.map +1 -1
- package/es/modules/work/components/WorkListCard/index.d.ts +3 -8
- package/es/modules/work/components/WorkListCard/index.js +1 -4
- package/es/modules/work/components/WorkListCard/index.js.map +1 -1
- package/es/modules/work/components/WorkPropertiesView/index.d.ts +0 -1
- package/es/modules/work/components/WorkPropertiesView/index.js +4 -6
- package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkTableListCard/index.d.ts +1 -7
- package/es/modules/work/components/WorkTableListCard/index.js +3 -4
- package/es/modules/work/components/WorkTableListCard/index.js.map +1 -1
- package/es/modules/work/components/WorksProperties/index.d.ts +15 -24
- package/es/modules/work/components/WorksProperties/index.js +11 -17
- package/es/modules/work/components/WorksProperties/index.js.map +1 -1
- package/es/modules/work/controls/WorkDataIconBar/index.d.ts +9 -14
- package/es/modules/work/controls/WorkDataIconBar/index.js +2 -6
- package/es/modules/work/controls/WorkDataIconBar/index.js.map +1 -1
- package/es/modules/work/work-error/components/WorkErrorProperties/index.d.ts +9 -17
- package/es/modules/work/work-error/components/WorkErrorProperties/index.js +8 -13
- package/es/modules/work/work-error/components/WorkErrorProperties/index.js.map +1 -1
- package/es/modules/work/work-error/components/WorkErrorPropertiesView/index.d.ts +0 -1
- package/es/modules/work/work-error/components/WorkErrorPropertiesView/index.js +6 -9
- package/es/modules/work/work-error/components/WorkErrorPropertiesView/index.js.map +1 -1
- package/es/modules/work/work-error/controls/SeveritySelect/index.d.ts +10 -16
- package/es/modules/work/work-error/controls/SeveritySelect/index.js +2 -5
- package/es/modules/work/work-error/controls/SeveritySelect/index.js.map +1 -1
- package/es/modules/work/work-error/controls/WorkErrorSelect/index.d.ts +3 -10
- package/es/modules/work/work-error/controls/WorkErrorSelect/index.js +2 -5
- package/es/modules/work/work-error/controls/WorkErrorSelect/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/NewWorkScheduleFormDialog.d.ts +1 -6
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/NewWorkScheduleFormDialog.js +1 -4
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/NewWorkScheduleFormDialog.js.map +1 -1
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.d.ts +1 -6
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.js +2 -5
- package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.d.ts +6 -10
- package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.js +3 -6
- package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.d.ts +1 -9
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.js +4 -10
- package/es/modules/work/work-schedule/components/WorkScheduleList/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.d.ts +9 -16
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js +7 -11
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkStatusSelect/index.d.ts +1 -8
- package/es/modules/work/work-type/components/WorkStatusSelect/index.js +0 -3
- package/es/modules/work/work-type/components/WorkStatusSelect/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.d.ts +7 -13
- package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.js +14 -17
- package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeProperties/index.css +1 -1
- package/es/modules/work/work-type/components/WorkTypeProperties/index.d.ts +5 -10
- package/es/modules/work/work-type/components/WorkTypeProperties/index.js +14 -18
- package/es/modules/work/work-type/components/WorkTypeProperties/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.d.ts +0 -1
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.js +17 -20
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeQA/index.d.ts +4 -9
- 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/WorkTypeSelect/index.d.ts +1 -8
- package/es/modules/work/work-type/components/WorkTypeSelect/index.js +1 -4
- package/es/modules/work/work-type/components/WorkTypeSelect/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspacePropertiesView/index.css +2 -16
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js +25 -30
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.css +0 -1
- package/es/{modules/board/components → obsolete}/BoardPropertiesView/index.d.ts +0 -1
- package/es/{modules/board/components → obsolete}/BoardPropertiesView/index.js +0 -1
- package/es/obsolete/BoardPropertiesView/index.js.map +1 -0
- package/es/obsolete/NotificationList2/index.d.ts +1 -6
- package/es/obsolete/NotificationList2/index.js +2 -5
- package/es/obsolete/NotificationList2/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/board/components/BoardPropertiesView/index.css +0 -10
- package/es/modules/board/components/BoardPropertiesView/index.js.map +0 -1
- package/es/modules/meeting/components/MeetingPropertiesView/index.less +0 -13
- package/es/modules/notification/components/NotificationPropertiesView/index.css +0 -5
- package/es/modules/tasks/components/TaskPropertiesView/index.css +0 -21
- package/es/modules/work/components/WorkPropertiesView/index.css +0 -8
- package/es/modules/work/work-error/components/WorkErrorPropertiesView/index.css +0 -38
- package/es/modules/work/work-type/components/WorkTypePropertiesView/index.css +0 -10
- package/es/modules/work/work-type/components/WorkTypePropertiesView/state.d.ts +0 -15
- package/es/modules/work/work-type/components/WorkTypePropertiesView/state.js +0 -68
- package/es/modules/work/work-type/components/WorkTypePropertiesView/state.js.map +0 -1
- package/es/modules/workspace/components/WorkspacePropertiesView/state.d.ts +0 -14
- package/es/modules/workspace/components/WorkspacePropertiesView/state.js +0 -72
- package/es/modules/workspace/components/WorkspacePropertiesView/state.js.map +0 -1
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}[];
|
|
9
|
-
}): React.JSX.Element;
|
|
10
|
-
defaultProps: {
|
|
11
|
-
workTypeProperties: {
|
|
12
|
-
key: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
2
|
+
export type WorkTypePropertiesCardProps = {
|
|
3
|
+
id: string;
|
|
4
|
+
workTypeProperties?: {
|
|
5
|
+
key: string;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
}[];
|
|
15
8
|
};
|
|
9
|
+
declare const WorkTypePropertiesCard: ({ workTypeProperties, ...props }: WorkTypePropertiesCardProps) => React.JSX.Element;
|
|
16
10
|
export default WorkTypePropertiesCard;
|
|
@@ -4,26 +4,23 @@ import React from "react";
|
|
|
4
4
|
import { Skeleton } from "antd";
|
|
5
5
|
import { observe } from "@voplus/morpho-ui";
|
|
6
6
|
import { useWorkType } from "../../../../../data/worktype";
|
|
7
|
-
const WorkTypePropertiesCard = (
|
|
8
|
-
|
|
7
|
+
const WorkTypePropertiesCard = ({ workTypeProperties = [
|
|
8
|
+
{ key: "Work Type" },
|
|
9
|
+
{ key: "Work Space" },
|
|
10
|
+
{ key: "Number Format" },
|
|
11
|
+
{ key: "Status" },
|
|
12
|
+
{ key: "Default Folder" },
|
|
13
|
+
{ key: "Documentation" },
|
|
14
|
+
{ key: "Default Due" },
|
|
15
|
+
{ key: "Requester" },
|
|
16
|
+
{ key: "Accepters" },
|
|
17
|
+
{ key: "Default Owner" },
|
|
18
|
+
{ key: "Auto Accept" },
|
|
19
|
+
], ...props }) => {
|
|
20
|
+
const { id } = props;
|
|
9
21
|
const worktype = useWorkType(id);
|
|
10
22
|
return observe(() => (React.createElement(Skeleton, { active: true, loading: !worktype.loaded },
|
|
11
23
|
React.createElement(PropertiesCard, { className: "work-type-properties-card", title: "Work Type Details", cardList: workTypeProperties, cardItem: (item) => React.createElement(Properties, { id: id, propertiesName: item }) }))));
|
|
12
24
|
};
|
|
13
|
-
WorkTypePropertiesCard.defaultProps = {
|
|
14
|
-
workTypeProperties: [
|
|
15
|
-
{ key: "Work Type" },
|
|
16
|
-
{ key: "Work Space" },
|
|
17
|
-
{ key: "Number Format" },
|
|
18
|
-
{ key: "Status" },
|
|
19
|
-
{ key: "Default Folder" },
|
|
20
|
-
{ key: "Documentation" },
|
|
21
|
-
{ key: "Default Due" },
|
|
22
|
-
{ key: "Requester" },
|
|
23
|
-
{ key: "Accepters" },
|
|
24
|
-
{ key: "Default Owner" },
|
|
25
|
-
{ key: "Auto Accept" },
|
|
26
|
-
],
|
|
27
|
-
};
|
|
28
25
|
export default WorkTypePropertiesCard;
|
|
29
26
|
//# sourceMappingURL=WorkTypePropertiesCard.js.map
|
package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkTypePropertiesCard.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAsC,MAAM,cAAc,CAAC;AAElE,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"WorkTypePropertiesCard.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAsC,MAAM,cAAc,CAAC;AAElE,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAO3D,MAAM,sBAAsB,GAAG,CAAC,EAC/B,kBAAkB,GAAG;IACpB,EAAE,GAAG,EAAE,WAAW,EAAE;IACpB,EAAE,GAAG,EAAE,YAAY,EAAE;IACrB,EAAE,GAAG,EAAE,eAAe,EAAE;IACxB,EAAE,GAAG,EAAE,QAAQ,EAAE;IACjB,EAAE,GAAG,EAAE,gBAAgB,EAAE;IACzB,EAAE,GAAG,EAAE,eAAe,EAAE;IACxB,EAAE,GAAG,EAAE,aAAa,EAAE;IACtB,EAAE,GAAG,EAAE,WAAW,EAAE;IACpB,EAAE,GAAG,EAAE,WAAW,EAAE;IACpB,EAAE,GAAG,EAAE,eAAe,EAAE;IACxB,EAAE,GAAG,EAAE,aAAa,EAAE;CACtB,EACD,GAAG,KAAK,EACqB,EAAE,EAAE;IACjC,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEjC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,MAAM;QACzC,oBAAC,cAAc,IACd,SAAS,EAAC,2BAA2B,EACrC,KAAK,EAAC,mBAAmB,EACzB,QAAQ,EAAE,kBAAkB,EAC5B,QAAQ,EAAE,CAAC,IAA4B,EAAE,EAAE,CAAC,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,IAAI,GAAI,GACvF,CACQ,CACX,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./index.css";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
workTypeProperties?: string[];
|
|
8
|
-
}): React.JSX.Element;
|
|
9
|
-
defaultProps: {
|
|
10
|
-
header: boolean;
|
|
11
|
-
workTypeProperties: string[];
|
|
12
|
-
};
|
|
3
|
+
export type WorkTypePropertiesProps = {
|
|
4
|
+
id: string;
|
|
5
|
+
header?: boolean;
|
|
6
|
+
workTypeProperties?: string[];
|
|
13
7
|
};
|
|
8
|
+
declare const WorkTypeProperties: (props: WorkTypePropertiesProps) => React.JSX.Element;
|
|
14
9
|
export default WorkTypeProperties;
|
|
@@ -9,23 +9,7 @@ import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
|
9
9
|
import classnames from "classnames";
|
|
10
10
|
import "./index.css";
|
|
11
11
|
const WorkTypeProperties = (props) => {
|
|
12
|
-
const { id, workTypeProperties
|
|
13
|
-
/** 加class name 为了方便做integration tests */
|
|
14
|
-
const classId = "workType-properties";
|
|
15
|
-
const worktype = useWorkType(props.id);
|
|
16
|
-
const store = useWorkTypeStore();
|
|
17
|
-
const [state] = useState(new State(store));
|
|
18
|
-
state.update(worktype);
|
|
19
|
-
return observe(() => (React.createElement("div", { className: classnames("work-type-properties", "properties-list") },
|
|
20
|
-
props.header && (React.createElement("div", { className: "work-type-properties-type-header" },
|
|
21
|
-
React.createElement(InlineEdit, { defaultValue: worktype === null || worktype === void 0 ? void 0 : worktype.name, content: (v) => React.createElement("div", { className: "work-type-properties-type-name" }, worktype === null || worktype === void 0 ? void 0 : worktype.name), onSave: (value) => state.save(value, worktype.name, { Name: value }) }))),
|
|
22
|
-
React.createElement(Scrollbars, { autoHide: true },
|
|
23
|
-
React.createElement(PropertiesSection, { title: "WORK TYPE PROPERTIES", properties: () => workTypeProperties === null || workTypeProperties === void 0 ? void 0 : workTypeProperties.map((i) => (React.createElement(Prop, { key: i, label: i, className: `${classId}-${i}` },
|
|
24
|
-
React.createElement(Properties, { id: id, propertiesName: i })))) })))));
|
|
25
|
-
};
|
|
26
|
-
WorkTypeProperties.defaultProps = {
|
|
27
|
-
header: true,
|
|
28
|
-
workTypeProperties: [
|
|
12
|
+
const { id, header = true, workTypeProperties = [
|
|
29
13
|
"Work Space",
|
|
30
14
|
"Number Format",
|
|
31
15
|
"Status",
|
|
@@ -36,7 +20,19 @@ WorkTypeProperties.defaultProps = {
|
|
|
36
20
|
"Accepters",
|
|
37
21
|
"Default Owner",
|
|
38
22
|
"Auto Accept",
|
|
39
|
-
],
|
|
23
|
+
], } = props;
|
|
24
|
+
/** 加class name 为了方便做integration tests */
|
|
25
|
+
const classId = "workType-properties";
|
|
26
|
+
const worktype = useWorkType(id);
|
|
27
|
+
const store = useWorkTypeStore();
|
|
28
|
+
const [state] = useState(new State(store));
|
|
29
|
+
state.update(worktype);
|
|
30
|
+
return observe(() => (React.createElement("div", { className: classnames("work-type-properties", "properties-list") },
|
|
31
|
+
header && (React.createElement("div", { className: "work-type-properties-type-header" },
|
|
32
|
+
React.createElement(InlineEdit, { defaultValue: worktype === null || worktype === void 0 ? void 0 : worktype.name, content: (v) => React.createElement("div", { className: "work-type-properties-type-name" }, worktype === null || worktype === void 0 ? void 0 : worktype.name), onSave: (value) => state.save(value, worktype.name, { Name: value }) }))),
|
|
33
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
34
|
+
React.createElement(PropertiesSection, { title: "WORK TYPE PROPERTIES", properties: () => workTypeProperties === null || workTypeProperties === void 0 ? void 0 : workTypeProperties.map((i) => (React.createElement(Prop, { key: i, label: i, className: `${classId}-${i}` },
|
|
35
|
+
React.createElement(Properties, { id: id, propertiesName: i })))) })))));
|
|
40
36
|
};
|
|
41
37
|
export default WorkTypeProperties;
|
|
42
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,UAAsC,MAAM,cAAc,CAAC;AAClE,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,UAAsC,MAAM,cAAc,CAAC;AAClE,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,aAAa,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AlB,kBAAkB,uBAAlB,kBAAkB,CAAE,GAAG,CAAC,CAAC,CAAyB,EAAE,EAAE,CAAC,CACtD,oBAAC,IAAI,IAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,OAAO,IAAI,CAAC,EAAE;oBACnD,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,CAAC,GAAI,CACnC,CACP,CAAC,GAEF,CACU,CACR,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,40 +1,37 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
4
|
+
import { Skeleton } from "antd";
|
|
5
5
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
6
|
-
import { useDocumentStore, useHandleError } from "@voplus/morpho-document-core";
|
|
7
6
|
import { useWorkType, useWorkTypeStore } from "../../../../../data/worktype";
|
|
8
|
-
import WorktypeCompleteWorksChart from "../../controls/WorktypeCompleteWorksChart";
|
|
9
|
-
import PropertiesHeader from "@voplus/morpho-org/es/components/PropertiesHeader";
|
|
10
7
|
import { FontAwesomeIcon as FAIcon, faBriefcaseSolid } from "@voplus/morpho-ui/es/faIcons";
|
|
8
|
+
import WorkTypeCompleteWorksChart from "../../controls/WorktypeCompleteWorksChart";
|
|
9
|
+
import PropertiesHeader from "@voplus/morpho-org/es/components/PropertiesHeader";
|
|
11
10
|
import WorkTypePropertiesTabs from "../WorkTypePropertiesTabs";
|
|
12
11
|
import WorkTypeMenu from "../../controls/WorkTypeMenu";
|
|
13
|
-
import "./index.css";
|
|
14
12
|
const WorkTypePropertiesView = (props) => {
|
|
15
13
|
const { id } = props;
|
|
16
14
|
const handleError = useHandleError();
|
|
17
15
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
18
|
-
const
|
|
16
|
+
const workType = useWorkType(id, {
|
|
19
17
|
reload: (i) => !i.tags,
|
|
20
18
|
includes: "tags",
|
|
21
19
|
onError: handleError,
|
|
22
20
|
});
|
|
23
21
|
const store = useWorkTypeStore();
|
|
24
|
-
const docStore = useDocumentStore();
|
|
25
|
-
const [state] = useState(new State(id, store));
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
runInAction(async () => {
|
|
28
|
-
const doc = await docStore.loadAccess(id);
|
|
29
|
-
state.update(doc);
|
|
30
|
-
});
|
|
31
|
-
}, [id]);
|
|
32
22
|
return observe(() => {
|
|
33
23
|
var _a;
|
|
34
|
-
return (React.createElement(ViewContext.Provider, { value: view },
|
|
35
|
-
React.createElement(
|
|
36
|
-
|
|
37
|
-
|
|
24
|
+
return (React.createElement(ViewContext.Provider, { value: view },
|
|
25
|
+
React.createElement(Skeleton, { loading: !workType.loaded, active: true },
|
|
26
|
+
React.createElement("div", { className: "module-detail-view worktype-properties-view" },
|
|
27
|
+
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) => {
|
|
28
|
+
var _a;
|
|
29
|
+
if (((_a = workType.name) === null || _a === void 0 ? void 0 : _a.trim()) === name)
|
|
30
|
+
return;
|
|
31
|
+
store.edit(id, { data: { Name: name }, error: "message" });
|
|
32
|
+
} }),
|
|
33
|
+
React.createElement(WorkTypeCompleteWorksChart, { id: id }),
|
|
34
|
+
React.createElement(WorkTypePropertiesTabs, { id: id })))));
|
|
38
35
|
});
|
|
39
36
|
};
|
|
40
37
|
export default WorkTypePropertiesView;
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC3F,OAAO,0BAA0B,MAAM,2CAA2C,CAAC;AACnF,OAAO,gBAAgB,MAAM,mDAAmD,CAAC;AACjF,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,YAAY,MAAM,6BAA6B,CAAC;AAEvD,MAAM,sBAAsB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,EAAE;QAChC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;QACtB,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,WAAW;KACp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
2
2
|
import "./index.css";
|
|
3
|
-
declare const WorkTypeQA: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}): React.JSX.Element;
|
|
8
|
-
defaultProps: {
|
|
9
|
-
headerVisible: boolean;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
3
|
+
declare const WorkTypeQA: ({ headerVisible, ...props }: {
|
|
4
|
+
id: string;
|
|
5
|
+
headerVisible?: boolean;
|
|
6
|
+
}) => React.JSX.Element;
|
|
12
7
|
export default WorkTypeQA;
|
|
@@ -10,8 +10,8 @@ import { runInAction } from "mobx";
|
|
|
10
10
|
import ErrorTypeList from "../ErrorTypeList2";
|
|
11
11
|
import classnames from "classnames";
|
|
12
12
|
import "./index.css";
|
|
13
|
-
const WorkTypeQA = (props) => {
|
|
14
|
-
const { id
|
|
13
|
+
const WorkTypeQA = ({ headerVisible = false, ...props }) => {
|
|
14
|
+
const { id } = props;
|
|
15
15
|
const store = useWorkTypeStore();
|
|
16
16
|
const [state] = useState(new State(store));
|
|
17
17
|
const [rate, setRate] = useState();
|
|
@@ -45,6 +45,5 @@ const WorkTypeQA = (props) => {
|
|
|
45
45
|
setRate(null);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
WorkTypeQA.defaultProps = { headerVisible: false };
|
|
49
48
|
export default WorkTypeQA;
|
|
50
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,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,aAAa,CAAC;AAErB,MAAM,UAAU,GAAG,CAAC,
|
|
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,aAAa,CAAC;AAErB,MAAM,UAAU,GAAG,CAAC,EACnB,aAAa,GAAG,KAAK,EACrB,GAAG,KAAK,EAIR,EAAE,EAAE;IACJ,MAAM,EAAE,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CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,qBAAsB,CACtD,CACI,CACN,CACU,CACZ,CAAC,CAAC,CAAC,IAAI,GAER;oBACF,oBAAC,eAAe,IACf,KAAK,EACJ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,aAAa;4BAC7B,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI,CACd,GAEZ,CACW,CACR,CACU,CAClB,CAAA;KAAA,CAAC,CAAC;IAEH,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,eAAe,UAAU,CAAC"}
|
|
@@ -4,12 +4,5 @@ import { IWorkType } from "../../../../../data/worktype";
|
|
|
4
4
|
export interface WorkTypeSelectProps extends Omit<SelectProps, "onChange"> {
|
|
5
5
|
onChange?: (id: string, workType: IWorkType) => void;
|
|
6
6
|
}
|
|
7
|
-
declare const WorkTypeSelect:
|
|
8
|
-
(props: WorkTypeSelectProps): React.JSX.Element;
|
|
9
|
-
defaultProps: {
|
|
10
|
-
style: {
|
|
11
|
-
width: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
7
|
+
declare const WorkTypeSelect: (props: WorkTypeSelectProps) => React.JSX.Element;
|
|
15
8
|
export default WorkTypeSelect;
|
|
@@ -31,7 +31,7 @@ const WorkTypeSelect = (props) => {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}, list.filters.options);
|
|
34
|
-
return observe(() => (React.createElement(Select, { ...props, showSearch: { filterOption: false, onSearch: onSearch }, loading: list.loading, optionLabelProp: "label", placeholder: "Select Work Type", onChange: handleChange, value: state.value, notFoundContent: React.createElement(NotFoundContent, { loading: list.loading }), options: workTypeData.map((item) => {
|
|
34
|
+
return observe(() => (React.createElement(Select, { style: { width: "100%" }, ...props, showSearch: { filterOption: false, onSearch: onSearch }, loading: list.loading, optionLabelProp: "label", placeholder: "Select Work Type", onChange: handleChange, value: state.value, notFoundContent: React.createElement(NotFoundContent, { loading: list.loading }), options: workTypeData.map((item) => {
|
|
35
35
|
var _a;
|
|
36
36
|
return {
|
|
37
37
|
value: item.id,
|
|
@@ -61,8 +61,5 @@ const WorkTypeSelect = (props) => {
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
WorkTypeSelect.defaultProps = {
|
|
65
|
-
style: { width: "100%" },
|
|
66
|
-
};
|
|
67
64
|
export default WorkTypeSelect;
|
|
68
65
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/components/WorkTypeSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,eAAe,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAa,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAQhF,MAAM,cAAc,GAAG,CAAC,KAA0B,EAAE,EAAE;IACrD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAE3B,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,I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flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
}
|
|
9
|
-
.workspace-name {
|
|
10
|
-
font-size: 24px;
|
|
11
|
-
color: #000;
|
|
12
|
-
font-weight: 500;
|
|
13
|
-
word-break: break-all;
|
|
14
|
-
}
|
|
15
|
-
.avatar-list-view {
|
|
16
|
-
margin-top: 10px;
|
|
17
|
-
}
|
|
2
|
+
& > div {
|
|
3
|
+
background: #fff;
|
|
18
4
|
}
|
|
19
5
|
}
|
|
@@ -1,53 +1,48 @@
|
|
|
1
|
-
import React, { useMemo
|
|
2
|
-
import {
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { LoadingOutlined } from "@ant-design/icons";
|
|
4
4
|
import { Skeleton, Spin } from "antd";
|
|
5
|
-
import { State } from "./state";
|
|
6
5
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
7
6
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { FontAwesomeIcon as FAIcon, faFileRegular } from "@voplus/morpho-ui/es/faIcons";
|
|
8
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
10
9
|
import { useWorkspace, useWorkspaceStore } from "../../../../data/workspace";
|
|
10
|
+
import PropertiesHeader from "@voplus/morpho-org/es/components/PropertiesHeader";
|
|
11
11
|
import WorkspaceCompletedWorksChart from "../../controls/WorkspaceCompletedWorksChart";
|
|
12
|
-
import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
|
|
13
12
|
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
|
14
13
|
import WorkspaceMenu from "../../controls/WorkspaceMenu";
|
|
15
14
|
import WorkspaceTabs from "../WorkspaceTabs";
|
|
16
15
|
import "./index.css";
|
|
17
16
|
const WorkspacePropertiesView = (props) => {
|
|
18
17
|
const { id } = props;
|
|
18
|
+
const [refresh, setRefresh] = React.useState(false);
|
|
19
19
|
const { user } = useApplicationContext();
|
|
20
20
|
const handleError = useHandleError();
|
|
21
21
|
const store = useWorkspaceStore();
|
|
22
|
-
const docStore = useDocumentStore();
|
|
23
22
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
24
|
-
const
|
|
25
|
-
const workspace = useWorkspace(id, { reload: false, onError: handleError });
|
|
26
|
-
// useEffect(() => {
|
|
27
|
-
// docStore.loadAccess(props.id).then((res) => state.initialMemberList(res));
|
|
28
|
-
// }, [props.id]);
|
|
23
|
+
const workspace = useWorkspace(id, { onError: handleError });
|
|
29
24
|
return observe(() => {
|
|
30
|
-
var _a;
|
|
25
|
+
var _a, _b;
|
|
31
26
|
return (React.createElement(ViewContext.Provider, { value: view },
|
|
32
|
-
React.createElement(
|
|
33
|
-
React.createElement(
|
|
34
|
-
React.createElement(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
27
|
+
React.createElement(Skeleton, { loading: !workspace.loaded, active: true },
|
|
28
|
+
React.createElement("div", { className: "module-detail-view workspace-properties-view" },
|
|
29
|
+
React.createElement(PropertiesHeader, { id: id, icon: React.createElement(FAIcon, { icon: faFileRegular }), nodeName: (_a = workspace.name) !== null && _a !== void 0 ? _a : "", url: `/workspaces/${id}`, nodeMenu: React.createElement(WorkspaceMenu, { id: id, closeAside: true }), onEditName: (name) => {
|
|
30
|
+
var _a;
|
|
31
|
+
if (((_a = workspace.name) === null || _a === void 0 ? void 0 : _a.trim()) === name)
|
|
32
|
+
return;
|
|
33
|
+
store.edit(id, { data: { Name: name }, error: "message" });
|
|
34
|
+
}, description: React.createElement(React.Fragment, null,
|
|
35
|
+
!refresh ? (React.createElement(AvatarList, { className: "mb-3", multiple: true, organizationId: user.info.organizationId, list: (_b = workspace === null || workspace === void 0 ? void 0 : workspace.settings) === null || _b === void 0 ? void 0 : _b.members, onChange: async (ids) => {
|
|
36
|
+
setRefresh(true);
|
|
37
|
+
await store.edit(id, {
|
|
38
|
+
data: { Settings: { Members: ids } },
|
|
39
|
+
error: "message",
|
|
40
|
+
});
|
|
41
|
+
setRefresh(false);
|
|
42
|
+
} })) : (React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { spin: true }) })),
|
|
43
|
+
React.createElement(WorkspaceCompletedWorksChart, { id: id })) }),
|
|
44
44
|
React.createElement(WorkspaceTabs, { id: id })))));
|
|
45
45
|
});
|
|
46
|
-
async function onChange(ids) {
|
|
47
|
-
state.refresh = true;
|
|
48
|
-
await store.edit(id, { data: { Settings: { Members: ids } }, error: "message" });
|
|
49
|
-
state.refresh = false;
|
|
50
|
-
}
|
|
51
46
|
};
|
|
52
47
|
export default WorkspacePropertiesView;
|
|
53
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspacePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspacePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACxF,OAA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J,CAAC,CAAC;AACF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 此组件未使用,后续可删除
|
|
3
3
|
* */
|
|
4
|
-
import "./index.css";
|
|
5
4
|
import React, { useMemo, useState } from "react";
|
|
6
5
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
7
6
|
import PropertiesPanelHeader from "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/obsolete/BoardPropertiesView/index.tsx"],"names":[],"mappings":"AAAA;;KAEK;AAEL,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,qBAAqB,MAAM,6DAA6D,CAAC;AAChG,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;AACpG,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,KAAK,MAAM,6CAA6C,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,mBAAmB,GAAG,CAAC,KAAwC,EAAE,EAAE;IACxE,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IAErD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,IAC/B,MAAM,IAAI,CACV,6BAAK,SAAS,EAAC,oBAAoB;QAClC,oBAAC,qBAAqB,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,GAAI;QACrD,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE;gBACT;oBACC,GAAG,EAAE,SAAS;oBACd,KAAK,EAAE,SAAS;oBAChB,QAAQ,EAAE,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI;iBAC7C;gBACD;oBACC,GAAG,EAAE,YAAY;oBACjB,KAAK,EAAE,YAAY;oBACnB,QAAQ,EAAE,0CAAG,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,IAAI,CAAI;iBAC5E;gBACD;oBACC,GAAG,EAAE,OAAO;oBACZ,KAAK,EAAE,OAAO;oBACd,QAAQ,EAAE,oBAAC,KAAK,IAAC,EAAE,EAAE,EAAE,GAAI;iBAC3B;aACD,EACD,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GACnC,CACG,CACN,CACqB,CACvB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
|
@@ -9,10 +9,5 @@ export type NotificationListProps = {
|
|
|
9
9
|
name: string;
|
|
10
10
|
}[];
|
|
11
11
|
};
|
|
12
|
-
declare const NotificationList: {
|
|
13
|
-
(props: NotificationListProps): React.JSX.Element;
|
|
14
|
-
defaultProps: {
|
|
15
|
-
addAble: boolean;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
12
|
+
declare const NotificationList: ({ addAble, ...props }: NotificationListProps) => React.JSX.Element;
|
|
18
13
|
export default NotificationList;
|
|
@@ -10,8 +10,8 @@ import { observe } from "@voplus/morpho-ui";
|
|
|
10
10
|
import { useAutoUpdateListData } from "../../data/notification";
|
|
11
11
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
12
12
|
import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
13
|
-
const NotificationList = (props) => {
|
|
14
|
-
const { parentId
|
|
13
|
+
const NotificationList = ({ addAble = true, ...props }) => {
|
|
14
|
+
const { parentId } = props;
|
|
15
15
|
const [addNotification, setAddNotification] = useState(false);
|
|
16
16
|
const view = useViewContext();
|
|
17
17
|
const list = useCreateListDataState({
|
|
@@ -42,8 +42,5 @@ const NotificationList = (props) => {
|
|
|
42
42
|
addNotification && (React.createElement(NewNotificationFormDialog, { targetId: parentId, recipients: props.recipients, onCancel: () => setAddNotification(false), onSave: () => setAddNotification(false) }))));
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
-
NotificationList.defaultProps = {
|
|
46
|
-
addAble: true,
|
|
47
|
-
};
|
|
48
45
|
export default NotificationList;
|
|
49
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/obsolete/NotificationList2/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAoB,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,gBAAgB,MAAM,4EAA4E,CAAC;AAC1G,OAAO,yBAAyB,MAAM,2DAA2D,C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,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAK,gBAAgB;oBAC/B,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAK,WAAW,IAAI,CAC7B,oBAAC,gBAAgB,IAAC,QAAQ,QAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,GAAI,CAC/E,EAEF,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAA6C,EAAE,EAAE,CAAC,CAC3E,oBAAC,gBAAgB,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CAC/C,GACA;YACD,eAAe,IAAI,CACnB,oBAAC,yBAAyB,IACzB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,QAAQ,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,EACzC,MAAM,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,GACtC,CACF,CACyB,CAC3B,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardPropertiesView/index.tsx"],"names":[],"mappings":"AAAA;;KAEK;AAEL,OAAO,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,qBAAqB,MAAM,6DAA6D,CAAC;AAChG,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;AACpG,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,KA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C,YAAY,CAAC,GAAG,CAAC,GACnC,CACG,CACN,CACqB,CACvB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
@import "../../../../style/common.css";
|
|
2
|
-
.meeting-tool-bar {
|
|
3
|
-
text-align: right;
|
|
4
|
-
}
|
|
5
|
-
.meeting-detail-view {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
height: 100%;
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
.meeting-detail-description {
|
|
11
|
-
padding: 10px 20px;
|
|
12
|
-
}
|
|
13
|
-
}
|