@brggroup/share-lib 0.1.46 → 0.1.47

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.
@@ -2805,7 +2805,21 @@ class ExtendInput {
2805
2805
  labelFlex = null;
2806
2806
  inputFlex = null;
2807
2807
  allowClear = false;
2808
- disabled = false;
2808
+ get disabled() {
2809
+ return this._disabled;
2810
+ }
2811
+ set disabled(val) {
2812
+ this._disabled = val;
2813
+ if (this.formData && this.controlName) {
2814
+ const control = this.formData.controls[this.controlName];
2815
+ if (this._disabled) {
2816
+ control.disable({ emitEvent: false });
2817
+ }
2818
+ else {
2819
+ control.enable({ emitEvent: false }); // <-- bỏ disable
2820
+ }
2821
+ }
2822
+ }
2809
2823
  readOnly = false;
2810
2824
  required = false;
2811
2825
  noBottom = false;
@@ -2831,6 +2845,7 @@ class ExtendInput {
2831
2845
  onenter = new EventEmitter();
2832
2846
  inputElement;
2833
2847
  isSubmited = false;
2848
+ _disabled = false;
2834
2849
  ngAfterViewInit() {
2835
2850
  this.tryFocus();
2836
2851
  }