carriera-intern-components 1.1.32 → 1.1.34

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.
@@ -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.
@@ -224,6 +230,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
224
230
  onScrolledToBottom: import("@angular/core").OutputEmitterRef<void>;
225
231
  onScrolledToBottomGroup: import("@angular/core").OutputEmitterRef<void>;
226
232
  onSearch: import("@angular/core").OutputEmitterRef<string>;
233
+ onValueAdded: import("@angular/core").OutputEmitterRef<string | number | null>;
227
234
  /**
228
235
  * Constructor for the InputComponent.
229
236
  * It injects NgControl to integrate with Angular's forms API.
@@ -384,6 +391,12 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
384
391
  castAsFuelStopStore(value: unknown): FuelStopStore | null;
385
392
  castAsFranchise(value: unknown): Franchise | null;
386
393
  castAsProvider(value: unknown): Provider | null;
394
+ castAsSplitDriver(value: unknown): SplitDriver | null;
395
+ castAsSplitTruck(value: unknown): SplitTruck | null;
396
+ castAsSplitTrailer(value: unknown): SplitTrailer | null;
397
+ castAsSplitDriverBoard(value: unknown): SplitDriverBoard | null;
398
+ castAsSplitTruckBoard(value: unknown): SplitTruckBoard | null;
399
+ castAsSplitTrailerBoard(value: unknown): SplitTrailerBoard | null;
387
400
  /**
388
401
  * Handles infinite scroll event when dropdown is scrolled to bottom
389
402
  * Emits an event that parent components can listen to for loading more data
@@ -392,5 +405,5 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
392
405
  onDropdownBackgroundClick(event: MouseEvent): void;
393
406
  onDropdownIconClick(event: MouseEvent): void;
394
407
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }, null]>;
395
- 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; }; "preselectedOptions": { "alias": "preselectedOptions"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "labelColors": { "alias": "labelColors"; "required": false; "isSignal": true; }; "hideValidation": { "alias": "hideValidation"; "required": false; "isSignal": true; }; "showNoResults": { "alias": "showNoResults"; "required": false; "isSignal": true; }; "preselectedUnit": { "alias": "preselectedUnit"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocused": "onFocused"; "onValueChange": "onValueChange"; "onOptionAdded": "onOptionAdded"; "onAdd": "onAdd"; "onSelectionChange": "onSelectionChange"; "onSelectedObject": "onSelectedObject"; "onSelectedGroup": "onSelectedGroup"; "onClear": "onClear"; "onAutofill": "onAutofill"; "onScrolledToBottom": "onScrolledToBottom"; "onScrolledToBottomGroup": "onScrolledToBottomGroup"; "onSearch": "onSearch"; }, never, never, true, never>;
408
+ 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; }; "preselectedOptions": { "alias": "preselectedOptions"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "labelColors": { "alias": "labelColors"; "required": false; "isSignal": true; }; "hideValidation": { "alias": "hideValidation"; "required": false; "isSignal": true; }; "showNoResults": { "alias": "showNoResults"; "required": false; "isSignal": true; }; "preselectedUnit": { "alias": "preselectedUnit"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocused": "onFocused"; "onValueChange": "onValueChange"; "onOptionAdded": "onOptionAdded"; "onAdd": "onAdd"; "onSelectionChange": "onSelectionChange"; "onSelectedObject": "onSelectedObject"; "onSelectedGroup": "onSelectedGroup"; "onClear": "onClear"; "onAutofill": "onAutofill"; "onScrolledToBottom": "onScrolledToBottom"; "onScrolledToBottomGroup": "onScrolledToBottomGroup"; "onSearch": "onSearch"; "onValueAdded": "onValueAdded"; }, never, never, true, never>;
396
409
  }
@@ -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;
@@ -21,6 +21,7 @@ export interface CaiInputConfig {
21
21
  textColor?: 'positive';
22
22
  isAddress?: boolean;
23
23
  isEdit?: boolean;
24
+ writeAddValue?: boolean;
24
25
  placeholderBehavior?: 'dynamic' | 'fade' | 'static' | 'hidden';
25
26
  errorBehavior?: 'dynamic' | 'static' | 'floating' | 'hidden';
26
27
  label?: string;
@@ -55,10 +56,10 @@ export type CustomError = {
55
56
  name: string;
56
57
  message: string | null;
57
58
  };
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"];
59
+ 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
60
  export declare const sizes: readonly [22, 26];
60
61
  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];
62
+ 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[];
63
+ 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;
64
+ 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
65
  export type DropdownGroups = Franchise;
@@ -11,8 +11,8 @@ export declare const INPUT_CHARACTER_SETS: {
11
11
  readonly ALPHANUMERIC: ("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")[];
12
12
  readonly ALPHANUMERIC_WITH_SPACES: string[];
13
13
  readonly EMAIL_SPECIAL: readonly ["@", ".", "-", "_", "+"];
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" | "@" | "+" | "-" | "_")[];
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
  };