ngx-vector-components 2.12.0 → 2.13.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/assets/styles/_primeng-custom-theme.scss +30 -20
  3. package/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +2 -2
  4. package/esm2020/lib/components/fields/currency-field/currency-field.component.mjs +11 -3
  5. package/esm2020/lib/components/fields/filters/filters.component.mjs +1 -1
  6. package/esm2020/lib/components/fields/multiselect-field/multiselect-field.component.mjs +1 -1
  7. package/esm2020/lib/components/fields/radio-button-field/radio-button-field.component.mjs +6 -3
  8. package/esm2020/lib/components/fields/range-value/range-value.component.mjs +24 -8
  9. package/esm2020/lib/components/fields/text-field/text-field.component.mjs +2 -2
  10. package/esm2020/lib/components/menu/menu.component.mjs +3 -7
  11. package/esm2020/lib/models/ipInfo.mjs +2 -0
  12. package/esm2020/lib/models/menu-item.model.mjs +1 -1
  13. package/esm2020/lib/models/profile.model.mjs +1 -4
  14. package/esm2020/lib/services/geolocation.service.mjs +23 -0
  15. package/esm2020/lib/services/index.mjs +2 -1
  16. package/esm2020/lib/services/profile.service.mjs +5 -18
  17. package/esm2020/lib/utils/mask.util.mjs +17 -3
  18. package/fesm2015/ngx-vector-components.mjs +87 -48
  19. package/fesm2015/ngx-vector-components.mjs.map +1 -1
  20. package/fesm2020/ngx-vector-components.mjs +87 -47
  21. package/fesm2020/ngx-vector-components.mjs.map +1 -1
  22. package/lib/components/fields/currency-field/currency-field.component.d.ts +4 -1
  23. package/lib/components/fields/radio-button-field/radio-button-field.component.d.ts +2 -1
  24. package/lib/components/fields/range-value/range-value.component.d.ts +3 -2
  25. package/lib/components/menu/menu.component.d.ts +0 -1
  26. package/lib/models/ipInfo.d.ts +6 -0
  27. package/lib/models/menu-item.model.d.ts +1 -1
  28. package/lib/models/profile.model.d.ts +0 -3
  29. package/lib/services/geolocation.service.d.ts +13 -0
  30. package/lib/services/index.d.ts +1 -0
  31. package/lib/services/profile.service.d.ts +1 -1
  32. package/lib/utils/mask.util.d.ts +1 -0
  33. package/package.json +7 -6
