@voplus/morpho-workspace 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/es/controls/filters/WorkStatusFilter/index.d.ts +3 -0
  2. package/es/controls/filters/WorkStatusFilter/index.js +21 -0
  3. package/es/controls/filters/WorkStatusFilter/index.js.map +1 -0
  4. package/es/controls/filters/WorkStatusFilter/state.d.ts +17 -0
  5. package/es/controls/filters/WorkStatusFilter/state.js +49 -0
  6. package/es/controls/filters/WorkStatusFilter/state.js.map +1 -0
  7. package/es/data/notification/interfaces.d.ts +2 -1
  8. package/es/data/work/WorkStore.d.ts +10 -0
  9. package/es/data/work/WorkStore.js +21 -0
  10. package/es/data/work/WorkStore.js.map +1 -0
  11. package/es/data/work/hook.d.ts +9 -0
  12. package/es/data/work/hook.js +20 -0
  13. package/es/data/work/hook.js.map +1 -0
  14. package/es/data/work/index.d.ts +3 -0
  15. package/es/data/work/index.js +4 -0
  16. package/es/data/work/index.js.map +1 -0
  17. package/es/data/work/interfaces.d.ts +37 -0
  18. package/es/data/work/interfaces.js +2 -0
  19. package/es/data/work/interfaces.js.map +1 -0
  20. package/es/data/workerror/WorkErrorStore.d.ts +37 -0
  21. package/es/data/workerror/WorkErrorStore.js +117 -0
  22. package/es/data/workerror/WorkErrorStore.js.map +1 -0
  23. package/es/data/workerror/hook.d.ts +9 -0
  24. package/es/data/workerror/hook.js +19 -0
  25. package/es/data/workerror/hook.js.map +1 -0
  26. package/es/data/workerror/index.d.ts +4 -0
  27. package/es/data/workerror/index.js +5 -0
  28. package/es/data/workerror/index.js.map +1 -0
  29. package/es/data/workerror/interfaces.d.ts +20 -0
  30. package/es/data/workerror/interfaces.js +2 -0
  31. package/es/data/workerror/interfaces.js.map +1 -0
  32. package/es/data/workerror/types.d.ts +50 -0
  33. package/es/data/workerror/types.js +9 -0
  34. package/es/data/workerror/types.js.map +1 -0
  35. package/es/data/workerror/workerror-events/index.d.ts +3 -0
  36. package/es/data/workerror/workerror-events/index.js +4 -0
  37. package/es/data/workerror/workerror-events/index.js.map +1 -0
  38. package/es/data/workerror/workerror-events/useAutoUpdateListData.d.ts +4 -0
  39. package/es/data/workerror/workerror-events/useAutoUpdateListData.js +13 -0
  40. package/es/data/workerror/workerror-events/useAutoUpdateListData.js.map +1 -0
  41. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.d.ts +4 -0
  42. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js +17 -0
  43. package/es/data/workerror/workerror-events/useOnDeleteWorkspace.js.map +1 -0
  44. package/es/data/workerror/workerror-events/useOnNewWorkspace.d.ts +4 -0
  45. package/es/data/workerror/workerror-events/useOnNewWorkspace.js +17 -0
  46. package/es/data/workerror/workerror-events/useOnNewWorkspace.js.map +1 -0
  47. package/es/data/workspace/WorkSpaceStore.d.ts +39 -0
  48. package/es/data/workspace/WorkSpaceStore.js +134 -0
  49. package/es/data/workspace/WorkSpaceStore.js.map +1 -0
  50. package/es/data/workspace/hooks.d.ts +13 -0
  51. package/es/data/workspace/hooks.js +23 -0
  52. package/es/data/workspace/hooks.js.map +1 -0
  53. package/es/data/workspace/index.d.ts +4 -0
  54. package/es/data/workspace/index.js +5 -0
  55. package/es/data/workspace/index.js.map +1 -0
  56. package/es/data/workspace/interfaces.d.ts +17 -0
  57. package/es/data/workspace/interfaces.js +2 -0
  58. package/es/data/workspace/interfaces.js.map +1 -0
  59. package/es/data/workspace/types.d.ts +28 -0
  60. package/es/data/workspace/types.js +2 -0
  61. package/es/data/workspace/types.js.map +1 -0
  62. package/es/data/workspace/useWorkSpaceCompletedWorkEffect.d.ts +10 -0
  63. package/es/data/workspace/useWorkSpaceCompletedWorkEffect.js +14 -0
  64. package/es/data/workspace/useWorkSpaceCompletedWorkEffect.js.map +1 -0
  65. package/es/data/workspace/workspace-events/index.d.ts +3 -0
  66. package/es/data/workspace/workspace-events/index.js +4 -0
  67. package/es/data/workspace/workspace-events/index.js.map +1 -0
  68. package/es/data/workspace/workspace-events/useAutoUpdateListData.d.ts +4 -0
  69. package/es/data/workspace/workspace-events/useAutoUpdateListData.js +13 -0
  70. package/es/data/workspace/workspace-events/useAutoUpdateListData.js.map +1 -0
  71. package/es/data/workspace/workspace-events/useOnDeleteWorkspace.d.ts +4 -0
  72. package/es/data/workspace/workspace-events/useOnDeleteWorkspace.js +17 -0
  73. package/es/data/workspace/workspace-events/useOnDeleteWorkspace.js.map +1 -0
  74. package/es/data/workspace/workspace-events/useOnNewWorkspace.d.ts +4 -0
  75. package/es/data/workspace/workspace-events/useOnNewWorkspace.js +17 -0
  76. package/es/data/workspace/workspace-events/useOnNewWorkspace.js.map +1 -0
  77. package/es/data/worktype/WorkTypeStore.d.ts +21 -0
  78. package/es/data/worktype/WorkTypeStore.js +75 -0
  79. package/es/data/worktype/WorkTypeStore.js.map +1 -0
  80. package/es/data/worktype/hook.d.ts +9 -0
  81. package/es/data/worktype/hook.js +20 -0
  82. package/es/data/worktype/hook.js.map +1 -0
  83. package/es/data/worktype/index.d.ts +4 -0
  84. package/es/data/worktype/index.js +5 -0
  85. package/es/data/worktype/index.js.map +1 -0
  86. package/es/data/worktype/interfaces.d.ts +57 -0
  87. package/es/data/worktype/interfaces.js +2 -0
  88. package/es/data/worktype/interfaces.js.map +1 -0
  89. package/es/data/worktype/types.d.ts +55 -0
  90. package/es/data/worktype/types.js +2 -0
  91. package/es/data/worktype/types.js.map +1 -0
  92. package/es/data/worktype/useWorkTypeCompletedWorkEffect.d.ts +10 -0
  93. package/es/data/worktype/useWorkTypeCompletedWorkEffect.js +14 -0
  94. package/es/data/worktype/useWorkTypeCompletedWorkEffect.js.map +1 -0
  95. package/es/modules/board/components/Board/index.js +1 -3
  96. package/es/modules/board/components/Board/index.js.map +1 -1
  97. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +2 -2
  98. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
  99. package/es/modules/meeting/components/MeetingList/index.js +1 -2
  100. package/es/modules/meeting/components/MeetingList/index.js.map +1 -1
  101. package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.d.ts +2 -2
  102. package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.js +3 -3
  103. package/es/modules/notification/components/DocumentNotificationCard/index.js.map +1 -0
  104. package/es/modules/notification/components/NotificationList/index.js +2 -2
  105. package/es/modules/notification/components/NotificationList/index.js.map +1 -1
  106. package/es/modules/notification/components/NotificationList/index.less +11 -3
  107. package/es/modules/tasks/reports/TaskSummaryCard/index.js +2 -2
  108. package/es/modules/tasks/reports/TaskSummaryCard/index.js.map +1 -1
  109. package/es/modules/work/components/NewWorkErrorDialog/index.d.ts +9 -0
  110. package/es/modules/work/components/NewWorkErrorDialog/index.js +70 -0
  111. package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -0
  112. package/es/modules/work/components/NewWorkErrorDialog/index.less +18 -0
  113. package/es/modules/work/components/NewWorkErrorDialog/state.d.ts +16 -0
  114. package/es/modules/work/components/NewWorkErrorDialog/state.js +37 -0
  115. package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -0
  116. package/es/modules/work/components/RejectWorkDialog/index.d.ts +9 -0
  117. package/es/modules/work/components/RejectWorkDialog/index.js +54 -0
  118. package/es/modules/work/components/RejectWorkDialog/index.js.map +1 -0
  119. package/es/modules/work/components/RejectWorkDialog/index.less +18 -0
  120. package/es/modules/work/components/RejectWorkDialog/state.d.ts +12 -0
  121. package/es/modules/work/components/RejectWorkDialog/state.js +35 -0
  122. package/es/modules/work/components/RejectWorkDialog/state.js.map +1 -0
  123. package/es/modules/work/components/WorkErrorItem/index.d.ts +6 -0
  124. package/es/modules/work/components/WorkErrorItem/index.js +24 -0
  125. package/es/modules/work/components/WorkErrorItem/index.js.map +1 -0
  126. package/es/modules/work/components/WorkErrorItem/index.less +26 -0
  127. package/es/modules/work/components/WorkErrorList/index.d.ts +8 -0
  128. package/es/modules/work/components/WorkErrorList/index.js +44 -0
  129. package/es/modules/work/components/WorkErrorList/index.js.map +1 -0
  130. package/es/modules/work/components/WorkErrorList/index.less +5 -0
  131. package/es/modules/work/components/WorkErrorPropertiesView/index.d.ts +6 -0
  132. package/es/modules/work/components/WorkErrorPropertiesView/index.js +45 -0
  133. package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -0
  134. package/es/modules/work/components/WorkErrorPropertiesView/index.less +22 -0
  135. package/es/modules/work/components/WorkItem/index.d.ts +11 -0
  136. package/es/modules/work/components/WorkItem/index.js +25 -0
  137. package/es/modules/work/components/WorkItem/index.js.map +1 -0
  138. package/es/modules/work/components/WorkItem/index.less +17 -0
  139. package/es/modules/work/components/WorkList/index.d.ts +16 -0
  140. package/es/modules/work/components/WorkList/index.js +88 -0
  141. package/es/modules/work/components/WorkList/index.js.map +1 -0
  142. package/es/modules/work/components/WorkList/index.less +7 -0
  143. package/es/modules/work/components/WorkPropertiesView/index.d.ts +7 -0
  144. package/es/modules/work/components/WorkPropertiesView/index.js +35 -0
  145. package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -0
  146. package/es/modules/work/components/WorkPropertiesView/index.less +23 -0
  147. package/es/{pages/Space/components/Documents → modules/work/components/WorkQATab}/index.d.ts +2 -2
  148. package/es/modules/work/components/WorkQATab/index.js +33 -0
  149. package/es/modules/work/components/WorkQATab/index.js.map +1 -0
  150. package/es/modules/work/components/WorkQATab/index.less +24 -0
  151. package/es/modules/work/components/WorkTabs/index.d.ts +7 -0
  152. package/es/modules/work/components/WorkTabs/index.js +45 -0
  153. package/es/modules/work/components/WorkTabs/index.js.map +1 -0
  154. package/es/modules/work/components/WorkTabs/index.less +16 -0
  155. package/es/modules/work/components/WorkTaskList/index.d.ts +5 -0
  156. package/es/modules/work/components/WorkTaskList/index.js +65 -0
  157. package/es/modules/work/components/WorkTaskList/index.js.map +1 -0
  158. package/es/modules/work/components/WorkTaskList/index.less +18 -0
  159. package/es/modules/work/components/WorkTaskList/state.d.ts +14 -0
  160. package/es/modules/work/components/WorkTaskList/state.js +23 -0
  161. package/es/modules/work/components/WorkTaskList/state.js.map +1 -0
  162. package/es/modules/work/components/WorkTasksTab/index.d.ts +6 -0
  163. package/es/modules/work/components/WorkTasksTab/index.js +17 -0
  164. package/es/modules/work/components/WorkTasksTab/index.js.map +1 -0
  165. package/es/modules/work/components/WorkTasksTab/index.less +7 -0
  166. package/es/modules/work/components/WorksProperties/index.d.ts +6 -0
  167. package/es/modules/work/components/WorksProperties/index.js +27 -0
  168. package/es/modules/work/components/WorksProperties/index.js.map +1 -0
  169. package/es/modules/work/components/WorksProperties/index.less +8 -0
  170. package/es/modules/work/pages/WorkDefaultView/index.d.ts +4 -0
  171. package/es/modules/work/pages/WorkDefaultView/index.js +26 -0
  172. package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -0
  173. package/es/modules/work/pages/WorkDefaultView/index.less +17 -0
  174. package/es/modules/work/pages/WorkListPage/index.d.ts +6 -0
  175. package/es/modules/work/pages/WorkListPage/index.js +19 -0
  176. package/es/modules/work/pages/WorkListPage/index.js.map +1 -0
  177. package/es/modules/workspace/components/MyWorkspaces/index.d.ts +11 -0
  178. package/es/modules/workspace/components/MyWorkspaces/index.js +34 -0
  179. package/es/modules/workspace/components/MyWorkspaces/index.js.map +1 -0
  180. package/es/modules/workspace/components/MyWorkspaces/index.less +18 -0
  181. package/es/modules/workspace/components/NewWorkspaceDialog/index.d.ts +10 -0
  182. package/es/modules/workspace/components/NewWorkspaceDialog/index.js +59 -0
  183. package/es/modules/workspace/components/NewWorkspaceDialog/index.js.map +1 -0
  184. package/es/modules/workspace/components/NewWorkspaceDialog/index.less +18 -0
  185. package/es/modules/workspace/components/NewWorkspaceDialog/state.d.ts +12 -0
  186. package/es/modules/workspace/components/NewWorkspaceDialog/state.js +35 -0
  187. package/es/modules/workspace/components/NewWorkspaceDialog/state.js.map +1 -0
  188. package/es/modules/workspace/components/WorkspaceCard/index.d.ts +8 -0
  189. package/es/modules/workspace/components/WorkspaceCard/index.js +18 -0
  190. package/es/modules/workspace/components/WorkspaceCard/index.js.map +1 -0
  191. package/es/modules/workspace/components/WorkspaceCard/index.less +47 -0
  192. package/es/modules/workspace/components/WorkspaceCardList/index.d.ts +13 -0
  193. package/es/modules/workspace/components/WorkspaceCardList/index.js +49 -0
  194. package/es/modules/workspace/components/WorkspaceCardList/index.js.map +1 -0
  195. package/es/modules/workspace/components/WorkspaceCardList/index.less +13 -0
  196. package/es/modules/workspace/components/WorkspacePropertiesView/index.d.ts +6 -0
  197. package/es/modules/workspace/components/WorkspacePropertiesView/index.js +41 -0
  198. package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -0
  199. package/es/modules/workspace/components/WorkspacePropertiesView/index.less +19 -0
  200. package/es/modules/workspace/components/WorkspacePropertiesView/state.d.ts +15 -0
  201. package/es/modules/workspace/components/WorkspacePropertiesView/state.js +68 -0
  202. package/es/modules/workspace/components/WorkspacePropertiesView/state.js.map +1 -0
  203. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.d.ts +6 -0
  204. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js +68 -0
  205. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js.map +1 -0
  206. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.less +8 -0
  207. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.d.ts +5 -0
  208. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.js +26 -0
  209. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/state.js.map +1 -0
  210. package/es/modules/workspace/controls/WorkspaceMenu/index.d.ts +8 -0
  211. package/es/modules/workspace/controls/WorkspaceMenu/index.js +36 -0
  212. package/es/modules/workspace/controls/WorkspaceMenu/index.js.map +1 -0
  213. package/es/modules/workspace/controls/WorkspaceMenu/index.less +33 -0
  214. package/es/modules/workspace/pages/WorkspaceDefaultView/index.d.ts +4 -0
  215. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +51 -0
  216. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -0
  217. package/es/modules/workspace/pages/WorkspaceDefaultView/index.less +22 -0
  218. package/es/modules/workspace/pages/WorkspaceDefaultView/state.d.ts +15 -0
  219. package/es/modules/workspace/pages/WorkspaceDefaultView/state.js +68 -0
  220. package/es/modules/workspace/pages/WorkspaceDefaultView/state.js.map +1 -0
  221. package/es/modules/workspace/pages/WorkspacePage/index.d.ts +4 -0
  222. package/es/modules/workspace/pages/WorkspacePage/index.js +73 -0
  223. package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -0
  224. package/es/modules/workspace/pages/WorkspacePage/index.less +1 -0
  225. package/es/modules/workspace/pages/WorkspacePage/state.d.ts +23 -0
  226. package/es/modules/workspace/pages/WorkspacePage/state.js +108 -0
  227. package/es/modules/workspace/pages/WorkspacePage/state.js.map +1 -0
  228. package/es/modules/worktype/components/WorkTypeCard/index.d.ts +8 -0
  229. package/es/modules/worktype/components/WorkTypeCard/index.js +18 -0
  230. package/es/modules/worktype/components/WorkTypeCard/index.js.map +1 -0
  231. package/es/modules/worktype/components/WorkTypeCard/index.less +47 -0
  232. package/es/modules/worktype/components/WorkTypeCardList/index.d.ts +16 -0
  233. package/es/modules/worktype/components/WorkTypeCardList/index.js +50 -0
  234. package/es/modules/worktype/components/WorkTypeCardList/index.js.map +1 -0
  235. package/es/modules/worktype/components/WorkTypeCardList/index.less +15 -0
  236. package/es/modules/worktype/components/WorkTypeItem/index.d.ts +8 -0
  237. package/es/modules/worktype/components/WorkTypeItem/index.js +11 -0
  238. package/es/modules/worktype/components/WorkTypeItem/index.js.map +1 -0
  239. package/es/modules/worktype/components/WorkTypeItem/index.less +19 -0
  240. package/es/modules/worktype/components/WorkTypeProperties/index.d.ts +6 -0
  241. package/es/modules/worktype/components/WorkTypeProperties/index.js +55 -0
  242. package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -0
  243. package/es/modules/worktype/components/WorkTypeProperties/index.less +5 -0
  244. package/es/modules/worktype/components/WorkTypeProperties/state.d.ts +11 -0
  245. package/es/modules/worktype/components/WorkTypeProperties/state.js +57 -0
  246. package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -0
  247. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.d.ts +5 -0
  248. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.js +28 -0
  249. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.js.map +1 -0
  250. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.less +0 -0
  251. package/es/modules/worktype/components/WorkTypePropertiesView/index.d.ts +6 -0
  252. package/es/modules/worktype/components/WorkTypePropertiesView/index.js +38 -0
  253. package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +1 -0
  254. package/es/modules/worktype/components/WorkTypePropertiesView/index.less +19 -0
  255. package/es/modules/worktype/components/WorkTypePropertiesView/state.d.ts +15 -0
  256. package/es/modules/worktype/components/WorkTypePropertiesView/state.js +68 -0
  257. package/es/modules/worktype/components/WorkTypePropertiesView/state.js.map +1 -0
  258. package/es/modules/worktype/components/WorkTypeQA/index.d.ts +6 -0
  259. package/es/modules/worktype/components/WorkTypeQA/index.js +60 -0
  260. package/es/modules/worktype/components/WorkTypeQA/index.js.map +1 -0
  261. package/es/modules/worktype/components/WorkTypeQA/index.less +35 -0
  262. package/es/modules/worktype/components/WorkTypeQA/state.d.ts +21 -0
  263. package/es/modules/worktype/components/WorkTypeQA/state.js +145 -0
  264. package/es/modules/worktype/components/WorkTypeQA/state.js.map +1 -0
  265. package/es/modules/worktype/components/WorkTypeStats/index.d.ts +5 -0
  266. package/es/modules/worktype/components/WorkTypeStats/index.js +16 -0
  267. package/es/modules/worktype/components/WorkTypeStats/index.js.map +1 -0
  268. package/es/modules/worktype/components/WorkTypeStats/index.less +29 -0
  269. package/es/modules/worktype/components/WorkTypeStats/state.d.ts +6 -0
  270. package/es/modules/worktype/components/WorkTypeStats/state.js +27 -0
  271. package/es/modules/worktype/components/WorkTypeStats/state.js.map +1 -0
  272. package/es/modules/worktype/components/WorkTypeTabs/index.d.ts +6 -0
  273. package/es/modules/worktype/components/WorkTypeTabs/index.js +45 -0
  274. package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -0
  275. package/es/modules/worktype/components/WorkTypeTabs/index.less +16 -0
  276. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.d.ts +6 -0
  277. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.js +70 -0
  278. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.js.map +1 -0
  279. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.less +8 -0
  280. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.d.ts +5 -0
  281. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.js +26 -0
  282. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.js.map +1 -0
  283. package/es/modules/worktype/pages/WorkTypeDefaultView/index.d.ts +4 -0
  284. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js +24 -0
  285. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +1 -0
  286. package/es/modules/worktype/pages/WorkTypeDefaultView/index.less +21 -0
  287. package/es/pages/Routes.d.ts +12 -0
  288. package/es/pages/Routes.js +29 -3
  289. package/es/pages/Routes.js.map +1 -1
  290. package/es/pages/Space/components/Notifications/index.js +1 -0
  291. package/es/pages/Space/components/Notifications/index.js.map +1 -1
  292. package/es/pages/Space/components/Tasks/index.d.ts +2 -2
  293. package/es/pages/Space/components/Tasks/index.js +50 -11
  294. package/es/pages/Space/components/Tasks/index.js.map +1 -1
  295. package/es/pages/Space/components/Works/index.d.ts +2 -2
  296. package/es/pages/Space/components/Works/index.js +13 -37
  297. package/es/pages/Space/components/Works/index.js.map +1 -1
  298. package/es/pages/Space/components/Workspaces/index.d.ts +3 -0
  299. package/es/pages/Space/components/Workspaces/index.js +19 -0
  300. package/es/pages/Space/components/Workspaces/index.js.map +1 -0
  301. package/es/pages/Space/pages/MySpace/index.js +49 -14
  302. package/es/pages/Space/pages/MySpace/index.js.map +1 -1
  303. package/es/pages/Space/pages/MySpace/state.d.ts +27 -6
  304. package/es/pages/Space/pages/MySpace/state.js +114 -24
  305. package/es/pages/Space/pages/MySpace/state.js.map +1 -1
  306. package/es/pages/Work/components/NewWorkDialog/index.js +3 -7
  307. package/es/pages/Work/components/NewWorkDialog/index.js.map +1 -1
  308. package/es/pages/Work/pages/WorkDefaultView/index.js +20 -17
  309. package/es/pages/Work/pages/WorkDefaultView/index.js.map +1 -1
  310. package/es/pages/WorkType/WorkTypeCheckList/index.d.ts +1 -2
  311. package/es/pages/WorkType/WorkTypeCheckList/index.js +43 -34
  312. package/es/pages/WorkType/WorkTypeCheckList/index.js.map +1 -1
  313. package/es/pages/WorkType/WorkTypeDetail/index.js +6 -10
  314. package/es/pages/WorkType/WorkTypeDetail/index.js.map +1 -1
  315. package/es/pages/WorkType/data/WorkTypeStore.js +4 -4
  316. package/es/pages/WorkType/data/WorkTypeStore.js.map +1 -1
  317. package/es/pages/WorkType/data/interfaces.d.ts +24 -7
  318. package/es/pages/WorkType/data/types.d.ts +19 -18
  319. package/es/routes.js.map +1 -1
  320. package/package.json +2 -2
  321. package/es/modules/notification/components/MentionNotificationCard/index.js.map +0 -1
  322. package/es/pages/Space/components/Documents/index.js +0 -26
  323. package/es/pages/Space/components/Documents/index.js.map +0 -1
  324. package/es/pages/Space/components/Documents/index.less +0 -5
  325. /package/es/modules/notification/components/{MentionNotificationCard → DocumentNotificationCard}/index.less +0 -0
