@ximatai/muyun-web-app 0.26.21 → 0.26.23

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 (39) hide show
  1. package/dist/{BusinessActivityLogView-6L75GZVc.js → BusinessActivityLogView-IWGZiPLo.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-C4iFnkE7.js → BusinessLogListDrawer-UCsg6psI.js} +85 -85
  3. package/dist/{CodeConfigurationView-D7sqbNCg.js → CodeConfigurationView-Calkazua.js} +532 -532
  4. package/dist/{ConfigurationTranslationView-ta82REbn.js → ConfigurationTranslationView-fZrlRAMy.js} +24 -24
  5. package/dist/{LoginAuditLogView-B_RQ9JIX.js → LoginAuditLogView-B6J7t__0.js} +2 -2
  6. package/dist/ModuleActionManagementView-BZ89Woex.js +755 -0
  7. package/dist/{ModuleGovernanceView-Cl6tkZ6M.js → ModuleGovernanceView-D8ONs78K.js} +1892 -1892
  8. package/dist/{RequestErrorLogView-BJDO3Scn.js → RequestErrorLogView-poMgx4_6.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-6Bs1eKbm.js +1435 -0
  10. package/dist/{RuntimeLogView-jP9ceuJD.js → RuntimeLogView-Co-Z86bt.js} +41 -41
  11. package/dist/WorkflowAdministrationView-D7QpRHDp.js +650 -0
  12. package/dist/{WorkflowConfigurationView-Dh6BKQm5.js → WorkflowConfigurationView-mSyL_-We.js} +32 -32
  13. package/dist/{WorkflowWorkbenchView-BvPNKbuV.js → WorkflowWorkbenchView-DBMh3ycN.js} +224 -224
  14. package/dist/{codeConfiguration-DhCBKbkc.js → codeConfiguration-D1zrxzoW.js} +44 -44
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +524 -550
  17. package/dist/moduleMenuWorkspace-lIVrTaOB.js +626 -0
  18. package/dist/{platform-components-i2ONyZ8r.js → platform-components-D0T03KGl.js} +2815 -2913
  19. package/dist/{platform-workbench-DhaREttd.js → platform-workbench-CobObbuz.js} +2770 -2745
  20. package/dist/record-read.js +2 -0
  21. package/dist/recordReadEntry-CxDHM44F.js +152 -0
  22. package/dist/types/consumer/recordRead.d.ts +6 -0
  23. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +8 -0
  25. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
  26. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
  27. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -0
  28. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
  29. package/dist/types/platform-components/RecordFormFields.vue.d.ts +10 -8
  30. package/dist/types/platform-components/useBusinessCodeForm.d.ts +1 -0
  31. package/dist/types/platform-workbench/useAssistantConversation.d.ts +3 -0
  32. package/dist/types/web-contracts/operation.d.ts +2 -0
  33. package/dist/{useWorkflowConfigurationContext-B_NxZFyz.js → useWorkflowConfigurationContext-BkcNPU2H.js} +8 -8
  34. package/dist/{workspaceViews-MTwNg_aQ.js → workspaceViews-BtqO8rU0.js} +355 -355
  35. package/package.json +5 -1
  36. package/dist/ModuleActionManagementView-DtGF3NC_.js +0 -755
  37. package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +0 -1435
  38. package/dist/WorkflowAdministrationView-BmNJQYtq.js +0 -650
  39. package/dist/moduleMenuWorkspace-BbVmNKZn.js +0 -626
@@ -1,6 +1,6 @@
1
- import { E as e } from "./platform-workbench-DhaREttd.js";
2
- import { An as t, Da as n, G as r, Hn as i, Ht as a, Ln as o, Mn as s, Nn as c, On as l, Xa as ee, Xt as te, Zn as ne, _n as u, a as re, c as ie, d as ae, fr as d, jr as oe, kn as se, l as ce, m as le, n as ue, nn as de, o as fe, or as pe, s as me, t as he, ur as f, wa as ge } from "./platform-components-i2ONyZ8r.js";
3
- import { t as _e } from "./useWorkflowConfigurationContext-B_NxZFyz.js";
1
+ import { E as e } from "./platform-workbench-CobObbuz.js";
2
+ import { An as t, Ar as n, Ca as r, Ea as i, G as a, Hn as o, Ht as s, Ln as c, Mn as l, Nn as ee, On as te, Xt as ne, Ya as re, Zn as ie, _n as u, a as ae, c as oe, d as se, fr as d, kn as ce, l as le, m as ue, n as de, nn as fe, o as pe, or as me, s as he, t as ge, ur as f } from "./platform-components-D0T03KGl.js";
3
+ import { t as _e } from "./useWorkflowConfigurationContext-BkcNPU2H.js";
4
4
  import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as ve, createTextVNode as y, createVNode as b, defineComponent as x, normalizeStyle as ye, onActivated as be, onBeforeUnmount as xe, onMounted as Se, onScopeDispose as Ce, openBlock as S, ref as C, renderList as w, toDisplayString as T, unref as E, watch as we, withCtx as D } from "vue";
