@tanstack/hotkeys-devtools 0.9.0 → 1.1.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 +15 -1
- package/dist/HotkeysContextProvider.js +1 -2
- package/dist/_registrations.js +47 -0
- package/dist/components/ActionButtons.js +2 -3
- package/dist/components/DetailsPanel.js +317 -325
- package/dist/components/HeldKeysTopbar.js +5 -3
- package/dist/components/HotkeyList.js +167 -196
- package/dist/components/Shell.js +5 -4
- package/dist/components/index.js +1 -2
- package/dist/core.d.ts +3 -6
- package/dist/core.js +1 -2
- package/dist/index.d.ts +2 -4
- package/dist/index.js +1 -2
- package/dist/sequence-progress.js +1 -2
- package/dist/styles/tokens.js +1 -2
- package/dist/styles/use-styles.js +5 -4
- package/package.json +11 -11
- package/dist/HotkeysContextProvider.js.map +0 -1
- package/dist/components/ActionButtons.js.map +0 -1
- package/dist/components/DetailsPanel.js.map +0 -1
- package/dist/components/HeldKeysTopbar.js.map +0 -1
- package/dist/components/HotkeyList.js.map +0 -1
- package/dist/components/Shell.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/core.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/sequence-progress.js.map +0 -1
- package/dist/styles/tokens.js.map +0 -1
- package/dist/styles/use-styles.js.map +0 -1
- package/src/HotkeysContextProvider.tsx +0 -130
- package/src/components/ActionButtons.tsx +0 -38
- package/src/components/DetailsPanel.tsx +0 -829
- package/src/components/HeldKeysTopbar.tsx +0 -46
- package/src/components/HotkeyList.tsx +0 -565
- package/src/components/Shell.tsx +0 -171
- package/src/components/index.tsx +0 -19
- package/src/core.tsx +0 -11
- package/src/index.ts +0 -11
- package/src/production.ts +0 -5
- package/src/sequence-progress.ts +0 -29
- package/src/styles/tokens.ts +0 -305
- package/src/styles/use-styles.ts +0 -687
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
import { effectiveSequenceMatchedSteps } from "../sequence-progress.js";
|
|
2
2
|
import { useHotkeysDevtoolsState } from "../HotkeysContextProvider.js";
|
|
3
3
|
import { useStyles } from "../styles/use-styles.js";
|
|
4
|
+
import { formatRegistration, getBindingKind, useRegistrationConflicts } from "../_registrations.js";
|
|
4
5
|
import { ActionButtons } from "./ActionButtons.js";
|
|
5
6
|
import { className, createComponent, effect, insert, memo, template } from "solid-js/web";
|
|
6
7
|
import { For, Show, createMemo } from "solid-js";
|
|
7
|
-
import { detectPlatform, formatForDisplay,
|
|
8
|
+
import { detectPlatform, formatForDisplay, normalizeHotkeyFromParsed, parseHotkey } from "@tanstack/hotkeys";
|
|
8
9
|
import clsx from "clsx";
|
|
9
10
|
|
|
10
11
|
//#region src/components/DetailsPanel.tsx
|
|
11
|
-
var _tmpl$ =
|
|
12
|
+
var _tmpl$ = /*#__PURE__*/ template(`<div>`);
|
|
13
|
+
var _tmpl$2 = /*#__PURE__*/ template(`<div><span></span><span>`);
|
|
14
|
+
var _tmpl$3 = /*#__PURE__*/ template(`<div><div></div><div><div>ID</div><div></div><div>Matches</div><div></div><div>Raw</div><div></div><div>Target</div><div>`);
|
|
15
|
+
var _tmpl$4 = /*#__PURE__*/ template(`<div><div>Conflicts (<!>)</div><div>`);
|
|
16
|
+
var _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>Meta</div><div><div><span>name</span><span></span></div><div><span>description</span><span></span></div></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>`);
|
|
17
|
+
var _tmpl$6 = /*#__PURE__*/ template(`<span>+`);
|
|
18
|
+
var _tmpl$7 = /*#__PURE__*/ template(`<span>`);
|
|
19
|
+
var _tmpl$8 = /*#__PURE__*/ template(`<div><span>overlap</span> <!>: <!> (<!>) on `);
|
|
20
|
+
var _tmpl$9 = /*#__PURE__*/ template(`<div><span>scope</span> <!>: <!> (<!>) on `);
|
|
21
|
+
var _tmpl$0 = /*#__PURE__*/ template(`<div><div></div><div><div>ID</div><div></div><div>Matches</div><div></div><div>Raw</div><div></div><div>Sequence</div><div></div><div>Target</div><div>`);
|
|
22
|
+
var _tmpl$1 = /*#__PURE__*/ template(`<div><div><div>Key Breakdown</div><div></div><div>Each chord</div></div><div><div>Actions</div></div><div><div>Meta</div><div><div><span>name</span><span></span></div><div><span>description</span><span></span></div></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>`);
|
|
23
|
+
var _tmpl$10 = /*#__PURE__*/ template(`<span><span>`);
|
|
24
|
+
var _tmpl$11 = /*#__PURE__*/ template(`<span>→`);
|
|
25
|
+
var _tmpl$12 = /*#__PURE__*/ template(`<div><div>Step <!> — </div><div><div><div></div></div><span aria-hidden=true>-></span><div>`);
|
|
26
|
+
var _tmpl$13 = /*#__PURE__*/ template(`<div>Select a hotkey or sequence from the list to view its details`);
|
|
12
27
|
const PLATFORM_ROWS = [
|
|
13
28
|
{
|
|
14
29
|
id: "mac",
|
|
@@ -51,9 +66,6 @@ function KeyBreakdownPlatformTable(props) {
|
|
|
51
66
|
return _el$;
|
|
52
67
|
})();
|
|
53
68
|
}
|
|
54
|
-
function sequenceKey(sequence) {
|
|
55
|
-
return sequence.join("|");
|
|
56
|
-
}
|
|
57
69
|
function isSequenceRegistration(reg) {
|
|
58
70
|
return "sequence" in reg && Array.isArray(reg.sequence);
|
|
59
71
|
}
|
|
@@ -63,49 +75,29 @@ function getTargetDescription(target) {
|
|
|
63
75
|
if (target instanceof HTMLElement) return `${target.tagName.toLowerCase()}${target.id ? `#${target.id}` : ""}${target.className ? `.${target.className.split(" ").join(".")}` : ""}`;
|
|
64
76
|
return "element";
|
|
65
77
|
}
|
|
66
|
-
function findTargetConflicts(registration, all) {
|
|
67
|
-
return all.filter((other) => other.id !== registration.id && other.hotkey === registration.hotkey && other.options.eventType === registration.options.eventType && other.target === registration.target);
|
|
68
|
-
}
|
|
69
|
-
function findScopeConflicts(registration, all) {
|
|
70
|
-
return all.filter((other) => other.id !== registration.id && other.hotkey === registration.hotkey && other.options.eventType === registration.options.eventType && other.target !== registration.target);
|
|
71
|
-
}
|
|
72
|
-
function findSequenceTargetConflicts(registration, all) {
|
|
73
|
-
return all.filter((other) => other.id !== registration.id && sequenceKey(other.sequence) === sequenceKey(registration.sequence) && other.options.eventType === registration.options.eventType && other.target === registration.target);
|
|
74
|
-
}
|
|
75
|
-
function findSequenceScopeConflicts(registration, all) {
|
|
76
|
-
return all.filter((other) => other.id !== registration.id && sequenceKey(other.sequence) === sequenceKey(registration.sequence) && other.options.eventType === registration.options.eventType && other.target !== registration.target);
|
|
77
|
-
}
|
|
78
|
-
function getConflictItemStyle(behavior, isSameTarget) {
|
|
79
|
-
if (!isSameTarget) return "conflictItemScope";
|
|
80
|
-
if (behavior === "allow") return "conflictItemAllow";
|
|
81
|
-
if (behavior === "error") return "conflictItemError";
|
|
82
|
-
return "conflictItem";
|
|
83
|
-
}
|
|
84
|
-
function getConflictLabel(behavior, isSameTarget) {
|
|
85
|
-
if (!isSameTarget) return "scope";
|
|
86
|
-
if (behavior === "allow") return "allowed";
|
|
87
|
-
if (behavior === "error") return "error";
|
|
88
|
-
if (behavior === "replace") return "replaced";
|
|
89
|
-
return "warning";
|
|
90
|
-
}
|
|
91
78
|
function HotkeyDetails(props) {
|
|
92
79
|
const reg = () => props.registration;
|
|
93
80
|
const parsed = () => reg().parsedHotkey;
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
const
|
|
81
|
+
const conflicts = useRegistrationConflicts(reg);
|
|
82
|
+
const targetConflicts = () => conflicts().overlapping;
|
|
83
|
+
const scopeConflicts = () => conflicts().separate;
|
|
84
|
+
const allConflicts = () => [...targetConflicts(), ...scopeConflicts()];
|
|
97
85
|
const conflictBehavior = () => reg().options.conflictBehavior ?? "warn";
|
|
98
86
|
const registrationPlatform = () => reg().options.platform ?? detectPlatform();
|
|
99
|
-
const
|
|
87
|
+
const keyParts = createMemo(() => formatForDisplay(parsed(), {
|
|
88
|
+
platform: registrationPlatform(),
|
|
89
|
+
parts: true
|
|
90
|
+
}));
|
|
100
91
|
const styles = props.styles;
|
|
101
92
|
return [(() => {
|
|
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, () =>
|
|
93
|
+
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, _el$12 = _el$11.nextSibling, _el$13 = _el$12.nextSibling;
|
|
94
|
+
insert(_el$6, () => formatRegistration(reg()));
|
|
104
95
|
insert(_el$9, () => reg().id);
|
|
105
|
-
insert(_el$1, () => reg()
|
|
106
|
-
insert(_el$11, () =>
|
|
96
|
+
insert(_el$1, () => getBindingKind(reg()));
|
|
97
|
+
insert(_el$11, () => reg().hotkey);
|
|
98
|
+
insert(_el$13, () => props.getTargetDescription(reg().target));
|
|
107
99
|
effect((_p$) => {
|
|
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;
|
|
100
|
+
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, _v$11 = styles().infoLabel, _v$12 = styles().infoValueMono;
|
|
109
101
|
_v$4 !== _p$.e && className(_el$5, _p$.e = _v$4);
|
|
110
102
|
_v$5 !== _p$.t && className(_el$6, _p$.t = _v$5);
|
|
111
103
|
_v$6 !== _p$.a && className(_el$7, _p$.a = _v$6);
|
|
@@ -115,6 +107,8 @@ function HotkeyDetails(props) {
|
|
|
115
107
|
_v$0 !== _p$.s && className(_el$1, _p$.s = _v$0);
|
|
116
108
|
_v$1 !== _p$.h && className(_el$10, _p$.h = _v$1);
|
|
117
109
|
_v$10 !== _p$.r && className(_el$11, _p$.r = _v$10);
|
|
110
|
+
_v$11 !== _p$.d && className(_el$12, _p$.d = _v$11);
|
|
111
|
+
_v$12 !== _p$.l && className(_el$13, _p$.l = _v$12);
|
|
118
112
|
return _p$;
|
|
119
113
|
}, {
|
|
120
114
|
e: void 0,
|
|
@@ -125,44 +119,46 @@ function HotkeyDetails(props) {
|
|
|
125
119
|
n: void 0,
|
|
126
120
|
s: void 0,
|
|
127
121
|
h: void 0,
|
|
128
|
-
r: void 0
|
|
122
|
+
r: void 0,
|
|
123
|
+
d: void 0,
|
|
124
|
+
l: void 0
|
|
129
125
|
});
|
|
130
126
|
return _el$5;
|
|
131
127
|
})(), (() => {
|
|
132
|
-
var _el$
|
|
133
|
-
insert(_el$
|
|
128
|
+
var _el$14 = _tmpl$5(), _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$17 = _el$16.nextSibling, _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$21 = _el$20.nextSibling, _el$22 = _el$15.nextSibling, _el$23 = _el$22.firstChild, _el$24 = _el$22.nextSibling, _el$25 = _el$24.firstChild, _el$26 = _el$25.nextSibling, _el$27 = _el$26.firstChild, _el$28 = _el$27.firstChild, _el$29 = _el$28.nextSibling, _el$30 = _el$27.nextSibling, _el$31 = _el$30.firstChild, _el$32 = _el$31.nextSibling, _el$33 = _el$24.nextSibling, _el$34 = _el$33.firstChild, _el$36 = _el$34.nextSibling.firstChild, _el$37 = _el$36.firstChild, _el$38 = _el$37.nextSibling, _el$39 = _el$36.nextSibling, _el$40 = _el$39.firstChild, _el$41 = _el$40.nextSibling, _el$42 = _el$39.nextSibling, _el$43 = _el$42.firstChild, _el$44 = _el$43.nextSibling, _el$45 = _el$42.nextSibling, _el$46 = _el$45.firstChild, _el$47 = _el$46.nextSibling, _el$48 = _el$45.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$49.nextSibling, _el$51 = _el$48.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$52.nextSibling, _el$54 = _el$51.nextSibling, _el$55 = _el$54.firstChild, _el$56 = _el$55.nextSibling, _el$57 = _el$54.nextSibling, _el$58 = _el$57.firstChild, _el$59 = _el$58.nextSibling;
|
|
129
|
+
insert(_el$19, createComponent(For, {
|
|
134
130
|
get each() {
|
|
135
|
-
return
|
|
131
|
+
return keyParts();
|
|
136
132
|
},
|
|
137
133
|
children: (part, i) => [createComponent(Show, {
|
|
138
134
|
get when() {
|
|
139
135
|
return i() > 0;
|
|
140
136
|
},
|
|
141
137
|
get children() {
|
|
142
|
-
var _el$
|
|
143
|
-
effect(() => className(_el$
|
|
144
|
-
return _el$
|
|
138
|
+
var _el$66 = _tmpl$6();
|
|
139
|
+
effect(() => className(_el$66, styles().keyBreakdownPlus));
|
|
140
|
+
return _el$66;
|
|
145
141
|
}
|
|
146
142
|
}), (() => {
|
|
147
|
-
var _el$
|
|
148
|
-
insert(_el$
|
|
149
|
-
effect(() => className(_el$
|
|
150
|
-
return _el$
|
|
143
|
+
var _el$67 = _tmpl$7();
|
|
144
|
+
insert(_el$67, part);
|
|
145
|
+
effect(() => className(_el$67, styles().keyCapLarge));
|
|
146
|
+
return _el$67;
|
|
151
147
|
})()]
|
|
152
148
|
}));
|
|
153
|
-
insert(_el$
|
|
149
|
+
insert(_el$21, createComponent(KeyBreakdownPlatformTable, {
|
|
154
150
|
getParsed: () => parsed(),
|
|
155
151
|
getCanonicalPlatform: registrationPlatform,
|
|
156
152
|
get styles() {
|
|
157
153
|
return props.styles;
|
|
158
154
|
}
|
|
159
155
|
}));
|
|
160
|
-
insert(_el$
|
|
156
|
+
insert(_el$22, createComponent(ActionButtons, { get registration() {
|
|
161
157
|
return reg();
|
|
162
158
|
} }), null);
|
|
163
|
-
insert(_el$
|
|
164
|
-
insert(_el$
|
|
165
|
-
insert(_el$
|
|
159
|
+
insert(_el$29, () => reg().options.meta?.name ?? "—");
|
|
160
|
+
insert(_el$32, () => reg().options.meta?.description ?? "—");
|
|
161
|
+
insert(_el$26, createComponent(Show, {
|
|
166
162
|
get when() {
|
|
167
163
|
return memo(() => !!reg().options.meta)() && Object.keys(reg().options.meta).filter((k) => k !== "name" && k !== "description").length > 0;
|
|
168
164
|
},
|
|
@@ -172,137 +168,134 @@ function HotkeyDetails(props) {
|
|
|
172
168
|
return Object.entries(reg().options.meta ?? {}).filter(([k]) => k !== "name" && k !== "description");
|
|
173
169
|
},
|
|
174
170
|
children: ([key, value]) => (() => {
|
|
175
|
-
var _el$
|
|
176
|
-
insert(_el$
|
|
177
|
-
insert(_el$
|
|
171
|
+
var _el$68 = _tmpl$2(), _el$69 = _el$68.firstChild, _el$70 = _el$69.nextSibling;
|
|
172
|
+
insert(_el$69, key);
|
|
173
|
+
insert(_el$70, () => String(value));
|
|
178
174
|
effect((_p$) => {
|
|
179
|
-
var _v$
|
|
180
|
-
_v$
|
|
181
|
-
_v$
|
|
182
|
-
_v$
|
|
175
|
+
var _v$60 = styles().optionRow, _v$61 = styles().optionLabel, _v$62 = styles().optionValue;
|
|
176
|
+
_v$60 !== _p$.e && className(_el$68, _p$.e = _v$60);
|
|
177
|
+
_v$61 !== _p$.t && className(_el$69, _p$.t = _v$61);
|
|
178
|
+
_v$62 !== _p$.a && className(_el$70, _p$.a = _v$62);
|
|
183
179
|
return _p$;
|
|
184
180
|
}, {
|
|
185
181
|
e: void 0,
|
|
186
182
|
t: void 0,
|
|
187
183
|
a: void 0
|
|
188
184
|
});
|
|
189
|
-
return _el$
|
|
185
|
+
return _el$68;
|
|
190
186
|
})()
|
|
191
187
|
});
|
|
192
188
|
}
|
|
193
189
|
}), null);
|
|
194
|
-
insert(_el$
|
|
195
|
-
insert(_el$
|
|
196
|
-
insert(_el$
|
|
197
|
-
insert(_el$
|
|
198
|
-
insert(_el$
|
|
199
|
-
insert(_el$
|
|
200
|
-
insert(_el$
|
|
201
|
-
insert(_el$
|
|
202
|
-
insert(_el$
|
|
190
|
+
insert(_el$38, () => String(reg().options.enabled !== false));
|
|
191
|
+
insert(_el$41, () => reg().options.eventType ?? "keydown");
|
|
192
|
+
insert(_el$44, () => String(!!reg().options.preventDefault));
|
|
193
|
+
insert(_el$47, () => String(!!reg().options.stopPropagation));
|
|
194
|
+
insert(_el$50, () => String(reg().options.ignoreInputs !== false));
|
|
195
|
+
insert(_el$53, () => String(!!reg().options.requireReset));
|
|
196
|
+
insert(_el$56, conflictBehavior);
|
|
197
|
+
insert(_el$59, () => String(reg().hasFired));
|
|
198
|
+
insert(_el$14, createComponent(Show, {
|
|
203
199
|
get when() {
|
|
204
200
|
return allConflicts().length > 0;
|
|
205
201
|
},
|
|
206
202
|
get children() {
|
|
207
|
-
var _el$
|
|
208
|
-
_el$
|
|
209
|
-
var _el$
|
|
210
|
-
insert(_el$
|
|
211
|
-
insert(_el$
|
|
203
|
+
var _el$60 = _tmpl$4(), _el$61 = _el$60.firstChild, _el$64 = _el$61.firstChild.nextSibling;
|
|
204
|
+
_el$64.nextSibling;
|
|
205
|
+
var _el$65 = _el$61.nextSibling;
|
|
206
|
+
insert(_el$61, () => allConflicts().length, _el$64);
|
|
207
|
+
insert(_el$65, createComponent(For, {
|
|
212
208
|
get each() {
|
|
213
209
|
return targetConflicts();
|
|
214
210
|
},
|
|
215
211
|
children: (conflict) => {
|
|
216
|
-
const itemStyle = () => props.getConflictItemStyle(conflictBehavior(), true);
|
|
217
|
-
const label = () => props.getConflictLabel(conflictBehavior(), true);
|
|
218
212
|
return (() => {
|
|
219
|
-
var _el$
|
|
220
|
-
_el$
|
|
221
|
-
insert(_el$
|
|
222
|
-
insert(_el$
|
|
223
|
-
insert(_el$
|
|
224
|
-
insert(_el$
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
return _el$69;
|
|
213
|
+
var _el$71 = _tmpl$8(), _el$79 = _el$71.firstChild.nextSibling.nextSibling, _el$80 = _el$79.nextSibling.nextSibling, _el$81 = _el$80.nextSibling.nextSibling;
|
|
214
|
+
_el$81.nextSibling;
|
|
215
|
+
insert(_el$71, () => conflict.id, _el$79);
|
|
216
|
+
insert(_el$71, () => formatRegistration(conflict), _el$80);
|
|
217
|
+
insert(_el$71, () => conflict.options.eventType ?? "keydown", _el$81);
|
|
218
|
+
insert(_el$71, () => props.getTargetDescription(conflict.target), null);
|
|
219
|
+
effect(() => className(_el$71, styles().conflictItem));
|
|
220
|
+
return _el$71;
|
|
228
221
|
})();
|
|
229
222
|
}
|
|
230
223
|
}), null);
|
|
231
|
-
insert(_el$
|
|
224
|
+
insert(_el$65, createComponent(For, {
|
|
232
225
|
get each() {
|
|
233
226
|
return scopeConflicts();
|
|
234
227
|
},
|
|
235
228
|
children: (conflict) => (() => {
|
|
236
|
-
var _el$
|
|
237
|
-
_el$
|
|
238
|
-
insert(_el$
|
|
239
|
-
insert(_el$
|
|
240
|
-
insert(_el$
|
|
241
|
-
insert(_el$
|
|
242
|
-
effect(() => className(_el$
|
|
243
|
-
return _el$
|
|
229
|
+
var _el$82 = _tmpl$9(), _el$90 = _el$82.firstChild.nextSibling.nextSibling, _el$91 = _el$90.nextSibling.nextSibling, _el$92 = _el$91.nextSibling.nextSibling;
|
|
230
|
+
_el$92.nextSibling;
|
|
231
|
+
insert(_el$82, () => conflict.id, _el$90);
|
|
232
|
+
insert(_el$82, () => formatRegistration(conflict), _el$91);
|
|
233
|
+
insert(_el$82, () => conflict.options.eventType ?? "keydown", _el$92);
|
|
234
|
+
insert(_el$82, () => props.getTargetDescription(conflict.target), null);
|
|
235
|
+
effect(() => className(_el$82, styles().conflictItemScope));
|
|
236
|
+
return _el$82;
|
|
244
237
|
})()
|
|
245
238
|
}), null);
|
|
246
239
|
effect((_p$) => {
|
|
247
|
-
var _v$
|
|
248
|
-
_v$
|
|
249
|
-
_v$
|
|
250
|
-
_v$
|
|
240
|
+
var _v$13 = styles().detailSection, _v$14 = styles().detailSectionHeader, _v$15 = styles().conflictList;
|
|
241
|
+
_v$13 !== _p$.e && className(_el$60, _p$.e = _v$13);
|
|
242
|
+
_v$14 !== _p$.t && className(_el$61, _p$.t = _v$14);
|
|
243
|
+
_v$15 !== _p$.a && className(_el$65, _p$.a = _v$15);
|
|
251
244
|
return _p$;
|
|
252
245
|
}, {
|
|
253
246
|
e: void 0,
|
|
254
247
|
t: void 0,
|
|
255
248
|
a: void 0
|
|
256
249
|
});
|
|
257
|
-
return _el$
|
|
250
|
+
return _el$60;
|
|
258
251
|
}
|
|
259
252
|
}), null);
|
|
260
253
|
effect((_p$) => {
|
|
261
|
-
var _v$
|
|
262
|
-
_v$
|
|
263
|
-
_v$
|
|
264
|
-
_v$
|
|
265
|
-
_v$
|
|
266
|
-
_v$
|
|
267
|
-
_v$
|
|
268
|
-
_v$
|
|
269
|
-
_v$
|
|
270
|
-
_v$
|
|
271
|
-
_v$
|
|
272
|
-
_v$
|
|
273
|
-
_v$
|
|
274
|
-
_v$
|
|
275
|
-
_v$
|
|
276
|
-
_v$
|
|
277
|
-
_v$
|
|
278
|
-
_v$
|
|
279
|
-
_v$
|
|
280
|
-
_v$
|
|
281
|
-
_v$
|
|
282
|
-
_v$
|
|
283
|
-
_v$
|
|
284
|
-
_v$
|
|
285
|
-
_v$
|
|
286
|
-
_v$
|
|
287
|
-
_v$
|
|
288
|
-
_v$
|
|
289
|
-
_v$
|
|
290
|
-
_v$
|
|
291
|
-
_v$
|
|
292
|
-
_v$
|
|
293
|
-
_v$
|
|
294
|
-
_v$
|
|
295
|
-
_v$
|
|
296
|
-
_v$
|
|
297
|
-
_v$
|
|
298
|
-
_v$
|
|
299
|
-
_v$
|
|
300
|
-
_v$
|
|
301
|
-
_v$
|
|
302
|
-
_v$
|
|
303
|
-
_v$
|
|
304
|
-
_v$
|
|
305
|
-
_v$
|
|
254
|
+
var _v$16 = styles().detailsGrid, _v$17 = styles().detailSection, _v$18 = styles().detailSectionHeader, _v$19 = styles().keyBreakdownSplitRow, _v$20 = styles().keyBreakdownSplitLeft, _v$21 = styles().keyBreakdown, _v$22 = styles().keyBreakdownSplitArrow, _v$23 = styles().keyBreakdownSplitRight, _v$24 = styles().detailSection, _v$25 = styles().detailSectionHeader, _v$26 = styles().detailSection, _v$27 = styles().detailSectionHeader, _v$28 = styles().optionRow, _v$29 = styles().optionLabel, _v$30 = styles().optionValue, _v$31 = styles().optionRow, _v$32 = styles().optionLabel, _v$33 = styles().optionValue, _v$34 = styles().detailSection, _v$35 = styles().detailSectionHeader, _v$36 = styles().optionRow, _v$37 = styles().optionLabel, _v$38 = reg().options.enabled !== false ? styles().optionValueTrue : styles().optionValueFalse, _v$39 = styles().optionRow, _v$40 = styles().optionLabel, _v$41 = styles().optionValue, _v$42 = styles().optionRow, _v$43 = styles().optionLabel, _v$44 = reg().options.preventDefault ? styles().optionValueTrue : styles().optionValueFalse, _v$45 = styles().optionRow, _v$46 = styles().optionLabel, _v$47 = reg().options.stopPropagation ? styles().optionValueTrue : styles().optionValueFalse, _v$48 = styles().optionRow, _v$49 = styles().optionLabel, _v$50 = reg().options.ignoreInputs !== false ? styles().optionValueTrue : styles().optionValueFalse, _v$51 = styles().optionRow, _v$52 = styles().optionLabel, _v$53 = reg().options.requireReset ? styles().optionValueTrue : styles().optionValueFalse, _v$54 = styles().optionRow, _v$55 = styles().optionLabel, _v$56 = styles().optionValue, _v$57 = styles().optionRow, _v$58 = styles().optionLabel, _v$59 = reg().hasFired ? styles().optionValueTrue : styles().optionValueFalse;
|
|
255
|
+
_v$16 !== _p$.e && className(_el$14, _p$.e = _v$16);
|
|
256
|
+
_v$17 !== _p$.t && className(_el$15, _p$.t = _v$17);
|
|
257
|
+
_v$18 !== _p$.a && className(_el$16, _p$.a = _v$18);
|
|
258
|
+
_v$19 !== _p$.o && className(_el$17, _p$.o = _v$19);
|
|
259
|
+
_v$20 !== _p$.i && className(_el$18, _p$.i = _v$20);
|
|
260
|
+
_v$21 !== _p$.n && className(_el$19, _p$.n = _v$21);
|
|
261
|
+
_v$22 !== _p$.s && className(_el$20, _p$.s = _v$22);
|
|
262
|
+
_v$23 !== _p$.h && className(_el$21, _p$.h = _v$23);
|
|
263
|
+
_v$24 !== _p$.r && className(_el$22, _p$.r = _v$24);
|
|
264
|
+
_v$25 !== _p$.d && className(_el$23, _p$.d = _v$25);
|
|
265
|
+
_v$26 !== _p$.l && className(_el$24, _p$.l = _v$26);
|
|
266
|
+
_v$27 !== _p$.u && className(_el$25, _p$.u = _v$27);
|
|
267
|
+
_v$28 !== _p$.c && className(_el$27, _p$.c = _v$28);
|
|
268
|
+
_v$29 !== _p$.w && className(_el$28, _p$.w = _v$29);
|
|
269
|
+
_v$30 !== _p$.m && className(_el$29, _p$.m = _v$30);
|
|
270
|
+
_v$31 !== _p$.f && className(_el$30, _p$.f = _v$31);
|
|
271
|
+
_v$32 !== _p$.y && className(_el$31, _p$.y = _v$32);
|
|
272
|
+
_v$33 !== _p$.g && className(_el$32, _p$.g = _v$33);
|
|
273
|
+
_v$34 !== _p$.p && className(_el$33, _p$.p = _v$34);
|
|
274
|
+
_v$35 !== _p$.b && className(_el$34, _p$.b = _v$35);
|
|
275
|
+
_v$36 !== _p$.T && className(_el$36, _p$.T = _v$36);
|
|
276
|
+
_v$37 !== _p$.A && className(_el$37, _p$.A = _v$37);
|
|
277
|
+
_v$38 !== _p$.O && className(_el$38, _p$.O = _v$38);
|
|
278
|
+
_v$39 !== _p$.I && className(_el$39, _p$.I = _v$39);
|
|
279
|
+
_v$40 !== _p$.S && className(_el$40, _p$.S = _v$40);
|
|
280
|
+
_v$41 !== _p$.W && className(_el$41, _p$.W = _v$41);
|
|
281
|
+
_v$42 !== _p$.C && className(_el$42, _p$.C = _v$42);
|
|
282
|
+
_v$43 !== _p$.B && className(_el$43, _p$.B = _v$43);
|
|
283
|
+
_v$44 !== _p$.v && className(_el$44, _p$.v = _v$44);
|
|
284
|
+
_v$45 !== _p$.k && className(_el$45, _p$.k = _v$45);
|
|
285
|
+
_v$46 !== _p$.x && className(_el$46, _p$.x = _v$46);
|
|
286
|
+
_v$47 !== _p$.j && className(_el$47, _p$.j = _v$47);
|
|
287
|
+
_v$48 !== _p$.q && className(_el$48, _p$.q = _v$48);
|
|
288
|
+
_v$49 !== _p$.z && className(_el$49, _p$.z = _v$49);
|
|
289
|
+
_v$50 !== _p$.P && className(_el$50, _p$.P = _v$50);
|
|
290
|
+
_v$51 !== _p$.H && className(_el$51, _p$.H = _v$51);
|
|
291
|
+
_v$52 !== _p$.F && className(_el$52, _p$.F = _v$52);
|
|
292
|
+
_v$53 !== _p$.M && className(_el$53, _p$.M = _v$53);
|
|
293
|
+
_v$54 !== _p$.D && className(_el$54, _p$.D = _v$54);
|
|
294
|
+
_v$55 !== _p$.R && className(_el$55, _p$.R = _v$55);
|
|
295
|
+
_v$56 !== _p$.E && className(_el$56, _p$.E = _v$56);
|
|
296
|
+
_v$57 !== _p$.L && className(_el$57, _p$.L = _v$57);
|
|
297
|
+
_v$58 !== _p$.N && className(_el$58, _p$.N = _v$58);
|
|
298
|
+
_v$59 !== _p$.G && className(_el$59, _p$.G = _v$59);
|
|
306
299
|
return _p$;
|
|
307
300
|
}, {
|
|
308
301
|
e: void 0,
|
|
@@ -350,68 +343,75 @@ function HotkeyDetails(props) {
|
|
|
350
343
|
N: void 0,
|
|
351
344
|
G: void 0
|
|
352
345
|
});
|
|
353
|
-
return _el$
|
|
346
|
+
return _el$14;
|
|
354
347
|
})()];
|
|
355
348
|
}
|
|
356
349
|
function SequenceDetails(props) {
|
|
357
350
|
const reg = () => props.registration;
|
|
358
351
|
const liveReg = createMemo(() => props.state.sequenceRegistrations().find((r) => r.id === reg().id) ?? reg());
|
|
359
352
|
const matchedSteps = createMemo(() => effectiveSequenceMatchedSteps(liveReg(), props.state.sequenceProgressNow()));
|
|
360
|
-
const
|
|
361
|
-
const
|
|
362
|
-
const
|
|
353
|
+
const conflicts = useRegistrationConflicts(liveReg);
|
|
354
|
+
const targetConflicts = () => conflicts().overlapping;
|
|
355
|
+
const scopeConflicts = () => conflicts().separate;
|
|
356
|
+
const allConflicts = () => [...targetConflicts(), ...scopeConflicts()];
|
|
363
357
|
const conflictBehavior = () => liveReg().options.conflictBehavior ?? "warn";
|
|
364
358
|
const sequenceCanonicalPlatform = createMemo(() => liveReg().options.platform ?? detectPlatform());
|
|
365
359
|
const styles = props.styles;
|
|
366
360
|
return [(() => {
|
|
367
|
-
var _el$
|
|
368
|
-
insert(_el$
|
|
361
|
+
var _el$93 = _tmpl$0(), _el$94 = _el$93.firstChild, _el$95 = _el$94.nextSibling, _el$96 = _el$95.firstChild, _el$97 = _el$96.nextSibling, _el$98 = _el$97.nextSibling, _el$99 = _el$98.nextSibling, _el$100 = _el$99.nextSibling, _el$101 = _el$100.nextSibling, _el$102 = _el$101.nextSibling, _el$103 = _el$102.nextSibling, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling;
|
|
362
|
+
insert(_el$94, createComponent(For, {
|
|
369
363
|
get each() {
|
|
370
364
|
return liveReg().sequence;
|
|
371
365
|
},
|
|
372
366
|
children: (step, i) => (() => {
|
|
373
|
-
var _el$
|
|
374
|
-
insert(_el$
|
|
367
|
+
var _el$153 = _tmpl$10(), _el$154 = _el$153.firstChild;
|
|
368
|
+
insert(_el$153, createComponent(Show, {
|
|
375
369
|
get when() {
|
|
376
370
|
return i() > 0;
|
|
377
371
|
},
|
|
378
372
|
children: " "
|
|
379
|
-
}), _el$
|
|
380
|
-
insert(_el$
|
|
381
|
-
effect(() => className(_el$
|
|
382
|
-
return _el$
|
|
373
|
+
}), _el$154);
|
|
374
|
+
insert(_el$154, () => formatForDisplay(step, { platform: sequenceCanonicalPlatform() }));
|
|
375
|
+
effect(() => className(_el$154, i() < matchedSteps() ? styles().sequenceStepMatched : void 0));
|
|
376
|
+
return _el$153;
|
|
383
377
|
})()
|
|
384
378
|
}));
|
|
385
|
-
insert(_el$
|
|
386
|
-
insert(_el$
|
|
379
|
+
insert(_el$97, () => liveReg().id);
|
|
380
|
+
insert(_el$99, () => getBindingKind(liveReg()));
|
|
381
|
+
insert(_el$101, () => liveReg().sequence.join(" → "));
|
|
382
|
+
insert(_el$103, createComponent(For, {
|
|
387
383
|
get each() {
|
|
388
384
|
return liveReg().sequence;
|
|
389
385
|
},
|
|
390
386
|
children: (step, i) => (() => {
|
|
391
|
-
var _el$
|
|
392
|
-
insert(_el$
|
|
387
|
+
var _el$155 = _tmpl$10(), _el$156 = _el$155.firstChild;
|
|
388
|
+
insert(_el$155, createComponent(Show, {
|
|
393
389
|
get when() {
|
|
394
390
|
return i() > 0;
|
|
395
391
|
},
|
|
396
392
|
children: " "
|
|
397
|
-
}), _el$
|
|
398
|
-
insert(_el$
|
|
399
|
-
effect(() => className(_el$
|
|
400
|
-
return _el$
|
|
393
|
+
}), _el$156);
|
|
394
|
+
insert(_el$156, () => formatForDisplay(step, { platform: sequenceCanonicalPlatform() }));
|
|
395
|
+
effect(() => className(_el$156, i() < matchedSteps() ? styles().sequenceStepMatched : void 0));
|
|
396
|
+
return _el$155;
|
|
401
397
|
})()
|
|
402
398
|
}));
|
|
403
|
-
insert(_el$
|
|
399
|
+
insert(_el$105, () => props.getTargetDescription(liveReg().target));
|
|
404
400
|
effect((_p$) => {
|
|
405
|
-
var _v$
|
|
406
|
-
_v$
|
|
407
|
-
_v$
|
|
408
|
-
_v$
|
|
409
|
-
_v$
|
|
410
|
-
_v$
|
|
411
|
-
_v$
|
|
412
|
-
_v$
|
|
413
|
-
_v$
|
|
414
|
-
_v$
|
|
401
|
+
var _v$63 = styles().stateHeader, _v$64 = styles().stateTitle, _v$65 = styles().infoGrid, _v$66 = styles().infoLabel, _v$67 = styles().infoValueMono, _v$68 = styles().infoLabel, _v$69 = styles().infoValueMono, _v$70 = styles().infoLabel, _v$71 = styles().infoValueMono, _v$72 = styles().infoLabel, _v$73 = styles().infoValueMono, _v$74 = styles().infoLabel, _v$75 = styles().infoValueMono;
|
|
402
|
+
_v$63 !== _p$.e && className(_el$93, _p$.e = _v$63);
|
|
403
|
+
_v$64 !== _p$.t && className(_el$94, _p$.t = _v$64);
|
|
404
|
+
_v$65 !== _p$.a && className(_el$95, _p$.a = _v$65);
|
|
405
|
+
_v$66 !== _p$.o && className(_el$96, _p$.o = _v$66);
|
|
406
|
+
_v$67 !== _p$.i && className(_el$97, _p$.i = _v$67);
|
|
407
|
+
_v$68 !== _p$.n && className(_el$98, _p$.n = _v$68);
|
|
408
|
+
_v$69 !== _p$.s && className(_el$99, _p$.s = _v$69);
|
|
409
|
+
_v$70 !== _p$.h && className(_el$100, _p$.h = _v$70);
|
|
410
|
+
_v$71 !== _p$.r && className(_el$101, _p$.r = _v$71);
|
|
411
|
+
_v$72 !== _p$.d && className(_el$102, _p$.d = _v$72);
|
|
412
|
+
_v$73 !== _p$.l && className(_el$103, _p$.l = _v$73);
|
|
413
|
+
_v$74 !== _p$.u && className(_el$104, _p$.u = _v$74);
|
|
414
|
+
_v$75 !== _p$.c && className(_el$105, _p$.c = _v$75);
|
|
415
415
|
return _p$;
|
|
416
416
|
}, {
|
|
417
417
|
e: void 0,
|
|
@@ -422,12 +422,16 @@ function SequenceDetails(props) {
|
|
|
422
422
|
n: void 0,
|
|
423
423
|
s: void 0,
|
|
424
424
|
h: void 0,
|
|
425
|
-
r: void 0
|
|
425
|
+
r: void 0,
|
|
426
|
+
d: void 0,
|
|
427
|
+
l: void 0,
|
|
428
|
+
u: void 0,
|
|
429
|
+
c: void 0
|
|
426
430
|
});
|
|
427
|
-
return _el$
|
|
431
|
+
return _el$93;
|
|
428
432
|
})(), (() => {
|
|
429
|
-
var _el$
|
|
430
|
-
insert(_el$
|
|
433
|
+
var _el$106 = _tmpl$1(), _el$107 = _el$106.firstChild, _el$108 = _el$107.firstChild, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$107.nextSibling, _el$112 = _el$111.firstChild, _el$113 = _el$111.nextSibling, _el$114 = _el$113.firstChild, _el$115 = _el$114.nextSibling, _el$116 = _el$115.firstChild, _el$117 = _el$116.firstChild, _el$118 = _el$117.nextSibling, _el$119 = _el$116.nextSibling, _el$120 = _el$119.firstChild, _el$121 = _el$120.nextSibling, _el$122 = _el$113.nextSibling, _el$123 = _el$122.firstChild, _el$125 = _el$123.nextSibling.firstChild, _el$126 = _el$125.firstChild, _el$127 = _el$126.nextSibling, _el$128 = _el$125.nextSibling, _el$129 = _el$128.firstChild, _el$130 = _el$129.nextSibling, _el$131 = _el$128.nextSibling, _el$132 = _el$131.firstChild, _el$133 = _el$132.nextSibling, _el$134 = _el$133.firstChild, _el$135 = _el$131.nextSibling, _el$136 = _el$135.firstChild, _el$137 = _el$136.nextSibling, _el$138 = _el$135.nextSibling, _el$139 = _el$138.firstChild, _el$140 = _el$139.nextSibling, _el$141 = _el$138.nextSibling, _el$142 = _el$141.firstChild, _el$143 = _el$142.nextSibling, _el$144 = _el$141.nextSibling, _el$145 = _el$144.firstChild, _el$146 = _el$145.nextSibling;
|
|
434
|
+
insert(_el$109, createComponent(For, {
|
|
431
435
|
get each() {
|
|
432
436
|
return liveReg().sequence;
|
|
433
437
|
},
|
|
@@ -436,50 +440,54 @@ function SequenceDetails(props) {
|
|
|
436
440
|
return i() > 0;
|
|
437
441
|
},
|
|
438
442
|
get children() {
|
|
439
|
-
var _el$
|
|
440
|
-
effect(() => className(_el$
|
|
441
|
-
return _el$
|
|
443
|
+
var _el$157 = _tmpl$11();
|
|
444
|
+
effect(() => className(_el$157, styles().keyBreakdownPlus));
|
|
445
|
+
return _el$157;
|
|
442
446
|
}
|
|
443
447
|
}), (() => {
|
|
444
|
-
var _el$
|
|
445
|
-
insert(_el$
|
|
446
|
-
effect(() => className(_el$
|
|
447
|
-
return _el$
|
|
448
|
+
var _el$158 = _tmpl$7();
|
|
449
|
+
insert(_el$158, () => formatForDisplay(step, { platform: sequenceCanonicalPlatform() }));
|
|
450
|
+
effect(() => className(_el$158, clsx(styles().keyCapLarge, i() < matchedSteps() && styles().keyCapLargeInProgress)));
|
|
451
|
+
return _el$158;
|
|
448
452
|
})()]
|
|
449
453
|
}));
|
|
450
|
-
insert(_el$
|
|
454
|
+
insert(_el$107, createComponent(For, {
|
|
451
455
|
get each() {
|
|
452
456
|
return liveReg().sequence;
|
|
453
457
|
},
|
|
454
458
|
children: (step, stepIdx) => {
|
|
455
459
|
const stepParsed = () => parseHotkey(step, sequenceCanonicalPlatform());
|
|
456
|
-
const
|
|
460
|
+
const stepParts = () => formatForDisplay(stepParsed(), {
|
|
461
|
+
platform: sequenceCanonicalPlatform(),
|
|
462
|
+
parts: true
|
|
463
|
+
});
|
|
457
464
|
return (() => {
|
|
458
|
-
var _el$
|
|
459
|
-
_el$
|
|
460
|
-
var _el$
|
|
461
|
-
insert(_el$
|
|
462
|
-
insert(_el$
|
|
465
|
+
var _el$159 = _tmpl$12(), _el$160 = _el$159.firstChild, _el$164 = _el$160.firstChild.nextSibling;
|
|
466
|
+
_el$164.nextSibling;
|
|
467
|
+
var _el$165 = _el$160.nextSibling, _el$166 = _el$165.firstChild, _el$167 = _el$166.firstChild, _el$168 = _el$166.nextSibling, _el$169 = _el$168.nextSibling;
|
|
468
|
+
insert(_el$160, () => stepIdx() + 1, _el$164);
|
|
469
|
+
insert(_el$160, () => stepParsed().code !== void 0 ? "Code" : "Key", null);
|
|
470
|
+
insert(_el$167, createComponent(For, {
|
|
463
471
|
get each() {
|
|
464
|
-
return
|
|
472
|
+
return stepParts();
|
|
465
473
|
},
|
|
466
474
|
children: (part, i) => [createComponent(Show, {
|
|
467
475
|
get when() {
|
|
468
476
|
return i() > 0;
|
|
469
477
|
},
|
|
470
478
|
get children() {
|
|
471
|
-
var _el$
|
|
472
|
-
effect(() => className(_el$
|
|
473
|
-
return _el$
|
|
479
|
+
var _el$170 = _tmpl$6();
|
|
480
|
+
effect(() => className(_el$170, styles().keyBreakdownPlus));
|
|
481
|
+
return _el$170;
|
|
474
482
|
}
|
|
475
483
|
}), (() => {
|
|
476
|
-
var _el$
|
|
477
|
-
insert(_el$
|
|
478
|
-
effect(() => className(_el$
|
|
479
|
-
return _el$
|
|
484
|
+
var _el$171 = _tmpl$7();
|
|
485
|
+
insert(_el$171, part);
|
|
486
|
+
effect(() => className(_el$171, styles().keyCapLarge));
|
|
487
|
+
return _el$171;
|
|
480
488
|
})()]
|
|
481
489
|
}));
|
|
482
|
-
insert(_el$
|
|
490
|
+
insert(_el$169, createComponent(KeyBreakdownPlatformTable, {
|
|
483
491
|
getParsed: stepParsed,
|
|
484
492
|
getCanonicalPlatform: () => sequenceCanonicalPlatform(),
|
|
485
493
|
get styles() {
|
|
@@ -487,14 +495,14 @@ function SequenceDetails(props) {
|
|
|
487
495
|
}
|
|
488
496
|
}));
|
|
489
497
|
effect((_p$) => {
|
|
490
|
-
var _v$
|
|
491
|
-
_v$
|
|
492
|
-
_v$
|
|
493
|
-
_v$
|
|
494
|
-
_v$
|
|
495
|
-
_v$
|
|
496
|
-
_v$
|
|
497
|
-
_v$
|
|
498
|
+
var _v$117 = styles().sequenceChordDetail, _v$118 = styles().keyBreakdownSubHeader, _v$119 = styles().keyBreakdownSplitRow, _v$120 = styles().keyBreakdownSplitLeft, _v$121 = styles().keyBreakdown, _v$122 = styles().keyBreakdownSplitArrow, _v$123 = styles().keyBreakdownSplitRight;
|
|
499
|
+
_v$117 !== _p$.e && className(_el$159, _p$.e = _v$117);
|
|
500
|
+
_v$118 !== _p$.t && className(_el$160, _p$.t = _v$118);
|
|
501
|
+
_v$119 !== _p$.a && className(_el$165, _p$.a = _v$119);
|
|
502
|
+
_v$120 !== _p$.o && className(_el$166, _p$.o = _v$120);
|
|
503
|
+
_v$121 !== _p$.i && className(_el$167, _p$.i = _v$121);
|
|
504
|
+
_v$122 !== _p$.n && className(_el$168, _p$.n = _v$122);
|
|
505
|
+
_v$123 !== _p$.s && className(_el$169, _p$.s = _v$123);
|
|
498
506
|
return _p$;
|
|
499
507
|
}, {
|
|
500
508
|
e: void 0,
|
|
@@ -505,16 +513,16 @@ function SequenceDetails(props) {
|
|
|
505
513
|
n: void 0,
|
|
506
514
|
s: void 0
|
|
507
515
|
});
|
|
508
|
-
return _el$
|
|
516
|
+
return _el$159;
|
|
509
517
|
})();
|
|
510
518
|
}
|
|
511
519
|
}), null);
|
|
512
|
-
insert(_el$
|
|
520
|
+
insert(_el$111, createComponent(ActionButtons, { get registration() {
|
|
513
521
|
return liveReg();
|
|
514
522
|
} }), null);
|
|
515
|
-
insert(_el$
|
|
516
|
-
insert(_el$
|
|
517
|
-
insert(_el$
|
|
523
|
+
insert(_el$118, () => liveReg().options.meta?.name ?? "—");
|
|
524
|
+
insert(_el$121, () => liveReg().options.meta?.description ?? "—");
|
|
525
|
+
insert(_el$115, createComponent(Show, {
|
|
518
526
|
get when() {
|
|
519
527
|
return memo(() => !!liveReg().options.meta)() && Object.keys(liveReg().options.meta).filter((k) => k !== "name" && k !== "description").length > 0;
|
|
520
528
|
},
|
|
@@ -524,130 +532,127 @@ function SequenceDetails(props) {
|
|
|
524
532
|
return Object.entries(liveReg().options.meta ?? {}).filter(([k]) => k !== "name" && k !== "description");
|
|
525
533
|
},
|
|
526
534
|
children: ([key, value]) => (() => {
|
|
527
|
-
var _el$
|
|
528
|
-
insert(_el$
|
|
529
|
-
insert(_el$
|
|
535
|
+
var _el$172 = _tmpl$2(), _el$173 = _el$172.firstChild, _el$174 = _el$173.nextSibling;
|
|
536
|
+
insert(_el$173, key);
|
|
537
|
+
insert(_el$174, () => String(value));
|
|
530
538
|
effect((_p$) => {
|
|
531
|
-
var _v$
|
|
532
|
-
_v$
|
|
533
|
-
_v$
|
|
534
|
-
_v$
|
|
539
|
+
var _v$124 = styles().optionRow, _v$125 = styles().optionLabel, _v$126 = styles().optionValue;
|
|
540
|
+
_v$124 !== _p$.e && className(_el$172, _p$.e = _v$124);
|
|
541
|
+
_v$125 !== _p$.t && className(_el$173, _p$.t = _v$125);
|
|
542
|
+
_v$126 !== _p$.a && className(_el$174, _p$.a = _v$126);
|
|
535
543
|
return _p$;
|
|
536
544
|
}, {
|
|
537
545
|
e: void 0,
|
|
538
546
|
t: void 0,
|
|
539
547
|
a: void 0
|
|
540
548
|
});
|
|
541
|
-
return _el$
|
|
549
|
+
return _el$172;
|
|
542
550
|
})()
|
|
543
551
|
});
|
|
544
552
|
}
|
|
545
553
|
}), null);
|
|
546
|
-
insert(_el$
|
|
547
|
-
insert(_el$
|
|
548
|
-
insert(_el$
|
|
549
|
-
insert(_el$
|
|
550
|
-
insert(_el$
|
|
551
|
-
insert(_el$
|
|
552
|
-
insert(_el$
|
|
553
|
-
insert(_el$
|
|
554
|
+
insert(_el$127, () => String(liveReg().options.enabled !== false));
|
|
555
|
+
insert(_el$130, () => liveReg().options.eventType ?? "keydown");
|
|
556
|
+
insert(_el$133, () => liveReg().options.timeout ?? 1e3, _el$134);
|
|
557
|
+
insert(_el$137, () => String(!!liveReg().options.preventDefault));
|
|
558
|
+
insert(_el$140, () => String(!!liveReg().options.stopPropagation));
|
|
559
|
+
insert(_el$143, () => String(liveReg().options.ignoreInputs !== false));
|
|
560
|
+
insert(_el$146, conflictBehavior);
|
|
561
|
+
insert(_el$106, createComponent(Show, {
|
|
554
562
|
get when() {
|
|
555
563
|
return allConflicts().length > 0;
|
|
556
564
|
},
|
|
557
565
|
get children() {
|
|
558
|
-
var _el$
|
|
559
|
-
_el$
|
|
560
|
-
var _el$
|
|
561
|
-
insert(_el$
|
|
562
|
-
insert(_el$
|
|
566
|
+
var _el$147 = _tmpl$4(), _el$148 = _el$147.firstChild, _el$151 = _el$148.firstChild.nextSibling;
|
|
567
|
+
_el$151.nextSibling;
|
|
568
|
+
var _el$152 = _el$148.nextSibling;
|
|
569
|
+
insert(_el$148, () => allConflicts().length, _el$151);
|
|
570
|
+
insert(_el$152, createComponent(For, {
|
|
563
571
|
get each() {
|
|
564
572
|
return targetConflicts();
|
|
565
573
|
},
|
|
566
574
|
children: (conflict) => {
|
|
567
|
-
const itemStyle = () => props.getConflictItemStyle(conflictBehavior(), true);
|
|
568
|
-
const label = () => props.getConflictLabel(conflictBehavior(), true);
|
|
569
575
|
return (() => {
|
|
570
|
-
var _el$
|
|
571
|
-
_el$
|
|
572
|
-
insert(_el$
|
|
573
|
-
insert(_el$
|
|
574
|
-
insert(_el$
|
|
575
|
-
insert(_el$
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
return _el$166;
|
|
576
|
+
var _el$175 = _tmpl$8(), _el$183 = _el$175.firstChild.nextSibling.nextSibling, _el$184 = _el$183.nextSibling.nextSibling, _el$185 = _el$184.nextSibling.nextSibling;
|
|
577
|
+
_el$185.nextSibling;
|
|
578
|
+
insert(_el$175, () => conflict.id, _el$183);
|
|
579
|
+
insert(_el$175, () => formatRegistration(conflict), _el$184);
|
|
580
|
+
insert(_el$175, () => conflict.options.eventType ?? "keydown", _el$185);
|
|
581
|
+
insert(_el$175, () => props.getTargetDescription(conflict.target), null);
|
|
582
|
+
effect(() => className(_el$175, styles().conflictItem));
|
|
583
|
+
return _el$175;
|
|
579
584
|
})();
|
|
580
585
|
}
|
|
581
586
|
}), null);
|
|
582
|
-
insert(_el$
|
|
587
|
+
insert(_el$152, createComponent(For, {
|
|
583
588
|
get each() {
|
|
584
589
|
return scopeConflicts();
|
|
585
590
|
},
|
|
586
591
|
children: (conflict) => (() => {
|
|
587
|
-
var _el$
|
|
588
|
-
_el$
|
|
589
|
-
insert(_el$
|
|
590
|
-
insert(_el$
|
|
591
|
-
insert(_el$
|
|
592
|
-
insert(_el$
|
|
593
|
-
effect(() => className(_el$
|
|
594
|
-
return _el$
|
|
592
|
+
var _el$186 = _tmpl$9(), _el$194 = _el$186.firstChild.nextSibling.nextSibling, _el$195 = _el$194.nextSibling.nextSibling, _el$196 = _el$195.nextSibling.nextSibling;
|
|
593
|
+
_el$196.nextSibling;
|
|
594
|
+
insert(_el$186, () => conflict.id, _el$194);
|
|
595
|
+
insert(_el$186, () => formatRegistration(conflict), _el$195);
|
|
596
|
+
insert(_el$186, () => conflict.options.eventType ?? "keydown", _el$196);
|
|
597
|
+
insert(_el$186, () => props.getTargetDescription(conflict.target), null);
|
|
598
|
+
effect(() => className(_el$186, styles().conflictItemScope));
|
|
599
|
+
return _el$186;
|
|
595
600
|
})()
|
|
596
601
|
}), null);
|
|
597
602
|
effect((_p$) => {
|
|
598
|
-
var _v$
|
|
599
|
-
_v$
|
|
600
|
-
_v$
|
|
601
|
-
_v$
|
|
603
|
+
var _v$76 = styles().detailSection, _v$77 = styles().detailSectionHeader, _v$78 = styles().conflictList;
|
|
604
|
+
_v$76 !== _p$.e && className(_el$147, _p$.e = _v$76);
|
|
605
|
+
_v$77 !== _p$.t && className(_el$148, _p$.t = _v$77);
|
|
606
|
+
_v$78 !== _p$.a && className(_el$152, _p$.a = _v$78);
|
|
602
607
|
return _p$;
|
|
603
608
|
}, {
|
|
604
609
|
e: void 0,
|
|
605
610
|
t: void 0,
|
|
606
611
|
a: void 0
|
|
607
612
|
});
|
|
608
|
-
return _el$
|
|
613
|
+
return _el$147;
|
|
609
614
|
}
|
|
610
615
|
}), null);
|
|
611
616
|
effect((_p$) => {
|
|
612
|
-
var _v$
|
|
613
|
-
_v$
|
|
614
|
-
_v$
|
|
615
|
-
_v$
|
|
616
|
-
_v$
|
|
617
|
-
_v$
|
|
618
|
-
_v$
|
|
619
|
-
_v$
|
|
620
|
-
_v$
|
|
621
|
-
_v$
|
|
622
|
-
_v$
|
|
623
|
-
_v$
|
|
624
|
-
_v$
|
|
625
|
-
_v$
|
|
626
|
-
_v$
|
|
627
|
-
_v$
|
|
628
|
-
_v$
|
|
629
|
-
_v$
|
|
630
|
-
_v$
|
|
631
|
-
_v$
|
|
632
|
-
_v$
|
|
633
|
-
_v$
|
|
634
|
-
_v$
|
|
635
|
-
_v$
|
|
636
|
-
_v$
|
|
637
|
-
_v$
|
|
638
|
-
_v$
|
|
639
|
-
_v$
|
|
640
|
-
_v$
|
|
641
|
-
_v$
|
|
642
|
-
_v$
|
|
643
|
-
_v$
|
|
644
|
-
_v$
|
|
645
|
-
_v$
|
|
646
|
-
_v$
|
|
647
|
-
_v$
|
|
648
|
-
_v$
|
|
649
|
-
_v$
|
|
650
|
-
_v$
|
|
617
|
+
var _v$79 = styles().detailsGrid, _v$80 = styles().detailSection, _v$81 = styles().detailSectionHeader, _v$82 = styles().keyBreakdown, _v$83 = styles().keyBreakdownSubHeader, _v$84 = styles().detailSection, _v$85 = styles().detailSectionHeader, _v$86 = styles().detailSection, _v$87 = styles().detailSectionHeader, _v$88 = styles().optionRow, _v$89 = styles().optionLabel, _v$90 = styles().optionValue, _v$91 = styles().optionRow, _v$92 = styles().optionLabel, _v$93 = styles().optionValue, _v$94 = styles().detailSection, _v$95 = styles().detailSectionHeader, _v$96 = styles().optionRow, _v$97 = styles().optionLabel, _v$98 = liveReg().options.enabled !== false ? styles().optionValueTrue : styles().optionValueFalse, _v$99 = styles().optionRow, _v$100 = styles().optionLabel, _v$101 = styles().optionValue, _v$102 = styles().optionRow, _v$103 = styles().optionLabel, _v$104 = styles().optionValue, _v$105 = styles().optionRow, _v$106 = styles().optionLabel, _v$107 = liveReg().options.preventDefault ? styles().optionValueTrue : styles().optionValueFalse, _v$108 = styles().optionRow, _v$109 = styles().optionLabel, _v$110 = liveReg().options.stopPropagation ? styles().optionValueTrue : styles().optionValueFalse, _v$111 = styles().optionRow, _v$112 = styles().optionLabel, _v$113 = liveReg().options.ignoreInputs !== false ? styles().optionValueTrue : styles().optionValueFalse, _v$114 = styles().optionRow, _v$115 = styles().optionLabel, _v$116 = styles().optionValue;
|
|
618
|
+
_v$79 !== _p$.e && className(_el$106, _p$.e = _v$79);
|
|
619
|
+
_v$80 !== _p$.t && className(_el$107, _p$.t = _v$80);
|
|
620
|
+
_v$81 !== _p$.a && className(_el$108, _p$.a = _v$81);
|
|
621
|
+
_v$82 !== _p$.o && className(_el$109, _p$.o = _v$82);
|
|
622
|
+
_v$83 !== _p$.i && className(_el$110, _p$.i = _v$83);
|
|
623
|
+
_v$84 !== _p$.n && className(_el$111, _p$.n = _v$84);
|
|
624
|
+
_v$85 !== _p$.s && className(_el$112, _p$.s = _v$85);
|
|
625
|
+
_v$86 !== _p$.h && className(_el$113, _p$.h = _v$86);
|
|
626
|
+
_v$87 !== _p$.r && className(_el$114, _p$.r = _v$87);
|
|
627
|
+
_v$88 !== _p$.d && className(_el$116, _p$.d = _v$88);
|
|
628
|
+
_v$89 !== _p$.l && className(_el$117, _p$.l = _v$89);
|
|
629
|
+
_v$90 !== _p$.u && className(_el$118, _p$.u = _v$90);
|
|
630
|
+
_v$91 !== _p$.c && className(_el$119, _p$.c = _v$91);
|
|
631
|
+
_v$92 !== _p$.w && className(_el$120, _p$.w = _v$92);
|
|
632
|
+
_v$93 !== _p$.m && className(_el$121, _p$.m = _v$93);
|
|
633
|
+
_v$94 !== _p$.f && className(_el$122, _p$.f = _v$94);
|
|
634
|
+
_v$95 !== _p$.y && className(_el$123, _p$.y = _v$95);
|
|
635
|
+
_v$96 !== _p$.g && className(_el$125, _p$.g = _v$96);
|
|
636
|
+
_v$97 !== _p$.p && className(_el$126, _p$.p = _v$97);
|
|
637
|
+
_v$98 !== _p$.b && className(_el$127, _p$.b = _v$98);
|
|
638
|
+
_v$99 !== _p$.T && className(_el$128, _p$.T = _v$99);
|
|
639
|
+
_v$100 !== _p$.A && className(_el$129, _p$.A = _v$100);
|
|
640
|
+
_v$101 !== _p$.O && className(_el$130, _p$.O = _v$101);
|
|
641
|
+
_v$102 !== _p$.I && className(_el$131, _p$.I = _v$102);
|
|
642
|
+
_v$103 !== _p$.S && className(_el$132, _p$.S = _v$103);
|
|
643
|
+
_v$104 !== _p$.W && className(_el$133, _p$.W = _v$104);
|
|
644
|
+
_v$105 !== _p$.C && className(_el$135, _p$.C = _v$105);
|
|
645
|
+
_v$106 !== _p$.B && className(_el$136, _p$.B = _v$106);
|
|
646
|
+
_v$107 !== _p$.v && className(_el$137, _p$.v = _v$107);
|
|
647
|
+
_v$108 !== _p$.k && className(_el$138, _p$.k = _v$108);
|
|
648
|
+
_v$109 !== _p$.x && className(_el$139, _p$.x = _v$109);
|
|
649
|
+
_v$110 !== _p$.j && className(_el$140, _p$.j = _v$110);
|
|
650
|
+
_v$111 !== _p$.q && className(_el$141, _p$.q = _v$111);
|
|
651
|
+
_v$112 !== _p$.z && className(_el$142, _p$.z = _v$112);
|
|
652
|
+
_v$113 !== _p$.P && className(_el$143, _p$.P = _v$113);
|
|
653
|
+
_v$114 !== _p$.H && className(_el$144, _p$.H = _v$114);
|
|
654
|
+
_v$115 !== _p$.F && className(_el$145, _p$.F = _v$115);
|
|
655
|
+
_v$116 !== _p$.M && className(_el$146, _p$.M = _v$116);
|
|
651
656
|
return _p$;
|
|
652
657
|
}, {
|
|
653
658
|
e: void 0,
|
|
@@ -689,23 +694,23 @@ function SequenceDetails(props) {
|
|
|
689
694
|
F: void 0,
|
|
690
695
|
M: void 0
|
|
691
696
|
});
|
|
692
|
-
return _el$
|
|
697
|
+
return _el$106;
|
|
693
698
|
})()];
|
|
694
699
|
}
|
|
695
700
|
function DetailsPanel(props) {
|
|
696
701
|
const styles = useStyles();
|
|
697
702
|
const state = useHotkeysDevtoolsState();
|
|
698
703
|
return (() => {
|
|
699
|
-
var _el$
|
|
700
|
-
insert(_el$
|
|
704
|
+
var _el$197 = _tmpl$();
|
|
705
|
+
insert(_el$197, createComponent(Show, {
|
|
701
706
|
get when() {
|
|
702
707
|
return props.selectedRegistration();
|
|
703
708
|
},
|
|
704
709
|
get fallback() {
|
|
705
710
|
return (() => {
|
|
706
|
-
var _el$
|
|
707
|
-
effect(() => className(_el$
|
|
708
|
-
return _el$
|
|
711
|
+
var _el$198 = _tmpl$13();
|
|
712
|
+
effect(() => className(_el$198, styles().noSelection));
|
|
713
|
+
return _el$198;
|
|
709
714
|
})();
|
|
710
715
|
},
|
|
711
716
|
children: (reg) => createComponent(Show, {
|
|
@@ -717,13 +722,7 @@ function DetailsPanel(props) {
|
|
|
717
722
|
get registration() {
|
|
718
723
|
return reg();
|
|
719
724
|
},
|
|
720
|
-
state,
|
|
721
725
|
getTargetDescription,
|
|
722
|
-
findTargetConflicts,
|
|
723
|
-
findScopeConflicts,
|
|
724
|
-
getConflictItemStyle,
|
|
725
|
-
getConflictLabel,
|
|
726
|
-
formatForDisplay,
|
|
727
726
|
styles
|
|
728
727
|
});
|
|
729
728
|
},
|
|
@@ -734,22 +733,15 @@ function DetailsPanel(props) {
|
|
|
734
733
|
},
|
|
735
734
|
state,
|
|
736
735
|
getTargetDescription,
|
|
737
|
-
findSequenceTargetConflicts,
|
|
738
|
-
findSequenceScopeConflicts,
|
|
739
|
-
getConflictItemStyle,
|
|
740
|
-
getConflictLabel,
|
|
741
|
-
formatHotkeySequence,
|
|
742
|
-
formatForDisplay,
|
|
743
736
|
styles
|
|
744
737
|
});
|
|
745
738
|
}
|
|
746
739
|
})
|
|
747
740
|
}));
|
|
748
|
-
effect(() => className(_el$
|
|
749
|
-
return _el$
|
|
741
|
+
effect(() => className(_el$197, styles().stateDetails));
|
|
742
|
+
return _el$197;
|
|
750
743
|
})();
|
|
751
744
|
}
|
|
752
745
|
|
|
753
746
|
//#endregion
|
|
754
|
-
export { DetailsPanel };
|
|
755
|
-
//# sourceMappingURL=DetailsPanel.js.map
|
|
747
|
+
export { DetailsPanel };
|