bt-core-app 2.2.6 → 2.2.7
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/bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs +10 -11
- package/dist/components/BT-Background-Task.vue.mjs +44 -46
- package/dist/components/BT-Blade-Item.vue.mjs +64 -63
- package/dist/components/BT-Blade-Items.vue.mjs +2 -2
- package/dist/components/BT-Blade-Items.vue2.mjs +239 -238
- package/dist/components/BT-Blade-Steps.vue.mjs +2 -2
- package/dist/components/BT-Blade-Steps.vue2.mjs +457 -456
- package/dist/components/BT-Blade.vue.mjs +187 -189
- package/dist/components/BT-Camera-Overlay.vue.mjs +139 -141
- package/dist/components/BT-Cron.vue.mjs +127 -126
- package/dist/components/BT-Dialog-Select.vue.mjs +91 -90
- package/dist/components/BT-Drag-Counter.vue.mjs +2 -2
- package/dist/components/BT-Drag-Counter.vue2.mjs +87 -89
- package/dist/components/BT-Entity.vue.mjs +79 -81
- package/dist/components/BT-Error.vue.mjs +23 -25
- package/dist/components/BT-Form-Builder.vue.mjs +221 -220
- package/dist/components/BT-Form-Field.vue.mjs +67 -66
- package/dist/components/BT-Form.vue.mjs +192 -191
- package/dist/components/BT-Header-Option.vue.mjs +21 -20
- package/dist/components/BT-Numpad.vue.mjs +143 -145
- package/dist/components/BT-Select-List-Box.vue.mjs +270 -272
- package/dist/components/BT-Signature-Overlay.vue.mjs +107 -109
- package/dist/components/BT-Signature.vue.mjs +91 -93
- package/dist/components/BT-Slider.vue.mjs +91 -93
- package/dist/components/BT-Square-Check.vue.mjs +66 -68
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { usePresets as
|
|
3
|
-
import { useBlade as
|
|
4
|
-
import { useNavBack as
|
|
5
|
-
import { useSpring as
|
|
6
|
-
import { useDisplay as
|
|
7
|
-
import { useComponentConfig as
|
|
1
|
+
import { defineComponent as J, computed as r, ref as g, provide as $, watch as K, onMounted as Q, openBlock as v, createBlock as m, unref as l, normalizeClass as X, normalizeStyle as Z, withCtx as a, createVNode as n, renderSlot as u, createCommentVNode as i, createTextVNode as C, toDisplayString as B, mergeProps as x, createElementVNode as _ } from "vue";
|
|
2
|
+
import { usePresets as ee } from "../composables/presets.mjs";
|
|
3
|
+
import { useBlade as te } from "../composables/blade.mjs";
|
|
4
|
+
import { useNavBack as le } from "../composables/navigation.mjs";
|
|
5
|
+
import { useSpring as ae } from "../bt-core/core/node_modules/vue-use-spring/dist/index.mjs";
|
|
6
|
+
import { useDisplay as oe } from "vuetify";
|
|
7
|
+
import { useComponentConfig as ie } from "../composables/component-config.mjs";
|
|
8
8
|
import { VToolbar as W } from "../bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbar.mjs";
|
|
9
|
-
import { VToolbarTitle as
|
|
10
|
-
import { VListSubheader as
|
|
11
|
-
import { VAlert as
|
|
12
|
-
import { VOverlay as
|
|
13
|
-
import { VProgressCircular as
|
|
9
|
+
import { VToolbarTitle as re } from "../bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbarTitle.mjs";
|
|
10
|
+
import { VListSubheader as ne } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListSubheader.mjs";
|
|
11
|
+
import { VAlert as se } from "../bt-core/core/node_modules/vuetify/lib/components/VAlert/VAlert.mjs";
|
|
12
|
+
import { VOverlay as de } from "../bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs";
|
|
13
|
+
import { VProgressCircular as ue } from "../bt-core/core/node_modules/vuetify/lib/components/VProgressCircular/VProgressCircular.mjs";
|
|
14
14
|
import { VCard as D } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
|
|
15
|
+
import { VSlideYTransition as N } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
|
|
15
16
|
import { VBtn as T } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
|
|
16
|
-
import { VMenu as
|
|
17
|
+
import { VMenu as fe } from "../bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs";
|
|
17
18
|
import { VList as pe } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VList.mjs";
|
|
18
|
-
import { VCardText as
|
|
19
|
-
const We = /* @__PURE__ */
|
|
19
|
+
import { VCardText as ve } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCardText.mjs";
|
|
20
|
+
const We = /* @__PURE__ */ J({
|
|
20
21
|
__name: "BT-Blade",
|
|
21
22
|
props: {
|
|
22
23
|
bordered: { type: Boolean },
|
|
@@ -58,7 +59,7 @@ const We = /* @__PURE__ */ K({
|
|
|
58
59
|
},
|
|
59
60
|
emits: ["close", "titled"],
|
|
60
61
|
setup(P, { emit: H }) {
|
|
61
|
-
const t = P,
|
|
62
|
+
const t = P, S = H, V = ee(t.preset), s = r(() => {
|
|
62
63
|
if (t.width == "grow")
|
|
63
64
|
return "grow";
|
|
64
65
|
if (t.width == "auto")
|
|
@@ -70,21 +71,21 @@ const We = /* @__PURE__ */ K({
|
|
|
70
71
|
return "auto";
|
|
71
72
|
}
|
|
72
73
|
return "number";
|
|
73
|
-
}),
|
|
74
|
+
}), M = r(() => t.bladeName == null || !!t.bladeStartShowing), c = r(() => M.value ? typeof t.width == "number" ? t.width : 400 : 0), y = g(!M.value);
|
|
74
75
|
let w = 0;
|
|
75
|
-
const d =
|
|
76
|
-
{ width:
|
|
76
|
+
const d = ae(
|
|
77
|
+
{ width: c.value },
|
|
77
78
|
{ precision: 0.1, mass: 1, friction: 26, tension: 250 },
|
|
78
79
|
{ onRest() {
|
|
79
80
|
f.value = !1;
|
|
80
81
|
} }
|
|
81
|
-
), { xs: U } =
|
|
82
|
+
), { xs: U } = oe(), f = g(!1), b = g(null), z = g(null), { navBack: E } = le();
|
|
82
83
|
function I() {
|
|
83
84
|
var e = t.getNavBack ?? (() => {
|
|
84
85
|
}), o = e() ?? E;
|
|
85
86
|
o();
|
|
86
87
|
}
|
|
87
|
-
const
|
|
88
|
+
const p = te({
|
|
88
89
|
...t,
|
|
89
90
|
blade: b,
|
|
90
91
|
handle: z,
|
|
@@ -92,186 +93,183 @@ const We = /* @__PURE__ */ K({
|
|
|
92
93
|
y.value || (b.value != null && (w = parseInt(window.getComputedStyle(b.value.$el).getPropertyValue("width"))), (s.value == "auto" || s.value == "percent" || s.value == "grow") && (d.width = w), f.value = !0, y.value = !0, d.width = 0);
|
|
93
94
|
},
|
|
94
95
|
onUpdate: () => {
|
|
95
|
-
d.width == 0 && (typeof t.width == "number" ? d.width = t.width : w > 0 ? d.width = w : d.width =
|
|
96
|
+
d.width == 0 && (typeof t.width == "number" ? d.width = t.width : w > 0 ? d.width = w : d.width = c.value != 0 ? c.value : 400, f.value = !0, y.value = !1);
|
|
96
97
|
}
|
|
97
|
-
}), { editVariant: R, viewVariant: j } =
|
|
98
|
-
|
|
99
|
-
const L = r(() => t.loadingMsg != null), A = r(() => !!(
|
|
100
|
-
const e =
|
|
98
|
+
}), { editVariant: R, viewVariant: j } = ie();
|
|
99
|
+
$("isMobile", p.isMobile), $("editVariant", t.editVariant ?? R ?? "outlined"), $("viewVariant", t.viewVariant ?? j ?? "list-item");
|
|
100
|
+
const L = r(() => t.loadingMsg != null), A = r(() => !!(V.hideBladeControls ?? t.hideBladeControls) || !t.bladeName), G = r(() => !!(V.hideNavigation ?? t.hideNavigation) || p.variant.value != "page"), Y = r(() => {
|
|
101
|
+
const e = V.noMargins ?? t.noMargins;
|
|
101
102
|
return e ?? U.value;
|
|
102
103
|
}), O = r(() => {
|
|
103
104
|
if (t.toolbarVariant != "inverted")
|
|
104
105
|
return t.bordered || t.variant == "inline" ? "transparent" : "primary";
|
|
105
|
-
}), k = g(!1),
|
|
106
|
+
}), k = g(!1), q = r(() => {
|
|
106
107
|
var e = "";
|
|
107
|
-
return
|
|
108
|
-
}),
|
|
108
|
+
return Y.value ? e = "" : (t.bordered && !y.value || p.variant.value == "page") && (e = "ma-2"), t.bordered && !y.value && (e = `${e} border-thin pa-1`), t.bladeName != null && s.value == "grow" && (e = `${e} flex-grow-1`), e;
|
|
109
|
+
}), F = r(() => {
|
|
109
110
|
var e = t.opacity != null ? `opacity: ${t.opacity};` : "";
|
|
110
111
|
return t.maxWidth != null && (e = `${e} max-width: ${t.maxWidth};`), t.bladeName != null ? f.value ? `${e} width: ${d.width}px;` : y.value ? `${e} width: 0px;` : s.value == "grow" ? e : s.value == "number" ? `${e} width: ${d.width}px;` : s.value == "auto" ? e : `${e} width: calc(${t.width});` : e;
|
|
111
112
|
});
|
|
112
|
-
return
|
|
113
|
+
return K(() => t.errorMsg, (e) => {
|
|
113
114
|
k.value = e != null;
|
|
114
|
-
}),
|
|
115
|
+
}), Q(() => {
|
|
115
116
|
(s.value == "percent" || s.value == "auto") && b.value != null && (d.width = parseInt(window.getComputedStyle(b.value.$el).getPropertyValue("width")));
|
|
116
|
-
}), (e, o) => {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
key: 0,
|
|
144
|
-
icon: "$arrow-left",
|
|
145
|
-
size: e.size,
|
|
146
|
-
title: "Back",
|
|
147
|
-
onClick: o[0] || (o[0] = () => I())
|
|
148
|
-
}, null, 8, ["size"])),
|
|
149
|
-
e.showOnlyTitleLeft ? i("", !0) : u(e.$slots, "blade-toolbar-left", { key: 1 }),
|
|
150
|
-
u(e.$slots, "blade-title-left"),
|
|
151
|
-
u(e.$slots, "blade-label", {}, () => [
|
|
152
|
-
!e.showOnlyTitleLeft && e.label != null && e.variant != "inline" ? (p(), m(l(ne), {
|
|
153
|
-
key: 0,
|
|
154
|
-
onClick: o[1] || (o[1] = (h) => M("titled"))
|
|
155
|
-
}, {
|
|
156
|
-
default: a(() => [
|
|
157
|
-
N(B(e.label), 1)
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
})) : !e.showOnlyTitleLeft && e.label != null ? (p(), m(l(se), {
|
|
161
|
-
key: 1,
|
|
162
|
-
class: "text-truncate",
|
|
163
|
-
onClick: o[2] || (o[2] = (h) => M("titled"))
|
|
164
|
-
}, {
|
|
165
|
-
default: a(() => [
|
|
166
|
-
N(B(e.label), 1)
|
|
167
|
-
]),
|
|
168
|
-
_: 1
|
|
169
|
-
})) : i("", !0)
|
|
170
|
-
]),
|
|
171
|
-
e.showOnlyTitleLeft ? i("", !0) : u(e.$slots, "blade-title-right", { key: 2 })
|
|
172
|
-
])
|
|
173
|
-
]),
|
|
174
|
-
append: a(() => [
|
|
175
|
-
e.showOnlyTitleLeft ? i("", !0) : u(e.$slots, "blade-toolbar-right", { key: 0 }),
|
|
176
|
-
!A.value && !e.showOnlyTitleLeft ? (p(), m(l(T), {
|
|
177
|
-
icon: "$close",
|
|
178
|
-
key: "6.1",
|
|
117
|
+
}), (e, o) => f.value || !y.value ? (v(), m(l(D), {
|
|
118
|
+
class: X(q.value),
|
|
119
|
+
color: e.transparent ? "transparent" : void 0,
|
|
120
|
+
density: e.density,
|
|
121
|
+
flat: e.flat ?? (l(p).variant.value == "inline" || l(p).variant.value == "pure"),
|
|
122
|
+
key: "1",
|
|
123
|
+
"min-height": e.minHeight,
|
|
124
|
+
ref_key: "blade",
|
|
125
|
+
ref: b,
|
|
126
|
+
style: Z(F.value)
|
|
127
|
+
}, {
|
|
128
|
+
default: a(() => [
|
|
129
|
+
n(l(N), { "hide-on-leave": "" }, {
|
|
130
|
+
default: a(() => [
|
|
131
|
+
!f.value && !e.hideToolbar && e.variant != "pure" ? (v(), m(l(W), {
|
|
132
|
+
key: 0,
|
|
133
|
+
class: "overflow-x-auto",
|
|
134
|
+
color: O.value,
|
|
135
|
+
density: e.density,
|
|
136
|
+
ref_key: "handle",
|
|
137
|
+
ref: z
|
|
138
|
+
}, {
|
|
139
|
+
default: a(() => [
|
|
140
|
+
u(e.$slots, "blade-toolbar", {}, () => [
|
|
141
|
+
G.value ? i("", !0) : (v(), m(l(T), {
|
|
142
|
+
key: 0,
|
|
143
|
+
icon: "$arrow-left",
|
|
179
144
|
size: e.size,
|
|
180
|
-
title: "
|
|
181
|
-
onClick: o[
|
|
182
|
-
}, null, 8, ["size"]))
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
]),
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
]),
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
145
|
+
title: "Back",
|
|
146
|
+
onClick: o[0] || (o[0] = () => I())
|
|
147
|
+
}, null, 8, ["size"])),
|
|
148
|
+
e.showOnlyTitleLeft ? i("", !0) : u(e.$slots, "blade-toolbar-left", { key: 1 }),
|
|
149
|
+
u(e.$slots, "blade-title-left"),
|
|
150
|
+
u(e.$slots, "blade-label", {}, () => [
|
|
151
|
+
!e.showOnlyTitleLeft && e.label != null && e.variant != "inline" ? (v(), m(l(re), {
|
|
152
|
+
key: 0,
|
|
153
|
+
onClick: o[1] || (o[1] = (h) => S("titled"))
|
|
154
|
+
}, {
|
|
155
|
+
default: a(() => [
|
|
156
|
+
C(B(e.label), 1)
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
})) : !e.showOnlyTitleLeft && e.label != null ? (v(), m(l(ne), {
|
|
160
|
+
key: 1,
|
|
161
|
+
class: "text-truncate",
|
|
162
|
+
onClick: o[2] || (o[2] = (h) => S("titled"))
|
|
163
|
+
}, {
|
|
164
|
+
default: a(() => [
|
|
165
|
+
C(B(e.label), 1)
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
})) : i("", !0)
|
|
169
|
+
]),
|
|
170
|
+
e.showOnlyTitleLeft ? i("", !0) : u(e.$slots, "blade-title-right", { key: 2 })
|
|
171
|
+
])
|
|
172
|
+
]),
|
|
173
|
+
append: a(() => [
|
|
174
|
+
e.showOnlyTitleLeft ? i("", !0) : u(e.$slots, "blade-toolbar-right", { key: 0 }),
|
|
175
|
+
!A.value && !e.showOnlyTitleLeft ? (v(), m(l(T), {
|
|
176
|
+
icon: "$close",
|
|
177
|
+
key: "6.1",
|
|
178
|
+
size: e.size,
|
|
179
|
+
title: "Close",
|
|
180
|
+
onClick: o[3] || (o[3] = () => l(p).closeBlade({ bladeName: e.bladeName, mode: "remove" }))
|
|
181
|
+
}, null, 8, ["size"])) : i("", !0),
|
|
182
|
+
!e.hideToolbarSettings && !e.showOnlyTitleLeft ? (v(), m(l(fe), {
|
|
183
|
+
"close-on-content-click": !1,
|
|
184
|
+
density: e.density,
|
|
185
|
+
key: "7"
|
|
186
|
+
}, {
|
|
187
|
+
activator: a(({ props: h }) => [
|
|
188
|
+
n(l(T), x({
|
|
189
|
+
icon: "$cog",
|
|
190
|
+
size: e.size
|
|
191
|
+
}, h), null, 16, ["size"])
|
|
192
|
+
]),
|
|
193
|
+
default: a(() => [
|
|
194
|
+
n(l(pe), { density: e.density }, {
|
|
195
|
+
default: a(() => [
|
|
196
|
+
u(e.$slots, "blade-settings")
|
|
197
|
+
]),
|
|
198
|
+
_: 3
|
|
199
|
+
}, 8, ["density"])
|
|
200
|
+
]),
|
|
201
|
+
_: 3
|
|
202
|
+
}, 8, ["density"])) : i("", !0)
|
|
203
|
+
]),
|
|
204
|
+
_: 3
|
|
205
|
+
}, 8, ["color", "density"])) : i("", !0)
|
|
206
|
+
]),
|
|
207
|
+
_: 3
|
|
208
|
+
}),
|
|
209
|
+
n(l(N), { "hide-on-leave": "" }, {
|
|
210
|
+
default: a(() => [
|
|
211
|
+
!f.value && !e.hideSubtoolbar && e.variant != "pure" ? (v(), m(l(W), {
|
|
212
|
+
key: 0,
|
|
213
|
+
color: O.value,
|
|
214
|
+
density: e.density,
|
|
215
|
+
tile: ""
|
|
216
|
+
}, {
|
|
217
|
+
default: a(() => [
|
|
218
|
+
u(e.$slots, "subtoolbar")
|
|
219
|
+
]),
|
|
220
|
+
_: 3
|
|
221
|
+
}, 8, ["color", "density"])) : i("", !0)
|
|
222
|
+
]),
|
|
223
|
+
_: 3
|
|
224
|
+
}),
|
|
225
|
+
n(l(N), null, {
|
|
226
|
+
default: a(() => [
|
|
227
|
+
n(l(se), {
|
|
228
|
+
closable: "",
|
|
229
|
+
color: "red-lighten-1",
|
|
230
|
+
title: "Error",
|
|
231
|
+
modelValue: k.value,
|
|
232
|
+
"onUpdate:modelValue": o[4] || (o[4] = (h) => k.value = h)
|
|
233
|
+
}, {
|
|
234
|
+
default: a(() => [
|
|
235
|
+
C(B(e.errorMsg), 1)
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
}, 8, ["modelValue"])
|
|
239
|
+
]),
|
|
240
|
+
_: 1
|
|
241
|
+
}),
|
|
242
|
+
f.value ? i("", !0) : u(e.$slots, "content", {
|
|
243
|
+
key: 0,
|
|
244
|
+
isMobile: l(p).isMobile.value,
|
|
245
|
+
bladeData: l(p).bladeData
|
|
246
|
+
}),
|
|
247
|
+
n(l(de), {
|
|
248
|
+
modelValue: L.value,
|
|
249
|
+
"onUpdate:modelValue": o[5] || (o[5] = (h) => L.value = h),
|
|
250
|
+
class: "align-center justify-center text-center overlay",
|
|
251
|
+
contained: "",
|
|
252
|
+
persistent: ""
|
|
253
|
+
}, {
|
|
254
|
+
default: a(() => [
|
|
255
|
+
n(l(D), null, {
|
|
256
|
+
default: a(() => [
|
|
257
|
+
n(l(ve), null, {
|
|
258
|
+
default: a(() => [
|
|
259
|
+
n(l(ue), { indeterminate: "" }),
|
|
260
|
+
_("p", null, B(e.loadingMsg), 1)
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
})
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
})
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
}, 8, ["modelValue"])
|
|
270
|
+
]),
|
|
271
|
+
_: 3
|
|
272
|
+
}, 8, ["class", "color", "density", "flat", "min-height", "style"])) : i("", !0);
|
|
275
273
|
}
|
|
276
274
|
});
|
|
277
275
|
export {
|