@praxisui/table 1.0.0-beta.42 → 1.0.0-beta.44
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/README.md +10 -1
- package/fesm2022/praxisui-table.mjs +564 -72
- package/fesm2022/praxisui-table.mjs.map +1 -1
- package/index.d.ts +30 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -498,6 +498,7 @@ onRowDoubleClick(evt: { action: string; row: any }) {
|
|
|
498
498
|
|
|
499
499
|
- Configure em `behavior.sorting.defaultSort`.
|
|
500
500
|
- Aceita objeto único (coluna/direção) ou array para multi‑sort.
|
|
501
|
+
- Status runtime atual: `behavior.sorting.multiSort` está **schema-only** (apenas 1 critério efetivo em runtime).
|
|
501
502
|
|
|
502
503
|
Exemplos:
|
|
503
504
|
|
|
@@ -523,6 +524,13 @@ sorting: {
|
|
|
523
524
|
```
|
|
524
525
|
|
|
525
526
|
Observação: quando informado, o defaultSort é aplicado na carga inicial se não houver estado de ordenação ativo.
|
|
527
|
+
Observação enterprise: para evitar ambiguidade de contrato, mantenha `multiSort: false` no runtime atual. Se um array for informado em `defaultSort`, trate como payload de compatibilidade/roadmap e valide no host como single-sort efetivo.
|
|
528
|
+
|
|
529
|
+
### Roadmap / migração de multiSort
|
|
530
|
+
|
|
531
|
+
- Curto prazo: `multiSort` segue schema-only no runtime.
|
|
532
|
+
- Recomendação de migração: desenhar integrações com fallback para ordenação única (`column` + `direction`).
|
|
533
|
+
- Planejamento: quando multi-sort runtime for implementado, publicar release note com guia de ativação gradual (feature-flag + validação de payload legado).
|
|
526
534
|
|
|
527
535
|
## Coluna de ações (sticky)
|
|
528
536
|
|
|
@@ -1105,7 +1113,8 @@ export class MyComponent {
|
|
|
1105
1113
|
this.configService.setConfig(this.tableConfig);
|
|
1106
1114
|
|
|
1107
1115
|
// Verificar recursos disponíveis
|
|
1108
|
-
|
|
1116
|
+
// No runtime atual, multiSort permanece schema-only.
|
|
1117
|
+
const hasMultiSort = false;
|
|
1109
1118
|
const hasBulkActions = this.configService.isFeatureEnabled('bulkActions');
|
|
1110
1119
|
}
|
|
1111
1120
|
}
|