@rytass/bpm-core-react 0.18.0 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/chunks/FormBuilderView-CHaAQL5v.cjs +3 -0
  3. package/dist/chunks/FormBuilderView-CHaAQL5v.cjs.map +1 -0
  4. package/dist/chunks/{FormBuilderView-BVKY1j_0.js → FormBuilderView-vQfVc08Z.js} +485 -481
  5. package/dist/chunks/FormBuilderView-vQfVc08Z.js.map +1 -0
  6. package/dist/chunks/{FormRendererView-BsTwZkqU.js → FormRendererView-CTLlG13b.js} +300 -189
  7. package/dist/chunks/FormRendererView-CTLlG13b.js.map +1 -0
  8. package/dist/chunks/FormRendererView-ChmM_4Yc.cjs +4 -0
  9. package/dist/chunks/FormRendererView-ChmM_4Yc.cjs.map +1 -0
  10. package/dist/chunks/admin-pickers-BjbkBpSJ.cjs +2 -0
  11. package/dist/chunks/admin-pickers-BjbkBpSJ.cjs.map +1 -0
  12. package/dist/chunks/{admin-pickers-Djq3h-UR.js → admin-pickers-DfGxsjpp.js} +42 -42
  13. package/dist/chunks/admin-pickers-DfGxsjpp.js.map +1 -0
  14. package/dist/chunks/{approval-instance-list-page-CPXMP3PL.js → approval-instance-list-page-BnI4t5mD.js} +7 -8
  15. package/dist/chunks/{approval-instance-list-page-CPXMP3PL.js.map → approval-instance-list-page-BnI4t5mD.js.map} +1 -1
  16. package/dist/chunks/{approval-instance-list-page-ax0pm8bt.cjs → approval-instance-list-page-fqvmkBlg.cjs} +2 -2
  17. package/dist/chunks/{approval-instance-list-page-ax0pm8bt.cjs.map → approval-instance-list-page-fqvmkBlg.cjs.map} +1 -1
  18. package/dist/chunks/{approver-filled-form-Dm3Iw7iw.cjs → approver-filled-form-B4zPg9kz.cjs} +2 -2
  19. package/dist/chunks/approver-filled-form-B4zPg9kz.cjs.map +1 -0
  20. package/dist/chunks/{approver-filled-form-ZEwpmsHJ.js → approver-filled-form-Bgazhbvd.js} +40 -36
  21. package/dist/chunks/approver-filled-form-Bgazhbvd.js.map +1 -0
  22. package/dist/chunks/auth-provider-4BeCw7cI.cjs.map +1 -1
  23. package/dist/chunks/{auth-provider-B5oPmvk2.js → auth-provider-C2b-5mGt.js} +2 -3
  24. package/dist/chunks/{auth-provider-B5oPmvk2.js.map → auth-provider-C2b-5mGt.js.map} +1 -1
  25. package/dist/chunks/{bpm-form-field-Cao0rMol.js → bpm-form-field-9B-Det0u.js} +2 -3
  26. package/dist/chunks/{bpm-form-field-Cao0rMol.js.map → bpm-form-field-9B-Det0u.js.map} +1 -1
  27. package/dist/chunks/bpm-form-field-Bc6k4ZEO.cjs.map +1 -1
  28. package/dist/chunks/{categories-riC33J_j.js → categories-BAdxjNSA.js} +14 -15
  29. package/dist/chunks/{categories-riC33J_j.js.map → categories-BAdxjNSA.js.map} +1 -1
  30. package/dist/chunks/{categories-AxxhqjLZ.cjs → categories-DQUtVEiV.cjs} +2 -2
  31. package/dist/chunks/{categories-AxxhqjLZ.cjs.map → categories-DQUtVEiV.cjs.map} +1 -1
  32. package/dist/chunks/{compose-B1GlrZW9.js → compose-D9ipJpF_.js} +131 -148
  33. package/dist/chunks/compose-D9ipJpF_.js.map +1 -0
  34. package/dist/chunks/compose-DtfX8DQ9.cjs +2 -0
  35. package/dist/chunks/compose-DtfX8DQ9.cjs.map +1 -0
  36. package/dist/chunks/{dashboard-page-DdBvV6YI.js → dashboard-page-BoqNhjT_.js} +5 -6
  37. package/dist/chunks/{dashboard-page-DdBvV6YI.js.map → dashboard-page-BoqNhjT_.js.map} +1 -1
  38. package/dist/chunks/{dashboard-page-BWQBSGDq.cjs → dashboard-page-D7YJ3udk.cjs} +2 -2
  39. package/dist/chunks/{dashboard-page-BWQBSGDq.cjs.map → dashboard-page-D7YJ3udk.cjs.map} +1 -1
  40. package/dist/chunks/{delegations-MxF3uJGW.js → delegations-BfhCDz5e.js} +15 -16
  41. package/dist/chunks/{delegations-MxF3uJGW.js.map → delegations-BfhCDz5e.js.map} +1 -1
  42. package/dist/chunks/{delegations-Ckf03icM.cjs → delegations-BmFGcuhA.cjs} +2 -2
  43. package/dist/chunks/{delegations-Ckf03icM.cjs.map → delegations-BmFGcuhA.cjs.map} +1 -1
  44. package/dist/chunks/{delegations-V9HIe3_P.cjs → delegations-CcS0SHbf.cjs} +2 -2
  45. package/dist/chunks/{delegations-V9HIe3_P.cjs.map → delegations-CcS0SHbf.cjs.map} +1 -1
  46. package/dist/chunks/{delegations-xUt1tj8d.js → delegations-DBh5TT6G.js} +16 -17
  47. package/dist/chunks/{delegations-xUt1tj8d.js.map → delegations-DBh5TT6G.js.map} +1 -1
  48. package/dist/chunks/designer-Df79YzUn.cjs +65 -0
  49. package/dist/chunks/designer-Df79YzUn.cjs.map +1 -0
  50. package/dist/chunks/{designer-BCLrjb4H.js → designer-ubnZbP-A.js} +1791 -1407
  51. package/dist/chunks/designer-ubnZbP-A.js.map +1 -0
  52. package/dist/chunks/detail-BBC9kqXd.cjs +5 -0
  53. package/dist/chunks/detail-BBC9kqXd.cjs.map +1 -0
  54. package/dist/chunks/{detail-4F39ggBn.js → detail-C6XKZjlF.js} +1033 -1005
  55. package/dist/chunks/detail-C6XKZjlF.js.map +1 -0
  56. package/dist/chunks/{format-date-time-CB-LxzqT.js → format-date-time-B0LdmWg4.js} +2 -3
  57. package/dist/chunks/{format-date-time-CB-LxzqT.js.map → format-date-time-B0LdmWg4.js.map} +1 -1
  58. package/dist/chunks/format-date-time-D-cx5M8z.cjs.map +1 -1
  59. package/dist/chunks/{format-member-label-DudVI55w.js → format-member-label-C73FuP-d.js} +2 -3
  60. package/dist/chunks/{format-member-label-DudVI55w.js.map → format-member-label-C73FuP-d.js.map} +1 -1
  61. package/dist/chunks/format-member-label-t7ANTF62.cjs.map +1 -1
  62. package/dist/chunks/language-provider-Bdnx3Gxl.cjs.map +1 -1
  63. package/dist/chunks/{language-provider-B3cEbLe4.js → language-provider-phkWOapf.js} +2 -3
  64. package/dist/chunks/{language-provider-B3cEbLe4.js.map → language-provider-phkWOapf.js.map} +1 -1
  65. package/dist/chunks/{login-C6qlTC6F.js → login-D6cc3bo7.js} +4 -5
  66. package/dist/chunks/{login-C6qlTC6F.js.map → login-D6cc3bo7.js.map} +1 -1
  67. package/dist/chunks/{login-AtVxZBsC.cjs → login-uvVcltrS.cjs} +2 -2
  68. package/dist/chunks/{login-AtVxZBsC.cjs.map → login-uvVcltrS.cjs.map} +1 -1
  69. package/dist/chunks/notifications-Bc4mgSds.cjs.map +1 -1
  70. package/dist/chunks/{notifications-DJ5wzCye.js → notifications-Cvme5Qbl.js} +2 -3
  71. package/dist/chunks/{notifications-DJ5wzCye.js.map → notifications-Cvme5Qbl.js.map} +1 -1
  72. package/dist/chunks/orgs-B_2J2tLX.cjs +2 -0
  73. package/dist/chunks/{orgs-BeeDDWL1.cjs.map → orgs-B_2J2tLX.cjs.map} +1 -1
  74. package/dist/chunks/{orgs-8hje_l2n.js → orgs-DqxMds26.js} +48 -49
  75. package/dist/chunks/{orgs-8hje_l2n.js.map → orgs-DqxMds26.js.map} +1 -1
  76. package/dist/chunks/{providers-B_d5tbCL.js → providers-BbCs23sk.js} +21 -25
  77. package/dist/chunks/{providers-B_d5tbCL.js.map → providers-BbCs23sk.js.map} +1 -1
  78. package/dist/chunks/{providers-chuJvMgv.cjs → providers-D_KAgOOu.cjs} +2 -2
  79. package/dist/chunks/{providers-chuJvMgv.cjs.map → providers-D_KAgOOu.cjs.map} +1 -1
  80. package/dist/chunks/router-adapter--gYs13E8.cjs.map +1 -1
  81. package/dist/chunks/{router-adapter-DftlFTOd.js → router-adapter-CkxCyzf5.js} +2 -3
  82. package/dist/chunks/{router-adapter-DftlFTOd.js.map → router-adapter-CkxCyzf5.js.map} +1 -1
  83. package/dist/chunks/{routes-config-yZbESPlw.js → routes-config-BcNaWJWJ.js} +2 -3
  84. package/dist/chunks/{routes-config-yZbESPlw.js.map → routes-config-BcNaWJWJ.js.map} +1 -1
  85. package/dist/chunks/routes-config-C1j_vFKo.cjs.map +1 -1
  86. package/dist/chunks/task-decision-3d17ZvZE.js +29 -0
  87. package/dist/chunks/task-decision-3d17ZvZE.js.map +1 -0
  88. package/dist/chunks/task-decision-CqZ4WQOC.cjs +2 -0
  89. package/dist/chunks/task-decision-CqZ4WQOC.cjs.map +1 -0
  90. package/dist/chunks/{use-bpm-member-D57LKe_u.js → use-bpm-member-BPzcNU1g.js} +3 -4
  91. package/dist/chunks/{use-bpm-member-D57LKe_u.js.map → use-bpm-member-BPzcNU1g.js.map} +1 -1
  92. package/dist/chunks/use-bpm-member-DpNAQtNC.cjs.map +1 -1
  93. package/dist/chunks/{users-Pl6hY5Y5.js → users-BBtiZ9QQ.js} +22 -25
  94. package/dist/chunks/{users-Pl6hY5Y5.js.map → users-BBtiZ9QQ.js.map} +1 -1
  95. package/dist/chunks/{users-O2L_M3BK.cjs → users-EqSzDhuj.cjs} +2 -2
  96. package/dist/chunks/{users-O2L_M3BK.cjs.map → users-EqSzDhuj.cjs.map} +1 -1
  97. package/dist/components/admin-picker-options.d.cts +11 -0
  98. package/dist/components/admin-picker-options.d.ts +11 -0
  99. package/dist/components/admin-pickers.d.cts +2 -11
  100. package/dist/components/admin-pickers.d.ts +2 -11
  101. package/dist/index.cjs +1 -1
  102. package/dist/index.cjs.map +1 -1
  103. package/dist/index.js +17 -19
  104. package/dist/index.js.map +1 -1
  105. package/dist/lib/task-decision.d.cts +16 -0
  106. package/dist/lib/task-decision.d.ts +16 -0
  107. package/dist/lib/use-org-unit-names.d.cts +10 -0
  108. package/dist/lib/use-org-unit-names.d.ts +10 -0
  109. package/dist/next/index.cjs +1 -1
  110. package/dist/next/index.cjs.map +1 -1
  111. package/dist/next/index.js +7 -8
  112. package/dist/next/index.js.map +1 -1
  113. package/dist/next/workflow-chat-route.cjs +19 -1
  114. package/dist/next/workflow-chat-route.cjs.map +1 -1
  115. package/dist/next/workflow-chat-route.js +2 -3
  116. package/dist/next/workflow-chat-route.js.map +1 -1
  117. package/dist/pages/admin/delegations/index.cjs +1 -1
  118. package/dist/pages/admin/delegations/index.cjs.map +1 -1
  119. package/dist/pages/admin/delegations/index.js +2 -3
  120. package/dist/pages/admin/orgs/index.cjs +1 -1
  121. package/dist/pages/admin/orgs/index.cjs.map +1 -1
  122. package/dist/pages/admin/orgs/index.js +2 -3
  123. package/dist/pages/admin/users/index.cjs +1 -1
  124. package/dist/pages/admin/users/index.cjs.map +1 -1
  125. package/dist/pages/admin/users/index.js +2 -3
  126. package/dist/pages/admin/webhook-endpoints/index.cjs.map +1 -1
  127. package/dist/pages/admin/webhook-endpoints/index.js +1 -2
  128. package/dist/pages/cc/index.cjs.map +1 -1
  129. package/dist/pages/cc/index.js +1 -2
  130. package/dist/pages/dashboard/index.cjs.map +1 -1
  131. package/dist/pages/dashboard/index.js +1 -2
  132. package/dist/pages/delegations/index.cjs +1 -1
  133. package/dist/pages/delegations/index.cjs.map +1 -1
  134. package/dist/pages/delegations/index.js +2 -3
  135. package/dist/pages/inbox/index.cjs.map +1 -1
  136. package/dist/pages/inbox/index.js +1 -2
  137. package/dist/pages/instances/detail/index.cjs +1 -1
  138. package/dist/pages/instances/detail/index.cjs.map +1 -1
  139. package/dist/pages/instances/detail/index.js +2 -3
  140. package/dist/pages/instances/new/index.cjs.map +1 -1
  141. package/dist/pages/instances/new/index.js +1 -2
  142. package/dist/pages/login/index.cjs +1 -1
  143. package/dist/pages/login/index.cjs.map +1 -1
  144. package/dist/pages/login/index.js +2 -3
  145. package/dist/pages/root/index.cjs.map +1 -1
  146. package/dist/pages/root/index.js +1 -2
  147. package/dist/pages/search/index.cjs.map +1 -1
  148. package/dist/pages/search/index.js +1 -2
  149. package/dist/pages/sent/index.cjs.map +1 -1
  150. package/dist/pages/sent/index.js +1 -2
  151. package/dist/pages/settings/notifications/index.cjs.map +1 -1
  152. package/dist/pages/settings/notifications/index.js +2 -3
  153. package/dist/pages/templates/categories/index.cjs +1 -1
  154. package/dist/pages/templates/categories/index.cjs.map +1 -1
  155. package/dist/pages/templates/categories/index.js +2 -3
  156. package/dist/pages/templates/compose/index.cjs +1 -1
  157. package/dist/pages/templates/compose/index.cjs.map +1 -1
  158. package/dist/pages/templates/compose/index.js +2 -3
  159. package/dist/pages/templates/designer/index.cjs +1 -1
  160. package/dist/pages/templates/designer/index.cjs.map +1 -1
  161. package/dist/pages/templates/designer/index.js +2 -3
  162. package/dist/pages/templates/index.cjs.map +1 -1
  163. package/dist/pages/templates/index.js +1 -2
  164. package/dist/pages/templates/versions/index.cjs.map +1 -1
  165. package/dist/pages/templates/versions/index.js +1 -2
  166. package/dist/views/admin/delegations/index.cjs +1 -1
  167. package/dist/views/admin/delegations/index.js +1 -1
  168. package/dist/views/admin/index.cjs +1 -1
  169. package/dist/views/admin/index.js +3 -3
  170. package/dist/views/admin/orgs/index.cjs +1 -1
  171. package/dist/views/admin/orgs/index.js +1 -1
  172. package/dist/views/admin/users/index.cjs +1 -1
  173. package/dist/views/admin/users/index.js +1 -1
  174. package/dist/views/admin/webhook-endpoints/index.cjs +1 -1
  175. package/dist/views/admin/webhook-endpoints/index.cjs.map +1 -1
  176. package/dist/views/admin/webhook-endpoints/index.js +52 -53
  177. package/dist/views/admin/webhook-endpoints/index.js.map +1 -1
  178. package/dist/views/cc/index.cjs +1 -1
  179. package/dist/views/cc/index.cjs.map +1 -1
  180. package/dist/views/cc/index.js +2 -3
  181. package/dist/views/dashboard/index.cjs +1 -1
  182. package/dist/views/dashboard/index.cjs.map +1 -1
  183. package/dist/views/dashboard/index.js +2 -3
  184. package/dist/views/delegations/index.cjs +1 -1
  185. package/dist/views/delegations/index.js +1 -1
  186. package/dist/views/forms/builder/index.cjs +1 -1
  187. package/dist/views/forms/builder/index.js +1 -1
  188. package/dist/views/forms/renderer/index.cjs +1 -1
  189. package/dist/views/forms/renderer/index.js +1 -1
  190. package/dist/views/forms/renderer/org-unit-field-options.d.cts +44 -0
  191. package/dist/views/forms/renderer/org-unit-field-options.d.ts +44 -0
  192. package/dist/views/forms/renderer/org-unit-field.d.cts +23 -0
  193. package/dist/views/forms/renderer/org-unit-field.d.ts +23 -0
  194. package/dist/views/inbox/index.cjs +1 -1
  195. package/dist/views/inbox/index.cjs.map +1 -1
  196. package/dist/views/inbox/index.js +133 -137
  197. package/dist/views/inbox/index.js.map +1 -1
  198. package/dist/views/instances/approver-filled-form.d.cts +9 -2
  199. package/dist/views/instances/approver-filled-form.d.ts +9 -2
  200. package/dist/views/instances/detail/index.cjs +1 -1
  201. package/dist/views/instances/detail/index.js +1 -1
  202. package/dist/views/instances/detail/sections/InstanceHistorySection.d.cts +8 -1
  203. package/dist/views/instances/detail/sections/InstanceHistorySection.d.ts +8 -1
  204. package/dist/views/instances/detail/sections/container-helpers.d.cts +0 -1
  205. package/dist/views/instances/detail/sections/container-helpers.d.ts +0 -1
  206. package/dist/views/instances/detail/sections/shared.d.cts +2 -2
  207. package/dist/views/instances/detail/sections/shared.d.ts +2 -2
  208. package/dist/views/instances/new/index.cjs +1 -1
  209. package/dist/views/instances/new/index.cjs.map +1 -1
  210. package/dist/views/instances/new/index.js +14 -15
  211. package/dist/views/instances/new/index.js.map +1 -1
  212. package/dist/views/login/index.cjs +1 -1
  213. package/dist/views/login/index.js +1 -1
  214. package/dist/views/search/index.cjs +1 -1
  215. package/dist/views/search/index.cjs.map +1 -1
  216. package/dist/views/search/index.js +2 -3
  217. package/dist/views/sent/index.cjs +1 -1
  218. package/dist/views/sent/index.cjs.map +1 -1
  219. package/dist/views/sent/index.js +2 -3
  220. package/dist/views/settings/index.js +1 -1
  221. package/dist/views/settings/notifications/index.js +1 -1
  222. package/dist/views/templates/categories/index.cjs +1 -1
  223. package/dist/views/templates/categories/index.js +1 -1
  224. package/dist/views/templates/compose/index.cjs +1 -1
  225. package/dist/views/templates/compose/index.js +1 -1
  226. package/dist/views/templates/designer/approver-resolver-model.d.cts +211 -0
  227. package/dist/views/templates/designer/approver-resolver-model.d.ts +211 -0
  228. package/dist/views/templates/designer/dry-run-assignee-label.d.cts +2 -0
  229. package/dist/views/templates/designer/dry-run-assignee-label.d.ts +2 -0
  230. package/dist/views/templates/designer/dry-run-sample-data.d.cts +6 -0
  231. package/dist/views/templates/designer/dry-run-sample-data.d.ts +6 -0
  232. package/dist/views/templates/designer/dynamic-form-resolver-options.d.cts +25 -0
  233. package/dist/views/templates/designer/dynamic-form-resolver-options.d.ts +25 -0
  234. package/dist/views/templates/designer/index.cjs +1 -1
  235. package/dist/views/templates/designer/index.js +1 -1
  236. package/dist/views/templates/designer/node-actor-resolver-options.d.cts +38 -0
  237. package/dist/views/templates/designer/node-actor-resolver-options.d.ts +38 -0
  238. package/dist/views/templates/index.cjs +1 -1
  239. package/dist/views/templates/index.cjs.map +1 -1
  240. package/dist/views/templates/index.js +50 -51
  241. package/dist/views/templates/index.js.map +1 -1
  242. package/dist/views/templates/versions/index.cjs +1 -1
  243. package/dist/views/templates/versions/index.cjs.map +1 -1
  244. package/dist/views/templates/versions/index.js +7 -8
  245. package/dist/views/templates/versions/index.js.map +1 -1
  246. package/package.json +3 -3
  247. package/dist/chunks/FormBuilderView-BVKY1j_0.js.map +0 -1
  248. package/dist/chunks/FormBuilderView-SrGltzFT.cjs +0 -3
  249. package/dist/chunks/FormBuilderView-SrGltzFT.cjs.map +0 -1
  250. package/dist/chunks/FormRendererView-BsTwZkqU.js.map +0 -1
  251. package/dist/chunks/FormRendererView-GpsE03np.cjs +0 -4
  252. package/dist/chunks/FormRendererView-GpsE03np.cjs.map +0 -1
  253. package/dist/chunks/admin-pickers-BRHk3qKq.cjs +0 -2
  254. package/dist/chunks/admin-pickers-BRHk3qKq.cjs.map +0 -1
  255. package/dist/chunks/admin-pickers-Djq3h-UR.js.map +0 -1
  256. package/dist/chunks/approver-filled-form-Dm3Iw7iw.cjs.map +0 -1
  257. package/dist/chunks/approver-filled-form-ZEwpmsHJ.js.map +0 -1
  258. package/dist/chunks/compose-B1GlrZW9.js.map +0 -1
  259. package/dist/chunks/compose-DZk-SfHT.cjs +0 -2
  260. package/dist/chunks/compose-DZk-SfHT.cjs.map +0 -1
  261. package/dist/chunks/designer-BCLrjb4H.js.map +0 -1
  262. package/dist/chunks/designer-BYYxEN9L.cjs +0 -65
  263. package/dist/chunks/designer-BYYxEN9L.cjs.map +0 -1
  264. package/dist/chunks/detail-4F39ggBn.js.map +0 -1
  265. package/dist/chunks/detail-BkMtA_0K.cjs +0 -2
  266. package/dist/chunks/detail-BkMtA_0K.cjs.map +0 -1
  267. package/dist/chunks/orgs-BeeDDWL1.cjs +0 -2
  268. package/dist/chunks/task-node-label-BF6UllxP.cjs +0 -2
  269. package/dist/chunks/task-node-label-BF6UllxP.cjs.map +0 -1
  270. package/dist/chunks/task-node-label-CWZgOBj0.js +0 -9
  271. package/dist/chunks/task-node-label-CWZgOBj0.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { t as e } from "./bpm-form-field-Cao0rMol.js";
