@ibiz-template/runtime 0.7.28-alpha.0 → 0.7.28

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 +310 -80
  2. package/dist/index.system.min.js +1 -1
  3. package/out/command/app/app-func/app-func.d.ts.map +1 -1
  4. package/out/command/app/app-func/app-func.js +2 -3
  5. package/out/controller/common/control/control.controller.d.ts.map +1 -1
  6. package/out/controller/common/control/control.controller.js +2 -0
  7. package/out/controller/common/editor/editor.controller.d.ts +8 -0
  8. package/out/controller/common/editor/editor.controller.d.ts.map +1 -1
  9. package/out/controller/common/editor/editor.controller.js +18 -0
  10. package/out/controller/common/view/view.controller.d.ts.map +1 -1
  11. package/out/controller/common/view/view.controller.js +2 -0
  12. package/out/controller/control/chart/generator/chart-options-generator.d.ts.map +1 -1
  13. package/out/controller/control/chart/generator/chart-options-generator.js +9 -3
  14. package/out/controller/control/dashboard/custom-dashboard.controller.js +1 -1
  15. package/out/controller/control/grid/grid/grid.controller.d.ts +8 -0
  16. package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
  17. package/out/controller/control/grid/grid/grid.controller.js +17 -3
  18. package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.d.ts.map +1 -1
  19. package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +15 -3
  20. package/out/controller/control/search-bar/search-bar.controller.d.ts +8 -0
  21. package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
  22. package/out/controller/control/search-bar/search-bar.controller.js +11 -1
  23. package/out/controller/utils/jsonschema/entity.d.ts +1 -1
  24. package/out/controller/utils/jsonschema/entity.d.ts.map +1 -1
  25. package/out/controller/utils/jsonschema/entity.js +7 -2
  26. package/out/interface/controller/event/common/i-component.event.d.ts +20 -0
  27. package/out/interface/controller/event/common/i-component.event.d.ts.map +1 -1
  28. package/out/ui-action/provider/front-ui-action-provider.d.ts +10 -0
  29. package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
  30. package/out/ui-action/provider/front-ui-action-provider.js +45 -0
  31. package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
  32. package/out/ui-action/provider/ui-action-provider-base.js +3 -1
  33. package/out/utils/bi-report-util/bi-report-util.d.ts +31 -0
  34. package/out/utils/bi-report-util/bi-report-util.d.ts.map +1 -1
  35. package/out/utils/bi-report-util/bi-report-util.js +171 -60
  36. package/package.json +3 -3
