ngx-vector-components 4.62.0 → 4.63.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.
@@ -38,6 +38,7 @@ export declare class DataTableComponent implements OnInit, OnDestroy {
38
38
  onExportPDF: EventEmitter<void>;
39
39
  onSelectedRows: EventEmitter<any>;
40
40
  onFilterChanged: EventEmitter<FilterChangedEvent>;
41
+ onTabSelected: EventEmitter<ListItem>;
41
42
  filtersComponent: FiltersComponent | undefined;
42
43
  selectedItems: any;
43
44
  get tabs(): ListItem[];
@@ -74,5 +75,5 @@ export declare class DataTableComponent implements OnInit, OnDestroy {
74
75
  private getStatusColor;
75
76
  private getActiveStatusColor;
76
77
  static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
77
- static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "vector-data-table", never, { "columns": "columns"; "data": "data"; "exportExcel": "exportExcel"; "exportPDF": "exportPDF"; "totalRecords": "totalRecords"; "disabledHeadercheckbox": "disabledHeadercheckbox"; "filters": "filters"; "addItemLabel": "addItemLabel"; "pagination": "pagination"; "virtualPagination": "virtualPagination"; "tabs": "tabs"; "customButtons": "customButtons"; "addItemButtonPlusSign": "addItemButtonPlusSign"; "hasActions": "hasActions"; "hasExpandableIcon": "hasExpandableIcon"; "addNameColumnExpand": "addNameColumnExpand"; "expandable": "expandable"; "expansionTemplate": "expansionTemplate"; "selectionMode": "selectionMode"; "selectionType": "selectionType"; "height": "height"; }, { "onLazyLoad": "onLazyLoad"; "onFilter": "onFilter"; "onAdd": "onAdd"; "onExportExcel": "onExportExcel"; "onExportPDF": "onExportPDF"; "onSelectedRows": "onSelectedRows"; "onFilterChanged": "onFilterChanged"; }, never, never>;
78
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "vector-data-table", never, { "columns": "columns"; "data": "data"; "exportExcel": "exportExcel"; "exportPDF": "exportPDF"; "totalRecords": "totalRecords"; "disabledHeadercheckbox": "disabledHeadercheckbox"; "filters": "filters"; "addItemLabel": "addItemLabel"; "pagination": "pagination"; "virtualPagination": "virtualPagination"; "tabs": "tabs"; "customButtons": "customButtons"; "addItemButtonPlusSign": "addItemButtonPlusSign"; "hasActions": "hasActions"; "hasExpandableIcon": "hasExpandableIcon"; "addNameColumnExpand": "addNameColumnExpand"; "expandable": "expandable"; "expansionTemplate": "expansionTemplate"; "selectionMode": "selectionMode"; "selectionType": "selectionType"; "height": "height"; }, { "onLazyLoad": "onLazyLoad"; "onFilter": "onFilter"; "onAdd": "onAdd"; "onExportExcel": "onExportExcel"; "onExportPDF": "onExportPDF"; "onSelectedRows": "onSelectedRows"; "onFilterChanged": "onFilterChanged"; "onTabSelected": "onTabSelected"; }, never, never>;
78
79
  }
@@ -35,6 +35,7 @@ export declare type FilterField = {
35
35
  dependencies?: string[];
36
36
  size?: 'small' | 'medium' | 'large' | 'largest' | 'full';
37
37
  minLengthToService?: number;
38
+ initiateValue?: boolean;
38
39
  };
39
40
  export declare class FiltersComponent implements OnInit, OnDestroy {
40
41
  private activatedRoute;
@@ -1,6 +1,7 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { AppName, MenuItem } from '../../models';
4
+ import { VectorApp } from '../../models/vector-app.model';
4
5
  import { MenuService, ProfileService, StorageService } from '../../services';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class MenuComponent implements OnInit, OnDestroy {
@@ -19,7 +20,7 @@ export declare class MenuComponent implements OnInit, OnDestroy {
19
20
  lastAnimation: string;
20
21
  appNameLabel: any;
21
22
  adminOption: MenuItem | undefined;
22
- apps: typeof AppName;
23
+ appsEnum: typeof AppName;
23
24
  production: any;
24
25
  onFinishMenuOptionsConfig: EventEmitter<any>;
25
26
  set opened(opened: boolean);
@@ -29,6 +30,7 @@ export declare class MenuComponent implements OnInit, OnDestroy {
29
30
  get hasAnyMarketplacePermission(): boolean;
30
31
  get hasAnyFintechPermission(): boolean;
31
32
  accountService: any;
33
+ apps: VectorApp[];
32
34
  private _opened;
33
35
  private subscription;
34
36
  private currentWindowWidth;
@@ -42,13 +44,10 @@ export declare class MenuComponent implements OnInit, OnDestroy {
42
44
  onSubmenuClick(submenuItem: MenuItem): void;
43
45
  openTermsOfUse(): void;
44
46
  isPortalSelected(portal: AppName): boolean;
45
- navigateToPortal(params: {
46
- portal: 'fintech' | 'logtech' | 'marketplace';
47
- admin: boolean;
48
- }): void;
47
+ navigateToPortal(params: Partial<VectorApp>): void;
49
48
  getMenuNotificationsCount(menu: MenuItem): number;
50
49
  private clearAndCloseMenu;
51
50
  private resizeMenu;
52
51
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "vector-menu", never, { "accountService": "accountService"; }, { "onFinishMenuOptionsConfig": "onFinishMenuOptionsConfig"; }, never, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "vector-menu", never, { "accountService": "accountService"; "apps": "apps"; }, { "onFinishMenuOptionsConfig": "onFinishMenuOptionsConfig"; }, never, never>;
54
53
  }
@@ -3,5 +3,6 @@ export declare enum AppName {
3
3
  FINTECH = "FINTECH",
4
4
  MARKETPLACE = "MARKETPLACE",
5
5
  LOGTECH = "LOGTECH",
6
- SURVEY = "SURVEY"
6
+ SURVEY = "SURVEY",
7
+ PRODUCER_PORTAL = "PRODUCER_PORTAL"
7
8
  }
@@ -1,4 +1,5 @@
1
1
  import { MenuItem } from 'primeng/api';
2
+ import { ListItem } from './list-item.model';
2
3
  import { Status } from './status.enum';
3
4
  export declare type DataTableBaseItem = {
4
5
  actions?: MenuItem[];
@@ -55,6 +56,7 @@ export declare type DataTableLazyLoadEvent = {
55
56
  value: string;
56
57
  regex: boolean;
57
58
  };
59
+ tab: ListItem;
58
60
  };
59
61
  export declare enum SelectionType {
60
62
  CHECKBOX = "checkbox",
@@ -12,4 +12,5 @@ export * from './message-status.enum';
12
12
  export * from './profile.model';
13
13
  export * from './role.enum';
14
14
  export * from './status.enum';
15
+ export * from './vector-app.model';
15
16
  export * from './view.enum';
@@ -0,0 +1,9 @@
1
+ import { AppName } from './app-name.enum';
2
+ export declare type VectorApp = {
3
+ appName: AppName;
4
+ description: string;
5
+ className: string;
6
+ navigate: (tokenGuid: string, userId: number) => void;
7
+ hidden?: boolean | (() => boolean);
8
+ isAdmin?: boolean;
9
+ };
@@ -2,6 +2,7 @@ import { Router } from '@angular/router';
2
2
  import { Subject } from 'rxjs';
3
3
  import { AuthService, ProfileService, StorageService } from '.';
4
4
  import { AppName, MenuItem } from '../models';
5
+ import { VectorApp } from '../models/vector-app.model';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class MenuService {
7
8
  private authService;
@@ -20,10 +21,7 @@ export declare class MenuService {
20
21
  constructor(authService: AuthService, router: Router, storageService: StorageService, profileService: ProfileService, environment: any, menuOptions: MenuItem[], appName: AppName);
21
22
  getSideMainMenuOptions(): MenuItem[];
22
23
  getSideAdminMenuOptions(): MenuItem[];
23
- navigateToPortal(params: {
24
- portal: 'fintech' | 'logtech' | 'marketplace';
25
- admin: boolean;
26
- }): void;
24
+ navigateToPortal(params: Partial<VectorApp>): void;
27
25
  addMenuNotification(menuId: string): void;
28
26
  subtractMenuNotification(menuId: string): void;
29
27
  updateMenuNotifications(menuId: string, notificationsCount: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-vector-components",
3
- "version": "4.62.0",
3
+ "version": "4.63.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "~13.2.3",
6
6
  "@angular/cdk": "^13.3.9",