@luxalgo/vela 0.8.5 → 0.9.1
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/{DataProvider-DdqMxKdl.d.cts → DataProvider-B5i0_yY4.d.cts} +1 -1
- package/dist/{DataProvider-BUdlkx9I.d.ts → DataProvider-CPFgSyAm.d.ts} +1 -1
- package/dist/{chunk-QYIO37K7.js → chunk-3H6JO4VL.js} +2405 -1542
- package/dist/{chunk-BN4DNS3O.js → chunk-BLVL7WXF.js} +1156 -468
- package/dist/chunk-O6L27KRB.js +1331 -0
- package/dist/{chunk-WY5H4S4I.js → chunk-PZN4RS4T.js} +91 -36
- package/dist/{chunk-ALTGHKIM.js → chunk-Q7POFYNE.js} +516 -406
- package/dist/{chunk-AUOB7A5Y.js → chunk-WHPQQYH7.js} +29 -13
- package/dist/{contributions-D8xuYc9U.d.cts → contributions-BfBaF6eE.d.ts} +71 -22
- package/dist/{contributions-P9fBBuY1.d.ts → contributions-DupwEkzc.d.cts} +71 -22
- package/dist/index.cjs +4040 -2087
- package/dist/index.d.cts +53 -25
- package/dist/index.d.ts +53 -25
- package/dist/index.js +5 -5
- package/dist/{keymap-CGOz5F5f.d.cts → keymap-C48ughm6.d.ts} +9 -6
- package/dist/{keymap-CGOz5F5f.d.ts → keymap-W0hiajU6.d.cts} +9 -6
- package/dist/locales/ar.cjs +2262 -0
- package/dist/locales/ar.d.cts +5 -0
- package/dist/locales/ar.d.ts +5 -0
- package/dist/locales/ar.js +2260 -0
- package/dist/locales/de.cjs +2262 -0
- package/dist/locales/de.d.cts +5 -0
- package/dist/locales/de.d.ts +5 -0
- package/dist/locales/de.js +2260 -0
- package/dist/locales/en.cjs +2262 -0
- package/dist/locales/en.d.cts +5 -0
- package/dist/locales/en.d.ts +5 -0
- package/dist/locales/en.js +2260 -0
- package/dist/locales/es.cjs +2262 -0
- package/dist/locales/es.d.cts +5 -0
- package/dist/locales/es.d.ts +5 -0
- package/dist/locales/es.js +2260 -0
- package/dist/locales/fr.cjs +2262 -0
- package/dist/locales/fr.d.cts +5 -0
- package/dist/locales/fr.d.ts +5 -0
- package/dist/locales/fr.js +2260 -0
- package/dist/locales/he.cjs +2262 -0
- package/dist/locales/he.d.cts +5 -0
- package/dist/locales/he.d.ts +5 -0
- package/dist/locales/he.js +2260 -0
- package/dist/locales/hi.cjs +2262 -0
- package/dist/locales/hi.d.cts +5 -0
- package/dist/locales/hi.d.ts +5 -0
- package/dist/locales/hi.js +2260 -0
- package/dist/locales/id.cjs +2262 -0
- package/dist/locales/id.d.cts +5 -0
- package/dist/locales/id.d.ts +5 -0
- package/dist/locales/id.js +2260 -0
- package/dist/locales/it.cjs +2262 -0
- package/dist/locales/it.d.cts +5 -0
- package/dist/locales/it.d.ts +5 -0
- package/dist/locales/it.js +2260 -0
- package/dist/locales/ja.cjs +2262 -0
- package/dist/locales/ja.d.cts +5 -0
- package/dist/locales/ja.d.ts +5 -0
- package/dist/locales/ja.js +2260 -0
- package/dist/locales/ko.cjs +2262 -0
- package/dist/locales/ko.d.cts +5 -0
- package/dist/locales/ko.d.ts +5 -0
- package/dist/locales/ko.js +2260 -0
- package/dist/locales/ms.cjs +2262 -0
- package/dist/locales/ms.d.cts +5 -0
- package/dist/locales/ms.d.ts +5 -0
- package/dist/locales/ms.js +2260 -0
- package/dist/locales/pl.cjs +2262 -0
- package/dist/locales/pl.d.cts +5 -0
- package/dist/locales/pl.d.ts +5 -0
- package/dist/locales/pl.js +2260 -0
- package/dist/locales/pt-BR.cjs +2262 -0
- package/dist/locales/pt-BR.d.cts +5 -0
- package/dist/locales/pt-BR.d.ts +5 -0
- package/dist/locales/pt-BR.js +2260 -0
- package/dist/locales/ru.cjs +2262 -0
- package/dist/locales/ru.d.cts +5 -0
- package/dist/locales/ru.d.ts +5 -0
- package/dist/locales/ru.js +2260 -0
- package/dist/locales/th.cjs +2262 -0
- package/dist/locales/th.d.cts +5 -0
- package/dist/locales/th.d.ts +5 -0
- package/dist/locales/th.js +2260 -0
- package/dist/locales/tr.cjs +2262 -0
- package/dist/locales/tr.d.cts +5 -0
- package/dist/locales/tr.d.ts +5 -0
- package/dist/locales/tr.js +2260 -0
- package/dist/locales/vi.cjs +2262 -0
- package/dist/locales/vi.d.cts +5 -0
- package/dist/locales/vi.d.ts +5 -0
- package/dist/locales/vi.js +2260 -0
- package/dist/locales/zh-Hans.cjs +2262 -0
- package/dist/locales/zh-Hans.d.cts +5 -0
- package/dist/locales/zh-Hans.d.ts +5 -0
- package/dist/locales/zh-Hans.js +2260 -0
- package/dist/locales/zh-Hant.cjs +2262 -0
- package/dist/locales/zh-Hant.d.cts +5 -0
- package/dist/locales/zh-Hant.d.ts +5 -0
- package/dist/locales/zh-Hant.js +2260 -0
- package/dist/{options-BI5Tp32b.d.ts → options-B7aL1pbf.d.ts} +74 -9
- package/dist/{options-BI5Tp32b.d.cts → options-I1H2HDWw.d.cts} +74 -9
- package/dist/{plugin-B8F1nor8.d.cts → plugin-BGz-Vsdv.d.cts} +81 -35
- package/dist/{plugin-D5Z-Q6TX.d.ts → plugin-BZHypj8h.d.ts} +81 -35
- package/dist/plugin.cjs +1268 -319
- package/dist/plugin.d.cts +7 -6
- package/dist/plugin.d.ts +7 -6
- package/dist/plugin.js +3 -3
- package/dist/providers/binance.cjs +1 -1
- package/dist/providers/binance.d.cts +3 -2
- package/dist/providers/binance.d.ts +3 -2
- package/dist/providers/binance.js +1 -1
- package/dist/providers/coinbase.cjs +1 -1
- package/dist/providers/coinbase.d.cts +3 -2
- package/dist/providers/coinbase.d.ts +3 -2
- package/dist/providers/coinbase.js +1 -1
- package/dist/providers/hyperliquid.cjs +1 -1
- package/dist/providers/hyperliquid.d.cts +3 -2
- package/dist/providers/hyperliquid.d.ts +3 -2
- package/dist/providers/hyperliquid.js +1 -1
- package/dist/{side-panel-_2UK1gSm.d.ts → side-panel-BEQJqSjR.d.cts} +14 -2
- package/dist/{side-panel-_2UK1gSm.d.cts → side-panel-Ud0SBAnE.d.ts} +14 -2
- package/dist/{statusline-model-CTwtDIca.d.cts → statusline-model-Dfb_GD9u.d.ts} +14 -3
- package/dist/{statusline-model-D9kWC9X5.d.ts → statusline-model-PHt0YhmI.d.cts} +14 -3
- package/dist/types-Bwf63xGI.d.cts +2518 -0
- package/dist/types-Bwf63xGI.d.ts +2518 -0
- package/dist/ui.cjs +1008 -56
- package/dist/ui.d.cts +21 -2
- package/dist/ui.d.ts +21 -2
- package/dist/ui.js +3 -3
- package/dist/vela.global.js +4005 -2054
- package/dist/vela.global.min.js +57 -57
- package/dist/widget.cjs +5384 -2698
- package/dist/widget.d.cts +100 -26
- package/dist/widget.d.ts +100 -26
- package/dist/widget.js +19 -11
- package/dist/workspace.cjs +5373 -2705
- package/dist/workspace.d.cts +63 -15
- package/dist/workspace.d.ts +63 -15
- package/dist/workspace.js +6 -6
- package/package.json +9 -2
- package/dist/chunk-I2U4NZD2.js +0 -340
- /package/dist/{chunk-W5YPYZ2P.js → chunk-3EYCX2L4.js} +0 -0
package/dist/ui.d.cts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { c as VelaTheme } from './options-
|
|
1
|
+
import { c as VelaTheme } from './options-I1H2HDWw.cjs';
|
|
2
2
|
import { MachineSchema, Service, Machine } from '@zag-js/core';
|
|
3
|
-
export { a as KeyBindingDescriptor, K as KeymapManager, b as KeymapOptions, R as ResolvedBinding } from './keymap-
|
|
3
|
+
export { a as KeyBindingDescriptor, K as KeymapManager, b as KeymapOptions, R as ResolvedBinding } from './keymap-W0hiajU6.cjs';
|
|
4
4
|
import * as tooltip from '@zag-js/tooltip';
|
|
5
5
|
import * as menu from '@zag-js/menu';
|
|
6
|
+
import { T as Translator } from './types-Bwf63xGI.cjs';
|
|
6
7
|
import * as dialog from '@zag-js/dialog';
|
|
7
8
|
export { i as iconMarkup, r as registerIcon, s as svg16, a as svg24 } from './icons-BZYbJXSV.cjs';
|
|
8
9
|
export { normalizeProps, spreadProps } from '@zag-js/vanilla';
|
|
@@ -98,6 +99,8 @@ interface MenuOptions extends MenuControllerOptions {
|
|
|
98
99
|
* labels align; a level with no icon keeps its natural left edge. With `checkmarks`,
|
|
99
100
|
* the mark column leads and the badge follows. Submenus inherit the mode. */
|
|
100
101
|
iconBadges?: boolean;
|
|
102
|
+
/** The translator of the menu's own words (a star's name). Default: the kit build's, else English. */
|
|
103
|
+
i18n?: Translator | null;
|
|
101
104
|
}
|
|
102
105
|
declare class Menu {
|
|
103
106
|
private readonly root;
|
|
@@ -627,6 +630,8 @@ interface NumberInputOptions extends NumberInputControllerOptions {
|
|
|
627
630
|
/** Stretch to the parent. Defaults to on for `md`, off for `sm`. Chart settings
|
|
628
631
|
* passes `false` so the field stays a 100px kit column instead of filling the pane. */
|
|
629
632
|
fill?: boolean;
|
|
633
|
+
/** The translator of the steppers' names (default: the kit build's, else English). */
|
|
634
|
+
i18n?: Translator | null;
|
|
630
635
|
}
|
|
631
636
|
declare class NumberInput {
|
|
632
637
|
readonly el: HTMLElement;
|
|
@@ -635,6 +640,7 @@ declare class NumberInput {
|
|
|
635
640
|
private last;
|
|
636
641
|
private readonly placeholderMode;
|
|
637
642
|
private readonly emptyValue;
|
|
643
|
+
private readonly i18n;
|
|
638
644
|
constructor(opts: NumberInputOptions);
|
|
639
645
|
get value(): number;
|
|
640
646
|
setValue(v: number): void;
|
|
@@ -712,6 +718,8 @@ declare function colorPickerController(opts?: ColorPickerControllerOptions): Col
|
|
|
712
718
|
type ColorCommit = 'live' | 'release';
|
|
713
719
|
interface ColorPickerOptions {
|
|
714
720
|
commit?: ColorCommit;
|
|
721
|
+
/** The translator of the picker's labels (default: the kit build's, else English). */
|
|
722
|
+
i18n?: Translator | null;
|
|
715
723
|
}
|
|
716
724
|
/**
|
|
717
725
|
* A self-contained color picker: a swatch grid (grays + hue × shade), a
|
|
@@ -728,6 +736,8 @@ interface ColorFieldOpts {
|
|
|
728
736
|
popover?: Pick<PopoverOptions, 'host' | 'position' | 'boundary' | 'zIndex' | 'gap' | 'align'>;
|
|
729
737
|
/** Opacity-drag commit policy of the popover picker (default `'live'`) — see {@link ColorCommit}. */
|
|
730
738
|
commit?: ColorCommit;
|
|
739
|
+
/** The translator of the picker's labels (default: the kit build's, else English). */
|
|
740
|
+
i18n?: Translator | null;
|
|
731
741
|
}
|
|
732
742
|
/** Closed-state swatch shape. `circle` is the settings-dialog preview (a square chip
|
|
733
743
|
* inset from a matching field border); `square` is the compact drawing-chrome swatch. */
|
|
@@ -745,6 +755,7 @@ declare class ColorField {
|
|
|
745
755
|
private readonly theme;
|
|
746
756
|
private readonly popoverOpts;
|
|
747
757
|
private readonly commit;
|
|
758
|
+
private readonly i18n;
|
|
748
759
|
constructor(opts: ColorFieldOpts);
|
|
749
760
|
private paint;
|
|
750
761
|
private toggle;
|
|
@@ -1062,6 +1073,10 @@ interface DatePickerControllerOptions {
|
|
|
1062
1073
|
value?: string;
|
|
1063
1074
|
/** "Today" for the today ring and the initial month when nothing is selected. */
|
|
1064
1075
|
today?: Date;
|
|
1076
|
+
/** The translator whose locale names the months and weekdays, picks the first day of
|
|
1077
|
+
* the week and the digits: `chart.i18n` inside a chart, `createTranslator(...)`
|
|
1078
|
+
* elsewhere. Default: English, weeks starting on Sunday. */
|
|
1079
|
+
i18n?: Translator;
|
|
1065
1080
|
}
|
|
1066
1081
|
/** One cell of the current panel. `blank` cells pad the first week of a month. */
|
|
1067
1082
|
interface DatePickerCell {
|
|
@@ -1079,6 +1094,10 @@ interface DatePickerController {
|
|
|
1079
1094
|
readonly year: number;
|
|
1080
1095
|
readonly month: number;
|
|
1081
1096
|
readonly value: string | null;
|
|
1097
|
+
/** Whether the locale writes the year before the month (the header's switch order). */
|
|
1098
|
+
readonly yearFirst: boolean;
|
|
1099
|
+
/** The weekday column labels, starting on the locale's first day of the week. */
|
|
1100
|
+
weekdays(): string[];
|
|
1082
1101
|
/** Header text: the month switch (hidden off the date panel) and the year switch. */
|
|
1083
1102
|
header(): {
|
|
1084
1103
|
month: string;
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { c as VelaTheme } from './options-
|
|
1
|
+
import { c as VelaTheme } from './options-B7aL1pbf.js';
|
|
2
2
|
import { MachineSchema, Service, Machine } from '@zag-js/core';
|
|
3
|
-
export { a as KeyBindingDescriptor, K as KeymapManager, b as KeymapOptions, R as ResolvedBinding } from './keymap-
|
|
3
|
+
export { a as KeyBindingDescriptor, K as KeymapManager, b as KeymapOptions, R as ResolvedBinding } from './keymap-C48ughm6.js';
|
|
4
4
|
import * as tooltip from '@zag-js/tooltip';
|
|
5
5
|
import * as menu from '@zag-js/menu';
|
|
6
|
+
import { T as Translator } from './types-Bwf63xGI.js';
|
|
6
7
|
import * as dialog from '@zag-js/dialog';
|
|
7
8
|
export { i as iconMarkup, r as registerIcon, s as svg16, a as svg24 } from './icons-BZYbJXSV.js';
|
|
8
9
|
export { normalizeProps, spreadProps } from '@zag-js/vanilla';
|
|
@@ -98,6 +99,8 @@ interface MenuOptions extends MenuControllerOptions {
|
|
|
98
99
|
* labels align; a level with no icon keeps its natural left edge. With `checkmarks`,
|
|
99
100
|
* the mark column leads and the badge follows. Submenus inherit the mode. */
|
|
100
101
|
iconBadges?: boolean;
|
|
102
|
+
/** The translator of the menu's own words (a star's name). Default: the kit build's, else English. */
|
|
103
|
+
i18n?: Translator | null;
|
|
101
104
|
}
|
|
102
105
|
declare class Menu {
|
|
103
106
|
private readonly root;
|
|
@@ -627,6 +630,8 @@ interface NumberInputOptions extends NumberInputControllerOptions {
|
|
|
627
630
|
/** Stretch to the parent. Defaults to on for `md`, off for `sm`. Chart settings
|
|
628
631
|
* passes `false` so the field stays a 100px kit column instead of filling the pane. */
|
|
629
632
|
fill?: boolean;
|
|
633
|
+
/** The translator of the steppers' names (default: the kit build's, else English). */
|
|
634
|
+
i18n?: Translator | null;
|
|
630
635
|
}
|
|
631
636
|
declare class NumberInput {
|
|
632
637
|
readonly el: HTMLElement;
|
|
@@ -635,6 +640,7 @@ declare class NumberInput {
|
|
|
635
640
|
private last;
|
|
636
641
|
private readonly placeholderMode;
|
|
637
642
|
private readonly emptyValue;
|
|
643
|
+
private readonly i18n;
|
|
638
644
|
constructor(opts: NumberInputOptions);
|
|
639
645
|
get value(): number;
|
|
640
646
|
setValue(v: number): void;
|
|
@@ -712,6 +718,8 @@ declare function colorPickerController(opts?: ColorPickerControllerOptions): Col
|
|
|
712
718
|
type ColorCommit = 'live' | 'release';
|
|
713
719
|
interface ColorPickerOptions {
|
|
714
720
|
commit?: ColorCommit;
|
|
721
|
+
/** The translator of the picker's labels (default: the kit build's, else English). */
|
|
722
|
+
i18n?: Translator | null;
|
|
715
723
|
}
|
|
716
724
|
/**
|
|
717
725
|
* A self-contained color picker: a swatch grid (grays + hue × shade), a
|
|
@@ -728,6 +736,8 @@ interface ColorFieldOpts {
|
|
|
728
736
|
popover?: Pick<PopoverOptions, 'host' | 'position' | 'boundary' | 'zIndex' | 'gap' | 'align'>;
|
|
729
737
|
/** Opacity-drag commit policy of the popover picker (default `'live'`) — see {@link ColorCommit}. */
|
|
730
738
|
commit?: ColorCommit;
|
|
739
|
+
/** The translator of the picker's labels (default: the kit build's, else English). */
|
|
740
|
+
i18n?: Translator | null;
|
|
731
741
|
}
|
|
732
742
|
/** Closed-state swatch shape. `circle` is the settings-dialog preview (a square chip
|
|
733
743
|
* inset from a matching field border); `square` is the compact drawing-chrome swatch. */
|
|
@@ -745,6 +755,7 @@ declare class ColorField {
|
|
|
745
755
|
private readonly theme;
|
|
746
756
|
private readonly popoverOpts;
|
|
747
757
|
private readonly commit;
|
|
758
|
+
private readonly i18n;
|
|
748
759
|
constructor(opts: ColorFieldOpts);
|
|
749
760
|
private paint;
|
|
750
761
|
private toggle;
|
|
@@ -1062,6 +1073,10 @@ interface DatePickerControllerOptions {
|
|
|
1062
1073
|
value?: string;
|
|
1063
1074
|
/** "Today" for the today ring and the initial month when nothing is selected. */
|
|
1064
1075
|
today?: Date;
|
|
1076
|
+
/** The translator whose locale names the months and weekdays, picks the first day of
|
|
1077
|
+
* the week and the digits: `chart.i18n` inside a chart, `createTranslator(...)`
|
|
1078
|
+
* elsewhere. Default: English, weeks starting on Sunday. */
|
|
1079
|
+
i18n?: Translator;
|
|
1065
1080
|
}
|
|
1066
1081
|
/** One cell of the current panel. `blank` cells pad the first week of a month. */
|
|
1067
1082
|
interface DatePickerCell {
|
|
@@ -1079,6 +1094,10 @@ interface DatePickerController {
|
|
|
1079
1094
|
readonly year: number;
|
|
1080
1095
|
readonly month: number;
|
|
1081
1096
|
readonly value: string | null;
|
|
1097
|
+
/** Whether the locale writes the year before the month (the header's switch order). */
|
|
1098
|
+
readonly yearFirst: boolean;
|
|
1099
|
+
/** The weekday column labels, starting on the locale's first day of the week. */
|
|
1100
|
+
weekdays(): string[];
|
|
1082
1101
|
/** Header text: the month switch (hidden off the date panel) and the year switch. */
|
|
1083
1102
|
header(): {
|
|
1084
1103
|
month: string;
|
package/dist/ui.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Drawer, KeymapManager, Tooltip, drawerController, tooltipController } from './chunk-
|
|
2
|
-
export { CALLOUT_CSS, CALLOUT_STYLE_ID, CalloutBubble, ColorField, DatePicker, Dialog, FIELD_GAP_PX, GlyphSelect, Menu, NumberInput, Popover, Select, Switch, TextArea, TextField, WIDTH_FIELD_OPTIONS, applyPlotOverlayTokens, applyThemeTokens, blendOver, buildColorPicker, buildFieldControl, buildPalette, calloutPanelRows, clampNumber, closeColorPopover, closeOpenPopovers, closeWidthPopover, closesPanel, colorField, colorPickerController, combineColor, datePickerController, decorateSelectScroll, dialogController, ensureUIHost, eventDismissedPopover, fieldGrid, fieldGridColumns, fieldRow, fieldSection, fieldSeparator, fillSelectList, glyphSelectController, hslHex, insetRect, intersectRects, isPopoverOpen, isoDate, lineWidthGlyph, menuController, nextUid, normalizeDateInput, normalizeProps, numberInputController, openPopoverTrigger, openSelectList, placePopover, popoverController, runMachine, selectController, snapToStep, splitColor, spreadProps, switchController, textAreaController, textFieldController, toggleSelectList, transparencyChecker, viewportRect, widthField, widthFieldOptions } from './chunk-
|
|
3
|
-
export { FIELD_FOCUS_CSS, FIELD_FOCUS_RING, SURFACE_CLOSE_EVENT, SURFACE_OPEN_EVENT, iconEl, iconMarkup, injectStyles, overlayScrollbarCss, registerIcon, svg16, svg24, withAlpha } from './chunk-
|
|
1
|
+
export { Drawer, KeymapManager, Tooltip, drawerController, tooltipController } from './chunk-WHPQQYH7.js';
|
|
2
|
+
export { CALLOUT_CSS, CALLOUT_STYLE_ID, CalloutBubble, ColorField, DatePicker, Dialog, FIELD_GAP_PX, GlyphSelect, Menu, NumberInput, Popover, Select, Switch, TextArea, TextField, WIDTH_FIELD_OPTIONS, applyPlotOverlayTokens, applyThemeTokens, blendOver, buildColorPicker, buildFieldControl, buildPalette, calloutPanelRows, clampNumber, closeColorPopover, closeOpenPopovers, closeWidthPopover, closesPanel, colorField, colorPickerController, combineColor, datePickerController, decorateSelectScroll, dialogController, ensureUIHost, eventDismissedPopover, fieldGrid, fieldGridColumns, fieldRow, fieldSection, fieldSeparator, fillSelectList, glyphSelectController, hslHex, insetRect, intersectRects, isPopoverOpen, isoDate, lineWidthGlyph, menuController, nextUid, normalizeDateInput, normalizeProps, numberInputController, openPopoverTrigger, openSelectList, placePopover, popoverController, runMachine, selectController, snapToStep, splitColor, spreadProps, switchController, textAreaController, textFieldController, toggleSelectList, transparencyChecker, viewportRect, widthField, widthFieldOptions } from './chunk-PZN4RS4T.js';
|
|
3
|
+
export { FIELD_FOCUS_CSS, FIELD_FOCUS_RING, SURFACE_CLOSE_EVENT, SURFACE_OPEN_EVENT, iconEl, iconMarkup, injectStyles, overlayScrollbarCss, registerIcon, svg16, svg24, withAlpha } from './chunk-O6L27KRB.js';
|