@sebgroup/green-angular 2.0.3 → 2.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.
- package/esm2020/lib/context-menu/context-menu.component.mjs +32 -80
- package/esm2020/lib/context-menu/context-menu.module.mjs +7 -5
- package/esm2020/lib/dropdown/dropdown.component.mjs +3 -3
- package/esm2020/lib/modal/modal.component.mjs +9 -9
- package/fesm2015/sebgroup-green-angular.mjs +128 -184
- package/fesm2015/sebgroup-green-angular.mjs.map +1 -1
- package/fesm2020/sebgroup-green-angular.mjs +127 -177
- package/fesm2020/sebgroup-green-angular.mjs.map +1 -1
- package/lib/context-menu/context-menu.component.d.ts +25 -17
- package/lib/context-menu/context-menu.module.d.ts +2 -1
- package/package.json +4 -4
- package/esm2020/lib/context-menu/context-menu.constants.mjs +0 -3
- package/lib/context-menu/context-menu.constants.d.ts +0 -2
|
@@ -1,34 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import { DropdownOption } from '../dropdown/dropdown.component';
|
|
3
|
-
import
|
|
3
|
+
import '@sebgroup/green-core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NggContextMenuComponent
|
|
6
|
-
private changeDetectorRef;
|
|
5
|
+
export declare class NggContextMenuComponent {
|
|
7
6
|
private elementRef;
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Placement of the popover relative to the anchor element.
|
|
9
|
+
*/
|
|
9
10
|
direction: 'ltr' | 'rtl';
|
|
11
|
+
/**
|
|
12
|
+
* List of items to be displayed in the context menu.
|
|
13
|
+
*/
|
|
10
14
|
menuItems: DropdownOption[];
|
|
15
|
+
/**
|
|
16
|
+
* Custom menu item template.
|
|
17
|
+
*/
|
|
11
18
|
menuItemTemplate: TemplateRef<unknown> | null;
|
|
19
|
+
/**
|
|
20
|
+
* Custom menu trigger template.
|
|
21
|
+
*/
|
|
12
22
|
menuAnchorTemplate: TemplateRef<unknown> | null;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
* This property no longer has any effect and will be removed in a future version.
|
|
26
|
+
*/
|
|
13
27
|
closeOnScroll: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Emits when a menu item is clicked.
|
|
30
|
+
*/
|
|
14
31
|
contextMenuItemClicked: EventEmitter<DropdownOption>;
|
|
15
32
|
popover: ElementRef<HTMLElement>;
|
|
16
33
|
anchor: ElementRef<HTMLElement>;
|
|
17
34
|
isActive: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
resizeObserver?: ResizeObserver;
|
|
21
|
-
menuCloseSubscription?: Subscription;
|
|
22
|
-
constructor(changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>, closeContextMenu: Subject<void>);
|
|
23
|
-
onDocumentClick(target: HTMLElement): void;
|
|
24
|
-
ngOnInit(): void;
|
|
25
|
-
ngAfterViewInit(): void;
|
|
26
|
-
ngOnDestroy(): void;
|
|
35
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
36
|
+
get placement(): string;
|
|
27
37
|
open(): void;
|
|
28
38
|
close(): void;
|
|
29
39
|
onItemClick(item: DropdownOption): void;
|
|
30
|
-
|
|
31
|
-
calculateLeft(direction: string, buttonRect: DOMRect): number;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NggContextMenuComponent, [null, null, { optional: true; }]>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NggContextMenuComponent, never>;
|
|
33
41
|
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>;
|
|
34
42
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./context-menu.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../shared/core-element/core-element.module";
|
|
4
5
|
export declare class NggContextMenuModule {
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NggContextMenuModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NggContextMenuModule, [typeof i1.NggContextMenuComponent], [typeof i2.CommonModule], [typeof i1.NggContextMenuComponent]>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NggContextMenuModule, [typeof i1.NggContextMenuComponent], [typeof i2.CommonModule, typeof i3.NggCoreWrapperModule], [typeof i1.NggContextMenuComponent]>;
|
|
7
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<NggContextMenuModule>;
|
|
8
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-angular",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": ">=15.2.9",
|
|
6
6
|
"@angular/common": ">=15.2.9",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"rxjs": ">=6.5.3"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@sebgroup/green-core": "^1.0
|
|
15
|
-
"@sebgroup/chlorophyll": "^2.2.
|
|
16
|
-
"@sebgroup/extract": "^2.
|
|
14
|
+
"@sebgroup/green-core": "^1.2.0",
|
|
15
|
+
"@sebgroup/chlorophyll": "^2.2.1",
|
|
16
|
+
"@sebgroup/extract": "^2.1.0",
|
|
17
17
|
"tslib": "^2.3.1"
|
|
18
18
|
},
|
|
19
19
|
"description": "Angular components built on top of @sebgroup/chlorophyll.",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export const CONTEXT_MENU_TOP = '0px';
|
|
2
|
-
export const CONTEXT_MENU_LEFT = '0px';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC1tZW51LmNvbnN0YW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvYW5ndWxhci9zcmMvbGliL2NvbnRleHQtbWVudS9jb250ZXh0LW1lbnUuY29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxNQUFNLGdCQUFnQixHQUFHLEtBQUssQ0FBQztBQUV0QyxNQUFNLENBQUMsTUFBTSxpQkFBaUIsR0FBRyxLQUFLLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgQ09OVEVYVF9NRU5VX1RPUCA9ICcwcHgnO1xuXG5leHBvcnQgY29uc3QgQ09OVEVYVF9NRU5VX0xFRlQgPSAnMHB4JzsiXX0=
|