@ibiz-template/runtime 0.7.41-alpha.131 → 0.7.41-alpha.133

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 (22) hide show
  1. package/dist/index.esm.js +26 -9
  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/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts +9 -1
  6. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts.map +1 -1
  7. package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.js +25 -3
  8. package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +8 -0
  9. package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
  10. package/out/interface/api/common/i-api-popover-options.d.ts +10 -0
  11. package/out/interface/api/common/i-api-popover-options.d.ts.map +1 -1
  12. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.d.ts.map +1 -1
  13. package/out/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.js +1 -0
  14. package/out/utils/script/script-function.d.ts.map +1 -1
  15. package/out/utils/script/script-function.js +2 -1
  16. package/package.json +2 -2
  17. package/src/config/global-config.ts +1 -0
  18. package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.ts +29 -7
  19. package/src/interface/api/common/global-config/i-api-global-common-config.ts +9 -0
  20. package/src/interface/api/common/i-api-popover-options.ts +10 -0
  21. package/src/ui-logic/ui-logic-node/raw-js-code-node/raw-js-code-node.ts +1 -0
  22. package/src/utils/script/script-function.ts +2 -1
package/dist/index.esm.js CHANGED
@@ -20013,7 +20013,8 @@ var GlobalConfig = class {
20013
20013
  importTemplNameMode: "default",
20014
20014
  aiUploadMaxSize: 5242880,
20015
20015
  aiAutoQuestion: true,
20016
- asyncImport: false
20016
+ asyncImport: false,
20017
+ aiTopicStorageMode: "DEFAULT"
20017
20018
  };
20018
20019
  // 全局分页流布局配置
20019
20020
  this.drtab = {
@@ -22637,7 +22638,7 @@ var ScriptFunction = class {
22637
22638
  */
22638
22639
  formatCode(scriptCode, options) {
22639
22640
  let code = scriptCode;
22640
- if (options.singleRowReturn) {
22641
+ if (options.singleRowReturn && !code.includes("return")) {
22641
22642
  code = "return (".concat(code, ")");
22642
22643
  }
22643
22644
  if (options.isAsync) {
@@ -46682,9 +46683,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
46682
46683
  */
46683
46684
  async validate() {
46684
46685
  const values = await Promise.all(
46685
- Array.from(this.repeaterMap.values()).map(
46686
- (form) => form.state.isLoaded && form.validate()
46687
- )
46686
+ Array.from(this.repeaterMap.values()).filter((form) => form.state.isLoaded).map((form) => form.validate())
46688
46687
  );
46689
46688
  return values.findIndex((value) => !value) === -1;
46690
46689
  }
@@ -46695,9 +46694,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
46695
46694
  */
46696
46695
  async silentValidate() {
46697
46696
  const values = await Promise.all(
46698
- Array.from(this.repeaterMap.values()).map(
46699
- (form) => form.state.isLoaded && form.silentValidate()
46700
- )
46697
+ Array.from(this.repeaterMap.values()).filter((form) => form.state.isLoaded).map((form) => form.silentValidate())
46701
46698
  );
46702
46699
  return values.findIndex((value) => !value) === -1;
46703
46700
  }
@@ -46885,6 +46882,25 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
46885
46882
  }
46886
46883
  );
46887
46884
  }
46885
+ /**
46886
+ * @description 获取成员注入属性
46887
+ * @param {IDEFormDetail} model 模型
46888
+ * @param {IData} data 数据
46889
+ * @returns {*} {IParams}
46890
+ * @memberof FormMDCtrlRepeaterController
46891
+ */
46892
+ getDetailAttrs(model, data) {
46893
+ const attrs = {};
46894
+ filterPresetAttrs(model.controlAttributes).forEach((item) => {
46895
+ if (item.attrName && item.attrValue) {
46896
+ attrs[item.attrName] = ScriptFactory.execSingleLine(item.attrValue, {
46897
+ ...this.form.getEventArgs(),
46898
+ data
46899
+ });
46900
+ }
46901
+ });
46902
+ return attrs;
46903
+ }
46888
46904
  };
46889
46905
 
46890
46906
  // src/controller/control/form/form-detail/form-page/form-page.state.ts
@@ -90597,7 +90613,8 @@ var RawJSCodeNode = class extends UILogicNode {
90597
90613
  view: ctx.view,
90598
90614
  context: ctx.context,
90599
90615
  params: ctx.viewParam,
90600
- uiLogic: ctx.params
90616
+ uiLogic: ctx.params,
90617
+ args: ctx.parameters
90601
90618
  },
90602
90619
  this.model.code || ""
90603
90620
  );