@abgov/react-components 4.0.0-alpha.107 → 4.0.0-alpha.109
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/README.md +7 -3
- package/index.d.ts +1 -0
- package/lib/accordion/accordion.d.ts +27 -0
- package/lib/app-header/app-header.d.ts +1 -0
- package/lib/badge/badge.d.ts +0 -1
- package/lib/block/block.d.ts +1 -0
- package/lib/button/button.d.ts +1 -0
- package/lib/button-group/button-group.d.ts +1 -0
- package/lib/callout/callout.d.ts +2 -1
- package/lib/card/card.d.ts +1 -0
- package/lib/chip/chip.d.ts +2 -1
- package/lib/circular-progress/circular-progress.d.ts +2 -1
- package/lib/container/container.d.ts +1 -0
- package/lib/divider/divider.d.ts +3 -1
- package/lib/dropdown/dropdown.d.ts +0 -1
- package/lib/footer/footer.d.ts +2 -1
- package/lib/footer-nav-section/footer-nav-section.d.ts +2 -1
- package/lib/form/form-item.d.ts +1 -0
- package/lib/grid/grid.d.ts +1 -0
- package/lib/hero-banner/hero-banner.d.ts +1 -0
- package/lib/icon/icon.d.ts +2 -1
- package/lib/icon-button/icon-button.d.ts +1 -0
- package/lib/input/input.d.ts +0 -1
- package/lib/microsite-header/microsite-header.d.ts +1 -0
- package/lib/modal/modal.d.ts +1 -0
- package/lib/notification/notification.d.ts +4 -1
- package/lib/page-block/page-block.d.ts +1 -0
- package/lib/pagination/pagination.d.ts +1 -0
- package/lib/skeleton/skeleton.d.ts +2 -1
- package/lib/spacer/spacer.d.ts +1 -0
- package/lib/spinner/spinner.d.ts +0 -1
- package/lib/table/table.d.ts +1 -0
- package/package.json +1 -1
- package/react-components.esm.js +606 -96
- package/react-components.umd.js +604 -94
package/react-components.umd.js
CHANGED
|
@@ -1065,6 +1065,476 @@
|
|
|
1065
1065
|
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
|
+
|
|
1069
|
+
function calculateMargin(mt, mr, mb, ml) {
|
|
1070
|
+
return [mt && `margin-top:var(--goa-space-${mt});`, mr && `margin-right:var(--goa-space-${mr});`, mb && `margin-bottom:var(--goa-space-${mb});`, ml && `margin-left:var(--goa-space-${ml});`].join(" ");
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
function injectCss(el, rootSelector, css, media) {
|
|
1074
|
+
const style = document.createElement("style");
|
|
1075
|
+
|
|
1076
|
+
const _css = Object.entries(css).map(entry => `${entry[0]}: ${entry[1]};`).join(" ");
|
|
1077
|
+
|
|
1078
|
+
if (media) {
|
|
1079
|
+
style.innerHTML = `@media (${media}) { ${rootSelector} {${_css}} }`;
|
|
1080
|
+
} else {
|
|
1081
|
+
style.innerHTML = `${rootSelector} {${_css}}`;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
el.appendChild(style);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
function toBoolean(value) {
|
|
1088
|
+
if (value === "false") {
|
|
1089
|
+
return false;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
if (value === "") {
|
|
1093
|
+
return true;
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
return !!value;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
function fromBoolean(value) {
|
|
1100
|
+
return value ? "true" : "false";
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
function validateRequired(componentName, props) {
|
|
1104
|
+
Object.entries(props).forEach(prop => {
|
|
1105
|
+
if (!prop[1]) {
|
|
1106
|
+
console.warn(`${componentName}: ${prop[0]} is required`);
|
|
1107
|
+
}
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
function typeValidator(message, values, required = false) {
|
|
1112
|
+
const validator = value => {
|
|
1113
|
+
if (!required && !value) {
|
|
1114
|
+
return;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
if (!values.includes(value)) {
|
|
1118
|
+
console.error(`[${value}] is an invalid ${message.toLowerCase()}`);
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1122
|
+
return [values, validator];
|
|
1123
|
+
}
|
|
1124
|
+
/* libs/web-components/src/components/accordion/Accordion.svelte generated by Svelte v3.51.0 */
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
function create_fragment$H(ctx) {
|
|
1128
|
+
let div3;
|
|
1129
|
+
let details;
|
|
1130
|
+
let summary;
|
|
1131
|
+
let goa_icon;
|
|
1132
|
+
let goa_icon_fillcolor_value;
|
|
1133
|
+
let t0;
|
|
1134
|
+
let div1;
|
|
1135
|
+
let span0;
|
|
1136
|
+
let t1;
|
|
1137
|
+
let span0_class_value;
|
|
1138
|
+
let span0_data_testid_value;
|
|
1139
|
+
let t2;
|
|
1140
|
+
let span1;
|
|
1141
|
+
let t3;
|
|
1142
|
+
let t4;
|
|
1143
|
+
let div0;
|
|
1144
|
+
let summary_class_value;
|
|
1145
|
+
let t5;
|
|
1146
|
+
let div2;
|
|
1147
|
+
let div3_style_value;
|
|
1148
|
+
let mounted;
|
|
1149
|
+
let dispose;
|
|
1150
|
+
return {
|
|
1151
|
+
c() {
|
|
1152
|
+
div3 = element("div");
|
|
1153
|
+
details = element("details");
|
|
1154
|
+
summary = element("summary");
|
|
1155
|
+
goa_icon = element("goa-icon");
|
|
1156
|
+
t0 = space();
|
|
1157
|
+
div1 = element("div");
|
|
1158
|
+
span0 = element("span");
|
|
1159
|
+
t1 = text(
|
|
1160
|
+
/*heading*/
|
|
1161
|
+
ctx[0]);
|
|
1162
|
+
t2 = space();
|
|
1163
|
+
span1 = element("span");
|
|
1164
|
+
t3 = text(
|
|
1165
|
+
/*secondarytext*/
|
|
1166
|
+
ctx[1]);
|
|
1167
|
+
t4 = space();
|
|
1168
|
+
div0 = element("div");
|
|
1169
|
+
div0.innerHTML = `<slot name="headingcontent"></slot>`;
|
|
1170
|
+
t5 = space();
|
|
1171
|
+
div2 = element("div");
|
|
1172
|
+
div2.innerHTML = `<slot></slot>`;
|
|
1173
|
+
this.c = noop;
|
|
1174
|
+
set_custom_element_data(goa_icon, "type", "chevron-forward");
|
|
1175
|
+
set_custom_element_data(goa_icon, "fillcolor", goa_icon_fillcolor_value =
|
|
1176
|
+
/*_hovering*/
|
|
1177
|
+
ctx[8] ? "var(--goa-color-interactive-hover)" : "var(--goa-color-interactive-default)");
|
|
1178
|
+
attr(span0, "class", span0_class_value = "heading heading-" +
|
|
1179
|
+
/*headingsize*/
|
|
1180
|
+
ctx[2]);
|
|
1181
|
+
attr(span0, "data-testid", span0_data_testid_value = `${
|
|
1182
|
+
/*testid*/
|
|
1183
|
+
ctx[3]}-heading`);
|
|
1184
|
+
attr(span1, "class", "secondary-text");
|
|
1185
|
+
attr(div0, "class", "heading-content");
|
|
1186
|
+
attr(div1, "class", "title");
|
|
1187
|
+
attr(summary, "class", summary_class_value = `container-${
|
|
1188
|
+
/*headingsize*/
|
|
1189
|
+
ctx[2]}`);
|
|
1190
|
+
attr(div2, "class", "content");
|
|
1191
|
+
details.open =
|
|
1192
|
+
/*isOpen*/
|
|
1193
|
+
ctx[9];
|
|
1194
|
+
attr(div3, "style", div3_style_value = calculateMargin(
|
|
1195
|
+
/*mt*/
|
|
1196
|
+
ctx[4],
|
|
1197
|
+
/*mr*/
|
|
1198
|
+
ctx[5],
|
|
1199
|
+
/*mb*/
|
|
1200
|
+
ctx[6],
|
|
1201
|
+
/*ml*/
|
|
1202
|
+
ctx[7]));
|
|
1203
|
+
attr(div3, "class", `
|
|
1204
|
+
goa-accordion
|
|
1205
|
+
`);
|
|
1206
|
+
attr(div3, "data-testid",
|
|
1207
|
+
/*testid*/
|
|
1208
|
+
ctx[3]);
|
|
1209
|
+
},
|
|
1210
|
+
|
|
1211
|
+
m(target, anchor) {
|
|
1212
|
+
insert(target, div3, anchor);
|
|
1213
|
+
append(div3, details);
|
|
1214
|
+
append(details, summary);
|
|
1215
|
+
append(summary, goa_icon);
|
|
1216
|
+
append(summary, t0);
|
|
1217
|
+
append(summary, div1);
|
|
1218
|
+
append(div1, span0);
|
|
1219
|
+
append(span0, t1);
|
|
1220
|
+
append(div1, t2);
|
|
1221
|
+
append(div1, span1);
|
|
1222
|
+
append(span1, t3);
|
|
1223
|
+
append(div1, t4);
|
|
1224
|
+
append(div1, div0);
|
|
1225
|
+
append(details, t5);
|
|
1226
|
+
append(details, div2);
|
|
1227
|
+
|
|
1228
|
+
if (!mounted) {
|
|
1229
|
+
dispose = [listen(summary, "mouseover",
|
|
1230
|
+
/*mouseover_handler*/
|
|
1231
|
+
ctx[11]), listen(summary, "mouseout",
|
|
1232
|
+
/*mouseout_handler*/
|
|
1233
|
+
ctx[12]), listen(summary, "focus",
|
|
1234
|
+
/*focus_handler*/
|
|
1235
|
+
ctx[13]), listen(summary, "blur",
|
|
1236
|
+
/*blur_handler*/
|
|
1237
|
+
ctx[14])];
|
|
1238
|
+
mounted = true;
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
|
|
1242
|
+
p(ctx, [dirty]) {
|
|
1243
|
+
if (dirty &
|
|
1244
|
+
/*_hovering*/
|
|
1245
|
+
256 && goa_icon_fillcolor_value !== (goa_icon_fillcolor_value =
|
|
1246
|
+
/*_hovering*/
|
|
1247
|
+
ctx[8] ? "var(--goa-color-interactive-hover)" : "var(--goa-color-interactive-default)")) {
|
|
1248
|
+
set_custom_element_data(goa_icon, "fillcolor", goa_icon_fillcolor_value);
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
if (dirty &
|
|
1252
|
+
/*heading*/
|
|
1253
|
+
1) set_data(t1,
|
|
1254
|
+
/*heading*/
|
|
1255
|
+
ctx[0]);
|
|
1256
|
+
|
|
1257
|
+
if (dirty &
|
|
1258
|
+
/*headingsize*/
|
|
1259
|
+
4 && span0_class_value !== (span0_class_value = "heading heading-" +
|
|
1260
|
+
/*headingsize*/
|
|
1261
|
+
ctx[2])) {
|
|
1262
|
+
attr(span0, "class", span0_class_value);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
if (dirty &
|
|
1266
|
+
/*testid*/
|
|
1267
|
+
8 && span0_data_testid_value !== (span0_data_testid_value = `${
|
|
1268
|
+
/*testid*/
|
|
1269
|
+
ctx[3]}-heading`)) {
|
|
1270
|
+
attr(span0, "data-testid", span0_data_testid_value);
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
if (dirty &
|
|
1274
|
+
/*secondarytext*/
|
|
1275
|
+
2) set_data(t3,
|
|
1276
|
+
/*secondarytext*/
|
|
1277
|
+
ctx[1]);
|
|
1278
|
+
|
|
1279
|
+
if (dirty &
|
|
1280
|
+
/*headingsize*/
|
|
1281
|
+
4 && summary_class_value !== (summary_class_value = `container-${
|
|
1282
|
+
/*headingsize*/
|
|
1283
|
+
ctx[2]}`)) {
|
|
1284
|
+
attr(summary, "class", summary_class_value);
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
if (dirty &
|
|
1288
|
+
/*isOpen*/
|
|
1289
|
+
512) {
|
|
1290
|
+
details.open =
|
|
1291
|
+
/*isOpen*/
|
|
1292
|
+
ctx[9];
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
if (dirty &
|
|
1296
|
+
/*mt, mr, mb, ml*/
|
|
1297
|
+
240 && div3_style_value !== (div3_style_value = calculateMargin(
|
|
1298
|
+
/*mt*/
|
|
1299
|
+
ctx[4],
|
|
1300
|
+
/*mr*/
|
|
1301
|
+
ctx[5],
|
|
1302
|
+
/*mb*/
|
|
1303
|
+
ctx[6],
|
|
1304
|
+
/*ml*/
|
|
1305
|
+
ctx[7]))) {
|
|
1306
|
+
attr(div3, "style", div3_style_value);
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
if (dirty &
|
|
1310
|
+
/*testid*/
|
|
1311
|
+
8) {
|
|
1312
|
+
attr(div3, "data-testid",
|
|
1313
|
+
/*testid*/
|
|
1314
|
+
ctx[3]);
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1317
|
+
|
|
1318
|
+
i: noop,
|
|
1319
|
+
o: noop,
|
|
1320
|
+
|
|
1321
|
+
d(detaching) {
|
|
1322
|
+
if (detaching) detach(div3);
|
|
1323
|
+
mounted = false;
|
|
1324
|
+
run_all(dispose);
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
function instance$B($$self, $$props, $$invalidate) {
|
|
1331
|
+
let isOpen;
|
|
1332
|
+
const [HeadingSizes, validateHeadingSize] = typeValidator("Accordion heading size", ["small", "medium"]);
|
|
1333
|
+
let {
|
|
1334
|
+
open = "false"
|
|
1335
|
+
} = $$props;
|
|
1336
|
+
let {
|
|
1337
|
+
heading = ""
|
|
1338
|
+
} = $$props;
|
|
1339
|
+
let {
|
|
1340
|
+
secondarytext = ""
|
|
1341
|
+
} = $$props;
|
|
1342
|
+
let {
|
|
1343
|
+
headingsize = "small"
|
|
1344
|
+
} = $$props;
|
|
1345
|
+
let {
|
|
1346
|
+
testid = ""
|
|
1347
|
+
} = $$props;
|
|
1348
|
+
let {
|
|
1349
|
+
mt = null
|
|
1350
|
+
} = $$props;
|
|
1351
|
+
let {
|
|
1352
|
+
mr = null
|
|
1353
|
+
} = $$props;
|
|
1354
|
+
let {
|
|
1355
|
+
mb = "xs"
|
|
1356
|
+
} = $$props;
|
|
1357
|
+
let {
|
|
1358
|
+
ml = null
|
|
1359
|
+
} = $$props;
|
|
1360
|
+
let _hovering = false;
|
|
1361
|
+
onMount(() => {
|
|
1362
|
+
validateRequired("GoAAccordion", {
|
|
1363
|
+
heading
|
|
1364
|
+
});
|
|
1365
|
+
validateHeadingSize(headingsize);
|
|
1366
|
+
});
|
|
1367
|
+
|
|
1368
|
+
const mouseover_handler = () => $$invalidate(8, _hovering = true);
|
|
1369
|
+
|
|
1370
|
+
const mouseout_handler = () => $$invalidate(8, _hovering = false);
|
|
1371
|
+
|
|
1372
|
+
const focus_handler = () => $$invalidate(8, _hovering = false);
|
|
1373
|
+
|
|
1374
|
+
const blur_handler = () => $$invalidate(8, _hovering = false);
|
|
1375
|
+
|
|
1376
|
+
$$self.$$set = $$props => {
|
|
1377
|
+
if ('open' in $$props) $$invalidate(10, open = $$props.open);
|
|
1378
|
+
if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
|
|
1379
|
+
if ('secondarytext' in $$props) $$invalidate(1, secondarytext = $$props.secondarytext);
|
|
1380
|
+
if ('headingsize' in $$props) $$invalidate(2, headingsize = $$props.headingsize);
|
|
1381
|
+
if ('testid' in $$props) $$invalidate(3, testid = $$props.testid);
|
|
1382
|
+
if ('mt' in $$props) $$invalidate(4, mt = $$props.mt);
|
|
1383
|
+
if ('mr' in $$props) $$invalidate(5, mr = $$props.mr);
|
|
1384
|
+
if ('mb' in $$props) $$invalidate(6, mb = $$props.mb);
|
|
1385
|
+
if ('ml' in $$props) $$invalidate(7, ml = $$props.ml);
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
$$self.$$.update = () => {
|
|
1389
|
+
if ($$self.$$.dirty &
|
|
1390
|
+
/*open*/
|
|
1391
|
+
1024) {
|
|
1392
|
+
$$invalidate(9, isOpen = toBoolean(open));
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1396
|
+
return [heading, secondarytext, headingsize, testid, mt, mr, mb, ml, _hovering, isOpen, open, mouseover_handler, mouseout_handler, focus_handler, blur_handler];
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
class Accordion extends SvelteElement {
|
|
1400
|
+
constructor(options) {
|
|
1401
|
+
super();
|
|
1402
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans);font-size:var(--goa-font-size-4)}.goa-accordion,.goa-accordion *{box-sizing:border-box}summary{min-height:3.5rem;border-width:var(--goa-border-width-s);border-style:solid;border-radius:var(--goa-border-radius-m);background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);color:var(--goa-color-text-default);;;padding:0.875rem 1rem 0 0;cursor:pointer;list-style:none;display:flex;align-items:flex-start;position:relative}summary.container-medium{min-height:4rem}summary::marker,summary::-webkit-details-marker{display:none}summary .title{display:flex;align-items:center;flex:1}.title span{padding-bottom:var(--goa-space-3xs, 0)}summary .heading{font:var(--goa-typography-heading-s);padding-right:1rem}summary .secondary-text{font:var(--goa-typography-body-s);line-height:1.5rem;padding-right:1rem}summary .heading-content{flex:1
|
|
1403
|
+
}.content{border-bottom:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-left:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-right:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-bottom-left-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m);padding:1.5rem;padding-left:3.5rem;padding-right:2rem}summary goa-icon{padding:0.125rem 1rem}summary.container-medium goa-icon{padding:0.375rem 1rem}details[open] goa-icon{transform:rotate(90deg)}details[open] summary{border-bottom-left-radius:var(--goa-border-radius-none);border-bottom-right-radius:var(--goa-border-radius-none)}summary:hover{background-color:var(--goa-color-greyscale-200)}summary:focus,summary:active{background-color:var(--goa-color-greyscale-100);outline:none}summary:active::before,summary:focus::before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:var(--goa-border-width-l) solid var(--goa-color-interactive-focus);border-radius:4px}summary .heading.heading-medium{line-height:2rem;font:var(--goa-typography-heading-m)}@media(max-width: 640px){summary{align-items:flex-start}summary .title{flex-direction:column;align-items:flex-start}}</style>`;
|
|
1404
|
+
init(this, {
|
|
1405
|
+
target: this.shadowRoot,
|
|
1406
|
+
props: attribute_to_object(this.attributes),
|
|
1407
|
+
customElement: true
|
|
1408
|
+
}, instance$B, create_fragment$H, safe_not_equal, {
|
|
1409
|
+
open: 10,
|
|
1410
|
+
heading: 0,
|
|
1411
|
+
secondarytext: 1,
|
|
1412
|
+
headingsize: 2,
|
|
1413
|
+
testid: 3,
|
|
1414
|
+
mt: 4,
|
|
1415
|
+
mr: 5,
|
|
1416
|
+
mb: 6,
|
|
1417
|
+
ml: 7
|
|
1418
|
+
}, null);
|
|
1419
|
+
|
|
1420
|
+
if (options) {
|
|
1421
|
+
if (options.target) {
|
|
1422
|
+
insert(options.target, this, options.anchor);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
if (options.props) {
|
|
1426
|
+
this.$set(options.props);
|
|
1427
|
+
flush();
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
static get observedAttributes() {
|
|
1433
|
+
return ["open", "heading", "secondarytext", "headingsize", "testid", "mt", "mr", "mb", "ml"];
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
get open() {
|
|
1437
|
+
return this.$$.ctx[10];
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
set open(open) {
|
|
1441
|
+
this.$$set({
|
|
1442
|
+
open
|
|
1443
|
+
});
|
|
1444
|
+
flush();
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
get heading() {
|
|
1448
|
+
return this.$$.ctx[0];
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
set heading(heading) {
|
|
1452
|
+
this.$$set({
|
|
1453
|
+
heading
|
|
1454
|
+
});
|
|
1455
|
+
flush();
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
get secondarytext() {
|
|
1459
|
+
return this.$$.ctx[1];
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
set secondarytext(secondarytext) {
|
|
1463
|
+
this.$$set({
|
|
1464
|
+
secondarytext
|
|
1465
|
+
});
|
|
1466
|
+
flush();
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
get headingsize() {
|
|
1470
|
+
return this.$$.ctx[2];
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
set headingsize(headingsize) {
|
|
1474
|
+
this.$$set({
|
|
1475
|
+
headingsize
|
|
1476
|
+
});
|
|
1477
|
+
flush();
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
get testid() {
|
|
1481
|
+
return this.$$.ctx[3];
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
set testid(testid) {
|
|
1485
|
+
this.$$set({
|
|
1486
|
+
testid
|
|
1487
|
+
});
|
|
1488
|
+
flush();
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
get mt() {
|
|
1492
|
+
return this.$$.ctx[4];
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
set mt(mt) {
|
|
1496
|
+
this.$$set({
|
|
1497
|
+
mt
|
|
1498
|
+
});
|
|
1499
|
+
flush();
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
get mr() {
|
|
1503
|
+
return this.$$.ctx[5];
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
set mr(mr) {
|
|
1507
|
+
this.$$set({
|
|
1508
|
+
mr
|
|
1509
|
+
});
|
|
1510
|
+
flush();
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
get mb() {
|
|
1514
|
+
return this.$$.ctx[6];
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
set mb(mb) {
|
|
1518
|
+
this.$$set({
|
|
1519
|
+
mb
|
|
1520
|
+
});
|
|
1521
|
+
flush();
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
get ml() {
|
|
1525
|
+
return this.$$.ctx[7];
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
set ml(ml) {
|
|
1529
|
+
this.$$set({
|
|
1530
|
+
ml
|
|
1531
|
+
});
|
|
1532
|
+
flush();
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
customElements.define("goa-accordion", Accordion);
|
|
1068
1538
|
/* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.51.0 */
|
|
1069
1539
|
|
|
1070
1540
|
function create_else_block$4(ctx) {
|
|
@@ -1377,65 +1847,8 @@
|
|
|
1377
1847
|
}
|
|
1378
1848
|
|
|
1379
1849
|
customElements.define("goa-app-header", AppHeader);
|
|
1380
|
-
|
|
1381
|
-
function calculateMargin(mt, mr, mb, ml) {
|
|
1382
|
-
return [mt && `margin-top:var(--goa-space-${mt});`, mr && `margin-right:var(--goa-space-${mr});`, mb && `margin-bottom:var(--goa-space-${mb});`, ml && `margin-left:var(--goa-space-${ml});`].join(" ");
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
function injectCss(el, rootSelector, css, media) {
|
|
1386
|
-
const style = document.createElement("style");
|
|
1387
|
-
|
|
1388
|
-
const _css = Object.entries(css).map(entry => `${entry[0]}: ${entry[1]};`).join(" ");
|
|
1389
|
-
|
|
1390
|
-
if (media) {
|
|
1391
|
-
style.innerHTML = `@media (${media}) { ${rootSelector} {${_css}} }`;
|
|
1392
|
-
} else {
|
|
1393
|
-
style.innerHTML = `${rootSelector} {${_css}}`;
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
el.appendChild(style);
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
function toBoolean(value) {
|
|
1400
|
-
if (value === "false") {
|
|
1401
|
-
return false;
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
if (value === "") {
|
|
1405
|
-
return true;
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
return !!value;
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
function fromBoolean(value) {
|
|
1412
|
-
return value ? "true" : "false";
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
function validateRequired(componentName, props) {
|
|
1416
|
-
Object.entries(props).forEach(prop => {
|
|
1417
|
-
if (!prop[1]) {
|
|
1418
|
-
console.warn(`${componentName}: ${prop[0]} is required`);
|
|
1419
|
-
}
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
|
|
1423
|
-
function typeValidator(message, values, required = false) {
|
|
1424
|
-
const validator = value => {
|
|
1425
|
-
if (!required && !value) {
|
|
1426
|
-
return;
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
if (!values.includes(value)) {
|
|
1430
|
-
console.error(`[${value}] is an invalid ${message.toLowerCase()}`);
|
|
1431
|
-
}
|
|
1432
|
-
};
|
|
1433
|
-
|
|
1434
|
-
return [values, validator];
|
|
1435
|
-
}
|
|
1436
1850
|
/* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.51.0 */
|
|
1437
1851
|
|
|
1438
|
-
|
|
1439
1852
|
function create_else_block$3(ctx) {
|
|
1440
1853
|
let div;
|
|
1441
1854
|
return {
|
|
@@ -12752,8 +13165,12 @@
|
|
|
12752
13165
|
validateType(type);
|
|
12753
13166
|
});
|
|
12754
13167
|
|
|
12755
|
-
function close() {
|
|
13168
|
+
function close(e) {
|
|
12756
13169
|
$$invalidate(1, show = false);
|
|
13170
|
+
e.target.dispatchEvent(new CustomEvent("_dismiss", {
|
|
13171
|
+
composed: true
|
|
13172
|
+
}));
|
|
13173
|
+
e.stopPropagation();
|
|
12757
13174
|
}
|
|
12758
13175
|
|
|
12759
13176
|
$$self.$$set = $$props => {
|
|
@@ -15822,7 +16239,7 @@
|
|
|
15822
16239
|
class TextArea extends SvelteElement {
|
|
15823
16240
|
constructor(options) {
|
|
15824
16241
|
super();
|
|
15825
|
-
this.shadowRoot.innerHTML = `<style>:host{--textarea-padding-vertical:0.625rem;--textarea-padding-horizontal:0.75rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:3px;color:var(--goa-color-greyscale-black, #ccc);padding:var(--textarea-padding-vertical) var(--textarea-padding-horizontal);font-size:var(--goa-font-size-4);font-family:var(--goa-font-family-sans);min-width:100
|
|
16242
|
+
this.shadowRoot.innerHTML = `<style>:host{--textarea-padding-vertical:0.625rem;--textarea-padding-horizontal:0.75rem;box-sizing:border-box;font-family:var(--goa-font-family-sans)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:3px;color:var(--goa-color-greyscale-black, #ccc);padding:var(--textarea-padding-vertical) var(--textarea-padding-horizontal);font-size:var(--goa-font-size-4);font-family:var(--goa-font-family-sans);min-width:100%;resize:vertical}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive-hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}.goa-textarea:disabled,.goa-textarea:disabled:hover,.goa-textarea:disabled:active,.goa-textarea:disabled:focus{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);cursor:default;box-shadow:none}.counter{position:absolute;right:0;padding-top:0.25rem;font-size:var(--goa-font-size-2)}.counter-error{color:var(--goa-color-interactive-error)
|
|
15826
16243
|
}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive-error)}</style>`;
|
|
15827
16244
|
init(this, {
|
|
15828
16245
|
target: this.shadowRoot,
|
|
@@ -16827,15 +17244,48 @@
|
|
|
16827
17244
|
return t;
|
|
16828
17245
|
}
|
|
16829
17246
|
|
|
17247
|
+
var GoAAccordion = function GoAAccordion(_a) {
|
|
17248
|
+
var open = _a.open,
|
|
17249
|
+
heading = _a.heading,
|
|
17250
|
+
headingSize = _a.headingSize,
|
|
17251
|
+
secondaryText = _a.secondaryText,
|
|
17252
|
+
headingContent = _a.headingContent,
|
|
17253
|
+
testid = _a.testid,
|
|
17254
|
+
children = _a.children,
|
|
17255
|
+
mt = _a.mt,
|
|
17256
|
+
mr = _a.mr,
|
|
17257
|
+
mb = _a.mb,
|
|
17258
|
+
ml = _a.ml;
|
|
17259
|
+
return jsxRuntime.jsxs("goa-accordion", __assign({
|
|
17260
|
+
open: open,
|
|
17261
|
+
headingSize: headingSize,
|
|
17262
|
+
heading: heading,
|
|
17263
|
+
secondaryText: secondaryText,
|
|
17264
|
+
"data-testid": testid,
|
|
17265
|
+
mt: mt,
|
|
17266
|
+
mr: mr,
|
|
17267
|
+
mb: mb,
|
|
17268
|
+
ml: ml
|
|
17269
|
+
}, {
|
|
17270
|
+
children: [children, headingContent && jsxRuntime.jsx("div", __assign({
|
|
17271
|
+
slot: "headingcontent"
|
|
17272
|
+
}, {
|
|
17273
|
+
children: headingContent
|
|
17274
|
+
}), void 0)]
|
|
17275
|
+
}), void 0);
|
|
17276
|
+
};
|
|
17277
|
+
|
|
16830
17278
|
var GoAAppHeader = function GoAAppHeader(_a) {
|
|
16831
17279
|
var heading = _a.heading,
|
|
16832
17280
|
url = _a.url,
|
|
16833
17281
|
maxContentWidth = _a.maxContentWidth,
|
|
17282
|
+
testId = _a.testId,
|
|
16834
17283
|
children = _a.children;
|
|
16835
17284
|
return jsxRuntime.jsx("goa-app-header", __assign({
|
|
16836
17285
|
heading: heading,
|
|
16837
17286
|
url: url,
|
|
16838
|
-
maxcontentwidth: maxContentWidth
|
|
17287
|
+
maxcontentwidth: maxContentWidth,
|
|
17288
|
+
"data-testid": testId
|
|
16839
17289
|
}, {
|
|
16840
17290
|
children: children
|
|
16841
17291
|
}), void 0);
|
|
@@ -16854,7 +17304,7 @@
|
|
|
16854
17304
|
type: type,
|
|
16855
17305
|
content: content,
|
|
16856
17306
|
icon: icon,
|
|
16857
|
-
testid: testId,
|
|
17307
|
+
"data-testid": testId,
|
|
16858
17308
|
mt: mt,
|
|
16859
17309
|
mr: mr,
|
|
16860
17310
|
mb: mb,
|
|
@@ -16962,7 +17412,8 @@
|
|
|
16962
17412
|
mt: props.mt,
|
|
16963
17413
|
mr: props.mr,
|
|
16964
17414
|
mb: props.mb,
|
|
16965
|
-
ml: props.ml
|
|
17415
|
+
ml: props.ml,
|
|
17416
|
+
"data-testid": props.testId
|
|
16966
17417
|
}, {
|
|
16967
17418
|
children: props.children
|
|
16968
17419
|
}), void 0);
|
|
@@ -16971,6 +17422,7 @@
|
|
|
16971
17422
|
var GoAButtonGroup = function GoAButtonGroup(_a) {
|
|
16972
17423
|
var alignment = _a.alignment,
|
|
16973
17424
|
gap = _a.gap,
|
|
17425
|
+
testId = _a.testId,
|
|
16974
17426
|
children = _a.children,
|
|
16975
17427
|
mt = _a.mt,
|
|
16976
17428
|
mr = _a.mr,
|
|
@@ -16982,7 +17434,8 @@
|
|
|
16982
17434
|
mt: mt,
|
|
16983
17435
|
mr: mr,
|
|
16984
17436
|
mb: mb,
|
|
16985
|
-
ml: ml
|
|
17437
|
+
ml: ml,
|
|
17438
|
+
"data-testid": testId
|
|
16986
17439
|
}, {
|
|
16987
17440
|
children: children
|
|
16988
17441
|
}), void 0);
|
|
@@ -16997,6 +17450,7 @@
|
|
|
16997
17450
|
variant = _a.variant,
|
|
16998
17451
|
leadingIcon = _a.leadingIcon,
|
|
16999
17452
|
trailingIcon = _a.trailingIcon,
|
|
17453
|
+
testId = _a.testId,
|
|
17000
17454
|
children = _a.children,
|
|
17001
17455
|
onClick = _a.onClick,
|
|
17002
17456
|
mt = _a.mt,
|
|
@@ -17032,6 +17486,7 @@
|
|
|
17032
17486
|
disabled: disabled,
|
|
17033
17487
|
leadingicon: leadingIcon,
|
|
17034
17488
|
trailingicon: trailingIcon,
|
|
17489
|
+
"data-testid": testId,
|
|
17035
17490
|
mt: mt,
|
|
17036
17491
|
mr: mr,
|
|
17037
17492
|
mb: mb,
|
|
@@ -17045,6 +17500,7 @@
|
|
|
17045
17500
|
var heading = _a.heading,
|
|
17046
17501
|
_b = _a.type,
|
|
17047
17502
|
type = _b === void 0 ? "information" : _b,
|
|
17503
|
+
testId = _a.testId,
|
|
17048
17504
|
children = _a.children,
|
|
17049
17505
|
mt = _a.mt,
|
|
17050
17506
|
mr = _a.mr,
|
|
@@ -17056,7 +17512,8 @@
|
|
|
17056
17512
|
mt: mt,
|
|
17057
17513
|
mr: mr,
|
|
17058
17514
|
mb: mb,
|
|
17059
|
-
ml: ml
|
|
17515
|
+
ml: ml,
|
|
17516
|
+
"data-testid": testId
|
|
17060
17517
|
}, {
|
|
17061
17518
|
children: children
|
|
17062
17519
|
}), void 0);
|
|
@@ -17129,7 +17586,8 @@
|
|
|
17129
17586
|
mt = _a.mt,
|
|
17130
17587
|
mr = _a.mr,
|
|
17131
17588
|
mb = _a.mb,
|
|
17132
|
-
ml = _a.ml
|
|
17589
|
+
ml = _a.ml,
|
|
17590
|
+
testId = _a.testId;
|
|
17133
17591
|
var el = react.useRef(null);
|
|
17134
17592
|
react.useEffect(function () {
|
|
17135
17593
|
if (!el.current) return;
|
|
@@ -17155,7 +17613,8 @@
|
|
|
17155
17613
|
mt: mt,
|
|
17156
17614
|
mr: mr,
|
|
17157
17615
|
mb: mb,
|
|
17158
|
-
ml: ml
|
|
17616
|
+
ml: ml,
|
|
17617
|
+
"data-testid": testId
|
|
17159
17618
|
}, void 0);
|
|
17160
17619
|
};
|
|
17161
17620
|
|
|
@@ -17164,13 +17623,15 @@
|
|
|
17164
17623
|
message = _a.message,
|
|
17165
17624
|
progress = _a.progress,
|
|
17166
17625
|
variant = _a.variant,
|
|
17167
|
-
size = _a.size
|
|
17626
|
+
size = _a.size,
|
|
17627
|
+
testId = _a.testId;
|
|
17168
17628
|
return jsxRuntime.jsx("goa-circular-progress", {
|
|
17169
17629
|
visible: visible ? "true" : "false",
|
|
17170
17630
|
message: message,
|
|
17171
17631
|
progress: progress,
|
|
17172
17632
|
variant: variant,
|
|
17173
|
-
size: size
|
|
17633
|
+
size: size,
|
|
17634
|
+
"data-testid": testId
|
|
17174
17635
|
}, void 0);
|
|
17175
17636
|
};
|
|
17176
17637
|
|
|
@@ -17184,7 +17645,8 @@
|
|
|
17184
17645
|
mt = _a.mt,
|
|
17185
17646
|
mr = _a.mr,
|
|
17186
17647
|
mb = _a.mb,
|
|
17187
|
-
ml = _a.ml
|
|
17648
|
+
ml = _a.ml,
|
|
17649
|
+
testId = _a.testId;
|
|
17188
17650
|
return jsxRuntime.jsxs("goa-container", __assign({
|
|
17189
17651
|
type: type,
|
|
17190
17652
|
padding: padding,
|
|
@@ -17192,7 +17654,8 @@
|
|
|
17192
17654
|
mt: mt,
|
|
17193
17655
|
mr: mr,
|
|
17194
17656
|
mb: mb,
|
|
17195
|
-
ml: ml
|
|
17657
|
+
ml: ml,
|
|
17658
|
+
"data-testid": testId
|
|
17196
17659
|
}, {
|
|
17197
17660
|
children: [title && jsxRuntime.jsx("div", __assign({
|
|
17198
17661
|
slot: "title"
|
|
@@ -17211,7 +17674,8 @@
|
|
|
17211
17674
|
mt: props.mt,
|
|
17212
17675
|
mr: props.mr,
|
|
17213
17676
|
mb: props.mb,
|
|
17214
|
-
ml: props.ml
|
|
17677
|
+
ml: props.ml,
|
|
17678
|
+
"data-testid": props.testId
|
|
17215
17679
|
}, void 0);
|
|
17216
17680
|
}
|
|
17217
17681
|
|
|
@@ -17266,7 +17730,7 @@
|
|
|
17266
17730
|
multiselect: props.multiselect,
|
|
17267
17731
|
native: props.native,
|
|
17268
17732
|
placeholder: props.placeholder,
|
|
17269
|
-
testid: props.testId,
|
|
17733
|
+
"data-testid": props.testId,
|
|
17270
17734
|
width: props.width
|
|
17271
17735
|
}, {
|
|
17272
17736
|
children: props.children
|
|
@@ -17305,11 +17769,13 @@
|
|
|
17305
17769
|
var heading = _a.heading,
|
|
17306
17770
|
_b = _a.maxColumnCount,
|
|
17307
17771
|
maxColumnCount = _b === void 0 ? 1 : _b,
|
|
17772
|
+
testId = _a.testId,
|
|
17308
17773
|
children = _a.children;
|
|
17309
17774
|
return jsxRuntime.jsx("goa-app-footer-nav-section", __assign({
|
|
17310
17775
|
slot: "nav",
|
|
17311
17776
|
heading: heading,
|
|
17312
|
-
maxcolumncount: maxColumnCount
|
|
17777
|
+
maxcolumncount: maxColumnCount,
|
|
17778
|
+
"data-testid": testId
|
|
17313
17779
|
}, {
|
|
17314
17780
|
children: children
|
|
17315
17781
|
}), void 0);
|
|
@@ -17317,9 +17783,11 @@
|
|
|
17317
17783
|
|
|
17318
17784
|
function GoAAppFooter(_a) {
|
|
17319
17785
|
var maxContentWidth = _a.maxContentWidth,
|
|
17320
|
-
children = _a.children
|
|
17786
|
+
children = _a.children,
|
|
17787
|
+
testId = _a.testId;
|
|
17321
17788
|
return jsxRuntime.jsx("goa-app-footer", __assign({
|
|
17322
|
-
maxcontentwidth: maxContentWidth
|
|
17789
|
+
maxcontentwidth: maxContentWidth,
|
|
17790
|
+
"data-testid": testId
|
|
17323
17791
|
}, {
|
|
17324
17792
|
children: children
|
|
17325
17793
|
}), void 0);
|
|
@@ -17334,7 +17802,8 @@
|
|
|
17334
17802
|
mt = _a.mt,
|
|
17335
17803
|
mr = _a.mr,
|
|
17336
17804
|
mb = _a.mb,
|
|
17337
|
-
ml = _a.ml
|
|
17805
|
+
ml = _a.ml,
|
|
17806
|
+
testId = _a.testId;
|
|
17338
17807
|
return jsxRuntime.jsx("goa-form-item", __assign({
|
|
17339
17808
|
label: label,
|
|
17340
17809
|
error: error,
|
|
@@ -17343,7 +17812,8 @@
|
|
|
17343
17812
|
mt: mt,
|
|
17344
17813
|
mr: mr,
|
|
17345
17814
|
mb: mb,
|
|
17346
|
-
ml: ml
|
|
17815
|
+
ml: ml,
|
|
17816
|
+
"data-testid": testId
|
|
17347
17817
|
}, {
|
|
17348
17818
|
children: children
|
|
17349
17819
|
}), void 0);
|
|
@@ -17356,6 +17826,7 @@
|
|
|
17356
17826
|
mr = _a.mr,
|
|
17357
17827
|
mb = _a.mb,
|
|
17358
17828
|
ml = _a.ml,
|
|
17829
|
+
testId = _a.testId,
|
|
17359
17830
|
children = _a.children;
|
|
17360
17831
|
return jsxRuntime.jsx("goa-grid", __assign({
|
|
17361
17832
|
gap: gap,
|
|
@@ -17363,7 +17834,8 @@
|
|
|
17363
17834
|
minchildwidth: minChildWidth,
|
|
17364
17835
|
mr: mr,
|
|
17365
17836
|
mb: mb,
|
|
17366
|
-
ml: ml
|
|
17837
|
+
ml: ml,
|
|
17838
|
+
"data-testid": testId
|
|
17367
17839
|
}, {
|
|
17368
17840
|
children: children
|
|
17369
17841
|
}), void 0);
|
|
@@ -17373,11 +17845,13 @@
|
|
|
17373
17845
|
var heading = _a.heading,
|
|
17374
17846
|
backgroundUrl = _a.backgroundUrl,
|
|
17375
17847
|
minHeight = _a.minHeight,
|
|
17376
|
-
children = _a.children
|
|
17848
|
+
children = _a.children,
|
|
17849
|
+
testId = _a.testId;
|
|
17377
17850
|
return jsxRuntime.jsx("goa-hero-banner", __assign({
|
|
17378
17851
|
heading: heading,
|
|
17379
17852
|
backgroundurl: backgroundUrl,
|
|
17380
|
-
minheight: minHeight
|
|
17853
|
+
minheight: minHeight,
|
|
17854
|
+
"data-testid": testId
|
|
17381
17855
|
}, {
|
|
17382
17856
|
children: children
|
|
17383
17857
|
}), void 0);
|
|
@@ -17401,6 +17875,7 @@
|
|
|
17401
17875
|
_c = _a.size,
|
|
17402
17876
|
size = _c === void 0 ? "medium" : _c,
|
|
17403
17877
|
title = _a.title,
|
|
17878
|
+
testId = _a.testId,
|
|
17404
17879
|
children = _a.children,
|
|
17405
17880
|
mt = _a.mt,
|
|
17406
17881
|
mr = _a.mr,
|
|
@@ -17437,7 +17912,8 @@
|
|
|
17437
17912
|
mt: mt,
|
|
17438
17913
|
mr: mr,
|
|
17439
17914
|
mb: mb,
|
|
17440
|
-
ml: ml
|
|
17915
|
+
ml: ml,
|
|
17916
|
+
"data-testid": testId
|
|
17441
17917
|
}, {
|
|
17442
17918
|
children: children
|
|
17443
17919
|
}), void 0);
|
|
@@ -17450,7 +17926,8 @@
|
|
|
17450
17926
|
mt = _a.mt,
|
|
17451
17927
|
mr = _a.mr,
|
|
17452
17928
|
mb = _a.mb,
|
|
17453
|
-
ml = _a.ml
|
|
17929
|
+
ml = _a.ml,
|
|
17930
|
+
testId = _a.testId;
|
|
17454
17931
|
return jsxRuntime.jsx("goa-icon", {
|
|
17455
17932
|
type: type,
|
|
17456
17933
|
theme: theme,
|
|
@@ -17458,7 +17935,8 @@
|
|
|
17458
17935
|
mt: mt,
|
|
17459
17936
|
mr: mr,
|
|
17460
17937
|
mb: mb,
|
|
17461
|
-
ml: ml
|
|
17938
|
+
ml: ml,
|
|
17939
|
+
"data-testid": testId
|
|
17462
17940
|
}, void 0);
|
|
17463
17941
|
}
|
|
17464
17942
|
|
|
@@ -17722,11 +18200,13 @@
|
|
|
17722
18200
|
var GoAMicrositeHeader = function GoAMicrositeHeader(_a) {
|
|
17723
18201
|
var type = _a.type,
|
|
17724
18202
|
version = _a.version,
|
|
17725
|
-
feedbackUrl = _a.feedbackUrl
|
|
18203
|
+
feedbackUrl = _a.feedbackUrl,
|
|
18204
|
+
testId = _a.testId;
|
|
17726
18205
|
return jsxRuntime.jsx("goa-microsite-header", {
|
|
17727
18206
|
type: type,
|
|
17728
18207
|
version: version,
|
|
17729
|
-
feedbackurl: feedbackUrl
|
|
18208
|
+
feedbackurl: feedbackUrl,
|
|
18209
|
+
"data-testid": testId
|
|
17730
18210
|
}, void 0);
|
|
17731
18211
|
};
|
|
17732
18212
|
|
|
@@ -17739,7 +18219,8 @@
|
|
|
17739
18219
|
transition = _a.transition,
|
|
17740
18220
|
type = _a.type,
|
|
17741
18221
|
calloutVariant = _a.calloutVariant,
|
|
17742
|
-
onClose = _a.onClose
|
|
18222
|
+
onClose = _a.onClose,
|
|
18223
|
+
testId = _a.testId;
|
|
17743
18224
|
var el = react.useRef(null);
|
|
17744
18225
|
react.useEffect(function () {
|
|
17745
18226
|
if (type) {
|
|
@@ -17770,7 +18251,8 @@
|
|
|
17770
18251
|
scrollable: true,
|
|
17771
18252
|
width: width,
|
|
17772
18253
|
transition: transition,
|
|
17773
|
-
calloutVariant: calloutVariant
|
|
18254
|
+
calloutVariant: calloutVariant,
|
|
18255
|
+
"data-testid": testId
|
|
17774
18256
|
}, {
|
|
17775
18257
|
children: [actions && jsxRuntime.jsx("div", __assign({
|
|
17776
18258
|
slot: "actions"
|
|
@@ -17783,9 +18265,30 @@
|
|
|
17783
18265
|
var GoANotification = function GoANotification(_a) {
|
|
17784
18266
|
var _b = _a.type,
|
|
17785
18267
|
type = _b === void 0 ? "information" : _b,
|
|
17786
|
-
children = _a.children
|
|
18268
|
+
children = _a.children,
|
|
18269
|
+
testId = _a.testId,
|
|
18270
|
+
onDismiss = _a.onDismiss;
|
|
18271
|
+
var el = react.useRef(null);
|
|
18272
|
+
react.useEffect(function () {
|
|
18273
|
+
if (!el.current) {
|
|
18274
|
+
return;
|
|
18275
|
+
}
|
|
18276
|
+
|
|
18277
|
+
var current = el.current;
|
|
18278
|
+
|
|
18279
|
+
var listener = function listener() {
|
|
18280
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
18281
|
+
};
|
|
18282
|
+
|
|
18283
|
+
current.addEventListener("_dismiss", listener);
|
|
18284
|
+
return function () {
|
|
18285
|
+
current.removeEventListener("_dismiss", listener);
|
|
18286
|
+
};
|
|
18287
|
+
}, [el, onDismiss]);
|
|
17787
18288
|
return jsxRuntime.jsx("goa-notification", __assign({
|
|
17788
|
-
|
|
18289
|
+
ref: el,
|
|
18290
|
+
type: type,
|
|
18291
|
+
"data-testid": testId
|
|
17789
18292
|
}, {
|
|
17790
18293
|
children: children
|
|
17791
18294
|
}), void 0);
|
|
@@ -17799,7 +18302,8 @@
|
|
|
17799
18302
|
|
|
17800
18303
|
var GoAPageBlock = function GoAPageBlock(props) {
|
|
17801
18304
|
return jsxRuntime.jsx("goa-page-block", __assign({
|
|
17802
|
-
width: props.width
|
|
18305
|
+
width: props.width,
|
|
18306
|
+
"data-testid": props.testId
|
|
17803
18307
|
}, {
|
|
17804
18308
|
children: props.children
|
|
17805
18309
|
}), void 0);
|
|
@@ -17911,7 +18415,8 @@
|
|
|
17911
18415
|
mt: props.mt,
|
|
17912
18416
|
mb: props.mb,
|
|
17913
18417
|
ml: props.ml,
|
|
17914
|
-
mr: props.mr
|
|
18418
|
+
mr: props.mr,
|
|
18419
|
+
"data-testid": props.testId
|
|
17915
18420
|
}, void 0);
|
|
17916
18421
|
}
|
|
17917
18422
|
|
|
@@ -17920,6 +18425,7 @@
|
|
|
17920
18425
|
size = _a.size,
|
|
17921
18426
|
lineCount = _a.lineCount,
|
|
17922
18427
|
type = _a.type,
|
|
18428
|
+
testId = _a.testId,
|
|
17923
18429
|
mt = _a.mt,
|
|
17924
18430
|
mr = _a.mr,
|
|
17925
18431
|
mb = _a.mb,
|
|
@@ -17932,14 +18438,16 @@
|
|
|
17932
18438
|
mt: mt,
|
|
17933
18439
|
mr: mr,
|
|
17934
18440
|
mb: mb,
|
|
17935
|
-
ml: ml
|
|
18441
|
+
ml: ml,
|
|
18442
|
+
"data-testid": testId
|
|
17936
18443
|
}, void 0);
|
|
17937
18444
|
};
|
|
17938
18445
|
|
|
17939
18446
|
function GoASpacer(props) {
|
|
17940
18447
|
return jsxRuntime.jsx("goa-spacer", {
|
|
17941
18448
|
hspacing: props.hSpacing,
|
|
17942
|
-
vspacing: props.vSpacing
|
|
18449
|
+
vspacing: props.vSpacing,
|
|
18450
|
+
"data-testid": props.testId
|
|
17943
18451
|
}, void 0);
|
|
17944
18452
|
}
|
|
17945
18453
|
|
|
@@ -17954,7 +18462,7 @@
|
|
|
17954
18462
|
size: size,
|
|
17955
18463
|
progress: progress,
|
|
17956
18464
|
invert: invert,
|
|
17957
|
-
testid: testId
|
|
18465
|
+
"data-testid": testId
|
|
17958
18466
|
}, void 0);
|
|
17959
18467
|
};
|
|
17960
18468
|
|
|
@@ -17962,6 +18470,7 @@
|
|
|
17962
18470
|
return jsxRuntime.jsx("goa-table", __assign({
|
|
17963
18471
|
width: props.width,
|
|
17964
18472
|
stickyheader: false,
|
|
18473
|
+
"data-testid": props.testId,
|
|
17965
18474
|
mt: props.mt,
|
|
17966
18475
|
mb: props.mb,
|
|
17967
18476
|
ml: props.ml,
|
|
@@ -18053,6 +18562,7 @@
|
|
|
18053
18562
|
}), void 0);
|
|
18054
18563
|
}
|
|
18055
18564
|
|
|
18565
|
+
exports.GoAAccordion = GoAAccordion;
|
|
18056
18566
|
exports.GoAAppFooter = GoAAppFooter;
|
|
18057
18567
|
exports.GoAAppFooterMetaSection = GoAAppFooterMetaSection;
|
|
18058
18568
|
exports.GoAAppFooterNavSection = GoAAppFooterNavSection;
|