bitboss-ui 2.0.95 → 2.0.96
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/BaseCheckbox/BaseCheckbox.vue.d.ts +1 -1
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +5 -1
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +9 -4
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +2 -0
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +4 -0
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +4 -0
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +5 -1
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +1 -1
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
- package/dist/components/BaseRating/BaseRating.vue.d.ts +1 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +7 -0
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +1 -1
- package/dist/components/BaseTag/BaseTag.vue.d.ts +6 -1
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +5 -1
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +5 -1
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +5 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +5 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +7 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +5 -1
- package/dist/components/BbRating/BbRating.vue.d.ts +5 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
- package/dist/components/BbSlider/BbSlider.vue.d.ts +5 -1
- package/dist/components/BbTable/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +5 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +5 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +5 -1
- package/dist/components/ListBox.vue.d.ts +4 -0
- package/dist/index100.js +4 -4
- package/dist/index101.js +18 -15
- package/dist/index103.js +11 -9
- package/dist/index105.js +10 -10
- package/dist/index107.js +16 -14
- package/dist/index111.js +7 -7
- package/dist/index113.js +12 -9
- package/dist/index115.js +27 -24
- package/dist/index117.js +27 -24
- package/dist/index119.js +2 -2
- package/dist/index121.js +4 -4
- package/dist/index123.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +1 -1
- package/dist/index133.js +2 -2
- package/dist/index134.js +2 -2
- package/dist/index15.js +24 -22
- package/dist/index17.js +15 -16
- package/dist/index19.js +57 -51
- package/dist/index206.js +81 -2
- package/dist/index207.js +2 -81
- package/dist/index208.js +6 -51
- package/dist/index209.js +128 -0
- package/dist/index21.js +77 -72
- package/dist/index210.js +5 -13
- package/dist/index211.js +124 -19
- package/dist/index212.js +19 -4
- package/dist/index213.js +16 -5
- package/dist/index214.js +10 -10
- package/dist/index215.js +2 -16
- package/dist/index216.js +2 -19
- package/dist/index217.js +40 -18
- package/dist/index218.js +19 -26
- package/dist/index219.js +6 -3
- package/dist/index220.js +53 -2
- package/dist/index222.js +13 -249
- package/dist/index223.js +5 -52
- package/dist/index224.js +10 -42
- package/dist/index225.js +369 -5
- package/dist/index226.js +18 -59
- package/dist/index227.js +27 -2
- package/dist/index228.js +3 -4
- package/dist/index229.js +250 -2
- package/dist/index23.js +28 -26
- package/dist/index230.js +52 -3
- package/dist/index231.js +44 -41
- package/dist/index232.js +5 -6
- package/dist/index233.js +60 -7
- package/dist/index234.js +164 -12
- package/dist/index235.js +84 -164
- package/dist/index237.js +5 -0
- package/dist/index238.js +7 -126
- package/dist/index239.js +2 -125
- package/dist/index240.js +4 -2
- package/dist/index241.js +2 -5
- package/dist/index242.js +3 -368
- package/dist/index243.js +1 -1
- package/dist/index244.js +2 -2
- package/dist/index245.js +17 -105
- package/dist/index246.js +108 -0
- package/dist/{index247.js → index248.js} +1 -1
- package/dist/index25.js +6 -6
- package/dist/index250.js +2 -18
- package/dist/index255.js +4 -4
- package/dist/index257.js +6 -9
- package/dist/index258.js +16 -6
- package/dist/index259.js +9 -16
- package/dist/index260.js +9 -3
- package/dist/index261.js +10 -0
- package/dist/index262.js +3 -7
- package/dist/index263.js +11 -175
- package/dist/index264.js +8 -280
- package/dist/index265.js +17 -6
- package/dist/index266.js +4 -2
- package/dist/index267.js +281 -2
- package/dist/index268.js +6 -2
- package/dist/index269.js +2 -2
- package/dist/index27.js +8 -6
- package/dist/index272.js +2 -2
- package/dist/index273.js +2 -2
- package/dist/index274.js +2 -2
- package/dist/index275.js +1 -1
- package/dist/index276.js +2 -28
- package/dist/index277.js +1 -21
- package/dist/index278.js +4 -0
- package/dist/index279.js +28 -4
- package/dist/index280.js +20 -429
- package/dist/index282.js +6 -88
- package/dist/index283.js +2 -3
- package/dist/index284.js +126 -12
- package/dist/index285.js +429 -7
- package/dist/index286.js +176 -9
- package/dist/index287.js +3 -17
- package/dist/index289.js +21 -199
- package/dist/index29.js +11 -9
- package/dist/index291.js +2 -126
- package/dist/index292.js +4 -22
- package/dist/index293.js +202 -0
- package/dist/index294.js +436 -8
- package/dist/index295.js +121 -218
- package/dist/index296.js +81 -428
- package/dist/index297.js +218 -121
- package/dist/index298.js +1 -1
- package/dist/index299.js +1 -1
- package/dist/index300.js +23 -21
- package/dist/index301.js +65 -2
- package/dist/index302.js +5 -33
- package/dist/index303.js +2 -5
- package/dist/index304.js +3 -8
- package/dist/index308.js +11 -2
- package/dist/index309.js +6 -6
- package/dist/index31.js +6 -6
- package/dist/index310.js +18 -65
- package/dist/index311.js +7 -5
- package/dist/index312.js +32 -6
- package/dist/index313.js +45 -17
- package/dist/index314.js +4 -10
- package/dist/index315.js +7 -3
- package/dist/index316.js +2 -47
- package/dist/index317.js +4 -480
- package/dist/index318.js +482 -0
- package/dist/index33.js +12 -12
- package/dist/index35.js +35 -35
- package/dist/index37.js +58 -54
- package/dist/index39.js +5 -5
- package/dist/index41.js +3 -3
- package/dist/index43.js +3 -3
- package/dist/index45.js +46 -44
- package/dist/index47.js +31 -29
- package/dist/index49.js +18 -16
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index63.js +9 -9
- package/dist/index65.js +11 -9
- package/dist/index67.js +24 -21
- package/dist/index71.js +8 -5
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index82.js +24 -21
- package/dist/index84.js +3 -3
- package/dist/index86.js +1 -1
- package/dist/index88.js +3 -3
- package/dist/index90.js +1 -1
- package/dist/index92.js +6 -6
- package/dist/index94.js +11 -9
- package/dist/index96.js +13 -11
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +1 -1
- package/package.json +2 -2
- package/dist/index221.js +0 -10
- package/dist/index236.js +0 -86
- package/dist/index249.js +0 -4
- package/dist/index281.js +0 -4
- package/dist/index288.js +0 -6
- package/dist/index290.js +0 -4
- package/dist/index319.js +0 -4
package/dist/index134.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { isArray as p } from "./
|
2
|
-
import { isPlainObject as c } from "./
|
1
|
+
import { isArray as p } from "./index314.js";
|
2
|
+
import { isPlainObject as c } from "./index315.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,9 +1,9 @@
|
|
1
|
-
import { defineComponent as k, ref as y, computed as v, watchPostEffect as h, openBlock as g, createElementBlock as C, Fragment as w, createVNode as d, normalizeClass as
|
2
|
-
import z from "./
|
1
|
+
import { defineComponent as k, ref as y, computed as v, watchPostEffect as h, openBlock as g, createElementBlock as C, Fragment as w, createVNode as d, normalizeClass as B, withCtx as n, renderSlot as r, createElementVNode as s, normalizeStyle as V, withModifiers as H, withDirectives as E, mergeProps as q, unref as $ } from "vue";
|
2
|
+
import z from "./index220.js";
|
3
3
|
/* empty css */
|
4
|
-
import I from "./
|
5
|
-
import { vMaska as M } from "./
|
6
|
-
import { isHex as D } from "./
|
4
|
+
import I from "./index222.js";
|
5
|
+
import { vMaska as M } from "./index218.js";
|
6
|
+
import { isHex as D } from "./index242.js";
|
7
7
|
const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], P = ["aria-invalid", "disabled", "required"], T = /* @__PURE__ */ k({
|
8
8
|
__name: "BaseColorInput",
|
9
9
|
props: {
|
@@ -11,6 +11,7 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
11
11
|
ariaDescribedby: {},
|
12
12
|
autocomplete: {},
|
13
13
|
autofocus: {},
|
14
|
+
compact: { type: Boolean },
|
14
15
|
disabled: { type: Boolean },
|
15
16
|
hasErrors: { type: Boolean },
|
16
17
|
id: {},
|
@@ -19,17 +20,18 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
19
20
|
name: {},
|
20
21
|
placeholder: {},
|
21
22
|
"prepend:icon": {},
|
22
|
-
readonly: {},
|
23
|
+
readonly: { type: Boolean },
|
23
24
|
required: { type: Boolean }
|
24
25
|
},
|
25
26
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
26
|
-
setup(t, { emit:
|
27
|
-
const a = t, o =
|
27
|
+
setup(t, { emit: p }) {
|
28
|
+
const a = t, o = p, i = y(), u = v(() => ({
|
28
29
|
"bb-base-color-input": !0,
|
29
30
|
"bb-base-color-input--disabled": a.disabled,
|
30
31
|
"bb-base-color-input--errors": a.hasErrors,
|
31
32
|
"bb-base-color-input--loading": a.loading,
|
32
|
-
"bb-base-color-input--readonly": a.readonly
|
33
|
+
"bb-base-color-input--readonly": a.readonly,
|
34
|
+
"bb-base-color-input--compact": a.compact
|
33
35
|
})), c = {
|
34
36
|
onBlur: (e) => o("blur", e),
|
35
37
|
onChange: (e) => o("change", e),
|
@@ -42,8 +44,8 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
42
44
|
onMousedown: (e) => o("mousedown", e),
|
43
45
|
onMouseup: (e) => o("mouseup", e),
|
44
46
|
onMaska: (e) => {
|
45
|
-
const
|
46
|
-
D(
|
47
|
+
const l = e.detail;
|
48
|
+
D(l.masked) ? o("update:modelValue", l.masked) : l.masked === "" && o("update:modelValue", null);
|
47
49
|
}
|
48
50
|
}, m = () => {
|
49
51
|
var e;
|
@@ -59,15 +61,15 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
59
61
|
};
|
60
62
|
return h(() => {
|
61
63
|
i.value && (i.value.value = a.modelValue ?? "");
|
62
|
-
}), (e,
|
64
|
+
}), (e, l) => (g(), C(w, null, [
|
63
65
|
d(I, {
|
64
|
-
class:
|
66
|
+
class: B(u.value)
|
65
67
|
}, {
|
66
68
|
"prepend-outer": n(() => [
|
67
|
-
|
69
|
+
r(e.$slots, "prepend-outer")
|
68
70
|
]),
|
69
71
|
"append-outer": n(() => [
|
70
|
-
|
72
|
+
r(e.$slots, "append-outer")
|
71
73
|
]),
|
72
74
|
default: n(() => [
|
73
75
|
d(z, {
|
@@ -75,21 +77,21 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
75
77
|
"prepend:icon": a["prepend:icon"]
|
76
78
|
}, {
|
77
79
|
prepend: n(() => [
|
78
|
-
|
80
|
+
r(e.$slots, "prepend")
|
79
81
|
]),
|
80
82
|
prefix: n(() => [
|
81
|
-
|
83
|
+
r(e.$slots, "prefix")
|
82
84
|
]),
|
83
85
|
append: n(() => [
|
84
86
|
s("span", {
|
85
87
|
class: "bb-base-color-input__indicator",
|
86
|
-
style:
|
87
|
-
onClick:
|
88
|
+
style: V({ backgroundColor: a.modelValue ?? void 0 }),
|
89
|
+
onClick: H(m, ["stop"])
|
88
90
|
}, null, 4),
|
89
|
-
|
91
|
+
r(e.$slots, "append")
|
90
92
|
]),
|
91
93
|
suffix: n(() => [
|
92
|
-
|
94
|
+
r(e.$slots, "suffix")
|
93
95
|
]),
|
94
96
|
default: n(() => [
|
95
97
|
E(s("input", q(c, {
|
@@ -129,7 +131,7 @@ const F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
129
131
|
]),
|
130
132
|
_: 3
|
131
133
|
}, 8, ["class"]),
|
132
|
-
|
134
|
+
l[0] || (l[0] = s("span", null, null, -1))
|
133
135
|
], 64));
|
134
136
|
}
|
135
137
|
});
|
package/dist/index17.js
CHANGED
@@ -1,8 +1,8 @@
|
|
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
|
2
|
-
import { isCssColor as y } from "./
|
3
|
-
import { when as
|
4
|
-
import { booleanishToBoolean as
|
5
|
-
const
|
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 "./index239.js";
|
3
|
+
import { when as N } from "./index240.js";
|
4
|
+
import { booleanishToBoolean as S } from "./index241.js";
|
5
|
+
const A = {
|
6
6
|
"aria-hidden": "true",
|
7
7
|
class: "bb-base-checkbox-container"
|
8
8
|
}, $ = /* @__PURE__ */ E({
|
@@ -18,7 +18,7 @@ const S = {
|
|
18
18
|
id: {},
|
19
19
|
indeterminate: {},
|
20
20
|
name: {},
|
21
|
-
readonly: {},
|
21
|
+
readonly: { type: Boolean },
|
22
22
|
required: { type: Boolean },
|
23
23
|
submitWhenFalse: { type: Boolean },
|
24
24
|
trueValue: { default: !0 },
|
@@ -26,7 +26,7 @@ const S = {
|
|
26
26
|
},
|
27
27
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
28
28
|
setup(v, { emit: V }) {
|
29
|
-
const e = v, t = V,
|
29
|
+
const e = v, t = V, s = m(null), r = n(() => e.checked ? S(e.checked) : JSON.stringify(e.trueValue) === JSON.stringify(e.modelValue)), u = m(!1), x = n(() => {
|
30
30
|
const a = {
|
31
31
|
class: {
|
32
32
|
"bb-base-checkbox": !0,
|
@@ -38,7 +38,7 @@ const S = {
|
|
38
38
|
}
|
39
39
|
};
|
40
40
|
return e.color && y(e.color) && (a.style = `--color: ${e.color}`), a;
|
41
|
-
}), d =
|
41
|
+
}), d = N(
|
42
42
|
(a) => typeof a != "string",
|
43
43
|
JSON.stringify
|
44
44
|
), g = n(() => {
|
@@ -94,28 +94,27 @@ const S = {
|
|
94
94
|
name: e.name,
|
95
95
|
parsedValue: b.value.value,
|
96
96
|
readonly: e.readonly,
|
97
|
-
required: e.required,
|
98
97
|
trueValue: e.trueValue,
|
99
98
|
value: r.value ? e.trueValue : e.falseValue
|
100
99
|
}));
|
101
100
|
return _(
|
102
101
|
() => [e.modelValue, e.checked, e.indeterminate],
|
103
102
|
() => {
|
104
|
-
|
103
|
+
s.value && (s.value.indeterminate = !!e.indeterminate);
|
105
104
|
}
|
106
105
|
), (a, c) => (p(), h("span", i(f(x.value)), [
|
107
106
|
!r.value && a.submitWhenFalse ? (p(), h("input", i(k({ key: 0 }, g.value)), null, 16)) : I("", !0),
|
108
|
-
|
107
|
+
l("input", k(b.value, {
|
109
108
|
ref_key: "checkboxInput",
|
110
|
-
ref:
|
109
|
+
ref: s
|
111
110
|
}), null, 16),
|
112
|
-
|
113
|
-
|
114
|
-
c[0] || (c[0] =
|
111
|
+
l("span", A, [
|
112
|
+
F(a.$slots, "icon", i(f(B.value)), () => [
|
113
|
+
c[0] || (c[0] = l("svg", {
|
115
114
|
class: "bb-base-checkbox-container__icon",
|
116
115
|
viewBox: "276.411 158.834 114.971 114.97"
|
117
116
|
}, [
|
118
|
-
|
117
|
+
l("path", {
|
119
118
|
d: "M 297.574 224.786 L 318.309 243.134 L 371.568 189.232",
|
120
119
|
fill: "none",
|
121
120
|
"stroke-linecap": "round",
|
package/dist/index19.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { defineComponent as $, ref as
|
2
|
-
import { useOptions as
|
3
|
-
import
|
1
|
+
import { defineComponent as $, ref as b, toRef as l, openBlock as w, createBlock as O, unref as h, withCtx as i, renderSlot as s, normalizeProps as m, guardReactiveProps as p, createVNode as z, mergeProps as v } from "vue";
|
2
|
+
import { useOptions as F } from "./index234.js";
|
3
|
+
import M from "./index17.js";
|
4
4
|
/* empty css */
|
5
|
-
import
|
5
|
+
import H from "./index235.js";
|
6
6
|
/* empty css */
|
7
|
-
const
|
7
|
+
const q = /* @__PURE__ */ $({
|
8
8
|
__name: "BaseCheckboxGroup",
|
9
9
|
props: {
|
10
10
|
ariaDescribedby: {},
|
@@ -27,60 +27,63 @@ const A = /* @__PURE__ */ $({
|
|
27
27
|
modelValueDebounceTime: { default: 0 },
|
28
28
|
name: {},
|
29
29
|
noDataText: { default: "Nessun elemento da visualizzare" },
|
30
|
-
readonly: {}
|
30
|
+
readonly: { type: Boolean }
|
31
31
|
},
|
32
32
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
33
33
|
setup(g, { emit: y }) {
|
34
|
-
const
|
34
|
+
const n = g, a = y, f = b(), r = b(!1), {
|
35
35
|
innerLoading: T,
|
36
36
|
options: k,
|
37
37
|
selectOption: D,
|
38
38
|
unselectOption: C
|
39
|
-
} =
|
40
|
-
dependencies: l(
|
41
|
-
depsDebounceTime:
|
42
|
-
disabled: l(
|
43
|
-
emit:
|
44
|
-
enforceCoherence:
|
45
|
-
items: l(
|
46
|
-
itemText:
|
47
|
-
itemValue:
|
48
|
-
max:
|
49
|
-
modelValue: l(
|
50
|
-
modelValueDebounceTime:
|
39
|
+
} = F({
|
40
|
+
dependencies: l(n, "dependencies"),
|
41
|
+
depsDebounceTime: n.depsDebounceTime,
|
42
|
+
disabled: l(n, "disabled"),
|
43
|
+
emit: a,
|
44
|
+
enforceCoherence: n.enforceCoherence,
|
45
|
+
items: l(n, "items"),
|
46
|
+
itemText: n.itemText,
|
47
|
+
itemValue: n.itemValue,
|
48
|
+
max: n.max,
|
49
|
+
modelValue: l(n, "modelValue"),
|
50
|
+
modelValueDebounceTime: n.modelValueDebounceTime,
|
51
51
|
multiple: !0,
|
52
52
|
prefill: !0,
|
53
53
|
queryDebounceTime: 0,
|
54
54
|
resetQueryOnOptionSelected: !1,
|
55
55
|
stash: !1
|
56
|
-
}), L = (e
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
56
|
+
}), L = (e) => {
|
57
|
+
if (n.id)
|
58
|
+
return [n.id, e.valueHash].filter(Boolean).join("-");
|
59
|
+
}, E = (e, t) => {
|
60
|
+
a("change", e), t.selected ? C(t) : D(t);
|
61
|
+
}, V = {
|
62
|
+
onBlur: (e) => a("blur", e),
|
63
|
+
onClick: (e) => a("click", e),
|
61
64
|
onFocus: (e) => {
|
62
|
-
|
65
|
+
a("focus", e), r.value || (document.addEventListener("focusin", d, { passive: !0 }), document.addEventListener("click", u, { passive: !0 }), r.value = !0);
|
63
66
|
},
|
64
|
-
onInput: (e) =>
|
65
|
-
onKeydown: (e) =>
|
66
|
-
onMousedown: (e) =>
|
67
|
-
onMouseup: (e) =>
|
67
|
+
onInput: (e) => a("input", e),
|
68
|
+
onKeydown: (e) => a("keydown", e),
|
69
|
+
onMousedown: (e) => a("mousedown", e),
|
70
|
+
onMouseup: (e) => a("mouseup", e)
|
68
71
|
}, d = (e) => {
|
69
72
|
var t;
|
70
|
-
e.target instanceof HTMLElement && ((t =
|
73
|
+
e.target instanceof HTMLElement && ((t = f.value) != null && t.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
|
71
74
|
}, u = (e) => {
|
72
75
|
var t;
|
73
|
-
e.target instanceof HTMLElement && ((t =
|
76
|
+
e.target instanceof HTMLElement && ((t = f.value) != null && t.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
|
74
77
|
};
|
75
|
-
return (e, t) => (
|
78
|
+
return (e, t) => (w(), O(H, {
|
76
79
|
class: "bb-base-checkbox-group",
|
77
80
|
direction: e.direction,
|
78
81
|
"has-errors": e.hasErrors,
|
79
82
|
"hide-label": e.hideLabel,
|
80
|
-
loading: !!
|
83
|
+
loading: !!h(T),
|
81
84
|
"loading-text": e.loadingText,
|
82
85
|
"no-data-text": e.noDataText,
|
83
|
-
options:
|
86
|
+
options: h(k)
|
84
87
|
}, {
|
85
88
|
prepend: i(() => [
|
86
89
|
s(e.$slots, "prepend")
|
@@ -91,43 +94,46 @@ const A = /* @__PURE__ */ $({
|
|
91
94
|
"no-data": i(() => [
|
92
95
|
s(e.$slots, "no-data")
|
93
96
|
]),
|
94
|
-
|
95
|
-
s(e.$slots, "
|
97
|
+
label: i((o) => [
|
98
|
+
s(e.$slots, "label", m(p(o)))
|
96
99
|
]),
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
+
"option:prepend": i((o) => [
|
101
|
+
s(e.$slots, "option:prepend", m(p(o)))
|
102
|
+
]),
|
103
|
+
input: i(({ option: o, index: B }) => [
|
104
|
+
z(M, v({
|
105
|
+
id: L(o),
|
100
106
|
"aria-describedby": e.ariaDescribedby,
|
101
|
-
autofocus: e.autofocus && !
|
102
|
-
checked:
|
107
|
+
autofocus: e.autofocus && !B,
|
108
|
+
checked: o.selected,
|
103
109
|
color: e.color,
|
104
|
-
disabled:
|
110
|
+
disabled: o.disabled,
|
105
111
|
"has-errors": e.hasErrors,
|
106
112
|
name: e.name,
|
107
113
|
readonly: e.readonly,
|
108
|
-
"true-value":
|
109
|
-
},
|
110
|
-
onChange: (c) =>
|
114
|
+
"true-value": o.value
|
115
|
+
}, V, {
|
116
|
+
onChange: (c) => E(c, o)
|
111
117
|
}), {
|
112
118
|
icon: i((c) => [
|
113
119
|
s(e.$slots, "icon", v({
|
114
|
-
item:
|
115
|
-
text:
|
120
|
+
item: o.item,
|
121
|
+
text: o.text
|
116
122
|
}, c))
|
117
123
|
]),
|
118
124
|
_: 2
|
119
125
|
}, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
|
120
126
|
]),
|
121
|
-
"option:append": i((
|
122
|
-
s(e.$slots, "option:
|
127
|
+
"option:append": i((o) => [
|
128
|
+
s(e.$slots, "option:append", m(p(o)))
|
123
129
|
]),
|
124
130
|
append: i(() => [
|
125
|
-
s(e.$slots, "
|
131
|
+
s(e.$slots, "append")
|
126
132
|
]),
|
127
133
|
_: 3
|
128
134
|
}, 8, ["direction", "has-errors", "hide-label", "loading", "loading-text", "no-data-text", "options"]));
|
129
135
|
}
|
130
136
|
});
|
131
137
|
export {
|
132
|
-
|
138
|
+
q as default
|
133
139
|
};
|
package/dist/index206.js
CHANGED
@@ -1,4 +1,83 @@
|
|
1
|
-
|
1
|
+
import { getCurrentScope as g, onScopeDispose as D, unref as x, onMounted as O, nextTick as S, isRef as C, getCurrentInstance as F } from "vue";
|
2
|
+
function G(e) {
|
3
|
+
return g() ? (D(e), !0) : !1;
|
4
|
+
}
|
5
|
+
function d(e) {
|
6
|
+
return typeof e == "function" ? e() : x(e);
|
7
|
+
}
|
8
|
+
const L = typeof window < "u" && typeof document < "u";
|
9
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
10
|
+
const V = (e) => e != null, P = Object.prototype.toString, A = (e) => P.call(e) === "[object Object]", m = () => {
|
11
|
+
};
|
12
|
+
function h(e, r) {
|
13
|
+
function t(...n) {
|
14
|
+
return new Promise((o, i) => {
|
15
|
+
Promise.resolve(e(() => r.apply(this, n), { fn: r, thisArg: this, args: n })).then(o).catch(i);
|
16
|
+
});
|
17
|
+
}
|
18
|
+
return t;
|
19
|
+
}
|
20
|
+
function W(e, r = {}) {
|
21
|
+
let t, n, o = m;
|
22
|
+
const i = (l) => {
|
23
|
+
clearTimeout(l), o(), o = m;
|
24
|
+
};
|
25
|
+
return (l) => {
|
26
|
+
const c = d(e), u = d(r.maxWait);
|
27
|
+
return t && i(t), c <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(l())) : new Promise((s, T) => {
|
28
|
+
o = r.rejectOnCancel ? T : s, u && !n && (n = setTimeout(() => {
|
29
|
+
t && i(t), n = null, s(l());
|
30
|
+
}, u)), t = setTimeout(() => {
|
31
|
+
n && i(n), n = null, s(l());
|
32
|
+
}, c);
|
33
|
+
});
|
34
|
+
};
|
35
|
+
}
|
36
|
+
function M(...e) {
|
37
|
+
let r = 0, t, n = !0, o = m, i, a, l, c, u;
|
38
|
+
!C(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: l = !0, leading: c = !0, rejectOnCancel: u = !1 } = e[0] : [a, l = !0, c = !0, u = !1] = e;
|
39
|
+
const s = () => {
|
40
|
+
t && (clearTimeout(t), t = void 0, o(), o = m);
|
41
|
+
};
|
42
|
+
return (w) => {
|
43
|
+
const f = d(a), y = Date.now() - r, p = () => i = w();
|
44
|
+
return s(), f <= 0 ? (r = Date.now(), p()) : (y > f && (c || !n) ? (r = Date.now(), p()) : l && (i = new Promise((b, j) => {
|
45
|
+
o = u ? j : b, t = setTimeout(() => {
|
46
|
+
r = Date.now(), n = !0, b(p()), s();
|
47
|
+
}, Math.max(0, f - y));
|
48
|
+
})), !c && !t && (t = setTimeout(() => n = !0, f)), n = !1, i);
|
49
|
+
};
|
50
|
+
}
|
51
|
+
function R(e) {
|
52
|
+
return F();
|
53
|
+
}
|
54
|
+
function E(e, r = 200, t = {}) {
|
55
|
+
return h(
|
56
|
+
W(r, t),
|
57
|
+
e
|
58
|
+
);
|
59
|
+
}
|
60
|
+
function I(e, r = 200, t = !1, n = !0, o = !1) {
|
61
|
+
return h(
|
62
|
+
M(r, t, n, o),
|
63
|
+
e
|
64
|
+
);
|
65
|
+
}
|
66
|
+
function N(e, r = !0, t) {
|
67
|
+
R() ? O(e, t) : r ? e() : S(e);
|
68
|
+
}
|
2
69
|
export {
|
3
|
-
|
70
|
+
h as createFilterWrapper,
|
71
|
+
W as debounceFilter,
|
72
|
+
R as getLifeCycleTarget,
|
73
|
+
L as isClient,
|
74
|
+
A as isObject,
|
75
|
+
m as noop,
|
76
|
+
V as notNullish,
|
77
|
+
M as throttleFilter,
|
78
|
+
d as toValue,
|
79
|
+
N as tryOnMounted,
|
80
|
+
G as tryOnScopeDispose,
|
81
|
+
E as useDebounceFn,
|
82
|
+
I as useThrottleFn
|
4
83
|
};
|
package/dist/index207.js
CHANGED
@@ -1,83 +1,4 @@
|
|
1
|
-
|
2
|
-
function G(e) {
|
3
|
-
return g() ? (D(e), !0) : !1;
|
4
|
-
}
|
5
|
-
function d(e) {
|
6
|
-
return typeof e == "function" ? e() : x(e);
|
7
|
-
}
|
8
|
-
const L = typeof window < "u" && typeof document < "u";
|
9
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
10
|
-
const V = (e) => e != null, P = Object.prototype.toString, A = (e) => P.call(e) === "[object Object]", m = () => {
|
11
|
-
};
|
12
|
-
function h(e, r) {
|
13
|
-
function t(...n) {
|
14
|
-
return new Promise((o, i) => {
|
15
|
-
Promise.resolve(e(() => r.apply(this, n), { fn: r, thisArg: this, args: n })).then(o).catch(i);
|
16
|
-
});
|
17
|
-
}
|
18
|
-
return t;
|
19
|
-
}
|
20
|
-
function W(e, r = {}) {
|
21
|
-
let t, n, o = m;
|
22
|
-
const i = (l) => {
|
23
|
-
clearTimeout(l), o(), o = m;
|
24
|
-
};
|
25
|
-
return (l) => {
|
26
|
-
const c = d(e), u = d(r.maxWait);
|
27
|
-
return t && i(t), c <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(l())) : new Promise((s, T) => {
|
28
|
-
o = r.rejectOnCancel ? T : s, u && !n && (n = setTimeout(() => {
|
29
|
-
t && i(t), n = null, s(l());
|
30
|
-
}, u)), t = setTimeout(() => {
|
31
|
-
n && i(n), n = null, s(l());
|
32
|
-
}, c);
|
33
|
-
});
|
34
|
-
};
|
35
|
-
}
|
36
|
-
function M(...e) {
|
37
|
-
let r = 0, t, n = !0, o = m, i, a, l, c, u;
|
38
|
-
!C(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: l = !0, leading: c = !0, rejectOnCancel: u = !1 } = e[0] : [a, l = !0, c = !0, u = !1] = e;
|
39
|
-
const s = () => {
|
40
|
-
t && (clearTimeout(t), t = void 0, o(), o = m);
|
41
|
-
};
|
42
|
-
return (w) => {
|
43
|
-
const f = d(a), y = Date.now() - r, p = () => i = w();
|
44
|
-
return s(), f <= 0 ? (r = Date.now(), p()) : (y > f && (c || !n) ? (r = Date.now(), p()) : l && (i = new Promise((b, j) => {
|
45
|
-
o = u ? j : b, t = setTimeout(() => {
|
46
|
-
r = Date.now(), n = !0, b(p()), s();
|
47
|
-
}, Math.max(0, f - y));
|
48
|
-
})), !c && !t && (t = setTimeout(() => n = !0, f)), n = !1, i);
|
49
|
-
};
|
50
|
-
}
|
51
|
-
function R(e) {
|
52
|
-
return F();
|
53
|
-
}
|
54
|
-
function E(e, r = 200, t = {}) {
|
55
|
-
return h(
|
56
|
-
W(r, t),
|
57
|
-
e
|
58
|
-
);
|
59
|
-
}
|
60
|
-
function I(e, r = 200, t = !1, n = !0, o = !1) {
|
61
|
-
return h(
|
62
|
-
M(r, t, n, o),
|
63
|
-
e
|
64
|
-
);
|
65
|
-
}
|
66
|
-
function N(e, r = !0, t) {
|
67
|
-
R() ? O(e, t) : r ? e() : S(e);
|
68
|
-
}
|
1
|
+
const n = (t, a, m) => Math.min(Math.max(t, a), m);
|
69
2
|
export {
|
70
|
-
|
71
|
-
W as debounceFilter,
|
72
|
-
R as getLifeCycleTarget,
|
73
|
-
L as isClient,
|
74
|
-
A as isObject,
|
75
|
-
m as noop,
|
76
|
-
V as notNullish,
|
77
|
-
M as throttleFilter,
|
78
|
-
d as toValue,
|
79
|
-
N as tryOnMounted,
|
80
|
-
G as tryOnScopeDispose,
|
81
|
-
E as useDebounceFn,
|
82
|
-
I as useThrottleFn
|
3
|
+
n as clamp
|
83
4
|
};
|
package/dist/index208.js
CHANGED
@@ -1,55 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
import $ from "./index129.js";
|
7
|
-
/* empty css */
|
8
|
-
import b from "./index302.js";
|
9
|
-
const y = { class: "bb-common-input-inner-container__prefix" }, k = { class: "bb-common-input-inner-container__suffix" }, S = /* @__PURE__ */ f({
|
10
|
-
__name: "CommonInputInnerContainer",
|
11
|
-
props: {
|
12
|
-
"append:icon": {},
|
13
|
-
"prepend:icon": {},
|
14
|
-
preventFocus: { type: Boolean }
|
15
|
-
},
|
16
|
-
setup(m) {
|
17
|
-
const u = m, o = d(), l = () => {
|
18
|
-
var n;
|
19
|
-
!o.value || u.preventFocus || (n = o.value.querySelector("input")) == null || n.focus();
|
20
|
-
};
|
21
|
-
return (n, C) => (r(), _("span", {
|
22
|
-
ref_key: "container",
|
23
|
-
ref: o,
|
24
|
-
class: "bb-common-input-inner-container",
|
25
|
-
onClick: l
|
26
|
-
}, [
|
27
|
-
e(n.$slots, "prepend", {}, () => [
|
28
|
-
t("span", y, [
|
29
|
-
e(n.$slots, "prefix")
|
30
|
-
])
|
31
|
-
]),
|
32
|
-
n.$props["prepend:icon"] ? (r(), s(p(a), {
|
33
|
-
key: 0,
|
34
|
-
class: "bb-common-input-inner-container__prepend-icon",
|
35
|
-
type: n.$props["prepend:icon"]
|
36
|
-
}, null, 8, ["type"])) : i("", !0),
|
37
|
-
e(n.$slots, "default"),
|
38
|
-
n.$props["append:icon"] ? (r(), s(p(a), {
|
39
|
-
key: 1,
|
40
|
-
class: "bb-common-input-inner-container__append-icon",
|
41
|
-
type: n.$props["append:icon"]
|
42
|
-
}, null, 8, ["type"])) : i("", !0),
|
43
|
-
c(p($)),
|
44
|
-
c(b),
|
45
|
-
e(n.$slots, "append", {}, () => [
|
46
|
-
t("span", k, [
|
47
|
-
e(n.$slots, "suffix")
|
48
|
-
])
|
49
|
-
])
|
50
|
-
], 512));
|
1
|
+
const o = "bitboss-ui | ", e = () => ({
|
2
|
+
warn: (r) => console.warn(`${o}${r}`),
|
3
|
+
error: (r) => console.error(`${o}${r}`),
|
4
|
+
throw: (r) => {
|
5
|
+
throw new Error(`${o}${r}`);
|
51
6
|
}
|
52
7
|
});
|
53
8
|
export {
|
54
|
-
|
9
|
+
e as useLogger
|
55
10
|
};
|