@abgov/react-components 4.0.0-alpha.70 → 4.0.0-alpha.72
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.
- package/lib/modal/modal.d.ts +3 -2
- package/package.json +1 -1
- package/react-components.esm.js +84 -61
- package/react-components.umd.js +84 -61
package/lib/modal/modal.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
+
export declare type ModalTransition = "fast" | "slow" | "none";
|
|
2
3
|
interface WCProps {
|
|
3
4
|
ref: React.RefObject<HTMLElement>;
|
|
4
5
|
heading?: string;
|
|
@@ -6,7 +7,7 @@ interface WCProps {
|
|
|
6
7
|
width?: string;
|
|
7
8
|
closable?: boolean;
|
|
8
9
|
scrollable?: boolean;
|
|
9
|
-
transition?:
|
|
10
|
+
transition?: ModalTransition;
|
|
10
11
|
}
|
|
11
12
|
declare global {
|
|
12
13
|
namespace JSX {
|
|
@@ -20,7 +21,7 @@ interface Props {
|
|
|
20
21
|
width?: string;
|
|
21
22
|
actions?: React.ReactElement;
|
|
22
23
|
onClose?: () => void;
|
|
23
|
-
transition?:
|
|
24
|
+
transition?: ModalTransition;
|
|
24
25
|
children?: React.ReactNode;
|
|
25
26
|
open?: boolean;
|
|
26
27
|
}
|
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -126,6 +126,7 @@ function append_empty_stylesheet(node) {
|
|
|
126
126
|
|
|
127
127
|
function append_stylesheet(node, style) {
|
|
128
128
|
append(node.head || node, style);
|
|
129
|
+
return style.sheet;
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
function insert(target, node, anchor) {
|
|
@@ -289,13 +290,10 @@ function clear_rules() {
|
|
|
289
290
|
if (active) return;
|
|
290
291
|
managed_styles.forEach(info => {
|
|
291
292
|
const {
|
|
292
|
-
|
|
293
|
-
} = info;
|
|
294
|
-
let i = stylesheet.cssRules.length;
|
|
293
|
+
ownerNode
|
|
294
|
+
} = info.stylesheet; // there is no ownerNode if it runs on jsdom.
|
|
295
295
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
info.rules = {};
|
|
296
|
+
if (ownerNode) detach(ownerNode);
|
|
299
297
|
});
|
|
300
298
|
managed_styles.clear();
|
|
301
299
|
});
|
|
@@ -311,10 +309,29 @@ function get_current_component() {
|
|
|
311
309
|
if (!current_component) throw new Error('Function called outside component initialization');
|
|
312
310
|
return current_component;
|
|
313
311
|
}
|
|
312
|
+
/**
|
|
313
|
+
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
|
314
|
+
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
|
315
|
+
* it can be called from an external module).
|
|
316
|
+
*
|
|
317
|
+
* `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
|
|
318
|
+
*
|
|
319
|
+
* https://svelte.dev/docs#run-time-svelte-onmount
|
|
320
|
+
*/
|
|
321
|
+
|
|
314
322
|
|
|
315
323
|
function onMount(fn) {
|
|
316
324
|
get_current_component().$$.on_mount.push(fn);
|
|
317
325
|
}
|
|
326
|
+
/**
|
|
327
|
+
* Schedules a callback to run immediately before the component is unmounted.
|
|
328
|
+
*
|
|
329
|
+
* Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the
|
|
330
|
+
* only one that runs inside a server-side component.
|
|
331
|
+
*
|
|
332
|
+
* https://svelte.dev/docs#run-time-svelte-ondestroy
|
|
333
|
+
*/
|
|
334
|
+
|
|
318
335
|
|
|
319
336
|
function onDestroy(fn) {
|
|
320
337
|
get_current_component().$$.on_destroy.push(fn);
|
|
@@ -837,8 +854,6 @@ function create_component(block) {
|
|
|
837
854
|
function mount_component(component, target, anchor, customElement) {
|
|
838
855
|
const {
|
|
839
856
|
fragment,
|
|
840
|
-
on_mount,
|
|
841
|
-
on_destroy,
|
|
842
857
|
after_update
|
|
843
858
|
} = component.$$;
|
|
844
859
|
fragment && fragment.m(target, anchor);
|
|
@@ -846,10 +861,12 @@ function mount_component(component, target, anchor, customElement) {
|
|
|
846
861
|
if (!customElement) {
|
|
847
862
|
// onMount happens before the initial afterUpdate
|
|
848
863
|
add_render_callback(() => {
|
|
849
|
-
const new_on_destroy = on_mount.map(run).filter(is_function);
|
|
864
|
+
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function); // if the component was destroyed immediately
|
|
865
|
+
// it will update the `$$.on_destroy` reference to `null`.
|
|
866
|
+
// the destructured on_destroy may still reference to the old array
|
|
850
867
|
|
|
851
|
-
if (on_destroy) {
|
|
852
|
-
on_destroy.push(...new_on_destroy);
|
|
868
|
+
if (component.$$.on_destroy) {
|
|
869
|
+
component.$$.on_destroy.push(...new_on_destroy);
|
|
853
870
|
} else {
|
|
854
871
|
// Edge case - component was destroyed immediately,
|
|
855
872
|
// most likely as a result of a binding initialising
|
|
@@ -891,7 +908,7 @@ function init(component, options, instance, create_fragment, not_equal, props, a
|
|
|
891
908
|
set_current_component(component);
|
|
892
909
|
const $$ = component.$$ = {
|
|
893
910
|
fragment: null,
|
|
894
|
-
ctx:
|
|
911
|
+
ctx: [],
|
|
895
912
|
// state
|
|
896
913
|
props,
|
|
897
914
|
update: noop,
|
|
@@ -985,6 +1002,10 @@ if (typeof HTMLElement === 'function') {
|
|
|
985
1002
|
|
|
986
1003
|
$on(type, callback) {
|
|
987
1004
|
// TODO should this delegate to addEventListener?
|
|
1005
|
+
if (!is_function(callback)) {
|
|
1006
|
+
return noop;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
988
1009
|
const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);
|
|
989
1010
|
callbacks.push(callback);
|
|
990
1011
|
return () => {
|
|
@@ -1003,7 +1024,7 @@ if (typeof HTMLElement === 'function') {
|
|
|
1003
1024
|
|
|
1004
1025
|
};
|
|
1005
1026
|
}
|
|
1006
|
-
/* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.
|
|
1027
|
+
/* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.51.0 */
|
|
1007
1028
|
|
|
1008
1029
|
|
|
1009
1030
|
function create_else_block$4(ctx) {
|
|
@@ -1332,7 +1353,7 @@ function toBoolean(value) {
|
|
|
1332
1353
|
function fromBoolean(value) {
|
|
1333
1354
|
return value ? "true" : "false";
|
|
1334
1355
|
}
|
|
1335
|
-
/* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.
|
|
1356
|
+
/* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.51.0 */
|
|
1336
1357
|
|
|
1337
1358
|
|
|
1338
1359
|
function create_else_block$3(ctx) {
|
|
@@ -1667,7 +1688,7 @@ class Badge extends SvelteElement {
|
|
|
1667
1688
|
}
|
|
1668
1689
|
|
|
1669
1690
|
customElements.define("goa-badge", Badge);
|
|
1670
|
-
/* libs/web-components/src/components/button-group/ButtonGroup.svelte generated by Svelte v3.
|
|
1691
|
+
/* libs/web-components/src/components/button-group/ButtonGroup.svelte generated by Svelte v3.51.0 */
|
|
1671
1692
|
|
|
1672
1693
|
function create_fragment$D(ctx) {
|
|
1673
1694
|
let div;
|
|
@@ -1737,7 +1758,7 @@ function instance$y($$self, $$props, $$invalidate) {
|
|
|
1737
1758
|
class ButtonGroup extends SvelteElement {
|
|
1738
1759
|
constructor(options) {
|
|
1739
1760
|
super();
|
|
1740
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}div{display:flex;flex-direction:row;justify-content:var(--alignment);flex-wrap:wrap;gap:var(--gap-size)}</style>`;
|
|
1761
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}div{display:flex;flex-direction:row;justify-content:var(--alignment);flex-wrap:wrap;gap:var(--gap-size);padding:3px 0}</style>`;
|
|
1741
1762
|
init(this, {
|
|
1742
1763
|
target: this.shadowRoot,
|
|
1743
1764
|
props: attribute_to_object(this.attributes),
|
|
@@ -1788,7 +1809,7 @@ class ButtonGroup extends SvelteElement {
|
|
|
1788
1809
|
}
|
|
1789
1810
|
|
|
1790
1811
|
customElements.define("goa-button-group", ButtonGroup);
|
|
1791
|
-
/* libs/web-components/src/components/button/Button.svelte generated by Svelte v3.
|
|
1812
|
+
/* libs/web-components/src/components/button/Button.svelte generated by Svelte v3.51.0 */
|
|
1792
1813
|
|
|
1793
1814
|
function create_else_block$2(ctx) {
|
|
1794
1815
|
let t0;
|
|
@@ -2316,7 +2337,7 @@ class Button extends SvelteElement {
|
|
|
2316
2337
|
}
|
|
2317
2338
|
|
|
2318
2339
|
customElements.define("goa-button", Button);
|
|
2319
|
-
/* libs/web-components/src/components/callout/Callout.svelte generated by Svelte v3.
|
|
2340
|
+
/* libs/web-components/src/components/callout/Callout.svelte generated by Svelte v3.51.0 */
|
|
2320
2341
|
|
|
2321
2342
|
function create_if_block$g(ctx) {
|
|
2322
2343
|
let h3;
|
|
@@ -2555,7 +2576,7 @@ class Callout extends SvelteElement {
|
|
|
2555
2576
|
}
|
|
2556
2577
|
|
|
2557
2578
|
customElements.define("goa-callout", Callout);
|
|
2558
|
-
/* libs/web-components/src/components/card-actions/CardActions.svelte generated by Svelte v3.
|
|
2579
|
+
/* libs/web-components/src/components/card-actions/CardActions.svelte generated by Svelte v3.51.0 */
|
|
2559
2580
|
|
|
2560
2581
|
function create_fragment$A(ctx) {
|
|
2561
2582
|
let goa_card_content;
|
|
@@ -2600,7 +2621,7 @@ class CardActions extends SvelteElement {
|
|
|
2600
2621
|
}
|
|
2601
2622
|
|
|
2602
2623
|
customElements.define("goa-card-actions", CardActions);
|
|
2603
|
-
/* libs/web-components/src/components/card-content/CardContent.svelte generated by Svelte v3.
|
|
2624
|
+
/* libs/web-components/src/components/card-content/CardContent.svelte generated by Svelte v3.51.0 */
|
|
2604
2625
|
|
|
2605
2626
|
function create_fragment$z(ctx) {
|
|
2606
2627
|
let div;
|
|
@@ -2647,7 +2668,7 @@ class CardContent extends SvelteElement {
|
|
|
2647
2668
|
}
|
|
2648
2669
|
|
|
2649
2670
|
customElements.define("goa-card-content", CardContent);
|
|
2650
|
-
/* libs/web-components/src/components/card-group/CardGroup.svelte generated by Svelte v3.
|
|
2671
|
+
/* libs/web-components/src/components/card-group/CardGroup.svelte generated by Svelte v3.51.0 */
|
|
2651
2672
|
|
|
2652
2673
|
function create_fragment$y(ctx) {
|
|
2653
2674
|
let div;
|
|
@@ -2694,7 +2715,7 @@ class CardGroup extends SvelteElement {
|
|
|
2694
2715
|
}
|
|
2695
2716
|
|
|
2696
2717
|
customElements.define("goa-card-group", CardGroup);
|
|
2697
|
-
/* libs/web-components/src/components/card-image/CardImage.svelte generated by Svelte v3.
|
|
2718
|
+
/* libs/web-components/src/components/card-image/CardImage.svelte generated by Svelte v3.51.0 */
|
|
2698
2719
|
|
|
2699
2720
|
function create_fragment$x(ctx) {
|
|
2700
2721
|
let div;
|
|
@@ -2815,7 +2836,7 @@ class CardImage extends SvelteElement {
|
|
|
2815
2836
|
}
|
|
2816
2837
|
|
|
2817
2838
|
customElements.define("goa-card-image", CardImage);
|
|
2818
|
-
/* libs/web-components/src/components/card/Card.svelte generated by Svelte v3.
|
|
2839
|
+
/* libs/web-components/src/components/card/Card.svelte generated by Svelte v3.51.0 */
|
|
2819
2840
|
|
|
2820
2841
|
function create_fragment$w(ctx) {
|
|
2821
2842
|
let div;
|
|
@@ -2963,7 +2984,7 @@ class Card extends SvelteElement {
|
|
|
2963
2984
|
}
|
|
2964
2985
|
|
|
2965
2986
|
customElements.define("goa-card", Card);
|
|
2966
|
-
/* libs/web-components/src/components/checkbox/Checkbox.svelte generated by Svelte v3.
|
|
2987
|
+
/* libs/web-components/src/components/checkbox/Checkbox.svelte generated by Svelte v3.51.0 */
|
|
2967
2988
|
|
|
2968
2989
|
function create_if_block_1$9(ctx) {
|
|
2969
2990
|
let svg;
|
|
@@ -3423,7 +3444,7 @@ class Checkbox extends SvelteElement {
|
|
|
3423
3444
|
}
|
|
3424
3445
|
|
|
3425
3446
|
customElements.define("goa-checkbox", Checkbox);
|
|
3426
|
-
/* libs/web-components/src/components/chip/Chip.svelte generated by Svelte v3.
|
|
3447
|
+
/* libs/web-components/src/components/chip/Chip.svelte generated by Svelte v3.51.0 */
|
|
3427
3448
|
|
|
3428
3449
|
function create_if_block_1$8(ctx) {
|
|
3429
3450
|
let goa_icon;
|
|
@@ -3938,7 +3959,7 @@ function noscroll(_node, opts) {
|
|
|
3938
3959
|
|
|
3939
3960
|
};
|
|
3940
3961
|
}
|
|
3941
|
-
/* libs/web-components/src/components/circular-progress/CircularProgress.svelte generated by Svelte v3.
|
|
3962
|
+
/* libs/web-components/src/components/circular-progress/CircularProgress.svelte generated by Svelte v3.51.0 */
|
|
3942
3963
|
|
|
3943
3964
|
|
|
3944
3965
|
function create_if_block$d(ctx) {
|
|
@@ -4207,7 +4228,7 @@ function create_if_block_1$7(ctx) {
|
|
|
4207
4228
|
if_block = null;
|
|
4208
4229
|
}
|
|
4209
4230
|
|
|
4210
|
-
if (dirty &
|
|
4231
|
+
if (!current || dirty &
|
|
4211
4232
|
/*fullscreen*/
|
|
4212
4233
|
8) {
|
|
4213
4234
|
toggle_class(div, "fullscreen",
|
|
@@ -4512,7 +4533,7 @@ class CircularProgress extends SvelteElement {
|
|
|
4512
4533
|
}
|
|
4513
4534
|
|
|
4514
4535
|
customElements.define("goa-circular-progress", CircularProgress);
|
|
4515
|
-
/* libs/web-components/src/components/container/Container.svelte generated by Svelte v3.
|
|
4536
|
+
/* libs/web-components/src/components/container/Container.svelte generated by Svelte v3.51.0 */
|
|
4516
4537
|
|
|
4517
4538
|
function create_fragment$s(ctx) {
|
|
4518
4539
|
let div3;
|
|
@@ -4791,7 +4812,7 @@ function deleteContext(name) {
|
|
|
4791
4812
|
}
|
|
4792
4813
|
|
|
4793
4814
|
const BIND$1 = "bind";
|
|
4794
|
-
/* libs/web-components/src/components/dropdown/Dropdown.svelte generated by Svelte v3.
|
|
4815
|
+
/* libs/web-components/src/components/dropdown/Dropdown.svelte generated by Svelte v3.51.0 */
|
|
4795
4816
|
|
|
4796
4817
|
function get_each_context$4(ctx, list, i) {
|
|
4797
4818
|
const child_ctx = ctx.slice();
|
|
@@ -5766,7 +5787,7 @@ class Dropdown extends SvelteElement {
|
|
|
5766
5787
|
}
|
|
5767
5788
|
|
|
5768
5789
|
customElements.define("goa-dropdown", Dropdown);
|
|
5769
|
-
/* libs/web-components/src/components/dropdown/DropdownItem.svelte generated by Svelte v3.
|
|
5790
|
+
/* libs/web-components/src/components/dropdown/DropdownItem.svelte generated by Svelte v3.51.0 */
|
|
5770
5791
|
|
|
5771
5792
|
function create_fragment$q(ctx) {
|
|
5772
5793
|
return {
|
|
@@ -5888,7 +5909,7 @@ class DropdownItem extends SvelteElement {
|
|
|
5888
5909
|
}
|
|
5889
5910
|
|
|
5890
5911
|
customElements.define("goa-dropdown-item", DropdownItem);
|
|
5891
|
-
/* libs/web-components/src/components/flex-column/FlexColumn.svelte generated by Svelte v3.
|
|
5912
|
+
/* libs/web-components/src/components/flex-column/FlexColumn.svelte generated by Svelte v3.51.0 */
|
|
5892
5913
|
|
|
5893
5914
|
function create_fragment$p(ctx) {
|
|
5894
5915
|
let div;
|
|
@@ -5993,7 +6014,7 @@ class FlexColumn extends SvelteElement {
|
|
|
5993
6014
|
}
|
|
5994
6015
|
|
|
5995
6016
|
customElements.define("goa-flex-col", FlexColumn);
|
|
5996
|
-
/* libs/web-components/src/components/flex-row/FlexRow.svelte generated by Svelte v3.
|
|
6017
|
+
/* libs/web-components/src/components/flex-row/FlexRow.svelte generated by Svelte v3.51.0 */
|
|
5997
6018
|
|
|
5998
6019
|
function create_fragment$o(ctx) {
|
|
5999
6020
|
let div;
|
|
@@ -6098,7 +6119,7 @@ class FlexRow extends SvelteElement {
|
|
|
6098
6119
|
}
|
|
6099
6120
|
|
|
6100
6121
|
customElements.define("goa-flex-row", FlexRow);
|
|
6101
|
-
/* libs/web-components/src/components/focus-trap/FocusTrap.svelte generated by Svelte v3.
|
|
6122
|
+
/* libs/web-components/src/components/focus-trap/FocusTrap.svelte generated by Svelte v3.51.0 */
|
|
6102
6123
|
|
|
6103
6124
|
function create_fragment$n(ctx) {
|
|
6104
6125
|
let div;
|
|
@@ -6109,6 +6130,7 @@ function create_fragment$n(ctx) {
|
|
|
6109
6130
|
|
|
6110
6131
|
<span tabindex="0"></span>`;
|
|
6111
6132
|
this.c = noop;
|
|
6133
|
+
attr(div, "id", "root");
|
|
6112
6134
|
},
|
|
6113
6135
|
|
|
6114
6136
|
m(target, anchor) {
|
|
@@ -6318,6 +6340,7 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
6318
6340
|
class FocusTrap extends SvelteElement {
|
|
6319
6341
|
constructor(options) {
|
|
6320
6342
|
super();
|
|
6343
|
+
this.shadowRoot.innerHTML = `<style>#root{display:inline}</style>`;
|
|
6321
6344
|
init(this, {
|
|
6322
6345
|
target: this.shadowRoot,
|
|
6323
6346
|
props: attribute_to_object(this.attributes),
|
|
@@ -6356,7 +6379,7 @@ class FocusTrap extends SvelteElement {
|
|
|
6356
6379
|
}
|
|
6357
6380
|
|
|
6358
6381
|
customElements.define("goa-focus-trap", FocusTrap);
|
|
6359
|
-
/* libs/web-components/src/components/footer-meta-section/FooterMetaSection.svelte generated by Svelte v3.
|
|
6382
|
+
/* libs/web-components/src/components/footer-meta-section/FooterMetaSection.svelte generated by Svelte v3.51.0 */
|
|
6360
6383
|
|
|
6361
6384
|
function get_each_context$3(ctx, list, i) {
|
|
6362
6385
|
const child_ctx = ctx.slice();
|
|
@@ -6547,7 +6570,7 @@ class FooterMetaSection extends SvelteElement {
|
|
|
6547
6570
|
}
|
|
6548
6571
|
|
|
6549
6572
|
customElements.define("goa-app-footer-meta-section", FooterMetaSection);
|
|
6550
|
-
/* libs/web-components/src/components/footer-nav-section/FooterNavSection.svelte generated by Svelte v3.
|
|
6573
|
+
/* libs/web-components/src/components/footer-nav-section/FooterNavSection.svelte generated by Svelte v3.51.0 */
|
|
6551
6574
|
|
|
6552
6575
|
function get_each_context$2(ctx, list, i) {
|
|
6553
6576
|
const child_ctx = ctx.slice();
|
|
@@ -6895,7 +6918,7 @@ class FooterNavSection extends SvelteElement {
|
|
|
6895
6918
|
}
|
|
6896
6919
|
|
|
6897
6920
|
customElements.define("goa-app-footer-nav-section", FooterNavSection);
|
|
6898
|
-
/* libs/web-components/src/components/footer/Footer.svelte generated by Svelte v3.
|
|
6921
|
+
/* libs/web-components/src/components/footer/Footer.svelte generated by Svelte v3.51.0 */
|
|
6899
6922
|
|
|
6900
6923
|
function create_if_block$a(ctx) {
|
|
6901
6924
|
let goa_divider;
|
|
@@ -7129,7 +7152,7 @@ class Footer extends SvelteElement {
|
|
|
7129
7152
|
}
|
|
7130
7153
|
|
|
7131
7154
|
customElements.define("goa-app-footer", Footer);
|
|
7132
|
-
/* libs/web-components/src/components/form-item/FormItem.svelte generated by Svelte v3.
|
|
7155
|
+
/* libs/web-components/src/components/form-item/FormItem.svelte generated by Svelte v3.51.0 */
|
|
7133
7156
|
|
|
7134
7157
|
function create_if_block_2$5(ctx) {
|
|
7135
7158
|
let div;
|
|
@@ -7409,7 +7432,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7409
7432
|
class FormItem extends SvelteElement {
|
|
7410
7433
|
constructor(options) {
|
|
7411
7434
|
super();
|
|
7412
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0
|
|
7435
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0}.label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);line-height:var(--lh-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text);margin-right:56px}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
|
|
7413
7436
|
init(this, {
|
|
7414
7437
|
target: this.shadowRoot,
|
|
7415
7438
|
props: attribute_to_object(this.attributes),
|
|
@@ -7484,7 +7507,7 @@ class FormItem extends SvelteElement {
|
|
|
7484
7507
|
}
|
|
7485
7508
|
|
|
7486
7509
|
customElements.define("goa-form-item", FormItem);
|
|
7487
|
-
/* libs/web-components/src/components/hero-banner/HeroBanner.svelte generated by Svelte v3.
|
|
7510
|
+
/* libs/web-components/src/components/hero-banner/HeroBanner.svelte generated by Svelte v3.51.0 */
|
|
7488
7511
|
|
|
7489
7512
|
function create_fragment$i(ctx) {
|
|
7490
7513
|
let div1;
|
|
@@ -7630,7 +7653,7 @@ class HeroBanner extends SvelteElement {
|
|
|
7630
7653
|
}
|
|
7631
7654
|
|
|
7632
7655
|
customElements.define("goa-hero-banner", HeroBanner);
|
|
7633
|
-
/* libs/web-components/src/components/icon-button/IconButton.svelte generated by Svelte v3.
|
|
7656
|
+
/* libs/web-components/src/components/icon-button/IconButton.svelte generated by Svelte v3.51.0 */
|
|
7634
7657
|
|
|
7635
7658
|
function create_fragment$h(ctx) {
|
|
7636
7659
|
let button;
|
|
@@ -7990,7 +8013,7 @@ class IconButton extends SvelteElement {
|
|
|
7990
8013
|
}
|
|
7991
8014
|
|
|
7992
8015
|
customElements.define("goa-icon-button", IconButton);
|
|
7993
|
-
/* libs/web-components/src/components/icon/Icon.svelte generated by Svelte v3.
|
|
8016
|
+
/* libs/web-components/src/components/icon/Icon.svelte generated by Svelte v3.51.0 */
|
|
7994
8017
|
|
|
7995
8018
|
function create_if_block$8(ctx) {
|
|
7996
8019
|
let ion_icon;
|
|
@@ -8342,7 +8365,7 @@ class Icon extends SvelteElement {
|
|
|
8342
8365
|
}
|
|
8343
8366
|
|
|
8344
8367
|
customElements.define("goa-icon", Icon);
|
|
8345
|
-
/* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.
|
|
8368
|
+
/* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.51.0 */
|
|
8346
8369
|
|
|
8347
8370
|
function create_if_block_7(ctx) {
|
|
8348
8371
|
let div;
|
|
@@ -9597,7 +9620,7 @@ class Input extends SvelteElement {
|
|
|
9597
9620
|
}
|
|
9598
9621
|
|
|
9599
9622
|
customElements.define("goa-input", Input);
|
|
9600
|
-
/* libs/web-components/src/components/microsite-header/MicrositeHeader.svelte generated by Svelte v3.
|
|
9623
|
+
/* libs/web-components/src/components/microsite-header/MicrositeHeader.svelte generated by Svelte v3.51.0 */
|
|
9601
9624
|
|
|
9602
9625
|
function create_if_block_3$1(ctx) {
|
|
9603
9626
|
let div0;
|
|
@@ -9989,7 +10012,7 @@ class MicrositeHeader extends SvelteElement {
|
|
|
9989
10012
|
}
|
|
9990
10013
|
|
|
9991
10014
|
customElements.define("goa-microsite-header", MicrositeHeader);
|
|
9992
|
-
/* libs/web-components/src/components/modal/Modal.svelte generated by Svelte v3.
|
|
10015
|
+
/* libs/web-components/src/components/modal/Modal.svelte generated by Svelte v3.51.0 */
|
|
9993
10016
|
|
|
9994
10017
|
function create_if_block$5(ctx) {
|
|
9995
10018
|
let goa_focus_trap;
|
|
@@ -10225,7 +10248,7 @@ function create_if_block$5(ctx) {
|
|
|
10225
10248
|
}
|
|
10226
10249
|
|
|
10227
10250
|
};
|
|
10228
|
-
} // (
|
|
10251
|
+
} // (54:8) {#if heading}
|
|
10229
10252
|
|
|
10230
10253
|
|
|
10231
10254
|
function create_if_block_3(ctx) {
|
|
@@ -10259,7 +10282,7 @@ function create_if_block_3(ctx) {
|
|
|
10259
10282
|
}
|
|
10260
10283
|
|
|
10261
10284
|
};
|
|
10262
|
-
} // (
|
|
10285
|
+
} // (57:8) {#if isClosable}
|
|
10263
10286
|
|
|
10264
10287
|
|
|
10265
10288
|
function create_if_block_2$2(ctx) {
|
|
@@ -10297,7 +10320,7 @@ function create_if_block_2$2(ctx) {
|
|
|
10297
10320
|
}
|
|
10298
10321
|
|
|
10299
10322
|
};
|
|
10300
|
-
} // (
|
|
10323
|
+
} // (71:10) {:else}
|
|
10301
10324
|
|
|
10302
10325
|
|
|
10303
10326
|
function create_else_block$1(ctx) {
|
|
@@ -10318,7 +10341,7 @@ function create_else_block$1(ctx) {
|
|
|
10318
10341
|
}
|
|
10319
10342
|
|
|
10320
10343
|
};
|
|
10321
|
-
} // (
|
|
10344
|
+
} // (67:10) {#if isScrollable}
|
|
10322
10345
|
|
|
10323
10346
|
|
|
10324
10347
|
function create_if_block_1$3(ctx) {
|
|
@@ -10585,7 +10608,7 @@ class Modal extends SvelteElement {
|
|
|
10585
10608
|
}
|
|
10586
10609
|
|
|
10587
10610
|
customElements.define("goa-modal", Modal);
|
|
10588
|
-
/* libs/web-components/src/components/notification/Notification.svelte generated by Svelte v3.
|
|
10611
|
+
/* libs/web-components/src/components/notification/Notification.svelte generated by Svelte v3.51.0 */
|
|
10589
10612
|
|
|
10590
10613
|
function create_if_block$4(ctx) {
|
|
10591
10614
|
let div3;
|
|
@@ -10826,7 +10849,7 @@ const dimensionRegex = /^[1-9]+[0-9]*(px|em|rem|ch|vh|vw|%)$/;
|
|
|
10826
10849
|
function isValidDimension(value) {
|
|
10827
10850
|
return dimensionRegex.test(value);
|
|
10828
10851
|
}
|
|
10829
|
-
/* libs/web-components/src/components/page-block/PageBlock.svelte generated by Svelte v3.
|
|
10852
|
+
/* libs/web-components/src/components/page-block/PageBlock.svelte generated by Svelte v3.51.0 */
|
|
10830
10853
|
|
|
10831
10854
|
|
|
10832
10855
|
function create_fragment$b(ctx) {
|
|
@@ -10957,7 +10980,7 @@ class PageBlock extends SvelteElement {
|
|
|
10957
10980
|
|
|
10958
10981
|
customElements.define("goa-page-block", PageBlock);
|
|
10959
10982
|
const BIND = "bind";
|
|
10960
|
-
/* libs/web-components/src/components/radio-group/RadioGroup.svelte generated by Svelte v3.
|
|
10983
|
+
/* libs/web-components/src/components/radio-group/RadioGroup.svelte generated by Svelte v3.51.0 */
|
|
10961
10984
|
|
|
10962
10985
|
function get_each_context$1(ctx, list, i) {
|
|
10963
10986
|
const child_ctx = ctx.slice();
|
|
@@ -11436,7 +11459,7 @@ class RadioGroup extends SvelteElement {
|
|
|
11436
11459
|
}
|
|
11437
11460
|
|
|
11438
11461
|
customElements.define("goa-radio-group", RadioGroup);
|
|
11439
|
-
/* libs/web-components/src/components/radio-group/RadioItem.svelte generated by Svelte v3.
|
|
11462
|
+
/* libs/web-components/src/components/radio-group/RadioItem.svelte generated by Svelte v3.51.0 */
|
|
11440
11463
|
|
|
11441
11464
|
function create_fragment$9(ctx) {
|
|
11442
11465
|
return {
|
|
@@ -11565,7 +11588,7 @@ class RadioItem extends SvelteElement {
|
|
|
11565
11588
|
}
|
|
11566
11589
|
|
|
11567
11590
|
customElements.define("goa-radio-item", RadioItem);
|
|
11568
|
-
/* libs/web-components/src/components/scrollable/Scrollable.svelte generated by Svelte v3.
|
|
11591
|
+
/* libs/web-components/src/components/scrollable/Scrollable.svelte generated by Svelte v3.51.0 */
|
|
11569
11592
|
|
|
11570
11593
|
function create_fragment$8(ctx) {
|
|
11571
11594
|
let div;
|
|
@@ -11737,7 +11760,7 @@ class Scrollable extends SvelteElement {
|
|
|
11737
11760
|
}
|
|
11738
11761
|
|
|
11739
11762
|
customElements.define("goa-scrollable", Scrollable);
|
|
11740
|
-
/* libs/web-components/src/components/skeleton/Skeleton.svelte generated by Svelte v3.
|
|
11763
|
+
/* libs/web-components/src/components/skeleton/Skeleton.svelte generated by Svelte v3.51.0 */
|
|
11741
11764
|
|
|
11742
11765
|
function get_each_context(ctx, list, i) {
|
|
11743
11766
|
const child_ctx = ctx.slice();
|
|
@@ -12497,7 +12520,7 @@ function tweened(value, defaults = {}) {
|
|
|
12497
12520
|
subscribe: store.subscribe
|
|
12498
12521
|
};
|
|
12499
12522
|
}
|
|
12500
|
-
/* libs/web-components/src/components/spinner/Spinner.svelte generated by Svelte v3.
|
|
12523
|
+
/* libs/web-components/src/components/spinner/Spinner.svelte generated by Svelte v3.51.0 */
|
|
12501
12524
|
|
|
12502
12525
|
|
|
12503
12526
|
function create_if_block$2(ctx) {
|
|
@@ -12936,7 +12959,7 @@ class Spinner extends SvelteElement {
|
|
|
12936
12959
|
}
|
|
12937
12960
|
|
|
12938
12961
|
customElements.define("goa-spinner", Spinner);
|
|
12939
|
-
/* libs/web-components/src/components/text-area/TextArea.svelte generated by Svelte v3.
|
|
12962
|
+
/* libs/web-components/src/components/text-area/TextArea.svelte generated by Svelte v3.51.0 */
|
|
12940
12963
|
|
|
12941
12964
|
function create_if_block$1(ctx) {
|
|
12942
12965
|
let if_block_anchor;
|
|
@@ -13544,7 +13567,7 @@ class TextArea extends SvelteElement {
|
|
|
13544
13567
|
}
|
|
13545
13568
|
|
|
13546
13569
|
customElements.define("goa-textarea", TextArea);
|
|
13547
|
-
/* libs/web-components/src/layouts/one-column-layout/OneColumnLayout.svelte generated by Svelte v3.
|
|
13570
|
+
/* libs/web-components/src/layouts/one-column-layout/OneColumnLayout.svelte generated by Svelte v3.51.0 */
|
|
13548
13571
|
|
|
13549
13572
|
function create_fragment$4(ctx) {
|
|
13550
13573
|
let div;
|
|
@@ -13595,7 +13618,7 @@ class OneColumnLayout extends SvelteElement {
|
|
|
13595
13618
|
}
|
|
13596
13619
|
|
|
13597
13620
|
customElements.define("goa-one-column-layout", OneColumnLayout);
|
|
13598
|
-
/* libs/web-components/src/layouts/two-column-layout/TwoColumnLayout.svelte generated by Svelte v3.
|
|
13621
|
+
/* libs/web-components/src/layouts/two-column-layout/TwoColumnLayout.svelte generated by Svelte v3.51.0 */
|
|
13599
13622
|
|
|
13600
13623
|
function create_fragment$3(ctx) {
|
|
13601
13624
|
let div;
|
|
@@ -13737,7 +13760,7 @@ class TwoColumnLayout extends SvelteElement {
|
|
|
13737
13760
|
}
|
|
13738
13761
|
|
|
13739
13762
|
customElements.define("goa-two-column-layout", TwoColumnLayout);
|
|
13740
|
-
/* libs/web-components/src/layouts/FullScreenNavbarLayout.svelte generated by Svelte v3.
|
|
13763
|
+
/* libs/web-components/src/layouts/FullScreenNavbarLayout.svelte generated by Svelte v3.51.0 */
|
|
13741
13764
|
|
|
13742
13765
|
function create_fragment$2(ctx) {
|
|
13743
13766
|
let div;
|
|
@@ -13795,7 +13818,7 @@ class FullScreenNavbarLayout extends SvelteElement {
|
|
|
13795
13818
|
}
|
|
13796
13819
|
|
|
13797
13820
|
customElements.define("goa-layout-full-nav", FullScreenNavbarLayout);
|
|
13798
|
-
/* libs/web-components/src/components/container/ContainerWrapper.test.svelte generated by Svelte v3.
|
|
13821
|
+
/* libs/web-components/src/components/container/ContainerWrapper.test.svelte generated by Svelte v3.51.0 */
|
|
13799
13822
|
|
|
13800
13823
|
function create_if_block_1(ctx) {
|
|
13801
13824
|
let div;
|
|
@@ -14087,7 +14110,7 @@ class ContainerWrapper_test extends SvelteElement {
|
|
|
14087
14110
|
}
|
|
14088
14111
|
|
|
14089
14112
|
customElements.define("test-container", ContainerWrapper_test);
|
|
14090
|
-
/* libs/web-components/src/components/divider/Divider.svelte generated by Svelte v3.
|
|
14113
|
+
/* libs/web-components/src/components/divider/Divider.svelte generated by Svelte v3.51.0 */
|
|
14091
14114
|
|
|
14092
14115
|
function create_fragment(ctx) {
|
|
14093
14116
|
let hr;
|
package/react-components.umd.js
CHANGED
|
@@ -167,6 +167,7 @@
|
|
|
167
167
|
|
|
168
168
|
function append_stylesheet(node, style) {
|
|
169
169
|
append(node.head || node, style);
|
|
170
|
+
return style.sheet;
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
function insert(target, node, anchor) {
|
|
@@ -330,13 +331,10 @@
|
|
|
330
331
|
if (active) return;
|
|
331
332
|
managed_styles.forEach(info => {
|
|
332
333
|
const {
|
|
333
|
-
|
|
334
|
-
} = info;
|
|
335
|
-
let i = stylesheet.cssRules.length;
|
|
334
|
+
ownerNode
|
|
335
|
+
} = info.stylesheet; // there is no ownerNode if it runs on jsdom.
|
|
336
336
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
info.rules = {};
|
|
337
|
+
if (ownerNode) detach(ownerNode);
|
|
340
338
|
});
|
|
341
339
|
managed_styles.clear();
|
|
342
340
|
});
|
|
@@ -352,10 +350,29 @@
|
|
|
352
350
|
if (!current_component) throw new Error('Function called outside component initialization');
|
|
353
351
|
return current_component;
|
|
354
352
|
}
|
|
353
|
+
/**
|
|
354
|
+
* The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
|
|
355
|
+
* It must be called during the component's initialisation (but doesn't need to live *inside* the component;
|
|
356
|
+
* it can be called from an external module).
|
|
357
|
+
*
|
|
358
|
+
* `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
|
|
359
|
+
*
|
|
360
|
+
* https://svelte.dev/docs#run-time-svelte-onmount
|
|
361
|
+
*/
|
|
362
|
+
|
|
355
363
|
|
|
356
364
|
function onMount(fn) {
|
|
357
365
|
get_current_component().$$.on_mount.push(fn);
|
|
358
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
* Schedules a callback to run immediately before the component is unmounted.
|
|
369
|
+
*
|
|
370
|
+
* Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the
|
|
371
|
+
* only one that runs inside a server-side component.
|
|
372
|
+
*
|
|
373
|
+
* https://svelte.dev/docs#run-time-svelte-ondestroy
|
|
374
|
+
*/
|
|
375
|
+
|
|
359
376
|
|
|
360
377
|
function onDestroy(fn) {
|
|
361
378
|
get_current_component().$$.on_destroy.push(fn);
|
|
@@ -878,8 +895,6 @@
|
|
|
878
895
|
function mount_component(component, target, anchor, customElement) {
|
|
879
896
|
const {
|
|
880
897
|
fragment,
|
|
881
|
-
on_mount,
|
|
882
|
-
on_destroy,
|
|
883
898
|
after_update
|
|
884
899
|
} = component.$$;
|
|
885
900
|
fragment && fragment.m(target, anchor);
|
|
@@ -887,10 +902,12 @@
|
|
|
887
902
|
if (!customElement) {
|
|
888
903
|
// onMount happens before the initial afterUpdate
|
|
889
904
|
add_render_callback(() => {
|
|
890
|
-
const new_on_destroy = on_mount.map(run).filter(is_function);
|
|
905
|
+
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function); // if the component was destroyed immediately
|
|
906
|
+
// it will update the `$$.on_destroy` reference to `null`.
|
|
907
|
+
// the destructured on_destroy may still reference to the old array
|
|
891
908
|
|
|
892
|
-
if (on_destroy) {
|
|
893
|
-
on_destroy.push(...new_on_destroy);
|
|
909
|
+
if (component.$$.on_destroy) {
|
|
910
|
+
component.$$.on_destroy.push(...new_on_destroy);
|
|
894
911
|
} else {
|
|
895
912
|
// Edge case - component was destroyed immediately,
|
|
896
913
|
// most likely as a result of a binding initialising
|
|
@@ -932,7 +949,7 @@
|
|
|
932
949
|
set_current_component(component);
|
|
933
950
|
const $$ = component.$$ = {
|
|
934
951
|
fragment: null,
|
|
935
|
-
ctx:
|
|
952
|
+
ctx: [],
|
|
936
953
|
// state
|
|
937
954
|
props,
|
|
938
955
|
update: noop,
|
|
@@ -1026,6 +1043,10 @@
|
|
|
1026
1043
|
|
|
1027
1044
|
$on(type, callback) {
|
|
1028
1045
|
// TODO should this delegate to addEventListener?
|
|
1046
|
+
if (!is_function(callback)) {
|
|
1047
|
+
return noop;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1029
1050
|
const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);
|
|
1030
1051
|
callbacks.push(callback);
|
|
1031
1052
|
return () => {
|
|
@@ -1044,7 +1065,7 @@
|
|
|
1044
1065
|
|
|
1045
1066
|
};
|
|
1046
1067
|
}
|
|
1047
|
-
/* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.
|
|
1068
|
+
/* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.51.0 */
|
|
1048
1069
|
|
|
1049
1070
|
|
|
1050
1071
|
function create_else_block$4(ctx) {
|
|
@@ -1373,7 +1394,7 @@
|
|
|
1373
1394
|
function fromBoolean(value) {
|
|
1374
1395
|
return value ? "true" : "false";
|
|
1375
1396
|
}
|
|
1376
|
-
/* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.
|
|
1397
|
+
/* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.51.0 */
|
|
1377
1398
|
|
|
1378
1399
|
|
|
1379
1400
|
function create_else_block$3(ctx) {
|
|
@@ -1708,7 +1729,7 @@
|
|
|
1708
1729
|
}
|
|
1709
1730
|
|
|
1710
1731
|
customElements.define("goa-badge", Badge);
|
|
1711
|
-
/* libs/web-components/src/components/button-group/ButtonGroup.svelte generated by Svelte v3.
|
|
1732
|
+
/* libs/web-components/src/components/button-group/ButtonGroup.svelte generated by Svelte v3.51.0 */
|
|
1712
1733
|
|
|
1713
1734
|
function create_fragment$D(ctx) {
|
|
1714
1735
|
let div;
|
|
@@ -1778,7 +1799,7 @@
|
|
|
1778
1799
|
class ButtonGroup extends SvelteElement {
|
|
1779
1800
|
constructor(options) {
|
|
1780
1801
|
super();
|
|
1781
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}div{display:flex;flex-direction:row;justify-content:var(--alignment);flex-wrap:wrap;gap:var(--gap-size)}</style>`;
|
|
1802
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}div{display:flex;flex-direction:row;justify-content:var(--alignment);flex-wrap:wrap;gap:var(--gap-size);padding:3px 0}</style>`;
|
|
1782
1803
|
init(this, {
|
|
1783
1804
|
target: this.shadowRoot,
|
|
1784
1805
|
props: attribute_to_object(this.attributes),
|
|
@@ -1829,7 +1850,7 @@
|
|
|
1829
1850
|
}
|
|
1830
1851
|
|
|
1831
1852
|
customElements.define("goa-button-group", ButtonGroup);
|
|
1832
|
-
/* libs/web-components/src/components/button/Button.svelte generated by Svelte v3.
|
|
1853
|
+
/* libs/web-components/src/components/button/Button.svelte generated by Svelte v3.51.0 */
|
|
1833
1854
|
|
|
1834
1855
|
function create_else_block$2(ctx) {
|
|
1835
1856
|
let t0;
|
|
@@ -2357,7 +2378,7 @@
|
|
|
2357
2378
|
}
|
|
2358
2379
|
|
|
2359
2380
|
customElements.define("goa-button", Button);
|
|
2360
|
-
/* libs/web-components/src/components/callout/Callout.svelte generated by Svelte v3.
|
|
2381
|
+
/* libs/web-components/src/components/callout/Callout.svelte generated by Svelte v3.51.0 */
|
|
2361
2382
|
|
|
2362
2383
|
function create_if_block$g(ctx) {
|
|
2363
2384
|
let h3;
|
|
@@ -2596,7 +2617,7 @@
|
|
|
2596
2617
|
}
|
|
2597
2618
|
|
|
2598
2619
|
customElements.define("goa-callout", Callout);
|
|
2599
|
-
/* libs/web-components/src/components/card-actions/CardActions.svelte generated by Svelte v3.
|
|
2620
|
+
/* libs/web-components/src/components/card-actions/CardActions.svelte generated by Svelte v3.51.0 */
|
|
2600
2621
|
|
|
2601
2622
|
function create_fragment$A(ctx) {
|
|
2602
2623
|
let goa_card_content;
|
|
@@ -2641,7 +2662,7 @@
|
|
|
2641
2662
|
}
|
|
2642
2663
|
|
|
2643
2664
|
customElements.define("goa-card-actions", CardActions);
|
|
2644
|
-
/* libs/web-components/src/components/card-content/CardContent.svelte generated by Svelte v3.
|
|
2665
|
+
/* libs/web-components/src/components/card-content/CardContent.svelte generated by Svelte v3.51.0 */
|
|
2645
2666
|
|
|
2646
2667
|
function create_fragment$z(ctx) {
|
|
2647
2668
|
let div;
|
|
@@ -2688,7 +2709,7 @@
|
|
|
2688
2709
|
}
|
|
2689
2710
|
|
|
2690
2711
|
customElements.define("goa-card-content", CardContent);
|
|
2691
|
-
/* libs/web-components/src/components/card-group/CardGroup.svelte generated by Svelte v3.
|
|
2712
|
+
/* libs/web-components/src/components/card-group/CardGroup.svelte generated by Svelte v3.51.0 */
|
|
2692
2713
|
|
|
2693
2714
|
function create_fragment$y(ctx) {
|
|
2694
2715
|
let div;
|
|
@@ -2735,7 +2756,7 @@
|
|
|
2735
2756
|
}
|
|
2736
2757
|
|
|
2737
2758
|
customElements.define("goa-card-group", CardGroup);
|
|
2738
|
-
/* libs/web-components/src/components/card-image/CardImage.svelte generated by Svelte v3.
|
|
2759
|
+
/* libs/web-components/src/components/card-image/CardImage.svelte generated by Svelte v3.51.0 */
|
|
2739
2760
|
|
|
2740
2761
|
function create_fragment$x(ctx) {
|
|
2741
2762
|
let div;
|
|
@@ -2856,7 +2877,7 @@
|
|
|
2856
2877
|
}
|
|
2857
2878
|
|
|
2858
2879
|
customElements.define("goa-card-image", CardImage);
|
|
2859
|
-
/* libs/web-components/src/components/card/Card.svelte generated by Svelte v3.
|
|
2880
|
+
/* libs/web-components/src/components/card/Card.svelte generated by Svelte v3.51.0 */
|
|
2860
2881
|
|
|
2861
2882
|
function create_fragment$w(ctx) {
|
|
2862
2883
|
let div;
|
|
@@ -3004,7 +3025,7 @@
|
|
|
3004
3025
|
}
|
|
3005
3026
|
|
|
3006
3027
|
customElements.define("goa-card", Card);
|
|
3007
|
-
/* libs/web-components/src/components/checkbox/Checkbox.svelte generated by Svelte v3.
|
|
3028
|
+
/* libs/web-components/src/components/checkbox/Checkbox.svelte generated by Svelte v3.51.0 */
|
|
3008
3029
|
|
|
3009
3030
|
function create_if_block_1$9(ctx) {
|
|
3010
3031
|
let svg;
|
|
@@ -3464,7 +3485,7 @@
|
|
|
3464
3485
|
}
|
|
3465
3486
|
|
|
3466
3487
|
customElements.define("goa-checkbox", Checkbox);
|
|
3467
|
-
/* libs/web-components/src/components/chip/Chip.svelte generated by Svelte v3.
|
|
3488
|
+
/* libs/web-components/src/components/chip/Chip.svelte generated by Svelte v3.51.0 */
|
|
3468
3489
|
|
|
3469
3490
|
function create_if_block_1$8(ctx) {
|
|
3470
3491
|
let goa_icon;
|
|
@@ -3979,7 +4000,7 @@
|
|
|
3979
4000
|
|
|
3980
4001
|
};
|
|
3981
4002
|
}
|
|
3982
|
-
/* libs/web-components/src/components/circular-progress/CircularProgress.svelte generated by Svelte v3.
|
|
4003
|
+
/* libs/web-components/src/components/circular-progress/CircularProgress.svelte generated by Svelte v3.51.0 */
|
|
3983
4004
|
|
|
3984
4005
|
|
|
3985
4006
|
function create_if_block$d(ctx) {
|
|
@@ -4248,7 +4269,7 @@
|
|
|
4248
4269
|
if_block = null;
|
|
4249
4270
|
}
|
|
4250
4271
|
|
|
4251
|
-
if (dirty &
|
|
4272
|
+
if (!current || dirty &
|
|
4252
4273
|
/*fullscreen*/
|
|
4253
4274
|
8) {
|
|
4254
4275
|
toggle_class(div, "fullscreen",
|
|
@@ -4554,7 +4575,7 @@
|
|
|
4554
4575
|
}
|
|
4555
4576
|
|
|
4556
4577
|
customElements.define("goa-circular-progress", CircularProgress);
|
|
4557
|
-
/* libs/web-components/src/components/container/Container.svelte generated by Svelte v3.
|
|
4578
|
+
/* libs/web-components/src/components/container/Container.svelte generated by Svelte v3.51.0 */
|
|
4558
4579
|
|
|
4559
4580
|
function create_fragment$s(ctx) {
|
|
4560
4581
|
let div3;
|
|
@@ -4833,7 +4854,7 @@
|
|
|
4833
4854
|
}
|
|
4834
4855
|
|
|
4835
4856
|
const BIND$1 = "bind";
|
|
4836
|
-
/* libs/web-components/src/components/dropdown/Dropdown.svelte generated by Svelte v3.
|
|
4857
|
+
/* libs/web-components/src/components/dropdown/Dropdown.svelte generated by Svelte v3.51.0 */
|
|
4837
4858
|
|
|
4838
4859
|
function get_each_context$4(ctx, list, i) {
|
|
4839
4860
|
const child_ctx = ctx.slice();
|
|
@@ -5811,7 +5832,7 @@
|
|
|
5811
5832
|
}
|
|
5812
5833
|
|
|
5813
5834
|
customElements.define("goa-dropdown", Dropdown);
|
|
5814
|
-
/* libs/web-components/src/components/dropdown/DropdownItem.svelte generated by Svelte v3.
|
|
5835
|
+
/* libs/web-components/src/components/dropdown/DropdownItem.svelte generated by Svelte v3.51.0 */
|
|
5815
5836
|
|
|
5816
5837
|
function create_fragment$q(ctx) {
|
|
5817
5838
|
return {
|
|
@@ -5933,7 +5954,7 @@
|
|
|
5933
5954
|
}
|
|
5934
5955
|
|
|
5935
5956
|
customElements.define("goa-dropdown-item", DropdownItem);
|
|
5936
|
-
/* libs/web-components/src/components/flex-column/FlexColumn.svelte generated by Svelte v3.
|
|
5957
|
+
/* libs/web-components/src/components/flex-column/FlexColumn.svelte generated by Svelte v3.51.0 */
|
|
5937
5958
|
|
|
5938
5959
|
function create_fragment$p(ctx) {
|
|
5939
5960
|
let div;
|
|
@@ -6038,7 +6059,7 @@
|
|
|
6038
6059
|
}
|
|
6039
6060
|
|
|
6040
6061
|
customElements.define("goa-flex-col", FlexColumn);
|
|
6041
|
-
/* libs/web-components/src/components/flex-row/FlexRow.svelte generated by Svelte v3.
|
|
6062
|
+
/* libs/web-components/src/components/flex-row/FlexRow.svelte generated by Svelte v3.51.0 */
|
|
6042
6063
|
|
|
6043
6064
|
function create_fragment$o(ctx) {
|
|
6044
6065
|
let div;
|
|
@@ -6143,7 +6164,7 @@
|
|
|
6143
6164
|
}
|
|
6144
6165
|
|
|
6145
6166
|
customElements.define("goa-flex-row", FlexRow);
|
|
6146
|
-
/* libs/web-components/src/components/focus-trap/FocusTrap.svelte generated by Svelte v3.
|
|
6167
|
+
/* libs/web-components/src/components/focus-trap/FocusTrap.svelte generated by Svelte v3.51.0 */
|
|
6147
6168
|
|
|
6148
6169
|
function create_fragment$n(ctx) {
|
|
6149
6170
|
let div;
|
|
@@ -6154,6 +6175,7 @@
|
|
|
6154
6175
|
|
|
6155
6176
|
<span tabindex="0"></span>`;
|
|
6156
6177
|
this.c = noop;
|
|
6178
|
+
attr(div, "id", "root");
|
|
6157
6179
|
},
|
|
6158
6180
|
|
|
6159
6181
|
m(target, anchor) {
|
|
@@ -6363,6 +6385,7 @@
|
|
|
6363
6385
|
class FocusTrap extends SvelteElement {
|
|
6364
6386
|
constructor(options) {
|
|
6365
6387
|
super();
|
|
6388
|
+
this.shadowRoot.innerHTML = `<style>#root{display:inline}</style>`;
|
|
6366
6389
|
init(this, {
|
|
6367
6390
|
target: this.shadowRoot,
|
|
6368
6391
|
props: attribute_to_object(this.attributes),
|
|
@@ -6401,7 +6424,7 @@
|
|
|
6401
6424
|
}
|
|
6402
6425
|
|
|
6403
6426
|
customElements.define("goa-focus-trap", FocusTrap);
|
|
6404
|
-
/* libs/web-components/src/components/footer-meta-section/FooterMetaSection.svelte generated by Svelte v3.
|
|
6427
|
+
/* libs/web-components/src/components/footer-meta-section/FooterMetaSection.svelte generated by Svelte v3.51.0 */
|
|
6405
6428
|
|
|
6406
6429
|
function get_each_context$3(ctx, list, i) {
|
|
6407
6430
|
const child_ctx = ctx.slice();
|
|
@@ -6592,7 +6615,7 @@
|
|
|
6592
6615
|
}
|
|
6593
6616
|
|
|
6594
6617
|
customElements.define("goa-app-footer-meta-section", FooterMetaSection);
|
|
6595
|
-
/* libs/web-components/src/components/footer-nav-section/FooterNavSection.svelte generated by Svelte v3.
|
|
6618
|
+
/* libs/web-components/src/components/footer-nav-section/FooterNavSection.svelte generated by Svelte v3.51.0 */
|
|
6596
6619
|
|
|
6597
6620
|
function get_each_context$2(ctx, list, i) {
|
|
6598
6621
|
const child_ctx = ctx.slice();
|
|
@@ -6941,7 +6964,7 @@
|
|
|
6941
6964
|
}
|
|
6942
6965
|
|
|
6943
6966
|
customElements.define("goa-app-footer-nav-section", FooterNavSection);
|
|
6944
|
-
/* libs/web-components/src/components/footer/Footer.svelte generated by Svelte v3.
|
|
6967
|
+
/* libs/web-components/src/components/footer/Footer.svelte generated by Svelte v3.51.0 */
|
|
6945
6968
|
|
|
6946
6969
|
function create_if_block$a(ctx) {
|
|
6947
6970
|
let goa_divider;
|
|
@@ -7176,7 +7199,7 @@
|
|
|
7176
7199
|
}
|
|
7177
7200
|
|
|
7178
7201
|
customElements.define("goa-app-footer", Footer);
|
|
7179
|
-
/* libs/web-components/src/components/form-item/FormItem.svelte generated by Svelte v3.
|
|
7202
|
+
/* libs/web-components/src/components/form-item/FormItem.svelte generated by Svelte v3.51.0 */
|
|
7180
7203
|
|
|
7181
7204
|
function create_if_block_2$5(ctx) {
|
|
7182
7205
|
let div;
|
|
@@ -7456,7 +7479,7 @@
|
|
|
7456
7479
|
class FormItem extends SvelteElement {
|
|
7457
7480
|
constructor(options) {
|
|
7458
7481
|
super();
|
|
7459
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0
|
|
7482
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0}.label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);line-height:var(--lh-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text);margin-right:56px}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
|
|
7460
7483
|
init(this, {
|
|
7461
7484
|
target: this.shadowRoot,
|
|
7462
7485
|
props: attribute_to_object(this.attributes),
|
|
@@ -7531,7 +7554,7 @@
|
|
|
7531
7554
|
}
|
|
7532
7555
|
|
|
7533
7556
|
customElements.define("goa-form-item", FormItem);
|
|
7534
|
-
/* libs/web-components/src/components/hero-banner/HeroBanner.svelte generated by Svelte v3.
|
|
7557
|
+
/* libs/web-components/src/components/hero-banner/HeroBanner.svelte generated by Svelte v3.51.0 */
|
|
7535
7558
|
|
|
7536
7559
|
function create_fragment$i(ctx) {
|
|
7537
7560
|
let div1;
|
|
@@ -7677,7 +7700,7 @@
|
|
|
7677
7700
|
}
|
|
7678
7701
|
|
|
7679
7702
|
customElements.define("goa-hero-banner", HeroBanner);
|
|
7680
|
-
/* libs/web-components/src/components/icon-button/IconButton.svelte generated by Svelte v3.
|
|
7703
|
+
/* libs/web-components/src/components/icon-button/IconButton.svelte generated by Svelte v3.51.0 */
|
|
7681
7704
|
|
|
7682
7705
|
function create_fragment$h(ctx) {
|
|
7683
7706
|
let button;
|
|
@@ -8037,7 +8060,7 @@
|
|
|
8037
8060
|
}
|
|
8038
8061
|
|
|
8039
8062
|
customElements.define("goa-icon-button", IconButton);
|
|
8040
|
-
/* libs/web-components/src/components/icon/Icon.svelte generated by Svelte v3.
|
|
8063
|
+
/* libs/web-components/src/components/icon/Icon.svelte generated by Svelte v3.51.0 */
|
|
8041
8064
|
|
|
8042
8065
|
function create_if_block$8(ctx) {
|
|
8043
8066
|
let ion_icon;
|
|
@@ -8389,7 +8412,7 @@
|
|
|
8389
8412
|
}
|
|
8390
8413
|
|
|
8391
8414
|
customElements.define("goa-icon", Icon);
|
|
8392
|
-
/* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.
|
|
8415
|
+
/* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.51.0 */
|
|
8393
8416
|
|
|
8394
8417
|
function create_if_block_7(ctx) {
|
|
8395
8418
|
let div;
|
|
@@ -9644,7 +9667,7 @@
|
|
|
9644
9667
|
}
|
|
9645
9668
|
|
|
9646
9669
|
customElements.define("goa-input", Input);
|
|
9647
|
-
/* libs/web-components/src/components/microsite-header/MicrositeHeader.svelte generated by Svelte v3.
|
|
9670
|
+
/* libs/web-components/src/components/microsite-header/MicrositeHeader.svelte generated by Svelte v3.51.0 */
|
|
9648
9671
|
|
|
9649
9672
|
function create_if_block_3$1(ctx) {
|
|
9650
9673
|
let div0;
|
|
@@ -10036,7 +10059,7 @@
|
|
|
10036
10059
|
}
|
|
10037
10060
|
|
|
10038
10061
|
customElements.define("goa-microsite-header", MicrositeHeader);
|
|
10039
|
-
/* libs/web-components/src/components/modal/Modal.svelte generated by Svelte v3.
|
|
10062
|
+
/* libs/web-components/src/components/modal/Modal.svelte generated by Svelte v3.51.0 */
|
|
10040
10063
|
|
|
10041
10064
|
function create_if_block$5(ctx) {
|
|
10042
10065
|
let goa_focus_trap;
|
|
@@ -10272,7 +10295,7 @@
|
|
|
10272
10295
|
}
|
|
10273
10296
|
|
|
10274
10297
|
};
|
|
10275
|
-
} // (
|
|
10298
|
+
} // (54:8) {#if heading}
|
|
10276
10299
|
|
|
10277
10300
|
|
|
10278
10301
|
function create_if_block_3(ctx) {
|
|
@@ -10306,7 +10329,7 @@
|
|
|
10306
10329
|
}
|
|
10307
10330
|
|
|
10308
10331
|
};
|
|
10309
|
-
} // (
|
|
10332
|
+
} // (57:8) {#if isClosable}
|
|
10310
10333
|
|
|
10311
10334
|
|
|
10312
10335
|
function create_if_block_2$2(ctx) {
|
|
@@ -10344,7 +10367,7 @@
|
|
|
10344
10367
|
}
|
|
10345
10368
|
|
|
10346
10369
|
};
|
|
10347
|
-
} // (
|
|
10370
|
+
} // (71:10) {:else}
|
|
10348
10371
|
|
|
10349
10372
|
|
|
10350
10373
|
function create_else_block$1(ctx) {
|
|
@@ -10365,7 +10388,7 @@
|
|
|
10365
10388
|
}
|
|
10366
10389
|
|
|
10367
10390
|
};
|
|
10368
|
-
} // (
|
|
10391
|
+
} // (67:10) {#if isScrollable}
|
|
10369
10392
|
|
|
10370
10393
|
|
|
10371
10394
|
function create_if_block_1$3(ctx) {
|
|
@@ -10632,7 +10655,7 @@
|
|
|
10632
10655
|
}
|
|
10633
10656
|
|
|
10634
10657
|
customElements.define("goa-modal", Modal);
|
|
10635
|
-
/* libs/web-components/src/components/notification/Notification.svelte generated by Svelte v3.
|
|
10658
|
+
/* libs/web-components/src/components/notification/Notification.svelte generated by Svelte v3.51.0 */
|
|
10636
10659
|
|
|
10637
10660
|
function create_if_block$4(ctx) {
|
|
10638
10661
|
let div3;
|
|
@@ -10873,7 +10896,7 @@
|
|
|
10873
10896
|
function isValidDimension(value) {
|
|
10874
10897
|
return dimensionRegex.test(value);
|
|
10875
10898
|
}
|
|
10876
|
-
/* libs/web-components/src/components/page-block/PageBlock.svelte generated by Svelte v3.
|
|
10899
|
+
/* libs/web-components/src/components/page-block/PageBlock.svelte generated by Svelte v3.51.0 */
|
|
10877
10900
|
|
|
10878
10901
|
|
|
10879
10902
|
function create_fragment$b(ctx) {
|
|
@@ -11004,7 +11027,7 @@
|
|
|
11004
11027
|
|
|
11005
11028
|
customElements.define("goa-page-block", PageBlock);
|
|
11006
11029
|
const BIND = "bind";
|
|
11007
|
-
/* libs/web-components/src/components/radio-group/RadioGroup.svelte generated by Svelte v3.
|
|
11030
|
+
/* libs/web-components/src/components/radio-group/RadioGroup.svelte generated by Svelte v3.51.0 */
|
|
11008
11031
|
|
|
11009
11032
|
function get_each_context$1(ctx, list, i) {
|
|
11010
11033
|
const child_ctx = ctx.slice();
|
|
@@ -11485,7 +11508,7 @@
|
|
|
11485
11508
|
}
|
|
11486
11509
|
|
|
11487
11510
|
customElements.define("goa-radio-group", RadioGroup);
|
|
11488
|
-
/* libs/web-components/src/components/radio-group/RadioItem.svelte generated by Svelte v3.
|
|
11511
|
+
/* libs/web-components/src/components/radio-group/RadioItem.svelte generated by Svelte v3.51.0 */
|
|
11489
11512
|
|
|
11490
11513
|
function create_fragment$9(ctx) {
|
|
11491
11514
|
return {
|
|
@@ -11614,7 +11637,7 @@
|
|
|
11614
11637
|
}
|
|
11615
11638
|
|
|
11616
11639
|
customElements.define("goa-radio-item", RadioItem);
|
|
11617
|
-
/* libs/web-components/src/components/scrollable/Scrollable.svelte generated by Svelte v3.
|
|
11640
|
+
/* libs/web-components/src/components/scrollable/Scrollable.svelte generated by Svelte v3.51.0 */
|
|
11618
11641
|
|
|
11619
11642
|
function create_fragment$8(ctx) {
|
|
11620
11643
|
let div;
|
|
@@ -11786,7 +11809,7 @@
|
|
|
11786
11809
|
}
|
|
11787
11810
|
|
|
11788
11811
|
customElements.define("goa-scrollable", Scrollable);
|
|
11789
|
-
/* libs/web-components/src/components/skeleton/Skeleton.svelte generated by Svelte v3.
|
|
11812
|
+
/* libs/web-components/src/components/skeleton/Skeleton.svelte generated by Svelte v3.51.0 */
|
|
11790
11813
|
|
|
11791
11814
|
function get_each_context(ctx, list, i) {
|
|
11792
11815
|
const child_ctx = ctx.slice();
|
|
@@ -12546,7 +12569,7 @@
|
|
|
12546
12569
|
subscribe: store.subscribe
|
|
12547
12570
|
};
|
|
12548
12571
|
}
|
|
12549
|
-
/* libs/web-components/src/components/spinner/Spinner.svelte generated by Svelte v3.
|
|
12572
|
+
/* libs/web-components/src/components/spinner/Spinner.svelte generated by Svelte v3.51.0 */
|
|
12550
12573
|
|
|
12551
12574
|
|
|
12552
12575
|
function create_if_block$2(ctx) {
|
|
@@ -12985,7 +13008,7 @@
|
|
|
12985
13008
|
}
|
|
12986
13009
|
|
|
12987
13010
|
customElements.define("goa-spinner", Spinner);
|
|
12988
|
-
/* libs/web-components/src/components/text-area/TextArea.svelte generated by Svelte v3.
|
|
13011
|
+
/* libs/web-components/src/components/text-area/TextArea.svelte generated by Svelte v3.51.0 */
|
|
12989
13012
|
|
|
12990
13013
|
function create_if_block$1(ctx) {
|
|
12991
13014
|
let if_block_anchor;
|
|
@@ -13593,7 +13616,7 @@
|
|
|
13593
13616
|
}
|
|
13594
13617
|
|
|
13595
13618
|
customElements.define("goa-textarea", TextArea);
|
|
13596
|
-
/* libs/web-components/src/layouts/one-column-layout/OneColumnLayout.svelte generated by Svelte v3.
|
|
13619
|
+
/* libs/web-components/src/layouts/one-column-layout/OneColumnLayout.svelte generated by Svelte v3.51.0 */
|
|
13597
13620
|
|
|
13598
13621
|
function create_fragment$4(ctx) {
|
|
13599
13622
|
let div;
|
|
@@ -13644,7 +13667,7 @@
|
|
|
13644
13667
|
}
|
|
13645
13668
|
|
|
13646
13669
|
customElements.define("goa-one-column-layout", OneColumnLayout);
|
|
13647
|
-
/* libs/web-components/src/layouts/two-column-layout/TwoColumnLayout.svelte generated by Svelte v3.
|
|
13670
|
+
/* libs/web-components/src/layouts/two-column-layout/TwoColumnLayout.svelte generated by Svelte v3.51.0 */
|
|
13648
13671
|
|
|
13649
13672
|
function create_fragment$3(ctx) {
|
|
13650
13673
|
let div;
|
|
@@ -13786,7 +13809,7 @@
|
|
|
13786
13809
|
}
|
|
13787
13810
|
|
|
13788
13811
|
customElements.define("goa-two-column-layout", TwoColumnLayout);
|
|
13789
|
-
/* libs/web-components/src/layouts/FullScreenNavbarLayout.svelte generated by Svelte v3.
|
|
13812
|
+
/* libs/web-components/src/layouts/FullScreenNavbarLayout.svelte generated by Svelte v3.51.0 */
|
|
13790
13813
|
|
|
13791
13814
|
function create_fragment$2(ctx) {
|
|
13792
13815
|
let div;
|
|
@@ -13844,7 +13867,7 @@
|
|
|
13844
13867
|
}
|
|
13845
13868
|
|
|
13846
13869
|
customElements.define("goa-layout-full-nav", FullScreenNavbarLayout);
|
|
13847
|
-
/* libs/web-components/src/components/container/ContainerWrapper.test.svelte generated by Svelte v3.
|
|
13870
|
+
/* libs/web-components/src/components/container/ContainerWrapper.test.svelte generated by Svelte v3.51.0 */
|
|
13848
13871
|
|
|
13849
13872
|
function create_if_block_1(ctx) {
|
|
13850
13873
|
let div;
|
|
@@ -14136,7 +14159,7 @@
|
|
|
14136
14159
|
}
|
|
14137
14160
|
|
|
14138
14161
|
customElements.define("test-container", ContainerWrapper_test);
|
|
14139
|
-
/* libs/web-components/src/components/divider/Divider.svelte generated by Svelte v3.
|
|
14162
|
+
/* libs/web-components/src/components/divider/Divider.svelte generated by Svelte v3.51.0 */
|
|
14140
14163
|
|
|
14141
14164
|
function create_fragment(ctx) {
|
|
14142
14165
|
let hr;
|