@praxisui/table 8.0.0-beta.100 → 8.0.0-beta.101
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-MXizgJYx.mjs → praxisui-table-praxisui-table-BW05k1Xw.mjs} +279 -15
- package/fesm2022/{praxisui-table-table-agentic-authoring-turn-flow-BJWah3jp.mjs → praxisui-table-table-agentic-authoring-turn-flow-B9D6QMS2.mjs} +1509 -183
- package/fesm2022/{praxisui-table-table-ai.adapter-DFyMRt4g.mjs → praxisui-table-table-ai.adapter-C9ch90hi.mjs} +42 -2
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/types/praxisui-table.d.ts +10 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { firstValueFrom } from 'rxjs';
|
|
2
|
-
import { BaseAiAdapter, createComponentAuthoringContext } from '@praxisui/ai';
|
|
2
|
+
import { BaseAiAdapter, sanitizePraxisAssistantText, 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-BW05k1Xw.mjs';
|
|
5
5
|
|
|
6
6
|
const TABLE_COMPONENT_CONTEXT_PACK = {
|
|
7
7
|
version: 'v1',
|
|
@@ -1991,6 +1991,46 @@ class TableAiAdapter extends BaseAiAdapter {
|
|
|
1991
1991
|
isLoading: false // TODO: expose real loading flag
|
|
1992
1992
|
};
|
|
1993
1993
|
}
|
|
1994
|
+
getFieldValueSamples(field, maxValues = 12) {
|
|
1995
|
+
const normalizedField = typeof field === 'string' ? field.trim() : '';
|
|
1996
|
+
if (!normalizedField || this.isSensitiveFieldForAiAssistantSamples(normalizedField))
|
|
1997
|
+
return [];
|
|
1998
|
+
const column = (this.getCurrentConfig().columns || [])
|
|
1999
|
+
.find((candidate) => candidate?.field === normalizedField);
|
|
2000
|
+
if (!column)
|
|
2001
|
+
return [];
|
|
2002
|
+
const values = new Set();
|
|
2003
|
+
const rows = Array.isArray(this.table.dataSource?.data) ? this.table.dataSource.data : [];
|
|
2004
|
+
for (const row of rows) {
|
|
2005
|
+
if (!row || typeof row !== 'object')
|
|
2006
|
+
continue;
|
|
2007
|
+
const displayValue = this.table.getCellValue(row, column);
|
|
2008
|
+
const text = this.safeAiAssistantValueText(displayValue);
|
|
2009
|
+
if (text)
|
|
2010
|
+
values.add(text);
|
|
2011
|
+
if (values.size >= maxValues)
|
|
2012
|
+
break;
|
|
2013
|
+
}
|
|
2014
|
+
return [...values];
|
|
2015
|
+
}
|
|
2016
|
+
safeAiAssistantValueText(value) {
|
|
2017
|
+
if (value === null || value === undefined)
|
|
2018
|
+
return '';
|
|
2019
|
+
if (value instanceof Date)
|
|
2020
|
+
return sanitizePraxisAssistantText(value.toISOString(), 120);
|
|
2021
|
+
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
|
|
2022
|
+
return sanitizePraxisAssistantText(value, 120);
|
|
2023
|
+
}
|
|
2024
|
+
try {
|
|
2025
|
+
return sanitizePraxisAssistantText(JSON.stringify(value), 120);
|
|
2026
|
+
}
|
|
2027
|
+
catch {
|
|
2028
|
+
return sanitizePraxisAssistantText(String(value), 120);
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
isSensitiveFieldForAiAssistantSamples(field) {
|
|
2032
|
+
return /(?:password|senha|token|secret|api[_-]?key|authorization|bearer|blob|bytes|base64|file|payload)/i.test(field);
|
|
2033
|
+
}
|
|
1994
2034
|
getAuthoringContext() {
|
|
1995
2035
|
const filterFieldCatalog = this.buildFilterFieldCatalog();
|
|
1996
2036
|
const selectedRowsContext = this.getSelectedRowsAuthoringContext();
|
|
@@ -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-BW05k1Xw.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.101",
|
|
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.101",
|
|
9
|
+
"@praxisui/core": "^8.0.0-beta.101",
|
|
10
|
+
"@praxisui/dynamic-fields": "^8.0.0-beta.101",
|
|
11
|
+
"@praxisui/dynamic-form": "^8.0.0-beta.101",
|
|
12
|
+
"@praxisui/metadata-editor": "^8.0.0-beta.101",
|
|
13
|
+
"@praxisui/rich-content": "^8.0.0-beta.101",
|
|
14
|
+
"@praxisui/settings-panel": "^8.0.0-beta.101",
|
|
15
|
+
"@praxisui/table-rule-builder": "^8.0.0-beta.101",
|
|
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.101",
|
|
21
21
|
"rxjs": "~7.8.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
@@ -1250,6 +1250,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1250
1250
|
private aiAssistantController;
|
|
1251
1251
|
private aiAssistantStateSubscription;
|
|
1252
1252
|
private readonly aiApi;
|
|
1253
|
+
private readonly agenticTurnClient;
|
|
1253
1254
|
private readonly assistantSessions;
|
|
1254
1255
|
private readonly aiTurnOrchestrator;
|
|
1255
1256
|
private readonly aiAssistantSessionEffect;
|
|
@@ -1336,6 +1337,12 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1336
1337
|
onAiAssistantRetry(): void;
|
|
1337
1338
|
onAiAssistantCancel(): void;
|
|
1338
1339
|
onAiAssistantQuickReply(reply: PraxisAssistantShellQuickReply): void;
|
|
1340
|
+
private mergeAiAssistantQuickReplyContextHints;
|
|
1341
|
+
private resolveAiAssistantVisualPresentationQuickReplyPrompt;
|
|
1342
|
+
private resolveAiAssistantVisualPresentationQuickReplyContextHints;
|
|
1343
|
+
private resolveAiAssistantVisualPresentationRenderer;
|
|
1344
|
+
private resolveAiAssistantVisualPresentationTargetField;
|
|
1345
|
+
private aiAssistantVisualPresentationTargetScore;
|
|
1339
1346
|
getAiAssistantRecommendedIntents(): readonly PraxisAssistantRecommendedIntent[];
|
|
1340
1347
|
private getAiAssistantCapabilityDiscoveryRecommendations;
|
|
1341
1348
|
onAiAssistantRecommendedIntent(intent: PraxisAssistantRecommendedIntent): void;
|
|
@@ -1926,7 +1933,8 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1926
1933
|
getIconName(row: any, column: ColumnDefinition): string | null;
|
|
1927
1934
|
getIconColor(_row: any, column: ColumnDefinition): string | null;
|
|
1928
1935
|
getIconStyle(_row: any, column: ColumnDefinition): Record<string, string> | null;
|
|
1929
|
-
getIconAriaLabel(
|
|
1936
|
+
getIconAriaLabel(row: any, column: ColumnDefinition): string | null;
|
|
1937
|
+
getIconText(row: any, column: ColumnDefinition): string | null;
|
|
1930
1938
|
getIconRichContentNodes(row: any, column: ColumnDefinition): RichBlockNode[];
|
|
1931
1939
|
/**
|
|
1932
1940
|
* Lightweight, controlled evaluator for string/number expressions using row context.
|
|
@@ -1973,6 +1981,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1973
1981
|
getComposeGapStyle(row: any, column: ColumnDefinition): any;
|
|
1974
1982
|
private getComposeItemField;
|
|
1975
1983
|
getComposeItemValue(row: any, base: ColumnDefinition, item: any): any;
|
|
1984
|
+
private asComposeValueItemColumn;
|
|
1976
1985
|
asItemColumn(base: ColumnDefinition, item: any): any;
|
|
1977
1986
|
getItemEffectiveType(row: any, column: ColumnDefinition, item: any): any;
|
|
1978
1987
|
private mergeRenderer;
|