5
5
  //#region src/platform-components/useWorkflowDesignHistory.ts
6
6
  function Te(e, t = 100) {
@@ -343,9 +343,9 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
343
343
  definitionId: {}
344
344
  },
345
345
  setup(d) {
346
- let x = ee();
346
+ let x = re();
347
347
  function Ce(e) {
348
- return le(e, x);
348
+ return ue(e, x);
349
349
  }
350
350
  let k = d, { context: A, client: j, businessRuntime: Ke, fields: M, conditionTools: qe } = _e(k.moduleAlias), N = C({
351
351
  tasks: [],
@@ -355,7 +355,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
355
355
  }), Je = m(() => (Ke.value?.actions ?? []).map((e) => ({
356
356
  value: e.actionCode,
357
357
  label: e.title ?? Ce(e.actionCode)
358
- }))), Ye = C(), Xe = ue(Ye, () => Ge + o.compact + de.columnGap), P = C(!1), F = C(!1), Ze = m(() => [
358
+ }))), Ye = C(), Xe = de(Ye, () => Ge + c.compact + fe.columnGap), P = C(!1), F = C(!1), Ze = m(() => [
359
359
  {
360
360
  key: "save",
361
361
  title: x.t("platform.screen.WorkflowConfigurationView.save-draft", "保存草稿"),
@@ -400,7 +400,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
400
400
  }
401
401
  function tt(e) {
402
402
  try {
403
- return ce(e).map((e) => ({
403
+ return le(e).map((e) => ({
404
404
  INITIATOR_SELF: x.t("platform.workflow-participant.initiator", "提交人本人"),
405
405
  USER: x.t("platform.workflow-participant.named-accounts", "指定账号"),
406
406
  ROLE: x.t("platform.workflow-participant.role-members", "角色成员"),
@@ -439,7 +439,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
439
439
  }, r = t?.convergeMode ?? "all";
440
440
  return `${n[r]}${r === "ratio" ? ` ${t?.convergeRatio ?? 100}%` : ""}`;
441
441
  }
442
- oe(() => x.t("platform.workflow-config.configuration", "流程配置"), () => K.value, () => W.value), Se(() => {
442
+ n(() => x.t("platform.workflow-config.configuration", "流程配置"), () => K.value, () => W.value), Se(() => {
443
443
  dt();
444
444
  });
445
445
  let X = 0, ct = !1, lt = !1;
@@ -496,7 +496,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
496
496
  links: []
497
497
  } : i), q.value = [], H.value = "", U.value = "", P.value = !1;
498
498
  } catch (e) {
499
- L.value = () => n(ge(e), x);
499
+ L.value = () => i(r(e), x);
500
500
  }
501
501
  }), I.value = !1);
502
502
  }
@@ -511,16 +511,16 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
511
511
  }
512
512
  async function mt() {
513
513
  B.value && z.value && await Z(async () => {
514
- B.value = await j.saveDesign(z.value.id, B.value.id, B.value.version, V.value), R.value = R.value.map((e) => e.id === B.value.id ? B.value : e), G.markSaved(), se(x.t("platform.workflow-config.draft-saved", "流程草稿已保存"));
514
+ B.value = await j.saveDesign(z.value.id, B.value.id, B.value.version, V.value), R.value = R.value.map((e) => e.id === B.value.id ? B.value : e), G.markSaved(), ce(x.t("platform.workflow-config.draft-saved", "流程草稿已保存"));
515
515
  });
516
516
  }
517
517
  async function ht() {
518
518
  K.value && await mt(), !K.value && B.value && await Z(async () => {
519
- await j.validate(z.value.id, B.value.id), se(x.t("platform.workflow-config.validated", "流程发布校验通过"));
519
+ await j.validate(z.value.id, B.value.id), ce(x.t("platform.workflow-config.validated", "流程发布校验通过"));
520
520
  });
521
521
  }
522
522
  async function gt() {
523
- if (V.value.nodes.some((e) => ["approval", "task"].includes(e.nodeType) && !ie(e.participantPolicyText))) {
523
+ if (V.value.nodes.some((e) => ["approval", "task"].includes(e.nodeType) && !oe(e.participantPolicyText))) {
524
524
  u(Error(x.t("platform.workflow-config.participants-required", "请为每个审批或业务任务节点明确配置参与人")), {
525
525
  source: "workflow-design",
526
526
  phase: "validation"
@@ -528,7 +528,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
528
528
  return;
529
529
  }
530
530
  K.value && await mt(), !K.value && z.value && B.value && (await Z(async () => {
531
- B.value = await j.publish(z.value.id, B.value.id, z.value.version, B.value.version), R.value = R.value.map((e) => e.id === B.value.id ? B.value : e), z.value = await j.view(z.value.id), G.markSaved(), F.value = !1, se(x.t("platform.workflow-config.published", "流程已发布,后续新申请使用该版本"));
531
+ B.value = await j.publish(z.value.id, B.value.id, z.value.version, B.value.version), R.value = R.value.map((e) => e.id === B.value.id ? B.value : e), z.value = await j.view(z.value.id), G.markSaved(), F.value = !1, ce(x.t("platform.workflow-config.published", "流程已发布,后续新申请使用该版本"));
532
532
  }), await dt());
533
533
  }
534
534
  async function _t() {
@@ -635,7 +635,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
635
635
  q.value = q.value.filter((e) => n.has(e)), H.value && !n.has(H.value) && (H.value = "", P.value = !1), U.value && !t.includes(U.value) && (U.value = "", P.value = !1);
636
636
  }, { flush: "sync" });
637
637
  function Ot(e) {
638
- return lt ? !1 : J.value && e() ? !0 : (l(x.t("platform.workflow-config.stale-edit", "流程已变更,本次操作未应用,请重新操作。")), !1);
638
+ return lt ? !1 : J.value && e() ? !0 : (te(x.t("platform.workflow-config.stale-edit", "流程已变更,本次操作未应用,请重新操作。")), !1);
639
639
  }
640
640
  function kt() {
641
641
  J.value && G.undo();
@@ -663,7 +663,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
663
663
  let n = Pe(V.value, t, e, `copy_${crypto.randomUUID().replaceAll("-", "")}`);
664
664
  if (V.value = n.design, n.reconfigureSelectorKeys.length) {
665
665
  let e = n.reconfigureSelectorKeys.map((e) => n.design.nodes.find((t) => t.nodeKey === e)?.title ?? e).join("、");
666
- l(x.t("platform.workflow-config.paste-reconfigure-selectors", "已粘贴,以下人工分支需要重新配置选择来源:{names}。", { names: e })), Q(n.reconfigureSelectorKeys[0]);
666
+ te(x.t("platform.workflow-config.paste-reconfigure-selectors", "已粘贴,以下人工分支需要重新配置选择来源:{names}。", { names: e })), Q(n.reconfigureSelectorKeys[0]);
667
667
  } else Dt(n.keys);
668
668
  }
669
669
  function Pt(e) {
@@ -706,15 +706,15 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
706
706
  });
707
707
  }
708
708
  }
709
- return (e, t) => (S(), _("section", Fe, [b(E(r), { title: z.value?.title ?? E(x).t("platform.workflow-config.configuration", "流程配置") }, ve({
710
- actions: D(() => [b(E(te), {
709
+ return (e, t) => (S(), _("section", Fe, [b(E(a), { title: z.value?.title ?? E(x).t("platform.workflow-config.configuration", "流程配置") }, ve({
710
+ actions: D(() => [b(E(ne), {
711
711
  class: "configuration-action-bar",
712
712
  actions: Ze.value,
713
713
  onAction: t[0] ||= (e) => et(e.key)
714
714
  }, null, 8, ["actions"])]),
715
715
  default: D(() => [
716
- I.value ? (S(), h(E(c), { key: 0 })) : g("v-if", !0),
717
- L.value ? (S(), h(E(s), {
716
+ I.value ? (S(), h(E(ee), { key: 0 })) : g("v-if", !0),
717
+ L.value ? (S(), h(E(l), {
718
718
  key: 1,
719
719
  message: L.value()
720
720
  }, null, 8, ["message"])) : g("v-if", !0),
@@ -730,8 +730,8 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
730
730
  ref_key: "designHost",
731
731
  ref: Ye,
732
732
  class: "configuration-design",
733
- style: ye({ gap: `${E(de).columnGap}px` })
734
- }, [(S(), h(E(ae), {
733
+ style: ye({ gap: `${E(fe).columnGap}px` })
734
+ }, [(S(), h(E(se), {
735
735
  key: B.value?.id,
736
736
  nodes: V.value.nodes,
737
737
  routes: V.value.links,
@@ -756,7 +756,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
756
756
  onSelectRoute: vt,
757
757
  onLayoutChange: yt
758
758
  }, {
759
- actions: D(() => [b(E(i), {
759
+ actions: D(() => [b(E(o), {
760
760
  items: Qe.value,
761
761
  align: "start",
762
762
  onSelect: $e
@@ -770,7 +770,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
770
770
  }, 8, ["disabled"])]),
771
771
  _: 1
772
772
  }, 8, ["items"])]),
773
- navigation: D(() => [b(E(pe), {
773
+ navigation: D(() => [b(E(me), {
774
774
  class: "configuration-route-locator",
775
775
  value: U.value || void 0,
776
776
  placeholder: E(x).t("platform.screen.WorkflowConfigurationView.select-link", "选择连线"),
@@ -795,7 +795,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
795
795
  "selected-route-key",
796
796
  "layout-json",
797
797
  "editable"
798
- ])), b(E(he), {
798
+ ])), b(E(ge), {
799
799
  docked: !E(Xe),
800
800
  width: "compact",
801
801
  open: P.value,
@@ -825,7 +825,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
825
825
  default: D(() => [y(T(E(x).t("platform.screen.WorkflowConfigurationView.finish-configuration", "完成配置")), 1)]),
826
826
  _: 1
827
827
  }, 8, ["disabled"])])]),
828
- default: D(() => [b(E(re), {
828
+ default: D(() => [b(E(ae), {
829
829
  "condition-tools": E(qe),
830
830
  design: V.value,
831
831
  "node-key": H.value,
@@ -862,7 +862,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
862
862
  _: 2
863
863
  }, [z.value ? {
864
864
  name: "status",
865
- fn: D(() => [v("div", Ie, [b(E(pe), {
865
+ fn: D(() => [v("div", Ie, [b(E(me), {
866
866
  class: "configuration-version-selector",
867
867
  value: B.value?.id,
868
868
  options: R.value.map((e) => ({
@@ -878,13 +878,13 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
878
878
  "value",
879
879
  "options",
880
880
  "disabled"
881
- ]), E(K) ? (S(), h(E(ne), {
881
+ ]), E(K) ? (S(), h(E(ie), {
882
882
  key: 0,
883
883
  title: E(x).t("platform.screen.WorkflowConfigurationView.the-draft-has-unsaved-changes", "草稿有未保存的修改")
884
884
  }, {
885
885
  default: D(() => [v("span", Le, T(E(x).t("platform.workflow-config.unsaved", "未保存")), 1)]),
886
886
  _: 1
887
- }, 8, ["title"])) : nt.value ? (S(), h(E(ne), {
887
+ }, 8, ["title"])) : nt.value ? (S(), h(E(ie), {
888
888
  key: 1,
889
889
  title: E(x).t("platform.screen.WorkflowConfigurationView.this-version-is-frozen-create-a-new", "此版本已冻结。修改流程请创建新版本;已有实例继续使用原版本。")
890
890
  }, {
@@ -892,7 +892,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
892
892
  _: 1
893
893
  }, 8, ["title"])) : g("v-if", !0)])]),
894
894
  key: "0"
895
- } : void 0]), 1032, ["title"]), b(E(a), {
895
+ } : void 0]), 1032, ["title"]), b(E(s), {
896
896
  width: "extraWide",
897
897
  open: F.value,
898
898
  title: E(x).t("platform.screen.WorkflowConfigurationView.confirm-workflow-publication", "确认发布流程"),
@@ -915,7 +915,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
915
915
  v("ul", Be, [(S(!0), _(p, null, w(V.value.nodes.filter((e) => ["approval", "task"].includes(e.nodeType)), (e) => (S(), _("li", { key: e.nodeKey }, [
916
916
  v("strong", null, T(e.title), 1),
917
917
  y(" · " + T(tt(e.participantPolicyText)) + " ", 1),
918
- v("details", null, [v("summary", null, T(E(x).t("platform.screen.WorkflowConfigurationView.view-complete-participant-rules", "查看完整人员规则")), 1), b(E(me), {
918
+ v("details", null, [v("summary", null, T(E(x).t("platform.screen.WorkflowConfigurationView.view-complete-participant-rules", "查看完整人员规则")), 1), b(E(he), {
919
919
  value: e.participantPolicyText,
920
920
  http: E(A).http,
921
921
  fields: E(M),
@@ -928,7 +928,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
928
928
  e.nodeType === "task" ? (S(), _("details", Ve, [
929
929
  v("summary", null, T(E(x).t("platform.screen.WorkflowConfigurationView.view-business-task-checks-and-instructions", "查看业务任务检查与办理指引")), 1),
930
930
  e.taskDefinitionId ? (S(), _("p", He, T(E(x).t("platform.workflow-config.referenced-task", "引用任务")) + ":" + T(N.value.tasks.find((t) => t.id === e.taskDefinitionId)?.title ?? e.taskDefinitionId), 1)) : g("v-if", !0),
931
- b(E(fe), {
931
+ b(E(pe), {
932
932
  "condition-tools": E(qe),
933
933
  value: e.nodeConfigText,
934
934
  "module-alias": d.moduleAlias,
@@ -961,7 +961,7 @@ var Fe = { class: "workflow-configuration" }, Ie = { class: "configuration-statu
961
961
  v("ul", null, [(S(!0), _(p, null, w(V.value.links.filter((t) => t.sourceNodeKey === e.nodeKey), (e) => (S(), _("li", { key: e.routeKey }, T(e.title ?? E(x).t("platform.workflow-config.exit", "出口")) + ":" + T(e.defaultRoute ? E(x).t("platform.workflow-config.fallback-exit", "默认兜底") : e.conditionExpression || E(x).t("platform.workflow-config.unconditional", "无条件(始终命中)")), 1))), 128))]),
962
962
  v("p", null, T(E(x).t("platform.workflow-config.convergence-counting", "汇聚:{summary},只计算有效出口。", { summary: st(e) })), 1)
963
963
  ]))), 128)),
964
- v("details", null, [v("summary", null, T(E(x).t("platform.screen.WorkflowConfigurationView.view-published-workflow", "查看发布流程图")), 1), b(E(ae), {
964
+ v("details", null, [v("summary", null, T(E(x).t("platform.screen.WorkflowConfigurationView.view-published-workflow", "查看发布流程图")), 1), b(E(se), {
965
965
  presentation: "detail",
966
966
  nodes: V.value.nodes,
967
967
  routes: V.value.links,