bitboss-ui 2.0.95 → 2.0.97
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 +3 -3
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +5 -1
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +22 -5
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +2 -0
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +69 -19
- 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/components/OptionsContainer.vue.d.ts +2 -2
- package/dist/composables/useBbConfig.d.ts +3 -0
- package/dist/composables/useLocale.d.ts +5 -0
- package/dist/i18n/en.d.ts +8 -0
- package/dist/i18n/index.d.ts +3 -0
- package/dist/i18n/it.d.ts +8 -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 +6 -6
- 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 +5 -5
- 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/index134.js +2 -2
- package/dist/index15.js +22 -20
- package/dist/index17.js +15 -16
- package/dist/index19.js +72 -65
- package/dist/index208.js +1 -1
- package/dist/index21.js +84 -72
- package/dist/index210.js +1 -1
- package/dist/index211.js +5 -20
- package/dist/index212.js +16 -4
- package/dist/index213.js +16 -5
- package/dist/index214.js +18 -15
- package/dist/index215.js +16 -13
- package/dist/index216.js +26 -18
- package/dist/index217.js +3 -19
- package/dist/index218.js +2 -27
- package/dist/index219.js +8 -3
- package/dist/index220.js +250 -2
- package/dist/index221.js +50 -6
- package/dist/index222.js +36 -241
- package/dist/index223.js +5 -52
- package/dist/index224.js +47 -31
- package/dist/index225.js +2 -5
- package/dist/index226.js +4 -60
- package/dist/index227.js +2 -2
- package/dist/index228.js +126 -4
- package/dist/index229.js +125 -2
- package/dist/index23.js +28 -26
- package/dist/index230.js +2 -3
- package/dist/index231.js +1 -1
- package/dist/index232.js +20 -6
- package/dist/index233.js +6 -7
- package/dist/index234.js +5 -12
- package/dist/index235.js +12 -164
- package/dist/index236.js +368 -83
- package/dist/index237.js +166 -0
- package/dist/index238.js +83 -125
- package/dist/index240.js +8 -2
- package/dist/index241.js +3 -5
- package/dist/index242.js +7 -369
- package/dist/index243.js +1 -1
- package/dist/index244.js +4 -2
- package/dist/index245.js +1 -1
- package/dist/index247.js +1 -1
- package/dist/index249.js +2 -2
- package/dist/index25.js +5 -5
- package/dist/index250.js +2 -18
- package/dist/index251.js +17 -9
- package/dist/index252.js +9 -2
- package/dist/index253.js +2 -8
- package/dist/index254.js +3 -23
- package/dist/index256.js +9 -0
- package/dist/index257.js +4 -9
- package/dist/index258.js +281 -6
- package/dist/index259.js +6 -16
- package/dist/index260.js +2 -3
- package/dist/index261.js +4 -0
- package/dist/index262.js +2 -7
- package/dist/index263.js +2 -176
- package/dist/index264.js +2 -281
- package/dist/index265.js +2 -6
- package/dist/index266.js +2 -2
- package/dist/index267.js +2 -2
- package/dist/index268.js +2 -2
- package/dist/index269.js +2 -2
- package/dist/index27.js +8 -6
- package/dist/index270.js +28 -2
- package/dist/index271.js +22 -2
- package/dist/index273.js +89 -2
- package/dist/index275.js +9 -2
- package/dist/index276.js +6 -28
- package/dist/index277.js +15 -21
- package/dist/index278.js +11 -0
- package/dist/index279.js +23 -4
- package/dist/index280.js +3 -431
- package/dist/index281.js +12 -2
- package/dist/index282.js +7 -87
- package/dist/index283.js +9 -3
- package/dist/index284.js +17 -12
- package/dist/index285.js +3 -8
- package/dist/index286.js +7 -9
- package/dist/index287.js +11 -17
- package/dist/index288.js +2 -4
- package/dist/index289.js +122 -196
- package/dist/index29.js +8 -6
- package/dist/index290.js +431 -2
- package/dist/index291.js +171 -121
- package/dist/index294.js +2 -8
- package/dist/index295.js +83 -218
- package/dist/index296.js +219 -431
- package/dist/index297.js +8 -127
- package/dist/index298.js +200 -3
- package/dist/index299.js +436 -3
- package/dist/index300.js +126 -210
- package/dist/index301.js +1 -1
- package/dist/index302.js +2 -32
- package/dist/index303.js +2 -5
- package/dist/index304.js +5 -8
- package/dist/index305.js +66 -3
- package/dist/index306.js +213 -3
- package/dist/index307.js +32 -57
- package/dist/index308.js +5 -2
- package/dist/index309.js +7 -6
- package/dist/index31.js +6 -6
- package/dist/index310.js +2 -65
- package/dist/index311.js +4 -5
- package/dist/index312.js +3 -7
- package/dist/index313.js +3 -19
- package/dist/index314.js +57 -10
- package/dist/index315.js +6 -3
- package/dist/index316.js +6 -46
- package/dist/index317.js +19 -480
- package/dist/index318.js +10 -0
- package/dist/index319.js +8 -2
- package/dist/index320.js +43 -420
- package/dist/index321.js +2 -47
- package/dist/index322.js +480 -2
- package/dist/index324.js +426 -0
- package/dist/index325.js +49 -0
- package/dist/index326.js +4 -0
- package/dist/index33.js +12 -12
- package/dist/index35.js +35 -35
- package/dist/index37.js +54 -50
- package/dist/index39.js +4 -4
- package/dist/index4.js +5 -4
- package/dist/index41.js +3 -3
- package/dist/index43.js +3 -3
- package/dist/index45.js +42 -40
- package/dist/index47.js +29 -27
- package/dist/index49.js +16 -14
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index61.js +2 -2
- 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/index77.js +36 -34
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index82.js +24 -21
- package/dist/index84.js +2 -2
- package/dist/index86.js +1 -1
- package/dist/index88.js +2 -2
- 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/index239.js +0 -127
- package/dist/index255.js +0 -91
- package/dist/index272.js +0 -4
- package/dist/index274.js +0 -4
package/dist/index117.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as c, ref as h, computed as b, openBlock as f, createBlock as y, withCtx as
|
1
|
+
import { defineComponent as c, ref as h, computed as b, openBlock as f, createBlock as y, withCtx as a, renderSlot as n, normalizeProps as v, guardReactiveProps as B, createVNode as w, mergeProps as g } from "vue";
|
2
2
|
import $ from "./index27.js";
|
3
3
|
/* empty css */
|
4
4
|
import k from "./index49.js";
|
@@ -9,6 +9,7 @@ const E = /* @__PURE__ */ c({
|
|
9
9
|
"append:icon": {},
|
10
10
|
autocomplete: {},
|
11
11
|
autofocus: {},
|
12
|
+
compact: { type: Boolean },
|
12
13
|
direction: {},
|
13
14
|
disabled: { type: Boolean },
|
14
15
|
errors: {},
|
@@ -24,14 +25,14 @@ const E = /* @__PURE__ */ c({
|
|
24
25
|
persistentHint: { type: Boolean },
|
25
26
|
placeholder: {},
|
26
27
|
"prepend:icon": {},
|
27
|
-
readonly: {},
|
28
|
+
readonly: { type: Boolean },
|
28
29
|
required: { type: Boolean },
|
29
30
|
reverse: { type: Boolean },
|
30
31
|
type: {}
|
31
32
|
},
|
32
33
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
33
|
-
setup(
|
34
|
-
const
|
34
|
+
setup(s, { emit: i }) {
|
35
|
+
const r = s, o = i, l = h(!1), d = b(() => r.persistentHint || l.value), t = {
|
35
36
|
onBlur: (e) => {
|
36
37
|
l.value = !1, o("blur", e);
|
37
38
|
},
|
@@ -49,6 +50,7 @@ const E = /* @__PURE__ */ c({
|
|
49
50
|
return (e, V) => (f(), y($, {
|
50
51
|
id: e.id,
|
51
52
|
class: "bb-text-input",
|
53
|
+
compact: e.compact,
|
52
54
|
direction: e.direction,
|
53
55
|
errors: e.errors,
|
54
56
|
"has-errors": e.hasErrors,
|
@@ -61,50 +63,51 @@ const E = /* @__PURE__ */ c({
|
|
61
63
|
reverse: e.reverse,
|
62
64
|
"show-hint": d.value
|
63
65
|
}, {
|
64
|
-
label:
|
65
|
-
|
66
|
+
label: a((p) => [
|
67
|
+
n(e.$slots, "label", v(B(p)))
|
66
68
|
]),
|
67
|
-
input:
|
69
|
+
input: a(({ id: p, hasErrors: u, ariaDescribedby: m }) => [
|
68
70
|
w(k, g({
|
69
|
-
id:
|
70
|
-
"append:icon":
|
71
|
+
id: p,
|
72
|
+
"append:icon": r["append:icon"],
|
71
73
|
"aria-describedby": m,
|
72
74
|
autocomplete: e.autocomplete,
|
73
75
|
autofocus: e.autofocus,
|
76
|
+
compact: e.compact,
|
74
77
|
disabled: e.disabled,
|
75
78
|
"has-errors": u,
|
76
79
|
loading: e.loading,
|
77
80
|
"model-value": e.modelValue,
|
78
81
|
name: e.name,
|
79
82
|
placeholder: e.placeholder,
|
80
|
-
"prepend:icon":
|
83
|
+
"prepend:icon": r["prepend:icon"],
|
81
84
|
readonly: e.readonly,
|
82
85
|
required: e.required,
|
83
86
|
type: e.type
|
84
87
|
}, t), {
|
85
|
-
"append-outer":
|
86
|
-
|
88
|
+
"append-outer": a(() => [
|
89
|
+
n(e.$slots, "append-outer")
|
87
90
|
]),
|
88
|
-
append:
|
89
|
-
|
91
|
+
append: a(() => [
|
92
|
+
n(e.$slots, "append")
|
90
93
|
]),
|
91
|
-
prefix:
|
92
|
-
|
94
|
+
prefix: a(() => [
|
95
|
+
n(e.$slots, "prefix")
|
93
96
|
]),
|
94
|
-
suffix:
|
95
|
-
|
97
|
+
suffix: a(() => [
|
98
|
+
n(e.$slots, "suffix")
|
96
99
|
]),
|
97
|
-
prepend:
|
98
|
-
|
100
|
+
prepend: a(() => [
|
101
|
+
n(e.$slots, "prepend")
|
99
102
|
]),
|
100
|
-
"prepend-outer":
|
101
|
-
|
103
|
+
"prepend-outer": a(() => [
|
104
|
+
n(e.$slots, "prepend-outer")
|
102
105
|
]),
|
103
106
|
_: 2
|
104
|
-
}, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "type"])
|
107
|
+
}, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "compact", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required", "type"])
|
105
108
|
]),
|
106
109
|
_: 3
|
107
|
-
}, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
|
110
|
+
}, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
|
108
111
|
}
|
109
112
|
});
|
110
113
|
export {
|
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 "./index235.js";
|
4
|
+
import B from "./index305.js";
|
5
5
|
const V = /* @__PURE__ */ l({
|
6
6
|
__name: "BbToast",
|
7
7
|
props: {
|
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 "./index228.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 "./index241.js";
|
8
|
+
import { waitFor as K } from "./index233.js";
|
9
|
+
import Q from "./index273.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 "./index236.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 "./index304.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/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 "./index225.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 "./index241.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 "./index225.js";
|
3
3
|
const f = /* @__PURE__ */ p({
|
4
4
|
__name: "BbSpinner",
|
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 "./index219.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 "./index308.js";
|
2
|
+
import { isPlainObject as c } from "./index309.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
|
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
2
|
import z from "./index208.js";
|
3
3
|
/* empty css */
|
4
4
|
import I from "./index210.js";
|
5
|
-
import { vMaska as M } from "./
|
6
|
-
import { isHex as D } from "./
|
5
|
+
import { vMaska as M } from "./index232.js";
|
6
|
+
import { isHex as D } from "./index244.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 "./index225.js";
|
3
|
+
import { when as N } from "./index226.js";
|
4
|
+
import { booleanishToBoolean as S } from "./index227.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,11 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useOptions as
|
3
|
-
import
|
1
|
+
import { defineComponent as w, ref as v, toRef as l, openBlock as O, createBlock as x, unref as d, withCtx as i, renderSlot as s, normalizeProps as p, guardReactiveProps as f, createVNode as F, mergeProps as g } from "vue";
|
2
|
+
import { useOptions as M } from "./index237.js";
|
3
|
+
import H from "./index17.js";
|
4
4
|
/* empty css */
|
5
|
-
import
|
5
|
+
import P from "./index238.js";
|
6
6
|
/* empty css */
|
7
|
-
|
7
|
+
import { useLocale as z } from "./index240.js";
|
8
|
+
const N = /* @__PURE__ */ w({
|
8
9
|
__name: "BaseCheckboxGroup",
|
9
10
|
props: {
|
10
11
|
ariaDescribedby: {},
|
@@ -21,66 +22,69 @@ const A = /* @__PURE__ */ $({
|
|
21
22
|
items: { type: [Array, Function], default: () => [] },
|
22
23
|
itemText: {},
|
23
24
|
itemValue: {},
|
24
|
-
loadingText: {
|
25
|
+
loadingText: {},
|
25
26
|
max: {},
|
26
27
|
modelValue: {},
|
27
28
|
modelValueDebounceTime: { default: 0 },
|
28
29
|
name: {},
|
29
|
-
noDataText: {
|
30
|
-
readonly: {}
|
30
|
+
noDataText: {},
|
31
|
+
readonly: { type: Boolean }
|
31
32
|
},
|
32
33
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
33
|
-
setup(
|
34
|
-
const
|
35
|
-
innerLoading:
|
36
|
-
options:
|
37
|
-
selectOption:
|
34
|
+
setup(y, { emit: T }) {
|
35
|
+
const n = y, t = T, { t: b } = z(), h = v(), r = v(!1), {
|
36
|
+
innerLoading: k,
|
37
|
+
options: D,
|
38
|
+
selectOption: L,
|
38
39
|
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:
|
40
|
+
} = M({
|
41
|
+
dependencies: l(n, "dependencies"),
|
42
|
+
depsDebounceTime: n.depsDebounceTime,
|
43
|
+
disabled: l(n, "disabled"),
|
44
|
+
emit: t,
|
45
|
+
enforceCoherence: n.enforceCoherence,
|
46
|
+
items: l(n, "items"),
|
47
|
+
itemText: n.itemText,
|
48
|
+
itemValue: n.itemValue,
|
49
|
+
max: n.max,
|
50
|
+
modelValue: l(n, "modelValue"),
|
51
|
+
modelValueDebounceTime: n.modelValueDebounceTime,
|
51
52
|
multiple: !0,
|
52
53
|
prefill: !0,
|
53
54
|
queryDebounceTime: 0,
|
54
55
|
resetQueryOnOptionSelected: !1,
|
55
56
|
stash: !1
|
56
|
-
}),
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
57
|
+
}), E = (e) => {
|
58
|
+
if (n.id)
|
59
|
+
return [n.id, e.valueHash].filter(Boolean).join("-");
|
60
|
+
}, V = (e, a) => {
|
61
|
+
t("change", e), a.selected ? C(a) : L(a);
|
62
|
+
}, B = {
|
63
|
+
onBlur: (e) => t("blur", e),
|
64
|
+
onClick: (e) => t("click", e),
|
61
65
|
onFocus: (e) => {
|
62
|
-
|
66
|
+
t("focus", e), r.value || (document.addEventListener("focusin", u, { passive: !0 }), document.addEventListener("click", c, { passive: !0 }), r.value = !0);
|
63
67
|
},
|
64
|
-
onInput: (e) =>
|
65
|
-
onKeydown: (e) =>
|
66
|
-
onMousedown: (e) =>
|
67
|
-
onMouseup: (e) =>
|
68
|
-
}, d = (e) => {
|
69
|
-
var t;
|
70
|
-
e.target instanceof HTMLElement && ((t = m.value) != null && t.contains(e.target) || (o("inactive"), r.value = !1, document.removeEventListener("focusin", d), document.removeEventListener("click", u)));
|
68
|
+
onInput: (e) => t("input", e),
|
69
|
+
onKeydown: (e) => t("keydown", e),
|
70
|
+
onMousedown: (e) => t("mousedown", e),
|
71
|
+
onMouseup: (e) => t("mouseup", e)
|
71
72
|
}, u = (e) => {
|
72
|
-
var
|
73
|
-
e.target instanceof HTMLElement && ((
|
73
|
+
var a;
|
74
|
+
e.target instanceof HTMLElement && ((a = h.value) != null && a.contains(e.target) || (t("inactive"), r.value = !1, document.removeEventListener("focusin", u), document.removeEventListener("click", c)));
|
75
|
+
}, c = (e) => {
|
76
|
+
var a;
|
77
|
+
e.target instanceof HTMLElement && ((a = h.value) != null && a.contains(e.target) || (t("inactive"), r.value = !1, document.removeEventListener("focusin", u), document.removeEventListener("click", c)));
|
74
78
|
};
|
75
|
-
return (e,
|
79
|
+
return (e, a) => (O(), x(P, {
|
76
80
|
class: "bb-base-checkbox-group",
|
77
81
|
direction: e.direction,
|
78
82
|
"has-errors": e.hasErrors,
|
79
83
|
"hide-label": e.hideLabel,
|
80
|
-
loading: !!
|
81
|
-
"loading-text": e.loadingText,
|
82
|
-
"no-data-text": e.noDataText,
|
83
|
-
options:
|
84
|
+
loading: !!d(k),
|
85
|
+
"loading-text": e.loadingText || d(b)("common.loadingText"),
|
86
|
+
"no-data-text": e.noDataText || d(b)("common.noDataText"),
|
87
|
+
options: d(D)
|
84
88
|
}, {
|
85
89
|
prepend: i(() => [
|
86
90
|
s(e.$slots, "prepend")
|
@@ -91,43 +95,46 @@ const A = /* @__PURE__ */ $({
|
|
91
95
|
"no-data": i(() => [
|
92
96
|
s(e.$slots, "no-data")
|
93
97
|
]),
|
94
|
-
|
95
|
-
s(e.$slots, "
|
98
|
+
label: i((o) => [
|
99
|
+
s(e.$slots, "label", p(f(o)))
|
96
100
|
]),
|
97
|
-
|
98
|
-
|
99
|
-
|
101
|
+
"option:prepend": i((o) => [
|
102
|
+
s(e.$slots, "option:prepend", p(f(o)))
|
103
|
+
]),
|
104
|
+
input: i(({ option: o, index: $ }) => [
|
105
|
+
F(H, g({
|
106
|
+
id: E(o),
|
100
107
|
"aria-describedby": e.ariaDescribedby,
|
101
|
-
autofocus: e.autofocus &&
|
102
|
-
checked:
|
108
|
+
autofocus: e.autofocus && !$,
|
109
|
+
checked: o.selected,
|
103
110
|
color: e.color,
|
104
|
-
disabled:
|
111
|
+
disabled: o.disabled,
|
105
112
|
"has-errors": e.hasErrors,
|
106
113
|
name: e.name,
|
107
114
|
readonly: e.readonly,
|
108
|
-
"true-value":
|
109
|
-
},
|
110
|
-
onChange: (
|
115
|
+
"true-value": o.value
|
116
|
+
}, B, {
|
117
|
+
onChange: (m) => V(m, o)
|
111
118
|
}), {
|
112
|
-
icon: i((
|
113
|
-
s(e.$slots, "icon",
|
114
|
-
item:
|
115
|
-
text:
|
116
|
-
},
|
119
|
+
icon: i((m) => [
|
120
|
+
s(e.$slots, "icon", g({
|
121
|
+
item: o.item,
|
122
|
+
text: o.text
|
123
|
+
}, m))
|
117
124
|
]),
|
118
125
|
_: 2
|
119
126
|
}, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
|
120
127
|
]),
|
121
|
-
"option:append": i((
|
122
|
-
s(e.$slots, "option:
|
128
|
+
"option:append": i((o) => [
|
129
|
+
s(e.$slots, "option:append", p(f(o)))
|
123
130
|
]),
|
124
131
|
append: i(() => [
|
125
|
-
s(e.$slots, "
|
132
|
+
s(e.$slots, "append")
|
126
133
|
]),
|
127
134
|
_: 3
|
128
135
|
}, 8, ["direction", "has-errors", "hide-label", "loading", "loading-text", "no-data-text", "options"]));
|
129
136
|
}
|
130
137
|
});
|
131
138
|
export {
|
132
|
-
|
139
|
+
N as default
|
133
140
|
};
|
package/dist/index208.js
CHANGED
@@ -5,7 +5,7 @@ import a from "./index127.js";
|
|
5
5
|
/* empty css */
|
6
6
|
import $ from "./index129.js";
|
7
7
|
/* empty css */
|
8
|
-
import b from "./
|
8
|
+
import b from "./index307.js";
|
9
9
|
const y = { class: "bb-common-input-inner-container__prefix" }, k = { class: "bb-common-input-inner-container__suffix" }, S = /* @__PURE__ */ f({
|
10
10
|
__name: "CommonInputInnerContainer",
|
11
11
|
props: {
|