carriera-intern-components 1.1.199 → 1.1.721

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 (111) hide show
  1. package/fesm2022/carriera-intern-components.mjs +9119 -5402
  2. package/fesm2022/carriera-intern-components.mjs.map +1 -1
  3. package/index.d.ts +2550 -3
  4. package/package.json +1 -1
  5. package/public/assets/animations/animation-document-update.json +1 -0
  6. package/public/assets/animations/animation-image.json +1 -0
  7. package/public/assets/animations/animation-logo.json +1 -0
  8. package/public/assets/animations/animation-media.json +1 -0
  9. package/public/assets/cdl.png +0 -0
  10. package/public/assets/icons/Thumb-active.svg +3 -0
  11. package/public/assets/icons/cai-drop-zone-focus.svg +48 -0
  12. package/public/assets/icons/fuel-contact/cai-contact.svg +3 -0
  13. package/public/assets/icons/general/cai-date.svg +1 -1
  14. package/public/assets/icons/general/cai-sort-descending.svg +4 -0
  15. package/public/assets/icons/interaction/cai-dislike.svg +2 -2
  16. package/public/assets/icons/interaction/cai-drag.svg +3 -0
  17. package/public/assets/icons/interaction/cai-like.svg +2 -2
  18. package/public/assets/icons/interaction/cai_time.svg +1 -1
  19. package/public/assets/icons/load/cai-parking.svg +3 -0
  20. package/public/assets/invexample.png +0 -0
  21. package/public/assets/invoice.png +0 -0
  22. package/public/assets/json/icons.json +20 -0
  23. package/src/styles/README.md +7 -5
  24. package/src/styles/_variables.scss +27 -14
  25. package/src/styles/cropper.scss +14 -8
  26. package/src/styles/custompickers.scss +704 -693
  27. package/src/styles/popover.scss +210 -4
  28. package/src/styles/review_variables.scss +5 -0
  29. package/src/styles/tooltip.scss +37 -3
  30. package/src/styles.scss +18 -6
  31. package/app/components/avatar/avatar.component.d.ts +0 -30
  32. package/app/components/avatar/models/avatar.model.d.ts +0 -28
  33. package/app/components/avatar/models/index.d.ts +0 -1
  34. package/app/components/avatar/pipes/initials.pipe.d.ts +0 -11
  35. package/app/components/copy/copy.component.d.ts +0 -23
  36. package/app/components/document-preview/document-preview.component.d.ts +0 -107
  37. package/app/components/document-preview/interfaces/document-tag.interface.d.ts +0 -4
  38. package/app/components/document-preview/interfaces/index.d.ts +0 -1
  39. package/app/components/drop-zone/drop-zone.component.d.ts +0 -192
  40. package/app/components/drop-zone/models/file.response.d.ts +0 -10
  41. package/app/components/input/directives/helpers/index.d.ts +0 -1
  42. package/app/components/input/directives/helpers/mask.helper.d.ts +0 -15
  43. package/app/components/input/directives/mask.directive.d.ts +0 -67
  44. package/app/components/input/directives/number-format.directive.d.ts +0 -120
  45. package/app/components/input/directives/password.directive.d.ts +0 -100
  46. package/app/components/input/input.component.d.ts +0 -394
  47. package/app/components/input/models/dropdown.model.d.ts +0 -272
  48. package/app/components/input/models/index.d.ts +0 -2
  49. package/app/components/input/models/input.model.d.ts +0 -62
  50. package/app/components/input/pipes/error-message.pipe.d.ts +0 -11
  51. package/app/components/input/pipes/filter-by-search.pipe.d.ts +0 -9
  52. package/app/components/input/pipes/highlight-search.d.ts +0 -13
  53. package/app/components/input/pipes/remap-pm-icons.pipe.d.ts +0 -7
  54. package/app/components/input-address/enums/input-address-layers-string.enum.d.ts +0 -4
  55. package/app/components/input-address/enums/input-address-type-string.enum.d.ts +0 -5
  56. package/app/components/input-address/input-address.component.d.ts +0 -67
  57. package/app/components/input-address/models/address-data.model.d.ts +0 -19
  58. package/app/components/input-address/models/address-list.model.d.ts +0 -6
  59. package/app/components/input-address/models/long-lat.model.d.ts +0 -4
  60. package/app/components/input-address/models/sent-address-data.model.d.ts +0 -22
  61. package/app/components/input-datetime-picker/cai-input-datetime-picker.component.d.ts +0 -103
  62. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/cai-custom-datetime-pickers.component.d.ts +0 -58
  63. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-dates-main/cai-custom-datetime-pickers-calendar-dates-main.component.d.ts +0 -41
  64. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-days/cai-custom-datetime-pickers-calendar-days.component.d.ts +0 -26
  65. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-calendar-left/cai-custom-datetime-pickers-calendar-left.component.d.ts +0 -30
  66. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/components/cai-custom-datetime-pickers-date-calendars/cai-custom-datetime-pickers-date-calendars.component.d.ts +0 -38
  67. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/config/cai-input.config.d.ts +0 -169
  68. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/config/index.d.ts +0 -1
  69. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-left-string.enum.d.ts +0 -5
  70. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-list-preview-string.enum.d.ts +0 -4
  71. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-main-string.enum.d.ts +0 -5
  72. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-scroll-type-string.enum.d.ts +0 -4
  73. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-string.enum.d.ts +0 -6
  74. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/calendar-type-string.enum.d.ts +0 -3
  75. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/enums/config.enum.d.ts +0 -7
  76. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/models/scroll-change.model.d.ts +0 -6
  77. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/models/scroll-type.model.d.ts +0 -8
  78. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/pipes/calendar-months.pipe.d.ts +0 -9
  79. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/services/calendar-datetime-picker.service.d.ts +0 -19
  80. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/strategy/calendar-strategy.d.ts +0 -30
  81. package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/utils/constants/custom-datetime-pickers.constants.d.ts +0 -19
  82. package/app/components/input-datetime-picker/enums/input-config-name-string.enum.d.ts +0 -7
  83. package/app/components/input-datetime-picker/pipes/input-clear-class.pipe.d.ts +0 -14
  84. package/app/components/input-datetime-picker/pipes/input-date-time-container-class.pipe.d.ts +0 -11
  85. package/app/components/input-datetime-picker/pipes/input-dropdown-arrow-class.pipe.d.ts +0 -11
  86. package/app/components/input-datetime-picker/pipes/input-placeholder-icon.class.pipe.d.ts +0 -11
  87. package/app/components/input-datetime-picker/pipes/show-clear.pipe.d.ts +0 -8
  88. package/app/components/pm/pm.component.d.ts +0 -76
  89. package/app/components/selected-location-field/interfaces/index.d.ts +0 -1
  90. package/app/components/selected-location-field/interfaces/selected-business-field.interface.d.ts +0 -11
  91. package/app/components/selected-location-field/selected-business-field.component.d.ts +0 -12
  92. package/app/directives/hover-svg-directives.d.ts +0 -15
  93. package/app/directives/index.d.ts +0 -3
  94. package/app/directives/infinite-scroll.directive.d.ts +0 -16
  95. package/app/directives/intersection-observer.directive.d.ts +0 -15
  96. package/app/enums/alignment.enum.d.ts +0 -4
  97. package/app/enums/general-actions.enum.d.ts +0 -58
  98. package/app/enums/index.d.ts +0 -3
  99. package/app/enums/string-placeholder.enum.d.ts +0 -3
  100. package/app/models/appFile.model.d.ts +0 -14
  101. package/app/models/pm.model.d.ts +0 -10
  102. package/app/pipes/bytes-to-human-readable.pipe.d.ts +0 -7
  103. package/app/pipes/currency.pipe.d.ts +0 -28
  104. package/app/pipes/number-format.pipe.d.ts +0 -7
  105. package/app/services/document.service.d.ts +0 -22
  106. package/app/utils/autofill-validators.d.ts +0 -10
  107. package/app/utils/constants/index.d.ts +0 -1
  108. package/app/utils/constants/input-character-sets.constants.d.ts +0 -18
  109. package/app/utils/index.d.ts +0 -2
  110. package/public/pdfjs/pdf.worker.min.mjs +0 -30
  111. package/public-api.d.ts +0 -11
