carriera-intern-components 1.1.32 → 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.
- package/app/components/input/input.component.d.ts +13 -1
- package/app/components/input/models/dropdown.model.d.ts +57 -0
- package/app/components/input/models/input.model.d.ts +5 -5
- package/app/utils/constants/input-character-sets.constants.d.ts +2 -2
- package/fesm2022/carriera-intern-components.mjs +182 -3
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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" | "
|
|
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" | "
|
|
16
|
+
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
17
17
|
readonly SPECIAL: ("*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
18
18
|
};
|