@voplus/morpho-workspace 6.0.51 → 6.0.53
Sign up to get free protection for your applications and to get access to all the features.
- package/es/modules/notification/components/NotificationList/index.js +15 -10
- package/es/modules/notification/components/NotificationList/index.js.map +1 -1
- package/es/modules/tasks/components/TaskProperties/index.js +1 -1
- package/es/modules/tasks/components/TaskProperties/index.js.map +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.js +7 -8
- package/es/modules/tasks/components/TaskPropertiesView/index.js.map +1 -1
- package/package.json +1 -1
@@ -42,17 +42,22 @@ const NotificationList = (props) => {
|
|
42
42
|
// },
|
43
43
|
// });
|
44
44
|
useEffect(() => {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
45
|
+
if (props.active) {
|
46
|
+
runInAction(() => {
|
47
|
+
store
|
48
|
+
.load(props.active, { onError: (e) => message.error(e) })
|
49
|
+
.then((res) => {
|
50
|
+
if (!(list.data.filter((i) => i.id === res.id).length > 0))
|
51
|
+
list.insert(res, 0);
|
52
|
+
if (res.status === "Unread")
|
53
|
+
editStatus(res.id, "Read");
|
54
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(PropertiesView, { id: res.content.documentId }), {
|
55
|
+
span: 12,
|
56
|
+
});
|
57
|
+
})
|
58
|
+
.catch((e) => { });
|
54
59
|
});
|
55
|
-
}
|
60
|
+
}
|
56
61
|
}, [props.active]);
|
57
62
|
const header = (React.createElement(PageHeader, { titleView: `${firstToUpper(props.status)} Notifications`, addAble: false, quickSearch: true }));
|
58
63
|
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAGN,yBAAyB,EACz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KAAK,EAAE,IAAI;QACX,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO;KACvB,CACD,CAAC;IAEF,iFAAiF;IACjF,mCAAmC;IACnC,uBAAuB;IACvB,mCAAmC;IACnC,uFAAuF;IACvF,+DAA+D;IAC/D,wFAAwF;IACxF,eAAe;IACf,QAAQ;IACR,MAAM;IACN,MAAM;IAEN,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAGN,yBAAyB,EACzB,oBAAoB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,cAAc,MAAM,2DAA2D,CAAC;AACvF,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,cAAc,CAAC;AAEtB,MAAM,gBAAgB,GAAG,CAAC,KAezB,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAA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QAAQ,EAAE;aAC3B;SACjB,CAAC;IACH,CAAC;IAED,SAAS,UAAU,CAAC,EAAU,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"}
|
@@ -18,7 +18,7 @@ const TaskProperties = (props) => {
|
|
18
18
|
const classId = "task-properties";
|
19
19
|
const { id, headerVisible, taskTitle, documentTitle, taskProperties, documentProperties } = props;
|
20
20
|
const { user } = useApplicationContext();
|
21
|
-
const task = useTask(id, { reload: true, includes: "tags,task-number-reports
|
21
|
+
const task = useTask(id, { reload: true, includes: "tags,task-number-reports" });
|
22
22
|
const taskStore = useTaskStore();
|
23
23
|
const [taskStatus, setTaskStatus] = useState(task.taskStatus);
|
24
24
|
useEffect(() => autorun(() => setTaskStatus(task.taskStatus)), [task.taskStatus]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EA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AE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ,GACvB,CACF,CAAC;QACJ,CAAC;IACF,CAAC;IAED,2BAA2B;IAC3B,KAAK,UAAU,MAAM,CAAC,UAAe;QACpC,aAAa,CAAC,UAAU,CAAC,CAAC;QAC1B,MAAM,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE;YACxB,IAAI,EAAE,EAAE,UAAU,EAAE;YACpB,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACrD,CAAC,CAAC;QACH,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAChC,CAAC;AACF,CAAC,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG;IAC7B,SAAS,EAAE,iBAAiB;IAC5B,aAAa,EAAE,qBAAqB;IACpC,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;CAC1E,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
@@ -13,15 +13,14 @@ const TaskPropertiesView = (props) => {
|
|
13
13
|
const id = props.id;
|
14
14
|
const meta = useMetaStore();
|
15
15
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
16
|
-
const task = useTask(id, { includes: "tags" });
|
16
|
+
const task = useTask(id, { reload: true, includes: "tags,task-number-reports,createdby,folder" });
|
17
17
|
const [loaded, setLoaded] = useState(true);
|
18
|
-
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
19
|
-
React.createElement("
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
React.createElement(TaskTabs, { id: id, properties: true })))))));
|
18
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view }, loaded && (React.createElement("div", { className: "module-detail-view" },
|
19
|
+
React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, tagsVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, className: "task-properties-view-header", quickDataBar: React.createElement(TaskDataIconBar, { id: id }), tools: React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
|
20
|
+
React.createElement(Reload, { action: onReload }),
|
21
|
+
React.createElement(Open, { url: meta.getRoute(task) }),
|
22
|
+
React.createElement(Archive, null)), descriptionVisible: false }),
|
23
|
+
React.createElement(TaskTabs, { id: id, properties: true }))))));
|
25
24
|
/** reload data */
|
26
25
|
function onReload() {
|
27
26
|
setLoaded(false);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAElE,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,MAAM,kBAAkB,GAAG,CAAC,KAAwC,EAAE,EAAE;IACvE,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IAEpB,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,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