ngx-sp-infra 6.4.0 → 6.4.1

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.
@@ -0,0 +1,8 @@
1
+ export interface ITelaRota {
2
+ icon?: string;
3
+ label: string;
4
+ route: string;
5
+ modulo?: string;
6
+ menu?: string;
7
+ submenu?: string;
8
+ }
@@ -1,31 +1,29 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
3
3
  import { Router } from '@angular/router';
4
+ import { ITelaRota } from './models/ITelaRota';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class SearchInputComponent implements OnInit, AfterViewInit {
6
- private http;
7
- private router;
7
+ private _http;
8
+ private _router;
9
+ private _items;
10
+ customItems?: ITelaRota[];
11
+ showIcons: boolean;
12
+ searchInput: ElementRef<HTMLInputElement>;
8
13
  isVisible: boolean;
9
14
  searchQuery: string;
10
- items: {
11
- label: string;
12
- route: string;
13
- }[];
14
- filteredItems: {
15
- label: string;
16
- route: string;
17
- }[];
18
- searchInput: ElementRef<HTMLInputElement>;
19
- constructor(http: HttpClient, router: Router);
15
+ filteredItems: ITelaRota[];
16
+ constructor(_http: HttpClient, _router: Router);
20
17
  ngOnInit(): void;
21
18
  ngAfterViewInit(): void;
22
- loadRoutes(): void;
19
+ private loadRoutes;
23
20
  onKeydown(event: KeyboardEvent): void;
21
+ navigateTo(route: string): void;
22
+ highlightList(pesquisa: string): void;
24
23
  closeSearch(): void;
25
- resetSearch(): void;
26
24
  onSearch(): void;
27
- navigateTo(route: string): void;
25
+ resetSearch(): void;
28
26
  private focusInput;
29
27
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchInputComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchInputComponent, "lib-search-input", never, {}, {}, never, never, true, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchInputComponent, "lib-search-input, lib-pesquisa-global", never, { "customItems": { "alias": "customItems"; "required": false; }; "showIcons": { "alias": "showIcons"; "required": false; }; }, {}, never, never, true, never>;
31
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-sp-infra",
3
- "version": "6.4.0",
3
+ "version": "6.4.1",
4
4
  "description": "Biblioteca de utilitários da Infra.",
5
5
  "author": "P&D",
6
6
  "keywords": [
package/public-api.d.ts CHANGED
@@ -46,6 +46,7 @@ export * from './lib/models/utils/ipagination';
46
46
  export * from './lib/models/utils/ret-error';
47
47
  export * from './lib/models/utils/ret-feedback-message';
48
48
  export * from './lib/widgets/lib-nav-produtos/models/navigation-options.model';
49
+ export * from './lib/widgets/search-input/models/ITelaRota';
49
50
  /** Pipes */
50
51
  export * from './lib/directives/a11y-click.directive';
51
52
  export * from './lib/pipes/cpf-cnpj.pipe';