@voplus/morpho-workspace 6.0.86 → 6.0.88
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/data/work/interfaces.d.ts +2 -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/WorksProperties/index.js +4 -3
- package/es/modules/work/components/WorksProperties/index.js.map +1 -1
- package/es/modules/work/components/WorksProperties/state.d.ts +2 -1
- package/es/modules/work/components/WorksProperties/state.js +2 -2
- package/es/modules/work/components/WorksProperties/state.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,6 @@
|
|
1
1
|
import { EditDocumentDataOptions, IDocument } from "@voplus/morpho-document-core";
|
2
2
|
import { StoreActionOptions } from "@voplus/morpho-data";
|
3
|
+
import dayjs from "dayjs";
|
3
4
|
import { ICheckListItem } from "../worktype";
|
4
5
|
export type WorkStatus = "Draft" | "New" | "Rejected" | "Active" | "Closed" | "Done";
|
5
6
|
export interface IWork extends IDocument {
|
@@ -57,7 +58,7 @@ export interface IWorkEditOptions extends EditDocumentDataOptions {
|
|
57
58
|
Checked: boolean;
|
58
59
|
Item: string;
|
59
60
|
}[];
|
60
|
-
DueDate?: string;
|
61
|
+
DueDate?: dayjs.Dayjs | string;
|
61
62
|
OwnerIds?: string[];
|
62
63
|
ContactId?: string;
|
63
64
|
}
|
@@ -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,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, observe, PropertiesSection
|
3
|
+
import { InlineEdit, observe, PropertiesSection } from "@voplus/morpho-ui";
|
4
4
|
import { useWork, useWorkStore } from "../../../../data/work";
|
5
5
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
6
6
|
import { State } from "./state";
|
@@ -16,11 +16,12 @@ 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";
|
20
|
+
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
19
21
|
import DocumentReference from "@voplus/morpho-document/es/controls/DocumentReference/LoadedDocumentReference";
|
20
22
|
import WorkStatusLabel from "../../controls/WorkStatusLabel";
|
21
23
|
import classnames from "classnames";
|
22
24
|
import styles from "./index.less";
|
23
|
-
import dayjs from "dayjs";
|
24
25
|
const WorksProperties = (props) => {
|
25
26
|
/** 加class name 为了方便做integration tests */
|
26
27
|
const classId = "work-properties";
|
@@ -67,7 +68,7 @@ const WorksProperties = (props) => {
|
|
67
68
|
case "Document":
|
68
69
|
return ((_a = work.document) === null || _a === void 0 ? void 0 : _a.id) ? React.createElement(DocumentReference, { file: work.document }) : noData;
|
69
70
|
case "Due":
|
70
|
-
return
|
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) => state.dueDateEdit(date !== null && date !== void 0 ? date : undefined) }));
|
71
72
|
case "Owner":
|
72
73
|
return (React.createElement(InlineEdit, { defaultValue: "", showEditIcon: true, editable: false, onEditIconClick: () => runInAction(() => (state.ownerEditable = true)), content: (v) => {
|
73
74
|
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,
|
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,uBAAuB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,kBAEN,MAAM,0DAA0D,CAAC;AAClE,OAAO,QAAQ,MAAM,+BAA+B,CAAC;AACrD,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,yEAAyE,CAAC;AACjG,OAAO,kBAAkB,MAAM,mDAAmD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AM,CAAC,KAAK,QACX,MAAA,IAAI,CAAC,MAAM,0CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAClC,oBAAC,aAAa,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI;4BACtC,oBAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,GAAI,CACzB,CAChB,CAAC,CACY,CACf,CAAC,CAAC,CAAC,CACH,MAAM,CACN,CAAA;qBAAA,GAED,CACF,CAAC;YACH,KAAK,WAAW;gBACf,OAAO,oBAAC,QAAQ,IAAC,IAAI,EAAE,IAAI,CAAC,QAAS,EAAE,GAAG,EAAE,oBAAoB,MAAA,IAAI,CAAC,QAAQ,0CAAE,EAAE,EAAE,GAAI,CAAC;YACzF,KAAK,QAAQ;gBACZ,OAAO,8BAAM,SAAS,EAAC,kBAAkB,IAAE,IAAI,CAAC,MAAM,CAAQ,CAAC;QACjE,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,SAAS,EAAE,iBAAiB;IAC5B,aAAa,EAAE,qBAAqB;IACpC,cAAc,EAAE;QACf,EAAE,IAAI,EAAE,WAAW,EAAE;QACrB,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"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import dayjs from "dayjs";
|
1
2
|
import { WorkStore } from "../../../../data/work";
|
2
3
|
export declare class State {
|
3
4
|
private id;
|
@@ -10,5 +11,5 @@ export declare class State {
|
|
10
11
|
workStatusEdit(workStatus: string): void;
|
11
12
|
ownerEdit(ids: string[]): Promise<void>;
|
12
13
|
contactEdit(ids: string): Promise<void>;
|
13
|
-
dueDateEdit(date
|
14
|
+
dueDateEdit(date?: dayjs.Dayjs): Promise<void>;
|
14
15
|
}
|
@@ -56,8 +56,8 @@ export class State {
|
|
56
56
|
await this.store.edit(this.id, { data: { ContactId: ids }, error: "message" });
|
57
57
|
this.contactEditable = false;
|
58
58
|
}
|
59
|
-
async dueDateEdit(date
|
60
|
-
await this.store.edit(this.id, { data: { DueDate:
|
59
|
+
async dueDateEdit(date) {
|
60
|
+
await this.store.edit(this.id, { data: { DueDate: date }, error: "message" });
|
61
61
|
this.dueDateEditable = false;
|
62
62
|
}
|
63
63
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,MAAM,OAAO,KAAK;IAKjB,YAAoB,EAAU,EAAU,KAAgB;QAA5C;;;;mBAAQ,EAAE;WAAQ;QAAE;;;;mBAAQ,KAAK;WAAW;QAJrC;;;;mBAAkB,KAAK;WAAC;QACxB;;;;mBAAgB,KAAK;WAAC;QACtB;;;;mBAAkB,KAAK;WAAC;QAG1C,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,KAAK;QACnB,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;QAC7B,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IAC9B,CAAC;IAEc,cAAc,CAAC,UAAkB;QAC/C,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACxB,IAAI,EAAE,EAAE,UAAU,EAAE;YACpB,KAAK,EAAE,CAA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