carriera-intern-components 1.1.60 → 1.1.62
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/dispatch-dropdown/dispatch-dropdown.component.d.ts +2 -1
- package/app/components/dispatch-location/dispatch-location.component.d.ts +6 -1
- package/app/components/input/directives/mask.directive.d.ts +11 -0
- package/app/components/input/directives/number-format.directive.d.ts +11 -4
- package/app/components/input/input.component.d.ts +3 -1
- package/app/components/input/models/input.model.d.ts +1 -0
- package/app/components/input/pipes/clear-tooltip.pipe.d.ts +1 -1
- package/fesm2022/carriera-intern-components.mjs +186 -52
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles/_variables.scss +1 -0
|
@@ -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,10 +1,12 @@
|
|
|
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>;
|
|
@@ -21,6 +23,7 @@ export declare class DispatchLocationComponent implements OnInit, OnDestroy {
|
|
|
21
23
|
sentAddressValue: import("@angular/core").OutputEmitterRef<any>;
|
|
22
24
|
onClear: import("@angular/core").OutputEmitterRef<void>;
|
|
23
25
|
onToggleDropdown: import("@angular/core").OutputEmitterRef<boolean>;
|
|
26
|
+
onBlur: import("@angular/core").OutputEmitterRef<void>;
|
|
24
27
|
config: IDispatchDropdownConfig;
|
|
25
28
|
options: AddressList[];
|
|
26
29
|
addressList: AddressList[];
|
|
@@ -36,9 +39,11 @@ export declare class DispatchLocationComponent implements OnInit, OnDestroy {
|
|
|
36
39
|
ngOnDestroy(): void;
|
|
37
40
|
private initSearchListener;
|
|
38
41
|
private filterParkingByCity;
|
|
42
|
+
focus(): void;
|
|
39
43
|
handleSearch(event: string): void;
|
|
40
44
|
handleAddressSelect(selectedOption: any): void;
|
|
41
45
|
handleToggleDropdown(event: boolean): void;
|
|
46
|
+
handleBlur(): void;
|
|
42
47
|
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>;
|
|
48
|
+
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"; "onBlur": "onBlur"; }, never, never, true, never>;
|
|
44
49
|
}
|
|
@@ -50,7 +50,18 @@ export declare class MaskDirective implements OnInit {
|
|
|
50
50
|
* @param value The current value from the input field.
|
|
51
51
|
*/
|
|
52
52
|
private formatValue;
|
|
53
|
+
/**
|
|
54
|
+
* Sets the cursor position to the end of the input field.
|
|
55
|
+
*/
|
|
53
56
|
private setCursorToEnd;
|
|
57
|
+
/**
|
|
58
|
+
* Calculates the correct cursor position after formatting.
|
|
59
|
+
* Accounts for mask characters that are automatically inserted.
|
|
60
|
+
* @param oldCursorPos - The cursor position before formatting
|
|
61
|
+
* @param oldValue - The value before formatting
|
|
62
|
+
* @returns The new cursor position
|
|
63
|
+
*/
|
|
64
|
+
private calculateCursorPosition;
|
|
54
65
|
private dispatchRealValueChange;
|
|
55
66
|
/**
|
|
56
67
|
* Public method to get the current unmasked "real" value.
|
|
@@ -45,7 +45,7 @@ export declare class NumberFormatDirective implements OnInit {
|
|
|
45
45
|
* HostListener for the 'input' event on the host element.
|
|
46
46
|
* This triggers whenever the user types or pastes content into the input.
|
|
47
47
|
* It extracts the numeric value from the current input, updates the
|
|
48
|
-
* display with the formatted number,
|
|
48
|
+
* display with the formatted number, restores the cursor position,
|
|
49
49
|
* and dispatches a 'realValueChange' event with the unformatted numeric value.
|
|
50
50
|
* @param event - The InputEvent object.
|
|
51
51
|
*/
|
|
@@ -91,11 +91,18 @@ export declare class NumberFormatDirective implements OnInit {
|
|
|
91
91
|
private updateDisplayValue;
|
|
92
92
|
/**
|
|
93
93
|
* Sets the cursor position to the end of the input field.
|
|
94
|
-
* This is typically called after the input value is reformatted
|
|
95
|
-
* the cursor from jumping to an unexpected position.
|
|
96
|
-
* Uses `setTimeout` to ensure the operation occurs after Angular's view update.
|
|
94
|
+
* This is typically called after the input value is reformatted.
|
|
97
95
|
*/
|
|
98
96
|
private setCursorToEnd;
|
|
97
|
+
/**
|
|
98
|
+
* Calculates the correct cursor position after formatting.
|
|
99
|
+
* Accounts for added or removed thousand separators and prefix.
|
|
100
|
+
* @param oldCursorPos - The cursor position before formatting
|
|
101
|
+
* @param oldValue - The value before formatting
|
|
102
|
+
* @param newValue - The value after formatting
|
|
103
|
+
* @returns The new cursor position
|
|
104
|
+
*/
|
|
105
|
+
private calculateCursorPosition;
|
|
99
106
|
/**
|
|
100
107
|
* Dispatches a custom event named 'realValueChange' from the host element.
|
|
101
108
|
* The event's `detail` property contains the unformatted `realValue`.
|
|
@@ -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
|
*/
|
|
@@ -201,6 +202,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
201
202
|
dispatchCount: import("@angular/core").Signal<number>;
|
|
202
203
|
onBlur: import("@angular/core").OutputEmitterRef<void>;
|
|
203
204
|
onFocused: import("@angular/core").OutputEmitterRef<void>;
|
|
205
|
+
onReset: import("@angular/core").OutputEmitterRef<void>;
|
|
204
206
|
onValueChange: import("@angular/core").OutputEmitterRef<string | number | null>;
|
|
205
207
|
/**
|
|
206
208
|
* An output signal that emits the value of the added option.
|
|
@@ -409,5 +411,5 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
409
411
|
onDropdownBackgroundClick(event: MouseEvent): void;
|
|
410
412
|
onDropdownIconClick(event: MouseEvent): void;
|
|
411
413
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }, null]>;
|
|
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>;
|
|
414
|
+
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"; "onReset": "onReset"; "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>;
|
|
413
415
|
}
|
|
@@ -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): 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
|
}
|