tsviewer 1.0.27 → 1.0.29

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.
@@ -0,0 +1,262 @@
1
+ import "./base-CIy5gWpu.mjs";
2
+ import { E as _ } from "./el-overlay-_Fd7WVZL.mjs";
3
+ import { g as f, a as y, b as h } from "./el-input-DNjlHApm.mjs";
4
+ import { createElementBlock as F, openBlock as s, renderSlot as S, resolveComponent as A, createBlock as u, withCtx as t, createElementVNode as l, createVNode as r, createTextVNode as i, Fragment as E, renderList as k, normalizeStyle as D, toDisplayString as V } from "vue";
5
+ import { g as C } from "./index-B7dOp-ew.mjs";
6
+ import w from "./BFButton-DpIwbJXR.mjs";
7
+ const L = {
8
+ name: "CircleIcon",
9
+ props: {
10
+ icon: {
11
+ type: String
12
+ },
13
+ height: {
14
+ type: String,
15
+ default: "16"
16
+ },
17
+ width: {
18
+ type: String,
19
+ default: "16"
20
+ },
21
+ currentColor: {
22
+ type: String,
23
+ default: "#71747C"
24
+ }
25
+ }
26
+ }, $ = { class: "circle-icon" };
27
+ function O(n, e, c, B, m, a) {
28
+ return s(), F("div", $, [
29
+ S(n.$slots, "icon", {}, void 0, !0)
30
+ ]);
31
+ }
32
+ const I = /* @__PURE__ */ C(L, [["render", O], ["__scopeId", "data-v-46dcef49"]]), N = {
33
+ name: "AnnotationLayerWindow",
34
+ components: {
35
+ CircleIcon: I,
36
+ BfButton: w
37
+ },
38
+ props: {
39
+ visible: {
40
+ type: Boolean,
41
+ default: !1
42
+ }
43
+ },
44
+ data: function() {
45
+ return {
46
+ name: "",
47
+ selectedColor: "",
48
+ colorOptions: [
49
+ {
50
+ label: "Green",
51
+ value: "#18BA62",
52
+ iconBgColor: "#18BA62"
53
+ },
54
+ {
55
+ label: "Gold",
56
+ value: "#FFBC27",
57
+ iconBgColor: "#FFBC27"
58
+ },
59
+ {
60
+ label: "Red",
61
+ value: "#E94B4B",
62
+ iconBgColor: "#E94B4B"
63
+ },
64
+ {
65
+ label: "Light Blue",
66
+ value: "#2760FF",
67
+ iconBgColor: "#2760FF"
68
+ },
69
+ {
70
+ label: "Magenta",
71
+ value: "#FF4FFF",
72
+ iconBgColor: "#FF4FFF"
73
+ },
74
+ {
75
+ label: "Cyan",
76
+ value: "#50FFFF",
77
+ iconBgColor: "#50FFFF"
78
+ },
79
+ {
80
+ label: "Yellow",
81
+ value: "#FFFF4E",
82
+ iconBgColor: "#FFFF4E"
83
+ },
84
+ {
85
+ label: "Purple",
86
+ value: "#512BAF",
87
+ iconBgColor: "#512BAF"
88
+ },
89
+ {
90
+ label: "Lavendar",
91
+ value: "#8A6ECF",
92
+ iconBgColor: "#8A6ECF"
93
+ },
94
+ {
95
+ label: "Teal",
96
+ value: "#389BAD",
97
+ iconBgColor: "#389BAD"
98
+ },
99
+ {
100
+ label: "Dark Green",
101
+ value: "#187D46",
102
+ iconBgColor: "#187D46"
103
+ },
104
+ {
105
+ label: "Brick Red",
106
+ value: "#B12800",
107
+ iconBgColor: "#B12800"
108
+ },
109
+ {
110
+ label: "Dark Blue",
111
+ value: "#0C2475",
112
+ iconBgColor: "#0C2475"
113
+ },
114
+ {
115
+ label: "Bright Orange",
116
+ value: "#FF5321",
117
+ iconBgColor: "#FF5321"
118
+ },
119
+ {
120
+ label: "Pink",
121
+ value: "#FF99CC",
122
+ iconBgColor: "#FF99CC"
123
+ },
124
+ {
125
+ label: "Tan",
126
+ value: "#DCC180",
127
+ iconBgColor: "#DCC180"
128
+ },
129
+ {
130
+ label: "Medium Blue",
131
+ value: "#0D4EFF",
132
+ iconBgColor: "#0D4EFF"
133
+ },
134
+ {
135
+ label: "Orange",
136
+ value: "#FF6C21",
137
+ iconBgColor: "#FF6C21"
138
+ },
139
+ {
140
+ label: "Black",
141
+ value: "#000000",
142
+ iconBgColor: "#000000"
143
+ },
144
+ {
145
+ label: "Gray",
146
+ value: "#9B9B9B",
147
+ iconBgColor: "#9B9B9B"
148
+ },
149
+ {
150
+ label: "Lime",
151
+ value: "#00FF00",
152
+ iconBgColor: "#00FF00"
153
+ },
154
+ {
155
+ label: "Salmon",
156
+ value: "#FA8072",
157
+ iconBgColor: "#FA8072"
158
+ },
159
+ {
160
+ label: "Olive",
161
+ value: "#808000",
162
+ iconBgColor: "#808000"
163
+ },
164
+ {
165
+ label: "Sienna",
166
+ value: "#A0522D",
167
+ iconBgColor: "#A0522D"
168
+ }
169
+ ]
170
+ };
171
+ },
172
+ methods: {
173
+ close: function() {
174
+ this.$emit("close-window");
175
+ },
176
+ handleFormSubmit: function() {
177
+ this.$emit("createLayer", { name: this.name, color: this.selectedColor });
178
+ },
179
+ handleFormCancel: function() {
180
+ this.close();
181
+ }
182
+ }
183
+ }, G = { slot: "body" }, T = { class: "input-section" }, x = { class: "input-section" }, R = { class: "color-option" }, U = { style: { float: "right", color: "#8492a6", "font-size": "13px" } }, z = { slot: "footer" }, M = { class: "button-wrapper" }, P = { class: "buttons" };
184
+ function W(n, e, c, B, m, a) {
185
+ const p = f, v = h, b = y, d = A("bf-button"), g = _;
186
+ return s(), u(g, {
187
+ "onUpdate:modelValue": e[2] || (e[2] = (o) => c.visible = o),
188
+ "model-value": c.visible,
189
+ onClose: a.close,
190
+ class: "timeseries-annotation-layer-modal",
191
+ ref: "timeseries-filter-modal",
192
+ title: "Annotation Layers"
193
+ }, {
194
+ default: t(() => [
195
+ l("div", G, [
196
+ l("div", T, [
197
+ e[3] || (e[3] = i(" Layer Name: ")),
198
+ r(p, {
199
+ placeholder: "Add a Layer Name",
200
+ modelValue: n.name,
201
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => n.name = o),
202
+ ref: "input"
203
+ }, null, 8, ["modelValue"])
204
+ ]),
205
+ l("div", x, [
206
+ e[4] || (e[4] = i(" Select Color: ")),
207
+ r(b, {
208
+ modelValue: n.selectedColor,
209
+ "onUpdate:modelValue": e[1] || (e[1] = (o) => n.selectedColor = o),
210
+ placeholder: "Select"
211
+ }, {
212
+ default: t(() => [
213
+ (s(!0), F(E, null, k(n.colorOptions, (o) => (s(), u(v, {
214
+ key: o.value,
215
+ label: o.label,
216
+ value: o.value
217
+ }, {
218
+ default: t(() => [
219
+ l("div", R, [
220
+ l("div", {
221
+ style: D({ backgroundColor: o.value, height: "30px", width: "30px", borderRadius: "50%" })
222
+ }, null, 4),
223
+ l("div", U, V(o.label), 1)
224
+ ])
225
+ ]),
226
+ _: 2
227
+ }, 1032, ["label", "value"]))), 128))
228
+ ]),
229
+ _: 1
230
+ }, 8, ["modelValue"])
231
+ ])
232
+ ])
233
+ ]),
234
+ footer: t(() => [
235
+ l("div", z, [
236
+ l("div", M, [
237
+ l("div", P, [
238
+ r(d, { onClick: a.handleFormCancel }, {
239
+ default: t(() => e[5] || (e[5] = [
240
+ i("Cancel ")
241
+ ])),
242
+ _: 1,
243
+ __: [5]
244
+ }, 8, ["onClick"]),
245
+ r(d, { onClick: a.handleFormSubmit }, {
246
+ default: t(() => e[6] || (e[6] = [
247
+ i("Save ")
248
+ ])),
249
+ _: 1,
250
+ __: [6]
251
+ }, 8, ["onClick"])
252
+ ])
253
+ ])
254
+ ])
255
+ ]),
256
+ _: 1
257
+ }, 8, ["model-value", "onClose"]);
258
+ }
259
+ const Q = /* @__PURE__ */ C(N, [["render", W], ["__scopeId", "data-v-e5b3e8c2"]]);
260
+ export {
261
+ Q as default
262
+ };