vue-chrts 0.0.115 → 0.0.118

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.
Files changed (70) hide show
  1. package/dist/components/Area/AreaChart.vue.d.ts +37 -0
  2. package/dist/components/Area/index.d.ts +1 -0
  3. package/dist/components/AreaStacked/AreaStackedChart.vue.d.ts +18 -0
  4. package/{src/components/AreaStacked/index.ts → dist/components/AreaStacked/index.d.ts} +1 -1
  5. package/dist/components/Bar/BarChart.vue.d.ts +37 -0
  6. package/dist/components/Bar/index.d.ts +1 -0
  7. package/dist/components/Crosshair/Crosshair.vue.d.ts +38 -0
  8. package/dist/components/Crosshair/index.d.ts +1 -0
  9. package/dist/components/Donut/DonutChart.vue.d.ts +31 -0
  10. package/dist/components/Donut/index.d.ts +1 -0
  11. package/dist/components/Line/LineChart.vue.d.ts +28 -0
  12. package/dist/components/Line/index.d.ts +1 -0
  13. package/dist/components/Tooltip.vue.d.ts +14 -0
  14. package/dist/components.d.ts +6 -0
  15. package/dist/index.cjs +502 -0
  16. package/dist/index.cjs.map +1 -0
  17. package/dist/index.d.ts +5 -0
  18. package/dist/index.js +9615 -0
  19. package/dist/index.js.map +1 -0
  20. package/package.json +5 -1
  21. package/.vscode/extensions.json +0 -3
  22. package/auto-imports.d.ts +0 -58
  23. package/components.d.ts +0 -46
  24. package/image.png +0 -0
  25. package/index.html +0 -14
  26. package/src/components/Area/AreaChart.vue +0 -141
  27. package/src/components/Area/index.ts +0 -1
  28. package/src/components/AreaStacked/AreaStackedChart.vue +0 -51
  29. package/src/components/Bar/BarChart.vue +0 -130
  30. package/src/components/Bar/index.ts +0 -1
  31. package/src/components/Crosshair/Crosshair.vue +0 -46
  32. package/src/components/Crosshair/index.ts +0 -1
  33. package/src/components/Donut/DonutChart.vue +0 -71
  34. package/src/components/Donut/index.ts +0 -1
  35. package/src/components/Line/LineChart.vue +0 -94
  36. package/src/components/Line/index.ts +0 -1
  37. package/src/components/Tooltip.vue +0 -17
  38. package/src/components.ts +0 -6
  39. package/src/index.ts +0 -6
  40. package/src/shims-vue.d.ts +0 -1
  41. package/src-demo/AdminTemplate.vue +0 -5
  42. package/src-demo/App.vue +0 -37
  43. package/src-demo/AreaChartPage.vue +0 -125
  44. package/src-demo/BarChartPage.vue +0 -166
  45. package/src-demo/DashboardTemplate.vue +0 -687
  46. package/src-demo/Homepage.vue +0 -325
  47. package/src-demo/LineChartPage.vue +0 -140
  48. package/src-demo/assets/main.css +0 -34
  49. package/src-demo/components/Progress/Progress.vue +0 -42
  50. package/src-demo/components/Progress/index.ts +0 -1
  51. package/src-demo/components/Status/Status.vue +0 -95
  52. package/src-demo/components/Status/index.ts +0 -1
  53. package/src-demo/components/charts.ts +0 -37
  54. package/src-demo/components/index.ts +0 -49
  55. package/src-demo/data/AreaChartData.ts +0 -294
  56. package/src-demo/data/BarChartData.ts +0 -79
  57. package/src-demo/data/IncomeExpenseData.ts +0 -189
  58. package/src-demo/data/InvestmentData.ts +0 -352
  59. package/src-demo/data/RevenueData.ts +0 -58
  60. package/src-demo/data/VisitorsData.ts +0 -260
  61. package/src-demo/elements/Button.vue +0 -13
  62. package/src-demo/elements/Card.vue +0 -17
  63. package/src-demo/elements/Dropdown.vue +0 -112
  64. package/src-demo/elements/Logo.vue +0 -8
  65. package/src-demo/elements/Table.vue +0 -363
  66. package/src-demo/elements/TopBar.vue +0 -40
  67. package/src-demo/index.ts +0 -58
  68. package/tsconfig.json +0 -11
  69. package/vite.config.ts +0 -59
  70. /package/{public → dist}/vite.svg +0 -0
