ngx-vector-components 2.0.4 → 2.2.2
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 +31 -0
- package/assets/images/vector-logo-horizontal-inverse-color.svg +13 -0
- package/assets/styles/_primeng-custom-theme.scss +14 -4
- package/assets/styles/_variables.scss +3 -0
- package/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +2 -2
- package/esm2020/lib/components/fields/button/button.component.mjs +2 -2
- 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 +7 -4
- package/esm2020/lib/components/fields/dropdown-field/dropdown-field.component.mjs +4 -4
- package/esm2020/lib/components/fields/fields.module.mjs +13 -4
- package/esm2020/lib/components/fields/filters/filters.component.mjs +2 -2
- 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/text-field/text-field.component.mjs +2 -2
- package/esm2020/lib/components/fields/textarea-field/index.mjs +2 -0
- package/esm2020/lib/components/fields/textarea-field/textarea-field.component.mjs +75 -0
- package/esm2020/lib/components/generic-error-modal/generic-error-modal.component.mjs +2 -2
- package/esm2020/lib/components/generic-modal/generic-modal.component.mjs +2 -2
- package/esm2020/lib/components/menu/menu.component.mjs +35 -4
- 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 +51 -12
- package/esm2020/lib/models/menu-item.model.mjs +1 -1
- package/esm2020/lib/models/profile.model.mjs +6 -1
- package/esm2020/lib/services/auth.service.mjs +20 -6
- package/esm2020/lib/services/menu.service.mjs +2 -1
- package/esm2020/lib/services/profile.service.mjs +9 -3
- package/esm2020/lib/services/storage.service.mjs +16 -1
- package/fesm2015/ngx-vector-components.mjs +251 -59
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +250 -59
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- package/lib/components/fields/data-table/data-table.component.d.ts +2 -1
- package/lib/components/fields/fields.module.d.ts +23 -21
- package/lib/components/fields/index.d.ts +1 -0
- package/lib/components/fields/textarea-field/index.d.ts +1 -0
- package/lib/components/fields/textarea-field/textarea-field.component.d.ts +20 -0
- package/lib/components/top-bar/top-bar.component.d.ts +13 -2
- package/lib/models/menu-item.model.d.ts +4 -2
- package/lib/models/profile.model.d.ts +4 -0
- package/lib/services/auth.service.d.ts +5 -1
- package/lib/services/menu.service.d.ts +1 -0
- package/lib/services/profile.service.d.ts +2 -2
- package/lib/services/storage.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ export declare class DataTableComponent implements OnInit {
|
|
|
12
12
|
filters: FilterField[];
|
|
13
13
|
addItemLabel: string;
|
|
14
14
|
pagination: boolean;
|
|
15
|
+
virtualPagination: boolean;
|
|
15
16
|
set tabs(_tabs: ListItem[]);
|
|
16
17
|
onLazyLoad: EventEmitter<DataTableLazyLoadEvent>;
|
|
17
18
|
onFilter: EventEmitter<any>;
|
|
@@ -38,5 +39,5 @@ export declare class DataTableComponent implements OnInit {
|
|
|
38
39
|
private getStatusColor;
|
|
39
40
|
private getActiveStatusColor;
|
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
|
|
41
|
-
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"; "tabs": "tabs"; }, { "onLazyLoad": "onLazyLoad"; "onFilter": "onFilter"; "onAdd": "onAdd"; }, never, 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>;
|
|
42
43
|
}
|
|
@@ -12,28 +12,30 @@ import * as i10 from "./currency-field/currency-field.component";
|
|
|
12
12
|
import * as i11 from "./percentage-field/percentage-field.component";
|
|
13
13
|
import * as i12 from "./data-table/data-table.component";
|
|
14
14
|
import * as i13 from "./filters/filters.component";
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "primeng/
|
|
19
|
-
import * as i18 from "primeng/
|
|
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 "
|
|
34
|
-
import * as i33 from "
|
|
15
|
+
import * as i14 from "./textarea-field/textarea-field.component";
|
|
16
|
+
import * as i15 from "../../shared/shared.module";
|
|
17
|
+
import * as i16 from "@angular/forms";
|
|
18
|
+
import * as i17 from "primeng/keyfilter";
|
|
19
|
+
import * as i18 from "primeng/inputtext";
|
|
20
|
+
import * as i19 from "primeng/checkbox";
|
|
21
|
+
import * as i20 from "primeng/inputmask";
|
|
22
|
+
import * as i21 from "primeng/calendar";
|
|
23
|
+
import * as i22 from "primeng/multiselect";
|
|
24
|
+
import * as i23 from "primeng/dropdown";
|
|
25
|
+
import * as i24 from "primeng/autocomplete";
|
|
26
|
+
import * as i25 from "primeng/slider";
|
|
27
|
+
import * as i26 from "primeng/radiobutton";
|
|
28
|
+
import * as i27 from "primeng/table";
|
|
29
|
+
import * as i28 from "primeng/fileupload";
|
|
30
|
+
import * as i29 from "primeng/dialog";
|
|
31
|
+
import * as i30 from "primeng/inputnumber";
|
|
32
|
+
import * as i31 from "primeng/menu";
|
|
33
|
+
import * as i32 from "primeng/tabview";
|
|
34
|
+
import * as i33 from "../panel/panel.module";
|
|
35
|
+
import * as i34 from "primeng/button";
|
|
36
|
+
import * as i35 from "primeng/inputtextarea";
|
|
35
37
|
export declare class FieldsModule {
|
|
36
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsModule, never>;
|
|
37
|
-
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
|
|
39
|
+
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.SharedModule, typeof i16.FormsModule, typeof i16.ReactiveFormsModule, typeof i17.KeyFilterModule, typeof i18.InputTextModule, typeof i19.CheckboxModule, typeof i20.InputMaskModule, typeof i21.CalendarModule, typeof i22.MultiSelectModule, typeof i23.DropdownModule, typeof i24.AutoCompleteModule, typeof i25.SliderModule, typeof i26.RadioButtonModule, typeof i27.TableModule, typeof i28.FileUploadModule, typeof i29.DialogModule, typeof i30.InputNumberModule, typeof i31.MenuModule, typeof i32.TabViewModule, typeof i33.PanelModule, typeof i34.ButtonModule, typeof i35.InputTextareaModule], [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 i28.FileUploadModule, typeof i29.DialogModule, typeof i10.CurrencyFieldComponent, typeof i11.PercentageFieldComponent, typeof i12.DataTableComponent, typeof i13.FiltersComponent, typeof i14.TextareaFieldComponent]>;
|
|
38
40
|
static ɵinj: i0.ɵɵInjectorDeclaration<FieldsModule>;
|
|
39
41
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './textarea-field.component';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TextareaFieldComponent implements OnInit {
|
|
4
|
+
isRequired: boolean | undefined;
|
|
5
|
+
label: string | undefined;
|
|
6
|
+
maxlength: string;
|
|
7
|
+
control: any;
|
|
8
|
+
blurEvent: EventEmitter<any>;
|
|
9
|
+
enterKeyPress: EventEmitter<any>;
|
|
10
|
+
focusEvent: EventEmitter<any>;
|
|
11
|
+
get placeholder(): string;
|
|
12
|
+
private lastBlurValue;
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
fieldErrorLabel(): string;
|
|
15
|
+
onBlur(): void;
|
|
16
|
+
onEnterPress(): void;
|
|
17
|
+
onFocus($event: Event): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaFieldComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaFieldComponent, "vector-textarea-field", never, { "isRequired": "isRequired"; "label": "label"; "maxlength": "maxlength"; "control": "control"; }, { "blurEvent": "blurEvent"; "enterKeyPress": "enterKeyPress"; "focusEvent": "focusEvent"; }, never, never>;
|
|
20
|
+
}
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
2
3
|
import { AuthService } from '../../services';
|
|
3
4
|
import { MenuService } from '../../services/menu.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class TopBarComponent implements OnInit, OnDestroy {
|
|
6
7
|
private menuService;
|
|
7
8
|
private authService;
|
|
9
|
+
private router;
|
|
8
10
|
hideElements: boolean;
|
|
9
11
|
openedMenu: boolean;
|
|
10
12
|
openedChangeAccountMenu: boolean;
|
|
11
13
|
doingOnboarding: boolean;
|
|
14
|
+
currentAccount: any;
|
|
15
|
+
isAdmin: boolean;
|
|
16
|
+
otherAccounts: any[];
|
|
17
|
+
fintech: boolean;
|
|
18
|
+
accountService: any;
|
|
12
19
|
private subscription;
|
|
13
|
-
constructor(menuService: MenuService, authService: AuthService);
|
|
20
|
+
constructor(menuService: MenuService, authService: AuthService, router: Router);
|
|
14
21
|
ngOnInit(): void;
|
|
15
22
|
ngOnDestroy(): void;
|
|
16
23
|
toggleMenu(): void;
|
|
17
24
|
logout(): void;
|
|
18
25
|
isDesktop(): boolean;
|
|
26
|
+
changeAccount(newAccount: any): void;
|
|
27
|
+
goToTermsOfUse(): void;
|
|
28
|
+
goToPasswordChange(): void;
|
|
29
|
+
goToTariff(): void;
|
|
19
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<TopBarComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TopBarComponent, "vector-top-bar", never, {}, {}, never, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TopBarComponent, "vector-top-bar", never, { "fintech": "fintech"; "accountService": "accountService"; }, {}, never, never>;
|
|
21
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProfileModuleActionType, View } from '.';
|
|
1
|
+
import { ProfileModuleActionType, ProfileModuleType, View } from '.';
|
|
2
2
|
export declare type MenuItem = {
|
|
3
3
|
id?: number;
|
|
4
4
|
label: string;
|
|
@@ -7,8 +7,10 @@ export declare type MenuItem = {
|
|
|
7
7
|
icon?: string;
|
|
8
8
|
iconFileName?: string;
|
|
9
9
|
route?: string;
|
|
10
|
+
frameUrl?: string;
|
|
11
|
+
externalUrl?: string;
|
|
10
12
|
hidden?: boolean;
|
|
11
13
|
command?: () => void;
|
|
12
14
|
alwaysOpen?: boolean;
|
|
13
|
-
permission?: ProfileModuleActionType;
|
|
15
|
+
permission?: ProfileModuleActionType | ProfileModuleType;
|
|
14
16
|
};
|
|
@@ -21,6 +21,10 @@ export declare type ProfileModuleBase = {
|
|
|
21
21
|
name: string;
|
|
22
22
|
isAvailable?: boolean;
|
|
23
23
|
};
|
|
24
|
+
export declare enum ProfileModuleType {
|
|
25
|
+
OPERATIONAL_EVALUATION = "OperationalEvaluation",
|
|
26
|
+
ADMIN_SURVEYS = "AdminSurveys"
|
|
27
|
+
}
|
|
24
28
|
export declare enum ProfileModuleActionType {
|
|
25
29
|
ADD_VEHICLE = "Add Vehicle",
|
|
26
30
|
EDIT_VEHICLE = "Edit Vehicle",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ActivatedRoute } from '@angular/router';
|
|
2
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
4
|
import { ProfileService, StorageService } from '.';
|
|
4
5
|
import { Role } from '../models';
|
|
@@ -7,10 +8,13 @@ export declare class AuthService {
|
|
|
7
8
|
private http;
|
|
8
9
|
private storageService;
|
|
9
10
|
private profileService;
|
|
11
|
+
private activatedRoute;
|
|
10
12
|
private environment;
|
|
11
13
|
readonly role$: BehaviorSubject<Role>;
|
|
14
|
+
private parentWindowUrl;
|
|
15
|
+
private subscription;
|
|
12
16
|
private readonly baseUrl;
|
|
13
|
-
constructor(http: HttpClient, storageService: StorageService, profileService: ProfileService, environment: any);
|
|
17
|
+
constructor(http: HttpClient, storageService: StorageService, profileService: ProfileService, activatedRoute: ActivatedRoute, environment: any);
|
|
14
18
|
getTokenByGuid(tokenGuid: string): Observable<string>;
|
|
15
19
|
getTokenByRefreshToken(refreshToken: string): Observable<any>;
|
|
16
20
|
generateTokenGuid(): Observable<string>;
|
|
@@ -13,6 +13,7 @@ export declare class MenuService {
|
|
|
13
13
|
private appName;
|
|
14
14
|
toggleMenu$: Subject<void>;
|
|
15
15
|
menuOpened$: Subject<boolean>;
|
|
16
|
+
frameUrl$: Subject<string>;
|
|
16
17
|
constructor(authService: AuthService, router: Router, storageService: StorageService, profileService: ProfileService, environment: any, menuOptions: MenuItem[], appName: AppName);
|
|
17
18
|
getSideMainMenuOptions(): MenuItem[];
|
|
18
19
|
getSideAdminMenuOptions(): MenuItem[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { ProfileModule, ProfileModuleActionType } from '../models/profile.model';
|
|
3
|
+
import { ProfileModule, ProfileModuleActionType, ProfileModuleType } from '../models/profile.model';
|
|
4
4
|
import { StorageService } from './storage.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ProfileService {
|
|
@@ -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 | undefined): boolean;
|
|
16
|
+
userHasPermission(action: ProfileModuleActionType | ProfileModuleType | undefined): boolean;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
18
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
19
19
|
}
|
|
@@ -7,6 +7,9 @@ export declare class StorageService {
|
|
|
7
7
|
get(key: string): any;
|
|
8
8
|
set(key: string, value: any): void;
|
|
9
9
|
remove(key: string): void;
|
|
10
|
+
getSession(key: string): any;
|
|
11
|
+
setSession(key: string, value: any): void;
|
|
12
|
+
removeSession(key: string): void;
|
|
10
13
|
getToken(): string;
|
|
11
14
|
setToken(token: string): void;
|
|
12
15
|
removeToken(): void;
|