lib-portal-angular 0.0.77 → 0.0.79
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/esm2022/lib/components/imput/input.component.mjs +76 -48
- package/esm2022/lib/components/tables/data-paginate.service.mjs +18 -13
- package/esm2022/lib/components/tables/data-table.component.mjs +111 -48
- package/esm2022/lib/function/ConvertToSnakeCase.mjs +4 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/lib-portal-angular.mjs +197 -98
- package/fesm2022/lib-portal-angular.mjs.map +1 -1
- package/lib/components/imput/input.component.d.ts +10 -4
- package/lib/components/tables/data-paginate.service.d.ts +4 -3
- package/lib/components/tables/data-table.component.d.ts +17 -15
- package/lib/function/ConvertToSnakeCase.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
@@ -1,6 +1,7 @@
|
|
1
|
-
import { EventEmitter, OnDestroy } from
|
2
|
-
import { ControlValueAccessor } from
|
3
|
-
import { AuthService } from
|
1
|
+
import { EventEmitter, OnDestroy } from "@angular/core";
|
2
|
+
import { ControlValueAccessor } from "@angular/forms";
|
3
|
+
import { AuthService } from "../../service/auth-service.service";
|
4
|
+
import { ButtonClasses } from "../../enum/ButtonClassesEnum";
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
export declare class InputComponent implements ControlValueAccessor, OnDestroy {
|
6
7
|
private authService;
|
@@ -25,6 +26,8 @@ export declare class InputComponent implements ControlValueAccessor, OnDestroy {
|
|
25
26
|
useMoneyMask: boolean;
|
26
27
|
currencyCode: string;
|
27
28
|
displayCurrencySymbol: boolean;
|
29
|
+
prependText: string;
|
30
|
+
buttonText: string | null;
|
28
31
|
inputEvent: EventEmitter<Event>;
|
29
32
|
changeEvent: EventEmitter<Event>;
|
30
33
|
focusEvent: EventEmitter<FocusEvent>;
|
@@ -32,8 +35,10 @@ export declare class InputComponent implements ControlValueAccessor, OnDestroy {
|
|
32
35
|
keyupEvent: EventEmitter<KeyboardEvent>;
|
33
36
|
keydownEvent: EventEmitter<KeyboardEvent>;
|
34
37
|
keypressEvent: EventEmitter<KeyboardEvent>;
|
38
|
+
buttonClick: EventEmitter<void>;
|
35
39
|
private onChangeCallback;
|
36
40
|
private onTouchedCallback;
|
41
|
+
ButtonClasses: typeof ButtonClasses;
|
37
42
|
value: string;
|
38
43
|
showErrorModal: boolean;
|
39
44
|
errorMessage: string;
|
@@ -56,7 +61,8 @@ export declare class InputComponent implements ControlValueAccessor, OnDestroy {
|
|
56
61
|
registerOnTouched(fn: any): void;
|
57
62
|
setDisabledState?(isDisabled: boolean): void;
|
58
63
|
hasPermission(): boolean;
|
64
|
+
onButtonClick(): void;
|
59
65
|
ngOnDestroy(): void;
|
60
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "argenta-custom-input", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "required": { "alias": "required"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "useCpfMask": { "alias": "useCpfMask"; "required": false; }; "useCnpjMask": { "alias": "useCnpjMask"; "required": false; }; "useCepMask": { "alias": "useCepMask"; "required": false; }; "onlyNumbers": { "alias": "onlyNumbers"; "required": false; }; "validateInput": { "alias": "validateInput"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "permissions": { "alias": "permissions"; "required": false; }; "useMoneyMask": { "alias": "useMoneyMask"; "required": false; }; "currencyCode": { "alias": "currencyCode"; "required": false; }; "displayCurrencySymbol": { "alias": "displayCurrencySymbol"; "required": false; }; }, { "inputEvent": "inputEvent"; "changeEvent": "changeEvent"; "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; "keyupEvent": "keyupEvent"; "keydownEvent": "keydownEvent"; "keypressEvent": "keypressEvent"; }, never, never, false, never>;
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "argenta-custom-input", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "required": { "alias": "required"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "useCpfMask": { "alias": "useCpfMask"; "required": false; }; "useCnpjMask": { "alias": "useCnpjMask"; "required": false; }; "useCepMask": { "alias": "useCepMask"; "required": false; }; "onlyNumbers": { "alias": "onlyNumbers"; "required": false; }; "validateInput": { "alias": "validateInput"; "required": false; }; "labelFontWeight": { "alias": "labelFontWeight"; "required": false; }; "permissions": { "alias": "permissions"; "required": false; }; "useMoneyMask": { "alias": "useMoneyMask"; "required": false; }; "currencyCode": { "alias": "currencyCode"; "required": false; }; "displayCurrencySymbol": { "alias": "displayCurrencySymbol"; "required": false; }; "prependText": { "alias": "prependText"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; }, { "inputEvent": "inputEvent"; "changeEvent": "changeEvent"; "focusEvent": "focusEvent"; "blurEvent": "blurEvent"; "keyupEvent": "keyupEvent"; "keydownEvent": "keydownEvent"; "keypressEvent": "keypressEvent"; "buttonClick": "buttonClick"; }, never, never, false, never>;
|
62
68
|
}
|
@@ -1,12 +1,13 @@
|
|
1
|
-
import { HttpClient } from
|
2
|
-
import { Observable } from
|
1
|
+
import { HttpClient } from "@angular/common/http";
|
2
|
+
import { Observable } from "rxjs";
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export interface IDataIndexPaginate {
|
5
5
|
filterDescription?: string;
|
6
|
+
filterField: string;
|
6
7
|
pageNumber: number;
|
7
8
|
pageSize: number;
|
8
9
|
sortColumn: string;
|
9
|
-
sortDirection:
|
10
|
+
sortDirection: "asc" | "desc";
|
10
11
|
}
|
11
12
|
export interface IPaginateResult<T> {
|
12
13
|
items: T[];
|
@@ -1,17 +1,18 @@
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter,
|
2
|
-
import { Observable } from
|
3
|
-
import { ButtonClasses } from
|
4
|
-
import { AuthService } from
|
5
|
-
import { RefreshService } from
|
6
|
-
import { IDataIndexPaginate, IPaginateResult } from
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from "@angular/core";
|
2
|
+
import { Observable } from "rxjs";
|
3
|
+
import { ButtonClasses } from "../../enum/ButtonClassesEnum";
|
4
|
+
import { AuthService } from "../../service/auth-service.service";
|
5
|
+
import { RefreshService } from "../../service/refresh-service.service";
|
6
|
+
import { IDataIndexPaginate, IPaginateResult } from "./data-paginate.service";
|
7
7
|
import * as i0 from "@angular/core";
|
8
|
-
export declare class DataTableComponent implements OnInit,
|
8
|
+
export declare class DataTableComponent implements OnInit, OnDestroy {
|
9
9
|
private cdr;
|
10
10
|
private authService;
|
11
11
|
private refreshService;
|
12
12
|
columns: {
|
13
13
|
label: string;
|
14
14
|
prop: string;
|
15
|
+
isSearchSelected?: boolean;
|
15
16
|
}[];
|
16
17
|
hiddenColumns: string[];
|
17
18
|
defaultItemsPerPage: number;
|
@@ -28,42 +29,43 @@ export declare class DataTableComponent implements OnInit, OnChanges, OnDestroy
|
|
28
29
|
ofText: string;
|
29
30
|
filterDescription: string;
|
30
31
|
buttonLabel: string;
|
31
|
-
|
32
|
+
pagedData: any[];
|
33
|
+
initialFilterField: string | null;
|
32
34
|
pageChange: EventEmitter<number>;
|
33
35
|
itemsPerPageChange: EventEmitter<number>;
|
34
36
|
onEditTable: EventEmitter<any>;
|
35
37
|
onDeleteTable: EventEmitter<any>;
|
36
38
|
onViewTable: EventEmitter<any>;
|
37
39
|
onButtonClick: EventEmitter<void>;
|
40
|
+
filterFieldChange: EventEmitter<string>;
|
38
41
|
itemsPerPageOptions: number[];
|
39
42
|
currentPage: number;
|
40
43
|
sortColumn: string;
|
41
|
-
sortDirection:
|
42
|
-
|
44
|
+
sortDirection: "asc" | "desc";
|
45
|
+
selectedSearchField: string;
|
43
46
|
isLoading: boolean;
|
44
47
|
private destroy$;
|
45
48
|
private isInitialized;
|
46
49
|
ButtonClasses: typeof ButtonClasses;
|
47
50
|
labelStyle: {
|
48
|
-
|
49
|
-
|
51
|
+
"font-family": string;
|
52
|
+
"font-size": string;
|
50
53
|
color: string;
|
51
54
|
};
|
52
55
|
constructor(cdr: ChangeDetectorRef, authService: AuthService, refreshService: RefreshService);
|
53
56
|
ngOnInit(): void;
|
54
|
-
ngOnChanges(changes: SimpleChanges): void;
|
55
57
|
ngOnDestroy(): void;
|
56
58
|
protected getNestedProperty(obj: any, path: string): any;
|
57
59
|
fetchData(): void;
|
58
60
|
refreshData(): void;
|
59
|
-
onSort(column: string): void;
|
60
61
|
onPageChange(page: number): void;
|
61
62
|
onItemsPerPageChange(): void;
|
63
|
+
onSelectSearchField(columnProp: string): void;
|
62
64
|
handleAction(action: string, item: any, index: number): void;
|
63
65
|
hasPermission(requiredPermissions: string[]): boolean;
|
64
66
|
isColumnHidden(columnProp: string): boolean;
|
65
67
|
onSearch(searchText: string): void;
|
66
68
|
onNewButtonClick(): void;
|
67
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "argenta-list-data-table", never, { "columns": { "alias": "columns"; "required": false; }; "hiddenColumns": { "alias": "hiddenColumns"; "required": false; }; "defaultItemsPerPage": { "alias": "defaultItemsPerPage"; "required": false; }; "itemsPerPageLabel": { "alias": "itemsPerPageLabel"; "required": false; }; "showActionColumn": { "alias": "showActionColumn"; "required": false; }; "actionColumnLabel": { "alias": "actionColumnLabel"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "fetchDataFunction": { "alias": "fetchDataFunction"; "required": false; }; "editPermissions": { "alias": "editPermissions"; "required": false; }; "deletePermissions": { "alias": "deletePermissions"; "required": false; }; "viewPermissions": { "alias": "viewPermissions"; "required": false; }; "showPageInfo": { "alias": "showPageInfo"; "required": false; }; "pageText": { "alias": "pageText"; "required": false; }; "ofText": { "alias": "ofText"; "required": false; }; "filterDescription": { "alias": "filterDescription"; "required": false; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; }; }
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "argenta-list-data-table", never, { "columns": { "alias": "columns"; "required": false; }; "hiddenColumns": { "alias": "hiddenColumns"; "required": false; }; "defaultItemsPerPage": { "alias": "defaultItemsPerPage"; "required": false; }; "itemsPerPageLabel": { "alias": "itemsPerPageLabel"; "required": false; }; "showActionColumn": { "alias": "showActionColumn"; "required": false; }; "actionColumnLabel": { "alias": "actionColumnLabel"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "fetchDataFunction": { "alias": "fetchDataFunction"; "required": false; }; "editPermissions": { "alias": "editPermissions"; "required": false; }; "deletePermissions": { "alias": "deletePermissions"; "required": false; }; "viewPermissions": { "alias": "viewPermissions"; "required": false; }; "showPageInfo": { "alias": "showPageInfo"; "required": false; }; "pageText": { "alias": "pageText"; "required": false; }; "ofText": { "alias": "ofText"; "required": false; }; "filterDescription": { "alias": "filterDescription"; "required": false; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "pagedData": { "alias": "pagedData"; "required": false; }; "initialFilterField": { "alias": "initialFilterField"; "required": false; }; }, { "pageChange": "pageChange"; "itemsPerPageChange": "itemsPerPageChange"; "onEditTable": "onEditTable"; "onDeleteTable": "onDeleteTable"; "onViewTable": "onViewTable"; "onButtonClick": "onButtonClick"; "filterFieldChange": "filterFieldChange"; }, never, never, false, never>;
|
69
71
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function convertToSnakeCase(input: string): string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -62,3 +62,4 @@ export * from "./lib/components/tables/data-paginate.service";
|
|
62
62
|
export * from "./lib/service/refresh-service.service";
|
63
63
|
export * from "./lib/service/route-parameter.service";
|
64
64
|
export * from "./lib/function/SetThemeColors";
|
65
|
+
export * from "./lib/function/ConvertToSnakeCase";
|