ngx-sp-infra 6.6.6 → 6.6.7
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/fesm2022/ngx-sp-infra.mjs +139 -44
- package/fesm2022/ngx-sp-infra.mjs.map +1 -1
- package/lib/widgets/combobox-multiple-choice/combobox-multiple-choice.component.d.ts +13 -1
- package/lib/widgets/footer/footer.component.d.ts +6 -1
- package/lib/widgets/lib-header/lib-header.component.d.ts +6 -1
- package/lib/widgets/search-filters/search-filters.component.d.ts +9 -2
- package/lib/widgets/table/table.component.d.ts +7 -1
- package/package.json +1 -1
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { EventEmitter } from '@angular/core';
|
|
2
3
|
import { RecordCombobox } from '../../models/combobox/record-combobox';
|
|
4
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ComboboxMultipleChoiceComponent {
|
|
6
|
+
export declare class ComboboxMultipleChoiceComponent implements OnInit {
|
|
7
|
+
private _breakpointObserver;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
constructor(_breakpointObserver: BreakpointObserver);
|
|
12
|
+
ngOnInit(): void;
|
|
5
13
|
private readonly _EMIT_RESET_FILTER;
|
|
14
|
+
private _isMobile;
|
|
6
15
|
protected search: string;
|
|
7
16
|
protected get selectedOptions(): RecordCombobox[];
|
|
8
17
|
protected get selectedLabels(): string;
|
|
@@ -10,8 +19,11 @@ export declare class ComboboxMultipleChoiceComponent {
|
|
|
10
19
|
options: RecordCombobox[];
|
|
11
20
|
placeholder: string;
|
|
12
21
|
disabled: boolean;
|
|
22
|
+
get isMobile(): boolean;
|
|
13
23
|
showLimparBtn: boolean;
|
|
14
24
|
protected resetFilter(): void;
|
|
25
|
+
initMobileObserver(): void;
|
|
26
|
+
LimitarTexto(texto: string, limite: number): string;
|
|
15
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComboboxMultipleChoiceComponent, never>;
|
|
16
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<ComboboxMultipleChoiceComponent, "app-combobox-multiple-choice, lib-combobox-multiple", never, { "options": { "alias": "options"; "required": true; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showLimparBtn": { "alias": "showLimparBtn"; "required": false; }; }, { "_EMIT_RESET_FILTER": "resetFilter"; "EMIT_CHANGE": "change"; }, never, never, true, never>;
|
|
17
29
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class FooterComponent implements OnInit {
|
|
4
5
|
private el;
|
|
5
|
-
|
|
6
|
+
private _breakpointObserver;
|
|
7
|
+
constructor(el: ElementRef, _breakpointObserver: BreakpointObserver);
|
|
6
8
|
currentTime: Date;
|
|
7
9
|
year: number;
|
|
10
|
+
private _isMobile;
|
|
11
|
+
get isMobile(): boolean;
|
|
8
12
|
ngOnInit(): void;
|
|
13
|
+
initMobileObserver(): void;
|
|
9
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
10
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "[app-footer], app-footer, lib-footer", never, {}, {}, never, never, true, never>;
|
|
11
16
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* @description Este arquivo contém a implementação do componente SimpleHeaderComponent, um cabeçalho genérico
|
|
@@ -42,6 +43,8 @@ import * as i0 from "@angular/core";
|
|
|
42
43
|
* @note Este componente é flexível e pode ser facilmente adaptado para diferentes layouts e necessidades de página.
|
|
43
44
|
*/
|
|
44
45
|
export declare class LibHeaderComponent implements OnInit {
|
|
46
|
+
private _breakpointObserver;
|
|
47
|
+
private _isMobile;
|
|
45
48
|
protected auditoriaRoute?: string;
|
|
46
49
|
/** Lista de strings a serem informadas para preencher o breadcrumb corretamente */
|
|
47
50
|
breadcrumbList: string[];
|
|
@@ -73,7 +76,8 @@ export declare class LibHeaderComponent implements OnInit {
|
|
|
73
76
|
/** [DEPRECIADO EM BREVE] Emissor de evento ao clicar no "Salvar" em modo de edição. Será depreciado em breve, utilize 'update'. */
|
|
74
77
|
onUpdate: EventEmitter<void>;
|
|
75
78
|
update: EventEmitter<void>;
|
|
76
|
-
|
|
79
|
+
get isMobile(): boolean;
|
|
80
|
+
constructor(_breakpointObserver: BreakpointObserver);
|
|
77
81
|
ngOnInit(): void;
|
|
78
82
|
/** Emite um evento para retornar à página anterior */
|
|
79
83
|
protected emitReturn(): void;
|
|
@@ -82,6 +86,7 @@ export declare class LibHeaderComponent implements OnInit {
|
|
|
82
86
|
/** Emite um evento quando o botão de "Salvar" em modo de edição foi clicado */
|
|
83
87
|
protected emitUpdate(): void;
|
|
84
88
|
protected setSaveText(): string;
|
|
89
|
+
initMobileObserver(): void;
|
|
85
90
|
protected initializeAuditoriaRoute(): void;
|
|
86
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibHeaderComponent, never>;
|
|
87
92
|
static ɵcmp: i0.ɵɵComponentDeclaration<LibHeaderComponent, "lib-header", never, { "breadcrumbList": { "alias": "breadcrumbList"; "required": true; }; "pageTitle": { "alias": "pageTitle"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "hideButtons": { "alias": "hideButtons"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "showSpinner": { "alias": "showSpinner"; "required": false; }; "auditoria": { "alias": "auditoria"; "required": false; }; }, { "onReturn": "onReturn"; "return": "return"; "onCreate": "onCreate"; "create": "create"; "onUpdate": "onUpdate"; "update": "update"; }, never, ["*", "[customButtonEnd]"], true, never>;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import { BasicFilters } from '../../models/filters/basic-filters';
|
|
3
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SearchFiltersComponent {
|
|
4
|
-
|
|
5
|
+
export declare class SearchFiltersComponent implements OnInit {
|
|
6
|
+
private _breakpointObserver;
|
|
7
|
+
constructor(_breakpointObserver: BreakpointObserver);
|
|
8
|
+
ngOnInit(): void;
|
|
5
9
|
/** Evento emitido quando o botão 'Pesquisar' ou 'Limpar' forem clicados. Retornam o valor da pesquisa, seja ela apenas a pesquisa de texto ou a pesquisa e o checkbox de status.
|
|
6
10
|
* @returns Se a propriedade 'useIsActive' estiver false retorna´ra uma string, caso estiver true (valor padrão ou explícito) retornará a estrutura 'BasicFilters'. */
|
|
7
11
|
private _executeGetBySearch;
|
|
8
12
|
/** Evento emitido quando o botão de 'Limpar' for clicado. Serve para sinalizar o compoenente pai que deve limpar o valor de quaisquer inputs customizados que foram adicionados por meio do <ng-content>. */
|
|
9
13
|
private readonly _EMIT_CLEAR_EXTRA_INPUT;
|
|
14
|
+
private _isMobile;
|
|
10
15
|
/** Placeholder a ser exibido no campo de pesquisa de texto. */
|
|
11
16
|
placeholder: string;
|
|
12
17
|
/** Informa se o componente utilizará o checkbox de status ou não. Esta informação influencia no tipo de retorno do evento '_executeGetBySearch'. */
|
|
@@ -16,9 +21,11 @@ export declare class SearchFiltersComponent {
|
|
|
16
21
|
search: string;
|
|
17
22
|
selected: unknown;
|
|
18
23
|
isActive: boolean;
|
|
24
|
+
get isMobile(): boolean;
|
|
19
25
|
applyFilters(): void;
|
|
20
26
|
clearFilters(): void;
|
|
21
27
|
syncFilters(): void;
|
|
28
|
+
initMobileObserver(): void;
|
|
22
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchFiltersComponent, never>;
|
|
23
30
|
static ɵcmp: i0.ɵɵComponentDeclaration<SearchFiltersComponent, "app-search-filters, lib-basic-filters", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "useIsActive": { "alias": "useIsActive"; "required": false; }; "basicFilters": { "alias": "basicFilters"; "required": false; }; }, { "_executeGetBySearch": "_executeGetBySearch"; "_EMIT_CLEAR_EXTRA_INPUT": "_EMIT_CLEAR_EXTRA_INPUT"; }, never, ["*"], true, never>;
|
|
24
31
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { TableHeaderStructure } from '../../models/table/header-structure.model';
|
|
3
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Componente de Tabela Customizável
|
|
@@ -15,8 +16,10 @@ import * as i0 from "@angular/core";
|
|
|
15
16
|
export declare class TableComponent implements OnInit, AfterViewInit, OnChanges {
|
|
16
17
|
private readonly _cdr;
|
|
17
18
|
private readonly _renderer;
|
|
19
|
+
private readonly _breakpointObserver;
|
|
18
20
|
private _paginationID;
|
|
19
21
|
private _recordsList;
|
|
22
|
+
private _isMobile;
|
|
20
23
|
private _currentPage;
|
|
21
24
|
private _currentItemsPerPage;
|
|
22
25
|
selection: boolean | undefined;
|
|
@@ -96,6 +99,8 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
96
99
|
/** Número de itens a serem exibidos por página. */
|
|
97
100
|
get itemsPerPage(): number;
|
|
98
101
|
set itemsPerPage(value: number);
|
|
102
|
+
/** Se é Mobile baseado na resolução da tela do usuário. */
|
|
103
|
+
get isMobile(): boolean;
|
|
99
104
|
get firstItemOfPage(): number;
|
|
100
105
|
get lastItemOfPage(): number;
|
|
101
106
|
get itemsDisplayText(): string;
|
|
@@ -104,7 +109,7 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
104
109
|
tableBorderClass: string;
|
|
105
110
|
emptyListTD?: ElementRef<HTMLTableCellElement>;
|
|
106
111
|
colspanWidth: string;
|
|
107
|
-
constructor(_cdr: ChangeDetectorRef, _renderer: Renderer2);
|
|
112
|
+
constructor(_cdr: ChangeDetectorRef, _renderer: Renderer2, _breakpointObserver: BreakpointObserver);
|
|
108
113
|
/** Inicializa o componente e define o número inicial de itens por página. */
|
|
109
114
|
ngOnInit(): void;
|
|
110
115
|
ngAfterViewInit(): void;
|
|
@@ -115,6 +120,7 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
115
120
|
private validateHeaders;
|
|
116
121
|
private updateCounterInfo;
|
|
117
122
|
private updateColspanWidth;
|
|
123
|
+
initMobileObserver(): void;
|
|
118
124
|
/** Modifica a quantidade de itens a ser mostrada na lista.
|
|
119
125
|
* @param event parâmetro de evento que irá selecionar a nova quantidade. */
|
|
120
126
|
onSelectChange(event: any): void;
|