carriera-intern-components 0.0.91 → 0.0.92
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/input/input.component.d.ts +97 -127
- package/app/components/input/models/dispatch.model.d.ts +10 -2
- package/app/components/input/models/input.model.d.ts +47 -1
- package/fesm2022/carriera-intern-components.mjs +654 -480
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public/assets/icons/cai-edit2.svg +3 -0
- package/public/assets/json/icons.json +4 -0
|
@@ -2,10 +2,10 @@ import { 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';
|
|
5
|
+
import { MaskDirective } from './directives/mask.directive';
|
|
5
6
|
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
6
|
-
import { Broker, CaiInputConfig, DropdownOption, LabelColor, LabelOption } from './models/input.model';
|
|
7
|
+
import { Broker, CaiInputConfig, Contact, DepartmentContactsPair, DropdownOption, LabelColor, LabelOption, Shipper } from './models/input.model';
|
|
7
8
|
import { Dispatch, DispatchBoard } from './models';
|
|
8
|
-
import { MaskDirective } from './directives/mask.directive';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
11
|
* A reusable input component that integrates with Angular Forms and supports
|
|
@@ -31,8 +31,8 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
31
31
|
- `reveal`: For password inputs, the number of characters to reveal from the end.
|
|
32
32
|
- `icon`: Name of an icon to display (e.g., `'cai-email'`).
|
|
33
33
|
- `iconColor`: Color of the displayed icon (e.g., `'#FF0000'`).
|
|
34
|
-
- `dropdown`: If `true`, the input is associated with a dropdown menu, can also have `'dispatch'`, `'broker'` or `'label'` variants.
|
|
35
|
-
- `options`: An array of options for the dropdown can be of type `DropdownOption[]` | `LabelOption[]` | `DispatchBoard[]` | `Broker[]`.
|
|
34
|
+
- `dropdown`: If `true`, the input is associated with a dropdown menu, can also have `'dispatch'`, `'ftl-dispatch'`, `'broker'`, `'contact'`, `'shipper'` or `'label'` variants.
|
|
35
|
+
- `options`: An array of options for the dropdown can be of type `DropdownOption[]` | `LabelOption[]` | `DispatchBoard[]` | `Broker[]` | `DepartmentContactsPair[]` | `Shipper[]`.
|
|
36
36
|
- `labelColors`: An array of label colors for the label picker.
|
|
37
37
|
- `search`: Enables search within the dropdown.
|
|
38
38
|
- `add`: Enables 'add new' functionality in the dropdown.
|
|
@@ -47,43 +47,101 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
47
47
|
- `disabled`: If `true`, the input is disabled (for use without reactive form).
|
|
48
48
|
- `passwordRequirements`: If `true`, shows password requirements for password inputs.
|
|
49
49
|
- `optionValue`: The value to use in the formControl for the selected option in the dropdown.
|
|
50
|
-
|
|
51
50
|
*/
|
|
52
51
|
config: import("@angular/core").InputSignal<CaiInputConfig>;
|
|
52
|
+
/**
|
|
53
|
+
* Input property to hold the dropdown options.
|
|
54
|
+
*/
|
|
55
|
+
options: import("@angular/core").InputSignal<Dispatch[] | DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Input property to hold the label colors for the label picker.
|
|
58
|
+
*/
|
|
59
|
+
labelColors: import("@angular/core").InputSignal<LabelColor[] | undefined>;
|
|
53
60
|
/**
|
|
54
61
|
* Internal signal to track the disabled state of the input.
|
|
55
|
-
* This state is managed by the `ControlValueAccessor`'s `setDisabledState`
|
|
56
|
-
* method, which is called by Angular's Forms API when the associated
|
|
57
|
-
* form control's status changes. Defaults to `false`.
|
|
58
62
|
*/
|
|
59
63
|
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
60
64
|
/**
|
|
61
65
|
* Holds the internal, unmasked, and unformatted value of the input.
|
|
62
|
-
* This signal represents the component's "source of truth" for its value.
|
|
63
|
-
* It is updated by user input (via `onInput` or `onRealValueChange`) and
|
|
64
|
-
* programmatically by the `ControlValueAccessor`'s `writeValue` method.
|
|
65
|
-
* The value from this signal is what is propagated back to the parent `FormControl`.
|
|
66
66
|
*/
|
|
67
67
|
value: import("@angular/core").WritableSignal<string>;
|
|
68
68
|
/**
|
|
69
69
|
* Tracks the visibility state for inputs of `type='password'`.
|
|
70
|
-
* When `true`, the password's characters are shown; when `false`, they are
|
|
71
|
-
* masked. This is toggled by the `toggleVisibility` method.
|
|
72
|
-
* Defaults to `false`.
|
|
73
70
|
*/
|
|
74
71
|
visible: import("@angular/core").WritableSignal<boolean>;
|
|
72
|
+
/**
|
|
73
|
+
* A signal that holds the locally added options.
|
|
74
|
+
*/
|
|
75
|
+
localOptions: import("@angular/core").WritableSignal<Dispatch[] | DropdownOption[] | LabelOption[] | Broker[] | DispatchBoard[] | DepartmentContactsPair[] | Shipper[]>;
|
|
76
|
+
/**
|
|
77
|
+
* A signal that holds the currently selected option from the dropdown.
|
|
78
|
+
* @type {Signal<DropdownOption | null>}
|
|
79
|
+
*/
|
|
80
|
+
selectedOption: import("@angular/core").WritableSignal<DropdownOption | null>;
|
|
81
|
+
/**
|
|
82
|
+
* A signal that indicates whether a new option is being added.
|
|
83
|
+
*/
|
|
84
|
+
isAdding: import("@angular/core").WritableSignal<boolean>;
|
|
85
|
+
selectedLabel: import("@angular/core").WritableSignal<LabelOption | null>;
|
|
86
|
+
selectedColor: import("@angular/core").WritableSignal<LabelColor>;
|
|
87
|
+
isPickingColor: import("@angular/core").WritableSignal<boolean>;
|
|
88
|
+
selectedDispatch: import("@angular/core").WritableSignal<Dispatch | null>;
|
|
89
|
+
foldedBoards: import("@angular/core").WritableSignal<number[]>;
|
|
90
|
+
selectedBroker: import("@angular/core").WritableSignal<Broker | null>;
|
|
91
|
+
selectedContact: import("@angular/core").WritableSignal<Contact | null>;
|
|
92
|
+
selectedShipper: import("@angular/core").WritableSignal<Shipper | null>;
|
|
93
|
+
/**
|
|
94
|
+
* A computed signal that indicates whether the placeholder selected option should be shown.
|
|
95
|
+
*/
|
|
96
|
+
hasText: import("@angular/core").Signal<boolean>;
|
|
75
97
|
/**
|
|
76
98
|
* A computed signal that dynamically calculates the step value for number inputs.
|
|
77
|
-
* The step value changes based on the magnitude of the current `value()`.
|
|
78
|
-
* This allows for more intuitive incrementing and decrementing (e.g., smaller
|
|
79
|
-
* steps for smaller numbers, larger steps for larger numbers).
|
|
80
99
|
*/
|
|
81
100
|
step: import("@angular/core").Signal<1000 | 5000 | 10000 | 20000>;
|
|
101
|
+
dispatchCount: import("@angular/core").Signal<number>;
|
|
102
|
+
filteredDispatches: import("@angular/core").Signal<DispatchBoard[]>;
|
|
103
|
+
/**
|
|
104
|
+
* A computed signal that provides the current list of options to display in the dropdown.
|
|
105
|
+
*
|
|
106
|
+
* If `search` is `false`, it returns the full `dropdownOptions`.
|
|
107
|
+
* If `search` is `true`, it filters `dropdownOptions` based on the `value` signal,
|
|
108
|
+
* performing a case-insensitive partial text match.
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
filteredOptions: import("@angular/core").Signal<DropdownOption[]>;
|
|
112
|
+
filteredLabels: import("@angular/core").Signal<LabelOption[]>;
|
|
113
|
+
filteredBrokers: import("@angular/core").Signal<Broker[]>;
|
|
114
|
+
filteredContacts: import("@angular/core").Signal<DepartmentContactsPair[]>;
|
|
115
|
+
filteredShippers: import("@angular/core").Signal<Shipper[]>;
|
|
116
|
+
/**
|
|
117
|
+
* An output signal that emits the value of the added option.
|
|
118
|
+
*/
|
|
119
|
+
onOptionAdded: import("@angular/core").OutputEmitterRef<DropdownOption | LabelOption>;
|
|
120
|
+
/**
|
|
121
|
+
* An output signal that emits when the user clicks on the "ADD NEW" button in the dropdown.
|
|
122
|
+
*/
|
|
123
|
+
onAdd: import("@angular/core").OutputEmitterRef<void>;
|
|
124
|
+
/**
|
|
125
|
+
* An output signal that emits the value of the changed dropdown option.
|
|
126
|
+
*/
|
|
127
|
+
onSelectionChange: import("@angular/core").OutputEmitterRef<any>;
|
|
82
128
|
inputRef: ElementRef<HTMLInputElement>;
|
|
129
|
+
dropdown: NgbPopover;
|
|
83
130
|
PasswordDirective: PasswordDirective;
|
|
84
131
|
NumberFormatDirective: NumberFormatDirective;
|
|
85
132
|
MaskDirective: MaskDirective;
|
|
86
|
-
|
|
133
|
+
dropdownOptionsRef: any;
|
|
134
|
+
dispatchesRef: any;
|
|
135
|
+
ftlDispatchRef: any;
|
|
136
|
+
labelPickerRef: any;
|
|
137
|
+
brokerRef: any;
|
|
138
|
+
contactRef: any;
|
|
139
|
+
shipperRef: any;
|
|
140
|
+
selectedDispatchRef: any;
|
|
141
|
+
selectedLabelRef: any;
|
|
142
|
+
selectedBrokerRef: any;
|
|
143
|
+
selectedContactRef: any;
|
|
144
|
+
selectedShipperRef: any;
|
|
87
145
|
/**
|
|
88
146
|
* Constructor for the InputComponent.
|
|
89
147
|
* It injects NgControl to integrate with Angular's forms API.
|
|
@@ -96,10 +154,6 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
96
154
|
* Handles the native 'input' event from the HTMLInputElement.
|
|
97
155
|
* Updates the component's internal value and notifies Angular forms
|
|
98
156
|
* about the change.
|
|
99
|
-
* For 'password' type (when not visible) and 'number' type, it relies
|
|
100
|
-
* on associated directives (PasswordDirective, NumberFormatDirective)
|
|
101
|
-
* to get the real value, as the displayed value might be
|
|
102
|
-
* masked or formatted.
|
|
103
157
|
* @param event - The input event object.
|
|
104
158
|
*/
|
|
105
159
|
onInput(event: Event): void;
|
|
@@ -111,34 +165,31 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
111
165
|
* @param event - A CustomEvent containing the new real value in `event.detail`.
|
|
112
166
|
*/
|
|
113
167
|
onRealValueChange(event: CustomEvent): void;
|
|
168
|
+
onChange: (_: any) => void;
|
|
169
|
+
onTouched: () => void;
|
|
170
|
+
registerOnChange(fn: any): void;
|
|
171
|
+
registerOnTouched(fn: any): void;
|
|
172
|
+
setDisabledState(isDisabled: boolean): void;
|
|
173
|
+
/**
|
|
174
|
+
* Writes a new value to the element. (ControlValueAccessor)
|
|
175
|
+
*/
|
|
176
|
+
writeValue(value: string): void;
|
|
114
177
|
/**
|
|
115
178
|
* Increments the value of a number input by the current step.
|
|
116
|
-
* If the current value is not a valid number, it starts from the `min` input.
|
|
117
|
-
* After updating, it notifies forms, updates the view, and focuses the input.
|
|
118
|
-
* @param event - The MouseEvent that triggered the increment.
|
|
119
179
|
*/
|
|
120
180
|
increment(event: MouseEvent): void;
|
|
121
181
|
/**
|
|
122
182
|
* Decrements the value of a number input by the current step.
|
|
123
|
-
* If the current value is not a valid number, it starts from the `min` input.
|
|
124
|
-
* The value will not go below the minimum value.
|
|
125
|
-
* After updating, it notifies forms, updates the view, and focuses the input.
|
|
126
|
-
* @param event - The MouseEvent that triggered the decrement.
|
|
127
183
|
*/
|
|
128
184
|
decrement(event: MouseEvent): void;
|
|
129
185
|
/**
|
|
130
186
|
* Toggles the visibility of the password input.
|
|
131
|
-
* Toggles the `visible` state and updates the input's displayed value.
|
|
132
187
|
* @param event - The MouseEvent that triggered the toggle.
|
|
133
188
|
*/
|
|
134
189
|
toggleVisibility(event: MouseEvent): void;
|
|
135
190
|
/**
|
|
136
191
|
* Sets the value in the actual HTML input element or updates the
|
|
137
192
|
* "real" value in the associated directive.
|
|
138
|
-
* - For 'password' type: If not visible, it updates the PasswordDirective's real value.
|
|
139
|
-
* If visible, it falls through to the default behavior.
|
|
140
|
-
* - For 'number' type: It updates the NumberFormatDirective's real value.
|
|
141
|
-
* - For other types (or visible password): It sets the `value` property of the native input element.
|
|
142
193
|
*/
|
|
143
194
|
setValue(): void;
|
|
144
195
|
/**
|
|
@@ -148,137 +199,56 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
148
199
|
* @param event - The MouseEvent that initiated the focus action.
|
|
149
200
|
*/
|
|
150
201
|
focus(event: MouseEvent): void;
|
|
151
|
-
onChange: (_: any) => void;
|
|
152
|
-
onTouched: () => void;
|
|
153
|
-
/**
|
|
154
|
-
* Writes a new value to the element. (ControlValueAccessor)
|
|
155
|
-
* This method is called by the Forms API to update the view when
|
|
156
|
-
* the form control's value changes programmatically.
|
|
157
|
-
* Uses `setTimeout` to ensure that `setValue` is called after the
|
|
158
|
-
* view (and potentially child directives) has been initialized,
|
|
159
|
-
* especially relevant if `writeValue` is called early in the component lifecycle.
|
|
160
|
-
* @param value - The new value to write.
|
|
161
|
-
*/
|
|
162
|
-
writeValue(value: string): void;
|
|
163
|
-
/**
|
|
164
|
-
* Registers a callback function that should be called when the
|
|
165
|
-
* control's value changes in the UI. (ControlValueAccessor)
|
|
166
|
-
* @param fn - The callback function to register.
|
|
167
|
-
*/
|
|
168
|
-
registerOnChange(fn: any): void;
|
|
169
|
-
/**
|
|
170
|
-
* Registers a callback function that should be called when the
|
|
171
|
-
* control receives a blur event. (ControlValueAccessor)
|
|
172
|
-
* @param fn - The callback function to register.
|
|
173
|
-
*/
|
|
174
|
-
registerOnTouched(fn: any): void;
|
|
175
|
-
/**
|
|
176
|
-
* This function is called by the Forms API when the control's disabled
|
|
177
|
-
* state changes. (ControlValueAccessor)
|
|
178
|
-
* @param isDisabled - True if the control should be disabled, false otherwise.
|
|
179
|
-
*/
|
|
180
|
-
setDisabledState(isDisabled: boolean): void;
|
|
181
202
|
/**
|
|
182
203
|
* Called when the input element receives focus (focus event).
|
|
183
|
-
* Triggers the `onTouched` callback to notify Angular Forms that the
|
|
184
|
-
* input has been interacted with.
|
|
185
204
|
*/
|
|
186
205
|
onFocus(event: FocusEvent): void;
|
|
187
206
|
/**
|
|
188
207
|
* Called when the input element loses focus (blur event).
|
|
189
|
-
* Triggers the `onTouched` callback to notify Angular Forms that the
|
|
190
|
-
* input has been interacted with.
|
|
191
208
|
*/
|
|
192
209
|
onBlur(): void;
|
|
193
210
|
/**
|
|
194
211
|
* Resets the input field's value to an empty string.
|
|
195
|
-
* Notifies Angular Forms of the change and updates the view.
|
|
196
212
|
*/
|
|
197
213
|
reset(): void;
|
|
198
|
-
dropdownOptionsRef: any;
|
|
199
|
-
dispatchesRef: any;
|
|
200
|
-
labelPickerRef: any;
|
|
201
|
-
brokerRef: any;
|
|
202
|
-
getDropdownRef(): any;
|
|
203
214
|
/**
|
|
204
|
-
*
|
|
215
|
+
* Returns the reference to the dropdown element based on the dropdown type.
|
|
205
216
|
*/
|
|
206
|
-
|
|
217
|
+
getDropdownRef(): any;
|
|
207
218
|
/**
|
|
208
|
-
*
|
|
219
|
+
* Returns the reference to the selected element based on the dropdown type.
|
|
209
220
|
*/
|
|
210
|
-
|
|
221
|
+
getSelectedRef(): any;
|
|
211
222
|
/**
|
|
212
|
-
*
|
|
213
|
-
* @
|
|
223
|
+
* Type guard that checks if a given property exists on an object.
|
|
224
|
+
* @param obj The object to check.
|
|
225
|
+
* @param prop The property to check for.
|
|
226
|
+
* @returns `true` if `prop` exists on `obj`, `false` otherwise.
|
|
214
227
|
*/
|
|
215
|
-
selectedOption: import("@angular/core").WritableSignal<DropdownOption | null>;
|
|
216
|
-
/**
|
|
217
|
-
* A computed signal that provides the current list of options to display in the dropdown.
|
|
218
|
-
*
|
|
219
|
-
* If `search` is `false`, it returns the full `dropdownOptions`.
|
|
220
|
-
* If `search` is `true`, it filters `dropdownOptions` based on the `value` signal,
|
|
221
|
-
* performing a case-insensitive partial text match.
|
|
222
|
-
*
|
|
223
|
-
* @type {Signal<string[]>}
|
|
224
|
-
*/
|
|
225
|
-
filteredOptions: import("@angular/core").Signal<DropdownOption[]>;
|
|
226
228
|
hasProperty<T extends object>(obj: T, prop: PropertyKey): prop is keyof T;
|
|
227
229
|
/**
|
|
228
230
|
* Handles when an option is selected from the dropdown.
|
|
229
231
|
* @param option - The selected option.
|
|
230
232
|
* @param event - The MouseEvent that initiated the selection action.
|
|
231
233
|
*/
|
|
232
|
-
handleOption(option: DropdownOption | LabelOption | Dispatch | Broker, event?: MouseEvent): void;
|
|
233
|
-
/**
|
|
234
|
-
* An output signal that emits the value of the added option.
|
|
235
|
-
* @type {Output<string>}
|
|
236
|
-
*/
|
|
237
|
-
onOptionAdded: import("@angular/core").OutputEmitterRef<DropdownOption>;
|
|
238
|
-
onLabelAdded: import("@angular/core").OutputEmitterRef<LabelOption>;
|
|
234
|
+
handleOption(option: DropdownOption | LabelOption | Dispatch | Broker | Contact, event?: MouseEvent): void;
|
|
239
235
|
/**
|
|
240
236
|
* Adds a new option to the dropdown.
|
|
241
237
|
* @param option - The option to add.
|
|
242
238
|
*/
|
|
243
239
|
addOption(): void;
|
|
244
|
-
/**
|
|
245
|
-
* An output signal that emits when the user clicks on the "ADD NEW" button in the dropdown.
|
|
246
|
-
* @type {Output<void>}
|
|
247
|
-
*/
|
|
248
|
-
onAdd: import("@angular/core").OutputEmitterRef<void>;
|
|
249
240
|
/**
|
|
250
241
|
* Handles when the user clicks on the "ADD NEW" button in the dropdown.
|
|
251
242
|
* It sets the `isAdding` signal to `true`, closes the dropdown, and focuses the input.
|
|
252
243
|
* @param event - The MouseEvent that initiated the action.
|
|
253
244
|
*/
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* A signal that indicates whether a new option is being added.
|
|
257
|
-
* @type {Signal<boolean>}
|
|
258
|
-
*/
|
|
259
|
-
isAdding: import("@angular/core").WritableSignal<boolean>;
|
|
260
|
-
/**
|
|
261
|
-
* A signal that indicates whether the placeholder selected option should be shown.
|
|
262
|
-
* @type {Signal<boolean>}
|
|
263
|
-
*/
|
|
264
|
-
hasText: import("@angular/core").Signal<boolean>;
|
|
265
|
-
dispatchCount: import("@angular/core").Signal<number>;
|
|
266
|
-
filteredDispatches: import("@angular/core").Signal<DispatchBoard[]>;
|
|
267
|
-
selectedDispatch: import("@angular/core").WritableSignal<Dispatch | null>;
|
|
268
|
-
foldedBoards: import("@angular/core").WritableSignal<number[]>;
|
|
245
|
+
handleAddingOption(event?: MouseEvent): void;
|
|
269
246
|
fold(boardId: number, event: MouseEvent): void;
|
|
270
|
-
labelColors: import("@angular/core").InputSignal<LabelColor[] | undefined>;
|
|
271
|
-
filteredLabels: import("@angular/core").Signal<LabelOption[]>;
|
|
272
|
-
selectedLabel: import("@angular/core").WritableSignal<LabelOption | null>;
|
|
273
|
-
selectedColor: import("@angular/core").WritableSignal<LabelColor>;
|
|
274
|
-
isPickingColor: import("@angular/core").WritableSignal<boolean>;
|
|
275
247
|
handleSelectColor(color: LabelColor, event?: MouseEvent): void;
|
|
276
|
-
filteredBrokers: import("@angular/core").Signal<Broker[]>;
|
|
277
|
-
selectedBroker: import("@angular/core").WritableSignal<Broker | null>;
|
|
278
248
|
getBrokerProgress(broker: Broker, disable?: boolean): {
|
|
279
249
|
activePercentageOfPaid: number;
|
|
280
250
|
status: string | null;
|
|
281
251
|
};
|
|
282
252
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }]>;
|
|
283
|
-
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; }; }, { "onOptionAdded": "onOptionAdded"; "
|
|
253
|
+
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; }; }, { "onOptionAdded": "onOptionAdded"; "onAdd": "onAdd"; "onSelectionChange": "onSelectionChange"; }, never, never, true, never>;
|
|
284
254
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AvatarColor, AvatarFile } from
|
|
1
|
+
import { AvatarColor, AvatarFile } from '../../avatar/models';
|
|
2
2
|
export type Dispatch = {
|
|
3
3
|
id: number;
|
|
4
4
|
dispatchBoardId: number;
|
|
@@ -8,7 +8,7 @@ export type Dispatch = {
|
|
|
8
8
|
driver: Driver;
|
|
9
9
|
coDriver?: Driver | null;
|
|
10
10
|
payType: string;
|
|
11
|
-
status?:
|
|
11
|
+
status?: Status | null;
|
|
12
12
|
currentLocationCoordinates?: {
|
|
13
13
|
latitude: number;
|
|
14
14
|
longitude: number;
|
|
@@ -76,3 +76,11 @@ export type TrailerType = {
|
|
|
76
76
|
logoName: string;
|
|
77
77
|
hasVolume?: boolean | null;
|
|
78
78
|
};
|
|
79
|
+
export type Status = {
|
|
80
|
+
statusValue: {
|
|
81
|
+
name: string;
|
|
82
|
+
id: number;
|
|
83
|
+
};
|
|
84
|
+
statusString: string;
|
|
85
|
+
statusCheckInNumber: string;
|
|
86
|
+
};
|
|
@@ -7,7 +7,7 @@ export interface CaiInputConfig {
|
|
|
7
7
|
reveal?: number;
|
|
8
8
|
icon?: string | null;
|
|
9
9
|
iconColor?: string;
|
|
10
|
-
dropdown?: boolean | 'dispatch' | 'label' | 'broker';
|
|
10
|
+
dropdown?: boolean | 'dispatch' | 'ftl-dispatch' | 'label' | 'broker' | 'contact' | 'shipper';
|
|
11
11
|
search?: boolean;
|
|
12
12
|
add?: boolean;
|
|
13
13
|
placeholderBehavior?: 'dynamic' | 'fade' | 'static';
|
|
@@ -57,3 +57,49 @@ export type Broker = {
|
|
|
57
57
|
loadsCount?: number;
|
|
58
58
|
revenue?: number | null;
|
|
59
59
|
};
|
|
60
|
+
export type DepartmentContactsPair = {
|
|
61
|
+
department?: Department;
|
|
62
|
+
contacts?: Contact[];
|
|
63
|
+
};
|
|
64
|
+
export type Department = {
|
|
65
|
+
id?: number;
|
|
66
|
+
name?: string | null;
|
|
67
|
+
count?: number;
|
|
68
|
+
companyUsers?: any | null;
|
|
69
|
+
};
|
|
70
|
+
export type Contact = {
|
|
71
|
+
id?: number;
|
|
72
|
+
brokerId?: number;
|
|
73
|
+
shipperId?: number;
|
|
74
|
+
phone?: string | null;
|
|
75
|
+
contactName?: string | null;
|
|
76
|
+
extensionPhone?: string | null;
|
|
77
|
+
};
|
|
78
|
+
export type Shipper = {
|
|
79
|
+
id?: number;
|
|
80
|
+
businessName?: string | null;
|
|
81
|
+
status?: number | null;
|
|
82
|
+
address?: Address | null;
|
|
83
|
+
longitude?: number | null;
|
|
84
|
+
latitude?: number | null;
|
|
85
|
+
receivingFrom?: string | null;
|
|
86
|
+
receivingTo?: string | null;
|
|
87
|
+
shippingFrom?: string | null;
|
|
88
|
+
shippingTo?: string | null;
|
|
89
|
+
receivingOpenTwentyFourHours?: boolean;
|
|
90
|
+
shippingOpenTwentyFourHours?: boolean;
|
|
91
|
+
pickupCount?: number;
|
|
92
|
+
deliveryCount?: number;
|
|
93
|
+
};
|
|
94
|
+
export type Address = {
|
|
95
|
+
city?: string | null;
|
|
96
|
+
state?: string | null;
|
|
97
|
+
county?: string | null;
|
|
98
|
+
address?: string | null;
|
|
99
|
+
street?: string | null;
|
|
100
|
+
streetNumber?: string | null;
|
|
101
|
+
country?: string | null;
|
|
102
|
+
zipCode?: string | null;
|
|
103
|
+
stateShortName?: string | null;
|
|
104
|
+
addressUnit?: string | null;
|
|
105
|
+
};
|