mapa-library-ui 2.1.0 → 2.1.2
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-group-report.mjs +1287 -32
- package/fesm2022/mapa-library-ui-src-lib-components-group-report.mjs.map +1 -1
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs +2 -2
- package/fesm2022/mapa-library-ui-src-lib-components-table.mjs.map +1 -1
- package/fesm2022/mapa-library-ui.mjs +465 -462
- package/fesm2022/mapa-library-ui.mjs.map +1 -1
- package/index.d.ts +177 -179
- package/mapa-library-ui-2.1.2.tgz +0 -0
- package/package.json +1 -1
- package/src/lib/components/group-report/index.d.ts +12 -8
- package/src/lib/components/scale-parameterization/index.d.ts +17 -17
- package/mapa-library-ui-2.1.0.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -15,12 +15,11 @@ import { MatAccordion } from '@angular/material/expansion';
|
|
|
15
15
|
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
16
16
|
import { DatepickerValue } from 'ngxsmk-datepicker';
|
|
17
17
|
import { MatDialogRef, MatDialog, MatDialogConfig } from '@angular/material/dialog';
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { MatIconRegistry } from '@angular/material/icon';
|
|
18
|
+
import { SortDirection, Sort } from '@angular/material/sort';
|
|
19
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
21
20
|
import { MatMenuTrigger } from '@angular/material/menu';
|
|
21
|
+
import { MatIconRegistry } from '@angular/material/icon';
|
|
22
22
|
import { HttpClient } from '@angular/common/http';
|
|
23
|
-
import { SelectionModel } from '@angular/cdk/collections';
|
|
24
23
|
|
|
25
24
|
interface ElementSearch {
|
|
26
25
|
placeholder?: string;
|
|
@@ -1713,6 +1712,176 @@ declare class MapaFormComponent {
|
|
|
1713
1712
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaFormComponent, "mapa-form", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "elements": { "alias": "elements"; "required": false; }; }, { "emitter": "emitter"; }, never, never, true, never>;
|
|
1714
1713
|
}
|
|
1715
1714
|
|
|
1715
|
+
declare function customPaginatorFactory(i18n: MapaI18nService, injector: Injector): MatPaginatorIntl;
|
|
1716
|
+
|
|
1717
|
+
interface MenuItem extends MenuActionItem {
|
|
1718
|
+
}
|
|
1719
|
+
declare class MapaMenuComponent {
|
|
1720
|
+
items: MenuItem[];
|
|
1721
|
+
data?: unknown;
|
|
1722
|
+
emitMenu: EventEmitter<MenuActionEvent<unknown>>;
|
|
1723
|
+
trigger: MatMenuTrigger;
|
|
1724
|
+
toggleMenu(): void;
|
|
1725
|
+
clickMenu(item: MenuItem): void;
|
|
1726
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaMenuComponent, never>;
|
|
1727
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaMenuComponent, "mapa-menu", never, { "items": { "alias": "items"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "emitMenu": "emitMenu"; }, never, never, true, never>;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
type DataTableAlignment = 'start' | 'center' | 'end';
|
|
1731
|
+
type DataTableSortDirection = SortDirection;
|
|
1732
|
+
type DataTableColumn = TableColumn;
|
|
1733
|
+
interface DataTablePageChange {
|
|
1734
|
+
pageIndex: number;
|
|
1735
|
+
pageSize: number;
|
|
1736
|
+
}
|
|
1737
|
+
interface DataTableSortChange {
|
|
1738
|
+
active: string;
|
|
1739
|
+
direction: DataTableSortDirection;
|
|
1740
|
+
}
|
|
1741
|
+
interface DataTableSelectionChange {
|
|
1742
|
+
selectedKeys: string[];
|
|
1743
|
+
}
|
|
1744
|
+
interface MapaTableCellContext {
|
|
1745
|
+
$implicit: unknown;
|
|
1746
|
+
row: unknown;
|
|
1747
|
+
column: TableColumn;
|
|
1748
|
+
}
|
|
1749
|
+
declare class MapaTableCellDirective {
|
|
1750
|
+
columnKey: string;
|
|
1751
|
+
readonly templateRef: TemplateRef<MapaTableCellContext>;
|
|
1752
|
+
static ngTemplateContextGuard(_directive: MapaTableCellDirective, context: unknown): context is MapaTableCellContext;
|
|
1753
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTableCellDirective, never>;
|
|
1754
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MapaTableCellDirective, "ng-template[mapaTableCell]", never, { "columnKey": { "alias": "mapaTableCell"; "required": true; }; }, {}, never, never, true, never>;
|
|
1755
|
+
}
|
|
1756
|
+
declare class MapaTableComponent {
|
|
1757
|
+
columns: readonly TableColumn[];
|
|
1758
|
+
data: readonly unknown[];
|
|
1759
|
+
rowKey: string;
|
|
1760
|
+
caption: string;
|
|
1761
|
+
selectable?: boolean;
|
|
1762
|
+
showSelectAll: boolean;
|
|
1763
|
+
selectedKeys?: readonly string[];
|
|
1764
|
+
selectionLabelKey: string;
|
|
1765
|
+
/** @deprecated Prefer `selectable`. */
|
|
1766
|
+
checkbox?: boolean;
|
|
1767
|
+
/** @deprecated Prefer `selectedKeys`, `rowKey` and `selectionChange`. */
|
|
1768
|
+
selection?: SelectionModel<TableRowData>;
|
|
1769
|
+
loading?: boolean;
|
|
1770
|
+
finished?: boolean;
|
|
1771
|
+
error: boolean;
|
|
1772
|
+
emptyTitle?: string;
|
|
1773
|
+
emptySubtitle?: string | null;
|
|
1774
|
+
errorTitle?: string;
|
|
1775
|
+
errorSubtitle?: string | null;
|
|
1776
|
+
retryLabel?: string;
|
|
1777
|
+
/** @deprecated Prefer the individual state inputs. */
|
|
1778
|
+
status: TableStatus;
|
|
1779
|
+
/** @deprecated Prefer `emptyTitle` and `emptySubtitle`. */
|
|
1780
|
+
empty: TableEmptyState;
|
|
1781
|
+
pagination?: boolean;
|
|
1782
|
+
pageIndex: number;
|
|
1783
|
+
pageSize: number;
|
|
1784
|
+
totalCount: number;
|
|
1785
|
+
pageSizeOptions: readonly number[];
|
|
1786
|
+
/** @deprecated The paginator derives its pages from `totalCount` and `pageSize`. */
|
|
1787
|
+
totalPages: number;
|
|
1788
|
+
/** @deprecated Prefer `pagination`. */
|
|
1789
|
+
showPaginator: boolean;
|
|
1790
|
+
paginatorShowFirstButton: boolean;
|
|
1791
|
+
paginatorShowLastButton: boolean;
|
|
1792
|
+
paginatorRenderButtonsNumber: number;
|
|
1793
|
+
paginatorHideDefaultArrows: boolean;
|
|
1794
|
+
sortActive: string;
|
|
1795
|
+
sortDirection: DataTableSortDirection;
|
|
1796
|
+
/** @deprecated Prefer projected cells for new integrations. */
|
|
1797
|
+
actions?: MenuItem[];
|
|
1798
|
+
/** @deprecated Prefer projected cells for new integrations. */
|
|
1799
|
+
menuItems: MenuItem[];
|
|
1800
|
+
/** @deprecated The presence of a `menu` column controls menu rendering. */
|
|
1801
|
+
menu?: boolean;
|
|
1802
|
+
/** @deprecated Prefer filtering in the consuming feature. */
|
|
1803
|
+
filterControl?: FormControl<string | null>;
|
|
1804
|
+
readonly pageChange: EventEmitter<DataTablePageChange>;
|
|
1805
|
+
readonly sortChange: EventEmitter<DataTableSortChange>;
|
|
1806
|
+
readonly selectionChange: EventEmitter<DataTableSelectionChange>;
|
|
1807
|
+
readonly retry: EventEmitter<void>;
|
|
1808
|
+
/** @deprecated Prefer `pageChange`. */
|
|
1809
|
+
readonly onChangePage: EventEmitter<PageEvent>;
|
|
1810
|
+
/** @deprecated Prefer `sortChange`. */
|
|
1811
|
+
readonly onSortChange: EventEmitter<Sort>;
|
|
1812
|
+
/** @deprecated Prefer `selectionChange`. */
|
|
1813
|
+
readonly selectedRows: EventEmitter<SelectedTableRow<TableRowData>[]>;
|
|
1814
|
+
readonly rowClick: EventEmitter<RowClickEvent<TableRowData>>;
|
|
1815
|
+
private readonly projectedCells;
|
|
1816
|
+
private readonly cdr;
|
|
1817
|
+
private readonly destroyRef;
|
|
1818
|
+
private readonly i18n;
|
|
1819
|
+
private localSort;
|
|
1820
|
+
private filterValue;
|
|
1821
|
+
private observedFilter?;
|
|
1822
|
+
private filterSubscription?;
|
|
1823
|
+
protected get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
1824
|
+
protected get visibleData(): readonly unknown[];
|
|
1825
|
+
protected get isSelectable(): boolean;
|
|
1826
|
+
protected get isLoading(): boolean;
|
|
1827
|
+
protected get isFinished(): boolean;
|
|
1828
|
+
protected get resolvedEmptyTitle(): string;
|
|
1829
|
+
protected get resolvedEmptySubtitle(): string | null;
|
|
1830
|
+
protected get resolvedErrorTitle(): string;
|
|
1831
|
+
protected get resolvedErrorSubtitle(): string | null;
|
|
1832
|
+
protected get resolvedRetryLabel(): string;
|
|
1833
|
+
protected get zeroBasedPageIndex(): number;
|
|
1834
|
+
protected get shouldShowPaginator(): boolean;
|
|
1835
|
+
protected get skeletonRows(): number[];
|
|
1836
|
+
protected skeletonColumnWidth(column: TableColumn): string;
|
|
1837
|
+
protected columnWidth(column: TableColumn): string | null;
|
|
1838
|
+
protected rowIdentity(row: unknown, index: number): unknown;
|
|
1839
|
+
protected getRowKey(row: unknown): string;
|
|
1840
|
+
protected isSelected(row: unknown): boolean;
|
|
1841
|
+
protected allVisibleSelected(): boolean;
|
|
1842
|
+
protected someVisibleSelected(): boolean;
|
|
1843
|
+
protected toggleRow(row: unknown, selected: boolean): void;
|
|
1844
|
+
protected toggleVisibleRows(selected: boolean): void;
|
|
1845
|
+
protected selectionLabel(row: unknown): string;
|
|
1846
|
+
protected cellTemplate(columnKey: string): TemplateRef<MapaTableCellContext> | null;
|
|
1847
|
+
protected isSortable(column: TableColumn): boolean;
|
|
1848
|
+
protected ariaSort(column: TableColumn): 'ascending' | 'descending' | 'none' | null;
|
|
1849
|
+
protected sortIcon(column: TableColumn): string;
|
|
1850
|
+
protected changeSort(column: TableColumn): void;
|
|
1851
|
+
protected handlePage(event: PageEvent): void;
|
|
1852
|
+
protected cellValue(row: unknown, column: TableColumn): string;
|
|
1853
|
+
protected dateValue(row: unknown, column: TableColumn): Date | null;
|
|
1854
|
+
protected dateFormat(column: TableColumn): string | null;
|
|
1855
|
+
protected statusLabel(column: TableColumn, row: unknown): string;
|
|
1856
|
+
protected statusBackground(column: TableColumn, row: unknown): string | null;
|
|
1857
|
+
protected statusTextColor(column: TableColumn, row: unknown): string | null;
|
|
1858
|
+
protected cellClasses(column: TableColumn, row: unknown): string[];
|
|
1859
|
+
protected isCenterAligned(column: TableColumn): boolean;
|
|
1860
|
+
protected isEndAligned(column: TableColumn): boolean;
|
|
1861
|
+
protected getActionItems(row: unknown): MenuItem[];
|
|
1862
|
+
protected getMenuItems(row: unknown): MenuItem[];
|
|
1863
|
+
protected emitAction(row: unknown, item: MenuActionItem, event: Event): void;
|
|
1864
|
+
protected emitRowInteraction(event: Event, row: unknown): void;
|
|
1865
|
+
protected emitRowKeyboard(event: KeyboardEvent, row: unknown): void;
|
|
1866
|
+
protected route(item: MenuActionItem): string | unknown[] | UrlTree | null;
|
|
1867
|
+
protected queryParams(item: MenuActionItem): Params | null;
|
|
1868
|
+
protected svgName(svg: string): string;
|
|
1869
|
+
private activeSort;
|
|
1870
|
+
private activeDirection;
|
|
1871
|
+
private emitLegacySelection;
|
|
1872
|
+
private observeFilterControl;
|
|
1873
|
+
private getColumnValue;
|
|
1874
|
+
private statusIndex;
|
|
1875
|
+
private normalizeCollapse;
|
|
1876
|
+
private isCompactColumn;
|
|
1877
|
+
private getFilterValue;
|
|
1878
|
+
private getMenuActionItems;
|
|
1879
|
+
private asRow;
|
|
1880
|
+
private isInteractiveTarget;
|
|
1881
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTableComponent, never>;
|
|
1882
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MapaTableComponent, "mapa-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "rowKey": { "alias": "rowKey"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; }; "selectionLabelKey": { "alias": "selectionLabelKey"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "finished": { "alias": "finished"; "required": false; }; "error": { "alias": "error"; "required": false; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; }; "emptySubtitle": { "alias": "emptySubtitle"; "required": false; }; "errorTitle": { "alias": "errorTitle"; "required": false; }; "errorSubtitle": { "alias": "errorSubtitle"; "required": false; }; "retryLabel": { "alias": "retryLabel"; "required": false; }; "status": { "alias": "status"; "required": false; }; "empty": { "alias": "empty"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "totalCount": { "alias": "totalCount"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "paginatorShowFirstButton": { "alias": "paginatorShowFirstButton"; "required": false; }; "paginatorShowLastButton": { "alias": "paginatorShowLastButton"; "required": false; }; "paginatorRenderButtonsNumber": { "alias": "paginatorRenderButtonsNumber"; "required": false; }; "paginatorHideDefaultArrows": { "alias": "paginatorHideDefaultArrows"; "required": false; }; "sortActive": { "alias": "sortActive"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "menuItems": { "alias": "menuItems"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "filterControl": { "alias": "filterControl"; "required": false; }; }, { "pageChange": "pageChange"; "sortChange": "sortChange"; "selectionChange": "selectionChange"; "retry": "retry"; "onChangePage": "onChangePage"; "onSortChange": "onSortChange"; "selectedRows": "selectedRows"; "rowClick": "rowClick"; }, ["projectedCells"], never, true, never>;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1716
1885
|
interface Candidate {
|
|
1717
1886
|
name: string;
|
|
1718
1887
|
cpf?: string;
|
|
@@ -1752,24 +1921,23 @@ interface GroupReportRow extends Record<string, GroupReportRowValue> {
|
|
|
1752
1921
|
general?: number;
|
|
1753
1922
|
}
|
|
1754
1923
|
|
|
1755
|
-
declare class MapaGroupReportComponent implements OnChanges
|
|
1924
|
+
declare class MapaGroupReportComponent implements OnChanges {
|
|
1756
1925
|
groupReport: GroupReportItem[];
|
|
1757
1926
|
showGroupReportGeneral: boolean;
|
|
1758
1927
|
onSortChange: EventEmitter<Sort>;
|
|
1759
|
-
sort: MatSort;
|
|
1760
|
-
dataSource: MatTableDataSource<GroupReportRow>;
|
|
1761
1928
|
displayedColumns: string[];
|
|
1762
1929
|
columns: TableColumn[];
|
|
1763
1930
|
data: GroupReportRow[];
|
|
1764
|
-
|
|
1931
|
+
private activeSort;
|
|
1765
1932
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1766
1933
|
trackColumn(index: number, column: TableColumn): string;
|
|
1767
|
-
handleSortChange(sort:
|
|
1934
|
+
handleSortChange(sort: DataTableSortChange): void;
|
|
1768
1935
|
getDimensionCell(row: GroupReportRow, key: string): GroupReportDimensionCell | undefined;
|
|
1769
1936
|
getDimensionClassification(row: GroupReportRow, key: string): Classification$1 | undefined;
|
|
1770
1937
|
getDimensionLabel(row: GroupReportRow, key: string): number | string;
|
|
1771
1938
|
getGeneralValue(row: GroupReportRow): number | null;
|
|
1772
1939
|
private refreshTableState;
|
|
1940
|
+
private sortData;
|
|
1773
1941
|
private getSortValue;
|
|
1774
1942
|
private isGroupReportDimensionCell;
|
|
1775
1943
|
private generateColumns;
|
|
@@ -1808,19 +1976,6 @@ declare class MapaInputComponent implements ControlValueAccessor {
|
|
|
1808
1976
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaInputComponent, "mapa-input", never, { "formControl": { "alias": "formControl"; "required": false; }; "element": { "alias": "element"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "suffix": "suffix"; }, never, never, true, never>;
|
|
1809
1977
|
}
|
|
1810
1978
|
|
|
1811
|
-
interface MenuItem extends MenuActionItem {
|
|
1812
|
-
}
|
|
1813
|
-
declare class MapaMenuComponent {
|
|
1814
|
-
items: MenuItem[];
|
|
1815
|
-
data?: unknown;
|
|
1816
|
-
emitMenu: EventEmitter<MenuActionEvent<unknown>>;
|
|
1817
|
-
trigger: MatMenuTrigger;
|
|
1818
|
-
toggleMenu(): void;
|
|
1819
|
-
clickMenu(item: MenuItem): void;
|
|
1820
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapaMenuComponent, never>;
|
|
1821
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapaMenuComponent, "mapa-menu", never, { "items": { "alias": "items"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "emitMenu": "emitMenu"; }, never, never, true, never>;
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
1979
|
declare class MapaNavListComponent {
|
|
1825
1980
|
options: ElementOption[];
|
|
1826
1981
|
label: string;
|
|
@@ -1963,163 +2118,6 @@ declare class MapaSvgIconComponent implements OnChanges {
|
|
|
1963
2118
|
static ɵcmp: i0.ɵɵComponentDeclaration<MapaSvgIconComponent, "mapa-svg-icon", never, { "name": { "alias": "name"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
1964
2119
|
}
|
|
1965
2120
|
|
|
1966
|
-
declare function customPaginatorFactory(i18n: MapaI18nService, injector: Injector): MatPaginatorIntl;
|
|
1967
|
-
|
|
1968
|
-
type DataTableAlignment = 'start' | 'center' | 'end';
|
|
1969
|
-
type DataTableSortDirection = SortDirection;
|
|
1970
|
-
type DataTableColumn = TableColumn;
|
|
1971
|
-
interface DataTablePageChange {
|
|
1972
|
-
pageIndex: number;
|
|
1973
|
-
pageSize: number;
|
|
1974
|
-
}
|
|
1975
|
-
interface DataTableSortChange {
|
|
1976
|
-
active: string;
|
|
1977
|
-
direction: DataTableSortDirection;
|
|
1978
|
-
}
|
|
1979
|
-
interface DataTableSelectionChange {
|
|
1980
|
-
selectedKeys: string[];
|
|
1981
|
-
}
|
|
1982
|
-
interface MapaTableCellContext {
|
|
1983
|
-
$implicit: unknown;
|
|
1984
|
-
row: unknown;
|
|
1985
|
-
column: TableColumn;
|
|
1986
|
-
}
|
|
1987
|
-
declare class MapaTableCellDirective {
|
|
1988
|
-
columnKey: string;
|
|
1989
|
-
readonly templateRef: TemplateRef<MapaTableCellContext>;
|
|
1990
|
-
static ngTemplateContextGuard(_directive: MapaTableCellDirective, context: unknown): context is MapaTableCellContext;
|
|
1991
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTableCellDirective, never>;
|
|
1992
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MapaTableCellDirective, "ng-template[mapaTableCell]", never, { "columnKey": { "alias": "mapaTableCell"; "required": true; }; }, {}, never, never, true, never>;
|
|
1993
|
-
}
|
|
1994
|
-
declare class MapaTableComponent {
|
|
1995
|
-
columns: readonly TableColumn[];
|
|
1996
|
-
data: readonly unknown[];
|
|
1997
|
-
rowKey: string;
|
|
1998
|
-
caption: string;
|
|
1999
|
-
selectable?: boolean;
|
|
2000
|
-
showSelectAll: boolean;
|
|
2001
|
-
selectedKeys?: readonly string[];
|
|
2002
|
-
selectionLabelKey: string;
|
|
2003
|
-
/** @deprecated Prefer `selectable`. */
|
|
2004
|
-
checkbox?: boolean;
|
|
2005
|
-
/** @deprecated Prefer `selectedKeys`, `rowKey` and `selectionChange`. */
|
|
2006
|
-
selection?: SelectionModel<TableRowData>;
|
|
2007
|
-
loading?: boolean;
|
|
2008
|
-
finished?: boolean;
|
|
2009
|
-
error: boolean;
|
|
2010
|
-
emptyTitle?: string;
|
|
2011
|
-
emptySubtitle?: string | null;
|
|
2012
|
-
errorTitle?: string;
|
|
2013
|
-
errorSubtitle?: string | null;
|
|
2014
|
-
retryLabel?: string;
|
|
2015
|
-
/** @deprecated Prefer the individual state inputs. */
|
|
2016
|
-
status: TableStatus;
|
|
2017
|
-
/** @deprecated Prefer `emptyTitle` and `emptySubtitle`. */
|
|
2018
|
-
empty: TableEmptyState;
|
|
2019
|
-
pagination?: boolean;
|
|
2020
|
-
pageIndex: number;
|
|
2021
|
-
pageSize: number;
|
|
2022
|
-
totalCount: number;
|
|
2023
|
-
pageSizeOptions: readonly number[];
|
|
2024
|
-
/** @deprecated The paginator derives its pages from `totalCount` and `pageSize`. */
|
|
2025
|
-
totalPages: number;
|
|
2026
|
-
/** @deprecated Prefer `pagination`. */
|
|
2027
|
-
showPaginator: boolean;
|
|
2028
|
-
paginatorShowFirstButton: boolean;
|
|
2029
|
-
paginatorShowLastButton: boolean;
|
|
2030
|
-
paginatorRenderButtonsNumber: number;
|
|
2031
|
-
paginatorHideDefaultArrows: boolean;
|
|
2032
|
-
sortActive: string;
|
|
2033
|
-
sortDirection: DataTableSortDirection;
|
|
2034
|
-
/** @deprecated Prefer projected cells for new integrations. */
|
|
2035
|
-
actions?: MenuItem[];
|
|
2036
|
-
/** @deprecated Prefer projected cells for new integrations. */
|
|
2037
|
-
menuItems: MenuItem[];
|
|
2038
|
-
/** @deprecated The presence of a `menu` column controls menu rendering. */
|
|
2039
|
-
menu?: boolean;
|
|
2040
|
-
/** @deprecated Prefer filtering in the consuming feature. */
|
|
2041
|
-
filterControl?: FormControl<string | null>;
|
|
2042
|
-
readonly pageChange: EventEmitter<DataTablePageChange>;
|
|
2043
|
-
readonly sortChange: EventEmitter<DataTableSortChange>;
|
|
2044
|
-
readonly selectionChange: EventEmitter<DataTableSelectionChange>;
|
|
2045
|
-
readonly retry: EventEmitter<void>;
|
|
2046
|
-
/** @deprecated Prefer `pageChange`. */
|
|
2047
|
-
readonly onChangePage: EventEmitter<PageEvent>;
|
|
2048
|
-
/** @deprecated Prefer `sortChange`. */
|
|
2049
|
-
readonly onSortChange: EventEmitter<Sort>;
|
|
2050
|
-
/** @deprecated Prefer `selectionChange`. */
|
|
2051
|
-
readonly selectedRows: EventEmitter<SelectedTableRow<TableRowData>[]>;
|
|
2052
|
-
readonly rowClick: EventEmitter<RowClickEvent<TableRowData>>;
|
|
2053
|
-
private readonly projectedCells;
|
|
2054
|
-
private readonly cdr;
|
|
2055
|
-
private readonly destroyRef;
|
|
2056
|
-
private readonly i18n;
|
|
2057
|
-
private localSort;
|
|
2058
|
-
private filterValue;
|
|
2059
|
-
private observedFilter?;
|
|
2060
|
-
private filterSubscription?;
|
|
2061
|
-
protected get texts(): mapa_frontend_i18n.MapaUiTextGroups;
|
|
2062
|
-
protected get visibleData(): readonly unknown[];
|
|
2063
|
-
protected get isSelectable(): boolean;
|
|
2064
|
-
protected get isLoading(): boolean;
|
|
2065
|
-
protected get isFinished(): boolean;
|
|
2066
|
-
protected get resolvedEmptyTitle(): string;
|
|
2067
|
-
protected get resolvedEmptySubtitle(): string | null;
|
|
2068
|
-
protected get resolvedErrorTitle(): string;
|
|
2069
|
-
protected get resolvedErrorSubtitle(): string | null;
|
|
2070
|
-
protected get resolvedRetryLabel(): string;
|
|
2071
|
-
protected get zeroBasedPageIndex(): number;
|
|
2072
|
-
protected get shouldShowPaginator(): boolean;
|
|
2073
|
-
protected get skeletonRows(): number[];
|
|
2074
|
-
protected skeletonColumnWidth(column: TableColumn): string;
|
|
2075
|
-
protected columnWidth(column: TableColumn): string | null;
|
|
2076
|
-
protected rowIdentity(row: unknown, index: number): unknown;
|
|
2077
|
-
protected getRowKey(row: unknown): string;
|
|
2078
|
-
protected isSelected(row: unknown): boolean;
|
|
2079
|
-
protected allVisibleSelected(): boolean;
|
|
2080
|
-
protected someVisibleSelected(): boolean;
|
|
2081
|
-
protected toggleRow(row: unknown, selected: boolean): void;
|
|
2082
|
-
protected toggleVisibleRows(selected: boolean): void;
|
|
2083
|
-
protected selectionLabel(row: unknown): string;
|
|
2084
|
-
protected cellTemplate(columnKey: string): TemplateRef<MapaTableCellContext> | null;
|
|
2085
|
-
protected isSortable(column: TableColumn): boolean;
|
|
2086
|
-
protected ariaSort(column: TableColumn): 'ascending' | 'descending' | 'none' | null;
|
|
2087
|
-
protected sortIcon(column: TableColumn): string;
|
|
2088
|
-
protected changeSort(column: TableColumn): void;
|
|
2089
|
-
protected handlePage(event: PageEvent): void;
|
|
2090
|
-
protected cellValue(row: unknown, column: TableColumn): string;
|
|
2091
|
-
protected dateValue(row: unknown, column: TableColumn): Date | null;
|
|
2092
|
-
protected dateFormat(column: TableColumn): string | null;
|
|
2093
|
-
protected statusLabel(column: TableColumn, row: unknown): string;
|
|
2094
|
-
protected statusBackground(column: TableColumn, row: unknown): string | null;
|
|
2095
|
-
protected statusTextColor(column: TableColumn, row: unknown): string | null;
|
|
2096
|
-
protected cellClasses(column: TableColumn, row: unknown): string[];
|
|
2097
|
-
protected isCenterAligned(column: TableColumn): boolean;
|
|
2098
|
-
protected isEndAligned(column: TableColumn): boolean;
|
|
2099
|
-
protected getActionItems(row: unknown): MenuItem[];
|
|
2100
|
-
protected getMenuItems(row: unknown): MenuItem[];
|
|
2101
|
-
protected emitAction(row: unknown, item: MenuActionItem, event: Event): void;
|
|
2102
|
-
protected emitRowInteraction(event: Event, row: unknown): void;
|
|
2103
|
-
protected emitRowKeyboard(event: KeyboardEvent, row: unknown): void;
|
|
2104
|
-
protected route(item: MenuActionItem): string | unknown[] | UrlTree | null;
|
|
2105
|
-
protected queryParams(item: MenuActionItem): Params | null;
|
|
2106
|
-
protected svgName(svg: string): string;
|
|
2107
|
-
private activeSort;
|
|
2108
|
-
private activeDirection;
|
|
2109
|
-
private emitLegacySelection;
|
|
2110
|
-
private observeFilterControl;
|
|
2111
|
-
private getColumnValue;
|
|
2112
|
-
private statusIndex;
|
|
2113
|
-
private normalizeCollapse;
|
|
2114
|
-
private isCompactColumn;
|
|
2115
|
-
private getFilterValue;
|
|
2116
|
-
private getMenuActionItems;
|
|
2117
|
-
private asRow;
|
|
2118
|
-
private isInteractiveTarget;
|
|
2119
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapaTableComponent, never>;
|
|
2120
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MapaTableComponent, "mapa-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "rowKey": { "alias": "rowKey"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; }; "selectionLabelKey": { "alias": "selectionLabelKey"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "finished": { "alias": "finished"; "required": false; }; "error": { "alias": "error"; "required": false; }; "emptyTitle": { "alias": "emptyTitle"; "required": false; }; "emptySubtitle": { "alias": "emptySubtitle"; "required": false; }; "errorTitle": { "alias": "errorTitle"; "required": false; }; "errorSubtitle": { "alias": "errorSubtitle"; "required": false; }; "retryLabel": { "alias": "retryLabel"; "required": false; }; "status": { "alias": "status"; "required": false; }; "empty": { "alias": "empty"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "totalCount": { "alias": "totalCount"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "paginatorShowFirstButton": { "alias": "paginatorShowFirstButton"; "required": false; }; "paginatorShowLastButton": { "alias": "paginatorShowLastButton"; "required": false; }; "paginatorRenderButtonsNumber": { "alias": "paginatorRenderButtonsNumber"; "required": false; }; "paginatorHideDefaultArrows": { "alias": "paginatorHideDefaultArrows"; "required": false; }; "sortActive": { "alias": "sortActive"; "required": false; }; "sortDirection": { "alias": "sortDirection"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "menuItems": { "alias": "menuItems"; "required": false; }; "menu": { "alias": "menu"; "required": false; }; "filterControl": { "alias": "filterControl"; "required": false; }; }, { "pageChange": "pageChange"; "sortChange": "sortChange"; "selectionChange": "selectionChange"; "retry": "retry"; "onChangePage": "onChangePage"; "onSortChange": "onSortChange"; "selectedRows": "selectedRows"; "rowClick": "rowClick"; }, ["projectedCells"], never, true, never>;
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
2121
|
interface Tag {
|
|
2124
2122
|
bgColor?: string | null | undefined;
|
|
2125
2123
|
color?: "highlight" | "selected" | string | null | undefined;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges,
|
|
3
|
-
import {
|
|
4
|
-
import { MatTableDataSource } from '@angular/material/table';
|
|
2
|
+
import { OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { SortDirection, Sort } from '@angular/material/sort';
|
|
5
4
|
|
|
6
5
|
interface Classification {
|
|
7
6
|
classificationId?: number;
|
|
@@ -34,6 +33,12 @@ interface TableColumn {
|
|
|
34
33
|
classification?: Classification;
|
|
35
34
|
}
|
|
36
35
|
|
|
36
|
+
type DataTableSortDirection = SortDirection;
|
|
37
|
+
interface DataTableSortChange {
|
|
38
|
+
active: string;
|
|
39
|
+
direction: DataTableSortDirection;
|
|
40
|
+
}
|
|
41
|
+
|
|
37
42
|
interface Candidate {
|
|
38
43
|
name: string;
|
|
39
44
|
cpf?: string;
|
|
@@ -73,24 +78,23 @@ interface GroupReportRow extends Record<string, GroupReportRowValue> {
|
|
|
73
78
|
general?: number;
|
|
74
79
|
}
|
|
75
80
|
|
|
76
|
-
declare class MapaGroupReportComponent implements OnChanges
|
|
81
|
+
declare class MapaGroupReportComponent implements OnChanges {
|
|
77
82
|
groupReport: GroupReportItem[];
|
|
78
83
|
showGroupReportGeneral: boolean;
|
|
79
84
|
onSortChange: EventEmitter<Sort>;
|
|
80
|
-
sort: MatSort;
|
|
81
|
-
dataSource: MatTableDataSource<GroupReportRow>;
|
|
82
85
|
displayedColumns: string[];
|
|
83
86
|
columns: TableColumn[];
|
|
84
87
|
data: GroupReportRow[];
|
|
85
|
-
|
|
88
|
+
private activeSort;
|
|
86
89
|
ngOnChanges(changes: SimpleChanges): void;
|
|
87
90
|
trackColumn(index: number, column: TableColumn): string;
|
|
88
|
-
handleSortChange(sort:
|
|
91
|
+
handleSortChange(sort: DataTableSortChange): void;
|
|
89
92
|
getDimensionCell(row: GroupReportRow, key: string): GroupReportDimensionCell | undefined;
|
|
90
93
|
getDimensionClassification(row: GroupReportRow, key: string): Classification | undefined;
|
|
91
94
|
getDimensionLabel(row: GroupReportRow, key: string): number | string;
|
|
92
95
|
getGeneralValue(row: GroupReportRow): number | null;
|
|
93
96
|
private refreshTableState;
|
|
97
|
+
private sortData;
|
|
94
98
|
private getSortValue;
|
|
95
99
|
private isGroupReportDimensionCell;
|
|
96
100
|
private generateColumns;
|
|
@@ -11,6 +11,23 @@ interface Classification {
|
|
|
11
11
|
classificationBg?: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
type MapaUiTexts = MapaUiTextGroups;
|
|
15
|
+
type ValidationMessageContext = ValidationContext;
|
|
16
|
+
|
|
17
|
+
declare class MapaI18nService {
|
|
18
|
+
private readonly injector;
|
|
19
|
+
private readonly textsState;
|
|
20
|
+
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
21
|
+
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
22
|
+
constructor(customTexts: PartialMapaUiTexts | null);
|
|
23
|
+
get texts(): MapaUiTexts;
|
|
24
|
+
setTexts(texts: PartialMapaUiTexts): void;
|
|
25
|
+
resolveValidationText(key: keyof MapaUiTexts["validation"], context?: ValidationMessageContext): string;
|
|
26
|
+
private resolveText;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapaI18nService, [{ optional: true; }]>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
29
|
+
}
|
|
30
|
+
|
|
14
31
|
interface Dimension$1 {
|
|
15
32
|
dimensionName: string;
|
|
16
33
|
direction: string;
|
|
@@ -95,23 +112,6 @@ interface Capability extends CapabilityItem {
|
|
|
95
112
|
};
|
|
96
113
|
}
|
|
97
114
|
|
|
98
|
-
type MapaUiTexts = MapaUiTextGroups;
|
|
99
|
-
type ValidationMessageContext = ValidationContext;
|
|
100
|
-
|
|
101
|
-
declare class MapaI18nService {
|
|
102
|
-
private readonly injector;
|
|
103
|
-
private readonly textsState;
|
|
104
|
-
readonly textsSignal: i0.Signal<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
105
|
-
readonly texts$: rxjs.Observable<mapa_frontend_i18n.MapaUiTextGroups>;
|
|
106
|
-
constructor(customTexts: PartialMapaUiTexts | null);
|
|
107
|
-
get texts(): MapaUiTexts;
|
|
108
|
-
setTexts(texts: PartialMapaUiTexts): void;
|
|
109
|
-
resolveValidationText(key: keyof MapaUiTexts["validation"], context?: ValidationMessageContext): string;
|
|
110
|
-
private resolveText;
|
|
111
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapaI18nService, [{ optional: true; }]>;
|
|
112
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MapaI18nService>;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
115
|
declare class MapaScaleParameterizationComponent {
|
|
116
116
|
private readonly i18n;
|
|
117
117
|
data: Competence[];
|
|
Binary file
|