@ibiz-template/runtime 0.7.41-alpha.53 → 0.7.41-alpha.54

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 CHANGED
@@ -55010,9 +55010,20 @@ var FormButtonController = class extends FormDetailController {
55010
55010
  * @param {IData} data
55011
55011
  */
55012
55012
  calcDetailDisabled(data) {
55013
- super.calcDetailDisabled(data);
55014
- if (this.actionState) {
55015
- this.state.disabled = !!(this.state.disabled || this.actionState.disabled);
55013
+ let { disabled } = this.dynaLogicResult;
55014
+ if (disabled !== true && this.form.scheduler) {
55015
+ const itemEnable = this.form.scheduler.triggerItemEnable(this.model.id, {
55016
+ data: [data]
55017
+ });
55018
+ if (itemEnable !== void 0) {
55019
+ disabled = !itemEnable;
55020
+ }
55021
+ }
55022
+ if (disabled !== true && this.actionState) {
55023
+ disabled = this.actionState.disabled;
55024
+ }
55025
+ if (disabled !== void 0) {
55026
+ this.state.disabled = disabled;
55016
55027
  }
55017
55028
  }
55018
55029
  /**
@@ -55021,9 +55032,23 @@ var FormButtonController = class extends FormDetailController {
55021
55032
  * @param {IData} data
55022
55033
  */
55023
55034
  calcDetailVisible(data) {
55024
- super.calcDetailVisible(data);
55025
- if (this.actionState) {
55026
- this.state.visible = !!(this.state.visible && this.actionState.visible);
55035
+ let { visible } = this.dynaLogicResult;
55036
+ if (visible !== false && this.form.scheduler) {
55037
+ const itemVIsible = this.form.scheduler.triggerItemVisible(
55038
+ this.model.id,
55039
+ {
55040
+ data: [data]
55041
+ }
55042
+ );
55043
+ if (itemVIsible !== void 0) {
55044
+ visible = itemVIsible;
55045
+ }
55046
+ }
55047
+ if (visible !== false && this.actionState) {
55048
+ visible = this.actionState.visible;
55049
+ }
55050
+ if (visible !== void 0) {
55051
+ this.state.visible = visible;
55027
55052
  }
55028
55053
  }
55029
55054
  /**