@praxisui/table 10.0.0-rc.62 → 10.0.0-rc.64

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.
@@ -20,7 +20,7 @@ tags:
20
20
  - "virtualization"
21
21
  toc: true
22
22
  sidebar: true
23
- last_updated: "2026-07-30"
23
+ last_updated: "2026-11-25"
24
24
  ---
25
25
 
26
26
  # ADR: Governança de células ricas em tabelas
@@ -31,13 +31,13 @@ last_updated: "2026-07-30"
31
31
 
32
32
  ## Context
33
33
 
34
- A PraxisTable suporta células compostas, indicadores, avaliação, toggle e dez tipos de microvisualização. A adoção corporativa exige distinguir suporte de runtime de adequação para uma célula compacta.
34
+ A PraxisTable suporta células compostas, indicadores, avaliação, toggle e onze tipos de microvisualização. A adoção corporativa exige distinguir suporte de runtime de adequação para uma célula compacta.
35
35
 
36
36
  O laboratório executável comprova paridade normal/virtualizada, nomes acessíveis, presença geométrica dos elementos compactos nas larguras de 120 px, 180 px e 260 px, e reciclagem de DOM para 1.000 linhas. A aprovação visual continua uma revisão humana: a evidência anexa capturada pela E2E não é um baseline de pixels dependente de plataforma.
37
37
 
38
38
  ## Decision
39
39
 
40
- Todos os tipos table-safe continuam suportados. `delta`, `bullet`, `radial`, `harveyBall` e `stackedBar` são recomendados. `line`, `area` e `column` exigem espaço horizontal; `comparison` aumenta a altura da linha; `processFlow` exige etapas reconhecíveis.
40
+ Todos os tipos table-safe continuam suportados. `delta`, `bullet`, `radial`, `harveyBall` e `stackedBar` são recomendados. `line`, `area`, `column` e `waterfall` exigem espaço horizontal; `comparison` aumenta a altura da linha; `processFlow` exige etapas reconhecíveis.
41
41
 
42
42
  Essas condições são diagnóstico de authoring e grounding de IA, não bloqueio de runtime. Não será introduzido limite numérico rígido sem evidência de produto recorrente.
43
43
 
@@ -50,7 +50,7 @@ Uma regra `conditionalRenderers[]` pode materializar a mesma microvisualização
50
50
  Antes de aprovar um tipo condicional em uma tabela corporativa, a revisão deve registrar evidência do laboratório nas larguras de 120 px, 180 px e 260 px e responder:
51
51
 
52
52
  - o visual acelera uma decisão que a coluna precisa suportar, em vez de apenas decorar a linha;
53
- - `line`, `area` e `column` permanecem interpretáveis na largura reservada; caso contrário, a informação deve migrar para detalhe expandido ou outra superfície;
53
+ - `line`, `area`, `column` e `waterfall` permanecem interpretáveis na largura reservada; caso contrário, a informação deve migrar para detalhe expandido ou outra superfície;
54
54
  - `comparison` justifica a altura adicional da linha; `processFlow` mantém a sequência compreensível mesmo quando os rótulos visíveis são reduzidos;
55
55
  - nome acessível, fallback de dados ausentes e contraste preservam o mesmo significado da representação visual;
56
56
  - na tabela virtualizada, a rolagem mantém a célula materializada sem crescimento proporcional do DOM.
@@ -78,3 +78,4 @@ O resultado deve ser **aprovar**, **redesenhar a célula** ou **mover o detalhe
78
78
  - `projects/praxis-table/src/lib/columns-config-editor/columns-config-editor.component.ts`
79
79
  - `src/app/features/table-enterprise-rich-cells-lab/`
80
80
  - `projects/praxis-table/test-dev/e2e/table-enterprise-rich-cells-lab.playwright.spec.ts`
81
+ - `docs/2026-11-micro-visualizations-echarts-unification-adr.md`
@@ -1,6 +1,6 @@
1
1
  import { normalizePraxisResourcePath, uiLayoutJsonIdentity, cloneBoundedUiLayoutJsonDocument, derivePageChildRuntimeId } from '@praxisui/core';
