@wizishop/angular-components 0.0.239 → 0.0.241

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.
@@ -1,5 +1,7 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- export declare class SwitchComponent implements OnInit {
1
+ import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ export declare class SwitchComponent implements OnInit, ControlValueAccessor {
4
+ private changeDetectorRef;
3
5
  value: boolean;
4
6
  textState: boolean;
5
7
  textStateEnable: string;
@@ -12,8 +14,16 @@ export declare class SwitchComponent implements OnInit {
12
14
  changeInput: EventEmitter<any>;
13
15
  valueInput: string;
14
16
  id: string;
15
- constructor();
17
+ disabled: boolean;
18
+ constructor(changeDetectorRef: ChangeDetectorRef);
16
19
  ngOnInit(): void;
17
20
  changeValue(event: any): void;
18
21
  triggerInput(): void;
22
+ private onChange;
23
+ writeValue(value: boolean): void;
24
+ registerOnChange(onChange: any): void;
25
+ onBlur(): void;
26
+ private onTouched;
27
+ registerOnTouched(onTouched: any): void;
28
+ setDisabledState(disabled: boolean): void;
19
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/angular-components",
3
- "version": "0.0.239",
3
+ "version": "0.0.241",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^11.2.12",
6
6
  "@angular/core": "^11.2.12",