@genesislcap/blank-app-seed 3.18.2 → 3.18.3
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/.genx/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
const gridOptionsSerializer = require('./
|
|
1
|
+
const {gridOptionsSerializer, gridColumnsSerializer } = require('./gridSerializers');
|
|
2
2
|
const formatJSONValue = require('./formatJSONValue');
|
|
3
|
-
const gridColumnsSerializer = require('./gridColumnsSerializer');
|
|
4
3
|
const getLayoutType = require('./getLayoutType');
|
|
5
4
|
|
|
6
5
|
const formatRouteData = (route) => {
|
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
const formatJSONValue = require('./formatJSONValue');
|
|
2
|
-
const gridColumnsSerializer = require('./gridColumnsSerializer');
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
function gridColumnsSerializer(columns, pad = ' ') {
|
|
4
|
+
if (!columns) {
|
|
5
|
+
return undefined;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
try {
|
|
9
|
+
const columnsSerialized = columns.map((column) => {
|
|
10
|
+
return gridOptionsSerializer(column)
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
return `[\n${pad}${columnsSerialized}]`;
|
|
14
|
+
} catch (e) {
|
|
15
|
+
throw e
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
function gridOptionsSerializer(options, pad = ' ') {
|
|
5
21
|
if (!options) {
|
|
6
22
|
return undefined;
|
|
7
23
|
}
|
|
24
|
+
|
|
8
25
|
try {
|
|
9
26
|
let output = `{\n`;
|
|
10
27
|
Object.keys(options).forEach((key) => {
|
|
@@ -25,9 +42,9 @@ const gridOptionsSerializer = (options, pad = ' ') => {
|
|
|
25
42
|
});
|
|
26
43
|
output += `${pad}}\n`;
|
|
27
44
|
return output;
|
|
28
|
-
} catch {
|
|
29
|
-
|
|
45
|
+
} catch (e) {
|
|
46
|
+
throw e;
|
|
30
47
|
}
|
|
31
48
|
};
|
|
32
49
|
|
|
33
|
-
module.exports = gridOptionsSerializer;
|
|
50
|
+
module.exports = {gridColumnsSerializer, gridOptionsSerializer} ;
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.18.3](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.18.2...v3.18.3) (2024-06-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* move serializers to single file GENC-0 (#268) 9016d47
|
|
9
|
+
|
|
3
10
|
## [3.18.2](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.18.1...v3.18.2) (2024-06-27)
|
|
4
11
|
|
|
5
12
|
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const gridOptionsSerializer = require('./gridOptionsSerializer');
|
|
2
|
-
|
|
3
|
-
const gridColumnsSerializer = (columns, pad = ' ') => {
|
|
4
|
-
if (!columns) {
|
|
5
|
-
return undefined;
|
|
6
|
-
}
|
|
7
|
-
try {
|
|
8
|
-
const columnsSerialized = columns.map((column) =>
|
|
9
|
-
gridOptionsSerializer(column),
|
|
10
|
-
);
|
|
11
|
-
return `[\n${pad}${columnsSerialized}]`;
|
|
12
|
-
} catch {
|
|
13
|
-
return undefined;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
module.exports = gridColumnsSerializer;
|