vue-chrts 0.0.170 → 0.1.0-beta.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/README.md CHANGED
@@ -1,3 +1,84 @@
1
- # Vue 3 Charts Inspired by Tremor
1
+ # Vue-Chrts
2
2
 
3
- This is a Vue 3 chart package inspired by [Tremor](https://tremor.so/).
3
+ A Vue 3 charts package inspired by [Tremor](https://tremor.so/), built on top of [Unovis](https://unovis.dev). Vue-Chrts provides beautiful, responsive charts for your Vue applications with minimal setup.
4
+
5
+ [Check the docs and examples](https://nuxtcharts.com/docs)
6
+
7
+ ## Features
8
+
9
+ - 📊 Multiple chart types: Line, Bar, Area, Stacked Area, Donut
10
+ - 🎨 Customizable appearance
11
+ - 📱 Responsive design
12
+ - 💡 Simple, intuitive API
13
+ - 🚀 Built with Vue 3 and TypeScript
14
+
15
+ ## Installation
16
+
17
+ ```bash
18
+ # npm
19
+ npm install vue-chrts
20
+
21
+ # yarn
22
+ yarn add vue-chrts
23
+
24
+ # pnpm
25
+ pnpm add vue-chrts
26
+ ```
27
+ [Check the docs and examples](https://nuxtcharts.com/docs)
28
+
29
+ ## Usage Example
30
+
31
+ ```vue
32
+ <script setup>
33
+ import { LineChart } from 'vue-chrts';
34
+
35
+ const data = [
36
+ { month: 'Jan', sales: 100, profit: 50 },
37
+ { month: 'Feb', sales: 120, profit: 55 },
38
+ { month: 'Mar', sales: 180, profit: 80 },
39
+ { month: 'Apr', sales: 110, profit: 40 },
40
+ { month: 'May', sales: 90, profit: 30 },
41
+ ];
42
+
43
+ const categories = {
44
+ sales: {
45
+ name: 'Sales',
46
+ color: '#3b82f6'
47
+ },
48
+ profit: {
49
+ name: 'Profit',
50
+ color: '#10b981'
51
+ }
52
+ };
53
+
54
+ const xFormatter = (i) => data[i].month;
55
+ </script>
56
+
57
+ <template>
58
+ <LineChart
59
+ :data="data"
60
+ :categories="categories"
61
+ :height="300"
62
+ :xFormatter="xFormatter"
63
+ xLabel="Month"
64
+ yLabel="Amount"
65
+ />
66
+ </template>
67
+ ```
68
+ [Check the docs and examples](https://nuxtcharts.com/docs)
69
+
70
+ ## Available Charts
71
+
72
+ - `LineChart`
73
+ - `BarChart`
74
+ - `AreaChart`
75
+ - `AreaStackedChart`
76
+ - `DonutChart`
77
+
78
+ ## Credits
79
+
80
+ This library is inspired by [Tremor](https://tremor.so/) and built on top of [Unovis](https://unovis.dev).
81
+
82
+ ## License
83
+
84
+ MIT
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@unovis/ts"),o=require("@unovis/vue"),u={class:"flex items-center justify-center"},d={key:0,class:"flex items-center justify-center mt-4"},g=e.defineComponent({__name:"DonutChart",props:{type:{},data:{},height:{},radius:{},hidePagination:{type:Boolean},labels:{}},setup(r){const n=r,s=t=>t,l=n.type==="half",a={[c.Donut.selectors.segment]:t=>(console.log(),`<div class='flex items-center'><div class='w-2 h-2 rounded-full mr-2' style='background-color: ${n.labels[t.index].color} ;'></div>
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@unovis/ts"),n=require("@unovis/vue"),u=require("./index.cjs"),d={class:"flex items-center justify-center"},g={key:0,class:"flex items-center justify-center mt-4"},f=e.defineComponent({__name:"DonutChart",props:{type:{},data:{},height:{},radius:{},hidePagination:{type:Boolean},labels:{}},setup(r){const o=r,i=t=>t,l=o.type===u.DonutType.Half,s={[c.Donut.selectors.segment]:t=>`<div class='flex items-center'><div class='w-2 h-2 rounded-full mr-2' style='background-color: ${o.labels[t.index].color} ;'></div>
2
2
  <div>${t.data}</div>
3
3
  </vistooltip>
4
4
  </vissinglecontainer>
5
- </div>`)};return(t,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",u,[e.createVNode(e.unref(o.VisSingleContainer),{class:e.normalizeClass(l?"mt-24":""),data:t.data,height:t.height,margin:{}},{default:e.withCtx(()=>[e.createVNode(e.unref(o.VisTooltip),{"horizontal-shift":20,"vertical-shift":20,triggers:a}),e.createVNode(e.unref(o.VisDonut),{value:s,"corner-radius":t.radius,color:n.labels.map(i=>i.color),"angle-range":l?[-1.5707963267948966,1.5707963267948966]:[]},null,8,["corner-radius","color","angle-range"])]),_:1},8,["class","data","height"]),e.renderSlot(t.$slots,"default")]),t.hidePagination?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(e.unref(o.VisBulletLegend),{items:t.labels},null,8,["items"])]))],64))}});exports.default=g;
5
+ </div>`};return(t,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",d,[e.createVNode(e.unref(n.VisSingleContainer),{data:t.data,height:t.height,margin:{}},{default:e.withCtx(()=>[e.createVNode(e.unref(n.VisTooltip),{"horizontal-shift":20,"vertical-shift":20,triggers:s}),e.createVNode(e.unref(n.VisDonut),{value:i,"corner-radius":t.radius,color:o.labels.map(a=>a.color),"angle-range":l?[-1.5707963267948966,1.5707963267948966]:[]},null,8,["corner-radius","color","angle-range"])]),_:1},8,["data","height"]),e.renderSlot(t.$slots,"default")]),t.hidePagination?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(e.unref(n.VisBulletLegend),{items:t.labels},null,8,["items"])]))],64))}});exports.default=f;
6
6
  //# sourceMappingURL=DonutChart.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DonutChart.cjs","sources":["../../../src/components/Donut/DonutChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Donut } from \"@unovis/ts\";\nimport {\n VisBulletLegend,\n VisDonut,\n VisSingleContainer,\n VisTooltip,\n} from \"@unovis/vue\";\n\nexport type DonutChartProps = {\n type?: string;\n data: number[];\n height: number;\n radius: number;\n hidePagination?: boolean\n labels: {\n name: string;\n color: string;\n }[];\n }\n\nconst props = defineProps<DonutChartProps>();\n\nconst value = (d: number) => d;\n\nconst isHalf = props.type === \"half\";\n\nconst tooltip = {\n [Donut.selectors.segment]: (d: any) => {\n console.log();\n\n return `<div class='flex items-center'><div class='w-2 h-2 rounded-full mr-2' style='background-color: ${\n props.labels[d.index].color\n } ;'></div>\n <div>${d.data}</div>\n </vistooltip>\n </vissinglecontainer>\n </div>`;\n },\n};\n</script>\n\n<template>\n <div class=\"flex items-center justify-center\">\n <VisSingleContainer\n :class=\"isHalf ? 'mt-24' : ''\"\n :data=\"data\"\n :height=\"height\"\n :margin=\"{}\"\n >\n <VisTooltip\n :horizontal-shift=\"20\"\n :vertical-shift=\"20\"\n :triggers=\"tooltip\"\n />\n\n <VisDonut\n :value=\"value\"\n :corner-radius=\"radius\"\n :color=\"props.labels.map((l) => l.color)\"\n :angle-range=\"isHalf ? [-1.5707963267948966, 1.5707963267948966] : []\"\n />\n </VisSingleContainer>\n\n <slot />\n </div>\n\n <div v-if=\"!hidePagination\" class=\"flex items-center justify-center mt-4\">\n <VisBulletLegend :items=\"labels\" />\n </div>\n</template>\n"],"names":["props","__props","value","d","isHalf","tooltip","Donut"],"mappings":"+ZAqBA,MAAMA,EAAQC,EAERC,EAASC,GAAcA,EAEvBC,EAASJ,EAAM,OAAS,OAExBK,EAAU,CACd,CAACC,QAAM,UAAU,OAAO,EAAIH,IAC1B,QAAQ,IAAI,EAEL,kGACLH,EAAM,OAAOG,EAAE,KAAK,EAAE,KACxB;AAAA,eACWA,EAAE,IAAI;AAAA;AAAA;AAAA,UAKrB"}
1
+ {"version":3,"file":"DonutChart.cjs","sources":["../../../src/components/Donut/DonutChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Donut } from \"@unovis/ts\";\nimport {\n VisBulletLegend,\n VisDonut,\n VisSingleContainer,\n VisTooltip,\n} from \"@unovis/vue\";\nimport { type DonutChartProps, DonutType } from \".\";\n\nconst props = defineProps<DonutChartProps>()\n\nconst value = (d: number) => d;\n\nconst isHalf = props.type === DonutType.Half;\n\nconst tooltip = {\n [Donut.selectors.segment]: (d: any) => {\n return `<div class='flex items-center'><div class='w-2 h-2 rounded-full mr-2' style='background-color: ${\n props.labels[d.index].color\n } ;'></div>\n <div>${d.data}</div>\n </vistooltip>\n </vissinglecontainer>\n </div>`;\n },\n};\n</script>\n\n<template>\n <div class=\"flex items-center justify-center\">\n <VisSingleContainer\n :data=\"data\"\n :height=\"height\"\n :margin=\"{}\"\n >\n <VisTooltip\n :horizontal-shift=\"20\"\n :vertical-shift=\"20\"\n :triggers=\"tooltip\"\n />\n\n <VisDonut\n :value=\"value\"\n :corner-radius=\"radius\"\n :color=\"props.labels.map((l) => l.color)\"\n :angle-range=\"isHalf ? [-1.5707963267948966, 1.5707963267948966] : []\"\n />\n </VisSingleContainer>\n\n <slot />\n </div>\n\n <div v-if=\"!hidePagination\" class=\"flex items-center justify-center mt-4\">\n <VisBulletLegend :items=\"labels\" />\n </div>\n</template>\n"],"names":["props","__props","value","d","isHalf","DonutType","tooltip","Donut"],"mappings":"wbAUA,MAAMA,EAAQC,EAERC,EAASC,GAAcA,EAEvBC,EAASJ,EAAM,OAASK,EAAU,UAAA,KAElCC,EAAU,CACd,CAACC,QAAM,UAAU,OAAO,EAAIJ,GACnB,kGACLH,EAAM,OAAOG,EAAE,KAAK,EAAE,KACxB;AAAA,eACWA,EAAE,IAAI;AAAA;AAAA;AAAA,SAKrB"}
@@ -1,10 +1,11 @@
1
- import { defineComponent as m, createElementBlock as i, openBlock as n, Fragment as u, createElementVNode as g, createCommentVNode as h, createVNode as t, renderSlot as f, unref as o, normalizeClass as p, withCtx as v } from "vue";
2
- import { Donut as y } from "@unovis/ts";
3
- import { VisSingleContainer as V, VisTooltip as C, VisDonut as b, VisBulletLegend as _ } from "@unovis/vue";
1
+ import { defineComponent as u, createElementBlock as n, openBlock as r, Fragment as m, createElementVNode as f, createCommentVNode as p, createVNode as t, renderSlot as g, unref as o, withCtx as h } from "vue";
2
+ import { Donut as v } from "@unovis/ts";
3
+ import { VisSingleContainer as y, VisTooltip as V, VisDonut as b, VisBulletLegend as C } from "@unovis/vue";
4
+ import { DonutType as _ } from "./index.js";
4
5
  const k = { class: "flex items-center justify-center" }, B = {
5
6
  key: 0,
6
7
  class: "flex items-center justify-center mt-4"
7
- }, w = /* @__PURE__ */ m({
8
+ }, E = /* @__PURE__ */ u({
8
9
  __name: "DonutChart",
9
10
  props: {
10
11
  type: {},
@@ -15,45 +16,44 @@ const k = { class: "flex items-center justify-center" }, B = {
15
16
  labels: {}
16
17
  },
17
18
  setup(a) {
18
- const s = a, r = (e) => e, l = s.type === "half", c = {
19
- [y.selectors.segment]: (e) => (console.log(), `<div class='flex items-center'><div class='w-2 h-2 rounded-full mr-2' style='background-color: ${s.labels[e.index].color} ;'></div>
19
+ const i = a, l = (e) => e, s = i.type === _.Half, d = {
20
+ [v.selectors.segment]: (e) => `<div class='flex items-center'><div class='w-2 h-2 rounded-full mr-2' style='background-color: ${i.labels[e.index].color} ;'></div>
20
21
  <div>${e.data}</div>
21
22
  </vistooltip>
22
23
  </vissinglecontainer>
23
- </div>`)
24
+ </div>`
24
25
  };
25
- return (e, D) => (n(), i(u, null, [
26
- g("div", k, [
27
- t(o(V), {
28
- class: p(l ? "mt-24" : ""),
26
+ return (e, D) => (r(), n(m, null, [
27
+ f("div", k, [
28
+ t(o(y), {
29
29
  data: e.data,
30
30
  height: e.height,
31
31
  margin: {}
32
32
  }, {
33
- default: v(() => [
34
- t(o(C), {
33
+ default: h(() => [
34
+ t(o(V), {
35
35
  "horizontal-shift": 20,
36
36
  "vertical-shift": 20,
37
- triggers: c
37
+ triggers: d
38
38
  }),
39
39
  t(o(b), {
40
- value: r,
40
+ value: l,
41
41
  "corner-radius": e.radius,
42
- color: s.labels.map((d) => d.color),
43
- "angle-range": l ? [-1.5707963267948966, 1.5707963267948966] : []
42
+ color: i.labels.map((c) => c.color),
43
+ "angle-range": s ? [-1.5707963267948966, 1.5707963267948966] : []
44
44
  }, null, 8, ["corner-radius", "color", "angle-range"])
45
45
  ]),
46
46
  _: 1
47
- }, 8, ["class", "data", "height"]),
48
- f(e.$slots, "default")
47
+ }, 8, ["data", "height"]),
48
+ g(e.$slots, "default")
49
49
  ]),
50
- e.hidePagination ? h("", !0) : (n(), i("div", B, [
51
- t(o(_), { items: e.labels }, null, 8, ["items"])
50
+ e.hidePagination ? p("", !0) : (r(), n("div", B, [
51
+ t(o(C), { items: e.labels }, null, 8, ["items"])
52
52
  ]))
53
53
  ], 64));
54
54
  }
55
55
  });
56
56
  export {
57
- w as default
57
+ E as default
58
58
  };
59
59
  //# sourceMappingURL=DonutChart.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DonutChart.js","sources":["../../../src/components/Donut/DonutChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Donut } from \"@unovis/ts\";\nimport {\n VisBulletLegend,\n VisDonut,\n VisSingleContainer,\n VisTooltip,\n} from \"@unovis/vue\";\n\nexport type DonutChartProps = {\n type?: string;\n data: number[];\n height: number;\n radius: number;\n hidePagination?: boolean\n labels: {\n name: string;\n color: string;\n }[];\n }\n\nconst props = defineProps<DonutChartProps>();\n\nconst value = (d: number) => d;\n\nconst isHalf = props.type === \"half\";\n\nconst tooltip = {\n [Donut.selectors.segment]: (d: any) => {\n console.log();\n\n return `<div class='flex items-center'><div class='w-2 h-2 rounded-full mr-2' style='background-color: ${\n props.labels[d.index].color\n } ;'></div>\n <div>${d.data}</div>\n </vistooltip>\n </vissinglecontainer>\n </div>`;\n },\n};\n</script>\n\n<template>\n <div class=\"flex items-center justify-center\">\n <VisSingleContainer\n :class=\"isHalf ? 'mt-24' : ''\"\n :data=\"data\"\n :height=\"height\"\n :margin=\"{}\"\n >\n <VisTooltip\n :horizontal-shift=\"20\"\n :vertical-shift=\"20\"\n :triggers=\"tooltip\"\n />\n\n <VisDonut\n :value=\"value\"\n :corner-radius=\"radius\"\n :color=\"props.labels.map((l) => l.color)\"\n :angle-range=\"isHalf ? [-1.5707963267948966, 1.5707963267948966] : []\"\n />\n </VisSingleContainer>\n\n <slot />\n </div>\n\n <div v-if=\"!hidePagination\" class=\"flex items-center justify-center mt-4\">\n <VisBulletLegend :items=\"labels\" />\n </div>\n</template>\n"],"names":["props","__props","value","d","isHalf","tooltip","Donut"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,UAAMA,IAAQC,GAERC,IAAQ,CAACC,MAAcA,GAEvBC,IAASJ,EAAM,SAAS,QAExBK,IAAU;AAAA,MACd,CAACC,EAAM,UAAU,OAAO,GAAG,CAACH,OAC1B,QAAQ,IAAI,GAEL,kGACLH,EAAM,OAAOG,EAAE,KAAK,EAAE,KACxB;AAAA,eACWA,EAAE,IAAI;AAAA;AAAA;AAAA;AAAA,IAKrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DonutChart.js","sources":["../../../src/components/Donut/DonutChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Donut } from \"@unovis/ts\";\nimport {\n VisBulletLegend,\n VisDonut,\n VisSingleContainer,\n VisTooltip,\n} from \"@unovis/vue\";\nimport { type DonutChartProps, DonutType } from \".\";\n\nconst props = defineProps<DonutChartProps>()\n\nconst value = (d: number) => d;\n\nconst isHalf = props.type === DonutType.Half;\n\nconst tooltip = {\n [Donut.selectors.segment]: (d: any) => {\n return `<div class='flex items-center'><div class='w-2 h-2 rounded-full mr-2' style='background-color: ${\n props.labels[d.index].color\n } ;'></div>\n <div>${d.data}</div>\n </vistooltip>\n </vissinglecontainer>\n </div>`;\n },\n};\n</script>\n\n<template>\n <div class=\"flex items-center justify-center\">\n <VisSingleContainer\n :data=\"data\"\n :height=\"height\"\n :margin=\"{}\"\n >\n <VisTooltip\n :horizontal-shift=\"20\"\n :vertical-shift=\"20\"\n :triggers=\"tooltip\"\n />\n\n <VisDonut\n :value=\"value\"\n :corner-radius=\"radius\"\n :color=\"props.labels.map((l) => l.color)\"\n :angle-range=\"isHalf ? [-1.5707963267948966, 1.5707963267948966] : []\"\n />\n </VisSingleContainer>\n\n <slot />\n </div>\n\n <div v-if=\"!hidePagination\" class=\"flex items-center justify-center mt-4\">\n <VisBulletLegend :items=\"labels\" />\n </div>\n</template>\n"],"names":["props","__props","value","d","isHalf","DonutType","tooltip","Donut"],"mappings":";;;;;;;;;;;;;;;;;;AAUA,UAAMA,IAAQC,GAERC,IAAQ,CAACC,MAAcA,GAEvBC,IAASJ,EAAM,SAASK,EAAU,MAElCC,IAAU;AAAA,MACd,CAACC,EAAM,UAAU,OAAO,GAAG,CAACJ,MACnB,kGACLH,EAAM,OAAOG,EAAE,KAAK,EAAE,KACxB;AAAA,eACWA,EAAE,IAAI;AAAA;AAAA;AAAA;AAAA,IAKrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,14 +1,5 @@
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
- };
1
+ import { DonutChartProps } from '.';
2
+
12
3
  declare function __VLS_template(): {
13
4
  default?(_: {}): any;
14
5
  };
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(l=>(l.Half="half",l.Full="full",l))(e||{});exports.DonutType=e;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/Donut/index.ts"],"sourcesContent":["export { default as DonutChart } from \"./DonutChart.vue\";\n\ntype DonutChartProps = {\n type?: string;\n data: number[];\n height: number;\n radius: number;\n hidePagination?: boolean;\n labels: {\n name: string;\n color: string;\n }[];\n};\n\nenum DonutType {\n Half = \"half\",\n Full = \"full\",\n}\n\nexport { type DonutChartProps, DonutType };\n"],"names":["DonutType"],"mappings":"gFAcK,IAAAA,GAAAA,IACHA,EAAA,KAAO,OACPA,EAAA,KAAO,OAFJA,IAAAA,GAAA,CAAA,CAAA"}
@@ -1 +1,17 @@
1
1
  export { default as DonutChart } from './DonutChart.vue';
2
+ type DonutChartProps = {
3
+ type?: string;
4
+ data: number[];
5
+ height: number;
6
+ radius: number;
7
+ hidePagination?: boolean;
8
+ labels: {
9
+ name: string;
10
+ color: string;
11
+ }[];
12
+ };
13
+ declare enum DonutType {
14
+ Half = "half",
15
+ Full = "full"
16
+ }
17
+ export { type DonutChartProps, DonutType };
@@ -0,0 +1,5 @@
1
+ var r = /* @__PURE__ */ ((l) => (l.Half = "half", l.Full = "full", l))(r || {});
2
+ export {
3
+ r as DonutType
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Donut/index.ts"],"sourcesContent":["export { default as DonutChart } from \"./DonutChart.vue\";\n\ntype DonutChartProps = {\n type?: string;\n data: number[];\n height: number;\n radius: number;\n hidePagination?: boolean;\n labels: {\n name: string;\n color: string;\n }[];\n};\n\nenum DonutType {\n Half = \"half\",\n Full = \"full\",\n}\n\nexport { type DonutChartProps, DonutType };\n"],"names":["DonutType"],"mappings":"AAcK,IAAAA,sBAAAA,OACHA,EAAA,OAAO,QACPA,EAAA,OAAO,QAFJA,IAAAA,KAAA,CAAA,CAAA;"}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@unovis/ts"),u=require("./components/Area/AreaChart.cjs"),_=require("./components/AreaStacked/AreaStackedChart.cjs"),a=require("./components/Line/LineChart.cjs"),s=require("./components/Bar/BarChart.cjs"),p=require("./components/Donut/DonutChart.cjs"),n=require("./components/Crosshair/Crosshair.cjs");var t=(e=>(e.Top="top",e.Bottom="bottom",e))(t||{});Object.defineProperty(exports,"CurveType",{enumerable:!0,get:()=>r.CurveType});exports.AreaChart=u.default;exports.AreaStackedChart=_.default;exports.LineChart=a.default;exports.BarChart=s.default;exports.DonutChart=p.default;exports.Crosshair=n.default;exports.PaginationPosition=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@unovis/ts"),u=require("./components/Area/AreaChart.cjs"),_=require("./components/AreaStacked/AreaStackedChart.cjs"),a=require("./components/Line/LineChart.cjs"),n=require("./components/Bar/BarChart.cjs"),i=require("./components/Donut/DonutChart.cjs"),o=require("./components/Crosshair/Crosshair.cjs"),s=require("./components/Donut/index.cjs");var r=(e=>(e.Top="top",e.Bottom="bottom",e))(r||{});Object.defineProperty(exports,"CurveType",{enumerable:!0,get:()=>t.CurveType});Object.defineProperty(exports,"Orientation",{enumerable:!0,get:()=>t.Orientation});Object.defineProperty(exports,"Position",{enumerable:!0,get:()=>t.Position});exports.AreaChart=u.default;exports.AreaStackedChart=_.default;exports.LineChart=a.default;exports.BarChart=n.default;exports.DonutChart=i.default;exports.Crosshair=o.default;exports.DonutType=s.DonutType;exports.PaginationPosition=r;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["export * from \"./components\";\n\nexport enum PaginationPosition {\n Top = \"top\",\n Bottom = \"bottom\",\n }\n\n// Re-export from @unovis/ts directly to prevent module resolution issues\nexport { CurveType, type BulletLegendItemInterface } from '@unovis/ts'"],"names":["PaginationPosition"],"mappings":"+YAEY,IAAAA,GAAAA,IACRA,EAAA,IAAM,MACNA,EAAA,OAAS,SAFDA,IAAAA,GAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["export * from \"./components\";\n\nexport enum PaginationPosition {\n Top = \"top\",\n Bottom = \"bottom\",\n }\n\nexport { CurveType, type BulletLegendItemInterface, Position, Orientation } from '@unovis/ts'"],"names":["PaginationPosition"],"mappings":"ybAEY,IAAAA,GAAAA,IACRA,EAAA,IAAM,MACNA,EAAA,OAAS,SAFDA,IAAAA,GAAA,CAAA,CAAA"}
package/dist/index.d.ts CHANGED
@@ -3,4 +3,4 @@ export declare enum PaginationPosition {
3
3
  Top = "top",
4
4
  Bottom = "bottom"
5
5
  }
6
- export { CurveType, type BulletLegendItemInterface } from '@unovis/ts';
6
+ export { CurveType, type BulletLegendItemInterface, Position, Orientation } from '@unovis/ts';
package/dist/index.js CHANGED
@@ -1,19 +1,23 @@
1
- import { CurveType as o } from "@unovis/ts";
2
- import { default as p } from "./components/Area/AreaChart.js";
3
- import { default as u } from "./components/AreaStacked/AreaStackedChart.js";
4
- import { default as d } from "./components/Line/LineChart.js";
5
- import { default as C } from "./components/Bar/BarChart.js";
6
- import { default as l } from "./components/Donut/DonutChart.js";
7
- import { default as A } from "./components/Crosshair/Crosshair.js";
1
+ import { CurveType as a, Orientation as f, Position as p } from "@unovis/ts";
2
+ import { default as u } from "./components/Area/AreaChart.js";
3
+ import { default as s } from "./components/AreaStacked/AreaStackedChart.js";
4
+ import { default as C } from "./components/Line/LineChart.js";
5
+ import { default as l } from "./components/Bar/BarChart.js";
6
+ import { default as T } from "./components/Donut/DonutChart.js";
7
+ import { default as v } from "./components/Crosshair/Crosshair.js";
8
+ import { DonutType as A } from "./components/Donut/index.js";
8
9
  var t = /* @__PURE__ */ ((r) => (r.Top = "top", r.Bottom = "bottom", r))(t || {});
9
10
  export {
10
- p as AreaChart,
11
- u as AreaStackedChart,
12
- C as BarChart,
13
- A as Crosshair,
14
- o as CurveType,
15
- l as DonutChart,
16
- d as LineChart,
17
- t as PaginationPosition
11
+ u as AreaChart,
12
+ s as AreaStackedChart,
13
+ l as BarChart,
14
+ v as Crosshair,
15
+ a as CurveType,
16
+ T as DonutChart,
17
+ A as DonutType,
18
+ C as LineChart,
19
+ f as Orientation,
20
+ t as PaginationPosition,
21
+ p as Position
18
22
  };
19
23
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["export * from \"./components\";\n\nexport enum PaginationPosition {\n Top = \"top\",\n Bottom = \"bottom\",\n }\n\n// Re-export from @unovis/ts directly to prevent module resolution issues\nexport { CurveType, type BulletLegendItemInterface } from '@unovis/ts'"],"names":["PaginationPosition"],"mappings":";;;;;;;AAEY,IAAAA,sBAAAA,OACRA,EAAA,MAAM,OACNA,EAAA,SAAS,UAFDA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["export * from \"./components\";\n\nexport enum PaginationPosition {\n Top = \"top\",\n Bottom = \"bottom\",\n }\n\nexport { CurveType, type BulletLegendItemInterface, Position, Orientation } from '@unovis/ts'"],"names":["PaginationPosition"],"mappings":";;;;;;;;AAEY,IAAAA,sBAAAA,OACRA,EAAA,MAAM,OACNA,EAAA,SAAS,UAFDA,IAAAA,KAAA,CAAA,CAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-chrts",
3
- "version": "0.0.170",
3
+ "version": "0.1.0-beta.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist"
@@ -51,5 +51,6 @@
51
51
  "vite-plugin-dts": "^3.9.1",
52
52
  "vue-router": "^4.5.0",
53
53
  "vue-tsc": "^2.2.0"
54
- }
54
+ },
55
+ "packageManager": "pnpm@8.15.4+sha256.cea6d0bdf2de3a0549582da3983c70c92ffc577ff4410cbf190817ddc35137c2"
55
56
  }