carriera-intern-components 1.1.185 → 1.1.187

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.
@@ -106,10 +106,19 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
106
106
  * Input property to hold the dropdown options.
107
107
  */
108
108
  options: import("@angular/core").InputSignal<DropdownArrays>;
109
+ preselectedOptions: import("@angular/core").InputSignal<DropdownArrays | null>;
109
110
  /**
110
111
  * Input property to hold the label colors for the label picker.
111
112
  */
112
113
  labelColors: import("@angular/core").InputSignal<LabelColor[] | undefined>;
114
+ /**
115
+ * Input property to hide the validation.
116
+ */
117
+ hideValidation: import("@angular/core").InputSignal<boolean>;
118
+ /**
119
+ * Input property to show the no results message.
120
+ */
121
+ showNoResults: import("@angular/core").InputSignal<boolean>;
113
122
  /**
114
123
  * Preselected dropdown option
115
124
  */
@@ -163,6 +172,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
163
172
  * A signal that holds the currently selected dispatch board from the dispatch board picker.
164
173
  */
165
174
  foldedBoards: import("@angular/core").WritableSignal<number[]>;
175
+ randomAutocomplete: string;
166
176
  /**
167
177
  * A computed signal that indicates whether the placeholder selected option should be shown.
168
178
  */
@@ -178,6 +188,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
178
188
  combinedOptions: import("@angular/core").Signal<DropdownArrays>;
179
189
  dispatchCount: import("@angular/core").Signal<number>;
180
190
  onBlur: import("@angular/core").OutputEmitterRef<void>;
191
+ onFocused: import("@angular/core").OutputEmitterRef<void>;
181
192
  onValueChange: import("@angular/core").OutputEmitterRef<string | number | null>;
182
193
  /**
183
194
  * An output signal that emits the value of the added option.
@@ -304,6 +315,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
304
315
  * Returns the reference to the selected element based on the dropdown type.
305
316
  */
306
317
  getSelectedRef(): any;
