@testgorilla/tgo-ui 1.10.2 → 1.10.4
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/components/autocomplete/autocomplete.component.d.ts +1 -2
- package/components/dialog/dialog.component.d.ts +1 -2
- package/components/empty-state/empty-state.component.d.ts +1 -2
- package/components/field/field.component.d.ts +1 -3
- package/components/file-upload/file-upload.component.d.ts +1 -2
- package/components/navbar/navbar.component.d.ts +1 -2
- package/components/slider/slider.component.d.ts +1 -2
- package/components/stepper/stepper.component.d.ts +1 -2
- package/esm2022/assets/i18n/en.json +0 -71
- package/esm2022/components/autocomplete/autocomplete.component.mjs +10 -13
- package/esm2022/components/dialog/dialog.component.mjs +10 -13
- package/esm2022/components/empty-state/empty-state.component.mjs +9 -12
- package/esm2022/components/field/field.component.mjs +10 -13
- package/esm2022/components/file-upload/file-upload.component.mjs +10 -13
- package/esm2022/components/navbar/navbar.component.mjs +10 -13
- package/esm2022/components/slider/slider.component.mjs +10 -13
- package/esm2022/components/stepper/stepper.component.mjs +10 -13
- package/esm2022/pipes/ui-translate.pipe.mjs +9 -7
- package/esm2022/utils/localization/language.service.mjs +7 -37
- package/fesm2022/testgorilla-tgo-ui.mjs +102 -230
- package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
- package/package.json +1 -4
- package/pipes/ui-translate.pipe.d.ts +3 -0
- package/src/assets/i18n/en.json +0 -71
- package/utils/localization/language.service.d.ts +0 -17
|
@@ -79,13 +79,12 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
|
|
|
79
79
|
* @type {Language}
|
|
80
80
|
* @memberof AutocompleteComponent
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
language: Language;
|
|
83
83
|
selectionChange: EventEmitter<any>;
|
|
84
84
|
searchTextChange: EventEmitter<string>;
|
|
85
85
|
formFieldElement: ElementRef<HTMLElement>;
|
|
86
86
|
tagContainer: ElementRef<HTMLElement>;
|
|
87
87
|
autocomplete: MatAutocompleteTrigger;
|
|
88
|
-
protected lang: Language;
|
|
89
88
|
protected value: any;
|
|
90
89
|
protected inputValue: any;
|
|
91
90
|
protected isInputFocus: boolean;
|
|
@@ -54,7 +54,7 @@ export declare class DialogComponent implements OnInit, OnChanges {
|
|
|
54
54
|
* @type {Language}
|
|
55
55
|
* @memberof DialogComponent
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
language: Language;
|
|
58
58
|
/**
|
|
59
59
|
* Color of the dialog.
|
|
60
60
|
* Defaults to Test Gorilla primary color.
|
|
@@ -67,7 +67,6 @@ export declare class DialogComponent implements OnInit, OnChanges {
|
|
|
67
67
|
secondaryButtonClickEvent: EventEmitter<Event>;
|
|
68
68
|
primaryButtonClickEvent: EventEmitter<Event>;
|
|
69
69
|
disableButtons: boolean;
|
|
70
|
-
protected lang: Language;
|
|
71
70
|
protected readonly translationContext = "DIALOG.";
|
|
72
71
|
ngOnInit(): void;
|
|
73
72
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -50,7 +50,7 @@ export declare class EmptyStateComponent {
|
|
|
50
50
|
* @type {Language}
|
|
51
51
|
* @memberof EmptyStateComponent
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
language: Language;
|
|
54
54
|
/**
|
|
55
55
|
* Event triggered when the primary button is clicked.
|
|
56
56
|
* @type {Event}
|
|
@@ -72,7 +72,6 @@ export declare class EmptyStateComponent {
|
|
|
72
72
|
* @memberof TagComponent
|
|
73
73
|
*/
|
|
74
74
|
tertiaryButtonClick: EventEmitter<Event>;
|
|
75
|
-
protected lang: Language;
|
|
76
75
|
onPrimaryButtonClick(event: Event): void;
|
|
77
76
|
onSecondaryButtonClick(event: Event): void;
|
|
78
77
|
onTertiaryButtonClick(event: Event): void;
|
|
@@ -3,7 +3,6 @@ import { ControlValueAccessor } from '@angular/forms';
|
|
|
3
3
|
import { FieldType } from '../../components/field/field.model';
|
|
4
4
|
import { MatIconRegistry } from '@angular/material/icon';
|
|
5
5
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
6
|
-
import { Language } from '../../utils/localization/language.service';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class FieldComponent implements OnInit, ControlValueAccessor {
|
|
9
8
|
private matIconRegistry;
|
|
@@ -100,8 +99,7 @@ export declare class FieldComponent implements OnInit, ControlValueAccessor {
|
|
|
100
99
|
* @type {Language}
|
|
101
100
|
* @memberof FieldComponent
|
|
102
101
|
*/
|
|
103
|
-
|
|
104
|
-
protected lang: Language;
|
|
102
|
+
language: import("../../utils/localization/language.service").Language;
|
|
105
103
|
protected readonly translationContext = "FIELD.";
|
|
106
104
|
/**
|
|
107
105
|
* @ignore
|
|
@@ -51,7 +51,7 @@ export declare class FileUploadComponent implements OnInit, OnChanges, ControlVa
|
|
|
51
51
|
* @type {Language}
|
|
52
52
|
* @memberof FileUploadComponent
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
language: Language;
|
|
55
55
|
/**
|
|
56
56
|
* Color of the file upload.
|
|
57
57
|
* Defaults to Test Gorilla primary color.
|
|
@@ -61,7 +61,6 @@ export declare class FileUploadComponent implements OnInit, OnChanges, ControlVa
|
|
|
61
61
|
*/
|
|
62
62
|
companyColor: string;
|
|
63
63
|
OnDrop: EventEmitter<File>;
|
|
64
|
-
protected lang: Language;
|
|
65
64
|
protected readonly translationContext = "FILE_UPLOAD.";
|
|
66
65
|
/**
|
|
67
66
|
* @ignore
|
|
@@ -38,7 +38,7 @@ export declare class NavbarComponent {
|
|
|
38
38
|
* @type {Language}
|
|
39
39
|
* @memberof NavbarComponent
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
language: Language;
|
|
42
42
|
/**
|
|
43
43
|
* @ignore
|
|
44
44
|
*/
|
|
@@ -51,7 +51,6 @@ export declare class NavbarComponent {
|
|
|
51
51
|
* @ignore
|
|
52
52
|
*/
|
|
53
53
|
logoutEvent: EventEmitter<void>;
|
|
54
|
-
protected lang: Language;
|
|
55
54
|
protected readonly translationContext = "NAVBAR.";
|
|
56
55
|
navigate(routeId: string): void;
|
|
57
56
|
logout(): void;
|
|
@@ -72,10 +72,9 @@ export declare class SliderComponent {
|
|
|
72
72
|
* @property language
|
|
73
73
|
* @type {Language}
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
language: Language;
|
|
76
76
|
sliderValueChange: EventEmitter<SliderValue>;
|
|
77
77
|
private value;
|
|
78
|
-
protected lang: Language;
|
|
79
78
|
protected translationContext: string;
|
|
80
79
|
protected touchedControlName: string;
|
|
81
80
|
onChange: (_: any) => void;
|
|
@@ -32,13 +32,12 @@ export declare class StepperComponent {
|
|
|
32
32
|
* @type {Language}
|
|
33
33
|
* @memberof StepperComponent
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
language: Language;
|
|
36
36
|
selectionChange: EventEmitter<{
|
|
37
37
|
selectedIndex: number;
|
|
38
38
|
previousIndex: number;
|
|
39
39
|
step: Step;
|
|
40
40
|
}>;
|
|
41
|
-
protected lang: Language;
|
|
42
41
|
private isOpened;
|
|
43
42
|
protected itemSteps: Step[];
|
|
44
43
|
protected progressValue: number;
|
|
@@ -20,36 +20,7 @@
|
|
|
20
20
|
"START_DATE": "Start date",
|
|
21
21
|
"END_DATE": "End date"
|
|
22
22
|
},
|
|
23
|
-
"PLURALS": {
|
|
24
|
-
"EMAILS": "{numEmails, select, 1 {email} other {emails}}",
|
|
25
|
-
"USERS": "{numUsers, select, 1 {User} other {Users}}",
|
|
26
|
-
"TESTS": "{numberTests, select, 1 {test} other {tests}}",
|
|
27
|
-
"QUESTIONS": "{numberQuestions, select, 1 {question} other {questions}}",
|
|
28
|
-
"ITEMS": "{numItems, select, 1 {item} other {items}}",
|
|
29
|
-
"DATE_TIME": {
|
|
30
|
-
"SECONDS": "{seconds, select, 1 {second} other {seconds}}",
|
|
31
|
-
"MINUTES": "{minutes, select, 1 {minute} other {minutes}}",
|
|
32
|
-
"HOURS": "{hours, select, 1 {hour} other {hours}}",
|
|
33
|
-
"DAYS": "{days, select, 1 {day} other {days}}",
|
|
34
|
-
"SHORT_SECONDS": "{seconds, select, 1 {sec} other {secs}}",
|
|
35
|
-
"SHORT_MINUTES": "{minutes, select, 1 {min} other {mins}}"
|
|
36
|
-
},
|
|
37
|
-
"CUSTOM_QUESTIONS": "{numberCustomQuestions, select, 1 {custom question} other {custom questions}}",
|
|
38
|
-
"CANDIDATES": "{numberCandidates, select, 1 {candidate} other {candidates}}",
|
|
39
|
-
"INVITATIONS": "{numberInvitations, select, 1 {invitation} other {invitations}}",
|
|
40
|
-
"ASSESSMENTS": "{numberAssessments, select, 1 {assessment} other {assessments}}"
|
|
41
|
-
},
|
|
42
23
|
"COMMON": {
|
|
43
|
-
"IS_ARE": "{count, select, 1 {is} other {are}}",
|
|
44
|
-
"ORDERING": {
|
|
45
|
-
"GENDER_NEUTRAL": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
|
|
46
|
-
"MALE": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
|
|
47
|
-
"FEMALE": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
|
|
48
|
-
"DE_ACCUSATIVE_MALE": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
|
|
49
|
-
"DE_DATIVE_MALE_AND_NEUTRAL": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
|
|
50
|
-
"DE_GENTIVE_MALE_AND_NEUTRAL": "{index, select, 0 {the first} 1 {the second} 2 {the third} 3 {the fourth} 4 {the fifth} 5 {the sixth} 6 {the seventh} other {the}}",
|
|
51
|
-
"ORDINAL": "{index, select, 0 {1st} 1 {2nd} 2 {3rd} 3 {4th} 4 {5th} other {nth}}"
|
|
52
|
-
},
|
|
53
24
|
"APPLY": "Apply",
|
|
54
25
|
"VALIDATE": "Validate",
|
|
55
26
|
"YES": "Yes",
|
|
@@ -65,7 +36,6 @@
|
|
|
65
36
|
"OK": "OK",
|
|
66
37
|
"REMOVE": "Remove",
|
|
67
38
|
"TEST": "test",
|
|
68
|
-
"HAS_HAVE": "{count, select, 1 {has} other {have}}",
|
|
69
39
|
"MAYBE": "Maybe",
|
|
70
40
|
"BACK": "Back",
|
|
71
41
|
"SAVE": "Save",
|
|
@@ -86,31 +56,6 @@
|
|
|
86
56
|
"MIN": "Min",
|
|
87
57
|
"CLEAR": "Clear"
|
|
88
58
|
},
|
|
89
|
-
"DATE_TIME": {
|
|
90
|
-
"SECONDS": "{{seconds}} {{PLURALS.DATE_TIME.SECONDS}}",
|
|
91
|
-
"SHORT_SECONDS": "{{seconds}} {{PLURALS.DATE_TIME.SHORT_SECONDS}}",
|
|
92
|
-
"SHORT_MINUTES": "{{minutes}} {{PLURALS.DATE_TIME.SHORT_MINUTES}}",
|
|
93
|
-
"HOURS": "{{hours}} {{PLURALS.DATE_TIME.HOURS}}",
|
|
94
|
-
"DAYS": "{{days}} {{PLURALS.DATE_TIME.DAYS}}"
|
|
95
|
-
},
|
|
96
|
-
"CREATE_ACCOUNT": {
|
|
97
|
-
"TITLE": "Create your Career Passport",
|
|
98
|
-
"SUBTITLE": "Enter the email address to which you received an assessment invite.",
|
|
99
|
-
"EMAIL_LABEL": "Email",
|
|
100
|
-
"PASSWORD_LABEL": "Password",
|
|
101
|
-
"TERMS_CONDITIONS": "I have read and accepted the ",
|
|
102
|
-
"TERMS_CONDITIONS_LINK_LABEL": "candidate terms",
|
|
103
|
-
"PRIVACY_POLICY_LINK_LABEL": "privacy policy",
|
|
104
|
-
"TERMS_CONDITIONS_DELIMITER": "and",
|
|
105
|
-
"BUTTON_LABEL": "Next",
|
|
106
|
-
"HAVE_CAREER_PASSPORT": "Already have a Career Passport?",
|
|
107
|
-
"LOGIN": "Log in here"
|
|
108
|
-
},
|
|
109
|
-
"CREATE_PASSWORD": {
|
|
110
|
-
"TITLE": "Please create a new password",
|
|
111
|
-
"PASSWORD_LABEL": "Set password",
|
|
112
|
-
"BUTTON": "Set new password"
|
|
113
|
-
},
|
|
114
59
|
"DIALOG": {
|
|
115
60
|
"CLOSE_LABEL": "Close dialog"
|
|
116
61
|
},
|
|
@@ -126,22 +71,6 @@
|
|
|
126
71
|
"SUPPORTED_FILE_TYPES": "Supported file types:",
|
|
127
72
|
"CHANGE": "Change"
|
|
128
73
|
},
|
|
129
|
-
"FORGOT_PASSWORD": {
|
|
130
|
-
"TITLE": "Reset your password",
|
|
131
|
-
"EMAIL_LABEL": "Email",
|
|
132
|
-
"BUTTON_LABEL": "Send reset link",
|
|
133
|
-
"BACK_TO_LOGIN": "Back to log in"
|
|
134
|
-
},
|
|
135
|
-
"LOGIN": {
|
|
136
|
-
"TITLE": "Log in to your Career Passport",
|
|
137
|
-
"EMAIL_LABEL": "Email address",
|
|
138
|
-
"PASSWORD_LABEL": "Password",
|
|
139
|
-
"REMEMBER_ME": "Keep me logged in",
|
|
140
|
-
"FORGOT_PASSWORD": "Forgot password?",
|
|
141
|
-
"BUTTON_LABEL": "Log in",
|
|
142
|
-
"NOT_HAVE_ACCOUNT": "Don't have an account?",
|
|
143
|
-
"CREATE_ACCOUNT": "Create one here"
|
|
144
|
-
},
|
|
145
74
|
"NAVBAR": {
|
|
146
75
|
"LOG_OUT": "Log out"
|
|
147
76
|
}
|