@rytass/bpm-core-react 0.23.0 → 0.24.0

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 (128) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -0
  3. package/dist/chunks/{FormBuilderView-bm8P55hp.cjs → FormBuilderView-Bg9ftYz-.cjs} +2 -2
  4. package/dist/chunks/{FormBuilderView-bm8P55hp.cjs.map → FormBuilderView-Bg9ftYz-.cjs.map} +1 -1
  5. package/dist/chunks/{FormBuilderView-D_bN9gzT.js → FormBuilderView-CBvdcg_t.js} +2 -2
  6. package/dist/chunks/{FormBuilderView-D_bN9gzT.js.map → FormBuilderView-CBvdcg_t.js.map} +1 -1
  7. package/dist/chunks/FormRendererView-D-p6GDQB.cjs +6 -0
  8. package/dist/chunks/FormRendererView-D-p6GDQB.cjs.map +1 -0
  9. package/dist/chunks/FormRendererView-DHXmekC3.js +1319 -0
  10. package/dist/chunks/FormRendererView-DHXmekC3.js.map +1 -0
  11. package/dist/chunks/{approval-instance-list-page-Cv5I1YPX.cjs → approval-instance-list-page-BqkG9jiR.cjs} +2 -2
  12. package/dist/chunks/{approval-instance-list-page-Cv5I1YPX.cjs.map → approval-instance-list-page-BqkG9jiR.cjs.map} +1 -1
  13. package/dist/chunks/{approval-instance-list-page-BI5fIXc-.js → approval-instance-list-page-CsSpIN4C.js} +2 -2
  14. package/dist/chunks/{approval-instance-list-page-BI5fIXc-.js.map → approval-instance-list-page-CsSpIN4C.js.map} +1 -1
  15. package/dist/chunks/{compose-CdKVQfjB.cjs → compose-B43jtdyL.cjs} +2 -2
  16. package/dist/chunks/{compose-CdKVQfjB.cjs.map → compose-B43jtdyL.cjs.map} +1 -1
  17. package/dist/chunks/{compose-N9657E5u.js → compose-C7yS6bJm.js} +5 -5
  18. package/dist/chunks/{compose-N9657E5u.js.map → compose-C7yS6bJm.js.map} +1 -1
  19. package/dist/chunks/{dashboard-page-BoqNhjT_.js → dashboard-page-DBJCsPya.js} +2 -2
  20. package/dist/chunks/{dashboard-page-BoqNhjT_.js.map → dashboard-page-DBJCsPya.js.map} +1 -1
  21. package/dist/chunks/{dashboard-page-D7YJ3udk.cjs → dashboard-page-lqlLELKs.cjs} +2 -2
  22. package/dist/chunks/{dashboard-page-D7YJ3udk.cjs.map → dashboard-page-lqlLELKs.cjs.map} +1 -1
  23. package/dist/chunks/{designer-CKwG_vM5.js → designer-B9Ut4xze.js} +1736 -1611
  24. package/dist/chunks/designer-B9Ut4xze.js.map +1 -0
  25. package/dist/chunks/designer-eXw7R9ug.cjs +69 -0
  26. package/dist/chunks/designer-eXw7R9ug.cjs.map +1 -0
  27. package/dist/chunks/{detail-fW0vJudE.js → detail-BB_uYaoM.js} +7 -6
  28. package/dist/chunks/detail-BB_uYaoM.js.map +1 -0
  29. package/dist/chunks/detail-DN8pEzUJ.cjs +5 -0
  30. package/dist/chunks/detail-DN8pEzUJ.cjs.map +1 -0
  31. package/dist/chunks/member-profile-resolution-CJlgVdTR.js +44 -0
  32. package/dist/chunks/member-profile-resolution-CJlgVdTR.js.map +1 -0
  33. package/dist/chunks/member-profile-resolution-DiH-P-Vh.cjs +2 -0
  34. package/dist/chunks/member-profile-resolution-DiH-P-Vh.cjs.map +1 -0
  35. package/dist/chunks/{providers-CQWekD7_.js → providers-D35lBOTd.js} +2 -2
  36. package/dist/chunks/{providers-CQWekD7_.js.map → providers-D35lBOTd.js.map} +1 -1
  37. package/dist/chunks/{providers-VUOh6i0i.cjs → providers-Dz4Wqxr6.cjs} +2 -2
  38. package/dist/chunks/{providers-VUOh6i0i.cjs.map → providers-Dz4Wqxr6.cjs.map} +1 -1
  39. package/dist/chunks/{routes-config-C1j_vFKo.cjs → routes-config-BWjZDAU3.cjs} +2 -2
  40. package/dist/chunks/{routes-config-C1j_vFKo.cjs.map → routes-config-BWjZDAU3.cjs.map} +1 -1
  41. package/dist/chunks/{routes-config-BcNaWJWJ.js → routes-config-DjEOE9eP.js} +3 -2
  42. package/dist/chunks/{routes-config-BcNaWJWJ.js.map → routes-config-DjEOE9eP.js.map} +1 -1
  43. package/dist/chunks/users-C_Dtw_sR.cjs +2 -0
  44. package/dist/chunks/users-C_Dtw_sR.cjs.map +1 -0
  45. package/dist/chunks/users-wgM3TqU3.js +513 -0
  46. package/dist/chunks/users-wgM3TqU3.js.map +1 -0
  47. package/dist/index.cjs +1 -1
  48. package/dist/index.js +4 -4
  49. package/dist/lib/routes-config.d.cts +2 -0
  50. package/dist/lib/routes-config.d.ts +2 -0
  51. package/dist/next/index.cjs +1 -1
  52. package/dist/next/index.js +2 -2
  53. package/dist/pages/admin/stuck-instances/index.cjs +2 -0
  54. package/dist/pages/admin/stuck-instances/index.cjs.map +1 -0
  55. package/dist/pages/admin/stuck-instances/index.d.cts +4 -0
  56. package/dist/pages/admin/stuck-instances/index.d.ts +4 -0
  57. package/dist/pages/admin/stuck-instances/index.js +13 -0
  58. package/dist/pages/admin/stuck-instances/index.js.map +1 -0
  59. package/dist/pages/admin/users/index.cjs +1 -1
  60. package/dist/pages/admin/users/index.js +1 -1
  61. package/dist/pages/instances/detail/index.cjs +1 -1
  62. package/dist/pages/instances/detail/index.js +1 -1
  63. package/dist/pages/templates/compose/index.cjs +1 -1
  64. package/dist/pages/templates/compose/index.js +1 -1
  65. package/dist/pages/templates/designer/index.cjs +1 -1
  66. package/dist/pages/templates/designer/index.js +1 -1
  67. package/dist/views/admin/index.cjs +1 -1
  68. package/dist/views/admin/index.d.cts +1 -0
  69. package/dist/views/admin/index.d.ts +1 -0
  70. package/dist/views/admin/index.js +3 -2
  71. package/dist/views/admin/stuck-instances/AdminStuckInstancesView.d.cts +10 -0
  72. package/dist/views/admin/stuck-instances/AdminStuckInstancesView.d.ts +10 -0
  73. package/dist/views/admin/stuck-instances/StuckInstanceCancelModal.d.cts +14 -0
  74. package/dist/views/admin/stuck-instances/StuckInstanceCancelModal.d.ts +14 -0
  75. package/dist/views/admin/stuck-instances/index.cjs +2 -0
  76. package/dist/views/admin/stuck-instances/index.cjs.map +1 -0
  77. package/dist/views/admin/stuck-instances/index.d.cts +2 -0
  78. package/dist/views/admin/stuck-instances/index.d.ts +2 -0
  79. package/dist/views/admin/stuck-instances/index.js +237 -0
  80. package/dist/views/admin/stuck-instances/index.js.map +1 -0
  81. package/dist/views/admin/users/index.cjs +1 -1
  82. package/dist/views/admin/users/index.js +1 -1
  83. package/dist/views/cc/index.cjs +1 -1
  84. package/dist/views/cc/index.js +1 -1
  85. package/dist/views/dashboard/index.cjs +1 -1
  86. package/dist/views/dashboard/index.js +1 -1
  87. package/dist/views/forms/builder/index.cjs +1 -1
  88. package/dist/views/forms/builder/index.js +1 -1
  89. package/dist/views/forms/renderer/index.cjs +1 -1
  90. package/dist/views/forms/renderer/index.js +1 -1
  91. package/dist/views/inbox/index.cjs +1 -1
  92. package/dist/views/inbox/index.js +1 -1
  93. package/dist/views/instances/detail/index.cjs +1 -1
  94. package/dist/views/instances/detail/index.js +1 -1
  95. package/dist/views/instances/new/index.cjs +1 -1
  96. package/dist/views/instances/new/index.js +4 -4
  97. package/dist/views/instances/new/index.js.map +1 -1
  98. package/dist/views/search/index.cjs +1 -1
  99. package/dist/views/search/index.js +1 -1
  100. package/dist/views/sent/index.cjs +1 -1
  101. package/dist/views/sent/index.js +1 -1
  102. package/dist/views/templates/compose/index.cjs +1 -1
  103. package/dist/views/templates/compose/index.js +1 -1
  104. package/dist/views/templates/designer/approver-resolver-model.d.cts +31 -0
  105. package/dist/views/templates/designer/approver-resolver-model.d.ts +31 -0
  106. package/dist/views/templates/designer/index.cjs +1 -1
  107. package/dist/views/templates/designer/index.js +1 -1
  108. package/dist/views/templates/designer/node-actor-resolver-options.d.cts +30 -3
  109. package/dist/views/templates/designer/node-actor-resolver-options.d.ts +30 -3
  110. package/dist/views/templates/index.cjs +1 -1
  111. package/dist/views/templates/index.js +1 -1
  112. package/dist/views/templates/versions/index.cjs +1 -1
  113. package/dist/views/templates/versions/index.js +1 -1
  114. package/package.json +23 -3
  115. package/dist/chunks/FormRendererView-BlQgJOkI.cjs +0 -6
  116. package/dist/chunks/FormRendererView-BlQgJOkI.cjs.map +0 -1
  117. package/dist/chunks/FormRendererView-CemHvfAT.js +0 -1359
  118. package/dist/chunks/FormRendererView-CemHvfAT.js.map +0 -1
  119. package/dist/chunks/designer-CKwG_vM5.js.map +0 -1
  120. package/dist/chunks/designer-JPs7EijM.cjs +0 -69
  121. package/dist/chunks/designer-JPs7EijM.cjs.map +0 -1
  122. package/dist/chunks/detail-Dqu0K9QM.cjs +0 -5
  123. package/dist/chunks/detail-Dqu0K9QM.cjs.map +0 -1
  124. package/dist/chunks/detail-fW0vJudE.js.map +0 -1
  125. package/dist/chunks/users-BBtiZ9QQ.js +0 -486
  126. package/dist/chunks/users-BBtiZ9QQ.js.map +0 -1
  127. package/dist/chunks/users-EqSzDhuj.cjs +0 -2
  128. package/dist/chunks/users-EqSzDhuj.cjs.map +0 -1
