ngx-vector-components 0.0.2 → 0.0.5
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/assets/styles/_primeng-custom-theme.scss +16 -2
- package/assets/styles/_styles.scss +103 -0
- package/assets/styles/_variables.scss +3 -1
- package/esm2020/lib/components/fields/button/button.component.mjs +3 -3
- package/esm2020/lib/components/fields/data-table/data-table.component.mjs +3 -3
- package/esm2020/lib/components/fields/dropdown-field/dropdown-field.component.mjs +2 -2
- package/esm2020/lib/components/fields/fields.module.mjs +6 -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 +4 -3
- package/esm2020/lib/components/generic-modal/generic-modal.module.mjs +5 -4
- package/esm2020/lib/interceptors/http-interceptor.mjs +12 -1
- package/esm2020/lib/models/index.mjs +2 -1
- package/esm2020/lib/services/auth.service.mjs +4 -2
- package/esm2020/lib/services/menu.service.mjs +2 -2
- package/esm2020/lib/services/storage.service.mjs +13 -1
- package/esm2020/lib/shared/shared.module.mjs +4 -5
- package/esm2020/lib/utils/mask.util.mjs +2 -1
- package/esm2020/lib/utils/validation.util.mjs +23 -1
- package/fesm2015/ngx-vector-components.mjs +88 -38
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +88 -38
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- package/lib/components/fields/button/button.component.d.ts +1 -1
- package/lib/components/fields/fields.module.d.ts +2 -1
- package/lib/components/generic-modal/generic-modal.module.d.ts +2 -1
- package/lib/interceptors/http-interceptor.d.ts +2 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/services/auth.service.d.ts +4 -2
- package/lib/services/menu.service.d.ts +1 -1
- package/lib/services/storage.service.d.ts +4 -0
- package/lib/shared/shared.module.d.ts +2 -3
- package/lib/utils/mask.util.d.ts +1 -0
- package/lib/utils/validation.util.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
declare type ButtonType = 'success' | 'default' | 'cancel' | '
|
|
3
|
+
declare type ButtonType = 'success' | 'success-outlined' | 'default' | 'default-filled' | 'cancel' | 'cancel-filled';
|
|
4
4
|
export declare class ButtonComponent {
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
label: string;
|
|
@@ -31,8 +31,9 @@ import * as i29 from "primeng/inputnumber";
|
|
|
31
31
|
import * as i30 from "primeng/menu";
|
|
32
32
|
import * as i31 from "primeng/tabview";
|
|
33
33
|
import * as i32 from "../panel/panel.module";
|
|
34
|
+
import * as i33 from "primeng/button";
|
|
34
35
|
export declare class FieldsModule {
|
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsModule, never>;
|
|
36
|
-
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.SharedModule, typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i16.KeyFilterModule, typeof i17.InputTextModule, typeof i18.CheckboxModule, typeof i19.InputMaskModule, typeof i20.CalendarModule, typeof i21.MultiSelectModule, typeof i22.DropdownModule, typeof i23.AutoCompleteModule, typeof i24.SliderModule, typeof i25.RadioButtonModule, typeof i26.TableModule, typeof i27.FileUploadModule, typeof i28.DialogModule, typeof i29.InputNumberModule, typeof i30.MenuModule, typeof i31.TabViewModule, typeof i32.PanelModule], [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 i27.FileUploadModule, typeof i28.DialogModule, typeof i10.CurrencyFieldComponent, typeof i11.PercentageFieldComponent, typeof i12.DataTableComponent, typeof i13.FiltersComponent]>;
|
|
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 i14.SharedModule, typeof i15.FormsModule, typeof i15.ReactiveFormsModule, typeof i16.KeyFilterModule, typeof i17.InputTextModule, typeof i18.CheckboxModule, typeof i19.InputMaskModule, typeof i20.CalendarModule, typeof i21.MultiSelectModule, typeof i22.DropdownModule, typeof i23.AutoCompleteModule, typeof i24.SliderModule, typeof i25.RadioButtonModule, typeof i26.TableModule, typeof i27.FileUploadModule, typeof i28.DialogModule, typeof i29.InputNumberModule, typeof i30.MenuModule, typeof i31.TabViewModule, typeof i32.PanelModule, typeof i33.ButtonModule], [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 i27.FileUploadModule, typeof i28.DialogModule, typeof i10.CurrencyFieldComponent, typeof i11.PercentageFieldComponent, typeof i12.DataTableComponent, typeof i13.FiltersComponent]>;
|
|
37
38
|
static ɵinj: i0.ɵɵInjectorDeclaration<FieldsModule>;
|
|
38
39
|
}
|
|
@@ -2,8 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./generic-modal.component";
|
|
3
3
|
import * as i2 from "primeng/dialog";
|
|
4
4
|
import * as i3 from "../fields/fields.module";
|
|
5
|
+
import * as i4 from "../../shared/shared.module";
|
|
5
6
|
export declare class GenericModalModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<GenericModalModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericModalModule, [typeof i1.GenericModalComponent], [typeof i2.DialogModule, typeof i3.FieldsModule], [typeof i1.GenericModalComponent]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericModalModule, [typeof i1.GenericModalComponent], [typeof i2.DialogModule, typeof i3.FieldsModule, typeof i4.SharedModule], [typeof i1.GenericModalComponent]>;
|
|
8
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<GenericModalModule>;
|
|
9
10
|
}
|
|
@@ -19,6 +19,8 @@ export declare class HttpInterceptorProvider implements HttpInterceptor {
|
|
|
19
19
|
private addModifierIdIfPresent;
|
|
20
20
|
private addContentType;
|
|
21
21
|
private fixUrl;
|
|
22
|
+
private isAuthRequest;
|
|
23
|
+
private isProfilesRequest;
|
|
22
24
|
private handle401Error;
|
|
23
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<HttpInterceptorProvider, never>;
|
|
24
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<HttpInterceptorProvider>;
|
package/lib/models/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { ProfileService, StorageService } from '
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { ProfileService, StorageService } from '.';
|
|
4
|
+
import { Role } from '../models';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class AuthService {
|
|
6
7
|
private http;
|
|
7
8
|
private storageService;
|
|
8
9
|
private profileService;
|
|
9
10
|
private environment;
|
|
11
|
+
readonly role$: BehaviorSubject<Role>;
|
|
10
12
|
private readonly baseUrl;
|
|
11
13
|
constructor(http: HttpClient, storageService: StorageService, profileService: ProfileService, environment: any);
|
|
12
14
|
getTokenByGuid(tokenGuid: string): Observable<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Router } from '@angular/router';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
|
+
import { AuthService, ProfileService, StorageService } from '.';
|
|
3
4
|
import { AppName, MenuItem } from '../models';
|
|
4
|
-
import { AuthService, ProfileService, StorageService } from './';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class MenuService {
|
|
7
7
|
private authService;
|
|
@@ -3,6 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class StorageService {
|
|
4
4
|
constructor();
|
|
5
5
|
clear(): void;
|
|
6
|
+
clearSession(): void;
|
|
7
|
+
get(key: string): string | null;
|
|
8
|
+
set(key: string, value: string): void;
|
|
9
|
+
remove(key: string): void;
|
|
6
10
|
getToken(): string;
|
|
7
11
|
setToken(token: string): void;
|
|
8
12
|
removeToken(): void;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@angular/common";
|
|
3
3
|
import * as i2 from "primeng/tooltip";
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "../pipes/pipes.module";
|
|
4
|
+
import * as i3 from "../pipes/pipes.module";
|
|
6
5
|
export declare class SharedModule {
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, never, [typeof i1.CommonModule, typeof i2.TooltipModule, typeof i3.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, never, [typeof i1.CommonModule, typeof i2.TooltipModule, typeof i3.PipesModule]>;
|
|
9
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
10
9
|
}
|
package/lib/utils/mask.util.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare class MaskUtil {
|
|
|
3
3
|
static CNPJ_TEXT_FIELD_PATTERN: string;
|
|
4
4
|
static BOLETO_TEXT_FIELD_PATTERN: string;
|
|
5
5
|
static CELLPHONE_TEXT_FIELD_PATTERN: string;
|
|
6
|
+
static PHONE_TEXT_FIELD_PATTERN: string;
|
|
6
7
|
static POSTALCODE_TEXT_FIELD_PATTERN: string;
|
|
7
8
|
static formatDocument(stringValue: string): string;
|
|
8
9
|
static formatBoleto(stringValue: string): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
1
|
+
import { AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
2
2
|
export declare class ValidationUtil {
|
|
3
3
|
static email(control: AbstractControl): ValidationErrors | null;
|
|
4
4
|
static fullName(control: AbstractControl): ValidationErrors | null;
|
|
@@ -6,4 +6,6 @@ export declare class ValidationUtil {
|
|
|
6
6
|
static isValidCpf(control: AbstractControl): ValidationErrors | null;
|
|
7
7
|
static isValidCnpj(control: AbstractControl): ValidationErrors | null;
|
|
8
8
|
static majorAge(control: AbstractControl): ValidationErrors | null;
|
|
9
|
+
static matchField(anotherField: AbstractControl | null): ValidatorFn;
|
|
10
|
+
static cellphone(control: AbstractControl): ValidationErrors | null;
|
|
9
11
|
}
|