lucid-extension-sdk 0.0.259 → 0.0.261
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/core/data/fieldtypedefinition/utils.d.ts +3 -0
- package/core/data/fieldtypedefinition/utils.js +16 -0
- package/core/rules/conditions.d.ts +5 -1
- package/core/rules/conditions.js +6 -1
- package/core/rules/conditiontype.d.ts +2 -1
- package/core/rules/conditiontype.js +1 -0
- package/document/documentelement/documentelementtype.d.ts +2 -1
- package/document/documentelement/documentelementtype.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ScalarFieldTypeEnum } from './scalarfieldtype';
|
|
2
|
+
export declare function isDateScalarFieldTypeEnum(fieldType: unknown): fieldType is ScalarFieldTypeEnum.DATE | ScalarFieldTypeEnum.DATEONLY;
|
|
3
|
+
export declare function isDateFieldTypeDefinition(fieldType: unknown): fieldType is (ScalarFieldTypeEnum.DATE | ScalarFieldTypeEnum.DATEONLY)[] | ScalarFieldTypeEnum.DATE | ScalarFieldTypeEnum.DATEONLY;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isDateFieldTypeDefinition = exports.isDateScalarFieldTypeEnum = void 0;
|
|
4
|
+
const checks_1 = require("../../checks");
|
|
5
|
+
const basefieldtypedefinition_1 = require("./basefieldtypedefinition");
|
|
6
|
+
const scalarfieldtype_1 = require("./scalarfieldtype");
|
|
7
|
+
function isDateScalarFieldTypeEnum(fieldType) {
|
|
8
|
+
return ((0, scalarfieldtype_1.isScalarFieldTypeEnum)(fieldType) &&
|
|
9
|
+
(fieldType === scalarfieldtype_1.ScalarFieldTypeEnum.DATE || fieldType === scalarfieldtype_1.ScalarFieldTypeEnum.DATEONLY));
|
|
10
|
+
}
|
|
11
|
+
exports.isDateScalarFieldTypeEnum = isDateScalarFieldTypeEnum;
|
|
12
|
+
function isDateFieldTypeDefinition(fieldType) {
|
|
13
|
+
return (((0, basefieldtypedefinition_1.isBaseFieldTypeDefinition)(fieldType) && isDateScalarFieldTypeEnum(fieldType)) ||
|
|
14
|
+
((0, checks_1.isArray)(fieldType) && fieldType.every(isDateScalarFieldTypeEnum)));
|
|
15
|
+
}
|
|
16
|
+
exports.isDateFieldTypeDefinition = isDateFieldTypeDefinition;
|
|
@@ -48,4 +48,8 @@ export declare enum ConnectedShapesCondition {
|
|
|
48
48
|
Between = 14,
|
|
49
49
|
NotBetween = 15
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export declare enum ContainmentConditions {
|
|
52
|
+
TextContains = 2,
|
|
53
|
+
TextDoesNotContain = 3
|
|
54
|
+
}
|
|
55
|
+
export type Conditions = TextConditions | ShapeDataConditions | ShapeTypeConditions | ConnectedShapesCondition | ContainmentConditions;
|
package/core/rules/conditions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConnectedShapesCondition = exports.ShapeTypeConditions = exports.ShapeDataConditions = exports.TextConditions = exports.ConditionCombination = void 0;
|
|
3
|
+
exports.ContainmentConditions = exports.ConnectedShapesCondition = exports.ShapeTypeConditions = exports.ShapeDataConditions = exports.TextConditions = exports.ConditionCombination = void 0;
|
|
4
4
|
var ConditionCombination;
|
|
5
5
|
(function (ConditionCombination) {
|
|
6
6
|
ConditionCombination["AND"] = "AND";
|
|
@@ -56,3 +56,8 @@ var ConnectedShapesCondition;
|
|
|
56
56
|
ConnectedShapesCondition[ConnectedShapesCondition["Between"] = 14] = "Between";
|
|
57
57
|
ConnectedShapesCondition[ConnectedShapesCondition["NotBetween"] = 15] = "NotBetween";
|
|
58
58
|
})(ConnectedShapesCondition || (exports.ConnectedShapesCondition = ConnectedShapesCondition = {}));
|
|
59
|
+
var ContainmentConditions;
|
|
60
|
+
(function (ContainmentConditions) {
|
|
61
|
+
ContainmentConditions[ContainmentConditions["TextContains"] = 2] = "TextContains";
|
|
62
|
+
ContainmentConditions[ContainmentConditions["TextDoesNotContain"] = 3] = "TextDoesNotContain";
|
|
63
|
+
})(ContainmentConditions || (exports.ContainmentConditions = ContainmentConditions = {}));
|
|
@@ -8,4 +8,5 @@ var ConditionType;
|
|
|
8
8
|
ConditionType[ConditionType["Formula"] = 2] = "Formula";
|
|
9
9
|
ConditionType[ConditionType["ShapeType"] = 3] = "ShapeType";
|
|
10
10
|
ConditionType[ConditionType["ConnectedShapes"] = 4] = "ConnectedShapes";
|
|
11
|
+
ConditionType[ConditionType["Containment"] = 5] = "Containment";
|
|
11
12
|
})(ConditionType || (exports.ConditionType = ConditionType = {}));
|
|
@@ -13,5 +13,6 @@ export declare enum DocumentElementType {
|
|
|
13
13
|
TaskCardFieldsConfig = "TaskCardFieldsConfig",
|
|
14
14
|
GeneratorView = "GeneratorView",
|
|
15
15
|
ShapeStylePreset = "ShapeStylePreset",
|
|
16
|
-
ShapeSpecificDefaultProperties = "ShapeSpecificDefaultProperties"
|
|
16
|
+
ShapeSpecificDefaultProperties = "ShapeSpecificDefaultProperties",
|
|
17
|
+
TrackedFormulaLocation = "TrackedFormulaLocation"
|
|
17
18
|
}
|
|
@@ -18,4 +18,5 @@ var DocumentElementType;
|
|
|
18
18
|
DocumentElementType["GeneratorView"] = "GeneratorView";
|
|
19
19
|
DocumentElementType["ShapeStylePreset"] = "ShapeStylePreset";
|
|
20
20
|
DocumentElementType["ShapeSpecificDefaultProperties"] = "ShapeSpecificDefaultProperties";
|
|
21
|
+
DocumentElementType["TrackedFormulaLocation"] = "TrackedFormulaLocation";
|
|
21
22
|
})(DocumentElementType || (exports.DocumentElementType = DocumentElementType = {}));
|