verstak 0.94.25032 → 0.95.25044

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.
Files changed (54) hide show
  1. package/README.md +1 -1
  2. package/build/dist/source/components/Button.v.js +5 -5
  3. package/build/dist/source/components/Icon.v.d.ts +2 -2
  4. package/build/dist/source/components/Icon.v.js +3 -3
  5. package/build/dist/source/components/Image.v.d.ts +2 -2
  6. package/build/dist/source/components/Image.v.js +5 -5
  7. package/build/dist/source/components/Input.v.d.ts +2 -2
  8. package/build/dist/source/components/Input.v.js +6 -6
  9. package/build/dist/source/components/RealTimeClock.d.ts +2 -2
  10. package/build/dist/source/components/RealTimeClock.js +5 -5
  11. package/build/dist/source/components/Spinner.v.d.ts +2 -2
  12. package/build/dist/source/components/Spinner.v.js +5 -5
  13. package/build/dist/source/components/Theme.js +2 -2
  14. package/build/dist/source/components/Toggle.v.js +5 -5
  15. package/build/dist/source/components/api.d.ts +1 -1
  16. package/build/dist/source/components/api.js +1 -1
  17. package/build/dist/source/components/common/Utils.d.ts +1 -1
  18. package/build/dist/source/components/common/Utils.js +4 -4
  19. package/build/dist/source/components/theme/Button.s.js +4 -4
  20. package/build/dist/source/components/theme/Icon.s.js +2 -2
  21. package/build/dist/source/components/theme/Input.s.js +5 -5
  22. package/build/dist/source/components/theme/Styling.d.ts +2 -2
  23. package/build/dist/source/components/theme/Styling.js +3 -3
  24. package/build/dist/source/components/theme/Toggle.s.js +4 -4
  25. package/build/dist/source/core/El.d.ts +1 -1
  26. package/build/dist/source/core/El.js +1 -1
  27. package/build/dist/source/core/ElDriver.d.ts +1 -1
  28. package/build/dist/source/core/ElDriver.js +10 -10
  29. package/build/dist/source/core/Elements.d.ts +6 -6
  30. package/build/dist/source/core/Elements.js +21 -21
  31. package/build/dist/source/core/Restyler.d.ts +2 -2
  32. package/build/dist/source/core/Restyler.js +5 -5
  33. package/build/dist/source/core/SplitViewMath.d.ts +3 -3
  34. package/build/dist/source/core/SplitViewMath.js +1 -1
  35. package/build/dist/source/core/WebDriver.d.ts +6 -4
  36. package/build/dist/source/core/WebDriver.js +41 -28
  37. package/build/dist/source/core/sensors/ButtonSensor.js +7 -7
  38. package/build/dist/source/core/sensors/FocusSensor.js +6 -6
  39. package/build/dist/source/core/sensors/Handlers.js +7 -7
  40. package/build/dist/source/core/sensors/HoverSensor.js +6 -6
  41. package/build/dist/source/core/sensors/HtmlDragSensor.js +20 -20
  42. package/build/dist/source/core/sensors/HtmlElementSensor.js +5 -5
  43. package/build/dist/source/core/sensors/KeyboardSensor.js +6 -6
  44. package/build/dist/source/core/sensors/PointerSensor.js +17 -17
  45. package/build/dist/source/core/sensors/ResizeSensor.js +3 -3
  46. package/build/dist/source/core/sensors/ScrollSensor.js +3 -3
  47. package/build/dist/source/core/sensors/Sensor.d.ts +2 -2
  48. package/build/dist/source/core/sensors/Sensor.js +2 -2
  49. package/build/dist/source/core/sensors/WheelSensor.js +3 -3
  50. package/build/dist/source/core/sensors/WindowSensor.js +2 -2
  51. package/build/dist/source/html/DraggableArea.view.js +2 -2
  52. package/build/dist/source/html/HtmlElements.js +115 -115
  53. package/build/dist/source/svg/SvgElements.js +60 -60
  54. package/package.json +10 -9
package/README.md CHANGED
@@ -39,7 +39,7 @@ visual components for (re)rendering. All that is done in
39
39
  automatic, seamless, and fine-grained way, because Verstak
40
40
  **takes full care of tracking dependencies** between visual
41
41
  components (reactive functions) and application state
