@voplus/morpho-workspace 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/es/data/work/WorkStore.d.ts +12 -0
  2. package/es/data/work/WorkStore.js +21 -0
  3. package/es/data/work/WorkStore.js.map +1 -1
  4. package/es/data/work/interfaces.d.ts +18 -2
  5. package/es/data/workspace/interfaces.d.ts +8 -0
  6. package/es/data/workspace/types.d.ts +1 -0
  7. package/es/data/worktype/WorkTypeStore.d.ts +6 -0
  8. package/es/data/worktype/WorkTypeStore.js +22 -0
  9. package/es/data/worktype/WorkTypeStore.js.map +1 -1
  10. package/es/data/worktype/interfaces.d.ts +4 -0
  11. package/es/data/worktype/types.d.ts +1 -0
  12. package/es/data/worktype/worktype-events/index.d.ts +3 -0
  13. package/es/data/worktype/worktype-events/index.js +4 -0
  14. package/es/data/worktype/worktype-events/index.js.map +1 -0
  15. package/es/data/worktype/worktype-events/useAutoUpdateListData.d.ts +4 -0
  16. package/es/data/worktype/worktype-events/useAutoUpdateListData.js +15 -0
  17. package/es/data/worktype/worktype-events/useAutoUpdateListData.js.map +1 -0
  18. package/es/data/worktype/worktype-events/useOnDeleteWorkType.d.ts +4 -0
  19. package/es/data/worktype/worktype-events/useOnDeleteWorkType.js +16 -0
  20. package/es/data/worktype/worktype-events/useOnDeleteWorkType.js.map +1 -0
  21. package/es/data/worktype/worktype-events/useOnNewWorkType.d.ts +4 -0
  22. package/es/data/worktype/worktype-events/useOnNewWorkType.js +17 -0
  23. package/es/data/worktype/worktype-events/useOnNewWorkType.js.map +1 -0
  24. package/es/modules/work/components/NewWorkForm/index.d.ts +10 -0
  25. package/es/modules/work/components/NewWorkForm/index.js +60 -0
  26. package/es/modules/work/components/NewWorkForm/index.js.map +1 -0
  27. package/es/modules/work/components/NewWorkForm/index.less +17 -0
  28. package/es/modules/work/components/SubWorkList/index.d.ts +4 -0
  29. package/es/modules/work/components/SubWorkList/index.js +42 -0
  30. package/es/modules/work/components/SubWorkList/index.js.map +1 -0
  31. package/es/modules/work/components/SubWorkList/index.less +7 -0
  32. package/es/modules/work/components/WorkErrorList/index.js +7 -6
  33. package/es/modules/work/components/WorkErrorList/index.js.map +1 -1
  34. package/es/modules/work/components/WorkItem/index.d.ts +1 -3
  35. package/es/modules/work/components/WorkItem/index.js +20 -4
  36. package/es/modules/work/components/WorkItem/index.js.map +1 -1
  37. package/es/modules/work/components/WorkItem/index.less +11 -0
  38. package/es/modules/work/components/WorkList/index.js +7 -5
  39. package/es/modules/work/components/WorkList/index.js.map +1 -1
  40. package/es/modules/work/components/WorkPropertiesView/index.js +8 -2
  41. package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
  42. package/es/modules/work/components/WorkQATab/index.js +9 -7
  43. package/es/modules/work/components/WorkQATab/index.js.map +1 -1
  44. package/es/modules/work/components/WorkQATab/index.less +8 -8
  45. package/es/modules/work/components/WorkTabs/index.js +10 -1
  46. package/es/modules/work/components/WorkTabs/index.js.map +1 -1
  47. package/es/modules/work/components/WorkTaskList/index.js +8 -6
  48. package/es/modules/work/components/WorkTaskList/index.js.map +1 -1
  49. package/es/modules/work/components/WorkTaskList/index.less +3 -3
  50. package/es/modules/work/components/WorkTasksTab/index.js +4 -2
  51. package/es/modules/work/components/WorkTasksTab/index.js.map +1 -1
  52. package/es/modules/work/components/WorkTasksTab/index.less +2 -2
  53. package/es/modules/work/components/WorksProperties/index.js +5 -3
  54. package/es/modules/work/components/WorksProperties/index.js.map +1 -1
  55. package/es/modules/work/controls/WorkMenu/Accept.d.ts +8 -0
  56. package/es/modules/work/controls/WorkMenu/Accept.js +31 -0
  57. package/es/modules/work/controls/WorkMenu/Accept.js.map +1 -0
  58. package/es/modules/work/controls/WorkMenu/Reject.d.ts +8 -0
  59. package/es/modules/work/controls/WorkMenu/Reject.js +31 -0
  60. package/es/modules/work/controls/WorkMenu/Reject.js.map +1 -0
  61. package/es/modules/work/controls/WorkMenu/Send.d.ts +8 -0
  62. package/es/modules/work/controls/WorkMenu/Send.js +31 -0
  63. package/es/modules/work/controls/WorkMenu/Send.js.map +1 -0
  64. package/es/modules/work/controls/WorkMenu/index.d.ts +7 -0
  65. package/es/modules/work/controls/WorkMenu/index.js +27 -0
  66. package/es/modules/work/controls/WorkMenu/index.js.map +1 -0
  67. package/es/modules/work/pages/WorkDefaultView/index.less +1 -2
  68. package/es/modules/workspace/components/MyWorkspaces/index.js +9 -7
  69. package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -1
  70. package/es/modules/workspace/components/MyWorkspaces/index.less +2 -2
  71. package/es/modules/workspace/components/WorkspaceCard/index.js +9 -4
  72. package/es/modules/workspace/components/WorkspaceCard/index.js.map +1 -1
  73. package/es/modules/workspace/components/WorkspaceCard/index.less +12 -0
  74. package/es/modules/workspace/components/WorkspaceCardList/index.js +3 -5
  75. package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -1
  76. package/es/modules/workspace/components/WorkspacePropertiesView/index.js +11 -5
  77. package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
  78. package/es/modules/workspace/components/WorkspaceTabs/index.d.ts +5 -0
  79. package/es/modules/workspace/components/WorkspaceTabs/index.js +26 -0
  80. package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -0
  81. package/es/modules/workspace/controls/WorkspaceMenu/index.js +38 -14
  82. package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -1
  83. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +1 -1
  84. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
  85. package/es/modules/workspace/pages/WorkspacePage/index.js +1 -1
  86. package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -1
  87. package/es/modules/worktype/components/NewTypeForm/index.d.ts +10 -0
  88. package/es/modules/worktype/components/NewTypeForm/index.js +42 -0
  89. package/es/modules/worktype/components/NewTypeForm/index.js.map +1 -0
  90. package/es/modules/worktype/components/NewTypeForm/index.less +8 -0
  91. package/es/modules/worktype/components/NewTypeForm/state.d.ts +11 -0
  92. package/es/modules/worktype/components/NewTypeForm/state.js +41 -0
  93. package/es/modules/worktype/components/NewTypeForm/state.js.map +1 -0
  94. package/es/modules/worktype/components/WorkTypeCardList/index.d.ts +4 -11
  95. package/es/modules/worktype/components/WorkTypeCardList/index.js +3 -17
  96. package/es/modules/worktype/components/WorkTypeCardList/index.js.map +1 -1
  97. package/es/modules/worktype/components/WorkTypeCardList/index.less +7 -9
  98. package/es/modules/worktype/components/WorkTypeItem/index.d.ts +1 -1
  99. package/es/modules/worktype/components/WorkTypeItem/index.js +14 -2
  100. package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -1
  101. package/es/modules/worktype/components/WorkTypeItem/index.less +13 -0
  102. package/es/modules/worktype/components/WorkTypeList/index.d.ts +10 -0
  103. package/es/modules/worktype/components/WorkTypeList/index.js +46 -0
  104. package/es/modules/worktype/components/WorkTypeList/index.js.map +1 -0
  105. package/es/modules/worktype/components/WorkTypeList/index.less +7 -0
  106. package/es/modules/worktype/components/WorkTypeProperties/index.js +24 -3
  107. package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
  108. package/es/modules/worktype/components/WorkTypeProperties/index.less +27 -2
  109. package/es/modules/worktype/components/WorkTypePropertiesView/index.js +13 -8
  110. package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -1
  111. package/es/modules/worktype/components/WorkTypeQA/index.js +37 -36
  112. package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -1
  113. package/es/modules/worktype/components/WorkTypeQA/index.less +7 -0
  114. package/es/modules/worktype/components/WorkTypeTabs/index.js +4 -2
  115. package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
  116. package/es/modules/worktype/controls/WorkTypeMenu/index.d.ts +14 -0
  117. package/es/modules/worktype/controls/WorkTypeMenu/index.js +26 -0
  118. package/es/modules/worktype/controls/WorkTypeMenu/index.js.map +1 -0
  119. package/es/modules/worktype/controls/WorkTypeMenu/index.less +0 -0
  120. package/es/pages/Routes.js +3 -3
  121. package/es/pages/Routes.js.map +1 -1
  122. package/es/pages/Space/components/Tasks/index.js +22 -24
  123. package/es/pages/Space/components/Tasks/index.js.map +1 -1
  124. package/es/pages/Space/pages/MySpace/index.js +5 -5
  125. package/es/pages/Space/pages/MySpace/index.js.map +1 -1
  126. package/es/pages/Space/pages/MySpace/state.d.ts +3 -2
  127. package/es/pages/Space/pages/MySpace/state.js +19 -5
  128. package/es/pages/Space/pages/MySpace/state.js.map +1 -1
  129. package/es/pages/WorkType/WorkTypeSelect/index.js +5 -1
  130. package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
  131. package/package.json +1 -1
