@pumpkin-tech/pumpkin-tech-ng 0.2.7 → 0.2.9

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
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnDestroy, ElementRef, NgZone, TemplateRef, EventEmitter, OnChanges, SimpleChanges, OnInit, ChangeDetectorRef, InjectionToken, AfterContentInit, QueryList, Renderer2, ViewContainerRef, PipeTransform } from '@angular/core';
2
+ import { OnDestroy, ElementRef, NgZone, TemplateRef, EventEmitter, OnChanges, SimpleChanges, AfterViewInit, ChangeDetectorRef, OnInit, InjectionToken, AfterContentInit, QueryList, Renderer2, ViewContainerRef, PipeTransform } from '@angular/core';
3
3
  import { BreakpointObserver } from '@angular/cdk/layout';
4
4
  import { BooleanInput } from '@angular/cdk/coercion';
5
5
  import * as i2 from '@angular/forms';
@@ -341,7 +341,7 @@ declare class BadgeStackComponent {
341
341
  get dir(): Dir;
342
342
  get fwrap(): "wrap" | "nowrap";
343
343
  get cssGap(): string;
344
- get ai(): "center" | "flex-end" | "stretch" | "baseline" | "flex-start";
344
+ get ai(): "center" | "stretch" | "baseline" | "flex-end" | "flex-start";
345
345
  get jc(): "center" | "flex-end" | "flex-start" | "space-between" | "space-around" | "space-evenly";
346
346
  static ɵfac: i0.ɵɵFactoryDeclaration<BadgeStackComponent, never>;
347
347
  static ɵcmp: i0.ɵɵComponentDeclaration<BadgeStackComponent, "ptech-badge-stack", never, { "direction": { "alias": "direction"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "wrap": { "alias": "wrap"; "required": false; }; "align": { "alias": "align"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "col": { "alias": "col"; "required": false; }; }, {}, never, ["*"], true, never>;
@@ -506,8 +506,9 @@ interface FooterItem {
506
506
  icon: string;
507
507
  text: string;
508
508
  }
509
- declare class NavComponent {
509
+ declare class NavComponent implements AfterViewInit, OnDestroy {
510
510
  navService: NavService;
511
+ private readonly cdr;
511
512
  links: NavLink[];
512
513
  currentModuleName: string;
513
514
  fixedTopGap: number;
@@ -519,13 +520,21 @@ declare class NavComponent {
519
520
  headerClick: EventEmitter<void>;
520
521
  navigate: EventEmitter<NavLink>;
521
522
  logout: EventEmitter<void>;
523
+ navListEl?: ElementRef<HTMLElement>;
522
524
  stack: NavLink[];
525
+ navListOverflow: boolean;
523
526
  readonly navOpen$: Observable<boolean>;
524
- constructor(navService: NavService);
527
+ private readonly destroy$;
528
+ private resizeObserver?;
529
+ private recalculationRafId;
530
+ constructor(navService: NavService, cdr: ChangeDetectorRef);
525
531
  get currentLevel(): NavLink[];
526
532
  get currentTitle(): string;
527
533
  clickItem(item: NavLink, ev: MouseEvent): void;
528
534
  onHeaderClick(): void;
535
+ ngAfterViewInit(): void;
536
+ ngOnDestroy(): void;
537
+ private scheduleOverflowRecalc;
529
538
  static ɵfac: i0.ɵɵFactoryDeclaration<NavComponent, never>;
530
539
  static ɵcmp: i0.ɵɵComponentDeclaration<NavComponent, "ptech-nav", never, { "links": { "alias": "links"; "required": false; }; "currentModuleName": { "alias": "currentModuleName"; "required": false; }; "fixedTopGap": { "alias": "fixedTopGap"; "required": false; }; "fixedBottomGap": { "alias": "fixedBottomGap"; "required": false; }; "footerItems": { "alias": "footerItems"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "backdropClick": "backdropClick"; "headerClick": "headerClick"; "navigate": "navigate"; "logout": "logout"; }, never, never, true, never>;
531
540
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pumpkin-tech/pumpkin-tech-ng",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "Biblioteca Angular com utilitários e componentes Pumpkin Tech",
5
5
  "license": "MIT",
6
6
  "keywords": [