verstak 0.24.128 → 0.24.129
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.
|
@@ -18,7 +18,8 @@ export type El<T = any, M = any> = {
|
|
|
18
18
|
elementAlignment: Align;
|
|
19
19
|
contentWrapping: boolean;
|
|
20
20
|
overlayVisible: boolean | undefined;
|
|
21
|
-
|
|
21
|
+
readonly style: CSSStyleDeclaration;
|
|
22
|
+
useStylingPreset(stylingPresetName: string, enabled?: boolean): void;
|
|
22
23
|
};
|
|
23
24
|
export declare enum ElKind {
|
|
24
25
|
section = 0,
|
|
@@ -79,7 +80,7 @@ export declare class ElImpl<T extends Element = any, M = any> implements El<T, M
|
|
|
79
80
|
private _elementAlignment;
|
|
80
81
|
private _contentWrapping;
|
|
81
82
|
private _overlayVisible;
|
|
82
|
-
private
|
|
83
|
+
private _hasStylingPresets;
|
|
83
84
|
constructor(node: RxNode<El<T, M>>);
|
|
84
85
|
prepareForUpdate(): void;
|
|
85
86
|
get isSection(): boolean;
|
|
@@ -109,7 +110,8 @@ export declare class ElImpl<T extends Element = any, M = any> implements El<T, M
|
|
|
109
110
|
set contentWrapping(value: boolean);
|
|
110
111
|
get overlayVisible(): boolean | undefined;
|
|
111
112
|
set overlayVisible(value: boolean | undefined);
|
|
112
|
-
|
|
113
|
+
get style(): CSSStyleDeclaration;
|
|
114
|
+
useStylingPreset(stylingPresetName: string, enabled?: boolean): void;
|
|
113
115
|
private rowBreak;
|
|
114
116
|
}
|
|
115
117
|
declare class CursorPosition {
|
|
@@ -147,7 +149,7 @@ export declare class Apply {
|
|
|
147
149
|
static elementAlignment<T extends Element>(element: El<T, any>, value: Align): void;
|
|
148
150
|
static contentWrapping<T extends Element>(element: El<T, any>, value: boolean): void;
|
|
149
151
|
static overlayVisible<T extends Element>(element: El<T, any>, value: boolean | undefined): void;
|
|
150
|
-
static
|
|
152
|
+
static stylingPreset<T extends Element>(element: El<T, any>, secondary: boolean, styleName: string, enabled?: boolean): void;
|
|
151
153
|
}
|
|
152
154
|
export declare const Constants: {
|
|
153
155
|
element: string;
|
|
@@ -48,11 +48,11 @@ export class ElImpl {
|
|
|
48
48
|
this._elementAlignment = Align.default;
|
|
49
49
|
this._contentWrapping = true;
|
|
50
50
|
this._overlayVisible = undefined;
|
|
51
|
-
this.
|
|
51
|
+
this._hasStylingPresets = false;
|
|
52
52
|
}
|
|
53
53
|
prepareForUpdate() {
|
|
54
54
|
this._area = undefined;
|
|
55
|
-
this.
|
|
55
|
+
this._hasStylingPresets = false;
|
|
56
56
|
}
|
|
57
57
|
get isSection() { return this.kind === ElKind.section; }
|
|
58
58
|
get isTable() { return this.kind === ElKind.table; }
|
|
@@ -158,9 +158,10 @@ export class ElImpl {
|
|
|
158
158
|
this._overlayVisible = value;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
this.
|
|
161
|
+
get style() { return this.native.style; }
|
|
162
|
+
useStylingPreset(stylingPresetName, enabled) {
|
|
163
|
+
Apply.stylingPreset(this, this._hasStylingPresets, stylingPresetName, enabled);
|
|
164
|
+
this._hasStylingPresets = true;
|
|
164
165
|
}
|
|
165
166
|
rowBreak() {
|
|
166
167
|
var _a, _b;
|
|
@@ -445,7 +446,7 @@ export class Apply {
|
|
|
445
446
|
}
|
|
446
447
|
}
|
|
447
448
|
}
|
|
448
|
-
static
|
|
449
|
+
static stylingPreset(element, secondary, styleName, enabled) {
|
|
449
450
|
const native = element.native;
|
|
450
451
|
enabled !== null && enabled !== void 0 ? enabled : (enabled = true);
|
|
451
452
|
if (secondary)
|