@testgorilla/tgo-ui 2.6.99 → 2.7.0

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.
Files changed (43) hide show
  1. package/README.md +2 -2
  2. package/components/button/button.model.d.ts +2 -1
  3. package/components/deprecated-table/deprecated-table.component.module.d.ts +8 -8
  4. package/components/deprecated-table/directives/dynamic-component.directive.d.ts +1 -1
  5. package/components/deprecated-table/pipes/data-property-getter.d.ts +1 -1
  6. package/components/empty-state/empty-state.component.d.ts +1 -1
  7. package/components/field/field.component.d.ts +8 -1
  8. package/components/icon/icon.model.d.ts +1 -1
  9. package/components/overflow-menu/overflow-menu.component.d.ts +1 -1
  10. package/components/table/table.component.d.ts +35 -8
  11. package/components/table/table.component.module.d.ts +3 -1
  12. package/components/table/table.model.d.ts +47 -5
  13. package/esm2022/assets/i18n/en.json +2 -1
  14. package/esm2022/components/button/button.component.mjs +3 -3
  15. package/esm2022/components/button/button.model.mjs +1 -1
  16. package/esm2022/components/deprecated-table/deprecated-table.component.module.mjs +23 -6
  17. package/esm2022/components/deprecated-table/directives/dynamic-component.directive.mjs +3 -2
  18. package/esm2022/components/deprecated-table/pipes/data-property-getter.mjs +3 -2
  19. package/esm2022/components/dropdown/dropdown.component.mjs +3 -3
  20. package/esm2022/components/field/field.component.mjs +12 -3
  21. package/esm2022/components/icon/icon.component.mjs +2 -2
  22. package/esm2022/components/icon/icon.model.mjs +1 -1
  23. package/esm2022/components/navbar/navbar.component.mjs +3 -3
  24. package/esm2022/components/overflow-menu/overflow-menu.component.mjs +3 -3
  25. package/esm2022/components/password-criteria/password.component.mjs +1 -1
  26. package/esm2022/components/segmented-button/segmented-button.component.mjs +2 -2
  27. package/esm2022/components/table/table.component.mjs +71 -5
  28. package/esm2022/components/table/table.component.module.mjs +8 -2
  29. package/esm2022/components/table/table.model.mjs +13 -2
  30. package/esm2022/components/toggle/toggle.component.mjs +2 -2
  31. package/esm2022/components/validation-error/validation-error.component.mjs +3 -3
  32. package/esm2022/models/colors.model.mjs +77 -0
  33. package/esm2022/pipes/has-validation-error.pipe.mjs +2 -2
  34. package/esm2022/public-api.mjs +3 -1
  35. package/esm2022/utils/table.utils.mjs +1 -1
  36. package/fesm2022/testgorilla-tgo-ui.mjs +215 -32
  37. package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
  38. package/models/colors.model.d.ts +62 -0
  39. package/package.json +16 -15
  40. package/projects/tgo-canopy-ui/assets/i18n/en.json +2 -1
  41. package/projects/tgo-canopy-ui/theme/_typography.scss +6 -0
  42. package/public-api.d.ts +1 -0
  43. package/utils/table.utils.d.ts +1 -1
