ng-tailwind 7.0.16 → 7.0.18

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.
@@ -45,7 +45,7 @@ export declare class NgtReactiveCheckboxComponent extends NgtControlValueAccesso
45
45
  ngtStyle: NgtStylizableService;
46
46
  constructor(ngtStylizableDirective: NgtStylizableDirective, ngtForm: NgtReactiveFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, injector: Injector);
47
47
  ngAfterViewInit(): void;
48
- change(value: boolean): void;
48
+ change(value: boolean | number | string): void;
49
49
  onNativeChange(): void;
50
50
  private setupNgtStylizable;
51
51
  private setNativeValue;
@@ -48,6 +48,7 @@ export declare class NgtReactiveRadioButtonComponent extends NgtControlValueAcce
48
48
  ngOnDestroy(): void;
49
49
  onNativeChange(): void;
50
50
  change(value: boolean): void;
51
+ markAsActive(): void;
51
52
  private setupSubscriptions;
52
53
  private setupNgtStylizable;
53
54
  private setNativeValue;
@@ -10662,7 +10662,7 @@ class NgtReactiveSelectComponent extends NgtControlValueAccessor {
10662
10662
  onNativeChange(value) {
10663
10663
  if (this.hasChangesBetweenValues(this.value, value)) {
10664
10664
  value = this.sortSelectedItems(value);
10665
- if (this.valueAsArray() && !Array.isArray(value)) {
10665
+ if (value && this.valueAsArray() && !Array.isArray(value)) {
10666
10666
  value = [value];
10667
10667
  }
10668
10668
  this.nativeValue = value;
@@ -10671,7 +10671,7 @@ class NgtReactiveSelectComponent extends NgtControlValueAccessor {
10671
10671
  }
10672
10672
  change(value) {
10673
10673
  if (this.hasChangesBetweenValues(value, this.nativeValue)) {
10674
- if (this.valueAsArray() && !Array.isArray(value)) {
10674
+ if (value && this.valueAsArray() && !Array.isArray(value)) {
10675
10675
  value = [value];
10676
10676
  }
10677
10677
  this.nativeValue = this.sortSelectedItems(value);
@@ -11396,6 +11396,10 @@ class NgtReactiveCheckboxComponent extends NgtControlValueAccessor {
11396
11396
  }
11397
11397
  change(value) {
11398
11398
  if (this.hasChangeBetweenValues()) {
11399
+ if (value == 0) {
11400
+ value = false;
11401
+ this.value = false;
11402
+ }
11399
11403
  this.setNativeValue(value);
11400
11404
  }
11401
11405
  }
@@ -11571,6 +11575,10 @@ class NgtReactiveRadioButtonComponent extends NgtControlValueAccessor {
11571
11575
  this.setNativeValue(value);
11572
11576
  }
11573
11577
  }
11578
+ markAsActive() {
11579
+ this.change(true);
11580
+ this.onNativeChange();
11581
+ }
11574
11582
  setupSubscriptions() {
11575
11583
  if (this.container) {
11576
11584
  const onActiveRadioButtonChange = this.container.onActiveRadioButtonChange