@voplus/morpho-workspace 1.3.0 → 1.3.2

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 (325) hide show
  1. package/es/controls/filters/WorkStatusFilter/index.d.ts +3 -0
  2. package/es/controls/filters/WorkStatusFilter/index.js +21 -0
  3. package/es/controls/filters/WorkStatusFilter/index.js.map +1 -0
  4. package/es/controls/filters/WorkStatusFilter/state.d.ts +17 -0
  5. package/es/controls/filters/WorkStatusFilter/state.js +49 -0
  6. package/es/controls/filters/WorkStatusFilter/state.js.map +1 -0
  7. package/es/data/notification/interfaces.d.ts +2 -1
  8. package/es/data/work/WorkStore.d.ts +10 -0
  9. package/es/data/work/WorkStore.js +21 -0
  10. package/es/data/work/WorkStore.js.map +1 -0
  11. package/es/data/work/hook.d.ts +9 -0
  12. package/es/data/work/hook.js +20 -0
  13. package/es/data/work/hook.js.map +1 -0
  14. package/es/data/work/index.d.ts +3 -0
  15. package/es/data/work/index.js +4 -0
  16. package/es/data/work/index.js.map +1 -0
  17. package/es/data/work/interfaces.d.ts +37 -0
  18. package/es/data/work/interfaces.js +2 -0
  19. package/es/data/work/interfaces.js.map +1 -0
  20. package/es/data/workerror/WorkErrorStore.d.ts +37 -0
  21. package/es/data/workerror/WorkErrorStore.js +117 -0
  22. package/es/data/workerror/WorkErrorStore.js.map +1 -0
  23. package/es/data/workerror/hook.d.ts +9 -0
  24. package/es/data/workerror/hook.js +19 -0
  25. package/es/data/workerror/hook.js.map +1 -0
  26. package/es/data/workerror/index.d.ts +4 -0
  27. package/es/data/workerror/index.js +5 -0
  28. package/es/data/workerror/index.js.map +1 -0
  29. package/es/data/workerror/interfaces.d.ts +20 -0
  30. package/es/data/workerror/interfaces.js +2 -0
  31. package/es/data/workerror/interfaces.js.map +1 -0
  32. package/es/data/workerror/types.d.ts +50 -0
  33. package/es/data/workerror/types.js +9 -0
  34. package/es/data/workerror/types.js.map +1 -0
  35. package/es/data/workerror/workerror-events/index.d.ts +3 -0
  36. package/es/data/workerror/workerror-events/index.js +4 -0
  37. package/es/data/workerror/workerror-events/index.js.map +1 -0
  38. package/es/data/workerror/workerror-events/useAutoUpdateListData.d.ts +4 -0
  39. package/es/data/workerror/workerror-events/useAutoUpdateListData.js +13 -0
  40. package/es/data/workerror/workerror-events/useAutoUpdateListData.js.map +1 -0
  41. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.d.ts +4 -0
  42. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js +17 -0
  43. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js.map +1 -0
  44. package/es/data/workerror/workerror-events/useOnNewWorkspace.d.ts +4 -0
  45. package/es/data/workerror/workerror-events/useOnNewWorkspace.js +17 -0
  46. package/es/data/workerror/workerror-events/useOnNewWorkspace.js.map +1 -0
  47. package/es/data/workspace/WorkSpaceStore.d.ts +39 -0
  48. package/es/data/workspace/WorkSpaceStore.js +134 -0
  49. package/es/data/workspace/WorkSpaceStore.js.map +1 -0
  50. package/es/data/workspace/hooks.d.ts +13 -0
  51. package/es/data/workspace/hooks.js +23 -0
  52. package/es/data/workspace/hooks.js.map +1 -0
  53. package/es/data/workspace/index.d.ts +4 -0
  54. package/es/data/workspace/index.js +5 -0
  55. package/es/data/workspace/index.js.map +1 -0
  56. package/es/data/workspace/interfaces.d.ts +17 -0
  57. package/es/data/workspace/interfaces.js +2 -0
  58. package/es/data/workspace/interfaces.js.map +1 -0
  59. package/es/data/workspace/types.d.ts +28 -0
  60. package/es/data/workspace/types.js +2 -0
  61. package/es/data/workspace/types.js.map +1 -0
  62. package/es/data/workspace/useWorkSpaceCompletedWorkEffect.d.ts +10 -0
  63. package/es/data/workspace/useWorkSpaceCompletedWorkEffect.js +14 -0
  64. package/es/data/workspace/useWorkSpaceCompletedWorkEffect.js.map +1 -0
  65. package/es/data/workspace/workspace-events/index.d.ts +3 -0
  66. package/es/data/workspace/workspace-events/index.js +4 -0
  67. package/es/data/workspace/workspace-events/index.js.map +1 -0
  68. package/es/data/workspace/workspace-events/useAutoUpdateListData.d.ts +4 -0
  69. package/es/data/workspace/workspace-events/useAutoUpdateListData.js +13 -0
  70. package/es/data/workspace/workspace-events/useAutoUpdateListData.js.map +1 -0
  71. package/es/data/workspace/workspace-events/useOnDeleteWorkspace.d.ts +4 -0
  72. package/es/data/workspace/workspace-events/useOnDeleteWorkspace.js +17 -0
  73. package/es/data/workspace/workspace-events/useOnDeleteWorkspace.js.map +1 -0
  74. package/es/data/workspace/workspace-events/useOnNewWorkspace.d.ts +4 -0
  75. package/es/data/workspace/workspace-events/useOnNewWorkspace.js +17 -0
  76. package/es/data/workspace/workspace-events/useOnNewWorkspace.js.map +1 -0
  77. package/es/data/worktype/WorkTypeStore.d.ts +21 -0
  78. package/es/data/worktype/WorkTypeStore.js +75 -0
  79. package/es/data/worktype/WorkTypeStore.js.map +1 -0
  80. package/es/data/worktype/hook.d.ts +9 -0
  81. package/es/data/worktype/hook.js +20 -0
  82. package/es/data/worktype/hook.js.map +1 -0
  83. package/es/data/worktype/index.d.ts +4 -0
  84. package/es/data/worktype/index.js +5 -0
  85. package/es/data/worktype/index.js.map +1 -0
  86. package/es/data/worktype/interfaces.d.ts +57 -0
  87. package/es/data/worktype/interfaces.js +2 -0
  88. package/es/data/worktype/interfaces.js.map +1 -0
  89. package/es/data/worktype/types.d.ts +55 -0
  90. package/es/data/worktype/types.js +2 -0
  91. package/es/data/worktype/types.js.map +1 -0
  92. package/es/data/worktype/useWorkTypeCompletedWorkEffect.d.ts +10 -0
  93. package/es/data/worktype/useWorkTypeCompletedWorkEffect.js +14 -0
  94. package/es/data/worktype/useWorkTypeCompletedWorkEffect.js.map +1 -0
  95. package/es/modules/board/components/Board/index.js +1 -3
  96. package/es/modules/board/components/Board/index.js.map +1 -1
  97. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +2 -2
  98. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
  99. package/es/modules/meeting/components/MeetingList/index.js +1 -2
  100. package/es/modules/meeting/components/MeetingList/index.js.map +1 -1
  101. package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.d.ts +2 -2
  102. package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.js +3 -3
  103. package/es/modules/notification/components/DocumentNotificationCard/index.js.map +1 -0
  104. package/es/modules/notification/components/NotificationList/index.js +2 -2
  105. package/es/modules/notification/components/NotificationList/index.js.map +1 -1
  106. package/es/modules/notification/components/NotificationList/index.less +11 -3
  107. package/es/modules/tasks/reports/TaskSummaryCard/index.js +2 -2
  108. package/es/modules/tasks/reports/TaskSummaryCard/index.js.map +1 -1
  109. package/es/modules/work/components/NewWorkErrorDialog/index.d.ts +9 -0
  110. package/es/modules/work/components/NewWorkErrorDialog/index.js +70 -0
  111. package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -0
  112. package/es/modules/work/components/NewWorkErrorDialog/index.less +18 -0
  113. package/es/modules/work/components/NewWorkErrorDialog/state.d.ts +16 -0
  114. package/es/modules/work/components/NewWorkErrorDialog/state.js +37 -0
  115. package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -0
  116. package/es/modules/work/components/RejectWorkDialog/index.d.ts +9 -0
  117. package/es/modules/work/components/RejectWorkDialog/index.js +54 -0
  118. package/es/modules/work/components/RejectWorkDialog/index.js.map +1 -0
  119. package/es/modules/work/components/RejectWorkDialog/index.less +18 -0
  120. package/es/modules/work/components/RejectWorkDialog/state.d.ts +12 -0
  121. package/es/modules/work/components/RejectWorkDialog/state.js +35 -0
  122. package/es/modules/work/components/RejectWorkDialog/state.js.map +1 -0
  123. package/es/modules/work/components/WorkErrorItem/index.d.ts +6 -0
  124. package/es/modules/work/components/WorkErrorItem/index.js +24 -0
  125. package/es/modules/work/components/WorkErrorItem/index.js.map +1 -0
  126. package/es/modules/work/components/WorkErrorItem/index.less +26 -0
  127. package/es/modules/work/components/WorkErrorList/index.d.ts +8 -0
  128. package/es/modules/work/components/WorkErrorList/index.js +44 -0
  129. package/es/modules/work/components/WorkErrorList/index.js.map +1 -0
  130. package/es/modules/work/components/WorkErrorList/index.less +5 -0
  131. package/es/modules/work/components/WorkErrorPropertiesView/index.d.ts +6 -0
  132. package/es/modules/work/components/WorkErrorPropertiesView/index.js +45 -0
  133. package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -0
  134. package/es/modules/work/components/WorkErrorPropertiesView/index.less +22 -0
  135. package/es/modules/work/components/WorkItem/index.d.ts +11 -0
  136. package/es/modules/work/components/WorkItem/index.js +25 -0
  137. package/es/modules/work/components/WorkItem/index.js.map +1 -0
  138. package/es/modules/work/components/WorkItem/index.less +17 -0
  139. package/es/modules/work/components/WorkList/index.d.ts +16 -0
  140. package/es/modules/work/components/WorkList/index.js +88 -0
  141. package/es/modules/work/components/WorkList/index.js.map +1 -0
  142. package/es/modules/work/components/WorkList/index.less +7 -0
  143. package/es/modules/work/components/WorkPropertiesView/index.d.ts +7 -0
  144. package/es/modules/work/components/WorkPropertiesView/index.js +35 -0
  145. package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -0
  146. package/es/modules/work/components/WorkPropertiesView/index.less +23 -0
  147. package/es/{pages/Space/components/Documents → modules/work/components/WorkQATab}/index.d.ts +2 -2
  148. package/es/modules/work/components/WorkQATab/index.js +33 -0
  149. package/es/modules/work/components/WorkQATab/index.js.map +1 -0
  150. package/es/modules/work/components/WorkQATab/index.less +24 -0
  151. package/es/modules/work/components/WorkTabs/index.d.ts +7 -0
  152. package/es/modules/work/components/WorkTabs/index.js +45 -0
  153. package/es/modules/work/components/WorkTabs/index.js.map +1 -0
  154. package/es/modules/work/components/WorkTabs/index.less +16 -0
  155. package/es/modules/work/components/WorkTaskList/index.d.ts +5 -0
  156. package/es/modules/work/components/WorkTaskList/index.js +65 -0
  157. package/es/modules/work/components/WorkTaskList/index.js.map +1 -0
  158. package/es/modules/work/components/WorkTaskList/index.less +18 -0
  159. package/es/modules/work/components/WorkTaskList/state.d.ts +14 -0
  160. package/es/modules/work/components/WorkTaskList/state.js +23 -0
  161. package/es/modules/work/components/WorkTaskList/state.js.map +1 -0
  162. package/es/modules/work/components/WorkTasksTab/index.d.ts +6 -0
  163. package/es/modules/work/components/WorkTasksTab/index.js +17 -0
  164. package/es/modules/work/components/WorkTasksTab/index.js.map +1 -0
  165. package/es/modules/work/components/WorkTasksTab/index.less +7 -0
  166. package/es/modules/work/components/WorksProperties/index.d.ts +6 -0
  167. package/es/modules/work/components/WorksProperties/index.js +27 -0
  168. package/es/modules/work/components/WorksProperties/index.js.map +1 -0
  169. package/es/modules/work/components/WorksProperties/index.less +8 -0
  170. package/es/modules/work/pages/WorkDefaultView/index.d.ts +4 -0
  171. package/es/modules/work/pages/WorkDefaultView/index.js +26 -0
  172. package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -0
  173. package/es/modules/work/pages/WorkDefaultView/index.less +17 -0
  174. package/es/modules/work/pages/WorkListPage/index.d.ts +6 -0
  175. package/es/modules/work/pages/WorkListPage/index.js +19 -0
  176. package/es/modules/work/pages/WorkListPage/index.js.map +1 -0
  177. package/es/modules/workspace/components/MyWorkspaces/index.d.ts +11 -0
  178. package/es/modules/workspace/components/MyWorkspaces/index.js +34 -0
  179. package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -0
  180. package/es/modules/workspace/components/MyWorkspaces/index.less +18 -0
  181. package/es/modules/workspace/components/NewWorkspaceDialog/index.d.ts +10 -0
  182. package/es/modules/workspace/components/NewWorkspaceDialog/index.js +59 -0
  183. package/es/modules/workspace/components/NewWorkspaceDialog/index.js.map +1 -0
  184. package/es/modules/workspace/components/NewWorkspaceDialog/index.less +18 -0
  185. package/es/modules/workspace/components/NewWorkspaceDialog/state.d.ts +12 -0
  186. package/es/modules/workspace/components/NewWorkspaceDialog/state.js +35 -0
  187. package/es/modules/workspace/components/NewWorkspaceDialog/state.js.map +1 -0
  188. package/es/modules/workspace/components/WorkspaceCard/index.d.ts +8 -0
  189. package/es/modules/workspace/components/WorkspaceCard/index.js +18 -0
  190. package/es/modules/workspace/components/WorkspaceCard/index.js.map +1 -0
  191. package/es/modules/workspace/components/WorkspaceCard/index.less +47 -0
  192. package/es/modules/workspace/components/WorkspaceCardList/index.d.ts +13 -0
  193. package/es/modules/workspace/components/WorkspaceCardList/index.js +49 -0
  194. package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -0
  195. package/es/modules/workspace/components/WorkspaceCardList/index.less +13 -0
  196. package/es/modules/workspace/components/WorkspacePropertiesView/index.d.ts +6 -0
  197. package/es/modules/workspace/components/WorkspacePropertiesView/index.js +41 -0
  198. package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -0
  199. package/es/modules/workspace/components/WorkspacePropertiesView/index.less +19 -0
  200. package/es/modules/workspace/components/WorkspacePropertiesView/state.d.ts +15 -0
  201. package/es/modules/workspace/components/WorkspacePropertiesView/state.js +68 -0
  202. package/es/modules/workspace/components/WorkspacePropertiesView/state.js.map +1 -0
  203. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.d.ts +6 -0
  204. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js +68 -0
  205. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js.map +1 -0
  206. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.less +8 -0
  207. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.d.ts +5 -0
  208. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.js +26 -0
  209. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.js.map +1 -0
  210. package/es/modules/workspace/controls/WorkspaceMenu/index.d.ts +8 -0
  211. package/es/modules/workspace/controls/WorkspaceMenu/index.js +36 -0
  212. package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -0
  213. package/es/modules/workspace/controls/WorkspaceMenu/index.less +33 -0
  214. package/es/modules/workspace/pages/WorkspaceDefaultView/index.d.ts +4 -0
  215. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +51 -0
  216. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -0
  217. package/es/modules/workspace/pages/WorkspaceDefaultView/index.less +22 -0
  218. package/es/modules/workspace/pages/WorkspaceDefaultView/state.d.ts +15 -0
  219. package/es/modules/workspace/pages/WorkspaceDefaultView/state.js +68 -0
  220. package/es/modules/workspace/pages/WorkspaceDefaultView/state.js.map +1 -0
  221. package/es/modules/workspace/pages/WorkspacePage/index.d.ts +4 -0
  222. package/es/modules/workspace/pages/WorkspacePage/index.js +73 -0
  223. package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -0
  224. package/es/modules/workspace/pages/WorkspacePage/index.less +1 -0
  225. package/es/modules/workspace/pages/WorkspacePage/state.d.ts +23 -0
  226. package/es/modules/workspace/pages/WorkspacePage/state.js +108 -0
  227. package/es/modules/workspace/pages/WorkspacePage/state.js.map +1 -0
  228. package/es/modules/worktype/components/WorkTypeCard/index.d.ts +8 -0
  229. package/es/modules/worktype/components/WorkTypeCard/index.js +18 -0
  230. package/es/modules/worktype/components/WorkTypeCard/index.js.map +1 -0
  231. package/es/modules/worktype/components/WorkTypeCard/index.less +47 -0
  232. package/es/modules/worktype/components/WorkTypeCardList/index.d.ts +16 -0
  233. package/es/modules/worktype/components/WorkTypeCardList/index.js +50 -0
  234. package/es/modules/worktype/components/WorkTypeCardList/index.js.map +1 -0
  235. package/es/modules/worktype/components/WorkTypeCardList/index.less +15 -0
  236. package/es/modules/worktype/components/WorkTypeItem/index.d.ts +8 -0
  237. package/es/modules/worktype/components/WorkTypeItem/index.js +11 -0
  238. package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -0
  239. package/es/modules/worktype/components/WorkTypeItem/index.less +19 -0
  240. package/es/modules/worktype/components/WorkTypeProperties/index.d.ts +6 -0
  241. package/es/modules/worktype/components/WorkTypeProperties/index.js +55 -0
  242. package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -0
  243. package/es/modules/worktype/components/WorkTypeProperties/index.less +5 -0
  244. package/es/modules/worktype/components/WorkTypeProperties/state.d.ts +11 -0
  245. package/es/modules/worktype/components/WorkTypeProperties/state.js +57 -0
  246. package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -0
  247. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.d.ts +5 -0
  248. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.js +28 -0
  249. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.js.map +1 -0
  250. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.less +0 -0
  251. package/es/modules/worktype/components/WorkTypePropertiesView/index.d.ts +6 -0
  252. package/es/modules/worktype/components/WorkTypePropertiesView/index.js +38 -0
  253. package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -0
  254. package/es/modules/worktype/components/WorkTypePropertiesView/index.less +19 -0
  255. package/es/modules/worktype/components/WorkTypePropertiesView/state.d.ts +15 -0
  256. package/es/modules/worktype/components/WorkTypePropertiesView/state.js +68 -0
  257. package/es/modules/worktype/components/WorkTypePropertiesView/state.js.map +1 -0
  258. package/es/modules/worktype/components/WorkTypeQA/index.d.ts +6 -0
  259. package/es/modules/worktype/components/WorkTypeQA/index.js +60 -0
  260. package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -0
  261. package/es/modules/worktype/components/WorkTypeQA/index.less +35 -0
  262. package/es/modules/worktype/components/WorkTypeQA/state.d.ts +21 -0
  263. package/es/modules/worktype/components/WorkTypeQA/state.js +145 -0
  264. package/es/modules/worktype/components/WorkTypeQA/state.js.map +1 -0
  265. package/es/modules/worktype/components/WorkTypeStats/index.d.ts +5 -0
  266. package/es/modules/worktype/components/WorkTypeStats/index.js +16 -0
  267. package/es/modules/worktype/components/WorkTypeStats/index.js.map +1 -0
  268. package/es/modules/worktype/components/WorkTypeStats/index.less +29 -0
  269. package/es/modules/worktype/components/WorkTypeStats/state.d.ts +6 -0
  270. package/es/modules/worktype/components/WorkTypeStats/state.js +27 -0
  271. package/es/modules/worktype/components/WorkTypeStats/state.js.map +1 -0
  272. package/es/modules/worktype/components/WorkTypeTabs/index.d.ts +6 -0
  273. package/es/modules/worktype/components/WorkTypeTabs/index.js +45 -0
  274. package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -0
  275. package/es/modules/worktype/components/WorkTypeTabs/index.less +16 -0
  276. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.d.ts +6 -0
  277. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.js +70 -0
  278. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.js.map +1 -0
  279. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.less +8 -0
  280. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.d.ts +5 -0
  281. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.js +26 -0
  282. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.js.map +1 -0
  283. package/es/modules/worktype/pages/WorkTypeDefaultView/index.d.ts +4 -0
  284. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js +24 -0
  285. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +1 -0
  286. package/es/modules/worktype/pages/WorkTypeDefaultView/index.less +21 -0
  287. package/es/pages/Routes.d.ts +12 -0
  288. package/es/pages/Routes.js +29 -3
  289. package/es/pages/Routes.js.map +1 -1
  290. package/es/pages/Space/components/Notifications/index.js +1 -0
  291. package/es/pages/Space/components/Notifications/index.js.map +1 -1
  292. package/es/pages/Space/components/Tasks/index.d.ts +2 -2
  293. package/es/pages/Space/components/Tasks/index.js +50 -11
  294. package/es/pages/Space/components/Tasks/index.js.map +1 -1
  295. package/es/pages/Space/components/Works/index.d.ts +2 -2
  296. package/es/pages/Space/components/Works/index.js +13 -37
  297. package/es/pages/Space/components/Works/index.js.map +1 -1
  298. package/es/pages/Space/components/Workspaces/index.d.ts +3 -0
  299. package/es/pages/Space/components/Workspaces/index.js +19 -0
  300. package/es/pages/Space/components/Workspaces/index.js.map +1 -0
  301. package/es/pages/Space/pages/MySpace/index.js +49 -14
  302. package/es/pages/Space/pages/MySpace/index.js.map +1 -1
  303. package/es/pages/Space/pages/MySpace/state.d.ts +27 -6
  304. package/es/pages/Space/pages/MySpace/state.js +114 -24
  305. package/es/pages/Space/pages/MySpace/state.js.map +1 -1
  306. package/es/pages/Work/components/NewWorkDialog/index.js +3 -7
  307. package/es/pages/Work/components/NewWorkDialog/index.js.map +1 -1
  308. package/es/pages/Work/pages/WorkDefaultView/index.js +20 -17
  309. package/es/pages/Work/pages/WorkDefaultView/index.js.map +1 -1
  310. package/es/pages/WorkType/WorkTypeCheckList/index.d.ts +1 -2
  311. package/es/pages/WorkType/WorkTypeCheckList/index.js +43 -34
  312. package/es/pages/WorkType/WorkTypeCheckList/index.js.map +1 -1
  313. package/es/pages/WorkType/WorkTypeDetail/index.js +6 -10
  314. package/es/pages/WorkType/WorkTypeDetail/index.js.map +1 -1
  315. package/es/pages/WorkType/data/WorkTypeStore.js +4 -4
  316. package/es/pages/WorkType/data/WorkTypeStore.js.map +1 -1
  317. package/es/pages/WorkType/data/interfaces.d.ts +24 -7
  318. package/es/pages/WorkType/data/types.d.ts +19 -18
  319. package/es/routes.js.map +1 -1
  320. package/package.json +2 -2
  321. package/es/modules/notification/components/MentionNotificationCard/index.js.map +0 -1
  322. package/es/pages/Space/components/Documents/index.js +0 -26
  323. package/es/pages/Space/components/Documents/index.js.map +0 -1
  324. package/es/pages/Space/components/Documents/index.less +0 -5
  325. /package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.less +0 -0
