@evotor-dev/ui-kit 7.11.1 → 7.13.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 (35) hide show
  1. package/esm2020/lib/common/evo-base-control.mjs +1 -1
  2. package/esm2020/lib/components/evo-autocomplete/components/evo-autocomplete/evo-autocomplete.component.mjs +8 -4
  3. package/esm2020/lib/components/evo-button/components/evo-button-old/evo-button-old.component.mjs +2 -2
  4. package/esm2020/lib/components/evo-checkbox/evo-checkbox.component.mjs +10 -16
  5. package/esm2020/lib/components/evo-chip/evo-chip.component.mjs +32 -26
  6. package/esm2020/lib/components/evo-datepicker/evo-datepicker.component.mjs +2 -2
  7. package/esm2020/lib/components/evo-icon-button/evo-icon-button.component.mjs +2 -2
  8. package/esm2020/lib/components/evo-input/evo-input.component.mjs +30 -27
  9. package/esm2020/lib/components/evo-link-button/evo-link-button.component.mjs +37 -0
  10. package/esm2020/lib/components/evo-link-button/evo-link-button.module.mjs +18 -0
  11. package/esm2020/lib/components/evo-link-button/index.mjs +2 -0
  12. package/esm2020/lib/components/evo-link-button/public-api.mjs +3 -0
  13. package/esm2020/lib/components/evo-loader/evo-circular-loader.component.mjs +2 -2
  14. package/esm2020/lib/components/evo-textarea/evo-textarea.component.mjs +34 -27
  15. package/esm2020/lib/components/evo-textarea/evo-textarea.module.mjs +5 -22
  16. package/esm2020/lib/components/evo-toggle/evo-toggle.component.mjs +14 -16
  17. package/esm2020/public_api.mjs +2 -1
  18. package/fesm2015/evotor-dev-ui-kit.mjs +175 -132
  19. package/fesm2015/evotor-dev-ui-kit.mjs.map +1 -1
  20. package/fesm2020/evotor-dev-ui-kit.mjs +175 -132
  21. package/fesm2020/evotor-dev-ui-kit.mjs.map +1 -1
  22. package/lib/components/evo-autocomplete/components/evo-autocomplete/evo-autocomplete.component.d.ts +1 -0
  23. package/lib/components/evo-checkbox/evo-checkbox.component.d.ts +3 -5
  24. package/lib/components/evo-chip/evo-chip.component.d.ts +9 -5
  25. package/lib/components/evo-input/evo-input.component.d.ts +6 -5
  26. package/lib/components/evo-link-button/evo-link-button.component.d.ts +10 -0
  27. package/lib/components/evo-link-button/evo-link-button.module.d.ts +8 -0
  28. package/lib/components/evo-link-button/index.d.ts +1 -0
  29. package/lib/components/evo-link-button/public-api.d.ts +2 -0
  30. package/lib/components/evo-textarea/evo-textarea.component.d.ts +10 -8
  31. package/lib/components/evo-textarea/evo-textarea.module.d.ts +3 -4
  32. package/lib/components/evo-toggle/evo-toggle.component.d.ts +4 -5
  33. package/package.json +1 -1
  34. package/public_api.d.ts +1 -0
  35. package/styles/keyframes.scss +18 -0
@@ -111,6 +111,7 @@ export declare class EvoAutocompleteComponent implements ControlValueAccessor, A
111
111
  close(): void;
112
112
  onFocus(event: FocusEvent): void;
113
113
  onBlur(event: FocusEvent): void;
114
+ handleChange(value: any): void;
114
115
  onClearClick(): void;
115
116
  protected _onChange: (value: any) => void;
116
117
  protected _onTouched: () => void;
@@ -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;
15
+ onChange(_value: boolean): void;
16
16
  onTouched(): void;
17
- get value(): boolean;
18
- set value(value: boolean);
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, OnInit, OnDestroy } 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";
@@ -11,7 +11,9 @@ export declare enum EvoChipTheme {
11
11
  grey = "grey",
12
12
  white = "white"
13
13
  }
