@voplus/morpho-workspace 6.0.145 → 6.0.147

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  import { ILoadable } from "@voplus/morpho-data";
2
+ import { INode } from "@voplus/morpho-document-core";
2
3
  export type WorkTypeStatus = "Active" | "Disabled";
3
4
  export interface ICheckListItem {
4
5
  key?: string;
@@ -23,7 +24,7 @@ export interface IAuditAuditorInfo {
23
24
  id: string;
24
25
  }[];
25
26
  }
26
- export interface IWorkType extends ILoadable {
27
+ export interface IWorkType extends ILoadable, INode {
27
28
  /** id of the workType */
28
29
  id: string;
29
30
  sequence?: ISequenceInfo;
@@ -34,11 +35,6 @@ export interface IWorkType extends ILoadable {
34
35
  defaultDue?: number;
35
36
  status?: string;
36
37
  autoAccept?: boolean;
37
- actions?: {
38
- canDelete: boolean;
39
- canEnable: boolean;
40
- canDisable: boolean;
41
- };
42
38
  defaultFolder?: {
43
39
  id: string;
44
40
  name: string;
@@ -99,11 +99,17 @@ const SubDocumentList = (props) => {
99
99
  });
100
100
  return observe(() => (React.createElement("div", { className: styles["link-list-page"] },
101
101
  React.createElement(Upload.Dragger, { className: classnames("link-upload", !disabled && "doc-drag-hover"), disabled: disabled, customRequest: (option) => customRequest(option), showUploadList: false, openFileDialogOnClick: false, multiple: true },
102
- React.createElement(InfiniteScrollView, { empty: false, loading: docList.loading, hasMore: docList.hasMore, loadMore: () => docList.triggerNextPage() }, docList.data.map((item, index) => (React.createElement(Draggable, { key: item.id, draggableId: item.id, index: index }, (dragProvided, dragSnapshot) => (React.createElement("div", { className: "link-container", isdragging: dragSnapshot.isDragging.toString(), isgroupedover: Boolean(dragSnapshot.combineTargetFor).toString(), ref: dragProvided.innerRef, ...dragProvided.draggableProps, ...dragProvided.dragHandleProps, "data-is-dragging": dragSnapshot.isDragging, "data-testid": props.id, "data-index": index,
103
- // avoid mouse down propagate to panable
104
- onMouseDown: (e) => e.stopPropagation() },
105
- React.createElement("div", { className: "link-content" },
106
- React.createElement(DocumentCard, { id: item.id, onChangeDisabled: onChangeDisabled }))))))))))));
102
+ React.createElement(InfiniteScrollView, { empty: false, loading: docList.loading, hasMore: docList.hasMore, loadMore: () => docList.triggerNextPage() },
103
+ docList.data.map((item, index) => (React.createElement(Draggable, { key: item.id, draggableId: item.id, index: index }, (dragProvided, dragSnapshot) => (React.createElement("div", { className: "link-container", isdragging: dragSnapshot.isDragging.toString(), isgroupedover: Boolean(dragSnapshot.combineTargetFor).toString(), ref: dragProvided.innerRef, ...dragProvided.draggableProps, ...dragProvided.dragHandleProps, "data-is-dragging": dragSnapshot.isDragging, "data-testid": props.id, "data-index": index,
104
+ // avoid mouse down propagate to panable
105
+ onMouseDown: (e) => e.stopPropagation() },
106
+ React.createElement("div", { className: "link-content" },
107
+ React.createElement(DocumentCard, { id: item.id, onChangeDisabled: onChangeDisabled }))))))),
108
+ !docList.data.length && (React.createElement("div", { className: "board-empty" },
109
+ React.createElement("img", { className: "board-empty-img", src: "/img/board/empty.png" }),
110
+ React.createElement("div", { className: "title" }, "New Item"),
111
+ React.createElement("div", { className: "info" }, "Involves creating and assigning a new task within the project management system."),
112
+ React.createElement("div", { className: "new-btn" }, "+ Add New Item"))))))));
107
113
  /**change disabled Upload function*/
108
114
  function onChangeDisabled(newDisabled) {
109
115
  console.log("onChangeDisabled", newDisabled);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/SubDocumentList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAwB,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE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I,CAAC;IACpB,CAAC;IAED,kCAAkC;IAClC,SAAS,OAAO;QACf,MAAM,GAAG,GAAa,EAAE,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACxC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC7C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/SubDocumentList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAwB,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEvF,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAA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CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACxC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC7C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC,eAAe,CAAC,CAAC"}
@@ -21,6 +21,32 @@
21
21
  display: block;
22
22
  height: 100%;
23
23
  }
24
+ .board-empty {
25
+ text-align: center;
26
+ padding-top: 45px;
27
+ .title {
28
+ color: #5d5d5d;
29
+ font-weight: bold;
30
+ }
31
+ .info {
32
+ font-size: 12px;
33
+ color: #868686;
34
+ padding: 0 38px;
35
+ }
36
+ .board-empty-img {
37
+ width: 154px;
38
+ margin: 0 auto;
39
+ }
40
+ .new-btn {
41
+ height: 30px;
42
+ line-height: 30px;
43
+ font-weight: 500;
44
+ color: #868686;
45
+ background: #ffffff;
46
+ border-radius: 5px;
47
+ margin-top: 12px;
48
+ }
49
+ }
24
50
  }
