@abgov/web-components 1.0.0-alpha.139 → 1.0.0-alpha.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web-components.es.js +126 -59
- package/web-components.umd.js +52 -52
package/package.json
CHANGED
package/web-components.es.js
CHANGED
|
@@ -1209,7 +1209,7 @@ function create_else_block$3(ctx) {
|
|
|
1209
1209
|
};
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
|
-
// (
|
|
1212
|
+
// (45:2) {#if showIcon}
|
|
1213
1213
|
function create_if_block_1$a(ctx) {
|
|
1214
1214
|
let goa_icon;
|
|
1215
1215
|
|
|
@@ -1233,7 +1233,7 @@ function create_if_block_1$a(ctx) {
|
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
1235
|
|
|
1236
|
-
// (
|
|
1236
|
+
// (50:2) {#if content}
|
|
1237
1237
|
function create_if_block$g(ctx) {
|
|
1238
1238
|
let div;
|
|
1239
1239
|
let t;
|
|
@@ -1346,6 +1346,7 @@ function create_fragment$E(ctx) {
|
|
|
1346
1346
|
function instance$z($$self, $$props, $$invalidate) {
|
|
1347
1347
|
let showIcon;
|
|
1348
1348
|
let iconType;
|
|
1349
|
+
const [Types, validateType] = typeValidator("Badge type", ["success", "important", "information", "emergency", "dark", "midtone", "light"], true);
|
|
1349
1350
|
let { type } = $$props;
|
|
1350
1351
|
let { testid = "" } = $$props;
|
|
1351
1352
|
let { content = "" } = $$props;
|
|
@@ -1356,6 +1357,8 @@ function instance$z($$self, $$props, $$invalidate) {
|
|
|
1356
1357
|
let { ml = null } = $$props;
|
|
1357
1358
|
|
|
1358
1359
|
onMount(() => {
|
|
1360
|
+
validateType(type);
|
|
1361
|
+
|
|
1359
1362
|
if (!showIcon && !content) {
|
|
1360
1363
|
console.warn("GoABadge must have either then content or icon property set");
|
|
1361
1364
|
}
|
|
@@ -2462,6 +2465,7 @@ function create_fragment$A(ctx) {
|
|
|
2462
2465
|
|
|
2463
2466
|
function instance$v($$self, $$props, $$invalidate) {
|
|
2464
2467
|
let iconType;
|
|
2468
|
+
const [Types, validateType] = typeValidator("Callout type", ["emergency", "important", "information", "event", "success"], true);
|
|
2465
2469
|
let { mt = null } = $$props;
|
|
2466
2470
|
let { mr = null } = $$props;
|
|
2467
2471
|
let { mb = "l" } = $$props;
|
|
@@ -2470,6 +2474,10 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
|
2470
2474
|
let { heading = "" } = $$props;
|
|
2471
2475
|
let { testid = "" } = $$props;
|
|
2472
2476
|
|
|
2477
|
+
onMount(() => {
|
|
2478
|
+
validateType(type);
|
|
2479
|
+
});
|
|
2480
|
+
|
|
2473
2481
|
$$self.$$set = $$props => {
|
|
2474
2482
|
if ('mt' in $$props) $$invalidate(0, mt = $$props.mt);
|
|
2475
2483
|
if ('mr' in $$props) $$invalidate(1, mr = $$props.mr);
|
|
@@ -4114,7 +4122,7 @@ function create_if_block$b(ctx) {
|
|
|
4114
4122
|
};
|
|
4115
4123
|
}
|
|
4116
4124
|
|
|
4117
|
-
// (
|
|
4125
|
+
// (43:19)
|
|
4118
4126
|
function create_if_block_3$4(ctx) {
|
|
4119
4127
|
let div;
|
|
4120
4128
|
let goa_spinner;
|
|
@@ -4178,7 +4186,7 @@ function create_if_block_3$4(ctx) {
|
|
|
4178
4186
|
};
|
|
4179
4187
|
}
|
|
4180
4188
|
|
|
4181
|
-
// (
|
|
4189
|
+
// (32:2) {#if fullscreen}
|
|
4182
4190
|
function create_if_block_1$6(ctx) {
|
|
4183
4191
|
let div;
|
|
4184
4192
|
let goa_spinner;
|
|
@@ -4262,7 +4270,7 @@ function create_if_block_1$6(ctx) {
|
|
|
4262
4270
|
};
|
|
4263
4271
|
}
|
|
4264
4272
|
|
|
4265
|
-
// (
|
|
4273
|
+
// (46:6) {#if message}
|
|
4266
4274
|
function create_if_block_4$2(ctx) {
|
|
4267
4275
|
let div;
|
|
4268
4276
|
let t;
|
|
@@ -4286,7 +4294,7 @@ function create_if_block_4$2(ctx) {
|
|
|
4286
4294
|
};
|
|
4287
4295
|
}
|
|
4288
4296
|
|
|
4289
|
-
// (
|
|
4297
|
+
// (39:6) {#if message}
|
|
4290
4298
|
function create_if_block_2$5(ctx) {
|
|
4291
4299
|
let div;
|
|
4292
4300
|
let t;
|
|
@@ -4368,6 +4376,8 @@ function create_fragment$s(ctx) {
|
|
|
4368
4376
|
|
|
4369
4377
|
function instance$q($$self, $$props, $$invalidate) {
|
|
4370
4378
|
let isVisible;
|
|
4379
|
+
const [Variants, validateVariant] = typeValidator("Circular progress variant", ["fullscreen", "inline"]);
|
|
4380
|
+
const [Sizes, validateSize] = typeValidator("Button size", ["small", "large"]);
|
|
4371
4381
|
let { variant = "inline" } = $$props;
|
|
4372
4382
|
let { size = "large" } = $$props;
|
|
4373
4383
|
let { message = "" } = $$props;
|
|
@@ -4378,6 +4388,8 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
4378
4388
|
let inline;
|
|
4379
4389
|
|
|
4380
4390
|
onMount(async () => {
|
|
4391
|
+
validateVariant(variant);
|
|
4392
|
+
validateSize(size);
|
|
4381
4393
|
$$invalidate(2, spinnerSize = size === "small" ? "large" : "xlarge");
|
|
4382
4394
|
$$invalidate(3, fullscreen = variant === "fullscreen");
|
|
4383
4395
|
$$invalidate(4, inline = variant === "inline");
|
|
@@ -4580,6 +4592,9 @@ function create_fragment$r(ctx) {
|
|
|
4580
4592
|
}
|
|
4581
4593
|
|
|
4582
4594
|
function instance$p($$self, $$props, $$invalidate) {
|
|
4595
|
+
const [Types, validateType] = typeValidator("Container type", ["interactive", "info", "error", "success", "important", "non-interactive"]);
|
|
4596
|
+
const [Accents, validateAccent] = typeValidator("Container accent", ["thick", "thin", "filled"]);
|
|
4597
|
+
const [Paddings, validatePadding] = typeValidator("Container padding", ["relaxed", "compact"]);
|
|
4583
4598
|
let { type = "interactive" } = $$props;
|
|
4584
4599
|
let { accent = "filled" } = $$props;
|
|
4585
4600
|
let { padding = "relaxed" } = $$props;
|
|
@@ -4589,6 +4604,12 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
4589
4604
|
let { mb = "m" } = $$props;
|
|
4590
4605
|
let { ml = null } = $$props;
|
|
4591
4606
|
|
|
4607
|
+
onMount(() => {
|
|
4608
|
+
validateType(type);
|
|
4609
|
+
validateAccent(accent);
|
|
4610
|
+
validatePadding(padding);
|
|
4611
|
+
});
|
|
4612
|
+
|
|
4592
4613
|
$$self.$$set = $$props => {
|
|
4593
4614
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
4594
4615
|
if ('accent' in $$props) $$invalidate(1, accent = $$props.accent);
|
|
@@ -7024,7 +7045,7 @@ function create_if_block_2$4(ctx) {
|
|
|
7024
7045
|
};
|
|
7025
7046
|
}
|
|
7026
7047
|
|
|
7027
|
-
// (
|
|
7048
|
+
// (34:6) {#if requirement && REQUIREMENT_TYPES.includes(requirement)}
|
|
7028
7049
|
function create_if_block_3$3(ctx) {
|
|
7029
7050
|
let em;
|
|
7030
7051
|
let t0;
|
|
@@ -7053,7 +7074,7 @@ function create_if_block_3$3(ctx) {
|
|
|
7053
7074
|
};
|
|
7054
7075
|
}
|
|
7055
7076
|
|
|
7056
|
-
// (
|
|
7077
|
+
// (42:2) {#if error}
|
|
7057
7078
|
function create_if_block_1$4(ctx) {
|
|
7058
7079
|
let div;
|
|
7059
7080
|
let goa_icon;
|
|
@@ -7087,7 +7108,7 @@ function create_if_block_1$4(ctx) {
|
|
|
7087
7108
|
};
|
|
7088
7109
|
}
|
|
7089
7110
|
|
|
7090
|
-
// (
|
|
7111
|
+
// (48:2) {#if helptext}
|
|
7091
7112
|
function create_if_block$7(ctx) {
|
|
7092
7113
|
let div;
|
|
7093
7114
|
let t;
|
|
@@ -7209,27 +7230,19 @@ function create_fragment$j(ctx) {
|
|
|
7209
7230
|
}
|
|
7210
7231
|
|
|
7211
7232
|
function instance$h($$self, $$props, $$invalidate) {
|
|
7233
|
+
const [REQUIREMENT_TYPES, validateRequirementType] = typeValidator("Requirement type", ["optional", "required"], false);
|
|
7212
7234
|
let { testid = "" } = $$props;
|
|
7213
7235
|
let { mt = null } = $$props;
|
|
7214
7236
|
let { mr = null } = $$props;
|
|
7215
7237
|
let { mb = null } = $$props;
|
|
7216
7238
|
let { ml = null } = $$props;
|
|
7217
|
-
const REQUIREMENT_TYPES = ["optional", "required", ""];
|
|
7218
|
-
|
|
7219
|
-
// type check function
|
|
7220
|
-
function isRequirementType(value) {
|
|
7221
|
-
return REQUIREMENT_TYPES.includes(value);
|
|
7222
|
-
}
|
|
7223
|
-
|
|
7224
7239
|
let { label = "" } = $$props;
|
|
7225
7240
|
let { helptext = "" } = $$props;
|
|
7226
7241
|
let { error = "" } = $$props;
|
|
7227
7242
|
let { requirement = "" } = $$props;
|
|
7228
7243
|
|
|
7229
7244
|
onMount(() => {
|
|
7230
|
-
|
|
7231
|
-
console.error("Invalid requirement type", requirement);
|
|
7232
|
-
}
|
|
7245
|
+
validateRequirementType(requirement);
|
|
7233
7246
|
});
|
|
7234
7247
|
|
|
7235
7248
|
$$self.$$set = $$props => {
|
|
@@ -7792,6 +7805,7 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
7792
7805
|
let isDisabled;
|
|
7793
7806
|
let isInverted;
|
|
7794
7807
|
let _paddingSize;
|
|
7808
|
+
const [Variants, validateVariant] = typeValidator("Icon Button Variant", ["color", "nocolor", "dark"], true);
|
|
7795
7809
|
let { icon } = $$props;
|
|
7796
7810
|
let { size = "medium" } = $$props;
|
|
7797
7811
|
let { theme = "outline" } = $$props;
|
|
@@ -7805,6 +7819,10 @@ function instance$e($$self, $$props, $$invalidate) {
|
|
|
7805
7819
|
let { mb = null } = $$props;
|
|
7806
7820
|
let { ml = null } = $$props;
|
|
7807
7821
|
|
|
7822
|
+
onMount(() => {
|
|
7823
|
+
validateVariant(variant);
|
|
7824
|
+
});
|
|
7825
|
+
|
|
7808
7826
|
$$self.$$set = $$props => {
|
|
7809
7827
|
if ('icon' in $$props) $$invalidate(0, icon = $$props.icon);
|
|
7810
7828
|
if ('size' in $$props) $$invalidate(1, size = $$props.size);
|
|
@@ -8412,7 +8430,7 @@ function create_if_block_4$1(ctx) {
|
|
|
8412
8430
|
};
|
|
8413
8431
|
}
|
|
8414
8432
|
|
|
8415
|
-
// (
|
|
8433
|
+
// (100:4) {#if leadingicon}
|
|
8416
8434
|
function create_if_block_3$2(ctx) {
|
|
8417
8435
|
let goa_icon;
|
|
8418
8436
|
|
|
@@ -8437,7 +8455,7 @@ function create_if_block_3$2(ctx) {
|
|
|
8437
8455
|
};
|
|
8438
8456
|
}
|
|
8439
8457
|
|
|
8440
|
-
// (
|
|
8458
|
+
// (130:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
8441
8459
|
function create_if_block_2$3(ctx) {
|
|
8442
8460
|
let goa_icon;
|
|
8443
8461
|
|
|
@@ -8463,7 +8481,7 @@ function create_if_block_2$3(ctx) {
|
|
|
8463
8481
|
};
|
|
8464
8482
|
}
|
|
8465
8483
|
|
|
8466
|
-
// (
|
|
8484
|
+
// (140:4) {#if trailingicon && handlesTrailingIconClick}
|
|
8467
8485
|
function create_if_block_1$3(ctx) {
|
|
8468
8486
|
let goa_icon_button;
|
|
8469
8487
|
let mounted;
|
|
@@ -8503,7 +8521,7 @@ function create_if_block_1$3(ctx) {
|
|
|
8503
8521
|
};
|
|
8504
8522
|
}
|
|
8505
8523
|
|
|
8506
|
-
// (
|
|
8524
|
+
// (152:4) {#if suffix}
|
|
8507
8525
|
function create_if_block$5(ctx) {
|
|
8508
8526
|
let span;
|
|
8509
8527
|
let t;
|
|
@@ -8805,6 +8823,24 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
|
8805
8823
|
let isReadonly;
|
|
8806
8824
|
let isError;
|
|
8807
8825
|
let isDisabled;
|
|
8826
|
+
|
|
8827
|
+
const [Types, validateType] = typeValidator("Input type", [
|
|
8828
|
+
"text",
|
|
8829
|
+
"number",
|
|
8830
|
+
"password",
|
|
8831
|
+
"email",
|
|
8832
|
+
"date",
|
|
8833
|
+
"datetime-local",
|
|
8834
|
+
"month",
|
|
8835
|
+
"range",
|
|
8836
|
+
"search",
|
|
8837
|
+
"tel",
|
|
8838
|
+
"time",
|
|
8839
|
+
"url",
|
|
8840
|
+
"week"
|
|
8841
|
+
]);
|
|
8842
|
+
|
|
8843
|
+
const [AutoCapitalize, validateAutoCapitalize] = typeValidator("Input auto capitalize", ["on", "off", "none", "sentences", "words", "characters"]);
|
|
8808
8844
|
let { type = "text" } = $$props;
|
|
8809
8845
|
let { name = "" } = $$props;
|
|
8810
8846
|
let { value = "" } = $$props;
|
|
@@ -8847,6 +8883,9 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
|
8847
8883
|
}
|
|
8848
8884
|
|
|
8849
8885
|
onMount(() => {
|
|
8886
|
+
validateType(type);
|
|
8887
|
+
validateAutoCapitalize(autocapitalize);
|
|
8888
|
+
|
|
8850
8889
|
if (prefix != "" || suffix != "") {
|
|
8851
8890
|
console.warn("GoAInput [prefix] and [suffix] properties are deprecated. Instead use leadingContent and trailingContent.");
|
|
8852
8891
|
}
|
|
@@ -9309,7 +9348,7 @@ function create_if_block_3$1(ctx) {
|
|
|
9309
9348
|
};
|
|
9310
9349
|
}
|
|
9311
9350
|
|
|
9312
|
-
// (
|
|
9351
|
+
// (41:2) {#if ["alpha", "beta"].includes(type)}
|
|
9313
9352
|
function create_if_block_1$2(ctx) {
|
|
9314
9353
|
let div0;
|
|
9315
9354
|
let t0_value = capitalize(/*type*/ ctx[0]) + "";
|
|
@@ -9378,7 +9417,7 @@ function create_if_block_1$2(ctx) {
|
|
|
9378
9417
|
};
|
|
9379
9418
|
}
|
|
9380
9419
|
|
|
9381
|
-
// (
|
|
9420
|
+
// (50:6) {#if feedbackurl}
|
|
9382
9421
|
function create_if_block_2$2(ctx) {
|
|
9383
9422
|
let span;
|
|
9384
9423
|
let t0;
|
|
@@ -9411,7 +9450,7 @@ function create_if_block_2$2(ctx) {
|
|
|
9411
9450
|
};
|
|
9412
9451
|
}
|
|
9413
9452
|
|
|
9414
|
-
// (
|
|
9453
|
+
// (56:2) {#if version}
|
|
9415
9454
|
function create_if_block$4(ctx) {
|
|
9416
9455
|
let div;
|
|
9417
9456
|
let t;
|
|
@@ -9528,10 +9567,15 @@ function capitalize(val) {
|
|
|
9528
9567
|
}
|
|
9529
9568
|
|
|
9530
9569
|
function instance$b($$self, $$props, $$invalidate) {
|
|
9570
|
+
const [Types, validateType] = typeValidator("Microsite header type", ["live", "alpha", "beta"], true);
|
|
9531
9571
|
let { type } = $$props;
|
|
9532
9572
|
let { version = "" } = $$props;
|
|
9533
9573
|
let { feedbackurl = "" } = $$props;
|
|
9534
9574
|
|
|
9575
|
+
onMount(() => {
|
|
9576
|
+
validateType(type);
|
|
9577
|
+
});
|
|
9578
|
+
|
|
9535
9579
|
$$self.$$set = $$props => {
|
|
9536
9580
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
9537
9581
|
if ('version' in $$props) $$invalidate(1, version = $$props.version);
|
|
@@ -9813,7 +9857,7 @@ function create_if_block$3(ctx) {
|
|
|
9813
9857
|
};
|
|
9814
9858
|
}
|
|
9815
9859
|
|
|
9816
|
-
// (
|
|
9860
|
+
// (67:8) {#if calloutvariant !== null}
|
|
9817
9861
|
function create_if_block_4(ctx) {
|
|
9818
9862
|
let div;
|
|
9819
9863
|
let goa_icon;
|
|
@@ -9857,7 +9901,7 @@ function create_if_block_4(ctx) {
|
|
|
9857
9901
|
};
|
|
9858
9902
|
}
|
|
9859
9903
|
|
|
9860
|
-
// (
|
|
9904
|
+
// (76:10) {#if heading}
|
|
9861
9905
|
function create_if_block_3(ctx) {
|
|
9862
9906
|
let div;
|
|
9863
9907
|
let t;
|
|
@@ -9882,7 +9926,7 @@ function create_if_block_3(ctx) {
|
|
|
9882
9926
|
};
|
|
9883
9927
|
}
|
|
9884
9928
|
|
|
9885
|
-
// (
|
|
9929
|
+
// (79:10) {#if isClosable}
|
|
9886
9930
|
function create_if_block_2$1(ctx) {
|
|
9887
9931
|
let div;
|
|
9888
9932
|
let goa_icon_button;
|
|
@@ -9916,7 +9960,7 @@ function create_if_block_2$1(ctx) {
|
|
|
9916
9960
|
};
|
|
9917
9961
|
}
|
|
9918
9962
|
|
|
9919
|
-
// (
|
|
9963
|
+
// (91:12) {#if isScrollable}
|
|
9920
9964
|
function create_if_block_1$1(ctx) {
|
|
9921
9965
|
let goa_scrollable;
|
|
9922
9966
|
|
|
@@ -9998,6 +10042,7 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
9998
10042
|
let _transitionTime;
|
|
9999
10043
|
let iconType;
|
|
10000
10044
|
const [CALLOUT_VARIANT, validateCalloutVariant] = typeValidator("Callout variant", ["emergency", "important", "information", "success", "event"]);
|
|
10045
|
+
const [Transitions, validateTransition] = typeValidator("Modal transition", ["fast", "slow", "none"]);
|
|
10001
10046
|
let { heading = "" } = $$props;
|
|
10002
10047
|
let { closable = "false" } = $$props;
|
|
10003
10048
|
let { open = "false" } = $$props;
|
|
@@ -10016,6 +10061,7 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
10016
10061
|
|
|
10017
10062
|
onMount(() => {
|
|
10018
10063
|
validateCalloutVariant(calloutvariant);
|
|
10064
|
+
validateTransition(transition);
|
|
10019
10065
|
});
|
|
10020
10066
|
|
|
10021
10067
|
$$self.$$set = $$props => {
|
|
@@ -10324,20 +10370,12 @@ function create_fragment$b(ctx) {
|
|
|
10324
10370
|
|
|
10325
10371
|
function instance$9($$self, $$props, $$invalidate) {
|
|
10326
10372
|
let iconType;
|
|
10373
|
+
const [Types, validateType] = typeValidator("Notification type", ["emergency", "important", "information", "event"], true);
|
|
10327
10374
|
let { type = "" } = $$props;
|
|
10328
|
-
const NOTIFICATION_TYPES = ["emergency", "important", "information", "event"];
|
|
10329
|
-
|
|
10330
|
-
// type check function
|
|
10331
|
-
function isNotificationType(value) {
|
|
10332
|
-
return NOTIFICATION_TYPES.includes(value);
|
|
10333
|
-
}
|
|
10334
|
-
|
|
10335
10375
|
let show = true;
|
|
10336
10376
|
|
|
10337
10377
|
onMount(() => {
|
|
10338
|
-
|
|
10339
|
-
console.error("Invalid notification type");
|
|
10340
|
-
}
|
|
10378
|
+
validateType(type);
|
|
10341
10379
|
});
|
|
10342
10380
|
|
|
10343
10381
|
function close() {
|
|
@@ -10534,11 +10572,11 @@ customElements.define("goa-page-block", PageBlock);
|
|
|
10534
10572
|
|
|
10535
10573
|
function get_each_context$1(ctx, list, i) {
|
|
10536
10574
|
const child_ctx = ctx.slice();
|
|
10537
|
-
child_ctx[
|
|
10575
|
+
child_ctx[22] = list[i];
|
|
10538
10576
|
return child_ctx;
|
|
10539
10577
|
}
|
|
10540
10578
|
|
|
10541
|
-
// (
|
|
10579
|
+
// (66:2) {#each options as option (option.value)}
|
|
10542
10580
|
function create_each_block$1(key_1, ctx) {
|
|
10543
10581
|
let label;
|
|
10544
10582
|
let input;
|
|
@@ -10549,7 +10587,7 @@ function create_each_block$1(key_1, ctx) {
|
|
|
10549
10587
|
let div;
|
|
10550
10588
|
let t1;
|
|
10551
10589
|
let span;
|
|
10552
|
-
let t2_value = (/*option*/ ctx[
|
|
10590
|
+
let t2_value = (/*option*/ ctx[22].label || /*option*/ ctx[22].value) + "";
|
|
10553
10591
|
let t2;
|
|
10554
10592
|
let t3;
|
|
10555
10593
|
let label_data_testid_value;
|
|
@@ -10557,7 +10595,7 @@ function create_each_block$1(key_1, ctx) {
|
|
|
10557
10595
|
let dispose;
|
|
10558
10596
|
|
|
10559
10597
|
function change_handler() {
|
|
10560
|
-
return /*change_handler*/ ctx[18](/*option*/ ctx[
|
|
10598
|
+
return /*change_handler*/ ctx[18](/*option*/ ctx[22]);
|
|
10561
10599
|
}
|
|
10562
10600
|
|
|
10563
10601
|
return {
|
|
@@ -10574,13 +10612,13 @@ function create_each_block$1(key_1, ctx) {
|
|
|
10574
10612
|
t3 = space();
|
|
10575
10613
|
attr(input, "type", "radio");
|
|
10576
10614
|
attr(input, "name", /*name*/ ctx[1]);
|
|
10577
|
-
input.value = input_value_value = /*option*/ ctx[
|
|
10615
|
+
input.value = input_value_value = /*option*/ ctx[22].value;
|
|
10578
10616
|
input.disabled = /*isDisabled*/ ctx[12];
|
|
10579
|
-
input.checked = input_checked_value = /*option*/ ctx[
|
|
10617
|
+
input.checked = input_checked_value = /*option*/ ctx[22].value === /*value*/ ctx[0];
|
|
10580
10618
|
attr(input, "aria-label", input_aria_label_value = /*arialabel*/ ctx[4] || /*name*/ ctx[1]);
|
|
10581
10619
|
attr(div, "class", "goa-radio-icon");
|
|
10582
10620
|
attr(span, "class", "goa-radio-label");
|
|
10583
|
-
attr(label, "data-testid", label_data_testid_value = "radio-option-" + /*option*/ ctx[
|
|
10621
|
+
attr(label, "data-testid", label_data_testid_value = "radio-option-" + /*option*/ ctx[22].value);
|
|
10584
10622
|
attr(label, "class", "goa-radio");
|
|
10585
10623
|
toggle_class(label, "goa-radio--disabled", /*isDisabled*/ ctx[12]);
|
|
10586
10624
|
toggle_class(label, "goa-radio--error", /*isError*/ ctx[10]);
|
|
@@ -10608,7 +10646,7 @@ function create_each_block$1(key_1, ctx) {
|
|
|
10608
10646
|
attr(input, "name", /*name*/ ctx[1]);
|
|
10609
10647
|
}
|
|
10610
10648
|
|
|
10611
|
-
if (dirty & /*options*/ 512 && input_value_value !== (input_value_value = /*option*/ ctx[
|
|
10649
|
+
if (dirty & /*options*/ 512 && input_value_value !== (input_value_value = /*option*/ ctx[22].value)) {
|
|
10612
10650
|
input.value = input_value_value;
|
|
10613
10651
|
}
|
|
10614
10652
|
|
|
@@ -10616,7 +10654,7 @@ function create_each_block$1(key_1, ctx) {
|
|
|
10616
10654
|
input.disabled = /*isDisabled*/ ctx[12];
|
|
10617
10655
|
}
|
|
10618
10656
|
|
|
10619
|
-
if (dirty & /*options, value*/ 513 && input_checked_value !== (input_checked_value = /*option*/ ctx[
|
|
10657
|
+
if (dirty & /*options, value*/ 513 && input_checked_value !== (input_checked_value = /*option*/ ctx[22].value === /*value*/ ctx[0])) {
|
|
10620
10658
|
input.checked = input_checked_value;
|
|
10621
10659
|
}
|
|
10622
10660
|
|
|
@@ -10624,9 +10662,9 @@ function create_each_block$1(key_1, ctx) {
|
|
|
10624
10662
|
attr(input, "aria-label", input_aria_label_value);
|
|
10625
10663
|
}
|
|
10626
10664
|
|
|
10627
|
-
if (dirty & /*options*/ 512 && t2_value !== (t2_value = (/*option*/ ctx[
|
|
10665
|
+
if (dirty & /*options*/ 512 && t2_value !== (t2_value = (/*option*/ ctx[22].label || /*option*/ ctx[22].value) + "")) set_data(t2, t2_value);
|
|
10628
10666
|
|
|
10629
|
-
if (dirty & /*options*/ 512 && label_data_testid_value !== (label_data_testid_value = "radio-option-" + /*option*/ ctx[
|
|
10667
|
+
if (dirty & /*options*/ 512 && label_data_testid_value !== (label_data_testid_value = "radio-option-" + /*option*/ ctx[22].value)) {
|
|
10630
10668
|
attr(label, "data-testid", label_data_testid_value);
|
|
10631
10669
|
}
|
|
10632
10670
|
|
|
@@ -10655,7 +10693,7 @@ function create_fragment$9(ctx) {
|
|
|
10655
10693
|
let div_style_value;
|
|
10656
10694
|
let div_class_value;
|
|
10657
10695
|
let each_value = /*options*/ ctx[9];
|
|
10658
|
-
const get_key = ctx => /*option*/ ctx[
|
|
10696
|
+
const get_key = ctx => /*option*/ ctx[22].value;
|
|
10659
10697
|
|
|
10660
10698
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
10661
10699
|
let child_ctx = get_each_context$1(ctx, each_value, i);
|
|
@@ -10723,6 +10761,7 @@ function create_fragment$9(ctx) {
|
|
|
10723
10761
|
|
|
10724
10762
|
function instance$7($$self, $$props, $$invalidate) {
|
|
10725
10763
|
let isDisabled;
|
|
10764
|
+
const [Orientations, validateOrientation] = typeValidator("Radio group orientation", ["vertical", "horizontal"]);
|
|
10726
10765
|
let { name } = $$props;
|
|
10727
10766
|
let { value } = $$props;
|
|
10728
10767
|
let { orientation = "vertical" } = $$props;
|
|
@@ -10753,6 +10792,10 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
10753
10792
|
deleteContext(name);
|
|
10754
10793
|
});
|
|
10755
10794
|
|
|
10795
|
+
onMount(() => {
|
|
10796
|
+
validateOrientation(orientation);
|
|
10797
|
+
});
|
|
10798
|
+
|
|
10756
10799
|
const change_handler = option => onChange(option.value);
|
|
10757
10800
|
|
|
10758
10801
|
function div_binding($$value) {
|
|
@@ -11247,11 +11290,11 @@ customElements.define("goa-scrollable", Scrollable);
|
|
|
11247
11290
|
|
|
11248
11291
|
function get_each_context(ctx, list, i) {
|
|
11249
11292
|
const child_ctx = ctx.slice();
|
|
11250
|
-
child_ctx[
|
|
11293
|
+
child_ctx[13] = list[i];
|
|
11251
11294
|
return child_ctx;
|
|
11252
11295
|
}
|
|
11253
11296
|
|
|
11254
|
-
// (
|
|
11297
|
+
// (55:2) {:else}
|
|
11255
11298
|
function create_else_block(ctx) {
|
|
11256
11299
|
let div;
|
|
11257
11300
|
let div_class_value;
|
|
@@ -11277,7 +11320,7 @@ function create_else_block(ctx) {
|
|
|
11277
11320
|
};
|
|
11278
11321
|
}
|
|
11279
11322
|
|
|
11280
|
-
// (
|
|
11323
|
+
// (51:29)
|
|
11281
11324
|
function create_if_block_2(ctx) {
|
|
11282
11325
|
let each_1_anchor;
|
|
11283
11326
|
let current;
|
|
@@ -11361,7 +11404,7 @@ function create_if_block_2(ctx) {
|
|
|
11361
11404
|
};
|
|
11362
11405
|
}
|
|
11363
11406
|
|
|
11364
|
-
// (
|
|
11407
|
+
// (41:31)
|
|
11365
11408
|
function create_if_block_1(ctx) {
|
|
11366
11409
|
let div2;
|
|
11367
11410
|
let div0;
|
|
@@ -11451,7 +11494,7 @@ function create_if_block_1(ctx) {
|
|
|
11451
11494
|
};
|
|
11452
11495
|
}
|
|
11453
11496
|
|
|
11454
|
-
// (
|
|
11497
|
+
// (30:2) {#if type === "card"}
|
|
11455
11498
|
function create_if_block$1(ctx) {
|
|
11456
11499
|
let div1;
|
|
11457
11500
|
let skeleton0;
|
|
@@ -11543,7 +11586,7 @@ function create_if_block$1(ctx) {
|
|
|
11543
11586
|
};
|
|
11544
11587
|
}
|
|
11545
11588
|
|
|
11546
|
-
// (
|
|
11589
|
+
// (52:4) {#each Array(linecount) as _item}
|
|
11547
11590
|
function create_each_block(ctx) {
|
|
11548
11591
|
let skeleton;
|
|
11549
11592
|
let current;
|
|
@@ -11669,8 +11712,27 @@ function create_fragment$6(ctx) {
|
|
|
11669
11712
|
}
|
|
11670
11713
|
|
|
11671
11714
|
function instance$4($$self, $$props, $$invalidate) {
|
|
11715
|
+
const [Types, validateType] = typeValidator(
|
|
11716
|
+
"Skeleton type",
|
|
11717
|
+
[
|
|
11718
|
+
"image",
|
|
11719
|
+
"text",
|
|
11720
|
+
"title",
|
|
11721
|
+
"text-small",
|
|
11722
|
+
"avatar",
|
|
11723
|
+
"header",
|
|
11724
|
+
"paragraph",
|
|
11725
|
+
"thumbnail",
|
|
11726
|
+
"card",
|
|
11727
|
+
"profile",
|
|
11728
|
+
"lines"
|
|
11729
|
+
],
|
|
11730
|
+
true
|
|
11731
|
+
);
|
|
11732
|
+
|
|
11733
|
+
const [Sizes, validateSize] = typeValidator("Skeleton size", ["1", "2", "3", "4"]);
|
|
11672
11734
|
let { maxwidth = "" } = $$props;
|
|
11673
|
-
let { size = 1 } = $$props;
|
|
11735
|
+
let { size = "1" } = $$props;
|
|
11674
11736
|
let { linecount = 3 } = $$props;
|
|
11675
11737
|
let { type } = $$props;
|
|
11676
11738
|
let { testid = "" } = $$props;
|
|
@@ -11679,6 +11741,11 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
|
11679
11741
|
let { mb = null } = $$props;
|
|
11680
11742
|
let { ml = null } = $$props;
|
|
11681
11743
|
|
|
11744
|
+
onMount(() => {
|
|
11745
|
+
validateType(type);
|
|
11746
|
+
validateSize(size);
|
|
11747
|
+
});
|
|
11748
|
+
|
|
11682
11749
|
$$self.$$set = $$props => {
|
|
11683
11750
|
if ('maxwidth' in $$props) $$invalidate(0, maxwidth = $$props.maxwidth);
|
|
11684
11751
|
if ('size' in $$props) $$invalidate(1, size = $$props.size);
|