@abgov/web-components 1.0.0-alpha.26 → 1.0.0-alpha.29
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 +233 -143
- package/web-components.umd.js +7 -6
package/web-components.es.js
CHANGED
|
@@ -809,7 +809,6 @@ customElements.define("goa-page-block", PageBlock);
|
|
|
809
809
|
/* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.44.3 */
|
|
810
810
|
|
|
811
811
|
function create_fragment$v(ctx) {
|
|
812
|
-
let goa_page_block;
|
|
813
812
|
let div1;
|
|
814
813
|
let a;
|
|
815
814
|
let img0;
|
|
@@ -825,7 +824,6 @@ function create_fragment$v(ctx) {
|
|
|
825
824
|
|
|
826
825
|
return {
|
|
827
826
|
c() {
|
|
828
|
-
goa_page_block = element("goa-page-block");
|
|
829
827
|
div1 = element("div");
|
|
830
828
|
a = element("a");
|
|
831
829
|
img0 = element("img");
|
|
@@ -851,8 +849,7 @@ function create_fragment$v(ctx) {
|
|
|
851
849
|
attr(div1, "data-testid", /*testid*/ ctx[2]);
|
|
852
850
|
},
|
|
853
851
|
m(target, anchor) {
|
|
854
|
-
insert(target,
|
|
855
|
-
append(goa_page_block, div1);
|
|
852
|
+
insert(target, div1, anchor);
|
|
856
853
|
append(div1, a);
|
|
857
854
|
append(a, img0);
|
|
858
855
|
append(a, t0);
|
|
@@ -877,7 +874,7 @@ function create_fragment$v(ctx) {
|
|
|
877
874
|
i: noop,
|
|
878
875
|
o: noop,
|
|
879
876
|
d(detaching) {
|
|
880
|
-
if (detaching) detach(
|
|
877
|
+
if (detaching) detach(div1);
|
|
881
878
|
}
|
|
882
879
|
};
|
|
883
880
|
}
|
|
@@ -2104,7 +2101,7 @@ function create_if_block_1$8(ctx) {
|
|
|
2104
2101
|
};
|
|
2105
2102
|
}
|
|
2106
2103
|
|
|
2107
|
-
// (
|
|
2104
|
+
// (50:4) {#if isIndeterminate}
|
|
2108
2105
|
function create_if_block$b(ctx) {
|
|
2109
2106
|
let svg;
|
|
2110
2107
|
let rect;
|
|
@@ -2144,8 +2141,8 @@ function create_fragment$l(ctx) {
|
|
|
2144
2141
|
let dispose;
|
|
2145
2142
|
|
|
2146
2143
|
function select_block_type(ctx, dirty) {
|
|
2147
|
-
if (/*isIndeterminate*/ ctx[
|
|
2148
|
-
if (/*isChecked*/ ctx[
|
|
2144
|
+
if (/*isIndeterminate*/ ctx[5]) return create_if_block$b;
|
|
2145
|
+
if (/*isChecked*/ ctx[4]) return create_if_block_1$8;
|
|
2149
2146
|
}
|
|
2150
2147
|
|
|
2151
2148
|
let current_block_type = select_block_type(ctx);
|
|
@@ -2161,24 +2158,24 @@ function create_fragment$l(ctx) {
|
|
|
2161
2158
|
t1 = space();
|
|
2162
2159
|
div1 = element("div");
|
|
2163
2160
|
slot = element("slot");
|
|
2164
|
-
t2 = text(/*text*/ ctx[
|
|
2161
|
+
t2 = text(/*text*/ ctx[1]);
|
|
2165
2162
|
this.c = noop;
|
|
2166
|
-
attr(input, "id", /*id*/ ctx[
|
|
2167
|
-
attr(input, "data-testid", /*testid*/ ctx[
|
|
2168
|
-
attr(input, "name", /*name*/ ctx[
|
|
2169
|
-
input.checked = /*isChecked*/ ctx[
|
|
2170
|
-
input.disabled = /*isDisabled*/ ctx[
|
|
2163
|
+
attr(input, "id", /*id*/ ctx[8]);
|
|
2164
|
+
attr(input, "data-testid", /*testid*/ ctx[3]);
|
|
2165
|
+
attr(input, "name", /*name*/ ctx[0]);
|
|
2166
|
+
input.checked = /*isChecked*/ ctx[4];
|
|
2167
|
+
input.disabled = /*isDisabled*/ ctx[7];
|
|
2171
2168
|
attr(input, "type", "checkbox");
|
|
2172
|
-
input.value = input_value_value = `${/*value*/ ctx[
|
|
2169
|
+
input.value = input_value_value = `${/*value*/ ctx[2]}`;
|
|
2173
2170
|
attr(div0, "class", "goa-checkbox-container");
|
|
2174
|
-
toggle_class(div0, "goa-checkbox--selected", /*isChecked*/ ctx[
|
|
2171
|
+
toggle_class(div0, "goa-checkbox--selected", /*isChecked*/ ctx[4]);
|
|
2175
2172
|
attr(slot, "name", "main");
|
|
2176
2173
|
attr(div1, "class", "goa-checkbox-text");
|
|
2177
2174
|
attr(div1, "data-testid", "text");
|
|
2178
|
-
attr(label, "for", /*id*/ ctx[
|
|
2175
|
+
attr(label, "for", /*id*/ ctx[8]);
|
|
2179
2176
|
attr(label, "class", "goa-checkbox");
|
|
2180
|
-
toggle_class(label, "goa-checkbox--disabled", /*isDisabled*/ ctx[
|
|
2181
|
-
toggle_class(label, "goa-checkbox--error", /*isError*/ ctx[
|
|
2177
|
+
toggle_class(label, "goa-checkbox--disabled", /*isDisabled*/ ctx[7]);
|
|
2178
|
+
toggle_class(label, "goa-checkbox--error", /*isError*/ ctx[6]);
|
|
2182
2179
|
},
|
|
2183
2180
|
m(target, anchor) {
|
|
2184
2181
|
insert(target, label, anchor);
|
|
@@ -2197,27 +2194,27 @@ function create_fragment$l(ctx) {
|
|
|
2197
2194
|
}
|
|
2198
2195
|
},
|
|
2199
2196
|
p(ctx, [dirty]) {
|
|
2200
|
-
if (dirty & /*id*/
|
|
2201
|
-
attr(input, "id", /*id*/ ctx[
|
|
2197
|
+
if (dirty & /*id*/ 256) {
|
|
2198
|
+
attr(input, "id", /*id*/ ctx[8]);
|
|
2202
2199
|
}
|
|
2203
2200
|
|
|
2204
|
-
if (dirty & /*testid*/
|
|
2205
|
-
attr(input, "data-testid", /*testid*/ ctx[
|
|
2201
|
+
if (dirty & /*testid*/ 8) {
|
|
2202
|
+
attr(input, "data-testid", /*testid*/ ctx[3]);
|
|
2206
2203
|
}
|
|
2207
2204
|
|
|
2208
|
-
if (dirty & /*name*/
|
|
2209
|
-
attr(input, "name", /*name*/ ctx[
|
|
2205
|
+
if (dirty & /*name*/ 1) {
|
|
2206
|
+
attr(input, "name", /*name*/ ctx[0]);
|
|
2210
2207
|
}
|
|
2211
2208
|
|
|
2212
|
-
if (dirty & /*isChecked*/
|
|
2213
|
-
input.checked = /*isChecked*/ ctx[
|
|
2209
|
+
if (dirty & /*isChecked*/ 16) {
|
|
2210
|
+
input.checked = /*isChecked*/ ctx[4];
|
|
2214
2211
|
}
|
|
2215
2212
|
|
|
2216
|
-
if (dirty & /*isDisabled*/
|
|
2217
|
-
input.disabled = /*isDisabled*/ ctx[
|
|
2213
|
+
if (dirty & /*isDisabled*/ 128) {
|
|
2214
|
+
input.disabled = /*isDisabled*/ ctx[7];
|
|
2218
2215
|
}
|
|
2219
2216
|
|
|
2220
|
-
if (dirty & /*value*/
|
|
2217
|
+
if (dirty & /*value*/ 4 && input_value_value !== (input_value_value = `${/*value*/ ctx[2]}`)) {
|
|
2221
2218
|
input.value = input_value_value;
|
|
2222
2219
|
}
|
|
2223
2220
|
|
|
@@ -2231,22 +2228,22 @@ function create_fragment$l(ctx) {
|
|
|
2231
2228
|
}
|
|
2232
2229
|
}
|
|
2233
2230
|
|
|
2234
|
-
if (dirty & /*isChecked*/
|
|
2235
|
-
toggle_class(div0, "goa-checkbox--selected", /*isChecked*/ ctx[
|
|
2231
|
+
if (dirty & /*isChecked*/ 16) {
|
|
2232
|
+
toggle_class(div0, "goa-checkbox--selected", /*isChecked*/ ctx[4]);
|
|
2236
2233
|
}
|
|
2237
2234
|
|
|
2238
|
-
if (dirty & /*text*/
|
|
2235
|
+
if (dirty & /*text*/ 2) set_data(t2, /*text*/ ctx[1]);
|
|
2239
2236
|
|
|
2240
|
-
if (dirty & /*id*/
|
|
2241
|
-
attr(label, "for", /*id*/ ctx[
|
|
2237
|
+
if (dirty & /*id*/ 256) {
|
|
2238
|
+
attr(label, "for", /*id*/ ctx[8]);
|
|
2242
2239
|
}
|
|
2243
2240
|
|
|
2244
|
-
if (dirty & /*isDisabled*/
|
|
2245
|
-
toggle_class(label, "goa-checkbox--disabled", /*isDisabled*/ ctx[
|
|
2241
|
+
if (dirty & /*isDisabled*/ 128) {
|
|
2242
|
+
toggle_class(label, "goa-checkbox--disabled", /*isDisabled*/ ctx[7]);
|
|
2246
2243
|
}
|
|
2247
2244
|
|
|
2248
|
-
if (dirty & /*isError*/
|
|
2249
|
-
toggle_class(label, "goa-checkbox--error", /*isError*/ ctx[
|
|
2245
|
+
if (dirty & /*isError*/ 64) {
|
|
2246
|
+
toggle_class(label, "goa-checkbox--error", /*isError*/ ctx[6]);
|
|
2250
2247
|
}
|
|
2251
2248
|
},
|
|
2252
2249
|
i: noop,
|
|
@@ -2265,12 +2262,12 @@ function create_fragment$l(ctx) {
|
|
|
2265
2262
|
}
|
|
2266
2263
|
|
|
2267
2264
|
function instance$k($$self, $$props, $$invalidate) {
|
|
2265
|
+
let id;
|
|
2268
2266
|
let isDisabled;
|
|
2269
2267
|
let isError;
|
|
2270
2268
|
let isChecked;
|
|
2271
2269
|
let isIndeterminate;
|
|
2272
2270
|
let { name } = $$props;
|
|
2273
|
-
let { id = "" } = $$props;
|
|
2274
2271
|
let { text = "" } = $$props;
|
|
2275
2272
|
let { value = "" } = $$props;
|
|
2276
2273
|
let { checked } = $$props;
|
|
@@ -2297,38 +2294,36 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
2297
2294
|
}
|
|
2298
2295
|
|
|
2299
2296
|
$$self.$$set = $$props => {
|
|
2300
|
-
if ('name' in $$props) $$invalidate(
|
|
2301
|
-
if ('
|
|
2302
|
-
if ('
|
|
2303
|
-
if ('value' in $$props) $$invalidate(3, value = $$props.value);
|
|
2297
|
+
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
|
2298
|
+
if ('text' in $$props) $$invalidate(1, text = $$props.text);
|
|
2299
|
+
if ('value' in $$props) $$invalidate(2, value = $$props.value);
|
|
2304
2300
|
if ('checked' in $$props) $$invalidate(10, checked = $$props.checked);
|
|
2305
2301
|
if ('disabled' in $$props) $$invalidate(11, disabled = $$props.disabled);
|
|
2306
2302
|
if ('error' in $$props) $$invalidate(12, error = $$props.error);
|
|
2307
|
-
if ('testid' in $$props) $$invalidate(
|
|
2303
|
+
if ('testid' in $$props) $$invalidate(3, testid = $$props.testid);
|
|
2308
2304
|
};
|
|
2309
2305
|
|
|
2310
2306
|
$$self.$$.update = () => {
|
|
2311
|
-
if ($$self.$$.dirty & /*
|
|
2312
|
-
$$invalidate(
|
|
2307
|
+
if ($$self.$$.dirty & /*name*/ 1) {
|
|
2308
|
+
$$invalidate(8, id = `id-${name}`);
|
|
2313
2309
|
}
|
|
2314
2310
|
|
|
2315
2311
|
if ($$self.$$.dirty & /*disabled*/ 2048) {
|
|
2316
|
-
$$invalidate(
|
|
2312
|
+
$$invalidate(7, isDisabled = toBoolean(disabled));
|
|
2317
2313
|
}
|
|
2318
2314
|
|
|
2319
2315
|
if ($$self.$$.dirty & /*error*/ 4096) {
|
|
2320
|
-
$$invalidate(
|
|
2316
|
+
$$invalidate(6, isError = toBoolean(error));
|
|
2321
2317
|
}
|
|
2322
2318
|
|
|
2323
2319
|
if ($$self.$$.dirty & /*checked*/ 1024) {
|
|
2324
|
-
$$invalidate(
|
|
2320
|
+
$$invalidate(4, isChecked = toBoolean(checked));
|
|
2325
2321
|
}
|
|
2326
2322
|
};
|
|
2327
2323
|
|
|
2328
|
-
$$invalidate(
|
|
2324
|
+
$$invalidate(5, isIndeterminate = false); // Desighn review. To be built with TreeView Later
|
|
2329
2325
|
|
|
2330
2326
|
return [
|
|
2331
|
-
id,
|
|
2332
2327
|
name,
|
|
2333
2328
|
text,
|
|
2334
2329
|
value,
|
|
@@ -2337,6 +2332,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
2337
2332
|
isIndeterminate,
|
|
2338
2333
|
isError,
|
|
2339
2334
|
isDisabled,
|
|
2335
|
+
id,
|
|
2340
2336
|
onChange,
|
|
2341
2337
|
checked,
|
|
2342
2338
|
disabled,
|
|
@@ -2360,14 +2356,13 @@ class Checkbox extends SvelteElement {
|
|
|
2360
2356
|
create_fragment$l,
|
|
2361
2357
|
safe_not_equal,
|
|
2362
2358
|
{
|
|
2363
|
-
name:
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
value: 3,
|
|
2359
|
+
name: 0,
|
|
2360
|
+
text: 1,
|
|
2361
|
+
value: 2,
|
|
2367
2362
|
checked: 10,
|
|
2368
2363
|
disabled: 11,
|
|
2369
2364
|
error: 12,
|
|
2370
|
-
testid:
|
|
2365
|
+
testid: 3
|
|
2371
2366
|
},
|
|
2372
2367
|
null
|
|
2373
2368
|
);
|
|
@@ -2385,11 +2380,11 @@ class Checkbox extends SvelteElement {
|
|
|
2385
2380
|
}
|
|
2386
2381
|
|
|
2387
2382
|
static get observedAttributes() {
|
|
2388
|
-
return ["name", "
|
|
2383
|
+
return ["name", "text", "value", "checked", "disabled", "error", "testid"];
|
|
2389
2384
|
}
|
|
2390
2385
|
|
|
2391
2386
|
get name() {
|
|
2392
|
-
return this.$$.ctx[
|
|
2387
|
+
return this.$$.ctx[0];
|
|
2393
2388
|
}
|
|
2394
2389
|
|
|
2395
2390
|
set name(name) {
|
|
@@ -2397,17 +2392,8 @@ class Checkbox extends SvelteElement {
|
|
|
2397
2392
|
flush();
|
|
2398
2393
|
}
|
|
2399
2394
|
|
|
2400
|
-
get id() {
|
|
2401
|
-
return this.$$.ctx[0];
|
|
2402
|
-
}
|
|
2403
|
-
|
|
2404
|
-
set id(id) {
|
|
2405
|
-
this.$$set({ id });
|
|
2406
|
-
flush();
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
2395
|
get text() {
|
|
2410
|
-
return this.$$.ctx[
|
|
2396
|
+
return this.$$.ctx[1];
|
|
2411
2397
|
}
|
|
2412
2398
|
|
|
2413
2399
|
set text(text) {
|
|
@@ -2416,7 +2402,7 @@ class Checkbox extends SvelteElement {
|
|
|
2416
2402
|
}
|
|
2417
2403
|
|
|
2418
2404
|
get value() {
|
|
2419
|
-
return this.$$.ctx[
|
|
2405
|
+
return this.$$.ctx[2];
|
|
2420
2406
|
}
|
|
2421
2407
|
|
|
2422
2408
|
set value(value) {
|
|
@@ -2452,7 +2438,7 @@ class Checkbox extends SvelteElement {
|
|
|
2452
2438
|
}
|
|
2453
2439
|
|
|
2454
2440
|
get testid() {
|
|
2455
|
-
return this.$$.ctx[
|
|
2441
|
+
return this.$$.ctx[3];
|
|
2456
2442
|
}
|
|
2457
2443
|
|
|
2458
2444
|
set testid(testid) {
|
|
@@ -2641,7 +2627,7 @@ const messageChannel$1 = writable({});
|
|
|
2641
2627
|
|
|
2642
2628
|
/* libs/web-components/src/components/dropdown/Dropdown.svelte generated by Svelte v3.44.3 */
|
|
2643
2629
|
|
|
2644
|
-
function create_if_block_3$
|
|
2630
|
+
function create_if_block_3$4(ctx) {
|
|
2645
2631
|
let div;
|
|
2646
2632
|
let div_data_testid_value;
|
|
2647
2633
|
let mounted;
|
|
@@ -2839,7 +2825,7 @@ function create_fragment$j(ctx) {
|
|
|
2839
2825
|
let t0;
|
|
2840
2826
|
let div0;
|
|
2841
2827
|
let t1;
|
|
2842
|
-
let if_block0 = /*isMenuVisible*/ ctx[5] && create_if_block_3$
|
|
2828
|
+
let if_block0 = /*isMenuVisible*/ ctx[5] && create_if_block_3$4(ctx);
|
|
2843
2829
|
let if_block1 = (!/*isMenuVisible*/ ctx[5] || !/*isAutoComplete*/ ctx[9]) && create_if_block_2$5(ctx);
|
|
2844
2830
|
let if_block2 = /*isMenuVisible*/ ctx[5] && create_if_block$a(ctx);
|
|
2845
2831
|
|
|
@@ -2870,7 +2856,7 @@ function create_fragment$j(ctx) {
|
|
|
2870
2856
|
if (if_block0) {
|
|
2871
2857
|
if_block0.p(ctx, dirty);
|
|
2872
2858
|
} else {
|
|
2873
|
-
if_block0 = create_if_block_3$
|
|
2859
|
+
if_block0 = create_if_block_3$4(ctx);
|
|
2874
2860
|
if_block0.c();
|
|
2875
2861
|
if_block0.m(div1, t0);
|
|
2876
2862
|
}
|
|
@@ -3694,7 +3680,7 @@ function create_if_block_2$4(ctx) {
|
|
|
3694
3680
|
let label_1;
|
|
3695
3681
|
let t0;
|
|
3696
3682
|
let t1;
|
|
3697
|
-
let if_block = /*isOptional*/ ctx[4] && create_if_block_3$
|
|
3683
|
+
let if_block = /*isOptional*/ ctx[4] && create_if_block_3$3();
|
|
3698
3684
|
|
|
3699
3685
|
return {
|
|
3700
3686
|
c() {
|
|
@@ -3715,7 +3701,7 @@ function create_if_block_2$4(ctx) {
|
|
|
3715
3701
|
|
|
3716
3702
|
if (/*isOptional*/ ctx[4]) {
|
|
3717
3703
|
if (if_block) ; else {
|
|
3718
|
-
if_block = create_if_block_3$
|
|
3704
|
+
if_block = create_if_block_3$3();
|
|
3719
3705
|
if_block.c();
|
|
3720
3706
|
if_block.m(label_1, null);
|
|
3721
3707
|
}
|
|
@@ -3736,7 +3722,7 @@ function create_if_block_2$4(ctx) {
|
|
|
3736
3722
|
}
|
|
3737
3723
|
|
|
3738
3724
|
// (18:6) {#if isOptional}
|
|
3739
|
-
function create_if_block_3$
|
|
3725
|
+
function create_if_block_3$3(ctx) {
|
|
3740
3726
|
let em;
|
|
3741
3727
|
|
|
3742
3728
|
return {
|
|
@@ -5272,11 +5258,11 @@ function create_if_block$6(ctx) {
|
|
|
5272
5258
|
let current;
|
|
5273
5259
|
let mounted;
|
|
5274
5260
|
let dispose;
|
|
5275
|
-
let if_block0 = /*title*/ ctx[0] && create_if_block_3$
|
|
5276
|
-
let if_block1 = /*isClosable*/ ctx[
|
|
5261
|
+
let if_block0 = /*title*/ ctx[0] && create_if_block_3$2(ctx);
|
|
5262
|
+
let if_block1 = /*isClosable*/ ctx[4] && create_if_block_2$2(ctx);
|
|
5277
5263
|
|
|
5278
5264
|
function select_block_type(ctx, dirty) {
|
|
5279
|
-
if (/*isScrollable*/ ctx[
|
|
5265
|
+
if (/*isScrollable*/ ctx[5]) return create_if_block_1$4;
|
|
5280
5266
|
return create_else_block$2;
|
|
5281
5267
|
}
|
|
5282
5268
|
|
|
@@ -5300,10 +5286,14 @@ function create_if_block$6(ctx) {
|
|
|
5300
5286
|
t4 = space();
|
|
5301
5287
|
div2 = element("div");
|
|
5302
5288
|
div2.innerHTML = `<slot name="actions"></slot>`;
|
|
5289
|
+
attr(div0, "data-testid", "modal-overlay");
|
|
5303
5290
|
attr(div0, "class", "modal-overlay");
|
|
5291
|
+
attr(div1, "data-testid", "modal-content");
|
|
5304
5292
|
attr(div1, "class", "modal-content");
|
|
5293
|
+
attr(div2, "data-testid", "modal-actions");
|
|
5305
5294
|
attr(div2, "class", "modal-actions");
|
|
5306
5295
|
attr(div3, "class", "modal-pane");
|
|
5296
|
+
attr(div4, "data-testid", "modal");
|
|
5307
5297
|
attr(div4, "class", "modal");
|
|
5308
5298
|
attr(div4, "style", div4_style_value = "--scroll-offset: " + /*scrollOffset*/ ctx[3] + "px; " + (/*width*/ ctx[1] && `--width: ${/*width*/ ctx[1]};`) + ";");
|
|
5309
5299
|
},
|
|
@@ -5326,7 +5316,7 @@ function create_if_block$6(ctx) {
|
|
|
5326
5316
|
|
|
5327
5317
|
if (!mounted) {
|
|
5328
5318
|
dispose = [
|
|
5329
|
-
listen(div0, "click", close),
|
|
5319
|
+
listen(div0, "click", /*close*/ ctx[6]),
|
|
5330
5320
|
action_destroyer(noscroll_action = noScroll.call(null, div4, { enable: /*isOpen*/ ctx[2] }))
|
|
5331
5321
|
];
|
|
5332
5322
|
|
|
@@ -5338,7 +5328,7 @@ function create_if_block$6(ctx) {
|
|
|
5338
5328
|
if (if_block0) {
|
|
5339
5329
|
if_block0.p(ctx, dirty);
|
|
5340
5330
|
} else {
|
|
5341
|
-
if_block0 = create_if_block_3$
|
|
5331
|
+
if_block0 = create_if_block_3$2(ctx);
|
|
5342
5332
|
if_block0.c();
|
|
5343
5333
|
if_block0.m(div3, t1);
|
|
5344
5334
|
}
|
|
@@ -5347,11 +5337,11 @@ function create_if_block$6(ctx) {
|
|
|
5347
5337
|
if_block0 = null;
|
|
5348
5338
|
}
|
|
5349
5339
|
|
|
5350
|
-
if (/*isClosable*/ ctx[
|
|
5340
|
+
if (/*isClosable*/ ctx[4]) {
|
|
5351
5341
|
if (if_block1) {
|
|
5352
5342
|
if_block1.p(ctx, dirty);
|
|
5353
5343
|
} else {
|
|
5354
|
-
if_block1 = create_if_block_2$2();
|
|
5344
|
+
if_block1 = create_if_block_2$2(ctx);
|
|
5355
5345
|
if_block1.c();
|
|
5356
5346
|
if_block1.m(div3, t2);
|
|
5357
5347
|
}
|
|
@@ -5413,8 +5403,8 @@ function create_if_block$6(ctx) {
|
|
|
5413
5403
|
};
|
|
5414
5404
|
}
|
|
5415
5405
|
|
|
5416
|
-
// (
|
|
5417
|
-
function create_if_block_3$
|
|
5406
|
+
// (49:6) {#if title}
|
|
5407
|
+
function create_if_block_3$2(ctx) {
|
|
5418
5408
|
let div;
|
|
5419
5409
|
let t;
|
|
5420
5410
|
|
|
@@ -5422,6 +5412,7 @@ function create_if_block_3$1(ctx) {
|
|
|
5422
5412
|
c() {
|
|
5423
5413
|
div = element("div");
|
|
5424
5414
|
t = text(/*title*/ ctx[0]);
|
|
5415
|
+
attr(div, "data-testid", "modal-title");
|
|
5425
5416
|
attr(div, "class", "modal-title");
|
|
5426
5417
|
},
|
|
5427
5418
|
m(target, anchor) {
|
|
@@ -5437,7 +5428,7 @@ function create_if_block_3$1(ctx) {
|
|
|
5437
5428
|
};
|
|
5438
5429
|
}
|
|
5439
5430
|
|
|
5440
|
-
// (
|
|
5431
|
+
// (52:6) {#if isClosable}
|
|
5441
5432
|
function create_if_block_2$2(ctx) {
|
|
5442
5433
|
let div;
|
|
5443
5434
|
let goa_icon_button;
|
|
@@ -5448,6 +5439,7 @@ function create_if_block_2$2(ctx) {
|
|
|
5448
5439
|
c() {
|
|
5449
5440
|
div = element("div");
|
|
5450
5441
|
goa_icon_button = element("goa-icon-button");
|
|
5442
|
+
set_custom_element_data(goa_icon_button, "testid", "modal-close-button");
|
|
5451
5443
|
set_custom_element_data(goa_icon_button, "type", "close");
|
|
5452
5444
|
attr(div, "class", "modal-close");
|
|
5453
5445
|
},
|
|
@@ -5456,7 +5448,7 @@ function create_if_block_2$2(ctx) {
|
|
|
5456
5448
|
append(div, goa_icon_button);
|
|
5457
5449
|
|
|
5458
5450
|
if (!mounted) {
|
|
5459
|
-
dispose = listen(goa_icon_button, "click", close);
|
|
5451
|
+
dispose = listen(goa_icon_button, "click", /*close*/ ctx[6]);
|
|
5460
5452
|
mounted = true;
|
|
5461
5453
|
}
|
|
5462
5454
|
},
|
|
@@ -5469,7 +5461,7 @@ function create_if_block_2$2(ctx) {
|
|
|
5469
5461
|
};
|
|
5470
5462
|
}
|
|
5471
5463
|
|
|
5472
|
-
// (
|
|
5464
|
+
// (62:8) {:else}
|
|
5473
5465
|
function create_else_block$2(ctx) {
|
|
5474
5466
|
let div;
|
|
5475
5467
|
|
|
@@ -5488,7 +5480,7 @@ function create_else_block$2(ctx) {
|
|
|
5488
5480
|
};
|
|
5489
5481
|
}
|
|
5490
5482
|
|
|
5491
|
-
// (
|
|
5483
|
+
// (58:8) {#if isScrollable}
|
|
5492
5484
|
function create_if_block_1$4(ctx) {
|
|
5493
5485
|
let goa_scrollable;
|
|
5494
5486
|
|
|
@@ -5565,11 +5557,6 @@ function create_fragment$b(ctx) {
|
|
|
5565
5557
|
};
|
|
5566
5558
|
}
|
|
5567
5559
|
|
|
5568
|
-
function close(e) {
|
|
5569
|
-
e.target.dispatchEvent(new CustomEvent("_close", { composed: true }));
|
|
5570
|
-
e.stopPropagation();
|
|
5571
|
-
}
|
|
5572
|
-
|
|
5573
5560
|
function instance$a($$self, $$props, $$invalidate) {
|
|
5574
5561
|
let isClosable;
|
|
5575
5562
|
let isScrollable;
|
|
@@ -5581,24 +5568,33 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
5581
5568
|
let { width } = $$props;
|
|
5582
5569
|
let scrollOffset = 0;
|
|
5583
5570
|
|
|
5571
|
+
function close(e) {
|
|
5572
|
+
if (!isClosable) {
|
|
5573
|
+
return;
|
|
5574
|
+
}
|
|
5575
|
+
|
|
5576
|
+
e.target.dispatchEvent(new CustomEvent("_close", { composed: true }));
|
|
5577
|
+
e.stopPropagation();
|
|
5578
|
+
}
|
|
5579
|
+
|
|
5584
5580
|
$$self.$$set = $$props => {
|
|
5585
5581
|
if ('title' in $$props) $$invalidate(0, title = $$props.title);
|
|
5586
|
-
if ('closable' in $$props) $$invalidate(
|
|
5587
|
-
if ('scrollable' in $$props) $$invalidate(
|
|
5588
|
-
if ('open' in $$props) $$invalidate(
|
|
5582
|
+
if ('closable' in $$props) $$invalidate(7, closable = $$props.closable);
|
|
5583
|
+
if ('scrollable' in $$props) $$invalidate(8, scrollable = $$props.scrollable);
|
|
5584
|
+
if ('open' in $$props) $$invalidate(9, open = $$props.open);
|
|
5589
5585
|
if ('width' in $$props) $$invalidate(1, width = $$props.width);
|
|
5590
5586
|
};
|
|
5591
5587
|
|
|
5592
5588
|
$$self.$$.update = () => {
|
|
5593
|
-
if ($$self.$$.dirty & /*closable*/
|
|
5594
|
-
$$invalidate(
|
|
5589
|
+
if ($$self.$$.dirty & /*closable*/ 128) {
|
|
5590
|
+
$$invalidate(4, isClosable = toBoolean(closable));
|
|
5595
5591
|
}
|
|
5596
5592
|
|
|
5597
|
-
if ($$self.$$.dirty & /*scrollable*/
|
|
5598
|
-
$$invalidate(
|
|
5593
|
+
if ($$self.$$.dirty & /*scrollable*/ 256) {
|
|
5594
|
+
$$invalidate(5, isScrollable = toBoolean(scrollable));
|
|
5599
5595
|
}
|
|
5600
5596
|
|
|
5601
|
-
if ($$self.$$.dirty & /*open*/
|
|
5597
|
+
if ($$self.$$.dirty & /*open*/ 512) {
|
|
5602
5598
|
$$invalidate(2, isOpen = toBoolean(open));
|
|
5603
5599
|
}
|
|
5604
5600
|
|
|
@@ -5616,8 +5612,9 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
5616
5612
|
width,
|
|
5617
5613
|
isOpen,
|
|
5618
5614
|
scrollOffset,
|
|
5619
|
-
isScrollable,
|
|
5620
5615
|
isClosable,
|
|
5616
|
+
isScrollable,
|
|
5617
|
+
close,
|
|
5621
5618
|
closable,
|
|
5622
5619
|
scrollable,
|
|
5623
5620
|
open
|
|
@@ -5641,9 +5638,9 @@ class Modal extends SvelteElement {
|
|
|
5641
5638
|
safe_not_equal,
|
|
5642
5639
|
{
|
|
5643
5640
|
title: 0,
|
|
5644
|
-
closable:
|
|
5645
|
-
scrollable:
|
|
5646
|
-
open:
|
|
5641
|
+
closable: 7,
|
|
5642
|
+
scrollable: 8,
|
|
5643
|
+
open: 9,
|
|
5647
5644
|
width: 1
|
|
5648
5645
|
},
|
|
5649
5646
|
null
|
|
@@ -5675,7 +5672,7 @@ class Modal extends SvelteElement {
|
|
|
5675
5672
|
}
|
|
5676
5673
|
|
|
5677
5674
|
get closable() {
|
|
5678
|
-
return this.$$.ctx[
|
|
5675
|
+
return this.$$.ctx[7];
|
|
5679
5676
|
}
|
|
5680
5677
|
|
|
5681
5678
|
set closable(closable) {
|
|
@@ -5684,7 +5681,7 @@ class Modal extends SvelteElement {
|
|
|
5684
5681
|
}
|
|
5685
5682
|
|
|
5686
5683
|
get scrollable() {
|
|
5687
|
-
return this.$$.ctx[
|
|
5684
|
+
return this.$$.ctx[8];
|
|
5688
5685
|
}
|
|
5689
5686
|
|
|
5690
5687
|
set scrollable(scrollable) {
|
|
@@ -5693,7 +5690,7 @@ class Modal extends SvelteElement {
|
|
|
5693
5690
|
}
|
|
5694
5691
|
|
|
5695
5692
|
get open() {
|
|
5696
|
-
return this.$$.ctx[
|
|
5693
|
+
return this.$$.ctx[9];
|
|
5697
5694
|
}
|
|
5698
5695
|
|
|
5699
5696
|
set open(open) {
|
|
@@ -6060,7 +6057,7 @@ function create_else_block$1(ctx) {
|
|
|
6060
6057
|
let goa_spinner;
|
|
6061
6058
|
let goa_spinner_progress_value;
|
|
6062
6059
|
let t;
|
|
6063
|
-
let if_block = /*message*/ ctx[1] && create_if_block_3(ctx);
|
|
6060
|
+
let if_block = /*message*/ ctx[1] && create_if_block_3$1(ctx);
|
|
6064
6061
|
|
|
6065
6062
|
return {
|
|
6066
6063
|
c() {
|
|
@@ -6092,7 +6089,7 @@ function create_else_block$1(ctx) {
|
|
|
6092
6089
|
if (if_block) {
|
|
6093
6090
|
if_block.p(ctx, dirty);
|
|
6094
6091
|
} else {
|
|
6095
|
-
if_block = create_if_block_3(ctx);
|
|
6092
|
+
if_block = create_if_block_3$1(ctx);
|
|
6096
6093
|
if_block.c();
|
|
6097
6094
|
if_block.m(div, null);
|
|
6098
6095
|
}
|
|
@@ -6201,7 +6198,7 @@ function create_if_block_1$3(ctx) {
|
|
|
6201
6198
|
}
|
|
6202
6199
|
|
|
6203
6200
|
// (30:6) {#if message}
|
|
6204
|
-
function create_if_block_3(ctx) {
|
|
6201
|
+
function create_if_block_3$1(ctx) {
|
|
6205
6202
|
let div;
|
|
6206
6203
|
let t;
|
|
6207
6204
|
|
|
@@ -6460,23 +6457,28 @@ function create_fragment$7(ctx) {
|
|
|
6460
6457
|
slot = element("slot");
|
|
6461
6458
|
this.c = noop;
|
|
6462
6459
|
attr(div0, "class", div0_class_value = `goa-radio-group--${/*orientation*/ ctx[0]}`);
|
|
6460
|
+
attr(div0, "data-testid", /*testid*/ ctx[1]);
|
|
6463
6461
|
},
|
|
6464
6462
|
m(target, anchor) {
|
|
6465
6463
|
insert(target, div1, anchor);
|
|
6466
6464
|
append(div1, div0);
|
|
6467
6465
|
append(div0, slot);
|
|
6468
|
-
/*div0_binding*/ ctx[
|
|
6466
|
+
/*div0_binding*/ ctx[9](div0);
|
|
6469
6467
|
},
|
|
6470
6468
|
p(ctx, [dirty]) {
|
|
6471
6469
|
if (dirty & /*orientation*/ 1 && div0_class_value !== (div0_class_value = `goa-radio-group--${/*orientation*/ ctx[0]}`)) {
|
|
6472
6470
|
attr(div0, "class", div0_class_value);
|
|
6473
6471
|
}
|
|
6472
|
+
|
|
6473
|
+
if (dirty & /*testid*/ 2) {
|
|
6474
|
+
attr(div0, "data-testid", /*testid*/ ctx[1]);
|
|
6475
|
+
}
|
|
6474
6476
|
},
|
|
6475
6477
|
i: noop,
|
|
6476
6478
|
o: noop,
|
|
6477
6479
|
d(detaching) {
|
|
6478
6480
|
if (detaching) detach(div1);
|
|
6479
|
-
/*div0_binding*/ ctx[
|
|
6481
|
+
/*div0_binding*/ ctx[9](null);
|
|
6480
6482
|
}
|
|
6481
6483
|
};
|
|
6482
6484
|
}
|
|
@@ -6488,6 +6490,7 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
6488
6490
|
let { orientation = 'vertical' } = $$props;
|
|
6489
6491
|
let { disabled } = $$props;
|
|
6490
6492
|
let { error } = $$props;
|
|
6493
|
+
let { testid } = $$props;
|
|
6491
6494
|
|
|
6492
6495
|
// private
|
|
6493
6496
|
let isError;
|
|
@@ -6513,7 +6516,7 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
6513
6516
|
const payload = state[name].payload;
|
|
6514
6517
|
|
|
6515
6518
|
if (payload.value !== value) {
|
|
6516
|
-
$$invalidate(
|
|
6519
|
+
$$invalidate(3, value = payload.value);
|
|
6517
6520
|
|
|
6518
6521
|
el.dispatchEvent(new CustomEvent('_change',
|
|
6519
6522
|
{
|
|
@@ -6529,26 +6532,27 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
6529
6532
|
function div0_binding($$value) {
|
|
6530
6533
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
6531
6534
|
el = $$value;
|
|
6532
|
-
$$invalidate(
|
|
6535
|
+
$$invalidate(2, el);
|
|
6533
6536
|
});
|
|
6534
6537
|
}
|
|
6535
6538
|
|
|
6536
6539
|
$$self.$$set = $$props => {
|
|
6537
|
-
if ('name' in $$props) $$invalidate(
|
|
6538
|
-
if ('value' in $$props) $$invalidate(
|
|
6540
|
+
if ('name' in $$props) $$invalidate(4, name = $$props.name);
|
|
6541
|
+
if ('value' in $$props) $$invalidate(3, value = $$props.value);
|
|
6539
6542
|
if ('orientation' in $$props) $$invalidate(0, orientation = $$props.orientation);
|
|
6540
|
-
if ('disabled' in $$props) $$invalidate(
|
|
6541
|
-
if ('error' in $$props) $$invalidate(
|
|
6543
|
+
if ('disabled' in $$props) $$invalidate(5, disabled = $$props.disabled);
|
|
6544
|
+
if ('error' in $$props) $$invalidate(6, error = $$props.error);
|
|
6545
|
+
if ('testid' in $$props) $$invalidate(1, testid = $$props.testid);
|
|
6542
6546
|
};
|
|
6543
6547
|
|
|
6544
6548
|
$$self.$$.update = () => {
|
|
6545
|
-
if ($$self.$$.dirty & /*disabled*/
|
|
6546
|
-
$$invalidate(
|
|
6549
|
+
if ($$self.$$.dirty & /*disabled*/ 32) {
|
|
6550
|
+
$$invalidate(8, isDisabled = toBoolean(disabled));
|
|
6547
6551
|
}
|
|
6548
6552
|
|
|
6549
|
-
if ($$self.$$.dirty & /*error, name, value, isDisabled, isError*/
|
|
6553
|
+
if ($$self.$$.dirty & /*error, name, value, isDisabled, isError*/ 472) {
|
|
6550
6554
|
{
|
|
6551
|
-
$$invalidate(
|
|
6555
|
+
$$invalidate(7, isError = toBoolean(error));
|
|
6552
6556
|
|
|
6553
6557
|
messageChannel.update(prev => {
|
|
6554
6558
|
return Object.assign(Object.assign({}, prev), {
|
|
@@ -6568,6 +6572,7 @@ function instance$7($$self, $$props, $$invalidate) {
|
|
|
6568
6572
|
|
|
6569
6573
|
return [
|
|
6570
6574
|
orientation,
|
|
6575
|
+
testid,
|
|
6571
6576
|
el,
|
|
6572
6577
|
value,
|
|
6573
6578
|
name,
|
|
@@ -6595,11 +6600,12 @@ class RadioGroup extends SvelteElement {
|
|
|
6595
6600
|
create_fragment$7,
|
|
6596
6601
|
safe_not_equal,
|
|
6597
6602
|
{
|
|
6598
|
-
name:
|
|
6599
|
-
value:
|
|
6603
|
+
name: 4,
|
|
6604
|
+
value: 3,
|
|
6600
6605
|
orientation: 0,
|
|
6601
|
-
disabled:
|
|
6602
|
-
error:
|
|
6606
|
+
disabled: 5,
|
|
6607
|
+
error: 6,
|
|
6608
|
+
testid: 1
|
|
6603
6609
|
},
|
|
6604
6610
|
null
|
|
6605
6611
|
);
|
|
@@ -6617,11 +6623,11 @@ class RadioGroup extends SvelteElement {
|
|
|
6617
6623
|
}
|
|
6618
6624
|
|
|
6619
6625
|
static get observedAttributes() {
|
|
6620
|
-
return ["name", "value", "orientation", "disabled", "error"];
|
|
6626
|
+
return ["name", "value", "orientation", "disabled", "error", "testid"];
|
|
6621
6627
|
}
|
|
6622
6628
|
|
|
6623
6629
|
get name() {
|
|
6624
|
-
return this.$$.ctx[
|
|
6630
|
+
return this.$$.ctx[4];
|
|
6625
6631
|
}
|
|
6626
6632
|
|
|
6627
6633
|
set name(name) {
|
|
@@ -6630,7 +6636,7 @@ class RadioGroup extends SvelteElement {
|
|
|
6630
6636
|
}
|
|
6631
6637
|
|
|
6632
6638
|
get value() {
|
|
6633
|
-
return this.$$.ctx[
|
|
6639
|
+
return this.$$.ctx[3];
|
|
6634
6640
|
}
|
|
6635
6641
|
|
|
6636
6642
|
set value(value) {
|
|
@@ -6648,7 +6654,7 @@ class RadioGroup extends SvelteElement {
|
|
|
6648
6654
|
}
|
|
6649
6655
|
|
|
6650
6656
|
get disabled() {
|
|
6651
|
-
return this.$$.ctx[
|
|
6657
|
+
return this.$$.ctx[5];
|
|
6652
6658
|
}
|
|
6653
6659
|
|
|
6654
6660
|
set disabled(disabled) {
|
|
@@ -6657,13 +6663,22 @@ class RadioGroup extends SvelteElement {
|
|
|
6657
6663
|
}
|
|
6658
6664
|
|
|
6659
6665
|
get error() {
|
|
6660
|
-
return this.$$.ctx[
|
|
6666
|
+
return this.$$.ctx[6];
|
|
6661
6667
|
}
|
|
6662
6668
|
|
|
6663
6669
|
set error(error) {
|
|
6664
6670
|
this.$$set({ error });
|
|
6665
6671
|
flush();
|
|
6666
6672
|
}
|
|
6673
|
+
|
|
6674
|
+
get testid() {
|
|
6675
|
+
return this.$$.ctx[1];
|
|
6676
|
+
}
|
|
6677
|
+
|
|
6678
|
+
set testid(testid) {
|
|
6679
|
+
this.$$set({ testid });
|
|
6680
|
+
flush();
|
|
6681
|
+
}
|
|
6667
6682
|
}
|
|
6668
6683
|
|
|
6669
6684
|
customElements.define("goa-radio-group", RadioGroup);
|
|
@@ -6694,6 +6709,7 @@ function create_fragment$6(ctx) {
|
|
|
6694
6709
|
t2 = text(/*label*/ ctx[1]);
|
|
6695
6710
|
this.c = noop;
|
|
6696
6711
|
attr(input, "type", "radio");
|
|
6712
|
+
attr(input, "data-testid", "radio-input");
|
|
6697
6713
|
attr(input, "name", /*name*/ ctx[2]);
|
|
6698
6714
|
input.value = /*value*/ ctx[0];
|
|
6699
6715
|
input.checked = /*checked*/ ctx[4];
|
|
@@ -7018,7 +7034,7 @@ customElements.define("goa-scrollable", Scrollable);
|
|
|
7018
7034
|
|
|
7019
7035
|
/* libs/web-components/src/components/service-level-header/ServiceLevelHeader.svelte generated by Svelte v3.44.3 */
|
|
7020
7036
|
|
|
7021
|
-
function
|
|
7037
|
+
function create_if_block_3(ctx) {
|
|
7022
7038
|
let div0;
|
|
7023
7039
|
let t0;
|
|
7024
7040
|
let div1;
|
|
@@ -7047,7 +7063,7 @@ function create_if_block_2(ctx) {
|
|
|
7047
7063
|
};
|
|
7048
7064
|
}
|
|
7049
7065
|
|
|
7050
|
-
// (
|
|
7066
|
+
// (28:2) {#if level !== "live"}
|
|
7051
7067
|
function create_if_block_1$2(ctx) {
|
|
7052
7068
|
let div0;
|
|
7053
7069
|
let t0_value = capitalize(/*level*/ ctx[0]) + "";
|
|
@@ -7055,6 +7071,10 @@ function create_if_block_1$2(ctx) {
|
|
|
7055
7071
|
let div0_class_value;
|
|
7056
7072
|
let t1;
|
|
7057
7073
|
let div1;
|
|
7074
|
+
let t2;
|
|
7075
|
+
let a;
|
|
7076
|
+
let t4;
|
|
7077
|
+
let if_block = /*feedbackurl*/ ctx[2] && create_if_block_2(ctx);
|
|
7058
7078
|
|
|
7059
7079
|
return {
|
|
7060
7080
|
c() {
|
|
@@ -7062,9 +7082,16 @@ function create_if_block_1$2(ctx) {
|
|
|
7062
7082
|
t0 = text(t0_value);
|
|
7063
7083
|
t1 = space();
|
|
7064
7084
|
div1 = element("div");
|
|
7065
|
-
|
|
7085
|
+
t2 = text("This is a new ");
|
|
7086
|
+
a = element("a");
|
|
7087
|
+
a.textContent = "Alberta Government";
|
|
7088
|
+
t4 = text(" service\n ");
|
|
7089
|
+
if (if_block) if_block.c();
|
|
7066
7090
|
attr(div0, "data-testid", "level");
|
|
7067
7091
|
attr(div0, "class", div0_class_value = "service-level service-level--" + /*level*/ ctx[0]?.toLowerCase());
|
|
7092
|
+
attr(a, "href", "https://www.alberta.ca/index.aspx");
|
|
7093
|
+
attr(a, "class", "web-link");
|
|
7094
|
+
attr(div1, "data-testid", "site-text");
|
|
7068
7095
|
attr(div1, "class", "site-text");
|
|
7069
7096
|
},
|
|
7070
7097
|
m(target, anchor) {
|
|
@@ -7072,6 +7099,10 @@ function create_if_block_1$2(ctx) {
|
|
|
7072
7099
|
append(div0, t0);
|
|
7073
7100
|
insert(target, t1, anchor);
|
|
7074
7101
|
insert(target, div1, anchor);
|
|
7102
|
+
append(div1, t2);
|
|
7103
|
+
append(div1, a);
|
|
7104
|
+
append(div1, t4);
|
|
7105
|
+
if (if_block) if_block.m(div1, null);
|
|
7075
7106
|
},
|
|
7076
7107
|
p(ctx, dirty) {
|
|
7077
7108
|
if (dirty & /*level*/ 1 && t0_value !== (t0_value = capitalize(/*level*/ ctx[0]) + "")) set_data(t0, t0_value);
|
|
@@ -7079,16 +7110,64 @@ function create_if_block_1$2(ctx) {
|
|
|
7079
7110
|
if (dirty & /*level*/ 1 && div0_class_value !== (div0_class_value = "service-level service-level--" + /*level*/ ctx[0]?.toLowerCase())) {
|
|
7080
7111
|
attr(div0, "class", div0_class_value);
|
|
7081
7112
|
}
|
|
7113
|
+
|
|
7114
|
+
if (/*feedbackurl*/ ctx[2]) {
|
|
7115
|
+
if (if_block) {
|
|
7116
|
+
if_block.p(ctx, dirty);
|
|
7117
|
+
} else {
|
|
7118
|
+
if_block = create_if_block_2(ctx);
|
|
7119
|
+
if_block.c();
|
|
7120
|
+
if_block.m(div1, null);
|
|
7121
|
+
}
|
|
7122
|
+
} else if (if_block) {
|
|
7123
|
+
if_block.d(1);
|
|
7124
|
+
if_block = null;
|
|
7125
|
+
}
|
|
7082
7126
|
},
|
|
7083
7127
|
d(detaching) {
|
|
7084
7128
|
if (detaching) detach(div0);
|
|
7085
7129
|
if (detaching) detach(t1);
|
|
7086
7130
|
if (detaching) detach(div1);
|
|
7131
|
+
if (if_block) if_block.d();
|
|
7132
|
+
}
|
|
7133
|
+
};
|
|
7134
|
+
}
|
|
7135
|
+
|
|
7136
|
+
// (34:6) {#if feedbackurl}
|
|
7137
|
+
function create_if_block_2(ctx) {
|
|
7138
|
+
let span;
|
|
7139
|
+
let t0;
|
|
7140
|
+
let a;
|
|
7141
|
+
let t1;
|
|
7142
|
+
|
|
7143
|
+
return {
|
|
7144
|
+
c() {
|
|
7145
|
+
span = element("span");
|
|
7146
|
+
t0 = text("— help us improve it by giving ");
|
|
7147
|
+
a = element("a");
|
|
7148
|
+
t1 = text("feedback");
|
|
7149
|
+
attr(a, "href", /*feedbackurl*/ ctx[2]);
|
|
7150
|
+
attr(a, "class", "web-link");
|
|
7151
|
+
attr(span, "data-testid", "feedback");
|
|
7152
|
+
},
|
|
7153
|
+
m(target, anchor) {
|
|
7154
|
+
insert(target, span, anchor);
|
|
7155
|
+
append(span, t0);
|
|
7156
|
+
append(span, a);
|
|
7157
|
+
append(a, t1);
|
|
7158
|
+
},
|
|
7159
|
+
p(ctx, dirty) {
|
|
7160
|
+
if (dirty & /*feedbackurl*/ 4) {
|
|
7161
|
+
attr(a, "href", /*feedbackurl*/ ctx[2]);
|
|
7162
|
+
}
|
|
7163
|
+
},
|
|
7164
|
+
d(detaching) {
|
|
7165
|
+
if (detaching) detach(span);
|
|
7087
7166
|
}
|
|
7088
7167
|
};
|
|
7089
7168
|
}
|
|
7090
7169
|
|
|
7091
|
-
// (
|
|
7170
|
+
// (40:2) {#if version}
|
|
7092
7171
|
function create_if_block$3(ctx) {
|
|
7093
7172
|
let div;
|
|
7094
7173
|
let t;
|
|
@@ -7119,7 +7198,7 @@ function create_fragment$4(ctx) {
|
|
|
7119
7198
|
let t1;
|
|
7120
7199
|
let div;
|
|
7121
7200
|
let t2;
|
|
7122
|
-
let if_block0 = /*level*/ ctx[0] === "live" &&
|
|
7201
|
+
let if_block0 = /*level*/ ctx[0] === "live" && create_if_block_3();
|
|
7123
7202
|
let if_block1 = /*level*/ ctx[0] !== "live" && create_if_block_1$2(ctx);
|
|
7124
7203
|
let if_block2 = /*version*/ ctx[1] && create_if_block$3(ctx);
|
|
7125
7204
|
|
|
@@ -7150,7 +7229,7 @@ function create_fragment$4(ctx) {
|
|
|
7150
7229
|
p(ctx, [dirty]) {
|
|
7151
7230
|
if (/*level*/ ctx[0] === "live") {
|
|
7152
7231
|
if (if_block0) ; else {
|
|
7153
|
-
if_block0 =
|
|
7232
|
+
if_block0 = create_if_block_3();
|
|
7154
7233
|
if_block0.c();
|
|
7155
7234
|
if_block0.m(header, t0);
|
|
7156
7235
|
}
|
|
@@ -7204,13 +7283,15 @@ function capitalize(val) {
|
|
|
7204
7283
|
function instance$4($$self, $$props, $$invalidate) {
|
|
7205
7284
|
let { level } = $$props;
|
|
7206
7285
|
let { version } = $$props;
|
|
7286
|
+
let { feedbackurl } = $$props;
|
|
7207
7287
|
|
|
7208
7288
|
$$self.$$set = $$props => {
|
|
7209
7289
|
if ('level' in $$props) $$invalidate(0, level = $$props.level);
|
|
7210
7290
|
if ('version' in $$props) $$invalidate(1, version = $$props.version);
|
|
7291
|
+
if ('feedbackurl' in $$props) $$invalidate(2, feedbackurl = $$props.feedbackurl);
|
|
7211
7292
|
};
|
|
7212
7293
|
|
|
7213
|
-
return [level, version];
|
|
7294
|
+
return [level, version, feedbackurl];
|
|
7214
7295
|
}
|
|
7215
7296
|
|
|
7216
7297
|
class ServiceLevelHeader extends SvelteElement {
|
|
@@ -7228,7 +7309,7 @@ class ServiceLevelHeader extends SvelteElement {
|
|
|
7228
7309
|
instance$4,
|
|
7229
7310
|
create_fragment$4,
|
|
7230
7311
|
safe_not_equal,
|
|
7231
|
-
{ level: 0, version: 1 },
|
|
7312
|
+
{ level: 0, version: 1, feedbackurl: 2 },
|
|
7232
7313
|
null
|
|
7233
7314
|
);
|
|
7234
7315
|
|
|
@@ -7245,7 +7326,7 @@ class ServiceLevelHeader extends SvelteElement {
|
|
|
7245
7326
|
}
|
|
7246
7327
|
|
|
7247
7328
|
static get observedAttributes() {
|
|
7248
|
-
return ["level", "version"];
|
|
7329
|
+
return ["level", "version", "feedbackurl"];
|
|
7249
7330
|
}
|
|
7250
7331
|
|
|
7251
7332
|
get level() {
|
|
@@ -7265,6 +7346,15 @@ class ServiceLevelHeader extends SvelteElement {
|
|
|
7265
7346
|
this.$$set({ version });
|
|
7266
7347
|
flush();
|
|
7267
7348
|
}
|
|
7349
|
+
|
|
7350
|
+
get feedbackurl() {
|
|
7351
|
+
return this.$$.ctx[2];
|
|
7352
|
+
}
|
|
7353
|
+
|
|
7354
|
+
set feedbackurl(feedbackurl) {
|
|
7355
|
+
this.$$set({ feedbackurl });
|
|
7356
|
+
flush();
|
|
7357
|
+
}
|
|
7268
7358
|
}
|
|
7269
7359
|
|
|
7270
7360
|
customElements.define("goa-service-level-header", ServiceLevelHeader);
|