carriera-intern-components 1.1.40 → 1.1.42

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.
@@ -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 | 160 | 28>;
17
+ size: import("@angular/core").InputSignal<160 | 18 | 22 | 32 | 74 | 28>;
18
18
  /**
19
19
  * Whether the avatar should be rounded or not.
20
20
  * @type {boolean}
@@ -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 {};
@@ -9,28 +9,21 @@ import * as i0 from "@angular/core";
9
9
  */
10
10
  export declare class DocumentPreviewComponent implements OnChanges, OnInit {
11
11
  coverMinimalMode: boolean;
12
+ cdlDetailsMode: boolean;
13
+ noTagOption: boolean;
14
+ tags: import("@angular/core").InputSignal<DocumentTag[]>;
12
15
  isCrop: import("@angular/core").WritableSignal<boolean>;
16
+ showInput: import("@angular/core").WritableSignal<boolean>;
17
+ showDeleteModal: import("@angular/core").WritableSignal<boolean>;
18
+ showTag: boolean;
19
+ selectedTag: DocumentTag | null;
20
+ inputFormControl: FormControl<any>;
13
21
  constructor();
14
22
  ngOnInit(): void;
15
23
  ngOnChanges(changes: SimpleChanges): void;
16
- noTagOption: boolean;
17
- showInput: import("@angular/core").WritableSignal<boolean>;
18
- inputFormControl: FormControl<any>;
19
24
  showFileNameInput(): void;
20
25
  hideFileNameInput(): void;
21
26
  handleEdit(event: any): void;
22
- /**
23
- * Signal that controls whether the delete modal is visible.Used to confirm the file deletion.
24
- */
25
- showDeleteModal: import("@angular/core").WritableSignal<boolean>;
26
- /**
27
- * Boolean flag indicating whether the tag popover is visible.Used to apply conditional styling or behavior.
28
- */
29
- showTag: boolean;
30
- /**
31
- * Currently selected tag for the document.
32
- */
33
- selectedTag: DocumentTag | null;
34
27
  /**
35
28
  * The application file to be displayed in the preview. This is a required input.
36
29
  * @type {InputSignal<AppFile>}
@@ -76,10 +69,6 @@ export declare class DocumentPreviewComponent implements OnChanges, OnInit {
76
69
  * Callback triggered when the tag popover is hidden. Used to update internal state.
77
70
  */
78
71
  onTagHidden(): void;
79
- /**
80
- * List of available tags for labeling the document. These are selectable within the tag popover.
81
- */
82
- tags: import("@angular/core").InputSignal<DocumentTag[]>;
83
72
  /**
84
73
  * Emits when a tag is selected or removed for the file.
85
74
  * Contains the file name and the selected tag.
@@ -104,5 +93,5 @@ export declare class DocumentPreviewComponent implements OnChanges, OnInit {
104
93
  */
105
94
  handleShare(): void;
106
95
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentPreviewComponent, 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>;
96
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "coverMinimalMode": { "alias": "coverMinimalMode"; "required": false; }; "cdlDetailsMode": { "alias": "cdlDetailsMode"; "required": false; }; "noTagOption": { "alias": "noTagOption"; "required": false; }; "tags": { "alias": "tags"; "required": false; "isSignal": true; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": true; "isSignal": true; }; }, { "onDelete": "onDelete"; "onDownload": "onDownload"; "onTagChange": "onTagChange"; }, never, never, true, never>;
108
97
  }
@@ -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,16 @@ 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
+ isDetailsSlider: import("@angular/core").InputSignal<boolean>;
42
+ dropZoneVariant: typeof DropZoneVariant;
38
43
  /**
39
44
  * A input that holds an FormGroup object that is used to update the form validity when the crop mode is closed.
40
45
  */
@@ -76,6 +81,7 @@ export declare class DropZoneComponent {
76
81
  onDeletedFileIds: EventEmitter<number[]>;
77
82
  docsChange: EventEmitter<AppFile[]>;
78
83
  inputRange: ElementRef<HTMLInputElement>;
84
+ dropZoneContainer: ElementRef<HTMLElement>;
79
85
  constructor(sanitizer: DomSanitizer);
80
86
  ngOnInit(): void;
81
87
  ngAfterViewInit(): void;
@@ -124,6 +130,17 @@ export declare class DropZoneComponent {
124
130
  * @param event The `DragEvent` object containing the dropped files.
125
131
  */
126
132
  onDrop(event: DragEvent): void;
133
+ onDragOver(event: DragEvent): void;
134
+ onDragLeave(event: DragEvent): void;
135
+ onDragEnter(event: DragEvent): void;
136
+ onDocumentDragEnter(event: DragEvent): void;
137
+ onDocumentDragOver(event: DragEvent): void;
138
+ onWindowDragLeave(event: DragEvent): void;
139
+ onDocumentDrop(event: DragEvent): void;
140
+ /**
141
+ * Resets the drag state when drag operation ends.
142
+ */
143
+ private resetDragState;
127
144
  /**
128
145
  * Asynchronously processes a list of files. For each file, it validates
129
146
  * the extension against `supportedFileTypes`. If valid, it generates a
@@ -189,5 +206,5 @@ export declare class DropZoneComponent {
189
206
  setInvalid(): void;
190
207
  clearInvalid(): void;
191
208
  static ɵfac: i0.ɵɵFactoryDeclaration<DropZoneComponent, never>;
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>;
209
+ 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; }; "isDetailsSlider": { "alias": "isDetailsSlider"; "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>;
193
210
  }
@@ -0,0 +1,7 @@
1
+ export declare enum DropZoneVariant {
2
+ DOCUMENT = "document",
3
+ VIDEO = "video",
4
+ PROFILE = "profile",
5
+ COVER = "cover",
6
+ LOGO = "logo"
7
+ }
@@ -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" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z")[];
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" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "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: ("." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "*" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
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
  };