keevo-components 0.8.8 → 0.8.9

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.
@@ -923,13 +923,12 @@ class TableComponent {
923
923
  if (col.field == 'vencimento')
924
924
  return value.toLocaleDateString();
925
925
  else if (!col.pipe) {
926
- return value.length;
926
+ if (value.length > 25 && this.tableSize < 500) {
927
+ return `${value.substring(0, 25)}...`;
928
+ }
929
+ else
930
+ return value;
927
931
  }
928
- // else if (!col.pipe) {
929
- // if (value.length > 25 && this.tableSize < 500) {
930
- // return `${value.substring(0, 25)}...`
931
- // } else return value;
932
- // }
933
932
  switch (col.pipe) {
934
933
  case 'date':
935
934
  value = this.datePipe.transform(value, 'dd/MM/yyyy');