@praxisui/table 1.0.0-beta.53 → 1.0.0-beta.55
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/praxisui-table.mjs +502 -44
- package/fesm2022/praxisui-table.mjs.map +1 -1
- package/index.d.ts +24 -3
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -1381,7 +1381,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1381
1381
|
getRatingOutlineColor(_row: any, column: ColumnDefinition): string | undefined;
|
|
1382
1382
|
getRatingSize(_row: any, column: ColumnDefinition): 'small' | 'medium' | 'large';
|
|
1383
1383
|
getRatingAriaLabel(row: any, column: ColumnDefinition): string | undefined;
|
|
1384
|
-
|
|
1384
|
+
private normalizeTableRatingValue;
|
|
1385
1385
|
getAvatarSrc(row: any, column: ColumnDefinition): string | null;
|
|
1386
1386
|
getAvatarAlt(row: any, column: ColumnDefinition): string | null;
|
|
1387
1387
|
getAvatarInitials(row: any, column: ColumnDefinition): string;
|
|
@@ -1605,6 +1605,9 @@ interface ExtendedColumnDefinition extends ColumnDefinition {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
declare class ColumnsConfigEditorComponent implements OnInit, OnDestroy {
|
|
1607
1607
|
private cdr;
|
|
1608
|
+
readonly ratingAriaLabelPlaceholder = "Avalia\u00E7\u00E3o {value} de {max}";
|
|
1609
|
+
readonly ratingRendererHint = "Renderer padronizado e somente leitura para uso em tabela. \u00CDcones customizados n\u00E3o s\u00E3o suportados neste contexto. Valores fracionados s\u00E3o normalizados em passos de 0.5 no grid. Use {value} e {max} no aria-label para sobrescrever o texto acess\u00EDvel completo; sem placeholders, o valor informado funciona como prefixo.";
|
|
1610
|
+
readonly composeRatingRendererHint = "Compose/Rating usa o mesmo renderer can\u00F4nico de tabela e normaliza fra\u00E7\u00F5es em passos de 0.5. Use {value} e {max} para sobrescrever o texto acess\u00EDvel completo.";
|
|
1608
1611
|
config: TableConfig;
|
|
1609
1612
|
configChange: EventEmitter<_praxisui_core.TableConfigModern>;
|
|
1610
1613
|
columnChange: EventEmitter<ColumnChange>;
|
|
@@ -1649,6 +1652,7 @@ declare class ColumnsConfigEditorComponent implements OnInit, OnDestroy {
|
|
|
1649
1652
|
exportOverrideJson(index: number): void;
|
|
1650
1653
|
importOverrideJson(index: number): void;
|
|
1651
1654
|
rendererValidationErrors: string[];
|
|
1655
|
+
rendererImportWarnings: string[];
|
|
1652
1656
|
rendererIsValid: boolean;
|
|
1653
1657
|
rendererPreviewEnabled: boolean;
|
|
1654
1658
|
private rendererAppliedSnapshot;
|
|
@@ -1752,6 +1756,7 @@ declare class ColumnsConfigEditorComponent implements OnInit, OnDestroy {
|
|
|
1752
1756
|
onDiscardRenderer(): void;
|
|
1753
1757
|
onExportRendererJson(): Promise<void>;
|
|
1754
1758
|
onImportRendererJson(): void;
|
|
1759
|
+
private collectRendererImportWarnings;
|
|
1755
1760
|
private sanitizeRenderer;
|
|
1756
1761
|
private sanitizeComposeItem;
|
|
1757
1762
|
private ensurePreviewRows;
|
|
@@ -1763,7 +1768,7 @@ declare class ColumnsConfigEditorComponent implements OnInit, OnDestroy {
|
|
|
1763
1768
|
private stripRowPrefixes;
|
|
1764
1769
|
private _coerceExpected;
|
|
1765
1770
|
private getNested;
|
|
1766
|
-
getPreviewRendererType(row: any): 'icon' | 'image' | 'badge' | 'link' | 'button' | 'chip' | 'progress' | 'avatar' | 'toggle' | 'menu' | 'html' | 'compose' | null;
|
|
1771
|
+
getPreviewRendererType(row: any): 'icon' | 'image' | 'badge' | 'link' | 'button' | 'chip' | 'progress' | 'rating' | 'avatar' | 'toggle' | 'menu' | 'html' | 'compose' | null;
|
|
1767
1772
|
getPreviewIconName(row: any): string | null;
|
|
1768
1773
|
getPreviewIconColor(row: any): string | null;
|
|
1769
1774
|
getPreviewIconStyle(row: any): Record<string, string> | null;
|
|
@@ -1783,6 +1788,20 @@ declare class ColumnsConfigEditorComponent implements OnInit, OnDestroy {
|
|
|
1783
1788
|
getPreviewChipText(row: any): string | null;
|
|
1784
1789
|
getPreviewChipClasses(): string[];
|
|
1785
1790
|
getPreviewProgressValue(row: any): number;
|
|
1791
|
+
getPreviewRatingValue(row: any): number;
|
|
1792
|
+
getPreviewRatingMax(): number;
|
|
1793
|
+
getPreviewRatingColor(): string | undefined;
|
|
1794
|
+
getPreviewRatingOutlineColor(): string | undefined;
|
|
1795
|
+
getPreviewRatingSize(): 'small' | 'medium' | 'large';
|
|
1796
|
+
getPreviewRatingAriaLabel(): string | undefined;
|
|
1797
|
+
getComposePreviewItems(_row: any): any[];
|
|
1798
|
+
getComposePreviewRatingValue(item: any, row: any): number;
|
|
1799
|
+
getComposePreviewRatingMax(item: any): number;
|
|
1800
|
+
getComposePreviewRatingColor(item: any): string | undefined;
|
|
1801
|
+
getComposePreviewRatingOutlineColor(item: any): string | undefined;
|
|
1802
|
+
getComposePreviewRatingSize(item: any): 'small' | 'medium' | 'large';
|
|
1803
|
+
getComposePreviewRatingAriaLabel(item: any): string | undefined;
|
|
1804
|
+
private normalizePreviewRatingValue;
|
|
1786
1805
|
getPreviewAvatarSrc(row: any): string | null;
|
|
1787
1806
|
getPreviewAvatarInitials(row: any): string;
|
|
1788
1807
|
getPreviewAvatarStyle(): Record<string, string>;
|
|
@@ -1808,7 +1827,9 @@ declare class ColumnsConfigEditorComponent implements OnInit, OnDestroy {
|
|
|
1808
1827
|
selectComposeItem(index: number): void;
|
|
1809
1828
|
getComposeLayoutProp(key: string): any;
|
|
1810
1829
|
setComposeLayoutProp(key: string, value: any): void;
|
|
1811
|
-
|
|
1830
|
+
getSelectedComposeItem(): any;
|
|
1831
|
+
getSelectedComposeItemProp(path: string): any;
|
|
1832
|
+
setSelectedComposeItemProp(path: string, value: any): void;
|
|
1812
1833
|
getColumnKeyInputType(column: ColumnDefinition | null): 'text' | 'number' | 'boolean';
|
|
1813
1834
|
onMappingChange(mapping: {
|
|
1814
1835
|
[key: string | number]: string;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/table",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.55",
|
|
4
4
|
"description": "Advanced data table for Angular (Praxis UI) with editing, filtering, sorting, virtualization, and settings panel integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
8
|
-
"@praxisui/core": "^1.0.0-beta.
|
|
9
|
-
"@praxisui/dynamic-fields": "^1.0.0-beta.
|
|
10
|
-
"@praxisui/dynamic-form": "^1.0.0-beta.
|
|
11
|
-
"@praxisui/metadata-editor": "^1.0.0-beta.
|
|
12
|
-
"@praxisui/settings-panel": "^1.0.0-beta.
|
|
13
|
-
"@praxisui/table-rule-builder": "^1.0.0-beta.
|
|
8
|
+
"@praxisui/core": "^1.0.0-beta.55",
|
|
9
|
+
"@praxisui/dynamic-fields": "^1.0.0-beta.55",
|
|
10
|
+
"@praxisui/dynamic-form": "^1.0.0-beta.55",
|
|
11
|
+
"@praxisui/metadata-editor": "^1.0.0-beta.55",
|
|
12
|
+
"@praxisui/settings-panel": "^1.0.0-beta.55",
|
|
13
|
+
"@praxisui/table-rule-builder": "^1.0.0-beta.55"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"tslib": "^2.3.0"
|