carriera-intern-components 1.1.0 → 1.1.2
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 +2 -2
- package/app/components/avatar/models/avatar.model.d.ts +12 -5
- package/app/components/avatar/pipes/initials.pipe.d.ts +5 -1
- package/app/components/copy/copy.component.d.ts +23 -0
- package/app/components/document-preview/document-preview.component.d.ts +19 -9
- package/app/components/document-preview/interfaces/document-tag.interface.d.ts +4 -0
- package/app/components/document-preview/interfaces/index.d.ts +1 -0
- package/app/components/drop-zone/drop-zone.component.d.ts +58 -33
- package/app/components/drop-zone/models/file.response.d.ts +10 -0
- package/app/components/input/directives/helpers/index.d.ts +1 -0
- package/app/components/input/directives/helpers/mask.helper.d.ts +15 -0
- package/app/components/input/directives/mask.directive.d.ts +2 -16
- package/app/components/input/directives/number-format.directive.d.ts +6 -1
- package/app/components/input/directives/password.directive.d.ts +3 -1
- package/app/components/input/input.component.d.ts +86 -9
- package/app/components/input/models/dropdown.model.d.ts +50 -2
- package/app/components/input/models/input.model.d.ts +22 -7
- package/app/components/input/pipes/filter-by-search.pipe.d.ts +1 -1
- package/app/components/input/pipes/remap-pm-icons.pipe.d.ts +7 -0
- package/app/components/input-address/enums/input-address-layers-string.enum.d.ts +4 -0
- package/app/components/input-address/enums/input-address-type-string.enum.d.ts +5 -0
- package/app/components/input-address/input-address.component.d.ts +67 -0
- package/app/components/input-address/models/address-data.model.d.ts +19 -0
- package/app/components/input-address/models/address-list.model.d.ts +6 -0
- package/app/components/input-address/models/long-lat.model.d.ts +4 -0
- package/app/components/input-address/models/sent-address-data.model.d.ts +22 -0
- package/app/components/input-datetime-picker/cai-input-datetime-picker.component.d.ts +106 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/cai-custom-datetime-pickers.component.d.ts +58 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-dates-main/cai-custom-datetime-pickers-calendar-dates-main.component.d.ts +41 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-days/cai-custom-datetime-pickers-calendar-days.component.d.ts +26 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-left/cai-custom-datetime-pickers-calendar-left.component.d.ts +30 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-date-calendars/cai-custom-datetime-pickers-date-calendars.component.d.ts +38 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/config/cai-input.config.d.ts +169 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/config/index.d.ts +1 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-left-string.enum.d.ts +5 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-list-preview-string.enum.d.ts +4 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-main-string.enum.d.ts +5 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-scroll-type-string.enum.d.ts +4 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-string.enum.d.ts +6 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-type-string.enum.d.ts +3 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/config.enum.d.ts +7 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/models/scroll-change.model.d.ts +6 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/models/scroll-type.model.d.ts +8 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/pipes/calendar-months.pipe.d.ts +9 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/services/calendar-datetime-picker.service.d.ts +19 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/strategy/calendar-strategy.d.ts +30 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/utils/constants/custom-datetime-pickers.constants.d.ts +19 -0
- package/app/components/input-datetime-picker/enums/input-config-name-string.enum.d.ts +7 -0
- package/app/components/input-datetime-picker/interfaces/input-datetime.interface.d.ts +8 -0
- package/app/components/pm/pm.component.d.ts +76 -0
- package/app/components/selected-location-field/interfaces/index.d.ts +1 -0
- package/app/components/selected-location-field/interfaces/selected-business-field.interface.d.ts +11 -0
- package/app/components/selected-location-field/selected-business-field.component.d.ts +12 -0
- package/app/directives/infinite-scroll.directive.d.ts +16 -0
- package/app/directives/intersection-observer.directive.d.ts +15 -0
- package/app/enums/alignment.enum.d.ts +4 -0
- package/app/enums/general-actions.enum.d.ts +58 -0
- package/app/enums/index.d.ts +3 -0
- package/app/enums/string-placeholder.enum.d.ts +3 -0
- package/app/models/appFile.model.d.ts +3 -1
- package/app/models/pm.model.d.ts +10 -0
- package/app/utils/constants/index.d.ts +1 -0
- package/app/utils/constants/input-character-sets.constants.d.ts +18 -0
- package/app/utils/index.d.ts +1 -0
- package/fesm2022/carriera-intern-components.mjs +4053 -321
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public/assets/icons/cai-color.svg +3 -0
- package/public/assets/icons/cai-edit.svg +3 -3
- package/public/assets/icons/cai-loader.svg +3 -0
- package/public/assets/icons/fuel-contact/cai-fuel-card.svg +3 -0
- package/public/assets/icons/fuel-contact/cai-user-2.svg +3 -0
- package/public/assets/icons/general/cai-date.svg +1 -1
- package/public/assets/icons/general/cai-fax.svg +5 -0
- package/public/assets/icons/general/cai-website.svg +3 -0
- package/public/assets/icons/integration/cai-efs.svg +4 -0
- package/public/assets/icons/interaction/cai-copy.svg +3 -0
- package/public/assets/icons/interaction/cai-favorite.svg +3 -0
- package/public/assets/icons/interaction/cai_time.svg +3 -0
- package/public/assets/icons/interaction/cai_x.svg +4 -0
- package/public/assets/icons/makes/trailers/ic_trailer_atro.svg +6 -0
- package/public/assets/icons/makes/trailers/ic_trailer_beall.svg +7 -0
- package/public/assets/icons/makes/trailers/ic_trailer_bedard.svg +8 -0
- package/public/assets/icons/makes/trailers/ic_trailer_butler.svg +7 -0
- package/public/assets/icons/makes/trailers/ic_trailer_de_lucio.svg +17 -0
- package/public/assets/icons/makes/trailers/ic_trailer_dorsey.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_east.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_fontaine.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_fruehauf.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_gallegos.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_great_dane.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_heil.svg +6 -0
- package/public/assets/icons/makes/trailers/ic_trailer_hudson.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_hyndai.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_kaufman.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_mac.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_manac.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_polar.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_ravens.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_reitnouer.svg +12 -0
- package/public/assets/icons/makes/trailers/ic_trailer_strick.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_timpte.svg +8 -0
- package/public/assets/icons/makes/trailers/ic_trailer_trail_king.svg +7 -0
- package/public/assets/icons/makes/trailers/ic_trailer_transcraft.svg +12 -0
- package/public/assets/icons/makes/trailers/ic_trailer_tremcar.svg +10 -0
- package/public/assets/icons/makes/trailers/ic_trailer_tytal.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_utility.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_vanguard.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_vantage.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_wabash.svg +3 -0
- package/public/assets/icons/makes/trailers/ic_trailer_walinga.svg +8 -0
- package/public/assets/icons/makes/trailers/ic_trailer_wilson.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_chevrolet.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_ford.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_freightliner.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_gmc.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_hino.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_international.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_isuzu.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_kenworth.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_mack.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_peterbilt.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_volvo.svg +3 -0
- package/public/assets/icons/makes/trucks/ic_truck_western_star.svg +3 -0
- package/public/assets/json/icons.json +223 -3
- package/public/pdfjs/pdf.worker.min.mjs +30 -0
- package/public-api.d.ts +9 -2
- package/src/styles/README.md +57 -0
- package/src/styles/_variables.scss +288 -0
- package/src/styles/cropper.scss +33 -0
- package/src/styles/custompickers.scss +822 -0
- package/src/styles/popover.scss +18 -0
- package/src/styles/review_variables.scss +40 -0
- package/src/styles/tooltip.scss +85 -0
- package/src/styles/utility/colors.scss +265 -0
- package/src/styles/utility/utilities.scss +6 -0
- package/src/styles.scss +28 -0
|
@@ -14,9 +14,9 @@ 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<
|
|
17
|
+
size: import("@angular/core").InputSignal<160 | 22 | 18 | 32 | 74>;
|
|
18
18
|
/**
|
|
19
|
-
* Whether the avatar should be rounded or not
|
|
19
|
+
* Whether the avatar should be rounded or not.
|
|
20
20
|
* @type {boolean}
|
|
21
21
|
*/
|
|
22
22
|
rounded: import("@angular/core").InputSignal<boolean>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export interface Driver {
|
|
2
2
|
id: number;
|
|
3
|
-
firstName
|
|
4
|
-
lastName
|
|
3
|
+
firstName?: string | null;
|
|
4
|
+
lastName?: string | null;
|
|
5
|
+
fullName?: string | null;
|
|
5
6
|
owner?: boolean | null;
|
|
6
7
|
avatarFile?: AvatarFile | null;
|
|
7
|
-
colorFlag?:
|
|
8
|
+
colorFlag?: ColorFlag | null;
|
|
9
|
+
avatarUrl?: string | null;
|
|
10
|
+
avatarColor?: AvatarColor | null;
|
|
8
11
|
[key: string]: any;
|
|
9
12
|
}
|
|
10
13
|
export type AvatarFile = {
|
|
@@ -14,8 +17,12 @@ export type AvatarFile = {
|
|
|
14
17
|
fileSize: number;
|
|
15
18
|
[key: string]: any;
|
|
16
19
|
};
|
|
17
|
-
|
|
20
|
+
export type ColorFlag = {
|
|
21
|
+
id: number;
|
|
22
|
+
name: AvatarColor;
|
|
23
|
+
};
|
|
24
|
+
declare const colors: readonly ["Blue", "Green", "Red", "Yellow", "Purple", "Gold", "Light Green", "Orange", "Light Blue", "Pink", "Brown", "Gray", "Lime", "Navy", "Azure", "Magenta"];
|
|
18
25
|
export type AvatarColor = (typeof colors)[number];
|
|
19
26
|
declare const sizes: readonly [18, 22, 32, 74, 160];
|
|
20
|
-
export type Size = typeof sizes[number];
|
|
27
|
+
export type Size = (typeof sizes)[number];
|
|
21
28
|
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class InitialsPipe implements PipeTransform {
|
|
4
|
-
transform(firstName
|
|
4
|
+
transform({ firstName, lastName, fullName, }: {
|
|
5
|
+
firstName?: string | null;
|
|
6
|
+
lastName?: string | null;
|
|
7
|
+
fullName?: string | null;
|
|
8
|
+
}): string;
|
|
5
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<InitialsPipe, never>;
|
|
6
10
|
static ɵpipe: i0.ɵɵPipeDeclaration<InitialsPipe, "initials", true>;
|
|
7
11
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { eAlignment } from '../../enums';
|
|
2
|
+
import { eGeneralActions } from '../../enums/general-actions.enum';
|
|
3
|
+
import { Clipboard } from '@angular/cdk/clipboard';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CopyComponent {
|
|
6
|
+
private clipboard;
|
|
7
|
+
value: import("@angular/core").InputSignal<string | undefined>;
|
|
8
|
+
alignment: import("@angular/core").InputSignal<eAlignment>;
|
|
9
|
+
copyTooltip: import("@angular/core").InputSignal<string | undefined>;
|
|
10
|
+
copyArea: import("@angular/core").InputSignal<"icon" | "full">;
|
|
11
|
+
icon: import("@angular/core").InputSignal<string | null>;
|
|
12
|
+
iconSize: import("@angular/core").InputSignal<number>;
|
|
13
|
+
iconColor: import("@angular/core").InputSignal<string | null>;
|
|
14
|
+
tooltipClass: import("@angular/core").InputSignal<string | null>;
|
|
15
|
+
copied: import("@angular/core").WritableSignal<boolean>;
|
|
16
|
+
eGeneralActions: typeof eGeneralActions;
|
|
17
|
+
eAlignment: typeof eAlignment;
|
|
18
|
+
constructor(clipboard: Clipboard);
|
|
19
|
+
onCopy(event: MouseEvent): void;
|
|
20
|
+
resetCopied(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CopyComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CopyComponent, "cai-copy", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "copyTooltip": { "alias": "copyTooltip"; "required": false; "isSignal": true; }; "copyArea": { "alias": "copyArea"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconSize": { "alias": "iconSize"; "required": false; "isSignal": true; }; "iconColor": { "alias": "iconColor"; "required": false; "isSignal": true; }; "tooltipClass": { "alias": "tooltipClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
23
|
+
}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AppFile } from '../../models/appFile.model';
|
|
3
|
+
import { FormControl } from '@angular/forms';
|
|
4
|
+
import { DocumentTag } from './interfaces';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
/**
|
|
5
7
|
* This component displays a preview of a document, including its name, size,
|
|
6
8
|
* and provides actions to delete, download, and tag the document.
|
|
7
9
|
*/
|
|
8
|
-
export declare class DocumentPreviewComponent implements OnChanges {
|
|
9
|
-
|
|
10
|
+
export declare class DocumentPreviewComponent implements OnChanges, OnInit {
|
|
11
|
+
coverMinimalMode: boolean;
|
|
10
12
|
isCrop: import("@angular/core").WritableSignal<boolean>;
|
|
11
13
|
constructor();
|
|
14
|
+
ngOnInit(): void;
|
|
12
15
|
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
+
noTagOption: boolean;
|
|
17
|
+
showInput: import("@angular/core").WritableSignal<boolean>;
|
|
18
|
+
inputFormControl: FormControl<any>;
|
|
19
|
+
showFileNameInput(): void;
|
|
20
|
+
hideFileNameInput(): void;
|
|
21
|
+
handleEdit(event: any): void;
|
|
13
22
|
/**
|
|
14
23
|
* Signal that controls whether the delete modal is visible.Used to confirm the file deletion.
|
|
15
24
|
*/
|
|
@@ -21,7 +30,7 @@ export declare class DocumentPreviewComponent implements OnChanges {
|
|
|
21
30
|
/**
|
|
22
31
|
* Currently selected tag for the document.
|
|
23
32
|
*/
|
|
24
|
-
selectedTag:
|
|
33
|
+
selectedTag: DocumentTag | null;
|
|
25
34
|
/**
|
|
26
35
|
* The application file to be displayed in the preview. This is a required input.
|
|
27
36
|
* @type {InputSignal<AppFile>}
|
|
@@ -70,21 +79,22 @@ export declare class DocumentPreviewComponent implements OnChanges {
|
|
|
70
79
|
/**
|
|
71
80
|
* List of available tags for labeling the document. These are selectable within the tag popover.
|
|
72
81
|
*/
|
|
73
|
-
tags:
|
|
82
|
+
tags: import("@angular/core").InputSignal<DocumentTag[]>;
|
|
74
83
|
/**
|
|
75
84
|
* Emits when a tag is selected or removed for the file.
|
|
76
85
|
* Contains the file name and the selected tag.
|
|
77
|
-
* @type {OutputEmitterRef<{ fileName: string; tag:
|
|
86
|
+
* @type {OutputEmitterRef<{ fileName: string; tag: DocumentTag }>}
|
|
78
87
|
*/
|
|
79
88
|
onTagChange: import("@angular/core").OutputEmitterRef<{
|
|
80
89
|
fileName: string;
|
|
81
|
-
tag:
|
|
90
|
+
tag: DocumentTag;
|
|
82
91
|
}>;
|
|
83
92
|
/**
|
|
84
93
|
* Selects a tag and emits the `onTagChange` output.
|
|
85
94
|
* @param newTag The newly selected tag string.
|
|
86
95
|
*/
|
|
87
|
-
getTag(newTag:
|
|
96
|
+
getTag(newTag: DocumentTag): void;
|
|
97
|
+
initTag(): void;
|
|
88
98
|
/**
|
|
89
99
|
* Removes the currently selected tag. Does not emit an event — must be called manually.
|
|
90
100
|
*/
|
|
@@ -94,5 +104,5 @@ export declare class DocumentPreviewComponent implements OnChanges {
|
|
|
94
104
|
*/
|
|
95
105
|
handleShare(): void;
|
|
96
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentPreviewComponent, never>;
|
|
97
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "coverMinimalMode": { "alias": "coverMinimalMode"; "required": false; }; "noTagOption": { "alias": "noTagOption"; "required": false; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": true; "isSignal": true; }; "tags": { "alias": "tags"; "required": false; "isSignal": true; }; }, { "onDelete": "onDelete"; "onDownload": "onDownload"; "onTagChange": "onTagChange"; }, never, never, true, never>;
|
|
98
108
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './document-tag.interface';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { AppFile } from '../../models/appFile.model';
|
|
3
3
|
import { ImageCroppedEvent, LoadedImage, ImageTransform } from 'ngx-image-cropper';
|
|
4
4
|
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
|
|
5
5
|
import { Driver } from '../avatar/models';
|
|
6
|
+
import { FileResponse } from './models/file.response';
|
|
7
|
+
import { FormGroup } from '@angular/forms';
|
|
8
|
+
import { DocumentTag } from '../document-preview/interfaces';
|
|
6
9
|
import * as i0 from "@angular/core";
|
|
7
10
|
/**
|
|
8
11
|
* A component that provides a user interface for file uploading via
|
|
@@ -12,39 +15,40 @@ import * as i0 from "@angular/core";
|
|
|
12
15
|
export declare class DropZoneComponent {
|
|
13
16
|
private sanitizer;
|
|
14
17
|
zoomValue: import("@angular/core").WritableSignal<number>;
|
|
18
|
+
smallView: import("@angular/core").WritableSignal<boolean>;
|
|
19
|
+
cropHeight: import("@angular/core").WritableSignal<number>;
|
|
20
|
+
cropWidth: import("@angular/core").WritableSignal<number>;
|
|
21
|
+
private initialFilesProcessed;
|
|
22
|
+
driver: import("@angular/core").WritableSignal<Driver>;
|
|
15
23
|
transform: ImageTransform;
|
|
16
|
-
crop: import("@angular/core").InputSignal<boolean>;
|
|
17
24
|
imageChangedEvent: Event | null;
|
|
18
25
|
croppedImage: SafeUrl | null;
|
|
19
26
|
showCropper: import("@angular/core").WritableSignal<boolean>;
|
|
20
27
|
isCropperReady: import("@angular/core").WritableSignal<boolean>;
|
|
21
28
|
originalImageWidth: number;
|
|
22
29
|
originalImageHeight: number;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
logoUrl: string;
|
|
30
|
+
base64Image: string;
|
|
31
|
+
deletedDocs: import("@angular/core").WritableSignal<number[]>;
|
|
32
|
+
crop: import("@angular/core").InputSignal<boolean>;
|
|
27
33
|
size: import("@angular/core").InputSignal<string | undefined>;
|
|
28
34
|
rounded: import("@angular/core").InputSignal<boolean>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
cancelCrop(): void;
|
|
47
|
-
submitCrop(): void;
|
|
35
|
+
files: import("@angular/core").InputSignal<FileResponse[]>;
|
|
36
|
+
deletedFileIds: import("@angular/core").InputSignal<number[]>;
|
|
37
|
+
maxCountFiles: import("@angular/core").InputSignal<number>;
|
|
38
|
+
/**
|
|
39
|
+
* A input that holds an FormGroup object that is used to update the form validity when the crop mode is closed.
|
|
40
|
+
*/
|
|
41
|
+
parentForm: import("@angular/core").InputSignal<FormGroup<any> | null>;
|
|
42
|
+
/**
|
|
43
|
+
* A signal that holds an array of `AppFile` objects representing the files
|
|
44
|
+
* that have been selected or dropped by the user.
|
|
45
|
+
|
|
46
|
+
*/
|
|
47
|
+
variant: import("@angular/core").InputSignal<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Input that holds an array of `DocumentTag` objects representing the tags for the documents.
|
|
50
|
+
*/
|
|
51
|
+
documentTags: import("@angular/core").InputSignal<DocumentTag[]>;
|
|
48
52
|
/**
|
|
49
53
|
* Injects the DocumentService for file processing tasks like
|
|
50
54
|
* thumbnail generation and PDF page counting.
|
|
@@ -66,6 +70,31 @@ export declare class DropZoneComponent {
|
|
|
66
70
|
* @type {FileExtension[]}
|
|
67
71
|
*/
|
|
68
72
|
fileTypes: import("@angular/core").InputSignal<("mp4" | "mov" | "avi" | "pdf" | "jpg" | "jpeg" | "png" | "gif")[]>;
|
|
73
|
+
coverUrl: string;
|
|
74
|
+
profileUrl: string;
|
|
75
|
+
logoUrl: string;
|
|
76
|
+
onDeletedFileIds: EventEmitter<number[]>;
|
|
77
|
+
docsChange: EventEmitter<AppFile[]>;
|
|
78
|
+
inputRange: ElementRef<HTMLInputElement>;
|
|
79
|
+
constructor(sanitizer: DomSanitizer);
|
|
80
|
+
ngOnInit(): void;
|
|
81
|
+
ngAfterViewInit(): void;
|
|
82
|
+
emitDocs(): void;
|
|
83
|
+
getTagIds(tags: string[]): number[];
|
|
84
|
+
populateDocs(currentFiles: FileResponse[] | AppFile[]): Promise<void>;
|
|
85
|
+
fetchFileAsFile(fileResponse: FileResponse): Promise<File | null>;
|
|
86
|
+
updateRangeBackground(input: HTMLInputElement): void;
|
|
87
|
+
cropDimensions(): void;
|
|
88
|
+
ratioHelper(): number;
|
|
89
|
+
onZoomChange(event: Event): void;
|
|
90
|
+
fileChangeEvent(event: Event): void;
|
|
91
|
+
imageCropped(event: ImageCroppedEvent): void;
|
|
92
|
+
imageLoaded(image: LoadedImage): void;
|
|
93
|
+
cropperReady(): void;
|
|
94
|
+
loadImageFailed(): void;
|
|
95
|
+
onTransformChange(event: ImageTransform): void;
|
|
96
|
+
cancelCrop(): void;
|
|
97
|
+
submitCrop(initial?: boolean): void;
|
|
69
98
|
/**
|
|
70
99
|
* A computed signal that derives the list of currently supported file extensions.
|
|
71
100
|
* It filters the base `fileTypes` array, removing any extensions present
|
|
@@ -77,12 +106,6 @@ export declare class DropZoneComponent {
|
|
|
77
106
|
* that have been selected or dropped by the user.
|
|
78
107
|
*/
|
|
79
108
|
docs: import("@angular/core").WritableSignal<AppFile[]>;
|
|
80
|
-
/**
|
|
81
|
-
* A signal that holds an array of `AppFile` objects representing the files
|
|
82
|
-
* that have been selected or dropped by the user.
|
|
83
|
-
|
|
84
|
-
*/
|
|
85
|
-
variant: import("@angular/core").InputSignal<string>;
|
|
86
109
|
/**
|
|
87
110
|
* A signal that acts as a boolean flag. It is set to `true` when the user
|
|
88
111
|
* attempts to upload a file with an unsupported extension.
|
|
@@ -161,8 +184,10 @@ export declare class DropZoneComponent {
|
|
|
161
184
|
carouselRight(): void;
|
|
162
185
|
handleTagChange(event: {
|
|
163
186
|
fileName: string;
|
|
164
|
-
tag:
|
|
187
|
+
tag: DocumentTag;
|
|
165
188
|
}): void;
|
|
189
|
+
setInvalid(): void;
|
|
190
|
+
clearInvalid(): void;
|
|
166
191
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropZoneComponent, never>;
|
|
167
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropZoneComponent, "
|
|
192
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropZoneComponent, "cai-drop-zone", never, { "crop": { "alias": "crop"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; "deletedFileIds": { "alias": "deletedFileIds"; "required": false; "isSignal": true; }; "maxCountFiles": { "alias": "maxCountFiles"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "documentTags": { "alias": "documentTags"; "required": false; "isSignal": true; }; "excludedFileTypes": { "alias": "excludedFileTypes"; "required": false; "isSignal": true; }; "fileTypes": { "alias": "fileTypes"; "required": false; "isSignal": true; }; }, { "onDeletedFileIds": "onDeletedFileIds"; "docsChange": "docsChange"; }, never, never, true, never>;
|
|
168
193
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mask.helper';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class MaskHelper {
|
|
2
|
+
static extractUserInput(value: string): string;
|
|
3
|
+
static isPlaceholder(char: string): boolean;
|
|
4
|
+
static charMatchesPlaceholder(char: string, placeholder: string): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Applies the mask to a given string of user input.
|
|
7
|
+
* @param realValue The clean user input.
|
|
8
|
+
* @param mask The mask pattern.
|
|
9
|
+
* @returns An object with the formatted value and the final real value.
|
|
10
|
+
*/
|
|
11
|
+
static applyMask(realValue: string, mask: string): {
|
|
12
|
+
formattedValue: string;
|
|
13
|
+
finalRealValue: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -11,6 +11,7 @@ export declare class MaskDirective implements OnInit {
|
|
|
11
11
|
* @example '(000) 000-0000' for a phone number.
|
|
12
12
|
*/
|
|
13
13
|
appMask: import("@angular/core").InputSignal<string>;
|
|
14
|
+
reveal: import("@angular/core").InputSignal<number>;
|
|
14
15
|
/**
|
|
15
16
|
* Stores the unmasked, "real" value of the input, containing only
|
|
16
17
|
* the characters entered by the user that fit the mask placeholders.
|
|
@@ -49,21 +50,6 @@ export declare class MaskDirective implements OnInit {
|
|
|
49
50
|
* @param value The current value from the input field.
|
|
50
51
|
*/
|
|
51
52
|
private formatValue;
|
|
52
|
-
/**
|
|
53
|
-
* Applies the mask to a given string of user input.
|
|
54
|
-
* @param realValue The clean user input.
|
|
55
|
-
* @param mask The mask pattern.
|
|
56
|
-
* @returns An object with the formatted value and the final real value.
|
|
57
|
-
*/
|
|
58
|
-
private applyMask;
|
|
59
|
-
/**
|
|
60
|
-
* Extracts valid user input characters from a string.
|
|
61
|
-
* @param value The string to clean.
|
|
62
|
-
* @returns A string containing only valid mask characters (digits/letters).
|
|
63
|
-
*/
|
|
64
|
-
private extractUserInput;
|
|
65
|
-
private isPlaceholder;
|
|
66
|
-
private charMatchesPlaceholder;
|
|
67
53
|
private setCursorToEnd;
|
|
68
54
|
private dispatchRealValueChange;
|
|
69
55
|
/**
|
|
@@ -77,5 +63,5 @@ export declare class MaskDirective implements OnInit {
|
|
|
77
63
|
*/
|
|
78
64
|
setRealValue(value: string): void;
|
|
79
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaskDirective, never>;
|
|
80
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MaskDirective, "[appMask]", never, { "appMask": { "alias": "appMask"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
66
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MaskDirective, "[appMask]", never, { "appMask": { "alias": "appMask"; "required": false; "isSignal": true; }; "reveal": { "alias": "reveal"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
81
67
|
}
|
|
@@ -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
|
}
|
|
@@ -19,6 +19,8 @@ export declare class PasswordDirective implements OnInit {
|
|
|
19
19
|
* password should be revealed. Defaults to 0 (fully masked).
|
|
20
20
|
*/
|
|
21
21
|
reveal: import("@angular/core").InputSignal<number>;
|
|
22
|
+
appMask: import("@angular/core").InputSignal<string>;
|
|
23
|
+
max: import("@angular/core").InputSignal<number | undefined>;
|
|
22
24
|
/**
|
|
23
25
|
* Stores the actual, unmasked password value,
|
|
24
26
|
* while the input element displays a masked version.
|
|
@@ -94,5 +96,5 @@ export declare class PasswordDirective implements OnInit {
|
|
|
94
96
|
*/
|
|
95
97
|
setRealValue(value: string): void;
|
|
96
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordDirective, never>;
|
|
97
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PasswordDirective, "[appPassword]", never, { "appPassword": { "alias": "appPassword"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "account": { "alias": "account"; "required": false; "isSignal": true; }; "reveal": { "alias": "reveal"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
99
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PasswordDirective, "[appPassword]", never, { "appPassword": { "alias": "appPassword"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "account": { "alias": "account"; "required": false; "isSignal": true; }; "reveal": { "alias": "reveal"; "required": false; "isSignal": true; }; "appMask": { "alias": "appMask"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
98
100
|
}
|