@@ -1,5 +1,6 @@
1
1
  import { Archive, Reload, Sidebar } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
2
2
  import React, { useEffect, useState } from "react";
3
+ import { useWork, useWorkStore } from "../../data";
3
4
  import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
4
5
  import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
5
6
  import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
@@ -15,12 +16,12 @@ import { runInAction } from "mobx";
15
16
  import styles from "./index.less";
16
17
  import { useDocumentStore } from "@voplus/morpho-document-core";
17
18
  import { useRouteMatch } from "react-router";
18
- import { useWork } from "../../data";
19
19
  const WorkDefaultView = () => {
20
20
  const [asideContext] = useState(AsideContent.createContext());
21
21
  const match = useRouteMatch();
22
22
  const id = match.params.id;
23
23
  const work = useWork(id, { reload: true, includes: "tags" });
24
+ const store = useWorkStore();
24
25
  const documentStore = useDocumentStore();
25
26
  const [loaded, setLoaded] = useState(true);
26
27
  useEffect(() => {
@@ -30,22 +31,24 @@ const WorkDefaultView = () => {
30
31
  React.createElement(DocumentTabs, { id: id, isActivities: false })));
31
32
  return observe(() => (React.createElement("div", { className: "module-tab-view" },
32
33
  React.createElement(AsideContent, { context: asideContext },
33
- React.createElement("div", { className: styles["work-default-view"] }, loaded && (React.createElement(React.Fragment, null,
34
- React.createElement("header", null,
35
- React.createElement(DocumentHeader, { id: id, size: "h2", tools: React.createElement(ToolBar, { id: id },
36
- React.createElement(Reload, { action: onReLoad }),
37
- React.createElement(Sidebar, { action: () => runInAction(() => asideContext.asideContent
38
- ? asideContext.closeAside()
39
- : asideContext.openAside(AsideElement, { span: 12 })) }),
40
- React.createElement(Archive, null)), descriptionVisible: false }),
41
- work.loading ? (React.createElement("div", { className: "document-description" },
42
- React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: work.description, readonly: work.readonly, padding: "0 0 0.75rem 0" }))),
43
- React.createElement(Scrollbars, { autoHide: true },
44
- work.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
45
- React.createElement(Skeleton, { active: true }))) : (React.createElement(WorkSummaryCards, { id: id })),
46
- React.createElement(WorkCheckList, { id: id }),
47
- work.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
48
- React.createElement(Skeleton, { active: true }))) : (React.createElement(WorkTrail, { id: id }))))))))));
34
+ React.createElement("div", { className: styles["work-default-view"] },
35
+ React.createElement("div", { onClick: () => store.create({ data: { Name: "Work...." }, error: "message" }) }, "ADD WORK"),
36
+ loaded && (React.createElement(React.Fragment, null,
37
+ React.createElement("header", null,
38
+ React.createElement(DocumentHeader, { id: id, size: "h2", tools: React.createElement(ToolBar, { id: id },
39
+ React.createElement(Reload, { action: onReLoad }),
40
+ React.createElement(Sidebar, { action: () => runInAction(() => asideContext.asideContent
41
+ ? asideContext.closeAside()
42
+ : asideContext.openAside(AsideElement, { span: 12 })) }),
43
+ React.createElement(Archive, null)), descriptionVisible: false }),
44
+ work.loading ? (React.createElement("div", { className: "document-description" },
45
+ React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: work.description, readonly: work.readonly, padding: "0 0 0.75rem 0" }))),
46
+ React.createElement(Scrollbars, { autoHide: true },
47
+ work.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
48
+ React.createElement(Skeleton, { active: true }))) : (React.createElement(WorkSummaryCards, { id: id })),
49
+ React.createElement(WorkCheckList, { id: id }),
50
+ work.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
51
+ React.createElement(Skeleton, { active: true }))) : (React.createElement(WorkTrail, { id: id }))))))))));
49
52
  /** reload data */
