@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.
@@ -1,4 +1,4 @@
1
- import { g as Zs, a as Qs } from "./index-bfaTWYQJ.mjs";
1
+ import { g as Zs, a as Qs } from "./index-BkAL2KG6.mjs";
2
2
  function Js(ke, ye) {
3
3
  for (var k = 0; k < ye.length; k++) {
4
4
  const W = ye[k];
@@ -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-C-Oe_Xl6.mjs").then((T) => T.e);
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 = /* @__PURE__ */ mutable_source(""), T = /* @__PURE__ */ mutable_source(!1), E = /* @__PURE__ */ mutable_source(null);
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 (set(F, X.value), B(get$2(F))) {
44430
- const W = j(), H = new RegExp(`${W.source}$`).test(get$2(F)), K = new RegExp(`${N(w())}\\s+`).test(get$2(F)), U = get$2(F).split(W).filter(Boolean), J = K && U.length > 1 && !H, Z = H || J ? "" : U.pop() ?? "";
44431
- O(U), set(F, Z);
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
- get$2(F).trim() && (O([get$2(F)]), set(F, "")), L("blur", m());
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([get$2(F)]), set(F, "")), Y.key === "Backspace" && !get$2(F) && m().length && V(m().length - 1));
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, () => get$2(F), (J) => set(F, J)), event("input", U, q), event("keydown", U, Q), event("focus", U, () => set(T, !0)), event("blur", 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.1",
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": "456c750d6bbffa0660dbf58bfbfe3ee7b56b2184"
106
+ "gitHead": "703bb93d48608fb224de516a55db3937dfb88257"
107
107
  }
@@ -19,7 +19,7 @@
19
19
  export let allowDuplicates = false
20
20
  export let maxItems: number | undefined = undefined
21
21
 
22
- let inputValue = ""
22
+ export let inputValue = ""
23
23
  let focused = false
24
24
  let inputEl: HTMLInputElement | null = null
25
25