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