vue-chrts 0.0.51 → 0.0.52

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/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "vue-chrts",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
8
- "main": "./dist/vue-chrts.js",
9
- "module": "./dist/vue-chrts.js",
8
+ "main": "./dist/vue-chrts.udm.js",
9
+ "module": "./dist/vue-chrts.es.js",
10
10
  "exports": {
11
11
  ".": {
12
12
  "types": "./dist/index.d.ts",
13
- "import": "./dist/vue-chrts.js",
13
+ "import": "./dist/vue-chrts.es.js",
14
14
  "require": "./dist/vue-chrts.umd.cjs"
15
15
  }
16
16
  },
@@ -1,19 +0,0 @@
1
- declare const _default: <T extends Record<string, any>>(__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
- xNumTicks?: number;
5
- yNumTicks?: number;
6
- }, keyof import('vue').VNodeProps | keyof import('vue').AllowedComponentProps>> & {} & (import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps);
7
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
8
- attrs: any;
9
- slots: ReturnType<() => {}>;
10
- emit: typeof __VLS_emit;
11
- }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
12
- [key: string]: any;
13
- }> & {
14
- __ctx?: Awaited<typeof __VLS_setup>;
15
- };
16
- export default _default;
17
- type __VLS_Prettify<T> = {
18
- [K in keyof T]: T[K];
19
- } & {};
@@ -1,5 +0,0 @@
1
- export { default as Area } from './Area.vue';
2
- export declare enum PaginationPosition {
3
- Top = "top",
4
- Bottom = "bottom"
5
- }
@@ -1,24 +0,0 @@
1
- export interface ButtonProps {
2
- variant?: 'primary' | 'secondary';
3
- size?: 'small' | 'medium' | 'large';
4
- }
5
- declare function __VLS_template(): {
6
- default?(_: {}): any;
7
- };
8
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ButtonProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ButtonProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
10
- export default _default;
11
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
- type __VLS_TypePropsToRuntimeProps<T> = {
13
- [K in keyof T]-?: {} extends Pick<T, K> ? {
14
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
- } : {
16
- type: import('vue').PropType<T[K]>;
17
- required: true;
18
- };
19
- };
20
- type __VLS_WithTemplateSlots<T, S> = T & {
21
- new (): {
22
- $slots: S;
23
- };
24
- };
@@ -1,2 +0,0 @@
1
- export { default as Button } from './Button.vue';
2
- export type { ButtonProps } from './Button.vue';
@@ -1 +0,0 @@
1
- export { default as Tooltip } from './Tooltip.vue';
@@ -1,27 +0,0 @@
1
- import { BulletLegendItemInterface } from '@unovis/ts';
2
-
3
- export declare const categories1: Record<string, BulletLegendItemInterface>;
4
- export declare const categories2: Record<string, BulletLegendItemInterface>;
5
- export declare const categories3: Record<string, BulletLegendItemInterface>;
6
- export declare const categories4: Record<string, BulletLegendItemInterface>;
7
- export declare const categories5: Record<string, BulletLegendItemInterface>;
8
- export interface AreaChartItem1 {
9
- date: string;
10
- desktop: number;
11
- mobile: number;
12
- }
13
- export declare const AreaChartData1: AreaChartItem1[];
14
- export interface AreaChartItem2 {
15
- hour: string;
16
- temperature: number;
17
- }
18
- export declare const AreaChartData2: AreaChartItem2[];
19
- export declare const AreaChartData3: {
20
- time: string;
21
- returning: number;
22
- firstTime: number;
23
- }[];
24
- export declare const AreaChartData4: {
25
- month: string;
26
- desktop: number;
27
- }[];
@@ -1,8 +0,0 @@
1
- export interface ElectionDatum {
2
- year: number;
3
- democrat: number;
4
- republican: number;
5
- other: number;
6
- }
7
- export declare function capitalize(s: string): string;
8
- export declare const BarChartData: ElectionDatum[];
@@ -1,23 +0,0 @@
1
- import { BulletLegendItemInterface } from '@unovis/ts';
2
-
3
- export interface IncomeExpenseItem {
4
- month: string;
5
- year: number;
6
- income: {
7
- salary: number;
8
- sideHustle: number;
9
- total: number;
10
- };
11
- expenses: {
12
- rent: number;
13
- groceries: number;
14
- utilities: number;
15
- transportation: number;
16
- entertainment: number;
17
- eatingOut: number;
18
- other: number;
19
- total: number;
20
- };
21
- }
22
- export declare const categories: Record<string, BulletLegendItemInterface>;
23
- export declare const IncomeExpenseData: IncomeExpenseItem[];
@@ -1,9 +0,0 @@
1
- import { BulletLegendItemInterface } from '@unovis/ts';
2
-
3
- export declare const categories: Record<string, BulletLegendItemInterface>;
4
- export declare const InvestmentData: {
5
- date: string;
6
- 'ETF Shares Vital': number;
7
- 'Vitainvest Core': number;
8
- 'iShares Tech Growth': number;
9
- }[];
@@ -1,11 +0,0 @@
1
- import { BulletLegendItemInterface } from '@unovis/ts';
2
-
3
- export declare const categories: Record<string, BulletLegendItemInterface>;
4
- export declare const RevenueData: {
5
- date: string;
6
- value: number;
7
- }[];
8
- export declare const RevenueDataSmall: {
9
- date: string;
10
- value: number;
11
- }[];
@@ -1,5 +0,0 @@
1
- export interface IVisitorsData {
2
- date: Date;
3
- visitors: number;
4
- }
5
- export declare const VisitorsData: IVisitorsData[];
package/dist/index.cjs DELETED
@@ -1,92 +0,0 @@
1
- (function(global, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("vue/server-renderer"), require("@unovis/vue")) : typeof define === "function" && define.amd ? define(["exports", "vue", "vue/server-renderer", "@unovis/vue"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["vue-chrts"] = {}, global.Vue, global.serverRenderer, global.vue$1));
3
- })(this, function(exports2, vue, serverRenderer, vue$1) {
4
- "use strict";
5
- const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
6
- __name: "Area",
7
- __ssrInlineRender: true,
8
- props: {
9
- data: {},
10
- xNumTicks: { default: (props) => props.data.length > 24 ? 24 / 4 : props.data.length - 1 },
11
- yNumTicks: { default: (props) => props.data.length > 24 ? 24 / 4 : props.data.length - 1 }
12
- },
13
- setup(__props) {
14
- return (_ctx, _push, _parent, _attrs) => {
15
- _push(serverRenderer.ssrRenderComponent(vue.unref(vue$1.VisXYContainer), vue.mergeProps({ height: 600 }, _attrs), {
16
- default: vue.withCtx((_, _push2, _parent2, _scopeId) => {
17
- if (_push2) {
18
- _push2(serverRenderer.ssrRenderComponent(vue.unref(vue$1.VisLine), {
19
- data: _ctx.data,
20
- x: (d) => d.x,
21
- y: (d) => d.y
22
- }, null, _parent2, _scopeId));
23
- _push2(serverRenderer.ssrRenderComponent(vue.unref(vue$1.VisAxis), { type: "x" }, null, _parent2, _scopeId));
24
- _push2(serverRenderer.ssrRenderComponent(vue.unref(vue$1.VisAxis), { type: "y" }, null, _parent2, _scopeId));
25
- } else {
26
- return [
27
- vue.createVNode(vue.unref(vue$1.VisLine), {
28
- data: _ctx.data,
29
- x: (d) => d.x,
30
- y: (d) => d.y
31
- }, null, 8, ["data", "x", "y"]),
32
- vue.createVNode(vue.unref(vue$1.VisAxis), { type: "x" }),
33
- vue.createVNode(vue.unref(vue$1.VisAxis), { type: "y" })
34
- ];
35
- }
36
- }),
37
- _: 1
38
- }, _parent));
39
- };
40
- }
41
- });
42
- const _sfc_setup$1 = _sfc_main$1.setup;
43
- _sfc_main$1.setup = (props, ctx) => {
44
- const ssrContext = vue.useSSRContext();
45
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Area/Area.vue");
46
- return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
47
- };
48
- var PaginationPosition = /* @__PURE__ */ ((PaginationPosition2) => {
49
- PaginationPosition2["Top"] = "top";
50
- PaginationPosition2["Bottom"] = "bottom";
51
- return PaginationPosition2;
52
- })(PaginationPosition || {});
53
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
54
- __name: "Button",
55
- __ssrInlineRender: true,
56
- props: {
57
- variant: {},
58
- size: {}
59
- },
60
- setup(__props) {
61
- return (_ctx, _push, _parent, _attrs) => {
62
- _push(`<button${serverRenderer.ssrRenderAttrs(vue.mergeProps({
63
- class: [
64
- "button",
65
- `button--${_ctx.variant || "primary"}`,
66
- `button--${_ctx.size || "medium"}`
67
- ]
68
- }, _attrs))} data-v-52b6ec0c>`);
69
- serverRenderer.ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
70
- _push(`</button>`);
71
- };
72
- }
73
- });
74
- const _export_sfc = (sfc, props) => {
75
- const target = sfc.__vccOpts || sfc;
76
- for (const [key, val] of props) {
77
- target[key] = val;
78
- }
79
- return target;
80
- };
81
- const _sfc_setup = _sfc_main.setup;
82
- _sfc_main.setup = (props, ctx) => {
83
- const ssrContext = vue.useSSRContext();
84
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Button/Button.vue");
85
- return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
86
- };
87
- const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-52b6ec0c"]]);
88
- exports2.Area = _sfc_main$1;
89
- exports2.Button = Button;
90
- exports2.PaginationPosition = PaginationPosition;
91
- Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
92
- });
package/dist/index.js DELETED
@@ -1,91 +0,0 @@
1
- import { defineComponent, unref, mergeProps, withCtx, createVNode, useSSRContext } from "vue";
2
- import { ssrRenderComponent, ssrRenderAttrs, ssrRenderSlot } from "vue/server-renderer";
3
- import { VisXYContainer, VisLine, VisAxis } from "@unovis/vue";
4
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5
- __name: "Area",
6
- __ssrInlineRender: true,
7
- props: {
8
- data: {},
9
- xNumTicks: { default: (props) => props.data.length > 24 ? 24 / 4 : props.data.length - 1 },
10
- yNumTicks: { default: (props) => props.data.length > 24 ? 24 / 4 : props.data.length - 1 }
11
- },
12
- setup(__props) {
13
- return (_ctx, _push, _parent, _attrs) => {
14
- _push(ssrRenderComponent(unref(VisXYContainer), mergeProps({ height: 600 }, _attrs), {
15
- default: withCtx((_, _push2, _parent2, _scopeId) => {
16
- if (_push2) {
17
- _push2(ssrRenderComponent(unref(VisLine), {
18
- data: _ctx.data,
19
- x: (d) => d.x,
20
- y: (d) => d.y
21
- }, null, _parent2, _scopeId));
22
- _push2(ssrRenderComponent(unref(VisAxis), { type: "x" }, null, _parent2, _scopeId));
23
- _push2(ssrRenderComponent(unref(VisAxis), { type: "y" }, null, _parent2, _scopeId));
24
- } else {
25
- return [
26
- createVNode(unref(VisLine), {
27
- data: _ctx.data,
28
- x: (d) => d.x,
29
- y: (d) => d.y
30
- }, null, 8, ["data", "x", "y"]),
31
- createVNode(unref(VisAxis), { type: "x" }),
32
- createVNode(unref(VisAxis), { type: "y" })
33
- ];
34
- }
35
- }),
36
- _: 1
37
- }, _parent));
38
- };
39
- }
40
- });
41
- const _sfc_setup$1 = _sfc_main$1.setup;
42
- _sfc_main$1.setup = (props, ctx) => {
43
- const ssrContext = useSSRContext();
44
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Area/Area.vue");
45
- return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
46
- };
47
- var PaginationPosition = /* @__PURE__ */ ((PaginationPosition2) => {
48
- PaginationPosition2["Top"] = "top";
49
- PaginationPosition2["Bottom"] = "bottom";
50
- return PaginationPosition2;
51
- })(PaginationPosition || {});
52
- const _sfc_main = /* @__PURE__ */ defineComponent({
53
- __name: "Button",
54
- __ssrInlineRender: true,
55
- props: {
56
- variant: {},
57
- size: {}
58
- },
59
- setup(__props) {
60
- return (_ctx, _push, _parent, _attrs) => {
61
- _push(`<button${ssrRenderAttrs(mergeProps({
62
- class: [
63
- "button",
64
- `button--${_ctx.variant || "primary"}`,
65
- `button--${_ctx.size || "medium"}`
66
- ]
67
- }, _attrs))} data-v-52b6ec0c>`);
68
- ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
69
- _push(`</button>`);
70
- };
71
- }
72
- });
73
- const _export_sfc = (sfc, props) => {
74
- const target = sfc.__vccOpts || sfc;
75
- for (const [key, val] of props) {
76
- target[key] = val;
77
- }
78
- return target;
79
- };
80
- const _sfc_setup = _sfc_main.setup;
81
- _sfc_main.setup = (props, ctx) => {
82
- const ssrContext = useSSRContext();
83
- (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Button/Button.vue");
84
- return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
85
- };
86
- const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-52b6ec0c"]]);
87
- export {
88
- _sfc_main$1 as Area,
89
- Button,
90
- PaginationPosition
91
- };