lucid-extension-sdk 0.0.142 → 0.0.144
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/document/blockproxy.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BadgeEnumPosition } from '../core/properties/datagraphic/badgeposition';
|
|
1
2
|
import { SimpleStaticDataGraphicSettings } from '../core/properties/datagraphic/staticdatagraphicsettings';
|
|
2
3
|
import { SimpleFillStyle } from '../core/properties/fillcolor';
|
|
3
4
|
import { Shadow } from '../core/properties/shadow';
|
|
@@ -79,4 +80,9 @@ export declare class BlockProxy extends ItemProxy {
|
|
|
79
80
|
* @param field
|
|
80
81
|
*/
|
|
81
82
|
linkText(textAreaKey: string, referenceKey: string | number, field: string): void;
|
|
83
|
+
/**
|
|
84
|
+
* @param position The postion where the data sync state icon should be displayed on the block. If this position is
|
|
85
|
+
* set to undefined then the state icon position will fallback to the default position for the block.
|
|
86
|
+
*/
|
|
87
|
+
setDataSyncStateIconPosition(position: BadgeEnumPosition | undefined): void;
|
|
82
88
|
}
|
package/document/blockproxy.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BlockProxy = void 0;
|
|
4
|
+
const badgeposition_1 = require("../core/properties/datagraphic/badgeposition");
|
|
4
5
|
const staticdatagraphicsettings_1 = require("../core/properties/datagraphic/staticdatagraphicsettings");
|
|
5
6
|
const fillcolor_1 = require("../core/properties/fillcolor");
|
|
6
7
|
const shadow_1 = require("../core/properties/shadow");
|
|
@@ -141,5 +142,12 @@ class BlockProxy extends itemproxy_1.ItemProxy {
|
|
|
141
142
|
'f': field,
|
|
142
143
|
});
|
|
143
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* @param position The postion where the data sync state icon should be displayed on the block. If this position is
|
|
147
|
+
* set to undefined then the state icon position will fallback to the default position for the block.
|
|
148
|
+
*/
|
|
149
|
+
setDataSyncStateIconPosition(position) {
|
|
150
|
+
this.properties.set('DataSyncStateIconPosition', position ? (0, badgeposition_1.serializeBadgeEnumPosition)(position) : null);
|
|
151
|
+
}
|
|
144
152
|
}
|
|
145
153
|
exports.BlockProxy = BlockProxy;
|
|
@@ -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
|
});
|