bitboss-ui 2.0.171 → 2.0.173
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/BaseColorInput/BaseColorInput.vue.d.ts +97 -7
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +28 -8
- package/dist/components/BbPopover/BbPopover.vue.d.ts +30 -10
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +28 -8
- package/dist/components/CommonPopover.vue.d.ts +8 -4
- package/dist/index.css +1 -1
- package/dist/index106.js +8 -8
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +10 -10
- package/dist/index129.js +2 -2
- package/dist/index13.js +1 -1
- package/dist/index131.js +40 -39
- package/dist/index133.js +1 -1
- package/dist/index139.js +2 -2
- package/dist/index15.js +130 -142
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index209.js +5 -2
- package/dist/index21.js +16 -16
- package/dist/index210.js +5 -4
- package/dist/index211.js +5 -2
- package/dist/index212.js +5 -18
- package/dist/index213.js +5 -128
- package/dist/index214.js +5 -106
- package/dist/index215.js +7 -0
- package/dist/index216.js +3 -100
- package/dist/index217.js +4 -0
- package/dist/index218.js +6 -64
- package/dist/index219.js +252 -0
- package/dist/index220.js +52 -13
- package/dist/index221.js +43 -5
- package/dist/index222.js +5 -15
- package/dist/index223.js +60 -29
- package/dist/index224.js +13 -16
- package/dist/index225.js +2 -12
- package/dist/index226.js +2 -51
- package/dist/index227.js +2 -17
- package/dist/index228.js +66 -15
- package/dist/index23.js +140 -174
- package/dist/index230.js +13 -12
- package/dist/index231.js +177 -13
- package/dist/index232.js +41 -2
- package/dist/index233.js +5 -227
- package/dist/index234.js +7 -368
- package/dist/index235.js +15 -2
- package/dist/index236.js +86 -5
- package/dist/index238.js +29 -5
- package/dist/index239.js +16 -5
- package/dist/index240.js +17 -5
- package/dist/index241.js +51 -5
- package/dist/index242.js +15 -5
- package/dist/index243.js +12 -8
- package/dist/index244.js +30 -246
- package/dist/index245.js +3 -52
- package/dist/index246.js +5 -44
- package/dist/index247.js +2 -5
- package/dist/index248.js +11 -60
- package/dist/index249.js +20 -5
- package/dist/index25.js +5 -5
- package/dist/index250.js +120 -2
- package/dist/index252.js +4 -20
- package/dist/index253.js +4 -94
- package/dist/index254.js +202 -0
- package/dist/index256.js +18 -4
- package/dist/index257.js +12 -200
- package/dist/index258.js +108 -0
- package/dist/index260.js +95 -81
- package/dist/index262.js +224 -30
- package/dist/index265.js +10 -3
- package/dist/index266.js +2 -176
- package/dist/index267.js +6 -10
- package/dist/index268.js +16 -3
- package/dist/index269.js +3 -6
- package/dist/index27.js +1 -1
- package/dist/index270.js +2 -16
- package/dist/index271.js +9 -11
- package/dist/index272.js +8 -100
- package/dist/index273.js +25 -0
- package/dist/index274.js +9 -3
- package/dist/index275.js +8 -9
- package/dist/index276.js +67 -23
- package/dist/index277.js +5 -2
- package/dist/index278.js +280 -9
- package/dist/index279.js +2 -8
- package/dist/index280.js +16 -5
- package/dist/index281.js +2 -67
- package/dist/index282.js +15 -4
- package/dist/index283.js +2 -8
- package/dist/index284.js +19 -4
- package/dist/index285.js +2 -4
- package/dist/index286.js +14 -128
- package/dist/index287.js +2 -3
- package/dist/index288.js +19 -3
- package/dist/index289.js +2 -3
- package/dist/index29.js +2 -2
- package/dist/index290.js +29 -0
- package/dist/index291.js +2 -7
- package/dist/index292.js +1 -1
- package/dist/index293.js +1 -1
- package/dist/index294.js +2 -17
- package/dist/index295.js +2 -28
- package/dist/index296.js +28 -7
- package/dist/index297.js +22 -11
- package/dist/index299.js +7 -2
- package/dist/index300.js +7 -16
- package/dist/index301.js +11 -2
- package/dist/index302.js +5 -15
- package/dist/index303.js +3 -2
- package/dist/index305.js +2 -2
- package/dist/index306.js +3 -15
- package/dist/index307.js +17 -2
- package/dist/index308.js +469 -17
- package/dist/index309.js +2 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +199 -26
- package/dist/index311.js +5 -2
- package/dist/index312.js +4 -2
- package/dist/index313.js +125 -2
- package/dist/index314.js +2 -2
- package/dist/index315.js +3 -2
- package/dist/index316.js +3 -22
- package/dist/{index353.js → index317.js} +1 -1
- package/dist/index318.js +3 -125
- package/dist/index319.js +2 -2
- package/dist/index320.js +4 -470
- package/dist/index321.js +8 -3
- package/dist/index322.js +5 -3
- package/dist/index323.js +3 -381
- package/dist/index324.js +700 -125
- package/dist/index325.js +354 -2
- package/dist/index326.js +58 -3
- package/dist/index327.js +2 -6
- package/dist/index328.js +32 -199
- package/dist/index329.js +28 -5
- package/dist/index33.js +8 -8
- package/dist/index331.js +7 -354
- package/dist/index332.js +17 -56
- package/dist/index333.js +58 -3
- package/dist/index334.js +58 -5
- package/dist/index335.js +6 -46
- package/dist/index336.js +47 -2
- package/dist/index337.js +128 -32
- package/dist/index338.js +369 -28
- package/dist/index339.js +10 -0
- package/dist/index340.js +6 -58
- package/dist/index341.js +7 -57
- package/dist/index342.js +227 -6
- package/dist/index343.js +92 -7
- package/dist/index345.js +3 -8
- package/dist/index346.js +482 -5
- package/dist/index347.js +128 -6
- package/dist/index348.js +46 -18
- package/dist/index349.js +431 -223
- package/dist/index35.js +4 -4
- package/dist/index350.js +125 -91
- package/dist/index37.js +230 -240
- package/dist/index39.js +2 -2
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +106 -112
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +4 -4
- package/dist/index92.js +2 -2
- package/dist/index94.js +56 -56
- package/package.json +2 -2
- package/dist/components/CommonFloating.vue.d.ts +0 -38
- package/dist/index229.js +0 -5
- package/dist/index237.js +0 -7
- package/dist/index251.js +0 -43
- package/dist/index255.js +0 -11
- package/dist/index259.js +0 -9
- package/dist/index298.js +0 -282
- package/dist/index304.js +0 -21
- package/dist/index330.js +0 -703
- package/dist/index344.js +0 -8
- package/dist/index351.js +0 -484
- package/dist/index354.js +0 -49
- package/dist/index355.js +0 -483
- package/dist/index356.js +0 -4
package/dist/index220.js
CHANGED
@@ -1,15 +1,54 @@
|
|
1
|
-
import { createElementBlock as
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
12
|
-
|
1
|
+
import { defineComponent as p, ref as b, watch as _, computed as m, createElementBlock as d, openBlock as c, normalizeClass as u, createElementVNode as t, createVNode as h, withCtx as f, toDisplayString as o } from "vue";
|
2
|
+
import k from "./index222.js";
|
3
|
+
const y = { class: "bb-base-date-picker__year-container" }, v = {
|
4
|
+
"aria-live": "polite",
|
5
|
+
class: "bb-base-date-picker__selected-day-label"
|
6
|
+
}, B = { class: "bb-base-date-picker__weekday" }, D = { class: "bb-base-date-picker__monthday" }, M = { class: "bb-base-date-picker__month-button" }, C = /* @__PURE__ */ p({
|
7
|
+
__name: "BaseDatePickerHeader",
|
8
|
+
props: {
|
9
|
+
cursor: {},
|
10
|
+
disabled: { type: Boolean },
|
11
|
+
hidden: { type: Boolean }
|
12
|
+
},
|
13
|
+
emits: ["mode:year", "mode:month"],
|
14
|
+
setup(n) {
|
15
|
+
const s = n, r = b("top"), l = (e, a) => {
|
16
|
+
e && a && (r.value = e.isBefore(a) ? "top" : "bottom");
|
17
|
+
};
|
18
|
+
_(
|
19
|
+
() => s.cursor,
|
20
|
+
(e, a) => {
|
21
|
+
l(e, a);
|
22
|
+
}
|
23
|
+
);
|
24
|
+
const i = m(() => s.cursor.format("YYYY"));
|
25
|
+
return (e, a) => (c(), d("div", {
|
26
|
+
class: u(["bb-base-date-picker__header", { "bb-base-date-picker__header--hidden": e.hidden }])
|
27
|
+
}, [
|
28
|
+
t("div", y, [
|
29
|
+
h(k, {
|
30
|
+
direction: r.value,
|
31
|
+
duration: 500,
|
32
|
+
gap: 30
|
33
|
+
}, {
|
34
|
+
default: f(() => [
|
35
|
+
(c(), d("span", {
|
36
|
+
key: i.value,
|
37
|
+
"aria-live": "polite",
|
38
|
+
class: "bb-base-date-picker__year-button"
|
39
|
+
}, o(i.value), 1))
|
40
|
+
]),
|
41
|
+
_: 1
|
42
|
+
}, 8, ["direction"])
|
43
|
+
]),
|
44
|
+
t("div", v, [
|
45
|
+
t("span", B, o(e.cursor.format("ddd")) + ", ", 1),
|
46
|
+
t("span", D, o(e.cursor.format("DD")), 1),
|
47
|
+
t("span", M, o(e.cursor.format("MMMM")), 1)
|
48
|
+
])
|
49
|
+
], 2));
|
50
|
+
}
|
51
|
+
});
|
13
52
|
export {
|
14
|
-
|
53
|
+
C as default
|
15
54
|
};
|
package/dist/index221.js
CHANGED
@@ -1,8 +1,46 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import { defineComponent as _, computed as a, createElementBlock as c, openBlock as o, createElementVNode as p, Fragment as b, renderList as h, createBlock as k, normalizeClass as f, withCtx as y, createTextVNode as x, toDisplayString as B } from "vue";
|
2
|
+
import C from "./index13.js";
|
3
|
+
/* empty css */
|
4
|
+
const M = { class: "bb-base-date-picker__button-menu bb-base-date-picker__month-selector" }, v = { class: "content" }, E = /* @__PURE__ */ _({
|
5
|
+
__name: "BaseDatePickerMonthSelector",
|
6
|
+
props: {
|
7
|
+
cursor: {},
|
8
|
+
disabled: { type: Boolean }
|
9
|
+
},
|
10
|
+
emits: ["update:month"],
|
11
|
+
setup(l, { emit: d }) {
|
12
|
+
const s = l, m = d, i = a(() => s.cursor.month()), u = a(
|
13
|
+
() => new Array(12).fill(0).map((r, t) => {
|
14
|
+
const n = s.cursor.clone().startOf("year").add(t, "month");
|
15
|
+
return {
|
16
|
+
text: n.format("MMMM"),
|
17
|
+
key: n.unix(),
|
18
|
+
selected: n.month() === i.value,
|
19
|
+
handler: () => m("update:month", t)
|
20
|
+
};
|
21
|
+
})
|
22
|
+
);
|
23
|
+
return (r, t) => (o(), c("div", M, [
|
24
|
+
p("div", v, [
|
25
|
+
(o(!0), c(b, null, h(u.value, (e) => (o(), k(C, {
|
26
|
+
key: e.key,
|
27
|
+
class: f({
|
28
|
+
content__btn: !0,
|
29
|
+
"content__btn--selected": e.selected
|
30
|
+
}),
|
31
|
+
disabled: r.disabled,
|
32
|
+
type: "button",
|
33
|
+
onClick: e.handler
|
34
|
+
}, {
|
35
|
+
default: y(() => [
|
36
|
+
x(B(e.text), 1)
|
37
|
+
]),
|
38
|
+
_: 2
|
39
|
+
}, 1032, ["class", "disabled", "onClick"]))), 128))
|
40
|
+
])
|
41
|
+
]));
|
42
|
+
}
|
5
43
|
});
|
6
44
|
export {
|
7
|
-
|
45
|
+
E as default
|
8
46
|
};
|
package/dist/index222.js
CHANGED
@@ -1,17 +1,7 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
target: {}
|
6
|
-
},
|
7
|
-
setup(o) {
|
8
|
-
var t, e;
|
9
|
-
const r = o, n = !!((e = (t = c()) == null ? void 0 : t.proxy) != null && e.$nuxt), p = r.target || (n ? "#teleports" : "body");
|
10
|
-
return (s, _) => (u(), l(f, { to: d(p) }, [
|
11
|
-
m(s.$slots, "default")
|
12
|
-
], 8, ["to"]));
|
13
|
-
}
|
14
|
-
});
|
1
|
+
import o from "./index297.js";
|
2
|
+
/* empty css */
|
3
|
+
import t from "./index299.js";
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
|
15
5
|
export {
|
16
|
-
|
6
|
+
m as default
|
17
7
|
};
|
package/dist/index223.js
CHANGED
@@ -1,31 +1,62 @@
|
|
1
|
-
import { ref as
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
1
|
+
import { defineComponent as g, ref as i, computed as d, onMounted as h, createElementBlock as m, openBlock as u, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
|
2
|
+
import { range as H } from "./index335.js";
|
3
|
+
import M from "./index13.js";
|
4
|
+
/* empty css */
|
5
|
+
const n = 10, l = 3, V = /* @__PURE__ */ g({
|
6
|
+
__name: "BaseDatePickerYearSelector",
|
7
|
+
props: {
|
8
|
+
cursor: {},
|
9
|
+
disabled: { type: Boolean }
|
10
|
+
},
|
11
|
+
emits: ["update:year"],
|
12
|
+
setup(p, { emit: _ }) {
|
13
|
+
const f = p, b = _, o = i(), r = d(() => f.cursor.year()), c = i(r.value - n * l), s = i(r.value + n * l), v = d(
|
14
|
+
() => H(c.value, s.value).map((e) => ({
|
15
|
+
text: e,
|
16
|
+
key: e,
|
17
|
+
selected: e === r.value,
|
18
|
+
handler: () => b("update:year", e)
|
19
|
+
}))
|
20
|
+
), k = (e) => {
|
21
|
+
const t = e.target;
|
22
|
+
t.scrollTop <= 100 ? c.value = Math.max(
|
23
|
+
c.value - n * l,
|
24
|
+
r.value - 200
|
25
|
+
) : t.scrollHeight - t.scrollTop === t.clientHeight && (s.value = Math.min(s.value + n * l, 2101));
|
26
|
+
};
|
27
|
+
return h(() => {
|
28
|
+
if (!o.value) return;
|
29
|
+
const e = o.value.querySelector(
|
30
|
+
".content__btn--selected"
|
31
|
+
);
|
32
|
+
e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
|
33
|
+
}), (e, t) => (u(), m("div", {
|
34
|
+
ref_key: "container",
|
35
|
+
ref: o,
|
36
|
+
class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
|
37
|
+
}, [
|
38
|
+
y("div", {
|
39
|
+
class: "content",
|
40
|
+
onScrollPassive: k
|
41
|
+
}, [
|
42
|
+
(u(!0), m(x, null, B(v.value, (a) => (u(), C(M, {
|
43
|
+
key: a.key,
|
44
|
+
class: S({
|
45
|
+
content__btn: !0,
|
46
|
+
"content__btn--selected": a.selected
|
47
|
+
}),
|
48
|
+
disabled: e.disabled,
|
49
|
+
onClick: a.handler
|
50
|
+
}, {
|
51
|
+
default: T(() => [
|
52
|
+
E(w(a.text), 1)
|
53
|
+
]),
|
54
|
+
_: 2
|
55
|
+
}, 1032, ["class", "disabled", "onClick"]))), 128))
|
56
|
+
], 32)
|
57
|
+
], 512));
|
58
|
+
}
|
59
|
+
});
|
29
60
|
export {
|
30
|
-
|
61
|
+
V as default
|
31
62
|
};
|
package/dist/index224.js
CHANGED
@@ -1,18 +1,15 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
l.value || await r();
|
14
|
-
})), { isPrefilling: e, hasPrefilled: l, prefill: r };
|
15
|
-
};
|
1
|
+
import { locales as t } from "./index300.js";
|
2
|
+
import { _config as m } from "./index4.js";
|
3
|
+
import { get as c } from "./index301.js";
|
4
|
+
import { readonly as l, computed as n } from "vue";
|
5
|
+
const p = (o, ...r) => l(
|
6
|
+
n(() => c(t[m.locale], o).replace(
|
7
|
+
/\{(\d+)\}/g,
|
8
|
+
(a, e) => r[e]
|
9
|
+
))
|
10
|
+
), d = () => ({
|
11
|
+
t: p
|
12
|
+
});
|
16
13
|
export {
|
17
|
-
|
14
|
+
d as useLocale
|
18
15
|
};
|
package/dist/index225.js
CHANGED
@@ -1,14 +1,4 @@
|
|
1
|
-
|
2
|
-
const n = () => {
|
3
|
-
const e = t([]);
|
4
|
-
return { array: e, set: (...r) => {
|
5
|
-
e.value = r;
|
6
|
-
}, add: (...r) => {
|
7
|
-
e.value.push(...r);
|
8
|
-
}, remove: (r) => {
|
9
|
-
e.value = e.value.filter(r);
|
10
|
-
} };
|
11
|
-
};
|
1
|
+
const o = (e) => typeof e == "boolean" ? e : e === "true";
|
12
2
|
export {
|
13
|
-
|
3
|
+
o as booleanishToBoolean
|
14
4
|
};
|
package/dist/index226.js
CHANGED
@@ -1,53 +1,4 @@
|
|
1
|
-
|
2
|
-
import { useItemText as x } from "./index294.js";
|
3
|
-
import { useItemValue as w } from "./index278.js";
|
4
|
-
import { hash as y } from "./index229.js";
|
5
|
-
import { useLogger as D } from "./index243.js";
|
6
|
-
const { getItemText: O } = x(), { getItemValue: V } = w(), { warn: H } = D(), T = (u, c, m, a, d, r) => r ? !1 : !!(c || u.disabled || a && d >= a), q = ({
|
7
|
-
items: u,
|
8
|
-
disabled: c,
|
9
|
-
selectable: m,
|
10
|
-
itemText: a,
|
11
|
-
itemValue: d,
|
12
|
-
selectedIndexedByHash: r,
|
13
|
-
max: b = 1 / 0
|
14
|
-
}) => {
|
15
|
-
const v = l(() => o(c)), p = l(() => o(u)), h = l(
|
16
|
-
() => Object.keys(r.value).length
|
17
|
-
), g = o(b), f = (e) => {
|
18
|
-
const n = V(e, o(d)), t = y(n), i = O(e, o(a)), s = r.value[t] !== void 0, I = T(
|
19
|
-
e,
|
20
|
-
v.value,
|
21
|
-
m,
|
22
|
-
g,
|
23
|
-
h.value,
|
24
|
-
s
|
25
|
-
);
|
26
|
-
return {
|
27
|
-
item: e,
|
28
|
-
text: i,
|
29
|
-
value: n,
|
30
|
-
valueHash: t,
|
31
|
-
selected: s,
|
32
|
-
disabled: o(I)
|
33
|
-
};
|
34
|
-
};
|
35
|
-
return {
|
36
|
-
options: l(() => {
|
37
|
-
const e = [], n = /* @__PURE__ */ new Set();
|
38
|
-
for (let t = 0; t < p.value.length; t++) {
|
39
|
-
const i = p.value[t];
|
40
|
-
i.disabled && H(
|
41
|
-
"Disabling an item by passing a disabled option to the item itself is deprecated and will be removed in a future version. Use the `disabled` prop or the `selectable` iteratee prop instead."
|
42
|
-
);
|
43
|
-
const s = f(i);
|
44
|
-
n.has(s.valueHash) || (n.add(s.valueHash), e.push(s));
|
45
|
-
}
|
46
|
-
return e;
|
47
|
-
}),
|
48
|
-
createOption: f
|
49
|
-
};
|
50
|
-
};
|
1
|
+
const e = (t) => t;
|
51
2
|
export {
|
52
|
-
|
3
|
+
e as identity
|
53
4
|
};
|
package/dist/index227.js
CHANGED
@@ -1,19 +1,4 @@
|
|
1
|
-
|
2
|
-
import { hash as s } from "./index229.js";
|
3
|
-
const p = ({ items: a, key: r }) => {
|
4
|
-
const n = i(() => {
|
5
|
-
const t = {}, c = new Array().concat(m(a));
|
6
|
-
for (let e = 0; e < c.length; e++) {
|
7
|
-
const o = c[e], u = r ? String(o[r]) : s(o);
|
8
|
-
t[u] = o;
|
9
|
-
}
|
10
|
-
return t;
|
11
|
-
});
|
12
|
-
return {
|
13
|
-
data: n,
|
14
|
-
get: (t) => r ? n.value[String(t[r])] : n.value[s(t)]
|
15
|
-
};
|
16
|
-
};
|
1
|
+
const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
|
17
2
|
export {
|
18
|
-
|
3
|
+
s as isCssColor
|
19
4
|
};
|
package/dist/index228.js
CHANGED
@@ -1,17 +1,68 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}
|
1
|
+
import { defineComponent as _, ref as $, createElementBlock as k, openBlock as r, normalizeClass as y, renderSlot as n, createBlock as c, createCommentVNode as s, createVNode as p, createElementVNode as l, unref as i } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
/* empty css */
|
4
|
+
import m from "./index85.js";
|
5
|
+
/* empty css */
|
6
|
+
import C from "./index113.js";
|
7
|
+
/* empty css */
|
8
|
+
import h from "./index328.js";
|
9
|
+
import B from "./index329.js";
|
10
|
+
/* empty css */
|
11
|
+
const v = { class: "bb-common-input-inner-container__prefix" }, I = { class: "bb-common-input-inner-container__suffix" }, A = /* @__PURE__ */ _({
|
12
|
+
__name: "CommonInputInnerContainer",
|
13
|
+
props: {
|
14
|
+
"append:icon": {},
|
15
|
+
clearable: { type: Boolean },
|
16
|
+
"prepend:icon": {},
|
17
|
+
preventFocus: { type: Boolean }
|
18
|
+
},
|
19
|
+
emits: ["click:clear"],
|
20
|
+
setup(u, { emit: d }) {
|
21
|
+
const t = u, f = d, o = $(), a = () => {
|
22
|
+
var e;
|
23
|
+
!o.value || t.preventFocus || (e = o.value.querySelector("input")) == null || e.focus();
|
24
|
+
}, b = () => {
|
25
|
+
f("click:clear"), a();
|
26
|
+
};
|
27
|
+
return (e, E) => (r(), k("span", {
|
28
|
+
ref_key: "container",
|
29
|
+
ref: o,
|
30
|
+
class: y(["bb-common-input-inner-container", {
|
31
|
+
"bb-common-input-inner-container--clearable": t.clearable
|
32
|
+
}]),
|
33
|
+
onClick: a
|
34
|
+
}, [
|
35
|
+
n(e.$slots, "prepend", {}, () => [
|
36
|
+
l("span", v, [
|
37
|
+
n(e.$slots, "prefix")
|
38
|
+
])
|
39
|
+
]),
|
40
|
+
e.$props["prepend:icon"] ? (r(), c(i(m), {
|
41
|
+
key: 0,
|
42
|
+
class: "bb-common-input-inner-container__prepend-icon",
|
43
|
+
type: e.$props["prepend:icon"]
|
44
|
+
}, null, 8, ["type"])) : s("", !0),
|
45
|
+
n(e.$slots, "default"),
|
46
|
+
p(B, {
|
47
|
+
"aria-hidden": !e.clearable,
|
48
|
+
tabindex: e.clearable ? 0 : -1,
|
49
|
+
onClick: b
|
50
|
+
}, null, 8, ["aria-hidden", "tabindex"]),
|
51
|
+
e.$props["append:icon"] ? (r(), c(i(m), {
|
52
|
+
key: 1,
|
53
|
+
class: "bb-common-input-inner-container__append-icon",
|
54
|
+
type: e.$props["append:icon"]
|
55
|
+
}, null, 8, ["type"])) : s("", !0),
|
56
|
+
p(h),
|
57
|
+
p(i(C)),
|
58
|
+
n(e.$slots, "append", {}, () => [
|
59
|
+
l("span", I, [
|
60
|
+
n(e.$slots, "suffix")
|
61
|
+
])
|
62
|
+
])
|
63
|
+
], 2));
|
64
|
+
}
|
65
|
+
});
|
15
66
|
export {
|
16
|
-
|
67
|
+
A as default
|
17
68
|
};
|