7c98566579
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.
42 lines
1.0 KiB
TypeScript
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);
|
|
}
|