@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.
- package/custom-elements.json +155 -155
- package/dist/krubble-components.bundled.js +7 -0
- package/dist/krubble-components.bundled.js.map +1 -1
- package/dist/krubble-components.bundled.min.js +1 -1
- package/dist/krubble-components.bundled.min.js.map +1 -1
- package/dist/krubble-components.umd.js +7 -0
- package/dist/krubble-components.umd.js.map +1 -1
- package/dist/krubble-components.umd.min.js +1 -1
- package/dist/krubble-components.umd.min.js.map +1 -1
- package/dist/table/table.d.ts +2 -0
- package/dist/table/table.d.ts.map +1 -1
- package/dist/table/table.js +7 -0
- package/dist/table/table.js.map +1 -1
- package/package.json +1 -1
|
@@ -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';
|