verstak 0.24.317 → 0.24.401

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.
@@ -3,8 +3,8 @@ import { Div } from "./HtmlElements.js";
3
3
  import { Handling } from "./Elements.js";
4
4
  export function DraggableArea(draggingId, builder) {
5
5
  return (Div(ReactiveNode.withBasis(builder, {
6
- mode: Mode.independentUpdate,
7
- script: b => {
6
+ mode: Mode.autonomous,
7
+ content: b => {
8
8
  const e = b.native;
9
9
  const model = b.model;
10
10
  const dataForSensor = e.dataForSensor;
@@ -95,8 +95,8 @@ export declare class ElImpl<T extends Element = any, M = any> implements El<T, M
95
95
  private _vertical;
96
96
  private _contentHorizontal;
97
97
  private _contentVertical;
98
- private _stretchingStrengthH;
99
- private _stretchingStrengthV;
98
+ private _stretchingStrengthHorizontally;
99
+ private _stretchingStrengthVertically;
100
100
  private _contentWrapping;
101
101
  private _overlayVisible;
102
102
  private _sealed;
@@ -71,8 +71,8 @@ export class ElImpl {
71
71
  this._vertical = undefined;
72
72
  this._contentHorizontal = undefined;
73
73
  this._contentVertical = undefined;
74
- this._stretchingStrengthH = undefined;
75
- this._stretchingStrengthV = undefined;
74
+ this._stretchingStrengthHorizontally = undefined;
75
+ this._stretchingStrengthVertically = undefined;
76
76
  this._contentWrapping = true;
77
77
  this._overlayVisible = undefined;
78
78
  this._sealed = undefined;
@@ -83,7 +83,7 @@ export class ElImpl {
83
83
  this._place = undefined;
84
84
  this._hasStylingPresets = false;
85
85
  }
86
- get index() { return this.node.seat.index; }
86
+ get index() { return this.node.slot.index; }
87
87
  get isPanel() { return this.kind === ElKind.panel; }
88
88
  get isTable() { return this.kind === ElKind.table; }
89
89
  get isAuxiliary() { return this.kind > ElKind.note; }
@@ -103,7 +103,7 @@ export class ElImpl {
103
103
  if (!driver.isPartition) {
104
104
  const owner = node.owner;
105
105
  const ownerEl = owner.element;
106
- const prevEl = (_a = node.seat.prev) === null || _a === void 0 ? void 0 : _a.instance.element;
106
+ const prevEl = (_a = node.slot.prev) === null || _a === void 0 ? void 0 : _a.instance.element;
107
107
  const prevElLayoutInfo = (_b = prevEl === null || prevEl === void 0 ? void 0 : prevEl.layoutInfo) !== null && _b !== void 0 ? _b : InitialElLayoutInfo;
108
108
  const layoutInfo = this.layoutInfo = owner.children.isStrict ? new ElLayoutInfo(prevElLayoutInfo) : undefined;
109
109
  const isCursorElement = driver instanceof CursorCommandDriver;
@@ -154,7 +154,7 @@ export class ElImpl {
154
154
  set horizontally(value) {
155
155
  const existing = this._horizontal;
156
156
  if (value !== existing) {
157
- ElImpl.applyHorizontal(this, existing, value, this._contentHorizontal, this._contentHorizontal, this._stretchingStrengthH);
157
+ ElImpl.applyHorizontal(this, existing, value, this._contentHorizontal, this._contentHorizontal, this._stretchingStrengthHorizontally);
158
158
  this._horizontal = value;
159
159
  }
160
160
  }
@@ -162,7 +162,7 @@ export class ElImpl {
162
162
  set vertically(value) {
163
163
  const existing = this._vertical;
164
164
  if (value !== existing) {
165
- ElImpl.applyVertical(this, existing, value, this._contentVertical, this._contentVertical, this._stretchingStrengthV);
165
+ ElImpl.applyVertical(this, existing, value, this._contentVertical, this._contentVertical, this._stretchingStrengthVertically);
166
166
  this._vertical = value;
167
167
  }
168
168
  }
@@ -170,7 +170,7 @@ export class ElImpl {
170
170
  set contentHorizontally(value) {
171
171
  const existing = this._contentHorizontal;
172
172
  if (value !== existing) {
173
- ElImpl.applyHorizontal(this, this._horizontal, this._horizontal, existing, value, this._stretchingStrengthH);
173
+ ElImpl.applyHorizontal(this, this._horizontal, this._horizontal, existing, value, this._stretchingStrengthHorizontally);
174
174
  this._contentHorizontal = value;
175
175
  }
176
176
  }
@@ -178,24 +178,24 @@ export class ElImpl {
178
178
  set contentVertically(value) {
179
179
  const existing = this._contentVertical;
180
180
  if (value !== existing) {
181
- ElImpl.applyVertical(this, this._vertical, this._vertical, existing, value, this._stretchingStrengthV);
181
+ ElImpl.applyVertical(this, this._vertical, this._vertical, existing, value, this._stretchingStrengthVertically);
182
182
  this._contentVertical = value;
183
183
  }
184
184
  }
185
- get stretchingStrengthHorizontally() { return this._stretchingStrengthH; }
185
+ get stretchingStrengthHorizontally() { return this._stretchingStrengthHorizontally; }
186
186
  set stretchingStrengthHorizontally(value) {
187
- const existing = this._stretchingStrengthH;
187
+ const existing = this._stretchingStrengthHorizontally;
188
188
  if (value !== existing) {
189
189
  ElImpl.applyStretchingStrengthH(this, existing, value);
190
- this._stretchingStrengthH = value;
190
+ this._stretchingStrengthHorizontally = value;
191
191
  }
192
192
  }
193
- get stretchingStrengthVertically() { return this._stretchingStrengthV; }
193
+ get stretchingStrengthVertically() { return this._stretchingStrengthVertically; }
194
194
  set stretchingStrengthVertically(value) {
195
- const existing = this._stretchingStrengthV;
195
+ const existing = this._stretchingStrengthVertically;
196
196
  if (value !== existing) {
197
197
  ElImpl.applyStretchingStrengthV(this, existing, value);
198
- this._stretchingStrengthV = value;
198
+ this._stretchingStrengthVertically = value;
199
199
  }
200
200
  }
201
201
  get contentWrapping() { return this._contentWrapping; }
@@ -238,7 +238,7 @@ export class ElImpl {
238
238
  this._hasStylingPresets = true;
239
239
  }
240
240
  *children(onlyAfter) {
241
- const after = onlyAfter === null || onlyAfter === void 0 ? void 0 : onlyAfter.node.seat;
241
+ const after = onlyAfter === null || onlyAfter === void 0 ? void 0 : onlyAfter.node.slot;
242
242
  for (const child of this.node.children.items(after))
243
243
  yield child.instance.element;
244
244
  }
@@ -248,7 +248,7 @@ export class ElImpl {
248
248
  rowBreak() {
249
249
  var _a, _b;
250
250
  const node = this.node;
251
- const prevEl = (_a = node.seat.prev) === null || _a === void 0 ? void 0 : _a.instance.element;
251
+ const prevEl = (_a = node.slot.prev) === null || _a === void 0 ? void 0 : _a.instance.element;
252
252
  const prevElLayoutInfo = (_b = prevEl === null || prevEl === void 0 ? void 0 : prevEl.layoutInfo) !== null && _b !== void 0 ? _b : InitialElLayoutInfo;
253
253
  const layoutInfo = this.layoutInfo = new ElLayoutInfo(prevElLayoutInfo);
254
254
  layoutInfo.x = 1;
@@ -463,7 +463,7 @@ export class ElImpl {
463
463
  const host = element.node.host;
464
464
  if (host.driver.isPartition) {
465
465
  const hostEl = host.element;
466
- hostEl._stretchingStrengthH = value;
466
+ hostEl._stretchingStrengthHorizontally = value;
467
467
  existing !== null && existing !== void 0 ? existing : (existing = 0);
468
468
  value !== null && value !== void 0 ? value : (value = 0);
469
469
  }
@@ -482,7 +482,7 @@ export class ElImpl {
482
482
  const host = element.node.host;
483
483
  if (host.driver.isPartition) {
484
484
  const hostElement = host.element;
485
- hostElement._stretchingStrengthV = value;
485
+ hostElement._stretchingStrengthVertically = value;
486
486
  let delta = 0;
487
487
  existing !== null && existing !== void 0 ? existing : (existing = 0);
488
488
  value !== null && value !== void 0 ? value : (value = 0);
@@ -495,7 +495,7 @@ export class ElImpl {
495
495
  delta = -1;
496
496
  }
497
497
  if (delta !== 0) {
498
- const count = (_a = hostElement._stretchingStrengthV) !== null && _a !== void 0 ? _a : 0 + delta;
498
+ const count = (_a = hostElement._stretchingStrengthVertically) !== null && _a !== void 0 ? _a : 0 + delta;
499
499
  const s = hostElement.style;
500
500
  if (count === 1)
501
501
  s.flexGrow = `${value}`;
@@ -1,21 +1,21 @@
1
1
  import { ReactiveNodeDecl, ReactiveNodeDriver, ReactiveNode, Script, Mode, MergedItem, ScriptAsync } from "reactronic";
2
2
  import { CursorCommandDriver, El, ElPlace } from "./El.js";
3
3
  import { HtmlDriver } from "./HtmlDriver.js";
4
- export declare function Panel<M = unknown>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, creation?: Script<El<HTMLElement, M>>, creationAsync?: ScriptAsync<El<HTMLElement, M>>, destruction?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
4
+ export declare function Panel<M = unknown>(content?: Script<El<HTMLElement, M>>, contentAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, creation?: Script<El<HTMLElement, M>>, creationAsync?: ScriptAsync<El<HTMLElement, M>>, destruction?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
5
5
  export declare function Panel<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
6
- export declare function Table<M = unknown>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, creation?: Script<El<HTMLElement, M>>, creationAsync?: ScriptAsync<El<HTMLElement, M>>, destruction?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: 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, creation?: Script<El<HTMLElement, M>>, creationAsync?: ScriptAsync<El<HTMLElement, M>>, destruction?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
7
7
  export declare function Table<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
8
8
  export declare function row<T = void>(builder?: (element: void) => T, shiftCursorDown?: number): void;
9
- export declare function Splitter<M = unknown>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, creation?: Script<El<HTMLElement, M>>, creationAsync?: ScriptAsync<El<HTMLElement, M>>, destruction?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
9
+ export declare function Splitter<M = unknown>(content?: Script<El<HTMLElement, M>>, contentAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, creation?: Script<El<HTMLElement, M>>, creationAsync?: ScriptAsync<El<HTMLElement, M>>, destruction?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
10
10
  export declare function Splitter<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
11
11
  export declare function rowBreak(shiftCursorDown?: number): void;
12
12
  export declare function declareSplitter<T>(index: number, splitViewNode: ReactiveNode<El<T>>): ReactiveNode<El<HTMLElement>>;
13
13
  export declare function cursor(areaParams: ElPlace): void;
14
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>(script?: Script<El<HTMLElement, M>>, scriptAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, creation?: Script<El<HTMLElement, M>>, creationAsync?: ScriptAsync<El<HTMLElement, M>>, destruction?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
15
+ export declare function Group<M = unknown>(content?: Script<El<HTMLElement, M>>, contentAsync?: ScriptAsync<El<HTMLElement, M>>, key?: string, mode?: Mode, creation?: Script<El<HTMLElement, M>>, creationAsync?: ScriptAsync<El<HTMLElement, M>>, destruction?: Script<El<HTMLElement, M>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
16
16
  export declare function Group<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
17
- export declare function Handling<M = unknown>(script: Script<El<void, M>>): ReactiveNode<El<void, M>>;
18
- export declare function SyntheticElement<M = unknown>(script?: Script<El<void, M>>, scriptAsync?: ScriptAsync<El<void, M>>, key?: string, mode?: Mode, creation?: Script<El<void, M>>, creationAsync?: ScriptAsync<El<void, M>>, destruction?: Script<El<void, M>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<void, M>>): ReactiveNode<El<void, 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, creation?: Script<El<void, M>>, creationAsync?: ScriptAsync<El<void, M>>, destruction?: Script<El<void, M>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<void, M>>): ReactiveNode<El<void, M>>;
19
19
  export declare function SyntheticElement<M = unknown>(declaration?: ReactiveNodeDecl<El<void, M>>): ReactiveNode<El<void, M>>;
20
20
  export declare class PanelDriver<T extends HTMLElement> extends HtmlDriver<T> {
21
21
  update(node: ReactiveNode<El<T>>): void | Promise<void>;
@@ -4,18 +4,18 @@ import { getPrioritiesForEmptySpaceDistribution, getPrioritiesForSizeChanging, r
4
4
  import { Axis, BodyFontSize, Dimension, toPx } from "./Sizes.js";
5
5
  import { HtmlDriver } from "./HtmlDriver.js";
6
6
  import { clamp } from "./ElUtils.js";
7
- export function Panel(scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
8
- return ReactiveNode.declare(Drivers.panel, scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
7
+ export function Panel(contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
8
+ return ReactiveNode.declare(Drivers.panel, contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
9
9
  }
10
- export function Table(scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
11
- return ReactiveNode.declare(Drivers.table, scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
10
+ export function Table(contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
11
+ return ReactiveNode.declare(Drivers.table, contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
12
12
  }
13
13
  export function row(builder, shiftCursorDown) {
14
14
  rowBreak(shiftCursorDown);
15
15
  builder === null || builder === void 0 ? void 0 : builder();
16
16
  }
17
- export function Splitter(scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
18
- return ReactiveNode.declare(Drivers.splitter, scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
17
+ export function Splitter(contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
18
+ return ReactiveNode.declare(Drivers.splitter, contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
19
19
  }
20
20
  export function rowBreak(shiftCursorDown) {
21
21
  ReactiveNode.declare(Drivers.partition);
@@ -24,9 +24,9 @@ export function declareSplitter(index, splitViewNode) {
24
24
  const key = `splitter-${index}`;
25
25
  return (Splitter({
26
26
  key,
27
- mode: Mode.independentUpdate,
27
+ mode: Mode.autonomous,
28
28
  creation: el => el.native.className = `splitter ${key}`,
29
- script: b => {
29
+ content: b => {
30
30
  const e = b.native;
31
31
  const model = b.model;
32
32
  const dataForSensor = e.dataForSensor;
@@ -75,14 +75,14 @@ export function declareSplitter(index, splitViewNode) {
75
75
  }
76
76
  export function cursor(areaParams) {
77
77
  ReactiveNode.declare(Drivers.cursor, {
78
- script: el => {
78
+ content: el => {
79
79
  el.place = areaParams;
80
80
  },
81
81
  });
82
82
  }
83
83
  export function Note(content, formatted, declaration) {
84
84
  return ReactiveNode.declare(Drivers.note, ReactiveNode.withBasis(declaration, {
85
- script: el => {
85
+ content: el => {
86
86
  if (formatted)
87
87
  el.native.innerHTML = content;
88
88
  else
@@ -90,14 +90,14 @@ export function Note(content, formatted, declaration) {
90
90
  },
91
91
  }));
92
92
  }
93
- export function Group(scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
94
- return ReactiveNode.declare(Drivers.group, scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
93
+ export function Group(contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
94
+ return ReactiveNode.declare(Drivers.group, contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
95
95
  }
96
- export function Handling(script) {
97
- return SyntheticElement({ mode: Mode.independentUpdate, script });
96
+ export function Handling(content) {
97
+ return SyntheticElement({ mode: Mode.autonomous, content });
98
98
  }
99
- export function SyntheticElement(scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
100
- return ReactiveNode.declare(Drivers.synthetic, scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
99
+ export function SyntheticElement(contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
100
+ return ReactiveNode.declare(Drivers.synthetic, contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
101
101
  }
102
102
  export class PanelDriver extends HtmlDriver {
103
103
  update(node) {
@@ -122,8 +122,8 @@ export class PanelDriver extends HtmlDriver {
122
122
  }
123
123
  });
124
124
  const relayoutEl = SyntheticElement({
125
- mode: Mode.independentUpdate,
126
- script: () => {
125
+ mode: Mode.autonomous,
126
+ content: () => {
127
127
  const native = el.native;
128
128
  const isHorizontal = el.splitView === Direction.horizontal;
129
129
  if (layoutInfo.isUpdateFinished) {
@@ -190,7 +190,7 @@ export class PanelDriver extends HtmlDriver {
190
190
  if (childDeclaration.triggers === undefined)
191
191
  childDeclaration.triggers = {};
192
192
  Object.defineProperty(childDeclaration.triggers, "index", { value: partCount });
193
- overrideMethod(childDeclaration, "script", el => {
193
+ overrideMethod(childDeclaration, "content", el => {
194
194
  if (isHorizontal)
195
195
  el.style.gridColumn = `${partCount + 1}`;
196
196
  else
@@ -227,7 +227,7 @@ export class PartitionDriver extends HtmlDriver {
227
227
  if (ownerEl.sealed !== undefined) {
228
228
  node.element.style.flexGrow = "1";
229
229
  ReactiveNode.declare(Drivers.wrapper, {
230
- script: el => {
230
+ content: el => {
231
231
  const ownerEl = el.node.owner.owner.element;
232
232
  if (ownerEl.splitView !== undefined) {
233
233
  el.style.display = "grid";
@@ -13,9 +13,9 @@ export function OnClick(target, action, key) {
13
13
  if (action !== undefined) {
14
14
  SyntheticElement({
15
15
  key,
16
- mode: Mode.independentUpdate,
16
+ mode: Mode.autonomous,
17
17
  triggers: { target },
18
- script: el => {
18
+ content: 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) {
@@ -33,9 +33,9 @@ export function OnClickAsync(target, action, key) {
33
33
  if (action !== undefined) {
34
34
  SyntheticElement({
35
35
  key,
36
- mode: Mode.independentUpdate,
36
+ mode: Mode.autonomous,
37
37
  triggers: { target },
38
- scriptAsync: (el) => __awaiter(this, void 0, void 0, function* () {
38
+ contentAsync: (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) {
@@ -53,9 +53,9 @@ export function OnResize(target, action, key) {
53
53
  if (action) {
54
54
  SyntheticElement({
55
55
  key,
56
- mode: Mode.independentUpdate,
56
+ mode: Mode.autonomous,
57
57
  triggers: { target },
58
- script: el => {
58
+ content: el => {
59
59
  const resize = target.sensors.resize;
60
60
  resize.resizedElements.forEach(x => {
61
61
  action(x);
@@ -67,12 +67,12 @@ export function OnResize(target, action, key) {
67
67
  export function OnFocus(target, model, switchEditMode = undefined, key) {
68
68
  SyntheticElement({
69
69
  key,
70
- mode: Mode.independentUpdate,
70
+ mode: Mode.autonomous,
71
71
  triggers: { target, model },
72
72
  creation: el => {
73
73
  el.node.configureReactronic({ throttling: 0 });
74
74
  },
75
- script: el => {
75
+ content: 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) {
@@ -1,6 +1,6 @@
1
1
  import { ReactiveNode, ReactiveNodeDecl, Script as Scr, ScriptAsync as ScrAsync, Mode } from "reactronic";
2
2
  import { El } from "./El.js";
3
- export declare function Page(script?: Scr<El<HTMLBodyElement>>, scriptAsync?: ScrAsync<El<HTMLBodyElement>>, key?: string, mode?: Mode, creation?: Scr<El<HTMLBodyElement>>, creationAsync?: ScrAsync<El<HTMLBodyElement>>, destruction?: Scr<El<HTMLBodyElement>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<HTMLBodyElement>>): ReactiveNode<El<HTMLBodyElement>>;
3
+ export declare function Page(content?: Scr<El<HTMLBodyElement>>, contentAsync?: ScrAsync<El<HTMLBodyElement>>, key?: string, mode?: Mode, creation?: Scr<El<HTMLBodyElement>>, creationAsync?: ScrAsync<El<HTMLBodyElement>>, destruction?: Scr<El<HTMLBodyElement>>, triggers?: unknown, basis?: ReactiveNodeDecl<El<HTMLBodyElement>>): ReactiveNode<El<HTMLBodyElement>>;
4
4
  export declare function Page(declaration?: ReactiveNodeDecl<El<HTMLBodyElement>>): ReactiveNode<El<HTMLBodyElement>>;
5
5
  export declare function A<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLAnchorElement, M>>): ReactiveNode<El<HTMLAnchorElement, M>>;
6
6
  export declare function Abbr<M = unknown>(declaration?: ReactiveNodeDecl<El<HTMLElement, M>>): ReactiveNode<El<HTMLElement, M>>;
@@ -1,9 +1,9 @@
1
1
  import { ReactiveNode } from "reactronic";
2
2
  import { ElKind } from "./El.js";
3
3
  import { StaticDriver, HtmlDriver, SvgDriver } from "./HtmlDriver.js";
4
- export function Page(scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
4
+ export function Page(contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis) {
5
5
  const driver = new StaticDriver(global.document.body, "Page", false, el => el.kind = ElKind.panel);
6
- return ReactiveNode.declare(driver, scriptOrDeclaration, scriptAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
6
+ return ReactiveNode.declare(driver, contentOrDeclaration, contentAsync, key, mode, creation, creationAsync, destruction, triggers, basis);
7
7
  }
8
8
  export function A(declaration) { return ReactiveNode.declare(HtmlTags.a, declaration); }
9
9
  export function Abbr(declaration) { return ReactiveNode.declare(HtmlTags.abbr, declaration); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verstak",
3
- "version": "0.24.317",
3
+ "version": "0.24.401",
4
4
  "description": "Verstak - Front-End Library",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "homepage": "https://github.com/nezaboodka/verstak/blob/master/README.md#readme",
33
33
  "dependencies": {
34
- "reactronic": "^0.24.316"
34
+ "reactronic": "^0.24.401"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "22.8.5",