@budibase/bbui 3.35.1 → 3.35.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.
|
@@ -43123,7 +43123,7 @@ function SpectrumMDE(l, u) {
|
|
|
43123
43123
|
let f = prop(u, "height", 12, null), p = prop(u, "scroll", 8, !0), v = prop(u, "easyMDEOptions", 8, null), y = prop(u, "mde", 12, null), b = prop(u, "id", 8, null), $ = prop(u, "fullScreenOffset", 8, null), P = prop(u, "disabled", 8, !1), k = /* @__PURE__ */ mutable_source(void 0);
|
|
43124
43124
|
onMount(async () => {
|
|
43125
43125
|
f(f() || "200px");
|
|
43126
|
-
const { default: F } = await import("./easymde-
|
|
43126
|
+
const { default: F } = await import("./easymde-CKo6ftu1.mjs").then((T) => T.e);
|
|
43127
43127
|
y(new F({
|
|
43128
43128
|
element: get$2(k),
|
|
43129
43129
|
spellChecker: !1,
|
|
@@ -44394,7 +44394,7 @@ function PillInput(l, u) {
|
|
|
44394
44394
|
}), b = prop(u, "placeholder", 24, () => {
|
|
44395
44395
|
}), $ = prop(u, "disabled", 8, !1), P = prop(u, "readonly", 8, !1), k = prop(u, "id", 24, () => {
|
|
44396
44396
|
}), w = prop(u, "delimiter", 8, ","), x = prop(u, "splitOnSpace", 8, !1), M = prop(u, "allowDuplicates", 8, !1), S = prop(u, "maxItems", 24, () => {
|
|
44397
|
-
}), F =
|
|
44397
|
+
}), F = prop(u, "inputValue", 12, ""), T = /* @__PURE__ */ mutable_source(!1), E = /* @__PURE__ */ mutable_source(null);
|
|
44398
44398
|
const L = createEventDispatcher(), D = (Y) => {
|
|
44399
44399
|
m(Y), L("change", Y);
|
|
44400
44400
|
}, z = () => {
|
|
@@ -44426,14 +44426,14 @@ function PillInput(l, u) {
|
|
|
44426
44426
|
if (P() || $())
|
|
44427
44427
|
return;
|
|
44428
44428
|
const X = Y.target;
|
|
44429
|
-
if (
|
|
44430
|
-
const W = j(), H = new RegExp(`${W.source}$`).test(
|
|
44431
|
-
O(U),
|
|
44429
|
+
if (F(X.value), B(F())) {
|
|
44430
|
+
const W = j(), H = new RegExp(`${W.source}$`).test(F()), K = new RegExp(`${N(w())}\\s+`).test(F()), U = F().split(W).filter(Boolean), J = K && U.length > 1 && !H, Z = H || J ? "" : U.pop() ?? "";
|
|
44431
|
+
O(U), F(Z);
|
|
44432
44432
|
}
|
|
44433
44433
|
}, R = () => {
|
|
44434
|
-
|
|
44434
|
+
F().trim() && (O([F()]), F("")), L("blur", m());
|
|
44435
44435
|
}, Q = (Y) => {
|
|
44436
|
-
P() || $() || ((Y.key === w() || x() && Y.key === " " && !Y.shiftKey) && (Y.preventDefault(), O([
|
|
44436
|
+
P() || $() || ((Y.key === w() || x() && Y.key === " " && !Y.shiftKey) && (Y.preventDefault(), O([F()]), F("")), Y.key === "Backspace" && !F() && m().length && V(m().length - 1));
|
|
44437
44437
|
};
|
|
44438
44438
|
init$1(), Field(l, {
|
|
44439
44439
|
get helpText() {
|
|
@@ -44476,7 +44476,7 @@ function PillInput(l, u) {
|
|
|
44476
44476
|
"is-invalid": !!v()
|
|
44477
44477
|
})
|
|
44478
44478
|
]
|
|
44479
|
-
), bind_value(U,
|
|
44479
|
+
), bind_value(U, F), event("input", U, q), event("keydown", U, Q), event("focus", U, () => set(T, !0)), event("blur", U, () => {
|
|
44480
44480
|
set(T, !1), R();
|
|
44481
44481
|
}), event("click", W, () => {
|
|
44482
44482
|
!$() && !P() && get$2(E)?.focus();
|
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.35.
|
|
4
|
+
"version": "3.35.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": "703bb93d48608fb224de516a55db3937dfb88257"
|
|
107
107
|
}
|