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,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent as w, computed as
|
|
1
|
+
import { defineComponent as w, computed as a, resolveComponent as u, openBlock as n, createBlock as i, withCtx as r, createElementBlock as p, toDisplayString as d, createCommentVNode as x, unref as l, createTextVNode as m, normalizeClass as T, normalizeStyle as z } from "vue";
|
|
2
2
|
import { nestedValue as s } from "../composables/helpers.mjs";
|
|
3
3
|
import { useFilters as C } from "../composables/filters.mjs";
|
|
4
|
+
import { VIcon as c } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
|
|
4
5
|
const b = { key: 0 }, B = { key: 1 }, D = /* @__PURE__ */ w({
|
|
5
6
|
__name: "BT-Header-Option",
|
|
6
7
|
props: {
|
|
@@ -9,31 +10,31 @@ const b = { key: 0 }, B = { key: 1 }, D = /* @__PURE__ */ w({
|
|
|
9
10
|
size: {}
|
|
10
11
|
},
|
|
11
12
|
setup(f) {
|
|
12
|
-
const e = f, v = C(), y =
|
|
13
|
+
const e = f, v = C(), y = a(() => (t) => {
|
|
13
14
|
let o = t;
|
|
14
15
|
return e.option.textFunction != null ? o = e.option.textFunction(o) : e.option.value != null && (o = s(t, e.option.value)), e.option.textFilter != null && (o = v.findFilter(e.option.textFilter)(o)), o;
|
|
15
|
-
}), k =
|
|
16
|
+
}), k = a(() => e.option.truncate == !0 && e.option.width != null ? `display: inline-block; width: ${e.option.width.includes("px") || e.option.width.includes("%") ? e.option.width : `${e.option.width}px`};` : "");
|
|
16
17
|
return (t, o) => {
|
|
17
|
-
const
|
|
18
|
+
const F = u("bt-entity"), h = u("v-slide-x-transition");
|
|
18
19
|
return n(), i(h, { group: "" }, {
|
|
19
20
|
default: r(() => [
|
|
20
21
|
t.option.prefix != null ? (n(), p("span", b, d(t.option.prefix), 1)) : x("", !0),
|
|
21
22
|
t.option.bool != null ? (n(), p("span", B, [
|
|
22
|
-
|
|
23
|
+
l(s)(t.data, t.option.value) === !0 ? (n(), i(l(c), {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "text-success",
|
|
25
26
|
size: t.size
|
|
26
27
|
}, {
|
|
27
28
|
default: r(() => o[0] || (o[0] = [
|
|
28
|
-
|
|
29
|
+
m("$check")
|
|
29
30
|
])),
|
|
30
31
|
_: 1
|
|
31
|
-
}, 8, ["size"])) : (n(), i(
|
|
32
|
+
}, 8, ["size"])) : (n(), i(l(c), {
|
|
32
33
|
key: 1,
|
|
33
34
|
class: "text-error"
|
|
34
35
|
}, {
|
|
35
36
|
default: r(() => o[1] || (o[1] = [
|
|
36
|
-
|
|
37
|
+
m("$close")
|
|
37
38
|
])),
|
|
38
39
|
_: 1
|
|
39
40
|
}))
|
|
@@ -41,7 +42,7 @@ const b = { key: 0 }, B = { key: 1 }, D = /* @__PURE__ */ w({
|
|
|
41
42
|
key: 2,
|
|
42
43
|
inline: "",
|
|
43
44
|
itemText: t.option.itemText,
|
|
44
|
-
itemID:
|
|
45
|
+
itemID: l(s)(t.data, t.option.value),
|
|
45
46
|
nav: t.option.nav,
|
|
46
47
|
isSingle: !0,
|
|
47
48
|
textFilter: t.option.textFilter,
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { roundTo as
|
|
4
|
-
import { useActions as
|
|
5
|
-
import { useFileDialog as
|
|
6
|
-
|
|
1
|
+
import { defineComponent as j, ref as n, computed as p, openBlock as r, createElementBlock as k, createBlock as w, unref as e, withCtx as o, createVNode as a, mergeProps as x, toDisplayString as c, createCommentVNode as S, createElementVNode as u, createTextVNode as s } from "vue";
|
|
2
|
+
import P, { cropper as W } from "../bt-core/core/node_modules/vue-picture-cropper/lib/index.mjs";
|
|
3
|
+
import { roundTo as q, isNullOrEmpty as G } from "../composables/helpers.mjs";
|
|
4
|
+
import { useActions as J } from "../composables/actions.mjs";
|
|
5
|
+
import { useFileDialog as K } from "@vueuse/core";
|
|
6
|
+
import { VHover as Q } from "../bt-core/core/node_modules/vuetify/lib/components/VHover/VHover.mjs";
|
|
7
|
+
import { VDialog as X } from "../bt-core/core/node_modules/vuetify/lib/components/VDialog/VDialog.mjs";
|
|
8
|
+
import { VBtn as V } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
|
|
9
|
+
import { VContainer as z } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VContainer.mjs";
|
|
10
|
+
import { VImg as B } from "../bt-core/core/node_modules/vuetify/lib/components/VImg/VImg.mjs";
|
|
11
|
+
import { VIcon as y } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
|
|
12
|
+
import { VOverlay as Y } from "../bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs";
|
|
13
|
+
import { VCard as Z } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
|
|
14
|
+
import { VCardTitle as ee } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCardTitle.mjs";
|
|
15
|
+
import { VSpacer as R } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs";
|
|
16
|
+
import { VCardText as te } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCardText.mjs";
|
|
17
|
+
import { VCardActions as ae } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCardActions.mjs";
|
|
18
|
+
const le = { class: "mx-auto" }, oe = {
|
|
7
19
|
key: 0,
|
|
8
20
|
class: "my-1"
|
|
9
|
-
}, ie = { class: "d-flex flex-column align-center" }, de = { class: "text-white" },
|
|
21
|
+
}, ie = { class: "d-flex flex-column align-center" }, de = { class: "text-white" }, ne = { class: "d-flex align-center" }, re = { class: "mr-4 text-caption" }, xe = /* @__PURE__ */ j({
|
|
10
22
|
__name: "BT-Image-Select",
|
|
11
23
|
props: {
|
|
12
24
|
additionalURL: {},
|
|
@@ -27,193 +39,190 @@ const le = { class: "mx-auto" }, ne = {
|
|
|
27
39
|
src: {}
|
|
28
40
|
},
|
|
29
41
|
emits: ["uploaded"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
42
|
+
setup(U, { emit: _ }) {
|
|
43
|
+
const E = _, i = U, D = n(!0), T = n(), N = p(() => Number.parseInt(i.size)), m = n(!1), { actionLoadingMsg: $, apiUpload: A } = J(), d = n(), g = n(), C = n((/* @__PURE__ */ new Date()).getTime().toString()), I = p(() => `${i.src}?${C.value}`), h = p(() => q(i.imageWidth / i.imageHeight, 2)), f = p(() => i.height * h.value), { onChange: H, open: b } = K({
|
|
32
44
|
accept: "image/*"
|
|
33
45
|
});
|
|
34
|
-
|
|
35
|
-
if (g.value = "",
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
g.value = String(
|
|
46
|
+
H((t) => {
|
|
47
|
+
if (g.value = "", t != null && t.length > 0 ? d.value = t[0] : d.value = void 0, d.value != null) {
|
|
48
|
+
const l = new FileReader();
|
|
49
|
+
l.readAsDataURL(d.value), l.onload = () => {
|
|
50
|
+
g.value = String(l.result);
|
|
39
51
|
};
|
|
40
52
|
}
|
|
41
53
|
});
|
|
42
|
-
async function
|
|
43
|
-
if (
|
|
54
|
+
async function L() {
|
|
55
|
+
if (W)
|
|
44
56
|
try {
|
|
45
|
-
const
|
|
46
|
-
height:
|
|
47
|
-
width:
|
|
57
|
+
const t = await W.getBlob({
|
|
58
|
+
height: i.imageHeight,
|
|
59
|
+
width: i.imageWidth
|
|
48
60
|
});
|
|
49
61
|
await A({
|
|
50
|
-
additionalUrl:
|
|
51
|
-
data:
|
|
52
|
-
id:
|
|
53
|
-
nav:
|
|
54
|
-
proxyID:
|
|
55
|
-
}),
|
|
62
|
+
additionalUrl: i.additionalURL,
|
|
63
|
+
data: t,
|
|
64
|
+
id: i.id,
|
|
65
|
+
nav: i.nav,
|
|
66
|
+
proxyID: i.proxyID
|
|
67
|
+
}), C.value = (/* @__PURE__ */ new Date()).getTime().toString(), E("uploaded"), m.value = !1;
|
|
56
68
|
} catch {
|
|
57
69
|
m.value = !1;
|
|
58
70
|
}
|
|
59
71
|
}
|
|
60
|
-
return (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
_: 2
|
|
128
|
-
}, 1040)
|
|
129
|
-
]),
|
|
130
|
-
_: 2
|
|
131
|
-
}, 1024)
|
|
132
|
-
]),
|
|
133
|
-
_: 2
|
|
134
|
-
}, 1040, ["onClick", "color", "height", "width"])
|
|
135
|
-
]),
|
|
136
|
-
default: a(() => [
|
|
137
|
-
t(G, {
|
|
138
|
-
loading: c(L) != null,
|
|
139
|
-
width: "100%"
|
|
140
|
-
}, {
|
|
141
|
-
default: a(() => [
|
|
142
|
-
r("div", se, [
|
|
143
|
-
t(j, null, {
|
|
144
|
-
default: a(() => o[5] || (o[5] = [
|
|
145
|
-
u("Image Editor")
|
|
146
|
-
])),
|
|
147
|
-
_: 1
|
|
148
|
-
}),
|
|
149
|
-
t(V),
|
|
150
|
-
r("span", ce, "Aspect: " + v(h.value), 1)
|
|
72
|
+
return (t, l) => (r(), k("div", le, [
|
|
73
|
+
t.canEdit ? (r(), w(e(X), {
|
|
74
|
+
key: 0,
|
|
75
|
+
modelValue: m.value,
|
|
76
|
+
"onUpdate:modelValue": l[1] || (l[1] = (v) => m.value = v),
|
|
77
|
+
"max-width": t.maxDialogWidth,
|
|
78
|
+
"min-width": t.minDialogWidth,
|
|
79
|
+
width: t.dialogWidth
|
|
80
|
+
}, {
|
|
81
|
+
activator: o(({ props: v }) => [
|
|
82
|
+
a(e(V), x({
|
|
83
|
+
onClick: e(b),
|
|
84
|
+
class: "mx-auto pa-1",
|
|
85
|
+
color: t.color,
|
|
86
|
+
height: t.height + 35,
|
|
87
|
+
width: f.value + 15
|
|
88
|
+
}, v), {
|
|
89
|
+
default: o(() => [
|
|
90
|
+
a(e(Q), null, {
|
|
91
|
+
default: o(({ isHovering: F, props: M }) => [
|
|
92
|
+
a(e(z), x({ class: "pa-0 ma-0" }, M), {
|
|
93
|
+
default: o(() => [
|
|
94
|
+
e(G)(t.label) ? S("", !0) : (r(), k("div", oe, c(t.label), 1)),
|
|
95
|
+
a(e(B), {
|
|
96
|
+
height: t.height,
|
|
97
|
+
src: I.value,
|
|
98
|
+
width: f.value
|
|
99
|
+
}, {
|
|
100
|
+
placeholder: o(() => [
|
|
101
|
+
u("div", ie, [
|
|
102
|
+
a(e(y), {
|
|
103
|
+
size: N.value - 15
|
|
104
|
+
}, {
|
|
105
|
+
default: o(() => [
|
|
106
|
+
s(c(t.placeholderIcon), 1)
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}, 8, ["size"]),
|
|
110
|
+
l[2] || (l[2] = u("p", null, "Upload Image", -1))
|
|
111
|
+
])
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
}, 8, ["height", "src", "width"]),
|
|
115
|
+
F ? (r(), w(e(Y), {
|
|
116
|
+
key: 1,
|
|
117
|
+
class: "align-center justify-center",
|
|
118
|
+
opacity: 0.75,
|
|
119
|
+
modelValue: D.value,
|
|
120
|
+
"onUpdate:modelValue": l[0] || (l[0] = (O) => D.value = O),
|
|
121
|
+
contained: ""
|
|
122
|
+
}, {
|
|
123
|
+
default: o(() => [
|
|
124
|
+
u("div", de, [
|
|
125
|
+
a(e(y), { start: "" }, {
|
|
126
|
+
default: o(() => l[3] || (l[3] = [
|
|
127
|
+
s("$pencil")
|
|
128
|
+
])),
|
|
129
|
+
_: 1
|
|
130
|
+
}),
|
|
131
|
+
l[4] || (l[4] = s("Edit Image "))
|
|
132
|
+
])
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 8, ["modelValue"])) : S("", !0)
|
|
136
|
+
]),
|
|
137
|
+
_: 2
|
|
138
|
+
}, 1040)
|
|
151
139
|
]),
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
]),
|
|
140
|
+
_: 2
|
|
141
|
+
}, 1024)
|
|
142
|
+
]),
|
|
143
|
+
_: 2
|
|
144
|
+
}, 1040, ["onClick", "color", "height", "width"])
|
|
145
|
+
]),
|
|
146
|
+
default: o(() => [
|
|
147
|
+
a(e(Z), {
|
|
148
|
+
loading: e($) != null,
|
|
149
|
+
width: "100%"
|
|
150
|
+
}, {
|
|
151
|
+
default: o(() => [
|
|
152
|
+
u("div", ne, [
|
|
153
|
+
a(e(ee), null, {
|
|
154
|
+
default: o(() => l[5] || (l[5] = [
|
|
155
|
+
s("Image Editor")
|
|
156
|
+
])),
|
|
169
157
|
_: 1
|
|
170
158
|
}),
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
t(w, {
|
|
174
|
-
onClick: c(x),
|
|
175
|
-
"prepend-icon": "$pencil",
|
|
176
|
-
text: i.value != null ? "Change Image" : "Select Image"
|
|
177
|
-
}, null, 8, ["onClick", "text"]),
|
|
178
|
-
t(V),
|
|
179
|
-
t(w, {
|
|
180
|
-
onClick: H,
|
|
181
|
-
disabled: i.value == null && $.value == null,
|
|
182
|
-
"prepend-icon": "$content-save",
|
|
183
|
-
text: "Save"
|
|
184
|
-
}, null, 8, ["disabled"])
|
|
185
|
-
]),
|
|
186
|
-
_: 1
|
|
187
|
-
})
|
|
188
|
-
]),
|
|
189
|
-
_: 1
|
|
190
|
-
}, 8, ["loading"])
|
|
191
|
-
]),
|
|
192
|
-
_: 1
|
|
193
|
-
}, 8, ["modelValue", "max-width", "min-width", "width"])) : (s(), b(S, { key: 1 }, {
|
|
194
|
-
default: a(() => [
|
|
195
|
-
t(C, {
|
|
196
|
-
src: k.value,
|
|
197
|
-
height: e.height,
|
|
198
|
-
width: _.value
|
|
199
|
-
}, {
|
|
200
|
-
placeholder: a(() => [
|
|
201
|
-
t(f, { size: e.size }, {
|
|
202
|
-
default: a(() => [
|
|
203
|
-
u(v(e.placeholderIcon), 1)
|
|
204
|
-
]),
|
|
205
|
-
_: 1
|
|
206
|
-
}, 8, ["size"])
|
|
159
|
+
a(e(R)),
|
|
160
|
+
u("span", re, "Aspect: " + c(h.value), 1)
|
|
207
161
|
]),
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
162
|
+
a(e(te), null, {
|
|
163
|
+
default: o(() => [
|
|
164
|
+
a(e(P), {
|
|
165
|
+
boxStyle: {
|
|
166
|
+
height: "100%",
|
|
167
|
+
margin: "auto",
|
|
168
|
+
width: "100%"
|
|
169
|
+
},
|
|
170
|
+
img: g.value,
|
|
171
|
+
options: {
|
|
172
|
+
aspectRatio: h.value,
|
|
173
|
+
cropBoxResizable: !1,
|
|
174
|
+
dragMode: "move",
|
|
175
|
+
viewMode: 1
|
|
176
|
+
}
|
|
177
|
+
}, null, 8, ["img", "options"])
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}),
|
|
181
|
+
a(e(ae), null, {
|
|
182
|
+
default: o(() => [
|
|
183
|
+
a(e(V), {
|
|
184
|
+
onClick: e(b),
|
|
185
|
+
"prepend-icon": "$pencil",
|
|
186
|
+
text: d.value != null ? "Change Image" : "Select Image"
|
|
187
|
+
}, null, 8, ["onClick", "text"]),
|
|
188
|
+
a(e(R)),
|
|
189
|
+
a(e(V), {
|
|
190
|
+
onClick: L,
|
|
191
|
+
disabled: d.value == null && T.value == null,
|
|
192
|
+
"prepend-icon": "$content-save",
|
|
193
|
+
text: "Save"
|
|
194
|
+
}, null, 8, ["disabled"])
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
})
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}, 8, ["loading"])
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}, 8, ["modelValue", "max-width", "min-width", "width"])) : (r(), w(e(z), { key: 1 }, {
|
|
204
|
+
default: o(() => [
|
|
205
|
+
a(e(B), {
|
|
206
|
+
src: I.value,
|
|
207
|
+
height: t.height,
|
|
208
|
+
width: f.value
|
|
209
|
+
}, {
|
|
210
|
+
placeholder: o(() => [
|
|
211
|
+
a(e(y), { size: t.size }, {
|
|
212
|
+
default: o(() => [
|
|
213
|
+
s(c(t.placeholderIcon), 1)
|
|
214
|
+
]),
|
|
215
|
+
_: 1
|
|
216
|
+
}, 8, ["size"])
|
|
217
|
+
]),
|
|
218
|
+
_: 1
|
|
219
|
+
}, 8, ["src", "height", "width"])
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}))
|
|
223
|
+
]));
|
|
215
224
|
}
|
|
216
225
|
});
|
|
217
226
|
export {
|
|
218
|
-
|
|
227
|
+
xe as default
|
|
219
228
|
};
|
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as p, computed as d, openBlock as n, createBlock as g, unref as a, withCtx as u, createVNode as m, createElementBlock as s, Fragment as v, renderList as _, createElementVNode as y } from "vue";
|
|
2
|
+
import { VCard as x } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
|
|
3
|
+
import { VCardText as k } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCardText.mjs";
|
|
4
|
+
const b = ["innerHTML"], V = /* @__PURE__ */ p({
|
|
3
5
|
__name: "BT-Json",
|
|
4
6
|
props: ["value"],
|
|
5
|
-
setup(
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
return typeof e != "string" && (e = JSON.stringify(e, void 0, 2)), e = e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), e.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function(
|
|
9
|
-
var
|
|
10
|
-
return /^"/.test(
|
|
7
|
+
setup(i) {
|
|
8
|
+
const l = i, o = d(() => l.value == null ? [] : Array.isArray(l.value) ? l.value : [l.value]);
|
|
9
|
+
function f(e) {
|
|
10
|
+
return typeof e != "string" && (e = JSON.stringify(e, void 0, 2)), e = e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), e.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function(r) {
|
|
11
|
+
var t = "number";
|
|
12
|
+
return /^"/.test(r) ? /:$/.test(r) ? t = "key" : t = "string" : /true|false/.test(r) ? t = "boolean" : /null/.test(r) && (t = "null"), '<span class="' + t + '">' + r + "</span>";
|
|
11
13
|
});
|
|
12
14
|
}
|
|
13
|
-
return (e,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
_: 1
|
|
32
|
-
});
|
|
33
|
-
};
|
|
15
|
+
return (e, c) => (n(), g(a(x), {
|
|
16
|
+
"max-height": "350",
|
|
17
|
+
class: "overflow-y-auto"
|
|
18
|
+
}, {
|
|
19
|
+
default: u(() => [
|
|
20
|
+
m(a(k), null, {
|
|
21
|
+
default: u(() => [
|
|
22
|
+
(n(!0), s(v, null, _(o.value, (r, t) => (n(), s("div", { key: t }, [
|
|
23
|
+
y("pre", {
|
|
24
|
+
innerHTML: f(r)
|
|
25
|
+
}, null, 8, b)
|
|
26
|
+
]))), 128))
|
|
27
|
+
]),
|
|
28
|
+
_: 1
|
|
29
|
+
})
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
}));
|
|
34
33
|
}
|
|
35
34
|
});
|
|
36
35
|
export {
|
|
37
|
-
|
|
36
|
+
V as default
|
|
38
37
|
};
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as d, computed as u, openBlock as m, createBlock as s, unref as e, withCtx as t, createVNode as o, createElementVNode as p, toDisplayString as c } from "vue";
|
|
2
|
+
import { VOverlay as f } from "../bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs";
|
|
3
|
+
import { VCard as g } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
|
|
4
|
+
import { VCardText as V } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCardText.mjs";
|
|
5
|
+
import { VProgressCircular as x } from "../bt-core/core/node_modules/vuetify/lib/components/VProgressCircular/VProgressCircular.mjs";
|
|
6
|
+
const k = /* @__PURE__ */ d({
|
|
3
7
|
__name: "BT-Loader",
|
|
4
8
|
props: ["loadingMsg"],
|
|
5
|
-
setup(
|
|
6
|
-
const
|
|
7
|
-
return (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_: 1
|
|
31
|
-
}, 8, ["modelValue"]);
|
|
32
|
-
};
|
|
9
|
+
setup(r) {
|
|
10
|
+
const a = r, l = u(() => a.loadingMsg != null);
|
|
11
|
+
return (C, n) => (m(), s(e(f), {
|
|
12
|
+
modelValue: l.value,
|
|
13
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
|
|
14
|
+
class: "align-center justify-center text-center overlay",
|
|
15
|
+
contained: "",
|
|
16
|
+
persistent: ""
|
|
17
|
+
}, {
|
|
18
|
+
default: t(() => [
|
|
19
|
+
o(e(g), null, {
|
|
20
|
+
default: t(() => [
|
|
21
|
+
o(e(V), null, {
|
|
22
|
+
default: t(() => [
|
|
23
|
+
o(e(x), { indeterminate: "" }),
|
|
24
|
+
p("p", null, c(r.loadingMsg), 1)
|
|
25
|
+
]),
|
|
26
|
+
_: 1
|
|
27
|
+
})
|
|
28
|
+
]),
|
|
29
|
+
_: 1
|
|
30
|
+
})
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
}, 8, ["modelValue"]));
|
|
33
34
|
}
|
|
34
35
|
});
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
+
k as default
|
|
37
38
|
};
|