@ibiz-template/runtime 0.7.41-alpha.6 → 0.7.41-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/index.esm.js +1202 -754
  2. package/dist/index.system.min.js +1 -1
  3. package/out/config/global-config.d.ts.map +1 -1
  4. package/out/config/global-config.js +1 -0
  5. package/out/constant/index.d.ts +1 -0
  6. package/out/constant/index.d.ts.map +1 -1
  7. package/out/constant/index.js +1 -0
  8. package/out/constant/predefined-control-render.d.ts +16 -0
  9. package/out/constant/predefined-control-render.d.ts.map +1 -0
  10. package/out/constant/predefined-control-render.js +17 -0
  11. package/out/controller/common/control/control.controller.d.ts.map +1 -1
  12. package/out/controller/common/control/control.controller.js +4 -1
  13. package/out/controller/common/editor/editor.controller.d.ts +8 -0
  14. package/out/controller/common/editor/editor.controller.d.ts.map +1 -1
  15. package/out/controller/common/editor/editor.controller.js +15 -0
  16. package/out/controller/control/chart/generator/index.d.ts +12 -0
  17. package/out/controller/control/chart/generator/index.d.ts.map +1 -0
  18. package/out/controller/control/chart/generator/index.js +11 -0
  19. package/out/controller/control/chart/index.d.ts +1 -0
  20. package/out/controller/control/chart/index.d.ts.map +1 -1
  21. package/out/controller/control/chart/index.js +1 -0
  22. package/out/controller/control/data-view/data-view.controller.d.ts +9 -11
  23. package/out/controller/control/data-view/data-view.controller.d.ts.map +1 -1
  24. package/out/controller/control/data-view/data-view.controller.js +30 -37
  25. package/out/controller/control/form/edit-form/edit-form.service.d.ts.map +1 -1
  26. package/out/controller/control/form/edit-form/edit-form.service.js +5 -1
  27. package/out/controller/control/kanban/kanban.controller.d.ts +39 -12
  28. package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
  29. package/out/controller/control/kanban/kanban.controller.js +168 -53
  30. package/out/controller/control/tree/tree.controller.d.ts +17 -2
  31. package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
  32. package/out/controller/control/tree/tree.controller.js +79 -3
  33. package/out/controller/control/tree/tree.service.d.ts +75 -0
  34. package/out/controller/control/tree/tree.service.d.ts.map +1 -1
  35. package/out/controller/control/tree/tree.service.js +145 -8
  36. package/out/controller/ctx/ctx.js +2 -2
  37. package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +7 -0
  38. package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
  39. package/out/interface/api/controller/common/i-api-mask-option.d.ts +1 -1
  40. package/out/interface/api/controller/control/i-api-edit-form.controller.d.ts +1 -0
  41. package/out/interface/api/controller/control/i-api-edit-form.controller.d.ts.map +1 -1
  42. package/out/interface/api/controller/control/i-api-kanban.controller.d.ts +2 -0
  43. package/out/interface/api/controller/control/i-api-kanban.controller.d.ts.map +1 -1
  44. package/out/interface/common/i-modal/i-modal.d.ts +3 -0
  45. package/out/interface/common/i-modal/i-modal.d.ts.map +1 -1
  46. package/out/interface/controller/controller/common/i-drag-change-info.d.ts +22 -14
  47. package/out/interface/controller/controller/common/i-drag-change-info.d.ts.map +1 -1
  48. package/out/interface/controller/state/control/i-data-view-control.state.d.ts +8 -0
  49. package/out/interface/controller/state/control/i-data-view-control.state.d.ts.map +1 -1
  50. package/out/interface/controller/state/control/i-kanban.state.d.ts +43 -8
  51. package/out/interface/controller/state/control/i-kanban.state.d.ts.map +1 -1
  52. package/out/interface/util/i-app-util/i-app-util.d.ts +6 -0
  53. package/out/interface/util/i-app-util/i-app-util.d.ts.map +1 -1
  54. package/out/locale/en/index.d.ts +1 -0
  55. package/out/locale/en/index.d.ts.map +1 -1
  56. package/out/locale/en/index.js +1 -0
  57. package/out/locale/zh-CN/index.d.ts +1 -0
  58. package/out/locale/zh-CN/index.d.ts.map +1 -1
  59. package/out/locale/zh-CN/index.js +1 -0
  60. package/out/model/utils/util.d.ts.map +1 -1
  61. package/out/model/utils/util.js +2 -1
  62. package/out/service/utils/dynamic-code-list/dynamic-code-list.d.ts.map +1 -1
  63. package/out/service/utils/dynamic-code-list/dynamic-code-list.js +1 -1
  64. package/out/ui-action/provider/custom-ui-action-provider.js +1 -1
  65. package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
  66. package/out/ui-action/provider/front-ui-action-provider.js +54 -40
  67. package/out/ui-action/provider/ui-action-provider-base.d.ts +1 -0
  68. package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
  69. package/out/ui-action/provider/ui-action-provider-base.js +14 -2
  70. package/out/ui-action/uiaction-util.js +2 -2
  71. package/out/ui-logic/ui-logic.d.ts.map +1 -1
  72. package/out/ui-logic/ui-logic.js +5 -1
  73. package/out/utils/handlebars/helpers/abs/abs.d.ts +14 -0
  74. package/out/utils/handlebars/helpers/abs/abs.d.ts.map +1 -0
  75. package/out/utils/handlebars/helpers/abs/abs.js +19 -0
  76. package/out/utils/handlebars/helpers/index.d.ts.map +1 -1
  77. package/out/utils/handlebars/helpers/index.js +2 -0
  78. package/out/utils/handlebars/utils/helper/helper.d.ts.map +1 -1
  79. package/out/utils/handlebars/utils/helper/helper.js +1 -0
  80. package/out/utils/modal/modal.d.ts +3 -0
  81. package/out/utils/modal/modal.d.ts.map +1 -1
  82. package/out/utils/modal/modal.js +7 -0
  83. package/package.json +5 -5
