@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,108 @@
1
+ import { __decorate } from "tslib";
2
+ import { action, computed, makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor(_layout, _url) {
5
+ Object.defineProperty(this, "_layout", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: _layout
10
+ });
11
+ Object.defineProperty(this, "_url", {
12
+ enumerable: true,
13
+ configurable: true,
14
+ writable: true,
15
+ value: _url
16
+ });
17
+ Object.defineProperty(this, "menuKey", {
18
+ enumerable: true,
19
+ configurable: true,
20
+ writable: true,
21
+ value: undefined
22
+ });
23
+ Object.defineProperty(this, "workStatusTotals", {
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true,
27
+ value: {
28
+ new: 0,
29
+ due: 0,
30
+ pending: 0,
31
+ done: 0,
32
+ cancelled: 0,
33
+ }
34
+ });
35
+ makeObservable(this);
36
+ }
37
+ navigate(key, rest) {
38
+ this.menuKey = [key];
39
+ this._layout.history.push(`${this._url}${key}${rest !== null && rest !== void 0 ? rest : ""}`);
40
+ }
41
+ updateWorkStatusTotal(oldStatus, status) {
42
+ this.workStatusTotals[oldStatus.toLowerCase()]--;
43
+ this.workStatusTotals[status.toLowerCase()]++;
44
+ }
45
+ get nNewOptions() {
46
+ return {
47
+ Total: true,
48
+ List: false,
49
+ Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "New" }],
50
+ };
51
+ }
52
+ get nDueOptions() {
53
+ return {
54
+ Total: true,
55
+ List: false,
56
+ Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Due" }],
57
+ };
58
+ }
59
+ get nPendingOptions() {
60
+ return {
61
+ Total: true,
62
+ List: false,
63
+ Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Pending" }],
64
+ };
65
+ }
66
+ get nDoneOptions() {
67
+ return {
68
+ Total: true,
69
+ List: false,
70
+ Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Done" }],
71
+ };
72
+ }
73
+ get nCancelledOptions() {
74
+ return {
75
+ Total: true,
76
+ List: false,
77
+ Filters: [{ c: "WorkStatus", o: "=", l: "And", v1: "Cancelled" }],
78
+ };
79
+ }
80
+ }
81
+ __decorate([
82
+ observable
83
+ ], State.prototype, "menuKey", void 0);
84
+ __decorate([
85
+ observable
86
+ ], State.prototype, "workStatusTotals", void 0);
87
+ __decorate([
88
+ action
89
+ ], State.prototype, "navigate", null);
90
+ __decorate([
91
+ action
92
+ ], State.prototype, "updateWorkStatusTotal", null);
93
+ __decorate([
94
+ computed
95
+ ], State.prototype, "nNewOptions", null);
96
+ __decorate([
97
+ computed
98
+ ], State.prototype, "nDueOptions", null);
99
+ __decorate([
100
+ computed
101
+ ], State.prototype, "nPendingOptions", null);
102
+ __decorate([
103
+ computed
104
+ ], State.prototype, "nDoneOptions", null);
105
+ __decorate([
106
+ computed
107
+ ], State.prototype, "nCancelledOptions", null);
108
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAKpE,MAAM,OAAO,KAAK;IAWjB,YAAoB,OA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OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC;SAC/D,CAAC;IACH,CAAC;IAGD,IAAW,YAAY;QACtB,OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;SAC5D,CAAC;IACH,CAAC;IAGD,IAAW,iBAAiB;QAC3B,OAAO;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;YACX,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC;SACjE,CAAC;IACH,CAAC;CACD;AArEY;IAAX,UAAU;sCAAoD;AAEnD;IAAX,UAAU;+CAMT;AAMM;IAAP,MAAM;qCAGN;AAGD;IADC,MAAM;kDAIN;AAGD;IADC,QAAQ;wCAOR;AAGD;IADC,QAAQ;wCAOR;AAGD;IADC,QAAQ;4CAOR;AAGD;IADC,QAAQ;yCAOR;AAGD;IADC,QAAQ;8CAOR"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkTypeCard: (props: {
4
+ id?: string;
5
+ /** WorkType Card 显示选中时的样式 */
6
+ active?: boolean;
7
+ }) => JSX.Element;
8
+ export default WorkTypeCard;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import Card from "@voplus/morpho-ui/es/controls/Card";
3
+ import classnames from "classnames";
4
+ import { faAcorn, faPlus } from "@fortawesome/pro-light-svg-icons";
5
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
6
+ import { observe } from "@voplus/morpho-ui";
7
+ import { useWorkType } from "../../../../data/worktype";
8
+ import "./index.less";
9
+ const WorkTypeCard = (props) => {
10
+ const { id, active } = props;
11
+ const worktype = useWorkType(id, { reload: false });
12
+ return observe(() => React.createElement(Card, { className: classnames("worktype-card", { active: active }), padding: "15px 12px", shadow: false, hoverShadow: false },
13
+ React.createElement("div", { className: classnames("worktypes-icon", { "new-worktype-icon": !id }) },
14
+ React.createElement(FAIcon, { icon: id ? faAcorn : faPlus })),
15
+ React.createElement("div", { className: "worktypes-name" }, (worktype === null || worktype === void 0 ? void 0 : worktype.name) || "New WorkType")));
16
+ };
17
+ export default WorkTypeCard;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,cAAc,CAAC;AAEtB,MAAM,YAAY,GAAG,CAAC,KAIrB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAErD,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAE1D,OAAO,EAAC,WAAW,EACnB,MAAM,EAAE,KAAK,EACb,WAAW,EAAE,KAAK;QAElB,6BAAK,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,EAAE,mBAAmB,EAAE,CAAC,EAAE,EAAE,CAAC;YACzE,oBAAC,MAAM,IAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,GAAI,CAClC;QACN,6BAAK,SAAS,EAAC,gBAAgB,IAC7B,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,KAAI,cAAc,CAC5B,CACC,CACR,CAAA;AACF,CAAC,CAAA;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,47 @@
1
+ :global {
2
+ .worktype-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
+ .worktypes-icon {
17
+ width: 80px;
18
+ height: 80px;
19
+ font-size: 24px;
20
+ color: #ffffff;
21
+ background: pink;
22
+ border-radius: 15px;
23
+ border: solid 1px #ffffff;
24
+ display: flex;
25
+ justify-content: center;
26
+ align-items: center;
27
+ }
28
+ .new-worktype-icon {
29
+ color: #bdb9b9;
30
+ background: #ffffff;
31
+ border: dashed 1px #bdb9b9;
32
+ }
33
+ .worktypes-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,16 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ import { IWorkType } from "../../../../data/worktype";
4
+ /** A worktype list view shows worktype in card style. */
5
+ declare const WorkTypeCardList: {
6
+ (props: {
7
+ /** 设置work type item类型,默认值default */
8
+ type?: "default" | "card" | undefined;
9
+ /** item onclick */
10
+ onItemClick?: ((item: IWorkType) => void) | undefined;
11
+ }): JSX.Element;
12
+ defaultProps: {
13
+ type: string;
14
+ };
15
+ };
16
+ export default WorkTypeCardList;
@@ -0,0 +1,50 @@
1
+ import "./index.less";
2
+ import { useWorkTypeListEffect } from "../../../../data/worktype";
3
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
4
+ import React, { useState } from "react";
5
+ import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
6
+ import InfiniteScrollView from "@voplus/morpho-ui/es/controls/InfiniteScrollView";
7
+ import WorkTypeCard from "../WorkTypeCard";
8
+ import WorkTypeItem from "../WorkTypeItem";
9
+ import classnames from "classnames";
10
+ import { observe } from "@voplus/morpho-ui";
11
+ import { useRenderOnChange } from "@voplus/morpho-ui";
12
+ /** A worktype list view shows worktype in card style. */
13
+ const WorkTypeCardList = (props) => {
14
+ const [active, setActive] = useState(null);
15
+ const list = useCreateListDataState({
16
+ filterDefaults: {
17
+ includes: "tags",
18
+ filters: [],
19
+ },
20
+ }, []);
21
+ /** 如果 list.filters.options变更了就重渲染,使下一行的useWorkTypeListEffect 可以接收新参数*/
22
+ useRenderOnChange(() => list.filters.options);
23
+ /** 把ListDataState传给useWorkTypeListEffect,使之可以自動更新loading, hasmore. */
24
+ useWorkTypeListEffect(list, (result) => list.union(result), list.filters.options);
25
+ return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
26
+ React.createElement("div", { className: classnames("worktype-list-view", { "worktype-card-list": props.type === "card" }) },
27
+ React.createElement(InfiniteScrollView, { empty: list.isEmpty, loading: list.loading, hasMore: list.hasMore, loadMore: loadMore },
28
+ React.createElement("div", { className: "worktype-list-content" }, list.data.map((i) => (React.createElement("div", { key: i.id, onClick: () => onItemClick(i) }, props.type === "card" ?
29
+ React.createElement(WorkTypeCard, { id: i.id, active: active === i.id })
30
+ :
31
+ React.createElement(DocumentItemFrame, { frameProps: {
32
+ active: active === i.id,
33
+ hoverEffect: "background",
34
+ hoverBackgroundProps: { color: "#f2f2f2" },
35
+ } },
36
+ React.createElement(WorkTypeItem, { id: i.id })))))))))));
37
+ function loadMore() {
38
+ list.triggerNextPage();
39
+ }
40
+ function onItemClick(item) {
41
+ var _a;
42
+ setActive(item.id);
43
+ (_a = props.onItemClick) === null || _a === void 0 ? void 0 : _a.call(props, item);
44
+ }
45
+ };
46
+ WorkTypeCardList.defaultProps = {
47
+ type: "default"
48
+ };
49
+ export default WorkTypeCardList;
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeCardList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAa,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,yDAAyD;AACzD,MAAM,gBAAgB,GAAG,CAAC,KAKzB,EAAE,EAAE;IACJ,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAgB,IAA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CAAC,CAAC,EAAE;gCACvB,WAAW,EAAE,YAAY;gCACzB,oBAAoB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;6BAC1C;4BAED,oBAAC,YAAY,IAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAI,CACP,CAGhB,CACN,CAAC,CACG,CACc,CAChB,CACoB,CAC3B,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,IAAI,CAAC,eAAe,EAAE,CAAC;IACxB,CAAC;IAED,SAAS,WAAW,CAAC,IAAe;;QACnC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACnB,MAAA,KAAK,CAAC,WAAW,+CAAjB,KAAK,EAAe,IAAI,CAAC,CAAC;IAC3B,CAAC;AACF,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,IAAI,EAAE,SAAS;CACf,CAAA;AAED,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,15 @@
1
+ :global {
2
+ .worktype-list-view {
3
+ height: 100%;
4
+ &.worktype-card-list {
5
+ padding: 0 12px;
6
+ .worktype-list-content {
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ > div {
10
+ margin: 8px;
11
+ }
12
+ }
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkTypeItem: (props: {
4
+ id?: string;
5
+ /** WorkType Card 显示选中时的样式 */
6
+ active?: boolean;
7
+ }) => JSX.Element;
8
+ export default WorkTypeItem;
@@ -0,0 +1,11 @@
1
+ import "./index.less";
2
+ import React from "react";
3
+ import { observe } from "@voplus/morpho-ui";
4
+ import { useWorkType } from "../../../../data/worktype";
5
+ const WorkTypeItem = (props) => {
6
+ const { id, active } = props;
7
+ const worktype = useWorkType(id, { reload: false });
8
+ return observe(() => React.createElement("div", { className: "worktype-item" }, worktype.name));
9
+ };
10
+ export default WorkTypeItem;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,YAAY,GAAG,CAAC,KAIrB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAErD,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,6BAAK,SAAS,EAAC,eAAe,IAC5B,QAAQ,CAAC,IAAI,CACT,CACN,CAAA;AACF,CAAC,CAAA;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,19 @@
1
+ :global {
2
+ .worktype-item {
3
+ position: relative;
4
+ color: #000;
5
+ font-size: 15px;
6
+ font-weight: 500;
7
+ word-break: break-all;
8
+ padding: 20px;
9
+ // background: transparent;
10
+ &:after {
11
+ position: absolute;
12
+ content: "";
13
+ left: 20px;
14
+ right: 20px;
15
+ bottom: 0;
16
+ border-bottom: 1px solid #f2f2f2;
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkTypeProperties: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default WorkTypeProperties;
@@ -0,0 +1,56 @@
1
+ import React, { useState, useEffect } from "react";
2
+ import { InputNumber, Form } from "@voplus/antd";
3
+ import { InlineEdit, observe } from "@voplus/morpho-ui";
4
+ import DocumentSelectDialog from "@voplus/morpho-document/es/components/DocumentSelectDialog";
5
+ import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
6
+ import { useApplicationContext } from "@voplus/morpho-data";
7
+ import { useWorkType, useWorkTypeStore } from "../../../../data/worktype";
8
+ import { State } from "./state";
9
+ import { runInAction } from "mobx";
10
+ import "./index.less";
11
+ const WorkTypeProperties = (props) => {
12
+ const store = useWorkTypeStore();
13
+ const [state] = useState(new State(store));
14
+ const contact = useWorkType(props.id);
15
+ state.update(contact);
16
+ const [form] = Form.useForm();
17
+ const { user } = useApplicationContext();
18
+ useEffect(() => {
19
+ runInAction(() => (state.defaultdueEdit = contact.defaultDue ? true : false));
20
+ }, [props.id]);
21
+ return observe(() => {
22
+ var _a, _b, _c;
23
+ return (React.createElement("div", { className: "work-type-properties" },
24
+ React.createElement(Form, { form: form, labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true },
25
+ React.createElement(Form.Item, { label: "Number Format" },
26
+ React.createElement(InlineEdit, { defaultValue: (_a = contact.sequence) === null || _a === void 0 ? void 0 : _a.format, content: (v) => {
27
+ var _a;
28
+ return (React.createElement("div", null, ((_a = contact.sequence) === null || _a === void 0 ? void 0 : _a.format) ? contact.sequence.format : "Add NumberFormat"));
29
+ }, onSave: (value) => { var _a; return state.save(value, (_a = contact.sequence) === null || _a === void 0 ? void 0 : _a.format, { Sequence: { format: value } }); } })),
30
+ React.createElement(Form.Item, { label: "Default Folder" },
31
+ React.createElement("div", { onClick: () => runInAction(() => (state.folderEdit = true)) }, ((_b = state.contact.defaultFolder) === null || _b === void 0 ? void 0 : _b.name) || "Add Default Folder")),
32
+ React.createElement(Form.Item, { label: "Documentation" },
33
+ React.createElement("div", { onClick: () => runInAction(() => (state.documentationEdit = true)) }, ((_c = state.contact.document) === null || _c === void 0 ? void 0 : _c.name) || "Add Documentation")),
34
+ React.createElement(Form.Item, { label: "Default Due" }, state.defaultdueEdit ? (React.createElement(InputNumber, { min: 0, defaultValue: state.contact.defaultDue, onChange: (value) => {
35
+ store.edit(contact.id, { data: { DefaultDue: value }, error: "message" });
36
+ }, onBlur: () => runInAction(() => (state.defaultdueEdit = false)) })) : (React.createElement("div", { onClick: () => runInAction(() => (state.defaultdueEdit = true)) }, state.contact.defaultDue ? state.contact.defaultDue : "Add Default Due"))),
37
+ React.createElement(Form.Item, { label: "Requester" },
38
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: contact.requester, onChange: (ids) => {
39
+ store.edit(contact.id, { data: { RequesterIds: ids }, error: "message" });
40
+ } })),
41
+ React.createElement(Form.Item, { label: "Accepters" },
42
+ React.createElement(AvatarList, { organizationId: user.info.organizationId, multiple: true, buttonText: "Ok", list: contact.accepters, onChange: (ids) => {
43
+ store.edit(contact.id, { data: { AccepterIds: ids }, error: "message" });
44
+ } }))),
45
+ state.folderEdit && (React.createElement(DocumentSelectDialog, { multiSelect: false, onCancel: () => runInAction(() => (state.folderEdit = false)), onSelect: (data) => {
46
+ store.edit(props.id, { data: { DefaultFolderId: data[0].id }, error: "message" });
47
+ runInAction(() => (state.folderEdit = false));
48
+ } })),
49
+ state.documentationEdit && (React.createElement(DocumentSelectDialog, { multiSelect: false, onCancel: () => runInAction(() => (state.documentationEdit = false)), onSelect: (data) => {
50
+ store.edit(props.id, { data: { DocumentId: data[0].id }, error: "message" });
51
+ runInAction(() => (state.documentationEdit = false));
52
+ } }))));
53
+ });
54
+ };
55
+ export default WorkTypeProperties;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,oBAAoB,MAAM,4DAA4D,CAAC;AAC9F,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,EAA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AC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,5 @@
1
+ :global{
2
+ .work-type-properties{
3
+ padding: 10px 20px;
4
+ }
5
+ }
@@ -0,0 +1,12 @@
1
+ import { IWorkType, WorkTypeStore } from "../../../../data/worktype";
2
+ export declare class State {
3
+ private store;
4
+ contact: IWorkType;
5
+ defaultdueEdit: boolean;
6
+ folderEdit: boolean;
7
+ documentationEdit: boolean;
8
+ constructor(store: WorkTypeStore);
9
+ update(contact: IWorkType): void;
10
+ /** edit save */
11
+ save(v: any, name: any, params: Record<string, unknown>): void;
12
+ }
@@ -0,0 +1,65 @@
1
+ import { __decorate } from "tslib";
2
+ import { action, makeObservable, observable } from "mobx";
3
+ export class State {
4
+ constructor(store) {
5
+ Object.defineProperty(this, "store", {
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true,
9
+ value: store
10
+ });
11
+ Object.defineProperty(this, "contact", {
12
+ enumerable: true,
13
+ configurable: true,
14
+ writable: true,
15
+ value: void 0
16
+ });
17
+ Object.defineProperty(this, "defaultdueEdit", {
18
+ enumerable: true,
19
+ configurable: true,
20
+ writable: true,
21
+ value: false
22
+ });
23
+ Object.defineProperty(this, "folderEdit", {
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true,
27
+ value: false
28
+ });
29
+ Object.defineProperty(this, "documentationEdit", {
30
+ enumerable: true,
31
+ configurable: true,
32
+ writable: true,
33
+ value: false
34
+ });
35
+ makeObservable(this);
36
+ }
37
+ update(contact) {
38
+ this.contact = contact;
39
+ }
40
+ /** edit save */
41
+ save(v, name, params) {
42
+ if ((v === null || v === void 0 ? void 0 : v.trim()) === name)
43
+ return;
44
+ this.store.edit(this.contact.id, { data: params, error: "message" });
45
+ }
46
+ }
47
+ __decorate([
48
+ observable
49
+ ], State.prototype, "contact", void 0);
50
+ __decorate([
51
+ observable
52
+ ], State.prototype, "defaultdueEdit", void 0);
53
+ __decorate([
54
+ observable
55
+ ], State.prototype, "folderEdit", void 0);
56
+ __decorate([
57
+ observable
58
+ ], State.prototype, "documentationEdit", void 0);
59
+ __decorate([
60
+ action
61
+ ], State.prototype, "update", null);
62
+ __decorate([
63
+ action
64
+ ], State.prototype, "save", null);
65
+ //# sourceMappingURL=state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypeProperties/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAMjB,YAAoB,KAAoB;;;;;mBAApB;;QALR;;;;;WAA0B;QAC1B;;;;mBAAwB,KAAK;WAAC;QAC9B;;;;mBAAoB,KAAK;WAAC;QAC1B;;;;mBAA2B,KAAK;WAAC;QAG5C,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,MAAM,CAAC,OAAkB;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACxB,CAAC;IAED,gBAAgB;IAET,IAAI,CAAC,CAAM,EAAE,IAAS,EAAE,MAA+B;QAC7D,IAAI,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,EAAE,MAAK,IAAI;YAAE,OAAO;QAC/B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACtE,CAAC;CACD;AAnBY;IAAX,UAAU;sCAA2B;AAC1B;IAAX,UAAU;6CAA+B;AAC9B;IAAX,UAAU;yCAA2B;AAC1B;IAAX,UAAU;gDAAkC;AAMrC;IAAP,MAAM;mCAEN;AAID;IADC,MAAM;iCAIN"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const WorkTypePropertiesTabs: (props: {
3
+ id: string;
4
+ }) => JSX.Element;
5
+ export default WorkTypePropertiesTabs;
@@ -0,0 +1,28 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import { Tabs } from "@voplus/antd";
4
+ import ActivityLog from "@voplus/morpho-document/es/components/ActivityLog/ActivityLog2";
5
+ import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
6
+ import TaskList from "../../../tasks/components/SubTaskList";
7
+ import WorkTypeProperties from '../WorkTypeProperties';
8
+ import WorkTypeQA from "../WorkTypeQA";
9
+ const WorkTypePropertiesTabs = (props) => {
10
+ const { id } = props;
11
+ /**Tabs 当前激活 tab 面板的 key */
12
+ const [activeKey, setActiveKey] = useState("Properties");
13
+ useEffect(() => {
14
+ setActiveKey("Properties");
15
+ }, [props.id]);
16
+ return observe(() => (React.createElement(Tabs, { activeKey: activeKey, className: "work-type-tabs", onChange: onChange },
17
+ React.createElement(Tabs.TabPane, { tab: "Properties", key: "Properties" }, activeKey === "Properties" && React.createElement(WorkTypeProperties, { id: id })),
18
+ React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" }, activeKey === "Activities" && React.createElement(ActivityLog, { id: id })),
19
+ React.createElement(Tabs.TabPane, { tab: "Tasks", key: "Tasks" }, activeKey === "Tasks" && React.createElement(TaskList, { parentId: id })),
20
+ React.createElement(Tabs.TabPane, { tab: "Documents", key: "Documents" }, activeKey === "Documents" && React.createElement(DocumentList, { id: id, multiple: true })),
21
+ React.createElement(Tabs.TabPane, { tab: "QA Setting", key: "QA Setting" }, activeKey === "QA Setting" && React.createElement(WorkTypeQA, { id: id })))));
22
+ /**切换面板的回调*/
23
+ function onChange(activeKey) {
24
+ setActiveKey(activeKey);
25
+ }
26
+ };
27
+ export default WorkTypePropertiesTabs;
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypePropertiesTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,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,IAAC,QAAQ,EAAE,EAAE,GAAI,CACtC;QACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,WAAW,EAAC,GAAG,EAAC,WAAW,IAC3C,SAAS,KAAK,WAAW,IAAI,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,SAAG,CACjD;QACf,oBAAC,IAAI,CAAC,OAAO,IAAC,GAAG,EAAC,YAAY,EAAC,GAAG,EAAC,YAAY,IAC7C,SAAS,KAAK,YAAY,IAAI,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,GAAI,CACvC,CACT,CACP,CAAC,CAAC;IAEH,YAAY;IACZ,SAAS,QAAQ,CAAC,SAAiB;QAClC,YAAY,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import "./index.less";
3
+ declare const WorkTypePropertiesView: (props: {
4
+ id: string;
5
+ }) => JSX.Element;
6
+ export default WorkTypePropertiesView;
@@ -0,0 +1,38 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { useDocumentStore } from "@voplus/morpho-document-core";
3
+ import { useApplicationContext } from "@voplus/morpho-data";
4
+ import { runInAction } from "mobx";
5
+ import { InlineEdit, observe } from "@voplus/morpho-ui";
6
+ import { useWorkType, useWorkTypeStore } from "../../../../data/worktype";
7
+ import { State } from "./state";
8
+ import WorkspaceMenu from "../../../workspace/controls/WorkspaceMenu";
9
+ import WorktypeCompleteWorksChart from "../../controls/WorktypeCompleteWorksChart";
10
+ import WorkTypePropertiesTabs from '../WorkTypePropertiesTabs';
11
+ import "./index.less";
12
+ const WorkTypePropertiesView = (props) => {
13
+ const id = props.id;
14
+ const store = useWorkTypeStore();
15
+ const docStore = useDocumentStore();
16
+ const [state] = useState(new State(id, store));
17
+ const { user } = useApplicationContext();
18
+ const worktype = useWorkType(id, { reload: false });
19
+ useEffect(() => {
20
+ runInAction(async () => {
21
+ const doc = await docStore.loadAccess(props.id);
22
+ state.update(doc);
23
+ });
24
+ }, [props.id]);
25
+ return observe(() => (React.createElement("div", { className: "module-detail-view worktype-properties-view" }, worktype.loaded && (React.createElement(React.Fragment, null,
26
+ React.createElement("div", { className: "worktype-header" },
27
+ React.createElement("div", { className: "worktype-name" },
28
+ React.createElement(InlineEdit, { defaultValue: worktype.name, content: (v) => React.createElement("div", null, worktype.name), onSave: (value) => state.save(value, worktype.name, { Name: value }) }),
29
+ React.createElement(WorkspaceMenu, { id: id, closeAside: true }))),
30
+ React.createElement(WorktypeCompleteWorksChart, { id: props.id }),
31
+ React.createElement(WorkTypePropertiesTabs, { id: id }))))));
32
+ // async function onChange(ids: string[], members: IUnit[]) {
33
+ // await store.edit(id, { data: { MemberIds: ids }, error: "message" });
34
+ // runInAction(() => { state.members = members })
35
+ // }
36
+ };
37
+ export default WorkTypePropertiesView;
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/worktype/components/WorkTypePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,aAAa,MAAM,2CAA2C,CAAC;AACtE,OAAO,0BAA0B,MAAM,2CAA2C,CAAC;AACnF,OAAO,sBAAsB,MAAM,2BAA2B,CAAA;A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,EAAE,CAAC,GACxE;gBACF,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACtC,CAOD;QACN,oBAAC,0BAA0B,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;QAC5C,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,CAClB,CACjB,CACI,CACN,CAAC,CAAC;IAEH,6DAA6D;IAC7D,4EAA4E;IAC5E,qDAAqD;IACrD,IAAI;AACL,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,19 @@
1
+ :global {
2
+ .worktype-properties-view {
3
+ .worktype-header {
4
+ padding: 10px 20px;
5
+ .worktype-name {
6
+ font-size: 24px;
7
+ color: #000;
8
+ font-weight: 500;
9
+ word-break: break-all;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: space-between;
13
+ }
14
+ .avatar-list-view {
15
+ margin-top: 10px;
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,15 @@
1
+ import { IDocumentAccessSettings } from "@voplus/morpho-document-core";
2
+ import { WorkTypeStore } from "../../../../data/worktype";
3
+ export declare class State {
4
+ private id;
5
+ private store;
6
+ /** Name of workspace */
7
+ name: string;
8
+ /** Visible of Edit name */
9
+ editVisible: boolean;
10
+ members: any[];
11
+ constructor(id: string, store: WorkTypeStore);
12
+ update(doc: IDocumentAccessSettings): void;
13
+ /** edit save */
14
+ save(v: any, name: any, params: Record<string, unknown>): void;
15
+ }