@praxisui/table 8.0.0-beta.97 → 8.0.0-beta.99
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.
- package/fesm2022/{praxisui-table-praxisui-table-Bj3EXbi8.mjs → praxisui-table-praxisui-table-rz7xSDwL.mjs} +2 -2
- package/fesm2022/{praxisui-table-table-agentic-authoring-turn-flow-CugH8lrQ.mjs → praxisui-table-table-agentic-authoring-turn-flow-CwklX13T.mjs} +52 -0
- package/fesm2022/{praxisui-table-table-ai.adapter-Bt7LXFTm.mjs → praxisui-table-table-ai.adapter-C96CotWq.mjs} +1 -1
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
|
@@ -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-
|
|
39950
|
+
import('./praxisui-table-table-ai.adapter-C96CotWq.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-
|
|
40569
|
+
import('./praxisui-table-table-agentic-authoring-turn-flow-CwklX13T.mjs')
|
|
40570
40570
|
.then(({ TableAgenticAuthoringTurnFlow }) => {
|
|
40571
40571
|
if (this.aiAssistantController || !this.aiAdapter)
|
|
40572
40572
|
return;
|
|
@@ -323,6 +323,10 @@ class TableAgenticAuthoringTurnFlow {
|
|
|
323
323
|
const declaredFilter = this.localDeclaredFilterApplyResponse(request, contextHints);
|
|
324
324
|
if (declaredFilter)
|
|
325
325
|
return declaredFilter;
|
|
326
|
+
if (this.selectedRecordGenericCommonalityAnalysisRequested(request)
|
|
327
|
+
&& this.selectedRecordSampleRows(contextHints).length > 0) {
|
|
328
|
+
return this.selectedRecordsGuidedAnalysisResponse(request, contextHints);
|
|
329
|
+
}
|
|
326
330
|
const recommendedIntent = this.toRecord(contextHints?.['recommendedIntent']);
|
|
327
331
|
const intentId = this.stringValue(recommendedIntent?.['id'])
|
|
328
332
|
|| this.stringValue(contextHints?.['opportunityId']);
|
|
@@ -6314,6 +6318,15 @@ class TableAgenticAuthoringTurnFlow {
|
|
|
6314
6318
|
'responda com uma das opcoes',
|
|
6315
6319
|
'responda com uma das opções',
|
|
6316
6320
|
'analisar tudo',
|
|
6321
|
+
'opcoes rapidas',
|
|
6322
|
+
'opções rápidas',
|
|
6323
|
+
'qual desses',
|
|
6324
|
+
'quais desses',
|
|
6325
|
+
'qual delas',
|
|
6326
|
+
'quais delas',
|
|
6327
|
+
'posso listar todas',
|
|
6328
|
+
'listar todas as coincidencias',
|
|
6329
|
+
'listar todas as coincidências',
|
|
6317
6330
|
].some((signal) => this.normalizedTextContainsApproxPhrase(normalized, signal));
|
|
6318
6331
|
}
|
|
6319
6332
|
selectedRecordReadOnlyAnalysisRequested(request) {
|
|
@@ -6348,6 +6361,45 @@ class TableAgenticAuthoringTurnFlow {
|
|
|
6348
6361
|
return true;
|
|
6349
6362
|
return this.selectedRecordPromptLooksConsultative(normalizedPrompt);
|
|
6350
6363
|
}
|
|
6364
|
+
selectedRecordGenericCommonalityAnalysisRequested(request) {
|
|
6365
|
+
if (!this.selectedRecordReadOnlyAnalysisRequested(request))
|
|
6366
|
+
return false;
|
|
6367
|
+
const normalizedPrompt = this.normalizeLabel(request?.prompt ?? '');
|
|
6368
|
+
if (!normalizedPrompt)
|
|
6369
|
+
return false;
|
|
6370
|
+
if (!this.normalizedTextContainsApproxPhrase(normalizedPrompt, 'em comum')
|
|
6371
|
+
&& !this.normalizedTextContainsApproxPhrase(normalizedPrompt, 'tem comum')) {
|
|
6372
|
+
return false;
|
|
6373
|
+
}
|
|
6374
|
+
if (this.promptRequestsSelectedRecordDerivedOperation(normalizedPrompt))
|
|
6375
|
+
return false;
|
|
6376
|
+
const contextHints = this.contextHintsFor(request);
|
|
6377
|
+
const selectedRecordsContext = this.selectedRecordsContextRecord(contextHints);
|
|
6378
|
+
const fieldTargets = [
|
|
6379
|
+
...(Array.isArray(selectedRecordsContext?.['fields']) ? selectedRecordsContext['fields'] : []),
|
|
6380
|
+
...this.filterFieldCatalogEntries.flatMap((entry) => [
|
|
6381
|
+
entry.name,
|
|
6382
|
+
entry.label,
|
|
6383
|
+
...entry.aliases,
|
|
6384
|
+
...entry.relatedColumnFields,
|
|
6385
|
+
...entry.relatedColumnLabels,
|
|
6386
|
+
]),
|
|
6387
|
+
...this.selectedRecordFilterCandidates(contextHints).flatMap((candidate) => [
|
|
6388
|
+
candidate['field'],
|
|
6389
|
+
candidate['label'],
|
|
6390
|
+
...(Array.isArray(candidate['relatedColumnFields']) ? candidate['relatedColumnFields'] : []),
|
|
6391
|
+
]),
|
|
6392
|
+
...this.selectedRecordSurfaces(contextHints).flatMap((surface) => [
|
|
6393
|
+
surface['id'],
|
|
6394
|
+
surface['label'],
|
|
6395
|
+
surface['title'],
|
|
6396
|
+
]),
|
|
6397
|
+
]
|
|
6398
|
+
.map((target) => this.normalizeLabel(this.stringValue(target)))
|
|
6399
|
+
.filter((target) => target.length > 2);
|
|
6400
|
+
return !fieldTargets.some((target) => this.normalizedTextHasStandaloneToken(normalizedPrompt, target)
|
|
6401
|
+
|| this.normalizedTextContainsApproxPhrase(normalizedPrompt, target));
|
|
6402
|
+
}
|
|
6351
6403
|
selectedRecordPromptLooksConsultative(normalizedPrompt) {
|
|
6352
6404
|
if (!normalizedPrompt)
|
|
6353
6405
|
return false;
|
|
@@ -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-
|
|
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-rz7xSDwL.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-
|
|
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-rz7xSDwL.mjs';
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/table",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.99",
|
|
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.
|
|
9
|
-
"@praxisui/core": "^8.0.0-beta.
|
|
10
|
-
"@praxisui/dynamic-fields": "^8.0.0-beta.
|
|
11
|
-
"@praxisui/dynamic-form": "^8.0.0-beta.
|
|
12
|
-
"@praxisui/metadata-editor": "^8.0.0-beta.
|
|
13
|
-
"@praxisui/rich-content": "^8.0.0-beta.
|
|
14
|
-
"@praxisui/settings-panel": "^8.0.0-beta.
|
|
15
|
-
"@praxisui/table-rule-builder": "^8.0.0-beta.
|
|
8
|
+
"@praxisui/ai": "^8.0.0-beta.99",
|
|
9
|
+
"@praxisui/core": "^8.0.0-beta.99",
|
|
10
|
+
"@praxisui/dynamic-fields": "^8.0.0-beta.99",
|
|
11
|
+
"@praxisui/dynamic-form": "^8.0.0-beta.99",
|
|
12
|
+
"@praxisui/metadata-editor": "^8.0.0-beta.99",
|
|
13
|
+
"@praxisui/rich-content": "^8.0.0-beta.99",
|
|
14
|
+
"@praxisui/settings-panel": "^8.0.0-beta.99",
|
|
15
|
+
"@praxisui/table-rule-builder": "^8.0.0-beta.99",
|
|
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.
|
|
20
|
+
"@praxisui/dialog": "^8.0.0-beta.99",
|
|
21
21
|
"rxjs": "~7.8.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|