@sebgroup/green-angular 3.0.4 → 3.2.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.
@@ -2,6 +2,12 @@ import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { DropdownOption } from '../dropdown/dropdown.component';
3
3
  import '@sebgroup/green-core';
4
4
  import * as i0 from "@angular/core";
5
+ /**
6
+ * MenuItems extends DropDown option and adds the posibility to pass a custom template for just one item.
7
+ */
8
+ interface MenuItems extends DropdownOption {
9
+ template?: TemplateRef<unknown>;
10
+ }
5
11
  export declare class NggContextMenuComponent {
6
12
  private elementRef;
7
13
  /**
@@ -11,7 +17,7 @@ export declare class NggContextMenuComponent {
11
17
  /**
12
18
  * List of items to be displayed in the context menu.
13
19
  */
14
- menuItems: DropdownOption[];
20
+ menuItems: MenuItems[];
15
21
  /**
16
22
  * Custom menu item template.
17
23
  */
@@ -40,3 +46,4 @@ export declare class NggContextMenuComponent {
40
46
  static ɵfac: i0.ɵɵFactoryDeclaration<NggContextMenuComponent, never>;
41
47
  static ɵcmp: i0.ɵɵComponentDeclaration<NggContextMenuComponent, "ngg-context-menu", never, { "direction": "direction"; "menuItems": "menuItems"; "menuItemTemplate": "menuItemTemplate"; "menuAnchorTemplate": "menuAnchorTemplate"; "closeOnScroll": "closeOnScroll"; }, { "contextMenuItemClicked": "contextMenuItemClicked"; }, never, never, false, never>;
42
48
  }
49
+ export {};
@@ -19,6 +19,7 @@ export interface DropdownOption {
19
19
  label?: string;
20
20
  value?: any;
21
21
  selected?: boolean;
22
+ heading?: boolean;
22
23
  [key: string]: any;
23
24
  }
24
25
  export declare class NggDropdownComponent implements ControlValueAccessor, OnInit {
@@ -30,7 +31,6 @@ export declare class NggDropdownComponent implements ControlValueAccessor, OnIni
30
31
  display: string;
31
32
  useValue: string;
32
33
  label?: string;
33
- options: DropdownOption[];
34
34
  valid?: boolean;
35
35
  invalid?: boolean;
36
36
  compareWith?: CompareWith;
@@ -38,6 +38,9 @@ export declare class NggDropdownComponent implements ControlValueAccessor, OnIni
38
38
  syncPopoverWidth?: boolean;
39
39
  /** @deprecated */
40
40
  fixedPlacement?: DropdownPlacements;
41
+ set options(value: DropdownOption[] | undefined);
42
+ get options(): DropdownOption[] | undefined;
43
+ private _options;
41
44
  set multiSelect(value: string | boolean);
42
45
  get multiSelect(): boolean;
43
46
  private _multiSelect;
@@ -68,5 +71,5 @@ export declare class NggDropdownComponent implements ControlValueAccessor, OnIni
68
71
  private optionByValue;
69
72
  private displayTextByValue;
70
73
  static ɵfac: i0.ɵɵFactoryDeclaration<NggDropdownComponent, never>;
71
- static ɵcmp: i0.ɵɵComponentDeclaration<NggDropdownComponent, "ngg-dropdown", never, { "id": "id"; "texts": "texts"; "loop": "loop"; "display": "display"; "useValue": "useValue"; "label": "label"; "options": "options"; "valid": "valid"; "invalid": "invalid"; "compareWith": "compareWith"; "searchFilter": "searchFilter"; "syncPopoverWidth": "syncPopoverWidth"; "fixedPlacement": "fixedPlacement"; "multiSelect": "multiSelect"; "searchable": "searchable"; "value": "value"; }, { "valueChange": "valueChange"; "touched": "touched"; }, ["customOption", "customButton"], ["[data-form-info]"], false, never>;
74
+ static ɵcmp: i0.ɵɵComponentDeclaration<NggDropdownComponent, "ngg-dropdown", never, { "id": "id"; "texts": "texts"; "loop": "loop"; "display": "display"; "useValue": "useValue"; "label": "label"; "valid": "valid"; "invalid": "invalid"; "compareWith": "compareWith"; "searchFilter": "searchFilter"; "syncPopoverWidth": "syncPopoverWidth"; "fixedPlacement": "fixedPlacement"; "options": "options"; "multiSelect": "multiSelect"; "searchable": "searchable"; "value": "value"; }, { "valueChange": "valueChange"; "touched": "touched"; }, ["customOption", "customButton"], ["[data-form-info]"], false, never>;
72
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebgroup/green-angular",
3
- "version": "3.0.4",
3
+ "version": "3.2.0",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=15.2.9",
6
6
  "@angular/common": ">=15.2.9",
@@ -11,8 +11,8 @@
11
11
  "rxjs": ">=6.5.3"
12
12
  },
13
13
  "dependencies": {
14
- "@sebgroup/green-core": "^1.4.5",
15
- "@sebgroup/chlorophyll": "^3.0.4",
14
+ "@sebgroup/green-core": "^1.6.0",
15
+ "@sebgroup/chlorophyll": "^3.0.5",
16
16
  "@sebgroup/extract": "^3.0.0",
17
17
  "tslib": "^2.3.1"
18
18
  },