@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,26 +1,69 @@
1
+ import "./index.less";
2
+ import { useNotification, useNotificationListEffect, useNotificationStore, } from "../../../../data/notification";
1
3
  import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
2
- import React, { useEffect, useState } from "react";
3
- import MentionNotificaitonCard from "../../../../modules/notification/components/MentionNotificaitonCard";
4
- import { useNotificaitonListEffect } from "../../../../data/notification";
5
- import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
4
+ import React from "react";
6
5
  import { observe, useRenderOnChange } from "@voplus/morpho-ui";
7
- import DocumentPropertiesView from "@voplus/morpho-document/es/components/DocumentPropertiesView";
8
- import "./index.less";
9
- const NotificaitonList = (props) => {
10
- const [active, setActive] = useState(null);
6
+ import { CSSTransition } from "react-transition-group";
7
+ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
8
+ import MentionNotificationCard from "../MentionNotificationCard";
9
+ import PropertiesView from "@voplus/morpho-document/es/components/PropertiesView";
10
+ import S from "string";
11
+ import { runInAction } from "mobx";
12
+ const NotificationList = (props) => {
13
+ const store = useNotificationStore();
11
14
  // const list = useCreateListDataState<INotificaiton>({}, []);
12
- const list = useCreateListDataState({ filterDefaults: { filters: [], }, }, []);
13
- useEffect(() => {
14
- if (props.filters)
15
- list.clear();
16
- }, [props.filters]);
17
- list.filters.options.Filters = props.filters || [];
15
+ const list = useCreateListDataState({ filterDefaults: { filters: filters() } }, [
16
+ props.status,
17
+ ]);
18
18
  /** 如果 list.filters.options变更了就重渲染,使下一行的useNotificaitonListEffect 可以接收新参数*/
19
19
  useRenderOnChange(() => list.filters.options);
20
20
  /** 把ListDataState传给useNotificaitonListEffect,使之可以自動更新loading, hasmore. */
21
- useNotificaitonListEffect(list, (result) => list.union(result), list.filters.options);
21
+ useNotificationListEffect(list, (result, total) => {
22
+ var _a;
23
+ list.union(result);
24
+ (_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total);
25
+ }, {
26
+ Total: true,
27
+ ...list.filters.options,
28
+ });
29
+ // try to load the active notification and add to list if it's not already there.
30
+ useNotification(props.active, {
31
+ onLoad: (item) => {
32
+ list.insert(item, 0);
33
+ if (item.status === "Unread") {
34
+ editStatus(item.id, "Read");
35
+ }
36
+ },
37
+ });
22
38
  return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
23
- React.createElement(ListView, { headerProps: { viewTitle: "My Notificaitons", addAble: false, sortable: false }, className: "my-space-notificaitons", renderItem: ({ item }) => (React.createElement(MentionNotificaitonCard, { id: item.id, key: item.id, notificaiton: item, className: active === item.id ? "active" : "", onClick: () => setActive(item.id) })), propertiesView: (id, item) => React.createElement(DocumentPropertiesView, { id: item.content.documentId }) }))));
39
+ React.createElement(ListView, { headerProps: { viewTitle: "My Notifications", addAble: false, sortable: false }, className: "my-space-notifications", renderItem: ({ item }) => {
40
+ return (React.createElement(CSSTransition, { key: item.id, in: list.isRemoving(item.id) !== true, timeout: 300, classNames: "notification-card" },
41
+ React.createElement(MentionNotificationCard, { id: item.id, active: props.active === item.id ? true : false, onClick: (ev) => { var _a; return (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, ev, item); }, onChangeStatus: (status) => editStatus(item.id, status) })));
42
+ }, propertiesView: (id, item) => React.createElement(PropertiesView, { id: item.content.documentId }) }))));
43
+ function filters() {
44
+ if (!props.status || props.status == "all")
45
+ return [];
46
+ return [
47
+ {
48
+ c: "Status",
49
+ o: "=",
50
+ l: "And",
51
+ v1: S(props.status).capitalize().toString(),
52
+ },
53
+ ];
54
+ }
55
+ function editStatus(id, status) {
56
+ runInAction(async () => {
57
+ var _a;
58
+ const item = store.items.get(id);
59
+ const old = item.status;
60
+ await store.edit(id, { data: { status: status }, error: "message" });
61
+ (_a = props.onItemStatusChanged) === null || _a === void 0 ? void 0 : _a.call(props, old, item);
62
+ if (props.status === "unread" && item.status === "Read")
63
+ return;
64
+ list.remove(item.id, { delay: 300 });
65
+ });
66
+ }
24
67
  };
