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.
@@ -1,14 +1,15 @@
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";
1
+ import { defineComponent as q, computed as p, ref as A, watch as y, onMounted as D, openBlock as n, createBlock as s, unref as t, normalizeStyle as O, withCtx as i, createVNode as d, createElementBlock as b, Fragment as C, renderList as S, renderSlot as v, createTextVNode as W, toDisplayString as z, createCommentVNode as E } from "vue";
2
2
  import { useRoute as F } from "vue-router";
3
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";
4
+ import { VWindowItem as T } from "../bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindowItem.mjs";
5
5
  import { VList as P } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VList.mjs";
6
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";
7
+ import { VSlideXTransition as U } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
8
+ import { VToolbar as X } from "../bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbar.mjs";
8
9
  import { VBtn as j } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
9
10
  import { VToolbarTitle as G } from "../bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbarTitle.mjs";
10
11
  import { VSpacer as I } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs";
11
- const oe = /* @__PURE__ */ q({
12
+ const ae = /* @__PURE__ */ q({
12
13
  __name: "BT-Slider",
13
14
  props: {
14
15
  hideHeader: { type: Boolean },
@@ -17,118 +18,115 @@ const oe = /* @__PURE__ */ q({
17
18
  width: {}
18
19
  },
19
20
  emits: ["update:modelValue"],
20
- setup(S, { emit: T }) {
21
- const L = T, m = S, r = F(), H = f(() => m.width != null ? `width: ${m.width}px` : ""), a = A([]);
21
+ setup(B, { emit: _ }) {
22
+ const L = _, m = B, r = F(), H = p(() => m.width != null ? `width: ${m.width}px` : ""), a = A([]);
22
23
  y(() => r.query, (e) => {
23
24
  e.slide != null && k(e.slide);
24
25
  });
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 };
28
- if (typeof t == "string")
29
- l.hide = !1, l.title = t, l.value = l.title.replaceAll(" ", "").toLowerCase();
26
+ const f = p(() => a.value.length > 0 ? a.value[a.value.length - 1] : 0), c = p(() => (m.options ?? []).map((o, l) => {
27
+ var $;
28
+ var u = { value: "", index: l + 1 };
29
+ if (typeof o == "string")
30
+ u.hide = !1, u.title = o, u.value = u.title.replaceAll(" ", "").toLowerCase();
30
31
  else {
31
- var p = t;
32
- l = {
33
- ...p,
34
- index: u + 1,
35
- value: p.value ?? ((_ = p.title) == null ? void 0 : _.replaceAll(" ", "").toLowerCase())
32
+ var h = o;
33
+ u = {
34
+ ...h,
35
+ index: l + 1,
36
+ value: h.value ?? (($ = h.title) == null ? void 0 : $.replaceAll(" ", "").toLowerCase())
36
37
  };
37
38
  }
38
- return l;
39
- })), N = f(() => h.value.filter((e) => e.hide !== !0));
39
+ return u;
40
+ })), N = p(() => c.value.filter((e) => e.hide !== !0));
40
41
  function w() {
41
42
  a.value.pop();
42
43
  }
43
44
  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
+ e == 0 ? a.value = [e] : f.value != e && (a.value.length == 0 && a.value.push(0), a.value.push(e));
45
46
  }
46
47
  function k(e) {
47
48
  if (e == null)
48
49
  return;
49
- const t = h.value.find((u) => u.value == e);
50
- t != null && V(t.index);
50
+ const o = c.value.find((l) => l.value == e);
51
+ o != null && V(o.index);
51
52
  }
52
- return y(s, (e) => {
53
+ return y(f, (e) => {
53
54
  e != m.modelValue && L("update:modelValue", e);
54
55
  }), y(() => m.modelValue, (e) => {
55
- e != null && s.value != e && V(e);
56
+ e != null && f.value != e && V(e);
56
57
  }), D(() => {
57
58
  (r == null ? void 0 : r.query.slide) != null && k(r == null ? void 0 : r.query.slide);
58
- }), (e, t) => {
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)
64
- }, {
65
- default: i(() => [
66
- d(o(B), null, {
67
- default: i(() => [
68
- d(o(P), null, {
59
+ }), (e, o) => (n(), s(t(M), {
60
+ modelValue: f.value,
61
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => f.value = l),
62
+ style: O(H.value)
63
+ }, {
64
+ default: i(() => [
65
+ d(t(T), null, {
66
+ default: i(() => [
67
+ d(t(P), null, {
68
+ default: i(() => [
69
+ (n(!0), b(C, null, S(N.value, (l) => (n(), s(t(R), {
70
+ "append-icon": "$arrow-right",
71
+ onClick: (u) => V(l.index),
72
+ disabled: l.disabled,
73
+ key: l.value ?? l.title,
74
+ title: l.title
75
+ }, null, 8, ["onClick", "disabled", "title"]))), 128))
76
+ ]),
77
+ _: 1
78
+ })
79
+ ]),
80
+ _: 1
81
+ }),
82
+ (n(!0), b(C, null, S(c.value, (l) => (n(), s(t(T), {
83
+ key: l.value ?? l.title,
84
+ value: l.index
85
+ }, {
86
+ default: i(() => [
87
+ v(e.$slots, `${l.value}-top`, {}, () => [
88
+ d(t(U), { "hide-on-leave": "" }, {
69
89
  default: i(() => [
70
- (n(!0), $(C, null, b(N.value, (l) => (n(), v(o(R), {
71
- "append-icon": "$arrow-right",
72
- onClick: (p) => V(l.index),
73
- disabled: l.disabled,
74
- key: l.value ?? l.title,
75
- title: l.title
76
- }, null, 8, ["onClick", "disabled", "title"]))), 128))
90
+ !e.hideHeader && !l.hideHeader ? (n(), s(t(X), {
91
+ key: 0,
92
+ density: "compact",
93
+ flat: "",
94
+ tile: ""
95
+ }, {
96
+ default: i(() => [
97
+ v(e.$slots, `${l.value}-toolbar`, {
98
+ back: () => w(),
99
+ title: l.title
100
+ }, () => [
101
+ d(t(j), {
102
+ icon: "$arrow-left",
103
+ onClick: w
104
+ }),
105
+ d(t(G), null, {
106
+ default: i(() => [
107
+ W(z(l.title), 1)
108
+ ]),
109
+ _: 2
110
+ }, 1024),
111
+ d(t(I)),
112
+ v(e.$slots, `${l.value}-toolbar-right`)
113
+ ])
114
+ ]),
115
+ _: 2
116
+ }, 1024)) : E("", !0)
77
117
  ]),
78
- _: 1
79
- })
80
- ]),
81
- _: 1
82
- }),
83
- (n(!0), $(C, null, b(h.value, (l) => (n(), v(o(B), {
84
- key: l.value ?? l.title,
85
- value: l.index
86
- }, {
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), {
92
- key: 0,
93
- density: "compact",
94
- flat: "",
95
- tile: ""
96
- }, {
97
- default: i(() => [
98
- c(e.$slots, `${l.value}-toolbar`, {
99
- back: () => w(),
100
- title: l.title
101
- }, () => [
102
- d(o(j), {
103
- icon: "$arrow-left",
104
- onClick: w
105
- }),
106
- d(o(G), null, {
107
- default: i(() => [
108
- x(z(l.title), 1)
109
- ]),
110
- _: 2
111
- }, 1024),
112
- d(o(I)),
113
- c(e.$slots, `${l.value}-toolbar-right`)
114
- ])
115
- ]),
116
- _: 2
117
- }, 1024)) : E("", !0)
118
- ]),
119
- _: 2
120
- }, 1024)
121
- ]),
122
- c(e.$slots, l.value)
118
+ _: 2
119
+ }, 1024)
123
120
  ]),
124
- _: 2
125
- }, 1032, ["value"]))), 128))
126
- ]),
127
- _: 3
128
- }, 8, ["modelValue", "style"]);
129
- };
121
+ v(e.$slots, l.value)
122
+ ]),
123
+ _: 2
124
+ }, 1032, ["value"]))), 128))
125
+ ]),
126
+ _: 3
127
+ }, 8, ["modelValue", "style"]));
130
128
  }
