ngx-sp-infra 2.0.21 → 2.1.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.
- package/README.md +138 -138
- package/esm2022/lib/infra.module.mjs +6 -1
- package/esm2022/lib/models/icons/icon.model.mjs +2 -1
- package/esm2022/lib/widgets/content-container/content-container.component.mjs +11 -3
- package/esm2022/lib/widgets/field-contador-message/field-contador-message.component.mjs +1 -1
- package/esm2022/lib/widgets/input-trim/input-trim.component.mjs +34 -0
- package/esm2022/lib/widgets/lib-combobox/lib-combobox.component.mjs +1 -1
- package/esm2022/lib/widgets/lib-icons/lib-icons.component.mjs +5 -5
- package/esm2022/lib/widgets/loading-button/loading-button.component.mjs +5 -5
- package/esm2022/lib/widgets/nav-produtos/nav-produtos.component.mjs +27 -27
- package/esm2022/lib/widgets/table/table.component.mjs +79 -7
- package/esm2022/lib/widgets/tree/tree.component.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ngx-sp-infra.mjs +156 -44
- package/fesm2022/ngx-sp-infra.mjs.map +1 -1
- package/lib/infra.module.d.ts +39 -38
- package/lib/widgets/content-container/content-container.component.d.ts +3 -2
- package/lib/widgets/input-trim/input-trim.component.d.ts +11 -0
- package/lib/widgets/table/table.component.d.ts +26 -5
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
package/lib/infra.module.d.ts
CHANGED
|
@@ -3,45 +3,46 @@ import * as i1 from "./widgets/loading/loading.component";
|
|
|
3
3
|
import * as i2 from "./widgets/field-control-error/field-control-error.component";
|
|
4
4
|
import * as i3 from "./widgets/field-error-message/field-error-message.component";
|
|
5
5
|
import * as i4 from "./widgets/field-contador-message/field-contador-message.component";
|
|
6
|
-
import * as i5 from "./widgets/
|
|
7
|
-
import * as i6 from "./
|
|
8
|
-
import * as i7 from "./message/
|
|
9
|
-
import * as i8 from "./message/confirm
|
|
10
|
-
import * as i9 from "./message/
|
|
11
|
-
import * as i10 from "./
|
|
12
|
-
import * as i11 from "./widgets/breadcrumb/infra-breadcrumb
|
|
13
|
-
import * as i12 from "./widgets/breadcrumb/
|
|
14
|
-
import * as i13 from "./widgets/
|
|
15
|
-
import * as i14 from "./widgets/
|
|
16
|
-
import * as i15 from "./widgets/
|
|
17
|
-
import * as i16 from "./widgets/
|
|
18
|
-
import * as i17 from "./
|
|
19
|
-
import * as i18 from "./pipes/
|
|
20
|
-
import * as i19 from "./
|
|
21
|
-
import * as i20 from "./widgets/combobox/pipes/
|
|
22
|
-
import * as i21 from "./widgets/
|
|
23
|
-
import * as i22 from "./widgets/
|
|
24
|
-
import * as i23 from "./widgets/
|
|
25
|
-
import * as i24 from "./widgets/
|
|
26
|
-
import * as i25 from "./widgets/
|
|
27
|
-
import * as i26 from "./
|
|
28
|
-
import * as i27 from "./
|
|
29
|
-
import * as i28 from "./widgets/
|
|
30
|
-
import * as i29 from "./
|
|
31
|
-
import * as i30 from "./
|
|
32
|
-
import * as i31 from "./
|
|
33
|
-
import * as i32 from "./
|
|
34
|
-
import * as i33 from "./widgets/
|
|
35
|
-
import * as i34 from "./
|
|
36
|
-
import * as i35 from "
|
|
37
|
-
import * as i36 from "
|
|
38
|
-
import * as i37 from "ngx-bootstrap/
|
|
39
|
-
import * as i38 from "ngx-bootstrap/
|
|
40
|
-
import * as i39 from "
|
|
41
|
-
import * as i40 from "
|
|
42
|
-
import * as i41 from "
|
|
6
|
+
import * as i5 from "./widgets/input-trim/input-trim.component";
|
|
7
|
+
import * as i6 from "./widgets/loading-button/loading-button.component";
|
|
8
|
+
import * as i7 from "./message/alert/alert.component";
|
|
9
|
+
import * as i8 from "./message/confirm/confirm.component";
|
|
10
|
+
import * as i9 from "./message/confirm-modal/confirm-modal.component";
|
|
11
|
+
import * as i10 from "./message/save/save.component";
|
|
12
|
+
import * as i11 from "./widgets/breadcrumb/infra-breadcrumb/infra-breadcrumb.component";
|
|
13
|
+
import * as i12 from "./widgets/breadcrumb/infra-breadcrumb-item/infra-breadcrumb-item.component";
|
|
14
|
+
import * as i13 from "./widgets/breadcrumb/portalrh-breadcrumb/breadcrumb.component";
|
|
15
|
+
import * as i14 from "./widgets/combobox/combobox.component";
|
|
16
|
+
import * as i15 from "./widgets/svg-storage/svg-storage.component";
|
|
17
|
+
import * as i16 from "./widgets/nav-produtos/nav-produtos.component";
|
|
18
|
+
import * as i17 from "./widgets/tree/tree.component";
|
|
19
|
+
import * as i18 from "./pipes/to-url.pipe";
|
|
20
|
+
import * as i19 from "./pipes/cpf-cnpj.pipe";
|
|
21
|
+
import * as i20 from "./widgets/combobox/pipes/filter-by.pipe";
|
|
22
|
+
import * as i21 from "./widgets/combobox/pipes/limit-to.pipe";
|
|
23
|
+
import * as i22 from "./widgets/tree/pipes/search-tree.pipe";
|
|
24
|
+
import * as i23 from "./widgets/click-outside/clickoutside.directive";
|
|
25
|
+
import * as i24 from "./widgets/ordering/ordering.component";
|
|
26
|
+
import * as i25 from "./widgets/search-combobox/search-combobox.component";
|
|
27
|
+
import * as i26 from "./widgets/lib-combobox/lib-combobox.component";
|
|
28
|
+
import * as i27 from "./directives/required.directive";
|
|
29
|
+
import * as i28 from "./widgets/simple-header/simple-header.component";
|
|
30
|
+
import * as i29 from "./widgets/lib-icons/lib-icons.component";
|
|
31
|
+
import * as i30 from "./pipes/text-filter.pipe";
|
|
32
|
+
import * as i31 from "./widgets/content-container/content-container.component";
|
|
33
|
+
import * as i32 from "./directives/copy-clipboard.directive";
|
|
34
|
+
import * as i33 from "./widgets/table/table.component";
|
|
35
|
+
import * as i34 from "./widgets/spinner/spinner.component";
|
|
36
|
+
import * as i35 from "./directives/loading-btn.directive";
|
|
37
|
+
import * as i36 from "@angular/common";
|
|
38
|
+
import * as i37 from "ngx-bootstrap/modal";
|
|
39
|
+
import * as i38 from "ngx-bootstrap/accordion";
|
|
40
|
+
import * as i39 from "ngx-bootstrap/tooltip";
|
|
41
|
+
import * as i40 from "@angular/forms";
|
|
42
|
+
import * as i41 from "ngx-pagination";
|
|
43
|
+
import * as i42 from "@angular/router";
|
|
43
44
|
export declare class InfraModule {
|
|
44
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<InfraModule, never>;
|
|
45
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<InfraModule, [typeof i1.LoadingComponent, typeof i2.FieldControlErrorComponent, typeof i3.FieldErrorMessageComponent, typeof i4.FieldContadorMessageComponent, typeof i5.
|
|
46
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<InfraModule, [typeof i1.LoadingComponent, typeof i2.FieldControlErrorComponent, typeof i3.FieldErrorMessageComponent, typeof i4.FieldContadorMessageComponent, typeof i5.InputTrimComponent, typeof i6.LoadingButtonComponent, typeof i7.AlertComponent, typeof i8.ConfirmComponent, typeof i9.ConfirmModalComponent, typeof i10.SaveComponent, typeof i11.InfraBreadcrumbComponent, typeof i12.InfraBreadcrumbItemComponent, typeof i13.BreadcrumbComponent, typeof i14.ComboboxComponent, typeof i15.SvgStorageComponent, typeof i16.NavProdutosComponent, typeof i17.TreeComponent, typeof i18.ToUrlPipe, typeof i19.CpfCnpjPipe, typeof i20.FilterByPipe, typeof i21.LimitToPipe, typeof i22.SearchTreePipe, typeof i23.ClickOutsideDirective, typeof i24.OrderingComponent, typeof i25.SearchComboboxComponent, typeof i26.LibComboboxComponent, typeof i27.RequiredDirective, typeof i28.SimpleHeaderComponent, typeof i29.LibIconsComponent, typeof i30.TextFilterPipe, typeof i31.ContentContainerComponent, typeof i32.CopyClipboardDirective, typeof i33.TableComponent, typeof i34.LibSpinnerComponent, typeof i35.LoadingBtnDirective], [typeof i36.CommonModule, typeof i37.ModalModule, typeof i38.AccordionModule, typeof i39.TooltipModule, typeof i40.FormsModule, typeof i41.NgxPaginationModule, typeof i40.ReactiveFormsModule, typeof i42.RouterModule], [typeof i1.LoadingComponent, typeof i2.FieldControlErrorComponent, typeof i3.FieldErrorMessageComponent, typeof i4.FieldContadorMessageComponent, typeof i5.InputTrimComponent, typeof i6.LoadingButtonComponent, typeof i7.AlertComponent, typeof i8.ConfirmComponent, typeof i9.ConfirmModalComponent, typeof i10.SaveComponent, typeof i11.InfraBreadcrumbComponent, typeof i12.InfraBreadcrumbItemComponent, typeof i16.NavProdutosComponent, typeof i13.BreadcrumbComponent, typeof i14.ComboboxComponent, typeof i15.SvgStorageComponent, typeof i17.TreeComponent, typeof i18.ToUrlPipe, typeof i19.CpfCnpjPipe, typeof i23.ClickOutsideDirective, typeof i24.OrderingComponent, typeof i25.SearchComboboxComponent, typeof i26.LibComboboxComponent, typeof i27.RequiredDirective, typeof i28.SimpleHeaderComponent, typeof i29.LibIconsComponent, typeof i30.TextFilterPipe, typeof i31.ContentContainerComponent, typeof i32.CopyClipboardDirective, typeof i33.TableComponent, typeof i34.LibSpinnerComponent, typeof i35.LoadingBtnDirective]>;
|
|
46
47
|
static ɵinj: i0.ɵɵInjectorDeclaration<InfraModule>;
|
|
47
48
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ContentContainerComponent implements OnInit {
|
|
3
|
+
export declare class ContentContainerComponent implements OnInit, OnChanges {
|
|
4
4
|
private _currentTab;
|
|
5
5
|
navTabsList?: string[];
|
|
6
6
|
containerTitle?: string;
|
|
@@ -10,6 +10,7 @@ export declare class ContentContainerComponent implements OnInit {
|
|
|
10
10
|
set currentTab(value: string);
|
|
11
11
|
constructor();
|
|
12
12
|
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContentContainerComponent, never>;
|
|
14
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<ContentContainerComponent, "lib-container", never, { "navTabsList": { "alias": "tabs"; "required": false; }; "containerTitle": { "alias": "containerTitle"; "required": false; }; }, { "onChangeTab": "onChangeTab"; }, never, ["[innerContent1]", "[innerContent2]", "[innerContent3]", "[innerContent4]", "[innerContent5]", "[innerContent6]", "[innerContent7]", "[innerContent8]", "[innerContent9]", "[innerContent10]"], false, never>;
|
|
15
16
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class InputTrimComponent implements OnInit {
|
|
5
|
+
formControl: FormControl;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
uppercase: boolean;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputTrimComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputTrimComponent, "lib-input-trim", never, { "formControl": { "alias": "control"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "uppercase": { "alias": "uppercase"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -16,12 +16,16 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
export declare class TableComponent implements OnInit, AfterViewInit, OnChanges {
|
|
17
17
|
private cdr;
|
|
18
18
|
private _paginationID;
|
|
19
|
+
private _recordsList;
|
|
20
|
+
private _currentPage;
|
|
21
|
+
private _currentItemsPerPage;
|
|
19
22
|
/** Determina se a tabela deve usar paginação.
|
|
20
23
|
* @default true */
|
|
21
24
|
usePagination: boolean;
|
|
22
25
|
/** Lista de registros a serem exibidos na tabela.
|
|
23
26
|
* @required */
|
|
24
|
-
recordsList: any[] | undefined;
|
|
27
|
+
get recordsList(): any[] | undefined;
|
|
28
|
+
set recordsList(value: any[] | undefined);
|
|
25
29
|
/** Opções de contagem de itens por página disponíveis para o usuário.
|
|
26
30
|
* @required */
|
|
27
31
|
countOptions: number[];
|
|
@@ -34,6 +38,7 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
34
38
|
name: string;
|
|
35
39
|
col: number;
|
|
36
40
|
customClasses?: string;
|
|
41
|
+
orderColumn?: string;
|
|
37
42
|
}[];
|
|
38
43
|
/** Mensagem customizada para lista vazia */
|
|
39
44
|
emptyListMessage?: string;
|
|
@@ -48,12 +53,15 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
48
53
|
itemsPerPageChange: EventEmitter<number>;
|
|
49
54
|
/** Evento emitido quando a página é alterada. */
|
|
50
55
|
pageChange: EventEmitter<number>;
|
|
51
|
-
/** Contador de registros (pode ser usado para futuras implementações de lógica interna). */
|
|
52
|
-
counter: number;
|
|
53
56
|
/** Página atual da tabela. */
|
|
54
|
-
page: number;
|
|
57
|
+
get page(): number;
|
|
58
|
+
set page(value: number);
|
|
55
59
|
/** Número de itens a serem exibidos por página. */
|
|
56
|
-
itemsPerPage: number;
|
|
60
|
+
get itemsPerPage(): number;
|
|
61
|
+
set itemsPerPage(value: number);
|
|
62
|
+
get firstItemOfPage(): number;
|
|
63
|
+
get lastItemOfPage(): number;
|
|
64
|
+
get itemsDisplayText(): string;
|
|
57
65
|
constructor(cdr: ChangeDetectorRef);
|
|
58
66
|
/** Inicializa o componente e define o número inicial de itens por página. */
|
|
59
67
|
ngOnInit(): void;
|
|
@@ -67,6 +75,19 @@ export declare class TableComponent implements OnInit, AfterViewInit, OnChanges
|
|
|
67
75
|
/** Reseta a paginação da listagem com base no número atual de registros.
|
|
68
76
|
* @param list Lista de registros para resetar a paginação. */
|
|
69
77
|
resetPagination(list: any[]): void;
|
|
78
|
+
/** Método que faz a ordenação dos contratos na tela de listagem, em cada uma das células do cabeçalho da tabela, onde cada um
|
|
79
|
+
* dos elementos <th> representa uma coluna, de acordo com a lista de contratos que retorna do backend. */
|
|
80
|
+
sortDirection: {
|
|
81
|
+
[key: string]: string;
|
|
82
|
+
};
|
|
83
|
+
currentSortColumn: string;
|
|
84
|
+
onSortChange(event: {
|
|
85
|
+
direction: string;
|
|
86
|
+
column: string;
|
|
87
|
+
}): void;
|
|
88
|
+
private sortData;
|
|
89
|
+
private compareProperties;
|
|
90
|
+
private getProperty;
|
|
70
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
71
92
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "lib-table", never, { "usePagination": { "alias": "usePagination"; "required": false; }; "recordsList": { "alias": "list"; "required": true; }; "countOptions": { "alias": "counts"; "required": false; }; "paginationPlacement": { "alias": "placement"; "required": false; }; "headersList": { "alias": "headers"; "required": true; }; "emptyListMessage": { "alias": "emptyListMessage"; "required": false; }; "showCounter": { "alias": "showCounter"; "required": false; }; "paginationID": { "alias": "paginationID"; "required": false; }; }, { "itemsPerPageChange": "itemsPerPageChange"; "pageChange": "pageChange"; }, never, ["[innerRows]"], false, never>;
|
|
72
93
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -65,3 +65,4 @@ export * from './lib/widgets/content-container/content-container.component';
|
|
|
65
65
|
export * from './lib/widgets/table/table.component';
|
|
66
66
|
export * from './lib/widgets/spinner/spinner.component';
|
|
67
67
|
export * from './lib/widgets/nav-produtos/nav-produtos.component';
|
|
68
|
+
export * from './lib/widgets/input-trim/input-trim.component';
|