@voplus/morpho-workspace 6.0.87 → 6.0.89
Sign up to get free protection for your applications and to get access to all the features.
- package/es/data/notification/types.d.ts +1 -1
- package/es/modules/notification/components/NotificationProperties/index.d.ts +1 -1
- package/es/modules/notification/components/NotificationProperties/index.js +9 -18
- package/es/modules/notification/components/NotificationProperties/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorProperties/index.js +2 -3
- package/es/modules/work/components/WorkErrorProperties/index.js.map +1 -1
- package/es/modules/work/components/WorksProperties/index.js +6 -2
- package/es/modules/work/components/WorksProperties/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js +4 -3
- package/es/modules/work/work-schedule/components/WorkScheduleProperties/index.js.map +1 -1
- package/package.json +1 -1
@@ -22,7 +22,7 @@ export type LoadNewNotificationOptions = {
|
|
22
22
|
} & LoadOptions<INewNotification>;
|
23
23
|
export type NotificationEditDataOptions = {
|
24
24
|
status?: NotificationStatus;
|
25
|
-
|
25
|
+
CreateDate?: dayjs.Dayjs | string;
|
26
26
|
Subject?: string;
|
27
27
|
Channels?: ("Email" | "Instant Message")[];
|
28
28
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from "react";
|
2
|
-
export type NotificationPropertiesName = "Subject" | "Channels" | "Date" | "Notification Status";
|
2
|
+
export type NotificationPropertiesName = "Subject" | "Channels" | "Create Date" | "Notification Status";
|
3
3
|
declare const NotificationProperties: {
|
4
4
|
(props: {
|
5
5
|
id: string;
|
@@ -1,19 +1,16 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { Radio } from "antd";
|
1
3
|
import { faEllipsisVertical } from "@fortawesome/pro-light-svg-icons";
|
2
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
3
|
-
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
4
5
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
5
|
-
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
6
|
-
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
7
|
-
import { Radio } from "antd";
|
8
|
-
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
9
|
-
import { utcdayjs } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
10
|
-
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
11
|
-
import React from "react";
|
12
6
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
13
7
|
import { useNotifications, useNotificationStore } from "../../../../data/notification";
|
8
|
+
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
9
|
+
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
14
10
|
import NotificationMenu from "../../controls/NotificationMenu";
|
15
11
|
import NotificationStatusLabel from "../../controls/NotificationStatusLabel";
|
16
|
-
import
|
12
|
+
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
13
|
+
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
17
14
|
const NotificationProperties = (props) => {
|
18
15
|
/** 加class name 为了方便做integration tests */
|
19
16
|
const classId = "notification-properties";
|
@@ -39,14 +36,8 @@ const NotificationProperties = (props) => {
|
|
39
36
|
}, value: notification.channels },
|
40
37
|
React.createElement(Radio, { value: "Email" }, "Email"),
|
41
38
|
React.createElement(Radio, { value: "Instant Message" }, "Instant Message"))) }));
|
42
|
-
case "Date":
|
43
|
-
return
|
44
|
-
if (notification.date && dayjs(date).isSame(notification.date, "day"))
|
45
|
-
return;
|
46
|
-
store.newEdit(id, {
|
47
|
-
data: { Date: date !== null && date !== void 0 ? date : "" },
|
48
|
-
});
|
49
|
-
} }));
|
39
|
+
case "Create Date":
|
40
|
+
return notification.createDate ? (React.createElement(UTCShortDate, { className: "properties-value", value: notification.createDate })) : (React.createElement("span", { className: "add-info-style" }, "no date"));
|
50
41
|
case "Notification Status":
|
51
42
|
return notification.draft ? (React.createElement(NotificationStatusLabel, { status: notification.draft ? "Draft" : "" })) : null;
|
52
43
|
}
|
@@ -58,7 +49,7 @@ NotificationProperties.defaultProps = {
|
|
58
49
|
{ name: "Notification Status" },
|
59
50
|
{ name: "Subject" },
|
60
51
|
// { name: "Channels" },
|
61
|
-
{ name: "Date" },
|
52
|
+
{ name: "Create Date" },
|
62
53
|
],
|
63
54
|
};
|
64
55
|
export default NotificationProperties;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,uBAAuB,MAAM,wCAAwC,CAAC;AAC7E,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,IAAI,MAAM,oCAAoC,CAAC;AAQtD,MAAM,sBAAsB,GAAG,CAAC,KAK/B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,yBAAyB,CAAC;IAE1C,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,iBAAiB,EAAE,sB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CAAC,CAAC,CAChC,oBAAC,YAAY,IAAC,SAAS,EAAC,kBAAkB,EAAC,KAAK,EAAE,YAAY,CAAC,UAAU,GAAI,CAC7E,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,cAAe,CAC/C,CAAC;YACH,KAAK,qBAAqB;gBACzB,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAC3B,oBAAC,uBAAuB,IAAC,MAAM,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAI,CACtE,CAAC,CAAC,CAAC,IAAI,CAAC;QACX,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,sBAAsB,CAAC,YAAY,GAAG;IACrC,iBAAiB,EAAE,yBAAyB;IAC5C,sBAAsB,EAAE;QACvB,EAAE,IAAI,EAAE,qBAAqB,EAAE;QAC/B,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,wBAAwB;QACxB,EAAE,IAAI,EAAE,aAAa,EAAE;KACvB;CACD,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
@@ -9,12 +9,11 @@ import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
9
9
|
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
10
10
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
11
11
|
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
12
|
-
import { utcdayjs } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
12
|
+
import { utcdayjs, isSame } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
13
13
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
14
14
|
import WorkErrorMenu from "../../controls/WorkErrorMenu";
|
15
15
|
import SeveritySelect from "../../controls/SeveritySelect";
|
16
16
|
import WorkErrorSelect from "../../controls/WorkErrorSelect";
|
17
|
-
import dayjs from "dayjs";
|
18
17
|
const WorkErrorProperties = (props) => {
|
19
18
|
/** 加class name 为了方便做integration tests */
|
20
19
|
const classId = "workError-properties";
|
@@ -51,7 +50,7 @@ const WorkErrorProperties = (props) => {
|
|
51
50
|
case "Incident Date":
|
52
51
|
return (React.createElement(InlineEdit, { defaultValue: workerror.incidentDate ? utcdayjs(workerror.incidentDate) : undefined, content: (v) => workerror.incidentDate ? (React.createElement(UTCShortDate, { className: "properties-value", value: workerror.incidentDate })) : (React.createElement("span", { className: "add-info-style" }, "Add Date")), editor: DateInputEditor, onSave: (v) => {
|
53
52
|
// date未变更不保存
|
54
|
-
if (
|
53
|
+
if (workerror.incidentDate && isSame(v, workerror.incidentDate))
|
55
54
|
return;
|
56
55
|
save({ IncidentDate: v });
|
57
56
|
} }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAA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I,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC;4BAAE,OAAO;wBACxE,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC;oBAC3B,CAAC,GACA,CACF,CAAC;YACH,KAAK,SAAS;gBACb,OAAO,CACN,oBAAC,UAAU,IACV,IAAI,EAAE,SAAS,CAAC,OAAO,IAAI,EAAE,EAC7B,QAAQ,QACR,UAAU,EAAC,IAAI,EACf,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,QAAQ,EAAE,CAAC,GAAa,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,GACpD,CACF,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG;IAClC,cAAc,EAAE,uBAAuB;IACvC,aAAa,EAAE,qBAAqB;IACpC,mBAAmB,EAAE;QACpB,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,eAAe,EAAE;QACzB,EAAE,IAAI,EAAE,SAAS,EAAE;KACnB;CACD,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
@@ -16,7 +16,7 @@ import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialo
|
|
16
16
|
import AvatarItem from "@voplus/morpho-org/es/components/AvatarList/AvatarItem/LoadedAvatarItem";
|
17
17
|
import ChangeAvatarDialog from "@voplus/morpho-org/es/controls/ChangeAvatarDialog";
|
18
18
|
import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
|
19
|
-
import { utcdayjs } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
19
|
+
import { utcdayjs, isSame } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
20
20
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
21
21
|
import DocumentReference from "@voplus/morpho-document/es/controls/DocumentReference/LoadedDocumentReference";
|
22
22
|
import WorkStatusLabel from "../../controls/WorkStatusLabel";
|
@@ -68,7 +68,11 @@ const WorksProperties = (props) => {
|
|
68
68
|
case "Document":
|
69
69
|
return ((_a = work.document) === null || _a === void 0 ? void 0 : _a.id) ? React.createElement(DocumentReference, { file: work.document }) : noData;
|
70
70
|
case "Due":
|
71
|
-
return (React.createElement(InlineEdit, { defaultValue: work.due ? utcdayjs(work.due) : undefined, content: (v) => work.due ? (React.createElement(UTCShortDate, { className: "properties-value", value: work.due, format: "DD MMM YYYY" })) : (React.createElement("span", { className: "add-info-style" }, "noData")), editor: DateInputEditor, onSave: (date) =>
|
71
|
+
return (React.createElement(InlineEdit, { defaultValue: work.due ? utcdayjs(work.due) : undefined, content: (v) => work.due ? (React.createElement(UTCShortDate, { className: "properties-value", value: work.due, format: "DD MMM YYYY" })) : (React.createElement("span", { className: "add-info-style" }, "noData")), editor: DateInputEditor, onSave: (date) => {
|
72
|
+
if (work.due && isSame(date, work.due))
|
73
|
+
return;
|
74
|
+
state.dueDateEdit(date !== null && date !== void 0 ? date : undefined);
|
75
|
+
} }));
|
72
76
|
case "Owner":
|
73
77
|
return (React.createElement(InlineEdit, { defaultValue: "", showEditIcon: true, editable: false, onEditIconClick: () => runInAction(() => (state.ownerEditable = true)), content: (v) => {
|
74
78
|
var _a;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAu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EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,SAAS,EAAE;QACnB,EAAE,IAAI,EAAE,UAAU,EAAE;QACpB,EAAE,IAAI,EAAE,KAAK,EAAE;QACf,EAAE,IAAI,EAAE,OAAO,EAAE;KACjB;CACD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -11,13 +11,12 @@ import MentionList from "@voplus/morpho-org/es/controls/MentionList";
|
|
11
11
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
12
12
|
import FolderEdit from "@voplus/morpho-document/es/controls/FolderEdit";
|
13
13
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
14
|
-
import { utcdayjs } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
14
|
+
import { utcdayjs, isSame } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
15
15
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
16
16
|
import VerificationInformation from "@voplus/morpho-org/es/modules/verification/VerificationInformation";
|
17
17
|
import WorkScheduleMenu from "../../controls/WorkScheduleMenu";
|
18
18
|
import WorkTypeSelect from "../../../work-type/components/WorkTypeSelect";
|
19
19
|
import classnames from "classnames";
|
20
|
-
import dayjs from "dayjs";
|
21
20
|
const WorkScheduleProperties = (props) => {
|
22
21
|
/** 加class name 为了方便做integration tests */
|
23
22
|
const classId = "workSchedule-properties";
|
@@ -44,7 +43,9 @@ const WorkScheduleProperties = (props) => {
|
|
44
43
|
switch (item.name) {
|
45
44
|
case "Schedule":
|
46
45
|
return (React.createElement(InlineEdit, { defaultValue: workSchedule.schedule ? utcdayjs(workSchedule.schedule) : undefined, content: (v) => workSchedule.schedule ? (React.createElement(UTCShortDate, { className: "properties-value", value: workSchedule.schedule })) : (React.createElement("span", { className: "add-info-style" }, "Add Schedule")), editor: DateInputEditor, onSave: (date) => {
|
47
|
-
if (workSchedule.schedule &&
|
46
|
+
if (!workSchedule.schedule && !date)
|
47
|
+
return;
|
48
|
+
if (workSchedule.schedule && isSame(date, workSchedule.schedule))
|
48
49
|
return;
|
49
50
|
store.edit(props.id, {
|
50
51
|
data: { Schedule: date !== null && date !== void 0 ? date : "" },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,aAAa,MAAM,mDAAmD,CAAC;AAC9E,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,gDAAgD,CAAC;AACxE,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD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