@ibiz-template/runtime 0.7.41-alpha.93 → 0.7.41-alpha.95

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 (36) hide show
  1. package/dist/index.esm.js +217 -104
  2. package/dist/index.system.min.js +1 -1
  3. package/out/controller/control/dashboard/dashboard.controller.d.ts +6 -0
  4. package/out/controller/control/dashboard/dashboard.controller.d.ts.map +1 -1
  5. package/out/controller/control/dashboard/dashboard.controller.js +16 -0
  6. package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts.map +1 -1
  7. package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.js +4 -8
  8. package/out/controller/control/form/form-detail/form-button/form-button.controller.d.ts.map +1 -1
  9. package/out/controller/control/form/form-detail/form-button/form-button.controller.js +8 -0
  10. package/out/controller/control/search-bar/search-bar-filter.controller.d.ts +2 -2
  11. package/out/controller/control/search-bar/search-bar-filter.controller.d.ts.map +1 -1
  12. package/out/controller/control/search-bar/search-bar.controller.d.ts +29 -40
  13. package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
  14. package/out/controller/control/search-bar/search-bar.controller.js +35 -40
  15. package/out/interface/api/controller/control/i-api-drbar.controller.d.ts +10 -2
  16. package/out/interface/api/controller/control/i-api-drbar.controller.d.ts.map +1 -1
  17. package/out/interface/api/controller/control/i-api-drtab.controller.d.ts +1 -1
  18. package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts +50 -1
  19. package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts.map +1 -1
  20. package/out/interface/api/controller/control/index.d.ts +1 -1
  21. package/out/interface/api/controller/control/index.d.ts.map +1 -1
  22. package/out/interface/api/util/i-api-app-util.d.ts +7 -0
  23. package/out/interface/api/util/i-api-app-util.d.ts.map +1 -1
  24. package/out/locale/en/index.d.ts +17 -0
  25. package/out/locale/en/index.d.ts.map +1 -1
  26. package/out/locale/en/index.js +17 -0
  27. package/out/locale/zh-CN/index.d.ts +17 -0
  28. package/out/locale/zh-CN/index.d.ts.map +1 -1
  29. package/out/locale/zh-CN/index.js +17 -0
  30. package/out/model/utils/util.d.ts +2 -4
  31. package/out/model/utils/util.d.ts.map +1 -1
  32. package/out/model/utils/util.js +11 -1
  33. package/out/utils/jsonschema-util/jsonschema-util.d.ts +4 -6
  34. package/out/utils/jsonschema-util/jsonschema-util.d.ts.map +1 -1
  35. package/out/utils/jsonschema-util/jsonschema-util.js +71 -25
  36. package/package.json +2 -2
