@funnest/charts-ui 0.11.67 → 0.11.68
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.js +63 -63
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2176,6 +2176,9 @@ var CSS = (
|
|
|
2176
2176
|
}
|
|
2177
2177
|
.fnc-selbar-action.is-text { width: auto; padding: 0 8px; font-size: 12px; font-weight: 600; }
|
|
2178
2178
|
.fnc-selbar-action.is-on { color: var(--fnc-accent); }
|
|
2179
|
+
/* \uC0AD\uC81C turns red and \uC54C\uB9BC yellow under the mouse. */
|
|
2180
|
+
.fnc-selbar .fnc-selbar-delete:hover { background: color-mix(in srgb, var(--fnc-danger, #F04452) 14%, transparent); color: var(--fnc-danger, #F04452); }
|
|
2181
|
+
.fnc-selbar .fnc-selbar-action.is-alert:hover { background: color-mix(in srgb, #FFB400 20%, transparent); color: #D99A00; }
|
|
2179
2182
|
.fnc-selbar-action.is-on svg path:first-child { fill: currentColor; }
|
|
2180
2183
|
.fnc-axis-plus-menu .fnc-menu-item { color: var(--fnc-text); font-weight: 600; }
|
|
2181
2184
|
/* A menu row's glyph: one 18px column, so every label starts at the same x. */
|
|
@@ -2649,7 +2652,7 @@ var CSS = (
|
|
|
2649
2652
|
.fnc-menu-note { padding: 8px 10px; color: var(--fnc-text-2); font-size: 12px; }
|
|
2650
2653
|
.fnc-menu-sep { height: 1px; margin: 4px 6px; background: var(--fnc-border); }
|
|
2651
2654
|
/* \u22EF on the drawing bar: \uBCF5\uC81C \xB7 \uBCF5\uC0AC \xB7 \uBD99\uC5EC\uB123\uAE30, then \uC21C\uC11C. */
|
|
2652
|
-
.fnc-more-menu { min-width:
|
|
2655
|
+
.fnc-more-menu { min-width: 220px; }
|
|
2653
2656
|
.fnc-more-menu .fnc-menu-item kbd { margin-left: auto; font: inherit; font-size: 12px; color: var(--fnc-text-3); }
|
|
2654
2657
|
.fnc-more-title { padding: 6px 10px 2px; font-size: 11px; font-weight: 700; color: var(--fnc-text-2); }
|
|
2655
2658
|
.fnc-tools-layouts { display: flex; flex-direction: column; gap: 2px; padding: 0 2px 4px; }
|
|
@@ -3944,10 +3947,6 @@ var LevelsIcon = () => /* @__PURE__ */ a3(Icon, { children: [
|
|
|
3944
3947
|
/* @__PURE__ */ a3("circle", { cx: "15", cy: "5", r: "1.4" }),
|
|
3945
3948
|
/* @__PURE__ */ a3("circle", { cx: "17", cy: "15", r: "1.4" })
|
|
3946
3949
|
] });
|
|
3947
|
-
var TemplateIcon = () => /* @__PURE__ */ a3(Icon, { children: [
|
|
3948
|
-
/* @__PURE__ */ a3("rect", { x: "3", y: "7", width: "10", height: "10", rx: "2" }),
|
|
3949
|
-
/* @__PURE__ */ a3("path", { d: "M7 4h8a2 2 0 0 1 2 2v8" })
|
|
3950
|
-
] });
|
|
3951
3950
|
var SmallPlusIcon = () => /* @__PURE__ */ a3(Icon, { size: 14, children: /* @__PURE__ */ a3("path", { d: "M5 10h10M10 5v10" }) });
|
|
3952
3951
|
var SmallCloseIcon = () => /* @__PURE__ */ a3(Icon, { size: 14, children: /* @__PURE__ */ a3("path", { d: "M6 6l8 8M14 6l-8 8" }) });
|
|
3953
3952
|
var EyeIcon = () => /* @__PURE__ */ a3(Icon, { size: 14, children: [
|
|
@@ -5091,48 +5090,11 @@ function SelectionBar({ ctx }) {
|
|
|
5091
5090
|
] })
|
|
5092
5091
|
] })
|
|
5093
5092
|
] }),
|
|
5094
|
-
phone && /* @__PURE__ */ a3(
|
|
5095
|
-
"button",
|
|
5096
|
-
{
|
|
5097
|
-
class: "fnc-btn",
|
|
5098
|
-
"aria-label": t3.style,
|
|
5099
|
-
"aria-expanded": sheet,
|
|
5100
|
-
onClick: () => {
|
|
5101
|
-
setMenu(null);
|
|
5102
|
-
setSheet(true);
|
|
5103
|
-
},
|
|
5104
|
-
children: /* @__PURE__ */ a3(SettingsIcon, {})
|
|
5105
|
-
}
|
|
5106
|
-
),
|
|
5107
5093
|
!phone && /* @__PURE__ */ a3($, { children: [
|
|
5108
5094
|
slots.length > 0 && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
|
|
5109
5095
|
/* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.partColors, "aria-label": t3.partColors, "aria-expanded": menu === "colors", onClick: () => setMenu(menu === "colors" ? null : "colors"), children: /* @__PURE__ */ a3(PaletteIcon, {}) }),
|
|
5110
5096
|
menu === "colors" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-part-menu", role: "menu", children: colorsBody() })
|
|
5111
5097
|
] }),
|
|
5112
|
-
def && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
|
|
5113
|
-
/* @__PURE__ */ a3(
|
|
5114
|
-
"button",
|
|
5115
|
-
{
|
|
5116
|
-
class: style.intervals ? "fnc-btn fnc-btn-on" : "fnc-btn",
|
|
5117
|
-
"data-tip": t3.drawingOptions,
|
|
5118
|
-
"aria-label": t3.drawingOptions,
|
|
5119
|
-
"aria-expanded": menu === "options",
|
|
5120
|
-
onClick: () => {
|
|
5121
|
-
setSettingsTab(hasOptions ? "options" : "coords");
|
|
5122
|
-
setMenu(menu === "options" ? null : "options");
|
|
5123
|
-
},
|
|
5124
|
-
children: /* @__PURE__ */ a3(SettingsIcon, {})
|
|
5125
|
-
}
|
|
5126
|
-
),
|
|
5127
|
-
menu === "options" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-options-menu fnc-settings-pop", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: [
|
|
5128
|
-
/* @__PURE__ */ a3("div", { class: "fnc-tabs", role: "tablist", "aria-label": t3.drawingOptions, children: settingsTabs.map(([k2, label]) => /* @__PURE__ */ a3("button", { type: "button", class: "fnc-tab", role: "tab", "aria-selected": settingsTab === k2, onClick: () => setSettingsTab(k2), children: label })) }),
|
|
5129
|
-
/* @__PURE__ */ a3("div", { class: "fnc-settings-pop-body", children: [
|
|
5130
|
-
settingsTab === "options" && hasOptions && optionsBody(),
|
|
5131
|
-
settingsTab === "coords" && coordsBody(),
|
|
5132
|
-
settingsTab === "visibility" && visibilityBody()
|
|
5133
|
-
] })
|
|
5134
|
-
] })
|
|
5135
|
-
] }),
|
|
5136
5098
|
def?.levels && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
|
|
5137
5099
|
/* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.levels, "aria-label": t3.levels, "aria-expanded": menu === "levels", onClick: () => setMenu(menu === "levels" ? null : "levels"), children: /* @__PURE__ */ a3(LevelsIcon, {}) }),
|
|
5138
5100
|
menu === "levels" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-levels-menu", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: levelsBody() })
|
|
@@ -5202,30 +5164,13 @@ function SelectionBar({ ctx }) {
|
|
|
5202
5164
|
] })
|
|
5203
5165
|
}
|
|
5204
5166
|
)) })
|
|
5205
|
-
] }),
|
|
5206
|
-
/* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
|
|
5207
|
-
/* @__PURE__ */ a3(
|
|
5208
|
-
"button",
|
|
5209
|
-
{
|
|
5210
|
-
class: "fnc-btn",
|
|
5211
|
-
"data-tip": t3.templates,
|
|
5212
|
-
"aria-label": t3.templates,
|
|
5213
|
-
"aria-expanded": menu === "template",
|
|
5214
|
-
onClick: () => {
|
|
5215
|
-
setNaming(null);
|
|
5216
|
-
setMenu(menu === "template" ? null : "template");
|
|
5217
|
-
},
|
|
5218
|
-
children: /* @__PURE__ */ a3(TemplateIcon, {})
|
|
5219
|
-
}
|
|
5220
|
-
),
|
|
5221
|
-
menu === "template" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-template-menu", role: "menu", children: templateBody() })
|
|
5222
5167
|
] })
|
|
5223
5168
|
] }),
|
|
5224
5169
|
actions.length > 0 && /* @__PURE__ */ a3("div", { class: "fnc-sep" }),
|
|
5225
5170
|
actions.map((a4) => /* @__PURE__ */ a3(
|
|
5226
5171
|
"button",
|
|
5227
5172
|
{
|
|
5228
|
-
class: `fnc-btn fnc-selbar-action${a4.icon ? "" : " is-text"}${a4.pressed ? " is-on" : ""}`,
|
|
5173
|
+
class: `fnc-btn fnc-selbar-action${a4.icon ? "" : " is-text"}${a4.icon === "alert" ? " is-alert" : ""}${a4.pressed ? " is-on" : ""}`,
|
|
5229
5174
|
"data-tip": a4.label,
|
|
5230
5175
|
"aria-label": a4.label,
|
|
5231
5176
|
"aria-pressed": a4.pressed,
|
|
@@ -5240,7 +5185,20 @@ function SelectionBar({ ctx }) {
|
|
|
5240
5185
|
!phone && /* @__PURE__ */ a3($, {}),
|
|
5241
5186
|
/* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": locked ? t3.unlock : t3.lock, "aria-label": locked ? t3.unlock : t3.lock, "aria-pressed": locked, onClick: () => setStyle({ locked: !locked }), children: /* @__PURE__ */ a3(LockIcon, { open: !locked }) }),
|
|
5242
5187
|
/* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
|
|
5243
|
-
/* @__PURE__ */ a3(
|
|
5188
|
+
/* @__PURE__ */ a3(
|
|
5189
|
+
"button",
|
|
5190
|
+
{
|
|
5191
|
+
class: "fnc-btn",
|
|
5192
|
+
"data-tip": t3.moreActions,
|
|
5193
|
+
"aria-label": t3.moreActions,
|
|
5194
|
+
"aria-expanded": menu === "more",
|
|
5195
|
+
onClick: () => {
|
|
5196
|
+
setNaming(null);
|
|
5197
|
+
setMenu(menu === "more" ? null : "more");
|
|
5198
|
+
},
|
|
5199
|
+
children: /* @__PURE__ */ a3(MoreIcon, {})
|
|
5200
|
+
}
|
|
5201
|
+
),
|
|
5244
5202
|
menu === "more" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-more-menu", role: "menu", children: [
|
|
5245
5203
|
/* @__PURE__ */ a3(
|
|
5246
5204
|
"button",
|
|
@@ -5293,10 +5251,52 @@ function SelectionBar({ ctx }) {
|
|
|
5293
5251
|
),
|
|
5294
5252
|
/* @__PURE__ */ a3("div", { class: "fnc-menu-sep", role: "separator" }),
|
|
5295
5253
|
/* @__PURE__ */ a3("div", { class: "fnc-more-title", children: t3.drawingOrder }),
|
|
5296
|
-
orderBody()
|
|
5254
|
+
orderBody(),
|
|
5255
|
+
!phone && /* @__PURE__ */ a3($, { children: [
|
|
5256
|
+
/* @__PURE__ */ a3("div", { class: "fnc-menu-sep", role: "separator" }),
|
|
5257
|
+
/* @__PURE__ */ a3("div", { class: "fnc-more-title", children: t3.templates }),
|
|
5258
|
+
templateBody()
|
|
5259
|
+
] })
|
|
5260
|
+
] })
|
|
5261
|
+
] }),
|
|
5262
|
+
phone && /* @__PURE__ */ a3(
|
|
5263
|
+
"button",
|
|
5264
|
+
{
|
|
5265
|
+
class: "fnc-btn",
|
|
5266
|
+
"aria-label": t3.style,
|
|
5267
|
+
"aria-expanded": sheet,
|
|
5268
|
+
onClick: () => {
|
|
5269
|
+
setMenu(null);
|
|
5270
|
+
setSheet(true);
|
|
5271
|
+
},
|
|
5272
|
+
children: /* @__PURE__ */ a3(SettingsIcon, {})
|
|
5273
|
+
}
|
|
5274
|
+
),
|
|
5275
|
+
!phone && def && /* @__PURE__ */ a3("div", { class: "fnc-selbar-menu", children: [
|
|
5276
|
+
/* @__PURE__ */ a3(
|
|
5277
|
+
"button",
|
|
5278
|
+
{
|
|
5279
|
+
class: style.intervals ? "fnc-btn fnc-btn-on" : "fnc-btn",
|
|
5280
|
+
"data-tip": t3.drawingOptions,
|
|
5281
|
+
"aria-label": t3.drawingOptions,
|
|
5282
|
+
"aria-expanded": menu === "options",
|
|
5283
|
+
onClick: () => {
|
|
5284
|
+
setSettingsTab(hasOptions ? "options" : "coords");
|
|
5285
|
+
setMenu(menu === "options" ? null : "options");
|
|
5286
|
+
},
|
|
5287
|
+
children: /* @__PURE__ */ a3(SettingsIcon, {})
|
|
5288
|
+
}
|
|
5289
|
+
),
|
|
5290
|
+
menu === "options" && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-selbar-pop fnc-options-menu fnc-settings-pop", role: "menu", onKeyDown: (e3) => e3.key !== "Escape" && e3.stopPropagation(), children: [
|
|
5291
|
+
/* @__PURE__ */ a3("div", { class: "fnc-tabs", role: "tablist", "aria-label": t3.drawingOptions, children: settingsTabs.map(([k2, label]) => /* @__PURE__ */ a3("button", { type: "button", class: "fnc-tab", role: "tab", "aria-selected": settingsTab === k2, onClick: () => setSettingsTab(k2), children: label })) }),
|
|
5292
|
+
/* @__PURE__ */ a3("div", { class: "fnc-settings-pop-body", children: [
|
|
5293
|
+
settingsTab === "options" && hasOptions && optionsBody(),
|
|
5294
|
+
settingsTab === "coords" && coordsBody(),
|
|
5295
|
+
settingsTab === "visibility" && visibilityBody()
|
|
5296
|
+
] })
|
|
5297
5297
|
] })
|
|
5298
5298
|
] }),
|
|
5299
|
-
/* @__PURE__ */ a3("button", { class: "fnc-btn", "data-tip": t3.remove, "aria-label": t3.remove, onClick: () => ctx.chart.removeDrawing(d3.id), children: /* @__PURE__ */ a3(TrashIcon, {}) }),
|
|
5299
|
+
/* @__PURE__ */ a3("button", { class: "fnc-btn fnc-selbar-delete", "data-tip": t3.remove, "aria-label": t3.remove, onClick: () => ctx.chart.removeDrawing(d3.id), children: /* @__PURE__ */ a3(TrashIcon, {}) }),
|
|
5300
5300
|
phone && sheet && /* @__PURE__ */ a3(StyleSheet, { ctx, title: t3.style, resetLabel: t3.resetDefaults, onReset: resetLook, onClose: () => setSheet(false), children: [
|
|
5301
5301
|
!def?.plain && /* @__PURE__ */ a3("section", { class: "fnc-ss-section", children: [
|
|
5302
5302
|
/* @__PURE__ */ a3("div", { class: "fnc-ss-row", children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnest/charts-ui",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.68",
|
|
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.68"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"preact": "^11.2.0"
|