@@ -1,394 +0,0 @@
1
- import { AfterViewInit, ElementRef, OnInit, ChangeDetectorRef } from '@angular/core';
2
- import { ControlValueAccessor, NgControl } from '@angular/forms';
3
- import { PasswordDirective } from './directives/password.directive';
4
- import { NumberFormatDirective } from './directives/number-format.directive';
5
- import { MaskDirective } from './directives/mask.directive';
6
- import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
7
- import { Bank, Broker, CaiInputConfig, Contact, Dispatcher, DropdownOption, LabelColor, LabelOption, Shipper, Dispatch, DropdownArrays, DropdownOptions, TruckType, TrailerType, Hazardous, State, Owner, FuelCard, PMOption, MakeOption, ColorOption, TollOption, TollTransponderOption, FuelStopStore, Franchise, DropdownGroups, Provider } from './models';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * This component is a generic input component that can be used to create various types of inputs.
11
- */
12
- export declare class InputComponent implements ControlValueAccessor, AfterViewInit, OnInit {
13
- ngControl: NgControl | null;
14
- private cdr;
15
- inputRef: ElementRef<HTMLInputElement>;
16
- containerRef: ElementRef<HTMLInputElement>;
17
- dropdown: NgbPopover;
18
- closeTooltip: NgbPopover;
19
- PasswordDirective: PasswordDirective;
20
- NumberFormatDirective: NumberFormatDirective;
21
- MaskDirective: MaskDirective;
22
- multipleRef: any;
23
- hazardousRef: any;
24
- dropdownOptionsRef: any;
25
- dispatchesRef: any;
26
- ftlDispatchRef: any;
27
- labelPickerRef: any;
28
- brokerRef: any;
29
- contactRef: any;
30
- shipperRef: any;
31
- bankRef: any;
32
- dispatcherRef: any;
33
- truckRef: any;
34
- trailerRef: any;
35
- stateRef: any;
36
- ownerRef: any;
37
- fuelcardRef: any;
38
- colorRef: any;
39
- makeRef: any;
40
- tollRef: any;
41
- fuelStopTransactionRef: any;
42
- providerRef: any;
43
- pmRef: any;
44
- selectedPmRef: any;
45
- selectedOwnerRef: any;
46
- selectedHazardousRef: any;
47
- selectedDispatchRef: any;
48
- selectedLabelRef: any;
49
- selectedBrokerRef: any;
50
- selectedContactRef: any;
51
- selectedShipperRef: any;
52
- selectedBankRef: any;
53
- selectedDispatcherRef: any;
54
- selectedTruckRef: any;
55
- selectedTrailerRef: any;
56
- selectedStateRef: any;
57
- selectedFuelcardRef: any;
58
- selectedColorRef: any;
59
- selectedMakeRef: any;
60
- selectedTollRef: any;
61
- selectedProviderRef: any;
62
- /**
63
- * Defines the unique identifier for the input element.
64
- * It is provided by the parent component as an Angular `input()` signal.
65
- */
66
- id: import("@angular/core").InputSignal<string>;
67
- /**
68
- * Configuration object for the input's behavior and appearance.
69
- * It is provided by the parent component as an Angular `input()` signal.
70
- - `type`: HTML input type (`'text'`, `'password'`, `'account'`, `'number'`).
71
- - `name`: The HTML `name` attribute.
72
- - `required`: If `true`, the input is required for form submission.
73
- - `alignment`: Text alignment within the input (`'left'` or `'right'`).
74
- - `inverse`: If `true`, renders the input in a dark mode style.
75
- - `reveal`: For password inputs, the number of characters to reveal from the end.
76
- - `icon`: Name of an icon to display (e.g., `'cai-email'`).
77
- - `iconColor`: Color of the displayed icon (e.g., `'#FF0000'`).
78
- - `dropdown`: If `true`, the input is associated with a dropdown menu, can also have `'dispatch'`, `'ftl-dispatch'`, `'broker'`, `'contact'`, `'shipper'`, `'dispatcher'`, `'truck'`, `'trailer'`, `'bank'`, `'label'`, `'state'`, `'owner'`, `'fuelcard'`, `'pm'`, or `'subcontent'` variants.
79
- - `options`: An array of options for the dropdown can be of type `DropdownOption[]` | `LabelOption[]` | `DispatchBoard[]` | `Broker[]` | `DepartmentContactsPair[]` | `Shipper[]` | `Bank[]` | `Dispatcher[]` | `TruckOption[]` | `TrailerOption[]` | `Hazardous[]` | `State[]` | `Owner[]` | `FuelCard[]` | `PMOption[]`.
80
- - `labelColors`: An array of label colors for the label picker.
81
- - `search`: Enables search within the dropdown.
82
- - `add`: Enables 'add new' functionality in the dropdown.
83
- - `placeholderBehavior`: Defines placeholder animation (`'dynamic'` , `'fade'`, `'static'`).
84
- - `errorBehavior`: Defines error animation (`'static'`, `'dynamic'`, `'floating'`).
85
- - `label`: An `aria-label` for accessibility.
86
- - `list`: If `true`, the input has no validation, no background and no separators for icons
87
- - `inTable`: If `true`, has in-table styles
88
- - `mask`: A pattern string for input masking (e.g., `'(000) 000-0000'`).
89
- - `min`: Minimum value for number inputs.
90
- - `max`: Maximum value for number inputs (e.g., `999` meaning 3 characters) or maximum length for text inputs in characters.
91
- - `textTransform`: Text transformation for text inputs (`'capitalize'`, `'uppercase'`, `'lowercase'`).
92
- - `textColor`: Text color for text inputs (`'positive'`).
93
- - `step`: Step value for number inputs. Can also be `automatic` for automatic step calculation.
94
- - `withButtons`: If `true`, adds increment/decrement buttons for number inputs.
95
- - `autocomplete`: The HTML `autocomplete` attribute.
96
- - `disabled`: If `true`, the input is disabled (for use without reactive form).
97
- - `passwordRequirements`: If `true`, shows password requirements for password inputs.
98
- - `optionValue`: The key of the option to use in the formControl for the selected option in the dropdown.
99
- - `optionLabel`: The key of the option to use as the label in the dropdown.
100
- - `subContent`: An optional slot for additional content to be displayed next to the content the user is entering. (ex. lbs, months, etc.)
101
- - `removable`: If `true`, displays `cai-delete` icon over clear button.
102
- - `autofocus`: If `true`, the input will be focused when the component is initialized.
103
- - `canOpenModal`: If `true`, the input can open a modal for adding new options.
104
- - `customErrors`: An array of custom error messages to be displayed in the input.
105
- - `isNumberFormattingDisabled`: If `true`, the input will not be formatted as a number.
106
- */
107
- config: import("@angular/core").InputSignal<CaiInputConfig>;
108
- /**
109
- * Input property to hold the dropdown options.
110
- */
111
- options: import("@angular/core").InputSignal<DropdownArrays>;
112
- preselectedOptions: import("@angular/core").InputSignal<DropdownArrays | null>;
113
- isLoading: import("@angular/core").InputSignal<boolean>;
114
- /**
115
- * Input property to hold the label colors for the label picker.
116
- */
117
- labelColors: import("@angular/core").InputSignal<LabelColor[] | undefined>;
118
- /**
119
- * Input property to hide the validation.
120
- */
121
- hideValidation: import("@angular/core").InputSignal<boolean>;
122
- /**
123
- * Input property to show the no results message.
124
- */
125
- showNoResults: import("@angular/core").InputSignal<boolean>;
126
- /**
127
- * Preselected dropdown option
128
- */
129
- preselectedUnit: import("@angular/core").InputSignal<string | null>;
130
- openGroup: import("@angular/core").WritableSignal<number | null>;
131
- closing: import("@angular/core").WritableSignal<boolean>;
132
- /**
133
- * Internal signal to track the disabled state of the input.
134
- */
135
- disabled: import("@angular/core").WritableSignal<boolean>;
136
- /**
137
- * Holds the internal, unmasked, and unformatted value of the input.
138
- */
139
- value: import("@angular/core").WritableSignal<string>;
140
- /**
141
- * Tracks the visibility state for inputs of `type='password' and 'account'`.
142
- */
143
- visible: import("@angular/core").WritableSignal<boolean>;
144
- /**
145
- * A signal that holds the locally added options.
146
- */
147
- localOptions: import("@angular/core").WritableSignal<DropdownArrays>;
148
- /**
149
- * A signal that holds the currently selected option from the dropdown.
150
- */
151
- selectedOption: import("@angular/core").WritableSignal<DropdownOptions | null>;
152
- /**
153
- * A signal that holds the currently selected options from the dropdown.
154
- */
155
- multipleSelectedOptions: import("@angular/core").WritableSignal<DropdownOptions[]>;
156
- /**
157
- * A signal that indicates whether the input is focused.
158
- */
159
- focused: import("@angular/core").WritableSignal<boolean>;
160
- /**
161
- * A signal that indicates whether the input is hovered.
162
- */
163
- hovered: import("@angular/core").WritableSignal<boolean>;
164
- /**
165
- * A signal that indicates whether a new option is being added.
166
- */
167
- isAdding: import("@angular/core").WritableSignal<boolean>;
168
- /**
169
- * A signal that tracks whether the field has been autofilled.
170
- */
171
- isAutofilled: import("@angular/core").WritableSignal<boolean>;
172
- /**
173
- * A signal that holds the currently selected color from the label picker.
174
- */
175
- selectedColor: import("@angular/core").WritableSignal<LabelColor>;
176
- isPickingColor: import("@angular/core").WritableSignal<boolean>;
177
- /**
178
- * A signal that holds the currently selected dispatch board from the dispatch board picker.
179
- */
180
- foldedBoards: import("@angular/core").WritableSignal<number[]>;
181
- randomAutocomplete: import("@angular/core").WritableSignal<string>;
182
- /**
183
- * A computed signal that indicates whether the placeholder selected option should be shown.
184
- */
185
- hasText: import("@angular/core").Signal<boolean>;
186
- /**
187
- * A signal that holds the container width to prevent ExpressionChangedAfterItHasBeenCheckedError.
188
- */
189
- containerWidth: import("@angular/core").WritableSignal<number>;
190
- /**
191
- * A computed signal that dynamically calculates the step value for number inputs.
192
- */
193
- step: import("@angular/core").Signal<number>;
194
- combinedOptions: import("@angular/core").Signal<DropdownArrays>;
195
- dispatchCount: import("@angular/core").Signal<number>;
196
- onBlur: import("@angular/core").OutputEmitterRef<void>;
197
- onFocused: import("@angular/core").OutputEmitterRef<void>;
198
- onValueChange: import("@angular/core").OutputEmitterRef<string | number | null>;
199
- /**
200
- * An output signal that emits the value of the added option.
201
- */
202
- onOptionAdded: import("@angular/core").OutputEmitterRef<string | LabelOption>;
203
- /**
204
- * An output signal that emits when the user clicks on the "ADD NEW" button in the dropdown.
205
- */
206
- onAdd: import("@angular/core").OutputEmitterRef<void>;
207
- /**
208
- * An output signal that emits the `optionValue` or `id` of the changed dropdown option.
209
- */
210
- onSelectionChange: import("@angular/core").OutputEmitterRef<any>;
211
- onSelectedObject: import("@angular/core").OutputEmitterRef<DropdownOptions | null>;
212
- onSelectedGroup: import("@angular/core").OutputEmitterRef<Franchise | null>;
213
- /**
214
- * An output signal that emits when the user clicks on the "CLEAR" button.
215
- */
216
- onClear: import("@angular/core").OutputEmitterRef<void>;
217
- /**
218
- * An output signal that emits when the user clicks on the "AUTOFILL" button.
219
- */
220
- onAutofill: import("@angular/core").OutputEmitterRef<void>;
221
- /**
222
- * An output signal that emits when the dropdown is scrolled to the bottom for infinite scroll functionality.
223
- */
224
- onScrolledToBottom: import("@angular/core").OutputEmitterRef<void>;
225
- onScrolledToBottomGroup: import("@angular/core").OutputEmitterRef<void>;
226
- onSearch: import("@angular/core").OutputEmitterRef<string>;
227
- /**
228
- * Constructor for the InputComponent.
229
- * It injects NgControl to integrate with Angular's forms API.
230
- * If NgControl is present, it sets this component as the value accessor
231
- * for the form control.
232
- * @param ngControl - Optional NgControl instance for form integration.
233
- * @param cdr - ChangeDetectorRef for manual change detection.
234
- */
235
- constructor(ngControl: NgControl | null, cdr: ChangeDetectorRef);
236
- /**
237
- * Handles autofill detection from Chrome's autofill animation.
238
- * Marks the control as autofilled and updates validity.
239
- */
240
- onAutofilled(): void;
241
- /**
242
- * Clears the autofill flag when user manually edits the field.
243
- * Re-enables normal validation.
244
- */
245
- clearAutofillFlag(): void;
246
- ngOnInit(): void;
247
- ngAfterViewInit(): void;
248
- /**
249
- * Sets up autofill detection by checking for Chrome's -webkit-autofill CSS pseudo-class
250
- */
251
- private setupAutofillDetection;
252
- /**
253
- * Updates the container width signal to prevent ExpressionChangedAfterItHasBeenCheckedError
254
- */
255
- private updateContainerWidth;
256
- /**
257
- * Handles the native 'input' event from the HTMLInputElement.
258
- * Updates the component's internal value and notifies Angular forms
259
- * about the change.
260
- * @param event - The input event object.
261
- */
262
- onInput(event: Event): void;
263
- /**
264
- * Listens for a custom 'realValueChange' event.
265
- * This event is expected to be emitted by child directives (PasswordDirective, NumberFormatDirective)
266
- * when their internal "real" value changes, allowing the parent input component
267
- * to stay in sync.
268
- * @param event - A CustomEvent containing the new real value in `event.detail`.
269
- */
270
- onRealValueChange(event: CustomEvent): void;
271
- onChange: (_: any) => void;
272
- onTouched: () => void;
273
- /**
274
- * Dispatches the onChange event with the provided value.
275
- * This method wraps the onChange call to provide a centralized way to handle value changes.
276
- * @param value - The value to pass to onChange
277
- */
278
- dispatchOnChange(value: any): void;
279
- registerOnChange(fn: any): void;
280
- registerOnTouched(fn: any): void;
281
- setDisabledState(isDisabled: boolean): void;
282
- /**
283
- * Writes a new value to the element. (ControlValueAccessor)
284
- */
285
- writeValue(value: any): void;
286
- /**
287
- * Increments the value of a number input by the current step.
288
- */
289
- increment(event: MouseEvent): void;
290
- /**
291
- * Decrements the value of a number input by the current step.
292
- */
293
- decrement(event: MouseEvent): void;
294
- /**
295
- * Toggles the visibility of the password input.
296
- * @param event - The MouseEvent that triggered the toggle.
297
- */
298
- toggleVisibility(event: MouseEvent): void;
299
- /**
300
- * Sets the value in the actual HTML input element or updates the
301
- * "real" value in the associated directive.
302
- */
303
- setValue(): void;
304
- /**
305
- * Focuses the input element.
306
- * Prevents the default action of the mouse event to avoid unintended behaviors
307
- * like double focus or focus loss.
308
- * @param event - The MouseEvent that initiated the focus action.
309
- */
310
- focus(event?: MouseEvent): void;
311
- /**
312
- * Called when the input element receives focus (focus event).
313
- */
314
- onFocus(event: FocusEvent): void;
315
- /**
316
- * Called when the input element loses focus (blur event).
317
- */
318
- dispatchOnBlur(): void;
319
- toggleHovered(value: boolean): void;
320
- /**
321
- * Resets the input field's value to an empty string.
322
- */
323
- reset(): void;
324
- closeDropdown(addNew?: boolean): void;
325
- /**
326
- * Returns the reference to the dropdown element based on the dropdown type.
327
- */
328
- getDropdownRef(): any;
329
- /**
330
- * Returns the reference to the selected element based on the dropdown type.
331
- */
332
- getSelectedRef(): any;
333
- randomizeAutocomplete(): string;
334
- /**
335
- * Type guard that checks if a given property exists on an object.
336
- * @param obj The object to check.
337
- * @param prop The property to check for.
338
- * @returns `true` if `prop` exists on `obj`, `false` otherwise.
339
- */
340
- hasProperty<T extends object>(obj: T, prop: PropertyKey): prop is keyof T;
341
- /**
342
- * Handles when an option is selected from the dropdown.
343
- * @param option - The selected option.
344
- * @param event - The MouseEvent that initiated the selection action.
345
- */
346
- handleOption(option: DropdownOptions, event?: MouseEvent): void;
347
- isSelectedOption(option: DropdownOptions): boolean;
348
- /**
349
- * Adds a new option to the dropdown.
350
- * @param option - The option to add.
351
- */
352
- addOption(): void;
353
- /**
354
- * Handles when the user clicks on the "ADD NEW" button in the dropdown.
355
- * It sets the `isAdding` signal to `true`, closes the dropdown, and focuses the input.
356
- * @param event - The MouseEvent that initiated the action.
357
- */
358
- handleAddingOption(event?: MouseEvent): void;
359
- fold(boardId: number, event: MouseEvent, group?: DropdownGroups): void;
360
- handleSelectColor(color: LabelColor, event?: MouseEvent): void;
361
- getBrokerProgress(broker: Broker, disable?: boolean): {
362
- activePercentageOfPaid: number;
363
- status: string | null;
364
- };
365
- castAsDispatch(value: unknown): Dispatch | null;
366
- castAsLabelOption(value: unknown): LabelOption | null;
367
- castAsBroker(value: unknown): Broker | null;
368
- castAsContact(value: unknown): Contact | null;
369
- castAsShipper(value: unknown): Shipper | null;
370
- castAsBank(value: unknown): Bank | null;
371
- castAsDispatcher(value: unknown): Dispatcher | null;
372
- castAsDropdownOption(value: unknown): DropdownOption | null;
373
- castAsTruckOption(value: unknown): TruckType | null;
374
- castAsTrailerOption(value: unknown): TrailerType | null;
375
- castAsHazardous(value: unknown): Hazardous | null;
376
- castAsState(value: unknown): State | null;
377
- castAsOwner(value: unknown): Owner | null;
378
- castAsFuelCard(value: unknown): FuelCard | null;
379
- castAsPMOption(value: unknown): PMOption | null;
380
- castAsColorOption(value: unknown): ColorOption | null;
381
- castAsMake(value: unknown): MakeOption | null;
382
- castAsTollOption(value: unknown): TollOption | null;
383
- castAsTollTransponderOption(value: unknown): TollTransponderOption | null;
384
- castAsFuelStopStore(value: unknown): FuelStopStore | null;
385
- castAsFranchise(value: unknown): Franchise | null;
386
- castAsProvider(value: unknown): Provider | null;
387
- /**
388
- * Handles infinite scroll event when dropdown is scrolled to bottom
389
- * Emits an event that parent components can listen to for loading more data
390
- */
391
- onDropdownScrolledToBottom(isGroup?: boolean): void;
392
- static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }, null]>;
393
- 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"; }, never, never, true, never>;
394
- }
@@ -1,272 +0,0 @@
1
- import { AvatarFile, ColorFlag } from '../../avatar/models';
2
- export type DropdownOption = {
3
- id?: number;
4
- [key: string]: any;
5
- };
6
- export type Dispatch = {
7
- id: number;
8
- dispatchBoardId: number;
9
- dispatcherId: number;
10
- truck: Truck;
11
- trailer?: Trailer | null;
12
- driver: Driver;
13
- coDriver?: Driver | null;
14
- payType: string;
15
- status?: Status | null;
16
- currentLocationCoordinates?: {
17
- latitude: number;
18
- longitude: number;
19
- };
20
- };
21
- export type DispatchBoard = {
22
- teamBoard: boolean;
23
- id: number;
24
- dispatcher: string | null;
25
- count: number;
26
- dispatches: Dispatch[];
27
- };
28
- export type Driver = {
29
- id: number;
30
- firstName: string;
31
- lastName: string;
32
- owner?: boolean | null;
33
- avatarFile?: AvatarFile | null;
34
- colorFlag?: ColorFlag | null;
35
- status?: number;
36
- address: string | null;
37
- payType: {
38
- name: string;
39
- id: number;
40
- };
41
- [key: string]: any;
42
- };
43
- export type Truck = {
44
- id: number;
45
- truckNumber: string;
46
- status: number;
47
- owner: string;
48
- color: TruckColor;
49
- truckType: TruckType;
50
- truckMakeName?: string | null;
51
- model?: string | null;
52
- year: number;
53
- };
54
- export type TruckColor = {
55
- id: number;
56
- companyId?: number | null;
57
- name: string;
58
- code: string;
59
- };
60
- export type TruckType = {
61
- id: number;
62
- companyId?: number | null;
63
- truckNumber?: string | null;
64
- name: string;
65
- logoName: string;
66
- };
67
- export type Trailer = {
68
- id: number;
69
- trailerNumber: string;
70
- status: number;
71
- owner: string | null;
72
- trailerType: TrailerType;
73
- trailerMakeName?: string | null;
74
- model?: string | null;
75
- year: number;
76
- };
77
- export type TrailerType = {
78
- id: number;
79
- companyId?: number | null;
80
- name: string;
81
- logoName: string;
82
- hasVolume?: boolean | null;
83
- };
84
- export type Status = {
85
- statusValue: {
86
- name: string;
87
- id: number;
88
- };
89
- statusString: string;
90
- statusCheckInNumber: string;
91
- };
92
- export type LabelOption = {
93
- id?: number;
94
- name?: string | null;
95
- colorId?: number;
96
- color?: string | null;
97
- code?: string | null;
98
- hoverCode?: string | null;
99
- count?: number;
100
- createdAt?: string;
101
- updatedAt?: string;
102
- };
103
- export type LabelColor = {
104
- id?: number;
105
- name?: string | null;
106
- code?: string | null;
107
- hoverCode?: string | null;
108
- count?: number;
109
- };
110
- export type Broker = {
111
- id?: number;
112
- businessName?: string | null;
113
- availableCredit?: number | null;
114
- creditLimit?: number | null;
115
- availableCreditType?: any | null;
116
- payTerm?: any | null;
117
- dnu?: boolean;
118
- ban?: boolean;
119
- status?: number;
120
- loadsCount?: number;
121
- revenue?: number | null;
122
- };
123
- export type DepartmentContactsPair = {
124
- department?: Department;
125
- contacts?: Contact[];
126
- };
127
- export type Department = {
128
- id?: number;
129
- name?: string | null;
130
- count?: number;
131
- companyUsers?: any | null;
132
- };
133
- export type Contact = {
134
- id?: number;
135
- brokerId?: number;
136
- shipperId?: number;
137
- phone?: string | null;
138
- contactName?: string | null;
139
- extensionPhone?: string | null;
140
- };
141
- export type Shipper = {
142
- id?: number;
143
- businessName?: string | null;
144
- status?: number | null;
145
- address?: Address | null;
146
- longitude?: number | null;
147
- latitude?: number | null;
148
- receivingFrom?: string | null;
149
- receivingTo?: string | null;
150
- shippingFrom?: string | null;
151
- shippingTo?: string | null;
152
- receivingOpenTwentyFourHours?: boolean;
153
- shippingOpenTwentyFourHours?: boolean;
154
- pickupCount?: number;
155
- deliveryCount?: number;
156
- };
157
- export type Address = {
158
- city?: string | null;
159
- state?: string | null;
160
- county?: string | null;
161
- address?: string | null;
162
- street?: string | null;
163
- streetNumber?: string | null;
164
- country?: string | null;
165
- zipCode?: string | null;
166
- stateShortName?: string | null;
167
- addressUnit?: string | null;
168
- };
169
- export type Bank = {
170
- id?: number;
171
- name?: string | null;
172
- logoName?: string | null;
173
- createdAt?: string;
174
- updatedAt?: string;
175
- };
176
- export type Dispatcher = {
177
- id: number;
178
- userId: number | null;
179
- fullName: string;
180
- avatarFile: AvatarFile | null;
181
- departmentId: number | null;
182
- colorFlag?: ColorFlag | null;
183
- };
184
- export type TruckOption = {
185
- id: number;
186
- companyId?: number | null;
187
- name: string;
188
- logoName: string;
189
- };
190
- export type TrailerOption = {
191
- id: number;
192
- companyId?: number | null;
193
- name: string;
194
- logoName: string;
195
- hasVolume?: boolean | null;
196
- };
197
- export type Hazardous = {
198
- id?: number;
199
- class?: number;
200
- division?: number;
201
- group?: string;
202
- description?: string;
203
- notes?: string;
204
- logoName?: string;
205
- };
206
- export type State = {
207
- id?: number;
208
- countryType?: {
209
- name: string;
210
- id: number;
211
- };
212
- stateShortName?: string;
213
- stateName?: string;
214
- counter?: number | null;
215
- };
216
- export type Owner = {
217
- id?: number;
218
- name?: string | null;
219
- ein?: string | null;
220
- };
221
- export type FuelCard = {
222
- id?: number;
223
- number?: string | null;
224
- brand?: string | null;
225
- account?: string | null;
226
- };
227
- export type PMOption = {
228
- id?: number;
229
- title?: string | null;
230
- months?: number | null;
231
- logoName?: string | null;
232
- };
233
- export type ColorOption = {
234
- id?: number;
235
- companyId?: number | null;
236
- name?: string | null;
237
- code?: string | null;
238
- hoverCode?: string | null;
239
- };
240
- export type MakeOption = {
241
- id?: number;
242
- companyId?: number | null;
243
- name?: string | null;
244
- logoName?: string | null;
245
- };
246
- export type TollOption = {
247
- groupName?: string | null;
248
- tollTransponders?: TollTransponderOption[] | null;
249
- };
250
- export type TollTransponderOption = {
251
- name?: string | null;
252
- id?: number;
253
- };
254
- export type Franchise = {
255
- id: number;
256
- businessName: string;
257
- count: number;
258
- fuelStopStores: FuelStopStore[];
259
- [key: string]: any;
260
- };
261
- export type FuelStopStore = {
262
- id: number;
263
- companyId: number;
264
- businessName: string;
265
- store: string;
266
- address: Address;
267
- [key: string]: any;
268
- };
269
- export type Provider = {
270
- id: number;
271
- name: string;
272
- };
@@ -1,2 +0,0 @@
1
- export * from './input.model';
2
- export * from './dropdown.model';