mapa-library-ui 2.10.0 → 2.11.0

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/index.d.ts CHANGED
@@ -460,6 +460,16 @@ interface MapaReportRankingView {
460
460
  icon?: string;
461
461
  entries: MapaReportRankingEntry[];
462
462
  }
463
+ /**
464
+ * Optional second switch of the ranking widget (e.g. scales / factors). The
465
+ * host owns the data: it rebuilds `views` when the level changes.
466
+ */
467
+ interface MapaReportRankingLevel {
468
+ id: string;
469
+ label: string;
470
+ /** Material icon ligature for the level switch. */
471
+ icon?: string;
472
+ }
463
473
 
464
474
  interface TableColumnStatus {
465
475
  label?: string[];
@@ -2350,7 +2360,11 @@ declare abstract class ReportGroupProfileContent {
2350
2360
  readonly palette: i0.InputSignal<MapaReportPalette>;
2351
2361
  readonly showAverage: i0.InputSignal<boolean>;
2352
2362
  readonly showLegend: i0.InputSignal<boolean>;
2353
- /** Overrides the legend derived from the slice classifications. */
2363
+ /**
2364
+ * Replaces the legend derived from the slice classifications. Pass the
2365
+ * GenerateReport captions in the order they were returned: that order is
2366
+ * kept, and captions no slice draws are left out.
2367
+ */
2354
2368
  readonly legend: i0.InputSignal<MapaReportLegendItem[] | undefined>;
2355
2369
  /** Overrides the caption above each pill; defaults to the i18n text. */
2356
2370
  readonly distributionLabel: i0.InputSignal<string | undefined>;
@@ -2364,6 +2378,13 @@ declare abstract class ReportGroupProfileContent {
2364
2378
  /** The track only takes whole percentages; the caption keeps the precision. */
2365
2379
  protected readonly averageText: i0.Signal<string>;
2366
2380
  protected readonly legendItems: i0.Signal<MapaReportLegendItem[]>;
2381
+ /**
2382
+ * Keeps the caller's order (the captions returned by GenerateReport) and
2383
+ * drops what no slice draws. If nothing matches, the slices carry no
2384
+ * identity the captions can be matched against, so the list stays whole.
2385
+ */
2386
+ private drawnCaptions;
2387
+ private captionMatches;
2367
2388
  /** Zero-width slices would still cost a pill seam, so they are dropped. */
2368
2389
  protected slices(dimension: MapaReportGroupProfileDimension): MapaReportGroupProfileSlice[];
2369
2390
  private legacyOrder;
@@ -2388,7 +2409,7 @@ declare abstract class ReportGroupProfileContent {
2388
2409
  declare class MapaReportGroupProfileWidgetComponent extends ReportGroupProfileContent {
2389
2410
  readonly heading: i0.InputSignal<MapaReportHeading | undefined>;
2390
2411
  static ɵfac: i0.ɵɵFactoryDeclaration<MapaReportGroupProfileWidgetComponent, never>;
2391
- static ɵcmp: i0.ɵɵComponentDeclaration<MapaReportGroupProfileWidgetComponent, "mapa-report-group-profile-widget", never, { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; }, {}, never, ["[mapaReportGroupProfileFilters]"], true, never>;
2412
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaReportGroupProfileWidgetComponent, "mapa-report-group-profile-widget", never, { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; }, {}, never, ["[mapaReportGroupProfileAction]", "[mapaReportGroupProfileFilters]"], true, never>;
2392
2413
  }
2393
2414
 
2394
2415
  /** Full profile, using exactly the same scales and distribution as the summary. */
@@ -2685,6 +2706,15 @@ declare class MapaReportRankingTableWidgetComponent {
2685
2706
  readonly views: i0.InputSignal<MapaReportRankingView[]>;
2686
2707
  /** Id of the active view; two-way so the host can drive or observe it. */
2687
2708
  readonly view: i0.ModelSignal<string | undefined>;
2709
+ /**
2710
+ * Optional second switch, shown before the views switch (e.g. scales /
2711
+ * factors). The host rebuilds `views` when the active level changes.
2712
+ */
2713
+ readonly levels: i0.InputSignal<MapaReportRankingLevel[]>;
2714
+ /** Id of the active level; two-way so the host can drive or observe it. */
2715
+ readonly level: i0.ModelSignal<string | undefined>;
2716
+ /** Accessible name of the level switch. */
2717
+ readonly levelsLabel: i0.InputSignal<string | undefined>;
2688
2718
  readonly palette: i0.InputSignal<MapaReportPalette>;
2689
2719
  readonly showAverage: i0.InputSignal<boolean>;
2690
2720
  readonly cellDisplay: i0.InputSignal<"classification" | "classified-value">;
@@ -2700,9 +2730,11 @@ declare class MapaReportRankingTableWidgetComponent {
2700
2730
  protected readonly sort: i0.WritableSignal<DataTableSortChange>;
2701
2731
  protected readonly visibleViews: i0.Signal<MapaReportRankingView[]>;
2702
2732
  protected readonly activeView: i0.Signal<MapaReportRankingView | undefined>;
2733
+ protected readonly activeLevel: i0.Signal<string | undefined>;
2703
2734
  protected selectView(id: string): void;
2735
+ protected selectLevel(id: string): void;
2704
2736
  static ɵfac: i0.ɵɵFactoryDeclaration<MapaReportRankingTableWidgetComponent, never>;
2705
- static ɵcmp: i0.ɵɵComponentDeclaration<MapaReportRankingTableWidgetComponent, "mapa-report-ranking-table-widget", never, { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "views": { "alias": "views"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "showAverage": { "alias": "showAverage"; "required": false; "isSignal": true; }; "cellDisplay": { "alias": "cellDisplay"; "required": false; "isSignal": true; }; "entryColumnLabel": { "alias": "entryColumnLabel"; "required": false; "isSignal": true; }; "note": { "alias": "note"; "required": false; "isSignal": true; }; "averageLabel": { "alias": "averageLabel"; "required": false; "isSignal": true; }; "exportLabel": { "alias": "exportLabel"; "required": false; "isSignal": true; }; "exporting": { "alias": "exporting"; "required": false; "isSignal": true; }; }, { "view": "viewChange"; "exportRequested": "exportRequested"; }, never, ["[mapaReportRankingLegend]"], true, never>;
2737
+ static ɵcmp: i0.ɵɵComponentDeclaration<MapaReportRankingTableWidgetComponent, "mapa-report-ranking-table-widget", never, { "heading": { "alias": "heading"; "required": false; "isSignal": true; }; "views": { "alias": "views"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "levels": { "alias": "levels"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "levelsLabel": { "alias": "levelsLabel"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "showAverage": { "alias": "showAverage"; "required": false; "isSignal": true; }; "cellDisplay": { "alias": "cellDisplay"; "required": false; "isSignal": true; }; "entryColumnLabel": { "alias": "entryColumnLabel"; "required": false; "isSignal": true; }; "note": { "alias": "note"; "required": false; "isSignal": true; }; "averageLabel": { "alias": "averageLabel"; "required": false; "isSignal": true; }; "exportLabel": { "alias": "exportLabel"; "required": false; "isSignal": true; }; "exporting": { "alias": "exporting"; "required": false; "isSignal": true; }; }, { "view": "viewChange"; "level": "levelChange"; "exportRequested": "exportRequested"; }, never, ["[mapaReportRankingLegend]", "[mapaReportRankingFooter]"], true, never>;
2706
2738
  }
2707
2739
 
2708
2740
  interface RankingRow extends Record<string, unknown> {
@@ -3024,4 +3056,4 @@ declare class MapaScaleParameterizationComponent {
3024
3056
  }
3025
3057
 
3026
3058
  export { AIH_ESTADOS, AIH_TIPOS, BubblePaginationDirective, ButtonComponent, ButtonIconComponent, CEPRange, CID_NAME, CID_REGEX, CORES, CPFPipe, CapabilityClassificationService, CheckboxComponent, Datepicker, DatepickerRange, Dropdown, DropdownTree, ESTADOS, ESTADOS_SIGLA, ElementBase, FiltersComponent, HtmlSanitizerService, IPTUCREATE, IPTUMASKS, IPTUVALIDATE, IconComponent, InputText, LOCALIZACAO_BAIRROS, LOCALIZACAO_CIDADES, LOCALIZACAO_COMPLEMENTOS, LOCALIZACAO_ESTADOS, LOCALIZACAO_LOGRADOUROS, LOCALIZACAO_RUAS, LocaleDatePipe, LocaleDateTimePipe, MAPA_UI_TEXTS, MASKSIE, MapaBenchmarkChartComponent, MapaBenchmarkIndicatorComponent, MapaBreadcrumbComponent, MapaCapabilityComparativeChartComponent, MapaCapabilityComparativeComponent, MapaCapabilityComparativeHeaderComponent, MapaCapabilityDetailComponent, MapaCapabilityDotComponent, MapaCapabilityExpandComponent, MapaCapabilityIndicatorChartComponent, MapaCapabilityIndicatorComponent, MapaCapabilityIndicatorListComponent, MapaCapabilityIntervalBarComponent, MapaCapabilityIntervalComponent, MapaChartComponent, MapaClassificationTagComponent, MapaConclusionCardComponent, MapaDateLocaleService, MapaDatepicker, MapaDatepicker as MapaDatepickerRange, MapaDetailsComponent, MapaDialogComponent, MapaDropdownComponent, MapaDropdownTreeComponent, MapaEmptyStateComponent, MapaFormComponent, MapaFormErrorsComponent, MapaGroupReportComponent, MapaI18nService, MapaInputComponent, MapaMaskAutofillSyncDirective, MapaMenuComponent, MapaNavListComponent, MapaProgressbarComponent, MapaReportGroupProfileDetailComponent, MapaReportGroupProfileWidgetAverageComponent, MapaReportGroupProfileWidgetComponent, MapaReportGroupProfileWidgetDistributionComponent, MapaReportIndicatorsWidgetChartComponent, MapaReportIndicatorsWidgetComponent, MapaReportIndicatorsWidgetDetailedComponent, MapaReportIndicatorsWidgetListComponent, MapaReportLegendComponent, MapaReportParameterizationWidgetComponent, MapaReportParameterizationWidgetDetailedComponent, MapaReportParameterizationWidgetOverviewComponent, MapaReportParameterizationWidgetRankingComponent, MapaReportParameterizationWidgetSummarizedComponent, MapaReportPointsWidgetComponent, MapaReportPointsWidgetDetailedComponent, MapaReportPointsWidgetSummarizedComponent, MapaReportPsychosocialWidgetComponent, MapaReportPsychosocialWidgetFactorsComponent, MapaReportPsychosocialWidgetGlobalComponent, MapaReportRankingTableContentComponent, MapaReportRankingTableWidgetComponent, MapaReportScaleWidgetComponent, MapaReportScaleWidgetDetailedComponent, MapaReportScaleWidgetSummarizedComponent, MapaReportSocioemotionalWidgetCompetenciesComponent, MapaReportSocioemotionalWidgetComponent, MapaReportSocioemotionalWidgetVulnerabilitiesComponent, MapaResultTrackComponent, MapaScaleComponent, MapaScaleParameterizationComponent, MapaSvgIconComponent, MapaTableCellDirective, MapaTableComponent, MapaTextareaComponent, MapaTooltipComponent, MapaTooltipDirective, MapaWarningComponent, MatInputAutosizeDirective, PLACAS_INVALID, PLACAS_RANGE, RadioButton, RadioButtonComponent, ReportItemComponent, SafeHtmlPipe, SlideToggle, SlideToggleComponent, TagComponent, Textarea, ValidationMessageResolverService, addDays, addMonthsToDateValue, allNumbersAreSame, buildDetailedIndicatorSections, buildIndicatorCollections, cep_ranges, create_aih, create_cartaocredito, create_certidao, create_cnh, create_cnhespelho, create_cnpj, create_cns, create_cpf, create_ect, create_iptu, create_iptu_ctba, create_iptu_sp, create_pispasep, create_processo, create_renachestadual, create_renachseguranca, create_renavam, create_titulo, create_titulo_atual, creditCardValidator, currencyToNumber, customPaginatorFactory, faker_iptu, fillString, formatBrazilianDate, formatDateAsDayMonthYear, formatDateAsMonthDayYear, formatDateByLanguage, formatDateForLocale, formatDateTimeByLanguage, formatDateValue, formatLocaleDate, formatLocaleDateTime, generateInscricaoEstadual, getActiveDateFormat, getActiveDateLocale, getAllDigits, getAllWords, getDateFormatByLanguage, getDateInputMask, getDateTimeFormatByLanguage, getDayOfMonthFromDateValue, getDefaultDateRange, getRelativeDateRange, getSpecialProperty, getYearFromDateValue, isAfterDateValue, isArray, isDateValue, isMonthFirstDateLocale, isNil, isNumber, isPresent, isString, isValidDateByLanguage, isValidDateValue, makeGenericFaker, maskBr, mask_iptu, mergeMapaUiTexts, modulo11, modulo11Custom, modulo11a, normalizeDateInput, normalizeDateLocale, normalizeLookup, normalizeText, numberToCurrency, openDialog, parseBrazilianDate, parseDateByLanguage, parseDateFieldValue, parseDateValue, parseDateValueFns, parseLocaleDateValue, processCaretTraps, provideMapaUiTexts, rand, randArray, randomEstadoSigla, randomLetter, randomLetterOrNumber, randomNumber, reformatDateStringForLanguage, rg_rj, rg_sp, sanitizeHtmlContent, setTimeOnDateValue, slugify, toDatepickerLocale, toIsoDateByLanguage, toIsoDateByLanguageWithUtcTime, toIsoDateValue, toIsoDateValueWithTime, toIsoDateValueWithUtcTime, toUtcDayExclusiveEndIso, toUtcRangeEndIso, toUtcRangeStartIso, utilsBr, validateBr, validate_aih, validate_cartaocredito, validate_celular, validate_cep, validate_certidao, validate_chassi, validate_cnh, validate_cnhespelho, validate_cnpj, validate_cns, validate_cpf, validate_currency, validate_datahora, validate_datetime, validate_ect, validate_inscricaoestadual, validate_iptu, validate_iptu_contagem, validate_iptu_ctba, validate_iptu_sp, validate_number, validate_pispasep, validate_placa, validate_porcentagem, validate_processo, validate_renachestadual, validate_renachseguranca, validate_renavam, validate_rg, validate_sped, validate_telefone, validate_time, validate_titulo };
3027
- export type { ActionButton, Benchmark, BenchmarkMark, BenchmarkingChart, Classification as BenchmarkingClassification, BigObject, Breadpiece, ButtonIcon, Candidate, Capability, CapabilityClassification, CapabilityComparative, CapabilityItem, ChartOptions, Classification$1 as Classification, Competence$1 as Competence, DataNode, DataTableAlignment, DataTableColumn, DataTablePageChange, DataTableSelectionChange, DataTableSortChange, DataTableSortDirection, DateFormatPattern, DateInput$1 as DateInput, DateTimeFormatPattern, DatepickerLocale, DatepickerMode, DatepickerOptions, DatepickerPreset, DetailedIndicatorItem, DetailedIndicatorSection, DialogData, Dimension$1 as Dimension, ElementOption, ElementSearch, ElementTreeNode, Errors, EstadosType, EvaluationBenchmarkResult, Dimension$2 as GroupReportDimension, GroupReportItem, IndicatorCollectionOptions, IndicatorCollections, Indicators, LocaleDateStyle, LowReliabilityReport, MapaConclusionCardData, MapaConclusionCardVariant, MapaConclusionMetadata, MapaDateFormat, MapaDateLocale, MapaDatepickerControlValue, MapaDatepickerPresetEntry, MapaDatepickerRangeComponent, MapaDatepickerRangeControlValue, MapaDatepickerRangeFormGroup, MapaDatepickerRangeValue, MapaReportDimension, MapaReportDirection, MapaReportFinalClassification, MapaReportGroupProfileData, MapaReportGroupProfileDimension, MapaReportGroupProfileSlice, MapaReportHeading, MapaReportIndicator, MapaReportIndicatorGroup, MapaReportIndicatorsViewMode, MapaReportLegendData, MapaReportLegendGroup, MapaReportLegendItem, MapaReportMetadata, MapaReportPalette, MapaReportParameterizationCompetence, MapaReportParameterizationData, MapaReportParameterizationSection, MapaReportParameterizationViewMode, MapaReportPointsData, MapaReportPointsViewMode, MapaReportPsychosocialData, MapaReportRankingDimension, MapaReportRankingEntry, MapaReportRankingView, MapaReportScale, MapaReportScaleGroup, MapaReportScaleViewMode, MapaReportSocioemotionalCompetence, MapaReportSocioemotionalData, MapaResultTrackAppearance, MapaResultTrackStyle, MapaTableCellContext, MapaUiTexts, MaskType, Masks, MasksIE, MenuActionEvent, MenuActionItem, MenuItem, ProgressBar$1 as ProgressBar, ReportItem, ReportItemMenuItem, RowClickEvent, Scale$1 as Scale, Competence as ScaleParameterizationCompetence, Dimension as ScaleParameterizationDimension, ProgressBar as ScaleParameterizationProgressBar, Scale as ScaleParameterizationScale, SelectedTableRow, Status, TableCellStyleClass, TableColumn, TableColumnStatus, TableEmptyState, TableRowData, TableStatus, Tag, ValidationMessageContext };
3059
+ export type { ActionButton, Benchmark, BenchmarkMark, BenchmarkingChart, Classification as BenchmarkingClassification, BigObject, Breadpiece, ButtonIcon, Candidate, Capability, CapabilityClassification, CapabilityComparative, CapabilityItem, ChartOptions, Classification$1 as Classification, Competence$1 as Competence, DataNode, DataTableAlignment, DataTableColumn, DataTablePageChange, DataTableSelectionChange, DataTableSortChange, DataTableSortDirection, DateFormatPattern, DateInput$1 as DateInput, DateTimeFormatPattern, DatepickerLocale, DatepickerMode, DatepickerOptions, DatepickerPreset, DetailedIndicatorItem, DetailedIndicatorSection, DialogData, Dimension$1 as Dimension, ElementOption, ElementSearch, ElementTreeNode, Errors, EstadosType, EvaluationBenchmarkResult, Dimension$2 as GroupReportDimension, GroupReportItem, IndicatorCollectionOptions, IndicatorCollections, Indicators, LocaleDateStyle, LowReliabilityReport, MapaConclusionCardData, MapaConclusionCardVariant, MapaConclusionMetadata, MapaDateFormat, MapaDateLocale, MapaDatepickerControlValue, MapaDatepickerPresetEntry, MapaDatepickerRangeComponent, MapaDatepickerRangeControlValue, MapaDatepickerRangeFormGroup, MapaDatepickerRangeValue, MapaReportDimension, MapaReportDirection, MapaReportFinalClassification, MapaReportGroupProfileData, MapaReportGroupProfileDimension, MapaReportGroupProfileSlice, MapaReportHeading, MapaReportIndicator, MapaReportIndicatorGroup, MapaReportIndicatorsViewMode, MapaReportLegendData, MapaReportLegendGroup, MapaReportLegendItem, MapaReportMetadata, MapaReportPalette, MapaReportParameterizationCompetence, MapaReportParameterizationData, MapaReportParameterizationSection, MapaReportParameterizationViewMode, MapaReportPointsData, MapaReportPointsViewMode, MapaReportPsychosocialData, MapaReportRankingDimension, MapaReportRankingEntry, MapaReportRankingLevel, MapaReportRankingView, MapaReportScale, MapaReportScaleGroup, MapaReportScaleViewMode, MapaReportSocioemotionalCompetence, MapaReportSocioemotionalData, MapaResultTrackAppearance, MapaResultTrackStyle, MapaTableCellContext, MapaUiTexts, MaskType, Masks, MasksIE, MenuActionEvent, MenuActionItem, MenuItem, ProgressBar$1 as ProgressBar, ReportItem, ReportItemMenuItem, RowClickEvent, Scale$1 as Scale, Competence as ScaleParameterizationCompetence, Dimension as ScaleParameterizationDimension, ProgressBar as ScaleParameterizationProgressBar, Scale as ScaleParameterizationScale, SelectedTableRow, Status, TableCellStyleClass, TableColumn, TableColumnStatus, TableEmptyState, TableRowData, TableStatus, Tag, ValidationMessageContext };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapa-library-ui",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^20.3.0",
6
6
  "@angular/cdk": "^20.2.0",
@@ -11,7 +11,7 @@
11
11
  "@angular/material": "^20.2.0",
12
12
  "@angular/router": "^20.3.0",
13
13
  "apexcharts": "^5.10.3",
14
- "mapa-frontend-i18n": "^2.7.0",
14
+ "mapa-frontend-i18n": "^2.8.0",
15
15
  "ng-apexcharts": "^2.3.0",
16
16
  "ngx-mask": "^20.0.3",
17
17
  "ngx-mat-select-search": "^8.0.4",
Binary file