mapa-library-ui 2.17.4 → 2.17.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-capability.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-chart.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-datepicker.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-filters.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-input.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-scale-parameterization.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-textarea.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs +3 -0
- package/fesm2022/mapa-library-ui-src-lib-components-warning.mjs.map +1 -1
- package/fesm2022/mapa-library-ui.mjs +66 -8
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +16 -0
- package/package.json +2 -2
|
@@ -700,6 +700,8 @@ const DEFAULT_MAPA_UI_TEXTS = {
|
|
|
700
700
|
strongPointsTitle: 'Pontos fortes',
|
|
701
701
|
attentionPointsTitle: 'Pontos de atenção',
|
|
702
702
|
vulnerabilitiesTitle: 'Vulnerabilidades socioemocionais',
|
|
703
|
+
positiveGroupLegendLabel: 'positivas',
|
|
704
|
+
negativeGroupLegendLabel: 'negativas',
|
|
703
705
|
positiveDirectionLabel: 'Direção positiva',
|
|
704
706
|
negativeDirectionLabel: 'Direção negativa',
|
|
705
707
|
lowerIntensityLabel: 'Menos intenso',
|
|
@@ -707,6 +709,7 @@ const DEFAULT_MAPA_UI_TEXTS = {
|
|
|
707
709
|
noClassification: 'Sem classificação',
|
|
708
710
|
emptyState: 'Não há resultados disponíveis para esta seção.',
|
|
709
711
|
interpretationTitle: 'Interpretação',
|
|
712
|
+
rangeTitle: 'Faixa',
|
|
710
713
|
detailedListLabel: 'Lista detalhada',
|
|
711
714
|
groupAverageTitle: 'Média geral do grupo',
|
|
712
715
|
groupDistributionLabel: 'Distribuição do grupo',
|
|
@@ -9568,19 +9571,43 @@ class ReportGroupProfileContent {
|
|
|
9568
9571
|
const color = this.sliceColor(slice);
|
|
9569
9572
|
if (!label || !color)
|
|
9570
9573
|
continue;
|
|
9571
|
-
const
|
|
9574
|
+
const direction = this.direction(dimension);
|
|
9575
|
+
const key = `${direction ?? ''}:${slice.classification?.classificationId ?? slice.id ?? label}`;
|
|
9572
9576
|
if (!items.has(key))
|
|
9573
9577
|
items.set(key, {
|
|
9574
9578
|
id: key,
|
|
9575
9579
|
label,
|
|
9576
9580
|
color,
|
|
9577
9581
|
classification: slice.classification,
|
|
9582
|
+
direction,
|
|
9578
9583
|
order: this.sliceOrder(slice, this.direction(dimension)),
|
|
9579
9584
|
});
|
|
9580
9585
|
}
|
|
9581
9586
|
}
|
|
9582
9587
|
return [...items.values()].sort((a, b) => this.itemOrder(a) - this.itemOrder(b));
|
|
9583
9588
|
}, ...(ngDevMode ? [{ debugName: "legendItems" }] : []));
|
|
9589
|
+
this.legendGroups = computed(() => {
|
|
9590
|
+
const items = this.legendItems();
|
|
9591
|
+
return ['positive', 'negative', undefined]
|
|
9592
|
+
.map((direction) => ({
|
|
9593
|
+
id: direction ?? 'unspecified',
|
|
9594
|
+
direction,
|
|
9595
|
+
title: direction === 'negative'
|
|
9596
|
+
? `↓ ${this.i18n.texts.report.negativeGroupLegendLabel}`
|
|
9597
|
+
: direction === 'positive'
|
|
9598
|
+
? `↑ ${this.i18n.texts.report.positiveGroupLegendLabel}`
|
|
9599
|
+
: undefined,
|
|
9600
|
+
items: items.filter((item) => {
|
|
9601
|
+
if (item.direction)
|
|
9602
|
+
return item.direction === direction;
|
|
9603
|
+
const dimensions = this.dimensions().filter((dimension) => this.slices(dimension).some((slice) => this.captionMatches(item, slice)));
|
|
9604
|
+
return dimensions.length
|
|
9605
|
+
? dimensions.some((dimension) => this.direction(dimension) === direction)
|
|
9606
|
+
: this.data()?.direction === direction;
|
|
9607
|
+
}),
|
|
9608
|
+
}))
|
|
9609
|
+
.filter((group) => group.items.length > 0);
|
|
9610
|
+
}, ...(ngDevMode ? [{ debugName: "legendGroups" }] : []));
|
|
9584
9611
|
}
|
|
9585
9612
|
/**
|
|
9586
9613
|
* Keeps the caller's order (the captions returned by GenerateReport) and
|
|
@@ -9588,8 +9615,8 @@ class ReportGroupProfileContent {
|
|
|
9588
9615
|
* identity the captions can be matched against, so the list stays whole.
|
|
9589
9616
|
*/
|
|
9590
9617
|
drawnCaptions(captions) {
|
|
9591
|
-
const
|
|
9592
|
-
|
|
9618
|
+
const drawn = captions.filter((caption) => this.dimensions().some((dimension) => (!caption.direction || caption.direction === this.direction(dimension)) &&
|
|
9619
|
+
this.slices(dimension).some((slice) => this.captionMatches(caption, slice))));
|
|
9593
9620
|
return drawn.length ? drawn : captions;
|
|
9594
9621
|
}
|
|
9595
9622
|
captionMatches(caption, slice) {
|
|
@@ -9621,7 +9648,7 @@ class ReportGroupProfileContent {
|
|
|
9621
9648
|
itemOrder(item) {
|
|
9622
9649
|
return typeof item.order === 'number' && Number.isFinite(item.order)
|
|
9623
9650
|
? item.order
|
|
9624
|
-
: this.legacyOrder(item.classification?.classificationId ?? item.id, this.data()?.direction ?? this.dimensions()[0]?.direction);
|
|
9651
|
+
: this.legacyOrder(item.classification?.classificationId ?? item.id, item.direction ?? this.data()?.direction ?? this.dimensions()[0]?.direction);
|
|
9625
9652
|
}
|
|
9626
9653
|
sliceForeground(slice) {
|
|
9627
9654
|
return readableForeground(normalizeHex(this.sliceColor(slice)) ?? '#c3ccd1');
|
|
@@ -9748,11 +9775,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
9748
9775
|
/** Reusable distribution content, without filters or widget heading. */
|
|
9749
9776
|
class MapaReportGroupProfileWidgetDistributionComponent extends ReportGroupProfileContent {
|
|
9750
9777
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MapaReportGroupProfileWidgetDistributionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9751
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: MapaReportGroupProfileWidgetDistributionComponent, isStandalone: true, selector: "mapa-report-group-profile-widget-distribution", usesInheritance: true, ngImport: i0, template: "<div class=\"mapa-report-widget\" [attr.data-palette]=\"palette()\">\n @if (!dimensions().length) {\n <p class=\"mapa-report-widget__empty\">{{ i18n.texts.report.emptyState }}</p>\n } @else {\n <div class=\"mapa-report-group-profile__rows\">\n @for (dimension of dimensions(); track dimension.id ?? dimension.name) {\n <article class=\"mapa-report-group-profile__row\">\n <h4 class=\"mapa-report-group-profile__row-name\">\n {{ dimension.name }}\n @if (direction(dimension)) {\n <span\n class=\"mapa-direction-indicator\"\n [attr.title]=\"directionLabel(dimension)\"\n [attr.aria-label]=\"directionLabel(dimension)\"\n >{{ directionArrow(dimension) }}</span\n >\n }\n </h4>\n <div class=\"mapa-report-group-profile__bar\">\n <div\n class=\"mapa-report-group-profile__pill\"\n role=\"img\"\n [attr.aria-label]=\"pillLabel(dimension)\"\n >\n @for (slice of slices(dimension); track $index) {\n <span\n class=\"mapa-report-group-profile__slice\"\n [class.mapa-report-group-profile__slice--highlighted]=\"\n slice.highlighted\n \"\n [style.width.%]=\"normalizedWidth(slice, dimension)\"\n [style.background-color]=\"sliceColor(slice)\"\n [style.color]=\"sliceForeground(slice)\"\n [attr.title]=\"sliceTitle(slice)\"\n ><b class=\"mapa-report-group-profile__slice-value\" aria-hidden=\"true\">{{ sliceValue(slice) }}</b></span>\n }\n </div>\n </div>\n </article>\n }\n @if (showLegend() && legendItems().length) {\n <article class=\"mapa-report-group-profile__row\">\n <h4 class=\"mapa-report-group-profile__row-name\"></h4>\n <div class=\"mapa-report-group-profile__bar\">\n <ul class=\"mapa-report-group-profile__legend\">\n @for (item of legendItems(); track item.id ?? item.label) {\n <li>\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n </li>\n }\n </ul>\n </div>\n </article>\n }\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{color:var(--mapa-report-text, #263238);display:block;min-width:0;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", sans-serif)}.mapa-report-widget{display:grid;gap:var(--mapa-report-space)}.mapa-report-widget__header{align-items:flex-start;column-gap:16px;display:grid;grid-template-columns:minmax(0,1fr) auto}.mapa-report-widget__heading{display:contents}.mapa-report-widget__heading h2{color:var(--mapa-report-accent);font-size:20px;font-weight:650;grid-column:1;grid-row:1;line-height:1.25;margin:0}.mapa-report-widget__description{color:var(--mapa-report-muted);font-size:13px;grid-column:1/-1;grid-row:2;line-height:1.5;margin:5px 0 0}.mapa-report-widget__description ::ng-deep ol,.mapa-report-widget__description ::ng-deep p,.mapa-report-widget__description ::ng-deep ul{margin:0 0 8px}.mapa-report-widget__description ::ng-deep ol,.mapa-report-widget__description ::ng-deep ul{padding-left:20px}.mapa-report-widget__description ::ng-deep li{margin:0 0 3px}.mapa-report-widget__description ::ng-deep b,.mapa-report-widget__description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-widget__description ::ng-deep :last-child{margin-bottom:0}.mapa-report-widget__modes{--mat-button-toggle-background-color: transparent;--mat-button-toggle-divider-color: transparent;--mat-button-toggle-height: 32px;--mat-button-toggle-label-text-font: var( --mapa-font-body, \"Asap\", sans-serif );--mat-button-toggle-label-text-size: 13px;--mat-button-toggle-label-text-weight: 500;--mat-button-toggle-selected-state-background-color: var( --mapa-toggle-selected-surface, #fff );--mat-button-toggle-selected-state-text-color: var( --mapa-toggle-selected-text, #162f42 );--mat-button-toggle-shape: 7px;--mat-button-toggle-text-color: var(--mapa-toggle-text, #5b6672);align-items:center;background:var(--mapa-toggle-surface, #f1f2f4);border:0;border-radius:9px;box-sizing:border-box;gap:2px;grid-column:2;grid-row:1;overflow:hidden;padding:3px}.mapa-report-widget__modes mat-button-toggle{border:0;border-radius:7px;font:500 13px/1 var(--mapa-font-body, \"Asap\", sans-serif)}.mapa-report-widget__modes mat-button-toggle.mat-button-toggle-checked{box-shadow:0 1px 2px #162f4224}.mapa-report-widget__modes ::ng-deep .mat-button-toggle-button:focus-visible{outline:2px solid #cf450c;outline-offset:-2px}.mapa-report-widget__modes mat-icon{font-size:14px;height:14px;margin-right:5px;width:14px}.mapa-report-widget__modes--standalone{grid-column:1;grid-row:auto;justify-self:end}.mapa-report-widget__empty{color:var(--mapa-report-muted);margin:0;padding:24px 0;text-align:center}@media(max-width:760px){.mapa-report-widget__header{align-items:stretch;grid-template-columns:minmax(0,1fr)}.mapa-report-widget__modes{grid-column:1;grid-row:3;justify-self:start;margin-top:12px}.mapa-report-widget__modes--standalone{grid-row:auto;margin-top:0}}.mapa-direction-indicator{background:var(--mapa-report-surface, var(--mapa-color-surface, #fafbfc));border:1px solid currentColor;border-radius:50%;box-sizing:border-box;color:var(--mapa-report-muted, var(--mapa-color-text-subtle, #68747a));display:inline-grid;flex:0 0 20px;font-size:11px;font-weight:700;height:20px;line-height:1;place-items:center;width:20px}.mapa-report-group-profile__filters{border-bottom:1px solid var(--mapa-report-border, #e1e5e7);display:grid;gap:12px;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;padding-bottom:var(--mapa-report-space, 20px)}.mapa-report-group-profile__filters:empty{display:none}.mapa-report-group-profile__action{align-self:center;grid-column:2;grid-row:1}.mapa-report-group-profile__action:empty{display:none}.mapa-report-group-profile__scale{align-items:center;display:flex;flex-wrap:wrap;gap:18px;justify-content:space-between}.mapa-report-group-profile__scale h3{align-items:center;display:flex;font-size:26px;font-weight:500;gap:8px;letter-spacing:-.02em;line-height:1.15;margin:0}.mapa-report-group-profile__scale-heading{display:grid;flex:1 1 320px;gap:6px;min-width:0}.mapa-report-group-profile__scale-description{color:var(--mapa-report-muted, #68747a);font-size:13px;line-height:1.5;margin:0}.mapa-report-group-profile__scale-description ::ng-deep ol,.mapa-report-group-profile__scale-description ::ng-deep p,.mapa-report-group-profile__scale-description ::ng-deep ul{margin:0 0 8px}.mapa-report-group-profile__scale-description ::ng-deep ol,.mapa-report-group-profile__scale-description ::ng-deep ul{padding-left:20px}.mapa-report-group-profile__scale-description ::ng-deep li{margin:0 0 3px}.mapa-report-group-profile__scale-description ::ng-deep b,.mapa-report-group-profile__scale-description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-group-profile__scale-description ::ng-deep :last-child{margin-bottom:0}.mapa-report-group-profile__average{align-items:center;align-self:flex-start;background:var(--mapa-report-average-surface, #eef2f5);border-radius:14px;display:flex;gap:16px;padding:14px 22px}.mapa-report-group-profile__average-label{color:var(--mapa-report-average-label, #3f5060);font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}.mapa-report-group-profile__average-value{align-items:center;display:flex;flex-direction:row-reverse;gap:14px}.mapa-report-group-profile__average-value mapa-result-track{--mapa-result-track-height: 6px;--mapa-result-track-fill-height: 6px;--mapa-result-track-rail: var(--mapa-report-average-rail, #d3dbe1);flex:none;width:72px}.mapa-report-group-profile__average-value--stepped mapa-result-track{--mapa-result-step-gap: 4px;width:168px}.mapa-report-group-profile__average-value strong{color:var(--mapa-report-average-value, #14283a);font-size:30px;font-weight:700;line-height:1}.mapa-report-group-profile__rows{display:grid}.mapa-report-group-profile__row{align-items:center;border-top:1px solid var(--mapa-report-line-soft, #edf1f3);display:grid;gap:16px;grid-template-columns:minmax(120px,20%) minmax(0,1fr);padding:15px 0}.mapa-report-group-profile__row-name{align-items:center;display:flex;font-size:14px;font-weight:500;gap:7px;margin:0}.mapa-report-group-profile__bar{min-width:0}.mapa-report-group-profile__caption{color:var(--mapa-report-muted, #68747a);display:block;font-size:11px;margin-bottom:2px}.mapa-report-group-profile__pill{background:var(--mapa-report-surface-muted, #eef2f3);border-radius:6px;display:flex;height:var(--mapa-report-pill-height, 34px);overflow:hidden;width:100%}.mapa-report-group-profile__slice{align-items:center;container-type:inline-size;display:flex;justify-content:center;flex:0 0 auto;height:100%;min-width:0;overflow:hidden;position:relative}.mapa-report-group-profile__slice-value{font-size:11px;font-weight:600;line-height:1;white-space:nowrap}.mapa-report-group-profile__slice--highlighted{align-items:center;display:flex;justify-content:center}.mapa-report-group-profile__slice--highlighted:after{color:currentColor;content:\"\\25bc\";font-size:9px;line-height:1;position:absolute;top:2px}.mapa-report-group-profile__legend{display:flex;flex-wrap:wrap;gap:8px 16px;list-style:none;margin:0;padding:0}.mapa-report-group-profile__legend li{align-items:center;color:var(--mapa-report-muted, #68747a);display:inline-flex;font-size:12px;gap:6px}@container (max-width: 35.99px){.mapa-report-group-profile__slice-value{display:none}}:host ::ng-deep .mapa-report-group-profile__filters>*{min-width:0;width:100%}@media(max-width:760px){.mapa-report-group-profile__filters{grid-auto-flow:row}.mapa-report-group-profile__action{grid-column:1;grid-row:auto;justify-self:start;margin-top:12px}.mapa-report-group-profile__average{box-sizing:border-box;flex-wrap:wrap;justify-content:space-between;width:100%}.mapa-report-group-profile__row{gap:8px;grid-template-columns:minmax(0,1fr)}}\n"], dependencies: [{ kind: "component", type: MapaClassificationTagComponent, selector: "mapa-classification-tag", inputs: ["classification", "size", "appearance", "shape", "casing", "fallbackLabel", "valueLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9778
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: MapaReportGroupProfileWidgetDistributionComponent, isStandalone: true, selector: "mapa-report-group-profile-widget-distribution", usesInheritance: true, ngImport: i0, template: "<div class=\"mapa-report-widget\" [attr.data-palette]=\"palette()\">\n @if (!dimensions().length) {\n <p class=\"mapa-report-widget__empty\">{{ i18n.texts.report.emptyState }}</p>\n } @else {\n <div class=\"mapa-report-group-profile__rows\">\n @for (dimension of dimensions(); track dimension.id ?? dimension.name) {\n <article class=\"mapa-report-group-profile__row\">\n <h4 class=\"mapa-report-group-profile__row-name\">\n {{ dimension.name }}\n @if (direction(dimension)) {\n <span\n class=\"mapa-direction-indicator\"\n [attr.title]=\"directionLabel(dimension)\"\n [attr.aria-label]=\"directionLabel(dimension)\"\n >{{ directionArrow(dimension) }}</span\n >\n }\n </h4>\n <div class=\"mapa-report-group-profile__bar\">\n <div\n class=\"mapa-report-group-profile__pill\"\n role=\"img\"\n [attr.aria-label]=\"pillLabel(dimension)\"\n >\n @for (slice of slices(dimension); track $index) {\n <span\n class=\"mapa-report-group-profile__slice\"\n [class.mapa-report-group-profile__slice--highlighted]=\"\n slice.highlighted\n \"\n [style.width.%]=\"normalizedWidth(slice, dimension)\"\n [style.background-color]=\"sliceColor(slice)\"\n [style.color]=\"sliceForeground(slice)\"\n [attr.title]=\"sliceTitle(slice)\"\n ><b class=\"mapa-report-group-profile__slice-value\" aria-hidden=\"true\">{{ sliceValue(slice) }}</b></span>\n }\n </div>\n </div>\n </article>\n }\n @if (showLegend()) {\n @for (group of legendGroups(); track group.id) {\n <article class=\"mapa-report-group-profile__row\">\n <h4 class=\"mapa-report-group-profile__row-name\">\n @if (group.direction) {\n {{ group.title }}\n }\n </h4>\n <div class=\"mapa-report-group-profile__bar\">\n <ul class=\"mapa-report-group-profile__legend\">\n @for (item of group.items; track item.id ?? item.label) {\n <li>\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n </li>\n }\n </ul>\n </div>\n </article>\n }\n }\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{color:var(--mapa-report-text, #263238);display:block;min-width:0;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", sans-serif)}.mapa-report-widget{display:grid;gap:var(--mapa-report-space)}.mapa-report-widget__header{align-items:flex-start;column-gap:16px;display:grid;grid-template-columns:minmax(0,1fr) auto}.mapa-report-widget__heading{display:contents}.mapa-report-widget__heading h2{color:var(--mapa-report-accent);font-size:20px;font-weight:650;grid-column:1;grid-row:1;line-height:1.25;margin:0}.mapa-report-widget__description{color:var(--mapa-report-muted);font-size:13px;grid-column:1/-1;grid-row:2;line-height:1.5;margin:5px 0 0}.mapa-report-widget__description ::ng-deep ol,.mapa-report-widget__description ::ng-deep p,.mapa-report-widget__description ::ng-deep ul{margin:0 0 8px}.mapa-report-widget__description ::ng-deep ol,.mapa-report-widget__description ::ng-deep ul{padding-left:20px}.mapa-report-widget__description ::ng-deep li{margin:0 0 3px}.mapa-report-widget__description ::ng-deep b,.mapa-report-widget__description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-widget__description ::ng-deep :last-child{margin-bottom:0}.mapa-report-widget__modes{--mat-button-toggle-background-color: transparent;--mat-button-toggle-divider-color: transparent;--mat-button-toggle-height: 32px;--mat-button-toggle-label-text-font: var( --mapa-font-body, \"Asap\", sans-serif );--mat-button-toggle-label-text-size: 13px;--mat-button-toggle-label-text-weight: 500;--mat-button-toggle-selected-state-background-color: var( --mapa-toggle-selected-surface, #fff );--mat-button-toggle-selected-state-text-color: var( --mapa-toggle-selected-text, #162f42 );--mat-button-toggle-shape: 7px;--mat-button-toggle-text-color: var(--mapa-toggle-text, #5b6672);align-items:center;background:var(--mapa-toggle-surface, #f1f2f4);border:0;border-radius:9px;box-sizing:border-box;gap:2px;grid-column:2;grid-row:1;overflow:hidden;padding:3px}.mapa-report-widget__modes mat-button-toggle{border:0;border-radius:7px;font:500 13px/1 var(--mapa-font-body, \"Asap\", sans-serif)}.mapa-report-widget__modes mat-button-toggle.mat-button-toggle-checked{box-shadow:0 1px 2px #162f4224}.mapa-report-widget__modes ::ng-deep .mat-button-toggle-button:focus-visible{outline:2px solid #cf450c;outline-offset:-2px}.mapa-report-widget__modes mat-icon{font-size:14px;height:14px;margin-right:5px;width:14px}.mapa-report-widget__modes--standalone{grid-column:1;grid-row:auto;justify-self:end}.mapa-report-widget__empty{color:var(--mapa-report-muted);margin:0;padding:24px 0;text-align:center}@media(max-width:760px){.mapa-report-widget__header{align-items:stretch;grid-template-columns:minmax(0,1fr)}.mapa-report-widget__modes{grid-column:1;grid-row:3;justify-self:start;margin-top:12px}.mapa-report-widget__modes--standalone{grid-row:auto;margin-top:0}}.mapa-direction-indicator{background:var(--mapa-report-surface, var(--mapa-color-surface, #fafbfc));border:1px solid currentColor;border-radius:50%;box-sizing:border-box;color:var(--mapa-report-muted, var(--mapa-color-text-subtle, #68747a));display:inline-grid;flex:0 0 20px;font-size:11px;font-weight:700;height:20px;line-height:1;place-items:center;width:20px}.mapa-report-group-profile__filters{border-bottom:1px solid var(--mapa-report-border, #e1e5e7);display:grid;gap:12px;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;padding-bottom:var(--mapa-report-space, 20px)}.mapa-report-group-profile__filters:empty{display:none}.mapa-report-group-profile__action{align-self:center;grid-column:2;grid-row:1}.mapa-report-group-profile__action:empty{display:none}.mapa-report-group-profile__scale{align-items:center;display:flex;flex-wrap:wrap;gap:18px;justify-content:space-between}.mapa-report-group-profile__scale h3{align-items:center;display:flex;font-size:26px;font-weight:500;gap:8px;letter-spacing:-.02em;line-height:1.15;margin:0}.mapa-report-group-profile__scale-heading{display:grid;flex:1 1 320px;gap:6px;min-width:0}.mapa-report-group-profile__scale-description{color:var(--mapa-report-muted, #68747a);font-size:13px;line-height:1.5;margin:0}.mapa-report-group-profile__scale-description ::ng-deep ol,.mapa-report-group-profile__scale-description ::ng-deep p,.mapa-report-group-profile__scale-description ::ng-deep ul{margin:0 0 8px}.mapa-report-group-profile__scale-description ::ng-deep ol,.mapa-report-group-profile__scale-description ::ng-deep ul{padding-left:20px}.mapa-report-group-profile__scale-description ::ng-deep li{margin:0 0 3px}.mapa-report-group-profile__scale-description ::ng-deep b,.mapa-report-group-profile__scale-description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-group-profile__scale-description ::ng-deep :last-child{margin-bottom:0}.mapa-report-group-profile__average{align-items:center;align-self:flex-start;background:var(--mapa-report-average-surface, #eef2f5);border-radius:14px;display:flex;gap:16px;padding:14px 22px}.mapa-report-group-profile__average-label{color:var(--mapa-report-average-label, #3f5060);font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}.mapa-report-group-profile__average-value{align-items:center;display:flex;flex-direction:row-reverse;gap:14px}.mapa-report-group-profile__average-value mapa-result-track{--mapa-result-track-height: 6px;--mapa-result-track-fill-height: 6px;--mapa-result-track-rail: var(--mapa-report-average-rail, #d3dbe1);flex:none;width:72px}.mapa-report-group-profile__average-value--stepped mapa-result-track{--mapa-result-step-gap: 4px;width:168px}.mapa-report-group-profile__average-value strong{color:var(--mapa-report-average-value, #14283a);font-size:30px;font-weight:700;line-height:1}.mapa-report-group-profile__rows{display:grid}.mapa-report-group-profile__row{align-items:center;border-top:1px solid var(--mapa-report-line-soft, #edf1f3);display:grid;gap:16px;grid-template-columns:minmax(120px,20%) minmax(0,1fr);padding:15px 0}.mapa-report-group-profile__row-name{align-items:center;display:flex;font-size:14px;font-weight:500;gap:7px;margin:0}.mapa-report-group-profile__bar{min-width:0}.mapa-report-group-profile__caption{color:var(--mapa-report-muted, #68747a);display:block;font-size:11px;margin-bottom:2px}.mapa-report-group-profile__pill{background:var(--mapa-report-surface-muted, #eef2f3);border-radius:6px;display:flex;height:var(--mapa-report-pill-height, 34px);overflow:hidden;width:100%}.mapa-report-group-profile__slice{align-items:center;container-type:inline-size;display:flex;justify-content:center;flex:0 0 auto;height:100%;min-width:0;overflow:hidden;position:relative}.mapa-report-group-profile__slice-value{font-size:11px;font-weight:600;line-height:1;white-space:nowrap}.mapa-report-group-profile__slice--highlighted{align-items:center;display:flex;justify-content:center}.mapa-report-group-profile__slice--highlighted:after{color:currentColor;content:\"\\25bc\";font-size:9px;line-height:1;position:absolute;top:2px}.mapa-report-group-profile__legend{display:flex;flex-wrap:wrap;gap:8px 16px;list-style:none;margin:0;padding:0}.mapa-report-group-profile__legend li{align-items:center;color:var(--mapa-report-muted, #68747a);display:inline-flex;font-size:12px;gap:6px}@container (max-width: 35.99px){.mapa-report-group-profile__slice-value{display:none}}:host ::ng-deep .mapa-report-group-profile__filters>*{min-width:0;width:100%}@media(max-width:760px){.mapa-report-group-profile__filters{grid-auto-flow:row}.mapa-report-group-profile__action{grid-column:1;grid-row:auto;justify-self:start;margin-top:12px}.mapa-report-group-profile__average{box-sizing:border-box;flex-wrap:wrap;justify-content:space-between;width:100%}.mapa-report-group-profile__row{gap:8px;grid-template-columns:minmax(0,1fr)}}\n"], dependencies: [{ kind: "component", type: MapaClassificationTagComponent, selector: "mapa-classification-tag", inputs: ["classification", "size", "appearance", "shape", "casing", "fallbackLabel", "valueLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9752
9779
|
}
|
|
9753
9780
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MapaReportGroupProfileWidgetDistributionComponent, decorators: [{
|
|
9754
9781
|
type: Component,
|
|
9755
|
-
args: [{ selector: 'mapa-report-group-profile-widget-distribution', standalone: true, imports: [MapaClassificationTagComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mapa-report-widget\" [attr.data-palette]=\"palette()\">\n @if (!dimensions().length) {\n <p class=\"mapa-report-widget__empty\">{{ i18n.texts.report.emptyState }}</p>\n } @else {\n <div class=\"mapa-report-group-profile__rows\">\n @for (dimension of dimensions(); track dimension.id ?? dimension.name) {\n <article class=\"mapa-report-group-profile__row\">\n <h4 class=\"mapa-report-group-profile__row-name\">\n {{ dimension.name }}\n @if (direction(dimension)) {\n <span\n class=\"mapa-direction-indicator\"\n [attr.title]=\"directionLabel(dimension)\"\n [attr.aria-label]=\"directionLabel(dimension)\"\n >{{ directionArrow(dimension) }}</span\n >\n }\n </h4>\n <div class=\"mapa-report-group-profile__bar\">\n <div\n class=\"mapa-report-group-profile__pill\"\n role=\"img\"\n [attr.aria-label]=\"pillLabel(dimension)\"\n >\n @for (slice of slices(dimension); track $index) {\n <span\n class=\"mapa-report-group-profile__slice\"\n [class.mapa-report-group-profile__slice--highlighted]=\"\n slice.highlighted\n \"\n [style.width.%]=\"normalizedWidth(slice, dimension)\"\n [style.background-color]=\"sliceColor(slice)\"\n [style.color]=\"sliceForeground(slice)\"\n [attr.title]=\"sliceTitle(slice)\"\n ><b class=\"mapa-report-group-profile__slice-value\" aria-hidden=\"true\">{{ sliceValue(slice) }}</b></span>\n }\n </div>\n </div>\n </article>\n }\n @if (showLegend() && legendItems().length) {\n <article class=\"mapa-report-group-profile__row\">\n <h4 class=\"mapa-report-group-profile__row-name\"></h4>\n <div class=\"mapa-report-group-profile__bar\">\n <ul class=\"mapa-report-group-profile__legend\">\n @for (item of legendItems(); track item.id ?? item.label) {\n <li>\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n </li>\n }\n </ul>\n </div>\n </article>\n }\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{color:var(--mapa-report-text, #263238);display:block;min-width:0;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", sans-serif)}.mapa-report-widget{display:grid;gap:var(--mapa-report-space)}.mapa-report-widget__header{align-items:flex-start;column-gap:16px;display:grid;grid-template-columns:minmax(0,1fr) auto}.mapa-report-widget__heading{display:contents}.mapa-report-widget__heading h2{color:var(--mapa-report-accent);font-size:20px;font-weight:650;grid-column:1;grid-row:1;line-height:1.25;margin:0}.mapa-report-widget__description{color:var(--mapa-report-muted);font-size:13px;grid-column:1/-1;grid-row:2;line-height:1.5;margin:5px 0 0}.mapa-report-widget__description ::ng-deep ol,.mapa-report-widget__description ::ng-deep p,.mapa-report-widget__description ::ng-deep ul{margin:0 0 8px}.mapa-report-widget__description ::ng-deep ol,.mapa-report-widget__description ::ng-deep ul{padding-left:20px}.mapa-report-widget__description ::ng-deep li{margin:0 0 3px}.mapa-report-widget__description ::ng-deep b,.mapa-report-widget__description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-widget__description ::ng-deep :last-child{margin-bottom:0}.mapa-report-widget__modes{--mat-button-toggle-background-color: transparent;--mat-button-toggle-divider-color: transparent;--mat-button-toggle-height: 32px;--mat-button-toggle-label-text-font: var( --mapa-font-body, \"Asap\", sans-serif );--mat-button-toggle-label-text-size: 13px;--mat-button-toggle-label-text-weight: 500;--mat-button-toggle-selected-state-background-color: var( --mapa-toggle-selected-surface, #fff );--mat-button-toggle-selected-state-text-color: var( --mapa-toggle-selected-text, #162f42 );--mat-button-toggle-shape: 7px;--mat-button-toggle-text-color: var(--mapa-toggle-text, #5b6672);align-items:center;background:var(--mapa-toggle-surface, #f1f2f4);border:0;border-radius:9px;box-sizing:border-box;gap:2px;grid-column:2;grid-row:1;overflow:hidden;padding:3px}.mapa-report-widget__modes mat-button-toggle{border:0;border-radius:7px;font:500 13px/1 var(--mapa-font-body, \"Asap\", sans-serif)}.mapa-report-widget__modes mat-button-toggle.mat-button-toggle-checked{box-shadow:0 1px 2px #162f4224}.mapa-report-widget__modes ::ng-deep .mat-button-toggle-button:focus-visible{outline:2px solid #cf450c;outline-offset:-2px}.mapa-report-widget__modes mat-icon{font-size:14px;height:14px;margin-right:5px;width:14px}.mapa-report-widget__modes--standalone{grid-column:1;grid-row:auto;justify-self:end}.mapa-report-widget__empty{color:var(--mapa-report-muted);margin:0;padding:24px 0;text-align:center}@media(max-width:760px){.mapa-report-widget__header{align-items:stretch;grid-template-columns:minmax(0,1fr)}.mapa-report-widget__modes{grid-column:1;grid-row:3;justify-self:start;margin-top:12px}.mapa-report-widget__modes--standalone{grid-row:auto;margin-top:0}}.mapa-direction-indicator{background:var(--mapa-report-surface, var(--mapa-color-surface, #fafbfc));border:1px solid currentColor;border-radius:50%;box-sizing:border-box;color:var(--mapa-report-muted, var(--mapa-color-text-subtle, #68747a));display:inline-grid;flex:0 0 20px;font-size:11px;font-weight:700;height:20px;line-height:1;place-items:center;width:20px}.mapa-report-group-profile__filters{border-bottom:1px solid var(--mapa-report-border, #e1e5e7);display:grid;gap:12px;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;padding-bottom:var(--mapa-report-space, 20px)}.mapa-report-group-profile__filters:empty{display:none}.mapa-report-group-profile__action{align-self:center;grid-column:2;grid-row:1}.mapa-report-group-profile__action:empty{display:none}.mapa-report-group-profile__scale{align-items:center;display:flex;flex-wrap:wrap;gap:18px;justify-content:space-between}.mapa-report-group-profile__scale h3{align-items:center;display:flex;font-size:26px;font-weight:500;gap:8px;letter-spacing:-.02em;line-height:1.15;margin:0}.mapa-report-group-profile__scale-heading{display:grid;flex:1 1 320px;gap:6px;min-width:0}.mapa-report-group-profile__scale-description{color:var(--mapa-report-muted, #68747a);font-size:13px;line-height:1.5;margin:0}.mapa-report-group-profile__scale-description ::ng-deep ol,.mapa-report-group-profile__scale-description ::ng-deep p,.mapa-report-group-profile__scale-description ::ng-deep ul{margin:0 0 8px}.mapa-report-group-profile__scale-description ::ng-deep ol,.mapa-report-group-profile__scale-description ::ng-deep ul{padding-left:20px}.mapa-report-group-profile__scale-description ::ng-deep li{margin:0 0 3px}.mapa-report-group-profile__scale-description ::ng-deep b,.mapa-report-group-profile__scale-description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-group-profile__scale-description ::ng-deep :last-child{margin-bottom:0}.mapa-report-group-profile__average{align-items:center;align-self:flex-start;background:var(--mapa-report-average-surface, #eef2f5);border-radius:14px;display:flex;gap:16px;padding:14px 22px}.mapa-report-group-profile__average-label{color:var(--mapa-report-average-label, #3f5060);font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}.mapa-report-group-profile__average-value{align-items:center;display:flex;flex-direction:row-reverse;gap:14px}.mapa-report-group-profile__average-value mapa-result-track{--mapa-result-track-height: 6px;--mapa-result-track-fill-height: 6px;--mapa-result-track-rail: var(--mapa-report-average-rail, #d3dbe1);flex:none;width:72px}.mapa-report-group-profile__average-value--stepped mapa-result-track{--mapa-result-step-gap: 4px;width:168px}.mapa-report-group-profile__average-value strong{color:var(--mapa-report-average-value, #14283a);font-size:30px;font-weight:700;line-height:1}.mapa-report-group-profile__rows{display:grid}.mapa-report-group-profile__row{align-items:center;border-top:1px solid var(--mapa-report-line-soft, #edf1f3);display:grid;gap:16px;grid-template-columns:minmax(120px,20%) minmax(0,1fr);padding:15px 0}.mapa-report-group-profile__row-name{align-items:center;display:flex;font-size:14px;font-weight:500;gap:7px;margin:0}.mapa-report-group-profile__bar{min-width:0}.mapa-report-group-profile__caption{color:var(--mapa-report-muted, #68747a);display:block;font-size:11px;margin-bottom:2px}.mapa-report-group-profile__pill{background:var(--mapa-report-surface-muted, #eef2f3);border-radius:6px;display:flex;height:var(--mapa-report-pill-height, 34px);overflow:hidden;width:100%}.mapa-report-group-profile__slice{align-items:center;container-type:inline-size;display:flex;justify-content:center;flex:0 0 auto;height:100%;min-width:0;overflow:hidden;position:relative}.mapa-report-group-profile__slice-value{font-size:11px;font-weight:600;line-height:1;white-space:nowrap}.mapa-report-group-profile__slice--highlighted{align-items:center;display:flex;justify-content:center}.mapa-report-group-profile__slice--highlighted:after{color:currentColor;content:\"\\25bc\";font-size:9px;line-height:1;position:absolute;top:2px}.mapa-report-group-profile__legend{display:flex;flex-wrap:wrap;gap:8px 16px;list-style:none;margin:0;padding:0}.mapa-report-group-profile__legend li{align-items:center;color:var(--mapa-report-muted, #68747a);display:inline-flex;font-size:12px;gap:6px}@container (max-width: 35.99px){.mapa-report-group-profile__slice-value{display:none}}:host ::ng-deep .mapa-report-group-profile__filters>*{min-width:0;width:100%}@media(max-width:760px){.mapa-report-group-profile__filters{grid-auto-flow:row}.mapa-report-group-profile__action{grid-column:1;grid-row:auto;justify-self:start;margin-top:12px}.mapa-report-group-profile__average{box-sizing:border-box;flex-wrap:wrap;justify-content:space-between;width:100%}.mapa-report-group-profile__row{gap:8px;grid-template-columns:minmax(0,1fr)}}\n"] }]
|
|
9782
|
+
args: [{ selector: 'mapa-report-group-profile-widget-distribution', standalone: true, imports: [MapaClassificationTagComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"mapa-report-widget\" [attr.data-palette]=\"palette()\">\n @if (!dimensions().length) {\n <p class=\"mapa-report-widget__empty\">{{ i18n.texts.report.emptyState }}</p>\n } @else {\n <div class=\"mapa-report-group-profile__rows\">\n @for (dimension of dimensions(); track dimension.id ?? dimension.name) {\n <article class=\"mapa-report-group-profile__row\">\n <h4 class=\"mapa-report-group-profile__row-name\">\n {{ dimension.name }}\n @if (direction(dimension)) {\n <span\n class=\"mapa-direction-indicator\"\n [attr.title]=\"directionLabel(dimension)\"\n [attr.aria-label]=\"directionLabel(dimension)\"\n >{{ directionArrow(dimension) }}</span\n >\n }\n </h4>\n <div class=\"mapa-report-group-profile__bar\">\n <div\n class=\"mapa-report-group-profile__pill\"\n role=\"img\"\n [attr.aria-label]=\"pillLabel(dimension)\"\n >\n @for (slice of slices(dimension); track $index) {\n <span\n class=\"mapa-report-group-profile__slice\"\n [class.mapa-report-group-profile__slice--highlighted]=\"\n slice.highlighted\n \"\n [style.width.%]=\"normalizedWidth(slice, dimension)\"\n [style.background-color]=\"sliceColor(slice)\"\n [style.color]=\"sliceForeground(slice)\"\n [attr.title]=\"sliceTitle(slice)\"\n ><b class=\"mapa-report-group-profile__slice-value\" aria-hidden=\"true\">{{ sliceValue(slice) }}</b></span>\n }\n </div>\n </div>\n </article>\n }\n @if (showLegend()) {\n @for (group of legendGroups(); track group.id) {\n <article class=\"mapa-report-group-profile__row\">\n <h4 class=\"mapa-report-group-profile__row-name\">\n @if (group.direction) {\n {{ group.title }}\n }\n </h4>\n <div class=\"mapa-report-group-profile__bar\">\n <ul class=\"mapa-report-group-profile__legend\">\n @for (item of group.items; track item.id ?? item.label) {\n <li>\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n </li>\n }\n </ul>\n </div>\n </article>\n }\n }\n </div>\n }\n</div>\n", styles: ["@charset \"UTF-8\";:host{color:var(--mapa-report-text, #263238);display:block;min-width:0;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", sans-serif)}.mapa-report-widget{display:grid;gap:var(--mapa-report-space)}.mapa-report-widget__header{align-items:flex-start;column-gap:16px;display:grid;grid-template-columns:minmax(0,1fr) auto}.mapa-report-widget__heading{display:contents}.mapa-report-widget__heading h2{color:var(--mapa-report-accent);font-size:20px;font-weight:650;grid-column:1;grid-row:1;line-height:1.25;margin:0}.mapa-report-widget__description{color:var(--mapa-report-muted);font-size:13px;grid-column:1/-1;grid-row:2;line-height:1.5;margin:5px 0 0}.mapa-report-widget__description ::ng-deep ol,.mapa-report-widget__description ::ng-deep p,.mapa-report-widget__description ::ng-deep ul{margin:0 0 8px}.mapa-report-widget__description ::ng-deep ol,.mapa-report-widget__description ::ng-deep ul{padding-left:20px}.mapa-report-widget__description ::ng-deep li{margin:0 0 3px}.mapa-report-widget__description ::ng-deep b,.mapa-report-widget__description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-widget__description ::ng-deep :last-child{margin-bottom:0}.mapa-report-widget__modes{--mat-button-toggle-background-color: transparent;--mat-button-toggle-divider-color: transparent;--mat-button-toggle-height: 32px;--mat-button-toggle-label-text-font: var( --mapa-font-body, \"Asap\", sans-serif );--mat-button-toggle-label-text-size: 13px;--mat-button-toggle-label-text-weight: 500;--mat-button-toggle-selected-state-background-color: var( --mapa-toggle-selected-surface, #fff );--mat-button-toggle-selected-state-text-color: var( --mapa-toggle-selected-text, #162f42 );--mat-button-toggle-shape: 7px;--mat-button-toggle-text-color: var(--mapa-toggle-text, #5b6672);align-items:center;background:var(--mapa-toggle-surface, #f1f2f4);border:0;border-radius:9px;box-sizing:border-box;gap:2px;grid-column:2;grid-row:1;overflow:hidden;padding:3px}.mapa-report-widget__modes mat-button-toggle{border:0;border-radius:7px;font:500 13px/1 var(--mapa-font-body, \"Asap\", sans-serif)}.mapa-report-widget__modes mat-button-toggle.mat-button-toggle-checked{box-shadow:0 1px 2px #162f4224}.mapa-report-widget__modes ::ng-deep .mat-button-toggle-button:focus-visible{outline:2px solid #cf450c;outline-offset:-2px}.mapa-report-widget__modes mat-icon{font-size:14px;height:14px;margin-right:5px;width:14px}.mapa-report-widget__modes--standalone{grid-column:1;grid-row:auto;justify-self:end}.mapa-report-widget__empty{color:var(--mapa-report-muted);margin:0;padding:24px 0;text-align:center}@media(max-width:760px){.mapa-report-widget__header{align-items:stretch;grid-template-columns:minmax(0,1fr)}.mapa-report-widget__modes{grid-column:1;grid-row:3;justify-self:start;margin-top:12px}.mapa-report-widget__modes--standalone{grid-row:auto;margin-top:0}}.mapa-direction-indicator{background:var(--mapa-report-surface, var(--mapa-color-surface, #fafbfc));border:1px solid currentColor;border-radius:50%;box-sizing:border-box;color:var(--mapa-report-muted, var(--mapa-color-text-subtle, #68747a));display:inline-grid;flex:0 0 20px;font-size:11px;font-weight:700;height:20px;line-height:1;place-items:center;width:20px}.mapa-report-group-profile__filters{border-bottom:1px solid var(--mapa-report-border, #e1e5e7);display:grid;gap:12px;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;padding-bottom:var(--mapa-report-space, 20px)}.mapa-report-group-profile__filters:empty{display:none}.mapa-report-group-profile__action{align-self:center;grid-column:2;grid-row:1}.mapa-report-group-profile__action:empty{display:none}.mapa-report-group-profile__scale{align-items:center;display:flex;flex-wrap:wrap;gap:18px;justify-content:space-between}.mapa-report-group-profile__scale h3{align-items:center;display:flex;font-size:26px;font-weight:500;gap:8px;letter-spacing:-.02em;line-height:1.15;margin:0}.mapa-report-group-profile__scale-heading{display:grid;flex:1 1 320px;gap:6px;min-width:0}.mapa-report-group-profile__scale-description{color:var(--mapa-report-muted, #68747a);font-size:13px;line-height:1.5;margin:0}.mapa-report-group-profile__scale-description ::ng-deep ol,.mapa-report-group-profile__scale-description ::ng-deep p,.mapa-report-group-profile__scale-description ::ng-deep ul{margin:0 0 8px}.mapa-report-group-profile__scale-description ::ng-deep ol,.mapa-report-group-profile__scale-description ::ng-deep ul{padding-left:20px}.mapa-report-group-profile__scale-description ::ng-deep li{margin:0 0 3px}.mapa-report-group-profile__scale-description ::ng-deep b,.mapa-report-group-profile__scale-description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-group-profile__scale-description ::ng-deep :last-child{margin-bottom:0}.mapa-report-group-profile__average{align-items:center;align-self:flex-start;background:var(--mapa-report-average-surface, #eef2f5);border-radius:14px;display:flex;gap:16px;padding:14px 22px}.mapa-report-group-profile__average-label{color:var(--mapa-report-average-label, #3f5060);font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}.mapa-report-group-profile__average-value{align-items:center;display:flex;flex-direction:row-reverse;gap:14px}.mapa-report-group-profile__average-value mapa-result-track{--mapa-result-track-height: 6px;--mapa-result-track-fill-height: 6px;--mapa-result-track-rail: var(--mapa-report-average-rail, #d3dbe1);flex:none;width:72px}.mapa-report-group-profile__average-value--stepped mapa-result-track{--mapa-result-step-gap: 4px;width:168px}.mapa-report-group-profile__average-value strong{color:var(--mapa-report-average-value, #14283a);font-size:30px;font-weight:700;line-height:1}.mapa-report-group-profile__rows{display:grid}.mapa-report-group-profile__row{align-items:center;border-top:1px solid var(--mapa-report-line-soft, #edf1f3);display:grid;gap:16px;grid-template-columns:minmax(120px,20%) minmax(0,1fr);padding:15px 0}.mapa-report-group-profile__row-name{align-items:center;display:flex;font-size:14px;font-weight:500;gap:7px;margin:0}.mapa-report-group-profile__bar{min-width:0}.mapa-report-group-profile__caption{color:var(--mapa-report-muted, #68747a);display:block;font-size:11px;margin-bottom:2px}.mapa-report-group-profile__pill{background:var(--mapa-report-surface-muted, #eef2f3);border-radius:6px;display:flex;height:var(--mapa-report-pill-height, 34px);overflow:hidden;width:100%}.mapa-report-group-profile__slice{align-items:center;container-type:inline-size;display:flex;justify-content:center;flex:0 0 auto;height:100%;min-width:0;overflow:hidden;position:relative}.mapa-report-group-profile__slice-value{font-size:11px;font-weight:600;line-height:1;white-space:nowrap}.mapa-report-group-profile__slice--highlighted{align-items:center;display:flex;justify-content:center}.mapa-report-group-profile__slice--highlighted:after{color:currentColor;content:\"\\25bc\";font-size:9px;line-height:1;position:absolute;top:2px}.mapa-report-group-profile__legend{display:flex;flex-wrap:wrap;gap:8px 16px;list-style:none;margin:0;padding:0}.mapa-report-group-profile__legend li{align-items:center;color:var(--mapa-report-muted, #68747a);display:inline-flex;font-size:12px;gap:6px}@container (max-width: 35.99px){.mapa-report-group-profile__slice-value{display:none}}:host ::ng-deep .mapa-report-group-profile__filters>*{min-width:0;width:100%}@media(max-width:760px){.mapa-report-group-profile__filters{grid-auto-flow:row}.mapa-report-group-profile__action{grid-column:1;grid-row:auto;justify-self:start;margin-top:12px}.mapa-report-group-profile__average{box-sizing:border-box;flex-wrap:wrap;justify-content:space-between;width:100%}.mapa-report-group-profile__row{gap:8px;grid-template-columns:minmax(0,1fr)}}\n"] }]
|
|
9756
9783
|
}] });
|
|
9757
9784
|
|
|
9758
9785
|
class MapaReportGroupProfileWidgetComponent extends ReportGroupProfileContent {
|
|
@@ -9833,6 +9860,37 @@ class MapaReportLegendComponent {
|
|
|
9833
9860
|
this.appearance = input('default', ...(ngDevMode ? [{ debugName: "appearance" }] : []));
|
|
9834
9861
|
this.widthLabels = computed(() => this.groups().flatMap((group) => group.items.map((item) => item.classification?.classificationName || item.label)), ...(ngDevMode ? [{ debugName: "widthLabels" }] : []));
|
|
9835
9862
|
}
|
|
9863
|
+
/**
|
|
9864
|
+
* Faixa vira coluna própria (Faixa | Classificação | Interpretação) sempre que o
|
|
9865
|
+
* grupo é `reference` ou quando algum item do layout padrão traz `range`.
|
|
9866
|
+
*/
|
|
9867
|
+
hasRangeColumn(group) {
|
|
9868
|
+
if (group.layout === 'reference')
|
|
9869
|
+
return true;
|
|
9870
|
+
if (group.layout === 'name-value')
|
|
9871
|
+
return false;
|
|
9872
|
+
return group.items.some((item) => !!item.range?.trim());
|
|
9873
|
+
}
|
|
9874
|
+
/**
|
|
9875
|
+
* Rótulos das colunas do cabeçalho. No layout padrão com faixa, `columnLabels`
|
|
9876
|
+
* de dois itens continua valendo para Classificação e Interpretação.
|
|
9877
|
+
*/
|
|
9878
|
+
columnLabels(group) {
|
|
9879
|
+
const texts = this.i18n.texts.report;
|
|
9880
|
+
const labels = group.columnLabels ?? [];
|
|
9881
|
+
if (!this.hasRangeColumn(group)) {
|
|
9882
|
+
return [
|
|
9883
|
+
labels[0] || texts.classificationTitle,
|
|
9884
|
+
labels[1] || texts.interpretationTitle,
|
|
9885
|
+
];
|
|
9886
|
+
}
|
|
9887
|
+
const [range, classification, interpretation] = labels.length === 3 ? labels : [undefined, labels[0], labels[1]];
|
|
9888
|
+
return [
|
|
9889
|
+
range || texts.rangeTitle,
|
|
9890
|
+
classification || texts.classificationTitle,
|
|
9891
|
+
interpretation || texts.interpretationTitle,
|
|
9892
|
+
];
|
|
9893
|
+
}
|
|
9836
9894
|
directionArrow(direction) {
|
|
9837
9895
|
return direction === 'negative' ? '↓' : '↑';
|
|
9838
9896
|
}
|
|
@@ -9842,7 +9900,7 @@ class MapaReportLegendComponent {
|
|
|
9842
9900
|
: this.i18n.texts.report.positiveDirectionLabel;
|
|
9843
9901
|
}
|
|
9844
9902
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MapaReportLegendComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9845
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: MapaReportLegendComponent, isStandalone: true, selector: "mapa-report-legend", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, intro: { classPropertyName: "intro", publicName: "intro", isSignal: true, isRequired: false, transformFunction: null }, groupsTitle: { classPropertyName: "groupsTitle", publicName: "groupsTitle", isSignal: true, isRequired: false, transformFunction: null }, groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<details\n class=\"mapa-report-legend\"\n mapaClassificationWidthGroup\n [classificationLabels]=\"widthLabels()\"\n [class.mapa-report-legend--psychosocial]=\"appearance() === 'psychosocial'\"\n [open]=\"expanded()\"\n>\n <summary>{{ title() || i18n.texts.report.readingInformationTitle }}</summary>\n <div class=\"mapa-report-legend__content\">\n @if (intro()) {\n <div\n class=\"mapa-report-legend__intro\"\n [innerHTML]=\"intro() | safeHtml\"\n ></div>\n }\n\n @if (groupsTitle()) {\n <h3 class=\"mapa-report-legend__groups-title\">{{ groupsTitle() }}</h3>\n }\n\n @if (appearance() === \"psychosocial\") {\n <div class=\"mapa-report-legend__groups\">\n @for (group of groups(); track group.id ?? $index) {\n <section\n class=\"mapa-report-legend__group\"\n [class.mapa-report-legend__group--name-value]=\"\n group.layout === 'name-value'\n \"\n [class.mapa-report-legend__group--reference]=\"\n group.layout === 'reference'\n \"\n >\n <div class=\"mapa-report-legend__direction\">\n <h3>\n @if (group.direction) {\n <span class=\"mapa-direction-indicator\" aria-hidden=\"true\">{{\n directionArrow(group.direction)\n }}</span>\n }\n {{ group.title || directionLabel(group.direction) }}\n </h3>\n @if (group.description) {\n <div\n class=\"mapa-report-legend__group-description\"\n [innerHTML]=\"group.description | safeHtml\"\n ></div>\n }\n </div>\n <div class=\"mapa-report-legend__table\">\n <div class=\"mapa-report-legend__columns\" aria-hidden=\"true\">\n @if (group.layout === \"reference\") {\n <span>{{ group.columnLabels?.[0] }}</span>\n <span>{{\n group.columnLabels?.[1] ||\n i18n.texts.report.classificationTitle\n }}</span>\n <span>{{\n group.columnLabels?.[2] ||\n i18n.texts.report.interpretationTitle\n }}</span>\n } @else {\n <span>{{\n group.columnLabels?.[0] ||\n i18n.texts.report.classificationTitle\n }}</span>\n <span>{{\n group.columnLabels?.[1] ||\n i18n.texts.report.interpretationTitle\n }}</span>\n }\n </div>\n <ul>\n @for (item of group.items; track item.id ?? $index) {\n <li>\n @if (group.layout === \"name-value\") {\n <span class=\"mapa-report-legend__item-copy\">{{\n item.label\n }}</span>\n <span class=\"mapa-report-legend__item-copy\">{{\n item.range\n }}</span>\n } @else if (group.layout === \"reference\") {\n <span class=\"mapa-report-legend__item-copy\">{{\n item.range\n }}</span>\n <span class=\"mapa-report-legend__classification\">\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n </span>\n <span\n class=\"mapa-report-legend__item-copy\"\n [innerHTML]=\"item.description || '' | safeHtml\"\n ></span>\n } @else {\n <span class=\"mapa-report-legend__classification\">\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n @if (item.range) {\n <small>{{ item.range }}</small>\n }\n </span>\n @if (item.description) {\n <span\n class=\"mapa-report-legend__item-copy\"\n [innerHTML]=\"item.description | safeHtml\"\n ></span>\n }\n }\n </li>\n }\n </ul>\n </div>\n </section>\n }\n </div>\n } @else {\n <div class=\"mapa-report-legend__groups\">\n @for (group of groups(); track group.id ?? $index) {\n <section class=\"mapa-report-legend__group\">\n <h3>{{ group.title || directionLabel(group.direction) }}</h3>\n @if (group.description) {\n <div\n class=\"mapa-report-legend__group-description\"\n [innerHTML]=\"group.description | safeHtml\"\n ></div>\n }\n <ul>\n @for (item of group.items; track item.id ?? $index) {\n <li>\n <mapa-classification-tag\n appearance=\"solid\"\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color,\n }\n \"\n />\n <span class=\"mapa-report-legend__item-copy\">\n @if (item.range) {\n <strong>{{ item.range }}</strong>\n }\n @if (item.description) {\n <span [innerHTML]=\"item.description | safeHtml\"></span>\n }\n </span>\n </li>\n }\n </ul>\n </section>\n }\n </div>\n }\n </div>\n</details>\n", styles: ["@charset \"UTF-8\";:host{--mapa-report-accent: #ff560b;--mapa-report-accent-soft: #fff0e9;--mapa-report-surface: #fff;--mapa-report-surface-muted: #eef2f3;--mapa-report-border: #e1e5e7;--mapa-report-text: #263238;--mapa-report-muted: #68747a;--mapa-report-pill-width: 104px;--mapa-report-radius: 8px;--mapa-report-space: 20px;color:var(--mapa-report-text);display:block;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", sans-serif)}.mapa-direction-indicator{background:var(--mapa-report-surface, var(--mapa-color-surface, #fafbfc));border:1px solid currentColor;border-radius:50%;box-sizing:border-box;color:var(--mapa-report-muted, var(--mapa-color-text-subtle, #68747a));display:inline-grid;flex:0 0 20px;font-size:11px;font-weight:700;height:20px;line-height:1;place-items:center;width:20px}.mapa-report-legend{border:1px solid var(--mapa-report-border);border-radius:var(--mapa-report-radius);overflow:clip}.mapa-report-legend summary{background:#f8f9f9;cursor:pointer;font-size:13px;font-weight:650;list-style-position:inside;padding:12px 14px}.mapa-report-legend summary:focus-visible{outline:3px solid rgba(255,86,11,.28);outline-offset:-3px}.mapa-report-legend__content{background:var(--mapa-report-surface-muted);padding:16px}.mapa-report-legend__intro{color:var(--mapa-report-muted);font-size:12px;line-height:1.55;margin:0 0 14px}.mapa-report-legend__intro ::ng-deep ol,.mapa-report-legend__intro ::ng-deep p,.mapa-report-legend__intro ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__intro ::ng-deep ol,.mapa-report-legend__intro ::ng-deep ul{padding-left:20px}.mapa-report-legend__intro ::ng-deep li{margin:0 0 3px}.mapa-report-legend__intro ::ng-deep b,.mapa-report-legend__intro ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__intro ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__groups-title{font-size:14px;margin:0 0 14px}.mapa-report-legend__groups{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.mapa-report-legend__group{min-width:0;background:var(--mapa-report-surface);border:1px solid var(--mapa-report-border);border-radius:6px;padding:12px}.mapa-report-legend__group>h3{font-size:12px;margin:0 0 10px}.mapa-report-legend__group>ul{display:grid;gap:8px;list-style:none;margin:0;padding:0}.mapa-report-legend__group>ul>li{align-items:center;display:grid;gap:10px;grid-template-columns:minmax(0,var(--mapa-classification-width, 86px)) minmax(0,1fr)}.mapa-report-legend__group-description{color:var(--mapa-report-muted);font-size:11px;line-height:1.45;margin:-4px 0 10px}.mapa-report-legend__group-description ::ng-deep ol,.mapa-report-legend__group-description ::ng-deep p,.mapa-report-legend__group-description ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__group-description ::ng-deep ol,.mapa-report-legend__group-description ::ng-deep ul{padding-left:20px}.mapa-report-legend__group-description ::ng-deep li{margin:0 0 3px}.mapa-report-legend__group-description ::ng-deep b,.mapa-report-legend__group-description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__group-description ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__item-copy{min-width:0;overflow-wrap:anywhere;color:var(--mapa-report-muted);display:grid;font-size:11px;gap:2px;line-height:1.35}.mapa-report-legend__item-copy ::ng-deep ol,.mapa-report-legend__item-copy ::ng-deep p,.mapa-report-legend__item-copy ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__item-copy ::ng-deep ol,.mapa-report-legend__item-copy ::ng-deep ul{padding-left:20px}.mapa-report-legend__item-copy ::ng-deep li{margin:0 0 3px}.mapa-report-legend__item-copy ::ng-deep b,.mapa-report-legend__item-copy ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__item-copy ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__item-copy strong{color:var(--mapa-report-text)}.mapa-report-legend--psychosocial{border-radius:12px}.mapa-report-legend--psychosocial summary{align-items:center;display:flex;font-size:14px;justify-content:space-between;list-style:none;padding:16px 18px}.mapa-report-legend--psychosocial summary::-webkit-details-marker{display:none}.mapa-report-legend--psychosocial summary:after{color:#84919a;content:\"\\2304\";font-size:14px;line-height:1}.mapa-report-legend--psychosocial[open] summary:after{content:\"\\2303\"}.mapa-report-legend--psychosocial .mapa-report-legend__content{border-top:1px solid var(--mapa-report-border);padding:20px}.mapa-report-legend--psychosocial .mapa-report-legend__intro{font-size:14px;margin-bottom:18px}.mapa-report-legend--psychosocial .mapa-report-legend__groups{gap:20px}.mapa-report-legend--psychosocial .mapa-report-legend__group{background:transparent;border:0;border-radius:0;display:grid;gap:18px;min-width:0;padding:0}.mapa-report-legend--psychosocial .mapa-report-legend__direction{display:grid;gap:9px}.mapa-report-legend--psychosocial .mapa-report-legend__direction h3{align-items:center;display:flex;font-size:14px;gap:8px;margin:0}.mapa-report-legend--psychosocial .mapa-report-legend__direction .mapa-report-legend__group-description{color:var(--mapa-report-muted);font-size:12px;line-height:1.5;margin:0}.mapa-report-legend--psychosocial .mapa-report-legend__table{background:var(--mapa-report-surface);border:1px solid var(--mapa-report-border);border-radius:10px;overflow:hidden}.mapa-report-legend--psychosocial .mapa-report-legend__table ul{display:grid;list-style:none;margin:0;padding:0}.mapa-report-legend--psychosocial .mapa-report-legend__table li{align-items:center;display:grid;gap:12px;grid-template-columns:max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr);min-height:38px;padding:8px 11px}.mapa-report-legend--psychosocial .mapa-report-legend__table li+li{border-top:1px solid var(--mapa-report-border)}.mapa-report-legend--psychosocial .mapa-report-legend__columns{background:#f3f5f6;color:#84919a;display:grid;font-size:9px;font-weight:800;gap:12px;grid-template-columns:max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr);letter-spacing:.04em;padding:10px 11px 8px;text-transform:uppercase}.mapa-report-legend--psychosocial .mapa-report-legend__classification{align-items:center;display:grid;font-size:11px;gap:2px 7px;grid-template-columns:minmax(0,1fr);justify-items:start;min-width:0}.mapa-report-legend--psychosocial .mapa-report-legend__classification strong{color:var(--mapa-report-text)}.mapa-report-legend--psychosocial .mapa-report-legend__classification small{color:var(--mapa-report-muted);grid-column:1}.mapa-report-legend--psychosocial .mapa-report-legend__item-copy{display:block}@media(max-width:760px){.mapa-report-legend__groups{grid-template-columns:1fr}.mapa-report-legend__group>ul>li{align-items:start;grid-template-columns:1fr}.mapa-report-legend--psychosocial .mapa-report-legend__content{padding:16px}.mapa-report-legend--psychosocial .mapa-report-legend__columns{display:none}.mapa-report-legend--psychosocial .mapa-report-legend__table li{align-items:start;grid-template-columns:minmax(0,1fr)}}.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value{grid-column:1/-1}.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value .mapa-report-legend__columns,.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value .mapa-report-legend__table li{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference{grid-column:1/-1}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__columns,.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__table li{display:grid;grid-template-columns:minmax(80px,140px) max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr)}@media(max-width:760px){.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__columns{display:none}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__table li{grid-template-columns:minmax(0,1fr)}}\n"], dependencies: [{ kind: "component", type: MapaClassificationTagComponent, selector: "mapa-classification-tag", inputs: ["classification", "size", "appearance", "shape", "casing", "fallbackLabel", "valueLabel"] }, { kind: "directive", type: MapaClassificationWidthGroupDirective, selector: "[mapaClassificationWidthGroup]", inputs: ["mapaClassificationWidthGroup", "classificationLabels"] }, { kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9903
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.21", type: MapaReportLegendComponent, isStandalone: true, selector: "mapa-report-legend", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, intro: { classPropertyName: "intro", publicName: "intro", isSignal: true, isRequired: false, transformFunction: null }, groupsTitle: { classPropertyName: "groupsTitle", publicName: "groupsTitle", isSignal: true, isRequired: false, transformFunction: null }, groups: { classPropertyName: "groups", publicName: "groups", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, appearance: { classPropertyName: "appearance", publicName: "appearance", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<details\n class=\"mapa-report-legend\"\n mapaClassificationWidthGroup\n [classificationLabels]=\"widthLabels()\"\n [class.mapa-report-legend--psychosocial]=\"appearance() === 'psychosocial'\"\n [open]=\"expanded()\"\n>\n <summary>{{ title() || i18n.texts.report.readingInformationTitle }}</summary>\n <div class=\"mapa-report-legend__content\">\n @if (intro()) {\n <div\n class=\"mapa-report-legend__intro\"\n [innerHTML]=\"intro() | safeHtml\"\n ></div>\n }\n\n @if (groupsTitle()) {\n <h3 class=\"mapa-report-legend__groups-title\">{{ groupsTitle() }}</h3>\n }\n\n @if (appearance() === \"psychosocial\") {\n <div class=\"mapa-report-legend__groups\">\n @for (group of groups(); track group.id ?? $index) {\n <section\n class=\"mapa-report-legend__group\"\n [class.mapa-report-legend__group--name-value]=\"\n group.layout === 'name-value'\n \"\n [class.mapa-report-legend__group--reference]=\"\n group.layout === 'reference'\n \"\n [class.mapa-report-legend__group--ranged]=\"\n group.layout !== 'reference' && hasRangeColumn(group)\n \"\n >\n <div class=\"mapa-report-legend__direction\">\n <h3>\n @if (group.direction) {\n <span class=\"mapa-direction-indicator\" aria-hidden=\"true\">{{\n directionArrow(group.direction)\n }}</span>\n }\n {{ group.title || directionLabel(group.direction) }}\n </h3>\n @if (group.description) {\n <div\n class=\"mapa-report-legend__group-description\"\n [innerHTML]=\"group.description | safeHtml\"\n ></div>\n }\n </div>\n <div class=\"mapa-report-legend__table\">\n <div class=\"mapa-report-legend__columns\" aria-hidden=\"true\">\n @for (label of columnLabels(group); track $index) {\n <span>{{ label }}</span>\n }\n </div>\n <ul>\n @for (item of group.items; track item.id ?? $index) {\n <li>\n @if (group.layout === \"name-value\") {\n <span class=\"mapa-report-legend__item-copy\">{{\n item.label\n }}</span>\n <span class=\"mapa-report-legend__item-copy\">{{\n item.range\n }}</span>\n } @else if (hasRangeColumn(group)) {\n <span class=\"mapa-report-legend__item-copy\">{{\n item.range\n }}</span>\n <span class=\"mapa-report-legend__classification\">\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n </span>\n <span\n class=\"mapa-report-legend__item-copy\"\n [innerHTML]=\"item.description || '' | safeHtml\"\n ></span>\n } @else {\n <span class=\"mapa-report-legend__classification\">\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n </span>\n @if (item.description) {\n <span\n class=\"mapa-report-legend__item-copy\"\n [innerHTML]=\"item.description | safeHtml\"\n ></span>\n }\n }\n </li>\n }\n </ul>\n </div>\n </section>\n }\n </div>\n } @else {\n <div class=\"mapa-report-legend__groups\">\n @for (group of groups(); track group.id ?? $index) {\n <section class=\"mapa-report-legend__group\">\n <h3>{{ group.title || directionLabel(group.direction) }}</h3>\n @if (group.description) {\n <div\n class=\"mapa-report-legend__group-description\"\n [innerHTML]=\"group.description | safeHtml\"\n ></div>\n }\n <ul>\n @for (item of group.items; track item.id ?? $index) {\n <li>\n <mapa-classification-tag\n appearance=\"solid\"\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color,\n }\n \"\n />\n <span class=\"mapa-report-legend__item-copy\">\n @if (item.range) {\n <strong>{{ item.range }}</strong>\n }\n @if (item.description) {\n <span [innerHTML]=\"item.description | safeHtml\"></span>\n }\n </span>\n </li>\n }\n </ul>\n </section>\n }\n </div>\n }\n </div>\n</details>\n", styles: ["@charset \"UTF-8\";:host{--mapa-report-accent: #ff560b;--mapa-report-accent-soft: #fff0e9;--mapa-report-surface: #fff;--mapa-report-surface-muted: #eef2f3;--mapa-report-border: #e1e5e7;--mapa-report-text: #263238;--mapa-report-muted: #68747a;--mapa-report-pill-width: 104px;--mapa-report-radius: 8px;--mapa-report-space: 20px;color:var(--mapa-report-text);display:block;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", sans-serif)}.mapa-direction-indicator{background:var(--mapa-report-surface, var(--mapa-color-surface, #fafbfc));border:1px solid currentColor;border-radius:50%;box-sizing:border-box;color:var(--mapa-report-muted, var(--mapa-color-text-subtle, #68747a));display:inline-grid;flex:0 0 20px;font-size:11px;font-weight:700;height:20px;line-height:1;place-items:center;width:20px}.mapa-report-legend{border:1px solid var(--mapa-report-border);border-radius:var(--mapa-report-radius);overflow:clip}.mapa-report-legend summary{background:#f8f9f9;cursor:pointer;font-size:13px;font-weight:650;list-style-position:inside;padding:12px 14px}.mapa-report-legend summary:focus-visible{outline:3px solid rgba(255,86,11,.28);outline-offset:-3px}.mapa-report-legend__content{background:var(--mapa-report-surface-muted);padding:16px}.mapa-report-legend__intro{color:var(--mapa-report-muted);font-size:12px;line-height:1.55;margin:0 0 14px}.mapa-report-legend__intro ::ng-deep ol,.mapa-report-legend__intro ::ng-deep p,.mapa-report-legend__intro ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__intro ::ng-deep ol,.mapa-report-legend__intro ::ng-deep ul{padding-left:20px}.mapa-report-legend__intro ::ng-deep li{margin:0 0 3px}.mapa-report-legend__intro ::ng-deep b,.mapa-report-legend__intro ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__intro ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__groups-title{font-size:14px;margin:0 0 14px}.mapa-report-legend__groups{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.mapa-report-legend__group{min-width:0;background:var(--mapa-report-surface);border:1px solid var(--mapa-report-border);border-radius:6px;padding:12px}.mapa-report-legend__group>h3{font-size:12px;margin:0 0 10px}.mapa-report-legend__group>ul{display:grid;gap:8px;list-style:none;margin:0;padding:0}.mapa-report-legend__group>ul>li{align-items:center;display:grid;gap:10px;grid-template-columns:minmax(0,var(--mapa-classification-width, 86px)) minmax(0,1fr)}.mapa-report-legend__group-description{color:var(--mapa-report-muted);font-size:11px;line-height:1.45;margin:-4px 0 10px}.mapa-report-legend__group-description ::ng-deep ol,.mapa-report-legend__group-description ::ng-deep p,.mapa-report-legend__group-description ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__group-description ::ng-deep ol,.mapa-report-legend__group-description ::ng-deep ul{padding-left:20px}.mapa-report-legend__group-description ::ng-deep li{margin:0 0 3px}.mapa-report-legend__group-description ::ng-deep b,.mapa-report-legend__group-description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__group-description ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__item-copy{min-width:0;overflow-wrap:anywhere;color:var(--mapa-report-muted);display:grid;font-size:11px;gap:2px;line-height:1.35}.mapa-report-legend__item-copy ::ng-deep ol,.mapa-report-legend__item-copy ::ng-deep p,.mapa-report-legend__item-copy ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__item-copy ::ng-deep ol,.mapa-report-legend__item-copy ::ng-deep ul{padding-left:20px}.mapa-report-legend__item-copy ::ng-deep li{margin:0 0 3px}.mapa-report-legend__item-copy ::ng-deep b,.mapa-report-legend__item-copy ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__item-copy ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__item-copy strong{color:var(--mapa-report-text)}.mapa-report-legend--psychosocial{border-radius:12px}.mapa-report-legend--psychosocial summary{align-items:center;display:flex;font-size:14px;justify-content:space-between;list-style:none;padding:16px 18px}.mapa-report-legend--psychosocial summary::-webkit-details-marker{display:none}.mapa-report-legend--psychosocial summary:after{color:#84919a;content:\"\\2304\";font-size:14px;line-height:1}.mapa-report-legend--psychosocial[open] summary:after{content:\"\\2303\"}.mapa-report-legend--psychosocial .mapa-report-legend__content{border-top:1px solid var(--mapa-report-border);padding:20px}.mapa-report-legend--psychosocial .mapa-report-legend__intro{font-size:14px;margin-bottom:18px}.mapa-report-legend--psychosocial .mapa-report-legend__groups{gap:20px}.mapa-report-legend--psychosocial .mapa-report-legend__group{background:transparent;border:0;border-radius:0;display:grid;gap:18px;min-width:0;padding:0}.mapa-report-legend--psychosocial .mapa-report-legend__direction{display:grid;gap:9px}.mapa-report-legend--psychosocial .mapa-report-legend__direction h3{align-items:center;display:flex;font-size:14px;gap:8px;margin:0}.mapa-report-legend--psychosocial .mapa-report-legend__direction .mapa-report-legend__group-description{color:var(--mapa-report-muted);font-size:12px;line-height:1.5;margin:0}.mapa-report-legend--psychosocial .mapa-report-legend__table{background:var(--mapa-report-surface);border:1px solid var(--mapa-report-border);border-radius:10px;overflow:hidden}.mapa-report-legend--psychosocial .mapa-report-legend__table ul{display:grid;list-style:none;margin:0;padding:0}.mapa-report-legend--psychosocial .mapa-report-legend__table li{align-items:center;display:grid;gap:12px;grid-template-columns:max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr);min-height:38px;padding:8px 11px}.mapa-report-legend--psychosocial .mapa-report-legend__table li+li{border-top:1px solid var(--mapa-report-border)}.mapa-report-legend--psychosocial .mapa-report-legend__columns{background:#f3f5f6;color:#84919a;display:grid;font-size:9px;font-weight:800;gap:12px;grid-template-columns:max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr);letter-spacing:.04em;padding:10px 11px 8px;text-transform:uppercase}.mapa-report-legend--psychosocial .mapa-report-legend__classification{align-items:center;display:grid;font-size:11px;gap:2px 7px;grid-template-columns:minmax(0,1fr);justify-items:start;min-width:0}.mapa-report-legend--psychosocial .mapa-report-legend__classification strong{color:var(--mapa-report-text)}.mapa-report-legend--psychosocial .mapa-report-legend__classification small{color:var(--mapa-report-muted);grid-column:1}.mapa-report-legend--psychosocial .mapa-report-legend__item-copy{display:block}@media(max-width:760px){.mapa-report-legend__groups{grid-template-columns:1fr}.mapa-report-legend__group>ul>li{align-items:start;grid-template-columns:1fr}.mapa-report-legend--psychosocial .mapa-report-legend__content{padding:16px}.mapa-report-legend--psychosocial .mapa-report-legend__columns{display:none}.mapa-report-legend--psychosocial .mapa-report-legend__table li{align-items:start;grid-template-columns:minmax(0,1fr)}}.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value{grid-column:1/-1}.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value .mapa-report-legend__columns,.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value .mapa-report-legend__table li{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference{grid-column:1/-1}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__columns,.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__table li{display:grid;grid-template-columns:minmax(80px,140px) max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr)}.mapa-report-legend--psychosocial .mapa-report-legend__group--ranged .mapa-report-legend__columns,.mapa-report-legend--psychosocial .mapa-report-legend__group--ranged .mapa-report-legend__table li{grid-template-columns:minmax(72px,96px) max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr)}@media(max-width:760px){.mapa-report-legend--psychosocial .mapa-report-legend__group--ranged .mapa-report-legend__table li{grid-template-columns:minmax(0,1fr)}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__columns{display:none}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__table li{grid-template-columns:minmax(0,1fr)}}\n"], dependencies: [{ kind: "component", type: MapaClassificationTagComponent, selector: "mapa-classification-tag", inputs: ["classification", "size", "appearance", "shape", "casing", "fallbackLabel", "valueLabel"] }, { kind: "directive", type: MapaClassificationWidthGroupDirective, selector: "[mapaClassificationWidthGroup]", inputs: ["mapaClassificationWidthGroup", "classificationLabels"] }, { kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9846
9904
|
}
|
|
9847
9905
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: MapaReportLegendComponent, decorators: [{
|
|
9848
9906
|
type: Component,
|
|
@@ -9850,7 +9908,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImpo
|
|
|
9850
9908
|
MapaClassificationTagComponent,
|
|
9851
9909
|
MapaClassificationWidthGroupDirective,
|
|
9852
9910
|
SafeHtmlPipe,
|
|
9853
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<details\n class=\"mapa-report-legend\"\n mapaClassificationWidthGroup\n [classificationLabels]=\"widthLabels()\"\n [class.mapa-report-legend--psychosocial]=\"appearance() === 'psychosocial'\"\n [open]=\"expanded()\"\n>\n <summary>{{ title() || i18n.texts.report.readingInformationTitle }}</summary>\n <div class=\"mapa-report-legend__content\">\n @if (intro()) {\n <div\n class=\"mapa-report-legend__intro\"\n [innerHTML]=\"intro() | safeHtml\"\n ></div>\n }\n\n @if (groupsTitle()) {\n <h3 class=\"mapa-report-legend__groups-title\">{{ groupsTitle() }}</h3>\n }\n\n @if (appearance() === \"psychosocial\") {\n <div class=\"mapa-report-legend__groups\">\n @for (group of groups(); track group.id ?? $index) {\n <section\n class=\"mapa-report-legend__group\"\n [class.mapa-report-legend__group--name-value]=\"\n group.layout === 'name-value'\n \"\n [class.mapa-report-legend__group--reference]=\"\n group.layout === 'reference'\n \"\n >\n <div class=\"mapa-report-legend__direction\">\n <h3>\n @if (group.direction) {\n <span class=\"mapa-direction-indicator\" aria-hidden=\"true\">{{\n directionArrow(group.direction)\n }}</span>\n }\n {{ group.title || directionLabel(group.direction) }}\n </h3>\n @if (group.description) {\n <div\n class=\"mapa-report-legend__group-description\"\n [innerHTML]=\"group.description | safeHtml\"\n ></div>\n }\n </div>\n <div class=\"mapa-report-legend__table\">\n <div class=\"mapa-report-legend__columns\" aria-hidden=\"true\">\n @if (group.layout === \"reference\") {\n <span>{{ group.columnLabels?.[0] }}</span>\n <span>{{\n group.columnLabels?.[1] ||\n i18n.texts.report.classificationTitle\n }}</span>\n <span>{{\n group.columnLabels?.[2] ||\n i18n.texts.report.interpretationTitle\n }}</span>\n } @else {\n <span>{{\n group.columnLabels?.[0] ||\n i18n.texts.report.classificationTitle\n }}</span>\n <span>{{\n group.columnLabels?.[1] ||\n i18n.texts.report.interpretationTitle\n }}</span>\n }\n </div>\n <ul>\n @for (item of group.items; track item.id ?? $index) {\n <li>\n @if (group.layout === \"name-value\") {\n <span class=\"mapa-report-legend__item-copy\">{{\n item.label\n }}</span>\n <span class=\"mapa-report-legend__item-copy\">{{\n item.range\n }}</span>\n } @else if (group.layout === \"reference\") {\n <span class=\"mapa-report-legend__item-copy\">{{\n item.range\n }}</span>\n <span class=\"mapa-report-legend__classification\">\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n </span>\n <span\n class=\"mapa-report-legend__item-copy\"\n [innerHTML]=\"item.description || '' | safeHtml\"\n ></span>\n } @else {\n <span class=\"mapa-report-legend__classification\">\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n @if (item.range) {\n <small>{{ item.range }}</small>\n }\n </span>\n @if (item.description) {\n <span\n class=\"mapa-report-legend__item-copy\"\n [innerHTML]=\"item.description | safeHtml\"\n ></span>\n }\n }\n </li>\n }\n </ul>\n </div>\n </section>\n }\n </div>\n } @else {\n <div class=\"mapa-report-legend__groups\">\n @for (group of groups(); track group.id ?? $index) {\n <section class=\"mapa-report-legend__group\">\n <h3>{{ group.title || directionLabel(group.direction) }}</h3>\n @if (group.description) {\n <div\n class=\"mapa-report-legend__group-description\"\n [innerHTML]=\"group.description | safeHtml\"\n ></div>\n }\n <ul>\n @for (item of group.items; track item.id ?? $index) {\n <li>\n <mapa-classification-tag\n appearance=\"solid\"\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color,\n }\n \"\n />\n <span class=\"mapa-report-legend__item-copy\">\n @if (item.range) {\n <strong>{{ item.range }}</strong>\n }\n @if (item.description) {\n <span [innerHTML]=\"item.description | safeHtml\"></span>\n }\n </span>\n </li>\n }\n </ul>\n </section>\n }\n </div>\n }\n </div>\n</details>\n", styles: ["@charset \"UTF-8\";:host{--mapa-report-accent: #ff560b;--mapa-report-accent-soft: #fff0e9;--mapa-report-surface: #fff;--mapa-report-surface-muted: #eef2f3;--mapa-report-border: #e1e5e7;--mapa-report-text: #263238;--mapa-report-muted: #68747a;--mapa-report-pill-width: 104px;--mapa-report-radius: 8px;--mapa-report-space: 20px;color:var(--mapa-report-text);display:block;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", sans-serif)}.mapa-direction-indicator{background:var(--mapa-report-surface, var(--mapa-color-surface, #fafbfc));border:1px solid currentColor;border-radius:50%;box-sizing:border-box;color:var(--mapa-report-muted, var(--mapa-color-text-subtle, #68747a));display:inline-grid;flex:0 0 20px;font-size:11px;font-weight:700;height:20px;line-height:1;place-items:center;width:20px}.mapa-report-legend{border:1px solid var(--mapa-report-border);border-radius:var(--mapa-report-radius);overflow:clip}.mapa-report-legend summary{background:#f8f9f9;cursor:pointer;font-size:13px;font-weight:650;list-style-position:inside;padding:12px 14px}.mapa-report-legend summary:focus-visible{outline:3px solid rgba(255,86,11,.28);outline-offset:-3px}.mapa-report-legend__content{background:var(--mapa-report-surface-muted);padding:16px}.mapa-report-legend__intro{color:var(--mapa-report-muted);font-size:12px;line-height:1.55;margin:0 0 14px}.mapa-report-legend__intro ::ng-deep ol,.mapa-report-legend__intro ::ng-deep p,.mapa-report-legend__intro ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__intro ::ng-deep ol,.mapa-report-legend__intro ::ng-deep ul{padding-left:20px}.mapa-report-legend__intro ::ng-deep li{margin:0 0 3px}.mapa-report-legend__intro ::ng-deep b,.mapa-report-legend__intro ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__intro ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__groups-title{font-size:14px;margin:0 0 14px}.mapa-report-legend__groups{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.mapa-report-legend__group{min-width:0;background:var(--mapa-report-surface);border:1px solid var(--mapa-report-border);border-radius:6px;padding:12px}.mapa-report-legend__group>h3{font-size:12px;margin:0 0 10px}.mapa-report-legend__group>ul{display:grid;gap:8px;list-style:none;margin:0;padding:0}.mapa-report-legend__group>ul>li{align-items:center;display:grid;gap:10px;grid-template-columns:minmax(0,var(--mapa-classification-width, 86px)) minmax(0,1fr)}.mapa-report-legend__group-description{color:var(--mapa-report-muted);font-size:11px;line-height:1.45;margin:-4px 0 10px}.mapa-report-legend__group-description ::ng-deep ol,.mapa-report-legend__group-description ::ng-deep p,.mapa-report-legend__group-description ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__group-description ::ng-deep ol,.mapa-report-legend__group-description ::ng-deep ul{padding-left:20px}.mapa-report-legend__group-description ::ng-deep li{margin:0 0 3px}.mapa-report-legend__group-description ::ng-deep b,.mapa-report-legend__group-description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__group-description ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__item-copy{min-width:0;overflow-wrap:anywhere;color:var(--mapa-report-muted);display:grid;font-size:11px;gap:2px;line-height:1.35}.mapa-report-legend__item-copy ::ng-deep ol,.mapa-report-legend__item-copy ::ng-deep p,.mapa-report-legend__item-copy ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__item-copy ::ng-deep ol,.mapa-report-legend__item-copy ::ng-deep ul{padding-left:20px}.mapa-report-legend__item-copy ::ng-deep li{margin:0 0 3px}.mapa-report-legend__item-copy ::ng-deep b,.mapa-report-legend__item-copy ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__item-copy ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__item-copy strong{color:var(--mapa-report-text)}.mapa-report-legend--psychosocial{border-radius:12px}.mapa-report-legend--psychosocial summary{align-items:center;display:flex;font-size:14px;justify-content:space-between;list-style:none;padding:16px 18px}.mapa-report-legend--psychosocial summary::-webkit-details-marker{display:none}.mapa-report-legend--psychosocial summary:after{color:#84919a;content:\"\\2304\";font-size:14px;line-height:1}.mapa-report-legend--psychosocial[open] summary:after{content:\"\\2303\"}.mapa-report-legend--psychosocial .mapa-report-legend__content{border-top:1px solid var(--mapa-report-border);padding:20px}.mapa-report-legend--psychosocial .mapa-report-legend__intro{font-size:14px;margin-bottom:18px}.mapa-report-legend--psychosocial .mapa-report-legend__groups{gap:20px}.mapa-report-legend--psychosocial .mapa-report-legend__group{background:transparent;border:0;border-radius:0;display:grid;gap:18px;min-width:0;padding:0}.mapa-report-legend--psychosocial .mapa-report-legend__direction{display:grid;gap:9px}.mapa-report-legend--psychosocial .mapa-report-legend__direction h3{align-items:center;display:flex;font-size:14px;gap:8px;margin:0}.mapa-report-legend--psychosocial .mapa-report-legend__direction .mapa-report-legend__group-description{color:var(--mapa-report-muted);font-size:12px;line-height:1.5;margin:0}.mapa-report-legend--psychosocial .mapa-report-legend__table{background:var(--mapa-report-surface);border:1px solid var(--mapa-report-border);border-radius:10px;overflow:hidden}.mapa-report-legend--psychosocial .mapa-report-legend__table ul{display:grid;list-style:none;margin:0;padding:0}.mapa-report-legend--psychosocial .mapa-report-legend__table li{align-items:center;display:grid;gap:12px;grid-template-columns:max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr);min-height:38px;padding:8px 11px}.mapa-report-legend--psychosocial .mapa-report-legend__table li+li{border-top:1px solid var(--mapa-report-border)}.mapa-report-legend--psychosocial .mapa-report-legend__columns{background:#f3f5f6;color:#84919a;display:grid;font-size:9px;font-weight:800;gap:12px;grid-template-columns:max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr);letter-spacing:.04em;padding:10px 11px 8px;text-transform:uppercase}.mapa-report-legend--psychosocial .mapa-report-legend__classification{align-items:center;display:grid;font-size:11px;gap:2px 7px;grid-template-columns:minmax(0,1fr);justify-items:start;min-width:0}.mapa-report-legend--psychosocial .mapa-report-legend__classification strong{color:var(--mapa-report-text)}.mapa-report-legend--psychosocial .mapa-report-legend__classification small{color:var(--mapa-report-muted);grid-column:1}.mapa-report-legend--psychosocial .mapa-report-legend__item-copy{display:block}@media(max-width:760px){.mapa-report-legend__groups{grid-template-columns:1fr}.mapa-report-legend__group>ul>li{align-items:start;grid-template-columns:1fr}.mapa-report-legend--psychosocial .mapa-report-legend__content{padding:16px}.mapa-report-legend--psychosocial .mapa-report-legend__columns{display:none}.mapa-report-legend--psychosocial .mapa-report-legend__table li{align-items:start;grid-template-columns:minmax(0,1fr)}}.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value{grid-column:1/-1}.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value .mapa-report-legend__columns,.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value .mapa-report-legend__table li{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference{grid-column:1/-1}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__columns,.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__table li{display:grid;grid-template-columns:minmax(80px,140px) max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr)}@media(max-width:760px){.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__columns{display:none}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__table li{grid-template-columns:minmax(0,1fr)}}\n"] }]
|
|
9911
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<details\n class=\"mapa-report-legend\"\n mapaClassificationWidthGroup\n [classificationLabels]=\"widthLabels()\"\n [class.mapa-report-legend--psychosocial]=\"appearance() === 'psychosocial'\"\n [open]=\"expanded()\"\n>\n <summary>{{ title() || i18n.texts.report.readingInformationTitle }}</summary>\n <div class=\"mapa-report-legend__content\">\n @if (intro()) {\n <div\n class=\"mapa-report-legend__intro\"\n [innerHTML]=\"intro() | safeHtml\"\n ></div>\n }\n\n @if (groupsTitle()) {\n <h3 class=\"mapa-report-legend__groups-title\">{{ groupsTitle() }}</h3>\n }\n\n @if (appearance() === \"psychosocial\") {\n <div class=\"mapa-report-legend__groups\">\n @for (group of groups(); track group.id ?? $index) {\n <section\n class=\"mapa-report-legend__group\"\n [class.mapa-report-legend__group--name-value]=\"\n group.layout === 'name-value'\n \"\n [class.mapa-report-legend__group--reference]=\"\n group.layout === 'reference'\n \"\n [class.mapa-report-legend__group--ranged]=\"\n group.layout !== 'reference' && hasRangeColumn(group)\n \"\n >\n <div class=\"mapa-report-legend__direction\">\n <h3>\n @if (group.direction) {\n <span class=\"mapa-direction-indicator\" aria-hidden=\"true\">{{\n directionArrow(group.direction)\n }}</span>\n }\n {{ group.title || directionLabel(group.direction) }}\n </h3>\n @if (group.description) {\n <div\n class=\"mapa-report-legend__group-description\"\n [innerHTML]=\"group.description | safeHtml\"\n ></div>\n }\n </div>\n <div class=\"mapa-report-legend__table\">\n <div class=\"mapa-report-legend__columns\" aria-hidden=\"true\">\n @for (label of columnLabels(group); track $index) {\n <span>{{ label }}</span>\n }\n </div>\n <ul>\n @for (item of group.items; track item.id ?? $index) {\n <li>\n @if (group.layout === \"name-value\") {\n <span class=\"mapa-report-legend__item-copy\">{{\n item.label\n }}</span>\n <span class=\"mapa-report-legend__item-copy\">{{\n item.range\n }}</span>\n } @else if (hasRangeColumn(group)) {\n <span class=\"mapa-report-legend__item-copy\">{{\n item.range\n }}</span>\n <span class=\"mapa-report-legend__classification\">\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n </span>\n <span\n class=\"mapa-report-legend__item-copy\"\n [innerHTML]=\"item.description || '' | safeHtml\"\n ></span>\n } @else {\n <span class=\"mapa-report-legend__classification\">\n <mapa-classification-tag\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color || '#eef2f3',\n }\n \"\n />\n </span>\n @if (item.description) {\n <span\n class=\"mapa-report-legend__item-copy\"\n [innerHTML]=\"item.description | safeHtml\"\n ></span>\n }\n }\n </li>\n }\n </ul>\n </div>\n </section>\n }\n </div>\n } @else {\n <div class=\"mapa-report-legend__groups\">\n @for (group of groups(); track group.id ?? $index) {\n <section class=\"mapa-report-legend__group\">\n <h3>{{ group.title || directionLabel(group.direction) }}</h3>\n @if (group.description) {\n <div\n class=\"mapa-report-legend__group-description\"\n [innerHTML]=\"group.description | safeHtml\"\n ></div>\n }\n <ul>\n @for (item of group.items; track item.id ?? $index) {\n <li>\n <mapa-classification-tag\n appearance=\"solid\"\n [classification]=\"\n item.classification || {\n classificationName: item.label,\n classificationColor: item.color,\n }\n \"\n />\n <span class=\"mapa-report-legend__item-copy\">\n @if (item.range) {\n <strong>{{ item.range }}</strong>\n }\n @if (item.description) {\n <span [innerHTML]=\"item.description | safeHtml\"></span>\n }\n </span>\n </li>\n }\n </ul>\n </section>\n }\n </div>\n }\n </div>\n</details>\n", styles: ["@charset \"UTF-8\";:host{--mapa-report-accent: #ff560b;--mapa-report-accent-soft: #fff0e9;--mapa-report-surface: #fff;--mapa-report-surface-muted: #eef2f3;--mapa-report-border: #e1e5e7;--mapa-report-text: #263238;--mapa-report-muted: #68747a;--mapa-report-pill-width: 104px;--mapa-report-radius: 8px;--mapa-report-space: 20px;color:var(--mapa-report-text);display:block;font-family:var(--mapa-font-body, \"Asap\", \"Roboto\", sans-serif)}.mapa-direction-indicator{background:var(--mapa-report-surface, var(--mapa-color-surface, #fafbfc));border:1px solid currentColor;border-radius:50%;box-sizing:border-box;color:var(--mapa-report-muted, var(--mapa-color-text-subtle, #68747a));display:inline-grid;flex:0 0 20px;font-size:11px;font-weight:700;height:20px;line-height:1;place-items:center;width:20px}.mapa-report-legend{border:1px solid var(--mapa-report-border);border-radius:var(--mapa-report-radius);overflow:clip}.mapa-report-legend summary{background:#f8f9f9;cursor:pointer;font-size:13px;font-weight:650;list-style-position:inside;padding:12px 14px}.mapa-report-legend summary:focus-visible{outline:3px solid rgba(255,86,11,.28);outline-offset:-3px}.mapa-report-legend__content{background:var(--mapa-report-surface-muted);padding:16px}.mapa-report-legend__intro{color:var(--mapa-report-muted);font-size:12px;line-height:1.55;margin:0 0 14px}.mapa-report-legend__intro ::ng-deep ol,.mapa-report-legend__intro ::ng-deep p,.mapa-report-legend__intro ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__intro ::ng-deep ol,.mapa-report-legend__intro ::ng-deep ul{padding-left:20px}.mapa-report-legend__intro ::ng-deep li{margin:0 0 3px}.mapa-report-legend__intro ::ng-deep b,.mapa-report-legend__intro ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__intro ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__groups-title{font-size:14px;margin:0 0 14px}.mapa-report-legend__groups{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.mapa-report-legend__group{min-width:0;background:var(--mapa-report-surface);border:1px solid var(--mapa-report-border);border-radius:6px;padding:12px}.mapa-report-legend__group>h3{font-size:12px;margin:0 0 10px}.mapa-report-legend__group>ul{display:grid;gap:8px;list-style:none;margin:0;padding:0}.mapa-report-legend__group>ul>li{align-items:center;display:grid;gap:10px;grid-template-columns:minmax(0,var(--mapa-classification-width, 86px)) minmax(0,1fr)}.mapa-report-legend__group-description{color:var(--mapa-report-muted);font-size:11px;line-height:1.45;margin:-4px 0 10px}.mapa-report-legend__group-description ::ng-deep ol,.mapa-report-legend__group-description ::ng-deep p,.mapa-report-legend__group-description ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__group-description ::ng-deep ol,.mapa-report-legend__group-description ::ng-deep ul{padding-left:20px}.mapa-report-legend__group-description ::ng-deep li{margin:0 0 3px}.mapa-report-legend__group-description ::ng-deep b,.mapa-report-legend__group-description ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__group-description ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__item-copy{min-width:0;overflow-wrap:anywhere;color:var(--mapa-report-muted);display:grid;font-size:11px;gap:2px;line-height:1.35}.mapa-report-legend__item-copy ::ng-deep ol,.mapa-report-legend__item-copy ::ng-deep p,.mapa-report-legend__item-copy ::ng-deep ul{margin:0 0 8px}.mapa-report-legend__item-copy ::ng-deep ol,.mapa-report-legend__item-copy ::ng-deep ul{padding-left:20px}.mapa-report-legend__item-copy ::ng-deep li{margin:0 0 3px}.mapa-report-legend__item-copy ::ng-deep b,.mapa-report-legend__item-copy ::ng-deep strong{color:var(--mapa-report-text, inherit);font-weight:600}.mapa-report-legend__item-copy ::ng-deep :last-child{margin-bottom:0}.mapa-report-legend__item-copy strong{color:var(--mapa-report-text)}.mapa-report-legend--psychosocial{border-radius:12px}.mapa-report-legend--psychosocial summary{align-items:center;display:flex;font-size:14px;justify-content:space-between;list-style:none;padding:16px 18px}.mapa-report-legend--psychosocial summary::-webkit-details-marker{display:none}.mapa-report-legend--psychosocial summary:after{color:#84919a;content:\"\\2304\";font-size:14px;line-height:1}.mapa-report-legend--psychosocial[open] summary:after{content:\"\\2303\"}.mapa-report-legend--psychosocial .mapa-report-legend__content{border-top:1px solid var(--mapa-report-border);padding:20px}.mapa-report-legend--psychosocial .mapa-report-legend__intro{font-size:14px;margin-bottom:18px}.mapa-report-legend--psychosocial .mapa-report-legend__groups{gap:20px}.mapa-report-legend--psychosocial .mapa-report-legend__group{background:transparent;border:0;border-radius:0;display:grid;gap:18px;min-width:0;padding:0}.mapa-report-legend--psychosocial .mapa-report-legend__direction{display:grid;gap:9px}.mapa-report-legend--psychosocial .mapa-report-legend__direction h3{align-items:center;display:flex;font-size:14px;gap:8px;margin:0}.mapa-report-legend--psychosocial .mapa-report-legend__direction .mapa-report-legend__group-description{color:var(--mapa-report-muted);font-size:12px;line-height:1.5;margin:0}.mapa-report-legend--psychosocial .mapa-report-legend__table{background:var(--mapa-report-surface);border:1px solid var(--mapa-report-border);border-radius:10px;overflow:hidden}.mapa-report-legend--psychosocial .mapa-report-legend__table ul{display:grid;list-style:none;margin:0;padding:0}.mapa-report-legend--psychosocial .mapa-report-legend__table li{align-items:center;display:grid;gap:12px;grid-template-columns:max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr);min-height:38px;padding:8px 11px}.mapa-report-legend--psychosocial .mapa-report-legend__table li+li{border-top:1px solid var(--mapa-report-border)}.mapa-report-legend--psychosocial .mapa-report-legend__columns{background:#f3f5f6;color:#84919a;display:grid;font-size:9px;font-weight:800;gap:12px;grid-template-columns:max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr);letter-spacing:.04em;padding:10px 11px 8px;text-transform:uppercase}.mapa-report-legend--psychosocial .mapa-report-legend__classification{align-items:center;display:grid;font-size:11px;gap:2px 7px;grid-template-columns:minmax(0,1fr);justify-items:start;min-width:0}.mapa-report-legend--psychosocial .mapa-report-legend__classification strong{color:var(--mapa-report-text)}.mapa-report-legend--psychosocial .mapa-report-legend__classification small{color:var(--mapa-report-muted);grid-column:1}.mapa-report-legend--psychosocial .mapa-report-legend__item-copy{display:block}@media(max-width:760px){.mapa-report-legend__groups{grid-template-columns:1fr}.mapa-report-legend__group>ul>li{align-items:start;grid-template-columns:1fr}.mapa-report-legend--psychosocial .mapa-report-legend__content{padding:16px}.mapa-report-legend--psychosocial .mapa-report-legend__columns{display:none}.mapa-report-legend--psychosocial .mapa-report-legend__table li{align-items:start;grid-template-columns:minmax(0,1fr)}}.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value{grid-column:1/-1}.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value .mapa-report-legend__columns,.mapa-report-legend--psychosocial .mapa-report-legend__group--name-value .mapa-report-legend__table li{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference{grid-column:1/-1}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__columns,.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__table li{display:grid;grid-template-columns:minmax(80px,140px) max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr)}.mapa-report-legend--psychosocial .mapa-report-legend__group--ranged .mapa-report-legend__columns,.mapa-report-legend--psychosocial .mapa-report-legend__group--ranged .mapa-report-legend__table li{grid-template-columns:minmax(72px,96px) max(100px,var(--mapa-classification-width, 100px)) minmax(0,1fr)}@media(max-width:760px){.mapa-report-legend--psychosocial .mapa-report-legend__group--ranged .mapa-report-legend__table li{grid-template-columns:minmax(0,1fr)}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__columns{display:none}.mapa-report-legend--psychosocial .mapa-report-legend__group--reference .mapa-report-legend__table li{grid-template-columns:minmax(0,1fr)}}\n"] }]
|
|
9854
9912
|
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], intro: [{ type: i0.Input, args: [{ isSignal: true, alias: "intro", required: false }] }], groupsTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "groupsTitle", required: false }] }], groups: [{ type: i0.Input, args: [{ isSignal: true, alias: "groups", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }] } });
|
|
9855
9913
|
|
|
9856
9914
|
class ReportIndicatorsContent {
|