bt-core-app 2.2.15 → 2.2.17
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/components/BT-Banner.vue.mjs +91 -93
- package/dist/composables/browser.d.ts +6 -0
- package/dist/composables/devices.d.ts +6 -0
- package/dist/composables/devices.mjs +12 -0
- package/dist/composables.mjs +193 -191
- package/dist/index-composables.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +229 -227
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useBanners as
|
|
1
|
+
import { defineComponent as B, unref as e, openBlock as n, createBlock as a, withCtx as r, createVNode as l, isRef as C, createElementBlock as $, Fragment as w, renderList as S, renderSlot as T, createSlots as I, withModifiers as s, createCommentVNode as u } from "vue";
|
|
2
|
+
import { useBanners as N } from "../composables/banners.mjs";
|
|
3
3
|
import { VCard as v } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
|
|
4
|
-
import { VWindow as
|
|
5
|
-
import { VWindowItem as
|
|
6
|
-
import { VBtn as
|
|
7
|
-
import { VCardActions as
|
|
8
|
-
|
|
4
|
+
import { VWindow as A } from "../bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindow.mjs";
|
|
5
|
+
import { VWindowItem as F } from "../bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindowItem.mjs";
|
|
6
|
+
import { VBtn as m } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
|
|
7
|
+
import { VCardActions as L } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCardActions.mjs";
|
|
8
|
+
import { VSpacer as W } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs";
|
|
9
|
+
const q = /* @__PURE__ */ B({
|
|
9
10
|
__name: "BT-Banner",
|
|
10
11
|
props: {
|
|
11
12
|
name: {},
|
|
@@ -18,96 +19,93 @@ const q = /* @__PURE__ */ V({
|
|
|
18
19
|
currentBannerInd: i,
|
|
19
20
|
displayBanners: y,
|
|
20
21
|
isLoading: k,
|
|
21
|
-
nextStage:
|
|
22
|
+
nextStage: p,
|
|
22
23
|
previousStage: g
|
|
23
|
-
} =
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
key: 0,
|
|
66
|
-
onClick: o[1] || (o[1] = s((f) => e(m)({ respond: !1 }), ["stop"])),
|
|
67
|
-
color: "primary",
|
|
68
|
-
text: t.noText,
|
|
69
|
-
variant: "elevated"
|
|
70
|
-
}, null, 8, ["text"])) : u("", !0),
|
|
71
|
-
r(C),
|
|
72
|
-
t.yesText != null ? (l(), a(e(p), {
|
|
73
|
-
key: 1,
|
|
74
|
-
onClick: o[2] || (o[2] = s((f) => e(m)({ respond: !0 }), ["stop"])),
|
|
75
|
-
color: "primary",
|
|
76
|
-
text: t.yesText,
|
|
77
|
-
variant: "elevated"
|
|
78
|
-
}, null, 8, ["text"])) : u("", !0)
|
|
79
|
-
]),
|
|
80
|
-
_: 2
|
|
81
|
-
}, 1024)
|
|
82
|
-
]),
|
|
83
|
-
_: 2
|
|
84
|
-
}, [
|
|
85
|
-
t.canIgnore ? {
|
|
86
|
-
name: "append",
|
|
87
|
-
fn: n(() => [
|
|
88
|
-
r(e(p), {
|
|
89
|
-
"append-icon": "$chevron-right",
|
|
90
|
-
onClick: o[0] || (o[0] = s((f) => e(m)({ neverAgain: !0 }), ["stop"])),
|
|
24
|
+
} = N(d.name, d);
|
|
25
|
+
return (f, o) => e(i) >= 0 ? (n(), a(e(v), {
|
|
26
|
+
key: 0,
|
|
27
|
+
color: "primary",
|
|
28
|
+
loading: e(k),
|
|
29
|
+
tile: "",
|
|
30
|
+
title: f.title
|
|
31
|
+
}, {
|
|
32
|
+
default: r(() => [
|
|
33
|
+
l(e(A), {
|
|
34
|
+
modelValue: e(i),
|
|
35
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => C(i) ? i.value = t : null),
|
|
36
|
+
class: "transparent",
|
|
37
|
+
style: { width: "100%" },
|
|
38
|
+
touchless: ""
|
|
39
|
+
}, {
|
|
40
|
+
default: r(() => [
|
|
41
|
+
(n(!0), $(w, null, S(e(y), (t, V) => (n(), a(e(F), {
|
|
42
|
+
key: `${V}-${t.bannerName}`
|
|
43
|
+
}, {
|
|
44
|
+
default: r(() => [
|
|
45
|
+
T(f.$slots, t.bannerName, { data: t }, () => [
|
|
46
|
+
l(e(v), {
|
|
47
|
+
class: "ma-2",
|
|
48
|
+
text: t.text,
|
|
49
|
+
subtitle: t.subtitle,
|
|
50
|
+
title: t.title,
|
|
51
|
+
variant: "outlined"
|
|
52
|
+
}, I({
|
|
53
|
+
prepend: r(() => [
|
|
54
|
+
l(e(m), {
|
|
55
|
+
icon: "$chevron-left",
|
|
56
|
+
onClick: s(e(g), ["stop"]),
|
|
57
|
+
variant: "text"
|
|
58
|
+
}, null, 8, ["onClick"])
|
|
59
|
+
]),
|
|
60
|
+
default: r(() => [
|
|
61
|
+
l(e(L), null, {
|
|
62
|
+
default: r(() => [
|
|
63
|
+
t.noText != null ? (n(), a(e(m), {
|
|
64
|
+
key: 0,
|
|
65
|
+
onClick: o[1] || (o[1] = s((c) => e(p)({ respond: !1 }), ["stop"])),
|
|
91
66
|
color: "primary",
|
|
92
|
-
|
|
93
|
-
text: "Ignore",
|
|
67
|
+
text: t.noText,
|
|
94
68
|
variant: "elevated"
|
|
95
|
-
})
|
|
69
|
+
}, null, 8, ["text"])) : u("", !0),
|
|
70
|
+
l(e(W)),
|
|
71
|
+
t.yesText != null ? (n(), a(e(m), {
|
|
72
|
+
key: 1,
|
|
73
|
+
onClick: o[2] || (o[2] = s((c) => e(p)({ respond: !0 }), ["stop"])),
|
|
74
|
+
color: "primary",
|
|
75
|
+
text: t.yesText,
|
|
76
|
+
variant: "elevated"
|
|
77
|
+
}, null, 8, ["text"])) : u("", !0)
|
|
96
78
|
]),
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
]),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
79
|
+
_: 2
|
|
80
|
+
}, 1024)
|
|
81
|
+
]),
|
|
82
|
+
_: 2
|
|
83
|
+
}, [
|
|
84
|
+
t.canIgnore ? {
|
|
85
|
+
name: "append",
|
|
86
|
+
fn: r(() => [
|
|
87
|
+
l(e(m), {
|
|
88
|
+
"append-icon": "$chevron-right",
|
|
89
|
+
onClick: o[0] || (o[0] = s((c) => e(p)({ neverAgain: !0 }), ["stop"])),
|
|
90
|
+
color: "primary",
|
|
91
|
+
size: "small",
|
|
92
|
+
text: "Ignore",
|
|
93
|
+
variant: "elevated"
|
|
94
|
+
})
|
|
95
|
+
]),
|
|
96
|
+
key: "0"
|
|
97
|
+
} : void 0
|
|
98
|
+
]), 1032, ["text", "subtitle", "title"])
|
|
99
|
+
])
|
|
100
|
+
]),
|
|
101
|
+
_: 2
|
|
102
|
+
}, 1024))), 128))
|
|
103
|
+
]),
|
|
104
|
+
_: 3
|
|
105
|
+
}, 8, ["modelValue"])
|
|
106
|
+
]),
|
|
107
|
+
_: 3
|
|
108
|
+
}, 8, ["loading", "title"])) : u("", !0);
|
|
111
109
|
}
|
|
112
110
|
});
|
|
113
111
|
export {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function t() {
|
|
2
|
+
const i = navigator.userAgent;
|
|
3
|
+
return {
|
|
4
|
+
isIPhone: /iPhone/i.test(i),
|
|
5
|
+
isAndroid: /Android/i.test(i),
|
|
6
|
+
isMac: /Macintosh/i.test(i) && !/iPhone|iPad/i.test(i),
|
|
7
|
+
isDesktop: !/Mobi|Android|iPhone|iPad|iPod/i.test(i)
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
t as getDeviceInfo
|
|
12
|
+
};
|