@@ -4,7 +4,7 @@ import { t as e } from "./bpm-form-field-9B-Det0u.js";
4
4
  import { t } from "./format-date-time-B0LdmWg4.js";
5
5
  import { n } from "./auth-provider-C2b-5mGt.js";
6
6
  import { t as r } from "./use-bpm-member-BPzcNU1g.js";
7
- import { l as i, n as a, o, t as s } from "./FormRendererView-CemHvfAT.js";
7
+ import { i, n as a, s as o, t as s } from "./FormRendererView-DHXmekC3.js";
8
8
  import { a as c, n as l, o as u, r as d, t as f } from "./task-decision-3d17ZvZE.js";
9
9
  import { t as p } from "./format-member-label-C73FuP-d.js";
10
10
  import { a as m, c as h, d as g, f as ee, h as te, i as ne, l as re, m as ie, o as ae, p as oe, r as _, s as se, t as v, u as ce } from "./instance-error-message-BKt07-Bo.js";
@@ -375,7 +375,7 @@ function Xt(e) {
375
375
  return t === -1 ? e.length : t;
376
376
  }
377
377
  function Zt(e) {
378
- return e.eventType === "INSTANCE_STARTED" || e.eventType === "INSTANCE_CANCELLED" || e.eventType === "INSTANCE_EXPIRED" || e.eventType === "INSTANCE_RESUBMITTED" || e.eventType === "TASK_DECIDED" || e.eventType === "SLA_TRIGGERED" || e.eventType === "TASK_CANDIDATE_ACTIVATED" || e.eventType === "TASK_REASSIGNED" || Qt(e) || tn(e.eventType, on(e));
378
+ return e.eventType === "INSTANCE_STARTED" || e.eventType === "INSTANCE_CANCELLED" || e.eventType === "INSTANCE_EXPIRED" || e.eventType === "INSTANCE_RESUBMITTED" || e.eventType === "TASK_DECIDED" || e.eventType === "SLA_TRIGGERED" || e.eventType === "TASK_CANDIDATE_ACTIVATED" || e.eventType === "TASK_REASSIGNED" || e.eventType === "ADVANCE_FAILED" || Qt(e) || tn(e.eventType, on(e));
379
379
  }
