bitboss-ui 2.0.105 → 2.0.107
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/BaseDialog/BaseDialog.vue.d.ts +0 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -7
- package/dist/components/BbAlert/BbAlert.vue.d.ts +0 -1
- package/dist/components/BbChip/BbChip.vue.d.ts +0 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
- package/dist/components/BbRows/BbRows.vue.d.ts +1 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
- package/dist/components/BbTable/types.d.ts +13 -0
- package/dist/components/ListBox.vue.d.ts +0 -2
- package/dist/composables/useLocale.d.ts +1 -1
- package/dist/i18n/en.d.ts +45 -0
- package/dist/i18n/it.d.ts +45 -0
- package/dist/index100.js +46 -45
- package/dist/index111.js +223 -205
- package/dist/index119.js +2 -2
- package/dist/index121.js +55 -54
- package/dist/index123.js +1 -1
- package/dist/index125.js +14 -13
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +36 -35
- package/dist/index17.js +3 -3
- package/dist/index19.js +63 -64
- package/dist/index207.js +8 -2
- package/dist/index208.js +3 -4
- package/dist/index209.js +53 -2
- package/dist/index21.js +110 -103
- package/dist/index211.js +13 -16
- package/dist/index212.js +3 -16
- package/dist/index213.js +40 -18
- package/dist/index214.js +6 -19
- package/dist/index215.js +7 -27
- package/dist/index216.js +12 -3
- package/dist/index217.js +13 -2
- package/dist/index218.js +2 -8
- package/dist/index219.js +4 -250
- package/dist/index220.js +2 -52
- package/dist/index221.js +3 -44
- package/dist/index222.js +20 -5
- package/dist/index223.js +4 -60
- package/dist/index224.js +281 -84
- package/dist/index225.js +18 -0
- package/dist/index226.js +16 -8
- package/dist/index227.js +18 -24
- package/dist/index228.js +14 -16
- package/dist/index229.js +18 -47
- package/dist/index23.js +127 -119
- package/dist/index230.js +27 -15
- package/dist/index231.js +2 -12
- package/dist/index232.js +250 -16
- package/dist/index233.js +52 -3
- package/dist/index234.js +44 -41
- package/dist/index235.js +5 -6
- package/dist/index236.js +60 -7
- package/dist/index237.js +126 -12
- package/dist/index238.js +124 -52
- package/dist/index239.js +4 -0
- package/dist/index240.js +4 -12
- package/dist/index241.js +369 -3
- package/dist/index242.js +85 -125
- package/dist/index244.js +25 -2
- package/dist/index245.js +16 -19
- package/dist/index246.js +48 -5
- package/dist/index247.js +12 -366
- package/dist/index248.js +12 -4
- package/dist/index249.js +16 -2
- package/dist/index25.js +44 -41
- package/dist/index250.js +2 -2
- package/dist/index251.js +18 -2
- package/dist/index252.js +105 -17
- package/dist/{index255.js → index254.js} +2 -2
- package/dist/index256.js +14 -0
- package/dist/index257.js +2 -12
- package/dist/index258.js +2 -10
- package/dist/index259.js +9 -2
- package/dist/index260.js +3 -6
- package/dist/index261.js +8 -15
- package/dist/index262.js +23 -9
- package/dist/index263.js +88 -8
- package/dist/index265.js +6 -89
- package/dist/index266.js +18 -0
- package/dist/index267.js +9 -4
- package/dist/index268.js +9 -6
- package/dist/index269.js +8 -2
- package/dist/index27.js +1 -1
- package/dist/index270.js +28 -2
- package/dist/index271.js +3 -2
- package/dist/index273.js +7 -2
- package/dist/index274.js +431 -2
- package/dist/index275.js +1 -1
- package/dist/index276.js +89 -2
- package/dist/index277.js +7 -2
- package/dist/index278.js +11 -2
- package/dist/index279.js +4 -28
- package/dist/index280.js +224 -22
- package/dist/index281.js +202 -0
- package/dist/index282.js +175 -6
- package/dist/index283.js +6 -3
- package/dist/index284.js +2 -7
- package/dist/index285.js +2 -11
- package/dist/index286.js +2 -17
- package/dist/index287.js +2 -9
- package/dist/index288.js +2 -431
- package/dist/index289.js +2 -2
- package/dist/index29.js +2 -2
- package/dist/index290.js +2 -89
- package/dist/index291.js +2 -3
- package/dist/index292.js +4 -0
- package/dist/index293.js +2 -224
- package/dist/index294.js +2 -200
- package/dist/index295.js +22 -2
- package/dist/index297.js +2 -176
- package/dist/index298.js +125 -21
- package/dist/index299.js +24 -0
- package/dist/index301.js +3 -436
- package/dist/index302.js +16 -126
- package/dist/index303.js +436 -3
- package/dist/index304.js +127 -3
- package/dist/index305.js +3 -213
- package/dist/index306.js +3 -3
- package/dist/index307.js +214 -3
- package/dist/index308.js +3 -58
- package/dist/index309.js +3 -7
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -19
- package/dist/index311.js +56 -64
- package/dist/index312.js +2 -7
- package/dist/index313.js +67 -2
- package/dist/index314.js +5 -5
- package/dist/index315.js +32 -7
- package/dist/index316.js +7 -8
- package/dist/index317.js +18 -7
- package/dist/index318.js +53 -5
- package/dist/index319.js +53 -3
- package/dist/index320.js +46 -3
- package/dist/index321.js +6 -32
- package/dist/index322.js +4 -46
- package/dist/index323.js +8 -2
- package/dist/index324.js +2 -2
- package/dist/index325.js +6 -0
- package/dist/index326.js +2 -424
- package/dist/index328.js +424 -2
- package/dist/index33.js +45 -45
- package/dist/index35.js +56 -55
- package/dist/index37.js +166 -165
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +70 -71
- package/dist/index45.js +7 -7
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index53.js +28 -27
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +32 -31
- package/dist/index75.js +3 -3
- package/dist/index77.js +87 -86
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +45 -44
- package/dist/index86.js +67 -66
- package/dist/index88.js +69 -67
- package/package.json +1 -1
- package/dist/index210.js +0 -283
- package/dist/index243.js +0 -127
- package/dist/index253.js +0 -108
- package/dist/index264.js +0 -25
- package/dist/index296.js +0 -128
- package/dist/index300.js +0 -10
- /package/dist/{index327.js → index329.js} +0 -0
- /package/dist/{index272.js → index330.js} +0 -0
package/dist/index119.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as l, openBlock as e, createBlock as o, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
|
2
2
|
import { state as k, useToast as b } from "./index11.js";
|
3
|
-
import C from "./
|
4
|
-
import B from "./
|
3
|
+
import C from "./index216.js";
|
4
|
+
import B from "./index313.js";
|
5
5
|
const V = /* @__PURE__ */ l({
|
6
6
|
__name: "BbToast",
|
7
7
|
props: {
|
package/dist/index121.js
CHANGED
@@ -1,15 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useFloating as
|
3
|
-
import { useId as
|
4
|
-
import { wait as
|
5
|
-
import
|
1
|
+
import { defineComponent as V, ref as a, watch as H, computed as z, openBlock as B, createElementBlock as I, mergeProps as R, createElementVNode as c, renderSlot as E, normalizeProps as S, guardReactiveProps as U, unref as u, createVNode as W, withCtx as C, createBlock as j, createCommentVNode as q } from "vue";
|
2
|
+
import { useFloating as A, arrow as G } from "./index237.js";
|
3
|
+
import { useId as J } from "./index8.js";
|
4
|
+
import { wait as L } from "./index130.js";
|
5
|
+
import K from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { throttle as m } from "./
|
8
|
-
import { waitFor as
|
9
|
-
import
|
7
|
+
import { throttle as m } from "./index212.js";
|
8
|
+
import { waitFor as Q } from "./index214.js";
|
9
|
+
import X from "./index263.js";
|
10
10
|
/* empty css */
|
11
|
-
import {
|
12
|
-
|
11
|
+
import { useLocale as Y } from "./index217.js";
|
12
|
+
import { autoUpdate as Z, flip as x, shift as ee, hide as te } from "./index241.js";
|
13
|
+
const me = /* @__PURE__ */ V({
|
13
14
|
__name: "BbTooltip",
|
14
15
|
props: {
|
15
16
|
arrowPadding: { default: 10 },
|
@@ -24,75 +25,75 @@ const pe = /* @__PURE__ */ N({
|
|
24
25
|
theme: { default: "default" },
|
25
26
|
transitionDuration: { default: 250 }
|
26
27
|
},
|
27
|
-
setup(
|
28
|
-
const t = D, v = `bb_${t.id ??
|
28
|
+
setup(_) {
|
29
|
+
const t = _, { t: D } = Y(), v = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), M = a(), { placement: b, middlewareData: P } = A(s, d, {
|
29
30
|
placement: t.placement,
|
30
|
-
whileElementsMounted:
|
31
|
+
whileElementsMounted: Z,
|
31
32
|
middleware: [
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
element:
|
33
|
+
x(),
|
34
|
+
ee({ padding: t.padding }),
|
35
|
+
G({
|
36
|
+
element: M,
|
36
37
|
padding: t.arrowPadding
|
37
38
|
}),
|
38
|
-
|
39
|
+
te()
|
39
40
|
]
|
40
41
|
});
|
41
42
|
let w = () => {
|
42
43
|
};
|
43
|
-
const g = a(!0), n = a(!1), r = a(!1),
|
44
|
-
r.value || n.value || t.disabled || (
|
45
|
-
},
|
44
|
+
const g = a(!0), n = a(!1), r = a(!1), l = a(!1), p = a(!0), h = () => {
|
45
|
+
r.value || n.value || t.disabled || (T(), document.addEventListener("mouseover", k, { passive: !0 }), document.addEventListener("keydown", y, { passive: !0 }));
|
46
|
+
}, $ = h, k = m((e) => {
|
46
47
|
const o = e.target;
|
47
48
|
if (o && o instanceof HTMLElement) {
|
48
49
|
let f = !0;
|
49
|
-
s.value && s.value.contains(o) && (f = !1),
|
50
|
+
s.value && s.value.contains(o) && (f = !1), d.value && d.value.contains(o) && (f = !1), f && i();
|
50
51
|
}
|
51
52
|
}, t.transitionDuration), y = (e) => {
|
52
|
-
r.value && e.key === "Escape" &&
|
53
|
-
},
|
54
|
-
g.value = !1,
|
55
|
-
},
|
56
|
-
g.value && (
|
53
|
+
r.value && e.key === "Escape" && i();
|
54
|
+
}, O = () => {
|
55
|
+
g.value = !1, i();
|
56
|
+
}, F = a(!1), T = m(async () => {
|
57
|
+
g.value && (F.value = !0, p.value = !1, l.value = !1, n.value = !0, await L(50), r.value = !0, n.value = !1, w = H(
|
57
58
|
() => {
|
58
59
|
var e;
|
59
|
-
return (e =
|
60
|
+
return (e = P.value.hide) == null ? void 0 : e.referenceHidden;
|
60
61
|
},
|
61
62
|
async (e) => {
|
62
|
-
!
|
63
|
+
!l.value && !p.value && e && await i();
|
63
64
|
}
|
64
65
|
));
|
65
|
-
}, t.transitionDuration),
|
66
|
-
await
|
67
|
-
}, t.transitionDuration),
|
66
|
+
}, t.transitionDuration), i = m(async () => {
|
67
|
+
await Q(() => !n.value), document.removeEventListener("mouseover", k), document.removeEventListener("keydown", y), r.value = !1, n.value = !1, l.value = !0, await L(t.transitionDuration), l.value = !1, p.value = !0, w();
|
68
|
+
}, t.transitionDuration), N = z(() => ({
|
68
69
|
class: {
|
69
70
|
"bb-tooltip--block": t.block,
|
70
71
|
[`bb-tooltip--${t.theme}`]: t.theme
|
71
72
|
}
|
72
73
|
}));
|
73
|
-
return (e, o) => (B(),
|
74
|
-
|
74
|
+
return (e, o) => (B(), I("span", R({ class: "bb-tooltip" }, N.value), [
|
75
|
+
c("span", {
|
75
76
|
ref_key: "wrapper",
|
76
77
|
ref: s,
|
77
78
|
class: "bb-tooltip__wrapper"
|
78
79
|
}, [
|
79
|
-
|
80
|
+
E(e.$slots, "activator", S(U({
|
80
81
|
props: {
|
81
82
|
"aria-describedby": v,
|
82
83
|
onMouseenter: h,
|
83
|
-
onFocus:
|
84
|
-
onBlur:
|
84
|
+
onFocus: u($),
|
85
|
+
onBlur: u(i),
|
85
86
|
disabled: e.disabled
|
86
87
|
},
|
87
|
-
closed:
|
88
|
-
closing:
|
88
|
+
closed: p.value,
|
89
|
+
closing: l.value,
|
89
90
|
disabled: e.disabled,
|
90
91
|
open: r.value,
|
91
92
|
opening: n.value,
|
92
|
-
placement:
|
93
|
+
placement: u(b)
|
93
94
|
})))
|
94
95
|
], 512),
|
95
|
-
|
96
|
+
W(X, {
|
96
97
|
"arrow-padding": e.arrowPadding,
|
97
98
|
"base-class": "bb-tooltip",
|
98
99
|
"container-attributes": {
|
@@ -102,32 +103,32 @@ const pe = /* @__PURE__ */ N({
|
|
102
103
|
offset: e.offset,
|
103
104
|
open: r.value,
|
104
105
|
padding: e.padding,
|
105
|
-
placement:
|
106
|
+
placement: u(b),
|
106
107
|
theme: e.theme,
|
107
108
|
"transition-duration": e.transitionDuration,
|
108
109
|
wrapper: s.value
|
109
110
|
}, {
|
110
|
-
default:
|
111
|
-
|
111
|
+
default: C(() => [
|
112
|
+
c("span", {
|
112
113
|
ref_key: "content",
|
113
|
-
ref:
|
114
|
+
ref: d,
|
114
115
|
class: "bb-tooltip__content"
|
115
116
|
}, [
|
116
|
-
e.showClose ? (B(),
|
117
|
+
e.showClose ? (B(), j(K, {
|
117
118
|
key: 0,
|
118
119
|
"aria-hidden": "true",
|
119
|
-
"aria-label": "
|
120
|
+
"aria-label": u(D)("common.closeLabel").value,
|
120
121
|
class: "bb-tooltip__close",
|
121
122
|
tabindex: "-1",
|
122
|
-
onClick:
|
123
|
+
onClick: O
|
123
124
|
}, {
|
124
|
-
default:
|
125
|
-
|
125
|
+
default: C(() => o[0] || (o[0] = [
|
126
|
+
c("svg", {
|
126
127
|
fill: "none",
|
127
128
|
viewBox: "0 0 24 24",
|
128
129
|
xmlns: "http://www.w3.org/2000/svg"
|
129
130
|
}, [
|
130
|
-
|
131
|
+
c("path", {
|
131
132
|
d: "M23 23L1 1M23 1L1 23",
|
132
133
|
stroke: "currentColor",
|
133
134
|
"stroke-linecap": "round",
|
@@ -136,8 +137,8 @@ const pe = /* @__PURE__ */ N({
|
|
136
137
|
], -1)
|
137
138
|
])),
|
138
139
|
_: 1
|
139
|
-
})) :
|
140
|
-
|
140
|
+
}, 8, ["aria-label"])) : q("", !0),
|
141
|
+
E(e.$slots, "default")
|
141
142
|
], 512)
|
142
143
|
]),
|
143
144
|
_: 3
|
@@ -146,5 +147,5 @@ const pe = /* @__PURE__ */ N({
|
|
146
147
|
}
|
147
148
|
});
|
148
149
|
export {
|
149
|
-
|
150
|
+
me as default
|
150
151
|
};
|
package/dist/index123.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
|
2
|
-
import { flattenTree as T } from "./
|
2
|
+
import { flattenTree as T } from "./index314.js";
|
3
3
|
const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
|
4
4
|
__name: "BbTree",
|
5
5
|
props: {
|
package/dist/index125.js
CHANGED
@@ -1,28 +1,29 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
|
1
|
+
import { defineComponent as i, openBlock as o, createElementBlock as a, createElementVNode as t, renderSlot as p, createTextVNode as b, toDisplayString as m, unref as u, withModifiers as d, createCommentVNode as _ } from "vue";
|
2
|
+
import { useLocale as f } from "./index217.js";
|
3
|
+
const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
|
3
4
|
__name: "BbChip",
|
4
5
|
props: {
|
5
6
|
text: {},
|
6
7
|
clearable: { type: Boolean, default: !0 },
|
7
|
-
clearableLabel: {
|
8
|
+
clearableLabel: {}
|
8
9
|
},
|
9
10
|
emits: ["click:clear"],
|
10
|
-
setup(
|
11
|
-
const n = r, s = (e) => {
|
11
|
+
setup(w, { emit: r }) {
|
12
|
+
const n = r, { t: s } = f(), c = (e) => {
|
12
13
|
n("click:clear", e);
|
13
14
|
};
|
14
|
-
return (e, l) => (o(), a("span",
|
15
|
-
t("span",
|
16
|
-
|
17
|
-
|
15
|
+
return (e, l) => (o(), a("span", h, [
|
16
|
+
t("span", L, [
|
17
|
+
p(e.$slots, "default", {}, () => [
|
18
|
+
b(m(e.text), 1)
|
18
19
|
])
|
19
20
|
]),
|
20
21
|
e.clearable ? (o(), a("button", {
|
21
22
|
key: 0,
|
22
|
-
"aria-label": e.clearableLabel,
|
23
|
+
"aria-label": e.clearableLabel || u(s)("chip.clearLabel").value,
|
23
24
|
class: "bb-chip__clear-button",
|
24
25
|
type: "button",
|
25
|
-
onClick: d(
|
26
|
+
onClick: d(c, ["stop", "prevent"])
|
26
27
|
}, l[0] || (l[0] = [
|
27
28
|
t("svg", {
|
28
29
|
viewBox: "0 0 24 24",
|
@@ -33,10 +34,10 @@ const u = { class: "bb-chip" }, _ = { class: "bb-chip__content" }, f = ["aria-la
|
|
33
34
|
fill: "currentColor"
|
34
35
|
})
|
35
36
|
], -1)
|
36
|
-
]), 8,
|
37
|
+
]), 8, k)) : _("", !0)
|
37
38
|
]));
|
38
39
|
}
|
39
40
|
});
|
40
41
|
export {
|
41
|
-
|
42
|
+
B as default
|
42
43
|
};
|
package/dist/index127.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, openBlock as h, createElementBlock as $, mergeProps as g } from "vue";
|
2
|
-
import { isCssColor as I } from "./
|
2
|
+
import { isCssColor as I } from "./index218.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index128.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
|
2
|
-
import { throttle as g } from "./
|
2
|
+
import { throttle as g } from "./index212.js";
|
3
3
|
const O = /* @__PURE__ */ v({
|
4
4
|
__name: "BbSmoothHeight",
|
5
5
|
props: {
|
package/dist/index129.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
|
2
|
-
import { isCssColor as u } from "./
|
2
|
+
import { isCssColor as u } from "./index218.js";
|
3
3
|
const f = /* @__PURE__ */ p({
|
4
4
|
__name: "BbSpinner",
|
5
5
|
props: {
|
package/dist/index13.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as h, getCurrentInstance as p, shallowRef as C, watch as x, computed as d, openBlock as S, createBlock as L, resolveDynamicComponent as B, unref as N, mergeProps as $, withCtx as F, renderSlot as w, createTextVNode as A, toDisplayString as P, resolveComponent as f } from "vue";
|
2
2
|
import { _config as a } from "./index4.js";
|
3
|
-
import { useLogger as m } from "./
|
4
|
-
import { hash as v } from "./
|
3
|
+
import { useLogger as m } from "./index207.js";
|
4
|
+
import { hash as v } from "./index208.js";
|
5
5
|
const q = /* @__PURE__ */ h({
|
6
6
|
__name: "BaseButton",
|
7
7
|
props: {
|
package/dist/index133.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { isArray as p } from "./
|
2
|
-
import { isPlainObject as c } from "./
|
1
|
+
import { isArray as p } from "./index322.js";
|
2
|
+
import { isPlainObject as c } from "./index323.js";
|
3
3
|
function i(e, n, u, l, r) {
|
4
4
|
const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
|
5
5
|
o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
|
package/dist/index15.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
1
|
+
import { defineComponent as v, ref as h, computed as g, watchPostEffect as C, openBlock as w, createElementBlock as B, Fragment as V, createVNode as t, normalizeClass as H, withCtx as n, renderSlot as l, createElementVNode as s, normalizeStyle as E, withModifiers as q, withDirectives as I, mergeProps as $, unref as d } from "vue";
|
2
|
+
import M from "./index209.js";
|
3
3
|
/* empty css */
|
4
|
-
import
|
5
|
-
import { vMaska as
|
6
|
-
import { isHex as D } from "./
|
7
|
-
|
4
|
+
import L from "./index211.js";
|
5
|
+
import { vMaska as z } from "./index222.js";
|
6
|
+
import { isHex as D } from "./index223.js";
|
7
|
+
import { useLocale as F } from "./index217.js";
|
8
|
+
const P = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], N = ["aria-invalid", "aria-label", "disabled", "required"], J = /* @__PURE__ */ v({
|
8
9
|
__name: "BaseColorInput",
|
9
10
|
props: {
|
10
11
|
"append:icon": {},
|
@@ -24,15 +25,15 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
24
25
|
required: { type: Boolean }
|
25
26
|
},
|
26
27
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
27
|
-
setup(
|
28
|
-
const a =
|
28
|
+
setup(p, { emit: u }) {
|
29
|
+
const a = p, o = u, { t: c } = F(), i = h(), m = g(() => ({
|
29
30
|
"bb-base-color-input": !0,
|
30
31
|
"bb-base-color-input--disabled": a.disabled,
|
31
32
|
"bb-base-color-input--errors": a.hasErrors,
|
32
33
|
"bb-base-color-input--loading": a.loading,
|
33
34
|
"bb-base-color-input--readonly": a.readonly,
|
34
35
|
"bb-base-color-input--compact": a.compact
|
35
|
-
})),
|
36
|
+
})), b = {
|
36
37
|
onBlur: (e) => o("blur", e),
|
37
38
|
onChange: (e) => o("change", e),
|
38
39
|
onClick: (e) => o("click", e),
|
@@ -44,57 +45,57 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
44
45
|
onMousedown: (e) => o("mousedown", e),
|
45
46
|
onMouseup: (e) => o("mouseup", e),
|
46
47
|
onMaska: (e) => {
|
47
|
-
const
|
48
|
-
D(
|
48
|
+
const r = e.detail;
|
49
|
+
D(r.masked) ? o("update:modelValue", r.masked) : r.masked === "" && o("update:modelValue", null);
|
49
50
|
}
|
50
|
-
},
|
51
|
+
}, f = () => {
|
51
52
|
var e;
|
52
53
|
(e = i.value) == null || e.click();
|
53
|
-
},
|
54
|
+
}, k = {
|
54
55
|
mask: "!#HHHHHH",
|
55
56
|
tokens: {
|
56
57
|
H: { pattern: /[0-9a-fA-F]/ }
|
57
58
|
},
|
58
59
|
eager: !0
|
59
|
-
},
|
60
|
+
}, y = (e) => {
|
60
61
|
e.target instanceof HTMLInputElement && o("update:modelValue", e.target.value);
|
61
62
|
};
|
62
|
-
return
|
63
|
+
return C(() => {
|
63
64
|
i.value && (i.value.value = a.modelValue ?? "");
|
64
|
-
}), (e,
|
65
|
-
|
66
|
-
class:
|
65
|
+
}), (e, r) => (w(), B(V, null, [
|
66
|
+
t(L, {
|
67
|
+
class: H(m.value)
|
67
68
|
}, {
|
68
69
|
"prepend-outer": n(() => [
|
69
|
-
|
70
|
+
l(e.$slots, "prepend-outer")
|
70
71
|
]),
|
71
72
|
"append-outer": n(() => [
|
72
|
-
|
73
|
+
l(e.$slots, "append-outer")
|
73
74
|
]),
|
74
75
|
default: n(() => [
|
75
|
-
|
76
|
+
t(M, {
|
76
77
|
"append:icon": a["append:icon"],
|
77
78
|
"prepend:icon": a["prepend:icon"]
|
78
79
|
}, {
|
79
80
|
prepend: n(() => [
|
80
|
-
|
81
|
+
l(e.$slots, "prepend")
|
81
82
|
]),
|
82
83
|
prefix: n(() => [
|
83
|
-
|
84
|
+
l(e.$slots, "prefix")
|
84
85
|
]),
|
85
86
|
append: n(() => [
|
86
87
|
s("span", {
|
87
88
|
class: "bb-base-color-input__indicator",
|
88
|
-
style:
|
89
|
-
onClick:
|
89
|
+
style: E({ backgroundColor: a.modelValue ?? void 0 }),
|
90
|
+
onClick: q(f, ["stop"])
|
90
91
|
}, null, 4),
|
91
|
-
|
92
|
+
l(e.$slots, "append")
|
92
93
|
]),
|
93
94
|
suffix: n(() => [
|
94
|
-
|
95
|
+
l(e.$slots, "suffix")
|
95
96
|
]),
|
96
97
|
default: n(() => [
|
97
|
-
|
98
|
+
I(s("input", $(b, {
|
98
99
|
id: e.id,
|
99
100
|
ref: "input",
|
100
101
|
"aria-describedby": e.ariaDescribedby,
|
@@ -109,32 +110,32 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
109
110
|
required: e.required,
|
110
111
|
size: "1",
|
111
112
|
value: e.modelValue
|
112
|
-
}), null, 16,
|
113
|
-
[
|
113
|
+
}), null, 16, P), [
|
114
|
+
[d(z), k]
|
114
115
|
]),
|
115
116
|
s("input", {
|
116
117
|
ref_key: "picker",
|
117
118
|
ref: i,
|
118
119
|
"aria-hidden": "true",
|
119
120
|
"aria-invalid": e.hasErrors ? !0 : void 0,
|
120
|
-
"aria-label": "
|
121
|
+
"aria-label": d(c)("colorInput.paletteLabel").value,
|
121
122
|
class: "bb-base-color-input__picker",
|
122
123
|
disabled: e.disabled || e.readonly,
|
123
124
|
required: e.required,
|
124
125
|
tabindex: "-1",
|
125
126
|
type: "color",
|
126
|
-
onInput:
|
127
|
-
}, null, 40,
|
127
|
+
onInput: y
|
128
|
+
}, null, 40, N)
|
128
129
|
]),
|
129
130
|
_: 3
|
130
131
|
}, 8, ["append:icon", "prepend:icon"])
|
131
132
|
]),
|
132
133
|
_: 3
|
133
134
|
}, 8, ["class"]),
|
134
|
-
|
135
|
+
r[0] || (r[0] = s("span", null, null, -1))
|
135
136
|
], 64));
|
136
137
|
}
|
137
138
|
});
|
138
139
|
export {
|
139
|
-
|
140
|
+
J as default
|
140
141
|
};
|
package/dist/index17.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as l, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
3
|
-
import { when as N } from "./
|
4
|
-
import { booleanishToBoolean as S } from "./
|
2
|
+
import { isCssColor as y } from "./index218.js";
|
3
|
+
import { when as N } from "./index219.js";
|
4
|
+
import { booleanishToBoolean as S } from "./index220.js";
|
5
5
|
const A = {
|
6
6
|
"aria-hidden": "true",
|
7
7
|
class: "bb-base-checkbox-container"
|