@qrvey/utils 1.13.0 → 1.13.1
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/dist/cjs/columns/helpers/index.d.ts +1 -0
- package/dist/cjs/columns/helpers/index.js +1 -0
- package/dist/cjs/columns/helpers/isCompoundColumn.d.ts +7 -0
- package/dist/cjs/columns/helpers/isCompoundColumn.js +15 -0
- package/dist/columns/helpers/index.d.ts +1 -0
- package/dist/columns/helpers/index.js +1 -0
- package/dist/columns/helpers/isCompoundColumn.d.ts +7 -0
- package/dist/columns/helpers/isCompoundColumn.js +11 -0
- package/package.json +1 -1
|
@@ -19,5 +19,6 @@ __exportStar(require("./getDatasetColumn"), exports);
|
|
|
19
19
|
__exportStar(require("./getDatasetColumnByDatasets"), exports);
|
|
20
20
|
__exportStar(require("./getModelColumn"), exports);
|
|
21
21
|
__exportStar(require("./isComplexColumn"), exports);
|
|
22
|
+
__exportStar(require("./isCompoundColumn"), exports);
|
|
22
23
|
__exportStar(require("./isDateColumn"), exports);
|
|
23
24
|
__exportStar(require("./isNumericalColumn"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IColumn } from "../interfaces/IColumn";
|
|
2
|
+
/**
|
|
3
|
+
* Validates if the given column is a complex type
|
|
4
|
+
* @param {IColumn} column the column info
|
|
5
|
+
* @returns true: the column is a complex type
|
|
6
|
+
*/
|
|
7
|
+
export declare const isCompoundColumn: (column: IColumn) => boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isCompoundColumn = void 0;
|
|
4
|
+
const isEmpty_1 = require("../../general/mix/isEmpty");
|
|
5
|
+
const isObject_1 = require("../../general/object/isObject");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
/**
|
|
8
|
+
* Validates if the given column is a complex type
|
|
9
|
+
* @param {IColumn} column the column info
|
|
10
|
+
* @returns true: the column is a complex type
|
|
11
|
+
*/
|
|
12
|
+
const isCompoundColumn = (column) => !(0, isEmpty_1.isEmpty)(column) &&
|
|
13
|
+
(0, isObject_1.isObject)(column) &&
|
|
14
|
+
constants_1.COMPOUND_COLUMNS.includes(column.type);
|
|
15
|
+
exports.isCompoundColumn = isCompoundColumn;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IColumn } from "../interfaces/IColumn";
|
|
2
|
+
/**
|
|
3
|
+
* Validates if the given column is a complex type
|
|
4
|
+
* @param {IColumn} column the column info
|
|
5
|
+
* @returns true: the column is a complex type
|
|
6
|
+
*/
|
|
7
|
+
export declare const isCompoundColumn: (column: IColumn) => boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { isEmpty } from "../../general/mix/isEmpty";
|
|
2
|
+
import { isObject } from "../../general/object/isObject";
|
|
3
|
+
import { COMPOUND_COLUMNS } from "../constants";
|
|
4
|
+
/**
|
|
5
|
+
* Validates if the given column is a complex type
|
|
6
|
+
* @param {IColumn} column the column info
|
|
7
|
+
* @returns true: the column is a complex type
|
|
8
|
+
*/
|
|
9
|
+
export const isCompoundColumn = (column) => !isEmpty(column) &&
|
|
10
|
+
isObject(column) &&
|
|
11
|
+
COMPOUND_COLUMNS.includes(column.type);
|