@uxf/data-grid 11.122.5 → 11.123.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/data-grid",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.123.0",
|
|
4
4
|
"description": "UXF DataGrid",
|
|
5
5
|
"homepage": "https://gitlab.com/uxf-npm/data-grid#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -31,22 +31,22 @@
|
|
|
31
31
|
"gen:data-grid": "node bin/uxf-data-grid-generator.js -s _generator/__generator_tests__/data-grid-schema -o _generator/__generator_tests__/data-grid --requiredLoader",
|
|
32
32
|
"lint": "./node_modules/.bin/eslint -c .eslintrc.js \"./**/*.ts*\"",
|
|
33
33
|
"test": "npm run-script typecheck",
|
|
34
|
-
"typecheck": "tsc --noEmit
|
|
34
|
+
"typecheck": "tsc --noEmit"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"fast-glob": "3.3.3",
|
|
38
|
-
"yargs": "18.
|
|
38
|
+
"yargs": "18.1.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@dnd-kit/core": "^6.3.1",
|
|
42
42
|
"@dnd-kit/sortable": "^10.0.0",
|
|
43
43
|
"@dnd-kit/utilities": "^3.2.2",
|
|
44
|
-
"@uxf/core": "11.
|
|
45
|
-
"@uxf/core-react": "11.
|
|
46
|
-
"@uxf/localize": "11.
|
|
47
|
-
"@uxf/styles": "11.
|
|
48
|
-
"@uxf/ui": "11.
|
|
49
|
-
"dayjs": "^1.11.
|
|
44
|
+
"@uxf/core": "11.123.0",
|
|
45
|
+
"@uxf/core-react": "11.123.0",
|
|
46
|
+
"@uxf/localize": "11.123.0",
|
|
47
|
+
"@uxf/styles": "11.123.0",
|
|
48
|
+
"@uxf/ui": "11.123.0",
|
|
49
|
+
"dayjs": "^1.11.21",
|
|
50
50
|
"react": ">=18.2.0",
|
|
51
51
|
"react-dom": ">=18.2.0"
|
|
52
52
|
},
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"@dnd-kit/core": "^6.3.1",
|
|
55
55
|
"@dnd-kit/sortable": "^10.0.0",
|
|
56
56
|
"@dnd-kit/utilities": "^3.2.2",
|
|
57
|
-
"@types/react": "18.3.
|
|
57
|
+
"@types/react": "18.3.31",
|
|
58
58
|
"@types/react-dom": "18.3.7",
|
|
59
|
-
"@uxf/core": "11.
|
|
60
|
-
"@uxf/core-react": "11.
|
|
61
|
-
"@uxf/localize": "11.
|
|
62
|
-
"@uxf/styles": "11.
|
|
63
|
-
"@uxf/ui": "11.
|
|
64
|
-
"dayjs": "^1.11.
|
|
59
|
+
"@uxf/core": "11.123.0",
|
|
60
|
+
"@uxf/core-react": "11.123.0",
|
|
61
|
+
"@uxf/localize": "11.123.0",
|
|
62
|
+
"@uxf/styles": "11.123.0",
|
|
63
|
+
"@uxf/ui": "11.123.0",
|
|
64
|
+
"dayjs": "^1.11.21",
|
|
65
65
|
"react": "18.3.1",
|
|
66
66
|
"react-dom": "18.3.1"
|
|
67
67
|
},
|
|
@@ -46,9 +46,7 @@ function HeaderCellComponent(props, ref) {
|
|
|
46
46
|
: ((_b = props.sort) === null || _b === void 0 ? void 0 : _b.dir) === "desc"
|
|
47
47
|
? "sort-down"
|
|
48
48
|
: "sort";
|
|
49
|
-
return (
|
|
50
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
51
|
-
react_1.default.createElement("div", { className: (0, cx_1.cx)(`uxf-dg-table__cell uxf-dg-table__cell--header uxf-dg-table__cell--type-${props.column.type}`, props.column.sort && "is-sortable", ((_c = props.sort) === null || _c === void 0 ? void 0 : _c.dir) === "asc" && "is-sorted-asc", ((_d = props.sort) === null || _d === void 0 ? void 0 : _d.dir) === "desc" && "is-sorted-desc"), onClick: props.onClick, ref: ref },
|
|
49
|
+
return (react_1.default.createElement("div", { className: (0, cx_1.cx)(`uxf-dg-table__cell uxf-dg-table__cell--header uxf-dg-table__cell--type-${props.column.type}`, props.column.sort && "is-sortable", ((_c = props.sort) === null || _c === void 0 ? void 0 : _c.dir) === "asc" && "is-sorted-asc", ((_d = props.sort) === null || _d === void 0 ? void 0 : _d.dir) === "desc" && "is-sorted-desc"), onClick: props.onClick, ref: ref },
|
|
52
50
|
props.column.label,
|
|
53
51
|
iconName && react_1.default.createElement(icon_1.Icon, { className: "ml-auto", name: iconName }),
|
|
54
52
|
react_1.default.createElement("button", { className: "uxf-dg-table__column-resize-handle", onClick: (event) => event.stopPropagation(), onDoubleClick: (event) => {
|
|
@@ -21,7 +21,7 @@ export declare function useDataGridControl<T extends BaseGridType>(config: UseDa
|
|
|
21
21
|
sort: (columnName: string, direction?: string | null) => void;
|
|
22
22
|
sortClear: () => void;
|
|
23
23
|
search: (search: string) => void;
|
|
24
|
-
changeTab: (tab: import("
|
|
24
|
+
changeTab: (tab: import("..").Tab, filterBehavior: import("..").ChangeTabFilterBehavior) => void;
|
|
25
25
|
setSelectedRows: (rows: any[]) => void;
|
|
26
26
|
setColumnsOrder: (columns: string[]) => void;
|
|
27
27
|
hideColumn: (name: string) => void;
|