@voplus/morpho-workspace 1.3.3 → 1.3.5

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 (151) hide show
  1. package/es/data/work/interfaces.d.ts +4 -4
  2. package/es/data/work/metas.d.ts +13 -0
  3. package/es/data/work/metas.js +34 -0
  4. package/es/data/work/metas.js.map +1 -0
  5. package/es/data/workerror/interfaces.d.ts +2 -3
  6. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js +0 -1
  7. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js.map +1 -1
  8. package/es/data/workerror/workerror-events/useOnNewWorkspace.js +0 -1
  9. package/es/data/workerror/workerror-events/useOnNewWorkspace.js.map +1 -1
  10. package/es/data/workspace/interfaces.d.ts +8 -0
  11. package/es/data/workspace/types.d.ts +1 -0
  12. package/es/data/worktype/hook.d.ts +1 -1
  13. package/es/data/worktype/hook.js +3 -3
  14. package/es/data/worktype/hook.js.map +1 -1
  15. package/es/data/worktype/interfaces.d.ts +4 -0
  16. package/es/data/worktype/types.d.ts +1 -0
  17. package/es/modules/board/components/Board/state.js +1 -1
  18. package/es/modules/board/components/Board/state.js.map +1 -1
  19. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +9 -15
  20. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
  21. package/es/modules/tasks/components/SubTaskList/index.js +6 -3
  22. package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
  23. package/es/modules/tasks/components/SubTaskList/state.d.ts +2 -0
  24. package/es/modules/tasks/components/SubTaskList/state.js.map +1 -1
  25. package/es/modules/tasks/components/TaskItem/ChildTaskItem.d.ts +4 -0
  26. package/es/modules/tasks/components/TaskItem/ChildTaskItem.js +18 -0
  27. package/es/modules/tasks/components/TaskItem/ChildTaskItem.js.map +1 -0
  28. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +2 -0
  29. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
  30. package/es/modules/tasks/components/TaskItem/SubTaskItem.js +2 -0
  31. package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
  32. package/es/modules/tasks/controls/ChildTasksDataIcon/index.d.ts +9 -0
  33. package/es/modules/tasks/controls/ChildTasksDataIcon/index.js +19 -0
  34. package/es/modules/tasks/controls/ChildTasksDataIcon/index.js.map +1 -0
  35. package/es/modules/tasks/controls/ChildTasksDataIcon/index.less +29 -0
  36. package/es/modules/work/components/NewWorkErrorDialog/index.js +26 -15
  37. package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -1
  38. package/es/modules/work/components/NewWorkErrorDialog/index.less +1 -1
  39. package/es/modules/work/components/NewWorkErrorDialog/state.d.ts +2 -0
  40. package/es/modules/work/components/NewWorkErrorDialog/state.js +1 -0
  41. package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -1
  42. package/es/modules/work/components/WorkErrorItem/index.js +18 -8
  43. package/es/modules/work/components/WorkErrorItem/index.js.map +1 -1
  44. package/es/modules/work/components/WorkErrorItem/index.less +35 -7
  45. package/es/modules/work/components/WorkErrorList/index.js +7 -5
  46. package/es/modules/work/components/WorkErrorList/index.js.map +1 -1
  47. package/es/modules/work/components/WorkErrorProperties/index.d.ts +6 -0
  48. package/es/modules/work/components/WorkErrorProperties/index.js +57 -0
  49. package/es/modules/work/components/WorkErrorProperties/index.js.map +1 -0
  50. package/es/modules/work/components/WorkErrorProperties/index.less +8 -0
  51. package/es/modules/work/components/WorkErrorProperties/state.d.ts +5 -0
  52. package/es/modules/work/components/WorkErrorProperties/state.js +26 -0
  53. package/es/modules/work/components/WorkErrorProperties/state.js.map +1 -0
  54. package/es/modules/work/components/WorkErrorPropertiesView/index.js +18 -10
  55. package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
  56. package/es/modules/work/components/WorkErrorPropertiesView/index.less +18 -1
  57. package/es/modules/work/components/WorkItem/index.js +1 -1
  58. package/es/modules/work/components/WorkItem/index.js.map +1 -1
  59. package/es/modules/work/components/WorkList/index.d.ts +2 -0
  60. package/es/modules/work/components/WorkList/index.js +13 -2
  61. package/es/modules/work/components/WorkList/index.js.map +1 -1
  62. package/es/modules/work/components/WorkPropertiesView/index.js +1 -1
  63. package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
  64. package/es/modules/work/components/WorkQATab/index.js +9 -7
  65. package/es/modules/work/components/WorkQATab/index.js.map +1 -1
  66. package/es/modules/work/components/WorkQATab/index.less +8 -8
  67. package/es/modules/work/components/WorkTaskList/index.js +8 -6
  68. package/es/modules/work/components/WorkTaskList/index.js.map +1 -1
  69. package/es/modules/work/components/WorkTaskList/index.less +3 -3
  70. package/es/modules/work/components/WorkTasksTab/index.js +4 -2
  71. package/es/modules/work/components/WorkTasksTab/index.js.map +1 -1
  72. package/es/modules/work/components/WorkTasksTab/index.less +2 -2
  73. package/es/modules/work/components/WorksProperties/index.js +4 -6
  74. package/es/modules/work/components/WorksProperties/index.js.map +1 -1
  75. package/es/modules/work/controls/WorkErrorMenu/index.d.ts +14 -0
  76. package/es/modules/work/controls/WorkErrorMenu/index.js +39 -0
  77. package/es/modules/work/controls/WorkErrorMenu/index.js.map +1 -0
  78. package/es/modules/{worktype/controls/ToolBar → work/controls/WorkErrorMenu}/index.less +1 -23
  79. package/es/modules/work/pages/WorkDefaultView/index.d.ts +4 -1
  80. package/es/modules/work/pages/WorkDefaultView/index.js +2 -4
  81. package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -1
  82. package/es/modules/work/pages/WorkListPage/index.js +3 -2
  83. package/es/modules/work/pages/WorkListPage/index.js.map +1 -1
  84. package/es/modules/workspace/components/MyWorkspaces/index.js +12 -7
  85. package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -1
  86. package/es/modules/workspace/components/MyWorkspaces/index.less +2 -2
  87. package/es/modules/workspace/components/WorkspaceCard/index.js +9 -4
  88. package/es/modules/workspace/components/WorkspaceCard/index.js.map +1 -1
  89. package/es/modules/workspace/components/WorkspaceCard/index.less +12 -0
  90. package/es/modules/workspace/components/WorkspaceCardList/index.d.ts +1 -0
  91. package/es/modules/workspace/components/WorkspaceCardList/index.js +8 -8
  92. package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -1
  93. package/es/modules/workspace/components/WorkspacePropertiesView/index.js +1 -1
  94. package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
  95. package/es/modules/workspace/components/WorkspaceTabs/index.js +1 -1
  96. package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -1
  97. package/es/modules/workspace/controls/WorkspaceMenu/index.js +38 -14
  98. package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -1
  99. package/es/modules/workspace/pages/WorkspaceDefaultView/index.d.ts +3 -1
  100. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +2 -4
  101. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
  102. package/es/modules/workspace/pages/WorkspacePage/index.js +60 -43
  103. package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -1
  104. package/es/modules/workspace/pages/WorkspacePage/state.d.ts +12 -6
  105. package/es/modules/workspace/pages/WorkspacePage/state.js +42 -24
  106. package/es/modules/workspace/pages/WorkspacePage/state.js.map +1 -1
  107. package/es/modules/worktype/components/NewTypeForm/index.js +3 -5
  108. package/es/modules/worktype/components/NewTypeForm/index.js.map +1 -1
  109. package/es/modules/worktype/components/NewTypeForm/index.less +5 -2
  110. package/es/modules/worktype/components/RepeatTab/index.d.ts +6 -0
  111. package/es/modules/worktype/components/RepeatTab/index.js +44 -0
  112. package/es/modules/worktype/components/RepeatTab/index.js.map +1 -0
  113. package/es/modules/worktype/components/RepeatTab/index.less +30 -0
  114. package/es/modules/worktype/components/WorkTypeItem/index.js +1 -1
  115. package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -1
  116. package/es/modules/worktype/components/WorkTypeList/index.d.ts +1 -0
  117. package/es/modules/worktype/components/WorkTypeList/index.js +19 -17
  118. package/es/modules/worktype/components/WorkTypeList/index.js.map +1 -1
  119. package/es/modules/worktype/components/WorkTypeList/index.less +7 -0
  120. package/es/modules/worktype/components/WorkTypeProperties/index.js +32 -8
  121. package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
  122. package/es/modules/worktype/components/WorkTypeProperties/index.less +18 -2
  123. package/es/modules/worktype/components/WorkTypeProperties/state.js +0 -1
  124. package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -1
  125. package/es/modules/worktype/components/WorkTypePropertiesView/index.js +1 -1
  126. package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -1
  127. package/es/modules/worktype/components/WorkTypeQA/index.js +31 -34
  128. package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -1
  129. package/es/modules/worktype/components/WorkTypeTabs/index.js +13 -13
  130. package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
  131. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js +10 -2
  132. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +1 -1
  133. package/es/pages/Routes.d.ts +4 -12
  134. package/es/pages/Routes.js +9 -31
  135. package/es/pages/Routes.js.map +1 -1
  136. package/es/pages/Space/components/Tasks/index.js +22 -24
  137. package/es/pages/Space/components/Tasks/index.js.map +1 -1
  138. package/es/pages/Space/pages/MySpace/index.js +7 -7
  139. package/es/pages/Space/pages/MySpace/index.js.map +1 -1
  140. package/es/pages/Space/pages/MySpace/state.d.ts +19 -6
  141. package/es/pages/Space/pages/MySpace/state.js +150 -56
  142. package/es/pages/Space/pages/MySpace/state.js.map +1 -1
  143. package/es/pages/WorkType/WorkTypeSelect/index.js +5 -1
  144. package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
  145. package/package.json +1 -1
  146. package/es/modules/worktype/controls/ToolBar/index.d.ts +0 -10
  147. package/es/modules/worktype/controls/ToolBar/index.js +0 -20
  148. package/es/modules/worktype/controls/ToolBar/index.js.map +0 -1
  149. package/es/modules/worktype/controls/ToolBar/state.d.ts +0 -36
  150. package/es/modules/worktype/controls/ToolBar/state.js +0 -57
  151. package/es/modules/worktype/controls/ToolBar/state.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAqB,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEvF,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAEtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,QAAQ,GAAG,CAAC,KAcjB,EAAE,EAAE;IACJ,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC1B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC7C,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;KACtC,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,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esView = (props) => {
26
26
  }
