@voplus/morpho-document 6.1.17 → 6.1.19

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 (258) hide show
  1. package/es/Modules.js +4 -0
  2. package/es/Modules.js.map +1 -1
  3. package/es/components/AddDocOverlay/index.js +6 -2
  4. package/es/components/AddDocOverlay/index.js.map +1 -1
  5. package/es/components/AddDocOverlay/index.less +1 -1
  6. package/es/components/AddDocOverlay/state.js +1 -1
  7. package/es/components/AddDocOverlay/state.js.map +1 -1
  8. package/es/components/DocumentHeader/index.js +5 -22
  9. package/es/components/DocumentHeader/index.js.map +1 -1
  10. package/es/components/DocumentListView/DocumentListView2.js +5 -8
  11. package/es/components/DocumentListView/DocumentListView2.js.map +1 -1
  12. package/es/components/NewDocumentForm/DocumentForm.js +4 -2
  13. package/es/components/NewDocumentForm/DocumentForm.js.map +1 -1
  14. package/es/components/NewDocumentForm/state.js +4 -1
  15. package/es/components/NewDocumentForm/state.js.map +1 -1
  16. package/es/data/action-plan/ActionPlanStore.d.ts +33 -0
  17. package/es/data/action-plan/ActionPlanStore.js +115 -0
  18. package/es/data/action-plan/ActionPlanStore.js.map +1 -0
  19. package/es/data/action-plan/action-plan-events/index.d.ts +3 -0
  20. package/es/data/action-plan/action-plan-events/index.js +4 -0
  21. package/es/data/action-plan/action-plan-events/index.js.map +1 -0
  22. package/es/data/action-plan/action-plan-events/useAutoUpdateListData.d.ts +4 -0
  23. package/es/data/action-plan/action-plan-events/useAutoUpdateListData.js +15 -0
  24. package/es/data/action-plan/action-plan-events/useAutoUpdateListData.js.map +1 -0
  25. package/es/data/action-plan/action-plan-events/useOnDeleteActionPlan.d.ts +4 -0
  26. package/es/data/action-plan/action-plan-events/useOnDeleteActionPlan.js +16 -0
  27. package/es/data/action-plan/action-plan-events/useOnDeleteActionPlan.js.map +1 -0
  28. package/es/data/action-plan/action-plan-events/useOnNewActionPlan.d.ts +4 -0
  29. package/es/data/action-plan/action-plan-events/useOnNewActionPlan.js +17 -0
  30. package/es/data/action-plan/action-plan-events/useOnNewActionPlan.js.map +1 -0
  31. package/es/data/action-plan/hooks.d.ts +10 -0
  32. package/es/data/action-plan/hooks.js +18 -0
  33. package/es/data/action-plan/hooks.js.map +1 -0
  34. package/es/data/action-plan/index.d.ts +4 -0
  35. package/es/data/action-plan/index.js +5 -0
  36. package/es/data/action-plan/index.js.map +1 -0
  37. package/es/data/action-plan/interfaces.d.ts +7 -0
  38. package/es/data/action-plan/interfaces.js.map +1 -0
  39. package/es/data/action-plan/metas.d.ts +9 -0
  40. package/es/data/action-plan/metas.js +31 -0
  41. package/es/data/action-plan/metas.js.map +1 -0
  42. package/es/data/action-plan/types.d.ts +22 -0
  43. package/es/data/action-plan/types.js +2 -0
  44. package/es/data/action-plan/types.js.map +1 -0
  45. package/es/data/action-plan-template/ActionPlanTemplateStore.d.ts +12 -0
  46. package/es/data/action-plan-template/ActionPlanTemplateStore.js +28 -0
  47. package/es/data/action-plan-template/ActionPlanTemplateStore.js.map +1 -0
  48. package/es/data/action-plan-template/hook.d.ts +5 -0
  49. package/es/data/action-plan-template/hook.js +16 -0
  50. package/es/data/action-plan-template/hook.js.map +1 -0
  51. package/es/data/action-plan-template/index.d.ts +4 -0
  52. package/es/data/action-plan-template/index.js +5 -0
  53. package/es/data/action-plan-template/index.js.map +1 -0
  54. package/es/data/action-plan-template/interfaces.d.ts +4 -0
  55. package/es/data/action-plan-template/interfaces.js.map +1 -0
  56. package/es/data/action-plan-template/metas.d.ts +14 -0
  57. package/es/data/action-plan-template/metas.js +43 -0
  58. package/es/data/action-plan-template/metas.js.map +1 -0
  59. package/es/data/action-plan-template/types.d.ts +8 -0
  60. package/es/data/action-plan-template/types.js +2 -0
  61. package/es/data/action-plan-template/types.js.map +1 -0
  62. package/es/data/library/LibraryStore.js.map +1 -0
  63. package/es/data/library/hook.js.map +1 -0
  64. package/es/data/library/index.js.map +1 -0
  65. package/es/data/library/interfaces.js +2 -0
  66. package/es/data/library/interfaces.js.map +1 -0
  67. package/es/data/message-schedule/MessageScheduleStore.d.ts +33 -0
  68. package/es/data/message-schedule/MessageScheduleStore.js +115 -0
  69. package/es/data/message-schedule/MessageScheduleStore.js.map +1 -0
  70. package/es/data/message-schedule/hooks.d.ts +10 -0
  71. package/es/data/message-schedule/hooks.js +18 -0
  72. package/es/data/message-schedule/hooks.js.map +1 -0
  73. package/es/data/message-schedule/index.d.ts +4 -0
  74. package/es/data/message-schedule/index.js +5 -0
  75. package/es/data/message-schedule/index.js.map +1 -0
  76. package/es/data/message-schedule/interfaces.d.ts +12 -0
  77. package/es/data/message-schedule/interfaces.js +2 -0
  78. package/es/data/message-schedule/interfaces.js.map +1 -0
  79. package/es/data/message-schedule/message-schedule-events/index.d.ts +3 -0
  80. package/es/data/message-schedule/message-schedule-events/index.js +4 -0
  81. package/es/data/message-schedule/message-schedule-events/index.js.map +1 -0
  82. package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.d.ts +4 -0
  83. package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.js +15 -0
  84. package/es/data/message-schedule/message-schedule-events/useAutoUpdateListData.js.map +1 -0
  85. package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.d.ts +4 -0
  86. package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.js +16 -0
  87. package/es/data/message-schedule/message-schedule-events/useOnDeleteMessageSchedule.js.map +1 -0
  88. package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.d.ts +4 -0
  89. package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.js +17 -0
  90. package/es/data/message-schedule/message-schedule-events/useOnNewMessageSchedule.js.map +1 -0
  91. package/es/data/message-schedule/metas.d.ts +9 -0
  92. package/es/data/message-schedule/metas.js +31 -0
  93. package/es/data/message-schedule/metas.js.map +1 -0
  94. package/es/data/message-schedule/types.d.ts +25 -0
  95. package/es/data/message-schedule/types.js +2 -0
  96. package/es/data/message-schedule/types.js.map +1 -0
  97. package/es/data/v-submit/VSubmitStore.js.map +1 -0
  98. package/es/data/v-submit/hook.js.map +1 -0
  99. package/es/data/v-submit/index.js.map +1 -0
  100. package/es/data/v-submit/interfaces.js +2 -0
  101. package/es/data/v-submit/interfaces.js.map +1 -0
  102. package/es/modules/action-plan/components/ActionPlanHeader/index.d.ts +6 -0
  103. package/es/modules/action-plan/components/ActionPlanHeader/index.js +19 -0
  104. package/es/modules/action-plan/components/ActionPlanHeader/index.js.map +1 -0
  105. package/es/modules/action-plan/components/ActionPlanItem/index.d.ts +5 -0
  106. package/es/modules/action-plan/components/ActionPlanItem/index.js +39 -0
  107. package/es/modules/action-plan/components/ActionPlanItem/index.js.map +1 -0
  108. package/es/modules/action-plan/components/ActionPlanItem/index.less +30 -0
  109. package/es/modules/action-plan/components/ActionPlanList/index.d.ts +27 -0
  110. package/es/modules/action-plan/components/ActionPlanList/index.js +93 -0
  111. package/es/modules/action-plan/components/ActionPlanList/index.js.map +1 -0
  112. package/es/modules/action-plan/components/ActionPlanList/index.less +16 -0
  113. package/es/modules/action-plan/components/ActionPlanProperties/index.d.ts +20 -0
  114. package/es/modules/action-plan/components/ActionPlanProperties/index.js +39 -0
  115. package/es/modules/action-plan/components/ActionPlanProperties/index.js.map +1 -0
  116. package/es/modules/action-plan/components/ActionPlanPropertiesView/index.d.ts +6 -0
  117. package/es/modules/action-plan/components/ActionPlanPropertiesView/index.js +15 -0
  118. package/es/modules/action-plan/components/ActionPlanPropertiesView/index.js.map +1 -0
  119. package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.d.ts +8 -0
  120. package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.js +13 -0
  121. package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.js.map +1 -0
  122. package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.less +7 -0
  123. package/es/modules/action-plan/components/ActionPlanTabs/index.d.ts +6 -0
  124. package/es/modules/action-plan/components/ActionPlanTabs/index.js +49 -0
  125. package/es/modules/action-plan/components/ActionPlanTabs/index.js.map +1 -0
  126. package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.d.ts +9 -0
  127. package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.js +13 -0
  128. package/es/modules/action-plan/components/NewActionPlanForm/NewActionPlanFormDialog.js.map +1 -0
  129. package/es/modules/action-plan/components/NewActionPlanForm/index.d.ts +15 -0
  130. package/es/modules/action-plan/components/NewActionPlanForm/index.js +59 -0
  131. package/es/modules/action-plan/components/NewActionPlanForm/index.js.map +1 -0
  132. package/es/modules/action-plan/components/NewActionPlanForm/index.less +10 -0
  133. package/es/modules/action-plan/components/NewActionPlanForm/state.d.ts +12 -0
  134. package/es/modules/action-plan/components/NewActionPlanForm/state.js +32 -0
  135. package/es/modules/action-plan/components/NewActionPlanForm/state.js.map +1 -0
  136. package/es/modules/action-plan/controls/ActionPlanMenu/index.d.ts +10 -0
  137. package/es/modules/action-plan/controls/ActionPlanMenu/index.js +23 -0
  138. package/es/modules/action-plan/controls/ActionPlanMenu/index.js.map +1 -0
  139. package/es/modules/action-plan/pages/ActionPlanDefaultView/index.d.ts +3 -0
  140. package/es/modules/action-plan/pages/ActionPlanDefaultView/index.js +29 -0
  141. package/es/modules/action-plan/pages/ActionPlanDefaultView/index.js.map +1 -0
  142. package/es/modules/action-plan/pages/ActionPlanDefaultView/index.less +4 -0
  143. package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.d.ts +25 -0
  144. package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js +26 -0
  145. package/es/modules/action-plan-template/components/ActionPlanTemplateProperties/index.js.map +1 -0
  146. package/es/modules/action-plan-template/components/ActionPlanTemplatePropertiesView/index.d.ts +6 -0
  147. package/es/modules/action-plan-template/components/ActionPlanTemplatePropertiesView/index.js +25 -0
  148. package/es/modules/action-plan-template/components/ActionPlanTemplatePropertiesView/index.js.map +1 -0
  149. package/es/modules/action-plan-template/components/ActionPlanTemplateQuickViewDialog/index.d.ts +7 -0
  150. package/es/modules/action-plan-template/components/ActionPlanTemplateQuickViewDialog/index.js +26 -0
  151. package/es/modules/action-plan-template/components/ActionPlanTemplateQuickViewDialog/index.js.map +1 -0
  152. package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.d.ts +6 -0
  153. package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.js +47 -0
  154. package/es/modules/action-plan-template/components/ActionPlanTemplateTabs/index.js.map +1 -0
  155. package/es/modules/action-plan-template/controls/ActionPlanTemplateDataIconBar/index.d.ts +12 -0
  156. package/es/modules/action-plan-template/controls/ActionPlanTemplateDataIconBar/index.js +19 -0
  157. package/es/modules/action-plan-template/controls/ActionPlanTemplateDataIconBar/index.js.map +1 -0
  158. package/es/modules/action-plan-template/controls/ActionPlanTemplateMenu/index.d.ts +5 -0
  159. package/es/modules/action-plan-template/controls/ActionPlanTemplateMenu/index.js +15 -0
  160. package/es/modules/action-plan-template/controls/ActionPlanTemplateMenu/index.js.map +1 -0
  161. package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.d.ts +5 -0
  162. package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.js +33 -0
  163. package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.js.map +1 -0
  164. package/es/modules/action-plan-template/pages/ActionPlanTemplateDefaultView/index.less +4 -0
  165. package/es/modules/message-schedule/components/MessageScheduleHeader/index.d.ts +6 -0
  166. package/es/modules/message-schedule/components/MessageScheduleHeader/index.js +19 -0
  167. package/es/modules/message-schedule/components/MessageScheduleHeader/index.js.map +1 -0
  168. package/es/modules/message-schedule/components/MessageScheduleItem/index.d.ts +5 -0
  169. package/es/modules/message-schedule/components/MessageScheduleItem/index.js +40 -0
  170. package/es/modules/message-schedule/components/MessageScheduleItem/index.js.map +1 -0
  171. package/es/modules/message-schedule/components/MessageScheduleItem/index.less +30 -0
  172. package/es/modules/message-schedule/components/MessageScheduleList/index.d.ts +27 -0
  173. package/es/modules/message-schedule/components/MessageScheduleList/index.js +93 -0
  174. package/es/modules/message-schedule/components/MessageScheduleList/index.js.map +1 -0
  175. package/es/modules/message-schedule/components/MessageScheduleList/index.less +14 -0
  176. package/es/modules/message-schedule/components/MessageScheduleProperties/index.d.ts +20 -0
  177. package/es/modules/message-schedule/components/MessageScheduleProperties/index.js +58 -0
  178. package/es/modules/message-schedule/components/MessageScheduleProperties/index.js.map +1 -0
  179. package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.d.ts +6 -0
  180. package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.js +15 -0
  181. package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.js.map +1 -0
  182. package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.d.ts +8 -0
  183. package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.js +13 -0
  184. package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.js.map +1 -0
  185. package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.less +7 -0
  186. package/es/modules/message-schedule/components/MessageScheduleTabs/index.d.ts +6 -0
  187. package/es/modules/message-schedule/components/MessageScheduleTabs/index.js +52 -0
  188. package/es/modules/message-schedule/components/MessageScheduleTabs/index.js.map +1 -0
  189. package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.d.ts +10 -0
  190. package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.js +14 -0
  191. package/es/modules/message-schedule/components/NewMessageScheduleForm/NewMessageScheduleFormDialog.js.map +1 -0
  192. package/es/modules/message-schedule/components/NewMessageScheduleForm/index.d.ts +15 -0
  193. package/es/modules/message-schedule/components/NewMessageScheduleForm/index.js +62 -0
  194. package/es/modules/message-schedule/components/NewMessageScheduleForm/index.js.map +1 -0
  195. package/es/modules/message-schedule/components/NewMessageScheduleForm/index.less +17 -0
  196. package/es/modules/message-schedule/components/NewMessageScheduleForm/state.d.ts +12 -0
  197. package/es/modules/message-schedule/components/NewMessageScheduleForm/state.js +32 -0
  198. package/es/modules/message-schedule/components/NewMessageScheduleForm/state.js.map +1 -0
  199. package/es/modules/message-schedule/controls/MessageScheduleMenu/index.d.ts +10 -0
  200. package/es/modules/message-schedule/controls/MessageScheduleMenu/index.js +23 -0
  201. package/es/modules/message-schedule/controls/MessageScheduleMenu/index.js.map +1 -0
  202. package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.d.ts +3 -0
  203. package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.js +29 -0
  204. package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.js.map +1 -0
  205. package/es/modules/message-schedule/pages/MessageScheduleDefaultView/index.less +7 -0
  206. package/es/modules/message-template/components/MessageTemplateProperties/index.js +3 -3
  207. package/es/modules/message-template/components/MessageTemplateProperties/index.js.map +1 -1
  208. package/es/modules/message-template/components/MessageTemplatePropertiesView/index.d.ts +0 -1
  209. package/es/modules/message-template/components/MessageTemplatePropertiesView/index.js +0 -1
  210. package/es/modules/message-template/components/MessageTemplatePropertiesView/index.js.map +1 -1
  211. package/es/modules/quick-access/AdvanceFilterForm/index.js +14 -28
  212. package/es/modules/quick-access/AdvanceFilterForm/index.js.map +1 -1
  213. package/es/modules/quick-access/AdvanceFilterForm/state.d.ts +0 -1
  214. package/es/modules/quick-access/AdvanceFilterForm/state.js +2 -12
  215. package/es/modules/quick-access/AdvanceFilterForm/state.js.map +1 -1
  216. package/es/modules/registered-document/components/RegisteredDocumentTableList/index.less +0 -3
  217. package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js +1 -1
  218. package/es/obsolete/LibraryDefaultView/LibraryDefaultView2.js.map +1 -1
  219. package/es/obsolete/LibraryDefaultView/index.js +1 -1
  220. package/es/obsolete/LibraryDefaultView/index.js.map +1 -1
  221. package/es/pages/Library/LibraryDefaultView/index.js +20 -15
  222. package/es/pages/Library/LibraryDefaultView/index.js.map +1 -1
  223. package/es/pages/Library/components/DocumentTree/index.d.ts +2 -2
  224. package/es/pages/Library/components/DocumentTree/index.js +31 -4
  225. package/es/pages/Library/components/DocumentTree/index.js.map +1 -1
  226. package/es/pages/VSubmit/VSubmitDefaultView/index.js +1 -1
  227. package/es/pages/VSubmit/VSubmitDefaultView/index.js.map +1 -1
  228. package/es/pages/VSubmit/VSubmitSubmitterView/index.js +1 -1
  229. package/es/pages/VSubmit/VSubmitSubmitterView/index.js.map +1 -1
  230. package/es/routes.d.ts +6 -0
  231. package/es/routes.js +13 -0
  232. package/es/routes.js.map +1 -1
  233. package/package.json +1 -1
  234. package/es/modules/message-template/components/MessageTemplatePropertiesView/index.less +0 -14
  235. package/es/pages/Library/data/LibraryStore.js.map +0 -1
  236. package/es/pages/Library/data/hook.js.map +0 -1
  237. package/es/pages/Library/data/index.js.map +0 -1
  238. package/es/pages/Library/data/interfaces.js.map +0 -1
  239. package/es/pages/VSubmit/data/VSubmitStore.js.map +0 -1
  240. package/es/pages/VSubmit/data/hook.js.map +0 -1
  241. package/es/pages/VSubmit/data/index.js.map +0 -1
  242. package/es/pages/VSubmit/data/interfaces.js.map +0 -1
  243. /package/es/{pages/VSubmit/data → data/action-plan}/interfaces.js +0 -0
  244. /package/es/{pages/Library/data → data/action-plan-template}/interfaces.js +0 -0
  245. /package/es/{pages/Library/data → data/library}/LibraryStore.d.ts +0 -0
  246. /package/es/{pages/Library/data → data/library}/LibraryStore.js +0 -0
  247. /package/es/{pages/Library/data → data/library}/hook.d.ts +0 -0
  248. /package/es/{pages/Library/data → data/library}/hook.js +0 -0
  249. /package/es/{pages/Library/data → data/library}/index.d.ts +0 -0
  250. /package/es/{pages/Library/data → data/library}/index.js +0 -0
  251. /package/es/{pages/Library/data → data/library}/interfaces.d.ts +0 -0
  252. /package/es/{pages/VSubmit/data → data/v-submit}/VSubmitStore.d.ts +0 -0
  253. /package/es/{pages/VSubmit/data → data/v-submit}/VSubmitStore.js +0 -0
  254. /package/es/{pages/VSubmit/data → data/v-submit}/hook.d.ts +0 -0
  255. /package/es/{pages/VSubmit/data → data/v-submit}/hook.js +0 -0
  256. /package/es/{pages/VSubmit/data → data/v-submit}/index.d.ts +0 -0
  257. /package/es/{pages/VSubmit/data → data/v-submit}/index.js +0 -0
  258. /package/es/{pages/VSubmit/data → data/v-submit}/interfaces.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOnDeleteActionPlan.js","sourceRoot":"","sources":["../../../../src/data/action-plan/action-plan-events/useOnDeleteActionPlan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,2EAA2E;AAC3E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACpC,MAA0D,EACzD,EAAE;IACH,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,MAAM,kBAAkB,GAAG,CAAC,KAAsB,EAAE,GAAgB,EAAE,EAAE;QACvE,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,sBAAsB,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QAC3D,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,sBAAsB,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;QAC9D,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ActionPlanStore } from "../ActionPlanStore";
