ngx-sp-infra 6.5.0 → 6.5.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,7 @@
1
+ export interface IV6Menu {
2
+ ProjetoIcone: string;
3
+ Projeto: string;
4
+ Titulo: string;
5
+ RotaV6: string;
6
+ RotaOS: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ export interface IV6Submenu {
2
+ ProjetoIcone: string;
3
+ Projeto: string;
4
+ Titulo: string;
5
+ RotaV6: string;
6
+ RotaOS: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ export interface IV6Tela {
2
+ ProjetoIcone: string;
3
+ Projeto: string;
4
+ Titulo: string;
5
+ RotaV6: string;
6
+ RotaOS: string;
7
+ }
@@ -0,0 +1,8 @@
1
+ import { IV6Menu } from "./IV6Menu.model";
2
+ import { IV6Submenu } from "./IV6Submenu.model";
3
+ import { IV6Tela } from "./IV6Tela.model";
4
+ export declare class MenuSubmenuTela {
5
+ Menus: IV6Menu[];
6
+ Submenus: IV6Submenu[];
7
+ Telas: IV6Tela[];
8
+ }
@@ -1,31 +1,40 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { AfterViewInit, ElementRef, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnInit } from '@angular/core';
3
2
  import { Router } from '@angular/router';
3
+ import { IV6Menu } from './models/IV6Menu.model';
4
+ import { IV6Submenu } from './models/IV6Submenu.model';
5
+ import { IV6Tela } from './models/IV6Tela.model';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare class SearchInputComponent implements OnInit, AfterViewInit {
6
- private http;
7
- private router;
8
- isVisible: boolean;
9
- searchQuery: string;
10
- items: {
11
- label: string;
12
- route: string;
13
- }[];
14
- filteredItems: {
15
- label: string;
16
- route: string;
17
- }[];
8
+ private _router;
9
+ private _menus?;
10
+ private _submenus?;
11
+ private _telas?;
12
+ showIcons: boolean;
13
+ onClose: EventEmitter<void>;
14
+ onSearch: EventEmitter<string>;
18
15
  searchInput: ElementRef<HTMLInputElement>;
19
- constructor(http: HttpClient, router: Router);
16
+ searchQuery: string;
17
+ loading: boolean;
18
+ filteredTelas?: IV6Tela[];
19
+ filteredSubmenus?: IV6Submenu[];
20
+ filteredMenus?: IV6Menu[];
21
+ get menus(): IV6Menu[] | undefined;
22
+ set menus(value: IV6Menu[] | undefined);
23
+ get submenus(): IV6Submenu[] | undefined;
24
+ set submenus(value: IV6Submenu[] | undefined);
25
+ get telas(): IV6Tela[] | undefined;
26
+ set telas(value: IV6Tela[] | undefined);
27
+ constructor(_router: Router);
20
28
  ngOnInit(): void;
21
29
  ngAfterViewInit(): void;
22
- loadRoutes(): void;
23
30
  onKeydown(event: KeyboardEvent): void;
24
- closeSearch(): void;
25
- resetSearch(): void;
26
- onSearch(): void;
27
31
  navigateTo(route: string): void;
32
+ redirect(item: IV6Tela | IV6Submenu | IV6Menu): void;
33
+ highlightList(pesquisa: string): void;
34
+ close(): void;
35
+ search(): void;
36
+ resetSearch(): void;
28
37
  private focusInput;
29
38
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchInputComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<SearchInputComponent, "lib-search-input", never, {}, {}, never, never, true, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<SearchInputComponent, "lib-search-input, lib-pesquisa-global", never, { "showIcons": { "alias": "showIcons"; "required": false; }; }, { "onClose": "onClose"; "onSearch": "onSearch"; }, never, never, true, never>;
31
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-sp-infra",
3
- "version": "6.5.0",
3
+ "version": "6.5.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,10 @@ 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/IV6Menu.model';
50
+ export * from './lib/widgets/search-input/models/IV6Submenu.model';
51
+ export * from './lib/widgets/search-input/models/IV6Tela.model';
52
+ export * from './lib/widgets/search-input/models/MenuSubmenuTela.model';
49
53
  /** Pipes */
50
54
  export * from './lib/directives/a11y-click.directive';
51
55
  export * from './lib/pipes/cpf-cnpj.pipe';