3
- import { t } from "./format-member-label-DudVI55w.js";
4
- import { a as n, i as r, n as i, o as a, r as o, t as s } from "./admin-pickers-Djq3h-UR.js";
2
+ import { t as e } from "./bpm-form-field-9B-Det0u.js";
3
+ import { a as t, i as n, n as r, o as i, r as a, t as o } from "./admin-pickers-DfGxsjpp.js";
5
4
  import '../style.css';import '../orgs.css';/* empty css */
5
+ import { t as s } from "./format-member-label-C73FuP-d.js";
6
6
  import { forwardRef as c, useCallback as l, useEffect as u, useImperativeHandle as d, useMemo as f, useRef as p, useState as m } from "react";
7
7
  import { AutoComplete as h, Button as g, DatePicker as _, Filter as v, FilterArea as y, FilterLine as b, FormField as x, Input as S, Modal as C, PageHeader as w, Section as T, SectionGroup as E, Select as D, Tab as O, TabItem as k, Table as A, Typography as j } from "@mezzanine-ui/react";
8
8
  import { resolveMembers as M } from "@rytass/bpm-core-client";
@@ -13,7 +13,7 @@ import { CloseIcon as R, EditIcon as ee, PlusIcon as z, SaveIcon as te } from "@
13
13
  import { commitOrgUnitTreeDraft as ne, createManagerResolution as re, createMembership as ie, createOrgUnit as ae, createPosition as oe, deleteManagerResolution as se, deleteMembership as ce, deleteOrgUnit as le, deletePosition as ue, readOrgUnitRetirementImpact as de, readOrganizationDashboard as fe, updateManagerResolution as pe, updateMembership as me, updateOrgUnit as he, updatePosition as ge } from "@rytass/bpm-core-client/organization";