package/dist/index.esm.js CHANGED
@@ -16623,25 +16623,25 @@ var require_html2canvas = __commonJS({
16623
16623
  if (isStyleElement(node)) {
16624
16624
  return this.createStyleClone(node);
16625
16625
  }
16626
- var clone54 = node.cloneNode(false);
16627
- if (isImageElement(clone54)) {
16626
+ var clone55 = node.cloneNode(false);
16627
+ if (isImageElement(clone55)) {
16628
16628
  if (isImageElement(node) && node.currentSrc && node.currentSrc !== node.src) {
16629
- clone54.src = node.currentSrc;
16630
- clone54.srcset = "";
16629
+ clone55.src = node.currentSrc;
16630
+ clone55.srcset = "";
16631
16631
  }
16632
- if (clone54.loading === "lazy") {
16633
- clone54.loading = "eager";
16632
+ if (clone55.loading === "lazy") {
16633
+ clone55.loading = "eager";
16634
16634
  }
16635
16635
  }
16636
- if (isCustomElement(clone54)) {
16637
- return this.createCustomElementClone(clone54);
16636
+ if (isCustomElement(clone55)) {
16637
+ return this.createCustomElementClone(clone55);
16638
16638
  }
16639
- return clone54;
16639
+ return clone55;
16640
16640
  };
16641
16641
  DocumentCloner2.prototype.createCustomElementClone = function(node) {
16642
- var clone54 = document.createElement("html2canvascustomelement");
16643
- copyCSSStyles(node.style, clone54);
16644
- return clone54;
16642
+ var clone55 = document.createElement("html2canvascustomelement");
16643
+ copyCSSStyles(node.style, clone55);
16644
+ return clone55;
16645
16645
  };
16646
16646
  DocumentCloner2.prototype.createStyleClone = function(node) {
16647
16647
  try {
@@ -16723,25 +16723,25 @@ var require_html2canvas = __commonJS({
16723
16723
  blankCanvas.height = video.offsetHeight;
16724
16724
  return blankCanvas;
16725
16725
  };
16726
- DocumentCloner2.prototype.appendChildNode = function(clone54, child, copyStyles) {
16726
+ DocumentCloner2.prototype.appendChildNode = function(clone55, child, copyStyles) {
16727
16727
  if (!isElementNode(child) || !isScriptElement(child) && !child.hasAttribute(IGNORE_ATTRIBUTE) && (typeof this.options.ignoreElements !== "function" || !this.options.ignoreElements(child))) {
16728
16728
  if (!this.options.copyStyles || !isElementNode(child) || !isStyleElement(child)) {
16729
- clone54.appendChild(this.cloneNode(child, copyStyles));
16729
+ clone55.appendChild(this.cloneNode(child, copyStyles));
16730
16730
  }
16731
16731
  }
16732
16732
  };
16733
- DocumentCloner2.prototype.cloneChildNodes = function(node, clone54, copyStyles) {
16733
+ DocumentCloner2.prototype.cloneChildNodes = function(node, clone55, copyStyles) {
16734
16734
  var _this = this;
16735
16735
  for (var child = node.shadowRoot ? node.shadowRoot.firstChild : node.firstChild; child; child = child.nextSibling) {
16736
16736
  if (isElementNode(child) && isSlotElement(child) && typeof child.assignedNodes === "function") {
16737
16737
  var assignedNodes = child.assignedNodes();
16738
16738
  if (assignedNodes.length) {
16739
16739
  assignedNodes.forEach(function(assignedNode) {
16740
- return _this.appendChildNode(clone54, assignedNode, copyStyles);
16740
+ return _this.appendChildNode(clone55, assignedNode, copyStyles);
16741
16741
  });
16742
16742
  }
16743
16743
  } else {
16744
- this.appendChildNode(clone54, child, copyStyles);
16744
+ this.appendChildNode(clone55, child, copyStyles);
16745
16745
  }
16746
16746
  }
16747
16747
  };
@@ -16754,53 +16754,53 @@ var require_html2canvas = __commonJS({
16754
16754
  }
16755
16755
  var window2 = node.ownerDocument.defaultView;
16756
16756
  if (window2 && isElementNode(node) && (isHTMLElementNode(node) || isSVGElementNode(node))) {
16757
- var clone54 = this.createElementClone(node);
16758
- clone54.style.transitionProperty = "none";
16757
+ var clone55 = this.createElementClone(node);
16758
+ clone55.style.transitionProperty = "none";
16759
16759
  var style = window2.getComputedStyle(node);
16760
16760
  var styleBefore = window2.getComputedStyle(node, ":before");
16761
16761
  var styleAfter = window2.getComputedStyle(node, ":after");
16762
- if (this.referenceElement === node && isHTMLElementNode(clone54)) {
16763
- this.clonedReferenceElement = clone54;
16762
+ if (this.referenceElement === node && isHTMLElementNode(clone55)) {
16763
+ this.clonedReferenceElement = clone55;
16764
16764
  }
16765
- if (isBodyElement(clone54)) {
16766
- createPseudoHideStyles(clone54);
16765
+ if (isBodyElement(clone55)) {
16766
+ createPseudoHideStyles(clone55);
16767
16767
  }
16768
16768
  var counters = this.counters.parse(new CSSParsedCounterDeclaration(this.context, style));
16769
- var before = this.resolvePseudoContent(node, clone54, styleBefore, PseudoElementType.BEFORE);
16769
+ var before = this.resolvePseudoContent(node, clone55, styleBefore, PseudoElementType.BEFORE);
16770
16770
  if (isCustomElement(node)) {
16771
16771
  copyStyles = true;
16772
16772
  }
16773
16773
  if (!isVideoElement(node)) {
16774
- this.cloneChildNodes(node, clone54, copyStyles);
16774
+ this.cloneChildNodes(node, clone55, copyStyles);
16775
16775
  }
16776
16776
  if (before) {
16777
- clone54.insertBefore(before, clone54.firstChild);
16777
+ clone55.insertBefore(before, clone55.firstChild);
16778
16778
  }
16779
- var after = this.resolvePseudoContent(node, clone54, styleAfter, PseudoElementType.AFTER);
16779
+ var after = this.resolvePseudoContent(node, clone55, styleAfter, PseudoElementType.AFTER);
16780
16780
  if (after) {
16781
- clone54.appendChild(after);
16781
+ clone55.appendChild(after);
16782
16782
  }
16783
16783
  this.counters.pop(counters);
16784
16784
  if (style && (this.options.copyStyles || isSVGElementNode(node)) && !isIFrameElement(node) || copyStyles) {
16785
- copyCSSStyles(style, clone54);
16785
+ copyCSSStyles(style, clone55);
16786
16786
  }
16787
16787
  if (node.scrollTop !== 0 || node.scrollLeft !== 0) {
16788
- this.scrolledElements.push([clone54, node.scrollLeft, node.scrollTop]);
16788
+ this.scrolledElements.push([clone55, node.scrollLeft, node.scrollTop]);
16789
16789
  }
16790
- if ((isTextareaElement(node) || isSelectElement(node)) && (isTextareaElement(clone54) || isSelectElement(clone54))) {
16791
- clone54.value = node.value;
16790
+ if ((isTextareaElement(node) || isSelectElement(node)) && (isTextareaElement(clone55) || isSelectElement(clone55))) {
16791
+ clone55.value = node.value;
16792
16792
  }
16793
- return clone54;
16793
+ return clone55;
16794
16794
  }
16795
16795
  return node.cloneNode(false);
16796
16796
  };
16797
- DocumentCloner2.prototype.resolvePseudoContent = function(node, clone54, style, pseudoElt) {
16797
+ DocumentCloner2.prototype.resolvePseudoContent = function(node, clone55, style, pseudoElt) {
16798
16798
  var _this = this;
16799
16799
  if (!style) {
16800
16800
  return;
16801
16801
  }
16802
16802
  var value = style.content;
16803
- var document2 = clone54.ownerDocument;
16803
+ var document2 = clone55.ownerDocument;
16804
16804
  if (!document2 || !value || value === "none" || value === "-moz-alt-content" || style.display === "none") {
16805
16805
  return;
16806
16806
  }
@@ -16857,10 +16857,10 @@ var require_html2canvas = __commonJS({
16857
16857
  });
16858
16858
  anonymousReplacedElement.className = PSEUDO_HIDE_ELEMENT_CLASS_BEFORE + " " + PSEUDO_HIDE_ELEMENT_CLASS_AFTER;
16859
16859
  var newClassName = pseudoElt === PseudoElementType.BEFORE ? " " + PSEUDO_HIDE_ELEMENT_CLASS_BEFORE : " " + PSEUDO_HIDE_ELEMENT_CLASS_AFTER;
16860
- if (isSVGElementNode(clone54)) {
16861
- clone54.className.baseValue += newClassName;
16860
+ if (isSVGElementNode(clone55)) {
16861
+ clone55.className.baseValue += newClassName;
16862
16862
  } else {
16863
- clone54.className += newClassName;
16863
+ clone55.className += newClassName;
16864
16864
  }
16865
16865
  return anonymousReplacedElement;
16866
16866
  };
@@ -19209,7 +19209,8 @@ var GlobalConfig = class {
19209
19209
  };
19210
19210
  // 全局通用配置
19211
19211
  this.common = {
19212
- emptyText: "-"
19212
+ emptyText: "-",
19213
+ emptyShowMode: "DEFAULT"
19213
19214
  };
19214
19215
  // 多数据部件默认排序配置
19215
19216
  this.mdctrldefaultsort = "";
@@ -19410,6 +19411,7 @@ HelperUtil.helperNames = [
19410
19411
  "lookup",
19411
19412
  "log",
19412
19413
  "and",
19414
+ "abs",
19413
19415
  "camelCase",
19414
19416
  "concat",
19415
19417
  "eq",
@@ -19696,8 +19698,21 @@ var HelperUpperCase = class extends HelperBase {
19696
19698
  }
19697
19699
  };
19698
19700
 
19701
+ // src/utils/handlebars/helpers/abs/abs.ts
19702
+ var HelperAbs = class extends HelperBase {
19703
+ constructor(hbs) {
19704
+ super(hbs, "abs");
19705
+ }
19706
+ onExecute(str) {
19707
+ if (!str)
19708
+ return "";
19709
+ return Math.abs(Number(str)).toString();
19710
+ }
19711
+ };
19712
+
19699
19713
  // src/utils/handlebars/helpers/index.ts
19700
19714
  function installHelpers(hsb) {
19715
+ new HelperAbs(hsb);
19701
19716
  new HelperAnd(hsb);
19702
19717
  new HelperCamelCase(hsb);
19703
19718
  new HelperConcat(hsb);
@@ -19947,6 +19962,455 @@ import qs from "qs";
19947
19962
 
19948
19963
  // src/model/utils/util.ts
19949
19964
  import { RuntimeModelError as RuntimeModelError2 } from "@ibiz-template/core";
19965
+
19966
+ // src/constant/control-type.ts
19967
+ var ControlType = /* @__PURE__ */ ((ControlType2) => {
19968
+ ControlType2["APP_MENU"] = "APPMENU";
19969
+ ControlType2["GRID"] = "GRID";
19970
+ ControlType2["FORM"] = "FORM";
19971
+ ControlType2["SEARCHFORM"] = "SEARCHFORM";
19972
+ ControlType2["TOOLBAR"] = "TOOLBAR";
19973
+ ControlType2["DRBAR"] = "DRBAR";
19974
+ ControlType2["VIEWPANEL"] = "VIEWPANEL";
19975
+ ControlType2["PICKUP_VIEW_PANEL"] = "PICKUPVIEWPANEL";
19976
+ ControlType2["DATAVIEW"] = "DATAVIEW";
19977
+ ControlType2["TREEGRID"] = "TREEGRID";
19978
+ ControlType2["WF_EXPBAR"] = "WFEXPBAR";
19979
+ ControlType2["TREEVIEW"] = "TREEVIEW";
19980
+ ControlType2["TREE_EXP_BAR"] = "TREEEXPBAR";
19981
+ ControlType2["TAB_VIEWPANEL"] = "TABVIEWPANEL";
19982
+ ControlType2["DRTAB"] = "DRTAB";
19983
+ ControlType2["CHART"] = "CHART";
19984
+ ControlType2["REPORT_PANEL"] = "REPORTPANEL";
19985
+ ControlType2["LIST"] = "LIST";
19986
+ ControlType2["MOB_MDCTRL"] = "MOBMDCTRL";
19987
+ ControlType2["MULTI_EDIT_VIEWPANEL"] = "MULTIEDITVIEWPANEL";
19988
+ ControlType2["WIZARD_PANEL"] = "WIZARDPANEL";
19989
+ ControlType2["UPDATE_PANEL"] = "UPDATEPANEL";
19990
+ ControlType2["SEARCHBAR"] = "SEARCHBAR";
19991
+ ControlType2["DASHBOARD"] = "DASHBOARD";
19992
+ ControlType2["CALENDAR"] = "CALENDAR";
19993
+ ControlType2["PANEL"] = "PANEL";
19994
+ ControlType2["VIEW_LAYOUT_PANEL"] = "VIEWLAYOUTPANEL";
19995
+ ControlType2["MAP"] = "MAP";
19996
+ ControlType2["GANTT"] = "GANTT";
19997
+ ControlType2["TREE_GRIDEX"] = "TREEGRIDEX";
19998
+ ControlType2["KANBAN"] = "KANBAN";
19999
+ ControlType2["CALENDAR_EXPBAR"] = "CALENDAREXPBAR";
20000
+ ControlType2["CHART_EXPBAR"] = "CHARTEXPBAR";
20001
+ ControlType2["DATA_VIEW_EXPBAR"] = "DATAVIEWEXPBAR";
20002
+ ControlType2["GANTT_EXPBAR"] = "GANTTEXPBAR";
20003
+ ControlType2["GRID_EXPBAR"] = "GRIDEXPBAR";
20004
+ ControlType2["LIST_EXPBAR"] = "LISTEXPBAR";
20005
+ ControlType2["MAP_EXPBAR"] = "MAPEXPBAR";
20006
+ ControlType2["STATE_WIZARD_PANEL"] = "STATEWIZARDPANEL";
20007
+ ControlType2["TAB_EXP_PANEL"] = "TABEXPPANEL";
20008
+ ControlType2["CUSTOM"] = "CUSTOM";
20009
+ ControlType2["CAPTIONBAR"] = "CAPTIONBAR";
20010
+ ControlType2["CONTEXT_MENU"] = "CONTEXTMENU";
20011
+ return ControlType2;
20012
+ })(ControlType || {});
20013
+ var MDControlTypes = [
20014
+ "CALENDAR" /* CALENDAR */,
20015
+ "CHART" /* CHART */,
20016
+ "DATAVIEW" /* DATAVIEW */,
20017
+ "GANTT" /* GANTT */,
20018
+ "GRID" /* GRID */,
20019
+ "KANBAN" /* KANBAN */,
20020
+ "LIST" /* LIST */,
20021
+ "MAP" /* MAP */,
20022
+ "MOBMDCTRL" /* MOB_MDCTRL */,
20023
+ "MULTIEDITVIEWPANEL" /* MULTI_EDIT_VIEWPANEL */,
20024
+ "TREEGRID" /* TREEGRID */,
20025
+ "TREEVIEW" /* TREEVIEW */,
20026
+ "TREEGRIDEX" /* TREE_GRIDEX */
20027
+ ];
20028
+
20029
+ // src/constant/platform-type.ts
20030
+ var PlatformType = /* @__PURE__ */ ((PlatformType2) => {
20031
+ PlatformType2["IOS"] = "IOS";
20032
+ PlatformType2["ANDROID"] = "Android";
20033
+ PlatformType2["WECHAT"] = "WeChat";
20034
+ PlatformType2["QQ"] = "QQ";
20035
+ PlatformType2["DINGTALK"] = "DingTalk";
20036
+ PlatformType2["BROWSER"] = "Browser";
20037
+ PlatformType2["WCMP"] = "WeChatMiniProgram";
20038
+ PlatformType2["DESKTOP"] = "Desktop";
20039
+ return PlatformType2;
20040
+ })(PlatformType || {});
20041
+
20042
+ // src/constant/route.ts
20043
+ var RouteConst = /* @__PURE__ */ ((RouteConst2) => {
20044
+ RouteConst2["ROUTE_MODAL_TAG"] = "route-modal";
20045
+ return RouteConst2;
20046
+ })(RouteConst || {});
20047
+
20048
+ // src/constant/studio-event.ts
20049
+ var StudioViewEvents = class {
20050
+ };
20051
+ /**
20052
+ * 视图加载
20053
+ */
20054
+ StudioViewEvents.onViewMounted = "onMounted";
20055
+ /**
20056
+ * 视图销毁
20057
+ */
20058
+ StudioViewEvents.onViewDestroyed = "onDestroyed";
20059
+ var StudioPanelEvents = class {
20060
+ };
20061
+ /**
20062
+ * 点击事件
20063
+ */
20064
+ StudioPanelEvents.onClick = "onClick";
20065
+ /**
20066
+ * 值变更事件
20067
+ */
20068
+ StudioPanelEvents.onChange = "onChange";
20069
+ /**
20070
+ * 输入事件
20071
+ */
20072
+ StudioPanelEvents.onEnter = "onEnter";
20073
+ /**
20074
+ * 离开事件
20075
+ */
20076
+ StudioPanelEvents.onLeave = "onLeave";
20077
+ var StudioControlEvents = class {
20078
+ };
20079
+ /**
20080
+ * 加载之前
20081
+ */
20082
+ StudioControlEvents.onBeforeLoad = "onBeforeLoad";
20083
+ /**
20084
+ * 加载成功
20085
+ */
20086
+ StudioControlEvents.onLoadSuccess = "onLoadSuccess";
20087
+ /**
20088
+ * 加载失败
20089
+ */
20090
+ StudioControlEvents.onLoadError = "onLoadError";
20091
+ /**
20092
+ * 加载草稿之前
20093
+ */
20094
+ StudioControlEvents.onBeforeLoadDraft = "onBeforeLoadDraft";
20095
+ /**
20096
+ * 加载草稿成功
20097
+ */
20098
+ StudioControlEvents.onLoadDraftSuccess = "onLoadDraftSuccess";
20099
+ /**
20100
+ * 加载草稿失败
20101
+ */
20102
+ StudioControlEvents.onLoadDraftError = "onLoadDraftError";
20103
+ /**
20104
+ * 保存之前
20105
+ */
20106
+ StudioControlEvents.onBeforeSave = "onBeforeSave";
20107
+ /**
20108
+ * 保存成功
20109
+ */
20110
+ StudioControlEvents.onSaveSuccess = "onSaveSuccess";
20111
+ /**
20112
+ * 保存失败
20113
+ */
20114
+ StudioControlEvents.onSaveError = "onSaveError";
20115
+ /**
20116
+ * 删除之前
20117
+ */
20118
+ StudioControlEvents.onBeforeRemove = "onBeforeRemove";
20119
+ /**
20120
+ * 删除成功
20121
+ */
20122
+ StudioControlEvents.onRemoveSuccess = "onRemoveSuccess";
20123
+ /**
20124
+ * 删除失败
20125
+ */
20126
+ StudioControlEvents.onRemoveError = "onRemoveError";
20127
+ /**
20128
+ * 原生默认工具栏的点击事件名称
20129
+ */
20130
+ StudioControlEvents.CLICK = "onClick";
20131
+
20132
+ // src/constant/sys-uiaction-tag.ts
20133
+ var SysUIActionTag = /* @__PURE__ */ ((SysUIActionTag2) => {
20134
+ SysUIActionTag2["NEW"] = "New";
20135
+ SysUIActionTag2["EDIT"] = "Edit";
20136
+ SysUIActionTag2["REFRESH"] = "Refresh";
20137
+ SysUIActionTag2["EXIT"] = "Exit";
20138
+ SysUIActionTag2["SAVE_AND_EXIT"] = "SaveAndExit";
20139
+ SysUIActionTag2["SAVE_AND_NEW"] = "SaveAndNew";
20140
+ SysUIActionTag2["SAVE"] = "Save";
20141
+ SysUIActionTag2["SAVE_ROW"] = "SaveRow";
20142
+ SysUIActionTag2["REMOVE"] = "Remove";
20143
+ SysUIActionTag2["REMOVE_AND_EXIT"] = "RemoveAndExit";
20144
+ SysUIActionTag2["NEW_ROW"] = "NewRow";
20145
+ SysUIActionTag2["TOGGLE_FILTER"] = "ToggleFilter";
20146
+ SysUIActionTag2["IMPORT"] = "Import";
20147
+ SysUIActionTag2["EXPORT_EXCEL"] = "ExportExcel";
20148
+ SysUIActionTag2["SAVE_AND_START"] = "SaveAndStart";
20149
+ SysUIActionTag2["VIEW_WF_STEP"] = "ViewWFStep";
20150
+ SysUIActionTag2["NO"] = "No";
20151
+ SysUIActionTag2["YES"] = "Yes";
20152
+ SysUIActionTag2["CANCEL"] = "Cancel";
20153
+ SysUIActionTag2["OK"] = "Ok";
20154
+ SysUIActionTag2["SEARCH"] = "Search";
20155
+ SysUIActionTag2["RESET"] = "Reset";
20156
+ SysUIActionTag2["FINISH"] = "Finish";
20157
+ SysUIActionTag2["NEXT_STEP"] = "NextStep";
20158
+ SysUIActionTag2["PREV_STEP"] = "PrevStep";
20159
+ SysUIActionTag2["ADD_SELECTION"] = "AddSelection";
20160
+ SysUIActionTag2["REMOVE_SELECTION"] = "RemoveSelection";
20161
+ SysUIActionTag2["REMOVE_ALL"] = "RemoveAll";
20162
+ SysUIActionTag2["ADD_ALL"] = "AddAll";
20163
+ SysUIActionTag2["LOGOUT"] = "Logout";
20164
+ SysUIActionTag2["LOGIN"] = "Login";
20165
+ SysUIActionTag2["CANCEL_CHANGES"] = "CancelChanges";
20166
+ SysUIActionTag2["COPY"] = "Copy";
20167
+ SysUIActionTag2["VIEW"] = "View";
20168
+ SysUIActionTag2["TOGGLE_ROW_EDIT"] = "ToggleRowEdit";
20169
+ SysUIActionTag2["REFRESH_ALL"] = "RefreshAll";
20170
+ SysUIActionTag2["REFRESH_PARENT"] = "RefreshParent";
20171
+ SysUIActionTag2["FIRST_RECORD"] = "FirstRecord";
20172
+ SysUIActionTag2["LAST_RECORD"] = "LastRecord";
20173
+ SysUIActionTag2["PREV_RECORD"] = "PrevRecord";
20174
+ SysUIActionTag2["NEXT_RECORD"] = "NextRecord";
20175
+ SysUIActionTag2["LOAD_MORE"] = "LoadMore";
20176
+ SysUIActionTag2["SHOTR_CUT"] = "ShortCut";
20177
+ SysUIActionTag2["EXPAND"] = "Expand";
20178
+ SysUIActionTag2["COLLAPSE"] = "Collapse";
20179
+ SysUIActionTag2["EXPANDALL"] = "ExpandAll";
20180
+ SysUIActionTag2["COLLAPSEALL"] = "CollapseAll";
20181
+ return SysUIActionTag2;
20182
+ })(SysUIActionTag || {});
20183
+
20184
+ // src/constant/value-op.ts
20185
+ var ValueOP = /* @__PURE__ */ ((ValueOP2) => {
20186
+ ValueOP2["EQ"] = "EQ";
20187
+ ValueOP2["NOT_EQ"] = "NOTEQ";
20188
+ ValueOP2["GT"] = "GT";
20189
+ ValueOP2["GT_AND_EQ"] = "GTANDEQ";
20190
+ ValueOP2["LT"] = "LT";
20191
+ ValueOP2["LT_AND_EQ"] = "LTANDEQ";
20192
+ ValueOP2["IS_NULL"] = "ISNULL";
20193
+ ValueOP2["IS_NOT_NULL"] = "ISNOTNULL";
20194
+ ValueOP2["IN"] = "IN";
20195
+ ValueOP2["NOT_IN"] = "NOTIN";
20196
+ ValueOP2["LIKE"] = "LIKE";
20197
+ ValueOP2["LIFT_LIKE"] = "LIFTLIKE";
20198
+ ValueOP2["RIGHT_LIKE"] = "RIGHT_LIKE";
20199
+ ValueOP2["CHILD_OF"] = "CHILDOF";
20200
+ ValueOP2["USER_LIKE"] = "USERLIKE";
20201
+ ValueOP2["BIT_AND"] = "BITAND";
20202
+ ValueOP2["EXISTS"] = "EXISTS";
20203
+ ValueOP2["NOT_EXISTS"] = "NOTEXISTS";
20204
+ return ValueOP2;
20205
+ })(ValueOP || {});
20206
+
20207
+ // src/constant/view-call-tag.ts
20208
+ var ViewCallTag = /* @__PURE__ */ ((ViewCallTag2) => {
20209
+ ViewCallTag2["LOAD"] = "Load";
20210
+ ViewCallTag2["GET_DATA"] = "GetData";
20211
+ ViewCallTag2["GET_ALL_DATA"] = "GetAllData";
20212
+ ViewCallTag2["VALIDATE"] = "Validate";
20213
+ ViewCallTag2["TOGGLE_COLLAPSE"] = "ToggleCollapse";
20214
+ ViewCallTag2["WF_WITHDRAW"] = "WFWithdraw";
20215
+ ViewCallTag2["COPY_PATH"] = "CopyPath";
20216
+ return ViewCallTag2;
20217
+ })(ViewCallTag || {});
20218
+
20219
+ // src/constant/view-mode.ts
20220
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
20221
+ ViewMode2["ROUTE"] = "ROUTE";
20222
+ ViewMode2["ROUTE_MODAL"] = "ROUTE_MODAL";
20223
+ ViewMode2["MODAL"] = "MODAL";
20224
+ ViewMode2["DRAWER"] = "DRAWER";
20225
+ ViewMode2["EMBED"] = "EMBED";
20226
+ ViewMode2["POPOVER"] = "POPOVER";
20227
+ return ViewMode2;
20228
+ })(ViewMode || {});
20229
+
20230
+ // src/constant/view-type.ts
20231
+ var ViewType = /* @__PURE__ */ ((ViewType2) => {
20232
+ ViewType2["APP_INDEX_VIEW"] = "APPINDEXVIEW";
20233
+ ViewType2["DE_GRID_VIEW"] = "DEGRIDVIEW";
20234
+ ViewType2["DE_EDIT_VIEW"] = "DEEDITVIEW";
20235
+ ViewType2["APP_DATA_UPLOAD_VIEW"] = "APPDATAUPLOADVIEW";
20236
+ ViewType2["APP_ERROR_VIEW"] = "APPERRORVIEW";
20237
+ ViewType2["APP_FILE_UPLOAD_VIEW"] = "APPFILEUPLOADVIEW";
20238
+ ViewType2["APP_FUN_PICKUP_VIEW"] = "APPFUNCPICKUPVIEW";
20239
+ ViewType2["APP_LOGIN_VIEW"] = "APPLOGINVIEW";
20240
+ ViewType2["APP_LOGOUT_VIEW"] = "APPLOGOUTVIEW";
20241
+ ViewType2["APP_PANEL_VIEW"] = "APPPANELVIEW";
20242
+ ViewType2["APP_PIC_UPLOAD_VIEW"] = "APPPICUPLOADVIEW";
20243
+ ViewType2["APP_PORTAL_VIEW"] = "APPPORTALVIEW";
20244
+ ViewType2["APP_REDIRECT_VIEW"] = "APPREDIRECTVIEW";
20245
+ ViewType2["APP_START_VIEW"] = "APPSTARTVIEW";
20246
+ ViewType2["APP_WELCOME_VIEW"] = "APPWELCOMEVIEW";
20247
+ ViewType2["APP_WF_ADD_STEP_AFTER_VIEW"] = "APPWFADDSTEPAFTERVIEW";
20248
+ ViewType2["APP_WF_ADD_STEP_BEFORE_VIEW"] = "APPWFADDSTEPBEFOREVIEW";
20249
+ ViewType2["APP_WF_REDIRECT_VIEW"] = "APPWFREDIRECTVIEW";
20250
+ ViewType2["APP_WF_SENDBAC_VIEW"] = "APPWFSENDBACKVIEW";
20251
+ ViewType2["APP_WF_STEP_ACTOR_VIEW"] = "APPWFSTEPACTORVIEW";
20252
+ ViewType2["APP_WF_STEP_DATA_VIEW"] = "APPWFSTEPDATAVIEW";
20253
+ ViewType2["APP_WF_STEP_TRACE_VIEW"] = "APPWFSTEPTRACEVIEW";
20254
+ ViewType2["APP_WF_SUPPLY_INFO_VIEW"] = "APPWFSUPPLYINFOVIEW";
20255
+ ViewType2["APP_WF_TAKE_ADVICE_VIEW"] = "APPWFTAKEADVICEVIEW";
20256
+ ViewType2["DE_CALENDAR_EXP_VIEW"] = "DECALENDAREXPVIEW";
20257
+ ViewType2["DE_CALENDAR_VIEW"] = "DECALENDARVIEW";
20258
+ ViewType2["DE_CHART_EXP_VIEW"] = "DECHARTEXPVIEW";
20259
+ ViewType2["DE_CHART_VIEW"] = "DECHARTVIEW";
20260
+ ViewType2["DE_CHART_VIEW9"] = "DECHARTVIEW9";
20261
+ ViewType2["DE_CUSTOM_VIEW"] = "DECUSTOMVIEW";
20262
+ ViewType2["DE_DATA_VIEW"] = "DEDATAVIEW";
20263
+ ViewType2["DE_DATA_VIEW9"] = "DEDATAVIEW9";
20264
+ ViewType2["DE_DATAVIEW_EXP_VIEW"] = "DEDATAVIEWEXPVIEW";
20265
+ ViewType2["DE_EDIT_VIEW2"] = "DEEDITVIEW2";
20266
+ ViewType2["DE_EDIT_VIEW3"] = "DEEDITVIEW3";
20267
+ ViewType2["DE_EDIT_VIEW4"] = "DEEDITVIEW4";
20268
+ ViewType2["DE_EDIT_VIEW9"] = "DEEDITVIEW9";
20269
+ ViewType2["DE_FORM_PICKUP_DATA_VIEW"] = "DEFORMPICKUPDATAVIEW";
20270
+ ViewType2["DE_GANTT_EXP_VIEW"] = "DEGANTTEXPVIEW";
20271
+ ViewType2["DE_GANTT_VIEW"] = "DEGANTTVIEW";
20272
+ ViewType2["DE_GANTT_VIEW9"] = "DEGANTTVIEW9";
20273
+ ViewType2["DE_GRID_EXP_VIEW"] = "DEGRIDEXPVIEW";
20274
+ ViewType2["DE_GRID_VIEW2"] = "DEGRIDVIEW2";
20275
+ ViewType2["DE_GRID_VIEW4"] = "DEGRIDVIEW4";
20276
+ ViewType2["DE_GRID_VIEW8"] = "DEGRIDVIEW8";
20277
+ ViewType2["DE_GRID_VIEW9"] = "DEGRIDVIEW9";
20278
+ ViewType2["DE_HTML_VIEW"] = "DEHTMLVIEW";
20279
+ ViewType2["DE_INDEX_PICKUP_DATA_VIEW"] = "DEINDEXPICKUPDATAVIEW";
20280
+ ViewType2["DE_INDEX_VIEW"] = "DEINDEXVIEW";
20281
+ ViewType2["DE_KANBAN_VIEW"] = "DEKANBANVIEW";
20282
+ ViewType2["DE_KANBAN_VIEW9"] = "DEKANBANVIEW9";
20283
+ ViewType2["DE_LIST_EXP_VIEW"] = "DELISTEXPVIEW";
20284
+ ViewType2["DE_LIST_VIEW"] = "DELISTVIEW";
20285
+ ViewType2["DE_LIST_VIEW9"] = "DELISTVIEW9";
20286
+ ViewType2["DE_MAP_EXP_VIEW"] = "DEMAPEXPVIEW";
20287
+ ViewType2["DE_MAP_VIEW"] = "DEMAPVIEW";
20288
+ ViewType2["DE_MAP_VIEW9"] = "DEMAPVIEW9";
20289
+ ViewType2["DE_MD_CUSTOM_VIEW"] = "DEMDCUSTOMVIEW";
20290
+ ViewType2["DE_MEDITVIEW9"] = "DEMEDITVIEW9";
20291
+ ViewType2["DE_MOB_CALENDAR_EXP_VIEW"] = "DEMOBCALENDAREXPVIEW";
20292
+ ViewType2["DE_MOB_CALENDAR_VIEW"] = "DEMOBCALENDARVIEW";
20293
+ ViewType2["DE_MOB_CALENDAR_VIEW9"] = "DEMOBCALENDARVIEW9";
20294
+ ViewType2["DE_MOB_CHART_EXP_VIEW"] = "DEMOBCHARTEXPVIEW";
20295
+ ViewType2["DE_MO_BCHART_VIEW"] = "DEMOBCHARTVIEW";
20296
+ ViewType2["D_EMOB_CHART_VIEW9"] = "DEMOBCHARTVIEW9";
20297
+ ViewType2["DE_MOB_CUSTOM_VIEW"] = "DEMOBCUSTOMVIEW";
20298
+ ViewType2["DE_MOB_DATA_VIEW"] = "DEMOBDATAVIEW";
20299
+ ViewType2["DE_MOB_DATA_VIEW_EXP_VIEW"] = "DEMOBDATAVIEWEXPVIEW";
20300
+ ViewType2["DE_MOB_EDIT_VIEW"] = "DEMOBEDITVIEW";
20301
+ ViewType2["DE_MOB_EDIT_VIEW3"] = "DEMOBEDITVIEW3";
20302
+ ViewType2["DE_MOB_EDITVIEW9"] = "DEMOBEDITVIEW9";
20303
+ ViewType2["DE_MOB_FORM_PICKUP_MDVIEW"] = "DEMOBFORMPICKUPMDVIEW";
20304
+ ViewType2["DE_MOB_GANTT_EXP_VIEW"] = "DEMOBGANTTEXPVIEW";
20305
+ ViewType2["DE_MOB_GANTT_VIEW"] = "DEMOBGANTTVIEW";
20306
+ ViewType2["DE_MOB_GANTT_VIEW9"] = "DEMOBGANTTVIEW9";
20307
+ ViewType2["DE_MOB_HTML_VIEW"] = "DEMOBHTMLVIEW";
20308
+ ViewType2["DE_MOB_INDEX_PICKUP_MDVIEW"] = "DEMOBINDEXPICKUPMDVIEW";
20309
+ ViewType2["DE_MOB_LIST_EXP_VIEW"] = "DEMOBLISTEXPVIEW";
20310
+ ViewType2["DE_MOB_LIST_VIEW"] = "DEMOBLISTVIEW";
20311
+ ViewType2["DE_MOB_MAP_VIEW"] = "DEMOBMAPVIEW";
20312
+ ViewType2["DE_MOB_MAP_VIEW9"] = "DEMOBMAPVIEW9";
20313
+ ViewType2["DE_MOB_MDVIEW"] = "DEMOBMDVIEW";
20314
+ ViewType2["DE_MOB_MDVIEW9"] = "DEMOBMDVIEW9";
20315
+ ViewType2["DE_MOB_MEDIT_VIEW9"] = "DEMOBMEDITVIEW9";
20316
+ ViewType2["DE_MOB_MPICKUP_VIEW"] = "DEMOBMPICKUPVIEW";
20317
+ ViewType2["DE_MOB_OPT_VIEW"] = "DEMOBOPTVIEW";
20318
+ ViewType2["DE_MOB_PANEL_VIEW"] = "DEMOBPANELVIEW";
20319
+ ViewType2["DE_MOB_PANEL_VIEW9"] = "DEMOBPANELVIEW9";
20320
+ ViewType2["DE_MOB_PICKUP_LIST_VIEW"] = "DEMOBPICKUPLISTVIEW";
20321
+ ViewType2["DE_MOB_PICKUP_MDVIEW"] = "DEMOBPICKUPMDVIEW";
20322
+ ViewType2["DE_MOB_PICKUP_TREE_VIEW"] = "DEMOBPICKUPTREEVIEW";
20323
+ ViewType2["DE_MOB_PICKUP_VIEW"] = "DEMOBPICKUPVIEW";
20324
+ ViewType2["DE_MOB_PORTAL_VIEW"] = "DEMOBPORTALVIEW";
20325
+ ViewType2["DE_MOB_PORTAL_VIEW9"] = "DEMOBPORTALVIEW9";
20326
+ ViewType2["DE_MOB_REDIRECT_VIEW"] = "DEMOBREDIRECTVIEW";
20327
+ ViewType2["DE_MOB_REPORT_VIEW"] = "DEMOBREPORTVIEW";
20328
+ ViewType2["DE_MOB_TAB_EXP_VIEW"] = "DEMOBTABEXPVIEW";
20329
+ ViewType2["DE_MOB_TAB_EXP_VIEW9"] = "DEMOBTABEXPVIEW9";
20330
+ ViewType2["DE_MOB_TAB_SEARCH_VIEW"] = "DEMOBTABSEARCHVIEW";
20331
+ ViewType2["DE_MOB_TAB_SEARCH_VIEW9"] = "DEMOBTABSEARCHVIEW9";
20332
+ ViewType2["DE_MOB_TREE_EXP_VIEW"] = "DEMOBTREEEXPVIEW";
20333
+ ViewType2["DEMOBTREEEXPVIEW9"] = "DEMOBTREEEXPVIEW9";
20334
+ ViewType2["DE_MOB_TREE_VIEW"] = "DEMOBTREEVIEW";
20335
+ ViewType2["DE_MOB_WFACTION_VIEW"] = "DEMOBWFACTIONVIEW";
20336
+ ViewType2["DE_MOB_WF_DATA_REDIRECT_VIEW"] = "DEMOBWFDATAREDIRECTVIEW";
20337
+ ViewType2["DE_MOB_WF_DYNAACTIO_NVIEW"] = "DEMOBWFDYNAACTIONVIEW";
20338
+ ViewType2["DE_MOB_WFDYNA_EDIT_VIEW"] = "DEMOBWFDYNAEDITVIEW";
20339
+ ViewType2["DE_MOB_WF_DYNA_EDIT_VIEW3"] = "DEMOBWFDYNAEDITVIEW3";
20340
+ ViewType2["DE_MOB_WF_DYNA_EXP_MDVIEW"] = "DEMOBWFDYNAEXPMDVIEW";
20341
+ ViewType2["DE_MO_BWF_DYNA_START_VIEW"] = "DEMOBWFDYNASTARTVIEW";
20342
+ ViewType2["DE_MOB_WF_EDIT_VIEW"] = "DEMOBWFEDITVIEW";
20343
+ ViewType2["DE_MOB_WF_EDIT_VIEW3"] = "DEMOBWFEDITVIEW3";
20344
+ ViewType2["DE_MOB_WF_MDVIEW"] = "DEMOBWFMDVIEW";
20345
+ ViewType2["DE_MOB_WF_PROXY_RESULT_VIEW"] = "DEMOBWFPROXYRESULTVIEW";
20346
+ ViewType2["DE_MOB_WF_PROXY_START_VIEW"] = "DEMOBWFPROXYSTARTVIEW";
20347
+ ViewType2["DE_MOB_WF_START_VIEW"] = "DEMOBWFSTARTVIEW";
20348
+ ViewType2["DE_MOB_WIZARD_VIEW"] = "DEMOBWIZARDVIEW";
20349
+ ViewType2["DE_MPICKUP_VIEW"] = "DEMPICKUPVIEW";
20350
+ ViewType2["DE_MPICKUP_VIEW2"] = "DEMPICKUPVIEW2";
20351
+ ViewType2["DE_OPT_VIEW"] = "DEOPTVIEW";
20352
+ ViewType2["DE_PANEL_VIEW"] = "DEPANELVIEW";
20353
+ ViewType2["DE_PANEL_VIEW9"] = "DEPANELVIEW9";
20354
+ ViewType2["DE_PICKUP_DATA_VIEW"] = "DEPICKUPDATAVIEW";
20355
+ ViewType2["DE_PICKUP_GRID_VIEW"] = "DEPICKUPGRIDVIEW";
20356
+ ViewType2["DE_PICKUP_TREE_VIEW"] = "DEPICKUPTREEVIEW";
20357
+ ViewType2["DE_PICKUP_VIEW"] = "DEPICKUPVIEW";
20358
+ ViewType2["DE_PICKUP_VIEW2"] = "DEPICKUPVIEW2";
20359
+ ViewType2["DE_PICK_UP_VIEW3"] = "DEPICKUPVIEW3";
20360
+ ViewType2["DE_PORTAL_VIEW"] = "DEPORTALVIEW";
20361
+ ViewType2["DE_PORTAL_VIEW9"] = "DEPORTALVIEW9";
20362
+ ViewType2["DE_REDIRECT_VIEW"] = "DEREDIRECTVIEW";
20363
+ ViewType2["DE_REPORT_VIEW"] = "DEREPORTVIEW";
20364
+ ViewType2["DE_TAB_EXP_VIEW"] = "DETABEXPVIEW";
20365
+ ViewType2["DE_TAB_EXP_VIEW9"] = "DETABEXPVIEW9";
20366
+ ViewType2["DE_TAB_SEARCH_VIEW"] = "DETABSEARCHVIEW";
20367
+ ViewType2["DE_TAB_SEARCH_VIEW9"] = "DETABSEARCHVIEW9";
20368
+ ViewType2["DE_TREE_EXP_VIEW"] = "DETREEEXPVIEW";
20369
+ ViewType2["DE_TREE_EXP_VIEW2"] = "DETREEEXPVIEW2";
20370
+ ViewType2["DE_TREE_EXP_VIEW3"] = "DETREEEXPVIEW3";
20371
+ ViewType2["DE_TREE_GRID_EXVIEW"] = "DETREEGRIDEXVIEW";
20372
+ ViewType2["DE_TREE_GRID_EXVIEW9"] = "DETREEGRIDEXVIEW9";
20373
+ ViewType2["DE_TREE_GRID_VIEW"] = "DETREEGRIDVIEW";
20374
+ ViewType2["DE_TREE_GRID_VIEW9"] = "DETREEGRIDVIEW9";
20375
+ ViewType2["DE_TREE_VIEW"] = "DETREEVIEW";
20376
+ ViewType2["DE_TREE_VIEW9"] = "DETREEVIEW9";
20377
+ ViewType2["DE_WF_ACTION_VIEW"] = "DEWFACTIONVIEW";
20378
+ ViewType2["DE_WF_DATA_REDIRECT_VIEW"] = "DEWFDATAREDIRECTVIEW";
20379
+ ViewType2["DE_WF_DYNA_ACTION_VIEW"] = "DEWFDYNAACTIONVIEW";
20380
+ ViewType2["DE_WF_DYNA_EDIT_VIEW"] = "DEWFDYNAEDITVIEW";
20381
+ ViewType2["DE_WF_DYNA_EDIT_VIEW3"] = "DEWFDYNAEDITVIEW3";
20382
+ ViewType2["DE_WF_DYNA_EXP_GRID_VIEW"] = "DEWFDYNAEXPGRIDVIEW";
20383
+ ViewType2["DE_WF_DYNA_START_VIEW"] = "DEWFDYNASTARTVIEW";
20384
+ ViewType2["DE_WF_EDIT_PROXY_DATA_VIEW"] = "DEWFEDITPROXYDATAVIEW";
20385
+ ViewType2["DE_WF_EDIT_VIEW"] = "DEWFEDITVIEW";
20386
+ ViewType2["DE_WF_EDIT_VIEW2"] = "DEWFEDITVIEW2";
20387
+ ViewType2["DE_WF_EDIT_VIEW3"] = "DEWFEDITVIEW3";
20388
+ ViewType2["DE_WF_EDIT_VIEW9"] = "DEWFEDITVIEW9";
20389
+ ViewType2["DE_WF_EXP_VIEW"] = "DEWFEXPVIEW";
20390
+ ViewType2["DE_WF_GRID_VIEW"] = "DEWFGRIDVIEW";
20391
+ ViewType2["DE_WF_PROXY_DATA_VIEW"] = "DEWFPROXYDATAVIEW";
20392
+ ViewType2["DE_WF_PROXY_RESULT_VIEW"] = "DEWFPROXYRESULTVIEW";
20393
+ ViewType2["DE_WF_PROXY_START_VIEW"] = "DEWFPROXYSTARTVIEW";
20394
+ ViewType2["DE_WF_START_VIEW"] = "DEWFSTARTVIEW";
20395
+ ViewType2["DE_WIZARD_VIEW"] = "DEWIZARDVIEW";
20396
+ ViewType2["DE_SUB_APP_REF_VIEW"] = "DESUBAPPREFVIEW";
20397
+ return ViewType2;
20398
+ })(ViewType || {});
20399
+
20400
+ // src/constant/preset-identifier.ts
20401
+ var PresetIdentifier = /* @__PURE__ */ ((PresetIdentifier2) => {
20402
+ PresetIdentifier2["MESSAGE"] = "preset-message";
20403
+ return PresetIdentifier2;
20404
+ })(PresetIdentifier || {});
20405
+
20406
+ // src/constant/predefined-control-render.ts
20407
+ var PredefinedControlRender = /* @__PURE__ */ ((PredefinedControlRender2) => {
20408
+ PredefinedControlRender2["EMPTYPANEL"] = "emptypanel";
20409
+ PredefinedControlRender2["DISABLEPANEL"] = "disablepanel";
20410
+ return PredefinedControlRender2;
20411
+ })(PredefinedControlRender || {});
20412
+
20413
+ // src/model/utils/util.ts
19950
20414
  function findModelChild(models, id) {
19951
20415
  if (models && id) {
19952
20416
  const model = models.find((item) => {
@@ -20033,7 +20497,9 @@ function getControlPanel(control) {
20033
20497
  let layoutPanel;
20034
20498
  if (control.controlRenders) {
20035
20499
  const panelRender = control.controlRenders.find(
20036
- (item) => item.renderType === "LAYOUTPANEL" && !!item.layoutPanel && item.id !== "emptypanel"
20500
+ (item) => item.renderType === "LAYOUTPANEL" && !!item.layoutPanel && !Object.values(PredefinedControlRender).includes(
20501
+ item.id
20502
+ )
20037
20503
  );
20038
20504
  layoutPanel = panelRender == null ? void 0 : panelRender.layoutPanel;
20039
20505
  }
@@ -21760,454 +22226,13 @@ function getWFSubmitViewId(view, link) {
21760
22226
 
21761
22227
  // src/utils/modal/modal.ts
21762
22228
  import { AsyncSeriesHook } from "qx-util";
21763
-
21764
- // src/constant/control-type.ts
21765
- var ControlType = /* @__PURE__ */ ((ControlType2) => {
21766
- ControlType2["APP_MENU"] = "APPMENU";
21767
- ControlType2["GRID"] = "GRID";
21768
- ControlType2["FORM"] = "FORM";
21769
- ControlType2["SEARCHFORM"] = "SEARCHFORM";
21770
- ControlType2["TOOLBAR"] = "TOOLBAR";
21771
- ControlType2["DRBAR"] = "DRBAR";
21772
- ControlType2["VIEWPANEL"] = "VIEWPANEL";
21773
- ControlType2["PICKUP_VIEW_PANEL"] = "PICKUPVIEWPANEL";
21774
- ControlType2["DATAVIEW"] = "DATAVIEW";
21775
- ControlType2["TREEGRID"] = "TREEGRID";
21776
- ControlType2["WF_EXPBAR"] = "WFEXPBAR";
21777
- ControlType2["TREEVIEW"] = "TREEVIEW";
21778
- ControlType2["TREE_EXP_BAR"] = "TREEEXPBAR";
21779
- ControlType2["TAB_VIEWPANEL"] = "TABVIEWPANEL";
21780
- ControlType2["DRTAB"] = "DRTAB";
21781
- ControlType2["CHART"] = "CHART";
21782
- ControlType2["REPORT_PANEL"] = "REPORTPANEL";
21783
- ControlType2["LIST"] = "LIST";
21784
- ControlType2["MOB_MDCTRL"] = "MOBMDCTRL";
21785
- ControlType2["MULTI_EDIT_VIEWPANEL"] = "MULTIEDITVIEWPANEL";
21786
- ControlType2["WIZARD_PANEL"] = "WIZARDPANEL";
21787
- ControlType2["UPDATE_PANEL"] = "UPDATEPANEL";
21788
- ControlType2["SEARCHBAR"] = "SEARCHBAR";
21789
- ControlType2["DASHBOARD"] = "DASHBOARD";
21790
- ControlType2["CALENDAR"] = "CALENDAR";
21791
- ControlType2["PANEL"] = "PANEL";
21792
- ControlType2["VIEW_LAYOUT_PANEL"] = "VIEWLAYOUTPANEL";
21793
- ControlType2["MAP"] = "MAP";
21794
- ControlType2["GANTT"] = "GANTT";
21795
- ControlType2["TREE_GRIDEX"] = "TREEGRIDEX";
21796
- ControlType2["KANBAN"] = "KANBAN";
21797
- ControlType2["CALENDAR_EXPBAR"] = "CALENDAREXPBAR";
21798
- ControlType2["CHART_EXPBAR"] = "CHARTEXPBAR";
21799
- ControlType2["DATA_VIEW_EXPBAR"] = "DATAVIEWEXPBAR";
21800
- ControlType2["GANTT_EXPBAR"] = "GANTTEXPBAR";
21801
- ControlType2["GRID_EXPBAR"] = "GRIDEXPBAR";
21802
- ControlType2["LIST_EXPBAR"] = "LISTEXPBAR";
21803
- ControlType2["MAP_EXPBAR"] = "MAPEXPBAR";
21804
- ControlType2["STATE_WIZARD_PANEL"] = "STATEWIZARDPANEL";
21805
- ControlType2["TAB_EXP_PANEL"] = "TABEXPPANEL";
21806
- ControlType2["CUSTOM"] = "CUSTOM";
21807
- ControlType2["CAPTIONBAR"] = "CAPTIONBAR";
21808
- ControlType2["CONTEXT_MENU"] = "CONTEXTMENU";
21809
- return ControlType2;
21810
- })(ControlType || {});
21811
- var MDControlTypes = [
21812
- "CALENDAR" /* CALENDAR */,
21813
- "CHART" /* CHART */,
21814
- "DATAVIEW" /* DATAVIEW */,
21815
- "GANTT" /* GANTT */,
21816
- "GRID" /* GRID */,
21817
- "KANBAN" /* KANBAN */,
21818
- "LIST" /* LIST */,
21819
- "MAP" /* MAP */,
21820
- "MOBMDCTRL" /* MOB_MDCTRL */,
21821
- "MULTIEDITVIEWPANEL" /* MULTI_EDIT_VIEWPANEL */,
21822
- "TREEGRID" /* TREEGRID */,
21823
- "TREEVIEW" /* TREEVIEW */,
21824
- "TREEGRIDEX" /* TREE_GRIDEX */
21825
- ];
21826
-
21827
- // src/constant/platform-type.ts
21828
- var PlatformType = /* @__PURE__ */ ((PlatformType2) => {
21829
- PlatformType2["IOS"] = "IOS";
21830
- PlatformType2["ANDROID"] = "Android";
21831
- PlatformType2["WECHAT"] = "WeChat";
21832
- PlatformType2["QQ"] = "QQ";
21833
- PlatformType2["DINGTALK"] = "DingTalk";
21834
- PlatformType2["BROWSER"] = "Browser";
21835
- PlatformType2["WCMP"] = "WeChatMiniProgram";
21836
- PlatformType2["DESKTOP"] = "Desktop";
21837
- return PlatformType2;
21838
- })(PlatformType || {});
21839
-
21840
- // src/constant/route.ts
21841
- var RouteConst = /* @__PURE__ */ ((RouteConst2) => {
21842
- RouteConst2["ROUTE_MODAL_TAG"] = "route-modal";
21843
- return RouteConst2;
21844
- })(RouteConst || {});
21845
-
21846
- // src/constant/studio-event.ts
21847
- var StudioViewEvents = class {
21848
- };
21849
- /**
21850
- * 视图加载
21851
- */
21852
- StudioViewEvents.onViewMounted = "onMounted";
21853
- /**
21854
- * 视图销毁
21855
- */
21856
- StudioViewEvents.onViewDestroyed = "onDestroyed";
21857
- var StudioPanelEvents = class {
21858
- };
21859
- /**
21860
- * 点击事件
21861
- */
21862
- StudioPanelEvents.onClick = "onClick";
21863
- /**
21864
- * 值变更事件
21865
- */
21866
- StudioPanelEvents.onChange = "onChange";
21867
- /**
21868
- * 输入事件
21869
- */
21870
- StudioPanelEvents.onEnter = "onEnter";
21871
- /**
21872
- * 离开事件
21873
- */
21874
- StudioPanelEvents.onLeave = "onLeave";
21875
- var StudioControlEvents = class {
21876
- };
21877
- /**
21878
- * 加载之前
21879
- */
21880
- StudioControlEvents.onBeforeLoad = "onBeforeLoad";
21881
- /**
21882
- * 加载成功
21883
- */
21884
- StudioControlEvents.onLoadSuccess = "onLoadSuccess";
21885
- /**
21886
- * 加载失败
21887
- */
21888
- StudioControlEvents.onLoadError = "onLoadError";
21889
- /**
21890
- * 加载草稿之前
21891
- */
21892
- StudioControlEvents.onBeforeLoadDraft = "onBeforeLoadDraft";
21893
- /**
21894
- * 加载草稿成功
21895
- */
21896
- StudioControlEvents.onLoadDraftSuccess = "onLoadDraftSuccess";
21897
- /**
21898
- * 加载草稿失败
21899
- */
21900
- StudioControlEvents.onLoadDraftError = "onLoadDraftError";
21901
- /**
21902
- * 保存之前
21903
- */
21904
- StudioControlEvents.onBeforeSave = "onBeforeSave";
21905
- /**
21906
- * 保存成功
21907
- */
21908
- StudioControlEvents.onSaveSuccess = "onSaveSuccess";
21909
- /**
21910
- * 保存失败
21911
- */
21912
- StudioControlEvents.onSaveError = "onSaveError";
21913
- /**
21914
- * 删除之前
21915
- */
21916
- StudioControlEvents.onBeforeRemove = "onBeforeRemove";
21917
- /**
21918
- * 删除成功
21919
- */
21920
- StudioControlEvents.onRemoveSuccess = "onRemoveSuccess";
21921
- /**
21922
- * 删除失败
21923
- */
21924
- StudioControlEvents.onRemoveError = "onRemoveError";
21925
- /**
21926
- * 原生默认工具栏的点击事件名称
21927
- */
21928
- StudioControlEvents.CLICK = "onClick";
21929
-
21930
- // src/constant/sys-uiaction-tag.ts
21931
- var SysUIActionTag = /* @__PURE__ */ ((SysUIActionTag2) => {
21932
- SysUIActionTag2["NEW"] = "New";
21933
- SysUIActionTag2["EDIT"] = "Edit";
21934
- SysUIActionTag2["REFRESH"] = "Refresh";
21935
- SysUIActionTag2["EXIT"] = "Exit";
21936
- SysUIActionTag2["SAVE_AND_EXIT"] = "SaveAndExit";
21937
- SysUIActionTag2["SAVE_AND_NEW"] = "SaveAndNew";
21938
- SysUIActionTag2["SAVE"] = "Save";
21939
- SysUIActionTag2["SAVE_ROW"] = "SaveRow";
21940
- SysUIActionTag2["REMOVE"] = "Remove";
21941
- SysUIActionTag2["REMOVE_AND_EXIT"] = "RemoveAndExit";
21942
- SysUIActionTag2["NEW_ROW"] = "NewRow";
21943
- SysUIActionTag2["TOGGLE_FILTER"] = "ToggleFilter";
21944
- SysUIActionTag2["IMPORT"] = "Import";
21945
- SysUIActionTag2["EXPORT_EXCEL"] = "ExportExcel";
21946
- SysUIActionTag2["SAVE_AND_START"] = "SaveAndStart";
21947
- SysUIActionTag2["VIEW_WF_STEP"] = "ViewWFStep";
21948
- SysUIActionTag2["NO"] = "No";
21949
- SysUIActionTag2["YES"] = "Yes";
21950
- SysUIActionTag2["CANCEL"] = "Cancel";
21951
- SysUIActionTag2["OK"] = "Ok";
21952
- SysUIActionTag2["SEARCH"] = "Search";
21953
- SysUIActionTag2["RESET"] = "Reset";
21954
- SysUIActionTag2["FINISH"] = "Finish";
21955
- SysUIActionTag2["NEXT_STEP"] = "NextStep";
21956
- SysUIActionTag2["PREV_STEP"] = "PrevStep";
21957
- SysUIActionTag2["ADD_SELECTION"] = "AddSelection";
21958
- SysUIActionTag2["REMOVE_SELECTION"] = "RemoveSelection";
21959
- SysUIActionTag2["REMOVE_ALL"] = "RemoveAll";
21960
- SysUIActionTag2["ADD_ALL"] = "AddAll";
21961
- SysUIActionTag2["LOGOUT"] = "Logout";
21962
- SysUIActionTag2["LOGIN"] = "Login";
21963
- SysUIActionTag2["CANCEL_CHANGES"] = "CancelChanges";
21964
- SysUIActionTag2["COPY"] = "Copy";
21965
- SysUIActionTag2["VIEW"] = "View";
21966
- SysUIActionTag2["TOGGLE_ROW_EDIT"] = "ToggleRowEdit";
21967
- SysUIActionTag2["REFRESH_ALL"] = "RefreshAll";
21968
- SysUIActionTag2["REFRESH_PARENT"] = "RefreshParent";
21969
- SysUIActionTag2["FIRST_RECORD"] = "FirstRecord";
21970
- SysUIActionTag2["LAST_RECORD"] = "LastRecord";
21971
- SysUIActionTag2["PREV_RECORD"] = "PrevRecord";
21972
- SysUIActionTag2["NEXT_RECORD"] = "NextRecord";
21973
- SysUIActionTag2["LOAD_MORE"] = "LoadMore";
21974
- SysUIActionTag2["SHOTR_CUT"] = "ShortCut";
21975
- SysUIActionTag2["EXPAND"] = "Expand";
21976
- SysUIActionTag2["COLLAPSE"] = "Collapse";
21977
- SysUIActionTag2["EXPANDALL"] = "ExpandAll";
21978
- SysUIActionTag2["COLLAPSEALL"] = "CollapseAll";
21979
- return SysUIActionTag2;
21980
- })(SysUIActionTag || {});
21981
-
21982
- // src/constant/value-op.ts
21983
- var ValueOP = /* @__PURE__ */ ((ValueOP2) => {
21984
- ValueOP2["EQ"] = "EQ";
21985
- ValueOP2["NOT_EQ"] = "NOTEQ";
21986
- ValueOP2["GT"] = "GT";
21987
- ValueOP2["GT_AND_EQ"] = "GTANDEQ";
21988
- ValueOP2["LT"] = "LT";
21989
- ValueOP2["LT_AND_EQ"] = "LTANDEQ";
21990
- ValueOP2["IS_NULL"] = "ISNULL";
21991
- ValueOP2["IS_NOT_NULL"] = "ISNOTNULL";
21992
- ValueOP2["IN"] = "IN";
21993
- ValueOP2["NOT_IN"] = "NOTIN";
21994
- ValueOP2["LIKE"] = "LIKE";
21995
- ValueOP2["LIFT_LIKE"] = "LIFTLIKE";
21996
- ValueOP2["RIGHT_LIKE"] = "RIGHT_LIKE";
21997
- ValueOP2["CHILD_OF"] = "CHILDOF";
21998
- ValueOP2["USER_LIKE"] = "USERLIKE";
21999
- ValueOP2["BIT_AND"] = "BITAND";
22000
- ValueOP2["EXISTS"] = "EXISTS";
22001
- ValueOP2["NOT_EXISTS"] = "NOTEXISTS";
22002
- return ValueOP2;
22003
- })(ValueOP || {});
22004
-
22005
- // src/constant/view-call-tag.ts
22006
- var ViewCallTag = /* @__PURE__ */ ((ViewCallTag2) => {
22007
- ViewCallTag2["LOAD"] = "Load";
22008
- ViewCallTag2["GET_DATA"] = "GetData";
22009
- ViewCallTag2["GET_ALL_DATA"] = "GetAllData";
22010
- ViewCallTag2["VALIDATE"] = "Validate";
22011
- ViewCallTag2["TOGGLE_COLLAPSE"] = "ToggleCollapse";
22012
- ViewCallTag2["WF_WITHDRAW"] = "WFWithdraw";
22013
- ViewCallTag2["COPY_PATH"] = "CopyPath";
22014
- return ViewCallTag2;
22015
- })(ViewCallTag || {});
22016
-
22017
- // src/constant/view-mode.ts
22018
- var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
22019
- ViewMode2["ROUTE"] = "ROUTE";
22020
- ViewMode2["ROUTE_MODAL"] = "ROUTE_MODAL";
22021
- ViewMode2["MODAL"] = "MODAL";
22022
- ViewMode2["DRAWER"] = "DRAWER";
22023
- ViewMode2["EMBED"] = "EMBED";
22024
- ViewMode2["POPOVER"] = "POPOVER";
22025
- return ViewMode2;
22026
- })(ViewMode || {});
22027
-
22028
- // src/constant/view-type.ts
22029
- var ViewType = /* @__PURE__ */ ((ViewType2) => {
22030
- ViewType2["APP_INDEX_VIEW"] = "APPINDEXVIEW";
22031
- ViewType2["DE_GRID_VIEW"] = "DEGRIDVIEW";
22032
- ViewType2["DE_EDIT_VIEW"] = "DEEDITVIEW";
22033
- ViewType2["APP_DATA_UPLOAD_VIEW"] = "APPDATAUPLOADVIEW";
22034
- ViewType2["APP_ERROR_VIEW"] = "APPERRORVIEW";
22035
- ViewType2["APP_FILE_UPLOAD_VIEW"] = "APPFILEUPLOADVIEW";
22036
- ViewType2["APP_FUN_PICKUP_VIEW"] = "APPFUNCPICKUPVIEW";
22037
- ViewType2["APP_LOGIN_VIEW"] = "APPLOGINVIEW";
22038
- ViewType2["APP_LOGOUT_VIEW"] = "APPLOGOUTVIEW";
22039
- ViewType2["APP_PANEL_VIEW"] = "APPPANELVIEW";
22040
- ViewType2["APP_PIC_UPLOAD_VIEW"] = "APPPICUPLOADVIEW";
22041
- ViewType2["APP_PORTAL_VIEW"] = "APPPORTALVIEW";
22042
- ViewType2["APP_REDIRECT_VIEW"] = "APPREDIRECTVIEW";
22043
- ViewType2["APP_START_VIEW"] = "APPSTARTVIEW";
22044
- ViewType2["APP_WELCOME_VIEW"] = "APPWELCOMEVIEW";
22045
- ViewType2["APP_WF_ADD_STEP_AFTER_VIEW"] = "APPWFADDSTEPAFTERVIEW";
22046
- ViewType2["APP_WF_ADD_STEP_BEFORE_VIEW"] = "APPWFADDSTEPBEFOREVIEW";
22047
- ViewType2["APP_WF_REDIRECT_VIEW"] = "APPWFREDIRECTVIEW";
22048
- ViewType2["APP_WF_SENDBAC_VIEW"] = "APPWFSENDBACKVIEW";
22049
- ViewType2["APP_WF_STEP_ACTOR_VIEW"] = "APPWFSTEPACTORVIEW";
22050
- ViewType2["APP_WF_STEP_DATA_VIEW"] = "APPWFSTEPDATAVIEW";
22051
- ViewType2["APP_WF_STEP_TRACE_VIEW"] = "APPWFSTEPTRACEVIEW";
22052
- ViewType2["APP_WF_SUPPLY_INFO_VIEW"] = "APPWFSUPPLYINFOVIEW";
22053
- ViewType2["APP_WF_TAKE_ADVICE_VIEW"] = "APPWFTAKEADVICEVIEW";
22054
- ViewType2["DE_CALENDAR_EXP_VIEW"] = "DECALENDAREXPVIEW";
22055
- ViewType2["DE_CALENDAR_VIEW"] = "DECALENDARVIEW";
22056
- ViewType2["DE_CHART_EXP_VIEW"] = "DECHARTEXPVIEW";
22057
- ViewType2["DE_CHART_VIEW"] = "DECHARTVIEW";
22058
- ViewType2["DE_CHART_VIEW9"] = "DECHARTVIEW9";
22059
- ViewType2["DE_CUSTOM_VIEW"] = "DECUSTOMVIEW";
22060
- ViewType2["DE_DATA_VIEW"] = "DEDATAVIEW";
22061
- ViewType2["DE_DATA_VIEW9"] = "DEDATAVIEW9";
22062
- ViewType2["DE_DATAVIEW_EXP_VIEW"] = "DEDATAVIEWEXPVIEW";
22063
- ViewType2["DE_EDIT_VIEW2"] = "DEEDITVIEW2";
22064
- ViewType2["DE_EDIT_VIEW3"] = "DEEDITVIEW3";
22065
- ViewType2["DE_EDIT_VIEW4"] = "DEEDITVIEW4";
22066
- ViewType2["DE_EDIT_VIEW9"] = "DEEDITVIEW9";
22067
- ViewType2["DE_FORM_PICKUP_DATA_VIEW"] = "DEFORMPICKUPDATAVIEW";
22068
- ViewType2["DE_GANTT_EXP_VIEW"] = "DEGANTTEXPVIEW";
22069
- ViewType2["DE_GANTT_VIEW"] = "DEGANTTVIEW";
22070
- ViewType2["DE_GANTT_VIEW9"] = "DEGANTTVIEW9";
22071
- ViewType2["DE_GRID_EXP_VIEW"] = "DEGRIDEXPVIEW";
22072
- ViewType2["DE_GRID_VIEW2"] = "DEGRIDVIEW2";
22073
- ViewType2["DE_GRID_VIEW4"] = "DEGRIDVIEW4";
22074
- ViewType2["DE_GRID_VIEW8"] = "DEGRIDVIEW8";
22075
- ViewType2["DE_GRID_VIEW9"] = "DEGRIDVIEW9";
22076
- ViewType2["DE_HTML_VIEW"] = "DEHTMLVIEW";
22077
- ViewType2["DE_INDEX_PICKUP_DATA_VIEW"] = "DEINDEXPICKUPDATAVIEW";
22078
- ViewType2["DE_INDEX_VIEW"] = "DEINDEXVIEW";
22079
- ViewType2["DE_KANBAN_VIEW"] = "DEKANBANVIEW";
22080
- ViewType2["DE_KANBAN_VIEW9"] = "DEKANBANVIEW9";
22081
- ViewType2["DE_LIST_EXP_VIEW"] = "DELISTEXPVIEW";
22082
- ViewType2["DE_LIST_VIEW"] = "DELISTVIEW";
22083
- ViewType2["DE_LIST_VIEW9"] = "DELISTVIEW9";
22084
- ViewType2["DE_MAP_EXP_VIEW"] = "DEMAPEXPVIEW";
22085
- ViewType2["DE_MAP_VIEW"] = "DEMAPVIEW";
22086
- ViewType2["DE_MAP_VIEW9"] = "DEMAPVIEW9";
22087
- ViewType2["DE_MD_CUSTOM_VIEW"] = "DEMDCUSTOMVIEW";
22088
- ViewType2["DE_MEDITVIEW9"] = "DEMEDITVIEW9";
22089
- ViewType2["DE_MOB_CALENDAR_EXP_VIEW"] = "DEMOBCALENDAREXPVIEW";
22090
- ViewType2["DE_MOB_CALENDAR_VIEW"] = "DEMOBCALENDARVIEW";
22091
- ViewType2["DE_MOB_CALENDAR_VIEW9"] = "DEMOBCALENDARVIEW9";
22092
- ViewType2["DE_MOB_CHART_EXP_VIEW"] = "DEMOBCHARTEXPVIEW";
22093
- ViewType2["DE_MO_BCHART_VIEW"] = "DEMOBCHARTVIEW";
22094
- ViewType2["D_EMOB_CHART_VIEW9"] = "DEMOBCHARTVIEW9";
22095
- ViewType2["DE_MOB_CUSTOM_VIEW"] = "DEMOBCUSTOMVIEW";
22096
- ViewType2["DE_MOB_DATA_VIEW"] = "DEMOBDATAVIEW";
22097
- ViewType2["DE_MOB_DATA_VIEW_EXP_VIEW"] = "DEMOBDATAVIEWEXPVIEW";
22098
- ViewType2["DE_MOB_EDIT_VIEW"] = "DEMOBEDITVIEW";
22099
- ViewType2["DE_MOB_EDIT_VIEW3"] = "DEMOBEDITVIEW3";
22100
- ViewType2["DE_MOB_EDITVIEW9"] = "DEMOBEDITVIEW9";
22101
- ViewType2["DE_MOB_FORM_PICKUP_MDVIEW"] = "DEMOBFORMPICKUPMDVIEW";
22102
- ViewType2["DE_MOB_GANTT_EXP_VIEW"] = "DEMOBGANTTEXPVIEW";
22103
- ViewType2["DE_MOB_GANTT_VIEW"] = "DEMOBGANTTVIEW";
22104
- ViewType2["DE_MOB_GANTT_VIEW9"] = "DEMOBGANTTVIEW9";
22105
- ViewType2["DE_MOB_HTML_VIEW"] = "DEMOBHTMLVIEW";
22106
- ViewType2["DE_MOB_INDEX_PICKUP_MDVIEW"] = "DEMOBINDEXPICKUPMDVIEW";
22107
- ViewType2["DE_MOB_LIST_EXP_VIEW"] = "DEMOBLISTEXPVIEW";
22108
- ViewType2["DE_MOB_LIST_VIEW"] = "DEMOBLISTVIEW";
22109
- ViewType2["DE_MOB_MAP_VIEW"] = "DEMOBMAPVIEW";
22110
- ViewType2["DE_MOB_MAP_VIEW9"] = "DEMOBMAPVIEW9";
22111
- ViewType2["DE_MOB_MDVIEW"] = "DEMOBMDVIEW";
22112
- ViewType2["DE_MOB_MDVIEW9"] = "DEMOBMDVIEW9";
22113
- ViewType2["DE_MOB_MEDIT_VIEW9"] = "DEMOBMEDITVIEW9";
22114
- ViewType2["DE_MOB_MPICKUP_VIEW"] = "DEMOBMPICKUPVIEW";
22115
- ViewType2["DE_MOB_OPT_VIEW"] = "DEMOBOPTVIEW";
22116
- ViewType2["DE_MOB_PANEL_VIEW"] = "DEMOBPANELVIEW";
22117
- ViewType2["DE_MOB_PANEL_VIEW9"] = "DEMOBPANELVIEW9";
22118
- ViewType2["DE_MOB_PICKUP_LIST_VIEW"] = "DEMOBPICKUPLISTVIEW";
22119
- ViewType2["DE_MOB_PICKUP_MDVIEW"] = "DEMOBPICKUPMDVIEW";
22120
- ViewType2["DE_MOB_PICKUP_TREE_VIEW"] = "DEMOBPICKUPTREEVIEW";
22121
- ViewType2["DE_MOB_PICKUP_VIEW"] = "DEMOBPICKUPVIEW";
22122
- ViewType2["DE_MOB_PORTAL_VIEW"] = "DEMOBPORTALVIEW";
22123
- ViewType2["DE_MOB_PORTAL_VIEW9"] = "DEMOBPORTALVIEW9";
22124
- ViewType2["DE_MOB_REDIRECT_VIEW"] = "DEMOBREDIRECTVIEW";
22125
- ViewType2["DE_MOB_REPORT_VIEW"] = "DEMOBREPORTVIEW";
22126
- ViewType2["DE_MOB_TAB_EXP_VIEW"] = "DEMOBTABEXPVIEW";
22127
- ViewType2["DE_MOB_TAB_EXP_VIEW9"] = "DEMOBTABEXPVIEW9";
22128
- ViewType2["DE_MOB_TAB_SEARCH_VIEW"] = "DEMOBTABSEARCHVIEW";
22129
- ViewType2["DE_MOB_TAB_SEARCH_VIEW9"] = "DEMOBTABSEARCHVIEW9";
22130
- ViewType2["DE_MOB_TREE_EXP_VIEW"] = "DEMOBTREEEXPVIEW";
22131
- ViewType2["DEMOBTREEEXPVIEW9"] = "DEMOBTREEEXPVIEW9";
22132
- ViewType2["DE_MOB_TREE_VIEW"] = "DEMOBTREEVIEW";
22133
- ViewType2["DE_MOB_WFACTION_VIEW"] = "DEMOBWFACTIONVIEW";
22134
- ViewType2["DE_MOB_WF_DATA_REDIRECT_VIEW"] = "DEMOBWFDATAREDIRECTVIEW";
22135
- ViewType2["DE_MOB_WF_DYNAACTIO_NVIEW"] = "DEMOBWFDYNAACTIONVIEW";
22136
- ViewType2["DE_MOB_WFDYNA_EDIT_VIEW"] = "DEMOBWFDYNAEDITVIEW";
22137
- ViewType2["DE_MOB_WF_DYNA_EDIT_VIEW3"] = "DEMOBWFDYNAEDITVIEW3";
22138
- ViewType2["DE_MOB_WF_DYNA_EXP_MDVIEW"] = "DEMOBWFDYNAEXPMDVIEW";
22139
- ViewType2["DE_MO_BWF_DYNA_START_VIEW"] = "DEMOBWFDYNASTARTVIEW";
22140
- ViewType2["DE_MOB_WF_EDIT_VIEW"] = "DEMOBWFEDITVIEW";
22141
- ViewType2["DE_MOB_WF_EDIT_VIEW3"] = "DEMOBWFEDITVIEW3";
22142
- ViewType2["DE_MOB_WF_MDVIEW"] = "DEMOBWFMDVIEW";
22143
- ViewType2["DE_MOB_WF_PROXY_RESULT_VIEW"] = "DEMOBWFPROXYRESULTVIEW";
22144
- ViewType2["DE_MOB_WF_PROXY_START_VIEW"] = "DEMOBWFPROXYSTARTVIEW";
22145
- ViewType2["DE_MOB_WF_START_VIEW"] = "DEMOBWFSTARTVIEW";
22146
- ViewType2["DE_MOB_WIZARD_VIEW"] = "DEMOBWIZARDVIEW";
22147
- ViewType2["DE_MPICKUP_VIEW"] = "DEMPICKUPVIEW";
22148
- ViewType2["DE_MPICKUP_VIEW2"] = "DEMPICKUPVIEW2";
22149
- ViewType2["DE_OPT_VIEW"] = "DEOPTVIEW";
22150
- ViewType2["DE_PANEL_VIEW"] = "DEPANELVIEW";
22151
- ViewType2["DE_PANEL_VIEW9"] = "DEPANELVIEW9";
22152
- ViewType2["DE_PICKUP_DATA_VIEW"] = "DEPICKUPDATAVIEW";
22153
- ViewType2["DE_PICKUP_GRID_VIEW"] = "DEPICKUPGRIDVIEW";
22154
- ViewType2["DE_PICKUP_TREE_VIEW"] = "DEPICKUPTREEVIEW";
22155
- ViewType2["DE_PICKUP_VIEW"] = "DEPICKUPVIEW";
22156
- ViewType2["DE_PICKUP_VIEW2"] = "DEPICKUPVIEW2";
22157
- ViewType2["DE_PICK_UP_VIEW3"] = "DEPICKUPVIEW3";
22158
- ViewType2["DE_PORTAL_VIEW"] = "DEPORTALVIEW";
22159
- ViewType2["DE_PORTAL_VIEW9"] = "DEPORTALVIEW9";
22160
- ViewType2["DE_REDIRECT_VIEW"] = "DEREDIRECTVIEW";
22161
- ViewType2["DE_REPORT_VIEW"] = "DEREPORTVIEW";
22162
- ViewType2["DE_TAB_EXP_VIEW"] = "DETABEXPVIEW";
22163
- ViewType2["DE_TAB_EXP_VIEW9"] = "DETABEXPVIEW9";
22164
- ViewType2["DE_TAB_SEARCH_VIEW"] = "DETABSEARCHVIEW";
22165
- ViewType2["DE_TAB_SEARCH_VIEW9"] = "DETABSEARCHVIEW9";
22166
- ViewType2["DE_TREE_EXP_VIEW"] = "DETREEEXPVIEW";
22167
- ViewType2["DE_TREE_EXP_VIEW2"] = "DETREEEXPVIEW2";
22168
- ViewType2["DE_TREE_EXP_VIEW3"] = "DETREEEXPVIEW3";
22169
- ViewType2["DE_TREE_GRID_EXVIEW"] = "DETREEGRIDEXVIEW";
22170
- ViewType2["DE_TREE_GRID_EXVIEW9"] = "DETREEGRIDEXVIEW9";
22171
- ViewType2["DE_TREE_GRID_VIEW"] = "DETREEGRIDVIEW";
22172
- ViewType2["DE_TREE_GRID_VIEW9"] = "DETREEGRIDVIEW9";
22173
- ViewType2["DE_TREE_VIEW"] = "DETREEVIEW";
22174
- ViewType2["DE_TREE_VIEW9"] = "DETREEVIEW9";
22175
- ViewType2["DE_WF_ACTION_VIEW"] = "DEWFACTIONVIEW";
22176
- ViewType2["DE_WF_DATA_REDIRECT_VIEW"] = "DEWFDATAREDIRECTVIEW";
22177
- ViewType2["DE_WF_DYNA_ACTION_VIEW"] = "DEWFDYNAACTIONVIEW";
22178
- ViewType2["DE_WF_DYNA_EDIT_VIEW"] = "DEWFDYNAEDITVIEW";
22179
- ViewType2["DE_WF_DYNA_EDIT_VIEW3"] = "DEWFDYNAEDITVIEW3";
22180
- ViewType2["DE_WF_DYNA_EXP_GRID_VIEW"] = "DEWFDYNAEXPGRIDVIEW";
22181
- ViewType2["DE_WF_DYNA_START_VIEW"] = "DEWFDYNASTARTVIEW";
22182
- ViewType2["DE_WF_EDIT_PROXY_DATA_VIEW"] = "DEWFEDITPROXYDATAVIEW";
22183
- ViewType2["DE_WF_EDIT_VIEW"] = "DEWFEDITVIEW";
22184
- ViewType2["DE_WF_EDIT_VIEW2"] = "DEWFEDITVIEW2";
22185
- ViewType2["DE_WF_EDIT_VIEW3"] = "DEWFEDITVIEW3";
22186
- ViewType2["DE_WF_EDIT_VIEW9"] = "DEWFEDITVIEW9";
22187
- ViewType2["DE_WF_EXP_VIEW"] = "DEWFEXPVIEW";
22188
- ViewType2["DE_WF_GRID_VIEW"] = "DEWFGRIDVIEW";
22189
- ViewType2["DE_WF_PROXY_DATA_VIEW"] = "DEWFPROXYDATAVIEW";
22190
- ViewType2["DE_WF_PROXY_RESULT_VIEW"] = "DEWFPROXYRESULTVIEW";
22191
- ViewType2["DE_WF_PROXY_START_VIEW"] = "DEWFPROXYSTARTVIEW";
22192
- ViewType2["DE_WF_START_VIEW"] = "DEWFSTARTVIEW";
22193
- ViewType2["DE_WIZARD_VIEW"] = "DEWIZARDVIEW";
22194
- ViewType2["DE_SUB_APP_REF_VIEW"] = "DESUBAPPREFVIEW";
22195
- return ViewType2;
22196
- })(ViewType || {});
22197
-
22198
- // src/constant/preset-identifier.ts
22199
- var PresetIdentifier = /* @__PURE__ */ ((PresetIdentifier2) => {
22200
- PresetIdentifier2["MESSAGE"] = "preset-message";
22201
- return PresetIdentifier2;
22202
- })(PresetIdentifier || {});
22203
-
22204
- // src/utils/modal/modal.ts
22205
22229
  var Modal = class {
22206
22230
  constructor(opts) {
22207
22231
  this.mode = "EMBED" /* EMBED */;
22208
22232
  this.viewUsage = 4;
22209
22233
  this.ignoreDismissCheck = false;
22210
22234
  this.hooks = {
22235
+ preDismiss: new AsyncSeriesHook(),
22211
22236
  shouldDismiss: new AsyncSeriesHook(),
22212
22237
  beforeDismiss: new AsyncSeriesHook()
22213
22238
  };
@@ -22246,6 +22271,10 @@ var Modal = class {
22246
22271
  }
22247
22272
  async dismiss(data = { ok: false, data: [] }) {
22248
22273
  const context = {};
22274
+ await this.hooks.preDismiss.call(context);
22275
+ if (context.allowNext === false) {
22276
+ return false;
22277
+ }
22249
22278
  if (this.ignoreDismissCheck !== true) {
22250
22279
  await this.hooks.shouldDismiss.call(context);
22251
22280
  }
@@ -22265,6 +22294,7 @@ var Modal = class {
22265
22294
  * @protected
22266
22295
  */
22267
22296
  destroy() {
22297
+ this.hooks.preDismiss.clear();
22268
22298
  this.hooks.shouldDismiss.clear();
22269
22299
  this.hooks.beforeDismiss.clear();
22270
22300
  }
@@ -22429,7 +22459,7 @@ var TextUtil = class {
22429
22459
  };
22430
22460
 
22431
22461
  // src/utils/theme-util/theme-util.ts
22432
- import { clone as clone48 } from "ramda";
22462
+ import { clone as clone49 } from "ramda";
22433
22463
 
22434
22464
  // src/utils/theme-util/custom-theme-util.ts
22435
22465
  import { notNilEmpty as notNilEmpty7 } from "qx-util";
@@ -25984,7 +26014,7 @@ var DynamicCodeListCache = class {
25984
26014
  if (!this.codeList.enableCache) {
25985
26015
  return this.load(context, params);
25986
26016
  }
25987
- const key = this.isOperatorType ? this.codeList.codeListTag : JSON.stringify(context) + JSON.stringify(params);
26017
+ const key = this.isOperatorType ? this.codeList.codeListTag : JSON.stringify(context.getTempContext()) + JSON.stringify(params);
25988
26018
  if (this.cache.has(key)) {
25989
26019
  const cacheData2 = this.cache.get(key);
25990
26020
  if (cacheData2.expirationTime > (/* @__PURE__ */ new Date()).getTime()) {
@@ -34023,10 +34053,10 @@ var CTX = class {
34023
34053
  * @return {*} {IViewController}
34024
34054
  */
34025
34055
  getTopView() {
34026
- if (!this.parent) {
34056
+ if (!this.parent || this.parent && this.parent.isDestroyed) {
34027
34057
  return this.view;
34028
34058
  }
34029
- if (this.view.modal.routeDepth === 2) {
34059
+ if (this.view && this.view.modal.routeDepth === 2) {
34030
34060
  return this.view;
34031
34061
  }
34032
34062
  return this.parent.getTopView();
@@ -36652,6 +36682,9 @@ var EditorController = class {
36652
36682
  if (this.editorParams.triggerMode) {
36653
36683
  return this.editorParams.triggerMode;
36654
36684
  }
36685
+ if (this.editorParams.triggermode) {
36686
+ return this.editorParams.triggermode;
36687
+ }
36655
36688
  const { form, grid, treeGrid } = this.parent;
36656
36689
  const control = form || grid || treeGrid;
36657
36690
  if (control == null ? void 0 : control.controlParams.triggermode) {
@@ -36664,6 +36697,18 @@ var EditorController = class {
36664
36697
  }
36665
36698
  return "blur";
36666
36699
  }
36700
+ /**
36701
+ * 无数据时是否显示占位文本
36702
+ *
36703
+ * @readonly
36704
+ * @type {boolean}
36705
+ * @memberof EditorController
36706
+ */
36707
+ get emptyShowPlaceholder() {
36708
+ if (!this.placeHolder)
36709
+ return false;
36710
+ return ibiz.config.common.emptyShowMode === "PLACEHOLDER";
36711
+ }
36667
36712
  /**
36668
36713
  * @description 当前视图
36669
36714
  * @readonly
@@ -36936,7 +36981,8 @@ import {
36936
36981
  IBizContext as IBizContext5,
36937
36982
  IBizParams,
36938
36983
  NoticeError as NoticeError2,
36939
- RuntimeError as RuntimeError31
36984
+ RuntimeError as RuntimeError31,
36985
+ StringUtil
36940
36986
  } from "@ibiz-template/core";
36941
36987
  import { clone as clone20, isNil as isNil24 } from "ramda";
36942
36988
  import { notNilEmpty as notNilEmpty9 } from "qx-util";
@@ -37451,6 +37497,13 @@ var ControlController = class extends BaseController {
37451
37497
  */
37452
37498
  disabled(options = { mode: "BLANK" }) {
37453
37499
  this.state.disabled = true;
37500
+ if (options.maskInfo) {
37501
+ options.maskInfo = StringUtil.fill(
37502
+ options.maskInfo,
37503
+ this.context,
37504
+ this.params
37505
+ );
37506
+ }
37454
37507
  this.state.maskOption = options;
37455
37508
  }
37456
37509
  };
@@ -38948,7 +39001,12 @@ import { RuntimeModelError as RuntimeModelError44 } from "@ibiz-template/core";
38948
39001
  import { RuntimeError as RuntimeError41 } from "@ibiz-template/core";
38949
39002
 
38950
39003
  // src/ui-logic/ui-logic.ts
38951
- import { ModelError as ModelError23, RuntimeModelError as RuntimeModelError43 } from "@ibiz-template/core";
39004
+ import {
39005
+ IBizContext as IBizContext6,
39006
+ ModelError as ModelError23,
39007
+ RuntimeModelError as RuntimeModelError43
39008
+ } from "@ibiz-template/core";
39009
+ import { clone as clone25 } from "ramda";
38952
39010
 
38953
39011
  // src/ui-logic/ui-logic-context.ts
38954
39012
  var UILogicContext = class {
@@ -40637,6 +40695,8 @@ var UILogic = class {
40637
40695
  * @return {*} {Promise<IData>}
40638
40696
  */
40639
40697
  async exec(parameters) {
40698
+ parameters.context = IBizContext6.create(parameters.context);
40699
+ parameters.params = clone25(parameters.params || {});
40640
40700
  const ctx = new UILogicContext(this.params, parameters);
40641
40701
  this.initLogicParams(ctx);
40642
40702
  const { startDEUILogicNodeId } = this.model;
@@ -40761,6 +40821,7 @@ var UIActionUtil = class {
40761
40821
  var _a3, _b2;
40762
40822
  const result = await this.exec(actionId, params, appId2);
40763
40823
  if (result.closeView) {
40824
+ params.view.modal.ignoreDismissCheck = true;
40764
40825
  params.view.closeView({ ok: true });
40765
40826
  } else if (result.refresh) {
40766
40827
  switch (result.refreshMode) {
@@ -40827,7 +40888,7 @@ var UIActionProviderBase = class {
40827
40888
  refreshMode: action.refreshMode,
40828
40889
  closeView: action.closeEditView
40829
40890
  };
40830
- const { view } = args;
40891
+ const { context, params, data, view } = args;
40831
40892
  if (action.closeEditView) {
40832
40893
  view.state.isClosing = true;
40833
40894
  }
@@ -40847,6 +40908,15 @@ var UIActionProviderBase = class {
40847
40908
  return this.returnError(result, view);
40848
40909
  }
40849
40910
  const _result = await this.execAction(action, args);
40911
+ const { presetParams } = await this.handleParams(
40912
+ action,
40913
+ context,
40914
+ data,
40915
+ params
40916
+ );
40917
+ if (presetParams.ignoredirtycheck === "true") {
40918
+ view.modal.ignoreDismissCheck = true;
40919
+ }
40850
40920
  Object.assign(result, _result);
40851
40921
  if (result.cancel === true) {
40852
40922
  return this.returnError(result, view);
@@ -41035,7 +41105,12 @@ var UIActionProviderBase = class {
41035
41105
  },
41036
41106
  tempContext
41037
41107
  );
41038
- return { resultContext, resultData, resultParams };
41108
+ const presetParams = {};
41109
+ if (resultParams.hasOwnProperty("ignoredirtycheck")) {
41110
+ presetParams.ignoredirtycheck = resultParams.ignoredirtycheck;
41111
+ delete resultParams.ignoredirtycheck;
41112
+ }
41113
+ return { resultContext, resultData, resultParams, presetParams };
41039
41114
  }
41040
41115
  /**
41041
41116
  * 计算消息信息(动态,多语言资源)
@@ -41246,19 +41321,19 @@ var SysUIActionProvider = class extends UIActionProviderBase {
41246
41321
 
41247
41322
  // src/ui-action/provider/front-ui-action-provider.ts
41248
41323
  import {
41249
- StringUtil,
41324
+ StringUtil as StringUtil2,
41250
41325
  RuntimeModelError as RuntimeModelError46,
41251
41326
  ModelError as ModelError24,
41252
41327
  RuntimeError as RuntimeError43
41253
41328
  } from "@ibiz-template/core";
41254
- import { clone as clone25, mergeRight as mergeRight4 } from "ramda";
41329
+ import { clone as clone26, mergeRight as mergeRight4 } from "ramda";
41255
41330
  var FrontUIActionProvider = class extends UIActionProviderBase {
41256
41331
  async execAction(action, args) {
41257
41332
  const { context, params, data, event, noWaitRoute, view } = args;
41258
41333
  let actionResult = {};
41259
41334
  switch (action.frontProcessType) {
41260
41335
  case "OPENHTMLPAGE": {
41261
- const url = StringUtil.fill(
41336
+ const url = StringUtil2.fill(
41262
41337
  action.htmlPageUrl,
41263
41338
  context,
41264
41339
  params,
@@ -41356,7 +41431,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
41356
41431
  }
41357
41432
  if (scriptCode) {
41358
41433
  const result = await ScriptFactory.asyncExecScriptFn(
41359
- { context, params, data, el: event == null ? void 0 : event.target, view, ctrl },
41434
+ { context, params, data, el: event == null ? void 0 : event.target, view, ctrl, action },
41360
41435
  scriptCode
41361
41436
  );
41362
41437
  return result || {};
@@ -41374,55 +41449,69 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
41374
41449
  * @return {*}
41375
41450
  */
41376
41451
  async executePrint(action, args) {
41377
- var _a3;
41378
- const { resultContext, resultParams } = await this.handleParams(
41379
- action,
41380
- args.context,
41381
- args.data,
41382
- args.params
41383
- );
41384
- const appDataEntity = await ibiz.hub.getAppDataEntity(
41385
- action.appDataEntityId,
41386
- action.appId
41387
- );
41388
- const appDEPrint = (_a3 = appDataEntity.appDEPrints) == null ? void 0 : _a3.find((print) => {
41389
- return print.id === action.appDEPrintId;
41390
- });
41391
- if (appDEPrint) {
41392
- let requestUrl = "";
41393
- if (resultContext && resultContext[appDataEntity.codeName.toLowerCase()]) {
41394
- requestUrl += "/".concat(appDataEntity.deapicodeName2, "/printdata/").concat(resultContext[appDataEntity.codeName.toLowerCase()]);
41395
- } else {
41396
- throw new RuntimeError43(ibiz.i18n.t("runtime.uiAction.dataPrimaryKey"));
41397
- }
41398
- const res = await ibiz.net.request(requestUrl, {
41399
- method: "get",
41400
- responseType: "blob",
41401
- params: {
41402
- srfprinttag: appDEPrint.codeName,
41403
- ...resultParams
41404
- }
41452
+ const execute = async (data) => {
41453
+ var _a3;
41454
+ const { resultContext, resultParams } = await this.handleParams(
41455
+ action,
41456
+ args.context,
41457
+ data,
41458
+ args.params
41459
+ );
41460
+ const appDataEntity = await ibiz.hub.getAppDataEntity(
41461
+ action.appDataEntityId,
41462
+ action.appId
41463
+ );
41464
+ const appDEPrint = (_a3 = appDataEntity.appDEPrints) == null ? void 0 : _a3.find((print) => {
41465
+ return print.id === action.appDEPrintId;
41405
41466
  });
41406
- if (res.ok) {
41407
- if (resultParams && resultParams.srfcontenttype) {
41408
- const fileName = ibiz.util.file.getFileName(res);
41409
- const href = URL.createObjectURL(res.data);
41410
- const a = document.createElement("a");
41411
- a.href = href;
41412
- a.download = fileName;
41413
- document.body.appendChild(a);
41414
- a.click();
41415
- document.body.removeChild(a);
41416
- URL.revokeObjectURL(href);
41467
+ if (appDEPrint) {
41468
+ let requestUrl = "";
41469
+ if (resultContext && resultContext[appDataEntity.codeName.toLowerCase()]) {
41470
+ const resPath = calcResPath(resultContext, appDataEntity);
41471
+ requestUrl += "".concat(resPath, "/").concat(appDataEntity.deapicodeName2, "/printdata/").concat(resultContext[appDataEntity.codeName.toLowerCase()]);
41472
+ } else {
41473
+ throw new RuntimeError43(
41474
+ ibiz.i18n.t("runtime.uiAction.dataPrimaryKey")
41475
+ );
41476
+ }
41477
+ const app = await ibiz.hub.getAppAsync(action.appId);
41478
+ const res = await app.net.request(requestUrl, {
41479
+ method: "get",
41480
+ responseType: "blob",
41481
+ params: {
41482
+ srfprinttag: appDEPrint.codeName,
41483
+ ...resultParams
41484
+ }
41485
+ });
41486
+ if (res.ok) {
41487
+ if (resultParams && resultParams.srfcontenttype) {
41488
+ const fileName = ibiz.util.file.getFileName(res);
41489
+ const href = URL.createObjectURL(res.data);
41490
+ const a = document.createElement("a");
41491
+ a.href = href;
41492
+ a.download = fileName;
41493
+ document.body.appendChild(a);
41494
+ a.click();
41495
+ document.body.removeChild(a);
41496
+ URL.revokeObjectURL(href);
41497
+ } else {
41498
+ const link = window.URL.createObjectURL(res.data);
41499
+ window.open(link, "_blank");
41500
+ }
41417
41501
  } else {
41418
- const link = window.URL.createObjectURL(res.data);
41419
- window.open(link, "_blank");
41502
+ throw new RuntimeError43(ibiz.i18n.t("runtime.uiAction.printFailure"));
41420
41503
  }
41421
41504
  } else {
41422
- throw new RuntimeError43(ibiz.i18n.t("runtime.uiAction.printFailure"));
41505
+ throw new RuntimeError43(ibiz.i18n.t("runtime.uiAction.physicalPrint"));
41423
41506
  }
41507
+ };
41508
+ const isMultiData = ["MULTIKEY", "MULTIDATA"].includes(
41509
+ action.actionTarget
41510
+ );
41511
+ if (isMultiData) {
41512
+ await Promise.all(args.data.map((item) => execute([item])));
41424
41513
  } else {
41425
- throw new RuntimeError43(ibiz.i18n.t("runtime.uiAction.physicalPrint"));
41514
+ await execute(args.data);
41426
41515
  }
41427
41516
  }
41428
41517
  /**
@@ -41481,7 +41570,8 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
41481
41570
  return dataExport.id === action.appDEDataExportId;
41482
41571
  });
41483
41572
  if (appDEDataExport) {
41484
- const url = "/".concat(appDataEntity.deapicodeName2, "/exportdata/fetchdefault");
41573
+ const resPath = calcResPath(resultContext, appDataEntity);
41574
+ const url = "".concat(resPath, "/").concat(appDataEntity.deapicodeName2, "/exportdata/fetchdefault");
41485
41575
  const queryParam = { srfexporttag: appDEDataExport.codeName };
41486
41576
  if (resultContext == null ? void 0 : resultContext.srfdatatype) {
41487
41577
  Object.assign(queryParam, { srfdatatype: resultContext.srfdatatype });
@@ -41492,7 +41582,8 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
41492
41582
  ...args.params,
41493
41583
  ...resultParams
41494
41584
  };
41495
- const res = await ibiz.net.request(url, {
41585
+ const app = await ibiz.hub.getAppAsync(action.appId);
41586
+ const res = await app.net.request(url, {
41496
41587
  method: "post",
41497
41588
  responseType: "blob",
41498
41589
  params: queryParam,
@@ -41644,7 +41735,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
41644
41735
  * @memberof FrontUIActionProvider
41645
41736
  */
41646
41737
  mergeFormItemModel(formModel, editorModel) {
41647
- const tempFormModel = clone25(formModel);
41738
+ const tempFormModel = clone26(formModel);
41648
41739
  if (tempFormModel && editorModel && tempFormModel.deformPages && tempFormModel.deformPages.length > 0) {
41649
41740
  const { deformDetails } = tempFormModel.deformPages[0];
41650
41741
  deformDetails == null ? void 0 : deformDetails.push(editorModel);
@@ -41730,7 +41821,7 @@ var CustomUIActionProvider = class extends UIActionProviderBase {
41730
41821
  const { context, params, data, event, view, ctrl } = args;
41731
41822
  if (scriptCode) {
41732
41823
  const result = await ScriptFactory.asyncExecScriptFn(
41733
- { context, params, data, el: event == null ? void 0 : event.target, view, ctrl },
41824
+ { context, params, data, el: event == null ? void 0 : event.target, view, ctrl, action },
41734
41825
  scriptCode
41735
41826
  );
41736
41827
  return result || {};
@@ -42620,7 +42711,7 @@ var CalendarController = class extends MDControlController {
42620
42711
  import { RuntimeError as RuntimeError47 } from "@ibiz-template/core";
42621
42712
 
42622
42713
  // src/controller/control/chart/generator/chart-options-generator.ts
42623
- import { clone as clone28, mergeDeepRight as mergeDeepRight3 } from "ramda";
42714
+ import { clone as clone29, mergeDeepRight as mergeDeepRight3 } from "ramda";
42624
42715
  import { isObject as isObject2, isString as isString2 } from "qx-util";
42625
42716
  import { RuntimeError as RuntimeError46 } from "@ibiz-template/core";
42626
42717
 
@@ -42635,7 +42726,7 @@ import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
42635
42726
  import quarterOfYear from "dayjs/plugin/quarterOfYear";
42636
42727
  import weekOfYear from "dayjs/plugin/weekOfYear";
42637
42728
  import isoWeek from "dayjs/plugin/isoWeek";
42638
- import { clone as clone26, isNil as isNil26, mergeDeepRight } from "ramda";
42729
+ import { clone as clone27, isNil as isNil26, mergeDeepRight } from "ramda";
42639
42730
  dayjs5.extend(minMax);
42640
42731
  dayjs5.extend(isSameOrBefore);
42641
42732
  dayjs5.extend(quarterOfYear);
@@ -42936,7 +43027,7 @@ var BaseSeriesGenerator = class {
42936
43027
  })
42937
43028
  )
42938
43029
  );
42939
- const cloneItem = clone26(codeListItems);
43030
+ const cloneItem = clone27(codeListItems);
42940
43031
  cloneItem.sort((a, b) => {
42941
43032
  const aIndex = orginItem.findIndex((_code) => {
42942
43033
  return _code === a.value;
@@ -42949,9 +43040,9 @@ var BaseSeriesGenerator = class {
42949
43040
  return cloneItem;
42950
43041
  }
42951
43042
  if (sort === "desc") {
42952
- return clone26(codeListItems).reverse();
43043
+ return clone27(codeListItems).reverse();
42953
43044
  }
42954
- return clone26(codeListItems);
43045
+ return clone27(codeListItems);
42955
43046
  }
42956
43047
  /**
42957
43048
  * 计算分组数据
@@ -43250,7 +43341,7 @@ var BaseSeriesGenerator = class {
43250
43341
  dataPreprocess(data) {
43251
43342
  const tempData = [];
43252
43343
  data.forEach((singleData) => {
43253
- tempData.push(clone26(singleData));
43344
+ tempData.push(clone27(singleData));
43254
43345
  });
43255
43346
  const { groupMode } = this.model;
43256
43347
  if (groupMode) {
@@ -43576,7 +43667,7 @@ var ScatterSeriesGenerator = class extends BaseSeriesGenerator {
43576
43667
  };
43577
43668
 
43578
43669
  // src/controller/control/chart/generator/radar-series-generator.ts
43579
- import { clone as clone27, mergeDeepRight as mergeDeepRight2 } from "ramda";
43670
+ import { clone as clone28, mergeDeepRight as mergeDeepRight2 } from "ramda";
43580
43671
 
43581
43672
  // src/controller/control/chart/generator/radar-coord-system.ts
43582
43673
  var RadarCoordSystem = class {
@@ -43652,7 +43743,7 @@ var RadarSeriesGenerator = class extends BaseSeriesGenerator {
43652
43743
  */
43653
43744
  calcRadarCoordSystem(data) {
43654
43745
  const tempItems = data.map((item) => {
43655
- return clone27(item);
43746
+ return clone28(item);
43656
43747
  });
43657
43748
  const groupData = this.calcGroupData(tempItems);
43658
43749
  if (!this.chartGenerator.radarMap.has(this.catalogField)) {
@@ -44344,8 +44435,8 @@ var ChartOptionsGenerator3 = class {
44344
44435
  const xaxis = [];
44345
44436
  const yaxis = [];
44346
44437
  for (let i = 0; i < seriesModel.length; i++) {
44347
- const tempXAxis = clone28(xAxisParam);
44348
- const tempYAxis = clone28(yAxisParam);
44438
+ const tempXAxis = clone29(xAxisParam);
44439
+ const tempYAxis = clone29(yAxisParam);
44349
44440
  Object.assign(tempXAxis, { gridIndex: i });
44350
44441
  Object.assign(tempYAxis, { gridIndex: i });
44351
44442
  if (!tempYAxis.axisLabel)
@@ -44397,7 +44488,7 @@ var ChartOptionsGenerator3 = class {
44397
44488
  }
44398
44489
  });
44399
44490
  if (left) {
44400
- const tempAxis = clone28(axisParam);
44491
+ const tempAxis = clone29(axisParam);
44401
44492
  if (tempAxis.showTitle) {
44402
44493
  const serietext = left.map((serie) => {
44403
44494
  return serie.serieText;
@@ -44409,7 +44500,7 @@ var ChartOptionsGenerator3 = class {
44409
44500
  axis.push(tempAxis);
44410
44501
  }
44411
44502
  if (right) {
44412
- const tempAxis = clone28(axisParam);
44503
+ const tempAxis = clone29(axisParam);
44413
44504
  if (tempAxis.showTitle) {
44414
44505
  const serietext = right.map((serie) => {
44415
44506
  return serie.serieText;
@@ -44518,9 +44609,9 @@ var ChartOptionsGenerator3 = class {
44518
44609
  );
44519
44610
  if (codeListItems) {
44520
44611
  if (catalog.sort === "desc") {
44521
- currentLevelItems = clone28(codeListItems).reverse();
44612
+ currentLevelItems = clone29(codeListItems).reverse();
44522
44613
  } else {
44523
- currentLevelItems = clone28(codeListItems);
44614
+ currentLevelItems = clone29(codeListItems);
44524
44615
  }
44525
44616
  }
44526
44617
  } else {
@@ -44729,7 +44820,7 @@ var ChartOptionsGenerator3 = class {
44729
44820
  * @memberof ChartOptionsGenerator
44730
44821
  */
44731
44822
  handleAxisTitleParam(option = {}, titleshow = true) {
44732
- const tempOption = clone28(option);
44823
+ const tempOption = clone29(option);
44733
44824
  Object.assign(tempOption, { show: titleshow });
44734
44825
  return tempOption;
44735
44826
  }
@@ -45390,10 +45481,10 @@ var CaptionBarController = class extends ControlController {
45390
45481
  };
45391
45482
 
45392
45483
  // src/controller/control/dashboard/dashboard.controller.ts
45393
- import { clone as clone30 } from "ramda";
45484
+ import { clone as clone31 } from "ramda";
45394
45485
 
45395
45486
  // src/controller/control/dashboard/dashboard.util.ts
45396
- import { clone as clone29 } from "ramda";
45487
+ import { clone as clone30 } from "ramda";
45397
45488
  function filterDEDQConditions2SearchConds(filterDEDQConditions) {
45398
45489
  const result = [];
45399
45490
  filterDEDQConditions.forEach((filterDEDQCondition) => {
@@ -45437,7 +45528,7 @@ function generateCacheKy(context, dashboard, key) {
45437
45528
  function getFilterSearchConds(searchConds, filterDEDQConditions) {
45438
45529
  let result;
45439
45530
  if (searchConds) {
45440
- result = clone29(searchConds);
45531
+ result = clone30(searchConds);
45441
45532
  }
45442
45533
  if (filterDEDQConditions) {
45443
45534
  if (!result || !result.searchconds) {
@@ -45732,7 +45823,7 @@ var DashboardController = class extends ControlController {
45732
45823
  */
45733
45824
  async loadDynaPortletById(id) {
45734
45825
  const app = ibiz.hub.getApp(ibiz.env.appId);
45735
- const tempContext = clone30(this.context);
45826
+ const tempContext = clone31(this.context);
45736
45827
  Object.assign(tempContext, { psappportlet: id });
45737
45828
  const res = await app.deService.exec(
45738
45829
  "psappportlet",
@@ -45998,7 +46089,7 @@ var DashboardController = class extends ControlController {
45998
46089
  };
45999
46090
 
46000
46091
  // src/controller/control/dashboard/custom-dashboard.controller.ts
46001
- import { clone as clone31 } from "ramda";
46092
+ import { clone as clone32 } from "ramda";
46002
46093
  var CustomDashboardController = class {
46003
46094
  /**
46004
46095
  * Creates an instance of BaseController.
@@ -46220,7 +46311,7 @@ var CustomDashboardController = class {
46220
46311
  async saveCustomModelData(model, config = {}, filter = {}) {
46221
46312
  Object.assign(this.portletConfig, config);
46222
46313
  let res;
46223
- const cloneFilter = clone31(this.portletFilter);
46314
+ const cloneFilter = clone32(this.portletFilter);
46224
46315
  if (Object.keys(filter).length > 0) {
46225
46316
  Object.assign(cloneFilter, filter);
46226
46317
  }
@@ -46271,7 +46362,7 @@ var CustomDashboardController = class {
46271
46362
  // src/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.ts
46272
46363
  import { merge } from "lodash-es";
46273
46364
  import {
46274
- IBizContext as IBizContext6,
46365
+ IBizContext as IBizContext7,
46275
46366
  IBizParams as IBizParams2,
46276
46367
  listenJSEvent,
46277
46368
  Namespace as Namespace2
@@ -46331,7 +46422,7 @@ var PortletPartController = class {
46331
46422
  this.dashboard = dashboard;
46332
46423
  this.parent = parent;
46333
46424
  this.state = this.createState();
46334
- this.state.context = IBizContext6.create({}, this.dashboard.context);
46425
+ this.state.context = IBizContext7.create({}, this.dashboard.context);
46335
46426
  const tempParams = this.getExtendParams();
46336
46427
  if (tempParams) {
46337
46428
  this.params = new IBizParams2(
@@ -46847,7 +46938,7 @@ var ReportPortletController = class extends PortletPartController {
46847
46938
 
46848
46939
  // src/controller/control/search-bar/search-bar.controller.ts
46849
46940
  import { mergeInLeft, recursiveIterate as recursiveIterate4 } from "@ibiz-template/core";
46850
- import { clone as clone33 } from "ramda";
46941
+ import { clone as clone34 } from "ramda";
46851
46942
  import { isString as isString3 } from "lodash-es";
46852
46943
 
46853
46944
  // src/controller/control/search-bar/search-bar-filter.controller.ts
@@ -47343,7 +47434,7 @@ async function calcFilterModelBySchema(json, appDataEntityId, modelAppId) {
47343
47434
 
47344
47435
  // src/controller/control/search-bar/search-bar-filter-items.controller.ts
47345
47436
  import { RuntimeError as RuntimeError48 } from "@ibiz-template/core";
47346
- import { clone as clone32 } from "ramda";
47437
+ import { clone as clone33 } from "ramda";
47347
47438
  var SubFieldRegex2 = /^N_(.\w+)_(.\w+)$/;
47348
47439
  var SearchBarFilterItemsController = class extends SearchBarFilterController {
47349
47440
  constructor(filterModels, appDataEntity, context, params) {
@@ -47428,7 +47519,7 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
47428
47519
  const matches = subStr.match(SubFieldRegex2);
47429
47520
  const subField = matches[1];
47430
47521
  const subOP = matches[2];
47431
- const cloneItem = clone32(item);
47522
+ const cloneItem = clone33(item);
47432
47523
  cloneItem.defsearchMode.valueOP = subOP;
47433
47524
  cloneItem.id = subField;
47434
47525
  const filterC = new SearchBarFilterController(
@@ -47939,7 +48030,7 @@ var SearchBarController = class extends ControlController {
47939
48030
  if (!this.addSchemaFilters) {
47940
48031
  return;
47941
48032
  }
47942
- const tempParams = clone33(this.jsonSchemaParams);
48033
+ const tempParams = clone34(this.jsonSchemaParams);
47943
48034
  Object.assign(tempParams, this.params);
47944
48035
  const json = await getEntitySchema(
47945
48036
  this.model.appDataEntityId,
@@ -47968,7 +48059,7 @@ var SearchBarController = class extends ControlController {
47968
48059
  }
47969
48060
  });
47970
48061
  if (addSearchBarFilters.length > 0) {
47971
- this.model = clone33(this.model);
48062
+ this.model = clone34(this.model);
47972
48063
  this.model.searchBarFilters = mergeFilters.concat(...addSearchBarFilters);
47973
48064
  this.model.enableFilter = true;
47974
48065
  }
@@ -48190,7 +48281,7 @@ var SearchBarController = class extends ControlController {
48190
48281
  if (!this.enableFilter) {
48191
48282
  return;
48192
48283
  }
48193
- const nodes = clone33(this.state.filterNodes);
48284
+ const nodes = clone34(this.state.filterNodes);
48194
48285
  this.attachCustomCond(nodes);
48195
48286
  const searchconds = calcSearchConds(nodes, {
48196
48287
  after: (node, cond) => {
@@ -48387,7 +48478,7 @@ var SearchBarController = class extends ControlController {
48387
48478
  */
48388
48479
  async handleSave() {
48389
48480
  if (this.grid && this.state.selectedSearchGroupItem) {
48390
- const nodes = clone33(this.state.filterNodes);
48481
+ const nodes = clone34(this.state.filterNodes);
48391
48482
  this.attachCustomCond(nodes);
48392
48483
  let filters = calcSearchCondExs(nodes);
48393
48484
  if (!filters) {
@@ -48403,7 +48494,7 @@ var SearchBarController = class extends ControlController {
48403
48494
  }
48404
48495
  const tempColumnState = this.grid.state.columnStates.map(
48405
48496
  (item) => {
48406
- const state = clone33(item);
48497
+ const state = clone34(item);
48407
48498
  delete state.columnWidth;
48408
48499
  return state;
48409
48500
  }
@@ -48729,7 +48820,7 @@ var FilterPortletController = class extends PortletPartController {
48729
48820
 
48730
48821
  // src/controller/control/data-view/data-view.controller.ts
48731
48822
  import { RuntimeModelError as RuntimeModelError56, isElementSame as isElementSame2 } from "@ibiz-template/core";
48732
- import { clone as clone34, isNil as isNil29 } from "ramda";
48823
+ import { clone as clone35, isNil as isNil29 } from "ramda";
48733
48824
  import { createUUID as createUUID11, isBoolean } from "qx-util";
48734
48825
 
48735
48826
  // src/controller/control/data-view/data-view.service.ts
@@ -48787,6 +48878,7 @@ var DataViewControlController = class extends MDControlController {
48787
48878
  this.state.collapseKeys = [];
48788
48879
  const { enablePagingBar } = this.model;
48789
48880
  this.state.enablePagingBar = enablePagingBar;
48881
+ this.state.uaState = {};
48790
48882
  }
48791
48883
  /**
48792
48884
  * 初始化
@@ -48965,68 +49057,56 @@ var DataViewControlController = class extends MDControlController {
48965
49057
  await this.initGroupCodeListItems();
48966
49058
  await this.handleDataGroup();
48967
49059
  await this.initGroupActionStates();
49060
+ await this.calcOptItemState(items);
48968
49061
  this.calcShowMode(items);
48969
49062
  return items;
48970
49063
  }
48971
49064
  /**
48972
- * 获取操作项模型
48973
- *
48974
- * @return {*} {(IDEDataViewItem | null)}
49065
+ * @description 获取操作项行为集合模型
49066
+ * @returns {*} {IUIActionGroupDetail[]}
48975
49067
  * @memberof DataViewControlController
48976
49068
  */
48977
49069
  getOptItemModel() {
48978
- let optItemModel = null;
49070
+ const actions = [];
48979
49071
  const { dedataViewItems } = this.model;
48980
- if (dedataViewItems) {
48981
- for (let index = 0; index < dedataViewItems.length; index++) {
48982
- if (dedataViewItems[index].itemType === "ACTIONITEM") {
48983
- optItemModel = dedataViewItems[index];
48984
- }
49072
+ dedataViewItems == null ? void 0 : dedataViewItems.forEach((item) => {
49073
+ if (item.itemType === "ACTIONITEM" && item.deuiactionGroup && item.deuiactionGroup.uiactionGroupDetails) {
49074
+ actions.push(...item.deuiactionGroup.uiactionGroupDetails);
48985
49075
  }
48986
- }
48987
- return optItemModel;
49076
+ });
49077
+ return actions;
48988
49078
  }
48989
49079
  /**
48990
- * 获取操作项行为
48991
- *
48992
- * @param {IData} item
48993
- * @return {*}
49080
+ * @description 计算操作项状态
49081
+ * @param {IData[]} items
49082
+ * @returns {*} {Promise<void>}
48994
49083
  * @memberof DataViewControlController
48995
49084
  */
48996
- getOptItemAction(item) {
48997
- var _a3;
48998
- const containerState = new ButtonContainerState();
48999
- const optItemModel = this.getOptItemModel();
49000
- if (optItemModel) {
49001
- if (!optItemModel.deuiactionGroup) {
49002
- throw new RuntimeModelError56(
49003
- this.model,
49004
- ibiz.i18n.t("runtime.controller.control.dataView.noBehaviourGroup")
49005
- );
49006
- }
49007
- if (!((_a3 = optItemModel.deuiactionGroup.uiactionGroupDetails) == null ? void 0 : _a3.length)) {
49008
- ibiz.log.debug(
49009
- ibiz.i18n.t(
49010
- "runtime.controller.control.dataView.noBehaviourGroupAction"
49011
- )
49012
- );
49013
- return containerState;
49014
- }
49015
- optItemModel.deuiactionGroup.uiactionGroupDetails.forEach((detail) => {
49016
- const actionid = detail.uiactionId;
49017
- if (actionid) {
49018
- const buttonState = new UIActionButtonState(
49019
- detail.id,
49020
- this.context.srfappid,
49021
- actionid,
49022
- detail
49085
+ async calcOptItemState(items) {
49086
+ const actions = this.getOptItemModel();
49087
+ if (actions.length)
49088
+ await Promise.all(
49089
+ items.map(async (item) => {
49090
+ const containerState = new ButtonContainerState();
49091
+ actions.forEach((action) => {
49092
+ const actionid = action.uiactionId;
49093
+ if (actionid) {
49094
+ const buttonState = new UIActionButtonState(
49095
+ action.id,
49096
+ this.context.srfappid,
49097
+ actionid
49098
+ );
49099
+ containerState.addState(action.id, buttonState);
49100
+ }
49101
+ });
49102
+ await containerState.update(
49103
+ this.context,
49104
+ item.getOrigin(),
49105
+ this.model.appDataEntityId
49023
49106
  );
49024
- containerState.addState(detail.id, buttonState);
49025
- }
49026
- });
49027
- containerState.update(this.context, item.getOrigin());
49028
- }
49029
- return containerState;
49107
+ this.state.uaState[item.srfkey] = containerState;
49108
+ })
49109
+ );
49030
49110
  }
49031
49111
  /**
49032
49112
  * 行为点击
@@ -49061,7 +49141,7 @@ var DataViewControlController = class extends MDControlController {
49061
49141
  */
49062
49142
  async execGroup(arg, _params) {
49063
49143
  const group = arg[0];
49064
- this.model = clone34(this.model);
49144
+ this.model = clone35(this.model);
49065
49145
  this.model.groupMode = "AUTO";
49066
49146
  if (!group || !group.groupFieldId) {
49067
49147
  this.state.groups = [];
@@ -50204,7 +50284,7 @@ import {
50204
50284
  RuntimeError as RuntimeError51
50205
50285
  } from "@ibiz-template/core";
50206
50286
  import { isBoolean as isBoolean2 } from "qx-util";
50207
- import { clone as clone35 } from "ramda";
50287
+ import { clone as clone36 } from "ramda";
50208
50288
  var FormController = class extends ControlController {
50209
50289
  constructor() {
50210
50290
  super(...arguments);
@@ -50478,7 +50558,7 @@ var FormController = class extends ControlController {
50478
50558
  * @return {*} {Promise<void>}
50479
50559
  */
50480
50560
  async checkIgnoreInput(data) {
50481
- const formData = clone35(data);
50561
+ const formData = clone36(data);
50482
50562
  const formDataUIMap = formData.$dataUIMap;
50483
50563
  const isCreate = formData.srfuf === 0 /* CREATE */;
50484
50564
  this.formItems.forEach((formItem) => {
@@ -50678,7 +50758,7 @@ import { recursiveIterate as recursiveIterate7 } from "@ibiz-template/core";
50678
50758
 
50679
50759
  // src/controller/control/form/form/form.service.ts
50680
50760
  import { recursiveIterate as recursiveIterate6 } from "@ibiz-template/core";
50681
- import { clone as clone36, isNil as isNil30, isNotNil as isNotNil3 } from "ramda";
50761
+ import { clone as clone37, isNil as isNil30, isNotNil as isNotNil3 } from "ramda";
50682
50762
  var FormService = class extends ControlService {
50683
50763
  constructor() {
50684
50764
  super(...arguments);
@@ -50740,7 +50820,7 @@ var FormService = class extends ControlService {
50740
50820
  * @return {*} {IParams}
50741
50821
  */
50742
50822
  getLoadParams(params) {
50743
- const copyArgs = clone36(params);
50823
+ const copyArgs = clone37(params);
50744
50824
  const defaultData = {};
50745
50825
  if (copyArgs.srfdefdata) {
50746
50826
  Object.assign(defaultData, copyArgs.srfdefdata);
@@ -52078,7 +52158,7 @@ var FormDRUIPartController = class extends FormDetailController {
52078
52158
  };
52079
52159
 
52080
52160
  // src/controller/control/form/form-detail/form-group-panel/form-group-panel.controller.ts
52081
- import { clone as clone37 } from "ramda";
52161
+ import { clone as clone38 } from "ramda";
52082
52162
 
52083
52163
  // src/controller/control/form/form-detail/form-group-panel/form-group-panel.state.ts
52084
52164
  var FormGroupPanelState = class extends FormDetailState {
@@ -52186,7 +52266,7 @@ var FormGroupPanelController = class extends FormDetailController {
52186
52266
  */
52187
52267
  async onActionClick(detail, event, args) {
52188
52268
  const actionId = detail.uiactionId;
52189
- const tempParams = clone37(this.form.params);
52269
+ const tempParams = clone38(this.form.params);
52190
52270
  if (args) {
52191
52271
  Object.assign(tempParams, args);
52192
52272
  }
@@ -53302,7 +53382,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
53302
53382
 
53303
53383
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.ts
53304
53384
  import { ModelError as ModelError26 } from "@ibiz-template/core";
53305
- import { clone as clone38 } from "ramda";
53385
+ import { clone as clone39 } from "ramda";
53306
53386
  var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
53307
53387
  constructor() {
53308
53388
  super(...arguments);
@@ -53407,7 +53487,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
53407
53487
  copyFields.forEach((key) => {
53408
53488
  tempForm[key] = this.form.model[key];
53409
53489
  });
53410
- this.repeatedForm = clone38(tempForm);
53490
+ this.repeatedForm = clone39(tempForm);
53411
53491
  }
53412
53492
  /**
53413
53493
  * @description 设置重复器控制器
@@ -53884,14 +53964,14 @@ var FormButtonListController = class extends FormDetailController {
53884
53964
  // src/controller/control/form/edit-form/edit-form.controller.ts
53885
53965
  import {
53886
53966
  awaitTimeout,
53887
- IBizContext as IBizContext7,
53967
+ IBizContext as IBizContext8,
53888
53968
  isElementSame as isElementSame3,
53889
53969
  mergeInLeft as mergeInLeft3,
53890
53970
  RuntimeError as RuntimeError54
53891
53971
  } from "@ibiz-template/core";
53892
53972
  import { debounce } from "lodash-es";
53893
53973
  import { createUUID as createUUID14 } from "qx-util";
53894
- import { clone as clone39, isNil as isNil31 } from "ramda";
53974
+ import { clone as clone40, isNil as isNil31 } from "ramda";
53895
53975
 
53896
53976
  // src/controller/control/form/edit-form/edit-form.service.ts
53897
53977
  import {
@@ -54044,7 +54124,10 @@ var EditFormService = class extends FormService {
54044
54124
  * @returns {*} {Promise<IHttpResponse<ControlVO>>}
54045
54125
  */
54046
54126
  async updateFormItem(methodName, context, data = {}, params = {}) {
54047
- Object.assign(params, { srfupdateitem: true });
54127
+ var _a3;
54128
+ const { controlParam } = this.model;
54129
+ const srfupdateitem = ((_a3 = controlParam == null ? void 0 : controlParam.ctrlParams) == null ? void 0 : _a3.IGNOREUPDATEITEM) !== "false";
54130
+ Object.assign(params, { srfupdateitem });
54048
54131
  let res = await this.exec(methodName, context, data, params);
54049
54132
  res = this.handleResponse(res);
54050
54133
  return res;
@@ -54313,8 +54396,8 @@ var EditFormController = class extends FormController {
54313
54396
  * @return {*} {Promise<IData>}
54314
54397
  */
54315
54398
  async copy() {
54316
- const context = clone39(this.context);
54317
- const queryParams = clone39(this.params);
54399
+ const context = clone40(this.context);
54400
+ const queryParams = clone40(this.params);
54318
54401
  const appDataEntity = await ibiz.hub.getAppDataEntity(
54319
54402
  this.model.appDataEntityId,
54320
54403
  this.model.appId
@@ -54371,7 +54454,7 @@ var EditFormController = class extends FormController {
54371
54454
  return this.loadDraft();
54372
54455
  }
54373
54456
  const { context, params } = this.handlerAbilityParams(args);
54374
- const queryParams = clone39(params);
54457
+ const queryParams = clone40(params);
54375
54458
  const silent = this.getSilent(args) === true;
54376
54459
  let res;
54377
54460
  try {
@@ -54725,7 +54808,7 @@ var EditFormController = class extends FormController {
54725
54808
  switch (autoSaveMode) {
54726
54809
  case 3:
54727
54810
  saveParam.data = this.getDiffData();
54728
- saveParam.context = IBizContext7.create({ srfsimple: true });
54811
+ saveParam.context = IBizContext8.create({ srfsimple: true });
54729
54812
  break;
54730
54813
  default:
54731
54814
  }
@@ -54755,7 +54838,7 @@ var EditFormController = class extends FormController {
54755
54838
  switch (autoSaveMode) {
54756
54839
  case 3:
54757
54840
  saveParam.data = this.getDiffData();
54758
- saveParam.context = IBizContext7.create({ srfsimple: true });
54841
+ saveParam.context = IBizContext8.create({ srfsimple: true });
54759
54842
  break;
54760
54843
  default:
54761
54844
  }
@@ -55230,7 +55313,7 @@ import {
55230
55313
  mergeDefaultInLeft as mergeDefaultInLeft2,
55231
55314
  debounceAndAsyncMerge as debounceAndAsyncMerge2
55232
55315
  } from "@ibiz-template/core";
55233
- import { clone as clone41, isNil as isNil32 } from "ramda";
55316
+ import { clone as clone42, isNil as isNil32 } from "ramda";
55234
55317
  import dayjs6 from "dayjs";
55235
55318
 
55236
55319
  // src/controller/control/grid/grid/grid.service.ts
@@ -55401,7 +55484,7 @@ async function calcColumnModelBySchema(json, c) {
55401
55484
  }
55402
55485
 
55403
55486
  // src/controller/control/grid/grid/auto-grid.util.ts
55404
- import { clone as clone40 } from "ramda";
55487
+ import { clone as clone41 } from "ramda";
55405
55488
  import { mergeDefaultInLeft } from "@ibiz-template/core";
55406
55489
  var TypeToDataType2 = {
55407
55490
  string: 25,
@@ -55454,7 +55537,7 @@ function getEditorModel(item, appId2, enableCond, isSingleSelect = false) {
55454
55537
  type = "dropdown";
55455
55538
  if (enableCond === 0)
55456
55539
  type = "span";
55457
- const model = Object.assign(clone40(TypeToEditor[type]), {
55540
+ const model = Object.assign(clone41(TypeToEditor[type]), {
55458
55541
  appId: appId2
55459
55542
  });
55460
55543
  if (type === "dropdown" && isSingleSelect)
@@ -55605,7 +55688,7 @@ async function initModelByEntitySchema(c) {
55605
55688
  if (!json)
55606
55689
  return;
55607
55690
  const { degridColumns, degridDataItems, degridEditItems, degridEditItemVRs } = await calcColumnModelBySchema2(json, c);
55608
- c.model = clone40(c.model);
55691
+ c.model = clone41(c.model);
55609
55692
  const uaColumns = ((_a3 = c.model.degridColumns) == null ? void 0 : _a3.filter(
55610
55693
  (column) => column.columnType === "UAGRIDCOLUMN"
55611
55694
  )) || [];
@@ -55652,7 +55735,7 @@ async function switchRowEditDynamic(c, row, editable, _isSave = true) {
55652
55735
  await switchRowEditDynamic(c, editingRow);
55653
55736
  }
55654
55737
  if (row.data.srfuf === 1 /* UPDATE */) {
55655
- row.cacheData = clone40(row.data);
55738
+ row.cacheData = clone41(row.data);
55656
55739
  const defaultVal = c.calcDefaultValue(row.data, false);
55657
55740
  Object.assign(row.data, defaultVal);
55658
55741
  }
@@ -56024,7 +56107,7 @@ var GridController = class extends MDControlController {
56024
56107
  if (!this.addSchemaColumn) {
56025
56108
  return;
56026
56109
  }
56027
- const tempParams = clone41(this.jsonSchemaParams);
56110
+ const tempParams = clone42(this.jsonSchemaParams);
56028
56111
  Object.assign(tempParams, this.params);
56029
56112
  const json = await getEntitySchema(
56030
56113
  this.model.appDataEntityId,
@@ -56038,7 +56121,7 @@ var GridController = class extends MDControlController {
56038
56121
  if (result && result.degridColumns.length > 0) {
56039
56122
  const { degridColumns, degridDataItems } = result;
56040
56123
  this.allCustomColumns = degridColumns;
56041
- this.model = clone41(this.model);
56124
+ this.model = clone42(this.model);
56042
56125
  this.model.degridColumns = [
56043
56126
  ...this.model.degridColumns || [],
56044
56127
  ...degridColumns
@@ -56260,7 +56343,7 @@ var GridController = class extends MDControlController {
56260
56343
  async execGroup(arg, _params) {
56261
56344
  var _a3;
56262
56345
  const group = arg[0];
56263
- this.model = clone41(this.model);
56346
+ this.model = clone42(this.model);
56264
56347
  this.model.groupMode = "AUTO";
56265
56348
  const { columnStates } = this.state;
56266
56349
  const column = (_a3 = this.model.degridColumns) == null ? void 0 : _a3.find(
@@ -56798,7 +56881,7 @@ var GridController = class extends MDControlController {
56798
56881
  await this.switchRowEdit(editingRow, false, false);
56799
56882
  }
56800
56883
  if (row.data.srfuf === 1 /* UPDATE */) {
56801
- row.cacheData = clone41(row.data);
56884
+ row.cacheData = clone42(row.data);
56802
56885
  const defaultVal = this.calcDefaultValue(row.data, false);
56803
56886
  Object.assign(row.data, defaultVal);
56804
56887
  }
@@ -56972,7 +57055,7 @@ var GridController = class extends MDControlController {
56972
57055
  * @Date: 2024-03-20 17:54:16
56973
57056
  */
56974
57057
  formatExcelData(data, fields) {
56975
- const cloneData = clone41(
57058
+ const cloneData = clone42(
56976
57059
  data.map((item) => {
56977
57060
  return fields.reduce((obj, key) => {
56978
57061
  obj[key] = item[key];
@@ -57455,7 +57538,7 @@ import {
57455
57538
  } from "@ibiz-template/core";
57456
57539
  import dayjs7 from "dayjs";
57457
57540
  import { debounce as debounce2 } from "lodash-es";
57458
- import { clone as clone42, isNil as isNil33 } from "ramda";
57541
+ import { clone as clone43, isNil as isNil33 } from "ramda";
57459
57542
  import { isNilOrEmpty as isNilOrEmpty8 } from "qx-util";
57460
57543
  var GridFieldColumnController = class extends GridColumnController {
57461
57544
  constructor() {
@@ -57647,7 +57730,7 @@ var GridFieldColumnController = class extends GridColumnController {
57647
57730
  srfkey: value,
57648
57731
  ...wfContext
57649
57732
  });
57650
- const tempParams = clone42(this.params);
57733
+ const tempParams = clone43(this.params);
57651
57734
  const { context: newContext, params: newParams } = this.handlePublicParams(
57652
57735
  row.data,
57653
57736
  tempContext,
@@ -58206,7 +58289,7 @@ var GridGroupColumnController = class extends GridColumnController {
58206
58289
 
58207
58290
  // src/controller/control/list/list.controller.ts
58208
58291
  import { createUUID as createUUID15, isBoolean as isBoolean3 } from "qx-util";
58209
- import { clone as clone43, isNil as isNil34 } from "ramda";
58292
+ import { clone as clone44, isNil as isNil34 } from "ramda";
58210
58293
  import { isElementSame as isElementSame4 } from "@ibiz-template/core";
58211
58294
 
58212
58295
  // src/controller/control/list/list.service.ts
@@ -58410,7 +58493,7 @@ var ListController = class extends MDControlController {
58410
58493
  */
58411
58494
  async execGroup(arg, _params) {
58412
58495
  const group = arg[0];
58413
- this.model = clone43(this.model);
58496
+ this.model = clone44(this.model);
58414
58497
  this.model.groupMode = "AUTO";
58415
58498
  if (!group || !group.groupFieldId) {
58416
58499
  this.state.groups = [];
@@ -59648,6 +59731,17 @@ import { isBoolean as isBoolean4 } from "qx-util";
59648
59731
  // src/controller/control/tree/tree.service.ts
59649
59732
  import { ModelError as ModelError28 } from "@ibiz-template/core";
59650
59733
  var TreeService = class extends MDControlService {
59734
+ constructor() {
59735
+ super(...arguments);
59736
+ /**
59737
+ * @description 加载更多信息项映射
59738
+ * @type {{
59739
+ * [parentDataId: string]: LoadMoreInfoItem[];
59740
+ * }}
59741
+ * @memberof TreeService
59742
+ */
59743
+ this.loadMoreMap = {};
59744
+ }
59651
59745
  /**
59652
59746
  * 获取子节点数据
59653
59747
  *
@@ -59879,6 +59973,7 @@ var TreeService = class extends MDControlService {
59879
59973
  navParams: {}
59880
59974
  };
59881
59975
  params.size = nodeModel.maxSize || 1e3;
59976
+ this.initPageParams(nodeModel, parentNodeData, opts, params);
59882
59977
  if (nodeModel.sortAppDEFieldId) {
59883
59978
  Object.assign(params, {
59884
59979
  sort: "".concat(nodeModel.sortAppDEFieldId.toLowerCase(), ",").concat(nodeModel.sortDir ? nodeModel.sortDir.toLowerCase() : "asc")
@@ -59951,6 +60046,13 @@ var TreeService = class extends MDControlService {
59951
60046
  defaultExpand
59952
60047
  });
59953
60048
  });
60049
+ this.updatePageItems(
60050
+ nodeModel,
60051
+ parentNodeData,
60052
+ opts,
60053
+ dataSourceType,
60054
+ nodeDatas
60055
+ );
59954
60056
  return nodeDatas;
59955
60057
  }
59956
60058
  return [];
@@ -60105,6 +60207,7 @@ var TreeService = class extends MDControlService {
60105
60207
  * @memberof TreeService
60106
60208
  */
60107
60209
  async getDENodeDatasByDEDataset(nodeModel, parentNodeData, opts) {
60210
+ var _a3;
60108
60211
  const { appDEDataSetId, appDataEntityId } = nodeModel;
60109
60212
  const { context, params } = opts;
60110
60213
  let result = [];
@@ -60116,6 +60219,12 @@ var TreeService = class extends MDControlService {
60116
60219
  params
60117
60220
  );
60118
60221
  if (response.ok && response.data) {
60222
+ this.updatePageInfo(
60223
+ nodeModel,
60224
+ parentNodeData,
60225
+ opts,
60226
+ Number((_a3 = response.headers) == null ? void 0 : _a3["x-total-pages"]) || 0
60227
+ );
60119
60228
  result = response.data;
60120
60229
  }
60121
60230
  }
@@ -60144,14 +60253,24 @@ var TreeService = class extends MDControlService {
60144
60253
  );
60145
60254
  if (items.length) {
60146
60255
  const nodeDatas = items.map((item, index) => {
60147
- const defaultExpand = this.calcExpand(nodeModel, index);
60148
- return new TreeCodeListNodeData(nodeModel, parentNodeData, {
60149
- data: item,
60150
- leaf: !!opts.leaf,
60151
- navContext,
60152
- navParams,
60153
- defaultExpand
60154
- });
60256
+ const fillChildren = (codeListItem, parent, i) => {
60257
+ var _a3;
60258
+ const defaultExpand = this.calcExpand(nodeModel, i);
60259
+ const node = new TreeCodeListNodeData(nodeModel, parent, {
60260
+ data: codeListItem,
60261
+ leaf: !!opts.leaf && !((_a3 = codeListItem.children) == null ? void 0 : _a3.length),
60262
+ navContext,
60263
+ navParams,
60264
+ defaultExpand
60265
+ });
60266
+ if (codeListItem.children && codeListItem.children.length) {
60267
+ node._children = codeListItem.children.map((child, j) => {
60268
+ return fillChildren(child, node, j);
60269
+ });
60270
+ }
60271
+ return node;
60272
+ };
60273
+ return fillChildren(item, parentNodeData, index);
60155
60274
  });
60156
60275
  return nodeDatas;
60157
60276
  }
@@ -60223,6 +60342,122 @@ var TreeService = class extends MDControlService {
60223
60342
  const { expandFirstOnly, expanded } = nodeModel;
60224
60343
  return !!expanded || !!expandFirstOnly;
60225
60344
  }
60345
+ /**
60346
+ * @description 初始化分页参数
60347
+ * @param {IDETreeDataSetNode} nodeModel
60348
+ * @param {(ITreeNodeData | undefined)} parentNodeData
60349
+ * @param {TreeFetchOpts} opts
60350
+ * @param {IParams} params
60351
+ * @memberof TreeService
60352
+ */
60353
+ initPageParams(nodeModel, parentNodeData, opts, params) {
60354
+ if (nodeModel.enablePaging && nodeModel.pagingSize) {
60355
+ params.size = nodeModel.pagingSize;
60356
+ }
60357
+ if (parentNodeData) {
60358
+ if (!this.loadMoreMap[parentNodeData._id]) {
60359
+ this.loadMoreMap[parentNodeData._id] = [];
60360
+ }
60361
+ if (opts.isLoadMore) {
60362
+ let info = this.loadMoreMap[parentNodeData._id].find(
60363
+ (item) => item.nodeModelId === nodeModel.id
60364
+ );
60365
+ if (!info) {
60366
+ info = {
60367
+ nodeModelId: nodeModel.id,
60368
+ curPage: 0,
60369
+ totalPage: 0,
60370
+ items: []
60371
+ };
60372
+ this.loadMoreMap[parentNodeData._id].push(info);
60373
+ }
60374
+ params.page = info.curPage + 1;
60375
+ } else {
60376
+ const index = this.loadMoreMap[parentNodeData._id].findIndex(
60377
+ (item) => item.nodeModelId === nodeModel.id
60378
+ );
60379
+ if (index === -1) {
60380
+ this.loadMoreMap[parentNodeData._id].push({
60381
+ nodeModelId: nodeModel.id,
60382
+ curPage: 0,
60383
+ totalPage: 0,
60384
+ items: []
60385
+ });
60386
+ } else {
60387
+ this.loadMoreMap[parentNodeData._id][index] = {
60388
+ nodeModelId: nodeModel.id,
60389
+ curPage: 0,
60390
+ totalPage: 0,
60391
+ items: []
60392
+ };
60393
+ }
60394
+ }
60395
+ }
60396
+ }
60397
+ /**
60398
+ * @description 更新分页节点数据
60399
+ * @param {IDETreeDataSetNode} nodeModel
60400
+ * @param {(ITreeNodeData | undefined)} parentNodeData
60401
+ * @param {TreeFetchOpts} opts
60402
+ * @param {(string | undefined)} dataSourceType
60403
+ * @param {TreeDataSetNodeData[]} nodeDatas
60404
+ * @memberof TreeService
60405
+ */
60406
+ updatePageItems(nodeModel, parentNodeData, opts, dataSourceType, nodeDatas) {
60407
+ if (parentNodeData) {
60408
+ if (!this.loadMoreMap[parentNodeData._id]) {
60409
+ this.loadMoreMap[parentNodeData._id] = [];
60410
+ }
60411
+ let info = this.loadMoreMap[parentNodeData._id].find(
60412
+ (item) => item.nodeModelId === nodeModel.id
60413
+ );
60414
+ if (!info) {
60415
+ info = {
60416
+ nodeModelId: nodeModel.id,
60417
+ curPage: 0,
60418
+ totalPage: 0,
60419
+ items: []
60420
+ };
60421
+ this.loadMoreMap[parentNodeData._id].push(info);
60422
+ }
60423
+ if (dataSourceType === "DEDATASET" && opts.isLoadMore) {
60424
+ info.items.push(...nodeDatas);
60425
+ } else {
60426
+ info.items = [...nodeDatas];
60427
+ }
60428
+ }
60429
+ }
60430
+ /**
60431
+ * @description 更新分页信息
60432
+ * @param {IDETreeDataSetNode} nodeModel
60433
+ * @param {(ITreeNodeData | undefined)} parentNodeData
60434
+ * @param {TreeFetchOpts} opts
60435
+ * @param {number} totalPage
60436
+ * @memberof TreeService
60437
+ */
60438
+ updatePageInfo(nodeModel, parentNodeData, opts, totalPage) {
60439
+ if (parentNodeData && nodeModel.enablePaging && nodeModel.pagingSize) {
60440
+ if (!this.loadMoreMap[parentNodeData._id]) {
60441
+ this.loadMoreMap[parentNodeData._id] = [];
60442
+ }
60443
+ let info = this.loadMoreMap[parentNodeData._id].find(
60444
+ (item) => item.nodeModelId === nodeModel.id
60445
+ );
60446
+ if (!info) {
60447
+ info = {
60448
+ nodeModelId: nodeModel.id,
60449
+ curPage: 0,
60450
+ totalPage: 0,
60451
+ items: []
60452
+ };
60453
+ this.loadMoreMap[parentNodeData._id].push(info);
60454
+ }
60455
+ if (opts.isLoadMore) {
60456
+ info.curPage += 1;
60457
+ }
60458
+ info.totalPage = totalPage;
60459
+ }
60460
+ }
60226
60461
  };
60227
60462
 
60228
60463
  // src/controller/control/tree/tree.controller.ts
@@ -60486,7 +60721,7 @@ var TreeController = class extends MDControlController {
60486
60721
  * @returns {*}
60487
60722
  * @memberof TreeController
60488
60723
  */
60489
- async loadNodes(parentNode) {
60724
+ async loadNodes(parentNode, isLoadMore = false) {
60490
60725
  const params = await this.getFetchParams();
60491
60726
  const hasQuery = !!params.query;
60492
60727
  this.state.isLoading = true;
@@ -60496,6 +60731,7 @@ var TreeController = class extends MDControlController {
60496
60731
  context: this.context.clone(),
60497
60732
  params,
60498
60733
  hasQuery,
60734
+ isLoadMore,
60499
60735
  ctrl: this,
60500
60736
  view: this.view,
60501
60737
  defaultExpandedKeys: this.state.expandedKeys
@@ -60527,8 +60763,17 @@ var TreeController = class extends MDControlController {
60527
60763
  this.state.isLoading = false;
60528
60764
  }
60529
60765
  if (parentNode) {
60530
- parentNode._children = nodes;
60766
+ if (isLoadMore) {
60767
+ parentNode._children = this.getLoadMoreNodes(parentNode, hasQuery);
60768
+ } else {
60769
+ parentNode._children = nodes;
60770
+ }
60531
60771
  } else {
60772
+ if (isLoadMore) {
60773
+ nodes.forEach((node) => {
60774
+ node._children = this.getLoadMoreNodes(node, hasQuery);
60775
+ });
60776
+ }
60532
60777
  this.state.rootNodes = nodes;
60533
60778
  }
60534
60779
  await this.afterLoadNodes(nodes);
@@ -61156,6 +61401,68 @@ var TreeController = class extends MDControlController {
61156
61401
  })
61157
61402
  );
61158
61403
  }
61404
+ /**
61405
+ * @description 获取加载更多信息项
61406
+ * @param {string} id
61407
+ * @returns {*} {(LoadMoreInfoItem[] | undefined)}
61408
+ * @memberof TreeController
61409
+ */
61410
+ getLoadMoreInfoItems(id) {
61411
+ return this.service.loadMoreMap[id];
61412
+ }
61413
+ /**
61414
+ * @description 获取加载更多最终节点数据
61415
+ * @param {ITreeNodeData} parentNode
61416
+ * @param {boolean} hasQuery
61417
+ * @returns {*} {ITreeNodeData[]}
61418
+ * @memberof TreeController
61419
+ */
61420
+ getLoadMoreNodes(parentNode, hasQuery) {
61421
+ const items = [];
61422
+ const infoItems = this.getLoadMoreInfoItems(parentNode._id);
61423
+ if (infoItems) {
61424
+ const childNodeRSs = getChildNodeRSs(this.model, {
61425
+ parentId: parentNode._nodeId,
61426
+ hasQuery
61427
+ });
61428
+ childNodeRSs == null ? void 0 : childNodeRSs.forEach((item) => {
61429
+ const nodeModel = getTreeNode(this.model, item.childDETreeNodeId);
61430
+ if (!nodeModel) {
61431
+ return;
61432
+ }
61433
+ const infoItem = infoItems.find(
61434
+ (_item) => _item.nodeModelId === nodeModel.id
61435
+ );
61436
+ if (!infoItem) {
61437
+ return;
61438
+ }
61439
+ items.push(...infoItem.items || []);
61440
+ });
61441
+ }
61442
+ const targetNodes = [];
61443
+ items.forEach((child) => {
61444
+ var _a3;
61445
+ const targetNode = (_a3 = this.model.detreeNodes) == null ? void 0 : _a3.find((item) => {
61446
+ return item.id === child._nodeId;
61447
+ });
61448
+ if (targetNode && targetNode.distinctMode && targetNode.idAppDEFieldId) {
61449
+ const index = targetNodes.findIndex((item) => {
61450
+ var _a4, _b2;
61451
+ const id = targetNode.idAppDEFieldId;
61452
+ if (id) {
61453
+ return ((_a4 = item._deData) == null ? void 0 : _a4[id]) === ((_b2 = child._deData) == null ? void 0 : _b2[id]);
61454
+ }
61455
+ return false;
61456
+ });
61457
+ if (index < 0) {
61458
+ targetNodes.push(child);
61459
+ }
61460
+ } else {
61461
+ targetNodes.push(child);
61462
+ }
61463
+ });
61464
+ return targetNodes;
61465
+ }
61159
61466
  };
61160
61467
 
61161
61468
  // src/controller/control/wizard-panel/wizard-panel.controller.ts
@@ -62009,11 +62316,15 @@ var MDCtrlController = class extends MDControlController {
62009
62316
  };
62010
62317
 
62011
62318
  // src/controller/control/kanban/kanban.controller.ts
62012
- import { RuntimeError as RuntimeError60, RuntimeModelError as RuntimeModelError69 } from "@ibiz-template/core";
62013
- import { clone as clone45, isNil as isNil37 } from "ramda";
62319
+ import {
62320
+ DataTypes as DataTypes6,
62321
+ RuntimeError as RuntimeError60,
62322
+ RuntimeModelError as RuntimeModelError69
62323
+ } from "@ibiz-template/core";
62324
+ import { clone as clone46, isNil as isNil37 } from "ramda";
62014
62325
 
62015
62326
  // src/controller/control/kanban/kanban.service.ts
62016
- import { clone as clone44 } from "ramda";
62327
+ import { clone as clone45 } from "ramda";
62017
62328
  var KanbanService = class extends DataViewControlService {
62018
62329
  /**
62019
62330
  * 更新分组数据
@@ -62042,7 +62353,7 @@ var KanbanService = class extends DataViewControlService {
62042
62353
  */
62043
62354
  async moveOrderItem(context, data, args) {
62044
62355
  const moveAction = this.model.moveControlAction.appDEMethodId;
62045
- const params = clone44(data.getOrigin());
62356
+ const params = clone45(data.getOrigin());
62046
62357
  Object.assign(params, args);
62047
62358
  let res = await this.exec(moveAction, context, params, {
62048
62359
  srfupdateitem: true
@@ -62074,6 +62385,32 @@ var KanbanController = class extends DataViewControlController {
62074
62385
  get enableEditGroup() {
62075
62386
  return this.model.enableCardEditGroup === true;
62076
62387
  }
62388
+ /**
62389
+ * @description 拖拽模式
62390
+ * @readonly
62391
+ * @type {(0 | 1 | 2 | 3)} (无 | 仅分组 | 仅泳道 | 全部)
62392
+ * @memberof KanbanController
62393
+ */
62394
+ get draggableMode() {
62395
+ if (this.controlParams.draggablemode) {
62396
+ const draggablemode = Number(this.controlParams.draggablemode);
62397
+ if (!isNaN(draggablemode))
62398
+ return draggablemode;
62399
+ }
62400
+ return 3;
62401
+ }
62402
+ /**
62403
+ * @description 获取泳道描述
62404
+ * @readonly
62405
+ * @type {(string | undefined)}
62406
+ * @memberof KanbanController
62407
+ */
62408
+ get laneDescription() {
62409
+ var _a3;
62410
+ if (this.controlParams.lanedescription)
62411
+ return this.controlParams.lanedescription;
62412
+ return (_a3 = this.dataEntity) == null ? void 0 : _a3.logicName;
62413
+ }
62077
62414
  async initControlService() {
62078
62415
  this.service = new KanbanService(this.model);
62079
62416
  await this.service.init(this.context);
@@ -62086,7 +62423,7 @@ var KanbanController = class extends DataViewControlController {
62086
62423
  this.state.selectGroupKey = "";
62087
62424
  this.state.readonly = !!(this.context.srfreadonly === true || this.context.srfreadonly === "true");
62088
62425
  this.state.draggable = this.enableEditOrder || this.enableEditGroup;
62089
- this.state.uaState = {};
62426
+ this.state.lanes = [];
62090
62427
  }
62091
62428
  /**
62092
62429
  * 初始化
@@ -62099,6 +62436,15 @@ var KanbanController = class extends DataViewControlController {
62099
62436
  await super.onCreated();
62100
62437
  this.setToolbarHooks();
62101
62438
  }
62439
+ /**
62440
+ * @description 执行分组
62441
+ * @param {IApiMDGroupParams[]} _arg
62442
+ * @param {IParams} [_params]
62443
+ * @returns {*} {Promise<void>}
62444
+ * @memberof KanbanController
62445
+ */
62446
+ async execGroup(_arg, _params) {
62447
+ }
62102
62448
  /**
62103
62449
  * 本地排序items
62104
62450
  * @author lxm
@@ -62106,19 +62452,32 @@ var KanbanController = class extends DataViewControlController {
62106
62452
  * @param {IData[]} items
62107
62453
  */
62108
62454
  sortItems(items) {
62455
+ var _a3;
62109
62456
  const sortField = this.model.minorSortAppDEFieldId;
62110
62457
  const { minorSortDir } = this.model;
62111
62458
  if (!sortField) {
62112
- throw new RuntimeModelError69(
62113
- this.model,
62459
+ this.state.draggable = false;
62460
+ ibiz.log.warn(
62114
62461
  ibiz.i18n.t("runtime.controller.control.kanban.sortingProperties")
62115
62462
  );
62463
+ return;
62116
62464
  }
62117
62465
  if (!minorSortDir) {
62118
- throw new RuntimeModelError69(
62119
- this.model,
62466
+ this.state.draggable = false;
62467
+ ibiz.log.warn(
62120
62468
  ibiz.i18n.t("runtime.controller.control.kanban.sortDirection")
62121
62469
  );
62470
+ return;
62471
+ }
62472
+ const sortFieldItem = (_a3 = this.dataEntity.appDEFields) == null ? void 0 : _a3.find(
62473
+ (_item) => _item.codeName === sortField
62474
+ );
62475
+ if (!sortFieldItem || !DataTypes6.isNumber(sortFieldItem.stdDataType)) {
62476
+ this.state.draggable = false;
62477
+ ibiz.log.warn(
62478
+ ibiz.i18n.t("runtime.controller.control.kanban.invalidSortType")
62479
+ );
62480
+ return;
62122
62481
  }
62123
62482
  const isAsc = minorSortDir === "ASC";
62124
62483
  items.forEach((item) => {
@@ -62141,43 +62500,9 @@ var KanbanController = class extends DataViewControlController {
62141
62500
  );
62142
62501
  }
62143
62502
  async afterLoad(args, items) {
62144
- var _a3;
62145
62503
  this.sortItems(this.state.items);
62146
62504
  super.afterLoad(args, items);
62147
- const actions = [];
62148
- (_a3 = this.model.dedataViewItems) == null ? void 0 : _a3.forEach((item) => {
62149
- if (item.itemType === "ACTIONITEM") {
62150
- if (item.deuiactionGroup && item.deuiactionGroup.uiactionGroupDetails) {
62151
- actions.push(...item.deuiactionGroup.uiactionGroupDetails);
62152
- }
62153
- }
62154
- });
62155
- if (actions && actions.length > 0) {
62156
- items.forEach((item) => {
62157
- const containerState = new ButtonContainerState();
62158
- actions.forEach((action) => {
62159
- const actionid = action.uiactionId;
62160
- if (actionid) {
62161
- const buttonState = new UIActionButtonState(
62162
- action.id,
62163
- this.context.srfappid,
62164
- actionid
62165
- );
62166
- containerState.addState(action.id, buttonState);
62167
- }
62168
- });
62169
- this.state.uaState[item.srfkey] = containerState;
62170
- });
62171
- }
62172
- items.forEach((item) => {
62173
- if (this.state.uaState[item.srfkey] && Object.keys(this.state.uaState[item.srfkey]).length > 0) {
62174
- this.state.uaState[item.srfkey].update(
62175
- this.context,
62176
- item.getOrigin(),
62177
- this.model.appDataEntityId
62178
- );
62179
- }
62180
- });
62505
+ this.handleLaneData();
62181
62506
  return items;
62182
62507
  }
62183
62508
  /**
@@ -62205,42 +62530,70 @@ var KanbanController = class extends DataViewControlController {
62205
62530
  super.onRowClick(data);
62206
62531
  }
62207
62532
  /**
62208
- * 点击新建时设置选中分组
62209
- *
62533
+ * @description 点击新建并设置设置选中分组
62210
62534
  * @param {MouseEvent} event
62211
- * @param {(string | number)} group
62535
+ * @param {(string | number)} group 分组
62536
+ * @param {IKanbanLane} [lane] 泳道
62212
62537
  * @memberof KanbanController
62213
62538
  */
62214
- onClickNew(event, group) {
62539
+ onClickNew(event, group, lane) {
62215
62540
  this.setSelectGroup(group);
62216
- super.onClickNew(event, group);
62541
+ const params = { ...this.params, srfgroup: group };
62542
+ if (lane)
62543
+ Object.assign(params, { srflane: lane.key });
62544
+ UIActionUtil.execAndResolved(
62545
+ "new",
62546
+ {
62547
+ context: this.context,
62548
+ params,
62549
+ data: [],
62550
+ view: this.view,
62551
+ ctrl: this,
62552
+ event
62553
+ },
62554
+ this.view.model.appId
62555
+ );
62217
62556
  }
62218
62557
  /**
62219
- * 分组工具栏需设置选中分组
62220
- *
62558
+ * @description 分组工具栏点击,需携带分组
62221
62559
  * @param {IUIActionGroupDetail} detail
62222
62560
  * @param {MouseEvent} event
62223
62561
  * @param {IKanbanGroupState} group
62224
- * @return {*} {Promise<void>}
62562
+ * @returns {*} {Promise<void>}
62225
62563
  * @memberof KanbanController
62226
62564
  */
62227
62565
  async onGroupToolbarClick(detail, event, group) {
62228
62566
  this.setSelectGroup(group.key);
62229
- super.onGroupToolbarClick(detail, event, group);
62567
+ const actionId = detail.uiactionId;
62568
+ const params = { ...this.params, srfgroup: group.key };
62569
+ await UIActionUtil.execAndResolved(
62570
+ actionId,
62571
+ {
62572
+ context: this.context,
62573
+ params,
62574
+ data: group.selectedData || [],
62575
+ view: this.view,
62576
+ ctrl: this,
62577
+ event
62578
+ },
62579
+ detail.appId
62580
+ );
62230
62581
  }
62231
62582
  /**
62232
- * 分组行为项点击,需携带分组标识
62233
- *
62583
+ * @description 分组行为项点击, 需携带分组(有泳道时携带泳道)
62234
62584
  * @param {IUIActionGroupDetail} detail
62235
62585
  * @param {IData} item
62236
62586
  * @param {MouseEvent} event
62237
62587
  * @param {IKanbanGroupState} group
62238
- * @return {*} {Promise<void>}
62588
+ * @param {IKanbanLane} [lane]
62589
+ * @returns {*} {Promise<void>}
62239
62590
  * @memberof KanbanController
62240
62591
  */
62241
- async onGroupActionClick(detail, item, event, group) {
62592
+ async onGroupActionClick(detail, item, event, group, lane) {
62242
62593
  this.setSelectGroup(group.key);
62243
62594
  const params = { ...this.params, srfgroup: group };
62595
+ if (lane)
62596
+ Object.assign(params, { srflane: lane.key });
62244
62597
  const actionId = detail.uiactionId;
62245
62598
  await UIActionUtil.execAndResolved(
62246
62599
  actionId,
@@ -62263,6 +62616,80 @@ var KanbanController = class extends DataViewControlController {
62263
62616
  }
62264
62617
  return super.handleDataGroup();
62265
62618
  }
62619
+ /**
62620
+ * @description 处理泳道数据
62621
+ * @returns {*} {Promise<void>}
62622
+ * @memberof KanbanController
62623
+ */
62624
+ async handleLaneData() {
62625
+ var _a3;
62626
+ const { swimlaneCodeListId, swimlaneAppDEFieldId } = this.model;
62627
+ if (!swimlaneAppDEFieldId)
62628
+ return;
62629
+ let lanes = [];
62630
+ const unclassified = {
62631
+ count: 0,
62632
+ key: void 0,
62633
+ isExpand: true,
62634
+ caption: ibiz.i18n.t("runtime.controller.common.md.unclassified")
62635
+ };
62636
+ const { items } = this.state;
62637
+ if (swimlaneCodeListId) {
62638
+ const app = ibiz.hub.getApp(this.context.srfappid);
62639
+ const codeListItems = await app.codeList.get(
62640
+ swimlaneCodeListId,
62641
+ this.context,
62642
+ this.params
62643
+ );
62644
+ lanes = codeListItems.map((item) => {
62645
+ var _a4;
62646
+ return {
62647
+ count: 0,
62648
+ isExpand: true,
62649
+ key: (_a4 = item.value) == null ? void 0 : _a4.toString(),
62650
+ caption: item.text
62651
+ };
62652
+ });
62653
+ items.forEach((item) => {
62654
+ const lane = lanes.find(
62655
+ (l) => {
62656
+ var _a4;
62657
+ return l.key === ((_a4 = item[swimlaneAppDEFieldId]) == null ? void 0 : _a4.toLowerCase());
62658
+ }
62659
+ );
62660
+ if (lane) {
62661
+ lane.count += 1;
62662
+ } else {
62663
+ unclassified.count += 1;
62664
+ }
62665
+ });
62666
+ } else {
62667
+ const deRss = (_a3 = this.dataEntity.minorAppDERSs) == null ? void 0 : _a3.find(
62668
+ (rss) => rss.parentAppDEFieldId === swimlaneAppDEFieldId
62669
+ );
62670
+ const textDEFieldId = (deRss == null ? void 0 : deRss.parentTextAppDEFieldId) || swimlaneAppDEFieldId;
62671
+ items.forEach((item) => {
62672
+ if (item[swimlaneAppDEFieldId]) {
62673
+ const lane = lanes.find((l) => l.key === item[swimlaneAppDEFieldId]);
62674
+ if (lane) {
62675
+ lane.count += 1;
62676
+ } else {
62677
+ lanes.push({
62678
+ count: 1,
62679
+ isExpand: true,
62680
+ key: item[swimlaneAppDEFieldId],
62681
+ caption: item[textDEFieldId]
62682
+ });
62683
+ }
62684
+ } else {
62685
+ unclassified.count += 1;
62686
+ }
62687
+ });
62688
+ }
62689
+ if (unclassified.count)
62690
+ lanes.push(unclassified);
62691
+ this.state.lanes = lanes;
62692
+ }
62266
62693
  /**
62267
62694
  * 处理代码表分组
62268
62695
  *
@@ -62311,7 +62738,6 @@ var KanbanController = class extends DataViewControlController {
62311
62738
  * @return {*} {Promise<void>}
62312
62739
  */
62313
62740
  async onDragChange(info) {
62314
- var _a3;
62315
62741
  if (!this.enableEditGroup) {
62316
62742
  if (info.from !== info.to) {
62317
62743
  ibiz.message.warning(
@@ -62320,24 +62746,32 @@ var KanbanController = class extends DataViewControlController {
62320
62746
  return;
62321
62747
  }
62322
62748
  }
62323
- const { from, to, fromIndex, toIndex } = info;
62324
- const groupField = this.model.groupAppDEFieldId;
62325
- const sortField = this.model.minorSortAppDEFieldId;
62749
+ const { from, to, fromIndex, toIndex, fromLane, toLane } = info;
62750
+ const {
62751
+ groupAppDEFieldId,
62752
+ minorSortAppDEFieldId,
62753
+ moveControlAction,
62754
+ laneAppDEFieldId = "testname"
62755
+ } = this.model;
62756
+ const groupField = groupAppDEFieldId;
62757
+ const sortField = minorSortAppDEFieldId;
62326
62758
  const fromGroup = this.state.groups.find((x) => x.key === from);
62327
62759
  const toGroup = this.state.groups.find((x) => x.key === to);
62328
62760
  if (!this.enableEditOrder) {
62329
- if (info.from === info.to) {
62761
+ if (from === to && fromLane === toLane) {
62330
62762
  ibiz.message.warning(
62331
62763
  ibiz.i18n.t("runtime.controller.control.kanban.noAllowReorder")
62332
62764
  );
62333
62765
  return;
62334
62766
  }
62335
62767
  const draggedItem2 = fromGroup.children[fromIndex];
62336
- draggedItem2[groupField] = info.to;
62768
+ draggedItem2[groupField] = to;
62769
+ if (laneAppDEFieldId)
62770
+ draggedItem2[laneAppDEFieldId] = toLane;
62337
62771
  return this.updateChangedItems([draggedItem2]);
62338
62772
  }
62339
62773
  const originArr = [...toGroup.children];
62340
- const moveAction = (_a3 = this.model.moveControlAction) == null ? void 0 : _a3.appDEMethodId;
62774
+ const moveAction = moveControlAction == null ? void 0 : moveControlAction.appDEMethodId;
62341
62775
  if (!moveAction) {
62342
62776
  throw new RuntimeModelError69(
62343
62777
  this.model,
@@ -62379,7 +62813,7 @@ var KanbanController = class extends DataViewControlController {
62379
62813
  }
62380
62814
  return moveData;
62381
62815
  };
62382
- const draggedItem = clone45(fromGroup.children[fromIndex]);
62816
+ const draggedItem = clone46(fromGroup.children[fromIndex]);
62383
62817
  const removeItems = fromGroup.children.splice(fromIndex, 1);
62384
62818
  toGroup.children.splice(toIndex, 0, ...removeItems);
62385
62819
  if (info.from !== info.to) {
@@ -62654,7 +63088,7 @@ import {
62654
63088
  awaitTimeout as awaitTimeout3,
62655
63089
  recursiveIterate as recursiveIterate12
62656
63090
  } from "@ibiz-template/core";
62657
- import { clone as clone46 } from "ramda";
63091
+ import { clone as clone47 } from "ramda";
62658
63092
 
62659
63093
  // src/controller/control/tree-grid-ex/tree-grid-ex.service.ts
62660
63094
  var TreeGridExService = class extends TreeService {
@@ -63206,7 +63640,7 @@ var TreeGridExController = class extends TreeController {
63206
63640
  );
63207
63641
  }
63208
63642
  if (row.data._deData.srfuf === 1 /* UPDATE */) {
63209
- row.cacheData = clone46(row.data);
63643
+ row.cacheData = clone47(row.data);
63210
63644
  const defaultVal = this.calcDefaultValue(row.data, false);
63211
63645
  Object.assign(row.data, defaultVal);
63212
63646
  }
@@ -63389,11 +63823,11 @@ var TreeGridExColumnController = class {
63389
63823
 
63390
63824
  // src/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.ts
63391
63825
  import {
63392
- DataTypes as DataTypes6,
63826
+ DataTypes as DataTypes7,
63393
63827
  RuntimeError as RuntimeError62,
63394
63828
  RuntimeModelError as RuntimeModelError71
63395
63829
  } from "@ibiz-template/core";
63396
- import { clone as clone47 } from "ramda";
63830
+ import { clone as clone48 } from "ramda";
63397
63831
  import dayjs8 from "dayjs";
63398
63832
  var TreeGridExNodeColumnController = class {
63399
63833
  /**
@@ -63601,7 +64035,7 @@ var TreeGridExNodeColumnController = class {
63601
64035
  srfkey: value,
63602
64036
  ...wfContext
63603
64037
  });
63604
- const tempParams = clone47(this.params);
64038
+ const tempParams = clone48(this.params);
63605
64039
  const { userParam } = this.nodeColumn;
63606
64040
  if (userParam) {
63607
64041
  const { navigateContexts, navigateParams } = parseUserParams(userParam);
@@ -63690,7 +64124,7 @@ var TreeGridExNodeColumnController = class {
63690
64124
  if (!this.valueFormat) {
63691
64125
  return strVal;
63692
64126
  }
63693
- const isDate = DataTypes6.isDate(this.dataType);
64127
+ const isDate = DataTypes7.isDate(this.dataType);
63694
64128
  if (isDate || this.fieldColumn.name === "createdate") {
63695
64129
  const formatVal = dayjs8(strVal).format(this.valueFormat);
63696
64130
  if (formatVal !== "Invalid Date") {
@@ -66070,7 +66504,7 @@ var ThemeUtil = class {
66070
66504
  * @memberof ThemeUtil
66071
66505
  */
66072
66506
  async loadTheme(theme, type = "COLOR") {
66073
- const data = clone48(theme.themeParams || {});
66507
+ const data = clone49(theme.themeParams || {});
66074
66508
  const path2 = data["theme-package-path"] || theme.themeUrl;
66075
66509
  delete data.appId;
66076
66510
  delete data["theme-package-path"];
@@ -66718,8 +67152,8 @@ var baseStyle = {
66718
67152
  position: "fixed",
66719
67153
  zIndex: "10000"
66720
67154
  };
66721
- function cloneElement(clone54, teleport = document.body, isRemoveChild = true) {
66722
- const element = getAnimationElement(clone54);
67155
+ function cloneElement(clone55, teleport = document.body, isRemoveChild = true) {
67156
+ const element = getAnimationElement(clone55);
66723
67157
  if (element == null) {
66724
67158
  throw new Error(ibiz.i18n.t("runtime.utils.anime.noClone"));
66725
67159
  }
@@ -67138,11 +67572,11 @@ function arrayContains(arr, val) {
67138
67572
  });
67139
67573
  }
67140
67574
  function cloneObject(o) {
67141
- var clone54 = {};
67575
+ var clone55 = {};
67142
67576
  for (var p in o) {
67143
- clone54[p] = o[p];
67577
+ clone55[p] = o[p];
67144
67578
  }
67145
- return clone54;
67579
+ return clone55;
67146
67580
  }
67147
67581
  function replaceObjectProps(o1, o2) {
67148
67582
  var o = cloneObject(o1);
@@ -68725,7 +69159,7 @@ var ShortCutUtil = class {
68725
69159
  };
68726
69160
 
68727
69161
  // src/utils/bi-report-util/bi-report-util.ts
68728
- import { clone as clone49 } from "ramda";
69162
+ import { clone as clone50 } from "ramda";
68729
69163
  import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
68730
69164
  var BIReportUtil = class {
68731
69165
  /**
@@ -68741,7 +69175,7 @@ var BIReportUtil = class {
68741
69175
  async openDesignPage(context, params, data) {
68742
69176
  if (!data.mode)
68743
69177
  data.mode = "DATA";
68744
- const tempContext = clone49(context);
69178
+ const tempContext = clone50(context);
68745
69179
  let config = {};
68746
69180
  if (data.mode === "DATA") {
68747
69181
  const app = ibiz.hub.getApp(ibiz.env.appId);
@@ -69408,7 +69842,7 @@ var RecordNavUtil = class {
69408
69842
 
69409
69843
  // src/utils/jsonschema-util/jsonschema-util.ts
69410
69844
  import qs5 from "qs";
69411
- import { clone as clone50 } from "ramda";
69845
+ import { clone as clone51 } from "ramda";
69412
69846
  var JsonSchemaUtil = class {
69413
69847
  constructor() {
69414
69848
  /**
@@ -69661,7 +70095,7 @@ var JsonSchemaUtil = class {
69661
70095
  getMockEditor(context, item, valueOP) {
69662
70096
  if (valueOP && this.excludeOPs.includes(valueOP))
69663
70097
  return;
69664
- const baseMockEditor = clone50(this.DataTypeToEditor[item.type]);
70098
+ const baseMockEditor = clone51(this.DataTypeToEditor[item.type]);
69665
70099
  if (!baseMockEditor)
69666
70100
  return;
69667
70101
  baseMockEditor.appId = context.srfappid;
@@ -73837,7 +74271,7 @@ async function getDeDataMajorField(data, context, appDataEntityId) {
73837
74271
 
73838
74272
  // src/command/app/open-app-view/open-app-view.ts
73839
74273
  import { ModelError as ModelError30, RuntimeError as RuntimeError69 } from "@ibiz-template/core";
73840
- import { clone as clone51 } from "ramda";
74274
+ import { clone as clone52 } from "ramda";
73841
74275
  var _OpenAppViewCommand = class _OpenAppViewCommand {
73842
74276
  constructor() {
73843
74277
  ibiz.commands.register(_OpenAppViewCommand.TAG, this.exec.bind(this));
@@ -73854,7 +74288,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
73854
74288
  * @return {*} {(Promise<IModalData | void>)}
73855
74289
  */
73856
74290
  async exec(appViewId, _context, params = {}, opts = {}) {
73857
- const context = clone51(_context);
74291
+ const context = clone52(_context);
73858
74292
  if (context.srfsimple) {
73859
74293
  delete context.srfsimple;
73860
74294
  }
@@ -74606,7 +75040,7 @@ import { QXEvent as QXEvent14 } from "qx-util";
74606
75040
 
74607
75041
  // src/controller/notification/async-action.controller.ts
74608
75042
  import { QXEvent as QXEvent12 } from "qx-util";
74609
- import { clone as clone52 } from "ramda";
75043
+ import { clone as clone53 } from "ramda";
74610
75044
  import { isNil as isNil38, isNumber as isNumber4 } from "lodash-es";
74611
75045
  import dayjs9 from "dayjs";
74612
75046
  var AsyncActionController = class {
@@ -74717,7 +75151,7 @@ var AsyncActionController = class {
74717
75151
  } else {
74718
75152
  this.noticeResult(action);
74719
75153
  }
74720
- this.evt.emit("add", clone52(action));
75154
+ this.evt.emit("add", clone53(action));
74721
75155
  this.evt.emit("dataChange");
74722
75156
  }
74723
75157
  /**
@@ -74739,7 +75173,7 @@ var AsyncActionController = class {
74739
75173
  }
74740
75174
  this.noticeResult(action);
74741
75175
  }
74742
- this.evt.emit("change", clone52(action));
75176
+ this.evt.emit("change", clone53(action));
74743
75177
  this.evt.emit("dataChange");
74744
75178
  }
74745
75179
  noticeResult(action) {
@@ -75865,7 +76299,7 @@ var EngineFactory = class {
75865
76299
  import {
75866
76300
  RuntimeError as RuntimeError73,
75867
76301
  findRecursiveChild as findRecursiveChild3,
75868
- IBizContext as IBizContext8
76302
+ IBizContext as IBizContext9
75869
76303
  } from "@ibiz-template/core";
75870
76304
  import qs6 from "qs";
75871
76305
  var ViewEngineBase = class {
@@ -76196,7 +76630,7 @@ var ViewEngineBase = class {
76196
76630
  caption,
76197
76631
  icon: model.sysImage,
76198
76632
  appViewId: model.id,
76199
- context: IBizContext8.create(context),
76633
+ context: IBizContext9.create(context),
76200
76634
  params: { ...params },
76201
76635
  openMode: modal.mode,
76202
76636
  fullPath: window.location.hash
@@ -76392,7 +76826,7 @@ var ViewEngineBase = class {
76392
76826
 
76393
76827
  // src/engine/md-view.engine.ts
76394
76828
  import { RuntimeModelError as RuntimeModelError74 } from "@ibiz-template/core";
76395
- import { clone as clone53 } from "ramda";
76829
+ import { clone as clone54 } from "ramda";
76396
76830
  var MDViewEngine = class extends ViewEngineBase {
76397
76831
  /**
76398
76832
  * 多数据部件名称
@@ -76671,7 +77105,7 @@ var MDViewEngine = class extends ViewEngineBase {
76671
77105
  ibiz.i18n.t("runtime.engine.logicNewdata")
76672
77106
  );
76673
77107
  }
76674
- const params = clone53(this.view.params);
77108
+ const params = clone54(this.view.params);
76675
77109
  if (copyMode) {
76676
77110
  params.srfcopymode = copyMode;
76677
77111
  }
@@ -78813,7 +79247,8 @@ var en = {
78813
79247
  sortDirection: "Sort direction is not configured",
78814
79248
  groupedOn: "Kanban components must be grouped on",
78815
79249
  adjustmentsGroup: "The current Kanban does not allow adjustments to the grouping!",
78816
- noAllowReorder: "Current Kanban does not allow reordering!"
79250
+ noAllowReorder: "Current Kanban does not allow reordering!",
79251
+ invalidSortType: "Sorting property is not a numeric type"
78817
79252
  },
78818
79253
  meditViewPanel: {
78819
79254
  DraftNew: "Draft - New",
@@ -79460,7 +79895,8 @@ var zhCn = {
79460
79895
  sortDirection: "\u6392\u5E8F\u65B9\u5411\u6CA1\u914D\u7F6E",
79461
79896
  groupedOn: "\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4",
79462
79897
  adjustmentsGroup: "\u5F53\u524D\u770B\u677F\u4E0D\u5141\u8BB8\u8C03\u6574\u5206\u7EC4\uFF01",
79463
- noAllowReorder: "\u5F53\u524D\u770B\u677F\u4E0D\u5141\u8BB8\u8C03\u6574\u6B21\u5E8F\uFF01"
79898
+ noAllowReorder: "\u5F53\u524D\u770B\u677F\u4E0D\u5141\u8BB8\u8C03\u6574\u6B21\u5E8F\uFF01",
79899
+ invalidSortType: "\u6392\u5E8F\u5C5E\u6027\u4E0D\u662F\u6570\u503C\u7C7B\u578B"
79464
79900
  },
79465
79901
  meditViewPanel: {
79466
79902
  DraftNew: "\u8349\u7A3F--\u65B0\u5EFA",
@@ -79976,11 +80412,14 @@ export {
79976
80412
  AppMenuController,
79977
80413
  AppMenuIconViewController,
79978
80414
  Application,
80415
+ AreaSeriesGenerator,
79979
80416
  AsyncActionService,
79980
80417
  AuthorityService,
79981
80418
  BIReportUtil,
79982
80419
  BackendUIActionProvider,
80420
+ BarSeriesGenerator,
79983
80421
  BaseController,
80422
+ BaseSeriesGenerator,
79984
80423
  BrowserPlatformProvider,
79985
80424
  ButtonContainerState,
79986
80425
  CONTROL_PROVIDER_PREFIX,
@@ -79990,10 +80429,12 @@ export {
79990
80429
  CalendarExpBarController,
79991
80430
  CalendarItemData,
79992
80431
  CalendarService,
80432
+ CandlestickSeriesGenerator,
79993
80433
  CaptionBarController,
79994
80434
  ChartController,
79995
80435
  ChartData,
79996
80436
  ChartExpBarController,
80437
+ ChartOptionsGenerator3 as ChartOptionsGenerator,
79997
80438
  ChartPortletController,
79998
80439
  ChartService,
79999
80440
  CodeListDataItem,
@@ -80069,12 +80510,14 @@ export {
80069
80510
  FormTabPanelController,
80070
80511
  FormTabPanelState,
80071
80512
  FrontUIActionProvider,
80513
+ FunnelSeriesGenerator,
80072
80514
  GRIDCOLUMN_PROVIDER_PREFIX,
80073
80515
  GanttCodeListNodeData,
80074
80516
  GanttController,
80075
80517
  GanttDataSetNodeData,
80076
80518
  GanttService,
80077
80519
  GanttStaticNodeData,
80520
+ GaugeSeriesGenerator,
80078
80521
  GridColumnController,
80079
80522
  GridController,
80080
80523
  GridFieldColumnController,
@@ -80095,6 +80538,7 @@ export {
80095
80538
  KanbanController,
80096
80539
  KanbanService,
80097
80540
  LayoutPanelUtil,
80541
+ LineSeriesGenerator,
80098
80542
  ListController,
80099
80543
  ListPortletController,
80100
80544
  ListService,
@@ -80132,13 +80576,16 @@ export {
80132
80576
  PanelItemState,
80133
80577
  PanelNotifyState,
80134
80578
  PickupViewPanelController,
80579
+ PieSeriesGenerator,
80135
80580
  PlatformProviderBase,
80136
80581
  PlatformType,
80137
80582
  PluginStaticResource,
80138
80583
  PortletPartController,
80139
80584
  PortletPartState,
80585
+ PredefinedControlRender,
80140
80586
  PresetIdentifier,
80141
80587
  QXEventEx,
80588
+ RadarSeriesGenerator,
80142
80589
  RawItemPortletController,
80143
80590
  RawValueUtil,
80144
80591
  RecordNavUtil,
@@ -80148,6 +80595,7 @@ export {
80148
80595
  ReportPanelService,
80149
80596
  ReportPortletController,
80150
80597
  RouteConst,
80598
+ ScatterSeriesGenerator,
80151
80599
  ScriptFactory,
80152
80600
  ScriptFunction,
80153
80601
  SearchBarController,