bitboss-ui 2.1.10 → 2.1.12
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/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +2 -2
- package/dist/index.css +1 -1
- package/dist/index106.js +7 -7
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +9 -9
- package/dist/index13.js +1 -1
- package/dist/index131.js +4 -4
- package/dist/index137.js +2 -2
- package/dist/index138.js +1 -1
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index206.js +138 -2
- package/dist/index208.js +2 -138
- package/dist/index209.js +5 -3
- package/dist/index21.js +16 -16
- package/dist/index210.js +5 -2
- package/dist/index211.js +5 -2
- package/dist/index212.js +5 -18
- package/dist/index213.js +5 -12
- package/dist/index214.js +5 -51
- package/dist/index215.js +2 -15
- package/dist/index216.js +2 -12
- package/dist/index217.js +2 -17
- package/dist/index218.js +13 -29
- package/dist/index219.js +11 -13
- package/dist/index220.js +19 -15
- package/dist/index221.js +65 -5
- package/dist/index223.js +13 -106
- package/dist/index224.js +115 -0
- package/dist/index226.js +5 -0
- package/dist/index227.js +2 -66
- package/dist/{index222.js → index228.js} +1 -1
- package/dist/index229.js +2 -13
- package/dist/index23.js +155 -153
- package/dist/index230.js +83 -110
- package/dist/index232.js +28 -229
- package/dist/index233.js +17 -2
- package/dist/index234.js +51 -2
- package/dist/index235.js +15 -2
- package/dist/index236.js +3 -7
- package/dist/index237.js +12 -7
- package/dist/index238.js +16 -5
- package/dist/index239.js +2 -5
- package/dist/index240.js +2 -5
- package/dist/index241.js +7 -5
- package/dist/index242.js +7 -5
- package/dist/index243.js +106 -5
- package/dist/index245.js +100 -11
- package/dist/index247.js +4 -2
- package/dist/index248.js +197 -5
- package/dist/index25.js +3 -3
- package/dist/index250.js +32 -6
- package/dist/index251.js +180 -247
- package/dist/index252.js +16 -50
- package/dist/index253.js +12 -44
- package/dist/index254.js +6 -5
- package/dist/index255.js +224 -54
- package/dist/index256.js +12 -85
- package/dist/index257.js +7 -0
- package/dist/index258.js +5 -34
- package/dist/index259.js +8 -4
- package/dist/index260.js +239 -186
- package/dist/index261.js +54 -0
- package/dist/index262.js +44 -3
- package/dist/index263.js +5 -13
- package/dist/index264.js +59 -182
- package/dist/index267.js +9 -3
- package/dist/index268.js +23 -9
- package/dist/index269.js +10 -23
- package/dist/index27.js +1 -1
- package/dist/index270.js +3 -9
- package/dist/index271.js +3 -10
- package/dist/index272.js +9 -3
- package/dist/index273.js +1 -1
- package/dist/index277.js +1 -1
- package/dist/index278.js +1 -1
- package/dist/index279.js +1 -1
- package/dist/index280.js +280 -3
- package/dist/index281.js +2 -3
- package/dist/index282.js +125 -3
- package/dist/index283.js +4 -0
- package/dist/index284.js +15 -7
- package/dist/index285.js +2 -17
- package/dist/index286.js +15 -27
- package/dist/index287.js +2 -4
- package/dist/index288.js +16 -3
- package/dist/index289.js +2 -2
- package/dist/index29.js +3 -3
- package/dist/index290.js +19 -7
- package/dist/index291.js +2 -11
- package/dist/index292.js +3 -4
- package/dist/index294.js +7 -2
- package/dist/index295.js +3 -16
- package/dist/index296.js +7 -2
- package/dist/index297.js +10 -15
- package/dist/index298.js +5 -2
- package/dist/index299.js +4 -19
- package/dist/index300.js +6 -2
- package/dist/index301.js +3 -14
- package/dist/index302.js +3 -2
- package/dist/index303.js +17 -19
- package/dist/index304.js +28 -2
- package/dist/index305.js +3 -27
- package/dist/index306.js +3 -2
- package/dist/index307.js +3 -2
- package/dist/index308.js +1 -1
- package/dist/index309.js +1 -1
- package/dist/index31.js +2 -2
- package/dist/index310.js +19 -2
- package/dist/index311.js +2 -22
- package/dist/index312.js +29 -0
- package/dist/index313.js +2 -2
- package/dist/index314.js +2 -3
- package/dist/index315.js +2 -6
- package/dist/index316.js +2 -125
- package/dist/index317.js +2 -2
- package/dist/index318.js +22 -3
- package/dist/index323.js +2 -2
- package/dist/index324.js +2 -33
- package/dist/index325.js +33 -28
- package/dist/index326.js +30 -0
- package/dist/index328.js +227 -6
- package/dist/index329.js +57 -18
- package/dist/index33.js +8 -8
- package/dist/index330.js +58 -47
- package/dist/index331.js +128 -6
- package/dist/index332.js +353 -113
- package/dist/index333.js +44 -366
- package/dist/index334.js +7 -227
- package/dist/index335.js +5 -7
- package/dist/index336.js +8 -6
- package/dist/index337.js +7 -8
- package/dist/index338.js +17 -91
- package/dist/index339.js +7 -58
- package/dist/index340.js +92 -57
- package/dist/index342.js +1 -1
- package/dist/index343.js +124 -483
- package/dist/index344.js +483 -45
- package/dist/index345.js +427 -120
- package/dist/index346.js +113 -422
- package/dist/index347.js +48 -125
- package/dist/index35.js +4 -4
- package/dist/index37.js +20 -20
- package/dist/index39.js +7 -7
- 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 +2 -2
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +3 -3
- package/dist/index92.js +2 -2
- package/dist/index94.js +3 -3
- package/package.json +1 -1
- package/dist/index225.js +0 -102
- package/dist/index244.js +0 -4
- package/dist/index246.js +0 -22
- package/dist/index249.js +0 -7
- package/dist/index293.js +0 -282
- package/dist/index319.js +0 -7
- package/dist/index327.js +0 -4
package/dist/index220.js
CHANGED
@@ -1,18 +1,22 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
import { MaskInput as r } from "./index251.js";
|
2
|
+
const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
|
3
|
+
if (a.arg == null || a.instance == null) return;
|
4
|
+
const s = "setup" in a.instance.$.type;
|
5
|
+
a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
|
6
|
+
}, k = (a, n) => {
|
7
|
+
var s;
|
8
|
+
const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
|
9
|
+
if (t == null || (t == null ? void 0 : t.type) === "file") return;
|
10
|
+
let e = {};
|
11
|
+
if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
|
12
|
+
const l = (o) => {
|
13
|
+
const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
|
14
|
+
p(n, i);
|
15
|
+
};
|
16
|
+
e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
|
17
|
+
}
|
18
|
+
u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
|
15
19
|
};
|
16
20
|
export {
|
17
|
-
|
21
|
+
k as vMaska
|
18
22
|
};
|
package/dist/index221.js
CHANGED
@@ -1,8 +1,68 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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 "./index325.js";
|
9
|
+
import B from "./index326.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
|
+
}
|
5
65
|
});
|
6
66
|
export {
|
7
|
-
|
67
|
+
A as default
|
8
68
|
};
|
package/dist/index223.js
CHANGED
@@ -1,108 +1,15 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
import
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
|
14
|
-
const s = l(n.value) ? -1 : n.value;
|
15
|
-
let o = (s + e) % t.options.length;
|
16
|
-
for (; t.options[o].disabled && o !== s; )
|
17
|
-
o = a(e + 1);
|
18
|
-
return o;
|
19
|
-
}, x = () => {
|
20
|
-
if (!i.value) return;
|
21
|
-
const e = a();
|
22
|
-
n.value = e;
|
23
|
-
}, c = (e = 1) => {
|
24
|
-
const s = l(n.value) ? 0 : n.value;
|
25
|
-
let o = (s - e + t.options.length) % t.options.length;
|
26
|
-
for (; t.options[o].disabled && o !== s; )
|
27
|
-
o = c(e + 1);
|
28
|
-
return o;
|
29
|
-
}, m = async () => {
|
30
|
-
if (!i.value) return;
|
31
|
-
const e = c();
|
32
|
-
n.value = e;
|
33
|
-
}, w = () => {
|
34
|
-
if (!i.value) return;
|
35
|
-
let e = 0;
|
36
|
-
for (; t.options[e].disabled; )
|
37
|
-
e++;
|
38
|
-
n.value = e;
|
39
|
-
}, b = () => {
|
40
|
-
if (!i.value) return;
|
41
|
-
let e = t.options.length - 1;
|
42
|
-
for (; t.options[e].disabled && e !== 0; )
|
43
|
-
e--;
|
44
|
-
n.value = e;
|
45
|
-
}, I = () => {
|
46
|
-
if (!i.value) return;
|
47
|
-
let e = 0;
|
48
|
-
for (; !t.options[e].selected && t.options.length !== e; )
|
49
|
-
e++;
|
50
|
-
n.value = e;
|
51
|
-
}, g = () => {
|
52
|
-
if (!i.value) return;
|
53
|
-
let e = t.options.length - 1;
|
54
|
-
for (; t.options[e].selected && e !== 0; )
|
55
|
-
e--;
|
56
|
-
n.value = e;
|
57
|
-
}, _ = (e) => {
|
58
|
-
if (!i.value) return;
|
59
|
-
const s = t.options.findIndex(
|
60
|
-
(o) => o.valueHash === e
|
61
|
-
);
|
62
|
-
s >= 0 && (n.value = s);
|
63
|
-
}, r = () => {
|
64
|
-
n.value = null;
|
65
|
-
}, k = () => {
|
66
|
-
if (l(n.value)) return;
|
67
|
-
const e = t.options[n.value];
|
68
|
-
e.selected && u("option:unselected", e);
|
69
|
-
}, C = () => l(n.value) ? void 0 : t.options[n.value];
|
70
|
-
return N(
|
71
|
-
() => t.options,
|
72
|
-
(e, s) => {
|
73
|
-
d(e) !== d(s) && r();
|
74
|
-
},
|
75
|
-
{
|
76
|
-
flush: "post"
|
77
|
-
}
|
78
|
-
), v({
|
79
|
-
focusNext: x,
|
80
|
-
focusPrevious: m,
|
81
|
-
focusFirst: w,
|
82
|
-
focusFirstSelected: I,
|
83
|
-
focusLast: b,
|
84
|
-
focusLastSelected: g,
|
85
|
-
blur: r,
|
86
|
-
confirmOption: k,
|
87
|
-
focusByHash: _,
|
88
|
-
getHighlighted: C
|
89
|
-
}), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
|
90
|
-
key: o.valueHash,
|
91
|
-
class: P({
|
92
|
-
"bb-chipsbox-item": !0,
|
93
|
-
"bb-chipsbox-item--focused": B === n.value
|
94
|
-
}),
|
95
|
-
clearable: !0,
|
96
|
-
text: o.text,
|
97
|
-
"onClick:clear": O((M) => u("option:unselected", o), ["stop"])
|
98
|
-
}, {
|
99
|
-
default: $(() => [
|
100
|
-
z(D(o.text), 1)
|
101
|
-
]),
|
102
|
-
_: 2
|
103
|
-
}, 1032, ["class", "text", "onClick:clear"]))), 128));
|
104
|
-
}
|
105
|
-
});
|
1
|
+
import { createElementBlock as t, openBlock as n, renderSlot as e } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
import r from "./index294.js";
|
4
|
+
const s = {}, c = { class: "bb-common-input-outer-container" };
|
5
|
+
function p(o, a) {
|
6
|
+
return n(), t("span", c, [
|
7
|
+
e(o.$slots, "prepend-outer"),
|
8
|
+
e(o.$slots, "default"),
|
9
|
+
e(o.$slots, "append-outer")
|
10
|
+
]);
|
11
|
+
}
|
12
|
+
const i = /* @__PURE__ */ r(s, [["render", p]]);
|
106
13
|
export {
|
107
|
-
|
14
|
+
i as default
|
108
15
|
};
|
package/dist/index224.js
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
import { defineComponent as P, mergeModels as D, useModel as V, ref as r, watch as A, onMounted as x, computed as S, createBlock as b, openBlock as v, resolveDynamicComponent as g, normalizeStyle as z, normalizeClass as E, unref as n, withCtx as w, renderSlot as y, createCommentVNode as N, mergeProps as h, createElementVNode as C } from "vue";
|
2
|
+
import { wait as F } from "./index135.js";
|
3
|
+
import { useFloating as U, arrow as j } from "./index331.js";
|
4
|
+
import { flip as q, offset as G, shift as H, hide as I, autoUpdate as J } from "./index332.js";
|
5
|
+
const K = { class: "bb-common-popover__bubble" }, W = /* @__PURE__ */ P({
|
6
|
+
__name: "CommonPopover",
|
7
|
+
props: /* @__PURE__ */ D({
|
8
|
+
arrowPadding: {},
|
9
|
+
offset: {},
|
10
|
+
block: { type: Boolean },
|
11
|
+
padding: { default: 0 },
|
12
|
+
placement: {},
|
13
|
+
transitionDuration: { default: 250 },
|
14
|
+
containerAttributes: {},
|
15
|
+
dialog: { type: Boolean },
|
16
|
+
renderContent: { type: Boolean, default: !0 },
|
17
|
+
tag: { default: "span" }
|
18
|
+
}, {
|
19
|
+
modelValue: { type: Boolean, default: !1 },
|
20
|
+
modelModifiers: {}
|
21
|
+
}),
|
22
|
+
emits: ["update:modelValue"],
|
23
|
+
setup(s) {
|
24
|
+
const o = s, a = V(s, "modelValue"), i = r(), t = r(), p = r(), { floatingStyles: k, placement: _, middlewareData: l, update: M } = U(
|
25
|
+
i,
|
26
|
+
t,
|
27
|
+
{
|
28
|
+
placement: o.placement,
|
29
|
+
whileElementsMounted: J,
|
30
|
+
middleware: [
|
31
|
+
q(),
|
32
|
+
G(o.offset),
|
33
|
+
H({ padding: o.padding }),
|
34
|
+
I(),
|
35
|
+
j({
|
36
|
+
element: p,
|
37
|
+
padding: o.arrowPadding
|
38
|
+
})
|
39
|
+
],
|
40
|
+
strategy: "fixed"
|
41
|
+
}
|
42
|
+
), d = (e) => {
|
43
|
+
e ? (M(), o.dialog ? t.value.showModal() : t.value.showPopover()) : F(o.transitionDuration).then(() => {
|
44
|
+
t.value && (o.dialog ? t.value.close() : t.value.hidePopover());
|
45
|
+
});
|
46
|
+
};
|
47
|
+
A(a, d, { flush: "post" }), x(() => {
|
48
|
+
a.value && d(a.value);
|
49
|
+
});
|
50
|
+
const $ = S(() => {
|
51
|
+
if (l.value.arrow) {
|
52
|
+
const { x: e, y: u } = l.value.arrow;
|
53
|
+
return {
|
54
|
+
style: {
|
55
|
+
left: `${e}px`,
|
56
|
+
top: `${u}px`
|
57
|
+
}
|
58
|
+
};
|
59
|
+
}
|
60
|
+
}), B = () => {
|
61
|
+
a.value = !1;
|
62
|
+
};
|
63
|
+
return (e, u) => (v(), b(g(e.dialog ? "div" : e.tag), {
|
64
|
+
ref_key: "wrapper",
|
65
|
+
ref: i,
|
66
|
+
class: E(["bb-common-popover", {
|
67
|
+
"bb-common-popover--open": a.value && !!t.value,
|
68
|
+
"bb-common-popover--block": o.block,
|
69
|
+
[`bb-common-popover--${n(_)}`]: !0
|
70
|
+
}]),
|
71
|
+
style: z({
|
72
|
+
"--transition-duration": `${o.transitionDuration}ms`
|
73
|
+
})
|
74
|
+
}, {
|
75
|
+
default: w(() => {
|
76
|
+
var m, c, f;
|
77
|
+
return [
|
78
|
+
y(e.$slots, "activator"),
|
79
|
+
e.renderContent ? (v(), b(g(e.dialog ? "dialog" : e.tag), h({
|
80
|
+
key: 0,
|
81
|
+
ref_key: "content",
|
82
|
+
ref: t,
|
83
|
+
class: ["bb-common-popover__bubble-container", {
|
84
|
+
"bb-common-popover__bubble-container--open": a.value && !!t.value
|
85
|
+
}],
|
86
|
+
popover: "manual",
|
87
|
+
style: {
|
88
|
+
...((m = e.containerAttributes) == null ? void 0 : m.style) ?? {},
|
89
|
+
...n(k),
|
90
|
+
"--arrow-offset-x": Math.round(((f = (c = n(l)) == null ? void 0 : c.arrow) == null ? void 0 : f.x) ?? 0) + "px",
|
91
|
+
"--page-padding": `${e.padding}px`
|
92
|
+
},
|
93
|
+
tabindex: a.value ? void 0 : -1
|
94
|
+
}, e.containerAttributes, { onClose: n(B) }), {
|
95
|
+
default: w(() => [
|
96
|
+
C("span", h({
|
97
|
+
ref_key: "bubblearrow",
|
98
|
+
ref: p,
|
99
|
+
class: "bb-common-popover__arrow"
|
100
|
+
}, $.value), null, 16),
|
101
|
+
C("span", K, [
|
102
|
+
y(e.$slots, "default")
|
103
|
+
])
|
104
|
+
]),
|
105
|
+
_: 3
|
106
|
+
}, 16, ["class", "style", "tabindex", "onClose"])) : N("", !0)
|
107
|
+
];
|
108
|
+
}),
|
109
|
+
_: 3
|
110
|
+
}, 8, ["class", "style"]));
|
111
|
+
}
|
112
|
+
});
|
113
|
+
export {
|
114
|
+
W as default
|
115
|
+
};
|
package/dist/index226.js
ADDED
package/dist/index227.js
CHANGED
@@ -1,68 +1,4 @@
|
|
1
|
-
|
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 "./index324.js";
|
9
|
-
import B from "./index325.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
|
-
});
|
1
|
+
const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
|
66
2
|
export {
|
67
|
-
|
3
|
+
s as isCssColor
|
68
4
|
};
|
package/dist/index229.js
CHANGED
@@ -1,15 +1,4 @@
|
|
1
|
-
|
2
|
-
/* empty css */
|
3
|
-
import r from "./index284.js";
|
4
|
-
const s = {}, c = { class: "bb-common-input-outer-container" };
|
5
|
-
function p(o, a) {
|
6
|
-
return n(), t("span", c, [
|
7
|
-
e(o.$slots, "prepend-outer"),
|
8
|
-
e(o.$slots, "default"),
|
9
|
-
e(o.$slots, "append-outer")
|
10
|
-
]);
|
11
|
-
}
|
12
|
-
const i = /* @__PURE__ */ r(s, [["render", p]]);
|
1
|
+
const o = (e) => typeof e == "boolean" ? e : e === "true";
|
13
2
|
export {
|
14
|
-
|
3
|
+
o as booleanishToBoolean
|
15
4
|
};
|