carriera-intern-components 1.1.1 → 1.1.11
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/input/input.component.d.ts +6 -2
- package/app/components/pm/pm.component.d.ts +59 -0
- package/app/models/pm.model.d.ts +5 -0
- package/fesm2022/carriera-intern-components.mjs +109 -8
- 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<
|
|
17
|
+
size: import("@angular/core").InputSignal<18 | 22 | 32 | 74 | 160>;
|
|
18
18
|
/**
|
|
19
19
|
* Whether the avatar should be rounded or not at sizes of 74px and 160px.
|
|
20
20
|
* @type {boolean}
|
|
@@ -181,6 +181,10 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
181
181
|
* An output signal that emits when the user clicks on the "CLEAR" button.
|
|
182
182
|
*/
|
|
183
183
|
onClear: import("@angular/core").OutputEmitterRef<void>;
|
|
184
|
+
/**
|
|
185
|
+
* An output signal that emits when the user clicks on the "AUTOFILL" button.
|
|
186
|
+
*/
|
|
187
|
+
onAutofill: import("@angular/core").OutputEmitterRef<void>;
|
|
184
188
|
/**
|
|
185
189
|
* Constructor for the InputComponent.
|
|
186
190
|
* It injects NgControl to integrate with Angular's forms API.
|
|
@@ -194,7 +198,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
194
198
|
* Handles autofill detection from Chrome's autofill animation.
|
|
195
199
|
* Marks the control as autofilled and updates validity.
|
|
196
200
|
*/
|
|
197
|
-
|
|
201
|
+
onAutofilled(): void;
|
|
198
202
|
/**
|
|
199
203
|
* Clears the autofill flag when user manually edits the field.
|
|
200
204
|
* Re-enables normal validation.
|
|
@@ -328,5 +332,5 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
328
332
|
castAsOwner(value: unknown): Owner | null;
|
|
329
333
|
castAsFuelCard(value: unknown): FuelCard | null;
|
|
330
334
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }, null]>;
|
|
331
|
-
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; }; "labelColors": { "alias": "labelColors"; "required": false; "isSignal": true; }; "preselectedUnit": { "alias": "preselectedUnit"; "required": false; "isSignal": true; }; }, { "onOptionAdded": "onOptionAdded"; "onAdd": "onAdd"; "onSelectionChange": "onSelectionChange"; "onClear": "onClear"; }, never, never, true, never>;
|
|
335
|
+
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; }; "labelColors": { "alias": "labelColors"; "required": false; "isSignal": true; }; "preselectedUnit": { "alias": "preselectedUnit"; "required": false; "isSignal": true; }; }, { "onOptionAdded": "onOptionAdded"; "onAdd": "onAdd"; "onSelectionChange": "onSelectionChange"; "onClear": "onClear"; "onAutofill": "onAutofill"; }, never, never, true, never>;
|
|
332
336
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { PmItem } from '../../models/pm.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PmComponent {
|
|
6
|
+
/**
|
|
7
|
+
* List of PM items passed from the parent component.
|
|
8
|
+
* Used to render all available PM options.
|
|
9
|
+
*/
|
|
10
|
+
items: PmItem[];
|
|
11
|
+
/**
|
|
12
|
+
* Event emitted when the "Add new" button is clicked.
|
|
13
|
+
* The parent component can listen to this and perform appropriate actions.
|
|
14
|
+
*/
|
|
15
|
+
onAdd: EventEmitter<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Boolean signal indicating whether the PM popover is currently visible.
|
|
18
|
+
* Used to apply conditional styling or behavior when the popover is shown or hidden.
|
|
19
|
+
*/
|
|
20
|
+
showPmPopover: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* The currently selected PM item.
|
|
23
|
+
* Used to track and display the selected item's title and logo.
|
|
24
|
+
*/
|
|
25
|
+
selectedPmItem: PmItem;
|
|
26
|
+
/**
|
|
27
|
+
* Called when the "Add new" button is clicked.
|
|
28
|
+
* Emits the `onAdd` event to notify the parent component.
|
|
29
|
+
*/
|
|
30
|
+
onAddItem(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Opens the tooltip when hovering over a PM item.
|
|
33
|
+
*/
|
|
34
|
+
onShowTooltip(tooltip: NgbTooltip): void;
|
|
35
|
+
/**
|
|
36
|
+
* Closes the tooltip when the mouse leaves a PM item.
|
|
37
|
+
*/
|
|
38
|
+
onHideTooltip(tooltip: NgbTooltip): void;
|
|
39
|
+
/**
|
|
40
|
+
* Called when the PM popover becomes visible.
|
|
41
|
+
*/
|
|
42
|
+
onPmShown(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Called when the PM popover is hidden.
|
|
45
|
+
*/
|
|
46
|
+
onPmHidden(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Called when a PM item is clicked.
|
|
49
|
+
* Sets the `selectedPmItem` with the clicked item's data.
|
|
50
|
+
*/
|
|
51
|
+
onPmItemClick(item: PmItem): void;
|
|
52
|
+
/**
|
|
53
|
+
* Clears the selected PM item.
|
|
54
|
+
* Resets id, title and logoName.
|
|
55
|
+
*/
|
|
56
|
+
onClear(): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PmComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PmComponent, "cai-pm", never, { "items": { "alias": "items"; "required": false; }; }, { "onAdd": "onAdd"; }, never, never, true, never>;
|
|
59
|
+
}
|