@contrail/data-grouping 1.0.50 → 1.0.51
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.
|
@@ -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