@abgov/web-components 1.0.0-alpha.79 → 1.0.0-alpha.81
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/package.json +1 -1
- package/web-components.es.js +76 -59
- package/web-components.umd.js +24 -24
package/package.json
CHANGED
package/web-components.es.js
CHANGED
|
@@ -1022,7 +1022,7 @@ function create_else_block$4(ctx) {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
1024
1024
|
// (12:2) {#if url}
|
|
1025
|
-
function create_if_block$
|
|
1025
|
+
function create_if_block$j(ctx) {
|
|
1026
1026
|
let a;
|
|
1027
1027
|
let img0;
|
|
1028
1028
|
let img0_src_value;
|
|
@@ -1080,7 +1080,7 @@ function create_fragment$D(ctx) {
|
|
|
1080
1080
|
let div0;
|
|
1081
1081
|
|
|
1082
1082
|
function select_block_type(ctx, dirty) {
|
|
1083
|
-
if (/*url*/ ctx[1]) return create_if_block$
|
|
1083
|
+
if (/*url*/ ctx[1]) return create_if_block$j;
|
|
1084
1084
|
return create_else_block$4;
|
|
1085
1085
|
}
|
|
1086
1086
|
|
|
@@ -1265,7 +1265,7 @@ function create_if_block_1$b(ctx) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
|
|
1267
1267
|
// (46:2) {#if content}
|
|
1268
|
-
function create_if_block$
|
|
1268
|
+
function create_if_block$i(ctx) {
|
|
1269
1269
|
let div;
|
|
1270
1270
|
let t;
|
|
1271
1271
|
|
|
@@ -1300,7 +1300,7 @@ function create_fragment$C(ctx) {
|
|
|
1300
1300
|
|
|
1301
1301
|
let current_block_type = select_block_type(ctx);
|
|
1302
1302
|
let if_block0 = current_block_type(ctx);
|
|
1303
|
-
let if_block1 = /*content*/ ctx[2] && create_if_block$
|
|
1303
|
+
let if_block1 = /*content*/ ctx[2] && create_if_block$i(ctx);
|
|
1304
1304
|
|
|
1305
1305
|
return {
|
|
1306
1306
|
c() {
|
|
@@ -1337,7 +1337,7 @@ function create_fragment$C(ctx) {
|
|
|
1337
1337
|
if (if_block1) {
|
|
1338
1338
|
if_block1.p(ctx, dirty);
|
|
1339
1339
|
} else {
|
|
1340
|
-
if_block1 = create_if_block$
|
|
1340
|
+
if_block1 = create_if_block$i(ctx);
|
|
1341
1341
|
if_block1.c();
|
|
1342
1342
|
if_block1.m(div, null);
|
|
1343
1343
|
}
|
|
@@ -1554,7 +1554,7 @@ function create_else_block$2(ctx) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
1556
|
// (55:2) {#if type === "start"}
|
|
1557
|
-
function create_if_block$
|
|
1557
|
+
function create_if_block$h(ctx) {
|
|
1558
1558
|
let div;
|
|
1559
1559
|
let t;
|
|
1560
1560
|
let goa_icon;
|
|
@@ -1649,7 +1649,7 @@ function create_fragment$B(ctx) {
|
|
|
1649
1649
|
let dispose;
|
|
1650
1650
|
|
|
1651
1651
|
function select_block_type(ctx, dirty) {
|
|
1652
|
-
if (/*type*/ ctx[0] === "start") return create_if_block$
|
|
1652
|
+
if (/*type*/ ctx[0] === "start") return create_if_block$h;
|
|
1653
1653
|
return create_else_block$2;
|
|
1654
1654
|
}
|
|
1655
1655
|
|
|
@@ -2043,6 +2043,28 @@ customElements.define("goa-button-group", ButtonGroup);
|
|
|
2043
2043
|
|
|
2044
2044
|
/* libs/web-components/src/components/callout/Callout.svelte generated by Svelte v3.49.0 */
|
|
2045
2045
|
|
|
2046
|
+
function create_if_block$g(ctx) {
|
|
2047
|
+
let h3;
|
|
2048
|
+
let t;
|
|
2049
|
+
|
|
2050
|
+
return {
|
|
2051
|
+
c() {
|
|
2052
|
+
h3 = element("h3");
|
|
2053
|
+
t = text(/*heading*/ ctx[1]);
|
|
2054
|
+
},
|
|
2055
|
+
m(target, anchor) {
|
|
2056
|
+
insert(target, h3, anchor);
|
|
2057
|
+
append(h3, t);
|
|
2058
|
+
},
|
|
2059
|
+
p(ctx, dirty) {
|
|
2060
|
+
if (dirty & /*heading*/ 2) set_data(t, /*heading*/ ctx[1]);
|
|
2061
|
+
},
|
|
2062
|
+
d(detaching) {
|
|
2063
|
+
if (detaching) detach(h3);
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
}
|
|
2067
|
+
|
|
2046
2068
|
function create_fragment$z(ctx) {
|
|
2047
2069
|
let div;
|
|
2048
2070
|
let span0;
|
|
@@ -2051,10 +2073,9 @@ function create_fragment$z(ctx) {
|
|
|
2051
2073
|
let span0_class_value;
|
|
2052
2074
|
let t0;
|
|
2053
2075
|
let span1;
|
|
2054
|
-
let h3;
|
|
2055
2076
|
let t1;
|
|
2056
|
-
let t2;
|
|
2057
2077
|
let slot;
|
|
2078
|
+
let if_block = /*heading*/ ctx[1] && create_if_block$g(ctx);
|
|
2058
2079
|
|
|
2059
2080
|
return {
|
|
2060
2081
|
c() {
|
|
@@ -2063,9 +2084,8 @@ function create_fragment$z(ctx) {
|
|
|
2063
2084
|
goa_icon = element("goa-icon");
|
|
2064
2085
|
t0 = space();
|
|
2065
2086
|
span1 = element("span");
|
|
2066
|
-
|
|
2067
|
-
t1 =
|
|
2068
|
-
t2 = space();
|
|
2087
|
+
if (if_block) if_block.c();
|
|
2088
|
+
t1 = space();
|
|
2069
2089
|
slot = element("slot");
|
|
2070
2090
|
this.c = noop;
|
|
2071
2091
|
set_custom_element_data(goa_icon, "type", /*iconType*/ ctx[3]);
|
|
@@ -2081,9 +2101,8 @@ function create_fragment$z(ctx) {
|
|
|
2081
2101
|
append(span0, goa_icon);
|
|
2082
2102
|
append(div, t0);
|
|
2083
2103
|
append(div, span1);
|
|
2084
|
-
|
|
2085
|
-
append(
|
|
2086
|
-
append(span1, t2);
|
|
2104
|
+
if (if_block) if_block.m(span1, null);
|
|
2105
|
+
append(span1, t1);
|
|
2087
2106
|
append(span1, slot);
|
|
2088
2107
|
},
|
|
2089
2108
|
p(ctx, [dirty]) {
|
|
@@ -2099,7 +2118,18 @@ function create_fragment$z(ctx) {
|
|
|
2099
2118
|
attr(span0, "class", span0_class_value);
|
|
2100
2119
|
}
|
|
2101
2120
|
|
|
2102
|
-
if (
|
|
2121
|
+
if (/*heading*/ ctx[1]) {
|
|
2122
|
+
if (if_block) {
|
|
2123
|
+
if_block.p(ctx, dirty);
|
|
2124
|
+
} else {
|
|
2125
|
+
if_block = create_if_block$g(ctx);
|
|
2126
|
+
if_block.c();
|
|
2127
|
+
if_block.m(span1, t1);
|
|
2128
|
+
}
|
|
2129
|
+
} else if (if_block) {
|
|
2130
|
+
if_block.d(1);
|
|
2131
|
+
if_block = null;
|
|
2132
|
+
}
|
|
2103
2133
|
|
|
2104
2134
|
if (dirty & /*testid*/ 4) {
|
|
2105
2135
|
attr(div, "data-testid", /*testid*/ ctx[2]);
|
|
@@ -2109,6 +2139,7 @@ function create_fragment$z(ctx) {
|
|
|
2109
2139
|
o: noop,
|
|
2110
2140
|
d(detaching) {
|
|
2111
2141
|
if (detaching) detach(div);
|
|
2142
|
+
if (if_block) if_block.d();
|
|
2112
2143
|
}
|
|
2113
2144
|
};
|
|
2114
2145
|
}
|
|
@@ -7047,7 +7078,7 @@ function create_if_block$7(ctx) {
|
|
|
7047
7078
|
const if_blocks = [];
|
|
7048
7079
|
|
|
7049
7080
|
function select_block_type(ctx, dirty) {
|
|
7050
|
-
if (/*fullscreen*/ ctx[
|
|
7081
|
+
if (/*fullscreen*/ ctx[4]) return 0;
|
|
7051
7082
|
if (/*inline*/ ctx[5]) return 1;
|
|
7052
7083
|
return -1;
|
|
7053
7084
|
}
|
|
@@ -7124,7 +7155,7 @@ function create_if_block$7(ctx) {
|
|
|
7124
7155
|
};
|
|
7125
7156
|
}
|
|
7126
7157
|
|
|
7127
|
-
// (
|
|
7158
|
+
// (39:19)
|
|
7128
7159
|
function create_if_block_3$1(ctx) {
|
|
7129
7160
|
let div;
|
|
7130
7161
|
let goa_spinner;
|
|
@@ -7140,9 +7171,9 @@ function create_if_block_3$1(ctx) {
|
|
|
7140
7171
|
t = space();
|
|
7141
7172
|
if (if_block) if_block.c();
|
|
7142
7173
|
set_custom_element_data(goa_spinner, "type", /*type*/ ctx[0]);
|
|
7143
|
-
set_custom_element_data(goa_spinner, "size", /*spinnerSize*/ ctx[
|
|
7174
|
+
set_custom_element_data(goa_spinner, "size", /*spinnerSize*/ ctx[3]);
|
|
7144
7175
|
set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value = /*progress*/ ctx[2] || 0);
|
|
7145
|
-
attr(div, "class", div_class_value = "spinner-" + /*spinnerSize*/ ctx[
|
|
7176
|
+
attr(div, "class", div_class_value = "spinner-" + /*spinnerSize*/ ctx[3]);
|
|
7146
7177
|
toggle_class(div, "inline", /*inline*/ ctx[5]);
|
|
7147
7178
|
},
|
|
7148
7179
|
m(target, anchor) {
|
|
@@ -7156,8 +7187,8 @@ function create_if_block_3$1(ctx) {
|
|
|
7156
7187
|
set_custom_element_data(goa_spinner, "type", /*type*/ ctx[0]);
|
|
7157
7188
|
}
|
|
7158
7189
|
|
|
7159
|
-
if (dirty & /*spinnerSize*/
|
|
7160
|
-
set_custom_element_data(goa_spinner, "size", /*spinnerSize*/ ctx[
|
|
7190
|
+
if (dirty & /*spinnerSize*/ 8) {
|
|
7191
|
+
set_custom_element_data(goa_spinner, "size", /*spinnerSize*/ ctx[3]);
|
|
7161
7192
|
}
|
|
7162
7193
|
|
|
7163
7194
|
if (dirty & /*progress*/ 4 && goa_spinner_progress_value !== (goa_spinner_progress_value = /*progress*/ ctx[2] || 0)) {
|
|
@@ -7177,11 +7208,11 @@ function create_if_block_3$1(ctx) {
|
|
|
7177
7208
|
if_block = null;
|
|
7178
7209
|
}
|
|
7179
7210
|
|
|
7180
|
-
if (dirty & /*spinnerSize*/
|
|
7211
|
+
if (dirty & /*spinnerSize*/ 8 && div_class_value !== (div_class_value = "spinner-" + /*spinnerSize*/ ctx[3])) {
|
|
7181
7212
|
attr(div, "class", div_class_value);
|
|
7182
7213
|
}
|
|
7183
7214
|
|
|
7184
|
-
if (dirty & /*spinnerSize, inline*/
|
|
7215
|
+
if (dirty & /*spinnerSize, inline*/ 40) {
|
|
7185
7216
|
toggle_class(div, "inline", /*inline*/ ctx[5]);
|
|
7186
7217
|
}
|
|
7187
7218
|
},
|
|
@@ -7194,7 +7225,7 @@ function create_if_block_3$1(ctx) {
|
|
|
7194
7225
|
};
|
|
7195
7226
|
}
|
|
7196
7227
|
|
|
7197
|
-
// (
|
|
7228
|
+
// (28:2) {#if fullscreen}
|
|
7198
7229
|
function create_if_block_1$4(ctx) {
|
|
7199
7230
|
let div;
|
|
7200
7231
|
let goa_spinner;
|
|
@@ -7213,9 +7244,9 @@ function create_if_block_1$4(ctx) {
|
|
|
7213
7244
|
t = space();
|
|
7214
7245
|
if (if_block) if_block.c();
|
|
7215
7246
|
set_custom_element_data(goa_spinner, "type", /*type*/ ctx[0]);
|
|
7216
|
-
set_custom_element_data(goa_spinner, "size", /*spinnerSize*/ ctx[
|
|
7247
|
+
set_custom_element_data(goa_spinner, "size", /*spinnerSize*/ ctx[3]);
|
|
7217
7248
|
set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value = /*progress*/ ctx[2] || 0);
|
|
7218
|
-
toggle_class(div, "fullscreen", /*fullscreen*/ ctx[
|
|
7249
|
+
toggle_class(div, "fullscreen", /*fullscreen*/ ctx[4]);
|
|
7219
7250
|
},
|
|
7220
7251
|
m(target, anchor) {
|
|
7221
7252
|
insert(target, div, anchor);
|
|
@@ -7234,8 +7265,8 @@ function create_if_block_1$4(ctx) {
|
|
|
7234
7265
|
set_custom_element_data(goa_spinner, "type", /*type*/ ctx[0]);
|
|
7235
7266
|
}
|
|
7236
7267
|
|
|
7237
|
-
if (!current || dirty & /*spinnerSize*/
|
|
7238
|
-
set_custom_element_data(goa_spinner, "size", /*spinnerSize*/ ctx[
|
|
7268
|
+
if (!current || dirty & /*spinnerSize*/ 8) {
|
|
7269
|
+
set_custom_element_data(goa_spinner, "size", /*spinnerSize*/ ctx[3]);
|
|
7239
7270
|
}
|
|
7240
7271
|
|
|
7241
7272
|
if (!current || dirty & /*progress*/ 4 && goa_spinner_progress_value !== (goa_spinner_progress_value = /*progress*/ ctx[2] || 0)) {
|
|
@@ -7255,8 +7286,8 @@ function create_if_block_1$4(ctx) {
|
|
|
7255
7286
|
if_block = null;
|
|
7256
7287
|
}
|
|
7257
7288
|
|
|
7258
|
-
if (dirty & /*fullscreen*/
|
|
7259
|
-
toggle_class(div, "fullscreen", /*fullscreen*/ ctx[
|
|
7289
|
+
if (dirty & /*fullscreen*/ 16) {
|
|
7290
|
+
toggle_class(div, "fullscreen", /*fullscreen*/ ctx[4]);
|
|
7260
7291
|
}
|
|
7261
7292
|
},
|
|
7262
7293
|
i(local) {
|
|
@@ -7284,7 +7315,7 @@ function create_if_block_1$4(ctx) {
|
|
|
7284
7315
|
};
|
|
7285
7316
|
}
|
|
7286
7317
|
|
|
7287
|
-
// (
|
|
7318
|
+
// (42:6) {#if message}
|
|
7288
7319
|
function create_if_block_4(ctx) {
|
|
7289
7320
|
let div;
|
|
7290
7321
|
let t;
|
|
@@ -7308,7 +7339,7 @@ function create_if_block_4(ctx) {
|
|
|
7308
7339
|
};
|
|
7309
7340
|
}
|
|
7310
7341
|
|
|
7311
|
-
// (
|
|
7342
|
+
// (35:6) {#if message}
|
|
7312
7343
|
function create_if_block_2$3(ctx) {
|
|
7313
7344
|
let div;
|
|
7314
7345
|
let t;
|
|
@@ -7335,7 +7366,7 @@ function create_if_block_2$3(ctx) {
|
|
|
7335
7366
|
function create_fragment$f(ctx) {
|
|
7336
7367
|
let if_block_anchor;
|
|
7337
7368
|
let current;
|
|
7338
|
-
let if_block = /*
|
|
7369
|
+
let if_block = /*isVisible*/ ctx[6] && create_if_block$7(ctx);
|
|
7339
7370
|
|
|
7340
7371
|
return {
|
|
7341
7372
|
c() {
|
|
@@ -7349,11 +7380,11 @@ function create_fragment$f(ctx) {
|
|
|
7349
7380
|
current = true;
|
|
7350
7381
|
},
|
|
7351
7382
|
p(ctx, [dirty]) {
|
|
7352
|
-
if (/*
|
|
7383
|
+
if (/*isVisible*/ ctx[6]) {
|
|
7353
7384
|
if (if_block) {
|
|
7354
7385
|
if_block.p(ctx, dirty);
|
|
7355
7386
|
|
|
7356
|
-
if (dirty & /*
|
|
7387
|
+
if (dirty & /*isVisible*/ 64) {
|
|
7357
7388
|
transition_in(if_block, 1);
|
|
7358
7389
|
}
|
|
7359
7390
|
} else {
|
|
@@ -7390,22 +7421,20 @@ function create_fragment$f(ctx) {
|
|
|
7390
7421
|
|
|
7391
7422
|
function instance$e($$self, $$props, $$invalidate) {
|
|
7392
7423
|
let isVisible;
|
|
7393
|
-
let fullscreen;
|
|
7394
|
-
let inline;
|
|
7395
|
-
let spinnerSize;
|
|
7396
7424
|
let { type = "infinite" } = $$props;
|
|
7397
7425
|
let { variant = "inline" } = $$props;
|
|
7398
7426
|
let { size = "large" } = $$props;
|
|
7399
7427
|
let { message = "" } = $$props;
|
|
7400
7428
|
let { progress = 0 } = $$props;
|
|
7401
7429
|
let { visible = "false" } = $$props;
|
|
7402
|
-
let
|
|
7430
|
+
let spinnerSize;
|
|
7431
|
+
let fullscreen;
|
|
7432
|
+
let inline;
|
|
7403
7433
|
|
|
7404
7434
|
onMount(async () => {
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
$$invalidate(3, ready = isVisible);
|
|
7435
|
+
$$invalidate(3, spinnerSize = size === "small" ? "large" : "xlarge");
|
|
7436
|
+
$$invalidate(4, fullscreen = variant === "fullscreen");
|
|
7437
|
+
$$invalidate(5, inline = variant === "inline");
|
|
7409
7438
|
});
|
|
7410
7439
|
|
|
7411
7440
|
$$self.$$set = $$props => {
|
|
@@ -7419,19 +7448,7 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
7419
7448
|
|
|
7420
7449
|
$$self.$$.update = () => {
|
|
7421
7450
|
if ($$self.$$.dirty & /*visible*/ 512) {
|
|
7422
|
-
isVisible = toBoolean(visible);
|
|
7423
|
-
}
|
|
7424
|
-
|
|
7425
|
-
if ($$self.$$.dirty & /*variant*/ 128) {
|
|
7426
|
-
$$invalidate(6, fullscreen = variant === "fullscreen");
|
|
7427
|
-
}
|
|
7428
|
-
|
|
7429
|
-
if ($$self.$$.dirty & /*variant*/ 128) {
|
|
7430
|
-
$$invalidate(5, inline = variant === "inline");
|
|
7431
|
-
}
|
|
7432
|
-
|
|
7433
|
-
if ($$self.$$.dirty & /*size*/ 256) {
|
|
7434
|
-
$$invalidate(4, spinnerSize = size === "small" ? "large" : "xlarge");
|
|
7451
|
+
$$invalidate(6, isVisible = toBoolean(visible));
|
|
7435
7452
|
}
|
|
7436
7453
|
};
|
|
7437
7454
|
|
|
@@ -7439,10 +7456,10 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
7439
7456
|
type,
|
|
7440
7457
|
message,
|
|
7441
7458
|
progress,
|
|
7442
|
-
ready,
|
|
7443
7459
|
spinnerSize,
|
|
7444
|
-
inline,
|
|
7445
7460
|
fullscreen,
|
|
7461
|
+
inline,
|
|
7462
|
+
isVisible,
|
|
7446
7463
|
variant,
|
|
7447
7464
|
size,
|
|
7448
7465
|
visible
|