carriera-intern-components 1.1.55 → 1.1.57

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.
Files changed (24) hide show
  1. package/app/components/avatar/avatar.component.d.ts +1 -1
  2. package/app/components/copy/copy.component.d.ts +3 -1
  3. package/app/components/dispatch-dropdown/dispatch-dropdown.component.d.ts +27 -2
  4. package/app/components/dispatch-dropdown/helpers/dispatch-dropdown.helper.d.ts +43 -0
  5. package/app/components/dispatch-dropdown/interfaces/dispatch-dropdown-config.interface.d.ts +6 -0
  6. package/app/components/dispatch-dropdown/interfaces/dispatch-dropdown-option.interface.d.ts +1 -1
  7. package/app/components/dispatch-location/dispatch-location.component.d.ts +43 -0
  8. package/app/components/dispatch-location/interfaces/index.d.ts +1 -0
  9. package/app/components/dispatch-location/interfaces/last-status-data.interface.d.ts +6 -0
  10. package/app/components/dispatch-location/pipes/last-status-format.pipe.d.ts +8 -0
  11. package/app/components/document-preview/document-preview.component.d.ts +6 -1
  12. package/app/components/drop-zone/drop-zone.component.d.ts +20 -12
  13. package/app/components/input/input.component.d.ts +5 -1
  14. package/app/components/input/models/input.model.d.ts +2 -0
  15. package/app/components/input-address/models/address-data.model.d.ts +3 -3
  16. package/app/utils/constants/input-character-sets.constants.d.ts +5 -5
  17. package/fesm2022/carriera-intern-components.mjs +623 -77
  18. package/fesm2022/carriera-intern-components.mjs.map +1 -1
  19. package/package.json +1 -1
  20. package/public/assets/icons/load/cai-parking.svg +3 -0
  21. package/public/assets/json/icons.json +4 -0
  22. package/public-api.d.ts +1 -0
  23. package/src/styles/popover.scss +24 -22
  24. package/app/components/dispatch-dropdown/pipes/dispatch-search-filter.pipe.d.ts +0 -8
