@public-ui/hydrate 2.2.11-rc.3 → 2.2.11
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/dist/index.js +3 -4
- package/dist/index.mjs +3 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -24260,9 +24260,9 @@ class KolTableStateful {
|
|
|
24260
24260
|
setState(this, '_sortedData', this.state._data);
|
|
24261
24261
|
return;
|
|
24262
24262
|
}
|
|
24263
|
-
let sortedData = this.state._data;
|
|
24263
|
+
let sortedData = [...this.state._data];
|
|
24264
24264
|
if (this.sortData.length > 0) {
|
|
24265
|
-
sortedData
|
|
24265
|
+
sortedData.sort((a, b) => {
|
|
24266
24266
|
for (let index = 0; index < this.sortData.length; index++) {
|
|
24267
24267
|
const data = this.sortData[index];
|
|
24268
24268
|
const result = data.compareFn(a, b);
|
|
@@ -24285,7 +24285,6 @@ class KolTableStateful {
|
|
|
24285
24285
|
break;
|
|
24286
24286
|
case 'NOS':
|
|
24287
24287
|
default:
|
|
24288
|
-
sortedData = [...this.state._data];
|
|
24289
24288
|
this.sortedColumnHead = { label: '', key: '', sortDirection: 'NOS' };
|
|
24290
24289
|
}
|
|
24291
24290
|
}
|
|
@@ -24577,7 +24576,7 @@ class KolTableStateful {
|
|
|
24577
24576
|
horizontal: (_c = this.state._headers.horizontal) === null || _c === void 0 ? void 0 : _c.map((row) => row.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) })))),
|
|
24578
24577
|
vertical: (_d = this.state._headers.vertical) === null || _d === void 0 ? void 0 : _d.map((column) => column.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) })))),
|
|
24579
24578
|
};
|
|
24580
|
-
return (hAsync(Host, { key: '
|
|
24579
|
+
return (hAsync(Host, { key: 'c26b8fd4eadc144bf4a4f10adfd6feaf0cba9ff8', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: 'c2cee411489eed9f0e249185ad820f03fecfffe8', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
|
|
24581
24580
|
onSort: (_, payload) => {
|
|
24582
24581
|
this.handleSort(payload);
|
|
24583
24582
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -24256,9 +24256,9 @@ class KolTableStateful {
|
|
|
24256
24256
|
setState(this, '_sortedData', this.state._data);
|
|
24257
24257
|
return;
|
|
24258
24258
|
}
|
|
24259
|
-
let sortedData = this.state._data;
|
|
24259
|
+
let sortedData = [...this.state._data];
|
|
24260
24260
|
if (this.sortData.length > 0) {
|
|
24261
|
-
sortedData
|
|
24261
|
+
sortedData.sort((a, b) => {
|
|
24262
24262
|
for (let index = 0; index < this.sortData.length; index++) {
|
|
24263
24263
|
const data = this.sortData[index];
|
|
24264
24264
|
const result = data.compareFn(a, b);
|
|
@@ -24281,7 +24281,6 @@ class KolTableStateful {
|
|
|
24281
24281
|
break;
|
|
24282
24282
|
case 'NOS':
|
|
24283
24283
|
default:
|
|
24284
|
-
sortedData = [...this.state._data];
|
|
24285
24284
|
this.sortedColumnHead = { label: '', key: '', sortDirection: 'NOS' };
|
|
24286
24285
|
}
|
|
24287
24286
|
}
|
|
@@ -24573,7 +24572,7 @@ class KolTableStateful {
|
|
|
24573
24572
|
horizontal: (_c = this.state._headers.horizontal) === null || _c === void 0 ? void 0 : _c.map((row) => row.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) })))),
|
|
24574
24573
|
vertical: (_d = this.state._headers.vertical) === null || _d === void 0 ? void 0 : _d.map((column) => column.map((cell) => (Object.assign(Object.assign({}, cell), { sortDirection: this.getHeaderCellSortState(cell) })))),
|
|
24575
24574
|
};
|
|
24576
|
-
return (hAsync(Host, { key: '
|
|
24575
|
+
return (hAsync(Host, { key: 'c26b8fd4eadc144bf4a4f10adfd6feaf0cba9ff8', class: "kol-table-stateful" }, this.pageEndSlice > 0 && this.showPagination && paginationTop, hAsync(KolTableStatelessWcTag, { key: 'c2cee411489eed9f0e249185ad820f03fecfffe8', ref: this.catchRef, _data: displayedData, _headerCells: headerCells, _label: this.state._label, _dataFoot: this.state._dataFoot, _minWidth: this.state._minWidth, _on: {
|
|
24577
24576
|
onSort: (_, payload) => {
|
|
24578
24577
|
this.handleSort(payload);
|
|
24579
24578
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/hydrate",
|
|
3
|
-
"version": "2.2.11
|
|
3
|
+
"version": "2.2.11",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
],
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"rimraf": "6.0.1",
|
|
49
|
-
"@public-ui/components": "2.2.11
|
|
49
|
+
"@public-ui/components": "2.2.11"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@public-ui/components": "2.2.11
|
|
52
|
+
"@public-ui/components": "2.2.11"
|
|
53
53
|
},
|
|
54
54
|
"sideEffects": false,
|
|
55
55
|
"type": "commonjs",
|