vue-chrts 0.0.56 → 0.0.58
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/dist/index.js +79 -78
- package/dist/index.mjs +79 -0
- package/package.json +2 -5
- package/dist/index.cjs +0 -80
package/dist/index.js
CHANGED
|
@@ -1,79 +1,80 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
_push2
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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(` 123123123 `);
|
|
19
|
+
} else {
|
|
20
|
+
return [
|
|
21
|
+
vue.createTextVNode(" 123123123 ")
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
}),
|
|
25
|
+
_: 1
|
|
26
|
+
}, _parent));
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
31
|
+
_sfc_main$1.setup = (props, ctx) => {
|
|
32
|
+
const ssrContext = vue.useSSRContext();
|
|
33
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Area/Area.vue");
|
|
34
|
+
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
35
|
+
};
|
|
36
|
+
var PaginationPosition = /* @__PURE__ */ ((PaginationPosition2) => {
|
|
37
|
+
PaginationPosition2["Top"] = "top";
|
|
38
|
+
PaginationPosition2["Bottom"] = "bottom";
|
|
39
|
+
return PaginationPosition2;
|
|
40
|
+
})(PaginationPosition || {});
|
|
41
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
42
|
+
__name: "Button",
|
|
43
|
+
__ssrInlineRender: true,
|
|
44
|
+
props: {
|
|
45
|
+
variant: {},
|
|
46
|
+
size: {}
|
|
47
|
+
},
|
|
48
|
+
setup(__props) {
|
|
49
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
50
|
+
_push(`<button${serverRenderer.ssrRenderAttrs(vue.mergeProps({
|
|
51
|
+
class: [
|
|
52
|
+
"button",
|
|
53
|
+
`button--${_ctx.variant || "primary"}`,
|
|
54
|
+
`button--${_ctx.size || "medium"}`
|
|
55
|
+
]
|
|
56
|
+
}, _attrs))} data-v-52b6ec0c>`);
|
|
57
|
+
serverRenderer.ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
|
|
58
|
+
_push(`</button>`);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const _export_sfc = (sfc, props) => {
|
|
63
|
+
const target = sfc.__vccOpts || sfc;
|
|
64
|
+
for (const [key, val] of props) {
|
|
65
|
+
target[key] = val;
|
|
66
|
+
}
|
|
67
|
+
return target;
|
|
68
|
+
};
|
|
69
|
+
const _sfc_setup = _sfc_main.setup;
|
|
70
|
+
_sfc_main.setup = (props, ctx) => {
|
|
71
|
+
const ssrContext = vue.useSSRContext();
|
|
72
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Button/Button.vue");
|
|
73
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
74
|
+
};
|
|
75
|
+
const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-52b6ec0c"]]);
|
|
76
|
+
exports2.Area = _sfc_main$1;
|
|
77
|
+
exports2.Button = Button;
|
|
78
|
+
exports2.PaginationPosition = PaginationPosition;
|
|
79
|
+
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
28
80
|
});
|
|
29
|
-
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
30
|
-
_sfc_main$1.setup = (props, ctx) => {
|
|
31
|
-
const ssrContext = useSSRContext();
|
|
32
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Area/Area.vue");
|
|
33
|
-
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
34
|
-
};
|
|
35
|
-
var PaginationPosition = /* @__PURE__ */ ((PaginationPosition2) => {
|
|
36
|
-
PaginationPosition2["Top"] = "top";
|
|
37
|
-
PaginationPosition2["Bottom"] = "bottom";
|
|
38
|
-
return PaginationPosition2;
|
|
39
|
-
})(PaginationPosition || {});
|
|
40
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
|
-
__name: "Button",
|
|
42
|
-
__ssrInlineRender: true,
|
|
43
|
-
props: {
|
|
44
|
-
variant: {},
|
|
45
|
-
size: {}
|
|
46
|
-
},
|
|
47
|
-
setup(__props) {
|
|
48
|
-
return (_ctx, _push, _parent, _attrs) => {
|
|
49
|
-
_push(`<button${ssrRenderAttrs(mergeProps({
|
|
50
|
-
class: [
|
|
51
|
-
"button",
|
|
52
|
-
`button--${_ctx.variant || "primary"}`,
|
|
53
|
-
`button--${_ctx.size || "medium"}`
|
|
54
|
-
]
|
|
55
|
-
}, _attrs))} data-v-52b6ec0c>`);
|
|
56
|
-
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
|
|
57
|
-
_push(`</button>`);
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
const _export_sfc = (sfc, props) => {
|
|
62
|
-
const target = sfc.__vccOpts || sfc;
|
|
63
|
-
for (const [key, val] of props) {
|
|
64
|
-
target[key] = val;
|
|
65
|
-
}
|
|
66
|
-
return target;
|
|
67
|
-
};
|
|
68
|
-
const _sfc_setup = _sfc_main.setup;
|
|
69
|
-
_sfc_main.setup = (props, ctx) => {
|
|
70
|
-
const ssrContext = useSSRContext();
|
|
71
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Button/Button.vue");
|
|
72
|
-
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
73
|
-
};
|
|
74
|
-
const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-52b6ec0c"]]);
|
|
75
|
-
export {
|
|
76
|
-
_sfc_main$1 as Area,
|
|
77
|
-
Button,
|
|
78
|
-
PaginationPosition
|
|
79
|
-
};
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { defineComponent, unref, mergeProps, withCtx, createTextVNode, useSSRContext } from "vue";
|
|
2
|
+
import { ssrRenderComponent, ssrRenderAttrs, ssrRenderSlot } from "vue/server-renderer";
|
|
3
|
+
import { VisXYContainer } 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(` 123123123 `);
|
|
18
|
+
} else {
|
|
19
|
+
return [
|
|
20
|
+
createTextVNode(" 123123123 ")
|
|
21
|
+
];
|
|
22
|
+
}
|
|
23
|
+
}),
|
|
24
|
+
_: 1
|
|
25
|
+
}, _parent));
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
30
|
+
_sfc_main$1.setup = (props, ctx) => {
|
|
31
|
+
const ssrContext = useSSRContext();
|
|
32
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Area/Area.vue");
|
|
33
|
+
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
34
|
+
};
|
|
35
|
+
var PaginationPosition = /* @__PURE__ */ ((PaginationPosition2) => {
|
|
36
|
+
PaginationPosition2["Top"] = "top";
|
|
37
|
+
PaginationPosition2["Bottom"] = "bottom";
|
|
38
|
+
return PaginationPosition2;
|
|
39
|
+
})(PaginationPosition || {});
|
|
40
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
|
+
__name: "Button",
|
|
42
|
+
__ssrInlineRender: true,
|
|
43
|
+
props: {
|
|
44
|
+
variant: {},
|
|
45
|
+
size: {}
|
|
46
|
+
},
|
|
47
|
+
setup(__props) {
|
|
48
|
+
return (_ctx, _push, _parent, _attrs) => {
|
|
49
|
+
_push(`<button${ssrRenderAttrs(mergeProps({
|
|
50
|
+
class: [
|
|
51
|
+
"button",
|
|
52
|
+
`button--${_ctx.variant || "primary"}`,
|
|
53
|
+
`button--${_ctx.size || "medium"}`
|
|
54
|
+
]
|
|
55
|
+
}, _attrs))} data-v-52b6ec0c>`);
|
|
56
|
+
ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
|
|
57
|
+
_push(`</button>`);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
const _export_sfc = (sfc, props) => {
|
|
62
|
+
const target = sfc.__vccOpts || sfc;
|
|
63
|
+
for (const [key, val] of props) {
|
|
64
|
+
target[key] = val;
|
|
65
|
+
}
|
|
66
|
+
return target;
|
|
67
|
+
};
|
|
68
|
+
const _sfc_setup = _sfc_main.setup;
|
|
69
|
+
_sfc_main.setup = (props, ctx) => {
|
|
70
|
+
const ssrContext = useSSRContext();
|
|
71
|
+
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Button/Button.vue");
|
|
72
|
+
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
73
|
+
};
|
|
74
|
+
const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-52b6ec0c"]]);
|
|
75
|
+
export {
|
|
76
|
+
_sfc_main$1 as Area,
|
|
77
|
+
Button,
|
|
78
|
+
PaginationPosition
|
|
79
|
+
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-chrts",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"type": "module",
|
|
3
|
+
"version": "0.0.58",
|
|
5
4
|
"files": [
|
|
6
5
|
"dist"
|
|
7
6
|
],
|
|
8
|
-
"main": "./dist/vue-chrts.es.js",
|
|
9
7
|
"module": "./dist/vue-chrts.es.js",
|
|
10
8
|
"exports": {
|
|
11
9
|
".": {
|
|
12
10
|
"types": "./dist/index.d.ts",
|
|
13
|
-
"import": "./dist/vue-chrts.es.js"
|
|
14
|
-
"require": "./dist/vue-chrts.umd.cjs"
|
|
11
|
+
"import": "./dist/vue-chrts.es.js"
|
|
15
12
|
}
|
|
16
13
|
},
|
|
17
14
|
"types": "./dist/index.d.ts",
|
package/dist/index.cjs
DELETED
|
@@ -1,80 +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(` 123123123 `);
|
|
19
|
-
} else {
|
|
20
|
-
return [
|
|
21
|
-
vue.createTextVNode(" 123123123 ")
|
|
22
|
-
];
|
|
23
|
-
}
|
|
24
|
-
}),
|
|
25
|
-
_: 1
|
|
26
|
-
}, _parent));
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
const _sfc_setup$1 = _sfc_main$1.setup;
|
|
31
|
-
_sfc_main$1.setup = (props, ctx) => {
|
|
32
|
-
const ssrContext = vue.useSSRContext();
|
|
33
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Area/Area.vue");
|
|
34
|
-
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
35
|
-
};
|
|
36
|
-
var PaginationPosition = /* @__PURE__ */ ((PaginationPosition2) => {
|
|
37
|
-
PaginationPosition2["Top"] = "top";
|
|
38
|
-
PaginationPosition2["Bottom"] = "bottom";
|
|
39
|
-
return PaginationPosition2;
|
|
40
|
-
})(PaginationPosition || {});
|
|
41
|
-
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
42
|
-
__name: "Button",
|
|
43
|
-
__ssrInlineRender: true,
|
|
44
|
-
props: {
|
|
45
|
-
variant: {},
|
|
46
|
-
size: {}
|
|
47
|
-
},
|
|
48
|
-
setup(__props) {
|
|
49
|
-
return (_ctx, _push, _parent, _attrs) => {
|
|
50
|
-
_push(`<button${serverRenderer.ssrRenderAttrs(vue.mergeProps({
|
|
51
|
-
class: [
|
|
52
|
-
"button",
|
|
53
|
-
`button--${_ctx.variant || "primary"}`,
|
|
54
|
-
`button--${_ctx.size || "medium"}`
|
|
55
|
-
]
|
|
56
|
-
}, _attrs))} data-v-52b6ec0c>`);
|
|
57
|
-
serverRenderer.ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent);
|
|
58
|
-
_push(`</button>`);
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
const _export_sfc = (sfc, props) => {
|
|
63
|
-
const target = sfc.__vccOpts || sfc;
|
|
64
|
-
for (const [key, val] of props) {
|
|
65
|
-
target[key] = val;
|
|
66
|
-
}
|
|
67
|
-
return target;
|
|
68
|
-
};
|
|
69
|
-
const _sfc_setup = _sfc_main.setup;
|
|
70
|
-
_sfc_main.setup = (props, ctx) => {
|
|
71
|
-
const ssrContext = vue.useSSRContext();
|
|
72
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("src/components/Button/Button.vue");
|
|
73
|
-
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
74
|
-
};
|
|
75
|
-
const Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-52b6ec0c"]]);
|
|
76
|
-
exports2.Area = _sfc_main$1;
|
|
77
|
-
exports2.Button = Button;
|
|
78
|
-
exports2.PaginationPosition = PaginationPosition;
|
|
79
|
-
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
80
|
-
});
|