verstak 0.23.125 → 0.24.104
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/build/dist/source/core/api.d.ts +0 -3
- package/build/dist/source/core/api.js +0 -3
- package/build/dist/source/html/El.d.ts +163 -0
- package/build/dist/source/html/El.js +508 -0
- package/build/dist/source/{core/Utils.d.ts → html/ElUtils.d.ts} +3 -4
- package/build/dist/source/{core/Utils.js → html/ElUtils.js} +14 -46
- package/build/dist/source/html/Elements.d.ts +8 -20
- package/build/dist/source/html/Elements.js +22 -200
- package/build/dist/source/html/HtmlDriver.d.ts +18 -15
- package/build/dist/source/html/HtmlDriver.js +31 -31
- package/build/dist/source/html/HtmlElements.d.ts +176 -175
- package/build/dist/source/html/HtmlElements.js +178 -177
- package/build/dist/source/html/ReactingFocuser.js +2 -2
- package/build/dist/source/html/api.d.ts +1 -0
- package/build/dist/source/html/api.js +1 -0
- package/build/dist/source/html/sensors/FocusSensor.js +1 -1
- package/build/dist/source/html/sensors/ResizeSensor.d.ts +1 -1
- package/build/dist/source/html/sensors/WindowSensor.js +1 -1
- package/package.json +2 -2
- package/build/dist/source/core/Interfaces.d.ts +0 -132
- package/build/dist/source/core/Interfaces.js +0 -34
- package/build/dist/source/core/Verstak.d.ts +0 -61
- package/build/dist/source/core/Verstak.js +0 -887
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { MergeListReader, MergedItem, MemberOptions } from "reactronic";
|
|
2
|
-
export type Callback<T = unknown> = (native: T) => void;
|
|
3
|
-
export type Delegate<T> = (element: T, base: () => void) => void;
|
|
4
|
-
export type AsyncDelegate<T = unknown, M = unknown> = (element: El<T, M, Promise<void>>) => Promise<void>;
|
|
5
|
-
export type SimpleDelegate<T = unknown> = (element: El<T, any, any, any>) => void;
|
|
6
|
-
export declare enum ElKind {
|
|
7
|
-
Section = 0,
|
|
8
|
-
Table = 1,
|
|
9
|
-
Note = 2,
|
|
10
|
-
Group = 3,
|
|
11
|
-
Row = 4,
|
|
12
|
-
Cursor = 5,
|
|
13
|
-
Native = 6
|
|
14
|
-
}
|
|
15
|
-
export interface El<T = unknown, M = unknown, C = unknown, R = void> {
|
|
16
|
-
readonly node: RxNode<T, M, C, R>;
|
|
17
|
-
readonly isSection: boolean;
|
|
18
|
-
readonly isTable: boolean;
|
|
19
|
-
native: T;
|
|
20
|
-
model: M;
|
|
21
|
-
controller: C;
|
|
22
|
-
kind: ElKind;
|
|
23
|
-
area: ElArea;
|
|
24
|
-
widthGrowth: number;
|
|
25
|
-
minWidth: string;
|
|
26
|
-
maxWidth: string;
|
|
27
|
-
heightGrowth: number;
|
|
28
|
-
minHeight: string;
|
|
29
|
-
maxHeight: string;
|
|
30
|
-
contentAlignment: Align;
|
|
31
|
-
elementAlignment: Align;
|
|
32
|
-
contentWrapping: boolean;
|
|
33
|
-
overlayVisible: boolean | undefined;
|
|
34
|
-
useStyle(styleName: string, enabled?: boolean): void;
|
|
35
|
-
configureReactronic(options: Partial<MemberOptions>): MemberOptions;
|
|
36
|
-
}
|
|
37
|
-
export interface RxNode<T = unknown, M = unknown, C = unknown, R = void> {
|
|
38
|
-
readonly key: string;
|
|
39
|
-
readonly driver: RxNodeDriver<T>;
|
|
40
|
-
readonly spec: Readonly<RxNodeSpec<El<T, M, C, R>>>;
|
|
41
|
-
readonly level: number;
|
|
42
|
-
readonly owner: RxNode;
|
|
43
|
-
readonly host: RxNode;
|
|
44
|
-
readonly children: MergeListReader<El>;
|
|
45
|
-
readonly slot: MergedItem<El> | undefined;
|
|
46
|
-
readonly stamp: number;
|
|
47
|
-
readonly outer: RxNode;
|
|
48
|
-
readonly context: RxNodeCtx | undefined;
|
|
49
|
-
readonly isInitialUpdate: boolean;
|
|
50
|
-
priority?: Priority;
|
|
51
|
-
childrenShuffling: boolean;
|
|
52
|
-
strictOrder: boolean;
|
|
53
|
-
has(mode: Mode): boolean;
|
|
54
|
-
}
|
|
55
|
-
export interface RxNodeSpec<T = unknown> {
|
|
56
|
-
base?: RxNodeSpec<T>;
|
|
57
|
-
key?: string;
|
|
58
|
-
mode?: Mode;
|
|
59
|
-
triggers?: unknown;
|
|
60
|
-
specify?: Delegate<T>;
|
|
61
|
-
create?: Delegate<T>;
|
|
62
|
-
initialize?: Delegate<T>;
|
|
63
|
-
update?: Delegate<T>;
|
|
64
|
-
finalize?: Delegate<T>;
|
|
65
|
-
}
|
|
66
|
-
export interface RxNodeCtx<T extends Object = Object> {
|
|
67
|
-
value: T;
|
|
68
|
-
}
|
|
69
|
-
export interface RxNodeDriver<T, C = unknown> {
|
|
70
|
-
readonly name: string;
|
|
71
|
-
readonly isSeparator: boolean;
|
|
72
|
-
readonly preset?: SimpleDelegate<T>;
|
|
73
|
-
specify(element: El<T, unknown, C>): void;
|
|
74
|
-
create(element: El<T, unknown, C>): void;
|
|
75
|
-
initialize(element: El<T, unknown, C>): void;
|
|
76
|
-
mount(element: El<T, unknown, C>): void;
|
|
77
|
-
update(element: El<T, unknown, C>): void | Promise<void>;
|
|
78
|
-
finalize(element: El<T, unknown, C>, isLeader: boolean): boolean;
|
|
79
|
-
applyKind(element: El<T, any, C, any>, value: ElKind): void;
|
|
80
|
-
applyCoords(element: El<T, any, C, any>, value: ElCoords | undefined): void;
|
|
81
|
-
applyWidthGrowth(element: El<T, any, C, any>, value: number): void;
|
|
82
|
-
applyMinWidth(element: El<T, any, C, any>, value: string): void;
|
|
83
|
-
applyMaxWidth(element: El<T, any, C, any>, value: string): void;
|
|
84
|
-
applyHeightGrowth(element: El<T, any, C, any>, value: number): void;
|
|
85
|
-
applyMinHeight(element: El<T, any, C, any>, value: string): void;
|
|
86
|
-
applyMaxHeight(element: El<T, any, C, any>, value: string): void;
|
|
87
|
-
applyContentAlignment(element: El<T, any, C, any>, value: Align): void;
|
|
88
|
-
applyElementAlignment(element: El<T, any, C, any>, value: Align): void;
|
|
89
|
-
applyContentWrapping(element: El<T, any, C, any>, value: boolean): void;
|
|
90
|
-
applyOverlayVisible(element: El<T, any, C, any>, value: boolean | undefined): void;
|
|
91
|
-
applyStyle(element: El<T, any, C, any>, secondary: boolean, styleName: string, enabled?: boolean): void;
|
|
92
|
-
}
|
|
93
|
-
export interface ElCoords {
|
|
94
|
-
x1: number;
|
|
95
|
-
y1: number;
|
|
96
|
-
x2: number;
|
|
97
|
-
y2: number;
|
|
98
|
-
}
|
|
99
|
-
export declare const enum Priority {
|
|
100
|
-
Realtime = 0,
|
|
101
|
-
Normal = 1,
|
|
102
|
-
Background = 2
|
|
103
|
-
}
|
|
104
|
-
export declare enum Mode {
|
|
105
|
-
Default = 0,
|
|
106
|
-
PinpointUpdate = 1,
|
|
107
|
-
ManualMount = 2
|
|
108
|
-
}
|
|
109
|
-
export declare enum Align {
|
|
110
|
-
Default = 16,
|
|
111
|
-
ToBounds = 0,
|
|
112
|
-
ToLeft = 1,
|
|
113
|
-
ToCenterX = 2,
|
|
114
|
-
ToRight = 3,
|
|
115
|
-
ToTop = 4,
|
|
116
|
-
ToCenterY = 8,
|
|
117
|
-
ToBottom = 12,
|
|
118
|
-
ToCenter = 10
|
|
119
|
-
}
|
|
120
|
-
export interface ElasticSize {
|
|
121
|
-
cells?: number;
|
|
122
|
-
min?: string;
|
|
123
|
-
max?: string;
|
|
124
|
-
growth?: number;
|
|
125
|
-
}
|
|
126
|
-
export interface TrackSize extends ElasticSize {
|
|
127
|
-
track?: string | number;
|
|
128
|
-
}
|
|
129
|
-
export type ElArea = undefined | string | {
|
|
130
|
-
cellsOverWidth?: number;
|
|
131
|
-
cellsOverHeight?: number;
|
|
132
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export var ElKind;
|
|
2
|
-
(function (ElKind) {
|
|
3
|
-
ElKind[ElKind["Section"] = 0] = "Section";
|
|
4
|
-
ElKind[ElKind["Table"] = 1] = "Table";
|
|
5
|
-
ElKind[ElKind["Note"] = 2] = "Note";
|
|
6
|
-
ElKind[ElKind["Group"] = 3] = "Group";
|
|
7
|
-
ElKind[ElKind["Row"] = 4] = "Row";
|
|
8
|
-
ElKind[ElKind["Cursor"] = 5] = "Cursor";
|
|
9
|
-
ElKind[ElKind["Native"] = 6] = "Native";
|
|
10
|
-
})(ElKind || (ElKind = {}));
|
|
11
|
-
export var Priority;
|
|
12
|
-
(function (Priority) {
|
|
13
|
-
Priority[Priority["Realtime"] = 0] = "Realtime";
|
|
14
|
-
Priority[Priority["Normal"] = 1] = "Normal";
|
|
15
|
-
Priority[Priority["Background"] = 2] = "Background";
|
|
16
|
-
})(Priority || (Priority = {}));
|
|
17
|
-
export var Mode;
|
|
18
|
-
(function (Mode) {
|
|
19
|
-
Mode[Mode["Default"] = 0] = "Default";
|
|
20
|
-
Mode[Mode["PinpointUpdate"] = 1] = "PinpointUpdate";
|
|
21
|
-
Mode[Mode["ManualMount"] = 2] = "ManualMount";
|
|
22
|
-
})(Mode || (Mode = {}));
|
|
23
|
-
export var Align;
|
|
24
|
-
(function (Align) {
|
|
25
|
-
Align[Align["Default"] = 16] = "Default";
|
|
26
|
-
Align[Align["ToBounds"] = 0] = "ToBounds";
|
|
27
|
-
Align[Align["ToLeft"] = 1] = "ToLeft";
|
|
28
|
-
Align[Align["ToCenterX"] = 2] = "ToCenterX";
|
|
29
|
-
Align[Align["ToRight"] = 3] = "ToRight";
|
|
30
|
-
Align[Align["ToTop"] = 4] = "ToTop";
|
|
31
|
-
Align[Align["ToCenterY"] = 8] = "ToCenterY";
|
|
32
|
-
Align[Align["ToBottom"] = 12] = "ToBottom";
|
|
33
|
-
Align[Align["ToCenter"] = 10] = "ToCenter";
|
|
34
|
-
})(Align || (Align = {}));
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { LoggingOptions } from "reactronic";
|
|
2
|
-
import { ElCoords, ElKind, Priority, Align, RxNodeSpec, El, RxNodeDriver, SimpleDelegate } from "./Interfaces.js";
|
|
3
|
-
export declare class Verstak {
|
|
4
|
-
static readonly shortFrameDuration = 16;
|
|
5
|
-
static readonly longFrameDuration = 300;
|
|
6
|
-
static currentUpdatePriority: Priority;
|
|
7
|
-
static frameDuration: number;
|
|
8
|
-
static specify<T = undefined, M = unknown, C = unknown, R = void>(driver: RxNodeDriver<T>, spec?: RxNodeSpec<El<T, M, C, R>>, base?: RxNodeSpec<El<T, M, C, R>>): El<T, M, C, R>;
|
|
9
|
-
static get element(): El;
|
|
10
|
-
static triggerUpdate(element: El<any, any, any, void>, triggers: unknown): void;
|
|
11
|
-
static updateNestedTreesThenDo(action: (error: unknown) => void): void;
|
|
12
|
-
static getDefaultLoggingOptions(): LoggingOptions | undefined;
|
|
13
|
-
static setDefaultLoggingOptions(logging?: LoggingOptions): void;
|
|
14
|
-
}
|
|
15
|
-
export declare class BaseDriver<T, C = unknown> implements RxNodeDriver<T, C> {
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly isSeparator: boolean;
|
|
18
|
-
readonly preset?: SimpleDelegate<T> | undefined;
|
|
19
|
-
static readonly fragment: BaseDriver<any, unknown>;
|
|
20
|
-
constructor(name: string, isSeparator: boolean, preset?: SimpleDelegate<T> | undefined);
|
|
21
|
-
specify(element: El<T, unknown, C>): void;
|
|
22
|
-
create(element: El<T, unknown, C>): void;
|
|
23
|
-
initialize(element: El<T, unknown, C>): void;
|
|
24
|
-
mount(element: El<T, unknown, C>): void;
|
|
25
|
-
update(element: El<T, unknown, C>): void | Promise<void>;
|
|
26
|
-
finalize(element: El<T, unknown, C>, isLeader: boolean): boolean;
|
|
27
|
-
applyKind(element: El<T, any, C, any>, value: ElKind): void;
|
|
28
|
-
applyCoords(element: El<T, any, C, any>, value: ElCoords | undefined): void;
|
|
29
|
-
applyWidthGrowth(element: El<T, any, C, any>, value: number): void;
|
|
30
|
-
applyMinWidth(element: El<T, any, C, any>, value: string): void;
|
|
31
|
-
applyMaxWidth(element: El<T, any, C, any>, value: string): void;
|
|
32
|
-
applyHeightGrowth(element: El<T, any, C, any>, value: number): void;
|
|
33
|
-
applyMinHeight(element: El<T, any, C, any>, value: string): void;
|
|
34
|
-
applyMaxHeight(element: El<T, any, C, any>, value: string): void;
|
|
35
|
-
applyContentAlignment(element: El<T, any, C, any>, value: Align): void;
|
|
36
|
-
applyElementAlignment(element: El<T, any, C, any>, value: Align): void;
|
|
37
|
-
applyContentWrapping(element: El<T, any, C, any>, value: boolean): void;
|
|
38
|
-
applyOverlayVisible(element: El<T, any, C, any>, value: boolean | undefined): void;
|
|
39
|
-
applyStyle(element: El<T, any, C, any>, secondary: boolean, styleName: string, enabled?: boolean): void;
|
|
40
|
-
}
|
|
41
|
-
export declare class StaticDriver<T> extends BaseDriver<T> {
|
|
42
|
-
readonly native: T;
|
|
43
|
-
constructor(native: T, name: string, isRow: boolean, preset?: SimpleDelegate<T>);
|
|
44
|
-
create(element: El<T, unknown, unknown, void>): void;
|
|
45
|
-
}
|
|
46
|
-
export declare class CursorCommand {
|
|
47
|
-
absolute?: string;
|
|
48
|
-
columnShift?: number;
|
|
49
|
-
rowShift?: number;
|
|
50
|
-
}
|
|
51
|
-
export declare class CursorCommandDriver extends BaseDriver<CursorCommand, void> {
|
|
52
|
-
constructor();
|
|
53
|
-
create(element: El<CursorCommand, unknown, void, void>): void;
|
|
54
|
-
}
|
|
55
|
-
export declare class SubTreeVariable<T extends Object = Object> {
|
|
56
|
-
readonly defaultValue: T | undefined;
|
|
57
|
-
constructor(defaultValue?: T);
|
|
58
|
-
set value(value: T);
|
|
59
|
-
get value(): T;
|
|
60
|
-
get valueOrUndefined(): T | undefined;
|
|
61
|
-
}
|