@@ -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<22 | 18 | 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}
@@ -12,7 +12,9 @@ export declare class CopyComponent {
12
12
  iconSize: import("@angular/core").InputSignal<number>;
13
13
  iconColor: import("@angular/core").InputSignal<string | null>;
14
14
  tooltipClass: import("@angular/core").InputSignal<string | null>;
15
+ tooltipPlacement: import("@angular/core").InputSignal<"top" | "bottom">;
15
16
  inverse: import("@angular/core").InputSignal<boolean>;
17
+ hasNoIcon: import("@angular/core").InputSignal<boolean>;
16
18
  copied: import("@angular/core").WritableSignal<boolean>;
17
19
  eGeneralActions: typeof eGeneralActions;
18
20
  eAlignment: typeof eAlignment;
@@ -20,5 +22,5 @@ export declare class CopyComponent {
20
22
  onCopy(event: MouseEvent): void;
21
23
  resetCopied(): void;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<CopyComponent, never>;
23
- 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; }; "inverse": { "alias": "inverse"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
25
+ 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; }; "tooltipPlacement": { "alias": "tooltipPlacement"; "required": false; "isSignal": true; }; "inverse": { "alias": "inverse"; "required": false; "isSignal": true; }; "hasNoIcon": { "alias": "hasNoIcon"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
24
26
  }
@@ -8,8 +8,8 @@ export declare class DispatchDropdownComponent {
8
8
  inputRef: ElementRef<HTMLInputElement>;
9
9
  selectedOption: import("@angular/core").InputSignal<IDispatchDropdownOption | null>;
10
10
  options: import("@angular/core").InputSignal<IDispatchDropdownOption[]>;
11
- optionLabel: import("@angular/core").InputSignal<string>;
12
11
  config: import("@angular/core").InputSignal<IDispatchDropdownConfig>;
12
+ isEditable: import("@angular/core").InputSignal<boolean>;
13
13
  data: import("@angular/core").InputSignal<unknown>;
14
14
  isLocked: import("@angular/core").InputSignal<boolean>;
15
15
  hasNoRemoveButton: import("@angular/core").InputSignal<boolean>;
@@ -18,22 +18,47 @@ export declare class DispatchDropdownComponent {
18
18
  contentTemplate: import("@angular/core").InputSignal<TemplateRef<unknown> | null>;
19
19
  optionTemplateLeft: import("@angular/core").InputSignal<TemplateRef<unknown> | null>;
20
20
  optionTemplateRight: import("@angular/core").InputSignal<TemplateRef<unknown> | null>;
21
+ noContentTemplate: import("@angular/core").InputSignal<TemplateRef<unknown> | null>;
22
+ hideDropdownMenu: import("@angular/core").InputSignal<boolean>;
21
23
  onSelectionChange: import("@angular/core").OutputEmitterRef<IDispatchDropdownOption | null>;
22
24
  onRemove: import("@angular/core").OutputEmitterRef<void>;
23
25
  onAddNew: import("@angular/core").OutputEmitterRef<void>;
26
+ onSearch: import("@angular/core").OutputEmitterRef<string>;
27
+ onToggleDropdown: import("@angular/core").OutputEmitterRef<boolean>;
24
28
  searchValue: import("@angular/core").WritableSignal<string>;
25
29
  closing: import("@angular/core").WritableSignal<boolean>;
26
30
  containerWidth: import("@angular/core").WritableSignal<number>;
27
31
  dropdownOpen: import("@angular/core").WritableSignal<boolean>;
32
+ collapsedGroups: import("@angular/core").WritableSignal<string[]>;
33
+ private closeTimeout;
34
+ groupMaxHeightStyle: import("@angular/core").Signal<string>;
35
+ maxHeightStyle: import("@angular/core").Signal<string>;
36
+ containerHeightStyle: import("@angular/core").Signal<string>;
37
+ filteredOptions: import("@angular/core").Signal<IDispatchDropdownOption[]>;
38
+ filteredGroupedOptions: import("@angular/core").Signal<{
39
+ groupName: any;
40
+ highlightedGroupName: any;
41
+ highlightedOptions: any;
42
+ isCollapsed: boolean;
43
+ isRelevant: any;
44
+ id?: number;
45
+ }[]>;
46
+ highlightedOptions: import("@angular/core").Signal<{
47
+ highlighted: any;
48
+ id?: number;
49
+ }[]>;
28
50
  private updateContainerWidth;
29
51
  private closeDropdown;
30
52
  handleOpenChange(event: boolean): void;
31
53
  handleFocus(): void;
32
54
  handleClick($event?: MouseEvent): void;
33
55
  handleBlur(): void;
56
+ handleKeydown(event: KeyboardEvent): void;
34
57
  handleOption(event: MouseEvent, option: IDispatchDropdownOption): void;
35
58
  handlePrimaryButtonClick(event: MouseEvent): void;
59
+ handleSearch(event: Event): void;
36
60
  handleAddNew(): void;
61
+ toggleGroup(event: MouseEvent, groupName?: string): void;
37
62
  static ɵfac: i0.ɵɵFactoryDeclaration<DispatchDropdownComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<DispatchDropdownComponent, "cai-dispatch-dropdown", never, { "selectedOption": { "alias": "selectedOption"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "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; }; }, { "onSelectionChange": "onSelectionChange"; "onRemove": "onRemove"; "onAddNew": "onAddNew"; }, never, never, true, 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>;
39
64
  }
@@ -0,0 +1,43 @@
1
+ import { IDispatchDropdownConfig, IDispatchDropdownOption } from '../interfaces';
2
+ export declare class DispatchDropdownHelper {
3
+ /**
4
+ * Calculate the max height for grouped options dropdown menu
5
+ */
6
+ static calculateGroupMaxHeight(groups: Array<{
7
+ highlightedOptions?: unknown[];
8
+ isCollapsed?: boolean;
9
+ }>, hasNoAddNew?: boolean): string;
10
+ /**
11
+ * Calculate the max height for regular options dropdown menu
12
+ */
13
+ static calculateMaxHeight(optionsLength: number, hasNoAddNew?: boolean): string;
14
+ /**
15
+ * Filter grouped options based on search value
16
+ * Searches both group labels and option labels
17
+ * Never removes groups - instead sorts by relevancy
18
+ */
19
+ static filterGroupedOptions(options: IDispatchDropdownOption[], searchValue: string, config: IDispatchDropdownConfig): IDispatchDropdownOption[];
20
+ /**
21
+ * Process filtered options and add highlighting for grouped display
22
+ */
23
+ static processGroupedOptionsWithHighlighting(options: IDispatchDropdownOption[], searchValue: string, collapsedGroups: string[], config: IDispatchDropdownConfig): {
24
+ groupName: any;
25
+ highlightedGroupName: any;
26
+ highlightedOptions: any;
27
+ isCollapsed: boolean;
28
+ isRelevant: any;
29
+ id?: number;
30
+ }[];
31
+ /**
32
+ * Calculate which groups should be collapsed based on search relevancy
33
+ * Returns the updated collapsedGroups array
34
+ */
35
+ static calculateCollapsedGroupsForSearch(options: IDispatchDropdownOption[], searchValue: string, config: IDispatchDropdownConfig): string[];
36
+ /**
37
+ * Add highlighting to options based on search value
38
+ */
39
+ static highlightOptions(options: IDispatchDropdownOption[], searchValue: string, optionLabel: string): {
40
+ highlighted: any;
41
+ id?: number;
42
+ }[];
43
+ }
@@ -1,4 +1,10 @@
1
1
  export interface IDispatchDropdownConfig {
2
2
  hasPagination?: boolean;
3
3
  placeholder?: string;
4
+ hasNoAdd?: boolean;
5
+ hasNoAddNew?: boolean;
6
+ optionLabel?: string;
7
+ isGrouped?: boolean;
8
+ groupLabel?: string;
9
+ groupOptions?: string;
4
10
  }
@@ -1,4 +1,4 @@
1
1
  export interface IDispatchDropdownOption {
2
- id: number;
2
+ id?: number;
3
3
  [key: string]: any;
4
4
  }
@@ -0,0 +1,43 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { IDispatchDropdownConfig } from '../dispatch-dropdown/interfaces';
3
+ import { ILastStatusData } from './interfaces';
4
+ import { AddressData, AddressEntity } from '../input-address/models/address-data.model';
5
+ import { AddressList } from '../input-address/models/address-list.model';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DispatchLocationComponent implements OnInit, OnDestroy {
8
+ id: import("@angular/core").InputSignal<string>;
9
+ locationData: import("@angular/core").InputSignal<AddressEntity | null>;
10
+ lastStatusData: import("@angular/core").InputSignal<ILastStatusData | null>;
11
+ isParking: import("@angular/core").InputSignal<boolean>;
12
+ isEditable: import("@angular/core").InputSignal<boolean>;
13
+ set receivedAddressData(value: AddressData | null);
14
+ set receivedAddressList(value: {
15
+ addresses?: string[];
16
+ } | null);
17
+ set parkingList(value: any[]);
18
+ selectedAddress: import("@angular/core").OutputEmitterRef<any>;
19
+ sentAddressData: import("@angular/core").OutputEmitterRef<any>;
20
+ sentAddressValue: import("@angular/core").OutputEmitterRef<any>;
21
+ onClear: import("@angular/core").OutputEmitterRef<void>;
22
+ onToggleDropdown: import("@angular/core").OutputEmitterRef<boolean>;
23
+ config: IDispatchDropdownConfig;
24
+ options: AddressList[];
25
+ addressList: AddressList[];
26
+ currentAddressData: AddressData | null;
27
+ isParkingAddressSelected: boolean;
28
+ isLoading: import("@angular/core").WritableSignal<boolean>;
29
+ hideDropdownMenu: import("@angular/core").WritableSignal<boolean>;
30
+ private _parkingList;
31
+ private searchLayers;
32
+ private destroy$;
33
+ private searchSubject$;
34
+ ngOnInit(): void;
35
+ ngOnDestroy(): void;
36
+ private initSearchListener;
37
+ private filterParkingByCity;
38
+ handleSearch(event: string): void;
39
+ handleAddressSelect(selectedOption: any): void;
40
+ handleToggleDropdown(event: boolean): void;
41
+ 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
+ }
@@ -0,0 +1 @@
1
+ export * from './last-status-data.interface';
@@ -0,0 +1,6 @@
1
+ export interface ILastStatusData {
2
+ hours: number;
3
+ minutes: number;
4
+ days?: number;
5
+ seconds?: number;
6
+ }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { ILastStatusData } from '../interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class LastStatusFormatPipe implements PipeTransform {
5
+ transform(value: ILastStatusData | null | undefined): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<LastStatusFormatPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<LastStatusFormatPipe, "lastStatusFormat", true>;
8
+ }
@@ -12,11 +12,15 @@ export declare class DocumentPreviewComponent implements OnChanges, OnInit {
12
12
  cdlDetailsMode: boolean;
13
13
  noTagOption: boolean;
14
14
  drawerMode: boolean;
15
+ isCoverDetails: boolean;
15
16
  tags: import("@angular/core").InputSignal<DocumentTag[]>;
16
17
  onFileNameChange: EventEmitter<{
17
18
  fileName: string;
18
19
  fileId?: number;
19
20
  }>;
21
+ onDocumentPreviewClick: EventEmitter<{
22
+ fileId: number;
23
+ }>;
20
24
  isCrop: import("@angular/core").WritableSignal<boolean>;
21
25
  showInput: import("@angular/core").WritableSignal<boolean>;
22
26
  showDeleteModal: import("@angular/core").WritableSignal<boolean>;
@@ -97,6 +101,7 @@ export declare class DocumentPreviewComponent implements OnChanges, OnInit {
97
101
  * Placeholder for handling document sharing. Currently logs the file name to the console.
98
102
  */
99
103
  handleShare(): void;
104
+ handleClickOnDocumentPreview(): void;
100
105
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentPreviewComponent, never>;
101
- 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; }; "tags": { "alias": "tags"; "required": false; "isSignal": true; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": true; "isSignal": true; }; }, { "onFileNameChange": "onFileNameChange"; "onDelete": "onDelete"; "onDownload": "onDownload"; "onTagChange": "onTagChange"; }, never, never, true, never>;
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>;
102
107
  }
@@ -1,4 +1,4 @@
1
- import { ElementRef, EventEmitter } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnChanges, SimpleChanges } 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';
@@ -13,13 +13,12 @@ import * as i0 from "@angular/core";
13
13
  * drag-and-drop or a file input dialog. It displays previews of the
14
14
  * selected files in a carousel.
15
15
  */
16
- export declare class DropZoneComponent {
16
+ export declare class DropZoneComponent implements OnChanges {
17
17
  private sanitizer;
18
18
  zoomValue: import("@angular/core").WritableSignal<number>;
19
19
  smallView: import("@angular/core").WritableSignal<boolean>;
20
20
  cropHeight: import("@angular/core").WritableSignal<number>;
21
21
  cropWidth: import("@angular/core").WritableSignal<number>;
22
- private initialFilesProcessed;
23
22
  driver: import("@angular/core").WritableSignal<Driver>;
24
23
  transform: ImageTransform;
25
24
  imageChangedEvent: Event | null;
@@ -35,12 +34,23 @@ export declare class DropZoneComponent {
35
34
  crop: import("@angular/core").InputSignal<boolean>;
36
35
  size: import("@angular/core").InputSignal<string | undefined>;
37
36
  rounded: import("@angular/core").InputSignal<boolean>;
38
- files: import("@angular/core").InputSignal<FileResponse[]>;
39
37
  deletedFileIds: import("@angular/core").InputSignal<number[]>;
40
38
  maxCountFiles: import("@angular/core").InputSignal<number>;
41
39
  isDetailsSlider: import("@angular/core").InputSignal<boolean>;
42
40
  isDrawerMode: import("@angular/core").InputSignal<boolean>;
41
+ isCoverDetails: import("@angular/core").InputSignal<boolean>;
42
+ files: FileResponse[];
43
43
  dropZoneVariant: typeof DropZoneVariant;
44
+ onDeletedFileIds: EventEmitter<number[]>;
45
+ docsChange: EventEmitter<AppFile[]>;
46
+ onDocumentPreviewClick: EventEmitter<{
47
+ fileId: number;
48
+ }>;
49
+ inputRange: ElementRef<HTMLInputElement>;
50
+ dropZoneContainer: ElementRef<HTMLElement>;
51
+ coverUrl: string;
52
+ profileUrl: string;
53
+ logoUrl: string;
44
54
  /**
45
55
  * A input that holds an FormGroup object that is used to update the form validity when the crop mode is closed.
46
56
  */
@@ -76,14 +86,8 @@ export declare class DropZoneComponent {
76
86
  * @type {FileExtension[]}
77
87
  */
78
88
  fileTypes: import("@angular/core").InputSignal<("mp4" | "mov" | "avi" | "pdf" | "jpg" | "jpeg" | "png" | "gif")[]>;
79
- coverUrl: string;
80
- profileUrl: string;
81
- logoUrl: string;
82
- onDeletedFileIds: EventEmitter<number[]>;
83
- docsChange: EventEmitter<AppFile[]>;
84
- inputRange: ElementRef<HTMLInputElement>;
85
- dropZoneContainer: ElementRef<HTMLElement>;
86
89
  constructor(sanitizer: DomSanitizer);
90
+ ngOnChanges(changes: SimpleChanges): void;
87
91
  ngOnInit(): void;
88
92
  ngAfterViewInit(): void;
89
93
  emitDocs(): void;
@@ -216,6 +220,10 @@ export declare class DropZoneComponent {
216
220
  }): void;
217
221
  setInvalid(): void;
218
222
  clearInvalid(): void;
223
+ handleDocumentPreviewClick(event: {
224
+ fileId: number;
225
+ }): void;
226
+ downloadAllFiles(): void;
219
227
  static ɵfac: i0.ɵɵFactoryDeclaration<DropZoneComponent, never>;
220
- 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; }; "isDrawerMode": { "alias": "isDrawerMode"; "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>;
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>;
221
229
  }
@@ -231,6 +231,8 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
231
231
  onScrolledToBottomGroup: import("@angular/core").OutputEmitterRef<void>;
232
232
  onSearch: import("@angular/core").OutputEmitterRef<string>;
233
233
  onValueAdded: import("@angular/core").OutputEmitterRef<string | number | null>;
234
+ onRemove: import("@angular/core").OutputEmitterRef<void>;
235
+ onHoverRemove: import("@angular/core").OutputEmitterRef<boolean>;
234
236
  /**
235
237
  * Constructor for the InputComponent.
236
238
  * It injects NgControl to integrate with Angular's forms API.
@@ -328,6 +330,8 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
328
330
  * Resets the input field's value to an empty string.
329
331
  */
330
332
  reset(event?: MouseEvent): void;
333
+ handleKeydown(event: KeyboardEvent): void;
334
+ onClearHover(value: boolean): void;
331
335
  closeDropdown(addNew?: boolean): void;
332
336
  /**
333
337
  * Returns the reference to the dropdown element based on the dropdown type.
@@ -405,5 +409,5 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
405
409
  onDropdownBackgroundClick(event: MouseEvent): void;
406
410
  onDropdownIconClick(event: MouseEvent): void;
407
411
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }, null]>;
408
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "cai-input", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "preselectedOptions": { "alias": "preselectedOptions"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "labelColors": { "alias": "labelColors"; "required": false; "isSignal": true; }; "hideValidation": { "alias": "hideValidation"; "required": false; "isSignal": true; }; "showNoResults": { "alias": "showNoResults"; "required": false; "isSignal": true; }; "preselectedUnit": { "alias": "preselectedUnit"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocused": "onFocused"; "onValueChange": "onValueChange"; "onOptionAdded": "onOptionAdded"; "onAdd": "onAdd"; "onSelectionChange": "onSelectionChange"; "onSelectedObject": "onSelectedObject"; "onSelectedGroup": "onSelectedGroup"; "onClear": "onClear"; "onAutofill": "onAutofill"; "onScrolledToBottom": "onScrolledToBottom"; "onScrolledToBottomGroup": "onScrolledToBottomGroup"; "onSearch": "onSearch"; "onValueAdded": "onValueAdded"; }, never, never, true, never>;
412
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "cai-input", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "preselectedOptions": { "alias": "preselectedOptions"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "labelColors": { "alias": "labelColors"; "required": false; "isSignal": true; }; "hideValidation": { "alias": "hideValidation"; "required": false; "isSignal": true; }; "showNoResults": { "alias": "showNoResults"; "required": false; "isSignal": true; }; "preselectedUnit": { "alias": "preselectedUnit"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocused": "onFocused"; "onValueChange": "onValueChange"; "onOptionAdded": "onOptionAdded"; "onAdd": "onAdd"; "onSelectionChange": "onSelectionChange"; "onSelectedObject": "onSelectedObject"; "onSelectedGroup": "onSelectedGroup"; "onClear": "onClear"; "onAutofill": "onAutofill"; "onScrolledToBottom": "onScrolledToBottom"; "onScrolledToBottomGroup": "onScrolledToBottomGroup"; "onSearch": "onSearch"; "onValueAdded": "onValueAdded"; "onRemove": "onRemove"; "onHoverRemove": "onHoverRemove"; }, never, never, true, never>;
409
413
  }
@@ -53,6 +53,8 @@ export interface CaiInputConfig {
53
53
  toSlice?: number;
54
54
  placeholderColor?: string;
55
55
  strikethrough?: boolean;
56
+ hasRemoveModal?: boolean;
57
+ hasNoClearButton?: boolean;
56
58
  }
57
59
  export type CustomError = {
58
60
  name: string;
@@ -12,8 +12,8 @@ export interface AddressEntity {
12
12
  addressUnit?: string | null;
13
13
  }
14
14
  export interface AddressData {
15
- address: AddressEntity;
16
- longLat?: LongLat;
17
- valid: boolean;
15
+ address?: AddressEntity;
16
+ longLat?: LongLat | null;
17
+ valid?: boolean;
18
18
  isParking?: boolean;
19
19
  }
@@ -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" | "v" | "a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "c" | "d" | "e" | "f" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "r" | "t" | "w" | "x" | "y" | "z")[];
11
+ readonly ALPHANUMERIC: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "i" | "p" | "q" | "s" | "u" | "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" | "_" | "v" | "a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "." | "c" | "d" | "e" | "f" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "r" | "t" | "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" | "8" | "9" | "." | "a" | "b" | "i" | "p" | "q" | "s" | "u" | "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
  };