@ibiz-template/runtime 0.7.31-alpha.0 → 0.7.31-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -16020,10 +16020,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
16020
16020
  case "POPUPMODAL":
16021
16021
  return this.openModal(appView, context, params);
16022
16022
  case "POPUPAPP":
16023
- throw new ModelError15(
16024
- appView,
16025
- ibiz.i18n.t("runtime.command.app.unsupportedPopupapp")
16026
- );
16023
+ return this.openPopupApp(appView, context, params);
16027
16024
  case "POPOVER":
16028
16025
  return this.openPopover(appView, context, params, opts);
16029
16026
  case "DRAWER_LEFT":
@@ -16126,6 +16123,20 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
16126
16123
  async openUserCustom(appView, context, params = {}) {
16127
16124
  return ibiz.openView.custom(appView.id, context, params);
16128
16125
  }
16126
+ /**
16127
+ * 独立程序弹出
16128
+ *
16129
+ * @author zzq
16130
+ * @date 2024-07-19 20:07:55
16131
+ * @protected
16132
+ * @param {IViewConfig} appView
16133
+ * @param {IContext} [context]
16134
+ * @param {IParams} [params={}]
16135
+ * @return {*} {Promise<void>}
16136
+ */
16137
+ async openPopupApp(appView, context, params = {}) {
16138
+ return ibiz.openView.popupApp(appView.id, context, params);
16139
+ }
16129
16140
  };
16130
16141
  _OpenAppViewCommand.TAG = "ibiz.app-view.open";
16131
16142
  var OpenAppViewCommand = _OpenAppViewCommand;
@@ -21631,9 +21642,15 @@ var BaseSeriesGenerator = class {
21631
21642
  } else if (mode === "field") {
21632
21643
  const tempdata = data.map((_data) => {
21633
21644
  var _a2, _b2;
21645
+ let tempValue;
21646
+ if ((_a2 = _data.$origin) == null ? void 0 : _a2.$origin) {
21647
+ tempValue = _data.$origin.$origin[codename];
21648
+ } else {
21649
+ tempValue = (_b2 = _data.$origin) == null ? void 0 : _b2[codename];
21650
+ }
21634
21651
  return {
21635
21652
  text: _data[codename],
21636
- value: (_b2 = (_a2 = _data.$origin) == null ? void 0 : _a2.$origin) == null ? void 0 : _b2[codename]
21653
+ value: tempValue
21637
21654
  };
21638
21655
  });
21639
21656
  tempCodeLists.push({ codename, codelist: tempdata });
@@ -21703,8 +21720,14 @@ var BaseSeriesGenerator = class {
21703
21720
  return;
21704
21721
  }
21705
21722
  if (!catalogCodeListId) {
21723
+ let tempValue;
21724
+ if ((_a = item.$origin) == null ? void 0 : _a.$origin) {
21725
+ tempValue = item.$origin.$origin[this.catalogField];
21726
+ } else {
21727
+ tempValue = (_b = item.$origin) == null ? void 0 : _b[this.catalogField];
21728
+ }
21706
21729
  this.catalogMap.set(item[this.catalogField], {
21707
- [this.catalogField]: (_b = (_a = item.$origin) == null ? void 0 : _a.$origin) == null ? void 0 : _b[this.catalogField]
21730
+ [this.catalogField]: tempValue
21708
21731
  });
21709
21732
  }
21710
21733
  if (!groupData[group].get(catalog)) {
@@ -22593,10 +22616,10 @@ var ChartOptionsGenerator2 = class {
22593
22616
  if (controlParam && ((_a = controlParam.ctrlParams) == null ? void 0 : _a.ZONE)) {
22594
22617
  const length = (_b = this.model.dechartSerieses) == null ? void 0 : _b.length;
22595
22618
  if (length) {
22596
- const height = 90 / length;
22619
+ const height = 85 / length;
22597
22620
  const items = [];
22598
22621
  for (let i = 0; i < length; i++) {
22599
- const top = i * height + 5;
22622
+ const top = i * height + 10;
22600
22623
  const bottom = 100 - (height + top);
22601
22624
  items.push({
22602
22625
  top: "".concat(top, "%"),
@@ -22660,7 +22683,7 @@ var ChartOptionsGenerator2 = class {
22660
22683
  if (((_a2 = controlParam.ctrlParams) == null ? void 0 : _a2.MODE) === "ROW") {
22661
22684
  const yAxisData = this.handleAxisLayout(
22662
22685
  codeListItems,
22663
- 40,
22686
+ 60,
22664
22687
  tempCatalogFields.length,
22665
22688
  index
22666
22689
  );
@@ -22724,7 +22747,7 @@ var ChartOptionsGenerator2 = class {
22724
22747
  });
22725
22748
  } else {
22726
22749
  Object.assign(this.chartUserParam.grid, {
22727
- left: (catalogLength + 1) * 40
22750
+ left: (catalogLength + 1) * 60
22728
22751
  });
22729
22752
  }
22730
22753
  const tempyAxis = this.chartUserParam.yAxis;
@@ -22745,7 +22768,7 @@ var ChartOptionsGenerator2 = class {
22745
22768
  {
22746
22769
  value: mergeName.split("").join("\n"),
22747
22770
  textStyle: {
22748
- padding: [0, catalogLength * 40, 0, 0],
22771
+ padding: [0, catalogLength * 50, 0, 0],
22749
22772
  ...nameTextStyle
22750
22773
  }
22751
22774
  }
@@ -37022,6 +37045,17 @@ var SearchBarController = class extends ControlController {
37022
37045
  }
37023
37046
  }
37024
37047
  });
37048
+ if (!searchconds) {
37049
+ const customNodes = [
37050
+ {
37051
+ nodeType: "GROUP",
37052
+ logicType: "AND",
37053
+ children: []
37054
+ }
37055
+ ];
37056
+ this.attachCustomCond(customNodes);
37057
+ return calcSearchConds(customNodes);
37058
+ }
37025
37059
  return searchconds;
37026
37060
  }
37027
37061
  /**
@@ -37177,7 +37211,18 @@ var SearchBarController = class extends ControlController {
37177
37211
  if (this.grid && this.state.selectedSearchGroupItem) {
37178
37212
  const nodes = clone34(this.state.filterNodes);
37179
37213
  this.attachCustomCond(nodes);
37180
- const filters = calcSearchCondExs(nodes);
37214
+ let filters = calcSearchCondExs(nodes);
37215
+ if (!filters) {
37216
+ const customNodes = [
37217
+ {
37218
+ nodeType: "GROUP",
37219
+ logicType: "AND",
37220
+ children: []
37221
+ }
37222
+ ];
37223
+ this.attachCustomCond(customNodes);
37224
+ filters = calcSearchCondExs(customNodes);
37225
+ }
37181
37226
  const saveParams = {
37182
37227
  searchconds: filters,
37183
37228
  sort: this.grid.state.sortQuery,