@abgov/react-components 4.0.0-alpha.100 → 4.0.0-alpha.102
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/index.d.ts +2 -0
- package/lib/dropdown/dropdown-item.d.ts +22 -0
- package/lib/dropdown/dropdown.d.ts +4 -5
- package/lib/table/table.d.ts +19 -0
- package/package.json +1 -1
- package/react-components.esm.js +1849 -1708
- package/react-components.umd.js +1847 -1703
- package/lib/dropdown/dropdown-option.d.ts +0 -21
package/react-components.umd.js
CHANGED
|
@@ -1276,7 +1276,7 @@
|
|
|
1276
1276
|
};
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
|
-
function instance$
|
|
1279
|
+
function instance$z($$self, $$props, $$invalidate) {
|
|
1280
1280
|
let {
|
|
1281
1281
|
heading = ""
|
|
1282
1282
|
} = $$props;
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
target: this.shadowRoot,
|
|
1309
1309
|
props: attribute_to_object(this.attributes),
|
|
1310
1310
|
customElement: true
|
|
1311
|
-
}, instance$
|
|
1311
|
+
}, instance$z, create_fragment$F, safe_not_equal, {
|
|
1312
1312
|
heading: 0,
|
|
1313
1313
|
url: 1,
|
|
1314
1314
|
testid: 2,
|
|
@@ -1661,7 +1661,7 @@
|
|
|
1661
1661
|
};
|
|
1662
1662
|
}
|
|
1663
1663
|
|
|
1664
|
-
function instance$
|
|
1664
|
+
function instance$y($$self, $$props, $$invalidate) {
|
|
1665
1665
|
let showIcon;
|
|
1666
1666
|
let iconType;
|
|
1667
1667
|
const [Types, validateType] = typeValidator("Badge type", ["success", "important", "information", "emergency", "dark", "midtone", "light"], true);
|
|
@@ -1743,7 +1743,7 @@
|
|
|
1743
1743
|
target: this.shadowRoot,
|
|
1744
1744
|
props: attribute_to_object(this.attributes),
|
|
1745
1745
|
customElement: true
|
|
1746
|
-
}, instance$
|
|
1746
|
+
}, instance$y, create_fragment$E, safe_not_equal, {
|
|
1747
1747
|
type: 0,
|
|
1748
1748
|
testid: 1,
|
|
1749
1749
|
content: 2,
|
|
@@ -1937,7 +1937,7 @@
|
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
1939
|
|
|
1940
|
-
function instance$
|
|
1940
|
+
function instance$x($$self, $$props, $$invalidate) {
|
|
1941
1941
|
let {
|
|
1942
1942
|
gap = "m"
|
|
1943
1943
|
} = $$props;
|
|
@@ -1981,7 +1981,7 @@
|
|
|
1981
1981
|
target: this.shadowRoot,
|
|
1982
1982
|
props: attribute_to_object(this.attributes),
|
|
1983
1983
|
customElement: true
|
|
1984
|
-
}, instance$
|
|
1984
|
+
}, instance$x, create_fragment$D, safe_not_equal, {
|
|
1985
1985
|
gap: 0,
|
|
1986
1986
|
direction: 1,
|
|
1987
1987
|
alignment: 2,
|
|
@@ -2087,248 +2087,6 @@
|
|
|
2087
2087
|
}
|
|
2088
2088
|
|
|
2089
2089
|
customElements.define("goa-block", Block);
|
|
2090
|
-
/* libs/web-components/src/components/button-group/ButtonGroup.svelte generated by Svelte v3.51.0 */
|
|
2091
|
-
|
|
2092
|
-
function create_fragment$C(ctx) {
|
|
2093
|
-
let div;
|
|
2094
|
-
let slot;
|
|
2095
|
-
let div_style_value;
|
|
2096
|
-
return {
|
|
2097
|
-
c() {
|
|
2098
|
-
div = element("div");
|
|
2099
|
-
slot = element("slot");
|
|
2100
|
-
this.c = noop;
|
|
2101
|
-
attr(div, "data-testid",
|
|
2102
|
-
/*testid*/
|
|
2103
|
-
ctx[1]);
|
|
2104
|
-
attr(div, "style", div_style_value = "" + (calculateMargin(
|
|
2105
|
-
/*mt*/
|
|
2106
|
-
ctx[2],
|
|
2107
|
-
/*mr*/
|
|
2108
|
-
ctx[3],
|
|
2109
|
-
/*mb*/
|
|
2110
|
-
ctx[4],
|
|
2111
|
-
/*ml*/
|
|
2112
|
-
ctx[5]) + "; --alignment: " +
|
|
2113
|
-
/*_alignment*/
|
|
2114
|
-
ctx[6] + "; --gap-size: " + (
|
|
2115
|
-
/*gap*/
|
|
2116
|
-
ctx[0] === "relaxed" ? "1rem" : "0.75rem")));
|
|
2117
|
-
},
|
|
2118
|
-
|
|
2119
|
-
m(target, anchor) {
|
|
2120
|
-
insert(target, div, anchor);
|
|
2121
|
-
append(div, slot);
|
|
2122
|
-
},
|
|
2123
|
-
|
|
2124
|
-
p(ctx, [dirty]) {
|
|
2125
|
-
if (dirty &
|
|
2126
|
-
/*testid*/
|
|
2127
|
-
2) {
|
|
2128
|
-
attr(div, "data-testid",
|
|
2129
|
-
/*testid*/
|
|
2130
|
-
ctx[1]);
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
if (dirty &
|
|
2134
|
-
/*mt, mr, mb, ml, _alignment, gap*/
|
|
2135
|
-
125 && div_style_value !== (div_style_value = "" + (calculateMargin(
|
|
2136
|
-
/*mt*/
|
|
2137
|
-
ctx[2],
|
|
2138
|
-
/*mr*/
|
|
2139
|
-
ctx[3],
|
|
2140
|
-
/*mb*/
|
|
2141
|
-
ctx[4],
|
|
2142
|
-
/*ml*/
|
|
2143
|
-
ctx[5]) + "; --alignment: " +
|
|
2144
|
-
/*_alignment*/
|
|
2145
|
-
ctx[6] + "; --gap-size: " + (
|
|
2146
|
-
/*gap*/
|
|
2147
|
-
ctx[0] === "relaxed" ? "1rem" : "0.75rem")))) {
|
|
2148
|
-
attr(div, "style", div_style_value);
|
|
2149
|
-
}
|
|
2150
|
-
},
|
|
2151
|
-
|
|
2152
|
-
i: noop,
|
|
2153
|
-
o: noop,
|
|
2154
|
-
|
|
2155
|
-
d(detaching) {
|
|
2156
|
-
if (detaching) detach(div);
|
|
2157
|
-
}
|
|
2158
|
-
|
|
2159
|
-
};
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
function instance$x($$self, $$props, $$invalidate) {
|
|
2163
|
-
let _alignment;
|
|
2164
|
-
|
|
2165
|
-
let {
|
|
2166
|
-
alignment = "start"
|
|
2167
|
-
} = $$props;
|
|
2168
|
-
let {
|
|
2169
|
-
gap = "relaxed"
|
|
2170
|
-
} = $$props;
|
|
2171
|
-
let {
|
|
2172
|
-
testid = ""
|
|
2173
|
-
} = $$props;
|
|
2174
|
-
let {
|
|
2175
|
-
mt = null
|
|
2176
|
-
} = $$props;
|
|
2177
|
-
let {
|
|
2178
|
-
mr = null
|
|
2179
|
-
} = $$props;
|
|
2180
|
-
let {
|
|
2181
|
-
mb = null
|
|
2182
|
-
} = $$props;
|
|
2183
|
-
let {
|
|
2184
|
-
ml = null
|
|
2185
|
-
} = $$props;
|
|
2186
|
-
const [BUTTON_ALIGNMENTS, validateAlignment] = typeValidator("alignment", ["start", "end", "center"]);
|
|
2187
|
-
const [GAPS, validateGap] = typeValidator("gap", ["relaxed", "compact"]);
|
|
2188
|
-
onMount(() => {
|
|
2189
|
-
validateAlignment(alignment);
|
|
2190
|
-
validateGap(gap);
|
|
2191
|
-
});
|
|
2192
|
-
|
|
2193
|
-
$$self.$$set = $$props => {
|
|
2194
|
-
if ('alignment' in $$props) $$invalidate(7, alignment = $$props.alignment);
|
|
2195
|
-
if ('gap' in $$props) $$invalidate(0, gap = $$props.gap);
|
|
2196
|
-
if ('testid' in $$props) $$invalidate(1, testid = $$props.testid);
|
|
2197
|
-
if ('mt' in $$props) $$invalidate(2, mt = $$props.mt);
|
|
2198
|
-
if ('mr' in $$props) $$invalidate(3, mr = $$props.mr);
|
|
2199
|
-
if ('mb' in $$props) $$invalidate(4, mb = $$props.mb);
|
|
2200
|
-
if ('ml' in $$props) $$invalidate(5, ml = $$props.ml);
|
|
2201
|
-
};
|
|
2202
|
-
|
|
2203
|
-
$$self.$$.update = () => {
|
|
2204
|
-
if ($$self.$$.dirty &
|
|
2205
|
-
/*alignment*/
|
|
2206
|
-
128) {
|
|
2207
|
-
$$invalidate(6, _alignment = {
|
|
2208
|
-
start: "flex-start",
|
|
2209
|
-
end: "flex-end",
|
|
2210
|
-
center: "center"
|
|
2211
|
-
}[alignment]);
|
|
2212
|
-
}
|
|
2213
|
-
};
|
|
2214
|
-
|
|
2215
|
-
return [gap, testid, mt, mr, mb, ml, _alignment, alignment];
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
class ButtonGroup extends SvelteElement {
|
|
2219
|
-
constructor(options) {
|
|
2220
|
-
super();
|
|
2221
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}div{display:flex;flex-direction:row;justify-content:var(--alignment);align-items:center;flex-wrap:wrap;gap:var(--gap-size);padding:3px 0}</style>`;
|
|
2222
|
-
init(this, {
|
|
2223
|
-
target: this.shadowRoot,
|
|
2224
|
-
props: attribute_to_object(this.attributes),
|
|
2225
|
-
customElement: true
|
|
2226
|
-
}, instance$x, create_fragment$C, safe_not_equal, {
|
|
2227
|
-
alignment: 7,
|
|
2228
|
-
gap: 0,
|
|
2229
|
-
testid: 1,
|
|
2230
|
-
mt: 2,
|
|
2231
|
-
mr: 3,
|
|
2232
|
-
mb: 4,
|
|
2233
|
-
ml: 5
|
|
2234
|
-
}, null);
|
|
2235
|
-
|
|
2236
|
-
if (options) {
|
|
2237
|
-
if (options.target) {
|
|
2238
|
-
insert(options.target, this, options.anchor);
|
|
2239
|
-
}
|
|
2240
|
-
|
|
2241
|
-
if (options.props) {
|
|
2242
|
-
this.$set(options.props);
|
|
2243
|
-
flush();
|
|
2244
|
-
}
|
|
2245
|
-
}
|
|
2246
|
-
}
|
|
2247
|
-
|
|
2248
|
-
static get observedAttributes() {
|
|
2249
|
-
return ["alignment", "gap", "testid", "mt", "mr", "mb", "ml"];
|
|
2250
|
-
}
|
|
2251
|
-
|
|
2252
|
-
get alignment() {
|
|
2253
|
-
return this.$$.ctx[7];
|
|
2254
|
-
}
|
|
2255
|
-
|
|
2256
|
-
set alignment(alignment) {
|
|
2257
|
-
this.$$set({
|
|
2258
|
-
alignment
|
|
2259
|
-
});
|
|
2260
|
-
flush();
|
|
2261
|
-
}
|
|
2262
|
-
|
|
2263
|
-
get gap() {
|
|
2264
|
-
return this.$$.ctx[0];
|
|
2265
|
-
}
|
|
2266
|
-
|
|
2267
|
-
set gap(gap) {
|
|
2268
|
-
this.$$set({
|
|
2269
|
-
gap
|
|
2270
|
-
});
|
|
2271
|
-
flush();
|
|
2272
|
-
}
|
|
2273
|
-
|
|
2274
|
-
get testid() {
|
|
2275
|
-
return this.$$.ctx[1];
|
|
2276
|
-
}
|
|
2277
|
-
|
|
2278
|
-
set testid(testid) {
|
|
2279
|
-
this.$$set({
|
|
2280
|
-
testid
|
|
2281
|
-
});
|
|
2282
|
-
flush();
|
|
2283
|
-
}
|
|
2284
|
-
|
|
2285
|
-
get mt() {
|
|
2286
|
-
return this.$$.ctx[2];
|
|
2287
|
-
}
|
|
2288
|
-
|
|
2289
|
-
set mt(mt) {
|
|
2290
|
-
this.$$set({
|
|
2291
|
-
mt
|
|
2292
|
-
});
|
|
2293
|
-
flush();
|
|
2294
|
-
}
|
|
2295
|
-
|
|
2296
|
-
get mr() {
|
|
2297
|
-
return this.$$.ctx[3];
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
set mr(mr) {
|
|
2301
|
-
this.$$set({
|
|
2302
|
-
mr
|
|
2303
|
-
});
|
|
2304
|
-
flush();
|
|
2305
|
-
}
|
|
2306
|
-
|
|
2307
|
-
get mb() {
|
|
2308
|
-
return this.$$.ctx[4];
|
|
2309
|
-
}
|
|
2310
|
-
|
|
2311
|
-
set mb(mb) {
|
|
2312
|
-
this.$$set({
|
|
2313
|
-
mb
|
|
2314
|
-
});
|
|
2315
|
-
flush();
|
|
2316
|
-
}
|
|
2317
|
-
|
|
2318
|
-
get ml() {
|
|
2319
|
-
return this.$$.ctx[5];
|
|
2320
|
-
}
|
|
2321
|
-
|
|
2322
|
-
set ml(ml) {
|
|
2323
|
-
this.$$set({
|
|
2324
|
-
ml
|
|
2325
|
-
});
|
|
2326
|
-
flush();
|
|
2327
|
-
}
|
|
2328
|
-
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
|
-
customElements.define("goa-button-group", ButtonGroup);
|
|
2332
2090
|
/* libs/web-components/src/components/button/Button.svelte generated by Svelte v3.51.0 */
|
|
2333
2091
|
|
|
2334
2092
|
function create_else_block$2(ctx) {
|
|
@@ -2527,7 +2285,7 @@
|
|
|
2527
2285
|
};
|
|
2528
2286
|
}
|
|
2529
2287
|
|
|
2530
|
-
function create_fragment$
|
|
2288
|
+
function create_fragment$C(ctx) {
|
|
2531
2289
|
let button;
|
|
2532
2290
|
let button_class_value;
|
|
2533
2291
|
let button_style_value;
|
|
@@ -2772,7 +2530,7 @@
|
|
|
2772
2530
|
target: this.shadowRoot,
|
|
2773
2531
|
props: attribute_to_object(this.attributes),
|
|
2774
2532
|
customElement: true
|
|
2775
|
-
}, instance$w, create_fragment$
|
|
2533
|
+
}, instance$w, create_fragment$C, safe_not_equal, {
|
|
2776
2534
|
type: 0,
|
|
2777
2535
|
size: 1,
|
|
2778
2536
|
variant: 2,
|
|
@@ -2926,14 +2684,256 @@
|
|
|
2926
2684
|
}
|
|
2927
2685
|
|
|
2928
2686
|
customElements.define("goa-button", Button);
|
|
2929
|
-
/* libs/web-components/src/components/
|
|
2687
|
+
/* libs/web-components/src/components/button-group/ButtonGroup.svelte generated by Svelte v3.51.0 */
|
|
2930
2688
|
|
|
2931
|
-
function
|
|
2932
|
-
let
|
|
2933
|
-
let
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2689
|
+
function create_fragment$B(ctx) {
|
|
2690
|
+
let div;
|
|
2691
|
+
let slot;
|
|
2692
|
+
let div_style_value;
|
|
2693
|
+
return {
|
|
2694
|
+
c() {
|
|
2695
|
+
div = element("div");
|
|
2696
|
+
slot = element("slot");
|
|
2697
|
+
this.c = noop;
|
|
2698
|
+
attr(div, "data-testid",
|
|
2699
|
+
/*testid*/
|
|
2700
|
+
ctx[1]);
|
|
2701
|
+
attr(div, "style", div_style_value = "" + (calculateMargin(
|
|
2702
|
+
/*mt*/
|
|
2703
|
+
ctx[2],
|
|
2704
|
+
/*mr*/
|
|
2705
|
+
ctx[3],
|
|
2706
|
+
/*mb*/
|
|
2707
|
+
ctx[4],
|
|
2708
|
+
/*ml*/
|
|
2709
|
+
ctx[5]) + "; --alignment: " +
|
|
2710
|
+
/*_alignment*/
|
|
2711
|
+
ctx[6] + "; --gap-size: " + (
|
|
2712
|
+
/*gap*/
|
|
2713
|
+
ctx[0] === "relaxed" ? "1rem" : "0.75rem")));
|
|
2714
|
+
},
|
|
2715
|
+
|
|
2716
|
+
m(target, anchor) {
|
|
2717
|
+
insert(target, div, anchor);
|
|
2718
|
+
append(div, slot);
|
|
2719
|
+
},
|
|
2720
|
+
|
|
2721
|
+
p(ctx, [dirty]) {
|
|
2722
|
+
if (dirty &
|
|
2723
|
+
/*testid*/
|
|
2724
|
+
2) {
|
|
2725
|
+
attr(div, "data-testid",
|
|
2726
|
+
/*testid*/
|
|
2727
|
+
ctx[1]);
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
if (dirty &
|
|
2731
|
+
/*mt, mr, mb, ml, _alignment, gap*/
|
|
2732
|
+
125 && div_style_value !== (div_style_value = "" + (calculateMargin(
|
|
2733
|
+
/*mt*/
|
|
2734
|
+
ctx[2],
|
|
2735
|
+
/*mr*/
|
|
2736
|
+
ctx[3],
|
|
2737
|
+
/*mb*/
|
|
2738
|
+
ctx[4],
|
|
2739
|
+
/*ml*/
|
|
2740
|
+
ctx[5]) + "; --alignment: " +
|
|
2741
|
+
/*_alignment*/
|
|
2742
|
+
ctx[6] + "; --gap-size: " + (
|
|
2743
|
+
/*gap*/
|
|
2744
|
+
ctx[0] === "relaxed" ? "1rem" : "0.75rem")))) {
|
|
2745
|
+
attr(div, "style", div_style_value);
|
|
2746
|
+
}
|
|
2747
|
+
},
|
|
2748
|
+
|
|
2749
|
+
i: noop,
|
|
2750
|
+
o: noop,
|
|
2751
|
+
|
|
2752
|
+
d(detaching) {
|
|
2753
|
+
if (detaching) detach(div);
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
};
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
function instance$v($$self, $$props, $$invalidate) {
|
|
2760
|
+
let _alignment;
|
|
2761
|
+
|
|
2762
|
+
let {
|
|
2763
|
+
alignment = "start"
|
|
2764
|
+
} = $$props;
|
|
2765
|
+
let {
|
|
2766
|
+
gap = "relaxed"
|
|
2767
|
+
} = $$props;
|
|
2768
|
+
let {
|
|
2769
|
+
testid = ""
|
|
2770
|
+
} = $$props;
|
|
2771
|
+
let {
|
|
2772
|
+
mt = null
|
|
2773
|
+
} = $$props;
|
|
2774
|
+
let {
|
|
2775
|
+
mr = null
|
|
2776
|
+
} = $$props;
|
|
2777
|
+
let {
|
|
2778
|
+
mb = null
|
|
2779
|
+
} = $$props;
|
|
2780
|
+
let {
|
|
2781
|
+
ml = null
|
|
2782
|
+
} = $$props;
|
|
2783
|
+
const [BUTTON_ALIGNMENTS, validateAlignment] = typeValidator("alignment", ["start", "end", "center"]);
|
|
2784
|
+
const [GAPS, validateGap] = typeValidator("gap", ["relaxed", "compact"]);
|
|
2785
|
+
onMount(() => {
|
|
2786
|
+
validateAlignment(alignment);
|
|
2787
|
+
validateGap(gap);
|
|
2788
|
+
});
|
|
2789
|
+
|
|
2790
|
+
$$self.$$set = $$props => {
|
|
2791
|
+
if ('alignment' in $$props) $$invalidate(7, alignment = $$props.alignment);
|
|
2792
|
+
if ('gap' in $$props) $$invalidate(0, gap = $$props.gap);
|
|
2793
|
+
if ('testid' in $$props) $$invalidate(1, testid = $$props.testid);
|
|
2794
|
+
if ('mt' in $$props) $$invalidate(2, mt = $$props.mt);
|
|
2795
|
+
if ('mr' in $$props) $$invalidate(3, mr = $$props.mr);
|
|
2796
|
+
if ('mb' in $$props) $$invalidate(4, mb = $$props.mb);
|
|
2797
|
+
if ('ml' in $$props) $$invalidate(5, ml = $$props.ml);
|
|
2798
|
+
};
|
|
2799
|
+
|
|
2800
|
+
$$self.$$.update = () => {
|
|
2801
|
+
if ($$self.$$.dirty &
|
|
2802
|
+
/*alignment*/
|
|
2803
|
+
128) {
|
|
2804
|
+
$$invalidate(6, _alignment = {
|
|
2805
|
+
start: "flex-start",
|
|
2806
|
+
end: "flex-end",
|
|
2807
|
+
center: "center"
|
|
2808
|
+
}[alignment]);
|
|
2809
|
+
}
|
|
2810
|
+
};
|
|
2811
|
+
|
|
2812
|
+
return [gap, testid, mt, mr, mb, ml, _alignment, alignment];
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
class ButtonGroup extends SvelteElement {
|
|
2816
|
+
constructor(options) {
|
|
2817
|
+
super();
|
|
2818
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}div{display:flex;flex-direction:row;justify-content:var(--alignment);align-items:center;flex-wrap:wrap;gap:var(--gap-size);padding:3px 0}</style>`;
|
|
2819
|
+
init(this, {
|
|
2820
|
+
target: this.shadowRoot,
|
|
2821
|
+
props: attribute_to_object(this.attributes),
|
|
2822
|
+
customElement: true
|
|
2823
|
+
}, instance$v, create_fragment$B, safe_not_equal, {
|
|
2824
|
+
alignment: 7,
|
|
2825
|
+
gap: 0,
|
|
2826
|
+
testid: 1,
|
|
2827
|
+
mt: 2,
|
|
2828
|
+
mr: 3,
|
|
2829
|
+
mb: 4,
|
|
2830
|
+
ml: 5
|
|
2831
|
+
}, null);
|
|
2832
|
+
|
|
2833
|
+
if (options) {
|
|
2834
|
+
if (options.target) {
|
|
2835
|
+
insert(options.target, this, options.anchor);
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
if (options.props) {
|
|
2839
|
+
this.$set(options.props);
|
|
2840
|
+
flush();
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2844
|
+
|
|
2845
|
+
static get observedAttributes() {
|
|
2846
|
+
return ["alignment", "gap", "testid", "mt", "mr", "mb", "ml"];
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
get alignment() {
|
|
2850
|
+
return this.$$.ctx[7];
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
set alignment(alignment) {
|
|
2854
|
+
this.$$set({
|
|
2855
|
+
alignment
|
|
2856
|
+
});
|
|
2857
|
+
flush();
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
get gap() {
|
|
2861
|
+
return this.$$.ctx[0];
|
|
2862
|
+
}
|
|
2863
|
+
|
|
2864
|
+
set gap(gap) {
|
|
2865
|
+
this.$$set({
|
|
2866
|
+
gap
|
|
2867
|
+
});
|
|
2868
|
+
flush();
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2871
|
+
get testid() {
|
|
2872
|
+
return this.$$.ctx[1];
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
set testid(testid) {
|
|
2876
|
+
this.$$set({
|
|
2877
|
+
testid
|
|
2878
|
+
});
|
|
2879
|
+
flush();
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
get mt() {
|
|
2883
|
+
return this.$$.ctx[2];
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
set mt(mt) {
|
|
2887
|
+
this.$$set({
|
|
2888
|
+
mt
|
|
2889
|
+
});
|
|
2890
|
+
flush();
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
get mr() {
|
|
2894
|
+
return this.$$.ctx[3];
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
set mr(mr) {
|
|
2898
|
+
this.$$set({
|
|
2899
|
+
mr
|
|
2900
|
+
});
|
|
2901
|
+
flush();
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
get mb() {
|
|
2905
|
+
return this.$$.ctx[4];
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2908
|
+
set mb(mb) {
|
|
2909
|
+
this.$$set({
|
|
2910
|
+
mb
|
|
2911
|
+
});
|
|
2912
|
+
flush();
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2915
|
+
get ml() {
|
|
2916
|
+
return this.$$.ctx[5];
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
set ml(ml) {
|
|
2920
|
+
this.$$set({
|
|
2921
|
+
ml
|
|
2922
|
+
});
|
|
2923
|
+
flush();
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
customElements.define("goa-button-group", ButtonGroup);
|
|
2929
|
+
/* libs/web-components/src/components/callout/Callout.svelte generated by Svelte v3.51.0 */
|
|
2930
|
+
|
|
2931
|
+
function create_if_block$e(ctx) {
|
|
2932
|
+
let h3;
|
|
2933
|
+
let t;
|
|
2934
|
+
return {
|
|
2935
|
+
c() {
|
|
2936
|
+
h3 = element("h3");
|
|
2937
2937
|
t = text(
|
|
2938
2938
|
/*heading*/
|
|
2939
2939
|
ctx[5]);
|
|
@@ -3094,7 +3094,7 @@
|
|
|
3094
3094
|
};
|
|
3095
3095
|
}
|
|
3096
3096
|
|
|
3097
|
-
function instance$
|
|
3097
|
+
function instance$u($$self, $$props, $$invalidate) {
|
|
3098
3098
|
let iconType;
|
|
3099
3099
|
const [Types, validateType] = typeValidator("Callout type", ["emergency", "important", "information", "event", "success"], true);
|
|
3100
3100
|
let {
|
|
@@ -3151,7 +3151,7 @@
|
|
|
3151
3151
|
target: this.shadowRoot,
|
|
3152
3152
|
props: attribute_to_object(this.attributes),
|
|
3153
3153
|
customElement: true
|
|
3154
|
-
}, instance$
|
|
3154
|
+
}, instance$u, create_fragment$A, safe_not_equal, {
|
|
3155
3155
|
mt: 0,
|
|
3156
3156
|
mr: 1,
|
|
3157
3157
|
mb: 2,
|
|
@@ -3302,230 +3302,16 @@
|
|
|
3302
3302
|
}
|
|
3303
3303
|
|
|
3304
3304
|
customElements.define("goa-card-actions", CardActions);
|
|
3305
|
-
/* libs/web-components/src/components/card
|
|
3305
|
+
/* libs/web-components/src/components/card/Card.svelte generated by Svelte v3.51.0 */
|
|
3306
3306
|
|
|
3307
3307
|
function create_fragment$y(ctx) {
|
|
3308
3308
|
let div;
|
|
3309
|
+
let slot;
|
|
3310
|
+
let div_style_value;
|
|
3309
3311
|
return {
|
|
3310
3312
|
c() {
|
|
3311
3313
|
div = element("div");
|
|
3312
|
-
|
|
3313
|
-
this.c = noop;
|
|
3314
|
-
attr(div, "class", "card-content");
|
|
3315
|
-
},
|
|
3316
|
-
|
|
3317
|
-
m(target, anchor) {
|
|
3318
|
-
insert(target, div, anchor);
|
|
3319
|
-
},
|
|
3320
|
-
|
|
3321
|
-
p: noop,
|
|
3322
|
-
i: noop,
|
|
3323
|
-
o: noop,
|
|
3324
|
-
|
|
3325
|
-
d(detaching) {
|
|
3326
|
-
if (detaching) detach(div);
|
|
3327
|
-
}
|
|
3328
|
-
|
|
3329
|
-
};
|
|
3330
|
-
}
|
|
3331
|
-
|
|
3332
|
-
class CardContent extends SvelteElement {
|
|
3333
|
-
constructor(options) {
|
|
3334
|
-
super();
|
|
3335
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.card-content{padding:1rem}</style>`;
|
|
3336
|
-
init(this, {
|
|
3337
|
-
target: this.shadowRoot,
|
|
3338
|
-
props: attribute_to_object(this.attributes),
|
|
3339
|
-
customElement: true
|
|
3340
|
-
}, null, create_fragment$y, safe_not_equal, {}, null);
|
|
3341
|
-
|
|
3342
|
-
if (options) {
|
|
3343
|
-
if (options.target) {
|
|
3344
|
-
insert(options.target, this, options.anchor);
|
|
3345
|
-
}
|
|
3346
|
-
}
|
|
3347
|
-
}
|
|
3348
|
-
|
|
3349
|
-
}
|
|
3350
|
-
|
|
3351
|
-
customElements.define("goa-card-content", CardContent);
|
|
3352
|
-
/* libs/web-components/src/components/card-group/CardGroup.svelte generated by Svelte v3.51.0 */
|
|
3353
|
-
|
|
3354
|
-
function create_fragment$x(ctx) {
|
|
3355
|
-
let div;
|
|
3356
|
-
return {
|
|
3357
|
-
c() {
|
|
3358
|
-
div = element("div");
|
|
3359
|
-
div.innerHTML = `<slot></slot>`;
|
|
3360
|
-
this.c = noop;
|
|
3361
|
-
attr(div, "class", "card-group");
|
|
3362
|
-
},
|
|
3363
|
-
|
|
3364
|
-
m(target, anchor) {
|
|
3365
|
-
insert(target, div, anchor);
|
|
3366
|
-
},
|
|
3367
|
-
|
|
3368
|
-
p: noop,
|
|
3369
|
-
i: noop,
|
|
3370
|
-
o: noop,
|
|
3371
|
-
|
|
3372
|
-
d(detaching) {
|
|
3373
|
-
if (detaching) detach(div);
|
|
3374
|
-
}
|
|
3375
|
-
|
|
3376
|
-
};
|
|
3377
|
-
}
|
|
3378
|
-
|
|
3379
|
-
class CardGroup extends SvelteElement {
|
|
3380
|
-
constructor(options) {
|
|
3381
|
-
super();
|
|
3382
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.card-group{display:flex;flex-wrap:wrap;justify-content:space-around;gap:1rem;width:100%}</style>`;
|
|
3383
|
-
init(this, {
|
|
3384
|
-
target: this.shadowRoot,
|
|
3385
|
-
props: attribute_to_object(this.attributes),
|
|
3386
|
-
customElement: true
|
|
3387
|
-
}, null, create_fragment$x, safe_not_equal, {}, null);
|
|
3388
|
-
|
|
3389
|
-
if (options) {
|
|
3390
|
-
if (options.target) {
|
|
3391
|
-
insert(options.target, this, options.anchor);
|
|
3392
|
-
}
|
|
3393
|
-
}
|
|
3394
|
-
}
|
|
3395
|
-
|
|
3396
|
-
}
|
|
3397
|
-
|
|
3398
|
-
customElements.define("goa-card-group", CardGroup);
|
|
3399
|
-
/* libs/web-components/src/components/card-image/CardImage.svelte generated by Svelte v3.51.0 */
|
|
3400
|
-
|
|
3401
|
-
function create_fragment$w(ctx) {
|
|
3402
|
-
let div;
|
|
3403
|
-
return {
|
|
3404
|
-
c() {
|
|
3405
|
-
div = element("div");
|
|
3406
|
-
this.c = noop;
|
|
3407
|
-
set_style(div, "background-image", "url(" +
|
|
3408
|
-
/*src*/
|
|
3409
|
-
ctx[0] + ")");
|
|
3410
|
-
set_style(div, "height",
|
|
3411
|
-
/*height*/
|
|
3412
|
-
ctx[1]);
|
|
3413
|
-
set_style(div, "background-size", "cover");
|
|
3414
|
-
set_style(div, "background-position", "center");
|
|
3415
|
-
},
|
|
3416
|
-
|
|
3417
|
-
m(target, anchor) {
|
|
3418
|
-
insert(target, div, anchor);
|
|
3419
|
-
},
|
|
3420
|
-
|
|
3421
|
-
p(ctx, [dirty]) {
|
|
3422
|
-
if (dirty &
|
|
3423
|
-
/*src*/
|
|
3424
|
-
1) {
|
|
3425
|
-
set_style(div, "background-image", "url(" +
|
|
3426
|
-
/*src*/
|
|
3427
|
-
ctx[0] + ")");
|
|
3428
|
-
}
|
|
3429
|
-
|
|
3430
|
-
if (dirty &
|
|
3431
|
-
/*height*/
|
|
3432
|
-
2) {
|
|
3433
|
-
set_style(div, "height",
|
|
3434
|
-
/*height*/
|
|
3435
|
-
ctx[1]);
|
|
3436
|
-
}
|
|
3437
|
-
},
|
|
3438
|
-
|
|
3439
|
-
i: noop,
|
|
3440
|
-
o: noop,
|
|
3441
|
-
|
|
3442
|
-
d(detaching) {
|
|
3443
|
-
if (detaching) detach(div);
|
|
3444
|
-
}
|
|
3445
|
-
|
|
3446
|
-
};
|
|
3447
|
-
}
|
|
3448
|
-
|
|
3449
|
-
function instance$u($$self, $$props, $$invalidate) {
|
|
3450
|
-
let {
|
|
3451
|
-
src
|
|
3452
|
-
} = $$props;
|
|
3453
|
-
let {
|
|
3454
|
-
height = "100%"
|
|
3455
|
-
} = $$props;
|
|
3456
|
-
|
|
3457
|
-
$$self.$$set = $$props => {
|
|
3458
|
-
if ('src' in $$props) $$invalidate(0, src = $$props.src);
|
|
3459
|
-
if ('height' in $$props) $$invalidate(1, height = $$props.height);
|
|
3460
|
-
};
|
|
3461
|
-
|
|
3462
|
-
return [src, height];
|
|
3463
|
-
}
|
|
3464
|
-
|
|
3465
|
-
class CardImage extends SvelteElement {
|
|
3466
|
-
constructor(options) {
|
|
3467
|
-
super();
|
|
3468
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}</style>`;
|
|
3469
|
-
init(this, {
|
|
3470
|
-
target: this.shadowRoot,
|
|
3471
|
-
props: attribute_to_object(this.attributes),
|
|
3472
|
-
customElement: true
|
|
3473
|
-
}, instance$u, create_fragment$w, safe_not_equal, {
|
|
3474
|
-
src: 0,
|
|
3475
|
-
height: 1
|
|
3476
|
-
}, null);
|
|
3477
|
-
|
|
3478
|
-
if (options) {
|
|
3479
|
-
if (options.target) {
|
|
3480
|
-
insert(options.target, this, options.anchor);
|
|
3481
|
-
}
|
|
3482
|
-
|
|
3483
|
-
if (options.props) {
|
|
3484
|
-
this.$set(options.props);
|
|
3485
|
-
flush();
|
|
3486
|
-
}
|
|
3487
|
-
}
|
|
3488
|
-
}
|
|
3489
|
-
|
|
3490
|
-
static get observedAttributes() {
|
|
3491
|
-
return ["src", "height"];
|
|
3492
|
-
}
|
|
3493
|
-
|
|
3494
|
-
get src() {
|
|
3495
|
-
return this.$$.ctx[0];
|
|
3496
|
-
}
|
|
3497
|
-
|
|
3498
|
-
set src(src) {
|
|
3499
|
-
this.$$set({
|
|
3500
|
-
src
|
|
3501
|
-
});
|
|
3502
|
-
flush();
|
|
3503
|
-
}
|
|
3504
|
-
|
|
3505
|
-
get height() {
|
|
3506
|
-
return this.$$.ctx[1];
|
|
3507
|
-
}
|
|
3508
|
-
|
|
3509
|
-
set height(height) {
|
|
3510
|
-
this.$$set({
|
|
3511
|
-
height
|
|
3512
|
-
});
|
|
3513
|
-
flush();
|
|
3514
|
-
}
|
|
3515
|
-
|
|
3516
|
-
}
|
|
3517
|
-
|
|
3518
|
-
customElements.define("goa-card-image", CardImage);
|
|
3519
|
-
/* libs/web-components/src/components/card/Card.svelte generated by Svelte v3.51.0 */
|
|
3520
|
-
|
|
3521
|
-
function create_fragment$v(ctx) {
|
|
3522
|
-
let div;
|
|
3523
|
-
let slot;
|
|
3524
|
-
let div_style_value;
|
|
3525
|
-
return {
|
|
3526
|
-
c() {
|
|
3527
|
-
div = element("div");
|
|
3528
|
-
slot = element("slot");
|
|
3314
|
+
slot = element("slot");
|
|
3529
3315
|
this.c = noop;
|
|
3530
3316
|
attr(div, "data-testid",
|
|
3531
3317
|
/*testid*/
|
|
@@ -3645,7 +3431,7 @@
|
|
|
3645
3431
|
target: this.shadowRoot,
|
|
3646
3432
|
props: attribute_to_object(this.attributes),
|
|
3647
3433
|
customElement: true
|
|
3648
|
-
}, instance$t, create_fragment$
|
|
3434
|
+
}, instance$t, create_fragment$y, safe_not_equal, {
|
|
3649
3435
|
elevation: 0,
|
|
3650
3436
|
width: 1,
|
|
3651
3437
|
height: 2,
|
|
@@ -3763,40 +3549,254 @@
|
|
|
3763
3549
|
}
|
|
3764
3550
|
|
|
3765
3551
|
customElements.define("goa-card", Card);
|
|
3766
|
-
/* libs/web-components/src/components/
|
|
3552
|
+
/* libs/web-components/src/components/card-content/CardContent.svelte generated by Svelte v3.51.0 */
|
|
3767
3553
|
|
|
3768
|
-
function
|
|
3769
|
-
let
|
|
3770
|
-
let path;
|
|
3554
|
+
function create_fragment$x(ctx) {
|
|
3555
|
+
let div;
|
|
3771
3556
|
return {
|
|
3772
3557
|
c() {
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
attr(
|
|
3777
|
-
attr(svg, "data-testid", "checkmark");
|
|
3778
|
-
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
3779
|
-
attr(svg, "viewBox", "0 0 16 12.18");
|
|
3558
|
+
div = element("div");
|
|
3559
|
+
div.innerHTML = `<slot></slot>`;
|
|
3560
|
+
this.c = noop;
|
|
3561
|
+
attr(div, "class", "card-content");
|
|
3780
3562
|
},
|
|
3781
3563
|
|
|
3782
3564
|
m(target, anchor) {
|
|
3783
|
-
insert(target,
|
|
3784
|
-
append(svg, path);
|
|
3565
|
+
insert(target, div, anchor);
|
|
3785
3566
|
},
|
|
3786
3567
|
|
|
3568
|
+
p: noop,
|
|
3569
|
+
i: noop,
|
|
3570
|
+
o: noop,
|
|
3571
|
+
|
|
3787
3572
|
d(detaching) {
|
|
3788
|
-
if (detaching) detach(
|
|
3573
|
+
if (detaching) detach(div);
|
|
3789
3574
|
}
|
|
3790
3575
|
|
|
3791
3576
|
};
|
|
3792
|
-
}
|
|
3577
|
+
}
|
|
3793
3578
|
|
|
3579
|
+
class CardContent extends SvelteElement {
|
|
3580
|
+
constructor(options) {
|
|
3581
|
+
super();
|
|
3582
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.card-content{padding:1rem}</style>`;
|
|
3583
|
+
init(this, {
|
|
3584
|
+
target: this.shadowRoot,
|
|
3585
|
+
props: attribute_to_object(this.attributes),
|
|
3586
|
+
customElement: true
|
|
3587
|
+
}, null, create_fragment$x, safe_not_equal, {}, null);
|
|
3794
3588
|
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3589
|
+
if (options) {
|
|
3590
|
+
if (options.target) {
|
|
3591
|
+
insert(options.target, this, options.anchor);
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
}
|
|
3595
|
+
|
|
3596
|
+
}
|
|
3597
|
+
|
|
3598
|
+
customElements.define("goa-card-content", CardContent);
|
|
3599
|
+
/* libs/web-components/src/components/card-group/CardGroup.svelte generated by Svelte v3.51.0 */
|
|
3600
|
+
|
|
3601
|
+
function create_fragment$w(ctx) {
|
|
3602
|
+
let div;
|
|
3603
|
+
return {
|
|
3604
|
+
c() {
|
|
3605
|
+
div = element("div");
|
|
3606
|
+
div.innerHTML = `<slot></slot>`;
|
|
3607
|
+
this.c = noop;
|
|
3608
|
+
attr(div, "class", "card-group");
|
|
3609
|
+
},
|
|
3610
|
+
|
|
3611
|
+
m(target, anchor) {
|
|
3612
|
+
insert(target, div, anchor);
|
|
3613
|
+
},
|
|
3614
|
+
|
|
3615
|
+
p: noop,
|
|
3616
|
+
i: noop,
|
|
3617
|
+
o: noop,
|
|
3618
|
+
|
|
3619
|
+
d(detaching) {
|
|
3620
|
+
if (detaching) detach(div);
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
};
|
|
3624
|
+
}
|
|
3625
|
+
|
|
3626
|
+
class CardGroup extends SvelteElement {
|
|
3627
|
+
constructor(options) {
|
|
3628
|
+
super();
|
|
3629
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.card-group{display:flex;flex-wrap:wrap;justify-content:space-around;gap:1rem;width:100%}</style>`;
|
|
3630
|
+
init(this, {
|
|
3631
|
+
target: this.shadowRoot,
|
|
3632
|
+
props: attribute_to_object(this.attributes),
|
|
3633
|
+
customElement: true
|
|
3634
|
+
}, null, create_fragment$w, safe_not_equal, {}, null);
|
|
3635
|
+
|
|
3636
|
+
if (options) {
|
|
3637
|
+
if (options.target) {
|
|
3638
|
+
insert(options.target, this, options.anchor);
|
|
3639
|
+
}
|
|
3640
|
+
}
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
customElements.define("goa-card-group", CardGroup);
|
|
3646
|
+
/* libs/web-components/src/components/card-image/CardImage.svelte generated by Svelte v3.51.0 */
|
|
3647
|
+
|
|
3648
|
+
function create_fragment$v(ctx) {
|
|
3649
|
+
let div;
|
|
3650
|
+
return {
|
|
3651
|
+
c() {
|
|
3652
|
+
div = element("div");
|
|
3653
|
+
this.c = noop;
|
|
3654
|
+
set_style(div, "background-image", "url(" +
|
|
3655
|
+
/*src*/
|
|
3656
|
+
ctx[0] + ")");
|
|
3657
|
+
set_style(div, "height",
|
|
3658
|
+
/*height*/
|
|
3659
|
+
ctx[1]);
|
|
3660
|
+
set_style(div, "background-size", "cover");
|
|
3661
|
+
set_style(div, "background-position", "center");
|
|
3662
|
+
},
|
|
3663
|
+
|
|
3664
|
+
m(target, anchor) {
|
|
3665
|
+
insert(target, div, anchor);
|
|
3666
|
+
},
|
|
3667
|
+
|
|
3668
|
+
p(ctx, [dirty]) {
|
|
3669
|
+
if (dirty &
|
|
3670
|
+
/*src*/
|
|
3671
|
+
1) {
|
|
3672
|
+
set_style(div, "background-image", "url(" +
|
|
3673
|
+
/*src*/
|
|
3674
|
+
ctx[0] + ")");
|
|
3675
|
+
}
|
|
3676
|
+
|
|
3677
|
+
if (dirty &
|
|
3678
|
+
/*height*/
|
|
3679
|
+
2) {
|
|
3680
|
+
set_style(div, "height",
|
|
3681
|
+
/*height*/
|
|
3682
|
+
ctx[1]);
|
|
3683
|
+
}
|
|
3684
|
+
},
|
|
3685
|
+
|
|
3686
|
+
i: noop,
|
|
3687
|
+
o: noop,
|
|
3688
|
+
|
|
3689
|
+
d(detaching) {
|
|
3690
|
+
if (detaching) detach(div);
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3693
|
+
};
|
|
3694
|
+
}
|
|
3695
|
+
|
|
3696
|
+
function instance$s($$self, $$props, $$invalidate) {
|
|
3697
|
+
let {
|
|
3698
|
+
src
|
|
3699
|
+
} = $$props;
|
|
3700
|
+
let {
|
|
3701
|
+
height = "100%"
|
|
3702
|
+
} = $$props;
|
|
3703
|
+
|
|
3704
|
+
$$self.$$set = $$props => {
|
|
3705
|
+
if ('src' in $$props) $$invalidate(0, src = $$props.src);
|
|
3706
|
+
if ('height' in $$props) $$invalidate(1, height = $$props.height);
|
|
3707
|
+
};
|
|
3708
|
+
|
|
3709
|
+
return [src, height];
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
class CardImage extends SvelteElement {
|
|
3713
|
+
constructor(options) {
|
|
3714
|
+
super();
|
|
3715
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}</style>`;
|
|
3716
|
+
init(this, {
|
|
3717
|
+
target: this.shadowRoot,
|
|
3718
|
+
props: attribute_to_object(this.attributes),
|
|
3719
|
+
customElement: true
|
|
3720
|
+
}, instance$s, create_fragment$v, safe_not_equal, {
|
|
3721
|
+
src: 0,
|
|
3722
|
+
height: 1
|
|
3723
|
+
}, null);
|
|
3724
|
+
|
|
3725
|
+
if (options) {
|
|
3726
|
+
if (options.target) {
|
|
3727
|
+
insert(options.target, this, options.anchor);
|
|
3728
|
+
}
|
|
3729
|
+
|
|
3730
|
+
if (options.props) {
|
|
3731
|
+
this.$set(options.props);
|
|
3732
|
+
flush();
|
|
3733
|
+
}
|
|
3734
|
+
}
|
|
3735
|
+
}
|
|
3736
|
+
|
|
3737
|
+
static get observedAttributes() {
|
|
3738
|
+
return ["src", "height"];
|
|
3739
|
+
}
|
|
3740
|
+
|
|
3741
|
+
get src() {
|
|
3742
|
+
return this.$$.ctx[0];
|
|
3743
|
+
}
|
|
3744
|
+
|
|
3745
|
+
set src(src) {
|
|
3746
|
+
this.$$set({
|
|
3747
|
+
src
|
|
3748
|
+
});
|
|
3749
|
+
flush();
|
|
3750
|
+
}
|
|
3751
|
+
|
|
3752
|
+
get height() {
|
|
3753
|
+
return this.$$.ctx[1];
|
|
3754
|
+
}
|
|
3755
|
+
|
|
3756
|
+
set height(height) {
|
|
3757
|
+
this.$$set({
|
|
3758
|
+
height
|
|
3759
|
+
});
|
|
3760
|
+
flush();
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
customElements.define("goa-card-image", CardImage);
|
|
3766
|
+
/* libs/web-components/src/components/checkbox/Checkbox.svelte generated by Svelte v3.51.0 */
|
|
3767
|
+
|
|
3768
|
+
function create_if_block_1$8(ctx) {
|
|
3769
|
+
let svg;
|
|
3770
|
+
let path;
|
|
3771
|
+
return {
|
|
3772
|
+
c() {
|
|
3773
|
+
svg = svg_element("svg");
|
|
3774
|
+
path = svg_element("path");
|
|
3775
|
+
attr(path, "d", "M5.09,9.64,1.27,5.82,0,7.09l5.09,5.09L16,1.27,14.73,0Z");
|
|
3776
|
+
attr(svg, "id", "checkmark");
|
|
3777
|
+
attr(svg, "data-testid", "checkmark");
|
|
3778
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
3779
|
+
attr(svg, "viewBox", "0 0 16 12.18");
|
|
3780
|
+
},
|
|
3781
|
+
|
|
3782
|
+
m(target, anchor) {
|
|
3783
|
+
insert(target, svg, anchor);
|
|
3784
|
+
append(svg, path);
|
|
3785
|
+
},
|
|
3786
|
+
|
|
3787
|
+
d(detaching) {
|
|
3788
|
+
if (detaching) detach(svg);
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3791
|
+
};
|
|
3792
|
+
} // (68:4) {#if isIndeterminate}
|
|
3793
|
+
|
|
3794
|
+
|
|
3795
|
+
function create_if_block$d(ctx) {
|
|
3796
|
+
let svg;
|
|
3797
|
+
let rect;
|
|
3798
|
+
return {
|
|
3799
|
+
c() {
|
|
3800
3800
|
svg = svg_element("svg");
|
|
3801
3801
|
rect = svg_element("rect");
|
|
3802
3802
|
attr(rect, "width", "15");
|
|
@@ -4068,7 +4068,7 @@
|
|
|
4068
4068
|
};
|
|
4069
4069
|
}
|
|
4070
4070
|
|
|
4071
|
-
function instance$
|
|
4071
|
+
function instance$r($$self, $$props, $$invalidate) {
|
|
4072
4072
|
let isDisabled;
|
|
4073
4073
|
let isError;
|
|
4074
4074
|
let isChecked;
|
|
@@ -4183,7 +4183,7 @@
|
|
|
4183
4183
|
target: this.shadowRoot,
|
|
4184
4184
|
props: attribute_to_object(this.attributes),
|
|
4185
4185
|
customElement: true
|
|
4186
|
-
}, instance$
|
|
4186
|
+
}, instance$r, create_fragment$u, safe_not_equal, {
|
|
4187
4187
|
name: 0,
|
|
4188
4188
|
checked: 14,
|
|
4189
4189
|
text: 1,
|
|
@@ -4623,7 +4623,7 @@
|
|
|
4623
4623
|
};
|
|
4624
4624
|
}
|
|
4625
4625
|
|
|
4626
|
-
function instance$
|
|
4626
|
+
function instance$q($$self, $$props, $$invalidate) {
|
|
4627
4627
|
let {
|
|
4628
4628
|
mt = null
|
|
4629
4629
|
} = $$props;
|
|
@@ -4724,7 +4724,7 @@
|
|
|
4724
4724
|
target: this.shadowRoot,
|
|
4725
4725
|
props: attribute_to_object(this.attributes),
|
|
4726
4726
|
customElement: true
|
|
4727
|
-
}, instance$
|
|
4727
|
+
}, instance$q, create_fragment$t, safe_not_equal, {
|
|
4728
4728
|
mt: 0,
|
|
4729
4729
|
mr: 1,
|
|
4730
4730
|
mb: 2,
|
|
@@ -5417,7 +5417,7 @@
|
|
|
5417
5417
|
};
|
|
5418
5418
|
}
|
|
5419
5419
|
|
|
5420
|
-
function instance$
|
|
5420
|
+
function instance$p($$self, $$props, $$invalidate) {
|
|
5421
5421
|
let isVisible;
|
|
5422
5422
|
const [Variants, validateVariant] = typeValidator("Circular progress variant", ["fullscreen", "inline"]);
|
|
5423
5423
|
const [Sizes, validateSize] = typeValidator("Button size", ["small", "large"]);
|
|
@@ -5475,7 +5475,7 @@
|
|
|
5475
5475
|
target: this.shadowRoot,
|
|
5476
5476
|
props: attribute_to_object(this.attributes),
|
|
5477
5477
|
customElement: true
|
|
5478
|
-
}, instance$
|
|
5478
|
+
}, instance$p, create_fragment$s, safe_not_equal, {
|
|
5479
5479
|
variant: 6,
|
|
5480
5480
|
size: 7,
|
|
5481
5481
|
message: 0,
|
|
@@ -5684,7 +5684,7 @@
|
|
|
5684
5684
|
};
|
|
5685
5685
|
}
|
|
5686
5686
|
|
|
5687
|
-
function instance$
|
|
5687
|
+
function instance$o($$self, $$props, $$invalidate) {
|
|
5688
5688
|
const [Types, validateType] = typeValidator("Container type", ["interactive", "info", "error", "success", "important", "non-interactive"]);
|
|
5689
5689
|
const [Accents, validateAccent] = typeValidator("Container accent", ["thick", "thin", "filled"]);
|
|
5690
5690
|
const [Paddings, validatePadding] = typeValidator("Container padding", ["relaxed", "compact"]);
|
|
@@ -5740,7 +5740,7 @@
|
|
|
5740
5740
|
target: this.shadowRoot,
|
|
5741
5741
|
props: attribute_to_object(this.attributes),
|
|
5742
5742
|
customElement: true
|
|
5743
|
-
}, instance$
|
|
5743
|
+
}, instance$o, create_fragment$r, safe_not_equal, {
|
|
5744
5744
|
type: 0,
|
|
5745
5745
|
accent: 1,
|
|
5746
5746
|
padding: 2,
|
|
@@ -5919,7 +5919,7 @@
|
|
|
5919
5919
|
};
|
|
5920
5920
|
}
|
|
5921
5921
|
|
|
5922
|
-
function instance$
|
|
5922
|
+
function instance$n($$self, $$props, $$invalidate) {
|
|
5923
5923
|
let {
|
|
5924
5924
|
testid = ""
|
|
5925
5925
|
} = $$props;
|
|
@@ -5955,7 +5955,7 @@
|
|
|
5955
5955
|
target: this.shadowRoot,
|
|
5956
5956
|
props: attribute_to_object(this.attributes),
|
|
5957
5957
|
customElement: true
|
|
5958
|
-
}, instance$
|
|
5958
|
+
}, instance$n, create_fragment$q, safe_not_equal, {
|
|
5959
5959
|
testid: 0,
|
|
5960
5960
|
mt: 1,
|
|
5961
5961
|
mr: 2,
|
|
@@ -6037,186 +6037,83 @@
|
|
|
6037
6037
|
}
|
|
6038
6038
|
|
|
6039
6039
|
customElements.define("goa-divider", Divider);
|
|
6040
|
-
|
|
6041
|
-
/**
|
|
6042
|
-
* Create a `Writable` store that allows both updating and reading by subscription.
|
|
6043
|
-
* @param {*=}value initial value
|
|
6044
|
-
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
|
6045
|
-
*/
|
|
6046
|
-
|
|
6047
|
-
function writable(value, start = noop) {
|
|
6048
|
-
let stop;
|
|
6049
|
-
const subscribers = new Set();
|
|
6050
|
-
|
|
6051
|
-
function set(new_value) {
|
|
6052
|
-
if (safe_not_equal(value, new_value)) {
|
|
6053
|
-
value = new_value;
|
|
6040
|
+
/* libs/web-components/src/components/dropdown/Dropdown.svelte generated by Svelte v3.51.0 */
|
|
6054
6041
|
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6042
|
+
function get_each_context_1(ctx, list, i) {
|
|
6043
|
+
const child_ctx = ctx.slice();
|
|
6044
|
+
child_ctx[48] = list[i];
|
|
6045
|
+
child_ctx[52] = i;
|
|
6046
|
+
return child_ctx;
|
|
6047
|
+
}
|
|
6058
6048
|
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
if (run_queue) {
|
|
6065
|
-
for (let i = 0; i < subscriber_queue.length; i += 2) {
|
|
6066
|
-
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
|
6067
|
-
}
|
|
6068
|
-
|
|
6069
|
-
subscriber_queue.length = 0;
|
|
6070
|
-
}
|
|
6071
|
-
}
|
|
6072
|
-
}
|
|
6073
|
-
}
|
|
6074
|
-
|
|
6075
|
-
function update(fn) {
|
|
6076
|
-
set(fn(value));
|
|
6077
|
-
}
|
|
6078
|
-
|
|
6079
|
-
function subscribe(run, invalidate = noop) {
|
|
6080
|
-
const subscriber = [run, invalidate];
|
|
6081
|
-
subscribers.add(subscriber);
|
|
6082
|
-
|
|
6083
|
-
if (subscribers.size === 1) {
|
|
6084
|
-
stop = start(set) || noop;
|
|
6085
|
-
}
|
|
6086
|
-
|
|
6087
|
-
run(value);
|
|
6088
|
-
return () => {
|
|
6089
|
-
subscribers.delete(subscriber);
|
|
6090
|
-
|
|
6091
|
-
if (subscribers.size === 0) {
|
|
6092
|
-
stop();
|
|
6093
|
-
stop = null;
|
|
6094
|
-
}
|
|
6095
|
-
};
|
|
6096
|
-
}
|
|
6097
|
-
|
|
6098
|
-
return {
|
|
6099
|
-
set,
|
|
6100
|
-
update,
|
|
6101
|
-
subscribe
|
|
6102
|
-
};
|
|
6103
|
-
}
|
|
6104
|
-
|
|
6105
|
-
const stores = {};
|
|
6106
|
-
|
|
6107
|
-
class ContextStoreInternal {
|
|
6108
|
-
constructor() {
|
|
6109
|
-
this.store = writable();
|
|
6110
|
-
}
|
|
6111
|
-
|
|
6112
|
-
subscribe(cb) {
|
|
6113
|
-
this.store.subscribe(state => {
|
|
6114
|
-
if (!state) return;
|
|
6115
|
-
cb(state);
|
|
6116
|
-
});
|
|
6117
|
-
}
|
|
6118
|
-
|
|
6119
|
-
notify(msg) {
|
|
6120
|
-
const _this = this;
|
|
6121
|
-
|
|
6122
|
-
const fn = function fn() {
|
|
6123
|
-
return _call(tick, function () {
|
|
6124
|
-
_this.store.update(() => msg);
|
|
6125
|
-
});
|
|
6126
|
-
};
|
|
6127
|
-
|
|
6128
|
-
fn();
|
|
6129
|
-
}
|
|
6130
|
-
|
|
6131
|
-
}
|
|
6132
|
-
|
|
6133
|
-
function getContext(name) {
|
|
6134
|
-
let ctx = stores[name];
|
|
6135
|
-
|
|
6136
|
-
if (!ctx) {
|
|
6137
|
-
ctx = new ContextStoreInternal();
|
|
6138
|
-
}
|
|
6139
|
-
|
|
6140
|
-
stores[name] = ctx;
|
|
6141
|
-
return ctx;
|
|
6142
|
-
}
|
|
6143
|
-
|
|
6144
|
-
function deleteContext(name) {
|
|
6145
|
-
const store = stores[name];
|
|
6146
|
-
if (!store) return;
|
|
6147
|
-
delete stores[name];
|
|
6148
|
-
}
|
|
6149
|
-
/* libs/web-components/src/components/dropdown/Dropdown.svelte generated by Svelte v3.51.0 */
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
function get_each_context_1(ctx, list, i) {
|
|
6153
|
-
const child_ctx = ctx.slice();
|
|
6154
|
-
child_ctx[47] = list[i];
|
|
6155
|
-
child_ctx[51] = i;
|
|
6156
|
-
return child_ctx;
|
|
6157
|
-
}
|
|
6158
|
-
|
|
6159
|
-
function get_each_context$4(ctx, list, i) {
|
|
6160
|
-
const child_ctx = ctx.slice();
|
|
6161
|
-
child_ctx[47] = list[i];
|
|
6162
|
-
return child_ctx;
|
|
6163
|
-
} // (224:2) {:else}
|
|
6049
|
+
function get_each_context$4(ctx, list, i) {
|
|
6050
|
+
const child_ctx = ctx.slice();
|
|
6051
|
+
child_ctx[48] = list[i];
|
|
6052
|
+
return child_ctx;
|
|
6053
|
+
} // (244:2) {:else}
|
|
6164
6054
|
|
|
6165
6055
|
|
|
6166
6056
|
function create_else_block$1(ctx) {
|
|
6167
6057
|
let t0;
|
|
6058
|
+
let slot;
|
|
6059
|
+
let t1;
|
|
6168
6060
|
let goa_input;
|
|
6169
6061
|
let goa_input_aria_label_value;
|
|
6170
6062
|
let goa_input_data_testid_value;
|
|
6171
|
-
let t1;
|
|
6172
|
-
let ul;
|
|
6173
6063
|
let t2;
|
|
6174
|
-
let
|
|
6064
|
+
let ul;
|
|
6065
|
+
let each_blocks = [];
|
|
6066
|
+
let each_1_lookup = new Map();
|
|
6175
6067
|
let ul_style_value;
|
|
6176
6068
|
let mounted;
|
|
6177
6069
|
let dispose;
|
|
6178
6070
|
let if_block =
|
|
6179
|
-
/*
|
|
6180
|
-
ctx[
|
|
6071
|
+
/*_isMenuVisible*/
|
|
6072
|
+
ctx[15] && create_if_block_1$5(ctx);
|
|
6181
6073
|
let each_value_1 =
|
|
6182
|
-
/*
|
|
6183
|
-
ctx[
|
|
6184
|
-
|
|
6074
|
+
/*_options*/
|
|
6075
|
+
ctx[13];
|
|
6076
|
+
|
|
6077
|
+
const get_key = ctx =>
|
|
6078
|
+
/*index*/
|
|
6079
|
+
ctx[52];
|
|
6185
6080
|
|
|
6186
6081
|
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
6187
|
-
|
|
6082
|
+
let child_ctx = get_each_context_1(ctx, each_value_1, i);
|
|
6083
|
+
let key = get_key(child_ctx);
|
|
6084
|
+
each_1_lookup.set(key, each_blocks[i] = create_each_block_1(key, child_ctx));
|
|
6188
6085
|
}
|
|
6189
6086
|
|
|
6190
6087
|
return {
|
|
6191
6088
|
c() {
|
|
6192
6089
|
if (if_block) if_block.c();
|
|
6193
6090
|
t0 = space();
|
|
6194
|
-
|
|
6091
|
+
slot = element("slot");
|
|
6195
6092
|
t1 = space();
|
|
6093
|
+
goa_input = element("goa-input");
|
|
6094
|
+
t2 = space();
|
|
6196
6095
|
ul = element("ul");
|
|
6197
6096
|
|
|
6198
6097
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6199
6098
|
each_blocks[i].c();
|
|
6200
6099
|
}
|
|
6201
6100
|
|
|
6202
|
-
t2 = space();
|
|
6203
|
-
slot = element("slot");
|
|
6204
6101
|
set_custom_element_data(goa_input, "error",
|
|
6205
6102
|
/*error*/
|
|
6206
|
-
ctx[
|
|
6103
|
+
ctx[7]);
|
|
6207
6104
|
set_custom_element_data(goa_input, "disabled",
|
|
6208
6105
|
/*disabled*/
|
|
6209
|
-
ctx[
|
|
6106
|
+
ctx[6]);
|
|
6210
6107
|
set_custom_element_data(goa_input, "leadingicon",
|
|
6211
6108
|
/*leadingicon*/
|
|
6212
|
-
ctx[
|
|
6109
|
+
ctx[2]);
|
|
6213
6110
|
set_custom_element_data(goa_input, "placeholder",
|
|
6214
6111
|
/*placeholder*/
|
|
6215
|
-
ctx[
|
|
6112
|
+
ctx[4]);
|
|
6216
6113
|
set_custom_element_data(goa_input, "aria-controls", "menu");
|
|
6217
6114
|
set_custom_element_data(goa_input, "aria-expanded",
|
|
6218
|
-
/*
|
|
6219
|
-
ctx[
|
|
6115
|
+
/*_isMenuVisible*/
|
|
6116
|
+
ctx[15]);
|
|
6220
6117
|
set_custom_element_data(goa_input, "aria-label", goa_input_aria_label_value =
|
|
6221
6118
|
/*arialabel*/
|
|
6222
6119
|
ctx[1] ||
|
|
@@ -6230,54 +6127,54 @@
|
|
|
6230
6127
|
set_custom_element_data(goa_input, "trailingicon", "chevron-down");
|
|
6231
6128
|
set_custom_element_data(goa_input, "type", "text");
|
|
6232
6129
|
set_custom_element_data(goa_input, "value",
|
|
6233
|
-
/*
|
|
6234
|
-
ctx[
|
|
6130
|
+
/*_selectedLabel*/
|
|
6131
|
+
ctx[14]);
|
|
6235
6132
|
set_custom_element_data(goa_input, "width", "100%");
|
|
6236
6133
|
attr(ul, "id", "menu");
|
|
6237
6134
|
attr(ul, "role", "listbox");
|
|
6238
6135
|
attr(ul, "aria-activedescendant",
|
|
6239
|
-
/*
|
|
6240
|
-
ctx[
|
|
6136
|
+
/*_selectedLabel*/
|
|
6137
|
+
ctx[14]);
|
|
6241
6138
|
attr(ul, "data-testid", "dropdown-menu");
|
|
6242
6139
|
attr(ul, "tabindex", "0");
|
|
6243
6140
|
attr(ul, "class", "dropdown-list");
|
|
6244
6141
|
attr(ul, "style", ul_style_value = `overflow-y: auto; max-height: ${
|
|
6245
6142
|
/*maxheight*/
|
|
6246
|
-
ctx[
|
|
6143
|
+
ctx[3]}`);
|
|
6247
6144
|
toggle_class(ul, "dropdown-active",
|
|
6248
|
-
/*
|
|
6249
|
-
ctx[
|
|
6145
|
+
/*_isMenuVisible*/
|
|
6146
|
+
ctx[15]);
|
|
6250
6147
|
},
|
|
6251
6148
|
|
|
6252
6149
|
m(target, anchor) {
|
|
6253
6150
|
if (if_block) if_block.m(target, anchor);
|
|
6254
6151
|
insert(target, t0, anchor);
|
|
6255
|
-
insert(target,
|
|
6152
|
+
insert(target, slot, anchor);
|
|
6256
6153
|
insert(target, t1, anchor);
|
|
6154
|
+
insert(target, goa_input, anchor);
|
|
6155
|
+
insert(target, t2, anchor);
|
|
6257
6156
|
insert(target, ul, anchor);
|
|
6258
6157
|
|
|
6259
6158
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6260
6159
|
each_blocks[i].m(ul, null);
|
|
6261
6160
|
}
|
|
6262
|
-
|
|
6263
|
-
append(ul, t2);
|
|
6264
|
-
append(ul, slot);
|
|
6265
6161
|
/*ul_binding*/
|
|
6266
6162
|
|
|
6267
|
-
|
|
6163
|
+
|
|
6164
|
+
ctx[33](ul);
|
|
6268
6165
|
|
|
6269
6166
|
if (!mounted) {
|
|
6270
6167
|
dispose = listen(goa_input, "click",
|
|
6271
6168
|
/*showMenu*/
|
|
6272
|
-
ctx[
|
|
6169
|
+
ctx[24]);
|
|
6273
6170
|
mounted = true;
|
|
6274
6171
|
}
|
|
6275
6172
|
},
|
|
6276
6173
|
|
|
6277
6174
|
p(ctx, dirty) {
|
|
6278
6175
|
if (
|
|
6279
|
-
/*
|
|
6280
|
-
ctx[
|
|
6176
|
+
/*_isMenuVisible*/
|
|
6177
|
+
ctx[15]) {
|
|
6281
6178
|
if (if_block) {
|
|
6282
6179
|
if_block.p(ctx, dirty);
|
|
6283
6180
|
} else {
|
|
@@ -6292,42 +6189,42 @@
|
|
|
6292
6189
|
|
|
6293
6190
|
if (dirty[0] &
|
|
6294
6191
|
/*error*/
|
|
6295
|
-
|
|
6192
|
+
128) {
|
|
6296
6193
|
set_custom_element_data(goa_input, "error",
|
|
6297
6194
|
/*error*/
|
|
6298
|
-
ctx[
|
|
6195
|
+
ctx[7]);
|
|
6299
6196
|
}
|
|
6300
6197
|
|
|
6301
6198
|
if (dirty[0] &
|
|
6302
6199
|
/*disabled*/
|
|
6303
|
-
|
|
6200
|
+
64) {
|
|
6304
6201
|
set_custom_element_data(goa_input, "disabled",
|
|
6305
6202
|
/*disabled*/
|
|
6306
|
-
ctx[
|
|
6203
|
+
ctx[6]);
|
|
6307
6204
|
}
|
|
6308
6205
|
|
|
6309
6206
|
if (dirty[0] &
|
|
6310
6207
|
/*leadingicon*/
|
|
6311
|
-
|
|
6208
|
+
4) {
|
|
6312
6209
|
set_custom_element_data(goa_input, "leadingicon",
|
|
6313
6210
|
/*leadingicon*/
|
|
6314
|
-
ctx[
|
|
6211
|
+
ctx[2]);
|
|
6315
6212
|
}
|
|
6316
6213
|
|
|
6317
6214
|
if (dirty[0] &
|
|
6318
6215
|
/*placeholder*/
|
|
6319
|
-
|
|
6216
|
+
16) {
|
|
6320
6217
|
set_custom_element_data(goa_input, "placeholder",
|
|
6321
6218
|
/*placeholder*/
|
|
6322
|
-
ctx[
|
|
6219
|
+
ctx[4]);
|
|
6323
6220
|
}
|
|
6324
6221
|
|
|
6325
6222
|
if (dirty[0] &
|
|
6326
|
-
/*
|
|
6327
|
-
|
|
6223
|
+
/*_isMenuVisible*/
|
|
6224
|
+
32768) {
|
|
6328
6225
|
set_custom_element_data(goa_input, "aria-expanded",
|
|
6329
|
-
/*
|
|
6330
|
-
ctx[
|
|
6226
|
+
/*_isMenuVisible*/
|
|
6227
|
+
ctx[15]);
|
|
6331
6228
|
}
|
|
6332
6229
|
|
|
6333
6230
|
if (dirty[0] &
|
|
@@ -6349,151 +6246,195 @@
|
|
|
6349
6246
|
}
|
|
6350
6247
|
|
|
6351
6248
|
if (dirty[0] &
|
|
6352
|
-
/*
|
|
6353
|
-
|
|
6249
|
+
/*_selectedLabel*/
|
|
6250
|
+
16384) {
|
|
6354
6251
|
set_custom_element_data(goa_input, "value",
|
|
6355
|
-
/*
|
|
6356
|
-
ctx[
|
|
6252
|
+
/*_selectedLabel*/
|
|
6253
|
+
ctx[14]);
|
|
6357
6254
|
}
|
|
6358
6255
|
|
|
6359
6256
|
if (dirty[0] &
|
|
6360
|
-
/*
|
|
6361
|
-
|
|
6257
|
+
/*_options, _values, _highlightedIndex, onSelect*/
|
|
6258
|
+
67186688) {
|
|
6362
6259
|
each_value_1 =
|
|
6363
|
-
/*
|
|
6364
|
-
ctx[
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
for (i = 0; i < each_value_1.length; i += 1) {
|
|
6368
|
-
const child_ctx = get_each_context_1(ctx, each_value_1, i);
|
|
6369
|
-
|
|
6370
|
-
if (each_blocks[i]) {
|
|
6371
|
-
each_blocks[i].p(child_ctx, dirty);
|
|
6372
|
-
} else {
|
|
6373
|
-
each_blocks[i] = create_each_block_1(child_ctx);
|
|
6374
|
-
each_blocks[i].c();
|
|
6375
|
-
each_blocks[i].m(ul, t2);
|
|
6376
|
-
}
|
|
6377
|
-
}
|
|
6378
|
-
|
|
6379
|
-
for (; i < each_blocks.length; i += 1) {
|
|
6380
|
-
each_blocks[i].d(1);
|
|
6381
|
-
}
|
|
6382
|
-
|
|
6383
|
-
each_blocks.length = each_value_1.length;
|
|
6260
|
+
/*_options*/
|
|
6261
|
+
ctx[13];
|
|
6262
|
+
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value_1, each_1_lookup, ul, destroy_block, create_each_block_1, null, get_each_context_1);
|
|
6384
6263
|
}
|
|
6385
6264
|
|
|
6386
6265
|
if (dirty[0] &
|
|
6387
|
-
/*
|
|
6388
|
-
|
|
6266
|
+
/*_selectedLabel*/
|
|
6267
|
+
16384) {
|
|
6389
6268
|
attr(ul, "aria-activedescendant",
|
|
6390
|
-
/*
|
|
6391
|
-
ctx[
|
|
6269
|
+
/*_selectedLabel*/
|
|
6270
|
+
ctx[14]);
|
|
6392
6271
|
}
|
|
6393
6272
|
|
|
6394
6273
|
if (dirty[0] &
|
|
6395
6274
|
/*maxheight*/
|
|
6396
|
-
|
|
6275
|
+
8 && ul_style_value !== (ul_style_value = `overflow-y: auto; max-height: ${
|
|
6397
6276
|
/*maxheight*/
|
|
6398
|
-
ctx[
|
|
6277
|
+
ctx[3]}`)) {
|
|
6399
6278
|
attr(ul, "style", ul_style_value);
|
|
6400
6279
|
}
|
|
6401
6280
|
|
|
6402
6281
|
if (dirty[0] &
|
|
6403
|
-
/*
|
|
6404
|
-
|
|
6282
|
+
/*_isMenuVisible*/
|
|
6283
|
+
32768) {
|
|
6405
6284
|
toggle_class(ul, "dropdown-active",
|
|
6406
|
-
/*
|
|
6407
|
-
ctx[
|
|
6285
|
+
/*_isMenuVisible*/
|
|
6286
|
+
ctx[15]);
|
|
6408
6287
|
}
|
|
6409
6288
|
},
|
|
6410
6289
|
|
|
6411
6290
|
d(detaching) {
|
|
6412
6291
|
if (if_block) if_block.d(detaching);
|
|
6413
6292
|
if (detaching) detach(t0);
|
|
6414
|
-
if (detaching) detach(
|
|
6293
|
+
if (detaching) detach(slot);
|
|
6415
6294
|
if (detaching) detach(t1);
|
|
6295
|
+
if (detaching) detach(goa_input);
|
|
6296
|
+
if (detaching) detach(t2);
|
|
6416
6297
|
if (detaching) detach(ul);
|
|
6417
|
-
|
|
6298
|
+
|
|
6299
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6300
|
+
each_blocks[i].d();
|
|
6301
|
+
}
|
|
6418
6302
|
/*ul_binding*/
|
|
6419
6303
|
|
|
6420
|
-
|
|
6304
|
+
|
|
6305
|
+
ctx[33](null);
|
|
6421
6306
|
mounted = false;
|
|
6422
6307
|
dispose();
|
|
6423
6308
|
}
|
|
6424
6309
|
|
|
6425
6310
|
};
|
|
6426
|
-
} // (
|
|
6311
|
+
} // (225:2) {#if _native}
|
|
6427
6312
|
|
|
6428
6313
|
|
|
6429
6314
|
function create_if_block$a(ctx) {
|
|
6430
6315
|
let select;
|
|
6431
|
-
let
|
|
6432
|
-
let
|
|
6316
|
+
let slot;
|
|
6317
|
+
let select_aria_label_value;
|
|
6433
6318
|
let mounted;
|
|
6434
6319
|
let dispose;
|
|
6435
6320
|
let each_value =
|
|
6436
|
-
/*
|
|
6437
|
-
ctx[
|
|
6438
|
-
|
|
6439
|
-
const get_key = ctx =>
|
|
6440
|
-
/*option*/
|
|
6441
|
-
ctx[47].value;
|
|
6321
|
+
/*_options*/
|
|
6322
|
+
ctx[13];
|
|
6323
|
+
let each_blocks = [];
|
|
6442
6324
|
|
|
6443
6325
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
6444
|
-
|
|
6445
|
-
let key = get_key(child_ctx);
|
|
6446
|
-
each_1_lookup.set(key, each_blocks[i] = create_each_block$4(key, child_ctx));
|
|
6326
|
+
each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
|
|
6447
6327
|
}
|
|
6448
6328
|
|
|
6449
6329
|
return {
|
|
6450
6330
|
c() {
|
|
6451
6331
|
select = element("select");
|
|
6332
|
+
slot = element("slot");
|
|
6452
6333
|
|
|
6453
6334
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6454
6335
|
each_blocks[i].c();
|
|
6455
6336
|
}
|
|
6337
|
+
|
|
6338
|
+
select.disabled =
|
|
6339
|
+
/*_disabled*/
|
|
6340
|
+
ctx[21];
|
|
6341
|
+
attr(select, "aria-label", select_aria_label_value =
|
|
6342
|
+
/*arialabel*/
|
|
6343
|
+
ctx[1] ||
|
|
6344
|
+
/*name*/
|
|
6345
|
+
ctx[0]);
|
|
6346
|
+
toggle_class(select, "error",
|
|
6347
|
+
/*_error*/
|
|
6348
|
+
ctx[23]);
|
|
6456
6349
|
},
|
|
6457
6350
|
|
|
6458
6351
|
m(target, anchor) {
|
|
6459
6352
|
insert(target, select, anchor);
|
|
6353
|
+
append(select, slot);
|
|
6460
6354
|
|
|
6461
6355
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
6462
6356
|
each_blocks[i].m(select, null);
|
|
6463
6357
|
}
|
|
6358
|
+
/*select_binding*/
|
|
6359
|
+
|
|
6360
|
+
|
|
6361
|
+
ctx[31](select);
|
|
6464
6362
|
|
|
6465
6363
|
if (!mounted) {
|
|
6466
6364
|
dispose = listen(select, "change",
|
|
6467
6365
|
/*onNativeSelect*/
|
|
6468
|
-
ctx[
|
|
6366
|
+
ctx[27]);
|
|
6469
6367
|
mounted = true;
|
|
6470
6368
|
}
|
|
6471
6369
|
},
|
|
6472
6370
|
|
|
6473
6371
|
p(ctx, dirty) {
|
|
6474
6372
|
if (dirty[0] &
|
|
6475
|
-
/*
|
|
6476
|
-
|
|
6373
|
+
/*_options*/
|
|
6374
|
+
8192) {
|
|
6477
6375
|
each_value =
|
|
6478
|
-
/*
|
|
6479
|
-
ctx[
|
|
6480
|
-
|
|
6376
|
+
/*_options*/
|
|
6377
|
+
ctx[13];
|
|
6378
|
+
let i;
|
|
6379
|
+
|
|
6380
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
6381
|
+
const child_ctx = get_each_context$4(ctx, each_value, i);
|
|
6382
|
+
|
|
6383
|
+
if (each_blocks[i]) {
|
|
6384
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
6385
|
+
} else {
|
|
6386
|
+
each_blocks[i] = create_each_block$4(child_ctx);
|
|
6387
|
+
each_blocks[i].c();
|
|
6388
|
+
each_blocks[i].m(select, null);
|
|
6389
|
+
}
|
|
6390
|
+
}
|
|
6391
|
+
|
|
6392
|
+
for (; i < each_blocks.length; i += 1) {
|
|
6393
|
+
each_blocks[i].d(1);
|
|
6394
|
+
}
|
|
6395
|
+
|
|
6396
|
+
each_blocks.length = each_value.length;
|
|
6397
|
+
}
|
|
6398
|
+
|
|
6399
|
+
if (dirty[0] &
|
|
6400
|
+
/*_disabled*/
|
|
6401
|
+
2097152) {
|
|
6402
|
+
select.disabled =
|
|
6403
|
+
/*_disabled*/
|
|
6404
|
+
ctx[21];
|
|
6405
|
+
}
|
|
6406
|
+
|
|
6407
|
+
if (dirty[0] &
|
|
6408
|
+
/*arialabel, name*/
|
|
6409
|
+
3 && select_aria_label_value !== (select_aria_label_value =
|
|
6410
|
+
/*arialabel*/
|
|
6411
|
+
ctx[1] ||
|
|
6412
|
+
/*name*/
|
|
6413
|
+
ctx[0])) {
|
|
6414
|
+
attr(select, "aria-label", select_aria_label_value);
|
|
6415
|
+
}
|
|
6416
|
+
|
|
6417
|
+
if (dirty[0] &
|
|
6418
|
+
/*_error*/
|
|
6419
|
+
8388608) {
|
|
6420
|
+
toggle_class(select, "error",
|
|
6421
|
+
/*_error*/
|
|
6422
|
+
ctx[23]);
|
|
6481
6423
|
}
|
|
6482
6424
|
},
|
|
6483
6425
|
|
|
6484
6426
|
d(detaching) {
|
|
6485
6427
|
if (detaching) detach(select);
|
|
6428
|
+
destroy_each(each_blocks, detaching);
|
|
6429
|
+
/*select_binding*/
|
|
6486
6430
|
|
|
6487
|
-
|
|
6488
|
-
each_blocks[i].d();
|
|
6489
|
-
}
|
|
6490
|
-
|
|
6431
|
+
ctx[31](null);
|
|
6491
6432
|
mounted = false;
|
|
6492
6433
|
dispose();
|
|
6493
6434
|
}
|
|
6494
6435
|
|
|
6495
6436
|
};
|
|
6496
|
-
} // (
|
|
6437
|
+
} // (245:4) {#if _isMenuVisible}
|
|
6497
6438
|
|
|
6498
6439
|
|
|
6499
6440
|
function create_if_block_1$5(ctx) {
|
|
@@ -6516,7 +6457,7 @@
|
|
|
6516
6457
|
if (!mounted) {
|
|
6517
6458
|
dispose = listen(div, "click",
|
|
6518
6459
|
/*closeMenu*/
|
|
6519
|
-
ctx[
|
|
6460
|
+
ctx[25]);
|
|
6520
6461
|
mounted = true;
|
|
6521
6462
|
}
|
|
6522
6463
|
},
|
|
@@ -6538,22 +6479,24 @@
|
|
|
6538
6479
|
}
|
|
6539
6480
|
|
|
6540
6481
|
};
|
|
6541
|
-
} // (
|
|
6482
|
+
} // (287:6) {#each _options as option, index (index)}
|
|
6542
6483
|
|
|
6543
6484
|
|
|
6544
|
-
function create_each_block_1(ctx) {
|
|
6485
|
+
function create_each_block_1(key_1, ctx) {
|
|
6545
6486
|
let li;
|
|
6546
|
-
let
|
|
6487
|
+
let t0_value = (
|
|
6547
6488
|
/*option*/
|
|
6548
|
-
ctx[
|
|
6489
|
+
ctx[48].label ||
|
|
6549
6490
|
/*option*/
|
|
6550
|
-
ctx[
|
|
6551
|
-
let
|
|
6491
|
+
ctx[48].value) + "";
|
|
6492
|
+
let t0;
|
|
6493
|
+
let t1;
|
|
6552
6494
|
let li_id_value;
|
|
6553
6495
|
let li_aria_label_value;
|
|
6554
6496
|
let li_aria_selected_value;
|
|
6555
6497
|
let li_data_testid_value;
|
|
6556
6498
|
let li_data_index_value;
|
|
6499
|
+
let li_data_value_value;
|
|
6557
6500
|
let li_style_value;
|
|
6558
6501
|
let mounted;
|
|
6559
6502
|
let dispose;
|
|
@@ -6561,54 +6504,63 @@
|
|
|
6561
6504
|
function click_handler() {
|
|
6562
6505
|
return (
|
|
6563
6506
|
/*click_handler*/
|
|
6564
|
-
ctx[
|
|
6507
|
+
ctx[32](
|
|
6565
6508
|
/*option*/
|
|
6566
|
-
ctx[
|
|
6509
|
+
ctx[48])
|
|
6567
6510
|
);
|
|
6568
6511
|
}
|
|
6569
6512
|
|
|
6570
6513
|
return {
|
|
6514
|
+
key: key_1,
|
|
6515
|
+
first: null,
|
|
6516
|
+
|
|
6571
6517
|
c() {
|
|
6572
6518
|
li = element("li");
|
|
6573
|
-
|
|
6519
|
+
t0 = text(t0_value);
|
|
6520
|
+
t1 = space();
|
|
6574
6521
|
attr(li, "id", li_id_value =
|
|
6575
6522
|
/*option*/
|
|
6576
|
-
ctx[
|
|
6523
|
+
ctx[48].label);
|
|
6577
6524
|
attr(li, "role", "option");
|
|
6578
6525
|
attr(li, "aria-label", li_aria_label_value =
|
|
6579
6526
|
/*option*/
|
|
6580
|
-
ctx[
|
|
6527
|
+
ctx[48].label ||
|
|
6581
6528
|
/*option*/
|
|
6582
|
-
ctx[
|
|
6529
|
+
ctx[48].value);
|
|
6583
6530
|
attr(li, "aria-selected", li_aria_selected_value =
|
|
6584
6531
|
/*_values*/
|
|
6585
|
-
ctx[
|
|
6532
|
+
ctx[12].includes(
|
|
6586
6533
|
/*option*/
|
|
6587
|
-
ctx[
|
|
6588
|
-
attr(li, "class", "dropdown-
|
|
6534
|
+
ctx[48].value) ? "true" : "false");
|
|
6535
|
+
attr(li, "class", "dropdown-item");
|
|
6589
6536
|
attr(li, "data-testid", li_data_testid_value = `dropdown-item-${
|
|
6590
6537
|
/*option*/
|
|
6591
|
-
ctx[
|
|
6538
|
+
ctx[48].value}`);
|
|
6592
6539
|
attr(li, "data-index", li_data_index_value =
|
|
6593
6540
|
/*index*/
|
|
6594
|
-
ctx[
|
|
6541
|
+
ctx[52]);
|
|
6542
|
+
attr(li, "data-value", li_data_value_value =
|
|
6543
|
+
/*option*/
|
|
6544
|
+
ctx[48].value);
|
|
6595
6545
|
attr(li, "style", li_style_value = `display: ${"block"}`);
|
|
6596
|
-
toggle_class(li, "dropdown-
|
|
6597
|
-
toggle_class(li, "dropdown-
|
|
6546
|
+
toggle_class(li, "dropdown-item--disabled", false);
|
|
6547
|
+
toggle_class(li, "dropdown-item--tabbed",
|
|
6598
6548
|
/*index*/
|
|
6599
|
-
ctx[
|
|
6600
|
-
/*
|
|
6601
|
-
ctx[
|
|
6602
|
-
toggle_class(li, "dropdown-
|
|
6549
|
+
ctx[52] ===
|
|
6550
|
+
/*_highlightedIndex*/
|
|
6551
|
+
ctx[16]);
|
|
6552
|
+
toggle_class(li, "dropdown-item--selected",
|
|
6603
6553
|
/*_values*/
|
|
6604
|
-
ctx[
|
|
6554
|
+
ctx[12].includes(
|
|
6605
6555
|
/*option*/
|
|
6606
|
-
ctx[
|
|
6556
|
+
ctx[48].value));
|
|
6557
|
+
this.first = li;
|
|
6607
6558
|
},
|
|
6608
6559
|
|
|
6609
6560
|
m(target, anchor) {
|
|
6610
6561
|
insert(target, li, anchor);
|
|
6611
|
-
append(li,
|
|
6562
|
+
append(li, t0);
|
|
6563
|
+
append(li, t1);
|
|
6612
6564
|
|
|
6613
6565
|
if (!mounted) {
|
|
6614
6566
|
dispose = listen(li, "click", click_handler);
|
|
@@ -6619,67 +6571,83 @@
|
|
|
6619
6571
|
p(new_ctx, dirty) {
|
|
6620
6572
|
ctx = new_ctx;
|
|
6621
6573
|
if (dirty[0] &
|
|
6622
|
-
/*
|
|
6623
|
-
|
|
6574
|
+
/*_options*/
|
|
6575
|
+
8192 && t0_value !== (t0_value = (
|
|
6624
6576
|
/*option*/
|
|
6625
|
-
ctx[
|
|
6577
|
+
ctx[48].label ||
|
|
6626
6578
|
/*option*/
|
|
6627
|
-
ctx[
|
|
6579
|
+
ctx[48].value) + "")) set_data(t0, t0_value);
|
|
6628
6580
|
|
|
6629
6581
|
if (dirty[0] &
|
|
6630
|
-
/*
|
|
6631
|
-
|
|
6582
|
+
/*_options*/
|
|
6583
|
+
8192 && li_id_value !== (li_id_value =
|
|
6632
6584
|
/*option*/
|
|
6633
|
-
ctx[
|
|
6585
|
+
ctx[48].label)) {
|
|
6634
6586
|
attr(li, "id", li_id_value);
|
|
6635
6587
|
}
|
|
6636
6588
|
|
|
6637
6589
|
if (dirty[0] &
|
|
6638
|
-
/*
|
|
6639
|
-
|
|
6590
|
+
/*_options*/
|
|
6591
|
+
8192 && li_aria_label_value !== (li_aria_label_value =
|
|
6640
6592
|
/*option*/
|
|
6641
|
-
ctx[
|
|
6593
|
+
ctx[48].label ||
|
|
6642
6594
|
/*option*/
|
|
6643
|
-
ctx[
|
|
6595
|
+
ctx[48].value)) {
|
|
6644
6596
|
attr(li, "aria-label", li_aria_label_value);
|
|
6645
6597
|
}
|
|
6646
6598
|
|
|
6647
6599
|
if (dirty[0] &
|
|
6648
|
-
/*_values,
|
|
6649
|
-
|
|
6600
|
+
/*_values, _options*/
|
|
6601
|
+
12288 && li_aria_selected_value !== (li_aria_selected_value =
|
|
6650
6602
|
/*_values*/
|
|
6651
|
-
ctx[
|
|
6603
|
+
ctx[12].includes(
|
|
6652
6604
|
/*option*/
|
|
6653
|
-
ctx[
|
|
6605
|
+
ctx[48].value) ? "true" : "false")) {
|
|
6654
6606
|
attr(li, "aria-selected", li_aria_selected_value);
|
|
6655
6607
|
}
|
|
6656
6608
|
|
|
6657
6609
|
if (dirty[0] &
|
|
6658
|
-
/*
|
|
6659
|
-
|
|
6610
|
+
/*_options*/
|
|
6611
|
+
8192 && li_data_testid_value !== (li_data_testid_value = `dropdown-item-${
|
|
6660
6612
|
/*option*/
|
|
6661
|
-
ctx[
|
|
6613
|
+
ctx[48].value}`)) {
|
|
6662
6614
|
attr(li, "data-testid", li_data_testid_value);
|
|
6663
6615
|
}
|
|
6664
6616
|
|
|
6665
6617
|
if (dirty[0] &
|
|
6666
|
-
/*
|
|
6667
|
-
|
|
6668
|
-
|
|
6618
|
+
/*_options*/
|
|
6619
|
+
8192 && li_data_index_value !== (li_data_index_value =
|
|
6620
|
+
/*index*/
|
|
6621
|
+
ctx[52])) {
|
|
6622
|
+
attr(li, "data-index", li_data_index_value);
|
|
6623
|
+
}
|
|
6624
|
+
|
|
6625
|
+
if (dirty[0] &
|
|
6626
|
+
/*_options*/
|
|
6627
|
+
8192 && li_data_value_value !== (li_data_value_value =
|
|
6628
|
+
/*option*/
|
|
6629
|
+
ctx[48].value)) {
|
|
6630
|
+
attr(li, "data-value", li_data_value_value);
|
|
6631
|
+
}
|
|
6632
|
+
|
|
6633
|
+
if (dirty[0] &
|
|
6634
|
+
/*_options, _highlightedIndex*/
|
|
6635
|
+
73728) {
|
|
6636
|
+
toggle_class(li, "dropdown-item--tabbed",
|
|
6669
6637
|
/*index*/
|
|
6670
|
-
ctx[
|
|
6671
|
-
/*
|
|
6672
|
-
ctx[
|
|
6638
|
+
ctx[52] ===
|
|
6639
|
+
/*_highlightedIndex*/
|
|
6640
|
+
ctx[16]);
|
|
6673
6641
|
}
|
|
6674
6642
|
|
|
6675
6643
|
if (dirty[0] &
|
|
6676
|
-
/*_values,
|
|
6677
|
-
|
|
6678
|
-
toggle_class(li, "dropdown-
|
|
6644
|
+
/*_values, _options*/
|
|
6645
|
+
12288) {
|
|
6646
|
+
toggle_class(li, "dropdown-item--selected",
|
|
6679
6647
|
/*_values*/
|
|
6680
|
-
ctx[
|
|
6648
|
+
ctx[12].includes(
|
|
6681
6649
|
/*option*/
|
|
6682
|
-
ctx[
|
|
6650
|
+
ctx[48].value));
|
|
6683
6651
|
}
|
|
6684
6652
|
},
|
|
6685
6653
|
|
|
@@ -6690,44 +6658,34 @@
|
|
|
6690
6658
|
}
|
|
6691
6659
|
|
|
6692
6660
|
};
|
|
6693
|
-
} // (
|
|
6661
|
+
} // (234:6) {#each _options as option}
|
|
6694
6662
|
|
|
6695
6663
|
|
|
6696
|
-
function create_each_block$4(
|
|
6664
|
+
function create_each_block$4(ctx) {
|
|
6697
6665
|
let option;
|
|
6698
|
-
let t0_value =
|
|
6666
|
+
let t0_value =
|
|
6699
6667
|
/*option*/
|
|
6700
|
-
ctx[
|
|
6701
|
-
/*option*/
|
|
6702
|
-
ctx[47].value) + "";
|
|
6668
|
+
ctx[48].label + "";
|
|
6703
6669
|
let t0;
|
|
6704
6670
|
let t1;
|
|
6705
6671
|
let option_selected_value;
|
|
6706
6672
|
let option_value_value;
|
|
6707
6673
|
let option_aria_label_value;
|
|
6708
6674
|
return {
|
|
6709
|
-
key: key_1,
|
|
6710
|
-
first: null,
|
|
6711
|
-
|
|
6712
6675
|
c() {
|
|
6713
6676
|
option = element("option");
|
|
6714
6677
|
t0 = text(t0_value);
|
|
6715
6678
|
t1 = space();
|
|
6716
6679
|
option.selected = option_selected_value =
|
|
6717
6680
|
/*option*/
|
|
6718
|
-
ctx[
|
|
6719
|
-
/*value*/
|
|
6720
|
-
ctx[2];
|
|
6681
|
+
ctx[48].selected;
|
|
6721
6682
|
option.__value = option_value_value =
|
|
6722
6683
|
/*option*/
|
|
6723
|
-
ctx[
|
|
6684
|
+
ctx[48].value;
|
|
6724
6685
|
option.value = option.__value;
|
|
6725
6686
|
attr(option, "aria-label", option_aria_label_value =
|
|
6726
6687
|
/*option*/
|
|
6727
|
-
ctx[
|
|
6728
|
-
/*option*/
|
|
6729
|
-
ctx[47].value);
|
|
6730
|
-
this.first = option;
|
|
6688
|
+
ctx[48].label);
|
|
6731
6689
|
},
|
|
6732
6690
|
|
|
6733
6691
|
m(target, anchor) {
|
|
@@ -6736,42 +6694,35 @@
|
|
|
6736
6694
|
append(option, t1);
|
|
6737
6695
|
},
|
|
6738
6696
|
|
|
6739
|
-
p(
|
|
6740
|
-
ctx = new_ctx;
|
|
6697
|
+
p(ctx, dirty) {
|
|
6741
6698
|
if (dirty[0] &
|
|
6742
|
-
/*
|
|
6743
|
-
|
|
6744
|
-
/*option*/
|
|
6745
|
-
ctx[47].label ||
|
|
6699
|
+
/*_options*/
|
|
6700
|
+
8192 && t0_value !== (t0_value =
|
|
6746
6701
|
/*option*/
|
|
6747
|
-
ctx[
|
|
6702
|
+
ctx[48].label + "")) set_data(t0, t0_value);
|
|
6748
6703
|
|
|
6749
6704
|
if (dirty[0] &
|
|
6750
|
-
/*
|
|
6751
|
-
|
|
6705
|
+
/*_options*/
|
|
6706
|
+
8192 && option_selected_value !== (option_selected_value =
|
|
6752
6707
|
/*option*/
|
|
6753
|
-
ctx[
|
|
6754
|
-
/*value*/
|
|
6755
|
-
ctx[2])) {
|
|
6708
|
+
ctx[48].selected)) {
|
|
6756
6709
|
option.selected = option_selected_value;
|
|
6757
6710
|
}
|
|
6758
6711
|
|
|
6759
6712
|
if (dirty[0] &
|
|
6760
|
-
/*
|
|
6761
|
-
|
|
6713
|
+
/*_options*/
|
|
6714
|
+
8192 && option_value_value !== (option_value_value =
|
|
6762
6715
|
/*option*/
|
|
6763
|
-
ctx[
|
|
6716
|
+
ctx[48].value)) {
|
|
6764
6717
|
option.__value = option_value_value;
|
|
6765
6718
|
option.value = option.__value;
|
|
6766
6719
|
}
|
|
6767
6720
|
|
|
6768
6721
|
if (dirty[0] &
|
|
6769
|
-
/*
|
|
6770
|
-
|
|
6771
|
-
/*option*/
|
|
6772
|
-
ctx[47].label ||
|
|
6722
|
+
/*_options*/
|
|
6723
|
+
8192 && option_aria_label_value !== (option_aria_label_value =
|
|
6773
6724
|
/*option*/
|
|
6774
|
-
ctx[
|
|
6725
|
+
ctx[48].label)) {
|
|
6775
6726
|
attr(option, "aria-label", option_aria_label_value);
|
|
6776
6727
|
}
|
|
6777
6728
|
},
|
|
@@ -6791,7 +6742,7 @@
|
|
|
6791
6742
|
function select_block_type(ctx, dirty) {
|
|
6792
6743
|
if (
|
|
6793
6744
|
/*_native*/
|
|
6794
|
-
ctx[
|
|
6745
|
+
ctx[22]) return create_if_block$a;
|
|
6795
6746
|
return create_else_block$1;
|
|
6796
6747
|
}
|
|
6797
6748
|
|
|
@@ -6809,22 +6760,22 @@
|
|
|
6809
6760
|
attr(div, "style", div_style_value = `
|
|
6810
6761
|
${calculateMargin(
|
|
6811
6762
|
/*mt*/
|
|
6812
|
-
ctx[
|
|
6763
|
+
ctx[8],
|
|
6813
6764
|
/*mr*/
|
|
6814
|
-
ctx[
|
|
6765
|
+
ctx[9],
|
|
6815
6766
|
/*mb*/
|
|
6816
|
-
ctx[
|
|
6767
|
+
ctx[10],
|
|
6817
6768
|
/*ml*/
|
|
6818
|
-
ctx[
|
|
6769
|
+
ctx[11])}
|
|
6819
6770
|
--width: ${
|
|
6820
6771
|
/*width*/
|
|
6821
|
-
ctx[
|
|
6822
|
-
/*
|
|
6823
|
-
ctx[
|
|
6772
|
+
ctx[5] ||
|
|
6773
|
+
/*_computedWidth*/
|
|
6774
|
+
ctx[17]}
|
|
6824
6775
|
`);
|
|
6825
6776
|
toggle_class(div, "dropdown-native",
|
|
6826
6777
|
/*_native*/
|
|
6827
|
-
ctx[
|
|
6778
|
+
ctx[22]);
|
|
6828
6779
|
},
|
|
6829
6780
|
|
|
6830
6781
|
m(target, anchor) {
|
|
@@ -6832,7 +6783,7 @@
|
|
|
6832
6783
|
if_block.m(div, null);
|
|
6833
6784
|
/*div_binding*/
|
|
6834
6785
|
|
|
6835
|
-
ctx[
|
|
6786
|
+
ctx[34](div);
|
|
6836
6787
|
},
|
|
6837
6788
|
|
|
6838
6789
|
p(ctx, dirty) {
|
|
@@ -6857,32 +6808,32 @@
|
|
|
6857
6808
|
}
|
|
6858
6809
|
|
|
6859
6810
|
if (dirty[0] &
|
|
6860
|
-
/*mt, mr, mb, ml, width,
|
|
6861
|
-
|
|
6811
|
+
/*mt, mr, mb, ml, width, _computedWidth*/
|
|
6812
|
+
134944 && div_style_value !== (div_style_value = `
|
|
6862
6813
|
${calculateMargin(
|
|
6863
6814
|
/*mt*/
|
|
6864
|
-
ctx[
|
|
6815
|
+
ctx[8],
|
|
6865
6816
|
/*mr*/
|
|
6866
|
-
ctx[
|
|
6817
|
+
ctx[9],
|
|
6867
6818
|
/*mb*/
|
|
6868
|
-
ctx[
|
|
6819
|
+
ctx[10],
|
|
6869
6820
|
/*ml*/
|
|
6870
|
-
ctx[
|
|
6821
|
+
ctx[11])}
|
|
6871
6822
|
--width: ${
|
|
6872
6823
|
/*width*/
|
|
6873
|
-
ctx[
|
|
6874
|
-
/*
|
|
6875
|
-
ctx[
|
|
6824
|
+
ctx[5] ||
|
|
6825
|
+
/*_computedWidth*/
|
|
6826
|
+
ctx[17]}
|
|
6876
6827
|
`)) {
|
|
6877
6828
|
attr(div, "style", div_style_value);
|
|
6878
6829
|
}
|
|
6879
6830
|
|
|
6880
6831
|
if (dirty[0] &
|
|
6881
6832
|
/*_native*/
|
|
6882
|
-
|
|
6833
|
+
4194304) {
|
|
6883
6834
|
toggle_class(div, "dropdown-native",
|
|
6884
6835
|
/*_native*/
|
|
6885
|
-
ctx[
|
|
6836
|
+
ctx[22]);
|
|
6886
6837
|
}
|
|
6887
6838
|
},
|
|
6888
6839
|
|
|
@@ -6894,31 +6845,46 @@
|
|
|
6894
6845
|
if_block.d();
|
|
6895
6846
|
/*div_binding*/
|
|
6896
6847
|
|
|
6897
|
-
ctx[
|
|
6848
|
+
ctx[34](null);
|
|
6898
6849
|
}
|
|
6899
6850
|
|
|
6900
6851
|
};
|
|
6901
6852
|
}
|
|
6902
6853
|
|
|
6903
|
-
|
|
6854
|
+
function getCustomDropdownWidth(options) {
|
|
6855
|
+
let width;
|
|
6856
|
+
let maxCount = 0;
|
|
6857
|
+
options.forEach(option => {
|
|
6858
|
+
const label = option.label || option.value || "";
|
|
6904
6859
|
|
|
6905
|
-
|
|
6860
|
+
if (!width && maxCount < label.length) {
|
|
6861
|
+
maxCount = label.length;
|
|
6862
|
+
width = `${Math.max(20, maxCount + 12)}ch`;
|
|
6863
|
+
}
|
|
6864
|
+
});
|
|
6865
|
+
return width;
|
|
6866
|
+
}
|
|
6867
|
+
|
|
6868
|
+
function instance$m($$self, $$props, $$invalidate) {
|
|
6906
6869
|
const showMenu = _async(function () {
|
|
6907
|
-
if (_disabled ||
|
|
6870
|
+
if (_disabled || _isMenuVisible) {
|
|
6908
6871
|
return;
|
|
6909
6872
|
}
|
|
6910
6873
|
|
|
6911
|
-
$$invalidate(
|
|
6874
|
+
$$invalidate(15, _isMenuVisible = true);
|
|
6912
6875
|
return _call(tick, function () {
|
|
6913
6876
|
// hide menu on blur
|
|
6914
|
-
|
|
6877
|
+
_menuEl.addEventListener("blur", closeMenu); // bind up/down arrows to navigate options
|
|
6915
6878
|
|
|
6916
|
-
|
|
6879
|
+
|
|
6880
|
+
_menuEl.addEventListener("mouseover", onHighlight);
|
|
6917
6881
|
});
|
|
6918
6882
|
});
|
|
6919
6883
|
|
|
6920
6884
|
let _disabled;
|
|
6921
6885
|
|
|
6886
|
+
let _error;
|
|
6887
|
+
|
|
6922
6888
|
let _multiselect;
|
|
6923
6889
|
|
|
6924
6890
|
let _native;
|
|
@@ -6936,7 +6902,7 @@
|
|
|
6936
6902
|
leadingicon = null
|
|
6937
6903
|
} = $$props;
|
|
6938
6904
|
let {
|
|
6939
|
-
maxheight =
|
|
6905
|
+
maxheight = "276px"
|
|
6940
6906
|
} = $$props;
|
|
6941
6907
|
let {
|
|
6942
6908
|
placeholder = ""
|
|
@@ -6970,38 +6936,87 @@
|
|
|
6970
6936
|
} = $$props; // Private
|
|
6971
6937
|
|
|
6972
6938
|
let _values = [];
|
|
6973
|
-
let
|
|
6974
|
-
let
|
|
6975
|
-
let
|
|
6976
|
-
let
|
|
6977
|
-
|
|
6978
|
-
let
|
|
6979
|
-
|
|
6980
|
-
let
|
|
6981
|
-
|
|
6982
|
-
let
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6939
|
+
let _options = [];
|
|
6940
|
+
let _selectedLabel = "";
|
|
6941
|
+
let _isMenuVisible = false;
|
|
6942
|
+
let _highlightedIndex = 0;
|
|
6943
|
+
|
|
6944
|
+
let _computedWidth;
|
|
6945
|
+
|
|
6946
|
+
let _el;
|
|
6947
|
+
|
|
6948
|
+
let _menuEl;
|
|
6949
|
+
|
|
6950
|
+
let _selectEl;
|
|
6951
|
+
|
|
6952
|
+
onMount(function () {
|
|
6953
|
+
return _call(tick, function () {
|
|
6954
|
+
$$invalidate(12, _values = parseValues());
|
|
6955
|
+
$$invalidate(13, _options = getOptions());
|
|
6956
|
+
|
|
6957
|
+
if (!_native) {
|
|
6958
|
+
$$invalidate(17, _computedWidth = getCustomDropdownWidth(_options));
|
|
6959
|
+
addKeyboardEventListeners();
|
|
6960
|
+
setHighlightedIndexToSelected();
|
|
6961
|
+
}
|
|
6986
6962
|
});
|
|
6987
6963
|
});
|
|
6988
6964
|
onDestroy(() => {
|
|
6989
6965
|
removeKeyboardEventListeners();
|
|
6990
|
-
deleteContext(name);
|
|
6991
6966
|
}); // Functions
|
|
6992
6967
|
|
|
6968
|
+
function getChildren() {
|
|
6969
|
+
const slot = _el.querySelector("slot");
|
|
6970
|
+
|
|
6971
|
+
if (slot) {
|
|
6972
|
+
// default
|
|
6973
|
+
return slot.assignedElements();
|
|
6974
|
+
} // unit tests
|
|
6975
|
+
|
|
6976
|
+
|
|
6977
|
+
const el = _native ? _selectEl : _el;
|
|
6978
|
+
return [...el.children];
|
|
6979
|
+
} // Create a list of the options based on the children within the slot
|
|
6980
|
+
// The children don't have to be goa-dropdown-item elements. Any child element
|
|
6981
|
+
// work as long as it has a value and label content
|
|
6982
|
+
|
|
6983
|
+
|
|
6984
|
+
function getOptions() {
|
|
6985
|
+
const children = getChildren();
|
|
6986
|
+
return children.map(el => {
|
|
6987
|
+
const option = el;
|
|
6988
|
+
const value = el.getAttribute("value") || option.value;
|
|
6989
|
+
const label = el.getAttribute("label") || option.label || value;
|
|
6990
|
+
|
|
6991
|
+
const selected = _values.includes(value);
|
|
6992
|
+
|
|
6993
|
+
if (selected) {
|
|
6994
|
+
$$invalidate(14, _selectedLabel = label);
|
|
6995
|
+
$$invalidate(12, _values = [value]);
|
|
6996
|
+
}
|
|
6997
|
+
|
|
6998
|
+
return {
|
|
6999
|
+
selected,
|
|
7000
|
+
value,
|
|
7001
|
+
label
|
|
7002
|
+
};
|
|
7003
|
+
});
|
|
7004
|
+
}
|
|
7005
|
+
|
|
6993
7006
|
function addKeyboardEventListeners() {
|
|
6994
|
-
|
|
6995
|
-
|
|
7007
|
+
_el.addEventListener("focus", onFocus, true);
|
|
7008
|
+
|
|
7009
|
+
_el.addEventListener("blur", onBlur, true);
|
|
6996
7010
|
}
|
|
6997
7011
|
|
|
6998
7012
|
function removeKeyboardEventListeners() {
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7013
|
+
_el.removeEventListener("focus", onFocus, true);
|
|
7014
|
+
|
|
7015
|
+
_el.removeEventListener("blur", onBlur, true);
|
|
7016
|
+
} // parse and convert values to strings to avoid later type comparison issues
|
|
7017
|
+
|
|
7002
7018
|
|
|
7003
7019
|
function parseValues() {
|
|
7004
|
-
// parse and convert values to strings to avoid later type comparison issues
|
|
7005
7020
|
let rawValue;
|
|
7006
7021
|
|
|
7007
7022
|
try {
|
|
@@ -7012,71 +7027,52 @@
|
|
|
7012
7027
|
|
|
7013
7028
|
const rawValues = typeof rawValue === "object" ? rawValue : [rawValue]; // convert all values to strings to avoid later type comparison issues
|
|
7014
7029
|
|
|
7015
|
-
|
|
7030
|
+
return rawValues.map(val => `${val}`);
|
|
7016
7031
|
}
|
|
7017
7032
|
|
|
7018
|
-
function
|
|
7019
|
-
|
|
7020
|
-
ctx.subscribe(data => {
|
|
7021
|
-
const _data = data;
|
|
7022
|
-
|
|
7023
|
-
const selected = _values.includes(_data.value);
|
|
7024
|
-
|
|
7025
|
-
const label = _data.label || _data.value;
|
|
7026
|
-
$$invalidate(16, options = [...options, Object.assign(Object.assign({}, _data), {
|
|
7027
|
-
selected
|
|
7028
|
-
})]);
|
|
7029
|
-
|
|
7030
|
-
if (selected) {
|
|
7031
|
-
$$invalidate(17, selectedLabel = label);
|
|
7032
|
-
}
|
|
7033
|
-
|
|
7034
|
-
if (!width && maxLetterCount < label.length) {
|
|
7035
|
-
maxLetterCount = label.length;
|
|
7036
|
-
$$invalidate(20, computedWidth = `${Math.max(20, maxLetterCount + 12)}ch`);
|
|
7037
|
-
}
|
|
7033
|
+
function closeMenu() {
|
|
7034
|
+
_menuEl.removeEventListener("blur", closeMenu);
|
|
7038
7035
|
|
|
7039
|
-
|
|
7040
|
-
});
|
|
7041
|
-
}
|
|
7036
|
+
_menuEl.removeEventListener("mouseover", onHighlight);
|
|
7042
7037
|
|
|
7043
|
-
function closeMenu() {
|
|
7044
|
-
menuEl.removeEventListener("blur", closeMenu);
|
|
7045
|
-
menuEl.removeEventListener("mouseover", onHighlight);
|
|
7046
7038
|
setHighlightedIndexToSelected();
|
|
7047
|
-
$$invalidate(
|
|
7039
|
+
$$invalidate(15, _isMenuVisible = false);
|
|
7048
7040
|
}
|
|
7049
7041
|
|
|
7050
7042
|
function setHighlightedIndexToSelected() {
|
|
7051
|
-
$$invalidate(
|
|
7043
|
+
$$invalidate(16, _highlightedIndex = _options.findIndex(option => _values.includes(option.value)));
|
|
7052
7044
|
} // Event handlers
|
|
7053
7045
|
|
|
7046
|
+
/**
|
|
7047
|
+
* @property value the selected value
|
|
7048
|
+
*/
|
|
7049
|
+
|
|
7054
7050
|
|
|
7055
7051
|
function onSelect(value, label, close) {
|
|
7056
7052
|
if (_disabled) return;
|
|
7057
|
-
$$invalidate(
|
|
7053
|
+
$$invalidate(14, _selectedLabel = label);
|
|
7054
|
+
let detail;
|
|
7058
7055
|
|
|
7059
7056
|
if (_multiselect) {
|
|
7060
7057
|
_values.push(value);
|
|
7061
7058
|
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
values: _values
|
|
7067
|
-
}
|
|
7068
|
-
}));
|
|
7059
|
+
detail = {
|
|
7060
|
+
name,
|
|
7061
|
+
values: _values
|
|
7062
|
+
};
|
|
7069
7063
|
} else {
|
|
7070
|
-
$$invalidate(
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
value
|
|
7076
|
-
}
|
|
7077
|
-
}));
|
|
7064
|
+
$$invalidate(12, _values = [value]);
|
|
7065
|
+
detail = {
|
|
7066
|
+
name,
|
|
7067
|
+
value
|
|
7068
|
+
};
|
|
7078
7069
|
}
|
|
7079
7070
|
|
|
7071
|
+
_el.dispatchEvent(new CustomEvent("_change", {
|
|
7072
|
+
composed: true,
|
|
7073
|
+
detail
|
|
7074
|
+
}));
|
|
7075
|
+
|
|
7080
7076
|
if (close) {
|
|
7081
7077
|
closeMenu();
|
|
7082
7078
|
}
|
|
@@ -7086,18 +7082,18 @@
|
|
|
7086
7082
|
switch (e.key) {
|
|
7087
7083
|
case " ":
|
|
7088
7084
|
case "Enter":
|
|
7089
|
-
|
|
7085
|
+
_isMenuVisible ? closeMenu() : showMenu();
|
|
7090
7086
|
e.preventDefault();
|
|
7091
7087
|
break;
|
|
7092
7088
|
|
|
7093
7089
|
case "Escape":
|
|
7094
|
-
|
|
7090
|
+
_isMenuVisible && closeMenu();
|
|
7095
7091
|
e.preventDefault();
|
|
7096
7092
|
break;
|
|
7097
7093
|
|
|
7098
7094
|
case "ArrowDown":
|
|
7099
7095
|
if (e.altKey) {
|
|
7100
|
-
|
|
7096
|
+
_isMenuVisible ? closeMenu() : showMenu();
|
|
7101
7097
|
break;
|
|
7102
7098
|
}
|
|
7103
7099
|
|
|
@@ -7108,7 +7104,7 @@
|
|
|
7108
7104
|
|
|
7109
7105
|
case "ArrowUp":
|
|
7110
7106
|
if (e.altKey) {
|
|
7111
|
-
|
|
7107
|
+
_isMenuVisible ? closeMenu() : showMenu();
|
|
7112
7108
|
break;
|
|
7113
7109
|
}
|
|
7114
7110
|
|
|
@@ -7120,141 +7116,134 @@
|
|
|
7120
7116
|
};
|
|
7121
7117
|
|
|
7122
7118
|
function _handleArrowDown() {
|
|
7123
|
-
if (
|
|
7124
|
-
$$invalidate(
|
|
7125
|
-
onSelect(
|
|
7119
|
+
if (_highlightedIndex < _options.length - 1) {
|
|
7120
|
+
$$invalidate(16, _highlightedIndex++, _highlightedIndex);
|
|
7121
|
+
onSelect(_options[_highlightedIndex].value, _options[_highlightedIndex].label, false);
|
|
7126
7122
|
}
|
|
7127
7123
|
}
|
|
7128
7124
|
|
|
7129
7125
|
function _handleArrowUp() {
|
|
7130
|
-
if (
|
|
7131
|
-
$$invalidate(
|
|
7132
|
-
onSelect(
|
|
7126
|
+
if (_highlightedIndex > 0) {
|
|
7127
|
+
$$invalidate(16, _highlightedIndex--, _highlightedIndex);
|
|
7128
|
+
onSelect(_options[_highlightedIndex].value, _options[_highlightedIndex].label, false);
|
|
7133
7129
|
}
|
|
7134
7130
|
} // add required bindings to component
|
|
7135
7131
|
|
|
7136
7132
|
|
|
7137
7133
|
function onFocus() {
|
|
7138
|
-
|
|
7134
|
+
_el.addEventListener("keydown", onInputKeyDown);
|
|
7139
7135
|
} // remove all bindings from component
|
|
7140
7136
|
|
|
7141
7137
|
|
|
7142
7138
|
function onBlur() {
|
|
7143
|
-
|
|
7139
|
+
_el.removeEventListener("keydown", onInputKeyDown);
|
|
7144
7140
|
}
|
|
7145
7141
|
|
|
7146
7142
|
function onHighlight(e) {
|
|
7147
|
-
$$invalidate(
|
|
7143
|
+
$$invalidate(16, _highlightedIndex = Number(e.target.dataset.index));
|
|
7148
7144
|
}
|
|
7149
7145
|
|
|
7150
7146
|
function onNativeSelect(e) {
|
|
7151
7147
|
const target = e.currentTarget;
|
|
7152
|
-
const option =
|
|
7153
|
-
onSelect(option.value, option.label
|
|
7148
|
+
const option = _options[target.selectedIndex];
|
|
7149
|
+
onSelect(option.value, option.label);
|
|
7150
|
+
}
|
|
7151
|
+
|
|
7152
|
+
function select_binding($$value) {
|
|
7153
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7154
|
+
_selectEl = $$value;
|
|
7155
|
+
$$invalidate(20, _selectEl);
|
|
7156
|
+
$$invalidate(13, _options);
|
|
7157
|
+
});
|
|
7154
7158
|
}
|
|
7155
7159
|
|
|
7156
7160
|
const click_handler = option => onSelect(option.value, option.label, true);
|
|
7157
7161
|
|
|
7158
7162
|
function ul_binding($$value) {
|
|
7159
7163
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7160
|
-
|
|
7161
|
-
$$invalidate(
|
|
7164
|
+
_menuEl = $$value;
|
|
7165
|
+
$$invalidate(19, _menuEl);
|
|
7162
7166
|
});
|
|
7163
7167
|
}
|
|
7164
7168
|
|
|
7165
7169
|
function div_binding($$value) {
|
|
7166
7170
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7167
|
-
|
|
7168
|
-
$$invalidate(
|
|
7171
|
+
_el = $$value;
|
|
7172
|
+
$$invalidate(18, _el);
|
|
7169
7173
|
});
|
|
7170
7174
|
}
|
|
7171
7175
|
|
|
7172
7176
|
$$self.$$set = $$props => {
|
|
7173
7177
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
|
7174
7178
|
if ('arialabel' in $$props) $$invalidate(1, arialabel = $$props.arialabel);
|
|
7175
|
-
if ('value' in $$props) $$invalidate(
|
|
7176
|
-
if ('leadingicon' in $$props) $$invalidate(
|
|
7177
|
-
if ('maxheight' in $$props) $$invalidate(
|
|
7178
|
-
if ('placeholder' in $$props) $$invalidate(
|
|
7179
|
-
if ('width' in $$props) $$invalidate(
|
|
7180
|
-
if ('disabled' in $$props) $$invalidate(
|
|
7181
|
-
if ('error' in $$props) $$invalidate(
|
|
7182
|
-
if ('multiselect' in $$props) $$invalidate(
|
|
7183
|
-
if ('native' in $$props) $$invalidate(
|
|
7184
|
-
if ('mt' in $$props) $$invalidate(
|
|
7185
|
-
if ('mr' in $$props) $$invalidate(
|
|
7186
|
-
if ('mb' in $$props) $$invalidate(
|
|
7187
|
-
if ('ml' in $$props) $$invalidate(
|
|
7179
|
+
if ('value' in $$props) $$invalidate(28, value = $$props.value);
|
|
7180
|
+
if ('leadingicon' in $$props) $$invalidate(2, leadingicon = $$props.leadingicon);
|
|
7181
|
+
if ('maxheight' in $$props) $$invalidate(3, maxheight = $$props.maxheight);
|
|
7182
|
+
if ('placeholder' in $$props) $$invalidate(4, placeholder = $$props.placeholder);
|
|
7183
|
+
if ('width' in $$props) $$invalidate(5, width = $$props.width);
|
|
7184
|
+
if ('disabled' in $$props) $$invalidate(6, disabled = $$props.disabled);
|
|
7185
|
+
if ('error' in $$props) $$invalidate(7, error = $$props.error);
|
|
7186
|
+
if ('multiselect' in $$props) $$invalidate(29, multiselect = $$props.multiselect);
|
|
7187
|
+
if ('native' in $$props) $$invalidate(30, native = $$props.native);
|
|
7188
|
+
if ('mt' in $$props) $$invalidate(8, mt = $$props.mt);
|
|
7189
|
+
if ('mr' in $$props) $$invalidate(9, mr = $$props.mr);
|
|
7190
|
+
if ('mb' in $$props) $$invalidate(10, mb = $$props.mb);
|
|
7191
|
+
if ('ml' in $$props) $$invalidate(11, ml = $$props.ml);
|
|
7188
7192
|
};
|
|
7189
7193
|
|
|
7190
7194
|
$$self.$$.update = () => {
|
|
7191
7195
|
if ($$self.$$.dirty[0] &
|
|
7192
7196
|
/*disabled*/
|
|
7197
|
+
64) {
|
|
7198
|
+
$$invalidate(21, _disabled = toBoolean(disabled));
|
|
7199
|
+
}
|
|
7200
|
+
|
|
7201
|
+
if ($$self.$$.dirty[0] &
|
|
7202
|
+
/*error*/
|
|
7193
7203
|
128) {
|
|
7194
|
-
|
|
7204
|
+
$$invalidate(23, _error = toBoolean(error));
|
|
7195
7205
|
}
|
|
7196
7206
|
|
|
7197
7207
|
if ($$self.$$.dirty[0] &
|
|
7198
7208
|
/*multiselect*/
|
|
7199
|
-
|
|
7209
|
+
536870912) {
|
|
7200
7210
|
_multiselect = toBoolean(multiselect);
|
|
7201
7211
|
}
|
|
7202
7212
|
|
|
7203
7213
|
if ($$self.$$.dirty[0] &
|
|
7204
7214
|
/*native*/
|
|
7205
|
-
|
|
7206
|
-
$$invalidate(
|
|
7207
|
-
}
|
|
7208
|
-
|
|
7209
|
-
if ($$self.$$.dirty[0] &
|
|
7210
|
-
/*name, el, isBound, _native*/
|
|
7211
|
-
268460033) {
|
|
7212
|
-
{
|
|
7213
|
-
(function () {
|
|
7214
|
-
return _call(tick, function () {
|
|
7215
|
-
if (name && el && !isBound) {
|
|
7216
|
-
$$invalidate(28, isBound = true);
|
|
7217
|
-
|
|
7218
|
-
if (!_native) {
|
|
7219
|
-
addKeyboardEventListeners();
|
|
7220
|
-
}
|
|
7221
|
-
|
|
7222
|
-
parseValues();
|
|
7223
|
-
bindContext();
|
|
7224
|
-
}
|
|
7225
|
-
});
|
|
7226
|
-
})();
|
|
7227
|
-
}
|
|
7215
|
+
1073741824) {
|
|
7216
|
+
$$invalidate(22, _native = toBoolean(native));
|
|
7228
7217
|
}
|
|
7229
7218
|
};
|
|
7230
7219
|
|
|
7231
|
-
return [name, arialabel,
|
|
7220
|
+
return [name, arialabel, leadingicon, maxheight, placeholder, width, disabled, error, mt, mr, mb, ml, _values, _options, _selectedLabel, _isMenuVisible, _highlightedIndex, _computedWidth, _el, _menuEl, _selectEl, _disabled, _native, _error, showMenu, closeMenu, onSelect, onNativeSelect, value, multiselect, native, select_binding, click_handler, ul_binding, div_binding];
|
|
7232
7221
|
}
|
|
7233
7222
|
|
|
7234
7223
|
class Dropdown extends SvelteElement {
|
|
7235
7224
|
constructor(options) {
|
|
7236
7225
|
super();
|
|
7237
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.dropdown{position:relative;cursor:pointer;display:inline-block;width:100%}@media(min-width: 640px){.dropdown{width:var(--width)}}.dropdown-background{cursor:default;position:fixed;z-index:98;inset:0}.dropdown-list{position:absolute;left:0;right:0;padding:0;margin:0;margin-top:3px;list-style-type:none;background:var(--color-white);border-radius:var(--input-border-radius);outline:none;box-shadow:var(--shadow-1);z-index:99;scroll-behavior:smooth;scrollbar-width:thin;display:none}.dropdown-active{display:block}.dropdown-list::-webkit-scrollbar{width:6px}.dropdown-list::-webkit-scrollbar-track{background:#f1f1f1}.dropdown-list::-webkit-scrollbar-thumb{background:#888}.dropdown-list::-webkit-scrollbar-thumb:hover{background:#555}.dropdown-
|
|
7226
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.dropdown{position:relative;cursor:pointer;display:inline-block;width:100%}@media(min-width: 640px){.dropdown{width:var(--width)}}.dropdown-background{cursor:default;position:fixed;z-index:98;inset:0}.dropdown-list{position:absolute;left:0;right:0;padding:0;margin:0;margin-top:3px;list-style-type:none;background:var(--color-white);border-radius:var(--input-border-radius);outline:none;box-shadow:var(--shadow-1);z-index:99;scroll-behavior:smooth;scrollbar-width:thin;display:none}.dropdown-active{display:block}.dropdown-list::-webkit-scrollbar{width:6px}.dropdown-list::-webkit-scrollbar-track{background:#f1f1f1}.dropdown-list::-webkit-scrollbar-thumb{background:#888}.dropdown-list::-webkit-scrollbar-thumb:hover{background:#555}.dropdown-item{margin:0;padding:0.5rem;cursor:pointer;color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-item--tabbed{background:var(--color-gray-100);color:var(--goa-color-interactive--hover)}.dropdown-item--disabled{opacity:0.5;cursor:default}.dropdown-item--disabled:hover{cursor:default;color:var(--color-gray-600)}.dropdown-item--selected{background:var(--goa-color-interactive);color:var(--color-white)}.dropdown-item--tabbed.dropdown-item--selected,.dropdown-item--selected:hover{background:var(--goa-color-interactive--hover);color:var(--color-white)}.dropdown-native{border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background-color:var(--color-white)}.dropdown-native:has(select:disabled){background-color:var(--color-gray-100);border-color:var(--color-gray-200);box-shadow:none;color:var(--goa-color-text-secondary);cursor:default}.dropdown-native:has(select.error){border:2px solid var(--goa-color-interactive--error)}select{border:none;background-color:transparent;color:var(--goa-color-text);font-size:var(--input-font-size);appearance:none;padding:calc(var(--input-padding) + 2px);padding-left:0.5rem;padding-right:3rem;outline:none;width:100%}.dropdown-native::after{content:"";position:absolute;right:0.6rem;top:0.6rem;pointer-events:none;width:1.5rem;height:1.5rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144' /%3E%3C/svg%3E");background-repeat:none}.dropdown-native:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}</style>`;
|
|
7238
7227
|
init(this, {
|
|
7239
7228
|
target: this.shadowRoot,
|
|
7240
7229
|
props: attribute_to_object(this.attributes),
|
|
7241
7230
|
customElement: true
|
|
7242
|
-
}, instance$
|
|
7231
|
+
}, instance$m, create_fragment$p, safe_not_equal, {
|
|
7243
7232
|
name: 0,
|
|
7244
7233
|
arialabel: 1,
|
|
7245
|
-
value:
|
|
7246
|
-
leadingicon:
|
|
7247
|
-
maxheight:
|
|
7248
|
-
placeholder:
|
|
7249
|
-
width:
|
|
7250
|
-
disabled:
|
|
7251
|
-
error:
|
|
7252
|
-
multiselect:
|
|
7253
|
-
native:
|
|
7254
|
-
mt:
|
|
7255
|
-
mr:
|
|
7256
|
-
mb:
|
|
7257
|
-
ml:
|
|
7234
|
+
value: 28,
|
|
7235
|
+
leadingicon: 2,
|
|
7236
|
+
maxheight: 3,
|
|
7237
|
+
placeholder: 4,
|
|
7238
|
+
width: 5,
|
|
7239
|
+
disabled: 6,
|
|
7240
|
+
error: 7,
|
|
7241
|
+
multiselect: 29,
|
|
7242
|
+
native: 30,
|
|
7243
|
+
mt: 8,
|
|
7244
|
+
mr: 9,
|
|
7245
|
+
mb: 10,
|
|
7246
|
+
ml: 11
|
|
7258
7247
|
}, null, [-1, -1]);
|
|
7259
7248
|
|
|
7260
7249
|
if (options) {
|
|
@@ -7296,7 +7285,7 @@
|
|
|
7296
7285
|
}
|
|
7297
7286
|
|
|
7298
7287
|
get value() {
|
|
7299
|
-
return this.$$.ctx[
|
|
7288
|
+
return this.$$.ctx[28];
|
|
7300
7289
|
}
|
|
7301
7290
|
|
|
7302
7291
|
set value(value) {
|
|
@@ -7307,7 +7296,7 @@
|
|
|
7307
7296
|
}
|
|
7308
7297
|
|
|
7309
7298
|
get leadingicon() {
|
|
7310
|
-
return this.$$.ctx[
|
|
7299
|
+
return this.$$.ctx[2];
|
|
7311
7300
|
}
|
|
7312
7301
|
|
|
7313
7302
|
set leadingicon(leadingicon) {
|
|
@@ -7318,7 +7307,7 @@
|
|
|
7318
7307
|
}
|
|
7319
7308
|
|
|
7320
7309
|
get maxheight() {
|
|
7321
|
-
return this.$$.ctx[
|
|
7310
|
+
return this.$$.ctx[3];
|
|
7322
7311
|
}
|
|
7323
7312
|
|
|
7324
7313
|
set maxheight(maxheight) {
|
|
@@ -7329,7 +7318,7 @@
|
|
|
7329
7318
|
}
|
|
7330
7319
|
|
|
7331
7320
|
get placeholder() {
|
|
7332
|
-
return this.$$.ctx[
|
|
7321
|
+
return this.$$.ctx[4];
|
|
7333
7322
|
}
|
|
7334
7323
|
|
|
7335
7324
|
set placeholder(placeholder) {
|
|
@@ -7340,7 +7329,7 @@
|
|
|
7340
7329
|
}
|
|
7341
7330
|
|
|
7342
7331
|
get width() {
|
|
7343
|
-
return this.$$.ctx[
|
|
7332
|
+
return this.$$.ctx[5];
|
|
7344
7333
|
}
|
|
7345
7334
|
|
|
7346
7335
|
set width(width) {
|
|
@@ -7351,7 +7340,7 @@
|
|
|
7351
7340
|
}
|
|
7352
7341
|
|
|
7353
7342
|
get disabled() {
|
|
7354
|
-
return this.$$.ctx[
|
|
7343
|
+
return this.$$.ctx[6];
|
|
7355
7344
|
}
|
|
7356
7345
|
|
|
7357
7346
|
set disabled(disabled) {
|
|
@@ -7362,7 +7351,7 @@
|
|
|
7362
7351
|
}
|
|
7363
7352
|
|
|
7364
7353
|
get error() {
|
|
7365
|
-
return this.$$.ctx[
|
|
7354
|
+
return this.$$.ctx[7];
|
|
7366
7355
|
}
|
|
7367
7356
|
|
|
7368
7357
|
set error(error) {
|
|
@@ -7373,7 +7362,7 @@
|
|
|
7373
7362
|
}
|
|
7374
7363
|
|
|
7375
7364
|
get multiselect() {
|
|
7376
|
-
return this.$$.ctx[
|
|
7365
|
+
return this.$$.ctx[29];
|
|
7377
7366
|
}
|
|
7378
7367
|
|
|
7379
7368
|
set multiselect(multiselect) {
|
|
@@ -7384,7 +7373,7 @@
|
|
|
7384
7373
|
}
|
|
7385
7374
|
|
|
7386
7375
|
get native() {
|
|
7387
|
-
return this.$$.ctx[
|
|
7376
|
+
return this.$$.ctx[30];
|
|
7388
7377
|
}
|
|
7389
7378
|
|
|
7390
7379
|
set native(native) {
|
|
@@ -7395,7 +7384,7 @@
|
|
|
7395
7384
|
}
|
|
7396
7385
|
|
|
7397
7386
|
get mt() {
|
|
7398
|
-
return this.$$.ctx[
|
|
7387
|
+
return this.$$.ctx[8];
|
|
7399
7388
|
}
|
|
7400
7389
|
|
|
7401
7390
|
set mt(mt) {
|
|
@@ -7406,7 +7395,7 @@
|
|
|
7406
7395
|
}
|
|
7407
7396
|
|
|
7408
7397
|
get mr() {
|
|
7409
|
-
return this.$$.ctx[
|
|
7398
|
+
return this.$$.ctx[9];
|
|
7410
7399
|
}
|
|
7411
7400
|
|
|
7412
7401
|
set mr(mr) {
|
|
@@ -7417,7 +7406,7 @@
|
|
|
7417
7406
|
}
|
|
7418
7407
|
|
|
7419
7408
|
get mb() {
|
|
7420
|
-
return this.$$.ctx[
|
|
7409
|
+
return this.$$.ctx[10];
|
|
7421
7410
|
}
|
|
7422
7411
|
|
|
7423
7412
|
set mb(mb) {
|
|
@@ -7428,7 +7417,7 @@
|
|
|
7428
7417
|
}
|
|
7429
7418
|
|
|
7430
7419
|
get ml() {
|
|
7431
|
-
return this.$$.ctx[
|
|
7420
|
+
return this.$$.ctx[11];
|
|
7432
7421
|
}
|
|
7433
7422
|
|
|
7434
7423
|
set ml(ml) {
|
|
@@ -7457,52 +7446,6 @@
|
|
|
7457
7446
|
};
|
|
7458
7447
|
}
|
|
7459
7448
|
|
|
7460
|
-
function instance$m($$self, $$props, $$invalidate) {
|
|
7461
|
-
let {
|
|
7462
|
-
name = ""
|
|
7463
|
-
} = $$props;
|
|
7464
|
-
let {
|
|
7465
|
-
value = ""
|
|
7466
|
-
} = $$props;
|
|
7467
|
-
let {
|
|
7468
|
-
label = ""
|
|
7469
|
-
} = $$props; // private
|
|
7470
|
-
|
|
7471
|
-
let ctx;
|
|
7472
|
-
let isBound = false;
|
|
7473
|
-
|
|
7474
|
-
$$self.$$set = $$props => {
|
|
7475
|
-
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
|
7476
|
-
if ('value' in $$props) $$invalidate(1, value = $$props.value);
|
|
7477
|
-
if ('label' in $$props) $$invalidate(2, label = $$props.label);
|
|
7478
|
-
};
|
|
7479
|
-
|
|
7480
|
-
$$self.$$.update = () => {
|
|
7481
|
-
if ($$self.$$.dirty &
|
|
7482
|
-
/*isBound, name, ctx, label, value*/
|
|
7483
|
-
31) {
|
|
7484
|
-
{
|
|
7485
|
-
(function () {
|
|
7486
|
-
return _call(tick, function () {
|
|
7487
|
-
if (!isBound) {
|
|
7488
|
-
$$invalidate(4, isBound = true);
|
|
7489
|
-
$$invalidate(3, ctx = getContext(name));
|
|
7490
|
-
ctx.notify({
|
|
7491
|
-
type: "bind",
|
|
7492
|
-
name,
|
|
7493
|
-
label,
|
|
7494
|
-
value
|
|
7495
|
-
});
|
|
7496
|
-
}
|
|
7497
|
-
});
|
|
7498
|
-
})();
|
|
7499
|
-
}
|
|
7500
|
-
}
|
|
7501
|
-
};
|
|
7502
|
-
|
|
7503
|
-
return [name, value, label, ctx, isBound];
|
|
7504
|
-
}
|
|
7505
|
-
|
|
7506
7449
|
class DropdownItem extends SvelteElement {
|
|
7507
7450
|
constructor(options) {
|
|
7508
7451
|
super();
|
|
@@ -7510,61 +7453,15 @@
|
|
|
7510
7453
|
target: this.shadowRoot,
|
|
7511
7454
|
props: attribute_to_object(this.attributes),
|
|
7512
7455
|
customElement: true
|
|
7513
|
-
},
|
|
7514
|
-
name: 0,
|
|
7515
|
-
value: 1,
|
|
7516
|
-
label: 2
|
|
7517
|
-
}, null);
|
|
7456
|
+
}, null, create_fragment$o, safe_not_equal, {}, null);
|
|
7518
7457
|
|
|
7519
7458
|
if (options) {
|
|
7520
7459
|
if (options.target) {
|
|
7521
7460
|
insert(options.target, this, options.anchor);
|
|
7522
7461
|
}
|
|
7523
|
-
|
|
7524
|
-
if (options.props) {
|
|
7525
|
-
this.$set(options.props);
|
|
7526
|
-
flush();
|
|
7527
|
-
}
|
|
7528
7462
|
}
|
|
7529
7463
|
}
|
|
7530
7464
|
|
|
7531
|
-
static get observedAttributes() {
|
|
7532
|
-
return ["name", "value", "label"];
|
|
7533
|
-
}
|
|
7534
|
-
|
|
7535
|
-
get name() {
|
|
7536
|
-
return this.$$.ctx[0];
|
|
7537
|
-
}
|
|
7538
|
-
|
|
7539
|
-
set name(name) {
|
|
7540
|
-
this.$$set({
|
|
7541
|
-
name
|
|
7542
|
-
});
|
|
7543
|
-
flush();
|
|
7544
|
-
}
|
|
7545
|
-
|
|
7546
|
-
get value() {
|
|
7547
|
-
return this.$$.ctx[1];
|
|
7548
|
-
}
|
|
7549
|
-
|
|
7550
|
-
set value(value) {
|
|
7551
|
-
this.$$set({
|
|
7552
|
-
value
|
|
7553
|
-
});
|
|
7554
|
-
flush();
|
|
7555
|
-
}
|
|
7556
|
-
|
|
7557
|
-
get label() {
|
|
7558
|
-
return this.$$.ctx[2];
|
|
7559
|
-
}
|
|
7560
|
-
|
|
7561
|
-
set label(label) {
|
|
7562
|
-
this.$$set({
|
|
7563
|
-
label
|
|
7564
|
-
});
|
|
7565
|
-
flush();
|
|
7566
|
-
}
|
|
7567
|
-
|
|
7568
7465
|
}
|
|
7569
7466
|
|
|
7570
7467
|
customElements.define("goa-dropdown-item", DropdownItem);
|
|
@@ -7834,133 +7731,151 @@
|
|
|
7834
7731
|
}
|
|
7835
7732
|
|
|
7836
7733
|
customElements.define("goa-focus-trap", FocusTrap);
|
|
7837
|
-
/* libs/web-components/src/components/footer
|
|
7838
|
-
|
|
7839
|
-
function get_each_context$3(ctx, list, i) {
|
|
7840
|
-
const child_ctx = ctx.slice();
|
|
7841
|
-
child_ctx[3] = list[i];
|
|
7842
|
-
return child_ctx;
|
|
7843
|
-
} // (52:4) {#each children as child}
|
|
7844
|
-
|
|
7734
|
+
/* libs/web-components/src/components/footer/Footer.svelte generated by Svelte v3.51.0 */
|
|
7845
7735
|
|
|
7846
|
-
function
|
|
7847
|
-
let
|
|
7848
|
-
let a;
|
|
7849
|
-
let t_value =
|
|
7850
|
-
/*child*/
|
|
7851
|
-
ctx[3].innerHTML + "";
|
|
7852
|
-
let t;
|
|
7853
|
-
let a_href_value;
|
|
7736
|
+
function create_if_block$9(ctx) {
|
|
7737
|
+
let goa_divider;
|
|
7854
7738
|
return {
|
|
7855
7739
|
c() {
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
t = text(t_value);
|
|
7859
|
-
attr(a, "href", a_href_value =
|
|
7860
|
-
/*child*/
|
|
7861
|
-
ctx[3].href);
|
|
7740
|
+
goa_divider = element("goa-divider");
|
|
7741
|
+
set_custom_element_data(goa_divider, "spacing", "small");
|
|
7862
7742
|
},
|
|
7863
7743
|
|
|
7864
7744
|
m(target, anchor) {
|
|
7865
|
-
insert(target,
|
|
7866
|
-
append(li, a);
|
|
7867
|
-
append(a, t);
|
|
7745
|
+
insert(target, goa_divider, anchor);
|
|
7868
7746
|
},
|
|
7869
7747
|
|
|
7870
|
-
|
|
7871
|
-
if (
|
|
7872
|
-
|
|
7873
|
-
2 && t_value !== (t_value =
|
|
7874
|
-
/*child*/
|
|
7875
|
-
ctx[3].innerHTML + "")) set_data(t, t_value);
|
|
7876
|
-
|
|
7877
|
-
if (dirty &
|
|
7878
|
-
/*children*/
|
|
7879
|
-
2 && a_href_value !== (a_href_value =
|
|
7880
|
-
/*child*/
|
|
7881
|
-
ctx[3].href)) {
|
|
7882
|
-
attr(a, "href", a_href_value);
|
|
7883
|
-
}
|
|
7884
|
-
},
|
|
7885
|
-
|
|
7886
|
-
d(detaching) {
|
|
7887
|
-
if (detaching) detach(li);
|
|
7888
|
-
}
|
|
7748
|
+
d(detaching) {
|
|
7749
|
+
if (detaching) detach(goa_divider);
|
|
7750
|
+
}
|
|
7889
7751
|
|
|
7890
7752
|
};
|
|
7891
7753
|
}
|
|
7892
7754
|
|
|
7893
7755
|
function create_fragment$m(ctx) {
|
|
7894
|
-
|
|
7895
|
-
let div;
|
|
7896
|
-
let t;
|
|
7897
|
-
let ul;
|
|
7898
|
-
let each_value =
|
|
7899
|
-
/*children*/
|
|
7900
|
-
ctx[1];
|
|
7901
|
-
let each_blocks = [];
|
|
7902
|
-
|
|
7903
|
-
for (let i = 0; i < each_value.length; i += 1) {
|
|
7904
|
-
each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
|
|
7905
|
-
}
|
|
7756
|
+
var _ctx$;
|
|
7906
7757
|
|
|
7758
|
+
let div5;
|
|
7759
|
+
let div4;
|
|
7760
|
+
let div0;
|
|
7761
|
+
let t0;
|
|
7762
|
+
let t1;
|
|
7763
|
+
let div3;
|
|
7764
|
+
let div1;
|
|
7765
|
+
let t2;
|
|
7766
|
+
let div2;
|
|
7767
|
+
let a0;
|
|
7768
|
+
let t3;
|
|
7769
|
+
let a1;
|
|
7770
|
+
let div5_style_value;
|
|
7771
|
+
let if_block =
|
|
7772
|
+
/*navLinks*/
|
|
7773
|
+
((_ctx$ = ctx[2]) === null || _ctx$ === void 0 ? void 0 : _ctx$.length) && create_if_block$9();
|
|
7907
7774
|
return {
|
|
7908
7775
|
c() {
|
|
7909
|
-
|
|
7910
|
-
div = element("div");
|
|
7911
|
-
div.innerHTML = `<slot></slot>`;
|
|
7912
|
-
t = space();
|
|
7913
|
-
ul = element("ul");
|
|
7914
|
-
|
|
7915
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
7916
|
-
each_blocks[i].c();
|
|
7917
|
-
}
|
|
7776
|
+
var _ctx$2, _ctx$3;
|
|
7918
7777
|
|
|
7778
|
+
div5 = element("div");
|
|
7779
|
+
div4 = element("div");
|
|
7780
|
+
div0 = element("div");
|
|
7781
|
+
div0.innerHTML = `<slot name="nav"></slot>`;
|
|
7782
|
+
t0 = space();
|
|
7783
|
+
if (if_block) if_block.c();
|
|
7784
|
+
t1 = space();
|
|
7785
|
+
div3 = element("div");
|
|
7786
|
+
div1 = element("div");
|
|
7787
|
+
div1.innerHTML = `<slot name="meta"></slot>`;
|
|
7788
|
+
t2 = space();
|
|
7789
|
+
div2 = element("div");
|
|
7790
|
+
a0 = element("a");
|
|
7791
|
+
a0.innerHTML = `<img alt="GoA Logo" class="logo" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='149.351' height='42' viewBox='0 0 149.351 42'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bclip-path:url(%23a);%7D.c%7Bfill:%2300aad2;%7D.d%7Bfill:%235f6a72;%7D%3C/style%3E%3CclipPath id='a'%3E%3Crect class='a' width='149.351' height='42'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg class='b'%3E%3Crect class='c' width='13.555' height='13.555' transform='translate(135.796 21.524)'/%3E%3Cpath class='d' d='M63.082,33.088c-1.383.138-2.835.277-4.357.346.553-4.357,2.835-10.373,5.671-9.405,1.66.553.761,5.671-1.314,9.059m-3.527,2.974a3.761,3.761,0,0,1-1.245,0,.851.851,0,0,0,.346-.692v-.553c.761,0,1.936-.138,3.389-.277a4.327,4.327,0,0,1-2.49,1.521M76.844,25.688c1.8-1.66,2.7-1.521,2.9-1.106.484.968-1.591,4.357-5.671,6.224a10.328,10.328,0,0,1,2.766-5.118m66.736,1.66c-.207-3.389-3.181-3.942-3.6-2.974-.138.346,1.106.207,1.106,2.628,0,3.942-4.011,9.129-9.129,9.129-5.532,0-6.985-4.357-7.261-6.432-.207-1.452.138-3.458-2.351-3.181-1.729.207-3.25,3.527-5.463,6.362-1.867,2.42-2.7,2.213-2.282.138.553-2.628,2.7-8.714,5.187-9.129,1.176-.207,1.591,1.8,2.075.553s.069-4.011-2.559-4.011c-1.8,0-3.942,1.936-5.74,4.08-1.521,1.936-9.336,13.416-12.656,10.927-1.521-1.176-1.383-5.878-.415-11.411,3.873-1.521,7.123-1.037,8.921-.138.9.415,1.037.346.622-.622-.553-1.452-3.665-3.734-8.575-2.7-.138,0-.207.069-.346.069.415-1.8.83-3.665,1.383-5.463.484-1.66,1.8-4.5-1.729-4.979-1.106-.207-.622.346-1.037,1.867-.692,2.766-1.521,6.362-2.144,10.028a19.745,19.745,0,0,0-7.538,8.091,38.59,38.59,0,0,0,.9-4.772,1.589,1.589,0,0,0-1.245-1.729c-.761-.207-1.729.138-2.628,1.452-2.144,3.043-4.841,7.815-8.99,9.82-2.974,1.452-4.288,0-4.357-2.282a9.869,9.869,0,0,0,1.521-.553c5.394-2.351,7.192-5.947,5.878-8.16-1.314-2.075-4.979-1.452-7.953,1.66a11.175,11.175,0,0,0-2.7,6.5c-1.245.277-2.628.484-4.219.692,2.49-4.08,2.282-9.613-1.383-10.581-4.288-1.106-6.432,3.043-7.331,6.5.346-3.873.9-7.745,1.591-11.549.346-1.66,1.452-4.5-2.075-4.979-1.106-.207-.968.346-.9,1.867.138,2.075-2.144,14.454-.968,19.848-1.521.484-2.144,1.66-.207,2.835,1.383.83,4.357,1.106,7.331-.346a9.3,9.3,0,0,0,2.766-2.144c1.8-.207,3.665-.553,5.394-.83.277,2.42,1.867,4.219,5.463,3.873,5.118-.484,9.682-6.777,11.411-9.82-.346,3.25-2.42,10.373,1.176,10.028,1.383-.138.83-.346.9-1.591.346-4.288,3.873-7.953,7.4-10.166-.622,5.256-.415,9.958,2.006,11.411,4.426,2.766,10.581-4.5,14.039-8.921-1.729,3.942-2.7,8.921-.138,9.682,3.043.9,5.463-4.219,8.3-8.091.346,2.766,2.213,7.607,9.682,7.607,8.022-.069,13.071-4.91,12.863-10.1m-108.3,8.645A66.439,66.439,0,0,1,27.4,32.534a59.168,59.168,0,0,0,6.777-2.974,54.453,54.453,0,0,0,1.106,6.432m20.4,3.873c-.069-.207-.622.069-1.106,0-1.452-.207-3.389-2.213-3.942-5.463-1.037-5.878-.415-11.687,1.314-20.332.346-1.66,1.452-4.5-2.075-5.048-1.106-.138-.553.415-.83,1.867C47.66,17.32,42.4,21.954,37.149,25.066,36.6,17.735,36.8,9.505,38.186,4.526c1.176-4.219,2.559-3.458.83-4.357s-3.734.277-5.325,3.458S24.839,23.89,13.221,35.439C7.273,41.317,1.879,38.274.842,37.375c-.9-.761-1.176.415-.138,1.591,4.772,5.256,11.826,2.282,14.384-.277,7.054-7.054,15.283-22.268,18.6-28.7a98.251,98.251,0,0,0,.277,16.874,50.129,50.129,0,0,1-8.3,3.181c-1.66.415-2.7,1.106-2.7,1.867s1.106,1.521,2.7,2.282c2.835,1.383,11.2,5.256,13.209,6.5,1.729,1.037,2.628.207,3.112-.9.692-1.452-1.176-2.282-2.974-2.766a60.545,60.545,0,0,1-1.66-9.267c4.219-2.628,8.437-6.086,10.788-10.443C47.522,20.916,46,33.3,49.873,38.482a5.451,5.451,0,0,0,4.564,2.213c.968-.069,1.383-.692,1.245-.83' transform='translate(-0.038 0.124)'/%3E%3C/g%3E%3C/svg%3E"/>`;
|
|
7792
|
+
t3 = space();
|
|
7793
|
+
a1 = element("a");
|
|
7794
|
+
a1.textContent = `© ${
|
|
7795
|
+
/*year*/
|
|
7796
|
+
ctx[4]} Government of Alberta`;
|
|
7919
7797
|
this.c = noop;
|
|
7920
|
-
attr(
|
|
7798
|
+
attr(div0, "class", "nav-links");
|
|
7799
|
+
attr(div1, "class", "meta-links");
|
|
7800
|
+
attr(a0, "href", "https://alberta.ca");
|
|
7801
|
+
attr(a1, "href", "https://alberta.ca");
|
|
7802
|
+
attr(a1, "class", "goa-copyright");
|
|
7803
|
+
attr(div2, "class", "abgov");
|
|
7804
|
+
toggle_class(div2, "with-meta-links",
|
|
7805
|
+
/*metaLinks*/
|
|
7806
|
+
(_ctx$2 = ctx[3]) === null || _ctx$2 === void 0 ? void 0 : _ctx$2.length);
|
|
7807
|
+
attr(div3, "class", "meta-section");
|
|
7808
|
+
toggle_class(div3, "with-meta-links",
|
|
7809
|
+
/*metaLinks*/
|
|
7810
|
+
(_ctx$3 = ctx[3]) === null || _ctx$3 === void 0 ? void 0 : _ctx$3.length);
|
|
7811
|
+
attr(div4, "class", "content");
|
|
7812
|
+
attr(div5, "class", "app-footer");
|
|
7813
|
+
attr(div5, "style", div5_style_value = `--max-content-width: ${
|
|
7814
|
+
/*maxcontentwidth*/
|
|
7815
|
+
ctx[0] || "100%"}`);
|
|
7921
7816
|
},
|
|
7922
7817
|
|
|
7923
7818
|
m(target, anchor) {
|
|
7924
|
-
insert(target,
|
|
7925
|
-
append(
|
|
7926
|
-
append(
|
|
7927
|
-
append(
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7819
|
+
insert(target, div5, anchor);
|
|
7820
|
+
append(div5, div4);
|
|
7821
|
+
append(div4, div0);
|
|
7822
|
+
append(div4, t0);
|
|
7823
|
+
if (if_block) if_block.m(div4, null);
|
|
7824
|
+
append(div4, t1);
|
|
7825
|
+
append(div4, div3);
|
|
7826
|
+
append(div3, div1);
|
|
7827
|
+
append(div3, t2);
|
|
7828
|
+
append(div3, div2);
|
|
7829
|
+
append(div2, a0);
|
|
7830
|
+
append(div2, t3);
|
|
7831
|
+
append(div2, a1);
|
|
7832
|
+
/*div5_binding*/
|
|
7934
7833
|
|
|
7935
|
-
ctx[
|
|
7834
|
+
ctx[5](div5);
|
|
7936
7835
|
},
|
|
7937
7836
|
|
|
7938
7837
|
p(ctx, [dirty]) {
|
|
7838
|
+
var _ctx$4;
|
|
7839
|
+
|
|
7840
|
+
if (
|
|
7841
|
+
/*navLinks*/
|
|
7842
|
+
(_ctx$4 = ctx[2]) !== null && _ctx$4 !== void 0 && _ctx$4.length) {
|
|
7843
|
+
if (if_block) ;else {
|
|
7844
|
+
if_block = create_if_block$9();
|
|
7845
|
+
if_block.c();
|
|
7846
|
+
if_block.m(div4, t1);
|
|
7847
|
+
}
|
|
7848
|
+
} else if (if_block) {
|
|
7849
|
+
if_block.d(1);
|
|
7850
|
+
if_block = null;
|
|
7851
|
+
}
|
|
7852
|
+
|
|
7939
7853
|
if (dirty &
|
|
7940
|
-
/*
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
/*children*/
|
|
7944
|
-
ctx[1];
|
|
7945
|
-
let i;
|
|
7854
|
+
/*metaLinks*/
|
|
7855
|
+
8) {
|
|
7856
|
+
var _ctx$5;
|
|
7946
7857
|
|
|
7947
|
-
|
|
7948
|
-
|
|
7858
|
+
toggle_class(div2, "with-meta-links",
|
|
7859
|
+
/*metaLinks*/
|
|
7860
|
+
(_ctx$5 = ctx[3]) === null || _ctx$5 === void 0 ? void 0 : _ctx$5.length);
|
|
7861
|
+
}
|
|
7949
7862
|
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
each_blocks[i].c();
|
|
7955
|
-
each_blocks[i].m(ul, null);
|
|
7956
|
-
}
|
|
7957
|
-
}
|
|
7863
|
+
if (dirty &
|
|
7864
|
+
/*metaLinks*/
|
|
7865
|
+
8) {
|
|
7866
|
+
var _ctx$6;
|
|
7958
7867
|
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7868
|
+
toggle_class(div3, "with-meta-links",
|
|
7869
|
+
/*metaLinks*/
|
|
7870
|
+
(_ctx$6 = ctx[3]) === null || _ctx$6 === void 0 ? void 0 : _ctx$6.length);
|
|
7871
|
+
}
|
|
7962
7872
|
|
|
7963
|
-
|
|
7873
|
+
if (dirty &
|
|
7874
|
+
/*maxcontentwidth*/
|
|
7875
|
+
1 && div5_style_value !== (div5_style_value = `--max-content-width: ${
|
|
7876
|
+
/*maxcontentwidth*/
|
|
7877
|
+
ctx[0] || "100%"}`)) {
|
|
7878
|
+
attr(div5, "style", div5_style_value);
|
|
7964
7879
|
}
|
|
7965
7880
|
},
|
|
7966
7881
|
|
|
@@ -7968,82 +7883,299 @@
|
|
|
7968
7883
|
o: noop,
|
|
7969
7884
|
|
|
7970
7885
|
d(detaching) {
|
|
7971
|
-
if (detaching) detach(
|
|
7972
|
-
|
|
7973
|
-
/*
|
|
7886
|
+
if (detaching) detach(div5);
|
|
7887
|
+
if (if_block) if_block.d();
|
|
7888
|
+
/*div5_binding*/
|
|
7974
7889
|
|
|
7975
|
-
ctx[
|
|
7890
|
+
ctx[5](null);
|
|
7976
7891
|
}
|
|
7977
7892
|
|
|
7978
7893
|
};
|
|
7979
7894
|
}
|
|
7980
7895
|
|
|
7981
7896
|
function instance$k($$self, $$props, $$invalidate) {
|
|
7897
|
+
let {
|
|
7898
|
+
maxcontentwidth = ""
|
|
7899
|
+
} = $$props;
|
|
7982
7900
|
let rootEl;
|
|
7983
|
-
let
|
|
7901
|
+
let navLinks;
|
|
7902
|
+
let metaLinks;
|
|
7903
|
+
const year = new Date().getFullYear();
|
|
7984
7904
|
onMount(function () {
|
|
7985
7905
|
return _call(tick, function () {
|
|
7986
|
-
|
|
7987
|
-
const
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
if (!isValid) {
|
|
7992
|
-
$$invalidate(1, children = []);
|
|
7993
|
-
console.warn("GoAFooterMetaSection children must be anchor elements.");
|
|
7994
|
-
}
|
|
7906
|
+
const navSlot = rootEl.querySelector("slot[name=nav]");
|
|
7907
|
+
const metaSlot = rootEl.querySelector("slot[name=meta]");
|
|
7908
|
+
$$invalidate(2, navLinks = navSlot.assignedElements());
|
|
7909
|
+
$$invalidate(3, metaLinks = metaSlot.assignedElements());
|
|
7995
7910
|
});
|
|
7996
7911
|
});
|
|
7997
7912
|
|
|
7998
|
-
function
|
|
7913
|
+
function div5_binding($$value) {
|
|
7999
7914
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
8000
7915
|
rootEl = $$value;
|
|
8001
|
-
$$invalidate(
|
|
7916
|
+
$$invalidate(1, rootEl);
|
|
8002
7917
|
});
|
|
8003
7918
|
}
|
|
8004
7919
|
|
|
8005
|
-
|
|
7920
|
+
$$self.$$set = $$props => {
|
|
7921
|
+
if ('maxcontentwidth' in $$props) $$invalidate(0, maxcontentwidth = $$props.maxcontentwidth);
|
|
7922
|
+
};
|
|
7923
|
+
|
|
7924
|
+
return [maxcontentwidth, rootEl, navLinks, metaLinks, year, div5_binding];
|
|
8006
7925
|
}
|
|
8007
7926
|
|
|
8008
|
-
class
|
|
7927
|
+
class Footer extends SvelteElement {
|
|
8009
7928
|
constructor(options) {
|
|
8010
7929
|
super();
|
|
8011
|
-
this.shadowRoot.innerHTML = `<style
|
|
7930
|
+
this.shadowRoot.innerHTML = `<style>*{box-sizing:border-box}.app-footer{background-color:var(--color-gray-100);border-top:2px solid var(--color-gray-200);border-bottom:1rem solid var(--goa-color-brand)}.content{padding:2rem 1rem;margin:0 auto;width:min(var(--max-content-width), 100%)}@media(min-width: 640px){.content{padding:2rem 1.5rem}}.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>`;
|
|
8012
7931
|
init(this, {
|
|
8013
7932
|
target: this.shadowRoot,
|
|
8014
7933
|
props: attribute_to_object(this.attributes),
|
|
8015
7934
|
customElement: true
|
|
8016
|
-
}, instance$k, create_fragment$m, safe_not_equal, {
|
|
7935
|
+
}, instance$k, create_fragment$m, safe_not_equal, {
|
|
7936
|
+
maxcontentwidth: 0
|
|
7937
|
+
}, null);
|
|
8017
7938
|
|
|
8018
7939
|
if (options) {
|
|
8019
7940
|
if (options.target) {
|
|
8020
7941
|
insert(options.target, this, options.anchor);
|
|
8021
7942
|
}
|
|
7943
|
+
|
|
7944
|
+
if (options.props) {
|
|
7945
|
+
this.$set(options.props);
|
|
7946
|
+
flush();
|
|
7947
|
+
}
|
|
8022
7948
|
}
|
|
8023
7949
|
}
|
|
8024
7950
|
|
|
7951
|
+
static get observedAttributes() {
|
|
7952
|
+
return ["maxcontentwidth"];
|
|
7953
|
+
}
|
|
7954
|
+
|
|
7955
|
+
get maxcontentwidth() {
|
|
7956
|
+
return this.$$.ctx[0];
|
|
7957
|
+
}
|
|
7958
|
+
|
|
7959
|
+
set maxcontentwidth(maxcontentwidth) {
|
|
7960
|
+
this.$$set({
|
|
7961
|
+
maxcontentwidth
|
|
7962
|
+
});
|
|
7963
|
+
flush();
|
|
7964
|
+
}
|
|
7965
|
+
|
|
8025
7966
|
}
|
|
8026
7967
|
|
|
8027
|
-
customElements.define("goa-app-footer
|
|
8028
|
-
/* libs/web-components/src/components/footer-
|
|
7968
|
+
customElements.define("goa-app-footer", Footer);
|
|
7969
|
+
/* libs/web-components/src/components/footer-meta-section/FooterMetaSection.svelte generated by Svelte v3.51.0 */
|
|
8029
7970
|
|
|
8030
|
-
function get_each_context$
|
|
7971
|
+
function get_each_context$3(ctx, list, i) {
|
|
8031
7972
|
const child_ctx = ctx.slice();
|
|
8032
|
-
child_ctx[
|
|
7973
|
+
child_ctx[3] = list[i];
|
|
8033
7974
|
return child_ctx;
|
|
8034
|
-
} // (
|
|
7975
|
+
} // (52:4) {#each children as child}
|
|
8035
7976
|
|
|
8036
7977
|
|
|
8037
|
-
function
|
|
8038
|
-
let
|
|
8039
|
-
let
|
|
8040
|
-
let
|
|
8041
|
-
|
|
7978
|
+
function create_each_block$3(ctx) {
|
|
7979
|
+
let li;
|
|
7980
|
+
let a;
|
|
7981
|
+
let t_value =
|
|
7982
|
+
/*child*/
|
|
7983
|
+
ctx[3].innerHTML + "";
|
|
7984
|
+
let t;
|
|
7985
|
+
let a_href_value;
|
|
8042
7986
|
return {
|
|
8043
7987
|
c() {
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
7988
|
+
li = element("li");
|
|
7989
|
+
a = element("a");
|
|
7990
|
+
t = text(t_value);
|
|
7991
|
+
attr(a, "href", a_href_value =
|
|
7992
|
+
/*child*/
|
|
7993
|
+
ctx[3].href);
|
|
7994
|
+
},
|
|
7995
|
+
|
|
7996
|
+
m(target, anchor) {
|
|
7997
|
+
insert(target, li, anchor);
|
|
7998
|
+
append(li, a);
|
|
7999
|
+
append(a, t);
|
|
8000
|
+
},
|
|
8001
|
+
|
|
8002
|
+
p(ctx, dirty) {
|
|
8003
|
+
if (dirty &
|
|
8004
|
+
/*children*/
|
|
8005
|
+
2 && t_value !== (t_value =
|
|
8006
|
+
/*child*/
|
|
8007
|
+
ctx[3].innerHTML + "")) set_data(t, t_value);
|
|
8008
|
+
|
|
8009
|
+
if (dirty &
|
|
8010
|
+
/*children*/
|
|
8011
|
+
2 && a_href_value !== (a_href_value =
|
|
8012
|
+
/*child*/
|
|
8013
|
+
ctx[3].href)) {
|
|
8014
|
+
attr(a, "href", a_href_value);
|
|
8015
|
+
}
|
|
8016
|
+
},
|
|
8017
|
+
|
|
8018
|
+
d(detaching) {
|
|
8019
|
+
if (detaching) detach(li);
|
|
8020
|
+
}
|
|
8021
|
+
|
|
8022
|
+
};
|
|
8023
|
+
}
|
|
8024
|
+
|
|
8025
|
+
function create_fragment$l(ctx) {
|
|
8026
|
+
let section;
|
|
8027
|
+
let div;
|
|
8028
|
+
let t;
|
|
8029
|
+
let ul;
|
|
8030
|
+
let each_value =
|
|
8031
|
+
/*children*/
|
|
8032
|
+
ctx[1];
|
|
8033
|
+
let each_blocks = [];
|
|
8034
|
+
|
|
8035
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
8036
|
+
each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
|
|
8037
|
+
}
|
|
8038
|
+
|
|
8039
|
+
return {
|
|
8040
|
+
c() {
|
|
8041
|
+
section = element("section");
|
|
8042
|
+
div = element("div");
|
|
8043
|
+
div.innerHTML = `<slot></slot>`;
|
|
8044
|
+
t = space();
|
|
8045
|
+
ul = element("ul");
|
|
8046
|
+
|
|
8047
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
8048
|
+
each_blocks[i].c();
|
|
8049
|
+
}
|
|
8050
|
+
|
|
8051
|
+
this.c = noop;
|
|
8052
|
+
attr(div, "class", "hidden");
|
|
8053
|
+
},
|
|
8054
|
+
|
|
8055
|
+
m(target, anchor) {
|
|
8056
|
+
insert(target, section, anchor);
|
|
8057
|
+
append(section, div);
|
|
8058
|
+
append(section, t);
|
|
8059
|
+
append(section, ul);
|
|
8060
|
+
|
|
8061
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
8062
|
+
each_blocks[i].m(ul, null);
|
|
8063
|
+
}
|
|
8064
|
+
/*section_binding*/
|
|
8065
|
+
|
|
8066
|
+
|
|
8067
|
+
ctx[2](section);
|
|
8068
|
+
},
|
|
8069
|
+
|
|
8070
|
+
p(ctx, [dirty]) {
|
|
8071
|
+
if (dirty &
|
|
8072
|
+
/*children*/
|
|
8073
|
+
2) {
|
|
8074
|
+
each_value =
|
|
8075
|
+
/*children*/
|
|
8076
|
+
ctx[1];
|
|
8077
|
+
let i;
|
|
8078
|
+
|
|
8079
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
8080
|
+
const child_ctx = get_each_context$3(ctx, each_value, i);
|
|
8081
|
+
|
|
8082
|
+
if (each_blocks[i]) {
|
|
8083
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
8084
|
+
} else {
|
|
8085
|
+
each_blocks[i] = create_each_block$3(child_ctx);
|
|
8086
|
+
each_blocks[i].c();
|
|
8087
|
+
each_blocks[i].m(ul, null);
|
|
8088
|
+
}
|
|
8089
|
+
}
|
|
8090
|
+
|
|
8091
|
+
for (; i < each_blocks.length; i += 1) {
|
|
8092
|
+
each_blocks[i].d(1);
|
|
8093
|
+
}
|
|
8094
|
+
|
|
8095
|
+
each_blocks.length = each_value.length;
|
|
8096
|
+
}
|
|
8097
|
+
},
|
|
8098
|
+
|
|
8099
|
+
i: noop,
|
|
8100
|
+
o: noop,
|
|
8101
|
+
|
|
8102
|
+
d(detaching) {
|
|
8103
|
+
if (detaching) detach(section);
|
|
8104
|
+
destroy_each(each_blocks, detaching);
|
|
8105
|
+
/*section_binding*/
|
|
8106
|
+
|
|
8107
|
+
ctx[2](null);
|
|
8108
|
+
}
|
|
8109
|
+
|
|
8110
|
+
};
|
|
8111
|
+
}
|
|
8112
|
+
|
|
8113
|
+
function instance$j($$self, $$props, $$invalidate) {
|
|
8114
|
+
let rootEl;
|
|
8115
|
+
let children = [];
|
|
8116
|
+
onMount(function () {
|
|
8117
|
+
return _call(tick, function () {
|
|
8118
|
+
$$invalidate(1, children = rootEl.querySelector("slot").assignedElements());
|
|
8119
|
+
const isValid = children.map(child => child.hasAttribute("href")).reduce((sum, valid) => {
|
|
8120
|
+
return sum && valid;
|
|
8121
|
+
}, true);
|
|
8122
|
+
|
|
8123
|
+
if (!isValid) {
|
|
8124
|
+
$$invalidate(1, children = []);
|
|
8125
|
+
console.warn("GoAFooterMetaSection children must be anchor elements.");
|
|
8126
|
+
}
|
|
8127
|
+
});
|
|
8128
|
+
});
|
|
8129
|
+
|
|
8130
|
+
function section_binding($$value) {
|
|
8131
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
8132
|
+
rootEl = $$value;
|
|
8133
|
+
$$invalidate(0, rootEl);
|
|
8134
|
+
});
|
|
8135
|
+
}
|
|
8136
|
+
|
|
8137
|
+
return [rootEl, children, section_binding];
|
|
8138
|
+
}
|
|
8139
|
+
|
|
8140
|
+
class FooterMetaSection extends SvelteElement {
|
|
8141
|
+
constructor(options) {
|
|
8142
|
+
super();
|
|
8143
|
+
this.shadowRoot.innerHTML = `<style>.hidden{display:none}ul{display:flex;flex-wrap:wrap;gap:1rem;padding-left:0}li{list-style-type:none}a{color:var(--goa-color-text);white-space:nowrap}</style>`;
|
|
8144
|
+
init(this, {
|
|
8145
|
+
target: this.shadowRoot,
|
|
8146
|
+
props: attribute_to_object(this.attributes),
|
|
8147
|
+
customElement: true
|
|
8148
|
+
}, instance$j, create_fragment$l, safe_not_equal, {}, null);
|
|
8149
|
+
|
|
8150
|
+
if (options) {
|
|
8151
|
+
if (options.target) {
|
|
8152
|
+
insert(options.target, this, options.anchor);
|
|
8153
|
+
}
|
|
8154
|
+
}
|
|
8155
|
+
}
|
|
8156
|
+
|
|
8157
|
+
}
|
|
8158
|
+
|
|
8159
|
+
customElements.define("goa-app-footer-meta-section", FooterMetaSection);
|
|
8160
|
+
/* libs/web-components/src/components/footer-nav-section/FooterNavSection.svelte generated by Svelte v3.51.0 */
|
|
8161
|
+
|
|
8162
|
+
function get_each_context$2(ctx, list, i) {
|
|
8163
|
+
const child_ctx = ctx.slice();
|
|
8164
|
+
child_ctx[5] = list[i];
|
|
8165
|
+
return child_ctx;
|
|
8166
|
+
} // (31:2) {#if heading}
|
|
8167
|
+
|
|
8168
|
+
|
|
8169
|
+
function create_if_block$8(ctx) {
|
|
8170
|
+
let div;
|
|
8171
|
+
let t0;
|
|
8172
|
+
let t1;
|
|
8173
|
+
let goa_divider;
|
|
8174
|
+
return {
|
|
8175
|
+
c() {
|
|
8176
|
+
div = element("div");
|
|
8177
|
+
t0 = text(
|
|
8178
|
+
/*heading*/
|
|
8047
8179
|
ctx[0]);
|
|
8048
8180
|
t1 = space();
|
|
8049
8181
|
goa_divider = element("goa-divider");
|
|
@@ -8123,7 +8255,7 @@
|
|
|
8123
8255
|
};
|
|
8124
8256
|
}
|
|
8125
8257
|
|
|
8126
|
-
function create_fragment$
|
|
8258
|
+
function create_fragment$k(ctx) {
|
|
8127
8259
|
let section;
|
|
8128
8260
|
let t0;
|
|
8129
8261
|
let div;
|
|
@@ -8132,7 +8264,7 @@
|
|
|
8132
8264
|
let ul_style_value;
|
|
8133
8265
|
let if_block =
|
|
8134
8266
|
/*heading*/
|
|
8135
|
-
ctx[0] && create_if_block$
|
|
8267
|
+
ctx[0] && create_if_block$8(ctx);
|
|
8136
8268
|
let each_value =
|
|
8137
8269
|
/*children*/
|
|
8138
8270
|
ctx[3];
|
|
@@ -8199,7 +8331,7 @@
|
|
|
8199
8331
|
if (if_block) {
|
|
8200
8332
|
if_block.p(ctx, dirty);
|
|
8201
8333
|
} else {
|
|
8202
|
-
if_block = create_if_block$
|
|
8334
|
+
if_block = create_if_block$8(ctx);
|
|
8203
8335
|
if_block.c();
|
|
8204
8336
|
if_block.m(section, t0);
|
|
8205
8337
|
}
|
|
@@ -8270,7 +8402,7 @@
|
|
|
8270
8402
|
};
|
|
8271
8403
|
}
|
|
8272
8404
|
|
|
8273
|
-
function instance$
|
|
8405
|
+
function instance$i($$self, $$props, $$invalidate) {
|
|
8274
8406
|
let {
|
|
8275
8407
|
heading = ""
|
|
8276
8408
|
} = $$props;
|
|
@@ -8283,294 +8415,48 @@
|
|
|
8283
8415
|
return _call(tick, function () {
|
|
8284
8416
|
// remap slot content
|
|
8285
8417
|
$$invalidate(3, children = rootEl.querySelector("slot").assignedElements());
|
|
8286
|
-
const isValid = children.map(child => child.hasAttribute("href")).reduce((sum, valid) => {
|
|
8287
|
-
return sum && valid;
|
|
8288
|
-
}, true);
|
|
8289
|
-
|
|
8290
|
-
if (!isValid) {
|
|
8291
|
-
$$invalidate(3, children = []);
|
|
8292
|
-
console.warn("GoAFooterNavSection children must be anchor elements.");
|
|
8293
|
-
return;
|
|
8294
|
-
}
|
|
8295
|
-
|
|
8296
|
-
injectCss(rootEl, ":host", {
|
|
8297
|
-
"flex-grow": maxcolumncount
|
|
8298
|
-
});
|
|
8299
|
-
});
|
|
8300
|
-
});
|
|
8301
|
-
|
|
8302
|
-
function section_binding($$value) {
|
|
8303
|
-
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
8304
|
-
rootEl = $$value;
|
|
8305
|
-
$$invalidate(2, rootEl);
|
|
8306
|
-
});
|
|
8307
|
-
}
|
|
8308
|
-
|
|
8309
|
-
$$self.$$set = $$props => {
|
|
8310
|
-
if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
|
|
8311
|
-
if ('maxcolumncount' in $$props) $$invalidate(1, maxcolumncount = $$props.maxcolumncount);
|
|
8312
|
-
};
|
|
8313
|
-
|
|
8314
|
-
return [heading, maxcolumncount, rootEl, children, section_binding];
|
|
8315
|
-
}
|
|
8316
|
-
|
|
8317
|
-
class FooterNavSection extends SvelteElement {
|
|
8318
|
-
constructor(options) {
|
|
8319
|
-
super();
|
|
8320
|
-
this.shadowRoot.innerHTML = `<style>:host{flex:auto}.title{font-size:var(--fs-xl);line-height:var(--lh-lg)}.hidden{display:none}.links{display:block;list-style-type:none;padding-left:0}@media(min-width: 720px){.links{display:var(--narrow-display-type);list-style-type:none;padding-left:0;flex-direction:column;column-count:var(--narrow-column-count)}}@media(min-width: 1024px){.links{display:var(--wide-display-type);list-style-type:none;padding-left:0;flex-direction:column;column-count:var(--wide-column-count)}}li{padding:0.75rem 0}a{color:var(--goa-color-text)}</style>`;
|
|
8321
|
-
init(this, {
|
|
8322
|
-
target: this.shadowRoot,
|
|
8323
|
-
props: attribute_to_object(this.attributes),
|
|
8324
|
-
customElement: true
|
|
8325
|
-
}, instance$j, create_fragment$l, safe_not_equal, {
|
|
8326
|
-
heading: 0,
|
|
8327
|
-
maxcolumncount: 1
|
|
8328
|
-
}, null);
|
|
8329
|
-
|
|
8330
|
-
if (options) {
|
|
8331
|
-
if (options.target) {
|
|
8332
|
-
insert(options.target, this, options.anchor);
|
|
8333
|
-
}
|
|
8334
|
-
|
|
8335
|
-
if (options.props) {
|
|
8336
|
-
this.$set(options.props);
|
|
8337
|
-
flush();
|
|
8338
|
-
}
|
|
8339
|
-
}
|
|
8340
|
-
}
|
|
8341
|
-
|
|
8342
|
-
static get observedAttributes() {
|
|
8343
|
-
return ["heading", "maxcolumncount"];
|
|
8344
|
-
}
|
|
8345
|
-
|
|
8346
|
-
get heading() {
|
|
8347
|
-
return this.$$.ctx[0];
|
|
8348
|
-
}
|
|
8349
|
-
|
|
8350
|
-
set heading(heading) {
|
|
8351
|
-
this.$$set({
|
|
8352
|
-
heading
|
|
8353
|
-
});
|
|
8354
|
-
flush();
|
|
8355
|
-
}
|
|
8356
|
-
|
|
8357
|
-
get maxcolumncount() {
|
|
8358
|
-
return this.$$.ctx[1];
|
|
8359
|
-
}
|
|
8360
|
-
|
|
8361
|
-
set maxcolumncount(maxcolumncount) {
|
|
8362
|
-
this.$$set({
|
|
8363
|
-
maxcolumncount
|
|
8364
|
-
});
|
|
8365
|
-
flush();
|
|
8366
|
-
}
|
|
8367
|
-
|
|
8368
|
-
}
|
|
8369
|
-
|
|
8370
|
-
customElements.define("goa-app-footer-nav-section", FooterNavSection);
|
|
8371
|
-
/* libs/web-components/src/components/footer/Footer.svelte generated by Svelte v3.51.0 */
|
|
8372
|
-
|
|
8373
|
-
function create_if_block$8(ctx) {
|
|
8374
|
-
let goa_divider;
|
|
8375
|
-
return {
|
|
8376
|
-
c() {
|
|
8377
|
-
goa_divider = element("goa-divider");
|
|
8378
|
-
set_custom_element_data(goa_divider, "spacing", "small");
|
|
8379
|
-
},
|
|
8380
|
-
|
|
8381
|
-
m(target, anchor) {
|
|
8382
|
-
insert(target, goa_divider, anchor);
|
|
8383
|
-
},
|
|
8384
|
-
|
|
8385
|
-
d(detaching) {
|
|
8386
|
-
if (detaching) detach(goa_divider);
|
|
8387
|
-
}
|
|
8388
|
-
|
|
8389
|
-
};
|
|
8390
|
-
}
|
|
8391
|
-
|
|
8392
|
-
function create_fragment$k(ctx) {
|
|
8393
|
-
var _ctx$;
|
|
8394
|
-
|
|
8395
|
-
let div5;
|
|
8396
|
-
let div4;
|
|
8397
|
-
let div0;
|
|
8398
|
-
let t0;
|
|
8399
|
-
let t1;
|
|
8400
|
-
let div3;
|
|
8401
|
-
let div1;
|
|
8402
|
-
let t2;
|
|
8403
|
-
let div2;
|
|
8404
|
-
let a0;
|
|
8405
|
-
let t3;
|
|
8406
|
-
let a1;
|
|
8407
|
-
let div5_style_value;
|
|
8408
|
-
let if_block =
|
|
8409
|
-
/*navLinks*/
|
|
8410
|
-
((_ctx$ = ctx[2]) === null || _ctx$ === void 0 ? void 0 : _ctx$.length) && create_if_block$8();
|
|
8411
|
-
return {
|
|
8412
|
-
c() {
|
|
8413
|
-
var _ctx$2, _ctx$3;
|
|
8414
|
-
|
|
8415
|
-
div5 = element("div");
|
|
8416
|
-
div4 = element("div");
|
|
8417
|
-
div0 = element("div");
|
|
8418
|
-
div0.innerHTML = `<slot name="nav"></slot>`;
|
|
8419
|
-
t0 = space();
|
|
8420
|
-
if (if_block) if_block.c();
|
|
8421
|
-
t1 = space();
|
|
8422
|
-
div3 = element("div");
|
|
8423
|
-
div1 = element("div");
|
|
8424
|
-
div1.innerHTML = `<slot name="meta"></slot>`;
|
|
8425
|
-
t2 = space();
|
|
8426
|
-
div2 = element("div");
|
|
8427
|
-
a0 = element("a");
|
|
8428
|
-
a0.innerHTML = `<img alt="GoA Logo" class="logo" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='149.351' height='42' viewBox='0 0 149.351 42'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bclip-path:url(%23a);%7D.c%7Bfill:%2300aad2;%7D.d%7Bfill:%235f6a72;%7D%3C/style%3E%3CclipPath id='a'%3E%3Crect class='a' width='149.351' height='42'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg class='b'%3E%3Crect class='c' width='13.555' height='13.555' transform='translate(135.796 21.524)'/%3E%3Cpath class='d' d='M63.082,33.088c-1.383.138-2.835.277-4.357.346.553-4.357,2.835-10.373,5.671-9.405,1.66.553.761,5.671-1.314,9.059m-3.527,2.974a3.761,3.761,0,0,1-1.245,0,.851.851,0,0,0,.346-.692v-.553c.761,0,1.936-.138,3.389-.277a4.327,4.327,0,0,1-2.49,1.521M76.844,25.688c1.8-1.66,2.7-1.521,2.9-1.106.484.968-1.591,4.357-5.671,6.224a10.328,10.328,0,0,1,2.766-5.118m66.736,1.66c-.207-3.389-3.181-3.942-3.6-2.974-.138.346,1.106.207,1.106,2.628,0,3.942-4.011,9.129-9.129,9.129-5.532,0-6.985-4.357-7.261-6.432-.207-1.452.138-3.458-2.351-3.181-1.729.207-3.25,3.527-5.463,6.362-1.867,2.42-2.7,2.213-2.282.138.553-2.628,2.7-8.714,5.187-9.129,1.176-.207,1.591,1.8,2.075.553s.069-4.011-2.559-4.011c-1.8,0-3.942,1.936-5.74,4.08-1.521,1.936-9.336,13.416-12.656,10.927-1.521-1.176-1.383-5.878-.415-11.411,3.873-1.521,7.123-1.037,8.921-.138.9.415,1.037.346.622-.622-.553-1.452-3.665-3.734-8.575-2.7-.138,0-.207.069-.346.069.415-1.8.83-3.665,1.383-5.463.484-1.66,1.8-4.5-1.729-4.979-1.106-.207-.622.346-1.037,1.867-.692,2.766-1.521,6.362-2.144,10.028a19.745,19.745,0,0,0-7.538,8.091,38.59,38.59,0,0,0,.9-4.772,1.589,1.589,0,0,0-1.245-1.729c-.761-.207-1.729.138-2.628,1.452-2.144,3.043-4.841,7.815-8.99,9.82-2.974,1.452-4.288,0-4.357-2.282a9.869,9.869,0,0,0,1.521-.553c5.394-2.351,7.192-5.947,5.878-8.16-1.314-2.075-4.979-1.452-7.953,1.66a11.175,11.175,0,0,0-2.7,6.5c-1.245.277-2.628.484-4.219.692,2.49-4.08,2.282-9.613-1.383-10.581-4.288-1.106-6.432,3.043-7.331,6.5.346-3.873.9-7.745,1.591-11.549.346-1.66,1.452-4.5-2.075-4.979-1.106-.207-.968.346-.9,1.867.138,2.075-2.144,14.454-.968,19.848-1.521.484-2.144,1.66-.207,2.835,1.383.83,4.357,1.106,7.331-.346a9.3,9.3,0,0,0,2.766-2.144c1.8-.207,3.665-.553,5.394-.83.277,2.42,1.867,4.219,5.463,3.873,5.118-.484,9.682-6.777,11.411-9.82-.346,3.25-2.42,10.373,1.176,10.028,1.383-.138.83-.346.9-1.591.346-4.288,3.873-7.953,7.4-10.166-.622,5.256-.415,9.958,2.006,11.411,4.426,2.766,10.581-4.5,14.039-8.921-1.729,3.942-2.7,8.921-.138,9.682,3.043.9,5.463-4.219,8.3-8.091.346,2.766,2.213,7.607,9.682,7.607,8.022-.069,13.071-4.91,12.863-10.1m-108.3,8.645A66.439,66.439,0,0,1,27.4,32.534a59.168,59.168,0,0,0,6.777-2.974,54.453,54.453,0,0,0,1.106,6.432m20.4,3.873c-.069-.207-.622.069-1.106,0-1.452-.207-3.389-2.213-3.942-5.463-1.037-5.878-.415-11.687,1.314-20.332.346-1.66,1.452-4.5-2.075-5.048-1.106-.138-.553.415-.83,1.867C47.66,17.32,42.4,21.954,37.149,25.066,36.6,17.735,36.8,9.505,38.186,4.526c1.176-4.219,2.559-3.458.83-4.357s-3.734.277-5.325,3.458S24.839,23.89,13.221,35.439C7.273,41.317,1.879,38.274.842,37.375c-.9-.761-1.176.415-.138,1.591,4.772,5.256,11.826,2.282,14.384-.277,7.054-7.054,15.283-22.268,18.6-28.7a98.251,98.251,0,0,0,.277,16.874,50.129,50.129,0,0,1-8.3,3.181c-1.66.415-2.7,1.106-2.7,1.867s1.106,1.521,2.7,2.282c2.835,1.383,11.2,5.256,13.209,6.5,1.729,1.037,2.628.207,3.112-.9.692-1.452-1.176-2.282-2.974-2.766a60.545,60.545,0,0,1-1.66-9.267c4.219-2.628,8.437-6.086,10.788-10.443C47.522,20.916,46,33.3,49.873,38.482a5.451,5.451,0,0,0,4.564,2.213c.968-.069,1.383-.692,1.245-.83' transform='translate(-0.038 0.124)'/%3E%3C/g%3E%3C/svg%3E"/>`;
|
|
8429
|
-
t3 = space();
|
|
8430
|
-
a1 = element("a");
|
|
8431
|
-
a1.textContent = `© ${
|
|
8432
|
-
/*year*/
|
|
8433
|
-
ctx[4]} Government of Alberta`;
|
|
8434
|
-
this.c = noop;
|
|
8435
|
-
attr(div0, "class", "nav-links");
|
|
8436
|
-
attr(div1, "class", "meta-links");
|
|
8437
|
-
attr(a0, "href", "https://alberta.ca");
|
|
8438
|
-
attr(a1, "href", "https://alberta.ca");
|
|
8439
|
-
attr(a1, "class", "goa-copyright");
|
|
8440
|
-
attr(div2, "class", "abgov");
|
|
8441
|
-
toggle_class(div2, "with-meta-links",
|
|
8442
|
-
/*metaLinks*/
|
|
8443
|
-
(_ctx$2 = ctx[3]) === null || _ctx$2 === void 0 ? void 0 : _ctx$2.length);
|
|
8444
|
-
attr(div3, "class", "meta-section");
|
|
8445
|
-
toggle_class(div3, "with-meta-links",
|
|
8446
|
-
/*metaLinks*/
|
|
8447
|
-
(_ctx$3 = ctx[3]) === null || _ctx$3 === void 0 ? void 0 : _ctx$3.length);
|
|
8448
|
-
attr(div4, "class", "content");
|
|
8449
|
-
attr(div5, "class", "app-footer");
|
|
8450
|
-
attr(div5, "style", div5_style_value = `--max-content-width: ${
|
|
8451
|
-
/*maxcontentwidth*/
|
|
8452
|
-
ctx[0] || "100%"}`);
|
|
8453
|
-
},
|
|
8454
|
-
|
|
8455
|
-
m(target, anchor) {
|
|
8456
|
-
insert(target, div5, anchor);
|
|
8457
|
-
append(div5, div4);
|
|
8458
|
-
append(div4, div0);
|
|
8459
|
-
append(div4, t0);
|
|
8460
|
-
if (if_block) if_block.m(div4, null);
|
|
8461
|
-
append(div4, t1);
|
|
8462
|
-
append(div4, div3);
|
|
8463
|
-
append(div3, div1);
|
|
8464
|
-
append(div3, t2);
|
|
8465
|
-
append(div3, div2);
|
|
8466
|
-
append(div2, a0);
|
|
8467
|
-
append(div2, t3);
|
|
8468
|
-
append(div2, a1);
|
|
8469
|
-
/*div5_binding*/
|
|
8470
|
-
|
|
8471
|
-
ctx[5](div5);
|
|
8472
|
-
},
|
|
8473
|
-
|
|
8474
|
-
p(ctx, [dirty]) {
|
|
8475
|
-
var _ctx$4;
|
|
8476
|
-
|
|
8477
|
-
if (
|
|
8478
|
-
/*navLinks*/
|
|
8479
|
-
(_ctx$4 = ctx[2]) !== null && _ctx$4 !== void 0 && _ctx$4.length) {
|
|
8480
|
-
if (if_block) ;else {
|
|
8481
|
-
if_block = create_if_block$8();
|
|
8482
|
-
if_block.c();
|
|
8483
|
-
if_block.m(div4, t1);
|
|
8484
|
-
}
|
|
8485
|
-
} else if (if_block) {
|
|
8486
|
-
if_block.d(1);
|
|
8487
|
-
if_block = null;
|
|
8488
|
-
}
|
|
8489
|
-
|
|
8490
|
-
if (dirty &
|
|
8491
|
-
/*metaLinks*/
|
|
8492
|
-
8) {
|
|
8493
|
-
var _ctx$5;
|
|
8494
|
-
|
|
8495
|
-
toggle_class(div2, "with-meta-links",
|
|
8496
|
-
/*metaLinks*/
|
|
8497
|
-
(_ctx$5 = ctx[3]) === null || _ctx$5 === void 0 ? void 0 : _ctx$5.length);
|
|
8498
|
-
}
|
|
8499
|
-
|
|
8500
|
-
if (dirty &
|
|
8501
|
-
/*metaLinks*/
|
|
8502
|
-
8) {
|
|
8503
|
-
var _ctx$6;
|
|
8504
|
-
|
|
8505
|
-
toggle_class(div3, "with-meta-links",
|
|
8506
|
-
/*metaLinks*/
|
|
8507
|
-
(_ctx$6 = ctx[3]) === null || _ctx$6 === void 0 ? void 0 : _ctx$6.length);
|
|
8508
|
-
}
|
|
8509
|
-
|
|
8510
|
-
if (dirty &
|
|
8511
|
-
/*maxcontentwidth*/
|
|
8512
|
-
1 && div5_style_value !== (div5_style_value = `--max-content-width: ${
|
|
8513
|
-
/*maxcontentwidth*/
|
|
8514
|
-
ctx[0] || "100%"}`)) {
|
|
8515
|
-
attr(div5, "style", div5_style_value);
|
|
8516
|
-
}
|
|
8517
|
-
},
|
|
8518
|
-
|
|
8519
|
-
i: noop,
|
|
8520
|
-
o: noop,
|
|
8521
|
-
|
|
8522
|
-
d(detaching) {
|
|
8523
|
-
if (detaching) detach(div5);
|
|
8524
|
-
if (if_block) if_block.d();
|
|
8525
|
-
/*div5_binding*/
|
|
8526
|
-
|
|
8527
|
-
ctx[5](null);
|
|
8528
|
-
}
|
|
8529
|
-
|
|
8530
|
-
};
|
|
8531
|
-
}
|
|
8532
|
-
|
|
8533
|
-
function instance$i($$self, $$props, $$invalidate) {
|
|
8534
|
-
let {
|
|
8535
|
-
maxcontentwidth = ""
|
|
8536
|
-
} = $$props;
|
|
8537
|
-
let rootEl;
|
|
8538
|
-
let navLinks;
|
|
8539
|
-
let metaLinks;
|
|
8540
|
-
const year = new Date().getFullYear();
|
|
8541
|
-
onMount(function () {
|
|
8542
|
-
return _call(tick, function () {
|
|
8543
|
-
const navSlot = rootEl.querySelector("slot[name=nav]");
|
|
8544
|
-
const metaSlot = rootEl.querySelector("slot[name=meta]");
|
|
8545
|
-
$$invalidate(2, navLinks = navSlot.assignedElements());
|
|
8546
|
-
$$invalidate(3, metaLinks = metaSlot.assignedElements());
|
|
8418
|
+
const isValid = children.map(child => child.hasAttribute("href")).reduce((sum, valid) => {
|
|
8419
|
+
return sum && valid;
|
|
8420
|
+
}, true);
|
|
8421
|
+
|
|
8422
|
+
if (!isValid) {
|
|
8423
|
+
$$invalidate(3, children = []);
|
|
8424
|
+
console.warn("GoAFooterNavSection children must be anchor elements.");
|
|
8425
|
+
return;
|
|
8426
|
+
}
|
|
8427
|
+
|
|
8428
|
+
injectCss(rootEl, ":host", {
|
|
8429
|
+
"flex-grow": maxcolumncount
|
|
8430
|
+
});
|
|
8547
8431
|
});
|
|
8548
8432
|
});
|
|
8549
8433
|
|
|
8550
|
-
function
|
|
8434
|
+
function section_binding($$value) {
|
|
8551
8435
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
8552
8436
|
rootEl = $$value;
|
|
8553
|
-
$$invalidate(
|
|
8437
|
+
$$invalidate(2, rootEl);
|
|
8554
8438
|
});
|
|
8555
8439
|
}
|
|
8556
8440
|
|
|
8557
8441
|
$$self.$$set = $$props => {
|
|
8558
|
-
if ('
|
|
8442
|
+
if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
|
|
8443
|
+
if ('maxcolumncount' in $$props) $$invalidate(1, maxcolumncount = $$props.maxcolumncount);
|
|
8559
8444
|
};
|
|
8560
8445
|
|
|
8561
|
-
return [
|
|
8446
|
+
return [heading, maxcolumncount, rootEl, children, section_binding];
|
|
8562
8447
|
}
|
|
8563
8448
|
|
|
8564
|
-
class
|
|
8449
|
+
class FooterNavSection extends SvelteElement {
|
|
8565
8450
|
constructor(options) {
|
|
8566
8451
|
super();
|
|
8567
|
-
this.shadowRoot.innerHTML = `<style
|
|
8452
|
+
this.shadowRoot.innerHTML = `<style>:host{flex:auto}.title{font-size:var(--fs-xl);line-height:var(--lh-lg)}.hidden{display:none}.links{display:block;list-style-type:none;padding-left:0}@media(min-width: 720px){.links{display:var(--narrow-display-type);list-style-type:none;padding-left:0;flex-direction:column;column-count:var(--narrow-column-count)}}@media(min-width: 1024px){.links{display:var(--wide-display-type);list-style-type:none;padding-left:0;flex-direction:column;column-count:var(--wide-column-count)}}li{padding:0.75rem 0}a{color:var(--goa-color-text)}</style>`;
|
|
8568
8453
|
init(this, {
|
|
8569
8454
|
target: this.shadowRoot,
|
|
8570
8455
|
props: attribute_to_object(this.attributes),
|
|
8571
8456
|
customElement: true
|
|
8572
8457
|
}, instance$i, create_fragment$k, safe_not_equal, {
|
|
8573
|
-
|
|
8458
|
+
heading: 0,
|
|
8459
|
+
maxcolumncount: 1
|
|
8574
8460
|
}, null);
|
|
8575
8461
|
|
|
8576
8462
|
if (options) {
|
|
@@ -8586,23 +8472,34 @@
|
|
|
8586
8472
|
}
|
|
8587
8473
|
|
|
8588
8474
|
static get observedAttributes() {
|
|
8589
|
-
return ["
|
|
8475
|
+
return ["heading", "maxcolumncount"];
|
|
8590
8476
|
}
|
|
8591
8477
|
|
|
8592
|
-
get
|
|
8478
|
+
get heading() {
|
|
8593
8479
|
return this.$$.ctx[0];
|
|
8594
8480
|
}
|
|
8595
8481
|
|
|
8596
|
-
set
|
|
8482
|
+
set heading(heading) {
|
|
8597
8483
|
this.$$set({
|
|
8598
|
-
|
|
8484
|
+
heading
|
|
8485
|
+
});
|
|
8486
|
+
flush();
|
|
8487
|
+
}
|
|
8488
|
+
|
|
8489
|
+
get maxcolumncount() {
|
|
8490
|
+
return this.$$.ctx[1];
|
|
8491
|
+
}
|
|
8492
|
+
|
|
8493
|
+
set maxcolumncount(maxcolumncount) {
|
|
8494
|
+
this.$$set({
|
|
8495
|
+
maxcolumncount
|
|
8599
8496
|
});
|
|
8600
8497
|
flush();
|
|
8601
8498
|
}
|
|
8602
8499
|
|
|
8603
8500
|
}
|
|
8604
8501
|
|
|
8605
|
-
customElements.define("goa-app-footer",
|
|
8502
|
+
customElements.define("goa-app-footer-nav-section", FooterNavSection);
|
|
8606
8503
|
/* libs/web-components/src/components/form-item/FormItem.svelte generated by Svelte v3.51.0 */
|
|
8607
8504
|
|
|
8608
8505
|
function create_if_block_2$4(ctx) {
|
|
@@ -13001,7 +12898,7 @@
|
|
|
13001
12898
|
const child_ctx = ctx.slice();
|
|
13002
12899
|
child_ctx[22] = list[i];
|
|
13003
12900
|
return child_ctx;
|
|
13004
|
-
} // (
|
|
12901
|
+
} // (80:2) {#each options as option (option.value)}
|
|
13005
12902
|
|
|
13006
12903
|
|
|
13007
12904
|
function create_each_block$1(key_1, ctx) {
|
|
@@ -13028,7 +12925,7 @@
|
|
|
13028
12925
|
function change_handler() {
|
|
13029
12926
|
return (
|
|
13030
12927
|
/*change_handler*/
|
|
13031
|
-
ctx[
|
|
12928
|
+
ctx[16](
|
|
13032
12929
|
/*option*/
|
|
13033
12930
|
ctx[22])
|
|
13034
12931
|
);
|
|
@@ -13078,7 +12975,7 @@
|
|
|
13078
12975
|
ctx[12]);
|
|
13079
12976
|
toggle_class(label, "goa-radio--error",
|
|
13080
12977
|
/*isError*/
|
|
13081
|
-
ctx[
|
|
12978
|
+
ctx[11]);
|
|
13082
12979
|
this.first = label;
|
|
13083
12980
|
},
|
|
13084
12981
|
|
|
@@ -13171,10 +13068,10 @@
|
|
|
13171
13068
|
|
|
13172
13069
|
if (dirty &
|
|
13173
13070
|
/*isError*/
|
|
13174
|
-
|
|
13071
|
+
2048) {
|
|
13175
13072
|
toggle_class(label, "goa-radio--error",
|
|
13176
13073
|
/*isError*/
|
|
13177
|
-
ctx[
|
|
13074
|
+
ctx[11]);
|
|
13178
13075
|
}
|
|
13179
13076
|
},
|
|
13180
13077
|
|
|
@@ -13248,13 +13145,13 @@
|
|
|
13248
13145
|
/*div_binding*/
|
|
13249
13146
|
|
|
13250
13147
|
|
|
13251
|
-
ctx[
|
|
13148
|
+
ctx[17](div);
|
|
13252
13149
|
},
|
|
13253
13150
|
|
|
13254
13151
|
p(ctx, [dirty]) {
|
|
13255
13152
|
if (dirty &
|
|
13256
13153
|
/*options, isDisabled, isError, name, value, arialabel, onChange*/
|
|
13257
|
-
|
|
13154
|
+
14867) {
|
|
13258
13155
|
each_value =
|
|
13259
13156
|
/*options*/
|
|
13260
13157
|
ctx[9];
|
|
@@ -13304,7 +13201,7 @@
|
|
|
13304
13201
|
/*div_binding*/
|
|
13305
13202
|
|
|
13306
13203
|
|
|
13307
|
-
ctx[
|
|
13204
|
+
ctx[17](null);
|
|
13308
13205
|
}
|
|
13309
13206
|
|
|
13310
13207
|
};
|
|
@@ -13312,6 +13209,7 @@
|
|
|
13312
13209
|
|
|
13313
13210
|
function instance$7($$self, $$props, $$invalidate) {
|
|
13314
13211
|
let isDisabled;
|
|
13212
|
+
let isError;
|
|
13315
13213
|
const [Orientations, validateOrientation] = typeValidator("Radio group orientation", ["vertical", "horizontal"]);
|
|
13316
13214
|
let {
|
|
13317
13215
|
name
|
|
@@ -13346,12 +13244,46 @@
|
|
|
13346
13244
|
let {
|
|
13347
13245
|
ml = null
|
|
13348
13246
|
} = $$props;
|
|
13349
|
-
let options = [];
|
|
13350
|
-
|
|
13351
|
-
let isError;
|
|
13352
|
-
let ctx;
|
|
13353
|
-
let isBound = false;
|
|
13247
|
+
let options = [];
|
|
13354
13248
|
let el;
|
|
13249
|
+
onMount(function () {
|
|
13250
|
+
return _call(tick, function () {
|
|
13251
|
+
$$invalidate(9, options = getOptions());
|
|
13252
|
+
});
|
|
13253
|
+
});
|
|
13254
|
+
/**
|
|
13255
|
+
* Allows the child elements to be obtainable within unit tests
|
|
13256
|
+
* @returns List of child elements
|
|
13257
|
+
*/
|
|
13258
|
+
|
|
13259
|
+
function getChildren() {
|
|
13260
|
+
const slot = el.querySelector("slot");
|
|
13261
|
+
if (slot) // default
|
|
13262
|
+
return [...slot.assignedElements()];else // unit tests
|
|
13263
|
+
return [...el.children];
|
|
13264
|
+
}
|
|
13265
|
+
/**
|
|
13266
|
+
* Maps the child elements to a list of RadioOptions
|
|
13267
|
+
*/
|
|
13268
|
+
|
|
13269
|
+
|
|
13270
|
+
function getOptions() {
|
|
13271
|
+
const children = getChildren();
|
|
13272
|
+
return children.map(el => {
|
|
13273
|
+
const option = el;
|
|
13274
|
+
const value = el.getAttribute("value") || option.value;
|
|
13275
|
+
const label = el.getAttribute("label") || el.innerText || option.label || option.innerText;
|
|
13276
|
+
return {
|
|
13277
|
+
value,
|
|
13278
|
+
label
|
|
13279
|
+
};
|
|
13280
|
+
});
|
|
13281
|
+
}
|
|
13282
|
+
/**
|
|
13283
|
+
* Handles changing of the radio items
|
|
13284
|
+
* @param newValue Selected value
|
|
13285
|
+
*/
|
|
13286
|
+
|
|
13355
13287
|
|
|
13356
13288
|
function onChange(newValue) {
|
|
13357
13289
|
if (newValue === value) return;
|
|
@@ -13365,9 +13297,6 @@
|
|
|
13365
13297
|
}));
|
|
13366
13298
|
}
|
|
13367
13299
|
|
|
13368
|
-
onDestroy(() => {
|
|
13369
|
-
deleteContext(name);
|
|
13370
|
-
});
|
|
13371
13300
|
onMount(() => {
|
|
13372
13301
|
validateOrientation(orientation);
|
|
13373
13302
|
});
|
|
@@ -13377,7 +13306,7 @@
|
|
|
13377
13306
|
function div_binding($$value) {
|
|
13378
13307
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
13379
13308
|
el = $$value;
|
|
13380
|
-
$$invalidate(
|
|
13309
|
+
$$invalidate(10, el);
|
|
13381
13310
|
});
|
|
13382
13311
|
}
|
|
13383
13312
|
|
|
@@ -13399,32 +13328,18 @@
|
|
|
13399
13328
|
if ($$self.$$.dirty &
|
|
13400
13329
|
/*disabled*/
|
|
13401
13330
|
16384) {
|
|
13331
|
+
// private
|
|
13402
13332
|
$$invalidate(12, isDisabled = toBoolean(disabled));
|
|
13403
13333
|
}
|
|
13404
13334
|
|
|
13405
13335
|
if ($$self.$$.dirty &
|
|
13406
13336
|
/*error*/
|
|
13407
13337
|
32768) {
|
|
13408
|
-
$$invalidate(
|
|
13409
|
-
}
|
|
13410
|
-
|
|
13411
|
-
if ($$self.$$.dirty &
|
|
13412
|
-
/*name, isBound, ctx, options*/
|
|
13413
|
-
197122) {
|
|
13414
|
-
{
|
|
13415
|
-
if (name && !isBound) {
|
|
13416
|
-
$$invalidate(17, isBound = true);
|
|
13417
|
-
$$invalidate(16, ctx = getContext(name));
|
|
13418
|
-
ctx.subscribe(msg => {
|
|
13419
|
-
if (!msg) return;
|
|
13420
|
-
$$invalidate(9, options = [...options, msg]);
|
|
13421
|
-
});
|
|
13422
|
-
}
|
|
13423
|
-
}
|
|
13338
|
+
$$invalidate(11, isError = toBoolean(error));
|
|
13424
13339
|
}
|
|
13425
13340
|
};
|
|
13426
13341
|
|
|
13427
|
-
return [value, name, orientation, testid, arialabel, mt, mr, mb, ml, options,
|
|
13342
|
+
return [value, name, orientation, testid, arialabel, mt, mr, mb, ml, options, el, isError, isDisabled, onChange, disabled, error, change_handler, div_binding];
|
|
13428
13343
|
}
|
|
13429
13344
|
|
|
13430
13345
|
class RadioGroup extends SvelteElement {
|
|
@@ -13591,134 +13506,9 @@
|
|
|
13591
13506
|
}
|
|
13592
13507
|
|
|
13593
13508
|
customElements.define("goa-radio-group", RadioGroup);
|
|
13594
|
-
/* libs/web-components/src/components/radio-group/RadioItem.svelte generated by Svelte v3.51.0 */
|
|
13595
|
-
|
|
13596
|
-
function create_fragment$8(ctx) {
|
|
13597
|
-
return {
|
|
13598
|
-
c() {
|
|
13599
|
-
this.c = noop;
|
|
13600
|
-
},
|
|
13601
|
-
|
|
13602
|
-
m: noop,
|
|
13603
|
-
p: noop,
|
|
13604
|
-
i: noop,
|
|
13605
|
-
o: noop,
|
|
13606
|
-
d: noop
|
|
13607
|
-
};
|
|
13608
|
-
}
|
|
13609
|
-
|
|
13610
|
-
function instance$6($$self, $$props, $$invalidate) {
|
|
13611
|
-
let {
|
|
13612
|
-
value
|
|
13613
|
-
} = $$props;
|
|
13614
|
-
let {
|
|
13615
|
-
label
|
|
13616
|
-
} = $$props;
|
|
13617
|
-
let {
|
|
13618
|
-
name
|
|
13619
|
-
} = $$props;
|
|
13620
|
-
let ctx;
|
|
13621
|
-
let isBound = false;
|
|
13622
|
-
|
|
13623
|
-
$$self.$$set = $$props => {
|
|
13624
|
-
if ('value' in $$props) $$invalidate(0, value = $$props.value);
|
|
13625
|
-
if ('label' in $$props) $$invalidate(1, label = $$props.label);
|
|
13626
|
-
if ('name' in $$props) $$invalidate(2, name = $$props.name);
|
|
13627
|
-
};
|
|
13628
|
-
|
|
13629
|
-
$$self.$$.update = () => {
|
|
13630
|
-
if ($$self.$$.dirty &
|
|
13631
|
-
/*isBound, name, ctx, value, label*/
|
|
13632
|
-
31) {
|
|
13633
|
-
{
|
|
13634
|
-
(function () {
|
|
13635
|
-
return _call(tick, function () {
|
|
13636
|
-
if (!isBound) {
|
|
13637
|
-
$$invalidate(4, isBound = true);
|
|
13638
|
-
$$invalidate(3, ctx = getContext(name));
|
|
13639
|
-
ctx.notify({
|
|
13640
|
-
type: "bind",
|
|
13641
|
-
value,
|
|
13642
|
-
label
|
|
13643
|
-
});
|
|
13644
|
-
}
|
|
13645
|
-
});
|
|
13646
|
-
})();
|
|
13647
|
-
}
|
|
13648
|
-
}
|
|
13649
|
-
};
|
|
13650
|
-
|
|
13651
|
-
return [value, label, name, ctx, isBound];
|
|
13652
|
-
}
|
|
13653
|
-
|
|
13654
|
-
class RadioItem extends SvelteElement {
|
|
13655
|
-
constructor(options) {
|
|
13656
|
-
super();
|
|
13657
|
-
init(this, {
|
|
13658
|
-
target: this.shadowRoot,
|
|
13659
|
-
props: attribute_to_object(this.attributes),
|
|
13660
|
-
customElement: true
|
|
13661
|
-
}, instance$6, create_fragment$8, safe_not_equal, {
|
|
13662
|
-
value: 0,
|
|
13663
|
-
label: 1,
|
|
13664
|
-
name: 2
|
|
13665
|
-
}, null);
|
|
13666
|
-
|
|
13667
|
-
if (options) {
|
|
13668
|
-
if (options.target) {
|
|
13669
|
-
insert(options.target, this, options.anchor);
|
|
13670
|
-
}
|
|
13671
|
-
|
|
13672
|
-
if (options.props) {
|
|
13673
|
-
this.$set(options.props);
|
|
13674
|
-
flush();
|
|
13675
|
-
}
|
|
13676
|
-
}
|
|
13677
|
-
}
|
|
13678
|
-
|
|
13679
|
-
static get observedAttributes() {
|
|
13680
|
-
return ["value", "label", "name"];
|
|
13681
|
-
}
|
|
13682
|
-
|
|
13683
|
-
get value() {
|
|
13684
|
-
return this.$$.ctx[0];
|
|
13685
|
-
}
|
|
13686
|
-
|
|
13687
|
-
set value(value) {
|
|
13688
|
-
this.$$set({
|
|
13689
|
-
value
|
|
13690
|
-
});
|
|
13691
|
-
flush();
|
|
13692
|
-
}
|
|
13693
|
-
|
|
13694
|
-
get label() {
|
|
13695
|
-
return this.$$.ctx[1];
|
|
13696
|
-
}
|
|
13697
|
-
|
|
13698
|
-
set label(label) {
|
|
13699
|
-
this.$$set({
|
|
13700
|
-
label
|
|
13701
|
-
});
|
|
13702
|
-
flush();
|
|
13703
|
-
}
|
|
13704
|
-
|
|
13705
|
-
get name() {
|
|
13706
|
-
return this.$$.ctx[2];
|
|
13707
|
-
}
|
|
13708
|
-
|
|
13709
|
-
set name(name) {
|
|
13710
|
-
this.$$set({
|
|
13711
|
-
name
|
|
13712
|
-
});
|
|
13713
|
-
flush();
|
|
13714
|
-
}
|
|
13715
|
-
|
|
13716
|
-
}
|
|
13717
|
-
|
|
13718
|
-
customElements.define("goa-radio-item", RadioItem);
|
|
13719
13509
|
/* libs/web-components/src/components/scrollable/Scrollable.svelte generated by Svelte v3.51.0 */
|
|
13720
13510
|
|
|
13721
|
-
function create_fragment$
|
|
13511
|
+
function create_fragment$8(ctx) {
|
|
13722
13512
|
let div;
|
|
13723
13513
|
let slot;
|
|
13724
13514
|
let div_style_value;
|
|
@@ -13786,7 +13576,7 @@
|
|
|
13786
13576
|
};
|
|
13787
13577
|
}
|
|
13788
13578
|
|
|
13789
|
-
function instance$
|
|
13579
|
+
function instance$6($$self, $$props, $$invalidate) {
|
|
13790
13580
|
let {
|
|
13791
13581
|
direction = "vertical"
|
|
13792
13582
|
} = $$props;
|
|
@@ -13818,7 +13608,7 @@
|
|
|
13818
13608
|
target: this.shadowRoot,
|
|
13819
13609
|
props: attribute_to_object(this.attributes),
|
|
13820
13610
|
customElement: true
|
|
13821
|
-
}, instance$
|
|
13611
|
+
}, instance$6, create_fragment$8, safe_not_equal, {
|
|
13822
13612
|
direction: 0,
|
|
13823
13613
|
hpadding: 1,
|
|
13824
13614
|
vpadding: 2,
|
|
@@ -14346,7 +14136,7 @@
|
|
|
14346
14136
|
};
|
|
14347
14137
|
}
|
|
14348
14138
|
|
|
14349
|
-
function create_fragment$
|
|
14139
|
+
function create_fragment$7(ctx) {
|
|
14350
14140
|
let div;
|
|
14351
14141
|
let current_block_type_index;
|
|
14352
14142
|
let if_block;
|
|
@@ -14462,7 +14252,7 @@
|
|
|
14462
14252
|
};
|
|
14463
14253
|
}
|
|
14464
14254
|
|
|
14465
|
-
function instance$
|
|
14255
|
+
function instance$5($$self, $$props, $$invalidate) {
|
|
14466
14256
|
const [Types, validateType] = typeValidator("Skeleton type", ["image", "text", "title", "text-small", "avatar", "header", "paragraph", "thumbnail", "card", "profile", "lines"], true);
|
|
14467
14257
|
const [Sizes, validateSize] = typeValidator("Skeleton size", ["1", "2", "3", "4"]);
|
|
14468
14258
|
let {
|
|
@@ -14520,7 +14310,7 @@
|
|
|
14520
14310
|
target: this.shadowRoot,
|
|
14521
14311
|
props: attribute_to_object(this.attributes),
|
|
14522
14312
|
customElement: true
|
|
14523
|
-
}, instance$
|
|
14313
|
+
}, instance$5, create_fragment$7, safe_not_equal, {
|
|
14524
14314
|
maxwidth: 0,
|
|
14525
14315
|
size: 1,
|
|
14526
14316
|
linecount: 2,
|
|
@@ -14652,7 +14442,7 @@
|
|
|
14652
14442
|
customElements.define("goa-skeleton", Skeleton);
|
|
14653
14443
|
/* libs/web-components/src/components/spacer/Spacer.svelte generated by Svelte v3.51.0 */
|
|
14654
14444
|
|
|
14655
|
-
function create_fragment$
|
|
14445
|
+
function create_fragment$6(ctx) {
|
|
14656
14446
|
let div;
|
|
14657
14447
|
return {
|
|
14658
14448
|
c() {
|
|
@@ -14681,7 +14471,7 @@
|
|
|
14681
14471
|
};
|
|
14682
14472
|
}
|
|
14683
14473
|
|
|
14684
|
-
function instance$
|
|
14474
|
+
function instance$4($$self, $$props, $$invalidate) {
|
|
14685
14475
|
let {
|
|
14686
14476
|
hspacing = "none"
|
|
14687
14477
|
} = $$props;
|
|
@@ -14718,7 +14508,7 @@
|
|
|
14718
14508
|
target: this.shadowRoot,
|
|
14719
14509
|
props: attribute_to_object(this.attributes),
|
|
14720
14510
|
customElement: true
|
|
14721
|
-
}, instance$
|
|
14511
|
+
}, instance$4, create_fragment$6, safe_not_equal, {
|
|
14722
14512
|
hspacing: 1,
|
|
14723
14513
|
vspacing: 2
|
|
14724
14514
|
}, null);
|
|
@@ -14750,21 +14540,85 @@
|
|
|
14750
14540
|
flush();
|
|
14751
14541
|
}
|
|
14752
14542
|
|
|
14753
|
-
get vspacing() {
|
|
14754
|
-
return this.$$.ctx[2];
|
|
14755
|
-
}
|
|
14543
|
+
get vspacing() {
|
|
14544
|
+
return this.$$.ctx[2];
|
|
14545
|
+
}
|
|
14546
|
+
|
|
14547
|
+
set vspacing(vspacing) {
|
|
14548
|
+
this.$$set({
|
|
14549
|
+
vspacing
|
|
14550
|
+
});
|
|
14551
|
+
flush();
|
|
14552
|
+
}
|
|
14553
|
+
|
|
14554
|
+
}
|
|
14555
|
+
|
|
14556
|
+
customElements.define("goa-spacer", Spacer);
|
|
14557
|
+
const subscriber_queue = [];
|
|
14558
|
+
/**
|
|
14559
|
+
* Create a `Writable` store that allows both updating and reading by subscription.
|
|
14560
|
+
* @param {*=}value initial value
|
|
14561
|
+
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
|
14562
|
+
*/
|
|
14563
|
+
|
|
14564
|
+
function writable(value, start = noop) {
|
|
14565
|
+
let stop;
|
|
14566
|
+
const subscribers = new Set();
|
|
14567
|
+
|
|
14568
|
+
function set(new_value) {
|
|
14569
|
+
if (safe_not_equal(value, new_value)) {
|
|
14570
|
+
value = new_value;
|
|
14571
|
+
|
|
14572
|
+
if (stop) {
|
|
14573
|
+
// store is ready
|
|
14574
|
+
const run_queue = !subscriber_queue.length;
|
|
14575
|
+
|
|
14576
|
+
for (const subscriber of subscribers) {
|
|
14577
|
+
subscriber[1]();
|
|
14578
|
+
subscriber_queue.push(subscriber, value);
|
|
14579
|
+
}
|
|
14580
|
+
|
|
14581
|
+
if (run_queue) {
|
|
14582
|
+
for (let i = 0; i < subscriber_queue.length; i += 2) {
|
|
14583
|
+
subscriber_queue[i][0](subscriber_queue[i + 1]);
|
|
14584
|
+
}
|
|
14585
|
+
|
|
14586
|
+
subscriber_queue.length = 0;
|
|
14587
|
+
}
|
|
14588
|
+
}
|
|
14589
|
+
}
|
|
14590
|
+
}
|
|
14591
|
+
|
|
14592
|
+
function update(fn) {
|
|
14593
|
+
set(fn(value));
|
|
14594
|
+
}
|
|
14595
|
+
|
|
14596
|
+
function subscribe(run, invalidate = noop) {
|
|
14597
|
+
const subscriber = [run, invalidate];
|
|
14598
|
+
subscribers.add(subscriber);
|
|
14599
|
+
|
|
14600
|
+
if (subscribers.size === 1) {
|
|
14601
|
+
stop = start(set) || noop;
|
|
14602
|
+
}
|
|
14603
|
+
|
|
14604
|
+
run(value);
|
|
14605
|
+
return () => {
|
|
14606
|
+
subscribers.delete(subscriber);
|
|
14756
14607
|
|
|
14757
|
-
|
|
14758
|
-
|
|
14759
|
-
|
|
14760
|
-
|
|
14761
|
-
|
|
14608
|
+
if (subscribers.size === 0) {
|
|
14609
|
+
stop();
|
|
14610
|
+
stop = null;
|
|
14611
|
+
}
|
|
14612
|
+
};
|
|
14762
14613
|
}
|
|
14763
14614
|
|
|
14615
|
+
return {
|
|
14616
|
+
set,
|
|
14617
|
+
update,
|
|
14618
|
+
subscribe
|
|
14619
|
+
};
|
|
14764
14620
|
}
|
|
14765
14621
|
|
|
14766
|
-
customElements.define("goa-spacer", Spacer);
|
|
14767
|
-
|
|
14768
14622
|
function is_date(obj) {
|
|
14769
14623
|
return Object.prototype.toString.call(obj) === '[object Date]';
|
|
14770
14624
|
}
|
|
@@ -15076,7 +14930,7 @@
|
|
|
15076
14930
|
};
|
|
15077
14931
|
}
|
|
15078
14932
|
|
|
15079
|
-
function create_fragment$
|
|
14933
|
+
function create_fragment$5(ctx) {
|
|
15080
14934
|
let if_block_anchor;
|
|
15081
14935
|
let if_block =
|
|
15082
14936
|
/*ready*/
|
|
@@ -15121,7 +14975,7 @@
|
|
|
15121
14975
|
};
|
|
15122
14976
|
}
|
|
15123
14977
|
|
|
15124
|
-
function instance$
|
|
14978
|
+
function instance$3($$self, $$props, $$invalidate) {
|
|
15125
14979
|
let diameter;
|
|
15126
14980
|
let strokewidth;
|
|
15127
14981
|
let radius;
|
|
@@ -15252,7 +15106,7 @@
|
|
|
15252
15106
|
target: this.shadowRoot,
|
|
15253
15107
|
props: attribute_to_object(this.attributes),
|
|
15254
15108
|
customElement: true
|
|
15255
|
-
}, instance$
|
|
15109
|
+
}, instance$3, create_fragment$5, safe_not_equal, {
|
|
15256
15110
|
size: 10,
|
|
15257
15111
|
invert: 0,
|
|
15258
15112
|
progress: 11,
|
|
@@ -15322,6 +15176,261 @@
|
|
|
15322
15176
|
}
|
|
15323
15177
|
|
|
15324
15178
|
customElements.define("goa-spinner", Spinner);
|
|
15179
|
+
/* libs/web-components/src/components/table/Table.svelte generated by Svelte v3.51.0 */
|
|
15180
|
+
|
|
15181
|
+
function create_fragment$4(ctx) {
|
|
15182
|
+
let table;
|
|
15183
|
+
let slot;
|
|
15184
|
+
let t0;
|
|
15185
|
+
let template;
|
|
15186
|
+
let table_style_value;
|
|
15187
|
+
return {
|
|
15188
|
+
c() {
|
|
15189
|
+
table = element("table");
|
|
15190
|
+
slot = element("slot");
|
|
15191
|
+
t0 = space();
|
|
15192
|
+
template = element("template");
|
|
15193
|
+
template.innerHTML = `<thead><tr><th></th></tr></thead>
|
|
15194
|
+
<tbody><tr><td></td></tr></tbody>
|
|
15195
|
+
<tfoot><tr><td></td></tr></tfoot>`;
|
|
15196
|
+
this.c = noop;
|
|
15197
|
+
attr(table, "style", table_style_value = `
|
|
15198
|
+
width: ${
|
|
15199
|
+
/*width*/
|
|
15200
|
+
ctx[0]};
|
|
15201
|
+
${calculateMargin(
|
|
15202
|
+
/*mt*/
|
|
15203
|
+
ctx[1],
|
|
15204
|
+
/*mr*/
|
|
15205
|
+
ctx[2],
|
|
15206
|
+
/*mb*/
|
|
15207
|
+
ctx[3],
|
|
15208
|
+
/*ml*/
|
|
15209
|
+
ctx[4])}
|
|
15210
|
+
`);
|
|
15211
|
+
toggle_class(table, "sticky",
|
|
15212
|
+
/*_stickyHeader*/
|
|
15213
|
+
ctx[6]);
|
|
15214
|
+
},
|
|
15215
|
+
|
|
15216
|
+
m(target, anchor) {
|
|
15217
|
+
insert(target, table, anchor);
|
|
15218
|
+
append(table, slot);
|
|
15219
|
+
append(table, t0);
|
|
15220
|
+
append(table, template);
|
|
15221
|
+
/*table_binding*/
|
|
15222
|
+
|
|
15223
|
+
ctx[8](table);
|
|
15224
|
+
},
|
|
15225
|
+
|
|
15226
|
+
p(ctx, [dirty]) {
|
|
15227
|
+
if (dirty &
|
|
15228
|
+
/*width, mt, mr, mb, ml*/
|
|
15229
|
+
31 && table_style_value !== (table_style_value = `
|
|
15230
|
+
width: ${
|
|
15231
|
+
/*width*/
|
|
15232
|
+
ctx[0]};
|
|
15233
|
+
${calculateMargin(
|
|
15234
|
+
/*mt*/
|
|
15235
|
+
ctx[1],
|
|
15236
|
+
/*mr*/
|
|
15237
|
+
ctx[2],
|
|
15238
|
+
/*mb*/
|
|
15239
|
+
ctx[3],
|
|
15240
|
+
/*ml*/
|
|
15241
|
+
ctx[4])}
|
|
15242
|
+
`)) {
|
|
15243
|
+
attr(table, "style", table_style_value);
|
|
15244
|
+
}
|
|
15245
|
+
|
|
15246
|
+
if (dirty &
|
|
15247
|
+
/*_stickyHeader*/
|
|
15248
|
+
64) {
|
|
15249
|
+
toggle_class(table, "sticky",
|
|
15250
|
+
/*_stickyHeader*/
|
|
15251
|
+
ctx[6]);
|
|
15252
|
+
}
|
|
15253
|
+
},
|
|
15254
|
+
|
|
15255
|
+
i: noop,
|
|
15256
|
+
o: noop,
|
|
15257
|
+
|
|
15258
|
+
d(detaching) {
|
|
15259
|
+
if (detaching) detach(table);
|
|
15260
|
+
/*table_binding*/
|
|
15261
|
+
|
|
15262
|
+
ctx[8](null);
|
|
15263
|
+
}
|
|
15264
|
+
|
|
15265
|
+
};
|
|
15266
|
+
}
|
|
15267
|
+
|
|
15268
|
+
function instance$2($$self, $$props, $$invalidate) {
|
|
15269
|
+
let _stickyHeader;
|
|
15270
|
+
|
|
15271
|
+
let {
|
|
15272
|
+
width = ""
|
|
15273
|
+
} = $$props;
|
|
15274
|
+
let {
|
|
15275
|
+
stickyheader = "false"
|
|
15276
|
+
} = $$props;
|
|
15277
|
+
let {
|
|
15278
|
+
mt = null
|
|
15279
|
+
} = $$props;
|
|
15280
|
+
let {
|
|
15281
|
+
mr = null
|
|
15282
|
+
} = $$props;
|
|
15283
|
+
let {
|
|
15284
|
+
mb = null
|
|
15285
|
+
} = $$props;
|
|
15286
|
+
let {
|
|
15287
|
+
ml = null
|
|
15288
|
+
} = $$props; // Private
|
|
15289
|
+
|
|
15290
|
+
let _rootEl;
|
|
15291
|
+
|
|
15292
|
+
onMount(() => {
|
|
15293
|
+
const slot = _rootEl.querySelector("slot");
|
|
15294
|
+
|
|
15295
|
+
if (slot) {
|
|
15296
|
+
// React needs to nest data in a <table>...</table>
|
|
15297
|
+
const content = slot.assignedElements()[0].querySelectorAll("template table > *");
|
|
15298
|
+
|
|
15299
|
+
_rootEl.append(...(content.length > 0 ? content : slot.assignedElements()));
|
|
15300
|
+
} else {
|
|
15301
|
+
return [..._rootEl.children];
|
|
15302
|
+
}
|
|
15303
|
+
});
|
|
15304
|
+
|
|
15305
|
+
function table_binding($$value) {
|
|
15306
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
15307
|
+
_rootEl = $$value;
|
|
15308
|
+
$$invalidate(5, _rootEl);
|
|
15309
|
+
});
|
|
15310
|
+
}
|
|
15311
|
+
|
|
15312
|
+
$$self.$$set = $$props => {
|
|
15313
|
+
if ('width' in $$props) $$invalidate(0, width = $$props.width);
|
|
15314
|
+
if ('stickyheader' in $$props) $$invalidate(7, stickyheader = $$props.stickyheader);
|
|
15315
|
+
if ('mt' in $$props) $$invalidate(1, mt = $$props.mt);
|
|
15316
|
+
if ('mr' in $$props) $$invalidate(2, mr = $$props.mr);
|
|
15317
|
+
if ('mb' in $$props) $$invalidate(3, mb = $$props.mb);
|
|
15318
|
+
if ('ml' in $$props) $$invalidate(4, ml = $$props.ml);
|
|
15319
|
+
};
|
|
15320
|
+
|
|
15321
|
+
$$self.$$.update = () => {
|
|
15322
|
+
if ($$self.$$.dirty &
|
|
15323
|
+
/*stickyheader*/
|
|
15324
|
+
128) {
|
|
15325
|
+
$$invalidate(6, _stickyHeader = toBoolean(stickyheader));
|
|
15326
|
+
}
|
|
15327
|
+
};
|
|
15328
|
+
|
|
15329
|
+
return [width, mt, mr, mb, ml, _rootEl, _stickyHeader, stickyheader, table_binding];
|
|
15330
|
+
}
|
|
15331
|
+
|
|
15332
|
+
class Table extends SvelteElement {
|
|
15333
|
+
constructor(options) {
|
|
15334
|
+
super();
|
|
15335
|
+
this.shadowRoot.innerHTML = `<style>table{border-collapse:collapse}table.sticky{position:relative}table.sticky thead{position:sticky;top:0}td{padding:1rem 1.5rem;border-bottom:1px solid var(--color-gray-200);line-height:1rem}th{background-color:var(--color-white);color:var(--goa-color-text-secondary);padding:1rem;vertical-align:middle;text-align:left;border-bottom:2px solid var(--color-gray-600)}tfoot td{background-color:var(--color-gray-100)}tfoot tr:first-child td{border-top:2px solid var(--color-gray-200)}tfoot tr:last-child td{border-bottom:none}</style>`;
|
|
15336
|
+
init(this, {
|
|
15337
|
+
target: this.shadowRoot,
|
|
15338
|
+
props: attribute_to_object(this.attributes),
|
|
15339
|
+
customElement: true
|
|
15340
|
+
}, instance$2, create_fragment$4, safe_not_equal, {
|
|
15341
|
+
width: 0,
|
|
15342
|
+
stickyheader: 7,
|
|
15343
|
+
mt: 1,
|
|
15344
|
+
mr: 2,
|
|
15345
|
+
mb: 3,
|
|
15346
|
+
ml: 4
|
|
15347
|
+
}, null);
|
|
15348
|
+
|
|
15349
|
+
if (options) {
|
|
15350
|
+
if (options.target) {
|
|
15351
|
+
insert(options.target, this, options.anchor);
|
|
15352
|
+
}
|
|
15353
|
+
|
|
15354
|
+
if (options.props) {
|
|
15355
|
+
this.$set(options.props);
|
|
15356
|
+
flush();
|
|
15357
|
+
}
|
|
15358
|
+
}
|
|
15359
|
+
}
|
|
15360
|
+
|
|
15361
|
+
static get observedAttributes() {
|
|
15362
|
+
return ["width", "stickyheader", "mt", "mr", "mb", "ml"];
|
|
15363
|
+
}
|
|
15364
|
+
|
|
15365
|
+
get width() {
|
|
15366
|
+
return this.$$.ctx[0];
|
|
15367
|
+
}
|
|
15368
|
+
|
|
15369
|
+
set width(width) {
|
|
15370
|
+
this.$$set({
|
|
15371
|
+
width
|
|
15372
|
+
});
|
|
15373
|
+
flush();
|
|
15374
|
+
}
|
|
15375
|
+
|
|
15376
|
+
get stickyheader() {
|
|
15377
|
+
return this.$$.ctx[7];
|
|
15378
|
+
}
|
|
15379
|
+
|
|
15380
|
+
set stickyheader(stickyheader) {
|
|
15381
|
+
this.$$set({
|
|
15382
|
+
stickyheader
|
|
15383
|
+
});
|
|
15384
|
+
flush();
|
|
15385
|
+
}
|
|
15386
|
+
|
|
15387
|
+
get mt() {
|
|
15388
|
+
return this.$$.ctx[1];
|
|
15389
|
+
}
|
|
15390
|
+
|
|
15391
|
+
set mt(mt) {
|
|
15392
|
+
this.$$set({
|
|
15393
|
+
mt
|
|
15394
|
+
});
|
|
15395
|
+
flush();
|
|
15396
|
+
}
|
|
15397
|
+
|
|
15398
|
+
get mr() {
|
|
15399
|
+
return this.$$.ctx[2];
|
|
15400
|
+
}
|
|
15401
|
+
|
|
15402
|
+
set mr(mr) {
|
|
15403
|
+
this.$$set({
|
|
15404
|
+
mr
|
|
15405
|
+
});
|
|
15406
|
+
flush();
|
|
15407
|
+
}
|
|
15408
|
+
|
|
15409
|
+
get mb() {
|
|
15410
|
+
return this.$$.ctx[3];
|
|
15411
|
+
}
|
|
15412
|
+
|
|
15413
|
+
set mb(mb) {
|
|
15414
|
+
this.$$set({
|
|
15415
|
+
mb
|
|
15416
|
+
});
|
|
15417
|
+
flush();
|
|
15418
|
+
}
|
|
15419
|
+
|
|
15420
|
+
get ml() {
|
|
15421
|
+
return this.$$.ctx[4];
|
|
15422
|
+
}
|
|
15423
|
+
|
|
15424
|
+
set ml(ml) {
|
|
15425
|
+
this.$$set({
|
|
15426
|
+
ml
|
|
15427
|
+
});
|
|
15428
|
+
flush();
|
|
15429
|
+
}
|
|
15430
|
+
|
|
15431
|
+
}
|
|
15432
|
+
|
|
15433
|
+
customElements.define("goa-table", Table);
|
|
15325
15434
|
/* libs/web-components/src/components/text-area/TextArea.svelte generated by Svelte v3.51.0 */
|
|
15326
15435
|
|
|
15327
15436
|
function create_fragment$3(ctx) {
|
|
@@ -16502,16 +16611,17 @@
|
|
|
16502
16611
|
}, void 0);
|
|
16503
16612
|
}
|
|
16504
16613
|
|
|
16505
|
-
|
|
16506
|
-
|
|
16507
|
-
"
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
|
|
16512
|
-
|
|
16513
|
-
|
|
16514
|
-
|
|
16614
|
+
function stringify(value) {
|
|
16615
|
+
if (typeof value === "undefined") {
|
|
16616
|
+
return "";
|
|
16617
|
+
}
|
|
16618
|
+
|
|
16619
|
+
if (typeof value === "string") {
|
|
16620
|
+
return value;
|
|
16621
|
+
}
|
|
16622
|
+
|
|
16623
|
+
return JSON.stringify(value);
|
|
16624
|
+
}
|
|
16515
16625
|
|
|
16516
16626
|
var GoADropdown = function GoADropdown(props) {
|
|
16517
16627
|
var el = react.useRef(null);
|
|
@@ -16538,7 +16648,7 @@
|
|
|
16538
16648
|
return jsxRuntime.jsx("goa-dropdown", __assign({
|
|
16539
16649
|
ref: el,
|
|
16540
16650
|
name: props.name,
|
|
16541
|
-
value:
|
|
16651
|
+
value: stringify(props.value),
|
|
16542
16652
|
arialabel: props.ariaLabel,
|
|
16543
16653
|
disabled: props.disabled,
|
|
16544
16654
|
error: props.error,
|
|
@@ -16559,6 +16669,25 @@
|
|
|
16559
16669
|
}), void 0);
|
|
16560
16670
|
};
|
|
16561
16671
|
|
|
16672
|
+
function GoADropdownOption(props) {
|
|
16673
|
+
react.useEffect(function () {
|
|
16674
|
+
console.warn("GoADropdownOption is deprecated. Please use GoADropdownItem");
|
|
16675
|
+
}, []);
|
|
16676
|
+
return jsxRuntime.jsx(GoADropdownItem, __assign({}, props), void 0);
|
|
16677
|
+
}
|
|
16678
|
+
function GoADropdownItem(_a) {
|
|
16679
|
+
var value = _a.value,
|
|
16680
|
+
label = _a.label,
|
|
16681
|
+
name = _a.name,
|
|
16682
|
+
testId = _a.testId;
|
|
16683
|
+
return jsxRuntime.jsx("goa-dropdown-item", {
|
|
16684
|
+
"data-testid": testId,
|
|
16685
|
+
value: value,
|
|
16686
|
+
label: label,
|
|
16687
|
+
name: name
|
|
16688
|
+
}, void 0);
|
|
16689
|
+
}
|
|
16690
|
+
|
|
16562
16691
|
function GoAAppFooterMetaSection(_a) {
|
|
16563
16692
|
var children = _a.children;
|
|
16564
16693
|
return jsxRuntime.jsx("goa-app-footer-meta-section", __assign({
|
|
@@ -17191,6 +17320,19 @@
|
|
|
17191
17320
|
}, void 0);
|
|
17192
17321
|
};
|
|
17193
17322
|
|
|
17323
|
+
function GoATable(props) {
|
|
17324
|
+
return jsxRuntime.jsx("goa-table", __assign({
|
|
17325
|
+
width: props.width,
|
|
17326
|
+
stickyheader: false
|
|
17327
|
+
}, {
|
|
17328
|
+
children: jsxRuntime.jsx("template", {
|
|
17329
|
+
children: jsxRuntime.jsx("table", {
|
|
17330
|
+
children: props.children
|
|
17331
|
+
}, void 0)
|
|
17332
|
+
}, void 0)
|
|
17333
|
+
}), void 0);
|
|
17334
|
+
}
|
|
17335
|
+
|
|
17194
17336
|
var GoATextArea = function GoATextArea(_a) {
|
|
17195
17337
|
var name = _a.name,
|
|
17196
17338
|
value = _a.value,
|
|
@@ -17284,6 +17426,7 @@
|
|
|
17284
17426
|
exports.GoAContainer = GoAContainer;
|
|
17285
17427
|
exports.GoADivider = GoADivider;
|
|
17286
17428
|
exports.GoADropdown = GoADropdown;
|
|
17429
|
+
exports.GoADropdownItem = GoADropdownItem;
|
|
17287
17430
|
exports.GoADropdownOption = GoADropdownOption;
|
|
17288
17431
|
exports.GoAEmergencyBadge = GoAEmergencyBadge;
|
|
17289
17432
|
exports.GoAFormItem = GoAFormItem;
|
|
@@ -17319,6 +17462,7 @@
|
|
|
17319
17462
|
exports.GoASpacer = GoASpacer;
|
|
17320
17463
|
exports.GoASpinner = GoASpinner;
|
|
17321
17464
|
exports.GoASuccessBadge = GoASuccessBadge;
|
|
17465
|
+
exports.GoATable = GoATable;
|
|
17322
17466
|
exports.GoATextArea = GoATextArea;
|
|
17323
17467
|
exports.GoATwoColumnLayout = GoATwoColumnLayout;
|
|
17324
17468
|
|