carriera-intern-components 0.0.92 → 0.0.93
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/document-preview/document-preview.component.d.ts +41 -7
- package/app/components/drop-zone/drop-zone.component.d.ts +6 -0
- package/app/components/input/input.component.d.ts +21 -6
- package/fesm2022/carriera-intern-components.mjs +152 -45
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public/assets/icons/general/cai-money-additional.svg +3 -0
- package/public/assets/json/icons.json +31 -28
- /package/public/assets/icons/{cai-arrow-primary-up.svg → arrows/cai-arrow-primary-up.svg} +0 -0
- /package/public/assets/icons/{cai-arrow-secondary-down.svg → arrows/cai-arrow-secondary-down.svg} +0 -0
- /package/public/assets/icons/{cai-arrow-secondary-left.svg → arrows/cai-arrow-secondary-left.svg} +0 -0
- /package/public/assets/icons/{cai-arrow-secondary-right.svg → arrows/cai-arrow-secondary-right.svg} +0 -0
- /package/public/assets/icons/{cai-checkmark.svg → general/cai-checkmark.svg} +0 -0
- /package/public/assets/icons/{cai-date.svg → general/cai-date.svg} +0 -0
- /package/public/assets/icons/{cai-email.svg → general/cai-email.svg} +0 -0
- /package/public/assets/icons/{cai-label.svg → general/cai-label.svg} +0 -0
- /package/public/assets/icons/{cai-money.svg → general/cai-money.svg} +0 -0
- /package/public/assets/icons/{cai-phone.svg → general/cai-phone.svg} +0 -0
- /package/public/assets/icons/{cai-sort-by.svg → general/cai-sort-by.svg} +0 -0
- /package/public/assets/icons/{cai-cancel.svg → interaction/cai-cancel.svg} +0 -0
- /package/public/assets/icons/{cai-dislike.svg → interaction/cai-dislike.svg} +0 -0
- /package/public/assets/icons/{cai-like.svg → interaction/cai-like.svg} +0 -0
- /package/public/assets/icons/{cai-minus.svg → interaction/cai-minus.svg} +0 -0
- /package/public/assets/icons/{cai-password-hidden.svg → interaction/cai-password-hidden.svg} +0 -0
- /package/public/assets/icons/{cai-password-key.svg → interaction/cai-password-key.svg} +0 -0
- /package/public/assets/icons/{cai-password-shown.svg → interaction/cai-password-shown.svg} +0 -0
- /package/public/assets/icons/{cai-plus.svg → interaction/cai-plus.svg} +0 -0
- /package/public/assets/icons/{cai-driver.svg → load/cai-driver.svg} +0 -0
- /package/public/assets/icons/{cai-load.svg → load/cai-load.svg} +0 -0
- /package/public/assets/icons/{cai-ltl-single.svg → load/cai-ltl-single.svg} +0 -0
- /package/public/assets/icons/{cai-delete.svg → menu/cai-delete.svg} +0 -0
- /package/public/assets/icons/{cai-download.svg → menu/cai-download.svg} +0 -0
- /package/public/assets/icons/{cai-reset.svg → menu/cai-reset.svg} +0 -0
- /package/public/assets/icons/{cai-status-warning-lite.svg → status/cai-status-warning-lite.svg} +0 -0
- /package/public/assets/icons/{cai-status-warning.svg → status/cai-status-warning.svg} +0 -0
|
@@ -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}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { AppFile } from '../../models/appFile.model';
|
|
2
|
-
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* This component displays a preview of a document, including its name, size,
|
|
6
5
|
* and provides actions to delete, download, and tag the document.
|
|
7
6
|
*/
|
|
8
7
|
export declare class DocumentPreviewComponent {
|
|
8
|
+
/**
|
|
9
|
+
* Signal that controls whether the delete modal is visible.Used to confirm the file deletion.
|
|
10
|
+
*/
|
|
9
11
|
showDeleteModal: import("@angular/core").WritableSignal<boolean>;
|
|
10
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Boolean flag indicating whether the tag popover is visible.Used to apply conditional styling or behavior.
|
|
14
|
+
*/
|
|
15
|
+
showTag: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Currently selected tag for the document.
|
|
18
|
+
*/
|
|
19
|
+
selectedTag: string;
|
|
11
20
|
/**
|
|
12
21
|
* The application file to be displayed in the preview. This is a required input.
|
|
13
22
|
* @type {InputSignal<AppFile>}
|
|
@@ -33,26 +42,51 @@ export declare class DocumentPreviewComponent {
|
|
|
33
42
|
* Handles the delete action. Emits the `fileName` of the current `file` via the `onDelete` output.
|
|
34
43
|
*/
|
|
35
44
|
handleDelete(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Cancels the delete operation and hides the confirmation modal.
|
|
47
|
+
*/
|
|
36
48
|
cancelDelete(): void;
|
|
49
|
+
/**
|
|
50
|
+
* Confirms the deletion and emits the `onDelete` event.
|
|
51
|
+
*/
|
|
37
52
|
confirmDelete(): void;
|
|
38
53
|
/**
|
|
39
54
|
* Handles the download action. Emits the `fileName` of the current `file` via the `onDownload` output.
|
|
40
55
|
*/
|
|
41
56
|
handleDownload(): void;
|
|
42
57
|
/**
|
|
43
|
-
*
|
|
44
|
-
|
|
58
|
+
* Callback triggered when the tag popover is shown. Used to update internal state.
|
|
59
|
+
*/
|
|
60
|
+
onTagShown(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Callback triggered when the tag popover is hidden. Used to update internal state.
|
|
63
|
+
*/
|
|
64
|
+
onTagHidden(): void;
|
|
65
|
+
/**
|
|
66
|
+
* List of available tags for labeling the document. These are selectable within the tag popover.
|
|
45
67
|
*/
|
|
46
|
-
handleTag(popover: NgbPopover): void;
|
|
47
68
|
tags: string[];
|
|
48
|
-
|
|
49
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Emits when a tag is selected or removed for the file.
|
|
71
|
+
* Contains the file name and the selected tag.
|
|
72
|
+
* @type {OutputEmitterRef<{ fileName: string; tag: string }>}
|
|
73
|
+
*/
|
|
50
74
|
onTagChange: import("@angular/core").OutputEmitterRef<{
|
|
51
75
|
fileName: string;
|
|
52
76
|
tag: string;
|
|
53
77
|
}>;
|
|
78
|
+
/**
|
|
79
|
+
* Selects a tag and emits the `onTagChange` output.
|
|
80
|
+
* @param newTag The newly selected tag string.
|
|
81
|
+
*/
|
|
54
82
|
getTag(newTag: string): void;
|
|
83
|
+
/**
|
|
84
|
+
* Removes the currently selected tag. Does not emit an event — must be called manually.
|
|
85
|
+
*/
|
|
55
86
|
removeTag(): void;
|
|
87
|
+
/**
|
|
88
|
+
* Placeholder for handling document sharing. Currently logs the file name to the console.
|
|
89
|
+
*/
|
|
56
90
|
handleShare(): void;
|
|
57
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentPreviewComponent, never>;
|
|
58
92
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "file": { "alias": "file"; "required": true; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": true; "isSignal": true; }; }, { "onDelete": "onDelete"; "onDownload": "onDownload"; "onTagChange": "onTagChange"; }, never, never, true, never>;
|
|
@@ -18,6 +18,8 @@ export declare class DropZoneComponent {
|
|
|
18
18
|
croppedImage: SafeUrl | null;
|
|
19
19
|
showCropper: import("@angular/core").WritableSignal<boolean>;
|
|
20
20
|
isCropperReady: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
originalImageWidth: number;
|
|
22
|
+
originalImageHeight: number;
|
|
21
23
|
coverUrl: string;
|
|
22
24
|
profileUrl: string;
|
|
23
25
|
logoUrl: string;
|
|
@@ -26,12 +28,16 @@ export declare class DropZoneComponent {
|
|
|
26
28
|
cropHeight: import("@angular/core").WritableSignal<number>;
|
|
27
29
|
cropWidth: import("@angular/core").WritableSignal<number>;
|
|
28
30
|
driver: import("@angular/core").WritableSignal<Driver>;
|
|
31
|
+
inputRange: ElementRef<HTMLInputElement>;
|
|
29
32
|
constructor(sanitizer: DomSanitizer);
|
|
30
33
|
ngOnInit(): void;
|
|
34
|
+
ngAfterViewInit(): void;
|
|
31
35
|
updateRangeBackground(input: HTMLInputElement): void;
|
|
32
36
|
cropDimensions(): void;
|
|
33
37
|
ratioHelper(): number;
|
|
34
38
|
onZoomChange(event: Event): void;
|
|
39
|
+
onTransformChange(event: ImageTransform): void;
|
|
40
|
+
getLimitedTransform(transform: ImageTransform): ImageTransform;
|
|
35
41
|
fileChangeEvent(event: Event): void;
|
|
36
42
|
imageCropped(event: ImageCroppedEvent): void;
|
|
37
43
|
imageLoaded(image: LoadedImage): void;
|
|
@@ -8,10 +8,7 @@ import { Broker, CaiInputConfig, Contact, DepartmentContactsPair, DropdownOption
|
|
|
8
8
|
import { Dispatch, DispatchBoard } from './models';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* various input types, including text, password (with reveal functionality),
|
|
13
|
-
* and numbers (with formatting and step controls). It also provides error
|
|
14
|
-
* message display and icon support.
|
|
11
|
+
* This component is a generic input component that can be used to create various types of inputs.
|
|
15
12
|
*/
|
|
16
13
|
export declare class InputComponent implements ControlValueAccessor {
|
|
17
14
|
ngControl: NgControl | null;
|
|
@@ -52,7 +49,7 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
52
49
|
/**
|
|
53
50
|
* Input property to hold the dropdown options.
|
|
54
51
|
*/
|
|
55
|
-
options: import("@angular/core").InputSignal<
|
|
52
|
+
options: import("@angular/core").InputSignal<DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[] | Dispatch[]>;
|
|
56
53
|
/**
|
|
57
54
|
* Input property to hold the label colors for the label picker.
|
|
58
55
|
*/
|
|
@@ -72,7 +69,7 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
72
69
|
/**
|
|
73
70
|
* A signal that holds the locally added options.
|
|
74
71
|
*/
|
|
75
|
-
localOptions: import("@angular/core").WritableSignal<
|
|
72
|
+
localOptions: import("@angular/core").WritableSignal<DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[] | Dispatch[]>;
|
|
76
73
|
/**
|
|
77
74
|
* A signal that holds the currently selected option from the dropdown.
|
|
78
75
|
* @type {Signal<DropdownOption | null>}
|
|
@@ -82,13 +79,31 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
82
79
|
* A signal that indicates whether a new option is being added.
|
|
83
80
|
*/
|
|
84
81
|
isAdding: import("@angular/core").WritableSignal<boolean>;
|
|
82
|
+
/**
|
|
83
|
+
* A signal that holds the currently selected label from the label picker.
|
|
84
|
+
*/
|
|
85
85
|
selectedLabel: import("@angular/core").WritableSignal<LabelOption | null>;
|
|
86
|
+
/**
|
|
87
|
+
* A signal that holds the currently selected color from the label picker.
|
|
88
|
+
*/
|
|
86
89
|
selectedColor: import("@angular/core").WritableSignal<LabelColor>;
|
|
87
90
|
isPickingColor: import("@angular/core").WritableSignal<boolean>;
|
|
91
|
+
/**
|
|
92
|
+
* A signal that holds the currently selected dispatch board from the dispatch board picker.
|
|
93
|
+
*/
|
|
88
94
|
selectedDispatch: import("@angular/core").WritableSignal<Dispatch | null>;
|
|
89
95
|
foldedBoards: import("@angular/core").WritableSignal<number[]>;
|
|
96
|
+
/**
|
|
97
|
+
* A signal that holds the currently selected broker from the broker picker.
|
|
98
|
+
*/
|
|
90
99
|
selectedBroker: import("@angular/core").WritableSignal<Broker | null>;
|
|
100
|
+
/**
|
|
101
|
+
* A signal that holds the currently selected contact from the contact picker.
|
|
102
|
+
*/
|
|
91
103
|
selectedContact: import("@angular/core").WritableSignal<Contact | null>;
|
|
104
|
+
/**
|
|
105
|
+
* A signal that holds the currently selected shipper from the shipper picker.
|
|
106
|
+
*/
|
|
92
107
|
selectedShipper: import("@angular/core").WritableSignal<Shipper | null>;
|
|
93
108
|
/**
|
|
94
109
|
* A computed signal that indicates whether the placeholder selected option should be shown.
|