verstak 0.93.25025 → 0.93.25026
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/source/components/RealTimeClock.js +3 -3
- package/build/dist/source/components/Theme.js +2 -2
- package/build/dist/source/components/common/Utils.js +2 -2
- package/build/dist/source/core/Elements.js +3 -3
- package/build/dist/source/core/Restyler.js +2 -2
- package/build/dist/source/core/sensors/ButtonSensor.js +7 -7
- package/build/dist/source/core/sensors/FocusSensor.js +6 -6
- package/build/dist/source/core/sensors/Handlers.js +7 -7
- package/build/dist/source/core/sensors/HoverSensor.js +6 -6
- package/build/dist/source/core/sensors/HtmlDragSensor.js +11 -11
- package/build/dist/source/core/sensors/KeyboardSensor.js +6 -6
- package/build/dist/source/core/sensors/PointerSensor.js +11 -11
- package/build/dist/source/core/sensors/ResizeSensor.js +3 -3
- package/build/dist/source/core/sensors/ScrollSensor.js +3 -3
- package/build/dist/source/core/sensors/WheelSensor.js +3 -3
- package/build/dist/source/core/sensors/WindowSensor.js +2 -2
- package/package.json +2 -2
|
@@ -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 { TriggeringObject,
|
|
10
|
+
import { TriggeringObject, atomic, reaction } from "reactronic";
|
|
11
11
|
export class RealTimeClock extends TriggeringObject {
|
|
12
12
|
constructor(interval = 1000) {
|
|
13
13
|
super();
|
|
@@ -45,13 +45,13 @@ export class RealTimeClock extends TriggeringObject {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
__decorate([
|
|
48
|
-
|
|
48
|
+
atomic,
|
|
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
|
-
|
|
54
|
+
atomic,
|
|
55
55
|
__metadata("design:type", Function),
|
|
56
56
|
__metadata("design:paramtypes", []),
|
|
57
57
|
__metadata("design:returntype", void 0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { runAtomically, ReactiveNodeVariable, 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 ReactiveNodeVariable(
|
|
30
|
+
Theme.gCurrent = new ReactiveNodeVariable(runAtomically({ isolation: Isolation.disjoinFromOuterTransaction }, () => new Theme()));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TriggeringObject, Ref,
|
|
1
|
+
import { TriggeringObject, Ref, runAtomically, Isolation } from "reactronic";
|
|
2
2
|
export function triggeringModel(modelProps) {
|
|
3
|
-
return
|
|
3
|
+
return runAtomically({ isolation: Isolation.disjoinFromOuterTransaction }, () => new TriggeringComposition(modelProps));
|
|
4
4
|
}
|
|
5
5
|
class TriggeringComposition extends TriggeringObject {
|
|
6
6
|
constructor(composition) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactiveNode, Mode,
|
|
1
|
+
import { ReactiveNode, Mode, runNonReactively } from "reactronic";
|
|
2
2
|
import { ElKind, Direction } from "./El.js";
|
|
3
3
|
import { clamp } from "./ElUtils.js";
|
|
4
4
|
import { Constants, CursorCommandDriver, ElDriver, ElLayoutInfo, InitialElLayoutInfo } from "./ElDriver.js";
|
|
@@ -51,7 +51,7 @@ export function declareSplitter(index, splitViewNode) {
|
|
|
51
51
|
for (const item of initialSizesPx) {
|
|
52
52
|
clonedSizesPx.push({ node: item.node, sizePx: item.sizePx });
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
runNonReactively(() => relayoutUsingSplitter(splitViewNode, deltaPx, index, clonedSizesPx));
|
|
55
55
|
if (pointer.dropped) {
|
|
56
56
|
(_a = model === null || model === void 0 ? void 0 : model.droppedAction) === null || _a === void 0 ? void 0 : _a.call(model, pointer);
|
|
57
57
|
}
|
|
@@ -168,7 +168,7 @@ export class DivisionDriver extends HtmlDriver {
|
|
|
168
168
|
const priorities = preferred.length > 0
|
|
169
169
|
? getPrioritiesForSizeChanging(isHorizontal, node.children, preferred)
|
|
170
170
|
: getPrioritiesForEmptySpaceDistribution(isHorizontal, node.children);
|
|
171
|
-
|
|
171
|
+
runNonReactively(() => relayout(node, priorities.resizable, priorities.manuallyResizable, sizesPx));
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
});
|
|
@@ -7,9 +7,9 @@ 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 { cache,
|
|
10
|
+
import { cache, runAtomically } from "reactronic";
|
|
11
11
|
export function restyler(restyle) {
|
|
12
|
-
return
|
|
12
|
+
return runAtomically(() => new TriggeringStyles(restyle));
|
|
13
13
|
}
|
|
14
14
|
export class TriggeringStyles {
|
|
15
15
|
constructor(restyle) {
|
|
@@ -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 { options, Reentrance,
|
|
10
|
+
import { options, Reentrance, atomic, Transaction, LoggingLevel } from "reactronic";
|
|
11
11
|
import { extractPointerButton, isPointerButtonDown, PointerButton, BasePointerSensor } from "./BasePointerSensor.js";
|
|
12
12
|
import { findTargetElementData, SymDataForSensor } from "./DataForSensor.js";
|
|
13
13
|
import { extractModifierKeys, KeyboardModifiers } from "./KeyboardSensor.js";
|
|
@@ -164,42 +164,42 @@ export class ButtonSensor extends BasePointerSensor {
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
__decorate([
|
|
167
|
-
|
|
167
|
+
atomic,
|
|
168
168
|
options({ logging: LoggingLevel.Off }),
|
|
169
169
|
__metadata("design:type", Function),
|
|
170
170
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
171
171
|
__metadata("design:returntype", void 0)
|
|
172
172
|
], ButtonSensor.prototype, "press", null);
|
|
173
173
|
__decorate([
|
|
174
|
-
|
|
174
|
+
atomic,
|
|
175
175
|
options({ reentrance: Reentrance.cancelPrevious, logging: LoggingLevel.Off }),
|
|
176
176
|
__metadata("design:type", Function),
|
|
177
177
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
178
178
|
__metadata("design:returntype", void 0)
|
|
179
179
|
], ButtonSensor.prototype, "selecting", null);
|
|
180
180
|
__decorate([
|
|
181
|
-
|
|
181
|
+
atomic,
|
|
182
182
|
options({ logging: LoggingLevel.Off }),
|
|
183
183
|
__metadata("design:type", Function),
|
|
184
184
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
185
185
|
__metadata("design:returntype", void 0)
|
|
186
186
|
], ButtonSensor.prototype, "select", null);
|
|
187
187
|
__decorate([
|
|
188
|
-
|
|
188
|
+
atomic,
|
|
189
189
|
options({ logging: LoggingLevel.Off }),
|
|
190
190
|
__metadata("design:type", Function),
|
|
191
191
|
__metadata("design:paramtypes", []),
|
|
192
192
|
__metadata("design:returntype", void 0)
|
|
193
193
|
], ButtonSensor.prototype, "release", null);
|
|
194
194
|
__decorate([
|
|
195
|
-
|
|
195
|
+
atomic,
|
|
196
196
|
options({ logging: LoggingLevel.Off }),
|
|
197
197
|
__metadata("design:type", Function),
|
|
198
198
|
__metadata("design:paramtypes", []),
|
|
199
199
|
__metadata("design:returntype", void 0)
|
|
200
200
|
], ButtonSensor.prototype, "cancel", null);
|
|
201
201
|
__decorate([
|
|
202
|
-
|
|
202
|
+
atomic,
|
|
203
203
|
options({ logging: LoggingLevel.Off }),
|
|
204
204
|
__metadata("design:type", Function),
|
|
205
205
|
__metadata("design:paramtypes", []),
|
|
@@ -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 { options,
|
|
10
|
+
import { options, atomic, LoggingLevel, Transaction } from "reactronic";
|
|
11
11
|
import { objectHasMember } from "../ElUtils.js";
|
|
12
12
|
import { grabElementDataList, SymDataForSensor } from "./DataForSensor.js";
|
|
13
13
|
import { HtmlElementSensor } from "./HtmlElementSensor.js";
|
|
@@ -132,32 +132,32 @@ export class FocusSensor extends HtmlElementSensor {
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
__decorate([
|
|
135
|
-
|
|
135
|
+
atomic,
|
|
136
136
|
__metadata("design:type", Function),
|
|
137
137
|
__metadata("design:paramtypes", [Object, String]),
|
|
138
138
|
__metadata("design:returntype", void 0)
|
|
139
139
|
], FocusSensor.prototype, "setActiveData", null);
|
|
140
140
|
__decorate([
|
|
141
|
-
|
|
141
|
+
atomic,
|
|
142
142
|
__metadata("design:type", Function),
|
|
143
143
|
__metadata("design:paramtypes", [Boolean]),
|
|
144
144
|
__metadata("design:returntype", void 0)
|
|
145
145
|
], FocusSensor.prototype, "listen", null);
|
|
146
146
|
__decorate([
|
|
147
|
-
|
|
147
|
+
atomic,
|
|
148
148
|
options({ logging: LoggingLevel.Off }),
|
|
149
149
|
__metadata("design:type", Function),
|
|
150
150
|
__metadata("design:paramtypes", [FocusEvent]),
|
|
151
151
|
__metadata("design:returntype", void 0)
|
|
152
152
|
], FocusSensor.prototype, "doFocusIn", null);
|
|
153
153
|
__decorate([
|
|
154
|
-
|
|
154
|
+
atomic,
|
|
155
155
|
__metadata("design:type", Function),
|
|
156
156
|
__metadata("design:paramtypes", [FocusEvent]),
|
|
157
157
|
__metadata("design:returntype", void 0)
|
|
158
158
|
], FocusSensor.prototype, "doFocusOut", null);
|
|
159
159
|
__decorate([
|
|
160
|
-
|
|
160
|
+
atomic,
|
|
161
161
|
options({ logging: LoggingLevel.Off }),
|
|
162
162
|
__metadata("design:type", Function),
|
|
163
163
|
__metadata("design:paramtypes", [MouseEvent]),
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { Mode, ToggleRef,
|
|
10
|
+
import { Mode, ToggleRef, runNonReactively } from "reactronic";
|
|
11
11
|
import { PseudoElement } from "../Elements.js";
|
|
12
12
|
export function OnClick(target, action, key) {
|
|
13
13
|
if (action !== undefined) {
|
|
@@ -19,10 +19,10 @@ export function OnClick(target, action, key) {
|
|
|
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) {
|
|
22
|
-
|
|
22
|
+
runNonReactively(() => action(pointer));
|
|
23
23
|
}
|
|
24
24
|
else if (action instanceof ToggleRef) {
|
|
25
|
-
|
|
25
|
+
runNonReactively(() => action.toggle());
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
},
|
|
@@ -39,10 +39,10 @@ export function OnClickAsync(target, action, key) {
|
|
|
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) {
|
|
42
|
-
yield
|
|
42
|
+
yield runNonReactively(() => action(pointer));
|
|
43
43
|
}
|
|
44
44
|
else if (action instanceof ToggleRef) {
|
|
45
|
-
|
|
45
|
+
runNonReactively(() => action.toggle());
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}),
|
|
@@ -94,8 +94,8 @@ export function prepareResizeHandler(action) {
|
|
|
94
94
|
return (element) => {
|
|
95
95
|
const size = element.borderBoxSize[0];
|
|
96
96
|
if (action instanceof Function)
|
|
97
|
-
|
|
97
|
+
runNonReactively(() => action(size.inlineSize, size.blockSize));
|
|
98
98
|
else if (action instanceof ResizeData && action.handler !== undefined)
|
|
99
|
-
|
|
99
|
+
runNonReactively(() => action.handler(size.inlineSize, size.blockSize));
|
|
100
100
|
};
|
|
101
101
|
}
|
|
@@ -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 { options,
|
|
10
|
+
import { options, atomic, LoggingLevel, Transaction } from "reactronic";
|
|
11
11
|
import { SymDataForSensor, findTargetElementData } from "./DataForSensor.js";
|
|
12
12
|
import { BasePointerSensor } from "./BasePointerSensor.js";
|
|
13
13
|
import { KeyboardModifiers, extractModifierKeys } from "./KeyboardSensor.js";
|
|
@@ -90,35 +90,35 @@ export class HoverSensor extends BasePointerSensor {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
__decorate([
|
|
93
|
-
|
|
93
|
+
atomic,
|
|
94
94
|
options({ logging: LoggingLevel.Off }),
|
|
95
95
|
__metadata("design:type", Function),
|
|
96
96
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
97
97
|
__metadata("design:returntype", void 0)
|
|
98
98
|
], HoverSensor.prototype, "doPointerEnter", null);
|
|
99
99
|
__decorate([
|
|
100
|
-
|
|
100
|
+
atomic,
|
|
101
101
|
options({ logging: LoggingLevel.Off }),
|
|
102
102
|
__metadata("design:type", Function),
|
|
103
103
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
104
104
|
__metadata("design:returntype", void 0)
|
|
105
105
|
], HoverSensor.prototype, "doPointerOver", null);
|
|
106
106
|
__decorate([
|
|
107
|
-
|
|
107
|
+
atomic,
|
|
108
108
|
options({ logging: LoggingLevel.Off }),
|
|
109
109
|
__metadata("design:type", Function),
|
|
110
110
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
111
111
|
__metadata("design:returntype", void 0)
|
|
112
112
|
], HoverSensor.prototype, "doPointerMove", null);
|
|
113
113
|
__decorate([
|
|
114
|
-
|
|
114
|
+
atomic,
|
|
115
115
|
options({ logging: LoggingLevel.Off }),
|
|
116
116
|
__metadata("design:type", Function),
|
|
117
117
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
118
118
|
__metadata("design:returntype", void 0)
|
|
119
119
|
], HoverSensor.prototype, "doPointerLeave", null);
|
|
120
120
|
__decorate([
|
|
121
|
-
|
|
121
|
+
atomic,
|
|
122
122
|
options({ logging: LoggingLevel.Off }),
|
|
123
123
|
__metadata("design:type", Function),
|
|
124
124
|
__metadata("design:paramtypes", []),
|
|
@@ -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 { options, reaction,
|
|
10
|
+
import { options, reaction, atomic, trigger, Transaction, LoggingLevel } from "reactronic";
|
|
11
11
|
import { findTargetElementData, SymDataForSensor } from "./DataForSensor.js";
|
|
12
12
|
import { HtmlElementSensor } from "./HtmlElementSensor.js";
|
|
13
13
|
import { extractModifierKeys, KeyboardModifiers } from "./KeyboardSensor.js";
|
|
@@ -294,70 +294,70 @@ __decorate([
|
|
|
294
294
|
__metadata("design:type", Boolean)
|
|
295
295
|
], HtmlDragSensor.prototype, "dropAllowed", void 0);
|
|
296
296
|
__decorate([
|
|
297
|
-
|
|
297
|
+
atomic,
|
|
298
298
|
options({ logging: LoggingLevel.Off }),
|
|
299
299
|
__metadata("design:type", Function),
|
|
300
300
|
__metadata("design:paramtypes", [DragEvent]),
|
|
301
301
|
__metadata("design:returntype", void 0)
|
|
302
302
|
], HtmlDragSensor.prototype, "startDragging", null);
|
|
303
303
|
__decorate([
|
|
304
|
-
|
|
304
|
+
atomic,
|
|
305
305
|
options({ logging: LoggingLevel.Off }),
|
|
306
306
|
__metadata("design:type", Function),
|
|
307
307
|
__metadata("design:paramtypes", [DragEvent]),
|
|
308
308
|
__metadata("design:returntype", void 0)
|
|
309
309
|
], HtmlDragSensor.prototype, "dragging", null);
|
|
310
310
|
__decorate([
|
|
311
|
-
|
|
311
|
+
atomic,
|
|
312
312
|
options({ logging: LoggingLevel.Off }),
|
|
313
313
|
__metadata("design:type", Function),
|
|
314
314
|
__metadata("design:paramtypes", [DragEvent]),
|
|
315
315
|
__metadata("design:returntype", void 0)
|
|
316
316
|
], HtmlDragSensor.prototype, "finishDragging", null);
|
|
317
317
|
__decorate([
|
|
318
|
-
|
|
318
|
+
atomic,
|
|
319
319
|
options({ logging: LoggingLevel.Off }),
|
|
320
320
|
__metadata("design:type", Function),
|
|
321
321
|
__metadata("design:paramtypes", [DragEvent]),
|
|
322
322
|
__metadata("design:returntype", void 0)
|
|
323
323
|
], HtmlDragSensor.prototype, "enterTarget", null);
|
|
324
324
|
__decorate([
|
|
325
|
-
|
|
325
|
+
atomic,
|
|
326
326
|
options({ logging: LoggingLevel.Off }),
|
|
327
327
|
__metadata("design:type", Function),
|
|
328
328
|
__metadata("design:paramtypes", [DragEvent]),
|
|
329
329
|
__metadata("design:returntype", void 0)
|
|
330
330
|
], HtmlDragSensor.prototype, "leaveTarget", null);
|
|
331
331
|
__decorate([
|
|
332
|
-
|
|
332
|
+
atomic,
|
|
333
333
|
options({ logging: LoggingLevel.Off }),
|
|
334
334
|
__metadata("design:type", Function),
|
|
335
335
|
__metadata("design:paramtypes", [DragEvent]),
|
|
336
336
|
__metadata("design:returntype", void 0)
|
|
337
337
|
], HtmlDragSensor.prototype, "dragOver", null);
|
|
338
338
|
__decorate([
|
|
339
|
-
|
|
339
|
+
atomic,
|
|
340
340
|
options({ logging: LoggingLevel.Off }),
|
|
341
341
|
__metadata("design:type", Function),
|
|
342
342
|
__metadata("design:paramtypes", [DragEvent]),
|
|
343
343
|
__metadata("design:returntype", void 0)
|
|
344
344
|
], HtmlDragSensor.prototype, "drop", null);
|
|
345
345
|
__decorate([
|
|
346
|
-
|
|
346
|
+
atomic,
|
|
347
347
|
options({ logging: LoggingLevel.Off }),
|
|
348
348
|
__metadata("design:type", Function),
|
|
349
349
|
__metadata("design:paramtypes", [DragEvent]),
|
|
350
350
|
__metadata("design:returntype", void 0)
|
|
351
351
|
], HtmlDragSensor.prototype, "updateEventOnDragStart", null);
|
|
352
352
|
__decorate([
|
|
353
|
-
|
|
353
|
+
atomic,
|
|
354
354
|
options({ logging: LoggingLevel.Off }),
|
|
355
355
|
__metadata("design:type", Function),
|
|
356
356
|
__metadata("design:paramtypes", [DragEvent]),
|
|
357
357
|
__metadata("design:returntype", void 0)
|
|
358
358
|
], HtmlDragSensor.prototype, "updateEventOnDropAllowed", null);
|
|
359
359
|
__decorate([
|
|
360
|
-
|
|
360
|
+
atomic,
|
|
361
361
|
options({ logging: LoggingLevel.Off }),
|
|
362
362
|
__metadata("design:type", Function),
|
|
363
363
|
__metadata("design:paramtypes", []),
|
|
@@ -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 { options,
|
|
10
|
+
import { options, runSensitively, atomic, LoggingLevel, Transaction } from "reactronic";
|
|
11
11
|
import { grabElementDataList, SymDataForSensor } from "./DataForSensor.js";
|
|
12
12
|
import { HtmlElementSensor } from "./HtmlElementSensor.js";
|
|
13
13
|
export var KeyboardModifiers;
|
|
@@ -74,12 +74,12 @@ export class KeyboardSensor extends HtmlElementSensor {
|
|
|
74
74
|
keyDown(e) {
|
|
75
75
|
this.updateSensorData(e);
|
|
76
76
|
this.up = "";
|
|
77
|
-
|
|
77
|
+
runSensitively(true, () => this.down = e.key);
|
|
78
78
|
}
|
|
79
79
|
keyUp(e) {
|
|
80
80
|
this.updateSensorData(e);
|
|
81
81
|
this.down = "";
|
|
82
|
-
|
|
82
|
+
runSensitively(true, () => this.up = e.key);
|
|
83
83
|
}
|
|
84
84
|
updateSensorData(e) {
|
|
85
85
|
this.preventDefault = false;
|
|
@@ -103,20 +103,20 @@ export class KeyboardSensor extends HtmlElementSensor {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
__decorate([
|
|
106
|
-
|
|
106
|
+
atomic,
|
|
107
107
|
__metadata("design:type", Function),
|
|
108
108
|
__metadata("design:paramtypes", []),
|
|
109
109
|
__metadata("design:returntype", void 0)
|
|
110
110
|
], KeyboardSensor.prototype, "reset", null);
|
|
111
111
|
__decorate([
|
|
112
|
-
|
|
112
|
+
atomic,
|
|
113
113
|
options({ logging: LoggingLevel.Off }),
|
|
114
114
|
__metadata("design:type", Function),
|
|
115
115
|
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
116
116
|
__metadata("design:returntype", void 0)
|
|
117
117
|
], KeyboardSensor.prototype, "keyDown", null);
|
|
118
118
|
__decorate([
|
|
119
|
-
|
|
119
|
+
atomic,
|
|
120
120
|
options({ logging: LoggingLevel.Off }),
|
|
121
121
|
__metadata("design:type", Function),
|
|
122
122
|
__metadata("design:paramtypes", [KeyboardEvent]),
|
|
@@ -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 { options, trigger,
|
|
10
|
+
import { options, trigger, atomic, reaction, Reentrance, Transaction, LoggingLevel } from "reactronic";
|
|
11
11
|
import { extractPointerButton, isPointerButtonDown, PointerButton, BasePointerSensor } from "./BasePointerSensor.js";
|
|
12
12
|
import { findTargetElementData, SymDataForSensor } from "./DataForSensor.js";
|
|
13
13
|
import { extractModifierKeys, KeyboardModifiers } from "./KeyboardSensor.js";
|
|
@@ -308,70 +308,70 @@ __decorate([
|
|
|
308
308
|
__metadata("design:type", Boolean)
|
|
309
309
|
], PointerSensor.prototype, "dropAllowed", void 0);
|
|
310
310
|
__decorate([
|
|
311
|
-
|
|
311
|
+
atomic,
|
|
312
312
|
options({ logging: LoggingLevel.Off }),
|
|
313
313
|
__metadata("design:type", Function),
|
|
314
314
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
315
315
|
__metadata("design:returntype", void 0)
|
|
316
316
|
], PointerSensor.prototype, "moveOver", null);
|
|
317
317
|
__decorate([
|
|
318
|
-
|
|
318
|
+
atomic,
|
|
319
319
|
options({ logging: LoggingLevel.Off }),
|
|
320
320
|
__metadata("design:type", Function),
|
|
321
321
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
322
322
|
__metadata("design:returntype", void 0)
|
|
323
323
|
], PointerSensor.prototype, "tryClickingOrDragging", null);
|
|
324
324
|
__decorate([
|
|
325
|
-
|
|
325
|
+
atomic,
|
|
326
326
|
options({ reentrance: Reentrance.cancelPrevious, logging: LoggingLevel.Off }),
|
|
327
327
|
__metadata("design:type", Function),
|
|
328
328
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
329
329
|
__metadata("design:returntype", void 0)
|
|
330
330
|
], PointerSensor.prototype, "clickingOver", null);
|
|
331
331
|
__decorate([
|
|
332
|
-
|
|
332
|
+
atomic,
|
|
333
333
|
options({ logging: LoggingLevel.Off }),
|
|
334
334
|
__metadata("design:type", Function),
|
|
335
335
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
336
336
|
__metadata("design:returntype", void 0)
|
|
337
337
|
], PointerSensor.prototype, "click", null);
|
|
338
338
|
__decorate([
|
|
339
|
-
|
|
339
|
+
atomic,
|
|
340
340
|
options({ logging: LoggingLevel.Off }),
|
|
341
341
|
__metadata("design:type", Function),
|
|
342
342
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
343
343
|
__metadata("design:returntype", void 0)
|
|
344
344
|
], PointerSensor.prototype, "startDragging", null);
|
|
345
345
|
__decorate([
|
|
346
|
-
|
|
346
|
+
atomic,
|
|
347
347
|
options({ logging: LoggingLevel.Off }),
|
|
348
348
|
__metadata("design:type", Function),
|
|
349
349
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
350
350
|
__metadata("design:returntype", void 0)
|
|
351
351
|
], PointerSensor.prototype, "dragOver", null);
|
|
352
352
|
__decorate([
|
|
353
|
-
|
|
353
|
+
atomic,
|
|
354
354
|
options({ logging: LoggingLevel.Off }),
|
|
355
355
|
__metadata("design:type", Function),
|
|
356
356
|
__metadata("design:paramtypes", [PointerEvent]),
|
|
357
357
|
__metadata("design:returntype", void 0)
|
|
358
358
|
], PointerSensor.prototype, "drop", null);
|
|
359
359
|
__decorate([
|
|
360
|
-
|
|
360
|
+
atomic,
|
|
361
361
|
options({ logging: LoggingLevel.Off }),
|
|
362
362
|
__metadata("design:type", Function),
|
|
363
363
|
__metadata("design:paramtypes", []),
|
|
364
364
|
__metadata("design:returntype", void 0)
|
|
365
365
|
], PointerSensor.prototype, "finishDragging", null);
|
|
366
366
|
__decorate([
|
|
367
|
-
|
|
367
|
+
atomic,
|
|
368
368
|
options({ logging: LoggingLevel.Off }),
|
|
369
369
|
__metadata("design:type", Function),
|
|
370
370
|
__metadata("design:paramtypes", []),
|
|
371
371
|
__metadata("design:returntype", void 0)
|
|
372
372
|
], PointerSensor.prototype, "cancelDragging", null);
|
|
373
373
|
__decorate([
|
|
374
|
-
|
|
374
|
+
atomic,
|
|
375
375
|
options({ logging: LoggingLevel.Off }),
|
|
376
376
|
__metadata("design:type", Function),
|
|
377
377
|
__metadata("design:paramtypes", []),
|
|
@@ -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 { options,
|
|
10
|
+
import { options, atomic, LoggingLevel } from "reactronic";
|
|
11
11
|
import { Sensor } from "./Sensor.js";
|
|
12
12
|
export class ResizeSensor extends Sensor {
|
|
13
13
|
constructor() {
|
|
@@ -58,13 +58,13 @@ export class ResizeSensor extends Sensor {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
__decorate([
|
|
61
|
-
|
|
61
|
+
atomic,
|
|
62
62
|
__metadata("design:type", Function),
|
|
63
63
|
__metadata("design:paramtypes", []),
|
|
64
64
|
__metadata("design:returntype", void 0)
|
|
65
65
|
], ResizeSensor.prototype, "reset", null);
|
|
66
66
|
__decorate([
|
|
67
|
-
|
|
67
|
+
atomic,
|
|
68
68
|
options({ logging: LoggingLevel.Off }),
|
|
69
69
|
__metadata("design:type", Function),
|
|
70
70
|
__metadata("design:paramtypes", [Array]),
|
|
@@ -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 { options, Reentrance,
|
|
10
|
+
import { options, Reentrance, atomic, LoggingLevel, Transaction } from "reactronic";
|
|
11
11
|
import { HtmlElementSensor } from "./HtmlElementSensor.js";
|
|
12
12
|
export class ScrollSensor extends HtmlElementSensor {
|
|
13
13
|
constructor(element) {
|
|
@@ -53,13 +53,13 @@ export class ScrollSensor extends HtmlElementSensor {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
__decorate([
|
|
56
|
-
|
|
56
|
+
atomic,
|
|
57
57
|
__metadata("design:type", Function),
|
|
58
58
|
__metadata("design:paramtypes", []),
|
|
59
59
|
__metadata("design:returntype", void 0)
|
|
60
60
|
], ScrollSensor.prototype, "reset", null);
|
|
61
61
|
__decorate([
|
|
62
|
-
|
|
62
|
+
atomic,
|
|
63
63
|
options({ reentrance: Reentrance.cancelPrevious, logging: LoggingLevel.Off }),
|
|
64
64
|
__metadata("design:type", Function),
|
|
65
65
|
__metadata("design:paramtypes", [Event]),
|
|
@@ -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 { options, Reentrance,
|
|
10
|
+
import { options, Reentrance, atomic, LoggingLevel, Transaction } from "reactronic";
|
|
11
11
|
import { findTargetElementData, SymDataForSensor } from "./DataForSensor.js";
|
|
12
12
|
import { extractModifierKeys, KeyboardModifiers } from "./KeyboardSensor.js";
|
|
13
13
|
import { BasePointerSensor } from "./BasePointerSensor.js";
|
|
@@ -68,13 +68,13 @@ export class WheelSensor extends BasePointerSensor {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
__decorate([
|
|
71
|
-
|
|
71
|
+
atomic,
|
|
72
72
|
__metadata("design:type", Function),
|
|
73
73
|
__metadata("design:paramtypes", []),
|
|
74
74
|
__metadata("design:returntype", void 0)
|
|
75
75
|
], WheelSensor.prototype, "reset", null);
|
|
76
76
|
__decorate([
|
|
77
|
-
|
|
77
|
+
atomic,
|
|
78
78
|
options({ reentrance: Reentrance.cancelPrevious, logging: LoggingLevel.Off }),
|
|
79
79
|
__metadata("design:type", Function),
|
|
80
80
|
__metadata("design:paramtypes", [WheelEvent]),
|
|
@@ -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 { ToggleRef,
|
|
10
|
+
import { ToggleRef, atomic } from "reactronic";
|
|
11
11
|
import { objectHasMember } from "../ElUtils.js";
|
|
12
12
|
import { Sensor } from "./Sensor.js";
|
|
13
13
|
export class WindowSensor extends Sensor {
|
|
@@ -31,7 +31,7 @@ export class WindowSensor extends Sensor {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
__decorate([
|
|
34
|
-
|
|
34
|
+
atomic,
|
|
35
35
|
__metadata("design:type", Function),
|
|
36
36
|
__metadata("design:paramtypes", [Object, String]),
|
|
37
37
|
__metadata("design:returntype", void 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verstak",
|
|
3
|
-
"version": "0.93.
|
|
3
|
+
"version": "0.93.25026",
|
|
4
4
|
"description": "Verstak - Front-End Library",
|
|
5
5
|
"publisher": "Nezaboodka Software",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"markdown-it": "^14.1.0",
|
|
43
43
|
"markdown-it-prism": "^2.3.0",
|
|
44
44
|
"prismjs": "^1.29.0",
|
|
45
|
-
"reactronic": "^0.93.
|
|
45
|
+
"reactronic": "^0.93.25026"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/markdown-it": "14.1.2",
|