@@ -13,5 +13,16 @@
13
13
  bottom: 0;
14
14
  border-bottom: 1px solid #f2f2f2;
15
15
  }
16
+ .hover-operate-icon {
17
+ display: none;
18
+ position: absolute;
19
+ right: 20px;
20
+ .ant-btn:first-child {
21
+ margin-left: 0;
22
+ }
23
+ &.show {
24
+ display: block;
25
+ }
26
+ }
16
27
  }
17
28
  }
@@ -1,10 +1,12 @@
1
1
  import "./index.less";
2
+ import { useApplicationContext } from "@voplus/morpho-data";
2
3
  import { useWorkListEffect } from "../../../../data/work";
3
4
  import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
4
5
  import React, { useState } from "react";
5
6
  import { useAutoUpdateListData, useDocumentStore } from "@voplus/morpho-document-core";
6
7
  import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
7
8
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
9
+ import NewWorkForm from "../NewWorkForm";
8
10
  import S from "string";
9
11
  import WorkItem from '../WorkItem';
10
12
  import WorkPropertiesView from '../WorkPropertiesView';
@@ -15,11 +17,12 @@ const WorkList = (props) => {
15
17
  const { dueDate } = props;
16
18
  const [activeId, setActiveId] = useState("");
17
19
  const documentStore = useDocumentStore();
20
+ const { user } = useApplicationContext();
18
21
  const list = useCreateListDataState({
19
22
  filterDefaults: { filters: filters() }
20
23
  }, [props.status, dueDate]);
21
24
  /** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
22
- useAutoUpdateListData(list, (d) => d.type === "Work" && !d.parentId);
25
+ useAutoUpdateListData(list, (d) => d.type === "Work");
23
26
  useRenderOnChange(() => list.filters.options);
24
27
  /** 把ListDataState传给useWorkListEffect,使之可以自動更新loading, hasmore. */
25
28
  useWorkListEffect(list, (result, total) => {
@@ -33,9 +36,8 @@ const WorkList = (props) => {
33
36
  return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
34
37
  React.createElement(ListView, { headerProps: {
35
38
  viewTitle: "My Works",
36
- addAble: false,
37
39
  sortable: false
38
- }, className: "work-list", propertiesView: (id) => React.createElement(WorkPropertiesView, { id: id }), moveAfter: moveAfter, renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
40
+ }, className: "work-list", propertiesView: (id) => React.createElement(WorkPropertiesView, { id: id }), moveAfter: moveAfter, formViewTitle: "Add Work", formView: React.createElement(NewWorkForm, { showView: true }), renderItem: ({ item, connectDragSource }) => (React.createElement(React.Fragment, null,
39
41
  React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
40
42
  active: activeId === item.id,
41
43
  hoverEffect: "background",
@@ -45,9 +47,9 @@ const WorkList = (props) => {
45
47
  setActiveId(item.id);
46
48
  (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
47
49
  } },
48
- React.createElement(WorkItem, { id: item.id })))) }))));
50
+ React.createElement(WorkItem, { id: item.id, toolsVisible: false })))) }))));
49
51
  function filters() {
50
- const filter = [];
52
+ const filter = [{ c: "Owners", o: "contains", l: "And", v1: JSON.stringify([user.info.unit.id]) }];
51
53
  if (props.status) {
52
54
  filter.push({
53
55
  c: "WorkStatus",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkList/index.tsx"],"names":[],"mappings":"AAAA,OAA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BAC9B,EAAE,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;gBAC1D,EAAE,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;aACxD;iBAAM;gBACN,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;gBAC9E,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;aAC5E;YACD,MAAM,CAAC,IAAI,CAAC;gBACX,CAAC,EAAE,SAAS;gBACZ,CAAC,EAAE,SAAS;gBACZ,CAAC,EAAE,KAAK;gBACR,EAAE,EAAE,EAAE;gBACN,EAAE,EAAE,EAAE;aACU,CAAC,CAAA;SAClB;QACD,OAAO,MAAwB,CAAC;IACjC,CAAC;IAED,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,aAAa,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -5,6 +5,7 @@ import { useWork, useWorkStore } from "../../../../data/work";
5
5
  import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
6
6
  import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
7
7
  import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
8
+ import WorkMenu from "../../controls/WorkMenu";
8
9
  import WorkTabs from "../WorkTabs";
9
10
  import { observe } from "@voplus/morpho-ui";
10
11
  import { useApplicationContext } from "@voplus/morpho-data";
@@ -18,9 +19,14 @@ const WorkPropertiesView = (props) => {
18
19
  const [loaded, setLoaded] = useState(true);
19
20
  return observe(() => (React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
20
21
  React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, className: "task-properties-view-header", tools: React.createElement("div", { className: "tools-bar" },
21
- React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
22
+ React.createElement(ToolBar, { id: id, moreProps: {
23
+ closeAside: true,
24
+ menus: {
25
+ default: React.createElement(WorkMenu, { id: id })
26
+ }
27
+ } },
22
28
  React.createElement(Reload, { action: onReload }),
23
- React.createElement(Open, { url: meta.getRoute(work) }))), descriptionVisible: false }),
29
+ React.createElement(Open, { url: `/work/${id}` }))), descriptionVisible: false }),
24
30
  React.createElement(DescriptionEditor, { id: id, description: work.description, readonly: work.readonly }),
25
31
  React.createElement(WorkTabs, { id: id, propertie: true }))))));
