@praxisui/table 9.0.4 → 9.0.5-rc.10

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.
@@ -1,6 +1,6 @@
1
1
  import { Observable, firstValueFrom } from 'rxjs';
2
2
  import { withAuthoringScopePolicy } from '@praxisui/ai';
3
- import { ad as setTableActionGlobalActionRef } from './praxisui-table-praxisui-table-Cf63AwZs.mjs';
3
+ import { ad as setTableActionGlobalActionRef } from './praxisui-table-praxisui-table-nfsMWS1W.mjs';
4
4
 
5
5
  class TableAgenticAuthoringTurnFlow {
6
6
  adapter;
@@ -1,7 +1,7 @@
1
1
  import { firstValueFrom } from 'rxjs';
2
2
  import { BaseAiAdapter, sanitizePraxisAssistantText, createComponentAuthoringContext } from '@praxisui/ai';
3
3
  import { PRAXIS_GLOBAL_ACTION_CATALOG, deepMerge } from '@praxisui/core';
4
- import { I as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, l as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, Z as coerceTableComponentEditPlans, $ as compileTableComponentEditPlans, L as TASK_PRESETS, a4 as getTableComponentEditPlanCapabilities, E as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, y as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, G as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, K as TABLE_COMPONENT_EDIT_PLAN_VERSION, z as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, H as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-Cf63AwZs.mjs';
4
+ import { I as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, l as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, Z as coerceTableComponentEditPlans, $ as compileTableComponentEditPlans, L as TASK_PRESETS, a4 as getTableComponentEditPlanCapabilities, E as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, y as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, G as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, K as TABLE_COMPONENT_EDIT_PLAN_VERSION, z as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, H as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-nfsMWS1W.mjs';
5
5
 
6
6
  const TABLE_ROW_EXPRESSION_CONTEXT_OPTION = {
7
7
  mode: 'expression',
@@ -1 +1 @@
1
- export { A as ANALYTICS_TABLE_ROW_KEY_FIELD, a as AnalyticsTableConfigAdapterService, b as AnalyticsTableContractService, c as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, d as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, e as ColumnsConfigEditorComponent, D as DATE_PRESETS, f as DataFormatterComponent, g as DataFormattingService, F as FORMULA_TEMPLATES, h as FilterConfigService, i as FilterSettingsComponent, j as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, k as PRAXIS_FILTER_COMPONENT_METADATA, l as PRAXIS_TABLE_AUTHORING_MANIFEST, m as PRAXIS_TABLE_COMPONENT_METADATA, n as PRAXIS_TABLE_TOOLBAR_APPEARANCE_PRESETS, o as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, p as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, q as PraxisFilter, r as PraxisFilterWidgetConfigEditor, s as PraxisTable, t as PraxisTableConfigEditor, u as PraxisTableInlineAuthoringEditorComponent, v as PraxisTableToolbar, w as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, x as TABLE_COMPONENT_AI_CAPABILITIES, y as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, z as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, E as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, G as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, H as TABLE_COMPONENT_EDIT_PLAN_KIND, K as TABLE_COMPONENT_EDIT_PLAN_VERSION, L as TASK_PRESETS, O as TableDefaultsProvider, Q as TableRulesEditorComponent, R as ToolbarActionsEditorComponent, V as ValueMappingEditorComponent, U as VisualFormulaBuilderComponent, W as analyticsComparisonMetricField, X as buildTableApplyPlan, Y as coerceTableComponentEditPlan, Z as coerceTableComponentEditPlans, _ as compileTableComponentEditPlan, $ as compileTableComponentEditPlans, a0 as createTableAuthoringDocument, a1 as getActionId, a2 as getEnum, a3 as getTableCapabilities, a4 as getTableComponentEditPlanCapabilities, a5 as isTableRendererSupportedByRichContentP0, a6 as mapTableRendererToRichContentP0, a7 as normalizeTableAuthoringDocument, a8 as parseLegacyOrTableDocument, a9 as providePraxisFilterMetadata, aa as providePraxisTableMetadata, ab as providePraxisTableToolbarAppearance, ac as serializeTableAuthoringDocument, ae as toCanonicalTableConfig, af as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-Cf63AwZs.mjs';
1
+ export { A as ANALYTICS_TABLE_ROW_KEY_FIELD, a as AnalyticsTableConfigAdapterService, b as AnalyticsTableContractService, c as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, d as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, e as ColumnsConfigEditorComponent, D as DATE_PRESETS, f as DataFormatterComponent, g as DataFormattingService, F as FORMULA_TEMPLATES, h as FilterConfigService, i as FilterSettingsComponent, j as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, k as PRAXIS_FILTER_COMPONENT_METADATA, l as PRAXIS_TABLE_AUTHORING_MANIFEST, m as PRAXIS_TABLE_COMPONENT_METADATA, n as PRAXIS_TABLE_TOOLBAR_APPEARANCE_PRESETS, o as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, p as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, q as PraxisFilter, r as PraxisFilterWidgetConfigEditor, s as PraxisTable, t as PraxisTableConfigEditor, u as PraxisTableInlineAuthoringEditorComponent, v as PraxisTableToolbar, w as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, x as TABLE_COMPONENT_AI_CAPABILITIES, y as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, z as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, E as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, G as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, H as TABLE_COMPONENT_EDIT_PLAN_KIND, K as TABLE_COMPONENT_EDIT_PLAN_VERSION, L as TASK_PRESETS, O as TableDefaultsProvider, Q as TableRulesEditorComponent, R as ToolbarActionsEditorComponent, V as ValueMappingEditorComponent, U as VisualFormulaBuilderComponent, W as analyticsComparisonMetricField, X as buildTableApplyPlan, Y as coerceTableComponentEditPlan, Z as coerceTableComponentEditPlans, _ as compileTableComponentEditPlan, $ as compileTableComponentEditPlans, a0 as createTableAuthoringDocument, a1 as getActionId, a2 as getEnum, a3 as getTableCapabilities, a4 as getTableComponentEditPlanCapabilities, a5 as isTableRendererSupportedByRichContentP0, a6 as mapTableRendererToRichContentP0, a7 as normalizeTableAuthoringDocument, a8 as parseLegacyOrTableDocument, a9 as providePraxisFilterMetadata, aa as providePraxisTableMetadata, ab as providePraxisTableToolbarAppearance, ac as serializeTableAuthoringDocument, ae as toCanonicalTableConfig, af as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-nfsMWS1W.mjs';
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@praxisui/table",
3
- "version": "9.0.4",
3
+ "version": "9.0.5-rc.10",
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": "^21.0.0",
7
7
  "@angular/core": "^21.0.0",
8
8
  "@angular/platform-browser": "^21.0.0",
9
- "@praxisui/ai": "^9.0.4",
10
- "@praxisui/core": "^9.0.4",
11
- "@praxisui/dynamic-fields": "^9.0.4",
12
- "@praxisui/dynamic-form": "^9.0.4",
13
- "@praxisui/metadata-editor": "^9.0.4",
14
- "@praxisui/rich-content": "^9.0.4",
15
- "@praxisui/settings-panel": "^9.0.4",
16
- "@praxisui/table-rule-builder": "^9.0.4",
9
+ "@praxisui/ai": "^9.0.5-rc.10",
10
+ "@praxisui/core": "^9.0.5-rc.10",
11
+ "@praxisui/dynamic-fields": "^9.0.5-rc.10",
12
+ "@praxisui/dynamic-form": "^9.0.5-rc.10",
13
+ "@praxisui/metadata-editor": "^9.0.5-rc.10",
14
+ "@praxisui/rich-content": "^9.0.5-rc.10",
15
+ "@praxisui/settings-panel": "^9.0.5-rc.10",
16
+ "@praxisui/table-rule-builder": "^9.0.5-rc.10",
17
17
  "@angular/cdk": "^21.0.0",
18
18
  "@angular/forms": "^21.0.0",
19
19
  "@angular/material": "^21.0.0",
20
20
  "@angular/router": "^21.0.0",
21
- "@praxisui/dialog": "^9.0.4",
21
+ "@praxisui/dialog": "^9.0.5-rc.10",
22
22
  "rxjs": "~7.8.0"
23
23
  },
24
24
  "dependencies": {
@@ -307,7 +307,7 @@ type TableAuthoringDocument = {
307
307
  - `behavior.expansion.detail.source.mode = "hypermedia"` começa sempre em `_links.capabilities`.
308
308
  - `surfaces`, `actions` e `canonicalOperations` são lidos do `ResourceCapabilitySnapshot` retornado pelo backend.
309
309
  - O primeiro corte monta um detail schema leve de resumo contextual; ele não embute execução inline de `surface.open` nem de workflow.
310
- - O runtime faz prefetch por linha apenas quando `actions.row.enabled=true`. Em cenários com expansion `hypermedia` sem row actions, o discovery contextual é resolvido sob demanda na expansão da linha.
310
+ - O runtime faz prefetch por linha somente quando existe ao menos uma ação contextual configurada para projeção inline (`display="icons"|"buttons"`). Ações restritas ao menu preservam discovery sob demanda ao abrir o overflow; expansion `hypermedia` sem row actions continua resolvendo o contexto ao expandir a linha.
311
311
  - `actions.row.discovery.enabled=false` desliga somente o enriquecimento automático de ações por linha. Use este modo para telas corporativas curadas, nas quais o host quer expor apenas `actions.row.actions[]` e evitar overflow/actions descobertas por HATEOAS/capabilities. O default permanece habilitado quando o campo é omitido.
312
312
 
313
313
  ## Overview
@@ -160,6 +160,9 @@ declare class PraxisTableToolbar implements OnDestroy {
160
160
  getToolbarDensity(): TableToolbarAppearanceDensity;
161
161
  getToolbarShape(): TableToolbarAppearanceShape;
162
162
  getToolbarDivider(): TableToolbarAppearanceDivider;
163
+ getToolbarLayoutAlignment(): 'start' | 'center' | 'end' | 'space-between';
164
+ getToolbarLayoutPadding(): string | null;
165
+ shouldShowLayoutSeparator(): boolean;
163
166
  getToolbarToken(name: TableToolbarTokenName): string | null;
164
167
  private resolveToolbarAppearance;
165
168
  private resolveToolbarAppearancePreset;
@@ -174,6 +177,8 @@ declare class PraxisTableToolbar implements OnDestroy {
174
177
  emitOverflowToolbarAction(event: Event, action: string, actionConfig?: ToolbarAction$1): void;
175
178
  getStartActions(): any[];
176
179
  getNonStartActions(): any[];
180
+ hasBusinessActions(): boolean;
181
+ hasCompactCommands(): boolean;
177
182
  getOverflowActions(): any[];
178
183
  getActionType(action: any): 'button' | 'icon' | 'fab' | 'menu';
179
184
  getActionChildren(action: any): any[];
@@ -1166,6 +1171,7 @@ type RuntimeRowAction = {
1166
1171
  __praxisDiscoveredSurface?: ResourceSurfaceCatalogItem;
1167
1172
  __praxisCrudOperation?: ResourceCapabilityOperation;
1168
1173
  __praxisCapabilityDenied?: boolean;
1174
+ __praxisDiscoveryPending?: boolean;
1169
1175
  };
1170
1176
  type ExpansionDetailRuntimeStatus = 'idle' | 'loading' | 'ready' | 'error' | 'blocked';
1171
1177
  type ExpansionDetailResolvedSource = 'inline' | 'resource' | 'resourcePath' | 'hypermedia' | 'fallback';
@@ -1210,6 +1216,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
1210
1216
  private static readonly AI_SELECTION_FIELD_LIMIT;
1211
1217
  private static readonly ROW_DISCOVERY_SUCCESS_CACHE_TTL_MS;
1212
1218
  private static readonly ROW_DISCOVERY_ERROR_CACHE_TTL_MS;
1219
+ private static readonly ROW_DISCOVERY_REQUEST_TIMEOUT_MS;
1213
1220
  private static readonly ROW_DISCOVERY_CACHE_LIMIT;
1214
1221
  private static readonly ROW_DISCOVERY_MAX_CONCURRENT_REQUESTS;
1215
1222
  private _resourceDiscovery?;
@@ -1401,6 +1408,10 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
1401
1408
  getToolbarLayoutHeightCssVar(): string | null;
1402
1409
  getToolbarLayoutHeightHostStyle(): string | null;
1403
1410
  getRowActionsWidthStyle(): string | null;
1411
+ protected isStickyStartBoundary(column: ColumnDefinition): boolean;
1412
+ protected isStickyEndBoundary(column: ColumnDefinition): boolean;
1413
+ protected isActionsStickyStartBoundary(): boolean;
1414
+ protected isActionsStickyEndBoundary(): boolean;
1404
1415
  getColumnTextAlignStyle(column: ColumnDefinition): string | null;
1405
1416
  getColumnWidthStyle(column: ColumnDefinition): string | null;
1406
1417
  getColumnResizeTableWidthStyle(): string | null;
@@ -1420,6 +1431,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
1420
1431
  private isWithinResponsiveMobileBreakpoint;
1421
1432
  private refreshResponsiveHorizontalScroll;
1422
1433
  onHorizontalViewportScroll(event: Event): void;
1434
+ onHorizontalViewportKeydown(event: KeyboardEvent): void;
1423
1435
  private refreshHorizontalOverflowState;
1424
1436
  private scheduleHorizontalOverflowRefresh;
1425
1437
  /**
@@ -1931,6 +1943,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
1931
1943
  private executeDeleteAction;
1932
1944
  private dispatchRowAction;
1933
1945
  private groundRowActionConfigForDispatch;
1946
+ private getUnavailableGroundedRowActionMessage;
1934
1947
  private isResourceActionCatalogItem;
1935
1948
  private openResourceWorkflowAction;
1936
1949
  private applyWorkflowActionRefresh;
@@ -2609,16 +2622,21 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
2609
2622
  getOverflowRowActions(row: any): any[];
2610
2623
  hasOverflowRowActions(row: any): boolean;
2611
2624
  onRowOverflowMenuOpened(row: any): void;
2625
+ private prepareRowDiscoveryRetry;
2612
2626
  private getVisibleRowActions;
2613
2627
  private getResolvedRowActions;
2614
2628
  private buildResolvedRowActions;
2615
2629
  private splitVisibleRowActionsFromVisible;
2616
2630
  private decorateConfiguredRowAction;
2631
+ private isConfiguredRowActionDiscoveryIndependent;
2632
+ private isRowDiscoveryStatusUnresolved;
2633
+ private buildPendingConfiguredRowAction;
2617
2634
  private getDiscoveredRowWorkflowActions;
2618
2635
  private getDiscoveredRowCrudActionsFromSnapshot;
2619
2636
  private buildDiscoveredRowCrudAction;
2620
2637
  private getDiscoveredRowSurfaceActionsFromSnapshot;
2621
2638
  private getDiscoveredRowWorkflowActionsFromCatalog;
2639
+ private getDiscoveredRowWorkflowActionsFromItems;
2622
2640
  private resolveRowCrudCapabilityOperation;
2623
2641
  private createSyntheticCrudCapabilityOperation;
2624
2642
  private supportsRowCrudAction;
@@ -2650,6 +2668,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
2650
2668
  isWorkflowRowAction(action: RuntimeRowAction | any): boolean;
2651
2669
  isBlockedWorkflowRowAction(action: RuntimeRowAction | any, row: any): boolean;
2652
2670
  getActionTooltip(action: RuntimeRowAction | any, row: any): string | null;
2671
+ getActionAriaDescription(action: RuntimeRowAction | any, row: any): string | null;
2653
2672
  getRowMenuTooltip(row: any): string;
2654
2673
  getRowMenuButtonColor(): any;
2655
2674
  getCanonicalIconActionColor(color: unknown): string | null;