Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

work in progress #318

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions src/@arpa/components/table/table.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,7 @@ <h4>{{ feed.totalCount | async }} {{ 'RESULTS' | translate }}</h4>
</tr>
</ng-template>
</p-table>
<!-- Download-Button -->
<div style="text-align: left">
<button
class="download-button"
type="button"
pButton
icon="pi pi-download"
(click)="table.exportCSV()"
label="Download CSV"
style="margin-left: auto"
></button>

<div class="download-button" id="table-download-button">
<button class="download-button" type="button" pButton icon="pi pi-download" (click)="table.exportCSV()" label="Download CSV"></button>
</div>
51 changes: 49 additions & 2 deletions src/@arpa/components/table/table.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,54 @@
background-color: black;
text-align: center;
}
:host ::ng-deep {
.p-datatable {
padding-left: 4px;
padding-right: 4px;
}

.p-datatable-header {
padding-left: 0;
padding-right: 0;
}

td.start {
i.pi {
font-weight: 800;
align-items: center;
color: var(--green-500);
}
}
}
:host ::ng-deep {
.p-datatable {
padding-left: 4px;
padding-right: 4px;
}

.p-datatable-header {
padding-left: 0;
padding-right: 0;
}

td.start {
i.pi {
font-weight: 800;
align-items: center;
color: var(--green-500);
}
}
}
.download-button {
margin-left: 0.5rem;
margin-bottom: 0.5rem;
display: flex;
justify-content: center;
align-items: center;
margin-top: 2rem;
}
.download-button button {
transition: background-color 0.3s ease, transform 0.3s ease;
&:hover {
background-color: var(--hover-color, #f2f2f2);
transform: scale(1.25);
}
}
2 changes: 2 additions & 0 deletions src/@arpa/components/table/table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
Output,
QueryList,
TemplateRef,
ViewEncapsulation,
} from '@angular/core';
import { Observable, Subscription } from 'rxjs';
import { PrimeTemplate, SelectItem } from 'primeng/api';
Expand Down Expand Up @@ -51,6 +52,7 @@ export class ArpaTableColumnDirective {
selector: 'arpa-table',
templateUrl: './table.component.html',
styleUrls: ['./table.component.scss'],
encapsulation: ViewEncapsulation.None,
})
export class TableComponent implements OnInit, OnDestroy, AfterContentInit {
@Input()
Expand Down
2 changes: 2 additions & 0 deletions src/app/features/appointments/appointments.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { InputTextModule } from 'primeng/inputtext';
import { InputNumberModule } from 'primeng/inputnumber';
import { OverlayPanelModule } from 'primeng/overlaypanel';
import { RippleModule } from 'primeng/ripple';
import { TabViewModule } from 'primeng/tabview';

@NgModule({
declarations: [AppointmentsComponent, EditAppointmentComponent],
Expand All @@ -52,6 +53,7 @@ import { RippleModule } from 'primeng/ripple';
InputNumberModule,
OverlayPanelModule,
RippleModule,
TabViewModule,
],
providers: [
AppointmentCategoryListResolver,
Expand Down
Loading
Loading