carriera-intern-components 0.0.999 → 1.1.1
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/document-preview/document-preview.component.d.ts +5 -4
- package/app/components/input/input.component.d.ts +28 -4
- package/app/components/input/models/dropdown.model.d.ts +21 -0
- package/app/components/input/models/input.model.d.ts +5 -5
- package/fesm2022/carriera-intern-components.mjs +226 -25
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public/assets/icons/states/ca/cai-ca-ab.svg +3 -0
- package/public/assets/icons/states/ca/cai-ca-bc.svg +35 -0
- package/public/assets/icons/states/ca/cai-ca-mb.svg +3 -0
- package/public/assets/icons/states/ca/cai-ca-nb.svg +7 -0
- package/public/assets/icons/states/ca/cai-ca-nl.svg +4 -0
- package/public/assets/icons/states/ca/cai-ca-ns.svg +6 -0
- package/public/assets/icons/states/ca/cai-ca-on.svg +7 -0
- package/public/assets/icons/states/ca/cai-ca-pe.svg +3 -0
- package/public/assets/icons/states/ca/cai-ca-qc.svg +4 -0
- package/public/assets/icons/states/ca/cai-ca-sk.svg +3 -0
- package/public/assets/icons/states/ca/cai-ca-yt.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ak.svg +14 -0
- package/public/assets/icons/states/us/cai-us-al.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ar.svg +3 -0
- package/public/assets/icons/states/us/cai-us-az.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ca.svg +3 -0
- package/public/assets/icons/states/us/cai-us-co.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ct.svg +3 -0
- package/public/assets/icons/states/us/cai-us-de.svg +3 -0
- package/public/assets/icons/states/us/cai-us-fl.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ga.svg +3 -0
- package/public/assets/icons/states/us/cai-us-hi.svg +10 -0
- package/public/assets/icons/states/us/cai-us-ia.svg +3 -0
- package/public/assets/icons/states/us/cai-us-id.svg +3 -0
- package/public/assets/icons/states/us/cai-us-il.svg +3 -0
- package/public/assets/icons/states/us/cai-us-in.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ks.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ky.svg +3 -0
- package/public/assets/icons/states/us/cai-us-la.svg +4 -0
- package/public/assets/icons/states/us/cai-us-ma.svg +7 -0
- package/public/assets/icons/states/us/cai-us-md.svg +7 -0
- package/public/assets/icons/states/us/cai-us-me.svg +9 -0
- package/public/assets/icons/states/us/cai-us-mi.svg +11 -0
- package/public/assets/icons/states/us/cai-us-mn.svg +4 -0
- package/public/assets/icons/states/us/cai-us-mo.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ms.svg +3 -0
- package/public/assets/icons/states/us/cai-us-mt.svg +3 -0
- package/public/assets/icons/states/us/cai-us-nc.svg +3 -0
- package/public/assets/icons/states/us/cai-us-nd.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ne.svg +3 -0
- package/public/assets/icons/states/us/cai-us-nh.svg +3 -0
- package/public/assets/icons/states/us/cai-us-nj.svg +5 -0
- package/public/assets/icons/states/us/cai-us-nm.svg +3 -0
- package/public/assets/icons/states/us/cai-us-nv.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ny.svg +4 -0
- package/public/assets/icons/states/us/cai-us-oh.svg +4 -0
- package/public/assets/icons/states/us/cai-us-ok.svg +3 -0
- package/public/assets/icons/states/us/cai-us-or.svg +3 -0
- package/public/assets/icons/states/us/cai-us-pa.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ri.svg +8 -0
- package/public/assets/icons/states/us/cai-us-sc.svg +3 -0
- package/public/assets/icons/states/us/cai-us-sd.svg +3 -0
- package/public/assets/icons/states/us/cai-us-tn.svg +3 -0
- package/public/assets/icons/states/us/cai-us-tx.svg +3 -0
- package/public/assets/icons/states/us/cai-us-ut.svg +3 -0
- package/public/assets/icons/states/us/cai-us-va.svg +4 -0
- package/public/assets/icons/states/us/cai-us-vt.svg +7 -0
- package/public/assets/icons/states/us/cai-us-wa.svg +15 -0
- package/public/assets/icons/states/us/cai-us-wi.svg +4 -0
- package/public/assets/icons/states/us/cai-us-wv.svg +3 -0
- package/public/assets/icons/states/us/cai-us-wy.svg +3 -0
- package/public/assets/json/icons.json +244 -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<18 | 22 | 32 | 74
|
|
17
|
+
size: import("@angular/core").InputSignal<160 | 18 | 22 | 32 | 74>;
|
|
18
18
|
/**
|
|
19
19
|
* Whether the avatar should be rounded or not at sizes of 74px and 160px.
|
|
20
20
|
* @type {boolean}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AppFile } from '../../models/appFile.model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* This component displays a preview of a document, including its name, size,
|
|
6
6
|
* and provides actions to delete, download, and tag the document.
|
|
7
7
|
*/
|
|
8
|
-
export declare class DocumentPreviewComponent implements OnChanges {
|
|
9
|
-
|
|
8
|
+
export declare class DocumentPreviewComponent implements OnChanges, OnInit {
|
|
9
|
+
coverMinimalMode: boolean;
|
|
10
10
|
isCrop: import("@angular/core").WritableSignal<boolean>;
|
|
11
11
|
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
12
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
13
14
|
/**
|
|
14
15
|
* Signal that controls whether the delete modal is visible.Used to confirm the file deletion.
|
|
@@ -94,5 +95,5 @@ export declare class DocumentPreviewComponent implements OnChanges {
|
|
|
94
95
|
*/
|
|
95
96
|
handleShare(): void;
|
|
96
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentPreviewComponent, never>;
|
|
97
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "coverMinimalMode": { "alias": "coverMinimalMode"; "required": false; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": true; "isSignal": true; }; }, { "onDelete": "onDelete"; "onDownload": "onDownload"; "onTagChange": "onTagChange"; }, never, never, true, never>;
|
|
98
99
|
}
|
|
@@ -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 { Bank, Broker, CaiInputConfig, Contact, Dispatcher, DropdownOption, LabelColor, LabelOption, Shipper, Dispatch, DropdownArrays, DropdownOptions, TruckType, TrailerType, Hazardous } from './models';
|
|
7
|
+
import { Bank, Broker, CaiInputConfig, Contact, Dispatcher, DropdownOption, LabelColor, LabelOption, Shipper, Dispatch, DropdownArrays, DropdownOptions, TruckType, TrailerType, Hazardous, State, Owner, FuelCard } from './models';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* This component is a generic input component that can be used to create various types of inputs.
|
|
@@ -19,6 +19,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
19
19
|
PasswordDirective: PasswordDirective;
|
|
20
20
|
NumberFormatDirective: NumberFormatDirective;
|
|
21
21
|
MaskDirective: MaskDirective;
|
|
22
|
+
multipleRef: any;
|
|
22
23
|
hazardousRef: any;
|
|
23
24
|
dropdownOptionsRef: any;
|
|
24
25
|
dispatchesRef: any;
|
|
@@ -31,6 +32,10 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
31
32
|
dispatcherRef: any;
|
|
32
33
|
truckRef: any;
|
|
33
34
|
trailerRef: any;
|
|
35
|
+
stateRef: any;
|
|
36
|
+
ownerRef: any;
|
|
37
|
+
fuelcardRef: any;
|
|
38
|
+
selectedOwnerRef: any;
|
|
34
39
|
selectedHazardousRef: any;
|
|
35
40
|
selectedDispatchRef: any;
|
|
36
41
|
selectedLabelRef: any;
|
|
@@ -41,6 +46,8 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
41
46
|
selectedDispatcherRef: any;
|
|
42
47
|
selectedTruckRef: any;
|
|
43
48
|
selectedTrailerRef: any;
|
|
49
|
+
selectedStateRef: any;
|
|
50
|
+
selectedFuelcardRef: any;
|
|
44
51
|
/**
|
|
45
52
|
* Defines the unique identifier for the input element.
|
|
46
53
|
* It is provided by the parent component as an Angular `input()` signal.
|
|
@@ -57,8 +64,8 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
57
64
|
- `reveal`: For password inputs, the number of characters to reveal from the end.
|
|
58
65
|
- `icon`: Name of an icon to display (e.g., `'cai-email'`).
|
|
59
66
|
- `iconColor`: Color of the displayed icon (e.g., `'#FF0000'`).
|
|
60
|
-
- `dropdown`: If `true`, the input is associated with a dropdown menu, can also have `'dispatch'`, `'ftl-dispatch'`, `'broker'`, `'contact'`, `'shipper'`, `'dispatcher'`, `'truck'`, `'trailer'`, `'bank'`, `'label'`, or `'subcontent'` variants.
|
|
61
|
-
- `options`: An array of options for the dropdown can be of type `DropdownOption[]` | `LabelOption[]` | `DispatchBoard[]` | `Broker[]` | `DepartmentContactsPair[]` | `Shipper[]` | `Bank[]` | `Dispatcher[]`.
|
|
67
|
+
- `dropdown`: If `true`, the input is associated with a dropdown menu, can also have `'dispatch'`, `'ftl-dispatch'`, `'broker'`, `'contact'`, `'shipper'`, `'dispatcher'`, `'truck'`, `'trailer'`, `'bank'`, `'label'`, `'state'`, `'owner'`, `'fuelcard'`, or `'subcontent'` variants.
|
|
68
|
+
- `options`: An array of options for the dropdown can be of type `DropdownOption[]` | `LabelOption[]` | `DispatchBoard[]` | `Broker[]` | `DepartmentContactsPair[]` | `Shipper[]` | `Bank[]` | `Dispatcher[]` | `TruckOption[]` | `TrailerOption[]` | `Hazardous[]` | `State[]` | `Owner[]` | `FuelCard[]`.
|
|
62
69
|
- `labelColors`: An array of label colors for the label picker.
|
|
63
70
|
- `search`: Enables search within the dropdown.
|
|
64
71
|
- `add`: Enables 'add new' functionality in the dropdown.
|
|
@@ -119,6 +126,18 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
119
126
|
* A signal that holds the currently selected option from the dropdown.
|
|
120
127
|
*/
|
|
121
128
|
selectedOption: import("@angular/core").WritableSignal<DropdownOptions | null>;
|
|
129
|
+
/**
|
|
130
|
+
* A signal that holds the currently selected options from the dropdown.
|
|
131
|
+
*/
|
|
132
|
+
multipleSelectedOptions: import("@angular/core").WritableSignal<DropdownOptions[]>;
|
|
133
|
+
/**
|
|
134
|
+
* A signal that indicates whether the input is focused.
|
|
135
|
+
*/
|
|
136
|
+
focused: import("@angular/core").WritableSignal<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* A signal that indicates whether the input is hovered.
|
|
139
|
+
*/
|
|
140
|
+
hovered: import("@angular/core").WritableSignal<boolean>;
|
|
122
141
|
/**
|
|
123
142
|
* A signal that indicates whether a new option is being added.
|
|
124
143
|
*/
|
|
@@ -216,7 +235,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
216
235
|
/**
|
|
217
236
|
* Writes a new value to the element. (ControlValueAccessor)
|
|
218
237
|
*/
|
|
219
|
-
writeValue(value:
|
|
238
|
+
writeValue(value: any): void;
|
|
220
239
|
/**
|
|
221
240
|
* Increments the value of a number input by the current step.
|
|
222
241
|
*/
|
|
@@ -250,6 +269,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
250
269
|
* Called when the input element loses focus (blur event).
|
|
251
270
|
*/
|
|
252
271
|
onBlur(): void;
|
|
272
|
+
toggleHovered(value: boolean): void;
|
|
253
273
|
/**
|
|
254
274
|
* Resets the input field's value to an empty string.
|
|
255
275
|
*/
|
|
@@ -275,6 +295,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
275
295
|
* @param event - The MouseEvent that initiated the selection action.
|
|
276
296
|
*/
|
|
277
297
|
handleOption(option: DropdownOptions, event?: MouseEvent): void;
|
|
298
|
+
isSelectedOption(option: DropdownOptions): boolean;
|
|
278
299
|
/**
|
|
279
300
|
* Adds a new option to the dropdown.
|
|
280
301
|
* @param option - The option to add.
|
|
@@ -303,6 +324,9 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
303
324
|
castAsTruckOption(value: unknown): TruckType | null;
|
|
304
325
|
castAsTrailerOption(value: unknown): TrailerType | null;
|
|
305
326
|
castAsHazardous(value: unknown): Hazardous | null;
|
|
327
|
+
castAsState(value: unknown): State | null;
|
|
328
|
+
castAsOwner(value: unknown): Owner | null;
|
|
329
|
+
castAsFuelCard(value: unknown): FuelCard | null;
|
|
306
330
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }, null]>;
|
|
307
331
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "cai-input", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "labelColors": { "alias": "labelColors"; "required": false; "isSignal": true; }; "preselectedUnit": { "alias": "preselectedUnit"; "required": false; "isSignal": true; }; }, { "onOptionAdded": "onOptionAdded"; "onAdd": "onAdd"; "onSelectionChange": "onSelectionChange"; "onClear": "onClear"; }, never, never, true, never>;
|
|
308
332
|
}
|
|
@@ -201,3 +201,24 @@ export type Hazardous = {
|
|
|
201
201
|
notes?: string;
|
|
202
202
|
logoName?: string;
|
|
203
203
|
};
|
|
204
|
+
export type State = {
|
|
205
|
+
id?: number;
|
|
206
|
+
countryType?: {
|
|
207
|
+
name: string;
|
|
208
|
+
id: number;
|
|
209
|
+
};
|
|
210
|
+
stateShortName?: string;
|
|
211
|
+
stateName?: string;
|
|
212
|
+
counter?: number | null;
|
|
213
|
+
};
|
|
214
|
+
export type Owner = {
|
|
215
|
+
id?: number;
|
|
216
|
+
name?: string | null;
|
|
217
|
+
ein?: string | null;
|
|
218
|
+
};
|
|
219
|
+
export type FuelCard = {
|
|
220
|
+
id?: number;
|
|
221
|
+
number?: string | null;
|
|
222
|
+
brand?: string | null;
|
|
223
|
+
account?: string | null;
|
|
224
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bank, Broker, Contact, DepartmentContactsPair, Dispatch, DispatchBoard, Dispatcher, DropdownOption, LabelOption, Shipper, TrailerOption, TruckOption, Hazardous } from './dropdown.model';
|
|
1
|
+
import { Bank, Broker, Contact, DepartmentContactsPair, Dispatch, DispatchBoard, Dispatcher, DropdownOption, LabelOption, Shipper, TrailerOption, TruckOption, Hazardous, State, Owner, FuelCard } from './dropdown.model';
|
|
2
2
|
export interface CaiInputConfig {
|
|
3
3
|
type?: 'text' | 'password' | 'number' | 'account';
|
|
4
4
|
name?: string;
|
|
@@ -40,8 +40,8 @@ export type CustomError = {
|
|
|
40
40
|
name: string;
|
|
41
41
|
message: string | null;
|
|
42
42
|
};
|
|
43
|
-
export declare const DropdownTypes: readonly ["dispatch", "ftl-dispatch", "label", "broker", "contact", "shipper", "bank", "dispatcher", "truck", "trailer", "subcontent", "hazardous"];
|
|
43
|
+
export declare const DropdownTypes: readonly ["multiple", "dispatch", "ftl-dispatch", "label", "broker", "contact", "shipper", "bank", "dispatcher", "truck", "trailer", "subcontent", "hazardous", "state", "owner", "fuelcard"];
|
|
44
44
|
export type DropdownType = (typeof DropdownTypes)[number];
|
|
45
|
-
export type DropdownArrays = DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[] | Dispatch[] | Bank[] | Dispatcher[] | TruckOption[] | TrailerOption[] | Hazardous[];
|
|
46
|
-
export type DropdownOptions = DropdownOption | LabelOption | Broker | Contact | Shipper | Dispatch | Bank | Dispatcher | TruckOption | TrailerOption | Hazardous;
|
|
47
|
-
export type DropdownKeys = DropdownOption[keyof DropdownOption] | LabelOption[keyof LabelOption] | Dispatch[keyof Dispatch] | Broker[keyof Broker] | Contact[keyof Contact] | Shipper[keyof Shipper] | Bank[keyof Bank] | Dispatcher[keyof Dispatcher] | TruckOption[keyof TruckOption] | TrailerOption[keyof TrailerOption] | Hazardous[keyof Hazardous];
|
|
45
|
+
export type DropdownArrays = DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[] | Dispatch[] | Bank[] | Dispatcher[] | TruckOption[] | TrailerOption[] | Hazardous[] | State[] | Owner[] | FuelCard[];
|
|
46
|
+
export type DropdownOptions = DropdownOption | LabelOption | Broker | Contact | Shipper | Dispatch | Bank | Dispatcher | TruckOption | TrailerOption | Hazardous | State | Owner | FuelCard;
|
|
47
|
+
export type DropdownKeys = DropdownOption[keyof DropdownOption] | LabelOption[keyof LabelOption] | Dispatch[keyof Dispatch] | Broker[keyof Broker] | Contact[keyof Contact] | Shipper[keyof Shipper] | Bank[keyof Bank] | Dispatcher[keyof Dispatcher] | TruckOption[keyof TruckOption] | TrailerOption[keyof TrailerOption] | Hazardous[keyof Hazardous] | State[keyof State] | Owner[keyof Owner] | FuelCard[keyof FuelCard];
|