@sebgroup/green-angular 1.7.0 → 1.7.2

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/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from './lib/modal';
8
8
  export * from './lib/pagination';
9
9
  export * from './lib/progress-circle';
10
10
  export * from './lib/segmented-control';
11
+ export * from './lib/shared';
11
12
  export * from './lib/slider';
12
13
  export * from './lib/in-page-wizard';
13
14
  export * from './lib/context-menu';
@@ -1,26 +1,35 @@
1
- import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
2
  import { DropdownOption } from '@sebgroup/extract';
3
+ import { Subject, Subscription } from 'rxjs';
3
4
  import * as i0 from "@angular/core";
4
- export declare class NggContextMenuComponent {
5
+ export declare class NggContextMenuComponent implements AfterViewInit, OnDestroy, OnInit {
6
+ private changeDetectorRef;
5
7
  private elementRef;
8
+ closeContextMenu: Subject<void>;
6
9
  direction: 'ltr' | 'rtl';
7
10
  menuItems: DropdownOption[];
8
11
  menuItemTemplate: TemplateRef<unknown> | null;
9
12
  menuAnchorTemplate: TemplateRef<unknown> | null;
13
+ closeOnScroll: boolean;
10
14
  contextMenuItemClicked: EventEmitter<DropdownOption>;
11
15
  popover: ElementRef | undefined;
12
16
  anchor: ElementRef | undefined;
13
17
  isActive: boolean;
14
18
  top: string;
15
19
  left: string;
16
- constructor(elementRef: ElementRef);
20
+ resizeObserver?: ResizeObserver;
21
+ menuCloseSubscription?: Subscription;
22
+ constructor(changeDetectorRef: ChangeDetectorRef, elementRef: ElementRef, closeContextMenu: Subject<void>);
17
23
  onDocumentClick(target: HTMLElement): void;
24
+ ngOnInit(): void;
25
+ ngAfterViewInit(): void;
26
+ ngOnDestroy(): void;
18
27
  open(): void;
19
28
  close(): void;
20
29
  onItemClick(item: DropdownOption): void;
21
30
  onMenuItemKeyDown(event: KeyboardEvent, menuItem: DropdownOption): void;
22
31
  calculateTop(buttonRectBottom: number): number;
23
32
  calculateLeft(direction: string, buttonRect: DOMRect): number;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<NggContextMenuComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<NggContextMenuComponent, "ngg-context-menu", never, { "direction": "direction"; "menuItems": "menuItems"; "menuItemTemplate": "menuItemTemplate"; "menuAnchorTemplate": "menuAnchorTemplate"; }, { "contextMenuItemClicked": "contextMenuItemClicked"; }, never, never, false>;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<NggContextMenuComponent, [null, null, { optional: true; }]>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<NggContextMenuComponent, "ngg-context-menu", never, { "direction": "direction"; "menuItems": "menuItems"; "menuItemTemplate": "menuItemTemplate"; "menuAnchorTemplate": "menuAnchorTemplate"; "closeOnScroll": "closeOnScroll"; }, { "contextMenuItemClicked": "contextMenuItemClicked"; }, never, never, false>;
26
35
  }
@@ -11,8 +11,9 @@ import * as i9 from "./segmented-control/segmented-control.module";
11
11
  import * as i10 from "./slider/slider.module";
12
12
  import * as i11 from "./context-menu/context-menu.module";
13
13
  import * as i12 from "./in-page-wizard/in-page-wizard.module";
14
+ import * as i13 from "./shared/shared.module";
14
15
  export declare class NggModule {
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<NggModule, never>;
16
- static ɵmod: i0.ɵɵNgModuleDeclaration<NggModule, never, [typeof i1.CommonModule], [typeof i2.NggAccordionModule, typeof i3.NggBadgeModule, typeof i4.NggButtonModule, typeof i5.NggDatepickerModule, typeof i6.NggDropdownModule, typeof i7.NggModalModule, typeof i8.NggProgressCircleModule, typeof i9.NggSegmentedControlModule, typeof i10.NggSliderModule, typeof i11.NggContextMenuModule, typeof i12.NggInPageWizardModule]>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NggModule, never, [typeof i1.CommonModule], [typeof i2.NggAccordionModule, typeof i3.NggBadgeModule, typeof i4.NggButtonModule, typeof i5.NggDatepickerModule, typeof i6.NggDropdownModule, typeof i7.NggModalModule, typeof i8.NggProgressCircleModule, typeof i9.NggSegmentedControlModule, typeof i10.NggSliderModule, typeof i11.NggContextMenuModule, typeof i12.NggInPageWizardModule, typeof i13.NggSharedModule]>;
17
18
  static ɵinj: i0.ɵɵInjectorDeclaration<NggModule>;
18
19
  }
@@ -0,0 +1,2 @@
1
+ export * from './shared.module';
2
+ export * from './on-scroll.directive';
@@ -0,0 +1,14 @@
1
+ import { AfterViewInit, ElementRef, InjectionToken, OnDestroy } from '@angular/core';
2
+ import { Subject } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare const ON_SCROLL_TOKEN: InjectionToken<string>;
5
+ export declare class NggOnScrollDirective implements AfterViewInit, OnDestroy {
6
+ private elementRef;
7
+ onScroll$: Subject<unknown>;
8
+ destroy$: Subject<unknown>;
9
+ constructor(elementRef: ElementRef);
10
+ ngAfterViewInit(): void;
11
+ ngOnDestroy(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<NggOnScrollDirective, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NggOnScrollDirective, "[nggOnScroll]", never, {}, {}, never, never, false>;
14
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./on-scroll.directive";
3
+ import * as i2 from "@angular/common";
4
+ export declare class NggSharedModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NggSharedModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NggSharedModule, [typeof i1.NggOnScrollDirective], [typeof i2.CommonModule], [typeof i1.NggOnScrollDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<NggSharedModule>;
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebgroup/green-angular",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": ">=14.2.7",
6
6
  "@angular/common": ">=14.3.0",
@@ -11,8 +11,8 @@
11
11
  "rxjs": ">=6.5.3"
12
12
  },
13
13
  "dependencies": {
14
- "@sebgroup/chlorophyll": "^1.9.0",
15
- "@sebgroup/extract": "^1.3.1",
14
+ "@sebgroup/chlorophyll": "^1.10.3",
15
+ "@sebgroup/extract": "^1.3.4",
16
16
  "tslib": "^2.3.1"
17
17
  },
18
18
  "description": "Angular components built on top of @sebgroup/chlorophyll.",
@@ -24,7 +24,7 @@
24
24
  "registry": "https://registry.npmjs.org/",
25
25
  "access": "public"
26
26
  },
27
- "author": "Robert Hjalmers <opensource@rhj.se> (http://www.linkedin.com/in/robert-hjalmers/)",
27
+ "author": "SEB Open Source <opensource@seb.se> (https://github.com/sebgroup)",
28
28
  "contributors": [],
29
29
  "license": "Apache-2.0",
30
30
  "bugs": {