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/index45.js
CHANGED
@@ -1,26 +1,27 @@
|
|
1
|
-
import { defineComponent as Y, ref as i, computed as k, toRef as B, openBlock as f, createBlock as C, normalizeClass as x, withCtx as a, renderSlot as s, createVNode as O, unref as v, createElementVNode as $, createElementBlock as ee, Fragment as
|
1
|
+
import { defineComponent as Y, ref as i, computed as k, toRef as B, openBlock as f, createBlock as C, normalizeClass as x, withCtx as a, renderSlot as s, createVNode as O, unref as v, createElementVNode as $, createElementBlock as ee, Fragment as oe, createCommentVNode as te, withDirectives as ne, mergeProps as le, isRef as ae, withModifiers as d, withKeys as y, vModelDynamic as re, nextTick as ie } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
import ue from "./index128.js";
|
5
5
|
/* empty css */
|
6
6
|
import { isNotNil as se } from "./index135.js";
|
7
|
-
import { last as de } from "./
|
8
|
-
import { useOptions as pe } from "./
|
7
|
+
import { last as de } from "./index216.js";
|
8
|
+
import { useOptions as pe } from "./index234.js";
|
9
9
|
import ce from "./index246.js";
|
10
10
|
/* empty css */
|
11
11
|
import me from "./index248.js";
|
12
12
|
/* empty css */
|
13
|
-
import fe from "./
|
13
|
+
import fe from "./index220.js";
|
14
14
|
/* empty css */
|
15
|
-
import ve from "./
|
15
|
+
import ve from "./index222.js";
|
16
16
|
const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], qe = /* @__PURE__ */ Y({
|
17
17
|
__name: "BaseTag",
|
18
18
|
props: {
|
19
19
|
"append:icon": {},
|
20
20
|
ariaDescribedby: {},
|
21
|
-
autocomplete: {},
|
21
|
+
autocomplete: { default: "off" },
|
22
22
|
autofocus: {},
|
23
23
|
comma: { type: Boolean },
|
24
|
+
compact: { type: Boolean },
|
24
25
|
disabled: { type: Boolean },
|
25
26
|
divider: { default: "Enter" },
|
26
27
|
hasErrors: { type: Boolean },
|
@@ -32,85 +33,85 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
32
33
|
name: {},
|
33
34
|
placeholder: {},
|
34
35
|
"prepend:icon": {},
|
35
|
-
readonly: {},
|
36
|
+
readonly: { type: Boolean },
|
36
37
|
required: { type: Boolean }
|
37
38
|
},
|
38
39
|
emits: ["blur", "change", "click", "duplicate", "focus", "inactive", "input", "keydown", "keyup", "update:modelValue"],
|
39
40
|
setup(D, { emit: I }) {
|
40
|
-
const
|
41
|
-
if (
|
41
|
+
const o = D, l = I;
|
42
|
+
if (o.multiple && !Array.isArray(o.modelValue))
|
42
43
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
43
|
-
const b = i(null), T = i(null), L = k(() =>
|
44
|
-
() =>
|
44
|
+
const b = i(null), T = i(null), L = k(() => o.placeholder), V = i(null), w = i(null), r = k(
|
45
|
+
() => o.comma ? V.value : w.value
|
45
46
|
), p = i(null), E = () => {
|
46
47
|
p.value instanceof HTMLInputElement && p.value.focus();
|
47
|
-
}, N = !
|
48
|
-
query:
|
48
|
+
}, N = !o.multiple && se(o.modelValue) || o.multiple && !!o.modelValue.length, q = i([]), {
|
49
|
+
query: t,
|
49
50
|
alignQueryToState: A,
|
50
51
|
addCurrentQueryToManualItems: K,
|
51
52
|
selectedOptions: u,
|
52
53
|
selectOption: M,
|
53
54
|
unselectOption: P,
|
54
|
-
valueIsSelected:
|
55
|
-
manualItems:
|
55
|
+
valueIsSelected: S,
|
56
|
+
manualItems: _
|
56
57
|
} = pe({
|
57
58
|
emit: l,
|
58
59
|
itemText: void 0,
|
59
60
|
itemValue: void 0,
|
60
|
-
modelValue: B(
|
61
|
-
multiple:
|
61
|
+
modelValue: B(o, "modelValue"),
|
62
|
+
multiple: o.multiple,
|
62
63
|
resetQueryOnOptionSelected: !0,
|
63
64
|
stash: !1,
|
64
|
-
items: B(
|
65
|
+
items: B(o, "modelValue"),
|
65
66
|
enforceCoherence: !1,
|
66
67
|
prefill: N,
|
67
68
|
modelValueDebounceTime: 0,
|
68
69
|
dependencies: q,
|
69
70
|
depsDebounceTime: 0,
|
70
71
|
queryDebounceTime: 0,
|
71
|
-
disabled: B(
|
72
|
+
disabled: B(o, "disabled")
|
72
73
|
}), g = i(!1), F = () => {
|
73
74
|
g.value = !0;
|
74
75
|
}, H = () => {
|
75
76
|
g.value = !1, l("inactive");
|
76
|
-
}, h = k(() => !(
|
77
|
+
}, h = k(() => !(o.readonly || o.disabled || !r.value && o.multiple)), Q = (e) => {
|
77
78
|
var n;
|
78
|
-
h.value && (!
|
79
|
+
h.value && (!o.multiple || t.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusPrevious())));
|
79
80
|
}, R = (e) => {
|
80
81
|
var n;
|
81
|
-
h.value && (!
|
82
|
+
h.value && (!o.multiple || t.value || (e.preventDefault(), u.value.length && ((n = r.value) == null || n.focusNext())));
|
82
83
|
}, U = async () => {
|
83
84
|
var e, n;
|
84
|
-
!h.value ||
|
85
|
+
!h.value || t.value || !u.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await ie(), (n = r.value) == null || n.focusPrevious());
|
85
86
|
}, z = () => {
|
86
87
|
var e;
|
87
88
|
(e = r.value) == null || e.blur();
|
88
89
|
}, Z = async (e) => {
|
89
90
|
var n;
|
90
|
-
if (l("keydown", e),
|
91
|
+
if (l("keydown", e), o.readonly || o.disabled) {
|
91
92
|
e.preventDefault();
|
92
93
|
return;
|
93
94
|
}
|
94
|
-
if (/^[A-Za-z0-9]$/.test(e.key) && ((n = r.value) == null || n.blur()), e.key ===
|
95
|
-
if (
|
96
|
-
const m =
|
95
|
+
if (/^[A-Za-z0-9]$/.test(e.key) && ((n = r.value) == null || n.blur()), e.key === o.divider || e.key === "Unidentified" && t.value.includes(o.divider)) {
|
96
|
+
if (o.divider.length === 1 && t.value.includes(o.divider)) {
|
97
|
+
const m = t.value.split(o.divider)[0];
|
97
98
|
if (m)
|
98
|
-
|
99
|
+
t.value = m;
|
99
100
|
else {
|
100
|
-
|
101
|
+
t.value = "";
|
101
102
|
return;
|
102
103
|
}
|
103
104
|
}
|
104
|
-
if (!
|
105
|
+
if (!t.value) {
|
105
106
|
l("keydown", e);
|
106
107
|
return;
|
107
108
|
}
|
108
|
-
if (e.preventDefault(),
|
109
|
-
l("duplicate",
|
109
|
+
if (e.preventDefault(), S(t.value))
|
110
|
+
l("duplicate", t.value), t.value = "";
|
110
111
|
else {
|
111
|
-
if (
|
112
|
+
if (o.max && u.value.length >= o.max)
|
112
113
|
return;
|
113
|
-
K(), j(de(
|
114
|
+
K(), j(de(_.value));
|
114
115
|
}
|
115
116
|
}
|
116
117
|
}, j = (e) => {
|
@@ -120,7 +121,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
120
121
|
}, J = (e) => {
|
121
122
|
l("focus", e), F(), document.addEventListener("click", c), document.addEventListener("focusin", c);
|
122
123
|
}, W = (e) => {
|
123
|
-
l("click", e), !(
|
124
|
+
l("click", e), !(o.disabled || o.readonly) && p.value instanceof HTMLElement && p.value.focus();
|
124
125
|
}, c = async (e) => {
|
125
126
|
if (e.target instanceof Node && b.value && !b.value.$el.contains(e.target)) {
|
126
127
|
H(), document.removeEventListener("click", c), document.removeEventListener("focusin", c), A();
|
@@ -141,7 +142,8 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
141
142
|
"bb-base-tag--disabled": e.disabled,
|
142
143
|
"bb-base-tag--loading": e.loading,
|
143
144
|
"bb-base-tag--errors": e.hasErrors,
|
144
|
-
"bb-base-tag--readonly": e.readonly
|
145
|
+
"bb-base-tag--readonly": e.readonly,
|
146
|
+
"bb-base-tag--compact": e.compact
|
145
147
|
}),
|
146
148
|
onClick: W
|
147
149
|
}, {
|
@@ -155,8 +157,8 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
155
157
|
O(fe, {
|
156
158
|
ref_key: "innerContainer",
|
157
159
|
ref: T,
|
158
|
-
"append:icon":
|
159
|
-
"prepend:icon":
|
160
|
+
"append:icon": o["append:icon"],
|
161
|
+
"prepend:icon": o["prepend:icon"],
|
160
162
|
"prevent-focus": !0
|
161
163
|
}, {
|
162
164
|
prepend: a(() => [
|
@@ -175,7 +177,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
175
177
|
O(v(ue), { tag: "span" }, {
|
176
178
|
default: a(() => [
|
177
179
|
$("span", ye, [
|
178
|
-
e.multiple ? (f(), ee(
|
180
|
+
e.multiple ? (f(), ee(oe, { key: 0 }, [
|
179
181
|
e.comma ? (f(), C(me, {
|
180
182
|
key: 0,
|
181
183
|
ref_key: "commaBox",
|
@@ -188,13 +190,13 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
188
190
|
options: v(u),
|
189
191
|
"onOption:unselected": G
|
190
192
|
}, null, 8, ["options"]))
|
191
|
-
], 64)) :
|
193
|
+
], 64)) : te("", !0),
|
192
194
|
ne($("input", le({
|
193
195
|
id: e.id,
|
194
196
|
ref_key: "input",
|
195
197
|
ref: p
|
196
198
|
}, X, {
|
197
|
-
"onUpdate:modelValue": n[0] || (n[0] = (m) => ae(
|
199
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => ae(t) ? t.value = m : null),
|
198
200
|
"aria-describedby": e.ariaDescribedby,
|
199
201
|
autocomplete: e.autocomplete,
|
200
202
|
autofocus: e.autofocus,
|
@@ -214,7 +216,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
|
|
214
216
|
y(d(R, ["stop"]), ["right"])
|
215
217
|
]
|
216
218
|
}), null, 16, be), [
|
217
|
-
[re, v(
|
219
|
+
[re, v(t)]
|
218
220
|
])
|
219
221
|
])
|
220
222
|
]),
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { defineComponent as w, ref as
|
2
|
-
import v from "./
|
3
|
-
import E from "./
|
1
|
+
import { defineComponent as w, ref as y, computed as u, onMounted as g, watch as B, nextTick as x, openBlock as V, createBlock as k, normalizeClass as $, withCtx as t, renderSlot as r, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
|
2
|
+
import v from "./index222.js";
|
3
|
+
import E from "./index220.js";
|
4
4
|
/* empty css */
|
5
5
|
import G from "./index128.js";
|
6
6
|
/* empty css */
|
@@ -12,6 +12,7 @@ const M = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
12
12
|
autocomplete: {},
|
13
13
|
autoGrow: { type: Boolean },
|
14
14
|
autofocus: {},
|
15
|
+
compact: { type: Boolean },
|
15
16
|
disabled: { type: Boolean },
|
16
17
|
hasErrors: { type: Boolean },
|
17
18
|
id: {},
|
@@ -20,7 +21,7 @@ const M = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
20
21
|
name: {},
|
21
22
|
placeholder: {},
|
22
23
|
"prepend:icon": {},
|
23
|
-
readonly: {},
|
24
|
+
readonly: { type: Boolean },
|
24
25
|
required: { type: Boolean },
|
25
26
|
rows: {}
|
26
27
|
},
|
@@ -31,28 +32,29 @@ const M = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
31
32
|
throw new Error(
|
32
33
|
"Textarea: You cannot set rows and auto-grow attributes together. You either use rows and let the user resize or define a minimum height in CSS with auto-grow."
|
33
34
|
);
|
34
|
-
const n =
|
35
|
+
const n = y(null), c = u(() => ({
|
35
36
|
"bb-base-textarea": !0,
|
36
37
|
"bb-base-textarea--auto-grow": o.autoGrow,
|
37
38
|
"bb-base-textarea--disabled": o.disabled,
|
38
39
|
"bb-base-textarea--errors": o.hasErrors,
|
39
40
|
"bb-base-textarea--loading": o.loading,
|
40
|
-
"bb-base-textarea--readonly": o.readonly
|
41
|
+
"bb-base-textarea--readonly": o.readonly,
|
42
|
+
"bb-base-textarea--compact": o.compact
|
41
43
|
})), m = u(
|
42
44
|
() => o.modelValue ? o.modelValue : ""
|
43
45
|
);
|
44
|
-
|
45
|
-
o.autoGrow && o.modelValue &&
|
46
|
-
}),
|
46
|
+
g(() => {
|
47
|
+
o.autoGrow && o.modelValue && l();
|
48
|
+
}), B(
|
47
49
|
() => o.modelValue,
|
48
50
|
() => {
|
49
|
-
o.autoGrow &&
|
51
|
+
o.autoGrow && x(l);
|
50
52
|
}
|
51
53
|
);
|
52
54
|
function b(e) {
|
53
55
|
if (e.stopPropagation(), e.target instanceof HTMLTextAreaElement) {
|
54
|
-
let
|
55
|
-
a("input", e), a("update:modelValue",
|
56
|
+
let s = e.target.value;
|
57
|
+
a("input", e), a("update:modelValue", s || null);
|
56
58
|
}
|
57
59
|
}
|
58
60
|
function f(e) {
|
@@ -66,38 +68,38 @@ const M = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
66
68
|
onMousedown: (e) => a("mousedown", e),
|
67
69
|
onMouseup: (e) => a("mouseup", e)
|
68
70
|
};
|
69
|
-
function
|
71
|
+
function l() {
|
70
72
|
n.value && (n.value.style.height = "0px", n.value.style.height = `${n.value.scrollHeight}px`);
|
71
73
|
}
|
72
|
-
return (e,
|
74
|
+
return (e, s) => (V(), k(v, {
|
73
75
|
class: $(c.value)
|
74
76
|
}, {
|
75
|
-
"prepend-outer":
|
76
|
-
|
77
|
+
"prepend-outer": t(() => [
|
78
|
+
r(e.$slots, "prepend-outer")
|
77
79
|
]),
|
78
|
-
"append-outer":
|
79
|
-
|
80
|
+
"append-outer": t(() => [
|
81
|
+
r(e.$slots, "append-outer")
|
80
82
|
]),
|
81
|
-
default:
|
83
|
+
default: t(() => [
|
82
84
|
i(E, {
|
83
85
|
"append:icon": o["append:icon"],
|
84
86
|
"prepend:icon": o["prepend:icon"]
|
85
87
|
}, {
|
86
|
-
prepend:
|
87
|
-
|
88
|
+
prepend: t(() => [
|
89
|
+
r(e.$slots, "prepend")
|
88
90
|
]),
|
89
|
-
prefix:
|
90
|
-
|
91
|
+
prefix: t(() => [
|
92
|
+
r(e.$slots, "prefix")
|
91
93
|
]),
|
92
|
-
append:
|
93
|
-
|
94
|
+
append: t(() => [
|
95
|
+
r(e.$slots, "append")
|
94
96
|
]),
|
95
|
-
suffix:
|
96
|
-
|
97
|
+
suffix: t(() => [
|
98
|
+
r(e.$slots, "suffix")
|
97
99
|
]),
|
98
|
-
default:
|
100
|
+
default: t(() => [
|
99
101
|
i(G, { tag: "span" }, {
|
100
|
-
default:
|
102
|
+
default: t(() => [
|
101
103
|
C("textarea", T({
|
102
104
|
id: e.id,
|
103
105
|
ref_key: "textarea",
|
package/dist/index49.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { defineComponent as m, computed as
|
2
|
-
import B from "./
|
1
|
+
import { defineComponent as m, computed as c, openBlock as b, createElementBlock as f, Fragment as y, createVNode as r, normalizeClass as h, withCtx as n, renderSlot as t, createElementVNode as l, mergeProps as g } from "vue";
|
2
|
+
import B from "./index220.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index222.js";
|
5
5
|
const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], V = /* @__PURE__ */ m({
|
6
6
|
__name: "BaseTextInput",
|
7
7
|
props: {
|
@@ -9,6 +9,7 @@ const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
9
9
|
ariaDescribedby: {},
|
10
10
|
autocomplete: {},
|
11
11
|
autofocus: {},
|
12
|
+
compact: { type: Boolean },
|
12
13
|
disabled: { type: Boolean },
|
13
14
|
hasErrors: { type: Boolean },
|
14
15
|
id: {},
|
@@ -17,18 +18,19 @@ const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
17
18
|
name: {},
|
18
19
|
placeholder: {},
|
19
20
|
"prepend:icon": {},
|
20
|
-
readonly: {},
|
21
|
+
readonly: { type: Boolean },
|
21
22
|
required: { type: Boolean },
|
22
23
|
type: { default: "text" }
|
23
24
|
},
|
24
25
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
25
26
|
setup(s, { emit: d }) {
|
26
|
-
const a = s, o = d, u =
|
27
|
+
const a = s, o = d, u = c(() => ({
|
27
28
|
"bb-base-text-input": !0,
|
28
29
|
"bb-base-text-input--disabled": a.disabled,
|
29
30
|
"bb-base-text-input--errors": a.hasErrors,
|
30
31
|
"bb-base-text-input--loading": a.loading,
|
31
|
-
"bb-base-text-input--readonly": a.readonly
|
32
|
+
"bb-base-text-input--readonly": a.readonly,
|
33
|
+
"bb-base-text-input--compact": a.compact
|
32
34
|
})), i = {
|
33
35
|
onBlur: (e) => o("blur", e),
|
34
36
|
onChange: (e) => o("change", e),
|
@@ -41,32 +43,32 @@ const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
41
43
|
onMousedown: (e) => o("mousedown", e),
|
42
44
|
onMouseup: (e) => o("mouseup", e)
|
43
45
|
};
|
44
|
-
return (e,
|
45
|
-
|
46
|
+
return (e, p) => (b(), f(y, null, [
|
47
|
+
r(k, {
|
46
48
|
class: h(u.value)
|
47
49
|
}, {
|
48
50
|
"prepend-outer": n(() => [
|
49
|
-
|
51
|
+
t(e.$slots, "prepend-outer")
|
50
52
|
]),
|
51
53
|
"append-outer": n(() => [
|
52
|
-
|
54
|
+
t(e.$slots, "append-outer")
|
53
55
|
]),
|
54
56
|
default: n(() => [
|
55
|
-
|
57
|
+
r(B, {
|
56
58
|
"append:icon": a["append:icon"],
|
57
59
|
"prepend:icon": a["prepend:icon"]
|
58
60
|
}, {
|
59
61
|
prepend: n(() => [
|
60
|
-
|
62
|
+
t(e.$slots, "prepend")
|
61
63
|
]),
|
62
64
|
prefix: n(() => [
|
63
|
-
|
65
|
+
t(e.$slots, "prefix")
|
64
66
|
]),
|
65
67
|
append: n(() => [
|
66
|
-
|
68
|
+
t(e.$slots, "append")
|
67
69
|
]),
|
68
70
|
suffix: n(() => [
|
69
|
-
|
71
|
+
t(e.$slots, "suffix")
|
70
72
|
]),
|
71
73
|
default: n(() => [
|
72
74
|
l("input", g({
|
@@ -92,7 +94,7 @@ const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
92
94
|
]),
|
93
95
|
_: 3
|
94
96
|
}, 8, ["class"]),
|
95
|
-
|
97
|
+
p[0] || (p[0] = l("span", null, null, -1))
|
96
98
|
], 64));
|
97
99
|
}
|
98
100
|
});
|
package/dist/index63.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as c, ref as f, computed as
|
1
|
+
import { defineComponent as c, ref as f, computed as y, openBlock as v, createBlock as k, withCtx as n, renderSlot as r, normalizeProps as B, guardReactiveProps as w, createVNode as V, mergeProps as i } from "vue";
|
2
2
|
import g from "./index17.js";
|
3
3
|
/* empty css */
|
4
4
|
import P from "./index27.js";
|
@@ -24,7 +24,7 @@ const E = /* @__PURE__ */ c({
|
|
24
24
|
modelValue: {},
|
25
25
|
name: {},
|
26
26
|
persistentHint: { type: Boolean },
|
27
|
-
readonly: {},
|
27
|
+
readonly: { type: Boolean },
|
28
28
|
required: { type: Boolean },
|
29
29
|
reverse: { type: Boolean, default: !0 },
|
30
30
|
submitWhenFalse: { type: Boolean },
|
@@ -32,7 +32,7 @@ const E = /* @__PURE__ */ c({
|
|
32
32
|
},
|
33
33
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
34
34
|
setup(s, { emit: t }) {
|
35
|
-
const u = s, o = t, a = f(!1), d =
|
35
|
+
const u = s, o = t, a = f(!1), d = y(() => u.persistentHint || a.value), p = {
|
36
36
|
onBlur: (e) => {
|
37
37
|
a.value = !1, o("blur", e);
|
38
38
|
},
|
@@ -47,7 +47,7 @@ const E = /* @__PURE__ */ c({
|
|
47
47
|
onMouseup: (e) => o("mouseup", e),
|
48
48
|
"onUpdate:modelValue": (e) => o("update:modelValue", e)
|
49
49
|
};
|
50
|
-
return (e, C) => (
|
50
|
+
return (e, C) => (v(), k(P, {
|
51
51
|
id: e.id,
|
52
52
|
class: "bb-checkbox",
|
53
53
|
direction: e.direction,
|
@@ -64,10 +64,10 @@ const E = /* @__PURE__ */ c({
|
|
64
64
|
"show-hint": d.value,
|
65
65
|
tag: "label"
|
66
66
|
}, {
|
67
|
-
label:
|
68
|
-
|
67
|
+
label: n((l) => [
|
68
|
+
r(e.$slots, "label", B(w(l)))
|
69
69
|
]),
|
70
|
-
input:
|
70
|
+
input: n(({ id: l, hasErrors: m, ariaDescribedby: b }) => [
|
71
71
|
V(g, i({
|
72
72
|
id: l,
|
73
73
|
"aria-describedby": b,
|
@@ -85,8 +85,8 @@ const E = /* @__PURE__ */ c({
|
|
85
85
|
"submit-when-false": e.submitWhenFalse,
|
86
86
|
"true-value": e.trueValue
|
87
87
|
}, p), {
|
88
|
-
icon:
|
89
|
-
|
88
|
+
icon: n((h) => [
|
89
|
+
r(e.$slots, "icon", i(h, { text: e.label }))
|
90
90
|
]),
|
91
91
|
_: 2
|
92
92
|
}, 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "false-value", "has-errors", "indeterminate", "model-value", "name", "readonly", "required", "submit-when-false", "true-value"])
|
package/dist/index65.js
CHANGED
@@ -8,6 +8,7 @@ const E = /* @__PURE__ */ f({
|
|
8
8
|
props: {
|
9
9
|
autofocus: {},
|
10
10
|
color: {},
|
11
|
+
compact: { type: Boolean },
|
11
12
|
dependencies: {},
|
12
13
|
depsDebounceTime: {},
|
13
14
|
disabled: { type: Boolean },
|
@@ -30,12 +31,12 @@ const E = /* @__PURE__ */ f({
|
|
30
31
|
name: {},
|
31
32
|
noDataText: {},
|
32
33
|
persistentHint: { type: Boolean },
|
33
|
-
readonly: {},
|
34
|
+
readonly: { type: Boolean },
|
34
35
|
reverse: { type: Boolean }
|
35
36
|
},
|
36
37
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
37
|
-
setup(
|
38
|
-
const
|
38
|
+
setup(d, { emit: p }) {
|
39
|
+
const m = d, n = p, s = v(!1), u = g(() => m.persistentHint || s.value), c = {
|
39
40
|
onBlur: (e) => n("blur", e),
|
40
41
|
onChange: (e) => n("change", e),
|
41
42
|
onClick: (e) => n("click", e),
|
@@ -54,6 +55,7 @@ const E = /* @__PURE__ */ f({
|
|
54
55
|
return (e, k) => (y(), B(V, {
|
55
56
|
id: e.id,
|
56
57
|
class: "bb-checkbox-group",
|
58
|
+
compact: e.compact,
|
57
59
|
direction: "vertical",
|
58
60
|
errors: e.errors,
|
59
61
|
"has-errors": e.hasErrors,
|
@@ -63,15 +65,15 @@ const E = /* @__PURE__ */ f({
|
|
63
65
|
"label-tag": "legend",
|
64
66
|
name: e.name,
|
65
67
|
reverse: e.reverse,
|
66
|
-
"show-hint":
|
68
|
+
"show-hint": u.value,
|
67
69
|
tag: "fieldset"
|
68
70
|
}, {
|
69
|
-
label: a((
|
70
|
-
i(e.$slots, "legend", l(r(
|
71
|
+
label: a((t) => [
|
72
|
+
i(e.$slots, "legend", l(r(t)))
|
71
73
|
]),
|
72
|
-
input: a(({ id:
|
74
|
+
input: a(({ id: t, hasErrors: b, ariaDescribedby: h }) => [
|
73
75
|
$(T, w({
|
74
|
-
id:
|
76
|
+
id: t,
|
75
77
|
"aria-describedby": h,
|
76
78
|
autofocus: e.autofocus,
|
77
79
|
color: e.color,
|
@@ -121,7 +123,7 @@ const E = /* @__PURE__ */ f({
|
|
121
123
|
}, 1040, ["id", "aria-describedby", "autofocus", "color", "dependencies", "deps-debounce-time", "direction", "disabled", "enforce-coherence", "has-errors", "hide-label", "item-text", "item-value", "items", "loading-text", "max", "model-value", "model-value-debounce-time", "name", "no-data-text", "readonly"])
|
122
124
|
]),
|
123
125
|
_: 3
|
124
|
-
}, 8, ["id", "errors", "has-errors", "hide-label", "hint", "label", "name", "reverse", "show-hint"]));
|
126
|
+
}, 8, ["id", "compact", "errors", "has-errors", "hide-label", "hint", "label", "name", "reverse", "show-hint"]));
|
125
127
|
}
|
126
128
|
});
|
127
129
|
export {
|
package/dist/index67.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 "./index15.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,13 +25,13 @@ 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
|
},
|
31
32
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
32
|
-
setup(
|
33
|
-
const
|
33
|
+
setup(s, { emit: i }) {
|
34
|
+
const r = s, o = i, l = h(!1), d = b(() => r.persistentHint || l.value), t = {
|
34
35
|
onBlur: (e) => {
|
35
36
|
l.value = !1, o("blur", e);
|
36
37
|
},
|
@@ -48,6 +49,7 @@ const E = /* @__PURE__ */ c({
|
|
48
49
|
return (e, V) => (f(), y($, {
|
49
50
|
id: e.id,
|
50
51
|
class: "bb-color-input",
|
52
|
+
compact: e.compact,
|
51
53
|
direction: e.direction,
|
52
54
|
errors: e.errors,
|
53
55
|
"has-errors": e.hasErrors,
|
@@ -58,51 +60,52 @@ const E = /* @__PURE__ */ c({
|
|
58
60
|
"model-value": e.modelValue,
|
59
61
|
name: e.name,
|
60
62
|
reverse: e.reverse,
|
61
|
-
"show-hint":
|
63
|
+
"show-hint": d.value
|
62
64
|
}, {
|
63
|
-
label:
|
64
|
-
n(e.$slots, "label", v(B(
|
65
|
+
label: a((p) => [
|
66
|
+
n(e.$slots, "label", v(B(p)))
|
65
67
|
]),
|
66
|
-
input:
|
68
|
+
input: a(({ id: p, hasErrors: u, ariaDescribedby: m }) => [
|
67
69
|
w(k, g({
|
68
|
-
id:
|
69
|
-
"append:icon":
|
70
|
+
id: p,
|
71
|
+
"append:icon": r["append:icon"],
|
70
72
|
"aria-describedby": m,
|
71
73
|
autocomplete: e.autocomplete,
|
72
74
|
autofocus: e.autofocus,
|
75
|
+
compact: e.compact,
|
73
76
|
disabled: e.disabled,
|
74
|
-
"has-errors":
|
77
|
+
"has-errors": u,
|
75
78
|
loading: e.loading,
|
76
79
|
"model-value": e.modelValue,
|
77
80
|
name: e.name,
|
78
81
|
placeholder: e.placeholder,
|
79
|
-
"prepend:icon":
|
82
|
+
"prepend:icon": r["prepend:icon"],
|
80
83
|
readonly: e.readonly,
|
81
84
|
required: e.required
|
82
|
-
},
|
83
|
-
"append-outer":
|
85
|
+
}, t), {
|
86
|
+
"append-outer": a(() => [
|
84
87
|
n(e.$slots, "append-outer")
|
85
88
|
]),
|
86
|
-
append:
|
89
|
+
append: a(() => [
|
87
90
|
n(e.$slots, "append")
|
88
91
|
]),
|
89
|
-
prefix:
|
92
|
+
prefix: a(() => [
|
90
93
|
n(e.$slots, "prefix")
|
91
94
|
]),
|
92
|
-
suffix:
|
95
|
+
suffix: a(() => [
|
93
96
|
n(e.$slots, "suffix")
|
94
97
|
]),
|
95
|
-
prepend:
|
98
|
+
prepend: a(() => [
|
96
99
|
n(e.$slots, "prepend")
|
97
100
|
]),
|
98
|
-
"prepend-outer":
|
101
|
+
"prepend-outer": a(() => [
|
99
102
|
n(e.$slots, "prepend-outer")
|
100
103
|
]),
|
101
104
|
_: 2
|
102
|
-
}, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required"])
|
105
|
+
}, 1040, ["id", "append:icon", "aria-describedby", "autocomplete", "autofocus", "compact", "disabled", "has-errors", "loading", "model-value", "name", "placeholder", "prepend:icon", "readonly", "required"])
|
103
106
|
]),
|
104
107
|
_: 3
|
105
|
-
}, 8, ["id", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
|
108
|
+
}, 8, ["id", "compact", "direction", "errors", "has-errors", "hide-label", "hint", "label", "label-position", "model-value", "name", "reverse", "show-hint"]));
|
106
109
|
}
|
107
110
|
});
|
108
111
|
export {
|