bt-core-app 2.2.5 → 2.2.6
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/_virtual/VCheckbox.sass.mjs +1 -0
- package/dist/_virtual/VChip.sass.mjs +1 -0
- package/dist/_virtual/VChipGroup.sass.mjs +1 -0
- package/dist/_virtual/VColorPicker.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerCanvas.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerEdit.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerPreview.sass.mjs +1 -0
- package/dist/_virtual/VColorPickerSwatches.sass.mjs +1 -0
- package/dist/_virtual/VCombobox.sass.mjs +1 -0
- package/dist/_virtual/VContainer.sass.mjs +1 -0
- package/dist/_virtual/VCounter.sass.mjs +1 -0
- package/dist/_virtual/VDialog.sass.mjs +1 -0
- package/dist/_virtual/VField.sass.mjs +1 -0
- package/dist/_virtual/VGrid.sass.mjs +1 -0
- package/dist/_virtual/VInput.sass.mjs +1 -0
- package/dist/_virtual/VLabel.sass.mjs +1 -0
- package/dist/_virtual/VMessages.sass.mjs +1 -0
- package/dist/_virtual/VNavigationDrawer.sass.mjs +1 -0
- package/dist/_virtual/VPagination.sass.mjs +1 -0
- package/dist/_virtual/VPicker.sass.mjs +1 -0
- package/dist/_virtual/VRating.sass.mjs +1 -0
- package/dist/_virtual/VSelect.sass.mjs +1 -0
- package/dist/_virtual/VSelectionControl.sass.mjs +1 -0
- package/dist/_virtual/VSelectionControlGroup.sass.mjs +1 -0
- package/dist/_virtual/VSheet.sass.mjs +1 -0
- package/dist/_virtual/VSlideGroup.sass.mjs +1 -0
- package/dist/_virtual/VSlider.sass.mjs +1 -0
- package/dist/_virtual/VSliderThumb.sass.mjs +1 -0
- package/dist/_virtual/VSliderTrack.sass.mjs +1 -0
- package/dist/_virtual/VSpacer.sass.mjs +1 -0
- package/dist/_virtual/VSwitch.sass.mjs +1 -0
- package/dist/_virtual/VTab.sass.mjs +1 -0
- package/dist/_virtual/VTable.sass.mjs +1 -0
- package/dist/_virtual/VTabs.sass.mjs +1 -0
- package/dist/_virtual/VTextField.sass.mjs +1 -0
- package/dist/_virtual/VTextarea.sass.mjs +1 -0
- package/dist/_virtual/VVirtualScroll.sass.mjs +1 -0
- package/dist/_virtual/VWindow.sass.mjs +1 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VBtnToggle/VBtnToggle.mjs +14 -14
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCheckbox/VCheckbox.mjs +74 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCheckbox/VCheckboxBtn.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VChip/VChip.mjs +263 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VChipGroup/VChipGroup.mjs +87 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPicker.mjs +161 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerCanvas.mjs +166 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerEdit.mjs +97 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerPreview.mjs +123 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPickerSwatches.mjs +72 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VColorPicker/util/index.mjs +193 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCombobox/VCombobox.mjs +501 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VCounter/VCounter.mjs +51 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VDialog/VDialog.mjs +103 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VField/VField.mjs +295 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VField/VFieldLabel.mjs +28 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VForm/VForm.mjs +53 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs +98 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VContainer.mjs +41 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VRow.mjs +104 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs +6 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VHover/VHover.mjs +41 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VInput/InputIcon.mjs +40 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VInput/VInput.mjs +154 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VLabel/VLabel.mjs +36 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VMessages/VMessages.mjs +55 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +247 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/sticky.mjs +44 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VNavigationDrawer/touch.mjs +100 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VPagination/VPagination.mjs +315 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VRating/VRating.mjs +217 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelect/VSelect.mjs +475 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelect/useScrolling.mjs +57 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelectionControl/VSelectionControl.mjs +183 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +106 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSheet/VSheet.mjs +61 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlideGroup/VSlideGroup.mjs +287 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlideGroup/helpers.mjs +54 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSlider.mjs +159 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSliderThumb.mjs +176 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/VSliderTrack.mjs +109 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSlider/slider.mjs +242 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VSwitch/VSwitch.mjs +172 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTable/VTable.mjs +66 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTab.mjs +126 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabs.mjs +153 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabsWindow.mjs +48 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/VTabsWindowItem.mjs +29 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTabs/shared.mjs +4 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs +204 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs +258 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbarItems.mjs +38 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VVirtualScroll/VVirtualScroll.mjs +106 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VVirtualScroll/VVirtualScrollItem.mjs +47 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindow.mjs +211 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindowItem.mjs +93 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs +21 -19
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/autocomplete.mjs +21 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/autofocus.mjs +14 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/display.mjs +21 -12
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/filter.mjs +125 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/focus.mjs +31 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/focusGroups.mjs +54 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/form.mjs +112 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/goto.mjs +86 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/icons.mjs +4 -4
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/layout.mjs +43 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/list-items.mjs +92 -5
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/menuActivator.mjs +24 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/nested/nested.mjs +1 -1
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/refs.mjs +15 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/touch.mjs +73 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/validation.mjs +139 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/composables/virtual.mjs +164 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/directives/touch/index.mjs +89 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/labs/VPicker/VPicker.mjs +77 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/labs/VPicker/VPickerTitle.mjs +5 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/labs/rules/rules.mjs +15 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/color/transformSRGB.mjs +16 -0
- package/dist/bt-core/core/node_modules/vuetify/lib/util/colorUtils.mjs +133 -50
- package/dist/bt-core/core/node_modules/vuetify/lib/util/easing.mjs +20 -4
- package/dist/bt-core/core/node_modules/vuetify/lib/util/globals.mjs +2 -1
- package/dist/bt-core/core/node_modules/vuetify/lib/util/helpers.mjs +248 -141
- package/dist/components/BT-Assistant-Menu.vue.mjs +226 -211
- package/dist/components/BT-Avatar.vue.mjs +31 -31
- package/dist/components/BT-Background-Task.vue.mjs +30 -28
- package/dist/components/BT-Blade-Item.vue.mjs +111 -102
- package/dist/components/BT-Blade-Items.vue.mjs +2 -2
- package/dist/components/BT-Blade-Items.vue2.mjs +413 -402
- package/dist/components/BT-Blade-Steps.vue.mjs +1 -1
- package/dist/components/BT-Blade-Steps.vue2.mjs +597 -583
- package/dist/components/BT-Blade.vue.mjs +19 -19
- package/dist/components/BT-Btn.vue.mjs +23 -25
- package/dist/components/BT-Camera-Overlay.vue.mjs +72 -68
- package/dist/components/BT-Col.vue.mjs +17 -19
- package/dist/components/BT-Color-Picker-Menu.vue.mjs +51 -49
- package/dist/components/BT-Cosmetics-Menu.vue.mjs +180 -173
- package/dist/components/BT-Cron.vue.mjs +249 -235
- package/dist/components/BT-Date-Select.vue.mjs +46 -47
- package/dist/components/BT-Demo-Profile-Select.vue.mjs +40 -40
- package/dist/components/BT-Dialog-Confirm.vue.mjs +39 -39
- package/dist/components/BT-Dialog-Date.vue.mjs +22 -19
- package/dist/components/BT-Dialog-Number.vue.mjs +125 -121
- package/dist/components/BT-Dialog-Select.vue.mjs +107 -97
- package/dist/components/BT-Divider.vue.mjs +20 -21
- package/dist/components/BT-Drag-Counter.vue.mjs +2 -2
- package/dist/components/BT-Drag-Counter.vue2.mjs +58 -56
- package/dist/components/BT-Entity.vue.mjs +50 -48
- package/dist/components/BT-Error.vue.mjs +16 -15
- package/dist/components/BT-Field-Checkbox.vue.mjs +30 -31
- package/dist/components/BT-Field-Date.vue.mjs +87 -84
- package/dist/components/BT-Field-Entity.vue.mjs +20 -16
- package/dist/components/BT-Field-Select-Simple.vue.mjs +24 -26
- package/dist/components/BT-Field-Select.vue.mjs +32 -34
- package/dist/components/BT-Field-String.vue.mjs +54 -52
- package/dist/components/BT-Field-Switch.vue.mjs +44 -43
- package/dist/components/BT-Field-Tags.vue.mjs +57 -55
- package/dist/components/BT-Field-Textarea.vue.mjs +44 -43
- package/dist/components/BT-Field-Trigger.vue.mjs +276 -270
- package/dist/components/BT-Field.vue.mjs +39 -38
- package/dist/components/BT-Form-Builder.vue.mjs +342 -322
- package/dist/components/BT-Form-Field.vue.mjs +81 -75
- package/dist/components/BT-Form.vue.mjs +263 -253
- package/dist/components/BT-Header-Option.vue.mjs +10 -9
- package/dist/components/BT-Image-Select.vue.mjs +186 -177
- package/dist/components/BT-Json.vue.mjs +29 -30
- package/dist/components/BT-Loader.vue.mjs +32 -31
- package/dist/components/BT-Nav-Sidebar.vue.mjs +130 -124
- package/dist/components/BT-Number.vue.mjs +2 -2
- package/dist/components/BT-Number.vue2.mjs +17 -19
- package/dist/components/BT-Numpad.vue.mjs +71 -66
- package/dist/components/BT-Select-List-Box.vue.mjs +157 -144
- package/dist/components/BT-Select-Simple.vue.mjs +21 -23
- package/dist/components/BT-Select.vue.mjs +36 -37
- package/dist/components/BT-Signature-Overlay.vue.mjs +63 -60
- package/dist/components/BT-Signature.vue.mjs +66 -64
- package/dist/components/BT-Slider.vue.mjs +69 -61
- package/dist/components/BT-Square-Check.vue.mjs +24 -22
- package/dist/components/BT-Status-Item.vue.mjs +18 -16
- package/dist/components/BT-Tags.vue.mjs +21 -22
- package/dist/components/BT-Tour.vue.mjs +69 -65
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VueSignaturePad as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
|
|
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({
|
|
5
8
|
__name: "BT-Signature-Overlay",
|
|
6
9
|
props: {
|
|
7
10
|
canEdit: { type: Boolean },
|
|
@@ -16,100 +19,100 @@ const F = /* @__PURE__ */ O({
|
|
|
16
19
|
usedHeight: { default: 0 }
|
|
17
20
|
},
|
|
18
21
|
emits: ["cancel", "change", "close", "open", "update:modelValue"],
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
21
|
-
penColor:
|
|
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
|
|
22
25
|
}));
|
|
23
|
-
function
|
|
26
|
+
function v(e, r) {
|
|
24
27
|
if (e != null)
|
|
25
|
-
if (
|
|
28
|
+
if (r == null)
|
|
26
29
|
e.clearSignature();
|
|
27
30
|
else {
|
|
28
|
-
const
|
|
29
|
-
|
|
31
|
+
const o = JSON.parse(r);
|
|
32
|
+
o != null && o.length > 0 && e.fromData([{ color: V.value, points: o }]);
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
|
-
p(
|
|
33
|
-
|
|
34
|
-
}), p(() =>
|
|
35
|
+
p(c, (e) => {
|
|
36
|
+
v(e, l.modelValue ?? l.signature);
|
|
37
|
+
}), p(() => l.openToggle, () => {
|
|
35
38
|
k();
|
|
36
|
-
}), p(() =>
|
|
37
|
-
|
|
38
|
-
}), p(() =>
|
|
39
|
-
|
|
39
|
+
}), p(() => l.modelValue, (e) => {
|
|
40
|
+
v(f(c), e);
|
|
41
|
+
}), p(() => l.signature, (e) => {
|
|
42
|
+
v(f(c), e);
|
|
40
43
|
});
|
|
41
|
-
function
|
|
42
|
-
const e = f(
|
|
44
|
+
function D() {
|
|
45
|
+
const e = f(c);
|
|
43
46
|
if (e != null && !e.isEmpty()) {
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
t.points.forEach((
|
|
47
|
-
|
|
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
51
|
});
|
|
49
52
|
});
|
|
50
|
-
let d = Math.min(...
|
|
51
|
-
d > 1 &&
|
|
53
|
+
let d = Math.min(...o.map((t) => t.x)), C = Math.min(...o.map((t) => t.y));
|
|
54
|
+
d > 1 && o.forEach((t) => {
|
|
52
55
|
t.x -= d;
|
|
53
|
-
}),
|
|
54
|
-
t.y -=
|
|
55
|
-
}),
|
|
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);
|
|
56
59
|
}
|
|
57
60
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
61
|
+
function O() {
|
|
62
|
+
i("cancel"), i("close"), s.value = !1;
|
|
60
63
|
}
|
|
61
64
|
function N() {
|
|
62
|
-
const e = f(
|
|
63
|
-
e != null && !e.isEmpty() && e.clearSignature(),
|
|
65
|
+
const e = f(c);
|
|
66
|
+
e != null && !e.isEmpty() && e.clearSignature(), u.value = void 0;
|
|
64
67
|
}
|
|
65
68
|
function k() {
|
|
66
|
-
|
|
69
|
+
u.value = l.modelValue ?? l.signature, s.value = !0, i("open");
|
|
67
70
|
}
|
|
68
|
-
return (e,
|
|
69
|
-
const
|
|
70
|
-
return
|
|
71
|
-
!e.hideButton && !s.value ? (
|
|
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({
|
|
72
75
|
key: 0,
|
|
73
|
-
onClick:
|
|
74
|
-
}, e.$attrs), null, 16)) :
|
|
75
|
-
n(
|
|
76
|
+
onClick: H(k, ["stop"])
|
|
77
|
+
}, e.$attrs), null, 16)) : J("", !0),
|
|
78
|
+
n(a(Y), {
|
|
76
79
|
modelValue: s.value,
|
|
77
|
-
"onUpdate:modelValue":
|
|
80
|
+
"onUpdate:modelValue": r[0] || (r[0] = (d) => s.value = d),
|
|
78
81
|
"z-index": "1001"
|
|
79
82
|
}, {
|
|
80
|
-
default:
|
|
81
|
-
n(
|
|
83
|
+
default: m(() => [
|
|
84
|
+
n(a(S), {
|
|
82
85
|
class: "pa-0 ma-0 d-flex align-center justify-center",
|
|
83
86
|
color: e.color,
|
|
84
|
-
style:
|
|
87
|
+
style: A(w.value)
|
|
85
88
|
}, {
|
|
86
|
-
default:
|
|
87
|
-
|
|
88
|
-
n(
|
|
89
|
-
options:
|
|
89
|
+
default: m(() => [
|
|
90
|
+
L(e.$slots, "top"),
|
|
91
|
+
n(a(U), {
|
|
92
|
+
options: b.value,
|
|
90
93
|
ref_key: "signaturePad",
|
|
91
|
-
ref:
|
|
94
|
+
ref: c
|
|
92
95
|
}, null, 8, ["options"]),
|
|
93
|
-
n(
|
|
96
|
+
n(a(S), {
|
|
94
97
|
class: "d-flex flex-column align-center justify-center",
|
|
95
98
|
color: "primary",
|
|
96
99
|
style: { position: "fixed", opacity: "0.75", right: "0" },
|
|
97
100
|
width: "60"
|
|
98
101
|
}, {
|
|
99
|
-
default:
|
|
100
|
-
n(
|
|
102
|
+
default: m(() => [
|
|
103
|
+
n(o, {
|
|
101
104
|
"hide-on-leave": "",
|
|
102
105
|
group: ""
|
|
103
106
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
n(
|
|
107
|
+
default: m(() => [
|
|
108
|
+
n(a(y), {
|
|
106
109
|
class: "my-3",
|
|
107
|
-
onClick:
|
|
110
|
+
onClick: O,
|
|
108
111
|
icon: "$close",
|
|
109
112
|
key: "1",
|
|
110
113
|
variant: "tonal"
|
|
111
114
|
}),
|
|
112
|
-
n(
|
|
115
|
+
n(a(y), {
|
|
113
116
|
class: "my-3",
|
|
114
117
|
onClick: N,
|
|
115
118
|
disabled: !e.canEdit,
|
|
@@ -117,9 +120,9 @@ const F = /* @__PURE__ */ O({
|
|
|
117
120
|
key: "3",
|
|
118
121
|
variant: "tonal"
|
|
119
122
|
}, null, 8, ["disabled"]),
|
|
120
|
-
n(
|
|
123
|
+
n(a(y), {
|
|
121
124
|
class: "my-3",
|
|
122
|
-
onClick:
|
|
125
|
+
onClick: D,
|
|
123
126
|
disabled: !e.canEdit,
|
|
124
127
|
icon: "$check",
|
|
125
128
|
key: "4",
|
|
@@ -142,5 +145,5 @@ const F = /* @__PURE__ */ O({
|
|
|
142
145
|
}
|
|
143
146
|
});
|
|
144
147
|
export {
|
|
145
|
-
|
|
148
|
+
W as default
|
|
146
149
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VueSignaturePad as
|
|
3
|
-
import { useTheme as
|
|
4
|
-
|
|
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";
|
|
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
7
|
__name: "BT-Signature",
|
|
6
8
|
props: {
|
|
7
9
|
canEdit: { type: Boolean },
|
|
@@ -17,60 +19,60 @@ const q = /* @__PURE__ */ R({
|
|
|
17
19
|
width: { default: "100%" }
|
|
18
20
|
},
|
|
19
21
|
emits: ["change", "update:modelValue"],
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
const e =
|
|
22
|
+
setup($, { emit: M }) {
|
|
23
|
+
const _ = M, a = $, l = y(), p = y(!1), n = y(null), H = X(), h = c(() => {
|
|
24
|
+
const e = r(n);
|
|
23
25
|
if (e != null)
|
|
24
26
|
return e.signaturePad.canvas.height / window.devicePixelRatio;
|
|
25
|
-
}),
|
|
26
|
-
const e =
|
|
27
|
+
}), g = c(() => {
|
|
28
|
+
const e = r(n);
|
|
27
29
|
if (e != null)
|
|
28
30
|
return e.signaturePad.canvas.width / window.devicePixelRatio;
|
|
29
|
-
}),
|
|
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(() => ({
|
|
30
32
|
dotSize: 0.5,
|
|
31
33
|
onEnd: () => {
|
|
32
|
-
const e =
|
|
34
|
+
const e = r(n);
|
|
33
35
|
if (e != null && !e.isEmpty()) {
|
|
34
|
-
const o = e.toData(),
|
|
36
|
+
const o = e.toData(), t = [];
|
|
35
37
|
o.forEach((u) => {
|
|
36
38
|
u.points.forEach((i) => {
|
|
37
|
-
|
|
39
|
+
t.push({ x: i.x, y: i.y });
|
|
38
40
|
});
|
|
39
41
|
});
|
|
40
|
-
let
|
|
41
|
-
|
|
42
|
-
u.x -=
|
|
43
|
-
}),
|
|
44
|
-
u.y -=
|
|
45
|
-
}),
|
|
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) => {
|
|
46
|
+
u.y -= v;
|
|
47
|
+
}), l.value = JSON.stringify(t);
|
|
46
48
|
}
|
|
47
49
|
},
|
|
48
|
-
penColor:
|
|
50
|
+
penColor: C.value
|
|
49
51
|
}));
|
|
50
|
-
function
|
|
52
|
+
function s(e, o) {
|
|
51
53
|
if (e != null)
|
|
52
54
|
if (o == null)
|
|
53
55
|
e.clearSignature();
|
|
54
56
|
else {
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
+
const t = JSON.parse(o);
|
|
58
|
+
t != null && t.length > 0 && e.fromData([{ color: C.value, points: A(t) }]);
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
|
-
|
|
61
|
+
x(n, (e) => {
|
|
60
62
|
var o;
|
|
61
|
-
|
|
62
|
-
}),
|
|
63
|
+
l.value = a.modelValue, s(e, a.modelValue), d.value || (o = n.value) == null || o.lockSignaturePad();
|
|
64
|
+
}), x(() => a.refreshToggle, () => {
|
|
63
65
|
var e;
|
|
64
|
-
|
|
65
|
-
}),
|
|
66
|
+
l.value = a.modelValue, s(r(n), l.value), d.value || (e = n.value) == null || e.lockSignaturePad();
|
|
67
|
+
}), x(() => a.modelValue, (e) => {
|
|
66
68
|
var o;
|
|
67
|
-
|
|
69
|
+
l.value = e, s(r(n), e), d.value || (o = n.value) == null || o.lockSignaturePad();
|
|
68
70
|
});
|
|
69
|
-
function
|
|
70
|
-
if (
|
|
71
|
-
let o = Math.max(...e.map((i) => i.y)),
|
|
72
|
-
o >
|
|
73
|
-
let u = Math.min(
|
|
71
|
+
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);
|
|
74
76
|
if (u < 1)
|
|
75
77
|
return e.map((i) => ({
|
|
76
78
|
x: i.x * u,
|
|
@@ -79,54 +81,54 @@ const q = /* @__PURE__ */ R({
|
|
|
79
81
|
}
|
|
80
82
|
return e;
|
|
81
83
|
}
|
|
82
|
-
function E() {
|
|
83
|
-
V("change", t.value), V("update:modelValue", t.value), l.clearOnOk && (t.value = void 0, f(c(n), t.value));
|
|
84
|
-
}
|
|
85
84
|
function P() {
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
_("change", l.value), _("update:modelValue", l.value), a.clearOnOk && (l.value = void 0, s(r(n), l.value));
|
|
86
|
+
}
|
|
87
|
+
function b() {
|
|
88
|
+
const e = r(n);
|
|
89
|
+
e != null && !e.isEmpty() && e.clearSignature(), l.value = void 0;
|
|
88
90
|
}
|
|
89
|
-
return
|
|
91
|
+
return z(() => {
|
|
90
92
|
var e;
|
|
91
|
-
|
|
92
|
-
}),
|
|
93
|
-
|
|
93
|
+
l.value = a.modelValue, s(r(n), l.value), d.value || (e = n.value) == null || e.lockSignaturePad(), p.value = !0;
|
|
94
|
+
}), J(() => {
|
|
95
|
+
p.value = !1;
|
|
94
96
|
}), (e, o) => {
|
|
95
|
-
const
|
|
96
|
-
return
|
|
97
|
+
const t = W("v-slide-x-reverse-transition");
|
|
98
|
+
return k(), S(m(O), {
|
|
97
99
|
color: e.color,
|
|
98
|
-
style:
|
|
100
|
+
style: j(N.value),
|
|
99
101
|
variant: "elevated"
|
|
100
102
|
}, {
|
|
101
|
-
default:
|
|
102
|
-
|
|
103
|
-
apply:
|
|
104
|
-
canApply:
|
|
103
|
+
default: w(() => [
|
|
104
|
+
L(e.$slots, "top", {
|
|
105
|
+
apply: P,
|
|
106
|
+
canApply: E.value,
|
|
105
107
|
canEdit: d.value,
|
|
106
|
-
clear:
|
|
108
|
+
clear: b
|
|
107
109
|
}, () => [
|
|
108
|
-
!e.hideToolbar && d.value ? (
|
|
110
|
+
!e.hideToolbar && d.value ? (k(), S(m(O), {
|
|
109
111
|
key: 0,
|
|
110
112
|
class: "d-flex align-center justify-end mx-4",
|
|
111
113
|
flat: ""
|
|
112
114
|
}, {
|
|
113
|
-
default:
|
|
114
|
-
|
|
115
|
+
default: w(() => [
|
|
116
|
+
V(t, {
|
|
115
117
|
"hide-on-leave": "",
|
|
116
118
|
group: ""
|
|
117
119
|
}, {
|
|
118
|
-
default:
|
|
119
|
-
|
|
120
|
+
default: w(() => [
|
|
121
|
+
V(m(T), {
|
|
120
122
|
class: "my-3",
|
|
121
|
-
onClick:
|
|
122
|
-
disabled:
|
|
123
|
+
onClick: b,
|
|
124
|
+
disabled: l.value == null,
|
|
123
125
|
icon: "$eraser",
|
|
124
126
|
key: "3"
|
|
125
127
|
}, null, 8, ["disabled"]),
|
|
126
|
-
|
|
127
|
-
onClick:
|
|
128
|
+
V(m(T), {
|
|
129
|
+
onClick: P,
|
|
128
130
|
class: "my-3",
|
|
129
|
-
disabled: !
|
|
131
|
+
disabled: !E.value,
|
|
130
132
|
icon: "$check",
|
|
131
133
|
key: "4"
|
|
132
134
|
}, null, 8, ["disabled"])
|
|
@@ -137,10 +139,10 @@ const q = /* @__PURE__ */ R({
|
|
|
137
139
|
_: 1
|
|
138
140
|
})) : B("", !0)
|
|
139
141
|
]),
|
|
140
|
-
|
|
142
|
+
p.value ? (k(), S(m(U), {
|
|
141
143
|
key: 0,
|
|
142
144
|
disabled: !d.value,
|
|
143
|
-
options:
|
|
145
|
+
options: R.value,
|
|
144
146
|
ref_key: "signaturePad",
|
|
145
147
|
ref: n
|
|
146
148
|
}, null, 8, ["disabled", "options"])) : B("", !0)
|
|
@@ -151,5 +153,5 @@ const q = /* @__PURE__ */ R({
|
|
|
151
153
|
}
|
|
152
154
|
});
|
|
153
155
|
export {
|
|
154
|
-
|
|
156
|
+
K as default
|
|
155
157
|
};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as q, computed as f, ref as A, watch as y, onMounted as D, resolveComponent as O, openBlock as n, createBlock as v, unref as o, normalizeStyle as W, withCtx as i, createVNode as d, createElementBlock as $, Fragment as C, renderList as b, renderSlot as c, createTextVNode as x, toDisplayString as z, createCommentVNode as E } from "vue";
|
|
2
|
+
import { useRoute as F } from "vue-router";
|
|
3
|
+
import { VWindow as M } from "../bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindow.mjs";
|
|
4
|
+
import { VWindowItem as B } from "../bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindowItem.mjs";
|
|
5
|
+
import { VList as P } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VList.mjs";
|
|
6
|
+
import { VListItem as R } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
|
|
7
|
+
import { VToolbar as U } from "../bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbar.mjs";
|
|
8
|
+
import { VBtn as j } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
|
|
9
|
+
import { VToolbarTitle as G } from "../bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbarTitle.mjs";
|
|
10
|
+
import { VSpacer as I } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs";
|
|
11
|
+
const oe = /* @__PURE__ */ q({
|
|
4
12
|
__name: "BT-Slider",
|
|
5
13
|
props: {
|
|
6
14
|
hideHeader: { type: Boolean },
|
|
@@ -10,58 +18,58 @@ const Q = /* @__PURE__ */ z({
|
|
|
10
18
|
},
|
|
11
19
|
emits: ["update:modelValue"],
|
|
12
20
|
setup(S, { emit: T }) {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
e.slide != null &&
|
|
21
|
+
const L = T, m = S, r = F(), H = f(() => m.width != null ? `width: ${m.width}px` : ""), a = A([]);
|
|
22
|
+
y(() => r.query, (e) => {
|
|
23
|
+
e.slide != null && k(e.slide);
|
|
16
24
|
});
|
|
17
|
-
const
|
|
18
|
-
var
|
|
19
|
-
var
|
|
25
|
+
const s = f(() => a.value.length > 0 ? a.value[a.value.length - 1] : 0), h = f(() => (m.options ?? []).map((t, u) => {
|
|
26
|
+
var _;
|
|
27
|
+
var l = { value: "", index: u + 1 };
|
|
20
28
|
if (typeof t == "string")
|
|
21
|
-
|
|
29
|
+
l.hide = !1, l.title = t, l.value = l.title.replaceAll(" ", "").toLowerCase();
|
|
22
30
|
else {
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
...
|
|
26
|
-
index:
|
|
27
|
-
value:
|
|
31
|
+
var p = t;
|
|
32
|
+
l = {
|
|
33
|
+
...p,
|
|
34
|
+
index: u + 1,
|
|
35
|
+
value: p.value ?? ((_ = p.title) == null ? void 0 : _.replaceAll(" ", "").toLowerCase())
|
|
28
36
|
};
|
|
29
37
|
}
|
|
30
|
-
return
|
|
31
|
-
})), N =
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
function y(e) {
|
|
36
|
-
e == 0 ? n.value = [e] : p.value != e && (n.value.length == 0 && n.value.push(0), n.value.push(e));
|
|
38
|
+
return l;
|
|
39
|
+
})), N = f(() => h.value.filter((e) => e.hide !== !0));
|
|
40
|
+
function w() {
|
|
41
|
+
a.value.pop();
|
|
37
42
|
}
|
|
38
43
|
function V(e) {
|
|
44
|
+
e == 0 ? a.value = [e] : s.value != e && (a.value.length == 0 && a.value.push(0), a.value.push(e));
|
|
45
|
+
}
|
|
46
|
+
function k(e) {
|
|
39
47
|
if (e == null)
|
|
40
48
|
return;
|
|
41
|
-
const t =
|
|
42
|
-
t != null &&
|
|
49
|
+
const t = h.value.find((u) => u.value == e);
|
|
50
|
+
t != null && V(t.index);
|
|
43
51
|
}
|
|
44
|
-
return
|
|
45
|
-
e !=
|
|
46
|
-
}),
|
|
47
|
-
e != null &&
|
|
48
|
-
}),
|
|
49
|
-
(
|
|
52
|
+
return y(s, (e) => {
|
|
53
|
+
e != m.modelValue && L("update:modelValue", e);
|
|
54
|
+
}), y(() => m.modelValue, (e) => {
|
|
55
|
+
e != null && s.value != e && V(e);
|
|
56
|
+
}), D(() => {
|
|
57
|
+
(r == null ? void 0 : r.query.slide) != null && k(r == null ? void 0 : r.query.slide);
|
|
50
58
|
}), (e, t) => {
|
|
51
|
-
const
|
|
52
|
-
return
|
|
53
|
-
modelValue:
|
|
54
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) =>
|
|
55
|
-
style:
|
|
59
|
+
const u = O("v-slide-x-transition");
|
|
60
|
+
return n(), v(o(M), {
|
|
61
|
+
modelValue: s.value,
|
|
62
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
|
|
63
|
+
style: W(H.value)
|
|
56
64
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
|
|
59
|
-
default:
|
|
60
|
-
|
|
61
|
-
default:
|
|
62
|
-
(
|
|
65
|
+
default: i(() => [
|
|
66
|
+
d(o(B), null, {
|
|
67
|
+
default: i(() => [
|
|
68
|
+
d(o(P), null, {
|
|
69
|
+
default: i(() => [
|
|
70
|
+
(n(!0), $(C, null, b(N.value, (l) => (n(), v(o(R), {
|
|
63
71
|
"append-icon": "$arrow-right",
|
|
64
|
-
onClick: (
|
|
72
|
+
onClick: (p) => V(l.index),
|
|
65
73
|
disabled: l.disabled,
|
|
66
74
|
key: l.value ?? l.title,
|
|
67
75
|
title: l.title
|
|
@@ -72,46 +80,46 @@ const Q = /* @__PURE__ */ z({
|
|
|
72
80
|
]),
|
|
73
81
|
_: 1
|
|
74
82
|
}),
|
|
75
|
-
(
|
|
83
|
+
(n(!0), $(C, null, b(h.value, (l) => (n(), v(o(B), {
|
|
76
84
|
key: l.value ?? l.title,
|
|
77
85
|
value: l.index
|
|
78
86
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
default:
|
|
83
|
-
!e.hideHeader && !l.hideHeader ? (
|
|
87
|
+
default: i(() => [
|
|
88
|
+
c(e.$slots, `${l.value}-top`, {}, () => [
|
|
89
|
+
d(u, { "hide-on-leave": "" }, {
|
|
90
|
+
default: i(() => [
|
|
91
|
+
!e.hideHeader && !l.hideHeader ? (n(), v(o(U), {
|
|
84
92
|
key: 0,
|
|
85
93
|
density: "compact",
|
|
86
94
|
flat: "",
|
|
87
95
|
tile: ""
|
|
88
96
|
}, {
|
|
89
|
-
default:
|
|
90
|
-
|
|
91
|
-
back: () =>
|
|
97
|
+
default: i(() => [
|
|
98
|
+
c(e.$slots, `${l.value}-toolbar`, {
|
|
99
|
+
back: () => w(),
|
|
92
100
|
title: l.title
|
|
93
101
|
}, () => [
|
|
94
|
-
|
|
102
|
+
d(o(j), {
|
|
95
103
|
icon: "$arrow-left",
|
|
96
|
-
onClick:
|
|
104
|
+
onClick: w
|
|
97
105
|
}),
|
|
98
|
-
|
|
99
|
-
default:
|
|
100
|
-
|
|
106
|
+
d(o(G), null, {
|
|
107
|
+
default: i(() => [
|
|
108
|
+
x(z(l.title), 1)
|
|
101
109
|
]),
|
|
102
110
|
_: 2
|
|
103
111
|
}, 1024),
|
|
104
|
-
|
|
105
|
-
|
|
112
|
+
d(o(I)),
|
|
113
|
+
c(e.$slots, `${l.value}-toolbar-right`)
|
|
106
114
|
])
|
|
107
115
|
]),
|
|
108
116
|
_: 2
|
|
109
|
-
}, 1024)) :
|
|
117
|
+
}, 1024)) : E("", !0)
|
|
110
118
|
]),
|
|
111
119
|
_: 2
|
|
112
120
|
}, 1024)
|
|
113
121
|
]),
|
|
114
|
-
|
|
122
|
+
c(e.$slots, l.value)
|
|
115
123
|
]),
|
|
116
124
|
_: 2
|
|
117
125
|
}, 1032, ["value"]))), 128))
|
|
@@ -122,5 +130,5 @@ const Q = /* @__PURE__ */ z({
|
|
|
122
130
|
}
|
|
123
131
|
});
|
|
124
132
|
export {
|
|
125
|
-
|
|
133
|
+
oe as default
|
|
126
134
|
};
|