@praxisui/table 8.0.0-beta.88 → 8.0.0-beta.89

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.
@@ -39945,7 +39945,7 @@ class PraxisTable {
39945
39945
  if (this.aiAdapter || this.aiAdapterLoadStarted)
39946
39946
  return;
39947
39947
  this.aiAdapterLoadStarted = true;
39948
- import('./praxisui-table-table-ai.adapter-C8qa8APT.mjs')
39948
+ import('./praxisui-table-table-ai.adapter-D-NfNb_E.mjs')
39949
39949
  .then(({ TableAiAdapter }) => {
39950
39950
  this.aiAdapter = new TableAiAdapter(this);
39951
39951
  this.initializeAiAssistantController();
@@ -40391,7 +40391,7 @@ class PraxisTable {
40391
40391
  initializeAiAssistantController() {
40392
40392
  if (!this.aiAdapter || this.aiAssistantController)
40393
40393
  return;
40394
- import('./praxisui-table-table-agentic-authoring-turn-flow-4Deh8QJU.mjs')
40394
+ import('./praxisui-table-table-agentic-authoring-turn-flow-CJG-Gjzu.mjs')
40395
40395
  .then(({ TableAgenticAuthoringTurnFlow }) => {
40396
40396
  if (this.aiAssistantController || !this.aiAdapter)
40397
40397
  return;
@@ -2332,6 +2332,10 @@ class TableAgenticAuthoringTurnFlow {
2332
2332
  if (continuedColumnVisibilityNarrative) {
2333
2333
  return this.compileAdapterResponse(continuedColumnVisibilityNarrative, request);
2334
2334
  }
2335
+ const continuedColumnVisibilitySurfaceNarrative = this.columnVisibilityPlanForMisroutedSurfaceNarrative(response, request);
2336
+ if (continuedColumnVisibilitySurfaceNarrative) {
2337
+ return this.compileAdapterResponse(continuedColumnVisibilitySurfaceNarrative, request);
2338
+ }
2335
2339
  const continuedSurfaceRowActionFromInfo = this.selectedRecordSurfaceRowActionPlanForInfo(response, request);
2336
2340
  if (continuedSurfaceRowActionFromInfo) {
2337
2341
  return this.compileAdapterResponse(continuedSurfaceRowActionFromInfo, request);
@@ -2414,6 +2418,10 @@ class TableAgenticAuthoringTurnFlow {
2414
2418
  if (continuedColumnVisibilityNarrative) {
2415
2419
  return this.compileAdapterResponse(continuedColumnVisibilityNarrative, request);
2416
2420
  }
2421
+ const continuedColumnVisibilitySurfaceNarrative = this.columnVisibilityPlanForMisroutedSurfaceNarrative(response, request);
2422
+ if (continuedColumnVisibilitySurfaceNarrative) {
2423
+ return this.compileAdapterResponse(continuedColumnVisibilitySurfaceNarrative, request);
2424
+ }
2417
2425
  const continuedColumnFormatNarrative = this.columnFormatPlanForNonExecutableNarrative(response, request);
2418
2426
  if (continuedColumnFormatNarrative) {
2419
2427
  return this.compileAdapterResponse(continuedColumnFormatNarrative, request);
@@ -3967,6 +3975,8 @@ class TableAgenticAuthoringTurnFlow {
3967
3975
  return score;
3968
3976
  }
3969
3977
  selectedRecordSurfaceOperationForMisgroundedFilter(normalizedPrompt, request) {
3978
+ if (request && this.turnRequestsColumnVisibilityEdit(request))
3979
+ return null;
3970
3980
  if (this.promptRequestsSimilarRecords(normalizedPrompt))
3971
3981
  return null;
3972
3982
  const contextHints = this.contextHintsFor(request);
@@ -4018,6 +4028,8 @@ class TableAgenticAuthoringTurnFlow {
4018
4028
  selectedRecordSurfaceRowActionPlanForClarification(response, request) {
4019
4029
  if (!request)
4020
4030
  return null;
4031
+ if (this.turnRequestsColumnVisibilityEdit(request))
4032
+ return null;
4021
4033
  const normalizedPrompt = this.normalizeLabel(request.prompt ?? '');
4022
4034
  const normalizedConversation = this.normalizeLabel([
4023
4035
  ...(request.messages ?? []).slice(-8).map((message) => message?.text ?? ''),
@@ -4068,6 +4080,8 @@ class TableAgenticAuthoringTurnFlow {
4068
4080
  selectedRecordSurfaceRowActionPlanForInfo(response, request) {
4069
4081
  if (response.type !== 'info' || !request)
4070
4082
  return null;
4083
+ if (this.turnRequestsColumnVisibilityEdit(request))
4084
+ return null;
4071
4085
  const normalizedPrompt = this.normalizeLabel(request.prompt ?? '');
4072
4086
  const normalizedConversation = this.normalizeLabel([
4073
4087
  ...(request.messages ?? []).slice(-8).map((message) => message?.text ?? ''),
@@ -4112,6 +4126,8 @@ class TableAgenticAuthoringTurnFlow {
4112
4126
  selectedRecordSurfaceRuntimeOperationForInfo(response, request) {
4113
4127
  if (response.type !== 'info' || !request)
4114
4128
  return null;
4129
+ if (this.turnRequestsColumnVisibilityEdit(request))
4130
+ return null;
4115
4131
  const normalizedPrompt = this.normalizeLabel(request.prompt ?? '');
4116
4132
  if (!this.textMentionsRecordSurfaceOpenRequest(normalizedPrompt))
4117
4133
  return null;
@@ -4173,6 +4189,8 @@ class TableAgenticAuthoringTurnFlow {
4173
4189
  selectedRecordSurfaceRuntimeOperationForGroundedInfo(response, request) {
4174
4190
  if ((response.type !== 'info' && response.type !== 'clarification') || !request)
4175
4191
  return null;
4192
+ if (this.turnRequestsColumnVisibilityEdit(request))
4193
+ return null;
4176
4194
  const normalizedPrompt = this.normalizeLabel(request.prompt ?? '');
4177
4195
  if (!this.textMentionsRecordSurfaceOpenRequest(normalizedPrompt))
4178
4196
  return null;
@@ -4233,6 +4251,8 @@ class TableAgenticAuthoringTurnFlow {
4233
4251
  selectedRecordSurfaceRuntimeOperationForInvalidExecutable(response, request, warnings = []) {
4234
4252
  if (!request || !this.responseMayContainExecutableEnvelope(response))
4235
4253
  return null;
4254
+ if (this.turnRequestsColumnVisibilityEdit(request))
4255
+ return null;
4236
4256
  const normalizedPrompt = this.normalizeLabel(request.prompt ?? '');
4237
4257
  const normalizedConversation = this.normalizeLabel([
4238
4258
  ...(request.messages ?? []).slice(-8).map((message) => message?.text ?? ''),
@@ -4302,6 +4322,8 @@ class TableAgenticAuthoringTurnFlow {
4302
4322
  selectedRecordSurfaceRuntimeOperationForOpenOnlyExecutable(response, request) {
4303
4323
  if (!request)
4304
4324
  return null;
4325
+ if (this.turnRequestsColumnVisibilityEdit(request))
4326
+ return null;
4305
4327
  const normalizedPrompt = this.normalizeLabel(request.prompt ?? '');
4306
4328
  if (!this.promptExplicitlyRequestsRecordSurfaceOpenOnly(normalizedPrompt))
4307
4329
  return null;
@@ -5562,6 +5584,60 @@ class TableAgenticAuthoringTurnFlow {
5562
5584
  'Residual continuity guard acted only after the LLM narrated a column visibility plan without returning an executable envelope.',
5563
5585
  ]);
5564
5586
  }
5587
+ columnVisibilityPlanForMisroutedSurfaceNarrative(response, request) {
5588
+ if (!request)
5589
+ return null;
5590
+ const prompt = this.columnVisibilityPromptForTurn(request);
5591
+ if (!this.promptRequestsColumnVisibilityEdit(this.normalizeLabel(prompt)))
5592
+ return null;
5593
+ const responseText = this.normalizeLabel([
5594
+ response.message,
5595
+ response.explanation,
5596
+ response.code,
5597
+ ...(response.warnings ?? []),
5598
+ ].join(' '));
5599
+ const narratesSurfaceOpen = this.normalizedTextIncludesAny(responseText, [
5600
+ 'dynamicpage surface open',
5601
+ 'dynamicpage.surface.open',
5602
+ 'surface open',
5603
+ 'surface.open',
5604
+ 'abrir a superficie',
5605
+ 'abrir a superfície',
5606
+ 'vou abrir',
5607
+ 'superficie relacionada',
5608
+ 'superfície relacionada',
5609
+ ]);
5610
+ if (!narratesSurfaceOpen)
5611
+ return null;
5612
+ const currentConfig = this.adapter.getCurrentConfig?.();
5613
+ const columns = Array.isArray(currentConfig?.['columns'])
5614
+ ? currentConfig['columns']
5615
+ .map((column) => this.toRecord(column))
5616
+ .filter((column) => !!column && !!this.stringValue(column['field']))
5617
+ : [];
5618
+ const operations = this.columnVisibilityOperationsFromPrompt(prompt, columns);
5619
+ if (!operations.length) {
5620
+ return {
5621
+ type: 'clarification',
5622
+ sessionId: request.sessionId,
5623
+ message: 'Entendi que o pedido é sobre ocultar ou exibir colunas, não sobre abrir uma superfície do registro.',
5624
+ questions: ['Quais colunas você quer ocultar ou exibir?'],
5625
+ options: columns
5626
+ .slice(0, 8)
5627
+ .map((column) => this.stringValue(column['header']) || this.stringValue(column['field']))
5628
+ .filter((label) => !!label),
5629
+ warnings: [
5630
+ ...(response.warnings ?? []),
5631
+ 'column-visibility-request-blocked-surface-narrative',
5632
+ ],
5633
+ };
5634
+ }
5635
+ return this.componentEditPlanResponse(operations, 'Vou ocultar as colunas indicadas para a visualizacao solicitada.', [
5636
+ ...(response.warnings ?? []),
5637
+ 'column-visibility-continued-from-surface-narrative-misroute',
5638
+ 'Residual continuity guard acted only after the LLM narrated opening a related surface for a column visibility/privacy request grounded in declared table columns.',
5639
+ ]);
5640
+ }
5565
5641
  columnVisibilityPlanForMisroutedSurfaceError(response, request, compiledError) {
5566
5642
  if (!request)
5567
5643
  return null;
@@ -5612,6 +5688,9 @@ class TableAgenticAuthoringTurnFlow {
5612
5688
  .filter((part) => !!part)
5613
5689
  .join(' ');
5614
5690
  }
5691
+ turnRequestsColumnVisibilityEdit(request) {
5692
+ return this.promptRequestsColumnVisibilityEdit(this.normalizeLabel(this.columnVisibilityPromptForTurn(request)));
5693
+ }
5615
5694
  columnVisibilityOperationsFromPrompt(prompt, columns) {
5616
5695
  const hide = !this.normalizedTextIncludesAny(this.normalizeLabel(prompt), [
5617
5696
  'exibir',
@@ -1,7 +1,7 @@
1
1
  import { firstValueFrom } from 'rxjs';
2
2
  import { BaseAiAdapter, createComponentAuthoringContext } from '@praxisui/ai';
3
3
  import { PRAXIS_GLOBAL_ACTION_CATALOG, deepMerge } from '@praxisui/core';
4
- import { G as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, k as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, W as coerceTableComponentEditPlans, Y as compileTableComponentEditPlans, I as TASK_PRESETS, a1 as getTableComponentEditPlanCapabilities, y as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, w as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, z as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, H as TABLE_COMPONENT_EDIT_PLAN_VERSION, x as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, E as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-OCU_Au66.mjs';
4
+ import { G as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, k as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, W as coerceTableComponentEditPlans, Y as compileTableComponentEditPlans, I as TASK_PRESETS, a1 as getTableComponentEditPlanCapabilities, y as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, w as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, z as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, H as TABLE_COMPONENT_EDIT_PLAN_VERSION, x as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, E as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-Dl9IfFPG.mjs';
5
5
 
6
6
  const TABLE_COMPONENT_CONTEXT_PACK = {
7
7
  version: 'v1',
@@ -1 +1 @@
1
- export { A as AnalyticsTableConfigAdapterService, a as AnalyticsTableContractService, b as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, c as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, d as ColumnsConfigEditorComponent, D as DATE_PRESETS, e as DataFormatterComponent, f as DataFormattingService, F as FORMULA_TEMPLATES, g as FilterConfigService, h as FilterSettingsComponent, i as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, j as PRAXIS_FILTER_COMPONENT_METADATA, k as PRAXIS_TABLE_AUTHORING_MANIFEST, l as PRAXIS_TABLE_COMPONENT_METADATA, m as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, n as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, o as PraxisFilter, p as PraxisFilterWidgetConfigEditor, q as PraxisTable, r as PraxisTableConfigEditor, s as PraxisTableInlineAuthoringEditorComponent, t as PraxisTableToolbar, u as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, v as TABLE_COMPONENT_AI_CAPABILITIES, w as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, x as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, y as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, z as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, E as TABLE_COMPONENT_EDIT_PLAN_KIND, H as TABLE_COMPONENT_EDIT_PLAN_VERSION, I as TASK_PRESETS, K as TableDefaultsProvider, L as TableRulesEditorComponent, O as ToolbarActionsEditorComponent, V as ValueMappingEditorComponent, Q as VisualFormulaBuilderComponent, R as buildTableApplyPlan, U as coerceTableComponentEditPlan, W as coerceTableComponentEditPlans, X as compileTableComponentEditPlan, Y as compileTableComponentEditPlans, Z as createTableAuthoringDocument, _ as getActionId, $ as getEnum, a0 as getTableCapabilities, a1 as getTableComponentEditPlanCapabilities, a2 as isTableRendererSupportedByRichContentP0, a3 as mapTableRendererToRichContentP0, a4 as normalizeTableAuthoringDocument, a5 as parseLegacyOrTableDocument, a6 as providePraxisFilterMetadata, a7 as providePraxisTableMetadata, a8 as providePraxisTableToolbarAppearance, a9 as serializeTableAuthoringDocument, aa as toCanonicalTableConfig, ab as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-OCU_Au66.mjs';
1
+ export { A as AnalyticsTableConfigAdapterService, a as AnalyticsTableContractService, b as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, c as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, d as ColumnsConfigEditorComponent, D as DATE_PRESETS, e as DataFormatterComponent, f as DataFormattingService, F as FORMULA_TEMPLATES, g as FilterConfigService, h as FilterSettingsComponent, i as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, j as PRAXIS_FILTER_COMPONENT_METADATA, k as PRAXIS_TABLE_AUTHORING_MANIFEST, l as PRAXIS_TABLE_COMPONENT_METADATA, m as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, n as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, o as PraxisFilter, p as PraxisFilterWidgetConfigEditor, q as PraxisTable, r as PraxisTableConfigEditor, s as PraxisTableInlineAuthoringEditorComponent, t as PraxisTableToolbar, u as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, v as TABLE_COMPONENT_AI_CAPABILITIES, w as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, x as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, y as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, z as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, E as TABLE_COMPONENT_EDIT_PLAN_KIND, H as TABLE_COMPONENT_EDIT_PLAN_VERSION, I as TASK_PRESETS, K as TableDefaultsProvider, L as TableRulesEditorComponent, O as ToolbarActionsEditorComponent, V as ValueMappingEditorComponent, Q as VisualFormulaBuilderComponent, R as buildTableApplyPlan, U as coerceTableComponentEditPlan, W as coerceTableComponentEditPlans, X as compileTableComponentEditPlan, Y as compileTableComponentEditPlans, Z as createTableAuthoringDocument, _ as getActionId, $ as getEnum, a0 as getTableCapabilities, a1 as getTableComponentEditPlanCapabilities, a2 as isTableRendererSupportedByRichContentP0, a3 as mapTableRendererToRichContentP0, a4 as normalizeTableAuthoringDocument, a5 as parseLegacyOrTableDocument, a6 as providePraxisFilterMetadata, a7 as providePraxisTableMetadata, a8 as providePraxisTableToolbarAppearance, a9 as serializeTableAuthoringDocument, aa as toCanonicalTableConfig, ab as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-Dl9IfFPG.mjs';
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@praxisui/table",
3
- "version": "8.0.0-beta.88",
3
+ "version": "8.0.0-beta.89",
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
- "@praxisui/ai": "^8.0.0-beta.88",
9
- "@praxisui/core": "^8.0.0-beta.88",
10
- "@praxisui/dynamic-fields": "^8.0.0-beta.88",
11
- "@praxisui/dynamic-form": "^8.0.0-beta.88",
12
- "@praxisui/metadata-editor": "^8.0.0-beta.88",
13
- "@praxisui/rich-content": "^8.0.0-beta.88",
14
- "@praxisui/settings-panel": "^8.0.0-beta.88",
15
- "@praxisui/table-rule-builder": "^8.0.0-beta.88",
8
+ "@praxisui/ai": "^8.0.0-beta.89",
9
+ "@praxisui/core": "^8.0.0-beta.89",
10
+ "@praxisui/dynamic-fields": "^8.0.0-beta.89",
11
+ "@praxisui/dynamic-form": "^8.0.0-beta.89",
12
+ "@praxisui/metadata-editor": "^8.0.0-beta.89",
13
+ "@praxisui/rich-content": "^8.0.0-beta.89",
14
+ "@praxisui/settings-panel": "^8.0.0-beta.89",
15
+ "@praxisui/table-rule-builder": "^8.0.0-beta.89",
16
16
  "@angular/cdk": "^21.0.0",
17
17
  "@angular/forms": "^21.0.0",
18
18
  "@angular/material": "^21.0.0",
19
19
  "@angular/router": "^21.0.0",
20
- "@praxisui/dialog": "^8.0.0-beta.88",
20
+ "@praxisui/dialog": "^8.0.0-beta.89",
21
21
  "rxjs": "~7.8.0"
22
22
  },
23
23
  "dependencies": {