verstak 0.23.125 → 0.24.107

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,7 +16,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
16
16
  step((generator = generator.apply(thisArg, _arguments || [])).next());
17
17
  });
18
18
  };
19
- import { reactive, unobs, Transaction, Rx, options, Reentrance } from "reactronic";
19
+ import { reactive, unobs, Transaction, RxSystem, options, Reentrance } from "reactronic";
20
20
  import { RxNode } from "./RxDomV1.Types.js";
21
21
  export class BasicNodeType {
22
22
  constructor(name, sequential) {
@@ -25,7 +25,7 @@ export class BasicNodeType {
25
25
  }
26
26
  initialize(node) {
27
27
  if (!node.inline)
28
- Rx.setLoggingHint(node, node.id);
28
+ RxSystem.setLoggingHint(node, node.id);
29
29
  }
30
30
  render(node, args) {
31
31
  const inst = node.instance;
@@ -56,7 +56,7 @@ export class BasicNodeType {
56
56
  if (inst) {
57
57
  inst.native = undefined;
58
58
  if (!node.inline && node.instance)
59
- Transaction.separate(() => Rx.dispose(node.instance));
59
+ Transaction.separate(() => RxSystem.dispose(node.instance));
60
60
  for (const x of inst.children)
61
61
  tryToFinalize(x, initiator);
62
62
  for (const x of inst.guests)
@@ -78,7 +78,7 @@ export class RxNodeInstanceImpl {
78
78
  }
79
79
  rerender(node) {
80
80
  invokeRender(node, node.args);
81
- Rx.configureCurrentOperation({ order: this.level });
81
+ RxSystem.configureCurrentOperation({ order: this.level });
82
82
  }
83
83
  }
84
84
  RxNodeInstanceImpl.gUuid = 0;
@@ -432,7 +432,7 @@ function tryToInitialize(node) {
432
432
  (_a = type.initialize) === null || _a === void 0 ? void 0 : _a.call(type, node);
433
433
  (_b = type.mount) === null || _b === void 0 ? void 0 : _b.call(type, node);
434
434
  if (!node.inline)
435
- Rx.setLoggingHint(inst, node.id);
435
+ RxSystem.setLoggingHint(inst, node.id);
436
436
  return inst;
437
437
  }
438
438
  function tryToFinalize(node, initiator) {
@@ -1,4 +1 @@
1
- export * from "./Interfaces.js";
2
- export * from "./Utils.js";
3
1
  export * from "./Restyler.js";
4
- export * from "./Verstak.js";
@@ -1,4 +1 @@
1
- export * from "./Interfaces.js";
2
- export * from "./Utils.js";
3
1
  export * from "./Restyler.js";
4
- export * from "./Verstak.js";
@@ -0,0 +1,163 @@
1
+ import { RxNode, BaseDriver } from "reactronic";
2
+ export declare class ElDriver<T extends Element, M = unknown, C = unknown> extends BaseDriver<El<T, M, C, void>> {
3
+ allocate(node: RxNode<El<T, M, C, void>>): El<T, M, C, void>;
4
+ }
5
+ export interface BaseEl<T = any, M = any, C = any, R = void> {
6
+ readonly node: RxNode<El<T, M, C, R>>;
7
+ model: M;
8
+ controller: C;
9
+ }
10
+ export interface El<T = any, M = any, C = any, R = void> extends BaseEl<T, M, C, R> {
11
+ native: T;
12
+ kind: ElKind;
13
+ area: ElArea;
14
+ widthGrowth: number;
15
+ minWidth: string;
16
+ maxWidth: string;
17
+ heightGrowth: number;
18
+ minHeight: string;
19
+ maxHeight: string;
20
+ contentAlignment: Align;
21
+ elementAlignment: Align;
22
+ contentWrapping: boolean;
23
+ overlayVisible: boolean | undefined;
24
+ useStyle(styleName: string, enabled?: boolean): void;
25
+ }
26
+ export declare enum ElKind {
27
+ Section = 0,
28
+ Table = 1,
29
+ Note = 2,
30
+ Group = 3,
31
+ Part = 4,
32
+ Cursor = 5,
33
+ Native = 6
34
+ }
35
+ export interface ElCoords {
36
+ x1: number;
37
+ y1: number;
38
+ x2: number;
39
+ y2: number;
40
+ }
41
+ export declare enum Align {
42
+ Default = 16,
43
+ ToBounds = 0,
44
+ ToLeft = 1,
45
+ ToCenterX = 2,
46
+ ToRight = 3,
47
+ ToTop = 4,
48
+ ToCenterY = 8,
49
+ ToBottom = 12,
50
+ ToCenter = 10
51
+ }
52
+ export interface ElasticSize {
53
+ cells?: number;
54
+ min?: string;
55
+ max?: string;
56
+ growth?: number;
57
+ }
58
+ export interface TrackSize extends ElasticSize {
59
+ track?: string | number;
60
+ }
61
+ export type ElArea = undefined | string | {
62
+ cellsOverWidth?: number;
63
+ cellsOverHeight?: number;
64
+ };
65
+ export declare class ElImpl<T extends Element = any, M = any, C = any, R = any> implements El<T, M, C, R> {
66
+ readonly node: RxNode<El<T, M, C, R>>;
67
+ maxColumnCount: number;
68
+ maxRowCount: number;
69
+ cursorPosition?: CursorPosition;
70
+ native: T;
71
+ model: M;
72
+ controller: C;
73
+ private _kind;
74
+ private _area;
75
+ private _coords;
76
+ private _widthGrowth;
77
+ private _minWidth;
78
+ private _maxWidth;
79
+ private _heightGrowth;
80
+ private _minHeight;
81
+ private _maxHeight;
82
+ private _contentAlignment;
83
+ private _elementAlignment;
84
+ private _contentWrapping;
85
+ private _overlayVisible;
86
+ private _hasStyles;
87
+ constructor(node: RxNode<El<T, M, C, R>>);
88
+ prepareForUpdate(): void;
89
+ get isSection(): boolean;
90
+ get isTable(): boolean;
91
+ get isAuxiliary(): boolean;
92
+ get kind(): ElKind;
93
+ set kind(value: ElKind);
94
+ get area(): ElArea;
95
+ set area(value: ElArea);
96
+ get widthGrowth(): number;
97
+ set widthGrowth(value: number);
98
+ get minWidth(): string;
99
+ set minWidth(value: string);
100
+ get maxWidth(): string;
101
+ set maxWidth(value: string);
102
+ get heightGrowth(): number;
103
+ set heightGrowth(value: number);
104
+ get minHeight(): string;
105
+ set minHeight(value: string);
106
+ get maxHeight(): string;
107
+ set maxHeight(value: string);
108
+ get contentAlignment(): Align;
109
+ set contentAlignment(value: Align);
110
+ get elementAlignment(): Align;
111
+ set elementAlignment(value: Align);
112
+ get contentWrapping(): boolean;
113
+ set contentWrapping(value: boolean);
114
+ get overlayVisible(): boolean | undefined;
115
+ set overlayVisible(value: boolean | undefined);
116
+ useStyle(styleName: string, enabled?: boolean): void;
117
+ private rowBreak;
118
+ }
119
+ declare class CursorPosition {
120
+ x: number;
121
+ y: number;
122
+ runningMaxX: number;
123
+ runningMaxY: number;
124
+ flags: CursorFlags;
125
+ constructor(prev: CursorPosition);
126
+ }
127
+ declare enum CursorFlags {
128
+ None = 0,
129
+ OwnCursorPosition = 1,
130
+ UsesRunningColumnCount = 2,
131
+ UsesRunningRowCount = 4
132
+ }
133
+ export declare class CursorCommand {
134
+ absolute?: string;
135
+ columnShift?: number;
136
+ rowShift?: number;
137
+ }
138
+ export declare class CursorCommandDriver extends ElDriver<Element, unknown, void> {
139
+ constructor();
140
+ }
141
+ export declare class Apply {
142
+ static kind<T extends Element>(element: El<T, any, any, any>, value: ElKind): void;
143
+ static coords<T extends Element>(element: El<T, any, any, any>, value: ElCoords | undefined): void;
144
+ static widthGrowth<T extends Element>(element: El<T, any, any, any>, value: number): void;
145
+ static minWidth<T extends Element>(element: El<T, any, any, any>, value: string): void;
146
+ static applyMaxWidth<T extends Element>(element: El<T, any, any, any>, value: string): void;
147
+ static heightGrowth<T extends Element>(element: El<T, any, any, any>, value: number): void;
148
+ static minHeight<T extends Element>(element: El<T, any, any, any>, value: string): void;
149
+ static maxHeight<T extends Element>(element: El<T, any, any, any>, value: string): void;
150
+ static contentAlignment<T extends Element>(element: El<T, any, any, any>, value: Align): void;
151
+ static elementAlignment<T extends Element>(element: El<T, any, any, any>, value: Align): void;
152
+ static contentWrapping<T extends Element>(element: El<T, any, any, any>, value: boolean): void;
153
+ static overlayVisible<T extends Element>(element: El<T, any, any, any>, value: boolean | undefined): void;
154
+ static style<T extends Element>(element: El<T, any, any, any>, secondary: boolean, styleName: string, enabled?: boolean): void;
155
+ }
156
+ export declare const Constants: {
157
+ element: string;
158
+ partition: string;
159
+ layouts: string[];
160
+ keyAttrName: string;
161
+ kindAttrName: string;
162
+ };
163
+ export {};