@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
@@ -0,0 +1,17 @@
1
+ import "./index.less";
2
+ import { observe, useAsideContentContext } from "@voplus/morpho-ui";
3
+ import React from "react";
4
+ import TaskPropertiesView from "../../../tasks/components/TaskPropertiesView";
5
+ import WorkTaskList from "../WorkTaskList";
6
+ const WorkTasksTab = (props) => {
7
+ const { id } = props;
8
+ const asideContext = useAsideContentContext();
9
+ return observe(() => React.createElement("div", { className: "work-tasks-tab" },
10
+ React.createElement(WorkTaskList, { parentId: id, Title: "My Tasks", roles: true, onClickItem: onClickItem }),
11
+ React.createElement(WorkTaskList, { parentId: id, Title: "All Tasks", onClickItem: onClickItem })));
12
+ function onClickItem(id) {
13
+ asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(TaskPropertiesView, { id: id }), { span: 12 });
14
+ }
15
+ };
16
+ export default WorkTasksTab;
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkTasksTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,kBAAkB,MAAM,8CAA8C,CAAC;AAC9E,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C,MAAM,YAAY,GAAG,CAAC,KAAsB,EAAE,EAAE;IAC5C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAG9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAChB,6BAAK,SAAS,EAAC,gBAAgB;QAC3B,oBAAC,YAAY,IACT,QAAQ,EAAE,EAAE,EACZ,KAAK,EAAC,UAAU,EAChB,KAAK,QACL,WAAW,EAAE,WAAW,GAC1B;QACF,oBAAC,YAAY,IACT,QAAQ,EAAE,EAAE,EACZ,KAAK,EAAC,WAAW,EACjB,WAAW,EAAE,WAAW,GAC1B,CACA,CACT,CAAA;IAED,SAAS,WAAW,CAAC,EAAU;QAC3B,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CACnB,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,EAC9B,EAAE,IAAI,EAAE,EAAE,EAAE,CACf,CAAC;IACN,CAAC;AACL,CAAC,CAAA;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ :global {
2
+ .work-tasks-tab {
3
+ height: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ }
7
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorksProperties: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default WorksProperties;
@@ -0,0 +1,27 @@
1
+ import "./index.less";
2
+ import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
3
+ import { Form } from "@voplus/antd";
4
+ import React from "react";
5
+ import moment from "moment";
6
+ import { observe } from "@voplus/morpho-ui";
7
+ import { useApplicationContext } from "@voplus/morpho-data";
8
+ import { useWork } from "../../../../data/work";
9
+ const WorksProperties = (props) => {
10
+ const work = useWork(props.id);
11
+ const { user } = useApplicationContext();
12
+ const noData = (React.createElement("span", { className: "no-data" }, "no data"));
13
+ return observe(() => {
14
+ var _a;
15
+ return (React.createElement("div", { className: "work-roperties" },
16
+ React.createElement(Form, { labelAlign: "left", labelCol: { span: 8 }, scrollToFirstError: true },
17
+ React.createElement(Form.Item, { label: "No" }, work.no || noData),
18
+ React.createElement(Form.Item, { label: "Type" }, work.type || noData),
19
+ React.createElement(Form.Item, { label: "Status" }, work.status || noData),
20
+ React.createElement(Form.Item, { label: "Folder" }, ((_a = work.folder) === null || _a === void 0 ? void 0 : _a.name) || noData),
21
+ React.createElement(Form.Item, { label: "Due" }, work.due ? moment(work.due).format("DD MMM yyyy") : noData),
22
+ React.createElement(Form.Item, { label: "Owner" },
23
+ React.createElement(AvatarList, { editable: false })))));
24
+ });
25
+ };
26
+ export default WorksProperties;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,MAAM,eAAe,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC9C,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAE/B,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,MAAM,GAAG,CAAC,8BAAM,SAAS,EAAC,SAAS,cAAe,CAAC,CAAC;IAE1D,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACjB,6BAAK,SAAS,EAAC,gBAAgB;YAC3B,oBAAC,IAAI,IACD,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EACrB,kBAAkB;gBAElB,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,IAAI,IAChB,IAAI,CAAC,EAAE,IAAI,MAAM,CACV;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,MAAM,IAClB,IAAI,CAAC,IAAI,IAAI,MAAM,CACZ;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,IACpB,IAAI,CAAC,MAAM,IAAI,MAAM,CACd;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,IACpB,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,IAAI,KAAI,MAAM,CACpB;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,KAAK,IACjB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,MAAM,CACnD;gBACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO;oBACpB,oBAAC,UAAU,IAAC,QAAQ,EAAE,KAAK,GAAI,CACvB,CACT,CACL,CACT,CAAA;KAAA,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,8 @@
1
+ :global {
2
+ .work-roperties {
3
+ padding: 20px;
4
+ .no-data {
5
+ color: #00000040;
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkDefaultView: () => JSX.Element;
4
+ export default WorkDefaultView;
@@ -0,0 +1,26 @@
1
+ import "./index.less";
2
+ import React, { useState } from "react";
3
+ import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
4
+ import { useRouteMatch } from "react-router";
5
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
6
+ import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
7
+ import WorkTabs from "../../components/WorkTabs";
8
+ import WorksProperties from "../../components/WorksProperties";
9
+ import { observe } from "@voplus/morpho-ui";
10
+ import { useWorkStore } from "../../../../data/work";
11
+ const WorkDefaultView = () => {
12
+ const match = useRouteMatch();
13
+ const id = match.params.id;
14
+ const store = new TabItemStore({ url: "" });
15
+ const [asideContext] = useState(AsideContent.createContext());
16
+ const workStore = useWorkStore();
17
+ return observe(() => React.createElement(TabItemContext.Provider, { value: store },
18
+ React.createElement(MainContent, { className: "work-default-view" },
19
+ React.createElement(MainContent.Nav, { collapsible: true },
20
+ React.createElement(WorksProperties, { id: id })),
21
+ React.createElement("div", { className: "work-context" },
22
+ React.createElement(AsideContent, { context: asideContext },
23
+ React.createElement(WorkTabs, { id: id }))))));
24
+ };
25
+ export default WorkDefaultView;
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,MAAM,eAAe,GAAG,GAAG,EAAE;IACzB,MAAM,KAAK,GAAG,aAAa,EAAkB,CAAC;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE3B,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,OAAO,OAAO,CAAC,GAAG,EAAE,CAChB,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACjC,oBAAC,WAAW,IAAC,SAAS,EAAC,mBAAmB;YACtC,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;gBACxB,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI,CACb;YAClB,6BAAK,SAAS,EAAC,cAAc;gBAIzB,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;oBAC/B,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI,CACT,CACb,CACI,CACQ,CAC7B,CAAA;AACL,CAAC,CAAA;AAED,eAAe,eAAe,CAAC"}
@@ -0,0 +1,17 @@
1
+ :global {
2
+ .work-default-view {
3
+ .main-content-nav {
4
+ width: 250px;
5
+ box-shadow: 6px 0 16px -8px rgb(0 0 0 / 8%), 9px 0 28px 0 rgb(0 0 0 / 5%),
6
+ 12px 0 48px 16px rgb(0 0 0 / 3%) !important;
7
+ }
8
+ .work-context {
9
+ display: flex;
10
+ padding: 0;
11
+ background: #ffffff;
12
+ > div {
13
+ flex: 1;
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { State } from "../../../workspace/pages/WorkspacePage/state";
3
+ declare const WorkListPage: (props: {
4
+ state: State;
5
+ }) => JSX.Element;
6
+ export default WorkListPage;
@@ -0,0 +1,19 @@
1
+ import { generatePath, useRouteMatch } from "react-router";
2
+ import React from "react";
3
+ import WorkList from "../../components/WorkList";
4
+ import { observe } from "@voplus/morpho-ui";
5
+ import { runInAction } from "mobx";
6
+ import { useLayout } from "@voplus/morpho-data";
7
+ const WorkListPage = (props) => {
8
+ const match = useRouteMatch();
9
+ const layout = useLayout();
10
+ return observe(() => React.createElement(WorkList, { status: match.params.status, active: match.params.active, onClickItem: (item) => {
11
+ layout.history.push(generatePath(match.path, { status: match.params.status, active: item.id }));
12
+ }, onTotal: (total) => {
13
+ runInAction(() => {
14
+ props.state.workStatusTotals[match.params.status] = total;
15
+ });
16
+ } }));
17
+ };
18
+ export default WorkListPage;
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkListPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,YAAY,GAAG,CAAC,KAAuB,EAAE,EAAE;IAChD,MAAM,KAAK,GAAG,aAAa,EAAuC,CAAC;IACnE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAG3B,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,oBAAC,QAAQ,IACR,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAC3B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAC3B,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE;YACrB,MAAM,CAAC,OAAO,CAAC,IAAI,CAClB,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAC1E,CAAC;QACH,CAAC,EACD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,WAAW,CAAC,GAAG,EAAE;gBAChB,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;YAC3D,CAAC,CAAC,CAAC;QACJ,CAAC,GACA,CACF,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ import { IWorkspace } from "../../../../data/workspace";
4
+ declare const MyWorkspaces: (props: {
5
+ parentId?: string | undefined;
6
+ /** The current active item */
7
+ active?: string | undefined;
8
+ /** Call back when an item has been clicked on the list. */
9
+ onClickItem?: ((item: IWorkspace) => void) | undefined;
10
+ }) => JSX.Element;
11
+ export default MyWorkspaces;
@@ -0,0 +1,34 @@
1
+ import "./index.less";
2
+ import React, { useState } from "react";
3
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
4
+ import NewWorkspaceDialog from "../NewWorkspaceDialog";
5
+ import { Typography } from "@voplus/antd";
6
+ import WorkspaceCardList from "../WorkspaceCardList";
7
+ import WorkspacePropertiesView from "../WorkspacePropertiesView";
8
+ import { observe } from "@voplus/morpho-ui";
9
+ const { Title } = Typography;
10
+ const MyWorkspaces = (props) => {
11
+ const [asideContext] = useState(AsideContent.createContext());
12
+ const [visible, setVisible] = useState(false);
13
+ return observe(() => (React.createElement(AsideContent, { context: asideContext },
14
+ React.createElement("div", { className: "my-workSpaces" },
15
+ React.createElement("div", { className: "workspace-list" },
16
+ React.createElement(Title, { level: 3 }, "My WorkSpaces"),
17
+ React.createElement(WorkspaceCardList, { roles: true, addCard: true, onItemClick: onItemClick })),
18
+ React.createElement("div", { className: "workspace-list" },
19
+ React.createElement(Title, { level: 3 }, "Worksapce I have access"),
20
+ React.createElement(WorkspaceCardList, { onItemClick: onItemClick })),
21
+ visible && (React.createElement(NewWorkspaceDialog, { onCancel: () => setVisible(false), onSubmitSave: () => setVisible(false) }))))));
22
+ function onItemClick(item) {
23
+ var _a;
24
+ if (item.id !== "0") {
25
+ asideContext.openAside(React.createElement(WorkspacePropertiesView, { id: item.id }), { span: 12 });
26
+ }
27
+ else {
28
+ setVisible(true);
29
+ }
30
+ (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
31
+ }
32
+ };
33
+ export default MyWorkspaces;
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/MyWorkspaces/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAE/E,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC;AAE7B,MAAM,YAAY,GAAG,CAAC,KAMrB,EAAE,EAAE;IACJ,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAC9D,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;QAClC,6BAAK,SAAS,EAAC,eAAe;YAC7B,6BAAK,SAAS,EAAC,gBAAgB;gBAC9B,oBAAC,KAAK,IAAC,KAAK,EAAE,CAAC,oBAAuB;gBACtC,oBAAC,iBAAiB,IAAC,KAAK,QAAC,OAAO,QAAC,WAAW,EAAE,WAAW,GAAI,CACxD;YACN,6BAAK,SAAS,EAAC,gBAAgB;gBAC9B,oBAAC,KAAK,IAAC,KAAK,EAAE,CAAC,8BAAiC;gBAChD,oBAAC,iBAAiB,IAAC,WAAW,EAAE,WAAW,GAAI,CAC1C;YACL,OAAO,IAAI,CACX,oBAAC,kBAAkB,IAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACjC,YAAY,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GACpC,CACF,CACI,CACQ,CACf,CAAC,CAAC;IAEH,SAAS,WAAW,CAAC,IAAgB;;QACpC,IAAI,IAAI,CAAC,EAAE,KAAK,GAAG,EAAE;YACpB,YAAY,CAAC,SAAS,CAAC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SAC/E;aAAM;YACN,UAAU,CAAC,IAAI,CAAC,CAAC;SACjB;QACD,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,CAAC;IAC3B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,18 @@
1
+ @import "~@voplus/antd/es/style/themes/index.less";
2
+
3
+ :global {
4
+ .my-workSpaces {
5
+ height: 100%;
6
+ display: flex;
7
+ flex-direction: column;
8
+ .workspace-list {
9
+ flex: 1;
10
+ display: flex;
11
+ flex-direction: column;
12
+ }
13
+ h3 {
14
+ padding: 10px 20px;
15
+ margin: 0;
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const NewWorkspaceDialog: (props: {
4
+ parentId?: string | undefined;
5
+ className?: string | undefined;
6
+ showView?: boolean | undefined;
7
+ onSubmitSave?: ((params?: any) => void) | undefined;
8
+ onCancel?: (() => void) | undefined;
9
+ }) => JSX.Element;
10
+ export default NewWorkspaceDialog;
@@ -0,0 +1,59 @@
1
+ import "./index.less";
2
+ import { Button, Form, Input, Row, Space, message, } 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 { State } from "./state";
7
+ import WorkspacePropertiesView from "../WorkspacePropertiesView";
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 { useWorkspaceStore } from "../../../../data/workspace";
14
+ const NewWorkspaceDialog = (props) => {
15
+ const workspaces = useWorkspaceStore();
16
+ const [state] = useState(new State());
17
+ const { user } = useApplicationContext();
18
+ const asideContext = useAsideContentContext();
19
+ return observe(() => (React.createElement(Modal, { title: "New WorkSpace", visible: true, destroyOnClose: true, closable: false, footer: null, onCancel: props.onCancel },
20
+ React.createElement("div", { className: classnames("new-workspace-form", props.className) },
21
+ React.createElement(Form, { layout: "vertical" },
22
+ React.createElement(React.Fragment, null,
23
+ React.createElement(Form.Item, { label: "Title for your workspaces" },
24
+ React.createElement(Input, { autoFocus: true, value: state.params.Name, onChange: (e) => runInAction(() => (state.params.Name = e.target.value)) })),
25
+ React.createElement(Form.Item, { label: "Members" },
26
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", onChange: (contacts) => (state.params.MemberIds = contacts.map(({ id }) => id)) })),
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)
34
+ return message.warning("Title is required");
35
+ runInAction(() => (state.loading = true));
36
+ const res = await workspaces.create({
37
+ data: { ...state.params, ParentId: props.parentId },
38
+ error: "message",
39
+ });
40
+ runInAction(() => {
41
+ state.loading = false;
42
+ state.params = state.Params;
43
+ });
44
+ if (props.onSubmitSave)
45
+ props.onSubmitSave(state.params);
46
+ if (props.showView)
47
+ return asideContext.openAside(React.createElement(WorkspacePropertiesView, { id: res.id }), { span: 12 });
48
+ }
49
+ // cancel add workspaces
50
+ function onCancel() {
51
+ state.params = state.Params;
52
+ if (props.showView)
53
+ return asideContext.closeAside();
54
+ if (props.onCancel)
55
+ props.onCancel();
56
+ }
57
+ };
58
+ export default NewWorkspaceDialog;
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/NewWorkspaceDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACH,MAAM,EAEN,IAAI,EACJ,KAAK,EACL,GAAG,EACH,KAAK,EACL,OAAO,GACV,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,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC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AK,CAAC,MAAM,CAAC,CAAC;QACzD,IAAI,KAAK,CAAC,QAAQ;YACd,OAAO,YAAa,CAAC,SAAS,CAAC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,GAAG,CAAC,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9F,CAAC;IACD,wBAAwB;IACxB,SAAS,QAAQ;QACb,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,KAAK,CAAC,QAAQ;YAAE,OAAO,YAAa,CAAC,UAAU,EAAE,CAAC;QACtD,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-workspace-form {
5
+ .ant-select {
6
+ width: auto;
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
+ Name: string;
5
+ MemberIds: never[];
6
+ };
7
+ params: {
8
+ Name: string;
9
+ MemberIds: never[];
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
+ Name: "",
11
+ MemberIds: [],
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/workspace/components/NewWorkspaceDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IACjB;QAGA;;;;mBAAgB;gBACf,IAAI,EAAE,EAAE;gBACR,SAAS,EAAE,EAAE;aACb;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,8 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkspaceCard: (props: {
4
+ id?: string;
5
+ /** Workspace Card 显示选中时的样式 */
6
+ active?: boolean;
7
+ }) => JSX.Element;
8
+ export default WorkspaceCard;
@@ -0,0 +1,18 @@
1
+ import "./index.less";
2
+ import { faAcorn, faPlus } from "@fortawesome/pro-light-svg-icons";
3
+ import Card from "@voplus/morpho-ui/es/controls/Card";
4
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
5
+ import React from "react";
6
+ import classnames from "classnames";
7
+ import { observe } from "@voplus/morpho-ui";
8
+ import { useWorkspace } from "../../../../data/workspace";
9
+ const WorkspaceCard = (props) => {
10
+ const { id, active } = props;
11
+ const workspace = useWorkspace(id, { reload: false });
12
+ return observe(() => React.createElement(Card, { className: classnames("workspace-card", { active: active }), padding: "15px 12px", shadow: false, hoverShadow: false },
13
+ React.createElement("div", { className: classnames("workspaces-icon", { "new-workspace-icon": !id }) },
14
+ React.createElement(FAIcon, { icon: id ? faAcorn : faPlus })),
15
+ React.createElement("div", { className: "workspaces-name" }, (workspace === null || workspace === void 0 ? void 0 : workspace.name) || "New WorkSpace")));
16
+ };
17
+ export default WorkspaceCard;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspaceCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,aAAa,GAAG,CAAC,KAItB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC7B,MAAM,SAAS,GAAG,YAAY,CAAC,EAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAEvD,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAE3D,OAAO,EAAC,WAAW,EACnB,MAAM,EAAE,KAAK,EACb,WAAW,EAAE,KAAK;QAElB,6BAAK,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,EAAE,oBAAoB,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3E,oBAAC,MAAM,IAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,GAAI,CAClC;QACN,6BAAK,SAAS,EAAC,iBAAiB,IAC9B,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,KAAI,eAAe,CAC9B,CACC,CACR,CAAA;AACF,CAAC,CAAA;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1,47 @@
1
+ :global {
2
+ .workspace-card {
3
+ width: 110px;
4
+ display: flex;
5
+ flex-flow: column;
6
+ align-items: center;
7
+ border-radius: 15px;
8
+ padding: 15px 8px;
9
+ background: transparent;
10
+ &.active {
11
+ background: #dedbdb57;
12
+ }
13
+ &:hover {
14
+ background: #dedbdb57;
15
+ }
16
+ .workspaces-icon {
17
+ width: 80px;
18
+ height: 80px;
19
+ font-size: 24px;
20
+ color: #ffffff;
21
+ background: #a0dcfa;
22
+ border-radius: 15px;
23
+ border: solid 1px #ffffff;
24
+ display: flex;
25
+ justify-content: center;
26
+ align-items: center;
27
+ }
28
+ .new-workspace-icon {
29
+ color: #bdb9b9;
30
+ background: #ffffff;
31
+ border: dashed 1px #bdb9b9;
32
+ }
33
+ .workspaces-name {
34
+ width: 100%;
35
+ height: 36px;
36
+ font-size: 15px;
37
+ text-align: center;
38
+ display: -webkit-box;
39
+ -webkit-box-orient: vertical;
40
+ -webkit-line-clamp: 2;
41
+ line-height: 18px;
42
+ overflow: hidden;
43
+ text-overflow: ellipsis;
44
+ margin-top: 10px;
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ import { IWorkspace } from "../../../../data/workspace";
4
+ /** A workspace list view shows workspace in card style. */
5
+ declare const WorkspaceCardList: (props: {
6
+ /** filter roles */
7
+ roles?: boolean | undefined;
8
+ /** 显示add card */
9
+ addCard?: boolean | undefined;
10
+ /** item onclick */
11
+ onItemClick?: ((item: IWorkspace) => void) | undefined;
12
+ }) => JSX.Element;
13
+ export default WorkspaceCardList;
@@ -0,0 +1,49 @@
1
+ import "./index.less";
2
+ import { useWorkspaceListEffect } from "../../../../data/workspace";
3
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
4
+ import React, { useState } from "react";
5
+ import InfiniteScrollView from "@voplus/morpho-ui/es/controls/InfiniteScrollView";
6
+ import WorkspaceCard from "../WorkspaceCard";
7
+ import { observe } from "@voplus/morpho-ui";
8
+ import { useApplicationContext } from "@voplus/morpho-data";
9
+ import { useAutoUpdateListData } from "../../../../data/workspace/workspace-events";
10
+ import { useRenderOnChange } from "@voplus/morpho-ui";
11
+ /** A workspace list view shows workspace in card style. */
12
+ const WorkspaceCardList = (props) => {
13
+ const { user } = useApplicationContext();
14
+ const [active, setActive] = useState(null);
15
+ /** 建立 ListView 和useWorkspaceListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
16
+ const list = useCreateListDataState({
17
+ filterDefaults: {
18
+ includes: "tags",
19
+ filters: props.roles
20
+ ? [{ c: "Roles", o: "contains", l: "And", v1: 'Member' }]
21
+ : [],
22
+ },
23
+ }, [props.roles]);
24
+ if (props.addCard) {
25
+ list.insert({ id: "0", name: "" }, 0);
26
+ }
27
+ ;
28
+ /** 如果 list.filters.options变更了就重渲染,使下一行的useWorkspaceListEffect 可以接收新参数*/
29
+ useRenderOnChange(() => list.filters.options);
30
+ /** 把ListDataState传给useWorkspaceListEffect,使之可以自動更新loading, hasmore. */
31
+ useWorkspaceListEffect(list, (result) => list.union(result), list.filters.options);
32
+ /** useOnNewWorkspace, useOnDeleteWorkspace的sugar syntax 自動更新list. */
33
+ useAutoUpdateListData(list, (d) => true);
34
+ return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
35
+ React.createElement("div", { className: "workspace-list-view" },
36
+ React.createElement(InfiniteScrollView, { empty: list.isEmpty, loading: list.loading, hasMore: list.hasMore, loadMore: loadMore },
37
+ React.createElement("div", { className: "workspace-card-list" }, list.data.map((i) => (React.createElement("div", { key: i.id, onClick: () => onItemClick(i) },
38
+ React.createElement(WorkspaceCard, { id: i.id === "0" ? "" : i.id, active: active === i.id }))))))))));
39
+ function loadMore() {
40
+ list.triggerNextPage();
41
+ }
42
+ function onItemClick(item) {
43
+ var _a;
44
+ setActive(item.id);
45
+ (_a = props.onItemClick) === null || _a === void 0 ? void 0 : _a.call(props, item);
46
+ }
47
+ };
48
+ export default WorkspaceCardList;
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspaceCardList/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;AAExC,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,2DAA2D;AAC3D,MAAM,iBAAiB,GAAG,CAAC,KAO1B,EAAE,EAAE;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE1D,mFAAmF;IACnF,MAAM,IAAI,GAAG,sBAAsB,CAC/B;QACI,cAAc,EAAE;YACZ,QAAQ,EAAE,MAAM;YAChB,OAAO,EAAE,KAAK,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AAC,CAAC,CAAC;oBACzC,oBAAC,aAAa,IACV,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAC5B,MAAM,EAAE,MAAM,KAAK,CAAC,CAAC,EAAE,GACzB,CACA,CAET,CAAC,CACA,CACW,CACnB,CACiB,CAE9B,CAAC,CAAC;IAEH,SAAS,QAAQ;QACb,IAAI,CAAC,eAAe,EAAE,CAAC;IAC3B,CAAC;IAED,SAAS,WAAW,CAAC,IAAgB;;QACjC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAClB,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,CAAC;IAC9B,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,13 @@
1
+ :global {
2
+ .workspace-list-view {
3
+ height: 100%;
4
+ padding: 0 12px;
5
+ .workspace-card-list {
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ > div {
9
+ margin: 8px;
10
+ }
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkspacePropertiesView: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default WorkspacePropertiesView;
@@ -0,0 +1,41 @@
1
+ import "./index.less";
2
+ import { InlineEdit, observe } from "@voplus/morpho-ui";
3
+ import React, { useEffect, useState } from "react";
4
+ import { useWorkspace, useWorkspaceStore } from "../../../../data/workspace";
5
+ import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
6
+ import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
7
+ import { State } from "./state";
8
+ import WorkTypeCardList from "../../../worktype/components/WorkTypeCardList";
9
+ import WorkspaceCompletedWorksChart from "../../controls/WorkspaceCompletedWorksChart";
10
+ import WorkspaceMenu from "../../controls/WorkspaceMenu";
11
+ import { runInAction } from "mobx";
12
+ import { useApplicationContext } from "@voplus/morpho-data";
13
+ import { useDocumentStore } from "@voplus/morpho-document-core";
14
+ const WorkspacePropertiesView = (props) => {
15
+ const id = props.id;
16
+ const store = useWorkspaceStore();
17
+ const docStore = useDocumentStore();
18
+ const [state] = useState(new State(id, store));
19
+ const { user } = useApplicationContext();
20
+ const workspace = useWorkspace(id, { reload: false });
21
+ useEffect(() => {
22
+ runInAction(async () => {
23
+ const doc = await docStore.loadAccess(props.id);
24
+ state.update(doc);
25
+ });
26
+ }, [props.id]);
27
+ return observe(() => (React.createElement("div", { className: "module-detail-view workspace-properties-view" }, workspace.loaded && (React.createElement(React.Fragment, null,
28
+ React.createElement("div", { className: "workspace-header" },
29
+ React.createElement("div", { className: "workspace-name" },
30
+ React.createElement(InlineEdit, { defaultValue: workspace.name, content: (v) => (React.createElement("div", null, workspace.name)), onSave: (value) => state.save(value, workspace.name, { Name: value }) }),
31
+ React.createElement(WorkspaceMenu, { id: id, closeAside: true })),
32
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, list: state.members, multiple: true, onChange: onChange })),
33
+ React.createElement(WorkspaceCompletedWorksChart, { id: props.id }),
34
+ React.createElement(DocumentTabs, { id: id, detailTitle: "Work Types", isLinks: false, details: React.createElement(WorkTypeCardList, null) }))))));
35
+ async function onChange(ids, members) {
36
+ await store.edit(id, { data: { MemberIds: ids }, error: "message" });
37
+ runInAction(() => { state.members = members; });
38
+ }
39
+ };
40
+ export default WorkspacePropertiesView;
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspacePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,E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