@vuu-ui/vuu-utils 0.6.7 → 0.6.8-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 +1311 -1
- package/cjs/index.js.map +4 -4
- package/esm/index.js +1288 -1
- package/esm/index.js.map +4 -4
- package/package.json +6 -8
- package/types/DataWindow.d.ts +0 -39
- package/types/array-utils.d.ts +0 -4
- package/types/column-utils.d.ts +0 -55
- package/types/component-registry.d.ts +0 -19
- package/types/data-utils.d.ts +0 -9
- package/types/date-utils.d.ts +0 -1
- package/types/event-emitter.d.ts +0 -19
- package/types/filter-utils.d.ts +0 -8
- package/types/formatting-utils.d.ts +0 -8
- package/types/getUniqueId.d.ts +0 -1
- package/types/group-utils.d.ts +0 -3
- package/types/html-utils.d.ts +0 -1
- package/types/index.d.ts +0 -21
- package/types/input-utils.d.ts +0 -2
- package/types/invariant.d.ts +0 -1
- package/types/nanoid/index.d.ts +0 -1
- package/types/range-utils.d.ts +0 -22
- package/types/round-decimal.d.ts +0 -1
- package/types/row-utils.d.ts +0 -10
- package/types/selection-utils.d.ts +0 -5
- package/types/sort-utils.d.ts +0 -5
- package/types/text-utils.d.ts +0 -1
package/types/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from "./array-utils";
|
|
2
|
-
export * from "./column-utils";
|
|
3
|
-
export * from "./component-registry";
|
|
4
|
-
export * from "./DataWindow";
|
|
5
|
-
export * from "./data-utils";
|
|
6
|
-
export * from "./date-utils";
|
|
7
|
-
export * from "./filter-utils";
|
|
8
|
-
export * from "./html-utils";
|
|
9
|
-
export * from "./event-emitter";
|
|
10
|
-
export * from "./formatting-utils";
|
|
11
|
-
export * from "./getUniqueId";
|
|
12
|
-
export * from "./group-utils";
|
|
13
|
-
export * from "./input-utils";
|
|
14
|
-
export * from "./invariant";
|
|
15
|
-
export * from "./nanoid";
|
|
16
|
-
export * from "./round-decimal";
|
|
17
|
-
export * from "./range-utils";
|
|
18
|
-
export * from "./row-utils";
|
|
19
|
-
export * from "./selection-utils";
|
|
20
|
-
export * from "./sort-utils";
|
|
21
|
-
export * from "./text-utils";
|
package/types/input-utils.d.ts
DELETED
package/types/invariant.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function invariant(condition: boolean, message: string): void;
|
package/types/nanoid/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const uuid: (size?: number) => string;
|
package/types/range-utils.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface VuuRange {
|
|
2
|
-
from: number;
|
|
3
|
-
to: number;
|
|
4
|
-
bufferSize?: number;
|
|
5
|
-
reset?: boolean;
|
|
6
|
-
}
|
|
7
|
-
interface FromToRange {
|
|
8
|
-
from: number;
|
|
9
|
-
to: number;
|
|
10
|
-
}
|
|
11
|
-
export declare function getFullRange({ from, to }: VuuRange, bufferSize?: number, rowCount?: number): FromToRange;
|
|
12
|
-
export declare function resetRange({ from, to, bufferSize }: VuuRange): VuuRange;
|
|
13
|
-
export declare const withinRange: (value: number, { from, to }: VuuRange) => boolean;
|
|
14
|
-
export declare class WindowRange {
|
|
15
|
-
from: number;
|
|
16
|
-
to: number;
|
|
17
|
-
constructor(from: number, to: number);
|
|
18
|
-
isWithin(index: number): boolean;
|
|
19
|
-
overlap(from: number, to: number): [number, number];
|
|
20
|
-
copy(): WindowRange;
|
|
21
|
-
}
|
|
22
|
-
export {};
|
package/types/round-decimal.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function roundDecimal(value?: number, align?: string, decimals?: number, zeroPad?: boolean, alignOnDecimals?: boolean): string;
|
package/types/row-utils.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type RowIndex = {
|
|
2
|
-
[field: string]: number;
|
|
3
|
-
};
|
|
4
|
-
export type Row = {
|
|
5
|
-
[strKey: string]: any;
|
|
6
|
-
} & any[];
|
|
7
|
-
export declare function addRowsToIndex(rows: Row[], index: RowIndex, indexField: string): RowIndex;
|
|
8
|
-
export declare function indexRows(rows: Row[], indexField: string): RowIndex;
|
|
9
|
-
export declare function isEmptyRow(row: Row): boolean;
|
|
10
|
-
export declare function update(rows: Row[], updates: any): Row[];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Selection, TableSelectionModel } from "@vuu-ui/vuu-datagrid-types";
|
|
2
|
-
export declare const deselectItem: (selectionModel: TableSelectionModel, selected: Selection, itemIndex: number, rangeSelect: boolean, keepExistingSelection?: boolean) => Selection;
|
|
3
|
-
export declare const selectItem: (selectionModel: TableSelectionModel, selected: Selection, itemIndex: number, rangeSelect: boolean, keepExistingSelection?: boolean, activeItemIndex?: number) => Selection;
|
|
4
|
-
export declare const isSelected: (selected: Selection, itemIndex: number) => boolean;
|
|
5
|
-
export declare const expandSelection: (selected: Selection) => number[];
|
package/types/sort-utils.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ColumnDescriptor, KeyedColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
|
|
2
|
-
import { VuuSort, VuuSortType } from "@vuu-ui/vuu-protocol-types";
|
|
3
|
-
export declare const applySort: ({ sortDefs }: VuuSort, { name: column }: ColumnDescriptor, extendSort?: boolean, sortType?: VuuSortType) => VuuSort;
|
|
4
|
-
export declare const setSortColumn: ({ sortDefs }: VuuSort, column: KeyedColumnDescriptor, sortType?: "A" | "D") => VuuSort;
|
|
5
|
-
export declare const addSortColumn: ({ sortDefs }: VuuSort, column: KeyedColumnDescriptor, sortType?: "A" | "D") => VuuSort;
|
package/types/text-utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const lastWord: (text: string) => string;
|