14
- export declare class EvoChipComponent extends EvoBaseControl implements ControlValueAccessor, OnInit, AfterViewInit {
14
+ export declare class EvoChipComponent extends EvoBaseControl implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
15
+ protected injector: Injector;
16
+ private readonly cdr;
15
17
  type: EvoChipType | string;
16
18
  theme: EvoChipTheme | string;
17
19
  counter: number;
@@ -22,19 +24,21 @@ export declare class EvoChipComponent extends EvoBaseControl implements ControlV
22
24
  set setInitialValue(value: any);
23
25
  close: EventEmitter<Event>;
24
26
  inheritedValue: any;
27
+ value: any;
25
28
  templateVariables: {
26
29
  chipTypes: typeof EvoChipType;
27
30
  chipThemes: typeof EvoChipTheme;
28
31
  };
29
- private _value;
32
+ private readonly destroy$;
33
+ constructor(injector: Injector, cdr: ChangeDetectorRef);
30
34
  get classes(): string[];
31
- get value(): any;
32
- set value(value: any);
33
35
  ngOnInit(): void;
34
36
  ngAfterViewInit(): void;
37
+ ngOnDestroy(): void;
35
38
  writeValue(value: any): void;
36
39
  registerOnChange(fn: any): void;
37
40
  registerOnTouched(fn: any): void;
41
+ setDisabledState(state: boolean): void;
38
42
  onInputChange(value: any): void;
39
43
  onCloseClick(e: Event): void;
40
44
  private initDefaultParams;
@@ -65,14 +65,15 @@ export declare class EvoInputComponent extends EvoBaseControl implements Control
65
65
  ngOnInit(): void;
66
66
  ngOnDestroy(): void;
67
67
  ngOnChanges(changes: SimpleChanges): void;
68
- onChange(value: any): void;
69
- onTouched(): void;
68
+ onChange: (_value: any) => void;
69
+ onTouched: () => void;
70
70
  ngAfterViewInit(): void;
71
71
  writeToElement(value: any): void;
72
72
  writeValue(value: any): void;
73
73
  registerOnChange(fn: any): void;
74
74
  registerOnTouched(fn: any): void;
75
75
  setDisabledState(state: boolean): void;
76
+ onInputChange(value: string): void;
76
77
  onFocus(): void;
77
78
  onBlur(): void;
78
79
  onTooltipClick(event: any): void;
@@ -81,13 +82,13 @@ export declare class EvoInputComponent extends EvoBaseControl implements Control
81
82
  showTooltip(): void;
82
83
  _compositionStart(): void;
83
84
  _compositionEnd(value: any): void;
85
+ validate(): {
86
+ mask: boolean;
87
+ } | null;
84
88
  private removePrefix;
85
89
  private createMaskInstance;
86
90
  private destroyMask;
87
91
  private checkCustomTooltip;
88
- validate(): {
89
- mask: boolean;
90
- };
91
92
  static ɵfac: i0.ɵɵFactoryDeclaration<EvoInputComponent, [null, null, null, { optional: true; }, null]>;
92
93
  static ɵcmp: i0.ɵɵComponentDeclaration<EvoInputComponent, "evo-input", never, { "autoFocus": "autoFocus"; "dataCp": "data-cp"; "icon": "icon"; "mask": "mask"; "placeholder": "placeholder"; "tooltip": "tooltip"; "type": "type"; "disabled": "disabled"; "loading": "loading"; "prefix": "prefix"; "autocomplete": "autocomplete"; "inputDebounce": "inputDebounce"; "unmask": "unmask"; "clearable": "clearable"; "maskValidation": "maskValidation"; "setValue": "value"; "setSize": "size"; "setTheme": "theme"; }, { "blur": "blur"; }, never, ["[evoInputPrefixContent]", "[evoInputIcon]", "[tooltip]"]>;
93
94
  }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class EvoLinkButtonComponent {
3
+ disabled: boolean;
4
+ loading: boolean;
5
+ loadingLabel: string;
6
+ get isDisabled(): boolean;
7
+ getContainerClasses(containerClass: string): string[];
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<EvoLinkButtonComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<EvoLinkButtonComponent, "button[evo-link-button], a[evo-link-button]", never, { "disabled": "disabled"; "loading": "loading"; "loadingLabel": "loadingLabel"; }, {}, never, ["*"]>;
10
+ }
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1 @@
1
+ export * from './public-api';
@@ -0,0 +1,2 @@
1
+ export * from './evo-link-button.module';
2
+ 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: never): void;
26
+ registerOnTouched(fn: never): void;
25
27
  setDisabledState(isDisabled: boolean): void;
26
28
  writeValue(value: string): void;
27
29
  static ɵfac: i0.ɵɵFactoryDeclaration<EvoTextareaComponent, never>;
@@ -1,11 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./evo-textarea.component";
3
3
  import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "../../evo-ui-kit.module";
6
- import * as i5 from "../evo-control-error/evo-control-error.module";
4
+ import * as i3 from "../../evo-ui-kit.module";
5
+ import * as i4 from "../evo-control-error/evo-control-error.module";
7
6
  export declare class EvoTextareaModule {
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<EvoTextareaModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<EvoTextareaModule, [typeof i1.EvoTextareaComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.EvoUiKitModule, typeof i5.EvoControlErrorModule], [typeof i1.EvoTextareaComponent]>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<EvoTextareaModule, [typeof i1.EvoTextareaComponent], [typeof i2.CommonModule, typeof i3.EvoUiKitModule, typeof i4.EvoControlErrorModule], [typeof i1.EvoTextareaComponent]>;
10
9
  static ɵinj: i0.ɵɵInjectorDeclaration<EvoTextareaModule>;
11
10
  }
@@ -2,15 +2,14 @@ import { ChangeDetectorRef } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class EvoToggleComponent implements ControlValueAccessor {
5
- private changeDetector;
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": "7.11.1",
3
+ "version": "7.13.0",
4
4
  "homepage": "https://evotor.github.io/Evo-UI-Kit",
5
5
  "repository": {
6
6
  "type": "git",
package/public_api.d.ts CHANGED
@@ -52,6 +52,7 @@ export * from './lib/components/evo-dropdown/index';
52
52
  export * from './lib/components/evo-navbar/index';
53
53
  export * from './lib/components/evo-navigation-button/index';
54
54
  export * from './lib/components/evo-tooltip/index';
55
+ export * from './lib/components/evo-link-button/index';
55
56
  export * from './lib/pipes/index';
56
57
  export * from './lib/services/index';
57
58
  export * from './lib/components/evo-portal/index';
@@ -35,3 +35,21 @@ $animation-speed: 1000ms;
35
35
  background-position: 100vw 50%;
36
36
  }
37
37
  }
38
+
39
+ @keyframes evo-ellipsis-animation {
40
+ 0% {
41
+ content: '';
42
+ }
43
+ 25% {
44
+ content: '.';
45
+ }
46
+ 50% {
47
+ content: '..';
48
+ }
49
+ 75% {
50
+ content: '...';
51
+ }
52
+ 100% {
53
+ content: '';
54
+ }
55
+ }