acttrader-charts 1.3.0-beta.15 → 1.3.0-beta.16
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/dist/index.cjs +16 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -10
- package/dist/index.js.map +1 -1
- package/dist/webview/chart.html +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18425,6 +18425,7 @@ var DrawingStylePopover = class {
|
|
|
18425
18425
|
input.value = current;
|
|
18426
18426
|
input.title = "Level ratio \u2014 press Enter to apply";
|
|
18427
18427
|
input.enterKeyHint = "go";
|
|
18428
|
+
input.tabIndex = -1;
|
|
18428
18429
|
Object.assign(input.style, {
|
|
18429
18430
|
width: "58px",
|
|
18430
18431
|
padding: "2px 4px",
|
|
@@ -18436,16 +18437,6 @@ var DrawingStylePopover = class {
|
|
|
18436
18437
|
borderRadius: "3px",
|
|
18437
18438
|
outline: "none"
|
|
18438
18439
|
});
|
|
18439
|
-
input.addEventListener("focus", () => {
|
|
18440
|
-
input.style.borderColor = this.theme.ui.accent;
|
|
18441
|
-
});
|
|
18442
|
-
input.addEventListener("blur", () => {
|
|
18443
|
-
input.style.borderColor = this.theme.axisBorder;
|
|
18444
|
-
});
|
|
18445
|
-
input.addEventListener("keydown", (e) => {
|
|
18446
|
-
e.stopPropagation();
|
|
18447
|
-
if (e.key === "Enter") input.blur();
|
|
18448
|
-
});
|
|
18449
18440
|
const commit = () => {
|
|
18450
18441
|
const raw = Number(input.value);
|
|
18451
18442
|
const next = Number.isFinite(raw) ? levelKey(raw) : null;
|
|
@@ -18461,6 +18452,17 @@ var DrawingStylePopover = class {
|
|
|
18461
18452
|
input.value = next;
|
|
18462
18453
|
onCommit(next);
|
|
18463
18454
|
};
|
|
18455
|
+
input.addEventListener("focus", () => {
|
|
18456
|
+
input.style.borderColor = this.theme.ui.accent;
|
|
18457
|
+
});
|
|
18458
|
+
input.addEventListener("blur", () => {
|
|
18459
|
+
input.style.borderColor = this.theme.axisBorder;
|
|
18460
|
+
commit();
|
|
18461
|
+
});
|
|
18462
|
+
input.addEventListener("keydown", (e) => {
|
|
18463
|
+
e.stopPropagation();
|
|
18464
|
+
if (e.key === "Enter") input.blur();
|
|
18465
|
+
});
|
|
18464
18466
|
input.addEventListener("change", commit);
|
|
18465
18467
|
return input;
|
|
18466
18468
|
}
|
|
@@ -18503,6 +18505,10 @@ var DrawingStylePopover = class {
|
|
|
18503
18505
|
cb.addEventListener("change", () => {
|
|
18504
18506
|
this.emit({ levels: { [key]: { visible: cb.checked, color } } });
|
|
18505
18507
|
});
|
|
18508
|
+
cb.tabIndex = -1;
|
|
18509
|
+
swatch.querySelectorAll("input").forEach((control) => {
|
|
18510
|
+
control.tabIndex = -1;
|
|
18511
|
+
});
|
|
18506
18512
|
panel.append(cb, editable ? this.buildLevelRatioInput(
|
|
18507
18513
|
k,
|
|
18508
18514
|
taken,
|