@ibiz-template/runtime 0.7.41-alpha.138 → 0.7.41-alpha.139
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.
- package/dist/index.esm.js +253 -254
- package/dist/index.system.min.js +1 -1
- package/out/de-logic/de-logic-context.d.ts +14 -4
- package/out/de-logic/de-logic-context.d.ts.map +1 -1
- package/out/de-logic/de-logic-context.js +4 -3
- package/out/de-logic/de-logic.d.ts.map +1 -1
- package/out/de-logic/de-logic.js +4 -7
- package/out/de-logic/index.js +1 -1
- package/out/interface/api/common/i-api-de-logic-params.d.ts +7 -0
- package/out/interface/api/common/i-api-de-logic-params.d.ts.map +1 -1
- package/out/interface/api/common/i-api-logic-params.d.ts +1 -7
- package/out/interface/api/common/i-api-logic-params.d.ts.map +1 -1
- package/out/interface/api/common/i-api-ui-logic-params.d.ts +7 -0
- package/out/interface/api/common/i-api-ui-logic-params.d.ts.map +1 -1
- package/out/interface/de-logic/i-de-logic-context.d.ts +10 -0
- package/out/interface/de-logic/i-de-logic-context.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/de-logic/de-logic-context.ts +17 -4
- package/src/de-logic/de-logic.ts +4 -7
- package/src/de-logic/index.ts +1 -1
- package/src/interface/api/common/i-api-de-logic-params.ts +9 -1
- package/src/interface/api/common/i-api-logic-params.ts +1 -8
- package/src/interface/api/common/i-api-ui-logic-params.ts +8 -0
- package/src/interface/de-logic/i-de-logic-context.ts +8 -1
package/dist/index.esm.js
CHANGED
|
@@ -16821,25 +16821,25 @@ var require_html2canvas = __commonJS({
|
|
|
16821
16821
|
if (isStyleElement(node)) {
|
|
16822
16822
|
return this.createStyleClone(node);
|
|
16823
16823
|
}
|
|
16824
|
-
var
|
|
16825
|
-
if (isImageElement(
|
|
16824
|
+
var clone62 = node.cloneNode(false);
|
|
16825
|
+
if (isImageElement(clone62)) {
|
|
16826
16826
|
if (isImageElement(node) && node.currentSrc && node.currentSrc !== node.src) {
|
|
16827
|
-
|
|
16828
|
-
|
|
16827
|
+
clone62.src = node.currentSrc;
|
|
16828
|
+
clone62.srcset = "";
|
|
16829
16829
|
}
|
|
16830
|
-
if (
|
|
16831
|
-
|
|
16830
|
+
if (clone62.loading === "lazy") {
|
|
16831
|
+
clone62.loading = "eager";
|
|
16832
16832
|
}
|
|
16833
16833
|
}
|
|
16834
|
-
if (isCustomElement(
|
|
16835
|
-
return this.createCustomElementClone(
|
|
16834
|
+
if (isCustomElement(clone62)) {
|
|
16835
|
+
return this.createCustomElementClone(clone62);
|
|
16836
16836
|
}
|
|
16837
|
-
return
|
|
16837
|
+
return clone62;
|
|
16838
16838
|
};
|
|
16839
16839
|
DocumentCloner2.prototype.createCustomElementClone = function(node) {
|
|
16840
|
-
var
|
|
16841
|
-
copyCSSStyles(node.style,
|
|
16842
|
-
return
|
|
16840
|
+
var clone62 = document.createElement("html2canvascustomelement");
|
|
16841
|
+
copyCSSStyles(node.style, clone62);
|
|
16842
|
+
return clone62;
|
|
16843
16843
|
};
|
|
16844
16844
|
DocumentCloner2.prototype.createStyleClone = function(node) {
|
|
16845
16845
|
try {
|
|
@@ -16921,25 +16921,25 @@ var require_html2canvas = __commonJS({
|
|
|
16921
16921
|
blankCanvas.height = video.offsetHeight;
|
|
16922
16922
|
return blankCanvas;
|
|
16923
16923
|
};
|
|
16924
|
-
DocumentCloner2.prototype.appendChildNode = function(
|
|
16924
|
+
DocumentCloner2.prototype.appendChildNode = function(clone62, child, copyStyles) {
|
|
16925
16925
|
if (!isElementNode(child) || !isScriptElement(child) && !child.hasAttribute(IGNORE_ATTRIBUTE) && (typeof this.options.ignoreElements !== "function" || !this.options.ignoreElements(child))) {
|
|
16926
16926
|
if (!this.options.copyStyles || !isElementNode(child) || !isStyleElement(child)) {
|
|
16927
|
-
|
|
16927
|
+
clone62.appendChild(this.cloneNode(child, copyStyles));
|
|
16928
16928
|
}
|
|
16929
16929
|
}
|
|
16930
16930
|
};
|
|
16931
|
-
DocumentCloner2.prototype.cloneChildNodes = function(node,
|
|
16931
|
+
DocumentCloner2.prototype.cloneChildNodes = function(node, clone62, copyStyles) {
|
|
16932
16932
|
var _this = this;
|
|
16933
16933
|
for (var child = node.shadowRoot ? node.shadowRoot.firstChild : node.firstChild; child; child = child.nextSibling) {
|
|
16934
16934
|
if (isElementNode(child) && isSlotElement(child) && typeof child.assignedNodes === "function") {
|
|
16935
16935
|
var assignedNodes = child.assignedNodes();
|
|
16936
16936
|
if (assignedNodes.length) {
|
|
16937
16937
|
assignedNodes.forEach(function(assignedNode) {
|
|
16938
|
-
return _this.appendChildNode(
|
|
16938
|
+
return _this.appendChildNode(clone62, assignedNode, copyStyles);
|
|
16939
16939
|
});
|
|
16940
16940
|
}
|
|
16941
16941
|
} else {
|
|
16942
|
-
this.appendChildNode(
|
|
16942
|
+
this.appendChildNode(clone62, child, copyStyles);
|
|
16943
16943
|
}
|
|
16944
16944
|
}
|
|
16945
16945
|
};
|
|
@@ -16952,53 +16952,53 @@ var require_html2canvas = __commonJS({
|
|
|
16952
16952
|
}
|
|
16953
16953
|
var window2 = node.ownerDocument.defaultView;
|
|
16954
16954
|
if (window2 && isElementNode(node) && (isHTMLElementNode(node) || isSVGElementNode(node))) {
|
|
16955
|
-
var
|
|
16956
|
-
|
|
16955
|
+
var clone62 = this.createElementClone(node);
|
|
16956
|
+
clone62.style.transitionProperty = "none";
|
|
16957
16957
|
var style = window2.getComputedStyle(node);
|
|
16958
16958
|
var styleBefore = window2.getComputedStyle(node, ":before");
|
|
16959
16959
|
var styleAfter = window2.getComputedStyle(node, ":after");
|
|
16960
|
-
if (this.referenceElement === node && isHTMLElementNode(
|
|
16961
|
-
this.clonedReferenceElement =
|
|
16960
|
+
if (this.referenceElement === node && isHTMLElementNode(clone62)) {
|
|
16961
|
+
this.clonedReferenceElement = clone62;
|
|
16962
16962
|
}
|
|
16963
|
-
if (isBodyElement(
|
|
16964
|
-
createPseudoHideStyles(
|
|
16963
|
+
if (isBodyElement(clone62)) {
|
|
16964
|
+
createPseudoHideStyles(clone62);
|
|
16965
16965
|
}
|
|
16966
16966
|
var counters = this.counters.parse(new CSSParsedCounterDeclaration(this.context, style));
|
|
16967
|
-
var before = this.resolvePseudoContent(node,
|
|
16967
|
+
var before = this.resolvePseudoContent(node, clone62, styleBefore, PseudoElementType.BEFORE);
|
|
16968
16968
|
if (isCustomElement(node)) {
|
|
16969
16969
|
copyStyles = true;
|
|
16970
16970
|
}
|
|
16971
16971
|
if (!isVideoElement(node)) {
|
|
16972
|
-
this.cloneChildNodes(node,
|
|
16972
|
+
this.cloneChildNodes(node, clone62, copyStyles);
|
|
16973
16973
|
}
|
|
16974
16974
|
if (before) {
|
|
16975
|
-
|
|
16975
|
+
clone62.insertBefore(before, clone62.firstChild);
|
|
16976
16976
|
}
|
|
16977
|
-
var after = this.resolvePseudoContent(node,
|
|
16977
|
+
var after = this.resolvePseudoContent(node, clone62, styleAfter, PseudoElementType.AFTER);
|
|
16978
16978
|
if (after) {
|
|
16979
|
-
|
|
16979
|
+
clone62.appendChild(after);
|
|
16980
16980
|
}
|
|
16981
16981
|
this.counters.pop(counters);
|
|
16982
16982
|
if (style && (this.options.copyStyles || isSVGElementNode(node)) && !isIFrameElement(node) || copyStyles) {
|
|
16983
|
-
copyCSSStyles(style,
|
|
16983
|
+
copyCSSStyles(style, clone62);
|
|
16984
16984
|
}
|
|
16985
16985
|
if (node.scrollTop !== 0 || node.scrollLeft !== 0) {
|
|
16986
|
-
this.scrolledElements.push([
|
|
16986
|
+
this.scrolledElements.push([clone62, node.scrollLeft, node.scrollTop]);
|
|
16987
16987
|
}
|
|
16988
|
-
if ((isTextareaElement(node) || isSelectElement(node)) && (isTextareaElement(
|
|
16989
|
-
|
|
16988
|
+
if ((isTextareaElement(node) || isSelectElement(node)) && (isTextareaElement(clone62) || isSelectElement(clone62))) {
|
|
16989
|
+
clone62.value = node.value;
|
|
16990
16990
|
}
|
|
16991
|
-
return
|
|
16991
|
+
return clone62;
|
|
16992
16992
|
}
|
|
16993
16993
|
return node.cloneNode(false);
|
|
16994
16994
|
};
|
|
16995
|
-
DocumentCloner2.prototype.resolvePseudoContent = function(node,
|
|
16995
|
+
DocumentCloner2.prototype.resolvePseudoContent = function(node, clone62, style, pseudoElt) {
|
|
16996
16996
|
var _this = this;
|
|
16997
16997
|
if (!style) {
|
|
16998
16998
|
return;
|
|
16999
16999
|
}
|
|
17000
17000
|
var value = style.content;
|
|
17001
|
-
var document2 =
|
|
17001
|
+
var document2 = clone62.ownerDocument;
|
|
17002
17002
|
if (!document2 || !value || value === "none" || value === "-moz-alt-content" || style.display === "none") {
|
|
17003
17003
|
return;
|
|
17004
17004
|
}
|
|
@@ -17055,10 +17055,10 @@ var require_html2canvas = __commonJS({
|
|
|
17055
17055
|
});
|
|
17056
17056
|
anonymousReplacedElement.className = PSEUDO_HIDE_ELEMENT_CLASS_BEFORE + " " + PSEUDO_HIDE_ELEMENT_CLASS_AFTER;
|
|
17057
17057
|
var newClassName = pseudoElt === PseudoElementType.BEFORE ? " " + PSEUDO_HIDE_ELEMENT_CLASS_BEFORE : " " + PSEUDO_HIDE_ELEMENT_CLASS_AFTER;
|
|
17058
|
-
if (isSVGElementNode(
|
|
17059
|
-
|
|
17058
|
+
if (isSVGElementNode(clone62)) {
|
|
17059
|
+
clone62.className.baseValue += newClassName;
|
|
17060
17060
|
} else {
|
|
17061
|
-
|
|
17061
|
+
clone62.className += newClassName;
|
|
17062
17062
|
}
|
|
17063
17063
|
return anonymousReplacedElement;
|
|
17064
17064
|
};
|
|
@@ -19403,9 +19403,9 @@ var require_md5 = __commonJS({
|
|
|
19403
19403
|
buffer8 = new Uint8Array(buffer);
|
|
19404
19404
|
blocks = new Uint32Array(buffer);
|
|
19405
19405
|
}
|
|
19406
|
-
var
|
|
19407
|
-
if (root.JS_MD5_NO_NODE_JS || !
|
|
19408
|
-
|
|
19406
|
+
var isArray13 = Array.isArray;
|
|
19407
|
+
if (root.JS_MD5_NO_NODE_JS || !isArray13) {
|
|
19408
|
+
isArray13 = function(obj) {
|
|
19409
19409
|
return Object.prototype.toString.call(obj) === "[object Array]";
|
|
19410
19410
|
};
|
|
19411
19411
|
}
|
|
@@ -19426,7 +19426,7 @@ var require_md5 = __commonJS({
|
|
|
19426
19426
|
if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {
|
|
19427
19427
|
return [new Uint8Array(message), false];
|
|
19428
19428
|
}
|
|
19429
|
-
if (!
|
|
19429
|
+
if (!isArray13(message) && !isView(message)) {
|
|
19430
19430
|
throw new Error(INPUT_ERROR);
|
|
19431
19431
|
}
|
|
19432
19432
|
return [message, false];
|
|
@@ -19474,7 +19474,7 @@ var require_md5 = __commonJS({
|
|
|
19474
19474
|
message = new Uint8Array(message);
|
|
19475
19475
|
}
|
|
19476
19476
|
}
|
|
19477
|
-
if (
|
|
19477
|
+
if (isArray13(message) || isView(message) || message.constructor === Buffer2) {
|
|
19478
19478
|
return crypto.createHash("md5").update(bufferFrom(message)).digest("hex");
|
|
19479
19479
|
} else {
|
|
19480
19480
|
return method(message);
|
|
@@ -23664,11 +23664,11 @@ var TextUtil = class {
|
|
|
23664
23664
|
};
|
|
23665
23665
|
|
|
23666
23666
|
// src/utils/theme-util/theme-util.ts
|
|
23667
|
-
import { clone as
|
|
23667
|
+
import { clone as clone56 } from "ramda";
|
|
23668
23668
|
|
|
23669
23669
|
// src/utils/theme-util/custom-theme-util.ts
|
|
23670
23670
|
import { notNilEmpty as notNilEmpty10 } from "qx-util";
|
|
23671
|
-
import { clone as
|
|
23671
|
+
import { clone as clone55 } from "ramda";
|
|
23672
23672
|
import { RuntimeError as RuntimeError70 } from "@ibiz-template/core";
|
|
23673
23673
|
|
|
23674
23674
|
// src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
|
|
@@ -25186,7 +25186,7 @@ var TreeGridExNotifyState = /* @__PURE__ */ ((TreeGridExNotifyState2) => {
|
|
|
25186
25186
|
import { notNilEmpty as notNilEmpty5 } from "qx-util";
|
|
25187
25187
|
import {
|
|
25188
25188
|
HttpError as HttpError4,
|
|
25189
|
-
IBizContext
|
|
25189
|
+
IBizContext,
|
|
25190
25190
|
Namespace
|
|
25191
25191
|
} from "@ibiz-template/core";
|
|
25192
25192
|
import { isEmpty as isEmpty5, isNil as isNil11, isNotNil as isNotNil2 } from "ramda";
|
|
@@ -26688,8 +26688,8 @@ import { RuntimeError as RuntimeError15, RuntimeModelError as RuntimeModelError1
|
|
|
26688
26688
|
import { isNil as isNil10, mergeRight as mergeRight3 } from "ramda";
|
|
26689
26689
|
|
|
26690
26690
|
// src/de-logic/index.ts
|
|
26691
|
-
import { clone as
|
|
26692
|
-
import { isArray as
|
|
26691
|
+
import { clone as clone6 } from "ramda";
|
|
26692
|
+
import { isArray as isArray5 } from "lodash-es";
|
|
26693
26693
|
import { HttpError as HttpError3, HttpResponse, RuntimeError as RuntimeError14 } from "@ibiz-template/core";
|
|
26694
26694
|
|
|
26695
26695
|
// src/de-logic/de-logic-node/de-action-node/de-action-node.ts
|
|
@@ -27556,10 +27556,10 @@ var ThrowExceptionDELogicNode = class extends DELogicNode {
|
|
|
27556
27556
|
};
|
|
27557
27557
|
|
|
27558
27558
|
// src/de-logic/de-logic.ts
|
|
27559
|
-
import {
|
|
27560
|
-
import { clone as clone6 } from "ramda";
|
|
27559
|
+
import { RuntimeModelError as RuntimeModelError14 } from "@ibiz-template/core";
|
|
27561
27560
|
|
|
27562
27561
|
// src/de-logic/de-logic-context.ts
|
|
27562
|
+
import { isArray as isArray4 } from "lodash-es";
|
|
27563
27563
|
var DELogicContext = class {
|
|
27564
27564
|
/**
|
|
27565
27565
|
* Creates an instance of DELogicContext.
|
|
@@ -27567,12 +27567,11 @@ var DELogicContext = class {
|
|
|
27567
27567
|
* @date 2023-03-24 09:15:14
|
|
27568
27568
|
* @param {Map<string, DELogicParam>} deLogicParams 实体逻辑参数集合
|
|
27569
27569
|
* @param {IContext} context 上下文
|
|
27570
|
-
* @param {IData} data 数据对象
|
|
27570
|
+
* @param {IData | IData[]} data 数据对象
|
|
27571
27571
|
* @param {IParams} params 视图参数
|
|
27572
27572
|
*/
|
|
27573
|
-
constructor(deLogicParams,
|
|
27573
|
+
constructor(deLogicParams, context, data, params) {
|
|
27574
27574
|
this.deLogicParams = deLogicParams;
|
|
27575
|
-
this.parameters = parameters;
|
|
27576
27575
|
/**
|
|
27577
27576
|
* 实体逻辑参数
|
|
27578
27577
|
*
|
|
@@ -27607,6 +27606,7 @@ var DELogicContext = class {
|
|
|
27607
27606
|
* @type {string}
|
|
27608
27607
|
*/
|
|
27609
27608
|
this.defaultParamName = "Default";
|
|
27609
|
+
this.parameters = { context, data: isArray4(data) ? data : [data], params };
|
|
27610
27610
|
}
|
|
27611
27611
|
/**
|
|
27612
27612
|
* 上下文
|
|
@@ -27905,12 +27905,11 @@ var DELogic = class {
|
|
|
27905
27905
|
* @memberof DELogic
|
|
27906
27906
|
*/
|
|
27907
27907
|
async exec(parameters) {
|
|
27908
|
-
|
|
27909
|
-
parameters.params = clone6(parameters.params || {});
|
|
27908
|
+
const { context, params, data } = parameters;
|
|
27910
27909
|
if (this.scriptFn) {
|
|
27911
|
-
return this.scriptFn.exec({
|
|
27910
|
+
return this.scriptFn.exec({ context, data, params });
|
|
27912
27911
|
}
|
|
27913
|
-
const ctx = new DELogicContext(this.params,
|
|
27912
|
+
const ctx = new DELogicContext(this.params, context, data, params);
|
|
27914
27913
|
this.initLogicParams(ctx);
|
|
27915
27914
|
const { startDELogicNodeId } = this.model;
|
|
27916
27915
|
if (startDELogicNodeId && this.nodes.has(startDELogicNodeId)) {
|
|
@@ -27971,7 +27970,7 @@ async function execDELogic(deDELogic, appDataEntity, context, data = {}, params
|
|
|
27971
27970
|
const deLogic = deLogicMap.get(deDELogic);
|
|
27972
27971
|
const result = await deLogic.exec({
|
|
27973
27972
|
context,
|
|
27974
|
-
data
|
|
27973
|
+
data,
|
|
27975
27974
|
params
|
|
27976
27975
|
});
|
|
27977
27976
|
ibiz.log.debug(
|
|
@@ -28000,9 +27999,9 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
|
|
|
28000
27999
|
}
|
|
28001
28000
|
async function execDELogicAction(deDELogic, appDataEntity, context, data, params) {
|
|
28002
28001
|
try {
|
|
28003
|
-
const _context =
|
|
28004
|
-
const _data = data ?
|
|
28005
|
-
const _params = params ?
|
|
28002
|
+
const _context = clone6(context);
|
|
28003
|
+
const _data = data ? clone6(data) : data;
|
|
28004
|
+
const _params = params ? clone6(params) : params;
|
|
28006
28005
|
const result = await execDELogic(
|
|
28007
28006
|
deDELogic,
|
|
28008
28007
|
appDataEntity,
|
|
@@ -28034,7 +28033,7 @@ async function execSingleFieldLogics(entity, type, context, data, params) {
|
|
|
28034
28033
|
async function execFieldLogics(entity, type, context, data, params = {}) {
|
|
28035
28034
|
if (!data)
|
|
28036
28035
|
return;
|
|
28037
|
-
if (
|
|
28036
|
+
if (isArray5(data)) {
|
|
28038
28037
|
await Promise.all(
|
|
28039
28038
|
data.map(
|
|
28040
28039
|
(item) => execSingleFieldLogics(entity, type, context, item, params)
|
|
@@ -28818,7 +28817,7 @@ var ViewController = class extends BaseController {
|
|
|
28818
28817
|
delete params.parentData;
|
|
28819
28818
|
}
|
|
28820
28819
|
const _model = ibiz.util.layoutPanel.fill(model);
|
|
28821
|
-
super(_model,
|
|
28820
|
+
super(_model, IBizContext.create({}, context), params || {}, new CTX(ctx));
|
|
28822
28821
|
this.session = {};
|
|
28823
28822
|
this.modal = new Modal({});
|
|
28824
28823
|
this.providers = {};
|
|
@@ -30056,11 +30055,11 @@ import {
|
|
|
30056
30055
|
HttpError as HttpError5,
|
|
30057
30056
|
StringUtil as StringUtil2,
|
|
30058
30057
|
IBizParams,
|
|
30059
|
-
IBizContext as
|
|
30058
|
+
IBizContext as IBizContext2,
|
|
30060
30059
|
NoticeError as NoticeError2,
|
|
30061
30060
|
RuntimeError as RuntimeError16
|
|
30062
30061
|
} from "@ibiz-template/core";
|
|
30063
|
-
import { clone as
|
|
30062
|
+
import { clone as clone7, isNil as isNil12, isNotNil as isNotNil3 } from "ramda";
|
|
30064
30063
|
import { notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
30065
30064
|
var ControlController = class extends BaseController {
|
|
30066
30065
|
/**
|
|
@@ -30075,7 +30074,7 @@ var ControlController = class extends BaseController {
|
|
|
30075
30074
|
constructor(model, context, params, ctx) {
|
|
30076
30075
|
super(
|
|
30077
30076
|
model,
|
|
30078
|
-
|
|
30077
|
+
IBizContext2.create({}, context),
|
|
30079
30078
|
new IBizParams({}, params),
|
|
30080
30079
|
ctx
|
|
30081
30080
|
);
|
|
@@ -30132,7 +30131,7 @@ var ControlController = class extends BaseController {
|
|
|
30132
30131
|
"".concat(model.controlType, "_DEFAULT")
|
|
30133
30132
|
);
|
|
30134
30133
|
if (panelModel) {
|
|
30135
|
-
this.controlPanel =
|
|
30134
|
+
this.controlPanel = clone7(panelModel);
|
|
30136
30135
|
}
|
|
30137
30136
|
}
|
|
30138
30137
|
this.updateContextParams({});
|
|
@@ -30615,7 +30614,7 @@ import {
|
|
|
30615
30614
|
RuntimeModelError as RuntimeModelError16
|
|
30616
30615
|
} from "@ibiz-template/core";
|
|
30617
30616
|
import { isNil as isNil13 } from "ramda";
|
|
30618
|
-
import { isArray as
|
|
30617
|
+
import { isArray as isArray6 } from "lodash-es";
|
|
30619
30618
|
var MDControlController = class extends ControlController {
|
|
30620
30619
|
constructor() {
|
|
30621
30620
|
super(...arguments);
|
|
@@ -30925,7 +30924,7 @@ var MDControlController = class extends ControlController {
|
|
|
30925
30924
|
Object.assign(resultParams, extraParams);
|
|
30926
30925
|
}
|
|
30927
30926
|
if (resultParams.srfsearchconds) {
|
|
30928
|
-
const srfsearchconds =
|
|
30927
|
+
const srfsearchconds = isArray6(resultParams.srfsearchconds) ? resultParams.srfsearchconds : [resultParams.srfsearchconds];
|
|
30929
30928
|
if (resultParams.searchconds && resultParams.searchconds.length > 0) {
|
|
30930
30929
|
resultParams.searchconds = [
|
|
30931
30930
|
{
|
|
@@ -32212,17 +32211,17 @@ import { RuntimeError as RuntimeError30 } from "@ibiz-template/core";
|
|
|
32212
32211
|
|
|
32213
32212
|
// src/controller/control/calendar/calendar.service.ts
|
|
32214
32213
|
import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
|
|
32215
|
-
import { clone as
|
|
32214
|
+
import { clone as clone10 } from "ramda";
|
|
32216
32215
|
|
|
32217
32216
|
// src/service/service/control/md-control.service.ts
|
|
32218
|
-
import { isArray as
|
|
32217
|
+
import { isArray as isArray7 } from "qx-util";
|
|
32219
32218
|
|
|
32220
32219
|
// src/service/service/control/control.service.ts
|
|
32221
|
-
import { clone as
|
|
32220
|
+
import { clone as clone9 } from "@ibiz-template/core";
|
|
32222
32221
|
|
|
32223
32222
|
// src/service/vo/control.vo.ts
|
|
32224
32223
|
import { createUUID as createUUID5 } from "qx-util";
|
|
32225
|
-
import { clone as
|
|
32224
|
+
import { clone as clone8, isNil as isNil14 } from "ramda";
|
|
32226
32225
|
|
|
32227
32226
|
// src/service/constant/srfuf.ts
|
|
32228
32227
|
var Srfuf = /* @__PURE__ */ ((Srfuf2) => {
|
|
@@ -32439,7 +32438,7 @@ var ControlVO = class _ControlVO {
|
|
|
32439
32438
|
* @return {*} {ControlVO}
|
|
32440
32439
|
*/
|
|
32441
32440
|
clone() {
|
|
32442
|
-
const cloneOrigin =
|
|
32441
|
+
const cloneOrigin = clone8(this.$origin);
|
|
32443
32442
|
const newVal = new _ControlVO(cloneOrigin, new Map([...this.$dataUIMap]));
|
|
32444
32443
|
newVal.srfuf = this.srfuf;
|
|
32445
32444
|
Object.keys(this).forEach((key) => {
|
|
@@ -32556,7 +32555,7 @@ var ControlService = class {
|
|
|
32556
32555
|
* @returns {*} {IHttpResponse}
|
|
32557
32556
|
*/
|
|
32558
32557
|
handleResponse(res) {
|
|
32559
|
-
return
|
|
32558
|
+
return clone9(res);
|
|
32560
32559
|
}
|
|
32561
32560
|
/**
|
|
32562
32561
|
* 实体数据转ui数据
|
|
@@ -32567,7 +32566,7 @@ var ControlService = class {
|
|
|
32567
32566
|
* @returns {*} {IData}
|
|
32568
32567
|
*/
|
|
32569
32568
|
toUIData(entityData) {
|
|
32570
|
-
return new ControlVO(entityData,
|
|
32569
|
+
return new ControlVO(entityData, clone9(this.dataUIMap));
|
|
32571
32570
|
}
|
|
32572
32571
|
};
|
|
32573
32572
|
|
|
@@ -32744,7 +32743,7 @@ var MDControlService2 = class extends ControlService {
|
|
|
32744
32743
|
}
|
|
32745
32744
|
}
|
|
32746
32745
|
if (res.ok) {
|
|
32747
|
-
if (
|
|
32746
|
+
if (isArray7(res.data)) {
|
|
32748
32747
|
res.data = res.data.map((item) => this.toUIData(item));
|
|
32749
32748
|
} else {
|
|
32750
32749
|
res.data = this.toUIData(res.data);
|
|
@@ -33004,7 +33003,7 @@ var CalendarService = class extends MDControlService2 {
|
|
|
33004
33003
|
*/
|
|
33005
33004
|
handleRequestParams(item, params, opts) {
|
|
33006
33005
|
var _a3, _b2;
|
|
33007
|
-
const tempParams =
|
|
33006
|
+
const tempParams = clone10(params);
|
|
33008
33007
|
const { srfstartdate, srfenddate } = tempParams;
|
|
33009
33008
|
if (srfstartdate && srfenddate) {
|
|
33010
33009
|
Object.assign(tempParams, {
|
|
@@ -33036,7 +33035,7 @@ import { recursiveIterate as recursiveIterate3, RuntimeError as RuntimeError29 }
|
|
|
33036
33035
|
|
|
33037
33036
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
33038
33037
|
import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
|
|
33039
|
-
import { isArray as
|
|
33038
|
+
import { isArray as isArray8 } from "qx-util";
|
|
33040
33039
|
|
|
33041
33040
|
// src/ui-action/provider/ui-action-provider-base.ts
|
|
33042
33041
|
import { RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
|
|
@@ -33062,7 +33061,7 @@ import { ModelError as ModelError11, RuntimeModelError as RuntimeModelError19 }
|
|
|
33062
33061
|
|
|
33063
33062
|
// src/ui-logic/utils/handle-src-val.ts
|
|
33064
33063
|
import { ModelError as ModelError10 } from "@ibiz-template/core";
|
|
33065
|
-
import { clone as
|
|
33064
|
+
import { clone as clone11 } from "ramda";
|
|
33066
33065
|
function handleSrcVal2(ctx, srcValParams) {
|
|
33067
33066
|
const { srcDEUILogicParamId, srcFieldName, srcValue } = srcValParams;
|
|
33068
33067
|
const srcValueType = srcValParams.srcValueType || "SRCDLPARAM";
|
|
@@ -33089,7 +33088,7 @@ function handleSrcVal2(ctx, srcValParams) {
|
|
|
33089
33088
|
value = ctx.parameters.context;
|
|
33090
33089
|
break;
|
|
33091
33090
|
case "ENVPARAM":
|
|
33092
|
-
value =
|
|
33091
|
+
value = clone11(ibiz.env);
|
|
33093
33092
|
break;
|
|
33094
33093
|
default:
|
|
33095
33094
|
throw new ModelError10(
|
|
@@ -33586,7 +33585,7 @@ var EndNode = class extends UILogicNode {
|
|
|
33586
33585
|
|
|
33587
33586
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
33588
33587
|
import { ModelError as ModelError14, RuntimeError as RuntimeError21 } from "@ibiz-template/core";
|
|
33589
|
-
import { clone as
|
|
33588
|
+
import { clone as clone12 } from "ramda";
|
|
33590
33589
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
33591
33590
|
async exec(ctx) {
|
|
33592
33591
|
const nodeParams = this.model.deuilogicNodeParams;
|
|
@@ -33596,7 +33595,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
33596
33595
|
for (const nodeParam of nodeParams) {
|
|
33597
33596
|
let originValue;
|
|
33598
33597
|
if (nodeParam.dstDEUILogicParamId && ibiz.env.logLevel === "DEBUG") {
|
|
33599
|
-
originValue =
|
|
33598
|
+
originValue = clone12(ctx.params[nodeParam.dstDEUILogicParamId]);
|
|
33600
33599
|
}
|
|
33601
33600
|
switch (nodeParam.paramAction) {
|
|
33602
33601
|
case "SETPARAMVALUE":
|
|
@@ -33691,7 +33690,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
33691
33690
|
copyParam(nodeParam, ctx) {
|
|
33692
33691
|
const { dstDEUILogicParamId } = nodeParam;
|
|
33693
33692
|
const srcVal = handleSrcVal2(ctx, nodeParam);
|
|
33694
|
-
ctx.params[dstDEUILogicParamId] =
|
|
33693
|
+
ctx.params[dstDEUILogicParamId] = clone12(srcVal);
|
|
33695
33694
|
}
|
|
33696
33695
|
/**
|
|
33697
33696
|
* 绑定参数
|
|
@@ -34018,7 +34017,7 @@ var ResetParamNode = class extends UILogicNode {
|
|
|
34018
34017
|
|
|
34019
34018
|
// src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts
|
|
34020
34019
|
import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
|
|
34021
|
-
import { clone as
|
|
34020
|
+
import { clone as clone13 } from "ramda";
|
|
34022
34021
|
var CopyParamNode = class extends UILogicNode {
|
|
34023
34022
|
async exec(ctx) {
|
|
34024
34023
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
@@ -34029,7 +34028,7 @@ var CopyParamNode = class extends UILogicNode {
|
|
|
34029
34028
|
);
|
|
34030
34029
|
}
|
|
34031
34030
|
const srcVal = handleSrcVal2(ctx, this.model);
|
|
34032
|
-
ctx.params[dstDEUILogicParamId] =
|
|
34031
|
+
ctx.params[dstDEUILogicParamId] = clone13(srcVal);
|
|
34033
34032
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
34034
34033
|
ibiz.log.debug(
|
|
34035
34034
|
ibiz.i18n.t("runtime.uiLogic.copyParameter", {
|
|
@@ -34316,8 +34315,8 @@ var RawJSCodeNode = class extends UILogicNode {
|
|
|
34316
34315
|
};
|
|
34317
34316
|
|
|
34318
34317
|
// src/ui-logic/ui-logic.ts
|
|
34319
|
-
import { IBizContext as
|
|
34320
|
-
import { clone as
|
|
34318
|
+
import { IBizContext as IBizContext3, RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
|
|
34319
|
+
import { clone as clone14 } from "ramda";
|
|
34321
34320
|
|
|
34322
34321
|
// src/ui-logic/ui-logic-context.ts
|
|
34323
34322
|
var UILogicContext = class {
|
|
@@ -34700,8 +34699,8 @@ var UILogic = class {
|
|
|
34700
34699
|
* @memberof UILogic
|
|
34701
34700
|
*/
|
|
34702
34701
|
async exec(parameters) {
|
|
34703
|
-
parameters.context =
|
|
34704
|
-
parameters.params =
|
|
34702
|
+
parameters.context = IBizContext3.create(parameters.context);
|
|
34703
|
+
parameters.params = clone14(parameters.params || {});
|
|
34705
34704
|
const ctx = new UILogicContext(this.params, parameters);
|
|
34706
34705
|
this.initLogicParams(ctx);
|
|
34707
34706
|
const { startDEUILogicNodeId } = this.model;
|
|
@@ -35327,7 +35326,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
35327
35326
|
}
|
|
35328
35327
|
}
|
|
35329
35328
|
Object.assign(actionResult, {
|
|
35330
|
-
data:
|
|
35329
|
+
data: isArray8(res.data) ? res.data : [res.data],
|
|
35331
35330
|
nextContext: resultContext,
|
|
35332
35331
|
nextParams: tempParams
|
|
35333
35332
|
});
|
|
@@ -35397,7 +35396,7 @@ import {
|
|
|
35397
35396
|
RuntimeError as RuntimeError28,
|
|
35398
35397
|
RuntimeModelError as RuntimeModelError38
|
|
35399
35398
|
} from "@ibiz-template/core";
|
|
35400
|
-
import { clone as
|
|
35399
|
+
import { clone as clone15, mergeRight as mergeRight4 } from "ramda";
|
|
35401
35400
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
35402
35401
|
async execAction(action, args) {
|
|
35403
35402
|
const { context, params, data, event, noWaitRoute, view } = args;
|
|
@@ -35854,7 +35853,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
35854
35853
|
* @memberof FrontUIActionProvider
|
|
35855
35854
|
*/
|
|
35856
35855
|
mergeFormItemModel(formModel, editorModel) {
|
|
35857
|
-
const tempFormModel =
|
|
35856
|
+
const tempFormModel = clone15(formModel);
|
|
35858
35857
|
if (tempFormModel && editorModel && tempFormModel.deformPages && tempFormModel.deformPages.length > 0) {
|
|
35859
35858
|
const { deformDetails } = tempFormModel.deformPages[0];
|
|
35860
35859
|
deformDetails == null ? void 0 : deformDetails.push(editorModel);
|
|
@@ -37187,7 +37186,7 @@ var CalendarController = class extends MDControlController {
|
|
|
37187
37186
|
import { RuntimeError as RuntimeError32 } from "@ibiz-template/core";
|
|
37188
37187
|
|
|
37189
37188
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
37190
|
-
import { clone as
|
|
37189
|
+
import { clone as clone18, mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
37191
37190
|
import { isObject as isObject2, isString as isString2 } from "qx-util";
|
|
37192
37191
|
import { RuntimeError as RuntimeError31 } from "@ibiz-template/core";
|
|
37193
37192
|
|
|
@@ -37202,7 +37201,7 @@ import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
|
37202
37201
|
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
|
37203
37202
|
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
37204
37203
|
import isoWeek from "dayjs/plugin/isoWeek";
|
|
37205
|
-
import { clone as
|
|
37204
|
+
import { clone as clone16, isNil as isNil15, mergeDeepRight } from "ramda";
|
|
37206
37205
|
dayjs5.extend(minMax);
|
|
37207
37206
|
dayjs5.extend(isSameOrBefore);
|
|
37208
37207
|
dayjs5.extend(quarterOfYear);
|
|
@@ -37500,7 +37499,7 @@ var BaseSeriesGenerator = class {
|
|
|
37500
37499
|
}).filter((val) => !!val)
|
|
37501
37500
|
)
|
|
37502
37501
|
);
|
|
37503
|
-
const cloneItem =
|
|
37502
|
+
const cloneItem = clone16(codeListItems);
|
|
37504
37503
|
cloneItem.sort((a, b) => {
|
|
37505
37504
|
const aIndex = orginItem.findIndex((_code) => {
|
|
37506
37505
|
return _code === a.value;
|
|
@@ -37513,9 +37512,9 @@ var BaseSeriesGenerator = class {
|
|
|
37513
37512
|
return cloneItem;
|
|
37514
37513
|
}
|
|
37515
37514
|
if (sort === "desc") {
|
|
37516
|
-
return
|
|
37515
|
+
return clone16(codeListItems).reverse();
|
|
37517
37516
|
}
|
|
37518
|
-
return
|
|
37517
|
+
return clone16(codeListItems);
|
|
37519
37518
|
}
|
|
37520
37519
|
/**
|
|
37521
37520
|
* 计算分组数据
|
|
@@ -37814,7 +37813,7 @@ var BaseSeriesGenerator = class {
|
|
|
37814
37813
|
dataPreprocess(data) {
|
|
37815
37814
|
const tempData = [];
|
|
37816
37815
|
data.forEach((singleData) => {
|
|
37817
|
-
tempData.push(
|
|
37816
|
+
tempData.push(clone16(singleData));
|
|
37818
37817
|
});
|
|
37819
37818
|
const { groupMode } = this.model;
|
|
37820
37819
|
if (groupMode) {
|
|
@@ -38144,7 +38143,7 @@ var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
38144
38143
|
};
|
|
38145
38144
|
|
|
38146
38145
|
// src/controller/control/chart/generator/radar-series-generator.ts
|
|
38147
|
-
import { clone as
|
|
38146
|
+
import { clone as clone17, mergeDeepRight as mergeDeepRight2 } from "ramda";
|
|
38148
38147
|
|
|
38149
38148
|
// src/controller/control/chart/generator/radar-coord-system.ts
|
|
38150
38149
|
var RadarCoordSystem = class {
|
|
@@ -38220,7 +38219,7 @@ var RadarSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
38220
38219
|
*/
|
|
38221
38220
|
calcRadarCoordSystem(data) {
|
|
38222
38221
|
const tempItems = data.map((item) => {
|
|
38223
|
-
return
|
|
38222
|
+
return clone17(item);
|
|
38224
38223
|
});
|
|
38225
38224
|
const groupData = this.calcGroupData(tempItems);
|
|
38226
38225
|
if (!this.chartGenerator.radarMap.has(this.catalogField)) {
|
|
@@ -38325,7 +38324,7 @@ var GaugeSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
38325
38324
|
|
|
38326
38325
|
// src/controller/control/chart/generator/candlestick-series-generator.ts
|
|
38327
38326
|
import { isNil as isNil16 } from "ramda";
|
|
38328
|
-
import { isArray as
|
|
38327
|
+
import { isArray as isArray9, isNumber as isNumber3 } from "qx-util";
|
|
38329
38328
|
import { plus as plus2, RuntimeModelError as RuntimeModelError45, toNumberOrNil as toNumberOrNil2 } from "@ibiz-template/core";
|
|
38330
38329
|
var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
|
|
38331
38330
|
/**
|
|
@@ -38594,7 +38593,7 @@ var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
38594
38593
|
xAxisData.push(key);
|
|
38595
38594
|
temData.push({ name: key, value: catalog.value });
|
|
38596
38595
|
});
|
|
38597
|
-
if (this.chartGenerator &&
|
|
38596
|
+
if (this.chartGenerator && isArray9(this.chartGenerator.staticOptions.xAxis) && isNumber3(this.xAxisIndex)) {
|
|
38598
38597
|
this.chartGenerator.staticOptions.xAxis[this.xAxisIndex].data = xAxisData;
|
|
38599
38598
|
}
|
|
38600
38599
|
return temData;
|
|
@@ -38912,8 +38911,8 @@ var ChartOptionsGenerator3 = class {
|
|
|
38912
38911
|
const xaxis = [];
|
|
38913
38912
|
const yaxis = [];
|
|
38914
38913
|
for (let i = 0; i < seriesModel.length; i++) {
|
|
38915
|
-
const tempXAxis =
|
|
38916
|
-
const tempYAxis =
|
|
38914
|
+
const tempXAxis = clone18(xAxisParam);
|
|
38915
|
+
const tempYAxis = clone18(yAxisParam);
|
|
38917
38916
|
Object.assign(tempXAxis, { gridIndex: i });
|
|
38918
38917
|
Object.assign(tempYAxis, { gridIndex: i });
|
|
38919
38918
|
if (!tempYAxis.axisLabel)
|
|
@@ -38965,7 +38964,7 @@ var ChartOptionsGenerator3 = class {
|
|
|
38965
38964
|
}
|
|
38966
38965
|
});
|
|
38967
38966
|
if (left) {
|
|
38968
|
-
const tempAxis =
|
|
38967
|
+
const tempAxis = clone18(axisParam);
|
|
38969
38968
|
if (tempAxis.showTitle) {
|
|
38970
38969
|
const serietext = left.map((serie) => {
|
|
38971
38970
|
return serie.serieText;
|
|
@@ -38977,7 +38976,7 @@ var ChartOptionsGenerator3 = class {
|
|
|
38977
38976
|
axis.push(tempAxis);
|
|
38978
38977
|
}
|
|
38979
38978
|
if (right) {
|
|
38980
|
-
const tempAxis =
|
|
38979
|
+
const tempAxis = clone18(axisParam);
|
|
38981
38980
|
if (tempAxis.showTitle) {
|
|
38982
38981
|
const serietext = right.map((serie) => {
|
|
38983
38982
|
return serie.serieText;
|
|
@@ -39086,9 +39085,9 @@ var ChartOptionsGenerator3 = class {
|
|
|
39086
39085
|
);
|
|
39087
39086
|
if (codeListItems) {
|
|
39088
39087
|
if (catalog.sort === "desc") {
|
|
39089
|
-
currentLevelItems =
|
|
39088
|
+
currentLevelItems = clone18(codeListItems).reverse();
|
|
39090
39089
|
} else {
|
|
39091
|
-
currentLevelItems =
|
|
39090
|
+
currentLevelItems = clone18(codeListItems);
|
|
39092
39091
|
}
|
|
39093
39092
|
}
|
|
39094
39093
|
} else {
|
|
@@ -39297,7 +39296,7 @@ var ChartOptionsGenerator3 = class {
|
|
|
39297
39296
|
* @memberof ChartOptionsGenerator
|
|
39298
39297
|
*/
|
|
39299
39298
|
handleAxisTitleParam(option = {}, titleshow = true) {
|
|
39300
|
-
const tempOption =
|
|
39299
|
+
const tempOption = clone18(option);
|
|
39301
39300
|
Object.assign(tempOption, { show: titleshow });
|
|
39302
39301
|
return tempOption;
|
|
39303
39302
|
}
|
|
@@ -40092,11 +40091,11 @@ var CaptionBarController = class extends ControlController {
|
|
|
40092
40091
|
};
|
|
40093
40092
|
|
|
40094
40093
|
// src/controller/control/dashboard/dashboard.controller.ts
|
|
40095
|
-
import { clone as
|
|
40094
|
+
import { clone as clone20 } from "ramda";
|
|
40096
40095
|
import { recursiveIterate as recursiveIterate4 } from "@ibiz-template/core";
|
|
40097
40096
|
|
|
40098
40097
|
// src/controller/control/dashboard/dashboard.util.ts
|
|
40099
|
-
import { clone as
|
|
40098
|
+
import { clone as clone19 } from "ramda";
|
|
40100
40099
|
function filterDEDQConditions2SearchConds(filterDEDQConditions) {
|
|
40101
40100
|
const result = [];
|
|
40102
40101
|
filterDEDQConditions.forEach((filterDEDQCondition) => {
|
|
@@ -40140,7 +40139,7 @@ function generateCacheKy(context, dashboard, key) {
|
|
|
40140
40139
|
function getFilterSearchConds(searchConds, filterDEDQConditions) {
|
|
40141
40140
|
let result;
|
|
40142
40141
|
if (searchConds) {
|
|
40143
|
-
result =
|
|
40142
|
+
result = clone19(searchConds);
|
|
40144
40143
|
} else if (filterDEDQConditions) {
|
|
40145
40144
|
result = { condop: "AND", condtype: "GROUP", searchconds: [] };
|
|
40146
40145
|
const modelSearchConds = filterDEDQConditions2SearchConds(filterDEDQConditions);
|
|
@@ -40485,7 +40484,7 @@ var DashboardController = class extends ControlController {
|
|
|
40485
40484
|
async loadDynaPortletById(id) {
|
|
40486
40485
|
var _a3;
|
|
40487
40486
|
const app = ibiz.hub.getApp(this.model.appId);
|
|
40488
|
-
const tempContext =
|
|
40487
|
+
const tempContext = clone20(this.context);
|
|
40489
40488
|
Object.assign(tempContext, { psappportlet: id });
|
|
40490
40489
|
const res = await app.deService.exec(
|
|
40491
40490
|
"psappportlet",
|
|
@@ -40797,7 +40796,7 @@ var DashboardController = class extends ControlController {
|
|
|
40797
40796
|
};
|
|
40798
40797
|
|
|
40799
40798
|
// src/controller/control/dashboard/custom-dashboard.controller.ts
|
|
40800
|
-
import { clone as
|
|
40799
|
+
import { clone as clone21 } from "ramda";
|
|
40801
40800
|
var CustomDashboardController = class {
|
|
40802
40801
|
/**
|
|
40803
40802
|
* Creates an instance of BaseController.
|
|
@@ -41028,7 +41027,7 @@ var CustomDashboardController = class {
|
|
|
41028
41027
|
async saveCustomModelData(model, config = {}, filter = {}) {
|
|
41029
41028
|
Object.assign(this.portletConfig, config);
|
|
41030
41029
|
let res;
|
|
41031
|
-
const cloneFilter =
|
|
41030
|
+
const cloneFilter = clone21(this.portletFilter);
|
|
41032
41031
|
if (Object.keys(filter).length > 0) {
|
|
41033
41032
|
Object.assign(cloneFilter, filter);
|
|
41034
41033
|
}
|
|
@@ -41045,7 +41044,7 @@ var CustomDashboardController = class {
|
|
|
41045
41044
|
}
|
|
41046
41045
|
});
|
|
41047
41046
|
}
|
|
41048
|
-
const cloneModel =
|
|
41047
|
+
const cloneModel = clone21(model);
|
|
41049
41048
|
cloneModel.forEach((item) => {
|
|
41050
41049
|
if (item.portletModel) {
|
|
41051
41050
|
deepDeleteSubAppId(item.portletModel);
|
|
@@ -41087,7 +41086,7 @@ import { merge } from "lodash-es";
|
|
|
41087
41086
|
import {
|
|
41088
41087
|
Namespace as Namespace2,
|
|
41089
41088
|
IBizParams as IBizParams2,
|
|
41090
|
-
IBizContext as
|
|
41089
|
+
IBizContext as IBizContext4,
|
|
41091
41090
|
listenJSEvent
|
|
41092
41091
|
} from "@ibiz-template/core";
|
|
41093
41092
|
|
|
@@ -41145,7 +41144,7 @@ var PortletPartController = class {
|
|
|
41145
41144
|
this.dashboard = dashboard;
|
|
41146
41145
|
this.parent = parent;
|
|
41147
41146
|
this.state = this.createState();
|
|
41148
|
-
this.state.context =
|
|
41147
|
+
this.state.context = IBizContext4.create({}, this.dashboard.context);
|
|
41149
41148
|
const tempParams = this.getExtendParams();
|
|
41150
41149
|
if (tempParams) {
|
|
41151
41150
|
this.params = new IBizParams2(
|
|
@@ -41667,7 +41666,7 @@ import { recursiveIterate as recursiveIterate7 } from "@ibiz-template/core";
|
|
|
41667
41666
|
|
|
41668
41667
|
// src/controller/control/search-bar/search-bar.controller.ts
|
|
41669
41668
|
import { mergeInLeft, recursiveIterate as recursiveIterate6 } from "@ibiz-template/core";
|
|
41670
|
-
import { clone as
|
|
41669
|
+
import { clone as clone23 } from "ramda";
|
|
41671
41670
|
import { isString as isString3 } from "lodash-es";
|
|
41672
41671
|
|
|
41673
41672
|
// src/controller/control/search-bar/search-bar-filter.controller.ts
|
|
@@ -42166,7 +42165,7 @@ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
|
|
|
42166
42165
|
|
|
42167
42166
|
// src/controller/control/search-bar/search-bar-filter-items.controller.ts
|
|
42168
42167
|
import { RuntimeError as RuntimeError33 } from "@ibiz-template/core";
|
|
42169
|
-
import { clone as
|
|
42168
|
+
import { clone as clone22 } from "ramda";
|
|
42170
42169
|
var SubFieldRegex2 = /^N_(.\w+)_(.\w+)$/;
|
|
42171
42170
|
var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
42172
42171
|
constructor(filterModels, appDataEntity, context, params) {
|
|
@@ -42251,7 +42250,7 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
|
42251
42250
|
const matches = subStr.match(SubFieldRegex2);
|
|
42252
42251
|
const subField = matches[1];
|
|
42253
42252
|
const subOP = matches[2];
|
|
42254
|
-
const cloneItem =
|
|
42253
|
+
const cloneItem = clone22(item);
|
|
42255
42254
|
cloneItem.defsearchMode.valueOP = subOP;
|
|
42256
42255
|
cloneItem.id = subField;
|
|
42257
42256
|
const filterC = new SearchBarFilterController(
|
|
@@ -42775,7 +42774,7 @@ var SearchBarController = class extends ControlController {
|
|
|
42775
42774
|
if (!this.addSchemaFilters) {
|
|
42776
42775
|
return;
|
|
42777
42776
|
}
|
|
42778
|
-
const tempParams =
|
|
42777
|
+
const tempParams = clone23(this.jsonSchemaParams);
|
|
42779
42778
|
Object.assign(tempParams, this.params);
|
|
42780
42779
|
const json = await getEntitySchema(
|
|
42781
42780
|
this.model.appDataEntityId,
|
|
@@ -42804,7 +42803,7 @@ var SearchBarController = class extends ControlController {
|
|
|
42804
42803
|
}
|
|
42805
42804
|
});
|
|
42806
42805
|
if (addSearchBarFilters.length > 0) {
|
|
42807
|
-
this.model =
|
|
42806
|
+
this.model = clone23(this.model);
|
|
42808
42807
|
this.model.searchBarFilters = mergeFilters.concat(...addSearchBarFilters);
|
|
42809
42808
|
this.model.enableFilter = true;
|
|
42810
42809
|
}
|
|
@@ -43028,7 +43027,7 @@ var SearchBarController = class extends ControlController {
|
|
|
43028
43027
|
if (!this.enableFilter) {
|
|
43029
43028
|
return;
|
|
43030
43029
|
}
|
|
43031
|
-
const nodes =
|
|
43030
|
+
const nodes = clone23(this.state.filterNodes);
|
|
43032
43031
|
this.attachCustomCond(nodes);
|
|
43033
43032
|
const searchconds = calcSearchConds(nodes, {
|
|
43034
43033
|
after: (node, cond) => {
|
|
@@ -43225,7 +43224,7 @@ var SearchBarController = class extends ControlController {
|
|
|
43225
43224
|
*/
|
|
43226
43225
|
async handleSave() {
|
|
43227
43226
|
if (this.grid && this.state.selectedSearchGroupItem) {
|
|
43228
|
-
const nodes =
|
|
43227
|
+
const nodes = clone23(this.state.filterNodes);
|
|
43229
43228
|
this.attachCustomCond(nodes);
|
|
43230
43229
|
let filters = calcSearchCondExs(nodes);
|
|
43231
43230
|
if (!filters) {
|
|
@@ -43241,7 +43240,7 @@ var SearchBarController = class extends ControlController {
|
|
|
43241
43240
|
}
|
|
43242
43241
|
const tempColumnState = this.grid.state.columnStates.map(
|
|
43243
43242
|
(item) => {
|
|
43244
|
-
const state =
|
|
43243
|
+
const state = clone23(item);
|
|
43245
43244
|
delete state.columnWidth;
|
|
43246
43245
|
return state;
|
|
43247
43246
|
}
|
|
@@ -43860,7 +43859,7 @@ var MobCustomDashboardController = class {
|
|
|
43860
43859
|
|
|
43861
43860
|
// src/controller/control/data-view/data-view.controller.ts
|
|
43862
43861
|
import {
|
|
43863
|
-
clone as
|
|
43862
|
+
clone as clone25,
|
|
43864
43863
|
DataTypes as DataTypes2,
|
|
43865
43864
|
isElementSame as isElementSame2,
|
|
43866
43865
|
RuntimeModelError as RuntimeModelError47
|
|
@@ -43869,7 +43868,7 @@ import { isNil as isNil18, isNotNil as isNotNil4 } from "ramda";
|
|
|
43869
43868
|
import { createUUID as createUUID6, isBoolean } from "qx-util";
|
|
43870
43869
|
|
|
43871
43870
|
// src/controller/control/data-view/data-view.service.ts
|
|
43872
|
-
import { clone as
|
|
43871
|
+
import { clone as clone24 } from "@ibiz-template/core";
|
|
43873
43872
|
var DataViewControlService = class extends MDControlService2 {
|
|
43874
43873
|
/**
|
|
43875
43874
|
* @description 移动并排序数据
|
|
@@ -43881,7 +43880,7 @@ var DataViewControlService = class extends MDControlService2 {
|
|
|
43881
43880
|
*/
|
|
43882
43881
|
async moveOrderItem(context, data, args) {
|
|
43883
43882
|
const moveAction = this.model.moveControlAction.appDEMethodId;
|
|
43884
|
-
const params =
|
|
43883
|
+
const params = clone24(data.getOrigin());
|
|
43885
43884
|
Object.assign(params, args);
|
|
43886
43885
|
let res = await this.exec(moveAction, context, params, {
|
|
43887
43886
|
srfupdateitem: true
|
|
@@ -44300,7 +44299,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
44300
44299
|
*/
|
|
44301
44300
|
async execGroup(arg, _params) {
|
|
44302
44301
|
const group = arg[0];
|
|
44303
|
-
this.model =
|
|
44302
|
+
this.model = clone25(this.model);
|
|
44304
44303
|
this.model.groupMode = "AUTO";
|
|
44305
44304
|
if (!group || !group.groupFieldId) {
|
|
44306
44305
|
this.state.groups = [];
|
|
@@ -44746,7 +44745,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
44746
44745
|
const { groupAppDEFieldId, moveControlAction, minorSortAppDEFieldId } = this.model;
|
|
44747
44746
|
const fromGroup = this.state.groups.find((x) => x.key === from);
|
|
44748
44747
|
const toGroup = this.state.groups.find((x) => x.key === to);
|
|
44749
|
-
const draggedItem =
|
|
44748
|
+
const draggedItem = clone25(
|
|
44750
44749
|
(fromGroup == null ? void 0 : fromGroup.children[fromIndex]) || this.state.items[fromIndex]
|
|
44751
44750
|
);
|
|
44752
44751
|
if (from !== to && groupAppDEFieldId)
|
|
@@ -44817,13 +44816,13 @@ var DataViewControlController = class extends MDControlController {
|
|
|
44817
44816
|
};
|
|
44818
44817
|
|
|
44819
44818
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
44820
|
-
import { IBizParams as IBizParams3, IBizContext as
|
|
44819
|
+
import { IBizParams as IBizParams3, IBizContext as IBizContext5, RuntimeError as RuntimeError34 } from "@ibiz-template/core";
|
|
44821
44820
|
var ExpBarControlController = class extends ControlController {
|
|
44822
44821
|
constructor(model, context, params, ctx) {
|
|
44823
44822
|
var _a3, _b2, _c;
|
|
44824
44823
|
super(
|
|
44825
44824
|
model,
|
|
44826
|
-
|
|
44825
|
+
IBizContext5.create({}, context),
|
|
44827
44826
|
new IBizParams3({}, params),
|
|
44828
44827
|
ctx
|
|
44829
44828
|
);
|
|
@@ -45764,7 +45763,7 @@ import {
|
|
|
45764
45763
|
RuntimeError as RuntimeError36
|
|
45765
45764
|
} from "@ibiz-template/core";
|
|
45766
45765
|
import { isBoolean as isBoolean2 } from "qx-util";
|
|
45767
|
-
import { clone as
|
|
45766
|
+
import { clone as clone26 } from "ramda";
|
|
45768
45767
|
var FormController = class extends ControlController {
|
|
45769
45768
|
constructor() {
|
|
45770
45769
|
super(...arguments);
|
|
@@ -46151,7 +46150,7 @@ var FormController = class extends ControlController {
|
|
|
46151
46150
|
* @return {*} {IData}
|
|
46152
46151
|
*/
|
|
46153
46152
|
checkIgnoreInput(data) {
|
|
46154
|
-
const formData =
|
|
46153
|
+
const formData = clone26(data);
|
|
46155
46154
|
const formDataUIMap = formData.$dataUIMap;
|
|
46156
46155
|
const isCreate = formData.srfuf === 0 /* CREATE */;
|
|
46157
46156
|
this.formItems.forEach((formItem) => {
|
|
@@ -46444,7 +46443,7 @@ var FormController = class extends ControlController {
|
|
|
46444
46443
|
this.params,
|
|
46445
46444
|
this.context
|
|
46446
46445
|
);
|
|
46447
|
-
const tempParams =
|
|
46446
|
+
const tempParams = clone26(jsonSchemaQuery);
|
|
46448
46447
|
Object.assign(tempParams, this.params);
|
|
46449
46448
|
const json = await getEntitySchema(
|
|
46450
46449
|
this.model.appDataEntityId,
|
|
@@ -46463,7 +46462,7 @@ import { recursiveIterate as recursiveIterate10 } from "@ibiz-template/core";
|
|
|
46463
46462
|
|
|
46464
46463
|
// src/controller/control/form/form/form.service.ts
|
|
46465
46464
|
import { recursiveIterate as recursiveIterate9 } from "@ibiz-template/core";
|
|
46466
|
-
import { clone as
|
|
46465
|
+
import { clone as clone27, isNil as isNil19, isNotNil as isNotNil5 } from "ramda";
|
|
46467
46466
|
var FormService = class extends ControlService {
|
|
46468
46467
|
constructor() {
|
|
46469
46468
|
super(...arguments);
|
|
@@ -46528,7 +46527,7 @@ var FormService = class extends ControlService {
|
|
|
46528
46527
|
* @return {*} {IParams}
|
|
46529
46528
|
*/
|
|
46530
46529
|
getLoadParams(params) {
|
|
46531
|
-
const copyArgs =
|
|
46530
|
+
const copyArgs = clone27(params);
|
|
46532
46531
|
const defaultData = {};
|
|
46533
46532
|
if (copyArgs.srfdefdata) {
|
|
46534
46533
|
Object.assign(defaultData, copyArgs.srfdefdata);
|
|
@@ -48086,7 +48085,7 @@ var FormDRUIPartController = class extends FormDetailController {
|
|
|
48086
48085
|
};
|
|
48087
48086
|
|
|
48088
48087
|
// src/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.ts
|
|
48089
|
-
import { clone as
|
|
48088
|
+
import { clone as clone28 } from "ramda";
|
|
48090
48089
|
|
|
48091
48090
|
// src/controller/control/form/form-detail/form-container/form-container.controller.ts
|
|
48092
48091
|
import { isNotNil as isNotNil6 } from "ramda";
|
|
@@ -48255,7 +48254,7 @@ var FormGroupPanelController = class extends FormContainerController {
|
|
|
48255
48254
|
*/
|
|
48256
48255
|
async onActionClick(detail, event, args) {
|
|
48257
48256
|
const actionId = detail.uiactionId;
|
|
48258
|
-
const tempParams =
|
|
48257
|
+
const tempParams = clone28(this.form.params);
|
|
48259
48258
|
if (args) {
|
|
48260
48259
|
Object.assign(tempParams, args);
|
|
48261
48260
|
}
|
|
@@ -49485,7 +49484,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
49485
49484
|
|
|
49486
49485
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.ts
|
|
49487
49486
|
import { ModelError as ModelError19, recursiveIterate as recursiveIterate11 } from "@ibiz-template/core";
|
|
49488
|
-
import { clone as
|
|
49487
|
+
import { clone as clone29, isNil as isNil20 } from "ramda";
|
|
49489
49488
|
var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
49490
49489
|
constructor() {
|
|
49491
49490
|
super(...arguments);
|
|
@@ -49601,7 +49600,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
49601
49600
|
copyFields.forEach((key) => {
|
|
49602
49601
|
tempForm[key] = this.form.model[key];
|
|
49603
49602
|
});
|
|
49604
|
-
this.repeatedForm =
|
|
49603
|
+
this.repeatedForm = clone29(tempForm);
|
|
49605
49604
|
this.convertMultipleLanguages();
|
|
49606
49605
|
}
|
|
49607
49606
|
/**
|
|
@@ -50359,14 +50358,14 @@ var FormIFrameController = class extends FormDetailController {
|
|
|
50359
50358
|
// src/controller/control/form/edit-form/edit-form.controller.ts
|
|
50360
50359
|
import {
|
|
50361
50360
|
awaitTimeout,
|
|
50362
|
-
IBizContext as
|
|
50361
|
+
IBizContext as IBizContext6,
|
|
50363
50362
|
isElementSame as isElementSame3,
|
|
50364
50363
|
mergeInLeft as mergeInLeft3,
|
|
50365
50364
|
RuntimeError as RuntimeError39
|
|
50366
50365
|
} from "@ibiz-template/core";
|
|
50367
50366
|
import { debounce } from "lodash-es";
|
|
50368
50367
|
import { createUUID as createUUID9 } from "qx-util";
|
|
50369
|
-
import { clone as
|
|
50368
|
+
import { clone as clone30, isNil as isNil21 } from "ramda";
|
|
50370
50369
|
|
|
50371
50370
|
// src/controller/control/form/edit-form/edit-form.service.ts
|
|
50372
50371
|
import {
|
|
@@ -50811,8 +50810,8 @@ var EditFormController = class extends FormController {
|
|
|
50811
50810
|
* @return {*} {Promise<IData>}
|
|
50812
50811
|
*/
|
|
50813
50812
|
async copy() {
|
|
50814
|
-
const context =
|
|
50815
|
-
const queryParams =
|
|
50813
|
+
const context = clone30(this.context);
|
|
50814
|
+
const queryParams = clone30(this.params);
|
|
50816
50815
|
const appDataEntity = await ibiz.hub.getAppDataEntity(
|
|
50817
50816
|
this.model.appDataEntityId,
|
|
50818
50817
|
this.model.appId
|
|
@@ -50871,7 +50870,7 @@ var EditFormController = class extends FormController {
|
|
|
50871
50870
|
return this.loadDraft();
|
|
50872
50871
|
}
|
|
50873
50872
|
const { context, params } = this.handlerAbilityParams(args);
|
|
50874
|
-
const queryParams =
|
|
50873
|
+
const queryParams = clone30(params);
|
|
50875
50874
|
const silent = this.getSilent(args) === true;
|
|
50876
50875
|
let res;
|
|
50877
50876
|
try {
|
|
@@ -51222,7 +51221,7 @@ var EditFormController = class extends FormController {
|
|
|
51222
51221
|
switch (autoSaveMode) {
|
|
51223
51222
|
case 3:
|
|
51224
51223
|
saveParam.data = this.getDiffData();
|
|
51225
|
-
saveParam.context =
|
|
51224
|
+
saveParam.context = IBizContext6.create({ srfsimple: true });
|
|
51226
51225
|
break;
|
|
51227
51226
|
default:
|
|
51228
51227
|
}
|
|
@@ -51252,7 +51251,7 @@ var EditFormController = class extends FormController {
|
|
|
51252
51251
|
switch (autoSaveMode) {
|
|
51253
51252
|
case 3:
|
|
51254
51253
|
saveParam.data = this.getDiffData();
|
|
51255
|
-
saveParam.context =
|
|
51254
|
+
saveParam.context = IBizContext6.create({ srfsimple: true });
|
|
51256
51255
|
break;
|
|
51257
51256
|
default:
|
|
51258
51257
|
}
|
|
@@ -51756,7 +51755,7 @@ import {
|
|
|
51756
51755
|
mergeDefaultInLeft as mergeDefaultInLeft2,
|
|
51757
51756
|
debounceAndAsyncMerge as debounceAndAsyncMerge2
|
|
51758
51757
|
} from "@ibiz-template/core";
|
|
51759
|
-
import { clone as
|
|
51758
|
+
import { clone as clone32 } from "ramda";
|
|
51760
51759
|
import dayjs6 from "dayjs";
|
|
51761
51760
|
|
|
51762
51761
|
// src/controller/control/grid/grid/grid.service.ts
|
|
@@ -51927,7 +51926,7 @@ async function calcColumnModelBySchema(json, c) {
|
|
|
51927
51926
|
}
|
|
51928
51927
|
|
|
51929
51928
|
// src/controller/control/grid/grid/auto-grid.util.ts
|
|
51930
|
-
import { clone as
|
|
51929
|
+
import { clone as clone31 } from "ramda";
|
|
51931
51930
|
import { mergeDefaultInLeft } from "@ibiz-template/core";
|
|
51932
51931
|
var TypeToDataType2 = {
|
|
51933
51932
|
string: 25,
|
|
@@ -51980,7 +51979,7 @@ function getEditorModel(item, appId2, enableCond, isSingleSelect = false) {
|
|
|
51980
51979
|
type = "dropdown";
|
|
51981
51980
|
if (enableCond === 0)
|
|
51982
51981
|
type = "span";
|
|
51983
|
-
const model = Object.assign(
|
|
51982
|
+
const model = Object.assign(clone31(TypeToEditor[type]), {
|
|
51984
51983
|
appId: appId2
|
|
51985
51984
|
});
|
|
51986
51985
|
if (type === "dropdown" && isSingleSelect)
|
|
@@ -52131,7 +52130,7 @@ async function initModelByEntitySchema(c) {
|
|
|
52131
52130
|
if (!json)
|
|
52132
52131
|
return;
|
|
52133
52132
|
const { degridColumns, degridDataItems, degridEditItems, degridEditItemVRs } = await calcColumnModelBySchema2(json, c);
|
|
52134
|
-
c.model =
|
|
52133
|
+
c.model = clone31(c.model);
|
|
52135
52134
|
const uaColumns = ((_a3 = c.model.degridColumns) == null ? void 0 : _a3.filter(
|
|
52136
52135
|
(column) => column.columnType === "UAGRIDCOLUMN"
|
|
52137
52136
|
)) || [];
|
|
@@ -52178,7 +52177,7 @@ async function switchRowEditDynamic(c, row, editable, _isSave = true) {
|
|
|
52178
52177
|
await switchRowEditDynamic(c, editingRow);
|
|
52179
52178
|
}
|
|
52180
52179
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
52181
|
-
row.cacheData =
|
|
52180
|
+
row.cacheData = clone31(row.data);
|
|
52182
52181
|
const defaultVal = c.calcDefaultValue(row.data, false);
|
|
52183
52182
|
Object.assign(row.data, defaultVal);
|
|
52184
52183
|
}
|
|
@@ -52617,7 +52616,7 @@ var GridController = class extends MDControlController {
|
|
|
52617
52616
|
if (!this.addSchemaColumn) {
|
|
52618
52617
|
return;
|
|
52619
52618
|
}
|
|
52620
|
-
const tempParams =
|
|
52619
|
+
const tempParams = clone32(this.jsonSchemaParams);
|
|
52621
52620
|
Object.assign(tempParams, this.params);
|
|
52622
52621
|
const json = await getEntitySchema(
|
|
52623
52622
|
this.model.appDataEntityId,
|
|
@@ -52631,7 +52630,7 @@ var GridController = class extends MDControlController {
|
|
|
52631
52630
|
if (result && result.degridColumns.length > 0) {
|
|
52632
52631
|
const { degridColumns, degridDataItems } = result;
|
|
52633
52632
|
this.allCustomColumns = degridColumns;
|
|
52634
|
-
this.model =
|
|
52633
|
+
this.model = clone32(this.model);
|
|
52635
52634
|
this.model.degridColumns = [
|
|
52636
52635
|
...this.model.degridColumns || [],
|
|
52637
52636
|
...degridColumns
|
|
@@ -52836,7 +52835,7 @@ var GridController = class extends MDControlController {
|
|
|
52836
52835
|
async execGroup(arg, _params) {
|
|
52837
52836
|
var _a3;
|
|
52838
52837
|
const group = arg[0];
|
|
52839
|
-
this.model =
|
|
52838
|
+
this.model = clone32(this.model);
|
|
52840
52839
|
this.model.groupMode = "AUTO";
|
|
52841
52840
|
const { columnStates } = this.state;
|
|
52842
52841
|
const column = (_a3 = this.model.degridColumns) == null ? void 0 : _a3.find(
|
|
@@ -53390,7 +53389,7 @@ var GridController = class extends MDControlController {
|
|
|
53390
53389
|
await this.switchRowEdit(editingRow, false, false);
|
|
53391
53390
|
}
|
|
53392
53391
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
53393
|
-
row.cacheData =
|
|
53392
|
+
row.cacheData = clone32(row.data);
|
|
53394
53393
|
const defaultVal = this.calcDefaultValue(row.data, false);
|
|
53395
53394
|
Object.assign(row.data, defaultVal);
|
|
53396
53395
|
}
|
|
@@ -53577,7 +53576,7 @@ var GridController = class extends MDControlController {
|
|
|
53577
53576
|
* @Date: 2024-03-20 17:54:16
|
|
53578
53577
|
*/
|
|
53579
53578
|
formatExcelData(data, fields) {
|
|
53580
|
-
const cloneData =
|
|
53579
|
+
const cloneData = clone32(
|
|
53581
53580
|
data.map((item) => {
|
|
53582
53581
|
return fields.reduce((obj, key) => {
|
|
53583
53582
|
obj[key] = item[key];
|
|
@@ -53711,7 +53710,7 @@ var GridController = class extends MDControlController {
|
|
|
53711
53710
|
if (params.srfexportparams) {
|
|
53712
53711
|
Object.assign(fetchParams, params.srfexportparams);
|
|
53713
53712
|
}
|
|
53714
|
-
const tempContext =
|
|
53713
|
+
const tempContext = clone32(this.context);
|
|
53715
53714
|
if (params.srfdatatype) {
|
|
53716
53715
|
Object.assign(tempContext, {
|
|
53717
53716
|
srfdatatype: params.srfdatatype
|
|
@@ -54148,7 +54147,7 @@ import {
|
|
|
54148
54147
|
} from "@ibiz-template/core";
|
|
54149
54148
|
import dayjs7 from "dayjs";
|
|
54150
54149
|
import { debounce as debounce2 } from "lodash-es";
|
|
54151
|
-
import { clone as
|
|
54150
|
+
import { clone as clone33, isNil as isNil22 } from "ramda";
|
|
54152
54151
|
import { isNilOrEmpty as isNilOrEmpty7 } from "qx-util";
|
|
54153
54152
|
var GridFieldColumnController = class extends GridColumnController {
|
|
54154
54153
|
constructor() {
|
|
@@ -54345,7 +54344,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
54345
54344
|
srfkey: value,
|
|
54346
54345
|
...wfContext
|
|
54347
54346
|
});
|
|
54348
|
-
const tempParams =
|
|
54347
|
+
const tempParams = clone33(this.params);
|
|
54349
54348
|
const { context: newContext, params: newParams } = this.handlePublicParams(
|
|
54350
54349
|
row.data,
|
|
54351
54350
|
tempContext,
|
|
@@ -54384,7 +54383,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
54384
54383
|
async triggerAction(row, event) {
|
|
54385
54384
|
const actionId = this.model.deuiactionId;
|
|
54386
54385
|
const tempContext = this.context.clone();
|
|
54387
|
-
const tempParams =
|
|
54386
|
+
const tempParams = clone33(this.params);
|
|
54388
54387
|
const { userParam } = this.model;
|
|
54389
54388
|
if (userParam) {
|
|
54390
54389
|
const { navigateContexts, navigateParams } = parseUserParams(userParam);
|
|
@@ -54937,7 +54936,7 @@ var GridGroupColumnController = class extends GridColumnController {
|
|
|
54937
54936
|
import { createUUID as createUUID10, isBoolean as isBoolean3 } from "qx-util";
|
|
54938
54937
|
import { isNil as isNil23 } from "ramda";
|
|
54939
54938
|
import {
|
|
54940
|
-
clone as
|
|
54939
|
+
clone as clone35,
|
|
54941
54940
|
DataTypes as DataTypes5,
|
|
54942
54941
|
isElementSame as isElementSame4,
|
|
54943
54942
|
RuntimeModelError as RuntimeModelError55
|
|
@@ -54945,7 +54944,7 @@ import {
|
|
|
54945
54944
|
import dayjs8 from "dayjs";
|
|
54946
54945
|
|
|
54947
54946
|
// src/controller/control/list/list.service.ts
|
|
54948
|
-
import { clone as
|
|
54947
|
+
import { clone as clone34 } from "@ibiz-template/core";
|
|
54949
54948
|
var ListService = class extends MDControlService2 {
|
|
54950
54949
|
/**
|
|
54951
54950
|
* @description 移动并排序数据
|
|
@@ -54957,7 +54956,7 @@ var ListService = class extends MDControlService2 {
|
|
|
54957
54956
|
*/
|
|
54958
54957
|
async moveOrderItem(context, data, args) {
|
|
54959
54958
|
const moveAction = this.model.moveControlAction.appDEMethodId;
|
|
54960
|
-
const params =
|
|
54959
|
+
const params = clone34(data.getOrigin());
|
|
54961
54960
|
Object.assign(params, args);
|
|
54962
54961
|
let res = await this.exec(moveAction, context, params, {
|
|
54963
54962
|
srfupdateitem: true
|
|
@@ -55301,7 +55300,7 @@ var ListController = class extends MDControlController {
|
|
|
55301
55300
|
*/
|
|
55302
55301
|
async execGroup(arg, _params) {
|
|
55303
55302
|
const group = arg[0];
|
|
55304
|
-
this.model =
|
|
55303
|
+
this.model = clone35(this.model);
|
|
55305
55304
|
this.model.groupMode = "AUTO";
|
|
55306
55305
|
if (!group || !group.groupFieldId) {
|
|
55307
55306
|
this.state.groups = [];
|
|
@@ -55646,7 +55645,7 @@ var ListController = class extends MDControlController {
|
|
|
55646
55645
|
const { groupAppDEFieldId, moveControlAction, minorSortAppDEFieldId } = this.model;
|
|
55647
55646
|
const fromGroup = this.state.groups.find((x) => x.key === from);
|
|
55648
55647
|
const toGroup = this.state.groups.find((x) => x.key === to);
|
|
55649
|
-
const draggedItem =
|
|
55648
|
+
const draggedItem = clone35(
|
|
55650
55649
|
(fromGroup == null ? void 0 : fromGroup.children[fromIndex]) || this.state.items[fromIndex]
|
|
55651
55650
|
);
|
|
55652
55651
|
if (from !== to && groupAppDEFieldId)
|
|
@@ -55990,7 +55989,7 @@ var TreeCodeListNodeData = class extends TreeNodeData {
|
|
|
55990
55989
|
|
|
55991
55990
|
// src/service/vo/tree-node-data/tree-data-set-node-data.ts
|
|
55992
55991
|
import { updateKeyDefine as updateKeyDefine2 } from "@ibiz-template/core";
|
|
55993
|
-
import { clone as
|
|
55992
|
+
import { clone as clone36, isNil as isNil25 } from "ramda";
|
|
55994
55993
|
var CloneExcludeKeys = [
|
|
55995
55994
|
"_id",
|
|
55996
55995
|
"srfnodeid",
|
|
@@ -56110,7 +56109,7 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
56110
56109
|
}
|
|
56111
56110
|
};
|
|
56112
56111
|
this.clone = () => {
|
|
56113
|
-
const cloneData =
|
|
56112
|
+
const cloneData = clone36(this._deData);
|
|
56114
56113
|
const cloneNodeData = new _TreeDataSetNodeData(model, this._parent, {
|
|
56115
56114
|
data: cloneData,
|
|
56116
56115
|
leaf: this._leaf,
|
|
@@ -56955,7 +56954,7 @@ var GanttNodeLinkData = class {
|
|
|
56955
56954
|
};
|
|
56956
56955
|
|
|
56957
56956
|
// src/service/vo/code-list-data-item/code-list-data-item.ts
|
|
56958
|
-
import { clone as
|
|
56957
|
+
import { clone as clone37 } from "ramda";
|
|
56959
56958
|
var CodeListDataItem = class {
|
|
56960
56959
|
/**
|
|
56961
56960
|
* Creates an instance of CodeListDataItem.
|
|
@@ -57073,7 +57072,7 @@ var CodeListDataItem = class {
|
|
|
57073
57072
|
try {
|
|
57074
57073
|
this.data = ScriptFactory.execSingleLine(
|
|
57075
57074
|
dataAppDEFieldId,
|
|
57076
|
-
this.$origin instanceof AppDataEntity ?
|
|
57075
|
+
this.$origin instanceof AppDataEntity ? clone37(this.$origin._data) : clone37(this.$origin)
|
|
57077
57076
|
);
|
|
57078
57077
|
} catch (error) {
|
|
57079
57078
|
ibiz.log.error(ibiz.i18n.t("runtime.service.dynamicCodeTable"));
|
|
@@ -57122,7 +57121,7 @@ var CodeListDataItem = class {
|
|
|
57122
57121
|
this.tooltip = void 0;
|
|
57123
57122
|
this.userData = void 0;
|
|
57124
57123
|
Object.keys(
|
|
57125
|
-
data instanceof AppDataEntity ?
|
|
57124
|
+
data instanceof AppDataEntity ? clone37(data._data) : clone37(data)
|
|
57126
57125
|
).forEach((key) => {
|
|
57127
57126
|
if (!Object.prototype.hasOwnProperty.call(this, key))
|
|
57128
57127
|
Object.defineProperty(this, key, {
|
|
@@ -61029,7 +61028,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
61029
61028
|
|
|
61030
61029
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
61031
61030
|
import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
|
|
61032
|
-
import { clone as
|
|
61031
|
+
import { clone as clone38, isNil as isNil28, isNotNil as isNotNil8 } from "ramda";
|
|
61033
61032
|
import { createUUID as createUUID15 } from "qx-util";
|
|
61034
61033
|
|
|
61035
61034
|
// src/controller/control/md-ctrl/md-ctrl.service.ts
|
|
@@ -61673,7 +61672,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
61673
61672
|
* @memberof MDCtrlController
|
|
61674
61673
|
*/
|
|
61675
61674
|
formatExcelData(data, fields) {
|
|
61676
|
-
const cloneData =
|
|
61675
|
+
const cloneData = clone38(
|
|
61677
61676
|
data.map((item) => {
|
|
61678
61677
|
return fields.reduce((obj, key) => {
|
|
61679
61678
|
obj[key] = item[key];
|
|
@@ -61759,7 +61758,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
61759
61758
|
tempParams.srfexportdataset = params.srfexportdataset;
|
|
61760
61759
|
}
|
|
61761
61760
|
Object.assign(fetchParams, tempParams);
|
|
61762
|
-
const tempContext =
|
|
61761
|
+
const tempContext = clone38(this.context);
|
|
61763
61762
|
if (params.srfdatatype) {
|
|
61764
61763
|
Object.assign(tempContext, {
|
|
61765
61764
|
srfdatatype: params.srfdatatype
|
|
@@ -61820,7 +61819,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
61820
61819
|
|
|
61821
61820
|
// src/controller/control/kanban/kanban.controller.ts
|
|
61822
61821
|
import {
|
|
61823
|
-
clone as
|
|
61822
|
+
clone as clone39,
|
|
61824
61823
|
RuntimeError as RuntimeError46,
|
|
61825
61824
|
isElementSame as isElementSame5,
|
|
61826
61825
|
RuntimeModelError as RuntimeModelError58
|
|
@@ -62168,7 +62167,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
62168
62167
|
} = this.model;
|
|
62169
62168
|
const fromGroup = this.state.groups.find((x) => x.key === from);
|
|
62170
62169
|
const toGroup = this.state.groups.find((x) => x.key === to);
|
|
62171
|
-
const draggedItem =
|
|
62170
|
+
const draggedItem = clone39(fromGroup.children[fromIndex]);
|
|
62172
62171
|
if (from !== to && groupAppDEFieldId)
|
|
62173
62172
|
draggedItem[groupAppDEFieldId] = to;
|
|
62174
62173
|
if (fromLane !== toLane && swimlaneAppDEFieldId)
|
|
@@ -62388,7 +62387,7 @@ import {
|
|
|
62388
62387
|
recursiveIterate as recursiveIterate16,
|
|
62389
62388
|
RuntimeModelError as RuntimeModelError59
|
|
62390
62389
|
} from "@ibiz-template/core";
|
|
62391
|
-
import { clone as
|
|
62390
|
+
import { clone as clone40 } from "ramda";
|
|
62392
62391
|
|
|
62393
62392
|
// src/controller/control/tree-grid-ex/tree-grid-ex.service.ts
|
|
62394
62393
|
var TreeGridExService = class extends TreeService {
|
|
@@ -62985,7 +62984,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
62985
62984
|
);
|
|
62986
62985
|
}
|
|
62987
62986
|
if (row.data._deData.srfuf === 1 /* UPDATE */) {
|
|
62988
|
-
row.cacheData =
|
|
62987
|
+
row.cacheData = clone40(row.data);
|
|
62989
62988
|
const defaultVal = this.calcDefaultValue(row.data, false);
|
|
62990
62989
|
Object.assign(row.data, defaultVal);
|
|
62991
62990
|
}
|
|
@@ -63144,7 +63143,7 @@ import {
|
|
|
63144
63143
|
RuntimeError as RuntimeError48,
|
|
63145
63144
|
RuntimeModelError as RuntimeModelError60
|
|
63146
63145
|
} from "@ibiz-template/core";
|
|
63147
|
-
import { clone as
|
|
63146
|
+
import { clone as clone41 } from "ramda";
|
|
63148
63147
|
import dayjs9 from "dayjs";
|
|
63149
63148
|
var TreeGridExNodeColumnController = class {
|
|
63150
63149
|
/**
|
|
@@ -63357,7 +63356,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
63357
63356
|
srfkey: value,
|
|
63358
63357
|
...wfContext
|
|
63359
63358
|
});
|
|
63360
|
-
const tempParams =
|
|
63359
|
+
const tempParams = clone41(this.params);
|
|
63361
63360
|
const { userParam } = this.nodeColumn;
|
|
63362
63361
|
if (userParam) {
|
|
63363
63362
|
const { navigateContexts, navigateParams } = parseUserParams(userParam);
|
|
@@ -64714,7 +64713,7 @@ var ChartUtil = class {
|
|
|
64714
64713
|
};
|
|
64715
64714
|
|
|
64716
64715
|
// src/controller/control/report-panel/generator/bi-converter/base/echart-converter-base.ts
|
|
64717
|
-
import { clone as
|
|
64716
|
+
import { clone as clone42 } from "ramda";
|
|
64718
64717
|
var EchartConverterBase = class extends ConverterBase {
|
|
64719
64718
|
constructor() {
|
|
64720
64719
|
super(...arguments);
|
|
@@ -65070,7 +65069,7 @@ var EchartConverterBase = class extends ConverterBase {
|
|
|
65070
65069
|
calcSeriesModel(measures, dimension, groupDimension) {
|
|
65071
65070
|
const seriesModels = [];
|
|
65072
65071
|
measures.forEach((item, index) => {
|
|
65073
|
-
const seriesModel =
|
|
65072
|
+
const seriesModel = clone42(this.mockSerieModel);
|
|
65074
65073
|
Object.assign(seriesModel, {
|
|
65075
65074
|
id: "".concat(seriesModel.seriesType, "_").concat(index),
|
|
65076
65075
|
caption: item.measureName,
|
|
@@ -65098,7 +65097,7 @@ var EchartConverterBase = class extends ConverterBase {
|
|
|
65098
65097
|
translateDataToReport(items) {
|
|
65099
65098
|
if (!this.measures.length || !this.dimensions.length)
|
|
65100
65099
|
return;
|
|
65101
|
-
const model =
|
|
65100
|
+
const model = clone42(this.mockModel);
|
|
65102
65101
|
const seriesModels = this.calcSeriesModel(
|
|
65103
65102
|
this.measures,
|
|
65104
65103
|
this.dimensions[0],
|
|
@@ -65245,7 +65244,7 @@ var BarConverterBase = class extends MultiSeriesConverter {
|
|
|
65245
65244
|
};
|
|
65246
65245
|
|
|
65247
65246
|
// src/controller/control/report-panel/generator/bi-converter/base/zone-converter-base.ts
|
|
65248
|
-
import { clone as
|
|
65247
|
+
import { clone as clone43 } from "ramda";
|
|
65249
65248
|
var ZoneConverterBase = class extends MultiSeriesConverter {
|
|
65250
65249
|
/**
|
|
65251
65250
|
* @description 获取控件参数
|
|
@@ -65310,7 +65309,7 @@ var ZoneConverterBase = class extends MultiSeriesConverter {
|
|
|
65310
65309
|
calcSeriesModel(measures, dimension, groupDimension) {
|
|
65311
65310
|
const seriesModels = [];
|
|
65312
65311
|
measures.forEach((item, index) => {
|
|
65313
|
-
const seriesModel =
|
|
65312
|
+
const seriesModel = clone43(this.mockSerieModel);
|
|
65314
65313
|
Object.assign(seriesModel, {
|
|
65315
65314
|
id: "".concat(seriesModel.seriesType, "_").concat(index),
|
|
65316
65315
|
caption: item.measureName,
|
|
@@ -65685,7 +65684,7 @@ var MultiSeriesColConverter = class extends MultiSeriesConverter {
|
|
|
65685
65684
|
};
|
|
65686
65685
|
|
|
65687
65686
|
// src/controller/control/report-panel/generator/bi-converter/gauge-converter.ts
|
|
65688
|
-
import { clone as
|
|
65687
|
+
import { clone as clone44 } from "ramda";
|
|
65689
65688
|
var GaugeConverter = class extends EchartConverterBase {
|
|
65690
65689
|
constructor() {
|
|
65691
65690
|
super(...arguments);
|
|
@@ -65745,7 +65744,7 @@ var GaugeConverter = class extends EchartConverterBase {
|
|
|
65745
65744
|
calcSeriesModel(measures, dimension, groupDimension) {
|
|
65746
65745
|
const seriesModels = [];
|
|
65747
65746
|
measures.forEach((item, index) => {
|
|
65748
|
-
const seriesModel =
|
|
65747
|
+
const seriesModel = clone44(this.mockSerieModel);
|
|
65749
65748
|
Object.assign(seriesModel, {
|
|
65750
65749
|
id: "".concat(seriesModel.seriesType, "_").concat(index),
|
|
65751
65750
|
caption: item.measureName,
|
|
@@ -65773,7 +65772,7 @@ var GaugeConverter = class extends EchartConverterBase {
|
|
|
65773
65772
|
var _a3;
|
|
65774
65773
|
if (!this.measures.length)
|
|
65775
65774
|
return;
|
|
65776
|
-
const model =
|
|
65775
|
+
const model = clone44(this.mockModel);
|
|
65777
65776
|
const seriesModels = this.calcSeriesModel(
|
|
65778
65777
|
this.measures,
|
|
65779
65778
|
this.dimensions[0],
|
|
@@ -66703,7 +66702,7 @@ var ScatterConverter = class extends MultiSeriesConverter {
|
|
|
66703
66702
|
};
|
|
66704
66703
|
|
|
66705
66704
|
// src/controller/control/report-panel/generator/bi-converter/grid-converter.ts
|
|
66706
|
-
import { clone as
|
|
66705
|
+
import { clone as clone45 } from "ramda";
|
|
66707
66706
|
var GridConverter = class extends GridConverterBase {
|
|
66708
66707
|
constructor() {
|
|
66709
66708
|
super(...arguments);
|
|
@@ -66829,7 +66828,7 @@ var GridConverter = class extends GridConverterBase {
|
|
|
66829
66828
|
translateDataToReport(items) {
|
|
66830
66829
|
if (!this.measures)
|
|
66831
66830
|
return;
|
|
66832
|
-
const tempModel =
|
|
66831
|
+
const tempModel = clone45(this.mockModel);
|
|
66833
66832
|
const degridColumns = this.calcGridColumns();
|
|
66834
66833
|
const degridDataItems = this.calcGridDataItems(degridColumns);
|
|
66835
66834
|
Object.assign(tempModel, { degridColumns, degridDataItems });
|
|
@@ -66846,7 +66845,7 @@ var GridConverter = class extends GridConverterBase {
|
|
|
66846
66845
|
};
|
|
66847
66846
|
|
|
66848
66847
|
// src/controller/control/report-panel/generator/bi-converter/cross-table-converter.ts
|
|
66849
|
-
import { clone as
|
|
66848
|
+
import { clone as clone46, plus as plus5 } from "@ibiz-template/core";
|
|
66850
66849
|
var CrossTableConverter = class extends GridConverterBase {
|
|
66851
66850
|
constructor() {
|
|
66852
66851
|
super(...arguments);
|
|
@@ -67194,7 +67193,7 @@ var CrossTableConverter = class extends GridConverterBase {
|
|
|
67194
67193
|
translateDataToReport(items) {
|
|
67195
67194
|
if (!this.measures)
|
|
67196
67195
|
return;
|
|
67197
|
-
const tempModel =
|
|
67196
|
+
const tempModel = clone46(this.mockModel);
|
|
67198
67197
|
const dimensionCols = this.calcDimensionCols(items);
|
|
67199
67198
|
const degridColumns = this.calcCrossTableColumns(dimensionCols);
|
|
67200
67199
|
const mockDatas = this.calcCrossTableData(items);
|
|
@@ -69450,9 +69449,9 @@ function getMDCtrlItemProvider(model) {
|
|
|
69450
69449
|
}
|
|
69451
69450
|
|
|
69452
69451
|
// src/service/utils/app-counter/app-counter.ts
|
|
69453
|
-
import { IBizContext as
|
|
69452
|
+
import { IBizContext as IBizContext7, RuntimeError as RuntimeError58 } from "@ibiz-template/core";
|
|
69454
69453
|
import { notNilEmpty as notNilEmpty8, QXEvent as QXEvent4 } from "qx-util";
|
|
69455
|
-
import { clone as
|
|
69454
|
+
import { clone as clone47 } from "ramda";
|
|
69456
69455
|
import { toNumber } from "lodash-es";
|
|
69457
69456
|
var AppCounter8 = class {
|
|
69458
69457
|
/**
|
|
@@ -69465,7 +69464,7 @@ var AppCounter8 = class {
|
|
|
69465
69464
|
constructor(model) {
|
|
69466
69465
|
this.model = model;
|
|
69467
69466
|
this.destroyed = false;
|
|
69468
|
-
this.context =
|
|
69467
|
+
this.context = IBizContext7.create();
|
|
69469
69468
|
this.params = {};
|
|
69470
69469
|
this.evt = new QXEvent4();
|
|
69471
69470
|
/**
|
|
@@ -69534,10 +69533,10 @@ var AppCounter8 = class {
|
|
|
69534
69533
|
*/
|
|
69535
69534
|
setParams(context, params) {
|
|
69536
69535
|
if (context) {
|
|
69537
|
-
this.context =
|
|
69536
|
+
this.context = clone47(context);
|
|
69538
69537
|
}
|
|
69539
69538
|
if (params) {
|
|
69540
|
-
this.params =
|
|
69539
|
+
this.params = clone47(params);
|
|
69541
69540
|
}
|
|
69542
69541
|
}
|
|
69543
69542
|
/**
|
|
@@ -69805,12 +69804,12 @@ DEDQCondUtil.map = /* @__PURE__ */ new WeakMap();
|
|
|
69805
69804
|
|
|
69806
69805
|
// src/service/utils/dynamic-code-list/dynamic-code-list.ts
|
|
69807
69806
|
import {
|
|
69808
|
-
IBizContext as
|
|
69807
|
+
IBizContext as IBizContext8,
|
|
69809
69808
|
ModelError as ModelError24,
|
|
69810
69809
|
RuntimeModelError as RuntimeModelError63,
|
|
69811
69810
|
StringUtil as StringUtil5
|
|
69812
69811
|
} from "@ibiz-template/core";
|
|
69813
|
-
import { clone as
|
|
69812
|
+
import { clone as clone48, isNil as isNil29 } from "ramda";
|
|
69814
69813
|
import { QXEvent as QXEvent5, notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
69815
69814
|
|
|
69816
69815
|
// src/service/utils/util/util.ts
|
|
@@ -69931,7 +69930,7 @@ var DynamicCodeListCache = class {
|
|
|
69931
69930
|
* @protected
|
|
69932
69931
|
* @type {IContext}
|
|
69933
69932
|
*/
|
|
69934
|
-
this.context =
|
|
69933
|
+
this.context = IBizContext8.create();
|
|
69935
69934
|
/**
|
|
69936
69935
|
* 视图参数
|
|
69937
69936
|
*
|
|
@@ -69977,10 +69976,10 @@ var DynamicCodeListCache = class {
|
|
|
69977
69976
|
*/
|
|
69978
69977
|
setParams(context, params) {
|
|
69979
69978
|
if (context) {
|
|
69980
|
-
this.context =
|
|
69979
|
+
this.context = IBizContext8.create({}, { ...context });
|
|
69981
69980
|
}
|
|
69982
69981
|
if (params) {
|
|
69983
|
-
this.params =
|
|
69982
|
+
this.params = clone48(params);
|
|
69984
69983
|
}
|
|
69985
69984
|
}
|
|
69986
69985
|
/**
|
|
@@ -70406,7 +70405,7 @@ var DynamicCodeListCache = class {
|
|
|
70406
70405
|
};
|
|
70407
70406
|
|
|
70408
70407
|
// src/service/utils/de-cache/de-cache.ts
|
|
70409
|
-
import { where, equals, clone as
|
|
70408
|
+
import { where, equals, clone as clone49, isNil as isNil31, isEmpty as isEmpty7 } from "ramda";
|
|
70410
70409
|
import { createUUID as createUUID18 } from "qx-util";
|
|
70411
70410
|
import { RuntimeError as RuntimeError60 } from "@ibiz-template/core";
|
|
70412
70411
|
|
|
@@ -70496,7 +70495,7 @@ var DECache = class {
|
|
|
70496
70495
|
* @param {IDataEntity} entity
|
|
70497
70496
|
*/
|
|
70498
70497
|
forceUpdate(_context, entity) {
|
|
70499
|
-
this.cacheMap.set(entity.srfkey,
|
|
70498
|
+
this.cacheMap.set(entity.srfkey, clone49(entity));
|
|
70500
70499
|
ibiz.log.warn("forceUpdate", entity.srfkey, entity);
|
|
70501
70500
|
}
|
|
70502
70501
|
/**
|
|
@@ -70540,7 +70539,7 @@ var DECache = class {
|
|
|
70540
70539
|
}
|
|
70541
70540
|
entity.srftempdate = (/* @__PURE__ */ new Date()).getTime();
|
|
70542
70541
|
const commit = () => {
|
|
70543
|
-
this.cacheMap.set(entity.srfkey,
|
|
70542
|
+
this.cacheMap.set(entity.srfkey, clone49(entity));
|
|
70544
70543
|
ibiz.log.warn("add", entity.srfkey, entity);
|
|
70545
70544
|
};
|
|
70546
70545
|
const t = this.getTransaction(context);
|
|
@@ -70570,7 +70569,7 @@ var DECache = class {
|
|
|
70570
70569
|
isExistSessionId("get", context);
|
|
70571
70570
|
const data = this.cacheMap.get(srfKey);
|
|
70572
70571
|
ibiz.log.warn("get", srfKey, data);
|
|
70573
|
-
return
|
|
70572
|
+
return clone49(data);
|
|
70574
70573
|
} catch (err) {
|
|
70575
70574
|
ibiz.log.error(err);
|
|
70576
70575
|
return null;
|
|
@@ -70606,7 +70605,7 @@ var DECache = class {
|
|
|
70606
70605
|
}
|
|
70607
70606
|
}
|
|
70608
70607
|
entity.srftempdate = (/* @__PURE__ */ new Date()).getTime();
|
|
70609
|
-
const _data =
|
|
70608
|
+
const _data = clone49(data);
|
|
70610
70609
|
_data.assign(entity);
|
|
70611
70610
|
const commit = () => {
|
|
70612
70611
|
data.assign(entity);
|
|
@@ -70689,7 +70688,7 @@ var DECache = class {
|
|
|
70689
70688
|
entity.srfkey = createUUID18();
|
|
70690
70689
|
}
|
|
70691
70690
|
entity.srftempdate = (/* @__PURE__ */ new Date()).getTime();
|
|
70692
|
-
const data =
|
|
70691
|
+
const data = clone49(entity);
|
|
70693
70692
|
if (t) {
|
|
70694
70693
|
t.change(data.srfkey, () => {
|
|
70695
70694
|
commit(data);
|
|
@@ -70745,7 +70744,7 @@ var DECache = class {
|
|
|
70745
70744
|
}
|
|
70746
70745
|
}
|
|
70747
70746
|
entity.srftempdate = (/* @__PURE__ */ new Date()).getTime();
|
|
70748
|
-
const _data =
|
|
70747
|
+
const _data = clone49(data);
|
|
70749
70748
|
_data.assign(entity);
|
|
70750
70749
|
entities[i] = _data;
|
|
70751
70750
|
if (t) {
|
|
@@ -71603,7 +71602,7 @@ CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
|
71603
71602
|
// src/service/service/entity/de.service.ts
|
|
71604
71603
|
import {
|
|
71605
71604
|
HttpError as HttpError6,
|
|
71606
|
-
IBizContext as
|
|
71605
|
+
IBizContext as IBizContext9,
|
|
71607
71606
|
ModelError as ModelError26,
|
|
71608
71607
|
RuntimeError as RuntimeError63,
|
|
71609
71608
|
RuntimeModelError as RuntimeModelError66
|
|
@@ -72003,7 +72002,7 @@ var FileService = class {
|
|
|
72003
72002
|
};
|
|
72004
72003
|
|
|
72005
72004
|
// src/service/app-data-entity/app-data-entity.ts
|
|
72006
|
-
import { clone as
|
|
72005
|
+
import { clone as clone50, isNil as isNil33 } from "ramda";
|
|
72007
72006
|
import { DataTypes as DataTypes8 } from "@ibiz-template/core";
|
|
72008
72007
|
import { createUUID as createUUID19 } from "qx-util";
|
|
72009
72008
|
var AppDataEntity = class _AppDataEntity {
|
|
@@ -72027,7 +72026,7 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
72027
72026
|
Object.defineProperty(this, "_data", {
|
|
72028
72027
|
enumerable: false,
|
|
72029
72028
|
configurable: true,
|
|
72030
|
-
value: data instanceof _AppDataEntity ?
|
|
72029
|
+
value: data instanceof _AppDataEntity ? clone50(data._data) : clone50(data)
|
|
72031
72030
|
});
|
|
72032
72031
|
Object.defineProperty(this, "srfdeid", {
|
|
72033
72032
|
get() {
|
|
@@ -72229,7 +72228,7 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
72229
72228
|
|
|
72230
72229
|
// src/service/dto/method.dto.ts
|
|
72231
72230
|
import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
|
|
72232
|
-
import { clone as
|
|
72231
|
+
import { clone as clone51 } from "ramda";
|
|
72233
72232
|
var MethodDto = class {
|
|
72234
72233
|
/**
|
|
72235
72234
|
* Creates an instance of MethodDto.
|
|
@@ -72302,7 +72301,7 @@ var MethodDto = class {
|
|
|
72302
72301
|
});
|
|
72303
72302
|
let res;
|
|
72304
72303
|
if (deRs) {
|
|
72305
|
-
const _context =
|
|
72304
|
+
const _context = clone51(context);
|
|
72306
72305
|
const _params = {};
|
|
72307
72306
|
if (data.srfkey) {
|
|
72308
72307
|
_context[this.entity.codeName.toLowerCase()] = data.srfkey;
|
|
@@ -72636,7 +72635,7 @@ var DEService = class {
|
|
|
72636
72635
|
Object.keys(context).forEach((key) => {
|
|
72637
72636
|
result[key] = context[key];
|
|
72638
72637
|
});
|
|
72639
|
-
const tempContext =
|
|
72638
|
+
const tempContext = IBizContext9.create(result);
|
|
72640
72639
|
const method = await this.getMethod(id);
|
|
72641
72640
|
if (method) {
|
|
72642
72641
|
const processTag = createUUID20();
|
|
@@ -73616,9 +73615,9 @@ import {
|
|
|
73616
73615
|
RuntimeError as RuntimeError65,
|
|
73617
73616
|
RuntimeModelError as RuntimeModelError68
|
|
73618
73617
|
} from "@ibiz-template/core";
|
|
73619
|
-
import { isArray as
|
|
73618
|
+
import { isArray as isArray10, isNil as isNil36, isUndefined as isUndefined2 } from "lodash-es";
|
|
73620
73619
|
import { ascSort } from "qx-util";
|
|
73621
|
-
import { clone as
|
|
73620
|
+
import { clone as clone52 } from "ramda";
|
|
73622
73621
|
|
|
73623
73622
|
// src/service/service/entity/method/method.ts
|
|
73624
73623
|
import { HttpResponse as HttpResponse4, RuntimeModelError as RuntimeModelError67 } from "@ibiz-template/core";
|
|
@@ -73928,7 +73927,7 @@ var DEActionMethod = class extends Method {
|
|
|
73928
73927
|
* @return {*} {(Promise<IData | IData[]>)}
|
|
73929
73928
|
*/
|
|
73930
73929
|
async inputHandle(context, data) {
|
|
73931
|
-
if (
|
|
73930
|
+
if (isArray10(data)) {
|
|
73932
73931
|
return data;
|
|
73933
73932
|
}
|
|
73934
73933
|
return this.input.handle(context, data);
|
|
@@ -74040,7 +74039,7 @@ var DEActionMethod = class extends Method {
|
|
|
74040
74039
|
if (this.method.needResourceKey) {
|
|
74041
74040
|
let srfkey = context[this.entity.codeName.toLowerCase()];
|
|
74042
74041
|
if (isNil36(srfkey)) {
|
|
74043
|
-
srfkey =
|
|
74042
|
+
srfkey = isArray10(data) ? null : data == null ? void 0 : data[this.entity.keyAppDEFieldId];
|
|
74044
74043
|
}
|
|
74045
74044
|
path2 = "".concat(path2, "/").concat(srfkey);
|
|
74046
74045
|
}
|
|
@@ -74254,7 +74253,7 @@ var DEActionMethod = class extends Method {
|
|
|
74254
74253
|
try {
|
|
74255
74254
|
const addData = this.createEntity(entity);
|
|
74256
74255
|
let resultData;
|
|
74257
|
-
if (
|
|
74256
|
+
if (isArray10(addData)) {
|
|
74258
74257
|
const result = await Promise.all(
|
|
74259
74258
|
addData.map(
|
|
74260
74259
|
(item) => this.service.local.add(context, this.attach(context, item))
|
|
@@ -74385,7 +74384,7 @@ var DEActionMethod = class extends Method {
|
|
|
74385
74384
|
context,
|
|
74386
74385
|
minorAppDataEntityId
|
|
74387
74386
|
);
|
|
74388
|
-
const _context =
|
|
74387
|
+
const _context = clone52(context);
|
|
74389
74388
|
_context[this.entity.codeName.toLowerCase()] = key;
|
|
74390
74389
|
const _tempParams = {};
|
|
74391
74390
|
_tempParams.srfdefaultcond = {
|
|
@@ -74463,7 +74462,7 @@ var DEActionMethod = class extends Method {
|
|
|
74463
74462
|
try {
|
|
74464
74463
|
const updateData = this.createEntity(entity);
|
|
74465
74464
|
let resultData;
|
|
74466
|
-
if (
|
|
74465
|
+
if (isArray10(updateData)) {
|
|
74467
74466
|
const result = await Promise.all(
|
|
74468
74467
|
updateData.map(
|
|
74469
74468
|
(item) => this.service.local.update(context, this.attach(context, item))
|
|
@@ -74649,8 +74648,8 @@ import {
|
|
|
74649
74648
|
RuntimeError as RuntimeError66,
|
|
74650
74649
|
RuntimeModelError as RuntimeModelError69
|
|
74651
74650
|
} from "@ibiz-template/core";
|
|
74652
|
-
import { isArray as
|
|
74653
|
-
import { clone as
|
|
74651
|
+
import { isArray as isArray11 } from "lodash-es";
|
|
74652
|
+
import { clone as clone53, isEmpty as isEmpty9, isNil as isNil37 } from "ramda";
|
|
74654
74653
|
import { ascSort as ascSort2, descSort } from "qx-util";
|
|
74655
74654
|
var FetchMethod = class extends Method {
|
|
74656
74655
|
async exec(context, params, params2, header) {
|
|
@@ -74658,7 +74657,7 @@ var FetchMethod = class extends Method {
|
|
|
74658
74657
|
if (!context.srfappid) {
|
|
74659
74658
|
return new HttpResponse6([]);
|
|
74660
74659
|
}
|
|
74661
|
-
const searchParams = params && !
|
|
74660
|
+
const searchParams = params && !isArray11(params) ? params : params2 || {};
|
|
74662
74661
|
let res;
|
|
74663
74662
|
if (this.isLocalMode) {
|
|
74664
74663
|
const orderField = (_a3 = this.entity.appDEFields) == null ? void 0 : _a3.find((appDEField) => {
|
|
@@ -74799,7 +74798,7 @@ var FetchMethod = class extends Method {
|
|
|
74799
74798
|
const { page, size } = filter;
|
|
74800
74799
|
const start = page * size;
|
|
74801
74800
|
const end = (page + 1) * size;
|
|
74802
|
-
const items = list.slice(start, end).map((item) =>
|
|
74801
|
+
const items = list.slice(start, end).map((item) => clone53(item));
|
|
74803
74802
|
return items;
|
|
74804
74803
|
}
|
|
74805
74804
|
/**
|
|
@@ -74856,7 +74855,7 @@ var FetchMethod = class extends Method {
|
|
|
74856
74855
|
const { page, size } = filter;
|
|
74857
74856
|
const start = page * size;
|
|
74858
74857
|
const end = (page + 1) * size;
|
|
74859
|
-
const items = list.slice(start, end).map((item) =>
|
|
74858
|
+
const items = list.slice(start, end).map((item) => clone53(item));
|
|
74860
74859
|
return {
|
|
74861
74860
|
items,
|
|
74862
74861
|
total: list.length,
|
|
@@ -76179,7 +76178,7 @@ var AIUtilService = class {
|
|
|
76179
76178
|
};
|
|
76180
76179
|
|
|
76181
76180
|
// src/service/mqtt/mqtt.service.ts
|
|
76182
|
-
import { clone as
|
|
76181
|
+
import { clone as clone54 } from "lodash-es";
|
|
76183
76182
|
import { QXEvent as QXEvent7, createUUID as createUUID21 } from "qx-util";
|
|
76184
76183
|
var MqttService = class {
|
|
76185
76184
|
/**
|
|
@@ -76270,7 +76269,7 @@ var MqttService = class {
|
|
|
76270
76269
|
};
|
|
76271
76270
|
const { type, subtype, content } = msg;
|
|
76272
76271
|
if (type === "COMMAND" && (subtype === "OBJECTCREATED" || subtype === "OBJECTUPDATED") && content && Object.prototype.toString.call(content) === "[object Object]" && content.srfdename) {
|
|
76273
|
-
msg.data =
|
|
76272
|
+
msg.data = clone54(content);
|
|
76274
76273
|
}
|
|
76275
76274
|
return msg;
|
|
76276
76275
|
}
|
|
@@ -76930,7 +76929,7 @@ var CustomThemeUtil = class {
|
|
|
76930
76929
|
* @return {*} {Promise<IData>}
|
|
76931
76930
|
*/
|
|
76932
76931
|
async previewCustomTheme(themeTag, themeVars = {}, isLoad = true) {
|
|
76933
|
-
const cloneThemeVars =
|
|
76932
|
+
const cloneThemeVars = clone55(themeVars);
|
|
76934
76933
|
if (isLoad) {
|
|
76935
76934
|
const result = await this.loadCustomTheme(themeTag);
|
|
76936
76935
|
if (result) {
|
|
@@ -77098,7 +77097,7 @@ var ThemeUtil = class {
|
|
|
77098
77097
|
* @memberof ThemeUtil
|
|
77099
77098
|
*/
|
|
77100
77099
|
async loadTheme(theme, type = "COLOR") {
|
|
77101
|
-
const data =
|
|
77100
|
+
const data = clone56(theme.themeParams || {});
|
|
77102
77101
|
const path2 = data["theme-package-path"] || theme.themeUrl;
|
|
77103
77102
|
delete data.appId;
|
|
77104
77103
|
delete data["theme-package-path"];
|
|
@@ -77778,8 +77777,8 @@ var baseStyle = {
|
|
|
77778
77777
|
position: "fixed",
|
|
77779
77778
|
zIndex: "10000"
|
|
77780
77779
|
};
|
|
77781
|
-
function cloneElement(
|
|
77782
|
-
const element = getAnimationElement(
|
|
77780
|
+
function cloneElement(clone62, teleport = document.body, isRemoveChild = true) {
|
|
77781
|
+
const element = getAnimationElement(clone62);
|
|
77783
77782
|
if (element == null) {
|
|
77784
77783
|
throw new Error(ibiz.i18n.t("runtime.utils.anime.noClone"));
|
|
77785
77784
|
}
|
|
@@ -78198,11 +78197,11 @@ function arrayContains(arr, val) {
|
|
|
78198
78197
|
});
|
|
78199
78198
|
}
|
|
78200
78199
|
function cloneObject(o) {
|
|
78201
|
-
var
|
|
78200
|
+
var clone62 = {};
|
|
78202
78201
|
for (var p in o) {
|
|
78203
|
-
|
|
78202
|
+
clone62[p] = o[p];
|
|
78204
78203
|
}
|
|
78205
|
-
return
|
|
78204
|
+
return clone62;
|
|
78206
78205
|
}
|
|
78207
78206
|
function replaceObjectProps(o1, o2) {
|
|
78208
78207
|
var o = cloneObject(o1);
|
|
@@ -80153,7 +80152,7 @@ var ShortCutUtil = class {
|
|
|
80153
80152
|
};
|
|
80154
80153
|
|
|
80155
80154
|
// src/utils/bi-report-util/bi-report-util.ts
|
|
80156
|
-
import { clone as
|
|
80155
|
+
import { clone as clone57 } from "ramda";
|
|
80157
80156
|
import { RuntimeError as RuntimeError72 } from "@ibiz-template/core";
|
|
80158
80157
|
var BIReportUtil = class {
|
|
80159
80158
|
/**
|
|
@@ -80169,7 +80168,7 @@ var BIReportUtil = class {
|
|
|
80169
80168
|
async openDesignPage(context, params, data) {
|
|
80170
80169
|
if (!data.mode)
|
|
80171
80170
|
data.mode = "DATA";
|
|
80172
|
-
const tempContext =
|
|
80171
|
+
const tempContext = clone57(context);
|
|
80173
80172
|
let config = {};
|
|
80174
80173
|
if (data.mode === "DATA") {
|
|
80175
80174
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
@@ -80837,7 +80836,7 @@ var RecordNavUtil = class {
|
|
|
80837
80836
|
|
|
80838
80837
|
// src/utils/jsonschema-util/jsonschema-util.ts
|
|
80839
80838
|
import qs5 from "qs";
|
|
80840
|
-
import { clone as
|
|
80839
|
+
import { clone as clone58 } from "ramda";
|
|
80841
80840
|
var JsonSchemaUtil = class {
|
|
80842
80841
|
constructor() {
|
|
80843
80842
|
/**
|
|
@@ -81142,7 +81141,7 @@ var JsonSchemaUtil = class {
|
|
|
81142
81141
|
getMockEditor(context, item, valueOP) {
|
|
81143
81142
|
if (valueOP && this.excludeOPs.includes(valueOP))
|
|
81144
81143
|
return;
|
|
81145
|
-
const baseMockEditor =
|
|
81144
|
+
const baseMockEditor = clone58(this.DataTypeToEditor[item.type]);
|
|
81146
81145
|
if (!baseMockEditor)
|
|
81147
81146
|
return;
|
|
81148
81147
|
baseMockEditor.appId = context.srfappid;
|
|
@@ -85797,7 +85796,7 @@ var ViewShellHooks = class {
|
|
|
85797
85796
|
};
|
|
85798
85797
|
|
|
85799
85798
|
// src/utils/water-mark-util/water-mark-util.ts
|
|
85800
|
-
import { isArray as
|
|
85799
|
+
import { isArray as isArray12 } from "lodash-es";
|
|
85801
85800
|
|
|
85802
85801
|
// src/utils/water-mark-util/water-mark-manager/water-mark-manager.ts
|
|
85803
85802
|
var WaterMarkManager = class {
|
|
@@ -86136,7 +86135,7 @@ var WaterMarkUtil = class {
|
|
|
86136
86135
|
return null;
|
|
86137
86136
|
const _opts = { ...option };
|
|
86138
86137
|
if (_opts.text) {
|
|
86139
|
-
_opts.text =
|
|
86138
|
+
_opts.text = isArray12(_opts.text) ? _opts.text.map(
|
|
86140
86139
|
(_textItem) => ScriptFactory.execSingleLine("`".concat(_textItem, "`"), {
|
|
86141
86140
|
context,
|
|
86142
86141
|
params,
|
|
@@ -86748,7 +86747,7 @@ function filterPresetAttrs(controlAttributes) {
|
|
|
86748
86747
|
|
|
86749
86748
|
// src/command/app/open-app-view/open-app-view.ts
|
|
86750
86749
|
import { ModelError as ModelError28, RuntimeError as RuntimeError75 } from "@ibiz-template/core";
|
|
86751
|
-
import { clone as
|
|
86750
|
+
import { clone as clone59 } from "ramda";
|
|
86752
86751
|
var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
86753
86752
|
constructor() {
|
|
86754
86753
|
ibiz.commands.register(_OpenAppViewCommand.TAG, this.exec.bind(this));
|
|
@@ -86765,7 +86764,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
86765
86764
|
* @return {*} {(Promise<IModalData | void>)}
|
|
86766
86765
|
*/
|
|
86767
86766
|
async exec(appViewId, _context, params = {}, opts = {}) {
|
|
86768
|
-
const context =
|
|
86767
|
+
const context = clone59(_context);
|
|
86769
86768
|
if (context.srfsimple) {
|
|
86770
86769
|
delete context.srfsimple;
|
|
86771
86770
|
}
|
|
@@ -87596,7 +87595,7 @@ import { QXEvent as QXEvent14 } from "qx-util";
|
|
|
87596
87595
|
|
|
87597
87596
|
// src/controller/notification/async-action.controller.ts
|
|
87598
87597
|
import { QXEvent as QXEvent12 } from "qx-util";
|
|
87599
|
-
import { clone as
|
|
87598
|
+
import { clone as clone60 } from "ramda";
|
|
87600
87599
|
import { isNil as isNil40, isNumber as isNumber5 } from "lodash-es";
|
|
87601
87600
|
import dayjs11 from "dayjs";
|
|
87602
87601
|
var AsyncActionController = class {
|
|
@@ -87709,7 +87708,7 @@ var AsyncActionController = class {
|
|
|
87709
87708
|
} else {
|
|
87710
87709
|
this.noticeResult(action);
|
|
87711
87710
|
}
|
|
87712
|
-
this.evt.emit("add",
|
|
87711
|
+
this.evt.emit("add", clone60(action));
|
|
87713
87712
|
this.evt.emit("dataChange");
|
|
87714
87713
|
}
|
|
87715
87714
|
/**
|
|
@@ -87733,7 +87732,7 @@ var AsyncActionController = class {
|
|
|
87733
87732
|
}
|
|
87734
87733
|
this.noticeResult(action);
|
|
87735
87734
|
}
|
|
87736
|
-
this.evt.emit("change",
|
|
87735
|
+
this.evt.emit("change", clone60(action));
|
|
87737
87736
|
this.evt.emit("dataChange");
|
|
87738
87737
|
}
|
|
87739
87738
|
noticeResult(action) {
|
|
@@ -89092,7 +89091,7 @@ var EngineFactory = class {
|
|
|
89092
89091
|
import {
|
|
89093
89092
|
RuntimeError as RuntimeError79,
|
|
89094
89093
|
findRecursiveChild as findRecursiveChild3,
|
|
89095
|
-
IBizContext as
|
|
89094
|
+
IBizContext as IBizContext10
|
|
89096
89095
|
} from "@ibiz-template/core";
|
|
89097
89096
|
import qs6 from "qs";
|
|
89098
89097
|
import { isNil as isNil41 } from "ramda";
|
|
@@ -89444,7 +89443,7 @@ var ViewEngineBase = class {
|
|
|
89444
89443
|
caption,
|
|
89445
89444
|
icon: model.sysImage,
|
|
89446
89445
|
appViewId: model.id,
|
|
89447
|
-
context:
|
|
89446
|
+
context: IBizContext10.create(context),
|
|
89448
89447
|
params: { ...params },
|
|
89449
89448
|
openMode: modal.mode,
|
|
89450
89449
|
fullPath: window.location.hash
|
|
@@ -89648,7 +89647,7 @@ var ViewEngineBase = class {
|
|
|
89648
89647
|
|
|
89649
89648
|
// src/engine/md-view.engine.ts
|
|
89650
89649
|
import { RuntimeModelError as RuntimeModelError70 } from "@ibiz-template/core";
|
|
89651
|
-
import { clone as
|
|
89650
|
+
import { clone as clone61 } from "ramda";
|
|
89652
89651
|
var MDViewEngine = class extends ViewEngineBase {
|
|
89653
89652
|
/**
|
|
89654
89653
|
* 多数据部件名称
|
|
@@ -89935,7 +89934,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
89935
89934
|
ibiz.i18n.t("runtime.engine.logicNewdata")
|
|
89936
89935
|
);
|
|
89937
89936
|
}
|
|
89938
|
-
const params =
|
|
89937
|
+
const params = clone61(this.view.params);
|
|
89939
89938
|
if (copyMode) {
|
|
89940
89939
|
params.srfcopymode = copyMode;
|
|
89941
89940
|
}
|