27
27
  } },
28
28
  React.createElement(Reload, { action: onReload }),
29
- React.createElement(Open, { url: `/work/${id}` }))), descriptionVisible: false }),
29
+ React.createElement(Open, { url: meta.getRoute(work) }))), descriptionVisible: false }),
30
30
  React.createElement(DescriptionEditor, { id: id, description: work.description, readonly: work.readonly }),
31
31
  React.createElement(WorkTabs, { id: id, propertie: true }))))));
32
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,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AACnF,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,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,yBAAyB,CAAC;AAEvD,MAAM,kBAAkB,GAAG,CAAC,KAAwC,EAAE,EAAE;IACpE,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IAEpB,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAE5C,MAAM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,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,IAAI,EACT,YAAY,EAAE,KAAK,EACnB,iBAAiB,EAAC,MAAM,EACxB,eAAe,EAAC,MAAM,EACtB,YAAY,QACZ,SAAS,EAAC,6BAA6B,EACvC,KAAK,EACD,6BAAK,SAAS,EAAC,WAAW;gBACtB,oBAAC,OAAO,IACJ,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;wBACP,UAAU,EAAE,IAAI;wBAChB,KAAK,EAAE;4BACH,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI;yBAChC;qBACJ;oBACD,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;oBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI,CAC5B,CACR,EAEV,kBAAkB,EAAE,KAAK,GAC3B;QACF,oBAAC,iBAAiB,IACd,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACzB;QACF,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,SAAG,CACjB,CACpB,CACC,CACT,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QACb,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACZ,SAAS,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,EAAE,GAAG,CAAC,CAAC;IACZ,CAAC;AACL,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
@@ -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,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,kBAAkB,MAAM,8CAA8C,CAAC;AAC9E,OAAO,aAAa,MAAM,kB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,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,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":["../../../../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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,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AsB,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,gBAAgB;QAC3B,oBAAC,UAAU,IAAC,QAAQ;YAChB,oBAAC,YAAY,IACT,QAAQ,EAAE,EAAE,EACZ,KAAK,EAAC,UAAU,EAChB,KAAK,QACL,WAAW,EAAE,WAAW,GAC1B;YACF,oBAAC,YAAY,IACT,QAAQ,EAAE,EAAE,EACZ,KAAK,EAAC,WAAW,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
  }