25
51
  .list-loading {
26
52
  text-align: center;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { Access, Delete } from "@voplus/morpho-org/es/controls/NodeMenu/items";
3
3
  import { Button } from "antd";
4
+ import { useApplicationContext } from "@voplus/morpho-data";
4
5
  import { useWorkType, useWorkTypeStore } from "../../../../../data/worktype";
5
6
  import { faUserLock, faUserUnlock } from "@fortawesome/pro-light-svg-icons";
6
7
  import { observe } from "@voplus/morpho-ui";
@@ -10,26 +11,22 @@ import Select from "./item/Select";
10
11
  const WorkTypeMenu = (props) => {
11
12
  /** 加class name 为了方便做integration tests */
12
13
  const classId = "workType-menu";
13
- const worktype = useWorkType(props.id, {
14
- reload: (i) => !i.actions,
15
- includes: "actions",
16
- });
14
+ const { id } = props;
15
+ const { user } = useApplicationContext();
17
16
  const store = useWorkTypeStore();
18
- return observe(() => {
19
- var _a, _b, _c;
20
- return (React.createElement(NodeMenu, { id: props.id, icon: props.icon, store: store, menus: React.createElement(React.Fragment, null,
21
- React.createElement(Access, null),
22
- React.createElement(Select, { id: props.id, className: classId + "-move" }),
23
- ((_a = worktype.actions) === null || _a === void 0 ? void 0 : _a.canDelete) && React.createElement(Delete, { closeAside: props.closeAside }),
24
- ((_b = worktype.actions) === null || _b === void 0 ? void 0 : _b.canDisable) && (React.createElement(Button, { type: "link", onClick: () => onChangeStatus("Disabled"), className: classId + "-disabled" },
25
- React.createElement(FAIcon, { icon: faUserLock }),
26
- React.createElement("span", null, "Disabled"))),
27
- ((_c = worktype.actions) === null || _c === void 0 ? void 0 : _c.canEnable) && (React.createElement(Button, { type: "link", onClick: () => onChangeStatus("Enable"), className: classId + "-enable" },
28
- React.createElement(FAIcon, { icon: faUserUnlock }),
29
- React.createElement("span", null, "Enable")))) }));
30
- });
17
+ const worktype = useWorkType(id, { reload: (i) => !i.p, includes: "permissions" });
18
+ return observe(() => (React.createElement(NodeMenu, { id: id, icon: props.icon, store: store, menus: React.createElement(React.Fragment, null,
19
+ React.createElement(Access, null),
20
+ React.createElement(Select, { id: id, className: classId + "-move" }),
21
+ user.can("delete", worktype.p) && React.createElement(Delete, { closeAside: props.closeAside }),
22
+ user.can("disable", worktype.p) && (React.createElement(Button, { type: "link", onClick: () => onChangeStatus("Disabled"), className: classId + "-disabled" },
23
+ React.createElement(FAIcon, { icon: faUserLock }),
24
+ React.createElement("span", null, "Disabled"))),
25
+ user.can("enable", worktype.p) && (React.createElement(Button, { type: "link", onClick: () => onChangeStatus("Enable"), className: classId + "-enable" },
26
+ React.createElement(FAIcon, { icon: faUserUnlock }),
27
+ React.createElement("span", null, "Enable")))) })));
31
28
  function onChangeStatus(status) {
32
- store.edit(props.id, { data: { Status: status }, error: "message" });
29
+ store.edit(id, { data: { Status: status }, error: "message" });
33
30
  }
34
31
  };
35
32
  export default WorkTypeMenu;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/controls/WorkTypeMenu/index.tsx"],"names":[],"mappings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BAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI;gBAC5B,6CAAqB,CACb,CACT;YACA,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAClC,oBAAC,MAAM,IACN,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,QAAQ,CAAC,EACvC,SAAS,EAAE,OAAO,GAAG,SAAS;gBAE9B,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI;gBAC9B,2CAAmB,CACX,CACT,CACC,GAEH,CACF,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,MAAe;QACtC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAChE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.145",
3
+ "version": "6.0.147",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "copy-less-mac": "cpx 'src/**/*.less' lib && cpx 'src/**/*.less' es && cpx 'src/**/*.css' es",
21
21
  "copy-css-mac": "cpx 'src/**/*.css' lib && cpx 'src/**/*.css' es",
22
22
  "clean": "del-cli es && jest --clearCache",
23
- "storybook": "sb dev -p 9001 -c .storybook -s ./public",
23
+ "storybook": "sb dev -p 9001 -c .storybook -s ../public",
24
24
  "lint": "npx eslint -c .eslintrc.js --ext .ts --ext .tsx src",
25
25
  "build": "npm run clean && tsc -p tsconfig.prod.json && npm run copy-less && npm run copy-css",
26
26
  "build:mac": "npm run clean && tsc -p tsconfig.prod.json && npm run copy-less-mac && npm run copy-css-mac",