26
32
  /** reload data */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAW,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG9D,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAElF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,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"}
@@ -3,6 +3,7 @@ import React, { useState } from "react";
3
3
  import { observe, useAsideContentContext } from "@voplus/morpho-ui";
4
4
  import NewWorkErrorDialog from "../NewWorkErrorDialog";
5
5
  import { PlusOutlined } from "@ant-design/icons";
6
+ import { Scrollbars } from "react-custom-scrollbars";
6
7
  import TaskPropertiesView from "../../../tasks/components/TaskPropertiesView";
7
8
  import WorkErrorList from "../WorkErrorList";
8
9
  import WorkErrorPropertiesView from "../WorkErrorPropertiesView";
@@ -12,13 +13,14 @@ const WorkQATab = (props) => {
12
13
  const [visible, setVisible] = useState(false);
13
14
  const asideContext = useAsideContentContext();
14
15
  return observe(() => React.createElement("div", { className: "work-qa-tab" },
15
- React.createElement("div", { className: "work-audit-tasks" },
16
- React.createElement(WorkTaskList, { parentId: id, Title: "Audit Tasks", onClickItem: onClickWorkTaskItem })),
17
- React.createElement("div", { className: "work-errors" },
18
- React.createElement("h3", null,
19
- "Errors ",
20
- React.createElement(PlusOutlined, { onClick: () => setVisible(true) })),
21
- React.createElement(WorkErrorList, { id: id, onClickItem: onClickItem })),
16
+ React.createElement(Scrollbars, { autoHide: true },
17
+ React.createElement("div", { className: "work-audit-tasks" },
18
+ React.createElement(WorkTaskList, { parentId: id, Title: "Audit Tasks", onClickItem: onClickWorkTaskItem })),
19
+ React.createElement("div", { className: "work-errors" },
20
+ React.createElement("h3", null,
21
+ "Errors ",
22
+ React.createElement(PlusOutlined, { onClick: () => setVisible(true) })),
23
+ React.createElement(WorkErrorList, { id: id, onClickItem: onClickItem }))),
22
24
  visible &&
23
25
  React.createElement(NewWorkErrorDialog, { WorkId: id, onCancel: () => setVisible(false), onSubmitSave: () => setVisible(false) })));
24
26
  /** work error onclick item */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkQATab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO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AC,QAAQ;YAChB,6BAAK,SAAS,EAAC,kBAAkB;gBAC7B,oBAAC,YAAY,IACT,QAAQ,EAAE,EAAE,EACZ,KAAK,EAAC,aAAa,EACnB,WAAW,EAAE,mBAAmB,GAClC,CACA;YACN,6BAAK,SAAS,EAAC,aAAa;gBACxB;;oBAAW,oBAAC,YAAY,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,GAAI,CAAK;gBACjE,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,WAAW,GAAI,CACjD,CACG;QACZ,OAAO;YACJ,oBAAC,kBAAkB,IACf,MAAM,EAAE,EAAE,EACV,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACjC,YAAY,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GACvC,CAEJ,CACT,CAAA;IAED,+BAA+B;IAC/B,SAAS,WAAW,CAAC,EAAU;QAC3B,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CACnB,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI,EACnC,EAAE,IAAI,EAAE,EAAE,EAAE,CACf,CAAC;IACN,CAAC;IAED,SAAS,mBAAmB,CAAC,EAAU;QACnC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CACnB,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EAC9B,EAAE,IAAI,EAAE,EAAE,EAAE,CACf,CAAC;IACN,CAAC;AACL,CAAC,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -1,14 +1,14 @@
1
1
  :global {
2
2
  .work-qa-tab {
3
3
  height: 100%;
4
- display: flex;
5
- flex-direction: column;
6
- .work-audit-tasks,
7
- .work-errors {
8
- flex: 1;
9
- display: flex;
10
- flex-direction: column;
11
- }
4
+ // display: flex;
5
+ // flex-direction: column;
6
+ // .work-audit-tasks,
7
+ // .work-errors {
8
+ // flex: 1;
9
+ // display: flex;
10
+ // flex-direction: column;
11
+ // }
12
12
  h3 {
13
13
  padding: 10px 20px;
14
14
  display: flex;
@@ -8,6 +8,7 @@ import WorkTasksTab from "../WorkTasksTab";
8
8
  import WorksProperties from "../WorksProperties";
9
9
  import { observe } from "@voplus/morpho-ui";
10
10
  import { useApplicationContext } from "@voplus/morpho-data";
11
+ import { useDocumentListEffect } from "@voplus/morpho-document-core";
11
12
  import { useTaskListEffect } from "../../../../data/task";
12
13
  const WorkTabs = (props) => {
13
14
  const { id, propertie } = props;
@@ -15,6 +16,7 @@ const WorkTabs = (props) => {
15
16
  /**Tabs 当前激活 tab 面板的 key */
16
17
  const [activeKey, setActiveKey] = useState(propertie ? "Properties" : "Activities");
17
18
  const [taskTotals, setTaskTotals] = useState(0);
19
+ const [docTotals, setDocTotals] = useState(0);
18
20
  useEffect(() => {
19
21
  setActiveKey(propertie ? "Properties" : "Activities");
20
22
  }, [props.id]);
@@ -25,6 +27,13 @@ const WorkTabs = (props) => {
25
27
  { c: "Members", o: "contains", l: "And", v1: JSON.stringify([user.info.unit.id]) }
26
28
  ],
27
29
  });
30
+ useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
31
+ Total: true, List: false,
32
+ Filters: [
33
+ { c: "ParentNodeId", o: "=", l: "And", v1: id },
34
+ { c: "Type", o: "!contains", l: "And", v1: '["Task"]' }
35
+ ],
36
+ });
28
37
  return observe(() => (React.createElement(Tabs, { activeKey: activeKey, className: "work-tabs", onChange: onChange },
29
38
  propertie &&
30
39
  React.createElement(Tabs.TabPane, { tab: "Properties", key: "Properties" }, activeKey === "Properties" && React.createElement(WorksProperties, { id: id })),
@@ -34,7 +43,7 @@ const WorkTabs = (props) => {
34
43
  React.createElement(Badge, { count: taskTotals, className: "site-badge-count" })), key: "Tasks" }, activeKey === "Tasks" && (React.createElement(WorkTasksTab, { id: id }))),
35
44
  React.createElement(Tabs.TabPane, { tab: React.createElement(React.Fragment, null,
36
45
  "Documents",
37
- React.createElement(Badge, { count: 2, className: "site-badge-count" })), key: "Documents" }, activeKey === "Documents" && (React.createElement(DocumentList, { id: id, multiple: true }))),
46
+ React.createElement(Badge, { count: docTotals, className: "site-badge-count" })), key: "Documents" }, activeKey === "Documents" && (React.createElement(DocumentList, { id: id, multiple: true, exclude: ["Task"] }))),
38
47
  React.createElement(Tabs.TabPane, { tab: "QA", key: "QA" }, activeKey === "QA" && React.createElement(WorkQATab, { id: id })))));
