@abgov/web-components 1.0.0-alpha.155 → 1.0.0-alpha.157

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.
@@ -1303,7 +1303,7 @@ customElements.define("goa-accordion", Accordion);
1303
1303
 
1304
1304
  /* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.51.0 */
1305
1305
 
1306
- function create_else_block$5(ctx) {
1306
+ function create_else_block$6(ctx) {
1307
1307
  let div;
1308
1308
  let img0;
1309
1309
  let img0_src_value;
@@ -1412,7 +1412,7 @@ function create_fragment$I(ctx) {
1412
1412
 
1413
1413
  function select_block_type(ctx, dirty) {
1414
1414
  if (/*url*/ ctx[1]) return create_if_block$j;
1415
- return create_else_block$5;
1415
+ return create_else_block$6;
1416
1416
  }
1417
1417
 
1418
1418
  let current_block_type = select_block_type(ctx);
@@ -1566,7 +1566,7 @@ customElements.define("goa-app-header", AppHeader);
1566
1566
 
1567
1567
  /* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.51.0 */
1568
1568
 
1569
- function create_else_block$4(ctx) {
1569
+ function create_else_block$5(ctx) {
1570
1570
  let div;
1571
1571
 
1572
1572
  return {
@@ -1641,7 +1641,7 @@ function create_fragment$H(ctx) {
1641
1641
 
1642
1642
  function select_block_type(ctx, dirty) {
1643
1643
  if (/*showIcon*/ ctx[7]) return create_if_block_1$a;
1644
- return create_else_block$4;
1644
+ return create_else_block$5;
1645
1645
  }
1646
1646
 
1647
1647
  let current_block_type = select_block_type(ctx);
@@ -2067,7 +2067,7 @@ customElements.define("goa-block", Block);
2067
2067
 
2068
2068
  /* libs/web-components/src/components/button/Button.svelte generated by Svelte v3.51.0 */
2069
2069
 
2070
- function create_else_block$3(ctx) {
2070
+ function create_else_block$4(ctx) {
2071
2071
  let t0;
2072
2072
  let span;
2073
2073
  let t1;
@@ -2230,7 +2230,7 @@ function create_fragment$F(ctx) {
2230
2230
 
2231
2231
  function select_block_type(ctx, dirty) {
2232
2232
  if (/*type*/ ctx[0] === "start") return create_if_block$h;
2233
- return create_else_block$3;
2233
+ return create_else_block$4;
2234
2234
  }
2235
2235
 
2236
2236
  let current_block_type = select_block_type(ctx);
@@ -4361,11 +4361,9 @@ function noscroll(_node, opts) {
4361
4361
  return;
4362
4362
  }
4363
4363
  const scrollbarWidth = calculateScrollbarWidth();
4364
- if (scrollbarWidth > 0) {
4365
- toggledScrolling = true;
4366
- document.body.style.overflow = "hidden";
4367
- document.body.style.paddingRight = scrollbarWidth + "px";
4368
- }
4364
+ toggledScrolling = true;
4365
+ document.body.style.overflow = "hidden";
4366
+ document.body.style.paddingRight = scrollbarWidth + "px";
4369
4367
  }
4370
4368
  function isScrollable() {
4371
4369
  return document.body.style.overflow !== "hidden";
@@ -4503,7 +4501,7 @@ function create_if_block_3$4(ctx) {
4503
4501
  let goa_spinner;
4504
4502
  let t;
4505
4503
  let div_class_value;
4506
- let if_block = /*message*/ ctx[0] && create_if_block_4$2(ctx);
4504
+ let if_block = /*message*/ ctx[0] && create_if_block_4$1(ctx);
4507
4505
 
4508
4506
  return {
4509
4507
  c() {
@@ -4535,7 +4533,7 @@ function create_if_block_3$4(ctx) {
4535
4533
  if (if_block) {
4536
4534
  if_block.p(ctx, dirty);
4537
4535
  } else {
4538
- if_block = create_if_block_4$2(ctx);
4536
+ if_block = create_if_block_4$1(ctx);
4539
4537
  if_block.c();
4540
4538
  if_block.m(div, null);
4541
4539
  }
@@ -4646,7 +4644,7 @@ function create_if_block_1$6(ctx) {
4646
4644
  }
4647
4645
 
4648
4646
  // (46:6) {#if message}
4649
- function create_if_block_4$2(ctx) {
4647
+ function create_if_block_4$1(ctx) {
4650
4648
  let div;
4651
4649
  let t;
4652
4650
 
@@ -5460,7 +5458,7 @@ function get_each_context$4(ctx, list, i) {
5460
5458
  }
5461
5459
 
5462
5460
  // (256:2) {:else}
5463
- function create_else_block$2(ctx) {
5461
+ function create_else_block$3(ctx) {
5464
5462
  let t0;
5465
5463
  let goa_input;
5466
5464
  let goa_input_arialabel_value;
@@ -5906,7 +5904,7 @@ function create_fragment$r(ctx) {
5906
5904
 
5907
5905
  function select_block_type(ctx, dirty) {
5908
5906
  if (/*_native*/ ctx[22]) return create_if_block$c;
5909
- return create_else_block$2;
5907
+ return create_else_block$3;
5910
5908
  }
5911
5909
 
5912
5910
  let current_block_type = select_block_type(ctx);
@@ -6589,7 +6587,6 @@ function create_fragment$p(ctx) {
6589
6587
  <span tabindex="0"></span>`;
6590
6588
 
6591
6589
  this.c = noop;
6592
- attr(div, "id", "root");
6593
6590
  },
6594
6591
  m(target, anchor) {
6595
6592
  insert(target, div, anchor);
@@ -6635,7 +6632,7 @@ function instance$n($$self, $$props, $$invalidate) {
6635
6632
  let { active } = $$props;
6636
6633
  let ignoreFocusChanges = false;
6637
6634
  let lastFocus;
6638
- let element;
6635
+ let rootEl;
6639
6636
  let hasListeners = false;
6640
6637
 
6641
6638
  function removeListeners() {
@@ -6723,9 +6720,7 @@ function instance$n($$self, $$props, $$invalidate) {
6723
6720
 
6724
6721
  try {
6725
6722
  ignoreFocusChanges = true;
6726
- element.focus();
6727
- } catch(e) {
6728
-
6723
+ element && element.focus();
6729
6724
  } finally {
6730
6725
  ignoreFocusChanges = false;
6731
6726
  }
@@ -6737,7 +6732,7 @@ function instance$n($$self, $$props, $$invalidate) {
6737
6732
  var _a;
6738
6733
  if (ignoreFocusChanges) return;
6739
6734
 
6740
- const slotElements = (_a = element.firstChild) === null || _a === void 0
6735
+ const slotElements = (_a = rootEl.firstChild) === null || _a === void 0
6741
6736
  ? void 0
6742
6737
  : _a.assignedElements();
6743
6738
 
@@ -6763,8 +6758,8 @@ function instance$n($$self, $$props, $$invalidate) {
6763
6758
 
6764
6759
  function div_binding($$value) {
6765
6760
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
6766
- element = $$value;
6767
- $$invalidate(0, element);
6761
+ rootEl = $$value;
6762
+ $$invalidate(0, rootEl);
6768
6763
  });
6769
6764
  }
6770
6765
 
@@ -6792,13 +6787,13 @@ function instance$n($$self, $$props, $$invalidate) {
6792
6787
  }
6793
6788
  };
6794
6789
 
6795
- return [element, active, hasListeners, isActive, div_binding];
6790
+ return [rootEl, active, hasListeners, isActive, div_binding];
6796
6791
  }
6797
6792
 
6798
6793
  class FocusTrap extends SvelteElement {
6799
6794
  constructor(options) {
6800
6795
  super();
6801
- this.shadowRoot.innerHTML = `<style>#root{display:inline}</style>`;
6796
+ this.shadowRoot.innerHTML = `<style>div{display:inline}</style>`;
6802
6797
 
6803
6798
  init(
6804
6799
  this,
@@ -8908,7 +8903,7 @@ customElements.define("goa-icon", Icon);
8908
8903
 
8909
8904
  /* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.51.0 */
8910
8905
 
8911
- function create_if_block_4$1(ctx) {
8906
+ function create_if_block_4(ctx) {
8912
8907
  let div;
8913
8908
  let t;
8914
8909
 
@@ -9066,7 +9061,7 @@ function create_fragment$g(ctx) {
9066
9061
  let div3_style_value;
9067
9062
  let mounted;
9068
9063
  let dispose;
9069
- let if_block0 = /*prefix*/ ctx[14] && create_if_block_4$1(ctx);
9064
+ let if_block0 = /*prefix*/ ctx[14] && create_if_block_4(ctx);
9070
9065
  let if_block1 = /*leadingicon*/ ctx[5] && create_if_block_3$2(ctx);
9071
9066
  let if_block2 = /*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[24] && create_if_block_2$3(ctx);
9072
9067
  let if_block3 = /*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[24] && create_if_block_1$3(ctx);
@@ -9161,7 +9156,7 @@ function create_fragment$g(ctx) {
9161
9156
  if (if_block0) {
9162
9157
  if_block0.p(ctx, dirty);
9163
9158
  } else {
9164
- if_block0 = create_if_block_4$1(ctx);
9159
+ if_block0 = create_if_block_4(ctx);
9165
9160
  if_block0.c();
9166
9161
  if_block0.m(div2, t0);
9167
9162
  }
@@ -10180,98 +10175,108 @@ customElements.define("goa-microsite-header", MicrositeHeader);
10180
10175
 
10181
10176
  function create_if_block$5(ctx) {
10182
10177
  let goa_focus_trap;
10183
- let div5;
10178
+ let div6;
10184
10179
  let div0;
10185
10180
  let t0;
10186
- let div4;
10181
+ let div5;
10187
10182
  let t1;
10188
- let div3;
10183
+ let div4;
10184
+ let header;
10185
+ let div1;
10189
10186
  let t2;
10190
10187
  let t3;
10191
- let div1;
10192
- let t4;
10193
- let slot0;
10194
- let t5;
10195
10188
  let div2;
10196
- let div4_intro;
10197
- let div4_outro;
10198
- let div5_style_value;
10199
- let noscroll_action;
10189
+ let goa_scrollable;
10190
+ let t4;
10191
+ let div3;
10200
10192
  let div5_intro;
10201
10193
  let div5_outro;
10194
+ let div6_style_value;
10195
+ let noscroll_action;
10196
+ let div6_intro;
10197
+ let div6_outro;
10202
10198
  let current;
10203
10199
  let mounted;
10204
10200
  let dispose;
10205
- let if_block0 = /*calloutvariant*/ ctx[3] !== null && create_if_block_4(ctx);
10206
- let if_block1 = /*heading*/ ctx[0] && create_if_block_3(ctx);
10207
- let if_block2 = /*isClosable*/ ctx[4] && create_if_block_2$1(ctx);
10201
+ let if_block0 = /*calloutvariant*/ ctx[3] !== null && create_if_block_3(ctx);
10208
10202
 
10209
10203
  function select_block_type(ctx, dirty) {
10210
- return create_if_block_1$1;
10204
+ if (/*heading*/ ctx[0]) return create_if_block_2$1;
10205
+ return create_else_block$2;
10211
10206
  }
10212
10207
 
10213
- let current_block_type = select_block_type();
10214
- let if_block3 = current_block_type(ctx);
10208
+ let current_block_type = select_block_type(ctx);
10209
+ let if_block1 = current_block_type(ctx);
10210
+ let if_block2 = /*_isClosable*/ ctx[7] && create_if_block_1$1(ctx);
10215
10211
 
10216
10212
  return {
10217
10213
  c() {
10218
10214
  goa_focus_trap = element("goa-focus-trap");
10219
- div5 = element("div");
10215
+ div6 = element("div");
10220
10216
  div0 = element("div");
10221
10217
  t0 = space();
10222
- div4 = element("div");
10218
+ div5 = element("div");
10223
10219
  if (if_block0) if_block0.c();
10224
10220
  t1 = space();
10225
- div3 = element("div");
10226
- if (if_block1) if_block1.c();
10221
+ div4 = element("div");
10222
+ header = element("header");
10223
+ div1 = element("div");
10224
+ if_block1.c();
10227
10225
  t2 = space();
10228
10226
  if (if_block2) if_block2.c();
10229
10227
  t3 = space();
10230
- div1 = element("div");
10231
- if_block3.c();
10232
- t4 = space();
10233
- slot0 = element("slot");
10234
- t5 = space();
10235
10228
  div2 = element("div");
10236
- div2.innerHTML = `<slot name="actions"></slot>`;
10229
+ goa_scrollable = element("goa-scrollable");
10230
+ goa_scrollable.innerHTML = `<slot></slot>`;
10231
+ t4 = space();
10232
+ div3 = element("div");
10233
+ div3.innerHTML = `<slot name="actions"></slot>`;
10237
10234
  attr(div0, "data-testid", "modal-overlay");
10238
10235
  attr(div0, "class", "modal-overlay");
10239
- attr(div1, "data-testid", "modal-content");
10240
- attr(div1, "class", "modal-content");
10241
- attr(div2, "class", "modal-actions");
10242
- attr(div2, "data-testid", "modal-actions");
10243
- attr(div3, "class", "content");
10244
- attr(div4, "class", "modal-pane");
10245
- attr(div5, "data-testid", "modal");
10246
- attr(div5, "class", "modal");
10247
- attr(div5, "style", div5_style_value = "" + ((/*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`) + ";"));
10236
+ attr(div1, "data-testid", "modal-title");
10237
+ attr(div1, "class", "modal-title");
10238
+ set_custom_element_data(goa_scrollable, "direction", "vertical");
10239
+ set_custom_element_data(goa_scrollable, "hpadding", "1.9rem");
10240
+ set_custom_element_data(goa_scrollable, "maxheight", "70vh");
10241
+ attr(div2, "data-testid", "modal-content");
10242
+ attr(div2, "class", "modal-content");
10243
+ attr(div3, "class", "modal-actions");
10244
+ attr(div3, "data-testid", "modal-actions");
10245
+ attr(div4, "class", "content");
10246
+ attr(div5, "class", "modal-pane");
10247
+ attr(div6, "data-testid", "modal");
10248
+ attr(div6, "class", "modal");
10249
+ attr(div6, "style", div6_style_value = /*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`);
10248
10250
  set_custom_element_data(goa_focus_trap, "active", /*open*/ ctx[1]);
10249
10251
  },
10250
10252
  m(target, anchor) {
10251
10253
  insert(target, goa_focus_trap, anchor);
10252
- append(goa_focus_trap, div5);
10253
- append(div5, div0);
10254
- append(div5, t0);
10254
+ append(goa_focus_trap, div6);
10255
+ append(div6, div0);
10256
+ append(div6, t0);
10257
+ append(div6, div5);
10258
+ if (if_block0) if_block0.m(div5, null);
10259
+ append(div5, t1);
10255
10260
  append(div5, div4);
10256
- if (if_block0) if_block0.m(div4, null);
10257
- append(div4, t1);
10261
+ append(div4, header);
10262
+ append(header, div1);
10263
+ if_block1.m(div1, null);
10264
+ append(header, t2);
10265
+ if (if_block2) if_block2.m(header, null);
10266
+ append(div4, t3);
10267
+ append(div4, div2);
10268
+ append(div2, goa_scrollable);
10269
+ /*goa_scrollable_binding*/ ctx[14](goa_scrollable);
10270
+ /*div2_binding*/ ctx[15](div2);
10271
+ append(div4, t4);
10258
10272
  append(div4, div3);
10259
- if (if_block1) if_block1.m(div3, null);
10260
- append(div3, t2);
10261
- if (if_block2) if_block2.m(div3, null);
10262
- append(div3, t3);
10263
- append(div3, div1);
10264
- if_block3.m(div1, null);
10265
- append(div1, t4);
10266
- append(div1, slot0);
10267
- append(div3, t5);
10268
- append(div3, div2);
10269
10273
  current = true;
10270
10274
 
10271
10275
  if (!mounted) {
10272
10276
  dispose = [
10273
- listen(div0, "click", /*close*/ ctx[8]),
10274
- action_destroyer(noscroll_action = noscroll.call(null, div5, { enable: /*isOpen*/ ctx[7] }))
10277
+ listen(div0, "click", /*close*/ ctx[10]),
10278
+ listen(goa_scrollable, "_scroll", /*handleScroll*/ ctx[11]),
10279
+ action_destroyer(noscroll_action = noscroll.call(null, div6, { enable: /*_isOpen*/ ctx[6] }))
10275
10280
  ];
10276
10281
 
10277
10282
  mounted = true;
@@ -10284,46 +10289,45 @@ function create_if_block$5(ctx) {
10284
10289
  if (if_block0) {
10285
10290
  if_block0.p(ctx, dirty);
10286
10291
  } else {
10287
- if_block0 = create_if_block_4(ctx);
10292
+ if_block0 = create_if_block_3(ctx);
10288
10293
  if_block0.c();
10289
- if_block0.m(div4, t1);
10294
+ if_block0.m(div5, t1);
10290
10295
  }
10291
10296
  } else if (if_block0) {
10292
10297
  if_block0.d(1);
10293
10298
  if_block0 = null;
10294
10299
  }
10295
10300
 
10296
- if (/*heading*/ ctx[0]) {
10301
+ if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block1) {
10302
+ if_block1.p(ctx, dirty);
10303
+ } else {
10304
+ if_block1.d(1);
10305
+ if_block1 = current_block_type(ctx);
10306
+
10297
10307
  if (if_block1) {
10298
- if_block1.p(ctx, dirty);
10299
- } else {
10300
- if_block1 = create_if_block_3(ctx);
10301
10308
  if_block1.c();
10302
- if_block1.m(div3, t2);
10309
+ if_block1.m(div1, null);
10303
10310
  }
10304
- } else if (if_block1) {
10305
- if_block1.d(1);
10306
- if_block1 = null;
10307
10311
  }
10308
10312
 
10309
- if (/*isClosable*/ ctx[4]) {
10313
+ if (/*_isClosable*/ ctx[7]) {
10310
10314
  if (if_block2) {
10311
10315
  if_block2.p(ctx, dirty);
10312
10316
  } else {
10313
- if_block2 = create_if_block_2$1(ctx);
10317
+ if_block2 = create_if_block_1$1(ctx);
10314
10318
  if_block2.c();
10315
- if_block2.m(div3, t3);
10319
+ if_block2.m(header, null);
10316
10320
  }
10317
10321
  } else if (if_block2) {
10318
10322
  if_block2.d(1);
10319
10323
  if_block2 = null;
10320
10324
  }
10321
10325
 
10322
- if (!current || dirty & /*width*/ 4 && div5_style_value !== (div5_style_value = "" + ((/*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`) + ";"))) {
10323
- attr(div5, "style", div5_style_value);
10326
+ if (!current || dirty & /*width*/ 4 && div6_style_value !== (div6_style_value = /*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`)) {
10327
+ attr(div6, "style", div6_style_value);
10324
10328
  }
10325
10329
 
10326
- if (noscroll_action && is_function(noscroll_action.update) && dirty & /*isOpen*/ 128) noscroll_action.update.call(null, { enable: /*isOpen*/ ctx[7] });
10330
+ if (noscroll_action && is_function(noscroll_action.update) && dirty & /*_isOpen*/ 64) noscroll_action.update.call(null, { enable: /*_isOpen*/ ctx[6] });
10327
10331
 
10328
10332
  if (!current || dirty & /*open*/ 2) {
10329
10333
  set_custom_element_data(goa_focus_trap, "active", /*open*/ ctx[1]);
@@ -10333,38 +10337,38 @@ function create_if_block$5(ctx) {
10333
10337
  if (current) return;
10334
10338
 
10335
10339
  add_render_callback(() => {
10336
- if (div4_outro) div4_outro.end(1);
10340
+ if (div5_outro) div5_outro.end(1);
10337
10341
 
10338
- div4_intro = create_in_transition(div4, fly, {
10339
- duration: /*_transitionTime*/ ctx[6],
10342
+ div5_intro = create_in_transition(div5, fly, {
10343
+ duration: /*_transitionTime*/ ctx[9],
10340
10344
  y: 200
10341
10345
  });
10342
10346
 
10343
- div4_intro.start();
10347
+ div5_intro.start();
10344
10348
  });
10345
10349
 
10346
10350
  add_render_callback(() => {
10347
- if (div5_outro) div5_outro.end(1);
10348
- div5_intro = create_in_transition(div5, fade, { duration: /*_transitionTime*/ ctx[6] });
10349
- div5_intro.start();
10351
+ if (div6_outro) div6_outro.end(1);
10352
+ div6_intro = create_in_transition(div6, fade, { duration: /*_transitionTime*/ ctx[9] });
10353
+ div6_intro.start();
10350
10354
  });
10351
10355
 
10352
10356
  current = true;
10353
10357
  },
10354
10358
  o(local) {
10355
- if (div4_intro) div4_intro.invalidate();
10359
+ if (div5_intro) div5_intro.invalidate();
10356
10360
 
10357
- div4_outro = create_out_transition(div4, fly, {
10358
- delay: /*_transitionTime*/ ctx[6],
10359
- duration: /*_transitionTime*/ ctx[6],
10361
+ div5_outro = create_out_transition(div5, fly, {
10362
+ delay: /*_transitionTime*/ ctx[9],
10363
+ duration: /*_transitionTime*/ ctx[9],
10360
10364
  y: -100
10361
10365
  });
10362
10366
 
10363
- if (div5_intro) div5_intro.invalidate();
10367
+ if (div6_intro) div6_intro.invalidate();
10364
10368
 
10365
- div5_outro = create_out_transition(div5, fade, {
10366
- delay: /*_transitionTime*/ ctx[6],
10367
- duration: /*_transitionTime*/ ctx[6]
10369
+ div6_outro = create_out_transition(div6, fade, {
10370
+ delay: /*_transitionTime*/ ctx[9],
10371
+ duration: /*_transitionTime*/ ctx[9]
10368
10372
  });
10369
10373
 
10370
10374
  current = false;
@@ -10372,19 +10376,20 @@ function create_if_block$5(ctx) {
10372
10376
  d(detaching) {
10373
10377
  if (detaching) detach(goa_focus_trap);
10374
10378
  if (if_block0) if_block0.d();
10375
- if (if_block1) if_block1.d();
10379
+ if_block1.d();
10376
10380
  if (if_block2) if_block2.d();
10377
- if_block3.d();
10378
- if (detaching && div4_outro) div4_outro.end();
10381
+ /*goa_scrollable_binding*/ ctx[14](null);
10382
+ /*div2_binding*/ ctx[15](null);
10379
10383
  if (detaching && div5_outro) div5_outro.end();
10384
+ if (detaching && div6_outro) div6_outro.end();
10380
10385
  mounted = false;
10381
10386
  run_all(dispose);
10382
10387
  }
10383
10388
  };
10384
10389
  }
10385
10390
 
10386
- // (67:8) {#if calloutvariant !== null}
10387
- function create_if_block_4(ctx) {
10391
+ // (102:8) {#if calloutvariant !== null}
10392
+ function create_if_block_3(ctx) {
10388
10393
  let div;
10389
10394
  let goa_icon;
10390
10395
  let goa_icon_inverted_value;
@@ -10394,7 +10399,7 @@ function create_if_block_4(ctx) {
10394
10399
  c() {
10395
10400
  div = element("div");
10396
10401
  goa_icon = element("goa-icon");
10397
- set_custom_element_data(goa_icon, "type", /*iconType*/ ctx[5]);
10402
+ set_custom_element_data(goa_icon, "type", /*_iconType*/ ctx[8]);
10398
10403
 
10399
10404
  set_custom_element_data(goa_icon, "inverted", goa_icon_inverted_value = /*calloutvariant*/ ctx[3] === "important"
10400
10405
  ? "false"
@@ -10407,8 +10412,8 @@ function create_if_block_4(ctx) {
10407
10412
  append(div, goa_icon);
10408
10413
  },
10409
10414
  p(ctx, dirty) {
10410
- if (dirty & /*iconType*/ 32) {
10411
- set_custom_element_data(goa_icon, "type", /*iconType*/ ctx[5]);
10415
+ if (dirty & /*_iconType*/ 256) {
10416
+ set_custom_element_data(goa_icon, "type", /*_iconType*/ ctx[8]);
10412
10417
  }
10413
10418
 
10414
10419
  if (dirty & /*calloutvariant*/ 8 && goa_icon_inverted_value !== (goa_icon_inverted_value = /*calloutvariant*/ ctx[3] === "important"
@@ -10427,33 +10432,47 @@ function create_if_block_4(ctx) {
10427
10432
  };
10428
10433
  }
10429
10434
 
10430
- // (76:10) {#if heading}
10431
- function create_if_block_3(ctx) {
10432
- let div;
10435
+ // (115:14) {:else}
10436
+ function create_else_block$2(ctx) {
10437
+ let slot;
10438
+
10439
+ return {
10440
+ c() {
10441
+ slot = element("slot");
10442
+ attr(slot, "name", "heading");
10443
+ },
10444
+ m(target, anchor) {
10445
+ insert(target, slot, anchor);
10446
+ },
10447
+ p: noop,
10448
+ d(detaching) {
10449
+ if (detaching) detach(slot);
10450
+ }
10451
+ };
10452
+ }
10453
+
10454
+ // (113:14) {#if heading}
10455
+ function create_if_block_2$1(ctx) {
10433
10456
  let t;
10434
10457
 
10435
10458
  return {
10436
10459
  c() {
10437
- div = element("div");
10438
10460
  t = text(/*heading*/ ctx[0]);
10439
- attr(div, "data-testid", "modal-title");
10440
- attr(div, "class", "modal-title");
10441
10461
  },
10442
10462
  m(target, anchor) {
10443
- insert(target, div, anchor);
10444
- append(div, t);
10463
+ insert(target, t, anchor);
10445
10464
  },
10446
10465
  p(ctx, dirty) {
10447
10466
  if (dirty & /*heading*/ 1) set_data(t, /*heading*/ ctx[0]);
10448
10467
  },
10449
10468
  d(detaching) {
10450
- if (detaching) detach(div);
10469
+ if (detaching) detach(t);
10451
10470
  }
10452
10471
  };
10453
10472
  }
10454
10473
 
10455
- // (79:10) {#if isClosable}
10456
- function create_if_block_2$1(ctx) {
10474
+ // (119:12) {#if _isClosable}
10475
+ function create_if_block_1$1(ctx) {
10457
10476
  let div;
10458
10477
  let goa_icon_button;
10459
10478
  let mounted;
@@ -10473,7 +10492,7 @@ function create_if_block_2$1(ctx) {
10473
10492
  append(div, goa_icon_button);
10474
10493
 
10475
10494
  if (!mounted) {
10476
- dispose = listen(goa_icon_button, "click", /*close*/ ctx[8]);
10495
+ dispose = listen(goa_icon_button, "click", /*close*/ ctx[10]);
10477
10496
  mounted = true;
10478
10497
  }
10479
10498
  },
@@ -10486,30 +10505,10 @@ function create_if_block_2$1(ctx) {
10486
10505
  };
10487
10506
  }
10488
10507
 
10489
- // (91:12) {#if isScrollable}
10490
- function create_if_block_1$1(ctx) {
10491
- let goa_scrollable;
10492
-
10493
- return {
10494
- c() {
10495
- goa_scrollable = element("goa-scrollable");
10496
- goa_scrollable.innerHTML = `<slot></slot>`;
10497
- set_custom_element_data(goa_scrollable, "direction", "vertical");
10498
- set_custom_element_data(goa_scrollable, "height", "50");
10499
- },
10500
- m(target, anchor) {
10501
- insert(target, goa_scrollable, anchor);
10502
- },
10503
- d(detaching) {
10504
- if (detaching) detach(goa_scrollable);
10505
- }
10506
- };
10507
- }
10508
-
10509
10508
  function create_fragment$e(ctx) {
10510
10509
  let if_block_anchor;
10511
10510
  let current;
10512
- let if_block = /*isOpen*/ ctx[7] && create_if_block$5(ctx);
10511
+ let if_block = /*_isOpen*/ ctx[6] && create_if_block$5(ctx);
10513
10512
 
10514
10513
  return {
10515
10514
  c() {
@@ -10523,11 +10522,11 @@ function create_fragment$e(ctx) {
10523
10522
  current = true;
10524
10523
  },
10525
10524
  p(ctx, [dirty]) {
10526
- if (/*isOpen*/ ctx[7]) {
10525
+ if (/*_isOpen*/ ctx[6]) {
10527
10526
  if (if_block) {
10528
10527
  if_block.p(ctx, dirty);
10529
10528
 
10530
- if (dirty & /*isOpen*/ 128) {
10529
+ if (dirty & /*_isOpen*/ 64) {
10531
10530
  transition_in(if_block, 1);
10532
10531
  }
10533
10532
  } else {
@@ -10563,12 +10562,10 @@ function create_fragment$e(ctx) {
10563
10562
  }
10564
10563
 
10565
10564
  function instance$c($$self, $$props, $$invalidate) {
10566
- let isClosable;
10567
- let isOpen;
10565
+ let _isClosable;
10566
+ let _isOpen;
10568
10567
  let _transitionTime;
10569
- let iconType;
10570
- const [CALLOUT_VARIANT, validateCalloutVariant] = typeValidator("Callout variant", ["emergency", "important", "information", "success", "event"]);
10571
- const [Transitions, validateTransition] = typeValidator("Modal transition", ["fast", "slow", "none"]);
10568
+ let _iconType;
10572
10569
  let { heading = "" } = $$props;
10573
10570
  let { closable = "false" } = $$props;
10574
10571
  let { open = "false" } = $$props;
@@ -10576,8 +10573,25 @@ function instance$c($$self, $$props, $$invalidate) {
10576
10573
  let { width = "" } = $$props;
10577
10574
  let { calloutvariant = null } = $$props;
10578
10575
 
10576
+ // Private
10577
+ let _contentEl = null;
10578
+
10579
+ let _scrollEl = null;
10580
+
10581
+ // Type verification
10582
+ const [CALLOUT_VARIANT, validateCalloutVariant] = typeValidator("Callout variant", ["emergency", "important", "information", "success", "event"]);
10583
+
10584
+ const [Transitions, validateTransition] = typeValidator("Modal transition", ["fast", "slow", "none"]);
10585
+
10586
+ // Hooks
10587
+ onMount(() => {
10588
+ validateCalloutVariant(calloutvariant);
10589
+ validateTransition(transition);
10590
+ });
10591
+
10592
+ // Functions
10579
10593
  function close(e) {
10580
- if (!isClosable) {
10594
+ if (!_isClosable) {
10581
10595
  return;
10582
10596
  }
10583
10597
 
@@ -10585,37 +10599,82 @@ function instance$c($$self, $$props, $$invalidate) {
10585
10599
  e.stopPropagation();
10586
10600
  }
10587
10601
 
10588
- onMount(() => {
10589
- validateCalloutVariant(calloutvariant);
10590
- validateTransition(transition);
10591
- });
10602
+ function handleScroll(e) {
10603
+ const hasScroll = e.detail.scrollHeight > e.detail.offsetHeight;
10604
+
10605
+ if (_isOpen && hasScroll) {
10606
+ const atTop = e.detail.scrollTop == 0;
10607
+ const atBottom = Math.abs(e.detail.scrollHeight - e.detail.scrollTop - e.detail.offsetHeight) < 1;
10608
+ _contentEl.classList.remove("scroll-top", "scroll-bottom", "scroll-middle");
10609
+
10610
+ if (atTop) {
10611
+ _contentEl.classList.add("scroll-top");
10612
+ } else if (atBottom) {
10613
+ _contentEl.classList.add("scroll-bottom");
10614
+ } else {
10615
+ _contentEl.classList.add("scroll-middle");
10616
+ }
10617
+ }
10618
+ }
10619
+
10620
+ function goa_scrollable_binding($$value) {
10621
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
10622
+ _scrollEl = $$value;
10623
+ (($$invalidate(5, _scrollEl), $$invalidate(6, _isOpen)), $$invalidate(1, open));
10624
+ });
10625
+ }
10626
+
10627
+ function div2_binding($$value) {
10628
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
10629
+ _contentEl = $$value;
10630
+ (($$invalidate(4, _contentEl), $$invalidate(6, _isOpen)), $$invalidate(1, open));
10631
+ });
10632
+ }
10592
10633
 
10593
10634
  $$self.$$set = $$props => {
10594
10635
  if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
10595
- if ('closable' in $$props) $$invalidate(9, closable = $$props.closable);
10636
+ if ('closable' in $$props) $$invalidate(12, closable = $$props.closable);
10596
10637
  if ('open' in $$props) $$invalidate(1, open = $$props.open);
10597
- if ('transition' in $$props) $$invalidate(10, transition = $$props.transition);
10638
+ if ('transition' in $$props) $$invalidate(13, transition = $$props.transition);
10598
10639
  if ('width' in $$props) $$invalidate(2, width = $$props.width);
10599
10640
  if ('calloutvariant' in $$props) $$invalidate(3, calloutvariant = $$props.calloutvariant);
10600
10641
  };
10601
10642
 
10602
10643
  $$self.$$.update = () => {
10603
- if ($$self.$$.dirty & /*closable*/ 512) {
10604
- $$invalidate(4, isClosable = toBoolean(closable));
10644
+ if ($$self.$$.dirty & /*closable*/ 4096) {
10645
+ // Reactive
10646
+ $$invalidate(7, _isClosable = toBoolean(closable));
10605
10647
  }
10606
10648
 
10607
10649
  if ($$self.$$.dirty & /*open*/ 2) {
10608
- $$invalidate(7, isOpen = toBoolean(open));
10650
+ $$invalidate(6, _isOpen = toBoolean(open));
10609
10651
  }
10610
10652
 
10611
- if ($$self.$$.dirty & /*transition*/ 1024) {
10612
- $$invalidate(6, _transitionTime = transition === "none"
10653
+ if ($$self.$$.dirty & /*_isOpen*/ 64) {
10654
+ if (!_isOpen) {
10655
+ // prevent null issues
10656
+ $$invalidate(4, _contentEl = $$invalidate(5, _scrollEl = null));
10657
+ }
10658
+ }
10659
+
10660
+ if ($$self.$$.dirty & /*_isOpen, _scrollEl, _contentEl*/ 112) {
10661
+ if (_isOpen && _scrollEl && _contentEl) {
10662
+ const hasScroll = _scrollEl.scrollHeight > _scrollEl.offsetHeight;
10663
+
10664
+ if (hasScroll) {
10665
+ _contentEl.classList.add("scroll-top");
10666
+ }
10667
+ }
10668
+ }
10669
+
10670
+ if ($$self.$$.dirty & /*transition*/ 8192) {
10671
+ $$invalidate(9, _transitionTime = transition === "none"
10613
10672
  ? 0
10614
10673
  : transition === "slow" ? 400 : 200);
10615
10674
  }
10616
10675
 
10617
10676
  if ($$self.$$.dirty & /*calloutvariant*/ 8) {
10618
- $$invalidate(5, iconType = calloutvariant === "emergency"
10677
+ $$invalidate(8, _iconType = calloutvariant === "emergency"
10619
10678
  ? "warning"
10620
10679
  : calloutvariant === "important"
10621
10680
  ? "alert-circle"
@@ -10632,20 +10691,25 @@ function instance$c($$self, $$props, $$invalidate) {
10632
10691
  open,
10633
10692
  width,
10634
10693
  calloutvariant,
10635
- isClosable,
10636
- iconType,
10694
+ _contentEl,
10695
+ _scrollEl,
10696
+ _isOpen,
10697
+ _isClosable,
10698
+ _iconType,
10637
10699
  _transitionTime,
10638
- isOpen,
10639
10700
  close,
10701
+ handleScroll,
10640
10702
  closable,
10641
- transition
10703
+ transition,
10704
+ goa_scrollable_binding,
10705
+ div2_binding
10642
10706
  ];
10643
10707
  }
10644
10708
 
10645
10709
  class Modal extends SvelteElement {
10646
10710
  constructor(options) {
10647
10711
  super();
10648
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.modal{font-family:var(--goa-font-family-sans);position:fixed;inset:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem;border-radius:4px 0px 0px 4px}.content{flex:1 1 auto;width:100%;margin:2rem 2rem}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;display:flex;margin:1rem;box-shadow:var(--goa-shadow-modal);border-radius:4px;max-height:90%;border:1px solid var(--goa-color-greyscale-700)}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions ::slotted(div){margin:1.5rem 0 0}.modal-content ::slotted(:last-child){margin-bottom:0 !important}.modal-close{position:absolute;top:2rem;right:2rem}.modal-title{font-size:var(--goa-font-size-7);margin:0 0 1.5rem;margin-right:40px;flex:0 0 auto}.modal-content{line-height:1.75rem}</style>`;
10712
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}:host *{box-sizing:border-box}.modal{font-family:var(--goa-font-family-sans);position:fixed;inset:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.emergency{background-color:var(--goa-color-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem;border-radius:4px 0px 0px 4px}.content{flex:1 1 auto;width:100%;margin:2rem}.content header{display:flex;align-items:center;margin-bottom:2rem;justify-content:space-between}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;display:flex;box-shadow:var(--goa-shadow-modal);border-radius:4px;border:1px solid var(--goa-color-greyscale-700)}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch)}}.modal-actions ::slotted(*){padding:1.5rem 0 0}.modal-content{margin:0 -2rem;line-height:1.75rem}.modal-content ::slotted(:last-child){margin-bottom:0 !important}.modal-title{font-size:var(--goa-font-size-7);flex:0 0 auto}.scroll-top{box-shadow:inset 0px -8px 6px -6px rgba(0, 0, 0, 0.1)}.scroll-middle{box-shadow:inset 0px -8px 6px -6px rgba(0, 0, 0, 0.1), inset 0px 8px 6px -6px rgba(0, 0, 0, 0.1)}.scroll-bottom{box-shadow:inset 0px 8px 6px -6px rgba(0, 0, 0, 0.1)}</style>`;
10649
10713
 
10650
10714
  init(
10651
10715
  this,
@@ -10659,9 +10723,9 @@ class Modal extends SvelteElement {
10659
10723
  safe_not_equal,
10660
10724
  {
10661
10725
  heading: 0,
10662
- closable: 9,
10726
+ closable: 12,
10663
10727
  open: 1,
10664
- transition: 10,
10728
+ transition: 13,
10665
10729
  width: 2,
10666
10730
  calloutvariant: 3
10667
10731
  },
@@ -10694,7 +10758,7 @@ class Modal extends SvelteElement {
10694
10758
  }
10695
10759
 
10696
10760
  get closable() {
10697
- return this.$$.ctx[9];
10761
+ return this.$$.ctx[12];
10698
10762
  }
10699
10763
 
10700
10764
  set closable(closable) {
@@ -10712,7 +10776,7 @@ class Modal extends SvelteElement {
10712
10776
  }
10713
10777
 
10714
10778
  get transition() {
10715
- return this.$$.ctx[10];
10779
+ return this.$$.ctx[13];
10716
10780
  }
10717
10781
 
10718
10782
  set transition(transition) {
@@ -11999,6 +12063,8 @@ function create_fragment$9(ctx) {
11999
12063
  let div;
12000
12064
  let slot;
12001
12065
  let div_style_value;
12066
+ let mounted;
12067
+ let dispose;
12002
12068
 
12003
12069
  return {
12004
12070
  c() {
@@ -12008,28 +12074,34 @@ function create_fragment$9(ctx) {
12008
12074
  attr(div, "class", "goa-scrollable");
12009
12075
 
12010
12076
  attr(div, "style", div_style_value = `
12011
- --max-height: ${/*height*/ ctx[3]};
12077
+ max-height: ${/*maxheight*/ ctx[3] || "50vh"};
12012
12078
  overflow-y: ${/*direction*/ ctx[0] === "vertical" ? 'auto' : 'hidden'};
12013
12079
  overflow-x: ${/*direction*/ ctx[0] === "horizontal"
12014
12080
  ? 'auto'
12015
12081
  : 'hidden'};
12016
- margin: ${/*vpadding*/ ctx[2]}rem 0;
12017
- padding: 0 ${/*hpadding*/ ctx[1]}rem;
12082
+ margin: ${/*vpadding*/ ctx[2]} 0;
12083
+ padding: 0 ${/*hpadding*/ ctx[1]};
12018
12084
  `);
12019
12085
  },
12020
12086
  m(target, anchor) {
12021
12087
  insert(target, div, anchor);
12022
12088
  append(div, slot);
12089
+ /*div_binding*/ ctx[8](div);
12090
+
12091
+ if (!mounted) {
12092
+ dispose = listen(div, "scroll", /*onScroll*/ ctx[5]);
12093
+ mounted = true;
12094
+ }
12023
12095
  },
12024
12096
  p(ctx, [dirty]) {
12025
- if (dirty & /*height, direction, vpadding, hpadding*/ 15 && div_style_value !== (div_style_value = `
12026
- --max-height: ${/*height*/ ctx[3]};
12097
+ if (dirty & /*maxheight, direction, vpadding, hpadding*/ 15 && div_style_value !== (div_style_value = `
12098
+ max-height: ${/*maxheight*/ ctx[3] || "50vh"};
12027
12099
  overflow-y: ${/*direction*/ ctx[0] === "vertical" ? 'auto' : 'hidden'};
12028
12100
  overflow-x: ${/*direction*/ ctx[0] === "horizontal"
12029
12101
  ? 'auto'
12030
12102
  : 'hidden'};
12031
- margin: ${/*vpadding*/ ctx[2]}rem 0;
12032
- padding: 0 ${/*hpadding*/ ctx[1]}rem;
12103
+ margin: ${/*vpadding*/ ctx[2]} 0;
12104
+ padding: 0 ${/*hpadding*/ ctx[1]};
12033
12105
  `)) {
12034
12106
  attr(div, "style", div_style_value);
12035
12107
  }
@@ -12038,30 +12110,76 @@ function create_fragment$9(ctx) {
12038
12110
  o: noop,
12039
12111
  d(detaching) {
12040
12112
  if (detaching) detach(div);
12113
+ /*div_binding*/ ctx[8](null);
12114
+ mounted = false;
12115
+ dispose();
12041
12116
  }
12042
12117
  };
12043
12118
  }
12044
12119
 
12045
12120
  function instance$7($$self, $$props, $$invalidate) {
12046
12121
  let { direction = "vertical" } = $$props;
12047
- let { hpadding = 0 } = $$props;
12048
- let { vpadding = 0 } = $$props;
12049
- let { height = 0 } = $$props;
12122
+ let { hpadding = "" } = $$props;
12123
+ let { vpadding = "" } = $$props;
12124
+ let { maxheight = "" } = $$props;
12125
+ let { offsetHeight } = $$props;
12126
+ let { scrollHeight } = $$props;
12127
+
12128
+ // Private
12129
+ let _el;
12130
+
12131
+ function onScroll(e) {
12132
+ e.target.dispatchEvent(new CustomEvent("_scroll",
12133
+ {
12134
+ composed: true,
12135
+ detail: {
12136
+ offsetHeight: _el.offsetHeight,
12137
+ scrollHeight: _el.scrollHeight,
12138
+ scrollTop: _el.scrollTop
12139
+ }
12140
+ }));
12141
+
12142
+ e.stopPropagation();
12143
+ }
12144
+
12145
+ onMount(() => {
12146
+ $$invalidate(6, offsetHeight = _el.offsetHeight);
12147
+ $$invalidate(7, scrollHeight = _el.scrollHeight);
12148
+ });
12149
+
12150
+ function div_binding($$value) {
12151
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
12152
+ _el = $$value;
12153
+ $$invalidate(4, _el);
12154
+ });
12155
+ }
12050
12156
 
12051
12157
  $$self.$$set = $$props => {
12052
12158
  if ('direction' in $$props) $$invalidate(0, direction = $$props.direction);
12053
12159
  if ('hpadding' in $$props) $$invalidate(1, hpadding = $$props.hpadding);
12054
12160
  if ('vpadding' in $$props) $$invalidate(2, vpadding = $$props.vpadding);
12055
- if ('height' in $$props) $$invalidate(3, height = $$props.height);
12161
+ if ('maxheight' in $$props) $$invalidate(3, maxheight = $$props.maxheight);
12162
+ if ('offsetHeight' in $$props) $$invalidate(6, offsetHeight = $$props.offsetHeight);
12163
+ if ('scrollHeight' in $$props) $$invalidate(7, scrollHeight = $$props.scrollHeight);
12056
12164
  };
12057
12165
 
12058
- return [direction, hpadding, vpadding, height];
12166
+ return [
12167
+ direction,
12168
+ hpadding,
12169
+ vpadding,
12170
+ maxheight,
12171
+ _el,
12172
+ onScroll,
12173
+ offsetHeight,
12174
+ scrollHeight,
12175
+ div_binding
12176
+ ];
12059
12177
  }
12060
12178
 
12061
12179
  class Scrollable extends SvelteElement {
12062
12180
  constructor(options) {
12063
12181
  super();
12064
- this.shadowRoot.innerHTML = `<style>.goa-scrollable{scroll-behavior:smooth;max-height:calc(100vh * var(--max-height, 100) / 100)}.goa-scrollable::-webkit-scrollbar{width:6px}.goa-scrollable::-webkit-scrollbar-track{background:#f1f1f1}.goa-scrollable::-webkit-scrollbar-thumb{background:#888}.goa-scrollable::-webkit-scrollbar-thumb:hover{background:#555}</style>`;
12182
+ this.shadowRoot.innerHTML = `<style>.goa-scrollable{scroll-behavior:smooth}.goa-scrollable::-webkit-scrollbar{width:6px}.goa-scrollable::-webkit-scrollbar-track{background:#f1f1f1}.goa-scrollable::-webkit-scrollbar-thumb{background:#888}.goa-scrollable::-webkit-scrollbar-thumb:hover{background:#555}</style>`;
12065
12183
 
12066
12184
  init(
12067
12185
  this,
@@ -12077,7 +12195,9 @@ class Scrollable extends SvelteElement {
12077
12195
  direction: 0,
12078
12196
  hpadding: 1,
12079
12197
  vpadding: 2,
12080
- height: 3
12198
+ maxheight: 3,
12199
+ offsetHeight: 6,
12200
+ scrollHeight: 7
12081
12201
  },
12082
12202
  null
12083
12203
  );
@@ -12095,7 +12215,14 @@ class Scrollable extends SvelteElement {
12095
12215
  }
12096
12216
 
12097
12217
  static get observedAttributes() {
12098
- return ["direction", "hpadding", "vpadding", "height"];
12218
+ return [
12219
+ "direction",
12220
+ "hpadding",
12221
+ "vpadding",
12222
+ "maxheight",
12223
+ "offsetHeight",
12224
+ "scrollHeight"
12225
+ ];
12099
12226
  }
12100
12227
 
12101
12228
  get direction() {
@@ -12125,12 +12252,30 @@ class Scrollable extends SvelteElement {
12125
12252
  flush();
12126
12253
  }
12127
12254
 
12128
- get height() {
12255
+ get maxheight() {
12129
12256
  return this.$$.ctx[3];
12130
12257
  }
12131
12258
 
12132
- set height(height) {
12133
- this.$$set({ height });
12259
+ set maxheight(maxheight) {
12260
+ this.$$set({ maxheight });
12261
+ flush();
12262
+ }
12263
+
12264
+ get offsetHeight() {
12265
+ return this.$$.ctx[6];
12266
+ }
12267
+
12268
+ set offsetHeight(offsetHeight) {
12269
+ this.$$set({ offsetHeight });
12270
+ flush();
12271
+ }
12272
+
12273
+ get scrollHeight() {
12274
+ return this.$$.ctx[7];
12275
+ }
12276
+
12277
+ set scrollHeight(scrollHeight) {
12278
+ this.$$set({ scrollHeight });
12134
12279
  flush();
12135
12280
  }
12136
12281
  }