@budibase/bbui 3.37.1 → 3.37.2
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.
|
@@ -43717,7 +43717,7 @@ function SpectrumMDE(l, u) {
|
|
|
43717
43717
|
], le = (J) => J?.toolbar !== void 0 ? J.toolbar : ce;
|
|
43718
43718
|
onMount(async () => {
|
|
43719
43719
|
f(f() || "200px");
|
|
43720
|
-
const { default: J } = await import("./easymde-
|
|
43720
|
+
const { default: J } = await import("./easymde-Dv4B3HQK.mjs").then((oe) => oe.e);
|
|
43721
43721
|
y(new J({
|
|
43722
43722
|
element: get$2(k),
|
|
43723
43723
|
spellChecker: !1,
|
|
@@ -44877,14 +44877,14 @@ function PillInput(l, u) {
|
|
|
44877
44877
|
if (P() || $())
|
|
44878
44878
|
return;
|
|
44879
44879
|
const X = K.target;
|
|
44880
|
-
if (F(X.value), V(F())) {
|
|
44880
|
+
if (F(X.value), L("input", F()), V(F())) {
|
|
44881
44881
|
const W = H(), z = new RegExp(`${W.source}$`).test(F()), Q = new RegExp(`${B(w())}\\s+`).test(F()), U = F().split(W).filter(Boolean), Z = Q && U.length > 1 && !z, ae = z || Z ? "" : U.pop() ?? "";
|
|
44882
44882
|
j(U), F(ae);
|
|
44883
44883
|
}
|
|
44884
44884
|
}, D = () => {
|
|
44885
44885
|
F().trim() && (j([F()]), F("")), L("blur", m());
|
|
44886
44886
|
}, Y = (K) => {
|
|
44887
|
-
P() || $() || ((K.key === w() || x() && K.key === " " && !K.shiftKey) && (K.preventDefault(), j([F()]), F("")), K.key === "Backspace" && !F() && m().length && N(m().length - 1));
|
|
44887
|
+
P() || $() || (L("keydown", K), !K.defaultPrevented && ((K.key === w() || x() && K.key === " " && !K.shiftKey) && (K.preventDefault(), j([F()]), F("")), K.key === "Backspace" && !F() && m().length && N(m().length - 1)));
|
|
44888
44888
|
};
|
|
44889
44889
|
init$1(), Field(l, {
|
|
44890
44890
|
get helpText() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/bbui",
|
|
3
3
|
"description": "A UI solution used in the different Budibase projects.",
|
|
4
|
-
"version": "3.37.
|
|
4
|
+
"version": "3.37.2",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"module": "dist/bbui.mjs",
|
|
7
7
|
"exports": {
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "16651aba054e221a0d92fab3574df679ece11843"
|
|
107
107
|
}
|
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
}
|
|
98
98
|
const target = event.target as HTMLInputElement
|
|
99
99
|
inputValue = target.value
|
|
100
|
+
dispatch("input", inputValue)
|
|
100
101
|
if (shouldSplit(inputValue)) {
|
|
101
102
|
const pattern = getSplitPattern()
|
|
102
103
|
const endsWithSeparator = new RegExp(`${pattern.source}$`).test(
|
|
@@ -127,6 +128,10 @@
|
|
|
127
128
|
if (readonly || disabled) {
|
|
128
129
|
return
|
|
129
130
|
}
|
|
131
|
+
dispatch("keydown", event)
|
|
132
|
+
if (event.defaultPrevented) {
|
|
133
|
+
return
|
|
134
|
+
}
|
|
130
135
|
if (
|
|
131
136
|
event.key === delimiter ||
|
|
132
137
|
(splitOnSpace && event.key === " " && !event.shiftKey)
|