ca-components 1.0.26 → 1.0.28

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 (103) hide show
  1. package/esm2022/lib/ca-components.module.mjs +18 -6
  2. package/esm2022/lib/components/ca-activity-log-list/ca-activity-log-list.component.mjs +3 -3
  3. package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +3 -3
  4. package/esm2022/lib/components/ca-right-side-panel/ca-right-side-panel.component.mjs +16 -6
  5. package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component.mjs +137 -0
  6. package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component.mjs +3 -3
  7. package/esm2022/lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component.mjs +34 -4
  8. package/esm2022/lib/components/ca-right-side-panel/enums/company/bank-account-status.enum.mjs +8 -0
  9. package/esm2022/lib/components/ca-right-side-panel/enums/company/bank-card-types-string.enum.mjs +8 -0
  10. package/esm2022/lib/components/ca-right-side-panel/enums/company/fleet-type.enum.mjs +7 -0
  11. package/esm2022/lib/components/ca-right-side-panel/enums/company/preferred-load-type.enum.mjs +6 -0
  12. package/esm2022/lib/components/ca-right-side-panel/enums/company-font-size.enum.mjs +7 -0
  13. package/esm2022/lib/components/ca-right-side-panel/enums/company-info-title.enum.mjs +18 -0
  14. package/esm2022/lib/components/ca-right-side-panel/enums/index.mjs +7 -1
  15. package/esm2022/lib/components/ca-right-side-panel/models/company/bank-account.model.mjs +2 -0
  16. package/esm2022/lib/components/ca-right-side-panel/models/company/bank-card.model.mjs +2 -0
  17. package/esm2022/lib/components/ca-right-side-panel/models/company/bank.model.mjs +2 -0
  18. package/esm2022/lib/components/ca-right-side-panel/models/company/company-additional-info.model.mjs +2 -0
  19. package/esm2022/lib/components/ca-right-side-panel/models/company/company-address.model.mjs +2 -0
  20. package/esm2022/lib/components/ca-right-side-panel/models/company/company-enum-value.model.mjs +2 -0
  21. package/esm2022/lib/components/ca-right-side-panel/models/company/company-navigation-data.model.mjs +1 -1
  22. package/esm2022/lib/components/ca-right-side-panel/models/company/company-payroll.model.mjs +2 -0
  23. package/esm2022/lib/components/ca-right-side-panel/models/company/company-short.model.mjs +2 -0
  24. package/esm2022/lib/components/ca-right-side-panel/models/company/company-user-short.model.mjs +2 -0
  25. package/esm2022/lib/components/ca-right-side-panel/models/company/company.model.mjs +2 -0
  26. package/esm2022/lib/components/ca-right-side-panel/models/company/department-contact.model.mjs +2 -0
  27. package/esm2022/lib/components/ca-right-side-panel/models/company/department.model.mjs +2 -0
  28. package/esm2022/lib/components/ca-right-side-panel/models/company/factoring-company.model.mjs +2 -0
  29. package/esm2022/lib/components/ca-right-side-panel/models/company/file-response.model.mjs +2 -0
  30. package/esm2022/lib/components/ca-right-side-panel/models/company/insurance-policy-addon.model.mjs +2 -0
  31. package/esm2022/lib/components/ca-right-side-panel/models/company/insurance-policy.model.mjs +2 -0
  32. package/esm2022/lib/components/ca-right-side-panel/models/company/per-mile.model.mjs +2 -0
  33. package/esm2022/lib/components/ca-right-side-panel/models/index.mjs +18 -1
  34. package/esm2022/lib/components/ca-right-side-panel/utils/pipes/bank-card-types.pipe.mjs +20 -0
  35. package/esm2022/lib/components/ca-right-side-panel/utils/pipes/hide-account.pipe.mjs +62 -0
  36. package/esm2022/lib/components/ca-right-side-panel/utils/pipes/index.mjs +3 -0
  37. package/esm2022/lib/components/ca-tooltip-list/ca-tooltip-list.component.mjs +35 -0
  38. package/esm2022/lib/components/ca-tooltip-list/models/index.mjs +3 -0
  39. package/esm2022/lib/components/ca-tooltip-list/models/tooltip-list-item.model.mjs +2 -0
  40. package/esm2022/lib/components/ca-tooltip-list/models/tooltip-list.model.mjs +2 -0
  41. package/esm2022/lib/components/ca-tooltip-list/utils/constants/ca-tooltip-list.constants.mjs +4 -0
  42. package/esm2022/lib/components/ca-tooltip-list/utils/constants/index.mjs +2 -0
  43. package/esm2022/lib/pipes/format-currency.pipe.mjs +29 -9
  44. package/esm2022/lib/pipes/truncate-string.pipe.mjs +19 -0
  45. package/esm2022/public-api.mjs +4 -1
  46. package/fesm2022/ca-components.mjs +393 -27
  47. package/fesm2022/ca-components.mjs.map +1 -1
  48. package/lib/ca-components.module.d.ts +5 -3
  49. package/lib/components/ca-activity-log-list/ca-activity-log-list.component.d.ts +1 -1
  50. package/lib/components/ca-filters/ca-filter.component.d.ts +2 -2
  51. package/lib/components/ca-right-side-panel/ca-right-side-panel.component.d.ts +6 -3
  52. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component.d.ts +51 -0
  53. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-menu/ca-right-side-panel-menu.component.d.ts +1 -1
  54. package/lib/components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component.d.ts +12 -2
  55. package/lib/components/ca-right-side-panel/enums/company/bank-account-status.enum.d.ts +6 -0
  56. package/lib/components/ca-right-side-panel/enums/company/bank-card-types-string.enum.d.ts +6 -0
  57. package/lib/components/ca-right-side-panel/enums/company/fleet-type.enum.d.ts +5 -0
  58. package/lib/components/ca-right-side-panel/enums/company/preferred-load-type.enum.d.ts +4 -0
  59. package/lib/components/ca-right-side-panel/enums/company-font-size.enum.d.ts +5 -0
  60. package/lib/components/ca-right-side-panel/enums/company-info-title.enum.d.ts +16 -0
  61. package/lib/components/ca-right-side-panel/enums/index.d.ts +6 -0
  62. package/lib/components/ca-right-side-panel/models/company/bank-account.model.d.ts +11 -0
  63. package/lib/components/ca-right-side-panel/models/company/bank-card.model.d.ts +10 -0
  64. package/lib/components/ca-right-side-panel/models/company/bank.model.d.ts +7 -0
  65. package/lib/components/ca-right-side-panel/models/company/company-additional-info.model.d.ts +15 -0
  66. package/lib/components/ca-right-side-panel/models/company/company-address.model.d.ts +12 -0
  67. package/lib/components/ca-right-side-panel/models/company/company-enum-value.model.d.ts +4 -0
  68. package/lib/components/ca-right-side-panel/models/company/company-payroll.model.d.ts +21 -0
  69. package/lib/components/ca-right-side-panel/models/company/company-short.model.d.ts +9 -0
  70. package/lib/components/ca-right-side-panel/models/company/company-user-short.model.d.ts +8 -0
  71. package/lib/components/ca-right-side-panel/models/company/company.model.d.ts +38 -0
  72. package/lib/components/ca-right-side-panel/models/company/department-contact.model.d.ts +10 -0
  73. package/lib/components/ca-right-side-panel/models/company/department.model.d.ts +7 -0
  74. package/lib/components/ca-right-side-panel/models/company/factoring-company.model.d.ts +9 -0
  75. package/lib/components/ca-right-side-panel/models/company/file-response.model.d.ts +9 -0
  76. package/lib/components/ca-right-side-panel/models/company/insurance-policy-addon.model.d.ts +25 -0
  77. package/lib/components/ca-right-side-panel/models/company/insurance-policy.model.d.ts +13 -0
  78. package/lib/components/ca-right-side-panel/models/company/per-mile.model.d.ts +5 -0
  79. package/lib/components/ca-right-side-panel/models/index.d.ts +17 -0
  80. package/lib/components/ca-right-side-panel/utils/pipes/bank-card-types.pipe.d.ts +9 -0
  81. package/lib/components/ca-right-side-panel/utils/pipes/hide-account.pipe.d.ts +7 -0
  82. package/lib/components/ca-right-side-panel/utils/pipes/index.d.ts +2 -0
  83. package/lib/components/ca-tooltip-list/ca-tooltip-list.component.d.ts +13 -0
  84. package/lib/components/ca-tooltip-list/models/index.d.ts +2 -0
  85. package/lib/components/ca-tooltip-list/models/tooltip-list-item.model.d.ts +8 -0
  86. package/lib/components/ca-tooltip-list/models/tooltip-list.model.d.ts +9 -0
  87. package/lib/components/ca-tooltip-list/utils/constants/ca-tooltip-list.constants.d.ts +3 -0
  88. package/lib/components/ca-tooltip-list/utils/constants/index.d.ts +1 -0
  89. package/lib/pipes/format-currency.pipe.d.ts +3 -2
  90. package/lib/pipes/truncate-string.pipe.d.ts +7 -0
  91. package/package.json +1 -1
  92. package/public-api.d.ts +3 -0
  93. package/src/assets/ca-components/svg/right-side-panel/ic_address.svg +3 -0
  94. package/src/assets/ca-components/svg/right-side-panel/ic_amex.svg +6 -0
  95. package/src/assets/ca-components/svg/right-side-panel/ic_bank_account.svg +7 -0
  96. package/src/assets/ca-components/svg/right-side-panel/ic_copy.svg +3 -0
  97. package/src/assets/ca-components/svg/right-side-panel/ic_discover.svg +5 -0
  98. package/src/assets/ca-components/svg/right-side-panel/ic_edit.svg +4 -0
  99. package/src/assets/ca-components/svg/right-side-panel/ic_fax.svg +5 -0
  100. package/src/assets/ca-components/svg/right-side-panel/ic_fuel_card.svg +3 -0
  101. package/src/assets/ca-components/svg/right-side-panel/ic_mastercard.svg +3 -0
  102. package/src/assets/ca-components/svg/right-side-panel/ic_visa.svg +4 -0
  103. package/src/assets/ca-components/svg/right-side-panel/ic_website.svg +3 -0
