@stonecrop/beam 0.4.4 → 0.4.5
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/assets/index.css +1 -1
- package/dist/beam.d.ts +50 -6
- package/dist/beam.js +119 -105
- package/dist/beam.js.map +1 -1
- package/dist/beam.umd.cjs +3 -3
- package/dist/beam.umd.cjs.map +1 -1
- package/dist/composables/mqtt.js +51 -1
- package/dist/src/composables/mqtt.d.ts +11 -2
- package/dist/src/composables/mqtt.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types/index.d.ts +41 -11
- package/dist/src/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/BeamDayDivider.vue +1 -1
- package/src/components/BeamFilter.vue +10 -7
- package/src/components/BeamFilterOption.vue +20 -21
- package/src/components/ListView.vue +1 -1
- package/src/components/SegmentedDisplay.vue +8 -5
- package/src/composables/mqtt.ts +57 -1
- package/src/index.ts +1 -1
- package/src/types/index.ts +49 -11
package/dist/beam.js
CHANGED
|
@@ -13,7 +13,7 @@ var Ar = (e, n, t, a) => ({
|
|
|
13
13
|
return R(e, n, a);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { defineComponent as ze, resolveComponent as yt, openBlock as
|
|
16
|
+
import { defineComponent as ze, resolveComponent as yt, openBlock as Pe, createElementBlock as Me, createElementVNode as Oe, createVNode as vt, withCtx as wt, renderSlot as lt, normalizeStyle as ur, createTextVNode as _t, computed as Hr, Fragment as Dr, toDisplayString as at, useTemplateRef as eo, ref as Ot, onMounted as Kr, renderList as zo, normalizeClass as Sr, createCommentVNode as Er, createStaticVNode as Ha, createBlock as Zt, withDirectives as Yo, vShow as Ka, useModel as Qo, vModelCheckbox as za, unref as Ya, mergeModels as Qa, withModifiers as to, watch as Ga, onUnmounted as ji, resolveDynamicComponent as Ja } from "vue";
|
|
17
17
|
const Za = { class: "beam_action-footer" }, Xa = { class: "footer-action-wrapper" }, el = /* @__PURE__ */ ze({
|
|
18
18
|
__name: "ActionFooter",
|
|
19
19
|
emits: ["click"],
|
|
@@ -23,8 +23,8 @@ const Za = { class: "beam_action-footer" }, Xa = { class: "footer-action-wrapper
|
|
|
23
23
|
};
|
|
24
24
|
return (u, i) => {
|
|
25
25
|
const r = yt("BeamBtn");
|
|
26
|
-
return
|
|
27
|
-
|
|
26
|
+
return Pe(), Me("footer", Za, [
|
|
27
|
+
Oe("span", Xa, [
|
|
28
28
|
vt(r, { onClick: a }, {
|
|
29
29
|
default: wt(() => [
|
|
30
30
|
lt(u.$slots, "default", {}, void 0, !0)
|
|
@@ -50,14 +50,14 @@ const Za = { class: "beam_action-footer" }, Xa = { class: "footer-action-wrapper
|
|
|
50
50
|
color: {}
|
|
51
51
|
},
|
|
52
52
|
setup(e) {
|
|
53
|
-
return (n, t) => (
|
|
54
|
-
|
|
53
|
+
return (n, t) => (Pe(), Me("div", rl, [
|
|
54
|
+
Oe("div", {
|
|
55
55
|
class: "beam_metadata_arrow-body",
|
|
56
56
|
style: ur({ background: n.color || "#c4c4c4" })
|
|
57
57
|
}, null, 4),
|
|
58
|
-
|
|
59
|
-
(
|
|
60
|
-
|
|
58
|
+
Oe("div", nl, [
|
|
59
|
+
(Pe(), Me("svg", il, [
|
|
60
|
+
Oe("polygon", {
|
|
61
61
|
points: "6.74 3.89 0 0 0 7.78 6.74 3.89",
|
|
62
62
|
style: ur([{ fill: "#c4c4c4" }, { fill: n.color || "#c4c4c4" }])
|
|
63
63
|
}, null, 4)
|
|
@@ -67,7 +67,7 @@ const Za = { class: "beam_action-footer" }, Xa = { class: "footer-action-wrapper
|
|
|
67
67
|
}
|
|
68
68
|
}), sl = /* @__PURE__ */ He(ol, [["__scopeId", "data-v-94fbdac5"]]), al = {}, ll = { class: "beam_btn" };
|
|
69
69
|
function ul(e, n) {
|
|
70
|
-
return
|
|
70
|
+
return Pe(), Me("button", ll, [
|
|
71
71
|
lt(e.$slots, "default", {}, () => [
|
|
72
72
|
n[0] || (n[0] = _t("Action"))
|
|
73
73
|
], !0)
|
|
@@ -90,21 +90,21 @@ const hl = /* @__PURE__ */ He(al, [["render", ul], ["__scopeId", "data-v-bc76859
|
|
|
90
90
|
}
|
|
91
91
|
return t.toDateString();
|
|
92
92
|
});
|
|
93
|
-
return (t, a) => (
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
return (t, a) => (Pe(), Me(Dr, null, [
|
|
94
|
+
Oe("div", cl, [
|
|
95
|
+
Oe("h2", null, at(n.value), 1)
|
|
96
96
|
]),
|
|
97
97
|
lt(t.$slots, "default", {}, void 0, !0)
|
|
98
98
|
], 64));
|
|
99
99
|
}
|
|
100
|
-
}), Go = /* @__PURE__ */ He(fl, [["__scopeId", "data-v-
|
|
100
|
+
}), Go = /* @__PURE__ */ He(fl, [["__scopeId", "data-v-160cf6ef"]]), dl = { class: "beam_filters-options" }, pl = /* @__PURE__ */ ze({
|
|
101
101
|
__name: "BeamFilter",
|
|
102
102
|
setup(e) {
|
|
103
103
|
const n = eo("beam-filters-header"), t = eo("beam-filters"), a = Ot(!1), u = Ot(), i = Ot(), r = () => {
|
|
104
104
|
a.value = !a.value;
|
|
105
105
|
};
|
|
106
106
|
Kr(() => {
|
|
107
|
-
u.value = s(n.value), i.value = s(t.value), t.value.style.height = u.value;
|
|
107
|
+
n.value && t.value && (u.value = s(n.value), i.value = s(t.value), t.value.style.height = u.value);
|
|
108
108
|
});
|
|
109
109
|
const s = (o) => {
|
|
110
110
|
const l = o.getBoundingClientRect().height, f = parseInt(getComputedStyle(o).marginTop), p = parseInt(getComputedStyle(o).marginBottom);
|
|
@@ -112,12 +112,12 @@ const hl = /* @__PURE__ */ He(al, [["render", ul], ["__scopeId", "data-v-bc76859
|
|
|
112
112
|
};
|
|
113
113
|
return (o, l) => {
|
|
114
114
|
const f = yt("ToggleArrow"), p = yt("BeamHeading");
|
|
115
|
-
return
|
|
115
|
+
return Pe(), Me("div", {
|
|
116
116
|
ref: "beam-filters",
|
|
117
117
|
class: "beam_filters",
|
|
118
118
|
style: ur({ height: a.value ? "100%" : u.value })
|
|
119
119
|
}, [
|
|
120
|
-
|
|
120
|
+
Oe("div", {
|
|
121
121
|
ref: "beam-filters-header",
|
|
122
122
|
onClick: r,
|
|
123
123
|
class: "beam_filters-heading"
|
|
@@ -125,23 +125,18 @@ const hl = /* @__PURE__ */ He(al, [["render", ul], ["__scopeId", "data-v-bc76859
|
|
|
125
125
|
vt(f, { open: a.value }, null, 8, ["open"]),
|
|
126
126
|
vt(p, null, {
|
|
127
127
|
default: wt(() => l[0] || (l[0] = [
|
|
128
|
-
_t("
|
|
128
|
+
_t("Filter")
|
|
129
129
|
])),
|
|
130
130
|
_: 1
|
|
131
131
|
})
|
|
132
132
|
], 512),
|
|
133
|
-
|
|
134
|
-
lt(o.$slots, "default", {},
|
|
135
|
-
l[1] || (l[1] = Pe("p", null, "OPTIONS GO HERE", -1))
|
|
136
|
-
], !0)
|
|
133
|
+
Oe("div", dl, [
|
|
134
|
+
lt(o.$slots, "default", {}, void 0, !0)
|
|
137
135
|
])
|
|
138
136
|
], 4);
|
|
139
137
|
};
|
|
140
138
|
}
|
|
141
|
-
}), gl = /* @__PURE__ */ He(pl, [["__scopeId", "data-v-
|
|
142
|
-
ref: "select",
|
|
143
|
-
class: "beam_filter-option-select"
|
|
144
|
-
}, bl = { class: "beam_filter-label" }, yl = {
|
|
139
|
+
}), gl = /* @__PURE__ */ He(pl, [["__scopeId", "data-v-1064c704"]]), ml = { class: "beam_filter-option-select" }, bl = { class: "beam_filter-label" }, yl = {
|
|
145
140
|
key: 0,
|
|
146
141
|
ref: "menu",
|
|
147
142
|
class: "beam_filter-select-menu"
|
|
@@ -151,53 +146,52 @@ const hl = /* @__PURE__ */ He(al, [["render", ul], ["__scopeId", "data-v-bc76859
|
|
|
151
146
|
choices: { default: () => [] },
|
|
152
147
|
title: { default: "title" }
|
|
153
148
|
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
n.value = !n.value;
|
|
149
|
+
emits: ["select"],
|
|
150
|
+
setup(e, { emit: n }) {
|
|
151
|
+
const t = n, a = Ot(!1), u = Ot(e.choices[0].label), i = Ot(e.choices[0].value), r = (s) => {
|
|
152
|
+
u.value = s.label, i.value = s.value, t("select", s);
|
|
159
153
|
};
|
|
160
|
-
return (
|
|
161
|
-
const
|
|
162
|
-
return
|
|
163
|
-
vt(
|
|
154
|
+
return (s, o) => {
|
|
155
|
+
const l = yt("BeamHeading");
|
|
156
|
+
return Pe(), Me(Dr, null, [
|
|
157
|
+
vt(l, { class: "beam_filter-option-heading" }, {
|
|
164
158
|
default: wt(() => [
|
|
165
|
-
_t(at(
|
|
159
|
+
_t(at(s.title), 1)
|
|
166
160
|
]),
|
|
167
161
|
_: 1
|
|
168
162
|
}),
|
|
169
|
-
|
|
170
|
-
onClick:
|
|
163
|
+
Oe("div", {
|
|
164
|
+
onClick: o[0] || (o[0] = (f) => a.value = !a.value),
|
|
171
165
|
class: "beam_filter-option"
|
|
172
166
|
}, [
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
167
|
+
Oe("div", ml, [
|
|
168
|
+
o[1] || (o[1] = Oe("div", { class: "beam_filter-arrow" }, [
|
|
169
|
+
Oe("svg", {
|
|
176
170
|
xmlns: "http://www.w3.org/2000/svg",
|
|
177
171
|
viewBox: "0 0 35.36 70.71"
|
|
178
172
|
}, [
|
|
179
|
-
|
|
173
|
+
Oe("polygon", { points: "0 70.71 0 0 35.36 35.36 0 70.71" })
|
|
180
174
|
])
|
|
181
175
|
], -1)),
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
Oe("div", bl, [
|
|
177
|
+
Oe("label", null, at(u.value), 1)
|
|
184
178
|
])
|
|
185
|
-
]
|
|
186
|
-
|
|
187
|
-
(
|
|
188
|
-
class: Sr([{ selected:
|
|
189
|
-
"data-value":
|
|
190
|
-
key: f,
|
|
191
|
-
onClick: (p) =>
|
|
192
|
-
}, at(
|
|
179
|
+
]),
|
|
180
|
+
a.value ? (Pe(), Me("ul", yl, [
|
|
181
|
+
(Pe(!0), Me(Dr, null, zo(s.choices, (f) => (Pe(), Me("li", {
|
|
182
|
+
class: Sr([{ selected: u.value == f.label }, "beam_filter-select-option"]),
|
|
183
|
+
"data-value": f.value,
|
|
184
|
+
key: f.value,
|
|
185
|
+
onClick: (p) => r(f)
|
|
186
|
+
}, at(f.label), 11, vl))), 128))
|
|
193
187
|
], 512)) : Er("", !0)
|
|
194
188
|
])
|
|
195
189
|
], 64);
|
|
196
190
|
};
|
|
197
191
|
}
|
|
198
|
-
}), _l = /* @__PURE__ */ He(wl, [["__scopeId", "data-v-
|
|
192
|
+
}), _l = /* @__PURE__ */ He(wl, [["__scopeId", "data-v-a10ab2da"]]), El = {}, Sl = { class: "beam_header" };
|
|
199
193
|
function Al(e, n) {
|
|
200
|
-
return
|
|
194
|
+
return Pe(), Me("h1", Sl, [
|
|
201
195
|
lt(e.$slots, "default", {}, void 0, !0)
|
|
202
196
|
]);
|
|
203
197
|
}
|
|
@@ -207,14 +201,14 @@ const Il = /* @__PURE__ */ He(El, [["render", Al], ["__scopeId", "data-v-5182a4d
|
|
|
207
201
|
order: {}
|
|
208
202
|
},
|
|
209
203
|
setup(e) {
|
|
210
|
-
return (n, t) => (
|
|
211
|
-
|
|
204
|
+
return (n, t) => (Pe(), Me("div", Tl, [
|
|
205
|
+
Oe("div", kl, [
|
|
212
206
|
lt(n.$slots, "default", {}, () => [
|
|
213
|
-
t[1] || (t[1] =
|
|
214
|
-
|
|
215
|
-
|
|
207
|
+
t[1] || (t[1] = Oe("div", { class: "beam_metadata_header beam_metadata--two-column" }, null, -1)),
|
|
208
|
+
Oe("div", Cl, [
|
|
209
|
+
Oe("p", Pl, [
|
|
216
210
|
t[0] || (t[0] = _t(" Status: ")),
|
|
217
|
-
|
|
211
|
+
Oe("span", {
|
|
218
212
|
class: Sr([{ alert: !n.order.complete }, "beam_metadata--normal"])
|
|
219
213
|
}, at(n.order.complete ? "Complete" : "In Progress"), 3)
|
|
220
214
|
])
|
|
@@ -222,7 +216,7 @@ const Il = /* @__PURE__ */ He(El, [["render", Al], ["__scopeId", "data-v-5182a4d
|
|
|
222
216
|
t[2] || (t[2] = Ha('<div class="beam_metadata_shipping beam_metadata_block" data-v-80484331><div class="beam_metadata_source" data-v-80484331><p class="beam_metadata_heading" data-v-80484331>Source</p></div><div class="beam_metadata_source" data-v-80484331><p class="beam_metadata_heading" data-v-80484331>Receiving</p></div></div>', 1))
|
|
223
217
|
], !0)
|
|
224
218
|
]),
|
|
225
|
-
t[3] || (t[3] =
|
|
219
|
+
t[3] || (t[3] = Oe("hr", null, null, -1))
|
|
226
220
|
]));
|
|
227
221
|
}
|
|
228
222
|
}), Rl = /* @__PURE__ */ He(Ol, [["__scopeId", "data-v-80484331"]]), Bl = { class: "beam_modal" }, Ml = /* @__PURE__ */ ze({
|
|
@@ -233,9 +227,9 @@ const Il = /* @__PURE__ */ He(El, [["render", Al], ["__scopeId", "data-v-5182a4d
|
|
|
233
227
|
setup(e) {
|
|
234
228
|
return (n, t) => {
|
|
235
229
|
const a = yt("BeamBtn"), u = yt("portal");
|
|
236
|
-
return
|
|
230
|
+
return Pe(), Zt(u, { to: "beam_modal_outlet" }, {
|
|
237
231
|
default: wt(() => [
|
|
238
|
-
Yo(
|
|
232
|
+
Yo(Oe("div", Bl, [
|
|
239
233
|
vt(a, {
|
|
240
234
|
onClick: t[0] || (t[0] = (i) => n.$emit("closemodal"))
|
|
241
235
|
}, {
|
|
@@ -262,7 +256,7 @@ const Il = /* @__PURE__ */ He(El, [["render", Al], ["__scopeId", "data-v-5182a4d
|
|
|
262
256
|
setup(e) {
|
|
263
257
|
return (n, t) => {
|
|
264
258
|
const a = yt("portal-target");
|
|
265
|
-
return
|
|
259
|
+
return Pe(), Zt(a, { name: "beam_modal_outlet" });
|
|
266
260
|
};
|
|
267
261
|
}
|
|
268
262
|
}), Ul = { class: "beam_metadata_heading" }, Nl = /* @__PURE__ */ ze({
|
|
@@ -275,9 +269,9 @@ const Il = /* @__PURE__ */ He(El, [["render", Al], ["__scopeId", "data-v-5182a4d
|
|
|
275
269
|
},
|
|
276
270
|
setup(e) {
|
|
277
271
|
const n = Hr(() => e.complete ? e.completeMessage : e.progressMessage);
|
|
278
|
-
return (t, a) => (
|
|
272
|
+
return (t, a) => (Pe(), Me("p", Ul, [
|
|
279
273
|
_t(at(t.label) + ": ", 1),
|
|
280
|
-
|
|
274
|
+
Oe("span", {
|
|
281
275
|
class: Sr([{ "beam--alert": !t.complete }, "beam--normal"])
|
|
282
276
|
}, at(n.value), 3)
|
|
283
277
|
]));
|
|
@@ -285,8 +279,8 @@ const Il = /* @__PURE__ */ He(El, [["render", Al], ["__scopeId", "data-v-5182a4d
|
|
|
285
279
|
}), jl = {}, Dl = { class: "beam_modal-confirm" };
|
|
286
280
|
function Fl(e, n) {
|
|
287
281
|
const t = yt("BeamBtn");
|
|
288
|
-
return
|
|
289
|
-
n[4] || (n[4] =
|
|
282
|
+
return Pe(), Me("div", Dl, [
|
|
283
|
+
n[4] || (n[4] = Oe("h2", null, "Would you like to continue?", -1)),
|
|
290
284
|
vt(t, {
|
|
291
285
|
onClick: n[0] || (n[0] = (a) => e.$emit("confirmmodal"))
|
|
292
286
|
}, {
|
|
@@ -307,7 +301,7 @@ function Fl(e, n) {
|
|
|
307
301
|
}
|
|
308
302
|
const Wl = /* @__PURE__ */ He(jl, [["render", Fl], ["__scopeId", "data-v-5b430dca"]]), $l = {}, ql = { class: "fixed-top" };
|
|
309
303
|
function Vl(e, n) {
|
|
310
|
-
return
|
|
304
|
+
return Pe(), Me("div", ql, [
|
|
311
305
|
lt(e.$slots, "default", {}, void 0, !0)
|
|
312
306
|
]);
|
|
313
307
|
}
|
|
@@ -320,15 +314,15 @@ const Hl = /* @__PURE__ */ He($l, [["render", Vl], ["__scopeId", "data-v-a38a41d
|
|
|
320
314
|
emits: ["update:modelValue"],
|
|
321
315
|
setup(e) {
|
|
322
316
|
const n = Qo(e, "modelValue");
|
|
323
|
-
return (t, a) => (
|
|
324
|
-
Yo(
|
|
317
|
+
return (t, a) => (Pe(), Me("label", Kl, [
|
|
318
|
+
Yo(Oe("input", {
|
|
325
319
|
type: "checkbox",
|
|
326
320
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => n.value = u),
|
|
327
321
|
tabindex: "-1"
|
|
328
322
|
}, null, 512), [
|
|
329
323
|
[za, n.value]
|
|
330
324
|
]),
|
|
331
|
-
a[1] || (a[1] =
|
|
325
|
+
a[1] || (a[1] = Oe("div", {
|
|
332
326
|
class: "checkmark",
|
|
333
327
|
tabindex: "0"
|
|
334
328
|
}, null, -1))
|
|
@@ -388,16 +382,16 @@ const Jl = { class: "beam_item-count" }, Zl = ["contenteditable"], Xl = { key: 0
|
|
|
388
382
|
const s = Number(r.target.innerHTML) || 0;
|
|
389
383
|
n.value = Math.min(s, e.denominator);
|
|
390
384
|
}, u = Gl((r) => a(r), e.debounce), i = async (r) => await u(r);
|
|
391
|
-
return (r, s) => (
|
|
392
|
-
|
|
385
|
+
return (r, s) => (Pe(), Me("div", Jl, [
|
|
386
|
+
Oe("span", {
|
|
393
387
|
contenteditable: r.editable,
|
|
394
388
|
class: Sr({ "beam--alert": !t.value }),
|
|
395
389
|
onClick: to(a, ["stop", "prevent"]),
|
|
396
390
|
onInput: to(i, ["stop", "prevent"]),
|
|
397
391
|
onPaste: a
|
|
398
392
|
}, at(n.value), 43, Zl),
|
|
399
|
-
r.denominator ? (
|
|
400
|
-
r.uom ? (
|
|
393
|
+
r.denominator ? (Pe(), Me("span", Xl, "/" + at(r.denominator), 1)) : Er("", !0),
|
|
394
|
+
r.uom ? (Pe(), Me("span", eu, " " + at(r.uom), 1)) : Er("", !0)
|
|
401
395
|
]));
|
|
402
396
|
}
|
|
403
397
|
}), Zo = /* @__PURE__ */ He(tu, [["__scopeId", "data-v-ec1a0218"]]), ru = ["href"], nu = /* @__PURE__ */ ze({
|
|
@@ -406,7 +400,7 @@ const Jl = { class: "beam_item-count" }, Zl = ["contenteditable"], Xl = { key: 0
|
|
|
406
400
|
to: { default: "" }
|
|
407
401
|
},
|
|
408
402
|
setup(e) {
|
|
409
|
-
return (n, t) => (
|
|
403
|
+
return (n, t) => (Pe(), Me("a", {
|
|
410
404
|
href: n.to,
|
|
411
405
|
class: "beam_list-anchor"
|
|
412
406
|
}, [
|
|
@@ -430,12 +424,12 @@ const Jl = { class: "beam_item-count" }, Zl = ["contenteditable"], Xl = { key: 0
|
|
|
430
424
|
t("update", u);
|
|
431
425
|
},
|
|
432
426
|
{ deep: !0 }
|
|
433
|
-
), (u, i) => (
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
427
|
+
), (u, i) => (Pe(), Me("li", ou, [
|
|
428
|
+
Oe("div", su, [
|
|
429
|
+
Oe("label", au, at(a.value.label), 1),
|
|
430
|
+
Oe("p", null, at(a.value.description), 1)
|
|
437
431
|
]),
|
|
438
|
-
a.value.count ? (
|
|
432
|
+
a.value.count ? (Pe(), Zt(Zo, {
|
|
439
433
|
key: 0,
|
|
440
434
|
modelValue: a.value.count.count,
|
|
441
435
|
"onUpdate:modelValue": i[0] || (i[0] = (r) => a.value.count.count = r),
|
|
@@ -444,7 +438,7 @@ const Jl = { class: "beam_item-count" }, Zl = ["contenteditable"], Xl = { key: 0
|
|
|
444
438
|
editable: !0,
|
|
445
439
|
uom: a.value.count.uom
|
|
446
440
|
}, null, 8, ["modelValue", "debounce", "denominator", "uom"])) : Er("", !0),
|
|
447
|
-
a.value.hasOwnProperty("checked") ? (
|
|
441
|
+
a.value.hasOwnProperty("checked") ? (Pe(), Zt(Jo, {
|
|
448
442
|
key: 1,
|
|
449
443
|
modelValue: a.value.checked,
|
|
450
444
|
"onUpdate:modelValue": i[1] || (i[1] = (r) => a.value.checked = r)
|
|
@@ -468,14 +462,14 @@ const Jl = { class: "beam_item-count" }, Zl = ["contenteditable"], Xl = { key: 0
|
|
|
468
462
|
const i = document.documentElement.scrollHeight - window.innerHeight, r = document.documentElement.scrollTop;
|
|
469
463
|
i - r <= 2 && t("scrollbottom");
|
|
470
464
|
};
|
|
471
|
-
return (i, r) => (
|
|
472
|
-
(
|
|
473
|
-
key: s.label
|
|
465
|
+
return (i, r) => (Pe(), Me("ul", uu, [
|
|
466
|
+
(Pe(!0), Me(Dr, null, zo(i.items, (s) => (Pe(), Me("li", {
|
|
467
|
+
key: s.barcode || s.label
|
|
474
468
|
}, [
|
|
475
|
-
s.linkComponent == "BeamDayDivider" ? (
|
|
469
|
+
s.linkComponent == "BeamDayDivider" ? (Pe(), Zt(Go, {
|
|
476
470
|
key: 0,
|
|
477
471
|
item: s
|
|
478
|
-
}, null, 8, ["item"])) : s.linkComponent ? (
|
|
472
|
+
}, null, 8, ["item"])) : s.linkComponent ? (Pe(), Zt(Ja(s.linkComponent), {
|
|
479
473
|
key: 1,
|
|
480
474
|
to: s.route,
|
|
481
475
|
tabindex: "-1"
|
|
@@ -487,7 +481,7 @@ const Jl = { class: "beam_item-count" }, Zl = ["contenteditable"], Xl = { key: 0
|
|
|
487
481
|
}, null, 8, ["item"])
|
|
488
482
|
]),
|
|
489
483
|
_: 2
|
|
490
|
-
}, 1032, ["to"])) : (
|
|
484
|
+
}, 1032, ["to"])) : (Pe(), Zt(gn, {
|
|
491
485
|
key: 2,
|
|
492
486
|
item: s,
|
|
493
487
|
onUpdate: a
|
|
@@ -495,7 +489,7 @@ const Jl = { class: "beam_item-count" }, Zl = ["contenteditable"], Xl = { key: 0
|
|
|
495
489
|
]))), 128))
|
|
496
490
|
]));
|
|
497
491
|
}
|
|
498
|
-
}), cu = /* @__PURE__ */ He(hu, [["__scopeId", "data-v-
|
|
492
|
+
}), cu = /* @__PURE__ */ He(hu, [["__scopeId", "data-v-d536b2a7"]]), fu = { class: "beam_navbar" }, du = /* @__PURE__ */ ze({
|
|
499
493
|
__name: "Navbar",
|
|
500
494
|
emits: ["click"],
|
|
501
495
|
setup(e, { emit: n }) {
|
|
@@ -504,7 +498,7 @@ const Jl = { class: "beam_item-count" }, Zl = ["contenteditable"], Xl = { key: 0
|
|
|
504
498
|
};
|
|
505
499
|
return (u, i) => {
|
|
506
500
|
const r = yt("BeamHeading"), s = yt("BeamBtn");
|
|
507
|
-
return
|
|
501
|
+
return Pe(), Me("nav", fu, [
|
|
508
502
|
lt(u.$slots, "title", {}, () => [
|
|
509
503
|
vt(r, null, {
|
|
510
504
|
default: wt(() => i[0] || (i[0] = [
|
|
@@ -884,7 +878,7 @@ const io = /* @__PURE__ */ mu(bu), yu = { id: "scan_input" }, vu = /* @__PURE__
|
|
|
884
878
|
t("scanInstance", u);
|
|
885
879
|
}), ji(() => {
|
|
886
880
|
io.detachFrom(window);
|
|
887
|
-
}), (u, i) => (
|
|
881
|
+
}), (u, i) => (Pe(), Me("div", yu));
|
|
888
882
|
}
|
|
889
883
|
}), wu = /* @__PURE__ */ ze({
|
|
890
884
|
__name: "SegmentedDisplay",
|
|
@@ -895,32 +889,32 @@ const io = /* @__PURE__ */ mu(bu), yu = { id: "scan_input" }, vu = /* @__PURE__
|
|
|
895
889
|
textColor: { default: "white" }
|
|
896
890
|
},
|
|
897
891
|
setup(e) {
|
|
898
|
-
const n = Hr(() => e.displayInput
|
|
899
|
-
return (a, u) => (
|
|
892
|
+
const n = Hr(() => e.displayInput === 0 ? 0 .toFixed(e.decimalPlaces) : e.displayInput.toFixed(e.decimalPlaces)), t = (a) => a.substr(0, 2) == "--" ? `var(${a})` : a;
|
|
893
|
+
return (a, u) => (Pe(), Me("div", {
|
|
900
894
|
class: "segmented-display",
|
|
901
895
|
style: ur({ background: t(a.displayColor) })
|
|
902
896
|
}, [
|
|
903
|
-
|
|
897
|
+
Oe("h1", {
|
|
904
898
|
class: "segmented-display-output",
|
|
905
899
|
style: ur({ color: t(a.textColor) })
|
|
906
900
|
}, at(n.value), 5)
|
|
907
901
|
], 4));
|
|
908
902
|
}
|
|
909
|
-
}), _u = /* @__PURE__ */ He(wu, [["__scopeId", "data-v-
|
|
903
|
+
}), _u = /* @__PURE__ */ He(wu, [["__scopeId", "data-v-140e435e"]]), Eu = { class: "column column-left" }, Su = { class: "column column-right" }, Au = /* @__PURE__ */ ze({
|
|
910
904
|
__name: "SplitColumn",
|
|
911
905
|
props: {
|
|
912
906
|
justifyContent: {},
|
|
913
907
|
alignItems: {}
|
|
914
908
|
},
|
|
915
909
|
setup(e) {
|
|
916
|
-
return (n, t) => (
|
|
910
|
+
return (n, t) => (Pe(), Me("div", {
|
|
917
911
|
class: "two-column",
|
|
918
912
|
style: ur({ justifyContent: n.justifyContent || "space-between", alignItems: n.alignItems || "flex-start" })
|
|
919
913
|
}, [
|
|
920
|
-
|
|
914
|
+
Oe("div", Eu, [
|
|
921
915
|
lt(n.$slots, "left", {}, void 0, !0)
|
|
922
916
|
]),
|
|
923
|
-
|
|
917
|
+
Oe("div", Su, [
|
|
924
918
|
lt(n.$slots, "right", {}, void 0, !0)
|
|
925
919
|
])
|
|
926
920
|
], 4));
|
|
@@ -931,14 +925,14 @@ const io = /* @__PURE__ */ mu(bu), yu = { id: "scan_input" }, vu = /* @__PURE__
|
|
|
931
925
|
open: { type: Boolean }
|
|
932
926
|
},
|
|
933
927
|
setup(e) {
|
|
934
|
-
return (n, t) => (
|
|
928
|
+
return (n, t) => (Pe(), Me("div", {
|
|
935
929
|
class: Sr(["arrow-icon", { open: n.open }])
|
|
936
930
|
}, t[0] || (t[0] = [
|
|
937
|
-
|
|
931
|
+
Oe("svg", {
|
|
938
932
|
xmlns: "http://www.w3.org/2000/svg",
|
|
939
933
|
viewBox: "0 0 35.36 70.71"
|
|
940
934
|
}, [
|
|
941
|
-
|
|
935
|
+
Oe("polygon", { points: "0 70.71 0 0 35.36 35.36 0 70.71" })
|
|
942
936
|
], -1)
|
|
943
937
|
]), 2));
|
|
944
938
|
}
|
|
@@ -10591,7 +10585,9 @@ const mc = gc();
|
|
|
10591
10585
|
@jspm/core/nodelibs/browser/buffer.js:
|
|
10592
10586
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
10593
10587
|
*/
|
|
10594
|
-
const
|
|
10588
|
+
const wc = async (e) => {
|
|
10589
|
+
if (e.host && e.port && !await bc(e.host, e.port))
|
|
10590
|
+
return;
|
|
10595
10591
|
const n = Ot(), t = Ot({});
|
|
10596
10592
|
return Kr(() => {
|
|
10597
10593
|
n.value = mc.connect(e), e.topics || (e.topics = ["#"]);
|
|
@@ -10607,8 +10603,26 @@ const vc = (e) => {
|
|
|
10607
10603
|
var a;
|
|
10608
10604
|
(a = n.value) == null || a.end();
|
|
10609
10605
|
}), { messages: t };
|
|
10606
|
+
}, bc = async (e, n) => {
|
|
10607
|
+
try {
|
|
10608
|
+
const t = new AbortController(), a = setTimeout(() => t.abort(), 2e3);
|
|
10609
|
+
try {
|
|
10610
|
+
return await fetch(`${e}:${n}`, {
|
|
10611
|
+
mode: "no-cors",
|
|
10612
|
+
// This allows checking without CORS issues
|
|
10613
|
+
signal: t.signal
|
|
10614
|
+
}), clearTimeout(a), !0;
|
|
10615
|
+
} catch (u) {
|
|
10616
|
+
if (clearTimeout(a), u instanceof DOMException && u.name === "AbortError")
|
|
10617
|
+
return !1;
|
|
10618
|
+
const i = String(u);
|
|
10619
|
+
return !(i.includes("NetworkError") || i.includes("Failed to fetch") || i.includes("net::ERR_CONNECTION_REFUSED"));
|
|
10620
|
+
}
|
|
10621
|
+
} catch {
|
|
10622
|
+
return !1;
|
|
10623
|
+
}
|
|
10610
10624
|
};
|
|
10611
|
-
function
|
|
10625
|
+
function _c(e) {
|
|
10612
10626
|
e.component("ActionFooter", tl), e.component("BeamArrow", sl), e.component("BeamBtn", hl), e.component("BeamDayDivider", Go), e.component("BeamFilter", gl), e.component("BeamFilterOption", _l), e.component("BeamHeading", Il), e.component("BeamMetadata", Rl), e.component("BeamModal", xl), e.component("BeamModalOutlet", Ll), e.component("BeamProgress", Nl), e.component("Confirm", Wl), e.component("FixedTop", Hl), e.component("ItemCheck", Jo), e.component("ItemCount", Zo), e.component("ListAnchor", iu), e.component("ListItem", gn), e.component("ListView", cu), e.component("Navbar", pu), e.component("ScanInput", vu), e.component("SegmentedDisplay", _u), e.component("SplitColumn", Iu), e.component("ToggleArrow", ku);
|
|
10613
10627
|
}
|
|
10614
10628
|
export {
|
|
@@ -10635,7 +10649,7 @@ export {
|
|
|
10635
10649
|
_u as SegmentedDisplay,
|
|
10636
10650
|
Iu as SplitColumn,
|
|
10637
10651
|
ku as ToggleArrow,
|
|
10638
|
-
|
|
10639
|
-
|
|
10652
|
+
_c as install,
|
|
10653
|
+
wc as useMqttStream
|
|
10640
10654
|
};
|
|
10641
10655
|
//# sourceMappingURL=beam.js.map
|