@ibiz-template/runtime 0.7.41-alpha.85 → 0.7.41-alpha.86
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 -15
- package/dist/index.system.min.js +1 -1
- package/out/controller/control/toolbar/toolbar.controller.d.ts +4 -0
- package/out/controller/control/toolbar/toolbar.controller.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controller.js +16 -10
- package/out/interface/api/util/i-api-print-preview-util.d.ts +7 -0
- package/out/interface/api/util/i-api-print-preview-util.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +11 -2
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -34044,7 +34044,7 @@ var UIActionProviderBase = class {
|
|
|
34044
34044
|
if (action.closeEditView) {
|
|
34045
34045
|
view.state.isClosing = true;
|
|
34046
34046
|
}
|
|
34047
|
-
const { appDEUILogicId, appDataEntityId, uilogicAttachMode } = action;
|
|
34047
|
+
const { appDEUILogicId, appDataEntityId, uilogicAttachMode, appId: appId2 } = action;
|
|
34048
34048
|
if (uilogicAttachMode === "REPLACE") {
|
|
34049
34049
|
if (!appDEUILogicId) {
|
|
34050
34050
|
throw new RuntimeModelError37(
|
|
@@ -34058,6 +34058,9 @@ var UIActionProviderBase = class {
|
|
|
34058
34058
|
data,
|
|
34059
34059
|
params
|
|
34060
34060
|
);
|
|
34061
|
+
Object.assign(resultContext, {
|
|
34062
|
+
srfappid: appId2
|
|
34063
|
+
});
|
|
34061
34064
|
const res = await execUILogic(appDEUILogicId, appDataEntityId, {
|
|
34062
34065
|
...args,
|
|
34063
34066
|
context: resultContext,
|
|
@@ -34092,11 +34095,11 @@ var UIActionProviderBase = class {
|
|
|
34092
34095
|
ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
|
|
34093
34096
|
);
|
|
34094
34097
|
}
|
|
34095
|
-
|
|
34096
|
-
|
|
34097
|
-
|
|
34098
|
-
|
|
34099
|
-
);
|
|
34098
|
+
const tempParams = this.mergeArgsByResult(args, result);
|
|
34099
|
+
Object.assign(tempParams.context, {
|
|
34100
|
+
srfappid: appId2
|
|
34101
|
+
});
|
|
34102
|
+
await execUILogic(appDEUILogicId, appDataEntityId, tempParams);
|
|
34100
34103
|
}
|
|
34101
34104
|
const nextActionParams = this.mergeArgsByResult(args, result);
|
|
34102
34105
|
if (action.closeEditView) {
|
|
@@ -35258,6 +35261,21 @@ var ToolbarController = class extends ControlController {
|
|
|
35258
35261
|
async onCreated() {
|
|
35259
35262
|
await super.onCreated();
|
|
35260
35263
|
this.state.viewMode = this.ctx.view.modal.mode;
|
|
35264
|
+
await this.initButtonState();
|
|
35265
|
+
await this.initToolbarItemProviders();
|
|
35266
|
+
if (!this.state.manualCalcButtonState) {
|
|
35267
|
+
await this.calcButtonState(void 0, this.model.appDataEntityId, {
|
|
35268
|
+
view: this.view,
|
|
35269
|
+
ctrl: this
|
|
35270
|
+
});
|
|
35271
|
+
} else {
|
|
35272
|
+
await this.state.buttonsState.init();
|
|
35273
|
+
}
|
|
35274
|
+
}
|
|
35275
|
+
/**
|
|
35276
|
+
* 初始化工具栏按钮状态对象
|
|
35277
|
+
*/
|
|
35278
|
+
async initButtonState() {
|
|
35261
35279
|
const asyncTasks = [];
|
|
35262
35280
|
recursiveIterate2(
|
|
35263
35281
|
this.model,
|
|
@@ -35310,15 +35328,6 @@ var ToolbarController = class extends ControlController {
|
|
|
35310
35328
|
);
|
|
35311
35329
|
}
|
|
35312
35330
|
});
|
|
35313
|
-
await this.initToolbarItemProviders();
|
|
35314
|
-
if (!this.state.manualCalcButtonState) {
|
|
35315
|
-
await this.calcButtonState(void 0, this.model.appDataEntityId, {
|
|
35316
|
-
view: this.view,
|
|
35317
|
-
ctrl: this
|
|
35318
|
-
});
|
|
35319
|
-
} else {
|
|
35320
|
-
await this.state.buttonsState.init();
|
|
35321
|
-
}
|
|
35322
35331
|
}
|
|
35323
35332
|
/**
|
|
35324
35333
|
* 生命周期-加载完成,实际执行逻辑,子类重写用这个
|