@aurodesignsystem-dev/auro-formkit 0.0.0-pr1497.6 → 0.0.0-pr1499.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.min.js +27 -11
- package/components/combobox/demo/getting-started.min.js +27 -11
- package/components/combobox/demo/index.min.js +27 -11
- package/components/combobox/dist/index.js +27 -11
- package/components/combobox/dist/registered.js +27 -11
- package/components/counter/demo/customize.min.js +20 -2
- package/components/counter/demo/index.min.js +20 -2
- package/components/counter/dist/index.js +1 -1
- package/components/counter/dist/registered.js +1 -1
- package/components/datepicker/demo/customize.md +477 -384
- package/components/datepicker/demo/customize.min.js +43 -17
- package/components/datepicker/demo/index.md +0 -1
- package/components/datepicker/demo/index.min.js +43 -17
- package/components/datepicker/dist/index.js +43 -17
- package/components/datepicker/dist/registered.js +43 -17
- package/components/datepicker/dist/src/auro-datepicker.d.ts +2 -2
- package/components/dropdown/demo/customize.min.js +19 -1
- package/components/dropdown/demo/getting-started.min.js +19 -1
- package/components/dropdown/demo/index.min.js +19 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +2 -0
- package/components/dropdown/dist/index.js +19 -1
- package/components/dropdown/dist/registered.js +19 -1
- package/components/form/demo/customize.min.js +118 -36
- package/components/form/demo/getting-started.min.js +118 -36
- package/components/form/demo/index.min.js +118 -36
- package/components/form/demo/registerDemoDeps.min.js +118 -36
- package/components/input/demo/customize.md +539 -472
- package/components/input/demo/customize.min.js +6 -2
- package/components/input/demo/getting-started.min.js +6 -2
- package/components/input/demo/index.min.js +6 -2
- package/components/input/dist/index.js +6 -2
- package/components/input/dist/registered.js +6 -2
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.min.js +20 -2
- package/components/select/demo/getting-started.min.js +20 -2
- package/components/select/demo/index.min.js +20 -2
- package/components/select/dist/index.js +20 -2
- package/components/select/dist/registered.js +20 -2
- package/custom-elements.json +568 -568
- package/package.json +1 -1
|
@@ -6,24 +6,25 @@
|
|
|
6
6
|
<span slot="mobileToggleExpanded">View Less</span>
|
|
7
7
|
<auro-anchorlink fluid href="#appearance">Appearance</auro-anchorlink>
|
|
8
8
|
<auro-anchorlink fluid href="#activeLabel" class="level2 body-xs">Active Label</auro-anchorlink>
|
|
9
|
+
<auro-anchorlink fluid href="#cssParts" class="level2 body-xs">CSS Shadow Parts</auro-anchorlink>
|
|
9
10
|
<auro-anchorlink fluid href="#dvInputOnly" class="level2 body-xs">Display Value Input Only</auro-anchorlink>
|
|
10
11
|
<auro-anchorlink fluid href="#icon" class="level2 body-xs">Icon</auro-anchorlink>
|
|
11
12
|
<auro-anchorlink fluid href="#lightDarkBackground" class="level2 body-xs">Light vs. Dark Background</auro-anchorlink>
|
|
12
|
-
<auro-anchorlink fluid href="#
|
|
13
|
+
<auro-anchorlink fluid href="#localization" class="level2 body-xs">Localization</auro-anchorlink>
|
|
14
|
+
<auro-anchorlink fluid href="#nested" class="level2 body-xs">Nested</auro-anchorlink>
|
|
13
15
|
<auro-anchorlink fluid href="#optionalFlag" class="level2 body-xs">Optional Flag</auro-anchorlink>
|
|
16
|
+
<auro-anchorlink fluid href="#placeholder" class="level2 body-xs">Placeholder</auro-anchorlink>
|
|
14
17
|
<auro-anchorlink fluid href="#simple" class="level2 body-xs">Simple</auro-anchorlink>
|
|
15
|
-
<auro-anchorlink fluid href="#nested" class="level2 body-xs">Nested</auro-anchorlink>
|
|
16
18
|
<auro-anchorlink fluid href="#cssTokens" class="level2 body-xs">Tokens</auro-anchorlink>
|
|
17
|
-
<auro-anchorlink fluid href="#cssParts" class="level2 body-xs">CSS Shadow Parts</auro-anchorlink>
|
|
18
19
|
<auro-anchorlink fluid href="#behavior">Behavior</auro-anchorlink>
|
|
19
20
|
<auro-anchorlink fluid href="#autocapitalize" class="level2 body-xs">Autocapitalize</auro-anchorlink>
|
|
20
21
|
<auro-anchorlink fluid href="#autocomplete" class="level2 body-xs">Autocomplete</auro-anchorlink>
|
|
21
22
|
<auro-anchorlink fluid href="#autocorrect" class="level2 body-xs">Autocorrect</auro-anchorlink>
|
|
23
|
+
<auro-anchorlink fluid href="#setCustomValidity" class="level2 body-xs">Custom Validation Messages</auro-anchorlink>
|
|
22
24
|
<auro-anchorlink fluid href="#disabled" class="level2 body-xs">Disabled</auro-anchorlink>
|
|
23
25
|
<auro-anchorlink fluid href="#error" class="level2 body-xs">Error</auro-anchorlink>
|
|
24
26
|
<auro-anchorlink fluid href="#format" class="level2 body-xs">Format</auro-anchorlink>
|
|
25
27
|
<auro-anchorlink fluid href="#inputMode" class="level2 body-xs">Input Mode</auro-anchorlink>
|
|
26
|
-
<auro-anchorlink fluid href="#localization" class="level2 body-xs">Localization</auro-anchorlink>
|
|
27
28
|
<auro-anchorlink fluid href="#max" class="level2 body-xs">Max</auro-anchorlink>
|
|
28
29
|
<auro-anchorlink fluid href="#maxLength" class="level2 body-xs">Max Length</auro-anchorlink>
|
|
29
30
|
<auro-anchorlink fluid href="#min" class="level2 body-xs">Min</auro-anchorlink>
|
|
@@ -33,7 +34,6 @@
|
|
|
33
34
|
<auro-anchorlink fluid href="#pattern" class="level2 body-xs">Pattern</auro-anchorlink>
|
|
34
35
|
<auro-anchorlink fluid href="#readonly" class="level2 body-xs">Readonly</auro-anchorlink>
|
|
35
36
|
<auro-anchorlink fluid href="#required" class="level2 body-xs">Required</auro-anchorlink>
|
|
36
|
-
<auro-anchorlink fluid href="#setCustomValidity" class="level2 body-xs">Custom Validation Messages</auro-anchorlink>
|
|
37
37
|
<auro-anchorlink fluid href="#type" class="level2 body-xs">Type</auro-anchorlink>
|
|
38
38
|
<auro-anchorlink fluid href="#validateOnInput" class="level2 body-xs">Validate on Input</auro-anchorlink>
|
|
39
39
|
<auro-anchorlink fluid href="#value" class="level2 body-xs">Value</auro-anchorlink>
|
|
@@ -64,6 +64,78 @@
|
|
|
64
64
|
</auro-input></code></pre>
|
|
65
65
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
66
66
|
</auro-accordion>
|
|
67
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/css-parts.md) -->
|
|
68
|
+
<!-- The below content is automatically added from ./../docs/partials/customize/css-parts.md -->
|
|
69
|
+
<auro-header level="3" id="cssParts">CSS Shadow Parts</auro-header>
|
|
70
|
+
<p>CSS Shadow Parts allow you to style elements inside a web component's shadow DOM using the <code>::part()</code> pseudo-element. The following parts are exposed by <code><auro-input></code>.</p>
|
|
71
|
+
<table class="auro_table">
|
|
72
|
+
<thead>
|
|
73
|
+
<tr>
|
|
74
|
+
<th>Part</th>
|
|
75
|
+
<th>Description</th>
|
|
76
|
+
</tr>
|
|
77
|
+
</thead>
|
|
78
|
+
<tbody>
|
|
79
|
+
<tr><td><code>wrapper</code></td><td>The root wrapper element of the input.</td></tr>
|
|
80
|
+
<tr><td><code>label</code></td><td>The label element.</td></tr>
|
|
81
|
+
<tr><td><code>helpText</code></td><td>The help text element.</td></tr>
|
|
82
|
+
<tr><td><code>input</code></td><td>The native input element.</td></tr>
|
|
83
|
+
<tr><td><code>accentIcon</code></td><td>The accent icon element (e.g. credit card icon, calendar icon).</td></tr>
|
|
84
|
+
<tr><td><code>iconContainer</code></td><td>The icon container (e.g. X icon for clearing input value).</td></tr>
|
|
85
|
+
<tr><td><code>accent-left</code></td><td>The left accent element.</td></tr>
|
|
86
|
+
<tr><td><code>accent-right</code></td><td>The right accent element.</td></tr>
|
|
87
|
+
<tr><td><code>displayValue</code></td><td>The display value element.</td></tr>
|
|
88
|
+
<tr><td><code>inputHelpText</code></td><td>The input help text wrapper.</td></tr>
|
|
89
|
+
</tbody>
|
|
90
|
+
</table>
|
|
91
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
92
|
+
<div class="exampleWrapper">
|
|
93
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/css-parts.html) -->
|
|
94
|
+
<!-- The below content is automatically added from ../apiExamples/css-parts.html -->
|
|
95
|
+
<style>
|
|
96
|
+
auro-input.css-parts-demo::part(wrapper) {
|
|
97
|
+
border-color: orange;
|
|
98
|
+
}
|
|
99
|
+
auro-input.css-parts-demo::part(label) {
|
|
100
|
+
color: purple;
|
|
101
|
+
}
|
|
102
|
+
auro-input.css-parts-demo::part(helpText) {
|
|
103
|
+
color: green;
|
|
104
|
+
}
|
|
105
|
+
auro-input.css-parts-demo::part(input) {
|
|
106
|
+
font-style: italic;
|
|
107
|
+
}
|
|
108
|
+
</style>
|
|
109
|
+
<auro-input class="css-parts-demo" required>
|
|
110
|
+
<span slot="label">CSS Parts Example</span>
|
|
111
|
+
<span slot="helpText">This input has custom styles applied via CSS Shadow Parts.</span>
|
|
112
|
+
</auro-input>
|
|
113
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
114
|
+
</div>
|
|
115
|
+
<auro-accordion alignRight>
|
|
116
|
+
<span slot="trigger">See code</span>
|
|
117
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/css-parts.html) -->
|
|
118
|
+
<!-- The below code snippet is automatically added from ../apiExamples/css-parts.html -->
|
|
119
|
+
<pre class="language-html"><code class="language-html"><style>
|
|
120
|
+
auro-input.css-parts-demo::part(wrapper) {
|
|
121
|
+
border-color: orange;
|
|
122
|
+
}
|
|
123
|
+
auro-input.css-parts-demo::part(label) {
|
|
124
|
+
color: purple;
|
|
125
|
+
}
|
|
126
|
+
auro-input.css-parts-demo::part(helpText) {
|
|
127
|
+
color: green;
|
|
128
|
+
}
|
|
129
|
+
auro-input.css-parts-demo::part(input) {
|
|
130
|
+
font-style: italic;
|
|
131
|
+
}
|
|
132
|
+
</style>
|
|
133
|
+
<auro-input class="css-parts-demo" required>
|
|
134
|
+
<span slot="label">CSS Parts Example</span>
|
|
135
|
+
<span slot="helpText">This input has custom styles applied via CSS Shadow Parts.</span>
|
|
136
|
+
</auro-input></code></pre>
|
|
137
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
138
|
+
</auro-accordion>
|
|
67
139
|
<auro-header level="3" id="dvInputOnly">Display Value Input Only</auro-header>
|
|
68
140
|
<p>Use the <code>dvInputOnly</code> attribute so that the <code>displayValue</code> slot content only masks the HTML5 input element. The input's label will not be masked. Without this attribute, the display value slot content covers both the label and the input.</p>
|
|
69
141
|
<div class="exampleWrapper">
|
|
@@ -157,24 +229,175 @@
|
|
|
157
229
|
</auro-input></code></pre>
|
|
158
230
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
159
231
|
</auro-accordion>
|
|
160
|
-
<auro-header level="3" id="
|
|
161
|
-
|
|
232
|
+
<auro-header level="3" id="localization">Localization</auro-header>
|
|
233
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/localization.md) -->
|
|
234
|
+
<!-- The below content is automatically added from ./../docs/partials/customize/localization.md -->
|
|
235
|
+
<p>The component supports complete localization, including visible strings, screen reader announcements and locale based date formatting.</p>
|
|
236
|
+
<auro-header level="4" id="localizationVisibleStrings">Visible strings</auro-header>
|
|
237
|
+
<p>The visible strings rendered in the input are not derived from <code>locale</code> — they are projected through named slots so each language can supply its own translation. Pass a <code><span></code> with the matching <code>slot</code> attribute for every string you need to localize.</p>
|
|
238
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-visible-strings.html) -->
|
|
239
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-visible-strings.html -->
|
|
240
|
+
<auro-input locale="ja-JP">
|
|
241
|
+
<span slot="label">出発日</span>
|
|
242
|
+
<span slot="helpText">日付を選択してください</span>
|
|
243
|
+
<span slot="optionalLabel">(任意)</span>
|
|
244
|
+
<span slot="ariaLabel.clear">入力をクリア</span>
|
|
245
|
+
<span slot="ariaLabel.password.show">パスワードを表示</span>
|
|
246
|
+
<span slot="ariaLabel.password.hide">パスワードを非表示</span>
|
|
247
|
+
</auro-input>
|
|
248
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
249
|
+
<auro-header level="4" id="localizationA11yStrings">Screen reader strings</auro-header>
|
|
250
|
+
<p>Assistive-technology announcements that are not visible in the UI are also exposed as named slots so they can be translated independently. These strings are not derived from <code>locale</code>; supply translated values for every language you support.</p>
|
|
251
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-screenreader-strings.html) -->
|
|
252
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-screenreader-strings.html -->
|
|
253
|
+
|
|
254
|
+
<pre class="language-diff"><code class="language-diff"> <auro-input locale="de-DE" type="password" value="geheim">
|
|
255
|
+
<span slot="label">Passwort</span>
|
|
256
|
+
<span slot="helpText">Geben Sie Ihr Passwort ein</span>
|
|
257
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
258
|
+
+ <span slot="ariaLabel.clear">Eingabe löschen</span>
|
|
259
|
+
+ <span slot="ariaLabel.password.show">Passwort anzeigen</span>
|
|
260
|
+
+ <span slot="ariaLabel.password.hide">Passwort verbergen</span>
|
|
261
|
+
</auro-input></code></pre>
|
|
262
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
263
|
+
<p class="note"><strong>Note:</strong> Custom validation messages set via <code>setCustomValidity*</code> attributes are also not localized — supply translated strings yourself when using those properties.</p>
|
|
264
|
+
<auro-header level="4" id="localizationDateFormatting">Date formatting</auro-header>
|
|
265
|
+
<p>When <code>type="date"</code> is set, the <code>locale</code> attribute drives the date format used by the input mask. Setting <code>locale</code> automatically selects the regional format (for example <code>en-US</code> → <code>mm/dd/yyyy</code>, <code>de-DE</code> → <code>dd.mm.yyyy</code>, <code>ja-JP</code> → <code>yyyy/mm/dd</code>), derived from the browser's <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl" target="_blank">Intl</auro-hyperlink> API, so <code>format</code> does not need to be set manually.</p>
|
|
266
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale.html) -->
|
|
267
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-locale.html -->
|
|
268
|
+
|
|
269
|
+
<pre class="language-diff"><code class="language-diff">- <auro-input>
|
|
270
|
+
+ <auro-input locale="de-DE">
|
|
271
|
+
<span slot="label">Abreisedatum</span>
|
|
272
|
+
<span slot="helpText">Wählen Sie ein Datum</span>
|
|
273
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
274
|
+
</auro-input></code></pre>
|
|
275
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
276
|
+
<p>If no <code>locale</code> attribute is present, the component walks up the DOM looking for the nearest ancestor with a <code>data-locale</code> attribute; if none is found, it defaults to <code>en-US</code>.</p>
|
|
277
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale-inherited.html) -->
|
|
278
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-locale-inherited.html -->
|
|
279
|
+
|
|
280
|
+
<pre class="language-diff"><code class="language-diff">+ <div data-locale="de-DE">
|
|
281
|
+
<div>
|
|
282
|
+
<auro-input>
|
|
283
|
+
<span slot="label">Abreisedatum</span>
|
|
284
|
+
<span slot="helpText">Wählen Sie ein Datum</span>
|
|
285
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
286
|
+
</auro-input>
|
|
287
|
+
</div>
|
|
288
|
+
</div></code></pre>
|
|
289
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
290
|
+
<p>If <code>format</code> is set alongside <code>locale</code>, <code>format</code> always wins.</p>
|
|
291
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale-formatted.html) -->
|
|
292
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-locale-formatted.html -->
|
|
293
|
+
|
|
294
|
+
<pre class="language-diff"><code class="language-diff">- <auro-input locale="de-DE">
|
|
295
|
+
+ <auro-input locale="de-DE" format="MM/DD/YYYY">
|
|
296
|
+
<span slot="label">Abreisedatum</span>
|
|
297
|
+
<span slot="helpText">Wählen Sie ein Datum</span>
|
|
298
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
299
|
+
</auro-input></code></pre>
|
|
300
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
162
301
|
<div class="exampleWrapper">
|
|
163
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src
|
|
164
|
-
<!-- The below content is automatically added from
|
|
165
|
-
<
|
|
166
|
-
<
|
|
167
|
-
<
|
|
302
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/locale.html) -->
|
|
303
|
+
<!-- The below content is automatically added from ./../apiExamples/locale.html -->
|
|
304
|
+
<div data-locale="de-DE">
|
|
305
|
+
<auro-header level="4">en-GB Example</auro-header>
|
|
306
|
+
<auro-input type="date" locale="en-GB">
|
|
307
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
308
|
+
<span slot="label">en-GB Date</span>
|
|
309
|
+
<span slot="helpText">Help Text</span>
|
|
310
|
+
</auro-input>
|
|
311
|
+
<auro-header level="4">en-US Example</auro-header>
|
|
312
|
+
<auro-input type="date" locale="en-US">
|
|
313
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
314
|
+
<span slot="label">en-US Date</span>
|
|
315
|
+
<span slot="helpText">Help Text</span>
|
|
316
|
+
</auro-input>
|
|
317
|
+
<auro-header level="4">zh-CN Example</auro-header>
|
|
318
|
+
<auro-input type="date" locale="zh-CN">
|
|
319
|
+
<span slot="ariaLabel.clear">全部清除</span>
|
|
320
|
+
<span slot="label">中文日期</span>
|
|
321
|
+
<span slot="helpText">帮助文本</span>
|
|
322
|
+
<span slot="optionalLabel">(可选)</span>
|
|
323
|
+
</auro-input>
|
|
324
|
+
<auro-header level="4">Inherited de-DE date-locale Example</auro-header>
|
|
325
|
+
<auro-input type="date">
|
|
326
|
+
<span slot="ariaLabel.clear">Alles löschen</span>
|
|
327
|
+
<span slot="label">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
|
|
328
|
+
<span slot="helpText">Hilfetext</span>
|
|
329
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
330
|
+
</auro-input>
|
|
331
|
+
<auro-header level="4">en-US with `yyyy.mm.dd` format Example</auro-header>
|
|
332
|
+
<auro-input type="date" locale="en-US" format="yyyy.mm.dd">
|
|
333
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
334
|
+
<span slot="label">en-US with yyyy.mm.dd format</span>
|
|
335
|
+
<span slot="helpText">Help Text</span>
|
|
336
|
+
</div>
|
|
337
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
338
|
+
</div>
|
|
339
|
+
<auro-accordion alignRight>
|
|
340
|
+
<span slot="trigger">See code</span>
|
|
341
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/locale.html) -->
|
|
342
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/locale.html -->
|
|
343
|
+
<pre class="language-html"><code class="language-html"><div data-locale="de-DE">
|
|
344
|
+
<auro-header level="4">en-GB Example</auro-header>
|
|
345
|
+
<auro-input type="date" locale="en-GB">
|
|
346
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
347
|
+
<span slot="label">en-GB Date</span>
|
|
348
|
+
<span slot="helpText">Help Text</span>
|
|
349
|
+
</auro-input>
|
|
350
|
+
|
|
351
|
+
<auro-header level="4">en-US Example</auro-header>
|
|
352
|
+
<auro-input type="date" locale="en-US">
|
|
353
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
354
|
+
<span slot="label">en-US Date</span>
|
|
355
|
+
<span slot="helpText">Help Text</span>
|
|
356
|
+
</auro-input>
|
|
357
|
+
|
|
358
|
+
<auro-header level="4">zh-CN Example</auro-header>
|
|
359
|
+
<auro-input type="date" locale="zh-CN">
|
|
360
|
+
<span slot="ariaLabel.clear">全部清除</span>
|
|
361
|
+
<span slot="label">中文日期</span>
|
|
362
|
+
<span slot="helpText">帮助文本</span>
|
|
363
|
+
<span slot="optionalLabel">(可选)</span>
|
|
364
|
+
</auro-input>
|
|
365
|
+
|
|
366
|
+
<auro-header level="4">Inherited de-DE date-locale Example</auro-header>
|
|
367
|
+
<auro-input type="date">
|
|
368
|
+
<span slot="ariaLabel.clear">Alles löschen</span>
|
|
369
|
+
<span slot="label">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
|
|
370
|
+
<span slot="helpText">Hilfetext</span>
|
|
371
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
372
|
+
</auro-input>
|
|
373
|
+
|
|
374
|
+
<auro-header level="4">en-US with `yyyy.mm.dd` format Example</auro-header>
|
|
375
|
+
<auro-input type="date" locale="en-US" format="yyyy.mm.dd">
|
|
376
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
377
|
+
<span slot="label">en-US with yyyy.mm.dd format</span>
|
|
378
|
+
<span slot="helpText">Help Text</span>
|
|
379
|
+
</div></code></pre>
|
|
380
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
381
|
+
</auro-accordion>
|
|
382
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
383
|
+
<auro-header level="3" id="nested">Nested</auro-header>
|
|
384
|
+
<p>Use the <code>nested</code> attribute to render the input without borders, help text, error text, or accents. This is intended for use when the input is embedded inside the trigger of an auro-droopdown.</p>
|
|
385
|
+
<div class="exampleWrapper">
|
|
386
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/nested.html) -->
|
|
387
|
+
<!-- The below content is automatically added from ./../apiExamples/nested.html -->
|
|
388
|
+
<auro-input nested>
|
|
389
|
+
<span slot="label">Nested Input</span>
|
|
390
|
+
<span slot="helpText">Help Text</span>
|
|
168
391
|
</auro-input>
|
|
169
392
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
170
393
|
</div>
|
|
171
394
|
<auro-accordion alignRight>
|
|
172
395
|
<span slot="trigger">See code</span>
|
|
173
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src
|
|
174
|
-
<!-- The below code snippet is automatically added from
|
|
175
|
-
<pre class="language-html"><code class="language-html"><auro-input
|
|
176
|
-
<span slot="label">
|
|
177
|
-
<span slot="helpText">
|
|
396
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/nested.html) -->
|
|
397
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/nested.html -->
|
|
398
|
+
<pre class="language-html"><code class="language-html"><auro-input nested>
|
|
399
|
+
<span slot="label">Nested Input</span>
|
|
400
|
+
<span slot="helpText">Help Text</span>
|
|
178
401
|
</auro-input></code></pre>
|
|
179
402
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
180
403
|
</auro-accordion>
|
|
@@ -202,6 +425,27 @@
|
|
|
202
425
|
</auro-input></code></pre>
|
|
203
426
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
204
427
|
</auro-accordion>
|
|
428
|
+
<auro-header level="3" id="placeholder">Placeholder</auro-header>
|
|
429
|
+
<p>Use the <code>placeholder</code> attribute to add a custom placeholder message within the element.</p>
|
|
430
|
+
<div class="exampleWrapper">
|
|
431
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/placeholder.html) -->
|
|
432
|
+
<!-- The below content is automatically added from ../apiExamples/placeholder.html -->
|
|
433
|
+
<auro-input placeholder="John Doe" required>
|
|
434
|
+
<span slot="label">Full name</span>
|
|
435
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
436
|
+
</auro-input>
|
|
437
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
438
|
+
</div>
|
|
439
|
+
<auro-accordion alignRight>
|
|
440
|
+
<span slot="trigger">See code</span>
|
|
441
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/placeholder.html) -->
|
|
442
|
+
<!-- The below code snippet is automatically added from ../apiExamples/placeholder.html -->
|
|
443
|
+
<pre class="language-html"><code class="language-html"><auro-input placeholder="John Doe" required>
|
|
444
|
+
<span slot="label">Full name</span>
|
|
445
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
446
|
+
</auro-input></code></pre>
|
|
447
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
448
|
+
</auro-accordion>
|
|
205
449
|
<auro-header level="3" id="simple">Simple</auro-header>
|
|
206
450
|
<p>Use the <code>simple</code> attribute to render the input without a border. This is intended for use when the input is embedded inside the trigger of an auro-droopdown.</p>
|
|
207
451
|
<div class="exampleWrapper">
|
|
@@ -223,29 +467,6 @@
|
|
|
223
467
|
</auro-input></code></pre>
|
|
224
468
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
225
469
|
</auro-accordion>
|
|
226
|
-
<auro-header level="3" id="nested">Nested</auro-header>
|
|
227
|
-
<p>Use the <code>nested</code> attribute to render the input without borders, help text, error text, or accents. This is intended for use when the input is embedded inside the trigger of an auro-droopdown.</p>
|
|
228
|
-
<div class="exampleWrapper">
|
|
229
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/nested.html) -->
|
|
230
|
-
<!-- The below content is automatically added from ./../apiExamples/nested.html -->
|
|
231
|
-
<auro-input nested>
|
|
232
|
-
<span slot="label">Nested Input</span>
|
|
233
|
-
<span slot="helpText">Help Text</span>
|
|
234
|
-
</auro-input>
|
|
235
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
236
|
-
</div>
|
|
237
|
-
<auro-accordion alignRight>
|
|
238
|
-
<span slot="trigger">See code</span>
|
|
239
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/nested.html) -->
|
|
240
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/nested.html -->
|
|
241
|
-
<pre class="language-html"><code class="language-html"><auro-input nested>
|
|
242
|
-
<span slot="label">Nested Input</span>
|
|
243
|
-
<span slot="helpText">Help Text</span>
|
|
244
|
-
</auro-input></code></pre>
|
|
245
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
246
|
-
</auro-accordion>
|
|
247
|
-
</section>
|
|
248
|
-
<section>
|
|
249
470
|
<auro-header level="3" id="cssTokens">Tokens</auro-header>
|
|
250
471
|
<p>The component may be restyled by changing the values of the following token(s).</p>
|
|
251
472
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
|
|
@@ -282,80 +503,6 @@
|
|
|
282
503
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
283
504
|
</section>
|
|
284
505
|
<section>
|
|
285
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/css-parts.md) -->
|
|
286
|
-
<!-- The below content is automatically added from ./../docs/partials/customize/css-parts.md -->
|
|
287
|
-
<auro-header level="3" id="cssParts">CSS Shadow Parts</auro-header>
|
|
288
|
-
<p>CSS Shadow Parts allow you to style elements inside a web component's shadow DOM using the <code>::part()</code> pseudo-element. The following parts are exposed by <code><auro-input></code>.</p>
|
|
289
|
-
<table class="auro_table">
|
|
290
|
-
<thead>
|
|
291
|
-
<tr>
|
|
292
|
-
<th>Part</th>
|
|
293
|
-
<th>Description</th>
|
|
294
|
-
</tr>
|
|
295
|
-
</thead>
|
|
296
|
-
<tbody>
|
|
297
|
-
<tr><td><code>wrapper</code></td><td>The root wrapper element of the input.</td></tr>
|
|
298
|
-
<tr><td><code>label</code></td><td>The label element.</td></tr>
|
|
299
|
-
<tr><td><code>helpText</code></td><td>The help text element.</td></tr>
|
|
300
|
-
<tr><td><code>input</code></td><td>The native input element.</td></tr>
|
|
301
|
-
<tr><td><code>accentIcon</code></td><td>The accent icon element (e.g. credit card icon, calendar icon).</td></tr>
|
|
302
|
-
<tr><td><code>iconContainer</code></td><td>The icon container (e.g. X icon for clearing input value).</td></tr>
|
|
303
|
-
<tr><td><code>accent-left</code></td><td>The left accent element.</td></tr>
|
|
304
|
-
<tr><td><code>accent-right</code></td><td>The right accent element.</td></tr>
|
|
305
|
-
<tr><td><code>displayValue</code></td><td>The display value element.</td></tr>
|
|
306
|
-
<tr><td><code>inputHelpText</code></td><td>The input help text wrapper.</td></tr>
|
|
307
|
-
</tbody>
|
|
308
|
-
</table>
|
|
309
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
310
|
-
<div class="exampleWrapper">
|
|
311
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/css-parts.html) -->
|
|
312
|
-
<!-- The below content is automatically added from ../apiExamples/css-parts.html -->
|
|
313
|
-
<style>
|
|
314
|
-
auro-input.css-parts-demo::part(wrapper) {
|
|
315
|
-
border-color: orange;
|
|
316
|
-
}
|
|
317
|
-
auro-input.css-parts-demo::part(label) {
|
|
318
|
-
color: purple;
|
|
319
|
-
}
|
|
320
|
-
auro-input.css-parts-demo::part(helpText) {
|
|
321
|
-
color: green;
|
|
322
|
-
}
|
|
323
|
-
auro-input.css-parts-demo::part(input) {
|
|
324
|
-
font-style: italic;
|
|
325
|
-
}
|
|
326
|
-
</style>
|
|
327
|
-
<auro-input class="css-parts-demo" required>
|
|
328
|
-
<span slot="label">CSS Parts Example</span>
|
|
329
|
-
<span slot="helpText">This input has custom styles applied via CSS Shadow Parts.</span>
|
|
330
|
-
</auro-input>
|
|
331
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
332
|
-
</div>
|
|
333
|
-
<auro-accordion alignRight>
|
|
334
|
-
<span slot="trigger">See code</span>
|
|
335
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/css-parts.html) -->
|
|
336
|
-
<!-- The below code snippet is automatically added from ../apiExamples/css-parts.html -->
|
|
337
|
-
<pre class="language-html"><code class="language-html"><style>
|
|
338
|
-
auro-input.css-parts-demo::part(wrapper) {
|
|
339
|
-
border-color: orange;
|
|
340
|
-
}
|
|
341
|
-
auro-input.css-parts-demo::part(label) {
|
|
342
|
-
color: purple;
|
|
343
|
-
}
|
|
344
|
-
auro-input.css-parts-demo::part(helpText) {
|
|
345
|
-
color: green;
|
|
346
|
-
}
|
|
347
|
-
auro-input.css-parts-demo::part(input) {
|
|
348
|
-
font-style: italic;
|
|
349
|
-
}
|
|
350
|
-
</style>
|
|
351
|
-
<auro-input class="css-parts-demo" required>
|
|
352
|
-
<span slot="label">CSS Parts Example</span>
|
|
353
|
-
<span slot="helpText">This input has custom styles applied via CSS Shadow Parts.</span>
|
|
354
|
-
</auro-input></code></pre>
|
|
355
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
356
|
-
</auro-accordion>
|
|
357
|
-
</section>
|
|
358
|
-
<section>
|
|
359
506
|
<auro-header level="2" id="behavior">Behavior</auro-header>
|
|
360
507
|
<auro-header level="3" id="autocapitalize">Autocapitalize</auro-header>
|
|
361
508
|
<p>Use the <code>autocapitalize</code> attribute to control whether and how text input is automatically capitalized as it is entered by the user. Supported values: <code>off</code>/<code>none</code>, <code>on</code>/<code>sentences</code>, <code>words</code>, <code>characters</code>.</p>
|
|
@@ -436,6 +583,189 @@
|
|
|
436
583
|
</auro-input></code></pre>
|
|
437
584
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
438
585
|
</auro-accordion>
|
|
586
|
+
<auro-header level="3" id="setCustomValidity">Custom Validation Messages</auro-header>
|
|
587
|
+
<p>The input provides several properties to customize the error messages displayed for different validation states. When a validation error occurs, the component checks for a state-specific message first, then falls back to the general <code>setCustomValidity</code> message.</p>
|
|
588
|
+
<ul>
|
|
589
|
+
<li><strong><code>setCustomValidity</code></strong> — Sets a fallback error message displayed for any validation error. This message is used when no state-specific message is defined.</li>
|
|
590
|
+
<li><strong><code>setCustomValidityValueMissing</code></strong> — Displayed when the component is <code>required</code> and the user leaves it empty.</li>
|
|
591
|
+
<li><strong><code>setCustomValidityForType</code></strong> — Displayed when the value does not match the expected format for the declared <code>type</code> (e.g. invalid email, phone number).</li>
|
|
592
|
+
<li><strong><code>setCustomValidityBadInput</code></strong> — Displayed when the browser considers the input value to be malformed (e.g. non-numeric characters in a <code>number</code> field).</li>
|
|
593
|
+
<li><strong><code>setCustomValidityRangeOverflow</code></strong> — Displayed when the value exceeds the <code>max</code> constraint.</li>
|
|
594
|
+
<li><strong><code>setCustomValidityRangeUnderflow</code></strong> — Displayed when the value is below the <code>min</code> constraint.</li>
|
|
595
|
+
<li><strong><code>setCustomValidityTooLong</code></strong> — Displayed when the value exceeds the <code>maxlength</code> constraint.</li>
|
|
596
|
+
<li><strong><code>setCustomValidityTooShort</code></strong> — Displayed when the value is shorter than the <code>minlength</code> constraint.</li>
|
|
597
|
+
<li><strong><code>setCustomValidityPatternMismatch</code></strong> — Displayed when the value does not match the declared <code>pattern</code>, or when <code>type="date"</code> and the entered date is not a valid calendar date (e.g. month/day values out of range). Falls back to <code>"Invalid Date Format Entered"</code> if not set.</li>
|
|
598
|
+
</ul>
|
|
599
|
+
<p>The priority order for error messages is: state-specific property > <code>setCustomValidity</code> > default browser message.</p>
|
|
600
|
+
<p class="note"><strong>Note:</strong> Custom strings are NOT localized. It is the responsibility of the element consumer to provide localized strings when using these properties.</p>
|
|
601
|
+
<auro-header level="4">Bad Input</auro-header>
|
|
602
|
+
<p>Use <code>setCustomValidityBadInput</code> to customize the message when the browser considers the input malformed.</p>
|
|
603
|
+
<div class="exampleWrapper">
|
|
604
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-bad-input.html) -->
|
|
605
|
+
<!-- The below content is automatically added from ../apiExamples/set-custom-validity-bad-input.html -->
|
|
606
|
+
<auro-input type="number" minlength="1" setCustomValidityBadInput="Please enter a valid whole number.">
|
|
607
|
+
<span slot="label">Quantity</span>
|
|
608
|
+
<span slot="helpText">Enter the number of items.</span>
|
|
609
|
+
</auro-input>
|
|
610
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
611
|
+
</div>
|
|
612
|
+
<auro-accordion alignRight>
|
|
613
|
+
<span slot="trigger">See code</span>
|
|
614
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-bad-input.html) -->
|
|
615
|
+
<!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-bad-input.html -->
|
|
616
|
+
<pre class="language-html"><code class="language-html"><auro-input type="number" minlength="1" setCustomValidityBadInput="Please enter a valid whole number.">
|
|
617
|
+
<span slot="label">Quantity</span>
|
|
618
|
+
<span slot="helpText">Enter the number of items.</span>
|
|
619
|
+
</auro-input></code></pre>
|
|
620
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
621
|
+
</auro-accordion>
|
|
622
|
+
<auro-header level="4">Fallback Message</auro-header>
|
|
623
|
+
<p>Use <code>setCustomValidity</code> to set a single message for all validation states.</p>
|
|
624
|
+
<div class="exampleWrapper">
|
|
625
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity.html) -->
|
|
626
|
+
<!-- The below content is automatically added from ../apiExamples/set-custom-validity.html -->
|
|
627
|
+
<auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
|
|
628
|
+
<span slot="label">Full Name</span>
|
|
629
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
630
|
+
</auro-input>
|
|
631
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
632
|
+
</div>
|
|
633
|
+
<auro-accordion alignRight>
|
|
634
|
+
<span slot="trigger">See code</span>
|
|
635
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity.html) -->
|
|
636
|
+
<!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity.html -->
|
|
637
|
+
<pre class="language-html"><code class="language-html"><auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
|
|
638
|
+
<span slot="label">Full Name</span>
|
|
639
|
+
<span slot="helpText">Please enter your full name.</span>
|
|
640
|
+
</auro-input></code></pre>
|
|
641
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
642
|
+
</auro-accordion>
|
|
643
|
+
<auro-header level="4">Range Overflow</auro-header>
|
|
644
|
+
<p>Use <code>setCustomValidityRangeOverflow</code> to customize the message when the value exceeds the <code>max</code> constraint.</p>
|
|
645
|
+
<div class="exampleWrapper">
|
|
646
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-range-overflow.html) -->
|
|
647
|
+
<!-- The below content is automatically added from ../apiExamples/set-custom-validity-range-overflow.html -->
|
|
648
|
+
<auro-input type="date" max="12/31/2025" setCustomValidityRangeOverflow="Date must be on or before 12/31/2025.">
|
|
649
|
+
<span slot="label">Event Date</span>
|
|
650
|
+
<span slot="helpText">Enter a date no later than 12/31/2025.</span>
|
|
651
|
+
</auro-input>
|
|
652
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
653
|
+
</div>
|
|
654
|
+
<auro-accordion alignRight>
|
|
655
|
+
<span slot="trigger">See code</span>
|
|
656
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-range-overflow.html) -->
|
|
657
|
+
<!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-range-overflow.html -->
|
|
658
|
+
<pre class="language-html"><code class="language-html"><auro-input type="date" max="12/31/2025" setCustomValidityRangeOverflow="Date must be on or before 12/31/2025.">
|
|
659
|
+
<span slot="label">Event Date</span>
|
|
660
|
+
<span slot="helpText">Enter a date no later than 12/31/2025.</span>
|
|
661
|
+
</auro-input></code></pre>
|
|
662
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
663
|
+
</auro-accordion>
|
|
664
|
+
<auro-header level="4">Range Underflow</auro-header>
|
|
665
|
+
<p>Use <code>setCustomValidityRangeUnderflow</code> to customize the message when the value is below the <code>min</code> constraint.</p>
|
|
666
|
+
<div class="exampleWrapper">
|
|
667
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-range-underflow.html) -->
|
|
668
|
+
<!-- The below content is automatically added from ../apiExamples/set-custom-validity-range-underflow.html -->
|
|
669
|
+
<auro-input type="date" min="01/01/2024" setCustomValidityRangeUnderflow="Date must be on or after 01/01/2024.">
|
|
670
|
+
<span slot="label">Start Date</span>
|
|
671
|
+
<span slot="helpText">Enter a date no earlier than 01/01/2024.</span>
|
|
672
|
+
</auro-input>
|
|
673
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
674
|
+
</div>
|
|
675
|
+
<auro-accordion alignRight>
|
|
676
|
+
<span slot="trigger">See code</span>
|
|
677
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-range-underflow.html) -->
|
|
678
|
+
<!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-range-underflow.html -->
|
|
679
|
+
<pre class="language-html"><code class="language-html"><auro-input type="date" min="01/01/2024" setCustomValidityRangeUnderflow="Date must be on or after 01/01/2024.">
|
|
680
|
+
<span slot="label">Start Date</span>
|
|
681
|
+
<span slot="helpText">Enter a date no earlier than 01/01/2024.</span>
|
|
682
|
+
</auro-input></code></pre>
|
|
683
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
684
|
+
</auro-accordion>
|
|
685
|
+
<auro-header level="4">Too Long</auro-header>
|
|
686
|
+
<p>Use <code>setCustomValidityTooLong</code> to customize the message when the value exceeds the <code>maxlength</code> constraint.</p>
|
|
687
|
+
<div class="exampleWrapper">
|
|
688
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-too-long.html) -->
|
|
689
|
+
<!-- The below content is automatically added from ../apiExamples/set-custom-validity-too-long.html -->
|
|
690
|
+
<auro-input maxlength="10" setCustomValidityTooLong="Please shorten your entry to 10 characters or fewer.">
|
|
691
|
+
<span slot="label">Username</span>
|
|
692
|
+
<span slot="helpText">Maximum 10 characters.</span>
|
|
693
|
+
</auro-input>
|
|
694
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
695
|
+
</div>
|
|
696
|
+
<auro-accordion alignRight>
|
|
697
|
+
<span slot="trigger">See code</span>
|
|
698
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-too-long.html) -->
|
|
699
|
+
<!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-too-long.html -->
|
|
700
|
+
<pre class="language-html"><code class="language-html"><auro-input maxlength="10" setCustomValidityTooLong="Please shorten your entry to 10 characters or fewer.">
|
|
701
|
+
<span slot="label">Username</span>
|
|
702
|
+
<span slot="helpText">Maximum 10 characters.</span>
|
|
703
|
+
</auro-input></code></pre>
|
|
704
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
705
|
+
</auro-accordion>
|
|
706
|
+
<auro-header level="4">Too Short</auro-header>
|
|
707
|
+
<p>Use <code>setCustomValidityTooShort</code> to customize the message when the value is shorter than the <code>minlength</code> constraint.</p>
|
|
708
|
+
<div class="exampleWrapper">
|
|
709
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-too-short.html) -->
|
|
710
|
+
<!-- The below content is automatically added from ../apiExamples/set-custom-validity-too-short.html -->
|
|
711
|
+
<auro-input minlength="3" setCustomValidityTooShort="Please enter at least 3 characters.">
|
|
712
|
+
<span slot="label">Nickname</span>
|
|
713
|
+
<span slot="helpText">Minimum 3 characters.</span>
|
|
714
|
+
</auro-input>
|
|
715
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
716
|
+
</div>
|
|
717
|
+
<auro-accordion alignRight>
|
|
718
|
+
<span slot="trigger">See code</span>
|
|
719
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-too-short.html) -->
|
|
720
|
+
<!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-too-short.html -->
|
|
721
|
+
<pre class="language-html"><code class="language-html"><auro-input minlength="3" setCustomValidityTooShort="Please enter at least 3 characters.">
|
|
722
|
+
<span slot="label">Nickname</span>
|
|
723
|
+
<span slot="helpText">Minimum 3 characters.</span>
|
|
724
|
+
</auro-input></code></pre>
|
|
725
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
726
|
+
</auro-accordion>
|
|
727
|
+
<auro-header level="4">Type Validation</auro-header>
|
|
728
|
+
<p>Use <code>setCustomValidityForType</code> to customize the message when the value doesn't match the declared <code>type</code> format.</p>
|
|
729
|
+
<div class="exampleWrapper">
|
|
730
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-for-type.html) -->
|
|
731
|
+
<!-- The below content is automatically added from ../apiExamples/set-custom-validity-for-type.html -->
|
|
732
|
+
<auro-input type="email" setCustomValidityForType="Please provide a valid email address (e.g. name@example.com).">
|
|
733
|
+
<span slot="label">Email Address</span>
|
|
734
|
+
<span slot="helpText">We'll use this to send your confirmation.</span>
|
|
735
|
+
</auro-input>
|
|
736
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
737
|
+
</div>
|
|
738
|
+
<auro-accordion alignRight>
|
|
739
|
+
<span slot="trigger">See code</span>
|
|
740
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-for-type.html) -->
|
|
741
|
+
<!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-for-type.html -->
|
|
742
|
+
<pre class="language-html"><code class="language-html"><auro-input type="email" setCustomValidityForType="Please provide a valid email address (e.g. name@example.com).">
|
|
743
|
+
<span slot="label">Email Address</span>
|
|
744
|
+
<span slot="helpText">We'll use this to send your confirmation.</span>
|
|
745
|
+
</auro-input></code></pre>
|
|
746
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
747
|
+
</auro-accordion>
|
|
748
|
+
<auro-header level="4">Value Missing</auro-header>
|
|
749
|
+
<p>Use <code>setCustomValidityValueMissing</code> to customize the message when a <code>required</code> field is left empty.</p>
|
|
750
|
+
<div class="exampleWrapper">
|
|
751
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-value-missing.html) -->
|
|
752
|
+
<!-- The below content is automatically added from ../apiExamples/set-custom-validity-value-missing.html -->
|
|
753
|
+
<auro-input required setCustomValidityValueMissing="Please enter your name to continue.">
|
|
754
|
+
<span slot="label">Full Name</span>
|
|
755
|
+
<span slot="helpText">Enter your legal first and last name.</span>
|
|
756
|
+
</auro-input>
|
|
757
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
758
|
+
</div>
|
|
759
|
+
<auro-accordion alignRight>
|
|
760
|
+
<span slot="trigger">See code</span>
|
|
761
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-value-missing.html) -->
|
|
762
|
+
<!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-value-missing.html -->
|
|
763
|
+
<pre class="language-html"><code class="language-html"><auro-input required setCustomValidityValueMissing="Please enter your name to continue.">
|
|
764
|
+
<span slot="label">Full Name</span>
|
|
765
|
+
<span slot="helpText">Enter your legal first and last name.</span>
|
|
766
|
+
</auro-input></code></pre>
|
|
767
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
768
|
+
</auro-accordion>
|
|
439
769
|
<auro-header level="3" id="disabled">Disabled</auro-header>
|
|
440
770
|
<p>Use the <code>disable</code> attribute to prevent the user from interacting with the input.</p>
|
|
441
771
|
<div class="exampleWrapper">
|
|
@@ -508,7 +838,7 @@
|
|
|
508
838
|
<li>a : letter</li>
|
|
509
839
|
<li>* : any character</li>
|
|
510
840
|
</ul>
|
|
511
|
-
<p>See <
|
|
841
|
+
<p>See <auro-hyperlink href="https://imask.js.org/">IMask</auro-hyperlink> for more information on how to configure a mask.</p>
|
|
512
842
|
<div class="exampleWrapper">
|
|
513
843
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/format.html) -->
|
|
514
844
|
<!-- The below content is automatically added from ../apiExamples/format.html -->
|
|
@@ -528,94 +858,14 @@
|
|
|
528
858
|
</auro-input></code></pre>
|
|
529
859
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
530
860
|
</auro-accordion>
|
|
531
|
-
<auro-header level="3" id="
|
|
532
|
-
<p>
|
|
533
|
-
<p>If
|
|
861
|
+
<auro-header level="3" id="inputMode">Input Mode</auro-header>
|
|
862
|
+
<p>Set the <code>inputmode</code> for the input.</p>
|
|
863
|
+
<p><strong>IMPORTANT</strong>: If you are also passing a <code>type</code>, most browsers will use the <code>type</code> attribute to determine what keyboard to display on mobile devices and ignore the <code>inputmode</code> attribute.</p>
|
|
534
864
|
<div class="exampleWrapper">
|
|
535
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src
|
|
536
|
-
<!-- The below content is automatically added from
|
|
537
|
-
<
|
|
538
|
-
<
|
|
539
|
-
<auro-input type="date" locale="en-GB">
|
|
540
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
541
|
-
<span slot="label">en-GB Date</span>
|
|
542
|
-
<span slot="helpText">Help Text</span>
|
|
543
|
-
</auro-input>
|
|
544
|
-
<auro-header level="4">en-US Example</auro-header>
|
|
545
|
-
<auro-input type="date" locale="en-US">
|
|
546
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
547
|
-
<span slot="label">en-US Date</span>
|
|
548
|
-
<span slot="helpText">Help Text</span>
|
|
549
|
-
</auro-input>
|
|
550
|
-
<auro-header level="4">zh-CN Example</auro-header>
|
|
551
|
-
<auro-input type="date" locale="zh-CN">
|
|
552
|
-
<span slot="ariaLabel.clear">全部清除</span>
|
|
553
|
-
<span slot="label">中文日期</span>
|
|
554
|
-
<span slot="helpText">帮助文本</span>
|
|
555
|
-
<span slot="optionalLabel">(可选)</span>
|
|
556
|
-
</auro-input>
|
|
557
|
-
<auro-header level="4">Inherited de-DE date-locale Example</auro-header>
|
|
558
|
-
<auro-input type="date">
|
|
559
|
-
<span slot="ariaLabel.clear">Alles löschen</span>
|
|
560
|
-
<span slot="label">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
|
|
561
|
-
<span slot="helpText">Hilfetext</span>
|
|
562
|
-
<span slot="optionalLabel">(freiwillig)</span>
|
|
563
|
-
</auro-input>
|
|
564
|
-
<auro-header level="4">en-US with `yyyy.mm.dd` format Example</auro-header>
|
|
565
|
-
<auro-input type="date" locale="en-US" format="yyyy.mm.dd">
|
|
566
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
567
|
-
<span slot="label">en-US with yyyy.mm.dd format</span>
|
|
568
|
-
<span slot="helpText">Help Text</span>
|
|
569
|
-
</div>
|
|
570
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
571
|
-
</div>
|
|
572
|
-
<auro-accordion alignRight>
|
|
573
|
-
<span slot="trigger">See code</span>
|
|
574
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/locale.html) -->
|
|
575
|
-
<!-- The below code snippet is automatically added from ../apiExamples/locale.html -->
|
|
576
|
-
<pre class="language-html"><code class="language-html"><div data-locale="de-DE">
|
|
577
|
-
<auro-header level="4">en-GB Example</auro-header>
|
|
578
|
-
<auro-input type="date" locale="en-GB">
|
|
579
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
580
|
-
<span slot="label">en-GB Date</span>
|
|
581
|
-
<span slot="helpText">Help Text</span>
|
|
582
|
-
</auro-input>
|
|
583
|
-
<auro-header level="4">en-US Example</auro-header>
|
|
584
|
-
<auro-input type="date" locale="en-US">
|
|
585
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
586
|
-
<span slot="label">en-US Date</span>
|
|
587
|
-
<span slot="helpText">Help Text</span>
|
|
588
|
-
</auro-input>
|
|
589
|
-
<auro-header level="4">zh-CN Example</auro-header>
|
|
590
|
-
<auro-input type="date" locale="zh-CN">
|
|
591
|
-
<span slot="ariaLabel.clear">全部清除</span>
|
|
592
|
-
<span slot="label">中文日期</span>
|
|
593
|
-
<span slot="helpText">帮助文本</span>
|
|
594
|
-
<span slot="optionalLabel">(可选)</span>
|
|
595
|
-
</auro-input>
|
|
596
|
-
<auro-header level="4">Inherited de-DE date-locale Example</auro-header>
|
|
597
|
-
<auro-input type="date">
|
|
598
|
-
<span slot="ariaLabel.clear">Alles löschen</span>
|
|
599
|
-
<span slot="label">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
|
|
600
|
-
<span slot="helpText">Hilfetext</span>
|
|
601
|
-
<span slot="optionalLabel">(freiwillig)</span>
|
|
602
|
-
</auro-input>
|
|
603
|
-
<auro-header level="4">en-US with `yyyy.mm.dd` format Example</auro-header>
|
|
604
|
-
<auro-input type="date" locale="en-US" format="yyyy.mm.dd">
|
|
605
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
606
|
-
<span slot="label">en-US with yyyy.mm.dd format</span>
|
|
607
|
-
<span slot="helpText">Help Text</span>
|
|
608
|
-
</div></code></pre>
|
|
609
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
610
|
-
</auro-accordion>
|
|
611
|
-
<auro-header level="3" id="inputMode">Input Mode</auro-header>
|
|
612
|
-
<p>Set the <code>inputmode</code> for the input.</p>
|
|
613
|
-
<p><strong>IMPORTANT</strong>: If you are also passing a <code>type</code>, most browsers will use the <code>type</code> attribute to determine what keyboard to display on mobile devices and ignore the <code>inputmode</code> attribute.</p>
|
|
614
|
-
<div class="exampleWrapper">
|
|
615
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
|
|
616
|
-
<!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
|
|
617
|
-
<auro-input inputmode="tel">
|
|
618
|
-
<span slot="label">Telephone</span>
|
|
865
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
|
|
866
|
+
<!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
|
|
867
|
+
<auro-input inputmode="tel">
|
|
868
|
+
<span slot="label">Telephone</span>
|
|
619
869
|
<span slot="helpText">Help Text</span>
|
|
620
870
|
</auro-input>
|
|
621
871
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -899,215 +1149,125 @@
|
|
|
899
1149
|
</auro-input></code></pre>
|
|
900
1150
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
901
1151
|
</auro-accordion>
|
|
902
|
-
<auro-header level="3" id="
|
|
903
|
-
<
|
|
904
|
-
<
|
|
905
|
-
<
|
|
906
|
-
<li><strong><code>setCustomValidityValueMissing</code></strong> — Displayed when the component is <code>required</code> and the user leaves it empty.</li>
|
|
907
|
-
<li><strong><code>setCustomValidityForType</code></strong> — Displayed when the value does not match the expected format for the declared <code>type</code> (e.g. invalid email, phone number).</li>
|
|
908
|
-
<li><strong><code>setCustomValidityBadInput</code></strong> — Displayed when the browser considers the input value to be malformed (e.g. non-numeric characters in a <code>number</code> field).</li>
|
|
909
|
-
<li><strong><code>setCustomValidityRangeOverflow</code></strong> — Displayed when the value exceeds the <code>max</code> constraint.</li>
|
|
910
|
-
<li><strong><code>setCustomValidityRangeUnderflow</code></strong> — Displayed when the value is below the <code>min</code> constraint.</li>
|
|
911
|
-
<li><strong><code>setCustomValidityTooLong</code></strong> — Displayed when the value exceeds the <code>maxlength</code> constraint.</li>
|
|
912
|
-
<li><strong><code>setCustomValidityTooShort</code></strong> — Displayed when the value is shorter than the <code>minlength</code> constraint.</li>
|
|
913
|
-
<li><strong><code>setCustomValidityPatternMismatch</code></strong> — Displayed when the value does not match the declared <code>pattern</code>, or when <code>type="date"</code> and the entered date is not a valid calendar date (e.g. month/day values out of range). Falls back to <code>"Invalid Date Format Entered"</code> if not set.</li>
|
|
914
|
-
</ul>
|
|
915
|
-
<p>The priority order for error messages is: state-specific property > <code>setCustomValidity</code> > default browser message.</p>
|
|
916
|
-
<p class="note"><strong>Note:</strong> Custom strings are NOT localized. It is the responsibility of the element consumer to provide localized strings when using these properties.</p>
|
|
917
|
-
<auro-header level="4">Fallback Message</auro-header>
|
|
918
|
-
<p>Use <code>setCustomValidity</code> to set a single message for all validation states.</p>
|
|
919
|
-
<div class="exampleWrapper">
|
|
920
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity.html) -->
|
|
921
|
-
<!-- The below content is automatically added from ../apiExamples/set-custom-validity.html -->
|
|
922
|
-
<auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
|
|
923
|
-
<span slot="label">Full Name</span>
|
|
924
|
-
<span slot="helpText">Please enter your full name.</span>
|
|
925
|
-
</auro-input>
|
|
926
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
927
|
-
</div>
|
|
928
|
-
<auro-accordion alignRight>
|
|
929
|
-
<span slot="trigger">See code</span>
|
|
930
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity.html) -->
|
|
931
|
-
<!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity.html -->
|
|
932
|
-
<pre class="language-html"><code class="language-html"><auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
|
|
933
|
-
<span slot="label">Full Name</span>
|
|
934
|
-
<span slot="helpText">Please enter your full name.</span>
|
|
935
|
-
</auro-input></code></pre>
|
|
936
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
937
|
-
</auro-accordion>
|
|
938
|
-
<auro-header level="4">Value Missing</auro-header>
|
|
939
|
-
<p>Use <code>setCustomValidityValueMissing</code> to customize the message when a <code>required</code> field is left empty.</p>
|
|
940
|
-
<div class="exampleWrapper">
|
|
941
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-value-missing.html) -->
|
|
942
|
-
<!-- The below content is automatically added from ../apiExamples/set-custom-validity-value-missing.html -->
|
|
943
|
-
<auro-input required setCustomValidityValueMissing="Please enter your name to continue.">
|
|
944
|
-
<span slot="label">Full Name</span>
|
|
945
|
-
<span slot="helpText">Enter your legal first and last name.</span>
|
|
946
|
-
</auro-input>
|
|
947
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
948
|
-
</div>
|
|
949
|
-
<auro-accordion alignRight>
|
|
950
|
-
<span slot="trigger">See code</span>
|
|
951
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-value-missing.html) -->
|
|
952
|
-
<!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-value-missing.html -->
|
|
953
|
-
<pre class="language-html"><code class="language-html"><auro-input required setCustomValidityValueMissing="Please enter your name to continue.">
|
|
954
|
-
<span slot="label">Full Name</span>
|
|
955
|
-
<span slot="helpText">Enter your legal first and last name.</span>
|
|
956
|
-
</auro-input></code></pre>
|
|
957
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
958
|
-
</auro-accordion>
|
|
959
|
-
<auro-header level="4">Type Validation</auro-header>
|
|
960
|
-
<p>Use <code>setCustomValidityForType</code> to customize the message when the value doesn't match the declared <code>type</code> format.</p>
|
|
961
|
-
<div class="exampleWrapper">
|
|
962
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-for-type.html) -->
|
|
963
|
-
<!-- The below content is automatically added from ../apiExamples/set-custom-validity-for-type.html -->
|
|
964
|
-
<auro-input type="email" setCustomValidityForType="Please provide a valid email address (e.g. name@example.com).">
|
|
965
|
-
<span slot="label">Email Address</span>
|
|
966
|
-
<span slot="helpText">We'll use this to send your confirmation.</span>
|
|
967
|
-
</auro-input>
|
|
968
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
969
|
-
</div>
|
|
970
|
-
<auro-accordion alignRight>
|
|
971
|
-
<span slot="trigger">See code</span>
|
|
972
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-for-type.html) -->
|
|
973
|
-
<!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-for-type.html -->
|
|
974
|
-
<pre class="language-html"><code class="language-html"><auro-input type="email" setCustomValidityForType="Please provide a valid email address (e.g. name@example.com).">
|
|
975
|
-
<span slot="label">Email Address</span>
|
|
976
|
-
<span slot="helpText">We'll use this to send your confirmation.</span>
|
|
977
|
-
</auro-input></code></pre>
|
|
978
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
979
|
-
</auro-accordion>
|
|
980
|
-
<auro-header level="4">Bad Input</auro-header>
|
|
981
|
-
<p>Use <code>setCustomValidityBadInput</code> to customize the message when the browser considers the input malformed.</p>
|
|
1152
|
+
<auro-header level="3" id="type">Type</auro-header>
|
|
1153
|
+
<auro-header level="4" id="typeCreditCard">Credit Card</auro-header>
|
|
1154
|
+
<p>Use the <code>type="credit-card"</code> attribute for a credit card formatted input.</p>
|
|
1155
|
+
<p>Default help text will be added to the input <code>type="credit-card"</code> if custom help text is not provided.</p>
|
|
982
1156
|
<div class="exampleWrapper">
|
|
983
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
984
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
985
|
-
<auro-input type="
|
|
986
|
-
<span slot="label">
|
|
987
|
-
<span slot="helpText">
|
|
1157
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/credit-card.html) -->
|
|
1158
|
+
<!-- The below content is automatically added from ../apiExamples/credit-card.html -->
|
|
1159
|
+
<auro-input type="credit-card" required>
|
|
1160
|
+
<span slot="label">Card number</span>
|
|
1161
|
+
<span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
|
|
988
1162
|
</auro-input>
|
|
989
1163
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
990
1164
|
</div>
|
|
991
1165
|
<auro-accordion alignRight>
|
|
992
1166
|
<span slot="trigger">See code</span>
|
|
993
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
994
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
995
|
-
<pre class="language-html"><code class="language-html"><auro-input type="
|
|
996
|
-
<span slot="label">
|
|
997
|
-
<span slot="helpText">
|
|
1167
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/credit-card.html) -->
|
|
1168
|
+
<!-- The below code snippet is automatically added from ../apiExamples/credit-card.html -->
|
|
1169
|
+
<pre class="language-html"><code class="language-html"><auro-input type="credit-card" required>
|
|
1170
|
+
<span slot="label">Card number</span>
|
|
1171
|
+
<span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
|
|
998
1172
|
</auro-input></code></pre>
|
|
999
1173
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1000
1174
|
</auro-accordion>
|
|
1001
|
-
<
|
|
1002
|
-
<p>Use <code>setCustomValidityRangeOverflow</code> to customize the message when the value exceeds the <code>max</code> constraint.</p>
|
|
1175
|
+
<p>Use the <code>type="credit-card"</code> and <code>icon</code> attributes for a credit card formatted input with credit card icon support.</p>
|
|
1003
1176
|
<div class="exampleWrapper">
|
|
1004
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
1005
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
1006
|
-
<auro-input type="
|
|
1007
|
-
<span slot="label">
|
|
1008
|
-
<span slot="helpText">
|
|
1177
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/credit-card-icon.html) -->
|
|
1178
|
+
<!-- The below content is automatically added from ../apiExamples/credit-card-icon.html -->
|
|
1179
|
+
<auro-input icon type="credit-card" required>
|
|
1180
|
+
<span slot="label">Card number</span>
|
|
1181
|
+
<span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
|
|
1009
1182
|
</auro-input>
|
|
1010
1183
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1011
1184
|
</div>
|
|
1012
1185
|
<auro-accordion alignRight>
|
|
1013
1186
|
<span slot="trigger">See code</span>
|
|
1014
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
1015
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
1016
|
-
<pre class="language-html"><code class="language-html"><auro-input type="
|
|
1017
|
-
<span slot="label">
|
|
1018
|
-
<span slot="helpText">
|
|
1187
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/credit-card-icon.html) -->
|
|
1188
|
+
<!-- The below code snippet is automatically added from ../apiExamples/credit-card-icon.html -->
|
|
1189
|
+
<pre class="language-html"><code class="language-html"><auro-input icon type="credit-card" required>
|
|
1190
|
+
<span slot="label">Card number</span>
|
|
1191
|
+
<span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
|
|
1019
1192
|
</auro-input></code></pre>
|
|
1020
1193
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1021
1194
|
</auro-accordion>
|
|
1022
|
-
<auro-header level="4">
|
|
1023
|
-
<p>Use <code>
|
|
1195
|
+
<auro-header level="4" id="typeDate">Date</auro-header>
|
|
1196
|
+
<p>Use the <code>type="date"</code> attribute for a date formatted input. The default date format is <code>mm/dd/yyyy</code>.</p>
|
|
1024
1197
|
<div class="exampleWrapper">
|
|
1025
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
1026
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
1027
|
-
<auro-input type="date"
|
|
1028
|
-
<span slot="label">
|
|
1029
|
-
<span slot="helpText">
|
|
1198
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/month-day-year.html) -->
|
|
1199
|
+
<!-- The below content is automatically added from ../apiExamples/month-day-year.html -->
|
|
1200
|
+
<auro-input type="date">
|
|
1201
|
+
<span slot="label">Arrival date</span>
|
|
1202
|
+
<span slot="helpText">Help Text</span>
|
|
1030
1203
|
</auro-input>
|
|
1031
1204
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1032
1205
|
</div>
|
|
1033
1206
|
<auro-accordion alignRight>
|
|
1034
1207
|
<span slot="trigger">See code</span>
|
|
1035
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
1036
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
1037
|
-
<pre class="language-html"><code class="language-html"><auro-input type="date"
|
|
1038
|
-
<span slot="label">
|
|
1039
|
-
<span slot="helpText">
|
|
1208
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/month-day-year.html) -->
|
|
1209
|
+
<!-- The below code snippet is automatically added from ../apiExamples/month-day-year.html -->
|
|
1210
|
+
<pre class="language-html"><code class="language-html"><auro-input type="date">
|
|
1211
|
+
<span slot="label">Arrival date</span>
|
|
1212
|
+
<span slot="helpText">Help Text</span>
|
|
1040
1213
|
</auro-input></code></pre>
|
|
1041
1214
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1042
1215
|
</auro-accordion>
|
|
1043
|
-
<
|
|
1044
|
-
<p>Use <code>setCustomValidityTooLong</code> to customize the message when the value exceeds the <code>maxlength</code> constraint.</p>
|
|
1216
|
+
<p>Use the <code>format</code> attribute to put together any combination of <code>mm</code>, <code>dd</code>, & <code>yyyy</code> or <code>yy</code>.</p>
|
|
1045
1217
|
<div class="exampleWrapper">
|
|
1046
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
1047
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
1048
|
-
<auro-input
|
|
1049
|
-
<span slot="label">
|
|
1050
|
-
<span slot="helpText">
|
|
1218
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/year-month-day.html) -->
|
|
1219
|
+
<!-- The below content is automatically added from ../apiExamples/year-month-day.html -->
|
|
1220
|
+
<auro-input type="date" format="yyyy/mm/dd">
|
|
1221
|
+
<span slot="label">Arrival date</span>
|
|
1222
|
+
<span slot="helpText">Help Text</span>
|
|
1051
1223
|
</auro-input>
|
|
1052
1224
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1053
1225
|
</div>
|
|
1054
1226
|
<auro-accordion alignRight>
|
|
1055
1227
|
<span slot="trigger">See code</span>
|
|
1056
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
1057
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
1058
|
-
<pre class="language-html"><code class="language-html"><auro-input
|
|
1059
|
-
<span slot="label">
|
|
1060
|
-
<span slot="helpText">
|
|
1228
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/year-month-day.html) -->
|
|
1229
|
+
<!-- The below code snippet is automatically added from ../apiExamples/year-month-day.html -->
|
|
1230
|
+
<pre class="language-html"><code class="language-html"><auro-input type="date" format="yyyy/mm/dd">
|
|
1231
|
+
<span slot="label">Arrival date</span>
|
|
1232
|
+
<span slot="helpText">Help Text</span>
|
|
1061
1233
|
</auro-input></code></pre>
|
|
1062
1234
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1063
1235
|
</auro-accordion>
|
|
1064
|
-
<auro-header level="4">Too Short</auro-header>
|
|
1065
|
-
<p>Use <code>setCustomValidityTooShort</code> to customize the message when the value is shorter than the <code>minlength</code> constraint.</p>
|
|
1066
1236
|
<div class="exampleWrapper">
|
|
1067
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
1068
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
1069
|
-
<auro-input
|
|
1070
|
-
<span slot="label">
|
|
1071
|
-
<span slot="helpText">
|
|
1237
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/month-year.html) -->
|
|
1238
|
+
<!-- The below content is automatically added from ../apiExamples/month-year.html -->
|
|
1239
|
+
<auro-input type="date" format="mm/yy">
|
|
1240
|
+
<span slot="label">Expiration date</span>
|
|
1241
|
+
<span slot="helpText">Help Text</span>
|
|
1072
1242
|
</auro-input>
|
|
1073
1243
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1074
1244
|
</div>
|
|
1075
1245
|
<auro-accordion alignRight>
|
|
1076
1246
|
<span slot="trigger">See code</span>
|
|
1077
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
1078
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
1079
|
-
<pre class="language-html"><code class="language-html"><auro-input
|
|
1080
|
-
<span slot="label">
|
|
1081
|
-
<span slot="helpText">
|
|
1247
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/month-year.html) -->
|
|
1248
|
+
<!-- The below code snippet is automatically added from ../apiExamples/month-year.html -->
|
|
1249
|
+
<pre class="language-html"><code class="language-html"><auro-input type="date" format="mm/yy">
|
|
1250
|
+
<span slot="label">Expiration date</span>
|
|
1251
|
+
<span slot="helpText">Help Text</span>
|
|
1082
1252
|
</auro-input></code></pre>
|
|
1083
1253
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1084
1254
|
</auro-accordion>
|
|
1085
|
-
<auro-header level="3" id="type">Type</auro-header>
|
|
1086
|
-
<auro-header level="4" id="typePassword">Password</auro-header>
|
|
1087
|
-
<p>Use the <code>type="password"</code> attribute for a password style input. The hide/show password feature will automatically appear once a user begins to enter data.</p>
|
|
1088
|
-
<p>Default help text will be added to the input <code>type="password"</code> if custom help text is not provided.</p>
|
|
1089
1255
|
<div class="exampleWrapper">
|
|
1090
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
1091
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
1092
|
-
<auro-input type="
|
|
1093
|
-
<span slot="
|
|
1094
|
-
<span slot="
|
|
1095
|
-
<span slot="ariaLabel.password.hide">Hide</span>
|
|
1096
|
-
<span slot="label">Password</span>
|
|
1097
|
-
<span slot="helpText">Please enter a secure password.</span>
|
|
1256
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/day.html) -->
|
|
1257
|
+
<!-- The below content is automatically added from ../apiExamples/day.html -->
|
|
1258
|
+
<auro-input type="date" format="dd">
|
|
1259
|
+
<span slot="label">Day</span>
|
|
1260
|
+
<span slot="helpText">Help Text</span>
|
|
1098
1261
|
</auro-input>
|
|
1099
1262
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1100
1263
|
</div>
|
|
1101
1264
|
<auro-accordion alignRight>
|
|
1102
1265
|
<span slot="trigger">See code</span>
|
|
1103
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
1104
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
1105
|
-
<pre class="language-html"><code class="language-html"><auro-input type="
|
|
1106
|
-
<span slot="
|
|
1107
|
-
<span slot="
|
|
1108
|
-
<span slot="ariaLabel.password.hide">Hide</span>
|
|
1109
|
-
<span slot="label">Password</span>
|
|
1110
|
-
<span slot="helpText">Please enter a secure password.</span>
|
|
1266
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/day.html) -->
|
|
1267
|
+
<!-- The below code snippet is automatically added from ../apiExamples/day.html -->
|
|
1268
|
+
<pre class="language-html"><code class="language-html"><auro-input type="date" format="dd">
|
|
1269
|
+
<span slot="label">Day</span>
|
|
1270
|
+
<span slot="helpText">Help Text</span>
|
|
1111
1271
|
</auro-input></code></pre>
|
|
1112
1272
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1113
1273
|
</auro-accordion>
|
|
@@ -1156,45 +1316,31 @@
|
|
|
1156
1316
|
</auro-input></code></pre>
|
|
1157
1317
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1158
1318
|
</auro-accordion>
|
|
1159
|
-
<auro-header level="4" id="
|
|
1160
|
-
<p>Use the <code>type="
|
|
1161
|
-
<p>Default help text will be added to the input <code>type="
|
|
1162
|
-
<div class="exampleWrapper">
|
|
1163
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/credit-card.html) -->
|
|
1164
|
-
<!-- The below content is automatically added from ../apiExamples/credit-card.html -->
|
|
1165
|
-
<auro-input type="credit-card" required>
|
|
1166
|
-
<span slot="label">Card number</span>
|
|
1167
|
-
<span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
|
|
1168
|
-
</auro-input>
|
|
1169
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1170
|
-
</div>
|
|
1171
|
-
<auro-accordion alignRight>
|
|
1172
|
-
<span slot="trigger">See code</span>
|
|
1173
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/credit-card.html) -->
|
|
1174
|
-
<!-- The below code snippet is automatically added from ../apiExamples/credit-card.html -->
|
|
1175
|
-
<pre class="language-html"><code class="language-html"><auro-input type="credit-card" required>
|
|
1176
|
-
<span slot="label">Card number</span>
|
|
1177
|
-
<span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
|
|
1178
|
-
</auro-input></code></pre>
|
|
1179
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1180
|
-
</auro-accordion>
|
|
1181
|
-
<p>Use the <code>type="credit-card"</code> and <code>icon</code> attributes for a credit card formatted input with credit card icon support.</p>
|
|
1319
|
+
<auro-header level="4" id="typePassword">Password</auro-header>
|
|
1320
|
+
<p>Use the <code>type="password"</code> attribute for a password style input. The hide/show password feature will automatically appear once a user begins to enter data.</p>
|
|
1321
|
+
<p>Default help text will be added to the input <code>type="password"</code> if custom help text is not provided.</p>
|
|
1182
1322
|
<div class="exampleWrapper">
|
|
1183
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
1184
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
1185
|
-
<auro-input
|
|
1186
|
-
<span slot="
|
|
1187
|
-
<span slot="
|
|
1323
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/password.html) -->
|
|
1324
|
+
<!-- The below content is automatically added from ../apiExamples/password.html -->
|
|
1325
|
+
<auro-input type="password" required>
|
|
1326
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
1327
|
+
<span slot="ariaLabel.password.show">Show</span>
|
|
1328
|
+
<span slot="ariaLabel.password.hide">Hide</span>
|
|
1329
|
+
<span slot="label">Password</span>
|
|
1330
|
+
<span slot="helpText">Please enter a secure password.</span>
|
|
1188
1331
|
</auro-input>
|
|
1189
1332
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1190
1333
|
</div>
|
|
1191
1334
|
<auro-accordion alignRight>
|
|
1192
1335
|
<span slot="trigger">See code</span>
|
|
1193
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
1194
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
1195
|
-
<pre class="language-html"><code class="language-html"><auro-input
|
|
1196
|
-
<span slot="
|
|
1197
|
-
<span slot="
|
|
1336
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/password.html) -->
|
|
1337
|
+
<!-- The below code snippet is automatically added from ../apiExamples/password.html -->
|
|
1338
|
+
<pre class="language-html"><code class="language-html"><auro-input type="password" required>
|
|
1339
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
1340
|
+
<span slot="ariaLabel.password.show">Show</span>
|
|
1341
|
+
<span slot="ariaLabel.password.hide">Hide</span>
|
|
1342
|
+
<span slot="label">Password</span>
|
|
1343
|
+
<span slot="helpText">Please enter a secure password.</span>
|
|
1198
1344
|
</auro-input></code></pre>
|
|
1199
1345
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1200
1346
|
</auro-accordion>
|
|
@@ -1240,85 +1386,6 @@
|
|
|
1240
1386
|
</auro-input></code></pre>
|
|
1241
1387
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1242
1388
|
</auro-accordion>
|
|
1243
|
-
<auro-header level="4" id="typeDate">Date</auro-header>
|
|
1244
|
-
<p>Use the <code>type="date"</code> attribute for a date formatted input. The default date format is <code>mm/dd/yyyy</code>.</p>
|
|
1245
|
-
<div class="exampleWrapper">
|
|
1246
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/month-day-year.html) -->
|
|
1247
|
-
<!-- The below content is automatically added from ../apiExamples/month-day-year.html -->
|
|
1248
|
-
<auro-input type="date">
|
|
1249
|
-
<span slot="label">Arrival date</span>
|
|
1250
|
-
<span slot="helpText">Help Text</span>
|
|
1251
|
-
</auro-input>
|
|
1252
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1253
|
-
</div>
|
|
1254
|
-
<auro-accordion alignRight>
|
|
1255
|
-
<span slot="trigger">See code</span>
|
|
1256
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/month-day-year.html) -->
|
|
1257
|
-
<!-- The below code snippet is automatically added from ../apiExamples/month-day-year.html -->
|
|
1258
|
-
<pre class="language-html"><code class="language-html"><auro-input type="date">
|
|
1259
|
-
<span slot="label">Arrival date</span>
|
|
1260
|
-
<span slot="helpText">Help Text</span>
|
|
1261
|
-
</auro-input></code></pre>
|
|
1262
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1263
|
-
</auro-accordion>
|
|
1264
|
-
<p>Use the <code>format</code> attribute to put together any combination of <code>mm</code>, <code>dd</code>, & <code>yyyy</code> or <code>yy</code>.</p>
|
|
1265
|
-
<div class="exampleWrapper">
|
|
1266
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/year-month-day.html) -->
|
|
1267
|
-
<!-- The below content is automatically added from ../apiExamples/year-month-day.html -->
|
|
1268
|
-
<auro-input type="date" format="yyyy/mm/dd">
|
|
1269
|
-
<span slot="label">Arrival date</span>
|
|
1270
|
-
<span slot="helpText">Help Text</span>
|
|
1271
|
-
</auro-input>
|
|
1272
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1273
|
-
</div>
|
|
1274
|
-
<auro-accordion alignRight>
|
|
1275
|
-
<span slot="trigger">See code</span>
|
|
1276
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/year-month-day.html) -->
|
|
1277
|
-
<!-- The below code snippet is automatically added from ../apiExamples/year-month-day.html -->
|
|
1278
|
-
<pre class="language-html"><code class="language-html"><auro-input type="date" format="yyyy/mm/dd">
|
|
1279
|
-
<span slot="label">Arrival date</span>
|
|
1280
|
-
<span slot="helpText">Help Text</span>
|
|
1281
|
-
</auro-input></code></pre>
|
|
1282
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1283
|
-
</auro-accordion>
|
|
1284
|
-
<div class="exampleWrapper">
|
|
1285
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/month-year.html) -->
|
|
1286
|
-
<!-- The below content is automatically added from ../apiExamples/month-year.html -->
|
|
1287
|
-
<auro-input type="date" format="mm/yy">
|
|
1288
|
-
<span slot="label">Expiration date</span>
|
|
1289
|
-
<span slot="helpText">Help Text</span>
|
|
1290
|
-
</auro-input>
|
|
1291
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1292
|
-
</div>
|
|
1293
|
-
<auro-accordion alignRight>
|
|
1294
|
-
<span slot="trigger">See code</span>
|
|
1295
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/month-year.html) -->
|
|
1296
|
-
<!-- The below code snippet is automatically added from ../apiExamples/month-year.html -->
|
|
1297
|
-
<pre class="language-html"><code class="language-html"><auro-input type="date" format="mm/yy">
|
|
1298
|
-
<span slot="label">Expiration date</span>
|
|
1299
|
-
<span slot="helpText">Help Text</span>
|
|
1300
|
-
</auro-input></code></pre>
|
|
1301
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1302
|
-
</auro-accordion>
|
|
1303
|
-
<div class="exampleWrapper">
|
|
1304
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/day.html) -->
|
|
1305
|
-
<!-- The below content is automatically added from ../apiExamples/day.html -->
|
|
1306
|
-
<auro-input type="date" format="dd">
|
|
1307
|
-
<span slot="label">Day</span>
|
|
1308
|
-
<span slot="helpText">Help Text</span>
|
|
1309
|
-
</auro-input>
|
|
1310
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1311
|
-
</div>
|
|
1312
|
-
<auro-accordion alignRight>
|
|
1313
|
-
<span slot="trigger">See code</span>
|
|
1314
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/day.html) -->
|
|
1315
|
-
<!-- The below code snippet is automatically added from ../apiExamples/day.html -->
|
|
1316
|
-
<pre class="language-html"><code class="language-html"><auro-input type="date" format="dd">
|
|
1317
|
-
<span slot="label">Day</span>
|
|
1318
|
-
<span slot="helpText">Help Text</span>
|
|
1319
|
-
</auro-input></code></pre>
|
|
1320
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1321
|
-
</auro-accordion>
|
|
1322
1389
|
<auro-header level="3" id="validateOnInput">Validate on Input</auro-header>
|
|
1323
1390
|
<p>Use the <code>validateOnInput</code> attribute to enable live validation on the <code>input</code> event. Recommended use is with setting a custom <code>pattern</code> and validation is required prior to a <code>blur</code> event.</p>
|
|
1324
1391
|
<div class="exampleWrapper">
|