mirror of
https://github.com/ever-co/ever-gauzy.git
synced 2026-10-02 01:54:50 +08:00
* @rahul-rocket chore(deps): chore(deps): bump @angular/core from ^20.2.4 to 21.1.2 * fix(ui): update missing jest.preset.js * fix(nx-migrations): migrate nx from 21.5.1 to 22.4.4 * chore(deps): bump jest-preset-angular to 16.0.0 * chore(deps): bump @nebular/* packages to 17.0.0 for Angular 21 compatibility * chore(deps): upgrade all packages to Angular 21 and compatible dependencies * chore(deps): upgrade all packages to Angular 21 and compatible dependencies * fix(nx-migrations): migrate nx from 21.5.1 to 22.4.4 * Update yarn.lock * Update yarn.lock * fix(nx-migrations): migrate nx from 21.5.1 to 22.4.4 * fix(nx-migrations): migrate nx from 21.5.1 to 22.4.4 Replace 'jest-preset-angular/setup-jest' imports with the new 'setupZoneTestEnv' function. * @nx/jest: replace-removed-matcher-aliases-v22-3 Replace removed matcher aliases in Jest v30 with their corresponding matcher * chore(deps): @angular/common and @angular/core peerDependencies to ^21.1.0 * Update package.json * fix(nx-migrations): migrate nx from 21.5.1 to 22.4.4 * chore(deps): bump @nebular/theme from ^16.0.0 to ^17.0.0 * chore(deps): upgrade all packages to Angular 21 * chore(deps): upgrade all packages to Angular 21 * fix(build): update helmet import to support 8.x default export * fix(build): resolve TypeScript errors and improve code quality - Fix TemplateRef type conflicts caused by duplicate @angular/core packages (ngx-permissions) - Change moment imports from namespace to default imports for ESM compatibility - Convert constructor injection to inject() function in multiple components - Add OnPush change detection strategy to WindowLayoutComponent - Make CountdownConfirmationComponent standalone - Update LayoutWithDraggableObject to use any[] for draggableObject type * fix(build): fix moment & timezone namespace packages * fix(build): add jest config for missing packages * chore(deps): bump swiper from 8.3.1 to 12.1.0 * fix(build): update swiper module and syntax * Update time-tracking.component.ts * chore(deps): downgrade `node-polyfill-webpack-plugin` from 4.1.0 to 1.1.4 * fix(deps): resolve browserslist "Unknown version 143 of and_chr" error Add caniuse-lite and browserslist to yarn resolutions to force all * fix(nx-migrations): migrate nx from 21.5.1 to 22.4.4 * fix(deps): standardize Angular 21.0.0 versions across all packages and fix compatibility issues - Fix @angular/* packages to use exact version 21.0.0 (remove caret ^) across all apps, packages, and plugins - Add @angular/cdk resolution to 21.0.0 to force consistent version * fix(build): `ui-config` replace env files module issue * fix(build): `ui-config` replace env files module issue * fix(build): replace all TemplateRef<HTMLElement> with TemplateRef<any> * Update package.json * Update apps\agent\tsconfig.json * chore(deps): upgrade packages to latest version * Update yarn.lock * Update yarn.lock * fix(build): apply AI suggestion by bot agent reviewers * fix(build): apply AI suggestion by bot agent reviewers * fix(nx-migrations): migrate nx from 21.5.1 to 22.4.4 * chore(deps): bump @nestjs/common and @nestjs/core to 11.1.14 * fix(build): replace all TemplateRef<HTMLElement> with TemplateRef<any> * fix(plugins): apply AI suggestion by bot agent reviewers * Update yarn.lock * chore(deps): bump packages * Update yarn.lock * chore(deps): bump packages * chore(deps): bump packages * fix(plugins): replace 'jest-preset-angular/setup-jest' imports with the new 'setupZoneTestEnv' * fix(plugins): apply AI suggestion by bot agent reviewers * fix(cspell): typo spelling :-) * fix(plugins): apply AI suggestion by bot agent reviewers * fix: fontawesome icon change version to FA 7 * refactor(ui-core): migrate dashboard directives to standalone * refactor(ui-core): migrate pipes/directives to standalone * fix(plugins): apply AI suggestion by bot agent reviewers * fix(plugins): apply AI suggestion by bot agent reviewers * chore(deps): bump packages * refactor(ui-core): migrate directives to standalone * fix(plugins): apply AI suggestion by bot agent reviewers --------- Co-authored-by: Ruslan Konviser <evereq@gmail.com> Co-authored-by: syns2191 <sutralian@gmail.com>
43 lines
1.5 KiB
HTML
43 lines
1.5 KiB
HTML
<div class="charts">
|
|
<label class="chart-select-label">
|
|
{{ 'DASHBOARD_PAGE.CHARTS.CHART_TYPE' | translate }}
|
|
</label>
|
|
<nb-select
|
|
placeholder="Select chart"
|
|
class="select-charts"
|
|
filled
|
|
status="success"
|
|
[(selected)]="selectedChart"
|
|
size="tiny"
|
|
>
|
|
<nb-option [value]="EmployeeChartEnum.BAR">
|
|
<img width="auto" height="24" style="margin-right: 10px" src="assets/images/others/bar-chart.svg" />
|
|
{{ 'DASHBOARD_PAGE.CHARTS.BAR' | translate }}
|
|
</nb-option>
|
|
<nb-option [value]="EmployeeChartEnum.DOUGHNUT">
|
|
<img width="auto" height="24" style="margin-right: 10px" src="assets/images/others/doughnut.svg" />
|
|
{{ 'DASHBOARD_PAGE.CHARTS.DOUGHNUT' | translate }}
|
|
</nb-option>
|
|
<nb-option [value]="EmployeeChartEnum.STACKED_BAR">
|
|
<img width="auto" height="24" style="margin-right: 10px" src="assets/images/others/stacked-bar-chart.svg" />
|
|
{{ 'DASHBOARD_PAGE.CHARTS.STACKED_BAR' | translate }}
|
|
</nb-option>
|
|
</nb-select>
|
|
</div>
|
|
|
|
<div class="chart-wrap">
|
|
@switch (selectedChart) {
|
|
@case (EmployeeChartEnum.DOUGHNUT) {
|
|
<ga-employee-doughnut-chart [employeeStatistics]="employeeStatistics"></ga-employee-doughnut-chart>
|
|
}
|
|
@case (EmployeeChartEnum.STACKED_BAR) {
|
|
<ga-employee-stacked-bar-chart [employeeStatistics]="employeeStatistics"></ga-employee-stacked-bar-chart>
|
|
}
|
|
@default {
|
|
<ga-employee-horizontal-bar-chart
|
|
[employeeStatistics]="employeeStatistics"
|
|
></ga-employee-horizontal-bar-chart>
|
|
}
|
|
}
|
|
</div>
|