bitboss-ui 2.0.94 → 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 +8 -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/BbRows/BbRows.vue.d.ts +1 -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 +10 -10
- 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 +5 -5
- package/dist/index113.js +12 -9
- package/dist/index115.js +27 -24
- package/dist/index117.js +27 -24
- package/dist/index119.js +1 -1
- package/dist/index121.js +5 -5
- package/dist/index123.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index134.js +2 -2
- package/dist/index15.js +24 -22
- package/dist/index17.js +14 -15
- package/dist/index19.js +57 -51
- package/dist/index208.js +7 -125
- package/dist/index209.js +126 -5
- package/dist/index21.js +77 -72
- package/dist/index210.js +5 -125
- package/dist/index211.js +123 -17
- package/dist/index212.js +18 -15
- package/dist/index213.js +10 -10
- package/dist/index214.js +16 -2
- package/dist/index215.js +2 -2
- package/dist/index216.js +2 -41
- package/dist/index217.js +41 -20
- package/dist/index218.js +20 -6
- package/dist/index219.js +5 -52
- package/dist/index220.js +55 -0
- package/dist/index222.js +12 -4
- package/dist/index223.js +5 -12
- package/dist/index224.js +12 -369
- package/dist/index225.js +369 -3
- package/dist/index226.js +19 -4
- package/dist/index227.js +22 -14
- package/dist/index228.js +3 -27
- package/dist/index229.js +250 -3
- package/dist/index23.js +28 -26
- package/dist/index230.js +50 -6
- package/dist/index231.js +36 -241
- package/dist/index232.js +5 -52
- package/dist/index233.js +47 -31
- package/dist/index234.js +164 -5
- package/dist/index235.js +78 -54
- package/dist/index237.js +3 -84
- package/dist/index238.js +9 -0
- package/dist/index240.js +1 -1
- package/dist/index242.js +4 -3
- package/dist/index243.js +3 -7
- package/dist/index246.js +1 -1
- package/dist/index248.js +1 -1
- package/dist/index25.js +6 -6
- package/dist/index253.js +9 -224
- package/dist/index254.js +23 -281
- package/dist/index255.js +89 -6
- package/dist/index257.js +6 -2
- package/dist/index258.js +16 -2
- package/dist/index259.js +9 -2
- package/dist/index260.js +9 -2
- package/dist/index261.js +8 -126
- package/dist/index262.js +3 -431
- package/dist/index263.js +11 -175
- package/dist/index264.js +9 -3
- package/dist/index265.js +19 -0
- package/dist/index266.js +4 -7
- package/dist/index267.js +281 -22
- package/dist/index268.js +8 -0
- package/dist/index269.js +2 -2
- package/dist/index27.js +9 -7
- package/dist/index270.js +2 -6
- package/dist/index271.js +2 -16
- package/dist/index272.js +2 -9
- package/dist/index273.js +2 -23
- package/dist/index274.js +2 -89
- package/dist/index275.js +4 -0
- package/dist/index276.js +2 -9
- package/dist/index277.js +2 -2
- package/dist/index278.js +2 -2
- package/dist/index279.js +28 -2
- package/dist/index280.js +21 -1
- package/dist/index282.js +7 -2
- package/dist/index283.js +2 -28
- package/dist/index284.js +125 -21
- package/dist/index285.js +433 -0
- package/dist/index286.js +167 -427
- package/dist/index287.js +3 -127
- package/dist/index289.js +22 -3
- package/dist/index29.js +10 -8
- package/dist/index291.js +2 -9
- package/dist/index292.js +4 -9
- package/dist/index293.js +197 -14
- package/dist/index294.js +435 -3
- package/dist/index295.js +127 -8
- package/dist/index296.js +88 -3
- package/dist/index297.js +218 -83
- package/dist/index300.js +23 -21
- package/dist/index302.js +5 -2
- package/dist/index303.js +2 -5
- package/dist/index304.js +3 -5
- package/dist/index305.js +3 -8
- package/dist/index306.js +3 -3
- package/dist/index307.js +58 -3
- package/dist/index308.js +10 -57
- package/dist/index309.js +6 -3
- package/dist/index31.js +4 -4
- package/dist/index310.js +19 -3
- package/dist/index311.js +6 -6
- package/dist/index312.js +32 -18
- package/dist/index313.js +46 -32
- package/dist/index314.js +4 -6
- package/dist/index315.js +7 -10
- package/dist/index316.js +2 -47
- package/dist/index317.js +4 -2
- package/dist/{index319.js → index318.js} +1 -1
- package/dist/index33.js +12 -12
- package/dist/index35.js +33 -33
- package/dist/index37.js +54 -50
- package/dist/index39.js +2 -2
- package/dist/index41.js +1 -1
- package/dist/index43.js +3 -3
- package/dist/index45.js +44 -42
- package/dist/index47.js +31 -29
- package/dist/index49.js +18 -16
- 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/index75.js +3 -3
- 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/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 -15
- package/dist/index236.js +0 -166
- package/dist/index256.js +0 -4
- package/dist/index281.js +0 -4
- package/dist/index288.js +0 -202
- package/dist/index290.js +0 -14
package/dist/index119.js
CHANGED
@@ -1,6 +1,6 @@
|
|
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 "./
|
3
|
+
import C from "./index224.js";
|
4
4
|
import B from "./index301.js";
|
5
5
|
const V = /* @__PURE__ */ l({
|
6
6
|
__name: "BbToast",
|
package/dist/index121.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent as N, ref as a, watch as V, computed as H, openBlock as B, createElementBlock as z, mergeProps as I, createElementVNode as p, renderSlot as C, normalizeProps as R, guardReactiveProps as S, unref as c, createVNode as U, withCtx as E, createBlock as W, createCommentVNode as j } from "vue";
|
2
|
-
import { useFloating as q, arrow as A } from "./
|
2
|
+
import { useFloating as q, arrow as A } from "./index209.js";
|
3
3
|
import { useId as G } from "./index8.js";
|
4
4
|
import { wait as _ } from "./index132.js";
|
5
5
|
import J from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { throttle as m } from "./
|
8
|
-
import { waitFor as K } from "./
|
9
|
-
import Q from "./
|
7
|
+
import { throttle as m } from "./index237.js";
|
8
|
+
import { waitFor as K } from "./index219.js";
|
9
|
+
import Q from "./index255.js";
|
10
10
|
/* empty css */
|
11
|
-
import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./
|
11
|
+
import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index225.js";
|
12
12
|
const pe = /* @__PURE__ */ N({
|
13
13
|
__name: "BbTooltip",
|
14
14
|
props: {
|
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 "./index302.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/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 "./index237.js";
|
3
3
|
const O = /* @__PURE__ */ v({
|
4
4
|
__name: "BbSmoothHeight",
|
5
5
|
props: {
|
package/dist/index13.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as k, getCurrentInstance as u, resolveComponent as p, computed as d, openBlock as v, createBlock as h, resolveDynamicComponent as C, unref as x, mergeProps as S, withCtx as L, renderSlot as B, createTextVNode as N, toDisplayString as $ } from "vue";
|
2
2
|
import { _config as n } from "./index4.js";
|
3
|
-
import { useLogger as m } from "./
|
3
|
+
import { useLogger as m } from "./index208.js";
|
4
4
|
const _ = /* @__PURE__ */ k({
|
5
5
|
__name: "BaseButton",
|
6
6
|
props: {
|
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
|
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
2
|
import { isCssColor as y } from "./index239.js";
|
3
|
-
import { when as
|
4
|
-
import { booleanishToBoolean as
|
5
|
-
const
|
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/index208.js
CHANGED
@@ -1,128 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
function z(e) {
|
7
|
-
return e != null && typeof e == "object" && "$el" in e;
|
8
|
-
}
|
9
|
-
function g(e) {
|
10
|
-
if (z(e)) {
|
11
|
-
const l = e.$el;
|
12
|
-
return B(l) && F(l) === "#comment" ? null : l;
|
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}`);
|
13
6
|
}
|
14
|
-
|
15
|
-
}
|
16
|
-
function o(e) {
|
17
|
-
return typeof e == "function" ? e() : q(e);
|
18
|
-
}
|
19
|
-
function K(e) {
|
20
|
-
return {
|
21
|
-
name: "arrow",
|
22
|
-
options: e,
|
23
|
-
fn(l) {
|
24
|
-
const t = g(o(e.element));
|
25
|
-
return t == null ? {} : j({
|
26
|
-
element: t,
|
27
|
-
padding: e.padding
|
28
|
-
}).fn(l);
|
29
|
-
}
|
30
|
-
};
|
31
|
-
}
|
32
|
-
function M(e) {
|
33
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
34
|
-
}
|
35
|
-
function C(e, l) {
|
36
|
-
const t = M(e);
|
37
|
-
return Math.round(l * t) / t;
|
38
|
-
}
|
39
|
-
function L(e, l, t) {
|
40
|
-
t === void 0 && (t = {});
|
41
|
-
const x = t.whileElementsMounted, V = a(() => {
|
42
|
-
var n;
|
43
|
-
return (n = o(t.open)) != null ? n : !0;
|
44
|
-
}), D = a(() => o(t.middleware)), d = a(() => {
|
45
|
-
var n;
|
46
|
-
return (n = o(t.placement)) != null ? n : "bottom";
|
47
|
-
}), v = a(() => {
|
48
|
-
var n;
|
49
|
-
return (n = o(t.strategy)) != null ? n : "absolute";
|
50
|
-
}), S = a(() => {
|
51
|
-
var n;
|
52
|
-
return (n = o(t.transform)) != null ? n : !0;
|
53
|
-
}), i = a(() => g(e.value)), u = a(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), O = f(d.value), P = I({}), y = f(!1), _ = a(() => {
|
54
|
-
const n = {
|
55
|
-
position: c.value,
|
56
|
-
left: "0",
|
57
|
-
top: "0"
|
58
|
-
};
|
59
|
-
if (!u.value)
|
60
|
-
return n;
|
61
|
-
const R = C(u.value, p.value), b = C(u.value, w.value);
|
62
|
-
return S.value ? {
|
63
|
-
...n,
|
64
|
-
transform: "translate(" + R + "px, " + b + "px)",
|
65
|
-
...M(u.value) >= 1.5 && {
|
66
|
-
willChange: "transform"
|
67
|
-
}
|
68
|
-
} : {
|
69
|
-
position: c.value,
|
70
|
-
left: R + "px",
|
71
|
-
top: b + "px"
|
72
|
-
};
|
73
|
-
});
|
74
|
-
let s;
|
75
|
-
function m() {
|
76
|
-
i.value == null || u.value == null || A(i.value, u.value, {
|
77
|
-
middleware: D.value,
|
78
|
-
placement: d.value,
|
79
|
-
strategy: v.value
|
80
|
-
}).then((n) => {
|
81
|
-
p.value = n.x, w.value = n.y, c.value = n.strategy, O.value = n.placement, P.value = n.middlewareData, y.value = !0;
|
82
|
-
});
|
83
|
-
}
|
84
|
-
function E() {
|
85
|
-
typeof s == "function" && (s(), s = void 0);
|
86
|
-
}
|
87
|
-
function N() {
|
88
|
-
if (E(), x === void 0) {
|
89
|
-
m();
|
90
|
-
return;
|
91
|
-
}
|
92
|
-
if (i.value != null && u.value != null) {
|
93
|
-
s = x(i.value, u.value, m);
|
94
|
-
return;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
function $() {
|
98
|
-
V.value || (y.value = !1);
|
99
|
-
}
|
100
|
-
return h([D, d, v], m, {
|
101
|
-
flush: "sync"
|
102
|
-
}), h([i, u], N, {
|
103
|
-
flush: "sync"
|
104
|
-
}), h(V, $, {
|
105
|
-
flush: "sync"
|
106
|
-
}), U() && k(E), {
|
107
|
-
x: r(p),
|
108
|
-
y: r(w),
|
109
|
-
strategy: r(c),
|
110
|
-
placement: r(O),
|
111
|
-
middlewareData: r(P),
|
112
|
-
isPositioned: r(y),
|
113
|
-
floatingStyles: _,
|
114
|
-
update: m
|
115
|
-
};
|
116
|
-
}
|
7
|
+
});
|
117
8
|
export {
|
118
|
-
|
119
|
-
W as autoUpdate,
|
120
|
-
A as computePosition,
|
121
|
-
X as flip,
|
122
|
-
le as getOverflowAncestors,
|
123
|
-
Y as hide,
|
124
|
-
Z as offset,
|
125
|
-
ee as platform,
|
126
|
-
ne as shift,
|
127
|
-
L as useFloating
|
9
|
+
e as useLogger
|
128
10
|
};
|