verstak 0.93.25026 → 0.94.25029
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/components/Button.v.d.ts +2 -2
- package/build/dist/source/components/Button.v.js +3 -3
- package/build/dist/source/components/Icon.v.d.ts +2 -2
- package/build/dist/source/components/Icon.v.js +2 -2
- package/build/dist/source/components/Image.v.d.ts +2 -2
- package/build/dist/source/components/Image.v.js +2 -2
- package/build/dist/source/components/Input.v.d.ts +2 -2
- package/build/dist/source/components/Input.v.js +2 -2
- package/build/dist/source/components/Markdown.v.d.ts +1 -1
- package/build/dist/source/components/RealTimeClock.d.ts +2 -2
- package/build/dist/source/components/RealTimeClock.js +3 -3
- package/build/dist/source/components/Spinner.v.d.ts +2 -2
- package/build/dist/source/components/Spinner.v.js +2 -2
- package/build/dist/source/components/Theme.js +2 -2
- package/build/dist/source/components/Toggle.v.d.ts +2 -2
- package/build/dist/source/components/Toggle.v.js +3 -3
- package/build/dist/source/components/common/Utils.js +2 -2
- package/build/dist/source/components/theme/Button.s.js +4 -4
- package/build/dist/source/components/theme/Icon.s.js +2 -2
- package/build/dist/source/components/theme/Input.s.js +5 -5
- package/build/dist/source/components/theme/Styling.d.ts +2 -2
- package/build/dist/source/components/theme/Styling.js +3 -3
- package/build/dist/source/components/theme/Toggle.s.js +4 -4
- package/build/dist/source/core/El.d.ts +2 -2
- package/build/dist/source/core/ElDriver.d.ts +5 -5
- package/build/dist/source/core/ElDriver.js +9 -9
- package/build/dist/source/core/Elements.d.ts +22 -22
- package/build/dist/source/core/Elements.js +13 -13
- package/build/dist/source/core/Restyler.js +2 -2
- package/build/dist/source/core/Sizes.d.ts +3 -3
- package/build/dist/source/core/Sizes.js +3 -3
- package/build/dist/source/core/SplitViewMath.d.ts +10 -10
- package/build/dist/source/core/WebDriver.d.ts +11 -11
- package/build/dist/source/core/WebDriver.js +6 -6
- package/build/dist/source/core/sensors/HtmlDragSensor.js +10 -10
- package/build/dist/source/core/sensors/HtmlElementSensor.js +5 -5
- package/build/dist/source/core/sensors/PointerSensor.js +7 -7
- package/build/dist/source/core/sensors/Sensor.d.ts +2 -2
- package/build/dist/source/core/sensors/Sensor.js +2 -2
- package/build/dist/source/html/DraggableArea.view.d.ts +2 -2
- package/build/dist/source/html/DraggableArea.view.js +2 -2
- package/build/dist/source/html/HtmlElements.d.ts +115 -115
- package/build/dist/source/html/HtmlElements.js +115 -115
- package/build/dist/source/svg/SvgElements.d.ts +60 -60
- package/build/dist/source/svg/SvgElements.js +60 -60
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTreeNode, ReactiveTreeNodeDecl } from "reactronic";
|
|
2
2
|
import { El } from "verstak";
|
|
3
3
|
export type ButtonModel = {
|
|
4
4
|
icon?: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
action?(): void;
|
|
7
7
|
};
|
|
8
|
-
export declare function Button(declaration?:
|
|
8
|
+
export declare function Button(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, ButtonModel>>): ReactiveTreeNode<El<HTMLElement, ButtonModel>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTree, ReactiveTreeNode, Mode } from "reactronic";
|
|
2
2
|
import { Division, JustText, OnClick } from "verstak";
|
|
3
3
|
import { triggeringModel } from "./common/Utils.js";
|
|
4
4
|
import { Theme } from "./Theme.js";
|
|
5
5
|
import { Icon } from "./Icon.v.js";
|
|
6
6
|
export function Button(declaration) {
|
|
7
|
-
return (Division(
|
|
7
|
+
return (Division(ReactiveTree.withBasis(declaration, {
|
|
8
8
|
mode: Mode.autonomous,
|
|
9
9
|
preparation: el => {
|
|
10
10
|
var _a;
|
|
11
11
|
(_a = el.model) !== null && _a !== void 0 ? _a : (el.model = triggeringModel({
|
|
12
12
|
icon: "fa-solid fa-square",
|
|
13
|
-
label:
|
|
13
|
+
label: ReactiveTreeNode.key,
|
|
14
14
|
}));
|
|
15
15
|
},
|
|
16
16
|
script: el => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTreeNodeDecl } from "reactronic";
|
|
2
2
|
import { El } from "verstak";
|
|
3
|
-
export declare function Icon(name: string, declaration?:
|
|
3
|
+
export declare function Icon(name: string, declaration?: ReactiveTreeNodeDecl<El<HTMLElement, void>>): import("reactronic").ReactiveTreeNode<El<HTMLElement, void>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTree, Mode } from "reactronic";
|
|
2
2
|
import { Division } from "verstak";
|
|
3
3
|
import { Theme } from "./Theme.js";
|
|
4
4
|
export function Icon(name, declaration) {
|
|
5
|
-
return (Division(
|
|
5
|
+
return (Division(ReactiveTree.withBasis(declaration, {
|
|
6
6
|
mode: Mode.autonomous,
|
|
7
7
|
triggers: { name },
|
|
8
8
|
script: el => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTreeNodeDecl } from "reactronic";
|
|
2
2
|
import { El } from "verstak";
|
|
3
3
|
export type ImageModel = {
|
|
4
4
|
source?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function Image(declaration?:
|
|
6
|
+
export declare function Image(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, ImageModel>>): import("reactronic").ReactiveTreeNode<El<HTMLElement, ImageModel>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTree, Mode } from "reactronic";
|
|
2
2
|
import { Division } from "verstak";
|
|
3
3
|
import { triggeringModel } from "./common/Utils.js";
|
|
4
4
|
export function Image(declaration) {
|
|
5
|
-
return (Division(
|
|
5
|
+
return (Division(ReactiveTree.withBasis(declaration, {
|
|
6
6
|
mode: Mode.autonomous,
|
|
7
7
|
preparation: el => {
|
|
8
8
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTreeNodeDecl } from "reactronic";
|
|
2
2
|
import { FocusModel, El } from "verstak";
|
|
3
3
|
import { ValuesOrRefs } from "./common/Utils.js";
|
|
4
4
|
export type InputModel<T = string> = FocusModel & {
|
|
@@ -12,5 +12,5 @@ export type InputModel<T = string> = FocusModel & {
|
|
|
12
12
|
isHotText: boolean;
|
|
13
13
|
inputStyle: string;
|
|
14
14
|
};
|
|
15
|
-
export declare function Input(declaration?:
|
|
15
|
+
export declare function Input(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, InputModel>>): import("reactronic").ReactiveTreeNode<El<HTMLElement, InputModel<string>>>;
|
|
16
16
|
export declare function composeInputModel<T>(props?: Partial<ValuesOrRefs<InputModel<T>>>): InputModel<T>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTree, Mode } from "reactronic";
|
|
2
2
|
import { Division, JustText, OnFocus, rowBreak, Fragment, KeyboardModifiers, Horizontal, Vertical } from "verstak";
|
|
3
3
|
import { triggeringModel } from "./common/Utils.js";
|
|
4
4
|
import { Theme } from "./Theme.js";
|
|
5
5
|
import { Icon } from "./Icon.v.js";
|
|
6
6
|
export function Input(declaration) {
|
|
7
|
-
return (Division(
|
|
7
|
+
return (Division(ReactiveTree.withBasis(declaration, {
|
|
8
8
|
mode: Mode.autonomous,
|
|
9
9
|
preparation: el => {
|
|
10
10
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function Markdown(content: string): import("reactronic").
|
|
1
|
+
export declare function Markdown(content: string): import("reactronic").ReactiveTreeNode<import("verstak").El<HTMLElement, void>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class RealTimeClock extends
|
|
1
|
+
import { ObservableObject } from "reactronic";
|
|
2
|
+
export declare class RealTimeClock extends ObservableObject {
|
|
3
3
|
hour: number;
|
|
4
4
|
minute: number;
|
|
5
5
|
second: number;
|
|
@@ -7,8 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
export class RealTimeClock extends
|
|
10
|
+
import { ObservableObject, atomic, reactive } from "reactronic";
|
|
11
|
+
export class RealTimeClock extends ObservableObject {
|
|
12
12
|
constructor(interval = 1000) {
|
|
13
13
|
super();
|
|
14
14
|
this.hour = 0;
|
|
@@ -57,7 +57,7 @@ __decorate([
|
|
|
57
57
|
__metadata("design:returntype", void 0)
|
|
58
58
|
], RealTimeClock.prototype, "tick", null);
|
|
59
59
|
__decorate([
|
|
60
|
-
|
|
60
|
+
reactive,
|
|
61
61
|
__metadata("design:type", Function),
|
|
62
62
|
__metadata("design:paramtypes", []),
|
|
63
63
|
__metadata("design:returntype", void 0)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTreeNodeDecl } from "reactronic";
|
|
2
2
|
import { El } from "verstak";
|
|
3
3
|
import { ValuesOrRefs } from "./common/Utils.js";
|
|
4
4
|
export type SpinnerModel = {
|
|
5
5
|
active: boolean;
|
|
6
6
|
color: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function Spinner(declaration?:
|
|
8
|
+
export declare function Spinner(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, SpinnerModel>>): import("reactronic").ReactiveTreeNode<El<HTMLElement, SpinnerModel>>;
|
|
9
9
|
export declare function composeSpinnerModel<T>(props?: Partial<ValuesOrRefs<SpinnerModel>>): SpinnerModel;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTree, Mode } from "reactronic";
|
|
2
2
|
import { Division, JustText } from "verstak";
|
|
3
3
|
import { triggeringModel } from "./common/Utils.js";
|
|
4
4
|
export function Spinner(declaration) {
|
|
5
|
-
return (Division(
|
|
5
|
+
return (Division(ReactiveTree.withBasis(declaration, {
|
|
6
6
|
mode: Mode.autonomous,
|
|
7
7
|
preparation: el => {
|
|
8
8
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { runAtomically,
|
|
1
|
+
import { runAtomically, ReactiveTreeVariable, Isolation } from "reactronic";
|
|
2
2
|
import { DefaultButtonStyling } from "./theme/Button.s.js";
|
|
3
3
|
import { DefaultInputStyling } from "./theme/Input.s.js";
|
|
4
4
|
import { DefaultIconStyling } from "./theme/Icon.s.js";
|
|
@@ -27,4 +27,4 @@ export class Theme {
|
|
|
27
27
|
Theme.gCurrent.value = value;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
Theme.gCurrent = new
|
|
30
|
+
Theme.gCurrent = new ReactiveTreeVariable(runAtomically({ isolation: Isolation.disjoinFromOuterTransaction }, () => new Theme()));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTreeNode, ReactiveTreeNodeDecl } from "reactronic";
|
|
2
2
|
import { El } from "verstak";
|
|
3
3
|
export type ToggleModel = {
|
|
4
4
|
label?: string;
|
|
5
5
|
checked?: boolean;
|
|
6
6
|
color?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare function Toggle(declaration?:
|
|
8
|
+
export declare function Toggle(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, ToggleModel>>): ReactiveTreeNode<El<HTMLElement, ToggleModel>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTree, ReactiveTreeNode, Mode } from "reactronic";
|
|
2
2
|
import { Division, JustText, OnClick } from "verstak";
|
|
3
3
|
import { triggeringModel } from "./common/Utils.js";
|
|
4
4
|
import { Theme } from "./Theme.js";
|
|
5
5
|
import { Icon } from "./Icon.v.js";
|
|
6
6
|
export function Toggle(declaration) {
|
|
7
|
-
return (Division(
|
|
7
|
+
return (Division(ReactiveTree.withBasis(declaration, {
|
|
8
8
|
mode: Mode.autonomous,
|
|
9
9
|
preparation: el => {
|
|
10
10
|
var _a;
|
|
11
11
|
(_a = el.model) !== null && _a !== void 0 ? _a : (el.model = triggeringModel({
|
|
12
|
-
label:
|
|
12
|
+
label: ReactiveTreeNode.key,
|
|
13
13
|
checked: true,
|
|
14
14
|
color: "green"
|
|
15
15
|
}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ObservableObject, Ref, runAtomically, Isolation } from "reactronic";
|
|
2
2
|
export function triggeringModel(modelProps) {
|
|
3
3
|
return runAtomically({ isolation: Isolation.disjoinFromOuterTransaction }, () => new TriggeringComposition(modelProps));
|
|
4
4
|
}
|
|
5
|
-
class TriggeringComposition extends
|
|
5
|
+
class TriggeringComposition extends ObservableObject {
|
|
6
6
|
constructor(composition) {
|
|
7
7
|
super();
|
|
8
8
|
convertValuesToFieldsAndRefsToGetSet(this, composition);
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
10
|
+
import { cached } from "reactronic";
|
|
11
11
|
import { css } from "@emotion/css";
|
|
12
12
|
import { Styling } from "./Styling.js";
|
|
13
13
|
export class DefaultButtonStyling extends Styling {
|
|
@@ -33,17 +33,17 @@ export class DefaultButtonStyling extends Styling {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
__decorate([
|
|
36
|
-
|
|
36
|
+
cached,
|
|
37
37
|
__metadata("design:type", String),
|
|
38
38
|
__metadata("design:paramtypes", [])
|
|
39
39
|
], DefaultButtonStyling.prototype, "main", null);
|
|
40
40
|
__decorate([
|
|
41
|
-
|
|
41
|
+
cached,
|
|
42
42
|
__metadata("design:type", String),
|
|
43
43
|
__metadata("design:paramtypes", [])
|
|
44
44
|
], DefaultButtonStyling.prototype, "icon", null);
|
|
45
45
|
__decorate([
|
|
46
|
-
|
|
46
|
+
cached,
|
|
47
47
|
__metadata("design:type", String),
|
|
48
48
|
__metadata("design:paramtypes", [])
|
|
49
49
|
], DefaultButtonStyling.prototype, "label", null);
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
10
|
+
import { cached } from "reactronic";
|
|
11
11
|
import { css } from "@emotion/css";
|
|
12
12
|
import { Styling } from "./Styling.js";
|
|
13
13
|
export class DefaultIconStyling extends Styling {
|
|
@@ -20,7 +20,7 @@ export class DefaultIconStyling extends Styling {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
__decorate([
|
|
23
|
-
|
|
23
|
+
cached,
|
|
24
24
|
__metadata("design:type", String),
|
|
25
25
|
__metadata("design:paramtypes", [])
|
|
26
26
|
], DefaultIconStyling.prototype, "main", null);
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
10
|
+
import { cached } from "reactronic";
|
|
11
11
|
import { css } from "@emotion/css";
|
|
12
12
|
import { Styling } from "./Styling.js";
|
|
13
13
|
export class DefaultInputStyling extends Styling {
|
|
@@ -47,22 +47,22 @@ export class DefaultInputStyling extends Styling {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
__decorate([
|
|
50
|
-
|
|
50
|
+
cached,
|
|
51
51
|
__metadata("design:type", String),
|
|
52
52
|
__metadata("design:paramtypes", [])
|
|
53
53
|
], DefaultInputStyling.prototype, "main", null);
|
|
54
54
|
__decorate([
|
|
55
|
-
|
|
55
|
+
cached,
|
|
56
56
|
__metadata("design:type", String),
|
|
57
57
|
__metadata("design:paramtypes", [])
|
|
58
58
|
], DefaultInputStyling.prototype, "icon", null);
|
|
59
59
|
__decorate([
|
|
60
|
-
|
|
60
|
+
cached,
|
|
61
61
|
__metadata("design:type", String),
|
|
62
62
|
__metadata("design:paramtypes", [])
|
|
63
63
|
], DefaultInputStyling.prototype, "field", null);
|
|
64
64
|
__decorate([
|
|
65
|
-
|
|
65
|
+
cached,
|
|
66
66
|
__metadata("design:type", String),
|
|
67
67
|
__metadata("design:paramtypes", [])
|
|
68
68
|
], DefaultInputStyling.prototype, "popup", null);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ObservableObject } from "reactronic";
|
|
2
2
|
export type BasicAbstractTheme = {
|
|
3
3
|
fillColor: string;
|
|
4
4
|
textColor: string;
|
|
@@ -10,7 +10,7 @@ export type BasicAbstractTheme = {
|
|
|
10
10
|
outlinePadding: string;
|
|
11
11
|
shadow: string;
|
|
12
12
|
};
|
|
13
|
-
export declare class Styling extends
|
|
13
|
+
export declare class Styling extends ObservableObject {
|
|
14
14
|
protected readonly $: BasicAbstractTheme;
|
|
15
15
|
constructor($: BasicAbstractTheme);
|
|
16
16
|
}
|
|
@@ -7,14 +7,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
export class Styling extends
|
|
10
|
+
import { ObservableObject, observable } from "reactronic";
|
|
11
|
+
export class Styling extends ObservableObject {
|
|
12
12
|
constructor($) {
|
|
13
13
|
super();
|
|
14
14
|
this.$ = $;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
|
-
|
|
18
|
+
observable(false),
|
|
19
19
|
__metadata("design:type", Object)
|
|
20
20
|
], Styling.prototype, "$", void 0);
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
10
|
+
import { cached } from "reactronic";
|
|
11
11
|
import { css } from "@emotion/css";
|
|
12
12
|
import { Styling } from "./Styling.js";
|
|
13
13
|
export class DefaultToggleStyling extends Styling {
|
|
@@ -32,17 +32,17 @@ export class DefaultToggleStyling extends Styling {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
__decorate([
|
|
35
|
-
|
|
35
|
+
cached,
|
|
36
36
|
__metadata("design:type", String),
|
|
37
37
|
__metadata("design:paramtypes", [])
|
|
38
38
|
], DefaultToggleStyling.prototype, "main", null);
|
|
39
39
|
__decorate([
|
|
40
|
-
|
|
40
|
+
cached,
|
|
41
41
|
__metadata("design:type", String),
|
|
42
42
|
__metadata("design:paramtypes", [])
|
|
43
43
|
], DefaultToggleStyling.prototype, "icon", null);
|
|
44
44
|
__decorate([
|
|
45
|
-
|
|
45
|
+
cached,
|
|
46
46
|
__metadata("design:type", String),
|
|
47
47
|
__metadata("design:paramtypes", [])
|
|
48
48
|
], DefaultToggleStyling.prototype, "label", null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTreeNode } from "reactronic";
|
|
2
2
|
export type El<T = any, M = any> = {
|
|
3
|
-
readonly node:
|
|
3
|
+
readonly node: ReactiveTreeNode<El<T, M>>;
|
|
4
4
|
readonly index: number;
|
|
5
5
|
native: T;
|
|
6
6
|
model: M;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTreeNode, BaseDriver } from "reactronic";
|
|
2
2
|
import { El, ElKind, Horizontal, Vertical, Range, ElPlace, Direction } from "./El.js";
|
|
3
3
|
export declare class ElDriver<T extends Element, M = unknown> extends BaseDriver<El<T, M>> {
|
|
4
|
-
create(node:
|
|
4
|
+
create(node: ReactiveTreeNode<El<T, M>>): El<T, M>;
|
|
5
5
|
}
|
|
6
6
|
export declare class ElImpl<T extends Element = any, M = any> implements El<T, M> {
|
|
7
|
-
readonly node:
|
|
7
|
+
readonly node: ReactiveTreeNode<El<T, M>>;
|
|
8
8
|
maxColumnCount: number;
|
|
9
9
|
maxRowCount: number;
|
|
10
10
|
layoutInfo?: ElLayoutInfo;
|
|
@@ -26,7 +26,7 @@ export declare class ElImpl<T extends Element = any, M = any> implements El<T, M
|
|
|
26
26
|
private _sealed;
|
|
27
27
|
private _splitView;
|
|
28
28
|
private _hasStylingPresets;
|
|
29
|
-
constructor(node:
|
|
29
|
+
constructor(node: ReactiveTreeNode<El<T, M>>);
|
|
30
30
|
prepareForUpdate(): void;
|
|
31
31
|
get index(): number;
|
|
32
32
|
get isDivision(): boolean;
|
|
@@ -80,7 +80,7 @@ export declare class ElImpl<T extends Element = any, M = any> implements El<T, M
|
|
|
80
80
|
get style(): CSSStyleDeclaration;
|
|
81
81
|
useStylingPreset(stylingPresetName: string, enabled?: boolean): void;
|
|
82
82
|
protected children(onlyAfter?: ElImpl): Generator<ElImpl>;
|
|
83
|
-
static childrenOf(node:
|
|
83
|
+
static childrenOf(node: ReactiveTreeNode<El>, onlyAfter?: El): Generator<ElImpl>;
|
|
84
84
|
private rowBreak;
|
|
85
85
|
private static applyKind;
|
|
86
86
|
private static applyCoords;
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
10
|
+
import { ReactiveTree, BaseDriver, Transaction, observable, ObservableObject } from "reactronic";
|
|
11
11
|
import { ElKind, Horizontal, Vertical, Direction } from "./El.js";
|
|
12
12
|
import { equalElCoords, parseElCoords } from "./ElUtils.js";
|
|
13
13
|
export class ElDriver extends BaseDriver {
|
|
@@ -482,7 +482,7 @@ export class ElImpl {
|
|
|
482
482
|
}
|
|
483
483
|
static applyOverlayVisible(element, value) {
|
|
484
484
|
const s = element.style;
|
|
485
|
-
const host =
|
|
485
|
+
const host = ReactiveTree.findMatchingHost(element.node, n => n.element.native instanceof HTMLElement || n.element.native instanceof SVGElement);
|
|
486
486
|
const nativeHost = host === null || host === void 0 ? void 0 : host.element.native;
|
|
487
487
|
if (value === true) {
|
|
488
488
|
const doc = document.body;
|
|
@@ -535,7 +535,7 @@ export class ElImpl {
|
|
|
535
535
|
native.className = enabled ? styleName : "";
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
class Size extends
|
|
538
|
+
class Size extends ObservableObject {
|
|
539
539
|
constructor() {
|
|
540
540
|
super();
|
|
541
541
|
this.raw = { min: "", max: "" };
|
|
@@ -561,27 +561,27 @@ export class ElLayoutInfo {
|
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
__decorate([
|
|
564
|
-
|
|
564
|
+
observable,
|
|
565
565
|
__metadata("design:type", Number)
|
|
566
566
|
], ElLayoutInfo.prototype, "effectiveSizePx", void 0);
|
|
567
567
|
__decorate([
|
|
568
|
-
|
|
568
|
+
observable,
|
|
569
569
|
__metadata("design:type", Number)
|
|
570
570
|
], ElLayoutInfo.prototype, "contentSizeXpx", void 0);
|
|
571
571
|
__decorate([
|
|
572
|
-
|
|
572
|
+
observable,
|
|
573
573
|
__metadata("design:type", Number)
|
|
574
574
|
], ElLayoutInfo.prototype, "contentSizeYpx", void 0);
|
|
575
575
|
__decorate([
|
|
576
|
-
|
|
576
|
+
observable,
|
|
577
577
|
__metadata("design:type", Number)
|
|
578
578
|
], ElLayoutInfo.prototype, "borderSizeYpx", void 0);
|
|
579
579
|
__decorate([
|
|
580
|
-
|
|
580
|
+
observable,
|
|
581
581
|
__metadata("design:type", Number)
|
|
582
582
|
], ElLayoutInfo.prototype, "borderSizeXpx", void 0);
|
|
583
583
|
__decorate([
|
|
584
|
-
|
|
584
|
+
observable,
|
|
585
585
|
__metadata("design:type", Boolean)
|
|
586
586
|
], ElLayoutInfo.prototype, "isUpdateFinished", void 0);
|
|
587
587
|
var ElLayoutInfoFlags;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactiveTreeNode, ReactiveTreeNodeDecl, ReactiveTreeNodeDriver, Script, Mode, MergedItem, ScriptAsync } from "reactronic";
|
|
2
2
|
import { El, ElPlace } from "./El.js";
|
|
3
3
|
import { CursorCommandDriver } from "./ElDriver.js";
|
|
4
4
|
import { HtmlDriver } from "./WebDriver.js";
|
|
5
|
-
export declare function Window(script?: Script<El<HTMLBodyElement>>, scriptAsync?: ScriptAsync<El<HTMLBodyElement>>, key?: string, mode?: Mode, preparation?: Script<El<HTMLBodyElement>>, preparationAsync?: ScriptAsync<El<HTMLBodyElement>>, finalization?: Script<El<HTMLBodyElement>>, triggers?: unknown, basis?:
|
|
6
|
-
export declare function Window(declaration?:
|
|
7
|
-
export declare function Division<M = unknown>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, preparation?: Script<El<HTMLElement, M>>, preparationAsync?: ScriptAsync<El<HTMLElement, M>>, finalization?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?:
|
|
8
|
-
export declare function Division<M = unknown>(declaration?:
|
|
9
|
-
export declare function Table<M = unknown>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, preparation?: Script<El<HTMLElement, M>>, preparationAsync?: ScriptAsync<El<HTMLElement, M>>, finalization?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?:
|
|
10
|
-
export declare function Table<M = unknown>(declaration?:
|
|
5
|
+
export declare function Window(script?: Script<El<HTMLBodyElement>>, scriptAsync?: ScriptAsync<El<HTMLBodyElement>>, key?: string, mode?: Mode, preparation?: Script<El<HTMLBodyElement>>, preparationAsync?: ScriptAsync<El<HTMLBodyElement>>, finalization?: Script<El<HTMLBodyElement>>, triggers?: unknown, basis?: ReactiveTreeNodeDecl<El<HTMLBodyElement>>): ReactiveTreeNode<El<HTMLBodyElement>>;
|
|
6
|
+
export declare function Window(declaration?: ReactiveTreeNodeDecl<El<HTMLBodyElement>>): ReactiveTreeNode<El<HTMLBodyElement>>;
|
|
7
|
+
export declare function Division<M = unknown>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, preparation?: Script<El<HTMLElement, M>>, preparationAsync?: ScriptAsync<El<HTMLElement, M>>, finalization?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: ReactiveTreeNodeDecl<El<HTMLElement, M>>): ReactiveTreeNode<El<HTMLElement, M>>;
|
|
8
|
+
export declare function Division<M = unknown>(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, M>>): ReactiveTreeNode<El<HTMLElement, M>>;
|
|
9
|
+
export declare function Table<M = unknown>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, preparation?: Script<El<HTMLElement, M>>, preparationAsync?: ScriptAsync<El<HTMLElement, M>>, finalization?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: ReactiveTreeNodeDecl<El<HTMLElement, M>>): ReactiveTreeNode<El<HTMLElement, M>>;
|
|
10
|
+
export declare function Table<M = unknown>(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, M>>): ReactiveTreeNode<El<HTMLElement, M>>;
|
|
11
11
|
export declare function row<T = void>(builder?: (element: void) => T, shiftCursorDown?: number): void;
|
|
12
|
-
export declare function Splitter<M = unknown>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, preparation?: Script<El<HTMLElement, M>>, preparationAsync?: ScriptAsync<El<HTMLElement, M>>, finalization?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?:
|
|
13
|
-
export declare function Splitter<M = unknown>(declaration?:
|
|
12
|
+
export declare function Splitter<M = unknown>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, preparation?: Script<El<HTMLElement, M>>, preparationAsync?: ScriptAsync<El<HTMLElement, M>>, finalization?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: ReactiveTreeNodeDecl<El<HTMLElement, M>>): ReactiveTreeNode<El<HTMLElement, M>>;
|
|
13
|
+
export declare function Splitter<M = unknown>(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, M>>): ReactiveTreeNode<El<HTMLElement, M>>;
|
|
14
14
|
export declare function rowBreak(shiftCursorDown?: number): void;
|
|
15
|
-
export declare function declareSplitter<T>(index: number, splitViewNode:
|
|
15
|
+
export declare function declareSplitter<T>(index: number, splitViewNode: ReactiveTreeNode<El<T>>): ReactiveTreeNode<El<HTMLElement>>;
|
|
16
16
|
export declare function cursor(place: ElPlace): void;
|
|
17
|
-
export declare function JustText(content: string, formatted?: boolean, declaration?:
|
|
18
|
-
export declare function Group<M = unknown>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, preparation?: Script<El<HTMLElement, M>>, preparationAsync?: ScriptAsync<El<HTMLElement, M>>, finalization?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?:
|
|
19
|
-
export declare function Group<M = unknown>(declaration?:
|
|
20
|
-
export declare function Fragment<M = unknown>(script: Script<El<void, M>>):
|
|
21
|
-
export declare function PseudoElement<M = unknown>(script?: Script<El<void, M>>, scriptAsync?: ScriptAsync<El<void, M>>, key?: string, mode?: Mode, preparation?: Script<El<void, M>>, preparationAsync?: ScriptAsync<El<void, M>>, finalization?: Script<El<void, M>>, triggers?: unknown, basis?:
|
|
22
|
-
export declare function PseudoElement<M = unknown>(declaration?:
|
|
17
|
+
export declare function JustText(content: string, formatted?: boolean, declaration?: ReactiveTreeNodeDecl<El<HTMLElement, void>>): ReactiveTreeNode<El<HTMLElement, void>>;
|
|
18
|
+
export declare function Group<M = unknown>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, preparation?: Script<El<HTMLElement, M>>, preparationAsync?: ScriptAsync<El<HTMLElement, M>>, finalization?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: ReactiveTreeNodeDecl<El<HTMLElement, M>>): ReactiveTreeNode<El<HTMLElement, M>>;
|
|
19
|
+
export declare function Group<M = unknown>(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, M>>): ReactiveTreeNode<El<HTMLElement, M>>;
|
|
20
|
+
export declare function Fragment<M = unknown>(script: Script<El<void, M>>): ReactiveTreeNode<El<void, M>>;
|
|
21
|
+
export declare function PseudoElement<M = unknown>(script?: Script<El<void, M>>, scriptAsync?: ScriptAsync<El<void, M>>, key?: string, mode?: Mode, preparation?: Script<El<void, M>>, preparationAsync?: ScriptAsync<El<void, M>>, finalization?: Script<El<void, M>>, triggers?: unknown, basis?: ReactiveTreeNodeDecl<El<void, M>>): ReactiveTreeNode<El<void, M>>;
|
|
22
|
+
export declare function PseudoElement<M = unknown>(declaration?: ReactiveTreeNodeDecl<El<void, M>>): ReactiveTreeNode<El<void, M>>;
|
|
23
23
|
export declare class DivisionDriver<T extends HTMLElement> extends HtmlDriver<T> {
|
|
24
|
-
runScript(node:
|
|
25
|
-
declareChild(ownerNode:
|
|
24
|
+
runScript(node: ReactiveTreeNode<El<T>>): void | Promise<void>;
|
|
25
|
+
declareChild(ownerNode: ReactiveTreeNode<El<T, any>>, childDriver: ReactiveTreeNodeDriver<any>, childDeclaration?: ReactiveTreeNodeDecl<any> | undefined, childBasis?: ReactiveTreeNodeDecl<any> | undefined): MergedItem<ReactiveTreeNode> | undefined;
|
|
26
26
|
}
|
|
27
|
-
export declare function isSplitViewPartition(childDriver:
|
|
27
|
+
export declare function isSplitViewPartition(childDriver: ReactiveTreeNodeDriver): boolean;
|
|
28
28
|
export declare class PartitionDriver<T extends HTMLElement> extends HtmlDriver<T> {
|
|
29
|
-
runScript(node:
|
|
30
|
-
provideHost(node:
|
|
29
|
+
runScript(node: ReactiveTreeNode<El<T>>): void | Promise<void>;
|
|
30
|
+
provideHost(node: ReactiveTreeNode<El<T, any>>): ReactiveTreeNode<El<T, any>>;
|
|
31
31
|
}
|
|
32
32
|
export declare const Drivers: {
|
|
33
33
|
division: DivisionDriver<HTMLElement>;
|
|
@@ -38,5 +38,5 @@ export declare const Drivers: {
|
|
|
38
38
|
wrapper: HtmlDriver<HTMLElement, any>;
|
|
39
39
|
splitter: HtmlDriver<HTMLElement, any>;
|
|
40
40
|
cursor: CursorCommandDriver;
|
|
41
|
-
pseudo:
|
|
41
|
+
pseudo: ReactiveTreeNodeDriver<El<void, any>>;
|
|
42
42
|
};
|