@praxisui/table 10.0.0-rc.25 → 10.0.0-rc.26
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/ai/component-registry.json +19 -2
- package/fesm2022/praxisui-table-authoring.mjs +33 -1
- package/fesm2022/{praxisui-table-praxisui-table-B6XoXX5x.mjs → praxisui-table-praxisui-table-YnI6Bi6b.mjs} +2331 -203
- package/fesm2022/{praxisui-table-table-agentic-authoring-turn-flow-fgmem5JL.mjs → praxisui-table-table-agentic-authoring-turn-flow-DU69df4l.mjs} +1 -1
- package/fesm2022/{praxisui-table-table-ai.adapter-ib4h1Xy5.mjs → praxisui-table-table-ai.adapter-BFVh0Uhb.mjs} +1 -1
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/src/lib/praxis-table.json-api.md +10 -5
- package/types/praxisui-table.d.ts +128 -13
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-10-
|
|
3
|
+
"generatedAt": "2026-10-15T19:07:41.629Z",
|
|
4
4
|
"packageName": "@praxisui/table",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.26",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 3,
|
|
@@ -8037,6 +8037,23 @@
|
|
|
8037
8037
|
"public": true,
|
|
8038
8038
|
"group": "data"
|
|
8039
8039
|
}
|
|
8040
|
+
},
|
|
8041
|
+
{
|
|
8042
|
+
"id": "queryContextChange",
|
|
8043
|
+
"label": "Query Context Change",
|
|
8044
|
+
"direction": "output",
|
|
8045
|
+
"semanticKind": "query-context",
|
|
8046
|
+
"schema": {
|
|
8047
|
+
"id": "PraxisDataQueryContext",
|
|
8048
|
+
"kind": "ts-type",
|
|
8049
|
+
"ref": "PraxisDataQueryContext"
|
|
8050
|
+
},
|
|
8051
|
+
"cardinality": "stream",
|
|
8052
|
+
"description": "Contexto de consulta atualizado apos reconciliacao ou limpeza de filtros editaveis na regiao unica de filtros da tabela.",
|
|
8053
|
+
"exposure": {
|
|
8054
|
+
"public": true,
|
|
8055
|
+
"group": "data"
|
|
8056
|
+
}
|
|
8040
8057
|
}
|
|
8041
8058
|
],
|
|
8042
8059
|
"runtimeProfiles": [
|
|
@@ -450,12 +450,44 @@ class TableDetailTreeDraft {
|
|
|
450
450
|
}
|
|
451
451
|
add(node, nested = false) {
|
|
452
452
|
const selected = this.selected()?.node;
|
|
453
|
-
const
|
|
453
|
+
const isCardLike = selected?.type === 'card' || (!selected?.type && Array.isArray(selected?.content));
|
|
454
|
+
const childKey = selected?.type === 'cardGrid'
|
|
455
|
+
? 'cards'
|
|
456
|
+
: (isCardLike || selected?.type === 'tab')
|
|
457
|
+
? 'content'
|
|
458
|
+
: 'items';
|
|
454
459
|
const parent = nested && selected ? selected : this.schema;
|
|
455
460
|
const key = nested && selected ? childKey : 'items';
|
|
456
461
|
if (!nested && this.schema.layout === 'tabs' && node.type !== 'tab') {
|
|
457
462
|
node = { type: 'tab', title: node.title || node.label || node.type, content: [node] };
|
|
458
463
|
}
|
|
464
|
+
else if (nested && selected?.type === 'cardGrid') {
|
|
465
|
+
if (node.type === 'cardGrid' && Array.isArray(node.cards) && node.cards.length > 0) {
|
|
466
|
+
node = structuredClone(node.cards[0]);
|
|
467
|
+
}
|
|
468
|
+
else if (node.type === 'card') {
|
|
469
|
+
node = {
|
|
470
|
+
...(node.id ? { id: node.id } : {}),
|
|
471
|
+
title: node.title ?? '',
|
|
472
|
+
...(node.subtitle !== undefined ? { subtitle: node.subtitle } : {}),
|
|
473
|
+
content: Array.isArray(node.content) && node.content.length
|
|
474
|
+
? node.content
|
|
475
|
+
: [{ type: 'text', text: node.title || 'Detalhe' }],
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
else if (!Array.isArray(node.content)) {
|
|
479
|
+
node = {
|
|
480
|
+
title: node.title || node.label || '',
|
|
481
|
+
content: [node],
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
else if (nested && (isCardLike || selected?.type === 'compose') && node.type === 'cardGrid' && Array.isArray(node.cards)) {
|
|
486
|
+
const firstCardContent = node.cards[0]?.content;
|
|
487
|
+
if (Array.isArray(firstCardContent) && firstCardContent.length > 0) {
|
|
488
|
+
node = structuredClone(firstCardContent[0]);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
459
491
|
if (!Array.isArray(parent[key]))
|
|
460
492
|
parent[key] = [];
|
|
461
493
|
parent[key].push(node);
|