380
380
  function Qt(e) {
381
381
  return e.eventType === "TASK_CREATED" && H(on(e), "sequentialCandidateMemberIds").length > 0;
@@ -413,7 +413,8 @@ function rn(e) {
413
413
  }
414
414
  function an(e, t) {
415
415
  if (e === "INSTANCE_STARTED") return "案件已發起";
416
- if (e === "INSTANCE_CANCELLED") return "案件已取消";
416
+ if (e === "INSTANCE_CANCELLED") return t.cancelledByAdministrator === !0 ? `管理員撤銷:${V(t, "comment") ?? "-"}` : "案件已取消";
417
+ if (e === "ADVANCE_FAILED") return `${V(t, "automatic") === "SLA_AUTO_APPROVE" ? "系統逾時自動同意失敗" : "往下一關失敗"}:${V(t, "message") ?? "-"}`;
417
418
  if (e === "INSTANCE_EXPIRED") return "案件逾期,已由系統終止";
418
419
  if (e === "INSTANCE_RESUBMITTED") return "申請人重新送出";
419
420
  if (e === "TOKEN_CREATED") return "流程路徑已建立";
@@ -2092,7 +2093,7 @@ function jr({ instanceId: a, showAttachments: s = !0, showForm: l = !0, showHist
2092
2093
  }
2093
2094
  };
2094
2095
  });
