@testgorilla/tgo-ui 11.22.2 → 12.0.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 (227) hide show
  1. package/fesm2022/testgorilla-tgo-ui-components-accordion.mjs +335 -229
  2. package/fesm2022/testgorilla-tgo-ui-components-accordion.mjs.map +1 -1
  3. package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs +547 -465
  4. package/fesm2022/testgorilla-tgo-ui-components-ai-audio-circle.mjs.map +1 -1
  5. package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs +160 -75
  6. package/fesm2022/testgorilla-tgo-ui-components-ai-caveat.mjs.map +1 -1
  7. package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs +678 -278
  8. package/fesm2022/testgorilla-tgo-ui-components-ai-feedback.mjs.map +1 -1
  9. package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs +337 -274
  10. package/fesm2022/testgorilla-tgo-ui-components-alert-banner.mjs.map +1 -1
  11. package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs +351 -192
  12. package/fesm2022/testgorilla-tgo-ui-components-audio-waveform.mjs.map +1 -1
  13. package/fesm2022/testgorilla-tgo-ui-components-autocomplete-v2.mjs +1950 -960
  14. package/fesm2022/testgorilla-tgo-ui-components-autocomplete-v2.mjs.map +1 -1
  15. package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs +1206 -1044
  16. package/fesm2022/testgorilla-tgo-ui-components-autocomplete.mjs.map +1 -1
  17. package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs +328 -182
  18. package/fesm2022/testgorilla-tgo-ui-components-avatar.mjs.map +1 -1
  19. package/fesm2022/testgorilla-tgo-ui-components-badge.mjs +383 -203
  20. package/fesm2022/testgorilla-tgo-ui-components-badge.mjs.map +1 -1
  21. package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs +553 -261
  22. package/fesm2022/testgorilla-tgo-ui-components-breadcrumb.mjs.map +1 -1
  23. package/fesm2022/testgorilla-tgo-ui-components-button.mjs +709 -739
  24. package/fesm2022/testgorilla-tgo-ui-components-button.mjs.map +1 -1
  25. package/fesm2022/testgorilla-tgo-ui-components-card.mjs +219 -184
  26. package/fesm2022/testgorilla-tgo-ui-components-card.mjs.map +1 -1
  27. package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs +515 -458
  28. package/fesm2022/testgorilla-tgo-ui-components-checkbox.mjs.map +1 -1
  29. package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs +423 -162
  30. package/fesm2022/testgorilla-tgo-ui-components-checklist.mjs.map +1 -1
  31. package/fesm2022/testgorilla-tgo-ui-components-core.mjs +10784 -10996
  32. package/fesm2022/testgorilla-tgo-ui-components-core.mjs.map +1 -1
  33. package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs +810 -533
  34. package/fesm2022/testgorilla-tgo-ui-components-datepicker.mjs.map +1 -1
  35. package/fesm2022/testgorilla-tgo-ui-components-device-control.mjs +473 -116
  36. package/fesm2022/testgorilla-tgo-ui-components-device-control.mjs.map +1 -1
  37. package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs +1149 -540
  38. package/fesm2022/testgorilla-tgo-ui-components-dialog.mjs.map +1 -1
  39. package/fesm2022/testgorilla-tgo-ui-components-divider.mjs +148 -84
  40. package/fesm2022/testgorilla-tgo-ui-components-divider.mjs.map +1 -1
  41. package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs +239 -142
  42. package/fesm2022/testgorilla-tgo-ui-components-donut-chart.mjs.map +1 -1
  43. package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs +599 -467
  44. package/fesm2022/testgorilla-tgo-ui-components-dropdown.mjs.map +1 -1
  45. package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs +126 -70
  46. package/fesm2022/testgorilla-tgo-ui-components-elevation-shadow.mjs.map +1 -1
  47. package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs +324 -329
  48. package/fesm2022/testgorilla-tgo-ui-components-empty-state.mjs.map +1 -1
  49. package/fesm2022/testgorilla-tgo-ui-components-field.mjs +969 -648
  50. package/fesm2022/testgorilla-tgo-ui-components-field.mjs.map +1 -1
  51. package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs +553 -419
  52. package/fesm2022/testgorilla-tgo-ui-components-file-upload.mjs.map +1 -1
  53. package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs +847 -452
  54. package/fesm2022/testgorilla-tgo-ui-components-filter-button.mjs.map +1 -1
  55. package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs +398 -302
  56. package/fesm2022/testgorilla-tgo-ui-components-gaussian-chart.mjs.map +1 -1
  57. package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs +162 -95
  58. package/fesm2022/testgorilla-tgo-ui-components-icon-label.mjs.map +1 -1
  59. package/fesm2022/testgorilla-tgo-ui-components-icon.mjs +1825 -1789
  60. package/fesm2022/testgorilla-tgo-ui-components-icon.mjs.map +1 -1
  61. package/fesm2022/testgorilla-tgo-ui-components-infinite-scroll-table.mjs +1018 -672
  62. package/fesm2022/testgorilla-tgo-ui-components-infinite-scroll-table.mjs.map +1 -1
  63. package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs +758 -368
  64. package/fesm2022/testgorilla-tgo-ui-components-inline-field.mjs.map +1 -1
  65. package/fesm2022/testgorilla-tgo-ui-components-logo.mjs +204 -212
  66. package/fesm2022/testgorilla-tgo-ui-components-logo.mjs.map +1 -1
  67. package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs +183 -48
  68. package/fesm2022/testgorilla-tgo-ui-components-media-card.mjs.map +1 -1
  69. package/fesm2022/testgorilla-tgo-ui-components-media-dialog.mjs +243 -79
  70. package/fesm2022/testgorilla-tgo-ui-components-media-dialog.mjs.map +1 -1
  71. package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs +751 -361
  72. package/fesm2022/testgorilla-tgo-ui-components-multi-input.mjs.map +1 -1
  73. package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs +1122 -385
  74. package/fesm2022/testgorilla-tgo-ui-components-navbar.mjs.map +1 -1
  75. package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs +689 -413
  76. package/fesm2022/testgorilla-tgo-ui-components-overflow-menu.mjs.map +1 -1
  77. package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs +227 -92
  78. package/fesm2022/testgorilla-tgo-ui-components-page-header.mjs.map +1 -1
  79. package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs +174 -113
  80. package/fesm2022/testgorilla-tgo-ui-components-paginator.mjs.map +1 -1
  81. package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs +367 -165
  82. package/fesm2022/testgorilla-tgo-ui-components-password-criteria.mjs.map +1 -1
  83. package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs +253 -118
  84. package/fesm2022/testgorilla-tgo-ui-components-password-strength.mjs.map +1 -1
  85. package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs +730 -444
  86. package/fesm2022/testgorilla-tgo-ui-components-phone-input.mjs.map +1 -1
  87. package/fesm2022/testgorilla-tgo-ui-components-popover.mjs +533 -221
  88. package/fesm2022/testgorilla-tgo-ui-components-popover.mjs.map +1 -1
  89. package/fesm2022/testgorilla-tgo-ui-components-popup-tip.mjs +274 -76
  90. package/fesm2022/testgorilla-tgo-ui-components-popup-tip.mjs.map +1 -1
  91. package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs +184 -124
  92. package/fesm2022/testgorilla-tgo-ui-components-progress-bar.mjs.map +1 -1
  93. package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs +1223 -574
  94. package/fesm2022/testgorilla-tgo-ui-components-prompt.mjs.map +1 -1
  95. package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs +249 -160
  96. package/fesm2022/testgorilla-tgo-ui-components-radial-progress.mjs.map +1 -1
  97. package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs +447 -439
  98. package/fesm2022/testgorilla-tgo-ui-components-radio-button.mjs.map +1 -1
  99. package/fesm2022/testgorilla-tgo-ui-components-rating.mjs +226 -150
  100. package/fesm2022/testgorilla-tgo-ui-components-rating.mjs.map +1 -1
  101. package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs +255 -67
  102. package/fesm2022/testgorilla-tgo-ui-components-scale-table.mjs.map +1 -1
  103. package/fesm2022/testgorilla-tgo-ui-components-scale.mjs +205 -162
  104. package/fesm2022/testgorilla-tgo-ui-components-scale.mjs.map +1 -1
  105. package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs +245 -153
  106. package/fesm2022/testgorilla-tgo-ui-components-segmented-bar.mjs.map +1 -1
  107. package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs +274 -140
  108. package/fesm2022/testgorilla-tgo-ui-components-segmented-button.mjs.map +1 -1
  109. package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs +319 -147
  110. package/fesm2022/testgorilla-tgo-ui-components-segmented-toggle.mjs.map +1 -1
  111. package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs +286 -84
  112. package/fesm2022/testgorilla-tgo-ui-components-selectable-card.mjs.map +1 -1
  113. package/fesm2022/testgorilla-tgo-ui-components-side-navigation.mjs +660 -208
  114. package/fesm2022/testgorilla-tgo-ui-components-side-navigation.mjs.map +1 -1
  115. package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs +579 -320
  116. package/fesm2022/testgorilla-tgo-ui-components-side-panel.mjs.map +1 -1
  117. package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs +419 -200
  118. package/fesm2022/testgorilla-tgo-ui-components-side-sheet.mjs.map +1 -1
  119. package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs +132 -80
  120. package/fesm2022/testgorilla-tgo-ui-components-skeleton.mjs.map +1 -1
  121. package/fesm2022/testgorilla-tgo-ui-components-slider.mjs +741 -390
  122. package/fesm2022/testgorilla-tgo-ui-components-slider.mjs.map +1 -1
  123. package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs +455 -329
  124. package/fesm2022/testgorilla-tgo-ui-components-snackbar.mjs.map +1 -1
  125. package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs +543 -514
  126. package/fesm2022/testgorilla-tgo-ui-components-spider-chart.mjs.map +1 -1
  127. package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs +193 -104
  128. package/fesm2022/testgorilla-tgo-ui-components-spinner.mjs.map +1 -1
  129. package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs +760 -524
  130. package/fesm2022/testgorilla-tgo-ui-components-stepper.mjs.map +1 -1
  131. package/fesm2022/testgorilla-tgo-ui-components-table.mjs +714 -415
  132. package/fesm2022/testgorilla-tgo-ui-components-table.mjs.map +1 -1
  133. package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs +847 -438
  134. package/fesm2022/testgorilla-tgo-ui-components-tabs.mjs.map +1 -1
  135. package/fesm2022/testgorilla-tgo-ui-components-tag.mjs +535 -275
  136. package/fesm2022/testgorilla-tgo-ui-components-tag.mjs.map +1 -1
  137. package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs +316 -246
  138. package/fesm2022/testgorilla-tgo-ui-components-toggle.mjs.map +1 -1
  139. package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs +404 -284
  140. package/fesm2022/testgorilla-tgo-ui-components-tooltip.mjs.map +1 -1
  141. package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs +664 -383
  142. package/fesm2022/testgorilla-tgo-ui-components-universal-skills.mjs.map +1 -1
  143. package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs +201 -112
  144. package/fesm2022/testgorilla-tgo-ui-components-validation-error.mjs.map +1 -1
  145. package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs +1014 -458
  146. package/fesm2022/testgorilla-tgo-ui-components-write-with-ai.mjs.map +1 -1
  147. package/fesm2022/testgorilla-tgo-ui.mjs +147 -155
  148. package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
  149. package/mcp/catalog.json +1 -1
  150. package/package.json +16 -17
  151. package/projects/tgo-canopy-ui/assets/icons/rebrand/Sequences-filled.svg +3 -0
  152. package/projects/tgo-canopy-ui/assets/icons/rebrand/Sequences-in-line.svg +3 -0
  153. package/projects/tgo-canopy-ui/theme/_palette.scss +23 -18
  154. package/types/testgorilla-tgo-ui-components-accordion.d.ts +214 -158
  155. package/types/testgorilla-tgo-ui-components-ai-audio-circle.d.ts +93 -69
  156. package/types/testgorilla-tgo-ui-components-ai-caveat.d.ts +37 -34
  157. package/types/testgorilla-tgo-ui-components-ai-feedback.d.ts +126 -86
  158. package/types/testgorilla-tgo-ui-components-alert-banner.d.ts +260 -185
  159. package/types/testgorilla-tgo-ui-components-audio-waveform.d.ts +96 -67
  160. package/types/testgorilla-tgo-ui-components-autocomplete-v2.d.ts +455 -256
  161. package/types/testgorilla-tgo-ui-components-autocomplete.d.ts +545 -390
  162. package/types/testgorilla-tgo-ui-components-avatar.d.ts +128 -102
  163. package/types/testgorilla-tgo-ui-components-badge.d.ts +191 -139
  164. package/types/testgorilla-tgo-ui-components-breadcrumb.d.ts +100 -62
  165. package/types/testgorilla-tgo-ui-components-button.d.ts +479 -340
  166. package/types/testgorilla-tgo-ui-components-card.d.ts +153 -114
  167. package/types/testgorilla-tgo-ui-components-checkbox.d.ts +299 -223
  168. package/types/testgorilla-tgo-ui-components-checklist.d.ts +149 -97
  169. package/types/testgorilla-tgo-ui-components-core.d.ts +307 -295
  170. package/types/testgorilla-tgo-ui-components-datepicker.d.ts +404 -299
  171. package/types/testgorilla-tgo-ui-components-device-control.d.ts +151 -81
  172. package/types/testgorilla-tgo-ui-components-dialog.d.ts +442 -329
  173. package/types/testgorilla-tgo-ui-components-divider.d.ts +64 -51
  174. package/types/testgorilla-tgo-ui-components-donut-chart.d.ts +41 -37
  175. package/types/testgorilla-tgo-ui-components-dropdown.d.ts +335 -241
  176. package/types/testgorilla-tgo-ui-components-elevation-shadow.d.ts +48 -43
  177. package/types/testgorilla-tgo-ui-components-empty-state.d.ts +317 -215
  178. package/types/testgorilla-tgo-ui-components-field.d.ts +559 -388
  179. package/types/testgorilla-tgo-ui-components-file-upload.d.ts +230 -168
  180. package/types/testgorilla-tgo-ui-components-filter-button.d.ts +263 -206
  181. package/types/testgorilla-tgo-ui-components-gaussian-chart.d.ts +107 -94
  182. package/types/testgorilla-tgo-ui-components-icon-label.d.ts +84 -61
  183. package/types/testgorilla-tgo-ui-components-icon.d.ts +137 -110
  184. package/types/testgorilla-tgo-ui-components-infinite-scroll-table.d.ts +429 -303
  185. package/types/testgorilla-tgo-ui-components-inline-field.d.ts +338 -254
  186. package/types/testgorilla-tgo-ui-components-logo.d.ts +119 -101
  187. package/types/testgorilla-tgo-ui-components-media-card.d.ts +51 -35
  188. package/types/testgorilla-tgo-ui-components-media-dialog.d.ts +40 -45
  189. package/types/testgorilla-tgo-ui-components-multi-input.d.ts +283 -194
  190. package/types/testgorilla-tgo-ui-components-navbar.d.ts +326 -208
  191. package/types/testgorilla-tgo-ui-components-overflow-menu.d.ts +276 -204
  192. package/types/testgorilla-tgo-ui-components-page-header.d.ts +67 -50
  193. package/types/testgorilla-tgo-ui-components-paginator.d.ts +103 -70
  194. package/types/testgorilla-tgo-ui-components-password-criteria.d.ts +67 -58
  195. package/types/testgorilla-tgo-ui-components-password-strength.d.ts +66 -57
  196. package/types/testgorilla-tgo-ui-components-phone-input.d.ts +217 -175
  197. package/types/testgorilla-tgo-ui-components-popover.d.ts +94 -53
  198. package/types/testgorilla-tgo-ui-components-popup-tip.d.ts +81 -44
  199. package/types/testgorilla-tgo-ui-components-progress-bar.d.ts +115 -84
  200. package/types/testgorilla-tgo-ui-components-prompt.d.ts +315 -219
  201. package/types/testgorilla-tgo-ui-components-radial-progress.d.ts +146 -107
  202. package/types/testgorilla-tgo-ui-components-radio-button.d.ts +296 -219
  203. package/types/testgorilla-tgo-ui-components-rating.d.ts +134 -95
  204. package/types/testgorilla-tgo-ui-components-scale-table.d.ts +67 -47
  205. package/types/testgorilla-tgo-ui-components-scale.d.ts +91 -66
  206. package/types/testgorilla-tgo-ui-components-segmented-bar.d.ts +118 -89
  207. package/types/testgorilla-tgo-ui-components-segmented-button.d.ts +107 -80
  208. package/types/testgorilla-tgo-ui-components-segmented-toggle.d.ts +138 -105
  209. package/types/testgorilla-tgo-ui-components-selectable-card.d.ts +90 -56
  210. package/types/testgorilla-tgo-ui-components-side-navigation.d.ts +183 -107
  211. package/types/testgorilla-tgo-ui-components-side-panel.d.ts +156 -145
  212. package/types/testgorilla-tgo-ui-components-side-sheet.d.ts +98 -89
  213. package/types/testgorilla-tgo-ui-components-skeleton.d.ts +50 -33
  214. package/types/testgorilla-tgo-ui-components-slider.d.ts +278 -198
  215. package/types/testgorilla-tgo-ui-components-snackbar.d.ts +211 -159
  216. package/types/testgorilla-tgo-ui-components-spider-chart.d.ts +140 -121
  217. package/types/testgorilla-tgo-ui-components-spinner.d.ts +93 -72
  218. package/types/testgorilla-tgo-ui-components-stepper.d.ts +480 -338
  219. package/types/testgorilla-tgo-ui-components-table.d.ts +280 -233
  220. package/types/testgorilla-tgo-ui-components-tabs.d.ts +282 -183
  221. package/types/testgorilla-tgo-ui-components-tag.d.ts +266 -193
  222. package/types/testgorilla-tgo-ui-components-toggle.d.ts +180 -132
  223. package/types/testgorilla-tgo-ui-components-tooltip.d.ts +142 -105
  224. package/types/testgorilla-tgo-ui-components-universal-skills.d.ts +165 -144
  225. package/types/testgorilla-tgo-ui-components-validation-error.d.ts +70 -51
  226. package/types/testgorilla-tgo-ui-components-write-with-ai.d.ts +210 -133
  227. package/types/testgorilla-tgo-ui.d.ts +52 -45