@@ -32,10 +32,12 @@ import * as i30 from "./components/ca-right-side-panel/ca-right-side-panel.compo
32
32
  import * as i31 from "./components/ca-chart/ca-chart.component";
33
33
  import * as i32 from "./components/ca-dots-menu/ca-dots-menu.component";
34
34
  import * as i33 from "./components/ca-upload-files/ca-upload-files.component";
35
- import * as i34 from "./components/ca-burger-menu/ca-burger-menu.component";
36
- import * as i35 from "./components/ca-progress-range/ca-progress-range.component";
35
+ import * as i34 from "./components/ca-right-side-panel/components/ca-right-side-panel-company/ca-right-side-panel-company.component";
36
+ import * as i35 from "./components/ca-burger-menu/ca-burger-menu.component";
37
+ import * as i36 from "./components/ca-progress-range/ca-progress-range.component";
38
+ import * as i37 from "./components/ca-tooltip-list/ca-tooltip-list.component";
37
39
  export declare class CaComponentsLibModule {
38
40
  static ɵfac: i0.ɵɵFactoryDeclaration<CaComponentsLibModule, never>;
39
- static ɵmod: i0.ɵɵNgModuleDeclaration<CaComponentsLibModule, never, [typeof i1.CommonModule, typeof i2.CaProfileImageComponent, typeof i3.CaRatingReviewComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaInputDropdownComponent, typeof i11.CaMapComponent, typeof i12.CaMapDropdownComponent, typeof i13.CaNoteComponent, typeof i14.CaNoteContainerComponent, typeof i15.CaPayrollListSummaryOverviewComponent, typeof i16.CaPayrollListSummaryOverviewTableComponent, typeof i17.PickupDeliveryBlockComponent, typeof i18.ProgressBarComponent, typeof i19.CaSearchMultipleStatesComponent, typeof i20.CaSpinnerComponent, typeof i21.CaTodoComponent, typeof i22.CaTruckTrailerProgresBarComponent, typeof i23.CaPeriodContentComponent, typeof i24.CaInputNoteComponent, typeof i25.CaInputAddressDropdownComponent, typeof i26.CaMainTableComponent, typeof i27.CaActivityLogListComponent, typeof i28.CaRightSidePanelMenuComponent, typeof i29.CaRightSidePanelTopBarComponent, typeof i30.CaRightSidePanelComponent, typeof i31.CaChartComponent, typeof i32.CaDotsMenuComponent, typeof i33.CaUploadFilesComponent, typeof i34.CaBurgerMenuComponent, typeof i35.CaProgressRangeComponent], [typeof i2.CaProfileImageComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i3.CaRatingReviewComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaInputDropdownComponent, typeof i11.CaMapComponent, typeof i12.CaMapDropdownComponent, typeof i13.CaNoteComponent, typeof i14.CaNoteContainerComponent, typeof i15.CaPayrollListSummaryOverviewComponent, typeof i16.CaPayrollListSummaryOverviewTableComponent, typeof i17.PickupDeliveryBlockComponent, typeof i18.ProgressBarComponent, typeof i19.CaSearchMultipleStatesComponent, typeof i20.CaSpinnerComponent, typeof i22.CaTruckTrailerProgresBarComponent, typeof i23.CaPeriodContentComponent, typeof i24.CaInputNoteComponent, typeof i26.CaMainTableComponent, typeof i27.CaActivityLogListComponent, typeof i28.CaRightSidePanelMenuComponent, typeof i29.CaRightSidePanelTopBarComponent, typeof i30.CaRightSidePanelComponent, typeof i31.CaChartComponent, typeof i32.CaDotsMenuComponent, typeof i33.CaUploadFilesComponent, typeof i34.CaBurgerMenuComponent, typeof i35.CaProgressRangeComponent]>;
41
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CaComponentsLibModule, never, [typeof i1.CommonModule, typeof i2.CaProfileImageComponent, typeof i3.CaRatingReviewComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaInputDropdownComponent, typeof i11.CaMapComponent, typeof i12.CaMapDropdownComponent, typeof i13.CaNoteComponent, typeof i14.CaNoteContainerComponent, typeof i15.CaPayrollListSummaryOverviewComponent, typeof i16.CaPayrollListSummaryOverviewTableComponent, typeof i17.PickupDeliveryBlockComponent, typeof i18.ProgressBarComponent, typeof i19.CaSearchMultipleStatesComponent, typeof i20.CaSpinnerComponent, typeof i21.CaTodoComponent, typeof i22.CaTruckTrailerProgresBarComponent, typeof i23.CaPeriodContentComponent, typeof i24.CaInputNoteComponent, typeof i25.CaInputAddressDropdownComponent, typeof i26.CaMainTableComponent, typeof i27.CaActivityLogListComponent, typeof i28.CaRightSidePanelMenuComponent, typeof i29.CaRightSidePanelTopBarComponent, typeof i30.CaRightSidePanelComponent, typeof i31.CaChartComponent, typeof i32.CaDotsMenuComponent, typeof i33.CaUploadFilesComponent, typeof i34.CaRightSidePanelCompanyComponent, typeof i35.CaBurgerMenuComponent, typeof i36.CaProgressRangeComponent, typeof i37.CaTooltipListComponent], [typeof i2.CaProfileImageComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i3.CaRatingReviewComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaInputDropdownComponent, typeof i11.CaMapComponent, typeof i12.CaMapDropdownComponent, typeof i13.CaNoteComponent, typeof i14.CaNoteContainerComponent, typeof i15.CaPayrollListSummaryOverviewComponent, typeof i16.CaPayrollListSummaryOverviewTableComponent, typeof i17.PickupDeliveryBlockComponent, typeof i18.ProgressBarComponent, typeof i19.CaSearchMultipleStatesComponent, typeof i20.CaSpinnerComponent, typeof i22.CaTruckTrailerProgresBarComponent, typeof i23.CaPeriodContentComponent, typeof i24.CaInputNoteComponent, typeof i26.CaMainTableComponent, typeof i27.CaActivityLogListComponent, typeof i28.CaRightSidePanelMenuComponent, typeof i29.CaRightSidePanelTopBarComponent, typeof i30.CaRightSidePanelComponent, typeof i31.CaChartComponent, typeof i32.CaDotsMenuComponent, typeof i33.CaUploadFilesComponent, typeof i34.CaRightSidePanelCompanyComponent, typeof i35.CaBurgerMenuComponent, typeof i36.CaProgressRangeComponent, typeof i37.CaTooltipListComponent]>;
40
42
  static ɵinj: i0.ɵɵInjectorDeclaration<CaComponentsLibModule>;
41
43
  }