39
48
  /**切换面板的回调*/
40
49
  function onChange(activeKey) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,WAAW,MAAM,gEAAgE,CAAC;AACzF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,QAAQ,GAAG,CAAC,KAGjB,EAAE,EAAE;IACD,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAChC,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,2BAA2B;IAC3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CA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,IAC9F,SAAS,KAAK,OAAO,IAAI,CACtB,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,GAAI,CAC3B,CACU;QACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAE;;gBAAW,oBAAC,KAAK,IAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAC,kBAAkB,GAAG,CAAG,EAAE,GAAG,EAAC,WAAW,IACrG,SAAS,KAAK,WAAW,IAAI,CAC1B,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,QAAC,OAAO,EAAE,CAAC,MAAM,CAAC,GAAI,CACvD,CACU;QACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,IAAI,EAAC,GAAG,EAAC,IAAI,IAC1B,SAAS,KAAK,IAAI,IAAI,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,GAAI,CACjC,CACZ,CACV,CAAC,CAAC;IAEH,YAAY;IACZ,SAAS,QAAQ,CAAC,SAAiB;QAC/B,YAAY,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -8,7 +8,7 @@ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
8
8
  import { useAutoUpdateListData, useDocumentStore, } from "@voplus/morpho-document-core";
9
9
  import DefaultTaskItem from "../../../tasks/components/TaskItem/DefaultTaskItem";
