@praxisui/table 5.0.0-beta.0 → 7.0.0-beta.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/README.md +470 -414
- package/fesm2022/praxisui-table.mjs +3071 -31
- package/index.d.ts +209 -4
- package/package.json +8 -7
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { CdkDragDrop, CdkDragEnd, CdkDrag, CdkDropList } from '@angular/cdk/drag
|
|
|
10
10
|
import { BehaviorSubject, Subscription, Observable } from 'rxjs';
|
|
11
11
|
import { SettingsPanelService, SettingsValueProvider } from '@praxisui/settings-panel';
|
|
12
12
|
import * as _praxisui_core from '@praxisui/core';
|
|
13
|
-
import { TableConfig, LoggerService, GlobalConfigService, AsyncConfigStorage, FieldMetadata, SchemaIdParams, FormConfig, GenericCrudService, DynamicFormService, SchemaNormalizerService, ComponentKeyService, ComponentDocMeta, LoadingState, RestApiLinks, ColumnDefinition, ConnectionStorage, ResourceDiscoveryService, LoadingOrchestrator, PraxisLoadingRenderer, ResourceActionCatalogItem, JsonLogicExpression, GlobalActionSpec, IconPickerService, SurfaceOpenPayload, GlobalActionField, FieldDefinition, PraxisJsonLogicService, TableConfigService, PraxisTextValue, PraxisAnalyticsProjection, PraxisDataQueryContext, ApiUrlConfig, AnalyticsSchemaContractService, AnalyticsPresentationResolver, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
|
|
13
|
+
import { TableConfig, LoggerService, GlobalConfigService, AsyncConfigStorage, FieldMetadata, SchemaIdParams, FormConfig, GenericCrudService, DynamicFormService, SchemaNormalizerService, ComponentKeyService, ComponentDocMeta, LoadingState, RestApiLinks, ColumnDefinition, RichBlockNode, ConnectionStorage, ResourceDiscoveryService, LoadingOrchestrator, PraxisLoadingRenderer, TableDetailRichListNode, TableDetailCardGridNode, TableDetailCardGridCardNode, TableDetailTimelineNode, JsonLogicRecord, TableDetailListItemAction, TableDetailActionBarNode, TableDetailActionBarAction, TableDetailRefNode, TableDetailTemplateRefNode, TableDetailDiagramEmbedNode, TableDetailEmbedAction, ResourceActionCatalogItem, JsonLogicExpression, GlobalActionSpec, IconPickerService, SurfaceOpenPayload, GlobalActionField, FieldDefinition, PraxisJsonLogicService, TableConfigService, PraxisTextValue, PraxisAnalyticsProjection, PraxisDataQueryContext, ApiUrlConfig, AnalyticsSchemaContractService, AnalyticsPresentationResolver, RichPresenterNode, RichComposeNode, PraxisI18nService, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
|
|
14
14
|
import { FormGroup, FormControl, FormBuilder } from '@angular/forms';
|
|
15
15
|
import { MatDialog } from '@angular/material/dialog';
|
|
16
16
|
import { CdkOverlayOrigin, ConnectedPosition } from '@angular/cdk/overlay';
|
|
@@ -905,6 +905,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
905
905
|
metadataChange: EventEmitter<any>;
|
|
906
906
|
loadingStateChange: EventEmitter<LoadingState>;
|
|
907
907
|
collectionLinksChange: EventEmitter<RestApiLinks | null>;
|
|
908
|
+
private latestLoadingState;
|
|
908
909
|
paginator: MatPaginator;
|
|
909
910
|
sort: MatSort;
|
|
910
911
|
materialTable?: MatTable<any>;
|
|
@@ -989,6 +990,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
989
990
|
shouldHideFloatingBulkActions(): boolean;
|
|
990
991
|
getFloatingBulkPositionClass(): string;
|
|
991
992
|
isFloatingBulkActionDisabled(action: any): boolean;
|
|
993
|
+
getFloatingBulkActionRichContentNodes(action: any): RichBlockNode[];
|
|
992
994
|
shouldShowToolbarActionsTop(): boolean;
|
|
993
995
|
shouldShowToolbarActionsBottom(): boolean;
|
|
994
996
|
getToolbarActionsBackgroundColor(): string | null;
|
|
@@ -1010,6 +1012,8 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1010
1012
|
private shouldApplyResponsiveHorizontalScrollGlobally;
|
|
1011
1013
|
private isWithinResponsiveMobileBreakpoint;
|
|
1012
1014
|
private refreshResponsiveHorizontalScroll;
|
|
1015
|
+
private scheduleResponsiveHorizontalScrollRefresh;
|
|
1016
|
+
private cancelResponsiveHorizontalScrollRefresh;
|
|
1013
1017
|
hasBottomPaginator(): boolean;
|
|
1014
1018
|
hasExplicitResourcePath(): boolean;
|
|
1015
1019
|
hasLocalDataInput(): boolean;
|
|
@@ -1021,6 +1025,18 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1021
1025
|
isLocalDataModeActive(): boolean;
|
|
1022
1026
|
shouldRenderDataSurface(): boolean;
|
|
1023
1027
|
shouldShowEmptyState(): boolean;
|
|
1028
|
+
shouldShowNoDataState(): boolean;
|
|
1029
|
+
shouldShowLoadingSurface(): boolean;
|
|
1030
|
+
getLoadingSurfaceMessage(): string;
|
|
1031
|
+
getNoDataStateTitle(): string;
|
|
1032
|
+
getNoDataStateDescription(): string | undefined;
|
|
1033
|
+
getTableSettingsLabel(): string;
|
|
1034
|
+
getTableSettingsTooltip(): string;
|
|
1035
|
+
getDisconnectLabel(): string;
|
|
1036
|
+
getDisconnectTooltip(): string;
|
|
1037
|
+
getNoDataStateIcon(): string;
|
|
1038
|
+
getNoDataStatePrimaryAction(): any | null;
|
|
1039
|
+
getNoDataStateSecondaryActions(): any[];
|
|
1024
1040
|
shouldRenderAdvancedFilter(): boolean;
|
|
1025
1041
|
getAdvancedFilterResourcePath(): string;
|
|
1026
1042
|
getAdvancedFilterPersistenceKey(): string;
|
|
@@ -1051,6 +1067,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1051
1067
|
private readonly jsonLogic;
|
|
1052
1068
|
private computedExpressionEvaluator;
|
|
1053
1069
|
private resizeObserver;
|
|
1070
|
+
private resizeObserverRefreshFrameId;
|
|
1054
1071
|
private removeViewportChangeListeners;
|
|
1055
1072
|
private readonly warnedUnsupportedFeatures;
|
|
1056
1073
|
private warnedStrictCspStyleMode;
|
|
@@ -1096,6 +1113,14 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1096
1113
|
constructor(cdr: ChangeDetectorRef, settingsPanel: SettingsPanelService, crudService: GenericCrudService<any, any>, tableDefaultsProvider: TableDefaultsProvider, filterConfig: FilterConfigService, formattingService: DataFormattingService, pxDialog: PraxisDialog, snackBar: MatSnackBar, asyncConfigStorage: AsyncConfigStorage, connectionStorage: ConnectionStorage, hostRef: ElementRef<HTMLElement>, global: GlobalConfigService, resourceDiscovery: ResourceDiscoveryService, componentKeys: ComponentKeyService, loadingOrchestrator: LoadingOrchestrator, loadingRenderer?: PraxisLoadingRenderer | undefined, route?: ActivatedRoute | undefined, logger?: LoggerService | undefined);
|
|
1097
1114
|
private ensureAiAdapterLoaded;
|
|
1098
1115
|
private emitLoadingState;
|
|
1116
|
+
private hasResolvedRemoteDataLoad;
|
|
1117
|
+
private isTableDataLoading;
|
|
1118
|
+
private getRenderedRowCount;
|
|
1119
|
+
private hasActiveDataFilters;
|
|
1120
|
+
private hasMeaningfulFilterValue;
|
|
1121
|
+
private resolveNoDataStateConfig;
|
|
1122
|
+
private mapEmptyStateAction;
|
|
1123
|
+
private onEmptyStateAction;
|
|
1099
1124
|
private buildLoadingContext;
|
|
1100
1125
|
private beginLoading;
|
|
1101
1126
|
private endLoading;
|
|
@@ -1132,10 +1157,90 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1132
1157
|
getExpansionDetailNodeTitle(node: any, fallback?: string): string;
|
|
1133
1158
|
getExpansionDetailNodeChildren(node: any): any[];
|
|
1134
1159
|
getExpansionDetailValue(row: any, node: any): string;
|
|
1160
|
+
getExpansionDetailListEntries(row: any, node: any): unknown[];
|
|
1135
1161
|
getExpansionDetailListItems(row: any, node: any): string[];
|
|
1136
|
-
|
|
1162
|
+
getExpansionDetailRichListEntries(row: any, node: TableDetailRichListNode | any): unknown[];
|
|
1163
|
+
getExpansionDetailRichListEmptyText(node: TableDetailRichListNode | any): string;
|
|
1164
|
+
getExpansionDetailRichListItemNodes(node: TableDetailRichListNode | any): RichBlockNode[];
|
|
1165
|
+
getExpansionDetailCardGridHeaderNodes(node: TableDetailCardGridNode | any): RichBlockNode[];
|
|
1166
|
+
getExpansionDetailCardGridCards(node: TableDetailCardGridNode | any): TableDetailCardGridCardNode[];
|
|
1167
|
+
getExpansionDetailCardGridStyles(node: TableDetailCardGridNode | any): Record<string, string>;
|
|
1168
|
+
getExpansionDetailCardGridCardNodes(card: TableDetailCardGridCardNode | any): RichBlockNode[];
|
|
1169
|
+
getExpansionDetailTimelineEntries(row: any, node: TableDetailTimelineNode | any): unknown[];
|
|
1170
|
+
getExpansionDetailTimelineEmptyText(node: TableDetailTimelineNode | any): string;
|
|
1171
|
+
getExpansionDetailTimelineNodes(row: any, node: TableDetailTimelineNode | any): RichBlockNode[];
|
|
1172
|
+
getExpansionDetailRichListItemContext(row: any, rowIndex: number, node: TableDetailRichListNode | any, entry: unknown, itemIndex: number): JsonLogicRecord;
|
|
1173
|
+
getExpansionDetailRichListItemClassName(node: TableDetailRichListNode | any): string;
|
|
1174
|
+
getExpansionDetailRichListItemKey(node: TableDetailRichListNode | any, entry: unknown, itemIndex: number): string;
|
|
1175
|
+
getExpansionDetailRichListItemActions(node: TableDetailRichListNode | any, row: any, rowIndex: number, entry: unknown, itemIndex: number): TableDetailListItemAction[];
|
|
1176
|
+
private normalizeExpansionDetailCardGridColumns;
|
|
1177
|
+
private normalizeExpansionDetailCardGridMinWidth;
|
|
1178
|
+
private getExpansionDetailTimelineFieldName;
|
|
1179
|
+
private buildExpansionDetailTimelineRichNode;
|
|
1180
|
+
private mapExpansionDetailTimelineItem;
|
|
1181
|
+
private getExpansionDetailTimelineObjectValue;
|
|
1182
|
+
private normalizeExpansionDetailCardGridCardContent;
|
|
1183
|
+
private normalizeExpansionDetailMediaBlockAvatar;
|
|
1184
|
+
private normalizeExpansionDetailMediaBlockText;
|
|
1185
|
+
private normalizeExpansionDetailMediaBlockMeta;
|
|
1186
|
+
private normalizeExpansionDetailMediaBlockTrailing;
|
|
1187
|
+
private normalizeExpansionDetailComposeItems;
|
|
1188
|
+
private isExpansionDetailCardGridContentNode;
|
|
1189
|
+
private isExpansionDetailComposeItemNode;
|
|
1190
|
+
getExpansionDetailRichListItemActionNodes(action: TableDetailListItemAction | any): RichBlockNode[];
|
|
1191
|
+
isExpansionDetailRichListItemActionDisabled(action: TableDetailListItemAction | any, row: any, rowIndex: number, node: TableDetailRichListNode | any, entry: unknown, itemIndex: number): boolean;
|
|
1192
|
+
onExpansionDetailRichListItemAction(action: TableDetailListItemAction | any, row: any, rowIndex: number, node: TableDetailRichListNode | any, entry: unknown, itemIndex: number, event: Event): void;
|
|
1193
|
+
getExpansionDetailListItemRichContentNodes(entry: unknown): RichBlockNode[] | null;
|
|
1194
|
+
getExpansionDetailActionId(node: any): string;
|
|
1195
|
+
getExpansionDetailActionLabel(node: any): string;
|
|
1196
|
+
getExpansionDetailActionStatusText(node: any): string | null;
|
|
1197
|
+
getExpansionDetailActionBarTitle(node: TableDetailActionBarNode | any): string;
|
|
1198
|
+
getExpansionDetailActionBarActions(node: TableDetailActionBarNode | any, row: any, index: number): TableDetailActionBarAction[];
|
|
1199
|
+
getExpansionDetailActionBarActionNodes(action: TableDetailActionBarAction | any): RichBlockNode[];
|
|
1200
|
+
isExpansionDetailActionBarActionDisabled(action: TableDetailActionBarAction | any, row: any, index: number): boolean;
|
|
1201
|
+
getExpansionDetailActionBarEmptyText(node: TableDetailActionBarNode | any): string;
|
|
1202
|
+
onExpansionDetailActionBarAction(action: TableDetailActionBarAction | any, row: any, index: number, event: Event): void;
|
|
1203
|
+
getExpansionDetailEmbedHeaderNodes(node: TableDetailRefNode | TableDetailTemplateRefNode | TableDetailDiagramEmbedNode | any): RichBlockNode[];
|
|
1204
|
+
getExpansionDetailEmbedMetaNodes(node: TableDetailRefNode | TableDetailTemplateRefNode | TableDetailDiagramEmbedNode | any): RichBlockNode[];
|
|
1205
|
+
getExpansionDetailEmbedActionNodes(action: TableDetailEmbedAction | any): RichBlockNode[];
|
|
1206
|
+
getExpansionDetailEmbedAction(node: TableDetailRefNode | TableDetailTemplateRefNode | TableDetailDiagramEmbedNode | any, row: any, index: number): TableDetailEmbedAction | null;
|
|
1207
|
+
isExpansionDetailEmbedActionDisabled(action: TableDetailEmbedAction | any, row: any, index: number): boolean;
|
|
1208
|
+
getExpansionDetailEmbedEmptyText(node: TableDetailRefNode | TableDetailTemplateRefNode | TableDetailDiagramEmbedNode | any): string;
|
|
1209
|
+
getExpansionDetailDiagramSource(row: any, node: TableDetailDiagramEmbedNode | any): string | null;
|
|
1210
|
+
getExpansionDetailDiagramSourceLabel(): string;
|
|
1211
|
+
onExpansionDetailEmbedAction(action: TableDetailEmbedAction | any, row: any, index: number, event: Event): void;
|
|
1212
|
+
private isExpansionDetailEmbedActionVisible;
|
|
1213
|
+
private getExpansionDetailEmbedLabel;
|
|
1214
|
+
private getExpansionDetailEmbedReference;
|
|
1215
|
+
private getExpansionDetailDiagramProvider;
|
|
1216
|
+
private getExpansionDetailEmbedPresetLabel;
|
|
1217
|
+
private getExpansionDetailEmbedInputsSummary;
|
|
1218
|
+
getExpansionDetailTextRichContentNodes(text: string | null | undefined, className?: string): RichBlockNode[];
|
|
1219
|
+
getTableChromeTextRichContentNodes(text: string | null | undefined, className?: string): RichBlockNode[];
|
|
1220
|
+
getRowActionRichContentNodes(action: any): RichBlockNode[];
|
|
1221
|
+
getRowActionIconRichContentNodes(action: any): RichBlockNode[];
|
|
1222
|
+
getExpansionDetailActionRichContentNodes(node: any): RichBlockNode[];
|
|
1223
|
+
private isExpansionDetailActionBarActionVisible;
|
|
1224
|
+
getExpansionDetailTabButtonRichContentNodes(tab: any): RichBlockNode[];
|
|
1225
|
+
private getExpansionDetailTabBadgeLabel;
|
|
1226
|
+
isExpansionDetailActionDisabled(node: any): boolean;
|
|
1227
|
+
onExpansionDetailAction(node: any, row: any, event: Event): void;
|
|
1228
|
+
formatExpansionDetailListEntry(entry: unknown): string;
|
|
1137
1229
|
private getExpansionDetailObjectListLabel;
|
|
1230
|
+
private getExpansionDetailObjectListBadgeLabel;
|
|
1231
|
+
private evaluateExpansionDetailRichListItemPayload;
|
|
1232
|
+
private isExpansionDetailRichListItemActionVisible;
|
|
1233
|
+
private evaluateExpansionDetailRichListItemCondition;
|
|
1138
1234
|
getExpansionDetailRichText(node: any): string;
|
|
1235
|
+
getExpansionDetailRichContentContext(row: any, index: number): JsonLogicRecord;
|
|
1236
|
+
getExpansionDetailRichContentNodes(node: any, row: any, index: number): RichBlockNode[] | null;
|
|
1237
|
+
getExpansionDetailTabRichContentNodes(tab: any, row: any, index: number): RichBlockNode[] | null;
|
|
1238
|
+
private mapExpansionDetailNodeToRichContent;
|
|
1239
|
+
private mapExpansionDetailMediaBlockNodeToRichContent;
|
|
1240
|
+
private mapExpansionDetailCardNodeToRichContent;
|
|
1241
|
+
private mapExpansionDetailStackNodeToRichContent;
|
|
1242
|
+
private mapExpansionDetailValueNodeToRichContent;
|
|
1243
|
+
private mapExpansionDetailTimelineNodeToRichContent;
|
|
1139
1244
|
getExpansionDetailTabId(row: any, index: number, tab: any, tabIndex: number): string;
|
|
1140
1245
|
getExpansionDetailPanelId(row: any, index: number, tab: any, tabIndex: number): string;
|
|
1141
1246
|
getExpansionDetailTabToken(tab: any, tabIndex: number): string;
|
|
@@ -1156,6 +1261,8 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1156
1261
|
private sanitizeExpansionDetailSchema;
|
|
1157
1262
|
private sanitizeExpansionDetailNodes;
|
|
1158
1263
|
private sanitizeExpansionDetailNode;
|
|
1264
|
+
private sanitizeExpansionDetailMediaBlockNode;
|
|
1265
|
+
private sanitizeExpansionDetailCardGridCards;
|
|
1159
1266
|
private buildExpansionBlockedPlaceholderNode;
|
|
1160
1267
|
private interpolateExpansionResourcePath;
|
|
1161
1268
|
private isExpansionResourcePathAllowed;
|
|
@@ -1470,6 +1577,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1470
1577
|
getIconColor(_row: any, column: ColumnDefinition): string | null;
|
|
1471
1578
|
getIconStyle(_row: any, column: ColumnDefinition): Record<string, string> | null;
|
|
1472
1579
|
getIconAriaLabel(_row: any, column: ColumnDefinition): string | null;
|
|
1580
|
+
getIconRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1473
1581
|
/**
|
|
1474
1582
|
* Lightweight, controlled evaluator for string/number expressions using row context.
|
|
1475
1583
|
* Accepts values like '= row.status === "OK" ? "primary" : "warn"'.
|
|
@@ -1499,6 +1607,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1499
1607
|
private coerceExpected;
|
|
1500
1608
|
getImageSrc(row: any, column: ColumnDefinition): string | null;
|
|
1501
1609
|
getImageAlt(row: any, column: ColumnDefinition): string | null;
|
|
1610
|
+
getImageRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1502
1611
|
getImageWidth(row: any, column: ColumnDefinition): number | null;
|
|
1503
1612
|
getImageHeight(row: any, column: ColumnDefinition): number | null;
|
|
1504
1613
|
getImageShape(row: any, column: ColumnDefinition): 'square' | 'rounded' | 'circle' | undefined;
|
|
@@ -1507,6 +1616,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1507
1616
|
getBadgeText(row: any, column: ColumnDefinition): string | null;
|
|
1508
1617
|
getBadgeIcon(row: any, column: ColumnDefinition): string | null;
|
|
1509
1618
|
getBadgeClasses(row: any, column: ColumnDefinition): string[];
|
|
1619
|
+
getBadgeRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1510
1620
|
getEffectiveRendererType(row: any, column: ColumnDefinition): 'icon' | 'image' | 'badge' | 'link' | 'button' | 'chip' | 'progress' | 'avatar' | 'toggle' | 'menu' | 'html' | 'compose' | 'rating' | null;
|
|
1511
1621
|
getComposeItems(row: any, column: ColumnDefinition): any[];
|
|
1512
1622
|
getComposeClasses(row: any, column: ColumnDefinition): string[];
|
|
@@ -1523,6 +1633,12 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1523
1633
|
private getEffectiveRenderer;
|
|
1524
1634
|
getLinkHref(row: any, column: ColumnDefinition): string | null;
|
|
1525
1635
|
getLinkText(row: any, column: ColumnDefinition): string;
|
|
1636
|
+
getLinkRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1637
|
+
getMenuItemRichContentNodes(item: {
|
|
1638
|
+
label?: string;
|
|
1639
|
+
icon?: string;
|
|
1640
|
+
id?: string;
|
|
1641
|
+
} | null | undefined): RichBlockNode[];
|
|
1526
1642
|
getLinkTarget(row: any, column: ColumnDefinition): string | null;
|
|
1527
1643
|
getLinkRel(row: any, column: ColumnDefinition): string | null;
|
|
1528
1644
|
getButtonLabel(row: any, column: ColumnDefinition): string;
|
|
@@ -1531,10 +1647,12 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1531
1647
|
getButtonColor(row: any, column: ColumnDefinition): string | null;
|
|
1532
1648
|
isButtonDisabled(row: any, column: ColumnDefinition): boolean;
|
|
1533
1649
|
getButtonAriaLabel(row: any, column: ColumnDefinition): string | null;
|
|
1650
|
+
getButtonRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1534
1651
|
private evaluateActionPayloadExpr;
|
|
1535
1652
|
private buildRendererActionRuntimeOptions;
|
|
1536
1653
|
onButtonClick(row: any, column: ColumnDefinition, event: Event): void;
|
|
1537
1654
|
getChipText(row: any, column: ColumnDefinition): string | null;
|
|
1655
|
+
getChipRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1538
1656
|
getChipIcon(row: any, column: ColumnDefinition): string | null;
|
|
1539
1657
|
getChipClasses(row: any, column: ColumnDefinition): string[];
|
|
1540
1658
|
getProgressValue(row: any, column: ColumnDefinition): number;
|
|
@@ -1542,6 +1660,8 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1542
1660
|
getProgressWidthPercentStyle(row: any, column: ColumnDefinition): number | null;
|
|
1543
1661
|
getProgressBackgroundStyle(row: any, column: ColumnDefinition): string | null;
|
|
1544
1662
|
getProgressShowLabel(row: any, column: ColumnDefinition): boolean;
|
|
1663
|
+
getProgressRichContentContext(row: any, column: ColumnDefinition): JsonLogicRecord;
|
|
1664
|
+
getProgressRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1545
1665
|
getRatingValue(row: any, column: ColumnDefinition): number;
|
|
1546
1666
|
getRatingMax(_row: any, column: ColumnDefinition): number;
|
|
1547
1667
|
getRatingColor(_row: any, column: ColumnDefinition): string | undefined;
|
|
@@ -1553,6 +1673,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1553
1673
|
getAvatarAlt(row: any, column: ColumnDefinition): string | null;
|
|
1554
1674
|
private deriveAvatarInitials;
|
|
1555
1675
|
getAvatarInitials(row: any, column: ColumnDefinition): string;
|
|
1676
|
+
getAvatarRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1556
1677
|
getAvatarShape(row: any, column: ColumnDefinition): 'square' | 'rounded' | 'circle' | undefined;
|
|
1557
1678
|
getAvatarStyle(row: any, column: ColumnDefinition): Record<string, string> | null;
|
|
1558
1679
|
getToggleState(row: any, column: ColumnDefinition): boolean;
|
|
@@ -1560,6 +1681,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1560
1681
|
getToggleAriaLabel(row: any, column: ColumnDefinition): string | null;
|
|
1561
1682
|
onToggleChange(row: any, column: ColumnDefinition, event: any): void;
|
|
1562
1683
|
getMenuAriaLabel(row: any, column: ColumnDefinition): string | null;
|
|
1684
|
+
getMenuTriggerRichContentNodes(): RichBlockNode[];
|
|
1563
1685
|
private evaluateArrayExpr;
|
|
1564
1686
|
getMenuItems(row: any, column: ColumnDefinition): Array<{
|
|
1565
1687
|
label: string;
|
|
@@ -1628,6 +1750,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1628
1750
|
getActionsHeaderTooltip(): string | undefined;
|
|
1629
1751
|
getActionsHeaderIcon(): string | undefined;
|
|
1630
1752
|
getActionsHeaderLabel(): string | undefined;
|
|
1753
|
+
getActionsHeaderRichContentNodes(): RichBlockNode[];
|
|
1631
1754
|
private getRowActionsDisplay;
|
|
1632
1755
|
private getRowActionsInlineLimit;
|
|
1633
1756
|
private getRowActionsBehaviorInlineLimit;
|
|
@@ -3213,6 +3336,10 @@ declare class AnalyticsTableContractService {
|
|
|
3213
3336
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsTableContractService>;
|
|
3214
3337
|
}
|
|
3215
3338
|
|
|
3339
|
+
type TableRichContentP0Node = RichPresenterNode | RichComposeNode;
|
|
3340
|
+
declare function isTableRendererSupportedByRichContentP0(renderer?: ColumnDefinition['renderer'] | null): boolean;
|
|
3341
|
+
declare function mapTableRendererToRichContentP0(renderer?: ColumnDefinition['renderer'] | null): TableRichContentP0Node | null;
|
|
3342
|
+
|
|
3216
3343
|
declare function createTableAuthoringDocument(source: {
|
|
3217
3344
|
config?: unknown;
|
|
3218
3345
|
bindings?: unknown;
|
|
@@ -3228,6 +3355,84 @@ declare function buildTableApplyPlan(doc: TableAuthoringDocument, runtime?: Tabl
|
|
|
3228
3355
|
}): TableApplyPlan;
|
|
3229
3356
|
declare function serializeTableAuthoringDocument(doc: TableAuthoringDocument): unknown;
|
|
3230
3357
|
|
|
3358
|
+
declare class PraxisTableInlineAuthoringEditorComponent implements OnChanges {
|
|
3359
|
+
private readonly i18n;
|
|
3360
|
+
config: TableConfig;
|
|
3361
|
+
readonly: boolean;
|
|
3362
|
+
configChange: EventEmitter<_praxisui_core.TableConfigModern>;
|
|
3363
|
+
workingConfig: TableConfig;
|
|
3364
|
+
toolbarTitle: string;
|
|
3365
|
+
toolbarSubtitle: string;
|
|
3366
|
+
toolbarVisible: boolean;
|
|
3367
|
+
density: 'compact' | 'comfortable' | 'spacious';
|
|
3368
|
+
toolbarActionsPosition: 'top' | 'bottom' | 'both';
|
|
3369
|
+
toolbarHeight: number;
|
|
3370
|
+
toolbarActionsBackgroundColor: string;
|
|
3371
|
+
paginationEnabled: boolean;
|
|
3372
|
+
pageSize: number;
|
|
3373
|
+
pageSizeOptionsText: string;
|
|
3374
|
+
showFirstLastButtons: boolean;
|
|
3375
|
+
paginationStrategy: 'client' | 'server';
|
|
3376
|
+
paginationPosition: 'top' | 'bottom' | 'both';
|
|
3377
|
+
paginationStyle: 'default' | 'simple' | 'advanced' | 'compact';
|
|
3378
|
+
sortingEnabled: boolean;
|
|
3379
|
+
sortingStrategy: 'client' | 'server';
|
|
3380
|
+
allowClearSort: boolean;
|
|
3381
|
+
defaultSortField: string;
|
|
3382
|
+
defaultSortDirection: 'asc' | 'desc';
|
|
3383
|
+
loadingMessage: string;
|
|
3384
|
+
emptyMessage: string;
|
|
3385
|
+
noResultsMessage: string;
|
|
3386
|
+
errorMessage: string;
|
|
3387
|
+
loadingMoreMessage: string;
|
|
3388
|
+
private lastInputSignature;
|
|
3389
|
+
constructor(i18n: PraxisI18nService);
|
|
3390
|
+
ngOnChanges(): void;
|
|
3391
|
+
setToolbarTitle(value: string): void;
|
|
3392
|
+
setToolbarSubtitle(value: string): void;
|
|
3393
|
+
setToolbarVisible(value: boolean): void;
|
|
3394
|
+
setDensity(value: 'compact' | 'comfortable' | 'spacious'): void;
|
|
3395
|
+
setToolbarActionsPosition(value: 'top' | 'bottom' | 'both'): void;
|
|
3396
|
+
setToolbarHeight(value: number | string): void;
|
|
3397
|
+
setToolbarActionsBackgroundColor(value: string): void;
|
|
3398
|
+
setPaginationEnabled(value: boolean): void;
|
|
3399
|
+
setPaginationPageSize(value: number | string): void;
|
|
3400
|
+
setPaginationPageSizeOptions(value: string): void;
|
|
3401
|
+
setPaginationShowFirstLastButtons(value: boolean): void;
|
|
3402
|
+
setPaginationStrategy(value: 'client' | 'server'): void;
|
|
3403
|
+
setPaginationPosition(value: 'top' | 'bottom' | 'both'): void;
|
|
3404
|
+
setPaginationStyle(value: 'default' | 'simple' | 'advanced' | 'compact'): void;
|
|
3405
|
+
setSortingEnabled(value: boolean): void;
|
|
3406
|
+
setSortingStrategy(value: 'client' | 'server'): void;
|
|
3407
|
+
setSortingAllowClear(value: boolean): void;
|
|
3408
|
+
setSortingDefaultField(value: string): void;
|
|
3409
|
+
setSortingDefaultDirection(value: 'asc' | 'desc'): void;
|
|
3410
|
+
setStateMessage(key: 'loading' | 'empty' | 'noResults' | 'error', value: string): void;
|
|
3411
|
+
onColumnsConfigChange(config: TableConfig): void;
|
|
3412
|
+
columnCountLabel(): string;
|
|
3413
|
+
toolbarSummary(): string;
|
|
3414
|
+
densitySummary(): string;
|
|
3415
|
+
actionsPositionSummary(): string;
|
|
3416
|
+
behaviorSummary(): string;
|
|
3417
|
+
statesSummary(): string;
|
|
3418
|
+
columnsPreviewSummary(): string;
|
|
3419
|
+
serializedConfig(): string;
|
|
3420
|
+
tx(key: string, fallback: string): string;
|
|
3421
|
+
private emitConfig;
|
|
3422
|
+
private patchToolbar;
|
|
3423
|
+
private patchBehavior;
|
|
3424
|
+
private patchPagination;
|
|
3425
|
+
private patchSorting;
|
|
3426
|
+
private patchMessages;
|
|
3427
|
+
private arrayToString;
|
|
3428
|
+
private parseNumberList;
|
|
3429
|
+
private buildDefaultSort;
|
|
3430
|
+
private getDefaultSortField;
|
|
3431
|
+
private getDefaultSortDirection;
|
|
3432
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisTableInlineAuthoringEditorComponent, never>;
|
|
3433
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisTableInlineAuthoringEditorComponent, "praxis-table-inline-authoring-editor", never, { "config": { "alias": "config"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "configChange": "configChange"; }, never, never, true, never>;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3231
3436
|
interface ValueMappingPair {
|
|
3232
3437
|
key: string | number | boolean;
|
|
3233
3438
|
value: string;
|
|
@@ -3471,5 +3676,5 @@ interface CapabilityCatalog extends AiCapabilityCatalog {
|
|
|
3471
3676
|
}
|
|
3472
3677
|
declare const TABLE_COMPONENT_AI_CAPABILITIES: CapabilityCatalog;
|
|
3473
3678
|
|
|
3474
|
-
export { AnalyticsTableConfigAdapterService, AnalyticsTableContractService, AnalyticsTableStatsApiService, BOOLEAN_PRESETS, BehaviorConfigEditorComponent, CURRENCY_PRESETS, ColumnsConfigEditorComponent, DATE_PRESETS, DataFormatterComponent, DataFormattingService, FORMULA_TEMPLATES, FilterConfigService, FilterSettingsComponent, FormulaGeneratorService, JsonConfigEditorComponent, MessagesLocalizationEditorComponent, NUMBER_PRESETS, PERCENTAGE_PRESETS, PRAXIS_FILTER_COMPONENT_METADATA, PRAXIS_TABLE_COMPONENT_METADATA, PraxisFilter, PraxisTable, PraxisTableConfigEditor, PraxisTableToolbar, STRING_PRESETS, TABLE_AI_CAPABILITIES, TABLE_COMPONENT_AI_CAPABILITIES, TASK_PRESETS, TableDefaultsProvider, TableRulesEditorComponent, ToolbarActionsEditorComponent, ValueMappingEditorComponent, VisualFormulaBuilderComponent, buildTableApplyPlan, createTableAuthoringDocument, getActionId, getEnum, getTableCapabilities, normalizeTableAuthoringDocument, parseLegacyOrTableDocument, providePraxisFilterMetadata, providePraxisTableMetadata, serializeTableAuthoringDocument, toCanonicalTableConfig, validateTableAuthoringDocument };
|
|
3475
|
-
export type { ActionLike, AnalyticsTableConfigAdapterOptions, AnalyticsTableContractDefinition, AnalyticsTableContractLoadOptions, AnalyticsTableContractLoadResult, AnalyticsTableContractSource, AnalyticsTableRow, AnalyticsTableViewModel, ArithmeticParams, BehaviorConfigChange, BooleanFormatterOptions, BulkAction, Capability$1 as Capability, CapabilityCatalog$1 as CapabilityCatalog, CapabilityCategory$1 as CapabilityCategory, ColumnChange, ColumnDataType$1 as ColumnDataType, ConcatenationParams, ConditionalMappingParams, CurrencyFormatterOptions, DataFormattingOptions, DataMode, DateFormatterOptions, DefaultValueParams, EditorDiagnostic, EditorDocument, FieldSchema, FilterConfig, FilterTag, FormatPreset, FormatterConfig, FormulaDefinition, FormulaParameterSchema, FormulaParams, FormulaTemplate, FormulaType, I18n, JsonEditorEvent, JsonValidationResult, MessagesLocalizationChange, NestedPropertyParams, NumberFormatterOptions, PercentageFormatterOptions, ResourcePathIntent, RowAction, RowExpansionChangeBase, RowExpansionChangeEvent, RowExpansionReasonCode, RowExpansionTrigger, StringFormatterOptions, TableApplyPlan, TableAuthoringDocument, TableBindings, Capability as TableComponentCapability, CapabilityCatalog as TableComponentCapabilityCatalog, CapabilityCategory as TableComponentCapabilityCategory, ValueKind as TableComponentValueKind, TableHorizontalScroll, TableProjectionContext, TableRuntimeContext, TableValidationContext, ToolbarAction, ToolbarActionsChange, ValueKind$1 as ValueKind, ValueMappingPair };
|
|
3679
|
+
export { AnalyticsTableConfigAdapterService, AnalyticsTableContractService, AnalyticsTableStatsApiService, BOOLEAN_PRESETS, BehaviorConfigEditorComponent, CURRENCY_PRESETS, ColumnsConfigEditorComponent, DATE_PRESETS, DataFormatterComponent, DataFormattingService, FORMULA_TEMPLATES, FilterConfigService, FilterSettingsComponent, FormulaGeneratorService, JsonConfigEditorComponent, MessagesLocalizationEditorComponent, NUMBER_PRESETS, PERCENTAGE_PRESETS, PRAXIS_FILTER_COMPONENT_METADATA, PRAXIS_TABLE_COMPONENT_METADATA, PraxisFilter, PraxisTable, PraxisTableConfigEditor, PraxisTableInlineAuthoringEditorComponent, PraxisTableToolbar, STRING_PRESETS, TABLE_AI_CAPABILITIES, TABLE_COMPONENT_AI_CAPABILITIES, TASK_PRESETS, TableDefaultsProvider, TableRulesEditorComponent, ToolbarActionsEditorComponent, ValueMappingEditorComponent, VisualFormulaBuilderComponent, buildTableApplyPlan, createTableAuthoringDocument, getActionId, getEnum, getTableCapabilities, isTableRendererSupportedByRichContentP0, mapTableRendererToRichContentP0, normalizeTableAuthoringDocument, parseLegacyOrTableDocument, providePraxisFilterMetadata, providePraxisTableMetadata, serializeTableAuthoringDocument, toCanonicalTableConfig, validateTableAuthoringDocument };
|
|
3680
|
+
export type { ActionLike, AnalyticsTableConfigAdapterOptions, AnalyticsTableContractDefinition, AnalyticsTableContractLoadOptions, AnalyticsTableContractLoadResult, AnalyticsTableContractSource, AnalyticsTableRow, AnalyticsTableViewModel, ArithmeticParams, BehaviorConfigChange, BooleanFormatterOptions, BulkAction, Capability$1 as Capability, CapabilityCatalog$1 as CapabilityCatalog, CapabilityCategory$1 as CapabilityCategory, ColumnChange, ColumnDataType$1 as ColumnDataType, ConcatenationParams, ConditionalMappingParams, CurrencyFormatterOptions, DataFormattingOptions, DataMode, DateFormatterOptions, DefaultValueParams, EditorDiagnostic, EditorDocument, FieldSchema, FilterConfig, FilterTag, FormatPreset, FormatterConfig, FormulaDefinition, FormulaParameterSchema, FormulaParams, FormulaTemplate, FormulaType, I18n, JsonEditorEvent, JsonValidationResult, MessagesLocalizationChange, NestedPropertyParams, NumberFormatterOptions, PercentageFormatterOptions, ResourcePathIntent, RowAction, RowExpansionChangeBase, RowExpansionChangeEvent, RowExpansionReasonCode, RowExpansionTrigger, StringFormatterOptions, TableApplyPlan, TableAuthoringDocument, TableBindings, Capability as TableComponentCapability, CapabilityCatalog as TableComponentCapabilityCatalog, CapabilityCategory as TableComponentCapabilityCategory, ValueKind as TableComponentValueKind, TableHorizontalScroll, TableProjectionContext, TableRichContentP0Node, TableRuntimeContext, TableValidationContext, ToolbarAction, ToolbarActionsChange, ValueKind$1 as ValueKind, ValueMappingPair };
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-beta.0",
|
|
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": "^
|
|
9
|
-
"@praxisui/dynamic-fields": "^
|
|
10
|
-
"@praxisui/dynamic-form": "^
|
|
11
|
-
"@praxisui/metadata-editor": "^
|
|
12
|
-
"@praxisui/
|
|
13
|
-
"@praxisui/
|
|
8
|
+
"@praxisui/core": "^7.0.0-beta.0",
|
|
9
|
+
"@praxisui/dynamic-fields": "^7.0.0-beta.0",
|
|
10
|
+
"@praxisui/dynamic-form": "^7.0.0-beta.0",
|
|
11
|
+
"@praxisui/metadata-editor": "^7.0.0-beta.0",
|
|
12
|
+
"@praxisui/rich-content": "^7.0.0-beta.0",
|
|
13
|
+
"@praxisui/settings-panel": "^7.0.0-beta.0",
|
|
14
|
+
"@praxisui/table-rule-builder": "^7.0.0-beta.0"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"tslib": "^2.3.0"
|