@praxisui/table 8.0.0-beta.96 → 8.0.0-beta.98

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.
@@ -39947,7 +39947,7 @@ class PraxisTable {
39947
39947
  if (this.aiAdapter || this.aiAdapterLoadStarted)
39948
39948
  return;
39949
39949
  this.aiAdapterLoadStarted = true;
39950
- import('./praxisui-table-table-ai.adapter-DR0VP12I.mjs')
39950
+ import('./praxisui-table-table-ai.adapter-CkynHDDv.mjs')
39951
39951
  .then(({ TableAiAdapter }) => {
39952
39952
  this.aiAdapter = new TableAiAdapter(this);
39953
39953
  this.initializeAiAssistantController();
@@ -40566,7 +40566,7 @@ class PraxisTable {
40566
40566
  initializeAiAssistantController() {
40567
40567
  if (!this.aiAdapter || this.aiAssistantController)
40568
40568
  return;
40569
- import('./praxisui-table-table-agentic-authoring-turn-flow-DSn29-0N.mjs')
40569
+ import('./praxisui-table-table-agentic-authoring-turn-flow-DZyPFYjL.mjs')
40570
40570
  .then(({ TableAgenticAuthoringTurnFlow }) => {
40571
40571
  if (this.aiAssistantController || !this.aiAdapter)
40572
40572
  return;
@@ -2321,6 +2321,10 @@ class TableAgenticAuthoringTurnFlow {
2321
2321
  response = this.normalizeCompoundColumnPresentationPlan(response, request);
2322
2322
  response = this.normalizeComputedColumnAuxiliaryMaterializations(response);
2323
2323
  if (response.type === 'clarification' || response.type === 'info' || response.type === 'error') {
2324
+ const selectedRecordReadonlyClarificationBoundary = this.selectedRecordReadonlyClarificationBoundaryResponse(response, request);
2325
+ if (selectedRecordReadonlyClarificationBoundary) {
2326
+ return selectedRecordReadonlyClarificationBoundary;
2327
+ }
2324
2328
  const continuedEarlyColumnPlan = this.columnPlanForMisroutedVisualSemanticsClarification(response, request);
2325
2329
  if (continuedEarlyColumnPlan) {
2326
2330
  return this.compileAdapterResponse(continuedEarlyColumnPlan, request);
@@ -6268,6 +6272,59 @@ class TableAgenticAuthoringTurnFlow {
6268
6272
  ],
6269
6273
  };
6270
6274
  }
6275
+ selectedRecordReadonlyClarificationBoundaryResponse(response, request) {
6276
+ if (!this.selectedRecordReadOnlyAnalysisRequested(request))
6277
+ return null;
6278
+ if (response.patch)
6279
+ return null;
6280
+ const contextHints = this.contextHintsFor(request);
6281
+ if (!this.selectedRecordSampleRows(contextHints).length)
6282
+ return null;
6283
+ if (!this.responseAsksForSelectedRecordAnalysisDimension(response))
6284
+ return null;
6285
+ return {
6286
+ type: 'info',
6287
+ sessionId: response.sessionId ?? request?.sessionId,
6288
+ message: this.selectedRecordsAnalyticalSummary(contextHints),
6289
+ warnings: [
6290
+ ...(response.warnings ?? []),
6291
+ 'selected-record-readonly-analysis-clarification-collapsed',
6292
+ 'A plataforma respondeu a analise read-only usando selectedRecordsContext.sampleRows em vez de devolver uma clarificacao generica de campo.',
6293
+ ],
6294
+ };
6295
+ }
6296
+ responseAsksForSelectedRecordAnalysisDimension(response) {
6297
+ const text = [
6298
+ response.message,
6299
+ response.explanation,
6300
+ ...(response.questions ?? []),
6301
+ ].map((entry) => this.stringValue(entry)).join(' ');
6302
+ const normalized = this.normalizeLabel(text);
6303
+ if (!normalized)
6304
+ return false;
6305
+ return [
6306
+ 'por qual campo',
6307
+ 'qual campo',
6308
+ 'quais campos',
6309
+ 'campo voce quer',
6310
+ 'campo você quer',
6311
+ 'escolha um campo',
6312
+ 'opcoes uteis',
6313
+ 'opções úteis',
6314
+ 'responda com uma das opcoes',
6315
+ 'responda com uma das opções',
6316
+ 'analisar tudo',
6317
+ 'opcoes rapidas',
6318
+ 'opções rápidas',
6319
+ 'qual desses',
6320
+ 'quais desses',
6321
+ 'qual delas',
6322
+ 'quais delas',
6323
+ 'posso listar todas',
6324
+ 'listar todas as coincidencias',
6325
+ 'listar todas as coincidências',
6326
+ ].some((signal) => this.normalizedTextContainsApproxPhrase(normalized, signal));
6327
+ }
6271
6328
  selectedRecordReadOnlyAnalysisRequested(request) {
6272
6329
  const contextHints = this.contextHintsFor(request);
6273
6330
  const selectedCount = this.extractSelectedRecordsCount(contextHints);
@@ -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-BKb6n5uc.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-lLVoKobh.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-BKb6n5uc.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-lLVoKobh.mjs';
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@praxisui/table",
3
- "version": "8.0.0-beta.96",
3
+ "version": "8.0.0-beta.98",
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.96",
9
- "@praxisui/core": "^8.0.0-beta.96",
10
- "@praxisui/dynamic-fields": "^8.0.0-beta.96",
11
- "@praxisui/dynamic-form": "^8.0.0-beta.96",
12
- "@praxisui/metadata-editor": "^8.0.0-beta.96",
13
- "@praxisui/rich-content": "^8.0.0-beta.96",
14
- "@praxisui/settings-panel": "^8.0.0-beta.96",
15
- "@praxisui/table-rule-builder": "^8.0.0-beta.96",
8
+ "@praxisui/ai": "^8.0.0-beta.98",
9
+ "@praxisui/core": "^8.0.0-beta.98",
10
+ "@praxisui/dynamic-fields": "^8.0.0-beta.98",
11
+ "@praxisui/dynamic-form": "^8.0.0-beta.98",
12
+ "@praxisui/metadata-editor": "^8.0.0-beta.98",
13
+ "@praxisui/rich-content": "^8.0.0-beta.98",
14
+ "@praxisui/settings-panel": "^8.0.0-beta.98",
15
+ "@praxisui/table-rule-builder": "^8.0.0-beta.98",
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.96",
20
+ "@praxisui/dialog": "^8.0.0-beta.98",
21
21
  "rxjs": "~7.8.0"
22
22
  },
23
23
  "dependencies": {