25
- export default NotificaitonList;
68
+ export default NotificationList;
26
69
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,uBAAuB,MAAM,qEAAqE,CAAC;AAE1G,OAAO,EAAiB,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,sBAAsB,MAAM,8DAA8D,CAAC;AAClG,OAAO,cAAc,CAAC;AAEtB,MAAM,gBAAgB,GAAG,CAAC,KAAmC,EAAE,EAAE;IAC7D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE1D,8DAA8D;IAC9D,MAAM,IAAI,GAAG,sBAAsB,CAC/B,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,GAAG,EAAE,EAAE,C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AAO,CAAC,UAAU,GAAI,GAC5F,CACqB,CAC9B,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAGN,eAAe,EACf,yBAAyB,EACzB,oBAAoB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,MAAM,gBAAgB,GAAG,CAAC,KAezB,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,8DAA8D;IAC9D,MAAM,IAAI,GAAG,sBAAsB,CAAgB,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;QAC9F,KAAK,CAAC,MAAM;KACZ,CAAC,CAAC;IAEH,2EAA2E;IAC3E,iBAAiB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9C,0EAA0E;IAC1E,yBAAyB,CACxB,IAAI,EACJ,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;;QACjB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACnB,MAAA,KAAK,CAAC,OA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AAC,CAAC;QACtC,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,6 +1,24 @@
1
+ @import "~@voplus/antd/es/style/themes/index.less";
1
2
  :global {
2
- .my-space-notificaitons {
3
- background-color: #fff;
3
+ .my-notifications {
4
+ //background-color: #fff;
4
5
  padding: 0 !important;
6
+ .list-view-main {
7
+ background-color: @background-color-base;
8
+ }
9
+ .list-view-header {
10
+ background-color: @background-color-base;
11
+ .view-title {
12
+ color: @heading-color;
13
+ font-size: @heading-3-size;
14
+ }
15
+ }
16
+ }
17
+ .notification-card-exit {
18
+ opacity: 1;
19
+ }
20
+ .notification-card-exit-active {
21
+ opacity: 0;
22
+ transition: opacity 300ms;
5
23
  }
6
24
  }
@@ -55,8 +55,8 @@ const TaskSummaryCard = (props) => {
55
55
  React.createElement(FilterView, { columns: [React.createElement(DocumentStatusFilter, { key: "DocumentStatus" })] })),
56
56
  React.createElement("span", { className: "menu-refresh", onClick: props.onReload },
57
57
  React.createElement(FAIcon, { icon: faRedo })))));
58
- return observe(() => (React.createElement(DCard, { title: "TaskSummary", menu: menu, className: styles["task-summary-card"] }, state.loading ? (React.createElement("div", { className: "card-loading" },
59
- React.createElement(Spin, { tip: "Loading...", indicator: React.createElement(LoadingOutlined, null) }))) : !!(pieData && pieData.length) ? (React.createElement("div", { ref: divEl })) : (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })))));
58
+ return observe(() => (React.createElement(DCard, { title: "TaskSummary", menu: menu, className: styles["task-summary-card"] }, (pieData && pieData.length) ? (React.createElement("div", { ref: divEl })) : state.loading ? (React.createElement("div", { className: "card-loading" },
59
+ React.createElement(Spin, { tip: "Loading...", indicator: React.createElement(LoadingOutlined, null) }))) : (React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })))));
60
60
  };
