@ibiz-template/runtime 0.7.41-alpha.137 → 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 +328 -275
- package/dist/index.system.min.js +1 -1
- package/out/app-hub.d.ts.map +1 -1
- package/out/app-hub.js +47 -21
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +1 -0
- 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/global-config/i-api-global-common-config.d.ts +6 -0
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +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/api/util/i-api-app-util.d.ts +6 -0
- package/out/interface/api/util/i-api-app-util.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/out/interface/util/i-app-util/i-app-util.d.ts +7 -0
- package/out/interface/util/i-app-util/i-app-util.d.ts.map +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +1 -0
- package/out/utils/task-util/task-util.d.ts +8 -0
- package/out/utils/task-util/task-util.d.ts.map +1 -0
- package/out/utils/task-util/task-util.js +38 -0
- package/package.json +3 -3
- package/src/app-hub.ts +51 -22
- package/src/config/global-config.ts +1 -0
- 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/global-config/i-api-global-common-config.ts +7 -0
- 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/api/util/i-api-app-util.ts +7 -0
- package/src/interface/de-logic/i-de-logic-context.ts +8 -1
- package/src/interface/util/i-app-util/i-app-util.ts +9 -1
- package/src/utils/index.ts +1 -0
- package/src/utils/task-util/task-util.ts +45 -0
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);
|
|
@@ -20014,7 +20014,8 @@ var GlobalConfig = class {
|
|
|
20014
20014
|
aiUploadMaxSize: 5242880,
|
|
20015
20015
|
aiAutoQuestion: true,
|
|
20016
20016
|
asyncImport: false,
|
|
20017
|
-
aiTopicStorageMode: "DEFAULT"
|
|
20017
|
+
aiTopicStorageMode: "DEFAULT",
|
|
20018
|
+
aiInputPlaceholder: ""
|
|
20018
20019
|
};
|
|
20019
20020
|
// 全局分页流布局配置
|
|
20020
20021
|
this.drtab = {
|
|
@@ -23663,11 +23664,11 @@ var TextUtil = class {
|
|
|
23663
23664
|
};
|
|
23664
23665
|
|
|
23665
23666
|
// src/utils/theme-util/theme-util.ts
|
|
23666
|
-
import { clone as
|
|
23667
|
+
import { clone as clone56 } from "ramda";
|
|
23667
23668
|
|
|
23668
23669
|
// src/utils/theme-util/custom-theme-util.ts
|
|
23669
23670
|
import { notNilEmpty as notNilEmpty10 } from "qx-util";
|
|
23670
|
-
import { clone as
|
|
23671
|
+
import { clone as clone55 } from "ramda";
|
|
23671
23672
|
import { RuntimeError as RuntimeError70 } from "@ibiz-template/core";
|
|
23672
23673
|
|
|
23673
23674
|
// src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
|
|
@@ -25185,7 +25186,7 @@ var TreeGridExNotifyState = /* @__PURE__ */ ((TreeGridExNotifyState2) => {
|
|
|
25185
25186
|
import { notNilEmpty as notNilEmpty5 } from "qx-util";
|
|
25186
25187
|
import {
|
|
25187
25188
|
HttpError as HttpError4,
|
|
25188
|
-
IBizContext
|
|
25189
|
+
IBizContext,
|
|
25189
25190
|
Namespace
|
|
25190
25191
|
} from "@ibiz-template/core";
|
|
25191
25192
|
import { isEmpty as isEmpty5, isNil as isNil11, isNotNil as isNotNil2 } from "ramda";
|
|
@@ -26687,8 +26688,8 @@ import { RuntimeError as RuntimeError15, RuntimeModelError as RuntimeModelError1
|
|
|
26687
26688
|
import { isNil as isNil10, mergeRight as mergeRight3 } from "ramda";
|
|
26688
26689
|
|
|
26689
26690
|
// src/de-logic/index.ts
|
|
26690
|
-
import { clone as
|
|
26691
|
-
import { isArray as
|
|
26691
|
+
import { clone as clone6 } from "ramda";
|
|
26692
|
+
import { isArray as isArray5 } from "lodash-es";
|
|
26692
26693
|
import { HttpError as HttpError3, HttpResponse, RuntimeError as RuntimeError14 } from "@ibiz-template/core";
|
|
26693
26694
|
|
|
26694
26695
|
// src/de-logic/de-logic-node/de-action-node/de-action-node.ts
|
|
@@ -27555,10 +27556,10 @@ var ThrowExceptionDELogicNode = class extends DELogicNode {
|
|
|
27555
27556
|
};
|
|
27556
27557
|
|
|
27557
27558
|
// src/de-logic/de-logic.ts
|
|
27558
|
-
import {
|
|
27559
|
-
import { clone as clone6 } from "ramda";
|
|
27559
|
+
import { RuntimeModelError as RuntimeModelError14 } from "@ibiz-template/core";
|
|
27560
27560
|
|
|
27561
27561
|
// src/de-logic/de-logic-context.ts
|
|
27562
|
+
import { isArray as isArray4 } from "lodash-es";
|
|
27562
27563
|
var DELogicContext = class {
|
|
27563
27564
|
/**
|
|
27564
27565
|
* Creates an instance of DELogicContext.
|
|
@@ -27566,12 +27567,11 @@ var DELogicContext = class {
|
|
|
27566
27567
|
* @date 2023-03-24 09:15:14
|
|
27567
27568
|
* @param {Map<string, DELogicParam>} deLogicParams 实体逻辑参数集合
|
|
27568
27569
|
* @param {IContext} context 上下文
|
|
27569
|
-
* @param {IData} data 数据对象
|
|
27570
|
+
* @param {IData | IData[]} data 数据对象
|
|
27570
27571
|
* @param {IParams} params 视图参数
|
|
27571
27572
|
*/
|
|
27572
|
-
constructor(deLogicParams,
|
|
27573
|
+
constructor(deLogicParams, context, data, params) {
|
|
27573
27574
|
this.deLogicParams = deLogicParams;
|
|
27574
|
-
this.parameters = parameters;
|
|
27575
27575
|
/**
|
|
27576
27576
|
* 实体逻辑参数
|
|
27577
27577
|
*
|
|
@@ -27606,6 +27606,7 @@ var DELogicContext = class {
|
|
|
27606
27606
|
* @type {string}
|
|
27607
27607
|
*/
|
|
27608
27608
|
this.defaultParamName = "Default";
|
|
27609
|
+
this.parameters = { context, data: isArray4(data) ? data : [data], params };
|
|
27609
27610
|
}
|
|
27610
27611
|
/**
|
|
27611
27612
|
* 上下文
|
|
@@ -27904,12 +27905,11 @@ var DELogic = class {
|
|
|
27904
27905
|
* @memberof DELogic
|
|
27905
27906
|
*/
|
|
27906
27907
|
async exec(parameters) {
|
|
27907
|
-
|
|
27908
|
-
parameters.params = clone6(parameters.params || {});
|
|
27908
|
+
const { context, params, data } = parameters;
|
|
27909
27909
|
if (this.scriptFn) {
|
|
27910
|
-
return this.scriptFn.exec({
|
|
27910
|
+
return this.scriptFn.exec({ context, data, params });
|
|
27911
27911
|
}
|
|
27912
|
-
const ctx = new DELogicContext(this.params,
|
|
27912
|
+
const ctx = new DELogicContext(this.params, context, data, params);
|
|
27913
27913
|
this.initLogicParams(ctx);
|
|
27914
27914
|
const { startDELogicNodeId } = this.model;
|
|
27915
27915
|
if (startDELogicNodeId && this.nodes.has(startDELogicNodeId)) {
|
|
@@ -27970,7 +27970,7 @@ async function execDELogic(deDELogic, appDataEntity, context, data = {}, params
|
|
|
27970
27970
|
const deLogic = deLogicMap.get(deDELogic);
|
|
27971
27971
|
const result = await deLogic.exec({
|
|
27972
27972
|
context,
|
|
27973
|
-
data
|
|
27973
|
+
data,
|
|
27974
27974
|
params
|
|
27975
27975
|
});
|
|
27976
27976
|
ibiz.log.debug(
|
|
@@ -27999,9 +27999,9 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
|
|
|
27999
27999
|
}
|
|
28000
28000
|
async function execDELogicAction(deDELogic, appDataEntity, context, data, params) {
|
|
28001
28001
|
try {
|
|
28002
|
-
const _context =
|
|
28003
|
-
const _data = data ?
|
|
28004
|
-
const _params = params ?
|
|
28002
|
+
const _context = clone6(context);
|
|
28003
|
+
const _data = data ? clone6(data) : data;
|
|
28004
|
+
const _params = params ? clone6(params) : params;
|
|
28005
28005
|
const result = await execDELogic(
|
|
28006
28006
|
deDELogic,
|
|
28007
28007
|
appDataEntity,
|
|
@@ -28033,7 +28033,7 @@ async function execSingleFieldLogics(entity, type, context, data, params) {
|
|
|
28033
28033
|
async function execFieldLogics(entity, type, context, data, params = {}) {
|
|
28034
28034
|
if (!data)
|
|
28035
28035
|
return;
|
|
28036
|
-
if (
|
|
28036
|
+
if (isArray5(data)) {
|
|
28037
28037
|
await Promise.all(
|
|
28038
28038
|
data.map(
|
|
28039
28039
|
(item) => execSingleFieldLogics(entity, type, context, item, params)
|
|
@@ -28817,7 +28817,7 @@ var ViewController = class extends BaseController {
|
|
|
28817
28817
|
delete params.parentData;
|
|
28818
28818
|
}
|
|
28819
28819
|
const _model = ibiz.util.layoutPanel.fill(model);
|
|
28820
|
-
super(_model,
|
|
28820
|
+
super(_model, IBizContext.create({}, context), params || {}, new CTX(ctx));
|
|
28821
28821
|
this.session = {};
|
|
28822
28822
|
this.modal = new Modal({});
|
|
28823
28823
|
this.providers = {};
|
|
@@ -30055,11 +30055,11 @@ import {
|
|
|
30055
30055
|
HttpError as HttpError5,
|
|
30056
30056
|
StringUtil as StringUtil2,
|
|
30057
30057
|
IBizParams,
|
|
30058
|
-
IBizContext as
|
|
30058
|
+
IBizContext as IBizContext2,
|
|
30059
30059
|
NoticeError as NoticeError2,
|
|
30060
30060
|
RuntimeError as RuntimeError16
|
|
30061
30061
|
} from "@ibiz-template/core";
|
|
30062
|
-
import { clone as
|
|
30062
|
+
import { clone as clone7, isNil as isNil12, isNotNil as isNotNil3 } from "ramda";
|
|
30063
30063
|
import { notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
30064
30064
|
var ControlController = class extends BaseController {
|
|
30065
30065
|
/**
|
|
@@ -30074,7 +30074,7 @@ var ControlController = class extends BaseController {
|
|
|
30074
30074
|
constructor(model, context, params, ctx) {
|
|
30075
30075
|
super(
|
|
30076
30076
|
model,
|
|
30077
|
-
|
|
30077
|
+
IBizContext2.create({}, context),
|
|
30078
30078
|
new IBizParams({}, params),
|
|
30079
30079
|
ctx
|
|
30080
30080
|
);
|
|
@@ -30131,7 +30131,7 @@ var ControlController = class extends BaseController {
|
|
|
30131
30131
|
"".concat(model.controlType, "_DEFAULT")
|
|
30132
30132
|
);
|
|
30133
30133
|
if (panelModel) {
|
|
30134
|
-
this.controlPanel =
|
|
30134
|
+
this.controlPanel = clone7(panelModel);
|
|
30135
30135
|
}
|
|
30136
30136
|
}
|
|
30137
30137
|
this.updateContextParams({});
|
|
@@ -30614,7 +30614,7 @@ import {
|
|
|
30614
30614
|
RuntimeModelError as RuntimeModelError16
|
|
30615
30615
|
} from "@ibiz-template/core";
|
|
30616
30616
|
import { isNil as isNil13 } from "ramda";
|
|
30617
|
-
import { isArray as
|
|
30617
|
+
import { isArray as isArray6 } from "lodash-es";
|
|
30618
30618
|
var MDControlController = class extends ControlController {
|
|
30619
30619
|
constructor() {
|
|
30620
30620
|
super(...arguments);
|
|
@@ -30924,7 +30924,7 @@ var MDControlController = class extends ControlController {
|
|
|
30924
30924
|
Object.assign(resultParams, extraParams);
|
|
30925
30925
|
}
|
|
30926
30926
|
if (resultParams.srfsearchconds) {
|
|
30927
|
-
const srfsearchconds =
|
|
30927
|
+
const srfsearchconds = isArray6(resultParams.srfsearchconds) ? resultParams.srfsearchconds : [resultParams.srfsearchconds];
|
|
30928
30928
|
if (resultParams.searchconds && resultParams.searchconds.length > 0) {
|
|
30929
30929
|
resultParams.searchconds = [
|
|
30930
30930
|
{
|
|
@@ -32211,17 +32211,17 @@ import { RuntimeError as RuntimeError30 } from "@ibiz-template/core";
|
|
|
32211
32211
|
|
|
32212
32212
|
// src/controller/control/calendar/calendar.service.ts
|
|
32213
32213
|
import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
|
|
32214
|
-
import { clone as
|
|
32214
|
+
import { clone as clone10 } from "ramda";
|
|
32215
32215
|
|
|
32216
32216
|
// src/service/service/control/md-control.service.ts
|
|
32217
|
-
import { isArray as
|
|
32217
|
+
import { isArray as isArray7 } from "qx-util";
|
|
32218
32218
|
|
|
32219
32219
|
// src/service/service/control/control.service.ts
|
|
32220
|
-
import { clone as
|
|
32220
|
+
import { clone as clone9 } from "@ibiz-template/core";
|
|
32221
32221
|
|
|
32222
32222
|
// src/service/vo/control.vo.ts
|
|
32223
32223
|
import { createUUID as createUUID5 } from "qx-util";
|
|
32224
|
-
import { clone as
|
|
32224
|
+
import { clone as clone8, isNil as isNil14 } from "ramda";
|
|
32225
32225
|
|
|
32226
32226
|
// src/service/constant/srfuf.ts
|
|
32227
32227
|
var Srfuf = /* @__PURE__ */ ((Srfuf2) => {
|
|
@@ -32438,7 +32438,7 @@ var ControlVO = class _ControlVO {
|
|
|
32438
32438
|
* @return {*} {ControlVO}
|
|
32439
32439
|
*/
|
|
32440
32440
|
clone() {
|
|
32441
|
-
const cloneOrigin =
|
|
32441
|
+
const cloneOrigin = clone8(this.$origin);
|
|
32442
32442
|
const newVal = new _ControlVO(cloneOrigin, new Map([...this.$dataUIMap]));
|
|
32443
32443
|
newVal.srfuf = this.srfuf;
|
|
32444
32444
|
Object.keys(this).forEach((key) => {
|
|
@@ -32555,7 +32555,7 @@ var ControlService = class {
|
|
|
32555
32555
|
* @returns {*} {IHttpResponse}
|
|
32556
32556
|
*/
|
|
32557
32557
|
handleResponse(res) {
|
|
32558
|
-
return
|
|
32558
|
+
return clone9(res);
|
|
32559
32559
|
}
|
|
32560
32560
|
/**
|
|
32561
32561
|
* 实体数据转ui数据
|
|
@@ -32566,7 +32566,7 @@ var ControlService = class {
|
|
|
32566
32566
|
* @returns {*} {IData}
|
|
32567
32567
|
*/
|
|
32568
32568
|
toUIData(entityData) {
|
|
32569
|
-
return new ControlVO(entityData,
|
|
32569
|
+
return new ControlVO(entityData, clone9(this.dataUIMap));
|
|
32570
32570
|
}
|
|
32571
32571
|
};
|
|
32572
32572
|
|
|
@@ -32743,7 +32743,7 @@ var MDControlService2 = class extends ControlService {
|
|
|
32743
32743
|
}
|
|
32744
32744
|
}
|
|
32745
32745
|
if (res.ok) {
|
|
32746
|
-
if (
|
|
32746
|
+
if (isArray7(res.data)) {
|
|
32747
32747
|
res.data = res.data.map((item) => this.toUIData(item));
|
|
32748
32748
|
} else {
|
|
32749
32749
|
res.data = this.toUIData(res.data);
|
|
@@ -33003,7 +33003,7 @@ var CalendarService = class extends MDControlService2 {
|
|
|
33003
33003
|
*/
|
|
33004
33004
|
handleRequestParams(item, params, opts) {
|
|
33005
33005
|
var _a3, _b2;
|
|
33006
|
-
const tempParams =
|
|
33006
|
+
const tempParams = clone10(params);
|
|
33007
33007
|
const { srfstartdate, srfenddate } = tempParams;
|
|
33008
33008
|
if (srfstartdate && srfenddate) {
|
|
33009
33009
|
Object.assign(tempParams, {
|
|
@@ -33035,7 +33035,7 @@ import { recursiveIterate as recursiveIterate3, RuntimeError as RuntimeError29 }
|
|
|
33035
33035
|
|
|
33036
33036
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
33037
33037
|
import { RuntimeModelError as RuntimeModelError37 } from "@ibiz-template/core";
|
|
33038
|
-
import { isArray as
|
|
33038
|
+
import { isArray as isArray8 } from "qx-util";
|
|
33039
33039
|
|
|
33040
33040
|
// src/ui-action/provider/ui-action-provider-base.ts
|
|
33041
33041
|
import { RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
|
|
@@ -33061,7 +33061,7 @@ import { ModelError as ModelError11, RuntimeModelError as RuntimeModelError19 }
|
|
|
33061
33061
|
|
|
33062
33062
|
// src/ui-logic/utils/handle-src-val.ts
|
|
33063
33063
|
import { ModelError as ModelError10 } from "@ibiz-template/core";
|
|
33064
|
-
import { clone as
|
|
33064
|
+
import { clone as clone11 } from "ramda";
|
|
33065
33065
|
function handleSrcVal2(ctx, srcValParams) {
|
|
33066
33066
|
const { srcDEUILogicParamId, srcFieldName, srcValue } = srcValParams;
|
|
33067
33067
|
const srcValueType = srcValParams.srcValueType || "SRCDLPARAM";
|
|
@@ -33088,7 +33088,7 @@ function handleSrcVal2(ctx, srcValParams) {
|
|
|
33088
33088
|
value = ctx.parameters.context;
|
|
33089
33089
|
break;
|
|
33090
33090
|
case "ENVPARAM":
|
|
33091
|
-
value =
|
|
33091
|
+
value = clone11(ibiz.env);
|
|
33092
33092
|
break;
|
|
33093
33093
|
default:
|
|
33094
33094
|
throw new ModelError10(
|
|
@@ -33585,7 +33585,7 @@ var EndNode = class extends UILogicNode {
|
|
|
33585
33585
|
|
|
33586
33586
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
33587
33587
|
import { ModelError as ModelError14, RuntimeError as RuntimeError21 } from "@ibiz-template/core";
|
|
33588
|
-
import { clone as
|
|
33588
|
+
import { clone as clone12 } from "ramda";
|
|
33589
33589
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
33590
33590
|
async exec(ctx) {
|
|
33591
33591
|
const nodeParams = this.model.deuilogicNodeParams;
|
|
@@ -33595,7 +33595,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
33595
33595
|
for (const nodeParam of nodeParams) {
|
|
33596
33596
|
let originValue;
|
|
33597
33597
|
if (nodeParam.dstDEUILogicParamId && ibiz.env.logLevel === "DEBUG") {
|
|
33598
|
-
originValue =
|
|
33598
|
+
originValue = clone12(ctx.params[nodeParam.dstDEUILogicParamId]);
|
|
33599
33599
|
}
|
|
33600
33600
|
switch (nodeParam.paramAction) {
|
|
33601
33601
|
case "SETPARAMVALUE":
|
|
@@ -33690,7 +33690,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
33690
33690
|
copyParam(nodeParam, ctx) {
|
|
33691
33691
|
const { dstDEUILogicParamId } = nodeParam;
|
|
33692
33692
|
const srcVal = handleSrcVal2(ctx, nodeParam);
|
|
33693
|
-
ctx.params[dstDEUILogicParamId] =
|
|
33693
|
+
ctx.params[dstDEUILogicParamId] = clone12(srcVal);
|
|
33694
33694
|
}
|
|
33695
33695
|
/**
|
|
33696
33696
|
* 绑定参数
|
|
@@ -34017,7 +34017,7 @@ var ResetParamNode = class extends UILogicNode {
|
|
|
34017
34017
|
|
|
34018
34018
|
// src/ui-logic/ui-logic-node/copy-param-node/copy-param-node.ts
|
|
34019
34019
|
import { RuntimeModelError as RuntimeModelError28 } from "@ibiz-template/core";
|
|
34020
|
-
import { clone as
|
|
34020
|
+
import { clone as clone13 } from "ramda";
|
|
34021
34021
|
var CopyParamNode = class extends UILogicNode {
|
|
34022
34022
|
async exec(ctx) {
|
|
34023
34023
|
const { dstDEUILogicParamId, srcDEUILogicParamId } = this.model;
|
|
@@ -34028,7 +34028,7 @@ var CopyParamNode = class extends UILogicNode {
|
|
|
34028
34028
|
);
|
|
34029
34029
|
}
|
|
34030
34030
|
const srcVal = handleSrcVal2(ctx, this.model);
|
|
34031
|
-
ctx.params[dstDEUILogicParamId] =
|
|
34031
|
+
ctx.params[dstDEUILogicParamId] = clone13(srcVal);
|
|
34032
34032
|
ctx.setLastReturn(ctx.params[dstDEUILogicParamId]);
|
|
34033
34033
|
ibiz.log.debug(
|
|
34034
34034
|
ibiz.i18n.t("runtime.uiLogic.copyParameter", {
|
|
@@ -34315,8 +34315,8 @@ var RawJSCodeNode = class extends UILogicNode {
|
|
|
34315
34315
|
};
|
|
34316
34316
|
|
|
34317
34317
|
// src/ui-logic/ui-logic.ts
|
|
34318
|
-
import { IBizContext as
|
|
34319
|
-
import { clone as
|
|
34318
|
+
import { IBizContext as IBizContext3, RuntimeModelError as RuntimeModelError35 } from "@ibiz-template/core";
|
|
34319
|
+
import { clone as clone14 } from "ramda";
|
|
34320
34320
|
|
|
34321
34321
|
// src/ui-logic/ui-logic-context.ts
|
|
34322
34322
|
var UILogicContext = class {
|
|
@@ -34699,8 +34699,8 @@ var UILogic = class {
|
|
|
34699
34699
|
* @memberof UILogic
|
|
34700
34700
|
*/
|
|
34701
34701
|
async exec(parameters) {
|
|
34702
|
-
parameters.context =
|
|
34703
|
-
parameters.params =
|
|
34702
|
+
parameters.context = IBizContext3.create(parameters.context);
|
|
34703
|
+
parameters.params = clone14(parameters.params || {});
|
|
34704
34704
|
const ctx = new UILogicContext(this.params, parameters);
|
|
34705
34705
|
this.initLogicParams(ctx);
|
|
34706
34706
|
const { startDEUILogicNodeId } = this.model;
|
|
@@ -35326,7 +35326,7 @@ var BackendUIActionProvider = class extends UIActionProviderBase {
|
|
|
35326
35326
|
}
|
|
35327
35327
|
}
|
|
35328
35328
|
Object.assign(actionResult, {
|
|
35329
|
-
data:
|
|
35329
|
+
data: isArray8(res.data) ? res.data : [res.data],
|
|
35330
35330
|
nextContext: resultContext,
|
|
35331
35331
|
nextParams: tempParams
|
|
35332
35332
|
});
|
|
@@ -35396,7 +35396,7 @@ import {
|
|
|
35396
35396
|
RuntimeError as RuntimeError28,
|
|
35397
35397
|
RuntimeModelError as RuntimeModelError38
|
|
35398
35398
|
} from "@ibiz-template/core";
|
|
35399
|
-
import { clone as
|
|
35399
|
+
import { clone as clone15, mergeRight as mergeRight4 } from "ramda";
|
|
35400
35400
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
35401
35401
|
async execAction(action, args) {
|
|
35402
35402
|
const { context, params, data, event, noWaitRoute, view } = args;
|
|
@@ -35853,7 +35853,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
35853
35853
|
* @memberof FrontUIActionProvider
|
|
35854
35854
|
*/
|
|
35855
35855
|
mergeFormItemModel(formModel, editorModel) {
|
|
35856
|
-
const tempFormModel =
|
|
35856
|
+
const tempFormModel = clone15(formModel);
|
|
35857
35857
|
if (tempFormModel && editorModel && tempFormModel.deformPages && tempFormModel.deformPages.length > 0) {
|
|
35858
35858
|
const { deformDetails } = tempFormModel.deformPages[0];
|
|
35859
35859
|
deformDetails == null ? void 0 : deformDetails.push(editorModel);
|
|
@@ -37186,7 +37186,7 @@ var CalendarController = class extends MDControlController {
|
|
|
37186
37186
|
import { RuntimeError as RuntimeError32 } from "@ibiz-template/core";
|
|
37187
37187
|
|
|
37188
37188
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
37189
|
-
import { clone as
|
|
37189
|
+
import { clone as clone18, mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
37190
37190
|
import { isObject as isObject2, isString as isString2 } from "qx-util";
|
|
37191
37191
|
import { RuntimeError as RuntimeError31 } from "@ibiz-template/core";
|
|
37192
37192
|
|
|
@@ -37201,7 +37201,7 @@ import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
|
37201
37201
|
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
|
37202
37202
|
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
37203
37203
|
import isoWeek from "dayjs/plugin/isoWeek";
|
|
37204
|
-
import { clone as
|
|
37204
|
+
import { clone as clone16, isNil as isNil15, mergeDeepRight } from "ramda";
|
|
37205
37205
|
dayjs5.extend(minMax);
|
|
37206
37206
|
dayjs5.extend(isSameOrBefore);
|
|
37207
37207
|
dayjs5.extend(quarterOfYear);
|
|
@@ -37499,7 +37499,7 @@ var BaseSeriesGenerator = class {
|
|
|
37499
37499
|
}).filter((val) => !!val)
|
|
37500
37500
|
)
|
|
37501
37501
|
);
|
|
37502
|
-
const cloneItem =
|
|
37502
|
+
const cloneItem = clone16(codeListItems);
|
|
37503
37503
|
cloneItem.sort((a, b) => {
|
|
37504
37504
|
const aIndex = orginItem.findIndex((_code) => {
|
|
37505
37505
|
return _code === a.value;
|
|
@@ -37512,9 +37512,9 @@ var BaseSeriesGenerator = class {
|
|
|
37512
37512
|
return cloneItem;
|
|
37513
37513
|
}
|
|
37514
37514
|
if (sort === "desc") {
|
|
37515
|
-
return
|
|
37515
|
+
return clone16(codeListItems).reverse();
|
|
37516
37516
|
}
|
|
37517
|
-
return
|
|
37517
|
+
return clone16(codeListItems);
|
|
37518
37518
|
}
|
|
37519
37519
|
/**
|
|
37520
37520
|
* 计算分组数据
|
|
@@ -37813,7 +37813,7 @@ var BaseSeriesGenerator = class {
|
|
|
37813
37813
|
dataPreprocess(data) {
|
|
37814
37814
|
const tempData = [];
|
|
37815
37815
|
data.forEach((singleData) => {
|
|
37816
|
-
tempData.push(
|
|
37816
|
+
tempData.push(clone16(singleData));
|
|
37817
37817
|
});
|
|
37818
37818
|
const { groupMode } = this.model;
|
|
37819
37819
|
if (groupMode) {
|
|
@@ -38143,7 +38143,7 @@ var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
38143
38143
|
};
|
|
38144
38144
|
|
|
38145
38145
|
// src/controller/control/chart/generator/radar-series-generator.ts
|
|
38146
|
-
import { clone as
|
|
38146
|
+
import { clone as clone17, mergeDeepRight as mergeDeepRight2 } from "ramda";
|
|
38147
38147
|
|
|
38148
38148
|
// src/controller/control/chart/generator/radar-coord-system.ts
|
|
38149
38149
|
var RadarCoordSystem = class {
|
|
@@ -38219,7 +38219,7 @@ var RadarSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
38219
38219
|
*/
|
|
38220
38220
|
calcRadarCoordSystem(data) {
|
|
38221
38221
|
const tempItems = data.map((item) => {
|
|
38222
|
-
return
|
|
38222
|
+
return clone17(item);
|
|
38223
38223
|
});
|
|
38224
38224
|
const groupData = this.calcGroupData(tempItems);
|
|
38225
38225
|
if (!this.chartGenerator.radarMap.has(this.catalogField)) {
|
|
@@ -38324,7 +38324,7 @@ var GaugeSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
38324
38324
|
|
|
38325
38325
|
// src/controller/control/chart/generator/candlestick-series-generator.ts
|
|
38326
38326
|
import { isNil as isNil16 } from "ramda";
|
|
38327
|
-
import { isArray as
|
|
38327
|
+
import { isArray as isArray9, isNumber as isNumber3 } from "qx-util";
|
|
38328
38328
|
import { plus as plus2, RuntimeModelError as RuntimeModelError45, toNumberOrNil as toNumberOrNil2 } from "@ibiz-template/core";
|
|
38329
38329
|
var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
|
|
38330
38330
|
/**
|
|
@@ -38593,7 +38593,7 @@ var CandlestickSeriesGenerator = class extends BaseSeriesGenerator {
|
|
|
38593
38593
|
xAxisData.push(key);
|
|
38594
38594
|
temData.push({ name: key, value: catalog.value });
|
|
38595
38595
|
});
|
|
38596
|
-
if (this.chartGenerator &&
|
|
38596
|
+
if (this.chartGenerator && isArray9(this.chartGenerator.staticOptions.xAxis) && isNumber3(this.xAxisIndex)) {
|
|
38597
38597
|
this.chartGenerator.staticOptions.xAxis[this.xAxisIndex].data = xAxisData;
|
|
38598
38598
|
}
|
|
38599
38599
|
return temData;
|
|
@@ -38911,8 +38911,8 @@ var ChartOptionsGenerator3 = class {
|
|
|
38911
38911
|
const xaxis = [];
|
|
38912
38912
|
const yaxis = [];
|
|
38913
38913
|
for (let i = 0; i < seriesModel.length; i++) {
|
|
38914
|
-
const tempXAxis =
|
|
38915
|
-
const tempYAxis =
|
|
38914
|
+
const tempXAxis = clone18(xAxisParam);
|
|
38915
|
+
const tempYAxis = clone18(yAxisParam);
|
|
38916
38916
|
Object.assign(tempXAxis, { gridIndex: i });
|
|
38917
38917
|
Object.assign(tempYAxis, { gridIndex: i });
|
|
38918
38918
|
if (!tempYAxis.axisLabel)
|
|
@@ -38964,7 +38964,7 @@ var ChartOptionsGenerator3 = class {
|
|
|
38964
38964
|
}
|
|
38965
38965
|
});
|
|
38966
38966
|
if (left) {
|
|
38967
|
-
const tempAxis =
|
|
38967
|
+
const tempAxis = clone18(axisParam);
|
|
38968
38968
|
if (tempAxis.showTitle) {
|
|
38969
38969
|
const serietext = left.map((serie) => {
|
|
38970
38970
|
return serie.serieText;
|
|
@@ -38976,7 +38976,7 @@ var ChartOptionsGenerator3 = class {
|
|
|
38976
38976
|
axis.push(tempAxis);
|
|
38977
38977
|
}
|
|
38978
38978
|
if (right) {
|
|
38979
|
-
const tempAxis =
|
|
38979
|
+
const tempAxis = clone18(axisParam);
|
|
38980
38980
|
if (tempAxis.showTitle) {
|
|
38981
38981
|
const serietext = right.map((serie) => {
|
|
38982
38982
|
return serie.serieText;
|
|
@@ -39085,9 +39085,9 @@ var ChartOptionsGenerator3 = class {
|
|
|
39085
39085
|
);
|
|
39086
39086
|
if (codeListItems) {
|
|
39087
39087
|
if (catalog.sort === "desc") {
|
|
39088
|
-
currentLevelItems =
|
|
39088
|
+
currentLevelItems = clone18(codeListItems).reverse();
|
|
39089
39089
|
} else {
|
|
39090
|
-
currentLevelItems =
|
|
39090
|
+
currentLevelItems = clone18(codeListItems);
|
|
39091
39091
|
}
|
|
39092
39092
|
}
|
|
39093
39093
|
} else {
|
|
@@ -39296,7 +39296,7 @@ var ChartOptionsGenerator3 = class {
|
|
|
39296
39296
|
* @memberof ChartOptionsGenerator
|
|
39297
39297
|
*/
|
|
39298
39298
|
handleAxisTitleParam(option = {}, titleshow = true) {
|
|
39299
|
-
const tempOption =
|
|
39299
|
+
const tempOption = clone18(option);
|
|
39300
39300
|
Object.assign(tempOption, { show: titleshow });
|
|
39301
39301
|
return tempOption;
|
|
39302
39302
|
}
|
|
@@ -40091,11 +40091,11 @@ var CaptionBarController = class extends ControlController {
|
|
|
40091
40091
|
};
|
|
40092
40092
|
|
|
40093
40093
|
// src/controller/control/dashboard/dashboard.controller.ts
|
|
40094
|
-
import { clone as
|
|
40094
|
+
import { clone as clone20 } from "ramda";
|
|
40095
40095
|
import { recursiveIterate as recursiveIterate4 } from "@ibiz-template/core";
|
|
40096
40096
|
|
|
40097
40097
|
// src/controller/control/dashboard/dashboard.util.ts
|
|
40098
|
-
import { clone as
|
|
40098
|
+
import { clone as clone19 } from "ramda";
|
|
40099
40099
|
function filterDEDQConditions2SearchConds(filterDEDQConditions) {
|
|
40100
40100
|
const result = [];
|
|
40101
40101
|
filterDEDQConditions.forEach((filterDEDQCondition) => {
|
|
@@ -40139,7 +40139,7 @@ function generateCacheKy(context, dashboard, key) {
|
|
|
40139
40139
|
function getFilterSearchConds(searchConds, filterDEDQConditions) {
|
|
40140
40140
|
let result;
|
|
40141
40141
|
if (searchConds) {
|
|
40142
|
-
result =
|
|
40142
|
+
result = clone19(searchConds);
|
|
40143
40143
|
} else if (filterDEDQConditions) {
|
|
40144
40144
|
result = { condop: "AND", condtype: "GROUP", searchconds: [] };
|
|
40145
40145
|
const modelSearchConds = filterDEDQConditions2SearchConds(filterDEDQConditions);
|
|
@@ -40484,7 +40484,7 @@ var DashboardController = class extends ControlController {
|
|
|
40484
40484
|
async loadDynaPortletById(id) {
|
|
40485
40485
|
var _a3;
|
|
40486
40486
|
const app = ibiz.hub.getApp(this.model.appId);
|
|
40487
|
-
const tempContext =
|
|
40487
|
+
const tempContext = clone20(this.context);
|
|
40488
40488
|
Object.assign(tempContext, { psappportlet: id });
|
|
40489
40489
|
const res = await app.deService.exec(
|
|
40490
40490
|
"psappportlet",
|
|
@@ -40796,7 +40796,7 @@ var DashboardController = class extends ControlController {
|
|
|
40796
40796
|
};
|
|
40797
40797
|
|
|
40798
40798
|
// src/controller/control/dashboard/custom-dashboard.controller.ts
|
|
40799
|
-
import { clone as
|
|
40799
|
+
import { clone as clone21 } from "ramda";
|
|
40800
40800
|
var CustomDashboardController = class {
|
|
40801
40801
|
/**
|
|
40802
40802
|
* Creates an instance of BaseController.
|
|
@@ -41027,7 +41027,7 @@ var CustomDashboardController = class {
|
|
|
41027
41027
|
async saveCustomModelData(model, config = {}, filter = {}) {
|
|
41028
41028
|
Object.assign(this.portletConfig, config);
|
|
41029
41029
|
let res;
|
|
41030
|
-
const cloneFilter =
|
|
41030
|
+
const cloneFilter = clone21(this.portletFilter);
|
|
41031
41031
|
if (Object.keys(filter).length > 0) {
|
|
41032
41032
|
Object.assign(cloneFilter, filter);
|
|
41033
41033
|
}
|
|
@@ -41044,7 +41044,7 @@ var CustomDashboardController = class {
|
|
|
41044
41044
|
}
|
|
41045
41045
|
});
|
|
41046
41046
|
}
|
|
41047
|
-
const cloneModel =
|
|
41047
|
+
const cloneModel = clone21(model);
|
|
41048
41048
|
cloneModel.forEach((item) => {
|
|
41049
41049
|
if (item.portletModel) {
|
|
41050
41050
|
deepDeleteSubAppId(item.portletModel);
|
|
@@ -41086,7 +41086,7 @@ import { merge } from "lodash-es";
|
|
|
41086
41086
|
import {
|
|
41087
41087
|
Namespace as Namespace2,
|
|
41088
41088
|
IBizParams as IBizParams2,
|
|
41089
|
-
IBizContext as
|
|
41089
|
+
IBizContext as IBizContext4,
|
|
41090
41090
|
listenJSEvent
|
|
41091
41091
|
} from "@ibiz-template/core";
|
|
41092
41092
|
|
|
@@ -41144,7 +41144,7 @@ var PortletPartController = class {
|
|
|
41144
41144
|
this.dashboard = dashboard;
|
|
41145
41145
|
this.parent = parent;
|
|
41146
41146
|
this.state = this.createState();
|
|
41147
|
-
this.state.context =
|
|
41147
|
+
this.state.context = IBizContext4.create({}, this.dashboard.context);
|
|
41148
41148
|
const tempParams = this.getExtendParams();
|
|
41149
41149
|
if (tempParams) {
|
|
41150
41150
|
this.params = new IBizParams2(
|
|
@@ -41666,7 +41666,7 @@ import { recursiveIterate as recursiveIterate7 } from "@ibiz-template/core";
|
|
|
41666
41666
|
|
|
41667
41667
|
// src/controller/control/search-bar/search-bar.controller.ts
|
|
41668
41668
|
import { mergeInLeft, recursiveIterate as recursiveIterate6 } from "@ibiz-template/core";
|
|
41669
|
-
import { clone as
|
|
41669
|
+
import { clone as clone23 } from "ramda";
|
|
41670
41670
|
import { isString as isString3 } from "lodash-es";
|
|
41671
41671
|
|
|
41672
41672
|
// src/controller/control/search-bar/search-bar-filter.controller.ts
|
|
@@ -42165,7 +42165,7 @@ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
|
|
|
42165
42165
|
|
|
42166
42166
|
// src/controller/control/search-bar/search-bar-filter-items.controller.ts
|
|
42167
42167
|
import { RuntimeError as RuntimeError33 } from "@ibiz-template/core";
|
|
42168
|
-
import { clone as
|
|
42168
|
+
import { clone as clone22 } from "ramda";
|
|
42169
42169
|
var SubFieldRegex2 = /^N_(.\w+)_(.\w+)$/;
|
|
42170
42170
|
var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
42171
42171
|
constructor(filterModels, appDataEntity, context, params) {
|
|
@@ -42250,7 +42250,7 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
|
42250
42250
|
const matches = subStr.match(SubFieldRegex2);
|
|
42251
42251
|
const subField = matches[1];
|
|
42252
42252
|
const subOP = matches[2];
|
|
42253
|
-
const cloneItem =
|
|
42253
|
+
const cloneItem = clone22(item);
|
|
42254
42254
|
cloneItem.defsearchMode.valueOP = subOP;
|
|
42255
42255
|
cloneItem.id = subField;
|
|
42256
42256
|
const filterC = new SearchBarFilterController(
|
|
@@ -42774,7 +42774,7 @@ var SearchBarController = class extends ControlController {
|
|
|
42774
42774
|
if (!this.addSchemaFilters) {
|
|
42775
42775
|
return;
|
|
42776
42776
|
}
|
|
42777
|
-
const tempParams =
|
|
42777
|
+
const tempParams = clone23(this.jsonSchemaParams);
|
|
42778
42778
|
Object.assign(tempParams, this.params);
|
|
42779
42779
|
const json = await getEntitySchema(
|
|
42780
42780
|
this.model.appDataEntityId,
|
|
@@ -42803,7 +42803,7 @@ var SearchBarController = class extends ControlController {
|
|
|
42803
42803
|
}
|
|
42804
42804
|
});
|
|
42805
42805
|
if (addSearchBarFilters.length > 0) {
|
|
42806
|
-
this.model =
|
|
42806
|
+
this.model = clone23(this.model);
|
|
42807
42807
|
this.model.searchBarFilters = mergeFilters.concat(...addSearchBarFilters);
|
|
42808
42808
|
this.model.enableFilter = true;
|
|
42809
42809
|
}
|
|
@@ -43027,7 +43027,7 @@ var SearchBarController = class extends ControlController {
|
|
|
43027
43027
|
if (!this.enableFilter) {
|
|
43028
43028
|
return;
|
|
43029
43029
|
}
|
|
43030
|
-
const nodes =
|
|
43030
|
+
const nodes = clone23(this.state.filterNodes);
|
|
43031
43031
|
this.attachCustomCond(nodes);
|
|
43032
43032
|
const searchconds = calcSearchConds(nodes, {
|
|
43033
43033
|
after: (node, cond) => {
|
|
@@ -43224,7 +43224,7 @@ var SearchBarController = class extends ControlController {
|
|
|
43224
43224
|
*/
|
|
43225
43225
|
async handleSave() {
|
|
43226
43226
|
if (this.grid && this.state.selectedSearchGroupItem) {
|
|
43227
|
-
const nodes =
|
|
43227
|
+
const nodes = clone23(this.state.filterNodes);
|
|
43228
43228
|
this.attachCustomCond(nodes);
|
|
43229
43229
|
let filters = calcSearchCondExs(nodes);
|
|
43230
43230
|
if (!filters) {
|
|
@@ -43240,7 +43240,7 @@ var SearchBarController = class extends ControlController {
|
|
|
43240
43240
|
}
|
|
43241
43241
|
const tempColumnState = this.grid.state.columnStates.map(
|
|
43242
43242
|
(item) => {
|
|
43243
|
-
const state =
|
|
43243
|
+
const state = clone23(item);
|
|
43244
43244
|
delete state.columnWidth;
|
|
43245
43245
|
return state;
|
|
43246
43246
|
}
|
|
@@ -43859,7 +43859,7 @@ var MobCustomDashboardController = class {
|
|
|
43859
43859
|
|
|
43860
43860
|
// src/controller/control/data-view/data-view.controller.ts
|
|
43861
43861
|
import {
|
|
43862
|
-
clone as
|
|
43862
|
+
clone as clone25,
|
|
43863
43863
|
DataTypes as DataTypes2,
|
|
43864
43864
|
isElementSame as isElementSame2,
|
|
43865
43865
|
RuntimeModelError as RuntimeModelError47
|
|
@@ -43868,7 +43868,7 @@ import { isNil as isNil18, isNotNil as isNotNil4 } from "ramda";
|
|
|
43868
43868
|
import { createUUID as createUUID6, isBoolean } from "qx-util";
|
|
43869
43869
|
|
|
43870
43870
|
// src/controller/control/data-view/data-view.service.ts
|
|
43871
|
-
import { clone as
|
|
43871
|
+
import { clone as clone24 } from "@ibiz-template/core";
|
|
43872
43872
|
var DataViewControlService = class extends MDControlService2 {
|
|
43873
43873
|
/**
|
|
43874
43874
|
* @description 移动并排序数据
|
|
@@ -43880,7 +43880,7 @@ var DataViewControlService = class extends MDControlService2 {
|
|
|
43880
43880
|
*/
|
|
43881
43881
|
async moveOrderItem(context, data, args) {
|
|
43882
43882
|
const moveAction = this.model.moveControlAction.appDEMethodId;
|
|
43883
|
-
const params =
|
|
43883
|
+
const params = clone24(data.getOrigin());
|
|
43884
43884
|
Object.assign(params, args);
|
|
43885
43885
|
let res = await this.exec(moveAction, context, params, {
|
|
43886
43886
|
srfupdateitem: true
|
|
@@ -44299,7 +44299,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
44299
44299
|
*/
|
|
44300
44300
|
async execGroup(arg, _params) {
|
|
44301
44301
|
const group = arg[0];
|
|
44302
|
-
this.model =
|
|
44302
|
+
this.model = clone25(this.model);
|
|
44303
44303
|
this.model.groupMode = "AUTO";
|
|
44304
44304
|
if (!group || !group.groupFieldId) {
|
|
44305
44305
|
this.state.groups = [];
|
|
@@ -44745,7 +44745,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
44745
44745
|
const { groupAppDEFieldId, moveControlAction, minorSortAppDEFieldId } = this.model;
|
|
44746
44746
|
const fromGroup = this.state.groups.find((x) => x.key === from);
|
|
44747
44747
|
const toGroup = this.state.groups.find((x) => x.key === to);
|
|
44748
|
-
const draggedItem =
|
|
44748
|
+
const draggedItem = clone25(
|
|
44749
44749
|
(fromGroup == null ? void 0 : fromGroup.children[fromIndex]) || this.state.items[fromIndex]
|
|
44750
44750
|
);
|
|
44751
44751
|
if (from !== to && groupAppDEFieldId)
|
|
@@ -44816,13 +44816,13 @@ var DataViewControlController = class extends MDControlController {
|
|
|
44816
44816
|
};
|
|
44817
44817
|
|
|
44818
44818
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
44819
|
-
import { IBizParams as IBizParams3, IBizContext as
|
|
44819
|
+
import { IBizParams as IBizParams3, IBizContext as IBizContext5, RuntimeError as RuntimeError34 } from "@ibiz-template/core";
|
|
44820
44820
|
var ExpBarControlController = class extends ControlController {
|
|
44821
44821
|
constructor(model, context, params, ctx) {
|
|
44822
44822
|
var _a3, _b2, _c;
|
|
44823
44823
|
super(
|
|
44824
44824
|
model,
|
|
44825
|
-
|
|
44825
|
+
IBizContext5.create({}, context),
|
|
44826
44826
|
new IBizParams3({}, params),
|
|
44827
44827
|
ctx
|
|
44828
44828
|
);
|
|
@@ -45763,7 +45763,7 @@ import {
|
|
|
45763
45763
|
RuntimeError as RuntimeError36
|
|
45764
45764
|
} from "@ibiz-template/core";
|
|
45765
45765
|
import { isBoolean as isBoolean2 } from "qx-util";
|
|
45766
|
-
import { clone as
|
|
45766
|
+
import { clone as clone26 } from "ramda";
|
|
45767
45767
|
var FormController = class extends ControlController {
|
|
45768
45768
|
constructor() {
|
|
45769
45769
|
super(...arguments);
|
|
@@ -46150,7 +46150,7 @@ var FormController = class extends ControlController {
|
|
|
46150
46150
|
* @return {*} {IData}
|
|
46151
46151
|
*/
|
|
46152
46152
|
checkIgnoreInput(data) {
|
|
46153
|
-
const formData =
|
|
46153
|
+
const formData = clone26(data);
|
|
46154
46154
|
const formDataUIMap = formData.$dataUIMap;
|
|
46155
46155
|
const isCreate = formData.srfuf === 0 /* CREATE */;
|
|
46156
46156
|
this.formItems.forEach((formItem) => {
|
|
@@ -46443,7 +46443,7 @@ var FormController = class extends ControlController {
|
|
|
46443
46443
|
this.params,
|
|
46444
46444
|
this.context
|
|
46445
46445
|
);
|
|
46446
|
-
const tempParams =
|
|
46446
|
+
const tempParams = clone26(jsonSchemaQuery);
|
|
46447
46447
|
Object.assign(tempParams, this.params);
|
|
46448
46448
|
const json = await getEntitySchema(
|
|
46449
46449
|
this.model.appDataEntityId,
|
|
@@ -46462,7 +46462,7 @@ import { recursiveIterate as recursiveIterate10 } from "@ibiz-template/core";
|
|
|
46462
46462
|
|
|
46463
46463
|
// src/controller/control/form/form/form.service.ts
|
|
46464
46464
|
import { recursiveIterate as recursiveIterate9 } from "@ibiz-template/core";
|
|
46465
|
-
import { clone as
|
|
46465
|
+
import { clone as clone27, isNil as isNil19, isNotNil as isNotNil5 } from "ramda";
|
|
46466
46466
|
var FormService = class extends ControlService {
|
|
46467
46467
|
constructor() {
|
|
46468
46468
|
super(...arguments);
|
|
@@ -46527,7 +46527,7 @@ var FormService = class extends ControlService {
|
|
|
46527
46527
|
* @return {*} {IParams}
|
|
46528
46528
|
*/
|
|
46529
46529
|
getLoadParams(params) {
|
|
46530
|
-
const copyArgs =
|
|
46530
|
+
const copyArgs = clone27(params);
|
|
46531
46531
|
const defaultData = {};
|
|
46532
46532
|
if (copyArgs.srfdefdata) {
|
|
46533
46533
|
Object.assign(defaultData, copyArgs.srfdefdata);
|
|
@@ -48085,7 +48085,7 @@ var FormDRUIPartController = class extends FormDetailController {
|
|
|
48085
48085
|
};
|
|
48086
48086
|
|
|
48087
48087
|
// src/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.ts
|
|
48088
|
-
import { clone as
|
|
48088
|
+
import { clone as clone28 } from "ramda";
|
|
48089
48089
|
|
|
48090
48090
|
// src/controller/control/form/form-detail/form-container/form-container.controller.ts
|
|
48091
48091
|
import { isNotNil as isNotNil6 } from "ramda";
|
|
@@ -48254,7 +48254,7 @@ var FormGroupPanelController = class extends FormContainerController {
|
|
|
48254
48254
|
*/
|
|
48255
48255
|
async onActionClick(detail, event, args) {
|
|
48256
48256
|
const actionId = detail.uiactionId;
|
|
48257
|
-
const tempParams =
|
|
48257
|
+
const tempParams = clone28(this.form.params);
|
|
48258
48258
|
if (args) {
|
|
48259
48259
|
Object.assign(tempParams, args);
|
|
48260
48260
|
}
|
|
@@ -49484,7 +49484,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
49484
49484
|
|
|
49485
49485
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.ts
|
|
49486
49486
|
import { ModelError as ModelError19, recursiveIterate as recursiveIterate11 } from "@ibiz-template/core";
|
|
49487
|
-
import { clone as
|
|
49487
|
+
import { clone as clone29, isNil as isNil20 } from "ramda";
|
|
49488
49488
|
var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
49489
49489
|
constructor() {
|
|
49490
49490
|
super(...arguments);
|
|
@@ -49600,7 +49600,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
49600
49600
|
copyFields.forEach((key) => {
|
|
49601
49601
|
tempForm[key] = this.form.model[key];
|
|
49602
49602
|
});
|
|
49603
|
-
this.repeatedForm =
|
|
49603
|
+
this.repeatedForm = clone29(tempForm);
|
|
49604
49604
|
this.convertMultipleLanguages();
|
|
49605
49605
|
}
|
|
49606
49606
|
/**
|
|
@@ -50358,14 +50358,14 @@ var FormIFrameController = class extends FormDetailController {
|
|
|
50358
50358
|
// src/controller/control/form/edit-form/edit-form.controller.ts
|
|
50359
50359
|
import {
|
|
50360
50360
|
awaitTimeout,
|
|
50361
|
-
IBizContext as
|
|
50361
|
+
IBizContext as IBizContext6,
|
|
50362
50362
|
isElementSame as isElementSame3,
|
|
50363
50363
|
mergeInLeft as mergeInLeft3,
|
|
50364
50364
|
RuntimeError as RuntimeError39
|
|
50365
50365
|
} from "@ibiz-template/core";
|
|
50366
50366
|
import { debounce } from "lodash-es";
|
|
50367
50367
|
import { createUUID as createUUID9 } from "qx-util";
|
|
50368
|
-
import { clone as
|
|
50368
|
+
import { clone as clone30, isNil as isNil21 } from "ramda";
|
|
50369
50369
|
|
|
50370
50370
|
// src/controller/control/form/edit-form/edit-form.service.ts
|
|
50371
50371
|
import {
|
|
@@ -50810,8 +50810,8 @@ var EditFormController = class extends FormController {
|
|
|
50810
50810
|
* @return {*} {Promise<IData>}
|
|
50811
50811
|
*/
|
|
50812
50812
|
async copy() {
|
|
50813
|
-
const context =
|
|
50814
|
-
const queryParams =
|
|
50813
|
+
const context = clone30(this.context);
|
|
50814
|
+
const queryParams = clone30(this.params);
|
|
50815
50815
|
const appDataEntity = await ibiz.hub.getAppDataEntity(
|
|
50816
50816
|
this.model.appDataEntityId,
|
|
50817
50817
|
this.model.appId
|
|
@@ -50870,7 +50870,7 @@ var EditFormController = class extends FormController {
|
|
|
50870
50870
|
return this.loadDraft();
|
|
50871
50871
|
}
|
|
50872
50872
|
const { context, params } = this.handlerAbilityParams(args);
|
|
50873
|
-
const queryParams =
|
|
50873
|
+
const queryParams = clone30(params);
|
|
50874
50874
|
const silent = this.getSilent(args) === true;
|
|
50875
50875
|
let res;
|
|
50876
50876
|
try {
|
|
@@ -51221,7 +51221,7 @@ var EditFormController = class extends FormController {
|
|
|
51221
51221
|
switch (autoSaveMode) {
|
|
51222
51222
|
case 3:
|
|
51223
51223
|
saveParam.data = this.getDiffData();
|
|
51224
|
-
saveParam.context =
|
|
51224
|
+
saveParam.context = IBizContext6.create({ srfsimple: true });
|
|
51225
51225
|
break;
|
|
51226
51226
|
default:
|
|
51227
51227
|
}
|
|
@@ -51251,7 +51251,7 @@ var EditFormController = class extends FormController {
|
|
|
51251
51251
|
switch (autoSaveMode) {
|
|
51252
51252
|
case 3:
|
|
51253
51253
|
saveParam.data = this.getDiffData();
|
|
51254
|
-
saveParam.context =
|
|
51254
|
+
saveParam.context = IBizContext6.create({ srfsimple: true });
|
|
51255
51255
|
break;
|
|
51256
51256
|
default:
|
|
51257
51257
|
}
|
|
@@ -51755,7 +51755,7 @@ import {
|
|
|
51755
51755
|
mergeDefaultInLeft as mergeDefaultInLeft2,
|
|
51756
51756
|
debounceAndAsyncMerge as debounceAndAsyncMerge2
|
|
51757
51757
|
} from "@ibiz-template/core";
|
|
51758
|
-
import { clone as
|
|
51758
|
+
import { clone as clone32 } from "ramda";
|
|
51759
51759
|
import dayjs6 from "dayjs";
|
|
51760
51760
|
|
|
51761
51761
|
// src/controller/control/grid/grid/grid.service.ts
|
|
@@ -51926,7 +51926,7 @@ async function calcColumnModelBySchema(json, c) {
|
|
|
51926
51926
|
}
|
|
51927
51927
|
|
|
51928
51928
|
// src/controller/control/grid/grid/auto-grid.util.ts
|
|
51929
|
-
import { clone as
|
|
51929
|
+
import { clone as clone31 } from "ramda";
|
|
51930
51930
|
import { mergeDefaultInLeft } from "@ibiz-template/core";
|
|
51931
51931
|
var TypeToDataType2 = {
|
|
51932
51932
|
string: 25,
|
|
@@ -51979,7 +51979,7 @@ function getEditorModel(item, appId2, enableCond, isSingleSelect = false) {
|
|
|
51979
51979
|
type = "dropdown";
|
|
51980
51980
|
if (enableCond === 0)
|
|
51981
51981
|
type = "span";
|
|
51982
|
-
const model = Object.assign(
|
|
51982
|
+
const model = Object.assign(clone31(TypeToEditor[type]), {
|
|
51983
51983
|
appId: appId2
|
|
51984
51984
|
});
|
|
51985
51985
|
if (type === "dropdown" && isSingleSelect)
|
|
@@ -52130,7 +52130,7 @@ async function initModelByEntitySchema(c) {
|
|
|
52130
52130
|
if (!json)
|
|
52131
52131
|
return;
|
|
52132
52132
|
const { degridColumns, degridDataItems, degridEditItems, degridEditItemVRs } = await calcColumnModelBySchema2(json, c);
|
|
52133
|
-
c.model =
|
|
52133
|
+
c.model = clone31(c.model);
|
|
52134
52134
|
const uaColumns = ((_a3 = c.model.degridColumns) == null ? void 0 : _a3.filter(
|
|
52135
52135
|
(column) => column.columnType === "UAGRIDCOLUMN"
|
|
52136
52136
|
)) || [];
|
|
@@ -52177,7 +52177,7 @@ async function switchRowEditDynamic(c, row, editable, _isSave = true) {
|
|
|
52177
52177
|
await switchRowEditDynamic(c, editingRow);
|
|
52178
52178
|
}
|
|
52179
52179
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
52180
|
-
row.cacheData =
|
|
52180
|
+
row.cacheData = clone31(row.data);
|
|
52181
52181
|
const defaultVal = c.calcDefaultValue(row.data, false);
|
|
52182
52182
|
Object.assign(row.data, defaultVal);
|
|
52183
52183
|
}
|
|
@@ -52616,7 +52616,7 @@ var GridController = class extends MDControlController {
|
|
|
52616
52616
|
if (!this.addSchemaColumn) {
|
|
52617
52617
|
return;
|
|
52618
52618
|
}
|
|
52619
|
-
const tempParams =
|
|
52619
|
+
const tempParams = clone32(this.jsonSchemaParams);
|
|
52620
52620
|
Object.assign(tempParams, this.params);
|
|
52621
52621
|
const json = await getEntitySchema(
|
|
52622
52622
|
this.model.appDataEntityId,
|
|
@@ -52630,7 +52630,7 @@ var GridController = class extends MDControlController {
|
|
|
52630
52630
|
if (result && result.degridColumns.length > 0) {
|
|
52631
52631
|
const { degridColumns, degridDataItems } = result;
|
|
52632
52632
|
this.allCustomColumns = degridColumns;
|
|
52633
|
-
this.model =
|
|
52633
|
+
this.model = clone32(this.model);
|
|
52634
52634
|
this.model.degridColumns = [
|
|
52635
52635
|
...this.model.degridColumns || [],
|
|
52636
52636
|
...degridColumns
|
|
@@ -52835,7 +52835,7 @@ var GridController = class extends MDControlController {
|
|
|
52835
52835
|
async execGroup(arg, _params) {
|
|
52836
52836
|
var _a3;
|
|
52837
52837
|
const group = arg[0];
|
|
52838
|
-
this.model =
|
|
52838
|
+
this.model = clone32(this.model);
|
|
52839
52839
|
this.model.groupMode = "AUTO";
|
|
52840
52840
|
const { columnStates } = this.state;
|
|
52841
52841
|
const column = (_a3 = this.model.degridColumns) == null ? void 0 : _a3.find(
|
|
@@ -53389,7 +53389,7 @@ var GridController = class extends MDControlController {
|
|
|
53389
53389
|
await this.switchRowEdit(editingRow, false, false);
|
|
53390
53390
|
}
|
|
53391
53391
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
53392
|
-
row.cacheData =
|
|
53392
|
+
row.cacheData = clone32(row.data);
|
|
53393
53393
|
const defaultVal = this.calcDefaultValue(row.data, false);
|
|
53394
53394
|
Object.assign(row.data, defaultVal);
|
|
53395
53395
|
}
|
|
@@ -53576,7 +53576,7 @@ var GridController = class extends MDControlController {
|
|
|
53576
53576
|
* @Date: 2024-03-20 17:54:16
|
|
53577
53577
|
*/
|
|
53578
53578
|
formatExcelData(data, fields) {
|
|
53579
|
-
const cloneData =
|
|
53579
|
+
const cloneData = clone32(
|
|
53580
53580
|
data.map((item) => {
|
|
53581
53581
|
return fields.reduce((obj, key) => {
|
|
53582
53582
|
obj[key] = item[key];
|
|
@@ -53710,7 +53710,7 @@ var GridController = class extends MDControlController {
|
|
|
53710
53710
|
if (params.srfexportparams) {
|
|
53711
53711
|
Object.assign(fetchParams, params.srfexportparams);
|
|
53712
53712
|
}
|
|
53713
|
-
const tempContext =
|
|
53713
|
+
const tempContext = clone32(this.context);
|
|
53714
53714
|
if (params.srfdatatype) {
|
|
53715
53715
|
Object.assign(tempContext, {
|
|
53716
53716
|
srfdatatype: params.srfdatatype
|
|
@@ -54147,7 +54147,7 @@ import {
|
|
|
54147
54147
|
} from "@ibiz-template/core";
|
|
54148
54148
|
import dayjs7 from "dayjs";
|
|
54149
54149
|
import { debounce as debounce2 } from "lodash-es";
|
|
54150
|
-
import { clone as
|
|
54150
|
+
import { clone as clone33, isNil as isNil22 } from "ramda";
|
|
54151
54151
|
import { isNilOrEmpty as isNilOrEmpty7 } from "qx-util";
|
|
54152
54152
|
var GridFieldColumnController = class extends GridColumnController {
|
|
54153
54153
|
constructor() {
|
|
@@ -54344,7 +54344,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
54344
54344
|
srfkey: value,
|
|
54345
54345
|
...wfContext
|
|
54346
54346
|
});
|
|
54347
|
-
const tempParams =
|
|
54347
|
+
const tempParams = clone33(this.params);
|
|
54348
54348
|
const { context: newContext, params: newParams } = this.handlePublicParams(
|
|
54349
54349
|
row.data,
|
|
54350
54350
|
tempContext,
|
|
@@ -54383,7 +54383,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
54383
54383
|
async triggerAction(row, event) {
|
|
54384
54384
|
const actionId = this.model.deuiactionId;
|
|
54385
54385
|
const tempContext = this.context.clone();
|
|
54386
|
-
const tempParams =
|
|
54386
|
+
const tempParams = clone33(this.params);
|
|
54387
54387
|
const { userParam } = this.model;
|
|
54388
54388
|
if (userParam) {
|
|
54389
54389
|
const { navigateContexts, navigateParams } = parseUserParams(userParam);
|
|
@@ -54936,7 +54936,7 @@ var GridGroupColumnController = class extends GridColumnController {
|
|
|
54936
54936
|
import { createUUID as createUUID10, isBoolean as isBoolean3 } from "qx-util";
|
|
54937
54937
|
import { isNil as isNil23 } from "ramda";
|
|
54938
54938
|
import {
|
|
54939
|
-
clone as
|
|
54939
|
+
clone as clone35,
|
|
54940
54940
|
DataTypes as DataTypes5,
|
|
54941
54941
|
isElementSame as isElementSame4,
|
|
54942
54942
|
RuntimeModelError as RuntimeModelError55
|
|
@@ -54944,7 +54944,7 @@ import {
|
|
|
54944
54944
|
import dayjs8 from "dayjs";
|
|
54945
54945
|
|
|
54946
54946
|
// src/controller/control/list/list.service.ts
|
|
54947
|
-
import { clone as
|
|
54947
|
+
import { clone as clone34 } from "@ibiz-template/core";
|
|
54948
54948
|
var ListService = class extends MDControlService2 {
|
|
54949
54949
|
/**
|
|
54950
54950
|
* @description 移动并排序数据
|
|
@@ -54956,7 +54956,7 @@ var ListService = class extends MDControlService2 {
|
|
|
54956
54956
|
*/
|
|
54957
54957
|
async moveOrderItem(context, data, args) {
|
|
54958
54958
|
const moveAction = this.model.moveControlAction.appDEMethodId;
|
|
54959
|
-
const params =
|
|
54959
|
+
const params = clone34(data.getOrigin());
|
|
54960
54960
|
Object.assign(params, args);
|
|
54961
54961
|
let res = await this.exec(moveAction, context, params, {
|
|
54962
54962
|
srfupdateitem: true
|
|
@@ -55300,7 +55300,7 @@ var ListController = class extends MDControlController {
|
|
|
55300
55300
|
*/
|
|
55301
55301
|
async execGroup(arg, _params) {
|
|
55302
55302
|
const group = arg[0];
|
|
55303
|
-
this.model =
|
|
55303
|
+
this.model = clone35(this.model);
|
|
55304
55304
|
this.model.groupMode = "AUTO";
|
|
55305
55305
|
if (!group || !group.groupFieldId) {
|
|
55306
55306
|
this.state.groups = [];
|
|
@@ -55645,7 +55645,7 @@ var ListController = class extends MDControlController {
|
|
|
55645
55645
|
const { groupAppDEFieldId, moveControlAction, minorSortAppDEFieldId } = this.model;
|
|
55646
55646
|
const fromGroup = this.state.groups.find((x) => x.key === from);
|
|
55647
55647
|
const toGroup = this.state.groups.find((x) => x.key === to);
|
|
55648
|
-
const draggedItem =
|
|
55648
|
+
const draggedItem = clone35(
|
|
55649
55649
|
(fromGroup == null ? void 0 : fromGroup.children[fromIndex]) || this.state.items[fromIndex]
|
|
55650
55650
|
);
|
|
55651
55651
|
if (from !== to && groupAppDEFieldId)
|
|
@@ -55989,7 +55989,7 @@ var TreeCodeListNodeData = class extends TreeNodeData {
|
|
|
55989
55989
|
|
|
55990
55990
|
// src/service/vo/tree-node-data/tree-data-set-node-data.ts
|
|
55991
55991
|
import { updateKeyDefine as updateKeyDefine2 } from "@ibiz-template/core";
|
|
55992
|
-
import { clone as
|
|
55992
|
+
import { clone as clone36, isNil as isNil25 } from "ramda";
|
|
55993
55993
|
var CloneExcludeKeys = [
|
|
55994
55994
|
"_id",
|
|
55995
55995
|
"srfnodeid",
|
|
@@ -56109,7 +56109,7 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
56109
56109
|
}
|
|
56110
56110
|
};
|
|
56111
56111
|
this.clone = () => {
|
|
56112
|
-
const cloneData =
|
|
56112
|
+
const cloneData = clone36(this._deData);
|
|
56113
56113
|
const cloneNodeData = new _TreeDataSetNodeData(model, this._parent, {
|
|
56114
56114
|
data: cloneData,
|
|
56115
56115
|
leaf: this._leaf,
|
|
@@ -56954,7 +56954,7 @@ var GanttNodeLinkData = class {
|
|
|
56954
56954
|
};
|
|
56955
56955
|
|
|
56956
56956
|
// src/service/vo/code-list-data-item/code-list-data-item.ts
|
|
56957
|
-
import { clone as
|
|
56957
|
+
import { clone as clone37 } from "ramda";
|
|
56958
56958
|
var CodeListDataItem = class {
|
|
56959
56959
|
/**
|
|
56960
56960
|
* Creates an instance of CodeListDataItem.
|
|
@@ -57072,7 +57072,7 @@ var CodeListDataItem = class {
|
|
|
57072
57072
|
try {
|
|
57073
57073
|
this.data = ScriptFactory.execSingleLine(
|
|
57074
57074
|
dataAppDEFieldId,
|
|
57075
|
-
this.$origin instanceof AppDataEntity ?
|
|
57075
|
+
this.$origin instanceof AppDataEntity ? clone37(this.$origin._data) : clone37(this.$origin)
|
|
57076
57076
|
);
|
|
57077
57077
|
} catch (error) {
|
|
57078
57078
|
ibiz.log.error(ibiz.i18n.t("runtime.service.dynamicCodeTable"));
|
|
@@ -57121,7 +57121,7 @@ var CodeListDataItem = class {
|
|
|
57121
57121
|
this.tooltip = void 0;
|
|
57122
57122
|
this.userData = void 0;
|
|
57123
57123
|
Object.keys(
|
|
57124
|
-
data instanceof AppDataEntity ?
|
|
57124
|
+
data instanceof AppDataEntity ? clone37(data._data) : clone37(data)
|
|
57125
57125
|
).forEach((key) => {
|
|
57126
57126
|
if (!Object.prototype.hasOwnProperty.call(this, key))
|
|
57127
57127
|
Object.defineProperty(this, key, {
|
|
@@ -61028,7 +61028,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
61028
61028
|
|
|
61029
61029
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
61030
61030
|
import { RuntimeError as RuntimeError45, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
|
|
61031
|
-
import { clone as
|
|
61031
|
+
import { clone as clone38, isNil as isNil28, isNotNil as isNotNil8 } from "ramda";
|
|
61032
61032
|
import { createUUID as createUUID15 } from "qx-util";
|
|
61033
61033
|
|
|
61034
61034
|
// src/controller/control/md-ctrl/md-ctrl.service.ts
|
|
@@ -61672,7 +61672,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
61672
61672
|
* @memberof MDCtrlController
|
|
61673
61673
|
*/
|
|
61674
61674
|
formatExcelData(data, fields) {
|
|
61675
|
-
const cloneData =
|
|
61675
|
+
const cloneData = clone38(
|
|
61676
61676
|
data.map((item) => {
|
|
61677
61677
|
return fields.reduce((obj, key) => {
|
|
61678
61678
|
obj[key] = item[key];
|
|
@@ -61758,7 +61758,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
61758
61758
|
tempParams.srfexportdataset = params.srfexportdataset;
|
|
61759
61759
|
}
|
|
61760
61760
|
Object.assign(fetchParams, tempParams);
|
|
61761
|
-
const tempContext =
|
|
61761
|
+
const tempContext = clone38(this.context);
|
|
61762
61762
|
if (params.srfdatatype) {
|
|
61763
61763
|
Object.assign(tempContext, {
|
|
61764
61764
|
srfdatatype: params.srfdatatype
|
|
@@ -61819,7 +61819,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
61819
61819
|
|
|
61820
61820
|
// src/controller/control/kanban/kanban.controller.ts
|
|
61821
61821
|
import {
|
|
61822
|
-
clone as
|
|
61822
|
+
clone as clone39,
|
|
61823
61823
|
RuntimeError as RuntimeError46,
|
|
61824
61824
|
isElementSame as isElementSame5,
|
|
61825
61825
|
RuntimeModelError as RuntimeModelError58
|
|
@@ -62167,7 +62167,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
62167
62167
|
} = this.model;
|
|
62168
62168
|
const fromGroup = this.state.groups.find((x) => x.key === from);
|
|
62169
62169
|
const toGroup = this.state.groups.find((x) => x.key === to);
|
|
62170
|
-
const draggedItem =
|
|
62170
|
+
const draggedItem = clone39(fromGroup.children[fromIndex]);
|
|
62171
62171
|
if (from !== to && groupAppDEFieldId)
|
|
62172
62172
|
draggedItem[groupAppDEFieldId] = to;
|
|
62173
62173
|
if (fromLane !== toLane && swimlaneAppDEFieldId)
|
|
@@ -62387,7 +62387,7 @@ import {
|
|
|
62387
62387
|
recursiveIterate as recursiveIterate16,
|
|
62388
62388
|
RuntimeModelError as RuntimeModelError59
|
|
62389
62389
|
} from "@ibiz-template/core";
|
|
62390
|
-
import { clone as
|
|
62390
|
+
import { clone as clone40 } from "ramda";
|
|
62391
62391
|
|
|
62392
62392
|
// src/controller/control/tree-grid-ex/tree-grid-ex.service.ts
|
|
62393
62393
|
var TreeGridExService = class extends TreeService {
|
|
@@ -62984,7 +62984,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
62984
62984
|
);
|
|
62985
62985
|
}
|
|
62986
62986
|
if (row.data._deData.srfuf === 1 /* UPDATE */) {
|
|
62987
|
-
row.cacheData =
|
|
62987
|
+
row.cacheData = clone40(row.data);
|
|
62988
62988
|
const defaultVal = this.calcDefaultValue(row.data, false);
|
|
62989
62989
|
Object.assign(row.data, defaultVal);
|
|
62990
62990
|
}
|
|
@@ -63143,7 +63143,7 @@ import {
|
|
|
63143
63143
|
RuntimeError as RuntimeError48,
|
|
63144
63144
|
RuntimeModelError as RuntimeModelError60
|
|
63145
63145
|
} from "@ibiz-template/core";
|
|
63146
|
-
import { clone as
|
|
63146
|
+
import { clone as clone41 } from "ramda";
|
|
63147
63147
|
import dayjs9 from "dayjs";
|
|
63148
63148
|
var TreeGridExNodeColumnController = class {
|
|
63149
63149
|
/**
|
|
@@ -63356,7 +63356,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
63356
63356
|
srfkey: value,
|
|
63357
63357
|
...wfContext
|
|
63358
63358
|
});
|
|
63359
|
-
const tempParams =
|
|
63359
|
+
const tempParams = clone41(this.params);
|
|
63360
63360
|
const { userParam } = this.nodeColumn;
|
|
63361
63361
|
if (userParam) {
|
|
63362
63362
|
const { navigateContexts, navigateParams } = parseUserParams(userParam);
|
|
@@ -64713,7 +64713,7 @@ var ChartUtil = class {
|
|
|
64713
64713
|
};
|
|
64714
64714
|
|
|
64715
64715
|
// src/controller/control/report-panel/generator/bi-converter/base/echart-converter-base.ts
|
|
64716
|
-
import { clone as
|
|
64716
|
+
import { clone as clone42 } from "ramda";
|
|
64717
64717
|
var EchartConverterBase = class extends ConverterBase {
|
|
64718
64718
|
constructor() {
|
|
64719
64719
|
super(...arguments);
|
|
@@ -65069,7 +65069,7 @@ var EchartConverterBase = class extends ConverterBase {
|
|
|
65069
65069
|
calcSeriesModel(measures, dimension, groupDimension) {
|
|
65070
65070
|
const seriesModels = [];
|
|
65071
65071
|
measures.forEach((item, index) => {
|
|
65072
|
-
const seriesModel =
|
|
65072
|
+
const seriesModel = clone42(this.mockSerieModel);
|
|
65073
65073
|
Object.assign(seriesModel, {
|
|
65074
65074
|
id: "".concat(seriesModel.seriesType, "_").concat(index),
|
|
65075
65075
|
caption: item.measureName,
|
|
@@ -65097,7 +65097,7 @@ var EchartConverterBase = class extends ConverterBase {
|
|
|
65097
65097
|
translateDataToReport(items) {
|
|
65098
65098
|
if (!this.measures.length || !this.dimensions.length)
|
|
65099
65099
|
return;
|
|
65100
|
-
const model =
|
|
65100
|
+
const model = clone42(this.mockModel);
|
|
65101
65101
|
const seriesModels = this.calcSeriesModel(
|
|
65102
65102
|
this.measures,
|
|
65103
65103
|
this.dimensions[0],
|
|
@@ -65244,7 +65244,7 @@ var BarConverterBase = class extends MultiSeriesConverter {
|
|
|
65244
65244
|
};
|
|
65245
65245
|
|
|
65246
65246
|
// src/controller/control/report-panel/generator/bi-converter/base/zone-converter-base.ts
|
|
65247
|
-
import { clone as
|
|
65247
|
+
import { clone as clone43 } from "ramda";
|
|
65248
65248
|
var ZoneConverterBase = class extends MultiSeriesConverter {
|
|
65249
65249
|
/**
|
|
65250
65250
|
* @description 获取控件参数
|
|
@@ -65309,7 +65309,7 @@ var ZoneConverterBase = class extends MultiSeriesConverter {
|
|
|
65309
65309
|
calcSeriesModel(measures, dimension, groupDimension) {
|
|
65310
65310
|
const seriesModels = [];
|
|
65311
65311
|
measures.forEach((item, index) => {
|
|
65312
|
-
const seriesModel =
|
|
65312
|
+
const seriesModel = clone43(this.mockSerieModel);
|
|
65313
65313
|
Object.assign(seriesModel, {
|
|
65314
65314
|
id: "".concat(seriesModel.seriesType, "_").concat(index),
|
|
65315
65315
|
caption: item.measureName,
|
|
@@ -65684,7 +65684,7 @@ var MultiSeriesColConverter = class extends MultiSeriesConverter {
|
|
|
65684
65684
|
};
|
|
65685
65685
|
|
|
65686
65686
|
// src/controller/control/report-panel/generator/bi-converter/gauge-converter.ts
|
|
65687
|
-
import { clone as
|
|
65687
|
+
import { clone as clone44 } from "ramda";
|
|
65688
65688
|
var GaugeConverter = class extends EchartConverterBase {
|
|
65689
65689
|
constructor() {
|
|
65690
65690
|
super(...arguments);
|
|
@@ -65744,7 +65744,7 @@ var GaugeConverter = class extends EchartConverterBase {
|
|
|
65744
65744
|
calcSeriesModel(measures, dimension, groupDimension) {
|
|
65745
65745
|
const seriesModels = [];
|
|
65746
65746
|
measures.forEach((item, index) => {
|
|
65747
|
-
const seriesModel =
|
|
65747
|
+
const seriesModel = clone44(this.mockSerieModel);
|
|
65748
65748
|
Object.assign(seriesModel, {
|
|
65749
65749
|
id: "".concat(seriesModel.seriesType, "_").concat(index),
|
|
65750
65750
|
caption: item.measureName,
|
|
@@ -65772,7 +65772,7 @@ var GaugeConverter = class extends EchartConverterBase {
|
|
|
65772
65772
|
var _a3;
|
|
65773
65773
|
if (!this.measures.length)
|
|
65774
65774
|
return;
|
|
65775
|
-
const model =
|
|
65775
|
+
const model = clone44(this.mockModel);
|
|
65776
65776
|
const seriesModels = this.calcSeriesModel(
|
|
65777
65777
|
this.measures,
|
|
65778
65778
|
this.dimensions[0],
|
|
@@ -66702,7 +66702,7 @@ var ScatterConverter = class extends MultiSeriesConverter {
|
|
|
66702
66702
|
};
|
|
66703
66703
|
|
|
66704
66704
|
// src/controller/control/report-panel/generator/bi-converter/grid-converter.ts
|
|
66705
|
-
import { clone as
|
|
66705
|
+
import { clone as clone45 } from "ramda";
|
|
66706
66706
|
var GridConverter = class extends GridConverterBase {
|
|
66707
66707
|
constructor() {
|
|
66708
66708
|
super(...arguments);
|
|
@@ -66828,7 +66828,7 @@ var GridConverter = class extends GridConverterBase {
|
|
|
66828
66828
|
translateDataToReport(items) {
|
|
66829
66829
|
if (!this.measures)
|
|
66830
66830
|
return;
|
|
66831
|
-
const tempModel =
|
|
66831
|
+
const tempModel = clone45(this.mockModel);
|
|
66832
66832
|
const degridColumns = this.calcGridColumns();
|
|
66833
66833
|
const degridDataItems = this.calcGridDataItems(degridColumns);
|
|
66834
66834
|
Object.assign(tempModel, { degridColumns, degridDataItems });
|
|
@@ -66845,7 +66845,7 @@ var GridConverter = class extends GridConverterBase {
|
|
|
66845
66845
|
};
|
|
66846
66846
|
|
|
66847
66847
|
// src/controller/control/report-panel/generator/bi-converter/cross-table-converter.ts
|
|
66848
|
-
import { clone as
|
|
66848
|
+
import { clone as clone46, plus as plus5 } from "@ibiz-template/core";
|
|
66849
66849
|
var CrossTableConverter = class extends GridConverterBase {
|
|
66850
66850
|
constructor() {
|
|
66851
66851
|
super(...arguments);
|
|
@@ -67193,7 +67193,7 @@ var CrossTableConverter = class extends GridConverterBase {
|
|
|
67193
67193
|
translateDataToReport(items) {
|
|
67194
67194
|
if (!this.measures)
|
|
67195
67195
|
return;
|
|
67196
|
-
const tempModel =
|
|
67196
|
+
const tempModel = clone46(this.mockModel);
|
|
67197
67197
|
const dimensionCols = this.calcDimensionCols(items);
|
|
67198
67198
|
const degridColumns = this.calcCrossTableColumns(dimensionCols);
|
|
67199
67199
|
const mockDatas = this.calcCrossTableData(items);
|
|
@@ -69449,9 +69449,9 @@ function getMDCtrlItemProvider(model) {
|
|
|
69449
69449
|
}
|
|
69450
69450
|
|
|
69451
69451
|
// src/service/utils/app-counter/app-counter.ts
|
|
69452
|
-
import { IBizContext as
|
|
69452
|
+
import { IBizContext as IBizContext7, RuntimeError as RuntimeError58 } from "@ibiz-template/core";
|
|
69453
69453
|
import { notNilEmpty as notNilEmpty8, QXEvent as QXEvent4 } from "qx-util";
|
|
69454
|
-
import { clone as
|
|
69454
|
+
import { clone as clone47 } from "ramda";
|
|
69455
69455
|
import { toNumber } from "lodash-es";
|
|
69456
69456
|
var AppCounter8 = class {
|
|
69457
69457
|
/**
|
|
@@ -69464,7 +69464,7 @@ var AppCounter8 = class {
|
|
|
69464
69464
|
constructor(model) {
|
|
69465
69465
|
this.model = model;
|
|
69466
69466
|
this.destroyed = false;
|
|
69467
|
-
this.context =
|
|
69467
|
+
this.context = IBizContext7.create();
|
|
69468
69468
|
this.params = {};
|
|
69469
69469
|
this.evt = new QXEvent4();
|
|
69470
69470
|
/**
|
|
@@ -69533,10 +69533,10 @@ var AppCounter8 = class {
|
|
|
69533
69533
|
*/
|
|
69534
69534
|
setParams(context, params) {
|
|
69535
69535
|
if (context) {
|
|
69536
|
-
this.context =
|
|
69536
|
+
this.context = clone47(context);
|
|
69537
69537
|
}
|
|
69538
69538
|
if (params) {
|
|
69539
|
-
this.params =
|
|
69539
|
+
this.params = clone47(params);
|
|
69540
69540
|
}
|
|
69541
69541
|
}
|
|
69542
69542
|
/**
|
|
@@ -69804,12 +69804,12 @@ DEDQCondUtil.map = /* @__PURE__ */ new WeakMap();
|
|
|
69804
69804
|
|
|
69805
69805
|
// src/service/utils/dynamic-code-list/dynamic-code-list.ts
|
|
69806
69806
|
import {
|
|
69807
|
-
IBizContext as
|
|
69807
|
+
IBizContext as IBizContext8,
|
|
69808
69808
|
ModelError as ModelError24,
|
|
69809
69809
|
RuntimeModelError as RuntimeModelError63,
|
|
69810
69810
|
StringUtil as StringUtil5
|
|
69811
69811
|
} from "@ibiz-template/core";
|
|
69812
|
-
import { clone as
|
|
69812
|
+
import { clone as clone48, isNil as isNil29 } from "ramda";
|
|
69813
69813
|
import { QXEvent as QXEvent5, notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
69814
69814
|
|
|
69815
69815
|
// src/service/utils/util/util.ts
|
|
@@ -69930,7 +69930,7 @@ var DynamicCodeListCache = class {
|
|
|
69930
69930
|
* @protected
|
|
69931
69931
|
* @type {IContext}
|
|
69932
69932
|
*/
|
|
69933
|
-
this.context =
|
|
69933
|
+
this.context = IBizContext8.create();
|
|
69934
69934
|
/**
|
|
69935
69935
|
* 视图参数
|
|
69936
69936
|
*
|
|
@@ -69976,10 +69976,10 @@ var DynamicCodeListCache = class {
|
|
|
69976
69976
|
*/
|
|
69977
69977
|
setParams(context, params) {
|
|
69978
69978
|
if (context) {
|
|
69979
|
-
this.context =
|
|
69979
|
+
this.context = IBizContext8.create({}, { ...context });
|
|
69980
69980
|
}
|
|
69981
69981
|
if (params) {
|
|
69982
|
-
this.params =
|
|
69982
|
+
this.params = clone48(params);
|
|
69983
69983
|
}
|
|
69984
69984
|
}
|
|
69985
69985
|
/**
|
|
@@ -70405,7 +70405,7 @@ var DynamicCodeListCache = class {
|
|
|
70405
70405
|
};
|
|
70406
70406
|
|
|
70407
70407
|
// src/service/utils/de-cache/de-cache.ts
|
|
70408
|
-
import { where, equals, clone as
|
|
70408
|
+
import { where, equals, clone as clone49, isNil as isNil31, isEmpty as isEmpty7 } from "ramda";
|
|
70409
70409
|
import { createUUID as createUUID18 } from "qx-util";
|
|
70410
70410
|
import { RuntimeError as RuntimeError60 } from "@ibiz-template/core";
|
|
70411
70411
|
|
|
@@ -70495,7 +70495,7 @@ var DECache = class {
|
|
|
70495
70495
|
* @param {IDataEntity} entity
|
|
70496
70496
|
*/
|
|
70497
70497
|
forceUpdate(_context, entity) {
|
|
70498
|
-
this.cacheMap.set(entity.srfkey,
|
|
70498
|
+
this.cacheMap.set(entity.srfkey, clone49(entity));
|
|
70499
70499
|
ibiz.log.warn("forceUpdate", entity.srfkey, entity);
|
|
70500
70500
|
}
|
|
70501
70501
|
/**
|
|
@@ -70539,7 +70539,7 @@ var DECache = class {
|
|
|
70539
70539
|
}
|
|
70540
70540
|
entity.srftempdate = (/* @__PURE__ */ new Date()).getTime();
|
|
70541
70541
|
const commit = () => {
|
|
70542
|
-
this.cacheMap.set(entity.srfkey,
|
|
70542
|
+
this.cacheMap.set(entity.srfkey, clone49(entity));
|
|
70543
70543
|
ibiz.log.warn("add", entity.srfkey, entity);
|
|
70544
70544
|
};
|
|
70545
70545
|
const t = this.getTransaction(context);
|
|
@@ -70569,7 +70569,7 @@ var DECache = class {
|
|
|
70569
70569
|
isExistSessionId("get", context);
|
|
70570
70570
|
const data = this.cacheMap.get(srfKey);
|
|
70571
70571
|
ibiz.log.warn("get", srfKey, data);
|
|
70572
|
-
return
|
|
70572
|
+
return clone49(data);
|
|
70573
70573
|
} catch (err) {
|
|
70574
70574
|
ibiz.log.error(err);
|
|
70575
70575
|
return null;
|
|
@@ -70605,7 +70605,7 @@ var DECache = class {
|
|
|
70605
70605
|
}
|
|
70606
70606
|
}
|
|
70607
70607
|
entity.srftempdate = (/* @__PURE__ */ new Date()).getTime();
|
|
70608
|
-
const _data =
|
|
70608
|
+
const _data = clone49(data);
|
|
70609
70609
|
_data.assign(entity);
|
|
70610
70610
|
const commit = () => {
|
|
70611
70611
|
data.assign(entity);
|
|
@@ -70688,7 +70688,7 @@ var DECache = class {
|
|
|
70688
70688
|
entity.srfkey = createUUID18();
|
|
70689
70689
|
}
|
|
70690
70690
|
entity.srftempdate = (/* @__PURE__ */ new Date()).getTime();
|
|
70691
|
-
const data =
|
|
70691
|
+
const data = clone49(entity);
|
|
70692
70692
|
if (t) {
|
|
70693
70693
|
t.change(data.srfkey, () => {
|
|
70694
70694
|
commit(data);
|
|
@@ -70744,7 +70744,7 @@ var DECache = class {
|
|
|
70744
70744
|
}
|
|
70745
70745
|
}
|
|
70746
70746
|
entity.srftempdate = (/* @__PURE__ */ new Date()).getTime();
|
|
70747
|
-
const _data =
|
|
70747
|
+
const _data = clone49(data);
|
|
70748
70748
|
_data.assign(entity);
|
|
70749
70749
|
entities[i] = _data;
|
|
70750
70750
|
if (t) {
|
|
@@ -71602,7 +71602,7 @@ CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
|
71602
71602
|
// src/service/service/entity/de.service.ts
|
|
71603
71603
|
import {
|
|
71604
71604
|
HttpError as HttpError6,
|
|
71605
|
-
IBizContext as
|
|
71605
|
+
IBizContext as IBizContext9,
|
|
71606
71606
|
ModelError as ModelError26,
|
|
71607
71607
|
RuntimeError as RuntimeError63,
|
|
71608
71608
|
RuntimeModelError as RuntimeModelError66
|
|
@@ -72002,7 +72002,7 @@ var FileService = class {
|
|
|
72002
72002
|
};
|
|
72003
72003
|
|
|
72004
72004
|
// src/service/app-data-entity/app-data-entity.ts
|
|
72005
|
-
import { clone as
|
|
72005
|
+
import { clone as clone50, isNil as isNil33 } from "ramda";
|
|
72006
72006
|
import { DataTypes as DataTypes8 } from "@ibiz-template/core";
|
|
72007
72007
|
import { createUUID as createUUID19 } from "qx-util";
|
|
72008
72008
|
var AppDataEntity = class _AppDataEntity {
|
|
@@ -72026,7 +72026,7 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
72026
72026
|
Object.defineProperty(this, "_data", {
|
|
72027
72027
|
enumerable: false,
|
|
72028
72028
|
configurable: true,
|
|
72029
|
-
value: data instanceof _AppDataEntity ?
|
|
72029
|
+
value: data instanceof _AppDataEntity ? clone50(data._data) : clone50(data)
|
|
72030
72030
|
});
|
|
72031
72031
|
Object.defineProperty(this, "srfdeid", {
|
|
72032
72032
|
get() {
|
|
@@ -72228,7 +72228,7 @@ var AppDataEntity = class _AppDataEntity {
|
|
|
72228
72228
|
|
|
72229
72229
|
// src/service/dto/method.dto.ts
|
|
72230
72230
|
import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
|
|
72231
|
-
import { clone as
|
|
72231
|
+
import { clone as clone51 } from "ramda";
|
|
72232
72232
|
var MethodDto = class {
|
|
72233
72233
|
/**
|
|
72234
72234
|
* Creates an instance of MethodDto.
|
|
@@ -72301,7 +72301,7 @@ var MethodDto = class {
|
|
|
72301
72301
|
});
|
|
72302
72302
|
let res;
|
|
72303
72303
|
if (deRs) {
|
|
72304
|
-
const _context =
|
|
72304
|
+
const _context = clone51(context);
|
|
72305
72305
|
const _params = {};
|
|
72306
72306
|
if (data.srfkey) {
|
|
72307
72307
|
_context[this.entity.codeName.toLowerCase()] = data.srfkey;
|
|
@@ -72635,7 +72635,7 @@ var DEService = class {
|
|
|
72635
72635
|
Object.keys(context).forEach((key) => {
|
|
72636
72636
|
result[key] = context[key];
|
|
72637
72637
|
});
|
|
72638
|
-
const tempContext =
|
|
72638
|
+
const tempContext = IBizContext9.create(result);
|
|
72639
72639
|
const method = await this.getMethod(id);
|
|
72640
72640
|
if (method) {
|
|
72641
72641
|
const processTag = createUUID20();
|
|
@@ -73615,9 +73615,9 @@ import {
|
|
|
73615
73615
|
RuntimeError as RuntimeError65,
|
|
73616
73616
|
RuntimeModelError as RuntimeModelError68
|
|
73617
73617
|
} from "@ibiz-template/core";
|
|
73618
|
-
import { isArray as
|
|
73618
|
+
import { isArray as isArray10, isNil as isNil36, isUndefined as isUndefined2 } from "lodash-es";
|
|
73619
73619
|
import { ascSort } from "qx-util";
|
|
73620
|
-
import { clone as
|
|
73620
|
+
import { clone as clone52 } from "ramda";
|
|
73621
73621
|
|
|
73622
73622
|
// src/service/service/entity/method/method.ts
|
|
73623
73623
|
import { HttpResponse as HttpResponse4, RuntimeModelError as RuntimeModelError67 } from "@ibiz-template/core";
|
|
@@ -73927,7 +73927,7 @@ var DEActionMethod = class extends Method {
|
|
|
73927
73927
|
* @return {*} {(Promise<IData | IData[]>)}
|
|
73928
73928
|
*/
|
|
73929
73929
|
async inputHandle(context, data) {
|
|
73930
|
-
if (
|
|
73930
|
+
if (isArray10(data)) {
|
|
73931
73931
|
return data;
|
|
73932
73932
|
}
|
|
73933
73933
|
return this.input.handle(context, data);
|
|
@@ -74039,7 +74039,7 @@ var DEActionMethod = class extends Method {
|
|
|
74039
74039
|
if (this.method.needResourceKey) {
|
|
74040
74040
|
let srfkey = context[this.entity.codeName.toLowerCase()];
|
|
74041
74041
|
if (isNil36(srfkey)) {
|
|
74042
|
-
srfkey =
|
|
74042
|
+
srfkey = isArray10(data) ? null : data == null ? void 0 : data[this.entity.keyAppDEFieldId];
|
|
74043
74043
|
}
|
|
74044
74044
|
path2 = "".concat(path2, "/").concat(srfkey);
|
|
74045
74045
|
}
|
|
@@ -74253,7 +74253,7 @@ var DEActionMethod = class extends Method {
|
|
|
74253
74253
|
try {
|
|
74254
74254
|
const addData = this.createEntity(entity);
|
|
74255
74255
|
let resultData;
|
|
74256
|
-
if (
|
|
74256
|
+
if (isArray10(addData)) {
|
|
74257
74257
|
const result = await Promise.all(
|
|
74258
74258
|
addData.map(
|
|
74259
74259
|
(item) => this.service.local.add(context, this.attach(context, item))
|
|
@@ -74384,7 +74384,7 @@ var DEActionMethod = class extends Method {
|
|
|
74384
74384
|
context,
|
|
74385
74385
|
minorAppDataEntityId
|
|
74386
74386
|
);
|
|
74387
|
-
const _context =
|
|
74387
|
+
const _context = clone52(context);
|
|
74388
74388
|
_context[this.entity.codeName.toLowerCase()] = key;
|
|
74389
74389
|
const _tempParams = {};
|
|
74390
74390
|
_tempParams.srfdefaultcond = {
|
|
@@ -74462,7 +74462,7 @@ var DEActionMethod = class extends Method {
|
|
|
74462
74462
|
try {
|
|
74463
74463
|
const updateData = this.createEntity(entity);
|
|
74464
74464
|
let resultData;
|
|
74465
|
-
if (
|
|
74465
|
+
if (isArray10(updateData)) {
|
|
74466
74466
|
const result = await Promise.all(
|
|
74467
74467
|
updateData.map(
|
|
74468
74468
|
(item) => this.service.local.update(context, this.attach(context, item))
|
|
@@ -74648,8 +74648,8 @@ import {
|
|
|
74648
74648
|
RuntimeError as RuntimeError66,
|
|
74649
74649
|
RuntimeModelError as RuntimeModelError69
|
|
74650
74650
|
} from "@ibiz-template/core";
|
|
74651
|
-
import { isArray as
|
|
74652
|
-
import { clone as
|
|
74651
|
+
import { isArray as isArray11 } from "lodash-es";
|
|
74652
|
+
import { clone as clone53, isEmpty as isEmpty9, isNil as isNil37 } from "ramda";
|
|
74653
74653
|
import { ascSort as ascSort2, descSort } from "qx-util";
|
|
74654
74654
|
var FetchMethod = class extends Method {
|
|
74655
74655
|
async exec(context, params, params2, header) {
|
|
@@ -74657,7 +74657,7 @@ var FetchMethod = class extends Method {
|
|
|
74657
74657
|
if (!context.srfappid) {
|
|
74658
74658
|
return new HttpResponse6([]);
|
|
74659
74659
|
}
|
|
74660
|
-
const searchParams = params && !
|
|
74660
|
+
const searchParams = params && !isArray11(params) ? params : params2 || {};
|
|
74661
74661
|
let res;
|
|
74662
74662
|
if (this.isLocalMode) {
|
|
74663
74663
|
const orderField = (_a3 = this.entity.appDEFields) == null ? void 0 : _a3.find((appDEField) => {
|
|
@@ -74798,7 +74798,7 @@ var FetchMethod = class extends Method {
|
|
|
74798
74798
|
const { page, size } = filter;
|
|
74799
74799
|
const start = page * size;
|
|
74800
74800
|
const end = (page + 1) * size;
|
|
74801
|
-
const items = list.slice(start, end).map((item) =>
|
|
74801
|
+
const items = list.slice(start, end).map((item) => clone53(item));
|
|
74802
74802
|
return items;
|
|
74803
74803
|
}
|
|
74804
74804
|
/**
|
|
@@ -74855,7 +74855,7 @@ var FetchMethod = class extends Method {
|
|
|
74855
74855
|
const { page, size } = filter;
|
|
74856
74856
|
const start = page * size;
|
|
74857
74857
|
const end = (page + 1) * size;
|
|
74858
|
-
const items = list.slice(start, end).map((item) =>
|
|
74858
|
+
const items = list.slice(start, end).map((item) => clone53(item));
|
|
74859
74859
|
return {
|
|
74860
74860
|
items,
|
|
74861
74861
|
total: list.length,
|
|
@@ -76178,7 +76178,7 @@ var AIUtilService = class {
|
|
|
76178
76178
|
};
|
|
76179
76179
|
|
|
76180
76180
|
// src/service/mqtt/mqtt.service.ts
|
|
76181
|
-
import { clone as
|
|
76181
|
+
import { clone as clone54 } from "lodash-es";
|
|
76182
76182
|
import { QXEvent as QXEvent7, createUUID as createUUID21 } from "qx-util";
|
|
76183
76183
|
var MqttService = class {
|
|
76184
76184
|
/**
|
|
@@ -76269,7 +76269,7 @@ var MqttService = class {
|
|
|
76269
76269
|
};
|
|
76270
76270
|
const { type, subtype, content } = msg;
|
|
76271
76271
|
if (type === "COMMAND" && (subtype === "OBJECTCREATED" || subtype === "OBJECTUPDATED") && content && Object.prototype.toString.call(content) === "[object Object]" && content.srfdename) {
|
|
76272
|
-
msg.data =
|
|
76272
|
+
msg.data = clone54(content);
|
|
76273
76273
|
}
|
|
76274
76274
|
return msg;
|
|
76275
76275
|
}
|
|
@@ -76929,7 +76929,7 @@ var CustomThemeUtil = class {
|
|
|
76929
76929
|
* @return {*} {Promise<IData>}
|
|
76930
76930
|
*/
|
|
76931
76931
|
async previewCustomTheme(themeTag, themeVars = {}, isLoad = true) {
|
|
76932
|
-
const cloneThemeVars =
|
|
76932
|
+
const cloneThemeVars = clone55(themeVars);
|
|
76933
76933
|
if (isLoad) {
|
|
76934
76934
|
const result = await this.loadCustomTheme(themeTag);
|
|
76935
76935
|
if (result) {
|
|
@@ -77097,7 +77097,7 @@ var ThemeUtil = class {
|
|
|
77097
77097
|
* @memberof ThemeUtil
|
|
77098
77098
|
*/
|
|
77099
77099
|
async loadTheme(theme, type = "COLOR") {
|
|
77100
|
-
const data =
|
|
77100
|
+
const data = clone56(theme.themeParams || {});
|
|
77101
77101
|
const path2 = data["theme-package-path"] || theme.themeUrl;
|
|
77102
77102
|
delete data.appId;
|
|
77103
77103
|
delete data["theme-package-path"];
|
|
@@ -77777,8 +77777,8 @@ var baseStyle = {
|
|
|
77777
77777
|
position: "fixed",
|
|
77778
77778
|
zIndex: "10000"
|
|
77779
77779
|
};
|
|
77780
|
-
function cloneElement(
|
|
77781
|
-
const element = getAnimationElement(
|
|
77780
|
+
function cloneElement(clone62, teleport = document.body, isRemoveChild = true) {
|
|
77781
|
+
const element = getAnimationElement(clone62);
|
|
77782
77782
|
if (element == null) {
|
|
77783
77783
|
throw new Error(ibiz.i18n.t("runtime.utils.anime.noClone"));
|
|
77784
77784
|
}
|
|
@@ -78197,11 +78197,11 @@ function arrayContains(arr, val) {
|
|
|
78197
78197
|
});
|
|
78198
78198
|
}
|
|
78199
78199
|
function cloneObject(o) {
|
|
78200
|
-
var
|
|
78200
|
+
var clone62 = {};
|
|
78201
78201
|
for (var p in o) {
|
|
78202
|
-
|
|
78202
|
+
clone62[p] = o[p];
|
|
78203
78203
|
}
|
|
78204
|
-
return
|
|
78204
|
+
return clone62;
|
|
78205
78205
|
}
|
|
78206
78206
|
function replaceObjectProps(o1, o2) {
|
|
78207
78207
|
var o = cloneObject(o1);
|
|
@@ -80152,7 +80152,7 @@ var ShortCutUtil = class {
|
|
|
80152
80152
|
};
|
|
80153
80153
|
|
|
80154
80154
|
// src/utils/bi-report-util/bi-report-util.ts
|
|
80155
|
-
import { clone as
|
|
80155
|
+
import { clone as clone57 } from "ramda";
|
|
80156
80156
|
import { RuntimeError as RuntimeError72 } from "@ibiz-template/core";
|
|
80157
80157
|
var BIReportUtil = class {
|
|
80158
80158
|
/**
|
|
@@ -80168,7 +80168,7 @@ var BIReportUtil = class {
|
|
|
80168
80168
|
async openDesignPage(context, params, data) {
|
|
80169
80169
|
if (!data.mode)
|
|
80170
80170
|
data.mode = "DATA";
|
|
80171
|
-
const tempContext =
|
|
80171
|
+
const tempContext = clone57(context);
|
|
80172
80172
|
let config = {};
|
|
80173
80173
|
if (data.mode === "DATA") {
|
|
80174
80174
|
const app = ibiz.hub.getApp(ibiz.env.appId);
|
|
@@ -80836,7 +80836,7 @@ var RecordNavUtil = class {
|
|
|
80836
80836
|
|
|
80837
80837
|
// src/utils/jsonschema-util/jsonschema-util.ts
|
|
80838
80838
|
import qs5 from "qs";
|
|
80839
|
-
import { clone as
|
|
80839
|
+
import { clone as clone58 } from "ramda";
|
|
80840
80840
|
var JsonSchemaUtil = class {
|
|
80841
80841
|
constructor() {
|
|
80842
80842
|
/**
|
|
@@ -81141,7 +81141,7 @@ var JsonSchemaUtil = class {
|
|
|
81141
81141
|
getMockEditor(context, item, valueOP) {
|
|
81142
81142
|
if (valueOP && this.excludeOPs.includes(valueOP))
|
|
81143
81143
|
return;
|
|
81144
|
-
const baseMockEditor =
|
|
81144
|
+
const baseMockEditor = clone58(this.DataTypeToEditor[item.type]);
|
|
81145
81145
|
if (!baseMockEditor)
|
|
81146
81146
|
return;
|
|
81147
81147
|
baseMockEditor.appId = context.srfappid;
|
|
@@ -85796,7 +85796,7 @@ var ViewShellHooks = class {
|
|
|
85796
85796
|
};
|
|
85797
85797
|
|
|
85798
85798
|
// src/utils/water-mark-util/water-mark-util.ts
|
|
85799
|
-
import { isArray as
|
|
85799
|
+
import { isArray as isArray12 } from "lodash-es";
|
|
85800
85800
|
|
|
85801
85801
|
// src/utils/water-mark-util/water-mark-manager/water-mark-manager.ts
|
|
85802
85802
|
var WaterMarkManager = class {
|
|
@@ -86135,7 +86135,7 @@ var WaterMarkUtil = class {
|
|
|
86135
86135
|
return null;
|
|
86136
86136
|
const _opts = { ...option };
|
|
86137
86137
|
if (_opts.text) {
|
|
86138
|
-
_opts.text =
|
|
86138
|
+
_opts.text = isArray12(_opts.text) ? _opts.text.map(
|
|
86139
86139
|
(_textItem) => ScriptFactory.execSingleLine("`".concat(_textItem, "`"), {
|
|
86140
86140
|
context,
|
|
86141
86141
|
params,
|
|
@@ -86155,6 +86155,32 @@ var WaterMarkUtil = class {
|
|
|
86155
86155
|
}
|
|
86156
86156
|
};
|
|
86157
86157
|
|
|
86158
|
+
// src/utils/task-util/task-util.ts
|
|
86159
|
+
async function runWithConcurrency(tasks, concurrency) {
|
|
86160
|
+
const results = new Array(tasks.length);
|
|
86161
|
+
const executing = /* @__PURE__ */ new Map();
|
|
86162
|
+
let currentIndex = 0;
|
|
86163
|
+
const runTask = async (index) => {
|
|
86164
|
+
try {
|
|
86165
|
+
const data = await tasks[index]();
|
|
86166
|
+
results[index] = data;
|
|
86167
|
+
} finally {
|
|
86168
|
+
executing.delete(index);
|
|
86169
|
+
}
|
|
86170
|
+
};
|
|
86171
|
+
while (currentIndex < tasks.length) {
|
|
86172
|
+
if (executing.size >= concurrency) {
|
|
86173
|
+
await Promise.race(executing.values());
|
|
86174
|
+
continue;
|
|
86175
|
+
}
|
|
86176
|
+
const index = currentIndex++;
|
|
86177
|
+
const taskPromise = runTask(index);
|
|
86178
|
+
executing.set(index, taskPromise);
|
|
86179
|
+
}
|
|
86180
|
+
await Promise.all(executing.values());
|
|
86181
|
+
return results;
|
|
86182
|
+
}
|
|
86183
|
+
|
|
86158
86184
|
// src/utils/map-util/map-util.ts
|
|
86159
86185
|
function getAreaLevelNum(areaLevel) {
|
|
86160
86186
|
return ["province", "city", "district", "township"].indexOf(areaLevel) + 2;
|
|
@@ -86721,7 +86747,7 @@ function filterPresetAttrs(controlAttributes) {
|
|
|
86721
86747
|
|
|
86722
86748
|
// src/command/app/open-app-view/open-app-view.ts
|
|
86723
86749
|
import { ModelError as ModelError28, RuntimeError as RuntimeError75 } from "@ibiz-template/core";
|
|
86724
|
-
import { clone as
|
|
86750
|
+
import { clone as clone59 } from "ramda";
|
|
86725
86751
|
var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
86726
86752
|
constructor() {
|
|
86727
86753
|
ibiz.commands.register(_OpenAppViewCommand.TAG, this.exec.bind(this));
|
|
@@ -86738,7 +86764,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
86738
86764
|
* @return {*} {(Promise<IModalData | void>)}
|
|
86739
86765
|
*/
|
|
86740
86766
|
async exec(appViewId, _context, params = {}, opts = {}) {
|
|
86741
|
-
const context =
|
|
86767
|
+
const context = clone59(_context);
|
|
86742
86768
|
if (context.srfsimple) {
|
|
86743
86769
|
delete context.srfsimple;
|
|
86744
86770
|
}
|
|
@@ -87569,7 +87595,7 @@ import { QXEvent as QXEvent14 } from "qx-util";
|
|
|
87569
87595
|
|
|
87570
87596
|
// src/controller/notification/async-action.controller.ts
|
|
87571
87597
|
import { QXEvent as QXEvent12 } from "qx-util";
|
|
87572
|
-
import { clone as
|
|
87598
|
+
import { clone as clone60 } from "ramda";
|
|
87573
87599
|
import { isNil as isNil40, isNumber as isNumber5 } from "lodash-es";
|
|
87574
87600
|
import dayjs11 from "dayjs";
|
|
87575
87601
|
var AsyncActionController = class {
|
|
@@ -87682,7 +87708,7 @@ var AsyncActionController = class {
|
|
|
87682
87708
|
} else {
|
|
87683
87709
|
this.noticeResult(action);
|
|
87684
87710
|
}
|
|
87685
|
-
this.evt.emit("add",
|
|
87711
|
+
this.evt.emit("add", clone60(action));
|
|
87686
87712
|
this.evt.emit("dataChange");
|
|
87687
87713
|
}
|
|
87688
87714
|
/**
|
|
@@ -87706,7 +87732,7 @@ var AsyncActionController = class {
|
|
|
87706
87732
|
}
|
|
87707
87733
|
this.noticeResult(action);
|
|
87708
87734
|
}
|
|
87709
|
-
this.evt.emit("change",
|
|
87735
|
+
this.evt.emit("change", clone60(action));
|
|
87710
87736
|
this.evt.emit("dataChange");
|
|
87711
87737
|
}
|
|
87712
87738
|
noticeResult(action) {
|
|
@@ -88734,28 +88760,50 @@ var AppHub = class {
|
|
|
88734
88760
|
* @memberof AppHub
|
|
88735
88761
|
*/
|
|
88736
88762
|
async loadMainExtensionPlugin() {
|
|
88737
|
-
|
|
88738
|
-
|
|
88739
|
-
|
|
88763
|
+
var _a3;
|
|
88764
|
+
const { enableExternalPlugin, concurrentPluginCount } = ibiz.appUtil.getRuntimeDevToolConfig();
|
|
88765
|
+
if (!enableExternalPlugin) {
|
|
88766
|
+
return;
|
|
88767
|
+
}
|
|
88768
|
+
let pluginListLength = 0;
|
|
88769
|
+
const res = await ibiz.net.axios({
|
|
88770
|
+
method: "get",
|
|
88771
|
+
url: "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.remoteModelUrl, "/extension")
|
|
88772
|
+
});
|
|
88773
|
+
if (res.status === 200 && res.data) {
|
|
88774
|
+
pluginListLength = Number(res.data);
|
|
88775
|
+
}
|
|
88776
|
+
if (pluginListLength === 0)
|
|
88777
|
+
return;
|
|
88778
|
+
const pluginTasks = Array.from({ length: pluginListLength }, (_, i) => {
|
|
88779
|
+
const index = i + 1;
|
|
88740
88780
|
const suffix = index === 1 ? "" : "".concat(index);
|
|
88741
88781
|
const targetUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.remoteModelUrl, "/ext").concat(suffix);
|
|
88742
|
-
|
|
88743
|
-
|
|
88744
|
-
|
|
88745
|
-
|
|
88746
|
-
|
|
88747
|
-
|
|
88748
|
-
|
|
88749
|
-
|
|
88750
|
-
|
|
88751
|
-
|
|
88752
|
-
|
|
88753
|
-
|
|
88754
|
-
|
|
88755
|
-
|
|
88756
|
-
|
|
88757
|
-
|
|
88758
|
-
|
|
88782
|
+
return async () => {
|
|
88783
|
+
try {
|
|
88784
|
+
await ibiz.plugin.loadPlugin({
|
|
88785
|
+
runtimeObject: true,
|
|
88786
|
+
rtobjectName: "ExtensionPlugin".concat(suffix),
|
|
88787
|
+
rtobjectRepo: targetUrl
|
|
88788
|
+
});
|
|
88789
|
+
return { ok: true, data: { index, targetUrl } };
|
|
88790
|
+
} catch (error) {
|
|
88791
|
+
return { ok: false, data: { index, targetUrl, error } };
|
|
88792
|
+
}
|
|
88793
|
+
};
|
|
88794
|
+
});
|
|
88795
|
+
const results = await runWithConcurrency(
|
|
88796
|
+
pluginTasks,
|
|
88797
|
+
concurrentPluginCount || 1
|
|
88798
|
+
);
|
|
88799
|
+
const errorResults = results.filter((result) => !(result == null ? void 0 : result.ok));
|
|
88800
|
+
if (errorResults && errorResults.length > 0) {
|
|
88801
|
+
ibiz.log.warn(
|
|
88802
|
+
ibiz.i18n.t("runtime.hub.noExtensionPlugin", {
|
|
88803
|
+
targetUrl: ((_a3 = errorResults[0].data) == null ? void 0 : _a3.targetUrl) || "Unknown"
|
|
88804
|
+
})
|
|
88805
|
+
);
|
|
88806
|
+
}
|
|
88759
88807
|
}
|
|
88760
88808
|
/**
|
|
88761
88809
|
* @description 加载指定子应用扩展插件
|
|
@@ -88764,6 +88812,10 @@ var AppHub = class {
|
|
|
88764
88812
|
* @memberof AppHub
|
|
88765
88813
|
*/
|
|
88766
88814
|
async loadSubExtensionPlugin(appId2) {
|
|
88815
|
+
const { enableExternalPlugin } = ibiz.appUtil.getRuntimeDevToolConfig();
|
|
88816
|
+
if (!enableExternalPlugin) {
|
|
88817
|
+
return;
|
|
88818
|
+
}
|
|
88767
88819
|
const targetUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.remoteModelUrl, "/subapps/").concat(appId2, "/ext");
|
|
88768
88820
|
try {
|
|
88769
88821
|
await ibiz.plugin.loadPlugin({
|
|
@@ -89039,7 +89091,7 @@ var EngineFactory = class {
|
|
|
89039
89091
|
import {
|
|
89040
89092
|
RuntimeError as RuntimeError79,
|
|
89041
89093
|
findRecursiveChild as findRecursiveChild3,
|
|
89042
|
-
IBizContext as
|
|
89094
|
+
IBizContext as IBizContext10
|
|
89043
89095
|
} from "@ibiz-template/core";
|
|
89044
89096
|
import qs6 from "qs";
|
|
89045
89097
|
import { isNil as isNil41 } from "ramda";
|
|
@@ -89391,7 +89443,7 @@ var ViewEngineBase = class {
|
|
|
89391
89443
|
caption,
|
|
89392
89444
|
icon: model.sysImage,
|
|
89393
89445
|
appViewId: model.id,
|
|
89394
|
-
context:
|
|
89446
|
+
context: IBizContext10.create(context),
|
|
89395
89447
|
params: { ...params },
|
|
89396
89448
|
openMode: modal.mode,
|
|
89397
89449
|
fullPath: window.location.hash
|
|
@@ -89595,7 +89647,7 @@ var ViewEngineBase = class {
|
|
|
89595
89647
|
|
|
89596
89648
|
// src/engine/md-view.engine.ts
|
|
89597
89649
|
import { RuntimeModelError as RuntimeModelError70 } from "@ibiz-template/core";
|
|
89598
|
-
import { clone as
|
|
89650
|
+
import { clone as clone61 } from "ramda";
|
|
89599
89651
|
var MDViewEngine = class extends ViewEngineBase {
|
|
89600
89652
|
/**
|
|
89601
89653
|
* 多数据部件名称
|
|
@@ -89882,7 +89934,7 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
89882
89934
|
ibiz.i18n.t("runtime.engine.logicNewdata")
|
|
89883
89935
|
);
|
|
89884
89936
|
}
|
|
89885
|
-
const params =
|
|
89937
|
+
const params = clone61(this.view.params);
|
|
89886
89938
|
if (copyMode) {
|
|
89887
89939
|
params.srfcopymode = copyMode;
|
|
89888
89940
|
}
|
|
@@ -94217,6 +94269,7 @@ export {
|
|
|
94217
94269
|
registerUILogicNodeProvider,
|
|
94218
94270
|
registerUILogicProvider,
|
|
94219
94271
|
registerViewProvider,
|
|
94272
|
+
runWithConcurrency,
|
|
94220
94273
|
selectAndImport,
|
|
94221
94274
|
strContain,
|
|
94222
94275
|
stringifyObj,
|