carriera-intern-components 0.0.99 → 0.0.991

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.
@@ -11,6 +11,7 @@ export declare class NumberFormatDirective implements OnInit {
11
11
  *
12
12
  */
13
13
  max: import("@angular/core").InputSignal<number | undefined>;
14
+ prefix: import("@angular/core").InputSignal<string>;
14
15
  /**
15
16
  * Stores the unformatted, "real" numeric value of the input.
16
17
  * This is the value that should be used for calculations or form submissions,
@@ -105,5 +106,5 @@ export declare class NumberFormatDirective implements OnInit {
105
106
  */
106
107
  setRealValue(value: string): void;
107
108
  static ɵfac: i0.ɵɵFactoryDeclaration<NumberFormatDirective, never>;
108
- static ɵdir: i0.ɵɵDirectiveDeclaration<NumberFormatDirective, "[appNumberFormat]", never, { "appNumberFormat": { "alias": "appNumberFormat"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
109
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NumberFormatDirective, "[appNumberFormat]", never, { "appNumberFormat": { "alias": "appNumberFormat"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
109
110
  }
@@ -1,4 +1,4 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { AfterViewInit, ElementRef } from '@angular/core';
2
2
  import { ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { PasswordDirective } from './directives/password.directive';
4
4
  import { NumberFormatDirective } from './directives/number-format.directive';
@@ -9,8 +9,34 @@ import * as i0 from "@angular/core";
9
9
  /**
10
10
  * This component is a generic input component that can be used to create various types of inputs.
11
11
  */
12
- export declare class InputComponent implements ControlValueAccessor {
12
+ export declare class InputComponent implements ControlValueAccessor, AfterViewInit {
13
13
  ngControl: NgControl | null;
14
+ inputRef: ElementRef<HTMLInputElement>;
15
+ containerRef: ElementRef<HTMLInputElement>;
16
+ dropdown: NgbPopover;
17
+ PasswordDirective: PasswordDirective;
18
+ NumberFormatDirective: NumberFormatDirective;
19
+ MaskDirective: MaskDirective;
20
+ dropdownOptionsRef: any;
21
+ dispatchesRef: any;
22
+ ftlDispatchRef: any;
23
+ labelPickerRef: any;
24
+ brokerRef: any;
25
+ contactRef: any;
26
+ shipperRef: any;
27
+ bankRef: any;
28
+ dispatcherRef: any;
29
+ truckRef: any;
30
+ trailerRef: any;
31
+ selectedDispatchRef: any;
32
+ selectedLabelRef: any;
33
+ selectedBrokerRef: any;
34
+ selectedContactRef: any;
35
+ selectedShipperRef: any;
36
+ selectedBankRef: any;
37
+ selectedDispatcherRef: any;
38
+ selectedTruckRef: any;
39
+ selectedTrailerRef: any;
14
40
  /**
15
41
  * Defines the unique identifier for the input element.
16
42
  * It is provided by the parent component as an Angular `input()` signal.
@@ -49,6 +75,7 @@ export declare class InputComponent implements ControlValueAccessor {
49
75
  - `optionLabel`: The key of the option to use as the label in the dropdown.
50
76
  - `subContent`: An optional slot for additional content to be displayed next to the content the user is entering. (ex. lbs, months, etc.)
51
77
  - `removable`: If `true`, displays `cai-delete` icon over clear button.
78
+ - `autofocus`: If `true`, the input will be focused when the component is initialized.
52
79
  */
53
80
  config: import("@angular/core").InputSignal<CaiInputConfig>;
54
81
  /**
@@ -118,31 +145,6 @@ export declare class InputComponent implements ControlValueAccessor {
118
145
  * An output signal that emits when the user clicks on the "CLEAR" button.
119
146
  */
120
147
  onClear: import("@angular/core").OutputEmitterRef<void>;
121
- inputRef: ElementRef<HTMLInputElement>;
122
- dropdown: NgbPopover;
123
- PasswordDirective: PasswordDirective;
124
- NumberFormatDirective: NumberFormatDirective;
125
- MaskDirective: MaskDirective;
126
- dropdownOptionsRef: any;
127
- dispatchesRef: any;
128
- ftlDispatchRef: any;
129
- labelPickerRef: any;
130
- brokerRef: any;
131
- contactRef: any;
132
- shipperRef: any;
133
- bankRef: any;
134
- dispatcherRef: any;
135
- truckRef: any;
136
- trailerRef: any;
137
- selectedDispatchRef: any;
138
- selectedLabelRef: any;
139
- selectedBrokerRef: any;
140
- selectedContactRef: any;
141
- selectedShipperRef: any;
142
- selectedBankRef: any;
143
- selectedDispatcherRef: any;
144
- selectedTruckRef: any;
145
- selectedTrailerRef: any;
146
148
  /**
147
149
  * Constructor for the InputComponent.
148
150
  * It injects NgControl to integrate with Angular's forms API.
@@ -151,6 +153,7 @@ export declare class InputComponent implements ControlValueAccessor {
151
153
  * @param ngControl - Optional NgControl instance for form integration.
152
154
  */
153
155
  constructor(ngControl: NgControl | null);
156
+ ngAfterViewInit(): void;
154
157
  /**
155
158
  * Handles the native 'input' event from the HTMLInputElement.
156
159
  * Updates the component's internal value and notifies Angular forms
@@ -199,7 +202,7 @@ export declare class InputComponent implements ControlValueAccessor {
199
202
  * like double focus or focus loss.
200
203
  * @param event - The MouseEvent that initiated the focus action.
201
204
  */
202
- focus(event: MouseEvent): void;
205
+ focus(event?: MouseEvent): void;
203
206
  /**
204
207
  * Called when the input element receives focus (focus event).
205
208
  */
@@ -20,6 +20,7 @@ export interface CaiInputConfig {
20
20
  min?: number;
21
21
  max?: number;
22
22
  step?: number | 'automatic';
23
+ prefix?: string;
23
24
  withButtons?: boolean;
24
25
  autocomplete?: string;
25
26
  list?: boolean;
@@ -28,6 +29,7 @@ export interface CaiInputConfig {
28
29
  optionValue?: string;
29
30
  optionLabel?: string;
30
31
  removable?: boolean;
32
+ autofocus?: boolean;
31
33
  }
32
34
  export declare const DropdownTypes: readonly ["dispatch", "ftl-dispatch", "label", "broker", "contact", "shipper", "bank", "dispatcher", "truck", "trailer"];
33
35
  export type DropdownType = (typeof DropdownTypes)[number];