@voplus/morpho-workspace 1.3.62 → 1.3.64

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 (376) hide show
  1. package/es/data/task/types.d.ts +1 -0
  2. package/es/data/work/interfaces.d.ts +1 -0
  3. package/es/{pages → modules}/Routes.js +4 -4
  4. package/es/modules/Routes.js.map +1 -0
  5. package/es/modules/board/components/BoardPropertiesView/index.js +1 -1
  6. package/es/modules/board/components/BoardPropertiesView/index.js.map +1 -1
  7. package/es/modules/meeting/components/AgendaList/AgendaContext.d.ts +28 -0
  8. package/es/modules/meeting/components/AgendaList/AgendaContext.js +81 -0
  9. package/es/modules/meeting/components/AgendaList/AgendaContext.js.map +1 -0
  10. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +29 -27
  11. package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
  12. package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +28 -35
  13. package/es/modules/meeting/components/AgendaList/AgendaItem/state.d.ts +4 -12
  14. package/es/modules/meeting/components/AgendaList/AgendaItem/state.js +7 -73
  15. package/es/modules/meeting/components/AgendaList/AgendaItem/state.js.map +1 -1
  16. package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.less +1 -0
  17. package/es/modules/meeting/components/AgendaList/index.js +27 -27
  18. package/es/modules/meeting/components/AgendaList/index.js.map +1 -1
  19. package/es/modules/meeting/components/AgendaList/index.less +35 -0
  20. package/es/modules/meeting/components/MeetingProperties/index.js +1 -1
  21. package/es/modules/meeting/components/MeetingProperties/index.js.map +1 -1
  22. package/es/modules/meeting/pages/MeetingDefaultView/index.js +1 -1
  23. package/es/modules/meeting/pages/MeetingDefaultView/index.js.map +1 -1
  24. package/es/modules/meeting/pages/MeetingDefaultView/index.less +4 -1
  25. package/es/modules/project/ProjectDefaultView/index.js.map +1 -0
  26. package/es/modules/project/data/ProjectStore.js.map +1 -0
  27. package/es/modules/project/data/hook.js.map +1 -0
  28. package/es/modules/project/data/index.js.map +1 -0
  29. package/es/modules/project/data/interfaces.js.map +1 -0
  30. package/es/modules/space/components/Notes/ColorSelect/index.js.map +1 -0
  31. package/es/modules/space/components/Notes/NewNoteDialog/index.js.map +1 -0
  32. package/es/modules/space/components/Notes/TextNoteCard/index.js.map +1 -0
  33. package/es/modules/space/components/Notes/TextNoteCard/state.js.map +1 -0
  34. package/es/modules/space/components/Notes/index.js.map +1 -0
  35. package/es/modules/space/components/Notifications/index.js.map +1 -0
  36. package/es/modules/space/components/Projects/index.js.map +1 -0
  37. package/es/modules/space/components/TaskMenu/index.js.map +1 -0
  38. package/es/modules/space/components/TaskMenu/state.js.map +1 -0
  39. package/es/modules/space/components/Tasks/index.js.map +1 -0
  40. package/es/{pages/Space → modules/space}/components/WorkMenu/index.js +2 -2
  41. package/es/modules/space/components/WorkMenu/index.js.map +1 -0
  42. package/es/modules/space/components/WorkMenu/state.js.map +1 -0
  43. package/es/modules/space/components/Works/index.js.map +1 -0
  44. package/es/modules/space/components/Workspaces/index.js.map +1 -0
  45. package/es/{pages/Space → modules/space}/pages/MySpace/index.js +4 -4
  46. package/es/modules/space/pages/MySpace/index.js.map +1 -0
  47. package/es/modules/space/pages/MySpace/state.js.map +1 -0
  48. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +1 -1
  49. package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
  50. package/es/modules/tasks/components/TaskProperties/index.js +16 -2
  51. package/es/modules/tasks/components/TaskProperties/index.js.map +1 -1
  52. package/es/modules/tasks/components/TaskTabs/index.js +2 -2
  53. package/es/modules/tasks/components/TaskTabs/index.js.map +1 -1
  54. package/es/modules/tasks/pages/TaskDefaultView/index.js +1 -1
  55. package/es/modules/tasks/pages/TaskDefaultView/index.js.map +1 -1
  56. package/es/modules/work/components/NewWorkForm/index.d.ts +1 -0
  57. package/es/modules/work/components/NewWorkForm/index.js +9 -2
  58. package/es/modules/work/components/NewWorkForm/index.js.map +1 -1
  59. package/es/modules/work/components/NewWorkForm/state.d.ts +2 -0
  60. package/es/modules/work/components/NewWorkForm/state.js +1 -0
  61. package/es/modules/work/components/NewWorkForm/state.js.map +1 -1
  62. package/es/modules/work/components/RelatedWorkList/index.d.ts +5 -0
  63. package/es/modules/work/components/RelatedWorkList/index.js +8 -0
  64. package/es/modules/work/components/RelatedWorkList/index.js.map +1 -0
  65. package/es/modules/work/components/WorkErrorPropertiesView/index.js +2 -2
  66. package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
  67. package/es/modules/work/components/WorkList/index.d.ts +31 -18
  68. package/es/modules/work/components/WorkList/index.js +10 -4
  69. package/es/modules/work/components/WorkList/index.js.map +1 -1
  70. package/es/modules/work/components/WorkTabs/index.js +6 -3
  71. package/es/modules/work/components/WorkTabs/index.js.map +1 -1
  72. package/es/modules/work/components/WorkTabs/index.less +7 -1
  73. package/es/modules/work/components/WorksProperties/index.d.ts +1 -0
  74. package/es/modules/work/components/WorksProperties/index.js +15 -13
  75. package/es/modules/work/components/WorksProperties/index.js.map +1 -1
  76. package/es/modules/work/pages/WorkDefaultView/index.js +2 -2
  77. package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -1
  78. package/es/modules/{worktype → work/work-type}/components/NewTypeForm/index.js +1 -1
  79. package/es/modules/work/work-type/components/NewTypeForm/index.js.map +1 -0
  80. package/es/modules/work/work-type/components/NewTypeForm/index.less +8 -0
  81. package/es/modules/work/work-type/components/NewTypeForm/state.js.map +1 -0
  82. package/es/modules/work/work-type/components/RepeatTab/index.js.map +1 -0
  83. package/es/modules/{worktype → work/work-type}/components/WorkTypeCard/index.js +4 -4
  84. package/es/modules/work/work-type/components/WorkTypeCard/index.js.map +1 -0
  85. package/es/modules/{worktype → work/work-type}/components/WorkTypeCardList/index.d.ts +1 -1
  86. package/es/modules/{worktype → work/work-type}/components/WorkTypeCardList/index.js +2 -2
  87. package/es/modules/work/work-type/components/WorkTypeCardList/index.js.map +1 -0
  88. package/es/modules/{worktype → work/work-type}/components/WorkTypeItem/index.js +1 -1
  89. package/es/modules/work/work-type/components/WorkTypeItem/index.js.map +1 -0
  90. package/es/modules/{worktype → work/work-type}/components/WorkTypeList/index.d.ts +1 -1
  91. package/es/modules/{worktype → work/work-type}/components/WorkTypeList/index.js +3 -3
  92. package/es/modules/work/work-type/components/WorkTypeList/index.js.map +1 -0
  93. package/es/modules/{worktype → work/work-type}/components/WorkTypeProperties/index.js +1 -1
  94. package/es/modules/work/work-type/components/WorkTypeProperties/index.js.map +1 -0
  95. package/es/modules/{worktype → work/work-type}/components/WorkTypeProperties/state.d.ts +1 -1
  96. package/es/modules/work/work-type/components/WorkTypeProperties/state.js.map +1 -0
  97. package/es/modules/{worktype → work/work-type}/components/WorkTypePropertiesTabs/index.js +4 -4
  98. package/es/modules/work/work-type/components/WorkTypePropertiesTabs/index.js.map +1 -0
  99. package/es/modules/{worktype → work/work-type}/components/WorkTypePropertiesView/index.js +1 -1
  100. package/es/modules/work/work-type/components/WorkTypePropertiesView/index.js.map +1 -0
  101. package/es/modules/{worktype → work/work-type}/components/WorkTypePropertiesView/state.d.ts +1 -1
  102. package/es/modules/{worktype → work/work-type}/components/WorkTypePropertiesView/state.js +1 -1
  103. package/es/modules/work/work-type/components/WorkTypePropertiesView/state.js.map +1 -0
  104. package/es/modules/{worktype → work/work-type}/components/WorkTypeQA/index.js +5 -5
  105. package/es/modules/work/work-type/components/WorkTypeQA/index.js.map +1 -0
  106. package/es/modules/{worktype → work/work-type}/components/WorkTypeQA/state.d.ts +1 -1
  107. package/es/modules/work/work-type/components/WorkTypeQA/state.js.map +1 -0
  108. package/es/{pages/WorkType → modules/work/work-type/components}/WorkTypeSelect/index.d.ts +1 -1
  109. package/es/{pages/WorkType → modules/work/work-type/components}/WorkTypeSelect/index.js +2 -2
  110. package/es/modules/work/work-type/components/WorkTypeSelect/index.js.map +1 -0
  111. package/es/modules/work/work-type/components/WorkTypeStats/index.js.map +1 -0
  112. package/es/modules/work/work-type/components/WorkTypeStats/state.js.map +1 -0
  113. package/es/modules/{worktype → work/work-type}/components/WorkTypeTabs/index.js +4 -4
  114. package/es/modules/work/work-type/components/WorkTypeTabs/index.js.map +1 -0
  115. package/es/modules/work/work-type/components/WorkTypeTabs/index.less +27 -0
  116. package/es/modules/{worktype → work/work-type}/controls/WorkTypeMenu/index.js +1 -1
  117. package/es/modules/work/work-type/controls/WorkTypeMenu/index.js.map +1 -0
  118. package/es/modules/{worktype → work/work-type}/controls/WorktypeCompleteWorksChart/index.js +4 -4
  119. package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.js.map +1 -0
  120. package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/state.js.map +1 -0
  121. package/es/modules/{worktype → work/work-type}/pages/WorkTypeDefaultView/index.js +3 -3
  122. package/es/modules/work/work-type/pages/WorkTypeDefaultView/index.js.map +1 -0
  123. package/es/modules/workspace/components/WorkspaceTabs/index.js +2 -2
  124. package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -1
  125. package/es/modules/workspace/components/WorkspaceTabs/index.less +6 -1
  126. package/es/modules/workspace/controls/WorkspaceMenu/index.less +18 -12
  127. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +2 -2
  128. package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
  129. package/es/modules/workspace/pages/WorkspacePage/index.js +2 -2
  130. package/es/modules/workspace/pages/WorkspacePage/index.js.map +1 -1
  131. package/es/routes.js +1 -1
  132. package/es/routes.js.map +1 -1
  133. package/package.json +1 -1
  134. package/es/modules/workspaces/components/Access/index.d.ts +0 -6
  135. package/es/modules/workspaces/components/Access/index.js +0 -20
  136. package/es/modules/workspaces/components/Access/index.js.map +0 -1
  137. package/es/modules/workspaces/components/Account/index.d.ts +0 -6
  138. package/es/modules/workspaces/components/Account/index.js +0 -20
  139. package/es/modules/workspaces/components/Account/index.js.map +0 -1
  140. package/es/modules/workspaces/components/AddUsers/index.d.ts +0 -3
  141. package/es/modules/workspaces/components/AddUsers/index.js +0 -37
  142. package/es/modules/workspaces/components/AddUsers/index.js.map +0 -1
  143. package/es/modules/workspaces/components/AddUsers/index.less +0 -7
  144. package/es/modules/workspaces/components/ListHeard/index.d.ts +0 -5
  145. package/es/modules/workspaces/components/ListHeard/index.js +0 -23
  146. package/es/modules/workspaces/components/ListHeard/index.js.map +0 -1
  147. package/es/modules/workspaces/components/ListHeard/index.less +0 -33
  148. package/es/modules/workspaces/components/Status/index.d.ts +0 -6
  149. package/es/modules/workspaces/components/Status/index.js +0 -20
  150. package/es/modules/workspaces/components/Status/index.js.map +0 -1
  151. package/es/modules/workspaces/components/UsersList/index.d.ts +0 -3
  152. package/es/modules/workspaces/components/UsersList/index.js +0 -132
  153. package/es/modules/workspaces/components/UsersList/index.js.map +0 -1
  154. package/es/modules/workspaces/components/UsersList/index.less +0 -72
  155. package/es/modules/workspaces/pages/BoardView/index.d.ts +0 -3
  156. package/es/modules/workspaces/pages/BoardView/index.js +0 -70
  157. package/es/modules/workspaces/pages/BoardView/index.js.map +0 -1
  158. package/es/modules/workspaces/pages/BoardView/index.less +0 -57
  159. package/es/modules/workspaces/pages/ListView/index.d.ts +0 -3
  160. package/es/modules/workspaces/pages/ListView/index.js +0 -81
  161. package/es/modules/workspaces/pages/ListView/index.js.map +0 -1
  162. package/es/modules/workspaces/pages/ListView/index.less +0 -92
  163. package/es/modules/workspaces/pages/Users/index.d.ts +0 -3
  164. package/es/modules/workspaces/pages/Users/index.js +0 -38
  165. package/es/modules/workspaces/pages/Users/index.js.map +0 -1
  166. package/es/modules/workspaces/pages/Users/index.less +0 -47
  167. package/es/modules/workspaces/pages/WorkSpacesRoutes.d.ts +0 -3
  168. package/es/modules/workspaces/pages/WorkSpacesRoutes.js +0 -12
  169. package/es/modules/workspaces/pages/WorkSpacesRoutes.js.map +0 -1
  170. package/es/modules/worktype/components/NewTypeForm/index.js.map +0 -1
  171. package/es/modules/worktype/components/NewTypeForm/index.less +0 -8
  172. package/es/modules/worktype/components/NewTypeForm/state.js.map +0 -1
  173. package/es/modules/worktype/components/RepeatTab/index.js.map +0 -1
  174. package/es/modules/worktype/components/WorkTypeCard/index.js.map +0 -1
  175. package/es/modules/worktype/components/WorkTypeCardList/index.js.map +0 -1
  176. package/es/modules/worktype/components/WorkTypeItem/index.js.map +0 -1
  177. package/es/modules/worktype/components/WorkTypeList/index.js.map +0 -1
  178. package/es/modules/worktype/components/WorkTypeProperties/index.js.map +0 -1
  179. package/es/modules/worktype/components/WorkTypeProperties/state.js.map +0 -1
  180. package/es/modules/worktype/components/WorkTypePropertiesTabs/index.js.map +0 -1
  181. package/es/modules/worktype/components/WorkTypePropertiesView/index.js.map +0 -1
  182. package/es/modules/worktype/components/WorkTypePropertiesView/state.js.map +0 -1
  183. package/es/modules/worktype/components/WorkTypeQA/index.js.map +0 -1
  184. package/es/modules/worktype/components/WorkTypeQA/state.js.map +0 -1
  185. package/es/modules/worktype/components/WorkTypeStats/index.js.map +0 -1
  186. package/es/modules/worktype/components/WorkTypeStats/state.js.map +0 -1
  187. package/es/modules/worktype/components/WorkTypeTabs/index.js.map +0 -1
  188. package/es/modules/worktype/components/WorkTypeTabs/index.less +0 -15
  189. package/es/modules/worktype/controls/WorkTypeMenu/index.js.map +0 -1
  190. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/index.js.map +0 -1
  191. package/es/modules/worktype/controls/WorktypeCompleteWorksChart/state.js.map +0 -1
  192. package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +0 -1
  193. package/es/pages/Project/ProjectDefaultView/index.js.map +0 -1
  194. package/es/pages/Project/data/ProjectStore.js.map +0 -1
  195. package/es/pages/Project/data/hook.js.map +0 -1
  196. package/es/pages/Project/data/index.js.map +0 -1
  197. package/es/pages/Project/data/interfaces.js.map +0 -1
  198. package/es/pages/Routes.js.map +0 -1
  199. package/es/pages/Space/components/Notes/ColorSelect/index.js.map +0 -1
  200. package/es/pages/Space/components/Notes/NewNoteDialog/index.js.map +0 -1
  201. package/es/pages/Space/components/Notes/TextNoteCard/index.js.map +0 -1
  202. package/es/pages/Space/components/Notes/TextNoteCard/state.js.map +0 -1
  203. package/es/pages/Space/components/Notes/index.js.map +0 -1
  204. package/es/pages/Space/components/Notifications/index.js.map +0 -1
  205. package/es/pages/Space/components/Projects/index.js.map +0 -1
  206. package/es/pages/Space/components/TaskMenu/index.js.map +0 -1
  207. package/es/pages/Space/components/TaskMenu/state.js.map +0 -1
  208. package/es/pages/Space/components/Tasks/index.js.map +0 -1
  209. package/es/pages/Space/components/WorkMenu/index.js.map +0 -1
  210. package/es/pages/Space/components/WorkMenu/state.js.map +0 -1
  211. package/es/pages/Space/components/Works/index.js.map +0 -1
  212. package/es/pages/Space/components/Workspaces/index.js.map +0 -1
  213. package/es/pages/Space/pages/MySpace/index.js.map +0 -1
  214. package/es/pages/Space/pages/MySpace/state.js.map +0 -1
  215. package/es/pages/Work/components/NewWorkDialog/index.d.ts +0 -11
  216. package/es/pages/Work/components/NewWorkDialog/index.js +0 -41
  217. package/es/pages/Work/components/NewWorkDialog/index.js.map +0 -1
  218. package/es/pages/Work/components/NewWorkDialog/index.less +0 -11
  219. package/es/pages/Work/components/WorkCheckList/index.d.ts +0 -5
  220. package/es/pages/Work/components/WorkCheckList/index.js +0 -38
  221. package/es/pages/Work/components/WorkCheckList/index.js.map +0 -1
  222. package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/index.d.ts +0 -6
  223. package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/index.js +0 -21
  224. package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/index.js.map +0 -1
  225. package/es/pages/Work/components/WorkSummaryCards/WorkBlockingsCard/index.d.ts +0 -5
  226. package/es/pages/Work/components/WorkSummaryCards/WorkBlockingsCard/index.js +0 -11
  227. package/es/pages/Work/components/WorkSummaryCards/WorkBlockingsCard/index.js.map +0 -1
  228. package/es/pages/Work/components/WorkSummaryCards/WorkDueCard/index.d.ts +0 -7
  229. package/es/pages/Work/components/WorkSummaryCards/WorkDueCard/index.js +0 -16
  230. package/es/pages/Work/components/WorkSummaryCards/WorkDueCard/index.js.map +0 -1
  231. package/es/pages/Work/components/WorkSummaryCards/index.d.ts +0 -5
  232. package/es/pages/Work/components/WorkSummaryCards/index.js +0 -69
  233. package/es/pages/Work/components/WorkSummaryCards/index.js.map +0 -1
  234. package/es/pages/Work/components/WorkSummaryCards/index.less +0 -35
  235. package/es/pages/Work/components/WorkSummaryCards/state.d.ts +0 -11
  236. package/es/pages/Work/components/WorkSummaryCards/state.js +0 -47
  237. package/es/pages/Work/components/WorkSummaryCards/state.js.map +0 -1
  238. package/es/pages/Work/components/WorkTrail/index.d.ts +0 -5
  239. package/es/pages/Work/components/WorkTrail/index.js +0 -14
  240. package/es/pages/Work/components/WorkTrail/index.js.map +0 -1
  241. package/es/pages/Work/components/WorkTrail/index.less +0 -20
  242. package/es/pages/Work/data/WorkStore.d.ts +0 -10
  243. package/es/pages/Work/data/WorkStore.js +0 -21
  244. package/es/pages/Work/data/WorkStore.js.map +0 -1
  245. package/es/pages/Work/data/hook.d.ts +0 -3
  246. package/es/pages/Work/data/hook.js +0 -10
  247. package/es/pages/Work/data/hook.js.map +0 -1
  248. package/es/pages/Work/data/index.d.ts +0 -3
  249. package/es/pages/Work/data/index.js +0 -4
  250. package/es/pages/Work/data/index.js.map +0 -1
  251. package/es/pages/Work/data/interfaces.d.ts +0 -14
  252. package/es/pages/Work/data/interfaces.js +0 -2
  253. package/es/pages/Work/data/interfaces.js.map +0 -1
  254. package/es/pages/Work/pages/WorkDefaultView/index.d.ts +0 -3
  255. package/es/pages/Work/pages/WorkDefaultView/index.js +0 -61
  256. package/es/pages/Work/pages/WorkDefaultView/index.js.map +0 -1
  257. package/es/pages/Work/pages/WorkDefaultView/index.less +0 -12
  258. package/es/pages/Work/pages/WorkDefaultView/state.d.ts +0 -5
  259. package/es/pages/Work/pages/WorkDefaultView/state.js +0 -18
  260. package/es/pages/Work/pages/WorkDefaultView/state.js.map +0 -1
  261. package/es/pages/WorkType/WorkTypeCheckList/index.d.ts +0 -4
  262. package/es/pages/WorkType/WorkTypeCheckList/index.js +0 -47
  263. package/es/pages/WorkType/WorkTypeCheckList/index.js.map +0 -1
  264. package/es/pages/WorkType/WorkTypeDefaultView/index.d.ts +0 -3
  265. package/es/pages/WorkType/WorkTypeDefaultView/index.js +0 -19
  266. package/es/pages/WorkType/WorkTypeDefaultView/index.js.map +0 -1
  267. package/es/pages/WorkType/WorkTypeDetail/index.d.ts +0 -6
  268. package/es/pages/WorkType/WorkTypeDetail/index.js +0 -84
  269. package/es/pages/WorkType/WorkTypeDetail/index.js.map +0 -1
  270. package/es/pages/WorkType/WorkTypeDetail/index.less +0 -35
  271. package/es/pages/WorkType/WorkTypeDetail/state.d.ts +0 -9
  272. package/es/pages/WorkType/WorkTypeDetail/state.js +0 -38
  273. package/es/pages/WorkType/WorkTypeDetail/state.js.map +0 -1
  274. package/es/pages/WorkType/WorkTypePropertiesView/index.d.ts +0 -5
  275. package/es/pages/WorkType/WorkTypePropertiesView/index.js +0 -32
  276. package/es/pages/WorkType/WorkTypePropertiesView/index.js.map +0 -1
  277. package/es/pages/WorkType/WorkTypePropertiesView/index.less +0 -31
  278. package/es/pages/WorkType/WorkTypeSelect/index.js.map +0 -1
  279. package/es/pages/WorkType/data/WorkTypeStore.d.ts +0 -21
  280. package/es/pages/WorkType/data/WorkTypeStore.js +0 -75
  281. package/es/pages/WorkType/data/WorkTypeStore.js.map +0 -1
  282. package/es/pages/WorkType/data/hook.d.ts +0 -9
  283. package/es/pages/WorkType/data/hook.js +0 -19
  284. package/es/pages/WorkType/data/hook.js.map +0 -1
  285. package/es/pages/WorkType/data/index.d.ts +0 -4
  286. package/es/pages/WorkType/data/index.js +0 -5
  287. package/es/pages/WorkType/data/index.js.map +0 -1
  288. package/es/pages/WorkType/data/interfaces.d.ts +0 -52
  289. package/es/pages/WorkType/data/interfaces.js +0 -2
  290. package/es/pages/WorkType/data/interfaces.js.map +0 -1
  291. package/es/pages/WorkType/data/types.d.ts +0 -42
  292. package/es/pages/WorkType/data/types.js +0 -2
  293. package/es/pages/WorkType/data/types.js.map +0 -1
  294. /package/es/{pages → modules}/Routes.d.ts +0 -0
  295. /package/es/{pages/Project → modules/project}/ProjectDefaultView/index.d.ts +0 -0
  296. /package/es/{pages/Project → modules/project}/ProjectDefaultView/index.js +0 -0
  297. /package/es/{pages/Project → modules/project}/ProjectDefaultView/index.less +0 -0
  298. /package/es/{pages/Project → modules/project}/data/ProjectStore.d.ts +0 -0
  299. /package/es/{pages/Project → modules/project}/data/ProjectStore.js +0 -0
  300. /package/es/{pages/Project → modules/project}/data/hook.d.ts +0 -0
  301. /package/es/{pages/Project → modules/project}/data/hook.js +0 -0
  302. /package/es/{pages/Project → modules/project}/data/index.d.ts +0 -0
  303. /package/es/{pages/Project → modules/project}/data/index.js +0 -0
  304. /package/es/{pages/Project → modules/project}/data/interfaces.d.ts +0 -0
  305. /package/es/{pages/Project → modules/project}/data/interfaces.js +0 -0
  306. /package/es/{pages/Space → modules/space}/components/Notes/ColorSelect/index.d.ts +0 -0
  307. /package/es/{pages/Space → modules/space}/components/Notes/ColorSelect/index.js +0 -0
  308. /package/es/{pages/Space → modules/space}/components/Notes/ColorSelect/index.less +0 -0
  309. /package/es/{pages/Space → modules/space}/components/Notes/NewNoteDialog/index.d.ts +0 -0
  310. /package/es/{pages/Space → modules/space}/components/Notes/NewNoteDialog/index.js +0 -0
  311. /package/es/{pages/Space → modules/space}/components/Notes/NewNoteDialog/index.less +0 -0
  312. /package/es/{pages/Space → modules/space}/components/Notes/TextNoteCard/index.d.ts +0 -0
  313. /package/es/{pages/Space → modules/space}/components/Notes/TextNoteCard/index.js +0 -0
  314. /package/es/{pages/Space → modules/space}/components/Notes/TextNoteCard/index.less +0 -0
  315. /package/es/{pages/Space → modules/space}/components/Notes/TextNoteCard/state.d.ts +0 -0
  316. /package/es/{pages/Space → modules/space}/components/Notes/TextNoteCard/state.js +0 -0
  317. /package/es/{pages/Space → modules/space}/components/Notes/index.d.ts +0 -0
  318. /package/es/{pages/Space → modules/space}/components/Notes/index.js +0 -0
  319. /package/es/{pages/Space → modules/space}/components/Notifications/index.d.ts +0 -0
  320. /package/es/{pages/Space → modules/space}/components/Notifications/index.js +0 -0
  321. /package/es/{pages/Space → modules/space}/components/Projects/index.d.ts +0 -0
  322. /package/es/{pages/Space → modules/space}/components/Projects/index.js +0 -0
  323. /package/es/{pages/Space → modules/space}/components/TaskMenu/index.d.ts +0 -0
  324. /package/es/{pages/Space → modules/space}/components/TaskMenu/index.js +0 -0
  325. /package/es/{pages/Space → modules/space}/components/TaskMenu/state.d.ts +0 -0
  326. /package/es/{pages/Space → modules/space}/components/TaskMenu/state.js +0 -0
  327. /package/es/{pages/Space → modules/space}/components/Tasks/index.d.ts +0 -0
  328. /package/es/{pages/Space → modules/space}/components/Tasks/index.js +0 -0
  329. /package/es/{pages/Space → modules/space}/components/Tasks/index.less +0 -0
  330. /package/es/{pages/Space → modules/space}/components/WorkMenu/index.d.ts +0 -0
  331. /package/es/{pages/Space → modules/space}/components/WorkMenu/state.d.ts +0 -0
  332. /package/es/{pages/Space → modules/space}/components/WorkMenu/state.js +0 -0
  333. /package/es/{pages/Space → modules/space}/components/Works/index.d.ts +0 -0
  334. /package/es/{pages/Space → modules/space}/components/Works/index.js +0 -0
  335. /package/es/{pages/Space → modules/space}/components/Works/index.less +0 -0
  336. /package/es/{pages/Space → modules/space}/components/Workspaces/index.d.ts +0 -0
  337. /package/es/{pages/Space → modules/space}/components/Workspaces/index.js +0 -0
  338. /package/es/{pages/Space → modules/space}/pages/MySpace/index.d.ts +0 -0
  339. /package/es/{pages/Space → modules/space}/pages/MySpace/index.less +0 -0
  340. /package/es/{pages/Space → modules/space}/pages/MySpace/state.d.ts +0 -0
  341. /package/es/{pages/Space → modules/space}/pages/MySpace/state.js +0 -0
  342. /package/es/modules/{worktype → work/work-type}/components/NewTypeForm/index.d.ts +0 -0
  343. /package/es/modules/{worktype → work/work-type}/components/NewTypeForm/state.d.ts +0 -0
  344. /package/es/modules/{worktype → work/work-type}/components/NewTypeForm/state.js +0 -0
  345. /package/es/modules/{worktype → work/work-type}/components/RepeatTab/index.d.ts +0 -0
  346. /package/es/modules/{worktype → work/work-type}/components/RepeatTab/index.js +0 -0
  347. /package/es/modules/{worktype → work/work-type}/components/RepeatTab/index.less +0 -0
  348. /package/es/modules/{worktype → work/work-type}/components/WorkTypeCard/index.d.ts +0 -0
  349. /package/es/modules/{worktype → work/work-type}/components/WorkTypeCard/index.less +0 -0
  350. /package/es/modules/{worktype → work/work-type}/components/WorkTypeCardList/index.less +0 -0
  351. /package/es/modules/{worktype → work/work-type}/components/WorkTypeItem/index.d.ts +0 -0
  352. /package/es/modules/{worktype → work/work-type}/components/WorkTypeItem/index.less +0 -0
  353. /package/es/modules/{worktype → work/work-type}/components/WorkTypeList/index.less +0 -0
  354. /package/es/modules/{worktype → work/work-type}/components/WorkTypeProperties/index.d.ts +0 -0
  355. /package/es/modules/{worktype → work/work-type}/components/WorkTypeProperties/state.js +0 -0
  356. /package/es/modules/{worktype → work/work-type}/components/WorkTypePropertiesTabs/index.d.ts +0 -0
  357. /package/es/modules/{worktype → work/work-type}/components/WorkTypePropertiesTabs/index.less +0 -0
  358. /package/es/modules/{worktype → work/work-type}/components/WorkTypePropertiesView/index.d.ts +0 -0
  359. /package/es/modules/{worktype → work/work-type}/components/WorkTypePropertiesView/index.less +0 -0
  360. /package/es/modules/{worktype → work/work-type}/components/WorkTypeQA/index.d.ts +0 -0
  361. /package/es/modules/{worktype → work/work-type}/components/WorkTypeQA/index.less +0 -0
  362. /package/es/modules/{worktype → work/work-type}/components/WorkTypeQA/state.js +0 -0
  363. /package/es/modules/{worktype → work/work-type}/components/WorkTypeStats/index.d.ts +0 -0
  364. /package/es/modules/{worktype → work/work-type}/components/WorkTypeStats/index.js +0 -0
  365. /package/es/modules/{worktype → work/work-type}/components/WorkTypeStats/index.less +0 -0
  366. /package/es/modules/{worktype → work/work-type}/components/WorkTypeStats/state.d.ts +0 -0
  367. /package/es/modules/{worktype → work/work-type}/components/WorkTypeStats/state.js +0 -0
  368. /package/es/modules/{worktype → work/work-type}/components/WorkTypeTabs/index.d.ts +0 -0
  369. /package/es/modules/{worktype → work/work-type}/controls/WorkTypeMenu/index.d.ts +0 -0
  370. /package/es/modules/{worktype → work/work-type}/controls/WorkTypeMenu/index.less +0 -0
  371. /package/es/modules/{worktype → work/work-type}/controls/WorktypeCompleteWorksChart/index.d.ts +0 -0
  372. /package/es/modules/{worktype → work/work-type}/controls/WorktypeCompleteWorksChart/index.less +0 -0
  373. /package/es/modules/{worktype → work/work-type}/controls/WorktypeCompleteWorksChart/state.d.ts +0 -0
  374. /package/es/modules/{worktype → work/work-type}/controls/WorktypeCompleteWorksChart/state.js +0 -0
  375. /package/es/modules/{worktype → work/work-type}/pages/WorkTypeDefaultView/index.d.ts +0 -0
  376. /package/es/modules/{worktype → work/work-type}/pages/WorkTypeDefaultView/index.less +0 -0
