@praxisui/table 10.0.0-rc.56 → 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.
- package/ai/component-registry.json +190 -30
- package/fesm2022/praxisui-table-authoring.mjs +34 -7
- package/fesm2022/{praxisui-table-filter-form-dialog-host.component-KJW2ecLZ.mjs → praxisui-table-filter-form-dialog-host.component-C-dlj27x.mjs} +1 -1
- package/fesm2022/{praxisui-table-praxisui-table-CWGOfHJ9.mjs → praxisui-table-praxisui-table-C6PWlmcQ.mjs} +73 -22
- package/fesm2022/{praxisui-table-table-agentic-authoring-turn-flow-C-_kw5xH.mjs → praxisui-table-table-agentic-authoring-turn-flow-DMjNxQMw.mjs} +1 -1
- package/fesm2022/{praxisui-table-table-ai.adapter-CfM5p7Ul.mjs → praxisui-table-table-ai.adapter-ThHdz1lu.mjs} +1 -1
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/types/praxisui-table.d.ts +2 -0
|
@@ -1629,7 +1629,31 @@ class TableSchemaColumnProjector {
|
|
|
1629
1629
|
};
|
|
1630
1630
|
return;
|
|
1631
1631
|
}
|
|
1632
|
-
if (presenter === '
|
|
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
|
|
1690
|
-
const
|
|
1691
|
-
const
|
|
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|${
|
|
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-
|
|
15
|
+
import { aq as projectFilterPayload } from './praxisui-table-praxisui-table-C6PWlmcQ.mjs';
|
|
16
16
|
|
|
17
17
|
class FilterFormDialogHostComponent {
|
|
18
18
|
data;
|