verstak 0.24.502 → 0.91.25002
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/api.d.ts +1 -1
- package/build/dist/source/api.js +1 -1
- package/build/dist/source/core/El.d.ts +78 -0
- package/build/dist/source/core/El.js +32 -0
- package/build/dist/source/{html/El.d.ts → core/ElDriver.d.ts} +1 -77
- package/build/dist/source/{html/El.js → core/ElDriver.js} +9 -40
- package/build/dist/source/core/Elements.d.ts +42 -0
- package/build/dist/source/{html → core}/Elements.js +31 -26
- package/build/dist/source/{html → core}/SplitViewMath.d.ts +1 -1
- package/build/dist/source/{html/HtmlDriver.d.ts → core/WebDriver.d.ts} +6 -5
- package/build/dist/source/{html/HtmlDriver.js → core/WebDriver.js} +8 -8
- package/build/dist/source/core/api.d.ts +7 -0
- package/build/dist/source/core/api.js +7 -0
- package/build/dist/source/express/Button.v.d.ts +8 -0
- package/build/dist/source/express/Button.v.js +39 -0
- package/build/dist/source/express/Field.v.d.ts +16 -0
- package/build/dist/source/express/Field.v.js +118 -0
- package/build/dist/source/express/Icon.v.d.ts +3 -0
- package/build/dist/source/express/Icon.v.js +14 -0
- package/build/dist/source/express/Image.v.d.ts +6 -0
- package/build/dist/source/express/Image.v.js +18 -0
- package/build/dist/source/express/Markdown.v.d.ts +1 -0
- package/build/dist/source/express/Markdown.v.js +18 -0
- package/build/dist/source/express/Spinner.v.d.ts +9 -0
- package/build/dist/source/express/Spinner.v.js +23 -0
- package/build/dist/source/express/Theme.d.ts +34 -0
- package/build/dist/source/express/Theme.js +30 -0
- package/build/dist/source/express/Toggle.v.d.ts +8 -0
- package/build/dist/source/express/Toggle.v.js +40 -0
- package/build/dist/source/express/api.d.ts +9 -0
- package/build/dist/source/express/api.js +9 -0
- package/build/dist/source/express/common/Utils.d.ts +5 -0
- package/build/dist/source/express/common/Utils.js +26 -0
- package/build/dist/source/express/theme/Button.s.d.ts +11 -0
- package/build/dist/source/express/theme/Button.s.js +49 -0
- package/build/dist/source/express/theme/Field.s.d.ts +13 -0
- package/build/dist/source/express/theme/Field.s.js +68 -0
- package/build/dist/source/express/theme/Icon.s.d.ts +7 -0
- package/build/dist/source/express/theme/Icon.s.js +26 -0
- package/build/dist/source/express/theme/Styling.d.ts +16 -0
- package/build/dist/source/express/theme/Styling.js +20 -0
- package/build/dist/source/express/theme/Toggle.s.d.ts +11 -0
- package/build/dist/source/express/theme/Toggle.s.js +48 -0
- 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/HtmlApiExt.d.ts +2 -2
- package/build/dist/source/html/HtmlApiExt.js +2 -2
- package/build/dist/source/html/HtmlElements.d.ts +2 -4
- package/build/dist/source/html/HtmlElements.js +2 -6
- package/build/dist/source/html/api.d.ts +0 -19
- package/build/dist/source/html/api.js +0 -19
- package/build/dist/source/{html/sensors → sensors}/FocusSensor.js +1 -1
- package/build/dist/source/{html → sensors}/Handlers.d.ts +3 -3
- package/build/dist/source/{html → sensors}/Handlers.js +5 -5
- package/build/dist/source/{html/sensors → sensors}/ResizeSensor.d.ts +1 -1
- package/build/dist/source/{html/sensors → sensors}/WindowSensor.js +1 -1
- package/build/dist/source/sensors/api.d.ts +13 -0
- package/build/dist/source/sensors/api.js +13 -0
- package/package.json +21 -9
- package/build/dist/source/html/Elements.d.ts +0 -39
- package/build/dist/source/{html → core}/ElUtils.d.ts +0 -0
- package/build/dist/source/{html → core}/ElUtils.js +0 -0
- package/build/dist/source/{html → core}/Sizes.d.ts +0 -0
- package/build/dist/source/{html → core}/Sizes.js +0 -0
- package/build/dist/source/{html → core}/SplitViewMath.js +1 -1
- /package/build/dist/source/{html/sensors → sensors}/BasePointerSensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/BasePointerSensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/ButtonSensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/ButtonSensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/DataForSensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/DataForSensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/FocusSensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/HoverSensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/HoverSensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/HtmlDragSensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/HtmlDragSensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/HtmlElementSensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/HtmlElementSensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/HtmlSensors.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/HtmlSensors.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/KeyboardSensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/KeyboardSensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/PointerSensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/PointerSensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/ResizeSensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/ScrollSensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/ScrollSensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/Sensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/Sensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/WheelSensor.d.ts +0 -0
- /package/build/dist/source/{html/sensors → sensors}/WheelSensor.js +0 -0
- /package/build/dist/source/{html/sensors → sensors}/WindowSensor.d.ts +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { cached } from "reactronic";
|
|
11
|
+
import { css } from "@emotion/css";
|
|
12
|
+
import { Styling } from "./Styling.js";
|
|
13
|
+
export class DefaultToggleStyling extends Styling {
|
|
14
|
+
get main() {
|
|
15
|
+
return css `
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
user-select: none;
|
|
18
|
+
`;
|
|
19
|
+
}
|
|
20
|
+
get icon() {
|
|
21
|
+
return css `
|
|
22
|
+
min-width: auto;
|
|
23
|
+
margin-left: ${this.$.outlinePadding};
|
|
24
|
+
margin-right: ${this.$.outlinePadding};
|
|
25
|
+
`;
|
|
26
|
+
}
|
|
27
|
+
get label() {
|
|
28
|
+
return css `
|
|
29
|
+
margin-left: ${this.$.outlinePadding};
|
|
30
|
+
margin-right: ${this.$.outlinePadding};
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
__decorate([
|
|
35
|
+
cached,
|
|
36
|
+
__metadata("design:type", String),
|
|
37
|
+
__metadata("design:paramtypes", [])
|
|
38
|
+
], DefaultToggleStyling.prototype, "main", null);
|
|
39
|
+
__decorate([
|
|
40
|
+
cached,
|
|
41
|
+
__metadata("design:type", String),
|
|
42
|
+
__metadata("design:paramtypes", [])
|
|
43
|
+
], DefaultToggleStyling.prototype, "icon", null);
|
|
44
|
+
__decorate([
|
|
45
|
+
cached,
|
|
46
|
+
__metadata("design:type", String),
|
|
47
|
+
__metadata("design:paramtypes", [])
|
|
48
|
+
], DefaultToggleStyling.prototype, "label", null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactiveNodeDecl, ReactiveNode } from "reactronic";
|
|
2
|
-
import { El } from "
|
|
3
|
-
import { PointerSensor } from "
|
|
2
|
+
import { El } from "../core/El.js";
|
|
3
|
+
import { PointerSensor } from "../sensors/PointerSensor.js";
|
|
4
4
|
export type DragAndDropHandler = (pointer: PointerSensor) => void;
|
|
5
5
|
export interface DraggableAreaModel {
|
|
6
6
|
dragStartedAction?: DragAndDropHandler;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Mode, ReactiveNode } from "reactronic";
|
|
2
2
|
import { Div } from "./HtmlElements.js";
|
|
3
|
-
import { Handling } from "
|
|
3
|
+
import { Handling } from "../core/Elements.js";
|
|
4
4
|
export function DraggableArea(draggingId, builder) {
|
|
5
5
|
return (Div(ReactiveNode.withBasis(builder, {
|
|
6
6
|
mode: Mode.autonomous,
|
|
7
|
-
|
|
7
|
+
script: b => {
|
|
8
8
|
const e = b.native;
|
|
9
9
|
const model = b.model;
|
|
10
10
|
const dataForSensor = e.dataForSensor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataForSensor } from "
|
|
2
|
-
import { HtmlSensors } from "
|
|
1
|
+
import { DataForSensor } from "../sensors/DataForSensor.js";
|
|
2
|
+
import { HtmlSensors } from "../sensors/HtmlSensors.js";
|
|
3
3
|
declare global {
|
|
4
4
|
interface Element {
|
|
5
5
|
sensors: HtmlSensors;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SymDataForSensor, SymHtmlSensors, SymResizeObserver } from "
|
|
2
|
-
import { HtmlSensors } from "
|
|
1
|
+
import { SymDataForSensor, SymHtmlSensors, SymResizeObserver } from "../sensors/DataForSensor.js";
|
|
2
|
+
import { HtmlSensors } from "../sensors/HtmlSensors.js";
|
|
3
3
|
const ElementType = global.Element;
|
|
4
4
|
if (ElementType !== undefined) {
|
|
5
5
|
Object.defineProperty(ElementType.prototype, "sensors", {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { ReactiveNode, ReactiveNodeDecl
|
|
2
|
-
import { El } from "
|
|
3
|
-
export declare function Window(content?: Scr<El<HTMLBodyElement>>, contentAsync?: ScrAsync<El<HTMLBodyElement>>, key?: string, mode?: Mode, preparation?: Scr<El<HTMLBodyElement>>, preparationAsync?: ScrAsync<El<HTMLBodyElement>>, finalization?: Scr<El<HTMLBodyElement>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<HTMLBodyElement>>): ReactiveNode<El<HTMLBodyElement>>;
|
|
4
|
-
export declare function Window(declaration?: ReactiveNodeDecl<El<HTMLBodyElement>>): ReactiveNode<El<HTMLBodyElement>>;
|
|
1
|
+
import { ReactiveNode, ReactiveNodeDecl } from "reactronic";
|
|
2
|
+
import { El } from "../core/El.js";
|
|
5
3
|
export declare function A<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLAnchorElement, M>>): ReactiveNode<El<HTMLAnchorElement, M>>;
|
|
6
4
|
export declare function Abbr<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
|
|
7
5
|
export declare function Address<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { ReactiveNode } from "reactronic";
|
|
2
|
-
import { ElKind } from "
|
|
3
|
-
import {
|
|
4
|
-
export function Window(contentOrDeclaration, contentAsync, key, mode, preparation, preparationAsync, finalization, triggers, basis) {
|
|
5
|
-
const driver = new StaticDriver(global.document.body, "Page", false, el => el.kind = ElKind.panel);
|
|
6
|
-
return ReactiveNode.declare(driver, contentOrDeclaration, contentAsync, key, mode, preparation, preparationAsync, finalization, triggers, basis);
|
|
7
|
-
}
|
|
2
|
+
import { ElKind } from "../core/El.js";
|
|
3
|
+
import { HtmlDriver, SvgDriver } from "../core/WebDriver.js";
|
|
8
4
|
export function A(declaration) { return ReactiveNode.declare(HtmlTags.a, declaration); }
|
|
9
5
|
export function Abbr(declaration) { return ReactiveNode.declare(HtmlTags.abbr, declaration); }
|
|
10
6
|
export function Address(declaration) { return ReactiveNode.declare(HtmlTags.address, declaration); }
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
export * from "./ElUtils.js";
|
|
2
|
-
export * from "./El.js";
|
|
3
|
-
export * from "./HtmlDriver.js";
|
|
4
1
|
export * from "./HtmlElements.js";
|
|
5
2
|
export * from "./HtmlApiExt.js";
|
|
6
|
-
export * from "./Elements.js";
|
|
7
|
-
export * from "./Handlers.js";
|
|
8
|
-
export * from "./Sizes.js";
|
|
9
|
-
export * from "./SplitViewMath.js";
|
|
10
|
-
export * from "./sensors/Sensor.js";
|
|
11
|
-
export * from "./sensors/PointerSensor.js";
|
|
12
|
-
export * from "./sensors/BasePointerSensor.js";
|
|
13
|
-
export * from "./sensors/FocusSensor.js";
|
|
14
|
-
export * from "./sensors/ButtonSensor.js";
|
|
15
|
-
export * from "./sensors/HoverSensor.js";
|
|
16
|
-
export * from "./sensors/WheelSensor.js";
|
|
17
|
-
export * from "./sensors/KeyboardSensor.js";
|
|
18
|
-
export * from "./sensors/ResizeSensor.js";
|
|
19
|
-
export * from "./sensors/HtmlDragSensor.js";
|
|
20
|
-
export * from "./sensors/HtmlSensors.js";
|
|
21
|
-
export * from "./sensors/WindowSensor.js";
|
|
22
3
|
import "./HtmlApiExt.js";
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
export * from "./ElUtils.js";
|
|
2
|
-
export * from "./El.js";
|
|
3
|
-
export * from "./HtmlDriver.js";
|
|
4
1
|
export * from "./HtmlElements.js";
|
|
5
2
|
export * from "./HtmlApiExt.js";
|
|
6
|
-
export * from "./Elements.js";
|
|
7
|
-
export * from "./Handlers.js";
|
|
8
|
-
export * from "./Sizes.js";
|
|
9
|
-
export * from "./SplitViewMath.js";
|
|
10
|
-
export * from "./sensors/Sensor.js";
|
|
11
|
-
export * from "./sensors/PointerSensor.js";
|
|
12
|
-
export * from "./sensors/BasePointerSensor.js";
|
|
13
|
-
export * from "./sensors/FocusSensor.js";
|
|
14
|
-
export * from "./sensors/ButtonSensor.js";
|
|
15
|
-
export * from "./sensors/HoverSensor.js";
|
|
16
|
-
export * from "./sensors/WheelSensor.js";
|
|
17
|
-
export * from "./sensors/KeyboardSensor.js";
|
|
18
|
-
export * from "./sensors/ResizeSensor.js";
|
|
19
|
-
export * from "./sensors/HtmlDragSensor.js";
|
|
20
|
-
export * from "./sensors/HtmlSensors.js";
|
|
21
|
-
export * from "./sensors/WindowSensor.js";
|
|
22
3
|
import "./HtmlApiExt.js";
|
|
@@ -8,7 +8,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
10
|
import { options, transactional, LoggingLevel, Transaction } from "reactronic";
|
|
11
|
-
import { objectHasMember } from "../ElUtils.js";
|
|
11
|
+
import { objectHasMember } from "../core/ElUtils.js";
|
|
12
12
|
import { grabElementDataList, SymDataForSensor } from "./DataForSensor.js";
|
|
13
13
|
import { HtmlElementSensor } from "./HtmlElementSensor.js";
|
|
14
14
|
export class FocusSensor extends HtmlElementSensor {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToggleRef } from "reactronic";
|
|
2
|
-
import { FocusModel } from "./
|
|
3
|
-
import { ResizedElement } from "./
|
|
4
|
-
import { PointerSensor } from "./
|
|
2
|
+
import { FocusModel } from "./FocusSensor.js";
|
|
3
|
+
import { ResizedElement } from "./ResizeSensor.js";
|
|
4
|
+
import { PointerSensor } from "./PointerSensor.js";
|
|
5
5
|
export declare function OnClick(target: HTMLElement, action: ((pointer: PointerSensor) => void) | ToggleRef | undefined, key?: string): void;
|
|
6
6
|
export declare function OnClickAsync(target: HTMLElement, action: ((pointer: PointerSensor) => Promise<void>) | ToggleRef | undefined, key?: string): void;
|
|
7
7
|
export declare function OnResize(target: HTMLElement, action: ((element: ResizedElement) => void) | undefined, key?: string): void;
|
|
@@ -8,14 +8,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { Mode, ToggleRef, unobs } from "reactronic";
|
|
11
|
-
import { SyntheticElement } from "
|
|
11
|
+
import { SyntheticElement } from "../core/Elements.js";
|
|
12
12
|
export function OnClick(target, action, key) {
|
|
13
13
|
if (action !== undefined) {
|
|
14
14
|
SyntheticElement({
|
|
15
15
|
key,
|
|
16
16
|
mode: Mode.autonomous,
|
|
17
17
|
triggers: { target },
|
|
18
|
-
|
|
18
|
+
script: el => {
|
|
19
19
|
const pointer = target.sensors.pointer;
|
|
20
20
|
if (target.dataForSensor.click !== undefined && pointer.clicked === target.dataForSensor.click || target.dataForSensor.click === undefined && pointer.clicked) {
|
|
21
21
|
if (action instanceof Function) {
|
|
@@ -35,7 +35,7 @@ export function OnClickAsync(target, action, key) {
|
|
|
35
35
|
key,
|
|
36
36
|
mode: Mode.autonomous,
|
|
37
37
|
triggers: { target },
|
|
38
|
-
|
|
38
|
+
scriptAsync: (el) => __awaiter(this, void 0, void 0, function* () {
|
|
39
39
|
const pointer = target.sensors.pointer;
|
|
40
40
|
if (target.dataForSensor.click !== undefined && pointer.clicked === target.dataForSensor.click || target.dataForSensor.click === undefined && pointer.clicked) {
|
|
41
41
|
if (action instanceof Function) {
|
|
@@ -55,7 +55,7 @@ export function OnResize(target, action, key) {
|
|
|
55
55
|
key,
|
|
56
56
|
mode: Mode.autonomous,
|
|
57
57
|
triggers: { target },
|
|
58
|
-
|
|
58
|
+
script: el => {
|
|
59
59
|
const resize = target.sensors.resize;
|
|
60
60
|
resize.resizedElements.forEach(x => {
|
|
61
61
|
action(x);
|
|
@@ -72,7 +72,7 @@ export function OnFocus(target, model, switchEditMode = undefined, key) {
|
|
|
72
72
|
preparation: el => {
|
|
73
73
|
el.node.configureReactronic({ throttling: 0 });
|
|
74
74
|
},
|
|
75
|
-
|
|
75
|
+
script: el => {
|
|
76
76
|
if (switchEditMode === undefined && !(target instanceof HTMLInputElement || target.hasAttribute("tabindex")))
|
|
77
77
|
console.warn(`"${key !== null && key !== void 0 ? key : "noname"}" element must have "tabindex" attribute set in order to be focusable`);
|
|
78
78
|
if (switchEditMode !== undefined) {
|
|
@@ -8,7 +8,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
10
|
import { ToggleRef, transactional } from "reactronic";
|
|
11
|
-
import { objectHasMember } from "../ElUtils.js";
|
|
11
|
+
import { objectHasMember } from "../core/ElUtils.js";
|
|
12
12
|
import { Sensor } from "./Sensor.js";
|
|
13
13
|
export class WindowSensor extends Sensor {
|
|
14
14
|
constructor() {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./Sensor.js";
|
|
2
|
+
export * from "./PointerSensor.js";
|
|
3
|
+
export * from "./BasePointerSensor.js";
|
|
4
|
+
export * from "./FocusSensor.js";
|
|
5
|
+
export * from "./ButtonSensor.js";
|
|
6
|
+
export * from "./HoverSensor.js";
|
|
7
|
+
export * from "./WheelSensor.js";
|
|
8
|
+
export * from "./KeyboardSensor.js";
|
|
9
|
+
export * from "./ResizeSensor.js";
|
|
10
|
+
export * from "./HtmlDragSensor.js";
|
|
11
|
+
export * from "./HtmlSensors.js";
|
|
12
|
+
export * from "./WindowSensor.js";
|
|
13
|
+
export * from "./Handlers.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./Sensor.js";
|
|
2
|
+
export * from "./PointerSensor.js";
|
|
3
|
+
export * from "./BasePointerSensor.js";
|
|
4
|
+
export * from "./FocusSensor.js";
|
|
5
|
+
export * from "./ButtonSensor.js";
|
|
6
|
+
export * from "./HoverSensor.js";
|
|
7
|
+
export * from "./WheelSensor.js";
|
|
8
|
+
export * from "./KeyboardSensor.js";
|
|
9
|
+
export * from "./ResizeSensor.js";
|
|
10
|
+
export * from "./HtmlDragSensor.js";
|
|
11
|
+
export * from "./HtmlSensors.js";
|
|
12
|
+
export * from "./WindowSensor.js";
|
|
13
|
+
export * from "./Handlers.js";
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verstak",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.91.25002",
|
|
4
4
|
"description": "Verstak - Front-End Library",
|
|
5
5
|
"publisher": "Nezaboodka Software",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "build/dist/source/api.js",
|
|
9
9
|
"types": "build/dist/source/api.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": "./build/dist/source/api.js",
|
|
12
|
+
"./html": "./build/dist/source/html/api.js",
|
|
13
|
+
"./express": "./build/dist/source/express/api.js"
|
|
14
|
+
},
|
|
10
15
|
"files": [
|
|
11
16
|
"build/dist/source/**/*.*"
|
|
12
17
|
],
|
|
@@ -31,23 +36,30 @@
|
|
|
31
36
|
},
|
|
32
37
|
"homepage": "https://github.com/nezaboodka/verstak/blob/master/README.md#readme",
|
|
33
38
|
"dependencies": {
|
|
34
|
-
"
|
|
39
|
+
"@types/linkify-it": "^3.0.5",
|
|
40
|
+
"@emotion/css": "^11.13.5",
|
|
41
|
+
"markdown-it": "^14.1.0",
|
|
42
|
+
"markdown-it-prism": "^2.3.0",
|
|
43
|
+
"prismjs": "^1.29.0",
|
|
44
|
+
"reactronic": "^0.91.25002"
|
|
35
45
|
},
|
|
36
46
|
"devDependencies": {
|
|
37
|
-
"@types/
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
47
|
+
"@types/markdown-it": "14.1.2",
|
|
48
|
+
"@types/node": "22.13.0",
|
|
49
|
+
"@types/prismjs": "1.26.5",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "8.22.0",
|
|
51
|
+
"@typescript-eslint/parser": "8.22.0",
|
|
40
52
|
"ava": "6.2.0",
|
|
41
|
-
"c8": "10.1.
|
|
42
|
-
"eslint": "9.
|
|
53
|
+
"c8": "10.1.3",
|
|
54
|
+
"eslint": "9.19.0",
|
|
43
55
|
"ts-node": "10.9.2",
|
|
44
56
|
"tsconfig-paths": "4.2.0",
|
|
45
57
|
"typescript": "5.5.4"
|
|
46
58
|
},
|
|
47
59
|
"scripts": {
|
|
48
|
-
"build": "eslint source/**.ts test/**.ts && tsc",
|
|
60
|
+
"build": "eslint source/**.ts test/**.ts && tsc --rootDir .",
|
|
49
61
|
"fix": "eslint --fix source/**.ts test/**.ts",
|
|
50
|
-
"pack": "eslint source/**.ts test/**.ts && tsc --sourceMap false --removeComments true",
|
|
62
|
+
"pack": "eslint source/**.ts test/**.ts && tsc --sourceMap false --removeComments true --rootDir .",
|
|
51
63
|
"test": "ava",
|
|
52
64
|
"cover": "c8 ava && open build/coverage/index.html"
|
|
53
65
|
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ReactiveNodeDecl, ReactiveNodeDriver, ReactiveNode, Script, Mode, MergedItem, ScriptAsync } from "reactronic";
|
|
2
|
-
import { CursorCommandDriver, El, ElPlace } from "./El.js";
|
|
3
|
-
import { HtmlDriver } from "./HtmlDriver.js";
|
|
4
|
-
export declare function Panel<M = unknown>(content?: Script<El<HTMLElement, M>>, contentAsync?: 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?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
|
|
5
|
-
export declare function Panel<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
|
|
6
|
-
export declare function Table<M = unknown>(content?: Script<El<HTMLElement, M>>, contentAsync?: 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?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
|
|
7
|
-
export declare function Table<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
|
|
8
|
-
export declare function row<T = void>(builder?: (element: void) => T, shiftCursorDown?: number): void;
|
|
9
|
-
export declare function Splitter<M = unknown>(content?: Script<El<HTMLElement, M>>, contentAsync?: 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?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
|
|
10
|
-
export declare function Splitter<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
|
|
11
|
-
export declare function rowBreak(shiftCursorDown?: number): void;
|
|
12
|
-
export declare function declareSplitter<T>(index: number, splitViewNode: ReactiveNode<El<T>>): ReactiveNode<El<HTMLElement>>;
|
|
13
|
-
export declare function cursor(areaParams: ElPlace): void;
|
|
14
|
-
export declare function Note(content: string, formatted?: boolean, declaration?: ReactiveNodeDecl<El<HTMLElement, void>>): ReactiveNode<El<HTMLElement, void>>;
|
|
15
|
-
export declare function Group<M = unknown>(content?: Script<El<HTMLElement, M>>, contentAsync?: 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?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
|
|
16
|
-
export declare function Group<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
|
|
17
|
-
export declare function Handling<M = unknown>(content: Script<El<void, M>>): ReactiveNode<El<void, M>>;
|
|
18
|
-
export declare function SyntheticElement<M = unknown>(content?: Script<El<void, M>>, contentAsync?: 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?: ReactiveNodeDecl<El<void, M>>): ReactiveNode<El<void, M>>;
|
|
19
|
-
export declare function SyntheticElement<M = unknown>(declaration?: ReactiveNodeDecl<El<void, M>>): ReactiveNode<El<void, M>>;
|
|
20
|
-
export declare class PanelDriver<T extends HTMLElement> extends HtmlDriver<T> {
|
|
21
|
-
update(node: ReactiveNode<El<T>>): void | Promise<void>;
|
|
22
|
-
child(ownerNode: ReactiveNode<El<T, any>>, childDriver: ReactiveNodeDriver<any>, childDeclaration?: ReactiveNodeDecl<any> | undefined, childBasis?: ReactiveNodeDecl<any> | undefined): MergedItem<ReactiveNode> | undefined;
|
|
23
|
-
}
|
|
24
|
-
export declare function isSplitViewPartition(childDriver: ReactiveNodeDriver): boolean;
|
|
25
|
-
export declare class PartitionDriver<T extends HTMLElement> extends HtmlDriver<T> {
|
|
26
|
-
update(node: ReactiveNode<El<T>>): void | Promise<void>;
|
|
27
|
-
provideHost(node: ReactiveNode<El<T, any>>): ReactiveNode<El<T, any>>;
|
|
28
|
-
}
|
|
29
|
-
export declare const Drivers: {
|
|
30
|
-
panel: PanelDriver<HTMLElement>;
|
|
31
|
-
table: HtmlDriver<HTMLElement, any>;
|
|
32
|
-
note: HtmlDriver<HTMLElement, any>;
|
|
33
|
-
group: HtmlDriver<HTMLElement, any>;
|
|
34
|
-
partition: PartitionDriver<HTMLElement>;
|
|
35
|
-
wrapper: HtmlDriver<HTMLElement, any>;
|
|
36
|
-
splitter: HtmlDriver<HTMLElement, any>;
|
|
37
|
-
cursor: CursorCommandDriver;
|
|
38
|
-
synthetic: ReactiveNodeDriver<El<void, any>>;
|
|
39
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Direction } from "./El.js";
|
|
2
|
-
import { Drivers, isSplitViewPartition } from "./Elements.js";
|
|
3
2
|
import { clamp } from "./ElUtils.js";
|
|
3
|
+
import { Drivers, isSplitViewPartition } from "./Elements.js";
|
|
4
4
|
const DEBUG = false;
|
|
5
5
|
const eps = 0.0001;
|
|
6
6
|
export function equal(a, b) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|