@evotor-dev/ui-kit 8.16.1 → 8.18.0

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.
Files changed (22) hide show
  1. package/esm2022/lib/components/evo-autocomplete/components/evo-autocomplete/evo-autocomplete.component.mjs +15 -10
  2. package/esm2022/lib/components/evo-checkbox/evo-checkbox.component.mjs +11 -15
  3. package/esm2022/lib/components/evo-chip/evo-chip.component.mjs +35 -26
  4. package/esm2022/lib/components/evo-input/evo-input.component.mjs +12 -9
  5. package/esm2022/lib/components/evo-link-button/evo-link-button.component.mjs +3 -4
  6. package/esm2022/lib/components/evo-link-button/public-api.mjs +1 -2
  7. package/esm2022/lib/components/evo-textarea/evo-textarea.component.mjs +33 -28
  8. package/esm2022/lib/components/evo-textarea/evo-textarea.module.mjs +2 -2
  9. package/esm2022/lib/components/evo-toggle/evo-toggle.component.mjs +15 -17
  10. package/fesm2022/evotor-dev-ui-kit.mjs +106 -105
  11. package/fesm2022/evotor-dev-ui-kit.mjs.map +1 -1
  12. package/lib/components/evo-autocomplete/components/evo-autocomplete/evo-autocomplete.component.d.ts +3 -2
  13. package/lib/components/evo-checkbox/evo-checkbox.component.d.ts +4 -6
  14. package/lib/components/evo-chip/evo-chip.component.d.ts +11 -7
  15. package/lib/components/evo-input/evo-input.component.d.ts +3 -2
  16. package/lib/components/evo-link-button/evo-link-button.component.d.ts +1 -1
  17. package/lib/components/evo-link-button/public-api.d.ts +0 -1
  18. package/lib/components/evo-textarea/evo-textarea.component.d.ts +10 -8
  19. package/lib/components/evo-toggle/evo-toggle.component.d.ts +3 -4
  20. package/package.json +1 -1
  21. package/esm2022/lib/components/evo-link-button/evo-link-button.module.mjs +0 -18
  22. package/lib/components/evo-link-button/evo-link-button.module.d.ts +0 -8
@@ -116,9 +116,10 @@ export declare class EvoAutocompleteComponent implements ControlValueAccessor, A
116
116
  close(): void;
117
117
  onFocus(event: FocusEvent): void;
118
118
  onBlur(event: FocusEvent): void;
119
+ handleChange(value: any): void;
119
120
  onClearClick(): void;
120
- protected _onChange: (value: any) => void;
121
- protected _onTouched: () => void;
121
+ onChange: (_value: any) => void;
122
+ onTouched: () => void;
122
123
  /**
123
124
  * Try to patch clear button icon
124
125
  */
@@ -10,16 +10,14 @@ export declare class EvoCheckboxComponent extends EvoBaseControl implements Cont
10
10
  inputElement: ElementRef;
11
11
  indeterminate: any;
12
12
  disabled: boolean;
13
- private _value;
13
+ value: boolean;
14
14
  constructor(injector: Injector, cdr: ChangeDetectorRef);
15
- onChange(_: any): void;
16
- onTouched(): void;
17
- get value(): boolean;
18
- set value(value: boolean);
15
+ onChange: (_value: boolean) => void;
16
+ onTouched: () => void;
19
17
  get checkboxClass(): {
20
18
  invalid: boolean;
21
19
  };
22
- onInputChange(value: any): void;
20
+ onInputChange(value: boolean): void;
23
21
  writeValue(value: boolean): void;
24
22
  registerOnChange(fn: any): void;
25
23
  registerOnTouched(fn: any): void;
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, EventEmitter, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { EvoBaseControl } from '../../common/evo-base-control';
4
4
  import * as i0 from "@angular/core";
@@ -12,7 +12,9 @@ export declare enum EvoChipTheme {
12
12
  white = "white",
13
13
  custom = "custom"
14
14
  }
