carriera-intern-components 1.1.40 → 1.1.41
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 +11 -1
- package/app/components/avatar/pipes/avatar-classes.pipe.d.ts +19 -0
- package/app/components/drop-zone/drop-zone.component.d.ts +16 -0
- package/app/components/drop-zone/enums/drop-zone-variant.enum.d.ts +7 -0
- package/app/components/drop-zone/enums/index.d.ts +1 -0
- package/app/components/sticky-scrollbar/sticky-scrollbar.component.d.ts +10 -0
- package/app/utils/constants/input-character-sets.constants.d.ts +5 -5
- package/fesm2022/carriera-intern-components.mjs +232 -16
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public/assets/icons/upload/cai-drop-zone-focus-drop.svg +48 -0
- package/public/assets/icons/upload/cai-drop-zone-focus.svg +48 -0
- package/public/assets/icons/upload/cai-drop-zone-logo-focus-drop.svg +41 -0
- package/public/assets/icons/upload/cai-drop-zone-logo-focus.svg +48 -0
- package/public/assets/icons/upload/cai-drop-zone-profile-focus-drop.svg +48 -0
- package/public/assets/icons/upload/cai-drop-zone-profile-focus.svg +55 -0
- package/public/assets/icons/upload/cai-drop-zone-video-focus-drop.svg +90 -0
- package/public/assets/icons/upload/cai-drop-zone-video-focus.svg +97 -0
- package/public/assets/json/icons.json +32 -0
- package/src/styles/_variables.scss +2 -0
|
@@ -25,6 +25,16 @@ export declare class AvatarComponent {
|
|
|
25
25
|
* @type {boolean}
|
|
26
26
|
*/
|
|
27
27
|
inverse: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* The tooltip to display when hovering over the avatar.
|
|
30
|
+
* @type {string}
|
|
31
|
+
*/
|
|
32
|
+
tooltip: import("@angular/core").InputSignal<string | null>;
|
|
33
|
+
/**
|
|
34
|
+
* The size to apply when hovering over the avatar.
|
|
35
|
+
* @type {number}
|
|
36
|
+
*/
|
|
37
|
+
customHoverSize: import("@angular/core").InputSignal<number | undefined>;
|
|
28
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "cai-avatar", never, { "driver": { "alias": "driver"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "inverse": { "alias": "inverse"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "cai-avatar", never, { "driver": { "alias": "driver"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "inverse": { "alias": "inverse"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "customHoverSize": { "alias": "customHoverSize"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
30
40
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Size } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
interface AvatarClassesInput {
|
|
5
|
+
size: Size;
|
|
6
|
+
color?: string | null;
|
|
7
|
+
isOwner?: boolean | null;
|
|
8
|
+
inverse: boolean;
|
|
9
|
+
rounded: boolean;
|
|
10
|
+
customHoverSize?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class AvatarClassesPipe implements PipeTransform {
|
|
13
|
+
private readonly colorMap;
|
|
14
|
+
private readonly sizeMap;
|
|
15
|
+
transform({ size, color, isOwner, inverse, rounded, customHoverSize, }: AvatarClassesInput): string;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarClassesPipe, never>;
|
|
17
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AvatarClassesPipe, "avatarClasses", true>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -6,6 +6,7 @@ import { Driver } from '../avatar/models';
|
|
|
6
6
|
import { FileResponse } from './models/file.response';
|
|
7
7
|
import { FormGroup } from '@angular/forms';
|
|
8
8
|
import { DocumentTag } from '../document-preview/interfaces';
|
|
9
|
+
import { DropZoneVariant } from './enums';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
11
12
|
* A component that provides a user interface for file uploading via
|
|
@@ -29,12 +30,15 @@ export declare class DropZoneComponent {
|
|
|
29
30
|
originalImageHeight: number;
|
|
30
31
|
base64Image: string;
|
|
31
32
|
deletedDocs: import("@angular/core").WritableSignal<number[]>;
|
|
33
|
+
dragMode: import("@angular/core").WritableSignal<boolean>;
|
|
34
|
+
onDragover: import("@angular/core").WritableSignal<boolean>;
|
|
32
35
|
crop: import("@angular/core").InputSignal<boolean>;
|
|
33
36
|
size: import("@angular/core").InputSignal<string | undefined>;
|
|
34
37
|
rounded: import("@angular/core").InputSignal<boolean>;
|
|
35
38
|
files: import("@angular/core").InputSignal<FileResponse[]>;
|
|
36
39
|
deletedFileIds: import("@angular/core").InputSignal<number[]>;
|
|
37
40
|
maxCountFiles: import("@angular/core").InputSignal<number>;
|
|
41
|
+
dropZoneVariant: typeof DropZoneVariant;
|
|
38
42
|
/**
|
|
39
43
|
* A input that holds an FormGroup object that is used to update the form validity when the crop mode is closed.
|
|
40
44
|
*/
|
|
@@ -76,6 +80,7 @@ export declare class DropZoneComponent {
|
|
|
76
80
|
onDeletedFileIds: EventEmitter<number[]>;
|
|
77
81
|
docsChange: EventEmitter<AppFile[]>;
|
|
78
82
|
inputRange: ElementRef<HTMLInputElement>;
|
|
83
|
+
dropZoneContainer: ElementRef<HTMLElement>;
|
|
79
84
|
constructor(sanitizer: DomSanitizer);
|
|
80
85
|
ngOnInit(): void;
|
|
81
86
|
ngAfterViewInit(): void;
|
|
@@ -124,6 +129,17 @@ export declare class DropZoneComponent {
|
|
|
124
129
|
* @param event The `DragEvent` object containing the dropped files.
|
|
125
130
|
*/
|
|
126
131
|
onDrop(event: DragEvent): void;
|
|
132
|
+
onDragOver(event: DragEvent): void;
|
|
133
|
+
onDragLeave(event: DragEvent): void;
|
|
134
|
+
onDragEnter(event: DragEvent): void;
|
|
135
|
+
onDocumentDragEnter(event: DragEvent): void;
|
|
136
|
+
onDocumentDragOver(event: DragEvent): void;
|
|
137
|
+
onWindowDragLeave(event: DragEvent): void;
|
|
138
|
+
onDocumentDrop(event: DragEvent): void;
|
|
139
|
+
/**
|
|
140
|
+
* Resets the drag state when drag operation ends.
|
|
141
|
+
*/
|
|
142
|
+
private resetDragState;
|
|
127
143
|
/**
|
|
128
144
|
* Asynchronously processes a list of files. For each file, it validates
|
|
129
145
|
* the extension against `supportedFileTypes`. If valid, it generates a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './drop-zone-variant.enum';
|
|
@@ -77,6 +77,16 @@ export declare class StickyScrollbarComponent implements AfterViewInit, OnChange
|
|
|
77
77
|
* Handles mouse up to end dragging
|
|
78
78
|
*/
|
|
79
79
|
onThumbMouseUp(): void;
|
|
80
|
+
/**
|
|
81
|
+
* Public method to manually refresh the scrollbar
|
|
82
|
+
* Useful when content or container dimensions change programmatically
|
|
83
|
+
*/
|
|
84
|
+
refresh(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Public method to scroll to the end of the container
|
|
87
|
+
* Useful when resizing the last element or when you want to ensure the end is visible
|
|
88
|
+
*/
|
|
89
|
+
scrollToEnd(): void;
|
|
80
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<StickyScrollbarComponent, never>;
|
|
81
91
|
static ɵcmp: i0.ɵɵComponentDeclaration<StickyScrollbarComponent, "ca-sticky-scrollbar", never, { "scrollPosition": { "alias": "scrollPosition"; "required": false; }; "hideTrack": { "alias": "hideTrack"; "required": false; }; "stickyOffset": { "alias": "stickyOffset"; "required": false; }; }, { "scrollPositionChange": "scrollPositionChange"; "scrollStateChange": "scrollStateChange"; }, never, ["*"], true, never>;
|
|
82
92
|
}
|
|
@@ -8,11 +8,11 @@ export declare const INPUT_CHARACTER_SETS: {
|
|
|
8
8
|
readonly QUOTES: readonly ["\"", "'", "`"];
|
|
9
9
|
readonly WHITESPACE: readonly [" ", "\t"];
|
|
10
10
|
readonly DBA_SPECIAL: readonly ["!", "#", "'", "$", "&", "%", "(", ")", "*", "+", ",", "-", ".", "/", ":", ";", "=", ">", "?", "[", "]", "\\", "^"];
|
|
11
|
-
readonly ALPHANUMERIC: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "
|
|
11
|
+
readonly ALPHANUMERIC: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "a" | "b" | "i" | "p" | "q" | "s" | "u" | "8" | "9" | "c" | "d" | "e" | "f" | "g" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "r" | "t" | "v" | "w" | "x" | "y" | "z")[];
|
|
12
12
|
readonly ALPHANUMERIC_WITH_SPACES: string[];
|
|
13
13
|
readonly EMAIL_SPECIAL: readonly ["@", ".", "-", "_", "+"];
|
|
14
|
-
readonly EMAIL_CHARACTERS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "
|
|
15
|
-
readonly SPECIAL_EXCEPT_NAME_FRIENDLY: ("." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "
|
|
16
|
-
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "
|
|
17
|
-
readonly SPECIAL: ("." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "
|
|
14
|
+
readonly EMAIL_CHARACTERS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "." | "a" | "b" | "i" | "p" | "q" | "s" | "u" | "8" | "9" | "c" | "d" | "e" | "f" | "g" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "r" | "t" | "v" | "w" | "x" | "y" | "z" | "@" | "+" | "-" | "_")[];
|
|
15
|
+
readonly SPECIAL_EXCEPT_NAME_FRIENDLY: ("*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
16
|
+
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "*" | "." | "8" | "9" | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
17
|
+
readonly SPECIAL: ("*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
18
18
|
};
|