plmt-constructor-sdk 0.17.7 → 0.17.9
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/__internal__/config.d.ts
CHANGED
|
@@ -20,12 +20,6 @@ export declare enum DataQueryFunction_Server {
|
|
|
20
20
|
Count = "COUNT",
|
|
21
21
|
CountDistinct = "COUNT_DISTINCT"
|
|
22
22
|
}
|
|
23
|
-
export declare enum ColumnType_Server {
|
|
24
|
-
String = 0,
|
|
25
|
-
Number = 1,
|
|
26
|
-
Date = 2,
|
|
27
|
-
Boolean = 3
|
|
28
|
-
}
|
|
29
23
|
export interface Config_Server {
|
|
30
24
|
label: Text;
|
|
31
25
|
icon: string;
|
package/__internal__/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.encodeDrilldownData = exports.decodeDrilldownData = exports.blockColorizeKey = exports.blockSortKey = exports.blockFilterKey = exports.configDataBlock_Server = exports.
|
|
3
|
+
exports.encodeDrilldownData = exports.decodeDrilldownData = exports.blockColorizeKey = exports.blockSortKey = exports.blockFilterKey = exports.configDataBlock_Server = exports.DataQueryFunction_Server = exports.ConfigDataBlockType_Server = void 0;
|
|
4
4
|
// enums
|
|
5
5
|
var ConfigDataBlockType_Server;
|
|
6
6
|
(function (ConfigDataBlockType_Server) {
|
|
@@ -22,13 +22,6 @@ var DataQueryFunction_Server;
|
|
|
22
22
|
DataQueryFunction_Server["Count"] = "COUNT";
|
|
23
23
|
DataQueryFunction_Server["CountDistinct"] = "COUNT_DISTINCT";
|
|
24
24
|
})(DataQueryFunction_Server = exports.DataQueryFunction_Server || (exports.DataQueryFunction_Server = {}));
|
|
25
|
-
var ColumnType_Server;
|
|
26
|
-
(function (ColumnType_Server) {
|
|
27
|
-
ColumnType_Server[ColumnType_Server["String"] = 0] = "String";
|
|
28
|
-
ColumnType_Server[ColumnType_Server["Number"] = 1] = "Number";
|
|
29
|
-
ColumnType_Server[ColumnType_Server["Date"] = 2] = "Date";
|
|
30
|
-
ColumnType_Server[ColumnType_Server["Boolean"] = 3] = "Boolean";
|
|
31
|
-
})(ColumnType_Server = exports.ColumnType_Server || (exports.ColumnType_Server = {}));
|
|
32
25
|
exports.configDataBlock_Server = '8316067a-d04b-4b21-bd4d-35529846617b';
|
|
33
26
|
exports.blockFilterKey = '34642664-dbd1-4e35-b0ea-2eaabe796b48';
|
|
34
27
|
exports.blockSortKey = '2c849ed6-6105-4aa2-a961-9f95135dfe3b';
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isFulfillingCondition = void 0;
|
|
4
|
-
const constants_1 = require("./constants");
|
|
5
4
|
const data_1 = require("../data");
|
|
6
5
|
function isFulfillingCondition(type, cellValue, condition) {
|
|
7
6
|
const method = condition.condition;
|
|
8
7
|
const conditionValue = condition.value;
|
|
9
8
|
switch (type) {
|
|
10
|
-
case
|
|
9
|
+
case data_1.ColumnType.String:
|
|
11
10
|
return isFulfillingStringCondition(method, cellValue, conditionValue);
|
|
12
|
-
case
|
|
13
|
-
case
|
|
11
|
+
case data_1.ColumnType.Number:
|
|
12
|
+
case data_1.ColumnType.Boolean:
|
|
14
13
|
const value = Array.isArray(conditionValue)
|
|
15
14
|
? conditionValue.map((item) => Number(item))
|
|
16
15
|
: conditionValue;
|
|
17
16
|
return isFulfillingNumberCondition(method, cellValue, value);
|
|
18
|
-
case
|
|
17
|
+
case data_1.ColumnType.Date:
|
|
19
18
|
const cellDate = new Date(cellValue);
|
|
20
19
|
if (Array.isArray(conditionValue)) {
|
|
21
20
|
if (conditionValue.length < 2)
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COLOR_STEPS =
|
|
4
|
-
var ColumnType;
|
|
5
|
-
(function (ColumnType) {
|
|
6
|
-
ColumnType[ColumnType["String"] = 0] = "String";
|
|
7
|
-
ColumnType[ColumnType["Number"] = 1] = "Number";
|
|
8
|
-
ColumnType[ColumnType["Date"] = 2] = "Date";
|
|
9
|
-
ColumnType[ColumnType["Boolean"] = 3] = "Boolean";
|
|
10
|
-
})(ColumnType = exports.ColumnType || (exports.ColumnType = {}));
|
|
3
|
+
exports.COLOR_STEPS = void 0;
|
|
11
4
|
exports.COLOR_STEPS = 128;
|