@tanstack/hotkeys-devtools 0.4.4 → 0.7.0
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/README.md +1 -1
- package/dist/HotkeysContextProvider.js +25 -2
- package/dist/HotkeysContextProvider.js.map +1 -1
- package/dist/components/DetailsPanel.js +367 -217
- package/dist/components/DetailsPanel.js.map +1 -1
- package/dist/components/HeldKeysTopbar.js +7 -4
- package/dist/components/HeldKeysTopbar.js.map +1 -1
- package/dist/components/HotkeyList.js +229 -195
- package/dist/components/HotkeyList.js.map +1 -1
- package/dist/components/Shell.js +100 -43
- package/dist/components/Shell.js.map +1 -1
- package/dist/sequence-progress.js +20 -0
- package/dist/sequence-progress.js.map +1 -0
- package/dist/styles/use-styles.js +107 -2
- package/dist/styles/use-styles.js.map +1 -1
- package/package.json +2 -2
- package/src/HotkeysContextProvider.tsx +35 -0
- package/src/components/DetailsPanel.tsx +201 -44
- package/src/components/HeldKeysTopbar.tsx +9 -5
- package/src/components/HotkeyList.tsx +187 -151
- package/src/components/Shell.tsx +101 -34
- package/src/sequence-progress.ts +29 -0
- package/src/styles/use-styles.ts +109 -2
|
@@ -1,12 +1,56 @@
|
|
|
1
|
+
import { effectiveSequenceMatchedSteps } from "../sequence-progress.js";
|
|
1
2
|
import { useHotkeysDevtoolsState } from "../HotkeysContextProvider.js";
|
|
2
3
|
import { useStyles } from "../styles/use-styles.js";
|
|
3
4
|
import { ActionButtons } from "./ActionButtons.js";
|
|
4
5
|
import { className, createComponent, effect, insert, template } from "solid-js/web";
|
|
5
6
|
import { For, Show, createMemo } from "solid-js";
|
|
6
|
-
import { formatForDisplay, formatHotkeySequence } from "@tanstack/hotkeys";
|
|
7
|
+
import { detectPlatform, formatForDisplay, formatHotkeySequence, normalizeHotkey, normalizeHotkeyFromParsed, parseHotkey } from "@tanstack/hotkeys";
|
|
8
|
+
import clsx from "clsx";
|
|
7
9
|
|
|
8
10
|
//#region src/components/DetailsPanel.tsx
|
|
9
|
-
var _tmpl$ = /* @__PURE__ */ template(`<div><div></div><div><div>ID</div><div></div><div>Raw</div><div></div><div>Target</div><div>`), _tmpl$
|
|
11
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div>`), _tmpl$2 = /* @__PURE__ */ template(`<div><span></span><span>`), _tmpl$3 = /* @__PURE__ */ template(`<div><div></div><div><div>ID</div><div></div><div>Raw</div><div></div><div>Target</div><div>`), _tmpl$4 = /* @__PURE__ */ template(`<div><div>Conflicts (<!>)</div><div>`), _tmpl$5 = /* @__PURE__ */ template(`<div><div><div>Key Breakdown</div><div><div><div></div></div><span aria-hidden=true>-></span><div></div></div></div><div><div>Actions</div></div><div><div>Options</div><div><div><span>enabled</span><span></span></div><div><span>eventType</span><span></span></div><div><span>preventDefault</span><span></span></div><div><span>stopPropagation</span><span></span></div><div><span>ignoreInputs</span><span></span></div><div><span>requireReset</span><span></span></div><div><span>conflictBehavior</span><span></span></div><div><span>hasFired</span><span>`), _tmpl$6 = /* @__PURE__ */ template(`<span>+`), _tmpl$7 = /* @__PURE__ */ template(`<span>`), _tmpl$8 = /* @__PURE__ */ template(`<div><span></span> <!>: <!> (<!>) on `), _tmpl$9 = /* @__PURE__ */ template(`<div><span>scope</span> <!>: <!> (<!>) on `), _tmpl$0 = /* @__PURE__ */ template(`<div><div></div><div><div>ID</div><div></div><div>Sequence</div><div></div><div>Target</div><div>`), _tmpl$1 = /* @__PURE__ */ template(`<div><div><div>Key Breakdown</div><div></div><div>Each chord</div></div><div><div>Actions</div></div><div><div>Options</div><div><div><span>enabled</span><span></span></div><div><span>eventType</span><span></span></div><div><span>timeout</span><span>ms</span></div><div><span>preventDefault</span><span></span></div><div><span>stopPropagation</span><span></span></div><div><span>ignoreInputs</span><span></span></div><div><span>conflictBehavior</span><span>`), _tmpl$10 = /* @__PURE__ */ template(`<span><span>`), _tmpl$11 = /* @__PURE__ */ template(`<span>→`), _tmpl$12 = /* @__PURE__ */ template(`<div><div>Step </div><div><div><div></div></div><span aria-hidden=true>-></span><div>`), _tmpl$13 = /* @__PURE__ */ template(`<div>Select a hotkey or sequence from the list to view its details`);
|
|
12
|
+
const PLATFORM_ROWS = [
|
|
13
|
+
{
|
|
14
|
+
id: "mac",
|
|
15
|
+
label: "macOS"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: "windows",
|
|
19
|
+
label: "Windows"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: "linux",
|
|
23
|
+
label: "Linux"
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
function KeyBreakdownPlatformTable(props) {
|
|
27
|
+
const st = () => props.styles();
|
|
28
|
+
return (() => {
|
|
29
|
+
var _el$ = _tmpl$();
|
|
30
|
+
insert(_el$, createComponent(For, {
|
|
31
|
+
each: PLATFORM_ROWS,
|
|
32
|
+
children: (row) => (() => {
|
|
33
|
+
var _el$2 = _tmpl$2(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
|
|
34
|
+
insert(_el$3, () => row.label);
|
|
35
|
+
insert(_el$4, () => formatForDisplay(normalizeHotkeyFromParsed(props.getParsed(), props.getCanonicalPlatform()), { platform: row.id }));
|
|
36
|
+
effect((_p$) => {
|
|
37
|
+
var _v$ = st().platformBreakdownRow, _v$2 = st().platformBreakdownLabel, _v$3 = st().platformBreakdownPretty;
|
|
38
|
+
_v$ !== _p$.e && className(_el$2, _p$.e = _v$);
|
|
39
|
+
_v$2 !== _p$.t && className(_el$3, _p$.t = _v$2);
|
|
40
|
+
_v$3 !== _p$.a && className(_el$4, _p$.a = _v$3);
|
|
41
|
+
return _p$;
|
|
42
|
+
}, {
|
|
43
|
+
e: void 0,
|
|
44
|
+
t: void 0,
|
|
45
|
+
a: void 0
|
|
46
|
+
});
|
|
47
|
+
return _el$2;
|
|
48
|
+
})()
|
|
49
|
+
}));
|
|
50
|
+
effect(() => className(_el$, st().platformBreakdown));
|
|
51
|
+
return _el$;
|
|
52
|
+
})();
|
|
53
|
+
}
|
|
10
54
|
function sequenceKey(sequence) {
|
|
11
55
|
return sequence.join("|");
|
|
12
56
|
}
|
|
@@ -51,34 +95,26 @@ function HotkeyDetails(props) {
|
|
|
51
95
|
const scopeConflicts = createMemo(() => props.findScopeConflicts(reg(), props.state.registrations()));
|
|
52
96
|
const allConflicts = createMemo(() => [...targetConflicts(), ...scopeConflicts()]);
|
|
53
97
|
const conflictBehavior = () => reg().options.conflictBehavior ?? "warn";
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
const p = parsed();
|
|
57
|
-
if (p.ctrl) parts.push("Ctrl");
|
|
58
|
-
if (p.shift) parts.push("Shift");
|
|
59
|
-
if (p.alt) parts.push("Alt");
|
|
60
|
-
if (p.meta) parts.push("Meta");
|
|
61
|
-
parts.push(p.key);
|
|
62
|
-
return parts;
|
|
63
|
-
});
|
|
98
|
+
const registrationPlatform = () => reg().options.platform ?? detectPlatform();
|
|
99
|
+
const rawModParts = createMemo(() => normalizeHotkeyFromParsed(parsed(), registrationPlatform()).split("+"));
|
|
64
100
|
const styles = props.styles;
|
|
65
101
|
return [(() => {
|
|
66
|
-
var _el$ = _tmpl$(), _el$
|
|
67
|
-
insert(_el$
|
|
68
|
-
insert(_el$
|
|
69
|
-
insert(_el$
|
|
70
|
-
insert(_el$
|
|
102
|
+
var _el$5 = _tmpl$3(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$0 = _el$9.nextSibling, _el$1 = _el$0.nextSibling, _el$10 = _el$1.nextSibling, _el$11 = _el$10.nextSibling;
|
|
103
|
+
insert(_el$6, () => props.formatForDisplay(reg().hotkey));
|
|
104
|
+
insert(_el$9, () => reg().id);
|
|
105
|
+
insert(_el$1, () => reg().hotkey);
|
|
106
|
+
insert(_el$11, () => props.getTargetDescription(reg().target));
|
|
71
107
|
effect((_p$) => {
|
|
72
|
-
var _v$ = styles().stateHeader, _v$
|
|
73
|
-
_v$ !== _p$.e && className(_el
|
|
74
|
-
_v$
|
|
75
|
-
_v$
|
|
76
|
-
_v$
|
|
77
|
-
_v$
|
|
78
|
-
_v$
|
|
79
|
-
_v$
|
|
80
|
-
_v$
|
|
81
|
-
_v$
|
|
108
|
+
var _v$4 = styles().stateHeader, _v$5 = styles().stateTitle, _v$6 = styles().infoGrid, _v$7 = styles().infoLabel, _v$8 = styles().infoValueMono, _v$9 = styles().infoLabel, _v$0 = styles().infoValueMono, _v$1 = styles().infoLabel, _v$10 = styles().infoValueMono;
|
|
109
|
+
_v$4 !== _p$.e && className(_el$5, _p$.e = _v$4);
|
|
110
|
+
_v$5 !== _p$.t && className(_el$6, _p$.t = _v$5);
|
|
111
|
+
_v$6 !== _p$.a && className(_el$7, _p$.a = _v$6);
|
|
112
|
+
_v$7 !== _p$.o && className(_el$8, _p$.o = _v$7);
|
|
113
|
+
_v$8 !== _p$.i && className(_el$9, _p$.i = _v$8);
|
|
114
|
+
_v$9 !== _p$.n && className(_el$0, _p$.n = _v$9);
|
|
115
|
+
_v$0 !== _p$.s && className(_el$1, _p$.s = _v$0);
|
|
116
|
+
_v$1 !== _p$.h && className(_el$10, _p$.h = _v$1);
|
|
117
|
+
_v$10 !== _p$.r && className(_el$11, _p$.r = _v$10);
|
|
82
118
|
return _p$;
|
|
83
119
|
}, {
|
|
84
120
|
e: void 0,
|
|
@@ -91,50 +127,57 @@ function HotkeyDetails(props) {
|
|
|
91
127
|
h: void 0,
|
|
92
128
|
r: void 0
|
|
93
129
|
});
|
|
94
|
-
return _el
|
|
130
|
+
return _el$5;
|
|
95
131
|
})(), (() => {
|
|
96
|
-
var _el$
|
|
97
|
-
insert(_el$
|
|
132
|
+
var _el$12 = _tmpl$5(), _el$13 = _el$12.firstChild, _el$14 = _el$13.firstChild, _el$15 = _el$14.nextSibling, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$16.nextSibling, _el$19 = _el$18.nextSibling, _el$20 = _el$13.nextSibling, _el$21 = _el$20.firstChild, _el$22 = _el$20.nextSibling, _el$23 = _el$22.firstChild, _el$25 = _el$23.nextSibling.firstChild, _el$26 = _el$25.firstChild, _el$27 = _el$26.nextSibling, _el$28 = _el$25.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$29.nextSibling, _el$31 = _el$28.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$32.nextSibling, _el$34 = _el$31.nextSibling, _el$35 = _el$34.firstChild, _el$36 = _el$35.nextSibling, _el$37 = _el$34.nextSibling, _el$38 = _el$37.firstChild, _el$39 = _el$38.nextSibling, _el$40 = _el$37.nextSibling, _el$41 = _el$40.firstChild, _el$42 = _el$41.nextSibling, _el$43 = _el$40.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$44.nextSibling, _el$46 = _el$43.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling;
|
|
133
|
+
insert(_el$17, createComponent(For, {
|
|
98
134
|
get each() {
|
|
99
|
-
return
|
|
135
|
+
return rawModParts();
|
|
100
136
|
},
|
|
101
137
|
children: (part, i) => [createComponent(Show, {
|
|
102
138
|
get when() {
|
|
103
139
|
return i() > 0;
|
|
104
140
|
},
|
|
105
141
|
get children() {
|
|
106
|
-
var _el$
|
|
107
|
-
effect(() => className(_el$
|
|
108
|
-
return _el$
|
|
142
|
+
var _el$55 = _tmpl$6();
|
|
143
|
+
effect(() => className(_el$55, styles().keyBreakdownPlus));
|
|
144
|
+
return _el$55;
|
|
109
145
|
}
|
|
110
146
|
}), (() => {
|
|
111
|
-
var _el$
|
|
112
|
-
insert(_el$
|
|
113
|
-
effect(() => className(_el$
|
|
114
|
-
return _el$
|
|
147
|
+
var _el$56 = _tmpl$7();
|
|
148
|
+
insert(_el$56, part);
|
|
149
|
+
effect(() => className(_el$56, styles().keyCapLarge));
|
|
150
|
+
return _el$56;
|
|
115
151
|
})()]
|
|
116
152
|
}));
|
|
117
|
-
insert(_el$
|
|
153
|
+
insert(_el$19, createComponent(KeyBreakdownPlatformTable, {
|
|
154
|
+
getParsed: () => parsed(),
|
|
155
|
+
getCanonicalPlatform: registrationPlatform,
|
|
156
|
+
get styles() {
|
|
157
|
+
return props.styles;
|
|
158
|
+
}
|
|
159
|
+
}));
|
|
160
|
+
insert(_el$20, createComponent(ActionButtons, { get registration() {
|
|
118
161
|
return reg();
|
|
119
162
|
} }), null);
|
|
120
|
-
insert(_el$
|
|
121
|
-
insert(_el$
|
|
122
|
-
insert(_el$
|
|
123
|
-
insert(_el$
|
|
124
|
-
insert(_el$
|
|
125
|
-
insert(_el$
|
|
126
|
-
insert(_el$
|
|
127
|
-
insert(_el$
|
|
128
|
-
insert(_el$
|
|
163
|
+
insert(_el$27, () => String(reg().options.enabled !== false));
|
|
164
|
+
insert(_el$30, () => reg().options.eventType ?? "keydown");
|
|
165
|
+
insert(_el$33, () => String(!!reg().options.preventDefault));
|
|
166
|
+
insert(_el$36, () => String(!!reg().options.stopPropagation));
|
|
167
|
+
insert(_el$39, () => String(reg().options.ignoreInputs !== false));
|
|
168
|
+
insert(_el$42, () => String(!!reg().options.requireReset));
|
|
169
|
+
insert(_el$45, conflictBehavior);
|
|
170
|
+
insert(_el$48, () => String(reg().hasFired));
|
|
171
|
+
insert(_el$12, createComponent(Show, {
|
|
129
172
|
get when() {
|
|
130
173
|
return allConflicts().length > 0;
|
|
131
174
|
},
|
|
132
175
|
get children() {
|
|
133
|
-
var _el$
|
|
134
|
-
_el$
|
|
135
|
-
var _el$
|
|
136
|
-
insert(_el$
|
|
137
|
-
insert(_el$
|
|
176
|
+
var _el$49 = _tmpl$4(), _el$50 = _el$49.firstChild, _el$53 = _el$50.firstChild.nextSibling;
|
|
177
|
+
_el$53.nextSibling;
|
|
178
|
+
var _el$54 = _el$50.nextSibling;
|
|
179
|
+
insert(_el$50, () => allConflicts().length, _el$53);
|
|
180
|
+
insert(_el$54, createComponent(For, {
|
|
138
181
|
get each() {
|
|
139
182
|
return targetConflicts();
|
|
140
183
|
},
|
|
@@ -142,81 +185,85 @@ function HotkeyDetails(props) {
|
|
|
142
185
|
const itemStyle = () => props.getConflictItemStyle(conflictBehavior(), true);
|
|
143
186
|
const label = () => props.getConflictLabel(conflictBehavior(), true);
|
|
144
187
|
return (() => {
|
|
145
|
-
var _el$
|
|
146
|
-
_el$
|
|
147
|
-
insert(_el$
|
|
148
|
-
insert(_el$
|
|
149
|
-
insert(_el$
|
|
150
|
-
insert(_el$
|
|
151
|
-
insert(_el$
|
|
152
|
-
effect(() => className(_el$
|
|
153
|
-
return _el$
|
|
188
|
+
var _el$57 = _tmpl$8(), _el$58 = _el$57.firstChild, _el$65 = _el$58.nextSibling.nextSibling, _el$66 = _el$65.nextSibling.nextSibling, _el$67 = _el$66.nextSibling.nextSibling;
|
|
189
|
+
_el$67.nextSibling;
|
|
190
|
+
insert(_el$58, label);
|
|
191
|
+
insert(_el$57, () => conflict.id, _el$65);
|
|
192
|
+
insert(_el$57, () => props.formatForDisplay(conflict.hotkey), _el$66);
|
|
193
|
+
insert(_el$57, () => conflict.options.eventType ?? "keydown", _el$67);
|
|
194
|
+
insert(_el$57, () => props.getTargetDescription(conflict.target), null);
|
|
195
|
+
effect(() => className(_el$57, styles()[itemStyle()]));
|
|
196
|
+
return _el$57;
|
|
154
197
|
})();
|
|
155
198
|
}
|
|
156
199
|
}), null);
|
|
157
|
-
insert(_el$
|
|
200
|
+
insert(_el$54, createComponent(For, {
|
|
158
201
|
get each() {
|
|
159
202
|
return scopeConflicts();
|
|
160
203
|
},
|
|
161
204
|
children: (conflict) => (() => {
|
|
162
|
-
var _el$
|
|
163
|
-
_el$
|
|
164
|
-
insert(_el$
|
|
165
|
-
insert(_el$
|
|
166
|
-
insert(_el$
|
|
167
|
-
insert(_el$
|
|
168
|
-
effect(() => className(_el$
|
|
169
|
-
return _el$
|
|
205
|
+
var _el$68 = _tmpl$9(), _el$76 = _el$68.firstChild.nextSibling.nextSibling, _el$77 = _el$76.nextSibling.nextSibling, _el$78 = _el$77.nextSibling.nextSibling;
|
|
206
|
+
_el$78.nextSibling;
|
|
207
|
+
insert(_el$68, () => conflict.id, _el$76);
|
|
208
|
+
insert(_el$68, () => props.formatForDisplay(conflict.hotkey), _el$77);
|
|
209
|
+
insert(_el$68, () => conflict.options.eventType ?? "keydown", _el$78);
|
|
210
|
+
insert(_el$68, () => props.getTargetDescription(conflict.target), null);
|
|
211
|
+
effect(() => className(_el$68, styles().conflictItemScope));
|
|
212
|
+
return _el$68;
|
|
170
213
|
})()
|
|
171
214
|
}), null);
|
|
172
215
|
effect((_p$) => {
|
|
173
|
-
var _v$
|
|
174
|
-
_v$
|
|
175
|
-
_v$
|
|
176
|
-
_v$
|
|
216
|
+
var _v$11 = styles().detailSection, _v$12 = styles().detailSectionHeader, _v$13 = styles().conflictList;
|
|
217
|
+
_v$11 !== _p$.e && className(_el$49, _p$.e = _v$11);
|
|
218
|
+
_v$12 !== _p$.t && className(_el$50, _p$.t = _v$12);
|
|
219
|
+
_v$13 !== _p$.a && className(_el$54, _p$.a = _v$13);
|
|
177
220
|
return _p$;
|
|
178
221
|
}, {
|
|
179
222
|
e: void 0,
|
|
180
223
|
t: void 0,
|
|
181
224
|
a: void 0
|
|
182
225
|
});
|
|
183
|
-
return _el$
|
|
226
|
+
return _el$49;
|
|
184
227
|
}
|
|
185
228
|
}), null);
|
|
186
229
|
effect((_p$) => {
|
|
187
|
-
var _v$
|
|
188
|
-
_v$
|
|
189
|
-
_v$
|
|
190
|
-
_v$
|
|
191
|
-
_v$
|
|
192
|
-
_v$
|
|
193
|
-
_v$
|
|
194
|
-
_v$
|
|
195
|
-
_v$
|
|
196
|
-
_v$
|
|
197
|
-
_v$
|
|
198
|
-
_v$
|
|
199
|
-
_v$
|
|
200
|
-
_v$
|
|
201
|
-
_v$
|
|
202
|
-
_v$
|
|
203
|
-
_v$
|
|
204
|
-
_v$
|
|
205
|
-
_v$
|
|
206
|
-
_v$
|
|
207
|
-
_v$
|
|
208
|
-
_v$
|
|
209
|
-
_v$
|
|
210
|
-
_v$
|
|
211
|
-
_v$
|
|
212
|
-
_v$
|
|
213
|
-
_v$
|
|
214
|
-
_v$
|
|
215
|
-
_v$
|
|
216
|
-
_v$
|
|
217
|
-
_v$
|
|
218
|
-
_v$
|
|
219
|
-
_v$
|
|
230
|
+
var _v$14 = styles().detailsGrid, _v$15 = styles().detailSection, _v$16 = styles().detailSectionHeader, _v$17 = styles().keyBreakdownSplitRow, _v$18 = styles().keyBreakdownSplitLeft, _v$19 = styles().keyBreakdown, _v$20 = styles().keyBreakdownSplitArrow, _v$21 = styles().keyBreakdownSplitRight, _v$22 = styles().detailSection, _v$23 = styles().detailSectionHeader, _v$24 = styles().detailSection, _v$25 = styles().detailSectionHeader, _v$26 = styles().optionRow, _v$27 = styles().optionLabel, _v$28 = reg().options.enabled !== false ? styles().optionValueTrue : styles().optionValueFalse, _v$29 = styles().optionRow, _v$30 = styles().optionLabel, _v$31 = styles().optionValue, _v$32 = styles().optionRow, _v$33 = styles().optionLabel, _v$34 = reg().options.preventDefault ? styles().optionValueTrue : styles().optionValueFalse, _v$35 = styles().optionRow, _v$36 = styles().optionLabel, _v$37 = reg().options.stopPropagation ? styles().optionValueTrue : styles().optionValueFalse, _v$38 = styles().optionRow, _v$39 = styles().optionLabel, _v$40 = reg().options.ignoreInputs !== false ? styles().optionValueTrue : styles().optionValueFalse, _v$41 = styles().optionRow, _v$42 = styles().optionLabel, _v$43 = reg().options.requireReset ? styles().optionValueTrue : styles().optionValueFalse, _v$44 = styles().optionRow, _v$45 = styles().optionLabel, _v$46 = styles().optionValue, _v$47 = styles().optionRow, _v$48 = styles().optionLabel, _v$49 = reg().hasFired ? styles().optionValueTrue : styles().optionValueFalse;
|
|
231
|
+
_v$14 !== _p$.e && className(_el$12, _p$.e = _v$14);
|
|
232
|
+
_v$15 !== _p$.t && className(_el$13, _p$.t = _v$15);
|
|
233
|
+
_v$16 !== _p$.a && className(_el$14, _p$.a = _v$16);
|
|
234
|
+
_v$17 !== _p$.o && className(_el$15, _p$.o = _v$17);
|
|
235
|
+
_v$18 !== _p$.i && className(_el$16, _p$.i = _v$18);
|
|
236
|
+
_v$19 !== _p$.n && className(_el$17, _p$.n = _v$19);
|
|
237
|
+
_v$20 !== _p$.s && className(_el$18, _p$.s = _v$20);
|
|
238
|
+
_v$21 !== _p$.h && className(_el$19, _p$.h = _v$21);
|
|
239
|
+
_v$22 !== _p$.r && className(_el$20, _p$.r = _v$22);
|
|
240
|
+
_v$23 !== _p$.d && className(_el$21, _p$.d = _v$23);
|
|
241
|
+
_v$24 !== _p$.l && className(_el$22, _p$.l = _v$24);
|
|
242
|
+
_v$25 !== _p$.u && className(_el$23, _p$.u = _v$25);
|
|
243
|
+
_v$26 !== _p$.c && className(_el$25, _p$.c = _v$26);
|
|
244
|
+
_v$27 !== _p$.w && className(_el$26, _p$.w = _v$27);
|
|
245
|
+
_v$28 !== _p$.m && className(_el$27, _p$.m = _v$28);
|
|
246
|
+
_v$29 !== _p$.f && className(_el$28, _p$.f = _v$29);
|
|
247
|
+
_v$30 !== _p$.y && className(_el$29, _p$.y = _v$30);
|
|
248
|
+
_v$31 !== _p$.g && className(_el$30, _p$.g = _v$31);
|
|
249
|
+
_v$32 !== _p$.p && className(_el$31, _p$.p = _v$32);
|
|
250
|
+
_v$33 !== _p$.b && className(_el$32, _p$.b = _v$33);
|
|
251
|
+
_v$34 !== _p$.T && className(_el$33, _p$.T = _v$34);
|
|
252
|
+
_v$35 !== _p$.A && className(_el$34, _p$.A = _v$35);
|
|
253
|
+
_v$36 !== _p$.O && className(_el$35, _p$.O = _v$36);
|
|
254
|
+
_v$37 !== _p$.I && className(_el$36, _p$.I = _v$37);
|
|
255
|
+
_v$38 !== _p$.S && className(_el$37, _p$.S = _v$38);
|
|
256
|
+
_v$39 !== _p$.W && className(_el$38, _p$.W = _v$39);
|
|
257
|
+
_v$40 !== _p$.C && className(_el$39, _p$.C = _v$40);
|
|
258
|
+
_v$41 !== _p$.B && className(_el$40, _p$.B = _v$41);
|
|
259
|
+
_v$42 !== _p$.v && className(_el$41, _p$.v = _v$42);
|
|
260
|
+
_v$43 !== _p$.k && className(_el$42, _p$.k = _v$43);
|
|
261
|
+
_v$44 !== _p$.x && className(_el$43, _p$.x = _v$44);
|
|
262
|
+
_v$45 !== _p$.j && className(_el$44, _p$.j = _v$45);
|
|
263
|
+
_v$46 !== _p$.q && className(_el$45, _p$.q = _v$46);
|
|
264
|
+
_v$47 !== _p$.z && className(_el$46, _p$.z = _v$47);
|
|
265
|
+
_v$48 !== _p$.P && className(_el$47, _p$.P = _v$48);
|
|
266
|
+
_v$49 !== _p$.H && className(_el$48, _p$.H = _v$49);
|
|
220
267
|
return _p$;
|
|
221
268
|
}, {
|
|
222
269
|
e: void 0,
|
|
@@ -250,35 +297,74 @@ function HotkeyDetails(props) {
|
|
|
250
297
|
v: void 0,
|
|
251
298
|
k: void 0,
|
|
252
299
|
x: void 0,
|
|
253
|
-
j: void 0
|
|
300
|
+
j: void 0,
|
|
301
|
+
q: void 0,
|
|
302
|
+
z: void 0,
|
|
303
|
+
P: void 0,
|
|
304
|
+
H: void 0
|
|
254
305
|
});
|
|
255
|
-
return _el$
|
|
306
|
+
return _el$12;
|
|
256
307
|
})()];
|
|
257
308
|
}
|
|
258
309
|
function SequenceDetails(props) {
|
|
259
310
|
const reg = () => props.registration;
|
|
260
|
-
const
|
|
261
|
-
const
|
|
311
|
+
const liveReg = createMemo(() => props.state.sequenceRegistrations().find((r) => r.id === reg().id) ?? reg());
|
|
312
|
+
const matchedSteps = createMemo(() => effectiveSequenceMatchedSteps(liveReg(), props.state.sequenceProgressNow()));
|
|
313
|
+
const targetConflicts = createMemo(() => props.findSequenceTargetConflicts(liveReg(), props.state.sequenceRegistrations()));
|
|
314
|
+
const scopeConflicts = createMemo(() => props.findSequenceScopeConflicts(liveReg(), props.state.sequenceRegistrations()));
|
|
262
315
|
const allConflicts = createMemo(() => [...targetConflicts(), ...scopeConflicts()]);
|
|
263
|
-
const conflictBehavior = () =>
|
|
316
|
+
const conflictBehavior = () => liveReg().options.conflictBehavior ?? "warn";
|
|
317
|
+
const sequenceCanonicalPlatform = createMemo(() => liveReg().options.platform ?? detectPlatform());
|
|
264
318
|
const styles = props.styles;
|
|
265
319
|
return [(() => {
|
|
266
|
-
var _el$
|
|
267
|
-
insert(_el$
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
320
|
+
var _el$79 = _tmpl$0(), _el$80 = _el$79.firstChild, _el$81 = _el$80.nextSibling, _el$82 = _el$81.firstChild, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling;
|
|
321
|
+
insert(_el$80, createComponent(For, {
|
|
322
|
+
get each() {
|
|
323
|
+
return liveReg().sequence;
|
|
324
|
+
},
|
|
325
|
+
children: (step, i) => (() => {
|
|
326
|
+
var _el$126 = _tmpl$10(), _el$127 = _el$126.firstChild;
|
|
327
|
+
insert(_el$126, createComponent(Show, {
|
|
328
|
+
get when() {
|
|
329
|
+
return i() > 0;
|
|
330
|
+
},
|
|
331
|
+
children: " "
|
|
332
|
+
}), _el$127);
|
|
333
|
+
insert(_el$127, () => props.formatForDisplay(step));
|
|
334
|
+
effect(() => className(_el$127, i() < matchedSteps() ? styles().sequenceStepMatched : void 0));
|
|
335
|
+
return _el$126;
|
|
336
|
+
})()
|
|
337
|
+
}));
|
|
338
|
+
insert(_el$83, () => liveReg().id);
|
|
339
|
+
insert(_el$85, createComponent(For, {
|
|
340
|
+
get each() {
|
|
341
|
+
return liveReg().sequence;
|
|
342
|
+
},
|
|
343
|
+
children: (step, i) => (() => {
|
|
344
|
+
var _el$128 = _tmpl$10(), _el$129 = _el$128.firstChild;
|
|
345
|
+
insert(_el$128, createComponent(Show, {
|
|
346
|
+
get when() {
|
|
347
|
+
return i() > 0;
|
|
348
|
+
},
|
|
349
|
+
children: " "
|
|
350
|
+
}), _el$129);
|
|
351
|
+
insert(_el$129, () => props.formatForDisplay(step));
|
|
352
|
+
effect(() => className(_el$129, i() < matchedSteps() ? styles().sequenceStepMatched : void 0));
|
|
353
|
+
return _el$128;
|
|
354
|
+
})()
|
|
355
|
+
}));
|
|
356
|
+
insert(_el$87, () => props.getTargetDescription(liveReg().target));
|
|
271
357
|
effect((_p$) => {
|
|
272
|
-
var _v$
|
|
273
|
-
_v$
|
|
274
|
-
_v$
|
|
275
|
-
_v$
|
|
276
|
-
_v$
|
|
277
|
-
_v$
|
|
278
|
-
_v$
|
|
279
|
-
_v$
|
|
280
|
-
_v$
|
|
281
|
-
_v$
|
|
358
|
+
var _v$50 = styles().stateHeader, _v$51 = styles().stateTitle, _v$52 = styles().infoGrid, _v$53 = styles().infoLabel, _v$54 = styles().infoValueMono, _v$55 = styles().infoLabel, _v$56 = styles().infoValueMono, _v$57 = styles().infoLabel, _v$58 = styles().infoValueMono;
|
|
359
|
+
_v$50 !== _p$.e && className(_el$79, _p$.e = _v$50);
|
|
360
|
+
_v$51 !== _p$.t && className(_el$80, _p$.t = _v$51);
|
|
361
|
+
_v$52 !== _p$.a && className(_el$81, _p$.a = _v$52);
|
|
362
|
+
_v$53 !== _p$.o && className(_el$82, _p$.o = _v$53);
|
|
363
|
+
_v$54 !== _p$.i && className(_el$83, _p$.i = _v$54);
|
|
364
|
+
_v$55 !== _p$.n && className(_el$84, _p$.n = _v$55);
|
|
365
|
+
_v$56 !== _p$.s && className(_el$85, _p$.s = _v$56);
|
|
366
|
+
_v$57 !== _p$.h && className(_el$86, _p$.h = _v$57);
|
|
367
|
+
_v$58 !== _p$.r && className(_el$87, _p$.r = _v$58);
|
|
282
368
|
return _p$;
|
|
283
369
|
}, {
|
|
284
370
|
e: void 0,
|
|
@@ -291,49 +377,111 @@ function SequenceDetails(props) {
|
|
|
291
377
|
h: void 0,
|
|
292
378
|
r: void 0
|
|
293
379
|
});
|
|
294
|
-
return _el$
|
|
380
|
+
return _el$79;
|
|
295
381
|
})(), (() => {
|
|
296
|
-
var _el$
|
|
297
|
-
insert(_el$
|
|
382
|
+
var _el$88 = _tmpl$1(), _el$89 = _el$88.firstChild, _el$90 = _el$89.firstChild, _el$91 = _el$90.nextSibling, _el$92 = _el$91.nextSibling, _el$93 = _el$89.nextSibling, _el$94 = _el$93.firstChild, _el$95 = _el$93.nextSibling, _el$96 = _el$95.firstChild, _el$98 = _el$96.nextSibling.firstChild, _el$99 = _el$98.firstChild, _el$100 = _el$99.nextSibling, _el$101 = _el$98.nextSibling, _el$102 = _el$101.firstChild, _el$103 = _el$102.nextSibling, _el$104 = _el$101.nextSibling, _el$105 = _el$104.firstChild, _el$106 = _el$105.nextSibling, _el$107 = _el$106.firstChild, _el$108 = _el$104.nextSibling, _el$109 = _el$108.firstChild, _el$110 = _el$109.nextSibling, _el$111 = _el$108.nextSibling, _el$112 = _el$111.firstChild, _el$113 = _el$112.nextSibling, _el$114 = _el$111.nextSibling, _el$115 = _el$114.firstChild, _el$116 = _el$115.nextSibling, _el$117 = _el$114.nextSibling, _el$118 = _el$117.firstChild, _el$119 = _el$118.nextSibling;
|
|
383
|
+
insert(_el$91, createComponent(For, {
|
|
298
384
|
get each() {
|
|
299
|
-
return
|
|
385
|
+
return liveReg().sequence;
|
|
300
386
|
},
|
|
301
387
|
children: (step, i) => [createComponent(Show, {
|
|
302
388
|
get when() {
|
|
303
389
|
return i() > 0;
|
|
304
390
|
},
|
|
305
391
|
get children() {
|
|
306
|
-
var _el$
|
|
307
|
-
effect(() => className(_el$
|
|
308
|
-
return _el$
|
|
392
|
+
var _el$130 = _tmpl$11();
|
|
393
|
+
effect(() => className(_el$130, styles().keyBreakdownPlus));
|
|
394
|
+
return _el$130;
|
|
309
395
|
}
|
|
310
396
|
}), (() => {
|
|
311
|
-
var _el$
|
|
312
|
-
insert(_el$
|
|
313
|
-
effect(() => className(_el$
|
|
314
|
-
return _el$
|
|
397
|
+
var _el$131 = _tmpl$7();
|
|
398
|
+
insert(_el$131, () => props.formatForDisplay(step));
|
|
399
|
+
effect(() => className(_el$131, clsx(styles().keyCapLarge, i() < matchedSteps() && styles().keyCapLargeInProgress)));
|
|
400
|
+
return _el$131;
|
|
315
401
|
})()]
|
|
316
402
|
}));
|
|
317
|
-
insert(_el$
|
|
318
|
-
|
|
403
|
+
insert(_el$89, createComponent(For, {
|
|
404
|
+
get each() {
|
|
405
|
+
return liveReg().sequence;
|
|
406
|
+
},
|
|
407
|
+
children: (step, stepIdx) => {
|
|
408
|
+
const stepParsed = () => parseHotkey(step, sequenceCanonicalPlatform());
|
|
409
|
+
const stepRawParts = () => normalizeHotkey(step, sequenceCanonicalPlatform()).split("+");
|
|
410
|
+
return (() => {
|
|
411
|
+
var _el$132 = _tmpl$12(), _el$133 = _el$132.firstChild;
|
|
412
|
+
_el$133.firstChild;
|
|
413
|
+
var _el$135 = _el$133.nextSibling, _el$136 = _el$135.firstChild, _el$137 = _el$136.firstChild, _el$138 = _el$136.nextSibling, _el$139 = _el$138.nextSibling;
|
|
414
|
+
insert(_el$133, () => stepIdx() + 1, null);
|
|
415
|
+
insert(_el$137, createComponent(For, {
|
|
416
|
+
get each() {
|
|
417
|
+
return stepRawParts();
|
|
418
|
+
},
|
|
419
|
+
children: (part, i) => [createComponent(Show, {
|
|
420
|
+
get when() {
|
|
421
|
+
return i() > 0;
|
|
422
|
+
},
|
|
423
|
+
get children() {
|
|
424
|
+
var _el$140 = _tmpl$6();
|
|
425
|
+
effect(() => className(_el$140, styles().keyBreakdownPlus));
|
|
426
|
+
return _el$140;
|
|
427
|
+
}
|
|
428
|
+
}), (() => {
|
|
429
|
+
var _el$141 = _tmpl$7();
|
|
430
|
+
insert(_el$141, part);
|
|
431
|
+
effect(() => className(_el$141, styles().keyCapLarge));
|
|
432
|
+
return _el$141;
|
|
433
|
+
})()]
|
|
434
|
+
}));
|
|
435
|
+
insert(_el$139, createComponent(KeyBreakdownPlatformTable, {
|
|
436
|
+
getParsed: stepParsed,
|
|
437
|
+
getCanonicalPlatform: () => sequenceCanonicalPlatform(),
|
|
438
|
+
get styles() {
|
|
439
|
+
return props.styles;
|
|
440
|
+
}
|
|
441
|
+
}));
|
|
442
|
+
effect((_p$) => {
|
|
443
|
+
var _v$92 = styles().sequenceChordDetail, _v$93 = styles().keyBreakdownSubHeader, _v$94 = styles().keyBreakdownSplitRow, _v$95 = styles().keyBreakdownSplitLeft, _v$96 = styles().keyBreakdown, _v$97 = styles().keyBreakdownSplitArrow, _v$98 = styles().keyBreakdownSplitRight;
|
|
444
|
+
_v$92 !== _p$.e && className(_el$132, _p$.e = _v$92);
|
|
445
|
+
_v$93 !== _p$.t && className(_el$133, _p$.t = _v$93);
|
|
446
|
+
_v$94 !== _p$.a && className(_el$135, _p$.a = _v$94);
|
|
447
|
+
_v$95 !== _p$.o && className(_el$136, _p$.o = _v$95);
|
|
448
|
+
_v$96 !== _p$.i && className(_el$137, _p$.i = _v$96);
|
|
449
|
+
_v$97 !== _p$.n && className(_el$138, _p$.n = _v$97);
|
|
450
|
+
_v$98 !== _p$.s && className(_el$139, _p$.s = _v$98);
|
|
451
|
+
return _p$;
|
|
452
|
+
}, {
|
|
453
|
+
e: void 0,
|
|
454
|
+
t: void 0,
|
|
455
|
+
a: void 0,
|
|
456
|
+
o: void 0,
|
|
457
|
+
i: void 0,
|
|
458
|
+
n: void 0,
|
|
459
|
+
s: void 0
|
|
460
|
+
});
|
|
461
|
+
return _el$132;
|
|
462
|
+
})();
|
|
463
|
+
}
|
|
464
|
+
}), null);
|
|
465
|
+
insert(_el$93, createComponent(ActionButtons, { get registration() {
|
|
466
|
+
return liveReg();
|
|
319
467
|
} }), null);
|
|
320
|
-
insert(_el$
|
|
321
|
-
insert(_el$
|
|
322
|
-
insert(_el$
|
|
323
|
-
insert(_el$
|
|
324
|
-
insert(_el$
|
|
325
|
-
insert(_el$
|
|
326
|
-
insert(_el$
|
|
327
|
-
insert(_el$
|
|
468
|
+
insert(_el$100, () => String(liveReg().options.enabled !== false));
|
|
469
|
+
insert(_el$103, () => liveReg().options.eventType ?? "keydown");
|
|
470
|
+
insert(_el$106, () => liveReg().options.timeout ?? 1e3, _el$107);
|
|
471
|
+
insert(_el$110, () => String(!!liveReg().options.preventDefault));
|
|
472
|
+
insert(_el$113, () => String(!!liveReg().options.stopPropagation));
|
|
473
|
+
insert(_el$116, () => String(liveReg().options.ignoreInputs !== false));
|
|
474
|
+
insert(_el$119, conflictBehavior);
|
|
475
|
+
insert(_el$88, createComponent(Show, {
|
|
328
476
|
get when() {
|
|
329
477
|
return allConflicts().length > 0;
|
|
330
478
|
},
|
|
331
479
|
get children() {
|
|
332
|
-
var _el$
|
|
333
|
-
_el$
|
|
334
|
-
var _el$
|
|
335
|
-
insert(_el$
|
|
336
|
-
insert(_el$
|
|
480
|
+
var _el$120 = _tmpl$4(), _el$121 = _el$120.firstChild, _el$124 = _el$121.firstChild.nextSibling;
|
|
481
|
+
_el$124.nextSibling;
|
|
482
|
+
var _el$125 = _el$121.nextSibling;
|
|
483
|
+
insert(_el$121, () => allConflicts().length, _el$124);
|
|
484
|
+
insert(_el$125, createComponent(For, {
|
|
337
485
|
get each() {
|
|
338
486
|
return targetConflicts();
|
|
339
487
|
},
|
|
@@ -341,78 +489,79 @@ function SequenceDetails(props) {
|
|
|
341
489
|
const itemStyle = () => props.getConflictItemStyle(conflictBehavior(), true);
|
|
342
490
|
const label = () => props.getConflictLabel(conflictBehavior(), true);
|
|
343
491
|
return (() => {
|
|
344
|
-
var _el$
|
|
345
|
-
_el$
|
|
346
|
-
insert(_el$
|
|
347
|
-
insert(_el$
|
|
348
|
-
insert(_el$
|
|
349
|
-
insert(_el$
|
|
350
|
-
insert(_el$
|
|
351
|
-
effect(() => className(_el$
|
|
352
|
-
return _el$
|
|
492
|
+
var _el$142 = _tmpl$8(), _el$143 = _el$142.firstChild, _el$150 = _el$143.nextSibling.nextSibling, _el$151 = _el$150.nextSibling.nextSibling, _el$152 = _el$151.nextSibling.nextSibling;
|
|
493
|
+
_el$152.nextSibling;
|
|
494
|
+
insert(_el$143, label);
|
|
495
|
+
insert(_el$142, () => conflict.id, _el$150);
|
|
496
|
+
insert(_el$142, () => props.formatHotkeySequence(conflict.sequence), _el$151);
|
|
497
|
+
insert(_el$142, () => conflict.options.eventType ?? "keydown", _el$152);
|
|
498
|
+
insert(_el$142, () => props.getTargetDescription(conflict.target), null);
|
|
499
|
+
effect(() => className(_el$142, styles()[itemStyle()]));
|
|
500
|
+
return _el$142;
|
|
353
501
|
})();
|
|
354
502
|
}
|
|
355
503
|
}), null);
|
|
356
|
-
insert(_el$
|
|
504
|
+
insert(_el$125, createComponent(For, {
|
|
357
505
|
get each() {
|
|
358
506
|
return scopeConflicts();
|
|
359
507
|
},
|
|
360
508
|
children: (conflict) => (() => {
|
|
361
|
-
var _el$
|
|
362
|
-
_el$
|
|
363
|
-
insert(_el$
|
|
364
|
-
insert(_el$
|
|
365
|
-
insert(_el$
|
|
366
|
-
insert(_el$
|
|
367
|
-
effect(() => className(_el$
|
|
368
|
-
return _el$
|
|
509
|
+
var _el$153 = _tmpl$9(), _el$161 = _el$153.firstChild.nextSibling.nextSibling, _el$162 = _el$161.nextSibling.nextSibling, _el$163 = _el$162.nextSibling.nextSibling;
|
|
510
|
+
_el$163.nextSibling;
|
|
511
|
+
insert(_el$153, () => conflict.id, _el$161);
|
|
512
|
+
insert(_el$153, () => props.formatHotkeySequence(conflict.sequence), _el$162);
|
|
513
|
+
insert(_el$153, () => conflict.options.eventType ?? "keydown", _el$163);
|
|
514
|
+
insert(_el$153, () => props.getTargetDescription(conflict.target), null);
|
|
515
|
+
effect(() => className(_el$153, styles().conflictItemScope));
|
|
516
|
+
return _el$153;
|
|
369
517
|
})()
|
|
370
518
|
}), null);
|
|
371
519
|
effect((_p$) => {
|
|
372
|
-
var _v$
|
|
373
|
-
_v$
|
|
374
|
-
_v$
|
|
375
|
-
_v$
|
|
520
|
+
var _v$59 = styles().detailSection, _v$60 = styles().detailSectionHeader, _v$61 = styles().conflictList;
|
|
521
|
+
_v$59 !== _p$.e && className(_el$120, _p$.e = _v$59);
|
|
522
|
+
_v$60 !== _p$.t && className(_el$121, _p$.t = _v$60);
|
|
523
|
+
_v$61 !== _p$.a && className(_el$125, _p$.a = _v$61);
|
|
376
524
|
return _p$;
|
|
377
525
|
}, {
|
|
378
526
|
e: void 0,
|
|
379
527
|
t: void 0,
|
|
380
528
|
a: void 0
|
|
381
529
|
});
|
|
382
|
-
return _el$
|
|
530
|
+
return _el$120;
|
|
383
531
|
}
|
|
384
532
|
}), null);
|
|
385
533
|
effect((_p$) => {
|
|
386
|
-
var _v$
|
|
387
|
-
_v$
|
|
388
|
-
_v$
|
|
389
|
-
_v$
|
|
390
|
-
_v$
|
|
391
|
-
_v$
|
|
392
|
-
_v$
|
|
393
|
-
_v$
|
|
394
|
-
_v$
|
|
395
|
-
_v$
|
|
396
|
-
_v$
|
|
397
|
-
_v$
|
|
398
|
-
_v$
|
|
399
|
-
_v$
|
|
400
|
-
_v$
|
|
401
|
-
_v$
|
|
402
|
-
_v$
|
|
403
|
-
_v$
|
|
404
|
-
_v$
|
|
405
|
-
_v$
|
|
406
|
-
_v$
|
|
407
|
-
_v$
|
|
408
|
-
_v$
|
|
409
|
-
_v$
|
|
410
|
-
_v$
|
|
411
|
-
_v$
|
|
412
|
-
_v$
|
|
413
|
-
_v$
|
|
414
|
-
_v$
|
|
415
|
-
_v$
|
|
534
|
+
var _v$62 = styles().detailsGrid, _v$63 = styles().detailSection, _v$64 = styles().detailSectionHeader, _v$65 = styles().keyBreakdown, _v$66 = styles().keyBreakdownSubHeader, _v$67 = styles().detailSection, _v$68 = styles().detailSectionHeader, _v$69 = styles().detailSection, _v$70 = styles().detailSectionHeader, _v$71 = styles().optionRow, _v$72 = styles().optionLabel, _v$73 = liveReg().options.enabled !== false ? styles().optionValueTrue : styles().optionValueFalse, _v$74 = styles().optionRow, _v$75 = styles().optionLabel, _v$76 = styles().optionValue, _v$77 = styles().optionRow, _v$78 = styles().optionLabel, _v$79 = styles().optionValue, _v$80 = styles().optionRow, _v$81 = styles().optionLabel, _v$82 = liveReg().options.preventDefault ? styles().optionValueTrue : styles().optionValueFalse, _v$83 = styles().optionRow, _v$84 = styles().optionLabel, _v$85 = liveReg().options.stopPropagation ? styles().optionValueTrue : styles().optionValueFalse, _v$86 = styles().optionRow, _v$87 = styles().optionLabel, _v$88 = liveReg().options.ignoreInputs !== false ? styles().optionValueTrue : styles().optionValueFalse, _v$89 = styles().optionRow, _v$90 = styles().optionLabel, _v$91 = styles().optionValue;
|
|
535
|
+
_v$62 !== _p$.e && className(_el$88, _p$.e = _v$62);
|
|
536
|
+
_v$63 !== _p$.t && className(_el$89, _p$.t = _v$63);
|
|
537
|
+
_v$64 !== _p$.a && className(_el$90, _p$.a = _v$64);
|
|
538
|
+
_v$65 !== _p$.o && className(_el$91, _p$.o = _v$65);
|
|
539
|
+
_v$66 !== _p$.i && className(_el$92, _p$.i = _v$66);
|
|
540
|
+
_v$67 !== _p$.n && className(_el$93, _p$.n = _v$67);
|
|
541
|
+
_v$68 !== _p$.s && className(_el$94, _p$.s = _v$68);
|
|
542
|
+
_v$69 !== _p$.h && className(_el$95, _p$.h = _v$69);
|
|
543
|
+
_v$70 !== _p$.r && className(_el$96, _p$.r = _v$70);
|
|
544
|
+
_v$71 !== _p$.d && className(_el$98, _p$.d = _v$71);
|
|
545
|
+
_v$72 !== _p$.l && className(_el$99, _p$.l = _v$72);
|
|
546
|
+
_v$73 !== _p$.u && className(_el$100, _p$.u = _v$73);
|
|
547
|
+
_v$74 !== _p$.c && className(_el$101, _p$.c = _v$74);
|
|
548
|
+
_v$75 !== _p$.w && className(_el$102, _p$.w = _v$75);
|
|
549
|
+
_v$76 !== _p$.m && className(_el$103, _p$.m = _v$76);
|
|
550
|
+
_v$77 !== _p$.f && className(_el$104, _p$.f = _v$77);
|
|
551
|
+
_v$78 !== _p$.y && className(_el$105, _p$.y = _v$78);
|
|
552
|
+
_v$79 !== _p$.g && className(_el$106, _p$.g = _v$79);
|
|
553
|
+
_v$80 !== _p$.p && className(_el$108, _p$.p = _v$80);
|
|
554
|
+
_v$81 !== _p$.b && className(_el$109, _p$.b = _v$81);
|
|
555
|
+
_v$82 !== _p$.T && className(_el$110, _p$.T = _v$82);
|
|
556
|
+
_v$83 !== _p$.A && className(_el$111, _p$.A = _v$83);
|
|
557
|
+
_v$84 !== _p$.O && className(_el$112, _p$.O = _v$84);
|
|
558
|
+
_v$85 !== _p$.I && className(_el$113, _p$.I = _v$85);
|
|
559
|
+
_v$86 !== _p$.S && className(_el$114, _p$.S = _v$86);
|
|
560
|
+
_v$87 !== _p$.W && className(_el$115, _p$.W = _v$87);
|
|
561
|
+
_v$88 !== _p$.C && className(_el$116, _p$.C = _v$88);
|
|
562
|
+
_v$89 !== _p$.B && className(_el$117, _p$.B = _v$89);
|
|
563
|
+
_v$90 !== _p$.v && className(_el$118, _p$.v = _v$90);
|
|
564
|
+
_v$91 !== _p$.k && className(_el$119, _p$.k = _v$91);
|
|
416
565
|
return _p$;
|
|
417
566
|
}, {
|
|
418
567
|
e: void 0,
|
|
@@ -443,25 +592,26 @@ function SequenceDetails(props) {
|
|
|
443
592
|
W: void 0,
|
|
444
593
|
C: void 0,
|
|
445
594
|
B: void 0,
|
|
446
|
-
v: void 0
|
|
595
|
+
v: void 0,
|
|
596
|
+
k: void 0
|
|
447
597
|
});
|
|
448
|
-
return _el$
|
|
598
|
+
return _el$88;
|
|
449
599
|
})()];
|
|
450
600
|
}
|
|
451
601
|
function DetailsPanel(props) {
|
|
452
602
|
const styles = useStyles();
|
|
453
603
|
const state = useHotkeysDevtoolsState();
|
|
454
604
|
return (() => {
|
|
455
|
-
var _el$
|
|
456
|
-
insert(_el$
|
|
605
|
+
var _el$164 = _tmpl$();
|
|
606
|
+
insert(_el$164, createComponent(Show, {
|
|
457
607
|
get when() {
|
|
458
608
|
return props.selectedRegistration();
|
|
459
609
|
},
|
|
460
610
|
get fallback() {
|
|
461
611
|
return (() => {
|
|
462
|
-
var _el$
|
|
463
|
-
effect(() => className(_el$
|
|
464
|
-
return _el$
|
|
612
|
+
var _el$165 = _tmpl$13();
|
|
613
|
+
effect(() => className(_el$165, styles().noSelection));
|
|
614
|
+
return _el$165;
|
|
465
615
|
})();
|
|
466
616
|
},
|
|
467
617
|
children: (reg) => createComponent(Show, {
|
|
@@ -501,8 +651,8 @@ function DetailsPanel(props) {
|
|
|
501
651
|
}
|
|
502
652
|
})
|
|
503
653
|
}));
|
|
504
|
-
effect(() => className(_el$
|
|
505
|
-
return _el$
|
|
654
|
+
effect(() => className(_el$164, styles().stateDetails));
|
|
655
|
+
return _el$164;
|
|
506
656
|
})();
|
|
507
657
|
}
|
|
508
658
|
|