15
- export declare class EvoChipComponent extends EvoBaseControl implements ControlValueAccessor, OnInit, AfterViewInit {
15
+ export declare class EvoChipComponent extends EvoBaseControl implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
16
+ protected injector: Injector;
17
+ private readonly cdr;
16
18
  type: EvoChipType | string;
17
19
  theme: EvoChipTheme | string;
18
20
  counter: number;
@@ -23,24 +25,26 @@ export declare class EvoChipComponent extends EvoBaseControl implements ControlV
23
25
  set setInitialValue(value: any);
24
26
  close: EventEmitter<Event>;
25
27
  inheritedValue: any;
28
+ value: any;
26
29
  templateVariables: {
27
30
  chipTypes: typeof EvoChipType;
28
31
  chipThemes: typeof EvoChipTheme;
29
32
  };
30
- private _value;
33
+ private readonly destroy$;
34
+ constructor(injector: Injector, cdr: ChangeDetectorRef);
31
35
  get classes(): string[];
32
- get value(): any;
33
- set value(value: any);
34
36
  ngOnInit(): void;
35
37
  ngAfterViewInit(): void;
38
+ ngOnDestroy(): void;
36
39
  writeValue(value: any): void;
37
40
  registerOnChange(fn: any): void;
38
41
  registerOnTouched(fn: any): void;
42
+ onChange: (_value: any) => void;
43
+ onTouched: () => void;
44
+ setDisabledState(state: boolean): void;
39
45
  onInputChange(value: any): void;
40
46
  onCloseClick(e: Event): void;
41
47
  private initDefaultParams;
42
- private onChange;
43
- private onTouched;
44
48
  static ɵfac: i0.ɵɵFactoryDeclaration<EvoChipComponent, never>;
45
49
  static ɵcmp: i0.ɵɵComponentDeclaration<EvoChipComponent, "evo-chip", never, { "type": { "alias": "type"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "counter": { "alias": "counter"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "name": { "alias": "name"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "closeTitle": { "alias": "closeTitle"; "required": false; }; "setInitialValue": { "alias": "value"; "required": false; }; }, { "close": "close"; }, never, ["*"], true, never>;
46
50
  }
@@ -66,8 +66,8 @@ export declare class EvoInputComponent extends EvoBaseControl implements Control
66
66
  ngOnInit(): void;
67
67
  ngOnDestroy(): void;
68
68
  ngOnChanges(changes: SimpleChanges): void;
69
- onChange(value: any): void;
70
- onTouched(): void;
69
+ onChange: (_value: any) => void;
70
+ onTouched: () => void;
71
71
  ngAfterViewInit(): void;
72
72
  writeToElement(value: any): void;
73
73
  writeValue(value: any): void;
@@ -75,6 +75,7 @@ export declare class EvoInputComponent extends EvoBaseControl implements Control
75
75
  registerOnTouched(fn: any): void;
76
76
  setDisabledState(state: boolean): void;
77
77
  focus(): void;
78
+ onInputChange(value: string): void;
78
79
  onInputFocus(event: Event): void;
79
80
  onInputBlur(event: Event): void;
80
81
  onTooltipClick(event: any): void;
@@ -6,5 +6,5 @@ export declare class EvoLinkButtonComponent {
6
6
  get isDisabled(): boolean;
7
7
  getContainerClasses(containerClass: string): string[];
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<EvoLinkButtonComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<EvoLinkButtonComponent, "button[evo-link-button], a[evo-link-button]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<EvoLinkButtonComponent, "button[evo-link-button], a[evo-link-button]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
10
10
  }
@@ -1,2 +1 @@
1
- export * from './evo-link-button.module';
2
1
  export * from './evo-link-button.component';
@@ -1,27 +1,29 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, ChangeDetectorRef, Injector } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { EvoBaseControl } from '../../common/evo-base-control';
4
4
  import { EvoTextareaSize } from './types/evo-textarea-size';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class EvoTextareaComponent extends EvoBaseControl implements ControlValueAccessor {
7
+ protected injector: Injector;
8
+ private readonly cdr;
7
9
  size: EvoTextareaSize;
8
10
  placeholder: string;
9
11
  rows: number;
10
12
  blur: EventEmitter<void>;
11
- _value: string;
12
- disabled: boolean;
13
- focused: boolean;
14
- get value(): string;
13
+ value: string;
14
+ private _focused;
15
+ private _disabled;
16
+ constructor(injector: Injector, cdr: ChangeDetectorRef);
15
17
  get textareaClasses(): {
16
18
  [cssClass: string]: boolean;
17
19
  };
18
- set value(value: string);
20
+ handleOnChange(event: Event): void;
19
21
  onFocus(): void;
20
22
  onBlur(): void;
21
23
  onChange: (_: any) => void;
22
24
  onTouched: () => void;
23
- registerOnChange(fn: any): void;
24
- registerOnTouched(fn: any): void;
25
+ registerOnChange(fn: () => void): void;
26
+ registerOnTouched(fn: () => void): void;
25
27
  setDisabledState(isDisabled: boolean): void;
26
28
  writeValue(value: string): void;
27
29
  static ɵfac: i0.ɵɵFactoryDeclaration<EvoTextareaComponent, never>;
@@ -4,13 +4,12 @@ import * as i0 from "@angular/core";
4
4
  export declare class EvoToggleComponent implements ControlValueAccessor {
5
5
  private readonly changeDetector;
6
6
  isDisabled: boolean;
7
- private _value;
7
+ value: boolean;
8
8
  constructor(changeDetector: ChangeDetectorRef);
9
- get value(): boolean;
10
- set value(value: boolean);
11
9
  get totalClasses(): string[];
12
- onChange: (_value: any) => void;
10
+ onChange: (_value: boolean) => void;
13
11
  onTouched: () => void;
12
+ handleChange(value: boolean): void;
14
13
  writeValue(value: any): void;
15
14
  registerOnChange(fn: any): void;
16
15
  registerOnTouched(fn: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evotor-dev/ui-kit",
3
- "version": "8.16.1",
3
+ "version": "8.18.0",
4
4
  "homepage": "https://evotor.github.io/Evo-UI-Kit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,18 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { EvoLinkButtonComponent } from './evo-link-button.component';
4
- import * as i0 from "@angular/core";
5
- export class EvoLinkButtonModule {
6
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: EvoLinkButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
7
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.10", ngImport: i0, type: EvoLinkButtonModule, declarations: [EvoLinkButtonComponent], imports: [CommonModule], exports: [EvoLinkButtonComponent] }); }
8
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: EvoLinkButtonModule, imports: [CommonModule] }); }
9
- }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: EvoLinkButtonModule, decorators: [{
11
- type: NgModule,
12
- args: [{
13
- declarations: [EvoLinkButtonComponent],
14
- exports: [EvoLinkButtonComponent],
15
- imports: [CommonModule],
16
- }]
17
- }] });
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZvLWxpbmstYnV0dG9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V2by11aS1raXQvc3JjL2xpYi9jb21wb25lbnRzL2V2by1saW5rLWJ1dHRvbi9ldm8tbGluay1idXR0b24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFDLFlBQVksRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQzdDLE9BQU8sRUFBQyxzQkFBc0IsRUFBQyxNQUFNLDZCQUE2QixDQUFDOztBQU9uRSxNQUFNLE9BQU8sbUJBQW1COytHQUFuQixtQkFBbUI7Z0hBQW5CLG1CQUFtQixpQkFKYixzQkFBc0IsYUFFM0IsWUFBWSxhQURaLHNCQUFzQjtnSEFHdkIsbUJBQW1CLFlBRmxCLFlBQVk7OzRGQUViLG1CQUFtQjtrQkFML0IsUUFBUTttQkFBQztvQkFDTixZQUFZLEVBQUUsQ0FBQyxzQkFBc0IsQ0FBQztvQkFDdEMsT0FBTyxFQUFFLENBQUMsc0JBQXNCLENBQUM7b0JBQ2pDLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQztpQkFDMUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7Q29tbW9uTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHtFdm9MaW5rQnV0dG9uQ29tcG9uZW50fSBmcm9tICcuL2V2by1saW5rLWJ1dHRvbi5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICAgIGRlY2xhcmF0aW9uczogW0V2b0xpbmtCdXR0b25Db21wb25lbnRdLFxuICAgIGV4cG9ydHM6IFtFdm9MaW5rQnV0dG9uQ29tcG9uZW50XSxcbiAgICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlXSxcbn0pXG5leHBvcnQgY2xhc3MgRXZvTGlua0J1dHRvbk1vZHVsZSB7fVxuIl19
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./evo-link-button.component";
3
- import * as i2 from "@angular/common";
4
- export declare class EvoLinkButtonModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<EvoLinkButtonModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<EvoLinkButtonModule, [typeof i1.EvoLinkButtonComponent], [typeof i2.CommonModule], [typeof i1.EvoLinkButtonComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<EvoLinkButtonModule>;
8
- }