package/dist/index.esm.js CHANGED
@@ -20796,7 +20796,13 @@ function getPFPlugin(id, appId2) {
20796
20796
  function getControlPanel(control) {
20797
20797
  let layoutPanel;
20798
20798
  if (control.controlRenders) {
20799
- const panelRender = control.controlRenders.find(
20799
+ let { controlRenders } = control;
20800
+ if (controlRenders && controlRenders.length > 0 && control.controlType === "DASHBOARD") {
20801
+ controlRenders = controlRenders.filter(
20802
+ (item) => !(item.id.endsWith("_header") || item.id.endsWith("_header_caption") || item.id.endsWith("_header_bg") || item.id.endsWith("_header_action"))
20803
+ );
20804
+ }
20805
+ const panelRender = controlRenders.find(
20800
20806
  (item) => item.renderType === "LAYOUTPANEL" && !!item.layoutPanel && !Object.values(PredefinedControlRender).includes(
20801
20807
  item.id
20802
20808
  )
@@ -39088,6 +39094,7 @@ var CaptionBarController = class extends ControlController {
39088
39094
 
39089
39095
  // src/controller/control/dashboard/dashboard.controller.ts
39090
39096
  import { clone as clone20 } from "ramda";
39097
+ import { recursiveIterate as recursiveIterate4 } from "@ibiz-template/core";
39091
39098
 
39092
39099
  // src/controller/control/dashboard/dashboard.util.ts
39093
39100
  import { clone as clone19 } from "ramda";
@@ -39769,6 +39776,25 @@ var DashboardController = class extends ControlController {
39769
39776
  getPortlet(type, id) {
39770
39777
  return this.portlets[id];
39771
39778
  }
39779
+ /**
39780
+ * @description 转换各类多语言
39781
+ * @protected
39782
+ * @memberof IDashboardController
39783
+ */
39784
+ convertMultipleLanguages() {
39785
+ recursiveIterate4(
39786
+ this.model,
39787
+ (item) => {
39788
+ var _a3;
39789
+ if ((_a3 = item.titleLanguageRes) == null ? void 0 : _a3.lanResTag) {
39790
+ item.title = ibiz.i18n.t(item.titleLanguageRes.lanResTag, item.title);
39791
+ }
39792
+ },
39793
+ {
39794
+ childrenFields: ["controls"]
39795
+ }
39796
+ );
39797
+ }
39772
39798
  };
39773
39799
 
39774
39800
  // src/controller/control/dashboard/custom-dashboard.controller.ts
@@ -40212,7 +40238,7 @@ var PortletPartController = class {
40212
40238
  */
40213
40239
  async onInit() {
40214
40240
  this.onDataChange = this.onDataChange.bind(this);
40215
- const { layoutPos, sysCss, title, titleLanguageRes } = this.model;
40241
+ const { layoutPos, sysCss, title } = this.model;
40216
40242
  if (layoutPos) {
40217
40243
  const { width, height } = calcLayoutHeightWidth(this.model);
40218
40244
  this.state.layout.width = "".concat(width);
@@ -40221,7 +40247,7 @@ var PortletPartController = class {
40221
40247
  if (sysCss == null ? void 0 : sysCss.cssName) {
40222
40248
  this.state.class.container.push(sysCss.cssName);
40223
40249
  }
40224
- this.state.title = (titleLanguageRes == null ? void 0 : titleLanguageRes.lanResTag) ? ibiz.i18n.t(titleLanguageRes.lanResTag, title) : title;
40250
+ this.state.title = title;
40225
40251
  this.config = { srftitle: this.state.title };
40226
40252
  Object.assign(this.params, this.config);
40227
40253
  await this.initUIActions();
@@ -40296,9 +40322,9 @@ var PortletPartController = class {
40296
40322
  * @memberof PortletPartController
40297
40323
  */
40298
40324
  resetConfig() {
40299
- const { title, titleLanguageRes } = this.model;
40325
+ const { title } = this.model;
40300
40326
  this.params = new IBizParams2({}, this.dashboard.params);
40301
- this.state.title = (titleLanguageRes == null ? void 0 : titleLanguageRes.lanResTag) ? ibiz.i18n.t(titleLanguageRes.lanResTag, title) : title;
40327
+ this.state.title = title;
40302
40328
  this.config = { srftitle: this.state.title };
40303
40329
  Object.assign(this.params, this.config);
40304
40330
  }
@@ -40638,10 +40664,10 @@ var ReportPortletController = class extends PortletPartController {
40638
40664
  };
40639
40665
 
40640
40666
  // src/controller/control/dashboard/portlet/filter-portlet/filter-portlet.controller.ts
40641
- import { recursiveIterate as recursiveIterate6 } from "@ibiz-template/core";
40667
+ import { recursiveIterate as recursiveIterate7 } from "@ibiz-template/core";
40642
40668
 
40643
40669
  // src/controller/control/search-bar/search-bar.controller.ts
40644
- import { mergeInLeft, recursiveIterate as recursiveIterate5 } from "@ibiz-template/core";
40670
+ import { mergeInLeft, recursiveIterate as recursiveIterate6 } from "@ibiz-template/core";
40645
40671
  import { clone as clone23 } from "ramda";
40646
40672
  import { isString as isString3 } from "lodash-es";
40647
40673
 
@@ -41278,7 +41304,7 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
41278
41304
  };
41279
41305
 
41280
41306
  // src/controller/control/search-bar/interface-util.ts
41281
- import { recursiveIterate as recursiveIterate4 } from "@ibiz-template/core";
41307
+ import { recursiveIterate as recursiveIterate5 } from "@ibiz-template/core";
41282
41308
  import { isNil as isNil17 } from "ramda";
41283
41309
  function getOriginFilterNodes() {
41284
41310
  return [
@@ -41295,7 +41321,7 @@ function validateFilterNodes(filterNodes) {
41295
41321
  const result = { pass: false };
41296
41322
  let hasFilter = false;
41297
41323
  let hasError = false;
41298
- recursiveIterate4(filterNodes[0], (node) => {
41324
+ recursiveIterate5(filterNodes[0], (node) => {
41299
41325
  if (hasError) {
41300
41326
  return;
41301
41327
  }
@@ -41816,31 +41842,26 @@ var SearchBarController = class extends ControlController {
41816
41842
  }
41817
41843
  }
41818
41844
  /**
41819
- * 处理输入
41845
+ * @description 处理快速搜索值输入
41820
41846
  * @param {string} val
41821
- * @return {*}
41822
- * @author: zhujiamin
41823
- * @Date: 2023-06-01 18:08:07
41847
+ * @memberof SearchBarController
41824
41848
  */
41825
41849
  handleInput(val) {
41826
41850
  this.state.query = val;
41827
41851
  }
41828
41852
  /**
41829
- * 处理搜索
41830
- * @return {*}
41831
- * @author: zhujiamin
41832
- * @Date: 2023-06-01 18:08:18
41853
+ * @description 搜索
41854
+ * @memberof SearchBarController
41833
41855
  */
41834
41856
  onSearch() {
41835
41857
  this.evt.emit("onSearch", void 0);
41836
41858
  }
41837
41859
  /**
41838
- * 找到过滤项控制器
41839
- * @author lxm
41840
- * @date 2024-02-04 11:29:31
41860
+ * @description 查找过滤项控制器
41841
41861
  * @param {(string | null)} fieldName
41842
41862
  * @param {(string | null)} valueOP
41843
- * @return {*} {(SearchBarFilterController | undefined)}
41863
+ * @returns {*} {(SearchBarFilterController | undefined)}
41864
+ * @memberof SearchBarController
41844
41865
  */
41845
41866
  findFilterController(fieldName, valueOP) {
41846
41867
  return this.filterControllers.find((item) => {
@@ -41851,10 +41872,9 @@ var SearchBarController = class extends ControlController {
41851
41872
  });
41852
41873
  }
41853
41874
  /**
41854
- * 获取搜索栏的过滤参数(包括快速搜索,快速分组和过滤器的参数)
41855
- * @author lxm
41856
- * @date 2023-10-16 03:54:07
41857
- * @return {*} {IParams}
41875
+ * @description 获取搜索栏当前的过滤条件参数
41876
+ * @returns {*} {IParams}
41877
+ * @memberof SearchBarController
41858
41878
  */
41859
41879
  getFilterParams() {
41860
41880
  var _a3, _b2, _c;
@@ -41888,9 +41908,8 @@ var SearchBarController = class extends ControlController {
41888
41908
  return params;
41889
41909
  }
41890
41910
  /**
41891
- * 重置过滤器
41892
- * @author lxm
41893
- * @date 2023-10-16 03:52:44
41911
+ * @description 重置
41912
+ * @memberof SearchBarController
41894
41913
  */
41895
41914
  resetFilter() {
41896
41915
  this.state.filterNodes = getOriginFilterNodes();
@@ -42159,10 +42178,9 @@ var SearchBarController = class extends ControlController {
42159
42178
  }
42160
42179
  }
42161
42180
  /**
42162
- * 点击默认选中
42163
- * @return {*}
42164
- * @author: zhujiamin
42165
- * @Date: 2024-01-24 11:12:43
42181
+ * @description 设置默认选中
42182
+ * @returns {*} {void}
42183
+ * @memberof SearchBarController
42166
42184
  */
42167
42185
  setDefaultSelect() {
42168
42186
  var _a3;
@@ -42191,10 +42209,9 @@ var SearchBarController = class extends ControlController {
42191
42209
  }
42192
42210
  }
42193
42211
  /**
42194
- * 处理保存
42195
- * @return {*}
42196
- * @author: zhujiamin
42197
- * @Date: 2023-12-19 16:17:15
42212
+ * @description 处理后台分组保存
42213
+ * @returns {*} {Promise<void>}
42214
+ * @memberof SearchBarController
42198
42215
  */
42199
42216
  async handleSave() {
42200
42217
  if (this.grid && this.state.selectedSearchGroupItem) {
@@ -42258,10 +42275,10 @@ var SearchBarController = class extends ControlController {
42258
42275
  }
42259
42276
  }
42260
42277
  /**
42261
- * 处理点击后台分组
42262
- * @return {*}
42263
- * @author: zhujiamin
42264
- * @Date: 2023-12-21 10:29:24
42278
+ * @description 处理点击后台分组
42279
+ * @param {IBackendSearchBarGroup} groupItem
42280
+ * @returns {*} {Promise<void>}
42281
+ * @memberof SearchBarController
42265
42282
  */
42266
42283
  async handleGroupClick(groupItem) {
42267
42284
  var _a3, _b2;
@@ -42305,7 +42322,7 @@ var SearchBarController = class extends ControlController {
42305
42322
  this.state.customCond = "";
42306
42323
  this.state.filterMode = "default";
42307
42324
  }
42308
- recursiveIterate5(this.state.filterNodes[0], (node) => {
42325
+ recursiveIterate6(this.state.filterNodes[0], (node) => {
42309
42326
  if (node.nodeType === "FIELD") {
42310
42327
  if (node.field && node.valueOP && isString3(node.value) && ScriptValueRegex2.test(node.value)) {
42311
42328
  node.disabled = true;
@@ -42321,10 +42338,9 @@ var SearchBarController = class extends ControlController {
42321
42338
  }
42322
42339
  }
42323
42340
  /**
42324
- * 初始化高级搜索
42325
- * @author lxm
42326
- * @date 2024-04-11 11:44:10
42341
+ * @description 初始化高级搜索
42327
42342
  * @protected
42343
+ * @memberof SearchBarController
42328
42344
  */
42329
42345
  initAdvancedQuickSearch() {
42330
42346
  var _a3;
@@ -42345,9 +42361,8 @@ var SearchBarController = class extends ControlController {
42345
42361
  }
42346
42362
  }
42347
42363
  /**
42348
- * 计算快速搜索占位符
42349
- * @author lxm
42350
- * @date 2024-04-11 05:36:52
42364
+ * @description 计算快速搜索占位符
42365
+ * @memberof SearchBarController
42351
42366
  */
42352
42367
  calcQuickSearchPlaceHolder() {
42353
42368
  if (this.state.advancedQuickSearch) {
@@ -42365,7 +42380,7 @@ var SearchBarController = class extends ControlController {
42365
42380
  }
42366
42381
  }
42367
42382
  /**
42368
- * @description 切换分组
42383
+ * @description 切换后台分组项
42369
42384
  * @param {string} tabId
42370
42385
  * @memberof SearchBarController
42371
42386
  */
@@ -42445,13 +42460,19 @@ var SearchBarController = class extends ControlController {
42445
42460
  * @memberof SearchBarController
42446
42461
  */
42447
42462
  convertMultipleLanguages() {
42448
- const { searchBarGroups = [] } = this.model;
42463
+ const { searchBarGroups = [], searchBarFilters } = this.model;
42449
42464
  searchBarGroups.forEach((item) => {
42450
42465
  var _a3;
42451
42466
  if ((_a3 = item.capLanguageRes) == null ? void 0 : _a3.lanResTag) {
42452
42467
  item.caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
42453
42468
  }
42454
42469
  });
42470
+ searchBarFilters == null ? void 0 : searchBarFilters.forEach((item) => {
42471
+ var _a3;
42472
+ if ((_a3 = item.capLanguageRes) == null ? void 0 : _a3.lanResTag) {
42473
+ item.caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
42474
+ }
42475
+ });
42455
42476
  }
42456
42477
  };
42457
42478
 
@@ -42519,7 +42540,7 @@ var FilterPortletController = class extends PortletPartController {
42519
42540
  );
42520
42541
  if (modelSearchConds && modelSearchConds.length > 0) {
42521
42542
  const tempFieldSearchConds = [];
42522
- recursiveIterate6(
42543
+ recursiveIterate7(
42523
42544
  modelSearchConds[0],
42524
42545
  (item) => {
42525
42546
  if (item.condtype === "DEFIELD") {
@@ -44720,7 +44741,7 @@ import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
44720
44741
  import {
44721
44742
  RuntimeModelError as RuntimeModelError50,
44722
44743
  debounceAndAsyncMerge,
44723
- recursiveIterate as recursiveIterate7,
44744
+ recursiveIterate as recursiveIterate8,
44724
44745
  EntityError,
44725
44746
  RuntimeError as RuntimeError36
44726
44747
  } from "@ibiz-template/core";
@@ -45219,7 +45240,7 @@ var FormController = class extends ControlController {
45219
45240
  */
45220
45241
  initControlScheduler(logics = []) {
45221
45242
  const actualLogics = [...logics];
45222
- recursiveIterate7(
45243
+ recursiveIterate8(
45223
45244
  this.model,
45224
45245
  (item) => {
45225
45246
  if (item.controlLogics) {
@@ -45378,10 +45399,10 @@ var FormController = class extends ControlController {
45378
45399
  };
45379
45400
 
45380
45401
  // src/controller/control/form/search-form/search-form.service.ts
45381
- import { recursiveIterate as recursiveIterate9 } from "@ibiz-template/core";
45402
+ import { recursiveIterate as recursiveIterate10 } from "@ibiz-template/core";
45382
45403
 
45383
45404
  // src/controller/control/form/form/form.service.ts
45384
- import { recursiveIterate as recursiveIterate8 } from "@ibiz-template/core";
45405
+ import { recursiveIterate as recursiveIterate9 } from "@ibiz-template/core";
45385
45406
  import { clone as clone27, isNil as isNil19, isNotNil as isNotNil5 } from "ramda";
45386
45407
  var FormService = class extends ControlService {
45387
45408
  constructor() {
@@ -45405,7 +45426,7 @@ var FormService = class extends ControlService {
45405
45426
  */
45406
45427
  setDefault(data, context, params, type) {
45407
45428
  const { defaultData } = this.getLoadParams(params);
45408
- recursiveIterate8(
45429
+ recursiveIterate9(
45409
45430
  this.model,
45410
45431
  (item, parent) => {
45411
45432
  if (parent.detailType === "MDCTRL")
@@ -45464,7 +45485,7 @@ var FormService = class extends ControlService {
45464
45485
  */
45465
45486
  initUIDataMap() {
45466
45487
  super.initUIDataMap();
45467
- recursiveIterate8(
45488
+ recursiveIterate9(
45468
45489
  this.model,
45469
45490
  (item, parent) => {
45470
45491
  if (parent.detailType === "MDCTRL")
@@ -45547,7 +45568,7 @@ var SearchFormService = class extends FormService {
45547
45568
  * @date 2022-08-31 18:08:37
45548
45569
  */
45549
45570
  initUIDataMap() {
45550
- recursiveIterate9(
45571
+ recursiveIterate10(
45551
45572
  this.model,
45552
45573
  (item) => {
45553
45574
  if (item.detailType === "FORMITEM") {
@@ -46490,6 +46511,12 @@ var FormButtonController = class extends FormDetailController {
46490
46511
  async onInit() {
46491
46512
  super.onInit();
46492
46513
  await this.initActionStates();
46514
+ const { tooltip, tooltipLanguageRes, capLanguageRes } = this.model;
46515
+ if (tooltipLanguageRes == null ? void 0 : tooltipLanguageRes.lanResTag) {
46516
+ this.model.tooltip = ibiz.i18n.t(tooltipLanguageRes.lanResTag, tooltip);
46517
+ } else if (capLanguageRes == null ? void 0 : capLanguageRes.lanResTag) {
46518
+ this.model.tooltip = ibiz.i18n.t(capLanguageRes.lanResTag, tooltip);
46519
+ }
46493
46520
  }
46494
46521
  /**
46495
46522
  * 初始化界面行为按钮的状态
@@ -48320,7 +48347,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
48320
48347
  };
48321
48348
 
48322
48349
  // src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.ts
48323
- import { ModelError as ModelError21, recursiveIterate as recursiveIterate10 } from "@ibiz-template/core";
48350
+ import { ModelError as ModelError21, recursiveIterate as recursiveIterate11 } from "@ibiz-template/core";
48324
48351
  import { clone as clone29, isNil as isNil20 } from "ramda";
48325
48352
  var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
48326
48353
  constructor() {
@@ -48446,7 +48473,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
48446
48473
  * @memberof FormMDCtrlRepeaterController
48447
48474
  */
48448
48475
  convertMultipleLanguages() {
48449
- recursiveIterate10(
48476
+ recursiveIterate11(
48450
48477
  this.repeatedForm,
48451
48478
  (item) => {
48452
48479
  var _a3;
@@ -48614,7 +48641,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
48614
48641
  * @memberof FormMDCtrlRepeaterController
48615
48642
  */
48616
48643
  setDefaultValue(data, type) {
48617
- recursiveIterate10(
48644
+ recursiveIterate11(
48618
48645
  this.model,
48619
48646
  (item, parent) => {
48620
48647
  if (parent.detailType === "MDCTRL" && parent.id !== this.model.id)
@@ -49105,7 +49132,7 @@ import { clone as clone30, isNil as isNil21 } from "ramda";
49105
49132
 
49106
49133
  // src/controller/control/form/edit-form/edit-form.service.ts
49107
49134
  import {
49108
- recursiveIterate as recursiveIterate11,
49135
+ recursiveIterate as recursiveIterate12,
49109
49136
  RuntimeModelError as RuntimeModelError53
49110
49137
  } from "@ibiz-template/core";
49111
49138
  var EditFormService = class extends FormService {
@@ -49339,7 +49366,7 @@ var EditFormService = class extends FormService {
49339
49366
  // 向导预置
49340
49367
  "srfnextform"
49341
49368
  ];
49342
- recursiveIterate11(
49369
+ recursiveIterate12(
49343
49370
  this.model,
49344
49371
  (item, parent) => {
49345
49372
  if (parent.detailType === "MDCTRL") {
@@ -50485,7 +50512,7 @@ import {
50485
50512
  EntityError as EntityError2,
50486
50513
  awaitTimeout as awaitTimeout2,
50487
50514
  RuntimeError as RuntimeError40,
50488
- recursiveIterate as recursiveIterate12,
50515
+ recursiveIterate as recursiveIterate13,
50489
50516
  RuntimeModelError as RuntimeModelError55,
50490
50517
  mergeDefaultInLeft as mergeDefaultInLeft2,
50491
50518
  debounceAndAsyncMerge as debounceAndAsyncMerge2
@@ -51252,7 +51279,7 @@ var GridController = class extends MDControlController {
51252
51279
  */
51253
51280
  async initUIActions() {
51254
51281
  const asyncTasks = [];
51255
- recursiveIterate12(
51282
+ recursiveIterate13(
51256
51283
  this.model,
51257
51284
  (column) => {
51258
51285
  if (column.deuiactionGroup) {
@@ -51847,7 +51874,7 @@ var GridController = class extends MDControlController {
51847
51874
  */
51848
51875
  initControlScheduler(logics = []) {
51849
51876
  const actualLogics = [...logics];
51850
- recursiveIterate12(
51877
+ recursiveIterate13(
51851
51878
  this.model,
51852
51879
  (item) => {
51853
51880
  if (item.controlLogics) {
@@ -51868,7 +51895,7 @@ var GridController = class extends MDControlController {
51868
51895
  initColumnStates() {
51869
51896
  this.state.columnStates = [];
51870
51897
  if (this.state.columnStates.length === 0) {
51871
- recursiveIterate12(
51898
+ recursiveIterate13(
51872
51899
  this.model,
51873
51900
  (column) => {
51874
51901
  if (column.columnType !== "GROUPGRIDCOLUMN" && !(column.hiddenDataItem || column.hideMode === 2)) {
@@ -52518,7 +52545,7 @@ var GridController = class extends MDControlController {
52518
52545
  emptyText
52519
52546
  );
52520
52547
  }
52521
- recursiveIterate12(
52548
+ recursiveIterate13(
52522
52549
  this.model,
52523
52550
  (item) => {
52524
52551
  var _a3;
@@ -54398,7 +54425,7 @@ var ListController = class extends MDControlController {
54398
54425
  import {
54399
54426
  RuntimeError as RuntimeError42,
54400
54427
  recursiveExecute,
54401
- recursiveIterate as recursiveIterate13
54428
+ recursiveIterate as recursiveIterate14
54402
54429
  } from "@ibiz-template/core";
54403
54430
  import { AsyncSeriesHook as AsyncSeriesHook2 } from "qx-util";
54404
54431
 
@@ -55969,7 +55996,7 @@ var PanelController = class extends ControlController {
55969
55996
  }
55970
55997
  initControlScheduler(logics = []) {
55971
55998
  const actualLogics = [...logics];
55972
- recursiveIterate13(
55999
+ recursiveIterate14(
55973
56000
  this.model,
55974
56001
  (item) => {
55975
56002
  if (item.controlLogics) {
@@ -56988,7 +57015,7 @@ var TabExpPanelController = class extends ControlController {
56988
57015
  // src/controller/control/tree/tree.controller.ts
56989
57016
  import {
56990
57017
  RuntimeError as RuntimeError43,
56991
- recursiveIterate as recursiveIterate14,
57018
+ recursiveIterate as recursiveIterate15,
56992
57019
  RuntimeModelError as RuntimeModelError58
56993
57020
  } from "@ibiz-template/core";
56994
57021
  import { isNil as isNil27 } from "ramda";
@@ -57843,7 +57870,7 @@ var TreeController = class extends MDControlController {
57843
57870
  this.model.detreeNodes.forEach((node) => {
57844
57871
  var _a3, _b2;
57845
57872
  if ((_b2 = (_a3 = node.decontextMenu) == null ? void 0 : _a3.detoolbarItems) == null ? void 0 : _b2.length) {
57846
- recursiveIterate14(
57873
+ recursiveIterate15(
57847
57874
  node.decontextMenu,
57848
57875
  (item) => {
57849
57876
  const groupItem = item;
@@ -58031,7 +58058,7 @@ var TreeController = class extends MDControlController {
58031
58058
  if ((_a4 = contextMenu == null ? void 0 : contextMenu.detoolbarItems) == null ? void 0 : _a4.length) {
58032
58059
  let itemNum = 0;
58033
58060
  const items = [];
58034
- recursiveIterate14(
58061
+ recursiveIterate15(
58035
58062
  contextMenu,
58036
58063
  (item) => {
58037
58064
  if (item.itemType === "DEUIACTION") {
@@ -58155,7 +58182,7 @@ var TreeController = class extends MDControlController {
58155
58182
  */
58156
58183
  async afterLoadNodes(nodes) {
58157
58184
  this.state.items = [];
58158
- recursiveIterate14(
58185
+ recursiveIterate15(
58159
58186
  { _children: this.state.rootNodes },
58160
58187
  (node) => {
58161
58188
  this.state.items.push(node);
@@ -58391,7 +58418,7 @@ var TreeController = class extends MDControlController {
58391
58418
  */
58392
58419
  calcExpandedKeys(nodes) {
58393
58420
  let expandedKeys = [...this.state.expandedKeys];
58394
- recursiveIterate14(
58421
+ recursiveIterate15(
58395
58422
  { _children: nodes },
58396
58423
  (node) => {
58397
58424
  var _a3;
@@ -58482,7 +58509,7 @@ var TreeController = class extends MDControlController {
58482
58509
  */
58483
58510
  validateDrop(draggingNode, dropNode) {
58484
58511
  let state = true;
58485
- recursiveIterate14(
58512
+ recursiveIterate15(
58486
58513
  { _children: [draggingNode] },
58487
58514
  (node) => {
58488
58515
  if (node._id === dropNode._id) {
@@ -60853,7 +60880,7 @@ var KanbanController = class extends DataViewControlController {
60853
60880
  import {
60854
60881
  RuntimeError as RuntimeError47,
60855
60882
  awaitTimeout as awaitTimeout3,
60856
- recursiveIterate as recursiveIterate15,
60883
+ recursiveIterate as recursiveIterate16,
60857
60884
  RuntimeModelError as RuntimeModelError61
60858
60885
  } from "@ibiz-template/core";
60859
60886
  import { clone as clone40 } from "ramda";
@@ -61205,7 +61232,7 @@ var TreeGridExController = class extends TreeController {
61205
61232
  }
61206
61233
  async afterLoadNodes(nodes) {
61207
61234
  await super.afterLoadNodes(nodes);
61208
- recursiveIterate15(
61235
+ recursiveIterate16(
61209
61236
  { _children: nodes },
61210
61237
  (node) => {
61211
61238
  this.state.rows[node._uuid] = new TreeGridExRowState(node, this);
@@ -65996,7 +66023,7 @@ var ReportPanelController = class extends ControlController {
65996
66023
  import {
65997
66024
  awaitTimeout as awaitTimeout4,
65998
66025
  RuntimeError as RuntimeError50,
65999
- recursiveIterate as recursiveIterate16
66026
+ recursiveIterate as recursiveIterate17
66000
66027
  } from "@ibiz-template/core";
66001
66028
 
66002
66029
  // src/controller/control/gantt/gantt.service.ts
@@ -67042,7 +67069,7 @@ var GanttController = class extends TreeGridExController {
67042
67069
  break;
67043
67070
  case "NODEDATA":
67044
67071
  default:
67045
- recursiveIterate16(
67072
+ recursiveIterate17(
67046
67073
  { _children: this.state.rootNodes },
67047
67074
  (node) => {
67048
67075
  var _a3, _b2;
@@ -78805,30 +78832,6 @@ import qs5 from "qs";
78805
78832
  import { clone as clone58 } from "ramda";
78806
78833
  var JsonSchemaUtil = class {
78807
78834
  constructor() {
78808
- /**
78809
- * 值操作数组
78810
- *
78811
- * @author tony001
78812
- * @date 2024-07-25 00:07:57
78813
- * @private
78814
- */
78815
- this.valueOPArray = [
78816
- { valueOP: "EQ" /* EQ */, label: "\u7B49\u4E8E", sqlOP: "=" },
78817
- { valueOP: "NOTEQ" /* NOT_EQ */, label: "\u4E0D\u7B49\u4E8E", sqlOP: "<>" },
78818
- { valueOP: "GT" /* GT */, label: "\u5927\u4E8E", sqlOP: ">" },
78819
- { valueOP: "GTANDEQ" /* GT_AND_EQ */, label: "\u5927\u4E8E\u7B49\u4E8E", sqlOP: ">=" },
78820
- { valueOP: "LT" /* LT */, label: "\u5C0F\u4E8E", sqlOP: "<" },
78821
- { valueOP: "LTANDEQ" /* LT_AND_EQ */, label: "\u5C0F\u4E8E\u7B49\u4E8E", sqlOP: "<=" },
78822
- { valueOP: "ISNULL" /* IS_NULL */, label: "\u4E3A\u7A7A", sqlOP: "IS NULL" },
78823
- { valueOP: "ISNOTNULL" /* IS_NOT_NULL */, label: "\u975E\u7A7A", sqlOP: "IS NOT NULL" },
78824
- { valueOP: "IN" /* IN */, label: "\u5C5E\u4E8E", sqlOP: "IN" },
78825
- { valueOP: "NOTIN" /* NOT_IN */, label: "\u4E0D\u5C5E\u4E8E", sqlOP: "NOT IN" },
78826
- { valueOP: "LIKE" /* LIKE */, label: "\u6587\u672C\u5305\u542B", sqlOP: "LIKE" },
78827
- { valueOP: "LIFTLIKE" /* LIFT_LIKE */, label: "\u6587\u672C\u5DE6\u5305\u542B", sqlOP: "" },
78828
- { valueOP: "RIGHT_LIKE" /* RIGHT_LIKE */, label: "\u6587\u672C\u53F3\u5305\u542B", sqlOP: "" },
78829
- { valueOP: "EXISTS" /* EXISTS */, label: "\u5B58\u5728", sqlOP: "" },
78830
- { valueOP: "NOTEXISTS" /* NOT_EXISTS */, label: "\u4E0D\u5B58\u5728", sqlOP: "" }
78831
- ];
78832
78835
  /**
78833
78836
  * 数据类型映射操作符
78834
78837
  *
@@ -78953,6 +78956,81 @@ var JsonSchemaUtil = class {
78953
78956
  ["CHILD" /* CHILD */]: void 0
78954
78957
  };
78955
78958
  }
78959
+ /**
78960
+ * @description 获取值操作数组
78961
+ * @returns {*} {IData[]}
78962
+ * @memberof JsonSchemaUtil
78963
+ */
78964
+ getValueOPArray() {
78965
+ return [
78966
+ {
78967
+ valueOP: "EQ" /* EQ */,
78968
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.eq")
78969
+ },
78970
+ {
78971
+ valueOP: "NOTEQ" /* NOT_EQ */,
78972
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.not_eq")
78973
+ },
78974
+ {
78975
+ valueOP: "GT" /* GT */,
78976
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.gt")
78977
+ },
78978
+ {
78979
+ valueOP: "GTANDEQ" /* GT_AND_EQ */,
78980
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.gt_and_eq")
78981
+ },
78982
+ {
78983
+ valueOP: "LT" /* LT */,
78984
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.lt")
78985
+ },
78986
+ {
78987
+ valueOP: "LTANDEQ" /* LT_AND_EQ */,
78988
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.lt_and_eq")
78989
+ },
78990
+ {
78991
+ valueOP: "ISNULL" /* IS_NULL */,
78992
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.is_null")
78993
+ },
78994
+ {
78995
+ valueOP: "ISNOTNULL" /* IS_NOT_NULL */,
78996
+ label: ibiz.i18n.t(
78997
+ "runtime.controller.utils.jsonSchemaUtil.is_not_null"
78998
+ )
78999
+ },
79000
+ {
79001
+ valueOP: "IN" /* IN */,
79002
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.in")
79003
+ },
79004
+ {
79005
+ valueOP: "NOTIN" /* NOT_IN */,
79006
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.not_in")
79007
+ },
79008
+ {
79009
+ valueOP: "LIKE" /* LIKE */,
79010
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.like")
79011
+ },
79012
+ {
79013
+ valueOP: "LIFTLIKE" /* LIFT_LIKE */,
79014
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.lift_like")
79015
+ },
79016
+ {
79017
+ valueOP: "RIGHT_LIKE" /* RIGHT_LIKE */,
79018
+ label: ibiz.i18n.t(
79019
+ "runtime.controller.utils.jsonSchemaUtil.right_like"
79020
+ )
79021
+ },
79022
+ {
79023
+ valueOP: "EXISTS" /* EXISTS */,
79024
+ label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.exists")
79025
+ },
79026
+ {
79027
+ valueOP: "NOTEXISTS" /* NOT_EXISTS */,
79028
+ label: ibiz.i18n.t(
79029
+ "runtime.controller.utils.jsonSchemaUtil.not_exists"
79030
+ )
79031
+ }
79032
+ ];
79033
+ }
78956
79034
  /**
78957
79035
  * 获取jsonschema属性数据
78958
79036
  *
@@ -79038,7 +79116,8 @@ var JsonSchemaUtil = class {
79038
79116
  */
79039
79117
  getValueOPsByDataType(dataType) {
79040
79118
  let result = [];
79041
- result = this.valueOPArray.filter(
79119
+ const valueOPArray = this.getValueOPArray();
79120
+ result = valueOPArray.filter(
79042
79121
  (mode) => this.DataTypeToOPs[dataType].includes(mode.valueOP)
79043
79122
  );
79044
79123
  return result;
@@ -90091,6 +90170,23 @@ var en = {
90091
90170
  quarter: "Quarter",
90092
90171
  month: "Month",
90093
90172
  week: "Week"
90173
+ },
90174
+ jsonSchemaUtil: {
90175
+ eq: "Equal to (=)",
90176
+ not_eq: "Not equal to (<> )",
90177
+ gt: "Greater than (>)",
90178
+ gt_and_eq: "Greater than or equal to (>=)",
90179
+ lt: "Less than (<)",
90180
+ lt_and_eq: "Less than or equal to (<=)",
90181
+ is_null: "Value is Nil",
90182
+ is_not_null: "Value not null (NotNil)",
90183
+ IN: "Value In range (In)",
90184
+ not_in: "Value not in range (NotIn)",
90185
+ like: "Text contains (%)",
90186
+ lift_like: "Text left contained (%#)",
90187
+ right_like: "Text right included (#%)",
90188
+ exists: "exists(EXISTS)",
90189
+ not_exists: "Does not exist (NOTEXISTS)"
90094
90190
  }
90095
90191
  }
90096
90192
  },
@@ -90757,6 +90853,23 @@ var zhCn = {
90757
90853
  quarter: "\u5B63\u5EA6",
90758
90854
  month: "\u6708",
90759
90855
  week: "\u5468"
90856
+ },
90857
+ jsonSchemaUtil: {
90858
+ eq: "\u7B49\u4E8E(=)",
90859
+ not_eq: "\u4E0D\u7B49\u4E8E(<>)",
90860
+ gt: "\u5927\u4E8E(>)",
90861
+ gt_and_eq: "\u5927\u4E8E\u7B49\u4E8E(>=)",
90862
+ lt: "\u5C0F\u4E8E(<)",
90863
+ lt_and_eq: "\u5C0F\u4E8E\u7B49\u4E8E(<=)",
90864
+ is_null: "\u503C\u4E3A\u7A7A(Nil)",
90865
+ is_not_null: "\u503C\u4E0D\u4E3A\u7A7A(NotNil)",
90866
+ IN: "\u503C\u5728\u8303\u56F4\u4E2D(In)",
90867
+ not_in: "\u503C\u4E0D\u5728\u8303\u56F4\u4E2D(NotIn)",
90868
+ like: "\u6587\u672C\u5305\u542B(%)",
90869
+ lift_like: "\u6587\u672C\u5DE6\u5305\u542B(%#)",
90870
+ right_like: "\u6587\u672C\u53F3\u5305\u542B(#%)",
90871
+ exists: "\u5B58\u5728(EXISTS)",
90872
+ not_exists: "\u4E0D\u5B58\u5728(NOTEXISTS)"
90760
90873
  }
90761
90874
  }
90762
90875
  },