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