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 P, computed as g, ref as h, watch as p, toValue as f, resolveComponent as T, openBlock as E, createElementBlock as M, createBlock as j, unref as a, mergeProps as z, withModifiers as H, createCommentVNode as J, createVNode as n, withCtx as m, normalizeStyle as A, renderSlot as L } from "vue";
2
- import { VueSignaturePad as U } from "../bt-core/core/node_modules/vue-signature-pad/dist/vue-signature-pad.esm.mjs";
3
- import { useTheme as X } from "vuetify";
4
- import { VBtn as y } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
5
- import { VOverlay as Y } from "../bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs";
6
- import { VCard as S } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
7
- const W = /* @__PURE__ */ P({
1
+ import { defineComponent as P, computed as g, ref as h, watch as d, toValue as f, openBlock as S, createElementBlock as M, createBlock as _, unref as t, mergeProps as j, withModifiers as z, createCommentVNode as H, createVNode as n, withCtx as p, normalizeStyle as J, renderSlot as X } from "vue";
2
+ import { VueSignaturePad as A } from "../bt-core/core/node_modules/vue-signature-pad/dist/vue-signature-pad.esm.mjs";
3
+ import { useTheme as L } from "vuetify";
4
+ import { VBtn as m } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
5
+ import { VOverlay as R } from "../bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs";
6
+ import { VCard as E } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
7
+ import { VSlideXReverseTransition as U } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
8
+ const Z = /* @__PURE__ */ P({
8
9
  __name: "BT-Signature-Overlay",
9
10
  props: {
10
11
  canEdit: { type: Boolean },
@@ -19,131 +20,128 @@ const W = /* @__PURE__ */ P({
19
20
  usedHeight: { default: 0 }
20
21
  },
21
22
  emits: ["cancel", "change", "close", "open", "update:modelValue"],
22
- setup(x, { emit: _ }) {
23
- const i = _, l = x, w = g(() => l.fullscreen == !0 ? `height: calc(100vh - ${l.usedHeight}px); width: 100%;` : ""), u = h(), s = h(!1), c = h(null), $ = X(), V = g(() => l.lineColor ?? ($.name.value == "dark" ? "white" : "black")), b = g(() => ({
24
- penColor: V.value
23
+ setup(w, { emit: x }) {
24
+ const i = x, l = w, $ = g(() => l.fullscreen == !0 ? `height: calc(100vh - ${l.usedHeight}px); width: 100%;` : ""), u = h(), s = h(!1), c = h(null), b = L(), v = g(() => l.lineColor ?? (b.name.value == "dark" ? "white" : "black")), D = g(() => ({
25
+ penColor: v.value
25
26
  }));
26
- function v(e, r) {
27
+ function y(e, r) {
27
28
  if (e != null)
28
29
  if (r == null)
29
30
  e.clearSignature();
30
31
  else {
31
- const o = JSON.parse(r);
32
- o != null && o.length > 0 && e.fromData([{ color: V.value, points: o }]);
32
+ const a = JSON.parse(r);
33
+ a != null && a.length > 0 && e.fromData([{ color: v.value, points: a }]);
33
34
  }
34
35
  }
35
- p(c, (e) => {
36
- v(e, l.modelValue ?? l.signature);
37
- }), p(() => l.openToggle, () => {
38
- k();
39
- }), p(() => l.modelValue, (e) => {
40
- v(f(c), e);
41
- }), p(() => l.signature, (e) => {
42
- v(f(c), e);
36
+ d(c, (e) => {
37
+ y(e, l.modelValue ?? l.signature);
38
+ }), d(() => l.openToggle, () => {
39
+ V();
40
+ }), d(() => l.modelValue, (e) => {
41
+ y(f(c), e);
42
+ }), d(() => l.signature, (e) => {
43
+ y(f(c), e);
43
44
  });
44
- function D() {
45
+ function O() {
45
46
  const e = f(c);
46
47
  if (e != null && !e.isEmpty()) {
47
- const r = e.toData(), o = [];
48
- r.forEach((t) => {
49
- t.points.forEach((B) => {
50
- o.push({ x: B.x, y: B.y });
48
+ const r = e.toData(), a = [];
49
+ r.forEach((o) => {
50
+ o.points.forEach((C) => {
51
+ a.push({ x: C.x, y: C.y });
51
52
  });
52
53
  });
53
- let d = Math.min(...o.map((t) => t.x)), C = Math.min(...o.map((t) => t.y));
54
- d > 1 && o.forEach((t) => {
55
- t.x -= d;
56
- }), C > 1 && o.forEach((t) => {
57
- t.y -= C;
58
- }), u.value = JSON.stringify(o), (l.modelValue ?? l.signature) != u.value && (i("update:modelValue", u.value), i("change", u.value), i("close"), s.value = !1);
54
+ let k = Math.min(...a.map((o) => o.x)), B = Math.min(...a.map((o) => o.y));
55
+ k > 1 && a.forEach((o) => {
56
+ o.x -= k;
57
+ }), B > 1 && a.forEach((o) => {
58
+ o.y -= B;
59
+ }), u.value = JSON.stringify(a), (l.modelValue ?? l.signature) != u.value && (i("update:modelValue", u.value), i("change", u.value), i("close"), s.value = !1);
59
60
  }
60
61
  }
61
- function O() {
62
+ function T() {
62
63
  i("cancel"), i("close"), s.value = !1;
63
64
  }
64
65
  function N() {
65
66
  const e = f(c);
66
67
  e != null && !e.isEmpty() && e.clearSignature(), u.value = void 0;
67
68
  }
68
- function k() {
69
+ function V() {
69
70
  u.value = l.modelValue ?? l.signature, s.value = !0, i("open");
70
71
  }
71
- return (e, r) => {
72
- const o = T("v-slide-x-reverse-transition");
73
- return E(), M("div", null, [
74
- !e.hideButton && !s.value ? (E(), j(a(y), z({
75
- key: 0,
76
- onClick: H(k, ["stop"])
77
- }, e.$attrs), null, 16)) : J("", !0),
78
- n(a(Y), {
79
- modelValue: s.value,
80
- "onUpdate:modelValue": r[0] || (r[0] = (d) => s.value = d),
81
- "z-index": "1001"
82
- }, {
83
- default: m(() => [
84
- n(a(S), {
85
- class: "pa-0 ma-0 d-flex align-center justify-center",
86
- color: e.color,
87
- style: A(w.value)
88
- }, {
89
- default: m(() => [
90
- L(e.$slots, "top"),
91
- n(a(U), {
92
- options: b.value,
93
- ref_key: "signaturePad",
94
- ref: c
95
- }, null, 8, ["options"]),
96
- n(a(S), {
97
- class: "d-flex flex-column align-center justify-center",
98
- color: "primary",
99
- style: { position: "fixed", opacity: "0.75", right: "0" },
100
- width: "60"
101
- }, {
102
- default: m(() => [
103
- n(o, {
104
- "hide-on-leave": "",
105
- group: ""
106
- }, {
107
- default: m(() => [
108
- n(a(y), {
109
- class: "my-3",
110
- onClick: O,
111
- icon: "$close",
112
- key: "1",
113
- variant: "tonal"
114
- }),
115
- n(a(y), {
116
- class: "my-3",
117
- onClick: N,
118
- disabled: !e.canEdit,
119
- icon: "$eraser",
120
- key: "3",
121
- variant: "tonal"
122
- }, null, 8, ["disabled"]),
123
- n(a(y), {
124
- class: "my-3",
125
- onClick: D,
126
- disabled: !e.canEdit,
127
- icon: "$check",
128
- key: "4",
129
- variant: "tonal"
130
- }, null, 8, ["disabled"])
131
- ]),
132
- _: 1
133
- })
134
- ]),
135
- _: 1
136
- })
137
- ]),
138
- _: 3
139
- }, 8, ["color", "style"])
140
- ]),
141
- _: 3
142
- }, 8, ["modelValue"])
143
- ]);
144
- };
72
+ return (e, r) => (S(), M("div", null, [
73
+ !e.hideButton && !s.value ? (S(), _(t(m), j({
74
+ key: 0,
75
+ onClick: z(V, ["stop"])
76
+ }, e.$attrs), null, 16)) : H("", !0),
77
+ n(t(R), {
78
+ modelValue: s.value,
79
+ "onUpdate:modelValue": r[0] || (r[0] = (a) => s.value = a),
80
+ "z-index": "1001"
81
+ }, {
82
+ default: p(() => [
83
+ n(t(E), {
84
+ class: "pa-0 ma-0 d-flex align-center justify-center",
85
+ color: e.color,
86
+ style: J($.value)
87
+ }, {
88
+ default: p(() => [
89
+ X(e.$slots, "top"),
90
+ n(t(A), {
91
+ options: D.value,
92
+ ref_key: "signaturePad",
93
+ ref: c
94
+ }, null, 8, ["options"]),
95
+ n(t(E), {
96
+ class: "d-flex flex-column align-center justify-center",
97
+ color: "primary",
98
+ style: { position: "fixed", opacity: "0.75", right: "0" },
99
+ width: "60"
100
+ }, {
101
+ default: p(() => [
102
+ n(t(U), {
103
+ "hide-on-leave": "",
104
+ group: ""
105
+ }, {
106
+ default: p(() => [
107
+ n(t(m), {
108
+ class: "my-3",
109
+ onClick: T,
110
+ icon: "$close",
111
+ key: "1",
112
+ variant: "tonal"
113
+ }),
114
+ n(t(m), {
115
+ class: "my-3",
116
+ onClick: N,
117
+ disabled: !e.canEdit,
118
+ icon: "$eraser",
119
+ key: "3",
120
+ variant: "tonal"
121
+ }, null, 8, ["disabled"]),
122
+ n(t(m), {
123
+ class: "my-3",
124
+ onClick: O,
125
+ disabled: !e.canEdit,
126
+ icon: "$check",
127
+ key: "4",
128
+ variant: "tonal"
129
+ }, null, 8, ["disabled"])
130
+ ]),
131
+ _: 1
132
+ })
133
+ ]),
134
+ _: 1
135
+ })
136
+ ]),
137
+ _: 3
138
+ }, 8, ["color", "style"])
139
+ ]),
140
+ _: 3
141
+ }, 8, ["modelValue"])
142
+ ]));
145
143
  }
146
144
  });
147
145
  export {
148
- W as default
146
+ Z as default
149
147
  };
@@ -1,9 +1,10 @@
1
- import { defineComponent as D, ref as y, computed as c, toValue as r, watch as x, onMounted as z, onUnmounted as J, resolveComponent as W, openBlock as k, createBlock as S, unref as m, normalizeStyle as j, withCtx as w, renderSlot as L, createVNode as V, createCommentVNode as B } from "vue";
2
- import { VueSignaturePad as U } from "../bt-core/core/node_modules/vue-signature-pad/dist/vue-signature-pad.esm.mjs";
3
- import { useTheme as X } from "vuetify";
1
+ import { defineComponent as D, ref as y, computed as c, toValue as r, watch as k, onMounted as z, onUnmounted as J, openBlock as S, createBlock as x, unref as s, normalizeStyle as W, withCtx as V, renderSlot as X, createVNode as w, createCommentVNode as T } from "vue";
2
+ import { VueSignaturePad as j } from "../bt-core/core/node_modules/vue-signature-pad/dist/vue-signature-pad.esm.mjs";
3
+ import { useTheme as L } from "vuetify";
4
4
  import { VCard as O } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
5
- import { VBtn as T } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
6
- const K = /* @__PURE__ */ D({
5
+ import { VSlideXReverseTransition as U } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
6
+ import { VBtn as _ } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
7
+ const Q = /* @__PURE__ */ D({
7
8
  __name: "BT-Signature",
8
9
  props: {
9
10
  canEdit: { type: Boolean },
@@ -20,59 +21,59 @@ const K = /* @__PURE__ */ D({
20
21
  },
21
22
  emits: ["change", "update:modelValue"],
22
23
  setup($, { emit: M }) {
23
- const _ = M, a = $, l = y(), p = y(!1), n = y(null), H = X(), h = c(() => {
24
- const e = r(n);
24
+ const C = M, a = $, l = y(), h = y(!1), t = y(null), R = L(), p = c(() => {
25
+ const e = r(t);
25
26
  if (e != null)
26
27
  return e.signaturePad.canvas.height / window.devicePixelRatio;
27
28
  }), g = c(() => {
28
- const e = r(n);
29
+ const e = r(t);
29
30
  if (e != null)
30
31
  return e.signaturePad.canvas.width / window.devicePixelRatio;
31
- }), N = c(() => a.fullscreen == !0 ? `height: calc(100vh - ${a.usedHeight}px); width: ${a.width};` : `height: ${a.height}; width: ${a.width};`), d = c(() => !!a.canEdit), C = c(() => a.lineColor ?? (H.name.value == "dark" ? "white" : "black")), E = c(() => l.value != null && l.value != a.modelValue), R = c(() => ({
32
+ }), H = c(() => a.fullscreen == !0 ? `height: calc(100vh - ${a.usedHeight}px); width: ${a.width};` : `height: ${a.height}; width: ${a.width};`), d = c(() => !!a.canEdit), E = c(() => a.lineColor ?? (R.name.value == "dark" ? "white" : "black")), P = c(() => l.value != null && l.value != a.modelValue), N = c(() => ({
32
33
  dotSize: 0.5,
33
34
  onEnd: () => {
34
- const e = r(n);
35
+ const e = r(t);
35
36
  if (e != null && !e.isEmpty()) {
36
- const o = e.toData(), t = [];
37
+ const o = e.toData(), n = [];
37
38
  o.forEach((u) => {
38
39
  u.points.forEach((i) => {
39
- t.push({ x: i.x, y: i.y });
40
+ n.push({ x: i.x, y: i.y });
40
41
  });
41
42
  });
42
- let f = Math.min(...t.map((u) => u.x)), v = Math.min(...t.map((u) => u.y));
43
- f > 1 && t.forEach((u) => {
44
- u.x -= f;
45
- }), v > 1 && t.forEach((u) => {
43
+ let m = Math.min(...n.map((u) => u.x)), v = Math.min(...n.map((u) => u.y));
44
+ m > 1 && n.forEach((u) => {
45
+ u.x -= m;
46
+ }), v > 1 && n.forEach((u) => {
46
47
  u.y -= v;
47
- }), l.value = JSON.stringify(t);
48
+ }), l.value = JSON.stringify(n);
48
49
  }
49
50
  },
50
- penColor: C.value
51
+ penColor: E.value
51
52
  }));
52
- function s(e, o) {
53
+ function f(e, o) {
53
54
  if (e != null)
54
55
  if (o == null)
55
56
  e.clearSignature();
56
57
  else {
57
- const t = JSON.parse(o);
58
- t != null && t.length > 0 && e.fromData([{ color: C.value, points: A(t) }]);
58
+ const n = JSON.parse(o);
59
+ n != null && n.length > 0 && e.fromData([{ color: E.value, points: A(n) }]);
59
60
  }
60
61
  }
61
- x(n, (e) => {
62
+ k(t, (e) => {
62
63
  var o;
63
- l.value = a.modelValue, s(e, a.modelValue), d.value || (o = n.value) == null || o.lockSignaturePad();
64
- }), x(() => a.refreshToggle, () => {
64
+ l.value = a.modelValue, f(e, a.modelValue), d.value || (o = t.value) == null || o.lockSignaturePad();
65
+ }), k(() => a.refreshToggle, () => {
65
66
  var e;
66
- l.value = a.modelValue, s(r(n), l.value), d.value || (e = n.value) == null || e.lockSignaturePad();
67
- }), x(() => a.modelValue, (e) => {
67
+ l.value = a.modelValue, f(r(t), l.value), d.value || (e = t.value) == null || e.lockSignaturePad();
68
+ }), k(() => a.modelValue, (e) => {
68
69
  var o;
69
- l.value = e, s(r(n), e), d.value || (o = n.value) == null || o.lockSignaturePad();
70
+ l.value = e, f(r(t), e), d.value || (o = t.value) == null || o.lockSignaturePad();
70
71
  });
71
72
  function A(e) {
72
- if (h.value != null && g.value != null) {
73
- let o = Math.max(...e.map((i) => i.y)), t = Math.max(...e.map((i) => i.x)), f = 1, v = 1;
74
- o > h.value && (f = h.value / o), t > g.value && (v = g.value / t);
75
- let u = Math.min(f, v);
73
+ if (p.value != null && g.value != null) {
74
+ let o = Math.max(...e.map((i) => i.y)), n = Math.max(...e.map((i) => i.x)), m = 1, v = 1;
75
+ o > p.value && (m = p.value / o), n > g.value && (v = g.value / n);
76
+ let u = Math.min(m, v);
76
77
  if (u < 1)
77
78
  return e.map((i) => ({
78
79
  x: i.x * u,
@@ -81,77 +82,74 @@ const K = /* @__PURE__ */ D({
81
82
  }
82
83
  return e;
83
84
  }
84
- function P() {
85
- _("change", l.value), _("update:modelValue", l.value), a.clearOnOk && (l.value = void 0, s(r(n), l.value));
86
- }
87
85
  function b() {
88
- const e = r(n);
86
+ C("change", l.value), C("update:modelValue", l.value), a.clearOnOk && (l.value = void 0, f(r(t), l.value));
87
+ }
88
+ function B() {
89
+ const e = r(t);
89
90
  e != null && !e.isEmpty() && e.clearSignature(), l.value = void 0;
90
91
  }
91
92
  return z(() => {
92
93
  var e;
93
- l.value = a.modelValue, s(r(n), l.value), d.value || (e = n.value) == null || e.lockSignaturePad(), p.value = !0;
94
+ l.value = a.modelValue, f(r(t), l.value), d.value || (e = t.value) == null || e.lockSignaturePad(), h.value = !0;
94
95
  }), J(() => {
95
- p.value = !1;
96
- }), (e, o) => {
97
- const t = W("v-slide-x-reverse-transition");
98
- return k(), S(m(O), {
99
- color: e.color,
100
- style: j(N.value),
101
- variant: "elevated"
102
- }, {
103
- default: w(() => [
104
- L(e.$slots, "top", {
105
- apply: P,
106
- canApply: E.value,
107
- canEdit: d.value,
108
- clear: b
109
- }, () => [
110
- !e.hideToolbar && d.value ? (k(), S(m(O), {
111
- key: 0,
112
- class: "d-flex align-center justify-end mx-4",
113
- flat: ""
114
- }, {
115
- default: w(() => [
116
- V(t, {
117
- "hide-on-leave": "",
118
- group: ""
119
- }, {
120
- default: w(() => [
121
- V(m(T), {
122
- class: "my-3",
123
- onClick: b,
124
- disabled: l.value == null,
125
- icon: "$eraser",
126
- key: "3"
127
- }, null, 8, ["disabled"]),
128
- V(m(T), {
129
- onClick: P,
130
- class: "my-3",
131
- disabled: !E.value,
132
- icon: "$check",
133
- key: "4"
134
- }, null, 8, ["disabled"])
135
- ]),
136
- _: 1
137
- })
138
- ]),
139
- _: 1
140
- })) : B("", !0)
141
- ]),
142
- p.value ? (k(), S(m(U), {
96
+ h.value = !1;
97
+ }), (e, o) => (S(), x(s(O), {
98
+ color: e.color,
99
+ style: W(H.value),
100
+ variant: "elevated"
101
+ }, {
102
+ default: V(() => [
103
+ X(e.$slots, "top", {
104
+ apply: b,
105
+ canApply: P.value,
106
+ canEdit: d.value,
107
+ clear: B
108
+ }, () => [
109
+ !e.hideToolbar && d.value ? (S(), x(s(O), {
143
110
  key: 0,
144
- disabled: !d.value,
145
- options: R.value,
146
- ref_key: "signaturePad",
147
- ref: n
148
- }, null, 8, ["disabled", "options"])) : B("", !0)
111
+ class: "d-flex align-center justify-end mx-4",
112
+ flat: ""
113
+ }, {
114
+ default: V(() => [
115
+ w(s(U), {
116
+ "hide-on-leave": "",
117
+ group: ""
118
+ }, {
119
+ default: V(() => [
120
+ w(s(_), {
121
+ class: "my-3",
122
+ onClick: B,
123
+ disabled: l.value == null,
124
+ icon: "$eraser",
125
+ key: "3"
126
+ }, null, 8, ["disabled"]),
127
+ w(s(_), {
128
+ onClick: b,
129
+ class: "my-3",
130
+ disabled: !P.value,
131
+ icon: "$check",
132
+ key: "4"
133
+ }, null, 8, ["disabled"])
134
+ ]),
135
+ _: 1
136
+ })
137
+ ]),
138
+ _: 1
139
+ })) : T("", !0)
149
140
  ]),
150
- _: 3
151
- }, 8, ["color", "style"]);
152
- };
141
+ h.value ? (S(), x(s(j), {
142
+ key: 0,
143
+ disabled: !d.value,
144
+ options: N.value,
145
+ ref_key: "signaturePad",
146
+ ref: t
147
+ }, null, 8, ["disabled", "options"])) : T("", !0)
148
+ ]),
149
+ _: 3
150
+ }, 8, ["color", "style"]));
153
151
  }
154
152
  });
155
153
  export {
156
- K as default
154
+ Q as default
157
155
  };