50
53
  function onReLoad() {
51
54
  setLoaded(false);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Work/pages/WorkDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CA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,CAAC,CACf,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;4BAChC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI,CAC5B;wBACD,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI;wBACxB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CACf,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;4BAChC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,GAAI,CACrB,CACW,CACG,CACjB,CACI,CACQ,CACV,CACN,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  declare const WorkTypeCheckList: (props: {
3
2
  id: string;
4
- }) => JSX.Element;
3
+ }) => void;
5
4
  export default WorkTypeCheckList;
@@ -1,38 +1,47 @@
1
- import { useWorkType, useWorkTypeStore } from "../data";
2
- import CheckList from "@voplus/morpho-ui/es/controls/CheckList";
3
- import React from "react";
4
- import { observe } from "@voplus/morpho-ui";
5
1
  const WorkTypeCheckList = (props) => {
6
- const { id } = props;
7
- const workType = useWorkType(id);
8
- const workTypeStore = useWorkTypeStore();
9
- return observe(() => (React.createElement(CheckList, { list: workType.checkList || [], allowAdd: true, moveAfter: moveAfter, onChange: onChange, onCreate: onCreate, onDelete: onDelete })));
10
- /** Add a check item */
11
- function onCreate(item) {
12
- onSave([{ item, checked: false }, ...(workType.checkList || [])]);
13
- }
14
- /** change check item */
15
- function onChange(checkItem) {
16
- const { id, item, checked } = checkItem;
17
- const checkList = workType.checkList || [];
18
- checkList.splice(id, 1, { item, checked });
19
- onSave(checkList);
20
- }
21
- /** delete check item */
22
- function onDelete(checkItem) {
23
- const checkList = workType.checkList || [];
24
- checkList.splice(checkItem.id, 1);
25
- onSave(checkList);
26
- }
27
- /** sort checkList */
28
- function moveAfter(id, afterId, checkList) {
29
- onSave(checkList);
30
- }
31
- /** update WorkTypeCheckList */
32
- async function onSave(checkList) {
33
- const CheckList = checkList.map((c) => ({ Item: c.item, Checked: c.checked }));
34
- await workTypeStore.edit(id, { data: { CheckList }, error: "message" });
35
- }
2
+ // const { id } = props;
3
+ // const workType = useWorkType(id);
4
+ // const workTypeStore = useWorkTypeStore();
5
+ // return observe(() => (
6
+ // <CheckList
7
+ // list={workType.checkList || []}
8
+ // allowAdd
9
+ // moveAfter={moveAfter}
10
+ // onChange={onChange}
11
+ // onCreate={onCreate}
12
+ // onDelete={onDelete}
13
+ // />
14
+ // ));
15
+ // /** Add a check item */
16
+ // function onCreate(item: string) {
17
+ // onSave([{ item, checked: false }, ...(workType.checkList || [])]);
18
+ // }
19
+ // /** change check item */
20
+ // function onChange(checkItem: { id: number; item: string; checked: boolean }) {
21
+ // const { id, item, checked } = checkItem;
22
+ // const checkList = workType.checkList || [];
23
+ // checkList.splice(id, 1, { item, checked });
24
+ // onSave(checkList);
25
+ // }
26
+ // /** delete check item */
27
+ // function onDelete(checkItem: { id: number; item: string; checked: boolean }) {
28
+ // const checkList = workType.checkList || [];
29
+ // checkList.splice(checkItem.id, 1);
30
+ // onSave(checkList);
31
+ // }
32
+ // /** sort checkList */
33
+ // function moveAfter(
34
+ // id: number,
35
+ // afterId: number,
36
+ // checkList: { id: number; item: string; checked: boolean }[]
37
+ // ) {
38
+ // onSave(checkList);
39
+ // }
40
+ // /** update WorkTypeCheckList */
41
+ // async function onSave(checkList: { checked: boolean; item: string }[]) {
42
+ // const CheckList = checkList.map((c) => ({ Item: c.item, Checked: c.checked }));
43
+ // await workTypeStore.edit(id, { data: { CheckList }, error: "message" });
44
+ // }
36
45
  };
