carriera-intern-components 0.0.99 → 0.0.992

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,35 @@ 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
+ closeTooltip: NgbPopover;
18
+ PasswordDirective: PasswordDirective;
19
+ NumberFormatDirective: NumberFormatDirective;
20
+ MaskDirective: MaskDirective;
21
+ dropdownOptionsRef: any;
22
+ dispatchesRef: any;
23
+ ftlDispatchRef: any;
24
+ labelPickerRef: any;
25
+ brokerRef: any;
26
+ contactRef: any;
27
+ shipperRef: any;
28
+ bankRef: any;
29
+ dispatcherRef: any;
30
+ truckRef: any;
31
+ trailerRef: any;
32
+ selectedDispatchRef: any;
33
+ selectedLabelRef: any;
34
+ selectedBrokerRef: any;
35
+ selectedContactRef: any;
36
+ selectedShipperRef: any;
37
+ selectedBankRef: any;
38
+ selectedDispatcherRef: any;
39
+ selectedTruckRef: any;
40
+ selectedTrailerRef: any;
14
41
  /**
15
42
  * Defines the unique identifier for the input element.
16
43
  * It is provided by the parent component as an Angular `input()` signal.
@@ -27,7 +54,7 @@ export declare class InputComponent implements ControlValueAccessor {
27
54
  - `reveal`: For password inputs, the number of characters to reveal from the end.
28
55
  - `icon`: Name of an icon to display (e.g., `'cai-email'`).
29
56
  - `iconColor`: Color of the displayed icon (e.g., `'#FF0000'`).
30
- - `dropdown`: If `true`, the input is associated with a dropdown menu, can also have `'dispatch'`, `'ftl-dispatch'`, `'broker'`, `'contact'`, `'shipper'`, `'dispatcher'` or `'label'` variants.
57
+ - `dropdown`: If `true`, the input is associated with a dropdown menu, can also have `'dispatch'`, `'ftl-dispatch'`, `'broker'`, `'contact'`, `'shipper'`, `'dispatcher'`, `'truck'`, `'trailer'`, `'bank'` or `'label'` variants.
31
58
  - `options`: An array of options for the dropdown can be of type `DropdownOption[]` | `LabelOption[]` | `DispatchBoard[]` | `Broker[]` | `DepartmentContactsPair[]` | `Shipper[]` | `Bank[]` | `Dispatcher[]`.
32
59
  - `labelColors`: An array of label colors for the label picker.
33
60
  - `search`: Enables search within the dropdown.
@@ -36,10 +63,12 @@ export declare class InputComponent implements ControlValueAccessor {
36
63
  - `errorBehavior`: Defines error animation (`'static'`, `'dynamic'`, `'floating'`).
37
64
  - `label`: An `aria-label` for accessibility.
38
65
  - `list`: If `true`, the input has no validation, no background and no separators for icons
66
+ - `inTable`: If `true`, has in-table styles
39
67
  - `mask`: A pattern string for input masking (e.g., `'(000) 000-0000'`).
40
68
  - `min`: Minimum value for number inputs.
41
69
  - `max`: Maximum value for number inputs (e.g., `999` meaning 3 characters) or maximum length for text inputs in characters.
42
70
  - `textTransform`: Text transformation for text inputs (`'capitalize'`, `'uppercase'`, `'lowercase'`).
71
+ - `textColor`: Text color for text inputs (`'positive'`).
43
72
  - `step`: Step value for number inputs. Can also be `automatic` for automatic step calculation.
44
73
  - `withButtons`: If `true`, adds increment/decrement buttons for number inputs.
45
74
  - `autocomplete`: The HTML `autocomplete` attribute.
@@ -49,6 +78,7 @@ export declare class InputComponent implements ControlValueAccessor {
49
78
  - `optionLabel`: The key of the option to use as the label in the dropdown.
50
79
  - `subContent`: An optional slot for additional content to be displayed next to the content the user is entering. (ex. lbs, months, etc.)
51
80
  - `removable`: If `true`, displays `cai-delete` icon over clear button.
81
+ - `autofocus`: If `true`, the input will be focused when the component is initialized.
52
82
  */
53
83
  config: import("@angular/core").InputSignal<CaiInputConfig>;
54
84
  /**
@@ -118,31 +148,6 @@ export declare class InputComponent implements ControlValueAccessor {
118
148
  * An output signal that emits when the user clicks on the "CLEAR" button.
119
149
  */
120
150
  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
151
  /**
147
152
  * Constructor for the InputComponent.
148
153
  * It injects NgControl to integrate with Angular's forms API.
@@ -151,6 +156,7 @@ export declare class InputComponent implements ControlValueAccessor {
151
156
  * @param ngControl - Optional NgControl instance for form integration.
152
157
  */
153
158
  constructor(ngControl: NgControl | null);
159
+ ngAfterViewInit(): void;
154
160
  /**
155
161
  * Handles the native 'input' event from the HTMLInputElement.
156
162
  * Updates the component's internal value and notifies Angular forms
@@ -199,7 +205,7 @@ export declare class InputComponent implements ControlValueAccessor {
199
205
  * like double focus or focus loss.
200
206
  * @param event - The MouseEvent that initiated the focus action.
201
207
  */
202
- focus(event: MouseEvent): void;
208
+ focus(event?: MouseEvent): void;
203
209
  /**
204
210
  * Called when the input element receives focus (focus event).
205
211
  */
@@ -13,6 +13,7 @@ export interface CaiInputConfig {
13
13
  add?: boolean;
14
14
  subcontent?: string;
15
15
  textTransform?: 'capitalize' | 'uppercase' | 'lowercase';
16
+ textColor?: 'positive';
16
17
  placeholderBehavior?: 'dynamic' | 'fade' | 'static';
17
18
  errorBehavior?: 'dynamic' | 'static' | 'floating';
18
19
  label?: string;
@@ -20,14 +21,17 @@ export interface CaiInputConfig {
20
21
  min?: number;
21
22
  max?: number;
22
23
  step?: number | 'automatic';
24
+ prefix?: string;
23
25
  withButtons?: boolean;
24
26
  autocomplete?: string;
25
27
  list?: boolean;
28
+ inTable?: boolean;
26
29
  disabled?: boolean;
27
30
  passwordRequirements?: boolean;
28
31
  optionValue?: string;
29
32
  optionLabel?: string;
30
33
  removable?: boolean;
34
+ autofocus?: boolean;
31
35
  }
32
36
  export declare const DropdownTypes: readonly ["dispatch", "ftl-dispatch", "label", "broker", "contact", "shipper", "bank", "dispatcher", "truck", "trailer"];
33
37
  export type DropdownType = (typeof DropdownTypes)[number];