@voplus/morpho-workspace 1.2.6 → 1.3.1

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 (346) 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/{NotificaitonStore.d.ts → NotificationStore.d.ts} +8 -8
  8. package/es/data/notification/{NotificaitonStore.js → NotificationStore.js} +10 -7
  9. package/es/data/notification/NotificationStore.js.map +1 -0
  10. package/es/data/notification/hooks.d.ts +4 -4
  11. package/es/data/notification/hooks.js +8 -8
  12. package/es/data/notification/hooks.js.map +1 -1
  13. package/es/data/notification/index.d.ts +1 -1
  14. package/es/data/notification/index.js +1 -1
  15. package/es/data/notification/interfaces.d.ts +5 -3
  16. package/es/data/notification/types.d.ts +7 -7
  17. package/es/data/work/WorkStore.d.ts +10 -0
  18. package/es/data/work/WorkStore.js +21 -0
  19. package/es/data/work/WorkStore.js.map +1 -0
  20. package/es/data/work/hook.d.ts +9 -0
  21. package/es/data/work/hook.js +20 -0
  22. package/es/data/work/hook.js.map +1 -0
  23. package/es/data/work/index.d.ts +3 -0
  24. package/es/data/work/index.js +4 -0
  25. package/es/data/work/index.js.map +1 -0
  26. package/es/data/work/interfaces.d.ts +37 -0
  27. package/es/data/work/interfaces.js +2 -0
  28. package/es/data/work/interfaces.js.map +1 -0
  29. package/es/data/workerror/WorkErrorStore.d.ts +37 -0
  30. package/es/data/workerror/WorkErrorStore.js +117 -0
  31. package/es/data/workerror/WorkErrorStore.js.map +1 -0
  32. package/es/data/workerror/hook.d.ts +9 -0
  33. package/es/data/workerror/hook.js +19 -0
  34. package/es/data/workerror/hook.js.map +1 -0
  35. package/es/data/workerror/index.d.ts +4 -0
  36. package/es/data/workerror/index.js +5 -0
  37. package/es/data/workerror/index.js.map +1 -0
  38. package/es/data/workerror/interfaces.d.ts +20 -0
  39. package/es/data/workerror/interfaces.js +2 -0
  40. package/es/data/workerror/interfaces.js.map +1 -0
  41. package/es/data/workerror/types.d.ts +46 -0
  42. package/es/data/workerror/types.js +9 -0
  43. package/es/data/workerror/types.js.map +1 -0
  44. package/es/data/workerror/workerror-events/index.d.ts +3 -0
  45. package/es/data/workerror/workerror-events/index.js +4 -0
  46. package/es/data/workerror/workerror-events/index.js.map +1 -0
  47. package/es/data/workerror/workerror-events/useAutoUpdateListData.d.ts +4 -0
  48. package/es/data/workerror/workerror-events/useAutoUpdateListData.js +13 -0
  49. package/es/data/workerror/workerror-events/useAutoUpdateListData.js.map +1 -0
  50. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.d.ts +4 -0
  51. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js +17 -0
  52. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js.map +1 -0
  53. package/es/data/workerror/workerror-events/useOnNewWorkspace.d.ts +4 -0
  54. package/es/data/workerror/workerror-events/useOnNewWorkspace.js +17 -0
  55. package/es/data/workerror/workerror-events/useOnNewWorkspace.js.map +1 -0
  56. package/es/data/workspace/WorkSpaceStore.d.ts +39 -0
  57. package/es/data/workspace/WorkSpaceStore.js +134 -0
  58. package/es/data/workspace/WorkSpaceStore.js.map +1 -0
  59. package/es/data/workspace/hooks.d.ts +13 -0
  60. package/es/data/workspace/hooks.js +23 -0
  61. package/es/data/workspace/hooks.js.map +1 -0
  62. package/es/data/workspace/index.d.ts +4 -0
  63. package/es/data/workspace/index.js +5 -0
  64. package/es/data/workspace/index.js.map +1 -0
  65. package/es/data/workspace/interfaces.d.ts +17 -0
  66. package/es/data/workspace/interfaces.js +2 -0
  67. package/es/data/workspace/interfaces.js.map +1 -0
  68. package/es/data/workspace/types.d.ts +28 -0
  69. package/es/data/workspace/types.js +2 -0
  70. package/es/data/workspace/types.js.map +1 -0
  71. package/es/data/workspace/useWorkSpaceCompletedWorkEffect.d.ts +10 -0
  72. package/es/data/workspace/useWorkSpaceCompletedWorkEffect.js +14 -0
  73. package/es/data/workspace/useWorkSpaceCompletedWorkEffect.js.map +1 -0
  74. package/es/data/workspace/workspace-events/index.d.ts +3 -0
  75. package/es/data/workspace/workspace-events/index.js +4 -0
  76. package/es/data/workspace/workspace-events/index.js.map +1 -0
  77. package/es/data/workspace/workspace-events/useAutoUpdateListData.d.ts +4 -0
  78. package/es/data/workspace/workspace-events/useAutoUpdateListData.js +13 -0
  79. package/es/data/workspace/workspace-events/useAutoUpdateListData.js.map +1 -0
  80. package/es/data/workspace/workspace-events/useOnDeleteWorkspace.d.ts +4 -0
  81. package/es/data/workspace/workspace-events/useOnDeleteWorkspace.js +17 -0
  82. package/es/data/workspace/workspace-events/useOnDeleteWorkspace.js.map +1 -0
  83. package/es/data/workspace/workspace-events/useOnNewWorkspace.d.ts +4 -0
  84. package/es/data/workspace/workspace-events/useOnNewWorkspace.js +17 -0
  85. package/es/data/workspace/workspace-events/useOnNewWorkspace.js.map +1 -0
  86. package/es/data/worktype/WorkTypeStore.d.ts +21 -0
  87. package/es/data/worktype/WorkTypeStore.js +75 -0
  88. package/es/data/worktype/WorkTypeStore.js.map +1 -0
  89. package/es/data/worktype/hook.d.ts +9 -0
  90. package/es/data/worktype/hook.js +20 -0
  91. package/es/data/worktype/hook.js.map +1 -0
  92. package/es/data/worktype/index.d.ts +4 -0
  93. package/es/data/worktype/index.js +5 -0
  94. package/es/data/worktype/index.js.map +1 -0
  95. package/es/data/worktype/interfaces.d.ts +57 -0
  96. package/es/data/worktype/interfaces.js +2 -0
  97. package/es/data/worktype/interfaces.js.map +1 -0
  98. package/es/data/worktype/types.d.ts +55 -0
  99. package/es/data/worktype/types.js +2 -0
  100. package/es/data/worktype/types.js.map +1 -0
  101. package/es/data/worktype/useWorkTypeCompletedWorkEffect.d.ts +10 -0
  102. package/es/data/worktype/useWorkTypeCompletedWorkEffect.js +14 -0
  103. package/es/data/worktype/useWorkTypeCompletedWorkEffect.js.map +1 -0
  104. package/es/modules/board/components/Board/index.js +1 -3
  105. package/es/modules/board/components/Board/index.js.map +1 -1
  106. package/es/modules/board/components/SubDocumentList/index.js +2 -1
  107. package/es/modules/board/components/SubDocumentList/index.js.map +1 -1
  108. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +2 -2
  109. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
  110. package/es/modules/meeting/components/MeetingList/index.js +1 -2
  111. package/es/modules/meeting/components/MeetingList/index.js.map +1 -1
  112. package/es/modules/notification/components/MentionNotificationCard/index.d.ts +10 -0
  113. package/es/modules/notification/components/MentionNotificationCard/index.js +31 -0
  114. package/es/modules/notification/components/MentionNotificationCard/index.js.map +1 -0
  115. package/es/modules/notification/components/MentionNotificationCard/index.less +23 -0
  116. package/es/modules/notification/components/NotificationList/index.d.ts +14 -5
  117. package/es/modules/notification/components/NotificationList/index.js +60 -17
  118. package/es/modules/notification/components/NotificationList/index.js.map +1 -1
  119. package/es/modules/notification/components/NotificationList/index.less +20 -2
  120. package/es/modules/tasks/reports/TaskSummaryCard/index.js +2 -2
  121. package/es/modules/tasks/reports/TaskSummaryCard/index.js.map +1 -1
  122. package/es/modules/work/components/NewWorkErrorDialog/index.d.ts +9 -0
  123. package/es/modules/work/components/NewWorkErrorDialog/index.js +70 -0
  124. package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -0
  125. package/es/modules/work/components/NewWorkErrorDialog/index.less +18 -0
  126. package/es/modules/work/components/NewWorkErrorDialog/state.d.ts +16 -0
  127. package/es/modules/work/components/NewWorkErrorDialog/state.js +37 -0
  128. package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -0
  129. package/es/modules/work/components/RejectWorkDialog/index.d.ts +9 -0
  130. package/es/modules/work/components/RejectWorkDialog/index.js +54 -0
  131. package/es/modules/work/components/RejectWorkDialog/index.js.map +1 -0
  132. package/es/modules/work/components/RejectWorkDialog/index.less +18 -0
  133. package/es/modules/work/components/RejectWorkDialog/state.d.ts +12 -0
  134. package/es/modules/work/components/RejectWorkDialog/state.js +35 -0
  135. package/es/modules/work/components/RejectWorkDialog/state.js.map +1 -0
  136. package/es/modules/work/components/WorkErrorItem/index.d.ts +6 -0
  137. package/es/modules/work/components/WorkErrorItem/index.js +24 -0
  138. package/es/modules/work/components/WorkErrorItem/index.js.map +1 -0
  139. package/es/modules/work/components/WorkErrorItem/index.less +26 -0
  140. package/es/modules/work/components/WorkErrorList/index.d.ts +8 -0
  141. package/es/modules/work/components/WorkErrorList/index.js +44 -0
  142. package/es/modules/work/components/WorkErrorList/index.js.map +1 -0
  143. package/es/modules/work/components/WorkErrorList/index.less +5 -0
  144. package/es/modules/work/components/WorkErrorPropertiesView/index.d.ts +6 -0
  145. package/es/modules/work/components/WorkErrorPropertiesView/index.js +45 -0
  146. package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -0
  147. package/es/modules/work/components/WorkErrorPropertiesView/index.less +22 -0
  148. package/es/modules/work/components/WorkItem/index.d.ts +11 -0
  149. package/es/modules/work/components/WorkItem/index.js +25 -0
  150. package/es/modules/work/components/WorkItem/index.js.map +1 -0
  151. package/es/modules/work/components/WorkItem/index.less +17 -0
  152. package/es/modules/work/components/WorkList/index.d.ts +14 -0
  153. package/es/modules/work/components/WorkList/index.js +64 -0
  154. package/es/modules/work/components/WorkList/index.js.map +1 -0
  155. package/es/modules/work/components/WorkList/index.less +7 -0
  156. package/es/modules/work/components/WorkPropertiesView/index.d.ts +7 -0
  157. package/es/modules/work/components/WorkPropertiesView/index.js +35 -0
  158. package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -0
  159. package/es/modules/work/components/WorkPropertiesView/index.less +23 -0
  160. package/es/{pages/Space/components/Documents → modules/work/components/WorkQATab}/index.d.ts +2 -2
  161. package/es/modules/work/components/WorkQATab/index.js +33 -0
  162. package/es/modules/work/components/WorkQATab/index.js.map +1 -0
  163. package/es/modules/work/components/WorkQATab/index.less +24 -0
  164. package/es/modules/work/components/WorkTabs/index.d.ts +7 -0
  165. package/es/modules/work/components/WorkTabs/index.js +45 -0
  166. package/es/modules/work/components/WorkTabs/index.js.map +1 -0
  167. package/es/modules/work/components/WorkTabs/index.less +16 -0
  168. package/es/modules/work/components/WorkTaskList/index.d.ts +5 -0
  169. package/es/modules/work/components/WorkTaskList/index.js +65 -0
  170. package/es/modules/work/components/WorkTaskList/index.js.map +1 -0
  171. package/es/modules/work/components/WorkTaskList/index.less +18 -0
  172. package/es/modules/work/components/WorkTaskList/state.d.ts +14 -0
  173. package/es/modules/work/components/WorkTaskList/state.js +23 -0
  174. package/es/modules/work/components/WorkTaskList/state.js.map +1 -0
  175. package/es/modules/work/components/WorkTasksTab/index.d.ts +6 -0
  176. package/es/modules/work/components/WorkTasksTab/index.js +17 -0
  177. package/es/modules/work/components/WorkTasksTab/index.js.map +1 -0
  178. package/es/modules/work/components/WorkTasksTab/index.less +7 -0
  179. package/es/modules/work/components/WorksProperties/index.d.ts +6 -0
  180. package/es/modules/work/components/WorksProperties/index.js +27 -0
  181. package/es/modules/work/components/WorksProperties/index.js.map +1 -0
  182. package/es/modules/work/components/WorksProperties/index.less +8 -0
  183. package/es/modules/work/pages/WorkDefaultView/index.d.ts +4 -0
  184. package/es/modules/work/pages/WorkDefaultView/index.js +26 -0
  185. package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -0
  186. package/es/modules/work/pages/WorkDefaultView/index.less +17 -0
  187. package/es/modules/work/pages/WorkListPage/index.d.ts +6 -0
  188. package/es/modules/work/pages/WorkListPage/index.js +19 -0
  189. package/es/modules/work/pages/WorkListPage/index.js.map +1 -0
  190. package/es/modules/workspace/components/MyWorkspaces/index.d.ts +11 -0
  191. package/es/modules/workspace/components/MyWorkspaces/index.js +34 -0
  192. package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -0
  193. package/es/modules/workspace/components/MyWorkspaces/index.less +18 -0
  194. package/es/modules/workspace/components/NewWorkspaceDialog/index.d.ts +10 -0
  195. package/es/modules/workspace/components/NewWorkspaceDialog/index.js +59 -0
  196. package/es/modules/workspace/components/NewWorkspaceDialog/index.js.map +1 -0
  197. package/es/modules/workspace/components/NewWorkspaceDialog/index.less +18 -0
  198. package/es/modules/workspace/components/NewWorkspaceDialog/state.d.ts +12 -0
  199. package/es/modules/workspace/components/NewWorkspaceDialog/state.js +35 -0
  200. package/es/modules/workspace/components/NewWorkspaceDialog/state.js.map +1 -0
  201. package/es/modules/workspace/components/WorkspaceCard/index.d.ts +8 -0
  202. package/es/modules/workspace/components/WorkspaceCard/index.js +18 -0
  203. package/es/modules/workspace/components/WorkspaceCard/index.js.map +1 -0
  204. package/es/modules/workspace/components/WorkspaceCard/index.less +47 -0
  205. package/es/modules/workspace/components/WorkspaceCardList/index.d.ts +13 -0
  206. package/es/modules/workspace/components/WorkspaceCardList/index.js +49 -0
  207. package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -0
  208. package/es/modules/workspace/components/WorkspaceCardList/index.less +13 -0
  209. package/es/modules/workspace/components/WorkspacePropertiesView/index.d.ts +6 -0
  210. package/es/modules/workspace/components/WorkspacePropertiesView/index.js +41 -0
  211. package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -0
  212. package/es/modules/workspace/components/WorkspacePropertiesView/index.less +19 -0
  213. package/es/modules/workspace/components/WorkspacePropertiesView/state.d.ts +15 -0
  214. package/es/modules/workspace/components/WorkspacePropertiesView/state.js +68 -0
  215. package/es/modules/workspace/components/WorkspacePropertiesView/state.js.map +1 -0
  216. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.d.ts +6 -0
  217. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js +68 -0
  218. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js.map +1 -0
  219. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.less +8 -0
  220. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.d.ts +5 -0
  221. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.js +26 -0
  222. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.js.map +1 -0
  223. package/es/modules/workspace/controls/WorkspaceMenu/index.d.ts +8 -0
  224. package/es/modules/workspace/controls/WorkspaceMenu/index.js +36 -0
  225. package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -0
  226. package/es/modules/workspace/controls/WorkspaceMenu/index.less +33 -0
  227. package/es/modules/workspace/pages/WorkspaceDefaultView/index.d.ts +4 -0
  228. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +51 -0
  229. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -0
  230. package/es/modules/workspace/pages/WorkspaceDefaultView/index.less +22 -0
  231. package/es/modules/workspace/pages/WorkspaceDefaultView/state.d.ts +15 -0
  232. package/es/modules/workspace/pages/WorkspaceDefaultView/state.js +68 -0
  233. package/es/modules/workspace/pages/WorkspaceDefaultView/state.js.map +1 -0
  234. package/es/modules/workspace/pages/WorkspacePage/index.d.ts +4 -0
  235. package/es/modules/workspace/pages/WorkspacePage/index.js +73 -0
  236. package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -0
  237. package/es/modules/workspace/pages/WorkspacePage/index.less +1 -0
  238. package/es/modules/workspace/pages/WorkspacePage/state.d.ts +23 -0
  239. package/es/modules/workspace/pages/WorkspacePage/state.js +108 -0
  240. package/es/modules/workspace/pages/WorkspacePage/state.js.map +1 -0
  241. package/es/modules/worktype/components/WorkTypeCard/index.d.ts +8 -0
  242. package/es/modules/worktype/components/WorkTypeCard/index.js +18 -0
  243. package/es/modules/worktype/components/WorkTypeCard/index.js.map +1 -0
  244. package/es/modules/worktype/components/WorkTypeCard/index.less +47 -0
  245. package/es/modules/worktype/components/WorkTypeCardList/index.d.ts +16 -0
  246. package/es/modules/worktype/components/WorkTypeCardList/index.js +50 -0
  247. package/es/modules/worktype/components/WorkTypeCardList/index.js.map +1 -0
  248. package/es/modules/worktype/components/WorkTypeCardList/index.less +15 -0
  249. package/es/modules/worktype/components/WorkTypeItem/index.d.ts +8 -0
  250. package/es/modules/worktype/components/WorkTypeItem/index.js +11 -0
  251. package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -0
  252. package/es/modules/worktype/components/WorkTypeItem/index.less +19 -0
  253. package/es/modules/worktype/components/WorkTypeProperties/index.d.ts +6 -0
  254. package/es/modules/worktype/components/WorkTypeProperties/index.js +56 -0
  255. package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -0
  256. package/es/modules/worktype/components/WorkTypeProperties/index.less +5 -0
  257. package/es/modules/worktype/components/WorkTypeProperties/state.d.ts +12 -0
  258. package/es/modules/worktype/components/WorkTypeProperties/state.js +65 -0
  259. package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -0
  260. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.d.ts +5 -0
  261. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.js +28 -0
  262. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.js.map +1 -0
  263. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.less +0 -0
  264. package/es/modules/worktype/components/WorkTypePropertiesView/index.d.ts +6 -0
  265. package/es/modules/worktype/components/WorkTypePropertiesView/index.js +38 -0
  266. package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -0
  267. package/es/modules/worktype/components/WorkTypePropertiesView/index.less +19 -0
  268. package/es/modules/worktype/components/WorkTypePropertiesView/state.d.ts +15 -0
  269. package/es/modules/worktype/components/WorkTypePropertiesView/state.js +68 -0
  270. package/es/modules/worktype/components/WorkTypePropertiesView/state.js.map +1 -0
  271. package/es/modules/worktype/components/WorkTypeQA/index.d.ts +6 -0
  272. package/es/modules/worktype/components/WorkTypeQA/index.js +60 -0
  273. package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -0
  274. package/es/modules/worktype/components/WorkTypeQA/index.less +35 -0
  275. package/es/modules/worktype/components/WorkTypeQA/state.d.ts +21 -0
  276. package/es/modules/worktype/components/WorkTypeQA/state.js +145 -0
  277. package/es/modules/worktype/components/WorkTypeQA/state.js.map +1 -0
  278. package/es/modules/worktype/components/WorkTypeStats/index.d.ts +5 -0
  279. package/es/modules/worktype/components/WorkTypeStats/index.js +16 -0
  280. package/es/modules/worktype/components/WorkTypeStats/index.js.map +1 -0
  281. package/es/modules/worktype/components/WorkTypeStats/index.less +29 -0
  282. package/es/modules/worktype/components/WorkTypeStats/state.d.ts +6 -0
  283. package/es/modules/worktype/components/WorkTypeStats/state.js +27 -0
  284. package/es/modules/worktype/components/WorkTypeStats/state.js.map +1 -0
  285. package/es/modules/worktype/components/WorkTypeTabs/index.d.ts +6 -0
  286. package/es/modules/worktype/components/WorkTypeTabs/index.js +45 -0
  287. package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -0
  288. package/es/modules/worktype/components/WorkTypeTabs/index.less +16 -0
  289. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.d.ts +6 -0
  290. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.js +70 -0
  291. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.js.map +1 -0
  292. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.less +8 -0
  293. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.d.ts +5 -0
  294. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.js +26 -0
  295. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.js.map +1 -0
  296. package/es/modules/worktype/pages/WorkTypeDefaultView/index.d.ts +4 -0
  297. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js +24 -0
  298. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +1 -0
  299. package/es/modules/worktype/pages/WorkTypeDefaultView/index.less +20 -0
  300. package/es/pages/Routes.d.ts +12 -0
  301. package/es/pages/Routes.js +29 -3
  302. package/es/pages/Routes.js.map +1 -1
  303. package/es/pages/Space/components/Notifications/index.d.ts +6 -0
  304. package/es/pages/Space/components/Notifications/index.js +38 -0
  305. package/es/pages/Space/components/Notifications/index.js.map +1 -0
  306. package/es/pages/Space/components/Workspaces/index.d.ts +3 -0
  307. package/es/pages/Space/components/Workspaces/index.js +19 -0
  308. package/es/pages/Space/components/Workspaces/index.js.map +1 -0
  309. package/es/pages/Space/pages/MySpace/index.js +49 -42
  310. package/es/pages/Space/pages/MySpace/index.js.map +1 -1
  311. package/es/pages/Space/pages/MySpace/index.less +20 -34
  312. package/es/pages/Space/pages/MySpace/state.d.ts +15 -16
  313. package/es/pages/Space/pages/MySpace/state.js +38 -74
  314. package/es/pages/Space/pages/MySpace/state.js.map +1 -1
  315. package/es/pages/Work/components/NewWorkDialog/index.js +3 -7
  316. package/es/pages/Work/components/NewWorkDialog/index.js.map +1 -1
  317. package/es/pages/Work/pages/WorkDefaultView/index.js +20 -17
  318. package/es/pages/Work/pages/WorkDefaultView/index.js.map +1 -1
  319. package/es/pages/WorkType/WorkTypeCheckList/index.d.ts +1 -2
  320. package/es/pages/WorkType/WorkTypeCheckList/index.js +43 -34
  321. package/es/pages/WorkType/WorkTypeCheckList/index.js.map +1 -1
  322. package/es/pages/WorkType/WorkTypeDetail/index.js +6 -10
  323. package/es/pages/WorkType/WorkTypeDetail/index.js.map +1 -1
  324. package/es/pages/WorkType/data/WorkTypeStore.js +4 -4
  325. package/es/pages/WorkType/data/WorkTypeStore.js.map +1 -1
  326. package/es/pages/WorkType/data/interfaces.d.ts +24 -7
  327. package/es/pages/WorkType/data/types.d.ts +19 -18
  328. package/es/routes.js.map +1 -1
  329. package/package.json +2 -2
  330. package/es/MySpace.d.ts +0 -7
  331. package/es/MySpace.js +0 -14
  332. package/es/MySpace.js.map +0 -1
  333. package/es/data/notification/NotificaitonStore.js.map +0 -1
  334. package/es/modules/notification/NotificationRoutes.d.ts +0 -17
  335. package/es/modules/notification/NotificationRoutes.js +0 -29
  336. package/es/modules/notification/NotificationRoutes.js.map +0 -1
  337. package/es/modules/notification/components/MentionNotificaitonCard/index.d.ts +0 -9
  338. package/es/modules/notification/components/MentionNotificaitonCard/index.js +0 -27
  339. package/es/modules/notification/components/MentionNotificaitonCard/index.js.map +0 -1
  340. package/es/modules/notification/components/MentionNotificaitonCard/index.less +0 -16
  341. package/es/modules/notification/pages/NotificationListView/index.d.ts +0 -6
  342. package/es/modules/notification/pages/NotificationListView/index.js +0 -17
  343. package/es/modules/notification/pages/NotificationListView/index.js.map +0 -1
  344. package/es/pages/Space/components/Documents/index.js +0 -41
  345. package/es/pages/Space/components/Documents/index.js.map +0 -1
  346. package/es/pages/Space/components/Documents/index.less +0 -9
