@ibiz-template/runtime 0.7.41-alpha.115 → 0.7.41-alpha.116
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 +26 -12
- package/dist/index.system.min.js +1 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +1 -0
- package/out/controller/common/control/md-control.controller.js +2 -2
- package/out/controller/control/data-view/data-view.controller.d.ts.map +1 -1
- package/out/controller/control/data-view/data-view.controller.js +1 -1
- package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.controller.js +2 -0
- package/out/controller/control/list/list.controller.d.ts.map +1 -1
- package/out/controller/control/list/list.controller.js +1 -1
- package/out/controller/control/toolbar/toolbar.controller.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controller.js +1 -1
- package/out/controller/utils/button-state/button-container.state.d.ts +1 -1
- package/out/controller/utils/button-state/button-container.state.d.ts.map +1 -1
- package/out/controller/utils/button-state/button-container.state.js +2 -2
- package/out/controller/utils/button-state/ui-action-button.state.d.ts +1 -1
- package/out/controller/utils/button-state/ui-action-button.state.d.ts.map +1 -1
- package/out/controller/utils/button-state/ui-action-button.state.js +9 -3
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts +9 -0
- package/out/interface/api/common/global-config/i-api-global-common-config.d.ts.map +1 -1
- package/out/interface/api/state/common/i-api-button-container.state.d.ts +2 -1
- package/out/interface/api/state/common/i-api-button-container.state.d.ts.map +1 -1
- package/out/interface/api/state/common/i-api-button.state.d.ts +2 -1
- package/out/interface/api/state/common/i-api-button.state.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/config/global-config.ts +1 -0
- package/src/controller/common/control/md-control.controller.ts +2 -2
- package/src/controller/control/data-view/data-view.controller.ts +1 -1
- package/src/controller/control/kanban/kanban.controller.ts +2 -0
- package/src/controller/control/list/list.controller.ts +1 -0
- package/src/controller/control/toolbar/toolbar.controller.ts +6 -1
- package/src/controller/utils/button-state/button-container.state.ts +2 -1
- package/src/controller/utils/button-state/ui-action-button.state.ts +11 -1
- package/src/interface/api/common/global-config/i-api-global-common-config.ts +10 -0
- package/src/interface/api/state/common/i-api-button-container.state.ts +2 -0
- package/src/interface/api/state/common/i-api-button.state.ts +2 -0
package/dist/index.esm.js
CHANGED
|
@@ -20005,7 +20005,8 @@ var GlobalConfig = class {
|
|
|
20005
20005
|
aiChunkEntity: "",
|
|
20006
20006
|
counterMaxValue: 99,
|
|
20007
20007
|
enhancedUI: false,
|
|
20008
|
-
maxExportRowsDefault: 1e3
|
|
20008
|
+
maxExportRowsDefault: 1e3,
|
|
20009
|
+
uiActionPermissionMode: "default"
|
|
20009
20010
|
};
|
|
20010
20011
|
// 全局分页流布局配置
|
|
20011
20012
|
this.drtab = {
|
|
@@ -25426,7 +25427,7 @@ var UIActionButtonState = class {
|
|
|
25426
25427
|
);
|
|
25427
25428
|
}
|
|
25428
25429
|
}
|
|
25429
|
-
async update(context, data, appDeId) {
|
|
25430
|
+
async update(context, data, appDeId, selections = []) {
|
|
25430
25431
|
if (!this.isInit) {
|
|
25431
25432
|
await this.init();
|
|
25432
25433
|
}
|
|
@@ -25436,7 +25437,11 @@ var UIActionButtonState = class {
|
|
|
25436
25437
|
this.visible = !this.noPermissionHidden;
|
|
25437
25438
|
} else {
|
|
25438
25439
|
this.visible = true;
|
|
25439
|
-
|
|
25440
|
+
let disabled = this.noDataDisabled && (!data || this.noKeyDisabled && !data.srfkey);
|
|
25441
|
+
if (ibiz.config.common.uiActionPermissionMode === "strict" && (this.actionTarget === "SINGLEDATA" || this.actionTarget === "SINGLEKEY")) {
|
|
25442
|
+
disabled = disabled || selections.length > 1;
|
|
25443
|
+
}
|
|
25444
|
+
this.disabled = disabled;
|
|
25440
25445
|
}
|
|
25441
25446
|
await this.calcEnableScript(context, data);
|
|
25442
25447
|
await this.calcVisibleScript(context, data);
|
|
@@ -25506,10 +25511,10 @@ var ButtonContainerState = class {
|
|
|
25506
25511
|
}
|
|
25507
25512
|
});
|
|
25508
25513
|
}
|
|
25509
|
-
async update(context, data, appDeId) {
|
|
25514
|
+
async update(context, data, appDeId, selections) {
|
|
25510
25515
|
await Promise.all(
|
|
25511
25516
|
this.children.map((child) => {
|
|
25512
|
-
return child.update(context, data, appDeId);
|
|
25517
|
+
return child.update(context, data, appDeId, selections);
|
|
25513
25518
|
})
|
|
25514
25519
|
);
|
|
25515
25520
|
this.visible = this.computeVisable();
|
|
@@ -31012,12 +31017,12 @@ var MDControlController = class extends ControlController {
|
|
|
31012
31017
|
(_a3 = this.batchToolbarController) == null ? void 0 : _a3.calcButtonState(
|
|
31013
31018
|
data,
|
|
31014
31019
|
this.model.appDataEntityId,
|
|
31015
|
-
{ view: this.view, ctrl: this }
|
|
31020
|
+
{ view: this.view, ctrl: this, data: selection }
|
|
31016
31021
|
);
|
|
31017
31022
|
(_b2 = this.quickToolbarController) == null ? void 0 : _b2.calcButtonState(
|
|
31018
31023
|
data,
|
|
31019
31024
|
this.model.appDataEntityId,
|
|
31020
|
-
{ view: this.view, ctrl: this }
|
|
31025
|
+
{ view: this.view, ctrl: this, data: selection }
|
|
31021
31026
|
);
|
|
31022
31027
|
}
|
|
31023
31028
|
/**
|
|
@@ -36091,7 +36096,12 @@ var ToolbarController = class extends ControlController {
|
|
|
36091
36096
|
if (data && data instanceof ControlVO) {
|
|
36092
36097
|
_data = data.getOrigin();
|
|
36093
36098
|
}
|
|
36094
|
-
await this.state.buttonsState.update(
|
|
36099
|
+
await this.state.buttonsState.update(
|
|
36100
|
+
this.context,
|
|
36101
|
+
_data,
|
|
36102
|
+
appDeId,
|
|
36103
|
+
_params.data
|
|
36104
|
+
);
|
|
36095
36105
|
this.allToolbarItems.forEach((item) => {
|
|
36096
36106
|
const itemState = this.state.buttonsState[item.id];
|
|
36097
36107
|
if (item.hiddenItem) {
|
|
@@ -43901,7 +43911,8 @@ var DataViewControlController = class extends MDControlController {
|
|
|
43901
43911
|
(_a3 = actionGroup.groupActionGroupState) == null ? void 0 : _a3.update(
|
|
43902
43912
|
this.context,
|
|
43903
43913
|
actionGroup.selectedData[0],
|
|
43904
|
-
this.model.appDataEntityId
|
|
43914
|
+
this.model.appDataEntityId,
|
|
43915
|
+
actionGroup.selectedData
|
|
43905
43916
|
);
|
|
43906
43917
|
}
|
|
43907
43918
|
}
|
|
@@ -55354,7 +55365,8 @@ var ListController = class extends MDControlController {
|
|
|
55354
55365
|
(_a3 = actionGroup.groupActionGroupState) == null ? void 0 : _a3.update(
|
|
55355
55366
|
this.context,
|
|
55356
55367
|
actionGroup.selectedData[0],
|
|
55357
|
-
this.model.appDataEntityId
|
|
55368
|
+
this.model.appDataEntityId,
|
|
55369
|
+
actionGroup.selectedData
|
|
55358
55370
|
);
|
|
55359
55371
|
}
|
|
55360
55372
|
}
|
|
@@ -61923,11 +61935,13 @@ var KanbanController = class extends DataViewControlController {
|
|
|
61923
61935
|
);
|
|
61924
61936
|
batchtoolbar == null ? void 0 : batchtoolbar.calcButtonState(data, this.model.appDataEntityId, {
|
|
61925
61937
|
view: this.view,
|
|
61926
|
-
ctrl: this
|
|
61938
|
+
ctrl: this,
|
|
61939
|
+
data: selection
|
|
61927
61940
|
});
|
|
61928
61941
|
quicktoolbar == null ? void 0 : quicktoolbar.calcButtonState(data, this.model.appDataEntityId, {
|
|
61929
61942
|
view: this.view,
|
|
61930
|
-
ctrl: this
|
|
61943
|
+
ctrl: this,
|
|
61944
|
+
data: selection
|
|
61931
61945
|
});
|
|
61932
61946
|
}
|
|
61933
61947
|
};
|