carriera-intern-components 0.0.94 → 0.0.95
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/app/components/avatar/avatar.component.d.ts +1 -1
- package/app/components/input/input.component.d.ts +14 -8
- package/app/components/input/models/input.model.d.ts +11 -3
- package/app/components/input/pipes/filter-by-search.pipe.d.ts +2 -2
- package/fesm2022/carriera-intern-components.mjs +71 -13
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public/assets/icons/banks/ic_bank_bbt.svg +5 -0
- package/public/assets/icons/banks/ic_bank_bmo_harris.svg +13 -0
- package/public/assets/icons/banks/ic_bank_capital_one.svg +11 -0
- package/public/assets/icons/banks/ic_bank_chase.svg +11 -0
- package/public/assets/icons/banks/ic_bank_chime.svg +10 -0
- package/public/assets/icons/banks/ic_bank_citi.svg +8 -0
- package/public/assets/icons/banks/ic_bank_fifth_third.svg +14 -0
- package/public/assets/icons/banks/ic_bank_green_dot.svg +17 -0
- package/public/assets/icons/banks/ic_bank_mb_financial.svg +5 -0
- package/public/assets/icons/banks/ic_bank_meta.svg +11 -0
- package/public/assets/icons/banks/ic_bank_navi_federal.svg +14 -0
- package/public/assets/icons/banks/ic_bank_of_america.svg +5 -0
- package/public/assets/icons/banks/ic_bank_pnc.svg +10 -0
- package/public/assets/icons/banks/ic_bank_regions.svg +14 -0
- package/public/assets/icons/banks/ic_bank_renasant.svg +14 -0
- package/public/assets/icons/banks/ic_bank_tcf.svg +11 -0
- package/public/assets/icons/banks/ic_bank_truist.svg +3 -0
- package/public/assets/icons/banks/ic_bank_us.svg +4 -0
- package/public/assets/icons/banks/ic_bank_wells_fargo.svg +3 -0
- package/public/assets/json/icons.json +76 -0
|
@@ -14,7 +14,7 @@ export declare class AvatarComponent {
|
|
|
14
14
|
* The size of the avatar in pixels.
|
|
15
15
|
* @type {Size}
|
|
16
16
|
*/
|
|
17
|
-
size: import("@angular/core").InputSignal<
|
|
17
|
+
size: import("@angular/core").InputSignal<18 | 22 | 32 | 74 | 160>;
|
|
18
18
|
/**
|
|
19
19
|
* Whether the avatar should be rounded or not at sizes of 74px and 160px.
|
|
20
20
|
* @type {boolean}
|
|
@@ -4,7 +4,7 @@ import { PasswordDirective } from '../../directives/password.directive';
|
|
|
4
4
|
import { NumberFormatDirective } from '../../directives/number-format.directive';
|
|
5
5
|
import { MaskDirective } from './directives/mask.directive';
|
|
6
6
|
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
7
|
-
import { Broker, CaiInputConfig, Contact, DepartmentContactsPair, DropdownOption, LabelColor, LabelOption, Shipper } from './models/input.model';
|
|
7
|
+
import { Bank, Broker, CaiInputConfig, Contact, DepartmentContactsPair, DropdownOption, LabelColor, LabelOption, Shipper } from './models/input.model';
|
|
8
8
|
import { Dispatch, DispatchBoard } from './models';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
@@ -29,7 +29,7 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
29
29
|
- `icon`: Name of an icon to display (e.g., `'cai-email'`).
|
|
30
30
|
- `iconColor`: Color of the displayed icon (e.g., `'#FF0000'`).
|
|
31
31
|
- `dropdown`: If `true`, the input is associated with a dropdown menu, can also have `'dispatch'`, `'ftl-dispatch'`, `'broker'`, `'contact'`, `'shipper'` or `'label'` variants.
|
|
32
|
-
- `options`: An array of options for the dropdown can be of type `DropdownOption[]` | `LabelOption[]` | `DispatchBoard[]` | `Broker[]` | `DepartmentContactsPair[]` | `Shipper[]`.
|
|
32
|
+
- `options`: An array of options for the dropdown can be of type `DropdownOption[]` | `LabelOption[]` | `DispatchBoard[]` | `Broker[]` | `DepartmentContactsPair[]` | `Shipper[]` | `Bank[]`.
|
|
33
33
|
- `labelColors`: An array of label colors for the label picker.
|
|
34
34
|
- `search`: Enables search within the dropdown.
|
|
35
35
|
- `add`: Enables 'add new' functionality in the dropdown.
|
|
@@ -44,14 +44,15 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
44
44
|
- `autocomplete`: The HTML `autocomplete` attribute.
|
|
45
45
|
- `disabled`: If `true`, the input is disabled (for use without reactive form).
|
|
46
46
|
- `passwordRequirements`: If `true`, shows password requirements for password inputs.
|
|
47
|
-
- `optionValue`: The
|
|
47
|
+
- `optionValue`: The key of the option to use in the formControl for the selected option in the dropdown.
|
|
48
|
+
- `optionLabel`: The key of the option to use as the label in the dropdown.
|
|
48
49
|
- `subContent`: An optional slot for additional content to be displayed next to the content the user is entering. (ex. lbs, months, etc.)
|
|
49
50
|
*/
|
|
50
51
|
config: import("@angular/core").InputSignal<CaiInputConfig>;
|
|
51
52
|
/**
|
|
52
53
|
* Input property to hold the dropdown options.
|
|
53
54
|
*/
|
|
54
|
-
options: import("@angular/core").InputSignal<DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[]>;
|
|
55
|
+
options: import("@angular/core").InputSignal<DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[] | Bank[]>;
|
|
55
56
|
/**
|
|
56
57
|
* Input property to hold the label colors for the label picker.
|
|
57
58
|
*/
|
|
@@ -71,10 +72,9 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
71
72
|
/**
|
|
72
73
|
* A signal that holds the locally added options.
|
|
73
74
|
*/
|
|
74
|
-
localOptions: import("@angular/core").WritableSignal<DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[]>;
|
|
75
|
+
localOptions: import("@angular/core").WritableSignal<DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[] | Bank[]>;
|
|
75
76
|
/**
|
|
76
77
|
* A signal that holds the currently selected option from the dropdown.
|
|
77
|
-
* @type {Signal<DropdownOption | null>}
|
|
78
78
|
*/
|
|
79
79
|
selectedOption: import("@angular/core").WritableSignal<DropdownOption | null>;
|
|
80
80
|
/**
|
|
@@ -107,6 +107,10 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
107
107
|
* A signal that holds the currently selected shipper from the shipper picker.
|
|
108
108
|
*/
|
|
109
109
|
selectedShipper: import("@angular/core").WritableSignal<Shipper | null>;
|
|
110
|
+
/**
|
|
111
|
+
* A signal that holds the currently selected bank from the bank picker.
|
|
112
|
+
*/
|
|
113
|
+
selectedBank: import("@angular/core").WritableSignal<Bank | null>;
|
|
110
114
|
/**
|
|
111
115
|
* A computed signal that indicates whether the placeholder selected option should be shown.
|
|
112
116
|
*/
|
|
@@ -115,7 +119,7 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
115
119
|
* A computed signal that dynamically calculates the step value for number inputs.
|
|
116
120
|
*/
|
|
117
121
|
step: import("@angular/core").Signal<number>;
|
|
118
|
-
combinedOptions: import("@angular/core").Signal<DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[]>;
|
|
122
|
+
combinedOptions: import("@angular/core").Signal<DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[] | Bank[]>;
|
|
119
123
|
dispatchCount: import("@angular/core").Signal<number>;
|
|
120
124
|
/**
|
|
121
125
|
* An output signal that emits the value of the added option.
|
|
@@ -141,11 +145,13 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
141
145
|
brokerRef: any;
|
|
142
146
|
contactRef: any;
|
|
143
147
|
shipperRef: any;
|
|
148
|
+
bankRef: any;
|
|
144
149
|
selectedDispatchRef: any;
|
|
145
150
|
selectedLabelRef: any;
|
|
146
151
|
selectedBrokerRef: any;
|
|
147
152
|
selectedContactRef: any;
|
|
148
153
|
selectedShipperRef: any;
|
|
154
|
+
selectedBankRef: any;
|
|
149
155
|
/**
|
|
150
156
|
* Constructor for the InputComponent.
|
|
151
157
|
* It injects NgControl to integrate with Angular's forms API.
|
|
@@ -235,7 +241,7 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
235
241
|
* @param option - The selected option.
|
|
236
242
|
* @param event - The MouseEvent that initiated the selection action.
|
|
237
243
|
*/
|
|
238
|
-
handleOption(option: DropdownOption | LabelOption | Dispatch | Broker | Contact, event?: MouseEvent): void;
|
|
244
|
+
handleOption(option: DropdownOption | LabelOption | Dispatch | Broker | Contact | Bank | Shipper, event?: MouseEvent): void;
|
|
239
245
|
/**
|
|
240
246
|
* Adds a new option to the dropdown.
|
|
241
247
|
* @param option - The option to add.
|
|
@@ -7,7 +7,7 @@ export interface CaiInputConfig {
|
|
|
7
7
|
reveal?: number;
|
|
8
8
|
icon?: string | null;
|
|
9
9
|
iconColor?: string;
|
|
10
|
-
dropdown?: boolean | 'dispatch' | 'ftl-dispatch' | 'label' | 'broker' | 'contact' | 'shipper';
|
|
10
|
+
dropdown?: boolean | 'dispatch' | 'ftl-dispatch' | 'label' | 'broker' | 'contact' | 'shipper' | 'bank';
|
|
11
11
|
search?: boolean;
|
|
12
12
|
add?: boolean;
|
|
13
13
|
subcontent?: string;
|
|
@@ -23,10 +23,11 @@ export interface CaiInputConfig {
|
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
passwordRequirements?: boolean;
|
|
25
25
|
optionValue?: string;
|
|
26
|
+
optionLabel?: string;
|
|
26
27
|
}
|
|
27
28
|
export type DropdownOption = {
|
|
28
|
-
id
|
|
29
|
-
|
|
29
|
+
id?: number;
|
|
30
|
+
[key: string]: any;
|
|
30
31
|
};
|
|
31
32
|
export type LabelOption = {
|
|
32
33
|
id?: number;
|
|
@@ -105,3 +106,10 @@ export type Address = {
|
|
|
105
106
|
stateShortName?: string | null;
|
|
106
107
|
addressUnit?: string | null;
|
|
107
108
|
};
|
|
109
|
+
export type Bank = {
|
|
110
|
+
id?: number;
|
|
111
|
+
name?: string | null;
|
|
112
|
+
logoName?: string | null;
|
|
113
|
+
createdAt?: string;
|
|
114
|
+
updatedAt?: string;
|
|
115
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { Broker, CaiInputConfig, Contact, DepartmentContactsPair, Dispatch, DispatchBoard, DropdownOption, LabelOption, Shipper } from '../models';
|
|
2
|
+
import { Bank, Broker, CaiInputConfig, Contact, DepartmentContactsPair, Dispatch, DispatchBoard, DropdownOption, LabelOption, Shipper } from '../models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FilterBySearchPipe implements PipeTransform {
|
|
5
5
|
hasProperty<T extends object>(obj: T, prop: PropertyKey): prop is keyof T;
|
|
6
|
-
transform(options: DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | Contact[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[], value: string | undefined | null, type: CaiInputConfig['dropdown'], shouldSearch?: boolean, foldedBoards?: number[]): any[];
|
|
6
|
+
transform(options: DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | Contact[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[] | Bank[], value: string | undefined | null, type: CaiInputConfig['dropdown'], shouldSearch?: boolean, foldedBoards?: number[], label?: string): any[];
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterBySearchPipe, never>;
|
|
8
8
|
static ɵpipe: i0.ɵɵPipeDeclaration<FilterBySearchPipe, "filterBySearch", true>;
|
|
9
9
|
}
|