@@ -0,0 +1,62 @@
1
+ export declare enum Color {
2
+ TGO_TEAL_60B = "#1C443C",
3
+ TGO_TEAL_30B = "#31766A",
4
+ TGO_TEAL_DEFAULT = "#46A997",
5
+ TGO_TEAL_30W = "#7EC3B6",
6
+ TGO_TEAL_60W = "#B5DDD5",
7
+ TGO_TEAL_SECONDARY = "#CBD6CB",
8
+ TGO_TEAL_90W = "#ECF6F5",
9
+ TGO_PETROL_60B = "#102930",
10
+ TGO_PETROL_30B = "#1B4754",
11
+ TGO_PETROL_DEFAULT = "#276678",
12
+ TGO_PETROL_30W = "#6894A0",
13
+ TGO_PETROL_60W = "#A9C2C9",
14
+ TGO_PETROL_SECONDARY = "#C8D7DE",
15
+ TGO_PETROL_90W = "#E9F0F1",
16
+ TGO_ERROR_60B = "#513131",
17
+ TGO_ERROR_30B = "#8E5655",
18
+ TGO_ERROR_60W = "#E3C3C6",
19
+ TGO_ERROR_SECONDARY = "#F0DAD9",
20
+ TGO_ERROR_DEFAULT = "#CB7B7A",
21
+ TGO_WARNING_SECONDARY = "#F0D6BB",
22
+ TGO_WARNING_DEFAULT = "#CCA45F",
23
+ TGO_BLACK = "#000000",
24
+ TGO_DARK = "#888888",
25
+ TGO_MEDIUM = "#E0E0E0",
26
+ TGO_GREY = "#EDEDED",
27
+ TGO_LIGHT = "#F6F6F6",
28
+ TGO_WHITE = "#FFFFFF",
29
+ BRAND_60 = "#A90686",
30
+ BRAND_50 = "#D410AA",
31
+ BRAND_40 = "#FF54DA",
32
+ BRAND_30 = "#FFB3EE",
33
+ BRAND_20 = "#FFE6FA",
34
+ BRAND_10 = "#FFF2FC",
35
+ GRAYSCALE_50 = "#666666",
36
+ GRAYSCALE_40 = "#919191",
37
+ GRAYSCALE_30 = "#D3D3D3",
38
+ GRAYSCALE_20 = "#E9E9E9",
39
+ GRAYSCALE_10 = "#F4F4F4",
40
+ BLACK = "#242424",
41
+ ACCENT_20 = "#FFF5ED",
42
+ ACCENT_10 = "#FFFAF6",
43
+ INFORMATIVE_40 = "#0165FC",
44
+ INFORMATIVE_30 = "#277CFD",
45
+ INFORMATIVE_20 = "#99C1FE",
46
+ INFORMATIVE_10 = "#D9E8FF",
47
+ SUCCESS_50 = "#88B901",
48
+ SUCCESS_40 = "#A0D900",
49
+ SUCCESS_30 = "#C6E866",
50
+ SUCCESS_20 = "#E2F4B3",
51
+ SUCCESS_10 = "#F5FAE3",
52
+ ERROR_50 = "#E02800",
53
+ ERROR_40 = "#FF3003",
54
+ ERROR_30 = "#FF6E4F",
55
+ ERROR_20 = "#FFAC9A",
56
+ ERROR_10 = "#FFEAE6",
57
+ WARNING_50 = "#D07D00",
58
+ WARNING_40 = "#FF9A03",
59
+ WARNING_30 = "#FFC268",
60
+ WARNING_20 = "#FFE1B3",
61
+ WARNING_10 = "#FFF5E6"
62
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testgorilla/tgo-ui",
3
- "version": "2.6.99",
3
+ "version": "2.7.0",
4
4
  "lint-staged": {
5
5
  "src/**/*.ts": [
6
6
  "eslint --fix",
@@ -16,22 +16,23 @@
16
16
  "tslib": "~2.4.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "@angular/animations": "~17.3.7",
20
- "@angular/cdk": "~17.3.7",
21
- "@angular/common": "~17.3.7",
22
- "@angular/compiler": "~17.3.7",
23
- "@angular/core": "~17.3.7",
24
- "@angular/forms": "~17.3.7",
25
- "@angular/material": "~17.3.7",
26
- "@angular/platform-browser": "~17.3.7",
27
- "@angular/platform-browser-dynamic": "~17.3.7",
28
- "@angular/router": "~17.3.7",
29
- "ngx-skeleton-loader": "^8.1.0",
30
- "rxjs": "~7.8.0",
31
- "zone.js": "^0.14.5",
19
+ "@angular-material-extensions/password-strength": "^16.0.0",
20
+ "@angular/animations": "~16.2.12",
21
+ "@angular/cdk": "~16.2.12",
22
+ "@angular/common": "~16.2.12",
23
+ "@angular/compiler": "~16.2.12",
24
+ "@angular/core": "~16.2.12",
25
+ "@angular/forms": "~16.2.12",
26
+ "@angular/material": "~16.2.12",
27
+ "@angular/platform-browser": "~16.2.12",
28
+ "@angular/platform-browser-dynamic": "~16.2.12",
29
+ "@angular/router": "~16.2.12",
32
30
  "libphonenumber-js": "^1.10.59",
33
31
  "ngx-mat-select-search": "^7.0.6",
34
- "svg-country-flags": "^1.2.10"
32
+ "ngx-skeleton-loader": "^8.1.0",
33
+ "rxjs": "~7.8.0",
34
+ "svg-country-flags": "^1.2.10",
35
+ "zone.js": "^0.13.1"
35
36
  },
36
37
  "overrides": {
37
38
  "crypto-js": "4.2.0",
@@ -92,6 +92,7 @@
92
92
  "MAX_LENGTH": "Please enter a value with a maximum length of ({{maxlength}}) characters",
93
93
  "MIN_LENGTH": "Please enter a value with a minimum length of ({{maxlength}}) characters",
94
94
  "MAX": "Please enter a value with a maximum value of ({{max}})",
95
- "MIN": "Please enter a value with a minimum value of ({{min}})"
95
+ "MIN": "Please enter a value with a minimum value of ({{min}})",
96
+ "EMAIL_INCORRECT": "Please use a valid email address"
96
97
  }
97
98
  }
@@ -259,3 +259,9 @@ caption,
259
259
  @include font-style('hover-state');
260
260
  }
261
261
  }
262
+
263
+ *[theme="dark"] {
264
+ h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, {
265
+ color: $tgo-white;
266
+ }
267
+ }
package/public-api.d.ts CHANGED
@@ -125,3 +125,4 @@ export * from './components/password-criteria/password.component.module';
125
125
  export * from './components/phone-input/phone-input.component';
126
126
  export * from './components/phone-input/phone-input.component.module';
127
127
  export * from './components/phone-input/phone-input.model';
128
+ export * from './models/colors.model';
@@ -3,4 +3,4 @@ import { TableColumn } from '../components/table/table.model';
3
3
  * Sorting table columns by order value if set.
4
4
  * The rest columns keep the same ordering and displayed after the sorted ones.
5
5
  */
6
- export declare const sortByOrder: (columns: TableColumn[]) => TableColumn[];
6
+ export declare const sortByOrder: <T>(columns: TableColumn<T>[]) => TableColumn<T>[];