2
+ import { IActionPlan } from "../interfaces";
3
+ /** React hook to call action when a new ActionPlan has been created. */
4
+ export declare const useOnNewActionPlan: (action: (store: ActionPlanStore, doc: IActionPlan) => void) => void;
@@ -0,0 +1,17 @@
1
+ import { useActionPlanStore } from "../ActionPlanStore";
2
+ import { useEffect } from "react";
3
+ /** React hook to call action when a new ActionPlan has been created. */
4
+ export const useOnNewActionPlan = (action) => {
5
+ const store = useActionPlanStore();
6
+ const onNewActionPlan = (store, doc) => {
7
+ // console.log(`onNewActionPlan - ${doc.id} ${doc.name}`);
8
+ action(store, doc);
9
+ };
10
+ useEffect(() => {
11
+ store.ActionPlanCreatedEvent.subscribe(onNewActionPlan);
12
+ return () => {
13
+ store.ActionPlanCreatedEvent.unsubscribe(onNewActionPlan);
14
+ };
15
+ });
16
+ };
17
+ //# sourceMappingURL=useOnNewActionPlan.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOnNewActionPlan.js","sourceRoot":"","sources":["../../../../src/data/action-plan/action-plan-events/useOnNewActionPlan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,wEAAwE;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CACjC,MAA0D,EACzD,EAAE;IACH,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,MAAM,eAAe,GAAG,CAAC,KAAsB,EAAE,GAAgB,EAAE,EAAE;QACpE,0DAA0D;QAC1D,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,sBAAsB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QACxD,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,sBAAsB,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QAC3D,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
2
+ import { IActionPlan } from "./interfaces";
3
+ import { ListDataContextState } from "@voplus/morpho-ui/es/data";
4
+ import { LoadActionPlanOptions } from ".";
5
+ /** React hook to retrieve a actionPlan
6
+ * @param {string} id - id of the actionPlan
7
+ * @param {LoadDocumentOptions} options - options
8
+ */
9
+ export declare const useActionPlan: (id: string, options?: LoadActionPlanOptions) => IActionPlan;
10
+ export declare const useActionPlanListEffect: (list: ListDataContextState<IActionPlan> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
@@ -0,0 +1,18 @@
1
+ import { useListLoaderEffect } from "@voplus/morpho-ui/es/hooks";
2
+ import { useLoadCountedMapItem } from "@voplus/morpho-data";
3
+ import { useActionPlanStore } from "./ActionPlanStore";
4
+ /** React hook to retrieve a actionPlan
5
+ * @param {string} id - id of the actionPlan
6
+ * @param {LoadDocumentOptions} options - options
7
+ */
8
+ export const useActionPlan = (id, options) => {
9
+ options = options ? options : {};
10
+ const store = useActionPlanStore();
11
+ return useLoadCountedMapItem(id, store.items, (calculatedOptions) => store.load(id, calculatedOptions), options);
12
+ };
13
+ export const useActionPlanListEffect = (list, effect, options) => {
14
+ const deps = options ? options : {};
15
+ const store = useActionPlanStore();
16
+ return useListLoaderEffect(list, store.items, effect, () => store.loadList(options), [deps]);
17
+ };
18
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/action-plan/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAU,EAAE,OAA+B,EAAE,EAAE;IAC5E,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA4B,CAAC;IAC5D,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,OAAO,qBAAqB,CAC3B,EAAE,EACF,KAAK,CAAC,KAAK,EACX,CAAC,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,EACxD,OAAO,CACP,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACtC,IAA8C,EAC9C,MAA4C,EAC5C,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./interfaces";
2
+ export * from "./ActionPlanStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
@@ -0,0 +1,5 @@
1
+ export * from "./interfaces";
2
+ export * from "./ActionPlanStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/action-plan/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ILoadable } from "@voplus/morpho-data";
2
+ import { INode } from "@voplus/morpho-document-core";
3
+ export type ActionPlanStatus = "Draft" | "Scheduled";
4
+ export interface IActionPlan extends INode, ILoadable {
5
+ id: string;
6
+ name: string;
7
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/action-plan/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { INode, QuickViewProps } from "@voplus/morpho-document-core";
2
+ import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
3
+ export declare class ActionPlanMeta extends DefaultDocumentTypeMeta {
4
+ static TypeName: string;
5
+ getRoute(node: INode): string;
6
+ get name(): string;
7
+ getPropertiesView(node: INode): JSX.Element;
8
+ getQuickView(node: INode, props: QuickViewProps): JSX.Element;
9
+ }
@@ -0,0 +1,31 @@
1
+ import { lazy } from "react";
2
+ import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
3
+ import { suspense } from "@voplus/morpho-ui/es/controls/Suspense";
4
+ const ActionPlanPropertiesView = lazy(() => import("../../modules/action-plan/components/ActionPlanPropertiesView"));
5
+ const ActionPlanQuickViewDialog = lazy(() => import("../../modules/action-plan/components/ActionPlanQuickViewDialog"));
6
+ export class ActionPlanMeta extends DefaultDocumentTypeMeta {
7
+ getRoute(node) {
8
+ return `/action-plan/${node.id}`;
9
+ }
10
+ get name() {
11
+ return ActionPlanMeta.TypeName;
12
+ }
13
+ getPropertiesView(node) {
14
+ return suspense(ActionPlanPropertiesView)({ id: node.id });
15
+ }
16
+ getQuickView(node, props) {
17
+ props.id = node.id;
18
+ return suspense(ActionPlanQuickViewDialog)({
19
+ id: node.id,
20
+ visible: props.visible,
21
+ onCancel: props.onCancel,
22
+ });
23
+ }
24
+ }
25
+ Object.defineProperty(ActionPlanMeta, "TypeName", {
26
+ enumerable: true,
27
+ configurable: true,
28
+ writable: true,
29
+ value: "ActionPlanNode"
30
+ });
31
+ //# sourceMappingURL=metas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/action-plan/metas.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAElE,MAAM,wBAAwB,GAAG,IAAI,CACpC,GAAG,EAAE,CAAC,MAAM,CAAC,+DAA+D,CAAC,CAC7E,CAAC;AACF,MAAM,yBAAyB,GAAG,IAAI,CACrC,GAAG,EAAE,CAAC,MAAM,CAAC,gEAAgE,CAAC,CAC9E,CAAC;AAEF,MAAM,OAAO,cAAe,SAAQ,uBAAuB;IAGnD,QAAQ,CAAC,IAAW;QAC1B,OAAO,gBAAgB,IAAI,CAAC,EAAE,EAAE,CAAC;IAClC,CAAC;IAED,IAAW,IAAI;QACd,OAAO,cAAc,CAAC,QAAQ,CAAC;IAChC,CAAC;IAEM,iBAAiB,CAAC,IAAW;QACnC,OAAO,QAAQ,CAAC,wBAAwB,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5D,CAAC;IAEM,YAAY,CAAC,IAAW,EAAE,KAAqB;QACrD,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;QAEnB,OAAO,QAAQ,CAAC,yBAAyB,CAAC,CAAC;YAC1C,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SACxB,CAAC,CAAC;IACJ,CAAC;;AAtBa;;;;WAAW,gBAAgB;GAAC"}
@@ -0,0 +1,22 @@
1
+ import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
2
+ import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
3
+ import { IActionPlan } from "./interfaces";
4
+ /** Custom load org contact options type */
5
+ export type LoadActionPlanOptions = {
6
+ /** Comma separated include options e.g. path */
7
+ includes?: string;
8
+ } & LoadOptions<IActionPlan>;
9
+ export type ActionPlanCreateOptions = {
10
+ ParentNodeId: string;
11
+ Name: string;
12
+ };
13
+ export type ActionPlanEditOptions = {};
14
+ export type CreateActionPlanOptions = {
15
+ data: ActionPlanCreateOptions;
16
+ } & StoreActionOptions;
17
+ export type EditActionPlanOptions = {
18
+ data: ActionPlanEditOptions;
19
+ } & StoreActionOptions;
20
+ export type DeleteActionPlanOptions = {
21
+ data?: DeleteDocumentOptions;
22
+ } & StoreActionOptions;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/action-plan/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { CountedMap } from "@voplus/morpho-data";
2
+ import { DocumentStore, DocumentTypeStore, LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
3
+ import { ApiEndPoint } from "@voplus/api";
4
+ import { IActionPlanTemplate, CreateActionPlanTemplateOptions, EditActionPlanTemplateOptions } from ".";
5
+ export declare class ActionPlanTemplateStore extends DocumentTypeStore<IActionPlanTemplate, LoadDocumentOptions, LoadDocumentListOptions, CreateActionPlanTemplateOptions, EditActionPlanTemplateOptions, any> {
6
+ /** Name of the store */
7
+ readonly name: string;
8
+ constructor(endpoint: ApiEndPoint, documents: DocumentStore);
9
+ readonly items: CountedMap<string, IActionPlanTemplate>;
10
+ }
11
+ /** 响应钩子检索 ActionPlanTemplateStore */
12
+ export declare const useActionPlanTemplateStore: () => ActionPlanTemplateStore;
@@ -0,0 +1,28 @@
1
+ import { useService, CountedMap } from "@voplus/morpho-data";
2
+ import { DocumentTypeStore, useDocumentStore, } from "@voplus/morpho-document-core";
3
+ import { observable } from "mobx";
4
+ const StoreName = "ActionPlanTemplateStore";
5
+ export class ActionPlanTemplateStore extends DocumentTypeStore {
6
+ constructor(endpoint, documents) {
7
+ super(endpoint, "/api/messages/plan", documents);
8
+ /** Name of the store */
9
+ Object.defineProperty(this, "name", {
10
+ enumerable: true,
11
+ configurable: true,
12
+ writable: true,
13
+ value: StoreName
14
+ });
15
+ Object.defineProperty(this, "items", {
16
+ enumerable: true,
17
+ configurable: true,
18
+ writable: true,
19
+ value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
20
+ });
21
+ }
22
+ }
23
+ /** 响应钩子检索 ActionPlanTemplateStore */
24
+ export const useActionPlanTemplateStore = () => {
25
+ const documents = useDocumentStore();
26
+ return useService(StoreName, (context) => new ActionPlanTemplateStore(context.api.currentEndPoint, documents));
27
+ };
28
+ //# sourceMappingURL=ActionPlanTemplateStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionPlanTemplateStore.js","sourceRoot":"","sources":["../../../src/data/action-plan-template/ActionPlanTemplateStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAEN,iBAAiB,EAGjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,SAAS,GAAG,yBAAyB,CAAC;AAE5C,MAAM,OAAO,uBAAwB,SAAQ,iBAO5C;IAIA,YAAmB,QAAqB,EAAE,SAAwB;QACjE,KAAK,CAAC,QAAQ,EAAE,oBAAoB,EAAE,SAAS,CAAC,CAAC;QAJlD,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;QAMzB;;;;mBAAiD,IAAI,UAAU,CAC9E,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAA0B,CAAA,EACpE,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAClC;WAAC;IALF,CAAC;CAMD;AAED,qCAAqC;AACrC,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,EAAE;IAC9C,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,UAAU,CAChB,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,uBAAuB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CAChF,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { LoadDocumentListOptions, LoadDocumentOptions } from "@voplus/morpho-document-core";
2
+ import { IActionPlanTemplate } from ".";
3
+ import { ListDataContextState } from "@voplus/morpho-ui/es/data";
4
+ export declare const useActionPlanTemplate: (id: string, options?: LoadDocumentOptions) => IActionPlanTemplate;
5
+ export declare const useActionPlanTemplateListEffect: (list: ListDataContextState<IActionPlanTemplate> | null, effect: (list: IActionPlanTemplate[], total: number) => void | null, options?: LoadDocumentListOptions) => void;
@@ -0,0 +1,16 @@
1
+ import { useDocumentListLoaderEffect, useDocumentStore, } from "@voplus/morpho-document-core";
2
+ import { useActionPlanTemplateStore } from ".";
3
+ import { useLoadCountedMapItem } from "@voplus/morpho-data";
4
+ export const useActionPlanTemplate = (id, options) => {
5
+ options = options ? options : {};
6
+ const store = useActionPlanTemplateStore();
7
+ const documents = useDocumentStore();
8
+ return useLoadCountedMapItem(id, documents.items, (calculatedOptions) => store.load(id, calculatedOptions), options);
9
+ };
10
+ export const useActionPlanTemplateListEffect = (list, effect, options) => {
11
+ const deps = options ? options : {};
12
+ const store = useActionPlanTemplateStore();
13
+ // Call useDocumentListEffect and ensure won't load twice for same loading options.
14
+ return useDocumentListLoaderEffect(list, effect, () => store.loadList(options), [deps]);
15
+ };
16
+ //# sourceMappingURL=hook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../src/data/action-plan-template/hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,2BAA2B,EAC3B,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,0BAA0B,EAAuB,MAAM,GAAG,CAAC;AAEpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,EAAU,EAAE,OAA6B,EAAE,EAAE;IAClF,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAE1D,MAAM,KAAK,GAAG,0BAA0B,EAAE,CAAC;IAC3C,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,CAAC,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,EACxD,OAAO,CACgB,CAAC;AAC1B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAC9C,IAAsD,EACtD,MAAmE,EACnE,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,0BAA0B,EAAE,CAAC;IAE3C,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AACzF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./interfaces";
2
+ export * from "./types";
3
+ export * from "./ActionPlanTemplateStore";
4
+ export * from "./hook";
@@ -0,0 +1,5 @@
1
+ export * from "./interfaces";
2
+ export * from "./types";
3
+ export * from "./ActionPlanTemplateStore";
4
+ export * from "./hook";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/action-plan-template/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { IDocument } from "@voplus/morpho-document-core";
2
+ /** Represent an activity log. */
3
+ export interface IActionPlanTemplate extends IDocument {
4
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/action-plan-template/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
2
+ import { IDocument, QuickViewProps, DocumentMenuProps } from "@voplus/morpho-document-core";
3
+ /** Meta information for ActionPlanTemplate document. */
4
+ export declare class ActionPlanTemplateTypeMeta extends DefaultDocumentTypeMeta {
5
+ static TypeName: string;
6
+ get name(): string;
7
+ getIcon(): JSX.Element;
8
+ getMenu(document: IDocument, props: DocumentMenuProps): JSX.Element;
9
+ getPropertiesView(document: IDocument): JSX.Element;
10
+ getQuickView(document: IDocument, props: QuickViewProps): JSX.Element;
11
+ getDefaultView(props: {
12
+ id: string;
13
+ }): JSX.Element | null;
14
+ }
@@ -0,0 +1,43 @@
1
+ import React, { lazy } from "react";
2
+ import { faSquareBinary } from "@fortawesome/pro-light-svg-icons";
3
+ import { DefaultDocumentTypeMeta } from "../DocumentMetaStore";
4
+ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
5
+ import { suspense } from "@voplus/morpho-ui/es/controls/Suspense";
6
+ const ActionPlanTemplateMenu = lazy(() => import("../../modules/action-plan-template/controls/ActionPlanTemplateMenu"));
7
+ const ActionPlanTemplatePropertiesView = lazy(() => import("../../modules/action-plan-template/components/ActionPlanTemplatePropertiesView"));
8
+ const ActionPlanTemplateQuickViewDialog = lazy(() => import("../../modules/action-plan-template/components/ActionPlanTemplateQuickViewDialog"));
9
+ const ActionPlanTemplateDefaultView = lazy(() => import("../../modules/action-plan-template/pages/ActionPlanTemplateDefaultView"));
10
+ /** Meta information for ActionPlanTemplate document. */
11
+ export class ActionPlanTemplateTypeMeta extends DefaultDocumentTypeMeta {
12
+ get name() {
13
+ return ActionPlanTemplateTypeMeta.TypeName;
14
+ }
15
+ getIcon() {
16
+ return React.createElement(FontAwesomeIcon, { icon: faSquareBinary });
17
+ }
18
+ getMenu(document, props) {
19
+ props.id = document.id;
20
+ return suspense(ActionPlanTemplateMenu)({ ...props });
21
+ }
22
+ getPropertiesView(document) {
23
+ return suspense(ActionPlanTemplatePropertiesView)({ id: document.id });
24
+ }
25
+ getQuickView(document, props) {
26
+ props.id = document.id;
27
+ return suspense(ActionPlanTemplateQuickViewDialog)({
28
+ id: document.id,
29
+ visible: props.visible,
30
+ onCancel: props.onCancel,
31
+ });
32
+ }
33
+ getDefaultView(props) {
34
+ return suspense(ActionPlanTemplateDefaultView)({ id: props.id });
35
+ }
36
+ }
37
+ Object.defineProperty(ActionPlanTemplateTypeMeta, "TypeName", {
38
+ enumerable: true,
39
+ configurable: true,
40
+ writable: true,
41
+ value: "APTemplate"
42
+ });
43
+ //# sourceMappingURL=metas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/action-plan-template/metas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAGlE,MAAM,sBAAsB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,oEAAoE,CAAC,CAAC,CAAC;AACxH,MAAM,gCAAgC,GAAG,IAAI,CAC5C,GAAG,EAAE,CAAC,MAAM,CAAC,gFAAgF,CAAC,CAC9F,CAAC;AACF,MAAM,iCAAiC,GAAG,IAAI,CAC7C,GAAG,EAAE,CAAC,MAAM,CAAC,iFAAiF,CAAC,CAC/F,CAAC;AACF,MAAM,6BAA6B,GAAG,IAAI,CACzC,GAAG,EAAE,CAAC,MAAM,CAAC,wEAAwE,CAAC,CACtF,CAAC;AAEF,wDAAwD;AACxD,MAAM,OAAO,0BAA2B,SAAQ,uBAAuB;IAGtE,IAAW,IAAI;QACd,OAAO,0BAA0B,CAAC,QAAQ,CAAC;IAC5C,CAAC;IAEM,OAAO;QACb,OAAO,oBAAC,eAAe,IAAC,IAAI,EAAE,cAAc,GAAI,CAAC;IAClD,CAAC;IAEM,OAAO,CAAC,QAAmB,EAAE,KAAwB;QAC3D,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;QACvB,OAAO,QAAQ,CAAC,sBAAsB,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;IACvD,CAAC;IAEM,iBAAiB,CAAC,QAAmB;QAC3C,OAAO,QAAQ,CAAC,gCAAgC,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IAEM,YAAY,CAAC,QAAmB,EAAE,KAAqB;QAC7D,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;QAEvB,OAAO,QAAQ,CAAC,iCAAiC,CAAC,CAAC;YAClD,EAAE,EAAE,QAAQ,CAAC,EAAE;YACf,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SACxB,CAAC,CAAC;IACJ,CAAC;IAEM,cAAc,CAAC,KAAqB;QAC1C,OAAO,QAAQ,CAAC,6BAA6B,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;;AA/Ba;;;;WAAW,YAAY;GAAC"}
@@ -0,0 +1,8 @@
1
+ import { CreateDocumentOptions } from "@voplus/morpho-document-core";
2
+ export type EditorOption = "HTML" | "RichText";
3
+ /** Custom create case options type. Use TitleActionPlanTemplate to fit server need. */
4
+ export type CreateActionPlanTemplateOptions = {} & CreateDocumentOptions;
5
+ /**
6
+ * Custom edit case options type. Use TitleActionPlanTemplate to fit server need.
7
+ */
8
+ export type EditActionPlanTemplateOptions = {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/action-plan-template/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LibraryStore.js","sourceRoot":"","sources":["../../../src/data/library/LibraryStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,iBAAiB,EAIjB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,MAAM,OAAO,YAAa,SAAQ,iBAOjC;IAIA,YAAmB,QAAqB,EAAE,SAAwB;QACjE,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;QAJ5C,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;IAIzC,CAAC;CACD;AAED,uBAAuB;AACvB,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE;IACnC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,QAAQ,CACd,SAAS,EACT,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,SAAS,CAAC,CACrE,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../src/data/library/hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAAU,EAAE,OAA6B,EAAE,EAAE;IACvE,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA0B,CAAC;IAC1D,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAChC,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAC3B,EAAE,EACF,SAAS,CAAC,KAAK,EACf,CAAC,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,EACxD,OAAO,CACP,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/library/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/library/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import { ApiEndPoint } from "@voplus/api";
2
+ import { CountedMap, Store } from "@voplus/morpho-data";
3
+ import { CreateMessageScheduleOptions, DeleteMessageScheduleOptions, EditMessageScheduleOptions, LoadMessageScheduleOptions } from "./types";
4
+ import { IMessageSchedule } from "./interfaces";
5
+ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
6
+ /** Quotation store supply backend functions. */
7
+ export declare class MessageScheduleStore extends Store {
8
+ readonly endpoint: ApiEndPoint;
9
+ /** Name of the store */
10
+ readonly name: string;
11
+ private readonly _messageScheduleDeleted;
12
+ private readonly _messageScheduleCreated;
13
+ constructor(endpoint: ApiEndPoint);
14
+ /** All currently used corporate. */
15
+ readonly items: CountedMap<string, IMessageSchedule>;
16
+ /** Event fires when a delete messageSchedule has been deleted. */
17
+ get MessageScheduleDeletedEvent(): import("strongly-typed-events").IEvent<MessageScheduleStore, IMessageSchedule>;
18
+ /** Event fires when a new MessageSchedule has been created. */
19
+ get MessageScheduleCreatedEvent(): import("strongly-typed-events").IEvent<MessageScheduleStore, IMessageSchedule>;
20
+ /** Create a new Identity. */
21
+ create(options: CreateMessageScheduleOptions): Promise<IMessageSchedule>;
22
+ /** Edit an existing item on server. */
23
+ edit(id: string, options: EditMessageScheduleOptions): Promise<void>;
24
+ /** messageSchedule 內有文件不能delete */
25
+ delete(ids: string[], options?: DeleteMessageScheduleOptions): Promise<any>;
26
+ /** Load a list of documents from server.
27
+ * @param {LoadDocumentListOptions}
28
+ */
29
+ loadList(options?: LoadDocumentListOptions): Promise<IMessageSchedule[]>;
30
+ load(id: string, options: LoadMessageScheduleOptions): Promise<IMessageSchedule>;
31
+ }
32
+ /** 响应钩子检索 IdentityStore */
33
+ export declare const useMessageScheduleStore: () => MessageScheduleStore;
@@ -0,0 +1,115 @@
1
+ import { RequestBuilder } from "@voplus/api";
2
+ import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
3
+ import { observable } from "mobx";
4
+ import { EventDispatcher } from "strongly-typed-events";
5
+ const StoreName = "MessageScheduleStore";
6
+ /** Quotation store supply backend functions. */
7
+ export class MessageScheduleStore extends Store {
8
+ constructor(endpoint) {
9
+ super();
10
+ Object.defineProperty(this, "endpoint", {
11
+ enumerable: true,
12
+ configurable: true,
13
+ writable: true,
14
+ value: endpoint
15
+ });
16
+ /** Name of the store */
17
+ Object.defineProperty(this, "name", {
18
+ enumerable: true,
19
+ configurable: true,
20
+ writable: true,
21
+ value: StoreName
22
+ });
23
+ Object.defineProperty(this, "_messageScheduleDeleted", {
24
+ enumerable: true,
25
+ configurable: true,
26
+ writable: true,
27
+ value: new EventDispatcher()
28
+ });
29
+ Object.defineProperty(this, "_messageScheduleCreated", {
30
+ enumerable: true,
31
+ configurable: true,
32
+ writable: true,
33
+ value: new EventDispatcher()
34
+ });
35
+ /** All currently used corporate. */
36
+ Object.defineProperty(this, "items", {
37
+ enumerable: true,
38
+ configurable: true,
39
+ writable: true,
40
+ value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
41
+ });
42
+ }
43
+ /** Event fires when a delete messageSchedule has been deleted. */
44
+ get MessageScheduleDeletedEvent() {
45
+ return this._messageScheduleDeleted.asEvent();
46
+ }
47
+ /** Event fires when a new MessageSchedule has been created. */
48
+ get MessageScheduleCreatedEvent() {
49
+ return this._messageScheduleCreated.asEvent();
50
+ }
51
+ /** Create a new Identity. */
52
+ async create(options) {
53
+ // invariant(options.name, "Name cannot be empty.");
54
+ return await this.action(async () => {
55
+ const r = await this.endpoint.post(`/api/messages/schedules/create`, new RequestBuilder().json(options.data));
56
+ const t = (await r.json());
57
+ this._messageScheduleCreated.dispatch(this, t);
58
+ return t;
59
+ }, options);
60
+ }
61
+ /** Edit an existing item on server. */
62
+ async edit(id, options) {
63
+ await this.action(async () => {
64
+ const r = await this.endpoint.post(`/api/messages/schedules/${id}`, new RequestBuilder().json(options.data));
65
+ const t = await r.json();
66
+ this.items.overwrite(t.id, t);
67
+ }, options);
68
+ }
69
+ /** messageSchedule 內有文件不能delete */
70
+ async delete(ids, options) {
71
+ return await this.action(async () => {
72
+ await this.endpoint.delete(`/api/messages/schedules/delete`, new RequestBuilder().json({ Ids: ids, Options: options === null || options === void 0 ? void 0 : options.data }));
73
+ const deleted = [];
74
+ for (const id of ids) {
75
+ const item = this.items.peek(id);
76
+ if (item) {
77
+ deleted.push(item);
78
+ this._messageScheduleDeleted.dispatch(this, item);
79
+ }
80
+ }
81
+ return deleted;
82
+ }, options);
83
+ }
84
+ /** Load a list of documents from server.
85
+ * @param {LoadDocumentListOptions}
86
+ */
87
+ async loadList(options) {
88
+ let query = "";
89
+ if (options === null || options === void 0 ? void 0 : options.Includes) {
90
+ query = query.concat(`includes=${options.Includes}`);
91
+ }
92
+ if (query)
93
+ query = "?".concat(query);
94
+ const r = await this.endpoint.post(`/api/messages/schedules${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
95
+ return (await r.json());
96
+ }
97
+ async load(id, options) {
98
+ let query = "";
99
+ if (options.includes)
100
+ query = query.concat(`includes=${options.includes}`);
101
+ if (query)
102
+ query = "?".concat(query);
103
+ const r = await this.endpoint.get(`/api/messages/schedules/${id}${query}`);
104
+ return await r.json();
105
+ }
106
+ }
107
+ /** 响应钩子检索 IdentityStore */
108
+ export const useMessageScheduleStore = () => {
109
+ const context = useApplicationContext();
110
+ if (!context.getStore(StoreName)) {
111
+ context.addStore(new MessageScheduleStore(context.api.currentEndPoint));
112
+ }
113
+ return context.getStore(StoreName);
114
+ };
115
+ //# sourceMappingURL=MessageScheduleStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageScheduleStore.js","sourceRoot":"","sources":["../../../src/data/message-schedule/MessageScheduleStore.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,10 @@
1
+ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
2
+ import { IMessageSchedule } from "./interfaces";
3
+ import { ListDataContextState } from "@voplus/morpho-ui/es/data";
4
+ import { LoadMessageScheduleOptions } from ".";
5
+ /** React hook to retrieve a messageSchedule
6
+ * @param {string} id - id of the messageSchedule
7
+ * @param {LoadDocumentOptions} options - options
8
+ */
9
+ export declare const useMessageSchedule: (id: string, options?: LoadMessageScheduleOptions) => IMessageSchedule;
10
+ export declare const useMessageScheduleListEffect: (list: ListDataContextState<IMessageSchedule> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
@@ -0,0 +1,18 @@
1
+ import { useListLoaderEffect } from "@voplus/morpho-ui/es/hooks";
2
+ import { useLoadCountedMapItem } from "@voplus/morpho-data";
3
+ import { useMessageScheduleStore } from "./MessageScheduleStore";
4
+ /** React hook to retrieve a messageSchedule
5
+ * @param {string} id - id of the messageSchedule
6
+ * @param {LoadDocumentOptions} options - options
7
+ */
8
+ export const useMessageSchedule = (id, options) => {
9
+ options = options ? options : {};
10
+ const store = useMessageScheduleStore();
11
+ return useLoadCountedMapItem(id, store.items, (calculatedOptions) => store.load(id, calculatedOptions), options);
12
+ };
13
+ export const useMessageScheduleListEffect = (list, effect, options) => {
14
+ const deps = options ? options : {};
15
+ const store = useMessageScheduleStore();
16
+ return useListLoaderEffect(list, store.items, effect, () => store.loadList(options), [deps]);
17
+ };
18
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/message-schedule/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEjE;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAU,EAAE,OAAoC,EAAE,EAAE;IACtF,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAAiC,CAAC;IACjE,MAAM,KAAK,GAAG,uBAAuB,EAAE,CAAC;IACxC,OAAO,qBAAqB,CAC3B,EAAE,EACF,KAAK,CAAC,KAAK,EACX,CAAC,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,EACxD,OAAO,CACP,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC3C,IAAmD,EACnD,MAA4C,EAC5C,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IACjE,MAAM,KAAK,GAAG,uBAAuB,EAAE,CAAC;IACxC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./interfaces";
2
+ export * from "./MessageScheduleStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
@@ -0,0 +1,5 @@
1
+ export * from "./interfaces";
2
+ export * from "./MessageScheduleStore";
3
+ export * from "./hooks";
4
+ export * from "./types";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/message-schedule/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { ILoadable } from "@voplus/morpho-data";
2
+ import { INode } from "@voplus/morpho-document-core";
3
+ export type MessageScheduleStatus = "Draft" | "Scheduled";
4
+ export interface IMessageSchedule extends INode, ILoadable {
5
+ id: string;
6
+ name: string;
7
+ message?: {
8
+ id: string;
9
+ name: string;
10
+ };
11
+ offset?: number;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/message-schedule/interfaces.ts"],"names":[],"mappings":""}