37
46
  export default WorkTypeCheckList;
38
47
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/WorkType/WorkTypeCheckList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAExD,OAAO,SAAS,MAAM,yCAAyC,CAAC;AAChE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,iBAAiB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACnD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEjC,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,SAAS,IACT,IAAI,EAAE,QAAQ,CAAC,SAAS,IAAI,EAAE,EAC9B,QAAQ,QACR,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GACjB,CACF,CAAC,CAAC;IACH,uBAAuB;IACvB,SAAS,QAAQ,CAAC,IAAY;QAC7B,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,GAAG,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACnE,CAAC;IACD,wBAAwB;IACxB,SAAS,QAAQ,CAAC,SAAyD;QAC1E,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;QACxC,MAAM,SAAS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wB;IACxB,wBAAwB;IACxB,MAAM;IACN,MAAM;IACN,0BAA0B;IAC1B,oCAAoC;IACpC,sEAAsE;IACtE,IAAI;IACJ,2BAA2B;IAC3B,iFAAiF;IACjF,4CAA4C;IAC5C,+CAA+C;IAC/C,+CAA+C;IAC/C,sBAAsB;IACtB,IAAI;IACJ,2BAA2B;IAC3B,iFAAiF;IACjF,+CAA+C;IAC/C,sCAAsC;IACtC,sBAAsB;IACtB,IAAI;IACJ,wBAAwB;IACxB,sBAAsB;IACtB,eAAe;IACf,oBAAoB;IACpB,+DAA+D;IAC/D,MAAM;IACN,sBAAsB;IACtB,IAAI;IACJ,kCAAkC;IAClC,2EAA2E;IAC3E,mFAAmF;IACnF,4EAA4E;IAC5E,IAAI;AACL,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import "./index.less";
2
- import { Button, Checkbox, InputNumber, Skeleton } from "@voplus/antd";
2
+ import { Checkbox, InputNumber, Skeleton } from "@voplus/antd";
3
3
  import React, { useState } from "react";
