aeb-ui-kit 1.2.0 → 1.3.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.
@@ -25,15 +25,15 @@ export declare class NewButtonComponent {
25
25
  /**
26
26
  * path to button icons sources
27
27
  */
28
- iconSource: ButtonIconSource;
28
+ iconSource?: ButtonIconSource;
29
29
  /**
30
30
  * path to disabled button icon source
31
31
  */
32
- disabledIconSource: ButtonIconSource;
32
+ disabledIconSource?: ButtonIconSource;
33
33
  /**
34
34
  * path to button hovered icon source
35
35
  */
36
- hoveredIconSource: ButtonIconSource;
36
+ hoveredIconSource?: ButtonIconSource;
37
37
  /**
38
38
  * button dropdown icon
39
39
  */
@@ -51,13 +51,14 @@ export declare class NewButtonComponent {
51
51
  */
52
52
  rightIcon: boolean;
53
53
  size: ButtonSize;
54
+ tabIndex: number;
54
55
  buttonClick: EventEmitter<void>;
55
56
  /**
56
57
  * changes it's state when button is hovered
57
58
  */
58
59
  isHovered: boolean;
59
- wrapWithCssURL(value: string): string;
60
- getCurrentIconSource(side: keyof ButtonIconSource): string;
60
+ wrapWithCssURL(value: string | undefined): string;
61
+ getCurrentIconSource(side: keyof ButtonIconSource): string | undefined;
61
62
  static ɵfac: i0.ɵɵFactoryDeclaration<NewButtonComponent, never>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<NewButtonComponent, "aeb-new-button", never, { "label": "label"; "solid": "solid"; "fill": "fill"; "showIcon": "showIcon"; "iconSource": "iconSource"; "disabledIconSource": "disabledIconSource"; "hoveredIconSource": "hoveredIconSource"; "showDropdown": "showDropdown"; "disabled": "disabled"; "leftIcon": "leftIcon"; "rightIcon": "rightIcon"; "size": "size"; }, { "buttonClick": "buttonClick"; }, never, ["*"]>;
63
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewButtonComponent, "aeb-new-button", never, { "label": "label"; "solid": "solid"; "fill": "fill"; "showIcon": "showIcon"; "iconSource": "iconSource"; "disabledIconSource": "disabledIconSource"; "hoveredIconSource": "hoveredIconSource"; "showDropdown": "showDropdown"; "disabled": "disabled"; "leftIcon": "leftIcon"; "rightIcon": "rightIcon"; "size": "size"; "tabIndex": "tabIndex"; }, { "buttonClick": "buttonClick"; }, never, ["*"]>;
63
64
  }
@@ -1,4 +1,4 @@
1
- import { OnInit, EventEmitter, ElementRef, OnChanges } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare type selectOption = {
@@ -6,40 +6,46 @@ export declare type selectOption = {
6
6
  label: string;
7
7
  };
8
8
  export declare class NewDropdownComponent implements OnInit, ControlValueAccessor, OnChanges {
9
+ input: ElementRef<HTMLDivElement>;
10
+ inputField: ElementRef<HTMLInputElement>;
11
+ dropdown: ElementRef<HTMLDivElement>;
12
+ option: QueryList<ElementRef<HTMLOptionElement>>;
13
+ optionSelect: EventEmitter<selectOption>;
14
+ inputChange: EventEmitter<string>;
9
15
  label: string;
10
16
  options: selectOption[];
11
17
  filter: boolean;
12
18
  hasError: boolean;
13
19
  disabled: boolean;
14
- set value(value: string);
15
- set fieldValue(vl: string);
16
- select: EventEmitter<selectOption>;
17
- inputChange: EventEmitter<string>;
18
- input: ElementRef;
19
- touched: boolean;
20
20
  viewOptions: selectOption[];
21
21
  isOpen: boolean;
22
- selected: selectOption;
23
- _fieldValue: string;
24
- _value: string;
22
+ activeOption: number;
23
+ private selected;
24
+ private _fieldValue;
25
+ private _value;
26
+ private touched;
27
+ constructor();
25
28
  get fieldValue(): string;
26
29
  get value(): string;
27
- constructor();
28
- resetValue(): void;
30
+ set fieldValue(vl: string);
31
+ set value(value: string);
29
32
  openHandler(): void;
30
- clickInput(): void;
31
33
  clickOutsideHandler(): void;
32
34
  inputHandler(term: InputEvent): void;
33
- filterOptions(): void;
35
+ clickInput(): void;
34
36
  selectHandler(item: selectOption): void;
35
- ngOnInit(): void;
36
- onChange(value: any): void;
37
- onTouch(): void;
38
37
  registerOnChange(fn: (value: any) => void): void;
39
- registerOnTouched(fn: any): void;
38
+ registerOnTouched(fn: () => void): void;
40
39
  writeValue(value: string): void;
41
40
  setDisabledState(disabled: boolean): void;
42
- ngOnChanges(changes: any): void;
41
+ arrowHandler(direction: 'up' | 'down', index: number): void;
42
+ mouseHandler(type: 'move' | 'leave', index: number): void;
43
+ ngOnInit(): void;
44
+ ngOnChanges(changes: SimpleChanges): void;
45
+ private resetValue;
46
+ private filterOptions;
47
+ private onChange;
48
+ private onTouch;
43
49
  static ɵfac: i0.ɵɵFactoryDeclaration<NewDropdownComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<NewDropdownComponent, "aeb-new-dropdown", never, { "label": "label"; "options": "options"; "filter": "filter"; "hasError": "hasError"; "disabled": "disabled"; "value": "value"; "fieldValue": "fieldValue"; }, { "select": "select"; "inputChange": "inputChange"; }, never, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewDropdownComponent, "aeb-new-dropdown", never, { "label": "label"; "options": "options"; "filter": "filter"; "hasError": "hasError"; "disabled": "disabled"; "fieldValue": "fieldValue"; "value": "value"; }, { "optionSelect": "optionSelect"; "inputChange": "inputChange"; }, never, never>;
45
51
  }
@@ -25,7 +25,7 @@ export declare class PaginationComponent implements OnInit, AfterViewInit, OnCha
25
25
  get amount(): number;
26
26
  set amount(value: number);
27
27
  headPageHandler(page: number): void;
28
- amountChangeHandler(amount: number): void;
28
+ amountChangeHandler(amount: string): void;
29
29
  ngOnChanges(changes: SimpleChanges): void;
30
30
  ngOnInit(): void;
31
31
  ngOnDestroy(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aeb-ui-kit",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0",