@@ -4,25 +4,23 @@ import { Form } from "@voplus/antd";
4
4
  import React from "react";
5
5
  import moment from "moment";
6
6
  import { observe } from "@voplus/morpho-ui";
7
- import { useApplicationContext } from "@voplus/morpho-data";
8
7
  import { useWork } from "../../../../data/work";
9
8
  const WorksProperties = (props) => {
10
9
  const work = useWork(props.id);
11
- const { user } = useApplicationContext();
12
10
  const noData = (React.createElement("span", { className: "no-data" }, "no data"));
13
11
  return observe(() => {
14
12
  var _a, _b;
15
13
  return (React.createElement("div", { className: "work-roperties" },
16
14
  React.createElement("h2", null, (_a = work.workType) === null || _a === void 0 ? void 0 : _a.name),
17
15
  React.createElement(Form, { labelAlign: "left", labelCol: { span: 8 }, scrollToFirstError: true },
18
- React.createElement(Form.Item, { label: "No" }, work.no || noData),
16
+ React.createElement(Form.Item, { label: "No" }, work.number || noData),
19
17
  React.createElement(Form.Item, { label: "Type" }, work.type || noData),
20
- React.createElement(Form.Item, { label: "Status" }, work.status || noData),
18
+ React.createElement(Form.Item, { label: "Status" }, work.workStatus || noData),
21
19
  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),
20
+ React.createElement(Form.Item, { label: "Folder" }, ((_b = work.document) === null || _b === void 0 ? void 0 : _b.name) || noData),
23
21
  React.createElement(Form.Item, { label: "Due" }, work.due ? moment(work.due).format("DD MMM yyyy") : noData),
24
22
  React.createElement(Form.Item, { label: "Owner" },
25
- React.createElement(AvatarList, { editable: false })))));
23
+ React.createElement(AvatarList, { list: work.owners || [], editable: false })))));
26
24
  });
