@1771technologies/lytenyte-pro 2.1.0 → 2.1.1-dev.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/README.md
CHANGED
|
@@ -379,7 +379,7 @@ See our [AI Skills Overview guide](https://1771technologies.com/docs/ai-skills-o
|
|
|
379
379
|
| ↳ [CSV Export](https://www.1771technologies.com/docs/export-csv) | ✅ | ✅ |
|
|
380
380
|
| ↳ [Parquet Export](https://www.1771technologies.com/docs/export-parquet) | ✅ | ✅ |
|
|
381
381
|
| ↳ [Arrow Export](https://www.1771technologies.com/docs/export-arrow) | ✅ | ✅ |
|
|
382
|
-
| [Clipboard Operations](https://www.1771technologies.com/docs/export-clipboard) |
|
|
382
|
+
| [Clipboard Operations](https://www.1771technologies.com/docs/export-clipboard) | ✅ | ✅ |
|
|
383
383
|
|
|
384
384
|
</details>
|
|
385
385
|
|
|
@@ -5,6 +5,7 @@ export interface ColumnManagerProps<Spec extends GridSpec = GridSpec> {
|
|
|
5
5
|
readonly columns: Column<Spec>[];
|
|
6
6
|
readonly onColumnsChange: (change: Column<Spec>[]) => void;
|
|
7
7
|
readonly base?: Grid.ColumnBase<Spec>;
|
|
8
|
+
readonly rowHeight?: number;
|
|
8
9
|
readonly endElement?: (params: {
|
|
9
10
|
columns: Column<Spec>[];
|
|
10
11
|
row: RowNode<Spec["data"]>;
|
|
@@ -15,4 +16,4 @@ export interface ColumnManagerProps<Spec extends GridSpec = GridSpec> {
|
|
|
15
16
|
*/
|
|
16
17
|
readonly getPillManagerTag?: (column: Column<Spec>) => Record<string, string>;
|
|
17
18
|
}
|
|
18
|
-
export declare function ColumnManager<Spec extends GridSpec = GridSpec>({ columns: provided, base, onColumnsChange, endElement, getPillManagerTag, }: ColumnManagerProps<Spec>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function ColumnManager<Spec extends GridSpec = GridSpec>({ columns: provided, base, rowHeight, onColumnsChange, endElement, getPillManagerTag, }: ColumnManagerProps<Spec>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { useMemo } from "react";
|
|
|
3
3
|
import { TreeView } from "../tree-view/index.js";
|
|
4
4
|
import { Checkbox } from "../checkbox/checkbox.js";
|
|
5
5
|
import { computePathMatrix } from "@1771technologies/lytenyte-shared";
|
|
6
|
-
export function ColumnManager({ columns: provided, base, onColumnsChange, endElement, getPillManagerTag, }) {
|
|
6
|
+
export function ColumnManager({ columns: provided, base, rowHeight = 30, onColumnsChange, endElement, getPillManagerTag, }) {
|
|
7
7
|
const nonAdjacentSplit = useMemo(() => {
|
|
8
8
|
const paths = computePathMatrix(provided);
|
|
9
9
|
const adjusted = [];
|
|
@@ -45,7 +45,7 @@ export function ColumnManager({ columns: provided, base, onColumnsChange, endEle
|
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
}, [getPillManagerTag]);
|
|
48
|
-
return (_jsx(TreeView, { items: items, rowSelectionEnabled: false, draggable: true, rowHeight:
|
|
48
|
+
return (_jsx(TreeView, { items: items, rowSelectionEnabled: false, draggable: true, rowHeight: rowHeight, rowSelectAllShow: false, getDragTags: getDragItems, defaultExpansion: true, onItemsReordered: (x) => {
|
|
49
49
|
const columns = x.map((x) => provided.find((p) => p.id === x.column.id));
|
|
50
50
|
onColumnsChange(columns);
|
|
51
51
|
}, children: ({ row, leafs, toggle, dragProps, isOver, isBefore }) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1771technologies/lytenyte-pro",
|
|
3
3
|
"description": "Blazingly fast headless React data grid with 100s of features.",
|
|
4
|
-
"version": "2.1.0",
|
|
4
|
+
"version": "2.1.1-dev.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "COMMERCIAL",
|
|
7
7
|
"files": [
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@1771technologies/lytenyte-
|
|
90
|
-
"@1771technologies/lytenyte-
|
|
91
|
-
"@1771technologies/lytenyte-design": "2.1.0"
|
|
89
|
+
"@1771technologies/lytenyte-shared": "2.1.1-dev.0",
|
|
90
|
+
"@1771technologies/lytenyte-core": "2.1.1-dev.0",
|
|
91
|
+
"@1771technologies/lytenyte-design": "2.1.1-dev.0"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@1771technologies/grid-sample-data": "2.1.0"
|