relly-ui 1.0.2 → 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 -5
- package/dist/index.d.ts +132 -2
- package/dist/relly-ui.css +1 -1
- package/dist/relly-ui.es.js +646 -328
- package/dist/relly-ui.es.js.map +1 -1
- package/dist/relly-ui.iife.js +11 -11
- package/dist/relly-ui.iife.js.map +1 -1
- package/dist/relly-ui.umd.js +11 -11
- package/dist/relly-ui.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/relly-ui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var l = (
|
|
4
|
-
class
|
|
1
|
+
var ge = Object.defineProperty;
|
|
2
|
+
var be = (f, i, e) => i in f ? ge(f, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : f[i] = e;
|
|
3
|
+
var l = (f, i, e) => be(f, typeof i != "symbol" ? i + "" : i, e);
|
|
4
|
+
class E {
|
|
5
5
|
constructor(i, e, t, n, s) {
|
|
6
6
|
l(this, "element");
|
|
7
7
|
l(this, "labelEl");
|
|
@@ -101,24 +101,24 @@ class C {
|
|
|
101
101
|
this.isListening && this.bindingEngine && (this.bindingEngine.unregister(this), this.isListening = !1), this.presetManager && this.presetManager.unregister(this), this.element.remove();
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
class
|
|
105
|
-
constructor(e, t, n, s, r,
|
|
104
|
+
class I extends E {
|
|
105
|
+
constructor(e, t, n, s, r, o) {
|
|
106
106
|
super(e, t, n, s, r);
|
|
107
107
|
l(this, "wrapperEl");
|
|
108
108
|
l(this, "boxEl");
|
|
109
109
|
l(this, "soundEngine");
|
|
110
|
-
this.soundEngine =
|
|
110
|
+
this.soundEngine = o, this.wrapperEl = document.createElement("div"), this.wrapperEl.className = "relly-checkbox-wrapper", this.wrapperEl.setAttribute("role", "checkbox"), this.wrapperEl.setAttribute("tabindex", "0"), this.boxEl = document.createElement("div"), this.boxEl.className = "relly-checkbox-box", this.boxEl.innerHTML = `
|
|
111
111
|
<svg class="relly-checkbox-icon" viewBox="0 0 12 10">
|
|
112
112
|
<polyline points="1.5 5 4.5 8.5 10.5 1.5"></polyline>
|
|
113
113
|
</svg>
|
|
114
114
|
`, this.wrapperEl.appendChild(this.boxEl), this.controlEl.appendChild(this.wrapperEl), this.wrapperEl.addEventListener("click", () => {
|
|
115
115
|
var h;
|
|
116
|
-
const
|
|
117
|
-
(h = this.soundEngine) == null || h.playToggle(
|
|
118
|
-
}), this.wrapperEl.addEventListener("keydown", (
|
|
116
|
+
const a = !this.getValue();
|
|
117
|
+
(h = this.soundEngine) == null || h.playToggle(a), this.setValue(a);
|
|
118
|
+
}), this.wrapperEl.addEventListener("keydown", (a) => {
|
|
119
119
|
var h;
|
|
120
|
-
if (
|
|
121
|
-
|
|
120
|
+
if (a.key === " " || a.key === "Enter") {
|
|
121
|
+
a.preventDefault();
|
|
122
122
|
const c = !this.getValue();
|
|
123
123
|
(h = this.soundEngine) == null || h.playToggle(c), this.setValue(c);
|
|
124
124
|
}
|
|
@@ -133,8 +133,8 @@ class L extends C {
|
|
|
133
133
|
return this.wrapperEl.setAttribute("aria-checked", e ? "true" : "false"), e ? this.wrapperEl.classList.add("relly-checked") : this.wrapperEl.classList.remove("relly-checked"), this;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
class V extends
|
|
137
|
-
constructor(e, t, n, s, r,
|
|
136
|
+
class V extends E {
|
|
137
|
+
constructor(e, t, n, s, r, o) {
|
|
138
138
|
super(e, t, n, s, r);
|
|
139
139
|
l(this, "containerEl");
|
|
140
140
|
l(this, "rangeInput");
|
|
@@ -144,30 +144,30 @@ class V extends C {
|
|
|
144
144
|
l(this, "min", 0);
|
|
145
145
|
l(this, "max", 100);
|
|
146
146
|
l(this, "step", 1);
|
|
147
|
-
this.soundEngine =
|
|
148
|
-
const
|
|
149
|
-
this.triggerSound(), this.setValue(
|
|
147
|
+
this.soundEngine = o, this.containerEl = document.createElement("div"), this.containerEl.className = "relly-slider-container", this.rangeInput = document.createElement("input"), this.rangeInput.type = "range", this.rangeInput.className = "relly-slider-range", this.numberInput = document.createElement("input"), this.numberInput.type = "number", this.numberInput.className = "relly-slider-number", this.numberInput.title = "Drag horizontally to scrub value, or type directly", this.containerEl.appendChild(this.rangeInput), this.containerEl.appendChild(this.numberInput), this.controlEl.appendChild(this.containerEl), this.applyConstraints(), this.rangeInput.addEventListener("input", () => {
|
|
148
|
+
const a = parseFloat(this.rangeInput.value);
|
|
149
|
+
this.triggerSound(), this.setValue(a);
|
|
150
150
|
}), this.numberInput.addEventListener("change", () => {
|
|
151
|
-
let
|
|
152
|
-
isNaN(
|
|
151
|
+
let a = parseFloat(this.numberInput.value);
|
|
152
|
+
isNaN(a) && (a = this.min), a = Math.max(this.min, Math.min(this.max, a)), this.triggerSound(), this.setValue(a);
|
|
153
153
|
}), this.setupJogScrubbing(), this.update();
|
|
154
154
|
}
|
|
155
155
|
setupJogScrubbing() {
|
|
156
156
|
let e = !1, t = 0, n = 0;
|
|
157
|
-
const s = (
|
|
158
|
-
const
|
|
159
|
-
if (!e && Math.abs(
|
|
160
|
-
const h =
|
|
157
|
+
const s = (o) => {
|
|
158
|
+
const a = o.clientX - t;
|
|
159
|
+
if (!e && Math.abs(a) > 3 && (e = !0, typeof document < "u" && document.body.classList.add("relly-jog-scrubbing")), e) {
|
|
160
|
+
const h = o.shiftKey ? 10 : o.altKey ? 0.1 : 1, c = this.step * h, m = a * c;
|
|
161
161
|
let p = n + m;
|
|
162
162
|
p = Math.max(this.min, Math.min(this.max, p));
|
|
163
|
-
const d = (c.toString().split(".")[1] || "").length,
|
|
164
|
-
p = Math.round(p *
|
|
163
|
+
const d = (c.toString().split(".")[1] || "").length, y = 1 / c;
|
|
164
|
+
p = Math.round(p * y) / y, p = parseFloat(p.toFixed(Math.min(d, 4))), this.triggerSound(), this.setValue(p), o.preventDefault();
|
|
165
165
|
}
|
|
166
166
|
}, r = () => {
|
|
167
167
|
e && typeof document < "u" && document.body.classList.remove("relly-jog-scrubbing"), typeof window < "u" && (window.removeEventListener("mousemove", s), window.removeEventListener("mouseup", r));
|
|
168
168
|
};
|
|
169
|
-
this.numberInput.addEventListener("mousedown", (
|
|
170
|
-
t =
|
|
169
|
+
this.numberInput.addEventListener("mousedown", (o) => {
|
|
170
|
+
t = o.clientX, n = parseFloat(this.numberInput.value) || 0, e = !1, typeof window < "u" && (window.addEventListener("mousemove", s), window.addEventListener("mouseup", r));
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
triggerSound() {
|
|
@@ -196,7 +196,7 @@ class V extends C {
|
|
|
196
196
|
return this.rangeInput.value = e.toString(), this.numberInput.value = e.toString(), this;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
class A extends
|
|
199
|
+
class A extends E {
|
|
200
200
|
constructor(e, t, n) {
|
|
201
201
|
super(e);
|
|
202
202
|
l(this, "buttonEl");
|
|
@@ -220,13 +220,13 @@ class A extends C {
|
|
|
220
220
|
return this;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
class z extends
|
|
224
|
-
constructor(e, t, n, s, r,
|
|
225
|
-
super(e, t, n, r,
|
|
223
|
+
class z extends E {
|
|
224
|
+
constructor(e, t, n, s, r, o) {
|
|
225
|
+
super(e, t, n, r, o);
|
|
226
226
|
l(this, "selectEl");
|
|
227
227
|
l(this, "optionsMap", /* @__PURE__ */ new Map());
|
|
228
228
|
this.selectEl = document.createElement("select"), this.selectEl.className = "relly-select-input", this.controlEl.appendChild(this.selectEl), s && this.setOptions(s), this.selectEl.addEventListener("change", () => {
|
|
229
|
-
const
|
|
229
|
+
const a = this.selectEl.value, h = this.optionsMap.has(a) ? this.optionsMap.get(a) : a;
|
|
230
230
|
this.setValue(h);
|
|
231
231
|
}), this.update();
|
|
232
232
|
}
|
|
@@ -255,7 +255,7 @@ class z extends C {
|
|
|
255
255
|
return this.selectEl.value = String(e), this;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
class B extends
|
|
258
|
+
class B extends E {
|
|
259
259
|
constructor(e, t, n, s) {
|
|
260
260
|
super(e, t, n, s);
|
|
261
261
|
l(this, "valueBadge");
|
|
@@ -270,7 +270,7 @@ class B extends C {
|
|
|
270
270
|
return this.valueBadge.textContent = this.formatter(e), this;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
class N extends
|
|
273
|
+
class N extends E {
|
|
274
274
|
constructor(e, t, n, s, r) {
|
|
275
275
|
super(e, t, n, s);
|
|
276
276
|
l(this, "canvasContainer");
|
|
@@ -303,8 +303,8 @@ class N extends C {
|
|
|
303
303
|
l(this, "onMouseMove", (e) => {
|
|
304
304
|
const t = this.canvas.getBoundingClientRect(), n = e.clientX - t.left, s = this.cssWidth;
|
|
305
305
|
if (s <= 0) return;
|
|
306
|
-
const r = s / Math.max(1, this.bufferSize - 1),
|
|
307
|
-
|
|
306
|
+
const r = s / Math.max(1, this.bufferSize - 1), o = Math.round(n / r), a = Math.max(0, Math.min(this.bufferSize - 1, o));
|
|
307
|
+
a !== this.hoverIndex && (this.hoverIndex = a, this.updateTooltip(n), this.draw());
|
|
308
308
|
});
|
|
309
309
|
l(this, "onMouseLeave", () => {
|
|
310
310
|
this.hoverIndex = null, this.graphTooltipEl.classList.remove("relly-tooltip-show"), this.draw();
|
|
@@ -314,8 +314,8 @@ class N extends C {
|
|
|
314
314
|
(e = this.soundEngine) == null || e.playClick(), this.isPaused = !this.isPaused, this.isPaused ? this.canvasContainer.classList.add("relly-graph-paused") : this.canvasContainer.classList.remove("relly-graph-paused"), this.updateStats(), this.draw();
|
|
315
315
|
});
|
|
316
316
|
this.soundEngine = r, this.element.className = "relly-graph-row", this.element.innerHTML = "";
|
|
317
|
-
const
|
|
318
|
-
|
|
317
|
+
const o = document.createElement("div");
|
|
318
|
+
o.className = "relly-graph-header", this.labelEl = document.createElement("span"), this.labelEl.className = "relly-graph-label", this.labelEl.textContent = e, this.statsEl = document.createElement("div"), this.statsEl.className = "relly-graph-stats", this.statsEl.innerHTML = '<span class="relly-graph-val">0</span>', o.appendChild(this.labelEl), o.appendChild(this.statsEl), this.element.appendChild(o), this.legendEl = document.createElement("div"), this.legendEl.className = "relly-graph-legend", this.element.appendChild(this.legendEl), this.canvasContainer = document.createElement("div"), this.canvasContainer.className = "relly-graph-canvas-container", this.canvasContainer.title = "Click to pause/freeze data stream for inspection", this.canvas = document.createElement("canvas"), this.canvas.className = "relly-graph-canvas", this.canvasContainer.appendChild(this.canvas), this.graphTooltipEl = document.createElement("div"), this.graphTooltipEl.className = "relly-graph-tooltip", this.canvasContainer.appendChild(this.graphTooltipEl), this.element.appendChild(this.canvasContainer), this.ctx = this.canvas.getContext("2d"), this.primarySeries = {
|
|
319
319
|
id: "default",
|
|
320
320
|
label: e,
|
|
321
321
|
color: "#38bdf8",
|
|
@@ -346,9 +346,9 @@ class N extends C {
|
|
|
346
346
|
if (this.hoverIndex === null) return;
|
|
347
347
|
let t = "";
|
|
348
348
|
for (const r of this.seriesList) {
|
|
349
|
-
const
|
|
350
|
-
if (
|
|
351
|
-
const h = r.buffer[
|
|
349
|
+
const o = this.bufferSize - r.buffer.length, a = this.hoverIndex - o;
|
|
350
|
+
if (a >= 0 && a < r.buffer.length) {
|
|
351
|
+
const h = r.buffer[a];
|
|
352
352
|
t += `<div><span style="display:inline-block;width:6px;height:6px;border-radius:50%;background:${r.color};margin-right:4px;"></span>${r.label}: <b>${this.formatter(h)}</b></div>`;
|
|
353
353
|
}
|
|
354
354
|
}
|
|
@@ -458,8 +458,8 @@ class N extends C {
|
|
|
458
458
|
updateStats() {
|
|
459
459
|
const e = this.primarySeries.buffer.length > 0 ? this.primarySeries.buffer[this.primarySeries.buffer.length - 1] : 0;
|
|
460
460
|
let t = this.min, n = this.max, s = [];
|
|
461
|
-
for (const
|
|
462
|
-
s = s.concat(
|
|
461
|
+
for (const o of this.seriesList)
|
|
462
|
+
s = s.concat(o.buffer);
|
|
463
463
|
s.length > 0 && (t = Math.min(...s), n = Math.max(...s));
|
|
464
464
|
const r = this.isPaused ? '<span class="relly-graph-badge relly-graph-badge--paused">PAUSED</span>' : "";
|
|
465
465
|
this.statsEl.innerHTML = `
|
|
@@ -481,31 +481,31 @@ class N extends C {
|
|
|
481
481
|
const e = this.ctx, t = this.cssWidth, n = this.cssHeight;
|
|
482
482
|
e.clearRect(0, 0, t, n), e.save(), e.setLineDash([2, 4]), e.strokeStyle = "rgba(255, 255, 255, 0.08)", e.lineWidth = 1;
|
|
483
483
|
for (let d of [0.25, 0.5, 0.75]) {
|
|
484
|
-
const
|
|
485
|
-
e.beginPath(), e.moveTo(0,
|
|
484
|
+
const y = Math.round(n * d);
|
|
485
|
+
e.beginPath(), e.moveTo(0, y), e.lineTo(t, y), e.stroke();
|
|
486
486
|
}
|
|
487
487
|
e.restore();
|
|
488
488
|
let s = [];
|
|
489
489
|
for (const d of this.seriesList)
|
|
490
490
|
s = s.concat(d.buffer);
|
|
491
491
|
if (s.length === 0) return;
|
|
492
|
-
const r = Math.min(...s),
|
|
493
|
-
let
|
|
494
|
-
|
|
495
|
-
const c = (h -
|
|
496
|
-
|
|
497
|
-
const m = h -
|
|
492
|
+
const r = Math.min(...s), o = Math.max(...s);
|
|
493
|
+
let a = this.autoRange ? r : this.min, h = this.autoRange ? o : this.max;
|
|
494
|
+
o > h && (h = o), r < a && (a = r), a === h && (a -= 1, h += 1);
|
|
495
|
+
const c = (h - a) * 0.16 || 1;
|
|
496
|
+
a -= c, h += c;
|
|
497
|
+
const m = h - a || 1, p = t / Math.max(1, this.bufferSize - 1);
|
|
498
498
|
for (const d of this.seriesList) {
|
|
499
499
|
if (d.buffer.length === 0) continue;
|
|
500
|
-
const
|
|
501
|
-
for (let g = 0; g <
|
|
502
|
-
const b = (x + g) * p,
|
|
500
|
+
const y = d.buffer.length === 1 ? [d.buffer[0], d.buffer[0]] : d.buffer, x = this.bufferSize - y.length, u = [];
|
|
501
|
+
for (let g = 0; g < y.length; g++) {
|
|
502
|
+
const b = (x + g) * p, C = Math.max(0, Math.min(1, (y[g] - a) / m)), M = Math.max(4, Math.min(n - 4, n - 6 - C * (n - 12)));
|
|
503
503
|
u.push({ x: b, y: M });
|
|
504
504
|
}
|
|
505
505
|
if (e.beginPath(), e.moveTo(u[0].x, n), e.lineTo(u[0].x, u[0].y), this.smoothCurves && u.length > 2)
|
|
506
506
|
for (let g = 0; g < u.length - 1; g++) {
|
|
507
|
-
const b = u[g],
|
|
508
|
-
e.bezierCurveTo(M, b.y, M,
|
|
507
|
+
const b = u[g], C = u[g + 1], M = (b.x + C.x) / 2;
|
|
508
|
+
e.bezierCurveTo(M, b.y, M, C.y, C.x, C.y);
|
|
509
509
|
}
|
|
510
510
|
else
|
|
511
511
|
for (let g = 1; g < u.length; g++)
|
|
@@ -514,24 +514,24 @@ class N extends C {
|
|
|
514
514
|
const v = e.createLinearGradient(0, 0, 0, n);
|
|
515
515
|
if (v.addColorStop(0, d.fillColor || `${d.color}40`), v.addColorStop(1, "rgba(0, 0, 0, 0)"), e.fillStyle = v, e.fill(), e.beginPath(), e.moveTo(u[0].x, u[0].y), this.smoothCurves && u.length > 2)
|
|
516
516
|
for (let g = 0; g < u.length - 1; g++) {
|
|
517
|
-
const b = u[g],
|
|
518
|
-
e.bezierCurveTo(M, b.y, M,
|
|
517
|
+
const b = u[g], C = u[g + 1], M = (b.x + C.x) / 2;
|
|
518
|
+
e.bezierCurveTo(M, b.y, M, C.y, C.x, C.y);
|
|
519
519
|
}
|
|
520
520
|
else
|
|
521
521
|
for (let g = 1; g < u.length; g++)
|
|
522
522
|
e.lineTo(u[g].x, u[g].y);
|
|
523
523
|
e.save(), e.strokeStyle = d.color, e.lineWidth = 2, e.shadowColor = d.color, e.shadowBlur = 5, e.stroke(), e.restore();
|
|
524
|
-
const
|
|
525
|
-
|
|
524
|
+
const w = u[u.length - 1];
|
|
525
|
+
w && (e.beginPath(), e.arc(w.x, w.y, 4, 0, Math.PI * 2), e.fillStyle = d.color, e.globalAlpha = 0.35, e.fill(), e.globalAlpha = 1, e.beginPath(), e.arc(w.x, w.y, 2, 0, Math.PI * 2), e.fillStyle = "#ffffff", e.fill());
|
|
526
526
|
}
|
|
527
527
|
if (this.hoverIndex !== null) {
|
|
528
528
|
const d = Math.round(this.hoverIndex * p);
|
|
529
529
|
e.save(), e.setLineDash([3, 3]), e.strokeStyle = "rgba(255, 255, 255, 0.45)", e.lineWidth = 1, e.beginPath(), e.moveTo(d, 0), e.lineTo(d, n), e.stroke(), e.restore();
|
|
530
|
-
for (const
|
|
531
|
-
const x = this.bufferSize -
|
|
532
|
-
if (u >= 0 && u <
|
|
533
|
-
const v =
|
|
534
|
-
e.beginPath(), e.arc(d, g, 4.5, 0, Math.PI * 2), e.fillStyle =
|
|
530
|
+
for (const y of this.seriesList) {
|
|
531
|
+
const x = this.bufferSize - y.buffer.length, u = this.hoverIndex - x;
|
|
532
|
+
if (u >= 0 && u < y.buffer.length) {
|
|
533
|
+
const v = y.buffer[u], w = Math.max(0, Math.min(1, (v - a) / m)), g = Math.max(4, Math.min(n - 4, n - 6 - w * (n - 12)));
|
|
534
|
+
e.beginPath(), e.arc(d, g, 4.5, 0, Math.PI * 2), e.fillStyle = y.color, e.fill(), e.beginPath(), e.arc(d, g, 2, 0, Math.PI * 2), e.fillStyle = "#ffffff", e.fill();
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
@@ -540,19 +540,19 @@ class N extends C {
|
|
|
540
540
|
this.resizeObserver && (this.resizeObserver.disconnect(), this.resizeObserver = null), this.mediaQueryList && (this.mediaQueryList.removeEventListener("change", this.onResolutionChange), this.mediaQueryList = null), this.canvas.removeEventListener("mousemove", this.onMouseMove), this.canvas.removeEventListener("mouseleave", this.onMouseLeave), this.canvas.removeEventListener("click", this.onCanvasClick), super.destroy();
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
class R extends
|
|
544
|
-
constructor(e, t, n, s, r,
|
|
543
|
+
class R extends E {
|
|
544
|
+
constructor(e, t, n, s, r, o) {
|
|
545
545
|
super(e, t, n, s, r);
|
|
546
546
|
l(this, "wrapperEl");
|
|
547
547
|
l(this, "previewEl");
|
|
548
|
-
l(this, "
|
|
548
|
+
l(this, "hexInputEl");
|
|
549
549
|
l(this, "nativeColorInput");
|
|
550
550
|
l(this, "eyeDropperBtn");
|
|
551
551
|
l(this, "swatchesContainer");
|
|
552
552
|
l(this, "swatches", []);
|
|
553
553
|
l(this, "swatchButtons", /* @__PURE__ */ new Map());
|
|
554
554
|
l(this, "soundEngine");
|
|
555
|
-
this.soundEngine =
|
|
555
|
+
this.soundEngine = o, this.wrapperEl = document.createElement("div"), this.wrapperEl.className = "relly-color-wrapper", this.previewEl = document.createElement("div"), this.previewEl.className = "relly-color-preview", this.previewEl.title = "Click to open color palette", this.hexInputEl = document.createElement("input"), this.hexInputEl.type = "text", this.hexInputEl.className = "relly-color-text relly-color-input", this.hexInputEl.spellcheck = !1, this.hexInputEl.maxLength = 9, this.nativeColorInput = document.createElement("input"), this.nativeColorInput.type = "color", this.nativeColorInput.className = "relly-color-native", this.wrapperEl.appendChild(this.previewEl), this.wrapperEl.appendChild(this.hexInputEl), this.wrapperEl.appendChild(this.nativeColorInput), typeof window < "u" && "EyeDropper" in window && (this.eyeDropperBtn = document.createElement("button"), this.eyeDropperBtn.type = "button", this.eyeDropperBtn.className = "relly-eyedropper-btn", this.eyeDropperBtn.title = "Pick color from screen", this.eyeDropperBtn.innerHTML = `
|
|
556
556
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
557
557
|
<path d="m14 7 3 3m-1-5a2.83 2.83 0 0 1 4 4L7 22H3v-4L16 5Z"></path>
|
|
558
558
|
</svg>
|
|
@@ -564,11 +564,16 @@ class R extends C {
|
|
|
564
564
|
}
|
|
565
565
|
}), this.wrapperEl.appendChild(this.eyeDropperBtn)), this.controlEl.appendChild(this.wrapperEl), this.previewEl.addEventListener("click", () => {
|
|
566
566
|
this.nativeColorInput.click();
|
|
567
|
-
}), this.
|
|
568
|
-
this.
|
|
567
|
+
}), this.hexInputEl.addEventListener("input", () => {
|
|
568
|
+
let a = this.hexInputEl.value.trim();
|
|
569
|
+
!a.startsWith("#") && /^[0-9a-fA-F]{3,8}$/.test(a) && (a = "#" + a), /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(a) && this.setValue(a);
|
|
570
|
+
}), this.hexInputEl.addEventListener("change", () => {
|
|
571
|
+
var h;
|
|
572
|
+
let a = this.hexInputEl.value.trim();
|
|
573
|
+
!a.startsWith("#") && /^[0-9a-fA-F]{3,8}$/.test(a) && (a = "#" + a), /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(a) ? ((h = this.soundEngine) == null || h.playClick(), this.setValue(a)) : this.update();
|
|
569
574
|
}), this.nativeColorInput.addEventListener("input", () => {
|
|
570
|
-
const
|
|
571
|
-
this.setValue(
|
|
575
|
+
const a = this.nativeColorInput.value;
|
|
576
|
+
this.setValue(a);
|
|
572
577
|
}), this.update();
|
|
573
578
|
}
|
|
574
579
|
setSoundEngine(e) {
|
|
@@ -589,16 +594,16 @@ class R extends C {
|
|
|
589
594
|
return [...this.swatches];
|
|
590
595
|
}
|
|
591
596
|
update() {
|
|
592
|
-
if (!this.previewEl || !this.
|
|
597
|
+
if (!this.previewEl || !this.hexInputEl) return this;
|
|
593
598
|
const e = String(this.getValue() || "#000000");
|
|
594
|
-
this.previewEl.style.backgroundColor = e, this.
|
|
599
|
+
this.previewEl.style.backgroundColor = e, document.activeElement !== this.hexInputEl && (this.hexInputEl.value = e.toUpperCase()), e.startsWith("#") && (e.length === 7 || e.length === 4) && (this.nativeColorInput.value = e.length === 4 ? `#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}` : e);
|
|
595
600
|
const t = e.toLowerCase();
|
|
596
601
|
for (const [n, s] of this.swatchButtons.entries())
|
|
597
602
|
n === t ? s.classList.add("relly-swatch-active") : s.classList.remove("relly-swatch-active");
|
|
598
603
|
return this;
|
|
599
604
|
}
|
|
600
605
|
}
|
|
601
|
-
class P extends
|
|
606
|
+
class P extends E {
|
|
602
607
|
constructor(e, t, n, s, r) {
|
|
603
608
|
super(e, t, n, s, r);
|
|
604
609
|
l(this, "containerEl");
|
|
@@ -608,25 +613,25 @@ class P extends C {
|
|
|
608
613
|
l(this, "max");
|
|
609
614
|
l(this, "step", 0.1);
|
|
610
615
|
this.containerEl = document.createElement("div"), this.containerEl.className = "relly-point2d-container";
|
|
611
|
-
const
|
|
612
|
-
|
|
613
|
-
const
|
|
614
|
-
|
|
616
|
+
const o = document.createElement("div");
|
|
617
|
+
o.className = "relly-point2d-item";
|
|
618
|
+
const a = document.createElement("span");
|
|
619
|
+
a.className = "relly-point2d-tag", a.textContent = "X", this.xInput = document.createElement("input"), this.xInput.type = "number", this.xInput.className = "relly-point2d-input", this.xInput.step = String(this.step), o.appendChild(a), o.appendChild(this.xInput);
|
|
615
620
|
const h = document.createElement("div");
|
|
616
621
|
h.className = "relly-point2d-item";
|
|
617
622
|
const c = document.createElement("span");
|
|
618
|
-
c.className = "relly-point2d-tag", c.textContent = "Y", this.yInput = document.createElement("input"), this.yInput.type = "number", this.yInput.className = "relly-point2d-input", this.yInput.step = String(this.step), h.appendChild(c), h.appendChild(this.yInput), this.containerEl.appendChild(
|
|
623
|
+
c.className = "relly-point2d-tag", c.textContent = "Y", this.yInput = document.createElement("input"), this.yInput.type = "number", this.yInput.className = "relly-point2d-input", this.yInput.step = String(this.step), h.appendChild(c), h.appendChild(this.yInput), this.containerEl.appendChild(o), this.containerEl.appendChild(h), this.controlEl.appendChild(this.containerEl), this.xInput.addEventListener("change", () => this.handleInputChange()), this.yInput.addEventListener("change", () => this.handleInputChange()), this.setupInputScrubbing(this.xInput, "x"), this.setupInputScrubbing(this.yInput, "y"), this.update();
|
|
619
624
|
}
|
|
620
625
|
setupInputScrubbing(e, t) {
|
|
621
626
|
let n = !1, s = 0, r = 0;
|
|
622
|
-
const
|
|
627
|
+
const o = (h) => {
|
|
623
628
|
const c = h.clientX - s;
|
|
624
629
|
if (!n && Math.abs(c) > 3 && (n = !0, typeof document < "u" && document.body.classList.add("relly-jog-scrubbing")), n) {
|
|
625
630
|
const m = h.shiftKey ? 10 : h.altKey ? 0.1 : 1, p = this.step * m;
|
|
626
631
|
let d = r + c * p;
|
|
627
632
|
this.min !== void 0 && (d = Math.max(this.min, d)), this.max !== void 0 && (d = Math.min(this.max, d));
|
|
628
|
-
const
|
|
629
|
-
d = Math.round(d * x) / x, d = parseFloat(d.toFixed(Math.min(
|
|
633
|
+
const y = (p.toString().split(".")[1] || "").length, x = 1 / p;
|
|
634
|
+
d = Math.round(d * x) / x, d = parseFloat(d.toFixed(Math.min(y, 4)));
|
|
630
635
|
const u = this.getValue();
|
|
631
636
|
if (Array.isArray(u)) {
|
|
632
637
|
const v = [u[0], u[1]];
|
|
@@ -635,11 +640,11 @@ class P extends C {
|
|
|
635
640
|
this.setValue({ ...u, [t]: d });
|
|
636
641
|
h.preventDefault();
|
|
637
642
|
}
|
|
638
|
-
},
|
|
639
|
-
n && typeof document < "u" && document.body.classList.remove("relly-jog-scrubbing"), typeof window < "u" && (window.removeEventListener("mousemove",
|
|
643
|
+
}, a = () => {
|
|
644
|
+
n && typeof document < "u" && document.body.classList.remove("relly-jog-scrubbing"), typeof window < "u" && (window.removeEventListener("mousemove", o), window.removeEventListener("mouseup", a));
|
|
640
645
|
};
|
|
641
646
|
e.addEventListener("mousedown", (h) => {
|
|
642
|
-
s = h.clientX, r = parseFloat(e.value) || 0, n = !1, typeof window < "u" && (window.addEventListener("mousemove",
|
|
647
|
+
s = h.clientX, r = parseFloat(e.value) || 0, n = !1, typeof window < "u" && (window.addEventListener("mousemove", o), window.addEventListener("mouseup", a));
|
|
643
648
|
});
|
|
644
649
|
}
|
|
645
650
|
setMin(e) {
|
|
@@ -671,7 +676,7 @@ class P extends C {
|
|
|
671
676
|
return Array.isArray(e) ? (t = e[0] || 0, n = e[1] || 0) : typeof e == "object" && e !== null && (t = e.x || 0, n = e.y || 0), this.xInput.value = String(t), this.yInput.value = String(n), this;
|
|
672
677
|
}
|
|
673
678
|
}
|
|
674
|
-
class D extends
|
|
679
|
+
class D extends E {
|
|
675
680
|
constructor(e, t, n, s, r) {
|
|
676
681
|
super(e, t, n, s, r);
|
|
677
682
|
l(this, "containerEl");
|
|
@@ -682,10 +687,10 @@ class D extends C {
|
|
|
682
687
|
l(this, "max");
|
|
683
688
|
l(this, "step", 0.1);
|
|
684
689
|
this.containerEl = document.createElement("div"), this.containerEl.className = "relly-point3d-container";
|
|
685
|
-
const
|
|
686
|
-
|
|
687
|
-
const
|
|
688
|
-
|
|
690
|
+
const o = document.createElement("div");
|
|
691
|
+
o.className = "relly-point3d-item";
|
|
692
|
+
const a = document.createElement("span");
|
|
693
|
+
a.className = "relly-point3d-tag relly-point3d-tag--x", a.textContent = "X", this.xInput = document.createElement("input"), this.xInput.type = "number", this.xInput.className = "relly-point3d-input", this.xInput.step = String(this.step), o.appendChild(a), o.appendChild(this.xInput);
|
|
689
694
|
const h = document.createElement("div");
|
|
690
695
|
h.className = "relly-point3d-item";
|
|
691
696
|
const c = document.createElement("span");
|
|
@@ -693,35 +698,35 @@ class D extends C {
|
|
|
693
698
|
const m = document.createElement("div");
|
|
694
699
|
m.className = "relly-point3d-item";
|
|
695
700
|
const p = document.createElement("span");
|
|
696
|
-
p.className = "relly-point3d-tag relly-point3d-tag--z", p.textContent = "Z", this.zInput = document.createElement("input"), this.zInput.type = "number", this.zInput.className = "relly-point3d-input", this.zInput.step = String(this.step), m.appendChild(p), m.appendChild(this.zInput), this.containerEl.appendChild(
|
|
701
|
+
p.className = "relly-point3d-tag relly-point3d-tag--z", p.textContent = "Z", this.zInput = document.createElement("input"), this.zInput.type = "number", this.zInput.className = "relly-point3d-input", this.zInput.step = String(this.step), m.appendChild(p), m.appendChild(this.zInput), this.containerEl.appendChild(o), this.containerEl.appendChild(h), this.containerEl.appendChild(m), this.controlEl.appendChild(this.containerEl), this.xInput.addEventListener("change", () => this.handleInputChange()), this.yInput.addEventListener("change", () => this.handleInputChange()), this.zInput.addEventListener("change", () => this.handleInputChange()), this.setupInputScrubbing(this.xInput, "x"), this.setupInputScrubbing(this.yInput, "y"), this.setupInputScrubbing(this.zInput, "z"), this.update();
|
|
697
702
|
}
|
|
698
703
|
setupInputScrubbing(e, t) {
|
|
699
704
|
let n = !1, s = 0, r = 0;
|
|
700
|
-
const
|
|
705
|
+
const o = (h) => {
|
|
701
706
|
const c = h.clientX - s;
|
|
702
707
|
if (!n && Math.abs(c) > 3 && (n = !0, typeof document < "u" && document.body.classList.add("relly-jog-scrubbing")), n) {
|
|
703
708
|
const m = h.shiftKey ? 10 : h.altKey ? 0.1 : 1, p = this.step * m;
|
|
704
709
|
let d = r + c * p;
|
|
705
710
|
this.min !== void 0 && (d = Math.max(this.min, d)), this.max !== void 0 && (d = Math.min(this.max, d));
|
|
706
|
-
const
|
|
707
|
-
d = Math.round(d * x) / x, d = parseFloat(d.toFixed(Math.min(
|
|
711
|
+
const y = (p.toString().split(".")[1] || "").length, x = 1 / p;
|
|
712
|
+
d = Math.round(d * x) / x, d = parseFloat(d.toFixed(Math.min(y, 4)));
|
|
708
713
|
const u = this.getValue();
|
|
709
714
|
if (Array.isArray(u)) {
|
|
710
715
|
const v = [
|
|
711
716
|
u[0] ?? 0,
|
|
712
717
|
u[1] ?? 0,
|
|
713
718
|
u[2] ?? 0
|
|
714
|
-
],
|
|
715
|
-
v[
|
|
719
|
+
], w = t === "x" ? 0 : t === "y" ? 1 : 2;
|
|
720
|
+
v[w] = d, this.setValue(v);
|
|
716
721
|
} else
|
|
717
722
|
this.setValue({ ...u, [t]: d });
|
|
718
723
|
h.preventDefault();
|
|
719
724
|
}
|
|
720
|
-
},
|
|
721
|
-
window.removeEventListener("mousemove",
|
|
725
|
+
}, a = () => {
|
|
726
|
+
window.removeEventListener("mousemove", o), window.removeEventListener("mouseup", a), n && (n = !1, typeof document < "u" && document.body.classList.remove("relly-jog-scrubbing"));
|
|
722
727
|
};
|
|
723
728
|
e.addEventListener("mousedown", (h) => {
|
|
724
|
-
h.button === 0 && (s = h.clientX, r = parseFloat(e.value) || 0, window.addEventListener("mousemove",
|
|
729
|
+
h.button === 0 && (s = h.clientX, r = parseFloat(e.value) || 0, window.addEventListener("mousemove", o), window.addEventListener("mouseup", a));
|
|
725
730
|
});
|
|
726
731
|
}
|
|
727
732
|
handleInputChange() {
|
|
@@ -749,8 +754,8 @@ class D extends C {
|
|
|
749
754
|
return Array.isArray(e) ? (t = e[0] || 0, n = e[1] || 0, s = e[2] || 0) : typeof e == "object" && e !== null && (t = e.x || 0, n = e.y || 0, s = e.z || 0), this.xInput.value = String(t), this.yInput.value = String(n), this.zInput.value = String(s), this;
|
|
750
755
|
}
|
|
751
756
|
}
|
|
752
|
-
class
|
|
753
|
-
constructor(e, t, n, s, r,
|
|
757
|
+
class j extends E {
|
|
758
|
+
constructor(e, t, n, s, r, o) {
|
|
754
759
|
super(e, t, n, s, r);
|
|
755
760
|
l(this, "wrapperEl");
|
|
756
761
|
l(this, "trackEl");
|
|
@@ -764,7 +769,7 @@ class H extends C {
|
|
|
764
769
|
l(this, "step", 1);
|
|
765
770
|
l(this, "soundEngine");
|
|
766
771
|
l(this, "formatter", (e, t) => `[${e.toFixed(1)}, ${t.toFixed(1)}]`);
|
|
767
|
-
this.soundEngine =
|
|
772
|
+
this.soundEngine = o, this.wrapperEl = document.createElement("div"), this.wrapperEl.className = "relly-range-wrapper", this.inputMin = document.createElement("input"), this.inputMin.type = "number", this.inputMin.className = "relly-range-input relly-range-input--min", this.trackEl = document.createElement("div"), this.trackEl.className = "relly-range-track", this.barEl = document.createElement("div"), this.barEl.className = "relly-range-bar", this.thumbMin = document.createElement("div"), this.thumbMin.className = "relly-range-thumb relly-range-thumb--min", this.thumbMin.title = "Drag min", this.thumbMax = document.createElement("div"), this.thumbMax.className = "relly-range-thumb relly-range-thumb--max", this.thumbMax.title = "Drag max", this.trackEl.appendChild(this.barEl), this.trackEl.appendChild(this.thumbMin), this.trackEl.appendChild(this.thumbMax), this.inputMax = document.createElement("input"), this.inputMax.type = "number", this.inputMax.className = "relly-range-input relly-range-input--max", this.wrapperEl.appendChild(this.inputMin), this.wrapperEl.appendChild(this.trackEl), this.wrapperEl.appendChild(this.inputMax), this.controlEl.appendChild(this.wrapperEl), this.setupListeners(), this.update();
|
|
768
773
|
}
|
|
769
774
|
setupListeners() {
|
|
770
775
|
this.inputMin.addEventListener("change", () => {
|
|
@@ -777,13 +782,13 @@ class H extends C {
|
|
|
777
782
|
}
|
|
778
783
|
setupThumbDrag(e, t) {
|
|
779
784
|
let n = !1;
|
|
780
|
-
const s = (
|
|
781
|
-
var
|
|
785
|
+
const s = (o) => {
|
|
786
|
+
var y, x;
|
|
782
787
|
if (!n) return;
|
|
783
|
-
const
|
|
788
|
+
const a = this.trackEl.getBoundingClientRect(), h = Math.max(0, Math.min(1, (o.clientX - a.left) / a.width)), c = this.min + h * (this.max - this.min), m = this.applyStep(c), [p, d] = this.getCurrentRange();
|
|
784
789
|
if (t === "min") {
|
|
785
790
|
const u = Math.min(m, d);
|
|
786
|
-
u !== p && ((
|
|
791
|
+
u !== p && ((y = this.soundEngine) == null || y.playTick(), this.setRangeValue(u, d));
|
|
787
792
|
} else {
|
|
788
793
|
const u = Math.max(m, p);
|
|
789
794
|
u !== d && ((x = this.soundEngine) == null || x.playTick(), this.setRangeValue(p, u));
|
|
@@ -791,28 +796,28 @@ class H extends C {
|
|
|
791
796
|
}, r = () => {
|
|
792
797
|
n && (n = !1, window.removeEventListener("mousemove", s), window.removeEventListener("mouseup", r));
|
|
793
798
|
};
|
|
794
|
-
e.addEventListener("mousedown", (
|
|
795
|
-
|
|
799
|
+
e.addEventListener("mousedown", (o) => {
|
|
800
|
+
o.button === 0 && (o.preventDefault(), o.stopPropagation(), n = !0, window.addEventListener("mousemove", s), window.addEventListener("mouseup", r));
|
|
796
801
|
});
|
|
797
802
|
}
|
|
798
803
|
setupBarDrag() {
|
|
799
804
|
let e = !1, t = 0, n = 0, s = 0;
|
|
800
|
-
const r = (
|
|
805
|
+
const r = (a) => {
|
|
801
806
|
var v;
|
|
802
807
|
if (!e) return;
|
|
803
|
-
const h = this.trackEl.getBoundingClientRect(), m = (
|
|
808
|
+
const h = this.trackEl.getBoundingClientRect(), m = (a.clientX - t) / h.width * (this.max - this.min), p = s - n;
|
|
804
809
|
let d = Math.max(this.min, Math.min(this.max - p, n + m));
|
|
805
810
|
d = this.applyStep(d);
|
|
806
|
-
const
|
|
807
|
-
(d !== x ||
|
|
808
|
-
},
|
|
809
|
-
e && (e = !1, window.removeEventListener("mousemove", r), window.removeEventListener("mouseup",
|
|
811
|
+
const y = this.applyStep(d + p), [x, u] = this.getCurrentRange();
|
|
812
|
+
(d !== x || y !== u) && ((v = this.soundEngine) == null || v.playTick(), this.setRangeValue(d, y));
|
|
813
|
+
}, o = () => {
|
|
814
|
+
e && (e = !1, window.removeEventListener("mousemove", r), window.removeEventListener("mouseup", o));
|
|
810
815
|
};
|
|
811
|
-
this.barEl.addEventListener("mousedown", (
|
|
812
|
-
if (
|
|
813
|
-
|
|
816
|
+
this.barEl.addEventListener("mousedown", (a) => {
|
|
817
|
+
if (a.button !== 0) return;
|
|
818
|
+
a.preventDefault(), a.stopPropagation(), e = !0, t = a.clientX;
|
|
814
819
|
const [h, c] = this.getCurrentRange();
|
|
815
|
-
n = h, s = c, window.addEventListener("mousemove", r), window.addEventListener("mouseup",
|
|
820
|
+
n = h, s = c, window.addEventListener("mousemove", r), window.addEventListener("mouseup", o);
|
|
816
821
|
});
|
|
817
822
|
}
|
|
818
823
|
applyStep(e) {
|
|
@@ -852,15 +857,15 @@ class H extends C {
|
|
|
852
857
|
return this.thumbMin.style.left = `${s}%`, this.thumbMax.style.left = `${r}%`, this.barEl.style.left = `${s}%`, this.barEl.style.width = `${Math.max(0, r - s)}%`, this.barEl.title = this.formatter(e, t), this.inputMin.value = String(e), this.inputMax.value = String(t), this;
|
|
853
858
|
}
|
|
854
859
|
}
|
|
855
|
-
class
|
|
856
|
-
constructor(e, t, n, s = [], r,
|
|
857
|
-
super(e, t, n, r,
|
|
860
|
+
class H extends E {
|
|
861
|
+
constructor(e, t, n, s = [], r, o, a) {
|
|
862
|
+
super(e, t, n, r, o);
|
|
858
863
|
l(this, "containerEl");
|
|
859
864
|
l(this, "gliderEl");
|
|
860
865
|
l(this, "buttons", /* @__PURE__ */ new Map());
|
|
861
866
|
l(this, "optionsMap", /* @__PURE__ */ new Map());
|
|
862
867
|
l(this, "soundEngine");
|
|
863
|
-
this.soundEngine =
|
|
868
|
+
this.soundEngine = a, this.containerEl = document.createElement("div"), this.containerEl.className = "relly-segmented-container", this.gliderEl = document.createElement("div"), this.gliderEl.className = "relly-segmented-glider", this.containerEl.appendChild(this.gliderEl), this.controlEl.appendChild(this.containerEl), this.setOptions(s);
|
|
864
869
|
}
|
|
865
870
|
setOptions(e) {
|
|
866
871
|
if (this.optionsMap.clear(), this.buttons.clear(), this.containerEl.innerHTML = "", this.containerEl.appendChild(this.gliderEl), Array.isArray(e))
|
|
@@ -899,7 +904,7 @@ class j extends C {
|
|
|
899
904
|
return this;
|
|
900
905
|
}
|
|
901
906
|
}
|
|
902
|
-
class F extends
|
|
907
|
+
class F extends E {
|
|
903
908
|
constructor(e, t, n, s) {
|
|
904
909
|
super(e, t, n, s);
|
|
905
910
|
l(this, "wrapperEl");
|
|
@@ -934,6 +939,172 @@ class F extends C {
|
|
|
934
939
|
return this.ledEl.className = `relly-status-led relly-status-led--${t}`, this.badgeEl.className = `relly-status-badge relly-status-badge--${t}`, this.badgeEl.textContent = this.customBadge || t.toUpperCase(), this.customDetail ? (this.detailEl.textContent = this.customDetail, this.detailEl.style.display = "inline-block") : this.detailEl.style.display = "none", this;
|
|
935
940
|
}
|
|
936
941
|
}
|
|
942
|
+
class q extends E {
|
|
943
|
+
constructor(e, t, n, s = {}, r, o, a) {
|
|
944
|
+
super(e, t, n, r, o);
|
|
945
|
+
l(this, "wrapperEl");
|
|
946
|
+
l(this, "inputEl");
|
|
947
|
+
l(this, "trackEl");
|
|
948
|
+
l(this, "thumbEl");
|
|
949
|
+
l(this, "statusTextEl");
|
|
950
|
+
l(this, "onLabel");
|
|
951
|
+
l(this, "offLabel");
|
|
952
|
+
l(this, "soundEngine");
|
|
953
|
+
this.soundEngine = a, this.onLabel = s.onLabel, this.offLabel = s.offLabel, this.wrapperEl = document.createElement("label"), this.wrapperEl.className = "relly-switch-wrap", this.inputEl = document.createElement("input"), this.inputEl.type = "checkbox", this.inputEl.className = "relly-switch-native", this.trackEl = document.createElement("span"), this.trackEl.className = "relly-switch-track", this.thumbEl = document.createElement("span"), this.thumbEl.className = "relly-switch-thumb", this.trackEl.appendChild(this.thumbEl), this.statusTextEl = document.createElement("span"), this.statusTextEl.className = "relly-switch-text", this.wrapperEl.appendChild(this.inputEl), this.wrapperEl.appendChild(this.trackEl), this.wrapperEl.appendChild(this.statusTextEl), this.controlEl.appendChild(this.wrapperEl), this.inputEl.addEventListener("change", () => {
|
|
954
|
+
var c;
|
|
955
|
+
const h = this.inputEl.checked;
|
|
956
|
+
(c = this.soundEngine) == null || c.playToggle(h), this.setValue(h);
|
|
957
|
+
}), s.disabled && this.setDisabled(!0), s.tooltip && this.setTooltip(s.tooltip), this.update();
|
|
958
|
+
}
|
|
959
|
+
setSoundEngine(e) {
|
|
960
|
+
return this.soundEngine = e, this;
|
|
961
|
+
}
|
|
962
|
+
setOnLabel(e) {
|
|
963
|
+
return this.onLabel = e, this.update(), this;
|
|
964
|
+
}
|
|
965
|
+
setOffLabel(e) {
|
|
966
|
+
return this.offLabel = e, this.update(), this;
|
|
967
|
+
}
|
|
968
|
+
onToggle(e) {
|
|
969
|
+
return this.onChange(e);
|
|
970
|
+
}
|
|
971
|
+
setDisabled(e) {
|
|
972
|
+
return super.setDisabled(e), this.inputEl && (this.inputEl.disabled = e), this;
|
|
973
|
+
}
|
|
974
|
+
update() {
|
|
975
|
+
if (!this.inputEl || !this.trackEl) return this;
|
|
976
|
+
const e = !!this.getValue();
|
|
977
|
+
return this.inputEl.checked = e, e ? this.trackEl.classList.add("relly-switch-track--checked") : this.trackEl.classList.remove("relly-switch-track--checked"), this.onLabel || this.offLabel ? (this.statusTextEl.textContent = e ? this.onLabel || "ON" : this.offLabel || "OFF", this.statusTextEl.style.display = "inline-block") : this.statusTextEl.style.display = "none", this;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
class J extends E {
|
|
981
|
+
constructor(e = [], t) {
|
|
982
|
+
super("");
|
|
983
|
+
l(this, "groupContainerEl");
|
|
984
|
+
l(this, "buttonElements", []);
|
|
985
|
+
l(this, "soundEngine");
|
|
986
|
+
this.soundEngine = t, this.element.className = "relly-row relly-button-group-row", this.element.innerHTML = "", this.groupContainerEl = document.createElement("div"), this.groupContainerEl.className = "relly-button-group", this.element.appendChild(this.groupContainerEl);
|
|
987
|
+
for (const n of e)
|
|
988
|
+
this.addButton(n);
|
|
989
|
+
}
|
|
990
|
+
addButton(e) {
|
|
991
|
+
const t = document.createElement("button");
|
|
992
|
+
return t.type = "button", t.className = "relly-btn relly-btn--group", t.textContent = e.label, e.danger && t.classList.add("relly-btn--danger"), e.primary && t.classList.add("relly-btn--primary"), e.disabled && (t.disabled = !0), e.tooltip && (t.title = e.tooltip), t.addEventListener("click", (n) => {
|
|
993
|
+
var s;
|
|
994
|
+
n.stopPropagation(), (s = this.soundEngine) == null || s.playClick(), e.onClick(t);
|
|
995
|
+
}), this.buttonElements.push(t), this.groupContainerEl.appendChild(t), this;
|
|
996
|
+
}
|
|
997
|
+
setSoundEngine(e) {
|
|
998
|
+
return this.soundEngine = e, this;
|
|
999
|
+
}
|
|
1000
|
+
setDisabled(e) {
|
|
1001
|
+
super.setDisabled(e);
|
|
1002
|
+
for (const t of this.buttonElements)
|
|
1003
|
+
t.disabled = e;
|
|
1004
|
+
return this;
|
|
1005
|
+
}
|
|
1006
|
+
update() {
|
|
1007
|
+
return this;
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
class $ extends E {
|
|
1011
|
+
constructor(e, t, n, s = {}, r, o, a) {
|
|
1012
|
+
super(e, t, n, r, o);
|
|
1013
|
+
l(this, "wrapperEl");
|
|
1014
|
+
l(this, "inputEl");
|
|
1015
|
+
l(this, "clearBtn");
|
|
1016
|
+
l(this, "soundEngine");
|
|
1017
|
+
this.soundEngine = a, this.wrapperEl = document.createElement("div"), this.wrapperEl.className = "relly-text-wrap", this.inputEl = document.createElement("input"), this.inputEl.type = "text", this.inputEl.className = "relly-text-input", this.inputEl.spellcheck = !1, s.placeholder && (this.inputEl.placeholder = s.placeholder), s.maxLength && (this.inputEl.maxLength = s.maxLength), s.readOnly && (this.inputEl.readOnly = !0), this.wrapperEl.appendChild(this.inputEl), s.clearable && (this.clearBtn = document.createElement("button"), this.clearBtn.type = "button", this.clearBtn.className = "relly-text-clear", this.clearBtn.innerHTML = "✕", this.clearBtn.title = "Clear text", this.clearBtn.style.display = "none", this.clearBtn.addEventListener("click", (h) => {
|
|
1018
|
+
h.stopPropagation(), this.setValue(""), this.inputEl.focus();
|
|
1019
|
+
}), this.wrapperEl.appendChild(this.clearBtn)), this.controlEl.appendChild(this.wrapperEl), this.inputEl.addEventListener("input", () => {
|
|
1020
|
+
const h = this.inputEl.value;
|
|
1021
|
+
this.setValue(h), this.updateClearBtn(h);
|
|
1022
|
+
}), this.inputEl.addEventListener("change", () => {
|
|
1023
|
+
var h;
|
|
1024
|
+
(h = this.soundEngine) == null || h.playClick(), this.setValue(this.inputEl.value);
|
|
1025
|
+
}), s.disabled && this.setDisabled(!0), s.tooltip && this.setTooltip(s.tooltip), this.update();
|
|
1026
|
+
}
|
|
1027
|
+
setSoundEngine(e) {
|
|
1028
|
+
return this.soundEngine = e, this;
|
|
1029
|
+
}
|
|
1030
|
+
setPlaceholder(e) {
|
|
1031
|
+
return this.inputEl.placeholder = e, this;
|
|
1032
|
+
}
|
|
1033
|
+
setMaxLength(e) {
|
|
1034
|
+
return this.inputEl.maxLength = e, this;
|
|
1035
|
+
}
|
|
1036
|
+
setReadOnly(e) {
|
|
1037
|
+
return this.inputEl.readOnly = e, this;
|
|
1038
|
+
}
|
|
1039
|
+
setDisabled(e) {
|
|
1040
|
+
return super.setDisabled(e), this.inputEl && (this.inputEl.disabled = e), this;
|
|
1041
|
+
}
|
|
1042
|
+
updateClearBtn(e) {
|
|
1043
|
+
this.clearBtn && (this.clearBtn.style.display = e.length > 0 ? "flex" : "none");
|
|
1044
|
+
}
|
|
1045
|
+
update() {
|
|
1046
|
+
if (!this.inputEl) return this;
|
|
1047
|
+
const e = String(this.getValue() ?? "");
|
|
1048
|
+
return document.activeElement !== this.inputEl && (this.inputEl.value = e), this.updateClearBtn(e), this;
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
class U extends E {
|
|
1052
|
+
constructor(e, t, n, s = {}, r) {
|
|
1053
|
+
super(e, t, n, r);
|
|
1054
|
+
l(this, "trackEl");
|
|
1055
|
+
l(this, "barEl");
|
|
1056
|
+
l(this, "valueEl");
|
|
1057
|
+
l(this, "min", 0);
|
|
1058
|
+
l(this, "max", 100);
|
|
1059
|
+
l(this, "showValue", !0);
|
|
1060
|
+
l(this, "formatter");
|
|
1061
|
+
this.min = s.min ?? 0, this.max = s.max ?? 100, this.showValue = s.showValue !== !1, this.formatter = s.format || ((a, h) => `${Math.round(h)}%`);
|
|
1062
|
+
const o = document.createElement("div");
|
|
1063
|
+
o.className = "relly-progress-wrap", this.trackEl = document.createElement("div"), this.trackEl.className = "relly-progress-track", this.barEl = document.createElement("div"), this.barEl.className = "relly-progress-bar", s.color && (this.barEl.style.backgroundColor = s.color, this.barEl.style.boxShadow = `0 0 10px ${s.color}88`), this.trackEl.appendChild(this.barEl), this.valueEl = document.createElement("span"), this.valueEl.className = "relly-progress-text", this.valueEl.style.display = this.showValue ? "inline-block" : "none", o.appendChild(this.trackEl), o.appendChild(this.valueEl), this.controlEl.appendChild(o), s.tooltip && this.setTooltip(s.tooltip), this.update();
|
|
1064
|
+
}
|
|
1065
|
+
setMin(e) {
|
|
1066
|
+
return this.min = e, this.update(), this;
|
|
1067
|
+
}
|
|
1068
|
+
setMax(e) {
|
|
1069
|
+
return this.max = e, this.update(), this;
|
|
1070
|
+
}
|
|
1071
|
+
setColor(e) {
|
|
1072
|
+
return this.barEl.style.backgroundColor = e, this.barEl.style.boxShadow = `0 0 10px ${e}88`, this;
|
|
1073
|
+
}
|
|
1074
|
+
setShowValue(e) {
|
|
1075
|
+
return this.showValue = e, this.valueEl.style.display = e ? "inline-block" : "none", this;
|
|
1076
|
+
}
|
|
1077
|
+
setFormat(e) {
|
|
1078
|
+
return this.formatter = e, this.update(), this;
|
|
1079
|
+
}
|
|
1080
|
+
update() {
|
|
1081
|
+
if (!this.barEl || !this.valueEl) return this;
|
|
1082
|
+
const e = Number(this.getValue()) || 0, t = Math.max(this.min, Math.min(this.max, e)), n = this.max - this.min || 1, s = Math.max(0, Math.min(100, (t - this.min) / n * 100));
|
|
1083
|
+
return this.barEl.style.width = `${s}%`, this.valueEl.textContent = this.formatter(e, s), this;
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
class Y extends E {
|
|
1087
|
+
constructor(e, t = !1) {
|
|
1088
|
+
super("");
|
|
1089
|
+
l(this, "titleEl");
|
|
1090
|
+
l(this, "lineLeftEl");
|
|
1091
|
+
l(this, "lineRightEl");
|
|
1092
|
+
this.element.className = "relly-separator-row", this.element.innerHTML = "";
|
|
1093
|
+
const n = document.createElement("div");
|
|
1094
|
+
n.className = "relly-separator", t && n.classList.add("relly-separator--dashed"), this.lineLeftEl = document.createElement("span"), this.lineLeftEl.className = "relly-separator-line", n.appendChild(this.lineLeftEl), e && (n.classList.add("relly-separator--has-title"), this.titleEl = document.createElement("span"), this.titleEl.className = "relly-separator-title", this.titleEl.textContent = e, n.appendChild(this.titleEl), this.lineRightEl = document.createElement("span"), this.lineRightEl.className = "relly-separator-line", n.appendChild(this.lineRightEl)), this.element.appendChild(n);
|
|
1095
|
+
}
|
|
1096
|
+
setTitle(e) {
|
|
1097
|
+
if (!this.titleEl) {
|
|
1098
|
+
this.titleEl = document.createElement("span"), this.titleEl.className = "relly-separator-title";
|
|
1099
|
+
const t = this.element.querySelector(".relly-separator");
|
|
1100
|
+
t.classList.add("relly-separator--has-title"), t.appendChild(this.titleEl), this.lineRightEl = document.createElement("span"), this.lineRightEl.className = "relly-separator-line", t.appendChild(this.lineRightEl);
|
|
1101
|
+
}
|
|
1102
|
+
return this.titleEl.textContent = e, this;
|
|
1103
|
+
}
|
|
1104
|
+
update() {
|
|
1105
|
+
return this;
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
937
1108
|
class T {
|
|
938
1109
|
constructor(i, e, t, n) {
|
|
939
1110
|
l(this, "children", []);
|
|
@@ -949,11 +1120,11 @@ class T {
|
|
|
949
1120
|
onSectionExpanded(i) {
|
|
950
1121
|
if (this.accordion)
|
|
951
1122
|
for (const e of this.children)
|
|
952
|
-
e instanceof
|
|
1123
|
+
e instanceof G && e !== i && e.setCollapsed(!0);
|
|
953
1124
|
}
|
|
954
1125
|
addCheckbox(i, e) {
|
|
955
1126
|
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
956
|
-
const s = i, r = s.label || s.property.charAt(0).toUpperCase() + s.property.slice(1),
|
|
1127
|
+
const s = i, r = s.label || s.property.charAt(0).toUpperCase() + s.property.slice(1), o = new I(
|
|
957
1128
|
r,
|
|
958
1129
|
s.object,
|
|
959
1130
|
s.property,
|
|
@@ -961,9 +1132,9 @@ class T {
|
|
|
961
1132
|
this.presetManager,
|
|
962
1133
|
this.soundEngine
|
|
963
1134
|
);
|
|
964
|
-
return s.tooltip &&
|
|
1135
|
+
return s.tooltip && o.setTooltip(s.tooltip), (s.onChange || s.onToggle) && o.onChange(s.onChange || s.onToggle), s.listen && o.listen(), s.showIf && o.showIf(s.showIf), this.contentEl.appendChild(o.element), this.children.push(o), o;
|
|
965
1136
|
}
|
|
966
|
-
const t = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", n = new
|
|
1137
|
+
const t = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", n = new I(
|
|
967
1138
|
t,
|
|
968
1139
|
i,
|
|
969
1140
|
e,
|
|
@@ -978,7 +1149,7 @@ class T {
|
|
|
978
1149
|
}
|
|
979
1150
|
addSlider(i, e) {
|
|
980
1151
|
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
981
|
-
const s = i, r = s.label || s.property.charAt(0).toUpperCase() + s.property.slice(1),
|
|
1152
|
+
const s = i, r = s.label || s.property.charAt(0).toUpperCase() + s.property.slice(1), o = new V(
|
|
982
1153
|
r,
|
|
983
1154
|
s.object,
|
|
984
1155
|
s.property,
|
|
@@ -986,7 +1157,7 @@ class T {
|
|
|
986
1157
|
this.presetManager,
|
|
987
1158
|
this.soundEngine
|
|
988
1159
|
);
|
|
989
|
-
return s.min !== void 0 &&
|
|
1160
|
+
return s.min !== void 0 && o.setMin(s.min), s.max !== void 0 && o.setMax(s.max), s.step !== void 0 && o.setStep(s.step), s.tooltip && o.setTooltip(s.tooltip), s.onChange && o.onChange(s.onChange), s.listen && o.listen(), s.showIf && o.showIf(s.showIf), this.contentEl.appendChild(o.element), this.children.push(o), o;
|
|
990
1161
|
}
|
|
991
1162
|
const t = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", n = new V(
|
|
992
1163
|
t,
|
|
@@ -1014,8 +1185,8 @@ class T {
|
|
|
1014
1185
|
}
|
|
1015
1186
|
addSelect(i, e, t) {
|
|
1016
1187
|
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
1017
|
-
const r = i,
|
|
1018
|
-
return r.tooltip &&
|
|
1188
|
+
const r = i, o = r.label || r.property.charAt(0).toUpperCase() + r.property.slice(1), a = new z(o, r.object, r.property, r.options, this.bindingEngine, this.presetManager);
|
|
1189
|
+
return r.tooltip && a.setTooltip(r.tooltip), r.onChange && a.onChange(r.onChange), r.listen && a.listen(), r.showIf && a.showIf(r.showIf), this.contentEl.appendChild(a.element), this.children.push(a), a;
|
|
1019
1190
|
}
|
|
1020
1191
|
const n = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", s = new z(
|
|
1021
1192
|
n,
|
|
@@ -1032,8 +1203,8 @@ class T {
|
|
|
1032
1203
|
}
|
|
1033
1204
|
addDynamicLabel(i, e) {
|
|
1034
1205
|
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
1035
|
-
const s = i, r = s.label || s.property.charAt(0).toUpperCase() + s.property.slice(1),
|
|
1036
|
-
return s.format &&
|
|
1206
|
+
const s = i, r = s.label || s.property.charAt(0).toUpperCase() + s.property.slice(1), o = new B(r, s.object, s.property, this.bindingEngine);
|
|
1207
|
+
return s.format && o.setFormat(s.format), s.tooltip && o.setTooltip(s.tooltip), s.showIf && o.showIf(s.showIf), this.contentEl.appendChild(o.element), this.children.push(o), o;
|
|
1037
1208
|
}
|
|
1038
1209
|
const t = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", n = new B(t, i, e, this.bindingEngine);
|
|
1039
1210
|
return this.contentEl.appendChild(n.element), this.children.push(n), n;
|
|
@@ -1043,8 +1214,8 @@ class T {
|
|
|
1043
1214
|
}
|
|
1044
1215
|
addGraph(i, e) {
|
|
1045
1216
|
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
1046
|
-
const s = i, r = s.label || s.property.charAt(0).toUpperCase() + s.property.slice(1),
|
|
1047
|
-
return s.range &&
|
|
1217
|
+
const s = i, r = s.label || s.property.charAt(0).toUpperCase() + s.property.slice(1), o = new N(r, s.object, s.property, this.bindingEngine, this.soundEngine);
|
|
1218
|
+
return s.range && o.setRange(s.range[0], s.range[1]), s.color && o.setColor(s.color, s.fillColor), s.bufferSize && o.setBufferSize(s.bufferSize), s.smooth !== void 0 && o.setSmooth(s.smooth), s.height && o.setHeight(s.height), s.format && o.setFormat(s.format), s.tooltip && o.setTooltip(s.tooltip), s.showIf && o.showIf(s.showIf), this.contentEl.appendChild(o.element), this.children.push(o), o;
|
|
1048
1219
|
}
|
|
1049
1220
|
const t = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", n = new N(t, i, e, this.bindingEngine, this.soundEngine);
|
|
1050
1221
|
return this.contentEl.appendChild(n.element), this.children.push(n), n;
|
|
@@ -1059,10 +1230,10 @@ class T {
|
|
|
1059
1230
|
t++, h >= n + 1e3 && (e.fps = Math.round(t * 1e3 / (h - n)), t = 0, n = h), s = requestAnimationFrame(r);
|
|
1060
1231
|
};
|
|
1061
1232
|
typeof requestAnimationFrame < "u" && (s = requestAnimationFrame(r));
|
|
1062
|
-
const
|
|
1063
|
-
return
|
|
1064
|
-
typeof cancelAnimationFrame < "u" && s && cancelAnimationFrame(s),
|
|
1065
|
-
},
|
|
1233
|
+
const o = this.addGraph(e, "fps").setLabel(i).setRange(0, 120).setColor("#22c55e", "rgba(34, 197, 94, 0.25)").setFormat((h) => `${Math.round(h)} FPS`), a = o.destroy.bind(o);
|
|
1234
|
+
return o.destroy = () => {
|
|
1235
|
+
typeof cancelAnimationFrame < "u" && s && cancelAnimationFrame(s), a();
|
|
1236
|
+
}, o;
|
|
1066
1237
|
}
|
|
1067
1238
|
createFPSGraph(i = "FPS") {
|
|
1068
1239
|
return this.addFPSGraph(i);
|
|
@@ -1072,13 +1243,13 @@ class T {
|
|
|
1072
1243
|
let t;
|
|
1073
1244
|
const n = () => {
|
|
1074
1245
|
if (typeof performance < "u" && performance.memory) {
|
|
1075
|
-
const
|
|
1076
|
-
e.mem = Number(
|
|
1246
|
+
const o = performance.memory.usedJSHeapSize / 1048576;
|
|
1247
|
+
e.mem = Number(o.toFixed(1));
|
|
1077
1248
|
} else
|
|
1078
1249
|
e.mem = Number((Math.sin(Date.now() / 2500) * 8 + 48).toFixed(1));
|
|
1079
1250
|
};
|
|
1080
1251
|
n(), typeof setInterval < "u" && (t = setInterval(n, 1e3));
|
|
1081
|
-
const s = this.addGraph(e, "mem").setLabel(i).setAutoRange(!0).setColor("#a855f7", "rgba(168, 85, 247, 0.25)").setFormat((
|
|
1252
|
+
const s = this.addGraph(e, "mem").setLabel(i).setAutoRange(!0).setColor("#a855f7", "rgba(168, 85, 247, 0.25)").setFormat((o) => `${o.toFixed(1)} MB`), r = s.destroy.bind(s);
|
|
1082
1253
|
return s.destroy = () => {
|
|
1083
1254
|
t && clearInterval(t), r();
|
|
1084
1255
|
}, s;
|
|
@@ -1088,7 +1259,7 @@ class T {
|
|
|
1088
1259
|
}
|
|
1089
1260
|
addColor(i, e) {
|
|
1090
1261
|
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
1091
|
-
const s = i, r = s.label || s.property.charAt(0).toUpperCase() + s.property.slice(1),
|
|
1262
|
+
const s = i, r = s.label || s.property.charAt(0).toUpperCase() + s.property.slice(1), o = new R(
|
|
1092
1263
|
r,
|
|
1093
1264
|
s.object,
|
|
1094
1265
|
s.property,
|
|
@@ -1096,7 +1267,7 @@ class T {
|
|
|
1096
1267
|
this.presetManager,
|
|
1097
1268
|
this.soundEngine
|
|
1098
1269
|
);
|
|
1099
|
-
return s.tooltip &&
|
|
1270
|
+
return s.tooltip && o.setTooltip(s.tooltip), s.swatches && o.setSwatches(s.swatches), s.onChange && o.onChange(s.onChange), s.listen && o.listen(), s.showIf && o.showIf(s.showIf), this.contentEl.appendChild(o.element), this.children.push(o), o;
|
|
1100
1271
|
}
|
|
1101
1272
|
const t = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", n = new R(
|
|
1102
1273
|
t,
|
|
@@ -1113,8 +1284,8 @@ class T {
|
|
|
1113
1284
|
}
|
|
1114
1285
|
addPoint2D(i, e, t) {
|
|
1115
1286
|
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
1116
|
-
const r = i,
|
|
1117
|
-
return r.min !== void 0 &&
|
|
1287
|
+
const r = i, o = r.label || r.property.charAt(0).toUpperCase() + r.property.slice(1), a = new P(o, r.object, r.property, this.bindingEngine, this.presetManager);
|
|
1288
|
+
return r.min !== void 0 && a.setMin(r.min), r.max !== void 0 && a.setMax(r.max), r.step !== void 0 && a.setStep(r.step), r.tooltip && a.setTooltip(r.tooltip), r.onChange && a.onChange(r.onChange), r.listen && a.listen(), r.showIf && a.showIf(r.showIf), this.contentEl.appendChild(a.element), this.children.push(a), a;
|
|
1118
1289
|
}
|
|
1119
1290
|
const n = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", s = new P(n, i, e, this.bindingEngine, this.presetManager);
|
|
1120
1291
|
return (t == null ? void 0 : t.min) !== void 0 && s.setMin(t.min), (t == null ? void 0 : t.max) !== void 0 && s.setMax(t.max), (t == null ? void 0 : t.step) !== void 0 && s.setStep(t.step), this.contentEl.appendChild(s.element), this.children.push(s), s;
|
|
@@ -1124,8 +1295,8 @@ class T {
|
|
|
1124
1295
|
}
|
|
1125
1296
|
addPoint3D(i, e, t) {
|
|
1126
1297
|
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
1127
|
-
const r = i,
|
|
1128
|
-
return r.min !== void 0 &&
|
|
1298
|
+
const r = i, o = r.label || r.property.charAt(0).toUpperCase() + r.property.slice(1), a = new D(o, r.object, r.property, this.bindingEngine, this.presetManager);
|
|
1299
|
+
return r.min !== void 0 && a.setMin(r.min), r.max !== void 0 && a.setMax(r.max), r.step !== void 0 && a.setStep(r.step), r.tooltip && a.setTooltip(r.tooltip), r.contextMenu && a.setContextMenu(r.contextMenu), r.onChange && a.onChange(r.onChange), r.listen && a.listen(), r.showIf && a.showIf(r.showIf), this.contentEl.appendChild(a.element), this.children.push(a), a;
|
|
1129
1300
|
}
|
|
1130
1301
|
const n = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", s = new D(n, i, e, this.bindingEngine, this.presetManager);
|
|
1131
1302
|
return (t == null ? void 0 : t.min) !== void 0 && s.setMin(t.min), (t == null ? void 0 : t.max) !== void 0 && s.setMax(t.max), (t == null ? void 0 : t.step) !== void 0 && s.setStep(t.step), this.contentEl.appendChild(s.element), this.children.push(s), s;
|
|
@@ -1141,17 +1312,17 @@ class T {
|
|
|
1141
1312
|
}
|
|
1142
1313
|
addRange(i, e, t) {
|
|
1143
1314
|
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
1144
|
-
const r = i,
|
|
1145
|
-
|
|
1315
|
+
const r = i, o = r.label || r.property.charAt(0).toUpperCase() + r.property.slice(1), a = new j(
|
|
1316
|
+
o,
|
|
1146
1317
|
r.object,
|
|
1147
1318
|
r.property,
|
|
1148
1319
|
this.bindingEngine,
|
|
1149
1320
|
this.presetManager,
|
|
1150
1321
|
this.soundEngine
|
|
1151
1322
|
);
|
|
1152
|
-
return r.min !== void 0 &&
|
|
1323
|
+
return r.min !== void 0 && a.setMin(r.min), r.max !== void 0 && a.setMax(r.max), r.step !== void 0 && a.setStep(r.step), r.tooltip && a.setTooltip(r.tooltip), r.contextMenu && a.setContextMenu(r.contextMenu), r.onChange && a.onChange(r.onChange), r.listen && a.listen(), r.showIf && a.showIf(r.showIf), this.contentEl.appendChild(a.element), this.children.push(a), a;
|
|
1153
1324
|
}
|
|
1154
|
-
const n = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", s = new
|
|
1325
|
+
const n = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", s = new j(
|
|
1155
1326
|
n,
|
|
1156
1327
|
i,
|
|
1157
1328
|
e,
|
|
@@ -1166,8 +1337,8 @@ class T {
|
|
|
1166
1337
|
}
|
|
1167
1338
|
addSegmented(i, e, t) {
|
|
1168
1339
|
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
1169
|
-
const r = i,
|
|
1170
|
-
|
|
1340
|
+
const r = i, o = r.label || r.property.charAt(0).toUpperCase() + r.property.slice(1), a = new H(
|
|
1341
|
+
o,
|
|
1171
1342
|
r.object,
|
|
1172
1343
|
r.property,
|
|
1173
1344
|
r.options || [],
|
|
@@ -1175,9 +1346,9 @@ class T {
|
|
|
1175
1346
|
this.presetManager,
|
|
1176
1347
|
this.soundEngine
|
|
1177
1348
|
);
|
|
1178
|
-
return r.tooltip &&
|
|
1349
|
+
return r.tooltip && a.setTooltip(r.tooltip), r.contextMenu && a.setContextMenu(r.contextMenu), r.onChange && a.onChange(r.onChange), r.listen && a.listen(), r.showIf && a.showIf(r.showIf), this.contentEl.appendChild(a.element), this.children.push(a), a;
|
|
1179
1350
|
}
|
|
1180
|
-
const n = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", s = new
|
|
1351
|
+
const n = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", s = new H(
|
|
1181
1352
|
n,
|
|
1182
1353
|
i,
|
|
1183
1354
|
e,
|
|
@@ -1201,10 +1372,10 @@ class T {
|
|
|
1201
1372
|
);
|
|
1202
1373
|
return c.status && p.setStatus(c.status, c.badge, c.detail), c.badge && p.setBadge(c.badge), c.detail && p.setDetail(c.detail), c.tooltip && p.setTooltip(c.tooltip), c.contextMenu && p.setContextMenu(c.contextMenu), c.listen && p.listen(), c.showIf && p.showIf(c.showIf), this.contentEl.appendChild(p.element), this.children.push(p), p;
|
|
1203
1374
|
}
|
|
1204
|
-
const r = e ? e.charAt(0).toUpperCase() + e.slice(1) : typeof i == "string" ? i : "Status",
|
|
1375
|
+
const r = e ? e.charAt(0).toUpperCase() + e.slice(1) : typeof i == "string" ? i : "Status", o = typeof i == "string" ? void 0 : i, a = typeof i == "string" ? void 0 : e, h = new F(
|
|
1205
1376
|
r,
|
|
1206
|
-
a,
|
|
1207
1377
|
o,
|
|
1378
|
+
a,
|
|
1208
1379
|
this.bindingEngine
|
|
1209
1380
|
);
|
|
1210
1381
|
return h.setStatus(t, n, s), this.contentEl.appendChild(h.element), this.children.push(h), h;
|
|
@@ -1212,8 +1383,107 @@ class T {
|
|
|
1212
1383
|
createStatus(i, e, t = "online", n, s) {
|
|
1213
1384
|
return this.addStatus(i, e, t, n, s);
|
|
1214
1385
|
}
|
|
1386
|
+
addSwitch(i, e, t) {
|
|
1387
|
+
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
1388
|
+
const r = i, o = r.label || r.property.charAt(0).toUpperCase() + r.property.slice(1), a = new q(
|
|
1389
|
+
o,
|
|
1390
|
+
r.object,
|
|
1391
|
+
r.property,
|
|
1392
|
+
r,
|
|
1393
|
+
this.bindingEngine,
|
|
1394
|
+
this.presetManager,
|
|
1395
|
+
this.soundEngine
|
|
1396
|
+
);
|
|
1397
|
+
return r.tooltip && a.setTooltip(r.tooltip), r.contextMenu && a.setContextMenu(r.contextMenu), r.onToggle && a.onToggle(r.onToggle), r.onChange && a.onChange(r.onChange), r.listen && a.listen(), r.showIf && a.showIf(r.showIf), this.contentEl.appendChild(a.element), this.children.push(a), a;
|
|
1398
|
+
}
|
|
1399
|
+
const n = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", s = new q(
|
|
1400
|
+
n,
|
|
1401
|
+
i,
|
|
1402
|
+
e,
|
|
1403
|
+
t || {},
|
|
1404
|
+
this.bindingEngine,
|
|
1405
|
+
this.presetManager,
|
|
1406
|
+
this.soundEngine
|
|
1407
|
+
);
|
|
1408
|
+
return this.contentEl.appendChild(s.element), this.children.push(s), s;
|
|
1409
|
+
}
|
|
1410
|
+
createSwitch(i, e, t) {
|
|
1411
|
+
return this.addSwitch(i, e, t);
|
|
1412
|
+
}
|
|
1413
|
+
addButtonGroup(i) {
|
|
1414
|
+
const e = new J(i, this.soundEngine);
|
|
1415
|
+
return this.contentEl.appendChild(e.element), this.children.push(e), e;
|
|
1416
|
+
}
|
|
1417
|
+
createButtonGroup(i) {
|
|
1418
|
+
return this.addButtonGroup(i);
|
|
1419
|
+
}
|
|
1420
|
+
addText(i, e, t) {
|
|
1421
|
+
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
1422
|
+
const r = i, o = r.label || r.property.charAt(0).toUpperCase() + r.property.slice(1), a = new $(
|
|
1423
|
+
o,
|
|
1424
|
+
r.object,
|
|
1425
|
+
r.property,
|
|
1426
|
+
r,
|
|
1427
|
+
this.bindingEngine,
|
|
1428
|
+
this.presetManager,
|
|
1429
|
+
this.soundEngine
|
|
1430
|
+
);
|
|
1431
|
+
return r.tooltip && a.setTooltip(r.tooltip), r.contextMenu && a.setContextMenu(r.contextMenu), r.onChange && a.onChange(r.onChange), r.listen && a.listen(), r.showIf && a.showIf(r.showIf), this.contentEl.appendChild(a.element), this.children.push(a), a;
|
|
1432
|
+
}
|
|
1433
|
+
const n = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", s = new $(
|
|
1434
|
+
n,
|
|
1435
|
+
i,
|
|
1436
|
+
e,
|
|
1437
|
+
t || {},
|
|
1438
|
+
this.bindingEngine,
|
|
1439
|
+
this.presetManager,
|
|
1440
|
+
this.soundEngine
|
|
1441
|
+
);
|
|
1442
|
+
return this.contentEl.appendChild(s.element), this.children.push(s), s;
|
|
1443
|
+
}
|
|
1444
|
+
createText(i, e, t) {
|
|
1445
|
+
return this.addText(i, e, t);
|
|
1446
|
+
}
|
|
1447
|
+
addInput(i, e, t) {
|
|
1448
|
+
return this.addText(i, e, t);
|
|
1449
|
+
}
|
|
1450
|
+
createInput(i, e, t) {
|
|
1451
|
+
return this.addText(i, e, t);
|
|
1452
|
+
}
|
|
1453
|
+
addProgress(i, e, t) {
|
|
1454
|
+
if (typeof i == "object" && i !== null && e === void 0 && "object" in i && "property" in i) {
|
|
1455
|
+
const r = i, o = r.label || r.property.charAt(0).toUpperCase() + r.property.slice(1), a = new U(
|
|
1456
|
+
o,
|
|
1457
|
+
r.object,
|
|
1458
|
+
r.property,
|
|
1459
|
+
r,
|
|
1460
|
+
this.bindingEngine
|
|
1461
|
+
);
|
|
1462
|
+
return r.tooltip && a.setTooltip(r.tooltip), r.listen && a.listen(), r.showIf && a.showIf(r.showIf), this.contentEl.appendChild(a.element), this.children.push(a), a;
|
|
1463
|
+
}
|
|
1464
|
+
const n = e ? e.charAt(0).toUpperCase() + e.slice(1) : "", s = new U(
|
|
1465
|
+
n,
|
|
1466
|
+
i,
|
|
1467
|
+
e,
|
|
1468
|
+
t || {},
|
|
1469
|
+
this.bindingEngine
|
|
1470
|
+
);
|
|
1471
|
+
return this.contentEl.appendChild(s.element), this.children.push(s), s;
|
|
1472
|
+
}
|
|
1473
|
+
createProgress(i, e, t) {
|
|
1474
|
+
return this.addProgress(i, e, t);
|
|
1475
|
+
}
|
|
1476
|
+
addSeparator(i, e = !1) {
|
|
1477
|
+
let t, n = e;
|
|
1478
|
+
typeof i == "object" && i !== null ? (t = i.title, i.dashed !== void 0 && (n = i.dashed)) : t = i;
|
|
1479
|
+
const s = new Y(t, n);
|
|
1480
|
+
return this.contentEl.appendChild(s.element), this.children.push(s), s;
|
|
1481
|
+
}
|
|
1482
|
+
createSeparator(i, e = !1) {
|
|
1483
|
+
return this.addSeparator(i, e);
|
|
1484
|
+
}
|
|
1215
1485
|
addRow() {
|
|
1216
|
-
const i = new
|
|
1486
|
+
const i = new _(this.bindingEngine, this.presetManager, this.soundEngine);
|
|
1217
1487
|
return this.contentEl.appendChild(i.element), this.children.push(i), i;
|
|
1218
1488
|
}
|
|
1219
1489
|
createRow() {
|
|
@@ -1222,7 +1492,7 @@ class T {
|
|
|
1222
1492
|
addSection(i = "Section", e = !1) {
|
|
1223
1493
|
let t = "", n = e;
|
|
1224
1494
|
typeof i == "object" && i !== null ? (t = i.label || i.title || "Section", i.collapsed !== void 0 && (n = i.collapsed)) : t = i || "Section";
|
|
1225
|
-
const s = new
|
|
1495
|
+
const s = new G(t, this.bindingEngine, this.presetManager, n, this.soundEngine);
|
|
1226
1496
|
return s.setParentContainer(this), this.contentEl.appendChild(s.element), this.children.push(s), s;
|
|
1227
1497
|
}
|
|
1228
1498
|
addFolder(i = "Folder", e = !1) {
|
|
@@ -1291,6 +1561,44 @@ class T {
|
|
|
1291
1561
|
e = this.addStatus(i.object, i.property, i.status, i.badge, i.detail);
|
|
1292
1562
|
break;
|
|
1293
1563
|
}
|
|
1564
|
+
case "switch": {
|
|
1565
|
+
e = this.addSwitch(i.object, i.property, {
|
|
1566
|
+
onLabel: i.onLabel,
|
|
1567
|
+
offLabel: i.offLabel,
|
|
1568
|
+
disabled: i.disabled,
|
|
1569
|
+
tooltip: i.tooltip
|
|
1570
|
+
});
|
|
1571
|
+
break;
|
|
1572
|
+
}
|
|
1573
|
+
case "buttonGroup": {
|
|
1574
|
+
e = this.addButtonGroup(i.buttons || []);
|
|
1575
|
+
break;
|
|
1576
|
+
}
|
|
1577
|
+
case "text": {
|
|
1578
|
+
e = this.addText(i.object, i.property, {
|
|
1579
|
+
placeholder: i.placeholder,
|
|
1580
|
+
maxLength: i.maxLength,
|
|
1581
|
+
readOnly: i.readOnly,
|
|
1582
|
+
clearable: i.clearable,
|
|
1583
|
+
disabled: i.disabled,
|
|
1584
|
+
tooltip: i.tooltip
|
|
1585
|
+
});
|
|
1586
|
+
break;
|
|
1587
|
+
}
|
|
1588
|
+
case "progress": {
|
|
1589
|
+
e = this.addProgress(i.object, i.property, {
|
|
1590
|
+
min: i.min,
|
|
1591
|
+
max: i.max,
|
|
1592
|
+
color: i.color,
|
|
1593
|
+
showValue: i.showValue,
|
|
1594
|
+
tooltip: i.tooltip
|
|
1595
|
+
});
|
|
1596
|
+
break;
|
|
1597
|
+
}
|
|
1598
|
+
case "separator": {
|
|
1599
|
+
e = this.addSeparator(i.title || i.label);
|
|
1600
|
+
break;
|
|
1601
|
+
}
|
|
1294
1602
|
case "section":
|
|
1295
1603
|
case "folder": {
|
|
1296
1604
|
e = this.addSection(t, i.collapsed || !1);
|
|
@@ -1307,7 +1615,7 @@ class T {
|
|
|
1307
1615
|
this.children = [];
|
|
1308
1616
|
}
|
|
1309
1617
|
}
|
|
1310
|
-
class
|
|
1618
|
+
class _ extends T {
|
|
1311
1619
|
constructor(e, t, n) {
|
|
1312
1620
|
const s = document.createElement("div");
|
|
1313
1621
|
s.className = "relly-multi-row";
|
|
@@ -1326,11 +1634,11 @@ class G extends T {
|
|
|
1326
1634
|
this.destroyChildren(), this.element.remove();
|
|
1327
1635
|
}
|
|
1328
1636
|
}
|
|
1329
|
-
class
|
|
1637
|
+
class G extends T {
|
|
1330
1638
|
constructor(e, t, n, s = !1, r) {
|
|
1331
|
-
const
|
|
1332
|
-
|
|
1333
|
-
super(
|
|
1639
|
+
const o = document.createElement("div");
|
|
1640
|
+
o.className = "relly-section-content";
|
|
1641
|
+
super(o, t, n, r);
|
|
1334
1642
|
l(this, "element");
|
|
1335
1643
|
l(this, "headerEl");
|
|
1336
1644
|
l(this, "titleEl");
|
|
@@ -1340,12 +1648,12 @@ class q extends T {
|
|
|
1340
1648
|
l(this, "parentContainer");
|
|
1341
1649
|
l(this, "disabled", !1);
|
|
1342
1650
|
this.label = e, this.element = document.createElement("div"), this.element.className = "relly-section", this.headerEl = document.createElement("div"), this.headerEl.className = "relly-section-header";
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1651
|
+
const a = document.createElement("div");
|
|
1652
|
+
a.className = "relly-section-title-wrap", this.arrowEl = document.createElement("span"), this.arrowEl.innerHTML = `
|
|
1345
1653
|
<svg class="relly-section-arrow" viewBox="0 0 10 10">
|
|
1346
1654
|
<polygon points="2,1 8,5 2,9"></polygon>
|
|
1347
1655
|
</svg>
|
|
1348
|
-
`, this.titleEl = document.createElement("span"), this.titleEl.textContent = e,
|
|
1656
|
+
`, this.titleEl = document.createElement("span"), this.titleEl.textContent = e, a.appendChild(this.arrowEl), a.appendChild(this.titleEl), this.headerEl.appendChild(a), this.element.appendChild(this.headerEl), this.element.appendChild(this.contentEl), this.headerEl.addEventListener("click", () => {
|
|
1349
1657
|
var h;
|
|
1350
1658
|
this.disabled || ((h = this.soundEngine) == null || h.playClick(), this.toggle());
|
|
1351
1659
|
}), s && this.setCollapsed(!0);
|
|
@@ -1386,7 +1694,7 @@ class q extends T {
|
|
|
1386
1694
|
this.conditionPredicate && this.bindingEngine.unregister(this), this.destroyChildren(), this.element.remove();
|
|
1387
1695
|
}
|
|
1388
1696
|
}
|
|
1389
|
-
class
|
|
1697
|
+
class Q {
|
|
1390
1698
|
constructor() {
|
|
1391
1699
|
l(this, "listeners", /* @__PURE__ */ new Set());
|
|
1392
1700
|
l(this, "rafId", null);
|
|
@@ -1424,7 +1732,7 @@ class W {
|
|
|
1424
1732
|
this.stop(), this.listeners.clear();
|
|
1425
1733
|
}
|
|
1426
1734
|
}
|
|
1427
|
-
class
|
|
1735
|
+
class Z {
|
|
1428
1736
|
constructor() {
|
|
1429
1737
|
l(this, "components", /* @__PURE__ */ new Set());
|
|
1430
1738
|
l(this, "pendingValues", {});
|
|
@@ -1491,7 +1799,7 @@ class X {
|
|
|
1491
1799
|
this.components.clear(), this.pendingValues = {};
|
|
1492
1800
|
}
|
|
1493
1801
|
}
|
|
1494
|
-
const
|
|
1802
|
+
const K = {
|
|
1495
1803
|
bg: "#1c1d22",
|
|
1496
1804
|
fg: "#d1d5db",
|
|
1497
1805
|
headerBg: "#141518",
|
|
@@ -1505,7 +1813,7 @@ const U = {
|
|
|
1505
1813
|
font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
|
|
1506
1814
|
fontSize: "11px",
|
|
1507
1815
|
rowHeight: "26px"
|
|
1508
|
-
},
|
|
1816
|
+
}, O = {
|
|
1509
1817
|
bg: "#ffffff",
|
|
1510
1818
|
fg: "#374151",
|
|
1511
1819
|
headerBg: "#f3f4f6",
|
|
@@ -1519,7 +1827,7 @@ const U = {
|
|
|
1519
1827
|
font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
|
|
1520
1828
|
fontSize: "11px",
|
|
1521
1829
|
rowHeight: "26px"
|
|
1522
|
-
},
|
|
1830
|
+
}, ee = {
|
|
1523
1831
|
bg: "#0f051d",
|
|
1524
1832
|
fg: "#e0f2fe",
|
|
1525
1833
|
headerBg: "#180a33",
|
|
@@ -1533,7 +1841,7 @@ const U = {
|
|
|
1533
1841
|
font: '"JetBrains Mono", Consolas, monospace',
|
|
1534
1842
|
fontSize: "11px",
|
|
1535
1843
|
rowHeight: "26px"
|
|
1536
|
-
},
|
|
1844
|
+
}, te = {
|
|
1537
1845
|
bg: "#2e3440",
|
|
1538
1846
|
fg: "#d8dee9",
|
|
1539
1847
|
headerBg: "#242933",
|
|
@@ -1547,7 +1855,7 @@ const U = {
|
|
|
1547
1855
|
font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
1548
1856
|
fontSize: "11px",
|
|
1549
1857
|
rowHeight: "26px"
|
|
1550
|
-
},
|
|
1858
|
+
}, ie = {
|
|
1551
1859
|
bg: "#282a36",
|
|
1552
1860
|
fg: "#f8f8f2",
|
|
1553
1861
|
headerBg: "#1e1f29",
|
|
@@ -1561,7 +1869,7 @@ const U = {
|
|
|
1561
1869
|
font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
1562
1870
|
fontSize: "11px",
|
|
1563
1871
|
rowHeight: "26px"
|
|
1564
|
-
},
|
|
1872
|
+
}, ne = {
|
|
1565
1873
|
bg: "#1a1b26",
|
|
1566
1874
|
fg: "#a9b1d6",
|
|
1567
1875
|
headerBg: "#16161e",
|
|
@@ -1575,7 +1883,7 @@ const U = {
|
|
|
1575
1883
|
font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
1576
1884
|
fontSize: "11px",
|
|
1577
1885
|
rowHeight: "26px"
|
|
1578
|
-
},
|
|
1886
|
+
}, se = {
|
|
1579
1887
|
bg: "#0a0f0d",
|
|
1580
1888
|
fg: "#00ff66",
|
|
1581
1889
|
headerBg: "#050a08",
|
|
@@ -1589,7 +1897,7 @@ const U = {
|
|
|
1589
1897
|
font: '"JetBrains Mono", Consolas, monospace',
|
|
1590
1898
|
fontSize: "11px",
|
|
1591
1899
|
rowHeight: "26px"
|
|
1592
|
-
},
|
|
1900
|
+
}, re = {
|
|
1593
1901
|
bg: "#241b2f",
|
|
1594
1902
|
fg: "#f8f8f2",
|
|
1595
1903
|
headerBg: "#191322",
|
|
@@ -1604,14 +1912,14 @@ const U = {
|
|
|
1604
1912
|
fontSize: "11px",
|
|
1605
1913
|
rowHeight: "26px"
|
|
1606
1914
|
};
|
|
1607
|
-
class
|
|
1915
|
+
class le {
|
|
1608
1916
|
constructor(i, e) {
|
|
1609
1917
|
l(this, "currentTheme");
|
|
1610
1918
|
l(this, "currentThemeName");
|
|
1611
|
-
this.panelElement = i, this.currentTheme = { ...
|
|
1919
|
+
this.panelElement = i, this.currentTheme = { ...K }, this.currentThemeName = "dark", e ? this.applyTheme(e) : this.applyToDOM(this.currentTheme);
|
|
1612
1920
|
}
|
|
1613
1921
|
applyTheme(i) {
|
|
1614
|
-
typeof i == "string" && (this.currentThemeName = i), i === "light" ? this.currentTheme = { ...
|
|
1922
|
+
typeof i == "string" && (this.currentThemeName = i), i === "light" ? this.currentTheme = { ...O } : i === "dark" ? this.currentTheme = { ...K } : i === "cyberpunk" ? this.currentTheme = { ...ee } : i === "nord" ? this.currentTheme = { ...te } : i === "dracula" ? this.currentTheme = { ...ie } : i === "tokyo-night" ? this.currentTheme = { ...ne } : i === "matrix" ? this.currentTheme = { ...se } : i === "synthwave" ? this.currentTheme = { ...re } : typeof i == "object" && (this.currentTheme = { ...this.currentTheme, ...i }, this.currentThemeName = "custom"), this.applyToDOM(this.currentTheme);
|
|
1615
1923
|
}
|
|
1616
1924
|
getCurrentThemeName() {
|
|
1617
1925
|
return this.currentThemeName;
|
|
@@ -1624,7 +1932,7 @@ class te {
|
|
|
1624
1932
|
return { ...this.currentTheme };
|
|
1625
1933
|
}
|
|
1626
1934
|
}
|
|
1627
|
-
class
|
|
1935
|
+
class ae {
|
|
1628
1936
|
constructor(i, e, t) {
|
|
1629
1937
|
l(this, "isDragging", !1);
|
|
1630
1938
|
l(this, "startX", 0);
|
|
@@ -1643,8 +1951,8 @@ class ie {
|
|
|
1643
1951
|
clampToViewport() {
|
|
1644
1952
|
if (typeof window > "u") return;
|
|
1645
1953
|
const i = this.panel.getBoundingClientRect(), e = i.width, t = i.height, n = Math.max(0, window.innerWidth - e), s = Math.max(0, window.innerHeight - t);
|
|
1646
|
-
let r = i.left,
|
|
1647
|
-
r > n && (r = n), r < 0 && (r = 0),
|
|
1954
|
+
let r = i.left, o = i.top;
|
|
1955
|
+
r > n && (r = n), r < 0 && (r = 0), o > s && (o = s), o < 0 && (o = 0), this.panel.style.left = `${Math.round(r)}px`, this.panel.style.top = `${Math.round(o)}px`, this.panel.style.right = "auto", this.panel.style.bottom = "auto";
|
|
1648
1956
|
}
|
|
1649
1957
|
onResize() {
|
|
1650
1958
|
this.clampToViewport();
|
|
@@ -1660,7 +1968,7 @@ class ie {
|
|
|
1660
1968
|
if (!this.isDragging) return;
|
|
1661
1969
|
const e = i.clientX - this.startX, t = i.clientY - this.startY;
|
|
1662
1970
|
let n = this.initialLeft + e, s = this.initialTop + t;
|
|
1663
|
-
const r = this.panel.getBoundingClientRect(),
|
|
1971
|
+
const r = this.panel.getBoundingClientRect(), o = r.width, a = r.height, h = Math.max(0, window.innerWidth - o), c = Math.max(0, window.innerHeight - a);
|
|
1664
1972
|
let m = !1;
|
|
1665
1973
|
this.magneticSnap && (Math.abs(n) < this.snapThreshold ? (n = 0, m = !0) : Math.abs(n - h) < this.snapThreshold && (n = h, m = !0), Math.abs(s) < this.snapThreshold ? (s = 0, m = !0) : Math.abs(s - c) < this.snapThreshold && (s = c, m = !0), m && !this.wasSnapped && ((p = this.soundEngine) == null || p.playSnap()), this.wasSnapped = m), n = Math.max(0, Math.min(n, h)), s = Math.max(0, Math.min(s, c)), this.panel.style.left = `${n}px`, this.panel.style.top = `${s}px`;
|
|
1666
1974
|
}
|
|
@@ -1671,7 +1979,7 @@ class ie {
|
|
|
1671
1979
|
this.handle.removeEventListener("mousedown", this.onMouseDownBound), typeof window < "u" && (window.removeEventListener("mousemove", this.onMouseMoveBound), window.removeEventListener("mouseup", this.onMouseUpBound), window.removeEventListener("resize", this.onResizeBound));
|
|
1672
1980
|
}
|
|
1673
1981
|
}
|
|
1674
|
-
class
|
|
1982
|
+
class oe {
|
|
1675
1983
|
constructor(i, e = 240, t = 120) {
|
|
1676
1984
|
l(this, "handleEl");
|
|
1677
1985
|
l(this, "isResizing", !1);
|
|
@@ -1708,11 +2016,11 @@ class ne {
|
|
|
1708
2016
|
}
|
|
1709
2017
|
onMouseMove(i) {
|
|
1710
2018
|
if (!this.isResizing) return;
|
|
1711
|
-
const e = i.clientX - this.startX, t = i.clientY - this.startY, n = this.panel.getBoundingClientRect(), s = Math.max(this.minWidth, window.innerWidth - n.left - 8), r = Math.max(this.minHeight, window.innerHeight - n.top - 8),
|
|
2019
|
+
const e = i.clientX - this.startX, t = i.clientY - this.startY, n = this.panel.getBoundingClientRect(), s = Math.max(this.minWidth, window.innerWidth - n.left - 8), r = Math.max(this.minHeight, window.innerHeight - n.top - 8), o = Math.max(this.minWidth, Math.min(s, this.initialWidth + e)), a = Math.max(
|
|
1712
2020
|
this.minHeight,
|
|
1713
2021
|
Math.min(r, this.initialHeight + t)
|
|
1714
2022
|
);
|
|
1715
|
-
this.panel.style.width = `${Math.round(
|
|
2023
|
+
this.panel.style.width = `${Math.round(o)}px`, this.panel.style.height = `${Math.round(a)}px`;
|
|
1716
2024
|
const h = this.panel.querySelector(".relly-body");
|
|
1717
2025
|
h && (h.style.maxHeight = "none", h.style.flex = "1");
|
|
1718
2026
|
}
|
|
@@ -1723,7 +2031,7 @@ class ne {
|
|
|
1723
2031
|
this.handleEl.removeEventListener("mousedown", this.onMouseDownBound), typeof window < "u" && (window.removeEventListener("mousemove", this.onMouseMoveBound), window.removeEventListener("mouseup", this.onMouseUpBound), window.removeEventListener("resize", this.onResizeBound)), this.handleEl.remove();
|
|
1724
2032
|
}
|
|
1725
2033
|
}
|
|
1726
|
-
class
|
|
2034
|
+
class W {
|
|
1727
2035
|
constructor(i, e) {
|
|
1728
2036
|
l(this, "onKeyDownBound");
|
|
1729
2037
|
this.hotkey = i, this.onToggle = e, this.onKeyDownBound = this.onKeyDown.bind(this), typeof window < "u" && window.addEventListener("keydown", this.onKeyDownBound);
|
|
@@ -1750,7 +2058,7 @@ class $ {
|
|
|
1750
2058
|
typeof window < "u" && window.removeEventListener("keydown", this.onKeyDownBound);
|
|
1751
2059
|
}
|
|
1752
2060
|
}
|
|
1753
|
-
class
|
|
2061
|
+
class he {
|
|
1754
2062
|
constructor(i, e = {}) {
|
|
1755
2063
|
l(this, "element");
|
|
1756
2064
|
l(this, "inputEl");
|
|
@@ -1775,8 +2083,8 @@ class se {
|
|
|
1775
2083
|
const t = typeof i.composedPath == "function" ? i.composedPath() : [];
|
|
1776
2084
|
for (const r of t)
|
|
1777
2085
|
if (r instanceof HTMLElement) {
|
|
1778
|
-
const
|
|
1779
|
-
if (
|
|
2086
|
+
const o = r.tagName;
|
|
2087
|
+
if (o === "INPUT" || o === "TEXTAREA" || o === "SELECT" || r.isContentEditable || r.classList.contains("relly-search-input"))
|
|
1780
2088
|
return;
|
|
1781
2089
|
}
|
|
1782
2090
|
let n = document.activeElement;
|
|
@@ -1792,7 +2100,7 @@ class se {
|
|
|
1792
2100
|
return this.inputEl;
|
|
1793
2101
|
}
|
|
1794
2102
|
filter(i) {
|
|
1795
|
-
var
|
|
2103
|
+
var a;
|
|
1796
2104
|
const e = i.trim();
|
|
1797
2105
|
if (!e) {
|
|
1798
2106
|
this.clearBtn.style.display = "none", this.resetFilter();
|
|
@@ -1804,8 +2112,8 @@ class se {
|
|
|
1804
2112
|
const c = h.querySelector(".relly-row-label, .relly-graph-header span"), m = (c == null ? void 0 : c.textContent) || "";
|
|
1805
2113
|
if ((this.ignoreCase ? m.toLowerCase() : m).includes(t)) {
|
|
1806
2114
|
h.classList.remove("relly-search-hidden");
|
|
1807
|
-
const
|
|
1808
|
-
|
|
2115
|
+
const y = h.closest(".relly-section");
|
|
2116
|
+
y && (y.classList.remove("relly-section--collapsed"), y.classList.remove("relly-search-hidden"));
|
|
1809
2117
|
} else
|
|
1810
2118
|
h.classList.add("relly-search-hidden");
|
|
1811
2119
|
}), this.bodyEl.querySelectorAll(".relly-section").forEach((h) => {
|
|
@@ -1816,16 +2124,16 @@ class se {
|
|
|
1816
2124
|
".relly-row:not(.relly-search-hidden), .relly-graph-row:not(.relly-search-hidden)"
|
|
1817
2125
|
).length === 0 && h.classList.add("relly-search-hidden");
|
|
1818
2126
|
});
|
|
1819
|
-
const r = this.bodyEl.querySelector('.relly-tab-content:not([style*="display: none"])'),
|
|
2127
|
+
const r = this.bodyEl.querySelector('.relly-tab-content:not([style*="display: none"])'), o = r == null ? void 0 : r.querySelectorAll(
|
|
1820
2128
|
".relly-row:not(.relly-search-hidden), .relly-graph-row:not(.relly-search-hidden)"
|
|
1821
2129
|
);
|
|
1822
|
-
if (!
|
|
2130
|
+
if (!o || o.length === 0) {
|
|
1823
2131
|
const h = Array.from(this.bodyEl.querySelectorAll(".relly-tab-content"));
|
|
1824
2132
|
for (let c = 0; c < h.length; c++)
|
|
1825
2133
|
if (h[c].querySelectorAll(
|
|
1826
2134
|
".relly-row:not(.relly-search-hidden), .relly-graph-row:not(.relly-search-hidden)"
|
|
1827
2135
|
).length > 0) {
|
|
1828
|
-
const p = (
|
|
2136
|
+
const p = (a = this.bodyEl.parentElement) == null ? void 0 : a.querySelectorAll(".relly-tab-btn");
|
|
1829
2137
|
if (p && p[c]) {
|
|
1830
2138
|
p[c].click();
|
|
1831
2139
|
break;
|
|
@@ -1845,7 +2153,7 @@ class se {
|
|
|
1845
2153
|
typeof window < "u" && window.removeEventListener("keydown", this.onGlobalKeyDownBound), this.element.remove();
|
|
1846
2154
|
}
|
|
1847
2155
|
}
|
|
1848
|
-
class
|
|
2156
|
+
class ce {
|
|
1849
2157
|
constructor(i = !0, e = "synth") {
|
|
1850
2158
|
l(this, "ctx", null);
|
|
1851
2159
|
l(this, "enabled", !0);
|
|
@@ -1896,16 +2204,16 @@ class re {
|
|
|
1896
2204
|
const t = e.currentTime, n = e.createOscillator(), s = e.createGain();
|
|
1897
2205
|
if (this.soundPack === "mechanical") {
|
|
1898
2206
|
n.type = "triangle";
|
|
1899
|
-
const r = i ? 2800 : 1800,
|
|
1900
|
-
n.frequency.setValueAtTime(r, t), n.frequency.exponentialRampToValueAtTime(
|
|
2207
|
+
const r = i ? 2800 : 1800, o = i ? 900 : 400;
|
|
2208
|
+
n.frequency.setValueAtTime(r, t), n.frequency.exponentialRampToValueAtTime(o, t + 0.018), s.gain.setValueAtTime(0.055 * this.volume, t), s.gain.exponentialRampToValueAtTime(1e-4, t + 0.018), n.connect(s), s.connect(e.destination), n.start(t), n.stop(t + 0.02);
|
|
1901
2209
|
} else if (this.soundPack === "bubble") {
|
|
1902
2210
|
n.type = "sine";
|
|
1903
|
-
const r = i ? 380 : 900,
|
|
1904
|
-
n.frequency.setValueAtTime(r, t), n.frequency.exponentialRampToValueAtTime(
|
|
2211
|
+
const r = i ? 380 : 900, o = i ? 1100 : 280;
|
|
2212
|
+
n.frequency.setValueAtTime(r, t), n.frequency.exponentialRampToValueAtTime(o, t + 0.028), s.gain.setValueAtTime(0.045 * this.volume, t), s.gain.exponentialRampToValueAtTime(1e-4, t + 0.028), n.connect(s), s.connect(e.destination), n.start(t), n.stop(t + 0.03);
|
|
1905
2213
|
} else if (this.soundPack === "arcade") {
|
|
1906
2214
|
n.type = "square";
|
|
1907
|
-
const r = i ? 523.25 : 659.25,
|
|
1908
|
-
n.frequency.setValueAtTime(r, t), n.frequency.setValueAtTime(
|
|
2215
|
+
const r = i ? 523.25 : 659.25, o = i ? 783.99 : 392;
|
|
2216
|
+
n.frequency.setValueAtTime(r, t), n.frequency.setValueAtTime(o, t + 0.015), s.gain.setValueAtTime(0.025 * this.volume, t), s.gain.exponentialRampToValueAtTime(1e-4, t + 0.03), n.connect(s), s.connect(e.destination), n.start(t), n.stop(t + 0.032);
|
|
1909
2217
|
} else {
|
|
1910
2218
|
n.type = "triangle";
|
|
1911
2219
|
const r = i ? 650 : 450;
|
|
@@ -1951,8 +2259,8 @@ class re {
|
|
|
1951
2259
|
try {
|
|
1952
2260
|
const t = e.currentTime, n = e.createOscillator(), s = e.createGain();
|
|
1953
2261
|
n.type = this.soundPack === "arcade" ? "square" : "sine";
|
|
1954
|
-
const r = i ? 380 : 640,
|
|
1955
|
-
n.frequency.setValueAtTime(r, t), n.frequency.exponentialRampToValueAtTime(
|
|
2262
|
+
const r = i ? 380 : 640, o = i ? 680 : 340;
|
|
2263
|
+
n.frequency.setValueAtTime(r, t), n.frequency.exponentialRampToValueAtTime(o, t + 0.05), s.gain.setValueAtTime(0.03 * this.volume, t), s.gain.exponentialRampToValueAtTime(1e-4, t + 0.05), n.connect(s), s.connect(e.destination), n.start(t), n.stop(t + 0.055);
|
|
1956
2264
|
} catch {
|
|
1957
2265
|
}
|
|
1958
2266
|
}
|
|
@@ -1975,7 +2283,7 @@ class re {
|
|
|
1975
2283
|
}
|
|
1976
2284
|
}
|
|
1977
2285
|
}
|
|
1978
|
-
class
|
|
2286
|
+
class de {
|
|
1979
2287
|
constructor(i, e) {
|
|
1980
2288
|
l(this, "element");
|
|
1981
2289
|
l(this, "textareaEl");
|
|
@@ -2004,12 +2312,12 @@ class le {
|
|
|
2004
2312
|
}), this.dropzoneEl.addEventListener("drop", (c) => {
|
|
2005
2313
|
c.preventDefault(), this.dropzoneEl.classList.remove("relly-dropzone-drag"), c.dataTransfer && c.dataTransfer.files.length > 0 && this.readFile(c.dataTransfer.files[0]);
|
|
2006
2314
|
}), t.appendChild(this.dropzoneEl), t.appendChild(this.fileInput), this.textareaEl = document.createElement("textarea"), this.textareaEl.className = "relly-import-textarea", this.textareaEl.placeholder = "Paste JSON configuration here...", t.appendChild(this.textareaEl), this.errorEl = document.createElement("div"), this.errorEl.className = "relly-import-error", t.appendChild(this.errorEl);
|
|
2007
|
-
const
|
|
2008
|
-
|
|
2009
|
-
const
|
|
2010
|
-
|
|
2315
|
+
const o = document.createElement("div");
|
|
2316
|
+
o.className = "relly-modal-actions";
|
|
2317
|
+
const a = document.createElement("button");
|
|
2318
|
+
a.className = "relly-btn", a.textContent = "Cancel", a.style.flex = "1", a.addEventListener("click", () => this.hide());
|
|
2011
2319
|
const h = document.createElement("button");
|
|
2012
|
-
h.className = "relly-btn relly-btn-primary", h.textContent = "Apply & Load", h.style.flex = "2", h.addEventListener("click", () => this.apply()),
|
|
2320
|
+
h.className = "relly-btn relly-btn-primary", h.textContent = "Apply & Load", h.style.flex = "2", h.addEventListener("click", () => this.apply()), o.appendChild(a), o.appendChild(h), t.appendChild(o), this.element.appendChild(t), this.element.addEventListener("click", (c) => {
|
|
2013
2321
|
c.target === this.element && this.hide();
|
|
2014
2322
|
}), this.parentEl.appendChild(this.element);
|
|
2015
2323
|
}
|
|
@@ -2048,24 +2356,24 @@ class le {
|
|
|
2048
2356
|
this.element.remove();
|
|
2049
2357
|
}
|
|
2050
2358
|
}
|
|
2051
|
-
class
|
|
2359
|
+
class pe {
|
|
2052
2360
|
static load(i, e) {
|
|
2053
2361
|
const t = e.target, n = (s, r) => {
|
|
2054
|
-
for (const
|
|
2055
|
-
const
|
|
2056
|
-
if (
|
|
2362
|
+
for (const o of r) {
|
|
2363
|
+
const a = o.children || o.controls;
|
|
2364
|
+
if (o.type === "section") {
|
|
2057
2365
|
const h = s.addSection(
|
|
2058
|
-
|
|
2059
|
-
|
|
2366
|
+
o.label || "Section",
|
|
2367
|
+
o.collapsed
|
|
2060
2368
|
);
|
|
2061
|
-
|
|
2062
|
-
} else if (
|
|
2369
|
+
o.showIf && h.showIf && h.showIf(o.showIf), a && Array.isArray(a) && n(h, a);
|
|
2370
|
+
} else if (o.type === "row") {
|
|
2063
2371
|
const h = s.addRow();
|
|
2064
|
-
|
|
2372
|
+
a && Array.isArray(a) && n(h, a);
|
|
2065
2373
|
} else {
|
|
2066
2374
|
const h = {
|
|
2067
|
-
...
|
|
2068
|
-
object:
|
|
2375
|
+
...o,
|
|
2376
|
+
object: o.object !== void 0 ? o.object : t
|
|
2069
2377
|
};
|
|
2070
2378
|
s.createComponent(h);
|
|
2071
2379
|
}
|
|
@@ -2074,7 +2382,7 @@ class ae {
|
|
|
2074
2382
|
e.controls && Array.isArray(e.controls) && n(i, e.controls);
|
|
2075
2383
|
}
|
|
2076
2384
|
}
|
|
2077
|
-
class
|
|
2385
|
+
class ue {
|
|
2078
2386
|
constructor(i, e) {
|
|
2079
2387
|
l(this, "containerEl");
|
|
2080
2388
|
this.parentEl = i, this.soundEngine = e, this.containerEl = document.createElement("div"), this.containerEl.className = "relly-toast-container", this.parentEl.appendChild(this.containerEl);
|
|
@@ -2088,18 +2396,18 @@ class oe {
|
|
|
2088
2396
|
s.className = "relly-toast-icon", s.innerHTML = this.getIconSvg(e);
|
|
2089
2397
|
const r = document.createElement("span");
|
|
2090
2398
|
r.className = "relly-toast-msg", r.textContent = i;
|
|
2091
|
-
const
|
|
2092
|
-
|
|
2093
|
-
const
|
|
2399
|
+
const o = document.createElement("button");
|
|
2400
|
+
o.className = "relly-toast-close", o.innerHTML = "✕", o.title = "Dismiss", n.appendChild(s), n.appendChild(r), n.appendChild(o);
|
|
2401
|
+
const a = () => {
|
|
2094
2402
|
n.classList.contains("relly-toast-leave") || (n.classList.add("relly-toast-leave"), setTimeout(() => {
|
|
2095
2403
|
n.parentElement && n.parentElement.removeChild(n);
|
|
2096
2404
|
}, 200));
|
|
2097
2405
|
};
|
|
2098
|
-
return
|
|
2099
|
-
c.stopPropagation(),
|
|
2100
|
-
}), n.addEventListener("click",
|
|
2406
|
+
return o.addEventListener("click", (c) => {
|
|
2407
|
+
c.stopPropagation(), a();
|
|
2408
|
+
}), n.addEventListener("click", a), this.containerEl.appendChild(n), requestAnimationFrame(() => {
|
|
2101
2409
|
n.classList.add("relly-toast-enter");
|
|
2102
|
-
}), t > 0 && setTimeout(
|
|
2410
|
+
}), t > 0 && setTimeout(a, t), n;
|
|
2103
2411
|
}
|
|
2104
2412
|
getIconSvg(i) {
|
|
2105
2413
|
switch (i) {
|
|
@@ -2118,7 +2426,7 @@ class oe {
|
|
|
2118
2426
|
this.containerEl.parentElement && this.containerEl.parentElement.removeChild(this.containerEl);
|
|
2119
2427
|
}
|
|
2120
2428
|
}
|
|
2121
|
-
class
|
|
2429
|
+
class me {
|
|
2122
2430
|
constructor(i, e) {
|
|
2123
2431
|
l(this, "menuEl");
|
|
2124
2432
|
l(this, "currentComponent");
|
|
@@ -2148,8 +2456,8 @@ class he {
|
|
|
2148
2456
|
c.type = "button", c.className = "relly-context-item", h.danger && c.classList.add("relly-context-item--danger"), h.disabled && (c.disabled = !0);
|
|
2149
2457
|
let m = "";
|
|
2150
2458
|
h.icon && (m = `<span class="relly-context-icon">${h.icon}</span>`), c.innerHTML = `${m}<span class="relly-context-label">${h.label}</span>`, c.addEventListener("click", (p) => {
|
|
2151
|
-
var
|
|
2152
|
-
p.stopPropagation(), (
|
|
2459
|
+
var y;
|
|
2460
|
+
p.stopPropagation(), (y = this.soundEngine) == null || y.playClick();
|
|
2153
2461
|
const d = this.currentComponent;
|
|
2154
2462
|
this.hide(), h.action(d);
|
|
2155
2463
|
}), this.menuEl.appendChild(c);
|
|
@@ -2157,8 +2465,8 @@ class he {
|
|
|
2157
2465
|
this.menuEl.style.display = "flex";
|
|
2158
2466
|
const n = this.panelEl.getBoundingClientRect();
|
|
2159
2467
|
let s = e - n.left, r = t - n.top;
|
|
2160
|
-
const
|
|
2161
|
-
s +
|
|
2468
|
+
const o = 160, a = this.menuEl.offsetHeight || 120;
|
|
2469
|
+
s + o > n.width && (s = Math.max(4, n.width - o - 4)), r + a > n.height && (r = Math.max(4, n.height - a - 4)), this.menuEl.style.left = `${s}px`, this.menuEl.style.top = `${r}px`;
|
|
2162
2470
|
}
|
|
2163
2471
|
hide() {
|
|
2164
2472
|
this.menuEl.style.display = "none", this.currentComponent = void 0;
|
|
@@ -2167,7 +2475,7 @@ class he {
|
|
|
2167
2475
|
typeof window < "u" && (window.removeEventListener("click", this.onDocClickBound), window.removeEventListener("keydown", this.onKeyDownBound)), this.panelEl.removeEventListener("contextmenu", this.onContextMenu), this.menuEl.parentElement && this.menuEl.parentElement.removeChild(this.menuEl);
|
|
2168
2476
|
}
|
|
2169
2477
|
}
|
|
2170
|
-
class
|
|
2478
|
+
class fe extends T {
|
|
2171
2479
|
constructor(e, t, n, s) {
|
|
2172
2480
|
const r = document.createElement("div");
|
|
2173
2481
|
r.className = "relly-tab-content";
|
|
@@ -2186,7 +2494,7 @@ class ce extends T {
|
|
|
2186
2494
|
this.destroyChildren(), this.buttonEl.remove(), this.contentEl.remove();
|
|
2187
2495
|
}
|
|
2188
2496
|
}
|
|
2189
|
-
class
|
|
2497
|
+
class ye {
|
|
2190
2498
|
constructor(i, e, t, n, s) {
|
|
2191
2499
|
l(this, "barEl");
|
|
2192
2500
|
l(this, "bodyEl");
|
|
@@ -2196,7 +2504,7 @@ class de {
|
|
|
2196
2504
|
}
|
|
2197
2505
|
addTab(i) {
|
|
2198
2506
|
this.barEl.style.display = "flex";
|
|
2199
|
-
const e = new
|
|
2507
|
+
const e = new fe(i, this.bindingEngine, this.presetManager, this.soundEngine);
|
|
2200
2508
|
return this.tabs.push(e), this.barEl.appendChild(e.buttonEl), this.bodyEl.appendChild(e.contentEl), e.buttonEl.addEventListener("click", () => {
|
|
2201
2509
|
this.switchTab(e);
|
|
2202
2510
|
}), this.tabs.length === 1 && this.switchTab(e, !1), e;
|
|
@@ -2219,22 +2527,22 @@ class de {
|
|
|
2219
2527
|
this.tabs = [], this.barEl.remove();
|
|
2220
2528
|
}
|
|
2221
2529
|
}
|
|
2222
|
-
const me = ':root{--relly-bg: #1c1d22;--relly-fg: #d1d5db;--relly-header-bg: #141518;--relly-header-fg: #f3f4f6;--relly-accent: #6366f1;--relly-accent-hover: #4f46e5;--relly-border: rgba(255, 255, 255, .08);--relly-input-bg: #26272e;--relly-input-hover: #2f3039;--relly-radius: 6px;--relly-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--relly-font-size: 11px;--relly-row-height: 26px;--relly-ease: cubic-bezier(.16, 1, .3, 1);--relly-transition: all .2s var(--relly-ease)}.relly-host{position:fixed;z-index:999999;pointer-events:none}.relly-panel{position:fixed;z-index:999999;background-color:var(--relly-bg);color:var(--relly-fg);border:1px solid var(--relly-border);border-radius:var(--relly-radius);box-shadow:0 10px 25px -5px #00000080,0 8px 10px -6px #0006;font-family:var(--relly-font);font-size:var(--relly-font-size);-webkit-user-select:none;user-select:none;box-sizing:border-box;overflow:hidden!important;overflow-x:hidden!important;display:flex;flex-direction:column;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity .22s var(--relly-ease),transform .22s var(--relly-ease);min-width:240px;min-height:120px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}.relly-panel.relly-mini-hud{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;border-radius:9999px!important;box-shadow:0 4px 20px #0006,0 0 0 1px var(--relly-accent)}.relly-panel.relly-mini-hud .relly-header{border-bottom:none;padding:5px 12px;border-radius:9999px;background-color:var(--relly-bg)}.relly-panel.relly-mini-hud .relly-body,.relly-panel.relly-mini-hud .relly-search-bar,.relly-panel.relly-mini-hud .relly-tabs-bar,.relly-panel.relly-mini-hud .relly-resize-handle,.relly-panel.relly-mini-hud .relly-header-btn:not(.relly-minihud-btn){display:none!important}.relly-panel.relly-mini-hud .relly-header-title:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background-color:var(--relly-accent);box-shadow:0 0 6px var(--relly-accent);margin-right:6px;animation:relly-pulse 2s infinite ease-in-out}@keyframes relly-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.85)}}.relly-panel *{box-sizing:border-box}.relly-panel,.relly-panel *,.relly-body,.relly-tabs-bar,.relly-search-bar{scrollbar-width:none!important;-ms-overflow-style:none!important}.relly-panel *::-webkit-scrollbar,.relly-panel::-webkit-scrollbar,.relly-body::-webkit-scrollbar,.relly-tabs-bar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}.relly-panel.relly-hidden{opacity:0!important;transform:scale(.95) translateY(-6px)!important;pointer-events:none!important}.relly-header{display:flex;align-items:center;justify-content:space-between;background-color:var(--relly-header-bg);color:var(--relly-header-fg);padding:6px 10px;font-weight:600;border-bottom:1px solid var(--relly-border);cursor:grab;transition:background-color .2s var(--relly-ease);flex-shrink:0}.relly-header:active{cursor:grabbing}.relly-header-title{display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.relly-header-title svg{width:14px;height:14px;color:var(--relly-accent);transition:transform .2s var(--relly-ease)}.relly-header-title:hover svg{transform:rotate(15deg)}.relly-header-actions{display:flex;align-items:center;gap:4px}.relly-header-btn{background:transparent;border:none;color:var(--relly-fg);opacity:.7;padding:2px 6px;border-radius:4px;cursor:pointer;font-family:inherit;font-size:11px;line-height:1;display:flex;align-items:center;justify-content:center;transition:opacity .15s,background-color .15s,transform .1s var(--relly-ease)}.relly-header-btn:hover{opacity:1;background-color:#ffffff1a;transform:scale(1.08)}.relly-header-btn:active{transform:scale(.92)}.relly-resize-handle{position:absolute;bottom:0;right:0;width:14px;height:14px;cursor:se-resize;display:flex;align-items:center;justify-content:center;opacity:.4;transition:opacity .15s var(--relly-ease);z-index:100}.relly-resize-handle svg{width:9px;height:9px;stroke:var(--relly-fg);stroke-width:1.5}.relly-resize-handle:hover{opacity:1}.relly-search-bar{display:flex;align-items:center;padding:4px 8px;background-color:#0003;border-bottom:1px solid var(--relly-border);gap:6px;flex-shrink:0}.relly-search-input{width:100%;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:3px 6px;outline:none;transition:border-color .15s var(--relly-ease),background-color .15s}.relly-search-input:focus{border-color:var(--relly-accent);background-color:var(--relly-input-hover)}.relly-search-clear{background:none;border:none;color:var(--relly-fg);cursor:pointer;opacity:.5;font-size:10px;padding:0 4px;transition:opacity .15s}.relly-search-clear:hover{opacity:1}.relly-tabs-bar{display:flex;background-color:var(--relly-header-bg);border-bottom:1px solid var(--relly-border);overflow-x:auto;overflow-y:hidden;flex-shrink:0;scrollbar-width:none!important;-ms-overflow-style:none!important}.relly-tabs-bar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}.relly-tab-btn{flex:1;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--relly-fg);opacity:.6;padding:5px 8px;font-family:inherit;font-size:11px;cursor:pointer;white-space:nowrap;transition:all .2s var(--relly-ease)}.relly-tab-btn:hover{opacity:.9;background-color:#ffffff08}.relly-tab-btn.relly-tab-active{opacity:1;color:var(--relly-accent);border-bottom-color:var(--relly-accent)}.relly-tab-content{display:none}.relly-tab-content.relly-tab-content--active{display:flex;flex-direction:column}.relly-body{display:flex;flex-direction:column;overflow-y:auto!important;overflow-x:hidden!important;max-height:80vh;flex:1;transition:max-height .25s var(--relly-ease);scrollbar-width:none!important;-ms-overflow-style:none!important}.relly-body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}.relly-panel.relly-collapsed .relly-body{display:none}.relly-copy-toast{position:absolute;top:36px;right:10px;background:var(--relly-accent);color:#fff;padding:3px 8px;border-radius:4px;font-size:10px;font-weight:600;box-shadow:0 4px 12px #0000004d;pointer-events:none;opacity:0;transform:translateY(-6px);transition:opacity .2s var(--relly-ease),transform .2s var(--relly-ease);z-index:9999999}.relly-copy-toast.relly-toast-show{opacity:1;transform:translateY(0)}.relly-modal-backdrop{position:absolute;top:0;left:0;width:100%;height:100%;background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:999999;display:flex;align-items:center;justify-content:center;padding:12px;opacity:0;pointer-events:none;transition:opacity .2s var(--relly-ease)}.relly-modal-backdrop.relly-modal-show{opacity:1;pointer-events:auto}.relly-modal{width:100%;max-width:320px;background:var(--relly-bg);border:1px solid var(--relly-border);border-radius:var(--relly-radius);box-shadow:0 12px 30px #0009;padding:12px;display:flex;flex-direction:column;gap:8px;transform:scale(.95);transition:transform .2s var(--relly-ease)}.relly-modal-backdrop.relly-modal-show .relly-modal{transform:scale(1)}.relly-modal-header{display:flex;justify-content:space-between;align-items:center;font-weight:600;color:var(--relly-header-fg);font-size:12px}.relly-dropzone{border:1.5px dashed var(--relly-border);border-radius:4px;padding:12px;text-align:center;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--relly-fg);opacity:.8;font-size:11px;background:#00000026;transition:all .2s var(--relly-ease)}.relly-dropzone:hover,.relly-dropzone.relly-dropzone-drag{border-color:var(--relly-accent);opacity:1;background:#6366f114}.relly-import-textarea{width:100%;height:90px;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:monospace;font-size:10px;padding:6px;outline:none;resize:vertical}.relly-import-textarea:focus{border-color:var(--relly-accent)}.relly-import-error{color:#ef4444;font-size:10px;min-height:12px}.relly-modal-actions{display:flex;gap:6px}.relly-btn-primary{background:var(--relly-accent)!important;color:#fff!important;border-color:var(--relly-accent)!important}.relly-btn-primary:hover{background:var(--relly-accent-hover)!important}.relly-toast-container{position:absolute;top:36px;right:8px;display:flex;flex-direction:column;gap:6px;z-index:9999999;pointer-events:none;max-width:240px}.relly-toast{display:flex;align-items:center;gap:6px;padding:6px 8px;background:var(--relly-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-size:11px;box-shadow:0 4px 16px #00000073;pointer-events:auto;opacity:0;transform:translateY(-8px) scale(.96);transition:opacity .2s var(--relly-ease),transform .2s var(--relly-ease);cursor:pointer}.relly-toast.relly-toast-enter{opacity:1;transform:translateY(0) scale(1)}.relly-toast.relly-toast-leave{opacity:0;transform:translateY(-6px) scale(.95)}.relly-toast-icon svg{width:14px;height:14px;display:block}.relly-toast--success{border-left:3px solid #22c55e}.relly-toast--success .relly-toast-icon{color:#22c55e}.relly-toast--warning{border-left:3px solid #f59e0b}.relly-toast--warning .relly-toast-icon{color:#f59e0b}.relly-toast--error{border-left:3px solid #ef4444}.relly-toast--error .relly-toast-icon{color:#ef4444}.relly-toast--info{border-left:3px solid var(--relly-accent)}.relly-toast--info .relly-toast-icon{color:var(--relly-accent)}.relly-toast-msg{flex:1;line-height:1.3;overflow:hidden;text-overflow:ellipsis}.relly-toast-close{background:transparent;border:none;color:var(--relly-fg);opacity:.5;cursor:pointer;padding:0 2px;font-size:11px}.relly-toast-close:hover{opacity:1}.relly-context-menu{position:absolute;background:var(--relly-bg);border:1px solid var(--relly-border);border-radius:var(--relly-radius);box-shadow:0 8px 24px #0000008c;padding:4px;display:flex;flex-direction:column;min-width:140px;z-index:99999999;animation:relly-menu-in .15s var(--relly-ease)}@keyframes relly-menu-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.relly-context-item{display:flex;align-items:center;gap:6px;background:transparent;border:none;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:5px 8px;border-radius:3px;cursor:pointer;text-align:left;transition:background-color .12s var(--relly-ease),color .12s}.relly-context-item:hover:not(:disabled){background-color:var(--relly-accent);color:#fff}.relly-context-item:disabled{opacity:.4;cursor:not-allowed}.relly-context-item--danger:hover:not(:disabled){background-color:#ef4444!important;color:#fff!important}.relly-context-separator{height:1px;background-color:var(--relly-border);margin:3px 0}.relly-row{display:flex;align-items:center;justify-content:space-between;min-height:var(--relly-row-height);padding:3px 10px;border-bottom:1px solid var(--relly-border);position:relative;transition:background-color .15s var(--relly-ease),opacity .2s var(--relly-ease)}.relly-row:hover{background-color:#ffffff08}.relly-row.relly-search-hidden{display:none!important}.relly-row-label{flex:0 0 40%;max-width:40%;color:var(--relly-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--relly-font-size);cursor:default;position:relative}.relly-row-control{flex:1;display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.relly-multi-row{display:flex;align-items:stretch;width:100%;border-bottom:1px solid var(--relly-border)}.relly-multi-row .relly-row{flex:1;border-bottom:none;border-right:1px solid var(--relly-border);padding:3px 6px}.relly-multi-row .relly-row:last-child{border-right:none}.relly-multi-row .relly-row-label{flex:0 0 auto;max-width:none;margin-right:4px}.relly-tooltip{position:absolute;bottom:calc(100% + 4px);left:10px;background-color:#111216;color:#f3f4f6;padding:4px 8px;border-radius:4px;font-size:10px;line-height:1.3;white-space:nowrap;box-shadow:0 4px 12px #00000080;border:1px solid var(--relly-border);pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .18s var(--relly-ease),transform .18s var(--relly-ease);z-index:99999999}.relly-row:hover .relly-tooltip{opacity:1;transform:translateY(0)}.relly-checkbox-wrapper{display:flex;align-items:center;cursor:pointer;gap:6px}.relly-checkbox-box{width:16px;height:16px;border-radius:4px;background-color:var(--relly-input-bg);border:1px solid var(--relly-border);display:flex;align-items:center;justify-content:center;transition:background-color .18s var(--relly-ease),border-color .18s var(--relly-ease),transform .15s var(--relly-ease)}.relly-checkbox-wrapper:hover .relly-checkbox-box{border-color:var(--relly-accent);transform:scale(1.05)}.relly-checkbox-wrapper:active .relly-checkbox-box{transform:scale(.95)}.relly-checkbox-wrapper.relly-checked .relly-checkbox-box{background-color:var(--relly-accent);border-color:var(--relly-accent);animation:relly-pop .25s var(--relly-ease)}@keyframes relly-pop{0%{transform:scale(.85)}60%{transform:scale(1.15)}to{transform:scale(1)}}.relly-checkbox-icon{display:none;width:10px;height:10px;stroke:#fff;stroke-width:2.5;fill:none}.relly-checkbox-wrapper.relly-checked .relly-checkbox-icon{display:block}.relly-slider-container{display:flex;align-items:center;gap:8px;width:100%}.relly-slider-range{flex:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:4px;border-radius:2px;background:var(--relly-input-bg);outline:none;cursor:pointer;transition:background-color .15s var(--relly-ease)}.relly-slider-range::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:12px;height:12px;border-radius:50%;background:var(--relly-accent);cursor:pointer;box-shadow:0 1px 3px #0000004d;transition:transform .15s var(--relly-ease),background-color .15s}.relly-slider-range::-webkit-slider-thumb:hover{transform:scale(1.25);background:var(--relly-accent-hover)}.relly-slider-range::-webkit-slider-thumb:active{transform:scale(1.35)}.relly-slider-number{width:50px;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:2px 4px;text-align:right;outline:none;transition:border-color .15s var(--relly-ease),background-color .15s}.relly-slider-number:focus{border-color:var(--relly-accent);background:var(--relly-input-hover)}.relly-btn{width:100%;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:inherit;font-size:11px;font-weight:500;padding:4px 10px;cursor:pointer;transition:background-color .15s var(--relly-ease),border-color .15s,color .15s,transform .1s var(--relly-ease);text-align:center}.relly-btn:hover{background-color:var(--relly-input-hover);border-color:var(--relly-accent);color:#fff;transform:translateY(-1px)}.relly-btn:active{transform:translateY(1px) scale(.98)}.relly-select-input{width:100%;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:3px 6px;outline:none;cursor:pointer;transition:border-color .15s var(--relly-ease),background-color .15s}.relly-select-input:focus{border-color:var(--relly-accent);background:var(--relly-input-hover)}.relly-dynamic-value{color:var(--relly-accent);font-weight:500;font-family:monospace;font-size:11px;background:#6366f11a;padding:2px 6px;border-radius:4px;border:1px solid rgba(99,102,241,.2);transition:all .2s var(--relly-ease)}.relly-color-wrapper{display:flex;align-items:center;gap:6px;width:100%;justify-content:flex-end}.relly-color-preview{width:20px;height:20px;border-radius:4px;border:1px solid var(--relly-border);cursor:pointer;box-shadow:inset 0 0 2px #0006;transition:transform .15s var(--relly-ease),border-color .15s}.relly-color-preview:hover{transform:scale(1.15);border-color:#fff}.relly-eyedropper-btn{background:transparent;border:none;color:var(--relly-fg);cursor:pointer;opacity:.7;padding:2px 4px;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:opacity .15s var(--relly-ease),transform .1s var(--relly-ease)}.relly-eyedropper-btn svg{width:13px;height:13px}.relly-eyedropper-btn:hover{opacity:1;color:var(--relly-accent);transform:scale(1.15)}.relly-color-native{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.relly-color-text{font-family:monospace;font-size:11px;color:var(--relly-fg)}.relly-color-swatches{display:flex;align-items:center;gap:3px;flex-wrap:wrap;margin-right:4px}.relly-color-swatch{width:14px;height:14px;border-radius:3px;border:1px solid rgba(255,255,255,.2);cursor:pointer;padding:0;box-sizing:border-box;transition:transform .12s var(--relly-ease),border-color .12s;box-shadow:inset 0 0 2px #00000059}.relly-color-swatch:hover{transform:scale(1.25);border-color:#fff;z-index:2}.relly-color-swatch.relly-swatch-active{border:1.5px solid #fff;box-shadow:0 0 4px var(--relly-accent)}.relly-point2d-container{display:flex;align-items:center;gap:4px;width:100%}.relly-point2d-item{display:flex;align-items:center;gap:2px;flex:1}.relly-point2d-tag{font-size:10px;font-weight:600;color:var(--relly-accent);font-family:monospace}.relly-point2d-input{width:100%;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:2px 4px;text-align:right;outline:none;transition:border-color .15s var(--relly-ease)}.relly-point2d-input:focus{border-color:var(--relly-accent)}.relly-graph-row{display:flex;flex-direction:column;padding:6px 10px;border-bottom:1px solid var(--relly-border);gap:5px;transition:opacity .2s var(--relly-ease)}.relly-graph-row.relly-search-hidden{display:none!important}.relly-graph-header{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--relly-fg)}.relly-graph-label{font-weight:500;opacity:.85}.relly-graph-stats{display:flex;align-items:center;gap:5px;font-family:monospace;font-size:10px}.relly-graph-badge{opacity:.55;font-size:9px}.relly-graph-badge--paused{opacity:1!important;color:#f59e0b;background:#f59e0b2e;font-weight:700;border-radius:3px;padding:1px 4px;border:1px solid rgba(245,158,11,.4);letter-spacing:.5px}.relly-graph-val{color:var(--relly-accent);font-weight:600;background:#6366f11f;padding:1px 4px;border-radius:3px;border:1px solid rgba(99,102,241,.2)}.relly-graph-legend{display:none;align-items:center;gap:8px;font-size:9px;font-family:monospace;opacity:.75;margin-top:-2px}.relly-graph-legend-item{display:flex;align-items:center;gap:4px}.relly-graph-legend-dot{width:6px;height:6px;border-radius:50%;display:inline-block}.relly-graph-canvas-container{width:100%;height:90px;background:var(--relly-input-bg);border-radius:4px;border:1px solid var(--relly-border);overflow:hidden;position:relative;box-shadow:inset 0 2px 6px #00000040;cursor:crosshair;transition:border-color .2s ease,box-shadow .2s ease}.relly-graph-canvas-container.relly-graph-paused{border-color:#f59e0b;box-shadow:inset 0 2px 6px #00000040,0 0 10px #f59e0b40}.relly-graph-canvas{width:100%;height:100%;display:block}.relly-graph-tooltip{position:absolute;pointer-events:none;background:#0f172aeb;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border:1px solid var(--relly-border);border-radius:4px;padding:3px 6px;font-size:9px;font-family:monospace;color:#fff;white-space:nowrap;z-index:10;transform:translate(-50%);opacity:0;transition:opacity .12s ease;box-shadow:0 4px 12px #00000080}.relly-graph-tooltip.relly-tooltip-show{opacity:1}.relly-section{display:flex;flex-direction:column;border-bottom:1px solid var(--relly-border);transition:opacity .2s var(--relly-ease)}.relly-section.relly-search-hidden{display:none!important}.relly-section-header{display:flex;align-items:center;justify-content:space-between;padding:5px 10px;background-color:#ffffff05;cursor:pointer;font-weight:600;color:var(--relly-header-fg);transition:background-color .15s var(--relly-ease)}.relly-section-header:hover{background-color:#ffffff0d}.relly-section-title-wrap{display:flex;align-items:center;gap:6px}.relly-section-arrow{width:12px;height:12px;transition:transform .22s var(--relly-ease);fill:currentColor}.relly-section.relly-section--collapsed .relly-section-arrow{transform:rotate(-90deg)}.relly-section-content{display:flex;flex-direction:column;padding-left:6px;border-left:2px solid var(--relly-accent);transition:opacity .2s var(--relly-ease)}.relly-section.relly-section--collapsed .relly-section-content{display:none}.relly-disabled,.relly-component-row.relly-disabled,.relly-section.relly-disabled{opacity:.42!important;pointer-events:none!important;-webkit-user-select:none!important;user-select:none!important;filter:grayscale(.5)}.relly-jog-scrubbing,.relly-jog-scrubbing *{cursor:ew-resize!important;-webkit-user-select:none!important;user-select:none!important}.relly-mini-sparkline{width:48px;height:16px;display:inline-block;vertical-align:middle;margin-left:6px;border-radius:3px;background:#00000040}.relly-point3d-container{display:flex;align-items:center;gap:4px;width:100%}.relly-point3d-item{display:flex;align-items:center;gap:2px;flex:1;min-width:0}.relly-point3d-tag{font-size:9px;font-weight:700;line-height:1;padding:2px 4px;border-radius:3px;text-transform:uppercase}.relly-point3d-tag--x{background-color:#ef444433;color:#ef4444;border:1px solid rgba(239,68,68,.4)}.relly-point3d-tag--y{background-color:#22c55e33;color:#22c55e;border:1px solid rgba(34,197,94,.4)}.relly-point3d-tag--z{background-color:#3b82f633;color:#3b82f6;border:1px solid rgba(59,130,246,.4)}.relly-point3d-input{width:100%;min-width:24px;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:3px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:2px 4px;text-align:right;cursor:ew-resize}.relly-range-wrapper{display:flex;align-items:center;gap:6px;width:100%}.relly-range-track{flex:1;height:6px;background:var(--relly-input-bg);border-radius:9999px;position:relative;cursor:pointer;box-shadow:inset 0 1px 2px #0000004d}.relly-range-bar{position:absolute;top:0;bottom:0;background:var(--relly-accent);border-radius:9999px;cursor:grab;transition:background-color .15s}.relly-range-bar:active{cursor:grabbing;background:var(--relly-accent-hover)}.relly-range-thumb{position:absolute;top:50%;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid var(--relly-accent);transform:translate(-50%,-50%);cursor:grab;z-index:2;transition:transform .1s var(--relly-ease),box-shadow .15s;box-shadow:0 1px 4px #0006}.relly-range-thumb:hover{transform:translate(-50%,-50%) scale(1.2);box-shadow:0 0 6px var(--relly-accent)}.relly-range-thumb:active{cursor:grabbing;transform:translate(-50%,-50%) scale(1.25)}.relly-range-input{width:38px;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:3px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:2px 4px;text-align:right}.relly-segmented-container{display:flex;position:relative;background:var(--relly-input-bg);border-radius:4px;border:1px solid var(--relly-border);padding:2px;width:100%;overflow:hidden}.relly-segmented-glider{position:absolute;top:2px;bottom:2px;background:var(--relly-accent);border-radius:3px;box-shadow:0 1px 4px #00000059;transition:transform .2s var(--relly-ease),width .2s var(--relly-ease),opacity .15s;pointer-events:none;z-index:1}.relly-segmented-btn{flex:1;position:relative;background:transparent;border:none;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:3px 6px;cursor:pointer;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:2;transition:color .15s var(--relly-ease)}.relly-segmented-btn:hover{color:#fff}.relly-segmented-btn.relly-segmented-btn--active{color:#fff;font-weight:600}.relly-status-wrapper{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-end}.relly-status-led{position:relative;width:8px;height:8px;display:flex;align-items:center;justify-content:center}.relly-status-led-core{width:7px;height:7px;border-radius:50%;background-color:#22c55e;position:relative;z-index:2}.relly-status-pulse-ring{position:absolute;width:100%;height:100%;border-radius:50%;background-color:inherit;opacity:.75;animation:relly-status-pulse 2s cubic-bezier(.24,0,.38,1) infinite;z-index:1}@keyframes relly-status-pulse{0%{transform:scale(.95);opacity:.8}70%{transform:scale(2.4);opacity:0}to{transform:scale(2.4);opacity:0}}.relly-status-led--online .relly-status-led-core,.relly-status-led--online .relly-status-pulse-ring{background-color:#22c55e}.relly-status-led--busy .relly-status-led-core,.relly-status-led--busy .relly-status-pulse-ring{background-color:#f59e0b}.relly-status-led--offline .relly-status-led-core,.relly-status-led--offline .relly-status-pulse-ring{background-color:#ef4444}.relly-status-led--info .relly-status-led-core,.relly-status-led--info .relly-status-pulse-ring{background-color:#3b82f6}.relly-status-led--ready .relly-status-led-core,.relly-status-led--ready .relly-status-pulse-ring{background-color:#a855f7}.relly-status-badge{font-size:10px;font-weight:700;padding:1px 6px;border-radius:9999px;text-transform:uppercase;letter-spacing:.04em;background:#ffffff14}.relly-status-badge--online{color:#22c55e;background:#22c55e26}.relly-status-badge--busy{color:#f59e0b;background:#f59e0b26}.relly-status-badge--offline{color:#ef4444;background:#ef444426}.relly-status-badge--info{color:#3b82f6;background:#3b82f626}.relly-status-badge--ready{color:#a855f7;background:#a855f726}.relly-status-detail{font-size:10px;color:var(--relly-fg);opacity:.7;font-family:monospace}', I = "relly-ui-stylesheet";
|
|
2223
|
-
function
|
|
2224
|
-
const i =
|
|
2225
|
-
if (!i || "getElementById" in i && i.getElementById(
|
|
2530
|
+
const xe = ':root{--relly-bg: #1c1d22;--relly-fg: #d1d5db;--relly-header-bg: #141518;--relly-header-fg: #f3f4f6;--relly-accent: #6366f1;--relly-accent-hover: #4f46e5;--relly-border: rgba(255, 255, 255, .08);--relly-input-bg: #26272e;--relly-input-hover: #2f3039;--relly-radius: 6px;--relly-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--relly-font-size: 11px;--relly-row-height: 26px;--relly-ease: cubic-bezier(.16, 1, .3, 1);--relly-transition: all .2s var(--relly-ease)}.relly-host{position:fixed;z-index:999999;pointer-events:none}.relly-panel{position:fixed;z-index:999999;background-color:var(--relly-bg);color:var(--relly-fg);border:1px solid var(--relly-border);border-radius:var(--relly-radius);box-shadow:0 10px 25px -5px #00000080,0 8px 10px -6px #0006;font-family:var(--relly-font);font-size:var(--relly-font-size);-webkit-user-select:none;user-select:none;box-sizing:border-box;overflow:hidden!important;overflow-x:hidden!important;display:flex;flex-direction:column;pointer-events:auto;opacity:1;transform:scale(1) translateY(0);transition:opacity .22s var(--relly-ease),transform .22s var(--relly-ease);min-width:240px;min-height:120px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}.relly-panel.relly-mini-hud{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;border-radius:9999px!important;box-shadow:0 4px 20px #0006,0 0 0 1px var(--relly-accent)}.relly-panel.relly-mini-hud .relly-header{border-bottom:none;padding:5px 12px;border-radius:9999px;background-color:var(--relly-bg)}.relly-panel.relly-mini-hud .relly-body,.relly-panel.relly-mini-hud .relly-search-bar,.relly-panel.relly-mini-hud .relly-tabs-bar,.relly-panel.relly-mini-hud .relly-resize-handle,.relly-panel.relly-mini-hud .relly-header-btn:not(.relly-minihud-btn){display:none!important}.relly-panel.relly-mini-hud .relly-header-title:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background-color:var(--relly-accent);box-shadow:0 0 6px var(--relly-accent);margin-right:6px;animation:relly-pulse 2s infinite ease-in-out}@keyframes relly-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.85)}}.relly-panel *{box-sizing:border-box}.relly-panel,.relly-panel *,.relly-body,.relly-tabs-bar,.relly-search-bar{scrollbar-width:none!important;-ms-overflow-style:none!important}.relly-panel *::-webkit-scrollbar,.relly-panel::-webkit-scrollbar,.relly-body::-webkit-scrollbar,.relly-tabs-bar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}.relly-panel.relly-hidden{opacity:0!important;transform:scale(.95) translateY(-6px)!important;pointer-events:none!important}.relly-header{display:flex;align-items:center;justify-content:space-between;background-color:var(--relly-header-bg);color:var(--relly-header-fg);padding:6px 10px;font-weight:600;border-bottom:1px solid var(--relly-border);cursor:grab;transition:background-color .2s var(--relly-ease);flex-shrink:0}.relly-header:active{cursor:grabbing}.relly-header-title{display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.relly-header-title svg{width:14px;height:14px;color:var(--relly-accent);transition:transform .2s var(--relly-ease)}.relly-header-title:hover svg{transform:rotate(15deg)}.relly-header-actions{display:flex;align-items:center;gap:4px}.relly-header-btn{background:transparent;border:none;color:var(--relly-fg);opacity:.7;padding:2px 6px;border-radius:4px;cursor:pointer;font-family:inherit;font-size:11px;line-height:1;display:flex;align-items:center;justify-content:center;transition:opacity .15s,background-color .15s,transform .1s var(--relly-ease)}.relly-header-btn:hover{opacity:1;background-color:#ffffff1a;transform:scale(1.08)}.relly-header-btn:active{transform:scale(.92)}.relly-resize-handle{position:absolute;bottom:0;right:0;width:14px;height:14px;cursor:se-resize;display:flex;align-items:center;justify-content:center;opacity:.4;transition:opacity .15s var(--relly-ease);z-index:100}.relly-resize-handle svg{width:9px;height:9px;stroke:var(--relly-fg);stroke-width:1.5}.relly-resize-handle:hover{opacity:1}.relly-search-bar{display:flex;align-items:center;padding:4px 8px;background-color:#0003;border-bottom:1px solid var(--relly-border);gap:6px;flex-shrink:0}.relly-search-input{width:100%;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:3px 6px;outline:none;transition:border-color .15s var(--relly-ease),background-color .15s}.relly-search-input:focus{border-color:var(--relly-accent);background-color:var(--relly-input-hover)}.relly-search-clear{background:none;border:none;color:var(--relly-fg);cursor:pointer;opacity:.5;font-size:10px;padding:0 4px;transition:opacity .15s}.relly-search-clear:hover{opacity:1}.relly-tabs-bar{display:flex;background-color:var(--relly-header-bg);border-bottom:1px solid var(--relly-border);overflow-x:auto;overflow-y:hidden;flex-shrink:0;scrollbar-width:none!important;-ms-overflow-style:none!important}.relly-tabs-bar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}.relly-tab-btn{flex:1;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--relly-fg);opacity:.6;padding:5px 8px;font-family:inherit;font-size:11px;cursor:pointer;white-space:nowrap;transition:all .2s var(--relly-ease)}.relly-tab-btn:hover{opacity:.9;background-color:#ffffff08}.relly-tab-btn.relly-tab-active{opacity:1;color:var(--relly-accent);border-bottom-color:var(--relly-accent)}.relly-tab-content{display:none}.relly-tab-content.relly-tab-content--active{display:flex;flex-direction:column}.relly-body{display:flex;flex-direction:column;overflow-y:auto!important;overflow-x:hidden!important;max-height:80vh;flex:1;transition:max-height .25s var(--relly-ease);scrollbar-width:none!important;-ms-overflow-style:none!important}.relly-body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}.relly-panel.relly-collapsed .relly-body{display:none}.relly-copy-toast{position:absolute;top:36px;right:10px;background:var(--relly-accent);color:#fff;padding:3px 8px;border-radius:4px;font-size:10px;font-weight:600;box-shadow:0 4px 12px #0000004d;pointer-events:none;opacity:0;transform:translateY(-6px);transition:opacity .2s var(--relly-ease),transform .2s var(--relly-ease);z-index:9999999}.relly-copy-toast.relly-toast-show{opacity:1;transform:translateY(0)}.relly-modal-backdrop{position:absolute;top:0;left:0;width:100%;height:100%;background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:999999;display:flex;align-items:center;justify-content:center;padding:12px;opacity:0;pointer-events:none;transition:opacity .2s var(--relly-ease)}.relly-modal-backdrop.relly-modal-show{opacity:1;pointer-events:auto}.relly-modal{width:100%;max-width:320px;background:var(--relly-bg);border:1px solid var(--relly-border);border-radius:var(--relly-radius);box-shadow:0 12px 30px #0009;padding:12px;display:flex;flex-direction:column;gap:8px;transform:scale(.95);transition:transform .2s var(--relly-ease)}.relly-modal-backdrop.relly-modal-show .relly-modal{transform:scale(1)}.relly-modal-header{display:flex;justify-content:space-between;align-items:center;font-weight:600;color:var(--relly-header-fg);font-size:12px}.relly-dropzone{border:1.5px dashed var(--relly-border);border-radius:4px;padding:12px;text-align:center;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--relly-fg);opacity:.8;font-size:11px;background:#00000026;transition:all .2s var(--relly-ease)}.relly-dropzone:hover,.relly-dropzone.relly-dropzone-drag{border-color:var(--relly-accent);opacity:1;background:#6366f114}.relly-import-textarea{width:100%;height:90px;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:monospace;font-size:10px;padding:6px;outline:none;resize:vertical}.relly-import-textarea:focus{border-color:var(--relly-accent)}.relly-import-error{color:#ef4444;font-size:10px;min-height:12px}.relly-modal-actions{display:flex;gap:6px}.relly-btn-primary{background:var(--relly-accent)!important;color:#fff!important;border-color:var(--relly-accent)!important}.relly-btn-primary:hover{background:var(--relly-accent-hover)!important}.relly-toast-container{position:absolute;top:36px;right:8px;display:flex;flex-direction:column;gap:6px;z-index:9999999;pointer-events:none;max-width:240px}.relly-toast{display:flex;align-items:center;gap:6px;padding:6px 8px;background:var(--relly-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-size:11px;box-shadow:0 4px 16px #00000073;pointer-events:auto;opacity:0;transform:translateY(-8px) scale(.96);transition:opacity .2s var(--relly-ease),transform .2s var(--relly-ease);cursor:pointer}.relly-toast.relly-toast-enter{opacity:1;transform:translateY(0) scale(1)}.relly-toast.relly-toast-leave{opacity:0;transform:translateY(-6px) scale(.95)}.relly-toast-icon svg{width:14px;height:14px;display:block}.relly-toast--success{border-left:3px solid #22c55e}.relly-toast--success .relly-toast-icon{color:#22c55e}.relly-toast--warning{border-left:3px solid #f59e0b}.relly-toast--warning .relly-toast-icon{color:#f59e0b}.relly-toast--error{border-left:3px solid #ef4444}.relly-toast--error .relly-toast-icon{color:#ef4444}.relly-toast--info{border-left:3px solid var(--relly-accent)}.relly-toast--info .relly-toast-icon{color:var(--relly-accent)}.relly-toast-msg{flex:1;line-height:1.3;overflow:hidden;text-overflow:ellipsis}.relly-toast-close{background:transparent;border:none;color:var(--relly-fg);opacity:.5;cursor:pointer;padding:0 2px;font-size:11px}.relly-toast-close:hover{opacity:1}.relly-context-menu{position:absolute;background:var(--relly-bg);border:1px solid var(--relly-border);border-radius:var(--relly-radius);box-shadow:0 8px 24px #0000008c;padding:4px;display:flex;flex-direction:column;min-width:140px;z-index:99999999;animation:relly-menu-in .15s var(--relly-ease)}@keyframes relly-menu-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.relly-context-item{display:flex;align-items:center;gap:6px;background:transparent;border:none;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:5px 8px;border-radius:3px;cursor:pointer;text-align:left;transition:background-color .12s var(--relly-ease),color .12s}.relly-context-item:hover:not(:disabled){background-color:var(--relly-accent);color:#fff}.relly-context-item:disabled{opacity:.4;cursor:not-allowed}.relly-context-item--danger:hover:not(:disabled){background-color:#ef4444!important;color:#fff!important}.relly-context-separator{height:1px;background-color:var(--relly-border);margin:3px 0}.relly-row{display:flex;align-items:center;justify-content:space-between;min-height:var(--relly-row-height);padding:3px 10px;border-bottom:1px solid var(--relly-border);position:relative;transition:background-color .15s var(--relly-ease),opacity .2s var(--relly-ease)}.relly-row:hover{background-color:#ffffff08}.relly-row.relly-search-hidden{display:none!important}.relly-row-label{flex:0 0 40%;max-width:40%;color:var(--relly-fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--relly-font-size);cursor:default;position:relative}.relly-row-control{flex:1;display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.relly-multi-row{display:flex;align-items:stretch;width:100%;border-bottom:1px solid var(--relly-border)}.relly-multi-row .relly-row{flex:1;border-bottom:none;border-right:1px solid var(--relly-border);padding:3px 6px}.relly-multi-row .relly-row:last-child{border-right:none}.relly-multi-row .relly-row-label{flex:0 0 auto;max-width:none;margin-right:4px}.relly-tooltip{position:absolute;bottom:calc(100% + 4px);left:10px;background-color:#111216;color:#f3f4f6;padding:4px 8px;border-radius:4px;font-size:10px;line-height:1.3;white-space:nowrap;box-shadow:0 4px 12px #00000080;border:1px solid var(--relly-border);pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .18s var(--relly-ease),transform .18s var(--relly-ease);z-index:99999999}.relly-row:hover .relly-tooltip{opacity:1;transform:translateY(0)}.relly-checkbox-wrapper{display:flex;align-items:center;cursor:pointer;gap:6px}.relly-checkbox-box{width:16px;height:16px;border-radius:4px;background-color:var(--relly-input-bg);border:1px solid var(--relly-border);display:flex;align-items:center;justify-content:center;transition:background-color .18s var(--relly-ease),border-color .18s var(--relly-ease),transform .15s var(--relly-ease)}.relly-checkbox-wrapper:hover .relly-checkbox-box{border-color:var(--relly-accent);transform:scale(1.05)}.relly-checkbox-wrapper:active .relly-checkbox-box{transform:scale(.95)}.relly-checkbox-wrapper.relly-checked .relly-checkbox-box{background-color:var(--relly-accent);border-color:var(--relly-accent);animation:relly-pop .25s var(--relly-ease)}@keyframes relly-pop{0%{transform:scale(.85)}60%{transform:scale(1.15)}to{transform:scale(1)}}.relly-checkbox-icon{display:none;width:10px;height:10px;stroke:#fff;stroke-width:2.5;fill:none}.relly-checkbox-wrapper.relly-checked .relly-checkbox-icon{display:block}.relly-slider-container{display:flex;align-items:center;gap:8px;width:100%}.relly-slider-range{flex:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:4px;border-radius:2px;background:var(--relly-input-bg);outline:none;cursor:pointer;transition:background-color .15s var(--relly-ease)}.relly-slider-range::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:12px;height:12px;border-radius:50%;background:var(--relly-accent);cursor:pointer;box-shadow:0 1px 3px #0000004d;transition:transform .15s var(--relly-ease),background-color .15s}.relly-slider-range::-webkit-slider-thumb:hover{transform:scale(1.25);background:var(--relly-accent-hover)}.relly-slider-range::-webkit-slider-thumb:active{transform:scale(1.35)}.relly-slider-number{width:50px;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:2px 4px;text-align:right;outline:none;transition:border-color .15s var(--relly-ease),background-color .15s}.relly-slider-number:focus{border-color:var(--relly-accent);background:var(--relly-input-hover)}.relly-btn{width:100%;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:inherit;font-size:11px;font-weight:500;padding:4px 10px;cursor:pointer;transition:background-color .15s var(--relly-ease),border-color .15s,color .15s,transform .1s var(--relly-ease);text-align:center}.relly-btn:hover{background-color:var(--relly-input-hover);border-color:var(--relly-accent);color:#fff;transform:translateY(-1px)}.relly-btn:active{transform:translateY(1px) scale(.98)}.relly-select-input{width:100%;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:3px 6px;outline:none;cursor:pointer;transition:border-color .15s var(--relly-ease),background-color .15s}.relly-select-input:focus{border-color:var(--relly-accent);background:var(--relly-input-hover)}.relly-dynamic-value{color:var(--relly-accent);font-weight:500;font-family:monospace;font-size:11px;background:#6366f11a;padding:2px 6px;border-radius:4px;border:1px solid rgba(99,102,241,.2);transition:all .2s var(--relly-ease)}.relly-color-wrapper{display:flex;align-items:center;gap:6px;width:100%;justify-content:flex-end}.relly-color-preview{width:20px;height:20px;border-radius:4px;border:1px solid var(--relly-border);cursor:pointer;box-shadow:inset 0 0 2px #0006;transition:transform .15s var(--relly-ease),border-color .15s}.relly-color-preview:hover{transform:scale(1.15);border-color:#fff}.relly-eyedropper-btn{background:transparent;border:none;color:var(--relly-fg);cursor:pointer;opacity:.7;padding:2px 4px;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:opacity .15s var(--relly-ease),transform .1s var(--relly-ease)}.relly-eyedropper-btn svg{width:13px;height:13px}.relly-eyedropper-btn:hover{opacity:1;color:var(--relly-accent);transform:scale(1.15)}.relly-color-native{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.relly-color-text{font-family:monospace;font-size:11px;color:var(--relly-fg);background:transparent;border:1px solid transparent;border-radius:var(--relly-radius);padding:2px 4px;width:72px;text-transform:uppercase;transition:all .15s ease}.relly-color-text:hover{border-color:#fff3;background:var(--relly-input-bg)}.relly-color-text:focus{outline:none;border-color:var(--relly-accent);background:var(--relly-input-bg);box-shadow:0 0 0 2px #38bdf833}.relly-color-swatches{display:flex;align-items:center;gap:3px;flex-wrap:wrap;margin-right:4px}.relly-color-swatch{width:14px;height:14px;border-radius:3px;border:1px solid rgba(255,255,255,.2);cursor:pointer;padding:0;box-sizing:border-box;transition:transform .12s var(--relly-ease),border-color .12s;box-shadow:inset 0 0 2px #00000059}.relly-color-swatch:hover{transform:scale(1.25);border-color:#fff;z-index:2}.relly-color-swatch.relly-swatch-active{border:1.5px solid #fff;box-shadow:0 0 4px var(--relly-accent)}.relly-point2d-container{display:flex;align-items:center;gap:4px;width:100%}.relly-point2d-item{display:flex;align-items:center;gap:2px;flex:1}.relly-point2d-tag{font-size:10px;font-weight:600;color:var(--relly-accent);font-family:monospace}.relly-point2d-input{width:100%;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:4px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:2px 4px;text-align:right;outline:none;transition:border-color .15s var(--relly-ease)}.relly-point2d-input:focus{border-color:var(--relly-accent)}.relly-graph-row{display:flex;flex-direction:column;padding:6px 10px;border-bottom:1px solid var(--relly-border);gap:5px;transition:opacity .2s var(--relly-ease)}.relly-graph-row.relly-search-hidden{display:none!important}.relly-graph-header{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--relly-fg)}.relly-graph-label{font-weight:500;opacity:.85}.relly-graph-stats{display:flex;align-items:center;gap:5px;font-family:monospace;font-size:10px}.relly-graph-badge{opacity:.55;font-size:9px}.relly-graph-badge--paused{opacity:1!important;color:#f59e0b;background:#f59e0b2e;font-weight:700;border-radius:3px;padding:1px 4px;border:1px solid rgba(245,158,11,.4);letter-spacing:.5px}.relly-graph-val{color:var(--relly-accent);font-weight:600;background:#6366f11f;padding:1px 4px;border-radius:3px;border:1px solid rgba(99,102,241,.2)}.relly-graph-legend{display:none;align-items:center;gap:8px;font-size:9px;font-family:monospace;opacity:.75;margin-top:-2px}.relly-graph-legend-item{display:flex;align-items:center;gap:4px}.relly-graph-legend-dot{width:6px;height:6px;border-radius:50%;display:inline-block}.relly-graph-canvas-container{width:100%;height:90px;background:var(--relly-input-bg);border-radius:4px;border:1px solid var(--relly-border);overflow:hidden;position:relative;box-shadow:inset 0 2px 6px #00000040;cursor:crosshair;transition:border-color .2s ease,box-shadow .2s ease}.relly-graph-canvas-container.relly-graph-paused{border-color:#f59e0b;box-shadow:inset 0 2px 6px #00000040,0 0 10px #f59e0b40}.relly-graph-canvas{width:100%;height:100%;display:block}.relly-graph-tooltip{position:absolute;pointer-events:none;background:#0f172aeb;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border:1px solid var(--relly-border);border-radius:4px;padding:3px 6px;font-size:9px;font-family:monospace;color:#fff;white-space:nowrap;z-index:10;transform:translate(-50%);opacity:0;transition:opacity .12s ease;box-shadow:0 4px 12px #00000080}.relly-graph-tooltip.relly-tooltip-show{opacity:1}.relly-section{display:flex;flex-direction:column;border-bottom:1px solid var(--relly-border);transition:opacity .2s var(--relly-ease)}.relly-section.relly-search-hidden{display:none!important}.relly-section-header{display:flex;align-items:center;justify-content:space-between;padding:5px 10px;background-color:#ffffff05;cursor:pointer;font-weight:600;color:var(--relly-header-fg);transition:background-color .15s var(--relly-ease)}.relly-section-header:hover{background-color:#ffffff0d}.relly-section-title-wrap{display:flex;align-items:center;gap:6px}.relly-section-arrow{width:12px;height:12px;transition:transform .22s var(--relly-ease);fill:currentColor}.relly-section.relly-section--collapsed .relly-section-arrow{transform:rotate(-90deg)}.relly-section-content{display:flex;flex-direction:column;padding-left:6px;border-left:2px solid var(--relly-accent);transition:opacity .2s var(--relly-ease)}.relly-section.relly-section--collapsed .relly-section-content{display:none}.relly-disabled,.relly-component-row.relly-disabled,.relly-section.relly-disabled{opacity:.42!important;pointer-events:none!important;-webkit-user-select:none!important;user-select:none!important;filter:grayscale(.5)}.relly-jog-scrubbing,.relly-jog-scrubbing *{cursor:ew-resize!important;-webkit-user-select:none!important;user-select:none!important}.relly-mini-sparkline{width:48px;height:16px;display:inline-block;vertical-align:middle;margin-left:6px;border-radius:3px;background:#00000040}.relly-point3d-container{display:flex;align-items:center;gap:4px;width:100%}.relly-point3d-item{display:flex;align-items:center;gap:2px;flex:1;min-width:0}.relly-point3d-tag{font-size:9px;font-weight:700;line-height:1;padding:2px 4px;border-radius:3px;text-transform:uppercase}.relly-point3d-tag--x{background-color:#ef444433;color:#ef4444;border:1px solid rgba(239,68,68,.4)}.relly-point3d-tag--y{background-color:#22c55e33;color:#22c55e;border:1px solid rgba(34,197,94,.4)}.relly-point3d-tag--z{background-color:#3b82f633;color:#3b82f6;border:1px solid rgba(59,130,246,.4)}.relly-point3d-input{width:100%;min-width:24px;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:3px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:2px 4px;text-align:right;cursor:ew-resize}.relly-range-wrapper{display:flex;align-items:center;gap:6px;width:100%}.relly-range-track{flex:1;height:6px;background:var(--relly-input-bg);border-radius:9999px;position:relative;cursor:pointer;box-shadow:inset 0 1px 2px #0000004d}.relly-range-bar{position:absolute;top:0;bottom:0;background:var(--relly-accent);border-radius:9999px;cursor:grab;transition:background-color .15s}.relly-range-bar:active{cursor:grabbing;background:var(--relly-accent-hover)}.relly-range-thumb{position:absolute;top:50%;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid var(--relly-accent);transform:translate(-50%,-50%);cursor:grab;z-index:2;transition:transform .1s var(--relly-ease),box-shadow .15s;box-shadow:0 1px 4px #0006}.relly-range-thumb:hover{transform:translate(-50%,-50%) scale(1.2);box-shadow:0 0 6px var(--relly-accent)}.relly-range-thumb:active{cursor:grabbing;transform:translate(-50%,-50%) scale(1.25)}.relly-range-input{width:38px;background:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:3px;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:2px 4px;text-align:right}.relly-segmented-container{display:flex;position:relative;background:var(--relly-input-bg);border-radius:4px;border:1px solid var(--relly-border);padding:2px;width:100%;overflow:hidden}.relly-segmented-glider{position:absolute;top:2px;bottom:2px;background:var(--relly-accent);border-radius:3px;box-shadow:0 1px 4px #00000059;transition:transform .2s var(--relly-ease),width .2s var(--relly-ease),opacity .15s;pointer-events:none;z-index:1}.relly-segmented-btn{flex:1;position:relative;background:transparent;border:none;color:var(--relly-fg);font-family:inherit;font-size:11px;padding:3px 6px;cursor:pointer;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:2;transition:color .15s var(--relly-ease)}.relly-segmented-btn:hover{color:#fff}.relly-segmented-btn.relly-segmented-btn--active{color:#fff;font-weight:600}.relly-status-wrapper{display:flex;align-items:center;gap:8px;width:100%;justify-content:flex-end}.relly-status-led{position:relative;width:8px;height:8px;display:flex;align-items:center;justify-content:center}.relly-status-led-core{width:7px;height:7px;border-radius:50%;background-color:#22c55e;position:relative;z-index:2}.relly-status-pulse-ring{position:absolute;width:100%;height:100%;border-radius:50%;background-color:inherit;opacity:.75;animation:relly-status-pulse 2s cubic-bezier(.24,0,.38,1) infinite;z-index:1}@keyframes relly-status-pulse{0%{transform:scale(.95);opacity:.8}70%{transform:scale(2.4);opacity:0}to{transform:scale(2.4);opacity:0}}.relly-status-led--online .relly-status-led-core,.relly-status-led--online .relly-status-pulse-ring{background-color:#22c55e}.relly-status-led--busy .relly-status-led-core,.relly-status-led--busy .relly-status-pulse-ring{background-color:#f59e0b}.relly-status-led--offline .relly-status-led-core,.relly-status-led--offline .relly-status-pulse-ring{background-color:#ef4444}.relly-status-led--info .relly-status-led-core,.relly-status-led--info .relly-status-pulse-ring{background-color:#3b82f6}.relly-status-led--ready .relly-status-led-core,.relly-status-led--ready .relly-status-pulse-ring{background-color:#a855f7}.relly-status-badge{font-size:10px;font-weight:700;padding:1px 6px;border-radius:9999px;text-transform:uppercase;letter-spacing:.04em;background:#ffffff14}.relly-status-badge--online{color:#22c55e;background:#22c55e26}.relly-status-badge--busy{color:#f59e0b;background:#f59e0b26}.relly-status-badge--offline{color:#ef4444;background:#ef444426}.relly-status-badge--info{color:#3b82f6;background:#3b82f626}.relly-status-badge--ready{color:#a855f7;background:#a855f726}.relly-status-detail{font-size:10px;color:var(--relly-fg);opacity:.7;font-family:monospace}.relly-switch-wrap{display:inline-flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none}.relly-switch-native{position:absolute;opacity:0;width:0;height:0;pointer-events:none}.relly-switch-track{position:relative;width:34px;height:18px;border-radius:9999px;background-color:#ffffff29;border:1px solid rgba(255,255,255,.12);transition:all .22s cubic-bezier(.4,0,.2,1);display:inline-block}.relly-switch-wrap:hover .relly-switch-track{background-color:#ffffff3d;border-color:#fff3}.relly-switch-thumb{position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background-color:#fff;box-shadow:0 1px 3px #0006;transition:transform .22s cubic-bezier(.34,1.56,.64,1),background-color .2s}.relly-switch-track--checked{background-color:var(--relly-accent);border-color:var(--relly-accent);box-shadow:0 0 10px var(--relly-accent)}.relly-switch-track--checked .relly-switch-thumb{transform:translate(16px);background-color:#fff}.relly-switch-text{font-size:10px;font-family:monospace;font-weight:700;color:var(--relly-fg);opacity:.8}.relly-button-group-row{padding:3px 0}.relly-button-group{display:flex;width:100%;gap:4px}.relly-btn--group{flex:1;min-width:0;padding:5px 8px;font-size:11px;font-weight:600;text-align:center;border-radius:var(--relly-radius);background-color:var(--relly-input-bg);color:var(--relly-fg);border:1px solid var(--relly-border);cursor:pointer;transition:all .16s var(--relly-ease)}.relly-btn--group:hover{background-color:var(--relly-input-hover);border-color:var(--relly-accent);transform:translateY(-1px)}.relly-btn--group:active{transform:translateY(1px)}.relly-btn--group.relly-btn--primary{background-color:var(--relly-accent);color:#0f172a;border-color:var(--relly-accent)}.relly-btn--group.relly-btn--primary:hover{filter:brightness(1.15);box-shadow:0 0 10px var(--relly-accent)}.relly-btn--group.relly-btn--danger{color:#f87171;border-color:#ef444459}.relly-btn--group.relly-btn--danger:hover{background-color:#ef44442e;border-color:#ef4444}.relly-text-wrap{position:relative;display:flex;align-items:center;width:100%}.relly-text-input{width:100%;background-color:var(--relly-input-bg);border:1px solid var(--relly-border);border-radius:var(--relly-radius);color:var(--relly-fg);font-size:11px;padding:4px 24px 4px 8px;outline:none;transition:all .15s ease}.relly-text-input:hover{background-color:var(--relly-input-hover);border-color:#fff3}.relly-text-input:focus{border-color:var(--relly-accent);background-color:var(--relly-input-hover);box-shadow:0 0 0 2px #38bdf833}.relly-text-clear{position:absolute;right:6px;background:none;border:none;color:var(--relly-fg);opacity:.45;cursor:pointer;font-size:10px;padding:2px 4px;line-height:1;transition:opacity .15s}.relly-text-clear:hover{opacity:1}.relly-progress-wrap{display:flex;align-items:center;gap:8px;width:100%}.relly-progress-track{flex:1;height:6px;border-radius:9999px;background-color:#ffffff1a;overflow:hidden;position:relative}.relly-progress-bar{height:100%;border-radius:9999px;background:linear-gradient(90deg,var(--relly-accent),#38bdf8);box-shadow:0 0 8px var(--relly-accent);transition:width .18s ease-out;width:0%}.relly-progress-text{font-size:10px;font-family:monospace;font-weight:700;color:var(--relly-fg);opacity:.8;min-width:32px;text-align:right}.relly-separator-row{padding:6px 0}.relly-separator{display:flex;align-items:center;gap:8px;width:100%}.relly-separator-line{flex:1;height:1px;background-color:#ffffff1f}.relly-separator--dashed .relly-separator-line{background:none;border-bottom:1px dashed rgba(255,255,255,.2);height:0}.relly-separator-title{font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:var(--relly-fg);opacity:.55;white-space:nowrap}', L = "relly-ui-stylesheet";
|
|
2531
|
+
function X(f) {
|
|
2532
|
+
const i = f || (typeof document < "u" ? document : null);
|
|
2533
|
+
if (!i || "getElementById" in i && i.getElementById(L) || "querySelector" in i && i.querySelector(`#${L}`)) return;
|
|
2226
2534
|
const e = document.createElement("style");
|
|
2227
|
-
e.id =
|
|
2535
|
+
e.id = L, e.textContent = xe, "head" in i && i.head ? i.head.appendChild(e) : i.appendChild(e);
|
|
2228
2536
|
}
|
|
2229
2537
|
const S = class S extends T {
|
|
2230
2538
|
// Calm, readable telemetry rate (~5.5 samples per sec)
|
|
2231
2539
|
constructor(e = {}) {
|
|
2232
|
-
const t = e.shadowDOM !== !1, n = new
|
|
2233
|
-
|
|
2234
|
-
const
|
|
2235
|
-
if (
|
|
2540
|
+
const t = e.shadowDOM !== !1, n = new Q(), s = new Z(), r = new ce(e.sound !== !1, e.soundPack || "synth"), o = document.createElement("div");
|
|
2541
|
+
o.className = "relly-panel";
|
|
2542
|
+
const a = e.width ?? 280;
|
|
2543
|
+
if (o.style.width = typeof a == "number" ? `${a}px` : a, e.height) {
|
|
2236
2544
|
const b = e.height;
|
|
2237
|
-
|
|
2545
|
+
o.style.height = typeof b == "number" ? `${b}px` : b;
|
|
2238
2546
|
}
|
|
2239
2547
|
const h = document.createElement("div");
|
|
2240
2548
|
h.className = "relly-header";
|
|
@@ -2257,23 +2565,23 @@ const S = class S extends T {
|
|
|
2257
2565
|
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>
|
|
2258
2566
|
</svg>
|
|
2259
2567
|
`, p.appendChild(d);
|
|
2260
|
-
const
|
|
2261
|
-
|
|
2568
|
+
const y = document.createElement("button");
|
|
2569
|
+
y.className = "relly-header-btn", y.title = "Import settings from JSON", y.innerHTML = `
|
|
2262
2570
|
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
2263
2571
|
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
|
|
2264
2572
|
<polyline points="7 10 12 15 17 10"></polyline>
|
|
2265
2573
|
<line x1="12" y1="15" x2="12" y2="3"></line>
|
|
2266
2574
|
</svg>
|
|
2267
|
-
`, p.appendChild(
|
|
2575
|
+
`, p.appendChild(y);
|
|
2268
2576
|
const x = document.createElement("button");
|
|
2269
2577
|
x.className = "relly-header-btn relly-minihud-btn", x.title = "Toggle Mini-HUD pill (or double-click header)", x.textContent = "⤢", p.appendChild(x);
|
|
2270
2578
|
const u = document.createElement("button");
|
|
2271
|
-
u.className = "relly-header-btn", u.title = "Collapse/Expand", u.textContent = "_", p.appendChild(u), h.appendChild(c), h.appendChild(p),
|
|
2579
|
+
u.className = "relly-header-btn", u.title = "Collapse/Expand", u.textContent = "_", p.appendChild(u), h.appendChild(c), h.appendChild(p), o.appendChild(h);
|
|
2272
2580
|
const v = document.createElement("div");
|
|
2273
|
-
v.className = "relly-copy-toast", v.textContent = "JSON Copied!",
|
|
2274
|
-
const
|
|
2275
|
-
|
|
2276
|
-
super(
|
|
2581
|
+
v.className = "relly-copy-toast", v.textContent = "JSON Copied!", o.appendChild(v);
|
|
2582
|
+
const w = document.createElement("div");
|
|
2583
|
+
w.className = "relly-body", e.height && (w.style.maxHeight = "none", w.style.flex = "1"), o.appendChild(w);
|
|
2584
|
+
super(w, n, s, r);
|
|
2277
2585
|
l(this, "hostEl");
|
|
2278
2586
|
l(this, "shadowRoot", null);
|
|
2279
2587
|
l(this, "panelEl");
|
|
@@ -2305,11 +2613,11 @@ const S = class S extends T {
|
|
|
2305
2613
|
l(this, "sparklineAnimId");
|
|
2306
2614
|
l(this, "lastSparklineTime", 0);
|
|
2307
2615
|
l(this, "sparklineInterval", 180);
|
|
2308
|
-
this.panelEl =
|
|
2616
|
+
this.panelEl = o, this.headerEl = h, this.titleEl = m, this.collapseBtn = u, this.copyToastEl = v, this.soundEngine = r, this.onResizeBound = () => this.clampToViewport(), e.searchBar && (this.searchBarInstance = new he(w, e.searchOptions), h.insertAdjacentElement("afterend", this.searchBarInstance.element)), this.themeManager = new le(this.panelEl, e.theme), this.mount(e, t), e.autoInjectStyles !== !1 && (this.shadowRoot ? X(this.shadowRoot) : X()), e.draggable !== !1 && (this.draggableInstance = new ae(this.headerEl, this.panelEl, this.soundEngine)), e.resizable !== !1 && (this.resizableInstance = new oe(this.panelEl)), this.toastManager = new ue(this.panelEl, this.soundEngine), this.contextMenuManager = new me(this.panelEl, this.soundEngine), this.importModalInstance = new de(this.panelEl, (b) => {
|
|
2309
2617
|
this.importJSON(b);
|
|
2310
2618
|
});
|
|
2311
2619
|
const g = e.hotkey === void 0 ? "KeyH" : e.hotkey;
|
|
2312
|
-
g && (this.hotkeyInstance = new
|
|
2620
|
+
g && (this.hotkeyInstance = new W(g, () => {
|
|
2313
2621
|
this.toggle();
|
|
2314
2622
|
})), x.addEventListener("click", (b) => {
|
|
2315
2623
|
b.stopPropagation(), this.toggleMiniHud();
|
|
@@ -2319,9 +2627,9 @@ const S = class S extends T {
|
|
|
2319
2627
|
b.stopPropagation(), this.soundEngine.playClick(), this.toggleCollapse();
|
|
2320
2628
|
}), d.addEventListener("click", (b) => {
|
|
2321
2629
|
b.stopPropagation(), this.soundEngine.playClick(), this.copyJSON();
|
|
2322
|
-
}),
|
|
2323
|
-
var
|
|
2324
|
-
b.stopPropagation(), this.soundEngine.playClick(), (
|
|
2630
|
+
}), y.addEventListener("click", (b) => {
|
|
2631
|
+
var C;
|
|
2632
|
+
b.stopPropagation(), this.soundEngine.playClick(), (C = this.importModalInstance) == null || C.show();
|
|
2325
2633
|
}), e.soundVolume !== void 0 && this.soundEngine.setVolume(e.soundVolume), e.accordion && this.setAccordion(!0), e.ghostOnIdle && this.setGhostMode(!0, e.idleOpacity), this.initSparkline(c), this.panelEl.addEventListener("mouseenter", () => {
|
|
2326
2634
|
this.ghostOnIdle && (this.panelEl.style.opacity = "1");
|
|
2327
2635
|
}), this.panelEl.addEventListener("mouseleave", () => {
|
|
@@ -2349,7 +2657,7 @@ const S = class S extends T {
|
|
|
2349
2657
|
}
|
|
2350
2658
|
}
|
|
2351
2659
|
addTab(e) {
|
|
2352
|
-
return this.tabsManagerInstance || (this.tabsManagerInstance = new
|
|
2660
|
+
return this.tabsManagerInstance || (this.tabsManagerInstance = new ye(
|
|
2353
2661
|
this.headerEl,
|
|
2354
2662
|
this.contentEl,
|
|
2355
2663
|
this.bindingEngine,
|
|
@@ -2388,7 +2696,7 @@ const S = class S extends T {
|
|
|
2388
2696
|
return this;
|
|
2389
2697
|
}
|
|
2390
2698
|
loadSchema(e) {
|
|
2391
|
-
return e.title && this.setTitle(e.title),
|
|
2699
|
+
return e.title && this.setTitle(e.title), pe.load(this, e), this;
|
|
2392
2700
|
}
|
|
2393
2701
|
setTitle(e) {
|
|
2394
2702
|
return this.titleEl.textContent = e, this;
|
|
@@ -2462,15 +2770,15 @@ const S = class S extends T {
|
|
|
2462
2770
|
if (!e) return;
|
|
2463
2771
|
const t = 48, n = 16;
|
|
2464
2772
|
if (e.clearRect(0, 0, t, n), this.sparklineData.length < 2) return;
|
|
2465
|
-
const s = Math.min(...this.sparklineData) - 1,
|
|
2773
|
+
const s = Math.min(...this.sparklineData) - 1, o = Math.max(...this.sparklineData) + 1 - s || 1, a = t / (this.sparklineData.length - 1);
|
|
2466
2774
|
e.beginPath(), e.moveTo(0, n);
|
|
2467
2775
|
for (let h = 0; h < this.sparklineData.length; h++) {
|
|
2468
|
-
const c = h *
|
|
2776
|
+
const c = h * a, m = n - (this.sparklineData[h] - s) / o * (n - 3) - 1.5;
|
|
2469
2777
|
e.lineTo(c, m);
|
|
2470
2778
|
}
|
|
2471
2779
|
e.lineTo(t, n), e.closePath(), e.fillStyle = "rgba(56, 189, 248, 0.2)", e.fill(), e.beginPath();
|
|
2472
2780
|
for (let h = 0; h < this.sparklineData.length; h++) {
|
|
2473
|
-
const c = h *
|
|
2781
|
+
const c = h * a, m = n - (this.sparklineData[h] - s) / o * (n - 3) - 1.5;
|
|
2474
2782
|
h === 0 ? e.moveTo(c, m) : e.lineTo(c, m);
|
|
2475
2783
|
}
|
|
2476
2784
|
e.strokeStyle = "#38bdf8", e.lineWidth = 1.3, e.stroke();
|
|
@@ -2483,7 +2791,7 @@ const S = class S extends T {
|
|
|
2483
2791
|
return this.setCollapsed(!this.isPanelCollapsed);
|
|
2484
2792
|
}
|
|
2485
2793
|
setHotkey(e) {
|
|
2486
|
-
return this.hotkeyInstance ? this.hotkeyInstance.setHotkey(e) : this.hotkeyInstance = new
|
|
2794
|
+
return this.hotkeyInstance ? this.hotkeyInstance.setHotkey(e) : this.hotkeyInstance = new W(e, () => this.toggle()), this;
|
|
2487
2795
|
}
|
|
2488
2796
|
setCollapsed(e) {
|
|
2489
2797
|
return this.isPanelCollapsed = e, this.isPanelCollapsed ? (this.panelEl.classList.add("relly-collapsed"), this.collapseBtn.textContent = "+", this.bindingEngine.pause()) : (this.panelEl.classList.remove("relly-collapsed"), this.collapseBtn.textContent = "_", this.bindingEngine.resume()), this.autoSave && this.queueAutoSave(), this;
|
|
@@ -2575,10 +2883,10 @@ const S = class S extends T {
|
|
|
2575
2883
|
typeof window < "u" && (window.removeEventListener("resize", this.onResizeBound), this.sparklineAnimId && cancelAnimationFrame(this.sparklineAnimId)), this.draggableInstance && this.draggableInstance.destroy(), this.resizableInstance && this.resizableInstance.destroy(), this.hotkeyInstance && this.hotkeyInstance.destroy(), this.searchBarInstance && this.searchBarInstance.destroy(), this.tabsManagerInstance && this.tabsManagerInstance.destroy(), this.importModalInstance && this.importModalInstance.destroy(), this.toastManager.destroy(), this.contextMenuManager.destroy(), this.bindingEngine.destroy(), this.destroyChildren(), this.hostEl ? this.hostEl.remove() : this.panelEl.remove();
|
|
2576
2884
|
}
|
|
2577
2885
|
};
|
|
2578
|
-
l(S, "version", "1.0
|
|
2886
|
+
l(S, "version", "1.1.0");
|
|
2579
2887
|
let k = S;
|
|
2580
2888
|
Object.assign(k, {
|
|
2581
|
-
Checkbox:
|
|
2889
|
+
Checkbox: I,
|
|
2582
2890
|
Slider: V,
|
|
2583
2891
|
Button: A,
|
|
2584
2892
|
Select: z,
|
|
@@ -2587,78 +2895,88 @@ Object.assign(k, {
|
|
|
2587
2895
|
ColorPicker: R,
|
|
2588
2896
|
Point2D: P,
|
|
2589
2897
|
Point3D: D,
|
|
2590
|
-
RangeSlider:
|
|
2591
|
-
Segmented:
|
|
2898
|
+
RangeSlider: j,
|
|
2899
|
+
Segmented: H,
|
|
2592
2900
|
StatusIndicator: F,
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2901
|
+
Switch: q,
|
|
2902
|
+
ButtonGroup: J,
|
|
2903
|
+
TextInput: $,
|
|
2904
|
+
Progress: U,
|
|
2905
|
+
Separator: Y,
|
|
2906
|
+
Section: G,
|
|
2907
|
+
Row: _,
|
|
2908
|
+
Tab: fe,
|
|
2909
|
+
TabsManager: ye,
|
|
2910
|
+
BaseComponent: E,
|
|
2911
|
+
BindingEngine: Q,
|
|
2912
|
+
PresetManager: Z,
|
|
2913
|
+
ThemeManager: le,
|
|
2914
|
+
DARK_THEME: K,
|
|
2915
|
+
LIGHT_THEME: O,
|
|
2916
|
+
CYBERPUNK_THEME: ee,
|
|
2917
|
+
NORD_THEME: te,
|
|
2918
|
+
DRACULA_THEME: ie,
|
|
2919
|
+
TOKYO_NIGHT_THEME: ne,
|
|
2920
|
+
MATRIX_THEME: se,
|
|
2921
|
+
SYNTHWAVE_THEME: re,
|
|
2922
|
+
Draggable: ae,
|
|
2923
|
+
Resizable: oe,
|
|
2924
|
+
HotkeyManager: W,
|
|
2925
|
+
SearchBar: he,
|
|
2926
|
+
SoundEngine: ce,
|
|
2927
|
+
ImportModal: de,
|
|
2928
|
+
ToastManager: ue,
|
|
2929
|
+
ContextMenuManager: me,
|
|
2930
|
+
SchemaLoader: pe,
|
|
2618
2931
|
ContainerHelper: T,
|
|
2619
2932
|
RellyUI: k
|
|
2620
2933
|
});
|
|
2621
2934
|
typeof window < "u" && (window.RellyUI = k);
|
|
2622
2935
|
export {
|
|
2623
|
-
|
|
2624
|
-
|
|
2936
|
+
E as BaseComponent,
|
|
2937
|
+
Q as BindingEngine,
|
|
2625
2938
|
A as Button,
|
|
2626
|
-
|
|
2627
|
-
|
|
2939
|
+
J as ButtonGroup,
|
|
2940
|
+
ee as CYBERPUNK_THEME,
|
|
2941
|
+
I as Checkbox,
|
|
2628
2942
|
R as ColorPicker,
|
|
2629
2943
|
T as ContainerHelper,
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2944
|
+
me as ContextMenuManager,
|
|
2945
|
+
K as DARK_THEME,
|
|
2946
|
+
ie as DRACULA_THEME,
|
|
2947
|
+
ae as Draggable,
|
|
2634
2948
|
B as DynamicLabel,
|
|
2635
2949
|
N as Graph,
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2950
|
+
W as HotkeyManager,
|
|
2951
|
+
de as ImportModal,
|
|
2952
|
+
O as LIGHT_THEME,
|
|
2953
|
+
se as MATRIX_THEME,
|
|
2954
|
+
te as NORD_THEME,
|
|
2641
2955
|
P as Point2D,
|
|
2642
2956
|
D as Point3D,
|
|
2643
|
-
|
|
2644
|
-
|
|
2957
|
+
Z as PresetManager,
|
|
2958
|
+
U as Progress,
|
|
2959
|
+
j as RangeSlider,
|
|
2645
2960
|
k as RellyUI,
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2961
|
+
oe as Resizable,
|
|
2962
|
+
_ as Row,
|
|
2963
|
+
re as SYNTHWAVE_THEME,
|
|
2964
|
+
pe as SchemaLoader,
|
|
2965
|
+
he as SearchBar,
|
|
2966
|
+
G as Section,
|
|
2967
|
+
H as Segmented,
|
|
2653
2968
|
z as Select,
|
|
2969
|
+
Y as Separator,
|
|
2654
2970
|
V as Slider,
|
|
2655
|
-
|
|
2971
|
+
ce as SoundEngine,
|
|
2656
2972
|
F as StatusIndicator,
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2973
|
+
q as Switch,
|
|
2974
|
+
ne as TOKYO_NIGHT_THEME,
|
|
2975
|
+
fe as Tab,
|
|
2976
|
+
ye as TabsManager,
|
|
2977
|
+
$ as TextInput,
|
|
2978
|
+
le as ThemeManager,
|
|
2979
|
+
ue as ToastManager,
|
|
2662
2980
|
k as default
|
|
2663
2981
|
};
|
|
2664
2982
|
//# sourceMappingURL=relly-ui.es.js.map
|