@@ -1,58 +1,51 @@
1
1
  import { __decorate } from "tslib";
2
- import { action, makeObservable, observable, computed } from "mobx";
2
+ import { action, computed, makeObservable, observable } from "mobx";
3
3
  import moment from "moment";
4
4
  export class State {
5
- constructor() {
6
- Object.defineProperty(this, "menuKey", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: ""
11
- });
12
- /** dueDate of task */
13
- Object.defineProperty(this, "dueDate", {
5
+ constructor(_layout, _url) {
6
+ Object.defineProperty(this, "_layout", {
14
7
  enumerable: true,
15
8
  configurable: true,
16
9
  writable: true,
17
- value: void 0
10
+ value: _layout
18
11
  });
19
- /** status of notifications */
20
- Object.defineProperty(this, "status", {
12
+ Object.defineProperty(this, "_url", {
21
13
  enumerable: true,
22
14
  configurable: true,
23
15
  writable: true,
24
- value: void 0
16
+ value: _url
25
17
  });
26
- /** status All Notifications list Total */
27
- Object.defineProperty(this, "nAllTotal", {
28
- enumerable: true,
29
- configurable: true,
30
- writable: true,
31
- value: 0
32
- });
33
- /** Read Notifications list Total */
34
- Object.defineProperty(this, "nReadTotal", {
18
+ Object.defineProperty(this, "menuKey", {
35
19
  enumerable: true,
36
20
  configurable: true,
37
21
  writable: true,
38
- value: 0
22
+ value: undefined
39
23
  });
40
- /** Later Notifications list Total */
41
- Object.defineProperty(this, "nLaterTotal", {
24
+ /** dueDate of task */
25
+ Object.defineProperty(this, "dueDate", {
42
26
  enumerable: true,
43
27
  configurable: true,
44
28
  writable: true,
45
- value: 0
29
+ value: void 0
46
30
  });
47
- /** Dismissed Notifications list Total */
48
- Object.defineProperty(this, "nDismissedTotal", {
31
+ /** status All Notifications list Total */
32
+ Object.defineProperty(this, "notificationTotals", {
49
33
  enumerable: true,
50
34
  configurable: true,
51
35
  writable: true,
52
- value: 0
36
+ value: {
37
+ unread: 0,
38
+ read: 0,
39
+ later: 0,
40
+ dismissed: 0
41
+ }
53
42
  });
54
43
  makeObservable(this);
55
44
  }
45
+ navigate(key, rest) {
46
+ this.menuKey = [key];
47
+ this._layout.history.push(`${this._url}${key}${rest !== null && rest !== void 0 ? rest : ""}`);
48
+ }
56
49
  get filters() {
57
50
  var _a, _b, _c, _d, _e, _f;
58
51
  if (((_a = this.dueDate) === null || _a === void 0 ? void 0 : _a[0]) === null && ((_b = this.dueDate) === null || _b === void 0 ? void 0 : _b[1]) === null)
@@ -69,38 +62,18 @@ export class State {
69
62
  },
70
63
  ];
71
64
  }
72
- get notificaitonFilters() {
73
- if (!this.status)
74
- return [];
75
- return [
76
- { c: "Status", o: "=", l: "And", v1: this.status, },
77
- ];
78
- }
79
- onClick({ key }) {
80
- this.menuKey = key.toString();
81
- if (key.toString().includes("Today"))
82
- this.dueDate = [moment().startOf("day"), moment().endOf("day")];
83
- if (key.toString().includes("Week"))
84
- this.dueDate = [moment().startOf("week"), moment().endOf("week")];
85
- if (key.toString().includes("Month"))
86
- this.dueDate = [moment().startOf("month"), moment().endOf("month")];
87
- if (key.toString().includes("Unscheduled"))
88
- this.dueDate = [
89
- moment().add(1, "months").startOf("month"),
90
- moment().add(1, "months").endOf("month"),
91
- ];
92
- if (key.toString().includes("All"))
93
- this.status = "";
94
- if (key.toString().includes("Read"))
95
- this.status = "Read";
96
- if (key.toString().includes("Later"))
97
- this.status = "Later";
98
- if (key.toString().includes("Dismissed"))
99
- this.status = "Dismissed";
65
+ updateNotificationTotal(oldStatus, status) {
66
+ this.notificationTotals[oldStatus.toLowerCase()]--;
67
+ this.notificationTotals[status.toLowerCase()]++;
100
68
  }
101
69
  /** Notifications list Options */
102
- get nAllOptions() {
103
- return { Total: true, List: false, };
70
+ get nUnreadOptions() {
71
+ return {
72
+ Total: true, List: false,
73
+ Filters: [
74
+ { c: "Status", o: "=", l: "And", v1: "Unread" },
75
+ ],
76
+ };
104
77
  }
105
78
  /** Notifications list Read Options */
106
79
  get nReadOptions() {
@@ -138,25 +111,16 @@ __decorate([
138
111
  ], State.prototype, "dueDate", void 0);
139
112
  __decorate([
140
113
  observable
141
- ], State.prototype, "status", void 0);
142
- __decorate([
143
- observable
144
- ], State.prototype, "nAllTotal", void 0);
145
- __decorate([
146
- observable
147
- ], State.prototype, "nReadTotal", void 0);
114
+ ], State.prototype, "notificationTotals", void 0);
148
115
  __decorate([
149
- observable
150
- ], State.prototype, "nLaterTotal", void 0);
151
- __decorate([
152
- observable
153
- ], State.prototype, "nDismissedTotal", void 0);
116
+ action
117
+ ], State.prototype, "navigate", null);
154
118
  __decorate([
155
119
  action
156
- ], State.prototype, "onClick", null);
120
+ ], State.prototype, "updateNotificationTotal", null);
157
121
  __decorate([
158
122
  computed
159
- ], State.prototype, "nAllOptions", null);
123
+ ], State.prototype, "nUnreadOptions", null);
160
124
  __decorate([
161
125
  computed
162
126
  ], State.prototype, "nReadOptions", null);
@@ -1 +1 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/pages/Space/pages/MySpace/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,MAAkB,MAAM,QAAQ,CAAC;AAMxC,MAAM,OAAO,KAAK;IAejB;QAdY;;;;mBAAiB,EAAE;WAAC;QAChC,sBAAsB;QACV;;;;;WAAmC;QAC/C,8BAA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G,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE;aAC7C;SACD,CAAC;IACH,CAAC;IAED,uCAAuC;IAEvC,IAAW,aAAa;QACvB,OAAO;YACN,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK;YACxB,OAAO,EAAE;gBACR,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE;aAC9C;SACD,CAAC;IACH,CAAC;IAED,2CAA2C;IAE3C,IAAW,iBAAiB;QAC3B,OAAO;YACN,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK;YACxB,OAAO,EAAE;gBACR,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE;aAClD;SACD,CAAC;IACH,CAAC;CACD;AAzFY;IAAX,UAAU;sCAAoD;AAEnD;IAAX,UAAU;sCAAoC;AAGnC;IAAX,UAAU;iDAKT;AAQM;IAAP,MAAM;qCAGN;AAmBD;IADC,MAAM;oDAIN;AAKD;IADC,QAAQ;2CAQR;AAID;IADC,QAAQ;yCAQR;AAID;IADC,QAAQ;0CAQR;AAID;IADC,QAAQ;8CAQR"}
@@ -1,7 +1,6 @@
1
- import { Button, Checkbox, Form, Input, Modal, Tabs } from "@voplus/antd";
1
+ import { Button, Form, Input, Modal, Tabs } from "@voplus/antd";
2
2
  import React, { useState } from "react";
3
3
  import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
4
- import FormSubmitView from "@voplus/morpho-form/es/pages/Edit";
5
4
  import WorkTypeSelect from "../../../WorkType/WorkTypeSelect";
6
5
  import classnames from "classnames";
7
6
  import { observe } from "@voplus/morpho-ui";
@@ -28,14 +27,11 @@ const NewWorkDialog = (props) => {
28
27
  React.createElement(Form.Item, { name: "Note", label: "Note" },
29
28
  React.createElement(Input.TextArea, { rows: 3, placeholder: "Add a Note", disabled: loading })),
30
29
  React.createElement(Form.Item, { className: "new-work-form_btn" },
31
- React.createElement(Button, { type: "primary", htmlType: "submit", loading: loading }, "Create")))),
32
- (workType === null || workType === void 0 ? void 0 : workType.newFormSchemaId) && (React.createElement(Tabs.TabPane, { tab: "RequestForm", key: "RequestForm" },
33
- React.createElement(Checkbox, null, "Request Form"),
34
- React.createElement(FormSubmitView, { id: workType.newFormSchemaId })))))));
30
+ React.createElement(Button, { type: "primary", htmlType: "submit", loading: loading }, "Create"))))))));
35
31
  /** submit work */