@@ -6,6 +6,8 @@ export declare class CurrencyFieldComponent implements OnDestroy {
6
6
  placeholder: string;
7
7
  set control(_control: any);
8
8
  outlined: boolean;
9
+ rounded: boolean;
10
+ label?: string;
9
11
  get control(): any;
10
12
  private _control;
11
13
  private lastInvertedIndexTyped;
@@ -13,6 +15,7 @@ export declare class CurrencyFieldComponent implements OnDestroy {
13
15
  ngOnDestroy(): void;
14
16
  focusLastIndex($event: Event): void;
15
17
  inputNextChar($event: KeyboardEvent): void;
18
+ clearValue(): void;
16
19
  static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyFieldComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<CurrencyFieldComponent, "vector-currency-field", never, { "minValue": "minValue"; "maxValue": "maxValue"; "placeholder": "placeholder"; "control": "control"; "outlined": "outlined"; }, {}, never, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<CurrencyFieldComponent, "vector-currency-field", never, { "minValue": "minValue"; "maxValue": "maxValue"; "placeholder": "placeholder"; "control": "control"; "outlined": "outlined"; "rounded": "rounded"; "label": "label"; }, {}, never, never>;
18
21
  }
@@ -9,6 +9,7 @@ export declare class RadioButtonFieldComponent implements OnInit {
9
9
  options: RadioButtonOption[];
10
10
  control: any;
11
11
  layout: 'vertical' | 'horizontal';
12
+ justifySpaceBetween: boolean;
12
13
  constructor();
13
14
  ngOnInit(): void;
14
15
  get layoutClass(): {
@@ -16,5 +17,5 @@ export declare class RadioButtonFieldComponent implements OnInit {
16
17
  vertical: boolean;
17
18
  };
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonFieldComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonFieldComponent, "vector-radio-button-field", never, { "groupName": "groupName"; "options": "options"; "control": "control"; "layout": "layout"; }, {}, never, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonFieldComponent, "vector-radio-button-field", never, { "groupName": "groupName"; "options": "options"; "control": "control"; "layout": "layout"; "justifySpaceBetween": "justifySpaceBetween"; }, {}, never, never>;
20
21
  }
@@ -2,15 +2,16 @@ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class RangeValueComponent implements OnInit {
4
4
  value: number;
5
+ movimentedValue: number | null;
5
6
  min: number;
6
7
  max: number;
7
8
  valueChange: EventEmitter<number>;
8
9
  constructor();
9
10
  ngOnInit(): void;
10
11
  changeValue(): void;
11
- getPorcentage(): number;
12
+ getMovimentedValue(): number;
12
13
  increment(): void;
13
14
  decrement(): void;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<RangeValueComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<RangeValueComponent, "vector-range-value", never, { "value": "value"; "min": "min"; "max": "max"; }, { "valueChange": "valueChange"; }, never, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<RangeValueComponent, "vector-range-value", never, { "value": "value"; "movimentedValue": "movimentedValue"; "min": "min"; "max": "max"; }, { "valueChange": "valueChange"; }, never, never>;
16
17
  }
@@ -48,7 +48,6 @@ export declare class MenuComponent implements OnInit, OnDestroy {
48
48
  getMenuNotificationsCount(menu: MenuItem): number;
49
49
  private clearAndCloseMenu;
50
50
  private resizeMenu;
51
- resetMenus(clear?: boolean): void;
52
51
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
53
52
  static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "vector-menu", never, {}, { "onFinishMenuOptionsConfig": "onFinishMenuOptionsConfig"; }, never, never>;
54
53
  }
@@ -0,0 +1,6 @@
1
+ export interface ipInfo {
2
+ ip: string;
3
+ hostname: string;
4
+ lat?: number;
5
+ lng?: number;
6
+ }
@@ -12,5 +12,5 @@ export declare type MenuItem = {
12
12
  hidden?: boolean;
13
13
  command?: () => void;
14
14
  alwaysOpen?: boolean;
15
- permission?: ProfileModuleActionType[] | ProfileModuleType[] | ProfileModuleActionType | ProfileModuleType;
15
+ permission?: ProfileModuleActionType | ProfileModuleType;
16
16
  };
@@ -127,9 +127,6 @@ 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",
133
130
  ADMIN_MARKEPLACE = "Admin Markeplace",
134
131
  APPROVE_REQUEST = "Approve Request",
135
132
  REPROVE_REQUEST = "Reprove Request",
@@ -0,0 +1,13 @@
1
+ import { ipInfo } from '../models/ipInfo';
2
+ import { HttpBackend, HttpClient } from '@angular/common/http';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GeolocationService {
5
+ private http;
6
+ private backend;
7
+ private customHttpClient;
8
+ constructor(http: HttpClient, backend: HttpBackend);
9
+ getGeoLoc(): import("rxjs").Observable<ipInfo>;
10
+ createUserLoginInfo(userInfo: any): import("rxjs").Observable<Object>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<GeolocationService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<GeolocationService>;
13
+ }
@@ -3,6 +3,7 @@ export * from './base-dropdown';
3
3
  export * from './crud-base.service';
4
4
  export * from './enum.service';
5
5
  export * from './error-message.service';
6
+ export * from './geolocation.service';
6
7
  export * from './loading.service';
7
8
  export * from './menu.service';
8
9
  export * from './modal.service';
@@ -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 | ProfileModuleActionType[] | ProfileModuleType[] | 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
  }
@@ -8,5 +8,6 @@ export declare class MaskUtil {
8
8
  static formatDocument(stringValue: string): string;
9
9
  static formatPostalCode(stringValue: string): string;
10
10
  static formatBoleto(stringValue: string): string;
11
+ static formatPhone(stringValue: string): string;
11
12
  private static doMaskString;
12
13
  }
package/package.json CHANGED
@@ -1,23 +1,24 @@
1
1
  {
2
2
  "name": "ngx-vector-components",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "peerDependencies": {
5
+ "@angular/animations": "~13.2.3",
6
+ "@angular/cdk": "^13.2.2",
5
7
  "@angular/common": "^13.2.3",
6
8
  "@angular/core": "^13.2.3",
7
9
  "@angular/forms": "~13.2.2",
8
- "@angular/cdk": "^13.2.2",
9
- "@angular/animations": "~13.2.3",
10
10
  "@angular/platform-browser": "~13.2.2",
11
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",
15
+ "file-saver": "^2.0.5",
16
+ "luxon": "^2.0.2",
17
+ "ngx-device-detector": "^3.0.0",
15
18
  "primeflex": "^3.1.0",
16
19
  "primeicons": "^5.0.0",
17
20
  "primeng": "^13.1.1",
18
- "rxjs": "~6.6.0",
19
- "luxon": "^2.0.2",
20
- "file-saver": "^2.0.5"
21
+ "rxjs": "~6.6.0"
21
22
  },
22
23
  "dependencies": {
23
24
  "tslib": "^2.3.0"