@praxisui/table 5.0.0-beta.0 → 6.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 +416 -414
- package/fesm2022/praxisui-table.mjs +650 -18
- package/index.d.ts +43 -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, JsonLogicRecord, ResourceActionCatalogItem, JsonLogicExpression, GlobalActionSpec, IconPickerService, SurfaceOpenPayload, GlobalActionField, FieldDefinition, PraxisJsonLogicService, TableConfigService, PraxisTextValue, PraxisAnalyticsProjection, PraxisDataQueryContext, ApiUrlConfig, AnalyticsSchemaContractService, AnalyticsPresentationResolver, RichPresenterNode, RichComposeNode, 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';
|
|
@@ -989,6 +989,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
989
989
|
shouldHideFloatingBulkActions(): boolean;
|
|
990
990
|
getFloatingBulkPositionClass(): string;
|
|
991
991
|
isFloatingBulkActionDisabled(action: any): boolean;
|
|
992
|
+
getFloatingBulkActionRichContentNodes(action: any): RichBlockNode[];
|
|
992
993
|
shouldShowToolbarActionsTop(): boolean;
|
|
993
994
|
shouldShowToolbarActionsBottom(): boolean;
|
|
994
995
|
getToolbarActionsBackgroundColor(): string | null;
|
|
@@ -1132,10 +1133,32 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1132
1133
|
getExpansionDetailNodeTitle(node: any, fallback?: string): string;
|
|
1133
1134
|
getExpansionDetailNodeChildren(node: any): any[];
|
|
1134
1135
|
getExpansionDetailValue(row: any, node: any): string;
|
|
1136
|
+
getExpansionDetailListEntries(row: any, node: any): unknown[];
|
|
1135
1137
|
getExpansionDetailListItems(row: any, node: any): string[];
|
|
1136
|
-
|
|
1138
|
+
getExpansionDetailListItemRichContentNodes(entry: unknown): RichBlockNode[] | null;
|
|
1139
|
+
getExpansionDetailActionId(node: any): string;
|
|
1140
|
+
getExpansionDetailActionLabel(node: any): string;
|
|
1141
|
+
getExpansionDetailActionStatusText(node: any): string | null;
|
|
1142
|
+
getExpansionDetailTextRichContentNodes(text: string | null | undefined, className?: string): RichBlockNode[];
|
|
1143
|
+
getTableChromeTextRichContentNodes(text: string | null | undefined, className?: string): RichBlockNode[];
|
|
1144
|
+
getRowActionRichContentNodes(action: any): RichBlockNode[];
|
|
1145
|
+
getRowActionIconRichContentNodes(action: any): RichBlockNode[];
|
|
1146
|
+
getExpansionDetailActionRichContentNodes(node: any): RichBlockNode[];
|
|
1147
|
+
getExpansionDetailTabButtonRichContentNodes(tab: any): RichBlockNode[];
|
|
1148
|
+
private getExpansionDetailTabBadgeLabel;
|
|
1149
|
+
isExpansionDetailActionDisabled(node: any): boolean;
|
|
1150
|
+
onExpansionDetailAction(node: any, row: any, event: Event): void;
|
|
1151
|
+
formatExpansionDetailListEntry(entry: unknown): string;
|
|
1137
1152
|
private getExpansionDetailObjectListLabel;
|
|
1153
|
+
private getExpansionDetailObjectListBadgeLabel;
|
|
1138
1154
|
getExpansionDetailRichText(node: any): string;
|
|
1155
|
+
getExpansionDetailRichContentContext(row: any, index: number): JsonLogicRecord;
|
|
1156
|
+
getExpansionDetailRichContentNodes(node: any, row: any, index: number): RichBlockNode[] | null;
|
|
1157
|
+
getExpansionDetailTabRichContentNodes(tab: any, row: any, index: number): RichBlockNode[] | null;
|
|
1158
|
+
private mapExpansionDetailNodeToRichContent;
|
|
1159
|
+
private mapExpansionDetailCardNodeToRichContent;
|
|
1160
|
+
private mapExpansionDetailStackNodeToRichContent;
|
|
1161
|
+
private mapExpansionDetailValueNodeToRichContent;
|
|
1139
1162
|
getExpansionDetailTabId(row: any, index: number, tab: any, tabIndex: number): string;
|
|
1140
1163
|
getExpansionDetailPanelId(row: any, index: number, tab: any, tabIndex: number): string;
|
|
1141
1164
|
getExpansionDetailTabToken(tab: any, tabIndex: number): string;
|
|
@@ -1470,6 +1493,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1470
1493
|
getIconColor(_row: any, column: ColumnDefinition): string | null;
|
|
1471
1494
|
getIconStyle(_row: any, column: ColumnDefinition): Record<string, string> | null;
|
|
1472
1495
|
getIconAriaLabel(_row: any, column: ColumnDefinition): string | null;
|
|
1496
|
+
getIconRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1473
1497
|
/**
|
|
1474
1498
|
* Lightweight, controlled evaluator for string/number expressions using row context.
|
|
1475
1499
|
* Accepts values like '= row.status === "OK" ? "primary" : "warn"'.
|
|
@@ -1507,6 +1531,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1507
1531
|
getBadgeText(row: any, column: ColumnDefinition): string | null;
|
|
1508
1532
|
getBadgeIcon(row: any, column: ColumnDefinition): string | null;
|
|
1509
1533
|
getBadgeClasses(row: any, column: ColumnDefinition): string[];
|
|
1534
|
+
getBadgeRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1510
1535
|
getEffectiveRendererType(row: any, column: ColumnDefinition): 'icon' | 'image' | 'badge' | 'link' | 'button' | 'chip' | 'progress' | 'avatar' | 'toggle' | 'menu' | 'html' | 'compose' | 'rating' | null;
|
|
1511
1536
|
getComposeItems(row: any, column: ColumnDefinition): any[];
|
|
1512
1537
|
getComposeClasses(row: any, column: ColumnDefinition): string[];
|
|
@@ -1523,6 +1548,12 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1523
1548
|
private getEffectiveRenderer;
|
|
1524
1549
|
getLinkHref(row: any, column: ColumnDefinition): string | null;
|
|
1525
1550
|
getLinkText(row: any, column: ColumnDefinition): string;
|
|
1551
|
+
getLinkRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1552
|
+
getMenuItemRichContentNodes(item: {
|
|
1553
|
+
label?: string;
|
|
1554
|
+
icon?: string;
|
|
1555
|
+
id?: string;
|
|
1556
|
+
} | null | undefined): RichBlockNode[];
|
|
1526
1557
|
getLinkTarget(row: any, column: ColumnDefinition): string | null;
|
|
1527
1558
|
getLinkRel(row: any, column: ColumnDefinition): string | null;
|
|
1528
1559
|
getButtonLabel(row: any, column: ColumnDefinition): string;
|
|
@@ -1531,10 +1562,12 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1531
1562
|
getButtonColor(row: any, column: ColumnDefinition): string | null;
|
|
1532
1563
|
isButtonDisabled(row: any, column: ColumnDefinition): boolean;
|
|
1533
1564
|
getButtonAriaLabel(row: any, column: ColumnDefinition): string | null;
|
|
1565
|
+
getButtonRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1534
1566
|
private evaluateActionPayloadExpr;
|
|
1535
1567
|
private buildRendererActionRuntimeOptions;
|
|
1536
1568
|
onButtonClick(row: any, column: ColumnDefinition, event: Event): void;
|
|
1537
1569
|
getChipText(row: any, column: ColumnDefinition): string | null;
|
|
1570
|
+
getChipRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1538
1571
|
getChipIcon(row: any, column: ColumnDefinition): string | null;
|
|
1539
1572
|
getChipClasses(row: any, column: ColumnDefinition): string[];
|
|
1540
1573
|
getProgressValue(row: any, column: ColumnDefinition): number;
|
|
@@ -1553,6 +1586,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1553
1586
|
getAvatarAlt(row: any, column: ColumnDefinition): string | null;
|
|
1554
1587
|
private deriveAvatarInitials;
|
|
1555
1588
|
getAvatarInitials(row: any, column: ColumnDefinition): string;
|
|
1589
|
+
getAvatarRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1556
1590
|
getAvatarShape(row: any, column: ColumnDefinition): 'square' | 'rounded' | 'circle' | undefined;
|
|
1557
1591
|
getAvatarStyle(row: any, column: ColumnDefinition): Record<string, string> | null;
|
|
1558
1592
|
getToggleState(row: any, column: ColumnDefinition): boolean;
|
|
@@ -1628,6 +1662,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1628
1662
|
getActionsHeaderTooltip(): string | undefined;
|
|
1629
1663
|
getActionsHeaderIcon(): string | undefined;
|
|
1630
1664
|
getActionsHeaderLabel(): string | undefined;
|
|
1665
|
+
getActionsHeaderRichContentNodes(): RichBlockNode[];
|
|
1631
1666
|
private getRowActionsDisplay;
|
|
1632
1667
|
private getRowActionsInlineLimit;
|
|
1633
1668
|
private getRowActionsBehaviorInlineLimit;
|
|
@@ -3213,6 +3248,10 @@ declare class AnalyticsTableContractService {
|
|
|
3213
3248
|
static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsTableContractService>;
|
|
3214
3249
|
}
|
|
3215
3250
|
|
|
3251
|
+
type TableRichContentP0Node = RichPresenterNode | RichComposeNode;
|
|
3252
|
+
declare function isTableRendererSupportedByRichContentP0(renderer?: ColumnDefinition['renderer'] | null): boolean;
|
|
3253
|
+
declare function mapTableRendererToRichContentP0(renderer?: ColumnDefinition['renderer'] | null): TableRichContentP0Node | null;
|
|
3254
|
+
|
|
3216
3255
|
declare function createTableAuthoringDocument(source: {
|
|
3217
3256
|
config?: unknown;
|
|
3218
3257
|
bindings?: unknown;
|
|
@@ -3471,5 +3510,5 @@ interface CapabilityCatalog extends AiCapabilityCatalog {
|
|
|
3471
3510
|
}
|
|
3472
3511
|
declare const TABLE_COMPONENT_AI_CAPABILITIES: CapabilityCatalog;
|
|
3473
3512
|
|
|
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 };
|
|
3513
|
+
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, isTableRendererSupportedByRichContentP0, mapTableRendererToRichContentP0, normalizeTableAuthoringDocument, parseLegacyOrTableDocument, providePraxisFilterMetadata, providePraxisTableMetadata, serializeTableAuthoringDocument, toCanonicalTableConfig, validateTableAuthoringDocument };
|
|
3514
|
+
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": "6.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": "^6.0.0-beta.0",
|
|
9
|
+
"@praxisui/dynamic-fields": "^6.0.0-beta.0",
|
|
10
|
+
"@praxisui/dynamic-form": "^6.0.0-beta.0",
|
|
11
|
+
"@praxisui/metadata-editor": "^6.0.0-beta.0",
|
|
12
|
+
"@praxisui/rich-content": "^6.0.0-beta.0",
|
|
13
|
+
"@praxisui/settings-panel": "^6.0.0-beta.0",
|
|
14
|
+
"@praxisui/table-rule-builder": "^6.0.0-beta.0"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"tslib": "^2.3.0"
|