package/dist/index.esm.js CHANGED
@@ -15159,7 +15159,6 @@ var BIReportUtil = class {
15159
15159
  config.selectCubeId = data.pssysbicubeid;
15160
15160
  config.selectedSchemeId = data.pssysbischemeid;
15161
15161
  const biReportItems = {};
15162
- const extendDimension = (biReportUIModel == null ? void 0 : biReportUIModel.extendDimension) || [];
15163
15162
  if (data.pssysbireportitems && data.pssysbireportitems.length > 0) {
15164
15163
  data.pssysbireportitems.forEach((item) => {
15165
15164
  var _a, _b;
@@ -15172,33 +15171,35 @@ var BIReportUtil = class {
15172
15171
  pssysbicubemeasureid: item.pssysbicubemeasureid,
15173
15172
  pssysbicubeid: item.pssysbicubeid,
15174
15173
  codename: (_a = item.pssysbicubemeasureid) == null ? void 0 : _a.split(".").pop(),
15175
- pssysbicubemeasurename: item.pssysbicubemeasurename
15174
+ pssysbicubemeasurename: item.pssysbicubemeasurename,
15175
+ birepitemparams: item.birepitemparams
15176
15176
  });
15177
15177
  }
15178
15178
  if (item.birepitemtype === "DIMENSION") {
15179
- if (!biReportItems.dimension) {
15180
- biReportItems.dimension = [];
15181
- }
15182
- if (extendDimension.length > 0 && !biReportItems.extendDimension) {
15183
- biReportItems.extendDimension = [];
15184
- }
15185
- const codename = (_b = item.pssysbicubedimensionid) == null ? void 0 : _b.split(".").pop();
15186
- if (extendDimension.includes(codename)) {
15187
- biReportItems.extendDimension.push({
15188
- pssysbischemeid: item.pssysbischemeid,
15189
- pssysbicubedimensionid: item.pssysbicubedimensionid,
15190
- pssysbicubeid: item.pssysbicubeid,
15191
- codename,
15192
- pssysbicubedimensionname: item.pssysbicubedimensionname
15193
- });
15179
+ const tempDimension = {
15180
+ pssysbischemeid: item.pssysbischemeid,
15181
+ pssysbicubedimensionid: item.pssysbicubedimensionid,
15182
+ pssysbicubeid: item.pssysbicubeid,
15183
+ codename: (_b = item.pssysbicubedimensionid) == null ? void 0 : _b.split(".").pop(),
15184
+ pssysbicubedimensionname: item.pssysbicubedimensionname,
15185
+ placement: item.placement,
15186
+ birepitemparams: item.birepitemparams
15187
+ };
15188
+ if (item.placement === "COLHEADER") {
15189
+ if (!biReportItems.dimension_col) {
15190
+ biReportItems.dimension_col = [];
15191
+ }
15192
+ biReportItems.dimension_col.push(tempDimension);
15193
+ } else if (biReportUIModel && biReportUIModel.group && biReportUIModel.group.indexof(item.pssysbicubedimensionid) !== -1) {
15194
+ if (!biReportItems.group) {
15195
+ biReportItems.group = [];
15196
+ }
15197
+ biReportItems.group.push(tempDimension);
15194
15198
  } else {
15195
- biReportItems.dimension.push({
15196
- pssysbischemeid: item.pssysbischemeid,
15197
- pssysbicubedimensionid: item.pssysbicubedimensionid,
15198
- pssysbicubeid: item.pssysbicubeid,
15199
- codename,
15200
- pssysbicubedimensionname: item.pssysbicubedimensionname
15201
- });
15199
+ if (!biReportItems.dimension) {
15200
+ biReportItems.dimension = [];
15201
+ }
15202
+ biReportItems.dimension.push(tempDimension);
15202
15203
  }
15203
15204
  }
15204
15205
  });
@@ -15215,6 +15216,9 @@ var BIReportUtil = class {
15215
15216
  if (biReportUIModel.filter) {
15216
15217
  propertyData.data.filter = biReportUIModel.filter;
15217
15218
  }
15219
+ if (biReportUIModel.period) {
15220
+ propertyData.data.period = biReportUIModel.period;
15221
+ }
15218
15222
  config.propertyData = propertyData;
15219
15223
  return config;
15220
15224
  }
@@ -15227,6 +15231,7 @@ var BIReportUtil = class {
15227
15231
  */
15228
15232
  async translateReportPanelToConfig(model) {
15229
15233
  const config = {};
15234
+ let reportUIModelObj = {};
15230
15235
  const biReportDatas = {};
15231
15236
  const { appDEReport } = model;
15232
15237
  const propertyData = {
@@ -15244,14 +15249,15 @@ var BIReportUtil = class {
15244
15249
  } = appDEReport.appBIReport;
15245
15250
  propertyData.caption = name;
15246
15251
  config.selectCubeId = "".concat(tempAppBISchemeId, ".").concat(appBICubeId);
15247
- let extendDimension = [];
15248
15252
  if (reportUIModel) {
15249
- const reportUIModelObj = JSON.parse(reportUIModel);
15253
+ reportUIModelObj = JSON.parse(reportUIModel);
15250
15254
  config.selectChartType = reportUIModelObj.selectChartType;
15251
15255
  propertyData.style = reportUIModelObj.style;
15252
- propertyData.data.filter = reportUIModelObj.filter;
15253
- if (reportUIModelObj.extendDimension) {
15254
- extendDimension = reportUIModelObj.extendDimension;
15256
+ if (reportUIModelObj.filter) {
15257
+ propertyData.data.filter = reportUIModelObj.filter;
15258
+ }
15259
+ if (reportUIModelObj.period) {
15260
+ propertyData.data.period = reportUIModelObj.period;
15255
15261
  }
15256
15262
  } else {
15257
15263
  config.selectChartType = "NUMBER";
@@ -15266,7 +15272,8 @@ var BIReportUtil = class {
15266
15272
  pssysbicubemeasureid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId, ".").concat(measure.measureTag),
15267
15273
  pssysbicubemeasurename: measure.measureName,
15268
15274
  pssysbicubeid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId),
15269
- codename: measure.measureTag
15275
+ codename: measure.measureTag,
15276
+ birepitemparams: measure.birepitemparams
15270
15277
  });
15271
15278
  });
15272
15279
  }
