carriera-intern-components 1.1.193 → 1.1.195
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/directives/number-format.directive.d.ts +6 -1
- package/app/components/input/input.component.d.ts +9 -3
- package/app/components/input/models/dropdown.model.d.ts +15 -0
- package/app/components/input/models/input.model.d.ts +7 -5
- package/app/components/input/pipes/filter-by-search.pipe.d.ts +1 -1
- package/app/utils/constants/input-character-sets.constants.d.ts +4 -4
- package/fesm2022/carriera-intern-components.mjs +117 -11
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -16,6 +16,11 @@ export declare class NumberFormatDirective implements OnInit {
|
|
|
16
16
|
* Defaults to true, meaning formatting is active by default.
|
|
17
17
|
*/
|
|
18
18
|
isNumberFormattingDisabled: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* Input property to enable or disable the number formatting.
|
|
21
|
+
* Defaults to true, meaning formatting is active by default.
|
|
22
|
+
*/
|
|
23
|
+
disableDecimals: import("@angular/core").InputSignal<boolean>;
|
|
19
24
|
prefix: import("@angular/core").InputSignal<string>;
|
|
20
25
|
/**
|
|
21
26
|
* Stores the unformatted, "real" numeric value of the input.
|
|
@@ -111,5 +116,5 @@ export declare class NumberFormatDirective implements OnInit {
|
|
|
111
116
|
*/
|
|
112
117
|
setRealValue(value: string): void;
|
|
113
118
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberFormatDirective, never>;
|
|
114
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NumberFormatDirective, "[appNumberFormat]", never, { "appNumberFormat": { "alias": "appNumberFormat"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "isNumberFormattingDisabled": { "alias": "isNumberFormattingDisabled"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
119
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NumberFormatDirective, "[appNumberFormat]", never, { "appNumberFormat": { "alias": "appNumberFormat"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "isNumberFormattingDisabled": { "alias": "isNumberFormattingDisabled"; "required": false; "isSignal": true; }; "disableDecimals": { "alias": "disableDecimals"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
115
120
|
}
|
|
@@ -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 } 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 } 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.
|
|
@@ -38,6 +38,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
38
38
|
colorRef: any;
|
|
39
39
|
makeRef: any;
|
|
40
40
|
tollRef: any;
|
|
41
|
+
fuelStopTransactionRef: any;
|
|
41
42
|
pmRef: any;
|
|
42
43
|
selectedPmRef: any;
|
|
43
44
|
selectedOwnerRef: any;
|
|
@@ -123,6 +124,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
123
124
|
* Preselected dropdown option
|
|
124
125
|
*/
|
|
125
126
|
preselectedUnit: import("@angular/core").InputSignal<string | null>;
|
|
127
|
+
openGroup: import("@angular/core").WritableSignal<number | null>;
|
|
126
128
|
closing: import("@angular/core").WritableSignal<boolean>;
|
|
127
129
|
/**
|
|
128
130
|
* Internal signal to track the disabled state of the input.
|
|
@@ -203,6 +205,8 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
203
205
|
* An output signal that emits the `optionValue` or `id` of the changed dropdown option.
|
|
204
206
|
*/
|
|
205
207
|
onSelectionChange: import("@angular/core").OutputEmitterRef<any>;
|
|
208
|
+
onSelectedObject: import("@angular/core").OutputEmitterRef<DropdownOptions | null>;
|
|
209
|
+
onSelectedGroup: import("@angular/core").OutputEmitterRef<Franchise | null>;
|
|
206
210
|
/**
|
|
207
211
|
* An output signal that emits when the user clicks on the "CLEAR" button.
|
|
208
212
|
*/
|
|
@@ -343,7 +347,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
343
347
|
* @param event - The MouseEvent that initiated the action.
|
|
344
348
|
*/
|
|
345
349
|
handleAddingOption(event?: MouseEvent): void;
|
|
346
|
-
fold(boardId: number, event: MouseEvent): void;
|
|
350
|
+
fold(boardId: number, event: MouseEvent, group?: DropdownGroups): void;
|
|
347
351
|
handleSelectColor(color: LabelColor, event?: MouseEvent): void;
|
|
348
352
|
getBrokerProgress(broker: Broker, disable?: boolean): {
|
|
349
353
|
activePercentageOfPaid: number;
|
|
@@ -368,6 +372,8 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
368
372
|
castAsMake(value: unknown): MakeOption | null;
|
|
369
373
|
castAsTollOption(value: unknown): TollOption | null;
|
|
370
374
|
castAsTollTransponderOption(value: unknown): TollTransponderOption | null;
|
|
375
|
+
castAsFuelStopStore(value: unknown): FuelStopStore | null;
|
|
376
|
+
castAsFranchise(value: unknown): Franchise | null;
|
|
371
377
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }, null]>;
|
|
372
|
-
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; }; "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"; "onClear": "onClear"; "onAutofill": "onAutofill"; }, never, never, true, never>;
|
|
378
|
+
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; }; "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"; }, never, never, true, never>;
|
|
373
379
|
}
|
|
@@ -249,3 +249,18 @@ export type TollTransponderOption = {
|
|
|
249
249
|
name?: string | null;
|
|
250
250
|
id?: number;
|
|
251
251
|
};
|
|
252
|
+
export type Franchise = {
|
|
253
|
+
id: number;
|
|
254
|
+
businessName: string;
|
|
255
|
+
count: number;
|
|
256
|
+
fuelStopStores: FuelStopStore[];
|
|
257
|
+
[key: string]: any;
|
|
258
|
+
};
|
|
259
|
+
export type FuelStopStore = {
|
|
260
|
+
id: number;
|
|
261
|
+
companyId: number;
|
|
262
|
+
businessName: string;
|
|
263
|
+
store: string;
|
|
264
|
+
address: Address;
|
|
265
|
+
[key: string]: any;
|
|
266
|
+
};
|
|
@@ -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 } 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 } from './dropdown.model';
|
|
2
2
|
export interface CaiInputConfig {
|
|
3
3
|
type?: 'text' | 'password' | 'number' | 'account';
|
|
4
4
|
name?: string;
|
|
@@ -27,6 +27,7 @@ export interface CaiInputConfig {
|
|
|
27
27
|
min?: number;
|
|
28
28
|
max?: number;
|
|
29
29
|
step?: number | 'automatic';
|
|
30
|
+
disableDecimals?: boolean;
|
|
30
31
|
prefix?: string;
|
|
31
32
|
withButtons?: boolean;
|
|
32
33
|
autocomplete?: string;
|
|
@@ -49,8 +50,9 @@ export type CustomError = {
|
|
|
49
50
|
name: string;
|
|
50
51
|
message: string | null;
|
|
51
52
|
};
|
|
52
|
-
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"];
|
|
53
|
+
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"];
|
|
53
54
|
export type DropdownType = (typeof DropdownTypes)[number];
|
|
54
|
-
export type DropdownArrays = DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[] | Dispatch[] | Bank[] | Dispatcher[] | TruckOption[] | TrailerOption[] | Hazardous[] | State[] | Owner[] | FuelCard[] | PMOption[] | ColorOption[] | MakeOption[] | TollOption[];
|
|
55
|
-
export type DropdownOptions = DropdownOption | LabelOption | Broker | Contact | Shipper | Dispatch | Bank | Dispatcher | TruckOption | TrailerOption | Hazardous | State | Owner | FuelCard | PMOption | ColorOption | MakeOption | TollTransponderOption;
|
|
56
|
-
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];
|
|
55
|
+
export type DropdownArrays = DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[] | Dispatch[] | Bank[] | Dispatcher[] | TruckOption[] | TrailerOption[] | Hazardous[] | State[] | Owner[] | FuelCard[] | PMOption[] | ColorOption[] | MakeOption[] | TollOption[] | Franchise[];
|
|
56
|
+
export type DropdownOptions = DropdownOption | LabelOption | Broker | Contact | Shipper | Dispatch | Bank | Dispatcher | TruckOption | TrailerOption | Hazardous | State | Owner | FuelCard | PMOption | ColorOption | MakeOption | TollTransponderOption | FuelStopStore;
|
|
57
|
+
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];
|
|
58
|
+
export type DropdownGroups = Franchise;
|
|
@@ -3,7 +3,7 @@ import { CaiInputConfig, DropdownArrays } 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: DropdownArrays, value: string | undefined | null, type: CaiInputConfig['dropdown'], shouldSearch?: boolean, foldedBoards?: number[], label?: string): any[];
|
|
6
|
+
transform(options: DropdownArrays, value: string | undefined | null, type: CaiInputConfig['dropdown'], shouldSearch?: boolean, foldedBoards?: number[], label?: string, openGroup?: number | null): any[];
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterBySearchPipe, never>;
|
|
8
8
|
static ɵpipe: i0.ɵɵPipeDeclaration<FilterBySearchPipe, "filterBySearch", true>;
|
|
9
9
|
}
|
|
@@ -10,8 +10,8 @@ export declare const INPUT_CHARACTER_SETS: {
|
|
|
10
10
|
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")[];
|
|
11
11
|
readonly ALPHANUMERIC_WITH_SPACES: string[];
|
|
12
12
|
readonly EMAIL_SPECIAL: readonly ["@", ".", "-", "_", "+"];
|
|
13
|
-
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 SPECIAL_EXCEPT_NAME_FRIENDLY: ("." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "
|
|
15
|
-
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
16
|
-
readonly SPECIAL: ("." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "
|
|
13
|
+
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 SPECIAL_EXCEPT_NAME_FRIENDLY: ("." | "*" | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
15
|
+
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "." | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "*" | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
16
|
+
readonly SPECIAL: ("." | "*" | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
17
17
|
};
|