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,29 +1,28 @@
|
|
|
1
|
-
import { defineComponent as i, computed as a,
|
|
2
|
-
|
|
1
|
+
import { defineComponent as i, computed as a, openBlock as c, createElementBlock as d, createVNode as e, unref as t, normalizeStyle as m, renderSlot as p, withCtx as f, createTextVNode as u, toDisplayString as x } from "vue";
|
|
2
|
+
import { VDivider as r } from "../bt-core/core/node_modules/vuetify/lib/components/VDivider/VDivider.mjs";
|
|
3
|
+
import { VListSubheader as _ } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListSubheader.mjs";
|
|
4
|
+
const h = { class: "d-flex align-center" }, B = /* @__PURE__ */ i({
|
|
3
5
|
__name: "BT-Divider",
|
|
4
6
|
props: {
|
|
5
7
|
left: {},
|
|
6
8
|
text: {}
|
|
7
9
|
},
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
return (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
e(o)
|
|
25
|
-
]);
|
|
26
|
-
};
|
|
10
|
+
setup(l) {
|
|
11
|
+
const n = l, s = a(() => n.left ?? 25);
|
|
12
|
+
return (o, v) => (c(), d("div", h, [
|
|
13
|
+
e(t(r), {
|
|
14
|
+
style: m(`max-width: ${s.value}%`)
|
|
15
|
+
}, null, 8, ["style"]),
|
|
16
|
+
p(o.$slots, "text", {}, () => [
|
|
17
|
+
e(t(_), { class: "ml-3" }, {
|
|
18
|
+
default: f(() => [
|
|
19
|
+
u(x(o.text), 1)
|
|
20
|
+
]),
|
|
21
|
+
_: 1
|
|
22
|
+
})
|
|
23
|
+
]),
|
|
24
|
+
e(t(r))
|
|
25
|
+
]));
|
|
27
26
|
}
|
|
28
27
|
});
|
|
29
28
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./BT-Drag-Counter.vue2.mjs";
|
|
2
2
|
import "./BT-Drag-Counter.vue3.mjs";
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-54956d38"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { watchDebounced as
|
|
3
|
-
import { t as
|
|
4
|
-
|
|
1
|
+
import { defineComponent as I, ref as d, computed as $, watch as F, resolveComponent as w, openBlock as p, createElementBlock as c, normalizeClass as G, createVNode as m, withCtx as T, renderSlot as E, createCommentVNode as h, unref as P, mergeProps as H, withModifiers as b, normalizeStyle as J, toDisplayString as q } from "vue";
|
|
2
|
+
import { watchDebounced as K, useEventListener as D } from "@vueuse/core";
|
|
3
|
+
import { t as Q } from "../bt-core/core/node_modules/thenby/thenBy.module.mjs";
|
|
4
|
+
import { VBtn as R } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
|
|
5
|
+
import { VIcon as U } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
|
|
6
|
+
const W = { key: 0 }, Z = {
|
|
5
7
|
class: "mr-1",
|
|
6
8
|
key: "2"
|
|
7
|
-
},
|
|
9
|
+
}, ee = { key: "3" }, te = { key: 0 }, se = /* @__PURE__ */ I({
|
|
8
10
|
__name: "BT-Drag-Counter",
|
|
9
11
|
props: {
|
|
10
12
|
applyOnEnd: { type: Boolean },
|
|
@@ -33,15 +35,15 @@ const Q = { key: 0 }, R = {
|
|
|
33
35
|
"startDragging",
|
|
34
36
|
"stopDragging"
|
|
35
37
|
],
|
|
36
|
-
setup(
|
|
37
|
-
const t =
|
|
38
|
+
setup(A, { emit: Y }) {
|
|
39
|
+
const t = A, l = Y, a = d(0), f = d("x1"), o = d(!1), L = d(!1), s = d(!1), N = $(() => {
|
|
38
40
|
var e = "position: absolute;";
|
|
39
41
|
return t.popupDirection == "top" ? e = `${e} bottom: 130%` : t.popupDirection == "bottom" ? e = `${e} top: 130%` : t.popupDirection == "left" ? e = `${e} right: 130%` : t.popupDirection == "right" && (e = `${e} left: 130%`), e;
|
|
40
|
-
}),
|
|
42
|
+
}), j = $(() => {
|
|
41
43
|
if (t.centerOfParent)
|
|
42
44
|
return t.opaque && !o.value ? "center-of-parent-opaque" : "center-of-parent";
|
|
43
45
|
});
|
|
44
|
-
let O = 0,
|
|
46
|
+
let O = 0, _, V, r = [], y = { x: 0, y: 0 }, z = t.mathOptions ?? [
|
|
45
47
|
{ yLevelLessThan: 25, xDifTrigger: 40, valOnTrigger: 1, txt: "x1" },
|
|
46
48
|
{ yLevelLessThan: 50, xDifTrigger: 30, valOnTrigger: 1, txt: "x2" },
|
|
47
49
|
{ yLevelLessThan: 75, xDifTrigger: 20, valOnTrigger: 1, txt: "x3" },
|
|
@@ -50,99 +52,99 @@ const Q = { key: 0 }, R = {
|
|
|
50
52
|
{ yLevelLessThan: 400, xDifTrigger: 1, valOnTrigger: 10, txt: "x50" },
|
|
51
53
|
{ yLevelLessThan: 4e3, xDifTrigger: 1, valOnTrigger: 100, txt: "x100" }
|
|
52
54
|
];
|
|
53
|
-
|
|
55
|
+
z = z.sort(Q.firstBy((e) => e.yLevelLessThan, "asc")), F(o, (e) => {
|
|
54
56
|
l(e ? "startDragging" : "stopDragging");
|
|
55
57
|
});
|
|
56
58
|
function B() {
|
|
57
|
-
|
|
59
|
+
r.push(D("mousemove", k)), r.push(D("touchmove", k)), o.value = !0, s.value = !0, a.value = t.modelValue ?? 0, f.value = "x1", O = y.x;
|
|
58
60
|
}
|
|
59
|
-
function
|
|
61
|
+
function S(e) {
|
|
60
62
|
L.value = !0;
|
|
61
63
|
const n = e.type === "touchstart" && e.touches.length > 0 ? e.touches[0] : e;
|
|
62
|
-
|
|
64
|
+
y = { x: n.clientX, y: n.clientY }, r.push(D("mouseup", M)), r.push(D("touchend", M));
|
|
63
65
|
const i = t.delay ?? 0;
|
|
64
66
|
i <= 0 ? B() : setTimeout(() => {
|
|
65
67
|
L.value && B();
|
|
66
68
|
}, i), e.preventDefault(), e.stopPropagation();
|
|
67
69
|
}
|
|
68
|
-
function
|
|
69
|
-
L.value = !1,
|
|
70
|
+
function M() {
|
|
71
|
+
L.value = !1, r.forEach((e) => {
|
|
70
72
|
e();
|
|
71
|
-
}),
|
|
73
|
+
}), r.length = 0, o.value && t.applyOnEnd ? (l("update:modelValue", a.value), l("change", a.value)) : o.value || l("click", a.value), o.value = !1, t.clearOnLastChange && (a.value = 0), _ = void 0, V = void 0;
|
|
72
74
|
}
|
|
73
|
-
function
|
|
75
|
+
function k(e) {
|
|
74
76
|
const n = e.type == "touchmove" && e.touches.length > 0 ? e.touches[0] : e;
|
|
75
|
-
if (
|
|
77
|
+
if (y ?? (y = {
|
|
76
78
|
x: n.clientX,
|
|
77
79
|
y: n.clientY
|
|
78
80
|
}), o.value)
|
|
79
|
-
if (
|
|
80
|
-
a.value < t.max && (
|
|
81
|
+
if (_ ?? (_ = e.timeStamp), V ?? (V = n.clientX), t.max != null && t.useMaxer && e.timeStamp - _ < t.toMaxSpeed && n.clientX - V > t.toMaxDistance)
|
|
82
|
+
a.value < t.max && (f.value = "MAX", a.value = t.max, t.applyOnEnd || (l("update:modelValue", a.value), l("change", a.value)), l("dragging"));
|
|
81
83
|
else {
|
|
82
84
|
let i = n.clientX - O;
|
|
83
|
-
if (i > 0 &&
|
|
85
|
+
if (i > 0 && f.value == "MAX")
|
|
84
86
|
return;
|
|
85
87
|
{
|
|
86
|
-
let
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
90
|
-
|
|
91
|
-
let
|
|
92
|
-
if (i >
|
|
88
|
+
let g = n.clientY - y.y;
|
|
89
|
+
g = g < 0 ? 0 - g : g;
|
|
90
|
+
const x = z.find((v) => g < v.yLevelLessThan);
|
|
91
|
+
if (x != null) {
|
|
92
|
+
f.value = x.txt;
|
|
93
|
+
let v = x.xDifTrigger, X = x.valOnTrigger;
|
|
94
|
+
if (i > v || i < 0 - v) {
|
|
93
95
|
O = n.clientX;
|
|
94
|
-
let
|
|
95
|
-
t.max != null &&
|
|
96
|
+
let u = a.value + (i > v ? X : 0 - X);
|
|
97
|
+
t.max != null && u > t.max && (u = t.max), t.min != null && u < t.min && (u = t.min), a.value != u && (a.value = u, t.applyOnEnd || (l("update:modelValue", a.value), l("change", a.value)), l("dragging"));
|
|
96
98
|
}
|
|
97
99
|
}
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
|
-
return
|
|
103
|
+
return K(o, (e) => {
|
|
102
104
|
e || (s.value = !1);
|
|
103
|
-
}, { debounce: 1e3 }), (e,
|
|
104
|
-
const n =
|
|
105
|
-
return
|
|
106
|
-
class: G([
|
|
105
|
+
}, { debounce: 1e3 }), (e, C) => {
|
|
106
|
+
const n = w("v-slide-y-reverse-transition"), i = w("v-slide-y-transition");
|
|
107
|
+
return p(), c("div", {
|
|
108
|
+
class: G([j.value, "d-flex"])
|
|
107
109
|
}, [
|
|
108
|
-
|
|
109
|
-
default:
|
|
110
|
-
s.value ?
|
|
111
|
-
|
|
110
|
+
m(n, null, {
|
|
111
|
+
default: T(() => [
|
|
112
|
+
s.value ? h("", !0) : (p(), c("div", W, [
|
|
113
|
+
E(e.$slots, "prepend", { size: e.size }, void 0, !0)
|
|
112
114
|
]))
|
|
113
115
|
]),
|
|
114
116
|
_: 3
|
|
115
117
|
}),
|
|
116
|
-
|
|
118
|
+
m(P(R), H(e.$attrs, {
|
|
117
119
|
icon: e.icon,
|
|
118
120
|
size: e.size,
|
|
119
|
-
onMousedown:
|
|
120
|
-
onTouchstart:
|
|
121
|
+
onMousedown: b(S, ["stop"]),
|
|
122
|
+
onTouchstart: b(S, ["stop"])
|
|
121
123
|
}), {
|
|
122
|
-
default:
|
|
123
|
-
|
|
124
|
+
default: T(() => [
|
|
125
|
+
m(P(U), {
|
|
124
126
|
icon: e.icon,
|
|
125
127
|
size: e.iconSize
|
|
126
128
|
}, null, 8, ["icon", "size"]),
|
|
127
|
-
|
|
128
|
-
default:
|
|
129
|
-
s.value ? (
|
|
129
|
+
m(i, null, {
|
|
130
|
+
default: T(() => [
|
|
131
|
+
s.value ? (p(), c("span", {
|
|
130
132
|
key: 0,
|
|
131
|
-
style:
|
|
133
|
+
style: J(N.value)
|
|
132
134
|
}, [
|
|
133
|
-
s.value ? (
|
|
134
|
-
s.value ? (
|
|
135
|
-
], 4)) :
|
|
135
|
+
s.value ? (p(), c("span", Z, "(" + q(f.value) + ")", 1)) : h("", !0),
|
|
136
|
+
s.value ? (p(), c("span", ee, q(a.value), 1)) : h("", !0)
|
|
137
|
+
], 4)) : h("", !0)
|
|
136
138
|
]),
|
|
137
139
|
_: 1
|
|
138
140
|
})
|
|
139
141
|
]),
|
|
140
142
|
_: 1
|
|
141
143
|
}, 16, ["icon", "size"]),
|
|
142
|
-
|
|
143
|
-
default:
|
|
144
|
-
s.value ?
|
|
145
|
-
|
|
144
|
+
m(n, null, {
|
|
145
|
+
default: T(() => [
|
|
146
|
+
s.value ? h("", !0) : (p(), c("div", te, [
|
|
147
|
+
E(e.$slots, "append", { size: e.size }, void 0, !0)
|
|
146
148
|
]))
|
|
147
149
|
]),
|
|
148
150
|
_: 3
|
|
@@ -152,5 +154,5 @@ const Q = { key: 0 }, R = {
|
|
|
152
154
|
}
|
|
153
155
|
});
|
|
154
156
|
export {
|
|
155
|
-
|
|
157
|
+
se as default
|
|
156
158
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useItem as
|
|
3
|
-
import { useFilters as
|
|
4
|
-
import { nestedValue as
|
|
1
|
+
import { defineComponent as x, computed as V, toValue as G, resolveComponent as N, openBlock as a, createElementBlock as r, normalizeClass as l, createVNode as y, withCtx as m, unref as n, createBlock as p, createCommentVNode as f, normalizeStyle as D, renderSlot as i, createTextVNode as c, toDisplayString as s, createElementVNode as g } from "vue";
|
|
2
|
+
import { useItem as E } from "../composables/item.mjs";
|
|
3
|
+
import { useFilters as F } from "../composables/filters.mjs";
|
|
4
|
+
import { nestedValue as L } from "../composables/helpers.mjs";
|
|
5
5
|
import { useNavigation as P } from "../composables/navigation.mjs";
|
|
6
|
+
import { VProgressCircular as v } from "../bt-core/core/node_modules/vuetify/lib/components/VProgressCircular/VProgressCircular.mjs";
|
|
7
|
+
import { VOverlay as b } from "../bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs";
|
|
6
8
|
const w = {
|
|
7
9
|
key: 0,
|
|
8
10
|
class: "align-center justify-center text-center"
|
|
9
|
-
},
|
|
11
|
+
}, O = { key: "3" }, K = /* @__PURE__ */ x({
|
|
10
12
|
__name: "BT-Entity",
|
|
11
13
|
props: {
|
|
12
14
|
alternateText: {},
|
|
@@ -87,86 +89,86 @@ const w = {
|
|
|
87
89
|
variant: {}
|
|
88
90
|
},
|
|
89
91
|
emits: ["fetched", "saved"],
|
|
90
|
-
setup(
|
|
91
|
-
const
|
|
92
|
+
setup(B, { emit: h }) {
|
|
93
|
+
const I = h, o = B, S = F(), t = E(o, I, {
|
|
92
94
|
onGetItem: (e) => {
|
|
93
95
|
o.assignToObject != null && o.assignToProp != null && (o.assignToObject[o.assignToProp] = e);
|
|
94
96
|
}
|
|
95
|
-
}),
|
|
96
|
-
var e =
|
|
97
|
-
return o.textFunction != null && (e = o.textFunction(e)),
|
|
97
|
+
}), A = P(), d = o.itemText ?? (o.nav != null ? A.findItemText(o.nav) : void 0) ?? void 0, T = V(() => {
|
|
98
|
+
var e = G(t.asyncItem);
|
|
99
|
+
return o.textFunction != null && (e = o.textFunction(e)), d != null && (e = L(t.asyncItem.value, d)), o.textFilter != null ? S.findFilter(o.textFilter)(e) : e;
|
|
98
100
|
});
|
|
99
|
-
return (e,
|
|
100
|
-
const
|
|
101
|
+
return (e, u) => {
|
|
102
|
+
const C = N("v-slide-x-transition");
|
|
101
103
|
return a(), r("div", {
|
|
102
|
-
class:
|
|
104
|
+
class: l(e.inline ? "d-inline" : "")
|
|
103
105
|
}, [
|
|
104
|
-
|
|
105
|
-
default:
|
|
106
|
-
e.inline && t
|
|
107
|
-
e.hideLoader ?
|
|
106
|
+
y(C, { "hide-on-leave": "" }, {
|
|
107
|
+
default: m(() => [
|
|
108
|
+
e.inline && n(t).isLoading.value ? (a(), r("div", w, [
|
|
109
|
+
e.hideLoader ? f("", !0) : (a(), p(n(v), {
|
|
108
110
|
key: 0,
|
|
109
111
|
indeterminate: "",
|
|
110
112
|
size: "20"
|
|
111
113
|
}))
|
|
112
|
-
])) : t
|
|
114
|
+
])) : n(t).asyncItem.value != null ? (a(), r("div", {
|
|
113
115
|
key: "1",
|
|
114
|
-
class:
|
|
115
|
-
style:
|
|
116
|
+
class: l({ "d-inline": e.inline, "text-truncate": e.truncate }),
|
|
117
|
+
style: D(e.truncate == !0 ? "display: inline-block;" : "")
|
|
116
118
|
}, [
|
|
117
|
-
|
|
118
|
-
item: t
|
|
119
|
-
refresh: t
|
|
119
|
+
i(e.$slots, "prepend", {
|
|
120
|
+
item: n(t).asyncItem.value,
|
|
121
|
+
refresh: n(t).refresh
|
|
120
122
|
}, () => [
|
|
121
|
-
|
|
123
|
+
c(s(e.prefix), 1)
|
|
122
124
|
]),
|
|
123
|
-
|
|
124
|
-
isChanged: t
|
|
125
|
-
item: t
|
|
126
|
-
deleteItem: t
|
|
127
|
-
refresh: t
|
|
128
|
-
save: () => t
|
|
125
|
+
i(e.$slots, "default", {
|
|
126
|
+
isChanged: n(t).isChanged,
|
|
127
|
+
item: n(t).asyncItem.value,
|
|
128
|
+
deleteItem: n(t).deleteItem,
|
|
129
|
+
refresh: n(t).refresh,
|
|
130
|
+
save: () => n(t).saveItem(n(t).asyncItem.value)
|
|
129
131
|
}, () => [
|
|
130
|
-
|
|
132
|
+
c(s(T.value), 1)
|
|
131
133
|
]),
|
|
132
|
-
|
|
133
|
-
item: t
|
|
134
|
-
refresh: t
|
|
134
|
+
i(e.$slots, "append", {
|
|
135
|
+
item: n(t).asyncItem.value,
|
|
136
|
+
refresh: n(t).refresh
|
|
135
137
|
}, () => [
|
|
136
|
-
|
|
138
|
+
c(s(e.suffix), 1)
|
|
137
139
|
])
|
|
138
140
|
], 6)) : (a(), r("div", {
|
|
139
141
|
key: "2",
|
|
140
|
-
class:
|
|
142
|
+
class: l(e.inline ? "d-inline" : "")
|
|
141
143
|
}, [
|
|
142
|
-
|
|
143
|
-
item: t
|
|
144
|
-
refresh: t
|
|
144
|
+
i(e.$slots, "alternate", {
|
|
145
|
+
item: n(t).asyncItem.value,
|
|
146
|
+
refresh: n(t).refresh
|
|
145
147
|
}, () => [
|
|
146
|
-
|
|
148
|
+
g("span", O, s(e.alternateText), 1)
|
|
147
149
|
])
|
|
148
150
|
], 2))
|
|
149
151
|
]),
|
|
150
152
|
_: 3
|
|
151
153
|
}),
|
|
152
|
-
!e.inline && !e.hideLoader ? (a(),
|
|
154
|
+
!e.inline && !e.hideLoader ? (a(), p(n(b), {
|
|
153
155
|
key: 0,
|
|
154
|
-
modelValue: t
|
|
155
|
-
"onUpdate:modelValue":
|
|
156
|
+
modelValue: n(t).isLoading.value,
|
|
157
|
+
"onUpdate:modelValue": u[0] || (u[0] = (k) => n(t).isLoading.value = k),
|
|
156
158
|
class: "align-center justify-center text-center",
|
|
157
159
|
contained: "",
|
|
158
160
|
persistent: ""
|
|
159
161
|
}, {
|
|
160
|
-
default:
|
|
161
|
-
|
|
162
|
-
|
|
162
|
+
default: m(() => [
|
|
163
|
+
y(n(v), { indeterminate: "" }),
|
|
164
|
+
g("p", null, s(n(t).loadingMsg), 1)
|
|
163
165
|
]),
|
|
164
166
|
_: 1
|
|
165
|
-
}, 8, ["modelValue"])) :
|
|
167
|
+
}, 8, ["modelValue"])) : f("", !0)
|
|
166
168
|
], 2);
|
|
167
169
|
};
|
|
168
170
|
}
|
|
169
171
|
});
|
|
170
172
|
export {
|
|
171
|
-
|
|
173
|
+
K as default
|
|
172
174
|
};
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as i, ref as u, watch as p, resolveComponent as d, openBlock as c, createBlock as m, withCtx as t, createVNode as f, unref as _, createTextVNode as v, toDisplayString as V } from "vue";
|
|
2
|
+
import { VAlert as g } from "../bt-core/core/node_modules/vuetify/lib/components/VAlert/VAlert.mjs";
|
|
3
|
+
const x = /* @__PURE__ */ i({
|
|
3
4
|
__name: "BT-Error",
|
|
4
5
|
props: {
|
|
5
6
|
errorMsg: {}
|
|
6
7
|
},
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
9
|
-
return
|
|
10
|
-
e.value =
|
|
11
|
-
}), (
|
|
12
|
-
const
|
|
13
|
-
return
|
|
14
|
-
default:
|
|
15
|
-
f(
|
|
8
|
+
setup(l) {
|
|
9
|
+
const n = l, e = u(!1);
|
|
10
|
+
return p(() => n.errorMsg, (r) => {
|
|
11
|
+
e.value = r != null;
|
|
12
|
+
}), (r, o) => {
|
|
13
|
+
const a = d("v-slide-y-transition");
|
|
14
|
+
return c(), m(a, null, {
|
|
15
|
+
default: t(() => [
|
|
16
|
+
f(_(g), {
|
|
16
17
|
closable: "",
|
|
17
18
|
title: "Error",
|
|
18
19
|
color: "red-lighten-1",
|
|
19
20
|
modelValue: e.value,
|
|
20
|
-
"onUpdate:modelValue":
|
|
21
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
|
|
21
22
|
}, {
|
|
22
|
-
default:
|
|
23
|
-
v(
|
|
23
|
+
default: t(() => [
|
|
24
|
+
v(V(r.errorMsg), 1)
|
|
24
25
|
]),
|
|
25
26
|
_: 1
|
|
26
27
|
}, 8, ["modelValue"])
|
|
@@ -31,5 +32,5 @@ const h = /* @__PURE__ */ p({
|
|
|
31
32
|
}
|
|
32
33
|
});
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
x as default
|
|
35
36
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TestRequired as
|
|
3
|
-
|
|
1
|
+
import { defineComponent as B, computed as o, inject as r, ref as n, openBlock as V, createBlock as h, unref as u, withCtx as M, createVNode as C, mergeProps as E } from "vue";
|
|
2
|
+
import { TestRequired as S } from "../composables/rules.mjs";
|
|
3
|
+
import { VCheckbox as k } from "../bt-core/core/node_modules/vuetify/lib/components/VCheckbox/VCheckbox.mjs";
|
|
4
|
+
import { VCol as q } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
|
|
5
|
+
const _ = /* @__PURE__ */ B({
|
|
4
6
|
inheritAttrs: !1,
|
|
5
7
|
__name: "BT-Field-Checkbox",
|
|
6
8
|
props: {
|
|
@@ -19,43 +21,40 @@ const I = /* @__PURE__ */ V({
|
|
|
19
21
|
},
|
|
20
22
|
emits: ["update:modelValue"],
|
|
21
23
|
setup(d, { emit: m }) {
|
|
22
|
-
const e = d,
|
|
24
|
+
const e = d, p = m, a = o({
|
|
23
25
|
get() {
|
|
24
26
|
return e.modelValue;
|
|
25
27
|
},
|
|
26
28
|
set(l) {
|
|
27
|
-
|
|
29
|
+
p("update:modelValue", l);
|
|
28
30
|
}
|
|
29
|
-
}),
|
|
31
|
+
}), f = r("isEditing", () => n(!1), !0), c = o(() => e.isEditing ?? f.value), t = r("isMobile", () => n(!1), !0), s = o(() => {
|
|
30
32
|
var l = [
|
|
31
33
|
...e.rules ?? []
|
|
32
34
|
];
|
|
33
|
-
return e.required && l.push(
|
|
34
|
-
}),
|
|
35
|
-
return (l,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["lg", "md", "sm", "cols"]);
|
|
56
|
-
};
|
|
35
|
+
return e.required && l.push(S), l.length > 0 ? l : void 0;
|
|
36
|
+
}), g = o(() => e.isMobile ?? t.value ? !1 : e.lg), v = o(() => e.isMobile ?? t.value ? !1 : e.md), b = o(() => e.isMobile ?? t.value ? !1 : e.sm);
|
|
37
|
+
return (l, i) => (V(), h(u(q), {
|
|
38
|
+
lg: g.value,
|
|
39
|
+
md: v.value,
|
|
40
|
+
sm: b.value,
|
|
41
|
+
cols: l.cols
|
|
42
|
+
}, {
|
|
43
|
+
default: M(() => [
|
|
44
|
+
C(u(k), E(l.$attrs, {
|
|
45
|
+
modelValue: a.value,
|
|
46
|
+
"onUpdate:modelValue": i[0] || (i[0] = (y) => a.value = y),
|
|
47
|
+
color: "primary",
|
|
48
|
+
"hide-details": s.value == null,
|
|
49
|
+
label: l.label,
|
|
50
|
+
readonly: !c.value,
|
|
51
|
+
rules: s.value
|
|
52
|
+
}), null, 16, ["modelValue", "hide-details", "label", "readonly", "rules"])
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["lg", "md", "sm", "cols"]));
|
|
57
56
|
}
|
|
58
57
|
});
|
|
59
58
|
export {
|
|
60
|
-
|
|
59
|
+
_ as default
|
|
61
60
|
};
|