@@ -1,10 +0,0 @@
1
- import { useWorkStore } from ".";
2
- import { useDocumentStore } from "@voplus/morpho-document-core";
3
- import { useLoadCountedMapItem } from "@voplus/morpho-data";
4
- export const useWork = (id, options) => {
5
- options = options ? options : {};
6
- const store = useWorkStore();
7
- const documents = useDocumentStore();
8
- return useLoadCountedMapItem(id, documents.items, () => store.load(id, options), options);
9
- };
10
- //# sourceMappingURL=hook.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../../src/pages/Work/data/hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAE,MAAM,GAAG,CAAC;AAChD,OAAO,EAAuB,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAU,EAAE,OAA6B,EAAE,EAAE;IACpE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC1D,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAC9B,OAAO,CACU,CAAC;AACpB,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from "./WorkStore";
2
- export * from "./hook";
3
- export * from "./interfaces";
@@ -1,4 +0,0 @@
1
- export * from "./WorkStore";
2
- export * from "./hook";
3
- export * from "./interfaces";
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/Work/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
@@ -1,14 +0,0 @@
1
- import { EditDocumentDataOptions, IDocument } from "@voplus/morpho-document-core";
2
- import { ICheckListItem } from "../../WorkType/data";
3
- export interface IWorkDocument extends IDocument {
4
- due?: Date;
5
- /** checklist of the work. */
6
- checkList: ICheckListItem[];
7
- }
8
- export interface IWorkEditOptions extends EditDocumentDataOptions {
9
- /** New checklist of the work. */
10
- CheckList?: {
11
- Checked: boolean;
12
- Item: string;
13
- }[];
14
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/pages/Work/data/interfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const WorkDefaultView: () => JSX.Element;
3
- export default WorkDefaultView;
@@ -1,61 +0,0 @@
1
- import { Archive, Reload, Sidebar } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
2
- import React, { useEffect, useState } from "react";
3
- import { useWork, useWorkStore } from "../../data";
4
- import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
5
- import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
6
- import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
7
- import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
8
- import { Scrollbars } from "react-custom-scrollbars";
9
- import { Skeleton } from "@voplus/antd";
10
- import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
11
- import WorkCheckList from "../../components/WorkCheckList";
12
- import WorkSummaryCards from "../../components/WorkSummaryCards";
13
- import WorkTrail from "../../components/WorkTrail";
14
- import { observe } from "@voplus/morpho-ui";
15
- import { runInAction } from "mobx";
16
- import styles from "./index.less";
17
- import { useDocumentStore } from "@voplus/morpho-document-core";
18
- import { useRouteMatch } from "react-router";
19
- const WorkDefaultView = () => {
20
- const [asideContext] = useState(AsideContent.createContext());
21
- const match = useRouteMatch();
22
- const id = match.params.id;
23
- const work = useWork(id, { reload: true, includes: "tags" });
24
- const store = useWorkStore();
25
- const documentStore = useDocumentStore();
26
- const [loaded, setLoaded] = useState(true);
27
- useEffect(() => {
28
- runInAction(() => asideContext.openAside(AsideElement, { span: 12 }));
29
- }, []);
30
- const AsideElement = (React.createElement("div", { className: "module-tab-view_aside" },
31
- React.createElement(DocumentTabs, { id: id, isActivities: false })));
32
- return observe(() => (React.createElement("div", { className: "module-tab-view" },
33
- React.createElement(AsideContent, { context: asideContext },
34
- React.createElement("div", { className: styles["work-default-view"] },
35
- React.createElement("div", { onClick: () => store.create({ data: { Name: "Work...." }, error: "message" }) }, "ADD WORK"),
36
- loaded && (React.createElement(React.Fragment, null,
37
- React.createElement("header", null,
38
- React.createElement(DocumentHeader, { id: id, size: "h2", tools: React.createElement(ToolBar, { id: id },
39
- React.createElement(Reload, { action: onReLoad }),
40
- React.createElement(Sidebar, { action: () => runInAction(() => asideContext.asideContent
41
- ? asideContext.closeAside()
42
- : asideContext.openAside(AsideElement, { span: 12 })) }),
43
- React.createElement(Archive, null)), descriptionVisible: false }),
44
- work.loading ? (React.createElement("div", { className: "document-description" },
45
- React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: work.description, readonly: work.readonly, padding: "0 0 0.75rem 0" }))),
46
- React.createElement(Scrollbars, { autoHide: true },
47
- work.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
48
- React.createElement(Skeleton, { active: true }))) : (React.createElement(WorkSummaryCards, { id: id })),
49
- React.createElement(WorkCheckList, { id: id }),
50
- work.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
51
- React.createElement(Skeleton, { active: true }))) : (React.createElement(WorkTrail, { id: id }))))))))));
52
- /** reload data */
53
- function onReLoad() {
54
- setLoaded(false);
55
- setTimeout(() => {
56
- setLoaded(true);
57
- }, 100);
58
- }
59
- };
60
- export default WorkDefaultView;
61
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Work/pages/WorkDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,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AK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;4BAChC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI,CAC5B;wBACD,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI;wBACxB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CACf,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;4BAChC,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACd,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,SAAS,IAAC,EAAE,EAAE,EAAE,GAAI,CACrB,CACW,CACG,CACjB,CACI,CACQ,CACV,CACN,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,12 +0,0 @@
1
- @import "../../../../style/common.less";
2
- .work-default-view{
3
- height: 100%;
4
- display: flex;
5
- flex-direction: column;
6
- background: #ffffff;
7
- :global{
8
- .document-description{
9
- padding: 0 20px 10px 20px;
10
- }
11
- }
12
- }
@@ -1,5 +0,0 @@
1
- export declare class State {
2
- /** Enable of new Text */
3
- reload: boolean;
4
- constructor();
5
- }
@@ -1,18 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { makeObservable, observable } from "mobx";
3
- export class State {
4
- constructor() {
5
- /** Enable of new Text */
6
- Object.defineProperty(this, "reload", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: true
11
- });
12
- makeObservable(this);
13
- }
14
- }
15
- __decorate([
16
- observable
17
- ], State.prototype, "reload", void 0);
18
- //# sourceMappingURL=state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/pages/Work/pages/WorkDefaultView/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IAIjB;QAHA,0BAA0B;QACd;;;;mBAAgB,IAAI;WAAC;QAGhC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACD;AALY;IAAX,UAAU;qCAAsB"}
@@ -1,4 +0,0 @@
1
- declare const WorkTypeCheckList: (props: {
2
- id: string;
3
- }) => void;
4
- export default WorkTypeCheckList;
@@ -1,47 +0,0 @@
1
- const WorkTypeCheckList = (props) => {
2
- // const { id } = props;
3
- // const workType = useWorkType(id);
4
- // const workTypeStore = useWorkTypeStore();
5
- // return observe(() => (
6
- // <CheckList
7
- // list={workType.checkList || []}
8
- // allowAdd
9
- // moveAfter={moveAfter}
10
- // onChange={onChange}
11
- // onCreate={onCreate}
12
- // onDelete={onDelete}
13
- // />
14
- // ));
15
- // /** Add a check item */
16
- // function onCreate(item: string) {
17
- // onSave([{ item, checked: false }, ...(workType.checkList || [])]);
18
- // }
19
- // /** change check item */
20
- // function onChange(checkItem: { id: number; item: string; checked: boolean }) {
21
- // const { id, item, checked } = checkItem;
22
- // const checkList = workType.checkList || [];
23
- // checkList.splice(id, 1, { item, checked });
24
- // onSave(checkList);
25
- // }
26
- // /** delete check item */
27
- // function onDelete(checkItem: { id: number; item: string; checked: boolean }) {
28
- // const checkList = workType.checkList || [];
29
- // checkList.splice(checkItem.id, 1);
30
- // onSave(checkList);
31
- // }
32
- // /** sort checkList */
33
- // function moveAfter(
34
- // id: number,
35
- // afterId: number,
36
- // checkList: { id: number; item: string; checked: boolean }[]
37
- // ) {
38
- // onSave(checkList);
39
- // }
40
- // /** update WorkTypeCheckList */
41
- // async function onSave(checkList: { checked: boolean; item: string }[]) {
42
- // const CheckList = checkList.map((c) => ({ Item: c.item, Checked: c.checked }));
43
- // await workTypeStore.edit(id, { data: { CheckList }, error: "message" });
44
- // }
45
- };
46
- export default WorkTypeCheckList;
47
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/WorkType/WorkTypeCheckList/index.tsx"],"names":[],"mappings":"AAMA,MAAM,iBAAiB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACnD,wBAAwB;IAExB,oCAAoC;IAEpC,4CAA4C;IAE5C,yBAAyB;IACzB,cAAc;IACd,oCAAoC;IACpC,aAAa;IACb,0BAA0B;IAC1B,wBAAwB;IACxB,wBAAwB;IACxB,wBAAwB;IACxB,MAAM;IACN,MAAM;IACN,0BAA0B;IAC1B,oCAAoC;IACpC,sEAAsE;IACtE,IAAI;IACJ,2BAA2B;IAC3B,iFAAiF;IACjF,4CAA4C;IAC5C,+CAA+C;IAC/C,+CAA+C;IAC/C,sBAAsB;IACtB,IAAI;IACJ,2BAA2B;IAC3B,iFAAiF;IACjF,+CAA+C;IAC/C,sCAAsC;IACtC,sBAAsB;IACtB,IAAI;IACJ,wBAAwB;IACxB,sBAAsB;IACtB,eAAe;IACf,oBAAoB;IACpB,+DAA+D;IAC/D,MAAM;IACN,sBAAsB;IACtB,IAAI;IACJ,kCAAkC;IAClC,2EAA2E;IAC3E,mFAAmF;IACnF,4EAA4E;IAC5E,IAAI;AACL,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const WorkTypeDefaultView: () => JSX.Element;
3
- export default WorkTypeDefaultView;
@@ -1,19 +0,0 @@
1
- import React, { useEffect } from "react";
2
- import WorkTypePropertiesView from "../WorkTypePropertiesView";
3
- import { observe } from "@voplus/morpho-ui";
4
- import { runInAction } from "mobx";
5
- import { useRouteMatch } from "react-router";
6
- import { useTabItem } from "@voplus/morpho-data";
7
- import { useWorkType } from "../data";
8
- const WorkTypeDefaultView = () => {
9
- const match = useRouteMatch();
10
- const id = match.params.id;
11
- const serviceType = useWorkType(id);
12
- const tab = useTabItem();
13
- useEffect(() => {
14
- runInAction(() => (tab.title = serviceType.name));
15
- }, [serviceType === null || serviceType === void 0 ? void 0 : serviceType.name]);
16
- return observe(() => React.createElement(WorkTypePropertiesView, { id: id }));
17
- };
18
- export default WorkTypeDefaultView;
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/WorkType/WorkTypeDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAChC,MAAM,KAAK,GAAG,aAAa,EAAkB,CAAC;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE3B,MAAM,WAAW,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IACpC,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC,EAAE,CAAC,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,CAAC,CAAC,CAAC;IAExB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import "./index.less";
3
- declare const WorkTypeDetail: (props: {
4
- id: string;
5
- }) => JSX.Element;
6
- export default WorkTypeDetail;
@@ -1,84 +0,0 @@
1
- import "./index.less";
2
- import { Checkbox, InputNumber, Skeleton } from "@voplus/antd";
3
- import React, { useState } from "react";
4
- import { useApplicationContext, useLayout } from "@voplus/morpho-data";
5
- import { useWorkType, useWorkTypeStore } from "../data";
6
- import ActionPlan from "@voplus/morpho-collaboration-action/es/components/Action/ActionPlan";
7
- import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
8
- import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
9
- import { State } from "./state";
10
- import { observe } from "@voplus/morpho-ui";
11
- import { runInAction } from "mobx";
12
- const WorkTypeDetail = (props) => {
13
- const id = props.id;
14
- const layout = useLayout();
15
- const { user } = useApplicationContext();
16
- const workTypeStore = useWorkTypeStore();
17
- const [state] = useState(new State());
18
- const workType = useWorkType(id);
19
- runInAction(() => {
20
- var _a, _b, _c, _d;
21
- state.audit = ((_a = workType.audit) === null || _a === void 0 ? void 0 : _a.audit) || false;
22
- state.auditRate = ((_b = workType.audit) === null || _b === void 0 ? void 0 : _b.auditRate) || 0;
23
- state.auditorIds = [];
24
- (_d = (_c = workType.audit) === null || _c === void 0 ? void 0 : _c.auditors) === null || _d === void 0 ? void 0 : _d.map((i) => state.auditorIds.push(i.id));
25
- });
26
- return observe(() => {
27
- var _a;
28
- return (React.createElement("div", { className: "work-type-detail" }, workType.loading ? (React.createElement("div", { className: "document-description" },
29
- React.createElement(Skeleton, { active: true }))) : (React.createElement(React.Fragment, null,
30
- React.createElement(DescriptionEditor, { id: id, description: workType.description, padding: "0 0 10px 0", onSave: editDescription }),
31
- React.createElement("div", { className: "work-perSon" },
32
- React.createElement("div", { className: "work-perSon-title" }, "PerSon in charge")),
33
- React.createElement("div", { className: "work-request-form" },
34
- React.createElement("div", { className: "work-title" })),
35
- React.createElement("div", { className: "work-audit" },
36
- React.createElement("div", { className: "work-title" },
37
- React.createElement(Checkbox, { checked: state.audit, onChange: (e) => {
38
- runInAction(() => (state.audit = e.target.checked));
39
- editAudit();
40
- } }, "Audit")),
41
- state.audit && (React.createElement("div", { className: "work-audit-content" },
42
- React.createElement("div", { className: "work-audit-info" },
43
- React.createElement("span", { className: "label" }, "Audit Rate"),
44
- React.createElement(InputNumber, { value: state.auditRate, min: 0, max: 100, formatter: (value) => `${value}%`, parser: (value) => parseInt(value.replace("%", "")), onChange: (value) => {
45
- runInAction(() => (state.auditRate = value));
46
- editAudit();
47
- } })),
48
- React.createElement("div", { className: "work-audit-info" },
49
- React.createElement("span", { className: "label" }, "Auditor"),
50
- React.createElement(AvatarList, { organizationId: user.info.organizationId, list: ((_a = workType.audit) === null || _a === void 0 ? void 0 : _a.auditors) || [], onChange: async (ids) => {
51
- runInAction(() => (state.auditorIds = ids));
52
- await editAudit();
53
- } }))))),
54
- React.createElement(ActionPlan, { id: id })))));
55
- });
56
- /** edit description */
57
- function editDescription(description) {
58
- workTypeStore.edit(id, {
59
- data: {
60
- Description: description || "",
61
- },
62
- error: "message",
63
- });
64
- }
65
- /** edit Audit */
66
- async function editAudit() {
67
- await workTypeStore.edit(id, {
68
- data: {
69
- // Audit: { Audit: state.audit, AuditRate: state.auditRate, AuditorIds: state.auditorIds },
70
- },
71
- error: "message",
72
- });
73
- }
74
- /** edit MemberIds */
75
- async function editMemberIds(ids) {
76
- // await workTypeStore.edit(id, { data: { MemberIds: ids }, error: "message" });
77
- }
78
- /** edit Request Form */
79
- function editRequestForm(e) {
80
- // workTypeStore.edit(id, { data: { CreateForm: e.target.checked }, error: "message" });
81
- }
82
- };
83
- export default WorkTypeDetail;
84
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages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MAAM,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE;YAC5B,IAAI,EAAE;YACL,2FAA2F;aAC3F;YACD,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;IACJ,CAAC;IACD,qBAAqB;IACrB,KAAK,UAAU,aAAa,CAAC,GAAa;QACzC,gFAAgF;IACjF,CAAC;IACD,wBAAwB;IACxB,SAAS,eAAe,CAAC,CAAM;QAC9B,wFAAwF;IACzF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,35 +0,0 @@
1
- :global {
2
- .work-type-detail {
3
- height: 100%;
4
- .work-title {
5
- padding: 10px 0;
6
- border-bottom: 1px solid #f2f2f2;
7
- }
8
- .work-perSon {
9
- padding: 0 20px;
10
- .work-perSon-title {
11
- padding: 10px 0;
12
- }
13
- }
14
- .work-request-form {
15
- padding: 0 20px;
16
- .work-btn {
17
- margin-top: 10px;
18
- }
19
- }
20
- .work-audit {
21
- padding: 0 20px;
22
- .work-audit-content {
23
- margin-top: 10px;
24
- .work-audit-info {
25
- display: flex;
26
- padding-bottom: 20px;
27
- .label {
28
- display: inline-block;
29
- width: 200px;
30
- }
31
- }
32
- }
33
- }
34
- }
35
- }
@@ -1,9 +0,0 @@
1
- export declare class State {
2
- /** Audit Audit of the work type */
3
- audit: boolean;
4
- /** Audit AuditRate of the work type */
5
- auditRate: number;
6
- /** Audit AuditorIds of the work type */
7
- auditorIds: string[];
8
- constructor();
9
- }
@@ -1,38 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { makeObservable, observable } from "mobx";
3
- export class State {
4
- constructor() {
5
- /** Audit Audit of the work type */
6
- Object.defineProperty(this, "audit", {
7
- enumerable: true,
8
- configurable: true,
9
- writable: true,
10
- value: false
11
- });
12
- /** Audit AuditRate of the work type */
13
- Object.defineProperty(this, "auditRate", {
14
- enumerable: true,
15
- configurable: true,
16
- writable: true,
17
- value: 0
18
- });
19
- /** Audit AuditorIds of the work type */
20
- Object.defineProperty(this, "auditorIds", {
21
- enumerable: true,
22
- configurable: true,
23
- writable: true,
24
- value: void 0
25
- });
26
- makeObservable(this);
27
- }
28
- }
29
- __decorate([
30
- observable
31
- ], State.prototype, "audit", void 0);
32
- __decorate([
33
- observable
34
- ], State.prototype, "auditRate", void 0);
35
- __decorate([
36
- observable
37
- ], State.prototype, "auditorIds", void 0);
38
- //# sourceMappingURL=state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../src/pages/WorkType/WorkTypeDetail/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElD,MAAM,OAAO,KAAK;IAUjB;QATA,mCAAmC;QACvB;;;;mBAAe,KAAK;WAAC;QAEjC,uCAAuC;QAC3B;;;;mBAAmB,CAAC;WAAC;QAEjC,wCAAwC;QAC5B;;;;;WAA4B;QAGvC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;CACD;AAXY;IAAX,UAAU;oCAAsB;AAGrB;IAAX,UAAU;wCAAsB;AAGrB;IAAX,UAAU;yCAA6B"}
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- declare const WorkTypePropertiesView: (props: {
3
- id: string;
4
- }) => JSX.Element;
5
- export default WorkTypePropertiesView;
@@ -1,32 +0,0 @@
1
- import React, { useRef } from "react";
2
- import { useWorkType, useWorkTypeStore } from "../data";
3
- import { InlineEdit } from "@voplus/morpho-ui";
4
- import { Scrollbars } from "react-custom-scrollbars";
5
- import WorkTypeDetail from "../WorkTypeDetail";
6
- import classnames from "classnames";
7
- import { observe } from "@voplus/morpho-ui";
8
- import styles from "./index.less";
9
- import { useIsStickyActive } from "@voplus/morpho-ui";
10
- const WorkTypePropertiesView = (props) => {
11
- const id = props.id;
12
- const workType = useWorkType(id, { reload: true });
13
- const workTypeStore = useWorkTypeStore();
14
- /** Document Head Sticky Top
15
- Sticky 时显示shadow */
16
- const element = useRef(null);
17
- useIsStickyActive({ stickyOn: true, element });
18
- return observe(() => (React.createElement("div", { className: styles["work-type-default-view"] },
19
- React.createElement(Scrollbars, { autoHide: true, className: "scroll-bars" },
20
- React.createElement("div", { className: classnames("work-type-header", { sticky: true }), ref: element },
21
- React.createElement(InlineEdit, { defaultValue: workType.name, content: (v) => React.createElement(React.Fragment, null, v.store.value || workType.name), onSave: (v) => v &&
22
- v !== workType.name &&
23
- workTypeStore.edit(id, {
24
- data: {
25
- Name: v,
26
- },
27
- error: "message",
28
- }) })),
29
- React.createElement(WorkTypeDetail, { id: id })))));
30
- };
31
- export default WorkTypePropertiesView;
32
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/WorkType/WorkTypePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,sBAAsB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACxD,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IACnD,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC;uBACmB;IACnB,MAAM,OAAO,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC7C,iBAAiB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IAE/C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,wBAAwB,CAAC;QAC/C,oBAAC,UAAU,IAAC,QAAQ,QAAC,SAAS,EAAC,aAAa;YAC3C,6BAAK,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO;gBAC7E,oBAAC,UAAU,IACV,YAAY,EAAE,QAAQ,CAAC,IAAI,EAC3B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,oBAAC,KAAK,CAAC,QAAQ,QAAE,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC,IAAI,CAAkB,EACjF,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CACb,CAAC;wBACD,CAAC,KAAK,QAAQ,CAAC,IAAI;wBACnB,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE;4BACtB,IAAI,EAAE;gCACL,IAAI,EAAE,CAAC;6BACP;4BACD,KAAK,EAAE,SAAS;yBAChB,CAAC,GAEF,CACG;YAcN,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI,CACd,CACR,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -1,31 +0,0 @@
1
-
2
-
3
- .work-type-default-view {
4
- position: relative;
5
- height: 100%;
6
- background: #ffffff;
7
- :global {
8
- .scroll-bars {
9
- > div:last-child {
10
- z-index: 12;
11
- }
12
- }
13
- .work-type-header {
14
- font-size: 30px;
15
- color: #000;
16
- font-weight: 500;
17
- word-break: break-all;
18
- padding: 10px 20px;
19
- background: #ffffff;
20
- &.sticky {
21
- position: sticky;
22
- top: -1px;
23
- left: 0;
24
- z-index: 10;
25
- &.sticky-active {
26
- box-shadow: 0 8px 6px -6px lightgray;
27
- }
28
- }
29
- }
30
- }
31
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/WorkType/WorkTypeSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,MAAM,cAAc,GAAG,CAAC,KAGvB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAElC,MAAM,IAAI,GAAG,sBAAsB,CAAY;QAC9C,cAAc,EAAE;YACf,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;SACrF;KACD,EAAE,EAAE,CAAC,CAAC;IAEP,qBAAqB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAElF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,MAAM,IACN,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAClC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,WAAW,EAAC,iBAAiB,EAC7B,QAAQ,EAAE,YAAY,IAErB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACxB,oBAAC,MAAM,CAAC,MAAM,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,IACzC,IAAI,CAAC,IAAI,CACK,CAChB,CAAC,CACM,CACT,CAAC,CAAC;IAEH,SAAS,YAAY,CAAC,EAAU;QAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACpD,IAAI,QAAQ;YAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,EAAE,EAAE,QAAQ,CAAC,CAAC;IACxC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,21 +0,0 @@
1
- import { ApiEndPoint } from "@voplus/api";
2
- import { CountedMap, Store } from "@voplus/morpho-data";
3
- import { IWorkType, LoadWorkTypeOptions, WorkTypeCreateOptions, WorkTypeEditOptions } from ".";
4
- import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
5
- /** Corporate store supply backend functions. */
6
- export declare class WorkTypeStore extends Store {
7
- readonly endpoint: ApiEndPoint;
8
- /** Name of the store */
9
- readonly name: string;
10
- constructor(endpoint: ApiEndPoint);
11
- /** All currently used workType. */
12
- readonly items: CountedMap<string, IWorkType>;
13
- /** Create a new WorkType. */
14
- create(options: WorkTypeCreateOptions): Promise<IWorkType>;
15
- /** Edit an existing item on server. */
16
- edit(id: string, options: WorkTypeEditOptions): Promise<void>;
17
- loadList(options?: LoadDocumentListOptions): Promise<IWorkType[]>;
18
- load(id: string, options: LoadWorkTypeOptions): Promise<IWorkType>;
19
- }
20
- /** 响应钩子检索 WorkTypeStore */
21
- export declare const useWorkTypeStore: () => WorkTypeStore;
@@ -1,75 +0,0 @@
1
- import { RequestBuilder } from "@voplus/api";
2
- import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
3
- import { observable } from "mobx";
4
- const StoreName = "WorkTypeStore";
5
- /** Corporate store supply backend functions. */
6
- export class WorkTypeStore extends Store {
7
- constructor(endpoint) {
8
- super();
9
- Object.defineProperty(this, "endpoint", {
10
- enumerable: true,
11
- configurable: true,
12
- writable: true,
13
- value: endpoint
14
- });
15
- /** Name of the store */
16
- Object.defineProperty(this, "name", {
17
- enumerable: true,
18
- configurable: true,
19
- writable: true,
20
- value: StoreName
21
- });
22
- /** All currently used workType. */
23
- Object.defineProperty(this, "items", {
24
- enumerable: true,
25
- configurable: true,
26
- writable: true,
27
- value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
28
- });
29
- }
30
- /** Create a new WorkType. */
31
- async create(options) {
32
- // invariant(options.name, "Name cannot be empty.");
33
- return await this.action(async () => {
34
- const r = await this.endpoint.post(`/api/worktypes/create`, new RequestBuilder().json(options.data));
35
- const t = (await r.json());
36
- return t;
37
- }, options);
38
- }
39
- /** Edit an existing item on server. */
40
- async edit(id, options) {
41
- await this.action(async () => {
42
- const r = await this.endpoint.post(`/api/worktypes/${id}`, new RequestBuilder().json(options.data));
43
- const t = await r.json();
44
- this.items.overwrite(t.id, t);
45
- }, options);
46
- }
47
- async loadList(options) {
48
- let query = "";
49
- if (options === null || options === void 0 ? void 0 : options.Includes) {
50
- query = query.concat(`includes=${options.Includes}`);
51
- }
52
- if (query)
53
- query = "?".concat(query);
54
- const r = await this.endpoint.post(`/api/worktypes${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
55
- return (await r.json());
56
- }
57
- async load(id, options) {
58
- let query = "";
59
- if (options.includes)
60
- query = query.concat(`includes=${options.includes}`);
61
- if (query)
62
- query = "?".concat(query);
63
- const r = await this.endpoint.get(`/api/worktypes/${id}${query}`);
64
- return (await r.json());
65
- }
66
- }
67
- /** 响应钩子检索 WorkTypeStore */
68
- export const useWorkTypeStore = () => {
69
- const context = useApplicationContext();
70
- if (!context.getStore(StoreName)) {
71
- context.addStore(new WorkTypeStore(context.api.currentEndPoint));
72
- }
73
- return context.getStore(StoreName);
74
- };
75
- //# sourceMappingURL=WorkTypeStore.js.map