verstak 0.96.26018 → 0.96.26019
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.
|
@@ -17,8 +17,8 @@ export declare function cursor(place: ElPlace): void;
|
|
|
17
17
|
export declare function Group<M = unknown>(body?: Script<El<HTMLElement, M>>, bodyTask?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, unmounted?: boolean, preparation?: Script<El<HTMLElement, M>>, preparationTask?: ScriptAsync<El<HTMLElement, M>>, mounting?: Script<El<HTMLElement>>, finalization?: Script<El<HTMLElement, M>>, signalArgs?: unknown, basis?: ReactiveTreeNodeDecl<El<HTMLElement, M>>): ReactiveTreeNode<El<HTMLElement, M>>;
|
|
18
18
|
export declare function Group<M = unknown>(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, M>>): ReactiveTreeNode<El<HTMLElement, M>>;
|
|
19
19
|
export declare function Fragment<M = unknown>(body: Script<El<void, M>>): ReactiveTreeNode<El<void, M>>;
|
|
20
|
-
export declare function
|
|
21
|
-
export declare function
|
|
20
|
+
export declare function Intermediate<M = unknown>(body?: Script<El<void, M>>, bodyTask?: ScriptAsync<El<void, M>>, key?: string, mode?: Mode, unmounted?: boolean, preparation?: Script<El<void, M>>, preparationTask?: ScriptAsync<El<void, M>>, mounting?: Script<El<void>>, finalization?: Script<El<void, M>>, signalArgs?: unknown, basis?: ReactiveTreeNodeDecl<El<void, M>>): ReactiveTreeNode<El<void, M>>;
|
|
21
|
+
export declare function Intermediate<M = unknown>(declaration?: ReactiveTreeNodeDecl<El<void, M>>): ReactiveTreeNode<El<void, M>>;
|
|
22
22
|
export declare class BlockDriver<T extends HTMLElement> extends HtmlDriver<T> {
|
|
23
23
|
rebuildBody(node: ReactiveTreeNode<El<T>>): void | Promise<void>;
|
|
24
24
|
declareChild(ownerNode: ReactiveTreeNode<El<T, any>>, childDriver: ReactiveTreeNodeDriver<any>, childDeclaration?: ReactiveTreeNodeDecl<any> | undefined, childBasis?: ReactiveTreeNodeDecl<any> | undefined): LinkedItem<ReactiveTreeNode> | undefined;
|
|
@@ -36,5 +36,5 @@ export declare const Drivers: {
|
|
|
36
36
|
wrapper: HtmlDriver<HTMLElement, any>;
|
|
37
37
|
splitter: HtmlDriver<HTMLElement, any>;
|
|
38
38
|
cursor: CursorCommandDriver;
|
|
39
|
-
|
|
39
|
+
intermediate: ReactiveTreeNodeDriver<El<void, any>>;
|
|
40
40
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactiveTreeNode, declare, runNonReactive } from "reactronic";
|
|
1
|
+
import { ReactiveTreeNode, Mode, declare, runNonReactive } from "reactronic";
|
|
2
2
|
import { ElKind, Direction } from "./El.js";
|
|
3
3
|
import { clamp } from "./ElUtils.js";
|
|
4
4
|
import { Constants, CursorCommandDriver, ElDriver, ElLayoutInfo, InitialElLayoutInfo } from "./ElDriver.js";
|
|
@@ -89,10 +89,10 @@ export function Group(bodyOrDeclaration, bodyTask, key, mode, unmounted, prepara
|
|
|
89
89
|
return declare(Drivers.group, bodyOrDeclaration, bodyTask, key, mode, unmounted, preparation, preparationTask, mounting, finalization, signalArgs, basis);
|
|
90
90
|
}
|
|
91
91
|
export function Fragment(body) {
|
|
92
|
-
return
|
|
92
|
+
return Intermediate({ mode: Mode.intermediate, body });
|
|
93
93
|
}
|
|
94
|
-
export function
|
|
95
|
-
return declare(Drivers.
|
|
94
|
+
export function Intermediate(bodyOrDeclaration, bodyTask, key, mode, unmounted, preparation, preparationTask, mounting, finalization, signalArgs, basis) {
|
|
95
|
+
return declare(Drivers.intermediate, bodyOrDeclaration, bodyTask, key, mode, unmounted, preparation, preparationTask, mounting, finalization, signalArgs, basis);
|
|
96
96
|
}
|
|
97
97
|
export class BlockDriver extends HtmlDriver {
|
|
98
98
|
rebuildBody(node) {
|
|
@@ -116,7 +116,7 @@ export class BlockDriver extends HtmlDriver {
|
|
|
116
116
|
layoutInfo.contentSizeYpx = contentBoxPx.blockSize;
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
|
-
const relayoutEl =
|
|
119
|
+
const relayoutEl = Intermediate({
|
|
120
120
|
body() {
|
|
121
121
|
const native = el.native;
|
|
122
122
|
const isHorizontal = el.splitView === Direction.horizontal;
|
|
@@ -205,7 +205,7 @@ export class BlockDriver extends HtmlDriver {
|
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
export function isSplitViewPartition(childDriver) {
|
|
208
|
-
return !childDriver.isPartition && childDriver !== Drivers.splitter && childDriver !== Drivers.
|
|
208
|
+
return !childDriver.isPartition && childDriver !== Drivers.splitter && childDriver !== Drivers.intermediate;
|
|
209
209
|
}
|
|
210
210
|
function overrideMethod(declaration, method, func) {
|
|
211
211
|
const baseScript = declaration[method];
|
|
@@ -263,5 +263,5 @@ export const Drivers = {
|
|
|
263
263
|
wrapper: new HtmlDriver(Constants.wrapper, false, el => el.kind = ElKind.native),
|
|
264
264
|
splitter: new HtmlDriver(Constants.splitter, false, el => el.kind = ElKind.splitter),
|
|
265
265
|
cursor: new CursorCommandDriver(),
|
|
266
|
-
|
|
266
|
+
intermediate: new ElDriver("intermediate", false, el => el.kind = ElKind.group),
|
|
267
267
|
};
|
|
@@ -7,12 +7,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { ToggleRef, runNonReactive } from "reactronic";
|
|
11
|
-
import {
|
|
10
|
+
import { Mode, ToggleRef, runNonReactive } from "reactronic";
|
|
11
|
+
import { Intermediate } from "../Elements.js";
|
|
12
12
|
export function OnClick(target, action, key) {
|
|
13
13
|
if (action !== undefined) {
|
|
14
|
-
|
|
14
|
+
Intermediate({
|
|
15
15
|
key,
|
|
16
|
+
mode: Mode.intermediate,
|
|
16
17
|
signalArgs: { target },
|
|
17
18
|
body() {
|
|
18
19
|
const pointer = target.sensors.pointer;
|
|
@@ -30,8 +31,9 @@ export function OnClick(target, action, key) {
|
|
|
30
31
|
}
|
|
31
32
|
export function OnClickAsync(target, action, key) {
|
|
32
33
|
if (action !== undefined) {
|
|
33
|
-
|
|
34
|
+
Intermediate({
|
|
34
35
|
key,
|
|
36
|
+
mode: Mode.intermediate,
|
|
35
37
|
signalArgs: { target },
|
|
36
38
|
bodyTask() {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -51,8 +53,9 @@ export function OnClickAsync(target, action, key) {
|
|
|
51
53
|
}
|
|
52
54
|
export function OnResize(target, action, key) {
|
|
53
55
|
if (action) {
|
|
54
|
-
|
|
56
|
+
Intermediate({
|
|
55
57
|
key,
|
|
58
|
+
mode: Mode.intermediate,
|
|
56
59
|
signalArgs: { target },
|
|
57
60
|
body() {
|
|
58
61
|
const resize = target.sensors.resize;
|
|
@@ -64,8 +67,9 @@ export function OnResize(target, action, key) {
|
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
export function OnFocus(target, model, switchEditMode = undefined, key) {
|
|
67
|
-
|
|
70
|
+
Intermediate({
|
|
68
71
|
key,
|
|
72
|
+
mode: Mode.intermediate,
|
|
69
73
|
signalArgs: { target, model },
|
|
70
74
|
preparation() {
|
|
71
75
|
this.node.configureReactivity({ throttling: 0 });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verstak",
|
|
3
|
-
"version": "0.96.
|
|
3
|
+
"version": "0.96.26019",
|
|
4
4
|
"description": "Verstak - Front-End Library",
|
|
5
5
|
"publisher": "Nezaboodka Software",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"markdown-it": "^14.1.0",
|
|
43
43
|
"markdown-it-prism": "^2.3.0",
|
|
44
44
|
"prismjs": "^1.30.0",
|
|
45
|
-
"reactronic": "^0.96.
|
|
45
|
+
"reactronic": "^0.96.26019"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/markdown-it": "14.1.2",
|