@@ -15275,27 +15282,34 @@ var BIReportUtil = class {
15275
15282
  if (!biReportDatas.dimension) {
15276
15283
  biReportDatas.dimension = [];
15277
15284
  }
15278
- if (extendDimension.length > 0 && !biReportDatas.extendDimension) {
15279
- biReportDatas.extendDimension = [];
15280
- }
15281
- if (extendDimension.includes(dimension.dimensionTag)) {
15282
- biReportDatas.extendDimension.push({
15283
- pssysbischemeid: tempAppBISchemeId,
15284
- pssysbicubedimensionid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId, ".").concat(dimension.dimensionTag),
15285
- pssysbicubedimensionname: dimension.dimensionName,
15286
- pssysbicubeid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId),
15287
- codename: dimension.dimensionTag,
15288
- pscodelistid: dimension.appCodeListId
15289
- });
15285
+ const tempDimension = {
15286
+ pssysbischemeid: tempAppBISchemeId,
15287
+ pssysbicubedimensionid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId, ".").concat(dimension.dimensionTag),
15288
+ pssysbicubedimensionname: dimension.dimensionName,
15289
+ pssysbicubeid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId),
15290
+ codename: dimension.dimensionTag,
15291
+ pscodelistid: dimension.appCodeListId,
15292
+ placement: dimension.placement,
15293
+ birepitemparams: dimension.birepitemparams
15294
+ };
15295
+ biReportDatas.dimension.push();
15296
+ if (dimension.placement === "COLHEADER") {
15297
+ if (!biReportDatas.dimension_col) {
15298
+ biReportDatas.dimension_col = [];
15299
+ }
15300
+ biReportDatas.dimension_col.push(tempDimension);
15301
+ } else if (reportUIModelObj && reportUIModelObj.group && reportUIModelObj.group.indexof(
15302
+ "".concat(tempAppBISchemeId, ".").concat(appBICubeId, ".").concat(dimension.dimensionTag)
15303
+ ) !== -1) {
15304
+ if (!biReportDatas.group) {
15305
+ biReportDatas.group = [];
15306
+ }
15307
+ biReportDatas.group.push(tempDimension);
15290
15308
  } else {
15291
- biReportDatas.dimension.push({
15292
- pssysbischemeid: tempAppBISchemeId,
15293
- pssysbicubedimensionid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId, ".").concat(dimension.dimensionTag),
15294
- pssysbicubedimensionname: dimension.dimensionName,
15295
- pssysbicubeid: "".concat(tempAppBISchemeId, ".").concat(appBICubeId),
15296
- codename: dimension.dimensionTag,
15297
- pscodelistid: dimension.appCodeListId
15298
- });
15309
+ if (!biReportDatas.dimension) {
15310
+ biReportDatas.dimension = [];
15311
+ }
15312
+ biReportDatas.dimension.push(tempDimension);
15299
15313
  }
15300
15314
  });
15301
15315
  }
@@ -15319,16 +15333,21 @@ var BIReportUtil = class {
15319
15333
  async translateDataToAppBIReport(arg) {
15320
15334
  const { reportTag, selectChartType, selectCubeId, caption, data, style } = arg;
15321
15335
  const app = ibiz.hub.getApp(ibiz.env.appId);
15336
+ const tempUIReportModel = {
15337
+ selectChartType,
15338
+ style
15339
+ };
15340
+ if (data.filter) {
15341
+ Object.assign(tempUIReportModel, { filter: data.filter });
15342
+ }
15343
+ if (data.period) {
15344
+ Object.assign(tempUIReportModel, { period: data.period });
15345
+ }
15322
15346
  const targetData = {
15323
15347
  pssysbireportitems: [],
15324
15348
  pssysbischemeid: selectCubeId.split(".")[0],
15325
15349
  pssysbicubeid: selectCubeId,
15326
- bireportuimodel: JSON.stringify({
15327
- selectChartType,
15328
- style,
15329
- filter: data == null ? void 0 : data.filter,
15330
- group: data == null ? void 0 : data.group
15331
- }),
15350
+ bireportuimodel: JSON.stringify(tempUIReportModel),
15332
15351
  pssysappid: app.model.codeName,
15333
15352
  bireporttag: reportTag,
15334
15353
  pssysbireportname: caption,
@@ -15343,6 +15362,7 @@ var BIReportUtil = class {
15343
15362
  pssysbicubeid: measure.pssysbicubeid,
15344
15363
  pssysbicubename: measure.pssysbicubename,
15345
15364
  pssysbicubemeasurename: measure.pssysbicubemeasurename,
15365
+ birepitemparams: measure.birepitemparams,
15346
15366
  validflag: 1
15347
15367
  };
15348
15368
  targetData.pssysbireportitems.push(tempMeasure);
@@ -15357,15 +15377,58 @@ var BIReportUtil = class {
15357
15377
  pssysbicubeid: dimension.pssysbicubeid,
15358
15378
  pssysbicubename: dimension.pssysbicubename,
15359
15379
  pssysbicubedimensionname: dimension.pssysbicubedimensionname,
15380
+ birepitemparams: dimension.birepitemparams,
15360
15381
  validflag: 1
15361
15382
  };
15362
15383
  targetData.pssysbireportitems.push(tempDimension);
15363
15384
  });
15364
15385
  }
