carriera-intern-components 1.1.184 → 1.1.186

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.
@@ -14,7 +14,7 @@ export declare class AvatarComponent {
14
14
  * The size of the avatar in pixels.
15
15
  * @type {Size}
16
16
  */
17
- size: import("@angular/core").InputSignal<160 | 18 | 22 | 32 | 74>;
17
+ size: import("@angular/core").InputSignal<18 | 22 | 32 | 74 | 160>;
18
18
  /**
19
19
  * Whether the avatar should be rounded or not.
20
20
  * @type {boolean}
@@ -110,6 +110,14 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
110
110
  * Input property to hold the label colors for the label picker.
111
111
  */
112
112
  labelColors: import("@angular/core").InputSignal<LabelColor[] | undefined>;
113
+ /**
114
+ * Input property to hide the validation.
115
+ */
116
+ hideValidation: import("@angular/core").InputSignal<boolean>;
117
+ /**
118
+ * Input property to show the no results message.
119
+ */
120
+ showNoResults: import("@angular/core").InputSignal<boolean>;
113
121
  /**
114
122
  * Preselected dropdown option
115
123
  */
@@ -163,6 +171,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
163
171
  * A signal that holds the currently selected dispatch board from the dispatch board picker.
164
172
  */
165
173
  foldedBoards: import("@angular/core").WritableSignal<number[]>;
174
+ randomAutocomplete: string;
166
175
  /**
167
176
  * A computed signal that indicates whether the placeholder selected option should be shown.
168
177
  */
@@ -178,6 +187,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
178
187
  combinedOptions: import("@angular/core").Signal<DropdownArrays>;
179
188
  dispatchCount: import("@angular/core").Signal<number>;
180
189
  onBlur: import("@angular/core").OutputEmitterRef<void>;
190
+ onFocused: import("@angular/core").OutputEmitterRef<void>;
181
191
  onValueChange: import("@angular/core").OutputEmitterRef<string | number | null>;
182
192
  /**
183
193
  * An output signal that emits the value of the added option.
@@ -304,6 +314,7 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
304
314
  * Returns the reference to the selected element based on the dropdown type.
305
315
  */
306
316
  getSelectedRef(): any;
317
+ randomizeAutocomplete(): void;
307
318
  /**
308
319
  * Type guard that checks if a given property exists on an object.
309
320
  * @param obj The object to check.
@@ -355,5 +366,5 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
355
366
  castAsTollOption(value: unknown): TollOption | null;
356
367
  castAsTollTransponderOption(value: unknown): TollTransponderOption | null;
357
368
  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>;
369
+ 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; }; "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
370
  }
@@ -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
+ }