bitboss-ui 2.1.24 → 2.1.25
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/index.css +1 -1
- package/dist/index106.js +9 -9
- package/dist/index113.js +1 -1
- package/dist/index121.js +11 -11
- package/dist/index13.js +1 -1
- package/dist/index131.js +3 -3
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index209.js +34 -2
- package/dist/index21.js +16 -16
- package/dist/index210.js +86 -2
- package/dist/index212.js +29 -13
- package/dist/index213.js +17 -4
- package/dist/index214.js +50 -10
- package/dist/index215.js +14 -19
- package/dist/index216.js +3 -197
- package/dist/index217.js +14 -0
- package/dist/index218.js +16 -69
- package/dist/index219.js +7 -0
- package/dist/index220.js +5 -13
- package/dist/index221.js +5 -114
- package/dist/index222.js +7 -0
- package/dist/index223.js +5 -4
- package/dist/index224.js +5 -13
- package/dist/index225.js +2 -2
- package/dist/index226.js +2 -2
- package/dist/index227.js +2 -7
- package/dist/index228.js +13 -2
- package/dist/index229.js +11 -7
- package/dist/index23.js +15 -15
- package/dist/index230.js +19 -85
- package/dist/index231.js +71 -0
- package/dist/index233.js +13 -16
- package/dist/index234.js +114 -17
- package/dist/index236.js +12 -14
- package/dist/index237.js +18 -3
- package/dist/index238.js +11 -11
- package/dist/index239.js +6 -5
- package/dist/index240.js +4 -5
- package/dist/index241.js +106 -5
- package/dist/index243.js +100 -5
- package/dist/index245.js +229 -5
- package/dist/index246.js +3 -8
- package/dist/index247.js +2 -250
- package/dist/index248.js +2 -52
- package/dist/index249.js +4 -44
- package/dist/index25.js +44 -42
- package/dist/index250.js +197 -5
- package/dist/index252.js +5 -2
- package/dist/index253.js +5 -18
- package/dist/index254.js +8 -12
- package/dist/index255.js +249 -5
- package/dist/index256.js +46 -100
- package/dist/index257.js +46 -0
- package/dist/index258.js +5 -100
- package/dist/{index251.js → index259.js} +1 -1
- package/dist/index260.js +180 -226
- package/dist/index261.js +2 -34
- package/dist/index262.js +2 -5
- package/dist/index263.js +7 -3
- package/dist/index264.js +7 -10
- package/dist/index265.js +6 -3
- package/dist/index266.js +15 -182
- package/dist/index267.js +10 -6
- package/dist/index268.js +3 -16
- package/dist/index269.js +8 -8
- package/dist/index27.js +1 -1
- package/dist/index270.js +8 -23
- package/dist/index273.js +9 -2
- package/dist/index274.js +23 -9
- package/dist/index275.js +2 -8
- package/dist/index277.js +1 -1
- package/dist/index278.js +1 -1
- package/dist/index279.js +1 -1
- package/dist/index280.js +2 -7
- package/dist/index281.js +3 -11
- package/dist/index282.js +17 -3
- package/dist/index283.js +28 -3
- package/dist/index284.js +282 -0
- package/dist/index285.js +2 -7
- package/dist/index286.js +125 -3
- package/dist/index287.js +2 -4
- package/dist/index288.js +14 -3
- package/dist/index289.js +2 -3
- package/dist/index29.js +3 -3
- package/dist/index290.js +16 -17
- package/dist/index291.js +2 -28
- package/dist/index292.js +13 -277
- package/dist/index293.js +2 -2
- package/dist/index294.js +15 -12
- package/dist/index296.js +3 -16
- package/dist/index298.js +7 -19
- package/dist/index299.js +3 -2
- package/dist/index300.js +7 -15
- package/dist/index301.js +11 -2
- package/dist/index302.js +3 -18
- package/dist/index303.js +6 -2
- package/dist/index304.js +3 -27
- package/dist/index305.js +3 -2
- package/dist/index306.js +1 -1
- package/dist/index307.js +4 -2
- package/dist/index308.js +5 -2
- package/dist/index309.js +3 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +19 -22
- package/dist/index312.js +27 -2
- package/dist/index313.js +2 -6
- package/dist/index314.js +2 -3
- package/dist/index315.js +2 -3
- package/dist/index316.js +1 -1
- package/dist/index317.js +2 -125
- package/dist/index318.js +22 -2
- package/dist/index323.js +1 -1
- package/dist/index324.js +2 -8
- package/dist/index325.js +128 -5
- package/dist/index326.js +367 -6
- package/dist/index327.js +58 -2
- package/dist/index328.js +58 -47
- package/dist/index329.js +227 -57
- package/dist/index33.js +8 -8
- package/dist/index330.js +32 -57
- package/dist/index331.js +28 -7
- package/dist/index333.js +44 -126
- package/dist/index334.js +6 -368
- package/dist/index335.js +17 -5
- package/dist/index336.js +6 -32
- package/dist/index337.js +8 -28
- package/dist/index338.js +8 -0
- package/dist/index339.js +8 -228
- package/dist/index340.js +1 -1
- package/dist/index342.js +3 -129
- package/dist/index343.js +126 -47
- package/dist/{index341.js → index346.js} +1 -1
- package/dist/index347.js +50 -3
- package/dist/index35.js +4 -4
- package/dist/index37.js +20 -20
- package/dist/index39.js +6 -6
- 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/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index90.js +53 -51
- package/dist/index92.js +1 -1
- package/dist/index94.js +3 -3
- package/package.json +1 -1
- package/dist/index211.js +0 -4
- package/dist/index232.js +0 -31
- package/dist/index235.js +0 -53
- package/dist/index242.js +0 -7
- package/dist/index244.js +0 -7
- package/dist/index319.js +0 -7
- package/dist/index332.js +0 -21
- /package/dist/{index297.js → index311.js} +0 -0
package/dist/index218.js
CHANGED
@@ -1,71 +1,18 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
"prepend:icon": {},
|
17
|
-
preventFocus: { type: Boolean }
|
18
|
-
},
|
19
|
-
emits: ["click:clear"],
|
20
|
-
setup(f, { emit: d }) {
|
21
|
-
const p = f, b = d, o = y(), _ = (e) => {
|
22
|
-
var c;
|
23
|
-
if (!o.value || p.preventFocus) return;
|
24
|
-
const r = e.target;
|
25
|
-
r.tagName === "INPUT" || r.tagName === "TEXTAREA" || (c = o.value.querySelector("input,textarea")) == null || c.focus();
|
26
|
-
}, $ = () => {
|
27
|
-
var e;
|
28
|
-
b("click:clear"), (e = o.value.querySelector("input,textarea")) == null || e.focus();
|
29
|
-
};
|
30
|
-
return (e, r) => (t(), C("span", {
|
31
|
-
ref_key: "container",
|
32
|
-
ref: o,
|
33
|
-
class: N(["bb-common-input-inner-container", {
|
34
|
-
"bb-common-input-inner-container--clearable": p.clearable
|
35
|
-
}]),
|
36
|
-
onClick: _
|
37
|
-
}, [
|
38
|
-
n(e.$slots, "prepend", {}, () => [
|
39
|
-
m("span", E, [
|
40
|
-
n(e.$slots, "prefix")
|
41
|
-
])
|
42
|
-
]),
|
43
|
-
e.$props["prepend:icon"] ? (t(), s(i(u), {
|
44
|
-
key: 0,
|
45
|
-
class: "bb-common-input-inner-container__prepend-icon",
|
46
|
-
type: e.$props["prepend:icon"]
|
47
|
-
}, null, 8, ["type"])) : l("", !0),
|
48
|
-
n(e.$slots, "default"),
|
49
|
-
a(B, {
|
50
|
-
"aria-hidden": !e.clearable,
|
51
|
-
tabindex: e.clearable ? 0 : -1,
|
52
|
-
onClick: $
|
53
|
-
}, null, 8, ["aria-hidden", "tabindex"]),
|
54
|
-
e.$props["append:icon"] ? (t(), s(i(u), {
|
55
|
-
key: 1,
|
56
|
-
class: "bb-common-input-inner-container__append-icon",
|
57
|
-
type: e.$props["append:icon"]
|
58
|
-
}, null, 8, ["type"])) : l("", !0),
|
59
|
-
a(v),
|
60
|
-
a(i(h)),
|
61
|
-
n(e.$slots, "append", {}, () => [
|
62
|
-
m("span", I, [
|
63
|
-
n(e.$slots, "suffix")
|
64
|
-
])
|
65
|
-
])
|
66
|
-
], 2));
|
67
|
-
}
|
68
|
-
});
|
1
|
+
import { isNotNil as n } from "./index140.js";
|
2
|
+
import { ref as t, onServerPrefetch as u, onBeforeMount as c } from "vue";
|
3
|
+
const h = ({
|
4
|
+
fn: i,
|
5
|
+
onStart: s,
|
6
|
+
multiple: f,
|
7
|
+
currentValue: o
|
8
|
+
}) => {
|
9
|
+
const a = s || !f && n(o) || f && !!o.length, e = t(!1), l = t(!1), r = async () => {
|
10
|
+
e.value = !0, await i({ prefill: !0 }), e.value = !1, l.value = !0;
|
11
|
+
};
|
12
|
+
return a && (u(r), c(async () => {
|
13
|
+
l.value || await r();
|
14
|
+
})), { isPrefilling: e, hasPrefilled: l, prefill: r };
|
15
|
+
};
|
69
16
|
export {
|
70
|
-
|
17
|
+
h as usePrefill
|
71
18
|
};
|
package/dist/index219.js
ADDED
package/dist/index220.js
CHANGED
@@ -1,15 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
const
|
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
|
+
import { getDefaultExportFromCjs as r } from "./index303.js";
|
2
|
+
import { __require as o } from "./index286.js";
|
3
|
+
var t = o();
|
4
|
+
const m = /* @__PURE__ */ r(t);
|
13
5
|
export {
|
14
|
-
|
6
|
+
m as default
|
15
7
|
};
|
package/dist/index221.js
CHANGED
@@ -1,116 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
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
|
-
flip: { type: Boolean, default: !0 }
|
19
|
-
}, {
|
20
|
-
modelValue: { type: Boolean, default: !1 },
|
21
|
-
modelModifiers: {}
|
22
|
-
}),
|
23
|
-
emits: ["update:modelValue"],
|
24
|
-
setup(s) {
|
25
|
-
const o = s, a = V(s, "modelValue"), i = r(), t = r(), p = r(), { floatingStyles: k, placement: _, middlewareData: n, update: B } = U(
|
26
|
-
i,
|
27
|
-
t,
|
28
|
-
{
|
29
|
-
placement: o.placement,
|
30
|
-
whileElementsMounted: J,
|
31
|
-
middleware: [
|
32
|
-
...o.flip ? [q()] : [],
|
33
|
-
G(o.offset),
|
34
|
-
H({ padding: o.padding }),
|
35
|
-
I(),
|
36
|
-
j({
|
37
|
-
element: p,
|
38
|
-
padding: o.arrowPadding
|
39
|
-
})
|
40
|
-
],
|
41
|
-
strategy: "fixed"
|
42
|
-
}
|
43
|
-
), d = (e) => {
|
44
|
-
e ? (B(), o.dialog ? t.value.showModal() : t.value.showPopover()) : F(o.transitionDuration).then(() => {
|
45
|
-
t.value && (o.dialog ? t.value.close() : t.value.hidePopover());
|
46
|
-
});
|
47
|
-
};
|
48
|
-
A(a, d, { flush: "post" }), x(() => {
|
49
|
-
a.value && d(a.value);
|
50
|
-
});
|
51
|
-
const M = S(() => {
|
52
|
-
if (n.value.arrow) {
|
53
|
-
const { x: e, y: u } = n.value.arrow;
|
54
|
-
return {
|
55
|
-
style: {
|
56
|
-
left: `${e}px`,
|
57
|
-
top: `${u}px`
|
58
|
-
}
|
59
|
-
};
|
60
|
-
}
|
61
|
-
}), $ = () => {
|
62
|
-
a.value = !1;
|
63
|
-
};
|
64
|
-
return (e, u) => (v(), b(g(e.dialog ? "div" : e.tag), {
|
65
|
-
ref_key: "wrapper",
|
66
|
-
ref: i,
|
67
|
-
class: E(["bb-common-popover", {
|
68
|
-
"bb-common-popover--open": a.value && !!t.value,
|
69
|
-
"bb-common-popover--block": o.block,
|
70
|
-
[`bb-common-popover--${l(_)}`]: !0
|
71
|
-
}]),
|
72
|
-
style: z({
|
73
|
-
"--transition-duration": `${o.transitionDuration}ms`
|
74
|
-
})
|
75
|
-
}, {
|
76
|
-
default: w(() => {
|
77
|
-
var m, f, c;
|
78
|
-
return [
|
79
|
-
y(e.$slots, "activator"),
|
80
|
-
e.renderContent ? (v(), b(g(e.dialog ? "dialog" : e.tag), h({
|
81
|
-
key: 0,
|
82
|
-
ref_key: "content",
|
83
|
-
ref: t,
|
84
|
-
class: ["bb-common-popover__bubble-container", {
|
85
|
-
"bb-common-popover__bubble-container--open": a.value && !!t.value
|
86
|
-
}],
|
87
|
-
popover: "manual",
|
88
|
-
style: {
|
89
|
-
...((m = e.containerAttributes) == null ? void 0 : m.style) ?? {},
|
90
|
-
...l(k),
|
91
|
-
"--arrow-offset-x": Math.round(((c = (f = l(n)) == null ? void 0 : f.arrow) == null ? void 0 : c.x) ?? 0) + "px",
|
92
|
-
"--page-padding": `${e.padding}px`
|
93
|
-
},
|
94
|
-
tabindex: a.value ? void 0 : -1
|
95
|
-
}, e.containerAttributes, { onClose: l($) }), {
|
96
|
-
default: w(() => [
|
97
|
-
C("span", h({
|
98
|
-
ref_key: "bubblearrow",
|
99
|
-
ref: p,
|
100
|
-
class: "bb-common-popover__arrow"
|
101
|
-
}, M.value), null, 16),
|
102
|
-
C("span", K, [
|
103
|
-
y(e.$slots, "default")
|
104
|
-
])
|
105
|
-
]),
|
106
|
-
_: 3
|
107
|
-
}, 16, ["class", "style", "tabindex", "onClose"])) : N("", !0)
|
108
|
-
];
|
109
|
-
}),
|
110
|
-
_: 3
|
111
|
-
}, 8, ["class", "style"]));
|
112
|
-
}
|
113
|
-
});
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index303.js";
|
2
|
+
import { __require as e } from "./index288.js";
|
3
|
+
var o = e();
|
4
|
+
const m = /* @__PURE__ */ r(o);
|
114
5
|
export {
|
115
|
-
|
6
|
+
m as default
|
116
7
|
};
|
package/dist/index222.js
ADDED
package/dist/index223.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index303.js";
|
2
|
+
import { __require as e } from "./index292.js";
|
3
|
+
var o = e();
|
4
|
+
const m = /* @__PURE__ */ r(o);
|
3
5
|
export {
|
4
|
-
|
5
|
-
s as when
|
6
|
+
m as default
|
6
7
|
};
|
package/dist/index224.js
CHANGED
@@ -1,15 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const [, o, a] = n;
|
6
|
-
return a ? t : o + "px";
|
7
|
-
} else if (t in r)
|
8
|
-
return r[t] + "px";
|
9
|
-
throw new Error(`Invalid size: ${t}`);
|
10
|
-
}
|
11
|
-
return t + "px";
|
12
|
-
};
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index303.js";
|
2
|
+
import { __require as t } from "./index294.js";
|
3
|
+
var o = t();
|
4
|
+
const a = /* @__PURE__ */ r(o);
|
13
5
|
export {
|
14
|
-
|
6
|
+
a as default
|
15
7
|
};
|
package/dist/index225.js
CHANGED
package/dist/index226.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const n = (t) => t == null || Number.isNaN(t) || typeof t == "object" && Object.keys(t).length === 0 || typeof t == "string" && t.trim().length === 0 || t instanceof Map && [...t.keys()].length === 0 || t instanceof Set && [...t.keys()].length === 0;
|
2
2
|
export {
|
3
|
-
|
3
|
+
n as isEmpty
|
4
4
|
};
|
package/dist/index227.js
CHANGED
@@ -1,9 +1,4 @@
|
|
1
|
-
const
|
2
|
-
if (r <= 0) throw new Error("Step must be a positive number");
|
3
|
-
if (t > o) throw new Error("Min must be less than or equal to Max");
|
4
|
-
const n = Math.max(t, Math.min(o, e)), a = Math.round((n - t) / r);
|
5
|
-
return t + a * r;
|
6
|
-
};
|
1
|
+
const e = (t) => t[t.length - 1];
|
7
2
|
export {
|
8
|
-
|
3
|
+
e as last
|
9
4
|
};
|
package/dist/index228.js
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
-
|
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
|
+
});
|
2
13
|
export {
|
3
|
-
|
14
|
+
d as useLocale
|
4
15
|
};
|
package/dist/index229.js
CHANGED
@@ -1,9 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { ref as a, watch as c, toValue as u } from "vue";
|
2
|
+
const i = (e, { initialValue: o = !1, nextValue: r = !0 } = {}) => {
|
3
|
+
const t = a(o), n = c(
|
4
|
+
() => u(e),
|
5
|
+
(s) => {
|
6
|
+
s && (t.value = r, n());
|
7
|
+
}
|
8
|
+
);
|
9
|
+
return t;
|
10
|
+
};
|
7
11
|
export {
|
8
|
-
|
12
|
+
i as useUntil
|
9
13
|
};
|
package/dist/index23.js
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
import { defineComponent as K, watchEffect as Q, ref as i, computed as g, watch as D, createBlock as C, openBlock as Y, normalizeClass as w, withCtx as s, createElementVNode as n, createVNode as B, createCommentVNode as X, unref as r, withDirectives as x, mergeProps as S, withModifiers as ee, toDisplayString as E, renderSlot as c } from "vue";
|
2
2
|
import { _config as te } from "./index4.js";
|
3
|
-
import o from "./
|
4
|
-
import ae from "./
|
5
|
-
import oe from "./
|
6
|
-
import ne from "./
|
7
|
-
import re from "./
|
8
|
-
import le from "./
|
9
|
-
import { identity as ie } from "./
|
10
|
-
import { isEmpty as se } from "./
|
11
|
-
import { last as de } from "./
|
3
|
+
import o from "./index219.js";
|
4
|
+
import ae from "./index220.js";
|
5
|
+
import oe from "./index221.js";
|
6
|
+
import ne from "./index222.js";
|
7
|
+
import re from "./index223.js";
|
8
|
+
import le from "./index224.js";
|
9
|
+
import { identity as ie } from "./index225.js";
|
10
|
+
import { isEmpty as se } from "./index226.js";
|
11
|
+
import { last as de } from "./index227.js";
|
12
12
|
import { useId as ue } from "./index8.js";
|
13
|
-
import { useLocale as pe } from "./
|
13
|
+
import { useLocale as pe } from "./index228.js";
|
14
14
|
import { useMobile as ce } from "./index9.js";
|
15
|
-
import { useUntil as me } from "./
|
16
|
-
import { vMaska as fe } from "./
|
15
|
+
import { useUntil as me } from "./index229.js";
|
16
|
+
import { vMaska as fe } from "./index230.js";
|
17
17
|
import be from "./index21.js";
|
18
18
|
/* empty css */
|
19
|
-
import ke from "./
|
19
|
+
import ke from "./index231.js";
|
20
20
|
/* empty css */
|
21
|
-
import ge from "./
|
22
|
-
import ye from "./
|
21
|
+
import ge from "./index233.js";
|
22
|
+
import ye from "./index234.js";
|
23
23
|
/* empty css */
|
24
24
|
const ve = { class: "bb-base-date-picker-input__inner-wrapper" }, Ve = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], he = ["aria-label", "disabled"], Me = ["id"], De = ["inert"], Ze = /* @__PURE__ */ K({
|
25
25
|
__name: "BaseDatePickerInput",
|
package/dist/index230.js
CHANGED
@@ -1,88 +1,22 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
},
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
noDataText: {},
|
18
|
-
options: {}
|
19
|
-
},
|
20
|
-
setup(f) {
|
21
|
-
const { t: i } = g();
|
22
|
-
return (a, T) => (s(), n("span", {
|
23
|
-
ref: "container",
|
24
|
-
class: r(["bb-cr-container", {
|
25
|
-
"bb-cr-container--errors": a.hasErrors,
|
26
|
-
"bb-cr-container--horizontal": a.direction === "horizontal",
|
27
|
-
"bb-cr-container--vertical": a.direction === "vertical"
|
28
|
-
}])
|
29
|
-
}, [
|
30
|
-
l("span", k, [
|
31
|
-
t(a.$slots, "prepend"),
|
32
|
-
!a.options.length && a.loading ? (s(), n("span", y, [
|
33
|
-
t(a.$slots, "loading", {}, () => [
|
34
|
-
o(d(a.loadingText || b(i)("common.loadingText")), 1)
|
35
|
-
])
|
36
|
-
])) : a.options.length ? p("", !0) : (s(), n("span", $, [
|
37
|
-
t(a.$slots, "no-data", {}, () => [
|
38
|
-
o(d(a.noDataText || b(i)("common.noDataText")), 1)
|
39
|
-
])
|
40
|
-
])),
|
41
|
-
(s(!0), n(m, null, u(a.options, (e, c) => (s(), n(m, {
|
42
|
-
key: (e == null ? void 0 : e.valueHash) || c
|
43
|
-
}, [
|
44
|
-
t(a.$slots, "option:prepend", {
|
45
|
-
id: e.valueHash,
|
46
|
-
checked: !!e.selected,
|
47
|
-
disabled: !!e.disabled,
|
48
|
-
item: e.item,
|
49
|
-
text: e.text
|
50
|
-
}),
|
51
|
-
l("label", {
|
52
|
-
class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
|
53
|
-
}, [
|
54
|
-
t(a.$slots, "input", {
|
55
|
-
index: c,
|
56
|
-
option: e
|
57
|
-
}),
|
58
|
-
l("span", {
|
59
|
-
class: r({
|
60
|
-
"bb-cr-container-option__text": !0,
|
61
|
-
"sr-only": a.hideLabel
|
62
|
-
})
|
63
|
-
}, [
|
64
|
-
t(a.$slots, "label", {
|
65
|
-
checked: !!e.selected,
|
66
|
-
item: e.item,
|
67
|
-
text: e.text
|
68
|
-
}, () => [
|
69
|
-
o(d(e.text), 1)
|
70
|
-
])
|
71
|
-
], 2)
|
72
|
-
], 2),
|
73
|
-
t(a.$slots, "option:append", {
|
74
|
-
id: e.valueHash,
|
75
|
-
checked: !!e.selected,
|
76
|
-
disabled: !!e.disabled,
|
77
|
-
item: e.item,
|
78
|
-
text: e.text
|
79
|
-
})
|
80
|
-
], 64))), 128)),
|
81
|
-
t(a.$slots, "append")
|
82
|
-
])
|
83
|
-
], 2));
|
1
|
+
import { MaskInput as r } from "./index260.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];
|
84
17
|
}
|
85
|
-
|
18
|
+
u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
|
19
|
+
};
|
86
20
|
export {
|
87
|
-
|
21
|
+
k as vMaska
|
88
22
|
};
|
package/dist/index231.js
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
import { defineComponent as k, ref as y, createElementBlock as C, openBlock as t, normalizeClass as N, renderSlot as n, createBlock as s, createCommentVNode as l, createVNode as a, createElementVNode as m, unref as i } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
/* empty css */
|
4
|
+
import u from "./index85.js";
|
5
|
+
/* empty css */
|
6
|
+
import h from "./index113.js";
|
7
|
+
/* empty css */
|
8
|
+
import v from "./index330.js";
|
9
|
+
import B from "./index331.js";
|
10
|
+
/* empty css */
|
11
|
+
const E = { class: "bb-common-input-inner-container__prefix" }, I = { class: "bb-common-input-inner-container__suffix" }, R = /* @__PURE__ */ k({
|
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(f, { emit: d }) {
|
21
|
+
const p = f, b = d, o = y(), _ = (e) => {
|
22
|
+
var c;
|
23
|
+
if (!o.value || p.preventFocus) return;
|
24
|
+
const r = e.target;
|
25
|
+
r.tagName === "INPUT" || r.tagName === "TEXTAREA" || (c = o.value.querySelector("input,textarea")) == null || c.focus();
|
26
|
+
}, $ = () => {
|
27
|
+
var e;
|
28
|
+
b("click:clear"), (e = o.value.querySelector("input,textarea")) == null || e.focus();
|
29
|
+
};
|
30
|
+
return (e, r) => (t(), C("span", {
|
31
|
+
ref_key: "container",
|
32
|
+
ref: o,
|
33
|
+
class: N(["bb-common-input-inner-container", {
|
34
|
+
"bb-common-input-inner-container--clearable": p.clearable
|
35
|
+
}]),
|
36
|
+
onClick: _
|
37
|
+
}, [
|
38
|
+
n(e.$slots, "prepend", {}, () => [
|
39
|
+
m("span", E, [
|
40
|
+
n(e.$slots, "prefix")
|
41
|
+
])
|
42
|
+
]),
|
43
|
+
e.$props["prepend:icon"] ? (t(), s(i(u), {
|
44
|
+
key: 0,
|
45
|
+
class: "bb-common-input-inner-container__prepend-icon",
|
46
|
+
type: e.$props["prepend:icon"]
|
47
|
+
}, null, 8, ["type"])) : l("", !0),
|
48
|
+
n(e.$slots, "default"),
|
49
|
+
a(B, {
|
50
|
+
"aria-hidden": !e.clearable,
|
51
|
+
tabindex: e.clearable ? 0 : -1,
|
52
|
+
onClick: $
|
53
|
+
}, null, 8, ["aria-hidden", "tabindex"]),
|
54
|
+
e.$props["append:icon"] ? (t(), s(i(u), {
|
55
|
+
key: 1,
|
56
|
+
class: "bb-common-input-inner-container__append-icon",
|
57
|
+
type: e.$props["append:icon"]
|
58
|
+
}, null, 8, ["type"])) : l("", !0),
|
59
|
+
a(v),
|
60
|
+
a(i(h)),
|
61
|
+
n(e.$slots, "append", {}, () => [
|
62
|
+
m("span", I, [
|
63
|
+
n(e.$slots, "suffix")
|
64
|
+
])
|
65
|
+
])
|
66
|
+
], 2));
|
67
|
+
}
|
68
|
+
});
|
69
|
+
export {
|
70
|
+
R as default
|
71
|
+
};
|
package/dist/index233.js
CHANGED
@@ -1,18 +1,15 @@
|
|
1
|
-
import {
|
2
|
-
|
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 { createElementBlock as t, openBlock as n, renderSlot as e } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
import r from "./index298.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]]);
|
16
13
|
export {
|
17
|
-
|
14
|
+
i as default
|
18
15
|
};
|