@ibiz-template/runtime 0.7.41-alpha.118 → 0.7.41-alpha.119
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 +24 -4
- 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/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 +14 -0
- package/out/controller/utils/data-file-util/data-file-util.d.ts +7 -6
- package/out/controller/utils/data-file-util/data-file-util.d.ts.map +1 -1
- package/out/controller/utils/data-file-util/data-file-util.js +13 -7
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +8 -0
- 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-search-form-config.d.ts +9 -0
- package/out/interface/api/common/global-config/i-api-global-search-form-config.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-search-form.controller.d.ts +1 -0
- package/out/interface/api/controller/control/i-api-search-form.controller.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-drtab.state.d.ts +20 -0
- package/out/interface/api/state/control/i-api-drtab.state.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/config/global-config.ts +2 -0
- package/src/controller/control/form/search-form/search-form.controller.ts +14 -0
- package/src/controller/utils/data-file-util/data-file-util.ts +13 -6
- package/src/interface/api/common/global-config/i-api-global-common-config.ts +9 -0
- package/src/interface/api/common/global-config/i-api-global-search-form-config.ts +10 -0
- package/src/interface/api/controller/control/i-api-search-form.controller.ts +1 -0
- package/src/interface/api/state/control/i-api-drtab.state.ts +23 -0
package/dist/index.esm.js
CHANGED
|
@@ -19972,7 +19972,8 @@ var GlobalConfig = class {
|
|
|
19972
19972
|
// 全局搜索表单配置
|
|
19973
19973
|
this.searchform = {
|
|
19974
19974
|
enableStoredFilters: true,
|
|
19975
|
-
convertParamMode: "default"
|
|
19975
|
+
convertParamMode: "default",
|
|
19976
|
+
resetSearchMode: "default"
|
|
19976
19977
|
};
|
|
19977
19978
|
// 全局树配置
|
|
19978
19979
|
this.tree = {
|
|
@@ -20006,7 +20007,8 @@ var GlobalConfig = class {
|
|
|
20006
20007
|
counterMaxValue: 99,
|
|
20007
20008
|
enhancedUI: false,
|
|
20008
20009
|
maxExportRowsDefault: 1e3,
|
|
20009
|
-
uiActionPermissionMode: "default"
|
|
20010
|
+
uiActionPermissionMode: "default",
|
|
20011
|
+
importTemplNameMode: "default"
|
|
20010
20012
|
};
|
|
20011
20013
|
// 全局分页流布局配置
|
|
20012
20014
|
this.drtab = {
|
|
@@ -26259,7 +26261,7 @@ async function openDataImport(opts) {
|
|
|
26259
26261
|
modal.present();
|
|
26260
26262
|
await modal.onWillDismiss();
|
|
26261
26263
|
}
|
|
26262
|
-
async function downloadImportTemplate(appDataEntity, dataImport, context, params) {
|
|
26264
|
+
async function downloadImportTemplate(appDataEntity, dataImport, context, params, importTemplName) {
|
|
26263
26265
|
let templateUrl = "/".concat(appDataEntity.codeName2.toLowerCase(), "/importtemplate");
|
|
26264
26266
|
const queryParam = { ...params || {} };
|
|
26265
26267
|
if (dataImport == null ? void 0 : dataImport.codeName) {
|
|
@@ -26278,7 +26280,11 @@ async function downloadImportTemplate(appDataEntity, dataImport, context, params
|
|
|
26278
26280
|
params: queryParam
|
|
26279
26281
|
});
|
|
26280
26282
|
if (res.status === 200) {
|
|
26281
|
-
|
|
26283
|
+
let fileName = ibiz.util.file.getFileName(res);
|
|
26284
|
+
if (importTemplName) {
|
|
26285
|
+
const bookType = fileName.split(".").pop();
|
|
26286
|
+
fileName = "".concat(importTemplName, ".").concat(bookType);
|
|
26287
|
+
}
|
|
26282
26288
|
const blob = new Blob([res.data], {
|
|
26283
26289
|
type: "application/vnd.ms-excel"
|
|
26284
26290
|
});
|
|
@@ -46501,6 +46507,18 @@ var SearchFormController = class extends FormController {
|
|
|
46501
46507
|
}
|
|
46502
46508
|
return ibiz.config.searchform.convertParamMode;
|
|
46503
46509
|
}
|
|
46510
|
+
/**
|
|
46511
|
+
* @description 重置搜索模式,default:默认模式,清空搜索参数并搜索;clearonly:仅清空搜索参数
|
|
46512
|
+
* @readonly
|
|
46513
|
+
* @type {('default' | 'clearonly')}
|
|
46514
|
+
* @memberof SearchFormController
|
|
46515
|
+
*/
|
|
46516
|
+
get resetSearchMode() {
|
|
46517
|
+
if (this.controlParams.resetsearchmode) {
|
|
46518
|
+
return this.controlParams.resetsearchmode;
|
|
46519
|
+
}
|
|
46520
|
+
return ibiz.config.searchform.resetSearchMode;
|
|
46521
|
+
}
|
|
46504
46522
|
initState() {
|
|
46505
46523
|
super.initState();
|
|
46506
46524
|
this.state.storedFilters = [];
|
|
@@ -46645,6 +46663,8 @@ var SearchFormController = class extends FormController {
|
|
|
46645
46663
|
*/
|
|
46646
46664
|
async reset() {
|
|
46647
46665
|
await this.load();
|
|
46666
|
+
if (this.resetSearchMode === "clearonly")
|
|
46667
|
+
return;
|
|
46648
46668
|
await this.search();
|
|
46649
46669
|
}
|
|
46650
46670
|
/**
|