@contrail/data-grouping 1.0.50 → 1.0.52
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/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@contrail/data-grouping` are documented here.
|
|
4
|
+
|
|
5
|
+
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
6
|
+
Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [1.0.50] - (initial changelog entry)
|
|
11
|
+
|
|
12
|
+
- Initial changelog. Prior releases did not include a changelog.
|
|
13
|
+
See git history for changes predating this entry.
|
|
@@ -114,10 +114,12 @@ class DataGroupGenerator {
|
|
|
114
114
|
static buildChildDataGroups(data, parentGroup, groupingProperties, leafNodeDataCount, currentDepth, groupMultiSelectInSeparateFrame = false, displayItemsWithEmptyGroupingValues = false, displayOptionFrameWithNoData = false) {
|
|
115
115
|
var _a, _b, _c, _d, _e;
|
|
116
116
|
const groupingProperty = groupingProperties[currentDepth];
|
|
117
|
+
const isDateProperty = ((_a = groupingProperty === null || groupingProperty === void 0 ? void 0 : groupingProperty.propertyDefinition) === null || _a === void 0 ? void 0 : _a.propertyType) === 'date';
|
|
117
118
|
const propertyTypeOptions = {
|
|
118
|
-
isDate:
|
|
119
|
-
isNumber:
|
|
120
|
-
((
|
|
119
|
+
isDate: isDateProperty,
|
|
120
|
+
isNumber: !isDateProperty &&
|
|
121
|
+
(!!((_b = groupingProperty === null || groupingProperty === void 0 ? void 0 : groupingProperty.propertyDefinition) === null || _b === void 0 ? void 0 : _b.numberFormat) ||
|
|
122
|
+
((_c = groupingProperty === null || groupingProperty === void 0 ? void 0 : groupingProperty.propertyDefinition) === null || _c === void 0 ? void 0 : _c.propertyType) === 'sequence'),
|
|
121
123
|
};
|
|
122
124
|
const rootIndex = groupingProperty.typeRootSlug;
|
|
123
125
|
const slugIndex = groupingProperty.propertyDefinition.slug;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrail/data-grouping",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"description": "Utilities and interfaces for grouping data into hierarchial data structures based on properties.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "",
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@contrail/util": "^1.
|
|
17
|
+
"@contrail/util": "^1.3.0",
|
|
18
18
|
"@types/jest": "^29.5.2",
|
|
19
19
|
"jest": "^29.5.0",
|
|
20
20
|
"prettier": "^1.19.1",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"testEnvironment": "node"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@contrail/documents": "^1.
|
|
42
|
-
"@contrail/types": "^3.
|
|
41
|
+
"@contrail/documents": "^1.5.0",
|
|
42
|
+
"@contrail/types": "^3.4.0"
|
|
43
43
|
}
|
|
44
44
|
}
|