4
4
  import { useApplicationContext, useLayout } from "@voplus/morpho-data";
5
5
  import { useWorkType, useWorkTypeStore } from "../data";
@@ -7,7 +7,6 @@ import ActionPlan from "@voplus/morpho-collaboration-action/es/components/Action
7
7
  import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
8
8
  import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
9
9
  import { State } from "./state";
10
- import WorkTypeCheckList from "../WorkTypeCheckList";
11
10
  import { observe } from "@voplus/morpho-ui";
12
11
  import { runInAction } from "mobx";
13
12
  const WorkTypeDetail = (props) => {
@@ -30,11 +29,9 @@ const WorkTypeDetail = (props) => {
30
29
  React.createElement(Skeleton, { active: true }))) : (React.createElement(React.Fragment, null,
31
30
  React.createElement(DescriptionEditor, { id: id, description: workType.description, padding: "0 0 10px 0", onSave: editDescription }),
32
31
  React.createElement("div", { className: "work-perSon" },
33
- React.createElement("div", { className: "work-perSon-title" }, "PerSon in charge"),
34
- React.createElement(AvatarList, { organizationId: user.info.organizationId, list: workType.members || [], onChange: editMemberIds })),
32
+ React.createElement("div", { className: "work-perSon-title" }, "PerSon in charge")),
35
33
  React.createElement("div", { className: "work-request-form" },
36
- React.createElement("div", { className: "work-title" }, workType.newFormSchemaId ? (React.createElement(React.Fragment, null, "Request Form")) : (React.createElement(Checkbox, { onChange: editRequestForm }, "Request Form"))),
37
- workType.newFormSchemaId && (React.createElement(Button, { size: "middle", block: true, className: "work-btn", onClick: () => runInAction(() => layout.history.push(`/design/${workType.newFormSchemaId}`)) }, "Design Request Form"))),
34
+ React.createElement("div", { className: "work-title" })),
38
35
  React.createElement("div", { className: "work-audit" },
39
36
  React.createElement("div", { className: "work-title" },
40
37
  React.createElement(Checkbox, { checked: state.audit, onChange: (e) => {
@@ -54,7 +51,6 @@ const WorkTypeDetail = (props) => {
54
51
  runInAction(() => (state.auditorIds = ids));
55
52
  await editAudit();
56
53
  } }))))),