@@ -0,0 +1,37 @@
1
+ import { BulletLegendItemInterface, CurveType } from '@unovis/ts';
2
+ import { PaginationPosition } from '../..';
3
+
4
+ export type AreaChartProps<T> = {
5
+ data: T[];
6
+ height: number;
7
+ xLabel?: string;
8
+ yLabel?: string;
9
+ categories: Record<string, BulletLegendItemInterface>;
10
+ xFormatter: (i: number, idx: number) => string;
11
+ yFormatter?: (i: number, idx?: number) => string | number;
12
+ curveType?: CurveType;
13
+ xNumTicks?: number;
14
+ yNumTicks?: number;
15
+ hideLegend?: boolean;
16
+ hideTooltip?: boolean;
17
+ gridLineX?: boolean;
18
+ domainLineX?: boolean;
19
+ gridLineY?: boolean;
20
+ domainLineY?: boolean;
21
+ paginationPoisition?: PaginationPosition;
22
+ };
23
+ declare const _default: <T>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
24
+ props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & AreaChartProps<T>, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
25
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
26
+ attrs: any;
27
+ slots: ReturnType<() => {}>;
28
+ emit: typeof __VLS_emit;
29
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
30
+ [key: string]: any;
31
+ }> & {
32
+ __ctx?: Awaited<typeof __VLS_setup>;
33
+ };
34
+ export default _default;
35
+ type __VLS_Prettify<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
@@ -0,0 +1 @@
1
+ export { default as AreaChart } from './AreaChart.vue';
@@ -0,0 +1,18 @@
1
+ import { BulletLegendItemInterface } from '@unovis/ts';
2
+
3
+ export type AreaStackedChartProps<T> = {
4
+ data: T[];
5
+ categories: Record<string, BulletLegendItemInterface>;
6
+ };
7
+ declare const _default: <T>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
+ props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & AreaStackedChartProps<T>, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
9
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
+ attrs: any;
11
+ slots: ReturnType<() => {}>;
12
+ emit: typeof __VLS_emit;
13
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
14
+ [key: string]: any;
15
+ }> & {
16
+ __ctx?: Awaited<typeof __VLS_setup>;
17
+ };
18
+ export default _default;
@@ -1 +1 @@
1
- export { default as AreaStackedChart } from './AreaStackedChart.vue';
1
+ export { default as AreaStackedChart } from './AreaStackedChart.vue';
@@ -0,0 +1,37 @@
1
+ import { BulletLegendItemInterface, Orientation } from '@unovis/ts';
2
+ import { PaginationPosition } from '../..';
3
+
4
+ export type BarChartProps<T> = {
5
+ data: T[];
6
+ stacked?: boolean;
7
+ height: number;
8
+ xLabel?: string;
9
+ yLabel?: string;
10
+ categories: Record<string, BulletLegendItemInterface>;
11
+ xFormatter: (i: number, idx?: number) => string | number;
12
+ yFormatter?: (i: number, idx?: number) => string | number;
13
+ yNumTicks?: number;
14
+ xNumTicks?: number;
15
+ yAxis: (keyof T)[];
16
+ groupPadding?: number;
17
+ barPadding?: number;
18
+ radius?: number;
19
+ hideLegend?: boolean;
20
+ orientation?: Orientation;
21
+ paginationPosition?: PaginationPosition;
22
+ };
23
+ declare const _default: <T>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
24
+ props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & BarChartProps<T>, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
25
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
26
+ attrs: any;
27
+ slots: ReturnType<() => {}>;
28
+ emit: typeof __VLS_emit;
29
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
30
+ [key: string]: any;
31
+ }> & {
32
+ __ctx?: Awaited<typeof __VLS_setup>;
33
+ };
34
+ export default _default;
35
+ type __VLS_Prettify<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
@@ -0,0 +1 @@
1
+ export { default as BarChart } from './BarChart.vue';
@@ -0,0 +1,38 @@
1
+ import { BulletLegendItemInterface } from '@unovis/ts';
2
+ import { Component } from 'vue';
3
+
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
+ colors: string[];
6
+ index: string;
7
+ items: BulletLegendItemInterface[];
8
+ customTooltip?: Component;
9
+ }>, {
10
+ colors: () => any[];
11
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
+ colors: string[];
13
+ index: string;
14
+ items: BulletLegendItemInterface[];
15
+ customTooltip?: Component;
16
+ }>, {
17
+ colors: () => any[];
18
+ }>>> & Readonly<{}>, {
19
+ colors: string[];
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
+ export default _default;
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToRuntimeProps<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('vue').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+ type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
+ default: D[K];
34
+ }> : P[K];
35
+ };
36
+ type __VLS_Prettify<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -0,0 +1 @@
1
+ export { default as Crosshair } from './Crosshair.vue';
@@ -0,0 +1,31 @@
1
+ export type DonutChartProps = {
2
+ type?: string;
3
+ data: number[];
4
+ height: number;
5
+ radius: number;
6
+ hidePagination?: boolean;
7
+ labels: {
8
+ name: string;
9
+ color: string;
10
+ }[];
11
+ };
12
+ declare function __VLS_template(): {
13
+ default?(_: {}): any;
14
+ };
15
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DonutChartProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<DonutChartProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
17
+ export default _default;
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1 @@
1
+ export { default as DonutChart } from './DonutChart.vue';
@@ -0,0 +1,28 @@
1
+ import { CurveType, BulletLegendItemInterface } from '@unovis/ts';
2
+ import { PaginationPosition } from '../..';
3
+
4
+ export type LineChartProps<T> = {
5
+ data: T[];
6
+ height: number;
7
+ xLabel?: string;
8
+ yLabel?: string;
9
+ categories: Record<string, BulletLegendItemInterface>;
10
+ xFormatter: (i: number, idx: number) => string;
11
+ yFormatter?: (i: number, idx: number) => string;
12
+ curveType?: CurveType;
13
+ yNumTicks?: number;
14
+ xNumTicks?: number;
15
+ paginationPosition?: PaginationPosition;
16
+ };
17
+ declare const _default: <T>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
18
+ props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & LineChartProps<T>, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
19
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
20
+ attrs: any;
21
+ slots: ReturnType<() => {}>;
22
+ emit: typeof __VLS_emit;
23
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
24
+ [key: string]: any;
25
+ }> & {
26
+ __ctx?: Awaited<typeof __VLS_setup>;
27
+ };
28
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as LineChart } from './LineChart.vue';
@@ -0,0 +1,14 @@
1
+ declare const _default: <T>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ props: __VLS_Prettify<__VLS_OmitKeepDiscriminatedUnion<(Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>) & {
3
+ data: T;
4
+ }, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
5
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
6
+ attrs: any;
7
+ slots: ReturnType<() => {}>;
8
+ emit: typeof __VLS_emit;
9
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
10
+ [key: string]: any;
11
+ }> & {
12
+ __ctx?: Awaited<typeof __VLS_setup>;
13
+ };
14
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export * from './components/Area';
2
+ export * from './components/AreaStacked';
3
+ export * from './components/Line';
4
+ export * from './components/Bar';
5
+ export * from './components/Donut';
6
+ export * from './components/Crosshair';