@sebgroup/green-angular 6.1.0 → 6.1.1

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.
@@ -12,9 +12,9 @@ export interface DropdownTexts {
12
12
  selected?: string;
13
13
  placeholder?: string;
14
14
  }
15
- export interface DropdownOption {
15
+ export interface DropdownOption<T = any> {
16
16
  label?: string;
17
- value?: any;
17
+ value?: T;
18
18
  selected?: boolean;
19
19
  heading?: boolean;
20
20
  [key: string]: any;
@@ -53,7 +53,7 @@ export declare class NggDropdownComponent implements ControlValueAccessor, OnIni
53
53
  set value(newValue: any);
54
54
  get value(): any;
55
55
  private _value;
56
- get selectedOption(): DropdownOption | (DropdownOption | undefined)[] | undefined;
56
+ get selectedOption(): DropdownOption<any> | (DropdownOption<any> | undefined)[] | undefined;
57
57
  onChangeFn?: (value: unknown) => void;
58
58
  onTouchedFn?: () => void;
59
59
  readonly valueChange: EventEmitter<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebgroup/green-angular",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=18",
6
6
  "@angular/common": ">=18",
@@ -12,9 +12,9 @@ export interface DropdownTexts {
12
12
  selected?: string;
13
13
  placeholder?: string;
14
14
  }
15
- export interface DropdownOption {
15
+ export interface DropdownOption<T = any> {
16
16
  label?: string;
17
- value?: any;
17
+ value?: T;
18
18
  selected?: boolean;
19
19
  heading?: boolean;
20
20
  [key: string]: any;
@@ -53,7 +53,7 @@ export declare class NggDropdownComponent implements ControlValueAccessor, OnIni
53
53
  set value(newValue: any);
54
54
  get value(): any;
55
55
  private _value;
56
- get selectedOption(): DropdownOption | (DropdownOption | undefined)[] | undefined;
56
+ get selectedOption(): DropdownOption<any> | (DropdownOption<any> | undefined)[] | undefined;
57
57
  onChangeFn?: (value: unknown) => void;
58
58
  onTouchedFn?: () => void;
59
59
  readonly valueChange: EventEmitter<any>;
@@ -37,6 +37,11 @@ export interface TableHeaderOptions {
37
37
  * This is useful when the label is hidden on mobile view but the data is still displayed.
38
38
  */
39
39
  boldTextOnMobile?: boolean;
40
+ /**
41
+ * Used to set extra label for the column.
42
+ * This is useful when the column has an additional label that needs to be shown.
43
+ */
44
+ extraLabel?: string;
40
45
  }
41
46
  /** Options applying to table rows */
42
47
  export interface TableRowOptions {
@@ -37,6 +37,11 @@ export interface TableHeaderOptions {
37
37
  * This is useful when the label is hidden on mobile view but the data is still displayed.
38
38
  */
39
39
  boldTextOnMobile?: boolean;
40
+ /**
41
+ * Used to set extra label for the column.
42
+ * This is useful when the column has an additional label that needs to be shown.
43
+ */
44
+ extraLabel?: string;
40
45
  }
41
46
  /** Options applying to table rows */
42
47
  export interface TableRowOptions {