bitboss-ui 2.0.115 → 2.0.117
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/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +31 -58
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +4 -0
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +17 -8
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +4 -0
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +22 -3
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +1 -1
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +8 -167
- package/dist/components/BaseTag/BaseTag.vue.d.ts +17 -3
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +4 -0
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +4 -0
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbButton/BbButton.vue.d.ts +4 -4
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +4 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +5 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +4 -0
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +4 -0
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +4 -0
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +0 -1
- package/dist/components/ClearableButton.vue.d.ts +2 -0
- package/dist/components/CommonInputInnerContainer.vue.d.ts +9 -1
- package/dist/index100.js +9 -9
- package/dist/index101.js +41 -37
- package/dist/index111.js +11 -11
- package/dist/index113.js +6 -4
- package/dist/index115.js +17 -15
- package/dist/index117.js +14 -12
- package/dist/index119.js +2 -2
- package/dist/index121.js +59 -61
- package/dist/index123.js +1 -1
- package/dist/index125.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 +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +38 -33
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index207.js +58 -79
- package/dist/index209.js +13 -25
- package/dist/index21.js +12 -12
- package/dist/index210.js +19 -16
- package/dist/index211.js +4 -48
- package/dist/index212.js +13 -15
- package/dist/index213.js +3 -3
- package/dist/index214.js +126 -12
- package/dist/index215.js +5 -16
- package/dist/index216.js +125 -5
- package/dist/index217.js +2 -2
- package/dist/index218.js +2 -2
- package/dist/index219.js +3 -3
- package/dist/index220.js +2 -2
- package/dist/index221.js +2 -19
- package/dist/index222.js +2 -27
- package/dist/index223.js +41 -2
- package/dist/index224.js +5 -7
- package/dist/index225.js +11 -246
- package/dist/index226.js +5 -52
- package/dist/index227.js +2 -44
- package/dist/index228.js +369 -5
- package/dist/index229.js +80 -54
- package/dist/index23.js +111 -107
- package/dist/index231.js +25 -2
- package/dist/index232.js +17 -4
- package/dist/index233.js +51 -2
- package/dist/index234.js +15 -53
- package/dist/index235.js +5 -0
- package/dist/index236.js +12 -13
- package/dist/index237.js +15 -19
- package/dist/index238.js +2 -4
- package/dist/index239.js +4 -3
- package/dist/index240.js +2 -41
- package/dist/index241.js +19 -6
- package/dist/index242.js +27 -7
- package/dist/index243.js +6 -13
- package/dist/index244.js +250 -3
- package/dist/index245.js +49 -123
- package/dist/index246.js +44 -125
- package/dist/index247.js +5 -2
- package/dist/index248.js +60 -5
- package/dist/index249.js +3 -369
- package/dist/index25.js +7 -7
- package/dist/index250.js +7 -2
- package/dist/index251.js +2 -2
- package/dist/index252.js +2 -2
- package/dist/index253.js +2 -18
- package/dist/index254.js +17 -105
- package/dist/index255.js +108 -0
- package/dist/{index256.js → index257.js} +2 -2
- package/dist/index259.js +11 -9
- package/dist/index260.js +9 -2
- package/dist/index261.js +3 -6
- package/dist/index262.js +6 -16
- package/dist/index263.js +15 -8
- package/dist/index264.js +9 -23
- package/dist/index265.js +23 -90
- package/dist/index266.js +92 -0
- package/dist/index268.js +9 -17
- package/dist/index269.js +224 -9
- package/dist/index27.js +1 -1
- package/dist/index270.js +3 -28
- package/dist/index272.js +7 -6
- package/dist/index273.js +176 -2
- package/dist/index274.js +7 -2
- package/dist/index275.js +11 -2
- package/dist/index276.js +281 -2
- package/dist/index277.js +6 -2
- package/dist/index278.js +2 -2
- package/dist/index279.js +2 -2
- package/dist/index280.js +2 -2
- package/dist/index281.js +2 -2
- package/dist/index282.js +2 -2
- package/dist/index283.js +2 -2
- package/dist/index284.js +125 -21
- package/dist/index285.js +433 -0
- package/dist/index286.js +2 -7
- package/dist/index287.js +22 -7
- package/dist/index289.js +3 -4
- package/dist/index29.js +48 -40
- package/dist/index290.js +17 -3
- package/dist/index291.js +11 -0
- package/dist/index292.js +23 -171
- package/dist/index293.js +3 -430
- package/dist/index294.js +436 -2
- package/dist/index295.js +125 -87
- package/dist/index296.js +200 -224
- package/dist/index297.js +2 -200
- package/dist/index298.js +2 -8
- package/dist/index299.js +2 -9
- package/dist/index300.js +2 -2
- package/dist/index301.js +2 -126
- package/dist/index302.js +1 -21
- package/dist/index303.js +24 -0
- package/dist/index305.js +8 -127
- package/dist/index306.js +89 -3
- package/dist/index307.js +1 -1
- package/dist/index308.js +3 -214
- package/dist/index309.js +214 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -3
- package/dist/index311.js +3 -58
- package/dist/index312.js +3 -5
- package/dist/index313.js +57 -7
- package/dist/index314.js +5 -53
- package/dist/index315.js +65 -51
- package/dist/index316.js +6 -32
- package/dist/index317.js +17 -5
- package/dist/index318.js +2 -66
- package/dist/index319.js +32 -6
- package/dist/index320.js +25 -18
- package/dist/index321.js +53 -4
- package/dist/index322.js +53 -5
- package/dist/index323.js +5 -2
- package/dist/index324.js +8 -3
- package/dist/index325.js +6 -46
- package/dist/index326.js +6 -0
- package/dist/index327.js +47 -2
- package/dist/index328.js +2 -480
- package/dist/index33.js +8 -8
- package/dist/index331.js +480 -2
- package/dist/{index329.js → index332.js} +1 -1
- package/dist/index334.js +4 -0
- package/dist/index35.js +4 -4
- package/dist/index37.js +200 -189
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +92 -85
- package/dist/index47.js +40 -36
- package/dist/index49.js +39 -35
- package/dist/index51.js +11 -12
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +11 -10
- package/dist/index67.js +14 -12
- package/dist/index71.js +5 -3
- package/dist/index75.js +3 -3
- package/dist/index77.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index82.js +11 -9
- package/dist/index84.js +4 -4
- package/dist/index86.js +2 -2
- package/dist/index88.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index230.js +0 -15
- package/dist/index258.js +0 -14
- package/dist/index267.js +0 -5
- package/dist/index271.js +0 -283
- package/dist/index288.js +0 -13
- package/dist/index304.js +0 -438
- /package/dist/{index330.js → index333.js} +0 -0
package/dist/index43.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as j, ref as k, toRef as d, openBlock as z, createBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as h, guardReactiveProps as v, createVNode as R, mergeProps as w, createSlots as W } from "vue";
|
2
2
|
import K from "./index41.js";
|
3
3
|
/* empty css */
|
4
|
-
import N from "./
|
4
|
+
import N from "./index229.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as U } from "./
|
7
|
-
import { useIndexById as T } from "./
|
8
|
-
import { useBaseOptions as q } from "./
|
9
|
-
import { useCoherence as J } from "./
|
10
|
-
import { hash as Q } from "./
|
11
|
-
import { useHashedWatcher as E } from "./
|
12
|
-
import { usePrefill as X } from "./
|
6
|
+
import { useItemsGetter as U } from "./index231.js";
|
7
|
+
import { useIndexById as T } from "./index232.js";
|
8
|
+
import { useBaseOptions as q } from "./index233.js";
|
9
|
+
import { useCoherence as J } from "./index234.js";
|
10
|
+
import { hash as Q } from "./index235.js";
|
11
|
+
import { useHashedWatcher as E } from "./index236.js";
|
12
|
+
import { usePrefill as X } from "./index237.js";
|
13
13
|
const ue = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseSwitchGroup",
|
15
15
|
props: {
|
package/dist/index45.js
CHANGED
@@ -1,19 +1,20 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z, openBlock as v, createBlock as k, normalizeClass as G, withCtx as n, renderSlot as s, createVNode as I, unref as $, createElementVNode as O, createElementBlock as J, Fragment as W, createCommentVNode as X, withDirectives as Y, mergeProps as ee, withModifiers as d, withKeys as y, vModelDynamic as te, nextTick as oe } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
|
-
import
|
4
|
+
import ae from "./index128.js";
|
5
5
|
/* empty css */
|
6
|
-
import { last as
|
7
|
-
import { useBaseOptions as ne } from "./
|
8
|
-
import { useIndexById as
|
9
|
-
import
|
6
|
+
import { last as le } from "./index222.js";
|
7
|
+
import { useBaseOptions as ne } from "./index233.js";
|
8
|
+
import { useIndexById as re } from "./index232.js";
|
9
|
+
import ie from "./index255.js";
|
10
10
|
/* empty css */
|
11
|
-
import
|
11
|
+
import ue from "./index257.js";
|
12
12
|
/* empty css */
|
13
|
-
import
|
13
|
+
import se from "./index207.js";
|
14
14
|
/* empty css */
|
15
|
-
import
|
16
|
-
|
15
|
+
import de from "./index209.js";
|
16
|
+
import { isEmpty as pe } from "./index227.js";
|
17
|
+
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Le = /* @__PURE__ */ Q({
|
17
18
|
__name: "BaseTag",
|
18
19
|
props: {
|
19
20
|
"append:icon": {},
|
@@ -21,6 +22,7 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
21
22
|
autocomplete: { default: "off" },
|
22
23
|
autofocus: {},
|
23
24
|
comma: { type: Boolean },
|
25
|
+
clearable: { type: Boolean },
|
24
26
|
compact: { type: Boolean },
|
25
27
|
disabled: { type: Boolean },
|
26
28
|
divider: { default: "Enter" },
|
@@ -37,19 +39,19 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
37
39
|
required: { type: Boolean }
|
38
40
|
},
|
39
41
|
emits: ["blur", "change", "click", "duplicate", "focus", "inactive", "input", "keydown", "keyup", "update:modelValue"],
|
40
|
-
setup(
|
41
|
-
const t =
|
42
|
+
setup(D, { emit: L }) {
|
43
|
+
const t = D, l = L;
|
42
44
|
if (t.multiple && !Array.isArray(t.modelValue))
|
43
45
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
44
|
-
const b = u(null),
|
46
|
+
const b = u(null), A = u(null), B = u(null), V = u(null), r = f(
|
45
47
|
() => t.comma ? B.value : V.value
|
46
|
-
), p = u(null),
|
48
|
+
), p = u(null), H = () => {
|
47
49
|
p.value instanceof HTMLInputElement && p.value.focus();
|
48
|
-
}, o = u(""), i =
|
50
|
+
}, o = u(""), i = f(() => T.value.filter((e) => e.selected)), { data: w, get: K } = re({
|
49
51
|
items: E(t, "modelValue")
|
50
|
-
}), { options:
|
52
|
+
}), { options: T } = ne({
|
51
53
|
disabled: E(t, "disabled"),
|
52
|
-
items:
|
54
|
+
items: f(() => [].concat(t.modelValue)),
|
53
55
|
itemText: void 0,
|
54
56
|
itemValue: void 0,
|
55
57
|
max: t.max,
|
@@ -61,84 +63,87 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
61
63
|
return;
|
62
64
|
}
|
63
65
|
let e;
|
64
|
-
i.value && (e =
|
65
|
-
},
|
66
|
+
i.value && (e = le(i.value)), o.value = (e == null ? void 0 : e.text) || "";
|
67
|
+
}, q = async (e) => {
|
66
68
|
if (t.multiple) {
|
67
69
|
const a = { ...w.value };
|
68
|
-
delete a[e.valueHash],
|
70
|
+
delete a[e.valueHash], l("update:modelValue", Object.values(a));
|
69
71
|
} else
|
70
|
-
|
71
|
-
|
72
|
+
l("update:modelValue", null);
|
73
|
+
H();
|
72
74
|
};
|
73
|
-
|
75
|
+
Z(
|
74
76
|
() => t.modelValue,
|
75
77
|
async () => {
|
76
78
|
C();
|
77
79
|
}
|
78
80
|
);
|
79
|
-
const g = u(!1),
|
81
|
+
const g = u(!1), M = () => {
|
80
82
|
g.value = !0;
|
81
|
-
},
|
82
|
-
g.value = !1,
|
83
|
-
}, h =
|
83
|
+
}, N = () => {
|
84
|
+
g.value = !1, l("inactive");
|
85
|
+
}, h = f(() => !(t.readonly || t.disabled || !r.value && t.multiple)), P = (e) => {
|
84
86
|
var a;
|
85
87
|
h.value && (!t.multiple || o.value || (e.preventDefault(), i.value.length && ((a = r.value) == null || a.focusPrevious())));
|
86
|
-
},
|
88
|
+
}, z = (e) => {
|
87
89
|
var a;
|
88
90
|
h.value && (!t.multiple || o.value || (e.preventDefault(), i.value.length && ((a = r.value) == null || a.focusNext())));
|
89
|
-
},
|
91
|
+
}, F = async () => {
|
90
92
|
var e, a;
|
91
|
-
!h.value || o.value || !i.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await
|
92
|
-
},
|
93
|
+
!h.value || o.value || !i.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await oe(), (a = r.value) == null || a.focusPrevious());
|
94
|
+
}, S = () => {
|
93
95
|
var e;
|
94
96
|
(e = r.value) == null || e.blur();
|
95
|
-
},
|
97
|
+
}, U = async (e) => {
|
96
98
|
var a;
|
97
|
-
if (
|
99
|
+
if (l("keydown", e), t.readonly || t.disabled) {
|
98
100
|
e.preventDefault();
|
99
101
|
return;
|
100
102
|
}
|
101
103
|
if (/^[A-Za-z0-9]$/.test(e.key) && ((a = r.value) == null || a.blur()), e.key === t.divider || e.key === "Unidentified" && o.value.includes(t.divider)) {
|
102
104
|
if (t.divider.length === 1 && o.value.includes(t.divider)) {
|
103
|
-
const
|
104
|
-
if (
|
105
|
-
o.value =
|
105
|
+
const m = o.value.split(t.divider)[0];
|
106
|
+
if (m)
|
107
|
+
o.value = m;
|
106
108
|
else {
|
107
109
|
o.value = "";
|
108
110
|
return;
|
109
111
|
}
|
110
112
|
}
|
111
113
|
if (!o.value) {
|
112
|
-
|
114
|
+
l("keydown", e);
|
113
115
|
return;
|
114
116
|
}
|
115
|
-
if (e.preventDefault(),
|
116
|
-
|
117
|
+
if (e.preventDefault(), K(o.value))
|
118
|
+
l("duplicate", o.value), o.value = "";
|
117
119
|
else {
|
118
120
|
if (t.max && i.value.length >= t.max)
|
119
121
|
return;
|
120
|
-
t.multiple ?
|
122
|
+
t.multiple ? l("update:modelValue", t.modelValue.concat(o.value)) : l("update:modelValue", o.value);
|
121
123
|
}
|
122
124
|
}
|
123
|
-
},
|
124
|
-
|
125
|
-
},
|
126
|
-
|
125
|
+
}, _ = (e) => {
|
126
|
+
l("focus", e), M(), document.addEventListener("click", c), document.addEventListener("focusin", c);
|
127
|
+
}, R = (e) => {
|
128
|
+
l("click", e), !(t.disabled || t.readonly) && p.value instanceof HTMLElement && p.value.focus();
|
127
129
|
}, c = async (e) => {
|
128
130
|
if (e.target instanceof Node && b.value && !b.value.$el.contains(e.target)) {
|
129
|
-
|
131
|
+
N(), document.removeEventListener("click", c), document.removeEventListener("focusin", c), C();
|
130
132
|
return;
|
131
133
|
}
|
132
|
-
},
|
133
|
-
onBlur: (e) =>
|
134
|
-
onChange: (e) =>
|
135
|
-
onKeyup: (e) =>
|
136
|
-
onInput: (e) =>
|
134
|
+
}, j = {
|
135
|
+
onBlur: (e) => l("blur", e),
|
136
|
+
onChange: (e) => l("change", e),
|
137
|
+
onKeyup: (e) => l("keyup", e),
|
138
|
+
onInput: (e) => l("input", e)
|
139
|
+
}, x = () => {
|
140
|
+
let e = null;
|
141
|
+
t.multiple && (e = []), l("update:modelValue", e);
|
137
142
|
};
|
138
|
-
return (e, a) => (v(), k(
|
143
|
+
return (e, a) => (v(), k(de, {
|
139
144
|
ref_key: "outerContainer",
|
140
145
|
ref: b,
|
141
|
-
class:
|
146
|
+
class: G({
|
142
147
|
"bb-base-tag": !0,
|
143
148
|
"bb-base-tag--active": g.value,
|
144
149
|
"bb-base-tag--disabled": e.disabled,
|
@@ -147,58 +152,60 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
147
152
|
"bb-base-tag--readonly": e.readonly,
|
148
153
|
"bb-base-tag--compact": e.compact
|
149
154
|
}),
|
150
|
-
onClick:
|
155
|
+
onClick: R
|
151
156
|
}, {
|
152
|
-
"prepend-outer":
|
157
|
+
"prepend-outer": n(() => [
|
153
158
|
s(e.$slots, "prepend-outer")
|
154
159
|
]),
|
155
|
-
"append-outer":
|
160
|
+
"append-outer": n(() => [
|
156
161
|
s(e.$slots, "append-outer")
|
157
162
|
]),
|
158
|
-
default:
|
159
|
-
I(
|
163
|
+
default: n(() => [
|
164
|
+
I(se, {
|
160
165
|
ref_key: "innerContainer",
|
161
|
-
ref:
|
166
|
+
ref: A,
|
162
167
|
"append:icon": t["append:icon"],
|
168
|
+
clearable: e.clearable && !$(pe)(e.modelValue),
|
163
169
|
"prepend:icon": t["prepend:icon"],
|
164
|
-
"prevent-focus": !0
|
170
|
+
"prevent-focus": !0,
|
171
|
+
"onClick:clear": x
|
165
172
|
}, {
|
166
|
-
prepend:
|
173
|
+
prepend: n(() => [
|
167
174
|
s(e.$slots, "prepend")
|
168
175
|
]),
|
169
|
-
prefix:
|
176
|
+
prefix: n(() => [
|
170
177
|
s(e.$slots, "prefix")
|
171
178
|
]),
|
172
|
-
append:
|
179
|
+
append: n(() => [
|
173
180
|
s(e.$slots, "append")
|
174
181
|
]),
|
175
|
-
suffix:
|
182
|
+
suffix: n(() => [
|
176
183
|
s(e.$slots, "suffix")
|
177
184
|
]),
|
178
|
-
default:
|
179
|
-
I(
|
180
|
-
default:
|
181
|
-
|
182
|
-
e.multiple ? (v(),
|
183
|
-
e.comma ? (v(), k(
|
185
|
+
default: n(() => [
|
186
|
+
I($(ae), { tag: "span" }, {
|
187
|
+
default: n(() => [
|
188
|
+
O("span", ce, [
|
189
|
+
e.multiple ? (v(), J(W, { key: 0 }, [
|
190
|
+
e.comma ? (v(), k(ue, {
|
184
191
|
key: 0,
|
185
192
|
ref_key: "commaBox",
|
186
193
|
ref: B,
|
187
194
|
options: i.value
|
188
|
-
}, null, 8, ["options"])) : (v(), k(
|
195
|
+
}, null, 8, ["options"])) : (v(), k(ie, {
|
189
196
|
key: 1,
|
190
197
|
ref_key: "chipsBox",
|
191
198
|
ref: V,
|
192
199
|
options: i.value,
|
193
|
-
"onOption:unselected":
|
200
|
+
"onOption:unselected": q
|
194
201
|
}, null, 8, ["options"]))
|
195
|
-
], 64)) :
|
196
|
-
|
202
|
+
], 64)) : X("", !0),
|
203
|
+
Y(O("input", ee({
|
197
204
|
id: e.id,
|
198
205
|
ref_key: "input",
|
199
206
|
ref: p
|
200
|
-
},
|
201
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
207
|
+
}, j, {
|
208
|
+
"onUpdate:modelValue": a[0] || (a[0] = (m) => o.value = m),
|
202
209
|
"aria-describedby": e.ariaDescribedby,
|
203
210
|
autocomplete: e.autocomplete,
|
204
211
|
autofocus: e.autofocus,
|
@@ -210,16 +217,16 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
210
217
|
required: e.required && (!e.multiple || !e.modelValue.length),
|
211
218
|
size: "1",
|
212
219
|
type: "text",
|
213
|
-
onFocus: d(
|
220
|
+
onFocus: d(_, ["stop"]),
|
214
221
|
onKeydown: [
|
215
|
-
d(
|
216
|
-
y(d(
|
217
|
-
y(d(
|
218
|
-
y(d(
|
219
|
-
y(d(
|
222
|
+
d(U, ["stop"]),
|
223
|
+
y(d(F, ["stop"]), ["delete"]),
|
224
|
+
y(d(P, ["stop"]), ["left"]),
|
225
|
+
y(d(S, ["stop", "prevent"]), ["esc"]),
|
226
|
+
y(d(z, ["stop"]), ["right"])
|
220
227
|
]
|
221
|
-
}), null, 16,
|
222
|
-
[
|
228
|
+
}), null, 16, me), [
|
229
|
+
[te, o.value]
|
223
230
|
])
|
224
231
|
])
|
225
232
|
]),
|
@@ -227,12 +234,12 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
227
234
|
})
|
228
235
|
]),
|
229
236
|
_: 3
|
230
|
-
}, 8, ["append:icon", "prepend:icon"])
|
237
|
+
}, 8, ["append:icon", "clearable", "prepend:icon"])
|
231
238
|
]),
|
232
239
|
_: 3
|
233
240
|
}, 8, ["class"]));
|
234
241
|
}
|
235
242
|
});
|
236
243
|
export {
|
237
|
-
|
244
|
+
Le as default
|
238
245
|
};
|
package/dist/index47.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
3
|
-
import
|
1
|
+
import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, openBlock as $, createBlock as k, normalizeClass as C, withCtx as r, renderSlot as t, createVNode as i, unref as T, createElementVNode as v, mergeProps as x } from "vue";
|
2
|
+
import E from "./index209.js";
|
3
|
+
import G from "./index207.js";
|
4
4
|
/* empty css */
|
5
|
-
import
|
5
|
+
import M from "./index128.js";
|
6
6
|
/* empty css */
|
7
|
-
|
7
|
+
import { isNotNil as q } from "./index134.js";
|
8
|
+
const H = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "rows", "value"], Y = /* @__PURE__ */ h({
|
8
9
|
__name: "BaseTextarea",
|
9
10
|
props: {
|
10
11
|
"append:icon": {},
|
@@ -12,6 +13,7 @@ const M = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
12
13
|
autocomplete: {},
|
13
14
|
autoGrow: { type: Boolean },
|
14
15
|
autofocus: {},
|
16
|
+
clearable: { type: Boolean },
|
15
17
|
compact: { type: Boolean },
|
16
18
|
disabled: { type: Boolean },
|
17
19
|
hasErrors: { type: Boolean },
|
@@ -44,23 +46,23 @@ const M = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
44
46
|
() => o.modelValue ? o.modelValue : ""
|
45
47
|
);
|
46
48
|
g(() => {
|
47
|
-
o.autoGrow && o.modelValue &&
|
49
|
+
o.autoGrow && o.modelValue && s();
|
48
50
|
}), B(
|
49
51
|
() => o.modelValue,
|
50
52
|
() => {
|
51
|
-
o.autoGrow &&
|
53
|
+
o.autoGrow && V(s);
|
52
54
|
}
|
53
55
|
);
|
54
56
|
function b(e) {
|
55
57
|
if (e.stopPropagation(), e.target instanceof HTMLTextAreaElement) {
|
56
|
-
let
|
57
|
-
a("input", e), a("update:modelValue",
|
58
|
+
let l = e.target.value;
|
59
|
+
a("input", e), a("update:modelValue", l || null);
|
58
60
|
}
|
59
61
|
}
|
60
62
|
function f(e) {
|
61
63
|
e.stopPropagation(), e.target instanceof HTMLTextAreaElement && a("keydown", e);
|
62
64
|
}
|
63
|
-
const
|
65
|
+
const w = {
|
64
66
|
onBlur: (e) => a("blur", e),
|
65
67
|
onChange: (e) => a("change", e),
|
66
68
|
onClick: (e) => a("click", e),
|
@@ -68,39 +70,41 @@ const M = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
68
70
|
onMousedown: (e) => a("mousedown", e),
|
69
71
|
onMouseup: (e) => a("mouseup", e)
|
70
72
|
};
|
71
|
-
function
|
73
|
+
function s() {
|
72
74
|
n.value && (n.value.style.height = "0px", n.value.style.height = `${n.value.scrollHeight}px`);
|
73
75
|
}
|
74
|
-
return (e,
|
75
|
-
class:
|
76
|
+
return (e, l) => ($(), k(E, {
|
77
|
+
class: C(c.value)
|
76
78
|
}, {
|
77
|
-
"prepend-outer":
|
78
|
-
|
79
|
+
"prepend-outer": r(() => [
|
80
|
+
t(e.$slots, "prepend-outer")
|
79
81
|
]),
|
80
|
-
"append-outer":
|
81
|
-
|
82
|
+
"append-outer": r(() => [
|
83
|
+
t(e.$slots, "append-outer")
|
82
84
|
]),
|
83
|
-
default:
|
84
|
-
i(
|
85
|
+
default: r(() => [
|
86
|
+
i(G, {
|
85
87
|
"append:icon": o["append:icon"],
|
86
|
-
|
88
|
+
clearable: e.clearable && T(q)(e.modelValue),
|
89
|
+
"prepend:icon": o["prepend:icon"],
|
90
|
+
"onClick:clear": l[0] || (l[0] = (N) => e.$emit("update:modelValue", null))
|
87
91
|
}, {
|
88
|
-
prepend:
|
89
|
-
|
92
|
+
prepend: r(() => [
|
93
|
+
t(e.$slots, "prepend")
|
90
94
|
]),
|
91
|
-
prefix:
|
92
|
-
|
95
|
+
prefix: r(() => [
|
96
|
+
t(e.$slots, "prefix")
|
93
97
|
]),
|
94
|
-
append:
|
95
|
-
|
98
|
+
append: r(() => [
|
99
|
+
t(e.$slots, "append")
|
96
100
|
]),
|
97
|
-
suffix:
|
98
|
-
|
101
|
+
suffix: r(() => [
|
102
|
+
t(e.$slots, "suffix")
|
99
103
|
]),
|
100
|
-
default:
|
101
|
-
i(
|
102
|
-
default:
|
103
|
-
|
104
|
+
default: r(() => [
|
105
|
+
i(M, { tag: "span" }, {
|
106
|
+
default: r(() => [
|
107
|
+
v("textarea", x({
|
104
108
|
id: e.id,
|
105
109
|
ref_key: "textarea",
|
106
110
|
ref: n,
|
@@ -115,21 +119,21 @@ const M = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "n
|
|
115
119
|
required: e.required,
|
116
120
|
rows: e.rows,
|
117
121
|
value: m.value
|
118
|
-
},
|
122
|
+
}, w, {
|
119
123
|
onInput: b,
|
120
124
|
onKeydown: f
|
121
|
-
}), null, 16,
|
125
|
+
}), null, 16, H)
|
122
126
|
]),
|
123
127
|
_: 1
|
124
128
|
})
|
125
129
|
]),
|
126
130
|
_: 3
|
127
|
-
}, 8, ["append:icon", "prepend:icon"])
|
131
|
+
}, 8, ["append:icon", "clearable", "prepend:icon"])
|
128
132
|
]),
|
129
133
|
_: 3
|
130
134
|
}, 8, ["class"]));
|
131
135
|
}
|
132
136
|
});
|
133
137
|
export {
|
134
|
-
|
138
|
+
Y as default
|
135
139
|
};
|
package/dist/index49.js
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
-
import { defineComponent as m, computed as
|
2
|
-
import
|
1
|
+
import { defineComponent as m, computed as b, openBlock as c, createElementBlock as f, Fragment as y, createVNode as r, normalizeClass as B, withCtx as n, renderSlot as l, unref as g, createElementVNode as p, mergeProps as h } from "vue";
|
2
|
+
import $ from "./index207.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
5
|
-
|
4
|
+
import k from "./index209.js";
|
5
|
+
import { isNotNil as C } from "./index134.js";
|
6
|
+
const V = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], M = /* @__PURE__ */ m({
|
6
7
|
__name: "BaseTextInput",
|
7
8
|
props: {
|
8
9
|
"append:icon": {},
|
9
10
|
ariaDescribedby: {},
|
10
11
|
autocomplete: {},
|
11
12
|
autofocus: {},
|
13
|
+
clearable: { type: Boolean },
|
12
14
|
compact: { type: Boolean },
|
13
15
|
disabled: { type: Boolean },
|
14
16
|
hasErrors: { type: Boolean },
|
@@ -23,55 +25,57 @@ const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
23
25
|
type: { default: "text" }
|
24
26
|
},
|
25
27
|
emits: ["blur", "change", "click", "focus", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
26
|
-
setup(s, { emit:
|
27
|
-
const
|
28
|
+
setup(s, { emit: u }) {
|
29
|
+
const o = s, a = u, d = b(() => ({
|
28
30
|
"bb-base-text-input": !0,
|
29
|
-
"bb-base-text-input--disabled":
|
30
|
-
"bb-base-text-input--errors":
|
31
|
-
"bb-base-text-input--loading":
|
32
|
-
"bb-base-text-input--readonly":
|
33
|
-
"bb-base-text-input--compact":
|
31
|
+
"bb-base-text-input--disabled": o.disabled,
|
32
|
+
"bb-base-text-input--errors": o.hasErrors,
|
33
|
+
"bb-base-text-input--loading": o.loading,
|
34
|
+
"bb-base-text-input--readonly": o.readonly,
|
35
|
+
"bb-base-text-input--compact": o.compact
|
34
36
|
})), i = {
|
35
|
-
onBlur: (e) =>
|
36
|
-
onChange: (e) =>
|
37
|
-
onClick: (e) =>
|
38
|
-
onFocus: (e) =>
|
39
|
-
onKeydown: (e) =>
|
37
|
+
onBlur: (e) => a("blur", e),
|
38
|
+
onChange: (e) => a("change", e),
|
39
|
+
onClick: (e) => a("click", e),
|
40
|
+
onFocus: (e) => a("focus", e),
|
41
|
+
onKeydown: (e) => a("keydown", e),
|
40
42
|
onInput: (e) => {
|
41
|
-
e.target instanceof HTMLInputElement &&
|
43
|
+
e.target instanceof HTMLInputElement && a("update:modelValue", e.target.value || null), a("input", e);
|
42
44
|
},
|
43
|
-
onMousedown: (e) =>
|
44
|
-
onMouseup: (e) =>
|
45
|
+
onMousedown: (e) => a("mousedown", e),
|
46
|
+
onMouseup: (e) => a("mouseup", e)
|
45
47
|
};
|
46
|
-
return (e,
|
48
|
+
return (e, t) => (c(), f(y, null, [
|
47
49
|
r(k, {
|
48
|
-
class:
|
50
|
+
class: B(d.value)
|
49
51
|
}, {
|
50
52
|
"prepend-outer": n(() => [
|
51
|
-
|
53
|
+
l(e.$slots, "prepend-outer")
|
52
54
|
]),
|
53
55
|
"append-outer": n(() => [
|
54
|
-
|
56
|
+
l(e.$slots, "append-outer")
|
55
57
|
]),
|
56
58
|
default: n(() => [
|
57
|
-
r(
|
58
|
-
"append:icon":
|
59
|
-
|
59
|
+
r($, {
|
60
|
+
"append:icon": o["append:icon"],
|
61
|
+
clearable: o.clearable && g(C)(o.modelValue),
|
62
|
+
"prepend:icon": o["prepend:icon"],
|
63
|
+
"onClick:clear": t[0] || (t[0] = (v) => e.$emit("update:modelValue", null))
|
60
64
|
}, {
|
61
65
|
prepend: n(() => [
|
62
|
-
|
66
|
+
l(e.$slots, "prepend")
|
63
67
|
]),
|
64
68
|
prefix: n(() => [
|
65
|
-
|
69
|
+
l(e.$slots, "prefix")
|
66
70
|
]),
|
67
71
|
append: n(() => [
|
68
|
-
|
72
|
+
l(e.$slots, "append")
|
69
73
|
]),
|
70
74
|
suffix: n(() => [
|
71
|
-
|
75
|
+
l(e.$slots, "suffix")
|
72
76
|
]),
|
73
77
|
default: n(() => [
|
74
|
-
|
78
|
+
p("input", h({
|
75
79
|
id: e.id,
|
76
80
|
ref: "input",
|
77
81
|
"aria-describedby": e.ariaDescribedby,
|
@@ -87,17 +91,17 @@ const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus"
|
|
87
91
|
size: "1",
|
88
92
|
type: e.type,
|
89
93
|
value: e.modelValue
|
90
|
-
}, i), null, 16,
|
94
|
+
}, i), null, 16, V)
|
91
95
|
]),
|
92
96
|
_: 3
|
93
|
-
}, 8, ["append:icon", "prepend:icon"])
|
97
|
+
}, 8, ["append:icon", "clearable", "prepend:icon"])
|
94
98
|
]),
|
95
99
|
_: 3
|
96
100
|
}, 8, ["class"]),
|
97
|
-
|
101
|
+
t[1] || (t[1] = p("span", null, null, -1))
|
98
102
|
], 64));
|
99
103
|
}
|
100
104
|
});
|
101
105
|
export {
|
102
|
-
|
106
|
+
M as default
|
103
107
|
};
|