bt-core-app 2.2.6 → 2.2.7
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/bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs +10 -11
- package/dist/components/BT-Background-Task.vue.mjs +44 -46
- package/dist/components/BT-Blade-Item.vue.mjs +64 -63
- package/dist/components/BT-Blade-Items.vue.mjs +2 -2
- package/dist/components/BT-Blade-Items.vue2.mjs +239 -238
- package/dist/components/BT-Blade-Steps.vue.mjs +2 -2
- package/dist/components/BT-Blade-Steps.vue2.mjs +457 -456
- package/dist/components/BT-Blade.vue.mjs +187 -189
- package/dist/components/BT-Camera-Overlay.vue.mjs +139 -141
- package/dist/components/BT-Cron.vue.mjs +127 -126
- package/dist/components/BT-Dialog-Select.vue.mjs +91 -90
- package/dist/components/BT-Drag-Counter.vue.mjs +2 -2
- package/dist/components/BT-Drag-Counter.vue2.mjs +87 -89
- package/dist/components/BT-Entity.vue.mjs +79 -81
- package/dist/components/BT-Error.vue.mjs +23 -25
- package/dist/components/BT-Form-Builder.vue.mjs +221 -220
- package/dist/components/BT-Form-Field.vue.mjs +67 -66
- package/dist/components/BT-Form.vue.mjs +192 -191
- package/dist/components/BT-Header-Option.vue.mjs +21 -20
- package/dist/components/BT-Numpad.vue.mjs +143 -145
- package/dist/components/BT-Select-List-Box.vue.mjs +270 -272
- package/dist/components/BT-Signature-Overlay.vue.mjs +107 -109
- package/dist/components/BT-Signature.vue.mjs +91 -93
- package/dist/components/BT-Slider.vue.mjs +91 -93
- package/dist/components/BT-Square-Check.vue.mjs +66 -68
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isLengthyArray as
|
|
1
|
+
import { defineComponent as H, ref as u, computed as $, watch as I, onUnmounted as N, openBlock as n, createElementBlock as V, createBlock as m, unref as l, mergeProps as O, withModifiers as P, createCommentVNode as f, createVNode as r, withCtx as p, normalizeStyle as F, renderSlot as R, createElementVNode as D } from "vue";
|
|
2
|
+
import { isLengthyArray as X } from "../composables/helpers.mjs";
|
|
3
3
|
import { VBtn as y } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
|
|
4
|
-
import { VOverlay as
|
|
5
|
-
import { VCard as
|
|
6
|
-
import {
|
|
7
|
-
|
|
4
|
+
import { VOverlay as S } from "../bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs";
|
|
5
|
+
import { VCard as T } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
|
|
6
|
+
import { VSlideXReverseTransition as A, VSlideXTransition as W } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
|
|
7
|
+
import { VProgressCircular as q } from "../bt-core/core/node_modules/vuetify/lib/components/VProgressCircular/VProgressCircular.mjs";
|
|
8
|
+
const G = ["src"], ae = /* @__PURE__ */ H({
|
|
8
9
|
__name: "BT-Camera-Overlay",
|
|
9
10
|
props: {
|
|
10
11
|
color: {},
|
|
@@ -14,162 +15,159 @@ const K = ["src"], ae = /* @__PURE__ */ O({
|
|
|
14
15
|
usedHeight: { default: 0 }
|
|
15
16
|
},
|
|
16
17
|
emits: ["cancel", "change", "close", "open", "update:modelValue"],
|
|
17
|
-
setup(
|
|
18
|
-
const s =
|
|
19
|
-
|
|
18
|
+
setup(_, { emit: E }) {
|
|
19
|
+
const s = E, h = _, c = u(null), x = u("environment"), i = u(!0), g = u(), o = u(null), k = u([]), L = $(() => h.fullscreen == !0 ? `height: calc(100vh - ${h.usedHeight}px); width: 100%;` : ""), a = u(), v = u(!1), z = $(() => i.value ? !0 : a.value == null ? g.value == null : i.value);
|
|
20
|
+
I(() => h.openToggle, async () => {
|
|
20
21
|
await w();
|
|
21
22
|
});
|
|
22
23
|
function d() {
|
|
23
|
-
var
|
|
24
|
-
const e = (
|
|
25
|
-
|
|
24
|
+
var t;
|
|
25
|
+
const e = (t = g.value) == null ? void 0 : t.getVideoTracks();
|
|
26
|
+
X(e) && (e == null || e.forEach((C) => C.stop()));
|
|
26
27
|
}
|
|
27
|
-
async function
|
|
28
|
+
async function B(e) {
|
|
28
29
|
o.value != null && (x.value = e, g.value = await navigator.mediaDevices.getUserMedia({
|
|
29
30
|
video: { facingMode: e }
|
|
30
31
|
}), o.value.srcObject = g.value, await o.value.play());
|
|
31
32
|
}
|
|
32
|
-
async function
|
|
33
|
-
|
|
33
|
+
async function M() {
|
|
34
|
+
i.value = !0, d(), await B(x.value == "environment" ? "user" : "environment"), i.value = !1;
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function U() {
|
|
36
37
|
if (o.value == null || c.value == null)
|
|
37
38
|
return;
|
|
38
39
|
c.value.width = o.value.videoWidth, c.value.height = o.value.videoHeight;
|
|
39
40
|
let e = c.value.getContext("2d");
|
|
40
|
-
e != null && (e.save(), e.drawImage(o.value, 0, 0), e.restore(),
|
|
41
|
+
e != null && (e.save(), e.drawImage(o.value, 0, 0), e.restore(), a.value = c.value.toDataURL("image/png"), d());
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
-
d(), s("update:modelValue",
|
|
43
|
+
function b() {
|
|
44
|
+
d(), s("update:modelValue", a.value), s("change", a.value), s("close"), v.value = !1;
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function j() {
|
|
46
47
|
d(), s("cancel"), s("close"), v.value = !1;
|
|
47
48
|
}
|
|
48
49
|
async function w() {
|
|
49
|
-
|
|
50
|
+
i.value = !0, v.value = !0, a.value = void 0;
|
|
50
51
|
const e = await navigator.mediaDevices.enumerateDevices();
|
|
51
|
-
k.value = e.filter((
|
|
52
|
+
k.value = e.filter((t) => t.kind === "videoinput"), await B(k.value.length == 1 ? "user" : "environment"), s("open"), i.value = !1;
|
|
52
53
|
}
|
|
53
|
-
return
|
|
54
|
+
return N(() => {
|
|
54
55
|
d();
|
|
55
|
-
}), (e,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}, 8, ["modelValue"])
|
|
171
|
-
]);
|
|
172
|
-
};
|
|
56
|
+
}), (e, t) => (n(), V("div", null, [
|
|
57
|
+
!e.hideButton && !v.value ? (n(), m(l(y), O({
|
|
58
|
+
key: 0,
|
|
59
|
+
onClick: P(w, ["stop"])
|
|
60
|
+
}, e.$attrs), null, 16)) : f("", !0),
|
|
61
|
+
r(l(S), {
|
|
62
|
+
"onClick:outside": t[0] || (t[0] = () => d()),
|
|
63
|
+
modelValue: v.value,
|
|
64
|
+
"onUpdate:modelValue": t[1] || (t[1] = (C) => v.value = C),
|
|
65
|
+
"z-index": "1001"
|
|
66
|
+
}, {
|
|
67
|
+
default: p(() => [
|
|
68
|
+
r(l(T), {
|
|
69
|
+
class: "pa-0 ma-0 d-flex align-center justify-center",
|
|
70
|
+
color: e.color,
|
|
71
|
+
style: F(L.value)
|
|
72
|
+
}, {
|
|
73
|
+
default: p(() => [
|
|
74
|
+
R(e.$slots, "top"),
|
|
75
|
+
D("canvas", {
|
|
76
|
+
style: { display: "none" },
|
|
77
|
+
ref_key: "canva",
|
|
78
|
+
ref: c
|
|
79
|
+
}, null, 512),
|
|
80
|
+
r(l(T), {
|
|
81
|
+
class: "d-flex flex-column align-center justify-center",
|
|
82
|
+
color: "primary",
|
|
83
|
+
style: { position: "fixed", opacity: "0.75", right: "0" },
|
|
84
|
+
width: "60"
|
|
85
|
+
}, {
|
|
86
|
+
default: p(() => [
|
|
87
|
+
r(l(A), {
|
|
88
|
+
"hide-on-leave": "",
|
|
89
|
+
group: ""
|
|
90
|
+
}, {
|
|
91
|
+
default: p(() => [
|
|
92
|
+
a.value == null ? (n(), m(l(y), {
|
|
93
|
+
class: "my-3",
|
|
94
|
+
onClick: j,
|
|
95
|
+
icon: "$close",
|
|
96
|
+
key: "1",
|
|
97
|
+
variant: "tonal"
|
|
98
|
+
})) : f("", !0),
|
|
99
|
+
a.value != null ? (n(), m(l(y), {
|
|
100
|
+
class: "my-3",
|
|
101
|
+
onClick: w,
|
|
102
|
+
icon: "$close",
|
|
103
|
+
key: "2",
|
|
104
|
+
variant: "tonal"
|
|
105
|
+
})) : f("", !0),
|
|
106
|
+
a.value == null ? (n(), m(l(y), {
|
|
107
|
+
class: "text-error my-3",
|
|
108
|
+
onClick: U,
|
|
109
|
+
icon: "$circle",
|
|
110
|
+
key: "3",
|
|
111
|
+
variant: "tonal"
|
|
112
|
+
})) : f("", !0),
|
|
113
|
+
a.value != null ? (n(), m(l(y), {
|
|
114
|
+
class: "my-3",
|
|
115
|
+
onClick: b,
|
|
116
|
+
icon: "$check",
|
|
117
|
+
key: "4",
|
|
118
|
+
variant: "tonal"
|
|
119
|
+
})) : f("", !0),
|
|
120
|
+
a.value == null ? (n(), m(l(y), {
|
|
121
|
+
key: 4,
|
|
122
|
+
class: "my-3",
|
|
123
|
+
onClick: M,
|
|
124
|
+
disabled: i.value || k.value.length < 2,
|
|
125
|
+
icon: "$camera-flip",
|
|
126
|
+
variant: "tonal"
|
|
127
|
+
}, null, 8, ["disabled"])) : f("", !0)
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
})
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}),
|
|
134
|
+
r(l(W), null, {
|
|
135
|
+
default: p(() => [
|
|
136
|
+
a.value == null ? (n(), V("video", {
|
|
137
|
+
key: 0,
|
|
138
|
+
ref_key: "videoEl",
|
|
139
|
+
ref: o,
|
|
140
|
+
style: { height: "100vh", width: "100vw" }
|
|
141
|
+
}, null, 512)) : (n(), V("img", {
|
|
142
|
+
key: 1,
|
|
143
|
+
cover: "",
|
|
144
|
+
src: a.value,
|
|
145
|
+
style: { "max-height": "100vh", "max-width": "100vw" }
|
|
146
|
+
}, null, 8, G))
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
}),
|
|
150
|
+
r(l(S), {
|
|
151
|
+
value: z.value,
|
|
152
|
+
class: "text-center",
|
|
153
|
+
"z-index": "1002"
|
|
154
|
+
}, {
|
|
155
|
+
default: p(() => [
|
|
156
|
+
r(l(q), {
|
|
157
|
+
indeterminate: "",
|
|
158
|
+
size: "32"
|
|
159
|
+
}),
|
|
160
|
+
t[2] || (t[2] = D("p", null, "Loading Image", -1))
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
}, 8, ["value"])
|
|
164
|
+
]),
|
|
165
|
+
_: 3
|
|
166
|
+
}, 8, ["color", "style"])
|
|
167
|
+
]),
|
|
168
|
+
_: 3
|
|
169
|
+
}, 8, ["modelValue"])
|
|
170
|
+
]));
|
|
173
171
|
}
|
|
174
172
|
});
|
|
175
173
|
export {
|