@budibase/bbui 3.23.47 → 3.23.48

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 vf, c as mf, a as xf } from "./index-a983ecf2.mjs";
1
+ import { g as vf, c as mf, a as xf } from "./index-7af4cf13.mjs";
2
2
  const yf = {}, Df = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
3
  __proto__: null,
4
4
  default: yf
@@ -49691,7 +49691,7 @@ function instance$1m(u, l, m) {
49691
49691
  let f, { height: p = null } = l, { scroll: b = !0 } = l, { easyMDEOptions: v = null } = l, { mde: y = null } = l, { id: w = null } = l, { fullScreenOffset: k = null } = l, { disabled: P = !1 } = l, M;
49692
49692
  onMount(async () => {
49693
49693
  m(4, p = p || "200px");
49694
- const { default: F } = await import("./easymde-a1ebad50.mjs").then((T) => T.e);
49694
+ const { default: F } = await import("./easymde-ee925fe5.mjs").then((T) => T.e);
49695
49695
  m(5, y = new F({
49696
49696
  element: M,
49697
49697
  spellChecker: !1,
@@ -60031,9 +60031,20 @@ class ColorPicker extends SvelteComponent {
60031
60031
  });
60032
60032
  }
60033
60033
  }
60034
- const DetailSummary_svelte_svelte_type_style_lang = "";
60034
+ const DetailSummary_svelte_svelte_type_style_lang = "", get_actions_slot_changes = (u) => ({}), get_actions_slot_context = (u) => ({});
60035
60035
  function create_if_block$m(u) {
60036
- let l, m, f, p, b, v, y, w = (
60036
+ let l, m, f, p, b, v, y, w, k, P;
60037
+ const M = (
60038
+ /*#slots*/
60039
+ u[7].actions
60040
+ ), $ = create_slot(
60041
+ M,
60042
+ u,
60043
+ /*$$scope*/
60044
+ u[6],
60045
+ get_actions_slot_context
60046
+ );
60047
+ let S = (
60037
60048
  /*collapsible*/
60038
60049
  u[1] && create_if_block_1$f(u)
60039
60050
  );
@@ -60042,7 +60053,7 @@ function create_if_block$m(u) {
60042
60053
  l = element("div"), m = element("div"), f = text(
60043
60054
  /*name*/
60044
60055
  u[0]
60045
- ), p = space(), w && w.c(), attr(m, "class", "name svelte-1wbs484"), attr(l, "class", "property-group-name svelte-1wbs484"), toggle_class(
60056
+ ), p = space(), b = element("div"), v = element("div"), $ && $.c(), y = space(), S && S.c(), attr(m, "class", "name svelte-sz1rr6"), attr(v, "class", "actions svelte-sz1rr6"), attr(b, "class", "header-right svelte-sz1rr6"), attr(l, "class", "property-group-name svelte-sz1rr6"), toggle_class(
60046
60057
  l,
60047
60058
  "padded",
60048
60059
  /*padded*/
@@ -60055,47 +60066,71 @@ function create_if_block$m(u) {
60055
60066
  u[1]
60056
60067
  );
60057
60068
  },
60058
- m(k, P) {
60059
- insert(k, l, P), append$1(l, m), append$1(m, f), append$1(l, p), w && w.m(l, null), b = !0, v || (y = listen(
60060
- l,
60061
- "click",
60062
- /*onHeaderClick*/
60063
- u[4]
60064
- ), v = !0);
60069
+ m(F, T) {
60070
+ insert(F, l, T), append$1(l, m), append$1(m, f), append$1(l, p), append$1(l, b), append$1(b, v), $ && $.m(v, null), append$1(b, y), S && S.m(b, null), w = !0, k || (P = [
60071
+ listen(v, "click", stop_propagation(
60072
+ /*click_handler*/
60073
+ u[8]
60074
+ )),
60075
+ listen(
60076
+ l,
60077
+ "click",
60078
+ /*onHeaderClick*/
60079
+ u[4]
60080
+ )
60081
+ ], k = !0);
60065
60082
  },
60066
- p(k, P) {
60067
- (!b || P & /*name*/
60083
+ p(F, T) {
60084
+ (!w || T & /*name*/
60068
60085
  1) && set_data(
60069
60086
  f,
60070
60087
  /*name*/
60071
- k[0]
60088
+ F[0]
60089
+ ), $ && $.p && (!w || T & /*$$scope*/
60090
+ 64) && update_slot_base(
60091
+ $,
60092
+ M,
60093
+ F,
60094
+ /*$$scope*/
60095
+ F[6],
60096
+ w ? get_slot_changes(
60097
+ M,
60098
+ /*$$scope*/
60099
+ F[6],
60100
+ T,
60101
+ get_actions_slot_changes
60102
+ ) : get_all_dirty_from_scope(
60103
+ /*$$scope*/
60104
+ F[6]
60105
+ ),
60106
+ get_actions_slot_context
60072
60107
  ), /*collapsible*/
60073
- k[1] ? w ? (w.p(k, P), P & /*collapsible*/
60074
- 2 && transition_in(w, 1)) : (w = create_if_block_1$f(k), w.c(), transition_in(w, 1), w.m(l, null)) : w && (group_outros(), transition_out(w, 1, 1, () => {
60075
- w = null;
60076
- }), check_outros()), (!b || P & /*padded*/
60108
+ F[1] ? S ? (S.p(F, T), T & /*collapsible*/
60109
+ 2 && transition_in(S, 1)) : (S = create_if_block_1$f(F), S.c(), transition_in(S, 1), S.m(b, null)) : S && (group_outros(), transition_out(S, 1, 1, () => {
60110
+ S = null;
60111
+ }), check_outros()), (!w || T & /*padded*/
60077
60112
  4) && toggle_class(
60078
60113
  l,
60079
60114
  "padded",
60080
60115
  /*padded*/
60081
- k[2]
60082
- ), (!b || P & /*show, collapsible*/
60116
+ F[2]
60117
+ ), (!w || T & /*show, collapsible*/
60083
60118
  10) && toggle_class(
60084
60119
  l,
60085
60120
  "open",
60086
60121
  /*show*/
60087
- k[3] || !/*collapsible*/
60088
- k[1]
60122
+ F[3] || !/*collapsible*/
60123
+ F[1]
60089
60124
  );
60090
60125
  },
60091
- i(k) {
60092
- b || (transition_in(w), b = !0);
60126
+ i(F) {
60127
+ w || (transition_in($, F), transition_in(S), w = !0);
60093
60128
  },
60094
- o(k) {
60095
- transition_out(w), b = !1;
60129
+ o(F) {
60130
+ transition_out($, F), transition_out(S), w = !1;
60096
60131
  },
60097
- d(k) {
60098
- k && detach(l), w && w.d(), v = !1, y();
60132
+ d(F) {
60133
+ F && detach(l), $ && $.d(F), S && S.d(), k = !1, run_all(P);
60099
60134
  }
60100
60135
  };
60101
60136
  }
@@ -60150,7 +60185,7 @@ function create_fragment$H(u) {
60150
60185
  );
60151
60186
  return {
60152
60187
  c() {
60153
- l = element("div"), b && b.c(), m = space(), f = element("div"), y && y.c(), attr(f, "class", "property-panel svelte-1wbs484"), toggle_class(
60188
+ l = element("div"), b && b.c(), m = space(), f = element("div"), y && y.c(), attr(f, "class", "property-panel svelte-sz1rr6"), toggle_class(
60154
60189
  f,
60155
60190
  "show",
60156
60191
  /*show*/
@@ -60162,7 +60197,7 @@ function create_fragment$H(u) {
60162
60197
  "padded",
60163
60198
  /*padded*/
60164
60199
  u[2]
60165
- ), attr(l, "class", "property-group-container svelte-1wbs484");
60200
+ ), attr(l, "class", "property-group-container svelte-sz1rr6");
60166
60201
  },
60167
60202
  m(w, k) {
60168
60203
  insert(w, l, k), b && b.m(l, null), append$1(l, m), append$1(l, f), y && y.m(f, null), p = !0;
@@ -60223,9 +60258,22 @@ function instance$G(u, l, m) {
60223
60258
  const P = () => {
60224
60259
  y && m(3, k = !k);
60225
60260
  };
60226
- return u.$$set = (M) => {
60227
- "name" in M && m(0, b = M.name), "initiallyShow" in M && m(5, v = M.initiallyShow), "collapsible" in M && m(1, y = M.collapsible), "padded" in M && m(2, w = M.padded), "$$scope" in M && m(6, p = M.$$scope);
60228
- }, [b, y, w, k, P, v, p, f];
60261
+ function M($) {
60262
+ bubble.call(this, u, $);
60263
+ }
60264
+ return u.$$set = ($) => {
60265
+ "name" in $ && m(0, b = $.name), "initiallyShow" in $ && m(5, v = $.initiallyShow), "collapsible" in $ && m(1, y = $.collapsible), "padded" in $ && m(2, w = $.padded), "$$scope" in $ && m(6, p = $.$$scope);
60266
+ }, [
60267
+ b,
60268
+ y,
60269
+ w,
60270
+ k,
60271
+ P,
60272
+ v,
60273
+ p,
60274
+ f,
60275
+ M
60276
+ ];
60229
60277
  }
60230
60278
  class DetailSummary extends SvelteComponent {
60231
60279
  constructor(l) {
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.23.47",
4
+ "version": "3.23.48",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.ts",
7
7
  "module": "dist/bbui.mjs",
@@ -107,5 +107,5 @@
107
107
  }
108
108
  }
109
109
  },
110
- "gitHead": "534845c38ed0fe209406ebe45fd87f3de79f1da5"
110
+ "gitHead": "0a78faa2adbb8fb3b81de2b9b00352e60178f12f"
111
111
  }
@@ -27,9 +27,14 @@
27
27
  class:open={show || !collapsible}
28
28
  >
29
29
  <div class="name">{name}</div>
30
- {#if collapsible}
31
- <Icon size="S" name={show ? "minus" : "plus"} />
32
- {/if}
30
+ <div class="header-right">
31
+ <div class="actions" on:click|stopPropagation>
32
+ <slot name="actions" />
33
+ </div>
34
+ {#if collapsible}
35
+ <Icon size="S" name={show ? "minus" : "plus"} />
36
+ {/if}
37
+ </div>
33
38
  </div>
34
39
  {/if}
35
40
  <div
@@ -91,6 +96,19 @@
91
96
  user-select: none;
92
97
  }
93
98
 
99
+ .header-right {
100
+ display: flex;
101
+ align-items: center;
102
+ justify-content: flex-end;
103
+ gap: var(--spacing-s);
104
+ flex: 0 0 auto;
105
+ }
106
+
107
+ .actions {
108
+ display: flex;
109
+ align-items: center;
110
+ }
111
+
94
112
  .property-panel {
95
113
  display: none;
96
114
  }