@ibiz-template/runtime 0.7.41-alpha.130 → 0.7.41-alpha.132
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 +38 -9
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +2 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts +9 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.js +25 -3
- package/out/controller/control/form/search-form/search-form.controller.d.ts +7 -0
- package/out/controller/control/form/search-form/search-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/search-form/search-form.controller.js +13 -1
- package/out/interface/api/common/global-config/i-api-global-app-menu-config.d.ts +1 -0
- package/out/interface/api/common/global-config/i-api-global-app-menu-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +10 -2
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-form-config.d.ts +1 -0
- package/out/interface/api/common/global-config/i-api-global-form-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-img-assets.d.ts +12 -0
- package/out/interface/api/common/global-config/i-api-global-img-assets.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-mob-config.d.ts +1 -0
- package/out/interface/api/common/global-config/i-api-global-mob-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-search-form-config.d.ts +8 -0
- package/out/interface/api/common/global-config/i-api-global-search-form-config.d.ts.map +1 -1
- package/out/interface/api/common/global-config/i-api-global-view-config.d.ts +1 -0
- package/out/interface/api/common/global-config/i-api-global-view-config.d.ts.map +1 -1
- package/out/interface/api/common/i-api-popover-options.d.ts +10 -0
- package/out/interface/api/common/i-api-popover-options.d.ts.map +1 -1
- package/out/utils/script/script-function.d.ts.map +1 -1
- package/out/utils/script/script-function.js +2 -1
- package/package.json +2 -2
- package/src/config/global-config.ts +2 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.ts +29 -7
- package/src/controller/control/form/search-form/search-form.controller.ts +14 -1
- package/src/interface/api/common/global-config/i-api-global-app-menu-config.ts +1 -0
- package/src/interface/api/common/global-config/i-api-global-common-config.ts +11 -2
- package/src/interface/api/common/global-config/i-api-global-form-config.ts +1 -0
- package/src/interface/api/common/global-config/i-api-global-img-assets.ts +12 -0
- package/src/interface/api/common/global-config/i-api-global-mob-config.ts +1 -0
- package/src/interface/api/common/global-config/i-api-global-search-form-config.ts +9 -0
- package/src/interface/api/common/global-config/i-api-global-view-config.ts +1 -0
- package/src/interface/api/common/i-api-popover-options.ts +10 -0
- package/src/utils/script/script-function.ts +2 -1
package/dist/index.esm.js
CHANGED
|
@@ -19972,6 +19972,7 @@ var GlobalConfig = class {
|
|
|
19972
19972
|
// 全局搜索表单配置
|
|
19973
19973
|
this.searchform = {
|
|
19974
19974
|
enableStoredFilters: true,
|
|
19975
|
+
enableEnterSearch: true,
|
|
19975
19976
|
convertParamMode: "default",
|
|
19976
19977
|
resetSearchMode: "default"
|
|
19977
19978
|
};
|
|
@@ -20012,7 +20013,8 @@ var GlobalConfig = class {
|
|
|
20012
20013
|
importTemplNameMode: "default",
|
|
20013
20014
|
aiUploadMaxSize: 5242880,
|
|
20014
20015
|
aiAutoQuestion: true,
|
|
20015
|
-
asyncImport: false
|
|
20016
|
+
asyncImport: false,
|
|
20017
|
+
aiTopicStorageMode: "DEFAULT"
|
|
20016
20018
|
};
|
|
20017
20019
|
// 全局分页流布局配置
|
|
20018
20020
|
this.drtab = {
|
|
@@ -22636,7 +22638,7 @@ var ScriptFunction = class {
|
|
|
22636
22638
|
*/
|
|
22637
22639
|
formatCode(scriptCode, options) {
|
|
22638
22640
|
let code = scriptCode;
|
|
22639
|
-
if (options.singleRowReturn) {
|
|
22641
|
+
if (options.singleRowReturn && !code.includes("return")) {
|
|
22640
22642
|
code = "return (".concat(code, ")");
|
|
22641
22643
|
}
|
|
22642
22644
|
if (options.isAsync) {
|
|
@@ -43701,6 +43703,18 @@ var SearchFormController = class extends FormController {
|
|
|
43701
43703
|
}
|
|
43702
43704
|
return ibiz.config.searchform.resetSearchMode;
|
|
43703
43705
|
}
|
|
43706
|
+
/**
|
|
43707
|
+
* @description 启用回车搜索
|
|
43708
|
+
* @readonly
|
|
43709
|
+
* @type {boolean}
|
|
43710
|
+
* @memberof SearchFormController
|
|
43711
|
+
*/
|
|
43712
|
+
get enableEnterSearch() {
|
|
43713
|
+
if (this.controlParams.enableentersearch) {
|
|
43714
|
+
return this.controlParams.enableentersearch === "true";
|
|
43715
|
+
}
|
|
43716
|
+
return ibiz.config.searchform.enableEnterSearch;
|
|
43717
|
+
}
|
|
43704
43718
|
initState() {
|
|
43705
43719
|
super.initState();
|
|
43706
43720
|
this.state.storedFilters = [];
|
|
@@ -43871,7 +43885,7 @@ var SearchFormController = class extends FormController {
|
|
|
43871
43885
|
*/
|
|
43872
43886
|
async onKeyUp(event) {
|
|
43873
43887
|
const e = event || window.event;
|
|
43874
|
-
if (e && e.code === "Enter") {
|
|
43888
|
+
if (this.enableEnterSearch && e && e.code === "Enter") {
|
|
43875
43889
|
await this.onSearchButtonClick();
|
|
43876
43890
|
}
|
|
43877
43891
|
}
|
|
@@ -46669,9 +46683,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
46669
46683
|
*/
|
|
46670
46684
|
async validate() {
|
|
46671
46685
|
const values = await Promise.all(
|
|
46672
|
-
Array.from(this.repeaterMap.values()).map(
|
|
46673
|
-
(form) => form.state.isLoaded && form.validate()
|
|
46674
|
-
)
|
|
46686
|
+
Array.from(this.repeaterMap.values()).filter((form) => form.state.isLoaded).map((form) => form.validate())
|
|
46675
46687
|
);
|
|
46676
46688
|
return values.findIndex((value) => !value) === -1;
|
|
46677
46689
|
}
|
|
@@ -46682,9 +46694,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
46682
46694
|
*/
|
|
46683
46695
|
async silentValidate() {
|
|
46684
46696
|
const values = await Promise.all(
|
|
46685
|
-
Array.from(this.repeaterMap.values()).map(
|
|
46686
|
-
(form) => form.state.isLoaded && form.silentValidate()
|
|
46687
|
-
)
|
|
46697
|
+
Array.from(this.repeaterMap.values()).filter((form) => form.state.isLoaded).map((form) => form.silentValidate())
|
|
46688
46698
|
);
|
|
46689
46699
|
return values.findIndex((value) => !value) === -1;
|
|
46690
46700
|
}
|
|
@@ -46872,6 +46882,25 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
46872
46882
|
}
|
|
46873
46883
|
);
|
|
46874
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
|
+
}
|
|
46875
46904
|
};
|
|
46876
46905
|
|
|
46877
46906
|
// src/controller/control/form/form-detail/form-page/form-page.state.ts
|