27
25
  };
28
26
  export default WorksProperties;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,MAAM,eAAe,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9C,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAE/B,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACz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0CAAE,IAAI,KAAI,MAAM,CACtB;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,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,GAAI,CAChD,CACT,CACL,CACT,CAAA;KAAA,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkErrorMenu: {
4
+ (props: {
5
+ id: string;
6
+ className?: string;
7
+ closeAside?: boolean;
8
+ size: "small" | "middle" | "large" | undefined;
9
+ }): JSX.Element;
10
+ defaultProps: {
11
+ size: string;
12
+ };
13
+ };
14
+ export default WorkErrorMenu;
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ import { Button, Dropdown, Modal } from "@voplus/antd";
3
+ import { useWorkErrorStore } from "../../../../data/workerror";
4
+ import { faTrashAlt } from "@fortawesome/pro-light-svg-icons";
5
+ import { observe, useAsideContentContext } from "@voplus/morpho-ui";
6
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
7
+ import { MoreOutlined } from "@ant-design/icons";
8
+ // import PermissionModal from "@voplus/morpho-org/es/controls/PermissionModal";
9
+ // 用于操作权限
10
+ import classnames from "classnames";
11
+ import "./index.less";
12
+ const WorkErrorMenu = (props) => {
13
+ const store = useWorkErrorStore();
14
+ const asideContext = useAsideContentContext();
15
+ return observe(() => (React.createElement(Dropdown, { placement: "bottomRight", overlay: React.createElement("div", { className: classnames("workError-menu", props.className) },
16
+ React.createElement(Button, { type: "link", onClick: onClick },
17
+ React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d" }),
18
+ React.createElement("span", { className: "delete" }, "Delete"))) },
19
+ React.createElement(Button, { size: props.size, shape: "circle" },
20
+ React.createElement(MoreOutlined, null)))));
21
+ function onClick() {
22
+ /** 如果文件下有子文件, 询问是否删除所有子文件 */
23
+ Modal.confirm({
24
+ title: "Do you want to delete this item?",
25
+ async onOk() {
26
+ await store.delete([props.id], { DeleteChilds: true });
27
+ /** 删除后是否关闭Aside */
28
+ if (!!props.closeAside && (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent))
29
+ asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside();
30
+ return;
31
+ },
32
+ });
33
+ }
34
+ };
35
+ WorkErrorMenu.defaultProps = {
36
+ size: "small",
37
+ };
38
+ export default WorkErrorMenu;
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkErrorMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAA4B,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,UAAU,EAAwC,MAAM,kCAAkC,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,gFAAgF;AAChF,SAAS;AACT,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,aAAa,GAAG,CAAC,KAKtB,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,iBAAiB,EAAE,CA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wrapper {
7
- margin: 0 5px;
8
- & + .ant-tooltip-disabled-compatible-wrapper {
9
- margin-left: 0;
10
- }
11
- }
12
- .archive-btn {
13
- background: #fff;
14
- border-color: #faad14;
15
- color: #faad14;
16
- }
17
- .archive-btn:active,
18
- .archive-btn.active,
19
- .archive-btn:hover {
20
- background-color: #faad14;
21
- color: #fff;
22
- }
23
- }
24
- .tool-bar-menu {
2
+ .workError-menu {
25
3
  padding: 4px 0;
26
4
  list-style-type: none;
27
5
  background-color: #fff;
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import "./index.less";
3
- declare const WorkDefaultView: () => JSX.Element;
3
+ /** The Work Page component with router parameters support. */
4
+ declare const WorkDefaultView: ({ id }: {
5
+ id: string;
6
+ }) => JSX.Element;
4
7
  export default WorkDefaultView;
@@ -1,16 +1,14 @@
1
1
  import "./index.less";
2
2
  import React, { useState } from "react";
3
3
  import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
4
- import { useRouteMatch } from "react-router";
5
4
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
6
5
  import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
7
6
  import WorkTabs from "../../components/WorkTabs";
8
7
  import WorksProperties from "../../components/WorksProperties";
9
8
  import { observe } from "@voplus/morpho-ui";
10
9
  import { useWorkStore } from "../../../../data/work";
11
- const WorkDefaultView = () => {
12
- const match = useRouteMatch();
13
- const id = match.params.id;
10
+ /** The Work Page component with router parameters support. */
11
+ const WorkDefaultView = ({ id }) => {
14
12
  const store = new TabItemStore({ url: "" });
15
13
  const [asideContext] = useState(AsideContent.createContext());
16
14
  const workStore = useWorkStore();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,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8
  const match = useRouteMatch();
9
9
  const layout = useLayout();
10
- return observe(() => React.createElement(WorkList, { status: match.params.status, active: match.params.active, onClickItem: (item) => {
11
- layout.history.push(generatePath(match.path, { status: match.params.status, active: item.id }));
10
+ return observe(() => React.createElement(WorkList, { status: match.params.status, active: match.params.active, typesId: match.params.typesId, onClickItem: (item) => {
11
+ layout.history.push(generatePath(match.path, { id: match.params.id, status: match.params.status, typesId: match.params.typesId, active: item.id }));
12
12
  }, onTotal: (total) => {
13
13
  runInAction(() => {
14
14
  props.state.workStatusTotals[match.params.status] = total;
15
+ props.state.workTypesTotals[match.params.typesId] = total;
15
16
  });
16
17
  } }));
17
18
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkListPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,YAAY,GAAG,CAAC,KAAuB,EAAE,EAAE;IAChD,MAAM,KAAK,GAAG,aAAa,EAAuC,CAAC;IACnE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAG3B,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,oBAAC,QAAQ,IACR,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAC3B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAC3B,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,MAAM,CAAC,OAAO,CAAC,IAAI,CAClB,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,K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,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAC9H,CAAC;QACH,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,WAAW,CAAC,GAAG,EAAE;gBAChB,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAO,CAAC,GAAG,KAAK,CAAC;gBAC3D,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,OAAQ,CAAC,GAAG,KAAK,CAAC;YAC5D,CAAC,CAAC,CAAC;QACJ,CAAC,GACA,CACF,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -2,6 +2,7 @@ import "./index.less";
2
2
  import React, { useState } from "react";
3
3
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
4
4
  import NewWorkspaceDialog from "../NewWorkspaceDialog";
5
+ import { Scrollbars } from "react-custom-scrollbars";
5
6
  import { Typography } from "@voplus/antd";
6
7
  import WorkspaceCardList from "../WorkspaceCardList";
7
8
  import WorkspacePropertiesView from "../WorkspacePropertiesView";
@@ -12,13 +13,17 @@ const MyWorkspaces = (props) => {
12
13
  const [visible, setVisible] = useState(false);
13
14
  return observe(() => (React.createElement(AsideContent, { context: asideContext },
14
15
  React.createElement("div", { className: "my-workSpaces" },
15
- React.createElement("div", { className: "workspace-list" },
16
- React.createElement(Title, { level: 3 }, "My WorkSpaces"),
17
- React.createElement(WorkspaceCardList, { roles: true, addCard: true, onItemClick: onItemClick })),
18
- React.createElement("div", { className: "workspace-list" },
19
- React.createElement(Title, { level: 3 }, "Worksapce I have access"),
20
- React.createElement(WorkspaceCardList, { onItemClick: onItemClick })),
21
- visible && (React.createElement(NewWorkspaceDialog, { onCancel: () => setVisible(false), onSubmitSave: () => setVisible(false) }))))));
16
+ React.createElement(Scrollbars, { autoHide: true },
17
+ React.createElement("div", { className: "workspace-list" },
18
+ React.createElement(Title, { level: 3 }, "My WorkSpaces"),
19
+ React.createElement(WorkspaceCardList, { roles: true, addCard: true, onItemClick: onItemClick })),
20
+ React.createElement("div", { className: "workspace-list" },
21
+ React.createElement(Title, { level: 3 }, "Worksapce I have access"),
22
+ React.createElement(WorkspaceCardList, { onItemClick: onItemClick })),
23
+ React.createElement("div", { className: "workspace-list" },
24
+ React.createElement(Title, { level: 3 }, "Disabled Workspaces"),
25
+ React.createElement(WorkspaceCardList, { WorkspaceStatus: "Disabled", onItemClick: onItemClick })),
26
+ visible && (React.createElement(NewWorkspaceDialog, { onCancel: () => setVisible(false), onSubmitSave: () => setVisible(false) })))))));
22
27
  function onItemClick(item) {
23
28
  var _a;
24
29
  if (item.id !== "0") {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/MyWorkspaces/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAE/E,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC;AAE7B,MAAM,YAAY,GAAG,CAAC,KAMrB,EAAE,EAAE;IACJ,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAC9D,MAAM,CAAC,OAAO,EAAE,UAAU,CA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rE;gBACL,OAAO,IAAI,CACX,oBAAC,kBAAkB,IAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACjC,YAAY,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GACpC,CACF,CACW,CACR,CACQ,CACf,CAAC,CAAC;IAEH,SAAS,WAAW,CAAC,IAAgB;;QACpC,IAAI,IAAI,CAAC,EAAE,KAAK,GAAG,EAAE;YACpB,YAAY,CAAC,SAAS,CAAC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SAC/E;aAAM;YACN,UAAU,CAAC,IAAI,CAAC,CAAC;SACjB;QACD,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,CAAC;IAC3B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -3,8 +3,8 @@
3
3
  :global {
4
4
  .my-workSpaces {
5
5
  height: 100%;
6
- display: flex;
7
- flex-direction: column;
6
+ // display: flex;
7
+ // flex-direction: column;
8
8
  .workspace-list {
9
9
  flex: 1;
10
10
  display: flex;
@@ -1,5 +1,6 @@
1
1
  import "./index.less";
2
2
  import { faAcorn, faPlus } from "@fortawesome/pro-light-svg-icons";
3
+ import { Badge } from "@voplus/antd";
3
4
  import Card from "@voplus/morpho-ui/es/controls/Card";
4
5
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
5
6
  import React from "react";
@@ -9,10 +10,14 @@ import { useWorkspace } from "../../../../data/workspace";
9
10
  const WorkspaceCard = (props) => {
10
11
  const { id, active } = props;
11
12
  const workspace = useWorkspace(id, { reload: false });
12
- return observe(() => React.createElement(Card, { className: classnames("workspace-card", { active: active }), padding: "15px 12px", shadow: false, hoverShadow: false },
13
- React.createElement("div", { className: classnames("workspaces-icon", { "new-workspace-icon": !id }) },
14
- React.createElement(FAIcon, { icon: id ? faAcorn : faPlus })),
15
- React.createElement("div", { className: "workspaces-name" }, (workspace === null || workspace === void 0 ? void 0 : workspace.name) || "New WorkSpace")));
13
+ return observe(() => {
14
+ var _a;
15
+ return React.createElement(Card, { className: classnames("workspace-card", { active: active }), padding: "15px 12px", shadow: false, hoverShadow: false },
16
+ React.createElement(Badge, { count: (_a = workspace === null || workspace === void 0 ? void 0 : workspace.stats) === null || _a === void 0 ? void 0 : _a.activeWorks, className: "site-badge-count" }),
17
+ React.createElement("div", { className: classnames("workspaces-icon", { "new-workspace-icon": !id }) },
18
+ React.createElement(FAIcon, { icon: id ? faAcorn : faPlus })),
19
+ React.createElement("div", { className: "workspaces-name" }, (workspace === null || workspace === void 0 ? void 0 : workspace.name) || "New WorkSpace"));
20
+ });
16
21
  };
17
22
  export default WorkspaceCard;
18
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspaceCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,aAAa,GAAG,CAAC,KAItB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC7B,MAAM,SAAS,GAAG,YAAY,CAAC,EAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAEvD,OAAO,OA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AM,EAAE,KAAK,EAAE,CAAC,CAAC;IAEvD,OAAO,OAAO,CAAC,GAAG,EAAE;;QACnB,OAAA,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAE3D,OAAO,EAAC,WAAW,EACnB,MAAM,EAAE,KAAK,EACb,WAAW,EAAE,KAAK;YAElB,oBAAC,KAAK,IAAC,KAAK,EAAE,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,0CAAE,WAAW,EAAE,SAAS,EAAC,kBAAkB,GAAG;YAC5E,6BAAK,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,EAAE,oBAAoB,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3E,oBAAC,MAAM,IAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,GAAI,CAClC;YACN,6BAAK,SAAS,EAAC,iBAAiB,IAC9B,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,KAAI,eAAe,CAC9B,CACC,CAAA;KAAA,CACR,CAAA;AACF,CAAC,CAAA;AAED,eAAe,aAAa,CAAC"}
@@ -7,12 +7,24 @@
7
7
  border-radius: 15px;
8
8
  padding: 15px 8px;
9
9
  background: transparent;
10
+ position: relative;
10
11
  &.active {
11
12
  background: #dedbdb57;
12
13
  }
13
14
  &:hover {
14
15
  background: #dedbdb57;
15
16
  }
17
+ .site-badge-count {
18
+ position: absolute;
19
+ vertical-align: middle;
20
+ right: 10px;
21
+ top: 10px;
22
+ .ant-badge-count {
23
+ background-color: #fff;
24
+ color: #999;
25
+ box-shadow: 0 0 0 1px #d9d9d9 inset;
26
+ }
27
+ }
16
28
  .workspaces-icon {
17
29
  width: 80px;
18
30
  height: 80px;
@@ -5,6 +5,7 @@ import { IWorkspace } from "../../../../data/workspace";
5
5
  declare const WorkspaceCardList: (props: {
6
6
  /** filter roles */
7
7
  roles?: boolean | undefined;
8
+ WorkspaceStatus?: string | undefined;
8
9
  /** 显示add card */
9
10
  addCard?: boolean | undefined;
10
11
  /** item onclick */
@@ -2,7 +2,6 @@ import "./index.less";
2
2
  import { useWorkspaceListEffect } from "../../../../data/workspace";
3
3
  import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
4
4
  import React, { useState } from "react";
5
- import InfiniteScrollView from "@voplus/morpho-ui/es/controls/InfiniteScrollView";
6
5
  import WorkspaceCard from "../WorkspaceCard";
7
6
  import { observe } from "@voplus/morpho-ui";
8
7
  import { useApplicationContext } from "@voplus/morpho-data";
@@ -16,14 +15,16 @@ const WorkspaceCardList = (props) => {
16
15
  const list = useCreateListDataState({
17
16
  filterDefaults: {
18
17
  filters: props.roles
19
- ? [{ c: "Roles", o: "contains", l: "And", v1: 'Member' }]
20
- : [],
18
+ ? [{ c: "Roles", o: "contains", l: "And", v1: JSON.stringify(["Member"]) }]
19
+ : props.WorkspaceStatus
20
+ ? [{ c: "WorkspaceStatus", o: "=", l: "And", v1: props.WorkspaceStatus }]
21
+ : [],
22
+ page: { Page: 1, PageSize: 200 },
21
23
  },
22
- }, [props.roles]);
24
+ }, [props.roles, props.WorkspaceStatus]);
23
25
  if (props.addCard) {
24
26
  list.insert({ id: "0", name: "" }, 0);
25
27
  }
26
- ;
27
28
  /** 如果 list.filters.options变更了就重渲染,使下一行的useWorkspaceListEffect 可以接收新参数*/
28
29
  useRenderOnChange(() => list.filters.options);
29
30
  /** 把ListDataState传给useWorkspaceListEffect,使之可以自動更新loading, hasmore. */
@@ -32,9 +33,8 @@ const WorkspaceCardList = (props) => {
32
33
  useAutoUpdateListData(list, (d) => true);
33
34
  return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
34
35
  React.createElement("div", { className: "workspace-list-view" },
35
- React.createElement(InfiniteScrollView, { empty: list.isEmpty, loading: list.loading, hasMore: list.hasMore, loadMore: loadMore },
36
- React.createElement("div", { className: "workspace-card-list" }, list.data.map((i) => (React.createElement("div", { key: i.id, onClick: () => onItemClick(i) },
37
- React.createElement(WorkspaceCard, { id: i.id === "0" ? "" : i.id, active: active === i.id }))))))))));
36
+ React.createElement("div", { className: "workspace-card-list" }, list.data.map((i) => (React.createElement("div", { key: i.id, onClick: () => onItemClick(i) },
37
+ React.createElement(WorkspaceCard, { id: i.id === "0" ? "" : i.id, active: active === i.id })))))))));
38
38
  function loadMore() {
39
39
  list.triggerNextPage();
40
40
  }