ngx-vector-components 4.1.1 → 4.2.0

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.
@@ -101,6 +101,7 @@ var TableColumnType;
101
101
  TableColumnType["STATUS_BADGE"] = "STATUS_BADGE";
102
102
  TableColumnType["ACTIVE_BOOLEAN_BADGE"] = "ACTIVE_BOOLEAN_BADGE";
103
103
  TableColumnType["BUTTON"] = "BUTTON";
104
+ TableColumnType["CUSTOM_STYLE"] = "CUSTOM_STYLE";
104
105
  })(TableColumnType || (TableColumnType = {}));
105
106
 
106
107
  var DocumentType;
@@ -2265,6 +2266,9 @@ class DataTableComponent {
2265
2266
  if (!col.type || col.type === TableColumnType.TEXT) {
2266
2267
  content += item[col.field] || '';
2267
2268
  }
2269
+ if (col.type === TableColumnType.CUSTOM_STYLE) {
2270
+ content += `<span class="${col.textFieldClass ? item[col.textFieldClass] : ''}">${item[col.field || '']}</span>`;
2271
+ }
2268
2272
  if (col.type === TableColumnType.BOOLEAN) {
2269
2273
  content += `<div class="text-centered"><i class=" status-table-field fas fa-${item[col.field] ? 'check boolean-value-positive' : 'times boolean-value-negative'}"></i></div>`;
2270
2274
  }
@@ -2316,6 +2320,7 @@ class DataTableComponent {
2316
2320
  case Status.REJECTED:
2317
2321
  return 'error';
2318
2322
  }
2323
+ return '';
2319
2324
  }
2320
2325
  getActiveStatusColor(active) {
2321
2326
  return active ? 'success' : 'error';