318
+ randomizeAutocomplete(): void;
307
319
  /**
308
320
  * Type guard that checks if a given property exists on an object.
309
321
  * @param obj The object to check.
@@ -355,5 +367,5 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
355
367
  castAsTollOption(value: unknown): TollOption | null;
356
368
  castAsTollTransponderOption(value: unknown): TollTransponderOption | null;
357
369
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }, null]>;
358
- 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; }; }, { "onBlur": "onBlur"; "onValueChange": "onValueChange"; "onOptionAdded": "onOptionAdded"; "onAdd": "onAdd"; "onSelectionChange": "onSelectionChange"; "onClear": "onClear"; "onAutofill": "onAutofill"; }, never, never, true, never>;
370
+ 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; }; "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"; "onClear": "onClear"; "onAutofill": "onAutofill"; }, never, never, true, never>;
359
371
  }
@@ -18,6 +18,7 @@ export interface CaiInputConfig {
18
18
  textTransformExceptions?: string[];
19
19
  isNumberFormattingDisabled?: boolean;
20
20
  textColor?: 'positive';
21
+ isAddress?: boolean;
21
22
  isEdit?: boolean;
22
23
  placeholderBehavior?: 'dynamic' | 'fade' | 'static' | 'hidden';
23
24
  errorBehavior?: 'dynamic' | 'static' | 'floating';
@@ -0,0 +1,4 @@
1
+ export declare enum InputAddressLayersStringEnum {
2
+ ADDRESS = "Address",
3
+ LOCALITY = "Locality"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum InputAddressTypeStringEnum {
2
+ LONG_ADDRESS = "longAddress",
3
+ SHORT_ADDRESS = "shortAddress",
4
+ ROUTING_ADDRESS = "RoutingAddress"
5
+ }
@@ -0,0 +1,69 @@
1
+ import { ChangeDetectorRef, OnDestroy, OnInit, SimpleChanges, OnChanges } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
3
+ import { CaiInputConfig } from '../input/models';
4
+ import { InputComponent } from '../input/input.component';
5
+ import { AddressData } from './models/address-data.model';
6
+ import { AddressList } from './models/address-list.model';
7
+ import * as i0 from "@angular/core";
8
+ export declare class InputAddressComponent implements OnInit, ControlValueAccessor, OnDestroy, OnChanges {
9
+ superControl: NgControl;
10
+ private ref;
11
+ inputComponent: InputComponent;
12
+ private destroy$;
13
+ private controlSubscription$;
14
+ private baseConfig;
15
+ id: import("@angular/core").InputSignal<string>;
16
+ config: import("@angular/core").InputSignal<CaiInputConfig>;
17
+ type: import("@angular/core").InputSignal<string>;
18
+ required: import("@angular/core").InputSignal<boolean>;
19
+ isInTable: import("@angular/core").InputSignal<boolean>;
20
+ isFormLoaded: import("@angular/core").InputSignal<boolean>;
21
+ set activeAddress(value: AddressList | null);
22
+ set receivedAddressData(value: AddressData | null);
23
+ set receivedAddressList(value: {
24
+ addresses: string[];
25
+ } | null);
26
+ set parkingList(value: any[]);
27
+ selectedAddress: import("@angular/core").OutputEmitterRef<any>;
28
+ sentAddressData: import("@angular/core").OutputEmitterRef<any>;
29
+ sentAddressValue: import("@angular/core").OutputEmitterRef<any>;
30
+ _receivedAddressList: {
31
+ addresses: string[];
32
+ } | null;
33
+ _activeAddress: AddressList | null;
34
+ private searchLayers;
35
+ currentAddressData: AddressData | null;
36
+ addressList: AddressList[];
37
+ allowValidation: boolean;
38
+ requestSent: boolean;
39
+ closedBorder: boolean;
40
+ chosenFromDropdown: boolean;
41
+ _parkingList: any[];
42
+ isParkingAddressSelected: boolean;
43
+ inputConfig: import("@angular/core").WritableSignal<CaiInputConfig>;
44
+ isLoading: import("@angular/core").WritableSignal<boolean>;
45
+ isFocused: import("@angular/core").WritableSignal<boolean>;
46
+ constructor(superControl: NgControl, ref: ChangeDetectorRef);
47
+ writeValue(_: any): void;
48
+ onChange: (_: any) => void;
49
+ onTouched: () => void;
50
+ registerOnChange(fn: any): void;
51
+ registerOnTouched(fn: any): void;
52
+ get getSuperControl(): FormControl;
53
+ ngOnInit(): void;
54
+ ngOnChanges(changes: SimpleChanges): void;
55
+ private initializeAddressInput;
56
+ private checkSearchLayers;
57
+ private filterParkingByCity;
58
+ private checkAddressValidation;
59
+ onBlur(): void;
60
+ hideValidation(): any;
61
+ initChangesListener(): void;
62
+ onSelectDropdown(name: string | null): void;
63
+ onClearInputEvent(): void;
64
+ getAddressData(address: string): void;
65
+ toggleFocus(value: boolean): void;
66
+ ngOnDestroy(): void;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputAddressComponent, [{ self: true; }, null]>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputAddressComponent, "cai-input-address", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "isInTable": { "alias": "isInTable"; "required": false; "isSignal": true; }; "isFormLoaded": { "alias": "isFormLoaded"; "required": false; "isSignal": true; }; "activeAddress": { "alias": "activeAddress"; "required": false; }; "receivedAddressData": { "alias": "receivedAddressData"; "required": false; }; "receivedAddressList": { "alias": "receivedAddressList"; "required": false; }; "parkingList": { "alias": "parkingList"; "required": false; }; }, { "selectedAddress": "selectedAddress"; "sentAddressData": "sentAddressData"; "sentAddressValue": "sentAddressValue"; }, never, never, true, never>;
69
+ }
@@ -0,0 +1,19 @@
1
+ import { LongLat } from './long-lat.model';
2
+ export interface AddressEntity {
3
+ city?: string | null;
4
+ state?: string | null;
5
+ county?: string | null;
6
+ address?: string | null;
7
+ street?: string | null;
8
+ streetNumber?: string | null;
9
+ country?: string | null;
10
+ zipCode?: string | null;
11
+ stateShortName?: string | null;
12
+ addressUnit?: string | null;
13
+ }
14
+ export interface AddressData {
15
+ address: AddressEntity;
16
+ longLat?: LongLat;
17
+ valid: boolean;
18
+ isParking?: boolean;
19
+ }
@@ -0,0 +1,6 @@
1
+ export interface AddressList {
2
+ id?: number;
3
+ name?: string;
4
+ address?: string;
5
+ parkingAddress?: any;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface LongLat {
2
+ latitude?: number;
3
+ longitude?: number;
4
+ }
@@ -0,0 +1,22 @@
1
+ export declare const AutocompleteSearchLayer: {
2
+ readonly Venue: "Venue";
3
+ readonly Address: "Address";
4
+ readonly Street: "Street";
5
+ readonly Neighbourhood: "Neighbourhood";
6
+ readonly Borough: "Borough";
7
+ readonly LocalAdmin: "LocalAdmin";
8
+ readonly Locality: "Locality";
9
+ readonly County: "County";
10
+ readonly MacroCounty: "MacroCounty";
11
+ readonly Region: "Region";
12
+ readonly MacroRegion: "MacroRegion";
13
+ readonly Country: "Country";
14
+ readonly Coarse: "Coarse";
15
+ readonly PostalCode: "PostalCode";
16
+ };
17
+ export type AutocompleteSearchLayer = (typeof AutocompleteSearchLayer)[keyof typeof AutocompleteSearchLayer];
18
+ export interface SentAddressData {
19
+ query: string;
20
+ searchLayers: AutocompleteSearchLayer[];
21
+ closedBorder: boolean;
22
+ }