57
- React.createElement(WorkTypeCheckList, { id: id }),
58
54
  React.createElement(ActionPlan, { id: id })))));
59
55
  });
60
56
  /** edit description */
@@ -70,18 +66,18 @@ const WorkTypeDetail = (props) => {
70
66
  async function editAudit() {
71
67
  await workTypeStore.edit(id, {
72
68
  data: {
73
- Audit: { Audit: state.audit, AuditRate: state.auditRate, AuditorIds: state.auditorIds },
69
+ // Audit: { Audit: state.audit, AuditRate: state.auditRate, AuditorIds: state.auditorIds },
74
70
  },
75
71
  error: "message",
76
72
  });
77
73
  }
78
74
  /** edit MemberIds */
79
75
  async function editMemberIds(ids) {
80
- await workTypeStore.edit(id, { data: { MemberIds: ids }, error: "message" });
76
+ // await workTypeStore.edit(id, { data: { MemberIds: ids }, error: "message" });
81
77
  }
82
78
  /** edit Request Form */
83
79
  function editRequestForm(e) {
84
- workTypeStore.edit(id, { data: { CreateForm: e.target.checked }, error: "message" });
80
+ // workTypeStore.edit(id, { data: { CreateForm: e.target.checked }, error: "message" });
85
81
  }
86
82
  };
