@abgov/react-components 4.0.0-alpha.33 → 4.0.0-alpha.36
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/experimental/package.json +2 -1
- package/index.d.ts +2 -2
- package/lib/badge/badge.d.ts +4 -5
- package/lib/button/button.d.ts +1 -1
- package/lib/input/input.d.ts +18 -17
- package/lib/microsite-header/microsite-header.d.ts +2 -2
- package/package.json +5 -3
- package/react-components.esm.js +268 -134
- package/react-components.umd.js +263 -139
package/react-components.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactComponents = {}, global.jsxRuntime, global.React));
|
|
5
|
-
})(this, (function (exports, jsxRuntime, react) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react'), require('date-fns')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react', 'date-fns'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactComponents = {}, global.jsxRuntime, global.React, global.dateFns));
|
|
5
|
+
})(this, (function (exports, jsxRuntime, react, dateFns) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _await(value, then, direct) {
|
|
8
8
|
if (direct) {
|
|
@@ -1509,7 +1509,7 @@
|
|
|
1509
1509
|
}
|
|
1510
1510
|
|
|
1511
1511
|
};
|
|
1512
|
-
} // (
|
|
1512
|
+
} // (40:2) {#if showIcon}
|
|
1513
1513
|
|
|
1514
1514
|
|
|
1515
1515
|
function create_if_block_1$b(ctx) {
|
|
@@ -1542,7 +1542,7 @@
|
|
|
1542
1542
|
}
|
|
1543
1543
|
|
|
1544
1544
|
};
|
|
1545
|
-
} // (
|
|
1545
|
+
} // (45:2) {#if content}
|
|
1546
1546
|
|
|
1547
1547
|
|
|
1548
1548
|
function create_if_block$i(ctx) {
|
|
@@ -1730,10 +1730,9 @@
|
|
|
1730
1730
|
1) {
|
|
1731
1731
|
$$invalidate(4, iconType = {
|
|
1732
1732
|
success: "checkmark-circle",
|
|
1733
|
-
|
|
1733
|
+
important: "alert-circle",
|
|
1734
1734
|
information: "information-circle",
|
|
1735
1735
|
emergency: "warning",
|
|
1736
|
-
inactive: "information-circle",
|
|
1737
1736
|
dark: "information-circle",
|
|
1738
1737
|
midtone: "information-circle",
|
|
1739
1738
|
light: "information-circle"
|
|
@@ -1747,7 +1746,7 @@
|
|
|
1747
1746
|
class Badge extends SvelteElement {
|
|
1748
1747
|
constructor(options) {
|
|
1749
1748
|
super();
|
|
1750
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-badge{display:inline-flex;align-items:center;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--fw-regular);margin:0.25rem}.icon-only{padding:0.25rem}.goa-badge-content{text-transform:capitalize;font-size:var(--fs-sm);line-height:var(--lh-sm);padding-bottom:var(--font-valign-fix)}.goa-badge.badge-information{background-color:var(--color-gray-100);color:var(--goa-color-status-info)}.goa-badge.badge-success{background-color:var(--goa-color-status-success);color:var(--goa-color-text-light)}.goa-badge.badge-
|
|
1749
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-badge{display:inline-flex;align-items:center;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--fw-regular);margin:0.25rem}.icon-only{padding:0.25rem}.goa-badge-content{text-transform:capitalize;font-size:var(--fs-sm);line-height:var(--lh-sm);padding-bottom:var(--font-valign-fix)}.goa-badge.badge-information{background-color:var(--color-gray-100);color:var(--goa-color-status-info)}.goa-badge.badge-success{background-color:var(--goa-color-status-success);color:var(--goa-color-text-light)}.goa-badge.badge-important{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.goa-badge.badge-emergency{background-color:var(--goa-color-status-emergency);color:var(--goa-color-text-light)}.goa-badge.badge-dark{background-color:var(--color-black);color:var(--goa-color-text-light)}.goa-badge.badge-midtone{background-color:var(--color-gray-600);color:var(--goa-color-text-light)}.goa-badge.badge-light{background-color:var(--color-white);color:var(--goa-color-text)}</style>`;
|
|
1751
1750
|
init(this, {
|
|
1752
1751
|
target: this.shadowRoot,
|
|
1753
1752
|
props: attribute_to_object(this.attributes),
|
|
@@ -2172,7 +2171,7 @@
|
|
|
2172
2171
|
let isButtonDark;
|
|
2173
2172
|
const BUTTON_TYPES = ["primary", "secondary", "tertiary", "start"];
|
|
2174
2173
|
const SIZES = ["", "compact"];
|
|
2175
|
-
const VARIANTS = ["", "
|
|
2174
|
+
const VARIANTS = ["", "destructive"]; // type check functions
|
|
2176
2175
|
|
|
2177
2176
|
function isButtonType(value) {
|
|
2178
2177
|
return BUTTON_TYPES.includes(value);
|
|
@@ -2256,7 +2255,7 @@
|
|
|
2256
2255
|
constructor(options) {
|
|
2257
2256
|
super();
|
|
2258
2257
|
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}@media(max-width: 480px){:host{width:100%}button{width:100%}}button{display:inline-flex;box-sizing:border-box;border-radius:0.25rem;border:2px solid var(--goa-color-interactive);box-sizing:border-box;cursor:pointer;font-family:var(--font-family);font-size:var(--fs-lg);font-weight:400;height:var(--button-height);letter-spacing:0.5px;line-height:100%;padding:0 0.75rem;gap:0.5rem;align-items:center;justify-content:center;transition:transform 0.1s ease-in-out, background-color 0.2s ease-in-out,
|
|
2259
|
-
border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--fs-base)}button.start{height:var(--button-height-tall);font-weight:var(--fw-bold)}button.start,button.primary{border:2px solid var(--goa-color-interactive);background:var(--goa-color-interactive);color:var(--goa-color-text-light)}button.start:hover,button.primary:hover{border-color:var(--goa-color-interactive--hover);background:var(--goa-color-interactive--hover)}button.start:focus,button.start:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive--focus);border-color:var(--goa-color-interactive--active);background:var(--goa-color-interactive--active);outline:none}button.secondary{border:2px solid var(--goa-color-interactive);background:var(--color-white);color:var(--goa-color-interactive)}button.secondary:hover{border-color:var(--goa-color-interactive--hover);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);background:var(--color-gray-100);outline:none}button.tertiary{border:1px solid transparent;background:transparent;color:var(--goa-color-interactive);text-decoration:underline}button.tertiary:hover{border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--color-gray-100);background:var(--color-gray-100);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.primary.
|
|
2258
|
+
border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--fs-base)}button.start{height:var(--button-height-tall);font-weight:var(--fw-bold)}button.start,button.primary{border:2px solid var(--goa-color-interactive);background:var(--goa-color-interactive);color:var(--goa-color-text-light)}button.start:hover,button.primary:hover{border-color:var(--goa-color-interactive--hover);background:var(--goa-color-interactive--hover)}button.start:focus,button.start:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive--focus);border-color:var(--goa-color-interactive--active);background:var(--goa-color-interactive--active);outline:none}button.secondary{border:2px solid var(--goa-color-interactive);background:var(--color-white);color:var(--goa-color-interactive)}button.secondary:hover{border-color:var(--goa-color-interactive--hover);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);background:var(--color-gray-100);outline:none}button.tertiary{border:1px solid transparent;background:transparent;color:var(--goa-color-interactive);text-decoration:underline}button.tertiary:hover{border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--color-gray-100);background:var(--color-gray-100);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.primary.destructive{color:var(--color-white);background:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency)}.primary.destructive:hover{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.primary.destructive:focus,.primary.destructive:active{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.secondary.destructive{color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);background:var(--color-white)}.secondary.destructive:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.secondary.destructive:focus,.secondary.destructive:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.destructive{color:var(--goa-color-status-emergency);border-color:var(--color-gray-200);background:var(--color-white)}.tertiary.destructive:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.destructive:focus,.tertiary.destructive:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}</style>`;
|
|
2260
2259
|
init(this, {
|
|
2261
2260
|
target: this.shadowRoot,
|
|
2262
2261
|
props: attribute_to_object(this.attributes),
|
|
@@ -6476,7 +6475,7 @@
|
|
|
6476
6475
|
/*variant, isInverted*/
|
|
6477
6476
|
544) {
|
|
6478
6477
|
// private
|
|
6479
|
-
$$invalidate(8, css =
|
|
6478
|
+
$$invalidate(8, css = `${variant} ${isInverted ? "inverted" : ""}`);
|
|
6480
6479
|
}
|
|
6481
6480
|
|
|
6482
6481
|
if ($$self.$$.dirty &
|
|
@@ -6502,7 +6501,7 @@
|
|
|
6502
6501
|
class IconButton extends SvelteElement {
|
|
6503
6502
|
constructor(options) {
|
|
6504
6503
|
super();
|
|
6505
|
-
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--font-family)}
|
|
6504
|
+
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--font-family)}button,button *{box-sizing:border-box}button{display:inline-flex;align-items:center;justify-content:center;background:transparent;cursor:pointer;border:none}.color{border-radius:0.5rem;padding:calc(var(--size) / 4)}.color{border-radius:0.5rem;color:var(--goa-color-interactive);fill:var(--goa-color-interactive);cursor:pointer;transition:background-color 100ms ease-in, transform 100ms ease-in}.color:active,.nocolor:active{transform:scale(0.9);border:none}.color:hover{background-color:var(--goa-color-primary-light)}.color.inverted:hover{background-color:var(--goa-color-primary-dark)}button:disabled{color:var(--color-gray-200);fill:var(--color-gray-200);transform:none;cursor:default}button:disabled:hover{background-color:transparent}</style>`;
|
|
6506
6505
|
init(this, {
|
|
6507
6506
|
target: this.shadowRoot,
|
|
6508
6507
|
props: attribute_to_object(this.attributes),
|
|
@@ -6658,7 +6657,7 @@
|
|
|
6658
6657
|
}
|
|
6659
6658
|
|
|
6660
6659
|
};
|
|
6661
|
-
} // (
|
|
6660
|
+
} // (102:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
6662
6661
|
|
|
6663
6662
|
|
|
6664
6663
|
function create_if_block_4$1(ctx) {
|
|
@@ -6693,7 +6692,7 @@
|
|
|
6693
6692
|
}
|
|
6694
6693
|
|
|
6695
6694
|
};
|
|
6696
|
-
} // (
|
|
6695
|
+
} // (112:4) {#if trailingicon && handlesTrailingIconClick}
|
|
6697
6696
|
|
|
6698
6697
|
|
|
6699
6698
|
function create_if_block_3$3(ctx) {
|
|
@@ -6703,10 +6702,9 @@
|
|
|
6703
6702
|
return {
|
|
6704
6703
|
c() {
|
|
6705
6704
|
goa_icon_button = element("goa-icon-button");
|
|
6706
|
-
set_custom_element_data(goa_icon_button, "class", "goa-input-trailing-icon");
|
|
6707
6705
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
6708
6706
|
/*isDisabled*/
|
|
6709
|
-
ctx[
|
|
6707
|
+
ctx[16]);
|
|
6710
6708
|
set_custom_element_data(goa_icon_button, "variant", "nocolor");
|
|
6711
6709
|
set_custom_element_data(goa_icon_button, "size", "medium");
|
|
6712
6710
|
set_custom_element_data(goa_icon_button, "type",
|
|
@@ -6727,10 +6725,10 @@
|
|
|
6727
6725
|
p(ctx, dirty) {
|
|
6728
6726
|
if (dirty &
|
|
6729
6727
|
/*isDisabled*/
|
|
6730
|
-
|
|
6728
|
+
65536) {
|
|
6731
6729
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
6732
6730
|
/*isDisabled*/
|
|
6733
|
-
ctx[
|
|
6731
|
+
ctx[16]);
|
|
6734
6732
|
}
|
|
6735
6733
|
|
|
6736
6734
|
if (dirty &
|
|
@@ -6749,7 +6747,7 @@
|
|
|
6749
6747
|
}
|
|
6750
6748
|
|
|
6751
6749
|
};
|
|
6752
|
-
} // (
|
|
6750
|
+
} // (125:2) {#if showCounter}
|
|
6753
6751
|
|
|
6754
6752
|
|
|
6755
6753
|
function create_if_block$a(ctx) {
|
|
@@ -6758,7 +6756,7 @@
|
|
|
6758
6756
|
function select_block_type(ctx, dirty) {
|
|
6759
6757
|
if (
|
|
6760
6758
|
/*maxcharcount*/
|
|
6761
|
-
ctx[
|
|
6759
|
+
ctx[13] > 0) return create_if_block_1$6;
|
|
6762
6760
|
if (
|
|
6763
6761
|
/*value*/
|
|
6764
6762
|
ctx[0].length > 0) return create_if_block_2$5;
|
|
@@ -6800,7 +6798,7 @@
|
|
|
6800
6798
|
}
|
|
6801
6799
|
|
|
6802
6800
|
};
|
|
6803
|
-
} // (
|
|
6801
|
+
} // (130:31)
|
|
6804
6802
|
|
|
6805
6803
|
|
|
6806
6804
|
function create_if_block_2$5(ctx) {
|
|
@@ -6834,7 +6832,7 @@
|
|
|
6834
6832
|
}
|
|
6835
6833
|
|
|
6836
6834
|
};
|
|
6837
|
-
} // (
|
|
6835
|
+
} // (126:4) {#if maxcharcount > 0}
|
|
6838
6836
|
|
|
6839
6837
|
|
|
6840
6838
|
function create_if_block_1$6(ctx) {
|
|
@@ -6845,7 +6843,7 @@
|
|
|
6845
6843
|
let t0;
|
|
6846
6844
|
let t1_value = `/${
|
|
6847
6845
|
/*maxcharcount*/
|
|
6848
|
-
ctx[
|
|
6846
|
+
ctx[13]}` + "";
|
|
6849
6847
|
let t1;
|
|
6850
6848
|
return {
|
|
6851
6849
|
c() {
|
|
@@ -6857,7 +6855,7 @@
|
|
|
6857
6855
|
/*value*/
|
|
6858
6856
|
ctx[0].length >
|
|
6859
6857
|
/*maxcharcount*/
|
|
6860
|
-
ctx[
|
|
6858
|
+
ctx[13]);
|
|
6861
6859
|
},
|
|
6862
6860
|
|
|
6863
6861
|
m(target, anchor) {
|
|
@@ -6874,18 +6872,18 @@
|
|
|
6874
6872
|
ctx[0].length + "")) set_data(t0, t0_value);
|
|
6875
6873
|
if (dirty &
|
|
6876
6874
|
/*maxcharcount*/
|
|
6877
|
-
|
|
6875
|
+
8192 && t1_value !== (t1_value = `/${
|
|
6878
6876
|
/*maxcharcount*/
|
|
6879
|
-
ctx[
|
|
6877
|
+
ctx[13]}` + "")) set_data(t1, t1_value);
|
|
6880
6878
|
|
|
6881
6879
|
if (dirty &
|
|
6882
6880
|
/*value, maxcharcount*/
|
|
6883
|
-
|
|
6881
|
+
8193) {
|
|
6884
6882
|
toggle_class(div, "counter-error",
|
|
6885
6883
|
/*value*/
|
|
6886
6884
|
ctx[0].length >
|
|
6887
6885
|
/*maxcharcount*/
|
|
6888
|
-
ctx[
|
|
6886
|
+
ctx[13]);
|
|
6889
6887
|
}
|
|
6890
6888
|
},
|
|
6891
6889
|
|
|
@@ -6918,15 +6916,15 @@
|
|
|
6918
6916
|
/*trailingicon*/
|
|
6919
6917
|
ctx[5] && !
|
|
6920
6918
|
/*handlesTrailingIconClick*/
|
|
6921
|
-
ctx[
|
|
6919
|
+
ctx[19] && create_if_block_4$1(ctx);
|
|
6922
6920
|
let if_block2 =
|
|
6923
6921
|
/*trailingicon*/
|
|
6924
6922
|
ctx[5] &&
|
|
6925
6923
|
/*handlesTrailingIconClick*/
|
|
6926
|
-
ctx[
|
|
6924
|
+
ctx[19] && create_if_block_3$3(ctx);
|
|
6927
6925
|
let if_block3 =
|
|
6928
6926
|
/*showCounter*/
|
|
6929
|
-
ctx[
|
|
6927
|
+
ctx[15] && create_if_block$a(ctx);
|
|
6930
6928
|
return {
|
|
6931
6929
|
c() {
|
|
6932
6930
|
div1 = element("div");
|
|
@@ -6949,10 +6947,10 @@
|
|
|
6949
6947
|
ctx[5] ? "-0.5rem" : "0"}`);
|
|
6950
6948
|
input.readOnly =
|
|
6951
6949
|
/*isReadonly*/
|
|
6952
|
-
ctx[
|
|
6950
|
+
ctx[18];
|
|
6953
6951
|
input.disabled =
|
|
6954
6952
|
/*isDisabled*/
|
|
6955
|
-
ctx[
|
|
6953
|
+
ctx[16];
|
|
6956
6954
|
attr(input, "data-testid",
|
|
6957
6955
|
/*testid*/
|
|
6958
6956
|
ctx[7]);
|
|
@@ -6968,6 +6966,15 @@
|
|
|
6968
6966
|
attr(input, "placeholder",
|
|
6969
6967
|
/*placeholder*/
|
|
6970
6968
|
ctx[3]);
|
|
6969
|
+
attr(input, "min",
|
|
6970
|
+
/*min*/
|
|
6971
|
+
ctx[10]);
|
|
6972
|
+
attr(input, "max",
|
|
6973
|
+
/*max*/
|
|
6974
|
+
ctx[11]);
|
|
6975
|
+
attr(input, "step",
|
|
6976
|
+
/*step*/
|
|
6977
|
+
ctx[12]);
|
|
6971
6978
|
attr(input, "role", "textbox");
|
|
6972
6979
|
attr(input, "aria-label", input_aria_label_value =
|
|
6973
6980
|
/*arialabel*/
|
|
@@ -6978,7 +6985,7 @@
|
|
|
6978
6985
|
goa-input
|
|
6979
6986
|
${
|
|
6980
6987
|
/*isDisabled*/
|
|
6981
|
-
ctx[
|
|
6988
|
+
ctx[16] ? "goa-input--disabled" : ""}
|
|
6982
6989
|
variant--${
|
|
6983
6990
|
/*variant*/
|
|
6984
6991
|
ctx[6]}
|
|
@@ -6988,7 +6995,7 @@
|
|
|
6988
6995
|
`);
|
|
6989
6996
|
toggle_class(div0, "error",
|
|
6990
6997
|
/*isError*/
|
|
6991
|
-
ctx[
|
|
6998
|
+
ctx[17]);
|
|
6992
6999
|
attr(div1, "class", "container");
|
|
6993
7000
|
attr(div1, "style", div1_style_value = `
|
|
6994
7001
|
--width: ${
|
|
@@ -7005,7 +7012,7 @@
|
|
|
7005
7012
|
append(div0, input);
|
|
7006
7013
|
/*input_binding*/
|
|
7007
7014
|
|
|
7008
|
-
ctx[
|
|
7015
|
+
ctx[28](input);
|
|
7009
7016
|
append(div0, t1);
|
|
7010
7017
|
if (if_block1) if_block1.m(div0, null);
|
|
7011
7018
|
append(div0, t2);
|
|
@@ -7016,9 +7023,9 @@
|
|
|
7016
7023
|
if (!mounted) {
|
|
7017
7024
|
dispose = [listen(input, "keyup",
|
|
7018
7025
|
/*onKeyUp*/
|
|
7019
|
-
ctx[
|
|
7026
|
+
ctx[20]), listen(input, "change",
|
|
7020
7027
|
/*onKeyUp*/
|
|
7021
|
-
ctx[
|
|
7028
|
+
ctx[20])];
|
|
7022
7029
|
mounted = true;
|
|
7023
7030
|
}
|
|
7024
7031
|
},
|
|
@@ -7057,18 +7064,18 @@
|
|
|
7057
7064
|
|
|
7058
7065
|
if (dirty &
|
|
7059
7066
|
/*isReadonly*/
|
|
7060
|
-
|
|
7067
|
+
262144) {
|
|
7061
7068
|
input.readOnly =
|
|
7062
7069
|
/*isReadonly*/
|
|
7063
|
-
ctx[
|
|
7070
|
+
ctx[18];
|
|
7064
7071
|
}
|
|
7065
7072
|
|
|
7066
7073
|
if (dirty &
|
|
7067
7074
|
/*isDisabled*/
|
|
7068
|
-
|
|
7075
|
+
65536) {
|
|
7069
7076
|
input.disabled =
|
|
7070
7077
|
/*isDisabled*/
|
|
7071
|
-
ctx[
|
|
7078
|
+
ctx[16];
|
|
7072
7079
|
}
|
|
7073
7080
|
|
|
7074
7081
|
if (dirty &
|
|
@@ -7113,6 +7120,30 @@
|
|
|
7113
7120
|
ctx[3]);
|
|
7114
7121
|
}
|
|
7115
7122
|
|
|
7123
|
+
if (dirty &
|
|
7124
|
+
/*min*/
|
|
7125
|
+
1024) {
|
|
7126
|
+
attr(input, "min",
|
|
7127
|
+
/*min*/
|
|
7128
|
+
ctx[10]);
|
|
7129
|
+
}
|
|
7130
|
+
|
|
7131
|
+
if (dirty &
|
|
7132
|
+
/*max*/
|
|
7133
|
+
2048) {
|
|
7134
|
+
attr(input, "max",
|
|
7135
|
+
/*max*/
|
|
7136
|
+
ctx[11]);
|
|
7137
|
+
}
|
|
7138
|
+
|
|
7139
|
+
if (dirty &
|
|
7140
|
+
/*step*/
|
|
7141
|
+
4096) {
|
|
7142
|
+
attr(input, "step",
|
|
7143
|
+
/*step*/
|
|
7144
|
+
ctx[12]);
|
|
7145
|
+
}
|
|
7146
|
+
|
|
7116
7147
|
if (dirty &
|
|
7117
7148
|
/*arialabel, name*/
|
|
7118
7149
|
516 && input_aria_label_value !== (input_aria_label_value =
|
|
@@ -7127,7 +7158,7 @@
|
|
|
7127
7158
|
/*trailingicon*/
|
|
7128
7159
|
ctx[5] && !
|
|
7129
7160
|
/*handlesTrailingIconClick*/
|
|
7130
|
-
ctx[
|
|
7161
|
+
ctx[19]) {
|
|
7131
7162
|
if (if_block1) {
|
|
7132
7163
|
if_block1.p(ctx, dirty);
|
|
7133
7164
|
} else {
|
|
@@ -7144,7 +7175,7 @@
|
|
|
7144
7175
|
/*trailingicon*/
|
|
7145
7176
|
ctx[5] &&
|
|
7146
7177
|
/*handlesTrailingIconClick*/
|
|
7147
|
-
ctx[
|
|
7178
|
+
ctx[19]) {
|
|
7148
7179
|
if (if_block2) {
|
|
7149
7180
|
if_block2.p(ctx, dirty);
|
|
7150
7181
|
} else {
|
|
@@ -7159,11 +7190,11 @@
|
|
|
7159
7190
|
|
|
7160
7191
|
if (dirty &
|
|
7161
7192
|
/*isDisabled, variant, type*/
|
|
7162
|
-
|
|
7193
|
+
65602 && div0_class_value !== (div0_class_value = `
|
|
7163
7194
|
goa-input
|
|
7164
7195
|
${
|
|
7165
7196
|
/*isDisabled*/
|
|
7166
|
-
ctx[
|
|
7197
|
+
ctx[16] ? "goa-input--disabled" : ""}
|
|
7167
7198
|
variant--${
|
|
7168
7199
|
/*variant*/
|
|
7169
7200
|
ctx[6]}
|
|
@@ -7176,15 +7207,15 @@
|
|
|
7176
7207
|
|
|
7177
7208
|
if (dirty &
|
|
7178
7209
|
/*isDisabled, variant, type, isError*/
|
|
7179
|
-
|
|
7210
|
+
196674) {
|
|
7180
7211
|
toggle_class(div0, "error",
|
|
7181
7212
|
/*isError*/
|
|
7182
|
-
ctx[
|
|
7213
|
+
ctx[17]);
|
|
7183
7214
|
}
|
|
7184
7215
|
|
|
7185
7216
|
if (
|
|
7186
7217
|
/*showCounter*/
|
|
7187
|
-
ctx[
|
|
7218
|
+
ctx[15]) {
|
|
7188
7219
|
if (if_block3) {
|
|
7189
7220
|
if_block3.p(ctx, dirty);
|
|
7190
7221
|
} else {
|
|
@@ -7216,7 +7247,7 @@
|
|
|
7216
7247
|
if (if_block0) if_block0.d();
|
|
7217
7248
|
/*input_binding*/
|
|
7218
7249
|
|
|
7219
|
-
ctx[
|
|
7250
|
+
ctx[28](null);
|
|
7220
7251
|
if (if_block1) if_block1.d();
|
|
7221
7252
|
if (if_block2) if_block2.d();
|
|
7222
7253
|
if (if_block3) if_block3.d();
|
|
@@ -7283,7 +7314,16 @@
|
|
|
7283
7314
|
width = "30ch"
|
|
7284
7315
|
} = $$props;
|
|
7285
7316
|
let {
|
|
7286
|
-
arialabel =
|
|
7317
|
+
arialabel = null
|
|
7318
|
+
} = $$props;
|
|
7319
|
+
let {
|
|
7320
|
+
min = null
|
|
7321
|
+
} = $$props;
|
|
7322
|
+
let {
|
|
7323
|
+
max = null
|
|
7324
|
+
} = $$props;
|
|
7325
|
+
let {
|
|
7326
|
+
step = null
|
|
7287
7327
|
} = $$props;
|
|
7288
7328
|
let {
|
|
7289
7329
|
showcounter = "false"
|
|
@@ -7309,7 +7349,7 @@
|
|
|
7309
7349
|
function input_binding($$value) {
|
|
7310
7350
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7311
7351
|
inputEl = $$value;
|
|
7312
|
-
$$invalidate(
|
|
7352
|
+
$$invalidate(14, inputEl);
|
|
7313
7353
|
});
|
|
7314
7354
|
}
|
|
7315
7355
|
|
|
@@ -7321,58 +7361,61 @@
|
|
|
7321
7361
|
if ('leadingicon' in $$props) $$invalidate(4, leadingicon = $$props.leadingicon);
|
|
7322
7362
|
if ('trailingicon' in $$props) $$invalidate(5, trailingicon = $$props.trailingicon);
|
|
7323
7363
|
if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
|
|
7324
|
-
if ('disabled' in $$props) $$invalidate(
|
|
7325
|
-
if ('handletrailingiconclick' in $$props) $$invalidate(
|
|
7326
|
-
if ('focused' in $$props) $$invalidate(
|
|
7327
|
-
if ('readonly' in $$props) $$invalidate(
|
|
7328
|
-
if ('error' in $$props) $$invalidate(
|
|
7364
|
+
if ('disabled' in $$props) $$invalidate(21, disabled = $$props.disabled);
|
|
7365
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(22, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
7366
|
+
if ('focused' in $$props) $$invalidate(23, focused = $$props.focused);
|
|
7367
|
+
if ('readonly' in $$props) $$invalidate(24, readonly = $$props.readonly);
|
|
7368
|
+
if ('error' in $$props) $$invalidate(25, error = $$props.error);
|
|
7329
7369
|
if ('testid' in $$props) $$invalidate(7, testid = $$props.testid);
|
|
7330
7370
|
if ('width' in $$props) $$invalidate(8, width = $$props.width);
|
|
7331
7371
|
if ('arialabel' in $$props) $$invalidate(9, arialabel = $$props.arialabel);
|
|
7332
|
-
if ('
|
|
7333
|
-
if ('
|
|
7372
|
+
if ('min' in $$props) $$invalidate(10, min = $$props.min);
|
|
7373
|
+
if ('max' in $$props) $$invalidate(11, max = $$props.max);
|
|
7374
|
+
if ('step' in $$props) $$invalidate(12, step = $$props.step);
|
|
7375
|
+
if ('showcounter' in $$props) $$invalidate(26, showcounter = $$props.showcounter);
|
|
7376
|
+
if ('maxcharcount' in $$props) $$invalidate(13, maxcharcount = $$props.maxcharcount);
|
|
7334
7377
|
};
|
|
7335
7378
|
|
|
7336
7379
|
$$self.$$.update = () => {
|
|
7337
7380
|
if ($$self.$$.dirty &
|
|
7338
7381
|
/*handletrailingiconclick*/
|
|
7339
|
-
|
|
7340
|
-
$$invalidate(
|
|
7382
|
+
4194304) {
|
|
7383
|
+
$$invalidate(19, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
7341
7384
|
}
|
|
7342
7385
|
|
|
7343
7386
|
if ($$self.$$.dirty &
|
|
7344
7387
|
/*focused*/
|
|
7345
|
-
|
|
7346
|
-
$$invalidate(
|
|
7388
|
+
8388608) {
|
|
7389
|
+
$$invalidate(27, isFocused = toBoolean(focused));
|
|
7347
7390
|
}
|
|
7348
7391
|
|
|
7349
7392
|
if ($$self.$$.dirty &
|
|
7350
7393
|
/*readonly*/
|
|
7351
|
-
|
|
7352
|
-
$$invalidate(
|
|
7394
|
+
16777216) {
|
|
7395
|
+
$$invalidate(18, isReadonly = toBoolean(readonly));
|
|
7353
7396
|
}
|
|
7354
7397
|
|
|
7355
7398
|
if ($$self.$$.dirty &
|
|
7356
7399
|
/*error*/
|
|
7357
|
-
|
|
7358
|
-
$$invalidate(
|
|
7400
|
+
33554432) {
|
|
7401
|
+
$$invalidate(17, isError = toBoolean(error));
|
|
7359
7402
|
}
|
|
7360
7403
|
|
|
7361
7404
|
if ($$self.$$.dirty &
|
|
7362
7405
|
/*disabled*/
|
|
7363
|
-
|
|
7364
|
-
$$invalidate(
|
|
7406
|
+
2097152) {
|
|
7407
|
+
$$invalidate(16, isDisabled = toBoolean(disabled));
|
|
7365
7408
|
}
|
|
7366
7409
|
|
|
7367
7410
|
if ($$self.$$.dirty &
|
|
7368
7411
|
/*showcounter*/
|
|
7369
|
-
|
|
7370
|
-
$$invalidate(
|
|
7412
|
+
67108864) {
|
|
7413
|
+
$$invalidate(15, showCounter = toBoolean(showcounter));
|
|
7371
7414
|
}
|
|
7372
7415
|
|
|
7373
7416
|
if ($$self.$$.dirty &
|
|
7374
7417
|
/*isFocused, inputEl*/
|
|
7375
|
-
|
|
7418
|
+
134234112) {
|
|
7376
7419
|
if (isFocused && inputEl) {
|
|
7377
7420
|
setTimeout(() => inputEl.focus(), 1);
|
|
7378
7421
|
}
|
|
@@ -7380,7 +7423,7 @@
|
|
|
7380
7423
|
|
|
7381
7424
|
if ($$self.$$.dirty &
|
|
7382
7425
|
/*inputEl, type*/
|
|
7383
|
-
|
|
7426
|
+
16386) {
|
|
7384
7427
|
if (inputEl && type === "search") {
|
|
7385
7428
|
inputEl.addEventListener("search", e => {
|
|
7386
7429
|
onKeyUp(e);
|
|
@@ -7389,13 +7432,13 @@
|
|
|
7389
7432
|
}
|
|
7390
7433
|
};
|
|
7391
7434
|
|
|
7392
|
-
return [value, type, name, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, maxcharcount, inputEl, showCounter, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, showcounter, isFocused, input_binding];
|
|
7435
|
+
return [value, type, name, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, min, max, step, maxcharcount, inputEl, showCounter, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, showcounter, isFocused, input_binding];
|
|
7393
7436
|
}
|
|
7394
7437
|
|
|
7395
7438
|
class Input extends SvelteElement {
|
|
7396
7439
|
constructor(options) {
|
|
7397
7440
|
super();
|
|
7398
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:center;vertical-align:middle;min-width:100%}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{
|
|
7441
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:center;vertical-align:middle;min-width:100%}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{margin-left:0.5rem}.goa-input-trailing-icon{margin-right:0.5rem}input{display:inline-block;color:var(--goa-color-text);font-size:var(--input-font-size);padding:var(--input-padding);line-height:calc(40px - calc(var(--input-padding) * 2));background-color:transparent;width:0;flex:1 1 auto}input[type=date],input[type="datetime-local"],input[type=number]{font-family:var(--font-family)}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--color-gray-100);border-color:var(--color-gray-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.counter{position:absolute;padding-top:0.25rem;right:0;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
|
|
7399
7442
|
center center no-repeat}</style>`;
|
|
7400
7443
|
init(this, {
|
|
7401
7444
|
target: this.shadowRoot,
|
|
@@ -7409,16 +7452,19 @@
|
|
|
7409
7452
|
leadingicon: 4,
|
|
7410
7453
|
trailingicon: 5,
|
|
7411
7454
|
variant: 6,
|
|
7412
|
-
disabled:
|
|
7413
|
-
handletrailingiconclick:
|
|
7414
|
-
focused:
|
|
7415
|
-
readonly:
|
|
7416
|
-
error:
|
|
7455
|
+
disabled: 21,
|
|
7456
|
+
handletrailingiconclick: 22,
|
|
7457
|
+
focused: 23,
|
|
7458
|
+
readonly: 24,
|
|
7459
|
+
error: 25,
|
|
7417
7460
|
testid: 7,
|
|
7418
7461
|
width: 8,
|
|
7419
7462
|
arialabel: 9,
|
|
7420
|
-
|
|
7421
|
-
|
|
7463
|
+
min: 10,
|
|
7464
|
+
max: 11,
|
|
7465
|
+
step: 12,
|
|
7466
|
+
showcounter: 26,
|
|
7467
|
+
maxcharcount: 13
|
|
7422
7468
|
}, null);
|
|
7423
7469
|
|
|
7424
7470
|
if (options) {
|
|
@@ -7434,7 +7480,7 @@
|
|
|
7434
7480
|
}
|
|
7435
7481
|
|
|
7436
7482
|
static get observedAttributes() {
|
|
7437
|
-
return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "showcounter", "maxcharcount"];
|
|
7483
|
+
return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "min", "max", "step", "showcounter", "maxcharcount"];
|
|
7438
7484
|
}
|
|
7439
7485
|
|
|
7440
7486
|
get type() {
|
|
@@ -7515,7 +7561,7 @@
|
|
|
7515
7561
|
}
|
|
7516
7562
|
|
|
7517
7563
|
get disabled() {
|
|
7518
|
-
return this.$$.ctx[
|
|
7564
|
+
return this.$$.ctx[21];
|
|
7519
7565
|
}
|
|
7520
7566
|
|
|
7521
7567
|
set disabled(disabled) {
|
|
@@ -7526,7 +7572,7 @@
|
|
|
7526
7572
|
}
|
|
7527
7573
|
|
|
7528
7574
|
get handletrailingiconclick() {
|
|
7529
|
-
return this.$$.ctx[
|
|
7575
|
+
return this.$$.ctx[22];
|
|
7530
7576
|
}
|
|
7531
7577
|
|
|
7532
7578
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -7537,7 +7583,7 @@
|
|
|
7537
7583
|
}
|
|
7538
7584
|
|
|
7539
7585
|
get focused() {
|
|
7540
|
-
return this.$$.ctx[
|
|
7586
|
+
return this.$$.ctx[23];
|
|
7541
7587
|
}
|
|
7542
7588
|
|
|
7543
7589
|
set focused(focused) {
|
|
@@ -7548,7 +7594,7 @@
|
|
|
7548
7594
|
}
|
|
7549
7595
|
|
|
7550
7596
|
get readonly() {
|
|
7551
|
-
return this.$$.ctx[
|
|
7597
|
+
return this.$$.ctx[24];
|
|
7552
7598
|
}
|
|
7553
7599
|
|
|
7554
7600
|
set readonly(readonly) {
|
|
@@ -7559,7 +7605,7 @@
|
|
|
7559
7605
|
}
|
|
7560
7606
|
|
|
7561
7607
|
get error() {
|
|
7562
|
-
return this.$$.ctx[
|
|
7608
|
+
return this.$$.ctx[25];
|
|
7563
7609
|
}
|
|
7564
7610
|
|
|
7565
7611
|
set error(error) {
|
|
@@ -7602,8 +7648,41 @@
|
|
|
7602
7648
|
flush();
|
|
7603
7649
|
}
|
|
7604
7650
|
|
|
7651
|
+
get min() {
|
|
7652
|
+
return this.$$.ctx[10];
|
|
7653
|
+
}
|
|
7654
|
+
|
|
7655
|
+
set min(min) {
|
|
7656
|
+
this.$$set({
|
|
7657
|
+
min
|
|
7658
|
+
});
|
|
7659
|
+
flush();
|
|
7660
|
+
}
|
|
7661
|
+
|
|
7662
|
+
get max() {
|
|
7663
|
+
return this.$$.ctx[11];
|
|
7664
|
+
}
|
|
7665
|
+
|
|
7666
|
+
set max(max) {
|
|
7667
|
+
this.$$set({
|
|
7668
|
+
max
|
|
7669
|
+
});
|
|
7670
|
+
flush();
|
|
7671
|
+
}
|
|
7672
|
+
|
|
7673
|
+
get step() {
|
|
7674
|
+
return this.$$.ctx[12];
|
|
7675
|
+
}
|
|
7676
|
+
|
|
7677
|
+
set step(step) {
|
|
7678
|
+
this.$$set({
|
|
7679
|
+
step
|
|
7680
|
+
});
|
|
7681
|
+
flush();
|
|
7682
|
+
}
|
|
7683
|
+
|
|
7605
7684
|
get showcounter() {
|
|
7606
|
-
return this.$$.ctx[
|
|
7685
|
+
return this.$$.ctx[26];
|
|
7607
7686
|
}
|
|
7608
7687
|
|
|
7609
7688
|
set showcounter(showcounter) {
|
|
@@ -7614,7 +7693,7 @@
|
|
|
7614
7693
|
}
|
|
7615
7694
|
|
|
7616
7695
|
get maxcharcount() {
|
|
7617
|
-
return this.$$.ctx[
|
|
7696
|
+
return this.$$.ctx[13];
|
|
7618
7697
|
}
|
|
7619
7698
|
|
|
7620
7699
|
set maxcharcount(maxcharcount) {
|
|
@@ -9923,7 +10002,7 @@
|
|
|
9923
10002
|
div1 = element("div");
|
|
9924
10003
|
div1.innerHTML = `An official site of the <a href="https://www.alberta.ca/index.aspx">Alberta Government</a>`;
|
|
9925
10004
|
attr(div0, "class", "service-level service-level--live");
|
|
9926
|
-
attr(div1, "data-testid", "
|
|
10005
|
+
attr(div1, "data-testid", "type");
|
|
9927
10006
|
attr(div1, "class", "site-text");
|
|
9928
10007
|
},
|
|
9929
10008
|
|
|
@@ -9940,13 +10019,13 @@
|
|
|
9940
10019
|
}
|
|
9941
10020
|
|
|
9942
10021
|
};
|
|
9943
|
-
} // (34:2) {#if ["alpha", "beta"].includes(
|
|
10022
|
+
} // (34:2) {#if ["alpha", "beta"].includes(type)}
|
|
9944
10023
|
|
|
9945
10024
|
|
|
9946
10025
|
function create_if_block_1$3(ctx) {
|
|
9947
10026
|
let div0;
|
|
9948
10027
|
let t0_value = capitalize(
|
|
9949
|
-
/*
|
|
10028
|
+
/*type*/
|
|
9950
10029
|
ctx[0]) + "";
|
|
9951
10030
|
let t0;
|
|
9952
10031
|
let div0_class_value;
|
|
@@ -9969,9 +10048,9 @@
|
|
|
9969
10048
|
a.textContent = "Alberta Government";
|
|
9970
10049
|
t4 = text(" service\n ");
|
|
9971
10050
|
if (if_block) if_block.c();
|
|
9972
|
-
attr(div0, "data-testid", "
|
|
10051
|
+
attr(div0, "data-testid", "type");
|
|
9973
10052
|
attr(div0, "class", div0_class_value = "service-level service-level--" +
|
|
9974
|
-
/*
|
|
10053
|
+
/*type*/
|
|
9975
10054
|
ctx[0].toLowerCase());
|
|
9976
10055
|
attr(a, "href", "https://www.alberta.ca/index.aspx");
|
|
9977
10056
|
attr(div1, "data-testid", "site-text");
|
|
@@ -9991,15 +10070,15 @@
|
|
|
9991
10070
|
|
|
9992
10071
|
p(ctx, dirty) {
|
|
9993
10072
|
if (dirty &
|
|
9994
|
-
/*
|
|
10073
|
+
/*type*/
|
|
9995
10074
|
1 && t0_value !== (t0_value = capitalize(
|
|
9996
|
-
/*
|
|
10075
|
+
/*type*/
|
|
9997
10076
|
ctx[0]) + "")) set_data(t0, t0_value);
|
|
9998
10077
|
|
|
9999
10078
|
if (dirty &
|
|
10000
|
-
/*
|
|
10079
|
+
/*type*/
|
|
10001
10080
|
1 && div0_class_value !== (div0_class_value = "service-level service-level--" +
|
|
10002
|
-
/*
|
|
10081
|
+
/*type*/
|
|
10003
10082
|
ctx[0].toLowerCase())) {
|
|
10004
10083
|
attr(div0, "class", div0_class_value);
|
|
10005
10084
|
}
|
|
@@ -10110,13 +10189,13 @@
|
|
|
10110
10189
|
let header;
|
|
10111
10190
|
let t0;
|
|
10112
10191
|
let show_if = ["alpha", "beta"].includes(
|
|
10113
|
-
/*
|
|
10192
|
+
/*type*/
|
|
10114
10193
|
ctx[0]);
|
|
10115
10194
|
let t1;
|
|
10116
10195
|
let div;
|
|
10117
10196
|
let t2;
|
|
10118
10197
|
let if_block0 =
|
|
10119
|
-
/*
|
|
10198
|
+
/*type*/
|
|
10120
10199
|
ctx[0] === "live" && create_if_block_3();
|
|
10121
10200
|
let if_block1 = show_if && create_if_block_1$3(ctx);
|
|
10122
10201
|
let if_block2 =
|
|
@@ -10150,7 +10229,7 @@
|
|
|
10150
10229
|
|
|
10151
10230
|
p(ctx, [dirty]) {
|
|
10152
10231
|
if (
|
|
10153
|
-
/*
|
|
10232
|
+
/*type*/
|
|
10154
10233
|
ctx[0] === "live") {
|
|
10155
10234
|
if (if_block0) ;else {
|
|
10156
10235
|
if_block0 = create_if_block_3();
|
|
@@ -10163,9 +10242,9 @@
|
|
|
10163
10242
|
}
|
|
10164
10243
|
|
|
10165
10244
|
if (dirty &
|
|
10166
|
-
/*
|
|
10245
|
+
/*type*/
|
|
10167
10246
|
1) show_if = ["alpha", "beta"].includes(
|
|
10168
|
-
/*
|
|
10247
|
+
/*type*/
|
|
10169
10248
|
ctx[0]);
|
|
10170
10249
|
|
|
10171
10250
|
if (show_if) {
|
|
@@ -10217,7 +10296,7 @@
|
|
|
10217
10296
|
|
|
10218
10297
|
function instance$a($$self, $$props, $$invalidate) {
|
|
10219
10298
|
let {
|
|
10220
|
-
|
|
10299
|
+
type
|
|
10221
10300
|
} = $$props;
|
|
10222
10301
|
let {
|
|
10223
10302
|
version
|
|
@@ -10227,24 +10306,24 @@
|
|
|
10227
10306
|
} = $$props;
|
|
10228
10307
|
|
|
10229
10308
|
$$self.$$set = $$props => {
|
|
10230
|
-
if ('
|
|
10309
|
+
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
10231
10310
|
if ('version' in $$props) $$invalidate(1, version = $$props.version);
|
|
10232
10311
|
if ('feedbackurl' in $$props) $$invalidate(2, feedbackurl = $$props.feedbackurl);
|
|
10233
10312
|
};
|
|
10234
10313
|
|
|
10235
|
-
return [
|
|
10314
|
+
return [type, version, feedbackurl];
|
|
10236
10315
|
}
|
|
10237
10316
|
|
|
10238
10317
|
class MicrositeHeader extends SvelteElement {
|
|
10239
10318
|
constructor(options) {
|
|
10240
10319
|
super();
|
|
10241
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}a{color:var(--goa-color-interactive);cursor:pointer}a:hover{color:var(--goa-color-interactive--hover)}a:focus{outline-width:thin;outline-style:solid;outline-color:var(--goa-color-interactive--hover);outline-offset:0px}.goa-official-site-header{display:flex;font-size:var(--fs-sm);background-color:var(--color-gray-100);align-items:center;justify-content:space-between;padding:0.5rem 1.5rem}@media(max-width: 640px){.goa-official-site-header{padding:0.5rem 1rem;align-items:start}}.spacer{flex:1 1 auto}.version{color:var(--goa-color-text-secondary);padding-left:1rem;line-height:1.25rem}.service-
|
|
10320
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}a{color:var(--goa-color-interactive);cursor:pointer}a:hover{color:var(--goa-color-interactive--hover)}a:focus{outline-width:thin;outline-style:solid;outline-color:var(--goa-color-interactive--hover);outline-offset:0px}.goa-official-site-header{display:flex;font-size:var(--fs-sm);background-color:var(--color-gray-100);align-items:center;justify-content:space-between;padding:0.5rem 1.5rem}@media(max-width: 640px){.goa-official-site-header{padding:0.5rem 1rem;align-items:start}}.spacer{flex:1 1 auto}.version{color:var(--goa-color-text-secondary);padding-left:1rem;line-height:1.25rem}.service-type{font-weight:bold;padding:0.25rem;display:flex;margin-right:1rem;line-height:initial}.service-type--alpha{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.service-type--beta{background-color:var(--goa-color-brand);color:var(--goa-color-text-light)}.service-type--live{padding:0}.site-text{color:var(--goa-color-text);line-height:1.25rem}</style>`;
|
|
10242
10321
|
init(this, {
|
|
10243
10322
|
target: this.shadowRoot,
|
|
10244
10323
|
props: attribute_to_object(this.attributes),
|
|
10245
10324
|
customElement: true
|
|
10246
10325
|
}, instance$a, create_fragment$c, safe_not_equal, {
|
|
10247
|
-
|
|
10326
|
+
type: 0,
|
|
10248
10327
|
version: 1,
|
|
10249
10328
|
feedbackurl: 2
|
|
10250
10329
|
}, null);
|
|
@@ -10262,16 +10341,16 @@
|
|
|
10262
10341
|
}
|
|
10263
10342
|
|
|
10264
10343
|
static get observedAttributes() {
|
|
10265
|
-
return ["
|
|
10344
|
+
return ["type", "version", "feedbackurl"];
|
|
10266
10345
|
}
|
|
10267
10346
|
|
|
10268
|
-
get
|
|
10347
|
+
get type() {
|
|
10269
10348
|
return this.$$.ctx[0];
|
|
10270
10349
|
}
|
|
10271
10350
|
|
|
10272
|
-
set
|
|
10351
|
+
set type(type) {
|
|
10273
10352
|
this.$$set({
|
|
10274
|
-
|
|
10353
|
+
type
|
|
10275
10354
|
});
|
|
10276
10355
|
flush();
|
|
10277
10356
|
}
|
|
@@ -13733,40 +13812,44 @@
|
|
|
13733
13812
|
};
|
|
13734
13813
|
var GoAInfoBadge = function GoAInfoBadge(_a) {
|
|
13735
13814
|
var content = _a.content,
|
|
13736
|
-
testId = _a.testId
|
|
13815
|
+
testId = _a.testId,
|
|
13816
|
+
icon = _a.icon;
|
|
13737
13817
|
return jsxRuntime.jsx(GoABadge, {
|
|
13738
13818
|
type: "information",
|
|
13739
|
-
icon:
|
|
13819
|
+
icon: icon,
|
|
13740
13820
|
content: content,
|
|
13741
13821
|
testId: testId
|
|
13742
13822
|
}, void 0);
|
|
13743
13823
|
};
|
|
13744
13824
|
var GoASuccessBadge = function GoASuccessBadge(_a) {
|
|
13745
13825
|
var content = _a.content,
|
|
13746
|
-
testId = _a.testId
|
|
13826
|
+
testId = _a.testId,
|
|
13827
|
+
icon = _a.icon;
|
|
13747
13828
|
return jsxRuntime.jsx(GoABadge, {
|
|
13748
13829
|
type: "success",
|
|
13749
|
-
icon:
|
|
13830
|
+
icon: icon,
|
|
13750
13831
|
content: content,
|
|
13751
13832
|
testId: testId
|
|
13752
13833
|
}, void 0);
|
|
13753
13834
|
};
|
|
13754
|
-
var
|
|
13835
|
+
var GoAImportantBadge = function GoAImportantBadge(_a) {
|
|
13755
13836
|
var content = _a.content,
|
|
13756
|
-
testId = _a.testId
|
|
13837
|
+
testId = _a.testId,
|
|
13838
|
+
icon = _a.icon;
|
|
13757
13839
|
return jsxRuntime.jsx(GoABadge, {
|
|
13758
|
-
type: "
|
|
13759
|
-
icon:
|
|
13840
|
+
type: "important",
|
|
13841
|
+
icon: icon,
|
|
13760
13842
|
content: content,
|
|
13761
13843
|
testId: testId
|
|
13762
13844
|
}, void 0);
|
|
13763
13845
|
};
|
|
13764
13846
|
var GoAEmergencyBadge = function GoAEmergencyBadge(_a) {
|
|
13765
13847
|
var content = _a.content,
|
|
13766
|
-
testId = _a.testId
|
|
13848
|
+
testId = _a.testId,
|
|
13849
|
+
icon = _a.icon;
|
|
13767
13850
|
return jsxRuntime.jsx(GoABadge, {
|
|
13768
13851
|
type: "emergency",
|
|
13769
|
-
icon:
|
|
13852
|
+
icon: icon,
|
|
13770
13853
|
content: content,
|
|
13771
13854
|
testId: testId
|
|
13772
13855
|
}, void 0);
|
|
@@ -13828,6 +13911,9 @@
|
|
|
13828
13911
|
showCounter = _a.showCounter,
|
|
13829
13912
|
maxCharCount = _a.maxCharCount,
|
|
13830
13913
|
testId = _a.testId,
|
|
13914
|
+
min = _a.min,
|
|
13915
|
+
max = _a.max,
|
|
13916
|
+
step = _a.step,
|
|
13831
13917
|
onTrailingIconClick = _a.onTrailingIconClick,
|
|
13832
13918
|
onChange = _a.onChange;
|
|
13833
13919
|
var ref = react.useRef(null);
|
|
@@ -13872,6 +13958,9 @@
|
|
|
13872
13958
|
"data-testid": testId,
|
|
13873
13959
|
value: value,
|
|
13874
13960
|
width: width,
|
|
13961
|
+
min: min,
|
|
13962
|
+
max: max,
|
|
13963
|
+
step: step,
|
|
13875
13964
|
showcounter: showCounter,
|
|
13876
13965
|
maxcharcount: maxCharCount,
|
|
13877
13966
|
handletrailingiconclick: !!onTrailingIconClick
|
|
@@ -13887,18 +13976,49 @@
|
|
|
13887
13976
|
type: "password"
|
|
13888
13977
|
}), void 0);
|
|
13889
13978
|
};
|
|
13890
|
-
var GoAInputDate = function GoAInputDate(
|
|
13979
|
+
var GoAInputDate = function GoAInputDate(_a) {
|
|
13980
|
+
var value = _a.value,
|
|
13981
|
+
min = _a.min,
|
|
13982
|
+
max = _a.max,
|
|
13983
|
+
props = __rest(_a, ["value", "min", "max"]);
|
|
13984
|
+
|
|
13985
|
+
var _value = typeof value === "string" ? new Date(value) : value;
|
|
13986
|
+
|
|
13987
|
+
var _min = min ? dateFns.format(new Date(min), "yyyy-MM-dd") : "";
|
|
13988
|
+
|
|
13989
|
+
var _max = max ? dateFns.format(new Date(max), "yyyy-MM-dd") : "";
|
|
13990
|
+
|
|
13891
13991
|
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
13992
|
+
min: _min,
|
|
13993
|
+
max: _max,
|
|
13994
|
+
value: dateFns.format(_value, "yyyy-MM-dd"),
|
|
13892
13995
|
type: "date"
|
|
13893
13996
|
}), void 0);
|
|
13894
13997
|
};
|
|
13895
|
-
var GoAInputTime = function GoAInputTime(
|
|
13896
|
-
|
|
13897
|
-
|
|
13898
|
-
|
|
13998
|
+
var GoAInputTime = function GoAInputTime(_a) {
|
|
13999
|
+
var value = _a.value,
|
|
14000
|
+
props = __rest(_a, ["value"]);
|
|
14001
|
+
|
|
14002
|
+
try {
|
|
14003
|
+
var d = typeof value === "string" ? new Date(value) : value;
|
|
14004
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
14005
|
+
value: dateFns.format(d, "hh:mm"),
|
|
14006
|
+
type: "time"
|
|
14007
|
+
}), void 0);
|
|
14008
|
+
} catch (e) {
|
|
14009
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
14010
|
+
value: value,
|
|
14011
|
+
type: "time"
|
|
14012
|
+
}), void 0);
|
|
14013
|
+
}
|
|
13899
14014
|
};
|
|
13900
|
-
var GoAInputDateTime = function GoAInputDateTime(
|
|
14015
|
+
var GoAInputDateTime = function GoAInputDateTime(_a) {
|
|
14016
|
+
var value = _a.value,
|
|
14017
|
+
props = __rest(_a, ["value"]);
|
|
14018
|
+
|
|
14019
|
+
var d = typeof value === "string" ? new Date(value) : value;
|
|
13901
14020
|
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
14021
|
+
value: dateFns.format(d, "yyyy-MM-dd'T'hh:mm"),
|
|
13902
14022
|
type: "datetime-local"
|
|
13903
14023
|
}), void 0);
|
|
13904
14024
|
};
|
|
@@ -13941,16 +14061,20 @@
|
|
|
13941
14061
|
type: "month"
|
|
13942
14062
|
}), void 0);
|
|
13943
14063
|
};
|
|
13944
|
-
var GoAInputNumber = function GoAInputNumber(
|
|
14064
|
+
var GoAInputNumber = function GoAInputNumber(_a) {
|
|
14065
|
+
var min = _a.min,
|
|
14066
|
+
max = _a.max,
|
|
14067
|
+
value = _a.value,
|
|
14068
|
+
props = __rest(_a, ["min", "max", "value"]);
|
|
14069
|
+
|
|
13945
14070
|
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
13946
|
-
|
|
14071
|
+
min: min === null || min === void 0 ? void 0 : min.toString(),
|
|
14072
|
+
max: max === null || max === void 0 ? void 0 : max.toString(),
|
|
14073
|
+
value: value.toString(),
|
|
13947
14074
|
type: "number"
|
|
13948
14075
|
}), void 0);
|
|
13949
14076
|
};
|
|
13950
|
-
var GoAInputRange = function GoAInputRange(
|
|
13951
|
-
_a.step;
|
|
13952
|
-
var props = __rest(_a, ["step"]);
|
|
13953
|
-
|
|
14077
|
+
var GoAInputRange = function GoAInputRange(props) {
|
|
13954
14078
|
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
13955
14079
|
type: "range"
|
|
13956
14080
|
}), void 0);
|
|
@@ -14340,11 +14464,11 @@
|
|
|
14340
14464
|
};
|
|
14341
14465
|
|
|
14342
14466
|
var GoAMicrositeHeader = function GoAMicrositeHeader(_a) {
|
|
14343
|
-
var
|
|
14467
|
+
var type = _a.type,
|
|
14344
14468
|
version = _a.version,
|
|
14345
14469
|
feedbackUrl = _a.feedbackUrl;
|
|
14346
14470
|
return jsxRuntime.jsx("goa-microsite-header", {
|
|
14347
|
-
|
|
14471
|
+
type: type,
|
|
14348
14472
|
version: version,
|
|
14349
14473
|
feedbackurl: feedbackUrl
|
|
14350
14474
|
}, void 0);
|
|
@@ -14626,6 +14750,7 @@
|
|
|
14626
14750
|
exports.GoAHeroBannerActions = GoAHeroBannerActions;
|
|
14627
14751
|
exports.GoAIcon = GoAIcon;
|
|
14628
14752
|
exports.GoAIconButton = GoAIconButton;
|
|
14753
|
+
exports.GoAImportantBadge = GoAImportantBadge;
|
|
14629
14754
|
exports.GoAInfoBadge = GoAInfoBadge;
|
|
14630
14755
|
exports.GoAInput = GoAInput;
|
|
14631
14756
|
exports.GoAInputDate = GoAInputDate;
|
|
@@ -14652,7 +14777,6 @@
|
|
|
14652
14777
|
exports.GoASpinner = GoASpinner;
|
|
14653
14778
|
exports.GoASuccessBadge = GoASuccessBadge;
|
|
14654
14779
|
exports.GoATextArea = GoATextArea;
|
|
14655
|
-
exports.GoAWarningBadge = GoAWarningBadge;
|
|
14656
14780
|
|
|
14657
14781
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14658
14782
|
|