@funnest/charts-ui 0.11.33 → 0.11.34
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/i18n.d.ts +0 -2
- package/dist/index.js +8 -13
- package/package.json +2 -2
package/dist/i18n.d.ts
CHANGED
|
@@ -328,7 +328,6 @@ export declare const STRINGS: {
|
|
|
328
328
|
syncIndicators: string;
|
|
329
329
|
syncHint: string;
|
|
330
330
|
syncOff: string;
|
|
331
|
-
syncOnePane: string;
|
|
332
331
|
maximizePane: string;
|
|
333
332
|
restorePane: string;
|
|
334
333
|
pane: string;
|
|
@@ -689,7 +688,6 @@ export declare const STRINGS: {
|
|
|
689
688
|
syncIndicators: string;
|
|
690
689
|
syncHint: string;
|
|
691
690
|
syncOff: string;
|
|
692
|
-
syncOnePane: string;
|
|
693
691
|
maximizePane: string;
|
|
694
692
|
restorePane: string;
|
|
695
693
|
pane: string;
|
package/dist/index.js
CHANGED
|
@@ -765,7 +765,6 @@ var STRINGS = {
|
|
|
765
765
|
syncIndicators: "\uC9C0\uD45C",
|
|
766
766
|
syncHint: "\uCF1C\uBA74 \uBAA8\uB4E0 \uCE78\uC774 \uAC19\uC774 \uC6C0\uC9C1\uC5EC\uC694",
|
|
767
767
|
syncOff: "\uAEBC\uC9D0",
|
|
768
|
-
syncOnePane: "\uD654\uBA74\uC744 \uB450 \uCE78 \uC774\uC0C1\uC73C\uB85C \uB098\uB204\uBA74 \uCF20 \uAC83\uB07C\uB9AC \uB9DE\uCDB0\uC838\uC694.",
|
|
769
768
|
maximizePane: "\uC774 \uCE78 \uD06C\uAC8C \uBCF4\uAE30",
|
|
770
769
|
restorePane: "\uBD84\uD560 \uD654\uBA74\uC73C\uB85C",
|
|
771
770
|
pane: "\uCE78",
|
|
@@ -1126,7 +1125,6 @@ var STRINGS = {
|
|
|
1126
1125
|
syncIndicators: "Indicators",
|
|
1127
1126
|
syncHint: "Linked panes move together",
|
|
1128
1127
|
syncOff: "Off",
|
|
1129
|
-
syncOnePane: "Split the screen into two or more panes and what\u2019s on stays in step.",
|
|
1130
1128
|
maximizePane: "Maximize pane",
|
|
1131
1129
|
restorePane: "Back to split view",
|
|
1132
1130
|
pane: "Pane",
|
|
@@ -4287,7 +4285,8 @@ var CSS = (
|
|
|
4287
4285
|
.fnc-menu-title { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 8px; font-size: 13px; font-weight: 600; color: var(--fnc-text); }
|
|
4288
4286
|
.fnc-menu-title small { font-size: 12px; font-weight: 400; color: var(--fnc-text-2); }
|
|
4289
4287
|
.fnc-sync-item { justify-content: space-between; }
|
|
4290
|
-
.fnc-sync-item[aria-checked='true'] { background: none; color: var(--fnc-text); }
|
|
4288
|
+
.fnc-sync-item[aria-checked='true'] { background: none; color: var(--fnc-text-2); }
|
|
4289
|
+
.fnc-sync-item:hover { color: var(--fnc-text); }
|
|
4291
4290
|
.fnc-sync-item:hover { background: var(--fnc-surface); }
|
|
4292
4291
|
.fnc-sync-item .fnc-switch { display: inline-block; transform: scale(0.8); transform-origin: right center; }
|
|
4293
4292
|
.fnc-switch[data-on='true'] { background: var(--fnc-text-2); }
|
|
@@ -4307,14 +4306,13 @@ var CSS = (
|
|
|
4307
4306
|
.fnc-tools-section { padding: 8px 6px 6px; font-size: 12px; font-weight: 700; color: var(--fnc-text-2); }
|
|
4308
4307
|
.fnc-tools-fold { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 6px; border-radius: 6px; text-align: left; cursor: pointer; }
|
|
4309
4308
|
/* The sections read as rows of the menu (as big as the items under them), not as small captions. */
|
|
4310
|
-
.fnc-tools-section.fnc-tools-fold { font-size: 14px; font-weight:
|
|
4309
|
+
.fnc-tools-section.fnc-tools-fold { height: 36px; padding: 0 10px; font-size: 14px; font-weight: 400; color: var(--fnc-text-2); }
|
|
4311
4310
|
.fnc-tools-fold .fnc-tools-fold-now { font-size: 13px; font-weight: 400; }
|
|
4312
4311
|
.fnc-tools-fold:hover { background: var(--fnc-surface); color: var(--fnc-text); }
|
|
4313
4312
|
.fnc-tools-fold > span:first-child { flex: 1; }
|
|
4314
|
-
.fnc-tools-fold-now { display: inline-flex; align-items: center; gap: 5px; font-weight:
|
|
4313
|
+
.fnc-tools-fold-now { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; color: var(--fnc-text-2); }
|
|
4315
4314
|
.fnc-tools-fold-now svg { width: 15px; height: 15px; }
|
|
4316
4315
|
.fnc-tools-fold-now { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
4317
|
-
.fnc-tools-note { margin: 2px 8px 6px; font-size: 12px; line-height: 1.45; color: var(--fnc-text-2); }
|
|
4318
4316
|
.fnc-tools-fold > svg { width: 14px; height: 14px; transition: transform 0.15s; transform: rotate(-90deg); }
|
|
4319
4317
|
.fnc-tools-fold[aria-expanded="true"] > svg { transform: none; }
|
|
4320
4318
|
.fnc-tools-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0 2px 4px; }
|
|
@@ -6291,13 +6289,10 @@ function SyncSection({ ctx, multi, open, onToggle }) {
|
|
|
6291
6289
|
const now = on.length === 0 ? t3.syncOff : on.length <= 2 ? on.join(" \xB7 ") : `${on[0]} +${on.length - 1}`;
|
|
6292
6290
|
return /* @__PURE__ */ a3($, { children: [
|
|
6293
6291
|
/* @__PURE__ */ a3(Fold, { label: t3.sync, open, onToggle, children: now }),
|
|
6294
|
-
open && /* @__PURE__ */ a3($, { children: [
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
/* @__PURE__ */ a3("span", { class: "fnc-switch", "data-on": m3.sync[key] ? "true" : "false", "aria-hidden": "true" })
|
|
6299
|
-
] }))
|
|
6300
|
-
] })
|
|
6292
|
+
open && /* @__PURE__ */ a3($, { children: SYNC_KEYS.map(({ key, label }) => /* @__PURE__ */ a3("button", { class: "fnc-menu-item fnc-sync-item", role: "menuitemcheckbox", "aria-checked": m3.sync[key], onClick: () => multi.setSync({ [key]: !m3.sync[key] }), children: [
|
|
6293
|
+
/* @__PURE__ */ a3("span", { children: t3[label] }),
|
|
6294
|
+
/* @__PURE__ */ a3("span", { class: "fnc-switch", "data-on": m3.sync[key] ? "true" : "false", "aria-hidden": "true" })
|
|
6295
|
+
] })) })
|
|
6301
6296
|
] });
|
|
6302
6297
|
}
|
|
6303
6298
|
function ToolsMenu({ ctx }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnest/charts-ui",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.34",
|
|
4
4
|
"description": "Pro trading UI (toolbar, drawing tools, sheets) for Funnest Charts. Framework-agnostic.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chart",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"NOTICE"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@funnest/charts": "0.11.
|
|
45
|
+
"@funnest/charts": "0.11.34"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"preact": "^11.2.0"
|