@wick-charts/vue 0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Eugene Formanenko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,331 @@
1
+ import { andromeda } from '@wick-charts/core';
2
+ import { AxisBound } from '@wick-charts/core';
3
+ import { AxisConfig } from '@wick-charts/core';
4
+ import { ayuMirage } from '@wick-charts/core';
5
+ import { BarSeriesOptions } from '@wick-charts/core';
6
+ import { BarStacking } from '@wick-charts/core';
7
+ import { buildTheme } from '@wick-charts/core';
8
+ import { CandlestickSeriesOptions } from '@wick-charts/core';
9
+ import { catppuccin } from '@wick-charts/core';
10
+ import { ChartInstance } from '@wick-charts/core';
11
+ import { ChartLayout } from '@wick-charts/core';
12
+ import { ChartOptions } from '@wick-charts/core';
13
+ import { ChartTheme } from '@wick-charts/core';
14
+ import { ComponentOptionsMixin } from 'vue';
15
+ import { ComponentProvideOptions } from 'vue';
16
+ import { createTheme } from '@wick-charts/core';
17
+ import { CrosshairPosition } from '@wick-charts/core';
18
+ import { darkTheme } from '@wick-charts/core';
19
+ import { DefineComponent } from 'vue';
20
+ import { detectInterval } from '@wick-charts/core';
21
+ import { dracula } from '@wick-charts/core';
22
+ import { formatDate } from '@wick-charts/core';
23
+ import { formatTime } from '@wick-charts/core';
24
+ import { githubLight } from '@wick-charts/core';
25
+ import { gruvbox } from '@wick-charts/core';
26
+ import { handwritten } from '@wick-charts/core';
27
+ import { highContrast } from '@wick-charts/core';
28
+ import { lavenderMist } from '@wick-charts/core';
29
+ import { lightPink } from '@wick-charts/core';
30
+ import { lightTheme } from '@wick-charts/core';
31
+ import { LineData } from '@wick-charts/core';
32
+ import { LineSeriesOptions } from '@wick-charts/core';
33
+ import { materialPalenight } from '@wick-charts/core';
34
+ import { minimalLight } from '@wick-charts/core';
35
+ import { mintBreeze } from '@wick-charts/core';
36
+ import { monokaiPro } from '@wick-charts/core';
37
+ import { nightOwl } from '@wick-charts/core';
38
+ import { normalizeTime } from '@wick-charts/core';
39
+ import { OHLCData } from '@wick-charts/core';
40
+ import { OHLCInput } from '@wick-charts/core';
41
+ import { oneDarkPro } from '@wick-charts/core';
42
+ import { panda } from '@wick-charts/core';
43
+ import { peachCream } from '@wick-charts/core';
44
+ import { PieSeriesOptions } from '@wick-charts/core';
45
+ import { PieSliceData } from '@wick-charts/core';
46
+ import { PublicProps } from 'vue';
47
+ import { quietLight } from '@wick-charts/core';
48
+ import { Ref } from 'vue';
49
+ import { rosePineDawn } from '@wick-charts/core';
50
+ import { sandDune } from '@wick-charts/core';
51
+ import { SeriesType } from '@wick-charts/core';
52
+ import { ShallowRef } from 'vue';
53
+ import { solarizedLight } from '@wick-charts/core';
54
+ import { StackingMode } from '@wick-charts/core';
55
+ import { ThemeConfig } from '@wick-charts/core';
56
+ import { ThemePreset } from '@wick-charts/core';
57
+ import { themes } from '@wick-charts/core';
58
+ import { TimePoint } from '@wick-charts/core';
59
+ import { TimePointInput } from '@wick-charts/core';
60
+ import { TimeValue } from '@wick-charts/core';
61
+ import { Typography } from '@wick-charts/core';
62
+ import { VisibleRange } from '@wick-charts/core';
63
+ import { XAxisConfig } from '@wick-charts/core';
64
+ import { YAxisConfig } from '@wick-charts/core';
65
+ import { YRange } from '@wick-charts/core';
66
+
67
+ declare const __VLS_component: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
68
+ theme: ChartTheme;
69
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
70
+ containerRef: HTMLDivElement;
71
+ }, HTMLDivElement>;
72
+
73
+ declare type __VLS_Props = {
74
+ data: TimePoint[][];
75
+ options?: Partial<BarSeriesOptions>;
76
+ label?: string;
77
+ };
78
+
79
+ declare type __VLS_Props_10 = {
80
+ seriesId: string;
81
+ color?: string;
82
+ };
83
+
84
+ declare type __VLS_Props_2 = {
85
+ data: OHLCData[];
86
+ options?: Partial<CandlestickSeriesOptions>;
87
+ };
88
+
89
+ declare type __VLS_Props_3 = {
90
+ theme?: ChartTheme;
91
+ axis?: AxisConfig;
92
+ };
93
+
94
+ declare type __VLS_Props_4 = {
95
+ data: TimePoint[][];
96
+ options?: Partial<LineSeriesOptions>;
97
+ label?: string;
98
+ };
99
+
100
+ declare type __VLS_Props_5 = {
101
+ data: PieSliceData[];
102
+ options?: Partial<PieSeriesOptions>;
103
+ };
104
+
105
+ declare type __VLS_Props_6 = {
106
+ value: number;
107
+ format?: Intl.NumberFormatOptions;
108
+ locale?: string;
109
+ spinDuration?: number;
110
+ };
111
+
112
+ declare type __VLS_Props_7 = {
113
+ seriesId: string;
114
+ format?: 'value' | 'percent';
115
+ };
116
+
117
+ declare type __VLS_Props_8 = {
118
+ seriesId: string;
119
+ };
120
+
121
+ declare type __VLS_Props_9 = {
122
+ seriesId?: string;
123
+ sort?: TooltipSort;
124
+ };
125
+
126
+ declare function __VLS_template(): {
127
+ attrs: Partial<{}>;
128
+ slots: {
129
+ default?(_: {}): any;
130
+ };
131
+ refs: {
132
+ containerRef: HTMLDivElement;
133
+ };
134
+ rootEl: HTMLDivElement;
135
+ };
136
+
137
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
138
+
139
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
140
+ new (): {
141
+ $slots: S;
142
+ };
143
+ };
144
+
145
+ export { andromeda }
146
+
147
+ export { AxisBound }
148
+
149
+ export { AxisConfig }
150
+
151
+ export { ayuMirage }
152
+
153
+ export declare const BarSeries: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
154
+ seriesId: (id: string) => any;
155
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
156
+ onSeriesId?: ((id: string) => any) | undefined;
157
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
158
+
159
+ export { BarSeriesOptions }
160
+
161
+ export { BarStacking }
162
+
163
+ export { buildTheme }
164
+
165
+ export declare const CandlestickSeries: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
166
+ seriesId: (id: string) => any;
167
+ }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
168
+ onSeriesId?: ((id: string) => any) | undefined;
169
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
170
+
171
+ export { CandlestickSeriesOptions }
172
+
173
+ export { catppuccin }
174
+
175
+ export declare const ChartContainer: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
176
+
177
+ export { ChartInstance }
178
+
179
+ export { ChartLayout }
180
+
181
+ export { ChartOptions }
182
+
183
+ export { ChartTheme }
184
+
185
+ export { createTheme }
186
+
187
+ export declare const Crosshair: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
188
+
189
+ export { CrosshairPosition }
190
+
191
+ export { darkTheme }
192
+
193
+ export { detectInterval }
194
+
195
+ export { dracula }
196
+
197
+ export { formatDate }
198
+
199
+ export { formatTime }
200
+
201
+ export { githubLight }
202
+
203
+ export { gruvbox }
204
+
205
+ export { handwritten }
206
+
207
+ export { highContrast }
208
+
209
+ export { lavenderMist }
210
+
211
+ export { lightPink }
212
+
213
+ export { lightTheme }
214
+
215
+ export { LineData }
216
+
217
+ export declare const LineSeries: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
218
+ seriesId: (id: string) => any;
219
+ }, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{
220
+ onSeriesId?: ((id: string) => any) | undefined;
221
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
222
+
223
+ export { LineSeriesOptions }
224
+
225
+ export { materialPalenight }
226
+
227
+ export { minimalLight }
228
+
229
+ export { mintBreeze }
230
+
231
+ export { monokaiPro }
232
+
233
+ export { nightOwl }
234
+
235
+ export { normalizeTime }
236
+
237
+ export declare const NumberFlow: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {
238
+ locale: string;
239
+ spinDuration: number;
240
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
241
+
242
+ export { OHLCData }
243
+
244
+ export { OHLCInput }
245
+
246
+ export { oneDarkPro }
247
+
248
+ export { panda }
249
+
250
+ export { peachCream }
251
+
252
+ export declare const PieLegend: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {
253
+ format: "value" | "percent";
254
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
255
+
256
+ export declare const PieSeries: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
257
+ seriesId: (id: string) => any;
258
+ }, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{
259
+ onSeriesId?: ((id: string) => any) | undefined;
260
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
261
+
262
+ export { PieSeriesOptions }
263
+
264
+ export { PieSliceData }
265
+
266
+ export declare const PieTooltip: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
267
+
268
+ export { quietLight }
269
+
270
+ export { rosePineDawn }
271
+
272
+ export { sandDune }
273
+
274
+ export { SeriesType }
275
+
276
+ export { solarizedLight }
277
+
278
+ export { StackingMode }
279
+
280
+ export { ThemeConfig }
281
+
282
+ export { ThemePreset }
283
+
284
+ export { themes }
285
+
286
+ export declare const TimeAxis: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
287
+
288
+ export { TimePoint }
289
+
290
+ export { TimePointInput }
291
+
292
+ export { TimeValue }
293
+
294
+ export declare const Tooltip: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {
295
+ sort: TooltipSort;
296
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
297
+
298
+ declare type TooltipSort = 'none' | 'asc' | 'desc';
299
+
300
+ export { Typography }
301
+
302
+ export declare function useChartInstance(): ChartInstance;
303
+
304
+ export declare function useCrosshairPosition(chart: ChartInstance): Ref<CrosshairPosition | null>;
305
+
306
+ export declare function useLastYValue(chart: ChartInstance, seriesId: string): Ref<{
307
+ value: number;
308
+ isLive: boolean;
309
+ } | null>;
310
+
311
+ export declare function usePreviousClose(chart: ChartInstance, seriesId: string): Ref<number | null>;
312
+
313
+ export declare function useTheme(): ShallowRef<ChartTheme>;
314
+
315
+ export declare function useVisibleRange(chart: ChartInstance): Ref<VisibleRange>;
316
+
317
+ export declare function useYRange(chart: ChartInstance): Ref<YRange>;
318
+
319
+ export { VisibleRange }
320
+
321
+ export { XAxisConfig }
322
+
323
+ export declare const YAxis: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
324
+
325
+ export { YAxisConfig }
326
+
327
+ export declare const YLabel: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
328
+
329
+ export { YRange }
330
+
331
+ export { }