@vuu-ui/vuu-utils 0.7.6-debug → 0.8.0
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 +2 -1695
- package/cjs/index.js.map +4 -4
- package/esm/index.js +2 -1673
- package/esm/index.js.map +4 -4
- package/package.json +5 -5
- package/types/column-utils.d.ts +5 -3
- package/types/filter-utils.d.ts +4 -0
- package/types/index.d.ts +4 -2
- package/types/json-utils.d.ts +1 -1
- package/types/menu-utils.d.ts +2 -0
- package/types/row-utils.d.ts +1 -1
- package/types/selection-utils.d.ts +14 -1
- package/types/url-utils.d.ts +2 -0
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./array-utils";
|
|
2
2
|
export * from "./column-utils";
|
|
3
|
+
export * from "./cookie-utils";
|
|
3
4
|
export * from "./component-registry";
|
|
4
5
|
export * from "./DataWindow";
|
|
5
6
|
export * from "./data-utils";
|
|
@@ -15,6 +16,8 @@ export * from "./input-utils";
|
|
|
15
16
|
export * from "./invariant";
|
|
16
17
|
export * from "./json-utils";
|
|
17
18
|
export * from "./keyset";
|
|
19
|
+
export * from "./logging-utils";
|
|
20
|
+
export * from "./menu-utils";
|
|
18
21
|
export * from "./nanoid";
|
|
19
22
|
export * from "./round-decimal";
|
|
20
23
|
export * from "./perf-utils";
|
|
@@ -23,5 +26,4 @@ export * from "./row-utils";
|
|
|
23
26
|
export * from "./selection-utils";
|
|
24
27
|
export * from "./sort-utils";
|
|
25
28
|
export * from "./text-utils";
|
|
26
|
-
export * from "./
|
|
27
|
-
export * from "./cookie-utils";
|
|
29
|
+
export * from "./url-utils";
|
package/types/json-utils.d.ts
CHANGED
package/types/row-utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataSourceRow } from "@vuu-ui/vuu-data";
|
|
1
|
+
import { DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
2
2
|
import { MutableRefObject } from "react";
|
|
3
3
|
export type RowOffsetFunc = (row: DataSourceRow, pctScrollTop?: number) => number;
|
|
4
4
|
export type RowAtPositionFunc = (position: number) => number;
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DataSourceRow } from "@vuu-ui/vuu-data-types";
|
|
2
|
+
import { Selection, SelectionItem, TableSelectionModel } from "@vuu-ui/vuu-datagrid-types";
|
|
3
|
+
export declare const RowSelected: {
|
|
4
|
+
False: number;
|
|
5
|
+
True: number;
|
|
6
|
+
First: number;
|
|
7
|
+
Last: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const isRowSelected: (row: DataSourceRow) => boolean;
|
|
2
10
|
export declare const deselectItem: (selectionModel: TableSelectionModel, selected: Selection, itemIndex: number, rangeSelect: boolean, keepExistingSelection?: boolean) => Selection;
|
|
3
11
|
export declare const selectItem: (selectionModel: TableSelectionModel, selected: Selection, itemIndex: number, rangeSelect: boolean, keepExistingSelection?: boolean, activeItemIndex?: number) => Selection;
|
|
12
|
+
export declare const getSelectionStatus: (selected: Selection, itemIndex: number) => number;
|
|
4
13
|
export declare const isSelected: (selected: Selection, itemIndex: number) => boolean;
|
|
5
14
|
export declare const expandSelection: (selected: Selection) => number[];
|
|
15
|
+
export type SelectionDiff = {
|
|
16
|
+
added: SelectionItem[];
|
|
17
|
+
removed: SelectionItem[];
|
|
18
|
+
};
|