@@ -1,388 +1,669 @@
1
- import { AsyncPipe, KeyValuePipe, CommonModule } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { Injectable, Input, Optional, Inject, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
4
- import { AccordionComponent, AccordionComponentModule } from '@testgorilla/tgo-ui/components/accordion';
5
- import { RebrandBadgeColorEnum, BadgeComponent, BadgeComponentModule } from '@testgorilla/tgo-ui/components/badge';
6
- import * as i2 from '@testgorilla/tgo-ui/components/core';
7
- import { MemoizeFuncPipe, UiTranslatePipe, OrdinalSuffixPipe } from '@testgorilla/tgo-ui/components/core';
8
- import { ProgressBarComponent, ProgressBarComponentModule } from '@testgorilla/tgo-ui/components/progress-bar';
9
- import { take } from 'rxjs';
10
- import { DividerComponent, DividerComponentModule } from '@testgorilla/tgo-ui/components/divider';
11
- import { SpiderChartComponent, SpiderChartComponentModule } from '@testgorilla/tgo-ui/components/spider-chart';
12
-
13
- //TODO Update this model after backend/endpoint definitions
1
+ import { AsyncPipe, CommonModule, KeyValuePipe } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, Inject, Injectable, Input, NgModule, Optional } from "@angular/core";
4
+ import { AccordionComponent, AccordionComponentModule } from "@testgorilla/tgo-ui/components/accordion";
5
+ import { BadgeComponent, BadgeComponentModule, RebrandBadgeColorEnum } from "@testgorilla/tgo-ui/components/badge";
6
+ import * as i2 from "@testgorilla/tgo-ui/components/core";
7
+ import { MemoizeFuncPipe, OrdinalSuffixPipe, UiTranslatePipe } from "@testgorilla/tgo-ui/components/core";
8
+ import { ProgressBarComponent, ProgressBarComponentModule } from "@testgorilla/tgo-ui/components/progress-bar";
9
+ import { take } from "rxjs";
10
+ import { DividerComponent, DividerComponentModule } from "@testgorilla/tgo-ui/components/divider";
11
+ import { SpiderChartComponent, SpiderChartComponentModule } from "@testgorilla/tgo-ui/components/spider-chart";
14
12
  var SkillAreaGroupTypes;