87
83
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,CACjB,CACI,CACN,CAAA;KAAA,CAAC,CAAC;IAEH,uBAAuB;IACvB,SAAS,eAAe,CAAC,WAAmB;QAC3C,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE;YACtB,IAAI,EAAE;gBACL,WAAW,EAAE,WAAW,IAAI,EAAE;aAC9B;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;IACJ,CAAC;IACD,iBAAiB;IACjB,KAAK,UAAU,SAAS;QACvB,MAAM,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE;YAC5B,IAAI,EAAE;YACL,2FAA2F;aAC3F;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;IACJ,CAAC;IACD,qBAAqB;IACrB,KAAK,UAAU,aAAa,CAAC,GAAa;QACzC,gFAAgF;IACjF,CAAC;IACD,wBAAwB;IACxB,SAAS,eAAe,CAAC,CAAM;QAC9B,wFAAwF;IACzF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -31,7 +31,7 @@ export class WorkTypeStore extends Store {
31
31
  async create(options) {
32
32
  // invariant(options.name, "Name cannot be empty.");
33
33
  return await this.action(async () => {
34
- const r = await this.endpoint.post(`/api/works/types/create`, new RequestBuilder().json(options.data));
34
+ const r = await this.endpoint.post(`/api/worktypes/create`, new RequestBuilder().json(options.data));
35
35
  const t = (await r.json());
36
36
  return t;
37
37
  }, options);
@@ -39,7 +39,7 @@ export class WorkTypeStore extends Store {
39
39
  /** Edit an existing item on server. */
40
40
  async edit(id, options) {
41
41
  await this.action(async () => {
42
- const r = await this.endpoint.post(`/api/works/types/${id}/info`, new RequestBuilder().json(options.data));
42
+ const r = await this.endpoint.post(`/api/worktypes/${id}`, new RequestBuilder().json(options.data));
43
43
  const t = await r.json();
44
44
  this.items.overwrite(t.id, t);
45
45
  }, options);
@@ -51,7 +51,7 @@ export class WorkTypeStore extends Store {
51
51
  }
52
52
  if (query)
53
53
  query = "?".concat(query);
54
- const r = await this.endpoint.post(`/api/works/types${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
54
+ const r = await this.endpoint.post(`/api/worktypes${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
55
55
  return (await r.json());
56
56
  }
57
57
  async load(id, options) {
@@ -60,7 +60,7 @@ export class WorkTypeStore extends Store {
60
60
  query = query.concat(`includes=${options.includes}`);
61
61
  if (query)
62
62
  query = "?".concat(query);
63
- const r = await this.endpoint.get(`/api/works/types/${id}${query}`);
63
+ const r = await this.endpoint.get(`/api/worktypes/${id}${query}`);
64
64
  return (await r.json());
65
65
  }
66
66
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WorkTypeStore.js","sourceRoot":"","sources":["../../../../src/pages/WorkType/data/WorkTypeStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAI/E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,SAAS,GAAG,eAAe,CAAC;AAElC,gDAAgD;AAChD,MAAM,OAAO,aAAc,SAAQ,KAAK;IAIvC,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;;;;;mBAD0B;;QAHnC,wBAAwB;QACxB;;;;mBAA+B,SAAS;WAAC;QAMzC,mCAAmC;QACnC;;;;mBAAuD,IAAI,UAAU,CACpE,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAgB,CAAA,EAC1D,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAClC;WAAC;IANF,CAAC;IAQD,6BAA6B;IACtB,KAAK,CAAC,MAAM,CAAC,OAA8B;QACjD,oDAAoD;QACpD,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YACnC,MAAM,CAAC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IACpC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;KACjE;IACD,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmB,CAAC;AACtD,CAAC,CAAC"}
@@ -13,23 +13,40 @@ export interface IAuditAuditorInfo {
13
13
  auditRate?: number;
14
14
  /** list of default work member */
15
15
  auditors?: {
16
- id: string;
17
16
  name: string;
17
+ id: string;
18
18
  }[];
19
19
  }
20
20
  export interface IWorkType extends ILoadable {
21
21
  /** id of the workType */
22
22
  id: string;
23
+ numberformat?: string;
23
24
  /** name of the workType */
24
25
  name?: string;
25
26
  /** description of the workType */
26
27
  description?: string;
28
+ defaultdue?: Date;
29
+ status?: string;
30
+ defaultfolder?: {
31
+ id: string;
32
+ name: string;
33
+ };
34
+ document?: {
35
+ id: string;
36
+ name: string;
37
+ };
38
+ requester?: {
39
+ name: string;
40
+ id: string;
41
+ }[];
42
+ reviewers?: {
43
+ name: string;
44
+ id: string;
45
+ }[];
46
+ accepters?: {
47
+ name: string;
48
+ id: string;
49
+ }[];
27
50
  /** audit info of the workType */
28
51
  audit?: IAuditAuditorInfo;
29
- /** list of default work member */
30
- members?: string[];
31
- /** checklist of the workType. */
32
- checkList?: ICheckListItem[];
33
- /** new form schema id the work type */
34
- newFormSchemaId?: string;
35
52
  }
@@ -7,8 +7,8 @@ export declare type LoadWorkTypeOptions = {
7
7
  includes?: string;
8
8
  } & LoadOptions<IWorkType>;
9
9
  export declare type WorkTypeCreateDataOptions = {
10
- /** parentId of the new workType */
11
- ParentId: string;
10
+ /** workspaceId of the new workType */
11
+ workspaceId: string;
12
12
  /** name of the new workType */
13
13
  Name: string;
14
14
  };
@@ -18,23 +18,24 @@ export declare type WorkTypeCreateOptions = {
18
18
  export interface WorkTypeEditDataOptions {
19
19
  /** name of the edit workType. */
20
20
  Name?: string;
21
- /** description of the edit workType */
21
+ /** gets the description of the work */
22
22
  Description?: string;
23
- /** audit info of the edit workType */
24
- Audit?: {
25
- Audit?: boolean;
26
- AuditRate?: number;
27
- AuditorIds?: string[];
28
- };
29
- /** check list */
30
- CheckList?: {
31
- Checked: boolean;
32
- Item: string;
33
- }[];
34
- /** list of default work member MemberIds */
35
- MemberIds?: string[];
36
- /** a value indicate whether to create a form the work type */
37
- CreateForm?: boolean;
23
+ /** gets the format of the work number */
24
+ NumberFormat?: string;
25
+ /** gets the default folder id of the work type */
26
+ DefaultFolderId?: string;
27
+ /** gets the document id of the work type */
28
+ DocumentId?: string;
29
+ /** gets the default due date in this number of days from work create date */
30
+ DefaultDue?: Date;
31
+ /** gets list of unit ids who can rquest this job */
32
+ RequesterIds?: string[];
33
+ /** gets a list of accepter ids */
34
+ AccepterIds?: string[];
35
+ /** gets a list of reviewer ids */
36
+ ReviewerIds?: string[];
37
+ /** gets list of auditor ids */
38
+ AuditorIds?: string[];
38
39
  }
39
40
  export declare type WorkTypeEditOptions = {
40
41
  data: WorkTypeEditDataOptions;
package/es/routes.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../src/routes.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,6BAA6B,CAAC;AACtD,OAAO,cAAc,MAAM,mCAAmC,CAAC;AAC/D,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAC5D,OAAO,UAAU,MAAM,gBAAgB,CAAC;AACxC,OAAO,UAAU,MAAM,6BAA6B,CAAC;AAErD,MAAM,MAAM,GAAG;IACd,SAAS,EAAE,GAAG,EAAE;QACf,UAAU,CAAC,SAAS,EAAE,CAAC;QACvB,aAAa,CAAC,SAAS,EAAE,CAAC;QAC1B,WAAW,CAAC,SAAS,EAAE,CAAC;QACxB,cAAc,CAAC,SAAS,EAAE,CAAC;QAC3B,UAAU,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC;CACD,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"routes.js","sourceRoot":"","sources":["../src/routes.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,6BAA6B,CAAC;AACtD,OAAO,cAAc,MAAM,mCAAmC,CAAC;AAC/D,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAC5D,OAAO,UAAU,MAAM,gBAAgB,CAAC;AACxC,OAAO,UAAU,MAAM,6BAA6B,CAAC;AAGrD,MAAM,MAAM,GAAG;IACd,SAAS,EAAE,GAAG,EAAE;QACf,UAAU,CAAC,SAAS,EAAE,CAAC;QACvB,aAAa,CAAC,SAAS,EAAE,CAAC;QAC1B,WAAW,CAAC,SAAS,EAAE,CAAC;QACxB,cAAc,CAAC,SAAS,EAAE,CAAC;QAC3B,UAAU,CAAC,SAAS,EAAE,CAAC;IACxB,CAAC;CACD,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "react-beautiful-dnd": "^13.1.0",
42
42
  "tippy.js": "^5.1.4"
43
43
  },
44
- "devDependencies": {
44
+ "devDependencies": {
45
45
  "@types/mockjs": "^1.0.3",
46
46
  "@types/react-beautiful-dnd": "^13.0.0",
47
47
  "@voplus/morpho-client-test": "1.x",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/MentionNotificationCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAGN,eAAe,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,IAAI,MAAM,oCAAoC,CAAC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,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,CAAC,YAAgB,CACpE,CACM,CACH,CACD,CACD,CACA,CACP,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,EAAO,EAAE,MAA0B;;QAC1D,MAAA,KAAK,CAAC,cAAc,+CAApB,KAAK,EAAkB,MAAM,CAAC,CAAC;QAC/B,EAAE,CAAC,eAAe,EAAE,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1,26 +0,0 @@
1
- import "./index.less";
2
- import React from "react";
3
- import ViewFrame from "@voplus/morpho-document/es/components/ViewFrame";
4
- import { observe } from "@voplus/morpho-ui";
5
- import { useLayout } from "@voplus/morpho-data";
6
- import { useRouteMatch } from "react-router";
7
- const Documents = (props) => {
8
- var _a;
9
- let match = useRouteMatch();
10
- const layout = useLayout();
11
- const query = new URLSearchParams(layout.history.location.search);
12
- const id = (_a = query.get("active")) !== null && _a !== void 0 ? _a : props.id;
13
- const view = query.get("view");
14
- return observe(() => (React.createElement("div", { className: "my-documents" },
15
- React.createElement(ViewFrame, { id: id, view: view, onNavigate: onNavigate }),
16
- ")")));
17
- function onNavigate(id, view) {
18
- const viewQuery = view ? `&view=${view}` : "";
19
- if (id != props.id)
20
- layout.history.push(`${match.url}?active=${id}${viewQuery}`);
21
- else
22
- layout.history.push(`${match.url}?${viewQuery}`);
23
- }
24
- };
25
- export default Documents;
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/components/Documents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,iDAAiD,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,aAAa,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