bt-core-app 2.2.6 → 2.2.8

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