15365
- if (data && data.extendDimension) {
15366
- const extendDimension = [];
15367
- data.extendDimension.forEach((dimension) => {
15368
- extendDimension.push(dimension.codename);
15386
+ await this.mergeSpecialParams(selectChartType, arg, targetData);
15387
+ return targetData;
15388
+ }
15389
+ /**
15390
+ * 合入特殊参数
15391
+ *
15392
+ * @author tony001
15393
+ * @date 2024-07-05 09:07:02
15394
+ * @param {string} type
15395
+ * @param {IData} sourceData
15396
+ * @param {IData} targetData
15397
+ * @return {*} {Promise<void>}
15398
+ */
15399
+ async mergeSpecialParams(type, sourceData, targetData) {
15400
+ switch (type) {
15401
+ case "CROSSTABLE":
15402
+ await this.mergeCrosstableSpecialParams(sourceData, targetData);
15403
+ break;
15404
+ case "MULTI_SERIES_COL":
15405
+ case "STACK_COL":
15406
+ case "ZONE_COL":
15407
+ case "MULTI_SERIES_BAR":
15408
+ case "STACK_BAR":
15409
+ case "MULTI_SERIES_LINE":
15410
+ case "ZONE_LINE":
15411
+ case "AREA":
15412
+ await this.mergeGroupParams(sourceData, targetData);
15413
+ break;
15414
+ default:
15415
+ break;
15416
+ }
15417
+ }
15418
+ /**
15419
+ * 处理交叉表特殊参数(维度列)
15420
+ *
15421
+ * @author tony001
15422
+ * @date 2024-07-05 10:07:56
15423
+ * @param {IData} sourceData
15424
+ * @param {IData} targetData
15425
+ * @return {*} {Promise<void>}
15426
+ */
15427
+ async mergeCrosstableSpecialParams(sourceData, targetData) {
15428
+ var _a;
15429
+ const { data } = sourceData;
15430
+ if (data && ((_a = data.dimension_col) == null ? void 0 : _a.length) > 0) {
15431
+ data.dimension_col.forEach((dimension) => {
15369
15432
  const tempDimension = {
15370
15433
  birepitemtype: "DIMENSION",
15371
15434
  pssysbischemeid: dimension.pssysbischemeid,
@@ -15373,17 +15436,44 @@ var BIReportUtil = class {
15373
15436
  pssysbicubeid: dimension.pssysbicubeid,
15374
15437
  pssysbicubename: dimension.pssysbicubename,
15375
15438
  pssysbicubedimensionname: dimension.pssysbicubedimensionname,
15439
+ placement: "COLHEADER",
15376
15440
  validflag: 1
15377
15441
  };
15378
15442
  targetData.pssysbireportitems.push(tempDimension);
15379
15443
  });
15380
- const uiModel = JSON.parse(targetData.bireportuimodel);
15381
- targetData.bireportuimodel = JSON.stringify({
15382
- ...uiModel,
15383
- extendDimension
15444
+ }
15445
+ }
15446
+ /**
15447
+ * 处理分组特殊参数(添加维度数据并将标识存到ui报表模型的group字段中)
15448
+ *
15449
+ * @author tony001
15450
+ * @date 2024-07-05 10:07:05
15451
+ * @param {IData} sourceData
15452
+ * @param {IData} targetData
15453
+ * @return {*} {Promise<void>}
15454
+ */
15455
+ async mergeGroupParams(sourceData, targetData) {
15456
+ var _a;
15457
+ const { data } = sourceData;
15458
+ if (data && ((_a = data.group) == null ? void 0 : _a.length) > 0) {
15459
+ const groupNames = [];
15460
+ data.group.forEach((groupItem) => {
15461
+ const tempDimension = {
15462
+ birepitemtype: "DIMENSION",
15463
+ pssysbischemeid: groupItem.pssysbischemeid,
15464
+ pssysbicubedimensionid: groupItem.pssysbicubedimensionid,
15465
+ pssysbicubeid: groupItem.pssysbicubeid,
15466
+ pssysbicubename: groupItem.pssysbicubename,
15467
+ pssysbicubedimensionname: groupItem.pssysbicubedimensionname,
15468
+ validflag: 1
15469
+ };
15470
+ targetData.pssysbireportitems.push(tempDimension);
15471
+ groupNames.push(groupItem.pssysbicubedimensionid);
15384
15472
  });
15473
+ const biReportUIModel = JSON.parse(targetData.bireportuimodel);
15474
+ biReportUIModel.group = groupNames;
15475
+ targetData.bireportuimodel = JSON.stringify(biReportUIModel);
15385
15476
  }
15386
- return targetData;
15387
15477
  }
15388
15478
  };
15389
15479
 
@@ -15744,8 +15834,10 @@ var _AppFuncCommand = class _AppFuncCommand {
15744
15834
  * @param {IParams} [params]
15745
15835
  */
15746
15836
  executeJavaScript(appFunc, context, params) {
15747
- ibiz.log.warn("executeJavaScript", appFunc, context, params);
15748
- throw new RuntimeError27(ibiz.i18n.t("runtime.common.unrealized"));
15837
+ ScriptFactory.execScriptFn(
15838
+ { context, params, data: {}, el: null, view: null },
15839
+ appFunc.jscode
15840
+ );
15749
15841
  }
15750
15842
  /**
15751
15843
  * 自定义应用功能
@@ -17417,12 +17509,16 @@ async function fetchImportSchemas(opts) {
17417
17509
  }
17418
17510
 
17419
17511
  // src/controller/utils/jsonschema/entity.ts
17420
- async function getEntitySchema(entityId, context) {
17512
+ import qs3 from "qs";
17513
+ async function getEntitySchema(entityId, context, params = {}) {
17514
+ const strParams = qs3.stringify(params);
17421
17515
  const app = ibiz.hub.getApp(context.srfappid);
17422
17516
  const entity = await ibiz.hub.getAppDataEntity(entityId, context.srfappid);
17423
17517
  let url = "/jsonschema/".concat(entity.name);
17424
17518
  if (entity.dynaSysMode === 0 && ibiz.appData) {
17425
- url += "?dynamodeltag=".concat(ibiz.appData.dynamodeltag);
17519
+ url += "?dynamodeltag=".concat(ibiz.appData.dynamodeltag).concat(strParams ? "&".concat(strParams) : "");
17520
+ } else {
17521
+ url += "".concat(strParams ? "?".concat(strParams) : "");
17426
17522
  }
17427
17523
  const res = await app.net.get(url);
17428
17524
  return res.data;
@@ -18134,6 +18230,7 @@ var ViewController = class extends BaseController {
18134
18230
  */
18135
18231
  onActivated() {
18136
18232
  this.state.activated = true;
18233
+ this._evt.emit("onActivated", void 0);
18137
18234
  ibiz.log.debug(
18138
18235
  ibiz.i18n.t("runtime.controller.common.view.viewActivation", {
18139
18236
  name: this.model.name,
@@ -18148,6 +18245,7 @@ var ViewController = class extends BaseController {
18148
18245
  * @date 2023-07-12 17:07:06
18149
18246
  */
18150
18247
  onDeactivated() {
18248
+ this._evt.emit("onDeactivated", void 0);
18151
18249
  this.state.activated = false;
18152
18250
  ibiz.log.debug(
18153
18251
  ibiz.i18n.t("runtime.controller.common.view.viewPause", {
@@ -18684,6 +18782,24 @@ var EditorController = class {
18684
18782
  get dataType() {
18685
18783
  return this.parent.dataType;
18686
18784
  }
18785
+ /**
18786
+ * 触发值变更模式
18787
+ *
18788
+ * @readonly
18789
+ * @type {string}
18790
+ * @memberof EditorController
18791
+ */
18792
+ get triggerMode() {
18793
+ if (this.editorParams.triggerMode) {
18794
+ return this.editorParams.triggerMode;
18795
+ }
18796
+ const app = ibiz.hub.getApp(this.context.srfappid);
18797
+ const appUserParam = app.model.userParam || {};
18798
+ if (appUserParam.triggerMode) {
18799
+ return appUserParam.triggerMode;
18800
+ }
18801
+ return "blur";
18802
+ }
18687
18803
  /**
18688
18804
  * 子类不可覆盖或重写此方法,在 init 时需要重写的使用 onInit 方法。
18689
18805
  *
@@ -19076,6 +19192,7 @@ var ControlController = class extends BaseController {
19076
19192
  * @date 2023-07-12 17:07:55
19077
19193
  */
19078
19194
  onActivated() {
19195
+ this._evt.emit("onActivated", void 0);
19079
19196
  this.state.activated = true;
19080
19197
  if (this.awaitActiveCbs.size > 0) {
19081
19198
  this.awaitActiveCbs.forEach((cb) => {
@@ -19097,6 +19214,7 @@ var ControlController = class extends BaseController {
19097
19214
  * @date 2023-07-12 17:07:06
19098
19215
  */
19099
19216
  onDeactivated() {
19217
+ this._evt.emit("onDeactivated", void 0);
19100
19218
  this.state.activated = false;
19101
19219
  ibiz.log.debug(
19102
19220
  ibiz.i18n.t("runtime.controller.common.control.componentPause", {
@@ -21979,6 +22097,7 @@ var ChartOptionsGenerator2 = class {
21979
22097
  const tempaxis = [];
21980
22098
  let titleshow = true;
21981
22099
  let labelshow = true;
22100
+ let fontConifg = {};
21982
22101
  let gridIndex = 0;
21983
22102
  if (Array.isArray(tempCatalogFields)) {
21984
22103
  const app = ibiz.hub.getApp(context.srfappid);
@@ -21998,6 +22117,7 @@ var ChartOptionsGenerator2 = class {
21998
22117
  if (tempconfig) {
21999
22118
  titleshow = tempconfig.name === void 0 ? true : !!tempconfig.name;
22000
22119
  labelshow = ((_g = tempconfig.axisLabel) == null ? void 0 : _g.show) === void 0 ? true : (_h = tempconfig.axisLabel) == null ? void 0 : _h.show;
22120
+ fontConifg = tempconfig.axisLabel;
22001
22121
  }
22002
22122
  }
22003
22123
  if (this.chartUserParam && this.chartUserParam.grid && Array.isArray(this.chartUserParam.grid)) {
@@ -22027,6 +22147,7 @@ var ChartOptionsGenerator2 = class {
22027
22147
  );
22028
22148
  tempaxis.push({
22029
22149
  show: labelshow,
22150
+ axisLabel: fontConifg,
22030
22151
  gridIndex,
22031
22152
  type: "category",
22032
22153
  data: tempxAxisData,
@@ -22047,6 +22168,7 @@ var ChartOptionsGenerator2 = class {
22047
22168
  );
22048
22169
  tempaxis.push({
22049
22170
  show: labelshow,
22171
+ axisLabel: fontConifg,
22050
22172
  gridIndex,
22051
22173
  type: "category",
22052
22174
  data: tempxAxisData,
@@ -22084,6 +22206,7 @@ var ChartOptionsGenerator2 = class {
22084
22206
  tempaxis.push({
22085
22207
  type: "category",
22086
22208
  gridIndex,
22209
+ axisLabel: fontConifg,
22087
22210
  show: titleshow,
22088
22211
  data: [
22089
22212
  {
@@ -22104,22 +22227,23 @@ var ChartOptionsGenerator2 = class {
22104
22227
  } else {
22105
22228
  if (catalogLength === 0) {
22106
22229
  Object.assign(this.chartUserParam.grid, {
22107
- bottom: 30
22230
+ bottom: 45
22108
22231
  });
22109
22232
  } else {
22110
22233
  Object.assign(this.chartUserParam.grid, {
22111
- bottom: (catalogLength + 1) * 24
22234
+ bottom: (catalogLength + 2) * 24
22112
22235
  });
22113
22236
  }
22114
22237
  tempaxis.push({
22115
22238
  type: "category",
22116
22239
  gridIndex,
22117
22240
  show: titleshow,
22241
+ axisLabel: fontConifg,
22118
22242
  data: [
22119
22243
  {
22120
22244
  value: mergeName,
22121
22245
  textStyle: {
22122
- padding: [24 * catalogLength, 0, 0, 0]
22246
+ padding: [24 * catalogLength + 1, 0, 0, 0]
22123
22247
  }
22124
22248
  }
22125
22249
  ],
@@ -24572,7 +24696,9 @@ var UIActionProviderBase = class {
24572
24696
  * @memberof UIActionHandler
24573
24697
  */
24574
24698
  returnError(result, view) {
24575
- view.state.isClosing = false;
24699
+ if (view) {
24700
+ view.state.isClosing = false;
24701
+ }
24576
24702
  return Object.assign(result, {
24577
24703
  refresh: false,
24578
24704
  closeView: false
@@ -24963,6 +25089,9 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
24963
25089
  case "EDITFORM":
24964
25090
  actionResult = await this.openEditForm(action, args);
24965
25091
  break;
25092
+ case "QUICKEDIT":
25093
+ actionResult = await this.openQuickEdit(action, args);
25094
+ break;
24966
25095
  default:
24967
25096
  throw new ModelError26(
24968
25097
  action,
@@ -25204,6 +25333,58 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
25204
25333
  }
25205
25334
  return actionResult;
25206
25335
  }
25336
+ /**
25337
+ * 打开快速编辑
25338
+ *
25339
+ * @protected
25340
+ * @param {IAppDEUIAction} action
25341
+ * @param {IUILogicParams} args
25342
+ * @return {*} {Promise<IUIActionResult>}
25343
+ * @memberof FrontUIActionProvider
25344
+ */
25345
+ async openQuickEdit(action, args) {
25346
+ const actionResult = {
25347
+ cancel: true
25348
+ };
25349
+ const { context, params, data, event } = args;
25350
+ if (!event) {
25351
+ throw new RuntimeError51(ibiz.i18n.t("runtime.uiAction.lackNativeEvent"));
25352
+ }
25353
+ const { resultContext, resultParams } = await this.handleParams(
25354
+ action,
25355
+ context,
25356
+ data,
25357
+ params
25358
+ );
25359
+ const options = this.handleViewOptionParams(resultParams).modalOption || {};
25360
+ const popoverOpts = mergeRight4(
25361
+ {
25362
+ autoClose: true
25363
+ },
25364
+ options
25365
+ );
25366
+ const overlay = ibiz.overlay.createPopover(
25367
+ "IBizQuickEdit",
25368
+ {
25369
+ context: resultContext,
25370
+ params: resultParams,
25371
+ modelData: action.deeditForm,
25372
+ onClose: (modalData) => {
25373
+ if (modalData.ok) {
25374
+ actionResult.data = modalData.data;
25375
+ actionResult.cancel = false;
25376
+ }
25377
+ if (overlay) {
25378
+ overlay.dismiss();
25379
+ }
25380
+ }
25381
+ },
25382
+ popoverOpts
25383
+ );
25384
+ overlay.present(event.target);
25385
+ await overlay.onWillDismiss();
25386
+ return actionResult;
25387
+ }
25207
25388
  };
25208
25389
 
25209
25390
  // src/ui-action/provider/wf-withdraw-ui-action-provider.ts
@@ -25858,7 +26039,7 @@ var CustomDashboardController = class {
25858
26039
  case "data":
25859
26040
  return "".concat(base, "_").concat(this.ownerType, "_").concat(this.ownerId);
25860
26041
  case "dynamic":
25861
- return "".concat(base, "_").concat(this.context.srfdynadashboardid);
26042
+ return "".concat(this.context.srfdynadashboardid);
25862
26043
  default:
25863
26044
  return base;
25864
26045
  }
@@ -31603,6 +31784,14 @@ var GridController = class extends MDControlController {
31603
31784
  * @type {boolean}
31604
31785
  */
31605
31786
  this.addSchemaColumn = false;
31787
+ /**
31788
+ * jsonschema参数
31789
+ *
31790
+ * @author zhanghengfeng
31791
+ * @date 2024-07-05 15:07:13
31792
+ * @type {IParams}
31793
+ */
31794
+ this.jsonSchemaParams = {};
31606
31795
  /**
31607
31796
  * 是否显示百分比
31608
31797
  *
@@ -31772,6 +31961,14 @@ var GridController = class extends MDControlController {
31772
31961
  */
31773
31962
  async onCreated() {
31774
31963
  this.addSchemaColumn = this.controlParams.enablejsonschema === "true";
31964
+ const jsonSchemaParams = JSON.parse(
31965
+ this.controlParams.jsonschemaparams || "{}"
31966
+ );
31967
+ this.jsonSchemaParams = convertNavData(
31968
+ jsonSchemaParams,
31969
+ this.params,
31970
+ this.context
31971
+ );
31775
31972
  this.showPercent = this.controlParams.showpercent === "true";
31776
31973
  await this.initByEntitySchema();
31777
31974
  await super.onCreated();
@@ -31828,7 +32025,8 @@ var GridController = class extends MDControlController {
31828
32025
  }
31829
32026
  const json = await getEntitySchema(
31830
32027
  this.model.appDataEntityId,
31831
- this.context
32028
+ this.context,
32029
+ this.jsonSchemaParams
31832
32030
  );
31833
32031
  if (!json) {
31834
32032
  return;
@@ -33027,7 +33225,11 @@ var GridController = class extends MDControlController {
33027
33225
  const totalResult = {};
33028
33226
  Object.values(this.fieldColumns).forEach((column) => {
33029
33227
  const fieldName = column.model.id;
33030
- const result = this.state.items.map((item) => item[fieldName]).reduce((a, b) => plus2(a, b), 0);
33228
+ const result = this.state.items.map((item) => item[fieldName]).reduce((a, b) => {
33229
+ const aValue = Number(a) || 0;
33230
+ const bValue = Number(b) || 0;
33231
+ return plus2(aValue, bValue);
33232
+ }, 0);
33031
33233
  if (result) {
33032
33234
  totalResult[fieldName] = result;
33033
33235
  }
@@ -33263,9 +33465,12 @@ var GridFieldColumnController = class extends GridColumnController {
33263
33465
  * @return {*} {(string | undefined)}
33264
33466
  */
33265
33467
  calcFieldAgg(items) {
33266
- const { aggField, aggMode, aggValueFormat, unitName } = this.model;
33468
+ const { aggField, aggMode, aggValueFormat, unitName, appCodeListId } = this.model;
33267
33469
  const fieldName = aggField || this.model.id;
33268
33470
  let aggValue;
33471
+ if (appCodeListId) {
33472
+ return;
33473
+ }
33269
33474
  if (this.grid.model.aggMode === "ALL") {
33270
33475
  if (!this.grid.state.remoteAggResult) {
33271
33476
  return;
@@ -33279,10 +33484,18 @@ var GridFieldColumnController = class extends GridColumnController {
33279
33484
  if (this.grid.model.aggMode === "PAGE") {
33280
33485
  switch (aggMode) {
33281
33486
  case "SUM":
33282
- aggValue = items.map((item) => item[fieldName]).reduce((a, b) => plus3(a, b), 0);
33487
+ aggValue = items.map((item) => item[fieldName]).reduce((a, b) => {
33488
+ const aValue = Number(a) || 0;
33489
+ const bValue = Number(b) || 0;
33490
+ return plus3(aValue, bValue);
33491
+ }, 0);
33283
33492
  break;
33284
33493
  case "AVG":
33285
- aggValue = items.map((item) => item[fieldName]).reduce((a, b) => plus3(a, b), 0) / items.length;
33494
+ aggValue = items.map((item) => item[fieldName]).reduce((a, b) => {
33495
+ const aValue = Number(a) || 0;
33496
+ const bValue = Number(b) || 0;
33497
+ return plus3(aValue, bValue);
33498
+ }, 0) / items.length;
33286
33499
  break;
33287
33500
  case "MAX":
33288
33501
  aggValue = Math.max(
@@ -35621,6 +35834,14 @@ var SearchBarController = class extends ControlController {
35621
35834
  * @date 2024-01-05 10:10:37
35622
35835
  */
35623
35836
  this.addSchemaFilters = false;
35837
+ /**
35838
+ * jsonschema参数
35839
+ *
35840
+ * @author zhanghengfeng
35841
+ * @date 2024-07-05 15:07:47
35842
+ * @type {IParams}
35843
+ */
35844
+ this.jsonSchemaParams = {};
35624
35845
  /**
35625
35846
  * 是否启用存储
35626
35847
  *
@@ -35682,6 +35903,14 @@ var SearchBarController = class extends ControlController {
35682
35903
  }
35683
35904
  async onCreated() {
35684
35905
  this.addSchemaFilters = this.controlParams.enablejsonschema === "true";
35906
+ const jsonSchemaParams = JSON.parse(
35907
+ this.controlParams.jsonschemaparams || "{}"
35908
+ );
35909
+ this.jsonSchemaParams = convertNavData(
35910
+ jsonSchemaParams,
35911
+ this.params,
35912
+ this.context
35913
+ );
35685
35914
  this.enableStorage = this.controlParams.storage === "true";
35686
35915
  await this.initByEntitySchema();
35687
35916
  await super.onCreated();
@@ -35717,7 +35946,8 @@ var SearchBarController = class extends ControlController {
35717
35946
  }
35718
35947
  const json = await getEntitySchema(
35719
35948
  this.model.appDataEntityId,
35720
- this.context
35949
+ this.context,
35950
+ this.jsonSchemaParams
35721
35951
  );
35722
35952
  if (!json) {
35723
35953
  return;