@one-paragon/angular-utilities 0.1.6 → 0.1.7
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/esm2020/table-builder/classes/table-builder.mjs +2 -2
- package/esm2020/table-builder/components/sort-menu/sort-menu.component.mjs +2 -1
- package/fesm2015/one-paragon-angular-utilities.mjs +2 -1
- package/fesm2015/one-paragon-angular-utilities.mjs.map +1 -1
- package/fesm2020/one-paragon-angular-utilities.mjs +2 -1
- package/fesm2020/one-paragon-angular-utilities.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3672,6 +3672,7 @@ class SortMenuComponent {
|
|
|
3672
3672
|
this.dirty$.next(true);
|
|
3673
3673
|
if (event.previousContainer === event.container) {
|
|
3674
3674
|
moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);
|
|
3675
|
+
this.store.setSorted(event.container.data);
|
|
3675
3676
|
}
|
|
3676
3677
|
else {
|
|
3677
3678
|
transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);
|
|
@@ -4214,7 +4215,7 @@ class TableBuilder {
|
|
|
4214
4215
|
}
|
|
4215
4216
|
cleanRecord(record, metadata) {
|
|
4216
4217
|
const cleaned = metadata.reduce((prev, curr) => {
|
|
4217
|
-
const val = get(record, curr.key);
|
|
4218
|
+
const val = this.cleanVal(get(record, curr.key), curr);
|
|
4218
4219
|
if (val !== undefined) {
|
|
4219
4220
|
set(prev, curr.key, val);
|
|
4220
4221
|
}
|