@aurodesignsystem-dev/auro-formkit 0.0.0-pr1492.4 → 0.0.0-pr1493.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/bibtemplate/dist/auro-bibtemplate.d.ts +7 -0
- package/components/bibtemplate/dist/index.js +9 -1
- package/components/bibtemplate/dist/registered.js +9 -1
- package/components/checkbox/demo/css-only.html +57 -0
- package/components/checkbox/demo/css-only.md +146 -0
- 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/demo/pages.json +1 -1
- package/components/checkbox/demo/styles.min.css +1 -1
- package/components/checkbox/demo/why-checkbox.html +57 -0
- package/components/checkbox/demo/why-checkbox.md +86 -0
- package/components/checkbox/dist/index.js +2 -2
- package/components/checkbox/dist/registered.js +2 -2
- package/components/combobox/demo/css-only.html +57 -0
- package/components/combobox/demo/css-only.md +209 -0
- package/components/combobox/demo/customize.md +7 -3
- package/components/combobox/demo/customize.min.js +1846 -1804
- package/components/combobox/demo/getting-started.min.js +1846 -1804
- package/components/combobox/demo/index.min.js +1846 -1804
- package/components/combobox/demo/pages.json +1 -1
- package/components/combobox/demo/styles.min.css +1 -1
- package/components/combobox/demo/why-combobox.html +57 -0
- package/components/combobox/demo/why-combobox.md +113 -0
- package/components/combobox/dist/auro-combobox.d.ts +5 -0
- package/components/combobox/dist/index.js +796 -179
- package/components/combobox/dist/registered.js +796 -179
- package/components/counter/demo/css-only.html +57 -0
- package/components/counter/demo/css-only.md +184 -0
- package/components/counter/demo/customize.min.js +276 -16
- package/components/counter/demo/index.min.js +276 -16
- package/components/counter/demo/keyboard-behavior.md +1 -0
- package/components/counter/demo/pages.json +1 -1
- package/components/counter/demo/styles.min.css +1 -1
- package/components/counter/demo/why-counter.html +57 -0
- package/components/counter/demo/why-counter.md +108 -0
- package/components/counter/dist/index.js +5457 -193
- package/components/counter/dist/registered.js +5457 -193
- package/components/datepicker/demo/accessibility.md +54 -3
- package/components/datepicker/demo/api.md +65 -55
- package/components/datepicker/demo/css-only.html +57 -0
- package/components/datepicker/demo/css-only.md +151 -0
- package/components/datepicker/demo/customize.html +2 -0
- package/components/datepicker/demo/customize.js +19 -0
- package/components/datepicker/demo/customize.md +474 -298
- package/components/datepicker/demo/customize.min.js +36243 -0
- package/components/datepicker/demo/design.md +5 -3
- package/components/datepicker/demo/getting-started.md +6 -6
- package/components/datepicker/demo/index.js +5 -1
- package/components/datepicker/demo/index.md +113 -16
- package/components/datepicker/demo/index.min.js +2736 -398
- package/components/datepicker/demo/keyboard-behavior.md +201 -2
- package/components/datepicker/demo/pages.json +1 -1
- package/components/datepicker/demo/styles.min.css +1 -1
- package/components/datepicker/demo/voiceover.md +21 -12
- package/components/datepicker/demo/why-datepicker.html +57 -0
- package/components/datepicker/demo/why-datepicker.md +133 -0
- package/components/datepicker/dist/index.js +2650 -399
- package/components/datepicker/dist/registered.js +2650 -399
- package/components/datepicker/dist/src/auro-calendar-cell.d.ts +116 -14
- package/components/datepicker/dist/src/auro-calendar-month.d.ts +54 -1
- package/components/datepicker/dist/src/auro-calendar.d.ts +264 -0
- package/components/datepicker/dist/src/auro-datepicker.d.ts +189 -53
- package/components/datepicker/dist/src/datepickerKeyboardStrategy.d.ts +5 -3
- package/components/datepicker/dist/src/utilities.d.ts +0 -14
- package/components/dropdown/demo/accessibility.md +11 -0
- package/components/dropdown/demo/api.md +1 -0
- package/components/dropdown/demo/css-only.html +57 -0
- package/components/dropdown/demo/css-only.md +219 -0
- package/components/dropdown/demo/customize.md +3 -0
- package/components/dropdown/demo/customize.min.js +265 -13
- package/components/dropdown/demo/getting-started.min.js +265 -13
- package/components/dropdown/demo/index.min.js +265 -13
- package/components/dropdown/demo/keyboard-behavior.md +1 -0
- package/components/dropdown/demo/pages.json +1 -1
- package/components/dropdown/demo/styles.min.css +1 -1
- package/components/dropdown/demo/why-dropdown.html +57 -0
- package/components/dropdown/demo/why-dropdown.md +97 -0
- package/components/dropdown/dist/auro-dropdown.d.ts +36 -1
- package/components/dropdown/dist/index.js +265 -13
- package/components/dropdown/dist/registered.js +265 -13
- package/components/form/demo/css-only.html +57 -0
- package/components/form/demo/css-only.md +156 -0
- package/components/form/demo/customize.min.js +11085 -8074
- package/components/form/demo/getting-started.min.js +11085 -8074
- package/components/form/demo/index.min.js +11085 -8074
- package/components/form/demo/pages.json +1 -1
- package/components/form/demo/registerDemoDeps.min.js +11084 -8073
- package/components/form/demo/styles.min.css +1 -1
- package/components/form/demo/why-form.html +57 -0
- package/components/form/demo/why-form.md +101 -0
- package/components/input/demo/css-only.html +57 -0
- package/components/input/demo/css-only.md +199 -0
- package/components/input/demo/customize.md +625 -636
- package/components/input/demo/customize.min.js +150 -75
- package/components/input/demo/getting-started.md +16 -6
- package/components/input/demo/getting-started.min.js +150 -75
- package/components/input/demo/index.min.js +150 -75
- package/components/input/demo/pages.json +1 -1
- package/components/input/demo/styles.min.css +1 -1
- package/components/input/demo/why-input.html +57 -0
- package/components/input/demo/why-input.md +121 -0
- package/components/input/dist/auro-input-util.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +16 -0
- package/components/input/dist/index.js +150 -75
- package/components/input/dist/registered.js +150 -75
- package/components/input/dist/utilities.d.ts +1 -2
- package/components/menu/demo/api.md +41 -45
- package/components/menu/demo/css-only.html +57 -0
- package/components/menu/demo/css-only.md +166 -0
- package/components/menu/demo/customize.md +0 -28
- package/components/menu/demo/index.min.js +779 -1354
- package/components/menu/demo/pages.json +1 -1
- package/components/menu/demo/styles.min.css +1 -1
- package/components/menu/demo/why-menu.html +57 -0
- package/components/menu/demo/why-menu.md +104 -0
- package/components/menu/dist/auro-menu.d.ts +95 -110
- package/components/menu/dist/auro-menuoption.d.ts +32 -138
- package/components/menu/dist/index.js +753 -1308
- package/components/menu/dist/registered.js +765 -1308
- package/components/radio/demo/css-only.html +57 -0
- package/components/radio/demo/css-only.md +151 -0
- package/components/radio/demo/customize.min.js +1764 -0
- package/components/radio/demo/demo-support.min.js +55807 -0
- package/components/radio/demo/getting-started.js +1 -1
- package/components/radio/demo/getting-started.md +1 -1
- package/components/radio/demo/getting-started.min.js +1783 -0
- package/components/radio/demo/index.min.js +2 -2
- package/components/radio/demo/pages.json +1 -1
- package/components/radio/demo/styles.min.css +1 -1
- package/components/radio/demo/why-radio.html +57 -0
- package/components/radio/demo/why-radio.md +92 -0
- package/components/radio/dist/index.js +2 -2
- package/components/radio/dist/registered.js +2 -2
- package/components/select/demo/api.md +1 -0
- package/components/select/demo/css-only.html +57 -0
- package/components/select/demo/css-only.md +203 -0
- package/components/select/demo/customize.md +78 -3
- package/components/select/demo/customize.min.js +1341 -1533
- package/components/select/demo/getting-started.min.js +1341 -1533
- package/components/select/demo/index.min.js +1341 -1533
- package/components/select/demo/keyboard-behavior.md +19 -0
- package/components/select/demo/pages.json +1 -1
- package/components/select/demo/styles.min.css +1 -1
- package/components/select/demo/why-select.html +57 -0
- package/components/select/demo/why-select.md +128 -0
- package/components/select/dist/auro-select.d.ts +38 -2
- package/components/select/dist/index.js +435 -52
- package/components/select/dist/registered.js +435 -52
- package/components/select/dist/selectUtils.d.ts +12 -0
- package/custom-elements.json +3051 -2553
- package/package.json +8 -8
- package/components/menu/dist/auro-menu.context.d.ts +0 -238
|
@@ -35,13 +35,15 @@
|
|
|
35
35
|
</li>
|
|
36
36
|
</ul>
|
|
37
37
|
<auro-header level="4" id="calendar">Calendar</auro-header>
|
|
38
|
-
<p>The calendar displays one or more months in a grid layout. Users interact with the calendar by clicking
|
|
38
|
+
<p>The calendar displays one or more months in a grid layout. Users interact with the calendar by clicking, tapping, or using arrow keys to navigate date cells and Enter/Space to select. The calendar supports:</p>
|
|
39
39
|
<ul>
|
|
40
40
|
<li>Navigating between months using previous/next arrows.</li>
|
|
41
|
+
<li>Arrow-key navigation between date cells with automatic cross-month boundary handling.</li>
|
|
41
42
|
<li>Date range highlighting when <code>range</code> is set.</li>
|
|
42
43
|
<li>Disabled dates outside the <code>minDate</code>/<code>maxDate</code> bounds.</li>
|
|
43
|
-
<li>
|
|
44
|
-
<li>
|
|
44
|
+
<li>Blackout dates that are focusable but not selectable.</li>
|
|
45
|
+
<li>Custom cell content via the <code>date_YYYY_MM_DD</code> slot.</li>
|
|
46
|
+
<li>Cell popovers via the <code>popover_YYYY_MM_DD</code> slot.</li>
|
|
45
47
|
</ul>
|
|
46
48
|
<auro-header level="4" id="helpText">Help Text</auro-header>
|
|
47
49
|
<p>Help text is not required. However, consideration should be given to how users will understand the full context of the component instance, particularly users reliant on accessibility tools like screen readers.</p>
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
<auro-anchorlink fluid href="#slot-bib-fullscreen-headline" class="level2 body-xs">bib.fullscreen.headline</auro-anchorlink>
|
|
23
23
|
<auro-anchorlink fluid href="#slot-bib-fullscreen-fromLabel" class="level2 body-xs">bib.fullscreen.fromLabel</auro-anchorlink>
|
|
24
24
|
<auro-anchorlink fluid href="#slot-bib-fullscreen-toLabel" class="level2 body-xs">bib.fullscreen.toLabel</auro-anchorlink>
|
|
25
|
-
<auro-anchorlink fluid href="#slot-date" class="level2 body-xs">
|
|
26
|
-
<auro-anchorlink fluid href="#slot-popover" class="level2 body-xs">
|
|
25
|
+
<auro-anchorlink fluid href="#slot-date" class="level2 body-xs">date_YYYY_MM_DD</auro-anchorlink>
|
|
26
|
+
<auro-anchorlink fluid href="#slot-popover" class="level2 body-xs">popover_YYYY_MM_DD</auro-anchorlink>
|
|
27
27
|
<auro-anchorlink fluid href="#stateManagement">State Management</auro-anchorlink>
|
|
28
28
|
<auro-anchorlink fluid href="#validity" class="level2 body-xs">Validity</auro-anchorlink>
|
|
29
29
|
<auro-anchorlink fluid href="#value" class="level2 body-xs">Value</auro-anchorlink>
|
|
@@ -203,10 +203,10 @@ The `<auro-datepicker>` custom element is compatible with Svelte. See the auro-f
|
|
|
203
203
|
<p>Defines the content to display above the first date input in the fullscreen (mobile) layout.</p>
|
|
204
204
|
<auro-header level="3" id="slot-bib-fullscreen-toLabel">bib.fullscreen.toLabel</auro-header>
|
|
205
205
|
<p>Defines the content to display above the second date input in the fullscreen (mobile) layout when <code>range</code> is true.</p>
|
|
206
|
-
<auro-header level="3" id="slot-date">
|
|
207
|
-
<p>Defines the content to display in the <code>auro-calendar-cell</code> for the specified date. The date format in the slot name should match <
|
|
208
|
-
<auro-header level="3" id="slot-popover">
|
|
209
|
-
<p>Defines the content to display in the <code>auro-calendar-cell</code> popover for the specified date. The date format in the slot name should match <code>
|
|
206
|
+
<auro-header level="3" id="slot-date">date_YYYY_MM_DD</auro-header>
|
|
207
|
+
<p>Defines the content to display in the <code>auro-calendar-cell</code> for the specified date. The date format in the slot name should match <code_YYYY>MM_DD</code> (e.g. <code>slot="date_2026_01_15"</code>). Colored using the success state token when the <code>highlight</code> attribute is applied.</p>
|
|
208
|
+
<auro-header level="3" id="slot-popover">popover_YYYY_MM_DD</auro-header>
|
|
209
|
+
<p>Defines the content to display in the <code>auro-calendar-cell</code> popover for the specified date. The date format in the slot name should match <code>YYYY_MM_DD</code> (e.g. <code>slot="popover_2026_01_15"</code>).</p>
|
|
210
210
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
211
211
|
</section>
|
|
212
212
|
<section>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AuroDatePicker } from '../src/auro-datepicker.js';
|
|
2
|
+
import { blackoutLabelExample } from '../apiExamples/blackout-label.js';
|
|
2
3
|
|
|
3
4
|
AuroDatePicker.register(); // registering to auro-datepicker
|
|
4
5
|
AuroDatePicker.register('custom-datepicker');
|
|
@@ -7,7 +8,10 @@ export function initExamples(initCount) {
|
|
|
7
8
|
initCount = initCount || 0;
|
|
8
9
|
|
|
9
10
|
try {
|
|
10
|
-
//
|
|
11
|
+
// Only run when the demo element exists on the current page
|
|
12
|
+
if (document.querySelector('#blackoutLabelExample')) {
|
|
13
|
+
blackoutLabelExample();
|
|
14
|
+
}
|
|
11
15
|
} catch {
|
|
12
16
|
if (initCount <= 20) {
|
|
13
17
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
<auro-anchorlink fluid href="#selectRange" class="level2 body-xs">Select a Range</auro-anchorlink>
|
|
11
11
|
<auro-anchorlink fluid href="#presetValue" class="level2 body-xs">Preset Value</auro-anchorlink>
|
|
12
12
|
<auro-anchorlink fluid href="#skipSelection" class="level2 body-xs">Skip Selection</auro-anchorlink>
|
|
13
|
-
<auro-anchorlink fluid href="#
|
|
13
|
+
<auro-anchorlink fluid href="#popoverSlot" class="level2 body-xs">Date Popover</auro-anchorlink>
|
|
14
|
+
<auro-anchorlink fluid href="#blackoutDates" class="level2 body-xs">Blackout Dates</auro-anchorlink>
|
|
15
|
+
<auro-anchorlink fluid href="#referenceDates" class="level2 body-xs">Reference Dates</auro-anchorlink>
|
|
14
16
|
<auro-anchorlink fluid href="#viewportSize" class="level2 body-xs">Viewport Size</auro-anchorlink>
|
|
15
17
|
</auro-nav>
|
|
16
18
|
</nav>
|
|
@@ -39,15 +41,21 @@
|
|
|
39
41
|
Click the input or press <kbd>Enter</kbd> / <kbd>Space</kbd> to open the calendar
|
|
40
42
|
<div class="note">
|
|
41
43
|
<p>
|
|
42
|
-
The calendar bib opens and displays the current month.
|
|
44
|
+
The calendar bib opens and displays the current month. The focused cell is determined in the following priority order:
|
|
43
45
|
</p>
|
|
46
|
+
<ol>
|
|
47
|
+
<li>The currently selected date (if one exists and is within the valid min/max range).</li>
|
|
48
|
+
<li>Today's date (if it is enabled — within the min/max range).</li>
|
|
49
|
+
<li>The first future enabled date.</li>
|
|
50
|
+
<li>The first past enabled date.</li>
|
|
51
|
+
</ol>
|
|
44
52
|
</div>
|
|
45
53
|
</li>
|
|
46
54
|
<li>
|
|
47
55
|
Select a date by clicking a calendar cell or by typing a date directly into the input
|
|
48
56
|
<div class="note">
|
|
49
57
|
<p>
|
|
50
|
-
When a valid date is selected, the <code>value</code> property is updated
|
|
58
|
+
When a valid date is selected, the <code>value</code> property is updated. The calendar remains open so additional dates can be reviewed. Close the calendar by pressing Escape or activating the Done button. If the user types a date, it must match the configured <code>format</code> (default <code>mm/dd/yyyy</code>).
|
|
51
59
|
</p>
|
|
52
60
|
</div>
|
|
53
61
|
</li>
|
|
@@ -168,25 +176,114 @@
|
|
|
168
176
|
<auro-header level="3" id="skipSelection">Skip selection</auro-header>
|
|
169
177
|
<p>The datepicker does not force the user to select a date. If no selection is made and the field is not <code>required</code>, the user can move past the datepicker without entering a value.</p>
|
|
170
178
|
<p>If the field is <code>required</code>, moving focus away without selecting a date triggers validation and renders the <code>valueMissing</code> error state.</p>
|
|
171
|
-
<auro-header level="3" id="
|
|
172
|
-
<p>
|
|
173
|
-
<
|
|
179
|
+
<auro-header level="3" id="popoverSlot">Popover slot</auro-header>
|
|
180
|
+
<p>Use the <code>popover_YYYY_MM_DD</code> slot to display additional information when the user hovers over a calendar cell. This is useful for showing pricing, availability, or other contextual details for specific dates.</p>
|
|
181
|
+
<div class="exampleWrapper">
|
|
182
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/popover-slot.html) -->
|
|
183
|
+
<!-- The below content is automatically added from ./../apiExamples/popover-slot.html -->
|
|
184
|
+
<auro-datepicker centralDate="2023-12-03" calendarStartDate="2023-12-01" calendarEndDate="2023-12-31" minDate="2023-12-02" maxDate="2023-12-09">
|
|
185
|
+
<span slot="bib.fullscreen.headline">Popover Slot Example</span>
|
|
186
|
+
<span slot="fromLabel">Choose a date</span>
|
|
187
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
188
|
+
<span slot="popover_2023_12_03">Tickets for this day are sold out</span>
|
|
189
|
+
<span slot="date_2023_12_03">$560</span>
|
|
190
|
+
<span slot="popover_2023_12_04">34 seats available</span>
|
|
191
|
+
<span slot="date_2023_12_04">$245</span>
|
|
192
|
+
<span slot="popover_2023_12_05">18 seats available</span>
|
|
193
|
+
<span slot="date_2023_12_05">$312</span>
|
|
194
|
+
<span slot="popover_2023_12_06">Tickets for this day are sold out</span>
|
|
195
|
+
<span slot="date_2023_12_06">$489</span>
|
|
196
|
+
<span slot="popover_2023_12_07">52 seats available</span>
|
|
197
|
+
<span slot="date_2023_12_07">$198</span>
|
|
198
|
+
<span slot="popover_2023_12_08">7 seats available</span>
|
|
199
|
+
<span slot="date_2023_12_08">$375</span>
|
|
200
|
+
<span slot="popover_2023_12_09">41 seats available</span>
|
|
201
|
+
<span slot="date_2023_12_09">$220</span>
|
|
202
|
+
</auro-datepicker>
|
|
203
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
204
|
+
</div>
|
|
205
|
+
<auro-accordion alignRight>
|
|
206
|
+
<span slot="trigger">See code</span>
|
|
207
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/popover-slot.html) -->
|
|
208
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/popover-slot.html -->
|
|
209
|
+
<pre class="language-html"><code class="language-html"><auro-datepicker centralDate="2023-12-03" calendarStartDate="2023-12-01" calendarEndDate="2023-12-31" minDate="2023-12-02" maxDate="2023-12-09">
|
|
210
|
+
<span slot="bib.fullscreen.headline">Popover Slot Example</span>
|
|
211
|
+
<span slot="fromLabel">Choose a date</span>
|
|
212
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
213
|
+
<span slot="popover_2023_12_03">Tickets for this day are sold out</span>
|
|
214
|
+
<span slot="date_2023_12_03">$560</span>
|
|
215
|
+
<span slot="popover_2023_12_04">34 seats available</span>
|
|
216
|
+
<span slot="date_2023_12_04">$245</span>
|
|
217
|
+
<span slot="popover_2023_12_05">18 seats available</span>
|
|
218
|
+
<span slot="date_2023_12_05">$312</span>
|
|
219
|
+
<span slot="popover_2023_12_06">Tickets for this day are sold out</span>
|
|
220
|
+
<span slot="date_2023_12_06">$489</span>
|
|
221
|
+
<span slot="popover_2023_12_07">52 seats available</span>
|
|
222
|
+
<span slot="date_2023_12_07">$198</span>
|
|
223
|
+
<span slot="popover_2023_12_08">7 seats available</span>
|
|
224
|
+
<span slot="date_2023_12_08">$375</span>
|
|
225
|
+
<span slot="popover_2023_12_09">41 seats available</span>
|
|
226
|
+
<span slot="date_2023_12_09">$220</span>
|
|
227
|
+
</auro-datepicker></code></pre>
|
|
228
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
229
|
+
</auro-accordion>
|
|
230
|
+
<auro-header level="3" id="blackoutDates">Blackout dates with custom label</auro-header>
|
|
231
|
+
<p>Use the <code>blackoutLabel</code> attribute to customize the screen reader announcement for blackout (disabled but in-range) dates. The default label is <code>"unavailable"</code>. This is useful when you want to provide more context about why a date cannot be selected, such as <code>"sold out"</code>.</p>
|
|
232
|
+
<p>When a user types a blackout date into the input, the datepicker validates the entry and displays a <code>customError</code> message. The default message is <code>"Selected date is unavailable"</code>. Use the <code>setCustomValidityCustomError</code> attribute to provide a custom error message, for example <code>setCustomValidityCustomError="That date is sold out"</code>.</p>
|
|
233
|
+
<div class="exampleWrapper">
|
|
234
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/blackout-label.html) -->
|
|
235
|
+
<!-- The below content is automatically added from ./../apiExamples/blackout-label.html -->
|
|
236
|
+
<auro-datepicker id="blackoutLabelExample" range blackoutLabel="sold out">
|
|
237
|
+
<span slot="fromLabel">Choose a start date</span>
|
|
238
|
+
<span slot="toLabel">Choose an end date</span>
|
|
239
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
240
|
+
<span slot="bib.fullscreen.toLabel">Choose an end date</span>
|
|
241
|
+
</auro-datepicker>
|
|
242
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
243
|
+
</div>
|
|
244
|
+
<auro-accordion alignRight>
|
|
245
|
+
<span slot="trigger">See code</span>
|
|
246
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/blackout-label.html) -->
|
|
247
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/blackout-label.html -->
|
|
248
|
+
<pre class="language-html"><code class="language-html"><auro-datepicker id="blackoutLabelExample" range blackoutLabel="sold out">
|
|
249
|
+
<span slot="fromLabel">Choose a start date</span>
|
|
250
|
+
<span slot="toLabel">Choose an end date</span>
|
|
251
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
252
|
+
<span slot="bib.fullscreen.toLabel">Choose an end date</span>
|
|
253
|
+
</auro-datepicker></code></pre>
|
|
254
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
255
|
+
</auro-accordion>
|
|
256
|
+
<auro-header level="3" id="referenceDates">Reference dates</auro-header>
|
|
257
|
+
<p>Use the <code>referenceDates</code> attribute to highlight specific dates on the calendar. Reference dates are displayed with a distinct visual treatment to draw attention to dates of interest, such as the cheapest travel dates or dates with special availability.</p>
|
|
258
|
+
<p class="note"><strong>NOTE:</strong> it is recommended to provide popover slot content for reference dates to give context for why the date is marked <code>reference</code>.</p>
|
|
174
259
|
<div class="exampleWrapper">
|
|
175
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
176
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
177
|
-
<auro-datepicker
|
|
178
|
-
<span slot="
|
|
179
|
-
<span slot="
|
|
260
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/reference-dates.html) -->
|
|
261
|
+
<!-- The below content is automatically added from ./../apiExamples/reference-dates.html -->
|
|
262
|
+
<auro-datepicker referenceDates='["2025-10-05", "2025-10-15", "2025-10-20", "2025-10-22"]' minDate="2025-10-12" range>
|
|
263
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
264
|
+
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
265
|
+
<span slot="fromLabel">Choose a date</span>
|
|
266
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
267
|
+
<span slot="popover_2025_10_05">Explanation for why this is a reference date.</span>
|
|
268
|
+
<span slot="popover_2025_10_15">Explanation for why this is a reference date.</span>
|
|
269
|
+
<span slot="popover_2025_10_20">Explanation for why this is a reference date.</span>
|
|
270
|
+
<span slot="popover_2025_10_22">Explanation for why this is a reference date.</span>
|
|
180
271
|
</auro-datepicker>
|
|
181
272
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
182
273
|
</div>
|
|
183
274
|
<auro-accordion alignRight>
|
|
184
275
|
<span slot="trigger">See code</span>
|
|
185
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
186
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
187
|
-
<pre class="language-html"><code class="language-html"><auro-datepicker
|
|
188
|
-
<span slot="
|
|
189
|
-
<span slot="
|
|
276
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reference-dates.html) -->
|
|
277
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/reference-dates.html -->
|
|
278
|
+
<pre class="language-html"><code class="language-html"><auro-datepicker referenceDates='["2025-10-05", "2025-10-15", "2025-10-20", "2025-10-22"]' minDate="2025-10-12" range>
|
|
279
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
280
|
+
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
281
|
+
<span slot="fromLabel">Choose a date</span>
|
|
282
|
+
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
283
|
+
<span slot="popover_2025_10_05">Explanation for why this is a reference date.</span>
|
|
284
|
+
<span slot="popover_2025_10_15">Explanation for why this is a reference date.</span>
|
|
285
|
+
<span slot="popover_2025_10_20">Explanation for why this is a reference date.</span>
|
|
286
|
+
<span slot="popover_2025_10_22">Explanation for why this is a reference date.</span>
|
|
190
287
|
</auro-datepicker></code></pre>
|
|
191
288
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
192
289
|
</auro-accordion>
|