131
129
  });
132
130
  export {
133
- oe as default
131
+ ae as default
134
132
  };
@@ -1,7 +1,8 @@
1
- import { defineComponent as _, computed as o, inject as B, ref as L, resolveComponent as c, openBlock as a, createBlock as u, unref as r, withModifiers as T, withCtx as s, renderSlot as w, createVNode as f, createElementBlock as d, toDisplayString as i, normalizeClass as p, createTextVNode as g } from "vue";
2
- import { VCard as E } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
3
- import { VIcon as m } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
4
- const $ = { key: "1" }, j = { key: "2" }, N = { key: "3" }, F = /* @__PURE__ */ _({
1
+ import { defineComponent as I, computed as o, inject as z, ref as C, openBlock as a, createBlock as r, unref as s, withModifiers as B, withCtx as i, renderSlot as T, createVNode as f, createElementBlock as d, toDisplayString as n, normalizeClass as c, createTextVNode as p } from "vue";
2
+ import { VCard as L } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
3
+ import { VSlideXTransition as w, VSlideYReverseTransition as E } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
4
+ import { VIcon as g } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
5
+ const $ = { key: "1" }, j = { key: "2" }, N = { key: "3" }, Y = /* @__PURE__ */ I({
5
6
  __name: "BT-Square-Check",
6
7
  props: {
7
8
  disabled: { type: Boolean },
@@ -23,78 +24,75 @@ const $ = { key: "1" }, j = { key: "2" }, N = { key: "3" }, F = /* @__PURE__ */
23
24
  width: { default: "100" }
24
25
  },
25
26
  emits: ["update:modelValue"],
26
- setup(h, { emit: v }) {
27
- const l = h, b = v, n = o({
27
+ setup(m, { emit: h }) {
28
+ const l = m, b = h, u = o({
28
29
  get() {
29
30
  return l.modelValue;
30
31
  },
31
32
  set(e) {
32
33
  b("update:modelValue", e);
33
34
  }
34
- }), y = B("isEditing", () => L(!1), !0), V = o(() => l.isEditing ?? y.value), t = o(() => n.value === l.trueValue), k = o(() => t.value ? l.trueLabel : l.falseLabel), C = o(() => t.value ? l.trueIcon : l.falseIcon);
35
- function I() {
36
- l.onToggle != null ? l.onToggle() : n.value = n.value == l.falseValue ? l.trueValue : l.falseValue;
35
+ }), v = z("isEditing", () => C(!1), !0), V = o(() => l.isEditing ?? v.value), t = o(() => u.value === l.trueValue), y = o(() => t.value ? l.trueLabel : l.falseLabel), S = o(() => t.value ? l.trueIcon : l.falseIcon);
36
+ function k() {
37
+ l.onToggle != null ? l.onToggle() : u.value = u.value == l.falseValue ? l.trueValue : l.falseValue;
37
38
  }
38
- return (e, q) => {
39
- const z = c("v-slide-x-transition"), S = c("v-slide-y-reverse-transition");
40
- return a(), u(r(E), {
41
- onClick: T(I, ["stop"]),
42
- disabled: e.disabled || !V.value,
43
- class: "d-flex flex-column align-center justify-center",
44
- height: e.height,
45
- ripple: e.ripple,
46
- width: e.width
47
- }, {
48
- default: s(() => [
49
- w(e.$slots, "content", {
50
- icon: C.value,
51
- isTrue: t.value,
52
- label: k.value,
53
- iconSize: e.iconSize
54
- }, () => [
55
- f(z, {
56
- group: "",
57
- "hide-on-leave": ""
58
- }, {
59
- default: s(() => [
60
- e.label != null ? (a(), d("p", $, i(e.label), 1)) : t.value ? (a(), d("p", j, i(e.trueLabel), 1)) : (a(), d("p", N, i(e.falseLabel), 1))
61
- ]),
62
- _: 1
63
- }),
64
- f(S, {
65
- group: "",
66
- "hide-on-leave": ""
67
- }, {
68
- default: s(() => [
69
- t.value ? (a(), u(r(m), {
70
- size: e.iconSize,
71
- class: p(e.disabled ? "" : e.trueClass),
72
- key: "3"
73
- }, {
74
- default: s(() => [
75
- g(i(e.trueIcon), 1)
76
- ]),
77
- _: 1
78
- }, 8, ["size", "class"])) : (a(), u(r(m), {
79
- size: e.iconSize,
80
- class: p(e.disabled ? "" : e.falseClass),
81
- key: "4"
82
- }, {
83
- default: s(() => [
84
- g(i(e.falseIcon), 1)
85
- ]),
86
- _: 1
87
- }, 8, ["size", "class"]))
88
- ]),
89
- _: 1
90
- })
91
- ])
92
- ]),
93
- _: 3
94
- }, 8, ["disabled", "height", "ripple", "width"]);
95
- };
39
+ return (e, q) => (a(), r(s(L), {
40
+ onClick: B(k, ["stop"]),
41
+ disabled: e.disabled || !V.value,
42
+ class: "d-flex flex-column align-center justify-center",
43
+ height: e.height,
44
+ ripple: e.ripple,
45
+ width: e.width
46
+ }, {
47
+ default: i(() => [
48
+ T(e.$slots, "content", {
49
+ icon: S.value,
50
+ isTrue: t.value,
51
+ label: y.value,
52
+ iconSize: e.iconSize
53
+ }, () => [
54
+ f(s(w), {
55
+ group: "",
56
+ "hide-on-leave": ""
57
+ }, {
58
+ default: i(() => [
59
+ e.label != null ? (a(), d("p", $, n(e.label), 1)) : t.value ? (a(), d("p", j, n(e.trueLabel), 1)) : (a(), d("p", N, n(e.falseLabel), 1))
60
+ ]),
61
+ _: 1
62
+ }),
63
+ f(s(E), {
64
+ group: "",
65
+ "hide-on-leave": ""
66
+ }, {
67
+ default: i(() => [
68
+ t.value ? (a(), r(s(g), {
69
+ size: e.iconSize,
70
+ class: c(e.disabled ? "" : e.trueClass),
71
+ key: "3"
72
+ }, {
73
+ default: i(() => [
74
+ p(n(e.trueIcon), 1)
75
+ ]),
76
+ _: 1
77
+ }, 8, ["size", "class"])) : (a(), r(s(g), {
78
+ size: e.iconSize,
79
+ class: c(e.disabled ? "" : e.falseClass),
80
+ key: "4"
81
+ }, {
82
+ default: i(() => [
83
+ p(n(e.falseIcon), 1)
84
+ ]),
85
+ _: 1
86
+ }, 8, ["size", "class"]))
87
+ ]),
88
+ _: 1
89
+ })
90
+ ])
91
+ ]),
92
+ _: 3
93
+ }, 8, ["disabled", "height", "ripple", "width"]));
96
94
  }
97
95
  });
98
96
  export {
99
- F as default
97
+ Y as default
100
98
  };