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