Files
WebApp/src/app/loading.ts
T
alberto 7c98566579 T17: sweep of the WebApp after the feature-parity work
Removed the legacy indicator layout, unused chart helpers, styles and
exports, the card-actions component, fetch-all and explanatory comments;
one pager shared by the four worklists, shared filter-row styles, one
FHIR name and CURP reader, downloads through export/, the concept-map
editor on Material controls.
2026-12-01 06:48:57 -06:00

42 lines
1.0 KiB
TypeScript

import { Component, input } from '@angular/core';
import { MatProgressBarModule } from '@angular/material/progress-bar';
@Component({
selector: 'app-loading',
imports: [MatProgressBarModule],
template: `
<mat-progress-bar mode="indeterminate" [attr.aria-label]="'Cargando ' + what()" />
<p class="state" role="status">{{ text() || 'Cargando ' + what() + '…' }}</p>
@if (figure()) {
<div class="skeleton" aria-hidden="true"></div>
}
`,
styles: `
:host {
display: flex;
flex-direction: column;
}
:host(.figure) {
min-height: 12rem;
}
.state {
color: var(--color-text-secondary);
font-size: 0.875rem;
margin: 8px 0;
}
.skeleton {
background: var(--color-border);
border-radius: 10px;
flex: 1;
min-height: 10rem;
opacity: 0.35;
}
`,
host: { '[class.figure]': 'figure()' },
})
export class Loading {
readonly what = input.required<string>();
readonly text = input('');
readonly figure = input(false);
}