@voplus/morpho-workspace 5.0.48 → 5.0.49

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,18 @@
1
- import { Spin } from "antd";
2
1
  import React, { useEffect, useState } from "react";
3
- import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
2
+ import { Empty, Spin } from "antd";
4
3
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
5
4
  import { LoadingOutlined } from "@ant-design/icons";
6
- import NewWorkForm from "../NewWorkForm";
7
- import Scrollbars from "react-custom-scrollbars";
8
5
  import { State } from "./state";
9
- import WorkItem from "../WorkItem";
10
6
  import { faPlus } from "@fortawesome/pro-light-svg-icons";
11
7
  import { observe } from "@voplus/morpho-ui";
12
8
  import { runInAction } from "mobx";
13
- import "./index.less";
14
9
  import { useDocumentLinkListEffect } from "@voplus/morpho-document-core";
15
10
  import { useWork } from "../../../../data/work";
11
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
12
+ import NewWorkForm from "../NewWorkForm";
13
+ import Scrollbars from "react-custom-scrollbars";
14
+ import WorkItem from "../WorkItem";
15
+ import "./index.less";
16
16
  const RelatedWorkList = (props) => {
17
17
  const { id, addAble, title, primaryContact } = props;
18
18
  const [state] = useState(new State());
@@ -36,7 +36,7 @@ const RelatedWorkList = (props) => {
36
36
  React.createElement("div", { className: "related-work-title" }, title),
37
37
  addAble && (React.createElement("span", { className: "plus-icon" },
38
38
  React.createElement(FAIcon, { icon: faPlus, onClick: () => setAdd(!add) })))),
39
- React.createElement(Scrollbars, { autoHide: true }, state.links.length ? (state.links.map((item, index) => (React.createElement(WorkItem, { key: item.right.id, clickNameEffect: "default", id: item.right.id === id ? item.left.id : item.right.id })))) : (null)),
39
+ React.createElement(Scrollbars, { autoHide: true }, state.links.length ? (state.links.map((item, index) => (React.createElement(WorkItem, { key: item.right.id, clickNameEffect: "default", id: item.right.id === id ? item.left.id : item.right.id })))) : (React.createElement(Empty, null))),
40
40
  add && (React.createElement(NewWorkForm, { openMode: "openBottom", workId: id, contact: primaryContact || work.contact, isRelatedWork: true, onSave: () => {
41
41
  setAdd(false);
42
42
  props.onReload && props.onReload();
@@ -1 +1 @@
1
- {"version":3,"file":"RelatedWorkList.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/RelatedWorkList/RelatedWorkList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAgBhD,MAAM,eAAe,GAAG,CAAC,KAA2B,EAAE,EAAE;IACvD,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IACrD,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtC,MAA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,CACrB,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,KAAa,EAAE,EAAE,CAAC,CAC7C,oBAAC,QAAQ,IACR,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,EAClB,eAAe,EAAC,SAAS,EACzB,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GACtD,CACF,CAAC,CACF,CAAC,CAAC,CAAC,CACH,IAAI,CACJ,CACW;QACZ,GAAG,IAAI,CACP,oBAAC,WAAW,IACX,QAAQ,EAAC,YAAY,EACrB,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,cAAc,IAAI,IAAI,CAAC,OAAO,EACvC,aAAa,EAAE,IAAI,EACnB,MAAM,EAAE,GAAG,EAAE;gBACZ,MAAM,CAAC,KAAK,CAAC,CAAC;gBACd,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACpC,CAAC,EACD,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAC5B,CACF,CACI,CACN,CACD,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY,IAAG,OAAO,CAAgB,CAAC,CAAC,CAAC,OAAO,CACzF,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"RelatedWorkList.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/RelatedWorkList/RelatedWorkList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,O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,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GACtD,CACF,CAAC,CACF,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,OAAG,CACT,CACW;QACZ,GAAG,IAAI,CACP,oBAAC,WAAW,IACX,QAAQ,EAAC,YAAY,EACrB,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,cAAc,IAAI,IAAI,CAAC,OAAO,EACvC,aAAa,EAAE,IAAI,EACnB,MAAM,EAAE,GAAG,EAAE;gBACZ,MAAM,CAAC,KAAK,CAAC,CAAC;gBACd,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACpC,CAAC,EACD,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAC5B,CACF,CACI,CACN,CACD,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY,IAAG,OAAO,CAAgB,CAAC,CAAC,CAAC,OAAO,CACzF,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "5.0.48",
3
+ "version": "5.0.49",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",