@kodaris/krubble-components 1.0.57 → 1.0.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.
@@ -4172,6 +4172,7 @@ let KRTable = class KRTable extends i$2 {
4172
4172
  if (this.def.rowHref) {
4173
4173
  this._model.rowHref = this.def.rowHref;
4174
4174
  }
4175
+ this._sorts = [];
4175
4176
  this._model.columns = this.def.columns.map(col => {
4176
4177
  const column = {
4177
4178
  ...col,
@@ -4180,6 +4181,12 @@ let KRTable = class KRTable extends i$2 {
4180
4181
  if (!column.type) {
4181
4182
  column.type = 'string';
4182
4183
  }
4184
+ if (col.sort) {
4185
+ this._sorts.push({
4186
+ sortBy: col.id,
4187
+ sortDirection: col.sort
4188
+ });
4189
+ }
4183
4190
  if (column.type === 'actions') {
4184
4191
  column.label = col.label ?? '';
4185
4192
  column.sticky = 'right';