@uxf/data-grid 11.107.0 → 11.108.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/_api/index.js +1 -1
- package/_store/reducer.js +4 -7
- package/package.json +19 -18
package/_api/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.dataGridGetResult = dataGridGetResult;
|
|
4
4
|
exports.dataGridAutocomplete = dataGridAutocomplete;
|
|
5
|
-
const qs_1 = require("qs");
|
|
5
|
+
const qs_1 = require("@uxf/core/utils/qs");
|
|
6
6
|
function dataGridGetResult(gridName, request) {
|
|
7
7
|
return fetch(`/api/cms/datagrid/${gridName}?${(0, qs_1.stringify)(request)}`).then((response) => response.json());
|
|
8
8
|
}
|
package/_store/reducer.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.reducer = void 0;
|
|
7
4
|
exports.getInitialState = getInitialState;
|
|
8
5
|
const empty_array_1 = require("@uxf/core/constants/empty-array");
|
|
9
6
|
const empty_object_1 = require("@uxf/core/constants/empty-object");
|
|
7
|
+
const deepmerge_1 = require("@uxf/core/utils/deepmerge");
|
|
10
8
|
const is_nil_1 = require("@uxf/core/utils/is-nil");
|
|
11
|
-
const deepmerge_1 = __importDefault(require("deepmerge"));
|
|
12
9
|
const utils_1 = require("../utils");
|
|
13
10
|
function getInitialState(schema, init, initialUserConfig) {
|
|
14
11
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
@@ -90,7 +87,7 @@ const reducer = (state, action) => {
|
|
|
90
87
|
};
|
|
91
88
|
case "SORT":
|
|
92
89
|
if (((_a = state.request.s) === null || _a === void 0 ? void 0 : _a.name) === action.columnName) {
|
|
93
|
-
return (0, deepmerge_1.
|
|
90
|
+
return (0, deepmerge_1.deepmerge)(state, {
|
|
94
91
|
request: {
|
|
95
92
|
s: {
|
|
96
93
|
dir: ((_b = state.request.s) === null || _b === void 0 ? void 0 : _b.dir) === "asc" ? "desc" : "asc",
|
|
@@ -98,7 +95,7 @@ const reducer = (state, action) => {
|
|
|
98
95
|
},
|
|
99
96
|
});
|
|
100
97
|
}
|
|
101
|
-
return (0, deepmerge_1.
|
|
98
|
+
return (0, deepmerge_1.deepmerge)(state, {
|
|
102
99
|
request: {
|
|
103
100
|
s: { name: action.columnName, dir: (_c = action.direction) !== null && _c !== void 0 ? _c : "asc" },
|
|
104
101
|
},
|
|
@@ -197,7 +194,7 @@ const reducer = (state, action) => {
|
|
|
197
194
|
case "UPDATE_USER_CONFIG":
|
|
198
195
|
return {
|
|
199
196
|
...state,
|
|
200
|
-
userConfig: (0, deepmerge_1.
|
|
197
|
+
userConfig: (0, deepmerge_1.deepmerge)(state.userConfig, action.userConfig),
|
|
201
198
|
};
|
|
202
199
|
case "REINITIALIZE_USER_CONFIG":
|
|
203
200
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/data-grid",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.108.0",
|
|
4
4
|
"description": "UXF DataGrid",
|
|
5
5
|
"homepage": "https://gitlab.com/uxf-npm/data-grid#readme",
|
|
6
6
|
"main": "index.js",
|
|
@@ -34,33 +34,34 @@
|
|
|
34
34
|
"typecheck": "tsc --noEmit --skipLibCheck"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@dnd-kit/core": "6.3.1",
|
|
38
|
-
"@dnd-kit/sortable": "10.0.0",
|
|
39
|
-
"@dnd-kit/utilities": "3.2.2",
|
|
40
|
-
"dayjs": "1.11.19",
|
|
41
|
-
"deepmerge": "4.3.1",
|
|
42
37
|
"fast-glob": "3.3.3",
|
|
43
|
-
"qs": "6.14.1",
|
|
44
38
|
"yargs": "18.0.0"
|
|
45
39
|
},
|
|
46
40
|
"peerDependencies": {
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@uxf/
|
|
51
|
-
"@uxf/
|
|
41
|
+
"@dnd-kit/core": "^6.3.1",
|
|
42
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
43
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
44
|
+
"@uxf/core": "11.108.0",
|
|
45
|
+
"@uxf/core-react": "11.108.0",
|
|
46
|
+
"@uxf/localize": "11.108.0",
|
|
47
|
+
"@uxf/styles": "11.108.0",
|
|
48
|
+
"@uxf/ui": "11.108.0",
|
|
49
|
+
"dayjs": "^1.11.19",
|
|
52
50
|
"react": ">=18.2.0",
|
|
53
51
|
"react-dom": ">=18.2.0"
|
|
54
52
|
},
|
|
55
53
|
"devDependencies": {
|
|
54
|
+
"@dnd-kit/core": "^6.3.1",
|
|
55
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
56
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
56
57
|
"@types/react": "18.3.27",
|
|
57
58
|
"@types/react-dom": "18.3.7",
|
|
58
|
-
"@
|
|
59
|
-
"@uxf/core": "11.
|
|
60
|
-
"@uxf/
|
|
61
|
-
"@uxf/
|
|
62
|
-
"@uxf/
|
|
63
|
-
"
|
|
59
|
+
"@uxf/core": "11.108.0",
|
|
60
|
+
"@uxf/core-react": "11.108.0",
|
|
61
|
+
"@uxf/localize": "11.108.0",
|
|
62
|
+
"@uxf/styles": "11.108.0",
|
|
63
|
+
"@uxf/ui": "11.108.0",
|
|
64
|
+
"dayjs": "^1.11.19",
|
|
64
65
|
"react": "18.3.1",
|
|
65
66
|
"react-dom": "18.3.1"
|
|
66
67
|
},
|