@@ -37,5 +37,5 @@ export declare class CaActivityLogListComponent implements OnInit, OnDestroy {
37
37
  private watchSearchFormValueChanges;
38
38
  resetFiltersClick(): void;
39
39
  static ɵfac: i0.ɵɵFactoryDeclaration<CaActivityLogListComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<CaActivityLogListComponent, "ca-activity-log-list", never, { "activityLogList": { "alias": "activityLogList"; "required": false; }; "selectedTab": { "alias": "selectedTab"; "required": false; }; }, { "searchText": "searchText"; "resetFilters": "resetFilters"; }, never, never, true, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaActivityLogListComponent, "app-ca-activity-log-list", never, { "activityLogList": { "alias": "activityLogList"; "required": false; }; "selectedTab": { "alias": "selectedTab"; "required": false; }; }, { "searchText": "searchText"; "resetFilters": "resetFilters"; }, never, never, true, never>;
41
41
  }
@@ -57,8 +57,8 @@ export declare class CaFilterComponent implements OnDestroy {
57
57
  addressList: AddressList[];
58
58
  usaStates: ArrayStatus[];
59
59
  canadaStates: ArrayStatus[];
60
- setFilter: EventEmitter<filterOutput | filterOutputWithParams>;
61
- clearAll: EventEmitter<filterOutput | filterOutputWithParams>;
60
+ setFilter: EventEmitter<filterOutputWithParams | filterOutput>;
61
+ clearAll: EventEmitter<filterOutputWithParams | filterOutput>;
62
62
  private destroy$;
63
63
  isSearchExpanded: boolean;
64
64
  isFilterActive: boolean;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { ActivityLogItem } from '../ca-activity-log-list/models';
3
- import { ActionFilterInputData, ActivityLogFilterParams, CompanyNavigationData, ModuleFilterInputData, UserFilterInputData } from './models';
3
+ import { ActionFilterInputData, ActivityLogFilterParams, Company, CompanyNavigationData, ModuleFilterInputData, UserFilterInputData } from './models';
4
4
  import { RightSidePanelCurrentTab, SelectedModule } from './enums';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class CaRightSidePanelComponent {
@@ -10,7 +10,8 @@ export declare class CaRightSidePanelComponent {
10
10
  SelectedModule: typeof SelectedModule;
11
11
  resetFilters: boolean;
12
12
  companiesData: CompanyNavigationData[];
13
- data: ActivityLogItem[];
13
+ activityLogData: ActivityLogItem[];
14
+ mainCompanyData: Company;
14
15
  usersFilter: UserFilterInputData[];
15
16
  modulesFilter: ModuleFilterInputData[];
16
17
  actionsFilter: ActionFilterInputData[];
@@ -18,13 +19,15 @@ export declare class CaRightSidePanelComponent {
18
19
  selectedNavModule: EventEmitter<SelectedModule>;
19
20
  isSidePanelPinned: EventEmitter<boolean>;
20
21
  isNavOpen: EventEmitter<boolean>;
22
+ selectedCompanyId: EventEmitter<number>;
21
23
  selectedNavEvent(selectedNav: SelectedModule): void;
22
24
  selectedTabEvent(selectedTab: RightSidePanelCurrentTab): void;
25
+ selectedTabCompanyIdEvent(companyId: number): void;
23
26
  pinSidebarEvent(isPinned: boolean): void;
24
27
  setActivityLogFilterParams(activityLogFilterParams: ActivityLogFilterParams): void;
25
28
  searchEvent(searchText: string): void;
26
29
  resetFiltersEvent(resetFilters: boolean): void;
27
30
  openNavEvent(isNavOpen: boolean): void;
28
31
  static ɵfac: i0.ɵɵFactoryDeclaration<CaRightSidePanelComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<CaRightSidePanelComponent, "ca-right-side-panel", never, { "companiesData": { "alias": "companiesData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "usersFilter": { "alias": "usersFilter"; "required": false; }; "modulesFilter": { "alias": "modulesFilter"; "required": false; }; "actionsFilter": { "alias": "actionsFilter"; "required": false; }; }, { "activityLogFilterParams": "activityLogFilterParams"; "selectedNavModule": "selectedNavModule"; "isSidePanelPinned": "isSidePanelPinned"; "isNavOpen": "isNavOpen"; }, never, never, true, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaRightSidePanelComponent, "app-ca-right-side-panel", never, { "companiesData": { "alias": "companiesData"; "required": false; }; "activityLogData": { "alias": "activityLogData"; "required": false; }; "mainCompanyData": { "alias": "mainCompanyData"; "required": false; }; "usersFilter": { "alias": "usersFilter"; "required": false; }; "modulesFilter": { "alias": "modulesFilter"; "required": false; }; "actionsFilter": { "alias": "actionsFilter"; "required": false; }; }, { "activityLogFilterParams": "activityLogFilterParams"; "selectedNavModule": "selectedNavModule"; "isSidePanelPinned": "isSidePanelPinned"; "isNavOpen": "isNavOpen"; "selectedCompanyId": "selectedCompanyId"; }, never, never, true, never>;
30
33
  }
@@ -0,0 +1,51 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Clipboard } from '@angular/cdk/clipboard';
3
+ import { Company } from '../../models';
4
+ import { CompanyInfoTitle } from '../../enums';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CaRightSidePanelCompanyComponent implements OnInit {
7
+ private clipboar;
8
+ company: Company;
9
+ fontSizeLogo: string;
10
+ CompanyInfoTitle: typeof CompanyInfoTitle;
11
+ firstPartAddress: string;
12
+ secondPartAddress: string;
13
+ isAdditionalInfoOpen: boolean;
14
+ isDepartmentContactOpen: boolean;
15
+ isPhoneShown: boolean;
16
+ isBankAccountOpen: boolean;
17
+ isRoutingShown: boolean;
18
+ accountVisibility: {
19
+ [key: string]: boolean;
20
+ };
21
+ isBankCardOpen: boolean;
22
+ isCardShown: boolean;
23
+ cardVisibility: {
24
+ [key: string]: boolean;
25
+ };
26
+ cvcVisibility: {
27
+ [key: string]: boolean;
28
+ };
29
+ textCopied: string;
30
+ constructor(clipboar: Clipboard);
31
+ ngOnInit(): void;
32
+ private changeFontSizeLogo;
33
+ private splitAddress;
34
+ toggleAdditionalInfo(): void;
35
+ toggleDepartmentContact(): void;
36
+ toggleDepartmentContactView(): void;
37
+ toggleBankAccount(): void;
38
+ toggleBankAccountView(): void;
39
+ toggleAccountVisibility(account: string): void;
40
+ isAccountVisible(account: string): boolean;
41
+ toggleBankCard(): void;
42
+ toggleBankCardView(): void;
43
+ toggleCardVisibility(card: string): void;
44
+ isCardVisible(card: string): boolean;
45
+ toggleCvcVisibility(cvc: string): void;
46
+ isCvcVisible(cvc: string): boolean;
47
+ copyText(event: Event, val: string): void;
48
+ trackByIdentity(index: number): number;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaRightSidePanelCompanyComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaRightSidePanelCompanyComponent, "app-ca-right-side-panel-company", never, { "company": { "alias": "company"; "required": false; }; }, {}, never, never, true, never>;
51
+ }
@@ -27,5 +27,5 @@ export declare class CaRightSidePanelMenuComponent {
27
27
  trackByIdentity(index: number): number;
28
28
  private setSettings;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<CaRightSidePanelMenuComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<CaRightSidePanelMenuComponent, "ca-right-side-panel-menu", never, { "companyList": { "alias": "companyList"; "required": false; }; }, { "selectedNav": "selectedNav"; "isPinned": "isPinned"; "isNavOpen": "isNavOpen"; }, never, never, true, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaRightSidePanelMenuComponent, "app-ca-right-side-panel-menu", never, { "companyList": { "alias": "companyList"; "required": false; }; }, { "selectedNav": "selectedNav"; "isPinned": "isPinned"; "isNavOpen": "isNavOpen"; }, never, never, true, never>;
31
31
  }
@@ -1,6 +1,6 @@
1
1
  import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { ActivityLogSortType, RightSidePanelCurrentTab, SelectedModule } from '../../enums';
3
- import { ActionFilterInputData, ActivityLogFilter, ActivityLogFilterParams, ModuleFilterInputData, TimeFilterEvent, UserFilterInputData } from '../../models';
3
+ import { ActionFilterInputData, ActivityLogFilter, ActivityLogFilterParams, CompanyNavigationData, ModuleFilterInputData, TimeFilterEvent, UserFilterInputData } from '../../models';
4
4
  import { UserGroup } from '../../../ca-filters/components/ca-user-filter/models';
5
5
  import { ArrayStatus } from '../../../../../lib/models/array-status.model';
6
6
  import { filterOutputWithParams } from '../../../../../lib/models/filter-output-params.model';
@@ -12,9 +12,12 @@ export declare class CaRightSidePanelTopBarComponent {
12
12
  currentTab: RightSidePanelCurrentTab;
13
13
  hoveredTab: RightSidePanelCurrentTab | null;
14
14
  RightSidePanelCurrentTab: typeof RightSidePanelCurrentTab;
15
+ currentTabCompany: number;
16
+ hoveredCompanyId: number;
15
17
  _usersFilter: UserGroup[];
16
18
  _modulesFilter: UserGroup[];
17
19
  _actionsFilter: ArrayStatus[];
20
+ _companyList?: CompanyNavigationData[];
18
21
  SelectedModule: typeof SelectedModule;
19
22
  activitySortOrderAsc: boolean;
20
23
  RightSidePanelTopBarSvgRoutes: typeof RightSidePanelTopBarSvgRoutes;
@@ -25,10 +28,13 @@ export declare class CaRightSidePanelTopBarComponent {
25
28
  set modulesFilter(value: ModuleFilterInputData[]);
26
29
  set actionsFilter(value: ActionFilterInputData[]);
27
30
  set resetFilters(value: boolean);
31
+ set companyList(value: CompanyNavigationData[]);
28
32
  selectedTab: EventEmitter<RightSidePanelCurrentTab>;
29
33
  activityLogFilterParams: EventEmitter<ActivityLogFilterParams>;
34
+ selectedTabCompanyId: EventEmitter<number>;
30
35
  constructor(cdr: ChangeDetectorRef);
31
36
  switchTab(tab: RightSidePanelCurrentTab): void;
37
+ switchTabCompany(companyId: number): void;
32
38
  private transformUsersFilter;
33
39
  private transformModulesFilter;
34
40
  private transformActionsFilter;
@@ -39,8 +45,12 @@ export declare class CaRightSidePanelTopBarComponent {
39
45
  sortDate(): void;
40
46
  onHoverTab(hoveredTab: RightSidePanelCurrentTab): void;
41
47
  onHoverLeave(): void;
48
+ onHoverTabCompany(companyId: number): void;
49
+ onHoverLeaveCompany(): void;
42
50
  reloadActivities(): void;
43
51
  private resetActivityLogFilters;
52
+ private setCompanyList;
53
+ trackByIdentity(index: number): number;
44
54
  static ɵfac: i0.ɵɵFactoryDeclaration<CaRightSidePanelTopBarComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<CaRightSidePanelTopBarComponent, "ca-right-side-panel-top-bar", never, { "selectedModule": { "alias": "selectedModule"; "required": false; }; "usersFilter": { "alias": "usersFilter"; "required": false; }; "modulesFilter": { "alias": "modulesFilter"; "required": false; }; "actionsFilter": { "alias": "actionsFilter"; "required": false; }; "resetFilters": { "alias": "resetFilters"; "required": false; }; }, { "selectedTab": "selectedTab"; "activityLogFilterParams": "activityLogFilterParams"; }, never, never, true, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaRightSidePanelTopBarComponent, "app-ca-right-side-panel-top-bar", never, { "selectedModule": { "alias": "selectedModule"; "required": false; }; "usersFilter": { "alias": "usersFilter"; "required": false; }; "modulesFilter": { "alias": "modulesFilter"; "required": false; }; "actionsFilter": { "alias": "actionsFilter"; "required": false; }; "resetFilters": { "alias": "resetFilters"; "required": false; }; "companyList": { "alias": "companyList"; "required": false; }; }, { "selectedTab": "selectedTab"; "activityLogFilterParams": "activityLogFilterParams"; "selectedTabCompanyId": "selectedTabCompanyId"; }, never, never, true, never>;
46
56
  }
@@ -0,0 +1,6 @@
1
+ export declare enum BankAccountStatus {
2
+ UNVERIVIED = "Unverivied",
3
+ VERIFIED = "Verified",
4
+ PENDING = "Pending",
5
+ DECLINED = "Declined"
6
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum BankCardTypesStringEnum {
2
+ VISA = "visa",
3
+ AMERICAN = "amex",
4
+ MASTERCARD = "mastercard",
5
+ DISCOVER = "discover"
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum FleetType {
2
+ SOLO = "Solo",
3
+ TEAM = "Team",
4
+ COMBINED = "Combined"
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum PreferredLoadType {
2
+ FTL = "FTL",
3
+ LTL = "LTL"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum CompanyFontSize {
2
+ FOURTY_TWO = "fourty-two",
3
+ THIRTY_TWO = "thirty-two",
4
+ EIGHTEEN = "eighteen"
5
+ }
@@ -0,0 +1,16 @@
1
+ export declare enum CompanyInfoTitle {
2
+ PHONE = "Phone",
3
+ FAX = "Fax",
4
+ EMAIL = "Email",
5
+ WEBSITE = "Website",
6
+ ADDRESS = "Address",
7
+ USDOT = "USDOT",
8
+ EIN = "EIN",
9
+ MC = "MC",
10
+ IRP = "IRP",
11
+ IFTA = "IFTA",
12
+ TOLL = "Toll",
13
+ SCAC = "SCAC",
14
+ TIME_ZONE = "Time Zone",
15
+ CURRENCY = "Currency"
16
+ }
@@ -4,3 +4,9 @@ export * from './filter-type.enum';
4
4
  export * from './activity-log-sort-type.enum';
5
5
  export * from './time-filter-type.enum';
6
6
  export * from './modules-filter-item-label.enum';
7
+ export * from './company-font-size.enum';
8
+ export * from './company-info-title.enum';
9
+ export * from './company/preferred-load-type.enum';
10
+ export * from './company/fleet-type.enum';
11
+ export * from './company/bank-account-status.enum';
12
+ export * from './company/bank-card-types-string.enum';
@@ -0,0 +1,11 @@
1
+ import { Bank } from '../';
2
+ import { BankAccountStatus } from '../../enums';
3
+ export interface BankAccount {
4
+ id: number;
5
+ bank: Bank;
6
+ routing: string;
7
+ account: string;
8
+ status: BankAccountStatus;
9
+ createdAt: string;
10
+ updatedAt: string;
11
+ }
@@ -0,0 +1,10 @@
1
+ export interface BankCard {
2
+ id: number;
3
+ nickname: string;
4
+ cardType: string;
5
+ card: string;
6
+ cvc: string;
7
+ expireDate: string;
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ }
@@ -0,0 +1,7 @@
1
+ export interface Bank {
2
+ id: number;
3
+ name: string;
4
+ logoName: string;
5
+ createdAt: string;
6
+ updatedAt: string;
7
+ }
@@ -0,0 +1,15 @@
1
+ import { FleetType, PreferredLoadType } from '../../enums';
2
+ export interface CompanyAdditionalInfo {
3
+ prefix: string;
4
+ starting: number;
5
+ sufix: string;
6
+ autoInvoicing: boolean;
7
+ preferredLoadType: PreferredLoadType;
8
+ fleetType: FleetType;
9
+ factorByDefault: boolean;
10
+ payTerm: number;
11
+ customerCredit: string;
12
+ mvrMonths: number;
13
+ truckInspectionMonths: number;
14
+ trailerInspectionMonths: number;
15
+ }
@@ -0,0 +1,12 @@
1
+ export interface CompanyAddress {
2
+ city: string;
3
+ state: string;
4
+ county: string;
5
+ address: string;
6
+ street: string;
7
+ streetNumber: string;
8
+ country: string;
9
+ zipCode: string;
10
+ stateShortName: string;
11
+ addressUnit: string;
12
+ }
@@ -0,0 +1,4 @@
1
+ export interface CompanyEnumValue {
2
+ name: string;
3
+ id: number;
4
+ }
@@ -0,0 +1,21 @@
1
+ import { CompanyEnumValue, Department, PerMileEntity } from '../';
2
+ export interface CompanyPayroll {
3
+ id: number;
4
+ department: Department;
5
+ payPeriod: CompanyEnumValue;
6
+ endingIn: CompanyEnumValue;
7
+ defaultBase: number;
8
+ defaultCommission: number;
9
+ solo: PerMileEntity;
10
+ team: PerMileEntity;
11
+ soloPerLoad: number;
12
+ teamPerLoad: number;
13
+ perMileSolo: number;
14
+ perMileTeam: number;
15
+ loadedAndEmptySameRate: boolean;
16
+ defaultSoloDriverCommission: number;
17
+ defaultTeamDriverCommission: number;
18
+ defaultOwnerCommission: number;
19
+ createdAt: string;
20
+ updatedAt: string;
21
+ }
@@ -0,0 +1,9 @@
1
+ import { FileResponse } from '../';
2
+ export interface CompanyShort {
3
+ id: number;
4
+ companyName: string;
5
+ isDivision: boolean;
6
+ isActive: boolean;
7
+ lastLogin: string;
8
+ logoFile: FileResponse;
9
+ }
@@ -0,0 +1,8 @@
1
+ import { FileResponse } from '../';
2
+ export interface CompanyUserShort {
3
+ id: number;
4
+ userId: number;
5
+ fullName: string;
6
+ avatarFile: FileResponse;
7
+ departmentId: number;
8
+ }
@@ -0,0 +1,38 @@
1
+ import { BankAccount, BankCard, CompanyAdditionalInfo, CompanyAddress, CompanyEnumValue, CompanyPayroll, CompanyShort, DepartmentContact, FactoringCompany, FileResponse, InsurancePolicy } from '../';
2
+ export interface Company {
3
+ id: number;
4
+ name: string;
5
+ usDot: string;
6
+ ein: string;
7
+ mc: string;
8
+ phone: string;
9
+ email: string;
10
+ fax: string;
11
+ webUrl: string;
12
+ address: CompanyAddress;
13
+ irp: string;
14
+ ifta: string;
15
+ toll: string;
16
+ scac: string;
17
+ timeZone: CompanyEnumValue;
18
+ currency: CompanyEnumValue;
19
+ companyType: CompanyEnumValue;
20
+ dateOfIncorporation: string;
21
+ hazMat: boolean;
22
+ additionalInfo: CompanyAdditionalInfo;
23
+ factoringCompany: FactoringCompany;
24
+ departmentContacts: DepartmentContact[];
25
+ bankAccounts: BankAccount[];
26
+ bankCards: BankCard[];
27
+ useACHPayout: boolean;
28
+ companyPayrolls: CompanyPayroll[];
29
+ insurancePolicies: InsurancePolicy[];
30
+ divisions: CompanyShort[];
31
+ files: FileResponse;
32
+ logoFile: FileResponse;
33
+ createdAt: string;
34
+ updatedAt: string;
35
+ driverMiles: boolean;
36
+ driverComission: boolean;
37
+ driverFlatRate: boolean;
38
+ }
@@ -0,0 +1,10 @@
1
+ import { Department } from '../';
2
+ export interface DepartmentContact {
3
+ id: number;
4
+ department: Department;
5
+ phone: string;
6
+ extensionPhone: string;
7
+ email: string;
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { CompanyUserShort } from '../';
2
+ export interface Department {
3
+ id: number;
4
+ name: string;
5
+ count: number;
6
+ companyUsers: CompanyUserShort[];
7
+ }
@@ -0,0 +1,9 @@
1
+ import { CompanyAddress } from '../';
2
+ export interface FactoringCompany {
3
+ name: string;
4
+ phone: string;
5
+ email: string;
6
+ address: CompanyAddress;
7
+ noticeOfAssigment: string;
8
+ note: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ export interface FileResponse {
2
+ fileId: number;
3
+ fileName: string;
4
+ url: string;
5
+ fileSize: number;
6
+ tags: string[];
7
+ tagGeneratedByUser: boolean;
8
+ updatedAt: string;
9
+ }
@@ -0,0 +1,25 @@
1
+ import { CompanyEnumValue } from './company-enum-value.model';
2
+ export interface InsurancePolicyAddon {
3
+ id: number;
4
+ insurancePolicyId: number;
5
+ insurancePolicyAddonType: CompanyEnumValue;
6
+ policy: string;
7
+ insurerName: string;
8
+ rating: CompanyEnumValue;
9
+ eachOccurrence: number;
10
+ damageToRentedPremises: number;
11
+ personalAndAdvertisingInjury: number;
12
+ medicalExpanses: number;
13
+ generalAggregate: number;
14
+ productsCompOperAggregate: number;
15
+ bodilyInjuryAccident: number;
16
+ bodilyInjuryPerson: number;
17
+ combinedSingleLimit: number;
18
+ propertyDamage: number;
19
+ singleConveyance: number;
20
+ deductable: number;
21
+ comprehensiveAndCollision: number;
22
+ value: number;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ }
@@ -0,0 +1,13 @@
1
+ import { CompanyAddress, FileResponse, InsurancePolicyAddon } from '../';
2
+ export interface InsurancePolicy {
3
+ id: number;
4
+ producerName: string;
5
+ issued: string;
6
+ expires: string;
7
+ phone: string;
8
+ email: string;
9
+ address: CompanyAddress;
10
+ insurancePolicyAddons: InsurancePolicyAddon[];
11
+ files: FileResponse[];
12
+ note: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ export interface PerMileEntity {
2
+ emptyMile: number;
3
+ loadedMile: number;
4
+ perStop: number;
5
+ }
@@ -9,3 +9,20 @@ export * from './module-filter/module-filter-input-data.model';
9
9
  export * from './action-filter/action-filter-input-data.model';
10
10
  export * from './time-filter/time-filter-event.model';
11
11
  export * from './company/company-navigation-data.model';
12
+ export * from './company/company-address.model';
13
+ export * from './company/company-enum-value.model';
14
+ export * from './company/company-additional-info.model';
15
+ export * from './company/factoring-company.model';
16
+ export * from './company/department-contact.model';
17
+ export * from './company/department.model';
18
+ export * from './company/company-user-short.model';
19
+ export * from './company/file-response.model';
20
+ export * from './company/bank-account.model';
21
+ export * from './company/bank.model';
22
+ export * from './company/bank-card.model';
23
+ export * from './company/per-mile.model';
24
+ export * from './company/company-payroll.model';
25
+ export * from './company/insurance-policy.model';
26
+ export * from './company/insurance-policy-addon.model';
27
+ export * from './company/company-short.model';
28
+ export * from './company/company.model';
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { BankCardTypesStringEnum } from '../../enums';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BankCardTypesPipe implements PipeTransform {
5
+ constructor();
6
+ transform(cardType: string): BankCardTypesStringEnum;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BankCardTypesPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<BankCardTypesPipe, "bankCardTypesPipe", true>;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class HideAccountPipe implements PipeTransform {
4
+ transform(value: string, template: string, toogleVisibility: boolean): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<HideAccountPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<HideAccountPipe, "hideAccount", true>;
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from './hide-account.pipe';
2
+ export * from './bank-card-types.pipe';
@@ -0,0 +1,13 @@
1
+ import { ITooltipList } from './models';
2
+ import { CaTooltipListConstants } from './utils/constants';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CaTooltipListComponent {
5
+ tooltipList: ITooltipList;
6
+ constants: typeof CaTooltipListConstants;
7
+ truncateLength: number;
8
+ get isSingleItemSelected(): boolean;
9
+ get isLessThanFourItemsSelected(): boolean;
10
+ trackByIdentity(index: number): number;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaTooltipListComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaTooltipListComponent, "app-ca-tooltip-list", never, { "tooltipList": { "alias": "tooltipList"; "required": false; }; }, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,2 @@
1
+ export * from './tooltip-list-item.model';
2
+ export * from './tooltip-list.model';
@@ -0,0 +1,8 @@
1
+ export interface ITooltipListItem {
2
+ id: string;
3
+ label: string;
4
+ value: number;
5
+ isCurrency: boolean;
6
+ percentage?: string;
7
+ color: string;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { ITooltipListItem } from './tooltip-list-item.model';
2
+ export interface ITooltipList {
3
+ singleDate?: string;
4
+ startDate?: string;
5
+ endDate?: string;
6
+ selectedItems: ITooltipListItem[];
7
+ otherItems?: ITooltipListItem[];
8
+ showPercentage?: boolean;
9
+ }
@@ -0,0 +1,3 @@
1
+ export declare class CaTooltipListConstants {
2
+ static VALUE_PERCENTAGE_DELIMITER: string;
3
+ }
@@ -0,0 +1 @@
1
+ export * from './ca-tooltip-list.constants';
@@ -1,7 +1,8 @@
1
- import { PipeTransform } from "@angular/core";
1
+ import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class FormatCurrencyPipe implements PipeTransform {
4
- transform(currency: number): string;
4
+ transform(currency: number, useAbbreviation?: boolean): string;
5
+ private nFormatter;
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<FormatCurrencyPipe, never>;
6
7
  static ɵpipe: i0.ɵɵPipeDeclaration<FormatCurrencyPipe, "formatCurrency", true>;
7
8
  }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TruncatePipe implements PipeTransform {
4
+ transform(value: string, limit: number): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.2.0",
6
6
  "@angular/core": "^16.2.0",