61
61
  TaskSummaryCard.defaultProps = {
62
62
  width: 400,
@@ -1 +1 @@
1
- {"version":3,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AG,CAAC,GAAI,CACzC;QAEhC,8BAAM,SAAS,EAAC,cAAc,EAAC,OAAO,EAAE,KAAK,CAAC,QAAQ;YACrD,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAM,GAAI,CAClB,CACF,CACN,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,IAAC,KAAK,EAAC,aAAa,EAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,IAC3E,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAC9B,6BAAK,GAAG,EAAE,KAAK,GAAI,CACnB,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CACnB,6BAAK,SAAS,EAAC,cAAc;QAC5B,oBAAC,IAAI,IAAC,GAAG,EAAC,YAAY,EAAC,SAAS,EAAE,oBAAC,eAAe,OAAG,GAAI,CACpD,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,GAAI,CAC9C,CACM,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,CAAC,YAAY,GAAG;IAC9B,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,GAAG;CACX,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const NewWorkErrorDialog: (props: {
4
+ WorkId: string;
5
+ className?: string | undefined;
6
+ onSubmitSave?: ((params?: any) => void) | undefined;
7
+ onCancel?: (() => void) | undefined;
8
+ }) => JSX.Element;
9
+ export default NewWorkErrorDialog;
@@ -0,0 +1,70 @@
1
+ import "./index.less";
2
+ import { Button, Form, Row, Select, Space, } from "@voplus/antd";
3
+ import React, { useState } from "react";
4
+ import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
5
+ import Modal from "@voplus/morpho-ui/es/components/Modal";
6
+ import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
7
+ import { State } from "./state";
8
+ import classnames from "classnames";
9
+ import { observe } from "@voplus/morpho-ui";
10
+ import { runInAction } from "mobx";
11
+ import { useApplicationContext } from "@voplus/morpho-data";
12
+ import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
13
+ import { useWorkErrorStore } from "../../../../data/workerror";
14
+ // import { useWorkspaceStore } from "../../../../data/workspace";
15
+ const NewWorkErrorDialog = (props) => {
16
+ // const workspaces = useWorkspaceStore();
17
+ const { Option } = Select;
18
+ const [state] = useState(new State());
19
+ const { user } = useApplicationContext();
20
+ const store = useWorkErrorStore();
21
+ const asideContext = useAsideContentContext();
22
+ return observe(() => (React.createElement(Modal, { title: "New Error Dialog", visible: true, destroyOnClose: true, closable: false, footer: null, onCancel: props.onCancel },
23
+ React.createElement("div", { className: classnames("new-error-form", props.className) },
24
+ React.createElement(Form, { layout: "vertical" },
25
+ React.createElement(React.Fragment, null,
26
+ React.createElement(Form.Item, { label: "type for your error" },
27
+ React.createElement(Select, { defaultValue: "Type1", onChange: (value) => state.params.Type = value },
28
+ React.createElement(Option, { value: "Type1" }, "Type1"),
29
+ React.createElement(Option, { value: "Type2" }, "Type2"),
30
+ React.createElement(Option, { value: "Type3" }, "Type3"))),
31
+ React.createElement(Form.Item, { label: "Severity for your error" },
32
+ React.createElement(Select, { defaultValue: "S0", onChange: (value) => {
33
+ state.params.Severity = value;
34
+ } },
35
+ React.createElement(Option, { value: "S0" }, "S0"),
36
+ React.createElement(Option, { value: "S1" }, "S1"),
37
+ React.createElement(Option, { value: "S2" }, "S2"))),
38
+ React.createElement(Form.Item, { label: "Causer of your error" },
39
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, onChange: (ids) => { state.params.CauserIds = ids; } })),
40
+ React.createElement(Form.Item, { label: "Description of your error" },
41
+ React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", onChange: (opt) => (state.params.Description =
42
+ opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })),
43
+ React.createElement(Form.Item, null,
44
+ React.createElement(Row, { justify: "end" },
45
+ React.createElement(Space, null,
46
+ React.createElement(Button, { onClick: onCancel }, "Cancel"),
47
+ React.createElement(Button, { type: "primary", loading: !!state.loading, onClick: onSubmit }, "Submit"))))))))));
48
+ async function onSubmit() {
49
+ // if (!state.params.Name) return message.warning("Title is required");
50
+ runInAction(() => (state.loading = true));
51
+ const res = await store.create({
52
+ data: { ...state.params, WorkId: props.WorkId },
53
+ error: "message",
54
+ });
55
+ runInAction(() => {
56
+ state.loading = false;
57
+ state.params = state.Params;
58
+ });
59
+ if (props.onSubmitSave)
60
+ props.onSubmitSave(state.params);
61
+ }
62
+ // cancel add error
63
+ function onCancel() {
64
+ state.params = state.Params;
65
+ if (props.onCancel)
66
+ props.onCancel();
67
+ }
68
+ };
69
+ export default NewWorkErrorDialog;
70
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkErrorDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAEH,MAAM,EAEN,IAAI,EAEJ,GAAG,EACH,MAAM,EACN,KAAK,GAER,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,KAAK,MAAM,uCAAuC,CAAC;AAC1D,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MA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CAC1C,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,aAEzD,CACL,CACN,CACE,CACC,CACd,CACL,CACF,CAEX,CAAC,CAAC;IACH,KAAK,UAAU,QAAQ;QACnB,uEAAuE;QACvE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;QAC1C,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,MAAM,CAAC;YAC3B,IAAI,EAAE,EAAE,GAAG,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;YAC/C,KAAK,EAAE,SAAS;SACnB,CAAC,CAAC;QACH,WAAW,CAAC,GAAG,EAAE;YACb,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAChC,CAAC,CAAC,CAAC;QACH,IAAI,KAAK,CAAC,YAAY;YAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IACD,mBAAmB;IACnB,SAAS,QAAQ;QACb,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC;AACL,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,18 @@
1
+ @import "../../../../style/common.less";
2
+ @import "~@voplus/antd/es/style/themes/default.less";
3
+ :global {
4
+ .new-error-form {
5
+ .ant-select {
6
+ width: 100%;
7
+ }
8
+ .proseMirror {
9
+ height: 10rem !important;
10
+ .editor-toolbar {
11
+ padding: 0.2rem 0.65rem;
12
+ }
13
+ .ProseMirror {
14
+ padding: 1rem 1.25rem;
15
+ }
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,16 @@
1
+ export declare class State {
2
+ constructor();
3
+ Params: {
4
+ Type: string;
5
+ Severity: string;
6
+ CauserIds: string[];
7
+ Description: string;
8
+ };
9
+ params: {
10
+ Type: string;
11
+ Severity: string;
12
+ CauserIds: string[];
13
+ Description: string;
14
+ };
15
+ loading: boolean;
16
+ }
@@ -0,0 +1,37 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ Object.defineProperty(this, "Params", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: {
10
+ Type: "Type1",
11
+ Severity: "S1",
12
+ CauserIds: [""],
13
+ Description: "",
14
+ }
15
+ });
16
+ Object.defineProperty(this, "params", {
17
+ enumerable: true,
18
+ configurable: true,
19
+ writable: true,
20
+ value: this.Params
21
+ });
22
+ Object.defineProperty(this, "loading", {
23
+ enumerable: true,
24
+ configurable: true,
25
+ writable: true,
26
+ value: false
27
+ });
28
+ makeObservable(this);
29
+ }
30
+ }
31
+ __decorate([
32
+ observable
33
+ ], State.prototype, "params", void 0);
34
+ __decorate([
35
+ observable
36
+ ], State.prototype, "loading", void 0);
37
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/NewWorkErrorDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIlD,MAAM,OAAO,KAAK;IACjB;QAGA;;;;mBAAgB;gBACf,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC,EAAE,CAAC;gBACf,WAAW,EAAE,EAAE;aACf;WAAC;QACU;;;;mBAAgB,IAAI,CAAC,MAAM;WAAC;QAC5B;;;;mBAAiB,KAAK;WAAC;QATlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CASD;AAFY;IAAX,UAAU;qCAA6B;AAC5B;IAAX,UAAU;sCAAwB"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const RejectWorkDialog: (props: {
4
+ parentId?: string | undefined;
5
+ className?: string | undefined;
6
+ onSubmitSave?: ((params?: any) => void) | undefined;
7
+ onCancel?: (() => void) | undefined;
8
+ }) => JSX.Element;
9
+ export default RejectWorkDialog;
@@ -0,0 +1,54 @@
1
+ import "./index.less";
2
+ import { Button, Form, Row, Select, Space, } from "@voplus/antd";
3
+ import React, { useState } from "react";
4
+ import Modal from "@voplus/morpho-ui/es/components/Modal";
5
+ import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
6
+ import { State } from "./state";
7
+ import classnames from "classnames";
8
+ import { observe } from "@voplus/morpho-ui";
9
+ import { runInAction } from "mobx";
10
+ // import { useWorkspaceStore } from "../../../../data/workspace";
11
+ const RejectWorkDialog = (props) => {
12
+ // const workspaces = useWorkspaceStore();
13
+ const { Option } = Select;
14
+ const [state] = useState(new State());
15
+ return observe(() => (React.createElement(Modal, { title: "Reject Work Dialog", visible: true, destroyOnClose: true, closable: false, footer: null, onCancel: props.onCancel },
16
+ React.createElement("div", { className: classnames("new-reject-form", props.className) },
17
+ React.createElement(Form, { layout: "vertical" },
18
+ React.createElement(React.Fragment, null,
19
+ React.createElement(Form.Item, { label: "Reason for your reject work" },
20
+ React.createElement(Select, { defaultValue: "Reason1", onChange: (value) => state.params.Reason = value },
21
+ React.createElement(Option, { value: "Reason1" }, "Reason1"),
22
+ React.createElement(Option, { value: "Reason2" }, "Reason2"),
23
+ React.createElement(Option, { value: "Reason3" }, "Reason3"))),
24
+ React.createElement(Form.Item, { label: "Description of your reject work" },
25
+ React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", onChange: (opt) => (state.params.Description =
26
+ opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })),
27
+ React.createElement(Form.Item, null,
28
+ React.createElement(Row, { justify: "end" },
29
+ React.createElement(Space, null,
30
+ React.createElement(Button, { onClick: onCancel }, "Cancel"),
31
+ React.createElement(Button, { type: "primary", loading: !!state.loading, onClick: onSubmit }, "Submit"))))))))));
32
+ async function onSubmit() {
33
+ // if (!state.params.Name) return message.warning("Title is required");
34
+ runInAction(() => (state.loading = true));
35
+ // const res = await workspaces.create({
36
+ // data: { ...state.params, ParentId: props.parentId },
37
+ // error: "message",
38
+ // });
39
+ runInAction(() => {
40
+ state.loading = false;
41
+ state.params = state.Params;
42
+ });
43
+ if (props.onSubmitSave)
44
+ props.onSubmitSave(state.params);
45
+ }
46
+ // cancel add reject work
47
+ function onCancel() {
48
+ state.params = state.Params;
49
+ if (props.onCancel)
50
+ props.onCancel();
51
+ }
52
+ };
53
+ export default RejectWorkDialog;
54
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/RejectWorkDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACH,MAAM,EACN,IAAI,EAEJ,GAAG,EACH,MAAM,EACN,KAAK,GAER,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,MAAM,uCAAuC,CAAC;AAC1D,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,kEAAkE;AAElE,MAAM,gBAAgB,GAAG,CAAC,KAKzB,EAAE,EAAE;IACD,0CAA0C;IAC1C,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC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,CAAC,IAAI;wBACN,oBAAC,GAAG,IAAC,OAAO,EAAC,KAAK;4BACd,oBAAC,KAAK;gCACF,oBAAC,MAAM,IAAC,OAAO,EAAE,QAAQ,aAAiB;gCAC1C,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,aAEzD,CACL,CACN,CACE,CACC,CACd,CACL,CACF,CAEX,CAAC,CAAC;IACH,KAAK,UAAU,QAAQ;QACnB,uEAAuE;QACvE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC;QAC1C,wCAAwC;QACxC,2DAA2D;QAC3D,wBAAwB;QACxB,MAAM;QACN,WAAW,CAAC,GAAG,EAAE;YACb,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACtB,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAChC,CAAC,CAAC,CAAC;QACH,IAAI,KAAK,CAAC,YAAY;YAAE,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IACD,yBAAyB;IACzB,SAAS,QAAQ;QACb,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACzC,CAAC;AACL,CAAC,CAAC;AACF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,18 @@
1
+ @import "../../../../style/common.less";
2
+ @import "~@voplus/antd/es/style/themes/default.less";
3
+ :global {
4
+ .new-reject-form {
5
+ .ant-select {
6
+ width: 100%;
7
+ }
8
+ .proseMirror {
9
+ height: 10rem !important;
10
+ .editor-toolbar {
11
+ padding: 0.2rem 0.65rem;
12
+ }
13
+ .ProseMirror {
14
+ padding: 1rem 1.25rem;
15
+ }
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,12 @@
1
+ export declare class State {
2
+ constructor();
3
+ Params: {
4
+ Reason: string;
5
+ Description: string;
6
+ };
7
+ params: {
8
+ Reason: string;
9
+ Description: string;
10
+ };
11
+ loading: boolean;
12
+ }
@@ -0,0 +1,35 @@
1
+ import { __decorate } from "tslib";
2
+ import { makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor() {
5
+ Object.defineProperty(this, "Params", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: {
10
+ Reason: "",
11
+ Description: "",
12
+ }
13
+ });
14
+ Object.defineProperty(this, "params", {
15
+ enumerable: true,
16
+ configurable: true,
17
+ writable: true,
18
+ value: this.Params
19
+ });
20
+ Object.defineProperty(this, "loading", {
21
+ enumerable: true,
22
+ configurable: true,
23
+ writable: true,
24
+ value: false
25
+ });
26
+ makeObservable(this);
27
+ }
28
+ }
29
+ __decorate([
30
+ observable
31
+ ], State.prototype, "params", void 0);
32
+ __decorate([
33
+ observable
34
+ ], State.prototype, "loading", void 0);
35
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/RejectWorkDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAGA;;;;mBAAgB;gBACf,MAAM,EAAE,EAAE;gBACV,WAAW,EAAE,EAAE;aACf;WAAC;QACU;;;;mBAAgB,IAAI,CAAC,MAAM;WAAC;QAC5B;;;;mBAAiB,KAAK;WAAC;QAPlC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CAOD;AAFY;IAAX,UAAU;qCAA6B;AAC5B;IAAX,UAAU;sCAAwB"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkErrorItem: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default WorkErrorItem;
@@ -0,0 +1,24 @@
1
+ import "./index.less";
2
+ import { Col, Row, Tag } from "@voplus/antd";
3
+ import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
4
+ import { ExclamationCircleOutlined } from "@ant-design/icons";
5
+ import React from "react";
6
+ import moment from "moment";
7
+ import { observe } from "@voplus/morpho-ui";
8
+ import { useApplicationContext } from "@voplus/morpho-data";
9
+ import { useWorkError } from "../../../../data/workerror";
10
+ const WorkErrorItem = (props) => {
11
+ const { user } = useApplicationContext();
12
+ const workError = useWorkError(props.id);
13
+ return observe(() => React.createElement("div", { className: "workerror-item" },
14
+ React.createElement(Row, null,
15
+ React.createElement(Col, { flex: 3 },
16
+ React.createElement("div", null,
17
+ React.createElement(ExclamationCircleOutlined, { style: { color: "red" } }),
18
+ React.createElement(Tag, { color: "purple" }, workError.type)),
19
+ React.createElement("div", { className: "workerror-date" }, moment(workError.due).format("DD MMM yyyy"))),
20
+ React.createElement(Col, { flex: 2, className: "workerror-causers" },
21
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, list: workError.causers || [], editable: false })))));
22
+ };
23
+ export default WorkErrorItem;
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,aAAa,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC5C,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAChB,6BAAK,SAAS,EAAC,gBAAgB;QAC3B,oBAAC,GAAG;YACA,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC;gBACR;oBACI,oBAAC,yBAAyB,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAI;oBACtD,oBAAC,GAAG,IAAC,KAAK,EAAC,QAAQ,IAAE,SAAS,CAAC,IAAI,CAAO,CACxC;gBACN,6BAAK,SAAS,EAAC,gBAAgB,IAC1B,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAC1C,CACJ;YACN,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC,EAAE,SAAS,EAAC,mBAAmB;gBACvC,oBAAC,UAAU,IACP,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,IAAI,EAAE,SAAS,CAAC,OAAO,IAAI,EAAE,EAC7B,QAAQ,EAAE,KAAK,GACjB,CACA,CACJ,CAEJ,CACT,CAAA;AACL,CAAC,CAAA;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,26 @@
1
+ :global {
2
+ .workerror-item {
3
+ padding: 10px 20px;
4
+ background: transparent;
5
+ &:hover{
6
+ background: #f3f1f1;
7
+ }
8
+ .workerror-causers{
9
+ display: flex;
10
+ align-items: center;
11
+ }
12
+ .workerror-name {
13
+ font-size: 15px;
14
+ color: #000;
15
+ font-weight: 500;
16
+ word-break: break-all;
17
+ margin: 0 8px;
18
+ }
19
+ .ant-tag {
20
+ padding: 0 5px;
21
+ font-size: 12px;
22
+ line-height: 15px;
23
+ margin-left: 8px;
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ /** A work error list view shows work error in card style. */
4
+ declare const WorkErrorList: (props: {
5
+ id: string;
6
+ onClickItem?: ((id: string) => void) | undefined;
7
+ }) => JSX.Element;
8
+ export default WorkErrorList;
@@ -0,0 +1,44 @@
1
+ import "./index.less";
2
+ import { useWorkErrorListEffect } from "../../../../data/workerror";
3
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
4
+ import React, { useState } from "react";
5
+ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
6
+ import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
7
+ import InfiniteScrollView from "@voplus/morpho-ui/es/controls/InfiniteScrollView";
8
+ import WorkErrorItem from "../WorkErrorItem";
9
+ import { useAutoUpdateListData } from "../../../../data/workerror/workerror-events";
10
+ /** A work error list view shows work error in card style. */
11
+ const WorkErrorList = (props) => {
12
+ const [activeId, setActiveId] = useState("");
13
+ /** 建立 ListView 和useWorkErrorListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
14
+ const list = useCreateListDataState({
15
+ filterDefaults: {
16
+ includes: "tags",
17
+ filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: props.id }]
18
+ },
19
+ }, [props.id]);
20
+ /** 如果 list.filters.options变更了就重渲染,使下一行的useWorkErrorListEffect 可以接收新参数*/
21
+ useRenderOnChange(() => list.filters.options);
22
+ /** 把ListDataState传给useWorkErrorListEffect,使之可以自動更新loading, hasmore. */
23
+ useWorkErrorListEffect(list, (result) => list.union(result), list.filters.options);
24
+ /** useOnNewWorkError, useOnDeleteWorkError的sugar syntax 自動更新list. */
25
+ useAutoUpdateListData(list, (d) => true);
26
+ return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
27
+ React.createElement("div", { className: "workerror-list-view" },
28
+ React.createElement(InfiniteScrollView, { empty: list.isEmpty, loading: list.loading, hasMore: list.hasMore, loadMore: loadMore }, list.data.map((item) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: {
29
+ active: activeId === item.id,
30
+ hoverEffect: "none",
31
+ activeEffect: "border",
32
+ borderProps: { location: "right", color: "#1890ff ", size: "2px" },
33
+ }, onClick: () => {
34
+ var _a;
35
+ setActiveId(item.id);
36
+ (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item.id);
37
+ } },
38
+ React.createElement(WorkErrorItem, { id: item.id })))))))));
39
+ function loadMore() {
40
+ list.triggerNextPage();
41
+ }
42
+ };
43
+ export default WorkErrorList;
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAc,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,6DAA6D;AAC7D,MAAM,aAAa,GAAG,CAAC,KAGtB,EAAE,EAAE;IAED,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAE7C,mFAAmF;IACnF,MAAM,IAAI,GAAG,sBAAsB,CAC/B;QACI,cAAc,EAAE;YACZ,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,c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AC;oBACrB,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,EAAE,CAAC,CAAC;gBACjC,CAAC;gBAED,oBAAC,aAAa,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACd,CAEvB,CAAC,CACe,CACnB,CACiB,CAE9B,CAAC,CAAC;IAEH,SAAS,QAAQ;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;IAC3B,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,5 @@
1
+ :global {
2
+ .workerror-list-view {
3
+ height: 100%;
4
+ }
5
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkErrorPropertiesView: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default WorkErrorPropertiesView;