@ibiz-template/runtime 0.7.41-alpha.87 → 0.7.41-alpha.89
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 +108 -31
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.js +2 -2
- package/out/controller/common/view/view.controller.js +2 -1
- package/out/controller/control/app-menu/app-menu.controller.js +4 -4
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts +7 -0
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.js +20 -13
- package/out/controller/control/form/form-detail/form-druipart/form-druipart.state.d.ts +2 -1
- package/out/controller/control/form/form-detail/form-druipart/form-druipart.state.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +2 -1
- package/out/controller/control/tab-exp-panel/tab-exp-panel.controller.d.ts +6 -0
- package/out/controller/control/tab-exp-panel/tab-exp-panel.controller.d.ts.map +1 -1
- package/out/controller/control/tab-exp-panel/tab-exp-panel.controller.js +13 -0
- package/out/controller/control/toolbar/toolbar.controller.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controller.js +9 -7
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +2 -1
- package/out/controller/control/wizard-panel/wizard-panel.controller.d.ts +6 -0
- package/out/controller/control/wizard-panel/wizard-panel.controller.d.ts.map +1 -1
- package/out/controller/control/wizard-panel/wizard-panel.controller.js +22 -0
- package/out/interface/api/app/i-api-app-hub-service.d.ts +7 -7
- package/out/interface/api/app/i-api-app-service.d.ts +1 -1
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +4 -6
- 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-config.d.ts +15 -15
- package/out/interface/api/common/global-config/i-api-global-img-compress-config.d.ts +3 -3
- package/out/interface/api/common/global-config/i-api-global-mob-config.d.ts +4 -4
- package/out/interface/api/common/global-config/i-api-global-view-config.d.ts +5 -5
- package/out/interface/api/common/global-config/i-api-global-water-mark-config.d.ts +14 -14
- package/out/interface/api/common/i-api-data-ability-params.d.ts +4 -4
- package/out/interface/api/common/i-api-modal-data.d.ts +1 -1
- package/out/interface/api/common/i-api-ui-action-result.d.ts +1 -1
- package/out/interface/api/controller/common/i-api.controller.d.ts +2 -2
- package/out/interface/api/controller/control/form-detail/i-api-form-item.controller.d.ts +5 -5
- package/out/interface/api/controller/control/i-api-form.controller.d.ts +7 -6
- package/out/interface/api/controller/control/i-api-form.controller.d.ts.map +1 -1
- package/out/interface/api/controller/view/i-api-view.controller.d.ts +1 -1
- package/out/interface/api/i-api-runtime-ibizsys.d.ts +12 -12
- package/out/interface/api/service/i-api-code-list.service.d.ts +1 -1
- package/out/interface/api/service/i-api-de-service-util.d.ts +1 -1
- package/out/interface/api/state/common/i-api-button-container.state.d.ts +3 -3
- package/out/interface/api/state/common/i-api-button.state.d.ts +3 -3
- package/out/interface/api/state/control/i-api-form.state.d.ts +2 -2
- package/out/interface/api/state/view/i-api-view-session.d.ts +1 -1
- package/out/interface/api/util/i-api-app-util.d.ts +7 -7
- package/out/interface/api/util/i-api-confirm-util.d.ts +4 -4
- package/out/interface/api/util/i-api-file-util.d.ts +6 -6
- package/out/interface/api/util/i-api-fullscreen-util.d.ts +2 -2
- package/out/interface/api/util/i-api-global-util.d.ts +11 -11
- package/out/interface/api/util/i-api-html2canvas-util.d.ts +2 -2
- package/out/interface/api/util/i-api-inline-ai-util.d.ts +1 -1
- package/out/interface/api/util/i-api-message-util.d.ts +5 -5
- package/out/interface/api/util/i-api-modal-util.d.ts +9 -9
- package/out/interface/api/util/i-api-notification-util.d.ts +5 -5
- package/out/interface/api/util/i-api-open-view-util.d.ts +7 -7
- package/out/interface/api/util/i-api-print-preview-util.d.ts +5 -5
- package/out/interface/api/util/i-api-print-preview-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-qrcode-util.d.ts +4 -5
- package/out/interface/api/util/i-api-qrcode-util.d.ts.map +1 -1
- package/out/interface/api/util/i-api-raw-value-util.d.ts +2 -2
- package/out/interface/api/util/i-api-text-util.d.ts +6 -6
- package/out/interface/api/util/i-api-theme-util.d.ts +3 -3
- package/out/interface/api/util/i-api-ui-action-util.d.ts +3 -3
- package/out/interface/api/util/i-api-water-mark-util.d.ts +1 -1
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +7 -3
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -19442,8 +19442,8 @@ var GlobalConfig = class {
|
|
|
19442
19442
|
enableKnowledgeBaseSelect: true,
|
|
19443
19443
|
enableRecallConfigSetting: true,
|
|
19444
19444
|
reRankDefaultValue: 2,
|
|
19445
|
-
maxChunksDefaultValue:
|
|
19446
|
-
chunkThresholdDefaultValue: 0
|
|
19445
|
+
maxChunksDefaultValue: void 0,
|
|
19446
|
+
chunkThresholdDefaultValue: void 0,
|
|
19447
19447
|
chunkPageIndexDefaultValue: void 0,
|
|
19448
19448
|
enableAsyncActionNotice: false,
|
|
19449
19449
|
aiChunkView: "",
|
|
@@ -20923,12 +20923,24 @@ async function calcDyUiactionGroup(refUIActionGroup, context, params) {
|
|
|
20923
20923
|
}
|
|
20924
20924
|
async function calcUIActionDetails(uiactionGroupDetails, context, params) {
|
|
20925
20925
|
const refActionDetails = [];
|
|
20926
|
-
uiactionGroupDetails.forEach(
|
|
20927
|
-
|
|
20928
|
-
|
|
20929
|
-
|
|
20926
|
+
uiactionGroupDetails.forEach(
|
|
20927
|
+
(detail, index) => {
|
|
20928
|
+
var _a3, _b2, _c, _d;
|
|
20929
|
+
if ((_a3 = detail.capLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
20930
|
+
detail.caption = ibiz.i18n.t(
|
|
20931
|
+
detail.capLanguageRes.lanResTag,
|
|
20932
|
+
detail.caption
|
|
20933
|
+
);
|
|
20934
|
+
if ((_b2 = detail.tooltipLanguageRes) == null ? void 0 : _b2.lanResTag)
|
|
20935
|
+
detail.tooltip = ibiz.i18n.t(
|
|
20936
|
+
detail.tooltipLanguageRes.lanResTag,
|
|
20937
|
+
detail.tooltip
|
|
20938
|
+
);
|
|
20939
|
+
if (detail.detailType === "DEUIACTIONGROUP" && ((_c = detail.refUIActionGroup) == null ? void 0 : _c.dynamicMode) === 1 && !((_d = detail.refUIActionGroup) == null ? void 0 : _d.uiactionGroupDetails)) {
|
|
20940
|
+
refActionDetails.push({ detail, index });
|
|
20941
|
+
}
|
|
20930
20942
|
}
|
|
20931
|
-
|
|
20943
|
+
);
|
|
20932
20944
|
const asyncTasks = [];
|
|
20933
20945
|
refActionDetails.forEach(({ detail }) => {
|
|
20934
20946
|
const { refUIActionGroup } = detail;
|
|
@@ -28521,7 +28533,8 @@ var ViewController = class extends BaseController {
|
|
|
28521
28533
|
* @protected
|
|
28522
28534
|
*/
|
|
28523
28535
|
convertMultipleLanguages() {
|
|
28524
|
-
|
|
28536
|
+
var _a3;
|
|
28537
|
+
if ((_a3 = this.model.capLanguageRes) == null ? void 0 : _a3.lanResTag) {
|
|
28525
28538
|
this.model.caption = ibiz.i18n.t(
|
|
28526
28539
|
this.model.capLanguageRes.lanResTag,
|
|
28527
28540
|
this.model.caption
|
|
@@ -31204,18 +31217,18 @@ var AppMenuController = class extends ControlController {
|
|
|
31204
31217
|
var _a3;
|
|
31205
31218
|
const convertItemLang = (menuItems) => {
|
|
31206
31219
|
menuItems.forEach((item) => {
|
|
31207
|
-
var _a4;
|
|
31208
|
-
if (item.capLanguageRes
|
|
31220
|
+
var _a4, _b2, _c;
|
|
31221
|
+
if ((_a4 = item.capLanguageRes) == null ? void 0 : _a4.lanResTag)
|
|
31209
31222
|
item.caption = ibiz.i18n.t(
|
|
31210
31223
|
item.capLanguageRes.lanResTag,
|
|
31211
31224
|
item.caption
|
|
31212
31225
|
);
|
|
31213
|
-
if (item.tooltipLanguageRes
|
|
31226
|
+
if ((_b2 = item.tooltipLanguageRes) == null ? void 0 : _b2.lanResTag)
|
|
31214
31227
|
item.tooltip = ibiz.i18n.t(
|
|
31215
31228
|
item.tooltipLanguageRes.lanResTag,
|
|
31216
31229
|
item.tooltip
|
|
31217
31230
|
);
|
|
31218
|
-
if ((
|
|
31231
|
+
if ((_c = item.appMenuItems) == null ? void 0 : _c.length)
|
|
31219
31232
|
convertItemLang(item.appMenuItems);
|
|
31220
31233
|
});
|
|
31221
31234
|
};
|
|
@@ -35485,22 +35498,27 @@ var ToolbarController = class extends ControlController {
|
|
|
35485
35498
|
* @protected
|
|
35486
35499
|
*/
|
|
35487
35500
|
convertMultipleLanguages() {
|
|
35488
|
-
|
|
35501
|
+
var _a3;
|
|
35502
|
+
const convertItemLang = (items) => {
|
|
35489
35503
|
items.forEach((item) => {
|
|
35490
|
-
|
|
35504
|
+
var _a4, _b2;
|
|
35505
|
+
if ((_a4 = item.capLanguageRes) == null ? void 0 : _a4.lanResTag)
|
|
35491
35506
|
item.caption = ibiz.i18n.t(
|
|
35492
35507
|
item.capLanguageRes.lanResTag,
|
|
35493
35508
|
item.caption
|
|
35494
35509
|
);
|
|
35495
|
-
|
|
35510
|
+
if ((_b2 = item.tooltipLanguageRes) == null ? void 0 : _b2.lanResTag)
|
|
35511
|
+
item.tooltip = ibiz.i18n.t(
|
|
35512
|
+
item.tooltipLanguageRes.lanResTag,
|
|
35513
|
+
item.tooltip
|
|
35514
|
+
);
|
|
35496
35515
|
if (item.itemType === "ITEMS" && item.detoolbarItems) {
|
|
35497
|
-
|
|
35516
|
+
convertItemLang(item.detoolbarItems);
|
|
35498
35517
|
}
|
|
35499
35518
|
});
|
|
35500
35519
|
};
|
|
35501
|
-
if (
|
|
35502
|
-
|
|
35503
|
-
}
|
|
35520
|
+
if ((_a3 = this.model.detoolbarItems) == null ? void 0 : _a3.length)
|
|
35521
|
+
convertItemLang(this.model.detoolbarItems);
|
|
35504
35522
|
}
|
|
35505
35523
|
};
|
|
35506
35524
|
|
|
@@ -40148,13 +40166,10 @@ var PortletPartController = class {
|
|
|
40148
40166
|
if (sysCss == null ? void 0 : sysCss.cssName) {
|
|
40149
40167
|
this.state.class.container.push(sysCss.cssName);
|
|
40150
40168
|
}
|
|
40151
|
-
|
|
40152
|
-
this.state.title = ibiz.i18n.t(titleLanguageRes.lanResTag, title);
|
|
40153
|
-
} else {
|
|
40154
|
-
this.state.title = title;
|
|
40155
|
-
}
|
|
40169
|
+
this.state.title = (titleLanguageRes == null ? void 0 : titleLanguageRes.lanResTag) ? ibiz.i18n.t(titleLanguageRes.lanResTag, title) : title;
|
|
40156
40170
|
this.config = { srftitle: this.state.title };
|
|
40157
40171
|
Object.assign(this.params, this.config);
|
|
40172
|
+
await this.initUIActions();
|
|
40158
40173
|
await this.initActionStates();
|
|
40159
40174
|
}
|
|
40160
40175
|
/**
|
|
@@ -40228,11 +40243,7 @@ var PortletPartController = class {
|
|
|
40228
40243
|
resetConfig() {
|
|
40229
40244
|
const { title, titleLanguageRes } = this.model;
|
|
40230
40245
|
this.params = new IBizParams2({}, this.dashboard.params);
|
|
40231
|
-
|
|
40232
|
-
this.state.title = ibiz.i18n.t(titleLanguageRes.lanResTag, title);
|
|
40233
|
-
} else {
|
|
40234
|
-
this.state.title = title;
|
|
40235
|
-
}
|
|
40246
|
+
this.state.title = (titleLanguageRes == null ? void 0 : titleLanguageRes.lanResTag) ? ibiz.i18n.t(titleLanguageRes.lanResTag, title) : title;
|
|
40236
40247
|
this.config = { srftitle: this.state.title };
|
|
40237
40248
|
Object.assign(this.params, this.config);
|
|
40238
40249
|
}
|
|
@@ -40256,6 +40267,18 @@ var PortletPartController = class {
|
|
|
40256
40267
|
);
|
|
40257
40268
|
}
|
|
40258
40269
|
}
|
|
40270
|
+
/**
|
|
40271
|
+
* @description 初始化界面行为组
|
|
40272
|
+
* @protected
|
|
40273
|
+
* @returns {*} {Promise<void>}
|
|
40274
|
+
* @memberof PortletPartController
|
|
40275
|
+
*/
|
|
40276
|
+
async initUIActions() {
|
|
40277
|
+
const { uiactionGroup } = this.model;
|
|
40278
|
+
if (!uiactionGroup)
|
|
40279
|
+
return;
|
|
40280
|
+
await calcUIActionGroup(uiactionGroup, this.context, this.params);
|
|
40281
|
+
}
|
|
40259
40282
|
/**
|
|
40260
40283
|
* 初始化标题右侧界面行为按钮的状态
|
|
40261
40284
|
*
|
|
@@ -52385,7 +52408,8 @@ var GridController = class extends MDControlController {
|
|
|
52385
52408
|
convertMultipleLanguages() {
|
|
52386
52409
|
const convertColumnCaption = (columns) => {
|
|
52387
52410
|
columns.forEach((column) => {
|
|
52388
|
-
|
|
52411
|
+
var _a3;
|
|
52412
|
+
if ((_a3 = column.capLanguageRes) == null ? void 0 : _a3.lanResTag) {
|
|
52389
52413
|
column.caption = ibiz.i18n.t(
|
|
52390
52414
|
column.capLanguageRes.lanResTag,
|
|
52391
52415
|
column.caption
|
|
@@ -56818,6 +56842,22 @@ var TabExpPanelController = class extends ControlController {
|
|
|
56818
56842
|
this.counter.destroy();
|
|
56819
56843
|
}
|
|
56820
56844
|
}
|
|
56845
|
+
/**
|
|
56846
|
+
* @description 转换各类多语言
|
|
56847
|
+
* @protected
|
|
56848
|
+
* @memberof TabExpPanelController
|
|
56849
|
+
*/
|
|
56850
|
+
convertMultipleLanguages() {
|
|
56851
|
+
const viewPanel = this.model.controls;
|
|
56852
|
+
viewPanel == null ? void 0 : viewPanel.forEach((panel) => {
|
|
56853
|
+
var _a3;
|
|
56854
|
+
if ((_a3 = panel.capLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
56855
|
+
panel.caption = ibiz.i18n.t(
|
|
56856
|
+
panel.capLanguageRes.lanResTag,
|
|
56857
|
+
panel.caption
|
|
56858
|
+
);
|
|
56859
|
+
});
|
|
56860
|
+
}
|
|
56821
56861
|
};
|
|
56822
56862
|
|
|
56823
56863
|
// src/controller/control/tree/tree.controller.ts
|
|
@@ -59321,6 +59361,42 @@ var WizardPanelController = class extends ControlController {
|
|
|
59321
59361
|
});
|
|
59322
59362
|
}
|
|
59323
59363
|
}
|
|
59364
|
+
/**
|
|
59365
|
+
* @description 转换各类多语言
|
|
59366
|
+
* @protected
|
|
59367
|
+
* @memberof WizardPanelController
|
|
59368
|
+
*/
|
|
59369
|
+
convertMultipleLanguages() {
|
|
59370
|
+
const { dewizard } = this.model;
|
|
59371
|
+
if (!dewizard)
|
|
59372
|
+
return;
|
|
59373
|
+
const {
|
|
59374
|
+
dewizardSteps,
|
|
59375
|
+
prevCapLanResTag,
|
|
59376
|
+
nextCapLanResTag,
|
|
59377
|
+
finishCapLanResTag
|
|
59378
|
+
} = dewizard;
|
|
59379
|
+
if (prevCapLanResTag)
|
|
59380
|
+
dewizard.prevCaption = ibiz.i18n.t(
|
|
59381
|
+
prevCapLanResTag,
|
|
59382
|
+
dewizard.prevCaption
|
|
59383
|
+
);
|
|
59384
|
+
if (nextCapLanResTag)
|
|
59385
|
+
dewizard.nextCaption = ibiz.i18n.t(
|
|
59386
|
+
nextCapLanResTag,
|
|
59387
|
+
dewizard.nextCaption
|
|
59388
|
+
);
|
|
59389
|
+
if (finishCapLanResTag)
|
|
59390
|
+
dewizard.finishCaption = ibiz.i18n.t(
|
|
59391
|
+
finishCapLanResTag,
|
|
59392
|
+
dewizard.finishCaption
|
|
59393
|
+
);
|
|
59394
|
+
dewizardSteps == null ? void 0 : dewizardSteps.forEach((step) => {
|
|
59395
|
+
var _a3;
|
|
59396
|
+
if ((_a3 = step.titleLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
59397
|
+
step.title = ibiz.i18n.t(step.titleLanguageRes.lanResTag, step.title);
|
|
59398
|
+
});
|
|
59399
|
+
}
|
|
59324
59400
|
};
|
|
59325
59401
|
|
|
59326
59402
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
@@ -60998,7 +61074,8 @@ var TreeGridExController = class extends TreeController {
|
|
|
60998
61074
|
convertMultipleLanguages() {
|
|
60999
61075
|
const convertColumnCaption = (columns) => {
|
|
61000
61076
|
columns.forEach((column) => {
|
|
61001
|
-
|
|
61077
|
+
var _a3;
|
|
61078
|
+
if ((_a3 = column.capLanguageRes) == null ? void 0 : _a3.lanResTag) {
|
|
61002
61079
|
column.caption = ibiz.i18n.t(
|
|
61003
61080
|
column.capLanguageRes.lanResTag,
|
|
61004
61081
|
column.caption
|