@praxisui/table 10.0.0-rc.26 → 10.0.0-rc.28

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 { ar as setTableActionGlobalActionRef } from './praxisui-table-praxisui-table-YnI6Bi6b.mjs';
3
+ import { ar as setTableActionGlobalActionRef } from './praxisui-table-praxisui-table-Cfb6a6On.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 { W as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, p as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, a6 as coerceTableComponentEditPlans, a8 as compileTableComponentEditPlans, Y as TASK_PRESETS, ae as getTableComponentEditPlanCapabilities, R as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, O as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, U as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, X as TABLE_COMPONENT_EDIT_PLAN_VERSION, Q as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, V as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-YnI6Bi6b.mjs';
4
+ import { W as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, p as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, a6 as coerceTableComponentEditPlans, a8 as compileTableComponentEditPlans, Y as TASK_PRESETS, ae as getTableComponentEditPlanCapabilities, R as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, O as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, U as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, X as TABLE_COMPONENT_EDIT_PLAN_VERSION, Q as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, V as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-Cfb6a6On.mjs';
5
5
 
6
6
  const TABLE_ROW_EXPRESSION_CONTEXT_OPTION = {
7
7
  mode: 'expression',
@@ -1,2 +1,2 @@
1
- export { A as ANALYTICS_TABLE_ROW_KEY_FIELD, a as AnalyticalDrawerRegistryService, b as AnalyticsTableConfigAdapterService, c as AnalyticsTableContractService, d as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, e as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, f as ColumnsConfigEditorComponent, D as DATE_PRESETS, g as DataFormatterComponent, h as DataFormattingService, F as FORMULA_TEMPLATES, i as FilterConfigService, j as FilterSettingsComponent, k as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, l as PRAXIS_ANALYTICAL_DRAWER_SCHEMAS, m as PRAXIS_FILTER_AUTHORING_MANIFEST, n as PRAXIS_FILTER_COMPONENT_METADATA, o as PRAXIS_FILTER_VIEW_CONTEXT_SCHEMA_VERSION, p as PRAXIS_TABLE_AUTHORING_MANIFEST, q as PRAXIS_TABLE_COMPONENT_METADATA, r as PRAXIS_TABLE_TOOLBAR_APPEARANCE_PRESETS, s as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, t as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, u as PraxisAnalyticalDrawerComponent, v as PraxisFilter, w as PraxisFilterOutletComponent, x as PraxisFilterOutletDirective, y as PraxisFilterWidgetConfigEditor, z as PraxisScopeBarComponent, E as PraxisTable, G as PraxisTableConfigEditor, H as PraxisTableInlineAuthoringEditorComponent, I as PraxisTableToolbar, K as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, L as TABLE_COMPONENT_AI_CAPABILITIES, O as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, Q as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, R as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, U as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, V as TABLE_COMPONENT_EDIT_PLAN_KIND, X as TABLE_COMPONENT_EDIT_PLAN_VERSION, Y as TASK_PRESETS, Z as TableDefaultsProvider, _ as TableRulesEditorComponent, $ as ToolbarActionsEditorComponent, a0 as ValueMappingEditorComponent, a1 as VisualFormulaBuilderComponent, a2 as analyticsComparisonMetricField, a3 as applyComputedFieldsToRows, a4 as buildTableApplyPlan, a5 as coerceTableComponentEditPlan, a6 as coerceTableComponentEditPlans, a7 as compileTableComponentEditPlan, a8 as compileTableComponentEditPlans, a9 as createTableAuthoringDocument, aa as formatComputedFieldValue, ab as getActionId, ac as getEnum, ad as getTableCapabilities, ae as getTableComponentEditPlanCapabilities, af as interpolateRelationEndpoint, ag as isAnalyticalDrawerSchema, ah as isTableRendererSupportedByRichContentP0, ai as mapTableRendererToRichContentP0, aj as normalizeComputedFieldDefinition, ak as normalizeTableAuthoringDocument, al as parseLegacyOrTableDocument, am as providePraxisAnalyticalDrawerSchemas, an as providePraxisFilterMetadata, ao as providePraxisTableMetadata, ap as providePraxisTableToolbarAppearance, aq as serializeTableAuthoringDocument, as as toCanonicalTableConfig, at as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-YnI6Bi6b.mjs';
1
+ export { A as ANALYTICS_TABLE_ROW_KEY_FIELD, a as AnalyticalDrawerRegistryService, b as AnalyticsTableConfigAdapterService, c as AnalyticsTableContractService, d as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, e as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, f as ColumnsConfigEditorComponent, D as DATE_PRESETS, g as DataFormatterComponent, h as DataFormattingService, F as FORMULA_TEMPLATES, i as FilterConfigService, j as FilterSettingsComponent, k as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, l as PRAXIS_ANALYTICAL_DRAWER_SCHEMAS, m as PRAXIS_FILTER_AUTHORING_MANIFEST, n as PRAXIS_FILTER_COMPONENT_METADATA, o as PRAXIS_FILTER_VIEW_CONTEXT_SCHEMA_VERSION, p as PRAXIS_TABLE_AUTHORING_MANIFEST, q as PRAXIS_TABLE_COMPONENT_METADATA, r as PRAXIS_TABLE_TOOLBAR_APPEARANCE_PRESETS, s as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, t as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, u as PraxisAnalyticalDrawerComponent, v as PraxisFilter, w as PraxisFilterOutletComponent, x as PraxisFilterOutletDirective, y as PraxisFilterWidgetConfigEditor, z as PraxisScopeBarComponent, E as PraxisTable, G as PraxisTableConfigEditor, H as PraxisTableInlineAuthoringEditorComponent, I as PraxisTableToolbar, K as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, L as TABLE_COMPONENT_AI_CAPABILITIES, O as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, Q as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, R as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, U as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, V as TABLE_COMPONENT_EDIT_PLAN_KIND, X as TABLE_COMPONENT_EDIT_PLAN_VERSION, Y as TASK_PRESETS, Z as TableDefaultsProvider, _ as TableRulesEditorComponent, $ as ToolbarActionsEditorComponent, a0 as ValueMappingEditorComponent, a1 as VisualFormulaBuilderComponent, a2 as analyticsComparisonMetricField, a3 as applyComputedFieldsToRows, a4 as buildTableApplyPlan, a5 as coerceTableComponentEditPlan, a6 as coerceTableComponentEditPlans, a7 as compileTableComponentEditPlan, a8 as compileTableComponentEditPlans, a9 as createTableAuthoringDocument, aa as formatComputedFieldValue, ab as getActionId, ac as getEnum, ad as getTableCapabilities, ae as getTableComponentEditPlanCapabilities, af as interpolateRelationEndpoint, ag as isAnalyticalDrawerSchema, ah as isTableRendererSupportedByRichContentP0, ai as mapTableRendererToRichContentP0, aj as normalizeComputedFieldDefinition, ak as normalizeTableAuthoringDocument, al as parseLegacyOrTableDocument, am as providePraxisAnalyticalDrawerSchemas, an as providePraxisFilterMetadata, ao as providePraxisTableMetadata, ap as providePraxisTableToolbarAppearance, aq as serializeTableAuthoringDocument, as as toCanonicalTableConfig, at as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-Cfb6a6On.mjs';
2
2
  export { createDynamicRecord, extractRecordId, isDynamicDataRecord, resolveDataField } from '@praxisui/core';
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@praxisui/table",
3
- "version": "10.0.0-rc.26",
3
+ "version": "10.0.0-rc.28",
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": "^10.0.0-rc.26",
10
- "@praxisui/core": "^10.0.0-rc.26",
11
- "@praxisui/dynamic-fields": "^10.0.0-rc.26",
12
- "@praxisui/dynamic-form": "^10.0.0-rc.26",
13
- "@praxisui/metadata-editor": "^10.0.0-rc.26",
14
- "@praxisui/rich-content": "^10.0.0-rc.26",
15
- "@praxisui/settings-panel": "^10.0.0-rc.26",
16
- "@praxisui/table-rule-builder": "^10.0.0-rc.26",
9
+ "@praxisui/ai": "^10.0.0-rc.28",
10
+ "@praxisui/core": "^10.0.0-rc.28",
11
+ "@praxisui/dynamic-fields": "^10.0.0-rc.28",
12
+ "@praxisui/dynamic-form": "^10.0.0-rc.28",
13
+ "@praxisui/metadata-editor": "^10.0.0-rc.28",
14
+ "@praxisui/rich-content": "^10.0.0-rc.28",
15
+ "@praxisui/settings-panel": "^10.0.0-rc.28",
16
+ "@praxisui/table-rule-builder": "^10.0.0-rc.28",
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": "^10.0.0-rc.26",
21
+ "@praxisui/dialog": "^10.0.0-rc.28",
22
22
  "rxjs": "~7.8.0"
23
23
  },
24
24
  "dependencies": {
@@ -1304,6 +1304,8 @@ Em `scroll-auto`, o viewport e uma regiao focalizavel por teclado para que o scr
1304
1304
  | --- | --- | --- | --- | --- | --- |
1305
1305
  | `columns[]` | `TableColumnConfig[]` | Yes | `[]` | Active | Definicao de colunas, renderers e regras de exibicao. |
1306
1306
  | `behavior` | `TableBehaviorConfig` | No | defaults do runtime | Partial | Inclui paginacao, filtro, selecao e expansao por blocos. |
1307
+ | `behavior.filtering.advancedFilters.settings.showAddButton` | `boolean` | No | `true` | Active | Controla a exibicao do botao `+` de adicionar campos rapidos (`alwaysVisibleFields`) na barra do `PraxisFilter` embutido. |
1308
+ | `behavior.filtering.advancedFilters.settings.showFilterSettings` | `boolean` | No | `isCustomizationAvailable()` | Active | Controla a exibicao da engrenagem de preferencias do `PraxisFilter` embutido; quando `enableCustomization` esta desabilitado, permanece oculta. |
1307
1309
  | `toolbar.actions[]` | `ToolbarActionConfig[]` | No | `[]` | Partial | Acoes de toolbar com roteamento para `toolbarAction` e `bulkAction`. |
1308
1310
  | `toolbar.title` | `string` | No | `undefined` | Active | Titulo renderizado na regiao de identidade da toolbar principal, antes de filtros e acoes. |
1309
1311
  | `toolbar.subtitle` | `string` | No | `undefined` | Active | Texto auxiliar renderizado abaixo do titulo quando houver espaco. |
@@ -479,6 +479,8 @@ type FilterConfig = {
479
479
  /** User-selected extra field ids to show before pinned always-visible */
480
480
  selectedFieldIds?: string[];
481
481
  showAdvanced?: boolean;
482
+ showAddButton?: boolean;
483
+ showFilterSettings?: boolean;
482
484
  mode?: 'filter';
483
485
  changeDebounceMs?: number;
484
486
  allowSaveTags?: boolean;
@@ -701,6 +703,7 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
701
703
  changeDebounceMs: number;
702
704
  /** Controla a exibição do botão de preferências dentro do filtro */
703
705
  showFilterSettings: boolean;
706
+ private hostShowFilterSettings?;
704
707
  /** Controla a exibição do botão de filtro avançado */
705
708
  showAdvancedButton: boolean;
706
709
  /** Projection of FilterConfig.presentation for standalone and embedded hosts. */
@@ -712,6 +715,7 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
712
715
  get advancedActionDisplay(): string;
713
716
  /** Controla a exibição do botão de adicionar campos */
714
717
  showAddButton: boolean;
718
+ private hostShowAddButton?;
715
719
  /** Controla a exibição do botão de limpar filtros */
716
720
  showClearButton: boolean;
717
721
  /** Controla a exibição do botão de pesquisar/aplicar filtros em fluxos manuais. */
@@ -1507,6 +1511,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterView
1507
1511
  selection: SelectionModel<any>;
1508
1512
  dataSubject: BehaviorSubject<any[]>;
1509
1513
  subscriptions: Subscription[];
1514
+ private surfaceOutcomeOwnerDestroyed;
1510
1515
  showToolbar: boolean;
1511
1516
  hasInitialized: boolean;
1512
1517
  pageIndex: number;
@@ -1733,6 +1738,8 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterView
1733
1738
  getAdvancedFilterPersistenceKey(): string;
1734
1739
  getAdvancedFilterFormId(): string;
1735
1740
  getAdvancedFilterOpenMode(): 'modal' | 'drawer';
1741
+ shouldShowAdvancedFilterAddButton(): boolean;
1742
+ shouldShowAdvancedFilterSettings(): boolean;
1736
1743
  getAdvancedFilterAlwaysVisibleFields(): string[] | undefined;
1737
1744
  getAdvancedFilterAlwaysVisibleFieldMetadataOverrides(): Record<string, Record<string, any>>;
1738
1745
  getAdvancedFilterFieldMetadata(): FieldMetadata[] | null | undefined;
@@ -2272,7 +2279,9 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterView
2272
2279
  private showActionFeedbackMessage;
2273
2280
  private emitEventWithActionFeedback;
2274
2281
  private executeConfiguredGlobalAction;
2282
+ private isWritableConfiguredSurfaceOpen;
2275
2283
  private withTableRuntimeContext;
2284
+ private resolveTableSurfaceRuntime;
2276
2285
  private executeSurfaceOpen;
2277
2286
  private resolveConfiguredGlobalActionRef;
2278
2287
  private resolveActionGlobalActionRef;
@@ -2298,6 +2307,8 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterView
2298
2307
  private unwrapCollectionWorkflowResult;
2299
2308
  private showCollectionWorkflowContractError;
2300
2309
  private tryHandleCollectionCreateToolbarAction;
2310
+ private bindDiscoveredSurfaceOutcome;
2311
+ private applySurfaceActionRefresh;
2301
2312
  private resolveBulkExportFormat;
2302
2313
  private isBulkExportActionKey;
2303
2314
  private normalizeExportFormat;
@@ -2910,7 +2921,10 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterView
2910
2921
  private emitMetadataChange;
2911
2922
  private emitSchemaStatus;
2912
2923
  getRowId(row: any): any;
2924
+ private preserveSelectionOnNextDataLoad;
2913
2925
  private reconcileSelectionAfterDataChange;
2926
+ private areSelectedRowSnapshotsEquivalent;
2927
+ private serializeSelectedRowSnapshot;
2914
2928
  private getComparableRowIdentity;
2915
2929
  getIdField(): string;
2916
2930
  private getSchemaIdFieldOverride;
@@ -2946,6 +2960,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterView
2946
2960
  getRowSelectionAriaLabel(row: any, index?: number): string;
2947
2961
  getMasterSelectionAriaLabel(): string;
2948
2962
  private selectRowFromUserInteraction;
2963
+ clearSelection(emitEvent?: boolean): void;
2949
2964
  private emitSelectionChange;
2950
2965
  private publishSelectionStatus;
2951
2966
  private getAccessibleRowLabel;
@@ -3528,6 +3543,8 @@ declare class ColumnsConfigEditorComponent implements OnInit, OnChanges, OnDestr
3528
3543
  getComposePreviewBadgeClasses(item: any): string[];
3529
3544
  getComposePreviewChipText(item: any, row: any): string;
3530
3545
  getComposePreviewChipClasses(item: any): string[];
3546
+ getComposePreviewLinkText(item: any, row: any): string;
3547
+ getComposePreviewLinkHref(item: any, row: any): string | null;
3531
3548
  getComposePreviewIconName(item: any, row: any): string | null;
3532
3549
  getComposePreviewIconColor(item: any, _row: any): string | null;
3533
3550
  getComposePreviewIconStyle(item: any, _row: any): Record<string, string> | null;
@@ -3951,6 +3968,8 @@ declare class FilterSettingsComponent implements OnChanges, AfterViewInit, OnDes
3951
3968
  presentation: FormControl<FilterConfig['presentation']>;
3952
3969
  alwaysVisibleFields: FormControl<string[]>;
3953
3970
  showAdvanced: FormControl<boolean>;
3971
+ showAddButton: FormControl<boolean>;
3972
+ showFilterSettings: FormControl<boolean>;
3954
3973
  mode: FormControl<'filter'>;
3955
3974
  changeDebounceMs: FormControl<number>;
3956
3975
  allowSaveTags: FormControl<boolean>;
@@ -4689,6 +4708,8 @@ declare class PraxisTableConfigEditor implements OnInit, OnDestroy, SettingsValu
4689
4708
  get toolbarFiltersEnabled(): boolean;
4690
4709
  get toolbarShowQuickFilters(): boolean;
4691
4710
  get toolbarShowAdvancedButton(): boolean;
4711
+ get advancedFilterShowAddButton(): boolean;
4712
+ get advancedFilterShowFilterSettings(): boolean;
4692
4713
  get toolbarQuickFilters(): Array<{
4693
4714
  id: string;
4694
4715
  label: string;
@@ -4701,6 +4722,8 @@ declare class PraxisTableConfigEditor implements OnInit, OnDestroy, SettingsValu
4701
4722
  onToolbarFiltersEnabledChange(enabled: boolean): void;
4702
4723
  onToolbarShowQuickFiltersChange(show: boolean): void;
4703
4724
  onToolbarShowAdvancedButtonChange(show: boolean): void;
4725
+ onAdvancedFilterShowAddButtonChange(show: boolean): void;
4726
+ onAdvancedFilterShowFilterSettingsChange(show: boolean): void;
4704
4727
  applyBooleanQuickFilterPreset(fieldName?: string): void;
4705
4728
  addQuickFilterScope(): void;
4706
4729
  removeQuickFilterScope(index: number): void;
@@ -4886,6 +4909,7 @@ interface PraxisFilterWidgetEditorInputs {
4886
4909
  advancedOpenMode?: 'modal' | 'drawer';
4887
4910
  advancedClearButtonsEnabled?: boolean;
4888
4911
  persistenceKey?: string;
4912
+ showAddButton?: boolean;
4889
4913
  showFilterSettings?: boolean;
4890
4914
  enableCustomization?: boolean;
4891
4915
  [key: string]: unknown;