@@ -0,0 +1,57 @@
1
+ import { ILoadable } from "@voplus/morpho-data";
2
+ export interface ICheckListItem {
3
+ key?: string;
4
+ /** checked of the CheckListItem. */
5
+ checked: boolean;
6
+ /** item name of the CheckListItem. */
7
+ item: string;
8
+ }
9
+ export interface ISequenceInfo {
10
+ format?: string;
11
+ startfrom?: number;
12
+ }
13
+ export interface IAuditAuditorInfo {
14
+ /** a value indicating whether audit is enabled */
15
+ /** the rate in percentage audit shall be performed */
16
+ auditRate?: number;
17
+ /** list of default work member */
18
+ auditors?: {
19
+ name: string;
20
+ id: string;
21
+ }[];
22
+ }
23
+ export interface IWorkType extends ILoadable {
24
+ /** id of the workType */
25
+ id: string;
26
+ sequence?: ISequenceInfo;
27
+ /** name of the workType */
28
+ name?: string;
29
+ /** description of the workType */
30
+ description?: string;
31
+ defaultDue?: number;
32
+ status?: string;
33
+ defaultFolder?: {
34
+ id: string;
35
+ name: string;
36
+ };
37
+ document?: {
38
+ id: string;
39
+ name: string;
40
+ };
41
+ requester?: {
42
+ name: string;
43
+ id: string;
44
+ }[];
45
+ reviewers?: {
46
+ name: string;
47
+ id: string;
48
+ }[];
49
+ accepters?: {
50
+ name: string;
51
+ id: string;
52
+ }[];
53
+ /** audit info of the workType */
54
+ audit?: IAuditAuditorInfo;
55
+ rejectReasons?: string[];
56
+ errorTypes?: string[];
57
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/worktype/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
1
+ import { IWorkType } from "./interfaces";
2
+ import { LoadOptions } from "@voplus/morpho-data";
3
+ import { StoreActionOptions } from "@voplus/morpho-data";
4
+ /** Custom load contact options type */
5
+ export declare type LoadWorkTypeOptions = {
6
+ /** Comma separated include options e.g. path */
7
+ includes?: string;
8
+ } & LoadOptions<IWorkType>;
9
+ export declare type WorkTypeCreateDataOptions = {
10
+ /** workspaceId of the new workType */
11
+ workspaceId: string;
12
+ /** name of the new workType */
13
+ Name: string;
14
+ };
15
+ export declare type SequenceEditOptions = {
16
+ /** gets the format of the sequence */
17
+ Format?: string;
18
+ /** gets the reset value of the sequence */
19
+ /** gets the start value of the sequence */
20
+ StartFrom?: number;
21
+ };
22
+ export declare type WorkTypeCreateOptions = {
23
+ data: WorkTypeCreateDataOptions;
24
+ } & StoreActionOptions;
25
+ export interface WorkTypeEditDataOptions {
26
+ /** name of the edit workType. */
27
+ Name?: string;
28
+ /** gets the description of the work */
29
+ Description?: string;
30
+ /** gets the format of the work number */
31
+ Sequence?: SequenceEditOptions;
32
+ /** gets the default folder id of the work type */
33
+ DefaultFolderId?: string;
34
+ /** gets the document id of the work type */
35
+ DocumentId?: string;
36
+ /** gets the default due date in this number of days from work create date */
37
+ DefaultDue?: number;
38
+ /** gets the audit rate of the work type */
39
+ AuditRate?: number;
40
+ /** gets list of unit ids who can rquest this job */
41
+ RequesterIds?: string[];
42
+ /** gets a list of accepter ids */
43
+ AccepterIds?: string[];
44
+ /** gets a list of reviewer ids */
45
+ ReviewerIds?: string[];
46
+ /** gets list of auditor ids */
47
+ AuditorIds?: string[];
48
+ /** gets or the reject reasons of the work type */
49
+ RejectReasons?: string[];
50
+ /** gets or the error types of the work type */
51
+ ErrorTypes?: string[];
52
+ }
53
+ export declare type WorkTypeEditOptions = {
54
+ data: WorkTypeEditDataOptions;
55
+ } & StoreActionOptions;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/worktype/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export interface IWorkTypeCompletedWork {
2
+ /** date of the completed-works. */
3
+ date: string;
4
+ /** total of the completed-works */
5
+ total: number;
6
+ }
7
+ /** React hook to retrieve worktype summary report.
8
+ * @param {string} id - id of the dashboard
9
+ */
10
+ export declare const useWorkTypeCompletedWork: (id: string, effect: (data: IWorkTypeCompletedWork[]) => void) => void;
@@ -0,0 +1,14 @@
1
+ import { useDeepDepEffect } from "@voplus/morpho-data";
2
+ import { useDocumentStore } from "@voplus/morpho-document-core";
3
+ /** React hook to retrieve worktype summary report.
4
+ * @param {string} id - id of the dashboard
5
+ */
6
+ export const useWorkTypeCompletedWork = (id, effect) => {
7
+ const documents = useDocumentStore();
8
+ return useDeepDepEffect(() => {
9
+ documents.endpoint.get(`/api/workspaces/reports/completed-works/${id}`).then((r) => {
10
+ r.json().then((result) => effect(result));
11
+ });
12
+ }, [id]);
13
+ };
14
+ //# sourceMappingURL=useWorkTypeCompletedWorkEffect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWorkTypeCompletedWorkEffect.js","sourceRoot":"","sources":["../../../src/data/worktype/useWorkTypeCompletedWorkEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAShE;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACvC,EAAU,EACV,MAAgD,EAC/C,EAAE;IACH,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,gBAAgB,CAAC,GAAG,EAAE;QAC5B,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,2CAA2C,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;YAClF,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QAC3C,CAAC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACV,CAAC,CAAC"}
@@ -78,9 +78,7 @@ const Board = (props) => {
78
78
  frame.PreExtra = observe(() => (React.createElement(QuickSearch, { title: "Search", onChange: onSearch })));
79
79
  frame.Extra = observe(() => (React.createElement(FilterOptionsContext.Provider, { value: list.filters },
80
80
  React.createElement(SortViewDropdown, { onSort: (sort) => list.triggerSort(sort), className: "margin-left-10" }),
81
- React.createElement(FilterView, { columns: [React.createElement(CreateDateFilter, { key: "createDateFilter" }),
82
- React.createElement(FlagFilter, { key: "flagFilter" }),
83
- React.createElement(DocumentStatusFilter, { key: "documentStatusFilter" }),], className: "margin-left-10" }))));
81
+ React.createElement(FilterView, { columns: [React.createElement(CreateDateFilter, { key: "createDateFilter" }), React.createElement(FlagFilter, { key: "flagFilter" }), React.createElement(DocumentStatusFilter, { key: "documentStatusFilter" }),], className: "margin-left-10" }))));
84
82
  }