36
32
  async function onFinish(values) {
37
33
  setLoading(true);
38
- const r = await works.create({ data: { ...values, ParentId: parentId }, error: "message" });
34
+ const r = await works.create({ data: { ...values }, error: "message" });
39
35
  setLoading(false);
40
36
  if (finish)
41
37
  finish(r);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Work/components/NewWorkDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,cAAc,MAAM,mCAAmC,CAAC;AAG/D,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,aAAa,GAAG,CAAC,KAOtB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS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AAC,CAAC;IAEH,kBAAkB;IAClB,KAAK,UAAU,QAAQ,CAAC,MAAW;QAClC,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,MAAM,CAAC,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACxE,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,IAAI,MAAM;YAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -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,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAC3D,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,SAAS,MAAM,4BAA4B,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,eAAe,GAAG,GAAG,EAAE;IAC5B,MAAM,CAAC,YAAY,CAAC,GAAG,QA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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,WA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CAAC,SAA+C;QACpE,MAAM,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAC/E,MAAM,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACzE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/WorkType/WorkTypeCheckList/index.tsx"],"names":[],"mappings":"AAMA,MAAM,iBAAiB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACnD,wBAAwB;IAExB,oCAAoC;IAEpC,4CAA4C;IAE5C,yBAAyB;IACzB,cAAc;IACd,oCAAoC;IACpC,aAAa;IACb,0BAA0B;IAC1B,wBAAwB;IACxB,wBAAwB;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
  export default WorkTypeDetail;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/WorkType/WorkTypeDetail/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAExD,OAAO,UAAU,MAAM,qEAAqE,CAAC;AAC7F,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,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AAC,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,M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,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC9D,CAAC;QACF,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAgB,CAAC;IACxC,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,EAAU,EAAE,OAA4B;QACzD,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,IAAI,OAAO,CAAC,QAAQ;YAAE,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3E,IAAI,KAAK;YAAE,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,kBAAkB,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;QAClE,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAc,CAAC;IACtC,CAAC;CACD;AAED,2BAA2B;AAC3B,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;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
  }