carriera-intern-components 1.1.31 → 1.1.33

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.
@@ -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 | 160>;
17
+ size: import("@angular/core").InputSignal<22 | 18 | 32 | 74 | 160>;
18
18
  /**
19
19
  * Whether the avatar should be rounded or not.
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 { Bank, Broker, CaiInputConfig, Contact, Dispatcher, DropdownOption, LabelColor, LabelOption, Shipper, Dispatch, DropdownArrays, DropdownOptions, TruckType, TrailerType, Hazardous, State, Owner, FuelCard, PMOption, MakeOption, ColorOption, TollOption, TollTransponderOption, FuelStopStore, Franchise, DropdownGroups, Provider } from './models';
7
+ import { Bank, Broker, CaiInputConfig, Contact, Dispatcher, DropdownOption, LabelColor, LabelOption, Shipper, Dispatch, DropdownArrays, DropdownOptions, TruckType, TrailerType, Hazardous, State, Owner, FuelCard, PMOption, MakeOption, ColorOption, TollOption, TollTransponderOption, FuelStopStore, Franchise, DropdownGroups, Provider, SplitTruck, SplitDriver, SplitTrailer, SplitTrailerBoard, SplitDriverBoard, SplitTruckBoard } 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.
@@ -42,6 +42,9 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
42
42
  providerRef: any;
43
43
  pmRef: any;
44
44
  selectedPmRef: any;
45
+ splitDriverRef: any;
46
+ splitTruckRef: any;
47
+ splitTrailerRef: any;
45
48
  selectedOwnerRef: any;
46
49
  selectedHazardousRef: any;
47
50
  selectedDispatchRef: any;
@@ -59,6 +62,9 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
59
62
  selectedMakeRef: any;
60
63
  selectedTollRef: any;
61
64
  selectedProviderRef: any;
65
+ selectedSplitDriverRef: any;
66
+ selectedSplitTruckRef: any;
67
+ selectedSplitTrailerRef: any;
62
68
  /**
63
69
  * Defines the unique identifier for the input element.
64
70
  * It is provided by the parent component as an Angular `input()` signal.
@@ -384,6 +390,12 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
384
390
  castAsFuelStopStore(value: unknown): FuelStopStore | null;
385
391
  castAsFranchise(value: unknown): Franchise | null;
386
392
  castAsProvider(value: unknown): Provider | null;
393
+ castAsSplitDriver(value: unknown): SplitDriver | null;
394
+ castAsSplitTruck(value: unknown): SplitTruck | null;
395
+ castAsSplitTrailer(value: unknown): SplitTrailer | null;
396
+ castAsSplitDriverBoard(value: unknown): SplitDriverBoard | null;
397
+ castAsSplitTruckBoard(value: unknown): SplitTruckBoard | null;
398
+ castAsSplitTrailerBoard(value: unknown): SplitTrailerBoard | null;
387
399
  /**
388
400
  * Handles infinite scroll event when dropdown is scrolled to bottom
389
401
  * Emits an event that parent components can listen to for loading more data
@@ -271,3 +271,60 @@ export type Provider = {
271
271
  id: number;
272
272
  name: string;
273
273
  };
274
+ export type SplitDriver = {
275
+ id: number;
276
+ firstName: string;
277
+ lastName: string;
278
+ owner?: any | null;
279
+ avatarFile?: AvatarFile | null;
280
+ colorFlag?: ColorFlag | null;
281
+ status?: number;
282
+ pendingLoadsCount?: number;
283
+ dispatchStatus?: Status | null;
284
+ payType?: {
285
+ name: string;
286
+ id: number;
287
+ };
288
+ payTypeValue?: string;
289
+ [key: string]: any;
290
+ };
291
+ export type SplitDriverBoard = {
292
+ id: number;
293
+ dispatcherName: string | null;
294
+ isTeamBoard: boolean;
295
+ drivers?: SplitDriver[];
296
+ };
297
+ export type SplitTruck = {
298
+ id: number;
299
+ truckNumber: string;
300
+ truckType: TruckType;
301
+ color?: TruckColor | null;
302
+ status?: number;
303
+ pendingLoadsCount?: number;
304
+ dispatchStatus?: Status | null;
305
+ location?: Address | null;
306
+ [key: string]: any;
307
+ };
308
+ export type SplitTruckBoard = {
309
+ id: number;
310
+ dispatcherName: string | null;
311
+ isTeamBoard: boolean;
312
+ trucks?: SplitTruck[];
313
+ };
314
+ export type SplitTrailer = {
315
+ id: number;
316
+ trailerNumber: string;
317
+ trailerType: TrailerType;
318
+ color?: TruckColor | null;
319
+ status?: number;
320
+ pendingLoadsCount?: number;
321
+ dispatchStatus?: Status | null;
322
+ location?: Address | null;
323
+ [key: string]: any;
324
+ };
325
+ export type SplitTrailerBoard = {
326
+ id: number;
327
+ dispatcherName: string | null;
328
+ isTeamBoard: boolean;
329
+ trailers?: SplitTrailer[];
330
+ };
@@ -1,4 +1,4 @@
1
- import { Bank, Broker, Contact, DepartmentContactsPair, Dispatch, DispatchBoard, Dispatcher, DropdownOption, LabelOption, Shipper, TrailerOption, TruckOption, Hazardous, State, Owner, FuelCard, PMOption, ColorOption, MakeOption, TollOption, TollTransponderOption, Franchise, FuelStopStore, Provider } from './dropdown.model';
1
+ import { Bank, Broker, Contact, DepartmentContactsPair, Dispatch, DispatchBoard, Dispatcher, DropdownOption, LabelOption, Shipper, TrailerOption, TruckOption, Hazardous, State, Owner, FuelCard, PMOption, ColorOption, MakeOption, TollOption, TollTransponderOption, Franchise, FuelStopStore, Provider, SplitDriverBoard, SplitTruckBoard, SplitTrailerBoard, SplitDriver, SplitTruck, SplitTrailer } from './dropdown.model';
2
2
  export interface CaiInputConfig {
3
3
  type?: 'text' | 'password' | 'number' | 'account';
4
4
  name?: string;
@@ -55,10 +55,10 @@ export type CustomError = {
55
55
  name: string;
56
56
  message: string | null;
57
57
  };
58
- export declare const DropdownTypes: readonly ["multiple", "dispatch", "ftl-dispatch", "label", "broker", "contact", "shipper", "bank", "dispatcher", "truck", "trailer", "subcontent", "hazardous", "state", "owner", "fuelcard", "pm", "color", "make", "toll", "fuel-stop-transaction", "provider"];
58
+ export declare const DropdownTypes: readonly ["multiple", "dispatch", "ftl-dispatch", "label", "broker", "contact", "shipper", "bank", "dispatcher", "truck", "trailer", "subcontent", "hazardous", "state", "owner", "fuelcard", "pm", "color", "make", "toll", "fuel-stop-transaction", "provider", "split-driver", "split-truck", "split-trailer"];
59
59
  export declare const sizes: readonly [22, 26];
60
60
  export type DropdownType = (typeof DropdownTypes)[number];
61
- export type DropdownArrays = DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[] | Dispatch[] | Bank[] | Dispatcher[] | TruckOption[] | TrailerOption[] | Hazardous[] | State[] | Owner[] | FuelCard[] | PMOption[] | ColorOption[] | MakeOption[] | TollOption[] | Franchise[] | Provider[];
62
- export type DropdownOptions = DropdownOption | LabelOption | Broker | Contact | Shipper | Dispatch | Bank | Dispatcher | TruckOption | TrailerOption | Hazardous | State | Owner | FuelCard | PMOption | ColorOption | MakeOption | TollTransponderOption | FuelStopStore | Provider;
63
- 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] | PMOption[keyof PMOption] | ColorOption[keyof ColorOption] | MakeOption[keyof MakeOption] | TollTransponderOption[keyof TollTransponderOption] | FuelStopStore[keyof FuelStopStore] | Provider[keyof Provider];
61
+ export type DropdownArrays = DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[] | Dispatch[] | Bank[] | Dispatcher[] | TruckOption[] | TrailerOption[] | Hazardous[] | State[] | Owner[] | FuelCard[] | PMOption[] | ColorOption[] | MakeOption[] | TollOption[] | Franchise[] | Provider[] | SplitDriverBoard[] | SplitTruckBoard[] | SplitTrailerBoard[];
62
+ export type DropdownOptions = DropdownOption | LabelOption | Broker | Contact | Shipper | Dispatch | Bank | Dispatcher | TruckOption | TrailerOption | Hazardous | State | Owner | FuelCard | PMOption | ColorOption | MakeOption | TollTransponderOption | FuelStopStore | Provider | SplitDriver | SplitTruck | SplitTrailer;
63
+ 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] | PMOption[keyof PMOption] | ColorOption[keyof ColorOption] | MakeOption[keyof MakeOption] | TollTransponderOption[keyof TollTransponderOption] | FuelStopStore[keyof FuelStopStore] | Provider[keyof Provider] | SplitDriver[keyof SplitDriver] | SplitTruck[keyof SplitTruck] | SplitTrailer[keyof SplitTrailer];
64
64
  export type DropdownGroups = Franchise;
@@ -84,7 +84,7 @@ export declare class ReviewModalComponent implements OnInit, OnChanges {
84
84
  onDeleteReview(id: number): void;
85
85
  onCheckPersonal(): void;
86
86
  onSelectFilter(type: FilterType): void;
87
- onCancelFilter(event: any, type: FilterType): void;
87
+ onCancelFilter(event: MouseEvent, type: FilterType): void;
88
88
  static ɵfac: i0.ɵɵFactoryDeclaration<ReviewModalComponent, never>;
89
89
  static ɵcmp: i0.ɵɵComponentDeclaration<ReviewModalComponent, "cai-review-modal", never, { "ratingReviews": { "alias": "ratingReviews"; "required": false; }; "modaltype": { "alias": "modaltype"; "required": false; }; "titleInput": { "alias": "titleInput"; "required": false; }; }, { "reviewDeleted": "reviewDeleted"; }, never, never, true, never>;
90
90
  }
@@ -0,0 +1 @@
1
+ export * from './interval-dropdown-option.interface';
@@ -0,0 +1,8 @@
1
+ export interface IIntervalDropdownOption {
2
+ id: number;
3
+ name: string;
4
+ value: string;
5
+ custom?: boolean;
6
+ startDate?: string;
7
+ endDate?: string;
8
+ }
@@ -0,0 +1,31 @@
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
+ import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
3
+ import { IIntervalDropdownOption } from './interfaces';
4
+ import { UntypedFormGroup } from '@angular/forms';
5
+ import * as i0 from "@angular/core";
6
+ export declare class IntervalDropdownComponent implements AfterViewInit {
7
+ dropdown: NgbPopover;
8
+ containerRef: ElementRef<HTMLDivElement>;
9
+ containerWidth: import("@angular/core").WritableSignal<number>;
10
+ selectedOption: import("@angular/core").InputSignal<IIntervalDropdownOption | null>;
11
+ options: import("@angular/core").InputSignal<IIntervalDropdownOption[]>;
12
+ companyDays: import("@angular/core").InputSignal<number | null>;
13
+ custom: import("@angular/core").WritableSignal<boolean>;
14
+ open: import("@angular/core").WritableSignal<boolean>;
15
+ onClose: import("@angular/core").OutputEmitterRef<void>;
16
+ onOpen: import("@angular/core").OutputEmitterRef<void>;
17
+ onSelectionChange: import("@angular/core").OutputEmitterRef<IIntervalDropdownOption>;
18
+ form: UntypedFormGroup;
19
+ private updateContainerWidth;
20
+ ngAfterViewInit(): void;
21
+ handleOpenDropdown(): void;
22
+ handleCloseDropdown(): void;
23
+ handleClick(): void;
24
+ closeDropdown(): void;
25
+ openDropdown(): void;
26
+ handleOption(event: MouseEvent, option: IIntervalDropdownOption): void;
27
+ handleClearAll(event: MouseEvent): void;
28
+ handleSet(event: MouseEvent): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<IntervalDropdownComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<IntervalDropdownComponent, "cai-interval-dropdown", never, { "selectedOption": { "alias": "selectedOption"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "companyDays": { "alias": "companyDays"; "required": false; "isSignal": true; }; }, { "onClose": "onClose"; "onOpen": "onOpen"; "onSelectionChange": "onSelectionChange"; }, never, never, true, never>;
31
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { CaiDateTimeConfig } from '../../input-datetime-picker/interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DropdownFilterInputConfigPipe implements PipeTransform {
5
+ transform({ configType }: {
6
+ configType: string;
7
+ }): CaiDateTimeConfig;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownFilterInputConfigPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<DropdownFilterInputConfigPipe, "dropdownFilterInputConfig", true>;
10
+ }
@@ -0,0 +1,26 @@
1
+ import { UntypedFormGroup } from '@angular/forms';
2
+ export declare class IntervalDropdownHelper {
3
+ private static notInFutureValidator;
4
+ private static companyStartValidators;
5
+ static createFormGroup(companyDays: number | null): UntypedFormGroup;
6
+ /**
7
+ * Cleanup method to prevent memory leaks
8
+ * Call this when the form group is no longer needed
9
+ */
10
+ static destroyFormGroup(formGroup: UntypedFormGroup): void;
11
+ /**
12
+ * Get or create cached not-in-future validator
13
+ */
14
+ private static getOrCreateNotInFutureValidator;
15
+ /**
16
+ * Get or create cached company start validator
17
+ */
18
+ private static getOrCreateNotBeforeCompanyStartValidator;
19
+ /**
20
+ * Clear validator cache (useful for testing or memory management)
21
+ */
22
+ static clearValidatorCache(): void;
23
+ private static createNotBeforeCompanyStartValidator;
24
+ private static createNotInFutureValidator;
25
+ private static createToNotBeforeFromValidator;
26
+ }
@@ -13,6 +13,6 @@ export declare const INPUT_CHARACTER_SETS: {
13
13
  readonly EMAIL_SPECIAL: readonly ["@", ".", "-", "_", "+"];
14
14
  readonly EMAIL_CHARACTERS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "." | "@" | "+" | "-" | "_")[];
15
15
  readonly SPECIAL_EXCEPT_NAME_FRIENDLY: ("*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
16
- readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "1" | "2" | "3" | "*" | "4" | "5" | "6" | "7" | "8" | "9" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
16
+ readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
17
17
  readonly SPECIAL: ("*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
18
18
  };