@ibiz-template/runtime 0.7.41-alpha.92 → 0.7.41-alpha.94
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 +17 -1
- package/dist/index.system.min.js +1 -1
- package/out/controller/control/form/form-detail/form-button/form-button.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-button/form-button.controller.js +8 -0
- package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.js +7 -1
- package/out/service/service/code-list/code-list.service.d.ts.map +1 -1
- package/out/service/service/code-list/code-list.service.js +5 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -42445,13 +42445,19 @@ var SearchBarController = class extends ControlController {
|
|
|
42445
42445
|
* @memberof SearchBarController
|
|
42446
42446
|
*/
|
|
42447
42447
|
convertMultipleLanguages() {
|
|
42448
|
-
const { searchBarGroups = [] } = this.model;
|
|
42448
|
+
const { searchBarGroups = [], searchBarFilters } = this.model;
|
|
42449
42449
|
searchBarGroups.forEach((item) => {
|
|
42450
42450
|
var _a3;
|
|
42451
42451
|
if ((_a3 = item.capLanguageRes) == null ? void 0 : _a3.lanResTag) {
|
|
42452
42452
|
item.caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
42453
42453
|
}
|
|
42454
42454
|
});
|
|
42455
|
+
searchBarFilters == null ? void 0 : searchBarFilters.forEach((item) => {
|
|
42456
|
+
var _a3;
|
|
42457
|
+
if ((_a3 = item.capLanguageRes) == null ? void 0 : _a3.lanResTag) {
|
|
42458
|
+
item.caption = ibiz.i18n.t(item.capLanguageRes.lanResTag, item.caption);
|
|
42459
|
+
}
|
|
42460
|
+
});
|
|
42455
42461
|
}
|
|
42456
42462
|
};
|
|
42457
42463
|
|
|
@@ -46490,6 +46496,12 @@ var FormButtonController = class extends FormDetailController {
|
|
|
46490
46496
|
async onInit() {
|
|
46491
46497
|
super.onInit();
|
|
46492
46498
|
await this.initActionStates();
|
|
46499
|
+
const { tooltip, tooltipLanguageRes, capLanguageRes } = this.model;
|
|
46500
|
+
if (tooltipLanguageRes == null ? void 0 : tooltipLanguageRes.lanResTag) {
|
|
46501
|
+
this.model.tooltip = ibiz.i18n.t(tooltipLanguageRes.lanResTag, tooltip);
|
|
46502
|
+
} else if (capLanguageRes == null ? void 0 : capLanguageRes.lanResTag) {
|
|
46503
|
+
this.model.tooltip = ibiz.i18n.t(capLanguageRes.lanResTag, tooltip);
|
|
46504
|
+
}
|
|
46493
46505
|
}
|
|
46494
46506
|
/**
|
|
46495
46507
|
* 初始化界面行为按钮的状态
|
|
@@ -69496,12 +69508,16 @@ var CodeListService = class {
|
|
|
69496
69508
|
* @return {*} {Promise<CodeListItem[]>}
|
|
69497
69509
|
*/
|
|
69498
69510
|
async get(tag, context, params) {
|
|
69511
|
+
var _a3;
|
|
69499
69512
|
const codeList = this.allCodeLists.get(tag);
|
|
69500
69513
|
if (!codeList) {
|
|
69501
69514
|
throw new RuntimeError57(
|
|
69502
69515
|
ibiz.i18n.t("runtime.service.noFindCodeList", { tag })
|
|
69503
69516
|
);
|
|
69504
69517
|
}
|
|
69518
|
+
if ((_a3 = codeList.emptyTextLanguageRes) == null ? void 0 : _a3.lanResTag) {
|
|
69519
|
+
codeList.emptyText = ibiz.i18n.t(codeList.emptyTextLanguageRes.lanResTag);
|
|
69520
|
+
}
|
|
69505
69521
|
if (codeList.codeListType === "STATIC") {
|
|
69506
69522
|
return this.getStatic(codeList);
|
|
69507
69523
|
}
|