tsviewer 1.0.34 → 1.0.35
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 +16 -1
- package/dist/{BFLibraryButton-D_mduAkj.mjs → BFLibraryButton-C-dYnBuB.mjs} +1 -1
- package/dist/{IconSelection-BEeprN5h.mjs → IconSelection-D2MArWPE.mjs} +1 -1
- package/dist/{TSAnnotationCanvas-CoyN89L9.mjs → TSAnnotationCanvas-BRFOZE_w.mjs} +3 -3
- package/dist/{TSAnnotationModal-D7hiW-sy.mjs → TSAnnotationModal-BnBO6zMr.mjs} +4 -4
- package/dist/{TSFilterModal-DRI8h7lk.mjs → TSFilterModal-C6mGcWkj.mjs} +4 -4
- package/dist/{TSScrubber--55ypncW.mjs → TSScrubber-ku6kN4S7.mjs} +1 -1
- package/dist/{TSViewerCanvas-DVfgbpsC.mjs → TSViewerCanvas-D_C5-SQj.mjs} +2 -2
- package/dist/{TSViewerLayerWindow-kqKN1_y8.mjs → TSViewerLayerWindow-DCYHBkDp.mjs} +3 -3
- package/dist/{TSViewerToolbar-CMGvMsQk.mjs → TSViewerToolbar-BEYgXP-Q.mjs} +1 -1
- package/dist/{TsAnnotationDeleteDialog-DXHoAlQ9.mjs → TsAnnotationDeleteDialog-BJg8JQK-.mjs} +4 -4
- package/dist/{index-BJ3pfGgo.mjs → index-d9tAAF8S.mjs} +1 -1
- package/dist/{pathOr-BSXdOL4Y.mjs → pathOr-CFovk1EG.mjs} +1 -1
- package/dist/tsviewer.css +1 -1
- package/dist/tsviewer.es.js +1 -1
- package/dist/tsviewer.umd.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,16 @@ import 'tsviewer/style'
|
|
|
25
25
|
|
|
26
26
|
### **2. Initialize the Viewer Store**
|
|
27
27
|
|
|
28
|
-
Before rendering `<tsviewer />`, you must initialize it by calling `fetchAndSetActiveViewer()` from the store. This ensures the viewer has the correct context.
|
|
28
|
+
Before rendering `<tsviewer />`, you must initialize it by calling `fetchAndSetActiveViewer()` from the store. This ensures the viewer has the correct context. Also we need to load the config for the viewer, and pass the param with following interface
|
|
29
|
+
|
|
30
|
+
```javascript
|
|
31
|
+
interface ViewerConfig {
|
|
32
|
+
timeseriesDiscoverApi: string;
|
|
33
|
+
apiUrl: string;
|
|
34
|
+
timeSeriesApi: string;
|
|
35
|
+
}
|
|
36
|
+
viewerStore.setViewerConfig(viewerConfig)
|
|
37
|
+
```
|
|
29
38
|
|
|
30
39
|
You need to provide the following string parameter:
|
|
31
40
|
- **packageId**: The unique identifier for the package to load.
|
|
@@ -64,6 +73,12 @@ const isViewerReady = ref(false)
|
|
|
64
73
|
const viewerStore = useViewerStore()
|
|
65
74
|
|
|
66
75
|
onMounted(async () => {
|
|
76
|
+
const viewerConfig = {
|
|
77
|
+
timeseriesDiscoverApi: runtimeConfig.public.ts_streaming_host_websocket,
|
|
78
|
+
apiUrl: runtimeConfig.public.api_host,
|
|
79
|
+
timeSeriesApi: runtimeConfig.public.ts_streaming_host_http,
|
|
80
|
+
}
|
|
81
|
+
viewerStore.setViewerConfig(viewerConfig)
|
|
67
82
|
await viewerStore.fetchAndSetActiveViewer({
|
|
68
83
|
packageId: packageId.value,
|
|
69
84
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as t, openBlock as s, normalizeClass as i, createCommentVNode as n, renderSlot as a, Fragment as f, createTextVNode as u, toDisplayString as l } from "vue";
|
|
2
|
-
import { g as d } from "./index-
|
|
2
|
+
import { g as d } from "./index-d9tAAF8S.mjs";
|
|
3
3
|
const c = {
|
|
4
4
|
name: "BfLibraryButton",
|
|
5
5
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as C, computed as W, watch as ee, onMounted as te, createElementBlock as ne, openBlock as oe, normalizeStyle as ae, unref as q, nextTick as ie } from "vue";
|
|
2
|
-
import { o as re, m as se, u as _, p as V, h as N, j as H, i as P, g as le } from "./index-
|
|
2
|
+
import { o as re, m as se, u as _, p as V, h as N, j as H, i as P, g as le } from "./index-d9tAAF8S.mjs";
|
|
3
3
|
import { storeToRefs as x } from "pinia";
|
|
4
|
-
import { f as ce, h as ue } from "./TSViewerCanvas-
|
|
5
|
-
import { p as z } from "./pathOr-
|
|
4
|
+
import { f as ce, h as ue } from "./TSViewerCanvas-D_C5-SQj.mjs";
|
|
5
|
+
import { p as z } from "./pathOr-CFovk1EG.mjs";
|
|
6
6
|
import { g as de } from "./_commonjsHelpers-DaMA6jEr.mjs";
|
|
7
7
|
const I = (t, u) => {
|
|
8
8
|
let c;
|
|
@@ -3,9 +3,9 @@ import { E as yn } from "./el-overlay-_Fd7WVZL.mjs";
|
|
|
3
3
|
import { u as Ha, h as bn, i as gn, c as kn, j as wn, k as za, d as ja, l as Sn, e as qa, m as Dn, o as Cn, E as Mn, g as rt, n as $n, p as Pn, q as Vn, r as _n, T as Tn, C as ca, s as On, t as Yn, f as In, a as Rn, b as xn } from "./el-input-DNjlHApm.mjs";
|
|
4
4
|
import { a as Zt } from "./el-button-B2d_HO4x.mjs";
|
|
5
5
|
import { defineComponent as $e, ref as X, createElementBlock as Q, openBlock as I, normalizeStyle as Gt, normalizeClass as $, unref as e, renderSlot as me, createElementVNode as j, mergeProps as Jt, useAttrs as ha, inject as Re, computed as K, watch as De, nextTick as Ie, onBeforeUnmount as Za, provide as Nt, createBlock as ce, withCtx as le, withModifiers as He, createCommentVNode as se, resolveDynamicComponent as Qe, toDisplayString as fe, onMounted as Ga, Fragment as we, renderList as Pe, createTextVNode as Ge, withDirectives as Ye, createVNode as Z, Transition as An, withKeys as ze, useSlots as ya, toRef as je, vShow as Ze, getCurrentInstance as Ja, reactive as Nn, defineAsyncComponent as Fn } from "vue";
|
|
6
|
-
import { g as En, u as Ln, p as Pa } from "./index-
|
|
6
|
+
import { g as En, u as Ln, p as Pa } from "./index-d9tAAF8S.mjs";
|
|
7
7
|
import { storeToRefs as Bn } from "pinia";
|
|
8
|
-
import { I as Un } from "./IconSelection-
|
|
8
|
+
import { I as Un } from "./IconSelection-D2MArWPE.mjs";
|
|
9
9
|
import { g as Xe } from "./_commonjsHelpers-DaMA6jEr.mjs";
|
|
10
10
|
import { v as Va } from "./index-ClxLs_jS.mjs";
|
|
11
11
|
var Ft = { exports: {} }, Kn = Ft.exports, _a;
|
|
@@ -4242,7 +4242,7 @@ const Tl = Wa(_l), Ol = { slot: "body" }, Yl = { class: "select-wrapper" }, Il =
|
|
|
4242
4242
|
},
|
|
4243
4243
|
emits: ["closeWindow", "createUpdateAnnotation"],
|
|
4244
4244
|
setup(n, { emit: l }) {
|
|
4245
|
-
const a = Fn(() => import("./BFLibraryButton-
|
|
4245
|
+
const a = Fn(() => import("./BFLibraryButton-C-dYnBuB.mjs")), t = n, d = X(!1);
|
|
4246
4246
|
De(() => t.visible, (_) => {
|
|
4247
4247
|
if (d.value = _, !_) return;
|
|
4248
4248
|
const M = u.value.start / 1e3, O = u.value.end / 1e3;
|
|
@@ -4423,7 +4423,7 @@ const Tl = Wa(_l), Ol = { slot: "body" }, Yl = { class: "select-wrapper" }, Il =
|
|
|
4423
4423
|
}, 8, ["title", "modelValue"]);
|
|
4424
4424
|
};
|
|
4425
4425
|
}
|
|
4426
|
-
}, Jl = /* @__PURE__ */ En(Ll, [["__scopeId", "data-v-
|
|
4426
|
+
}, Jl = /* @__PURE__ */ En(Ll, [["__scopeId", "data-v-d74b3ef8"]]);
|
|
4427
4427
|
export {
|
|
4428
4428
|
Jl as default
|
|
4429
4429
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./base-CIy5gWpu.mjs";
|
|
2
2
|
import { E as F } from "./el-overlay-_Fd7WVZL.mjs";
|
|
3
|
-
import { I as g } from "./IconSelection-
|
|
3
|
+
import { I as g } from "./IconSelection-D2MArWPE.mjs";
|
|
4
4
|
import { a as y, b as k } from "./el-input-DNjlHApm.mjs";
|
|
5
5
|
import { E as S } from "./el-input-number-CAzspsnM.mjs";
|
|
6
6
|
import { resolveComponent as P, createBlock as u, openBlock as o, withCtx as i, createElementVNode as s, createVNode as r, createElementBlock as a, toDisplayString as c, createTextVNode as d, createCommentVNode as p, Fragment as _, renderList as v } from "vue";
|
|
7
|
-
import { g as N } from "./index-
|
|
7
|
+
import { g as N } from "./index-d9tAAF8S.mjs";
|
|
8
8
|
const H = {
|
|
9
9
|
name: "TimeseriesFilterModal",
|
|
10
10
|
components: {
|
|
11
|
-
"bf-library-button": () => import("./BFLibraryButton-
|
|
11
|
+
"bf-library-button": () => import("./BFLibraryButton-C-dYnBuB.mjs"),
|
|
12
12
|
IconSelection: g
|
|
13
13
|
},
|
|
14
14
|
mixins: [],
|
|
@@ -232,7 +232,7 @@ function D(t, l, h, M, W, n) {
|
|
|
232
232
|
_: 1
|
|
233
233
|
}, 8, ["modelValue", "onClose"]);
|
|
234
234
|
}
|
|
235
|
-
const Y = /* @__PURE__ */ N(H, [["render", D], ["__scopeId", "data-v-
|
|
235
|
+
const Y = /* @__PURE__ */ N(H, [["render", D], ["__scopeId", "data-v-7546755f"]]);
|
|
236
236
|
export {
|
|
237
237
|
Y as default
|
|
238
238
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as v, computed as N, watch as U, nextTick as E, onMounted as Ne, createElementBlock as Ie, openBlock as $e, createElementVNode as x, toDisplayString as K, normalizeStyle as Q } from "vue";
|
|
2
|
-
import { _ as ve, a as Se, b as Y, c as Ue, d as ge, e as Ve, f as Oe, k as Le, g as Xe, u as je, h as de, i as fe, j as he } from "./index-
|
|
2
|
+
import { _ as ve, a as Se, b as Y, c as Ue, d as ge, e as Ve, f as Oe, k as Le, g as Xe, u as je, h as de, i as fe, j as he } from "./index-d9tAAF8S.mjs";
|
|
3
3
|
function me(g, c, l) {
|
|
4
4
|
return function() {
|
|
5
5
|
for (var t = [], p = 0, u = g, k = 0; k < c.length || p < arguments.length; ) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, onUnmounted, readonly, reactive, computed, watch, onMounted, createElementBlock, openBlock, createElementVNode, renderSlot, normalizeStyle, defineAsyncComponent, nextTick, createVNode, withCtx, unref } from "vue";
|
|
2
2
|
import { storeToRefs } from "pinia";
|
|
3
|
-
import { n as nth, b as _curry2, d as _xfBase, l as _reduced, e as _dispatchable, h as useToken, p as propOr, g as _export_sfc, u as useViewerStore, m as propEq } from "./index-
|
|
3
|
+
import { n as nth, b as _curry2, d as _xfBase, l as _reduced, e as _dispatchable, h as useToken, p as propOr, g as _export_sfc, u as useViewerStore, m as propEq } from "./index-d9tAAF8S.mjs";
|
|
4
4
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-DaMA6jEr.mjs";
|
|
5
5
|
var head = /* @__PURE__ */ nth(0), XFind = /* @__PURE__ */ function() {
|
|
6
6
|
function f(c, v) {
|
|
@@ -5222,7 +5222,7 @@ const _hoisted_1$1 = { class: "timeseries-plot-canvas" }, _hoisted_2$1 = ["width
|
|
|
5222
5222
|
],
|
|
5223
5223
|
setup(f, { expose: c, emit: v }) {
|
|
5224
5224
|
const u = defineAsyncComponent(
|
|
5225
|
-
() => import("./TSAnnotationCanvas-
|
|
5225
|
+
() => import("./TSAnnotationCanvas-BRFOZE_w.mjs")
|
|
5226
5226
|
), o = f, i = v, e = useViewerStore(), { viewerChannels: r, viewerAnnotations: t, viewerActiveTool: n, viewerSelectedChannels: d } = storeToRefs(e), s = ref(null), l = ref(null), a = ref(null), h = ref(null), m = ref(null), R = ref(null);
|
|
5227
5227
|
reactive({});
|
|
5228
5228
|
const g = ref(0), y = ref(0), O = ref(0), b = ref(1), k = ref(!1), I = ref(!1), M = ref("pointer");
|
|
@@ -2,8 +2,8 @@ import "./base-CIy5gWpu.mjs";
|
|
|
2
2
|
import { E as _ } from "./el-overlay-_Fd7WVZL.mjs";
|
|
3
3
|
import { g as f, a as y, b as h } from "./el-input-DNjlHApm.mjs";
|
|
4
4
|
import { createElementBlock as F, openBlock as s, renderSlot as S, resolveComponent as A, createBlock as u, withCtx as a, createElementVNode as l, createVNode as r, createTextVNode as i, Fragment as E, renderList as k, normalizeStyle as D, toDisplayString as L } from "vue";
|
|
5
|
-
import { g as C } from "./index-
|
|
6
|
-
import V from "./BFLibraryButton-
|
|
5
|
+
import { g as C } from "./index-d9tAAF8S.mjs";
|
|
6
|
+
import V from "./BFLibraryButton-C-dYnBuB.mjs";
|
|
7
7
|
const w = {
|
|
8
8
|
name: "CircleIcon",
|
|
9
9
|
props: {
|
|
@@ -256,7 +256,7 @@ function W(n, e, c, B, m, t) {
|
|
|
256
256
|
_: 1
|
|
257
257
|
}, 8, ["model-value", "onClose"]);
|
|
258
258
|
}
|
|
259
|
-
const Q = /* @__PURE__ */ C(N, [["render", W], ["__scopeId", "data-v-
|
|
259
|
+
const Q = /* @__PURE__ */ C(N, [["render", W], ["__scopeId", "data-v-117509d0"]]);
|
|
260
260
|
export {
|
|
261
261
|
Q as default
|
|
262
262
|
};
|
|
@@ -3,7 +3,7 @@ import { E as j, a as G, b as X } from "./el-input-DNjlHApm.mjs";
|
|
|
3
3
|
import { E as J, a as K } from "./el-button-B2d_HO4x.mjs";
|
|
4
4
|
import { E as Q } from "./el-input-number-CAzspsnM.mjs";
|
|
5
5
|
import { createElementBlock as g, openBlock as r, createElementVNode as t, ref as h, computed as k, onMounted as W, createVNode as l, createBlock as w, createCommentVNode as y, withCtx as u, resolveDynamicComponent as Y, Fragment as tt, renderList as et } from "vue";
|
|
6
|
-
import { g as m } from "./index-
|
|
6
|
+
import { g as m } from "./index-d9tAAF8S.mjs";
|
|
7
7
|
const nt = {
|
|
8
8
|
name: "IconPreviousPage",
|
|
9
9
|
props: {
|
package/dist/{TsAnnotationDeleteDialog-DXHoAlQ9.mjs → TsAnnotationDeleteDialog-BJg8JQK-.mjs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./base-CIy5gWpu.mjs";
|
|
2
2
|
import { E as k } from "./el-overlay-_Fd7WVZL.mjs";
|
|
3
3
|
import { createElementBlock as a, openBlock as i, normalizeClass as T, createCommentVNode as f, createElementVNode as s, renderSlot as d, toDisplayString as u, resolveComponent as B, createBlock as A, withCtx as c, createVNode as r, Fragment as x, createTextVNode as h } from "vue";
|
|
4
|
-
import { g as _, p as V } from "./index-
|
|
5
|
-
import N from "./BFLibraryButton-
|
|
6
|
-
import { p as C } from "./pathOr-
|
|
4
|
+
import { g as _, p as V } from "./index-d9tAAF8S.mjs";
|
|
5
|
+
import N from "./BFLibraryButton-C-dYnBuB.mjs";
|
|
6
|
+
import { p as C } from "./pathOr-CFovk1EG.mjs";
|
|
7
7
|
const U = {
|
|
8
8
|
name: "DialogBody",
|
|
9
9
|
setup(e, { slots: t }) {
|
|
@@ -43,7 +43,7 @@ function O(e, t, o, l, m, n) {
|
|
|
43
43
|
])
|
|
44
44
|
], 2);
|
|
45
45
|
}
|
|
46
|
-
const b = /* @__PURE__ */ _(U, [["render", O], ["__scopeId", "data-v-
|
|
46
|
+
const b = /* @__PURE__ */ _(U, [["render", O], ["__scopeId", "data-v-4492039b"]]), P = {
|
|
47
47
|
name: "IconWarningCircle",
|
|
48
48
|
props: {
|
|
49
49
|
width: {
|
|
@@ -910,7 +910,7 @@ const Tn = (t, e) => {
|
|
|
910
910
|
}
|
|
911
911
|
},
|
|
912
912
|
setup(t, { expose: e }) {
|
|
913
|
-
const n = J(() => import("./TSScrubber
|
|
913
|
+
const n = J(() => import("./TSScrubber-ku6kN4S7.mjs")), o = J(() => import("./TSViewerCanvas-D_C5-SQj.mjs").then((r) => r.T)), i = J(() => import("./TSViewerToolbar-BEYgXP-Q.mjs")), u = J(() => import("./TSFilterModal-C6mGcWkj.mjs")), g = J(() => import("./TSAnnotationModal-BnBO6zMr.mjs")), A = J(() => import("./TsAnnotationDeleteDialog-BJg8JQK-.mjs")), l = J(() => import("./TSViewerLayerWindow-DCYHBkDp.mjs")), s = {
|
|
914
914
|
TIMEUNIT: "microSeconds",
|
|
915
915
|
// Basis for time
|
|
916
916
|
XOFFSET: 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as i, n as o, q as h, r as s, o as f } from "./index-
|
|
1
|
+
import { b as i, n as o, q as h, r as s, o as f } from "./index-d9tAAF8S.mjs";
|
|
2
2
|
var v = /* @__PURE__ */ i(function(r, a) {
|
|
3
3
|
return r.map(function(n) {
|
|
4
4
|
for (var t = a, e = 0, u; e < n.length; ) {
|