85
83
  };
86
84
  export default Board;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACV,MAAM,6CAA6C,CAAC;AAErD,OAAO,gBAAgB,MAAM,2EAA2E,CAAC;AACzG,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,WAAW,MAAM,sEAAsE,CAAC;AAC/F,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,E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AC,YAAa,CAChF,CACD,CACD,CACoB,CACC,CAC7B,CAAC,CAAC;IAEH,+BAA+B;IAC/B,SAAS,QAAQ,CAAC,KAAa;QAC9B,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAAA,CAAC;IAEF,SAAS,UAAU;QAClB,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,oBAAC,WAAW,IAAC,KAAK,EAAC,QAAQ,EAAC,QAAQ,EAAE,QAAQ,GAAI,CAAC,CAAC,CAAA;QACpF,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAC3B,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,CAAC,OAAO;YACjD,oBAAC,gBAAgB,IAChB,MAAM,EAAE,CAAC,IAAqB,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EACzD,SAAS,EAAC,gBAAgB,GACzB;YACF,oBAAC,UAAU,IACV,OAAO,EAAE,CAAC,oBAAC,gBAAgB,IAAC,GAAG,EAAC,kBAAkB,GAAG;oBACrD,oBAAC,UAAU,IAAC,GAAG,EAAC,YAAY,GAAG;oBAC/B,oBAAC,oBAAoB,IAAC,GAAG,EAAC,sBAAsB,GAAG,EAAE,EACrD,SAAS,EAAC,gBAAgB,GACzB,CAC6B,CAChC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACV,MAAM,6CAA6C,CAAC;AAErD,O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AAQ,IAAC,KAAK,EAAE,IAAI,CAAC,OAAO;YACjD,oBAAC,gBAAgB,IAChB,MAAM,EAAE,CAAC,IAAqB,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EACzD,SAAS,EAAC,gBAAgB,GACzB;YACF,oBAAC,UAAU,IACV,OAAO,EAAE,CAAC,oBAAC,gBAAgB,IAAC,GAAG,EAAC,kBAAkB,GAAG,EACrD,oBAAC,UAAU,IAAC,GAAG,EAAC,YAAY,GAAG,EAC/B,oBAAC,oBAAoB,IAAC,GAAG,EAAC,sBAAsB,GAAG,EAAE,EACrD,SAAS,EAAC,gBAAgB,GACzB,CAC6B,CAChC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -41,7 +41,7 @@ const AgendaItem = (props) => {
41
41
  React.createElement("span", { className: classnames("agenda-item-index", { show: multiple || state.readonly }) }, `${(index || 0) + 1}.`))),
