@brggroup/share-lib 0.0.20 → 0.0.22

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.
@@ -1897,7 +1897,7 @@ class ExtendInputNumber {
1897
1897
  /** separatorType: 'comma' (,) | 'dot' (.) */
1898
1898
  separatorType;
1899
1899
  /** defaultSeparatorType: 'comma' (,) | 'dot' (.) */
1900
- static defaultSeparatorType = 'comma';
1900
+ static defaultSeparatorType = 'dot';
1901
1901
  formData;
1902
1902
  controlName;
1903
1903
  _ngModel = null;
@@ -2115,7 +2115,21 @@ class ExtendSelectComponent {
2115
2115
  * default = 8
2116
2116
  */
2117
2117
  labelSpan = 8;
2118
- disabled = false;
2118
+ get disabled() {
2119
+ return this._disabled;
2120
+ }
2121
+ set disabled(val) {
2122
+ this._disabled = val;
2123
+ if (this.formData && this.controlName) {
2124
+ const control = this.formData.controls[this.controlName];
2125
+ if (this._disabled) {
2126
+ control.disable({ emitEvent: false });
2127
+ }
2128
+ else {
2129
+ control.enable({ emitEvent: false }); // <-- bỏ disable
2130
+ }
2131
+ }
2132
+ }
2119
2133
  required = false;
2120
2134
  noBottom = false;
2121
2135
  multiple = false;
@@ -2145,6 +2159,7 @@ class ExtendSelectComponent {
2145
2159
  get cssHeight() {
2146
2160
  return this.inputHeight ? +this.inputHeight.replaceAll('px', '') - 1 + 'px' : null;
2147
2161
  }
2162
+ _disabled = false;
2148
2163
  ngOnInit() {
2149
2164
  if (this.formData && this.controlName) {
2150
2165
  this.formData.controls[this.controlName].valueChanges.subscribe((val) => {