ngx-vector-components 2.13.0 → 3.0.0
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/CHANGELOG.md +51 -0
- package/assets/styles/_mixins.scss +7 -0
- package/assets/styles/_primeng-custom-theme.scss +120 -11
- package/assets/styles/_spinner.scss +0 -2
- package/assets/styles/_styles.scss +5 -0
- package/assets/styles/_variables.scss +1 -11
- package/esm2020/lib/components/badge/badge.component.mjs +34 -0
- package/esm2020/lib/components/badge/badge.module.mjs +18 -0
- package/esm2020/lib/components/badge/index.mjs +3 -0
- package/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +8 -5
- package/esm2020/lib/components/crud-base/crud-base.component.mjs +7 -1
- package/esm2020/lib/components/crud-footer/crud-footer.component.mjs +1 -1
- package/esm2020/lib/components/crud-header/crud-header.component.mjs +30 -0
- package/esm2020/lib/components/crud-header/crud-header.module.mjs +19 -0
- package/esm2020/lib/components/crud-header/index.mjs +3 -0
- package/esm2020/lib/components/crud-history/crud-history.component.mjs +51 -0
- package/esm2020/lib/components/crud-history/crud-history.module.mjs +20 -0
- package/esm2020/lib/components/crud-history/index.mjs +3 -0
- package/esm2020/lib/components/fields/button/button.component.mjs +9 -3
- package/esm2020/lib/components/fields/calendar-field/calendar-field.component.mjs +2 -2
- package/esm2020/lib/components/fields/currency-field/currency-field.component.mjs +2 -2
- package/esm2020/lib/components/fields/data-table/data-table.component.mjs +12 -3
- package/esm2020/lib/components/fields/dropdown-field/dropdown-field.component.mjs +11 -7
- package/esm2020/lib/components/fields/field-error-message/field-error-message.component.mjs +2 -2
- package/esm2020/lib/components/fields/fields.module.mjs +13 -4
- package/esm2020/lib/components/fields/filters/filters.component.mjs +18 -6
- package/esm2020/lib/components/fields/index.mjs +2 -1
- package/esm2020/lib/components/fields/multiselect-field/multiselect-field.component.mjs +2 -2
- package/esm2020/lib/components/fields/percentage-field/percentage-field.component.mjs +2 -2
- package/esm2020/lib/components/fields/range-value/range-value.component.mjs +2 -2
- package/esm2020/lib/components/fields/select-button-field/index.mjs +2 -0
- package/esm2020/lib/components/fields/select-button-field/select-button-field.component.mjs +20 -0
- package/esm2020/lib/components/fields/text-field/text-field.component.mjs +2 -2
- package/esm2020/lib/components/fields/textarea-field/textarea-field.component.mjs +2 -2
- package/esm2020/lib/components/generic-error-modal/generic-error-modal.component.mjs +2 -2
- package/esm2020/lib/components/generic-modal/generic-modal.component.mjs +3 -3
- package/esm2020/lib/components/index.mjs +4 -1
- package/esm2020/lib/components/menu/menu.component.mjs +27 -31
- package/esm2020/lib/components/menu/sub-menus-list/sub-menus-list.component.mjs +3 -3
- package/esm2020/lib/components/top-bar/top-bar.component.mjs +2 -2
- package/esm2020/lib/guards/crud-list-has-items.guard.mjs +22 -0
- package/esm2020/lib/guards/index.mjs +2 -1
- package/esm2020/lib/guards/token-is-present.guard.mjs +15 -6
- package/esm2020/lib/models/crud-history.model.mjs +9 -0
- package/esm2020/lib/models/index.mjs +2 -1
- package/esm2020/lib/models/ip-info.enum.mjs +2 -0
- package/esm2020/lib/models/menu-item.model.mjs +1 -1
- package/esm2020/lib/models/profile.model.mjs +4 -1
- package/esm2020/lib/models/view.enum.mjs +2 -1
- package/esm2020/lib/pipes/format-document.pipe.mjs +17 -0
- package/esm2020/lib/pipes/index.mjs +2 -1
- package/esm2020/lib/pipes/pipes.module.mjs +5 -4
- package/esm2020/lib/resolvers/get-entity-history.resolver.mjs +22 -0
- package/esm2020/lib/resolvers/get-selected-crud-item.resolver.mjs +28 -0
- package/esm2020/lib/resolvers/index.mjs +3 -0
- package/esm2020/lib/services/auth.service.mjs +1 -1
- package/esm2020/lib/services/crud-base.service.mjs +2 -1
- package/esm2020/lib/services/geolocation.service.mjs +3 -3
- package/esm2020/lib/services/menu.service.mjs +4 -2
- package/esm2020/lib/services/profile.service.mjs +18 -5
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ngx-vector-components.mjs +1533 -1208
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +1518 -1197
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- package/lib/components/badge/badge.component.d.ts +14 -0
- package/lib/components/badge/badge.module.d.ts +8 -0
- package/lib/components/badge/index.d.ts +2 -0
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +2 -1
- package/lib/components/crud-base/crud-base.component.d.ts +2 -0
- package/lib/components/crud-header/crud-header.component.d.ts +11 -0
- package/lib/components/crud-header/crud-header.module.d.ts +9 -0
- package/lib/components/crud-header/index.d.ts +2 -0
- package/lib/components/crud-history/crud-history.component.d.ts +10 -0
- package/lib/components/crud-history/crud-history.module.d.ts +10 -0
- package/lib/components/crud-history/index.d.ts +2 -0
- package/lib/components/fields/button/button.component.d.ts +3 -1
- package/lib/components/fields/data-table/data-table.component.d.ts +4 -1
- package/lib/components/fields/dropdown-field/dropdown-field.component.d.ts +3 -1
- package/lib/components/fields/fields.module.d.ts +24 -22
- package/lib/components/fields/filters/filters.component.d.ts +7 -3
- package/lib/components/fields/index.d.ts +1 -0
- package/lib/components/fields/select-button-field/index.d.ts +1 -0
- package/lib/components/fields/select-button-field/select-button-field.component.d.ts +9 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/guards/crud-list-has-items.guard.d.ts +10 -0
- package/lib/guards/index.d.ts +1 -0
- package/lib/guards/token-is-present.guard.d.ts +5 -4
- package/lib/models/crud-history.model.d.ts +11 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/{ipInfo.d.ts → ip-info.enum.d.ts} +1 -1
- package/lib/models/menu-item.model.d.ts +1 -1
- package/lib/models/profile.model.d.ts +3 -0
- package/lib/models/view.enum.d.ts +2 -1
- package/lib/pipes/format-document.pipe.d.ts +7 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/pipes/pipes.module.d.ts +2 -1
- package/lib/resolvers/get-entity-history.resolver.d.ts +11 -0
- package/lib/resolvers/get-selected-crud-item.resolver.d.ts +10 -0
- package/lib/resolvers/index.d.ts +2 -0
- package/lib/services/auth.service.d.ts +1 -1
- package/lib/services/crud-base.service.d.ts +1 -0
- package/lib/services/geolocation.service.d.ts +2 -2
- package/lib/services/profile.service.d.ts +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
- package/esm2020/lib/models/ipInfo.mjs +0 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Status } from '../../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BadgeComponent implements OnInit {
|
|
5
|
+
type?: Status;
|
|
6
|
+
label?: string;
|
|
7
|
+
customColor?: string;
|
|
8
|
+
customBackgroundColor?: string;
|
|
9
|
+
constructor();
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
getStatusColor(): "" | "badge-warning" | "badge-success" | "badge-error";
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "vector-badge", never, { "type": "type"; "label": "label"; "customColor": "customColor"; "customBackgroundColor": "customBackgroundColor"; }, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./badge.component";
|
|
3
|
+
import * as i2 from "../../shared/shared.module";
|
|
4
|
+
export declare class BadgeModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BadgeModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BadgeModule, [typeof i1.BadgeComponent], [typeof i2.SharedModule], [typeof i1.BadgeComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BadgeModule>;
|
|
8
|
+
}
|
|
@@ -7,11 +7,12 @@ export declare class BreadcrumbComponent implements OnInit, OnDestroy {
|
|
|
7
7
|
private environment;
|
|
8
8
|
private menuOptions;
|
|
9
9
|
appName: any;
|
|
10
|
-
routeFragments:
|
|
10
|
+
routeFragments: MenuItem[];
|
|
11
11
|
private subscription;
|
|
12
12
|
constructor(router: Router, environment: any, menuOptions: MenuItem[]);
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
|
+
navigateToFragment(fragment: MenuItem): void;
|
|
15
16
|
private extractRouteFragmentsFromMenu;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
17
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "vector-breadcrumb", never, {}, {}, never, never>;
|
|
@@ -12,6 +12,8 @@ export declare class CrudBaseComponent implements OnDestroy {
|
|
|
12
12
|
protected subscription: Subscription;
|
|
13
13
|
constructor(activatedRoute: ActivatedRoute);
|
|
14
14
|
ngOnDestroy(): void;
|
|
15
|
+
isInsertion(): boolean;
|
|
16
|
+
isEdition(): boolean;
|
|
15
17
|
private getCrudModeByRoute;
|
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrudBaseComponent, never>;
|
|
17
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<CrudBaseComponent, "ng-component", never, {}, {}, never, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CrudHeaderComponent implements OnInit {
|
|
4
|
+
statusCode?: number;
|
|
5
|
+
code?: number;
|
|
6
|
+
get statusLabel(): "" | "Pendente" | "Ativo" | "Inativo";
|
|
7
|
+
constructor();
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudHeaderComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CrudHeaderComponent, "vector-crud-header", never, { "statusCode": "statusCode"; "code": "code"; }, {}, never, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./crud-header.component";
|
|
3
|
+
import * as i2 from "../../shared/shared.module";
|
|
4
|
+
import * as i3 from "../badge/badge.module";
|
|
5
|
+
export declare class CrudHeaderModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudHeaderModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudHeaderModule, [typeof i1.CrudHeaderComponent], [typeof i2.SharedModule, typeof i3.BadgeModule], [typeof i1.CrudHeaderComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CrudHeaderModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CrudHistory, CrudHistoryEventType } from '../../models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CrudHistoryComponent {
|
|
4
|
+
crudHistory?: CrudHistory<any>;
|
|
5
|
+
getHistoryBadgeBackgroundColor(crudHistoryEventType?: CrudHistoryEventType): string;
|
|
6
|
+
getHistoryBadgeColor(crudHistoryEventType?: CrudHistoryEventType): string;
|
|
7
|
+
getHistoryBadgeLabel(crudHistoryEventType?: CrudHistoryEventType): string;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudHistoryComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CrudHistoryComponent, "vector-crud-history", never, { "crudHistory": "crudHistory"; }, {}, never, ["*"]>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./crud-history.component";
|
|
3
|
+
import * as i2 from "../../shared/shared.module";
|
|
4
|
+
import * as i3 from "../badge/badge.module";
|
|
5
|
+
import * as i4 from "primeng/accordion";
|
|
6
|
+
export declare class CrudHistoryModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudHistoryModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CrudHistoryModule, [typeof i1.CrudHistoryComponent], [typeof i2.SharedModule, typeof i3.BadgeModule, typeof i4.AccordionModule], [typeof i1.CrudHistoryComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CrudHistoryModule>;
|
|
10
|
+
}
|
|
@@ -6,13 +6,15 @@ export declare class ButtonComponent {
|
|
|
6
6
|
label: string;
|
|
7
7
|
type: ButtonType;
|
|
8
8
|
leftIcon: string;
|
|
9
|
+
rightIcon: string;
|
|
9
10
|
noShadow: boolean;
|
|
11
|
+
style: string;
|
|
10
12
|
onClick: EventEmitter<any>;
|
|
11
13
|
get styleClass(): {
|
|
12
14
|
[x: string]: boolean;
|
|
13
15
|
'no-shadow': boolean;
|
|
14
16
|
};
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "vector-button", never, { "disabled": "disabled"; "label": "label"; "type": "type"; "leftIcon": "leftIcon"; "noShadow": "noShadow"; }, { "onClick": "onClick"; }, never, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "vector-button", never, { "disabled": "disabled"; "label": "label"; "type": "type"; "leftIcon": "leftIcon"; "rightIcon": "rightIcon"; "noShadow": "noShadow"; "style": "style"; }, { "onClick": "onClick"; }, never, never>;
|
|
17
19
|
}
|
|
18
20
|
export {};
|
|
@@ -14,9 +14,12 @@ export declare class DataTableComponent implements OnInit {
|
|
|
14
14
|
pagination: boolean;
|
|
15
15
|
virtualPagination: boolean;
|
|
16
16
|
set tabs(_tabs: ListItem[]);
|
|
17
|
+
addItemButtonPlusSign: boolean;
|
|
17
18
|
onLazyLoad: EventEmitter<DataTableLazyLoadEvent>;
|
|
18
19
|
onFilter: EventEmitter<any>;
|
|
19
20
|
onAdd: EventEmitter<void>;
|
|
21
|
+
onExportExcel: EventEmitter<void>;
|
|
22
|
+
onExportPDF: EventEmitter<void>;
|
|
20
23
|
filtersComponent: FiltersComponent | undefined;
|
|
21
24
|
get tabs(): ListItem[];
|
|
22
25
|
private _tabs;
|
|
@@ -39,5 +42,5 @@ export declare class DataTableComponent implements OnInit {
|
|
|
39
42
|
private getStatusColor;
|
|
40
43
|
private getActiveStatusColor;
|
|
41
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "vector-data-table", never, { "columns": "columns"; "data": "data"; "exportExcel": "exportExcel"; "exportPDF": "exportPDF"; "totalRecords": "totalRecords"; "filters": "filters"; "addItemLabel": "addItemLabel"; "pagination": "pagination"; "virtualPagination": "virtualPagination"; "tabs": "tabs"; }, { "onLazyLoad": "onLazyLoad"; "onFilter": "onFilter"; "onAdd": "onAdd"; }, never, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "vector-data-table", never, { "columns": "columns"; "data": "data"; "exportExcel": "exportExcel"; "exportPDF": "exportPDF"; "totalRecords": "totalRecords"; "filters": "filters"; "addItemLabel": "addItemLabel"; "pagination": "pagination"; "virtualPagination": "virtualPagination"; "tabs": "tabs"; "addItemButtonPlusSign": "addItemButtonPlusSign"; }, { "onLazyLoad": "onLazyLoad"; "onFilter": "onFilter"; "onAdd": "onAdd"; "onExportExcel": "onExportExcel"; "onExportPDF": "onExportPDF"; }, never, never>;
|
|
43
46
|
}
|
|
@@ -17,6 +17,7 @@ export declare class DropdownFieldComponent implements OnInit, OnDestroy {
|
|
|
17
17
|
buttonAction: DropdownButtonAction | undefined;
|
|
18
18
|
dependencies: any;
|
|
19
19
|
hiddenErrorMessage: boolean;
|
|
20
|
+
dynamicFilters?: ListItem[];
|
|
20
21
|
onFocus: EventEmitter<any>;
|
|
21
22
|
get control(): any;
|
|
22
23
|
get options(): ListItem[] | undefined;
|
|
@@ -24,6 +25,7 @@ export declare class DropdownFieldComponent implements OnInit, OnDestroy {
|
|
|
24
25
|
isLoading: boolean;
|
|
25
26
|
pagedSuggestions: ListItem[];
|
|
26
27
|
unlistenAutocompleteVirtualScroll: () => void;
|
|
28
|
+
selectedDynamicFilter: any;
|
|
27
29
|
private _control;
|
|
28
30
|
private _options;
|
|
29
31
|
private currentScrollPage;
|
|
@@ -42,5 +44,5 @@ export declare class DropdownFieldComponent implements OnInit, OnDestroy {
|
|
|
42
44
|
private handleSearchErrors;
|
|
43
45
|
private filterListByQuery;
|
|
44
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownFieldComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownFieldComponent, "vector-dropdown-field", never, { "options": "options"; "isRequired": "isRequired"; "control": "control"; "label": "label"; "service": "service"; "paged": "paged"; "buttonAction": "buttonAction"; "dependencies": "dependencies"; "hiddenErrorMessage": "hiddenErrorMessage"; }, { "onFocus": "onFocus"; }, never, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownFieldComponent, "vector-dropdown-field", never, { "options": "options"; "isRequired": "isRequired"; "control": "control"; "label": "label"; "service": "service"; "paged": "paged"; "buttonAction": "buttonAction"; "dependencies": "dependencies"; "hiddenErrorMessage": "hiddenErrorMessage"; "dynamicFilters": "dynamicFilters"; }, { "onFocus": "onFocus"; }, never, never>;
|
|
46
48
|
}
|
|
@@ -14,29 +14,31 @@ import * as i12 from "./data-table/data-table.component";
|
|
|
14
14
|
import * as i13 from "./filters/filters.component";
|
|
15
15
|
import * as i14 from "./textarea-field/textarea-field.component";
|
|
16
16
|
import * as i15 from "./field-error-message/field-error-message.component";
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "primeng/
|
|
21
|
-
import * as i20 from "primeng/
|
|
22
|
-
import * as i21 from "primeng/
|
|
23
|
-
import * as i22 from "primeng/
|
|
24
|
-
import * as i23 from "primeng/
|
|
25
|
-
import * as i24 from "primeng/
|
|
26
|
-
import * as i25 from "primeng/
|
|
27
|
-
import * as i26 from "primeng/
|
|
28
|
-
import * as i27 from "primeng/
|
|
29
|
-
import * as i28 from "primeng/
|
|
30
|
-
import * as i29 from "primeng/
|
|
31
|
-
import * as i30 from "primeng/
|
|
32
|
-
import * as i31 from "primeng/
|
|
33
|
-
import * as i32 from "primeng/
|
|
34
|
-
import * as i33 from "primeng/
|
|
35
|
-
import * as i34 from "
|
|
36
|
-
import * as i35 from "
|
|
37
|
-
import * as i36 from "primeng/
|
|
17
|
+
import * as i16 from "./select-button-field/select-button-field.component";
|
|
18
|
+
import * as i17 from "../../shared/shared.module";
|
|
19
|
+
import * as i18 from "@angular/forms";
|
|
20
|
+
import * as i19 from "primeng/keyfilter";
|
|
21
|
+
import * as i20 from "primeng/inputtext";
|
|
22
|
+
import * as i21 from "primeng/checkbox";
|
|
23
|
+
import * as i22 from "primeng/inputmask";
|
|
24
|
+
import * as i23 from "primeng/calendar";
|
|
25
|
+
import * as i24 from "primeng/multiselect";
|
|
26
|
+
import * as i25 from "primeng/dropdown";
|
|
27
|
+
import * as i26 from "primeng/autocomplete";
|
|
28
|
+
import * as i27 from "primeng/slider";
|
|
29
|
+
import * as i28 from "primeng/radiobutton";
|
|
30
|
+
import * as i29 from "primeng/table";
|
|
31
|
+
import * as i30 from "primeng/fileupload";
|
|
32
|
+
import * as i31 from "primeng/dialog";
|
|
33
|
+
import * as i32 from "primeng/inputnumber";
|
|
34
|
+
import * as i33 from "primeng/menu";
|
|
35
|
+
import * as i34 from "primeng/tabview";
|
|
36
|
+
import * as i35 from "../panel/panel.module";
|
|
37
|
+
import * as i36 from "primeng/button";
|
|
38
|
+
import * as i37 from "primeng/inputtextarea";
|
|
39
|
+
import * as i38 from "primeng/selectbutton";
|
|
38
40
|
export declare class FieldsModule {
|
|
39
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsModule, never>;
|
|
40
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FieldsModule, [typeof i1.TextFieldComponent, typeof i2.CheckboxFieldComponent, typeof i3.ButtonComponent, typeof i4.CalendarComponent, typeof i5.MultiselectFieldComponent, typeof i6.DropdownFieldComponent, typeof i7.RangeValueComponent, typeof i8.SearchFieldComponent, typeof i9.RadioButtonFieldComponent, typeof i10.CurrencyFieldComponent, typeof i11.PercentageFieldComponent, typeof i12.DataTableComponent, typeof i13.FiltersComponent, typeof i14.TextareaFieldComponent, typeof i15.FieldErrorMessageComponent], [typeof
|
|
42
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FieldsModule, [typeof i1.TextFieldComponent, typeof i2.CheckboxFieldComponent, typeof i3.ButtonComponent, typeof i4.CalendarComponent, typeof i5.MultiselectFieldComponent, typeof i6.DropdownFieldComponent, typeof i7.RangeValueComponent, typeof i8.SearchFieldComponent, typeof i9.RadioButtonFieldComponent, typeof i10.CurrencyFieldComponent, typeof i11.PercentageFieldComponent, typeof i12.DataTableComponent, typeof i13.FiltersComponent, typeof i14.TextareaFieldComponent, typeof i15.FieldErrorMessageComponent, typeof i16.SelectButtonFieldComponent], [typeof i17.SharedModule, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.KeyFilterModule, typeof i20.InputTextModule, typeof i21.CheckboxModule, typeof i22.InputMaskModule, typeof i23.CalendarModule, typeof i24.MultiSelectModule, typeof i25.DropdownModule, typeof i26.AutoCompleteModule, typeof i27.SliderModule, typeof i28.RadioButtonModule, typeof i29.TableModule, typeof i30.FileUploadModule, typeof i31.DialogModule, typeof i32.InputNumberModule, typeof i33.MenuModule, typeof i34.TabViewModule, typeof i35.PanelModule, typeof i36.ButtonModule, typeof i37.InputTextareaModule, typeof i38.SelectButtonModule], [typeof i1.TextFieldComponent, typeof i2.CheckboxFieldComponent, typeof i3.ButtonComponent, typeof i4.CalendarComponent, typeof i5.MultiselectFieldComponent, typeof i6.DropdownFieldComponent, typeof i7.RangeValueComponent, typeof i8.SearchFieldComponent, typeof i9.RadioButtonFieldComponent, typeof i30.FileUploadModule, typeof i31.DialogModule, typeof i10.CurrencyFieldComponent, typeof i11.PercentageFieldComponent, typeof i12.DataTableComponent, typeof i13.FiltersComponent, typeof i14.TextareaFieldComponent, typeof i15.FieldErrorMessageComponent, typeof i16.SelectButtonFieldComponent]>;
|
|
41
43
|
static ɵinj: i0.ɵɵInjectorDeclaration<FieldsModule>;
|
|
42
44
|
}
|
|
@@ -8,7 +8,9 @@ export declare enum FieldType {
|
|
|
8
8
|
TEXT = 1,
|
|
9
9
|
DATE = 2,
|
|
10
10
|
NUMBER = 3,
|
|
11
|
-
CURRENCY = 4
|
|
11
|
+
CURRENCY = 4,
|
|
12
|
+
DYNAMIC_DROPDOWN = 5,
|
|
13
|
+
SELECT_BUTTON = 6
|
|
12
14
|
}
|
|
13
15
|
export declare type FilterField = {
|
|
14
16
|
name: string;
|
|
@@ -22,12 +24,13 @@ export declare type FilterField = {
|
|
|
22
24
|
label?: string;
|
|
23
25
|
mask?: string;
|
|
24
26
|
options?: ListItem[];
|
|
27
|
+
filterTypes?: ListItem[];
|
|
25
28
|
service?: BaseDropdown;
|
|
26
29
|
defaultValue?: any;
|
|
27
30
|
placeholder?: string;
|
|
28
31
|
hidden?: boolean;
|
|
29
32
|
dependencies?: string[];
|
|
30
|
-
size?: 'small' | 'medium' | 'large';
|
|
33
|
+
size?: 'small' | 'medium' | 'large' | 'largest' | 'full';
|
|
31
34
|
};
|
|
32
35
|
export declare class FiltersComponent implements OnInit, OnDestroy {
|
|
33
36
|
set fields(_fields: FilterField[]);
|
|
@@ -38,13 +41,14 @@ export declare class FiltersComponent implements OnInit, OnDestroy {
|
|
|
38
41
|
filterValue: any;
|
|
39
42
|
private _fields;
|
|
40
43
|
private subscription;
|
|
44
|
+
get hideFilters(): boolean;
|
|
41
45
|
constructor();
|
|
42
46
|
ngOnInit(): void;
|
|
43
47
|
ngOnDestroy(): void;
|
|
44
48
|
search(): void;
|
|
45
49
|
isTextFieldType(field: FilterField): boolean;
|
|
46
50
|
getFieldDependencies(field: FilterField): {} | undefined;
|
|
47
|
-
getGridClass(field: FilterField): "md:col-1" | "md:col-3" | "md:col-4";
|
|
51
|
+
getGridClass(field: FilterField): "md:col-1" | "md:col-3" | "md:col-4" | "md:col-8" | "md:col-12";
|
|
48
52
|
private buildValidators;
|
|
49
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersComponent, never>;
|
|
50
54
|
static ɵcmp: i0.ɵɵComponentDeclaration<FiltersComponent, "vector-filters", never, { "fields": "fields"; }, { "onSearch": "onSearch"; }, never, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './select-button-field.component';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ListItem } from '../../../models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SelectButtonFieldComponent {
|
|
4
|
+
options: ListItem[];
|
|
5
|
+
control: any;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectButtonFieldComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectButtonFieldComponent, "vector-select-button-field", never, { "options": "options"; "control": "control"; }, {}, never, never>;
|
|
9
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
export * from './badge';
|
|
1
2
|
export * from './breadcrumb';
|
|
2
3
|
export * from './crud-base';
|
|
3
4
|
export * from './crud-footer';
|
|
5
|
+
export * from './crud-header';
|
|
6
|
+
export * from './crud-history';
|
|
4
7
|
export * from './fields';
|
|
5
8
|
export * from './generic-error-modal';
|
|
6
9
|
export * from './generic-modal';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { ActivatedRouteSnapshot, CanActivate } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CrudListHasItemsGuard implements CanActivate {
|
|
5
|
+
private injector;
|
|
6
|
+
constructor(injector: Injector);
|
|
7
|
+
canActivate(route: ActivatedRouteSnapshot): boolean;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CrudListHasItemsGuard, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CrudListHasItemsGuard>;
|
|
10
|
+
}
|
package/lib/guards/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { CanActivate } from '@angular/router';
|
|
2
|
-
import { StorageService } from '../services';
|
|
1
|
+
import { ActivatedRouteSnapshot, CanActivate } from '@angular/router';
|
|
2
|
+
import { AuthService, StorageService } from '../services';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TokenIsPresentGuard implements CanActivate {
|
|
5
5
|
private storageService;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
private authService;
|
|
7
|
+
constructor(storageService: StorageService, authService: AuthService);
|
|
8
|
+
canActivate(routeSnapshot: ActivatedRouteSnapshot): boolean | Promise<boolean>;
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TokenIsPresentGuard, never>;
|
|
9
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<TokenIsPresentGuard>;
|
|
10
11
|
}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ export declare type MenuItem = {
|
|
|
12
12
|
hidden?: boolean;
|
|
13
13
|
command?: () => void;
|
|
14
14
|
alwaysOpen?: boolean;
|
|
15
|
-
permission?: ProfileModuleActionType | ProfileModuleType;
|
|
15
|
+
permission?: ProfileModuleActionType[] | ProfileModuleType[] | ProfileModuleActionType | ProfileModuleType;
|
|
16
16
|
};
|
|
@@ -127,6 +127,9 @@ export declare enum ProfileModuleActionType {
|
|
|
127
127
|
FINTECH_BANK_USER = "Fintech Bank User",
|
|
128
128
|
FINTECH_CREDIT_ADMIN = "Fintech Credit Admin",
|
|
129
129
|
FINTECH_CREDIT_USER = "Fintech Credit User",
|
|
130
|
+
FINTECH_BANK_ADMIN_ACCOUNTS_VIEW = "Fintech Bank Admin - Accounts View",
|
|
131
|
+
FINTECH_CREDIT_ADMIN_PROPOSAL_NOT_CONFIRMED = "Fintech Credit Admin - Proposal Not Confirmed",
|
|
132
|
+
FINTECH_CREDIT_ADMIN_CONTRACTS_FOLLOW_UP = "Fintech Credit Admin - Contracts Follow-Up",
|
|
130
133
|
ADMIN_MARKEPLACE = "Admin Markeplace",
|
|
131
134
|
APPROVE_REQUEST = "Approve Request",
|
|
132
135
|
REPROVE_REQUEST = "Reprove Request",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FormatDocumentPipe implements PipeTransform {
|
|
4
|
+
transform(value?: string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormatDocumentPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FormatDocumentPipe, "formatDocument">;
|
|
7
|
+
}
|
package/lib/pipes/index.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import * as i1 from "./remove-last-child.pipe";
|
|
|
3
3
|
import * as i2 from "./currency-brl.pipe";
|
|
4
4
|
import * as i3 from "./not-hidden.pipe";
|
|
5
5
|
import * as i4 from "./only-active.pipe";
|
|
6
|
+
import * as i5 from "./format-document.pipe";
|
|
6
7
|
export declare class PipesModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<PipesModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, [typeof i1.RemoveLastChildPipe, typeof i2.CurrencyBrlPipe, typeof i3.NotHiddenPipe, typeof i4.OnlyActivePipe], never, [typeof i1.RemoveLastChildPipe, typeof i2.CurrencyBrlPipe, typeof i3.NotHiddenPipe, typeof i4.OnlyActivePipe]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, [typeof i1.RemoveLastChildPipe, typeof i2.CurrencyBrlPipe, typeof i3.NotHiddenPipe, typeof i4.OnlyActivePipe, typeof i5.FormatDocumentPipe], never, [typeof i1.RemoveLastChildPipe, typeof i2.CurrencyBrlPipe, typeof i3.NotHiddenPipe, typeof i4.OnlyActivePipe, typeof i5.FormatDocumentPipe]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<PipesModule>;
|
|
10
11
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
|
|
3
|
+
import { CrudHistory } from '../models/crud-history.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GetCrudHistoryResolver implements Resolve<CrudHistory<any>[]> {
|
|
6
|
+
private injector;
|
|
7
|
+
constructor(injector: Injector);
|
|
8
|
+
resolve(route: ActivatedRouteSnapshot): any;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetCrudHistoryResolver, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetCrudHistoryResolver>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GetSelectedCrudItemResolver implements Resolve<any> {
|
|
5
|
+
private injector;
|
|
6
|
+
constructor(injector: Injector);
|
|
7
|
+
resolve(route: ActivatedRouteSnapshot): any;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetSelectedCrudItemResolver, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GetSelectedCrudItemResolver>;
|
|
10
|
+
}
|
|
@@ -15,7 +15,7 @@ export declare class AuthService {
|
|
|
15
15
|
private subscription;
|
|
16
16
|
private readonly baseUrl;
|
|
17
17
|
constructor(http: HttpClient, storageService: StorageService, profileService: ProfileService, activatedRoute: ActivatedRoute, environment: any);
|
|
18
|
-
getTokenByGuid(tokenGuid: string): Observable<
|
|
18
|
+
getTokenByGuid(tokenGuid: string): Observable<any>;
|
|
19
19
|
getTokenByRefreshToken(refreshToken: string): Observable<any>;
|
|
20
20
|
generateTokenGuid(): Observable<string>;
|
|
21
21
|
logout(): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ipInfo } from '../models/ipInfo';
|
|
2
1
|
import { HttpBackend, HttpClient } from '@angular/common/http';
|
|
2
|
+
import { IpInfo } from '../models/ip-info.enum';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class GeolocationService {
|
|
5
5
|
private http;
|
|
6
6
|
private backend;
|
|
7
7
|
private customHttpClient;
|
|
8
8
|
constructor(http: HttpClient, backend: HttpBackend);
|
|
9
|
-
getGeoLoc(): import("rxjs").Observable<
|
|
9
|
+
getGeoLoc(): import("rxjs").Observable<IpInfo>;
|
|
10
10
|
createUserLoginInfo(userInfo: any): import("rxjs").Observable<Object>;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<GeolocationService, never>;
|
|
12
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<GeolocationService>;
|
|
@@ -13,7 +13,7 @@ export declare class ProfileService {
|
|
|
13
13
|
hasAnyMarketplacePermission: boolean;
|
|
14
14
|
constructor(http: HttpClient, storageService: StorageService);
|
|
15
15
|
getUserProfile(): void;
|
|
16
|
-
userHasPermission(action: ProfileModuleActionType | ProfileModuleType | undefined): boolean;
|
|
16
|
+
userHasPermission(action: ProfileModuleActionType | ProfileModuleType | ProfileModuleActionType[] | ProfileModuleType[] | undefined): boolean;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
18
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-vector-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "~13.2.3",
|
|
6
6
|
"@angular/cdk": "^13.2.2",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@angular/core": "^13.2.3",
|
|
9
9
|
"@angular/forms": "~13.2.2",
|
|
10
10
|
"@angular/platform-browser": "~13.2.2",
|
|
11
|
-
"@angular/platform-browser-dynamic": "~13.2.2",
|
|
11
|
+
"@angular/platform-browser-dynamic": "~13. 2.2",
|
|
12
12
|
"@angular/router": "~13.2.2",
|
|
13
13
|
"@fortawesome/fontawesome-free": "^5.15.4",
|
|
14
14
|
"@ngx-translate/core": "^14.0.0",
|
package/public-api.d.ts
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXBJbmZvLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXZlY3Rvci1jb21wb25lbnRzL3NyYy9saWIvbW9kZWxzL2lwSW5mby50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBpcEluZm8ge1xyXG4gICAgaXA6c3RyaW5nO1xyXG4gICAgaG9zdG5hbWU6c3RyaW5nO1xyXG4gICAgbGF0PzpudW1iZXI7XHJcbiAgICBsbmc/Om51bWJlcjtcclxuICB9Il19
|