2
2
  import { validateRichContentDocument, isSafeRichContentClassName } from '@praxisui/rich-content';
3
- import { resolveColumnTypeFromFieldDefinition, deepMerge, isPraxisPresentationVisualizationTableSafe, resolveTextMaskFormatFromFieldDefinition } from '@praxisui/core/schema';
3
+ import { resolveColumnTypeFromFieldDefinition, deepMerge, isPraxisPresentationVisualizationTableSafe, resolveTextMaskFormatFromFieldDefinition, buildSchemaSemanticColumnRenderer, resolveSchemaConditionalRenderers } from '@praxisui/core/schema';
4
4
 
5
5
  const ORIGIN = '__praxisAuthoredDisabled';
6
6
  const hasOwn$1 = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
@@ -1598,115 +1598,22 @@ class TableSchemaColumnProjector {
1598
1598
  return undefined;
1599
1599
  }
1600
1600
  applySchemaSemanticCellPresentation(field, col, presentation) {
1601
- if (!presentation || typeof presentation !== 'object')
1602
- return;
1603
- if (col.renderer?.type)
1604
- return;
1605
- const presenter = this.normalizePresentationToken(presentation.presenter ?? presentation.variant);
1606
- const textField = field.name;
1607
- const color = this.resolveSemanticPresentationColor(presentation.tone);
1608
- const variant = this.resolveSemanticPresentationVariant(presentation.appearance);
1609
- const icon = this.firstNonEmptyString(presentation.icon);
1610
- const tooltipText = this.firstNonEmptyString(presentation.tooltip);
1611
- const tooltip = tooltipText ? { text: tooltipText } : undefined;
1612
- const fixedText = this.firstNonEmptyString(presentation.label);
1613
- if (presenter === 'chip') {
1614
- col.renderer = {
1615
- type: 'chip',
1616
- chip: {
1617
- text: fixedText,
1618
- textField: fixedText ? undefined : textField,
1619
- color,
1620
- icon,
1621
- variant,
1622
- tooltip,
1623
- },
1624
- };
1625
- return;
1626
- }
1627
- if (presenter === 'badge' || presenter === 'status') {
1628
- col.renderer = {
1629
- type: 'badge',
1630
- badge: {
1631
- text: fixedText,
1632
- textField: fixedText ? undefined : textField,
1633
- color,
1634
- icon,
1635
- variant,
1636
- tooltip,
1637
- },
1638
- };
1639
- return;
1640
- }
1641
- if (presenter === 'progress') {
1642
- const valueExpr = `= row.${textField.replace(/\./g, '?.')}`;
1643
- col.renderer = {
1644
- type: 'progress',
1645
- progress: {
1646
- valueExpr,
1647
- showLabel: true,
1648
- ...(color ? { color } : {}),
1649
- },
1650
- };
1651
- return;
1652
- }
1653
- if (presenter === 'rating') {
1654
- const valueExpr = `= row.${textField.replace(/\./g, '?.')}`;
1655
- col.renderer = {
1656
- type: 'rating',
1657
- rating: {
1658
- valueExpr,
1659
- max: 5,
1660
- ...(color ? { color } : {}),
1661
- },
1662
- };
1663
- return;
1601
+ const options = {
1602
+ includeUndefinedBadgeChipFields: true,
1603
+ includeUndefinedBadgeChipText: true,
1604
+ allowTextPresenterAsIconValue: true,
1605
+ };
1606
+ if (presentation && typeof presentation === 'object' && !col.renderer?.type) {
1607
+ const renderer = buildSchemaSemanticColumnRenderer(field, presentation, options);
1608
+ if (renderer) {
1609
+ col.renderer = renderer;
1610
+ }
1664
1611
  }
1665
- if (presenter === 'iconvalue' || presenter === 'text' || !presenter) {
1666
- const rendererIcon = icon || this.firstNonEmptyString(field.icon);
1667
- const affixes = this.resolveSemanticPresentationAffixes(presentation);
1668
- const hasAffixes = !!(affixes.prefix || affixes.suffix);
1669
- if (!rendererIcon && !hasAffixes)
1670
- return;
1671
- if (affixes.prefix || affixes.suffix || tooltipText) {
1672
- col.renderer = {
1673
- type: 'icon',
1674
- icon: {
1675
- ...(!hasAffixes && rendererIcon ? { name: rendererIcon } : {}),
1676
- textField,
1677
- ...(color ? { color } : {}),
1678
- ...(tooltipText ? { ariaLabel: tooltipText } : {}),
1679
- ...affixes,
1680
- },
1681
- };
1682
- return;
1612
+ if (!col.conditionalRenderers?.length) {
1613
+ const conditionalRenderers = resolveSchemaConditionalRenderers(field, options);
1614
+ if (conditionalRenderers?.length) {
1615
+ col.conditionalRenderers = conditionalRenderers;
1683
1616
  }
1684
- if (!rendererIcon)
1685
- return;
1686
- col.renderer = {
1687
- type: 'compose',
1688
- compose: {
1689
- items: [
1690
- {
1691
- type: 'icon',
1692
- icon: {
1693
- name: rendererIcon,
1694
- ...(color ? { color } : {}),
1695
- ...(field.label ? { ariaLabel: field.label } : {}),
1696
- },
1697
- },
1698
- {
1699
- type: 'value',
1700
- field: textField,
1701
- },
1702
- ],
1703
- layout: {
1704
- direction: 'row',
1705
- gap: 6,
1706
- align: 'center',
1707
- },
1708
- },
1709
- };
1710
1617
  }
1711
1618
  }
1712
1619
  resolveSchemaCurrencyFormat(field) {
@@ -1785,33 +1692,6 @@ class TableSchemaColumnProjector {
1785
1692
  .map((part, index) => index === 0 ? this.capitalizeSchemaEnumPart(part) : part)
1786
1693
  .join(' ');
1787
1694
  }
1788
- resolveSemanticPresentationColor(tone) {
1789
- const normalized = this.normalizePresentationToken(tone);
1790
- if (normalized === 'neutral')
1791
- return 'basic';
1792
- if (!normalized)
1793
- return undefined;
1794
- if (normalized === 'danger')
1795
- return 'warn';
1796
- if (normalized === 'warning')
1797
- return 'warn';
1798
- return normalized;
1799
- }
1800
- resolveSemanticPresentationVariant(appearance) {
1801
- const normalized = this.normalizePresentationToken(appearance);
1802
- if (normalized === 'filled' || normalized === 'outlined' || normalized === 'soft' || normalized === 'plain') {
1803
- return normalized;
1804
- }
1805
- return undefined;
1806
- }
1807
- resolveSemanticPresentationAffixes(presentation) {
1808
- const prefix = this.firstNonEmptyString(presentation.prefix);
1809
- const suffix = this.firstNonEmptyString(presentation.suffix);
1810
- return {
1811
- ...(prefix ? { prefix } : {}),
1812
- ...(suffix ? { suffix } : {}),
1813
- };
1814
- }
1815
1695
  firstFiniteNumber(...values) {
1816
1696
  for (const value of values) {
1817
1697
  const numeric = typeof value === 'number' ? value : Number(value);
@@ -12,7 +12,7 @@ import * as i14 from '@angular/material/tooltip';
12
12
  import { MatTooltipModule } from '@angular/material/tooltip';
13
13
  import { PraxisFilterForm } from '@praxisui/dynamic-form';
14
14
  import { PraxisIconButtonComponent } from '@praxisui/core';
15
- import { ar as projectFilterPayload } from './praxisui-table-praxisui-table-PvwtPvhN.mjs';
15
+ import { ar as projectFilterPayload } from './praxisui-table-praxisui-table-CLqu-jPA.mjs';
16
16
 
17
17
  class FilterFormDialogHostComponent {
18
18
  data;