@aurodesignsystem-dev/auro-formkit 0.0.0-pr1498.0 → 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 +2 -2
- package/components/checkbox/demo/getting-started.min.js +2 -2
- package/components/checkbox/demo/index.min.js +2 -2
- package/components/checkbox/dist/index.js +2 -2
- package/components/checkbox/dist/registered.js +2 -2
- package/components/combobox/demo/customize.md +3 -7
- package/components/combobox/demo/customize.min.js +1705 -1459
- package/components/combobox/demo/getting-started.min.js +1705 -1459
- package/components/combobox/demo/index.min.js +1705 -1459
- package/components/combobox/dist/auro-combobox.d.ts +0 -5
- package/components/combobox/dist/index.js +162 -491
- package/components/combobox/dist/registered.js +162 -491
- package/components/counter/demo/customize.min.js +19 -18
- package/components/counter/demo/index.min.js +19 -18
- package/components/counter/dist/index.js +187 -5442
- package/components/counter/dist/registered.js +187 -5442
- package/components/datepicker/demo/customize.md +477 -384
- package/components/datepicker/demo/customize.min.js +96 -161
- package/components/datepicker/demo/index.md +0 -1
- package/components/datepicker/demo/index.min.js +96 -161
- package/components/datepicker/dist/index.js +96 -161
- package/components/datepicker/dist/registered.js +96 -161
- package/components/datepicker/dist/src/auro-datepicker.d.ts +2 -2
- package/components/dropdown/demo/customize.min.js +17 -16
- package/components/dropdown/demo/getting-started.min.js +17 -16
- package/components/dropdown/demo/index.min.js +17 -16
- package/components/dropdown/dist/auro-dropdown.d.ts +2 -1
- package/components/dropdown/dist/index.js +17 -16
- package/components/dropdown/dist/registered.js +17 -16
- package/components/form/demo/customize.min.js +7965 -7884
- package/components/form/demo/getting-started.min.js +7965 -7884
- package/components/form/demo/index.min.js +7965 -7884
- package/components/form/demo/registerDemoDeps.min.js +7934 -7853
- package/components/input/demo/customize.md +539 -472
- package/components/input/demo/customize.min.js +61 -132
- package/components/input/demo/getting-started.min.js +61 -132
- package/components/input/demo/index.min.js +61 -132
- package/components/input/dist/base-input.d.ts +0 -16
- package/components/input/dist/index.js +61 -132
- package/components/input/dist/registered.js +61 -132
- package/components/menu/demo/api.md +45 -41
- package/components/menu/demo/customize.md +28 -0
- package/components/menu/demo/index.min.js +1358 -783
- package/components/menu/dist/auro-menu.context.d.ts +238 -0
- package/components/menu/dist/auro-menu.d.ts +110 -95
- package/components/menu/dist/auro-menuoption.d.ts +138 -32
- package/components/menu/dist/index.js +1312 -757
- package/components/menu/dist/registered.js +1312 -769
- package/components/radio/demo/customize.min.js +2 -2
- package/components/radio/demo/getting-started.min.js +2 -2
- package/components/radio/demo/index.min.js +2 -2
- package/components/radio/dist/index.js +2 -2
- package/components/radio/dist/registered.js +2 -2
- package/components/select/demo/customize.md +3 -7
- package/components/select/demo/customize.min.js +1634 -1089
- package/components/select/demo/getting-started.min.js +1634 -1089
- package/components/select/demo/index.min.js +1634 -1089
- package/components/select/dist/index.js +31 -61
- package/components/select/dist/registered.js +31 -61
- package/custom-elements.json +2085 -1439
- package/package.json +1 -1
- package/components/select/dist/selectUtils.d.ts +0 -12
|
@@ -5,81 +5,27 @@
|
|
|
5
5
|
<span slot="mobileToggleCollapsed">View More</span>
|
|
6
6
|
<span slot="mobileToggleExpanded">View Less</span>
|
|
7
7
|
<auro-anchorlink fluid href="#appearance">Appearance</auro-anchorlink>
|
|
8
|
-
<auro-anchorlink fluid href="#layout" class="level2 body-xs">Shape, Size & Layout</auro-anchorlink>
|
|
9
|
-
<auro-anchorlink fluid href="#background" class="level2 body-xs">Light vs. Dark Background</auro-anchorlink>
|
|
10
8
|
<auro-anchorlink fluid href="#placement" class="level2 body-xs">Bib Placement</auro-anchorlink>
|
|
9
|
+
<auro-anchorlink fluid href="#cssParts" class="level2 body-xs">CSS Shadow Parts</auro-anchorlink>
|
|
11
10
|
<auro-anchorlink fluid href="#breakpoint" class="level2 body-xs">Fullscreen Breakpoint</auro-anchorlink>
|
|
11
|
+
<auro-anchorlink fluid href="#background" class="level2 body-xs">Light vs. Dark Background</auro-anchorlink>
|
|
12
|
+
<auro-anchorlink fluid href="#localization" class="level2 body-xs">Localization</auro-anchorlink>
|
|
13
|
+
<auro-anchorlink fluid href="#layout" class="level2 body-xs">Shape, Size & Layout</auro-anchorlink>
|
|
12
14
|
<auro-anchorlink fluid href="#cssTokens" class="level2 body-xs">Tokens</auro-anchorlink>
|
|
13
|
-
<auro-anchorlink fluid href="#cssParts" class="level2 body-xs">CSS Shadow Parts</auro-anchorlink>
|
|
14
15
|
<auro-anchorlink fluid href="#customBehavior">Behavior</auro-anchorlink>
|
|
15
|
-
<auro-anchorlink fluid href="#
|
|
16
|
+
<auro-anchorlink fluid href="#customValidation" class="level2 body-xs">Custom Validation</auro-anchorlink>
|
|
16
17
|
<auro-anchorlink fluid href="#disableComponent" class="level2 body-xs">Disable Component</auro-anchorlink>
|
|
17
|
-
<auro-anchorlink fluid href="#requireSelection" class="level2 body-xs">Require Selection</auro-anchorlink>
|
|
18
18
|
<auro-anchorlink fluid href="#forceError" class="level2 body-xs">Force Error State</auro-anchorlink>
|
|
19
|
-
<auro-anchorlink fluid href="#
|
|
20
|
-
<auro-anchorlink fluid href="#noValidate" class="level2 body-xs">No Validation</auro-anchorlink>
|
|
19
|
+
<auro-anchorlink fluid href="#inputMode" class="level2 body-xs">Input Mode</auro-anchorlink>
|
|
21
20
|
<auro-anchorlink fluid href="#minMaxDate" class="level2 body-xs">Min/Max Date</auro-anchorlink>
|
|
22
|
-
<auro-anchorlink fluid href="#
|
|
23
|
-
<auro-anchorlink fluid href="#
|
|
21
|
+
<auro-anchorlink fluid href="#noValidate" class="level2 body-xs">No Validation</auro-anchorlink>
|
|
22
|
+
<auro-anchorlink fluid href="#requireSelection" class="level2 body-xs">Require Selection</auro-anchorlink>
|
|
24
23
|
</auro-nav>
|
|
25
24
|
</nav>
|
|
26
25
|
<div class="mainContent">
|
|
27
26
|
<div class="scrollWrapper">
|
|
28
27
|
<section>
|
|
29
28
|
<auro-header level="2" id="appearance">Appearance</auro-header>
|
|
30
|
-
<auro-header level="3" id="layout">Shape, Size & Layout</auro-header>
|
|
31
|
-
<p>The <code>shape</code>, <code>size</code> and <code>layout</code> attributes work in collaboration to control the overall architecture of the component.</p>
|
|
32
|
-
<p>See the <a href="./design.html">Design page</a> for a detailed breakdown.</p>
|
|
33
|
-
<auro-header level="3" id="background">Light vs. Dark Background</auro-header>
|
|
34
|
-
<p>The <code>appearance</code> attribute defines whether the component renders on lighter or darker backgrounds. Supported values are <code>default</code> and <code>inverse</code>. The default value is <code>default</code>.</p>
|
|
35
|
-
<div class="exampleWrapper">
|
|
36
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
37
|
-
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
38
|
-
<auro-datepicker>
|
|
39
|
-
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
40
|
-
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
41
|
-
<span slot="fromLabel">Choose a date</span>
|
|
42
|
-
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
43
|
-
</auro-datepicker>
|
|
44
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
45
|
-
</div>
|
|
46
|
-
<auro-accordion alignRight>
|
|
47
|
-
<span slot="trigger">See code</span>
|
|
48
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
49
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
50
|
-
|
|
51
|
-
<pre class="language-html"><code class="language-html"><auro-datepicker>
|
|
52
|
-
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
53
|
-
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
54
|
-
<span slot="fromLabel">Choose a date</span>
|
|
55
|
-
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
56
|
-
</auro-datepicker></code></pre>
|
|
57
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
58
|
-
</auro-accordion>
|
|
59
|
-
<div class="exampleWrapper--ondark">
|
|
60
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
61
|
-
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
62
|
-
<auro-datepicker appearance="inverse">
|
|
63
|
-
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
64
|
-
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
65
|
-
<span slot="fromLabel">Choose a date</span>
|
|
66
|
-
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
67
|
-
</auro-datepicker>
|
|
68
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
69
|
-
</div>
|
|
70
|
-
<auro-accordion alignRight>
|
|
71
|
-
<span slot="trigger">See code</span>
|
|
72
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse.html) -->
|
|
73
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
74
|
-
|
|
75
|
-
<pre class="language-html"><code class="language-html"><auro-datepicker appearance="inverse">
|
|
76
|
-
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
77
|
-
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
78
|
-
<span slot="fromLabel">Choose a date</span>
|
|
79
|
-
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
80
|
-
</auro-datepicker></code></pre>
|
|
81
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
82
|
-
</auro-accordion>
|
|
83
29
|
<auro-header level="3" id="placement">Bib Placement</auro-header>
|
|
84
30
|
<p>The bib position can be customized with <code>placement</code>, <code>offset</code>, <code>flip</code>, <code>autoPlacement</code>, and <code>shift</code> attributes.</p>
|
|
85
31
|
<div class="exampleWrapper">
|
|
@@ -154,6 +100,78 @@
|
|
|
154
100
|
</div></code></pre>
|
|
155
101
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
156
102
|
</auro-accordion>
|
|
103
|
+
</section>
|
|
104
|
+
<section>
|
|
105
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/css-parts.md) -->
|
|
106
|
+
<!-- The below content is automatically added from ./../docs/partials/customize/css-parts.md -->
|
|
107
|
+
<auro-header level="3" id="cssParts">CSS Shadow Parts</auro-header>
|
|
108
|
+
<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-datepicker></code>.</p>
|
|
109
|
+
<table class="auro_table">
|
|
110
|
+
<thead>
|
|
111
|
+
<tr>
|
|
112
|
+
<th>Part</th>
|
|
113
|
+
<th>Description</th>
|
|
114
|
+
</tr>
|
|
115
|
+
</thead>
|
|
116
|
+
<tbody>
|
|
117
|
+
<tr><td><code>dropdown</code></td><td>The outer dropdown container.</td></tr>
|
|
118
|
+
<tr><td><code>trigger</code></td><td>The trigger content container.</td></tr>
|
|
119
|
+
<tr><td><code>input</code></td><td>The date input element(s).</td></tr>
|
|
120
|
+
<tr><td><code>calendarWrapper</code></td><td>The calendar bib sizing container.</td></tr>
|
|
121
|
+
<tr><td><code>calendar</code></td><td>The calendar element.</td></tr>
|
|
122
|
+
<tr><td><code>helpTextSpan</code></td><td>The help text container wrapper.</td></tr>
|
|
123
|
+
<tr><td><code>helpText</code></td><td>The help text element.</td></tr>
|
|
124
|
+
</tbody>
|
|
125
|
+
</table>
|
|
126
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
127
|
+
<div class="exampleWrapper">
|
|
128
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/css-parts.html) -->
|
|
129
|
+
<!-- The below content is automatically added from ../apiExamples/css-parts.html -->
|
|
130
|
+
<style>
|
|
131
|
+
auro-datepicker.css-parts-demo::part(trigger) {
|
|
132
|
+
border-color: orange;
|
|
133
|
+
}
|
|
134
|
+
auro-datepicker.css-parts-demo::part(helpText) {
|
|
135
|
+
color: green;
|
|
136
|
+
}
|
|
137
|
+
auro-datepicker.css-parts-demo::part(calendarWrapper) {
|
|
138
|
+
max-height: 400px;
|
|
139
|
+
}
|
|
140
|
+
</style>
|
|
141
|
+
<auro-datepicker class="css-parts-demo">
|
|
142
|
+
<span slot="fromLabel">CSS Parts Example</span>
|
|
143
|
+
<span slot="helpText">This datepicker has custom styles applied via CSS Shadow Parts.</span>
|
|
144
|
+
<span slot="bib.fullscreen.headline">Select Date</span>
|
|
145
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
146
|
+
</auro-datepicker>
|
|
147
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
148
|
+
</div>
|
|
149
|
+
<auro-accordion alignRight>
|
|
150
|
+
<span slot="trigger">See code</span>
|
|
151
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/css-parts.html) -->
|
|
152
|
+
<!-- The below code snippet is automatically added from ../apiExamples/css-parts.html -->
|
|
153
|
+
|
|
154
|
+
<pre class="language-html"><code class="language-html"><style>
|
|
155
|
+
auro-datepicker.css-parts-demo::part(trigger) {
|
|
156
|
+
border-color: orange;
|
|
157
|
+
}
|
|
158
|
+
auro-datepicker.css-parts-demo::part(helpText) {
|
|
159
|
+
color: green;
|
|
160
|
+
}
|
|
161
|
+
auro-datepicker.css-parts-demo::part(calendarWrapper) {
|
|
162
|
+
max-height: 400px;
|
|
163
|
+
}
|
|
164
|
+
</style>
|
|
165
|
+
<auro-datepicker class="css-parts-demo">
|
|
166
|
+
<span slot="fromLabel">CSS Parts Example</span>
|
|
167
|
+
<span slot="helpText">This datepicker has custom styles applied via CSS Shadow Parts.</span>
|
|
168
|
+
<span slot="bib.fullscreen.headline">Select Date</span>
|
|
169
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
170
|
+
</auro-datepicker></code></pre>
|
|
171
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
172
|
+
</auro-accordion>
|
|
173
|
+
</section>
|
|
174
|
+
<section>
|
|
157
175
|
<auro-header level="3" id="breakpoint">Fullscreen Breakpoint</auro-header>
|
|
158
176
|
<p>The <code>fullscreenBreakpoint</code> attribute defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. Supported values are <code>xs</code>, <code>sm</code>, <code>md</code>, <code>lg</code>, <code>xl</code>, and <code>disabled</code>. The default value is <code>sm</code>.</p>
|
|
159
177
|
<div class="exampleWrapper">
|
|
@@ -182,6 +200,294 @@
|
|
|
182
200
|
</auro-accordion>
|
|
183
201
|
</section>
|
|
184
202
|
<section>
|
|
203
|
+
<auro-header level="3" id="background">Light vs. Dark Background</auro-header>
|
|
204
|
+
<p>The <code>appearance</code> attribute defines whether the component renders on lighter or darker backgrounds. Supported values are <code>default</code> and <code>inverse</code>. The default value is <code>default</code>.</p>
|
|
205
|
+
<div class="exampleWrapper">
|
|
206
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
207
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
208
|
+
<auro-datepicker>
|
|
209
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
210
|
+
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
211
|
+
<span slot="fromLabel">Choose a date</span>
|
|
212
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
213
|
+
</auro-datepicker>
|
|
214
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
215
|
+
</div>
|
|
216
|
+
<auro-accordion alignRight>
|
|
217
|
+
<span slot="trigger">See code</span>
|
|
218
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
219
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
220
|
+
|
|
221
|
+
<pre class="language-html"><code class="language-html"><auro-datepicker>
|
|
222
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
223
|
+
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
224
|
+
<span slot="fromLabel">Choose a date</span>
|
|
225
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
226
|
+
</auro-datepicker></code></pre>
|
|
227
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
228
|
+
</auro-accordion>
|
|
229
|
+
<div class="exampleWrapper--ondark">
|
|
230
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
231
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
232
|
+
<auro-datepicker appearance="inverse">
|
|
233
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
234
|
+
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
235
|
+
<span slot="fromLabel">Choose a date</span>
|
|
236
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
237
|
+
</auro-datepicker>
|
|
238
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
239
|
+
</div>
|
|
240
|
+
<auro-accordion alignRight>
|
|
241
|
+
<span slot="trigger">See code</span>
|
|
242
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse.html) -->
|
|
243
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
244
|
+
|
|
245
|
+
<pre class="language-html"><code class="language-html"><auro-datepicker appearance="inverse">
|
|
246
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
247
|
+
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
248
|
+
<span slot="fromLabel">Choose a date</span>
|
|
249
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
250
|
+
</auro-datepicker></code></pre>
|
|
251
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
252
|
+
</auro-accordion>
|
|
253
|
+
</section>
|
|
254
|
+
<section>
|
|
255
|
+
<auro-header level="3" id="localization">Localization</auro-header>
|
|
256
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/localization.md) -->
|
|
257
|
+
<!-- The below content is automatically added from ./../docs/partials/customize/localization.md -->
|
|
258
|
+
<p>The component supports complete localization, including visible strings, screen reader announcements and locale based date formatting.</p>
|
|
259
|
+
<auro-header level="4" id="localizationTrigger">Trigger</auro-header>
|
|
260
|
+
<auro-header level="4" id="localizationTriggerVisibleStrings">Trigger Visible strings</auro-header>
|
|
261
|
+
<p>The visible strings rendered in the input, trigger, and fullscreen bib 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>
|
|
262
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-visible-strings.html) -->
|
|
263
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-visible-strings.html -->
|
|
264
|
+
|
|
265
|
+
<pre class="language-diff"><code class="language-diff"> <auro-datepicker>
|
|
266
|
+
+ <span slot="fromLabel">Abreisedatum</span>
|
|
267
|
+
+ <span slot="helpText">Wählen Sie ein Datum</span>
|
|
268
|
+
+ <span slot="optionalLabel">(freiwillig)</span>
|
|
269
|
+
+ <span slot="bib.fullscreen.headline">Datum auswählen</span>
|
|
270
|
+
+ <span slot="bib.fullscreen.fromLabel">Abreisedatum</span>
|
|
271
|
+
</auro-datepicker></code></pre>
|
|
272
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
273
|
+
<auro-header level="4" id="localizationCalendar">Calendar</auro-header>
|
|
274
|
+
<auro-header level="4" id="localizationCalendarVisibleStrings">Visible strings</auro-header>
|
|
275
|
+
<p>By default, the calendar weekday names rendered above the day grid and the month names rendered in the calendar header are derived from the active <code>locale</code> using 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 they update automatically when <code>locale</code> changes. Use the <code>monthNames</code> attribute to override the derived month names — for example, to supply a translation the browser does not produce or to support a locale the browser does not recognize.</p>
|
|
276
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-calendar-strings.html) -->
|
|
277
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-calendar-strings.html -->
|
|
278
|
+
|
|
279
|
+
<pre class="language-diff"><code class="language-diff">- <auro-datepicker>
|
|
280
|
+
+ <auro-datepicker monthNames='["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]'>
|
|
281
|
+
<span slot="fromLabel">Abreisedatum</span>
|
|
282
|
+
<span slot="helpText">Wählen Sie ein Datum</span>
|
|
283
|
+
</auro-datepicker></code></pre>
|
|
284
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
285
|
+
<auro-header level="4" id="localizationCalendarA11yStrings">Screen reader strings</auro-header>
|
|
286
|
+
<p>Assistive-technology announcements — range descriptors (<code>rangeLabelStart</code>, <code>rangeLabelEnd</code>, <code>rangeLabelBeforeRange</code>, <code>rangeLabelInRange</code>, <code>rangeLabelAfterRange</code>), month navigation labels (<code>navLabelPrevMonth</code>, <code>navLabelNextMonth</code>), and the calendar grid label (<code>calendarGridLabel</code>) — are exposed as individual attributes so they can be translated independently of the visible UI. These strings are not derived from <code>locale</code>; supply translated values for every language you support.</p>
|
|
287
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-screenreader-strings.html) -->
|
|
288
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-screenreader-strings.html -->
|
|
289
|
+
|
|
290
|
+
<pre class="language-diff"><code class="language-diff"> <auro-datepicker
|
|
291
|
+
locale="de-DE"
|
|
292
|
+
range
|
|
293
|
+
+ rangeLabelStart="Startdatum"
|
|
294
|
+
+ rangeLabelEnd="Enddatum"
|
|
295
|
+
+ rangeLabelBeforeRange="vor dem Zeitraum"
|
|
296
|
+
+ rangeLabelInRange="im Zeitraum"
|
|
297
|
+
+ rangeLabelAfterRange="nach dem Zeitraum"
|
|
298
|
+
+ navLabelPrevMonth="Vorheriger Monat"
|
|
299
|
+
+ navLabelNextMonth="Nächster Monat"
|
|
300
|
+
+ calendarGridLabel="Kalendertage des Monats">
|
|
301
|
+
<span slot="fromLabel">Abreise</span>
|
|
302
|
+
<span slot="toLabel">Rückkehr</span>
|
|
303
|
+
<span slot="helpText">Wählen Sie einen Zeitraum</span>
|
|
304
|
+
</auro-datepicker></code></pre>
|
|
305
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
306
|
+
<auro-header level="4" id="localizationDateFormatting">Date formatting</auro-header>
|
|
307
|
+
<p>The <code>locale</code> attribute drives the date format used by the input and the calendar. 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 <code>Intl</code> API, so <code>format</code> does not need to be set manually.</p>
|
|
308
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale.html) -->
|
|
309
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-locale.html -->
|
|
310
|
+
|
|
311
|
+
<pre class="language-diff"><code class="language-diff">- <auro-datepicker>
|
|
312
|
+
+ <auro-datepicker locale="de-DE">
|
|
313
|
+
<span slot="fromLabel">Deutsches Datum</span>
|
|
314
|
+
<span slot="helpText">Hilfetext</span>
|
|
315
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
316
|
+
</auro-datepicker></code></pre>
|
|
317
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
318
|
+
<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>
|
|
319
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale-inherited.html) -->
|
|
320
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-locale-inherited.html -->
|
|
321
|
+
|
|
322
|
+
<pre class="language-diff"><code class="language-diff">+ <div data-locale="ja-JP">
|
|
323
|
+
<auro-datepicker>
|
|
324
|
+
<span slot="fromLabel">継承された ja-JP 日付形式</span>
|
|
325
|
+
<span slot="helpText">ヘルプテキスト</span>
|
|
326
|
+
<span slot="optionalLabel">(任意)</span>
|
|
327
|
+
</auro-datepicker>
|
|
328
|
+
+ </div></code></pre>
|
|
329
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
330
|
+
<p>If <code>format</code> is set alongside <code>locale</code>, <code>format</code> always wins.</p>
|
|
331
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale-formatted.html) -->
|
|
332
|
+
<!-- The below content is automatically added from ./../apiExamples/localization-locale-formatted.html -->
|
|
333
|
+
|
|
334
|
+
<pre class="language-diff"><code class="language-diff"> <auro-datepicker
|
|
335
|
+
+ locale="de-DE"
|
|
336
|
+
+ format="mm/dd/yyyy">
|
|
337
|
+
<span slot="fromLabel">Deutsches Datum mit mm/dd/yyyy-Format</span>
|
|
338
|
+
<span slot="helpText">Hilfetext</span>
|
|
339
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
340
|
+
</auro-datepicker></code></pre>
|
|
341
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
342
|
+
<div class="exampleWrapper">
|
|
343
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/locale.html) -->
|
|
344
|
+
<!-- The below content is automatically added from ./../apiExamples/locale.html -->
|
|
345
|
+
<div data-locale="de-DE">
|
|
346
|
+
<auro-header level="4" >de-DE Example</auro-header>
|
|
347
|
+
<auro-datepicker
|
|
348
|
+
locale="de-DE"
|
|
349
|
+
range
|
|
350
|
+
rangeLabelStart="Startdatum"
|
|
351
|
+
rangeLabelEnd="Enddatum"
|
|
352
|
+
rangeLabelBeforeRange="vor dem Zeitraum"
|
|
353
|
+
rangeLabelInRange="im Zeitraum"
|
|
354
|
+
rangeLabelAfterRange="nach dem Zeitraum"
|
|
355
|
+
navLabelPrevMonth="Vorheriger Monat"
|
|
356
|
+
navLabelNextMonth="Nächster Monat"
|
|
357
|
+
calendarGridLabel="Kalendertage des Monats">
|
|
358
|
+
<span slot="fromLabel">Deutsches Datum</span>
|
|
359
|
+
<span slot="helpText">Hilfetext</span>
|
|
360
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
361
|
+
</auro-datepicker>
|
|
362
|
+
<auro-header level="4" >zh-CN Example</auro-header>
|
|
363
|
+
<auro-datepicker
|
|
364
|
+
locale="zh-CN"
|
|
365
|
+
range
|
|
366
|
+
rangeLabelStart="开始日期"
|
|
367
|
+
rangeLabelEnd="结束日期"
|
|
368
|
+
rangeLabelBeforeRange="在此期间之前"
|
|
369
|
+
rangeLabelInRange="在此期间内"
|
|
370
|
+
rangeLabelAfterRange="在此期间之后"
|
|
371
|
+
navLabelPrevMonth="上个月"
|
|
372
|
+
navLabelNextMonth="下个月"
|
|
373
|
+
calendarGridLabel="本月的日历天数">
|
|
374
|
+
<span slot="fromLabel">中文日期</span>
|
|
375
|
+
<span slot="helpText">帮助文本</span>
|
|
376
|
+
<span slot="optionalLabel">(可选)</span>
|
|
377
|
+
</auro-datepicker>
|
|
378
|
+
<auro-header level="4">Inherited de-DE date-locale Example</auro-header>
|
|
379
|
+
<auro-datepicker
|
|
380
|
+
range
|
|
381
|
+
rangeLabelStart="Startdatum"
|
|
382
|
+
rangeLabelEnd="Enddatum"
|
|
383
|
+
rangeLabelBeforeRange="vor dem Zeitraum"
|
|
384
|
+
rangeLabelInRange="im Zeitraum"
|
|
385
|
+
rangeLabelAfterRange="nach dem Zeitraum"
|
|
386
|
+
navLabelPrevMonth="Vorheriger Monat"
|
|
387
|
+
navLabelNextMonth="Nächster Monat"
|
|
388
|
+
calendarGridLabel="Kalendertage des Monats">
|
|
389
|
+
<span slot="fromLabel">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
|
|
390
|
+
<span slot="helpText">Hilfetext</span>
|
|
391
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
392
|
+
</auro-datepicker>
|
|
393
|
+
<auro-header level="4" >ja-JP with `mm/dd/yyyy` format Example</auro-header>
|
|
394
|
+
<auro-datepicker
|
|
395
|
+
locale="ja-JP"
|
|
396
|
+
format="mm/dd/yyyy"
|
|
397
|
+
range
|
|
398
|
+
rangeLabelStart="開始日"
|
|
399
|
+
rangeLabelEnd="終了日"
|
|
400
|
+
rangeLabelBeforeRange="この期間の前"
|
|
401
|
+
rangeLabelInRange="この期間内"
|
|
402
|
+
rangeLabelAfterRange="この期間の後"
|
|
403
|
+
navLabelPrevMonth="前の月"
|
|
404
|
+
navLabelNextMonth="次の月"
|
|
405
|
+
calendarGridLabel="カレンダーの日付">
|
|
406
|
+
<span slot="fromLabel">明示的な mm/dd/yyyy 形式の ja-JP ロケール</span>
|
|
407
|
+
<span slot="helpText">ヘルプテキスト</span>
|
|
408
|
+
<span slot="optionalLabel">(任意)</span>
|
|
409
|
+
</auro-datepicker>
|
|
410
|
+
</div>
|
|
411
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
412
|
+
</div>
|
|
413
|
+
<auro-accordion alignRight>
|
|
414
|
+
<span slot="trigger">See code</span>
|
|
415
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/locale.html) -->
|
|
416
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/locale.html -->
|
|
417
|
+
<pre class="language-html"><code class="language-html"><div data-locale="de-DE">
|
|
418
|
+
<auro-header level="4" >de-DE Example</auro-header>
|
|
419
|
+
<auro-datepicker
|
|
420
|
+
locale="de-DE"
|
|
421
|
+
range
|
|
422
|
+
rangeLabelStart="Startdatum"
|
|
423
|
+
rangeLabelEnd="Enddatum"
|
|
424
|
+
rangeLabelBeforeRange="vor dem Zeitraum"
|
|
425
|
+
rangeLabelInRange="im Zeitraum"
|
|
426
|
+
rangeLabelAfterRange="nach dem Zeitraum"
|
|
427
|
+
navLabelPrevMonth="Vorheriger Monat"
|
|
428
|
+
navLabelNextMonth="Nächster Monat"
|
|
429
|
+
calendarGridLabel="Kalendertage des Monats">
|
|
430
|
+
<span slot="fromLabel">Deutsches Datum</span>
|
|
431
|
+
<span slot="helpText">Hilfetext</span>
|
|
432
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
433
|
+
</auro-datepicker>
|
|
434
|
+
<auro-header level="4" >zh-CN Example</auro-header>
|
|
435
|
+
<auro-datepicker
|
|
436
|
+
locale="zh-CN"
|
|
437
|
+
range
|
|
438
|
+
rangeLabelStart="开始日期"
|
|
439
|
+
rangeLabelEnd="结束日期"
|
|
440
|
+
rangeLabelBeforeRange="在此期间之前"
|
|
441
|
+
rangeLabelInRange="在此期间内"
|
|
442
|
+
rangeLabelAfterRange="在此期间之后"
|
|
443
|
+
navLabelPrevMonth="上个月"
|
|
444
|
+
navLabelNextMonth="下个月"
|
|
445
|
+
calendarGridLabel="本月的日历天数">
|
|
446
|
+
<span slot="fromLabel">中文日期</span>
|
|
447
|
+
<span slot="helpText">帮助文本</span>
|
|
448
|
+
<span slot="optionalLabel">(可选)</span>
|
|
449
|
+
</auro-datepicker>
|
|
450
|
+
<auro-header level="4">Inherited de-DE date-locale Example</auro-header>
|
|
451
|
+
<auro-datepicker
|
|
452
|
+
range
|
|
453
|
+
rangeLabelStart="Startdatum"
|
|
454
|
+
rangeLabelEnd="Enddatum"
|
|
455
|
+
rangeLabelBeforeRange="vor dem Zeitraum"
|
|
456
|
+
rangeLabelInRange="im Zeitraum"
|
|
457
|
+
rangeLabelAfterRange="nach dem Zeitraum"
|
|
458
|
+
navLabelPrevMonth="Vorheriger Monat"
|
|
459
|
+
navLabelNextMonth="Nächster Monat"
|
|
460
|
+
calendarGridLabel="Kalendertage des Monats">
|
|
461
|
+
<span slot="fromLabel">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
|
|
462
|
+
<span slot="helpText">Hilfetext</span>
|
|
463
|
+
<span slot="optionalLabel">(freiwillig)</span>
|
|
464
|
+
</auro-datepicker>
|
|
465
|
+
<auro-header level="4" >ja-JP with `mm/dd/yyyy` format Example</auro-header>
|
|
466
|
+
<auro-datepicker
|
|
467
|
+
locale="ja-JP"
|
|
468
|
+
format="mm/dd/yyyy"
|
|
469
|
+
range
|
|
470
|
+
rangeLabelStart="開始日"
|
|
471
|
+
rangeLabelEnd="終了日"
|
|
472
|
+
rangeLabelBeforeRange="この期間の前"
|
|
473
|
+
rangeLabelInRange="この期間内"
|
|
474
|
+
rangeLabelAfterRange="この期間の後"
|
|
475
|
+
navLabelPrevMonth="前の月"
|
|
476
|
+
navLabelNextMonth="次の月"
|
|
477
|
+
calendarGridLabel="カレンダーの日付">
|
|
478
|
+
<span slot="fromLabel">明示的な mm/dd/yyyy 形式の ja-JP ロケール</span>
|
|
479
|
+
<span slot="helpText">ヘルプテキスト</span>
|
|
480
|
+
<span slot="optionalLabel">(任意)</span>
|
|
481
|
+
</auro-datepicker>
|
|
482
|
+
</div></code></pre>
|
|
483
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
484
|
+
</auro-accordion>
|
|
485
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
486
|
+
<auro-header level="3" id="layout">Shape, Size & Layout</auro-header>
|
|
487
|
+
<p>The <code>shape</code>, <code>size</code> and <code>layout</code> attributes work in collaboration to control the overall architecture of the component.</p>
|
|
488
|
+
<p>See the <a href="./design.html">Design page</a> for a detailed breakdown.</p>
|
|
489
|
+
</section>
|
|
490
|
+
<section>
|
|
185
491
|
<auro-header level="3" id="cssTokens">Tokens</auro-header>
|
|
186
492
|
<p>The component may be restyled by changing the values of the following token(s) for the datepicker, dropdown, and input</p>
|
|
187
493
|
<auro-header level="4" id="cssTokensDatepicker">Datepicker</auro-header>
|
|
@@ -279,40 +585,6 @@
|
|
|
279
585
|
--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
280
586
|
}</code></pre>
|
|
281
587
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
282
|
-
<auro-header level="4" id="cssTokensInput">Input</auro-header>
|
|
283
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../input/src/styles/tokens.scss) -->
|
|
284
|
-
<!-- The below code snippet is automatically added from ./../../input/src/styles/tokens.scss -->
|
|
285
|
-
|
|
286
|
-
<pre class="language-scss"><code class="language-scss">/* stylelint-disable custom-property-empty-line-before */
|
|
287
|
-
|
|
288
|
-
@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
289
|
-
|
|
290
|
-
:host(:not([ondark])),
|
|
291
|
-
:host(:not([appearance="inverse"])) {
|
|
292
|
-
--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
|
|
293
|
-
--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
294
|
-
--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #{v.$ds-advanced-color-state-focused});
|
|
295
|
-
--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
|
|
296
|
-
--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
297
|
-
--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
298
|
-
--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #{v.$ds-basic-color-status-error});
|
|
299
|
-
|
|
300
|
-
--ds-auro-input-outline-color: transparent;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
:host([ondark]),
|
|
304
|
-
:host([appearance="inverse"]) {
|
|
305
|
-
--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #{v.$ds-basic-color-border-inverse});
|
|
306
|
-
--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
307
|
-
--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #{v.$ds-advanced-color-state-focused-inverse});
|
|
308
|
-
--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #{v.$ds-basic-color-texticon-inverse-muted});
|
|
309
|
-
--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
310
|
-
--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
311
|
-
--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #{v.$ds-advanced-color-state-error-inverse});
|
|
312
|
-
|
|
313
|
-
--ds-auro-input-outline-color: transparent;
|
|
314
|
-
}</code></pre>
|
|
315
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
316
588
|
<auro-header level="4" id="cssTokensExample">Example</auro-header>
|
|
317
589
|
<p>The following example demonstrates overriding all available datepicker, dropdown, input, and calendar tokens.</p>
|
|
318
590
|
<div class="exampleWrapper">
|
|
@@ -407,90 +679,54 @@
|
|
|
407
679
|
<span slot="toLabel">Return</span>
|
|
408
680
|
<span slot="bib.fullscreen.headline">Select Dates</span>
|
|
409
681
|
<span slot="bib.fullscreen.fromLabel">Departure</span>
|
|
410
|
-
<span slot="bib.fullscreen.toLabel">Return</span>
|
|
411
|
-
</auro-datepicker></code></pre>
|
|
412
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
413
|
-
</auro-accordion>
|
|
414
|
-
</section>
|
|
415
|
-
<section>
|
|
416
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/css-parts.md) -->
|
|
417
|
-
<!-- The below content is automatically added from ./../docs/partials/customize/css-parts.md -->
|
|
418
|
-
<auro-header level="3" id="cssParts">CSS Shadow Parts</auro-header>
|
|
419
|
-
<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-datepicker></code>.</p>
|
|
420
|
-
<table class="auro_table">
|
|
421
|
-
<thead>
|
|
422
|
-
<tr>
|
|
423
|
-
<th>Part</th>
|
|
424
|
-
<th>Description</th>
|
|
425
|
-
</tr>
|
|
426
|
-
</thead>
|
|
427
|
-
<tbody>
|
|
428
|
-
<tr><td><code>dropdown</code></td><td>The outer dropdown container.</td></tr>
|
|
429
|
-
<tr><td><code>trigger</code></td><td>The trigger content container.</td></tr>
|
|
430
|
-
<tr><td><code>input</code></td><td>The date input element(s).</td></tr>
|
|
431
|
-
<tr><td><code>calendarWrapper</code></td><td>The calendar bib sizing container.</td></tr>
|
|
432
|
-
<tr><td><code>calendar</code></td><td>The calendar element.</td></tr>
|
|
433
|
-
<tr><td><code>helpTextSpan</code></td><td>The help text container wrapper.</td></tr>
|
|
434
|
-
<tr><td><code>helpText</code></td><td>The help text element.</td></tr>
|
|
435
|
-
</tbody>
|
|
436
|
-
</table>
|
|
437
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
438
|
-
<div class="exampleWrapper">
|
|
439
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/css-parts.html) -->
|
|
440
|
-
<!-- The below content is automatically added from ../apiExamples/css-parts.html -->
|
|
441
|
-
<style>
|
|
442
|
-
auro-datepicker.css-parts-demo::part(trigger) {
|
|
443
|
-
border-color: orange;
|
|
444
|
-
}
|
|
445
|
-
auro-datepicker.css-parts-demo::part(helpText) {
|
|
446
|
-
color: green;
|
|
447
|
-
}
|
|
448
|
-
auro-datepicker.css-parts-demo::part(calendarWrapper) {
|
|
449
|
-
max-height: 400px;
|
|
450
|
-
}
|
|
451
|
-
</style>
|
|
452
|
-
<auro-datepicker class="css-parts-demo">
|
|
453
|
-
<span slot="fromLabel">CSS Parts Example</span>
|
|
454
|
-
<span slot="helpText">This datepicker has custom styles applied via CSS Shadow Parts.</span>
|
|
455
|
-
<span slot="bib.fullscreen.headline">Select Date</span>
|
|
456
|
-
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
457
|
-
</auro-datepicker>
|
|
458
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
459
|
-
</div>
|
|
460
|
-
<auro-accordion alignRight>
|
|
461
|
-
<span slot="trigger">See code</span>
|
|
462
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/css-parts.html) -->
|
|
463
|
-
<!-- The below code snippet is automatically added from ../apiExamples/css-parts.html -->
|
|
464
|
-
|
|
465
|
-
<pre class="language-html"><code class="language-html"><style>
|
|
466
|
-
auro-datepicker.css-parts-demo::part(trigger) {
|
|
467
|
-
border-color: orange;
|
|
468
|
-
}
|
|
469
|
-
auro-datepicker.css-parts-demo::part(helpText) {
|
|
470
|
-
color: green;
|
|
471
|
-
}
|
|
472
|
-
auro-datepicker.css-parts-demo::part(calendarWrapper) {
|
|
473
|
-
max-height: 400px;
|
|
474
|
-
}
|
|
475
|
-
</style>
|
|
476
|
-
<auro-datepicker class="css-parts-demo">
|
|
477
|
-
<span slot="fromLabel">CSS Parts Example</span>
|
|
478
|
-
<span slot="helpText">This datepicker has custom styles applied via CSS Shadow Parts.</span>
|
|
479
|
-
<span slot="bib.fullscreen.headline">Select Date</span>
|
|
480
|
-
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
682
|
+
<span slot="bib.fullscreen.toLabel">Return</span>
|
|
481
683
|
</auro-datepicker></code></pre>
|
|
482
684
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
483
685
|
</auro-accordion>
|
|
686
|
+
<auro-header level="4" id="cssTokensInput">Input</auro-header>
|
|
687
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../input/src/styles/tokens.scss) -->
|
|
688
|
+
<!-- The below code snippet is automatically added from ./../../input/src/styles/tokens.scss -->
|
|
689
|
+
|
|
690
|
+
<pre class="language-scss"><code class="language-scss">/* stylelint-disable custom-property-empty-line-before */
|
|
691
|
+
|
|
692
|
+
@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
693
|
+
|
|
694
|
+
:host(:not([ondark])),
|
|
695
|
+
:host(:not([appearance="inverse"])) {
|
|
696
|
+
--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
|
|
697
|
+
--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
698
|
+
--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #{v.$ds-advanced-color-state-focused});
|
|
699
|
+
--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
|
|
700
|
+
--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
701
|
+
--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
702
|
+
--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #{v.$ds-basic-color-status-error});
|
|
703
|
+
|
|
704
|
+
--ds-auro-input-outline-color: transparent;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
:host([ondark]),
|
|
708
|
+
:host([appearance="inverse"]) {
|
|
709
|
+
--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #{v.$ds-basic-color-border-inverse});
|
|
710
|
+
--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
711
|
+
--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #{v.$ds-advanced-color-state-focused-inverse});
|
|
712
|
+
--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #{v.$ds-basic-color-texticon-inverse-muted});
|
|
713
|
+
--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
714
|
+
--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
715
|
+
--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #{v.$ds-advanced-color-state-error-inverse});
|
|
716
|
+
|
|
717
|
+
--ds-auro-input-outline-color: transparent;
|
|
718
|
+
}</code></pre>
|
|
719
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
484
720
|
</section>
|
|
485
721
|
<section>
|
|
486
722
|
<auro-header level="2" id="customBehavior">Behavior</auro-header>
|
|
487
|
-
<auro-header level="3" id="
|
|
488
|
-
<p>
|
|
723
|
+
<auro-header level="3" id="customValidation">Custom Validation</auro-header>
|
|
724
|
+
<p>Use the <code>validity</code> attribute with a custom error message to provide specific feedback.</p>
|
|
489
725
|
<div class="exampleWrapper">
|
|
490
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
491
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
492
|
-
<auro-datepicker
|
|
493
|
-
<span slot="bib.fullscreen.headline">
|
|
726
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/validity.html) -->
|
|
727
|
+
<!-- The below content is automatically added from ./../apiExamples/validity.html -->
|
|
728
|
+
<auro-datepicker required setCustomValidityValueMissing="Please select a departure date.">
|
|
729
|
+
<span slot="bib.fullscreen.headline">validity Example</span>
|
|
494
730
|
<span slot="fromLabel">Choose a date</span>
|
|
495
731
|
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
496
732
|
</auro-datepicker>
|
|
@@ -498,11 +734,11 @@
|
|
|
498
734
|
</div>
|
|
499
735
|
<auro-accordion alignRight>
|
|
500
736
|
<span slot="trigger">See code</span>
|
|
501
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
502
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
737
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/validity.html) -->
|
|
738
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/validity.html -->
|
|
503
739
|
|
|
504
|
-
<pre class="language-html"><code class="language-html"><auro-datepicker
|
|
505
|
-
<span slot="bib.fullscreen.headline">
|
|
740
|
+
<pre class="language-html"><code class="language-html"><auro-datepicker required setCustomValidityValueMissing="Please select a departure date.">
|
|
741
|
+
<span slot="bib.fullscreen.headline">validity Example</span>
|
|
506
742
|
<span slot="fromLabel">Choose a date</span>
|
|
507
743
|
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
508
744
|
</auro-datepicker></code></pre>
|
|
@@ -530,46 +766,6 @@
|
|
|
530
766
|
</auro-datepicker></code></pre>
|
|
531
767
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
532
768
|
</auro-accordion>
|
|
533
|
-
<auro-header level="3" id="requireSelection">Require Selection</auro-header>
|
|
534
|
-
<p>Use the <code>required</code> attribute to require a date selection before form submission.</p>
|
|
535
|
-
<div class="exampleWrapper">
|
|
536
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
|
|
537
|
-
<!-- The below content is automatically added from ./../apiExamples/required.html -->
|
|
538
|
-
<auro-datepicker required>
|
|
539
|
-
<span slot="bib.fullscreen.headline">Required Example</span>
|
|
540
|
-
<span slot="fromLabel">Choose a date</span>
|
|
541
|
-
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
542
|
-
</auro-datepicker>
|
|
543
|
-
<br />
|
|
544
|
-
<auro-datepicker required range>
|
|
545
|
-
<span slot="bib.fullscreen.headline">Required Example</span>
|
|
546
|
-
<span slot="fromLabel">Departure</span>
|
|
547
|
-
<span slot="toLabel">Return</span>
|
|
548
|
-
<span slot="bib.fullscreen.fromLabel">Departure</span>
|
|
549
|
-
<span slot="bib.fullscreen.toLabel">Return</span>
|
|
550
|
-
</auro-datepicker>
|
|
551
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
552
|
-
</div>
|
|
553
|
-
<auro-accordion alignRight>
|
|
554
|
-
<span slot="trigger">See code</span>
|
|
555
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
|
|
556
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
|
|
557
|
-
|
|
558
|
-
<pre class="language-html"><code class="language-html"><auro-datepicker required>
|
|
559
|
-
<span slot="bib.fullscreen.headline">Required Example</span>
|
|
560
|
-
<span slot="fromLabel">Choose a date</span>
|
|
561
|
-
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
562
|
-
</auro-datepicker>
|
|
563
|
-
<br />
|
|
564
|
-
<auro-datepicker required range>
|
|
565
|
-
<span slot="bib.fullscreen.headline">Required Example</span>
|
|
566
|
-
<span slot="fromLabel">Departure</span>
|
|
567
|
-
<span slot="toLabel">Return</span>
|
|
568
|
-
<span slot="bib.fullscreen.fromLabel">Departure</span>
|
|
569
|
-
<span slot="bib.fullscreen.toLabel">Return</span>
|
|
570
|
-
</auro-datepicker></code></pre>
|
|
571
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
572
|
-
</auro-accordion>
|
|
573
769
|
<auro-header level="3" id="forceError">Force Error State</auro-header>
|
|
574
770
|
<p>Use the <code>error</code> attribute to force the component into an error state with a custom message.</p>
|
|
575
771
|
<div class="exampleWrapper">
|
|
@@ -600,37 +796,13 @@
|
|
|
600
796
|
</auro-datepicker></code></pre>
|
|
601
797
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
602
798
|
</auro-accordion>
|
|
603
|
-
<auro-header level="3" id="
|
|
604
|
-
<p>
|
|
605
|
-
<div class="exampleWrapper">
|
|
606
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/validity.html) -->
|
|
607
|
-
<!-- The below content is automatically added from ./../apiExamples/validity.html -->
|
|
608
|
-
<auro-datepicker required setCustomValidityValueMissing="Please select a departure date.">
|
|
609
|
-
<span slot="bib.fullscreen.headline">validity Example</span>
|
|
610
|
-
<span slot="fromLabel">Choose a date</span>
|
|
611
|
-
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
612
|
-
</auro-datepicker>
|
|
613
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
614
|
-
</div>
|
|
615
|
-
<auro-accordion alignRight>
|
|
616
|
-
<span slot="trigger">See code</span>
|
|
617
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/validity.html) -->
|
|
618
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/validity.html -->
|
|
619
|
-
|
|
620
|
-
<pre class="language-html"><code class="language-html"><auro-datepicker required setCustomValidityValueMissing="Please select a departure date.">
|
|
621
|
-
<span slot="bib.fullscreen.headline">validity Example</span>
|
|
622
|
-
<span slot="fromLabel">Choose a date</span>
|
|
623
|
-
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
624
|
-
</auro-datepicker></code></pre>
|
|
625
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
626
|
-
</auro-accordion>
|
|
627
|
-
<auro-header level="3" id="noValidate">No Validation</auro-header>
|
|
628
|
-
<p>Use the <code>noValidate</code> attribute to disable all validation on the component.</p>
|
|
799
|
+
<auro-header level="3" id="inputMode">Input Mode</auro-header>
|
|
800
|
+
<p>The <code>inputmode</code> attribute controls which virtual keyboard layout is presented on mobile devices.</p>
|
|
629
801
|
<div class="exampleWrapper">
|
|
630
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
631
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
632
|
-
<auro-datepicker
|
|
633
|
-
<span slot="bib.fullscreen.headline">
|
|
802
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
|
|
803
|
+
<!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
|
|
804
|
+
<auro-datepicker inputmode="numeric">
|
|
805
|
+
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
634
806
|
<span slot="fromLabel">Choose a date</span>
|
|
635
807
|
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
636
808
|
</auro-datepicker>
|
|
@@ -638,11 +810,11 @@
|
|
|
638
810
|
</div>
|
|
639
811
|
<auro-accordion alignRight>
|
|
640
812
|
<span slot="trigger">See code</span>
|
|
641
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
642
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
813
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inputmode.html) -->
|
|
814
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/inputmode.html -->
|
|
643
815
|
|
|
644
|
-
<pre class="language-html"><code class="language-html"><auro-datepicker
|
|
645
|
-
<span slot="bib.fullscreen.headline">
|
|
816
|
+
<pre class="language-html"><code class="language-html"><auro-datepicker inputmode="numeric">
|
|
817
|
+
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
646
818
|
<span slot="fromLabel">Choose a date</span>
|
|
647
819
|
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
648
820
|
</auro-datepicker></code></pre>
|
|
@@ -694,147 +866,68 @@
|
|
|
694
866
|
</auro-datepicker></code></pre>
|
|
695
867
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
696
868
|
</auro-accordion>
|
|
697
|
-
<auro-header level="3" id="
|
|
698
|
-
<p>Use the <code>
|
|
699
|
-
<auro-header level="4" id="rangeLabels">Screen Reader Labels</auro-header>
|
|
700
|
-
<p>The following attributes customize the labels announced by screen readers when navigating the calendar. Range labels apply when the <code>range</code> attribute is set; navigation labels apply to all configurations.</p>
|
|
701
|
-
<auro-table>
|
|
702
|
-
<table>
|
|
703
|
-
<thead>
|
|
704
|
-
<tr>
|
|
705
|
-
<th>Attribute</th>
|
|
706
|
-
<th>Default</th>
|
|
707
|
-
<th>Description</th>
|
|
708
|
-
</tr>
|
|
709
|
-
</thead>
|
|
710
|
-
<tbody>
|
|
711
|
-
<tr>
|
|
712
|
-
<td><code>rangeLabelStart</code></td>
|
|
713
|
-
<td>"range start"</td>
|
|
714
|
-
<td>Announced on the departure/start date cell.</td>
|
|
715
|
-
</tr>
|
|
716
|
-
<tr>
|
|
717
|
-
<td><code>rangeLabelEnd</code></td>
|
|
718
|
-
<td>"range end"</td>
|
|
719
|
-
<td>Announced on the return/end date cell.</td>
|
|
720
|
-
</tr>
|
|
721
|
-
<tr>
|
|
722
|
-
<td><code>rangeLabelBeforeRange</code></td>
|
|
723
|
-
<td>"before range"</td>
|
|
724
|
-
<td>Announced on cells before the start date.</td>
|
|
725
|
-
</tr>
|
|
726
|
-
<tr>
|
|
727
|
-
<td><code>rangeLabelInRange</code></td>
|
|
728
|
-
<td>"in range"</td>
|
|
729
|
-
<td>Announced on cells between the start and end dates.</td>
|
|
730
|
-
</tr>
|
|
731
|
-
<tr>
|
|
732
|
-
<td><code>rangeLabelAfterRange</code></td>
|
|
733
|
-
<td>"after range"</td>
|
|
734
|
-
<td>Announced on cells after the end date (or after start when no end is selected).</td>
|
|
735
|
-
</tr>
|
|
736
|
-
<tr>
|
|
737
|
-
<td><code>navLabelPrevMonth</code></td>
|
|
738
|
-
<td>"Previous month"</td>
|
|
739
|
-
<td>Accessible label for the previous month navigation button.</td>
|
|
740
|
-
</tr>
|
|
741
|
-
<tr>
|
|
742
|
-
<td><code>navLabelNextMonth</code></td>
|
|
743
|
-
<td>"Next month"</td>
|
|
744
|
-
<td>Accessible label for the next month navigation button.</td>
|
|
745
|
-
</tr>
|
|
746
|
-
<tr>
|
|
747
|
-
<td><code>calendarGridLabel</code></td>
|
|
748
|
-
<td>"Calendar days of the month"</td>
|
|
749
|
-
<td>Accessible label for the calendar grid containing the days of the month.</td>
|
|
750
|
-
</tr>
|
|
751
|
-
</tbody>
|
|
752
|
-
</table>
|
|
753
|
-
</auro-table>
|
|
754
|
-
<auro-header level="4" id="regionalDate">Regional Date</auro-header>
|
|
755
|
-
<p>When the <code>locale</code> attribute is set, the component automatically derives the correct date format for that region — no need to set <code>format</code> manually. For example, <code>locale="en-US"</code> produces <code>mm/dd/yyyy</code>, <code>locale="de-DE"</code> produces <code>dd.mm.yyyy</code>, and <code>locale="ja-JP"</code> produces <code>yyyy/mm/dd</code>.</p>
|
|
756
|
-
<p>If <code>format</code> is explicitly set alongside <code>locale</code>, <code>format</code> always wins. Use this when a specific format is required regardless of region.</p>
|
|
757
|
-
<p>If no <code>locale</code> attribute is set on the element, the component walks up the DOM looking for the nearest ancestor with a <code>data-locale</code> attribute and uses that value. If none is found, it defaults to <code>en-US</code>.</p>
|
|
758
|
-
<auro-header level="4" id="monthNames">Month Names</auro-header>
|
|
759
|
-
<p>The <code>monthNames</code> attribute accepts an array of 12 month name strings displayed in the calendar header. When <code>monthNames</code> is <strong>not</strong> set, the component automatically derives localized month names from the active <code>locale</code> (falling back to <code>en-US</code> if no locale is set).</p>
|
|
760
|
-
<p>Use <code>monthNames</code> only when you need to override the locale-derived names — for example, to supply translated names that differ from the browser's built-in <code>Intl</code> output, or to support a locale the browser does not recognize.</p>
|
|
761
|
-
<pre><code>// Override month names (all 12 required, starting with January)
|
|
762
|
-
datepicker.monthNames = [
|
|
763
|
-
'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
|
764
|
-
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
|
|
765
|
-
];</code></pre>
|
|
869
|
+
<auro-header level="3" id="noValidate">No Validation</auro-header>
|
|
870
|
+
<p>Use the <code>noValidate</code> attribute to disable all validation on the component.</p>
|
|
766
871
|
<div class="exampleWrapper">
|
|
767
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
768
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
769
|
-
<
|
|
770
|
-
<
|
|
771
|
-
<
|
|
772
|
-
<span slot="fromLabel">
|
|
773
|
-
<span slot="helpText">Help Text</span>
|
|
774
|
-
</auro-datepicker>
|
|
775
|
-
<auro-header level="4" >de-DE Example</auro-header>
|
|
776
|
-
<auro-datepicker locale="de-DE">
|
|
777
|
-
<span slot="fromLabel">Deutsches Datum</span>
|
|
778
|
-
<span slot="helpText">Hilfetext</span>
|
|
779
|
-
<span slot="optionalLabel">(freiwillig)</span>
|
|
780
|
-
</auro-datepicker>
|
|
781
|
-
<auro-header level="4" >zh-CN Example</auro-header>
|
|
782
|
-
<auro-datepicker locale="zh-CN">
|
|
783
|
-
<span slot="fromLabel">中文日期</span>
|
|
784
|
-
<span slot="helpText">帮助文本</span>
|
|
785
|
-
<span slot="optionalLabel">(可选)</span>
|
|
786
|
-
</auro-datepicker>
|
|
787
|
-
<auro-header level="4">Inherited de-DE date-locale Example</auro-header>
|
|
788
|
-
<auro-datepicker>
|
|
789
|
-
<span slot="fromLabel">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
|
|
790
|
-
<span slot="helpText">Hilfetext</span>
|
|
791
|
-
<span slot="optionalLabel">(freiwillig)</span>
|
|
792
|
-
</auro-datepicker>
|
|
793
|
-
<auro-header level="4" >ja-JP with `mm/dd/yyyy` format Example</auro-header>
|
|
794
|
-
<auro-datepicker locale="ja-JP" format="mm/dd/yyyy">
|
|
795
|
-
<span slot="fromLabel">明示的な mm/dd/yyyy 形式の ja-JP ロケール</span>
|
|
796
|
-
<span slot="helpText">ヘルプテキスト</span>
|
|
797
|
-
<span slot="optionalLabel">(任意)</span>
|
|
872
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-validate.html) -->
|
|
873
|
+
<!-- The below content is automatically added from ./../apiExamples/no-validate.html -->
|
|
874
|
+
<auro-datepicker required noValidate>
|
|
875
|
+
<span slot="bib.fullscreen.headline">noValidate Example</span>
|
|
876
|
+
<span slot="fromLabel">Choose a date</span>
|
|
877
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
798
878
|
</auro-datepicker>
|
|
879
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
799
880
|
</div>
|
|
881
|
+
<auro-accordion alignRight>
|
|
882
|
+
<span slot="trigger">See code</span>
|
|
883
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-validate.html) -->
|
|
884
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/no-validate.html -->
|
|
885
|
+
|
|
886
|
+
<pre class="language-html"><code class="language-html"><auro-datepicker required noValidate>
|
|
887
|
+
<span slot="bib.fullscreen.headline">noValidate Example</span>
|
|
888
|
+
<span slot="fromLabel">Choose a date</span>
|
|
889
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
890
|
+
</auro-datepicker></code></pre>
|
|
891
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
892
|
+
</auro-accordion>
|
|
893
|
+
<auro-header level="3" id="requireSelection">Require Selection</auro-header>
|
|
894
|
+
<p>Use the <code>required</code> attribute to require a date selection before form submission.</p>
|
|
895
|
+
<div class="exampleWrapper">
|
|
896
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
|
|
897
|
+
<!-- The below content is automatically added from ./../apiExamples/required.html -->
|
|
898
|
+
<auro-datepicker required>
|
|
899
|
+
<span slot="bib.fullscreen.headline">Required Example</span>
|
|
900
|
+
<span slot="fromLabel">Choose a date</span>
|
|
901
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
902
|
+
</auro-datepicker>
|
|
903
|
+
<br />
|
|
904
|
+
<auro-datepicker required range>
|
|
905
|
+
<span slot="bib.fullscreen.headline">Required Example</span>
|
|
906
|
+
<span slot="fromLabel">Departure</span>
|
|
907
|
+
<span slot="toLabel">Return</span>
|
|
908
|
+
<span slot="bib.fullscreen.fromLabel">Departure</span>
|
|
909
|
+
<span slot="bib.fullscreen.toLabel">Return</span>
|
|
910
|
+
</auro-datepicker>
|
|
800
911
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
801
912
|
</div>
|
|
802
913
|
<auro-accordion alignRight>
|
|
803
914
|
<span slot="trigger">See code</span>
|
|
804
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
805
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
915
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
|
|
916
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
|
|
806
917
|
|
|
807
|
-
<pre class="language-html"><code class="language-html"><
|
|
808
|
-
<
|
|
809
|
-
<
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
<
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
</
|
|
819
|
-
|
|
820
|
-
<auro-datepicker locale="zh-CN">
|
|
821
|
-
<span slot="fromLabel">中文日期</span>
|
|
822
|
-
<span slot="helpText">帮助文本</span>
|
|
823
|
-
<span slot="optionalLabel">(可选)</span>
|
|
824
|
-
</auro-datepicker>
|
|
825
|
-
<auro-header level="4">Inherited de-DE date-locale Example</auro-header>
|
|
826
|
-
<auro-datepicker>
|
|
827
|
-
<span slot="fromLabel">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
|
|
828
|
-
<span slot="helpText">Hilfetext</span>
|
|
829
|
-
<span slot="optionalLabel">(freiwillig)</span>
|
|
830
|
-
</auro-datepicker>
|
|
831
|
-
<auro-header level="4" >ja-JP with `mm/dd/yyyy` format Example</auro-header>
|
|
832
|
-
<auro-datepicker locale="ja-JP" format="mm/dd/yyyy">
|
|
833
|
-
<span slot="fromLabel">明示的な mm/dd/yyyy 形式の ja-JP ロケール</span>
|
|
834
|
-
<span slot="helpText">ヘルプテキスト</span>
|
|
835
|
-
<span slot="optionalLabel">(任意)</span>
|
|
836
|
-
</auro-datepicker>
|
|
837
|
-
</div></code></pre>
|
|
918
|
+
<pre class="language-html"><code class="language-html"><auro-datepicker required>
|
|
919
|
+
<span slot="bib.fullscreen.headline">Required Example</span>
|
|
920
|
+
<span slot="fromLabel">Choose a date</span>
|
|
921
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
922
|
+
</auro-datepicker>
|
|
923
|
+
<br />
|
|
924
|
+
<auro-datepicker required range>
|
|
925
|
+
<span slot="bib.fullscreen.headline">Required Example</span>
|
|
926
|
+
<span slot="fromLabel">Departure</span>
|
|
927
|
+
<span slot="toLabel">Return</span>
|
|
928
|
+
<span slot="bib.fullscreen.fromLabel">Departure</span>
|
|
929
|
+
<span slot="bib.fullscreen.toLabel">Return</span>
|
|
930
|
+
</auro-datepicker></code></pre>
|
|
838
931
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
839
932
|
</auro-accordion>
|
|
840
933
|
</section>
|