@testgorilla/tgo-ui 2.24.4 → 2.24.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/autocomplete/autocomplete.component.d.ts +6 -6
- package/components/badge/badge.model.d.ts +2 -1
- package/components/spider-chart/spider-chart.component.d.ts +88 -0
- package/components/spider-chart/spider-chart.model.d.ts +12 -0
- package/components/spider-chart/spider-chart.module.d.ts +12 -0
- package/components/universal-skills-report/universal-skills-report.component.d.ts +33 -0
- package/components/universal-skills-report/universal-skills-report.component.module.d.ts +14 -0
- package/components/universal-skills-report/universal-skills-report.model.d.ts +33 -0
- package/esm2022/assets/i18n/en.json +36 -0
- package/esm2022/components/autocomplete/autocomplete.component.mjs +40 -36
- package/esm2022/components/badge/badge.component.mjs +2 -2
- package/esm2022/components/badge/badge.model.mjs +2 -1
- package/esm2022/components/spider-chart/spider-chart.component.mjs +425 -0
- package/esm2022/components/spider-chart/spider-chart.model.mjs +4 -0
- package/esm2022/components/spider-chart/spider-chart.module.mjs +41 -0
- package/esm2022/components/universal-skills-report/universal-skills-report.component.mjs +115 -0
- package/esm2022/components/universal-skills-report/universal-skills-report.component.module.mjs +43 -0
- package/esm2022/components/universal-skills-report/universal-skills-report.model.mjs +19 -0
- package/esm2022/pipes/ui-ordinal-suffix.pipe.mjs +31 -0
- package/esm2022/public-api.mjs +9 -1
- package/fesm2022/testgorilla-tgo-ui.mjs +1544 -861
- package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
- package/package.json +3 -1
- package/pipes/ui-ordinal-suffix.pipe.d.ts +7 -0
- package/projects/tgo-canopy-ui/assets/i18n/en.json +36 -0
- package/public-api.d.ts +6 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CdkVirtualScrollViewport } from
|
|
1
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
2
2
|
import { AfterViewInit, ChangeDetectorRef, DestroyRef, DoCheck, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
4
4
|
import { MatAutocomplete, MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
@@ -7,7 +7,7 @@ import { ReplaySubject } from 'rxjs';
|
|
|
7
7
|
import { ApplicationTheme } from '../../models/application-theme.model';
|
|
8
8
|
import { AutocompleteUtils } from '../../utils/autocomplete-utils';
|
|
9
9
|
import { Autocomplete, AutocompleteSize, AutocompleteType, DropdownVariation } from './autocomplete.model';
|
|
10
|
-
import { FocusMonitor } from
|
|
10
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class AutocompleteComponent implements ControlValueAccessor, OnChanges, AfterViewInit, DoCheck, OnDestroy {
|
|
13
13
|
private readonly defaultAppTheme;
|
|
@@ -63,10 +63,10 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
|
|
|
63
63
|
*/
|
|
64
64
|
label: string;
|
|
65
65
|
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
* @property placeholder
|
|
67
|
+
* @description The placeholder for the autocomplete input.
|
|
68
|
+
* @memberof AutocompleteComponent
|
|
69
|
+
*/
|
|
70
70
|
placeholder: string;
|
|
71
71
|
/**
|
|
72
72
|
* @property value
|
|
@@ -13,7 +13,7 @@ export declare enum BadgeColorEnum {
|
|
|
13
13
|
BLUE_20 = "blue-20",
|
|
14
14
|
BLUE_40 = "blue-40"
|
|
15
15
|
}
|
|
16
|
-
export type RebrandBadgeColor = 'success' | 'warning' | 'negative' | 'info' | 'brand' | 'neutral' | 'blue-20' | 'blue-40' | 'pink-30' | 'blue-10' | 'grey-10';
|
|
16
|
+
export type RebrandBadgeColor = 'success' | 'warning' | 'negative' | 'info' | 'brand' | 'neutral' | 'blue-20' | 'blue-40' | 'pink-30' | 'blue-10' | 'grey-10' | 'grey-30';
|
|
17
17
|
export declare enum RebrandBadgeColorEnum {
|
|
18
18
|
SUCCESS = "success",
|
|
19
19
|
WARNING = "warning",
|
|
@@ -25,6 +25,7 @@ export declare enum RebrandBadgeColorEnum {
|
|
|
25
25
|
BLUE_20 = "blue-20",
|
|
26
26
|
PINK_30 = "pink-30",
|
|
27
27
|
BLUE_10 = "blue-10",
|
|
28
|
+
GREY_30 = "grey-30",
|
|
28
29
|
GREY_10 = "grey-10"
|
|
29
30
|
}
|
|
30
31
|
export declare enum BadgeVariantEnum {
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ElementRef, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { SpiderChartData, SpiderChartSize } from './spider-chart.model';
|
|
3
|
+
import { ApplicationTheme } from '../../models/application-theme.model';
|
|
4
|
+
import { ChartData, ChartOptions } from 'chart.js';
|
|
5
|
+
import { BaseChartDirective } from 'ng2-charts';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SpiderChartComponent implements OnInit {
|
|
8
|
+
/**
|
|
9
|
+
* The size of the spider chart.
|
|
10
|
+
* @type {SpiderChartSize}
|
|
11
|
+
* @memberof SpiderChartComponent
|
|
12
|
+
*/
|
|
13
|
+
size: SpiderChartSize;
|
|
14
|
+
/**
|
|
15
|
+
* The data to be used for the spider chart.
|
|
16
|
+
* @type {SpiderChartData}
|
|
17
|
+
* @memberof SpiderChartComponent
|
|
18
|
+
*/
|
|
19
|
+
spiderChartData: SpiderChartData;
|
|
20
|
+
/**
|
|
21
|
+
* The step size for the spider chart.
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof SpiderChartComponent
|
|
24
|
+
*/
|
|
25
|
+
stepSize: number;
|
|
26
|
+
/**
|
|
27
|
+
* The aria label for the spider chart.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof SpiderChartComponent
|
|
30
|
+
*/
|
|
31
|
+
ariaLabel: string;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the spider chart is loading.
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof SpiderChartComponent
|
|
36
|
+
*/
|
|
37
|
+
loading: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* Defines the application theme
|
|
41
|
+
*
|
|
42
|
+
* @type {ApplicationTheme}
|
|
43
|
+
* @memberof SpinnerComponent
|
|
44
|
+
*/
|
|
45
|
+
applicationTheme: ApplicationTheme;
|
|
46
|
+
chart: BaseChartDirective;
|
|
47
|
+
labelContainers: QueryList<ElementRef>;
|
|
48
|
+
fakeDataPoints: QueryList<ElementRef>;
|
|
49
|
+
fakeDataPointsSecondary: QueryList<ElementRef>;
|
|
50
|
+
legendItems: QueryList<ElementRef>;
|
|
51
|
+
radarChartData: ChartData<'radar'>;
|
|
52
|
+
radarChartOptions: ChartOptions<'radar'>;
|
|
53
|
+
labelPositions: {
|
|
54
|
+
[key: string]: {
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
labelPositionsVisible: boolean;
|
|
60
|
+
focusedLabelIndex: number;
|
|
61
|
+
focusedFakeDataPointIndex: number;
|
|
62
|
+
loadingChartData: ChartData<'radar'>;
|
|
63
|
+
loadingChartOptions: ChartOptions<'radar'>;
|
|
64
|
+
protected readonly translationContext = "CHARTS.SPIDER.";
|
|
65
|
+
ngOnInit(): void;
|
|
66
|
+
private handleInputErrors;
|
|
67
|
+
private setChartData;
|
|
68
|
+
private setChartOptions;
|
|
69
|
+
ngAfterViewInit(): void;
|
|
70
|
+
private logCornerCoordinates;
|
|
71
|
+
getCenteredLabelBottomPosition(label: string, height: number): string;
|
|
72
|
+
getCenteredLabelLeftPosition(label: string, width: number): string;
|
|
73
|
+
onLabelKeyDown(event: KeyboardEvent, index: number): void;
|
|
74
|
+
private focusNextLabel;
|
|
75
|
+
private focusPreviousLabel;
|
|
76
|
+
onLegendItemKeyDown(event: KeyboardEvent, index: number): void;
|
|
77
|
+
private focusNextLegendItem;
|
|
78
|
+
private focusPreviousLegendItem;
|
|
79
|
+
onFakeDataPointsKeyDown(event: KeyboardEvent, index: number, isSecondary?: boolean): void;
|
|
80
|
+
private focusNextFakeDataPoint;
|
|
81
|
+
private focusPreviousFakeDataPoint;
|
|
82
|
+
showTooltipForDataPoint(index: number, isSecondary?: boolean): void;
|
|
83
|
+
private resetActiveElement;
|
|
84
|
+
toggleDatasetVisibility(datasetIndex: number): void;
|
|
85
|
+
isDatasetVisible(datasetIndex: number): boolean | undefined;
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpiderChartComponent, never>;
|
|
87
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpiderChartComponent, "ui-spider-chart", never, { "size": { "alias": "size"; "required": false; }; "spiderChartData": { "alias": "spiderChartData"; "required": false; }; "stepSize": { "alias": "stepSize"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; }, {}, never, never, false, never>;
|
|
88
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type SpiderChartSize = 'large' | 'small';
|
|
2
|
+
export declare const SmallSpiderChartSize: number;
|
|
3
|
+
export declare const LargeSpiderChartSize: number;
|
|
4
|
+
export type SpiderChartData = {
|
|
5
|
+
labels: string[];
|
|
6
|
+
labelDescription: string[];
|
|
7
|
+
plotData: [PlotData, PlotData] | [PlotData];
|
|
8
|
+
};
|
|
9
|
+
export type PlotData = {
|
|
10
|
+
databaseLabel: string;
|
|
11
|
+
data: number[];
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./spider-chart.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../pipes/ui-translate.pipe";
|
|
5
|
+
import * as i4 from "ng2-charts";
|
|
6
|
+
import * as i5 from "@angular/material/tooltip";
|
|
7
|
+
import * as i6 from "../spinner/spinner.module";
|
|
8
|
+
export declare class SpiderChartComponentModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpiderChartComponentModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SpiderChartComponentModule, [typeof i1.SpiderChartComponent], [typeof i2.NgClass, typeof i3.UiTranslatePipe, typeof i4.NgChartsModule, typeof i5.MatTooltipModule, typeof i3.UiTranslatePipe, typeof i6.SpinnerComponentModule, typeof i2.CommonModule], [typeof i1.SpiderChartComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SpiderChartComponentModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ApplicationTheme } from '../../models/application-theme.model';
|
|
3
|
+
import { RebrandBadgeColor } from '../badge/badge.model';
|
|
4
|
+
import { SkillAreaData, SkillAreaGroup, SkillAreaGroupTypes } from './universal-skills-report.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class UniversalSkillsReportComponent implements OnInit {
|
|
7
|
+
private readonly defaultAppTheme;
|
|
8
|
+
/**
|
|
9
|
+
* Defines the application theme
|
|
10
|
+
* @property applicationTheme
|
|
11
|
+
* @type {ApplicationTheme}
|
|
12
|
+
* @memberof UniversalSkillsReportComponent
|
|
13
|
+
*/
|
|
14
|
+
applicationTheme: ApplicationTheme;
|
|
15
|
+
/**
|
|
16
|
+
* The list of items to be used
|
|
17
|
+
* @property items
|
|
18
|
+
* @type {SkillAreaData[]}
|
|
19
|
+
* @memberof UniversalSkillsReportComponent
|
|
20
|
+
*/
|
|
21
|
+
skillAreaDataList: SkillAreaData[];
|
|
22
|
+
readonly translationContext = "UNIVERSAL_SKILLS_REPORT";
|
|
23
|
+
skillAreaGroupMap: Record<SkillAreaGroupTypes, SkillAreaGroup>;
|
|
24
|
+
constructor(defaultAppTheme: ApplicationTheme);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
getScoreBadgeLabel(percentileScoring: number): string;
|
|
27
|
+
getScoreBadgeColor(percentileScoring: number): RebrandBadgeColor;
|
|
28
|
+
private initializeSkillAreaGroupMap;
|
|
29
|
+
private prepareSkillAreaGroupMap;
|
|
30
|
+
private checkScoreClassification;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UniversalSkillsReportComponent, [{ optional: true; }]>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UniversalSkillsReportComponent, "ui-universal-skills-report", never, { "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "skillAreaDataList": { "alias": "skillAreaDataList"; "required": false; }; }, {}, never, never, false, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./universal-skills-report.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../accordion/accordion.component.module";
|
|
5
|
+
import * as i4 from "../badge/badge.component.module";
|
|
6
|
+
import * as i5 from "../progress-bar/progress-bar.component.module";
|
|
7
|
+
import * as i6 from "../../pipes/memoize-func.pipe";
|
|
8
|
+
import * as i7 from "../../pipes/ui-translate.pipe";
|
|
9
|
+
import * as i8 from "../../pipes/ui-ordinal-suffix.pipe";
|
|
10
|
+
export declare class UniversalSkillsReportComponentModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UniversalSkillsReportComponentModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UniversalSkillsReportComponentModule, [typeof i1.UniversalSkillsReportComponent], [typeof i2.CommonModule, typeof i3.AccordionComponentModule, typeof i4.BadgeComponentModule, typeof i5.ProgressBarComponentModule, typeof i6.MemoizeFuncPipe, typeof i7.UiTranslatePipe, typeof i8.OrdinalSuffixPipe, typeof i2.KeyValuePipe], [typeof i1.UniversalSkillsReportComponent]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UniversalSkillsReportComponentModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface SkillAreaGroup {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
skillAreaList: SkillAreaData[];
|
|
5
|
+
}
|
|
6
|
+
export interface SkillAreaData {
|
|
7
|
+
percentileScoring: number;
|
|
8
|
+
skillArea: SkillArea;
|
|
9
|
+
reportGroup: ReportBox[];
|
|
10
|
+
}
|
|
11
|
+
export interface SkillArea {
|
|
12
|
+
type: string;
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ReportBox {
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
}
|
|
20
|
+
export declare enum SkillAreaGroupTypes {
|
|
21
|
+
FocusingOnObjectives = 1,
|
|
22
|
+
WorkingWithPeople = 2,
|
|
23
|
+
ManagingOnesSelf = 3
|
|
24
|
+
}
|
|
25
|
+
export declare enum SkillAreaTypes {
|
|
26
|
+
BusinessSavvy = "business_savvy",
|
|
27
|
+
CustomerFocus = "customer_focus",
|
|
28
|
+
BuildingRelationships = "building_relationships",
|
|
29
|
+
HandlingConflict = "handling_conflict",
|
|
30
|
+
CommunicatingEffectively = "communicating_effectively",
|
|
31
|
+
EarningTrust = "earning_trust",
|
|
32
|
+
ShowingResilience = "showing_resilience"
|
|
33
|
+
}
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
"MAX_LESS_THAN_MIN": "Max value ({{max}}) cannot be less then current min value ({{min}})",
|
|
18
18
|
"MIN_MORE_THAN_MAX": "Min value ({{min}}) cannot be more then current max value ({{max}})"
|
|
19
19
|
},
|
|
20
|
+
"CHARTS": {
|
|
21
|
+
"SPIDER": {
|
|
22
|
+
"DATASET_HIDDEN": "{{dataset}} hidden. Press enter to show",
|
|
23
|
+
"DATASET_VISIBLE": "{{dataset}} visible. Press enter to hide"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
20
26
|
"DATEPICKER": {
|
|
21
27
|
"START_DATE": "Start date",
|
|
22
28
|
"END_DATE": "End date"
|
|
@@ -122,6 +128,36 @@
|
|
|
122
128
|
"TAG": {
|
|
123
129
|
"REMOVE": "Remove tag"
|
|
124
130
|
},
|
|
131
|
+
"UNIVERSAL_SKILLS_REPORT": {
|
|
132
|
+
"PERCENTILE": "percentile",
|
|
133
|
+
"SKILL_AREA_GROUP_TYPES": {
|
|
134
|
+
"FOCUSING_ON_OBJECTIVES": {
|
|
135
|
+
"TITLE": "Focusing on objectives",
|
|
136
|
+
"DESCRIPTION": "The skill cluster Focusing on objectives assesses an individual's capability in achieving goals."
|
|
137
|
+
},
|
|
138
|
+
"WORKING_WITH_PEOPLE": {
|
|
139
|
+
"TITLE": "Working with people",
|
|
140
|
+
"DESCRIPTION": "The skill cluster Working with people assesses an individual's capability in fostering interpersonal connections and collaborations."
|
|
141
|
+
},
|
|
142
|
+
"MANAGING_ONES_SELF": {
|
|
143
|
+
"TITLE": "Managing one's self",
|
|
144
|
+
"DESCRIPTION": "The skill cluster Managing one’s self assesses an individual’s capability in using inner resources to adapt, overcome, learn, and explore new possibilities."
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"BADGE_LABEL_TYPES": {
|
|
148
|
+
"WELL_BELLOW_AVERAGE": "Well below average",
|
|
149
|
+
"BELLOW_AVERAGE": "Below average",
|
|
150
|
+
"AVERAGE": "Average",
|
|
151
|
+
"ABOVE_AVERAGE": "Above average",
|
|
152
|
+
"WELL_ABOVE_AVERAGE": "Well above average"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"PERCENTILE_SUFFIXES": {
|
|
156
|
+
"ST": "st",
|
|
157
|
+
"ND": "nd",
|
|
158
|
+
"RD": "rd",
|
|
159
|
+
"TH": "th"
|
|
160
|
+
},
|
|
125
161
|
"TOOLTIP": {
|
|
126
162
|
"DETAILS": "Details"
|
|
127
163
|
}
|