@abgov/react-components 4.0.0-alpha.30 → 4.0.0-alpha.33
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/container/container.d.ts +3 -1
- package/package.json +1 -1
- package/react-components.esm.js +466 -341
- package/react-components.umd.js +466 -341
package/react-components.esm.js
CHANGED
|
@@ -2199,7 +2199,7 @@ function instance$w($$self, $$props, $$invalidate) {
|
|
|
2199
2199
|
class Button extends SvelteElement {
|
|
2200
2200
|
constructor(options) {
|
|
2201
2201
|
super();
|
|
2202
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}@media(max-width: 480px){:host{width:100%}button{width:100%}}button{display:flex;box-sizing:border-box;border-radius:0.25rem;border:2px solid var(--goa-color-interactive);box-sizing:border-box;cursor:pointer;font-family:var(--font-family);font-size:var(--fs-lg);font-weight:400;height:var(--button-height);letter-spacing:0.5px;line-height:100%;padding:0 0.75rem;gap:0.5rem;align-items:center;justify-content:center;transition:transform 0.1s ease-in-out, background-color 0.2s ease-in-out,
|
|
2202
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}@media(max-width: 480px){:host{width:100%}button{width:100%}}button{display:inline-flex;box-sizing:border-box;border-radius:0.25rem;border:2px solid var(--goa-color-interactive);box-sizing:border-box;cursor:pointer;font-family:var(--font-family);font-size:var(--fs-lg);font-weight:400;height:var(--button-height);letter-spacing:0.5px;line-height:100%;padding:0 0.75rem;gap:0.5rem;align-items:center;justify-content:center;transition:transform 0.1s ease-in-out, background-color 0.2s ease-in-out,
|
|
2203
2203
|
border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--fs-base)}button.start{height:var(--button-height-tall);font-weight:var(--fw-bold)}button.start,button.primary{border:2px solid var(--goa-color-interactive);background:var(--goa-color-interactive);color:var(--goa-color-text-light)}button.start:hover,button.primary:hover{border-color:var(--goa-color-interactive--hover);background:var(--goa-color-interactive--hover)}button.start:focus,button.start:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive--focus);border-color:var(--goa-color-interactive--active);background:var(--goa-color-interactive--active);outline:none}button.secondary{border:2px solid var(--goa-color-interactive);background:var(--color-white);color:var(--goa-color-interactive)}button.secondary:hover{border-color:var(--goa-color-interactive--hover);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);background:var(--color-gray-100);outline:none}button.tertiary{border:1px solid transparent;background:transparent;color:var(--goa-color-interactive);text-decoration:underline}button.tertiary:hover{border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--color-gray-100);background:var(--color-gray-100);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.primary.danger{color:var(--color-white);background:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency)}.primary.danger:hover{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.primary.danger:focus,.primary.danger:active{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.secondary.danger{color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);background:var(--color-white)}.secondary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.secondary.danger:focus,.secondary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger{color:var(--goa-color-status-emergency);border-color:var(--color-gray-200);background:var(--color-white)}.tertiary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger:focus,.tertiary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}</style>`;
|
|
2204
2204
|
init(this, {
|
|
2205
2205
|
target: this.shadowRoot,
|
|
@@ -3957,7 +3957,7 @@ function create_fragment$r(ctx) {
|
|
|
3957
3957
|
ctx[1]);
|
|
3958
3958
|
attr(div2, "class", "content");
|
|
3959
3959
|
attr(div3, "class", div3_class_value = `
|
|
3960
|
-
goa-container
|
|
3960
|
+
goa-container
|
|
3961
3961
|
goa-container--${
|
|
3962
3962
|
/*variant*/
|
|
3963
3963
|
ctx[0]}
|
|
@@ -3992,7 +3992,7 @@ function create_fragment$r(ctx) {
|
|
|
3992
3992
|
if (dirty &
|
|
3993
3993
|
/*variant, padding*/
|
|
3994
3994
|
5 && div3_class_value !== (div3_class_value = `
|
|
3995
|
-
goa-container
|
|
3995
|
+
goa-container
|
|
3996
3996
|
goa-container--${
|
|
3997
3997
|
/*variant*/
|
|
3998
3998
|
ctx[0]}
|
|
@@ -4026,7 +4026,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
4026
4026
|
let _colored;
|
|
4027
4027
|
|
|
4028
4028
|
let {
|
|
4029
|
-
variant = '
|
|
4029
|
+
variant = 'non-interactive'
|
|
4030
4030
|
} = $$props;
|
|
4031
4031
|
let {
|
|
4032
4032
|
colored = "false"
|
|
@@ -4059,7 +4059,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
4059
4059
|
class Container extends SvelteElement {
|
|
4060
4060
|
constructor(options) {
|
|
4061
4061
|
super();
|
|
4062
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family);font-size:var(--fs-base)}.goa-container{margin-bottom:1rem;box-sizing:border-box}.goa-container *{box-sizing:border-box}header{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:var(--fs-base);border-width:1px;border-style:solid;border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.content{border-bottom:1px solid var(--color-gray-200);border-left:1px solid var(--color-gray-200);border-right:1px solid var(--color-gray-200);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.goa-container--
|
|
4062
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family);font-size:var(--fs-base)}.goa-container{margin-bottom:1rem;box-sizing:border-box}.goa-container *{box-sizing:border-box}header{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:var(--fs-base);border-width:1px;border-style:solid;border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.content{border-bottom:1px solid var(--color-gray-200);border-left:1px solid var(--color-gray-200);border-right:1px solid var(--color-gray-200);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.goa-container--non-interactive.colored .content{border-color:var(--color-gray-200);background-color:var(--color-gray-100)}.goa-container--important.colored .content{border-color:var(--goa-color-status-warning);background-color:var(--goa-color-status-warning-50)}.goa-container--error.colored .content{border-color:var(--goa-color-status-emergency);background-color:var(--goa-color-status-emergency-50)}.goa-container--success.colored .content{border-color:var(--goa-color-status-success);background-color:var(--goa-color-status-success-50)}.goa-container--info.colored .content{border-color:var(--goa-color-status-info);background-color:var(--goa-color-status-info-50)}.title>*,.actions>*{line-height:3rem}.padding--relaxed header{padding:0 1.5rem}.padding--relaxed .content{padding:1.5rem}.padding--compact header,.padding--compact .content{padding:0 1rem}.padding--compact header{padding:0 1rem}.padding--compact .content{padding:1rem}@media screen and (max-width: 480px){.padding--relaxed header{padding:0 1rem}.padding--relaxed .content{padding:1rem}}.goa-container--non-interactive header{background-color:var(--color-gray-100);border-color:var(--color-gray-200);color:var(--color-black)}.goa-container--interactive header{background-color:var(--goa-color-brand);border-color:var(--goa-color-brand);color:var(--color-white)}.goa-container--info header{background-color:var(--goa-color-status-info);border-color:var(--goa-color-status-info);color:var(--color-white)}.goa-container--error header{background-color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);color:var(--color-white)}.goa-container--success header{background-color:var(--goa-color-status-success);border-color:var(--goa-color-status-success);color:var(--color-white)}.goa-container--important header{background-color:var(--goa-color-status-warning);border-color:var(--goa-color-status-warning);color:var(--color-white)}.heading--large{padding:0.5rem 1.5rem;max-height:3rem;min-height:1rem}.heading--large .title{line-height:2rem}.heading--small{height:0.5rem}.heading--none{display:none}.heading--none~.content{border-top:1px solid var(--color-gray-200);border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.heading--small .title,.heading--small .actions{display:none}.actions{display:flex;align-items:center}</style>`;
|
|
4063
4063
|
init(this, {
|
|
4064
4064
|
target: this.shadowRoot,
|
|
4065
4065
|
props: attribute_to_object(this.attributes),
|
|
@@ -4252,10 +4252,10 @@ const BIND$1 = "bind";
|
|
|
4252
4252
|
|
|
4253
4253
|
function get_each_context$4(ctx, list, i) {
|
|
4254
4254
|
const child_ctx = ctx.slice();
|
|
4255
|
-
child_ctx[
|
|
4256
|
-
child_ctx[
|
|
4255
|
+
child_ctx[36] = list[i];
|
|
4256
|
+
child_ctx[38] = i;
|
|
4257
4257
|
return child_ctx;
|
|
4258
|
-
} // (
|
|
4258
|
+
} // (180:2) {#if isMenuVisible}
|
|
4259
4259
|
|
|
4260
4260
|
|
|
4261
4261
|
function create_if_block$d(ctx) {
|
|
@@ -4278,7 +4278,7 @@ function create_if_block$d(ctx) {
|
|
|
4278
4278
|
if (!mounted) {
|
|
4279
4279
|
dispose = listen(div, "click",
|
|
4280
4280
|
/*closeMenu*/
|
|
4281
|
-
ctx[
|
|
4281
|
+
ctx[18]);
|
|
4282
4282
|
mounted = true;
|
|
4283
4283
|
}
|
|
4284
4284
|
},
|
|
@@ -4300,16 +4300,17 @@ function create_if_block$d(ctx) {
|
|
|
4300
4300
|
}
|
|
4301
4301
|
|
|
4302
4302
|
};
|
|
4303
|
-
} // (
|
|
4303
|
+
} // (216:4) {#each options as option, index (option.value)}
|
|
4304
4304
|
|
|
4305
4305
|
|
|
4306
4306
|
function create_each_block$4(key_1, ctx) {
|
|
4307
4307
|
let li;
|
|
4308
4308
|
let t0_value =
|
|
4309
4309
|
/*option*/
|
|
4310
|
-
ctx[
|
|
4310
|
+
ctx[36].label + "";
|
|
4311
4311
|
let t0;
|
|
4312
4312
|
let t1;
|
|
4313
|
+
let li_aria_label_value;
|
|
4313
4314
|
let li_data_testid_value;
|
|
4314
4315
|
let li_data_index_value;
|
|
4315
4316
|
let li_style_value;
|
|
@@ -4319,9 +4320,9 @@ function create_each_block$4(key_1, ctx) {
|
|
|
4319
4320
|
function click_handler() {
|
|
4320
4321
|
return (
|
|
4321
4322
|
/*click_handler*/
|
|
4322
|
-
ctx[
|
|
4323
|
+
ctx[22](
|
|
4323
4324
|
/*option*/
|
|
4324
|
-
ctx[
|
|
4325
|
+
ctx[36])
|
|
4325
4326
|
);
|
|
4326
4327
|
}
|
|
4327
4328
|
|
|
@@ -4333,25 +4334,30 @@ function create_each_block$4(key_1, ctx) {
|
|
|
4333
4334
|
li = element("li");
|
|
4334
4335
|
t0 = text(t0_value);
|
|
4335
4336
|
t1 = space();
|
|
4337
|
+
attr(li, "aria-label", li_aria_label_value =
|
|
4338
|
+
/*option*/
|
|
4339
|
+
ctx[36].label ||
|
|
4340
|
+
/*option*/
|
|
4341
|
+
ctx[36].value);
|
|
4336
4342
|
attr(li, "data-testid", li_data_testid_value = `${
|
|
4337
4343
|
/*option*/
|
|
4338
|
-
ctx[
|
|
4344
|
+
ctx[36].value}-dropdown-item`);
|
|
4339
4345
|
attr(li, "data-index", li_data_index_value =
|
|
4340
4346
|
/*index*/
|
|
4341
|
-
ctx[
|
|
4347
|
+
ctx[38]);
|
|
4342
4348
|
attr(li, "class", "goa-dropdown-option");
|
|
4343
4349
|
attr(li, "style", li_style_value = `display: ${"block"}`);
|
|
4344
4350
|
toggle_class(li, "goa-dropdown-option--disabled", false);
|
|
4345
4351
|
toggle_class(li, "goa-dropdown-option--tabbed",
|
|
4346
4352
|
/*index*/
|
|
4347
|
-
ctx[
|
|
4353
|
+
ctx[38] ===
|
|
4348
4354
|
/*highlightedIndex*/
|
|
4349
|
-
ctx[
|
|
4355
|
+
ctx[13]);
|
|
4350
4356
|
toggle_class(li, "goa-dropdown-option--selected",
|
|
4351
4357
|
/*_values*/
|
|
4352
|
-
ctx[
|
|
4358
|
+
ctx[9].includes(
|
|
4353
4359
|
/*option*/
|
|
4354
|
-
ctx[
|
|
4360
|
+
ctx[36].value));
|
|
4355
4361
|
this.first = li;
|
|
4356
4362
|
},
|
|
4357
4363
|
|
|
@@ -4370,44 +4376,54 @@ function create_each_block$4(key_1, ctx) {
|
|
|
4370
4376
|
ctx = new_ctx;
|
|
4371
4377
|
if (dirty[0] &
|
|
4372
4378
|
/*options*/
|
|
4373
|
-
|
|
4379
|
+
1024 && t0_value !== (t0_value =
|
|
4374
4380
|
/*option*/
|
|
4375
|
-
ctx[
|
|
4381
|
+
ctx[36].label + "")) set_data(t0, t0_value);
|
|
4382
|
+
|
|
4383
|
+
if (dirty[0] &
|
|
4384
|
+
/*options*/
|
|
4385
|
+
1024 && li_aria_label_value !== (li_aria_label_value =
|
|
4386
|
+
/*option*/
|
|
4387
|
+
ctx[36].label ||
|
|
4388
|
+
/*option*/
|
|
4389
|
+
ctx[36].value)) {
|
|
4390
|
+
attr(li, "aria-label", li_aria_label_value);
|
|
4391
|
+
}
|
|
4376
4392
|
|
|
4377
4393
|
if (dirty[0] &
|
|
4378
4394
|
/*options*/
|
|
4379
|
-
|
|
4395
|
+
1024 && li_data_testid_value !== (li_data_testid_value = `${
|
|
4380
4396
|
/*option*/
|
|
4381
|
-
ctx[
|
|
4397
|
+
ctx[36].value}-dropdown-item`)) {
|
|
4382
4398
|
attr(li, "data-testid", li_data_testid_value);
|
|
4383
4399
|
}
|
|
4384
4400
|
|
|
4385
4401
|
if (dirty[0] &
|
|
4386
4402
|
/*options*/
|
|
4387
|
-
|
|
4403
|
+
1024 && li_data_index_value !== (li_data_index_value =
|
|
4388
4404
|
/*index*/
|
|
4389
|
-
ctx[
|
|
4405
|
+
ctx[38])) {
|
|
4390
4406
|
attr(li, "data-index", li_data_index_value);
|
|
4391
4407
|
}
|
|
4392
4408
|
|
|
4393
4409
|
if (dirty[0] &
|
|
4394
4410
|
/*options, highlightedIndex*/
|
|
4395
|
-
|
|
4411
|
+
9216) {
|
|
4396
4412
|
toggle_class(li, "goa-dropdown-option--tabbed",
|
|
4397
4413
|
/*index*/
|
|
4398
|
-
ctx[
|
|
4414
|
+
ctx[38] ===
|
|
4399
4415
|
/*highlightedIndex*/
|
|
4400
|
-
ctx[
|
|
4416
|
+
ctx[13]);
|
|
4401
4417
|
}
|
|
4402
4418
|
|
|
4403
4419
|
if (dirty[0] &
|
|
4404
4420
|
/*_values, options*/
|
|
4405
|
-
|
|
4421
|
+
1536) {
|
|
4406
4422
|
toggle_class(li, "goa-dropdown-option--selected",
|
|
4407
4423
|
/*_values*/
|
|
4408
|
-
ctx[
|
|
4424
|
+
ctx[9].includes(
|
|
4409
4425
|
/*option*/
|
|
4410
|
-
ctx[
|
|
4426
|
+
ctx[36].value));
|
|
4411
4427
|
}
|
|
4412
4428
|
},
|
|
4413
4429
|
|
|
@@ -4426,6 +4442,7 @@ function create_fragment$q(ctx) {
|
|
|
4426
4442
|
let div0;
|
|
4427
4443
|
let goa_input;
|
|
4428
4444
|
let goa_input_id_value;
|
|
4445
|
+
let goa_input_aria_label_value;
|
|
4429
4446
|
let div0_data_testid_value;
|
|
4430
4447
|
let t1;
|
|
4431
4448
|
let ul;
|
|
@@ -4439,14 +4456,14 @@ function create_fragment$q(ctx) {
|
|
|
4439
4456
|
let dispose;
|
|
4440
4457
|
let if_block =
|
|
4441
4458
|
/*isMenuVisible*/
|
|
4442
|
-
ctx[
|
|
4459
|
+
ctx[12] && create_if_block$d(ctx);
|
|
4443
4460
|
let each_value =
|
|
4444
4461
|
/*options*/
|
|
4445
|
-
ctx[
|
|
4462
|
+
ctx[10];
|
|
4446
4463
|
|
|
4447
4464
|
const get_key = ctx =>
|
|
4448
4465
|
/*option*/
|
|
4449
|
-
ctx[
|
|
4466
|
+
ctx[36].value;
|
|
4450
4467
|
|
|
4451
4468
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
4452
4469
|
let child_ctx = get_each_context$4(ctx, each_value, i);
|
|
@@ -4473,27 +4490,31 @@ function create_fragment$q(ctx) {
|
|
|
4473
4490
|
this.c = noop;
|
|
4474
4491
|
set_custom_element_data(goa_input, "error",
|
|
4475
4492
|
/*error*/
|
|
4476
|
-
ctx[
|
|
4493
|
+
ctx[8]);
|
|
4477
4494
|
set_custom_element_data(goa_input, "disabled",
|
|
4478
4495
|
/*disabled*/
|
|
4479
|
-
ctx[
|
|
4496
|
+
ctx[7]);
|
|
4480
4497
|
set_custom_element_data(goa_input, "leadingicon",
|
|
4481
4498
|
/*leadingicon*/
|
|
4482
|
-
ctx[
|
|
4499
|
+
ctx[2]);
|
|
4483
4500
|
set_custom_element_data(goa_input, "placeholder",
|
|
4484
4501
|
/*placeholder*/
|
|
4485
|
-
ctx[
|
|
4502
|
+
ctx[4]);
|
|
4486
4503
|
set_custom_element_data(goa_input, "width", "100%");
|
|
4487
4504
|
set_custom_element_data(goa_input, "id", goa_input_id_value = `${
|
|
4488
4505
|
/*name*/
|
|
4489
4506
|
ctx[0]}-dropdown-input`);
|
|
4490
|
-
set_custom_element_data(goa_input, "
|
|
4507
|
+
set_custom_element_data(goa_input, "aria-label", goa_input_aria_label_value =
|
|
4508
|
+
/*arialabel*/
|
|
4509
|
+
ctx[1] ||
|
|
4510
|
+
/*name*/
|
|
4511
|
+
ctx[0]);
|
|
4491
4512
|
set_custom_element_data(goa_input, "readonly", "");
|
|
4492
4513
|
set_custom_element_data(goa_input, "trailingicon", "chevron-down");
|
|
4493
4514
|
set_custom_element_data(goa_input, "type", "text");
|
|
4494
4515
|
set_custom_element_data(goa_input, "value",
|
|
4495
4516
|
/*selectedLabel*/
|
|
4496
|
-
ctx[
|
|
4517
|
+
ctx[11]);
|
|
4497
4518
|
attr(div0, "data-testid", div0_data_testid_value = `${
|
|
4498
4519
|
/*name*/
|
|
4499
4520
|
ctx[0]}-dropdown`);
|
|
@@ -4502,19 +4523,19 @@ function create_fragment$q(ctx) {
|
|
|
4502
4523
|
attr(ul, "class", "goa-dropdown-list");
|
|
4503
4524
|
attr(ul, "style", ul_style_value = `overflow-y: auto; max-height: ${
|
|
4504
4525
|
/*maxheight*/
|
|
4505
|
-
ctx[
|
|
4526
|
+
ctx[3]}`);
|
|
4506
4527
|
toggle_class(ul, "dropdown-active",
|
|
4507
4528
|
/*isMenuVisible*/
|
|
4508
|
-
ctx[
|
|
4529
|
+
ctx[12]);
|
|
4509
4530
|
attr(div1, "data-testid",
|
|
4510
4531
|
/*testid*/
|
|
4511
|
-
ctx[
|
|
4532
|
+
ctx[5]);
|
|
4512
4533
|
attr(div1, "class", "goa-dropdown-box");
|
|
4513
4534
|
attr(div1, "style", div1_style_value = `--width: ${
|
|
4514
4535
|
/*width*/
|
|
4515
|
-
ctx[
|
|
4536
|
+
ctx[6] ||
|
|
4516
4537
|
/*computedWidth*/
|
|
4517
|
-
ctx[
|
|
4538
|
+
ctx[14]}`);
|
|
4518
4539
|
},
|
|
4519
4540
|
|
|
4520
4541
|
m(target, anchor) {
|
|
@@ -4534,15 +4555,15 @@ function create_fragment$q(ctx) {
|
|
|
4534
4555
|
/*ul_binding*/
|
|
4535
4556
|
|
|
4536
4557
|
|
|
4537
|
-
ctx[
|
|
4558
|
+
ctx[23](ul);
|
|
4538
4559
|
/*div1_binding*/
|
|
4539
4560
|
|
|
4540
|
-
ctx[
|
|
4561
|
+
ctx[24](div1);
|
|
4541
4562
|
|
|
4542
4563
|
if (!mounted) {
|
|
4543
4564
|
dispose = listen(goa_input, "click",
|
|
4544
4565
|
/*showMenu*/
|
|
4545
|
-
ctx[
|
|
4566
|
+
ctx[17]);
|
|
4546
4567
|
mounted = true;
|
|
4547
4568
|
}
|
|
4548
4569
|
},
|
|
@@ -4550,7 +4571,7 @@ function create_fragment$q(ctx) {
|
|
|
4550
4571
|
p(ctx, dirty) {
|
|
4551
4572
|
if (
|
|
4552
4573
|
/*isMenuVisible*/
|
|
4553
|
-
ctx[
|
|
4574
|
+
ctx[12]) {
|
|
4554
4575
|
if (if_block) {
|
|
4555
4576
|
if_block.p(ctx, dirty);
|
|
4556
4577
|
} else {
|
|
@@ -4565,34 +4586,34 @@ function create_fragment$q(ctx) {
|
|
|
4565
4586
|
|
|
4566
4587
|
if (dirty[0] &
|
|
4567
4588
|
/*error*/
|
|
4568
|
-
|
|
4589
|
+
256) {
|
|
4569
4590
|
set_custom_element_data(goa_input, "error",
|
|
4570
4591
|
/*error*/
|
|
4571
|
-
ctx[
|
|
4592
|
+
ctx[8]);
|
|
4572
4593
|
}
|
|
4573
4594
|
|
|
4574
4595
|
if (dirty[0] &
|
|
4575
4596
|
/*disabled*/
|
|
4576
|
-
|
|
4597
|
+
128) {
|
|
4577
4598
|
set_custom_element_data(goa_input, "disabled",
|
|
4578
4599
|
/*disabled*/
|
|
4579
|
-
ctx[
|
|
4600
|
+
ctx[7]);
|
|
4580
4601
|
}
|
|
4581
4602
|
|
|
4582
4603
|
if (dirty[0] &
|
|
4583
4604
|
/*leadingicon*/
|
|
4584
|
-
|
|
4605
|
+
4) {
|
|
4585
4606
|
set_custom_element_data(goa_input, "leadingicon",
|
|
4586
4607
|
/*leadingicon*/
|
|
4587
|
-
ctx[
|
|
4608
|
+
ctx[2]);
|
|
4588
4609
|
}
|
|
4589
4610
|
|
|
4590
4611
|
if (dirty[0] &
|
|
4591
4612
|
/*placeholder*/
|
|
4592
|
-
|
|
4613
|
+
16) {
|
|
4593
4614
|
set_custom_element_data(goa_input, "placeholder",
|
|
4594
4615
|
/*placeholder*/
|
|
4595
|
-
ctx[
|
|
4616
|
+
ctx[4]);
|
|
4596
4617
|
}
|
|
4597
4618
|
|
|
4598
4619
|
if (dirty[0] &
|
|
@@ -4603,12 +4624,22 @@ function create_fragment$q(ctx) {
|
|
|
4603
4624
|
set_custom_element_data(goa_input, "id", goa_input_id_value);
|
|
4604
4625
|
}
|
|
4605
4626
|
|
|
4627
|
+
if (dirty[0] &
|
|
4628
|
+
/*arialabel, name*/
|
|
4629
|
+
3 && goa_input_aria_label_value !== (goa_input_aria_label_value =
|
|
4630
|
+
/*arialabel*/
|
|
4631
|
+
ctx[1] ||
|
|
4632
|
+
/*name*/
|
|
4633
|
+
ctx[0])) {
|
|
4634
|
+
set_custom_element_data(goa_input, "aria-label", goa_input_aria_label_value);
|
|
4635
|
+
}
|
|
4636
|
+
|
|
4606
4637
|
if (dirty[0] &
|
|
4607
4638
|
/*selectedLabel*/
|
|
4608
|
-
|
|
4639
|
+
2048) {
|
|
4609
4640
|
set_custom_element_data(goa_input, "value",
|
|
4610
4641
|
/*selectedLabel*/
|
|
4611
|
-
ctx[
|
|
4642
|
+
ctx[11]);
|
|
4612
4643
|
}
|
|
4613
4644
|
|
|
4614
4645
|
if (dirty[0] &
|
|
@@ -4621,44 +4652,44 @@ function create_fragment$q(ctx) {
|
|
|
4621
4652
|
|
|
4622
4653
|
if (dirty[0] &
|
|
4623
4654
|
/*options, highlightedIndex, _values, onSelect*/
|
|
4624
|
-
|
|
4655
|
+
534016) {
|
|
4625
4656
|
each_value =
|
|
4626
4657
|
/*options*/
|
|
4627
|
-
ctx[
|
|
4658
|
+
ctx[10];
|
|
4628
4659
|
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, ul, destroy_block, create_each_block$4, null, get_each_context$4);
|
|
4629
4660
|
}
|
|
4630
4661
|
|
|
4631
4662
|
if (dirty[0] &
|
|
4632
4663
|
/*maxheight*/
|
|
4633
|
-
|
|
4664
|
+
8 && ul_style_value !== (ul_style_value = `overflow-y: auto; max-height: ${
|
|
4634
4665
|
/*maxheight*/
|
|
4635
|
-
ctx[
|
|
4666
|
+
ctx[3]}`)) {
|
|
4636
4667
|
attr(ul, "style", ul_style_value);
|
|
4637
4668
|
}
|
|
4638
4669
|
|
|
4639
4670
|
if (dirty[0] &
|
|
4640
4671
|
/*isMenuVisible*/
|
|
4641
|
-
|
|
4672
|
+
4096) {
|
|
4642
4673
|
toggle_class(ul, "dropdown-active",
|
|
4643
4674
|
/*isMenuVisible*/
|
|
4644
|
-
ctx[
|
|
4675
|
+
ctx[12]);
|
|
4645
4676
|
}
|
|
4646
4677
|
|
|
4647
4678
|
if (dirty[0] &
|
|
4648
4679
|
/*testid*/
|
|
4649
|
-
|
|
4680
|
+
32) {
|
|
4650
4681
|
attr(div1, "data-testid",
|
|
4651
4682
|
/*testid*/
|
|
4652
|
-
ctx[
|
|
4683
|
+
ctx[5]);
|
|
4653
4684
|
}
|
|
4654
4685
|
|
|
4655
4686
|
if (dirty[0] &
|
|
4656
4687
|
/*width, computedWidth*/
|
|
4657
|
-
|
|
4688
|
+
16448 && div1_style_value !== (div1_style_value = `--width: ${
|
|
4658
4689
|
/*width*/
|
|
4659
|
-
ctx[
|
|
4690
|
+
ctx[6] ||
|
|
4660
4691
|
/*computedWidth*/
|
|
4661
|
-
ctx[
|
|
4692
|
+
ctx[14]}`)) {
|
|
4662
4693
|
attr(div1, "style", div1_style_value);
|
|
4663
4694
|
}
|
|
4664
4695
|
},
|
|
@@ -4676,10 +4707,10 @@ function create_fragment$q(ctx) {
|
|
|
4676
4707
|
/*ul_binding*/
|
|
4677
4708
|
|
|
4678
4709
|
|
|
4679
|
-
ctx[
|
|
4710
|
+
ctx[23](null);
|
|
4680
4711
|
/*div1_binding*/
|
|
4681
4712
|
|
|
4682
|
-
ctx[
|
|
4713
|
+
ctx[24](null);
|
|
4683
4714
|
mounted = false;
|
|
4684
4715
|
dispose();
|
|
4685
4716
|
}
|
|
@@ -4697,6 +4728,9 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
4697
4728
|
let {
|
|
4698
4729
|
name
|
|
4699
4730
|
} = $$props;
|
|
4731
|
+
let {
|
|
4732
|
+
arialabel = ""
|
|
4733
|
+
} = $$props;
|
|
4700
4734
|
let {
|
|
4701
4735
|
value = ""
|
|
4702
4736
|
} = $$props;
|
|
@@ -4755,7 +4789,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
4755
4789
|
|
|
4756
4790
|
const rawValues = typeof rawValue === "object" ? rawValue : [rawValue]; // convert all values to strings to avoid later type comparison issues
|
|
4757
4791
|
|
|
4758
|
-
$$invalidate(
|
|
4792
|
+
$$invalidate(9, _values = rawValues.map(val => `${val}`));
|
|
4759
4793
|
bindContext();
|
|
4760
4794
|
});
|
|
4761
4795
|
onDestroy(() => {
|
|
@@ -4774,17 +4808,17 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
4774
4808
|
|
|
4775
4809
|
const selected = _values.includes(_data.value);
|
|
4776
4810
|
|
|
4777
|
-
$$invalidate(
|
|
4811
|
+
$$invalidate(10, options = [...options, Object.assign(Object.assign({}, _data), {
|
|
4778
4812
|
selected
|
|
4779
4813
|
})]);
|
|
4780
4814
|
|
|
4781
4815
|
if (selected) {
|
|
4782
|
-
$$invalidate(
|
|
4816
|
+
$$invalidate(11, selectedLabel = _data.label);
|
|
4783
4817
|
}
|
|
4784
4818
|
|
|
4785
4819
|
if (!width && maxLetterCount < _data.label.length) {
|
|
4786
4820
|
maxLetterCount = _data.label.length;
|
|
4787
|
-
$$invalidate(
|
|
4821
|
+
$$invalidate(14, computedWidth = `${Math.max(20, maxLetterCount + 12)}ch`);
|
|
4788
4822
|
}
|
|
4789
4823
|
|
|
4790
4824
|
setHighlightedIndexToSelected();
|
|
@@ -4799,7 +4833,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
4799
4833
|
return;
|
|
4800
4834
|
}
|
|
4801
4835
|
|
|
4802
|
-
$$invalidate(
|
|
4836
|
+
$$invalidate(12, isMenuVisible = true);
|
|
4803
4837
|
await tick(); // hide menu on blur
|
|
4804
4838
|
|
|
4805
4839
|
menuEl.addEventListener("blur", closeMenu);
|
|
@@ -4814,17 +4848,17 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
4814
4848
|
menuEl.removeEventListener("keydown", onMenuKeyDown);
|
|
4815
4849
|
menuEl.removeEventListener("mouseover", onHighlight);
|
|
4816
4850
|
setHighlightedIndexToSelected();
|
|
4817
|
-
$$invalidate(
|
|
4851
|
+
$$invalidate(12, isMenuVisible = false);
|
|
4818
4852
|
}
|
|
4819
4853
|
|
|
4820
4854
|
function setHighlightedIndexToSelected() {
|
|
4821
|
-
$$invalidate(
|
|
4855
|
+
$$invalidate(13, highlightedIndex = options.findIndex(option => _values.includes(option.value)));
|
|
4822
4856
|
} // Event handlers
|
|
4823
4857
|
|
|
4824
4858
|
|
|
4825
4859
|
function onSelect(val, label) {
|
|
4826
4860
|
if (_disabled) return;
|
|
4827
|
-
$$invalidate(
|
|
4861
|
+
$$invalidate(11, selectedLabel = label);
|
|
4828
4862
|
|
|
4829
4863
|
if (_multiselect) {
|
|
4830
4864
|
_values.push(val);
|
|
@@ -4837,7 +4871,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
4837
4871
|
}
|
|
4838
4872
|
}));
|
|
4839
4873
|
} else {
|
|
4840
|
-
$$invalidate(
|
|
4874
|
+
$$invalidate(9, _values = [val]);
|
|
4841
4875
|
el.dispatchEvent(new CustomEvent("_change", {
|
|
4842
4876
|
composed: true,
|
|
4843
4877
|
detail: {
|
|
@@ -4873,16 +4907,16 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
4873
4907
|
switch (e.key) {
|
|
4874
4908
|
case "ArrowUp":
|
|
4875
4909
|
if (highlightedIndex === 0) {
|
|
4876
|
-
$$invalidate(
|
|
4910
|
+
$$invalidate(13, highlightedIndex = options.length - 1);
|
|
4877
4911
|
} else {
|
|
4878
|
-
$$invalidate(
|
|
4912
|
+
$$invalidate(13, highlightedIndex--, highlightedIndex);
|
|
4879
4913
|
}
|
|
4880
4914
|
|
|
4881
4915
|
e.preventDefault();
|
|
4882
4916
|
break;
|
|
4883
4917
|
|
|
4884
4918
|
case "ArrowDown":
|
|
4885
|
-
$$invalidate(
|
|
4919
|
+
$$invalidate(13, highlightedIndex = (highlightedIndex + 1) % options.length);
|
|
4886
4920
|
e.preventDefault();
|
|
4887
4921
|
break;
|
|
4888
4922
|
|
|
@@ -4900,7 +4934,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
4900
4934
|
}
|
|
4901
4935
|
|
|
4902
4936
|
function onHighlight(e) {
|
|
4903
|
-
$$invalidate(
|
|
4937
|
+
$$invalidate(13, highlightedIndex = Number(e.target.dataset.index));
|
|
4904
4938
|
}
|
|
4905
4939
|
|
|
4906
4940
|
const click_handler = option => onSelect(option.value, option.label);
|
|
@@ -4908,45 +4942,46 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
4908
4942
|
function ul_binding($$value) {
|
|
4909
4943
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
4910
4944
|
menuEl = $$value;
|
|
4911
|
-
$$invalidate(
|
|
4945
|
+
$$invalidate(16, menuEl);
|
|
4912
4946
|
});
|
|
4913
4947
|
}
|
|
4914
4948
|
|
|
4915
4949
|
function div1_binding($$value) {
|
|
4916
4950
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
4917
4951
|
el = $$value;
|
|
4918
|
-
$$invalidate(
|
|
4952
|
+
$$invalidate(15, el);
|
|
4919
4953
|
});
|
|
4920
4954
|
}
|
|
4921
4955
|
|
|
4922
4956
|
$$self.$$set = $$props => {
|
|
4923
4957
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
|
4924
|
-
if ('
|
|
4925
|
-
if ('
|
|
4926
|
-
if ('
|
|
4927
|
-
if ('
|
|
4928
|
-
if ('
|
|
4929
|
-
if ('
|
|
4930
|
-
if ('
|
|
4931
|
-
if ('
|
|
4932
|
-
if ('
|
|
4958
|
+
if ('arialabel' in $$props) $$invalidate(1, arialabel = $$props.arialabel);
|
|
4959
|
+
if ('value' in $$props) $$invalidate(20, value = $$props.value);
|
|
4960
|
+
if ('leadingicon' in $$props) $$invalidate(2, leadingicon = $$props.leadingicon);
|
|
4961
|
+
if ('maxheight' in $$props) $$invalidate(3, maxheight = $$props.maxheight);
|
|
4962
|
+
if ('placeholder' in $$props) $$invalidate(4, placeholder = $$props.placeholder);
|
|
4963
|
+
if ('testid' in $$props) $$invalidate(5, testid = $$props.testid);
|
|
4964
|
+
if ('width' in $$props) $$invalidate(6, width = $$props.width);
|
|
4965
|
+
if ('disabled' in $$props) $$invalidate(7, disabled = $$props.disabled);
|
|
4966
|
+
if ('error' in $$props) $$invalidate(8, error = $$props.error);
|
|
4967
|
+
if ('multiselect' in $$props) $$invalidate(21, multiselect = $$props.multiselect);
|
|
4933
4968
|
};
|
|
4934
4969
|
|
|
4935
4970
|
$$self.$$.update = () => {
|
|
4936
4971
|
if ($$self.$$.dirty[0] &
|
|
4937
4972
|
/*disabled*/
|
|
4938
|
-
|
|
4973
|
+
128) {
|
|
4939
4974
|
_disabled = toBoolean(disabled);
|
|
4940
4975
|
}
|
|
4941
4976
|
|
|
4942
4977
|
if ($$self.$$.dirty[0] &
|
|
4943
4978
|
/*multiselect*/
|
|
4944
|
-
|
|
4979
|
+
2097152) {
|
|
4945
4980
|
_multiselect = toBoolean(multiselect);
|
|
4946
4981
|
}
|
|
4947
4982
|
};
|
|
4948
4983
|
|
|
4949
|
-
return [name, leadingicon, maxheight, placeholder, testid, width, disabled, error, _values, options, selectedLabel, isMenuVisible, highlightedIndex, computedWidth, el, menuEl, showMenu, closeMenu, onSelect, value, multiselect, click_handler, ul_binding, div1_binding];
|
|
4984
|
+
return [name, arialabel, leadingicon, maxheight, placeholder, testid, width, disabled, error, _values, options, selectedLabel, isMenuVisible, highlightedIndex, computedWidth, el, menuEl, showMenu, closeMenu, onSelect, value, multiselect, click_handler, ul_binding, div1_binding];
|
|
4950
4985
|
}
|
|
4951
4986
|
|
|
4952
4987
|
class Dropdown extends SvelteElement {
|
|
@@ -4959,15 +4994,16 @@ class Dropdown extends SvelteElement {
|
|
|
4959
4994
|
customElement: true
|
|
4960
4995
|
}, instance$o, create_fragment$q, safe_not_equal, {
|
|
4961
4996
|
name: 0,
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4997
|
+
arialabel: 1,
|
|
4998
|
+
value: 20,
|
|
4999
|
+
leadingicon: 2,
|
|
5000
|
+
maxheight: 3,
|
|
5001
|
+
placeholder: 4,
|
|
5002
|
+
testid: 5,
|
|
5003
|
+
width: 6,
|
|
5004
|
+
disabled: 7,
|
|
5005
|
+
error: 8,
|
|
5006
|
+
multiselect: 21
|
|
4971
5007
|
}, null, [-1, -1]);
|
|
4972
5008
|
|
|
4973
5009
|
if (options) {
|
|
@@ -4983,7 +5019,7 @@ class Dropdown extends SvelteElement {
|
|
|
4983
5019
|
}
|
|
4984
5020
|
|
|
4985
5021
|
static get observedAttributes() {
|
|
4986
|
-
return ["name", "value", "leadingicon", "maxheight", "placeholder", "testid", "width", "disabled", "error", "multiselect"];
|
|
5022
|
+
return ["name", "arialabel", "value", "leadingicon", "maxheight", "placeholder", "testid", "width", "disabled", "error", "multiselect"];
|
|
4987
5023
|
}
|
|
4988
5024
|
|
|
4989
5025
|
get name() {
|
|
@@ -4997,8 +5033,19 @@ class Dropdown extends SvelteElement {
|
|
|
4997
5033
|
flush();
|
|
4998
5034
|
}
|
|
4999
5035
|
|
|
5036
|
+
get arialabel() {
|
|
5037
|
+
return this.$$.ctx[1];
|
|
5038
|
+
}
|
|
5039
|
+
|
|
5040
|
+
set arialabel(arialabel) {
|
|
5041
|
+
this.$$set({
|
|
5042
|
+
arialabel
|
|
5043
|
+
});
|
|
5044
|
+
flush();
|
|
5045
|
+
}
|
|
5046
|
+
|
|
5000
5047
|
get value() {
|
|
5001
|
-
return this.$$.ctx[
|
|
5048
|
+
return this.$$.ctx[20];
|
|
5002
5049
|
}
|
|
5003
5050
|
|
|
5004
5051
|
set value(value) {
|
|
@@ -5009,7 +5056,7 @@ class Dropdown extends SvelteElement {
|
|
|
5009
5056
|
}
|
|
5010
5057
|
|
|
5011
5058
|
get leadingicon() {
|
|
5012
|
-
return this.$$.ctx[
|
|
5059
|
+
return this.$$.ctx[2];
|
|
5013
5060
|
}
|
|
5014
5061
|
|
|
5015
5062
|
set leadingicon(leadingicon) {
|
|
@@ -5020,7 +5067,7 @@ class Dropdown extends SvelteElement {
|
|
|
5020
5067
|
}
|
|
5021
5068
|
|
|
5022
5069
|
get maxheight() {
|
|
5023
|
-
return this.$$.ctx[
|
|
5070
|
+
return this.$$.ctx[3];
|
|
5024
5071
|
}
|
|
5025
5072
|
|
|
5026
5073
|
set maxheight(maxheight) {
|
|
@@ -5031,7 +5078,7 @@ class Dropdown extends SvelteElement {
|
|
|
5031
5078
|
}
|
|
5032
5079
|
|
|
5033
5080
|
get placeholder() {
|
|
5034
|
-
return this.$$.ctx[
|
|
5081
|
+
return this.$$.ctx[4];
|
|
5035
5082
|
}
|
|
5036
5083
|
|
|
5037
5084
|
set placeholder(placeholder) {
|
|
@@ -5042,7 +5089,7 @@ class Dropdown extends SvelteElement {
|
|
|
5042
5089
|
}
|
|
5043
5090
|
|
|
5044
5091
|
get testid() {
|
|
5045
|
-
return this.$$.ctx[
|
|
5092
|
+
return this.$$.ctx[5];
|
|
5046
5093
|
}
|
|
5047
5094
|
|
|
5048
5095
|
set testid(testid) {
|
|
@@ -5053,7 +5100,7 @@ class Dropdown extends SvelteElement {
|
|
|
5053
5100
|
}
|
|
5054
5101
|
|
|
5055
5102
|
get width() {
|
|
5056
|
-
return this.$$.ctx[
|
|
5103
|
+
return this.$$.ctx[6];
|
|
5057
5104
|
}
|
|
5058
5105
|
|
|
5059
5106
|
set width(width) {
|
|
@@ -5064,7 +5111,7 @@ class Dropdown extends SvelteElement {
|
|
|
5064
5111
|
}
|
|
5065
5112
|
|
|
5066
5113
|
get disabled() {
|
|
5067
|
-
return this.$$.ctx[
|
|
5114
|
+
return this.$$.ctx[7];
|
|
5068
5115
|
}
|
|
5069
5116
|
|
|
5070
5117
|
set disabled(disabled) {
|
|
@@ -5075,7 +5122,7 @@ class Dropdown extends SvelteElement {
|
|
|
5075
5122
|
}
|
|
5076
5123
|
|
|
5077
5124
|
get error() {
|
|
5078
|
-
return this.$$.ctx[
|
|
5125
|
+
return this.$$.ctx[8];
|
|
5079
5126
|
}
|
|
5080
5127
|
|
|
5081
5128
|
set error(error) {
|
|
@@ -5086,7 +5133,7 @@ class Dropdown extends SvelteElement {
|
|
|
5086
5133
|
}
|
|
5087
5134
|
|
|
5088
5135
|
get multiselect() {
|
|
5089
|
-
return this.$$.ctx[
|
|
5136
|
+
return this.$$.ctx[21];
|
|
5090
5137
|
}
|
|
5091
5138
|
|
|
5092
5139
|
set multiselect(multiselect) {
|
|
@@ -5325,7 +5372,7 @@ customElements.define("goa-flex-row", FlexRow);
|
|
|
5325
5372
|
/* libs/web-components/src/components/form-item/FormItem.svelte generated by Svelte v3.49.0 */
|
|
5326
5373
|
|
|
5327
5374
|
function create_if_block_2$6(ctx) {
|
|
5328
|
-
let
|
|
5375
|
+
let div;
|
|
5329
5376
|
let t0;
|
|
5330
5377
|
let t1;
|
|
5331
5378
|
let if_block =
|
|
@@ -5333,20 +5380,20 @@ function create_if_block_2$6(ctx) {
|
|
|
5333
5380
|
ctx[3] && create_if_block_3$4();
|
|
5334
5381
|
return {
|
|
5335
5382
|
c() {
|
|
5336
|
-
|
|
5383
|
+
div = element("div");
|
|
5337
5384
|
t0 = text(
|
|
5338
5385
|
/*label*/
|
|
5339
5386
|
ctx[0]);
|
|
5340
5387
|
t1 = space();
|
|
5341
5388
|
if (if_block) if_block.c();
|
|
5342
|
-
attr(
|
|
5389
|
+
attr(div, "class", "label");
|
|
5343
5390
|
},
|
|
5344
5391
|
|
|
5345
5392
|
m(target, anchor) {
|
|
5346
|
-
insert(target,
|
|
5347
|
-
append(
|
|
5348
|
-
append(
|
|
5349
|
-
if (if_block) if_block.m(
|
|
5393
|
+
insert(target, div, anchor);
|
|
5394
|
+
append(div, t0);
|
|
5395
|
+
append(div, t1);
|
|
5396
|
+
if (if_block) if_block.m(div, null);
|
|
5350
5397
|
},
|
|
5351
5398
|
|
|
5352
5399
|
p(ctx, dirty) {
|
|
@@ -5362,7 +5409,7 @@ function create_if_block_2$6(ctx) {
|
|
|
5362
5409
|
if (if_block) ;else {
|
|
5363
5410
|
if_block = create_if_block_3$4();
|
|
5364
5411
|
if_block.c();
|
|
5365
|
-
if_block.m(
|
|
5412
|
+
if_block.m(div, null);
|
|
5366
5413
|
}
|
|
5367
5414
|
} else if (if_block) {
|
|
5368
5415
|
if_block.d(1);
|
|
@@ -5371,7 +5418,7 @@ function create_if_block_2$6(ctx) {
|
|
|
5371
5418
|
},
|
|
5372
5419
|
|
|
5373
5420
|
d(detaching) {
|
|
5374
|
-
if (detaching) detach(
|
|
5421
|
+
if (detaching) detach(div);
|
|
5375
5422
|
if (if_block) if_block.d();
|
|
5376
5423
|
}
|
|
5377
5424
|
|
|
@@ -5578,7 +5625,7 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
5578
5625
|
error = ""
|
|
5579
5626
|
} = $$props;
|
|
5580
5627
|
let {
|
|
5581
|
-
optional
|
|
5628
|
+
optional = ""
|
|
5582
5629
|
} = $$props;
|
|
5583
5630
|
|
|
5584
5631
|
$$self.$$set = $$props => {
|
|
@@ -5602,7 +5649,7 @@ function instance$l($$self, $$props, $$invalidate) {
|
|
|
5602
5649
|
class FormItem extends SvelteElement {
|
|
5603
5650
|
constructor(options) {
|
|
5604
5651
|
super();
|
|
5605
|
-
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;overflow-x:hidden;white-space:nowrap;text-overflow:ellipsis}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)}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
|
|
5652
|
+
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;overflow-x:hidden;white-space:nowrap;text-overflow:ellipsis}.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)}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
|
|
5606
5653
|
init(this, {
|
|
5607
5654
|
target: this.shadowRoot,
|
|
5608
5655
|
props: attribute_to_object(this.attributes),
|
|
@@ -6412,7 +6459,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
6412
6459
|
class IconButton extends SvelteElement {
|
|
6413
6460
|
constructor(options) {
|
|
6414
6461
|
super();
|
|
6415
|
-
this.shadowRoot.innerHTML = `<style>:host{display:flex;align-items:center;box-sizing:border-box;font-family:var(--font-family)}.goa-icon-button,.goa-icon-button *{box-sizing:border-box}.goa-icon-button{display:inline-flex;align-items:center;background:transparent;cursor:pointer;padding:0;border:none}.goa-icon-button--color{border-radius:0.5rem;padding:calc(var(--size) / 4)}.goa-icon-button--color{border-radius:0.5rem;color:var(--goa-color-interactive);fill:var(--goa-color-interactive);cursor:pointer;transition:background-color 100ms ease-in, transform 100ms ease-in}.goa-icon-button--color:active,.goa-icon-button--nocolor:active{transform:scale(0.9);border:none}.goa-icon-button--color:hover{background-color:var(--goa-color-primary-light)}.goa-icon-button--color.goa-icon-button--inverted:hover{background-color:var(--goa-color-primary-dark)}.goa-icon-button:disabled{color:var(--color-gray-200);fill:var(--color-gray-200);transform:none;cursor:default}.goa-icon-button:disabled:hover{background-color:transparent}</style>`;
|
|
6462
|
+
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--font-family)}.goa-icon-button,.goa-icon-button *{box-sizing:border-box}.goa-icon-button{display:inline-flex;align-items:center;background:transparent;cursor:pointer;padding:0;border:none}.goa-icon-button--color{border-radius:0.5rem;padding:calc(var(--size) / 4)}.goa-icon-button--color{border-radius:0.5rem;color:var(--goa-color-interactive);fill:var(--goa-color-interactive);cursor:pointer;transition:background-color 100ms ease-in, transform 100ms ease-in}.goa-icon-button--color:active,.goa-icon-button--nocolor:active{transform:scale(0.9);border:none}.goa-icon-button--color:hover{background-color:var(--goa-color-primary-light)}.goa-icon-button--color.goa-icon-button--inverted:hover{background-color:var(--goa-color-primary-dark)}.goa-icon-button:disabled{color:var(--color-gray-200);fill:var(--color-gray-200);transform:none;cursor:default}.goa-icon-button:disabled:hover{background-color:transparent}</style>`;
|
|
6416
6463
|
init(this, {
|
|
6417
6464
|
target: this.shadowRoot,
|
|
6418
6465
|
props: attribute_to_object(this.attributes),
|
|
@@ -6568,7 +6615,7 @@ function create_if_block_5(ctx) {
|
|
|
6568
6615
|
}
|
|
6569
6616
|
|
|
6570
6617
|
};
|
|
6571
|
-
} // (
|
|
6618
|
+
} // (96:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
6572
6619
|
|
|
6573
6620
|
|
|
6574
6621
|
function create_if_block_4$1(ctx) {
|
|
@@ -6603,7 +6650,7 @@ function create_if_block_4$1(ctx) {
|
|
|
6603
6650
|
}
|
|
6604
6651
|
|
|
6605
6652
|
};
|
|
6606
|
-
} // (
|
|
6653
|
+
} // (106:4) {#if trailingicon && handlesTrailingIconClick}
|
|
6607
6654
|
|
|
6608
6655
|
|
|
6609
6656
|
function create_if_block_3$3(ctx) {
|
|
@@ -6616,7 +6663,7 @@ function create_if_block_3$3(ctx) {
|
|
|
6616
6663
|
set_custom_element_data(goa_icon_button, "class", "goa-input-trailing-icon");
|
|
6617
6664
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
6618
6665
|
/*isDisabled*/
|
|
6619
|
-
ctx[
|
|
6666
|
+
ctx[13]);
|
|
6620
6667
|
set_custom_element_data(goa_icon_button, "variant", "nocolor");
|
|
6621
6668
|
set_custom_element_data(goa_icon_button, "size", "medium");
|
|
6622
6669
|
set_custom_element_data(goa_icon_button, "type",
|
|
@@ -6637,10 +6684,10 @@ function create_if_block_3$3(ctx) {
|
|
|
6637
6684
|
p(ctx, dirty) {
|
|
6638
6685
|
if (dirty &
|
|
6639
6686
|
/*isDisabled*/
|
|
6640
|
-
|
|
6687
|
+
8192) {
|
|
6641
6688
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
6642
6689
|
/*isDisabled*/
|
|
6643
|
-
ctx[
|
|
6690
|
+
ctx[13]);
|
|
6644
6691
|
}
|
|
6645
6692
|
|
|
6646
6693
|
if (dirty &
|
|
@@ -6659,7 +6706,7 @@ function create_if_block_3$3(ctx) {
|
|
|
6659
6706
|
}
|
|
6660
6707
|
|
|
6661
6708
|
};
|
|
6662
|
-
} // (
|
|
6709
|
+
} // (120:2) {#if showCounter}
|
|
6663
6710
|
|
|
6664
6711
|
|
|
6665
6712
|
function create_if_block$a(ctx) {
|
|
@@ -6668,7 +6715,7 @@ function create_if_block$a(ctx) {
|
|
|
6668
6715
|
function select_block_type(ctx, dirty) {
|
|
6669
6716
|
if (
|
|
6670
6717
|
/*maxcharcount*/
|
|
6671
|
-
ctx[
|
|
6718
|
+
ctx[10] > 0) return create_if_block_1$6;
|
|
6672
6719
|
if (
|
|
6673
6720
|
/*value*/
|
|
6674
6721
|
ctx[0].length > 0) return create_if_block_2$5;
|
|
@@ -6710,7 +6757,7 @@ function create_if_block$a(ctx) {
|
|
|
6710
6757
|
}
|
|
6711
6758
|
|
|
6712
6759
|
};
|
|
6713
|
-
} // (
|
|
6760
|
+
} // (125:31)
|
|
6714
6761
|
|
|
6715
6762
|
|
|
6716
6763
|
function create_if_block_2$5(ctx) {
|
|
@@ -6744,7 +6791,7 @@ function create_if_block_2$5(ctx) {
|
|
|
6744
6791
|
}
|
|
6745
6792
|
|
|
6746
6793
|
};
|
|
6747
|
-
} // (
|
|
6794
|
+
} // (121:4) {#if maxcharcount > 0}
|
|
6748
6795
|
|
|
6749
6796
|
|
|
6750
6797
|
function create_if_block_1$6(ctx) {
|
|
@@ -6755,7 +6802,7 @@ function create_if_block_1$6(ctx) {
|
|
|
6755
6802
|
let t0;
|
|
6756
6803
|
let t1_value = `/${
|
|
6757
6804
|
/*maxcharcount*/
|
|
6758
|
-
ctx[
|
|
6805
|
+
ctx[10]}` + "";
|
|
6759
6806
|
let t1;
|
|
6760
6807
|
return {
|
|
6761
6808
|
c() {
|
|
@@ -6767,7 +6814,7 @@ function create_if_block_1$6(ctx) {
|
|
|
6767
6814
|
/*value*/
|
|
6768
6815
|
ctx[0].length >
|
|
6769
6816
|
/*maxcharcount*/
|
|
6770
|
-
ctx[
|
|
6817
|
+
ctx[10]);
|
|
6771
6818
|
},
|
|
6772
6819
|
|
|
6773
6820
|
m(target, anchor) {
|
|
@@ -6784,18 +6831,18 @@ function create_if_block_1$6(ctx) {
|
|
|
6784
6831
|
ctx[0].length + "")) set_data(t0, t0_value);
|
|
6785
6832
|
if (dirty &
|
|
6786
6833
|
/*maxcharcount*/
|
|
6787
|
-
|
|
6834
|
+
1024 && t1_value !== (t1_value = `/${
|
|
6788
6835
|
/*maxcharcount*/
|
|
6789
|
-
ctx[
|
|
6836
|
+
ctx[10]}` + "")) set_data(t1, t1_value);
|
|
6790
6837
|
|
|
6791
6838
|
if (dirty &
|
|
6792
6839
|
/*value, maxcharcount*/
|
|
6793
|
-
|
|
6840
|
+
1025) {
|
|
6794
6841
|
toggle_class(div, "counter-error",
|
|
6795
6842
|
/*value*/
|
|
6796
6843
|
ctx[0].length >
|
|
6797
6844
|
/*maxcharcount*/
|
|
6798
|
-
ctx[
|
|
6845
|
+
ctx[10]);
|
|
6799
6846
|
}
|
|
6800
6847
|
},
|
|
6801
6848
|
|
|
@@ -6813,6 +6860,7 @@ function create_fragment$j(ctx) {
|
|
|
6813
6860
|
let input;
|
|
6814
6861
|
let input_class_value;
|
|
6815
6862
|
let input_style_value;
|
|
6863
|
+
let input_aria_label_value;
|
|
6816
6864
|
let t1;
|
|
6817
6865
|
let t2;
|
|
6818
6866
|
let div0_class_value;
|
|
@@ -6827,15 +6875,15 @@ function create_fragment$j(ctx) {
|
|
|
6827
6875
|
/*trailingicon*/
|
|
6828
6876
|
ctx[5] && !
|
|
6829
6877
|
/*handlesTrailingIconClick*/
|
|
6830
|
-
ctx[
|
|
6878
|
+
ctx[16] && create_if_block_4$1(ctx);
|
|
6831
6879
|
let if_block2 =
|
|
6832
6880
|
/*trailingicon*/
|
|
6833
6881
|
ctx[5] &&
|
|
6834
6882
|
/*handlesTrailingIconClick*/
|
|
6835
|
-
ctx[
|
|
6883
|
+
ctx[16] && create_if_block_3$3(ctx);
|
|
6836
6884
|
let if_block3 =
|
|
6837
6885
|
/*showCounter*/
|
|
6838
|
-
ctx[
|
|
6886
|
+
ctx[12] && create_if_block$a(ctx);
|
|
6839
6887
|
return {
|
|
6840
6888
|
c() {
|
|
6841
6889
|
div1 = element("div");
|
|
@@ -6858,10 +6906,10 @@ function create_fragment$j(ctx) {
|
|
|
6858
6906
|
ctx[5] ? "-0.5rem" : "0"}`);
|
|
6859
6907
|
input.readOnly =
|
|
6860
6908
|
/*isReadonly*/
|
|
6861
|
-
ctx[
|
|
6909
|
+
ctx[15];
|
|
6862
6910
|
input.disabled =
|
|
6863
6911
|
/*isDisabled*/
|
|
6864
|
-
ctx[
|
|
6912
|
+
ctx[13];
|
|
6865
6913
|
attr(input, "data-testid",
|
|
6866
6914
|
/*testid*/
|
|
6867
6915
|
ctx[7]);
|
|
@@ -6877,11 +6925,17 @@ function create_fragment$j(ctx) {
|
|
|
6877
6925
|
attr(input, "placeholder",
|
|
6878
6926
|
/*placeholder*/
|
|
6879
6927
|
ctx[3]);
|
|
6928
|
+
attr(input, "role", "textbox");
|
|
6929
|
+
attr(input, "aria-label", input_aria_label_value =
|
|
6930
|
+
/*arialabel*/
|
|
6931
|
+
ctx[9] ||
|
|
6932
|
+
/*name*/
|
|
6933
|
+
ctx[2]);
|
|
6880
6934
|
attr(div0, "class", div0_class_value = `
|
|
6881
6935
|
goa-input
|
|
6882
6936
|
${
|
|
6883
6937
|
/*isDisabled*/
|
|
6884
|
-
ctx[
|
|
6938
|
+
ctx[13] ? "goa-input--disabled" : ""}
|
|
6885
6939
|
variant--${
|
|
6886
6940
|
/*variant*/
|
|
6887
6941
|
ctx[6]}
|
|
@@ -6891,7 +6945,7 @@ function create_fragment$j(ctx) {
|
|
|
6891
6945
|
`);
|
|
6892
6946
|
toggle_class(div0, "error",
|
|
6893
6947
|
/*isError*/
|
|
6894
|
-
ctx[
|
|
6948
|
+
ctx[14]);
|
|
6895
6949
|
attr(div1, "class", "container");
|
|
6896
6950
|
attr(div1, "style", div1_style_value = `
|
|
6897
6951
|
--width: ${
|
|
@@ -6908,7 +6962,7 @@ function create_fragment$j(ctx) {
|
|
|
6908
6962
|
append(div0, input);
|
|
6909
6963
|
/*input_binding*/
|
|
6910
6964
|
|
|
6911
|
-
ctx[
|
|
6965
|
+
ctx[25](input);
|
|
6912
6966
|
append(div0, t1);
|
|
6913
6967
|
if (if_block1) if_block1.m(div0, null);
|
|
6914
6968
|
append(div0, t2);
|
|
@@ -6919,9 +6973,9 @@ function create_fragment$j(ctx) {
|
|
|
6919
6973
|
if (!mounted) {
|
|
6920
6974
|
dispose = [listen(input, "keyup",
|
|
6921
6975
|
/*onKeyUp*/
|
|
6922
|
-
ctx[
|
|
6976
|
+
ctx[17]), listen(input, "change",
|
|
6923
6977
|
/*onKeyUp*/
|
|
6924
|
-
ctx[
|
|
6978
|
+
ctx[17])];
|
|
6925
6979
|
mounted = true;
|
|
6926
6980
|
}
|
|
6927
6981
|
},
|
|
@@ -6960,18 +7014,18 @@ function create_fragment$j(ctx) {
|
|
|
6960
7014
|
|
|
6961
7015
|
if (dirty &
|
|
6962
7016
|
/*isReadonly*/
|
|
6963
|
-
|
|
7017
|
+
32768) {
|
|
6964
7018
|
input.readOnly =
|
|
6965
7019
|
/*isReadonly*/
|
|
6966
|
-
ctx[
|
|
7020
|
+
ctx[15];
|
|
6967
7021
|
}
|
|
6968
7022
|
|
|
6969
7023
|
if (dirty &
|
|
6970
7024
|
/*isDisabled*/
|
|
6971
|
-
|
|
7025
|
+
8192) {
|
|
6972
7026
|
input.disabled =
|
|
6973
7027
|
/*isDisabled*/
|
|
6974
|
-
ctx[
|
|
7028
|
+
ctx[13];
|
|
6975
7029
|
}
|
|
6976
7030
|
|
|
6977
7031
|
if (dirty &
|
|
@@ -7016,11 +7070,21 @@ function create_fragment$j(ctx) {
|
|
|
7016
7070
|
ctx[3]);
|
|
7017
7071
|
}
|
|
7018
7072
|
|
|
7073
|
+
if (dirty &
|
|
7074
|
+
/*arialabel, name*/
|
|
7075
|
+
516 && input_aria_label_value !== (input_aria_label_value =
|
|
7076
|
+
/*arialabel*/
|
|
7077
|
+
ctx[9] ||
|
|
7078
|
+
/*name*/
|
|
7079
|
+
ctx[2])) {
|
|
7080
|
+
attr(input, "aria-label", input_aria_label_value);
|
|
7081
|
+
}
|
|
7082
|
+
|
|
7019
7083
|
if (
|
|
7020
7084
|
/*trailingicon*/
|
|
7021
7085
|
ctx[5] && !
|
|
7022
7086
|
/*handlesTrailingIconClick*/
|
|
7023
|
-
ctx[
|
|
7087
|
+
ctx[16]) {
|
|
7024
7088
|
if (if_block1) {
|
|
7025
7089
|
if_block1.p(ctx, dirty);
|
|
7026
7090
|
} else {
|
|
@@ -7037,7 +7101,7 @@ function create_fragment$j(ctx) {
|
|
|
7037
7101
|
/*trailingicon*/
|
|
7038
7102
|
ctx[5] &&
|
|
7039
7103
|
/*handlesTrailingIconClick*/
|
|
7040
|
-
ctx[
|
|
7104
|
+
ctx[16]) {
|
|
7041
7105
|
if (if_block2) {
|
|
7042
7106
|
if_block2.p(ctx, dirty);
|
|
7043
7107
|
} else {
|
|
@@ -7052,11 +7116,11 @@ function create_fragment$j(ctx) {
|
|
|
7052
7116
|
|
|
7053
7117
|
if (dirty &
|
|
7054
7118
|
/*isDisabled, variant, type*/
|
|
7055
|
-
|
|
7119
|
+
8258 && div0_class_value !== (div0_class_value = `
|
|
7056
7120
|
goa-input
|
|
7057
7121
|
${
|
|
7058
7122
|
/*isDisabled*/
|
|
7059
|
-
ctx[
|
|
7123
|
+
ctx[13] ? "goa-input--disabled" : ""}
|
|
7060
7124
|
variant--${
|
|
7061
7125
|
/*variant*/
|
|
7062
7126
|
ctx[6]}
|
|
@@ -7069,15 +7133,15 @@ function create_fragment$j(ctx) {
|
|
|
7069
7133
|
|
|
7070
7134
|
if (dirty &
|
|
7071
7135
|
/*isDisabled, variant, type, isError*/
|
|
7072
|
-
|
|
7136
|
+
24642) {
|
|
7073
7137
|
toggle_class(div0, "error",
|
|
7074
7138
|
/*isError*/
|
|
7075
|
-
ctx[
|
|
7139
|
+
ctx[14]);
|
|
7076
7140
|
}
|
|
7077
7141
|
|
|
7078
7142
|
if (
|
|
7079
7143
|
/*showCounter*/
|
|
7080
|
-
ctx[
|
|
7144
|
+
ctx[12]) {
|
|
7081
7145
|
if (if_block3) {
|
|
7082
7146
|
if_block3.p(ctx, dirty);
|
|
7083
7147
|
} else {
|
|
@@ -7109,7 +7173,7 @@ function create_fragment$j(ctx) {
|
|
|
7109
7173
|
if (if_block0) if_block0.d();
|
|
7110
7174
|
/*input_binding*/
|
|
7111
7175
|
|
|
7112
|
-
ctx[
|
|
7176
|
+
ctx[25](null);
|
|
7113
7177
|
if (if_block1) if_block1.d();
|
|
7114
7178
|
if (if_block2) if_block2.d();
|
|
7115
7179
|
if (if_block3) if_block3.d();
|
|
@@ -7175,6 +7239,9 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7175
7239
|
let {
|
|
7176
7240
|
width = "30ch"
|
|
7177
7241
|
} = $$props;
|
|
7242
|
+
let {
|
|
7243
|
+
arialabel = ""
|
|
7244
|
+
} = $$props;
|
|
7178
7245
|
let {
|
|
7179
7246
|
showcounter = "false"
|
|
7180
7247
|
} = $$props;
|
|
@@ -7199,7 +7266,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7199
7266
|
function input_binding($$value) {
|
|
7200
7267
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7201
7268
|
inputEl = $$value;
|
|
7202
|
-
$$invalidate(
|
|
7269
|
+
$$invalidate(11, inputEl);
|
|
7203
7270
|
});
|
|
7204
7271
|
}
|
|
7205
7272
|
|
|
@@ -7211,57 +7278,58 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7211
7278
|
if ('leadingicon' in $$props) $$invalidate(4, leadingicon = $$props.leadingicon);
|
|
7212
7279
|
if ('trailingicon' in $$props) $$invalidate(5, trailingicon = $$props.trailingicon);
|
|
7213
7280
|
if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
|
|
7214
|
-
if ('disabled' in $$props) $$invalidate(
|
|
7215
|
-
if ('handletrailingiconclick' in $$props) $$invalidate(
|
|
7216
|
-
if ('focused' in $$props) $$invalidate(
|
|
7217
|
-
if ('readonly' in $$props) $$invalidate(
|
|
7218
|
-
if ('error' in $$props) $$invalidate(
|
|
7281
|
+
if ('disabled' in $$props) $$invalidate(18, disabled = $$props.disabled);
|
|
7282
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(19, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
7283
|
+
if ('focused' in $$props) $$invalidate(20, focused = $$props.focused);
|
|
7284
|
+
if ('readonly' in $$props) $$invalidate(21, readonly = $$props.readonly);
|
|
7285
|
+
if ('error' in $$props) $$invalidate(22, error = $$props.error);
|
|
7219
7286
|
if ('testid' in $$props) $$invalidate(7, testid = $$props.testid);
|
|
7220
7287
|
if ('width' in $$props) $$invalidate(8, width = $$props.width);
|
|
7221
|
-
if ('
|
|
7222
|
-
if ('
|
|
7288
|
+
if ('arialabel' in $$props) $$invalidate(9, arialabel = $$props.arialabel);
|
|
7289
|
+
if ('showcounter' in $$props) $$invalidate(23, showcounter = $$props.showcounter);
|
|
7290
|
+
if ('maxcharcount' in $$props) $$invalidate(10, maxcharcount = $$props.maxcharcount);
|
|
7223
7291
|
};
|
|
7224
7292
|
|
|
7225
7293
|
$$self.$$.update = () => {
|
|
7226
7294
|
if ($$self.$$.dirty &
|
|
7227
7295
|
/*handletrailingiconclick*/
|
|
7228
|
-
|
|
7229
|
-
$$invalidate(
|
|
7296
|
+
524288) {
|
|
7297
|
+
$$invalidate(16, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
7230
7298
|
}
|
|
7231
7299
|
|
|
7232
7300
|
if ($$self.$$.dirty &
|
|
7233
7301
|
/*focused*/
|
|
7234
|
-
|
|
7235
|
-
$$invalidate(
|
|
7302
|
+
1048576) {
|
|
7303
|
+
$$invalidate(24, isFocused = toBoolean(focused));
|
|
7236
7304
|
}
|
|
7237
7305
|
|
|
7238
7306
|
if ($$self.$$.dirty &
|
|
7239
7307
|
/*readonly*/
|
|
7240
|
-
|
|
7241
|
-
$$invalidate(
|
|
7308
|
+
2097152) {
|
|
7309
|
+
$$invalidate(15, isReadonly = toBoolean(readonly));
|
|
7242
7310
|
}
|
|
7243
7311
|
|
|
7244
7312
|
if ($$self.$$.dirty &
|
|
7245
7313
|
/*error*/
|
|
7246
|
-
|
|
7247
|
-
$$invalidate(
|
|
7314
|
+
4194304) {
|
|
7315
|
+
$$invalidate(14, isError = toBoolean(error));
|
|
7248
7316
|
}
|
|
7249
7317
|
|
|
7250
7318
|
if ($$self.$$.dirty &
|
|
7251
7319
|
/*disabled*/
|
|
7252
|
-
|
|
7253
|
-
$$invalidate(
|
|
7320
|
+
262144) {
|
|
7321
|
+
$$invalidate(13, isDisabled = toBoolean(disabled));
|
|
7254
7322
|
}
|
|
7255
7323
|
|
|
7256
7324
|
if ($$self.$$.dirty &
|
|
7257
7325
|
/*showcounter*/
|
|
7258
|
-
|
|
7259
|
-
$$invalidate(
|
|
7326
|
+
8388608) {
|
|
7327
|
+
$$invalidate(12, showCounter = toBoolean(showcounter));
|
|
7260
7328
|
}
|
|
7261
7329
|
|
|
7262
7330
|
if ($$self.$$.dirty &
|
|
7263
7331
|
/*isFocused, inputEl*/
|
|
7264
|
-
|
|
7332
|
+
16779264) {
|
|
7265
7333
|
if (isFocused && inputEl) {
|
|
7266
7334
|
setTimeout(() => inputEl.focus(), 1);
|
|
7267
7335
|
}
|
|
@@ -7269,7 +7337,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7269
7337
|
|
|
7270
7338
|
if ($$self.$$.dirty &
|
|
7271
7339
|
/*inputEl, type*/
|
|
7272
|
-
|
|
7340
|
+
2050) {
|
|
7273
7341
|
if (inputEl && type === "search") {
|
|
7274
7342
|
inputEl.addEventListener("search", e => {
|
|
7275
7343
|
onKeyUp(e);
|
|
@@ -7278,7 +7346,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7278
7346
|
}
|
|
7279
7347
|
};
|
|
7280
7348
|
|
|
7281
|
-
return [value, type, name, placeholder, leadingicon, trailingicon, variant, testid, width, maxcharcount, inputEl, showCounter, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, showcounter, isFocused, input_binding];
|
|
7349
|
+
return [value, type, name, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, maxcharcount, inputEl, showCounter, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, showcounter, isFocused, input_binding];
|
|
7282
7350
|
}
|
|
7283
7351
|
|
|
7284
7352
|
class Input extends SvelteElement {
|
|
@@ -7298,15 +7366,16 @@ class Input extends SvelteElement {
|
|
|
7298
7366
|
leadingicon: 4,
|
|
7299
7367
|
trailingicon: 5,
|
|
7300
7368
|
variant: 6,
|
|
7301
|
-
disabled:
|
|
7302
|
-
handletrailingiconclick:
|
|
7303
|
-
focused:
|
|
7304
|
-
readonly:
|
|
7305
|
-
error:
|
|
7369
|
+
disabled: 18,
|
|
7370
|
+
handletrailingiconclick: 19,
|
|
7371
|
+
focused: 20,
|
|
7372
|
+
readonly: 21,
|
|
7373
|
+
error: 22,
|
|
7306
7374
|
testid: 7,
|
|
7307
7375
|
width: 8,
|
|
7308
|
-
|
|
7309
|
-
|
|
7376
|
+
arialabel: 9,
|
|
7377
|
+
showcounter: 23,
|
|
7378
|
+
maxcharcount: 10
|
|
7310
7379
|
}, null);
|
|
7311
7380
|
|
|
7312
7381
|
if (options) {
|
|
@@ -7322,7 +7391,7 @@ class Input extends SvelteElement {
|
|
|
7322
7391
|
}
|
|
7323
7392
|
|
|
7324
7393
|
static get observedAttributes() {
|
|
7325
|
-
return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "showcounter", "maxcharcount"];
|
|
7394
|
+
return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "showcounter", "maxcharcount"];
|
|
7326
7395
|
}
|
|
7327
7396
|
|
|
7328
7397
|
get type() {
|
|
@@ -7403,7 +7472,7 @@ class Input extends SvelteElement {
|
|
|
7403
7472
|
}
|
|
7404
7473
|
|
|
7405
7474
|
get disabled() {
|
|
7406
|
-
return this.$$.ctx[
|
|
7475
|
+
return this.$$.ctx[18];
|
|
7407
7476
|
}
|
|
7408
7477
|
|
|
7409
7478
|
set disabled(disabled) {
|
|
@@ -7414,7 +7483,7 @@ class Input extends SvelteElement {
|
|
|
7414
7483
|
}
|
|
7415
7484
|
|
|
7416
7485
|
get handletrailingiconclick() {
|
|
7417
|
-
return this.$$.ctx[
|
|
7486
|
+
return this.$$.ctx[19];
|
|
7418
7487
|
}
|
|
7419
7488
|
|
|
7420
7489
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -7425,7 +7494,7 @@ class Input extends SvelteElement {
|
|
|
7425
7494
|
}
|
|
7426
7495
|
|
|
7427
7496
|
get focused() {
|
|
7428
|
-
return this.$$.ctx[
|
|
7497
|
+
return this.$$.ctx[20];
|
|
7429
7498
|
}
|
|
7430
7499
|
|
|
7431
7500
|
set focused(focused) {
|
|
@@ -7436,7 +7505,7 @@ class Input extends SvelteElement {
|
|
|
7436
7505
|
}
|
|
7437
7506
|
|
|
7438
7507
|
get readonly() {
|
|
7439
|
-
return this.$$.ctx[
|
|
7508
|
+
return this.$$.ctx[21];
|
|
7440
7509
|
}
|
|
7441
7510
|
|
|
7442
7511
|
set readonly(readonly) {
|
|
@@ -7447,7 +7516,7 @@ class Input extends SvelteElement {
|
|
|
7447
7516
|
}
|
|
7448
7517
|
|
|
7449
7518
|
get error() {
|
|
7450
|
-
return this.$$.ctx[
|
|
7519
|
+
return this.$$.ctx[22];
|
|
7451
7520
|
}
|
|
7452
7521
|
|
|
7453
7522
|
set error(error) {
|
|
@@ -7479,8 +7548,19 @@ class Input extends SvelteElement {
|
|
|
7479
7548
|
flush();
|
|
7480
7549
|
}
|
|
7481
7550
|
|
|
7551
|
+
get arialabel() {
|
|
7552
|
+
return this.$$.ctx[9];
|
|
7553
|
+
}
|
|
7554
|
+
|
|
7555
|
+
set arialabel(arialabel) {
|
|
7556
|
+
this.$$set({
|
|
7557
|
+
arialabel
|
|
7558
|
+
});
|
|
7559
|
+
flush();
|
|
7560
|
+
}
|
|
7561
|
+
|
|
7482
7562
|
get showcounter() {
|
|
7483
|
-
return this.$$.ctx[
|
|
7563
|
+
return this.$$.ctx[23];
|
|
7484
7564
|
}
|
|
7485
7565
|
|
|
7486
7566
|
set showcounter(showcounter) {
|
|
@@ -7491,7 +7571,7 @@ class Input extends SvelteElement {
|
|
|
7491
7571
|
}
|
|
7492
7572
|
|
|
7493
7573
|
get maxcharcount() {
|
|
7494
|
-
return this.$$.ctx[
|
|
7574
|
+
return this.$$.ctx[10];
|
|
7495
7575
|
}
|
|
7496
7576
|
|
|
7497
7577
|
set maxcharcount(maxcharcount) {
|
|
@@ -8452,53 +8532,6 @@ class Notification extends SvelteElement {
|
|
|
8452
8532
|
}
|
|
8453
8533
|
|
|
8454
8534
|
customElements.define("goa-notification", Notification);
|
|
8455
|
-
/* libs/web-components/src/layouts/PageLayout.svelte generated by Svelte v3.49.0 */
|
|
8456
|
-
|
|
8457
|
-
function create_fragment$g(ctx) {
|
|
8458
|
-
let div;
|
|
8459
|
-
return {
|
|
8460
|
-
c() {
|
|
8461
|
-
div = element("div");
|
|
8462
|
-
div.innerHTML = `<slot></slot>`;
|
|
8463
|
-
this.c = noop;
|
|
8464
|
-
attr(div, "class", "layout");
|
|
8465
|
-
},
|
|
8466
|
-
|
|
8467
|
-
m(target, anchor) {
|
|
8468
|
-
insert(target, div, anchor);
|
|
8469
|
-
},
|
|
8470
|
-
|
|
8471
|
-
p: noop,
|
|
8472
|
-
i: noop,
|
|
8473
|
-
o: noop,
|
|
8474
|
-
|
|
8475
|
-
d(detaching) {
|
|
8476
|
-
if (detaching) detach(div);
|
|
8477
|
-
}
|
|
8478
|
-
|
|
8479
|
-
};
|
|
8480
|
-
}
|
|
8481
|
-
|
|
8482
|
-
class PageLayout extends SvelteElement {
|
|
8483
|
-
constructor(options) {
|
|
8484
|
-
super();
|
|
8485
|
-
this.shadowRoot.innerHTML = `<style>@media(min-width: 768px){}.layout{max-width:768px;margin:0 auto;padding:2rem}</style>`;
|
|
8486
|
-
init(this, {
|
|
8487
|
-
target: this.shadowRoot,
|
|
8488
|
-
props: attribute_to_object(this.attributes),
|
|
8489
|
-
customElement: true
|
|
8490
|
-
}, null, create_fragment$g, safe_not_equal, {}, null);
|
|
8491
|
-
|
|
8492
|
-
if (options) {
|
|
8493
|
-
if (options.target) {
|
|
8494
|
-
insert(options.target, this, options.anchor);
|
|
8495
|
-
}
|
|
8496
|
-
}
|
|
8497
|
-
}
|
|
8498
|
-
|
|
8499
|
-
}
|
|
8500
|
-
|
|
8501
|
-
customElements.define("goa-page-layout", PageLayout);
|
|
8502
8535
|
/* libs/web-components/src/components/circular-progress/CircularProgress.svelte generated by Svelte v3.49.0 */
|
|
8503
8536
|
|
|
8504
8537
|
function create_if_block$7(ctx) {
|
|
@@ -8872,7 +8905,7 @@ function create_if_block_2$3(ctx) {
|
|
|
8872
8905
|
};
|
|
8873
8906
|
}
|
|
8874
8907
|
|
|
8875
|
-
function create_fragment$
|
|
8908
|
+
function create_fragment$g(ctx) {
|
|
8876
8909
|
let if_block_anchor;
|
|
8877
8910
|
let current;
|
|
8878
8911
|
let if_block =
|
|
@@ -8990,7 +9023,7 @@ class CircularProgress extends SvelteElement {
|
|
|
8990
9023
|
target: this.shadowRoot,
|
|
8991
9024
|
props: attribute_to_object(this.attributes),
|
|
8992
9025
|
customElement: true
|
|
8993
|
-
}, instance$e, create_fragment$
|
|
9026
|
+
}, instance$e, create_fragment$g, safe_not_equal, {
|
|
8994
9027
|
variant: 6,
|
|
8995
9028
|
size: 7,
|
|
8996
9029
|
message: 0,
|
|
@@ -9249,7 +9282,7 @@ function create_each_block$3(key_1, ctx) {
|
|
|
9249
9282
|
};
|
|
9250
9283
|
}
|
|
9251
9284
|
|
|
9252
|
-
function create_fragment$
|
|
9285
|
+
function create_fragment$f(ctx) {
|
|
9253
9286
|
let div;
|
|
9254
9287
|
let slot;
|
|
9255
9288
|
let t;
|
|
@@ -9449,7 +9482,7 @@ class RadioGroup extends SvelteElement {
|
|
|
9449
9482
|
target: this.shadowRoot,
|
|
9450
9483
|
props: attribute_to_object(this.attributes),
|
|
9451
9484
|
customElement: true
|
|
9452
|
-
}, instance$d, create_fragment$
|
|
9485
|
+
}, instance$d, create_fragment$f, safe_not_equal, {
|
|
9453
9486
|
name: 1,
|
|
9454
9487
|
value: 0,
|
|
9455
9488
|
orientation: 2,
|
|
@@ -9545,7 +9578,7 @@ class RadioGroup extends SvelteElement {
|
|
|
9545
9578
|
customElements.define("goa-radio-group", RadioGroup);
|
|
9546
9579
|
/* libs/web-components/src/components/radio-group/RadioItem.svelte generated by Svelte v3.49.0 */
|
|
9547
9580
|
|
|
9548
|
-
function create_fragment$
|
|
9581
|
+
function create_fragment$e(ctx) {
|
|
9549
9582
|
return {
|
|
9550
9583
|
c() {
|
|
9551
9584
|
this.c = noop;
|
|
@@ -9600,7 +9633,7 @@ class RadioItem extends SvelteElement {
|
|
|
9600
9633
|
target: this.shadowRoot,
|
|
9601
9634
|
props: attribute_to_object(this.attributes),
|
|
9602
9635
|
customElement: true
|
|
9603
|
-
}, instance$c, create_fragment$
|
|
9636
|
+
}, instance$c, create_fragment$e, safe_not_equal, {
|
|
9604
9637
|
value: 0,
|
|
9605
9638
|
label: 1,
|
|
9606
9639
|
name: 2
|
|
@@ -9660,7 +9693,7 @@ class RadioItem extends SvelteElement {
|
|
|
9660
9693
|
customElements.define("goa-radio-item", RadioItem);
|
|
9661
9694
|
/* libs/web-components/src/components/scrollable/Scrollable.svelte generated by Svelte v3.49.0 */
|
|
9662
9695
|
|
|
9663
|
-
function create_fragment$
|
|
9696
|
+
function create_fragment$d(ctx) {
|
|
9664
9697
|
let div;
|
|
9665
9698
|
let slot;
|
|
9666
9699
|
let div_style_value;
|
|
@@ -9760,7 +9793,7 @@ class Scrollable extends SvelteElement {
|
|
|
9760
9793
|
target: this.shadowRoot,
|
|
9761
9794
|
props: attribute_to_object(this.attributes),
|
|
9762
9795
|
customElement: true
|
|
9763
|
-
}, instance$b, create_fragment$
|
|
9796
|
+
}, instance$b, create_fragment$d, safe_not_equal, {
|
|
9764
9797
|
direction: 0,
|
|
9765
9798
|
hpadding: 1,
|
|
9766
9799
|
vpadding: 2,
|
|
@@ -10027,7 +10060,7 @@ function create_if_block$6(ctx) {
|
|
|
10027
10060
|
};
|
|
10028
10061
|
}
|
|
10029
10062
|
|
|
10030
|
-
function create_fragment$
|
|
10063
|
+
function create_fragment$c(ctx) {
|
|
10031
10064
|
let header;
|
|
10032
10065
|
let t0;
|
|
10033
10066
|
let show_if = ["alpha", "beta"].includes(
|
|
@@ -10164,7 +10197,7 @@ class MicrositeHeader extends SvelteElement {
|
|
|
10164
10197
|
target: this.shadowRoot,
|
|
10165
10198
|
props: attribute_to_object(this.attributes),
|
|
10166
10199
|
customElement: true
|
|
10167
|
-
}, instance$a, create_fragment$
|
|
10200
|
+
}, instance$a, create_fragment$c, safe_not_equal, {
|
|
10168
10201
|
level: 0,
|
|
10169
10202
|
version: 1,
|
|
10170
10203
|
feedbackurl: 2
|
|
@@ -10680,7 +10713,7 @@ function create_each_block$2(ctx) {
|
|
|
10680
10713
|
};
|
|
10681
10714
|
}
|
|
10682
10715
|
|
|
10683
|
-
function create_fragment$
|
|
10716
|
+
function create_fragment$b(ctx) {
|
|
10684
10717
|
let current_block_type_index;
|
|
10685
10718
|
let if_block;
|
|
10686
10719
|
let if_block_anchor;
|
|
@@ -10793,7 +10826,7 @@ class Skeleton extends SvelteElement {
|
|
|
10793
10826
|
target: this.shadowRoot,
|
|
10794
10827
|
props: attribute_to_object(this.attributes),
|
|
10795
10828
|
customElement: true
|
|
10796
|
-
}, instance$9, create_fragment$
|
|
10829
|
+
}, instance$9, create_fragment$b, safe_not_equal, {
|
|
10797
10830
|
width: 0,
|
|
10798
10831
|
size: 1,
|
|
10799
10832
|
count: 2,
|
|
@@ -11175,7 +11208,7 @@ function create_if_block$4(ctx) {
|
|
|
11175
11208
|
};
|
|
11176
11209
|
}
|
|
11177
11210
|
|
|
11178
|
-
function create_fragment$
|
|
11211
|
+
function create_fragment$a(ctx) {
|
|
11179
11212
|
let if_block_anchor;
|
|
11180
11213
|
let if_block =
|
|
11181
11214
|
/*ready*/
|
|
@@ -11351,7 +11384,7 @@ class Spinner extends SvelteElement {
|
|
|
11351
11384
|
target: this.shadowRoot,
|
|
11352
11385
|
props: attribute_to_object(this.attributes),
|
|
11353
11386
|
customElement: true
|
|
11354
|
-
}, instance$8, create_fragment$
|
|
11387
|
+
}, instance$8, create_fragment$a, safe_not_equal, {
|
|
11355
11388
|
size: 10,
|
|
11356
11389
|
invert: 0,
|
|
11357
11390
|
progress: 11,
|
|
@@ -11429,7 +11462,7 @@ function create_if_block$3(ctx) {
|
|
|
11429
11462
|
function select_block_type(ctx, dirty) {
|
|
11430
11463
|
if (
|
|
11431
11464
|
/*maxcharcount*/
|
|
11432
|
-
ctx[
|
|
11465
|
+
ctx[7] > 0) return create_if_block_1$1;
|
|
11433
11466
|
if (
|
|
11434
11467
|
/*value*/
|
|
11435
11468
|
ctx[1].length > 0) return create_if_block_2;
|
|
@@ -11471,7 +11504,7 @@ function create_if_block$3(ctx) {
|
|
|
11471
11504
|
}
|
|
11472
11505
|
|
|
11473
11506
|
};
|
|
11474
|
-
} // (
|
|
11507
|
+
} // (63:31)
|
|
11475
11508
|
|
|
11476
11509
|
|
|
11477
11510
|
function create_if_block_2(ctx) {
|
|
@@ -11505,7 +11538,7 @@ function create_if_block_2(ctx) {
|
|
|
11505
11538
|
}
|
|
11506
11539
|
|
|
11507
11540
|
};
|
|
11508
|
-
} // (
|
|
11541
|
+
} // (57:4) {#if maxcharcount > 0}
|
|
11509
11542
|
|
|
11510
11543
|
|
|
11511
11544
|
function create_if_block_1$1(ctx) {
|
|
@@ -11516,7 +11549,7 @@ function create_if_block_1$1(ctx) {
|
|
|
11516
11549
|
let t0;
|
|
11517
11550
|
let t1_value = `/${
|
|
11518
11551
|
/*maxcharcount*/
|
|
11519
|
-
ctx[
|
|
11552
|
+
ctx[7]}` + "";
|
|
11520
11553
|
let t1;
|
|
11521
11554
|
return {
|
|
11522
11555
|
c() {
|
|
@@ -11528,7 +11561,7 @@ function create_if_block_1$1(ctx) {
|
|
|
11528
11561
|
/*value*/
|
|
11529
11562
|
ctx[1].length >
|
|
11530
11563
|
/*maxcharcount*/
|
|
11531
|
-
ctx[
|
|
11564
|
+
ctx[7]);
|
|
11532
11565
|
},
|
|
11533
11566
|
|
|
11534
11567
|
m(target, anchor) {
|
|
@@ -11545,18 +11578,18 @@ function create_if_block_1$1(ctx) {
|
|
|
11545
11578
|
ctx[1].length + "")) set_data(t0, t0_value);
|
|
11546
11579
|
if (dirty &
|
|
11547
11580
|
/*maxcharcount*/
|
|
11548
|
-
|
|
11581
|
+
128 && t1_value !== (t1_value = `/${
|
|
11549
11582
|
/*maxcharcount*/
|
|
11550
|
-
ctx[
|
|
11583
|
+
ctx[7]}` + "")) set_data(t1, t1_value);
|
|
11551
11584
|
|
|
11552
11585
|
if (dirty &
|
|
11553
11586
|
/*value, maxcharcount*/
|
|
11554
|
-
|
|
11587
|
+
130) {
|
|
11555
11588
|
toggle_class(div, "counter-error",
|
|
11556
11589
|
/*value*/
|
|
11557
11590
|
ctx[1].length >
|
|
11558
11591
|
/*maxcharcount*/
|
|
11559
|
-
ctx[
|
|
11592
|
+
ctx[7]);
|
|
11560
11593
|
}
|
|
11561
11594
|
},
|
|
11562
11595
|
|
|
@@ -11567,16 +11600,17 @@ function create_if_block_1$1(ctx) {
|
|
|
11567
11600
|
};
|
|
11568
11601
|
}
|
|
11569
11602
|
|
|
11570
|
-
function create_fragment$
|
|
11603
|
+
function create_fragment$9(ctx) {
|
|
11571
11604
|
let div;
|
|
11572
11605
|
let textarea;
|
|
11606
|
+
let textarea_aria_label_value;
|
|
11573
11607
|
let t;
|
|
11574
11608
|
let div_style_value;
|
|
11575
11609
|
let mounted;
|
|
11576
11610
|
let dispose;
|
|
11577
11611
|
let if_block =
|
|
11578
11612
|
/*showCounter*/
|
|
11579
|
-
ctx[
|
|
11613
|
+
ctx[9] && create_if_block$3(ctx);
|
|
11580
11614
|
return {
|
|
11581
11615
|
c() {
|
|
11582
11616
|
div = element("div");
|
|
@@ -11596,19 +11630,24 @@ function create_fragment$8(ctx) {
|
|
|
11596
11630
|
attr(textarea, "rows",
|
|
11597
11631
|
/*rows*/
|
|
11598
11632
|
ctx[3]);
|
|
11633
|
+
attr(textarea, "aria-label", textarea_aria_label_value =
|
|
11634
|
+
/*arialabel*/
|
|
11635
|
+
ctx[6] ||
|
|
11636
|
+
/*name*/
|
|
11637
|
+
ctx[0]);
|
|
11599
11638
|
attr(textarea, "class", "goa-textarea");
|
|
11600
11639
|
textarea.disabled =
|
|
11601
11640
|
/*isDisabled*/
|
|
11602
|
-
ctx[
|
|
11641
|
+
ctx[8];
|
|
11603
11642
|
textarea.readOnly =
|
|
11604
11643
|
/*isReadonly*/
|
|
11605
|
-
ctx[
|
|
11644
|
+
ctx[10];
|
|
11606
11645
|
attr(textarea, "data-testid",
|
|
11607
11646
|
/*testid*/
|
|
11608
11647
|
ctx[4]);
|
|
11609
11648
|
toggle_class(textarea, "error",
|
|
11610
11649
|
/*isError*/
|
|
11611
|
-
ctx[
|
|
11650
|
+
ctx[11]);
|
|
11612
11651
|
attr(div, "class", "container");
|
|
11613
11652
|
attr(div, "style", div_style_value = `
|
|
11614
11653
|
--width: ${
|
|
@@ -11626,7 +11665,7 @@ function create_fragment$8(ctx) {
|
|
|
11626
11665
|
if (!mounted) {
|
|
11627
11666
|
dispose = listen(textarea, "keyup",
|
|
11628
11667
|
/*onChange*/
|
|
11629
|
-
ctx[
|
|
11668
|
+
ctx[12]);
|
|
11630
11669
|
mounted = true;
|
|
11631
11670
|
}
|
|
11632
11671
|
},
|
|
@@ -11664,20 +11703,30 @@ function create_fragment$8(ctx) {
|
|
|
11664
11703
|
ctx[3]);
|
|
11665
11704
|
}
|
|
11666
11705
|
|
|
11706
|
+
if (dirty &
|
|
11707
|
+
/*arialabel, name*/
|
|
11708
|
+
65 && textarea_aria_label_value !== (textarea_aria_label_value =
|
|
11709
|
+
/*arialabel*/
|
|
11710
|
+
ctx[6] ||
|
|
11711
|
+
/*name*/
|
|
11712
|
+
ctx[0])) {
|
|
11713
|
+
attr(textarea, "aria-label", textarea_aria_label_value);
|
|
11714
|
+
}
|
|
11715
|
+
|
|
11667
11716
|
if (dirty &
|
|
11668
11717
|
/*isDisabled*/
|
|
11669
|
-
|
|
11718
|
+
256) {
|
|
11670
11719
|
textarea.disabled =
|
|
11671
11720
|
/*isDisabled*/
|
|
11672
|
-
ctx[
|
|
11721
|
+
ctx[8];
|
|
11673
11722
|
}
|
|
11674
11723
|
|
|
11675
11724
|
if (dirty &
|
|
11676
11725
|
/*isReadonly*/
|
|
11677
|
-
|
|
11726
|
+
1024) {
|
|
11678
11727
|
textarea.readOnly =
|
|
11679
11728
|
/*isReadonly*/
|
|
11680
|
-
ctx[
|
|
11729
|
+
ctx[10];
|
|
11681
11730
|
}
|
|
11682
11731
|
|
|
11683
11732
|
if (dirty &
|
|
@@ -11690,15 +11739,15 @@ function create_fragment$8(ctx) {
|
|
|
11690
11739
|
|
|
11691
11740
|
if (dirty &
|
|
11692
11741
|
/*isError*/
|
|
11693
|
-
|
|
11742
|
+
2048) {
|
|
11694
11743
|
toggle_class(textarea, "error",
|
|
11695
11744
|
/*isError*/
|
|
11696
|
-
ctx[
|
|
11745
|
+
ctx[11]);
|
|
11697
11746
|
}
|
|
11698
11747
|
|
|
11699
11748
|
if (
|
|
11700
11749
|
/*showCounter*/
|
|
11701
|
-
ctx[
|
|
11750
|
+
ctx[9]) {
|
|
11702
11751
|
if (if_block) {
|
|
11703
11752
|
if_block.p(ctx, dirty);
|
|
11704
11753
|
} else {
|
|
@@ -11767,6 +11816,9 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
11767
11816
|
let {
|
|
11768
11817
|
disabled = "false"
|
|
11769
11818
|
} = $$props;
|
|
11819
|
+
let {
|
|
11820
|
+
arialabel = ""
|
|
11821
|
+
} = $$props;
|
|
11770
11822
|
let {
|
|
11771
11823
|
showcounter = "false"
|
|
11772
11824
|
} = $$props;
|
|
@@ -11798,40 +11850,41 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
11798
11850
|
if ('rows' in $$props) $$invalidate(3, rows = $$props.rows);
|
|
11799
11851
|
if ('testid' in $$props) $$invalidate(4, testid = $$props.testid);
|
|
11800
11852
|
if ('width' in $$props) $$invalidate(5, width = $$props.width);
|
|
11801
|
-
if ('error' in $$props) $$invalidate(
|
|
11802
|
-
if ('readonly' in $$props) $$invalidate(
|
|
11803
|
-
if ('disabled' in $$props) $$invalidate(
|
|
11804
|
-
if ('
|
|
11805
|
-
if ('
|
|
11853
|
+
if ('error' in $$props) $$invalidate(13, error = $$props.error);
|
|
11854
|
+
if ('readonly' in $$props) $$invalidate(14, readonly = $$props.readonly);
|
|
11855
|
+
if ('disabled' in $$props) $$invalidate(15, disabled = $$props.disabled);
|
|
11856
|
+
if ('arialabel' in $$props) $$invalidate(6, arialabel = $$props.arialabel);
|
|
11857
|
+
if ('showcounter' in $$props) $$invalidate(16, showcounter = $$props.showcounter);
|
|
11858
|
+
if ('maxcharcount' in $$props) $$invalidate(7, maxcharcount = $$props.maxcharcount);
|
|
11806
11859
|
};
|
|
11807
11860
|
|
|
11808
11861
|
$$self.$$.update = () => {
|
|
11809
11862
|
if ($$self.$$.dirty &
|
|
11810
11863
|
/*error*/
|
|
11811
|
-
|
|
11812
|
-
$$invalidate(
|
|
11864
|
+
8192) {
|
|
11865
|
+
$$invalidate(11, isError = toBoolean(error));
|
|
11813
11866
|
}
|
|
11814
11867
|
|
|
11815
11868
|
if ($$self.$$.dirty &
|
|
11816
11869
|
/*disabled*/
|
|
11817
|
-
|
|
11818
|
-
$$invalidate(
|
|
11870
|
+
32768) {
|
|
11871
|
+
$$invalidate(8, isDisabled = toBoolean(disabled));
|
|
11819
11872
|
}
|
|
11820
11873
|
|
|
11821
11874
|
if ($$self.$$.dirty &
|
|
11822
11875
|
/*readonly*/
|
|
11823
|
-
|
|
11824
|
-
$$invalidate(
|
|
11876
|
+
16384) {
|
|
11877
|
+
$$invalidate(10, isReadonly = toBoolean(readonly));
|
|
11825
11878
|
}
|
|
11826
11879
|
|
|
11827
11880
|
if ($$self.$$.dirty &
|
|
11828
11881
|
/*showcounter*/
|
|
11829
|
-
|
|
11830
|
-
$$invalidate(
|
|
11882
|
+
65536) {
|
|
11883
|
+
$$invalidate(9, showCounter = toBoolean(showcounter));
|
|
11831
11884
|
}
|
|
11832
11885
|
};
|
|
11833
11886
|
|
|
11834
|
-
return [name, value, placeholder, rows, testid, width, maxcharcount, isDisabled, showCounter, isReadonly, isError, onChange, error, readonly, disabled, showcounter];
|
|
11887
|
+
return [name, value, placeholder, rows, testid, width, arialabel, maxcharcount, isDisabled, showCounter, isReadonly, isError, onChange, error, readonly, disabled, showcounter];
|
|
11835
11888
|
}
|
|
11836
11889
|
|
|
11837
11890
|
class TextArea extends SvelteElement {
|
|
@@ -11843,18 +11896,19 @@ class TextArea extends SvelteElement {
|
|
|
11843
11896
|
target: this.shadowRoot,
|
|
11844
11897
|
props: attribute_to_object(this.attributes),
|
|
11845
11898
|
customElement: true
|
|
11846
|
-
}, instance$7, create_fragment$
|
|
11899
|
+
}, instance$7, create_fragment$9, safe_not_equal, {
|
|
11847
11900
|
name: 0,
|
|
11848
11901
|
value: 1,
|
|
11849
11902
|
placeholder: 2,
|
|
11850
11903
|
rows: 3,
|
|
11851
11904
|
testid: 4,
|
|
11852
11905
|
width: 5,
|
|
11853
|
-
error:
|
|
11854
|
-
readonly:
|
|
11855
|
-
disabled:
|
|
11856
|
-
|
|
11857
|
-
|
|
11906
|
+
error: 13,
|
|
11907
|
+
readonly: 14,
|
|
11908
|
+
disabled: 15,
|
|
11909
|
+
arialabel: 6,
|
|
11910
|
+
showcounter: 16,
|
|
11911
|
+
maxcharcount: 7
|
|
11858
11912
|
}, null);
|
|
11859
11913
|
|
|
11860
11914
|
if (options) {
|
|
@@ -11870,7 +11924,7 @@ class TextArea extends SvelteElement {
|
|
|
11870
11924
|
}
|
|
11871
11925
|
|
|
11872
11926
|
static get observedAttributes() {
|
|
11873
|
-
return ["name", "value", "placeholder", "rows", "testid", "width", "error", "readonly", "disabled", "showcounter", "maxcharcount"];
|
|
11927
|
+
return ["name", "value", "placeholder", "rows", "testid", "width", "error", "readonly", "disabled", "arialabel", "showcounter", "maxcharcount"];
|
|
11874
11928
|
}
|
|
11875
11929
|
|
|
11876
11930
|
get name() {
|
|
@@ -11940,7 +11994,7 @@ class TextArea extends SvelteElement {
|
|
|
11940
11994
|
}
|
|
11941
11995
|
|
|
11942
11996
|
get error() {
|
|
11943
|
-
return this.$$.ctx[
|
|
11997
|
+
return this.$$.ctx[13];
|
|
11944
11998
|
}
|
|
11945
11999
|
|
|
11946
12000
|
set error(error) {
|
|
@@ -11951,7 +12005,7 @@ class TextArea extends SvelteElement {
|
|
|
11951
12005
|
}
|
|
11952
12006
|
|
|
11953
12007
|
get readonly() {
|
|
11954
|
-
return this.$$.ctx[
|
|
12008
|
+
return this.$$.ctx[14];
|
|
11955
12009
|
}
|
|
11956
12010
|
|
|
11957
12011
|
set readonly(readonly) {
|
|
@@ -11962,7 +12016,7 @@ class TextArea extends SvelteElement {
|
|
|
11962
12016
|
}
|
|
11963
12017
|
|
|
11964
12018
|
get disabled() {
|
|
11965
|
-
return this.$$.ctx[
|
|
12019
|
+
return this.$$.ctx[15];
|
|
11966
12020
|
}
|
|
11967
12021
|
|
|
11968
12022
|
set disabled(disabled) {
|
|
@@ -11972,8 +12026,19 @@ class TextArea extends SvelteElement {
|
|
|
11972
12026
|
flush();
|
|
11973
12027
|
}
|
|
11974
12028
|
|
|
12029
|
+
get arialabel() {
|
|
12030
|
+
return this.$$.ctx[6];
|
|
12031
|
+
}
|
|
12032
|
+
|
|
12033
|
+
set arialabel(arialabel) {
|
|
12034
|
+
this.$$set({
|
|
12035
|
+
arialabel
|
|
12036
|
+
});
|
|
12037
|
+
flush();
|
|
12038
|
+
}
|
|
12039
|
+
|
|
11975
12040
|
get showcounter() {
|
|
11976
|
-
return this.$$.ctx[
|
|
12041
|
+
return this.$$.ctx[16];
|
|
11977
12042
|
}
|
|
11978
12043
|
|
|
11979
12044
|
set showcounter(showcounter) {
|
|
@@ -11984,7 +12049,7 @@ class TextArea extends SvelteElement {
|
|
|
11984
12049
|
}
|
|
11985
12050
|
|
|
11986
12051
|
get maxcharcount() {
|
|
11987
|
-
return this.$$.ctx[
|
|
12052
|
+
return this.$$.ctx[7];
|
|
11988
12053
|
}
|
|
11989
12054
|
|
|
11990
12055
|
set maxcharcount(maxcharcount) {
|
|
@@ -11999,7 +12064,7 @@ class TextArea extends SvelteElement {
|
|
|
11999
12064
|
customElements.define("goa-textarea", TextArea);
|
|
12000
12065
|
/* libs/web-components/src/components/focus-trap/FocusTrap.svelte generated by Svelte v3.49.0 */
|
|
12001
12066
|
|
|
12002
|
-
function create_fragment$
|
|
12067
|
+
function create_fragment$8(ctx) {
|
|
12003
12068
|
let div;
|
|
12004
12069
|
return {
|
|
12005
12070
|
c() {
|
|
@@ -12221,7 +12286,7 @@ class FocusTrap extends SvelteElement {
|
|
|
12221
12286
|
target: this.shadowRoot,
|
|
12222
12287
|
props: attribute_to_object(this.attributes),
|
|
12223
12288
|
customElement: true
|
|
12224
|
-
}, instance$6, create_fragment$
|
|
12289
|
+
}, instance$6, create_fragment$8, safe_not_equal, {
|
|
12225
12290
|
active: 1
|
|
12226
12291
|
}, null);
|
|
12227
12292
|
|
|
@@ -12276,10 +12341,10 @@ function create_if_block$2(ctx) {
|
|
|
12276
12341
|
};
|
|
12277
12342
|
}
|
|
12278
12343
|
|
|
12279
|
-
function create_fragment$
|
|
12344
|
+
function create_fragment$7(ctx) {
|
|
12280
12345
|
var _ctx$;
|
|
12281
12346
|
|
|
12282
|
-
let
|
|
12347
|
+
let div4;
|
|
12283
12348
|
let div0;
|
|
12284
12349
|
let t0;
|
|
12285
12350
|
let t1;
|
|
@@ -12297,7 +12362,7 @@ function create_fragment$6(ctx) {
|
|
|
12297
12362
|
c() {
|
|
12298
12363
|
var _ctx$2, _ctx$3;
|
|
12299
12364
|
|
|
12300
|
-
|
|
12365
|
+
div4 = element("div");
|
|
12301
12366
|
div0 = element("div");
|
|
12302
12367
|
div0.innerHTML = `<slot name="nav"></slot>`;
|
|
12303
12368
|
t0 = space();
|
|
@@ -12329,25 +12394,25 @@ function create_fragment$6(ctx) {
|
|
|
12329
12394
|
toggle_class(div3, "with-meta-links",
|
|
12330
12395
|
/*metaLinks*/
|
|
12331
12396
|
(_ctx$3 = ctx[2]) === null || _ctx$3 === void 0 ? void 0 : _ctx$3.length);
|
|
12332
|
-
attr(
|
|
12397
|
+
attr(div4, "class", "app-footer");
|
|
12333
12398
|
},
|
|
12334
12399
|
|
|
12335
12400
|
m(target, anchor) {
|
|
12336
|
-
insert(target,
|
|
12337
|
-
append(
|
|
12338
|
-
append(
|
|
12339
|
-
if (if_block) if_block.m(
|
|
12340
|
-
append(
|
|
12341
|
-
append(
|
|
12401
|
+
insert(target, div4, anchor);
|
|
12402
|
+
append(div4, div0);
|
|
12403
|
+
append(div4, t0);
|
|
12404
|
+
if (if_block) if_block.m(div4, null);
|
|
12405
|
+
append(div4, t1);
|
|
12406
|
+
append(div4, div3);
|
|
12342
12407
|
append(div3, div1);
|
|
12343
12408
|
append(div3, t2);
|
|
12344
12409
|
append(div3, div2);
|
|
12345
12410
|
append(div2, a0);
|
|
12346
12411
|
append(div2, t3);
|
|
12347
12412
|
append(div2, a1);
|
|
12348
|
-
/*
|
|
12413
|
+
/*div4_binding*/
|
|
12349
12414
|
|
|
12350
|
-
ctx[4](
|
|
12415
|
+
ctx[4](div4);
|
|
12351
12416
|
},
|
|
12352
12417
|
|
|
12353
12418
|
p(ctx, [dirty]) {
|
|
@@ -12359,7 +12424,7 @@ function create_fragment$6(ctx) {
|
|
|
12359
12424
|
if (if_block) ;else {
|
|
12360
12425
|
if_block = create_if_block$2();
|
|
12361
12426
|
if_block.c();
|
|
12362
|
-
if_block.m(
|
|
12427
|
+
if_block.m(div4, t1);
|
|
12363
12428
|
}
|
|
12364
12429
|
} else if (if_block) {
|
|
12365
12430
|
if_block.d(1);
|
|
@@ -12391,9 +12456,9 @@ function create_fragment$6(ctx) {
|
|
|
12391
12456
|
o: noop,
|
|
12392
12457
|
|
|
12393
12458
|
d(detaching) {
|
|
12394
|
-
if (detaching) detach(
|
|
12459
|
+
if (detaching) detach(div4);
|
|
12395
12460
|
if (if_block) if_block.d();
|
|
12396
|
-
/*
|
|
12461
|
+
/*div4_binding*/
|
|
12397
12462
|
|
|
12398
12463
|
ctx[4](null);
|
|
12399
12464
|
}
|
|
@@ -12414,25 +12479,25 @@ function instance$5($$self, $$props, $$invalidate) {
|
|
|
12414
12479
|
$$invalidate(2, metaLinks = metaSlot.assignedElements());
|
|
12415
12480
|
});
|
|
12416
12481
|
|
|
12417
|
-
function
|
|
12482
|
+
function div4_binding($$value) {
|
|
12418
12483
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
12419
12484
|
rootEl = $$value;
|
|
12420
12485
|
$$invalidate(0, rootEl);
|
|
12421
12486
|
});
|
|
12422
12487
|
}
|
|
12423
12488
|
|
|
12424
|
-
return [rootEl, navLinks, metaLinks, year,
|
|
12489
|
+
return [rootEl, navLinks, metaLinks, year, div4_binding];
|
|
12425
12490
|
}
|
|
12426
12491
|
|
|
12427
12492
|
class Footer extends SvelteElement {
|
|
12428
12493
|
constructor(options) {
|
|
12429
12494
|
super();
|
|
12430
|
-
this.shadowRoot.innerHTML = `<style>.app-footer{background-color:var(--color-gray-100);padding:2rem;
|
|
12495
|
+
this.shadowRoot.innerHTML = `<style>.app-footer{background-color:var(--color-gray-100);padding:2rem;border-top:2px solid var(--color-gray-200);border-bottom:1rem solid var(--goa-color-brand)}.meta-section{display:flex;flex-direction:column;padding:1rem 0}.meta-section.with-meta-links{gap:2rem;justify-content:space-between}.meta-links{display:none}.with-meta-links .meta-links{display:block}.nav-links{display:flex;flex-direction:column;gap:2rem}.abgov{display:flex;flex-direction:column;justify-content:space-between;width:100%}@media(min-width: 640px){.meta-section{flex-direction:row;gap:2rem}.nav-links{flex-direction:row}.abgov{align-items:center;flex-direction:row-reverse}}.abgov.with-meta-links{gap:1rem;flex-direction:column;width:unset}@media(min-width: 640px){.abgov.with-meta-links{align-items:flex-end}}.goa-copyright{white-space:nowrap}a{color:var(--goa-color-text-secondary)}</style>`;
|
|
12431
12496
|
init(this, {
|
|
12432
12497
|
target: this.shadowRoot,
|
|
12433
12498
|
props: attribute_to_object(this.attributes),
|
|
12434
12499
|
customElement: true
|
|
12435
|
-
}, instance$5, create_fragment$
|
|
12500
|
+
}, instance$5, create_fragment$7, safe_not_equal, {}, null);
|
|
12436
12501
|
|
|
12437
12502
|
if (options) {
|
|
12438
12503
|
if (options.target) {
|
|
@@ -12542,7 +12607,7 @@ function create_each_block$1(ctx) {
|
|
|
12542
12607
|
};
|
|
12543
12608
|
}
|
|
12544
12609
|
|
|
12545
|
-
function create_fragment$
|
|
12610
|
+
function create_fragment$6(ctx) {
|
|
12546
12611
|
let section;
|
|
12547
12612
|
let t0;
|
|
12548
12613
|
let div;
|
|
@@ -12746,7 +12811,7 @@ class FooterNavSection extends SvelteElement {
|
|
|
12746
12811
|
target: this.shadowRoot,
|
|
12747
12812
|
props: attribute_to_object(this.attributes),
|
|
12748
12813
|
customElement: true
|
|
12749
|
-
}, instance$4, create_fragment$
|
|
12814
|
+
}, instance$4, create_fragment$6, safe_not_equal, {
|
|
12750
12815
|
name: 0,
|
|
12751
12816
|
maxcolumncount: 1
|
|
12752
12817
|
}, null);
|
|
@@ -12848,7 +12913,7 @@ function create_each_block(ctx) {
|
|
|
12848
12913
|
};
|
|
12849
12914
|
}
|
|
12850
12915
|
|
|
12851
|
-
function create_fragment$
|
|
12916
|
+
function create_fragment$5(ctx) {
|
|
12852
12917
|
let section;
|
|
12853
12918
|
let div;
|
|
12854
12919
|
let t;
|
|
@@ -12971,7 +13036,7 @@ class FooterMetaSection extends SvelteElement {
|
|
|
12971
13036
|
target: this.shadowRoot,
|
|
12972
13037
|
props: attribute_to_object(this.attributes),
|
|
12973
13038
|
customElement: true
|
|
12974
|
-
}, instance$3, create_fragment$
|
|
13039
|
+
}, instance$3, create_fragment$5, safe_not_equal, {}, null);
|
|
12975
13040
|
|
|
12976
13041
|
if (options) {
|
|
12977
13042
|
if (options.target) {
|
|
@@ -12985,7 +13050,7 @@ class FooterMetaSection extends SvelteElement {
|
|
|
12985
13050
|
customElements.define("goa-app-footer-meta-section", FooterMetaSection);
|
|
12986
13051
|
/* libs/web-components/src/components/flex-column/FlexColumn.svelte generated by Svelte v3.49.0 */
|
|
12987
13052
|
|
|
12988
|
-
function create_fragment$
|
|
13053
|
+
function create_fragment$4(ctx) {
|
|
12989
13054
|
let div;
|
|
12990
13055
|
let slot;
|
|
12991
13056
|
return {
|
|
@@ -13054,7 +13119,7 @@ class FlexColumn extends SvelteElement {
|
|
|
13054
13119
|
target: this.shadowRoot,
|
|
13055
13120
|
props: attribute_to_object(this.attributes),
|
|
13056
13121
|
customElement: true
|
|
13057
|
-
}, instance$2, create_fragment$
|
|
13122
|
+
}, instance$2, create_fragment$4, safe_not_equal, {
|
|
13058
13123
|
gap: 1
|
|
13059
13124
|
}, null);
|
|
13060
13125
|
|
|
@@ -13088,6 +13153,64 @@ class FlexColumn extends SvelteElement {
|
|
|
13088
13153
|
}
|
|
13089
13154
|
|
|
13090
13155
|
customElements.define("goa-flex-col", FlexColumn);
|
|
13156
|
+
/* libs/web-components/src/layouts/FullScreenNavbarLayout.svelte generated by Svelte v3.49.0 */
|
|
13157
|
+
|
|
13158
|
+
function create_fragment$3(ctx) {
|
|
13159
|
+
let div;
|
|
13160
|
+
return {
|
|
13161
|
+
c() {
|
|
13162
|
+
div = element("div");
|
|
13163
|
+
div.innerHTML = `<header class="header"><slot name="header"></slot></header>
|
|
13164
|
+
|
|
13165
|
+
<nav class="nav"><slot name="nav"></slot></nav>
|
|
13166
|
+
|
|
13167
|
+
<main><slot></slot></main>
|
|
13168
|
+
|
|
13169
|
+
<footer class="footer"><slot name="footer"></slot></footer>`;
|
|
13170
|
+
this.c = noop;
|
|
13171
|
+
attr(div, "class", "page");
|
|
13172
|
+
},
|
|
13173
|
+
|
|
13174
|
+
m(target, anchor) {
|
|
13175
|
+
insert(target, div, anchor);
|
|
13176
|
+
},
|
|
13177
|
+
|
|
13178
|
+
p: noop,
|
|
13179
|
+
i: noop,
|
|
13180
|
+
o: noop,
|
|
13181
|
+
|
|
13182
|
+
d(detaching) {
|
|
13183
|
+
if (detaching) detach(div);
|
|
13184
|
+
}
|
|
13185
|
+
|
|
13186
|
+
};
|
|
13187
|
+
}
|
|
13188
|
+
|
|
13189
|
+
class FullScreenNavbarLayout extends SvelteElement {
|
|
13190
|
+
constructor(options) {
|
|
13191
|
+
super();
|
|
13192
|
+
this.shadowRoot.innerHTML = `<style>.page{height:100vh;grid-template-columns:auto;grid-template-rows:min-content auto min-content;grid-template-areas:"header"
|
|
13193
|
+
"content"
|
|
13194
|
+
"nav"
|
|
13195
|
+
"footer";display:grid;place-content:stretch stretch;gap:0 0}@media(min-width: 640px){.page{grid-template-columns:300px auto;grid-template-rows:min-content auto min-content;grid-template-areas:"header header"
|
|
13196
|
+
"nav content"
|
|
13197
|
+
"footer footer"}}.header{grid-area:header}.footer{grid-area:footer}main{grid-area:content;justify-self:stretch;padding:1rem}.nav{grid-area:nav;padding:1rem;background-color:var(--color-gray-100)}</style>`;
|
|
13198
|
+
init(this, {
|
|
13199
|
+
target: this.shadowRoot,
|
|
13200
|
+
props: attribute_to_object(this.attributes),
|
|
13201
|
+
customElement: true
|
|
13202
|
+
}, null, create_fragment$3, safe_not_equal, {}, null);
|
|
13203
|
+
|
|
13204
|
+
if (options) {
|
|
13205
|
+
if (options.target) {
|
|
13206
|
+
insert(options.target, this, options.anchor);
|
|
13207
|
+
}
|
|
13208
|
+
}
|
|
13209
|
+
}
|
|
13210
|
+
|
|
13211
|
+
}
|
|
13212
|
+
|
|
13213
|
+
customElements.define("goa-layout-full-nav", FullScreenNavbarLayout);
|
|
13091
13214
|
/* libs/web-components/src/components/container/ContainerWrapper.test.svelte generated by Svelte v3.49.0 */
|
|
13092
13215
|
|
|
13093
13216
|
function create_if_block_1(ctx) {
|
|
@@ -13985,12 +14108,14 @@ const GoAContainer = ({
|
|
|
13985
14108
|
headingSize,
|
|
13986
14109
|
title,
|
|
13987
14110
|
colored: _colored = false,
|
|
14111
|
+
padding,
|
|
13988
14112
|
children,
|
|
13989
14113
|
actions,
|
|
13990
14114
|
variant: _variant = 'default'
|
|
13991
14115
|
}) => {
|
|
13992
14116
|
return jsxs("goa-container", Object.assign({
|
|
13993
14117
|
variant: _variant,
|
|
14118
|
+
padding: padding,
|
|
13994
14119
|
headingsize: headingSize,
|
|
13995
14120
|
colored: _colored
|
|
13996
14121
|
}, {
|