carriera-intern-components 1.1.11 → 1.1.12
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/input/input.component.d.ts +7 -4
- package/app/components/input/models/dropdown.model.d.ts +6 -0
- package/app/components/input/models/input.model.d.ts +6 -5
- package/app/components/input/pipes/remap-pm-icons.pipe.d.ts +7 -0
- package/fesm2022/carriera-intern-components.mjs +79 -17
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public/assets/json/icons.json +3 -3
|
@@ -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}
|
|
@@ -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 } from './models';
|
|
7
|
+
import { Bank, Broker, CaiInputConfig, Contact, Dispatcher, DropdownOption, LabelColor, LabelOption, Shipper, Dispatch, DropdownArrays, DropdownOptions, TruckType, TrailerType, Hazardous, State, Owner, FuelCard, PMOption } 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.
|
|
@@ -35,6 +35,8 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
35
35
|
stateRef: any;
|
|
36
36
|
ownerRef: any;
|
|
37
37
|
fuelcardRef: any;
|
|
38
|
+
pmRef: any;
|
|
39
|
+
selectedPmRef: any;
|
|
38
40
|
selectedOwnerRef: any;
|
|
39
41
|
selectedHazardousRef: any;
|
|
40
42
|
selectedDispatchRef: any;
|
|
@@ -64,8 +66,8 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
64
66
|
- `reveal`: For password inputs, the number of characters to reveal from the end.
|
|
65
67
|
- `icon`: Name of an icon to display (e.g., `'cai-email'`).
|
|
66
68
|
- `iconColor`: Color of the displayed icon (e.g., `'#FF0000'`).
|
|
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[]`.
|
|
69
|
+
- `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'`, `'pm'`, or `'subcontent'` variants.
|
|
70
|
+
- `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[]` | `PMOption[]`.
|
|
69
71
|
- `labelColors`: An array of label colors for the label picker.
|
|
70
72
|
- `search`: Enables search within the dropdown.
|
|
71
73
|
- `add`: Enables 'add new' functionality in the dropdown.
|
|
@@ -168,7 +170,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
168
170
|
/**
|
|
169
171
|
* An output signal that emits the value of the added option.
|
|
170
172
|
*/
|
|
171
|
-
onOptionAdded: import("@angular/core").OutputEmitterRef<
|
|
173
|
+
onOptionAdded: import("@angular/core").OutputEmitterRef<string | LabelOption>;
|
|
172
174
|
/**
|
|
173
175
|
* An output signal that emits when the user clicks on the "ADD NEW" button in the dropdown.
|
|
174
176
|
*/
|
|
@@ -331,6 +333,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
331
333
|
castAsState(value: unknown): State | null;
|
|
332
334
|
castAsOwner(value: unknown): Owner | null;
|
|
333
335
|
castAsFuelCard(value: unknown): FuelCard | null;
|
|
336
|
+
castAsPMOption(value: unknown): PMOption | null;
|
|
334
337
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }, null]>;
|
|
335
338
|
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"; "onAutofill": "onAutofill"; }, never, never, true, never>;
|
|
336
339
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bank, Broker, Contact, DepartmentContactsPair, Dispatch, DispatchBoard, Dispatcher, DropdownOption, LabelOption, Shipper, TrailerOption, TruckOption, Hazardous, State, Owner, FuelCard } from './dropdown.model';
|
|
1
|
+
import { Bank, Broker, Contact, DepartmentContactsPair, Dispatch, DispatchBoard, Dispatcher, DropdownOption, LabelOption, Shipper, TrailerOption, TruckOption, Hazardous, State, Owner, FuelCard, PMOption } from './dropdown.model';
|
|
2
2
|
export interface CaiInputConfig {
|
|
3
3
|
type?: 'text' | 'password' | 'number' | 'account';
|
|
4
4
|
name?: string;
|
|
@@ -30,6 +30,7 @@ export interface CaiInputConfig {
|
|
|
30
30
|
disabled?: boolean;
|
|
31
31
|
passwordRequirements?: boolean;
|
|
32
32
|
canOpenModal?: boolean;
|
|
33
|
+
noSeparator?: boolean;
|
|
33
34
|
optionValue?: string;
|
|
34
35
|
optionLabel?: string;
|
|
35
36
|
removable?: boolean;
|
|
@@ -40,8 +41,8 @@ export type CustomError = {
|
|
|
40
41
|
name: string;
|
|
41
42
|
message: string | null;
|
|
42
43
|
};
|
|
43
|
-
export declare const DropdownTypes: readonly ["multiple", "dispatch", "ftl-dispatch", "label", "broker", "contact", "shipper", "bank", "dispatcher", "truck", "trailer", "subcontent", "hazardous", "state", "owner", "fuelcard"];
|
|
44
|
+
export declare const DropdownTypes: readonly ["multiple", "dispatch", "ftl-dispatch", "label", "broker", "contact", "shipper", "bank", "dispatcher", "truck", "trailer", "subcontent", "hazardous", "state", "owner", "fuelcard", "pm"];
|
|
44
45
|
export type DropdownType = (typeof DropdownTypes)[number];
|
|
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];
|
|
46
|
+
export type DropdownArrays = DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[] | Dispatch[] | Bank[] | Dispatcher[] | TruckOption[] | TrailerOption[] | Hazardous[] | State[] | Owner[] | FuelCard[] | PMOption[];
|
|
47
|
+
export type DropdownOptions = DropdownOption | LabelOption | Broker | Contact | Shipper | Dispatch | Bank | Dispatcher | TruckOption | TrailerOption | Hazardous | State | Owner | FuelCard | PMOption;
|
|
48
|
+
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];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RemapPmIconsPipe implements PipeTransform {
|
|
4
|
+
transform(pm: string | null | undefined): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RemapPmIconsPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RemapPmIconsPipe, "remapPmIcons", true>;
|
|
7
|
+
}
|