vue-chrts 0.0.117 → 0.0.119

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 (69) hide show
  1. package/.vscode/extensions.json +3 -0
  2. package/image.png +0 -0
  3. package/index.html +14 -0
  4. package/index.js +2 -0
  5. package/package.json +1 -4
  6. package/src/components/Area/AreaChart.vue +141 -0
  7. package/src/components/Area/index.ts +1 -0
  8. package/src/components/AreaStacked/AreaStackedChart.vue +51 -0
  9. package/{dist/components/AreaStacked/index.d.ts → src/components/AreaStacked/index.ts} +1 -1
  10. package/src/components/Bar/BarChart.vue +130 -0
  11. package/src/components/Bar/index.ts +1 -0
  12. package/src/components/Crosshair/Crosshair.vue +46 -0
  13. package/src/components/Crosshair/index.ts +1 -0
  14. package/src/components/Donut/DonutChart.vue +71 -0
  15. package/src/components/Donut/index.ts +1 -0
  16. package/src/components/Line/LineChart.vue +94 -0
  17. package/src/components/Line/index.ts +1 -0
  18. package/src/components/Tooltip.vue +17 -0
  19. package/src/components.ts +6 -0
  20. package/src/index.ts +6 -0
  21. package/src/shims-vue.d.ts +1 -0
  22. package/src-demo/AdminTemplate.vue +5 -0
  23. package/src-demo/App.vue +37 -0
  24. package/src-demo/AreaChartPage.vue +125 -0
  25. package/src-demo/BarChartPage.vue +166 -0
  26. package/src-demo/DashboardTemplate.vue +687 -0
  27. package/src-demo/Homepage.vue +325 -0
  28. package/src-demo/LineChartPage.vue +140 -0
  29. package/src-demo/assets/main.css +34 -0
  30. package/src-demo/components/Progress/Progress.vue +42 -0
  31. package/src-demo/components/Progress/index.ts +1 -0
  32. package/src-demo/components/Status/Status.vue +95 -0
  33. package/src-demo/components/Status/index.ts +1 -0
  34. package/src-demo/components/charts.ts +37 -0
  35. package/src-demo/components/index.ts +49 -0
  36. package/src-demo/data/AreaChartData.ts +294 -0
  37. package/src-demo/data/BarChartData.ts +79 -0
  38. package/src-demo/data/IncomeExpenseData.ts +189 -0
  39. package/src-demo/data/InvestmentData.ts +352 -0
  40. package/src-demo/data/RevenueData.ts +58 -0
  41. package/src-demo/data/VisitorsData.ts +260 -0
  42. package/src-demo/elements/Button.vue +13 -0
  43. package/src-demo/elements/Card.vue +17 -0
  44. package/src-demo/elements/Dropdown.vue +112 -0
  45. package/src-demo/elements/Logo.vue +8 -0
  46. package/src-demo/elements/Table.vue +363 -0
  47. package/src-demo/elements/TopBar.vue +40 -0
  48. package/src-demo/index.ts +58 -0
  49. package/tsconfig.json +11 -0
  50. package/vite.config.ts +60 -0
  51. package/dist/components/Area/AreaChart.vue.d.ts +0 -37
  52. package/dist/components/Area/index.d.ts +0 -1
  53. package/dist/components/AreaStacked/AreaStackedChart.vue.d.ts +0 -18
  54. package/dist/components/Bar/BarChart.vue.d.ts +0 -37
  55. package/dist/components/Bar/index.d.ts +0 -1
  56. package/dist/components/Crosshair/Crosshair.vue.d.ts +0 -38
  57. package/dist/components/Crosshair/index.d.ts +0 -1
  58. package/dist/components/Donut/DonutChart.vue.d.ts +0 -31
  59. package/dist/components/Donut/index.d.ts +0 -1
  60. package/dist/components/Line/LineChart.vue.d.ts +0 -28
  61. package/dist/components/Line/index.d.ts +0 -1
  62. package/dist/components/Tooltip.vue.d.ts +0 -14
  63. package/dist/components.d.ts +0 -6
  64. package/dist/index.cjs +0 -502
  65. package/dist/index.cjs.map +0 -1
  66. package/dist/index.d.ts +0 -5
  67. package/dist/index.js +0 -9615
  68. package/dist/index.js.map +0 -1
  69. /package/{dist → public}/vite.svg +0 -0
@@ -1 +0,0 @@
1
- export { default as AreaChart } from './AreaChart.vue';
@@ -1,18 +0,0 @@
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,37 +0,0 @@
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
- } & {};
@@ -1 +0,0 @@
1
- export { default as BarChart } from './BarChart.vue';
@@ -1,38 +0,0 @@
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
- } & {};
@@ -1 +0,0 @@
1
- export { default as Crosshair } from './Crosshair.vue';
@@ -1,31 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export { default as DonutChart } from './DonutChart.vue';
@@ -1,28 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default as LineChart } from './LineChart.vue';
@@ -1,14 +0,0 @@
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;
@@ -1,6 +0,0 @@
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';