@flowtools/uplot 0.0.11 → 0.0.12
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 +1 -1
- package/dist/index.es.js +44 -44
- package/dist/index.umd.js +1 -1
- package/dist/src/App.vue.d.ts +2 -0
- package/dist/src/components/uplot.vue.d.ts +41 -59
- package/dist/vite.config.d.ts +1 -1
- package/package.json +18 -18
- /package/dist/{style.css → uplot.css} +0 -0
package/README.md
CHANGED
|
@@ -14,9 +14,9 @@ pnpm add @flowtools/uplot uplot @vueuse/core
|
|
|
14
14
|
|
|
15
15
|
```vue
|
|
16
16
|
<script setup lang="ts">
|
|
17
|
-
import { ref } from 'vue'
|
|
18
17
|
import type { AlignedData, Options } from '@flowtools/uplot'
|
|
19
18
|
import { Uplot } from '@flowtools/uplot'
|
|
19
|
+
import { ref } from 'vue'
|
|
20
20
|
|
|
21
21
|
const options = ref<Options>({
|
|
22
22
|
series: [
|
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as F, ref as D, onMounted as N, watch as v, nextTick as P, openBlock as p, createElementBlock as u, renderSlot as j, unref as d, createElementVNode as y, createTextVNode as U, toDisplayString as h, createCommentVNode as S, Fragment as L, renderList as M, normalizeClass as R, normalizeStyle as C } from "vue";
|
|
2
|
-
import q from "
|
|
3
|
-
import
|
|
2
|
+
import { useElementSize as q, useVModel as T } from "@vueuse/core";
|
|
3
|
+
import G from "uplot";
|
|
4
4
|
function B(n) {
|
|
5
5
|
if (typeof n == "object" && n !== null) {
|
|
6
6
|
if (typeof Object.getPrototypeOf == "function") {
|
|
@@ -37,13 +37,13 @@ c.withOptions = (n, ...r) => {
|
|
|
37
37
|
const H = { class: "__uplot-root" }, I = {
|
|
38
38
|
key: 0,
|
|
39
39
|
class: "extra-info"
|
|
40
|
-
}, J =
|
|
40
|
+
}, J = { style: { "text-align": "left" } }, K = { class: "__uplot-legend" }, Q = ["onClick"], W = {
|
|
41
41
|
key: 1,
|
|
42
42
|
class: "__uplot-legend-value"
|
|
43
|
-
},
|
|
43
|
+
}, X = {
|
|
44
44
|
key: 2,
|
|
45
45
|
class: "__uplot-legend-value"
|
|
46
|
-
},
|
|
46
|
+
}, oe = /* @__PURE__ */ F({
|
|
47
47
|
__name: "uplot",
|
|
48
48
|
props: {
|
|
49
49
|
options: {},
|
|
@@ -56,7 +56,7 @@ const H = { class: "__uplot-root" }, I = {
|
|
|
56
56
|
},
|
|
57
57
|
emits: ["select", "cursor", "update:zoom", "update:series"],
|
|
58
58
|
setup(n, { expose: r, emit: a }) {
|
|
59
|
-
const o = n,
|
|
59
|
+
const o = n, g = a, b = D(), { width: w, height: x } = q(b), z = T(o, "zoom", g, { passive: !0 }), i = T(o, "series", g, { passive: !0 }), $ = {
|
|
60
60
|
title: void 0,
|
|
61
61
|
legend: {
|
|
62
62
|
show: !1
|
|
@@ -64,26 +64,26 @@ const H = { class: "__uplot-root" }, I = {
|
|
|
64
64
|
hooks: {
|
|
65
65
|
init: [
|
|
66
66
|
(e) => {
|
|
67
|
-
o.showDebug && console.log("init", e), i.value = e.series.map((
|
|
68
|
-
label:
|
|
69
|
-
stroke: typeof
|
|
67
|
+
o.showDebug && console.log("init", e), i.value = e.series.map((t, s) => ({
|
|
68
|
+
label: t.label,
|
|
69
|
+
stroke: typeof t.stroke == "function" ? t.stroke(e, s) : null,
|
|
70
70
|
value: null,
|
|
71
71
|
data: null,
|
|
72
|
-
show:
|
|
72
|
+
show: t.show
|
|
73
73
|
// ...s,
|
|
74
74
|
}));
|
|
75
75
|
}
|
|
76
76
|
],
|
|
77
77
|
setCursor: [
|
|
78
78
|
(e) => {
|
|
79
|
-
|
|
79
|
+
g("cursor", e.cursor), i.value = e.series.map((t, s) => {
|
|
80
80
|
var f, m;
|
|
81
81
|
return {
|
|
82
|
-
label:
|
|
83
|
-
stroke: typeof
|
|
84
|
-
value: e.cursor.idx && e.data[
|
|
85
|
-
data: (f = e.cursor) != null && f.idx ? e.data[
|
|
86
|
-
show:
|
|
82
|
+
label: t.label,
|
|
83
|
+
stroke: typeof t.stroke == "function" ? t.stroke(e, s) : null,
|
|
84
|
+
value: e.cursor.idx && e.data[s][e.cursor.idx] ? typeof t.value == "function" ? t.value(e, e.data[s][e.cursor.idx], s, e.cursor.idx) : e.data[s][e.cursor.idx] : null,
|
|
85
|
+
data: (f = e.cursor) != null && f.idx ? e.data[s][(m = e.cursor) == null ? void 0 : m.idx] : null,
|
|
86
|
+
show: t.show
|
|
87
87
|
// ...s,
|
|
88
88
|
};
|
|
89
89
|
});
|
|
@@ -91,7 +91,7 @@ const H = { class: "__uplot-root" }, I = {
|
|
|
91
91
|
],
|
|
92
92
|
setSelect: [
|
|
93
93
|
(e) => {
|
|
94
|
-
|
|
94
|
+
g("select", e.select), o.showDebug && console.log("setSelect", e.select), z.value = [
|
|
95
95
|
e.posToVal(e.select.left, "x"),
|
|
96
96
|
e.posToVal(e.select.left + e.select.width, "x")
|
|
97
97
|
];
|
|
@@ -107,10 +107,10 @@ const H = { class: "__uplot-root" }, I = {
|
|
|
107
107
|
]
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
|
-
let
|
|
110
|
+
let l;
|
|
111
111
|
const O = D();
|
|
112
112
|
function A() {
|
|
113
|
-
|
|
113
|
+
l && l.destroy(), l = new G({ width: 100, height: 100, ...c(o.options, $) }, o.data, b.value), O.value = l, o.zoom[0] !== null && o.zoom[1] !== null && l.setScale("x", { min: o.zoom[0], max: o.zoom[1] }), setTimeout(() => {
|
|
114
114
|
k();
|
|
115
115
|
}, 0);
|
|
116
116
|
}
|
|
@@ -122,26 +122,26 @@ const H = { class: "__uplot-root" }, I = {
|
|
|
122
122
|
});
|
|
123
123
|
}), v(o.data, (e) => {
|
|
124
124
|
if (o.noResetScale) {
|
|
125
|
-
|
|
125
|
+
l.setData(e, !1), l.redraw(!1);
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
}), v(o.options, (e,
|
|
130
|
-
o.showDebug && console.log("watch options", e,
|
|
128
|
+
l.setData(e, !0);
|
|
129
|
+
}), v(o.options, (e, t) => {
|
|
130
|
+
o.showDebug && console.log("watch options", e, t), A();
|
|
131
131
|
}), v(() => o.zoom, (e) => {
|
|
132
|
-
e[0] !== null && e[1] !== null && (
|
|
132
|
+
e[0] !== null && e[1] !== null && (l.scales.x.min !== e[0] || l.scales.x.max !== e[1]) && (console.log("watch zoom setScale", l.scales.x.min, e[0], l.scales.x.max, e[1]), l.setScale("x", { min: e[0], max: e[1] }));
|
|
133
133
|
});
|
|
134
134
|
function k() {
|
|
135
|
-
|
|
135
|
+
l.setSize({ width: w.value, height: x.value }), o.showDebug && console.log("resize", l);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
var
|
|
139
|
-
typeof e == "object" && (e = ((
|
|
137
|
+
function _(e) {
|
|
138
|
+
var t, s;
|
|
139
|
+
typeof e == "object" && (e = ((t = i.value) == null ? void 0 : t.indexOf(e)) || -1), l.setSeries(e, { show: !l.series[e].show }), (s = i.value) != null && s[e] && (i.value[e].show = l.series[e].show);
|
|
140
140
|
}
|
|
141
|
-
return r({ toggleShow:
|
|
141
|
+
return r({ toggleShow: _, uplot: O }), (e, t) => (p(), u("div", H, [
|
|
142
142
|
j(e.$slots, "header", {
|
|
143
143
|
series: d(i),
|
|
144
|
-
toggleShow:
|
|
144
|
+
toggleShow: _
|
|
145
145
|
}),
|
|
146
146
|
y("div", {
|
|
147
147
|
ref_key: "el",
|
|
@@ -150,30 +150,30 @@ const H = { class: "__uplot-root" }, I = {
|
|
|
150
150
|
}, null, 512),
|
|
151
151
|
e.showDebug ? (p(), u("div", I, [
|
|
152
152
|
U(h(d(w)) + " x " + h(d(x)) + " ", 1),
|
|
153
|
-
|
|
154
|
-
y("pre",
|
|
153
|
+
t[0] || (t[0] = y("br", null, null, -1)),
|
|
154
|
+
y("pre", J, h(d(i)), 1)
|
|
155
155
|
])) : S("", !0),
|
|
156
156
|
e.noFooter ? S("", !0) : j(e.$slots, "footer", {
|
|
157
157
|
key: 1,
|
|
158
158
|
series: d(i),
|
|
159
|
-
toggleShow:
|
|
159
|
+
toggleShow: _
|
|
160
160
|
}, () => [
|
|
161
|
-
y("div",
|
|
162
|
-
(p(!0), u(L, null, M(d(i), (
|
|
161
|
+
y("div", K, [
|
|
162
|
+
(p(!0), u(L, null, M(d(i), (s, f) => {
|
|
163
163
|
var m;
|
|
164
164
|
return p(), u("div", {
|
|
165
|
-
key:
|
|
166
|
-
class: R(["__uplot-legend-series", [`__uplot-${(m =
|
|
167
|
-
style: C({ backgroundColor:
|
|
168
|
-
onClick: (
|
|
165
|
+
key: s.label,
|
|
166
|
+
class: R(["__uplot-legend-series", [`__uplot-${(m = s.label) == null ? void 0 : m.toLowerCase()}`, `__uplot-i-${f}`]]),
|
|
167
|
+
style: C({ backgroundColor: s.show ? "" : "lightgrey" }),
|
|
168
|
+
onClick: (Y) => _(f)
|
|
169
169
|
}, [
|
|
170
170
|
f !== 0 ? (p(), u("span", {
|
|
171
171
|
key: 0,
|
|
172
|
-
style: C({ color:
|
|
172
|
+
style: C({ color: s.stroke || "black" }),
|
|
173
173
|
class: "__uplot-legend-label"
|
|
174
|
-
}, h(
|
|
175
|
-
|
|
176
|
-
], 14,
|
|
174
|
+
}, h(s.label), 5)) : S("", !0),
|
|
175
|
+
s.value ? (p(), u("span", W, h(s.value), 1)) : (p(), u("span", X, "--"))
|
|
176
|
+
], 14, Q);
|
|
177
177
|
}), 128))
|
|
178
178
|
])
|
|
179
179
|
])
|
|
@@ -181,5 +181,5 @@ const H = { class: "__uplot-root" }, I = {
|
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
export {
|
|
184
|
-
|
|
184
|
+
oe as Uplot
|
|
185
185
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(c,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("@vueuse/core"),require("uplot")):typeof define=="function"&&define.amd?define(["exports","vue","@vueuse/core","uplot"],o):(c=typeof globalThis<"u"?globalThis:c||self,o(c["change-name"]={},c.vue,c.core,c.Uplot))})(this,function(c,o,g,D){"use strict";function w(i){if(typeof i=="object"&&i!==null){if(typeof Object.getPrototypeOf=="function"){const r=Object.getPrototypeOf(i);return r===Object.prototype||r===null}return Object.prototype.toString.call(i)==="[object Object]"}return!1}function f(...i){return i.reduce((r,a)=>{if(Array.isArray(a))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return a&&Object.keys(a).forEach(t=>{["__proto__","constructor","prototype"].includes(t)||(Array.isArray(r[t])&&Array.isArray(a[t])?r[t]=f.options.mergeArrays?Array.from(new Set(r[t].concat(a[t]))):a[t]:w(r[t])&&w(a[t])?r[t]=f(r[t],a[t]):r[t]=a[t])}),r},{})}const S={mergeArrays:!0};f.options=S,f.withOptions=(i,...r)=>{f.options={mergeArrays:!0,...i};const a=f(...r);return f.options=S,a};const E={class:"__uplot-root"},O={key:0,class:"extra-info"},A={style:{"text-align":"left"}},j={class:"__uplot-legend"},C=["onClick"],T={key:1,class:"__uplot-legend-value"},N={key:2,class:"__uplot-legend-value"},$=o.defineComponent({__name:"uplot",props:{options:{},data:{},noResetScale:{type:Boolean,default:!1},showDebug:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1},zoom:{default:()=>[null,null]},series:{}},emits:["select","cursor","update:zoom","update:series"],setup(i,{expose:r,emit:a}){const t=i,h=a,y=o.ref(),{width:_,height:b}=g.useElementSize(y),k=g.useVModel(t,"zoom",h,{passive:!0}),p=g.useVModel(t,"series",h,{passive:!0}),M={title:void 0,legend:{show:!1},hooks:{init:[e=>{t.showDebug&&console.log("init",e),p.value=e.series.map((l,s)=>({label:l.label,stroke:typeof l.stroke=="function"?l.stroke(e,s):null,value:null,data:null,show:l.show}))}],setCursor:[e=>{h("cursor",e.cursor),p.value=e.series.map((l,s)=>{var d,m;return{label:l.label,stroke:typeof l.stroke=="function"?l.stroke(e,s):null,value:e.cursor.idx&&e.data[s][e.cursor.idx]?typeof l.value=="function"?l.value(e,e.data[s][e.cursor.idx],s,e.cursor.idx):e.data[s][e.cursor.idx]:null,data:(d=e.cursor)!=null&&d.idx?e.data[s][(m=e.cursor)==null?void 0:m.idx]:null,show:l.show}})}],setSelect:[e=>{h("select",e.select),t.showDebug&&console.log("setSelect",e.select),k.value=[e.posToVal(e.select.left,"x"),e.posToVal(e.select.left+e.select.width,"x")]}],setScale:[e=>{t.showDebug&&console.log("setScale",e.scales),k.value=[e.scales.x.min||null,e.scales.x.max||null]}]}};let n;const x=o.ref();function z(){n&&n.destroy(),n=new D({width:100,height:100,...f(t.options,M)},t.data,y.value),x.value=n,t.zoom[0]!==null&&t.zoom[1]!==null&&n.setScale("x",{min:t.zoom[0],max:t.zoom[1]}),setTimeout(()=>{B()},0)}o.onMounted(()=>{z()}),o.watch([_,b],()=>{o.nextTick(()=>{B()})}),o.watch(t.data,e=>{if(t.noResetScale){n.setData(e,!1),n.redraw(!1);return}n.setData(e,!0)}),o.watch(t.options,(e,l)=>{t.showDebug&&console.log("watch options",e,l),z()}),o.watch(()=>t.zoom,e=>{e[0]!==null&&e[1]!==null&&(n.scales.x.min!==e[0]||n.scales.x.max!==e[1])&&(console.log("watch zoom setScale",n.scales.x.min,e[0],n.scales.x.max,e[1]),n.setScale("x",{min:e[0],max:e[1]}))});function B(){n.setSize({width:_.value,height:b.value}),t.showDebug&&console.log("resize",n)}function u(e){var l,s;typeof e=="object"&&(e=((l=p.value)==null?void 0:l.indexOf(e))||-1),n.setSeries(e,{show:!n.series[e].show}),(s=p.value)!=null&&s[e]&&(p.value[e].show=n.series[e].show)}return r({toggleShow:u,uplot:x}),(e,l)=>(o.openBlock(),o.createElementBlock("div",E,[o.renderSlot(e.$slots,"header",{series:o.unref(p),toggleShow:u}),o.createElementVNode("div",{ref_key:"el",ref:y,class:"__uplot"},null,512),e.showDebug?(o.openBlock(),o.createElementBlock("div",O,[o.createTextVNode(o.toDisplayString(o.unref(_))+" x "+o.toDisplayString(o.unref(b))+" ",1),l[0]||(l[0]=o.createElementVNode("br",null,null,-1)),o.createElementVNode("pre",A,o.toDisplayString(o.unref(p)),1)])):o.createCommentVNode("",!0),e.noFooter?o.createCommentVNode("",!0):o.renderSlot(e.$slots,"footer",{key:1,series:o.unref(p),toggleShow:u},()=>[o.createElementVNode("div",j,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(p),(s,d)=>{var m;return o.openBlock(),o.createElementBlock("div",{key:s.label,class:o.normalizeClass(["__uplot-legend-series",[`__uplot-${(m=s.label)==null?void 0:m.toLowerCase()}`,`__uplot-i-${d}`]]),style:o.normalizeStyle({backgroundColor:s.show?"":"lightgrey"}),onClick:P=>u(d)},[d!==0?(o.openBlock(),o.createElementBlock("span",{key:0,style:o.normalizeStyle({color:s.stroke||"black"}),class:"__uplot-legend-label"},o.toDisplayString(s.label),5)):o.createCommentVNode("",!0),s.value?(o.openBlock(),o.createElementBlock("span",T,o.toDisplayString(s.value),1)):(o.openBlock(),o.createElementBlock("span",N,"--"))],14,C)}),128))])])]))}});c.Uplot=$,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Uplot from 'uplot';
|
|
1
|
+
import { default as Uplot } from 'uplot';
|
|
2
2
|
export type Options = Omit<Uplot.Options, 'height' | 'width'>;
|
|
3
3
|
export type AlignedData = Uplot.AlignedData;
|
|
4
4
|
export interface Series {
|
|
@@ -24,74 +24,56 @@ interface UplotProps {
|
|
|
24
24
|
series?: Series[];
|
|
25
25
|
}
|
|
26
26
|
declare function toggleShow(idx: number | Series): void;
|
|
27
|
-
declare
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
declare function __VLS_template(): {
|
|
28
|
+
slots: {
|
|
29
|
+
header?(_: {
|
|
30
|
+
series: {
|
|
31
|
+
label: string | undefined;
|
|
32
|
+
stroke: string | null;
|
|
33
|
+
value: number | string | null | undefined;
|
|
34
|
+
data: number | null | undefined;
|
|
35
|
+
show: boolean | undefined;
|
|
36
|
+
}[] | undefined;
|
|
37
|
+
toggleShow: typeof toggleShow;
|
|
38
|
+
}): any;
|
|
39
|
+
footer?(_: {
|
|
40
|
+
series: {
|
|
41
|
+
label: string | undefined;
|
|
42
|
+
stroke: string | null;
|
|
43
|
+
value: number | string | null | undefined;
|
|
44
|
+
data: number | null | undefined;
|
|
45
|
+
show: boolean | undefined;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
toggleShow: typeof toggleShow;
|
|
48
|
+
}): any;
|
|
49
|
+
};
|
|
50
|
+
refs: {
|
|
51
|
+
el: HTMLDivElement;
|
|
52
|
+
};
|
|
53
|
+
attrs: Partial<{}>;
|
|
54
|
+
};
|
|
55
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
56
|
+
declare const __VLS_component: import('vue').DefineComponent<UplotProps, {
|
|
33
57
|
toggleShow: typeof toggleShow;
|
|
34
|
-
uplot: import(
|
|
35
|
-
},
|
|
36
|
-
select: (select: Uplot.Select) =>
|
|
37
|
-
cursor: (cursor: Uplot.Cursor) =>
|
|
38
|
-
"update:zoom": (zoom: number[]) =>
|
|
39
|
-
"update:series": (series: Series[]) =>
|
|
40
|
-
}, string, import(
|
|
41
|
-
noResetScale: boolean;
|
|
42
|
-
showDebug: boolean;
|
|
43
|
-
noFooter: boolean;
|
|
44
|
-
zoom: () => null[];
|
|
45
|
-
}>>> & {
|
|
58
|
+
uplot: import('vue').Ref<any, any>;
|
|
59
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
60
|
+
select: (select: Uplot.Select) => any;
|
|
61
|
+
cursor: (cursor: Uplot.Cursor) => any;
|
|
62
|
+
"update:zoom": (zoom: number[]) => any;
|
|
63
|
+
"update:series": (series: Series[]) => any;
|
|
64
|
+
}, string, import('vue').PublicProps, Readonly<UplotProps> & Readonly<{
|
|
46
65
|
onSelect?: ((select: Uplot.Select) => any) | undefined;
|
|
47
66
|
onCursor?: ((cursor: Uplot.Cursor) => any) | undefined;
|
|
48
67
|
"onUpdate:zoom"?: ((zoom: number[]) => any) | undefined;
|
|
49
68
|
"onUpdate:series"?: ((series: Series[]) => any) | undefined;
|
|
50
|
-
}
|
|
69
|
+
}>, {
|
|
51
70
|
noResetScale: boolean;
|
|
52
71
|
showDebug: boolean;
|
|
53
72
|
noFooter: boolean;
|
|
54
73
|
zoom: number[] | null[];
|
|
55
|
-
}, {}
|
|
56
|
-
|
|
57
|
-
series: {
|
|
58
|
-
label: string | undefined;
|
|
59
|
-
stroke: string | null;
|
|
60
|
-
value: string | number | null | undefined;
|
|
61
|
-
data: number | null | undefined;
|
|
62
|
-
show: boolean | undefined;
|
|
63
|
-
}[] | undefined;
|
|
64
|
-
toggleShow: typeof toggleShow;
|
|
65
|
-
}): any;
|
|
66
|
-
footer?(_: {
|
|
67
|
-
series: {
|
|
68
|
-
label: string | undefined;
|
|
69
|
-
stroke: string | null;
|
|
70
|
-
value: string | number | null | undefined;
|
|
71
|
-
data: number | null | undefined;
|
|
72
|
-
show: boolean | undefined;
|
|
73
|
-
}[] | undefined;
|
|
74
|
-
toggleShow: typeof toggleShow;
|
|
75
|
-
}): any;
|
|
76
|
-
}>;
|
|
74
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
75
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
77
76
|
export default _default;
|
|
78
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
79
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
80
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
81
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
82
|
-
} : {
|
|
83
|
-
type: import('vue').PropType<T[K]>;
|
|
84
|
-
required: true;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
type __VLS_WithDefaults<P, D> = {
|
|
88
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
89
|
-
default: D[K];
|
|
90
|
-
}> : P[K];
|
|
91
|
-
};
|
|
92
|
-
type __VLS_Prettify<T> = {
|
|
93
|
-
[K in keyof T]: T[K];
|
|
94
|
-
} & {};
|
|
95
77
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
96
78
|
new (): {
|
|
97
79
|
$slots: S;
|
package/dist/vite.config.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vite').UserConfig;
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowtools/uplot",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"packageManager": "pnpm@8.14.0",
|
|
4
|
+
"version": "0.0.12",
|
|
6
5
|
"description": "Modern vue component for uplot",
|
|
7
6
|
"author": "Jukka Raimovaara <roska@mentalhouse.fi> (Mentalhouse Oy)",
|
|
8
7
|
"license": "MIT",
|
|
@@ -42,23 +41,24 @@
|
|
|
42
41
|
"vue": "=>3.2.47"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
45
|
-
"@antfu/eslint-config": "^
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
44
|
+
"@antfu/eslint-config": "^3.11.2",
|
|
45
|
+
"@types/node": "^22.10.1",
|
|
46
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
47
|
+
"@vitest/coverage-v8": "^2.1.6",
|
|
48
|
+
"@vue/test-utils": "^2.4.6",
|
|
49
|
+
"@vueuse/core": "^12.0.0",
|
|
50
|
+
"bumpp": "^9.8.1",
|
|
51
|
+
"eslint": "^9.15.0",
|
|
52
|
+
"jsdom": "^25.0.1",
|
|
53
|
+
"lint-staged": "^15.2.10",
|
|
54
|
+
"simple-git-hooks": "^2.11.1",
|
|
55
|
+
"typescript": "^5.7.2",
|
|
56
|
+
"uplot": "^1.6.31",
|
|
57
57
|
"vi-canvas-mock": "^1.0.0",
|
|
58
|
-
"vite": "^
|
|
59
|
-
"vite-plugin-dts": "^3.
|
|
60
|
-
"vitest": "^
|
|
61
|
-
"vue": "^3.
|
|
58
|
+
"vite": "^6.0.1",
|
|
59
|
+
"vite-plugin-dts": "^4.3.0",
|
|
60
|
+
"vitest": "^2.1.6",
|
|
61
|
+
"vue": "^3.5.13"
|
|
62
62
|
},
|
|
63
63
|
"simple-git-hooks": {
|
|
64
64
|
"pre-commit": "pnpm lint-staged"
|
|
File without changes
|