carriera-intern-components 1.1.0 → 1.1.11
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/document-preview/document-preview.component.d.ts +5 -4
- package/app/components/input/input.component.d.ts +22 -3
- package/app/components/input/models/input.model.d.ts +1 -1
- package/app/components/pm/pm.component.d.ts +59 -0
- package/app/models/pm.model.d.ts +5 -0
- package/fesm2022/carriera-intern-components.mjs +204 -23
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AppFile } from '../../models/appFile.model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* This component displays a preview of a document, including its name, size,
|
|
6
6
|
* and provides actions to delete, download, and tag the document.
|
|
7
7
|
*/
|
|
8
|
-
export declare class DocumentPreviewComponent implements OnChanges {
|
|
9
|
-
|
|
8
|
+
export declare class DocumentPreviewComponent implements OnChanges, OnInit {
|
|
9
|
+
coverMinimalMode: boolean;
|
|
10
10
|
isCrop: import("@angular/core").WritableSignal<boolean>;
|
|
11
11
|
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
12
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
13
14
|
/**
|
|
14
15
|
* Signal that controls whether the delete modal is visible.Used to confirm the file deletion.
|
|
@@ -94,5 +95,5 @@ export declare class DocumentPreviewComponent implements OnChanges {
|
|
|
94
95
|
*/
|
|
95
96
|
handleShare(): void;
|
|
96
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentPreviewComponent, never>;
|
|
97
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "coverMinimalMode": { "alias": "coverMinimalMode"; "required": false; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": true; "isSignal": true; }; }, { "onDelete": "onDelete"; "onDownload": "onDownload"; "onTagChange": "onTagChange"; }, never, never, true, never>;
|
|
98
99
|
}
|
|
@@ -19,6 +19,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
19
19
|
PasswordDirective: PasswordDirective;
|
|
20
20
|
NumberFormatDirective: NumberFormatDirective;
|
|
21
21
|
MaskDirective: MaskDirective;
|
|
22
|
+
multipleRef: any;
|
|
22
23
|
hazardousRef: any;
|
|
23
24
|
dropdownOptionsRef: any;
|
|
24
25
|
dispatchesRef: any;
|
|
@@ -125,6 +126,18 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
125
126
|
* A signal that holds the currently selected option from the dropdown.
|
|
126
127
|
*/
|
|
127
128
|
selectedOption: import("@angular/core").WritableSignal<DropdownOptions | null>;
|
|
129
|
+
/**
|
|
130
|
+
* A signal that holds the currently selected options from the dropdown.
|
|
131
|
+
*/
|
|
132
|
+
multipleSelectedOptions: import("@angular/core").WritableSignal<DropdownOptions[]>;
|
|
133
|
+
/**
|
|
134
|
+
* A signal that indicates whether the input is focused.
|
|
135
|
+
*/
|
|
136
|
+
focused: import("@angular/core").WritableSignal<boolean>;
|
|
137
|
+
/**
|
|
138
|
+
* A signal that indicates whether the input is hovered.
|
|
139
|
+
*/
|
|
140
|
+
hovered: import("@angular/core").WritableSignal<boolean>;
|
|
128
141
|
/**
|
|
129
142
|
* A signal that indicates whether a new option is being added.
|
|
130
143
|
*/
|
|
@@ -168,6 +181,10 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
168
181
|
* An output signal that emits when the user clicks on the "CLEAR" button.
|
|
169
182
|
*/
|
|
170
183
|
onClear: import("@angular/core").OutputEmitterRef<void>;
|
|
184
|
+
/**
|
|
185
|
+
* An output signal that emits when the user clicks on the "AUTOFILL" button.
|
|
186
|
+
*/
|
|
187
|
+
onAutofill: import("@angular/core").OutputEmitterRef<void>;
|
|
171
188
|
/**
|
|
172
189
|
* Constructor for the InputComponent.
|
|
173
190
|
* It injects NgControl to integrate with Angular's forms API.
|
|
@@ -181,7 +198,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
181
198
|
* Handles autofill detection from Chrome's autofill animation.
|
|
182
199
|
* Marks the control as autofilled and updates validity.
|
|
183
200
|
*/
|
|
184
|
-
|
|
201
|
+
onAutofilled(): void;
|
|
185
202
|
/**
|
|
186
203
|
* Clears the autofill flag when user manually edits the field.
|
|
187
204
|
* Re-enables normal validation.
|
|
@@ -222,7 +239,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
222
239
|
/**
|
|
223
240
|
* Writes a new value to the element. (ControlValueAccessor)
|
|
224
241
|
*/
|
|
225
|
-
writeValue(value:
|
|
242
|
+
writeValue(value: any): void;
|
|
226
243
|
/**
|
|
227
244
|
* Increments the value of a number input by the current step.
|
|
228
245
|
*/
|
|
@@ -256,6 +273,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
256
273
|
* Called when the input element loses focus (blur event).
|
|
257
274
|
*/
|
|
258
275
|
onBlur(): void;
|
|
276
|
+
toggleHovered(value: boolean): void;
|
|
259
277
|
/**
|
|
260
278
|
* Resets the input field's value to an empty string.
|
|
261
279
|
*/
|
|
@@ -281,6 +299,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
281
299
|
* @param event - The MouseEvent that initiated the selection action.
|
|
282
300
|
*/
|
|
283
301
|
handleOption(option: DropdownOptions, event?: MouseEvent): void;
|
|
302
|
+
isSelectedOption(option: DropdownOptions): boolean;
|
|
284
303
|
/**
|
|
285
304
|
* Adds a new option to the dropdown.
|
|
286
305
|
* @param option - The option to add.
|
|
@@ -313,5 +332,5 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
313
332
|
castAsOwner(value: unknown): Owner | null;
|
|
314
333
|
castAsFuelCard(value: unknown): FuelCard | null;
|
|
315
334
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }, null]>;
|
|
316
|
-
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"; }, never, never, true, never>;
|
|
335
|
+
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>;
|
|
317
336
|
}
|
|
@@ -40,7 +40,7 @@ export type CustomError = {
|
|
|
40
40
|
name: string;
|
|
41
41
|
message: string | null;
|
|
42
42
|
};
|
|
43
|
-
export declare const DropdownTypes: readonly ["dispatch", "ftl-dispatch", "label", "broker", "contact", "shipper", "bank", "dispatcher", "truck", "trailer", "subcontent", "hazardous", "state", "owner", "fuelcard"];
|
|
43
|
+
export declare const DropdownTypes: readonly ["multiple", "dispatch", "ftl-dispatch", "label", "broker", "contact", "shipper", "bank", "dispatcher", "truck", "trailer", "subcontent", "hazardous", "state", "owner", "fuelcard"];
|
|
44
44
|
export type DropdownType = (typeof DropdownTypes)[number];
|
|
45
45
|
export type DropdownArrays = DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[] | Dispatch[] | Bank[] | Dispatcher[] | TruckOption[] | TrailerOption[] | Hazardous[] | State[] | Owner[] | FuelCard[];
|
|
46
46
|
export type DropdownOptions = DropdownOption | LabelOption | Broker | Contact | Shipper | Dispatch | Bank | Dispatcher | TruckOption | TrailerOption | Hazardous | State | Owner | FuelCard;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { PmItem } from '../../models/pm.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PmComponent {
|
|
6
|
+
/**
|
|
7
|
+
* List of PM items passed from the parent component.
|
|
8
|
+
* Used to render all available PM options.
|
|
9
|
+
*/
|
|
10
|
+
items: PmItem[];
|
|
11
|
+
/**
|
|
12
|
+
* Event emitted when the "Add new" button is clicked.
|
|
13
|
+
* The parent component can listen to this and perform appropriate actions.
|
|
14
|
+
*/
|
|
15
|
+
onAdd: EventEmitter<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Boolean signal indicating whether the PM popover is currently visible.
|
|
18
|
+
* Used to apply conditional styling or behavior when the popover is shown or hidden.
|
|
19
|
+
*/
|
|
20
|
+
showPmPopover: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* The currently selected PM item.
|
|
23
|
+
* Used to track and display the selected item's title and logo.
|
|
24
|
+
*/
|
|
25
|
+
selectedPmItem: PmItem;
|
|
26
|
+
/**
|
|
27
|
+
* Called when the "Add new" button is clicked.
|
|
28
|
+
* Emits the `onAdd` event to notify the parent component.
|
|
29
|
+
*/
|
|
30
|
+
onAddItem(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Opens the tooltip when hovering over a PM item.
|
|
33
|
+
*/
|
|
34
|
+
onShowTooltip(tooltip: NgbTooltip): void;
|
|
35
|
+
/**
|
|
36
|
+
* Closes the tooltip when the mouse leaves a PM item.
|
|
37
|
+
*/
|
|
38
|
+
onHideTooltip(tooltip: NgbTooltip): void;
|
|
39
|
+
/**
|
|
40
|
+
* Called when the PM popover becomes visible.
|
|
41
|
+
*/
|
|
42
|
+
onPmShown(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Called when the PM popover is hidden.
|
|
45
|
+
*/
|
|
46
|
+
onPmHidden(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Called when a PM item is clicked.
|
|
49
|
+
* Sets the `selectedPmItem` with the clicked item's data.
|
|
50
|
+
*/
|
|
51
|
+
onPmItemClick(item: PmItem): void;
|
|
52
|
+
/**
|
|
53
|
+
* Clears the selected PM item.
|
|
54
|
+
* Resets id, title and logoName.
|
|
55
|
+
*/
|
|
56
|
+
onClear(): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PmComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PmComponent, "cai-pm", never, { "items": { "alias": "items"; "required": false; }; }, { "onAdd": "onAdd"; }, never, never, true, never>;
|
|
59
|
+
}
|