lucid-extension-sdk 0.0.143 → 0.0.145
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.
|
@@ -91,7 +91,7 @@ export interface StencilConfig {
|
|
|
91
91
|
/**
|
|
92
92
|
* If specified, the result of this formula (executed in the context of the data item
|
|
93
93
|
* associated with this card) will be used instead of the raw field value when
|
|
94
|
-
* creating the data graphic. This can be useful if, for example, you
|
|
94
|
+
* creating the data graphic. This can be useful if, for example, you want to convert
|
|
95
95
|
* an ID into a URL.
|
|
96
96
|
*/
|
|
97
97
|
valueFormula?: string;
|
|
@@ -8,7 +8,8 @@ export declare enum TextMarkupNames {
|
|
|
8
8
|
Italic = "italic",
|
|
9
9
|
Underline = "underline",
|
|
10
10
|
Size = "size",
|
|
11
|
-
Color = "color"
|
|
11
|
+
Color = "color",
|
|
12
|
+
HAlign = "align"
|
|
12
13
|
}
|
|
13
14
|
export interface TextStyle {
|
|
14
15
|
[TextMarkupNames.Family]: string;
|
|
@@ -17,6 +18,7 @@ export interface TextStyle {
|
|
|
17
18
|
[TextMarkupNames.Underline]: boolean;
|
|
18
19
|
[TextMarkupNames.Size]: number;
|
|
19
20
|
[TextMarkupNames.Color]: string;
|
|
21
|
+
[TextMarkupNames.HAlign]: 'left' | 'center' | 'right';
|
|
20
22
|
}
|
|
21
23
|
export declare const isPartialTextStyle: (subject: unknown) => subject is Partial<import("../..").DestructureGuardedTypeObj<{
|
|
22
24
|
font: typeof isString;
|
|
@@ -25,4 +27,5 @@ export declare const isPartialTextStyle: (subject: unknown) => subject is Partia
|
|
|
25
27
|
underline: typeof isBoolean;
|
|
26
28
|
size: typeof isNumber;
|
|
27
29
|
color: typeof isString;
|
|
30
|
+
align: (value: unknown) => value is "left" | "center" | "right";
|
|
28
31
|
}>>;
|
|
@@ -14,6 +14,7 @@ var TextMarkupNames;
|
|
|
14
14
|
TextMarkupNames["Underline"] = "underline";
|
|
15
15
|
TextMarkupNames["Size"] = "size";
|
|
16
16
|
TextMarkupNames["Color"] = "color";
|
|
17
|
+
TextMarkupNames["HAlign"] = "align";
|
|
17
18
|
})(TextMarkupNames = exports.TextMarkupNames || (exports.TextMarkupNames = {}));
|
|
18
19
|
exports.isPartialTextStyle = (0, validators_1.partialObjectValidator)({
|
|
19
20
|
[TextMarkupNames.Family]: checks_1.isString,
|
|
@@ -22,4 +23,5 @@ exports.isPartialTextStyle = (0, validators_1.partialObjectValidator)({
|
|
|
22
23
|
[TextMarkupNames.Underline]: checks_1.isBoolean,
|
|
23
24
|
[TextMarkupNames.Size]: checks_1.isNumber,
|
|
24
25
|
[TextMarkupNames.Color]: checks_1.isString,
|
|
26
|
+
[TextMarkupNames.HAlign]: (value) => value === 'left' || value === 'right' || value === 'center',
|
|
25
27
|
});
|