@praxisui/table 10.0.0-rc.57 → 10.0.0-rc.58

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.
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "generatedAt": "2026-11-19T19:36:26.164Z",
4
4
  "packageName": "@praxisui/table",
5
- "packageVersion": "10.0.0-rc.57",
5
+ "packageVersion": "10.0.0-rc.58",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 3,
@@ -1629,7 +1629,31 @@ class TableSchemaColumnProjector {
1629
1629
  };
1630
1630
  return;
1631
1631
  }
1632
- if (presenter === 'iconvalue') {
1632
+ if (presenter === 'progress') {
1633
+ const valueExpr = `= row.${textField.replace(/\./g, '?.')}`;
1634
+ col.renderer = {
1635
+ type: 'progress',
1636
+ progress: {
1637
+ valueExpr,
1638
+ showLabel: true,
1639
+ ...(color ? { color } : {}),
1640
+ },
1641
+ };
1642
+ return;
1643
+ }
1644
+ if (presenter === 'rating') {
1645
+ const valueExpr = `= row.${textField.replace(/\./g, '?.')}`;
1646
+ col.renderer = {
1647
+ type: 'rating',
1648
+ rating: {
1649
+ valueExpr,
1650
+ max: 5,
1651
+ ...(color ? { color } : {}),
1652
+ },
1653
+ };
1654
+ return;
1655
+ }
1656
+ if (presenter === 'iconvalue' || presenter === 'text' || !presenter) {
1633
1657
  const rendererIcon = icon || this.firstNonEmptyString(field.icon);
1634
1658
  const affixes = this.resolveSemanticPresentationAffixes(presentation);
1635
1659
  const hasAffixes = !!(affixes.prefix || affixes.suffix);
@@ -1641,6 +1665,7 @@ class TableSchemaColumnProjector {
1641
1665
  icon: {
1642
1666
  ...(!hasAffixes && rendererIcon ? { name: rendererIcon } : {}),
1643
1667
  textField,
1668
+ ...(color ? { color } : {}),
1644
1669
  ...(tooltipText ? { ariaLabel: tooltipText } : {}),
1645
1670
  ...affixes,
1646
1671
  },
@@ -1684,16 +1709,18 @@ class TableSchemaColumnProjector {
1684
1709
  const explicit = this.firstNonEmptyString(field.booleanFormat, field.extraProperties?.booleanFormat);
1685
1710
  if (explicit)
1686
1711
  return explicit;
1687
- const trueLabel = this.firstNonEmptyString(field.trueLabel, field.labelTrue, field.extraProperties?.trueLabel, field.extraProperties?.labelTrue);
1688
- const falseLabel = this.firstNonEmptyString(field.falseLabel, field.labelFalse, field.extraProperties?.falseLabel, field.extraProperties?.labelFalse);
1689
- if (trueLabel && falseLabel) {
1690
- const tNorm = this.normalizePresentationToken(trueLabel);
1691
- const fNorm = this.normalizePresentationToken(falseLabel);
1712
+ const trueLabel = this.firstNonEmptyString(field.trueLabel, field.labelTrue, field.presentation?.labelTrue, field.extraProperties?.trueLabel, field.extraProperties?.labelTrue);
1713
+ const falseLabel = this.firstNonEmptyString(field.falseLabel, field.labelFalse, field.presentation?.labelFalse, field.extraProperties?.falseLabel, field.extraProperties?.labelFalse);
1714
+ if (trueLabel || falseLabel) {
1715
+ const effectiveTrue = trueLabel || 'Sim';
1716
+ const effectiveFalse = falseLabel || 'Não';
1717
+ const tNorm = this.normalizePresentationToken(effectiveTrue);
1718
+ const fNorm = this.normalizePresentationToken(effectiveFalse);
1692
1719
  if (tNorm === 'ativo' && fNorm === 'inativo')
1693
1720
  return 'active-inactive';
1694
1721
  if (tNorm === 'sim' && (fNorm === 'nao' || fNorm === 'não'))
1695
1722
  return 'yes-no';
1696
- return `custom|${trueLabel}|${falseLabel}`;
1723
+ return `custom|${effectiveTrue}|${effectiveFalse}`;
1697
1724
  }
1698
1725
  const name = this.normalizePresentationToken(field.name);
1699
1726
  if (name === 'ativo' || name === 'active' || name.endsWith('ativo')) {
@@ -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 { aq as projectFilterPayload } from './praxisui-table-praxisui-table-FkFzLrBZ.mjs';
15
+ import { aq as projectFilterPayload } from './praxisui-table-praxisui-table-C6PWlmcQ.mjs';
16
16
 
17
17
  class FilterFormDialogHostComponent {
18
18
  data;