diff --git a/src/app/components/shared/layout/full.component.ts b/src/app/components/shared/layout/full.component.ts
index d075c3c..e24e532 100755
--- a/src/app/components/shared/layout/full.component.ts
+++ b/src/app/components/shared/layout/full.component.ts
@@ -15,6 +15,7 @@ import { Observable, Subscription } from 'rxjs';
import { User } from 'src/app/core/models';
import { UserService } from 'src/app/core/services';
import { MenuItems, ShowAuthedDirective, SpinnerComponent, AccordionAnchorDirective, AccordionLinkDirective, AccordionDirective } from 'src/app/components/shared';
+import { HeaderComponent, FooterComponent } from 'src/app/components/shared/layout';
/** @title Responsive sidenav */
@@ -24,7 +25,7 @@ import { MenuItems, ShowAuthedDirective, SpinnerComponent, AccordionAnchorDirect
imports: [
CommonModule, RouterModule, RouterOutlet,
MatBadgeModule, MatButtonModule, MatIconModule, MatListModule, MatMenuModule, MatSidenavModule, MatToolbarModule,
- ShowAuthedDirective, SpinnerComponent,
+ ShowAuthedDirective, SpinnerComponent, HeaderComponent, FooterComponent,
AccordionAnchorDirective, AccordionLinkDirective, AccordionDirective
],
providers: [ MenuItems ],
diff --git a/src/app/core/models/aeronef.model.ts b/src/app/core/models/aeronef.model.ts
index 9cdeb5e..d706fa2 100644
--- a/src/app/core/models/aeronef.model.ts
+++ b/src/app/core/models/aeronef.model.ts
@@ -8,10 +8,18 @@ export interface Aeronef {
updatedAt: string;
}
-export interface AeronefAggregate {
+export interface AeronefByImat {
_id: {
aeronef: string,
imat: string
},
count: number
+}
+
+export interface AeronefByYear {
+ _id: {
+ aeronef: string,
+ year: number
+ },
+ count: number
}
\ No newline at end of file
diff --git a/src/app/core/models/canopy.model.ts b/src/app/core/models/canopy.model.ts
index a41b64a..140a637 100644
--- a/src/app/core/models/canopy.model.ts
+++ b/src/app/core/models/canopy.model.ts
@@ -8,10 +8,18 @@ export interface Canopy {
updatedAt: string;
}
-export interface CanopyAggregate {
+export interface CanopyBySize {
_id: {
canopy: string,
taille: number
},
count: number
+}
+
+export interface CanopyByYear {
+ _id: {
+ canopy: string,
+ year: number
+ },
+ count: number
}
\ No newline at end of file
diff --git a/src/app/core/models/dropzone.model.ts b/src/app/core/models/dropzone.model.ts
index fae9893..cfb1e04 100644
--- a/src/app/core/models/dropzone.model.ts
+++ b/src/app/core/models/dropzone.model.ts
@@ -8,10 +8,18 @@ export interface DropZone {
updatedAt: string;
}
-export interface DropZoneAggregate {
+export interface DropZoneByOaci {
_id: {
lieu: string,
oaci: string
},
count: number
+}
+
+export interface DropZoneByYear {
+ _id: {
+ lieu: string,
+ year: number
+ },
+ count: number
}
\ No newline at end of file
diff --git a/src/app/core/models/index.ts b/src/app/core/models/index.ts
index 4000dc4..a1aee4b 100644
--- a/src/app/core/models/index.ts
+++ b/src/app/core/models/index.ts
@@ -2,6 +2,7 @@ export * from './aeronef.model';
export * from './aeronef-list.model';
export * from './application.model';
export * from './application-list-config.model';
+export * from './calculator.model';
export * from './canopy.model';
export * from './canopysize.model';
export * from './reducerow.model';
diff --git a/src/app/core/services/aeronefs.service.ts b/src/app/core/services/aeronefs.service.ts
index 8d5700c..ddd542f 100644
--- a/src/app/core/services/aeronefs.service.ts
+++ b/src/app/core/services/aeronefs.service.ts
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { ApiService } from './api.service';
-import { Aeronef, AeronefAggregate, AeronefList, JumpList, JumpListConfig, JumpListFilters } from 'src/app/core/models';
+import { Aeronef, AeronefByImat, AeronefList, JumpList, JumpListConfig, JumpListFilters } from 'src/app/core/models';
@Injectable({ providedIn: 'root' })
export class AeronefsService {
@@ -12,7 +12,7 @@ export class AeronefsService {
private apiService: ApiService
) { }
- getAll(): Observable
> {
+ getAllByImat(): Observable> {
return this.apiService.get('/aeronefs')
.pipe(map(data => data.aeronefs));
/*
diff --git a/src/app/core/services/canopies.service.ts b/src/app/core/services/canopies.service.ts
index 2ca1bbc..864cb83 100644
--- a/src/app/core/services/canopies.service.ts
+++ b/src/app/core/services/canopies.service.ts
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { ApiService } from './api.service';
-import { Canopy, CanopyAggregate ,JumpList, JumpListConfig, JumpListFilters } from 'src/app/core/models';
+import { Canopy, CanopyBySize ,JumpList, JumpListConfig, JumpListFilters } from 'src/app/core/models';
@Injectable({ providedIn: 'root' })
export class CanopiesService {
@@ -12,7 +12,7 @@ export class CanopiesService {
private apiService: ApiService
) { }
- getAll(): Observable> {
+ getAllBySize(): Observable> {
return this.apiService.get('/canopies')
.pipe(map(data => data.canopies));
}
diff --git a/src/app/core/services/dropzones.service.ts b/src/app/core/services/dropzones.service.ts
index 26fde1e..e49e8d6 100644
--- a/src/app/core/services/dropzones.service.ts
+++ b/src/app/core/services/dropzones.service.ts
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';
import { ApiService } from './api.service';
-import { DropZone, DropZoneAggregate, JumpList, JumpListConfig, JumpListFilters } from 'src/app/core/models';
+import { DropZone, DropZoneByOaci, JumpList, JumpListConfig, JumpListFilters } from 'src/app/core/models';
@Injectable({ providedIn: 'root' })
export class DropZonesService {
@@ -12,7 +12,7 @@ export class DropZonesService {
private apiService: ApiService
) { }
- getAll(): Observable> {
+ getAllByOaci(): Observable> {
return this.apiService.get('/dropzones')
.pipe(map(data => data.dropzones));
}
diff --git a/src/styles/app.scss b/src/styles/app.scss
index 3f28aca..cb6a4f5 100755
--- a/src/styles/app.scss
+++ b/src/styles/app.scss
@@ -107,4 +107,97 @@ huapp-full-layout .mdc-text-field--filled .mdc-floating-label {
padding-top: 8px;
padding-bottom: 8px;
}
+}
+
+/**********************
+* Background Colors *
+**********************/
+.bg-primary {
+ background-color: $primary !important;
+}
+.bg-secondary,
+.bg-warn {
+ background-color: $secondary !important;
+}
+.bg-accent {
+ background-color: $accent !important;
+}
+.bg-success {
+ background-color: $success !important;
+}
+.bg-info {
+ background-color: $info !important;
+}
+.bg-warning {
+ background-color: $warning !important;
+}
+.bg-danger {
+ background-color: $danger !important;
+}
+.bg-error {
+ background-color: $error !important;
+}
+.bg-white {
+ background-color: $white !important;
+}
+.bg-red {
+ background-color: $red !important;
+}
+.bg-red-dark {
+ background-color: $red-dark !important;
+}
+.bg-orange {
+ background-color: $orange !important;
+}
+.bg-yellow {
+ background-color: $yellow !important;
+}
+.bg-megna {
+ background-color: $megna !important;
+}
+.bg-green {
+ background-color: $green !important;
+}
+.bg-teal {
+ background-color: $teal !important;
+}
+.bg-turquoise {
+ background-color: $turquoise !important;
+}
+.bg-cyan {
+ background-color: $cyan !important;
+}
+.bg-blue {
+ background-color: $blue !important;
+}
+.bg-navy {
+ background-color: $navy !important;
+}
+.bg-pink {
+ background-color: $pink !important;
+}
+.bg-magenta {
+ background-color: $magenta !important;
+}
+.bg-purple {
+ background-color: $purple !important;
+}
+.bg-purple-dark {
+ background-color: $purple-dark !important;
+}
+.bg-raspberry {
+ background-color: $raspberry !important;
+}
+.bg-grey {
+ background-color: $grey !important;
+}
+.bg-muted {
+ background-color: $muted !important;
+}
+.bg-extra-muted {
+ background-color: $extra-muted !important;
+}
+.bg-crystal,
+.bg-crystal .mdc-text-field--filled:not(.mdc-text-field--disabled) {
+ background-color: transparent !important;
}
\ No newline at end of file
diff --git a/src/styles/styles.scss b/src/styles/styles.scss
index 9b0b3b9..29ff5d3 100644
--- a/src/styles/styles.scss
+++ b/src/styles/styles.scss
@@ -29,7 +29,7 @@ File: scss
@import "bootstrap/scss/grid";
@import "bootstrap/scss/helpers";
@import "bootstrap/scss/utilities/api";
-@import "bootstrap/scss/tables";
+//@import "bootstrap/scss/tables";
@import "bootstrap/scss/pagination";
@import "bootstrap/scss/alert";
@@ -122,7 +122,7 @@ $background: map.get($headup_app-theme, background);
@import 'spinner';
@import 'header';
@import 'sidebar';
-//@import 'tables';
+@import 'tables';
@import 'charts';
@import 'responsive';
@import 'app';
diff --git a/src/styles/tables.scss b/src/styles/tables.scss
index f53d7ac..bdfeb8c 100644
--- a/src/styles/tables.scss
+++ b/src/styles/tables.scss
@@ -9,7 +9,7 @@ File: scss
Table
*******************/
-.table-rasponsive {
+.table-responsive {
overflow: auto;
.mat-table {
min-width: 280px;
@@ -77,31 +77,41 @@ caption {
}
.table.table-dark>thead>tr>th {
border-bottom:2px solid rgb(221, 221, 221, 0.3);
+ padding-top: 1rem;
}
.table.table-dark>tfoot>tr>th {
border-top:2px solid rgb(221, 221, 221, 0.3);
+ padding-top: 1rem;
}
-.table.table-dark>tbody>tr.active>td,
-.table.table-dark>tbody>tr.active>th,
-.table.table-dark>tbody>tr>td.active,
-.table.table-dark>tbody>tr>th.active,
-.table.table-dark>tfoot>tr.active>td,
-.table.table-dark>tfoot>tr.active>th,
-.table.table-dark>tfoot>tr>td.active,
-.table.table-dark>tfoot>tr>th.active,
-.table.table-dark>thead>tr.active>td,
-.table.table-dark>thead>tr.active>th,
-.table.table-dark>thead>tr>td.active,
-.table.table-dark>thead>tr>th.active {
+
+tr.mat-mdc-header-row.primary {
+ background-color: rgba(167, 212, 196, 0.1);
+}
+.table.table-dark>tbody>tr.primary.active>td,
+.table.table-dark>tbody>tr.primary.active>th,
+.table.table-dark>tbody>tr.primary>td.active,
+.table.table-dark>tbody>tr.primary>th.active,
+.table.table-dark>tfoot>tr.primary.active>td,
+.table.table-dark>tfoot>tr.primary.active>th,
+.table.table-dark>tfoot>tr.primary>td.active,
+.table.table-dark>tfoot>tr.primary>th.active,
+.table.table-dark>thead>tr.primary.active>td,
+.table.table-dark>thead>tr.primary.active>th,
+.table.table-dark>thead>tr.primary>td.active,
+.table.table-dark>thead>tr.primary>th.active {
background-color: rgba(165, 212, 146, 0.2); //#a5d492;
}
-.table-dark.table-hover>tbody>tr.active:hover>td,
-.table-dark.table-hover>tbody>tr.active:hover>th,
-.table-dark.table-hover>tbody>tr:hover>.active,
-.table-dark.table-hover>tbody>tr>td.active:hover,
-.table-dark.table-hover>tbody>tr>th.active:hover {
+.table-dark.table-hover>tbody>tr.primary.active:hover>td,
+.table-dark.table-hover>tbody>tr.primary.active:hover>th,
+.table-dark.table-hover>tbody>tr.primary:hover>.active,
+.table-dark.table-hover>tbody>tr.primary>td.active:hover,
+.table-dark.table-hover>tbody>tr.primary>th.active:hover {
background-color: rgba(165, 212, 146, 0.3); //#93c081;
}
+
+tr.mat-mdc-header-row.warn {
+ background-color: rgba(151, 136, 199, 0.1);
+}
.table.table-dark>tbody>tr.warn.active>td,
.table.table-dark>tbody>tr.warn.active>th,
.table.table-dark>tbody>tr.warn>td.active,
@@ -297,6 +307,13 @@ table th[class*=col-] {
min-height:.01%;
overflow-x:auto
}
+.table .mat-mdc-row {
+ height: auto;
+ color: inherit;
+}
+.table .mat-mdc-header-row {
+ height: auto;
+}
@media screen and (max-width:767px) {
.table-responsive {
width:100%;