2095
- }, []), G = b(() => Ht(M, y), [y, M]), K = b(() => G && C ? C.workflowSnapshot.nodes.find((e) => e.id === G.nodeId) ?? null : null, [G, C]), Ft = K?.type === "userTask" && K.data.returnBehavior.allowReturn, It = K?.type === "userTask" && K.data.allowReject !== !1, Lt = K?.type === "userTask" && K.data.allowTransfer !== !1, zt = K?.type === "userTask" && K.data.allowAddSigner, Bt = !(!C || C.initiatorMemberId !== y || C.state !== "RUNNING" && C.state !== "RETURNED"), Vt = !!(C && C.initiatorMemberId === y && C.state === "RETURNED"), J = b(() => G && !G.isAdhoc && K?.type === "userTask" && Ke(K).size > 0 ? K : null, [G, K]), Ut = J ? G?.id ?? null : null, Wt = o(), [Gt, Kt] = x({}), [qt, Jt] = x({}), [Y, Yt] = x(!1);
2096
+ }, []), G = b(() => Ht(M, y), [y, M]), K = b(() => G && C ? C.workflowSnapshot.nodes.find((e) => e.id === G.nodeId) ?? null : null, [G, C]), Ft = K?.type === "userTask" && K.data.returnBehavior.allowReturn, It = K?.type === "userTask" && K.data.allowReject !== !1, Lt = K?.type === "userTask" && K.data.allowTransfer !== !1, zt = K?.type === "userTask" && K.data.allowAddSigner, Bt = !(!C || C.initiatorMemberId !== y || C.state !== "RUNNING" && C.state !== "RETURNED"), Vt = !!(C && C.initiatorMemberId === y && C.state === "RETURNED"), J = b(() => G && !G.isAdhoc && K?.type === "userTask" && Ke(K).size > 0 ? K : null, [G, K]), Ut = J ? G?.id ?? null : null, Wt = i(), [Gt, Kt] = x({}), [qt, Jt] = x({}), [Y, Yt] = x(!1);
2096
2097
  de(() => {
2097
2098
  Kt({}), Jt({}), Yt(!1);
2098
2099
  }, [Ut]);
@@ -2255,7 +2256,7 @@ function jr({ instanceId: a, showAttachments: s = !0, showForm: l = !0, showHist
2255
2256
  async function Sn() {
2256
2257
  if (!y || !C || !Vt) return;
2257
2258
  F(!0), N(null), _t({});
2258
- let e = i(Object.values(St));
2259
+ let e = o(Object.values(St));
2259
2260
  if (e) {
2260
2261
  N(e), F(!1);
2261
2262
  return;
@@ -2709,4 +2710,4 @@ function Br({ data: e }) {
2709
2710
  }
2710
2711
  export { qn as a, Zn as i, ur as n, In as o, or as r, Pn as s, jr as t };
2711
2712
 
2712
- //# sourceMappingURL=detail-fW0vJudE.js.map
2713
+ //# sourceMappingURL=detail-BB_uYaoM.js.map