carriera-intern-components 1.1.189 → 1.1.191
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/drop-zone/drop-zone.component.d.ts +2 -1
- package/app/components/input/directives/helpers/index.d.ts +1 -0
- package/app/components/input/directives/helpers/mask.helper.d.ts +15 -0
- package/app/components/input/directives/mask.directive.d.ts +2 -16
- package/app/components/input/directives/password.directive.d.ts +2 -1
- package/app/components/input/models/input.model.d.ts +3 -0
- package/app/utils/constants/index.d.ts +1 -0
- package/app/utils/constants/input-character-sets.constants.d.ts +17 -0
- package/app/utils/index.d.ts +1 -0
- package/fesm2022/carriera-intern-components.mjs +241 -73
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles.scss +1 -1
|
@@ -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<18 | 22 | 32 | 74
|
|
17
|
+
size: import("@angular/core").InputSignal<160 | 18 | 22 | 32 | 74>;
|
|
18
18
|
/**
|
|
19
19
|
* Whether the avatar should be rounded or not.
|
|
20
20
|
* @type {boolean}
|
|
@@ -33,6 +33,7 @@ export declare class DropZoneComponent {
|
|
|
33
33
|
rounded: import("@angular/core").InputSignal<boolean>;
|
|
34
34
|
files: import("@angular/core").InputSignal<FileResponse[]>;
|
|
35
35
|
deletedFileIds: import("@angular/core").InputSignal<number[]>;
|
|
36
|
+
maxCountFiles: import("@angular/core").InputSignal<number>;
|
|
36
37
|
/**
|
|
37
38
|
* A input that holds an FormGroup object that is used to update the form validity when the crop mode is closed.
|
|
38
39
|
*/
|
|
@@ -181,5 +182,5 @@ export declare class DropZoneComponent {
|
|
|
181
182
|
setInvalid(): void;
|
|
182
183
|
clearInvalid(): void;
|
|
183
184
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropZoneComponent, never>;
|
|
184
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropZoneComponent, "cai-drop-zone", never, { "crop": { "alias": "crop"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; "deletedFileIds": { "alias": "deletedFileIds"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "excludedFileTypes": { "alias": "excludedFileTypes"; "required": false; "isSignal": true; }; "fileTypes": { "alias": "fileTypes"; "required": false; "isSignal": true; }; }, { "onDeletedFileIds": "onDeletedFileIds"; "docsChange": "docsChange"; }, never, never, true, never>;
|
|
185
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropZoneComponent, "cai-drop-zone", never, { "crop": { "alias": "crop"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; "deletedFileIds": { "alias": "deletedFileIds"; "required": false; "isSignal": true; }; "maxCountFiles": { "alias": "maxCountFiles"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "excludedFileTypes": { "alias": "excludedFileTypes"; "required": false; "isSignal": true; }; "fileTypes": { "alias": "fileTypes"; "required": false; "isSignal": true; }; }, { "onDeletedFileIds": "onDeletedFileIds"; "docsChange": "docsChange"; }, never, never, true, never>;
|
|
185
186
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mask.helper';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class MaskHelper {
|
|
2
|
+
static extractUserInput(value: string): string;
|
|
3
|
+
static isPlaceholder(char: string): boolean;
|
|
4
|
+
static charMatchesPlaceholder(char: string, placeholder: string): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Applies the mask to a given string of user input.
|
|
7
|
+
* @param realValue The clean user input.
|
|
8
|
+
* @param mask The mask pattern.
|
|
9
|
+
* @returns An object with the formatted value and the final real value.
|
|
10
|
+
*/
|
|
11
|
+
static applyMask(realValue: string, mask: string): {
|
|
12
|
+
formattedValue: string;
|
|
13
|
+
finalRealValue: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -11,6 +11,7 @@ export declare class MaskDirective implements OnInit {
|
|
|
11
11
|
* @example '(000) 000-0000' for a phone number.
|
|
12
12
|
*/
|
|
13
13
|
appMask: import("@angular/core").InputSignal<string>;
|
|
14
|
+
reveal: import("@angular/core").InputSignal<number>;
|
|
14
15
|
/**
|
|
15
16
|
* Stores the unmasked, "real" value of the input, containing only
|
|
16
17
|
* the characters entered by the user that fit the mask placeholders.
|
|
@@ -49,21 +50,6 @@ export declare class MaskDirective implements OnInit {
|
|
|
49
50
|
* @param value The current value from the input field.
|
|
50
51
|
*/
|
|
51
52
|
private formatValue;
|
|
52
|
-
/**
|
|
53
|
-
* Applies the mask to a given string of user input.
|
|
54
|
-
* @param realValue The clean user input.
|
|
55
|
-
* @param mask The mask pattern.
|
|
56
|
-
* @returns An object with the formatted value and the final real value.
|
|
57
|
-
*/
|
|
58
|
-
private applyMask;
|
|
59
|
-
/**
|
|
60
|
-
* Extracts valid user input characters from a string.
|
|
61
|
-
* @param value The string to clean.
|
|
62
|
-
* @returns A string containing only valid mask characters (digits/letters).
|
|
63
|
-
*/
|
|
64
|
-
private extractUserInput;
|
|
65
|
-
private isPlaceholder;
|
|
66
|
-
private charMatchesPlaceholder;
|
|
67
53
|
private setCursorToEnd;
|
|
68
54
|
private dispatchRealValueChange;
|
|
69
55
|
/**
|
|
@@ -77,5 +63,5 @@ export declare class MaskDirective implements OnInit {
|
|
|
77
63
|
*/
|
|
78
64
|
setRealValue(value: string): void;
|
|
79
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaskDirective, never>;
|
|
80
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MaskDirective, "[appMask]", never, { "appMask": { "alias": "appMask"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
66
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MaskDirective, "[appMask]", never, { "appMask": { "alias": "appMask"; "required": false; "isSignal": true; }; "reveal": { "alias": "reveal"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
81
67
|
}
|
|
@@ -19,6 +19,7 @@ export declare class PasswordDirective implements OnInit {
|
|
|
19
19
|
* password should be revealed. Defaults to 0 (fully masked).
|
|
20
20
|
*/
|
|
21
21
|
reveal: import("@angular/core").InputSignal<number>;
|
|
22
|
+
appMask: import("@angular/core").InputSignal<string>;
|
|
22
23
|
/**
|
|
23
24
|
* Stores the actual, unmasked password value,
|
|
24
25
|
* while the input element displays a masked version.
|
|
@@ -94,5 +95,5 @@ export declare class PasswordDirective implements OnInit {
|
|
|
94
95
|
*/
|
|
95
96
|
setRealValue(value: string): void;
|
|
96
97
|
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordDirective, never>;
|
|
97
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PasswordDirective, "[appPassword]", never, { "appPassword": { "alias": "appPassword"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "account": { "alias": "account"; "required": false; "isSignal": true; }; "reveal": { "alias": "reveal"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
98
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PasswordDirective, "[appPassword]", never, { "appPassword": { "alias": "appPassword"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "account": { "alias": "account"; "required": false; "isSignal": true; }; "reveal": { "alias": "reveal"; "required": false; "isSignal": true; }; "appMask": { "alias": "appMask"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
98
99
|
}
|
|
@@ -41,6 +41,9 @@ export interface CaiInputConfig {
|
|
|
41
41
|
removable?: boolean;
|
|
42
42
|
autofocus?: boolean;
|
|
43
43
|
customErrors?: CustomError[];
|
|
44
|
+
disabledCharacters?: string[];
|
|
45
|
+
enabledCharacters?: string[];
|
|
46
|
+
spacesAllowed?: number;
|
|
44
47
|
}
|
|
45
48
|
export type CustomError = {
|
|
46
49
|
name: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './input-character-sets.constants';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const INPUT_CHARACTER_SETS: {
|
|
2
|
+
readonly DIGITS: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
3
|
+
readonly FRENCH_LETTERS: readonly ["ç", "é", "â", "ê", "î", "ô", "û", "à", "è", "ì", "ò", "ù", "ë", "ï", "ü"];
|
|
4
|
+
readonly LETTERS: readonly ["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"];
|
|
5
|
+
readonly BASIC_PUNCTUATION: readonly [".", ",", "!", "?", ";", ":"];
|
|
6
|
+
readonly COMMON_SYMBOLS: readonly ["@", "#", "$", "%", "&", "*", "+", "-", "=", "_"];
|
|
7
|
+
readonly BRACKETS: readonly ["(", ")", "[", "]", "{", "}"];
|
|
8
|
+
readonly QUOTES: readonly ["\"", "'", "`"];
|
|
9
|
+
readonly WHITESPACE: readonly [" ", "\t"];
|
|
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
|
+
readonly ALPHANUMERIC_WITH_SPACES: string[];
|
|
12
|
+
readonly EMAIL_SPECIAL: readonly ["@", ".", "-", "_", "+"];
|
|
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
|
+
};
|
package/app/utils/index.d.ts
CHANGED