42
42
  React.createElement(DocumentHeader, { id: id, clickNameEffect: "edit", autoSaveName: true, flagVisible: false, statusVisible: false, preVisible: false, tagsVisible: false, tools: React.createElement(ToolBar, { id: id }, !state.readonly && (React.createElement(Tooltip, { title: "Edit agenda description" },
43
43
  React.createElement(Button, { size: "small", shape: "circle", onClick: () => runInAction(() => {
44
- state.description = agenda.description || "";
44
+ // state.description = agenda.description || "";
45
45
  state.desVisible = true;
46
46
  }) },
47
47
  React.createElement(FAIcon, { icon: faCommentAltEdit, color: "#666" }))))), quickDataBarVisible: false }),
@@ -68,7 +68,7 @@ const AgendaItem = (props) => {
68
68
  state.desVisible && (React.createElement(Modal, { title: `${agenda.name} Description`, visible: true, bodyStyle: { padding: "0", height: "50vh" }, okText: "Save", onCancel: () => runInAction(() => (state.desVisible = false)), confirmLoading: state.loading, onOk: () => state.onEdit({
69
69
  Description: state.description,
70
70
  }) },
71
- React.createElement(ProseMirror, { toolbarProps: { sticky: false }, defaultHtml: state.description, scroll: true, className: "agenda-description_mirror", onChange: (opt) => runInAction(() => (state.description =
71
+ React.createElement(ProseMirror, { toolbarProps: { sticky: false }, defaultHtml: agenda.description || "", scroll: true, className: "agenda-description_mirror", onChange: (opt) => runInAction(() => (state.description =
72
72
  opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML)) }))))));
73
73
  function onFoldIconClick() {
74
74
  state.toggleExpand();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAmB,KAAK,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,WAAW,EACX,YAAY,EACZ,MAAM,EACN,gBAAgB,GAChB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,MAAM,UA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AU,IAAI,CACpB,oBAAC,KAAK,IACL,KAAK,EAAE,GAAG,MAAM,CAAC,IAAI,cAAc,EACnC,OAAO,QACP,SAAS,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,EAC3C,MAAM,EAAC,MAAM,EACb,QAAQ,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC,EAC7D,cAAc,EAAE,KAAK,CAAC,OAAO,EAC7B,IAAI,EAAE,GAAG,EAAE,CACV,KAAK,CAAC,MAAM,CAAC;gBACZ,WAAW,EAAE,KAAK,CAAC,WAAW;aAC9B,CAAC;YAGH,oBAAC,WAAW,IACX,YAAY,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAC/B,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,EAAE,EACrC,MAAM,QACN,SAAS,EAAC,2BAA2B,EACrC,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CACjB,WAAW,CACV,GAAG,EAAE,CACJ,CAAC,KAAK,CAAC,WAAW;oBACjB,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,KAAK,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAC7E,GAED,CACK,CACR,CACI,CACN,CAAC,CAAC;IAEH,SAAS,eAAe;QACvB,KAAK,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,UAAU,CAAC"}
@@ -72,8 +72,7 @@ const MeetingList = (props) => {
72
72
  frame.Extra = observe(() => (React.createElement(FilterOptionsContext.Provider, { value: list.filters },
73
73
  quickSearch ? undefined : (React.createElement(QuickSearch, { title: "Search", className: "view-title", onChange: onQuickSearch })),
74
74
  React.createElement(SortViewDropdown, { onSort: (sort) => list.triggerSort(sort), className: "margin-left-10" }),
75
- React.createElement(FilterView, { columns: [React.createElement(AssigneeViewFilter, { key: "AssigneeViewFilter" }),
76
- React.createElement(StartDateFilter, { key: "StartDateFilter", title: "MeetingDate" }),], className: "margin-left-10" }),
75
+ React.createElement(FilterView, { columns: [React.createElement(AssigneeViewFilter, { key: "AssigneeViewFilter" }), React.createElement(StartDateFilter, { key: "StartDateFilter", title: "MeetingDate" }),], className: "margin-left-10" }),
77
76
  React.createElement(AddForm, { formViewTitle: "Add Meeting", formView: React.createElement(NewMeetingForm, { parentId: parentId, simple: true }), onAdd: (addFormElement) => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(addFormElement, { span: 12 }), onClose: () => asideContext === null || asideContext === void 0 ? void 0 : asideContext.closeAside() }))));
78
77
  }
79
78
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAEtF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,qBAAqB,MAAM,wCAAwC,CAAC;AAC3E,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,WAAW,MAAM,sEAAsE,CAAC;AAE/F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,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from "../../../../data/notification";
2
2
  import React from "react";
3
- declare const MentionNotificationCard: (props: {
3
+ declare const DocumentNotificationCard: (props: {
4
4
  id: string;
5
5
  active?: boolean | undefined;
6
6
  className?: string | undefined;
7
7
  onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
8
8
  onChangeStatus?: ((state: NotificationStatus) => void) | undefined;
9
9
  }) => JSX.Element;
10
- export default MentionNotificationCard;
10
+ export default DocumentNotificationCard;
@@ -7,13 +7,13 @@ import classnames from "classnames";
7
7
  import moment from "moment";
8
8
  import { observe } from "@voplus/morpho-ui";
9
9
  import styles from "./index.less";
10
- const MentionNotificationCard = (props) => {
10
+ const DocumentNotificationCard = (props) => {
11
11
  const notification = useNotification(props.id);
12
12
  return observe(() => (React.createElement(Card, { className: classnames(styles["notification-card"], props.className, { active: props.active }), bordered: true,
13
13
  //hoverShadow
14
14
  shadow: true },
15
15
  React.createElement("div", { onClick: props.onClick },
16
- React.createElement("h3", null, "Mention Notification"),
16
+ React.createElement("h3", null, notification.content.title),
17
17
  React.createElement(ProseMirrorViewer, { html: notification.content.content }),
18
18
  React.createElement("div", { className: "notification-footer" },
19
19
  React.createElement("div", { className: "notification-date" }, moment(notification.createDate).format("DD MMM yyyy")),
@@ -27,5 +27,5 @@ const MentionNotificationCard = (props) => {
27
27
  ev.stopPropagation();
28
28
  }
29
29
  };
30
- export default MentionNotificationCard;
30
+ export default DocumentNotificationCard;
31
31
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/DocumentNotificationCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAGN,eAAe,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,KAAK,MAAM,OAA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CAAC,YAAgB,CACpE,CACM,CACH,CACD,CACD,CACA,CACP,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,EAAO,EAAE,MAA0B;;QAC1D,MAAA,KAAK,CAAC,cAAc,+CAApB,KAAK,EAAkB,MAAM,CAAC,CAAC;QAC/B,EAAE,CAAC,eAAe,EAAE,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -4,8 +4,8 @@ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/da
4
4
  import React from "react";
5
5
  import { observe, useRenderOnChange } from "@voplus/morpho-ui";
6
6
  import { CSSTransition } from "react-transition-group";
7
+ import DocumentNotificationCard from "../DocumentNotificationCard";
7
8
  import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
8
- import MentionNotificationCard from "../MentionNotificationCard";
9
9
  import PropertiesView from "@voplus/morpho-document/es/components/PropertiesView";
10
10
  import S from "string";
11
11
  import { runInAction } from "mobx";
@@ -38,7 +38,7 @@ const NotificationList = (props) => {
38
38
  return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
39
39
  React.createElement(ListView, { headerProps: { viewTitle: "My Notifications", addAble: false, sortable: false }, className: "my-space-notifications", renderItem: ({ item }) => {
40
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) })));
41
+ React.createElement(DocumentNotificationCard, { 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
42
  }, propertiesView: (id, item) => React.createElement(PropertiesView, { id: item.content.documentId }) }))));
43
43
  function filters() {
44
44
  if (!props.status || props.status == "all")
@@ -1 +1 @@
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,OAAO,+CAAb,KAAK,EAAW,KAAM,CAAC,CAAC;IACzB,CAAC,EACD;QACC,KA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AEF,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;AACvD,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AAEnE,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,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,OAAO,+CAAb,KAAK,EAAW,KAAM,CAAC,CAAC;IACzB,CAAC,EACD;QACC,KAAK,EAAE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e,gBAAgB,CAAC"}
@@ -1,9 +1,17 @@
1
+ @import "~@voplus/antd/es/style/themes/index.less";
1
2
  :global {
2
- .my-space-notifications {
3
- background-color: #fff;
3
+ .my-notifications {
4
+ //background-color: #fff;
4
5
  padding: 0 !important;
5
6
  .list-view-main {
6
- background-color: #f5f5f5;
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
+ }
7
15
  }
8
16
  }
9
17
  .notification-card-exit {
@@ -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,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/reports/TaskSummaryCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC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ClB,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,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,i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,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;