@voplus/morpho-workspace 6.0.17 → 6.0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,7 @@ const DocumentNotificationCard = (props) => {
26
26
  React.createElement("div", { className: "notification-date" }, dayjs(notification.createDate).format("DD MMM YYYY")),
27
27
  React.createElement("div", { className: "notification-btn" },
28
28
  React.createElement(Space, null,
29
- context.host.isTest && notification.status !== "Dismissed" && (React.createElement(Button, { className: "btn-dismiss", onClick: (ev) => {
29
+ context.host.isTest && notification.status !== "Dismissed" && (React.createElement(Button, { className: "btn-task-form", onClick: (ev) => {
30
30
  var _a, _b;
31
31
  ev.stopPropagation();
32
32
  asideContext.openAside(React.createElement(NewTaskForm, { showView: true, self: true, description: (_a = notification.content) === null || _a === void 0 ? void 0 : _a.content, parentId: (_b = notification.content) === null || _b === void 0 ? void 0 : _b.documentId, onCancel: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside() }), { span: 12 });
@@ -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;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,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,wBAAw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1C,QAAQ,EAAE,GAAG,EAAE,CAAC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,GACzC,EACF,EAAE,IAAI,EAAE,EAAE,EAAE,CACZ,CAAC;gCACH,CAAC,iBAGO,CACT;4BACA,YAAY,CAAC,MAAM,KAAK,WAAW,IAAI,CACvC,oBAAC,MAAM,IAAC,SAAS,EAAC,aAAa,EAAC,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE,WAAW,CAAC,cAEvE,CACT;4BACA,YAAY,CAAC,MAAM,KAAK,WAAW,IAAI,CACvC,oBAAC,MAAM,IAAC,SAAS,EAAC,eAAe,EAAC,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM,CAAC,mBAEpE,CACT;4BACA,YAAY,CAAC,MAAM,KAAK,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,CAAA;KAAA,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"}
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;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAA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AAO,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"}
@@ -1,19 +1,20 @@
1
- import { Dropdown, Menu } from "antd";
2
1
  import React, { useState } from "react";
2
+ import { Dropdown, Menu } from "antd";
3
3
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
4
- import classnames from "classnames";
4
+ import { useApplicationContext } from "@voplus/morpho-data";
5
5
  import { faPlus } from "@fortawesome/pro-light-svg-icons";
6
6
  import { observe } from "@voplus/morpho-ui";
7
+ import classnames from "classnames";
7
8
  import styles from "./index.less";
8
9
  /** taskList 新增 下列更多菜单*/
9
10
  const AddTaskDropdown = (props) => {
10
11
  const [visible, setVisible] = useState(false);
12
+ const context = useApplicationContext();
13
+ let menuList = [{ key: "Task", label: "Task" }];
14
+ context.host.isTest && menuList.push({ key: "Task (Self)", label: "Task (Self) (Test)" });
11
15
  /** Menu 内容*/
12
16
  const menu = observe(() => (React.createElement("div", { className: styles["task-operate-dropdown"] },
13
- React.createElement(Menu, { onClick: (val) => moreOperate(val), items: [
14
- { key: "Task", label: "Task" },
15
- { key: "Task (Self)", label: "Task (Self)" },
16
- ] }))));
17
+ React.createElement(Menu, { onClick: (val) => moreOperate(val), items: menuList }))));
17
18
  return observe(() => (React.createElement(React.Fragment, null,
18
19
  React.createElement(Dropdown, { dropdownRender: () => menu, placement: "bottomRight", trigger: ["click"], open: visible, onOpenChange: (visible) => onVisibleChange(visible) },
19
20
  React.createElement("span", { className: classnames(styles["doc-plus-icon"], props.className), onClick: (e) => e.preventDefault() },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/AddTaskDropdown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAA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AAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAED,SAAS,eAAe,CAAC,OAAgB;QACxC,UAAU,CAAC,OAAO,CAAC,CAAC;QACpB,KAAK,CAAC,aAAc,EAAE,CAAC;IACxB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.17",
3
+ "version": "6.0.18",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",