@voplus/morpho-workspace 6.0.0 → 6.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/es/data/board/hooks.d.ts +1 -4
- package/es/data/calendar/hooks.d.ts +1 -4
- package/es/data/notification/hooks.d.ts +1 -4
- package/es/data/work-schedule/hooks.d.ts +1 -4
- package/es/modules/meeting/components/MeetingList/index.js +1 -1
- package/es/modules/meeting/components/MeetingList/index.js.map +1 -1
- package/es/modules/notification/components/DocumentNotificationCard/index.js +9 -2
- package/es/modules/notification/components/DocumentNotificationCard/index.js.map +1 -1
- package/es/modules/notification/components/NotificationList/index.js +1 -1
- package/es/modules/notification/components/NotificationList/index.js.map +1 -1
- package/es/modules/project/data/hook.d.ts +1 -4
- package/es/modules/space/components/Notes/NewNoteDialog/index.js +2 -2
- package/es/modules/space/components/Notes/NewNoteDialog/index.js.map +1 -1
- package/es/modules/space/components/Notes/TextNoteCard/index.js +2 -2
- package/es/modules/space/components/Notes/TextNoteCard/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.d.ts +2 -0
- package/es/modules/tasks/components/NewTaskForm/index.js +5 -1
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/work/components/NewWorkErrorDialog/index.js +5 -1
- package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -1
- package/es/modules/work/components/NewWorkErrorDialog/state.js +1 -1
- package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -1
- package/es/modules/work/components/WorkErrorItem/index.js +2 -2
- package/es/modules/work/components/WorkErrorItem/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.js +1 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.less +19 -13
- package/es/modules/work/components/WorkErrorQuickViewDialog/index.js +1 -1
- package/es/modules/work/components/WorkErrorQuickViewDialog/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorQuickViewDialog/index.less +14 -8
- package/es/modules/work/components/WorkQuickViewDialog/index.js.map +1 -1
- package/es/modules/work/components/WorkQuickViewDialog/index.less +3 -0
- package/es/modules/work/controls/WorkMenu/item/Accept.js +9 -5
- package/es/modules/work/controls/WorkMenu/item/Accept.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Reject.js +10 -6
- package/es/modules/work/controls/WorkMenu/item/Reject.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js +2 -2
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js.map +1 -1
- package/package.json +1 -1
package/es/data/board/hooks.d.ts
CHANGED
@@ -9,10 +9,7 @@ export declare const useBoard: (id: string, options?: LoadDocumentOptions) => IB
|
|
9
9
|
* @param {string} id - id of the boardcolumn
|
10
10
|
* @param {LoadDocumentOptions} options - options
|
11
11
|
*/
|
12
|
-
export declare const useBoardColumn: (id: string, options?: LoadDocumentOptions) => import("@voplus/morpho-document-core").IDocument
|
13
|
-
loadCount?: number | undefined;
|
14
|
-
includesOption?: string[] | undefined;
|
15
|
-
};
|
12
|
+
export declare const useBoardColumn: (id: string, options?: LoadDocumentOptions) => import("@voplus/morpho-document-core").IDocument;
|
16
13
|
/** React hook to retrieve a list of boards
|
17
14
|
* @param effect - Effect callback to be ran after successful retrieved the list.
|
18
15
|
* @param options - Optional board list loading options.
|
@@ -5,10 +5,7 @@ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
5
5
|
* @param {string} id - id of the calendar
|
6
6
|
* @param {LoadCalendarOptions} options - options
|
7
7
|
*/
|
8
|
-
export declare const useCalendar: (id: string, options?: LoadCalendarOptions) => ICalendar
|
9
|
-
loadCount?: number | undefined;
|
10
|
-
includesOption?: string[] | undefined;
|
11
|
-
};
|
8
|
+
export declare const useCalendar: (id: string, options?: LoadCalendarOptions) => ICalendar;
|
12
9
|
/** React hook to retrieve a list of tasks
|
13
10
|
* @param effect - Effect callback to be ran after successful retrieved the list.
|
14
11
|
* @param options - Optional task list loading options.
|
@@ -1,8 +1,5 @@
|
|
1
1
|
import { INotification, LoadNotificationOptions } from ".";
|
2
2
|
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
3
3
|
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
4
|
-
export declare const useNotification: (id: string, options?: LoadNotificationOptions) => INotification
|
5
|
-
loadCount?: number | undefined;
|
6
|
-
includesOption?: string[] | undefined;
|
7
|
-
};
|
4
|
+
export declare const useNotification: (id: string, options?: LoadNotificationOptions) => INotification;
|
8
5
|
export declare const useNotificationListEffect: (list: ListDataContextState<INotification> | null, effect: (list: INotification[], total?: number) => void, options?: LoadDocumentListOptions) => void;
|
@@ -6,8 +6,5 @@ import { LoadWorkScheduleOptions } from ".";
|
|
6
6
|
* @param {string} id - id of the workSchedule
|
7
7
|
* @param {LoadDocumentOptions} options - options
|
8
8
|
*/
|
9
|
-
export declare const useWorkSchedule: (id: string, options?: LoadWorkScheduleOptions) => IWorkSchedule
|
10
|
-
loadCount?: number | undefined;
|
11
|
-
includesOption?: string[] | undefined;
|
12
|
-
};
|
9
|
+
export declare const useWorkSchedule: (id: string, options?: LoadWorkScheduleOptions) => IWorkSchedule;
|
13
10
|
export declare const useWorkScheduleListEffect: (list: ListDataContextState<IWorkSchedule> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
@@ -73,7 +73,7 @@ const MeetingList = (props) => {
|
|
73
73
|
React.createElement(StartDateFilter, { key: "StartDateFilter", title: "MeetingDate" }),
|
74
74
|
], className: "margin-left-10" }),
|
75
75
|
React.createElement(AddFormView, { id: parentId },
|
76
|
-
React.createElement(NewMeetingForm, { parentId: parentId
|
76
|
+
React.createElement(NewMeetingForm, { parentId: parentId })))));
|
77
77
|
}
|
78
78
|
};
|
79
79
|
export default MeetingList;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAA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;QAEnB,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAC3B,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,OAAO;YAChD,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAC1B,oBAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,SAAS,EAAC,YAAY,EAAC,QAAQ,EAAE,aAAa,GAAI,CAC9E;YACD,oBAAC,gBAAgB,IAChB,MAAM,EAAE,CAAC,IAAqB,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EACzD,SAAS,EAAC,gBAAgB,GACzB;YACF,oBAAC,UAAU,IACV,OAAO,EAAE;oBACR,oBAAC,kBAAkB,IAAC,GAAG,EAAC,oBAAoB,GAAG;oBAC/C,oBAAC,eAAe,IAAC,GAAG,EAAC,iBAAiB,EAAC,KAAK,EAAC,aAAa,GAAG;iBAC7D,EACD,SAAS,EAAC,gBAAgB,GACzB;YACF,oBAAC,WAAW,IAAC,EAAE,EAAE,QAAS;gBACzB,oBAAC,cAAc,IAAC,QAAQ,EAAE,QAAQ,GAAI,CACzB,CACiB,CAChC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
@@ -1,13 +1,16 @@
|
|
1
1
|
import { Button, Space } from "antd";
|
2
2
|
import { useNotification, } from "../../../../data/notification";
|
3
3
|
import Card from "@voplus/morpho-ui/es/controls/Card";
|
4
|
+
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
4
5
|
import ProseMirrorViewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
|
5
6
|
import React from "react";
|
7
|
+
import NewTaskForm from "../../../tasks/components/NewTaskForm";
|
6
8
|
import classnames from "classnames";
|
7
|
-
import
|
9
|
+
import dayjs from "dayjs";
|
8
10
|
import { observe } from "@voplus/morpho-ui";
|
9
11
|
import styles from "./index.less";
|
10
12
|
const DocumentNotificationCard = (props) => {
|
13
|
+
const asideContext = useAsideContentContext();
|
11
14
|
const notification = useNotification(props.id);
|
12
15
|
return observe(() => (React.createElement(Card, { className: classnames(styles["notification-card"], props.className, { active: props.active }), bordered: true,
|
13
16
|
//hoverShadow
|
@@ -16,9 +19,13 @@ const DocumentNotificationCard = (props) => {
|
|
16
19
|
React.createElement("h3", null, notification.content.title),
|
17
20
|
React.createElement(ProseMirrorViewer, { html: notification.content.content }),
|
18
21
|
React.createElement("div", { className: "notification-footer" },
|
19
|
-
React.createElement("div", { className: "notification-date" },
|
22
|
+
React.createElement("div", { className: "notification-date" }, dayjs(notification.createDate).format("DD MMM yyyy")),
|
20
23
|
React.createElement("div", { className: "notification-btn" },
|
21
24
|
React.createElement(Space, null,
|
25
|
+
notification.status !== "Dismissed" && (React.createElement(Button, { className: "btn-dismiss", onClick: (ev) => {
|
26
|
+
ev.stopPropagation();
|
27
|
+
asideContext.openAside(React.createElement(NewTaskForm, { showView: true, self: true, description: notification.content.content, parentId: notification.content.documentId, onCancel: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside() }), { span: 12 });
|
28
|
+
} }, "Ceate Task")),
|
22
29
|
notification.status !== "Dismissed" && (React.createElement(Button, { className: "btn-dismiss", onClick: (ev) => onChangeStatus(ev, "Dismissed") }, "Dismiss")),
|
23
30
|
notification.status === "Dismissed" && (React.createElement(Button, { className: "btn-unDismiss", onClick: (ev) => onChangeStatus(ev, "Read") }, "UnDismiss")),
|
24
31
|
notification.status !== "Later" && notification.status !== "Dismissed" && (React.createElement(Button, { className: "btn-later", onClick: (ev) => onChangeStatus(ev, "Later") }, "Later")))))))));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/DocumentNotificationCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAGN,eAAe,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/DocumentNotificationCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAGN,eAAe,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAChE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,wBAAwB,GAAG,CAAC,KAMjC,EAAE,EAAE;IACJ,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,EAAE,CAA0B,CAAC;IAExE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,EAC7F,QAAQ;QACR,aAAa;QACb,MAAM;QAEN,6BAAK,SAAS,EAAC,2BAA2B,EAAC,OAAO,EAAE,K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OAAO,IAAI,YAAY,CAAC,MAAM,KAAK,WAAW,IAAI,CAC1E,oBAAC,MAAM,IAAC,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,CAAC,YAEjE,CACT,CACM,CACH,CACD,CACD,CACA,CACP,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,EAAO,EAAE,MAA0B;;QAC1D,MAAA,KAAK,CAAC,cAAc,sDAAG,MAAM,CAAC,CAAC;QAC/B,EAAE,CAAC,eAAe,EAAE,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
@@ -45,7 +45,7 @@ const NotificationList = (props) => {
|
|
45
45
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
46
46
|
React.createElement("div", { className: "my-space-notifications" },
|
47
47
|
React.createElement(AsideContent, { context: asideContext },
|
48
|
-
React.createElement(ListView, { headerProps: { header: header, sortable: false, addAble: false }, className: "notifications-list", renderItem: ({ item }) => {
|
48
|
+
React.createElement(ListView, { headerProps: { header: header, sortable: false, addAble: false }, className: "notifications-list", asideable: false, renderItem: ({ item }) => {
|
49
49
|
return (React.createElement(CSSTransition, { key: item.id, in: list.isRemoving(item.id) !== true, timeout: 300, classNames: "notification-card" },
|
50
50
|
React.createElement(DocumentNotificationCard, { id: item.id, active: props.active === item.id ? true : false, onClick: (ev) => {
|
51
51
|
var _a;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAGN,eAAe,EACf,yBAAyB,EACzB,oBAAoB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,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,EAAE,MAA0B;QACzD,WAAW,CAAC,KAAK,IAAI,EAAE;;YACtB,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACjC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;YACxB,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACrE,MAAA,KAAK,CAAC,mBAAmB,sDAAG,GAAG,EAAE,IAAI,CAAC,CAAC;YACvC,IAAI,KAAK,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM;gBAAE,OAAO;YAChE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;QACtC,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAGN,eAAe,EACf,yBAAyB,EACzB,oBAAoB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AAEnE,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,UAAU,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MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACrE,MAAA,KAAK,CAAC,mBAAmB,sDAAG,GAAG,EAAE,IAAI,CAAC,CAAC;YACvC,IAAI,KAAK,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM;gBAAE,OAAO;YAChE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;QACtC,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -1,10 +1,7 @@
|
|
1
1
|
import { LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
|
2
2
|
import { IProject } from "./interfaces";
|
3
3
|
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
4
|
-
export declare const useProject: (id: string, options?: LoadDocumentOptions) => import("@voplus/morpho-document-core").IDocument
|
5
|
-
loadCount?: number | undefined;
|
6
|
-
includesOption?: string[] | undefined;
|
7
|
-
};
|
4
|
+
export declare const useProject: (id: string, options?: LoadDocumentOptions) => import("@voplus/morpho-document-core").IDocument;
|
8
5
|
/** React hook to retrieve a list of tasks
|
9
6
|
* @param effect - Effect callback to be ran after successful retrieved the list.
|
10
7
|
* @param options - Optional task list loading options.
|
@@ -8,7 +8,7 @@ import { Modal } from "antd";
|
|
8
8
|
import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
|
9
9
|
import { RequestBuilder } from "@voplus/api";
|
10
10
|
import { localFormat } from "../../../../../data/contexts/StoreContext";
|
11
|
-
import
|
11
|
+
import dayjs from "dayjs";
|
12
12
|
import { observe } from "@voplus/morpho-ui";
|
13
13
|
const NewNoteDialog = (props) => {
|
14
14
|
const { parentId, visible, onCancel, onOk } = props;
|
@@ -17,7 +17,7 @@ const NewNoteDialog = (props) => {
|
|
17
17
|
const documentStore = useDocumentStore();
|
18
18
|
return observe(() => (React.createElement(Modal, { title: React.createElement(React.Fragment, null,
|
19
19
|
React.createElement("div", null, "Add Note"),
|
20
|
-
React.createElement("div", { className: "date" }, localFormat(
|
20
|
+
React.createElement("div", { className: "date" }, localFormat(dayjs(), "dddd, MMM Do, h:mm A"))), width: "660px", open: visible, closable: false, footer: null, className: "new-note-dialog" },
|
21
21
|
React.createElement("div", { className: "note-header" },
|
22
22
|
React.createElement(ColorSelect, { onChange: (c) => setColor(c.name) }),
|
23
23
|
React.createElement("div", null,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/space/components/Notes/NewNoteDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAa,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/space/components/Notes/NewNoteDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAa,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,OAAO,EAA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olBar2";
|
10
10
|
import Viewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
|
11
11
|
import classnames from "classnames";
|
12
|
-
import
|
12
|
+
import dayjs from "dayjs";
|
13
13
|
import { observe } from "@voplus/morpho-ui";
|
14
14
|
import { runInAction } from "mobx";
|
15
15
|
import { useText } from "@voplus/morpho-text/es/data";
|
@@ -25,7 +25,7 @@ const TextNoteCard = (props) => {
|
|
25
25
|
React.createElement("div", { className: "text-note-card_header" },
|
26
26
|
React.createElement("div", { className: classnames("text-note-card_theme", { show: state.isHover }) },
|
27
27
|
React.createElement(ColorSelect, { color: "", onChange: (c) => runInAction(() => (state.color = c.color)) })),
|
28
|
-
React.createElement("div", { className: classnames("text-note-card_date", { hide: state.isHover }) },
|
28
|
+
React.createElement("div", { className: classnames("text-note-card_date", { hide: state.isHover }) }, dayjs(note.date).format("D MMM YYYY HH:mm")),
|
29
29
|
React.createElement(ToolBar, { id: id },
|
30
30
|
React.createElement(Open, { url: `/document/${props.id}` }))),
|
31
31
|
React.createElement(Viewer, { html: note.text, onClick: () => runInAction(() => (state.visible = true)) }))),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/space/components/Notes/TextNoteCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAC5F,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,MAAM,MAAM,oDAAoD,CA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EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,GAAI,CAChF,CACN;QACD,oBAAC,mBAAmB,IACnB,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,GACzD,CACI,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
@@ -8,6 +8,8 @@ declare const NewTaskForm: (props: {
|
|
8
8
|
showView?: boolean | undefined;
|
9
9
|
/** New Task (For Self) */
|
10
10
|
self?: boolean | undefined;
|
11
|
+
/** Description 默认值 */
|
12
|
+
description?: string | undefined;
|
11
13
|
onSave?: ((params?: any) => void) | undefined;
|
12
14
|
onSubmitSave?: ((params?: any) => void) | undefined;
|
13
15
|
onCancel?: (() => void) | undefined;
|
@@ -22,12 +22,16 @@ const NewTaskForm = (props) => {
|
|
22
22
|
useEffect(() => {
|
23
23
|
state.params.MemberIds = props.self ? [user.info.id] : [];
|
24
24
|
}, [props.self]);
|
25
|
+
useEffect(() => {
|
26
|
+
var _a;
|
27
|
+
state.params.Description = (_a = props.description) !== null && _a !== void 0 ? _a : "";
|
28
|
+
}, [props.parentId]);
|
25
29
|
const content = observe(() => (React.createElement("div", { className: classnames("new-task-form", { "sub-task-simply-form": !!props.simple && !state.showMore }, props.className) },
|
26
30
|
React.createElement(Form, { layout: "vertical" }, state.showMore || !props.simple ? (React.createElement(React.Fragment, null,
|
27
31
|
React.createElement(Form.Item, { label: "Title for your task" },
|
28
32
|
React.createElement(Input, { autoFocus: true, value: state.params.Name, onChange: (e) => runInAction(() => (state.params.Name = e.target.value)), onPressEnter: () => (!!props.simple && !state.showMore ? onSubmit() : null), onKeyDown: onKeyDown })),
|
29
33
|
React.createElement(Form.Item, { label: "Description of your task" },
|
30
|
-
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", onChange: (opt) => (state.params.Description =
|
34
|
+
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", defaultHtml: state.params.Description, onChange: (opt) => (state.params.Description =
|
31
35
|
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })),
|
32
36
|
props.parentId && (React.createElement(Form.Item, null,
|
33
37
|
React.createElement(Checkbox, { checked: state.params.InheritMembers, onChange: (e) => (state.params.InheritMembers = e.target.checked) }, "Add main task members to the sub task"))),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/NewTaskForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,WAAW,MA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xD,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC;QACnC,IAAI,CAAC,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC;YAC5B,OAAO,KAAK,CAAC;QACd,CAAC;QACD,OAAO,OAAO,IAAK,SAAyB,CAAC;IAC9C,CAAC;AACF,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { useState } from "react";
|
2
|
-
import { Col, Form, Row } from "antd";
|
2
|
+
import { Col, Form, Row, message } from "antd";
|
3
3
|
import { State } from "./state";
|
4
4
|
import { observe, UTCDatePicker as DatePicker } from "@voplus/morpho-ui";
|
5
5
|
import { runInAction } from "mobx";
|
@@ -43,6 +43,10 @@ const NewWorkErrorDialog = (props) => {
|
|
43
43
|
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", onChange: (opt) => (state.params.Description =
|
44
44
|
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) }))))))));
|
45
45
|
async function onSubmit() {
|
46
|
+
if (!state.params.Type) {
|
47
|
+
message.warning("The error type cannot be empty !");
|
48
|
+
return;
|
49
|
+
}
|
46
50
|
// if (!state.params.Name) return message.warning("Title is required");
|
47
51
|
runInAction(() => (state.loading = true));
|
48
52
|
await store.create({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkErrorDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkErrorDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAA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C,GAAG,EAAE;YAChB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC7B,CAAC,CAAC,CAAC;QACH,IAAI,KAAK,CAAC,YAAY;YAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1D,CAAC;IACD,mBAAmB;IACnB,SAAS,QAAQ;QAChB,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QACjD,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkErrorDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAGO;;;;mBAAS;gBACf,IAAI,EAAE,EAAE;gBACR,QAAQ,EAAE,IAAI;gBACd,YAAY,EAAE,EAAE;gBAChB,SAAS,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkErrorDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAGO;;;;mBAAS;gBACf,IAAI,EAAE,EAAE;gBACR,QAAQ,EAAE,IAAI;gBACd,YAAY,EAAE,EAAE;gBAChB,SAAS,EAAE,EAAc;gBACzB,WAAW,EAAE,EAAE;aACf;WAAC;QACiB;;;;mBAAS,IAAI,CAAC,MAAM;WAAC;QACrB;;;;mBAAU,KAAK;WAAC;QAVlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAUD;AAFmB;IAAlB,UAAU;qCAA6B;AACrB;IAAlB,UAAU;sCAAwB"}
|
@@ -5,7 +5,7 @@ import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
5
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
6
6
|
import WorkErrorMenu from "../../controls/WorkErrorMenu";
|
7
7
|
import classnames from "classnames";
|
8
|
-
import
|
8
|
+
import dayjs from "dayjs";
|
9
9
|
import { observe } from "@voplus/morpho-ui";
|
10
10
|
import "./index.less";
|
11
11
|
import { useApplicationContext } from "@voplus/morpho-data";
|
@@ -20,7 +20,7 @@ const WorkErrorItem = (props) => {
|
|
20
20
|
React.createElement("div", null,
|
21
21
|
React.createElement("div", { className: "workerror-info" }, workError.type),
|
22
22
|
React.createElement(Tag, { color: "purple" }, workError.severity)),
|
23
|
-
React.createElement("div", { className: "workerror-date" },
|
23
|
+
React.createElement("div", { className: "workerror-date" }, workError.incidentDate ? dayjs(workError.incidentDate).format("DD MMM yyyy") : null)),
|
24
24
|
React.createElement(Col, { flex: 2, className: "workerror-causers" },
|
25
25
|
React.createElement(AvatarList, { organizationId: user.info.organizationId, list: workError.causers || [], editable: false }))),
|
26
26
|
React.createElement("div", { className: classnames("hover-operate-icon", {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,UAAU,MAAM,6CAA6C,CAAC;AAErE,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,8BAA8B,CA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,6BAAK,SAAS,EAAC,gBAAgB,IAAE,SAAS,CAAC,IAAI,CAAO;oBACtD,oBAAC,GAAG,IAAC,KAAK,EAAC,QAAQ,IAAE,SAAS,CAAC,QAAQ,CAAO,CACzC;gBACN,6BAAK,SAAS,EAAC,gBAAgB,IAC7B,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAC/E,CACD;YACN,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC,EAAE,SAAS,EAAC,mBAAmB;gBAC1C,oBAAC,UAAU,IACV,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,IAAI,EAAE,SAAS,CAAC,OAAO,IAAI,EAAE,EAC7B,QAAQ,EAAE,KAAK,GACd,CACG,CACD;QACN,6BACC,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE;gBAC3C,IAAI,EAAE,KAAK;aACX,CAAC;YAEF,oBAAC,OAAO,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK;gBACrC,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,eAAe,KAAK,CAAC,EAAE,EAAE,GAAI;gBACtD,oBAAC,aAAa,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACxC,CACL,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -21,7 +21,7 @@ const WorkErrorPropertiesView = (props) => {
|
|
21
21
|
React.createElement("div", { className: styles["workerror-properties-view"] },
|
22
22
|
workerror.loaded !== true ? (React.createElement(Skeleton, { active: true })) : (React.createElement("div", { className: "workerror-header" },
|
23
23
|
React.createElement("div", { className: "workerror-header-content" },
|
24
|
-
React.createElement("div", { className: "
|
24
|
+
React.createElement("div", { className: "workerror-header-title" },
|
25
25
|
React.createElement("div", { className: "workerror-info" }, workerror.type),
|
26
26
|
React.createElement(Tag, { color: "purple" }, workerror.severity)),
|
27
27
|
React.createElement(ToolBar, { id: props.id, showMenu: false },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,uBAAuB,GAAG,CAAC,KAKhC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IACjC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IACnC,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,EAAE,IAAI,EA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AAI,CAAC,cAAc,EACxC,IAAI,EAAE,SAAS,CAAC,OAAO,IAAI,EAAE,EAC7B,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;wBACjB,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBAChE,CAAC,GACA,CACG,CACN;YACD,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,SAAG,CAC9B,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
@@ -9,21 +9,27 @@
|
|
9
9
|
.workerror-header-content {
|
10
10
|
display: flex;
|
11
11
|
justify-content: space-between;
|
12
|
-
}
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
.workerror-header-title {
|
14
|
+
display: flex;
|
15
|
+
align-items: center;
|
16
|
+
|
17
|
+
.workerror-info {
|
18
|
+
display: inline-block;
|
19
|
+
color: #000;
|
20
|
+
font-size: 24px;
|
21
|
+
font-weight: 500;
|
22
|
+
cursor: pointer;
|
23
|
+
padding-right: 5px;
|
24
|
+
}
|
21
25
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
26
|
+
.ant-tag {
|
27
|
+
padding: 0 5px;
|
28
|
+
font-size: 12px;
|
29
|
+
line-height: 15px;
|
30
|
+
margin-left: 8px;
|
31
|
+
}
|
32
|
+
}
|
27
33
|
}
|
28
34
|
}
|
29
35
|
|
@@ -12,7 +12,7 @@ const WorkErrorQuickViewDialog = (props) => {
|
|
12
12
|
const { id, workTypeId } = props;
|
13
13
|
const workerror = useWorkError(id);
|
14
14
|
return observe(() => (React.createElement(QuickViewDialog, { id: props.id, visible: props.visible, onCancel: props.onCancel, className: "workerror-quick-view", header: React.createElement("div", { className: "workerror-header" },
|
15
|
-
React.createElement("div",
|
15
|
+
React.createElement("div", { className: "workerror-header-title" },
|
16
16
|
React.createElement("div", { className: "workerror-info" }, workerror.type),
|
17
17
|
React.createElement(Tag, { color: "purple" }, workerror.severity)),
|
18
18
|
React.createElement(ToolBar, { id: props.id, showMenu: false },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,eAAe,MAAM,qDAAqD,CAAC;AAClF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,wBAAwB,GAAG,CAAC,KAOjC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IACjC,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IAEnC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,IACf,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,SAAS,EAAC,sBAAsB,EAChC,MAAM,EACL,6BAAK,SAAS,EAAC,kBAAkB;YAChC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorQuickViewDialog/index.tsx"],"names":[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AU,EAAE,IAAI,GAAI,CACxC,CACL,EAEP,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAE1D,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,GAAI,CACd,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
@@ -6,16 +6,22 @@
|
|
6
6
|
display: flex;
|
7
7
|
justify-content: space-between;
|
8
8
|
|
9
|
-
.
|
10
|
-
|
9
|
+
.workerror-header-title {
|
10
|
+
display: flex;
|
11
|
+
align-items: center;
|
12
|
+
|
13
|
+
.workerror-info {
|
14
|
+
display: inline-block;
|
15
|
+
color: #000;
|
16
|
+
font-size: 24px;
|
17
|
+
font-weight: 500;
|
18
|
+
cursor: pointer;
|
19
|
+
padding-right: 5px;
|
20
|
+
}
|
11
21
|
}
|
12
22
|
|
13
|
-
.
|
14
|
-
|
15
|
-
color: #000;
|
16
|
-
font-size: 24px;
|
17
|
-
font-weight: 500;
|
18
|
-
cursor: pointer;
|
23
|
+
.tools-bar {
|
24
|
+
text-align: right;
|
19
25
|
}
|
20
26
|
}
|
21
27
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,eAAe,MAAM,qDAAqD,CAAC;AAClF,OAAO,QAAQ,MAAM,uCAAuC,CAAC;AAC7D,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC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QAAQ,EAAE,EAAE,EACZ,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAAS,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAC3D,CACF,CACgB,CAClB,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;AAEF,eAAe,mBAAmB,CAAC"}
|
@@ -1,13 +1,14 @@
|
|
1
|
+
import React, { useState } from "react";
|
1
2
|
import { useWork, useWorkStore } from "../../../../../data/work";
|
2
3
|
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
3
4
|
import { Button } from "antd";
|
4
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
5
|
-
import React from "react";
|
6
6
|
import { faVoteYea } from "@fortawesome/pro-light-svg-icons";
|
7
7
|
import { observe } from "@voplus/morpho-ui";
|
8
8
|
import { useApplicationContext } from "@voplus/morpho-data";
|
9
9
|
const Accept = (props) => {
|
10
10
|
const { disabled, action, className } = props;
|
11
|
+
const [loading, setLoading] = useState(false);
|
11
12
|
const context = useDocumentMenuContext();
|
12
13
|
const { user } = useApplicationContext();
|
13
14
|
const store = useWorkStore();
|
@@ -17,12 +18,15 @@ const Accept = (props) => {
|
|
17
18
|
});
|
18
19
|
return observe(() => {
|
19
20
|
var _a;
|
20
|
-
return work.workStatus === "New" && ((_a = work.accepters) === null || _a === void 0 ? void 0 : _a.some((i) => i.id === user.info.unit.id)) ? (React.createElement(Button, { type: "link", disabled: disabled,
|
21
|
-
React.createElement(FAIcon, { icon: faVoteYea }),
|
21
|
+
return work.workStatus === "New" && ((_a = work.accepters) === null || _a === void 0 ? void 0 : _a.some((i) => i.id === user.info.unit.id)) ? (React.createElement(Button, { type: "link", className: className, disabled: disabled, loading: loading, onClick: onClick },
|
22
|
+
!loading && React.createElement(FAIcon, { icon: faVoteYea }),
|
22
23
|
React.createElement("span", null, "Accept"))) : null;
|
23
24
|
});
|
24
|
-
function onClick() {
|
25
|
-
|
25
|
+
async function onClick() {
|
26
|
+
var _a;
|
27
|
+
setLoading(true);
|
28
|
+
(_a = action === null || action === void 0 ? void 0 : action()) !== null && _a !== void 0 ? _a : (await store.accept(context.id, { error: "message" }));
|
29
|
+
setLoading(false);
|
26
30
|
}
|
27
31
|
};
|
28
32
|
export default Accept;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Accept.js","sourceRoot":"","sources":["../../../../../../src/modules/work/controls/WorkMenu/item/Accept.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,
|
1
|
+
{"version":3,"file":"Accept.js","sourceRoot":"","sources":["../../../../../../src/modules/work/controls/WorkMenu/item/Accept.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAS,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,GAAG,CAAC,KAMf,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KA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AC,CAAC;IACnB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -1,15 +1,16 @@
|
|
1
|
+
import React, { useState } from "react";
|
1
2
|
import { useWork, useWorkStore } from "../../../../../data/work";
|
2
3
|
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
3
4
|
import { Button } from "antd";
|
4
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
5
|
-
import React from "react";
|
6
6
|
import { faVoteNay } from "@fortawesome/pro-light-svg-icons";
|
7
7
|
import { observe } from "@voplus/morpho-ui";
|
8
8
|
import { useApplicationContext } from "@voplus/morpho-data";
|
9
9
|
const Reject = (props) => {
|
10
10
|
const { disabled, action, className } = props;
|
11
|
-
const
|
11
|
+
const [loading, setLoading] = useState(false);
|
12
12
|
const { user } = useApplicationContext();
|
13
|
+
const context = useDocumentMenuContext();
|
13
14
|
const store = useWorkStore();
|
14
15
|
const work = useWork(context.id, {
|
15
16
|
reload: (i) => !i.requester || !i.accepters,
|
@@ -17,12 +18,15 @@ const Reject = (props) => {
|
|
17
18
|
});
|
18
19
|
return observe(() => {
|
19
20
|
var _a;
|
20
|
-
return work.workStatus === "New" && ((_a = work.accepters) === null || _a === void 0 ? void 0 : _a.some((i) => i.id === user.info.unit.id)) ? (React.createElement(Button, { type: "link", disabled: disabled,
|
21
|
-
React.createElement(FAIcon, { icon: faVoteNay }),
|
21
|
+
return work.workStatus === "New" && ((_a = work.accepters) === null || _a === void 0 ? void 0 : _a.some((i) => i.id === user.info.unit.id)) ? (React.createElement(Button, { type: "link", className: className, disabled: disabled, loading: loading, onClick: onClick },
|
22
|
+
!loading && React.createElement(FAIcon, { icon: faVoteNay }),
|
22
23
|
React.createElement("span", null, "Reject"))) : null;
|
23
24
|
});
|
24
|
-
function onClick() {
|
25
|
-
|
25
|
+
async function onClick() {
|
26
|
+
var _a;
|
27
|
+
setLoading(true);
|
28
|
+
(_a = action === null || action === void 0 ? void 0 : action()) !== null && _a !== void 0 ? _a : (await store.reject(context.id, { error: "message" }));
|
29
|
+
setLoading(false);
|
26
30
|
}
|
27
31
|
};
|
28
32
|
export default Reject;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Reject.js","sourceRoot":"","sources":["../../../../../../src/modules/work/controls/WorkMenu/item/Reject.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,
|
1
|
+
{"version":3,"file":"Reject.js","sourceRoot":"","sources":["../../../../../../src/modules/work/controls/WorkMenu/item/Reject.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAS,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,GAAG,CAAC,KAMf,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE9C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE;QAChC,MAAM,EAAE,CAAC,CAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,SAAS;QAClD,QAAQ,EAAE,qBAAqB;KAC/B,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE;;QACnB,OAAA,IAAI,CAAC,UAAU,KAAK,KAAK,KAAI,MAAA,IAAI,CAAC,SAAS,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAC,CACtF,oBAAC,MAAM,IACN,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO;YAEf,CAAC,OAAO,IAAI,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,GAAI;YACxC,2CAAmB,CACX,CACT,CAAC,CAAC,CAAC,IAAI,CAAA;KAAA,CACR,CAAC;IAEF,KAAK,UAAU,OAAO;;QACrB,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,EAAI,mCAAI,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;QACrE,UAAU,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -21,7 +21,7 @@ const WorkScheduleItem = (props) => {
|
|
21
21
|
const [hover, setHover] = useState(false);
|
22
22
|
const [visibleQuickView, setVisibleQuickView] = useState(false);
|
23
23
|
return observe(() => {
|
24
|
-
var _a, _b, _c, _d, _e;
|
24
|
+
var _a, _b, _c, _d, _e, _f;
|
25
25
|
return (React.createElement("div", { className: classnames(styles["work-schedule-item"]), onClick: onQuickView, onMouseOver: () => setHover(true), onMouseLeave: () => setHover(false) },
|
26
26
|
workSchedule.loading ? (React.createElement(Skeleton, { avatar: avatar, paragraph: { rows: 1 } })) : (React.createElement(ColumnItem, null,
|
27
27
|
React.createElement(ColumnItemCol, { span: 10 },
|
@@ -43,7 +43,7 @@ const WorkScheduleItem = (props) => {
|
|
43
43
|
React.createElement(Open, { size: "middle", url: meta.getRoute(workSchedule) }),
|
44
44
|
React.createElement(WorkScheduleMenu, { id: id, closeAside: true })))))) : (React.createElement(React.Fragment, null,
|
45
45
|
React.createElement(ColumnItemCol, { span: 7, title: "Owner(s)" },
|
46
|
-
React.createElement("div", { className: "work-schedule-item-data-info text-sm text-gray-500 margin-right-15" }, workSchedule.owners.map((item) => (React.createElement("span", { key: item.id, className: "data-icon" },
|
46
|
+
React.createElement("div", { className: "work-schedule-item-data-info text-sm text-gray-500 margin-right-15" }, (_f = workSchedule.owners) === null || _f === void 0 ? void 0 : _f.map((item) => (React.createElement("span", { key: item.id, className: "data-icon" },
|
47
47
|
React.createElement(UnitReference, { unit: item })))))),
|
48
48
|
React.createElement(ColumnItemCol, { span: 7, align: "flex-end" },
|
49
49
|
React.createElement(UpDownStatusBar, { className: classnames("work-schedule-item-menus", { hide: hover }), upNode: React.createElement("div", { className: classnames("flex items-baseline text-xl font-semibold commission-amount") }, workSchedule.schedule && (React.createElement("span", null, moment(workSchedule === null || workSchedule === void 0 ? void 0 : workSchedule.schedule).format("YYYY-MM-DD")))), downNode: React.createElement("div", { className: "work-schedule-item-schedule" }, workSchedule.status) }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MA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,CAAC;gCACpB,QAAQ,CAAC,KAAK,CAAC,CAAC;4BACjB,CAAC;4BAED,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;gCAC/B,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAmB,CAAC,GAAI;gCAC/D,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACrC,CACL,CACS,CACd,CACH,CAAC,CAAC,CAAC,CACH;oBACC,oBAAC,aAAa,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAC,UAAU;wBACvC,6BAAK,SAAS,EAAC,oEAAoE,IACjF,YAAY,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,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