14
14
  import { Background as _e, ConnectionMode as ve, Controls as ye, Handle as be, MiniMap as xe, Panel as Se, Position as B, ReactFlow as Ce, applyNodeChanges as we } from "@xyflow/react";
15
15
  import * as Te from "dagre";
16
- //#region src/lib/org-tree-draft.ts
16
+ // src/lib/org-tree-draft.ts
17
17
  function Ee(e) {
18
18
  return new Map(e.map((e) => [e.id, e.parentId]));
19
19
  }
@@ -656,20 +656,20 @@ var G = {
656
656
  50
657
657
  ], mt = 1368, ht = 948, gt = 1292, Z = 1124;
658
658
  function _t() {
659
- let [t, n] = m("ORG_UNITS"), [r, a] = m(null), [o, s] = m(null), [c, d] = m(null), [p, h] = m(!0), [g, _] = m(null), [v, y] = m(dt), [b, x] = m(1), [S, D] = m(10), [A, I] = m(lt), [R, ee] = m(0), [z, te] = m([]), [_e, ve] = m(null), [ye, be] = m(null), [xe, Se] = m(null), [B, Ce] = m(1), [we, Te] = m(10), [Ee, De] = m(null), [Oe, ke] = m(0), [Ae, V] = m(null), [H, U] = m(1), [je, Me] = m(10), [Ne, Pe] = m(""), [Fe, Ie] = m(0), [Le, Re] = m(ct), [ze, Be] = m("TABLE"), [W, Ve] = m([]), [He, Ue] = m([]), [We, Ge] = m([]), [Ke, qe] = m(null), [Je, Ye] = m(1), [Xe, Ze] = m(10), [Qe, $e] = m(""), [et, tt] = m(0), [nt, rt] = m([]), [it, at] = m([]), [ot, G] = m([]), [K, q] = m(!1), [J, Y] = m(null), [ut, ft] = m(null);
659
+ let [t, n] = m("ORG_UNITS"), [i, a] = m(null), [o, s] = m(null), [c, d] = m(null), [p, h] = m(!0), [g, _] = m(null), [v, y] = m(dt), [b, x] = m(1), [S, D] = m(10), [A, I] = m(lt), [R, ee] = m(0), [z, te] = m([]), [_e, ve] = m(null), [ye, be] = m(null), [xe, Se] = m(null), [B, Ce] = m(1), [we, Te] = m(10), [Ee, De] = m(null), [Oe, ke] = m(0), [Ae, V] = m(null), [H, U] = m(1), [je, Me] = m(10), [Ne, Pe] = m(""), [Fe, Ie] = m(0), [Le, Re] = m(ct), [ze, Be] = m("TABLE"), [W, Ve] = m([]), [He, Ue] = m([]), [We, Ge] = m([]), [Ke, qe] = m(null), [Je, Ye] = m(1), [Xe, Ze] = m(10), [Qe, $e] = m(""), [et, tt] = m(0), [nt, rt] = m([]), [it, at] = m([]), [ot, G] = m([]), [K, q] = m(!1), [J, Y] = m(null), [ut, ft] = m(null);
660
660
  u(() => {
661
- r && s(r);
662
- }, [r]), u(() => {
661
+ i && s(i);
662
+ }, [i]), u(() => {
663
663
  let e = !1;
664
- return Y(null), ft(null), r?.type === "ORG_UNIT" && de(r.id).then((t) => {
664
+ return Y(null), ft(null), i?.type === "ORG_UNIT" && de(i.id).then((t) => {
665
665
  e || Y(t);
666
666
  }).catch((t) => {
667
667
  e || d(en(t));
668
668
  }), () => {
669
669
  e = !0;
670
670
  };
671
- }, [r]);
672
- let X = r?.type === "ORG_UNIT", pt = X && J !== null && (J.openMembershipCount > 0 || J.openManagerResolutionCount > 0), mt = X && (J === null || J.childUnitCount > 0 || pt && !ut), ht = r ?? o, gt = l(async () => {
671
+ }, [i]);
672
+ let X = i?.type === "ORG_UNIT", pt = X && J !== null && (J.openMembershipCount > 0 || J.openManagerResolutionCount > 0), mt = X && (J === null || J.childUnitCount > 0 || pt && !ut), ht = i ?? o, gt = l(async () => {
673
673
  h(!0), d(null);
674
674
  try {
675
675
  let e = await fe({
@@ -859,8 +859,8 @@ function _t() {
859
859
  K || a(null);
860
860
  }
861
861
  async function Yt() {
862
- r && await Qt(async () => {
863
- r.type === "ORG_UNIT" && await le(r.id, { transferToOrgUnitId: pt ? ut?.id ?? null : null }), r.type === "POSITION" && await ue(r.id), r.type === "MEMBERSHIP" && await ce(r.id), r.type === "MANAGER_RESOLUTION" && await se(r.id), a(null);
862
+ i && await Qt(async () => {
863
+ i.type === "ORG_UNIT" && await le(i.id, { transferToOrgUnitId: pt ? ut?.id ?? null : null }), i.type === "POSITION" && await ue(i.id), i.type === "MEMBERSHIP" && await ce(i.id), i.type === "MANAGER_RESOLUTION" && await se(i.id), a(null);
864
864
  });
865
865
  }
866
866
  async function Zt(e) {
@@ -1103,7 +1103,7 @@ function _t() {
1103
1103
  onCancel: $,
1104
1104
  onClose: $,
1105
1105
  onConfirm: () => void Yt(),
1106
- open: !!r,
1106
+ open: !!i,
1107
1107
  showModalFooter: !0,
1108
1108
  showModalHeader: !0,
1109
1109
  size: "regular",
@@ -1132,10 +1132,10 @@ function _t() {
1132
1132
  }), /* @__PURE__ */ P(e, {
1133
1133
  label: "承接組織",
1134
1134
  name: "successorOrgUnitId",
1135
- children: /* @__PURE__ */ P(i, {
1135
+ children: /* @__PURE__ */ P(r, {
1136
1136
  name: "successorOrgUnitId",
1137
1137
  onChange: ft,
1138
- orgUnits: W.filter((e) => e.id !== r?.id),
1138
+ orgUnits: W.filter((e) => e.id !== i?.id),
1139
1139
  placeholder: "選擇承接組織",
1140
1140
  value: ut
1141
1141
  })
@@ -1354,7 +1354,7 @@ function yt({ actions: e, loading: t, onCreate: n, onPageChange: r, onPageSizeCh
1354
1354
  })
1355
1355
  ] });
1356
1356
  }
1357
- function bt({ actions: e, loading: t, onCreate: r, onActiveFilterChange: i, onOrgUnitFilterChange: o, onPageChange: s, onPageSizeChange: c, onPositionFilterChange: l, orgUnitFilter: u, orgUnits: d, page: p, pageSize: m, positionFilter: g, positions: _, rows: S, statusFilter: C, total: w }) {
1357
+ function bt({ actions: e, loading: n, onCreate: r, onActiveFilterChange: a, onOrgUnitFilterChange: o, onPageChange: s, onPageSizeChange: c, onPositionFilterChange: l, orgUnitFilter: u, orgUnits: d, page: p, pageSize: m, positionFilter: g, positions: _, rows: S, statusFilter: C, total: w }) {
1358
1358
  let T = f(() => [
1359
1359
  {
1360
1360
  dataIndex: "memberName",
@@ -1392,7 +1392,7 @@ function bt({ actions: e, loading: t, onCreate: r, onActiveFilterChange: i, onOr
1392
1392
  title: "結束日",
1393
1393
  width: 140
1394
1394
  }
1395
- ], []), E = f(() => d.map(n), [d]), D = f(() => _.map(a), [_]);
1395
+ ], []), E = f(() => d.map(t), [d]), D = f(() => _.map(i), [_]);
1396
1396
  return /* @__PURE__ */ F(N, { children: [
1397
1397
  /* @__PURE__ */ P(Tt, {
1398
1398
  actionLabel: "新增歸屬",
@@ -1471,7 +1471,7 @@ function bt({ actions: e, loading: t, onCreate: r, onActiveFilterChange: i, onOr
1471
1471
  },
1472
1472
  mode: "single",
1473
1473
  name: "membershipStatusFilter",
1474
- onChange: (e) => i(Wt(e)),
1474
+ onChange: (e) => a(Wt(e)),
1475
1475
  options: [...ft],
1476
1476
  placeholder: "全部狀態",
1477
1477
  size: "sub",
@@ -1488,7 +1488,7 @@ function bt({ actions: e, loading: t, onCreate: r, onActiveFilterChange: i, onOr
1488
1488
  columns: T,
1489
1489
  dataSource: [...S],
1490
1490
  fullWidth: !0,
1491
- loading: t,
1491
+ loading: n,
1492
1492
  pagination: Q({
1493
1493
  onPageChange: s,
1494
1494
  onPageSizeChange: c,
@@ -1643,31 +1643,31 @@ function Tt({ actionDisabled: e = !1, actionIcon: t = z, actionLabel: n, actions
1643
1643
  })]
1644
1644
  });
1645
1645
  }
1646
- function Et({ modal: t, onClose: r, onSubmit: a, orgUnits: o, saving: s }) {
1646
+ function Et({ modal: n, onClose: i, onSubmit: a, orgUnits: o, saving: s }) {
1647
1647
  let [c, l] = m(""), [d, f] = m(""), [p, h] = m(null), [g, _] = m(q[2]);
1648
1648
  return u(() => {
1649
- if (!t) return;
1650
- let e = t.record, r = e?.parentId ?? t.parentId ?? null, i = r ? o.find((e) => e.id === r) ?? null : null;
1651
- l(e?.code ?? ""), f(e?.name ?? ""), h(i ? n(i) : null), _(q.find((t) => t.id === e?.type) ?? q[2]);
1652
- }, [t, o]), /* @__PURE__ */ P(C, {
1649
+ if (!n) return;
1650
+ let e = n.record, r = e?.parentId ?? n.parentId ?? null, i = r ? o.find((e) => e.id === r) ?? null : null;
1651
+ l(e?.code ?? ""), f(e?.name ?? ""), h(i ? t(i) : null), _(q.find((t) => t.id === e?.type) ?? q[2]);
1652
+ }, [n, o]), /* @__PURE__ */ P(C, {
1653
1653
  cancelText: "取消",
1654
1654
  confirmButtonProps: { disabled: !c || !d },
1655
- confirmText: t?.type === "EDIT" ? "儲存" : "建立",
1655
+ confirmText: n?.type === "EDIT" ? "儲存" : "建立",
1656
1656
  loading: s,
1657
1657
  modalType: "standard",
1658
- onCancel: r,
1659
- onClose: r,
1658
+ onCancel: i,
1659
+ onClose: i,
1660
1660
  onConfirm: () => void a({
1661
1661
  code: c,
1662
1662
  name: d,
1663
1663
  parentId: p?.id ?? null,
1664
1664
  type: g.id
1665
1665
  }),
1666
- open: !!t,
1666
+ open: !!n,
1667
1667
  showModalFooter: !0,
1668
1668
  showModalHeader: !0,
1669
1669
  size: "regular",
1670
- title: t?.type === "EDIT" ? "編輯組織" : "新增組織",
1670
+ title: n?.type === "EDIT" ? "編輯組織" : "新增組織",
1671
1671
  children: /* @__PURE__ */ F("div", {
1672
1672
  className: G.modalFields,
1673
1673
  children: [
@@ -1700,10 +1700,10 @@ function Et({ modal: t, onClose: r, onSubmit: a, orgUnits: o, saving: s }) {
1700
1700
  /* @__PURE__ */ P(e, {
1701
1701
  label: "上層組織",
1702
1702
  name: "parentId",
1703
- children: /* @__PURE__ */ P(i, {
1703
+ children: /* @__PURE__ */ P(r, {
1704
1704
  name: "parentId",
1705
1705
  onChange: h,
1706
- orgUnits: o.filter((e) => e.id !== t?.record?.id),
1706
+ orgUnits: o.filter((e) => e.id !== n?.record?.id),
1707
1707
  placeholder: "選擇上層組織",
1708
1708
  value: p
1709
1709
  })
@@ -1762,14 +1762,14 @@ function Dt({ modal: e, onClose: t, onSubmit: n, saving: r }) {
1762
1762
  })
1763
1763
  });
1764
1764
  }
1765
- function Ot({ membersById: t, modal: c, onClose: l, onSubmit: d, orgUnits: f, positions: p, saving: h }) {
1765
+ function Ot({ membersById: s, modal: c, onClose: l, onSubmit: d, orgUnits: f, positions: p, saving: h }) {
1766
1766
  let [g, _] = m(Xt()), [v, y] = m(""), [b, x] = m(X[1]), [S, w] = m(null), [T, E] = m(null), [O, k] = m(null);
1767
1767
  return u(() => {
1768
1768
  if (!c) return;
1769
- let e = c.record, i = e ? t.get(e.memberId) : null;
1770
- _(e?.effectiveFrom ?? Xt()), y(e?.effectiveTo ?? ""), x(X.find((t) => t.value === e?.isPrimary) ?? X[1]), w(i ? r(i) : null), E(Yt(f.find((t) => t.id === e?.orgUnitId), n)), k(Yt(p.find((t) => t.id === e?.positionId), a));
1769
+ let e = c.record, r = e ? s.get(e.memberId) : null;
1770
+ _(e?.effectiveFrom ?? Xt()), y(e?.effectiveTo ?? ""), x(X.find((t) => t.value === e?.isPrimary) ?? X[1]), w(r ? n(r) : null), E(Yt(f.find((t) => t.id === e?.orgUnitId), t)), k(Yt(p.find((t) => t.id === e?.positionId), i));
1771
1771
  }, [
1772
- t,
1772
+ s,
1773
1773
  c,
1774
1774
  f,
1775
1775
  p
@@ -1800,7 +1800,7 @@ function Ot({ membersById: t, modal: c, onClose: l, onSubmit: d, orgUnits: f, po
1800
1800
  /* @__PURE__ */ P(e, {
1801
1801
  label: "會員",
1802
1802
  name: "memberId",
1803
- children: /* @__PURE__ */ P(s, {
1803
+ children: /* @__PURE__ */ P(o, {
1804
1804
  disabled: c?.type === "EDIT",
1805
1805
  name: "memberId",
1806
1806
  onChange: w,
@@ -1811,7 +1811,7 @@ function Ot({ membersById: t, modal: c, onClose: l, onSubmit: d, orgUnits: f, po
1811
1811
  /* @__PURE__ */ P(e, {
1812
1812
  label: "組織",
1813
1813
  name: "orgUnitId",
1814
- children: /* @__PURE__ */ P(i, {
1814
+ children: /* @__PURE__ */ P(r, {
1815
1815
  name: "orgUnitId",
1816
1816
  onChange: E,
1817
1817
  orgUnits: f,
@@ -1822,7 +1822,7 @@ function Ot({ membersById: t, modal: c, onClose: l, onSubmit: d, orgUnits: f, po
1822
1822
  /* @__PURE__ */ P(e, {
1823
1823
  label: "職位",
1824
1824
  name: "positionId",
1825
- children: /* @__PURE__ */ P(o, {
1825
+ children: /* @__PURE__ */ P(a, {
1826
1826
  name: "positionId",
1827
1827
  onChange: k,
1828
1828
  placeholder: "選擇職位",
@@ -1860,14 +1860,14 @@ function Ot({ membersById: t, modal: c, onClose: l, onSubmit: d, orgUnits: f, po
1860
1860
  })
1861
1861
  });
1862
1862
  }
1863
- function kt({ membersById: t, modal: c, onClose: l, onSubmit: d, orgUnits: f, positions: p, saving: h }) {
1863
+ function kt({ membersById: s, modal: c, onClose: l, onSubmit: d, orgUnits: f, positions: p, saving: h }) {
1864
1864
  let [g, _] = m(Xt()), [v, y] = m(""), [b, x] = m(null), [S, w] = m(String(st)), [T, E] = m(null), [O, k] = m(null), [A, M] = m(null), [N, I] = m(Y[0]);
1865
1865
  u(() => {
1866
1866
  if (!c) return;
1867
- let e = c.record, i = Y.find((t) => t.id === e?.scopeType) ?? Y[0];
1868
- _(e?.effectiveFrom ?? Xt()), y(e?.effectiveTo ?? ""), x(Yt(e ? t.get(e.managerMemberId) : null, r)), w(String(e?.priority ?? st)), E(i.id === "MEMBER" ? Yt(e ? t.get(e.scopeId) : null, r) : null), k(i.id === "ORG_UNIT" ? Yt(f.find((t) => t.id === e?.scopeId), n) : null), M(i.id === "POSITION" ? Yt(p.find((t) => t.id === e?.scopeId), a) : null), I(i);
1867
+ let e = c.record, r = Y.find((t) => t.id === e?.scopeType) ?? Y[0];
1868
+ _(e?.effectiveFrom ?? Xt()), y(e?.effectiveTo ?? ""), x(Yt(e ? s.get(e.managerMemberId) : null, n)), w(String(e?.priority ?? st)), E(r.id === "MEMBER" ? Yt(e ? s.get(e.scopeId) : null, n) : null), k(r.id === "ORG_UNIT" ? Yt(f.find((t) => t.id === e?.scopeId), t) : null), M(r.id === "POSITION" ? Yt(p.find((t) => t.id === e?.scopeId), i) : null), I(r);
1869
1869
  }, [
1870
- t,
1870
+ s,
1871
1871
  c,
1872
1872
  f,
1873
1873
  p
@@ -1912,7 +1912,7 @@ function kt({ membersById: t, modal: c, onClose: l, onSubmit: d, orgUnits: f, po
1912
1912
  N.id === "MEMBER" ? /* @__PURE__ */ P(e, {
1913
1913
  label: "會員",
1914
1914
  name: "scopeMemberId",
1915
- children: /* @__PURE__ */ P(s, {
1915
+ children: /* @__PURE__ */ P(o, {
1916
1916
  name: "scopeMemberId",
1917
1917
  onChange: E,
1918
1918
  placeholder: "搜尋套用會員",
@@ -1922,7 +1922,7 @@ function kt({ membersById: t, modal: c, onClose: l, onSubmit: d, orgUnits: f, po
1922
1922
  N.id === "ORG_UNIT" ? /* @__PURE__ */ P(e, {
1923
1923
  label: "組織",
1924
1924
  name: "scopeOrgUnitId",
1925
- children: /* @__PURE__ */ P(i, {
1925
+ children: /* @__PURE__ */ P(r, {
1926
1926
  name: "scopeOrgUnitId",
1927
1927
  onChange: k,
1928
1928
  orgUnits: f,
@@ -1933,7 +1933,7 @@ function kt({ membersById: t, modal: c, onClose: l, onSubmit: d, orgUnits: f, po
1933
1933
  N.id === "POSITION" ? /* @__PURE__ */ P(e, {
1934
1934
  label: "職位",
1935
1935
  name: "scopePositionId",
1936
- children: /* @__PURE__ */ P(o, {
1936
+ children: /* @__PURE__ */ P(a, {
1937
1937
  name: "scopePositionId",
1938
1938
  onChange: M,
1939
1939
  placeholder: "選擇套用職位",
@@ -1944,7 +1944,7 @@ function kt({ membersById: t, modal: c, onClose: l, onSubmit: d, orgUnits: f, po
1944
1944
  /* @__PURE__ */ P(e, {
1945
1945
  label: "簽核主管",
1946
1946
  name: "managerMemberId",
1947
- children: /* @__PURE__ */ P(s, {
1947
+ children: /* @__PURE__ */ P(o, {
1948
1948
  name: "managerMemberId",
1949
1949
  onChange: x,
1950
1950
  placeholder: "搜尋簽核主管",
@@ -2021,7 +2021,7 @@ function Nt(e, t) {
2021
2021
  return e.scopeType === "MEMBER" ? `會員:${Pt(t.membersById.get(e.scopeId))}` : e.scopeType === "ORG_UNIT" ? `組織:${Ft(t.orgUnitsById.get(e.scopeId))}` : `職位:${Lt(t.positionsById.get(e.scopeId))}`;
2022
2022
  }
2023
2023
  function Pt(e) {
2024
- return e ? t(e.name, e.email, "dot") : "未知會員";
2024
+ return e ? s(e.name, e.email, "dot") : "未知會員";
2025
2025
  }
2026
2026
  function Ft(e) {
2027
2027
  return e ? `${e.name} · ${e.code}` : "未知組織";
@@ -2107,7 +2107,6 @@ function $t(e) {
2107
2107
  function en(e) {
2108
2108
  return e instanceof Error ? e.message : "讀取組織資料失敗。";
2109
2109
  }
2110
- //#endregion
2111
2110
  export { _t as t };
2112
2111
 
2113
- //# sourceMappingURL=orgs-8hje_l2n.js.map
2112
+ //# sourceMappingURL=orgs-DqxMds26.js.map