carriera-intern-components 1.1.54 → 1.1.55
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/avatar/avatar.component.d.ts +1 -1
- package/app/components/input-datetime-picker/cai-input-datetime-picker.component.d.ts +3 -0
- package/app/components/input-datetime-picker/components/cai-custom-datetime-pickers/cai-custom-datetime-pickers.component.d.ts +6 -2
- 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 +3 -1
- package/app/components/list-contact-dropdown/models/contact.interface.d.ts +1 -0
- package/app/components/text-area/interfaces/index.d.ts +1 -0
- package/app/components/text-area/interfaces/text-area.interface.d.ts +4 -0
- package/app/components/text-area/text-area.component.d.ts +85 -0
- package/app/utils/constants/input-character-sets.constants.d.ts +5 -5
- package/fesm2022/carriera-intern-components.mjs +296 -24
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -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<
|
|
17
|
+
size: import("@angular/core").InputSignal<22 | 18 | 32 | 74 | 160 | 28>;
|
|
18
18
|
/**
|
|
19
19
|
* Whether the avatar should be rounded or not.
|
|
20
20
|
* @type {boolean}
|
|
@@ -56,10 +56,12 @@ export declare class CaiInputDatetimePickerComponent implements AfterViewInit, C
|
|
|
56
56
|
writeValue(obj: InputChangeValue): void;
|
|
57
57
|
registerOnTouched(fn: () => void): void;
|
|
58
58
|
blurInput(): void;
|
|
59
|
+
preventInput(event: Event): void;
|
|
59
60
|
ngAfterViewInit(): void;
|
|
60
61
|
get getSuperControl(): import("@angular/forms").AbstractControl<any, any> | null;
|
|
61
62
|
get isRequired(): boolean | undefined;
|
|
62
63
|
onDatePaste(event: ClipboardEvent): void;
|
|
64
|
+
private processPastedDate;
|
|
63
65
|
changeSelection(e: any, noPreventDefault?: boolean): void;
|
|
64
66
|
changeSelectionTwo(event: KeyboardEvent, noPreventDefault?: boolean): void;
|
|
65
67
|
private isNumber;
|
|
@@ -102,6 +104,7 @@ export declare class CaiInputDatetimePickerComponent implements AfterViewInit, C
|
|
|
102
104
|
resetDateTimeInputs(): void;
|
|
103
105
|
setTimePickerTime(): void;
|
|
104
106
|
handleCloseTooltip(): void;
|
|
107
|
+
onRefocusInput(): void;
|
|
105
108
|
ngOnDestroy(): void;
|
|
106
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaiInputDatetimePickerComponent, [{ self: true; }, null]>;
|
|
107
110
|
static ɵcmp: i0.ɵɵComponentDeclaration<CaiInputDatetimePickerComponent, "cai-input-datetime-picker", never, { "id": { "alias": "id"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "formFormat": { "alias": "formFormat"; "required": false; }; }, { "clearInputEvent": "clear"; "blurInputEvent": "blurInput"; "selectLastOneForSelectionEmitter": "selectLastOneForSelectionEmitter"; "selectLastOneAfterMouseUpEmitter": "selectLastOneAfterMouseUpEmitter"; "onDatePasteEmitter": "onDatePasteEmitter"; "onFocusEmitter": "onFocusEmitter"; "changeSelectionEmmiter": "changeSelectionEmmiter"; "setSelectionEmmiter": "setSelectionEmmiter"; }, never, never, true, never>;
|
|
@@ -6,7 +6,9 @@ import { ICaInput } from './config';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class CaCustomDatetimePickersComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
8
8
|
private calendarService;
|
|
9
|
-
|
|
9
|
+
private _dateTime;
|
|
10
|
+
set dateTime(value: Date);
|
|
11
|
+
get dateTime(): Date;
|
|
10
12
|
ref: ViewContainerRef;
|
|
11
13
|
_inputConfig: ICaInput;
|
|
12
14
|
set inputConfig(config: ICaInput);
|
|
@@ -38,6 +40,7 @@ export declare class CaCustomDatetimePickersComponent implements OnInit, OnDestr
|
|
|
38
40
|
constructor(calendarService: CalendarDateTimePickerService);
|
|
39
41
|
set calendarType(calendarType: string);
|
|
40
42
|
set placeholder(placeholder: string);
|
|
43
|
+
onRefocusInput: EventEmitter<Event>;
|
|
41
44
|
ngOnInit(): void;
|
|
42
45
|
ngAfterViewInit(): void;
|
|
43
46
|
initDateChangedListener(): void;
|
|
@@ -45,6 +48,7 @@ export declare class CaCustomDatetimePickersComponent implements OnInit, OnDestr
|
|
|
45
48
|
setListPreview(value: string): void;
|
|
46
49
|
inputInFocus(): void;
|
|
47
50
|
inputBlur(): void;
|
|
51
|
+
refocusInput(event: Event): void;
|
|
48
52
|
changeOpened(): void;
|
|
49
53
|
setTime(event: Event): void;
|
|
50
54
|
setDefaultTime(event: Event): void;
|
|
@@ -54,5 +58,5 @@ export declare class CaCustomDatetimePickersComponent implements OnInit, OnDestr
|
|
|
54
58
|
checkForScrolledType(type: string): void;
|
|
55
59
|
ngOnDestroy(): void;
|
|
56
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaCustomDatetimePickersComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomDatetimePickersComponent, "cai-custom-datetime-pickers", never, { "dateTime": { "alias": "dateTime"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "calendarType": { "alias": "calendarType"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "closePopover": "closePopover"; }, never, never, true, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomDatetimePickersComponent, "cai-custom-datetime-pickers", never, { "dateTime": { "alias": "dateTime"; "required": false; }; "inputConfig": { "alias": "inputConfig"; "required": false; }; "calendarType": { "alias": "calendarType"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "closePopover": "closePopover"; "onRefocusInput": "onRefocusInput"; }, never, never, true, never>;
|
|
58
62
|
}
|
|
@@ -7,6 +7,7 @@ export declare class CaCustomDateTimePickersDateCalendarsComponent implements On
|
|
|
7
7
|
dateTime: Date;
|
|
8
8
|
isMonthAndYearOnly: boolean;
|
|
9
9
|
setListPreviewValue: EventEmitter<any>;
|
|
10
|
+
onRefocusInput: EventEmitter<any>;
|
|
10
11
|
private currentYear;
|
|
11
12
|
private currentMonth;
|
|
12
13
|
private activeMonth;
|
|
@@ -32,7 +33,8 @@ export declare class CaCustomDateTimePickersDateCalendarsComponent implements On
|
|
|
32
33
|
setListPreviewToFull(num: number): void;
|
|
33
34
|
setAutoIndex(num: number): void;
|
|
34
35
|
selectCurrentDay(event: Event): void;
|
|
36
|
+
refocusInput(event: Event): void;
|
|
35
37
|
ngOnDestroy(): void;
|
|
36
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaCustomDateTimePickersDateCalendarsComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomDateTimePickersDateCalendarsComponent, "cai-custom-datetime-pickers-date-calendars", never, { "listPreview": { "alias": "listPreview"; "required": false; }; "dateTime": { "alias": "dateTime"; "required": false; }; "isMonthAndYearOnly": { "alias": "isMonthAndYearOnly"; "required": false; }; }, { "setListPreviewValue": "setListPreviewValue"; }, never, never, true, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomDateTimePickersDateCalendarsComponent, "cai-custom-datetime-pickers-date-calendars", never, { "listPreview": { "alias": "listPreview"; "required": false; }; "dateTime": { "alias": "dateTime"; "required": false; }; "isMonthAndYearOnly": { "alias": "isMonthAndYearOnly"; "required": false; }; }, { "setListPreviewValue": "setListPreviewValue"; "onRefocusInput": "onRefocusInput"; }, never, never, true, never>;
|
|
38
40
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './text-area.interface';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap';
|
|
4
|
+
import { ITextAreaConfig } from './interfaces';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* This component is a text area component that integrates with Angular forms.
|
|
8
|
+
*/
|
|
9
|
+
export declare class TextAreaComponent implements ControlValueAccessor {
|
|
10
|
+
ngControl: NgControl | null;
|
|
11
|
+
cancelTooltip: NgbTooltip;
|
|
12
|
+
textArea: ElementRef<HTMLTextAreaElement>;
|
|
13
|
+
/**
|
|
14
|
+
* Configuration object for the text area's behavior and appearance.
|
|
15
|
+
*/
|
|
16
|
+
config: import("@angular/core").InputSignal<ITextAreaConfig>;
|
|
17
|
+
/**
|
|
18
|
+
* Holds the internal value of the text area.
|
|
19
|
+
*/
|
|
20
|
+
value: import("@angular/core").WritableSignal<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Internal signal to track the disabled state of the text area.
|
|
23
|
+
*/
|
|
24
|
+
disabled: import("@angular/core").WritableSignal<boolean>;
|
|
25
|
+
/**
|
|
26
|
+
* A signal that indicates whether the text area is focused.
|
|
27
|
+
*/
|
|
28
|
+
focused: import("@angular/core").WritableSignal<boolean>;
|
|
29
|
+
onBlur: import("@angular/core").OutputEmitterRef<void>;
|
|
30
|
+
onFocused: import("@angular/core").OutputEmitterRef<void>;
|
|
31
|
+
onValueChange: import("@angular/core").OutputEmitterRef<string | null>;
|
|
32
|
+
onClearEvent: import("@angular/core").OutputEmitterRef<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Constructor for the TextAreaComponent.
|
|
35
|
+
* It injects NgControl to integrate with Angular's forms API.
|
|
36
|
+
* @param ngControl - Optional NgControl instance for form integration.
|
|
37
|
+
*/
|
|
38
|
+
constructor(ngControl: NgControl | null);
|
|
39
|
+
onChange: (_: any) => void;
|
|
40
|
+
onTouched: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* Writes a new value to the element. (ControlValueAccessor)
|
|
43
|
+
*/
|
|
44
|
+
writeValue(value: any): void;
|
|
45
|
+
registerOnChange(fn: any): void;
|
|
46
|
+
registerOnTouched(fn: any): void;
|
|
47
|
+
setDisabledState(isDisabled: boolean): void;
|
|
48
|
+
/**
|
|
49
|
+
* Handles the native 'input' event from the HTMLTextAreaElement.
|
|
50
|
+
* Updates the component's internal value and notifies Angular forms.
|
|
51
|
+
* @param event - The input event object.
|
|
52
|
+
*/
|
|
53
|
+
onInput(event: Event): void;
|
|
54
|
+
/**
|
|
55
|
+
* Dispatches the onChange event with the provided value.
|
|
56
|
+
* @param value - The value to pass to onChange
|
|
57
|
+
*/
|
|
58
|
+
dispatchOnChange(value: any): void;
|
|
59
|
+
/**
|
|
60
|
+
* Sets the value in the actual HTML text area element.
|
|
61
|
+
*/
|
|
62
|
+
setValue(): void;
|
|
63
|
+
/**
|
|
64
|
+
* Focuses the text area element.
|
|
65
|
+
*/
|
|
66
|
+
focus(event?: MouseEvent): void;
|
|
67
|
+
/**
|
|
68
|
+
* Called when the text area receives focus.
|
|
69
|
+
*/
|
|
70
|
+
onFocus(): void;
|
|
71
|
+
/**
|
|
72
|
+
* Called when the text area loses focus.
|
|
73
|
+
*/
|
|
74
|
+
dispatchOnBlur(): void;
|
|
75
|
+
/**
|
|
76
|
+
* Resets the text area value to an empty string.
|
|
77
|
+
*/
|
|
78
|
+
reset(event?: MouseEvent): void;
|
|
79
|
+
/**
|
|
80
|
+
* Handles the clear button click.
|
|
81
|
+
*/
|
|
82
|
+
onClear(event: MouseEvent): void;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaComponent, [{ optional: true; self: true; }]>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "cai-text-area", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "onBlur": "onBlur"; "onFocused": "onFocused"; "onValueChange": "onValueChange"; "onClearEvent": "onClearEvent"; }, never, never, true, never>;
|
|
85
|
+
}
|
|
@@ -8,11 +8,11 @@ export declare const INPUT_CHARACTER_SETS: {
|
|
|
8
8
|
readonly QUOTES: readonly ["\"", "'", "`"];
|
|
9
9
|
readonly WHITESPACE: readonly [" ", "\t"];
|
|
10
10
|
readonly DBA_SPECIAL: readonly ["!", "#", "'", "$", "&", "%", "(", ")", "*", "+", ",", "-", ".", "/", ":", ";", "=", ">", "?", "[", "]", "\\", "^"];
|
|
11
|
-
readonly ALPHANUMERIC: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "i" | "p" | "q" | "s" | "u" | "
|
|
11
|
+
readonly ALPHANUMERIC: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "v" | "a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "c" | "d" | "e" | "f" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "r" | "t" | "w" | "x" | "y" | "z")[];
|
|
12
12
|
readonly ALPHANUMERIC_WITH_SPACES: string[];
|
|
13
13
|
readonly EMAIL_SPECIAL: readonly ["@", ".", "-", "_", "+"];
|
|
14
|
-
readonly EMAIL_CHARACTERS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "
|
|
15
|
-
readonly SPECIAL_EXCEPT_NAME_FRIENDLY: ("*" | "." | "," | "!" | "?" | ";" | "
|
|
16
|
-
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "*" | "." | "," | "!" | "?" | ";" | "
|
|
17
|
-
readonly SPECIAL: ("*" | "." | "," | "!" | "?" | ";" | "
|
|
14
|
+
readonly EMAIL_CHARACTERS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "_" | "v" | "a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "." | "c" | "d" | "e" | "f" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "r" | "t" | "w" | "x" | "y" | "z" | "@" | "+" | "-")[];
|
|
15
|
+
readonly SPECIAL_EXCEPT_NAME_FRIENDLY: ("*" | ":" | "/" | "_" | "." | "," | "!" | "?" | ";" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "|" | "~" | "`" | "^" | "<" | ">" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
16
|
+
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "*" | ":" | "/" | "_" | "." | "," | "!" | "?" | ";" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "|" | "~" | "`" | "^" | "<" | ">" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
17
|
+
readonly SPECIAL: ("*" | ":" | "/" | "_" | "." | "," | "!" | "?" | ";" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "|" | "~" | "`" | "^" | "<" | ">" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
18
18
|
};
|