@budibase/bbui 3.31.4 → 3.31.5

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-D_4de-lG.mjs";
1
+ import { g as Zs, a as Qs } from "./index-BS-LrCVk.mjs";
2
2
  function Js(ke, ye) {
3
3
  for (var k = 0; k < ye.length; k++) {
4
4
  const W = ye[k];
@@ -132,7 +132,7 @@ function zt() {
132
132
  function $e(e, t, i) {
133
133
  t || (t = {});
134
134
  for (var r in e)
135
- e.hasOwnProperty(r) && (i !== !1 || !t.hasOwnProperty(r)) && (t[r] = e[r]);
135
+ Object.prototype.hasOwnProperty.call(e, r) && (i !== !1 || !Object.prototype.hasOwnProperty.call(t, r)) && (t[r] = e[r]);
136
136
  return t;
137
137
  }
138
138
  function Ke(e, t, i, r, n) {
@@ -6133,7 +6133,7 @@ b`.split(/\n/).length != 3 ? function(e) {
6133
6133
  et.prototype[e] = t;
6134
6134
  }, et.defineDocExtension = function(e, t) {
6135
6135
  Lt.prototype[e] = t;
6136
- }, et.fromTextArea = Ks, Xs(et), et.version = "5.65.20", et;
6136
+ }, et.fromTextArea = Ks, Xs(et), et.version = "5.65.21", et;
6137
6137
  }));
6138
6138
  })(cn)), cn.exports;
6139
6139
  }
@@ -6,7 +6,7 @@ function enable_legacy_mode_flag() {
6
6
  legacy_mode_flag = !0;
7
7
  }
8
8
  enable_legacy_mode_flag();
9
- const EACH_ITEM_REACTIVE = 1, EACH_INDEX_REACTIVE = 2, EACH_IS_CONTROLLED = 4, EACH_IS_ANIMATED = 8, EACH_ITEM_IMMUTABLE = 16, PROPS_IS_IMMUTABLE = 1, PROPS_IS_RUNES = 2, PROPS_IS_UPDATED = 4, PROPS_IS_BINDABLE = 8, PROPS_IS_LAZY_INITIAL = 16, TRANSITION_IN = 1, TRANSITION_OUT = 2, TRANSITION_GLOBAL = 4, TEMPLATE_FRAGMENT = 1, TEMPLATE_USE_IMPORT_NODE = 2, UNINITIALIZED = Symbol(), NAMESPACE_HTML = "http://www.w3.org/1999/xhtml", DEV = !1;
9
+ const EACH_ITEM_REACTIVE = 1, EACH_INDEX_REACTIVE = 2, EACH_IS_CONTROLLED = 4, EACH_IS_ANIMATED = 8, EACH_ITEM_IMMUTABLE = 16, PROPS_IS_IMMUTABLE = 1, PROPS_IS_RUNES = 2, PROPS_IS_UPDATED = 4, PROPS_IS_BINDABLE = 8, PROPS_IS_LAZY_INITIAL = 16, TRANSITION_IN = 1, TRANSITION_OUT = 2, TRANSITION_GLOBAL = 4, TEMPLATE_FRAGMENT = 1, TEMPLATE_USE_IMPORT_NODE = 2, UNINITIALIZED = /* @__PURE__ */ Symbol(), NAMESPACE_HTML = "http://www.w3.org/1999/xhtml", DEV = !1;
10
10
  var is_array = Array.isArray, index_of = Array.prototype.indexOf, includes = Array.prototype.includes, array_from = Array.from, define_property = Object.defineProperty, get_descriptor = Object.getOwnPropertyDescriptor, get_descriptors = Object.getOwnPropertyDescriptors, object_prototype = Object.prototype, array_prototype = Array.prototype, get_prototype_of = Object.getPrototypeOf;
11
11
  function is_function(l) {
12
12
  return typeof l == "function";
@@ -26,7 +26,7 @@ function deferred() {
26
26
  });
27
27
  return { promise: m, resolve: l, reject: u };
28
28
  }
29
- const DERIVED = 2, EFFECT = 4, RENDER_EFFECT = 8, MANAGED_EFFECT = 1 << 24, BLOCK_EFFECT = 16, BRANCH_EFFECT = 32, ROOT_EFFECT = 64, BOUNDARY_EFFECT = 128, CONNECTED = 512, CLEAN = 1024, DIRTY = 2048, MAYBE_DIRTY = 4096, INERT = 8192, DESTROYED = 16384, REACTION_RAN = 32768, EFFECT_TRANSPARENT = 65536, EAGER_EFFECT = 1 << 17, HEAD_EFFECT = 1 << 18, EFFECT_PRESERVED = 1 << 19, USER_EFFECT = 1 << 20, EFFECT_OFFSCREEN = 1 << 25, WAS_MARKED = 65536, REACTION_IS_UPDATING = 1 << 21, ASYNC = 1 << 22, ERROR_VALUE = 1 << 23, STATE_SYMBOL = Symbol("$state"), LEGACY_PROPS = Symbol("legacy props"), LOADING_ATTR_SYMBOL = Symbol(""), STALE_REACTION = new class extends Error {
29
+ const DERIVED = 2, EFFECT = 4, RENDER_EFFECT = 8, MANAGED_EFFECT = 1 << 24, BLOCK_EFFECT = 16, BRANCH_EFFECT = 32, ROOT_EFFECT = 64, BOUNDARY_EFFECT = 128, CONNECTED = 512, CLEAN = 1024, DIRTY = 2048, MAYBE_DIRTY = 4096, INERT = 8192, DESTROYED = 16384, REACTION_RAN = 32768, EFFECT_TRANSPARENT = 65536, EAGER_EFFECT = 1 << 17, HEAD_EFFECT = 1 << 18, EFFECT_PRESERVED = 1 << 19, USER_EFFECT = 1 << 20, EFFECT_OFFSCREEN = 1 << 25, WAS_MARKED = 65536, REACTION_IS_UPDATING = 1 << 21, ASYNC = 1 << 22, ERROR_VALUE = 1 << 23, STATE_SYMBOL = /* @__PURE__ */ Symbol("$state"), LEGACY_PROPS = /* @__PURE__ */ Symbol("legacy props"), LOADING_ATTR_SYMBOL = /* @__PURE__ */ Symbol(""), STALE_REACTION = new class extends Error {
30
30
  name = "StaleReactionError";
31
31
  message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
32
32
  }(), IS_XHTML = (
@@ -1549,7 +1549,7 @@ function deep_read(l, u = /* @__PURE__ */ new Set()) {
1549
1549
  }
1550
1550
  }
1551
1551
  }
1552
- const event_symbol = Symbol("events");
1552
+ const event_symbol = /* @__PURE__ */ Symbol("events");
1553
1553
  function create_event(l, u, m, f = {}) {
1554
1554
  function p(v) {
1555
1555
  if (f.capture || handle_event_propagation.call(u, v), !v.cancelBubble)
@@ -1877,7 +1877,7 @@ function if_block(l, u, m = !1) {
1877
1877
  }), y || v(!1, null);
1878
1878
  }, p);
1879
1879
  }
1880
- const NAN$1 = Symbol("NaN");
1880
+ const NAN$1 = /* @__PURE__ */ Symbol("NaN");
1881
1881
  function key(l, u, m) {
1882
1882
  var f = new BranchManager(l), p = !is_runes();
1883
1883
  block$1(() => {
@@ -2407,7 +2407,7 @@ function set_style(l, u, m, f) {
2407
2407
  } else f && (Array.isArray(f) ? (update_styles(l, m?.[0], f[0]), update_styles(l, m?.[1], f[1], "important")) : update_styles(l, m, f));
2408
2408
  return f;
2409
2409
  }
2410
- const IS_CUSTOM_ELEMENT = Symbol("is custom element"), IS_HTML = Symbol("is html"), PROGRESS_TAG = IS_XHTML ? "progress" : "PROGRESS";
2410
+ const IS_CUSTOM_ELEMENT = /* @__PURE__ */ Symbol("is custom element"), IS_HTML = /* @__PURE__ */ Symbol("is html"), PROGRESS_TAG = IS_XHTML ? "progress" : "PROGRESS";
2411
2411
  function set_value(l, u) {
2412
2412
  var m = get_attributes(l);
2413
2413
  m.value === (m.value = // treat null and undefined the same for the initial value
@@ -2658,7 +2658,7 @@ function get$1(l) {
2658
2658
  let u;
2659
2659
  return subscribe_to_store(l, (m) => u = m)(), u;
2660
2660
  }
2661
- let is_store_binding = !1, IS_UNMOUNTED = Symbol();
2661
+ let is_store_binding = !1, IS_UNMOUNTED = /* @__PURE__ */ Symbol();
2662
2662
  function store_get(l, u, m) {
2663
2663
  const f = m[u] ??= {
2664
2664
  store: null,
@@ -8780,7 +8780,7 @@ const halfAMinute$1 = (l, u) => u && u.addSuffix ? u.comparison && u.comparison
8780
8780
  formats: dateTimeFormats$1k,
8781
8781
  defaultWidth: "any"
8782
8782
  })
8783
- }, constructFromSymbol = Symbol.for("constructDateFrom");
8783
+ }, constructFromSymbol = /* @__PURE__ */ Symbol.for("constructDateFrom");
8784
8784
  function constructFrom(l, u) {
8785
8785
  return typeof l == "function" ? l(u) : l && typeof l == "object" && constructFromSymbol in l ? l[constructFromSymbol](u) : l instanceof Date ? new l.constructor(u) : new Date(u);
8786
8786
  }
@@ -13918,14 +13918,7 @@ const localize$19 = {
13918
13918
  defaultWidth: "full"
13919
13919
  })
13920
13920
  }, formatRelativeLocale$11 = {
13921
- lastWeek: (l) => {
13922
- switch (l.getDay()) {
13923
- case 6:
13924
- return "'το προηγούμενο' eeee 'στις' p";
13925
- default:
13926
- return "'την προηγούμενη' eeee 'στις' p";
13927
- }
13928
- },
13921
+ lastWeek: (l) => l.getDay() === 6 ? "'το προηγούμενο' eeee 'στις' p" : "'την προηγούμενη' eeee 'στις' p",
13929
13922
  yesterday: "'χθες στις' p",
13930
13923
  today: "'σήμερα στις' p",
13931
13924
  tomorrow: "'αύριο στις' p",
@@ -22200,23 +22193,13 @@ const formatRelativeLocale$L = {
22200
22193
  "sabato"
22201
22194
  ];
22202
22195
  function lastWeek$5(l) {
22203
- switch (l) {
22204
- case 0:
22205
- return "'domenica scorsa alle' p";
22206
- default:
22207
- return "'" + weekdays$2[l] + " scorso alle' p";
22208
- }
22196
+ return l === 0 ? "'domenica scorsa alle' p" : "'" + weekdays$2[l] + " scorso alle' p";
22209
22197
  }
22210
22198
  function thisWeek$5(l) {
22211
22199
  return "'" + weekdays$2[l] + " alle' p";
22212
22200
  }
22213
22201
  function nextWeek$5(l) {
22214
- switch (l) {
22215
- case 0:
22216
- return "'domenica prossima alle' p";
22217
- default:
22218
- return "'" + weekdays$2[l] + " prossimo alle' p";
22219
- }
22202
+ return l === 0 ? "'domenica prossima alle' p" : "'" + weekdays$2[l] + " prossimo alle' p";
22220
22203
  }
22221
22204
  const formatRelativeLocale$H = {
22222
22205
  lastWeek: (l, u, m) => {
@@ -43120,7 +43103,7 @@ function SpectrumMDE(l, u) {
43120
43103
  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);
43121
43104
  onMount(async () => {
43122
43105
  f(f() || "200px");
43123
- const { default: F } = await import("./easymde-GMJAly5N.mjs").then((T) => T.e);
43106
+ const { default: F } = await import("./easymde-BhLlcaB-.mjs").then((T) => T.e);
43124
43107
  y(new F({
43125
43108
  element: get$2(k),
43126
43109
  spellChecker: !1,
@@ -43285,7 +43268,7 @@ const h = (l, u, m, f) => {
43285
43268
  return Math.sqrt(p + v);
43286
43269
  }, C = (l) => (u) => {
43287
43270
  !u.isPrimary || u.button > 0 || (u.cancelable && u.preventDefault(), l(u));
43288
- }, c = Symbol("atrament mode - draw"), n = Symbol("atrament mode - erase"), a = Symbol("atrament mode - fill"), r = Symbol("atrament mode - disabled"), d = [c, n], G = ["weight", "smoothing", "adaptiveStroke", "mode"];
43271
+ }, c = /* @__PURE__ */ Symbol("atrament mode - draw"), n = /* @__PURE__ */ Symbol("atrament mode - erase"), a = /* @__PURE__ */ Symbol("atrament mode - fill"), r = /* @__PURE__ */ Symbol("atrament mode - disabled"), d = [c, n], G = ["weight", "smoothing", "adaptiveStroke", "mode"];
43289
43272
  class A extends I {
43290
43273
  adaptiveStroke = !0;
43291
43274
  canvas;
@@ -48757,7 +48740,7 @@ function Modal(l, u) {
48757
48740
  }
48758
48741
  return append$1(l, V), bind_prop(u, "show", M), bind_prop(u, "hide", S), bind_prop(u, "toggle", F), bind_prop(u, "cancel", T), pop(N);
48759
48742
  }
48760
- const keepOpen = Symbol("keepOpen");
48743
+ const keepOpen = /* @__PURE__ */ Symbol("keepOpen");
48761
48744
  var root_1$8 = /* @__PURE__ */ from_html("<h1><!></h1> <!>", 1), root_7$1 = /* @__PURE__ */ from_html("<!> <!>", 1), root_6$3 = /* @__PURE__ */ from_html('<div class="secondary-action svelte-1n52s5j"><!></div>'), root_13 = /* @__PURE__ */ from_html("<!> <!>", 1), root_12 = /* @__PURE__ */ from_html('<span class="confirm-wrap svelte-1n52s5j"><!></span>'), root_5$3 = /* @__PURE__ */ from_html('<div class="spectrum-ButtonGroup spectrum-Dialog-buttonGroup spectrum-Dialog-buttonGroup--noFooter svelte-1n52s5j"><!> <!> <!> <!></div>'), root_16$1 = /* @__PURE__ */ from_html('<div class="close-icon svelte-1n52s5j"><!></div>'), root$n = /* @__PURE__ */ from_html('<div style="position: relative;" role="dialog" tabindex="-1" aria-modal="true"><div><!> <section class="spectrum-Dialog-content content-grid svelte-1n52s5j"><!></section> <!> <!></div></div>');
48762
48745
  function ModalContent(l, u) {
48763
48746
  const m = sanitize_slots(u), f = legacy_rest_props(u, ["children", "$$slots", "$$events", "$$legacy"]), p = legacy_rest_props(f, [
@@ -54338,7 +54321,7 @@ function _extend(l, u) {
54338
54321
  function hasOwnProperty$g(l, u) {
54339
54322
  return Object.prototype.hasOwnProperty.call(l, u);
54340
54323
  }
54341
- var kCustomPromisifiedSymbol = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
54324
+ var kCustomPromisifiedSymbol = typeof Symbol < "u" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0;
54342
54325
  function promisify(l) {
54343
54326
  if (typeof l != "function") throw new TypeError('The "original" argument must be of type Function');
54344
54327
  if (kCustomPromisifiedSymbol && l[kCustomPromisifiedSymbol]) {
@@ -54390,12 +54373,6 @@ promisify.custom = kCustomPromisifiedSymbol;
54390
54373
  var util = { inherits, _extend, log, isBuffer: isBuffer$3, isPrimitive, isFunction: isFunction$1, isError: isError$2, isDate: isDate$1, isObject: isObject$5, isRegExp, isUndefined, isSymbol: isSymbol$1, isString, isNumber: isNumber$3, isNullOrUndefined, isNull, isBoolean, isArray: isArray$3, inspect, deprecate, format: format$1, debuglog, promisify, callbackify }, isBuffer_1$2 = function(l) {
54391
54374
  return l != null && (isBuffer$2(l) || isSlowBuffer$1(l) || !!l._isBuffer);
54392
54375
  };
54393
- /*!
54394
- * Determine if an object is a Buffer
54395
- *
54396
- * @author Feross Aboukhadijeh <https://feross.org>
54397
- * @license MIT
54398
- */
54399
54376
  function isBuffer$2(l) {
54400
54377
  return !!l.constructor && typeof l.constructor.isBuffer == "function" && l.constructor.isBuffer(l);
54401
54378
  }
@@ -54629,12 +54606,6 @@ var handlebarsUtils = createCommonjsModule(function(l, u) {
54629
54606
  } while (++P < $ && isValidObject(l));
54630
54607
  return P === $ ? l : m.default;
54631
54608
  };
54632
- /*!
54633
- * isobject <https://github.com/jonschlinkert/isobject>
54634
- *
54635
- * Copyright (c) 2014-2017, Jon Schlinkert.
54636
- * Released under the MIT License.
54637
- */
54638
54609
  function join$1(l, u, m) {
54639
54610
  return typeof m.join == "function" ? m.join(l) : l[0] + u + l[1];
54640
54611
  }
@@ -54885,12 +54856,6 @@ var substr = "ab".substr(-1) === "b" ? function(l, u, m) {
54885
54856
  `, m += l, m += `
54886
54857
  `, m += "```";
54887
54858
  }, svgElements = ["circle", "ellipse", "line", "path", "polygon", "polyline", "rect", "stop", "use"], voidElements = ["area", "base", "br", "col", "command", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], selfClosingTags = voidElements.concat(svgElements), voidElements_1 = voidElements, svgElements_1 = svgElements;
54888
- /*!
54889
- * to-gfm-code-block <https://github.com/jonschlinkert/to-gfm-code-block>
54890
- *
54891
- * Copyright (c) 2015, Jon Schlinkert.
54892
- * Licensed under the MIT License.
54893
- */
54894
54859
  selfClosingTags.voidElements = voidElements_1, selfClosingTags.svgElements = svgElements_1;
54895
54860
  var isSelfClosing = function(l) {
54896
54861
  if (typeof l != "string") throw new TypeError("expected name to be a string");
@@ -54921,12 +54886,6 @@ var isSelfClosing = function(l) {
54921
54886
  }), isBuffer_1$1 = function(l) {
54922
54887
  return l != null && (isBuffer(l) || isSlowBuffer(l) || !!l._isBuffer);
54923
54888
  };
54924
- /*!
54925
- * html-tag <https://github.com/jonschlinkert/html-tag>
54926
- *
54927
- * Copyright (c) 2014-2017, Jon Schlinkert.
54928
- * Released under the MIT License.
54929
- */
54930
54889
  function isBuffer(l) {
54931
54890
  return !!l.constructor && typeof l.constructor.isBuffer == "function" && l.constructor.isBuffer(l);
54932
54891
  }
@@ -55369,12 +55328,6 @@ $1`);
55369
55328
  }, isNumber$1 = function(l) {
55370
55329
  return typeof l == "number" ? l - l === 0 : typeof l == "string" && l.trim() !== "" && (Number.isFinite ? Number.isFinite(+l) : isFinite(+l));
55371
55330
  };
55372
- /*!
55373
- * to-regex-range <https://github.com/micromatch/to-regex-range>
55374
- *
55375
- * Copyright (c) 2015-present, Jon Schlinkert.
55376
- * Released under the MIT License.
55377
- */
55378
55331
  const toRegexRange = (l, u, m) => {
55379
55332
  if (isNumber$1(l) === !1) throw new TypeError("toRegexRange: expected the first argument to be a number");
55380
55333
  if (u === void 0 || l === u) return String(l);
@@ -55469,12 +55422,6 @@ function padZeros(l, u, m) {
55469
55422
  }
55470
55423
  toRegexRange.cache = {}, toRegexRange.clearCache = () => toRegexRange.cache = {};
55471
55424
  var toRegexRange_1 = toRegexRange;
55472
- /*!
55473
- * fill-range <https://github.com/jonschlinkert/fill-range>
55474
- *
55475
- * Copyright (c) 2014-present, Jon Schlinkert.
55476
- * Licensed under the MIT License.
55477
- */
55478
55425
  const isObject$3 = (l) => l !== null && typeof l == "object" && !Array.isArray(l), transform = (l) => (u) => l === !0 ? Number(u) : String(u), isValidValue = (l) => typeof l == "number" || typeof l == "string" && l !== "", isNumber = (l) => Number.isInteger(+l), zeros = (l) => {
55479
55426
  let u = `${l}`, m = -1;
55480
55427
  if (u[0] === "-" && (u = u.slice(1)), u === "0") return !1;
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.31.4",
4
+ "version": "3.31.5",
5
5
  "license": "MPL-2.0",
6
6
  "module": "dist/bbui.mjs",
7
7
  "exports": {
@@ -107,5 +107,5 @@
107
107
  }
108
108
  }
109
109
  },
110
- "gitHead": "7d5a486a8c245870743408abb7d03a33e19c8679"
110
+ "gitHead": "8b6307f21fc1e0496119295b4417d57e13857c6a"
111
111
  }