@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.6 → 0.0.0-pr624.60
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/auro-bibtemplate.d.ts +12 -2
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1214 -83
- package/components/bibtemplate/dist/registered.js +1214 -83
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.html +16 -10
- package/components/checkbox/demo/api.md +47 -14
- package/components/checkbox/demo/api.min.js +49 -37
- package/components/checkbox/demo/index.html +16 -10
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +49 -37
- package/components/checkbox/demo/readme.html +16 -9
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
- package/components/checkbox/dist/index.js +49 -37
- package/components/checkbox/dist/registered.js +49 -37
- package/components/combobox/demo/api.html +16 -10
- package/components/combobox/demo/api.md +112 -8
- package/components/combobox/demo/api.min.js +2941 -851
- package/components/combobox/demo/index.html +16 -10
- package/components/combobox/demo/index.md +6 -30
- package/components/combobox/demo/index.min.js +2941 -851
- package/components/combobox/demo/readme.html +16 -9
- package/components/combobox/dist/auro-combobox.d.ts +37 -8
- package/components/combobox/dist/index.js +2730 -736
- package/components/combobox/dist/registered.js +2730 -736
- package/components/counter/demo/api.html +17 -10
- package/components/counter/demo/api.md +156 -21
- package/components/counter/demo/api.min.js +6696 -4097
- package/components/counter/demo/index.html +17 -10
- package/components/counter/demo/index.md +185 -34
- package/components/counter/demo/index.min.js +6696 -4097
- package/components/counter/demo/readme.html +16 -9
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +151 -11
- package/components/counter/dist/auro-counter.d.ts +16 -0
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +6696 -4097
- package/components/counter/dist/registered.js +6696 -4097
- package/components/datepicker/demo/api.html +16 -10
- package/components/datepicker/demo/api.md +24 -16
- package/components/datepicker/demo/api.min.js +11749 -8230
- package/components/datepicker/demo/index.html +16 -10
- package/components/datepicker/demo/index.md +71 -4
- package/components/datepicker/demo/index.min.js +11749 -8230
- package/components/datepicker/demo/readme.html +16 -9
- package/components/datepicker/dist/auro-datepicker.d.ts +84 -11
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +6531 -3012
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +6531 -3012
- package/components/dropdown/demo/api.html +16 -10
- package/components/dropdown/demo/api.md +81 -274
- package/components/dropdown/demo/api.min.js +429 -195
- package/components/dropdown/demo/index.html +16 -10
- package/components/dropdown/demo/index.md +92 -362
- package/components/dropdown/demo/index.min.js +429 -195
- package/components/dropdown/demo/readme.html +16 -9
- package/components/dropdown/dist/auro-dropdown.d.ts +41 -76
- package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
- package/components/dropdown/dist/index.js +429 -195
- package/components/dropdown/dist/registered.js +429 -195
- package/components/form/demo/api.html +16 -9
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/autocomplete.html +19 -3
- package/components/form/demo/index.html +16 -9
- package/components/form/demo/index.min.js +1 -1
- package/components/form/demo/readme.html +16 -9
- package/components/form/demo/working.html +19 -13
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/helptext/dist/index.js +2 -2
- package/components/helptext/dist/registered.js +2 -2
- package/components/input/README.md +5 -2
- package/components/input/demo/api.html +16 -10
- package/components/input/demo/api.md +226 -129
- package/components/input/demo/api.min.js +828 -234
- package/components/input/demo/index.html +16 -10
- package/components/input/demo/index.md +48 -32
- package/components/input/demo/index.min.js +828 -234
- package/components/input/demo/readme.html +16 -9
- package/components/input/demo/readme.md +5 -2
- package/components/input/dist/auro-input.d.ts +3 -3
- package/components/input/dist/base-input.d.ts +33 -9
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +828 -234
- package/components/input/dist/registered.js +828 -234
- package/components/layoutElement/dist/index.js +13 -10
- package/components/menu/demo/api.html +32 -10
- package/components/menu/demo/api.md +69 -8
- package/components/menu/demo/api.min.js +238 -47
- package/components/menu/demo/index.html +16 -10
- package/components/menu/demo/index.min.js +238 -47
- package/components/menu/demo/readme.html +16 -9
- package/components/menu/dist/auro-menu.d.ts +41 -7
- package/components/menu/dist/auro-menuoption.d.ts +15 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +238 -47
- package/components/menu/dist/registered.js +238 -47
- package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.html +16 -10
- package/components/radio/demo/api.md +7 -8
- package/components/radio/demo/api.min.js +72 -85
- package/components/radio/demo/index.html +16 -10
- package/components/radio/demo/index.min.js +72 -85
- package/components/radio/demo/readme.html +16 -9
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +9 -12
- package/components/radio/dist/index.js +72 -85
- package/components/radio/dist/registered.js +72 -85
- package/components/select/demo/api.html +16 -10
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +104 -57
- package/components/select/demo/api.min.js +2107 -639
- package/components/select/demo/index.html +16 -11
- package/components/select/demo/index.md +45 -158
- package/components/select/demo/index.min.js +2104 -624
- package/components/select/demo/readme.html +16 -9
- package/components/select/dist/auro-select.d.ts +57 -16
- package/components/select/dist/index.js +2028 -644
- package/components/select/dist/registered.js +2028 -644
- package/package.json +29 -26
- /package/components/{datepicker/dist/styles/emphasized/style-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/color-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
- /package/components/dropdown/dist/styles/{default → classic}/bibColors-css.d.ts +0 -0
- /package/components/dropdown/dist/styles/{default → classic}/bibStyles-css.d.ts +0 -0
- /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menu-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{tokens-css.d.ts → default/style-menu-css.d.ts} +0 -0
|
@@ -31,10 +31,11 @@ Generate unique names for dependency components.
|
|
|
31
31
|
| [min](#min) | `min` | `string` | "undefined" | The minimum value allowed. This only applies for inputs with a type of `number` and all date formats. |
|
|
32
32
|
| [minLength](#minLength) | `minLength` | `number` | "undefined" | The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`. |
|
|
33
33
|
| [name](#name) | `name` | `string` | | Populates the `name` attribute on the input. |
|
|
34
|
+
| [nested](#nested) | `nested` | `boolean` | | Sets styles for nested operation - removes borders, hides help + error text, and<br />hides accents. |
|
|
34
35
|
| [noValidate](#noValidate) | `noValidate` | `boolean` | false | If set, disables auto-validation on blur. |
|
|
35
36
|
| [onDark](#onDark) | `onDark` | `boolean` | false | Sets onDark styles on input. |
|
|
36
37
|
| [pattern](#pattern) | `pattern` | `string` | | Specifies a regular expression the form control's value should match. |
|
|
37
|
-
| [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text
|
|
38
|
+
| [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text. |
|
|
38
39
|
| [readonly](#readonly) | `readonly` | `boolean` | | Makes the input read-only, but can be set programmatically. |
|
|
39
40
|
| [required](#required) | `required` | `boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
|
|
40
41
|
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
@@ -47,6 +48,7 @@ Generate unique names for dependency components.
|
|
|
47
48
|
| [setCustomValidityTooShort](#setCustomValidityTooShort) | `setCustomValidityTooShort` | `string` | | Custom help text message to display when validity = `tooShort`. |
|
|
48
49
|
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
49
50
|
| [shape](#shape) | | `string` | "classic" | |
|
|
51
|
+
| [simple](#simple) | `simple` | `boolean` | | Simple makes the input render without a border. |
|
|
50
52
|
| [size](#size) | | `string` | "lg" | |
|
|
51
53
|
| [spellcheck](#spellcheck) | `spellcheck` | `string` | | An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`. |
|
|
52
54
|
| [type](#type) | `type` | `string` | | Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `date`, `tel` or `text`. If given value is not allowed or set, defaults to `text`. |
|
|
@@ -58,6 +60,7 @@ Generate unique names for dependency components.
|
|
|
58
60
|
|
|
59
61
|
| Method | Type | Description |
|
|
60
62
|
|------------|----------------------------------------|--------------------------------------------------|
|
|
63
|
+
| [focus](#focus) | `(): void` | Function to set element focus. |
|
|
61
64
|
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
62
65
|
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
63
66
|
|
|
@@ -71,18 +74,23 @@ Generate unique names for dependency components.
|
|
|
71
74
|
|
|
72
75
|
## Slots
|
|
73
76
|
|
|
74
|
-
| Name
|
|
75
|
-
|
|
76
|
-
| [
|
|
77
|
-
| [
|
|
77
|
+
| Name | Description |
|
|
78
|
+
|-----------------|--------------------------------------------------|
|
|
79
|
+
| [displayValue](#displayValue) | Allows custom HTML content to display in place of the value when the input is not focused. |
|
|
80
|
+
| [helpText](#helpText) | Sets the help text displayed below the input. |
|
|
81
|
+
| [label](#label) | Sets the label text for the input. |
|
|
82
|
+
| [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
|
|
78
83
|
|
|
79
84
|
## CSS Shadow Parts
|
|
80
85
|
|
|
81
86
|
| Part | Description |
|
|
82
|
-
|-----------------|--------------------------------------------------|
|
|
87
|
+
|-----------------|--------------------------------------------------|
|
|
88
|
+
| `accent-left` | Use for customizing the style of the left accent element (e.g. padding, margin) |
|
|
89
|
+
| `accent-right` | Use for customizing the style of the right accent element (e.g. padding, margin) |
|
|
83
90
|
| [accentIcon](#accentIcon) | Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon) |
|
|
84
91
|
| [helpText](#helpText) | Use for customizing the style of the helpText element |
|
|
85
92
|
| [iconContainer](#iconContainer) | Use for customizing the style of the iconContainer (e.g. X icon for clearing input value) |
|
|
93
|
+
| [input](#input) | Use for customizing the style of the input element |
|
|
86
94
|
| [label](#label) | Use for customizing the style of the label element |
|
|
87
95
|
| [wrapper](#wrapper) | Use for customizing the style of the root element |
|
|
88
96
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -106,13 +114,19 @@ The default component supports the basic input `type="text"` structure. The `(op
|
|
|
106
114
|
<div class="exampleWrapper">
|
|
107
115
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
108
116
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
109
|
-
<auro-input
|
|
117
|
+
<auro-input>
|
|
118
|
+
<span slot="label">Label</span>
|
|
119
|
+
<span slot="helpText">Help Text</span>
|
|
120
|
+
</auro-input>
|
|
110
121
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
111
122
|
</div>
|
|
112
123
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
113
124
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
|
|
114
125
|
<!-- The below content is automatically added from ./../apiExamples/onDark.html -->
|
|
115
|
-
<auro-input
|
|
126
|
+
<auro-input ondark shape="rounded" size="lg">
|
|
127
|
+
<span slot="label">Label</span>
|
|
128
|
+
<span slot="helpText">Help Text</span>
|
|
129
|
+
</auro-input>
|
|
116
130
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
117
131
|
</div>
|
|
118
132
|
<auro-accordion alignRight>
|
|
@@ -121,14 +135,20 @@ The default component supports the basic input `type="text"` structure. The `(op
|
|
|
121
135
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
122
136
|
|
|
123
137
|
```html
|
|
124
|
-
<auro-input
|
|
138
|
+
<auro-input>
|
|
139
|
+
<span slot="label">Label</span>
|
|
140
|
+
<span slot="helpText">Help Text</span>
|
|
141
|
+
</auro-input>
|
|
125
142
|
```
|
|
126
143
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
127
144
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/onDark.html) -->
|
|
128
145
|
<!-- The below code snippet is automatically added from ./../apiExamples/onDark.html -->
|
|
129
146
|
|
|
130
147
|
```html
|
|
131
|
-
<auro-input
|
|
148
|
+
<auro-input ondark shape="rounded" size="lg">
|
|
149
|
+
<span slot="label">Label</span>
|
|
150
|
+
<span slot="helpText">Help Text</span>
|
|
151
|
+
</auro-input>
|
|
132
152
|
```
|
|
133
153
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
134
154
|
</auro-accordion>
|
|
@@ -141,16 +161,18 @@ Use the `disable` attribute to prevent the user from interacting with the input.
|
|
|
141
161
|
<div class="exampleWrapper">
|
|
142
162
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
|
|
143
163
|
<!-- The below content is automatically added from ./../apiExamples/disabled.html -->
|
|
144
|
-
<auro-input disabled
|
|
145
|
-
<span slot="label">
|
|
164
|
+
<auro-input disabled type="date">
|
|
165
|
+
<span slot="label">Disabled</span>
|
|
166
|
+
<span slot="helpText">Help Text</span>
|
|
146
167
|
</auro-input>
|
|
147
168
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
148
169
|
</div>
|
|
149
170
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
150
171
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
|
|
151
172
|
<!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
152
|
-
<auro-input onDark disabled
|
|
173
|
+
<auro-input onDark disabled type="date">
|
|
153
174
|
<span slot="label">Arrival date</span>
|
|
175
|
+
<span slot="helpText">Help Text</span>
|
|
154
176
|
</auro-input>
|
|
155
177
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
156
178
|
</div>
|
|
@@ -160,8 +182,9 @@ Use the `disable` attribute to prevent the user from interacting with the input.
|
|
|
160
182
|
<!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
|
|
161
183
|
|
|
162
184
|
```html
|
|
163
|
-
<auro-input disabled
|
|
164
|
-
<span slot="label">
|
|
185
|
+
<auro-input disabled type="date">
|
|
186
|
+
<span slot="label">Disabled</span>
|
|
187
|
+
<span slot="helpText">Help Text</span>
|
|
165
188
|
</auro-input>
|
|
166
189
|
```
|
|
167
190
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -169,8 +192,9 @@ Use the `disable` attribute to prevent the user from interacting with the input.
|
|
|
169
192
|
<!-- The below code snippet is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
170
193
|
|
|
171
194
|
```html
|
|
172
|
-
<auro-input onDark disabled
|
|
195
|
+
<auro-input onDark disabled type="date">
|
|
173
196
|
<span slot="label">Arrival date</span>
|
|
197
|
+
<span slot="helpText">Help Text</span>
|
|
174
198
|
</auro-input>
|
|
175
199
|
```
|
|
176
200
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -185,7 +209,10 @@ Set the input mode for the input.
|
|
|
185
209
|
<div class="exampleWrapper">
|
|
186
210
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
|
|
187
211
|
<!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
|
|
188
|
-
<auro-input
|
|
212
|
+
<auro-input inputmode="tel">
|
|
213
|
+
<span slot="label">Telephone</span>
|
|
214
|
+
<span slot="helpText">Help Text</span>
|
|
215
|
+
</auro-input>
|
|
189
216
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
190
217
|
</div>
|
|
191
218
|
<auro-accordion alignRight>
|
|
@@ -194,7 +221,10 @@ Set the input mode for the input.
|
|
|
194
221
|
<!-- The below code snippet is automatically added from ./../apiExamples/inputmode.html -->
|
|
195
222
|
|
|
196
223
|
```html
|
|
197
|
-
<auro-input
|
|
224
|
+
<auro-input inputmode="tel">
|
|
225
|
+
<span slot="label">Telephone</span>
|
|
226
|
+
<span slot="helpText">Help Text</span>
|
|
227
|
+
</auro-input>
|
|
198
228
|
```
|
|
199
229
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
200
230
|
</auro-accordion>
|
|
@@ -205,9 +235,9 @@ Use the `placeholder` attribute to add a custom placeholder message within the e
|
|
|
205
235
|
<div class="exampleWrapper">
|
|
206
236
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/placeholder.html) -->
|
|
207
237
|
<!-- The below content is automatically added from ../apiExamples/placeholder.html -->
|
|
208
|
-
<auro-input placeholder="John Doe"
|
|
238
|
+
<auro-input placeholder="John Doe" required>
|
|
209
239
|
<span slot="label">Full name</span>
|
|
210
|
-
<span slot="
|
|
240
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
211
241
|
</auro-input>
|
|
212
242
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
213
243
|
</div>
|
|
@@ -217,9 +247,9 @@ Use the `placeholder` attribute to add a custom placeholder message within the e
|
|
|
217
247
|
<!-- The below code snippet is automatically added from ../apiExamples/placeholder.html -->
|
|
218
248
|
|
|
219
249
|
```html
|
|
220
|
-
<auro-input placeholder="John Doe"
|
|
250
|
+
<auro-input placeholder="John Doe" required>
|
|
221
251
|
<span slot="label">Full name</span>
|
|
222
|
-
<span slot="
|
|
252
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
223
253
|
</auro-input>
|
|
224
254
|
```
|
|
225
255
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -231,9 +261,9 @@ Use the `value` attribute to programmatically set the value of the input.
|
|
|
231
261
|
<div class="exampleWrapper">
|
|
232
262
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/programmaticValue.html) -->
|
|
233
263
|
<!-- The below content is automatically added from ../apiExamples/programmaticValue.html -->
|
|
234
|
-
<auro-input value="Alaska Airlines is the best!"
|
|
264
|
+
<auro-input value="Alaska Airlines is the best!">
|
|
235
265
|
<span slot="label">Name</span>
|
|
236
|
-
<span slot="
|
|
266
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
237
267
|
</auro-input>
|
|
238
268
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
239
269
|
</div>
|
|
@@ -243,9 +273,9 @@ Use the `value` attribute to programmatically set the value of the input.
|
|
|
243
273
|
<!-- The below code snippet is automatically added from ../apiExamples/programmaticValue.html -->
|
|
244
274
|
|
|
245
275
|
```html
|
|
246
|
-
<auro-input value="Alaska Airlines is the best!"
|
|
276
|
+
<auro-input value="Alaska Airlines is the best!">
|
|
247
277
|
<span slot="label">Name</span>
|
|
248
|
-
<span slot="
|
|
278
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
249
279
|
</auro-input>
|
|
250
280
|
```
|
|
251
281
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -263,9 +293,9 @@ Note: Setting the `value` to `undefined` will also reset the element.
|
|
|
263
293
|
<auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
|
|
264
294
|
<auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
|
|
265
295
|
<br /><br />
|
|
266
|
-
<auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!"
|
|
296
|
+
<auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!">
|
|
267
297
|
<span slot="label">Name</span>
|
|
268
|
-
<span slot="
|
|
298
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
269
299
|
</auro-input>
|
|
270
300
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
271
301
|
</div>
|
|
@@ -278,9 +308,9 @@ Note: Setting the `value` to `undefined` will also reset the element.
|
|
|
278
308
|
<auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
|
|
279
309
|
<auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
|
|
280
310
|
<br /><br />
|
|
281
|
-
<auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!"
|
|
311
|
+
<auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!">
|
|
282
312
|
<span slot="label">Name</span>
|
|
283
|
-
<span slot="
|
|
313
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
284
314
|
</auro-input>
|
|
285
315
|
```
|
|
286
316
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -315,8 +345,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
|
|
|
315
345
|
<div class="exampleWrapper">
|
|
316
346
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxDate.html) -->
|
|
317
347
|
<!-- The below content is automatically added from ../apiExamples/maxDate.html -->
|
|
318
|
-
<auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date."
|
|
348
|
+
<auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date.">
|
|
319
349
|
<span slot="label">Choose a date</span>
|
|
350
|
+
<span slot="helpText">Help Text</span>
|
|
320
351
|
</auro-input>
|
|
321
352
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
322
353
|
</div>
|
|
@@ -326,8 +357,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
|
|
|
326
357
|
<!-- The below code snippet is automatically added from ../apiExamples/maxDate.html -->
|
|
327
358
|
|
|
328
359
|
```html
|
|
329
|
-
<auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date."
|
|
360
|
+
<auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date.">
|
|
330
361
|
<span slot="label">Choose a date</span>
|
|
362
|
+
<span slot="helpText">Help Text</span>
|
|
331
363
|
</auro-input>
|
|
332
364
|
```
|
|
333
365
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -338,8 +370,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
|
|
|
338
370
|
<div class="exampleWrapper">
|
|
339
371
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxNumber.html) -->
|
|
340
372
|
<!-- The below content is automatically added from ../apiExamples/maxNumber.html -->
|
|
341
|
-
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum."
|
|
373
|
+
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
|
|
342
374
|
<span slot="label">Choose a number</span>
|
|
375
|
+
<span slot="helpText">Help Text</span>
|
|
343
376
|
</auro-input>
|
|
344
377
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
345
378
|
</div>
|
|
@@ -349,8 +382,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
|
|
|
349
382
|
<!-- The below code snippet is automatically added from ../apiExamples/maxNumber.html -->
|
|
350
383
|
|
|
351
384
|
```html
|
|
352
|
-
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum."
|
|
385
|
+
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
|
|
353
386
|
<span slot="label">Choose a number</span>
|
|
387
|
+
<span slot="helpText">Help Text</span>
|
|
354
388
|
</auro-input>
|
|
355
389
|
```
|
|
356
390
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -366,8 +400,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
|
|
|
366
400
|
<div class="exampleWrapper">
|
|
367
401
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minDate.html) -->
|
|
368
402
|
<!-- The below content is automatically added from ../apiExamples/minDate.html -->
|
|
369
|
-
<auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date."
|
|
403
|
+
<auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date.">
|
|
370
404
|
<span slot="label">Choose a date</span>
|
|
405
|
+
<span slot="helpText">Help Text</span>
|
|
371
406
|
</auro-input>
|
|
372
407
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
373
408
|
</div>
|
|
@@ -377,8 +412,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
|
|
|
377
412
|
<!-- The below code snippet is automatically added from ../apiExamples/minDate.html -->
|
|
378
413
|
|
|
379
414
|
```html
|
|
380
|
-
<auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date."
|
|
415
|
+
<auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date.">
|
|
381
416
|
<span slot="label">Choose a date</span>
|
|
417
|
+
<span slot="helpText">Help Text</span>
|
|
382
418
|
</auro-input>
|
|
383
419
|
```
|
|
384
420
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -389,8 +425,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
|
|
|
389
425
|
<div class="exampleWrapper">
|
|
390
426
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minNumber.html) -->
|
|
391
427
|
<!-- The below content is automatically added from ../apiExamples/minNumber.html -->
|
|
392
|
-
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum."
|
|
428
|
+
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
|
|
393
429
|
<span slot="label">Choose a number</span>
|
|
430
|
+
<span slot="helpText">Help Text</span>
|
|
394
431
|
</auro-input>
|
|
395
432
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
396
433
|
</div>
|
|
@@ -400,8 +437,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
|
|
|
400
437
|
<!-- The below code snippet is automatically added from ../apiExamples/minNumber.html -->
|
|
401
438
|
|
|
402
439
|
```html
|
|
403
|
-
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum."
|
|
440
|
+
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
|
|
404
441
|
<span slot="label">Choose a number</span>
|
|
442
|
+
<span slot="helpText">Help Text</span>
|
|
405
443
|
</auro-input>
|
|
406
444
|
```
|
|
407
445
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -415,9 +453,9 @@ The `setCustomValidityTooLong` attribute may optionally be used in combination w
|
|
|
415
453
|
<div class="exampleWrapper">
|
|
416
454
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxLength.html) -->
|
|
417
455
|
<!-- The below content is automatically added from ../apiExamples/maxLength.html -->
|
|
418
|
-
<auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered."
|
|
456
|
+
<auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." required>
|
|
419
457
|
<span slot="label">Voucher Code</span>
|
|
420
|
-
<span slot="
|
|
458
|
+
<span slot="helpText">Please enter your 12 character voucher code.</span>
|
|
421
459
|
</auro-input>
|
|
422
460
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
423
461
|
</div>
|
|
@@ -427,9 +465,9 @@ The `setCustomValidityTooLong` attribute may optionally be used in combination w
|
|
|
427
465
|
<!-- The below code snippet is automatically added from ../apiExamples/maxLength.html -->
|
|
428
466
|
|
|
429
467
|
```html
|
|
430
|
-
<auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered."
|
|
468
|
+
<auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." required>
|
|
431
469
|
<span slot="label">Voucher Code</span>
|
|
432
|
-
<span slot="
|
|
470
|
+
<span slot="helpText">Please enter your 12 character voucher code.</span>
|
|
433
471
|
</auro-input>
|
|
434
472
|
```
|
|
435
473
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -443,9 +481,9 @@ The `setCustomValidityTooShort` attribute may optionally be used in combination
|
|
|
443
481
|
<div class="exampleWrapper">
|
|
444
482
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minLength.html) -->
|
|
445
483
|
<!-- The below content is automatically added from ../apiExamples/minLength.html -->
|
|
446
|
-
<auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code."
|
|
484
|
+
<auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." required>
|
|
447
485
|
<span slot="label">Voucher Code</span>
|
|
448
|
-
<span slot="
|
|
486
|
+
<span slot="helpText">Please enter your 4 character voucher code.</span>
|
|
449
487
|
</auro-input>
|
|
450
488
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
451
489
|
</div>
|
|
@@ -455,9 +493,9 @@ The `setCustomValidityTooShort` attribute may optionally be used in combination
|
|
|
455
493
|
<!-- The below code snippet is automatically added from ../apiExamples/minLength.html -->
|
|
456
494
|
|
|
457
495
|
```html
|
|
458
|
-
<auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code."
|
|
496
|
+
<auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." required>
|
|
459
497
|
<span slot="label">Voucher Code</span>
|
|
460
|
-
<span slot="
|
|
498
|
+
<span slot="helpText">Please enter your 4 character voucher code.</span>
|
|
461
499
|
</auro-input>
|
|
462
500
|
```
|
|
463
501
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -471,9 +509,9 @@ The `<auro-input>` component supports setting a custom validity message specific
|
|
|
471
509
|
<div class="exampleWrapper">
|
|
472
510
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/pattern.html) -->
|
|
473
511
|
<!-- The below content is automatically added from ../apiExamples/pattern.html -->
|
|
474
|
-
<auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces"
|
|
512
|
+
<auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces">
|
|
475
513
|
<span slot="label">Username</span>
|
|
476
|
-
<span slot="
|
|
514
|
+
<span slot="helpText">Please enter a username.</span>
|
|
477
515
|
</auro-input>
|
|
478
516
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
479
517
|
</div>
|
|
@@ -483,9 +521,9 @@ The `<auro-input>` component supports setting a custom validity message specific
|
|
|
483
521
|
<!-- The below code snippet is automatically added from ../apiExamples/pattern.html -->
|
|
484
522
|
|
|
485
523
|
```html
|
|
486
|
-
<auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces"
|
|
524
|
+
<auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces">
|
|
487
525
|
<span slot="label">Username</span>
|
|
488
|
-
<span slot="
|
|
526
|
+
<span slot="helpText">Please enter a username.</span>
|
|
489
527
|
</auro-input>
|
|
490
528
|
```
|
|
491
529
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -502,9 +540,9 @@ In this example, the user is able to programmatically change the value of the in
|
|
|
502
540
|
<auro-button id="setReadonlyValueBtn">Set Value to Auro Alaska</auro-button>
|
|
503
541
|
<auro-button id="resetReadonlyValueBtn">Reset</auro-button>
|
|
504
542
|
<br /><br />
|
|
505
|
-
<auro-input readonly
|
|
543
|
+
<auro-input readonly id="readonlyExample">
|
|
506
544
|
<span slot="label">Name</span>
|
|
507
|
-
<span slot="
|
|
545
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
508
546
|
</auro-input>
|
|
509
547
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
510
548
|
</div>
|
|
@@ -517,9 +555,9 @@ In this example, the user is able to programmatically change the value of the in
|
|
|
517
555
|
<auro-button id="setReadonlyValueBtn">Set Value to Auro Alaska</auro-button>
|
|
518
556
|
<auro-button id="resetReadonlyValueBtn">Reset</auro-button>
|
|
519
557
|
<br /><br />
|
|
520
|
-
<auro-input readonly
|
|
558
|
+
<auro-input readonly id="readonlyExample">
|
|
521
559
|
<span slot="label">Name</span>
|
|
522
|
-
<span slot="
|
|
560
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
523
561
|
</auro-input>
|
|
524
562
|
```
|
|
525
563
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -549,9 +587,9 @@ Example use cases for auro-input support the `activeLabel` attribute. If set, th
|
|
|
549
587
|
<div class="exampleWrapper">
|
|
550
588
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/activeLabel.html) -->
|
|
551
589
|
<!-- The below content is automatically added from ../apiExamples/activeLabel.html -->
|
|
552
|
-
<auro-input activeLabel
|
|
590
|
+
<auro-input activeLabel>
|
|
553
591
|
<span slot="label">Address</span>
|
|
554
|
-
<span slot="
|
|
592
|
+
<span slot="helpText">Please enter your home address.</span>
|
|
555
593
|
</auro-input>
|
|
556
594
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
557
595
|
</div>
|
|
@@ -561,9 +599,9 @@ Example use cases for auro-input support the `activeLabel` attribute. If set, th
|
|
|
561
599
|
<!-- The below code snippet is automatically added from ../apiExamples/activeLabel.html -->
|
|
562
600
|
|
|
563
601
|
```html
|
|
564
|
-
<auro-input activeLabel
|
|
602
|
+
<auro-input activeLabel>
|
|
565
603
|
<span slot="label">Address</span>
|
|
566
|
-
<span slot="
|
|
604
|
+
<span slot="helpText">Please enter your home address.</span>
|
|
567
605
|
</auro-input>
|
|
568
606
|
```
|
|
569
607
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -575,9 +613,9 @@ For use cases where the field is `required`, but live validation is not wanted,
|
|
|
575
613
|
<div class="exampleWrapper">
|
|
576
614
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/noValidate.html) -->
|
|
577
615
|
<!-- The below content is automatically added from ../apiExamples/noValidate.html -->
|
|
578
|
-
<auro-input noValidate required
|
|
616
|
+
<auro-input noValidate required>
|
|
579
617
|
<span slot="label">Address</span>
|
|
580
|
-
<span slot="
|
|
618
|
+
<span slot="helpText">Please enter your home address.</span>
|
|
581
619
|
</auro-input>
|
|
582
620
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
583
621
|
</div>
|
|
@@ -587,9 +625,9 @@ For use cases where the field is `required`, but live validation is not wanted,
|
|
|
587
625
|
<!-- The below code snippet is automatically added from ../apiExamples/noValidate.html -->
|
|
588
626
|
|
|
589
627
|
```html
|
|
590
|
-
<auro-input noValidate required
|
|
628
|
+
<auro-input noValidate required>
|
|
591
629
|
<span slot="label">Address</span>
|
|
592
|
-
<span slot="
|
|
630
|
+
<span slot="helpText">Please enter your home address.</span>
|
|
593
631
|
</auro-input>
|
|
594
632
|
```
|
|
595
633
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -608,7 +646,10 @@ See [IMask](https://imask.js.org/) for more information on how to configure a ma
|
|
|
608
646
|
<div class="exampleWrapper">
|
|
609
647
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/format.html) -->
|
|
610
648
|
<!-- The below content is automatically added from ../apiExamples/format.html -->
|
|
611
|
-
<auro-input
|
|
649
|
+
<auro-input format="47440000">
|
|
650
|
+
<span slot="label">Custom format</span>
|
|
651
|
+
<span slot="helpText">Format is: 47440000</span>
|
|
652
|
+
</auro-input>
|
|
612
653
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
613
654
|
</div>
|
|
614
655
|
<auro-accordion alignRight>
|
|
@@ -617,7 +658,10 @@ See [IMask](https://imask.js.org/) for more information on how to configure a ma
|
|
|
617
658
|
<!-- The below code snippet is automatically added from ../apiExamples/format.html -->
|
|
618
659
|
|
|
619
660
|
```html
|
|
620
|
-
<auro-input
|
|
661
|
+
<auro-input format="47440000">
|
|
662
|
+
<span slot="label">Custom format</span>
|
|
663
|
+
<span slot="helpText">Format is: 47440000</span>
|
|
664
|
+
</auro-input>
|
|
621
665
|
```
|
|
622
666
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
623
667
|
</auro-accordion>
|
|
@@ -636,9 +680,9 @@ When the validity check fails, the validityState equals `valueMissing`. The erro
|
|
|
636
680
|
<div class="exampleWrapper">
|
|
637
681
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/required.html) -->
|
|
638
682
|
<!-- The below content is automatically added from ../apiExamples/required.html -->
|
|
639
|
-
<auro-input required
|
|
683
|
+
<auro-input required placeholder="John Doe">
|
|
640
684
|
<span slot="label">Full name</span>
|
|
641
|
-
<span slot="
|
|
685
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
642
686
|
</auro-input>
|
|
643
687
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
644
688
|
</div>
|
|
@@ -648,9 +692,37 @@ When the validity check fails, the validityState equals `valueMissing`. The erro
|
|
|
648
692
|
<!-- The below code snippet is automatically added from ../apiExamples/required.html -->
|
|
649
693
|
|
|
650
694
|
```html
|
|
651
|
-
<auro-input required
|
|
695
|
+
<auro-input required placeholder="John Doe">
|
|
652
696
|
<span slot="label">Full name</span>
|
|
653
|
-
<span slot="
|
|
697
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
698
|
+
</auro-input>
|
|
699
|
+
```
|
|
700
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
701
|
+
</auro-accordion>
|
|
702
|
+
|
|
703
|
+
### Custom optional label <a name="optionalLabel"></a>
|
|
704
|
+
The `<auro-input>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
|
|
705
|
+
|
|
706
|
+
<div class="exampleWrapper">
|
|
707
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optionalLabel.html) -->
|
|
708
|
+
<!-- The below content is automatically added from ./../apiExamples/optionalLabel.html -->
|
|
709
|
+
<auro-input placeholder="John Doe" bordered>
|
|
710
|
+
<span slot="label">Full name</span>
|
|
711
|
+
<span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
|
|
712
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
713
|
+
</auro-input>
|
|
714
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
715
|
+
</div>
|
|
716
|
+
<auro-accordion alignRight>
|
|
717
|
+
<span slot="trigger">See code</span>
|
|
718
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optionalLabel.html) -->
|
|
719
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/optionalLabel.html -->
|
|
720
|
+
|
|
721
|
+
```html
|
|
722
|
+
<auro-input placeholder="John Doe" bordered>
|
|
723
|
+
<span slot="label">Full name</span>
|
|
724
|
+
<span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
|
|
725
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
654
726
|
</auro-input>
|
|
655
727
|
```
|
|
656
728
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -662,9 +734,9 @@ Use the `validateOnInput` attribute to enable live validation on the `input` eve
|
|
|
662
734
|
<div class="exampleWrapper">
|
|
663
735
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/validateOnInput.html) -->
|
|
664
736
|
<!-- The below content is automatically added from ../apiExamples/validateOnInput.html -->
|
|
665
|
-
<auro-input validateOnInput
|
|
737
|
+
<auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
|
|
666
738
|
<span slot="label">Full Name</span>
|
|
667
|
-
<span slot="
|
|
739
|
+
<span slot="helpText">Please enter your full name as it appears on the card.</span>
|
|
668
740
|
</auro-input>
|
|
669
741
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
670
742
|
</div>
|
|
@@ -674,9 +746,9 @@ Use the `validateOnInput` attribute to enable live validation on the `input` eve
|
|
|
674
746
|
<!-- The below code snippet is automatically added from ../apiExamples/validateOnInput.html -->
|
|
675
747
|
|
|
676
748
|
```html
|
|
677
|
-
<auro-input validateOnInput
|
|
749
|
+
<auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
|
|
678
750
|
<span slot="label">Full Name</span>
|
|
679
|
-
<span slot="
|
|
751
|
+
<span slot="helpText">Please enter your full name as it appears on the card.</span>
|
|
680
752
|
</auro-input>
|
|
681
753
|
```
|
|
682
754
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -690,9 +762,9 @@ The `setCustomValidity` attribute can be used to set a custom string for all val
|
|
|
690
762
|
<div class="exampleWrapper">
|
|
691
763
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/setCustomValidity.html) -->
|
|
692
764
|
<!-- The below content is automatically added from ../apiExamples/setCustomValidity.html -->
|
|
693
|
-
<auro-input
|
|
765
|
+
<auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
|
|
694
766
|
<span slot="label">Full Name</span>
|
|
695
|
-
<span slot="
|
|
767
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
696
768
|
</auro-input>
|
|
697
769
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
698
770
|
</div>
|
|
@@ -702,9 +774,9 @@ The `setCustomValidity` attribute can be used to set a custom string for all val
|
|
|
702
774
|
<!-- The below code snippet is automatically added from ../apiExamples/setCustomValidity.html -->
|
|
703
775
|
|
|
704
776
|
```html
|
|
705
|
-
<auro-input
|
|
777
|
+
<auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
|
|
706
778
|
<span slot="label">Full Name</span>
|
|
707
|
-
<span slot="
|
|
779
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
708
780
|
</auro-input>
|
|
709
781
|
```
|
|
710
782
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -721,9 +793,9 @@ A custom error message can be set using the `error` attribute, or it can be used
|
|
|
721
793
|
<auro-button id="setCustomErrorBtn">Set Custom Error</auro-button>
|
|
722
794
|
<auro-button id="setCustomErrorClearBtn">Clear Custom Error</auro-button>
|
|
723
795
|
<br /><br />
|
|
724
|
-
<auro-input id="setCustomErrorExample" error="Initial error attribute value"
|
|
796
|
+
<auro-input id="setCustomErrorExample" error="Initial error attribute value">
|
|
725
797
|
<span slot="label">Name</span>
|
|
726
|
-
<span slot="
|
|
798
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
727
799
|
</auro-input>
|
|
728
800
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
729
801
|
</div>
|
|
@@ -736,9 +808,9 @@ A custom error message can be set using the `error` attribute, or it can be used
|
|
|
736
808
|
<auro-button id="setCustomErrorBtn">Set Custom Error</auro-button>
|
|
737
809
|
<auro-button id="setCustomErrorClearBtn">Clear Custom Error</auro-button>
|
|
738
810
|
<br /><br />
|
|
739
|
-
<auro-input id="setCustomErrorExample" error="Initial error attribute value"
|
|
811
|
+
<auro-input id="setCustomErrorExample" error="Initial error attribute value">
|
|
740
812
|
<span slot="label">Name</span>
|
|
741
|
-
<span slot="
|
|
813
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
742
814
|
</auro-input>
|
|
743
815
|
```
|
|
744
816
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -770,9 +842,9 @@ export function customError() {
|
|
|
770
842
|
<auro-button onDark id="setCustomErrorBtnOnDark">Set Custom Error</auro-button>
|
|
771
843
|
<auro-button onDark id="setCustomErrorClearBtnOnDark">Clear Custom Error</auro-button>
|
|
772
844
|
<br /><br />
|
|
773
|
-
<auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value"
|
|
845
|
+
<auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value">
|
|
774
846
|
<span slot="label">Name</span>
|
|
775
|
-
<span slot="
|
|
847
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
776
848
|
</auro-input>
|
|
777
849
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
778
850
|
</div>
|
|
@@ -785,9 +857,9 @@ export function customError() {
|
|
|
785
857
|
<auro-button onDark id="setCustomErrorBtnOnDark">Set Custom Error</auro-button>
|
|
786
858
|
<auro-button onDark id="setCustomErrorClearBtnOnDark">Clear Custom Error</auro-button>
|
|
787
859
|
<br /><br />
|
|
788
|
-
<auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value"
|
|
860
|
+
<auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value">
|
|
789
861
|
<span slot="label">Name</span>
|
|
790
|
-
<span slot="
|
|
862
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
791
863
|
</auro-input>
|
|
792
864
|
```
|
|
793
865
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -822,18 +894,18 @@ Default help text will be added to the input `type="password"` if custom help te
|
|
|
822
894
|
<div class="exampleWrapper">
|
|
823
895
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/password.html) -->
|
|
824
896
|
<!-- The below content is automatically added from ../apiExamples/password.html -->
|
|
825
|
-
<auro-input type="password" required
|
|
897
|
+
<auro-input type="password" required>
|
|
826
898
|
<span slot="label">Password</span>
|
|
827
|
-
<span slot="
|
|
899
|
+
<span slot="helpText">Please enter a secure password.</span>
|
|
828
900
|
</auro-input>
|
|
829
901
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
830
902
|
</div>
|
|
831
903
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
832
904
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/onDarkPassword.html) -->
|
|
833
905
|
<!-- The below content is automatically added from ../apiExamples/onDarkPassword.html -->
|
|
834
|
-
<auro-input onDark type="password" required
|
|
906
|
+
<auro-input onDark type="password" required>
|
|
835
907
|
<span slot="label">Password</span>
|
|
836
|
-
<span slot="
|
|
908
|
+
<span slot="helpText">Please enter a secure password.</span>
|
|
837
909
|
</auro-input>
|
|
838
910
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
839
911
|
</div>
|
|
@@ -843,9 +915,9 @@ Default help text will be added to the input `type="password"` if custom help te
|
|
|
843
915
|
<!-- The below code snippet is automatically added from ../apiExamples/onDarkPassword.html -->
|
|
844
916
|
|
|
845
917
|
```html
|
|
846
|
-
<auro-input onDark type="password" required
|
|
918
|
+
<auro-input onDark type="password" required>
|
|
847
919
|
<span slot="label">Password</span>
|
|
848
|
-
<span slot="
|
|
920
|
+
<span slot="helpText">Please enter a secure password.</span>
|
|
849
921
|
</auro-input>
|
|
850
922
|
```
|
|
851
923
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -860,9 +932,9 @@ Default help text will be added to the input `type="email"` if custom help text
|
|
|
860
932
|
<div class="exampleWrapper">
|
|
861
933
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/email.html) -->
|
|
862
934
|
<!-- The below content is automatically added from ../apiExamples/email.html -->
|
|
863
|
-
<auro-input type="email"
|
|
935
|
+
<auro-input type="email" required>
|
|
864
936
|
<span slot="label">Email address</span>
|
|
865
|
-
<span slot="
|
|
937
|
+
<span slot="helpText">Please enter your email address.</span>
|
|
866
938
|
</auro-input>
|
|
867
939
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
868
940
|
</div>
|
|
@@ -872,9 +944,9 @@ Default help text will be added to the input `type="email"` if custom help text
|
|
|
872
944
|
<!-- The below code snippet is automatically added from ../apiExamples/email.html -->
|
|
873
945
|
|
|
874
946
|
```html
|
|
875
|
-
<auro-input type="email"
|
|
947
|
+
<auro-input type="email" required>
|
|
876
948
|
<span slot="label">Email address</span>
|
|
877
|
-
<span slot="
|
|
949
|
+
<span slot="helpText">Please enter your email address.</span>
|
|
878
950
|
</auro-input>
|
|
879
951
|
```
|
|
880
952
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -889,9 +961,9 @@ This `number` input type should only be used for incremental numeric values, mea
|
|
|
889
961
|
<div class="exampleWrapper">
|
|
890
962
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/number.html) -->
|
|
891
963
|
<!-- The below content is automatically added from ../apiExamples/number.html -->
|
|
892
|
-
<auro-input type="number"
|
|
964
|
+
<auro-input type="number" required>
|
|
893
965
|
<span slot="label">Number of Passengers</span>
|
|
894
|
-
<span slot="
|
|
966
|
+
<span slot="helpText">Please enter the number of passengers.</span>
|
|
895
967
|
</auro-input>
|
|
896
968
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
897
969
|
</div>
|
|
@@ -901,9 +973,9 @@ This `number` input type should only be used for incremental numeric values, mea
|
|
|
901
973
|
<!-- The below code snippet is automatically added from ../apiExamples/number.html -->
|
|
902
974
|
|
|
903
975
|
```html
|
|
904
|
-
<auro-input type="number"
|
|
976
|
+
<auro-input type="number" required>
|
|
905
977
|
<span slot="label">Number of Passengers</span>
|
|
906
|
-
<span slot="
|
|
978
|
+
<span slot="helpText">Please enter the number of passengers.</span>
|
|
907
979
|
</auro-input>
|
|
908
980
|
```
|
|
909
981
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -918,9 +990,9 @@ Default help text will be added to the input `type="credit-card"` if custom help
|
|
|
918
990
|
<div class="exampleWrapper">
|
|
919
991
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/creditCard.html) -->
|
|
920
992
|
<!-- The below content is automatically added from ../apiExamples/creditCard.html -->
|
|
921
|
-
<auro-input type="credit-card"
|
|
993
|
+
<auro-input type="credit-card" required>
|
|
922
994
|
<span slot="label">Card number</span>
|
|
923
|
-
<span slot="
|
|
995
|
+
<span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
|
|
924
996
|
</auro-input>
|
|
925
997
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
926
998
|
</div>
|
|
@@ -930,9 +1002,9 @@ Default help text will be added to the input `type="credit-card"` if custom help
|
|
|
930
1002
|
<!-- The below code snippet is automatically added from ../apiExamples/creditCard.html -->
|
|
931
1003
|
|
|
932
1004
|
```html
|
|
933
|
-
<auro-input type="credit-card"
|
|
1005
|
+
<auro-input type="credit-card" required>
|
|
934
1006
|
<span slot="label">Card number</span>
|
|
935
|
-
<span slot="
|
|
1007
|
+
<span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
|
|
936
1008
|
</auro-input>
|
|
937
1009
|
```
|
|
938
1010
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -944,9 +1016,9 @@ Use the `type="credit-card"` and `icon` attributes for a credit card formatted i
|
|
|
944
1016
|
<div class="exampleWrapper">
|
|
945
1017
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/creditCardIcon.html) -->
|
|
946
1018
|
<!-- The below content is automatically added from ../apiExamples/creditCardIcon.html -->
|
|
947
|
-
<auro-input icon type="credit-card"
|
|
1019
|
+
<auro-input icon type="credit-card" required>
|
|
948
1020
|
<span slot="label">Card number</span>
|
|
949
|
-
<span slot="
|
|
1021
|
+
<span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
|
|
950
1022
|
</auro-input>
|
|
951
1023
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
952
1024
|
</div>
|
|
@@ -957,9 +1029,9 @@ Use the `type="credit-card"` and `icon` attributes for a credit card formatted i
|
|
|
957
1029
|
<!-- The below code snippet is automatically added from ../apiExamples/creditCardIcon.html -->
|
|
958
1030
|
|
|
959
1031
|
```html
|
|
960
|
-
<auro-input icon type="credit-card"
|
|
1032
|
+
<auro-input icon type="credit-card" required>
|
|
961
1033
|
<span slot="label">Card number</span>
|
|
962
|
-
<span slot="
|
|
1034
|
+
<span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
|
|
963
1035
|
</auro-input>
|
|
964
1036
|
```
|
|
965
1037
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -972,7 +1044,10 @@ Use the `type="tel"` attribute for a phone number formatted input. The default f
|
|
|
972
1044
|
<div class="exampleWrapper">
|
|
973
1045
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/tel.html) -->
|
|
974
1046
|
<!-- The below content is automatically added from ../apiExamples/tel.html -->
|
|
975
|
-
<auro-input type="tel"
|
|
1047
|
+
<auro-input type="tel">
|
|
1048
|
+
<span slot="label">Telephone</span>
|
|
1049
|
+
<span slot="helpText">Help Text</span>
|
|
1050
|
+
</auro-input>
|
|
976
1051
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
977
1052
|
</div>
|
|
978
1053
|
<auro-accordion alignRight>
|
|
@@ -981,7 +1056,10 @@ Use the `type="tel"` attribute for a phone number formatted input. The default f
|
|
|
981
1056
|
<!-- The below code snippet is automatically added from ../apiExamples/tel.html -->
|
|
982
1057
|
|
|
983
1058
|
```html
|
|
984
|
-
<auro-input type="tel"
|
|
1059
|
+
<auro-input type="tel">
|
|
1060
|
+
<span slot="label">Telephone</span>
|
|
1061
|
+
<span slot="helpText">Help Text</span>
|
|
1062
|
+
</auro-input>
|
|
985
1063
|
```
|
|
986
1064
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
987
1065
|
</auro-accordion>
|
|
@@ -993,7 +1071,10 @@ Use the `format` attribute to set a custom phone number format.
|
|
|
993
1071
|
<div class="exampleWrapper">
|
|
994
1072
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/telFormat.html) -->
|
|
995
1073
|
<!-- The below content is automatically added from ../apiExamples/telFormat.html -->
|
|
996
|
-
<auro-input type="tel" format="+22 999 99 9999"
|
|
1074
|
+
<auro-input type="tel" format="+22 999 99 9999">
|
|
1075
|
+
<span slot="label">Telephone</span>
|
|
1076
|
+
<span slot="helpText">Help Text</span>
|
|
1077
|
+
</auro-input>
|
|
997
1078
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
998
1079
|
</div>
|
|
999
1080
|
<auro-accordion alignRight>
|
|
@@ -1002,7 +1083,10 @@ Use the `format` attribute to set a custom phone number format.
|
|
|
1002
1083
|
<!-- The below code snippet is automatically added from ../apiExamples/telFormat.html -->
|
|
1003
1084
|
|
|
1004
1085
|
```html
|
|
1005
|
-
<auro-input type="tel" format="+22 999 99 9999"
|
|
1086
|
+
<auro-input type="tel" format="+22 999 99 9999">
|
|
1087
|
+
<span slot="label">Telephone</span>
|
|
1088
|
+
<span slot="helpText">Help Text</span>
|
|
1089
|
+
</auro-input>
|
|
1006
1090
|
```
|
|
1007
1091
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1008
1092
|
</auro-accordion>
|
|
@@ -1014,8 +1098,9 @@ Use the `type="date"` attribute for a date formatted input. The default date for
|
|
|
1014
1098
|
<div class="exampleWrapper">
|
|
1015
1099
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthDayYear.html) -->
|
|
1016
1100
|
<!-- The below content is automatically added from ../apiExamples/monthDayYear.html -->
|
|
1017
|
-
<auro-input type="date"
|
|
1101
|
+
<auro-input type="date">
|
|
1018
1102
|
<span slot="label">Arrival date</span>
|
|
1103
|
+
<span slot="helpText">Help Text</span>
|
|
1019
1104
|
</auro-input>
|
|
1020
1105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1021
1106
|
</div>
|
|
@@ -1025,8 +1110,9 @@ Use the `type="date"` attribute for a date formatted input. The default date for
|
|
|
1025
1110
|
<!-- The below code snippet is automatically added from ../apiExamples/monthDayYear.html -->
|
|
1026
1111
|
|
|
1027
1112
|
```html
|
|
1028
|
-
<auro-input type="date"
|
|
1113
|
+
<auro-input type="date">
|
|
1029
1114
|
<span slot="label">Arrival date</span>
|
|
1115
|
+
<span slot="helpText">Help Text</span>
|
|
1030
1116
|
</auro-input>
|
|
1031
1117
|
```
|
|
1032
1118
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1039,8 +1125,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
|
|
|
1039
1125
|
<div class="exampleWrapper">
|
|
1040
1126
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/yearMonthDay.html) -->
|
|
1041
1127
|
<!-- The below content is automatically added from ../apiExamples/yearMonthDay.html -->
|
|
1042
|
-
<auro-input type="date" format="yyyy/mm/dd"
|
|
1128
|
+
<auro-input type="date" format="yyyy/mm/dd">
|
|
1043
1129
|
<span slot="label">Arrival date</span>
|
|
1130
|
+
<span slot="helpText">Help Text</span>
|
|
1044
1131
|
</auro-input>
|
|
1045
1132
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1046
1133
|
</div>
|
|
@@ -1050,8 +1137,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
|
|
|
1050
1137
|
<!-- The below code snippet is automatically added from ../apiExamples/yearMonthDay.html -->
|
|
1051
1138
|
|
|
1052
1139
|
```html
|
|
1053
|
-
<auro-input type="date" format="yyyy/mm/dd"
|
|
1140
|
+
<auro-input type="date" format="yyyy/mm/dd">
|
|
1054
1141
|
<span slot="label">Arrival date</span>
|
|
1142
|
+
<span slot="helpText">Help Text</span>
|
|
1055
1143
|
</auro-input>
|
|
1056
1144
|
```
|
|
1057
1145
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1059,8 +1147,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
|
|
|
1059
1147
|
<div class="exampleWrapper">
|
|
1060
1148
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthYear.html) -->
|
|
1061
1149
|
<!-- The below content is automatically added from ../apiExamples/monthYear.html -->
|
|
1062
|
-
<auro-input type="date" format="mm/yy"
|
|
1150
|
+
<auro-input type="date" format="mm/yy">
|
|
1063
1151
|
<span slot="label">Expiration date</span>
|
|
1152
|
+
<span slot="helpText">Help Text</span>
|
|
1064
1153
|
</auro-input>
|
|
1065
1154
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1066
1155
|
</div>
|
|
@@ -1070,8 +1159,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
|
|
|
1070
1159
|
<!-- The below code snippet is automatically added from ../apiExamples/monthYear.html -->
|
|
1071
1160
|
|
|
1072
1161
|
```html
|
|
1073
|
-
<auro-input type="date" format="mm/yy"
|
|
1162
|
+
<auro-input type="date" format="mm/yy">
|
|
1074
1163
|
<span slot="label">Expiration date</span>
|
|
1164
|
+
<span slot="helpText">Help Text</span>
|
|
1075
1165
|
</auro-input>
|
|
1076
1166
|
```
|
|
1077
1167
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1079,8 +1169,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
|
|
|
1079
1169
|
<div class="exampleWrapper">
|
|
1080
1170
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/day.html) -->
|
|
1081
1171
|
<!-- The below content is automatically added from ../apiExamples/day.html -->
|
|
1082
|
-
<auro-input type="date" format="dd"
|
|
1172
|
+
<auro-input type="date" format="dd">
|
|
1083
1173
|
<span slot="label">Day</span>
|
|
1174
|
+
<span slot="helpText">Help Text</span>
|
|
1084
1175
|
</auro-input>
|
|
1085
1176
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1086
1177
|
</div>
|
|
@@ -1090,8 +1181,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
|
|
|
1090
1181
|
<!-- The below code snippet is automatically added from ../apiExamples/day.html -->
|
|
1091
1182
|
|
|
1092
1183
|
```html
|
|
1093
|
-
<auro-input type="date" format="dd"
|
|
1184
|
+
<auro-input type="date" format="dd">
|
|
1094
1185
|
<span slot="label">Day</span>
|
|
1186
|
+
<span slot="helpText">Help Text</span>
|
|
1095
1187
|
</auro-input>
|
|
1096
1188
|
```
|
|
1097
1189
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1108,9 +1200,9 @@ Use the `reset()` method to reset the `<auro-input>`'s `value` and `validity` st
|
|
|
1108
1200
|
<!-- The below content is automatically added from ../apiExamples/resetState.html -->
|
|
1109
1201
|
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
1110
1202
|
<br /><br />
|
|
1111
|
-
<auro-input id="resetStateExample"
|
|
1203
|
+
<auro-input id="resetStateExample" minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
|
|
1112
1204
|
<span slot="label">Full Name</span>
|
|
1113
|
-
<span slot="
|
|
1205
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
1114
1206
|
</auro-input>
|
|
1115
1207
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1116
1208
|
</div>
|
|
@@ -1122,9 +1214,9 @@ Use the `reset()` method to reset the `<auro-input>`'s `value` and `validity` st
|
|
|
1122
1214
|
```html
|
|
1123
1215
|
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
1124
1216
|
<br /><br />
|
|
1125
|
-
<auro-input id="resetStateExample"
|
|
1217
|
+
<auro-input id="resetStateExample" minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
|
|
1126
1218
|
<span slot="label">Full Name</span>
|
|
1127
|
-
<span slot="
|
|
1219
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
1128
1220
|
</auro-input>
|
|
1129
1221
|
```
|
|
1130
1222
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1150,12 +1242,14 @@ Example illustrates using a JavaScript function attached to an `auro-button` com
|
|
|
1150
1242
|
<div class="exampleWrapper">
|
|
1151
1243
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/swapValue.html) -->
|
|
1152
1244
|
<!-- The below content is automatically added from ../apiExamples/swapValue.html -->
|
|
1153
|
-
<auro-input id="swapExampleLeft"
|
|
1245
|
+
<auro-input id="swapExampleLeft">
|
|
1154
1246
|
<span slot="label">Left Input</span>
|
|
1247
|
+
<span slot="helpText">Help Text</span>
|
|
1155
1248
|
</auro-input>
|
|
1156
1249
|
<auro-button id="swapExampleBtn">Swap Values</auro-button>
|
|
1157
|
-
<auro-input id="swapExampleRight"
|
|
1250
|
+
<auro-input id="swapExampleRight">
|
|
1158
1251
|
<span slot="label">Right Input</span>
|
|
1252
|
+
<span slot="helpText">Help Text</span>
|
|
1159
1253
|
</auro-input>
|
|
1160
1254
|
<style>
|
|
1161
1255
|
#swapExampleWrapper {
|
|
@@ -1180,12 +1274,14 @@ Example illustrates using a JavaScript function attached to an `auro-button` com
|
|
|
1180
1274
|
<!-- The below code snippet is automatically added from ../apiExamples/swapValue.html -->
|
|
1181
1275
|
|
|
1182
1276
|
```html
|
|
1183
|
-
<auro-input id="swapExampleLeft"
|
|
1277
|
+
<auro-input id="swapExampleLeft">
|
|
1184
1278
|
<span slot="label">Left Input</span>
|
|
1279
|
+
<span slot="helpText">Help Text</span>
|
|
1185
1280
|
</auro-input>
|
|
1186
1281
|
<auro-button id="swapExampleBtn">Swap Values</auro-button>
|
|
1187
|
-
<auro-input id="swapExampleRight"
|
|
1282
|
+
<auro-input id="swapExampleRight">
|
|
1188
1283
|
<span slot="label">Right Input</span>
|
|
1284
|
+
<span slot="helpText">Help Text</span>
|
|
1189
1285
|
</auro-input>
|
|
1190
1286
|
<style>
|
|
1191
1287
|
#swapExampleWrapper {
|
|
@@ -1233,7 +1329,9 @@ The component may be restyled using the following code sample and changing the v
|
|
|
1233
1329
|
<!-- The below code snippet is automatically added from ../src/styles/tokens.scss -->
|
|
1234
1330
|
|
|
1235
1331
|
```scss
|
|
1236
|
-
|
|
1332
|
+
/* stylelint-disable custom-property-empty-line-before */
|
|
1333
|
+
|
|
1334
|
+
@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
1237
1335
|
|
|
1238
1336
|
$ds-basic-color-border-bold: #585e67;
|
|
1239
1337
|
|
|
@@ -1247,7 +1345,6 @@ $ds-basic-color-border-bold: #585e67;
|
|
|
1247
1345
|
--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
1248
1346
|
--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #{v.$ds-basic-color-status-error});
|
|
1249
1347
|
|
|
1250
|
-
//--ds-auro-input-outline-color: transparent;
|
|
1251
1348
|
--ds-auro-input-outline-color: transparent;
|
|
1252
1349
|
}
|
|
1253
1350
|
|
|
@@ -1259,7 +1356,7 @@ $ds-basic-color-border-bold: #585e67;
|
|
|
1259
1356
|
--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
1260
1357
|
--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
1261
1358
|
--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
1262
|
-
--ds-auro-input-error-icon-color: var(--ds-
|
|
1359
|
+
--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #{v.$ds-basic-color-status-error-subtle});
|
|
1263
1360
|
|
|
1264
1361
|
--ds-auro-input-outline-color: transparent;
|
|
1265
1362
|
}
|