@praxisui/table 8.0.0-beta.91 → 8.0.0-beta.92

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-D034N3RL.mjs')
39948
+ import('./praxisui-table-table-ai.adapter-D6gyv_KU.mjs')
39949
39949
  .then(({ TableAiAdapter }) => {
39950
39950
  this.aiAdapter = new TableAiAdapter(this);
39951
39951
  this.initializeAiAssistantController();
@@ -40540,7 +40540,7 @@ class PraxisTable {
40540
40540
  initializeAiAssistantController() {
40541
40541
  if (!this.aiAdapter || this.aiAssistantController)
40542
40542
  return;
40543
- import('./praxisui-table-table-agentic-authoring-turn-flow-BZc3KmLG.mjs')
40543
+ import('./praxisui-table-table-agentic-authoring-turn-flow-CGr29WF0.mjs')
40544
40544
  .then(({ TableAgenticAuthoringTurnFlow }) => {
40545
40545
  if (this.aiAssistantController || !this.aiAdapter)
40546
40546
  return;
@@ -2228,7 +2228,7 @@ class TableAgenticAuthoringTurnFlow {
2228
2228
  }
2229
2229
  if (response.patch && Object.keys(response.patch).length > 0) {
2230
2230
  const warnings = response.warnings?.filter(Boolean) ?? [];
2231
- const quickReplies = this.shouldSuppressReviewQuickReplies(response.patch)
2231
+ const quickReplies = this.shouldSuppressReviewQuickReplies(response.patch, response)
2232
2232
  ? []
2233
2233
  : this.toQuickReplies(response, request);
2234
2234
  const diagnostics = this.buildReviewDiagnostics(response, warnings);
@@ -2259,8 +2259,11 @@ class TableAgenticAuthoringTurnFlow {
2259
2259
  canApply: false,
2260
2260
  };
2261
2261
  }
2262
- shouldSuppressReviewQuickReplies(patch) {
2263
- return this.tableFilterApplyOperations(patch).length > 0;
2262
+ shouldSuppressReviewQuickReplies(patch, response) {
2263
+ if (Array.isArray(response.optionPayloads) && response.optionPayloads.length > 0)
2264
+ return false;
2265
+ const record = this.toRecord(patch);
2266
+ return !!record && Object.keys(record).length > 0;
2264
2267
  }
2265
2268
  isTurnInProgressResponse(response) {
2266
2269
  return this.normalizeLabel(response.code ?? '') === 'turn in progress';
@@ -2289,6 +2292,9 @@ class TableAgenticAuthoringTurnFlow {
2289
2292
  const executableResponse = {
2290
2293
  ...response,
2291
2294
  patch: normalizedExecutable.patch,
2295
+ ...(this.safeReviewText(normalizedExecutable.explanation)
2296
+ ? { explanation: this.safeReviewText(normalizedExecutable.explanation) }
2297
+ : {}),
2292
2298
  ...(normalizedExecutable.componentEditPlan
2293
2299
  ? { componentEditPlan: normalizedExecutable.componentEditPlan }
2294
2300
  : {}),
@@ -6311,7 +6317,33 @@ class TableAgenticAuthoringTurnFlow {
6311
6317
  ...planSummaries.map((summary) => `- ${summary}`),
6312
6318
  ].join('\n');
6313
6319
  }
6314
- return response.explanation || 'Proposta de alteração pronta para revisar.';
6320
+ const explanation = this.safeReviewText(response.explanation);
6321
+ if (explanation)
6322
+ return explanation;
6323
+ const message = this.safeReviewText(response.message);
6324
+ if (message)
6325
+ return message;
6326
+ return 'Proposta de alteração pronta para revisar.';
6327
+ }
6328
+ safeReviewText(value) {
6329
+ const text = this.stringValue(value).trim();
6330
+ if (!text)
6331
+ return '';
6332
+ const normalized = this.normalizeLabel(text);
6333
+ const looksLikeStructuredEnvelope = ((normalized.includes('componenteditplan') || normalized.includes('tableruntimeoperations'))
6334
+ && normalized.includes('operationid')) || normalized.includes('responsemode componenteditplan');
6335
+ if (looksLikeStructuredEnvelope)
6336
+ return '';
6337
+ if ((text.startsWith('{') && text.endsWith('}')) || (text.startsWith('[') && text.endsWith(']'))) {
6338
+ try {
6339
+ JSON.parse(text);
6340
+ return '';
6341
+ }
6342
+ catch {
6343
+ // Keep non-JSON prose even when it starts with a brace-like character.
6344
+ }
6345
+ }
6346
+ return text;
6315
6347
  }
6316
6348
  describeTableRuntimeOperations(patch) {
6317
6349
  const envelope = this.toRecord(this.toRecord(patch)?.['tableRuntimeOperations']);
@@ -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-BMNKohqK.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-bE4K3OK_.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-BMNKohqK.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-bE4K3OK_.mjs';
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@praxisui/table",
3
- "version": "8.0.0-beta.91",
3
+ "version": "8.0.0-beta.92",
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.91",
9
- "@praxisui/core": "^8.0.0-beta.91",
10
- "@praxisui/dynamic-fields": "^8.0.0-beta.91",
11
- "@praxisui/dynamic-form": "^8.0.0-beta.91",
12
- "@praxisui/metadata-editor": "^8.0.0-beta.91",
13
- "@praxisui/rich-content": "^8.0.0-beta.91",
14
- "@praxisui/settings-panel": "^8.0.0-beta.91",
15
- "@praxisui/table-rule-builder": "^8.0.0-beta.91",
8
+ "@praxisui/ai": "^8.0.0-beta.92",
9
+ "@praxisui/core": "^8.0.0-beta.92",
10
+ "@praxisui/dynamic-fields": "^8.0.0-beta.92",
11
+ "@praxisui/dynamic-form": "^8.0.0-beta.92",
12
+ "@praxisui/metadata-editor": "^8.0.0-beta.92",
13
+ "@praxisui/rich-content": "^8.0.0-beta.92",
14
+ "@praxisui/settings-panel": "^8.0.0-beta.92",
15
+ "@praxisui/table-rule-builder": "^8.0.0-beta.92",
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.91",
20
+ "@praxisui/dialog": "^8.0.0-beta.92",
21
21
  "rxjs": "~7.8.0"
22
22
  },
23
23
  "dependencies": {