carriera-intern-components 1.1.61 → 1.1.63
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/dispatch-dropdown/dispatch-dropdown.component.d.ts +2 -1
- package/app/components/dispatch-location/dispatch-location.component.d.ts +7 -1
- package/app/components/document-preview/document-preview.component.d.ts +1 -1
- package/app/components/drop-zone/drop-zone.component.d.ts +11 -0
- package/app/components/input/input.component.d.ts +1 -0
- package/app/components/input/pipes/clear-tooltip.pipe.d.ts +1 -1
- package/app/components/input-datetime-picker/cai-input-datetime-picker.component.d.ts +1 -0
- package/app/components/input-datetime-picker/interfaces/input-datetime.interface.d.ts +1 -0
- package/app/utils/constants/input-character-sets.constants.d.ts +4 -4
- package/fesm2022/carriera-intern-components.mjs +119 -52
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles/_variables.scss +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<
|
|
17
|
+
size: import("@angular/core").InputSignal<18 | 22 | 32 | 74 | 160 | 28>;
|
|
18
18
|
/**
|
|
19
19
|
* Whether the avatar should be rounded or not.
|
|
20
20
|
* @type {boolean}
|
|
@@ -25,6 +25,7 @@ export declare class DispatchDropdownComponent {
|
|
|
25
25
|
onAddNew: import("@angular/core").OutputEmitterRef<void>;
|
|
26
26
|
onSearch: import("@angular/core").OutputEmitterRef<string>;
|
|
27
27
|
onToggleDropdown: import("@angular/core").OutputEmitterRef<boolean>;
|
|
28
|
+
onBlur: import("@angular/core").OutputEmitterRef<void>;
|
|
28
29
|
searchValue: import("@angular/core").WritableSignal<string>;
|
|
29
30
|
closing: import("@angular/core").WritableSignal<boolean>;
|
|
30
31
|
containerWidth: import("@angular/core").WritableSignal<number>;
|
|
@@ -60,5 +61,5 @@ export declare class DispatchDropdownComponent {
|
|
|
60
61
|
handleAddNew(): void;
|
|
61
62
|
toggleGroup(event: MouseEvent, groupName?: string): void;
|
|
62
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<DispatchDropdownComponent, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DispatchDropdownComponent, "cai-dispatch-dropdown", never, { "selectedOption": { "alias": "selectedOption"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "isEditable": { "alias": "isEditable"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "isLocked": { "alias": "isLocked"; "required": false; "isSignal": true; }; "hasNoRemoveButton": { "alias": "hasNoRemoveButton"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "disabledTooltip": { "alias": "disabledTooltip"; "required": false; "isSignal": true; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; "isSignal": true; }; "optionTemplateLeft": { "alias": "optionTemplateLeft"; "required": false; "isSignal": true; }; "optionTemplateRight": { "alias": "optionTemplateRight"; "required": false; "isSignal": true; }; "noContentTemplate": { "alias": "noContentTemplate"; "required": false; "isSignal": true; }; "hideDropdownMenu": { "alias": "hideDropdownMenu"; "required": false; "isSignal": true; }; }, { "onSelectionChange": "onSelectionChange"; "onRemove": "onRemove"; "onAddNew": "onAddNew"; "onSearch": "onSearch"; "onToggleDropdown": "onToggleDropdown"; }, never, never, true, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DispatchDropdownComponent, "cai-dispatch-dropdown", never, { "selectedOption": { "alias": "selectedOption"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "isEditable": { "alias": "isEditable"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "isLocked": { "alias": "isLocked"; "required": false; "isSignal": true; }; "hasNoRemoveButton": { "alias": "hasNoRemoveButton"; "required": false; "isSignal": true; }; "isDisabled": { "alias": "isDisabled"; "required": false; "isSignal": true; }; "disabledTooltip": { "alias": "disabledTooltip"; "required": false; "isSignal": true; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; "isSignal": true; }; "optionTemplateLeft": { "alias": "optionTemplateLeft"; "required": false; "isSignal": true; }; "optionTemplateRight": { "alias": "optionTemplateRight"; "required": false; "isSignal": true; }; "noContentTemplate": { "alias": "noContentTemplate"; "required": false; "isSignal": true; }; "hideDropdownMenu": { "alias": "hideDropdownMenu"; "required": false; "isSignal": true; }; }, { "onSelectionChange": "onSelectionChange"; "onRemove": "onRemove"; "onAddNew": "onAddNew"; "onSearch": "onSearch"; "onToggleDropdown": "onToggleDropdown"; "onBlur": "onBlur"; }, never, never, true, never>;
|
|
64
65
|
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { DispatchDropdownComponent } from '../dispatch-dropdown/dispatch-dropdown.component';
|
|
2
3
|
import { IDispatchDropdownConfig } from '../dispatch-dropdown/interfaces';
|
|
3
4
|
import { ILastStatusData } from './interfaces';
|
|
4
5
|
import { AddressData, AddressEntity } from '../input-address/models/address-data.model';
|
|
5
6
|
import { AddressList } from '../input-address/models/address-list.model';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class DispatchLocationComponent implements OnInit, OnDestroy {
|
|
9
|
+
dispatchDropdown: DispatchDropdownComponent;
|
|
8
10
|
id: import("@angular/core").InputSignal<string>;
|
|
9
11
|
locationData: import("@angular/core").InputSignal<AddressEntity | null>;
|
|
10
12
|
highlightedLocationString: import("@angular/core").InputSignal<string>;
|
|
11
13
|
lastStatusData: import("@angular/core").InputSignal<ILastStatusData | null>;
|
|
12
14
|
isParking: import("@angular/core").InputSignal<boolean>;
|
|
13
15
|
isEditable: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
parkingName: import("@angular/core").InputSignal<string>;
|
|
14
17
|
set receivedAddressData(value: AddressData | null);
|
|
15
18
|
set receivedAddressList(value: {
|
|
16
19
|
addresses?: string[];
|
|
@@ -21,6 +24,7 @@ export declare class DispatchLocationComponent implements OnInit, OnDestroy {
|
|
|
21
24
|
sentAddressValue: import("@angular/core").OutputEmitterRef<any>;
|
|
22
25
|
onClear: import("@angular/core").OutputEmitterRef<void>;
|
|
23
26
|
onToggleDropdown: import("@angular/core").OutputEmitterRef<boolean>;
|
|
27
|
+
onBlur: import("@angular/core").OutputEmitterRef<void>;
|
|
24
28
|
config: IDispatchDropdownConfig;
|
|
25
29
|
options: AddressList[];
|
|
26
30
|
addressList: AddressList[];
|
|
@@ -36,9 +40,11 @@ export declare class DispatchLocationComponent implements OnInit, OnDestroy {
|
|
|
36
40
|
ngOnDestroy(): void;
|
|
37
41
|
private initSearchListener;
|
|
38
42
|
private filterParkingByCity;
|
|
43
|
+
focus(): void;
|
|
39
44
|
handleSearch(event: string): void;
|
|
40
45
|
handleAddressSelect(selectedOption: any): void;
|
|
41
46
|
handleToggleDropdown(event: boolean): void;
|
|
47
|
+
handleBlur(): void;
|
|
42
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<DispatchLocationComponent, 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>;
|
|
49
|
+
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; }; "parkingName": { "alias": "parkingName"; "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"; "onBlur": "onBlur"; }, never, never, true, never>;
|
|
44
50
|
}
|
|
@@ -101,7 +101,7 @@ export declare class DocumentPreviewComponent implements OnChanges, OnInit {
|
|
|
101
101
|
* Placeholder for handling document sharing. Currently logs the file name to the console.
|
|
102
102
|
*/
|
|
103
103
|
handleShare(): void;
|
|
104
|
-
handleClickOnDocumentPreview(): void;
|
|
104
|
+
handleClickOnDocumentPreview(event: Event): void;
|
|
105
105
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentPreviewComponent, never>;
|
|
106
106
|
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "coverMinimalMode": { "alias": "coverMinimalMode"; "required": false; }; "cdlDetailsMode": { "alias": "cdlDetailsMode"; "required": false; }; "noTagOption": { "alias": "noTagOption"; "required": false; }; "drawerMode": { "alias": "drawerMode"; "required": false; }; "isCoverDetails": { "alias": "isCoverDetails"; "required": false; }; "tags": { "alias": "tags"; "required": false; "isSignal": true; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": true; "isSignal": true; }; }, { "onFileNameChange": "onFileNameChange"; "onDocumentPreviewClick": "onDocumentPreviewClick"; "onDelete": "onDelete"; "onDownload": "onDownload"; "onTagChange": "onTagChange"; }, never, never, true, never>;
|
|
107
107
|
}
|
|
@@ -102,11 +102,22 @@ export declare class DropZoneComponent implements OnChanges {
|
|
|
102
102
|
onZoomChange(event: Event): void;
|
|
103
103
|
fileChangeEvent(event: Event): void;
|
|
104
104
|
imageCropped(event: ImageCroppedEvent): void;
|
|
105
|
+
/**
|
|
106
|
+
* Converts an object URL to base64 string for use in cover/profile/logo variants.
|
|
107
|
+
*/
|
|
108
|
+
private convertObjectUrlToBase64;
|
|
105
109
|
imageLoaded(image: LoadedImage): void;
|
|
106
110
|
cropperReady(): void;
|
|
107
111
|
loadImageFailed(): void;
|
|
108
112
|
onTransformChange(event: ImageTransform): void;
|
|
109
113
|
cancelCrop(): void;
|
|
114
|
+
/**
|
|
115
|
+
* Converts a value to a proper image URL format.
|
|
116
|
+
* - If already a data URL (data:image/...) → use as-is
|
|
117
|
+
* - If already an HTTP/HTTPS URL → use as-is
|
|
118
|
+
* - If raw base64 string → add data URL prefix
|
|
119
|
+
*/
|
|
120
|
+
private toImageUrl;
|
|
110
121
|
submitCrop(initial?: boolean): void;
|
|
111
122
|
/**
|
|
112
123
|
* A computed signal that derives the list of currently supported file extensions.
|
|
@@ -135,6 +135,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
135
135
|
preselectedUnit: import("@angular/core").InputSignal<string | null>;
|
|
136
136
|
openGroup: import("@angular/core").WritableSignal<number | null>;
|
|
137
137
|
closing: import("@angular/core").WritableSignal<boolean>;
|
|
138
|
+
canTooltipBeVisible: import("@angular/core").WritableSignal<boolean>;
|
|
138
139
|
/**
|
|
139
140
|
* Internal signal to track the disabled state of the input.
|
|
140
141
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ClearTooltipPipe implements PipeTransform {
|
|
4
|
-
transform(hasText: boolean, isAdding: boolean, isEdit: boolean, placeholderBehavior: string, multiple: boolean, hasResetButton?: boolean): string;
|
|
4
|
+
transform(hasText: boolean, isAdding: boolean, isEdit: boolean, placeholderBehavior: string, multiple: boolean, hasResetButton?: boolean, canTooltipBeVisible?: boolean): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClearTooltipPipe, never>;
|
|
6
6
|
static ɵpipe: i0.ɵɵPipeDeclaration<ClearTooltipPipe, "clearTooltip", true>;
|
|
7
7
|
}
|
|
@@ -48,6 +48,7 @@ export declare class CaiInputDatetimePickerComponent implements AfterViewInit, C
|
|
|
48
48
|
holder1: ElementRef;
|
|
49
49
|
closeTooltip: NgbTooltip;
|
|
50
50
|
private destroy$;
|
|
51
|
+
private isPopoverShown;
|
|
51
52
|
constructor(superControl: NgControl, calendarService: CalendarDateTimePickerService);
|
|
52
53
|
ngOnInit(): void;
|
|
53
54
|
registerOnChange(fn: any): void;
|
|
@@ -2,6 +2,7 @@ import { CustomError } from '../../input/models';
|
|
|
2
2
|
import { ICaInput } from '../components/cai-custom-datetime-pickers/config';
|
|
3
3
|
export interface CaiDateTimeConfig extends ICaInput {
|
|
4
4
|
inTable?: boolean;
|
|
5
|
+
isBilling?: boolean;
|
|
5
6
|
inverse?: boolean;
|
|
6
7
|
size?: number;
|
|
7
8
|
customErrors?: CustomError[];
|
|
@@ -11,8 +11,8 @@ export declare const INPUT_CHARACTER_SETS: {
|
|
|
11
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")[];
|
|
12
12
|
readonly ALPHANUMERIC_WITH_SPACES: string[];
|
|
13
13
|
readonly EMAIL_SPECIAL: readonly ["@", ".", "-", "_", "+"];
|
|
14
|
-
readonly EMAIL_CHARACTERS: ("0" | "
|
|
15
|
-
readonly SPECIAL_EXCEPT_NAME_FRIENDLY: ("." | "
|
|
16
|
-
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "
|
|
17
|
-
readonly SPECIAL: ("." | "
|
|
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: ("." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "*" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
18
18
|
};
|