15
- (function (SkillAreaGroupTypes) {
16
- SkillAreaGroupTypes[SkillAreaGroupTypes["FocusingOnObjectives"] = 1] = "FocusingOnObjectives";
17
- SkillAreaGroupTypes[SkillAreaGroupTypes["WorkingWithPeople"] = 2] = "WorkingWithPeople";
18
- SkillAreaGroupTypes[SkillAreaGroupTypes["ManagingOnesSelf"] = 3] = "ManagingOnesSelf";
13
+ (function(SkillAreaGroupTypes) {
14
+ SkillAreaGroupTypes[SkillAreaGroupTypes["FocusingOnObjectives"] = 1] = "FocusingOnObjectives";
15
+ SkillAreaGroupTypes[SkillAreaGroupTypes["WorkingWithPeople"] = 2] = "WorkingWithPeople";
16
+ SkillAreaGroupTypes[SkillAreaGroupTypes["ManagingOnesSelf"] = 3] = "ManagingOnesSelf";
19
17
  })(SkillAreaGroupTypes || (SkillAreaGroupTypes = {}));
20
- //TODO Update this model after backend/endpoint definitions
21
18
  var SkillAreaTypes;
22
- (function (SkillAreaTypes) {
23
- SkillAreaTypes["BusinessSavvy"] = "BUSINESS_SAVVY";
24
- SkillAreaTypes["StrategicPerspective"] = "STRATEGIC_PERSPECTIVE";
25
- SkillAreaTypes["CustomerFocus"] = "CUSTOMER_FOCUS";
26
- SkillAreaTypes["NavigatingComplexity"] = "NAVIGATING_COMPLEXITY";
27
- SkillAreaTypes["AgileDecisionMaking"] = "AGILE_DECISION_MAKING";
28
- SkillAreaTypes["EmbracingInnovation"] = "EMBRACING_INNOVATION";
29
- SkillAreaTypes["PlanningAndPrioritizing"] = "PLANNING_AND_PRIORITIZING";
30
- SkillAreaTypes["OrganizingResources"] = "ORGANIZING_RESOURCES";
31
- SkillAreaTypes["DrivingResults"] = "DRIVING_RESULTS";
32
- SkillAreaTypes["WorkingCollaboratively"] = "WORKING_COLLABORATIVELY";
33
- SkillAreaTypes["SocialAgility"] = "SOCIAL_AGILITY";
34
- SkillAreaTypes["CommunicatingEffectively"] = "COMMUNICATING_EFFECTIVELY";
35
- SkillAreaTypes["HandlingConflict"] = "HANDLING_CONFLICT";
36
- SkillAreaTypes["ValuingDiversity"] = "VALUING_DIVERSITY";
37
- SkillAreaTypes["DevelopingOthers"] = "DEVELOPING_OTHERS";
38
- SkillAreaTypes["ShowingResilience"] = "SHOWING_RESILIENCE";
39
- SkillAreaTypes["NavigatingAmbiguity"] = "NAVIGATING_AMBIGUITY";
40
- SkillAreaTypes["SelfAwareness"] = "SELF_AWARENESS";
41
- SkillAreaTypes["SelfDevelopment"] = "SELF_DEVELOPMENT";
42
- SkillAreaTypes["BeingBold"] = "BEING_BOLD";
43
- SkillAreaTypes["EarningTrust"] = "EARNING_TRUST";
19
+ (function(SkillAreaTypes) {
20
+ SkillAreaTypes["BusinessSavvy"] = "BUSINESS_SAVVY";
21
+ SkillAreaTypes["StrategicPerspective"] = "STRATEGIC_PERSPECTIVE";
22
+ SkillAreaTypes["CustomerFocus"] = "CUSTOMER_FOCUS";
23
+ SkillAreaTypes["NavigatingComplexity"] = "NAVIGATING_COMPLEXITY";
24
+ SkillAreaTypes["AgileDecisionMaking"] = "AGILE_DECISION_MAKING";
25
+ SkillAreaTypes["EmbracingInnovation"] = "EMBRACING_INNOVATION";
26
+ SkillAreaTypes["PlanningAndPrioritizing"] = "PLANNING_AND_PRIORITIZING";
27
+ SkillAreaTypes["OrganizingResources"] = "ORGANIZING_RESOURCES";
28
+ SkillAreaTypes["DrivingResults"] = "DRIVING_RESULTS";
29
+ SkillAreaTypes["WorkingCollaboratively"] = "WORKING_COLLABORATIVELY";
30
+ SkillAreaTypes["SocialAgility"] = "SOCIAL_AGILITY";
31
+ SkillAreaTypes["CommunicatingEffectively"] = "COMMUNICATING_EFFECTIVELY";
32
+ SkillAreaTypes["HandlingConflict"] = "HANDLING_CONFLICT";
33
+ SkillAreaTypes["ValuingDiversity"] = "VALUING_DIVERSITY";
34
+ SkillAreaTypes["DevelopingOthers"] = "DEVELOPING_OTHERS";
35
+ SkillAreaTypes["ShowingResilience"] = "SHOWING_RESILIENCE";
36
+ SkillAreaTypes["NavigatingAmbiguity"] = "NAVIGATING_AMBIGUITY";
37
+ SkillAreaTypes["SelfAwareness"] = "SELF_AWARENESS";
38
+ SkillAreaTypes["SelfDevelopment"] = "SELF_DEVELOPMENT";
39
+ SkillAreaTypes["BeingBold"] = "BEING_BOLD";
40
+ SkillAreaTypes["EarningTrust"] = "EARNING_TRUST";
44
41
  })(SkillAreaTypes || (SkillAreaTypes = {}));
45
-
46
- class UniversalSkillsService {
47
- constructor() {
48
- this.translationContext = 'UNIVERSAL_SKILLS_REPORT.';
49
- this.staticSkillAreaGroupMap = [
50
- [
51
- SkillAreaTypes.BusinessSavvy,
52
- SkillAreaTypes.StrategicPerspective,
53
- SkillAreaTypes.CustomerFocus,
54
- SkillAreaTypes.NavigatingComplexity,
55
- SkillAreaTypes.AgileDecisionMaking,
56
- SkillAreaTypes.EmbracingInnovation,
57
- SkillAreaTypes.PlanningAndPrioritizing,
58
- SkillAreaTypes.OrganizingResources,
59
- SkillAreaTypes.DrivingResults,
60
- ],
61
- [
62
- SkillAreaTypes.WorkingCollaboratively,
63
- SkillAreaTypes.SocialAgility,
64
- SkillAreaTypes.CommunicatingEffectively,
65
- SkillAreaTypes.HandlingConflict,
66
- SkillAreaTypes.ValuingDiversity,
67
- SkillAreaTypes.DevelopingOthers,
68
- ],
69
- [
70
- SkillAreaTypes.ShowingResilience,
71
- SkillAreaTypes.NavigatingAmbiguity,
72
- SkillAreaTypes.SelfAwareness,
73
- SkillAreaTypes.SelfDevelopment,
74
- SkillAreaTypes.EarningTrust,
75
- SkillAreaTypes.BeingBold,
76
- ],
77
- ];
78
- }
79
- initializeSkillAreaGroupMap() {
80
- this.skillAreaGroupMap = {
81
- [SkillAreaGroupTypes.FocusingOnObjectives]: {
82
- title: `${this.translationContext}SKILL_AREA_GROUP_TYPES.FOCUSING_ON_OBJECTIVES.TITLE`,
83
- description: `${this.translationContext}SKILL_AREA_GROUP_TYPES.FOCUSING_ON_OBJECTIVES.DESCRIPTION`,
84
- skillAreaList: [],
85
- },
86
- [SkillAreaGroupTypes.WorkingWithPeople]: {
87
- title: `${this.translationContext}SKILL_AREA_GROUP_TYPES.WORKING_WITH_PEOPLE.TITLE`,
88
- description: `${this.translationContext}SKILL_AREA_GROUP_TYPES.WORKING_WITH_PEOPLE.DESCRIPTION`,
89
- skillAreaList: [],
90
- },
91
- [SkillAreaGroupTypes.ManagingOnesSelf]: {
92
- title: `${this.translationContext}SKILL_AREA_GROUP_TYPES.MANAGING_ONES_SELF.TITLE`,
93
- description: `${this.translationContext}SKILL_AREA_GROUP_TYPES.MANAGING_ONES_SELF.DESCRIPTION`,
94
- skillAreaList: [],
95
- },
96
- };
97
- }
98
- prepareSkillAreaGroupMap(skillAreaDataList) {
99
- skillAreaDataList?.forEach(currentItem => {
100
- const formattedSkillAreaType = currentItem.skillAreaName;
101
- if (this.staticSkillAreaGroupMap[0].includes(formattedSkillAreaType)) {
102
- this.skillAreaGroupMap[SkillAreaGroupTypes.FocusingOnObjectives]?.skillAreaList?.push(currentItem);
103
- }
104
- if (this.staticSkillAreaGroupMap[1].includes(formattedSkillAreaType)) {
105
- this.skillAreaGroupMap[SkillAreaGroupTypes.WorkingWithPeople]?.skillAreaList?.push(currentItem);
106
- }
107
- if (this.staticSkillAreaGroupMap[2].includes(formattedSkillAreaType)) {
108
- this.skillAreaGroupMap[SkillAreaGroupTypes.ManagingOnesSelf]?.skillAreaList?.push(currentItem);
109
- }
110
- });
111
- }
112
- getSkillAreaGroupMap() {
113
- return this.skillAreaGroupMap;
114
- }
115
- getStaticSkillAreaGroupMap() {
116
- return this.staticSkillAreaGroupMap;
117
- }
118
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
119
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsService, providedIn: 'root' }); }
120
- }
121
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsService, decorators: [{
122
- type: Injectable,
123
- args: [{
124
- providedIn: 'root',
125
- }]
126
- }] });
127
-
128
- class UniversalSkillsReportComponent {
129
- constructor(defaultAppTheme, universalSkillsService) {
130
- this.defaultAppTheme = defaultAppTheme;
131
- this.universalSkillsService = universalSkillsService;
132
- /**
133
- * Defines the application theme
134
- * @property applicationTheme
135
- * @type {ApplicationTheme}
136
- * @memberof UniversalSkillsReportComponent
137
- */
138
- this.applicationTheme = 'light';
139
- this.translationContext = 'UNIVERSAL_SKILLS_REPORT.';
140
- if (defaultAppTheme) {
141
- this.applicationTheme = defaultAppTheme;
142
- }
143
- }
144
- ngOnInit() {
145
- this.universalSkillsService.initializeSkillAreaGroupMap();
146
- this.universalSkillsService.prepareSkillAreaGroupMap(this.skillAreaDataList);
147
- this.skillAreaGroupMap = this.universalSkillsService.getSkillAreaGroupMap();
148
- }
149
- getScoreBadgeLabel(percentileScoring) {
150
- return `PERCENTILE_LABEL_TYPES.${this.checkScoreClassification([percentileScoring, true])}`;
151
- }
152
- getScoreBadgeColor(percentileScoring) {
153
- return this.checkScoreClassification([percentileScoring, false]);
154
- }
155
- checkScoreClassification([percentileScoring, isLabelRequest]) {
156
- let scoreBadgeLabel = '';
157
- let scoreBadgeColor = RebrandBadgeColorEnum.BLUE_10;
158
- if (percentileScoring >= 1 && percentileScoring <= 19) {
159
- scoreBadgeLabel = 'WELL_BELOW_AVERAGE';
160
- scoreBadgeColor = RebrandBadgeColorEnum.GREY_30;
161
- }
162
- if (percentileScoring >= 20 && percentileScoring <= 39) {
163
- scoreBadgeLabel = 'BELOW_AVERAGE';
164
- scoreBadgeColor = RebrandBadgeColorEnum.GREY_10;
165
- }
166
- if (percentileScoring >= 40 && percentileScoring <= 59) {
167
- scoreBadgeLabel = 'AVERAGE';
168
- scoreBadgeColor = RebrandBadgeColorEnum.BLUE_10;
169
- }
170
- if (percentileScoring >= 60 && percentileScoring <= 79) {
171
- scoreBadgeLabel = 'ABOVE_AVERAGE';
172
- scoreBadgeColor = RebrandBadgeColorEnum.BLUE_20;
173
- }
174
- if (percentileScoring >= 80 && percentileScoring <= 100) {
175
- scoreBadgeLabel = 'WELL_ABOVE_AVERAGE';
176
- scoreBadgeColor = RebrandBadgeColorEnum.BLUE_40;
177
- }
178
- return isLabelRequest ? scoreBadgeLabel : scoreBadgeColor;
179
- }
180
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsReportComponent, deps: [{ token: 'CANOPYUI_DEFAULT_APPLICATION_THEME', optional: true }, { token: UniversalSkillsService }], target: i0.ɵɵFactoryTarget.Component }); }
181
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: UniversalSkillsReportComponent, isStandalone: true, selector: "ui-universal-skills-report", inputs: { applicationTheme: "applicationTheme", skillAreaDataList: "skillAreaDataList" }, ngImport: i0, template: "@for (skillAreaGroup of skillAreaGroupMap | keyvalue; track skillAreaGroup) {\n <div class=\"universal-skills-report\">\n <section class=\"title-and-info\">\n <h4>{{ skillAreaGroup.value.title | uiTranslate | async }}</h4>\n <span>{{ skillAreaGroup.value.description | uiTranslate | async }}</span>\n </section>\n <section class=\"accordion-items\">\n @for (skillAreaData of skillAreaGroup?.value?.skillAreaList; track skillAreaData) {\n <ui-accordion class=\"universal-skills-accordion\" label=\"-\" [allowCustomHeader]=\"true\">\n <div customHeader class=\"custom-header\">\n <h4 class=\"custom-header-subtitle\">\n {{\n translationContext + 'SKILL_AREA_TYPES.' + skillAreaData.skillAreaName + '.TITLE' | uiTranslate | async\n }}\n </h4>\n <div class=\"inner-container\">\n <ui-badge\n class=\"percentile-scoring-badge\"\n [label]=\"\n (skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeLabel : this | uiTranslate | async) ||\n 'neutral'\n \"\n [rebrandColor]=\"skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeColor : this\"\n [applicationTheme]=\"'light'\"\n ></ui-badge>\n <h5 class=\"percentile-quantity\">\n {{ skillAreaData?.percentileScoring }}\n <sup class=\"percentile-suffix\">{{\n skillAreaData.percentileScoring | ordinalSuffix | uiTranslate | async\n }}</sup>\n {{ translationContext + 'PERCENTILE' | uiTranslate | async }}\n </h5>\n <ui-progress-bar\n class=\"percentile-scoring-bar\"\n mode=\"determinate\"\n [progress]=\"skillAreaData.percentileScoring\"\n ></ui-progress-bar>\n </div>\n </div>\n <div class=\"content-container\">\n <p class=\"skill-description\">\n {{\n translationContext + 'SKILL_AREA_TYPES.' + skillAreaData.skillAreaName + '.DESCRIPTION'\n | uiTranslate\n | async\n }}\n </p>\n <h5>\n {{ skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeLabel : this | uiTranslate | async }} score\n </h5>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.GENERAL'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.WORK_ENVIRONMENT'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.RECOMMENDATIONS'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n </div>\n </ui-accordion>\n }\n </section>\n </div>\n}\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.universal-skills-report{display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:2.2rem}.universal-skills-report:last-of-type{margin-bottom:0}.universal-skills-report .title-and-info{width:100%;display:flex;flex-direction:column;gap:.7rem}.universal-skills-report .accordion-items{width:100%;display:flex;flex-direction:column;gap:.6rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header{width:100%;display:flex;justify-content:space-between;align-items:center;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .custom-header-subtitle{font-weight:400}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container{width:70%;max-width:450px;display:flex;justify-content:space-between;align-items:center;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-badge{width:126px;display:flex;justify-content:center}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-quantity{margin-top:-.4rem;white-space:nowrap}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-quantity .percentile-suffix{font-size:8px;line-height:22px;font-weight:700;margin-left:-.1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-bar{width:180px;height:8px}@media(max-width:600px){.universal-skills-report .accordion-items .universal-skills-accordion .custom-header{flex-direction:column;align-items:flex-start;min-height:60px}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .custom-header-subtitle{white-space:nowrap}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container{width:100%;max-width:none;position:absolute;top:45px;left:0;padding:0 1.5rem 0 1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-badge{justify-content:flex-start}}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel{border:1px solid #d3d3d3}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{background-color:transparent}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container{display:flex;flex-direction:column;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container p{line-height:21px;margin:0}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container .skill-description{color:#666;line-height:22px;margin:.5rem 0}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container .inner-container{background-color:#f4f4f4;padding:1rem;border-radius:10px;display:flex;flex-direction:column;gap:1rem}\n"], dependencies: [{ kind: "component", type: AccordionComponent, selector: "ui-accordion", inputs: ["label", "open", "disabled", "showPremiumIcon", "premiumTooltipText", "applicationTheme", "labelIcon", "variant", "allowCustomHeader", "noBackgroundColor", "toggleIconPosition", "toggleIcon", "toggleIconExpanded", "boldLabel"], outputs: ["closed", "opened"] }, { kind: "component", type: BadgeComponent, selector: "ui-badge", inputs: ["label", "staticLabel", "icon", "iconColor", "trailingIcon", "trailingIconColor", "color", "variant", "notificationsAmount", "applicationTheme", "rebrandColor", "truncateLabel", "enableAnimation"] }, { kind: "component", type: ProgressBarComponent, selector: "ui-progress-bar", inputs: ["companyColor", "progress", "mode", "buffer", "applicationTheme", "ariaLabel", "ariaDescribedBy", "showPercentage"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: MemoizeFuncPipe, name: "memoizeFunc" }, { kind: "pipe", type: UiTranslatePipe, name: "uiTranslate" }, { kind: "pipe", type: OrdinalSuffixPipe, name: "ordinalSuffix" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
182
- }
183
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsReportComponent, decorators: [{
184
- type: Component,
185
- args: [{ selector: 'ui-universal-skills-report', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
186
- AccordionComponent,
187
- BadgeComponent,
188
- ProgressBarComponent,
189
- AsyncPipe,
190
- KeyValuePipe,
191
- MemoizeFuncPipe,
192
- UiTranslatePipe,
193
- OrdinalSuffixPipe,
194
- ], template: "@for (skillAreaGroup of skillAreaGroupMap | keyvalue; track skillAreaGroup) {\n <div class=\"universal-skills-report\">\n <section class=\"title-and-info\">\n <h4>{{ skillAreaGroup.value.title | uiTranslate | async }}</h4>\n <span>{{ skillAreaGroup.value.description | uiTranslate | async }}</span>\n </section>\n <section class=\"accordion-items\">\n @for (skillAreaData of skillAreaGroup?.value?.skillAreaList; track skillAreaData) {\n <ui-accordion class=\"universal-skills-accordion\" label=\"-\" [allowCustomHeader]=\"true\">\n <div customHeader class=\"custom-header\">\n <h4 class=\"custom-header-subtitle\">\n {{\n translationContext + 'SKILL_AREA_TYPES.' + skillAreaData.skillAreaName + '.TITLE' | uiTranslate | async\n }}\n </h4>\n <div class=\"inner-container\">\n <ui-badge\n class=\"percentile-scoring-badge\"\n [label]=\"\n (skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeLabel : this | uiTranslate | async) ||\n 'neutral'\n \"\n [rebrandColor]=\"skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeColor : this\"\n [applicationTheme]=\"'light'\"\n ></ui-badge>\n <h5 class=\"percentile-quantity\">\n {{ skillAreaData?.percentileScoring }}\n <sup class=\"percentile-suffix\">{{\n skillAreaData.percentileScoring | ordinalSuffix | uiTranslate | async\n }}</sup>\n {{ translationContext + 'PERCENTILE' | uiTranslate | async }}\n </h5>\n <ui-progress-bar\n class=\"percentile-scoring-bar\"\n mode=\"determinate\"\n [progress]=\"skillAreaData.percentileScoring\"\n ></ui-progress-bar>\n </div>\n </div>\n <div class=\"content-container\">\n <p class=\"skill-description\">\n {{\n translationContext + 'SKILL_AREA_TYPES.' + skillAreaData.skillAreaName + '.DESCRIPTION'\n | uiTranslate\n | async\n }}\n </p>\n <h5>\n {{ skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeLabel : this | uiTranslate | async }} score\n </h5>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.GENERAL'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.WORK_ENVIRONMENT'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.RECOMMENDATIONS'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n </div>\n </ui-accordion>\n }\n </section>\n </div>\n}\n", styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.universal-skills-report{display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:2.2rem}.universal-skills-report:last-of-type{margin-bottom:0}.universal-skills-report .title-and-info{width:100%;display:flex;flex-direction:column;gap:.7rem}.universal-skills-report .accordion-items{width:100%;display:flex;flex-direction:column;gap:.6rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header{width:100%;display:flex;justify-content:space-between;align-items:center;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .custom-header-subtitle{font-weight:400}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container{width:70%;max-width:450px;display:flex;justify-content:space-between;align-items:center;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-badge{width:126px;display:flex;justify-content:center}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-quantity{margin-top:-.4rem;white-space:nowrap}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-quantity .percentile-suffix{font-size:8px;line-height:22px;font-weight:700;margin-left:-.1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-bar{width:180px;height:8px}@media(max-width:600px){.universal-skills-report .accordion-items .universal-skills-accordion .custom-header{flex-direction:column;align-items:flex-start;min-height:60px}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .custom-header-subtitle{white-space:nowrap}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container{width:100%;max-width:none;position:absolute;top:45px;left:0;padding:0 1.5rem 0 1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-badge{justify-content:flex-start}}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel{border:1px solid #d3d3d3}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{background-color:transparent}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container{display:flex;flex-direction:column;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container p{line-height:21px;margin:0}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container .skill-description{color:#666;line-height:22px;margin:.5rem 0}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container .inner-container{background-color:#f4f4f4;padding:1rem;border-radius:10px;display:flex;flex-direction:column;gap:1rem}\n"] }]
195
- }], ctorParameters: () => [{ type: undefined, decorators: [{
196
- type: Optional
197
- }, {
198
- type: Inject,
199
- args: ['CANOPYUI_DEFAULT_APPLICATION_THEME']
200
- }] }, { type: UniversalSkillsService }], propDecorators: { applicationTheme: [{
201
- type: Input
202
- }], skillAreaDataList: [{
203
- type: Input
204
- }] } });
205
-
206
- class UniversalSkillsReportComponentModule {
207
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsReportComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
208
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsReportComponentModule, imports: [CommonModule,
209
- AccordionComponentModule,
210
- BadgeComponentModule,
211
- ProgressBarComponentModule,
212
- MemoizeFuncPipe,
213
- UiTranslatePipe,
214
- OrdinalSuffixPipe,
215
- KeyValuePipe,
216
- UniversalSkillsReportComponent], exports: [UniversalSkillsReportComponent] }); }
217
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsReportComponentModule, imports: [CommonModule,
218
- AccordionComponentModule,
219
- BadgeComponentModule,
220
- ProgressBarComponentModule,
221
- UniversalSkillsReportComponent] }); }
222
- }
223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsReportComponentModule, decorators: [{
224
- type: NgModule,
225
- args: [{
226
- imports: [
227
- CommonModule,
228
- AccordionComponentModule,
229
- BadgeComponentModule,
230
- ProgressBarComponentModule,
231
- MemoizeFuncPipe,
232
- UiTranslatePipe,
233
- OrdinalSuffixPipe,
234
- KeyValuePipe,
235
- UniversalSkillsReportComponent,
236
- ],
237
- exports: [UniversalSkillsReportComponent],
238
- }]
239
- }] });
240
-
241
- class UniversalSkillsSpiderChartsComponent {
242
- constructor(defaultAppTheme, universalSkillsService, uiTranslatePipe) {
243
- this.defaultAppTheme = defaultAppTheme;
244
- this.universalSkillsService = universalSkillsService;
245
- this.uiTranslatePipe = uiTranslatePipe;
246
- /**
247
- * Defines the application theme
248
- * @property applicationTheme
249
- * @type {ApplicationTheme}
250
- * @memberof UniversalSkillsSpiderChartsComponent
251
- */
252
- this.applicationTheme = 'light';
253
- /**
254
- * Defines if the component is loading
255
- * @property loading
256
- * @type {boolean}
257
- * @memberof UniversalSkillsSpiderChartsComponent
258
- */
259
- this.loading = false;
260
- /**
261
- * Defines the size of the spider chart
262
- * @property size
263
- * @type {'small' | 'large'}
264
- * @memberof UniversalSkillsSpiderChartsComponent
265
- */
266
- this.size = 'large';
267
- this.translationContext = 'UNIVERSAL_SKILLS_REPORT.';
268
- this.skillAreaSpiderChartData = [];
269
- if (defaultAppTheme) {
270
- this.applicationTheme = defaultAppTheme;
271
- }
272
- }
273
- ngOnInit() {
274
- this.universalSkillsService.initializeSkillAreaGroupMap();
275
- this.universalSkillsService.prepareSkillAreaGroupMap(this.skillAreaDataList);
276
- this.skillAreaGroupMap = this.universalSkillsService.getSkillAreaGroupMap();
277
- this.prepareSpiderChartData();
278
- }
279
- prepareSpiderChartData() {
280
- this.skillAreaSpiderChartData = [];
281
- Object.values(this.skillAreaGroupMap).forEach(skillAreaGroup => {
282
- const labelObservables = skillAreaGroup.skillAreaList.map(skillArea => this.uiTranslatePipe.transform(`${this.translationContext}SKILL_AREA_TYPES.${skillArea.skillAreaName}.TITLE`));
283
- const labelDescriptionObservables = skillAreaGroup.skillAreaList.map(skillArea => this.uiTranslatePipe.transform(`${this.translationContext}SKILL_AREA_TYPES.${skillArea.skillAreaName}.DESCRIPTION`));
284
- const allObservables = [...labelObservables, ...labelDescriptionObservables];
285
- const translations = [];
286
- allObservables.forEach(observable => {
287
- observable.pipe(take(1)).subscribe(translation => {
288
- translations.push(translation);
289
- });
290
- });
291
- const labels = translations.slice(0, labelObservables.length);
292
- const labelDescriptions = translations.slice(labelObservables.length);
293
- this.skillAreaSpiderChartData.push({
294
- title: skillAreaGroup.title,
295
- description: skillAreaGroup.description,
296
- spiderChartData: {
297
- labels,
298
- labelDescription: labelDescriptions,
299
- plotData: skillAreaGroup.skillAreaList?.[0]?.poolPercentileScoring !== undefined
300
- ? [
301
- {
302
- data: skillAreaGroup.skillAreaList.map(skillArea => skillArea.percentileScoring),
303
- databaseLabel: "This candidate's score",
304
- },
305
- {
306
- data: skillAreaGroup.skillAreaList.map(skillArea => skillArea.poolPercentileScoring ?? 0),
307
- databaseLabel: 'Average score of all candidates',
308
- },
309
- ]
310
- : [
311
- {
312
- data: skillAreaGroup.skillAreaList.map(skillArea => skillArea.percentileScoring),
313
- databaseLabel: "This candidate's score",
314
- },
315
- ],
316
- },
317
- });
318
- });
319
- }
320
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsSpiderChartsComponent, deps: [{ token: 'CANOPYUI_DEFAULT_APPLICATION_THEME', optional: true }, { token: UniversalSkillsService }, { token: i2.UiTranslatePipe }], target: i0.ɵɵFactoryTarget.Component }); }
321
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: UniversalSkillsSpiderChartsComponent, isStandalone: true, selector: "ui-universal-skills-spider-charts", inputs: { applicationTheme: "applicationTheme", skillAreaDataList: "skillAreaDataList", loading: "loading", size: "size" }, ngImport: i0, template: "@for (spiderChartData of skillAreaSpiderChartData; track spiderChartData) {\n <ui-accordion\n class=\"universal-skills-spider-charts\"\n [label]=\"(spiderChartData.title | uiTranslate | async) || ''\"\n variant=\"filter\"\n >\n <ui-spider-chart\n [spiderChartData]=\"spiderChartData.spiderChartData\"\n [loading]=\"loading\"\n [size]=\"size\"\n ></ui-spider-chart>\n </ui-accordion>\n @if ($index < skillAreaSpiderChartData.length - 1) {\n <ui-divider class=\"universal-skills-spider-charts-divider\" size=\"small\"></ui-divider>\n }\n}\n", styles: [".universal-skills-spider-charts ::ng-deep .accordion-wrapper[theme=light] .mat-expansion-panel .mat-expansion-panel-header .accordion-label{font-weight:700}.universal-skills-spider-charts-divider ::ng-deep .ui-divider-wrapper{margin-top:8px;margin-bottom:8px}\n"], dependencies: [{ kind: "component", type: AccordionComponent, selector: "ui-accordion", inputs: ["label", "open", "disabled", "showPremiumIcon", "premiumTooltipText", "applicationTheme", "labelIcon", "variant", "allowCustomHeader", "noBackgroundColor", "toggleIconPosition", "toggleIcon", "toggleIconExpanded", "boldLabel"], outputs: ["closed", "opened"] }, { kind: "component", type: SpiderChartComponent, selector: "ui-spider-chart", inputs: ["size", "spiderChartData", "stepSize", "ariaLabel", "loading", "applicationTheme"] }, { kind: "component", type: DividerComponent, selector: "ui-divider", inputs: ["size", "companyColor", "applicationTheme", "label"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: UiTranslatePipe, name: "uiTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
322
- }
323
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsSpiderChartsComponent, decorators: [{
324
- type: Component,
325
- args: [{ selector: 'ui-universal-skills-spider-charts', changeDetection: ChangeDetectionStrategy.OnPush, imports: [AccordionComponent, SpiderChartComponent, DividerComponent, AsyncPipe, UiTranslatePipe], template: "@for (spiderChartData of skillAreaSpiderChartData; track spiderChartData) {\n <ui-accordion\n class=\"universal-skills-spider-charts\"\n [label]=\"(spiderChartData.title | uiTranslate | async) || ''\"\n variant=\"filter\"\n >\n <ui-spider-chart\n [spiderChartData]=\"spiderChartData.spiderChartData\"\n [loading]=\"loading\"\n [size]=\"size\"\n ></ui-spider-chart>\n </ui-accordion>\n @if ($index < skillAreaSpiderChartData.length - 1) {\n <ui-divider class=\"universal-skills-spider-charts-divider\" size=\"small\"></ui-divider>\n }\n}\n", styles: [".universal-skills-spider-charts ::ng-deep .accordion-wrapper[theme=light] .mat-expansion-panel .mat-expansion-panel-header .accordion-label{font-weight:700}.universal-skills-spider-charts-divider ::ng-deep .ui-divider-wrapper{margin-top:8px;margin-bottom:8px}\n"] }]
326
- }], ctorParameters: () => [{ type: undefined, decorators: [{
327
- type: Optional
328
- }, {
329
- type: Inject,
330
- args: ['CANOPYUI_DEFAULT_APPLICATION_THEME']
331
- }] }, { type: UniversalSkillsService }, { type: i2.UiTranslatePipe }], propDecorators: { applicationTheme: [{
332
- type: Input
333
- }], skillAreaDataList: [{
334
- type: Input
335
- }], loading: [{
336
- type: Input
337
- }], size: [{
338
- type: Input
339
- }] } });
340
-
341
- class UniversalSkillsSpiderChartsComponentModule {
342
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsSpiderChartsComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
343
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsSpiderChartsComponentModule, imports: [CommonModule,
344
- AccordionComponentModule,
345
- BadgeComponentModule,
346
- ProgressBarComponentModule,
347
- SpiderChartComponentModule,
348
- DividerComponentModule,
349
- MemoizeFuncPipe,
350
- UiTranslatePipe,
351
- OrdinalSuffixPipe,
352
- KeyValuePipe,
353
- UniversalSkillsSpiderChartsComponent], exports: [UniversalSkillsSpiderChartsComponent] }); }
354
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsSpiderChartsComponentModule, providers: [UiTranslatePipe], imports: [CommonModule,
355
- AccordionComponentModule,
356
- BadgeComponentModule,
357
- ProgressBarComponentModule,
358
- SpiderChartComponentModule,
359
- DividerComponentModule,
360
- UniversalSkillsSpiderChartsComponent] }); }
361
- }
362
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: UniversalSkillsSpiderChartsComponentModule, decorators: [{
363
- type: NgModule,
364
- args: [{
365
- imports: [
366
- CommonModule,
367
- AccordionComponentModule,
368
- BadgeComponentModule,
369
- ProgressBarComponentModule,
370
- SpiderChartComponentModule,
371
- DividerComponentModule,
372
- MemoizeFuncPipe,
373
- UiTranslatePipe,
374
- OrdinalSuffixPipe,
375
- KeyValuePipe,
376
- UniversalSkillsSpiderChartsComponent,
377
- ],
378
- providers: [UiTranslatePipe],
379
- exports: [UniversalSkillsSpiderChartsComponent],
380
- }]
381
- }] });
382
-
383
- /**
384
- * Generated bundle index. Do not edit.
385
- */
386
-
42
+ var UniversalSkillsService = class UniversalSkillsService {
43
+ constructor() {
44
+ this.translationContext = "UNIVERSAL_SKILLS_REPORT.";
45
+ this.staticSkillAreaGroupMap = [
46
+ [
47
+ SkillAreaTypes.BusinessSavvy,
48
+ SkillAreaTypes.StrategicPerspective,
49
+ SkillAreaTypes.CustomerFocus,
50
+ SkillAreaTypes.NavigatingComplexity,
51
+ SkillAreaTypes.AgileDecisionMaking,
52
+ SkillAreaTypes.EmbracingInnovation,
53
+ SkillAreaTypes.PlanningAndPrioritizing,
54
+ SkillAreaTypes.OrganizingResources,
55
+ SkillAreaTypes.DrivingResults
56
+ ],
57
+ [
58
+ SkillAreaTypes.WorkingCollaboratively,
59
+ SkillAreaTypes.SocialAgility,
60
+ SkillAreaTypes.CommunicatingEffectively,
61
+ SkillAreaTypes.HandlingConflict,
62
+ SkillAreaTypes.ValuingDiversity,
63
+ SkillAreaTypes.DevelopingOthers
64
+ ],
65
+ [
66
+ SkillAreaTypes.ShowingResilience,
67
+ SkillAreaTypes.NavigatingAmbiguity,
68
+ SkillAreaTypes.SelfAwareness,
69
+ SkillAreaTypes.SelfDevelopment,
70
+ SkillAreaTypes.EarningTrust,
71
+ SkillAreaTypes.BeingBold
72
+ ]
73
+ ];
74
+ }
75
+ initializeSkillAreaGroupMap() {
76
+ this.skillAreaGroupMap = {
77
+ [SkillAreaGroupTypes.FocusingOnObjectives]: {
78
+ title: `${this.translationContext}SKILL_AREA_GROUP_TYPES.FOCUSING_ON_OBJECTIVES.TITLE`,
79
+ description: `${this.translationContext}SKILL_AREA_GROUP_TYPES.FOCUSING_ON_OBJECTIVES.DESCRIPTION`,
80
+ skillAreaList: []
81
+ },
82
+ [SkillAreaGroupTypes.WorkingWithPeople]: {
83
+ title: `${this.translationContext}SKILL_AREA_GROUP_TYPES.WORKING_WITH_PEOPLE.TITLE`,
84
+ description: `${this.translationContext}SKILL_AREA_GROUP_TYPES.WORKING_WITH_PEOPLE.DESCRIPTION`,
85
+ skillAreaList: []
86
+ },
87
+ [SkillAreaGroupTypes.ManagingOnesSelf]: {
88
+ title: `${this.translationContext}SKILL_AREA_GROUP_TYPES.MANAGING_ONES_SELF.TITLE`,
89
+ description: `${this.translationContext}SKILL_AREA_GROUP_TYPES.MANAGING_ONES_SELF.DESCRIPTION`,
90
+ skillAreaList: []
91
+ }
92
+ };
93
+ }
94
+ prepareSkillAreaGroupMap(skillAreaDataList) {
95
+ skillAreaDataList?.forEach((currentItem) => {
96
+ const formattedSkillAreaType = currentItem.skillAreaName;
97
+ if (this.staticSkillAreaGroupMap[0].includes(formattedSkillAreaType)) this.skillAreaGroupMap[SkillAreaGroupTypes.FocusingOnObjectives]?.skillAreaList?.push(currentItem);
98
+ if (this.staticSkillAreaGroupMap[1].includes(formattedSkillAreaType)) this.skillAreaGroupMap[SkillAreaGroupTypes.WorkingWithPeople]?.skillAreaList?.push(currentItem);
99
+ if (this.staticSkillAreaGroupMap[2].includes(formattedSkillAreaType)) this.skillAreaGroupMap[SkillAreaGroupTypes.ManagingOnesSelf]?.skillAreaList?.push(currentItem);
100
+ });
101
+ }
102
+ getSkillAreaGroupMap() {
103
+ return this.skillAreaGroupMap;
104
+ }
105
+ getStaticSkillAreaGroupMap() {
106
+ return this.staticSkillAreaGroupMap;
107
+ }
108
+ static {
109
+ this.ɵfac = i0.ɵɵngDeclareFactory({
110
+ minVersion: "12.0.0",
111
+ version: "22.2.4",
112
+ ngImport: i0,
113
+ type: UniversalSkillsService,
114
+ deps: [],
115
+ target: i0.ɵɵFactoryTarget.Injectable
116
+ });
117
+ }
118
+ static {
119
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
120
+ minVersion: "12.0.0",
121
+ version: "22.2.4",
122
+ ngImport: i0,
123
+ type: UniversalSkillsService,
124
+ providedIn: "root"
125
+ });
126
+ }
127
+ };
128
+ i0.ɵɵngDeclareClassMetadata({
129
+ minVersion: "12.0.0",
130
+ version: "22.2.4",
131
+ ngImport: i0,
132
+ type: UniversalSkillsService,
133
+ decorators: [{
134
+ type: Injectable,
135
+ args: [{ providedIn: "root" }]
136
+ }]
137
+ });
138
+ var UniversalSkillsReportComponent = class UniversalSkillsReportComponent {
139
+ constructor(defaultAppTheme, universalSkillsService) {
140
+ this.defaultAppTheme = defaultAppTheme;
141
+ this.universalSkillsService = universalSkillsService;
142
+ this.applicationTheme = "light";
143
+ this.translationContext = "UNIVERSAL_SKILLS_REPORT.";
144
+ if (defaultAppTheme) this.applicationTheme = defaultAppTheme;
145
+ }
146
+ ngOnInit() {
147
+ this.universalSkillsService.initializeSkillAreaGroupMap();
148
+ this.universalSkillsService.prepareSkillAreaGroupMap(this.skillAreaDataList);
149
+ this.skillAreaGroupMap = this.universalSkillsService.getSkillAreaGroupMap();
150
+ }
151
+ getScoreBadgeLabel(percentileScoring) {
152
+ return `PERCENTILE_LABEL_TYPES.${this.checkScoreClassification([percentileScoring, true])}`;
153
+ }
154
+ getScoreBadgeColor(percentileScoring) {
155
+ return this.checkScoreClassification([percentileScoring, false]);
156
+ }
157
+ checkScoreClassification([percentileScoring, isLabelRequest]) {
158
+ let scoreBadgeLabel = "";
159
+ let scoreBadgeColor = RebrandBadgeColorEnum.BLUE_10;
160
+ if (percentileScoring >= 1 && percentileScoring <= 19) {
161
+ scoreBadgeLabel = "WELL_BELOW_AVERAGE";
162
+ scoreBadgeColor = RebrandBadgeColorEnum.GREY_30;
163
+ }
164
+ if (percentileScoring >= 20 && percentileScoring <= 39) {
165
+ scoreBadgeLabel = "BELOW_AVERAGE";
166
+ scoreBadgeColor = RebrandBadgeColorEnum.GREY_10;
167
+ }
168
+ if (percentileScoring >= 40 && percentileScoring <= 59) {
169
+ scoreBadgeLabel = "AVERAGE";
170
+ scoreBadgeColor = RebrandBadgeColorEnum.BLUE_10;
171
+ }
172
+ if (percentileScoring >= 60 && percentileScoring <= 79) {
173
+ scoreBadgeLabel = "ABOVE_AVERAGE";
174
+ scoreBadgeColor = RebrandBadgeColorEnum.BLUE_20;
175
+ }
176
+ if (percentileScoring >= 80 && percentileScoring <= 100) {
177
+ scoreBadgeLabel = "WELL_ABOVE_AVERAGE";
178
+ scoreBadgeColor = RebrandBadgeColorEnum.BLUE_40;
179
+ }
180
+ return isLabelRequest ? scoreBadgeLabel : scoreBadgeColor;
181
+ }
182
+ static {
183
+ this.ɵfac = i0.ɵɵngDeclareFactory({
184
+ minVersion: "12.0.0",
185
+ version: "22.2.4",
186
+ ngImport: i0,
187
+ type: UniversalSkillsReportComponent,
188
+ deps: [{
189
+ token: "CANOPYUI_DEFAULT_APPLICATION_THEME",
190
+ optional: true
191
+ }, { token: UniversalSkillsService }],
192
+ target: i0.ɵɵFactoryTarget.Component
193
+ });
194
+ }
195
+ static {
196
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
197
+ minVersion: "17.0.0",
198
+ version: "22.2.4",
199
+ type: UniversalSkillsReportComponent,
200
+ isStandalone: true,
201
+ selector: "ui-universal-skills-report",
202
+ inputs: {
203
+ applicationTheme: "applicationTheme",
204
+ skillAreaDataList: "skillAreaDataList"
205
+ },
206
+ ngImport: i0,
207
+ template: "@for (skillAreaGroup of skillAreaGroupMap | keyvalue; track skillAreaGroup) {\n <div class=\"universal-skills-report\">\n <section class=\"title-and-info\">\n <h4>{{ skillAreaGroup.value.title | uiTranslate | async }}</h4>\n <span>{{ skillAreaGroup.value.description | uiTranslate | async }}</span>\n </section>\n <section class=\"accordion-items\">\n @for (skillAreaData of skillAreaGroup?.value?.skillAreaList; track skillAreaData) {\n <ui-accordion class=\"universal-skills-accordion\" label=\"-\" [allowCustomHeader]=\"true\">\n <div customHeader class=\"custom-header\">\n <h4 class=\"custom-header-subtitle\">\n {{\n translationContext + 'SKILL_AREA_TYPES.' + skillAreaData.skillAreaName + '.TITLE' | uiTranslate | async\n }}\n </h4>\n <div class=\"inner-container\">\n <ui-badge\n class=\"percentile-scoring-badge\"\n [label]=\"\n (skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeLabel : this | uiTranslate | async) ||\n 'neutral'\n \"\n [rebrandColor]=\"skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeColor : this\"\n [applicationTheme]=\"'light'\"\n ></ui-badge>\n <h5 class=\"percentile-quantity\">\n {{ skillAreaData?.percentileScoring }}\n <sup class=\"percentile-suffix\">{{\n skillAreaData.percentileScoring | ordinalSuffix | uiTranslate | async\n }}</sup>\n {{ translationContext + 'PERCENTILE' | uiTranslate | async }}\n </h5>\n <ui-progress-bar\n class=\"percentile-scoring-bar\"\n mode=\"determinate\"\n [progress]=\"skillAreaData.percentileScoring\"\n ></ui-progress-bar>\n </div>\n </div>\n <div class=\"content-container\">\n <p class=\"skill-description\">\n {{\n translationContext + 'SKILL_AREA_TYPES.' + skillAreaData.skillAreaName + '.DESCRIPTION'\n | uiTranslate\n | async\n }}\n </p>\n <h5>\n {{ skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeLabel : this | uiTranslate | async }} score\n </h5>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.GENERAL'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.WORK_ENVIRONMENT'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.RECOMMENDATIONS'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n </div>\n </ui-accordion>\n }\n </section>\n </div>\n}\n",
208
+ styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.universal-skills-report{display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:2.2rem}.universal-skills-report:last-of-type{margin-bottom:0}.universal-skills-report .title-and-info{width:100%;display:flex;flex-direction:column;gap:.7rem}.universal-skills-report .accordion-items{width:100%;display:flex;flex-direction:column;gap:.6rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header{width:100%;display:flex;justify-content:space-between;align-items:center;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .custom-header-subtitle{font-weight:400}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container{width:70%;max-width:450px;display:flex;justify-content:space-between;align-items:center;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-badge{width:126px;display:flex;justify-content:center}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-quantity{margin-top:-.4rem;white-space:nowrap}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-quantity .percentile-suffix{font-size:8px;line-height:22px;font-weight:700;margin-left:-.1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-bar{width:180px;height:8px}@media(max-width:600px){.universal-skills-report .accordion-items .universal-skills-accordion .custom-header{flex-direction:column;align-items:flex-start;min-height:60px}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .custom-header-subtitle{white-space:nowrap}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container{width:100%;max-width:none;position:absolute;top:45px;left:0;padding:0 1.5rem 0 1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-badge{justify-content:flex-start}}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel{border:1px solid #d3d3d3}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{background-color:transparent}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container{display:flex;flex-direction:column;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container p{line-height:21px;margin:0}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container .skill-description{color:#666;line-height:22px;margin:.5rem 0}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container .inner-container{background-color:#f4f4f4;padding:1rem;border-radius:10px;display:flex;flex-direction:column;gap:1rem}\n"],
209
+ dependencies: [
210
+ {
211
+ kind: "component",
212
+ type: AccordionComponent,
213
+ selector: "ui-accordion",
214
+ inputs: [
215
+ "label",
216
+ "open",
217
+ "disabled",
218
+ "showPremiumIcon",
219
+ "premiumTooltipText",
220
+ "applicationTheme",
221
+ "labelIcon",
222
+ "variant",
223
+ "allowCustomHeader",
224
+ "noBackgroundColor",
225
+ "toggleIconPosition",
226
+ "toggleIcon",
227
+ "toggleIconExpanded",
228
+ "boldLabel"
229
+ ],
230
+ outputs: ["closed", "opened"]
231
+ },
232
+ {
233
+ kind: "component",
234
+ type: BadgeComponent,
235
+ selector: "ui-badge",
236
+ inputs: [
237
+ "label",
238
+ "staticLabel",
239
+ "icon",
240
+ "iconColor",
241
+ "trailingIcon",
242
+ "trailingIconColor",
243
+ "color",
244
+ "variant",
245
+ "notificationsAmount",
246
+ "applicationTheme",
247
+ "rebrandColor",
248
+ "truncateLabel",
249
+ "enableAnimation"
250
+ ]
251
+ },
252
+ {
253
+ kind: "component",
254
+ type: ProgressBarComponent,
255
+ selector: "ui-progress-bar",
256
+ inputs: [
257
+ "companyColor",
258
+ "progress",
259
+ "mode",
260
+ "buffer",
261
+ "applicationTheme",
262
+ "ariaLabel",
263
+ "ariaDescribedBy",
264
+ "showPercentage"
265
+ ]
266
+ },
267
+ {
268
+ kind: "pipe",
269
+ type: AsyncPipe,
270
+ name: "async"
271
+ },
272
+ {
273
+ kind: "pipe",
274
+ type: KeyValuePipe,
275
+ name: "keyvalue"
276
+ },
277
+ {
278
+ kind: "pipe",
279
+ type: MemoizeFuncPipe,
280
+ name: "memoizeFunc"
281
+ },
282
+ {
283
+ kind: "pipe",
284
+ type: UiTranslatePipe,
285
+ name: "uiTranslate"
286
+ },
287
+ {
288
+ kind: "pipe",
289
+ type: OrdinalSuffixPipe,
290
+ name: "ordinalSuffix"
291
+ }
292
+ ],
293
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
294
+ });
295
+ }
296
+ };
297
+ i0.ɵɵngDeclareClassMetadata({
298
+ minVersion: "12.0.0",
299
+ version: "22.2.4",
300
+ ngImport: i0,
301
+ type: UniversalSkillsReportComponent,
302
+ decorators: [{
303
+ type: Component,
304
+ args: [{
305
+ selector: "ui-universal-skills-report",
306
+ changeDetection: ChangeDetectionStrategy.OnPush,
307
+ imports: [
308
+ AccordionComponent,
309
+ BadgeComponent,
310
+ ProgressBarComponent,
311
+ AsyncPipe,
312
+ KeyValuePipe,
313
+ MemoizeFuncPipe,
314
+ UiTranslatePipe,
315
+ OrdinalSuffixPipe
316
+ ],
317
+ template: "@for (skillAreaGroup of skillAreaGroupMap | keyvalue; track skillAreaGroup) {\n <div class=\"universal-skills-report\">\n <section class=\"title-and-info\">\n <h4>{{ skillAreaGroup.value.title | uiTranslate | async }}</h4>\n <span>{{ skillAreaGroup.value.description | uiTranslate | async }}</span>\n </section>\n <section class=\"accordion-items\">\n @for (skillAreaData of skillAreaGroup?.value?.skillAreaList; track skillAreaData) {\n <ui-accordion class=\"universal-skills-accordion\" label=\"-\" [allowCustomHeader]=\"true\">\n <div customHeader class=\"custom-header\">\n <h4 class=\"custom-header-subtitle\">\n {{\n translationContext + 'SKILL_AREA_TYPES.' + skillAreaData.skillAreaName + '.TITLE' | uiTranslate | async\n }}\n </h4>\n <div class=\"inner-container\">\n <ui-badge\n class=\"percentile-scoring-badge\"\n [label]=\"\n (skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeLabel : this | uiTranslate | async) ||\n 'neutral'\n \"\n [rebrandColor]=\"skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeColor : this\"\n [applicationTheme]=\"'light'\"\n ></ui-badge>\n <h5 class=\"percentile-quantity\">\n {{ skillAreaData?.percentileScoring }}\n <sup class=\"percentile-suffix\">{{\n skillAreaData.percentileScoring | ordinalSuffix | uiTranslate | async\n }}</sup>\n {{ translationContext + 'PERCENTILE' | uiTranslate | async }}\n </h5>\n <ui-progress-bar\n class=\"percentile-scoring-bar\"\n mode=\"determinate\"\n [progress]=\"skillAreaData.percentileScoring\"\n ></ui-progress-bar>\n </div>\n </div>\n <div class=\"content-container\">\n <p class=\"skill-description\">\n {{\n translationContext + 'SKILL_AREA_TYPES.' + skillAreaData.skillAreaName + '.DESCRIPTION'\n | uiTranslate\n | async\n }}\n </p>\n <h5>\n {{ skillAreaData.percentileScoring | memoizeFunc: getScoreBadgeLabel : this | uiTranslate | async }} score\n </h5>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.GENERAL'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.WORK_ENVIRONMENT'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n <div class=\"inner-container\">\n <p>\n {{\n translationContext +\n 'SKILL_AREA_TYPES.' +\n skillAreaData.skillAreaName +\n '.' +\n ([skillAreaData.percentileScoring, true] | memoizeFunc: checkScoreClassification : this) +\n '.RECOMMENDATIONS'\n | uiTranslate\n | async\n }}\n </p>\n </div>\n </div>\n </ui-accordion>\n }\n </section>\n </div>\n}\n",
318
+ styles: [".bg-teal-60b{background:#1c443c}.bg-teal-30b{background:#31766a}.bg-teal-default{background:#46a997}.bg-teal-30w{background:#7ec3b6}.bg-teal-60w{background:#b5ddd5}.bg-teal-secondary{background:#cbd6cb}.bg-teal-90w{background:#ecf6f5}.bg-petrol-60b{background:#102930}.bg-petrol-30b{background:#1b4754}.bg-petrol-default{background:#276678}.bg-petrol-30w{background:#6894a0}.bg-petrol-60w{background:#a9c2c9}.bg-petrol-secondary{background:#c8d7de}.bg-petrol-90w{background:#e9f0f1}.bg-error-60b{background:#513131}.bg-error-30b{background:#8e5655}.bg-error-60w{background:#e3c3c6}.bg-error-secondary{background:#f0dad9}.bg-error-default{background:#cb7b7a}.bg-warning-secondary{background:#f0d6bb}.bg-warning-default{background:#cca45f}.bg-black{background:#000}.bg-dark{background:#888}.bg-medium{background:#e0e0e0}.bg-grey{background:#ededed}.bg-light{background:#f6f6f6}.bg-white{background:#fff}.bg-box-shadow{background:#00000014}.bg-navigation-subtitle{background:#528593}.bgc-teal-60b{background-color:#1c443c}.bgc-teal-30b{background-color:#31766a}.bgc-teal-default{background-color:#46a997}.bgc-teal-30w{background-color:#7ec3b6}.bgc-teal-60w{background-color:#b5ddd5}.bgc-teal-secondary{background-color:#cbd6cb}.bgc-teal-90w{background-color:#ecf6f5}.bgc-petrol-60b{background-color:#102930}.bgc-petrol-30b{background-color:#1b4754}.bgc-petrol-default{background-color:#276678}.bgc-petrol-30w{background-color:#6894a0}.bgc-petrol-60w{background-color:#a9c2c9}.bgc-petrol-secondary{background-color:#c8d7de}.bgc-petrol-90w{background-color:#e9f0f1}.bgc-error-60b{background-color:#513131}.bgc-error-30b{background-color:#8e5655}.bgc-error-60w{background-color:#e3c3c6}.bgc-error-secondary{background-color:#f0dad9}.bgc-error-default{background-color:#cb7b7a}.bgc-warning-secondary{background-color:#f0d6bb}.bgc-warning-default{background-color:#cca45f}.bgc-black{background-color:#000}.bgc-dark{background-color:#888}.bgc-medium{background-color:#e0e0e0}.bgc-grey{background-color:#ededed}.bgc-light{background-color:#f6f6f6}.bgc-white{background-color:#fff}.bgc-box-shadow{background-color:#00000014}.bgc-navigation-subtitle{background-color:#528593}.universal-skills-report{display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:2.2rem}.universal-skills-report:last-of-type{margin-bottom:0}.universal-skills-report .title-and-info{width:100%;display:flex;flex-direction:column;gap:.7rem}.universal-skills-report .accordion-items{width:100%;display:flex;flex-direction:column;gap:.6rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header{width:100%;display:flex;justify-content:space-between;align-items:center;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .custom-header-subtitle{font-weight:400}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container{width:70%;max-width:450px;display:flex;justify-content:space-between;align-items:center;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-badge{width:126px;display:flex;justify-content:center}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-quantity{margin-top:-.4rem;white-space:nowrap}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-quantity .percentile-suffix{font-size:8px;line-height:22px;font-weight:700;margin-left:-.1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-bar{width:180px;height:8px}@media(max-width:600px){.universal-skills-report .accordion-items .universal-skills-accordion .custom-header{flex-direction:column;align-items:flex-start;min-height:60px}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .custom-header-subtitle{white-space:nowrap}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container{width:100%;max-width:none;position:absolute;top:45px;left:0;padding:0 1.5rem 0 1rem}.universal-skills-report .accordion-items .universal-skills-accordion .custom-header .inner-container .percentile-scoring-badge{justify-content:flex-start}}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel{border:1px solid #d3d3d3}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{background-color:transparent}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container{display:flex;flex-direction:column;gap:1rem}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container p{line-height:21px;margin:0}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container .skill-description{color:#666;line-height:22px;margin:.5rem 0}.universal-skills-report .accordion-items .universal-skills-accordion ::ng-deep .mat-accordion .mat-expansion-panel .mat-expansion-panel-body .content-container .inner-container{background-color:#f4f4f4;padding:1rem;border-radius:10px;display:flex;flex-direction:column;gap:1rem}\n"]
319
+ }]
320
+ }],
321
+ ctorParameters: () => [{
322
+ type: void 0,
323
+ decorators: [{ type: Optional }, {
324
+ type: Inject,
325
+ args: ["CANOPYUI_DEFAULT_APPLICATION_THEME"]
326
+ }]
327
+ }, { type: UniversalSkillsService }],
328
+ propDecorators: {
329
+ applicationTheme: [{ type: Input }],
330
+ skillAreaDataList: [{ type: Input }]
331
+ }
332
+ });
333
+ var UniversalSkillsReportComponentModule = class UniversalSkillsReportComponentModule {
334
+ static {
335
+ this.ɵfac = i0.ɵɵngDeclareFactory({
336
+ minVersion: "12.0.0",
337
+ version: "22.2.4",
338
+ ngImport: i0,
339
+ type: UniversalSkillsReportComponentModule,
340
+ deps: [],
341
+ target: i0.ɵɵFactoryTarget.NgModule
342
+ });
343
+ }
344
+ static {
345
+ this.ɵmod = i0.ɵɵngDeclareNgModule({
346
+ minVersion: "14.0.0",
347
+ version: "22.2.4",
348
+ ngImport: i0,
349
+ type: UniversalSkillsReportComponentModule,
350
+ imports: [
351
+ CommonModule,
352
+ AccordionComponentModule,
353
+ BadgeComponentModule,
354
+ ProgressBarComponentModule,
355
+ MemoizeFuncPipe,
356
+ UiTranslatePipe,
357
+ OrdinalSuffixPipe,
358
+ KeyValuePipe,
359
+ UniversalSkillsReportComponent
360
+ ],
361
+ exports: [UniversalSkillsReportComponent]
362
+ });
363
+ }
364
+ static {
365
+ this.ɵinj = i0.ɵɵngDeclareInjector({
366
+ minVersion: "12.0.0",
367
+ version: "22.2.4",
368
+ ngImport: i0,
369
+ type: UniversalSkillsReportComponentModule,
370
+ imports: [
371
+ CommonModule,
372
+ AccordionComponentModule,
373
+ BadgeComponentModule,
374
+ ProgressBarComponentModule,
375
+ UniversalSkillsReportComponent
376
+ ]
377
+ });
378
+ }
379
+ };
380
+ i0.ɵɵngDeclareClassMetadata({
381
+ minVersion: "12.0.0",
382
+ version: "22.2.4",
383
+ ngImport: i0,
384
+ type: UniversalSkillsReportComponentModule,
385
+ decorators: [{
386
+ type: NgModule,
387
+ args: [{
388
+ imports: [
389
+ CommonModule,
390
+ AccordionComponentModule,
391
+ BadgeComponentModule,
392
+ ProgressBarComponentModule,
393
+ MemoizeFuncPipe,
394
+ UiTranslatePipe,
395
+ OrdinalSuffixPipe,
396
+ KeyValuePipe,
397
+ UniversalSkillsReportComponent
398
+ ],
399
+ exports: [UniversalSkillsReportComponent]
400
+ }]
401
+ }]
402
+ });
403
+ var UniversalSkillsSpiderChartsComponent = class UniversalSkillsSpiderChartsComponent {
404
+ constructor(defaultAppTheme, universalSkillsService, uiTranslatePipe) {
405
+ this.defaultAppTheme = defaultAppTheme;
406
+ this.universalSkillsService = universalSkillsService;
407
+ this.uiTranslatePipe = uiTranslatePipe;
408
+ this.applicationTheme = "light";
409
+ this.loading = false;
410
+ this.size = "large";
411
+ this.translationContext = "UNIVERSAL_SKILLS_REPORT.";
412
+ this.skillAreaSpiderChartData = [];
413
+ if (defaultAppTheme) this.applicationTheme = defaultAppTheme;
414
+ }
415
+ ngOnInit() {
416
+ this.universalSkillsService.initializeSkillAreaGroupMap();
417
+ this.universalSkillsService.prepareSkillAreaGroupMap(this.skillAreaDataList);
418
+ this.skillAreaGroupMap = this.universalSkillsService.getSkillAreaGroupMap();
419
+ this.prepareSpiderChartData();
420
+ }
421
+ prepareSpiderChartData() {
422
+ this.skillAreaSpiderChartData = [];
423
+ Object.values(this.skillAreaGroupMap).forEach((skillAreaGroup) => {
424
+ const labelObservables = skillAreaGroup.skillAreaList.map((skillArea) => this.uiTranslatePipe.transform(`${this.translationContext}SKILL_AREA_TYPES.${skillArea.skillAreaName}.TITLE`));
425
+ const labelDescriptionObservables = skillAreaGroup.skillAreaList.map((skillArea) => this.uiTranslatePipe.transform(`${this.translationContext}SKILL_AREA_TYPES.${skillArea.skillAreaName}.DESCRIPTION`));
426
+ const allObservables = [...labelObservables, ...labelDescriptionObservables];
427
+ const translations = [];
428
+ allObservables.forEach((observable) => {
429
+ observable.pipe(take(1)).subscribe((translation) => {
430
+ translations.push(translation);
431
+ });
432
+ });
433
+ const labels = translations.slice(0, labelObservables.length);
434
+ const labelDescriptions = translations.slice(labelObservables.length);
435
+ this.skillAreaSpiderChartData.push({
436
+ title: skillAreaGroup.title,
437
+ description: skillAreaGroup.description,
438
+ spiderChartData: {
439
+ labels,
440
+ labelDescription: labelDescriptions,
441
+ plotData: skillAreaGroup.skillAreaList?.[0]?.poolPercentileScoring !== void 0 ? [{
442
+ data: skillAreaGroup.skillAreaList.map((skillArea) => skillArea.percentileScoring),
443
+ databaseLabel: "This candidate's score"
444
+ }, {
445
+ data: skillAreaGroup.skillAreaList.map((skillArea) => skillArea.poolPercentileScoring ?? 0),
446
+ databaseLabel: "Average score of all candidates"
447
+ }] : [{
448
+ data: skillAreaGroup.skillAreaList.map((skillArea) => skillArea.percentileScoring),
449
+ databaseLabel: "This candidate's score"
450
+ }]
451
+ }
452
+ });
453
+ });
454
+ }
455
+ static {
456
+ this.ɵfac = i0.ɵɵngDeclareFactory({
457
+ minVersion: "12.0.0",
458
+ version: "22.2.4",
459
+ ngImport: i0,
460
+ type: UniversalSkillsSpiderChartsComponent,
461
+ deps: [
462
+ {
463
+ token: "CANOPYUI_DEFAULT_APPLICATION_THEME",
464
+ optional: true
465
+ },
466
+ { token: UniversalSkillsService },
467
+ { token: i2.UiTranslatePipe }
468
+ ],
469
+ target: i0.ɵɵFactoryTarget.Component
470
+ });
471
+ }
472
+ static {
473
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
474
+ minVersion: "17.0.0",
475
+ version: "22.2.4",
476
+ type: UniversalSkillsSpiderChartsComponent,
477
+ isStandalone: true,
478
+ selector: "ui-universal-skills-spider-charts",
479
+ inputs: {
480
+ applicationTheme: "applicationTheme",
481
+ skillAreaDataList: "skillAreaDataList",
482
+ loading: "loading",
483
+ size: "size"
484
+ },
485
+ ngImport: i0,
486
+ template: "@for (spiderChartData of skillAreaSpiderChartData; track spiderChartData) {\n <ui-accordion\n class=\"universal-skills-spider-charts\"\n [label]=\"(spiderChartData.title | uiTranslate | async) || ''\"\n variant=\"filter\"\n >\n <ui-spider-chart\n [spiderChartData]=\"spiderChartData.spiderChartData\"\n [loading]=\"loading\"\n [size]=\"size\"\n ></ui-spider-chart>\n </ui-accordion>\n @if ($index < skillAreaSpiderChartData.length - 1) {\n <ui-divider class=\"universal-skills-spider-charts-divider\" size=\"small\"></ui-divider>\n }\n}\n",
487
+ styles: [".universal-skills-spider-charts ::ng-deep .accordion-wrapper[theme=light] .mat-expansion-panel .mat-expansion-panel-header .accordion-label{font-weight:700}.universal-skills-spider-charts-divider ::ng-deep .ui-divider-wrapper{margin-top:8px;margin-bottom:8px}\n"],
488
+ dependencies: [
489
+ {
490
+ kind: "component",
491
+ type: AccordionComponent,
492
+ selector: "ui-accordion",
493
+ inputs: [
494
+ "label",
495
+ "open",
496
+ "disabled",
497
+ "showPremiumIcon",
498
+ "premiumTooltipText",
499
+ "applicationTheme",
500
+ "labelIcon",
501
+ "variant",
502
+ "allowCustomHeader",
503
+ "noBackgroundColor",
504
+ "toggleIconPosition",
505
+ "toggleIcon",
506
+ "toggleIconExpanded",
507
+ "boldLabel"
508
+ ],
509
+ outputs: ["closed", "opened"]
510
+ },
511
+ {
512
+ kind: "component",
513
+ type: SpiderChartComponent,
514
+ selector: "ui-spider-chart",
515
+ inputs: [
516
+ "size",
517
+ "spiderChartData",
518
+ "stepSize",
519
+ "ariaLabel",
520
+ "loading",
521
+ "applicationTheme"
522
+ ]
523
+ },
524
+ {
525
+ kind: "component",
526
+ type: DividerComponent,
527
+ selector: "ui-divider",
528
+ inputs: [
529
+ "size",
530
+ "companyColor",
531
+ "applicationTheme",
532
+ "label"
533
+ ]
534
+ },
535
+ {
536
+ kind: "pipe",
537
+ type: AsyncPipe,
538
+ name: "async"
539
+ },
540
+ {
541
+ kind: "pipe",
542
+ type: UiTranslatePipe,
543
+ name: "uiTranslate"
544
+ }
545
+ ],
546
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
547
+ });
548
+ }
549
+ };
550
+ i0.ɵɵngDeclareClassMetadata({
551
+ minVersion: "12.0.0",
552
+ version: "22.2.4",
553
+ ngImport: i0,
554
+ type: UniversalSkillsSpiderChartsComponent,
555
+ decorators: [{
556
+ type: Component,
557
+ args: [{
558
+ selector: "ui-universal-skills-spider-charts",
559
+ changeDetection: ChangeDetectionStrategy.OnPush,
560
+ imports: [
561
+ AccordionComponent,
562
+ SpiderChartComponent,
563
+ DividerComponent,
564
+ AsyncPipe,
565
+ UiTranslatePipe
566
+ ],
567
+ template: "@for (spiderChartData of skillAreaSpiderChartData; track spiderChartData) {\n <ui-accordion\n class=\"universal-skills-spider-charts\"\n [label]=\"(spiderChartData.title | uiTranslate | async) || ''\"\n variant=\"filter\"\n >\n <ui-spider-chart\n [spiderChartData]=\"spiderChartData.spiderChartData\"\n [loading]=\"loading\"\n [size]=\"size\"\n ></ui-spider-chart>\n </ui-accordion>\n @if ($index < skillAreaSpiderChartData.length - 1) {\n <ui-divider class=\"universal-skills-spider-charts-divider\" size=\"small\"></ui-divider>\n }\n}\n",
568
+ styles: [".universal-skills-spider-charts ::ng-deep .accordion-wrapper[theme=light] .mat-expansion-panel .mat-expansion-panel-header .accordion-label{font-weight:700}.universal-skills-spider-charts-divider ::ng-deep .ui-divider-wrapper{margin-top:8px;margin-bottom:8px}\n"]
569
+ }]
570
+ }],
571
+ ctorParameters: () => [
572
+ {
573
+ type: void 0,
574
+ decorators: [{ type: Optional }, {
575
+ type: Inject,
576
+ args: ["CANOPYUI_DEFAULT_APPLICATION_THEME"]
577
+ }]
578
+ },
579
+ { type: UniversalSkillsService },
580
+ { type: i2.UiTranslatePipe }
581
+ ],
582
+ propDecorators: {
583
+ applicationTheme: [{ type: Input }],
584
+ skillAreaDataList: [{ type: Input }],
585
+ loading: [{ type: Input }],
586
+ size: [{ type: Input }]
587
+ }
588
+ });
589
+ var UniversalSkillsSpiderChartsComponentModule = class UniversalSkillsSpiderChartsComponentModule {
590
+ static {
591
+ this.ɵfac = i0.ɵɵngDeclareFactory({
592
+ minVersion: "12.0.0",
593
+ version: "22.2.4",
594
+ ngImport: i0,
595
+ type: UniversalSkillsSpiderChartsComponentModule,
596
+ deps: [],
597
+ target: i0.ɵɵFactoryTarget.NgModule
598
+ });
599
+ }
600
+ static {
601
+ this.ɵmod = i0.ɵɵngDeclareNgModule({
602
+ minVersion: "14.0.0",
603
+ version: "22.2.4",
604
+ ngImport: i0,
605
+ type: UniversalSkillsSpiderChartsComponentModule,
606
+ imports: [
607
+ CommonModule,
608
+ AccordionComponentModule,
609
+ BadgeComponentModule,
610
+ ProgressBarComponentModule,
611
+ SpiderChartComponentModule,
612
+ DividerComponentModule,
613
+ MemoizeFuncPipe,
614
+ UiTranslatePipe,
615
+ OrdinalSuffixPipe,
616
+ KeyValuePipe,
617
+ UniversalSkillsSpiderChartsComponent
618
+ ],
619
+ exports: [UniversalSkillsSpiderChartsComponent]
620
+ });
621
+ }
622
+ static {
623
+ this.ɵinj = i0.ɵɵngDeclareInjector({
624
+ minVersion: "12.0.0",
625
+ version: "22.2.4",
626
+ ngImport: i0,
627
+ type: UniversalSkillsSpiderChartsComponentModule,
628
+ providers: [UiTranslatePipe],
629
+ imports: [
630
+ CommonModule,
631
+ AccordionComponentModule,
632
+ BadgeComponentModule,
633
+ ProgressBarComponentModule,
634
+ SpiderChartComponentModule,
635
+ DividerComponentModule,
636
+ UniversalSkillsSpiderChartsComponent
637
+ ]
638
+ });
639
+ }
640
+ };
641
+ i0.ɵɵngDeclareClassMetadata({
642
+ minVersion: "12.0.0",
643
+ version: "22.2.4",
644
+ ngImport: i0,
645
+ type: UniversalSkillsSpiderChartsComponentModule,
646
+ decorators: [{
647
+ type: NgModule,
648
+ args: [{
649
+ imports: [
650
+ CommonModule,
651
+ AccordionComponentModule,
652
+ BadgeComponentModule,
653
+ ProgressBarComponentModule,
654
+ SpiderChartComponentModule,
655
+ DividerComponentModule,
656
+ MemoizeFuncPipe,
657
+ UiTranslatePipe,
658
+ OrdinalSuffixPipe,
659
+ KeyValuePipe,
660
+ UniversalSkillsSpiderChartsComponent
661
+ ],
662
+ providers: [UiTranslatePipe],
663
+ exports: [UniversalSkillsSpiderChartsComponent]
664
+ }]
665
+ }]
666
+ });
387
667
  export { SkillAreaGroupTypes, SkillAreaTypes, UniversalSkillsReportComponent, UniversalSkillsReportComponentModule, UniversalSkillsService, UniversalSkillsSpiderChartsComponent, UniversalSkillsSpiderChartsComponentModule };
388
- //# sourceMappingURL=testgorilla-tgo-ui-components-universal-skills.mjs.map
668
+
669
+ //# sourceMappingURL=testgorilla-tgo-ui-components-universal-skills.mjs.map