10
10
  import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
11
- import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
11
+ import { Empty } from "@voplus/antd";
12
12
  import NewTaskForm from "../../../tasks/components/NewTaskForm";
13
13
  import { PlusOutlined } from "@ant-design/icons";
14
14
  import classnames from "classnames";
@@ -19,7 +19,8 @@ const WorkTaskList = (props) => {
19
19
  const list = useCreateListDataState({
20
20
  filterDefaults: {
21
21
  includes: "tags",
22
- filters: filters()
22
+ filters: filters(),
23
+ page: { Page: 1, PageSize: 200 }
23
24
  },
24
25
  }, []);
25
26
  /** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
@@ -38,14 +39,15 @@ const WorkTaskList = (props) => {
38
39
  React.createElement("h3", { className: "work-task-header" },
39
40
  props.Title,
40
41
  React.createElement(PlusOutlined, { onClick: () => state.addAble = !state.addAble })),
41
- React.createElement(ListView, { renderId: props.parentId, headerProps: {
42
- visible: false,
43
- }, moveAfter: moveAfter, renderItem: ({ item, connectDragSource, multiple }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
42
+ list.data.length ?
43
+ list.data.map((item) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
44
44
  hoverEffect: "background",
45
45
  hoverBackgroundProps: { color: "#f2f2f2" },
46
46
  style: { border: "none", flex: "1" },
47
47
  }, onClick: () => { var _a; return (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item.id); } },
48
- React.createElement(DefaultTaskItem, { id: item.id, connectDragSource: connectDragSource }))) }),
48
+ React.createElement(DefaultTaskItem, { id: item.id }))))
49
+ :
50
+ React.createElement(Empty, null),
49
51
  state.addAble && (React.createElement(NewTaskForm, { simple: true, parentId: props.parentId, block: true, onSave: () => {
50
52
  state.clearAdd();
51
53
  }, onCancel: () => state.clearAdd() }))))));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkTaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAgB,qBAAqB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAS,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,KAAK,EAAqB,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,E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AEvB,CAAC;gBACF,CAAC;oBACD,oBAAC,KAAK,OAAG;YAsBZ,KAAK,CAAC,OAAO,IAAI,CACd,oBAAC,WAAW,IACR,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,GAAG,EAAE;oBACT,KAAK,CAAC,QAAQ,EAAE,CAAC;gBACrB,CAAC,EACD,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,GAClC,CACL,CACC,CACiB,CAC9B,CAAC,CAAC;IAGH,SAAS,OAAO;QACZ,IAAI,CAAC,KAAK,CAAC,KAAK;YAAE,OAAO,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvF,OAAO;YACH,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,CAAC,QAAQ,EAAE;YAC3D,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE;SACrF,CAAC;IACN,CAAC;IAED,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QAChD,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,8 +1,8 @@
1
1
  :global {
2
2
  .work-task-list {
3
- height: 100%;
4
- display: flex;
5
- flex-direction: column;
3
+ // height: 100%;
4
+ // display: flex;
5
+ // flex-direction: column;
6
6
  .work-task-header {
7
7
  padding: 10px 20px;
8
8
  display: flex;
@@ -1,14 +1,16 @@
1
1
  import "./index.less";
2
2
  import { observe, useAsideContentContext } from "@voplus/morpho-ui";
3
3
  import React from "react";
4
+ import { Scrollbars } from "react-custom-scrollbars";
4
5
  import TaskPropertiesView from "../../../tasks/components/TaskPropertiesView";
5
6
  import WorkTaskList from "../WorkTaskList";
6
7
  const WorkTasksTab = (props) => {
7
8
  const { id } = props;
8
9
  const asideContext = useAsideContentContext();
9
10
  return observe(() => React.createElement("div", { className: "work-tasks-tab" },
10
- React.createElement(WorkTaskList, { parentId: id, Title: "My Tasks", roles: true, onClickItem: onClickItem }),
11
- React.createElement(WorkTaskList, { parentId: id, Title: "All Tasks", onClickItem: onClickItem })));
11
+ React.createElement(Scrollbars, { autoHide: true },
12
+ React.createElement(WorkTaskList, { parentId: id, Title: "My Tasks", roles: true, onClickItem: onClickItem }),
13
+ React.createElement(WorkTaskList, { parentId: id, Title: "All Tasks", onClickItem: onClickItem }))));
12
14
  function onClickItem(id) {
13
15
  asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(TaskPropertiesView, { id: id }), { span: 12 });
14
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkTasksTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,kBAAkB,MAAM,8CAA8C,CAAC;AAC9E,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C,MAAM,YAAY,GAAG,CAAC,KAAsB,EAAE,EAAE;IAC5C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAG9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAChB,6BAAK,SAAS,EAAC,gB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AW,EACjB,WAAW,EAAE,WAAW,GAC1B,CACO,CACX,CACT,CAAA;IAED,SAAS,WAAW,CAAC,EAAU;QAC3B,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CACnB,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EAC9B,EAAE,IAAI,EAAE,EAAE,EAAE,CACf,CAAC;IACN,CAAC;AACL,CAAC,CAAA;AAED,eAAe,YAAY,CAAC"}
@@ -1,7 +1,7 @@
1
1
  :global {
2
2
  .work-tasks-tab {
3
3
  height: 100%;
4
- display: flex;
5
- flex-direction: column;
4
+ // display: flex;
5
+ // flex-direction: column;
6
6
  }
7
7
  }
@@ -11,16 +11,18 @@ const WorksProperties = (props) => {
11
11
  const { user } = useApplicationContext();
12
12
  const noData = (React.createElement("span", { className: "no-data" }, "no data"));
13
13
  return observe(() => {
14
- var _a;
14
+ var _a, _b;
15
15
  return (React.createElement("div", { className: "work-roperties" },
16
+ React.createElement("h2", null, (_a = work.workType) === null || _a === void 0 ? void 0 : _a.name),
16
17
  React.createElement(Form, { labelAlign: "left", labelCol: { span: 8 }, scrollToFirstError: true },
17
18
  React.createElement(Form.Item, { label: "No" }, work.no || noData),
18
19
  React.createElement(Form.Item, { label: "Type" }, work.type || noData),
19
20
  React.createElement(Form.Item, { label: "Status" }, work.status || noData),
20
- React.createElement(Form.Item, { label: "Folder" }, ((_a = work.folder) === null || _a === void 0 ? void 0 : _a.name) || noData),
21
+ React.createElement(Form.Item, { label: "Contact" }),
22
+ React.createElement(Form.Item, { label: "Folder" }, ((_b = work.folder) === null || _b === void 0 ? void 0 : _b.name) || noData),
21
23
  React.createElement(Form.Item, { label: "Due" }, work.due ? moment(work.due).format("DD MMM yyyy") : noData),
22
24
  React.createElement(Form.Item, { label: "Owner" },
23
- React.createElement(AvatarList, { editable: false })))));
25
+ React.createElement(AvatarList, { list: work.owners, editable: false })))));
24
26
  });
25
27
  };
26
28
  export default WorksProperties;
@@ -1 +1 @@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IAAI,CAAC,QAAQ,0CAAE,IAAI,CAAM;YAC9B,oBAAC,IAAI,IACD,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EACrB,kBAAkB;gBAElB,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,IAAI,IAChB,IAAI,CAAC,EAAE,IAAI,MAAM,CACV;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,IAClB,IAAI,CAAC,IAAI,IAAI,MAAM,CACZ;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,IACpB,IAAI,CAAC,MAAM,IAAI,MAAM,CACd;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,SAAS,GAEd;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,IACpB,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,IAAI,KAAI,MAAM,CACpB;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,KAAK,IACjB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,MAAM,CACnD;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO;oBACpB,oBAAC,UAAU,IAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,GAAI,CAC1C,CACT,CACL,CACT,CAAA;KAAA,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const Accept: (props: {
3
+ /** disabled Button */
4
+ disabled?: boolean | undefined;
5
+ /** function of Click */
6
+ action?: ((context?: any) => void) | undefined;
7
+ }) => JSX.Element;
8
+ export default Accept;
@@ -0,0 +1,31 @@
1
+ import { useWork, useWorkStore } from "../../../../data/work";
2
+ import { useDocumentMenuContext, } from "@voplus/morpho-document-core";
3
+ import { Button } from "@voplus/antd";
4
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
5
+ import React from "react";
6
+ import { faVoteYea } from "@fortawesome/pro-light-svg-icons";
7
+ import { observe } from "@voplus/morpho-ui";
8
+ import { useApplicationContext } from "@voplus/morpho-data";
9
+ const Accept = (props) => {
10
+ const { disabled, action } = props;
11
+ const context = useDocumentMenuContext();
12
+ const { user } = useApplicationContext();
13
+ const store = useWorkStore();
14
+ const document = useWork(context.id, {
15
+ reload: (i) => !i.requester || !i.accepters,
16
+ includes: "requester,accepters"
17
+ });
18
+ return observe(() => {
19
+ var _a;
20
+ return document.workStatus == "New" && ((_a = document.accepters) === null || _a === void 0 ? void 0 : _a.some(i => i.id === user.info.id)) ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
21
+ React.createElement(FAIcon, { icon: faVoteYea }),
22
+ React.createElement("span", null, "Accept"))) : null;
23
+ });
24
+ function onClick() {
25
+ !!action
26
+ ? action()
27
+ : store.accept(context.id);
28
+ }
29
+ };
30
+ export default Accept;
31
+ //# sourceMappingURL=Accept.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Accept.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkMenu/Accept.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAEH,sBAAsB,GACzB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAA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 declare const Reject: (props: {
3
+ /** disabled Button */
4
+ disabled?: boolean | undefined;
5
+ /** function of Click */
6
+ action?: ((context?: any) => void) | undefined;
7
+ }) => JSX.Element;
8
+ export default Reject;
@@ -0,0 +1,31 @@
1
+ import { useWork, useWorkStore } from "../../../../data/work";
2
+ import { useDocumentMenuContext, } from "@voplus/morpho-document-core";
3
+ import { Button } from "@voplus/antd";
4
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
5
+ import React from "react";
6
+ import { faVoteNay } from "@fortawesome/pro-light-svg-icons";
7
+ import { observe } from "@voplus/morpho-ui";
8
+ import { useApplicationContext } from "@voplus/morpho-data";
9
+ const Reject = (props) => {
10
+ const { disabled, action } = props;
11
+ const context = useDocumentMenuContext();
12
+ const { user } = useApplicationContext();
13
+ const store = useWorkStore();
14
+ const document = useWork(context.id, {
15
+ reload: (i) => !i.requester || !i.accepters,
16
+ includes: "requester,accepters"
17
+ });
18
+ return observe(() => {
19
+ var _a;
20
+ return document.workStatus == "New" && ((_a = document.accepters) === null || _a === void 0 ? void 0 : _a.some(i => i.id === user.info.id)) ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
21
+ React.createElement(FAIcon, { icon: faVoteNay }),
22
+ React.createElement("span", null, "Reject"))) : null;
23
+ });
24
+ function onClick() {
25
+ !!action
26
+ ? action()
27
+ : store.reject(context.id);
28
+ }
29
+ };
30
+ export default Reject;
31
+ //# sourceMappingURL=Reject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reject.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkMenu/Reject.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAEH,sBAAsB,GACzB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCA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M,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const Send: (props: {
3
+ /** disabled Button */
4
+ disabled?: boolean | undefined;
5
+ /** function of Click */
6
+ action?: ((context?: any) => void) | undefined;
7
+ }) => JSX.Element;
8
+ export default Send;
@@ -0,0 +1,31 @@
1
+ import { useWork, useWorkStore } from "../../../../data/work";
2
+ import React from "react";
3
+ import { useDocumentMenuContext, } from "@voplus/morpho-document-core";
4
+ import { Button } from "@voplus/antd";
5
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
6
+ import { faFileImport } from "@fortawesome/pro-light-svg-icons";
7
+ import { observe } from "@voplus/morpho-ui";
8
+ import { useApplicationContext } from "@voplus/morpho-data";
9
+ const Send = (props) => {
10
+ const { disabled, action } = props;
11
+ const context = useDocumentMenuContext();
12
+ const { user } = useApplicationContext();
13
+ const store = useWorkStore();
14
+ const document = useWork(context.id, {
15
+ reload: (i) => !i.requester || !i.accepters,
16
+ includes: "requester,accepters"
17
+ });
18
+ return observe(() => {
19
+ var _a;
20
+ return document.workStatus == "Draft" && ((_a = document.requester) === null || _a === void 0 ? void 0 : _a.id) === user.info.id ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
21
+ React.createElement(FAIcon, { icon: faFileImport }),
22
+ React.createElement("span", null, "Send"))) : null;
23
+ });
24
+ function onClick() {
25
+ !!action
26
+ ? action()
27
+ : store.send(context.id);
28
+ }
29
+ };
30
+ export default Send;
31
+ //# sourceMappingURL=Send.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Send.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkMenu/Send.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAC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P,CAAC,CAAC,MAAM,EAAE;YACV,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC3B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const WorkMenu: (props: {
3
+ id: string;
4
+ className?: string;
5
+ closeAside?: boolean;
6
+ }) => JSX.Element;
7
+ export default WorkMenu;
@@ -0,0 +1,27 @@
1
+ import { Access, Delete, Lock, Move, Notifications, OpenReferenceView, Paste, Publish, PublishLock, Unlock, } from "@voplus/morpho-document/es/controls/DocumentMenu/items";
2
+ import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-core";
3
+ import React, { useMemo } from "react";
4
+ import Accept from "./Accept";
5
+ import Reject from "./Reject";
6
+ import Send from "./Send";
7
+ import classnames from "classnames";
8
+ const WorkMenu = (props) => {
9
+ const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
10
+ return (React.createElement("div", { className: classnames("document-menu", props.className) },
11
+ React.createElement(DocumentMenuContext.Provider, { value: context },
12
+ React.createElement(Send, null),
13
+ React.createElement(Accept, null),
14
+ React.createElement(Reject, null),
15
+ React.createElement(Move, null),
16
+ React.createElement(Paste, null),
17
+ React.createElement(Lock, null),
18
+ React.createElement(Unlock, null),
19
+ React.createElement(Publish, null),
20
+ React.createElement(PublishLock, null),
21
+ React.createElement(Access, null),
22
+ React.createElement(Notifications, null),
23
+ React.createElement(OpenReferenceView, null),
24
+ React.createElement(Delete, { closeAside: props.closeAside }))));
25
+ };
26
+ export default WorkMenu;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,MAAM,EACN,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,KAAK,EACL,O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5%),
6
- 12px 0 48px 16px rgb(0 0 0 / 3%) !important;
5
+ box-shadow: 1px 0 3px 0px rgb(0 0 0 / 15%) !important;
7
6
  }
8
7
  .work-context {
9
8
  display: flex;