@qrvey/utils 1.16.1-22 → 1.16.1-23

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.
@@ -95,7 +95,7 @@ const defineXYChartFormat = (column, settings) => {
95
95
  else if (hasDefaultFormat) {
96
96
  if (!(outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format))
97
97
  return defaultDecimal;
98
- if (!definition_1.STANDARD_NUMERIC_FORMATS.includes(outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format)) {
98
+ if (!definition_1.STANDARD_NUMERIC_FORMATS.includes(outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format) || constants_1.DURATION_PARTS_LIST.includes(outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format)) {
99
99
  return Object.assign(Object.assign({}, outputFormat), { template: outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format, format: "Duration" });
100
100
  }
101
101
  return Object.assign({}, outputFormat);
@@ -3,7 +3,7 @@ import { COLUMN } from "../../columns/constants/COLUMN";
3
3
  import { STANDARD_NUMERIC_FORMATS, } from "../../format/definition";
4
4
  import { isEmpty } from "../../general/mix/isEmpty";
5
5
  import { CALCULATION_LABEL } from "../../qrvey/constants/CALCULATION_LABEL";
6
- import { SHELF_TYPE } from "../constants";
6
+ import { DURATION_PARTS_LIST, SHELF_TYPE } from "../constants";
7
7
  import { CHART_GROUPS } from "../constants/CHART_GROUP";
8
8
  import { DATEGROUP_UNSUPPORT_FORMAT } from "../constants/DATEGROUP_UNSUPPORT_FORMAT";
9
9
  import { STRING_FORMAT } from "../constants/STRING_FORMAT";
@@ -92,7 +92,7 @@ export const defineXYChartFormat = (column, settings) => {
92
92
  else if (hasDefaultFormat) {
93
93
  if (!(outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format))
94
94
  return defaultDecimal;
95
- if (!STANDARD_NUMERIC_FORMATS.includes(outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format)) {
95
+ if (!STANDARD_NUMERIC_FORMATS.includes(outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format) || DURATION_PARTS_LIST.includes(outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format)) {
96
96
  return Object.assign(Object.assign({}, outputFormat), { template: outputFormat === null || outputFormat === void 0 ? void 0 : outputFormat.format, format: "Duration" });
97
97
  }
98
98
  return Object.assign({}, outputFormat);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/utils",
3
- "version": "1.16.1-22",
3
+ "version": "1.16.1-23",
4
4
  "description": "Helper, Utils for all Qrvey Projects",
5
5
  "homepage": "https://bitbucket.org/qrvey/qrvey_utils/wiki/Home",
6
6
  "main": "dist/index.js",