@aurodesignsystem-dev/auro-formkit 0.0.0-pr835.0 → 0.0.0-pr837.0
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/components/bibtemplate/dist/index.js +3 -2
- package/components/bibtemplate/dist/registered.js +3 -2
- package/components/combobox/README.md +2 -0
- package/components/combobox/demo/api.md +6 -0
- package/components/combobox/demo/api.min.js +26 -25
- package/components/combobox/demo/index.md +12 -0
- package/components/combobox/demo/index.min.js +26 -25
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +2 -0
- package/components/combobox/dist/index.js +26 -25
- package/components/combobox/dist/registered.js +26 -25
- package/components/counter/demo/api.md +9 -0
- package/components/counter/demo/api.min.js +6 -13
- package/components/counter/demo/index.md +6 -0
- package/components/counter/demo/index.min.js +6 -13
- package/components/counter/dist/auro-counter-group.d.ts +1 -0
- package/components/counter/dist/index.js +6 -13
- package/components/counter/dist/registered.js +6 -13
- package/components/datepicker/README.md +1 -0
- package/components/datepicker/demo/api.md +11 -0
- package/components/datepicker/demo/api.min.js +19 -17
- package/components/datepicker/demo/index.md +12 -0
- package/components/datepicker/demo/index.min.js +19 -17
- package/components/datepicker/demo/readme.md +1 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +1 -0
- package/components/datepicker/dist/index.js +19 -17
- package/components/datepicker/dist/registered.js +19 -17
- package/components/dropdown/demo/api.md +7 -6
- package/components/dropdown/demo/api.min.js +1 -11
- package/components/dropdown/demo/index.min.js +1 -11
- package/components/dropdown/dist/index.js +1 -11
- package/components/dropdown/dist/registered.js +1 -11
- package/components/input/README.md +1 -0
- package/components/input/demo/api.md +14 -6
- package/components/input/demo/api.min.js +12 -4
- package/components/input/demo/index.md +7 -0
- package/components/input/demo/index.min.js +12 -4
- package/components/input/demo/readme.md +1 -0
- package/components/input/dist/base-input.d.ts +3 -1
- package/components/input/dist/index.js +12 -4
- package/components/input/dist/registered.js +12 -4
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +1 -0
- package/components/select/demo/api.md +9 -3
- package/components/select/demo/api.min.js +12 -13
- package/components/select/demo/index.md +8 -0
- package/components/select/demo/index.min.js +12 -13
- package/components/select/demo/readme.md +1 -0
- package/components/select/dist/auro-select.d.ts +5 -0
- package/components/select/dist/index.js +12 -13
- package/components/select/dist/registered.js +12 -13
- package/package.json +2 -2
|
@@ -1979,12 +1979,6 @@ class AuroFloatingUI {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
|
|
1981
1981
|
setupHideHandlers() {
|
|
1982
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
1983
|
-
event.preventDefault();
|
|
1984
|
-
event.stopPropagation();
|
|
1985
|
-
};
|
|
1986
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
1987
|
-
|
|
1988
1982
|
// Define handlers & store references
|
|
1989
1983
|
this.focusHandler = () => this.handleFocusLoss();
|
|
1990
1984
|
|
|
@@ -2034,11 +2028,6 @@ class AuroFloatingUI {
|
|
|
2034
2028
|
cleanupHideHandlers() {
|
|
2035
2029
|
// Remove event listeners if they exist
|
|
2036
2030
|
|
|
2037
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
2038
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2039
|
-
delete this.preventFocusLoseOnBibClick;
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
2031
|
if (this.focusHandler) {
|
|
2043
2032
|
document.removeEventListener('focusin', this.focusHandler);
|
|
2044
2033
|
this.focusHandler = null;
|
|
@@ -3544,6 +3533,7 @@ class AuroElement extends i {
|
|
|
3544
3533
|
* @slot trigger - Defines the content of the trigger.
|
|
3545
3534
|
* @csspart trigger - The trigger content container.
|
|
3546
3535
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
3536
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
3547
3537
|
* @csspart helpText - The helpText content container.
|
|
3548
3538
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
3549
3539
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -1954,12 +1954,6 @@ class AuroFloatingUI {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
|
|
1956
1956
|
setupHideHandlers() {
|
|
1957
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
1958
|
-
event.preventDefault();
|
|
1959
|
-
event.stopPropagation();
|
|
1960
|
-
};
|
|
1961
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
1962
|
-
|
|
1963
1957
|
// Define handlers & store references
|
|
1964
1958
|
this.focusHandler = () => this.handleFocusLoss();
|
|
1965
1959
|
|
|
@@ -2009,11 +2003,6 @@ class AuroFloatingUI {
|
|
|
2009
2003
|
cleanupHideHandlers() {
|
|
2010
2004
|
// Remove event listeners if they exist
|
|
2011
2005
|
|
|
2012
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
2013
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
2014
|
-
delete this.preventFocusLoseOnBibClick;
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
2006
|
if (this.focusHandler) {
|
|
2018
2007
|
document.removeEventListener('focusin', this.focusHandler);
|
|
2019
2008
|
this.focusHandler = null;
|
|
@@ -3519,6 +3508,7 @@ class AuroElement extends i {
|
|
|
3519
3508
|
* @slot trigger - Defines the content of the trigger.
|
|
3520
3509
|
* @csspart trigger - The trigger content container.
|
|
3521
3510
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
3511
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
3522
3512
|
* @csspart helpText - The helpText content container.
|
|
3523
3513
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
3524
3514
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -1913,12 +1913,6 @@ class AuroFloatingUI {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
1915
|
setupHideHandlers() {
|
|
1916
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
1917
|
-
event.preventDefault();
|
|
1918
|
-
event.stopPropagation();
|
|
1919
|
-
};
|
|
1920
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
1921
|
-
|
|
1922
1916
|
// Define handlers & store references
|
|
1923
1917
|
this.focusHandler = () => this.handleFocusLoss();
|
|
1924
1918
|
|
|
@@ -1968,11 +1962,6 @@ class AuroFloatingUI {
|
|
|
1968
1962
|
cleanupHideHandlers() {
|
|
1969
1963
|
// Remove event listeners if they exist
|
|
1970
1964
|
|
|
1971
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
1972
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
1973
|
-
delete this.preventFocusLoseOnBibClick;
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
1965
|
if (this.focusHandler) {
|
|
1977
1966
|
document.removeEventListener('focusin', this.focusHandler);
|
|
1978
1967
|
this.focusHandler = null;
|
|
@@ -3472,6 +3461,7 @@ class AuroElement extends LitElement {
|
|
|
3472
3461
|
* @slot trigger - Defines the content of the trigger.
|
|
3473
3462
|
* @csspart trigger - The trigger content container.
|
|
3474
3463
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
3464
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
3475
3465
|
* @csspart helpText - The helpText content container.
|
|
3476
3466
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
3477
3467
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -1913,12 +1913,6 @@ class AuroFloatingUI {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
1915
|
setupHideHandlers() {
|
|
1916
|
-
this.preventFocusLoseOnBibClick = (event) => {
|
|
1917
|
-
event.preventDefault();
|
|
1918
|
-
event.stopPropagation();
|
|
1919
|
-
};
|
|
1920
|
-
this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
1921
|
-
|
|
1922
1916
|
// Define handlers & store references
|
|
1923
1917
|
this.focusHandler = () => this.handleFocusLoss();
|
|
1924
1918
|
|
|
@@ -1968,11 +1962,6 @@ class AuroFloatingUI {
|
|
|
1968
1962
|
cleanupHideHandlers() {
|
|
1969
1963
|
// Remove event listeners if they exist
|
|
1970
1964
|
|
|
1971
|
-
if (this.preventFocusLoseOnBibClick) {
|
|
1972
|
-
this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
|
|
1973
|
-
delete this.preventFocusLoseOnBibClick;
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
1965
|
if (this.focusHandler) {
|
|
1977
1966
|
document.removeEventListener('focusin', this.focusHandler);
|
|
1978
1967
|
this.focusHandler = null;
|
|
@@ -3472,6 +3461,7 @@ class AuroElement extends LitElement {
|
|
|
3472
3461
|
* @slot trigger - Defines the content of the trigger.
|
|
3473
3462
|
* @csspart trigger - The trigger content container.
|
|
3474
3463
|
* @csspart chevron - The collapsed/expanded state icon container.
|
|
3464
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
3475
3465
|
* @csspart helpText - The helpText content container.
|
|
3476
3466
|
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
3477
3467
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
@@ -72,12 +72,15 @@ Generate unique names for dependency components.
|
|
|
72
72
|
|
|
73
73
|
## Slots
|
|
74
74
|
|
|
75
|
-
| Name
|
|
76
|
-
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
| [
|
|
75
|
+
| Name | Description |
|
|
76
|
+
|---------------------------|--------------------------------------------------|
|
|
77
|
+
| `ariaLabel.clear` | Sets aria-label on clear button for screenreader to read |
|
|
78
|
+
| `ariaLabel.password.hide` | Sets aria-label on password button to toggle off showing password |
|
|
79
|
+
| `ariaLabel.password.show` | Sets aria-label on password button to toggle on showing password |
|
|
80
|
+
| [displayValue](#displayValue) | Allows custom HTML content to display in place of the value when the input is not focused. |
|
|
81
|
+
| [helpText](#helpText) | Sets the help text displayed below the input. |
|
|
82
|
+
| [label](#label) | Sets the label text for the input. |
|
|
83
|
+
| [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
|
|
81
84
|
|
|
82
85
|
## CSS Shadow Parts
|
|
83
86
|
|
|
@@ -113,6 +116,7 @@ The default component supports the basic input `type="text"` structure. The `(op
|
|
|
113
116
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
114
117
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
115
118
|
<auro-input>
|
|
119
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
116
120
|
<span slot="label">Label</span>
|
|
117
121
|
<span slot="helpText">Help Text</span>
|
|
118
122
|
</auro-input>
|
|
@@ -134,6 +138,7 @@ The default component supports the basic input `type="text"` structure. The `(op
|
|
|
134
138
|
|
|
135
139
|
```html
|
|
136
140
|
<auro-input>
|
|
141
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
137
142
|
<span slot="label">Label</span>
|
|
138
143
|
<span slot="helpText">Help Text</span>
|
|
139
144
|
</auro-input>
|
|
@@ -893,6 +898,9 @@ Default help text will be added to the input `type="password"` if custom help te
|
|
|
893
898
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/password.html) -->
|
|
894
899
|
<!-- The below content is automatically added from ../apiExamples/password.html -->
|
|
895
900
|
<auro-input type="password" required>
|
|
901
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
902
|
+
<span slot="ariaLabel.password.show">Show</span>
|
|
903
|
+
<span slot="ariaLabel.password.hide">Hide</span>
|
|
896
904
|
<span slot="label">Password</span>
|
|
897
905
|
<span slot="helpText">Please enter a secure password.</span>
|
|
898
906
|
</auro-input>
|
|
@@ -5105,6 +5105,9 @@ let AuroElement$2 = class AuroElement extends i$2 {
|
|
|
5105
5105
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
5106
5106
|
* @attr id
|
|
5107
5107
|
*
|
|
5108
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
5109
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
5110
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
5108
5111
|
* @slot helpText - Sets the help text displayed below the input.
|
|
5109
5112
|
* @slot label - Sets the label text for the input.
|
|
5110
5113
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -5532,8 +5535,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5532
5535
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5533
5536
|
*/
|
|
5534
5537
|
value: {
|
|
5535
|
-
type: String
|
|
5536
|
-
reflect: true
|
|
5538
|
+
type: String
|
|
5537
5539
|
},
|
|
5538
5540
|
|
|
5539
5541
|
/**
|
|
@@ -8245,12 +8247,13 @@ class AuroInput extends BaseInput {
|
|
|
8245
8247
|
<${this.buttonTag}
|
|
8246
8248
|
@click="${this.handleClickClear}"
|
|
8247
8249
|
?onDark="${this.onDark}"
|
|
8248
|
-
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
8249
8250
|
class="notificationBtn clearBtn"
|
|
8250
8251
|
shape="circle"
|
|
8251
8252
|
size="sm"
|
|
8252
8253
|
variant="ghost">
|
|
8254
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
8253
8255
|
<${this.iconTag}
|
|
8256
|
+
aria-hidden="true"
|
|
8254
8257
|
?customColor="${this.onDark}"
|
|
8255
8258
|
category="interface"
|
|
8256
8259
|
name="x-lg"
|
|
@@ -8273,18 +8276,23 @@ class AuroInput extends BaseInput {
|
|
|
8273
8276
|
@click="${this.handleClickShowPassword}"
|
|
8274
8277
|
?onDark="${this.onDark}"
|
|
8275
8278
|
class="notificationBtn passwordBtn"
|
|
8276
|
-
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
8277
8279
|
shape="circle"
|
|
8278
8280
|
size="sm"
|
|
8279
8281
|
variant="ghost">
|
|
8282
|
+
<span>
|
|
8283
|
+
${this.showPassword ? u$2`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
8284
|
+
: u$2`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
8285
|
+
</span>
|
|
8280
8286
|
<${this.iconTag}
|
|
8281
8287
|
?customColor="${this.onDark}"
|
|
8288
|
+
aria-hidden="true"
|
|
8282
8289
|
?hidden=${!this.showPassword}
|
|
8283
8290
|
category="interface"
|
|
8284
8291
|
name="hide-password-stroke">
|
|
8285
8292
|
</${this.iconTag}>
|
|
8286
8293
|
<${this.iconTag}
|
|
8287
8294
|
?customColor="${this.onDark}"
|
|
8295
|
+
aria-hidden="true"
|
|
8288
8296
|
?hidden=${this.showPassword}
|
|
8289
8297
|
category="interface"
|
|
8290
8298
|
name="view-password-stroke">
|
|
@@ -24,6 +24,7 @@ The `<auro-input>` element should be used in situations where users may:
|
|
|
24
24
|
<label slot="label">From</label>
|
|
25
25
|
</auro-input> -->
|
|
26
26
|
<auro-input id="alpha" value="lax" layout="emphasized" shape="box" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
|
|
27
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
27
28
|
<label slot="label">From</label>
|
|
28
29
|
<span slot="helpText">Example help text</span>
|
|
29
30
|
<span slot="displayValue">
|
|
@@ -34,14 +35,17 @@ The `<auro-input>` element should be used in situations where users may:
|
|
|
34
35
|
</span>
|
|
35
36
|
</auro-input>
|
|
36
37
|
<auro-input id="beta" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
|
|
38
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
37
39
|
<label slot="label">From</label>
|
|
38
40
|
<span slot="helpText">Example help text</span>
|
|
39
41
|
</auro-input>
|
|
40
42
|
<auro-input id="charlie" layout="emphasized-left" shape="pill-left" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
|
|
43
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
41
44
|
<label slot="label">From</label>
|
|
42
45
|
<span slot="helpText">Example help text</span>
|
|
43
46
|
</auro-input>
|
|
44
47
|
<auro-input id="delta" layout="emphasized-right" shape="pill-right" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
|
|
48
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
45
49
|
<label slot="label">From</label>
|
|
46
50
|
<span slot="helpText">Example help text</span>
|
|
47
51
|
</auro-input>
|
|
@@ -54,6 +58,7 @@ The `<auro-input>` element should be used in situations where users may:
|
|
|
54
58
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
|
|
55
59
|
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
56
60
|
<auro-input id="snowflakePill" layout="snowflake" shape="snowflake" size="lg" placeholder="Departure" style="width: 249px;" ondark required>
|
|
61
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
57
62
|
<label slot="label">From</label>
|
|
58
63
|
<span slot="helpText">Example help text</span>
|
|
59
64
|
</auro-input>
|
|
@@ -68,6 +73,7 @@ The default component supports the basic input `type="text"` structure. The `(op
|
|
|
68
73
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
69
74
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
70
75
|
<auro-input>
|
|
76
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
71
77
|
<span slot="label">Label</span>
|
|
72
78
|
<span slot="helpText">Help Text</span>
|
|
73
79
|
</auro-input>
|
|
@@ -89,6 +95,7 @@ The default component supports the basic input `type="text"` structure. The `(op
|
|
|
89
95
|
|
|
90
96
|
```html
|
|
91
97
|
<auro-input>
|
|
98
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
92
99
|
<span slot="label">Label</span>
|
|
93
100
|
<span slot="helpText">Help Text</span>
|
|
94
101
|
</auro-input>
|
|
@@ -5030,6 +5030,9 @@ let AuroElement$2 = class AuroElement extends i$2 {
|
|
|
5030
5030
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
5031
5031
|
* @attr id
|
|
5032
5032
|
*
|
|
5033
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
5034
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
5035
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
5033
5036
|
* @slot helpText - Sets the help text displayed below the input.
|
|
5034
5037
|
* @slot label - Sets the label text for the input.
|
|
5035
5038
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -5457,8 +5460,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5457
5460
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5458
5461
|
*/
|
|
5459
5462
|
value: {
|
|
5460
|
-
type: String
|
|
5461
|
-
reflect: true
|
|
5463
|
+
type: String
|
|
5462
5464
|
},
|
|
5463
5465
|
|
|
5464
5466
|
/**
|
|
@@ -8170,12 +8172,13 @@ class AuroInput extends BaseInput {
|
|
|
8170
8172
|
<${this.buttonTag}
|
|
8171
8173
|
@click="${this.handleClickClear}"
|
|
8172
8174
|
?onDark="${this.onDark}"
|
|
8173
|
-
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
8174
8175
|
class="notificationBtn clearBtn"
|
|
8175
8176
|
shape="circle"
|
|
8176
8177
|
size="sm"
|
|
8177
8178
|
variant="ghost">
|
|
8179
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
8178
8180
|
<${this.iconTag}
|
|
8181
|
+
aria-hidden="true"
|
|
8179
8182
|
?customColor="${this.onDark}"
|
|
8180
8183
|
category="interface"
|
|
8181
8184
|
name="x-lg"
|
|
@@ -8198,18 +8201,23 @@ class AuroInput extends BaseInput {
|
|
|
8198
8201
|
@click="${this.handleClickShowPassword}"
|
|
8199
8202
|
?onDark="${this.onDark}"
|
|
8200
8203
|
class="notificationBtn passwordBtn"
|
|
8201
|
-
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
8202
8204
|
shape="circle"
|
|
8203
8205
|
size="sm"
|
|
8204
8206
|
variant="ghost">
|
|
8207
|
+
<span>
|
|
8208
|
+
${this.showPassword ? u$2`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
8209
|
+
: u$2`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
8210
|
+
</span>
|
|
8205
8211
|
<${this.iconTag}
|
|
8206
8212
|
?customColor="${this.onDark}"
|
|
8213
|
+
aria-hidden="true"
|
|
8207
8214
|
?hidden=${!this.showPassword}
|
|
8208
8215
|
category="interface"
|
|
8209
8216
|
name="hide-password-stroke">
|
|
8210
8217
|
</${this.iconTag}>
|
|
8211
8218
|
<${this.iconTag}
|
|
8212
8219
|
?customColor="${this.onDark}"
|
|
8220
|
+
aria-hidden="true"
|
|
8213
8221
|
?hidden=${this.showPassword}
|
|
8214
8222
|
category="interface"
|
|
8215
8223
|
name="view-password-stroke">
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
5
5
|
* @attr id
|
|
6
6
|
*
|
|
7
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
8
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
9
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
7
10
|
* @slot helpText - Sets the help text displayed below the input.
|
|
8
11
|
* @slot label - Sets the label text for the input.
|
|
9
12
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -292,7 +295,6 @@ export default class BaseInput extends AuroElement {
|
|
|
292
295
|
*/
|
|
293
296
|
value: {
|
|
294
297
|
type: StringConstructor;
|
|
295
|
-
reflect: boolean;
|
|
296
298
|
};
|
|
297
299
|
/**
|
|
298
300
|
* Sets validation mode to re-eval with each input.
|
|
@@ -4954,6 +4954,9 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
4954
4954
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
4955
4955
|
* @attr id
|
|
4956
4956
|
*
|
|
4957
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
4958
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
4959
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
4957
4960
|
* @slot helpText - Sets the help text displayed below the input.
|
|
4958
4961
|
* @slot label - Sets the label text for the input.
|
|
4959
4962
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -5381,8 +5384,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5381
5384
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5382
5385
|
*/
|
|
5383
5386
|
value: {
|
|
5384
|
-
type: String
|
|
5385
|
-
reflect: true
|
|
5387
|
+
type: String
|
|
5386
5388
|
},
|
|
5387
5389
|
|
|
5388
5390
|
/**
|
|
@@ -8094,12 +8096,13 @@ class AuroInput extends BaseInput {
|
|
|
8094
8096
|
<${this.buttonTag}
|
|
8095
8097
|
@click="${this.handleClickClear}"
|
|
8096
8098
|
?onDark="${this.onDark}"
|
|
8097
|
-
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
8098
8099
|
class="notificationBtn clearBtn"
|
|
8099
8100
|
shape="circle"
|
|
8100
8101
|
size="sm"
|
|
8101
8102
|
variant="ghost">
|
|
8103
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
8102
8104
|
<${this.iconTag}
|
|
8105
|
+
aria-hidden="true"
|
|
8103
8106
|
?customColor="${this.onDark}"
|
|
8104
8107
|
category="interface"
|
|
8105
8108
|
name="x-lg"
|
|
@@ -8122,18 +8125,23 @@ class AuroInput extends BaseInput {
|
|
|
8122
8125
|
@click="${this.handleClickShowPassword}"
|
|
8123
8126
|
?onDark="${this.onDark}"
|
|
8124
8127
|
class="notificationBtn passwordBtn"
|
|
8125
|
-
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
8126
8128
|
shape="circle"
|
|
8127
8129
|
size="sm"
|
|
8128
8130
|
variant="ghost">
|
|
8131
|
+
<span>
|
|
8132
|
+
${this.showPassword ? html$1`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
8133
|
+
: html$1`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
8134
|
+
</span>
|
|
8129
8135
|
<${this.iconTag}
|
|
8130
8136
|
?customColor="${this.onDark}"
|
|
8137
|
+
aria-hidden="true"
|
|
8131
8138
|
?hidden=${!this.showPassword}
|
|
8132
8139
|
category="interface"
|
|
8133
8140
|
name="hide-password-stroke">
|
|
8134
8141
|
</${this.iconTag}>
|
|
8135
8142
|
<${this.iconTag}
|
|
8136
8143
|
?customColor="${this.onDark}"
|
|
8144
|
+
aria-hidden="true"
|
|
8137
8145
|
?hidden=${this.showPassword}
|
|
8138
8146
|
category="interface"
|
|
8139
8147
|
name="view-password-stroke">
|
|
@@ -4954,6 +4954,9 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
4954
4954
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
4955
4955
|
* @attr id
|
|
4956
4956
|
*
|
|
4957
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
4958
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
4959
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
4957
4960
|
* @slot helpText - Sets the help text displayed below the input.
|
|
4958
4961
|
* @slot label - Sets the label text for the input.
|
|
4959
4962
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -5381,8 +5384,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
5381
5384
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5382
5385
|
*/
|
|
5383
5386
|
value: {
|
|
5384
|
-
type: String
|
|
5385
|
-
reflect: true
|
|
5387
|
+
type: String
|
|
5386
5388
|
},
|
|
5387
5389
|
|
|
5388
5390
|
/**
|
|
@@ -8094,12 +8096,13 @@ class AuroInput extends BaseInput {
|
|
|
8094
8096
|
<${this.buttonTag}
|
|
8095
8097
|
@click="${this.handleClickClear}"
|
|
8096
8098
|
?onDark="${this.onDark}"
|
|
8097
|
-
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
8098
8099
|
class="notificationBtn clearBtn"
|
|
8099
8100
|
shape="circle"
|
|
8100
8101
|
size="sm"
|
|
8101
8102
|
variant="ghost">
|
|
8103
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
8102
8104
|
<${this.iconTag}
|
|
8105
|
+
aria-hidden="true"
|
|
8103
8106
|
?customColor="${this.onDark}"
|
|
8104
8107
|
category="interface"
|
|
8105
8108
|
name="x-lg"
|
|
@@ -8122,18 +8125,23 @@ class AuroInput extends BaseInput {
|
|
|
8122
8125
|
@click="${this.handleClickShowPassword}"
|
|
8123
8126
|
?onDark="${this.onDark}"
|
|
8124
8127
|
class="notificationBtn passwordBtn"
|
|
8125
|
-
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
8126
8128
|
shape="circle"
|
|
8127
8129
|
size="sm"
|
|
8128
8130
|
variant="ghost">
|
|
8131
|
+
<span>
|
|
8132
|
+
${this.showPassword ? html$1`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
8133
|
+
: html$1`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
8134
|
+
</span>
|
|
8129
8135
|
<${this.iconTag}
|
|
8130
8136
|
?customColor="${this.onDark}"
|
|
8137
|
+
aria-hidden="true"
|
|
8131
8138
|
?hidden=${!this.showPassword}
|
|
8132
8139
|
category="interface"
|
|
8133
8140
|
name="hide-password-stroke">
|
|
8134
8141
|
</${this.iconTag}>
|
|
8135
8142
|
<${this.iconTag}
|
|
8136
8143
|
?customColor="${this.onDark}"
|
|
8144
|
+
aria-hidden="true"
|
|
8137
8145
|
?hidden=${this.showPassword}
|
|
8138
8146
|
category="interface"
|
|
8139
8147
|
name="view-password-stroke">
|
|
@@ -420,7 +420,7 @@ class AuroRadio extends i$2 {
|
|
|
420
420
|
@input="${this.handleInput}"
|
|
421
421
|
@change="${this.handleChange}"
|
|
422
422
|
?disabled="${this.disabled}"
|
|
423
|
-
|
|
423
|
+
.checked="${this.checked}"
|
|
424
424
|
id="${this.inputId}"
|
|
425
425
|
name="${o$1(this.name)}"
|
|
426
426
|
type="radio"
|
|
@@ -395,7 +395,7 @@ class AuroRadio extends i$2 {
|
|
|
395
395
|
@input="${this.handleInput}"
|
|
396
396
|
@change="${this.handleChange}"
|
|
397
397
|
?disabled="${this.disabled}"
|
|
398
|
-
|
|
398
|
+
.checked="${this.checked}"
|
|
399
399
|
id="${this.inputId}"
|
|
400
400
|
name="${o$1(this.name)}"
|
|
401
401
|
type="radio"
|
|
@@ -355,7 +355,7 @@ class AuroRadio extends LitElement {
|
|
|
355
355
|
@input="${this.handleInput}"
|
|
356
356
|
@change="${this.handleChange}"
|
|
357
357
|
?disabled="${this.disabled}"
|
|
358
|
-
|
|
358
|
+
.checked="${this.checked}"
|
|
359
359
|
id="${this.inputId}"
|
|
360
360
|
name="${ifDefined(this.name)}"
|
|
361
361
|
type="radio"
|
|
@@ -355,7 +355,7 @@ class AuroRadio extends LitElement {
|
|
|
355
355
|
@input="${this.handleInput}"
|
|
356
356
|
@change="${this.handleChange}"
|
|
357
357
|
?disabled="${this.disabled}"
|
|
358
|
-
|
|
358
|
+
.checked="${this.checked}"
|
|
359
359
|
id="${this.inputId}"
|
|
360
360
|
name="${ifDefined(this.name)}"
|
|
361
361
|
type="radio"
|
|
@@ -84,6 +84,7 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
86
|
<auro-select>
|
|
87
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
87
88
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
88
89
|
<span slot="label">Select Example</span>
|
|
89
90
|
<auro-menu>
|
|
@@ -65,6 +65,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
65
65
|
| Name | Description |
|
|
66
66
|
|---------------------------|--------------------------------------------------|
|
|
67
67
|
| | Default slot for the menu content. |
|
|
68
|
+
| `ariaLabel.bib.close` | Sets aria-label on close button in fullscreen bib |
|
|
68
69
|
| `bib.fullscreen.headline` | Defines the headline to display above menu-options |
|
|
69
70
|
| [displayValue](#displayValue) | Allows custom HTML content to display the selected value when select is not focused. |
|
|
70
71
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
@@ -74,9 +75,12 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
74
75
|
|
|
75
76
|
## CSS Shadow Parts
|
|
76
77
|
|
|
77
|
-
| Part
|
|
78
|
-
|
|
79
|
-
| [
|
|
78
|
+
| Part | Description |
|
|
79
|
+
|-------------------|--------------------------------------------------|
|
|
80
|
+
| [dropdownChevron](#dropdownChevron) | Apply CSS to the collapsed/expanded state icon container. |
|
|
81
|
+
| [dropdownSize](#dropdownSize) | Apply size styles to the dropdown bib. (height, width, maxHeight, maxWidth only) |
|
|
82
|
+
| [dropdownTrigger](#dropdownTrigger) | Apply CSS to the trigger content container. |
|
|
83
|
+
| [helpText](#helpText) | Apply CSS to the help text. |
|
|
80
84
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
81
85
|
|
|
82
86
|
## API Examples
|
|
@@ -89,6 +93,7 @@ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
|
|
|
89
93
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
90
94
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
91
95
|
<auro-select>
|
|
96
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
92
97
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
93
98
|
<span slot="label">Select Example</span>
|
|
94
99
|
<auro-menu>
|
|
@@ -126,6 +131,7 @@ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
|
|
|
126
131
|
|
|
127
132
|
```html
|
|
128
133
|
<auro-select>
|
|
134
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
129
135
|
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
130
136
|
<span slot="label">Select Example</span>
|
|
131
137
|
<auro-menu>
|