42
- (triggering objects).
42
+ (observable objects).
43
43
 
44
44
  Example application: https://nevod.io ([source code](https://gitlab.com/nezaboodka/nevod.web.public/-/blob/master/README.md)).
45
45
 
@@ -1,14 +1,14 @@
1
- import { ReactiveTreeNode, Mode } from "reactronic";
2
- import { Division, JustText, OnClick } from "verstak";
3
- import { triggeringModel } from "./common/Utils.js";
1
+ import { ReactiveTreeNode, Mode, derivative } from "reactronic";
2
+ import { Block, JustText, OnClick } from "verstak";
3
+ import { observableModel } 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(ReactiveTreeNode.withBasis(declaration, {
7
+ return (Block(derivative(declaration, {
8
8
  mode: Mode.autonomous,
9
9
  preparation: el => {
10
10
  var _a;
11
- (_a = el.model) !== null && _a !== void 0 ? _a : (el.model = triggeringModel({
11
+ (_a = el.model) !== null && _a !== void 0 ? _a : (el.model = observableModel({
12
12
  icon: "fa-solid fa-square",
13
13
  label: ReactiveTreeNode.current.key,
14
14
  }));
@@ -1,3 +1,3 @@
1
- import { ReactiveTreeNode, ReactiveTreeNodeDecl } from "reactronic";
1
+ import { ReactiveTreeNodeDecl } from "reactronic";
2
2
  import { El } from "verstak";
3
- export declare function Icon(name: string, declaration?: ReactiveTreeNodeDecl<El<HTMLElement, void>>): ReactiveTreeNode<El<HTMLElement, void>>;
3
+ export declare function Icon(name: string, declaration?: ReactiveTreeNodeDecl<El<HTMLElement, void>>): import("reactronic").ReactiveTreeNode<El<HTMLElement, void>>;
@@ -1,8 +1,8 @@
1
- import { ReactiveTreeNode, Mode } from "reactronic";
2
- import { Division } from "verstak";
1
+ import { Mode, derivative } from "reactronic";
2
+ import { Block } from "verstak";
3
3
  import { Theme } from "./Theme.js";
4
4
  export function Icon(name, declaration) {
5
- return (Division(ReactiveTreeNode.withBasis(declaration, {
5
+ return (Block(derivative(declaration, {
6
6
  mode: Mode.autonomous,
7
7
  triggers: { name },
8
8
  script: el => {
@@ -1,6 +1,6 @@
1
- import { ReactiveTreeNode, ReactiveTreeNodeDecl } from "reactronic";
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?: ReactiveTreeNodeDecl<El<HTMLElement, ImageModel>>): ReactiveTreeNode<El<HTMLElement, ImageModel>>;
6
+ export declare function Image(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, ImageModel>>): import("reactronic").ReactiveTreeNode<El<HTMLElement, ImageModel>>;
@@ -1,12 +1,12 @@
1
- import { ReactiveTreeNode, Mode } from "reactronic";
2
- import { Division } from "verstak";
3
- import { triggeringModel } from "./common/Utils.js";
1
+ import { Mode, derivative } from "reactronic";
2
+ import { Block } from "verstak";
3
+ import { observableModel } from "./common/Utils.js";
4
4
  export function Image(declaration) {
5
- return (Division(ReactiveTreeNode.withBasis(declaration, {
5
+ return (Block(derivative(declaration, {
6
6
  mode: Mode.autonomous,
7
7
  preparation: el => {
8
8
  var _a;
9
- (_a = el.model) !== null && _a !== void 0 ? _a : (el.model = triggeringModel({ source: undefined }));
9
+ (_a = el.model) !== null && _a !== void 0 ? _a : (el.model = observableModel({ source: undefined }));
10
10
  },
11
11
  script: el => {
12
12
  const m = el.model;
@@ -1,4 +1,4 @@
1
- import { ReactiveTreeNode, ReactiveTreeNodeDecl } from "reactronic";
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?: ReactiveTreeNodeDecl<El<HTMLElement, InputModel>>): ReactiveTreeNode<El<HTMLElement, InputModel<string>>>;
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 { ReactiveTreeNode, Mode } from "reactronic";
2
- import { Division, JustText, OnFocus, rowBreak, Fragment, KeyboardModifiers, Horizontal, Vertical } from "verstak";
3
- import { triggeringModel } from "./common/Utils.js";
1
+ import { Mode, derivative } from "reactronic";
2
+ import { Block, JustText, OnFocus, rowBreak, Fragment, KeyboardModifiers, Horizontal, Vertical } from "verstak";
3
+ import { observableModel } 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(ReactiveTreeNode.withBasis(declaration, {
7
+ return (Block(derivative(declaration, {
8
8
  mode: Mode.autonomous,
9
9
  preparation: el => {
10
10
  var _a;
@@ -29,7 +29,7 @@ export function Input(declaration) {
29
29
  }
30
30
  export function composeInputModel(props) {
31
31
  var _a, _b, _c, _d, _e, _f, _g, _h;
32
- return triggeringModel({
32
+ return observableModel({
33
33
  icon: props === null || props === void 0 ? void 0 : props.icon,
34
34
  text: (_a = props === null || props === void 0 ? void 0 : props.text) !== null && _a !== void 0 ? _a : "",
35
35
  options: (_b = props === null || props === void 0 ? void 0 : props.options) !== null && _b !== void 0 ? _b : [],
@@ -79,7 +79,7 @@ function InputField(model, styling) {
79
79
  }));
80
80
  }
81
81
  function InputPopup(model, styling) {
82
- return (Division({
82
+ return (Block({
83
83
  key: InputPopup.name,
84
84
  script: el => {
85
85
  el.useStylingPreset(styling.popup);
@@ -1,5 +1,5 @@
1
- import { ObservableObject } from "reactronic";
2
- export declare class RealTimeClock extends ObservableObject {
1
+ import { SxObject } from "reactronic";
2
+ export declare class RealTimeClock extends SxObject {
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 { ObservableObject, atomic, reactive } from "reactronic";
11
- export class RealTimeClock extends ObservableObject {
10
+ import { SxObject, transaction, reaction } from "reactronic";
11
+ export class RealTimeClock extends SxObject {
12
12
  constructor(interval = 1000) {
13
13
  super();
14
14
  this.hour = 0;
@@ -45,19 +45,19 @@ export class RealTimeClock extends ObservableObject {
45
45
  }
46
46
  }
47
47
  __decorate([
48
- atomic,
48
+ transaction,
49
49
  __metadata("design:type", Function),
50
50
  __metadata("design:paramtypes", [Boolean]),
51
51
  __metadata("design:returntype", void 0)
52
52
  ], RealTimeClock.prototype, "pause", null);
53
53
  __decorate([
54
- atomic,
54
+ transaction,
55
55
  __metadata("design:type", Function),
56
56
  __metadata("design:paramtypes", []),
57
57
  __metadata("design:returntype", void 0)
58
58
  ], RealTimeClock.prototype, "tick", null);
59
59
  __decorate([
60
- reactive,
60
+ reaction,
61
61
  __metadata("design:type", Function),
62
62
  __metadata("design:paramtypes", []),
63
63
  __metadata("design:returntype", void 0)
@@ -1,9 +1,9 @@
1
- import { ReactiveTreeNode, ReactiveTreeNodeDecl } from "reactronic";
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?: ReactiveTreeNodeDecl<El<HTMLElement, SpinnerModel>>): ReactiveTreeNode<El<HTMLElement, SpinnerModel>>;
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 { ReactiveTreeNode, Mode } from "reactronic";
2
- import { Division, JustText } from "verstak";
3
- import { triggeringModel } from "./common/Utils.js";
1
+ import { Mode, derivative } from "reactronic";
2
+ import { Block, JustText } from "verstak";
3
+ import { observableModel } from "./common/Utils.js";
4
4
  export function Spinner(declaration) {
5
- return (Division(ReactiveTreeNode.withBasis(declaration, {
5
+ return (Block(derivative(declaration, {
6
6
  mode: Mode.autonomous,
7
7
  preparation: el => {
8
8
  var _a;
@@ -16,7 +16,7 @@ export function Spinner(declaration) {
16
16
  }
17
17
  export function composeSpinnerModel(props) {
18
18
  var _a, _b;
19
- return triggeringModel({
19
+ return observableModel({
20
20
  active: (_a = props === null || props === void 0 ? void 0 : props.active) !== null && _a !== void 0 ? _a : false,
21
21
  color: (_b = props === null || props === void 0 ? void 0 : props.color) !== null && _b !== void 0 ? _b : "",
22
22
  });
@@ -1,4 +1,4 @@
1
- import { runAtomically, ReactiveTreeVariable, Isolation } from "reactronic";
1
+ import { runTransactional, 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 ReactiveTreeVariable(runAtomically({ isolation: Isolation.disjoinFromOuterTransaction }, () => new Theme()));
30
+ Theme.gCurrent = new ReactiveTreeVariable(runTransactional({ isolation: Isolation.disjoinFromOuterTransaction }, () => new Theme()));
@@ -1,14 +1,14 @@
1
- import { ReactiveTreeNode, Mode } from "reactronic";
2
- import { Division, JustText, OnClick } from "verstak";
3
- import { triggeringModel } from "./common/Utils.js";
1
+ import { ReactiveTreeNode, Mode, derivative } from "reactronic";
2
+ import { Block, JustText, OnClick } from "verstak";
3
+ import { observableModel } 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(ReactiveTreeNode.withBasis(declaration, {
7
+ return (Block(derivative(declaration, {
8
8
  mode: Mode.autonomous,
9
9
  preparation: el => {
10
10
  var _a;
11
- (_a = el.model) !== null && _a !== void 0 ? _a : (el.model = triggeringModel({
11
+ (_a = el.model) !== null && _a !== void 0 ? _a : (el.model = observableModel({
12
12
  label: ReactiveTreeNode.current.key,
13
13
  checked: true,
14
14
  color: "green"
@@ -6,5 +6,5 @@ export * from "./Spinner.v.js";
6
6
  export * from "./Toggle.v.js";
7
7
  export * from "./Markdown.v.js";
8
8
  export * from "./Theme.js";
9
- export { triggeringModel } from "./common/Utils.js";
9
+ export { observableModel } from "./common/Utils.js";
10
10
  export { RealTimeClock } from "./RealTimeClock.js";
@@ -6,5 +6,5 @@ export * from "./Spinner.v.js";
6
6
  export * from "./Toggle.v.js";
7
7
  export * from "./Markdown.v.js";
8
8
  export * from "./Theme.js";
9
- export { triggeringModel } from "./common/Utils.js";
9
+ export { observableModel } from "./common/Utils.js";
10
10
  export { RealTimeClock } from "./RealTimeClock.js";
@@ -2,4 +2,4 @@ import { Ref } from "reactronic";
2
2
  export type ValuesOrRefs<T> = {
3
3
  [K in keyof T]: T[K] | Ref<T[K]>;
4
4
  };
5
- export declare function triggeringModel<T extends Object>(modelProps: ValuesOrRefs<T>): T;
5
+ export declare function observableModel<T extends Object>(modelProps: ValuesOrRefs<T>): T;
@@ -1,8 +1,8 @@
1
- import { ObservableObject, Ref, runAtomically, Isolation } from "reactronic";
2
- export function triggeringModel(modelProps) {
3
- return runAtomically({ isolation: Isolation.disjoinFromOuterTransaction }, () => new TriggeringComposition(modelProps));
1
+ import { SxObject, Ref, runTransactional, Isolation } from "reactronic";
2
+ export function observableModel(modelProps) {
3
+ return runTransactional({ isolation: Isolation.disjoinFromOuterTransaction }, () => new ObservableComposition(modelProps));
4
4
  }
5
- class TriggeringComposition extends ObservableObject {
5
+ class ObservableComposition extends SxObject {
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 { cached } from "reactronic";
10
+ import { cache } 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
- cached,
36
+ cache,
37
37
  __metadata("design:type", String),
38
38
  __metadata("design:paramtypes", [])
39
39
  ], DefaultButtonStyling.prototype, "main", null);
40
40
  __decorate([
41
- cached,
41
+ cache,
42
42
  __metadata("design:type", String),
43
43
  __metadata("design:paramtypes", [])
44
44
  ], DefaultButtonStyling.prototype, "icon", null);
45
45
  __decorate([
46
- cached,
46
+ cache,
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 { cached } from "reactronic";
10
+ import { cache } 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
- cached,
23
+ cache,
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 { cached } from "reactronic";
10
+ import { cache } 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
- cached,
50
+ cache,
51
51
  __metadata("design:type", String),
52
52
  __metadata("design:paramtypes", [])
53
53
  ], DefaultInputStyling.prototype, "main", null);
54
54
  __decorate([
55
- cached,
55
+ cache,
56
56
  __metadata("design:type", String),
57
57
  __metadata("design:paramtypes", [])
58
58
  ], DefaultInputStyling.prototype, "icon", null);
59
59
  __decorate([
60
- cached,
60
+ cache,
61
61
  __metadata("design:type", String),
62
62
  __metadata("design:paramtypes", [])
63
63
  ], DefaultInputStyling.prototype, "field", null);
64
64
  __decorate([
65
- cached,
65
+ cache,
66
66
  __metadata("design:type", String),
67
67
  __metadata("design:paramtypes", [])
68
68
  ], DefaultInputStyling.prototype, "popup", null);
@@ -1,4 +1,4 @@
1
- import { ObservableObject } from "reactronic";
1
+ import { SxObject } 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 ObservableObject {
13
+ export declare class Styling extends SxObject {
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 { ObservableObject, observable } from "reactronic";
11
- export class Styling extends ObservableObject {
10
+ import { SxObject, signal } from "reactronic";
11
+ export class Styling extends SxObject {
12
12
  constructor($) {
13
13
  super();
14
14
  this.$ = $;
15
15
  }
16
16
  }
17
17
  __decorate([
18
- observable(false),
18
+ signal(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 { cached } from "reactronic";
10
+ import { cache } 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
- cached,
35
+ cache,
36
36
  __metadata("design:type", String),
37
37
  __metadata("design:paramtypes", [])
38
38
  ], DefaultToggleStyling.prototype, "main", null);
39
39
  __decorate([
40
- cached,
40
+ cache,
41
41
  __metadata("design:type", String),
42
42
  __metadata("design:paramtypes", [])
43
43
  ], DefaultToggleStyling.prototype, "icon", null);
44
44
  __decorate([
45
- cached,
45
+ cache,
46
46
  __metadata("design:type", String),
47
47
  __metadata("design:paramtypes", [])
48
48
  ], DefaultToggleStyling.prototype, "label", null);
@@ -31,7 +31,7 @@ export type El<T = any, M = any> = {
31
31
  useStylingPreset(stylingPresetName: string, enabled?: boolean): void;
32
32
  };
33
33
  export declare enum ElKind {
34
- division = 0,
34
+ block = 0,
35
35
  table = 1,
36
36
  text = 2,
37
37
  group = 3,
@@ -1,6 +1,6 @@
1
1
  export var ElKind;
2
2
  (function (ElKind) {
3
- ElKind[ElKind["division"] = 0] = "division";
3
+ ElKind[ElKind["block"] = 0] = "block";
4
4
  ElKind[ElKind["table"] = 1] = "table";
5
5
  ElKind[ElKind["text"] = 2] = "text";
6
6
  ElKind[ElKind["group"] = 3] = "group";
@@ -29,7 +29,7 @@ export declare class ElImpl<T extends Element = any, M = any> implements El<T, M
29
29
  constructor(node: ReactiveTreeNode<El<T, M>>);
30
30
  prepareForUpdate(): void;
31
31
  get index(): number;
32
- get isDivision(): boolean;
32
+ get isBlock(): boolean;
33
33
  get isTable(): boolean;
34
34
  get isAuxiliary(): boolean;
35
35
  get kind(): ElKind;
@@ -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 { ReactiveTreeNode, BaseDriver, Transaction, observable, ObservableObject } from "reactronic";
10
+ import { ReactiveTreeNode, BaseDriver, Transaction, signal, SxObject } 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 {
@@ -45,7 +45,7 @@ export class ElImpl {
45
45
  this._hasStylingPresets = false;
46
46
  }
47
47
  get index() { return this.node.slot.index; }
48
- get isDivision() { return this.kind === ElKind.division; }
48
+ get isBlock() { return this.kind === ElKind.block; }
49
49
  get isTable() { return this.kind === ElKind.table; }
50
50
  get isAuxiliary() { return this.kind > ElKind.text; }
51
51
  get kind() { return this._kind; }
@@ -535,7 +535,7 @@ export class ElImpl {
535
535
  native.className = enabled ? styleName : "";
536
536
  }
537
537
  }
538
- class Size extends ObservableObject {
538
+ class Size extends SxObject {
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
- observable,
564
+ signal,
565
565
  __metadata("design:type", Number)
566
566
  ], ElLayoutInfo.prototype, "effectiveSizePx", void 0);
567
567
  __decorate([
568
- observable,
568
+ signal,
569
569
  __metadata("design:type", Number)
570
570
  ], ElLayoutInfo.prototype, "contentSizeXpx", void 0);
571
571
  __decorate([
572
- observable,
572
+ signal,
573
573
  __metadata("design:type", Number)
574
574
  ], ElLayoutInfo.prototype, "contentSizeYpx", void 0);
575
575
  __decorate([
576
- observable,
576
+ signal,
577
577
  __metadata("design:type", Number)
578
578
  ], ElLayoutInfo.prototype, "borderSizeYpx", void 0);
579
579
  __decorate([
580
- observable,
580
+ signal,
581
581
  __metadata("design:type", Number)
582
582
  ], ElLayoutInfo.prototype, "borderSizeXpx", void 0);
583
583
  __decorate([
584
- observable,
584
+ signal,
585
585
  __metadata("design:type", Boolean)
586
586
  ], ElLayoutInfo.prototype, "isUpdateFinished", void 0);
587
587
  var ElLayoutInfoFlags;
@@ -708,7 +708,7 @@ export const Constants = {
708
708
  wrapper: "wrapper",
709
709
  splitter: "splitter",
710
710
  group: "group",
711
- layouts: ["division", "table", "text", "group", "", "", ""],
711
+ layouts: ["block", "table", "text", "group", "", "", ""],
712
712
  keyAttrName: "key",
713
713
  kindAttrName: "kind",
714
714
  ownReactiveTreeNodeKey: Symbol("own-reactive-tree-node"),
@@ -1,11 +1,11 @@
1
- import { ReactiveTreeNode, ReactiveTreeNodeDecl, ReactiveTreeNodeDriver, Script, Mode, MergedItem, ScriptAsync } from "reactronic";
1
+ import { ReactiveTreeNode, ReactiveTreeNodeDecl, ReactiveTreeNodeDriver, Script, Mode, LinkedItem, 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
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
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>>;
7
+ export declare function Block<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 Block<M = unknown>(declaration?: ReactiveTreeNodeDecl<El<HTMLElement, M>>): ReactiveTreeNode<El<HTMLElement, M>>;
9
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
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;
@@ -20,9 +20,9 @@ export declare function Group<M = unknown>(declaration?: ReactiveTreeNodeDecl<El
20
20
  export declare function Fragment<M = unknown>(script: Script<El<void, M>>): ReactiveTreeNode<El<void, M>>;
21
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
22
  export declare function PseudoElement<M = unknown>(declaration?: ReactiveTreeNodeDecl<El<void, M>>): ReactiveTreeNode<El<void, M>>;
23
- export declare class DivisionDriver<T extends HTMLElement> extends HtmlDriver<T> {
23
+ export declare class BlockDriver<T extends HTMLElement> extends HtmlDriver<T> {
24
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;
25
+ declareChild(ownerNode: ReactiveTreeNode<El<T, any>>, childDriver: ReactiveTreeNodeDriver<any>, childDeclaration?: ReactiveTreeNodeDecl<any> | undefined, childBasis?: ReactiveTreeNodeDecl<any> | undefined): LinkedItem<ReactiveTreeNode> | undefined;
26
26
  }
27
27
  export declare function isSplitViewPartition(childDriver: ReactiveTreeNodeDriver): boolean;
28
28
  export declare class PartitionDriver<T extends HTMLElement> extends HtmlDriver<T> {
@@ -30,7 +30,7 @@ export declare class PartitionDriver<T extends HTMLElement> extends HtmlDriver<T
30
30
  provideHost(node: ReactiveTreeNode<El<T, any>>): ReactiveTreeNode<El<T, any>>;
31
31
  }
32
32
  export declare const Drivers: {
33
- division: DivisionDriver<HTMLElement>;
33
+ block: BlockDriver<HTMLElement>;
34
34
  table: HtmlDriver<HTMLElement, any>;
35
35
  text: HtmlDriver<HTMLElement, any>;
36
36
  group: HtmlDriver<HTMLElement, any>;