@vuu-ui/vuu-utils 0.8.26-debug → 0.8.27-debug
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/cjs/index.js +30 -13
- package/cjs/index.js.map +2 -2
- package/esm/index.js +30 -13
- package/esm/index.js.map +2 -2
- package/package.json +5 -5
- package/types/column-utils.d.ts +3 -1
- package/types/sort-utils.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuu-ui/vuu-utils",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.27-debug",
|
|
4
4
|
"author": "heswell",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@vuu-ui/vuu-data-types": "0.8.
|
|
8
|
-
"@vuu-ui/vuu-table-types": "0.8.
|
|
9
|
-
"@vuu-ui/vuu-filter-types": "0.8.
|
|
10
|
-
"@vuu-ui/vuu-protocol-types": "0.8.
|
|
7
|
+
"@vuu-ui/vuu-data-types": "0.8.27-debug",
|
|
8
|
+
"@vuu-ui/vuu-table-types": "0.8.27-debug",
|
|
9
|
+
"@vuu-ui/vuu-filter-types": "0.8.27-debug",
|
|
10
|
+
"@vuu-ui/vuu-protocol-types": "0.8.27-debug"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"react": ">=17.0.2",
|
package/types/column-utils.d.ts
CHANGED
|
@@ -70,7 +70,9 @@ export declare const getColumnStyle: ({ pin, pinnedOffset, width, }: RuntimeColu
|
|
|
70
70
|
export declare const setAggregations: (aggregations: VuuAggregation[], column: RuntimeColumnDescriptor, aggType: VuuAggType) => VuuAggregation[];
|
|
71
71
|
export declare const extractFilterForColumn: (filter: Filter | undefined, columnName: string) => Filter | undefined;
|
|
72
72
|
export declare const applyGroupByToColumns: (columns: RuntimeColumnDescriptor[], groupBy: VuuGroupBy, confirmed?: boolean) => RuntimeColumnDescriptor[];
|
|
73
|
-
export declare const applySortToColumns: (
|
|
73
|
+
export declare const applySortToColumns: (columns: RuntimeColumnDescriptor[], sort: VuuSort) => RuntimeColumnDescriptor[];
|
|
74
|
+
export declare const removeSort: (columns: RuntimeColumnDescriptor[]) => RuntimeColumnDescriptor[];
|
|
75
|
+
export declare const existingSort: (columns: RuntimeColumnDescriptor[]) => boolean;
|
|
74
76
|
export declare const applyFilterToColumns: (columns: RuntimeColumnDescriptor[], { filterStruct }: DataSourceFilter) => RuntimeColumnDescriptor[];
|
|
75
77
|
export declare const isFilteredColumn: (column: RuntimeColumnDescriptor) => boolean;
|
|
76
78
|
export declare const stripFilterFromColumns: (columns: RuntimeColumnDescriptor[]) => {
|
package/types/sort-utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnDescriptor, RuntimeColumnDescriptor } from "@vuu-ui/vuu-table-types";
|
|
2
2
|
import { VuuSort, VuuSortType } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const toggleOrApplySort: ({ sortDefs }: VuuSort, { name: column }: ColumnDescriptor, extendSort?: boolean, sortType?: VuuSortType) => VuuSort;
|
|
4
4
|
export declare const setSortColumn: ({ sortDefs }: VuuSort, column: RuntimeColumnDescriptor, sortType?: "A" | "D") => VuuSort;
|
|
5
5
|
export declare const addSortColumn: ({ sortDefs }: VuuSort, column: RuntimeColumnDescriptor, sortType?: "A" | "D") => VuuSort;
|