@sebgroup/green-angular 3.0.4 → 3.1.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 {};
@@ -30,7 +30,6 @@ export declare class NggDropdownComponent implements ControlValueAccessor, OnIni
30
30
  display: string;
31
31
  useValue: string;
32
32
  label?: string;
33
- options: DropdownOption[];
34
33
  valid?: boolean;
35
34
  invalid?: boolean;
36
35
  compareWith?: CompareWith;
@@ -38,6 +37,9 @@ export declare class NggDropdownComponent implements ControlValueAccessor, OnIni
38
37
  syncPopoverWidth?: boolean;
39
38
  /** @deprecated */
40
39
  fixedPlacement?: DropdownPlacements;
40
+ set options(value: DropdownOption[] | undefined);
41
+ get options(): DropdownOption[] | undefined;
42
+ private _options;
41
43
  set multiSelect(value: string | boolean);
42
44
  get multiSelect(): boolean;
43
45
  private _multiSelect;
@@ -68,5 +70,5 @@ export declare class NggDropdownComponent implements ControlValueAccessor, OnIni
68
70
  private optionByValue;
69
71
  private displayTextByValue;
70
72
  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>;
73
+ 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
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebgroup/green-angular",
3
- "version": "3.0.4",
3
+ "version": "3.1.0",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=15.2.9",
6
6
  "@angular/common": ">=15.2.9",
@@ -11,7 +11,7 @@
11
11
  "rxjs": ">=6.5.3"
12
12
  },
13
13
  "dependencies": {
14
- "@sebgroup/green-core": "^1.4.5",
14
+ "@sebgroup/green-core": "^1.5.0",
15
15
  "@sebgroup/chlorophyll": "^3.0.4",
16
16
  "@sebgroup/extract": "^3.0.0",
17
17
  "tslib": "^2.3.1"