carriera-intern-components 1.1.195 → 1.1.196
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/copy/copy.component.d.ts +6 -3
- package/app/components/input/input.component.d.ts +12 -1
- package/app/components/input/models/dropdown.model.d.ts +2 -0
- package/app/components/input/models/input.model.d.ts +2 -0
- package/app/components/selected-location-field/interfaces/index.d.ts +1 -0
- package/app/components/selected-location-field/interfaces/selected-business-field.interface.d.ts +11 -0
- package/app/components/selected-location-field/selected-business-field.component.d.ts +12 -0
- package/app/directives/index.d.ts +2 -0
- package/app/directives/infinite-scroll.directive.d.ts +16 -0
- package/app/directives/intersection-observer.directive.d.ts +15 -0
- package/app/utils/constants/input-character-sets.constants.d.ts +4 -4
- package/fesm2022/carriera-intern-components.mjs +177 -24
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public/assets/icons/cai-edit.svg +3 -3
- package/public/assets/icons/fuel-contact/cai-fuel-card.svg +3 -0
- package/public/assets/icons/interaction/cai-favorite.svg +3 -0
- package/public/assets/json/icons.json +8 -0
- package/public-api.d.ts +1 -0
- package/src/styles/tooltip.scss +3 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { eAlignment } from '../../enums';
|
|
2
2
|
import { eGeneralActions } from '../../enums/general-actions.enum';
|
|
3
|
-
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap';
|
|
4
3
|
import { Clipboard } from '@angular/cdk/clipboard';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class CopyComponent {
|
|
@@ -8,13 +7,17 @@ export declare class CopyComponent {
|
|
|
8
7
|
value: import("@angular/core").InputSignal<string | undefined>;
|
|
9
8
|
alignment: import("@angular/core").InputSignal<eAlignment>;
|
|
10
9
|
copyTooltip: import("@angular/core").InputSignal<string | undefined>;
|
|
10
|
+
copyArea: import("@angular/core").InputSignal<"icon" | "full">;
|
|
11
|
+
icon: import("@angular/core").InputSignal<string | null>;
|
|
12
|
+
iconSize: import("@angular/core").InputSignal<number>;
|
|
13
|
+
iconColor: import("@angular/core").InputSignal<string | null>;
|
|
14
|
+
tooltipClass: import("@angular/core").InputSignal<string | null>;
|
|
11
15
|
copied: import("@angular/core").WritableSignal<boolean>;
|
|
12
16
|
eGeneralActions: typeof eGeneralActions;
|
|
13
17
|
eAlignment: typeof eAlignment;
|
|
14
18
|
constructor(clipboard: Clipboard);
|
|
15
|
-
tooltip: NgbTooltip;
|
|
16
19
|
onCopy(event: MouseEvent): void;
|
|
17
20
|
resetCopied(): void;
|
|
18
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<CopyComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CopyComponent, "cai-copy", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "copyTooltip": { "alias": "copyTooltip"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CopyComponent, "cai-copy", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "copyTooltip": { "alias": "copyTooltip"; "required": false; "isSignal": true; }; "copyArea": { "alias": "copyArea"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconSize": { "alias": "iconSize"; "required": false; "isSignal": true; }; "iconColor": { "alias": "iconColor"; "required": false; "isSignal": true; }; "tooltipClass": { "alias": "tooltipClass"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
20
23
|
}
|
|
@@ -215,6 +215,12 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
215
215
|
* An output signal that emits when the user clicks on the "AUTOFILL" button.
|
|
216
216
|
*/
|
|
217
217
|
onAutofill: import("@angular/core").OutputEmitterRef<void>;
|
|
218
|
+
/**
|
|
219
|
+
* An output signal that emits when the dropdown is scrolled to the bottom for infinite scroll functionality.
|
|
220
|
+
*/
|
|
221
|
+
onScrolledToBottom: import("@angular/core").OutputEmitterRef<void>;
|
|
222
|
+
onScrolledToBottomGroup: import("@angular/core").OutputEmitterRef<void>;
|
|
223
|
+
onSearch: import("@angular/core").OutputEmitterRef<string>;
|
|
218
224
|
/**
|
|
219
225
|
* Constructor for the InputComponent.
|
|
220
226
|
* It injects NgControl to integrate with Angular's forms API.
|
|
@@ -374,6 +380,11 @@ export declare class InputComponent implements ControlValueAccessor, AfterViewIn
|
|
|
374
380
|
castAsTollTransponderOption(value: unknown): TollTransponderOption | null;
|
|
375
381
|
castAsFuelStopStore(value: unknown): FuelStopStore | null;
|
|
376
382
|
castAsFranchise(value: unknown): Franchise | null;
|
|
383
|
+
/**
|
|
384
|
+
* Handles infinite scroll event when dropdown is scrolled to bottom
|
|
385
|
+
* Emits an event that parent components can listen to for loading more data
|
|
386
|
+
*/
|
|
387
|
+
onDropdownScrolledToBottom(isGroup?: boolean): void;
|
|
377
388
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; self: true; }, null]>;
|
|
378
|
-
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"; "onSelectedObject": "onSelectedObject"; "onSelectedGroup": "onSelectedGroup"; "onClear": "onClear"; "onAutofill": "onAutofill"; }, never, never, true, never>;
|
|
389
|
+
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"; "onSelectedObject": "onSelectedObject"; "onSelectedGroup": "onSelectedGroup"; "onClear": "onClear"; "onAutofill": "onAutofill"; "onScrolledToBottom": "onScrolledToBottom"; "onScrolledToBottomGroup": "onScrolledToBottomGroup"; "onSearch": "onSearch"; }, never, never, true, never>;
|
|
379
390
|
}
|
|
@@ -60,6 +60,7 @@ export type TruckColor = {
|
|
|
60
60
|
export type TruckType = {
|
|
61
61
|
id: number;
|
|
62
62
|
companyId?: number | null;
|
|
63
|
+
truckNumber?: string | null;
|
|
63
64
|
name: string;
|
|
64
65
|
logoName: string;
|
|
65
66
|
};
|
|
@@ -178,6 +179,7 @@ export type Dispatcher = {
|
|
|
178
179
|
fullName: string;
|
|
179
180
|
avatarFile: AvatarFile | null;
|
|
180
181
|
departmentId: number | null;
|
|
182
|
+
colorFlag?: ColorFlag | null;
|
|
181
183
|
};
|
|
182
184
|
export type TruckOption = {
|
|
183
185
|
id: number;
|
|
@@ -12,6 +12,7 @@ export interface CaiInputConfig {
|
|
|
12
12
|
dropdownAutocomplete?: boolean;
|
|
13
13
|
fullState?: boolean;
|
|
14
14
|
search?: boolean;
|
|
15
|
+
useOutsideSearch?: boolean;
|
|
15
16
|
add?: boolean;
|
|
16
17
|
subcontent?: string;
|
|
17
18
|
textTransform?: 'capitalize' | 'uppercase' | 'lowercase';
|
|
@@ -37,6 +38,7 @@ export interface CaiInputConfig {
|
|
|
37
38
|
passwordRequirements?: boolean;
|
|
38
39
|
canOpenModal?: boolean;
|
|
39
40
|
noSeparator?: boolean;
|
|
41
|
+
squareAvatar?: boolean;
|
|
40
42
|
optionValue?: string;
|
|
41
43
|
optionLabel?: string;
|
|
42
44
|
removable?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './selected-business-field.interface';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SelectedBusinessField } from './interfaces';
|
|
2
|
+
import { eAlignment, eGeneralActions } from '../../enums';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectedBusinessFieldComponent {
|
|
5
|
+
business: import("@angular/core").InputSignal<SelectedBusinessField>;
|
|
6
|
+
onAction: import("@angular/core").OutputEmitterRef<eGeneralActions>;
|
|
7
|
+
eGeneralActions: typeof eGeneralActions;
|
|
8
|
+
eAlignment: typeof eAlignment;
|
|
9
|
+
handleAction(action: eGeneralActions): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectedBusinessFieldComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectedBusinessFieldComponent, "cai-selected-business-field", never, { "business": { "alias": "business"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class InfiniteScrollDirective {
|
|
4
|
+
private elementRef;
|
|
5
|
+
scrollThreshold: number;
|
|
6
|
+
debounceTime: number;
|
|
7
|
+
scrolledToBottom: EventEmitter<void>;
|
|
8
|
+
private debounceTimer;
|
|
9
|
+
private isLoading;
|
|
10
|
+
constructor(elementRef: ElementRef);
|
|
11
|
+
onScroll(event: Event): void;
|
|
12
|
+
private checkScrollPosition;
|
|
13
|
+
resetLoadingState(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfiniteScrollDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InfiniteScrollDirective, "[caiInfiniteScroll]", never, { "scrollThreshold": { "alias": "scrollThreshold"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; }, { "scrolledToBottom": "scrolledToBottom"; }, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IntersectionObserverDirective implements OnInit, OnDestroy {
|
|
4
|
+
private elementRef;
|
|
5
|
+
threshold: number;
|
|
6
|
+
rootMargin: string;
|
|
7
|
+
inView: EventEmitter<boolean>;
|
|
8
|
+
private observer;
|
|
9
|
+
constructor(elementRef: ElementRef);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
private createObserver;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IntersectionObserverDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IntersectionObserverDirective, "[caiIntersectionObserver]", never, { "threshold": { "alias": "threshold"; "required": false; }; "rootMargin": { "alias": "rootMargin"; "required": false; }; }, { "inView": "inView"; }, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -10,8 +10,8 @@ export declare const INPUT_CHARACTER_SETS: {
|
|
|
10
10
|
readonly ALPHANUMERIC: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z")[];
|
|
11
11
|
readonly ALPHANUMERIC_WITH_SPACES: string[];
|
|
12
12
|
readonly EMAIL_SPECIAL: readonly ["@", ".", "-", "_", "+"];
|
|
13
|
-
readonly EMAIL_CHARACTERS: ("0" | "
|
|
14
|
-
readonly SPECIAL_EXCEPT_NAME_FRIENDLY: ("
|
|
15
|
-
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "
|
|
16
|
-
readonly SPECIAL: ("
|
|
13
|
+
readonly EMAIL_CHARACTERS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "." | "@" | "+" | "-" | "_")[];
|
|
14
|
+
readonly SPECIAL_EXCEPT_NAME_FRIENDLY: ("*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
15
|
+
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
16
|
+
readonly SPECIAL: ("*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
17
17
|
};
|