@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testgorilla/tgo-ui",
3
- "version": "1.10.2",
3
+ "version": "1.10.4",
4
4
  "lint-staged": {
5
5
  "src/**/*.ts": [
6
6
  "eslint --fix",
@@ -27,9 +27,6 @@
27
27
  "@angular/platform-browser": "~16.2.12",
28
28
  "@angular/platform-browser-dynamic": "~16.2.12",
29
29
  "@angular/router": "~16.2.12",
30
- "@ngneat/transloco": "^4.3.0",
31
- "@ngneat/transloco-messageformat": "^4.0.0",
32
- "@ngneat/until-destroy": "^10.0.0",
33
30
  "ngx-skeleton-loader": "^8.1.0",
34
31
  "rxjs": "~7.8.0",
35
32
  "zone.js": "^0.13.1"
@@ -4,6 +4,9 @@ import * as i0 from "@angular/core";
4
4
  * Used for translations
5
5
  */
6
6
  export declare class UiTranslatePipe implements PipeTransform {
7
+ protected readonly LANGS: {
8
+ [key: string]: any;
9
+ };
7
10
  /**
8
11
  * Finds the translation by keys with interpolation if provided
9
12
  * @param translateKey key, can have multiple keys separated with '.' eg ('KEY', 'FIRST_LVL_KEY.SECOND_LVL_KEY')
@@ -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
  }
@@ -1,4 +1,3 @@
1
- import { TranslocoService } from '@ngneat/transloco';
2
1
  import * as i0 from "@angular/core";
3
2
  export declare enum Language {
4
3
  en = "en",
@@ -23,24 +22,8 @@ export type UILanguage = {
23
22
  label: string;
24
23
  };
25
24
  export declare class LanguageService {
26
- private translocoService;
27
25
  static readonly defaultLanguage = Language.en;
28
26
  readonly defaultLanguageList: UILanguage[];
29
- private languageChangeSubscription;
30
- constructor(translocoService: TranslocoService);
31
- /**
32
- *
33
- * @description Initialize Language Service.
34
- * @memberof LanguageService
35
- */
36
- init(language: string): void;
37
- /**
38
- *
39
- * @description Set a langauge as active language.
40
- * @param {string} languageCode Language value code.
41
- * @memberof LanguageService
42
- */
43
- setActiveLanguage(languageCode: string): void;
44
27
  static ɵfac: i0.ɵɵFactoryDeclaration<LanguageService, never>;
45
28
  static ɵprov: i0.ɵɵInjectableDeclaration<LanguageService>;
46
29
  }