verstak 0.24.137 → 0.24.200
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.
|
@@ -16,21 +16,21 @@ export function startNewRow(shiftCursorDown) {
|
|
|
16
16
|
}
|
|
17
17
|
export function cursor(areaParams) {
|
|
18
18
|
RxNode.acquire(Drivers.cursor, {
|
|
19
|
-
|
|
19
|
+
content(b) {
|
|
20
20
|
b.area = areaParams;
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
export function Note(content, declaration) {
|
|
25
25
|
return RxNode.acquire(Drivers.note, declaration, {
|
|
26
|
-
|
|
26
|
+
content(b) {
|
|
27
27
|
b.native.innerText = content;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
export function HtmlNote(content, declaration) {
|
|
32
32
|
return RxNode.acquire(Drivers.note, declaration, {
|
|
33
|
-
|
|
33
|
+
content(b) {
|
|
34
34
|
b.native.innerHTML = content;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -39,7 +39,7 @@ export function Group(declaration, preset) {
|
|
|
39
39
|
return RxNode.acquire(Drivers.group, declaration, preset);
|
|
40
40
|
}
|
|
41
41
|
export function Handling(update) {
|
|
42
|
-
return SyntheticElement({ mode: Mode.independentUpdate, update });
|
|
42
|
+
return SyntheticElement({ mode: Mode.independentUpdate, content: update });
|
|
43
43
|
}
|
|
44
44
|
export function SyntheticElement(declaration, preset) {
|
|
45
45
|
return RxNode.acquire(Drivers.pseudo, declaration, preset);
|
|
@@ -6,7 +6,7 @@ export function OnClick(target, action, key) {
|
|
|
6
6
|
key,
|
|
7
7
|
mode: Mode.independentUpdate,
|
|
8
8
|
triggers: { target },
|
|
9
|
-
|
|
9
|
+
content() {
|
|
10
10
|
const pointer = target.sensors.pointer;
|
|
11
11
|
if (pointer.clicked) {
|
|
12
12
|
if (action instanceof Function) {
|
|
@@ -26,7 +26,7 @@ export function OnResize(target, action, key) {
|
|
|
26
26
|
key,
|
|
27
27
|
mode: Mode.independentUpdate,
|
|
28
28
|
triggers: { target },
|
|
29
|
-
|
|
29
|
+
content() {
|
|
30
30
|
const resize = target.sensors.resize;
|
|
31
31
|
resize.resizedElements.forEach(x => {
|
|
32
32
|
action(x);
|
|
@@ -40,10 +40,10 @@ export function OnFocus(target, model, switchEditMode = undefined, key) {
|
|
|
40
40
|
key,
|
|
41
41
|
mode: Mode.independentUpdate,
|
|
42
42
|
triggers: { target, model },
|
|
43
|
-
|
|
43
|
+
activation(b) {
|
|
44
44
|
b.node.configureReactronic({ throttling: 0 });
|
|
45
45
|
},
|
|
46
|
-
|
|
46
|
+
content() {
|
|
47
47
|
if (switchEditMode !== undefined) {
|
|
48
48
|
switchEditMode(model);
|
|
49
49
|
}
|
|
@@ -2,8 +2,8 @@ import { RxNode, SimpleDelegate } from "reactronic";
|
|
|
2
2
|
import { El, ElDriver } from "./El.js";
|
|
3
3
|
export declare class WebDriver<T extends Element, M = unknown> extends ElDriver<T, M> {
|
|
4
4
|
setNativeElement(node: RxNode<El<T, M>>): void;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
activate(node: RxNode<El<T, M>>): void;
|
|
6
|
+
deactivate(node: RxNode<El<T, M>>, isLeader: boolean): boolean;
|
|
7
7
|
mount(node: RxNode<El<T, M>>): void;
|
|
8
8
|
update(node: RxNode<El<T, M>>): void | Promise<void>;
|
|
9
9
|
static findBrotherlyHost<T, R>(node: RxNode<El<T>>): RxNode<El<R>> | undefined;
|
|
@@ -3,16 +3,16 @@ import { Constants, ElDriver, ElImpl } from "./El.js";
|
|
|
3
3
|
export class WebDriver extends ElDriver {
|
|
4
4
|
setNativeElement(node) {
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
activate(node) {
|
|
7
7
|
this.setNativeElement(node);
|
|
8
8
|
const e = node.element.native;
|
|
9
9
|
if (RxSystem.isLogging && e !== undefined && !node.driver.isPartitionSeparator)
|
|
10
10
|
e.setAttribute(Constants.keyAttrName, node.key);
|
|
11
|
-
super.
|
|
11
|
+
super.activate(node);
|
|
12
12
|
if (e == undefined && RxSystem.isLogging && !node.driver.isPartitionSeparator)
|
|
13
13
|
node.element.native.setAttribute(Constants.keyAttrName, node.key);
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
deactivate(node, isLeader) {
|
|
16
16
|
var _a;
|
|
17
17
|
const element = node.element;
|
|
18
18
|
const native = element.native;
|
|
@@ -21,7 +21,7 @@ export class WebDriver extends ElDriver {
|
|
|
21
21
|
if (isLeader)
|
|
22
22
|
native.remove();
|
|
23
23
|
}
|
|
24
|
-
super.
|
|
24
|
+
super.deactivate(node, isLeader);
|
|
25
25
|
element.native = null;
|
|
26
26
|
return false;
|
|
27
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verstak",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.200",
|
|
4
4
|
"description": "Verstak - Front-End Library",
|
|
5
5
|
"publisher": "Nezaboodka Software",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/nezaboodka/verstak/blob/master/README.md#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"reactronic": "^0.24.
|
|
34
|
+
"reactronic": "^0.24.200"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/node": "20.11.
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
39
|
-
"@typescript-eslint/parser": "6.
|
|
37
|
+
"@types/node": "20.11.17",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
39
|
+
"@typescript-eslint/parser": "6.21.0",
|
|
40
40
|
"ava": "6.1.1",
|
|
41
41
|
"c8": "9.1.0",
|
|
42
42
|
"eslint": "8.56.0",
|