@leanix/components 0.2.43 → 0.2.47

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,9 +5,9 @@ export declare type OptionGroupOption = {
5
5
  value: string;
6
6
  label: string;
7
7
  };
8
- export declare type SingleSelectOptionGroup = {
8
+ export declare type SingleSelectOptionGroup<T = any> = {
9
9
  label: string;
10
- options: (OptionGroupOption | any)[];
10
+ options: (OptionGroupOption | T)[];
11
11
  };
12
12
  /**
13
13
  * Usage:
@@ -40,7 +40,7 @@ export declare class OptionGroupDropdownComponent extends KeyboardSelectDirectiv
40
40
  loading: boolean;
41
41
  trackByProperty?: string;
42
42
  showNoResultsIfGroupIsEmpty: boolean;
43
- onItemSelected: EventEmitter<OptionGroupOption>;
43
+ onItemSelected: EventEmitter<any>;
44
44
  containerScrolled: EventEmitter<any>;
45
45
  createNewOption: EventEmitter<string>;
46
46
  optionTemplateRef?: TemplateRef<any>;
@@ -51,7 +51,7 @@ export declare class OptionGroupDropdownComponent extends KeyboardSelectDirectiv
51
51
  */
52
52
  noResultsOptionTemplateRef?: TemplateRef<any>;
53
53
  get isNewItem(): boolean;
54
- selectOption(option: OptionGroupOption): void;
54
+ selectOption(option: OptionGroupOption | any): void;
55
55
  trackByLabel(index: number, optionGroup: SingleSelectOptionGroup): string;
56
56
  onCreateNewOption(): void;
57
57
  trackByValue(_index: number, option: OptionGroupOption | any): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leanix/components",
3
- "version": "0.2.43",
3
+ "version": "0.2.47",
4
4
  "license": "Apache-2.0",
5
5
  "author": "LeanIX GmbH",
6
6
  "repository": {