carriera-intern-components 1.1.58 → 1.1.59
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/counter/counter.component.d.ts +68 -0
- package/app/components/dispatch-location/dispatch-location.component.d.ts +2 -1
- package/app/components/drop-zone/drop-zone.component.d.ts +4 -1
- package/app/components/sticky-scrollbar/sticky-scrollbar.component.d.ts +9 -4
- package/app/utils/constants/input-character-sets.constants.d.ts +5 -5
- package/fesm2022/carriera-intern-components.mjs +307 -72
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -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 | 28>;
|
|
18
18
|
/**
|
|
19
19
|
* Whether the avatar should be rounded or not.
|
|
20
20
|
* @type {boolean}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CounterComponent implements ControlValueAccessor, OnDestroy {
|
|
5
|
+
ngControl: NgControl | null;
|
|
6
|
+
inputRef: ElementRef<HTMLInputElement>;
|
|
7
|
+
min: import("@angular/core").InputSignal<number | null>;
|
|
8
|
+
max: import("@angular/core").InputSignal<number | null>;
|
|
9
|
+
value: import("@angular/core").WritableSignal<number | null>;
|
|
10
|
+
keyPressed: import("@angular/core").WritableSignal<"up" | "down" | null>;
|
|
11
|
+
private keyPressedTimeout;
|
|
12
|
+
onChange: (_: any) => void;
|
|
13
|
+
onTouched: () => void;
|
|
14
|
+
/**
|
|
15
|
+
* Constructor for the CounterComponent.
|
|
16
|
+
* It injects NgControl to integrate with Angular's forms API.
|
|
17
|
+
* If NgControl is present, it sets this component as the value accessor
|
|
18
|
+
* for the form control.
|
|
19
|
+
* @param ngControl - Optional NgControl instance for form integration.
|
|
20
|
+
*/
|
|
21
|
+
constructor(ngControl: NgControl | null);
|
|
22
|
+
/**
|
|
23
|
+
* Handles input changes from the input element.
|
|
24
|
+
* @param event - The input event.
|
|
25
|
+
*/
|
|
26
|
+
onInput(event: Event): void;
|
|
27
|
+
/**
|
|
28
|
+
* Handles blur event on the input element.
|
|
29
|
+
*/
|
|
30
|
+
onBlur(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Increments or decrements the value.
|
|
33
|
+
* @param step - The amount to increment (positive) or decrement (negative).
|
|
34
|
+
*/
|
|
35
|
+
increment(step: number): void;
|
|
36
|
+
/**
|
|
37
|
+
* Updates the input element's value to match the internal value.
|
|
38
|
+
*/
|
|
39
|
+
private updateInputValue;
|
|
40
|
+
/**
|
|
41
|
+
* Writes a new value to the element.
|
|
42
|
+
* @param value - The new value.
|
|
43
|
+
*/
|
|
44
|
+
writeValue(value: any): void;
|
|
45
|
+
/**
|
|
46
|
+
* Registers a callback function that is called when the control's value changes.
|
|
47
|
+
* @param fn - The callback function.
|
|
48
|
+
*/
|
|
49
|
+
registerOnChange(fn: any): void;
|
|
50
|
+
/**
|
|
51
|
+
* Registers a callback function that is called when the control is touched.
|
|
52
|
+
* @param fn - The callback function.
|
|
53
|
+
*/
|
|
54
|
+
registerOnTouched(fn: any): void;
|
|
55
|
+
focus(event: PointerEvent): void;
|
|
56
|
+
onKeydown(event: KeyboardEvent): void;
|
|
57
|
+
/**
|
|
58
|
+
* Applies a temporary key-pressed class effect to the specified arrow.
|
|
59
|
+
* @param direction - The arrow direction ('up' or 'down').
|
|
60
|
+
*/
|
|
61
|
+
private flashKeyPressed;
|
|
62
|
+
/**
|
|
63
|
+
* Cleanup timeouts when component is destroyed.
|
|
64
|
+
*/
|
|
65
|
+
ngOnDestroy(): void;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CounterComponent, [{ optional: true; self: true; }]>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CounterComponent, "cai-counter", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
68
|
+
}
|
|
@@ -7,6 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class DispatchLocationComponent implements OnInit, OnDestroy {
|
|
8
8
|
id: import("@angular/core").InputSignal<string>;
|
|
9
9
|
locationData: import("@angular/core").InputSignal<AddressEntity | null>;
|
|
10
|
+
highlightedLocationString: import("@angular/core").InputSignal<string>;
|
|
10
11
|
lastStatusData: import("@angular/core").InputSignal<ILastStatusData | null>;
|
|
11
12
|
isParking: import("@angular/core").InputSignal<boolean>;
|
|
12
13
|
isEditable: import("@angular/core").InputSignal<boolean>;
|
|
@@ -39,5 +40,5 @@ export declare class DispatchLocationComponent implements OnInit, OnDestroy {
|
|
|
39
40
|
handleAddressSelect(selectedOption: any): void;
|
|
40
41
|
handleToggleDropdown(event: boolean): void;
|
|
41
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<DispatchLocationComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DispatchLocationComponent, "cai-dispatch-location", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "locationData": { "alias": "locationData"; "required": false; "isSignal": true; }; "lastStatusData": { "alias": "lastStatusData"; "required": false; "isSignal": true; }; "isParking": { "alias": "isParking"; "required": false; "isSignal": true; }; "isEditable": { "alias": "isEditable"; "required": false; "isSignal": true; }; "receivedAddressData": { "alias": "receivedAddressData"; "required": false; }; "receivedAddressList": { "alias": "receivedAddressList"; "required": false; }; "parkingList": { "alias": "parkingList"; "required": false; }; }, { "selectedAddress": "selectedAddress"; "sentAddressData": "sentAddressData"; "sentAddressValue": "sentAddressValue"; "onClear": "onClear"; "onToggleDropdown": "onToggleDropdown"; }, never, never, true, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DispatchLocationComponent, "cai-dispatch-location", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "locationData": { "alias": "locationData"; "required": false; "isSignal": true; }; "highlightedLocationString": { "alias": "highlightedLocationString"; "required": false; "isSignal": true; }; "lastStatusData": { "alias": "lastStatusData"; "required": false; "isSignal": true; }; "isParking": { "alias": "isParking"; "required": false; "isSignal": true; }; "isEditable": { "alias": "isEditable"; "required": false; "isSignal": true; }; "receivedAddressData": { "alias": "receivedAddressData"; "required": false; }; "receivedAddressList": { "alias": "receivedAddressList"; "required": false; }; "parkingList": { "alias": "parkingList"; "required": false; }; }, { "selectedAddress": "selectedAddress"; "sentAddressData": "sentAddressData"; "sentAddressValue": "sentAddressValue"; "onClear": "onClear"; "onToggleDropdown": "onToggleDropdown"; }, never, never, true, never>;
|
|
43
44
|
}
|
|
@@ -31,6 +31,7 @@ export declare class DropZoneComponent implements OnChanges {
|
|
|
31
31
|
deletedDocs: import("@angular/core").WritableSignal<number[]>;
|
|
32
32
|
dragMode: import("@angular/core").WritableSignal<boolean>;
|
|
33
33
|
onDragover: import("@angular/core").WritableSignal<boolean>;
|
|
34
|
+
invalidFileSize: import("@angular/core").WritableSignal<boolean>;
|
|
34
35
|
crop: import("@angular/core").InputSignal<boolean>;
|
|
35
36
|
size: import("@angular/core").InputSignal<string | undefined>;
|
|
36
37
|
rounded: import("@angular/core").InputSignal<boolean>;
|
|
@@ -39,6 +40,7 @@ export declare class DropZoneComponent implements OnChanges {
|
|
|
39
40
|
isDetailsSlider: import("@angular/core").InputSignal<boolean>;
|
|
40
41
|
isDrawerMode: import("@angular/core").InputSignal<boolean>;
|
|
41
42
|
isCoverDetails: import("@angular/core").InputSignal<boolean>;
|
|
43
|
+
maxFileSize: import("@angular/core").InputSignal<number>;
|
|
42
44
|
files: FileResponse[];
|
|
43
45
|
dropZoneVariant: typeof DropZoneVariant;
|
|
44
46
|
onDeletedFileIds: EventEmitter<number[]>;
|
|
@@ -219,11 +221,12 @@ export declare class DropZoneComponent implements OnChanges {
|
|
|
219
221
|
fileId?: number;
|
|
220
222
|
}): void;
|
|
221
223
|
setInvalid(): void;
|
|
224
|
+
resetInput(): void;
|
|
222
225
|
clearInvalid(): void;
|
|
223
226
|
handleDocumentPreviewClick(event: {
|
|
224
227
|
fileId: number;
|
|
225
228
|
}): void;
|
|
226
229
|
downloadAllFiles(): void;
|
|
227
230
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropZoneComponent, never>;
|
|
228
|
-
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; }; "deletedFileIds": { "alias": "deletedFileIds"; "required": false; "isSignal": true; }; "maxCountFiles": { "alias": "maxCountFiles"; "required": false; "isSignal": true; }; "isDetailsSlider": { "alias": "isDetailsSlider"; "required": false; "isSignal": true; }; "isDrawerMode": { "alias": "isDrawerMode"; "required": false; "isSignal": true; }; "isCoverDetails": { "alias": "isCoverDetails"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; }; "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"; "onDocumentPreviewClick": "onDocumentPreviewClick"; }, never, never, true, never>;
|
|
231
|
+
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; }; "deletedFileIds": { "alias": "deletedFileIds"; "required": false; "isSignal": true; }; "maxCountFiles": { "alias": "maxCountFiles"; "required": false; "isSignal": true; }; "isDetailsSlider": { "alias": "isDetailsSlider"; "required": false; "isSignal": true; }; "isDrawerMode": { "alias": "isDrawerMode"; "required": false; "isSignal": true; }; "isCoverDetails": { "alias": "isCoverDetails"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; }; "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"; "onDocumentPreviewClick": "onDocumentPreviewClick"; }, never, never, true, never>;
|
|
229
232
|
}
|
|
@@ -32,6 +32,8 @@ export declare class StickyScrollbarComponent implements AfterViewInit, OnChange
|
|
|
32
32
|
scrollStateChange: EventEmitter<eScrollState>;
|
|
33
33
|
private readonly renderer;
|
|
34
34
|
private readonly destroyRef;
|
|
35
|
+
private readonly ngZone;
|
|
36
|
+
private readonly cdr;
|
|
35
37
|
isDragging: boolean;
|
|
36
38
|
isContainerInView: import("@angular/core").WritableSignal<boolean>;
|
|
37
39
|
private dragStartX;
|
|
@@ -40,8 +42,15 @@ export declare class StickyScrollbarComponent implements AfterViewInit, OnChange
|
|
|
40
42
|
private currentScrollState?;
|
|
41
43
|
private setPositionTimeout?;
|
|
42
44
|
private intersectionObserver?;
|
|
45
|
+
private removeMouseMoveListener?;
|
|
46
|
+
private removeMouseUpListener?;
|
|
47
|
+
private removeMouseLeaveListener?;
|
|
48
|
+
private removeScrollListener?;
|
|
43
49
|
ngOnChanges(changes: SimpleChanges): void;
|
|
44
50
|
ngAfterViewInit(): void;
|
|
51
|
+
private setupScrollListener;
|
|
52
|
+
private handleScroll;
|
|
53
|
+
private setupGlobalMouseListeners;
|
|
45
54
|
private applyScrollPosition;
|
|
46
55
|
private updateScrollbar;
|
|
47
56
|
private setupResizeObserver;
|
|
@@ -49,11 +58,7 @@ export declare class StickyScrollbarComponent implements AfterViewInit, OnChange
|
|
|
49
58
|
private updateFixedTrackPosition;
|
|
50
59
|
private updateScrollState;
|
|
51
60
|
private calculateScrollState;
|
|
52
|
-
onScroll(): void;
|
|
53
61
|
onThumbMouseDown(event: MouseEvent): void;
|
|
54
|
-
onWindowMouseMove(event: MouseEvent): void;
|
|
55
|
-
onWindowMouseUp(): void;
|
|
56
|
-
onWindowMouseLeave(): void;
|
|
57
62
|
private onThumbDrag;
|
|
58
63
|
onThumbMouseUp(): void;
|
|
59
64
|
refresh(): void;
|
|
@@ -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" | "x" | "y" | "8" | "9" | "c" | "d" | "e" | "f" | "g" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "r" | "t" | "v" | "w" | "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" | "x" | "y" | "8" | "9" | "c" | "d" | "e" | "f" | "g" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "r" | "t" | "v" | "w" | "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
|
};
|