@byteluck-fe/runtime-desktop-controls 2.0.21 → 2.0.22

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.
@@ -29902,7 +29902,7 @@ function Vc(e, t, n, a, o, r) {
29902
29902
  query: {
29903
29903
  appId: R.appid,
29904
29904
  dataUid: R.uId,
29905
- formKey: s(l)?.externalParams.data.form_key,
29905
+ formKey: R.formKey,
29906
29906
  type: A
29907
29907
  }
29908
29908
  }), E = {
@@ -29974,52 +29974,60 @@ function Vc(e, t, n, a, o, r) {
29974
29974
  P(!1);
29975
29975
  return;
29976
29976
  }
29977
- if (!await O(
29977
+ if (R.formKey = x, !await O(
29978
29978
  pt.view,
29979
29979
  R
29980
29980
  )) {
29981
29981
  P(!1);
29982
29982
  return;
29983
29983
  }
29984
- const j = JSON.stringify(U), G = V && !D ? f.resolve({
29984
+ const j = JSON.stringify(U), G = {
29985
29985
  name: "process",
29986
29986
  params: H,
29987
29987
  query: {
29988
29988
  additional_query: j
29989
29989
  }
29990
- }).href : f.resolve({
29990
+ }, K = {
29991
29991
  name: "processForm",
29992
29992
  params: H,
29993
29993
  query: {
29994
29994
  type: pt.view,
29995
29995
  additional_query: j
29996
29996
  }
29997
- }).href;
29998
- if (G) {
29997
+ };
29998
+ process.env.VUE_APP_CODE_OUT === "codeout" && V && (Object.assign(G.query, {
29999
+ process_instance_id: E
30000
+ }), Object.assign(G.params, {
30001
+ formId: x
30002
+ }));
30003
+ const ee = f.resolve(
30004
+ V && !D ? G : K
30005
+ ).href;
30006
+ if (ee) {
29999
30007
  if (A.openType === "window")
30000
- tt.openWindow(G, "_blank");
30008
+ tt.openWindow(ee, "_blank");
30001
30009
  else if (A.openType === "tab" && window.multipleTabs !== void 0) {
30002
- const K = R.appid, ee = s(l)?.externalParams.url.sappId;
30003
- let Z = {}, te = "";
30004
- V && !D ? (te = `${c.value}/sapp/${K}/${ee}/box/process/${E}`, Z = {
30010
+ const Z = R.appid, te = s(l)?.externalParams.url.sappId;
30011
+ let ne = {}, re = "";
30012
+ V && !D ? (re = `${c.value}/sapp/${Z}/${te}/box/process/${E}`, ne = {
30005
30013
  additional_query: j
30006
- }) : (te = `${c.value}/sapp/${K}/${ee}/box/processForm/${x}/${s(
30014
+ }) : (re = `${c.value}/sapp/${Z}/${te}/box/processForm/${x}/${s(
30007
30015
  R.uId
30008
- )}`, Z = {
30016
+ )}`, ne = {
30009
30017
  type: pt.view,
30010
30018
  additional_query: j
30011
30019
  }), window.multipleTabs.createMultipleTab(
30012
30020
  M("LRT.common.see", await vi(x, V && !D ? void 0 : pt.view, s(l)?.externalParams?.formType)),
30013
30021
  V && !D ? E : x,
30014
- te,
30022
+ re,
30015
30023
  V && !D ? void 0 : pt.view
30016
- ), i.emit("layout-change-tab", { key: te, query: Z });
30024
+ ), i.emit("layout-change-tab", { key: re, query: ne });
30017
30025
  } else
30018
30026
  s(l)?.emit("custom:showIframeModal", {
30019
30027
  options: {
30020
30028
  engine: l,
30021
- url: G,
30022
- update: (K) => {
30029
+ url: ee,
30030
+ update: (Z) => {
30023
30031
  }
30024
30032
  }
30025
30033
  });
@@ -30047,7 +30055,7 @@ function Vc(e, t, n, a, o, r) {
30047
30055
  P(!1);
30048
30056
  return;
30049
30057
  }
30050
- if (!await O(
30058
+ if (R.formKey = D, !await O(
30051
30059
  pt.edit,
30052
30060
  R
30053
30061
  )) {
@@ -39469,7 +39477,7 @@ class ZI extends tg {
39469
39477
  return i;
39470
39478
  });
39471
39479
  let a = "";
39472
- return n && (a = n.props.caption), a = this.engine?.externalParams?.data?.content?.i18n?.local[this.engine?.externalParams?.formKey]?.name ?? this.engine?.externalParams?.data?.name, a;
39480
+ return n && (a = n.props.caption), a = this.engine?.externalParams?.data?.content?.i18n?.local?.[this.engine?.externalParams?.formKey]?.name ?? this.engine?.externalParams?.data?.name, a;
39473
39481
  };
39474
39482
  getTitleOfDefault = (t, n, a) => {
39475
39483
  const o = this.engine.externalParams.formType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-desktop-controls",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-desktop-controls.js",