@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.1 → 0.0.0-pr1628.11
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 +1 -1
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/accessibility.md +2 -2
- package/components/checkbox/demo/api.md +17 -17
- package/components/checkbox/demo/customize.md +16 -16
- package/components/checkbox/demo/customize.min.js +4 -4
- package/components/checkbox/demo/design.md +24 -24
- package/components/checkbox/demo/getting-started.md +33 -27
- package/components/checkbox/demo/getting-started.min.js +4 -4
- package/components/checkbox/demo/index.md +17 -17
- package/components/checkbox/demo/index.min.js +4 -4
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
- package/components/checkbox/dist/index.js +4 -4
- package/components/checkbox/dist/registered.js +4 -4
- package/components/combobox/demo/api.md +3 -3
- package/components/combobox/demo/css-only.md +3 -3
- package/components/combobox/demo/customize.md +12 -12
- package/components/combobox/demo/customize.min.js +53 -35
- package/components/combobox/demo/getting-started.min.js +53 -35
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +53 -35
- package/components/combobox/dist/auro-combobox.d.ts +6 -4
- package/components/combobox/dist/index.js +42 -25
- package/components/combobox/dist/registered.js +42 -25
- package/components/counter/demo/accessibility.md +1 -1
- package/components/counter/demo/api.md +18 -18
- package/components/counter/demo/css-only.md +1 -1
- package/components/counter/demo/customize.md +2 -2
- package/components/counter/demo/customize.min.js +30 -30
- package/components/counter/demo/design.md +1 -1
- package/components/counter/demo/getting-started.md +29 -2
- package/components/counter/demo/getting-started.min.js +30 -30
- package/components/counter/demo/index.min.js +30 -30
- package/components/counter/demo/why-counter.md +3 -3
- package/components/counter/dist/auro-counter-group.d.ts +13 -14
- package/components/counter/dist/auro-counter.d.ts +1 -1
- package/components/counter/dist/index.js +30 -30
- package/components/counter/dist/registered.js +30 -30
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/accessibility.md +5 -5
- package/components/datepicker/demo/api.md +3 -3
- package/components/datepicker/demo/css-only.md +4 -4
- package/components/datepicker/demo/customize.md +12 -12
- package/components/datepicker/demo/customize.min.js +189 -135
- package/components/datepicker/demo/design.md +11 -11
- package/components/datepicker/demo/getting-started.md +4 -4
- package/components/datepicker/demo/getting-started.min.js +189 -135
- package/components/datepicker/demo/index.md +5 -5
- package/components/datepicker/demo/index.min.js +189 -135
- package/components/datepicker/demo/keyboard-behavior.md +1 -1
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/demo/voiceover.md +4 -4
- package/components/datepicker/demo/why-datepicker.md +3 -3
- package/components/datepicker/dist/auro-calendar-cell.d.ts +32 -33
- package/components/datepicker/dist/auro-calendar-month.d.ts +8 -8
- package/components/datepicker/dist/auro-calendar.d.ts +44 -43
- package/components/datepicker/dist/auro-datepicker.d.ts +12 -10
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -0
- package/components/datepicker/dist/index.js +189 -135
- package/components/datepicker/dist/registered.js +189 -135
- package/components/datepicker/dist/utilities.d.ts +4 -1
- package/components/datepicker/dist/utilitiesCalendar.d.ts +12 -4
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +12 -6
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +4 -4
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +7 -7
- package/components/dropdown/demo/api.md +7 -7
- package/components/dropdown/demo/css-only.md +2 -2
- package/components/dropdown/demo/customize.md +1 -1
- package/components/dropdown/demo/customize.min.js +11 -10
- package/components/dropdown/demo/design.md +4 -4
- package/components/dropdown/demo/getting-started.min.js +33 -18
- package/components/dropdown/demo/index.min.js +11 -10
- package/components/dropdown/demo/voiceover.md +1 -1
- package/components/dropdown/demo/why-dropdown.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +9 -8
- package/components/dropdown/dist/index.js +11 -10
- package/components/dropdown/dist/registered.js +11 -10
- package/components/form/README.md +1 -1
- package/components/form/demo/api.md +7 -7
- package/components/form/demo/css-only.md +1 -1
- package/components/form/demo/customize.md +2 -0
- package/components/form/demo/customize.min.js +329 -243
- package/components/form/demo/getting-started.md +2 -0
- package/components/form/demo/getting-started.min.js +329 -243
- package/components/form/demo/index.md +2 -2
- package/components/form/demo/index.min.js +329 -243
- package/components/form/demo/keyboard-behavior.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/registerDemoDeps.min.js +327 -241
- package/components/form/demo/voiceover.md +3 -3
- package/components/form/demo/why-form.md +1 -1
- package/components/form/dist/auro-form.d.ts +2 -2
- package/components/form/dist/index.js +2 -2
- package/components/form/dist/registered.js +2 -2
- package/components/helptext/dist/auro-helptext.d.ts +1 -1
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.md +58 -58
- package/components/input/demo/css-only.md +4 -4
- package/components/input/demo/customize.md +11 -11
- package/components/input/demo/customize.min.js +22 -8
- package/components/input/demo/design.md +2 -2
- package/components/input/demo/getting-started.md +5 -5
- package/components/input/demo/getting-started.min.js +22 -8
- package/components/input/demo/index.md +1 -1
- package/components/input/demo/index.min.js +22 -8
- package/components/input/demo/why-input.md +3 -3
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +6 -5
- package/components/input/dist/index.js +22 -8
- package/components/input/dist/registered.js +22 -8
- package/components/input/dist/utilities.d.ts +11 -0
- package/components/menu/demo/accessibility.md +1 -1
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/css-only.md +4 -4
- package/components/menu/demo/customize.md +1 -1
- package/components/menu/demo/design.md +1 -1
- package/components/menu/demo/getting-started.md +3 -3
- package/components/menu/demo/index.min.js +11 -10
- package/components/menu/demo/keyboard-behavior.md +1 -1
- package/components/menu/demo/voiceover.md +1 -1
- package/components/menu/demo/why-menu.md +3 -3
- package/components/menu/dist/auro-menu.d.ts +10 -9
- package/components/menu/dist/auro-menuoption.d.ts +1 -1
- package/components/menu/dist/index.js +11 -10
- package/components/menu/dist/registered.js +11 -10
- package/components/radio/demo/accessibility.md +1 -1
- package/components/radio/demo/api.md +10 -10
- package/components/radio/demo/customize.md +15 -5
- package/components/radio/demo/customize.min.js +11 -13
- package/components/radio/demo/design.md +1 -1
- package/components/radio/demo/getting-started.md +6 -6
- package/components/radio/demo/getting-started.min.js +11 -13
- package/components/radio/demo/index.md +1 -1
- package/components/radio/demo/index.min.js +11 -13
- package/components/radio/demo/keyboard-behavior.md +1 -1
- package/components/radio/demo/voiceover.md +1 -1
- package/components/radio/demo/why-radio.md +1 -1
- package/components/radio/dist/auro-radio-group.d.ts +6 -8
- package/components/radio/dist/auro-radio.d.ts +3 -3
- package/components/radio/dist/index.js +11 -13
- package/components/radio/dist/registered.js +11 -13
- package/components/select/demo/api.md +1 -1
- package/components/select/demo/css-only.md +1 -1
- package/components/select/demo/customize.md +1 -1
- package/components/select/demo/customize.min.js +29 -26
- package/components/select/demo/getting-started.min.js +29 -26
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +29 -26
- package/components/select/demo/voiceover.md +1 -1
- package/components/select/dist/auro-select.d.ts +4 -3
- package/components/select/dist/index.js +18 -16
- package/components/select/dist/registered.js +18 -16
- package/custom-elements.json +149 -133
- package/package.json +1 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Date helpers the datepicker and its calendar share, such as finding the first day of a month and counting the months between two dates.
|
|
3
|
+
*/
|
|
1
4
|
export class AuroDatepickerUtilities {
|
|
2
5
|
/**
|
|
3
6
|
* Converts a date to a `Date` object for the first day of its month, at local midnight.
|
|
@@ -22,7 +25,7 @@ export class AuroDatepickerUtilities {
|
|
|
22
25
|
dom: Document | undefined;
|
|
23
26
|
svg: ChildNode | null | undefined;
|
|
24
27
|
/**
|
|
25
|
-
*
|
|
28
|
+
* Checks whether two dates are the same moment in time.
|
|
26
29
|
* @private
|
|
27
30
|
* @param {Object} date1 - The first date to compare.
|
|
28
31
|
* @param {Object} date2 - The second date to compare.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers the datepicker's calendar uses to change the month it shows, show or hide the previous and next month buttons, and scroll to a month.
|
|
3
|
+
*/
|
|
1
4
|
export class CalendarUtilities {
|
|
2
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The date helpers these methods use.
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
private util;
|
|
3
10
|
/**
|
|
4
11
|
* Scrolls the calendar to the month of a valid date when the window is narrower than the calendar's mobile breakpoint.
|
|
5
12
|
* @param {Object} elem - The calendar element.
|
|
@@ -8,7 +15,8 @@ export class CalendarUtilities {
|
|
|
8
15
|
*/
|
|
9
16
|
scrollMonthIntoView(elem: Object, date: string): void;
|
|
10
17
|
/**
|
|
11
|
-
*
|
|
18
|
+
* Called when someone selects the fullscreen calendar's close button or the Done button.
|
|
19
|
+
* Fires `auroCalendar-dismissRequest` so the datepicker closes the calendar.
|
|
12
20
|
* @private
|
|
13
21
|
* @returns {void}
|
|
14
22
|
*/
|
|
@@ -20,7 +28,8 @@ export class CalendarUtilities {
|
|
|
20
28
|
*/
|
|
21
29
|
assessNavigationButtonVisibility(elem: Object): void;
|
|
22
30
|
/**
|
|
23
|
-
*
|
|
31
|
+
* Called when the calendar's `centralDate` changes. Updates the previous and next month buttons
|
|
32
|
+
* and fires `auroCalendar-centralDateChanged` with the new date.
|
|
24
33
|
* @param {Object} elem - The auro-calendar element.
|
|
25
34
|
* @private
|
|
26
35
|
* @returns {void}
|
|
@@ -34,4 +43,3 @@ export class CalendarUtilities {
|
|
|
34
43
|
*/
|
|
35
44
|
handleMonthChange(elem: Object, direction: string): void;
|
|
36
45
|
}
|
|
37
|
-
import { AuroDatepickerUtilities } from './utilities.js';
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers the datepicker and its calendar use to set the month the calendar shows, and to choose and render the calendar's months.
|
|
3
|
+
*/
|
|
1
4
|
export class UtilitiesCalendarRender {
|
|
2
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The date helpers these methods use.
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
private util;
|
|
3
10
|
/**
|
|
4
11
|
* Sets `centralDate` to the first day of the date's month, when the date is valid.
|
|
5
|
-
* @param {Object} elem - The element to set
|
|
6
|
-
* @param {
|
|
12
|
+
* @param {Object} elem - The element to set `centralDate` on.
|
|
13
|
+
* @param {string|Date|number} date - The date whose month to show: an ISO date string, a `Date` object, or a timestamp in milliseconds.
|
|
7
14
|
* @private
|
|
8
15
|
*/
|
|
9
16
|
private updateCentralDate;
|
|
@@ -38,13 +45,12 @@ export class UtilitiesCalendarRender {
|
|
|
38
45
|
*/
|
|
39
46
|
private setFirstRenderableMonthDate;
|
|
40
47
|
/**
|
|
41
|
-
* Renders
|
|
48
|
+
* Renders an `auro-formkit-calendar-month` element for one month.
|
|
42
49
|
* @private
|
|
43
50
|
* @param {Object} elem - The auro-calendar element.
|
|
44
51
|
* @param {Number} month - The month the calendar displays.
|
|
45
52
|
* @param {Number} year - The year the calendar displays.
|
|
46
|
-
* @returns {Object} The auro-calendar-month
|
|
53
|
+
* @returns {Object} The `auro-formkit-calendar-month` template.
|
|
47
54
|
*/
|
|
48
55
|
private renderCalendar;
|
|
49
56
|
}
|
|
50
|
-
import { AuroDatepickerUtilities } from './utilities.js';
|
package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export class RangeDatepickerCalendar extends LitElement {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Sets the chosen date, or the start date of a range, as a Unix timestamp in seconds.
|
|
4
4
|
*/
|
|
5
5
|
dateFrom: any;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Sets the end date of a range, as a Unix timestamp in seconds.
|
|
8
8
|
*/
|
|
9
9
|
dateTo: any;
|
|
10
10
|
hoveredDate: any;
|
|
@@ -17,11 +17,11 @@ export class RangeDatepickerCalendar extends LitElement {
|
|
|
17
17
|
year: number;
|
|
18
18
|
disabledDays: any[];
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Sets the latest date people can choose, as a Unix timestamp in seconds.
|
|
21
21
|
*/
|
|
22
22
|
max: any;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Sets the earliest date people can choose, as a Unix timestamp in seconds.
|
|
25
25
|
*/
|
|
26
26
|
min: any;
|
|
27
27
|
yearsList: any[];
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
export class RangeDatepicker extends LitElement {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Sets dates people can't select, as Unix timestamps in seconds.
|
|
4
4
|
*/
|
|
5
5
|
disabledDays: any[];
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Shows the previous and next month buttons on every month, and lets each month change on its own. It doesn't currently show a control for choosing the year.
|
|
8
8
|
*/
|
|
9
9
|
enableYearChange: boolean;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Shows one month at a time, even on screens wider than 650 pixels.
|
|
12
12
|
*/
|
|
13
13
|
forceNarrow: boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Sets the date-fns locale object used for the month and weekday names, such as `enUS`. Uses `enUS` when not set.
|
|
16
16
|
*/
|
|
17
17
|
locale: any;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Sets the latest date people can choose, as a Unix timestamp in seconds.
|
|
20
20
|
*/
|
|
21
21
|
max: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Sets the earliest date people can choose, as a Unix timestamp in seconds.
|
|
24
24
|
*/
|
|
25
25
|
min: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Lets people choose only one date instead of a start date and an end date.
|
|
28
28
|
*/
|
|
29
29
|
noRange: boolean;
|
|
30
30
|
dateFrom: any;
|
|
@@ -24,7 +24,7 @@ A trigger that opens a panel, called the bib, to show interactive content, such
|
|
|
24
24
|
| Properties | Attributes | Modifiers | Type | Default | Category | Relevant when | Description |
|
|
25
25
|
| ----------------------- | ----------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------- | -------- | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
26
26
|
| a11yRole | | | string | `button` | a11y | | Sets the ARIA role of the trigger, such as `combobox` when the trigger shows a chosen value and opens a list of options (the trigger's `role`).<br>Applies only when the `trigger` slot content isn't focusable.<br>With any role other than `button`, the trigger also gets `aria-expanded` and `aria-controls`, and `combobox` adds `aria-haspopup="listbox"`. |
|
|
27
|
-
| tabIndex | tabindex | | number |
|
|
27
|
+
| tabIndex | tabindex | | number | `0` | a11y | | Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).<br>Applies only when the `trigger` slot content isn't focusable. |
|
|
28
28
|
| appearance | appearance | | `default` \| `inverse` | `default` | ui | | Sets the colors for the background the dropdown sits on.<br>Use `inverse` on dark backgrounds and `default` everywhere else. |
|
|
29
29
|
| chevron | chevron | | boolean | | ui | | Shows a chevron after the trigger content that points up while the bib is open and down while it's closed. |
|
|
30
30
|
| desktopModal | desktopmodal | | boolean | | ui | | Makes the open bib act as a modal dialog when it isn't fullscreen.<br>Keyboard focus stays in the bib, and the rest of the page can't be used until the bib closes. |
|
|
@@ -38,7 +38,7 @@ A trigger that opens a panel, called the bib, to show interactive content, such
|
|
|
38
38
|
| placement | placement | | `top` \| `right` \| `bottom` \| `left` \| `bottom-start` \| `top-start` \| `top-end` \| `right-start` \| `right-end` \| `bottom-end` \| `left-start` \| `left-end` | `bottom-start` | ui | | Sets where the bib opens relative to the trigger, such as `bottom-start` for below the trigger, lined up with its start edge.<br>The bib flips to the opposite side when there isn't room, unless `noFlip` is set. |
|
|
39
39
|
| shape | shape | | `box` \| `classic` \| `pill` \| `pill-left` \| `pill-right` \| `rounded` \| `snowflake` | `undefined` | ui | `size !== undefined` | Sets the shape of the trigger.<br>Applies only when `size` is also set.<br>Match it to the layout: `classic` for the `classic` layout; `pill`, `pill-left`, or `pill-right` for the `emphasized` layout; and `snowflake` for the `snowflake` layout. |
|
|
40
40
|
| shift | shift | | boolean | | ui | | Slides the bib along the trigger's edge to keep it inside the viewport. |
|
|
41
|
-
| simple | simple | | boolean | | ui |
|
|
41
|
+
| simple | simple | | boolean | | ui | `shape !== undefined` | Removes the trigger's border, background, and shadow.<br>Applies only when `shape` and `size` are both set. |
|
|
42
42
|
| size | size | | `xs` \| `sm` \| `md` \| `lg` \| `xl` | `undefined` | ui | `shape !== undefined` | Sets the height of the trigger, from `xs`, the shortest, to `xl`, the tallest.<br>Applies only when `shape` is also set.<br>The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them. |
|
|
43
43
|
| autoPlacement | autoplacement | | boolean | | ui | | Deprecated: Use `placement` instead.<br>Moves the bib to whichever side of the trigger has the most space.<br>The bib already flips to the opposite side when it doesn't fit, unless `noFlip` is set. |
|
|
44
44
|
| onDark | ondark | | boolean | | ui | | Deprecated: Use `appearance="inverse"` instead.<br>Shows the dropdown in colors designed for dark backgrounds. |
|
|
@@ -69,11 +69,11 @@ A trigger that opens a panel, called the bib, to show interactive content, such
|
|
|
69
69
|
|
|
70
70
|
### Events
|
|
71
71
|
|
|
72
|
-
| Name | Description
|
|
73
|
-
| ------------------------- |
|
|
74
|
-
| auroDropdown-idAdded | Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
|
|
75
|
-
| auroDropdown-toggled | Notifies that the bib opened or closed.
|
|
76
|
-
| auroDropdown-triggerClick | Notifies that the trigger was clicked, or activated with Enter or Space.
|
|
72
|
+
| Name | Description |
|
|
73
|
+
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
74
|
+
| auroDropdown-idAdded | Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`. |
|
|
75
|
+
| auroDropdown-toggled | Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`. |
|
|
76
|
+
| auroDropdown-triggerClick | Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it. |
|
|
77
77
|
|
|
78
78
|
### Slots
|
|
79
79
|
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
<auro-header level="3">Keyboard handling</auro-header>
|
|
96
96
|
<p><code>auro-dropdown</code> opens and closes the bib with <code>Enter</code> and <code>Space</code> on the trigger, closes it with <code>Escape</code>, and coordinates <code>Tab</code> behavior with the bib contents. Set <code>disableKeyboardHandling</code> to handle the trigger keys yourself. Native <code><details></code> only toggles on <code>Enter</code>/<code>Space</code> on the <code><summary></code> and offers no panel-internal keyboard model.</p>
|
|
97
97
|
<auro-header level="3">ARIA wiring</auro-header>
|
|
98
|
-
<p><code>auro-dropdown</code> sets a role on the trigger with <code>a11yRole</code>, manages <code>aria-expanded</code> and <code>aria-controls</code> for roles other than the default <code>button</code>, such as <code>combobox</code>, and emits an <code>auroDropdown-idAdded</code> event so
|
|
98
|
+
<p><code>auro-dropdown</code> sets a role on the trigger with <code>a11yRole</code>, manages <code>aria-expanded</code> and <code>aria-controls</code> for roles other than the default <code>button</code>, such as <code>combobox</code>, and emits an <code>auroDropdown-idAdded</code> event so you can wire <code>aria-controls</code> to the generated bib ID. Native <code><details></code> exposes a disclosure role with <code>open</code> state but doesn't expose a generated panel ID, and any custom role (for example, <code>combobox</code> or <code>menu</code>) must be added and kept in sync by hand.</p>
|
|
99
99
|
<auro-header level="3">Chevron indicator</auro-header>
|
|
100
100
|
<p><code>auro-dropdown</code> supports a <code>chevron</code> attribute that renders a collapsed/expanded indicator with the correct rotation and design-token color. With native HTML you must author the indicator yourself: the example above uses a background-image SVG and a <code>[open]</code> selector to rotate it.</p>
|
|
101
101
|
<auro-header level="3">Error and help-text presentation</auro-header>
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
<tr>
|
|
168
168
|
<td>Focus into bib on open</td>
|
|
169
169
|
<td>Manual JS</td>
|
|
170
|
-
<td
|
|
170
|
+
<td>Automatic; <code>focus()</code> also moves focus into an open bib</td>
|
|
171
171
|
</tr>
|
|
172
172
|
<tr>
|
|
173
173
|
<td>Click-outside / focus-loss dismiss</td>
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
<section>
|
|
541
541
|
<auro-header level="2" id="customBehavior">Behavior</auro-header>
|
|
542
542
|
<auro-header level="3" id="chevron">Chevron</auro-header>
|
|
543
|
-
<p>Use the <code>chevron</code> attribute to
|
|
543
|
+
<p>Use the <code>chevron</code> attribute to show a chevron on the trigger that points up while the bib is open and down while it's closed.</p>
|
|
544
544
|
<div class="exampleWrapper">
|
|
545
545
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevron.html) -->
|
|
546
546
|
<!-- The below content is automatically added from ./../apiExamples/chevron.html -->
|
|
@@ -4054,7 +4054,7 @@ class AuroHelpText extends i {
|
|
|
4054
4054
|
}
|
|
4055
4055
|
|
|
4056
4056
|
/**
|
|
4057
|
-
* Called when the slot
|
|
4057
|
+
* Called when nodes are added to or removed from the slot, and after each update. Checks whether the slot has text, so the element shows only when it does.
|
|
4058
4058
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
4059
4059
|
* @returns {void}
|
|
4060
4060
|
*/
|
|
@@ -4107,7 +4107,7 @@ class AuroHelpText extends i {
|
|
|
4107
4107
|
}
|
|
4108
4108
|
}
|
|
4109
4109
|
|
|
4110
|
-
var formkitVersion = '
|
|
4110
|
+
var formkitVersion = '202611091610';
|
|
4111
4111
|
|
|
4112
4112
|
/**
|
|
4113
4113
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -4273,8 +4273,8 @@ class AuroElement extends i {
|
|
|
4273
4273
|
* @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
|
|
4274
4274
|
* @csspart size - A hidden sizing element whose `width`, `height`, `max-width`, and `max-height` are copied to the bib. Applies only when `matchWidth` is set.
|
|
4275
4275
|
* @csspart helpText - The help text container. Not currently rendered, so styles set on it have no effect; style the content in the `helpText` slot instead.
|
|
4276
|
-
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
|
|
4277
|
-
* @event auroDropdown-toggled - Notifies that the bib opened or closed.
|
|
4276
|
+
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it.
|
|
4277
|
+
* @event auroDropdown-toggled - Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`.
|
|
4278
4278
|
* @event auroDropdown-idAdded - Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
|
|
4279
4279
|
*/
|
|
4280
4280
|
class AuroDropdown extends AuroElement {
|
|
@@ -4603,6 +4603,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4603
4603
|
/**
|
|
4604
4604
|
* Removes the trigger's border, background, and shadow.
|
|
4605
4605
|
* Applies only when `shape` and `size` are both set.
|
|
4606
|
+
* @relevantWhen shape !== undefined
|
|
4606
4607
|
* @category ui
|
|
4607
4608
|
*/
|
|
4608
4609
|
simple: {
|
|
@@ -4895,6 +4896,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4895
4896
|
/**
|
|
4896
4897
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
4897
4898
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
4899
|
+
* @default 0
|
|
4898
4900
|
* @category a11y
|
|
4899
4901
|
*/
|
|
4900
4902
|
tabIndex: {
|
|
@@ -5586,7 +5588,6 @@ class AuroDropdown extends AuroElement {
|
|
|
5586
5588
|
*
|
|
5587
5589
|
* @private
|
|
5588
5590
|
* @method handleDefaultSlot
|
|
5589
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
5590
5591
|
*/
|
|
5591
5592
|
handleDefaultSlot() {
|
|
5592
5593
|
|
|
@@ -5599,7 +5600,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5599
5600
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
5600
5601
|
* @private
|
|
5601
5602
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
5602
|
-
* @returns {
|
|
5603
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
5603
5604
|
*/
|
|
5604
5605
|
renderBasicHtml(helpTextClasses) {
|
|
5605
5606
|
return u$2`
|
|
@@ -5661,7 +5662,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5661
5662
|
/**
|
|
5662
5663
|
* Renders the classic layout.
|
|
5663
5664
|
* @private
|
|
5664
|
-
* @returns {
|
|
5665
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
5665
5666
|
*/
|
|
5666
5667
|
renderLayoutClassic() {
|
|
5667
5668
|
// TODO: check with Doug why this was never used?
|
|
@@ -5677,7 +5678,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5677
5678
|
/**
|
|
5678
5679
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
5679
5680
|
* @private
|
|
5680
|
-
* @returns {
|
|
5681
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
5681
5682
|
*/
|
|
5682
5683
|
renderLayoutSnowflake() {
|
|
5683
5684
|
const helpTextClasses = {
|
|
@@ -5694,7 +5695,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5694
5695
|
/**
|
|
5695
5696
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
5696
5697
|
* @private
|
|
5697
|
-
* @returns {
|
|
5698
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
5698
5699
|
*/
|
|
5699
5700
|
renderLayoutEmphasized() {
|
|
5700
5701
|
const helpTextClasses = {
|
|
@@ -5712,7 +5713,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5712
5713
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
5713
5714
|
* @private
|
|
5714
5715
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
5715
|
-
* @returns {
|
|
5716
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
5716
5717
|
*/
|
|
5717
5718
|
renderLayout(ForcedLayout) {
|
|
5718
5719
|
const layout = ForcedLayout || this.layout;
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
<p>The component consists of the following elements:</p>
|
|
9
9
|
<ul>
|
|
10
10
|
<li>
|
|
11
|
-
<strong>Trigger:</strong>
|
|
11
|
+
<strong>Trigger:</strong> Shows the component label or content, and changes to reflect the component's state, such as <code>focus</code>, <code>hover</code>, or <code>disabled</code>.
|
|
12
12
|
</li>
|
|
13
13
|
<li>
|
|
14
|
-
<strong>Bib:</strong> the
|
|
14
|
+
<strong>Bib:</strong> Holds the dropdown's content, and opens and closes when someone activates the trigger.
|
|
15
15
|
</li>
|
|
16
16
|
<li>
|
|
17
|
-
<strong>Chevron:</strong>
|
|
17
|
+
<strong>Chevron:</strong> Points up while the bib is open and down while it's closed. It appears only when the <code>chevron</code> attribute is set.
|
|
18
18
|
</li>
|
|
19
19
|
<li>
|
|
20
|
-
<strong>Help text:</strong> text below the trigger that helps people understand how to use the dropdown.
|
|
20
|
+
<strong>Help text:</strong> Shows text below the trigger that helps people understand how to use the dropdown.
|
|
21
21
|
</li>
|
|
22
22
|
</ul>
|
|
23
23
|
<auro-header level="4" id="trigger">Trigger</auro-header>
|
|
@@ -4054,7 +4054,7 @@ let AuroHelpText$1 = class AuroHelpText extends i {
|
|
|
4054
4054
|
}
|
|
4055
4055
|
|
|
4056
4056
|
/**
|
|
4057
|
-
* Called when the slot
|
|
4057
|
+
* Called when nodes are added to or removed from the slot, and after each update. Checks whether the slot has text, so the element shows only when it does.
|
|
4058
4058
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
4059
4059
|
* @returns {void}
|
|
4060
4060
|
*/
|
|
@@ -4107,7 +4107,7 @@ let AuroHelpText$1 = class AuroHelpText extends i {
|
|
|
4107
4107
|
}
|
|
4108
4108
|
};
|
|
4109
4109
|
|
|
4110
|
-
var formkitVersion$1 = '
|
|
4110
|
+
var formkitVersion$1 = '202611091610';
|
|
4111
4111
|
|
|
4112
4112
|
/**
|
|
4113
4113
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -4273,8 +4273,8 @@ let AuroElement$1 = class AuroElement extends i {
|
|
|
4273
4273
|
* @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
|
|
4274
4274
|
* @csspart size - A hidden sizing element whose `width`, `height`, `max-width`, and `max-height` are copied to the bib. Applies only when `matchWidth` is set.
|
|
4275
4275
|
* @csspart helpText - The help text container. Not currently rendered, so styles set on it have no effect; style the content in the `helpText` slot instead.
|
|
4276
|
-
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
|
|
4277
|
-
* @event auroDropdown-toggled - Notifies that the bib opened or closed.
|
|
4276
|
+
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it.
|
|
4277
|
+
* @event auroDropdown-toggled - Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`.
|
|
4278
4278
|
* @event auroDropdown-idAdded - Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
|
|
4279
4279
|
*/
|
|
4280
4280
|
class AuroDropdown extends AuroElement$1 {
|
|
@@ -4603,6 +4603,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
4603
4603
|
/**
|
|
4604
4604
|
* Removes the trigger's border, background, and shadow.
|
|
4605
4605
|
* Applies only when `shape` and `size` are both set.
|
|
4606
|
+
* @relevantWhen shape !== undefined
|
|
4606
4607
|
* @category ui
|
|
4607
4608
|
*/
|
|
4608
4609
|
simple: {
|
|
@@ -4895,6 +4896,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
4895
4896
|
/**
|
|
4896
4897
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
4897
4898
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
4899
|
+
* @default 0
|
|
4898
4900
|
* @category a11y
|
|
4899
4901
|
*/
|
|
4900
4902
|
tabIndex: {
|
|
@@ -5586,7 +5588,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5586
5588
|
*
|
|
5587
5589
|
* @private
|
|
5588
5590
|
* @method handleDefaultSlot
|
|
5589
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
5590
5591
|
*/
|
|
5591
5592
|
handleDefaultSlot() {
|
|
5592
5593
|
|
|
@@ -5599,7 +5600,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5599
5600
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
5600
5601
|
* @private
|
|
5601
5602
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
5602
|
-
* @returns {
|
|
5603
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
5603
5604
|
*/
|
|
5604
5605
|
renderBasicHtml(helpTextClasses) {
|
|
5605
5606
|
return u$6`
|
|
@@ -5661,7 +5662,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5661
5662
|
/**
|
|
5662
5663
|
* Renders the classic layout.
|
|
5663
5664
|
* @private
|
|
5664
|
-
* @returns {
|
|
5665
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
5665
5666
|
*/
|
|
5666
5667
|
renderLayoutClassic() {
|
|
5667
5668
|
// TODO: check with Doug why this was never used?
|
|
@@ -5677,7 +5678,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5677
5678
|
/**
|
|
5678
5679
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
5679
5680
|
* @private
|
|
5680
|
-
* @returns {
|
|
5681
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
5681
5682
|
*/
|
|
5682
5683
|
renderLayoutSnowflake() {
|
|
5683
5684
|
const helpTextClasses = {
|
|
@@ -5694,7 +5695,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5694
5695
|
/**
|
|
5695
5696
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
5696
5697
|
* @private
|
|
5697
|
-
* @returns {
|
|
5698
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
5698
5699
|
*/
|
|
5699
5700
|
renderLayoutEmphasized() {
|
|
5700
5701
|
const helpTextClasses = {
|
|
@@ -5712,7 +5713,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5712
5713
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
5713
5714
|
* @private
|
|
5714
5715
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
5715
|
-
* @returns {
|
|
5716
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
5716
5717
|
*/
|
|
5717
5718
|
renderLayout(ForcedLayout) {
|
|
5718
5719
|
const layout = ForcedLayout || this.layout;
|
|
@@ -15868,6 +15869,9 @@ function cleanEscapedString(input) {
|
|
|
15868
15869
|
return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
|
|
15869
15870
|
}
|
|
15870
15871
|
|
|
15872
|
+
/**
|
|
15873
|
+
* Helpers that set up input masks and convert between the text shown in the field, `Date` objects, and ISO date strings (`YYYY-MM-DD`), for one locale and date format.
|
|
15874
|
+
*/
|
|
15871
15875
|
class AuroInputUtilities {
|
|
15872
15876
|
|
|
15873
15877
|
/**
|
|
@@ -15887,7 +15891,17 @@ class AuroInputUtilities {
|
|
|
15887
15891
|
} else {
|
|
15888
15892
|
this.locale = 'en-US';
|
|
15889
15893
|
}
|
|
15894
|
+
|
|
15895
|
+
/**
|
|
15896
|
+
* Sets the date format to use instead of the locale's format, such as `mm/dd/yyyy`. `updateFormat()` also sets it.
|
|
15897
|
+
* @type {string|undefined}
|
|
15898
|
+
*/
|
|
15890
15899
|
this.overrideFormat = config.format;
|
|
15900
|
+
|
|
15901
|
+
/**
|
|
15902
|
+
* The `Intl.DateTimeFormat` date formatter for the helpers' locale. The helpers don't currently use it.
|
|
15903
|
+
* @type {Intl.DateTimeFormat}
|
|
15904
|
+
*/
|
|
15891
15905
|
this.formatter = new Intl.DateTimeFormat(this.locale);
|
|
15892
15906
|
|
|
15893
15907
|
// Bindings - many of these are passed into IMask callbacks,
|
|
@@ -16318,7 +16332,7 @@ class BaseInput extends AuroElement {
|
|
|
16318
16332
|
// The initial-load focus theft was caused by the static `autofocus`
|
|
16319
16333
|
// attribute on the bib input (now conditional), not by delegatesFocus.
|
|
16320
16334
|
/**
|
|
16321
|
-
*
|
|
16335
|
+
* Gets the options Lit uses to create the shadow root.
|
|
16322
16336
|
* @internal
|
|
16323
16337
|
*/
|
|
16324
16338
|
static get shadowRootOptions() {
|
|
@@ -16478,8 +16492,9 @@ class BaseInput extends AuroElement {
|
|
|
16478
16492
|
},
|
|
16479
16493
|
|
|
16480
16494
|
/**
|
|
16481
|
-
* Sets the shape of the field's border.
|
|
16482
|
-
* and `pill
|
|
16495
|
+
* Sets the shape of the field's border. `classic` and `rounded` have slightly rounded corners, `box` has square corners,
|
|
16496
|
+
* and `pill` has fully rounded ends, or only the left or right end for `pill-left` and `pill-right`.
|
|
16497
|
+
* The emphasized layouts support `pill`, `pill-left`, and `pill-right`, and the snowflake layout uses `snowflake`.
|
|
16483
16498
|
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
16484
16499
|
* @default 'classic'
|
|
16485
16500
|
* @category ui
|
|
@@ -16491,8 +16506,8 @@ class BaseInput extends AuroElement {
|
|
|
16491
16506
|
},
|
|
16492
16507
|
|
|
16493
16508
|
/**
|
|
16494
|
-
* Sets the field's
|
|
16495
|
-
* emphasized layouts support only `xl`.
|
|
16509
|
+
* Sets the field's height. The `classic` and `snowflake` shapes are the same height at every size,
|
|
16510
|
+
* and the emphasized layouts support only `xl`.
|
|
16496
16511
|
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
16497
16512
|
* @default 'lg'
|
|
16498
16513
|
* @category ui
|
|
@@ -18235,7 +18250,7 @@ class AuroHelpText extends i {
|
|
|
18235
18250
|
}
|
|
18236
18251
|
|
|
18237
18252
|
/**
|
|
18238
|
-
* Called when the slot
|
|
18253
|
+
* Called when nodes are added to or removed from the slot, and after each update. Checks whether the slot has text, so the element shows only when it does.
|
|
18239
18254
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
18240
18255
|
* @returns {void}
|
|
18241
18256
|
*/
|
|
@@ -18288,7 +18303,7 @@ class AuroHelpText extends i {
|
|
|
18288
18303
|
}
|
|
18289
18304
|
}
|
|
18290
18305
|
|
|
18291
|
-
var formkitVersion = '
|
|
18306
|
+
var formkitVersion = '202611091610';
|
|
18292
18307
|
|
|
18293
18308
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18294
18309
|
// See LICENSE in the project root for license information.
|
|
@@ -18747,7 +18762,7 @@ class AuroInput extends BaseInput {
|
|
|
18747
18762
|
|
|
18748
18763
|
/**
|
|
18749
18764
|
* Gets the `pattern` for the inner `<input>` element. For credit card numbers,
|
|
18750
|
-
* builds a length check from `minLength` and `maxLength` instead.
|
|
18765
|
+
* builds a length check from `minLength` and `maxLength` instead, unless `noValidate` is set.
|
|
18751
18766
|
* @private
|
|
18752
18767
|
* @returns {string}
|
|
18753
18768
|
*/
|
|
@@ -4081,7 +4081,7 @@ class AuroHelpText extends i {
|
|
|
4081
4081
|
}
|
|
4082
4082
|
|
|
4083
4083
|
/**
|
|
4084
|
-
* Called when the slot
|
|
4084
|
+
* Called when nodes are added to or removed from the slot, and after each update. Checks whether the slot has text, so the element shows only when it does.
|
|
4085
4085
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
4086
4086
|
* @returns {void}
|
|
4087
4087
|
*/
|
|
@@ -4134,7 +4134,7 @@ class AuroHelpText extends i {
|
|
|
4134
4134
|
}
|
|
4135
4135
|
}
|
|
4136
4136
|
|
|
4137
|
-
var formkitVersion = '
|
|
4137
|
+
var formkitVersion = '202611091610';
|
|
4138
4138
|
|
|
4139
4139
|
/**
|
|
4140
4140
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -4300,8 +4300,8 @@ class AuroElement extends i {
|
|
|
4300
4300
|
* @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
|
|
4301
4301
|
* @csspart size - A hidden sizing element whose `width`, `height`, `max-width`, and `max-height` are copied to the bib. Applies only when `matchWidth` is set.
|
|
4302
4302
|
* @csspart helpText - The help text container. Not currently rendered, so styles set on it have no effect; style the content in the `helpText` slot instead.
|
|
4303
|
-
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
|
|
4304
|
-
* @event auroDropdown-toggled - Notifies that the bib opened or closed.
|
|
4303
|
+
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it.
|
|
4304
|
+
* @event auroDropdown-toggled - Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`.
|
|
4305
4305
|
* @event auroDropdown-idAdded - Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
|
|
4306
4306
|
*/
|
|
4307
4307
|
class AuroDropdown extends AuroElement {
|
|
@@ -4630,6 +4630,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4630
4630
|
/**
|
|
4631
4631
|
* Removes the trigger's border, background, and shadow.
|
|
4632
4632
|
* Applies only when `shape` and `size` are both set.
|
|
4633
|
+
* @relevantWhen shape !== undefined
|
|
4633
4634
|
* @category ui
|
|
4634
4635
|
*/
|
|
4635
4636
|
simple: {
|
|
@@ -4922,6 +4923,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4922
4923
|
/**
|
|
4923
4924
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
4924
4925
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
4926
|
+
* @default 0
|
|
4925
4927
|
* @category a11y
|
|
4926
4928
|
*/
|
|
4927
4929
|
tabIndex: {
|
|
@@ -5613,7 +5615,6 @@ class AuroDropdown extends AuroElement {
|
|
|
5613
5615
|
*
|
|
5614
5616
|
* @private
|
|
5615
5617
|
* @method handleDefaultSlot
|
|
5616
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
5617
5618
|
*/
|
|
5618
5619
|
handleDefaultSlot() {
|
|
5619
5620
|
|
|
@@ -5626,7 +5627,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5626
5627
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
5627
5628
|
* @private
|
|
5628
5629
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
5629
|
-
* @returns {
|
|
5630
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
5630
5631
|
*/
|
|
5631
5632
|
renderBasicHtml(helpTextClasses) {
|
|
5632
5633
|
return u$2`
|
|
@@ -5688,7 +5689,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5688
5689
|
/**
|
|
5689
5690
|
* Renders the classic layout.
|
|
5690
5691
|
* @private
|
|
5691
|
-
* @returns {
|
|
5692
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
5692
5693
|
*/
|
|
5693
5694
|
renderLayoutClassic() {
|
|
5694
5695
|
// TODO: check with Doug why this was never used?
|
|
@@ -5704,7 +5705,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5704
5705
|
/**
|
|
5705
5706
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
5706
5707
|
* @private
|
|
5707
|
-
* @returns {
|
|
5708
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
5708
5709
|
*/
|
|
5709
5710
|
renderLayoutSnowflake() {
|
|
5710
5711
|
const helpTextClasses = {
|
|
@@ -5721,7 +5722,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5721
5722
|
/**
|
|
5722
5723
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
5723
5724
|
* @private
|
|
5724
|
-
* @returns {
|
|
5725
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
5725
5726
|
*/
|
|
5726
5727
|
renderLayoutEmphasized() {
|
|
5727
5728
|
const helpTextClasses = {
|
|
@@ -5739,7 +5740,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5739
5740
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
5740
5741
|
* @private
|
|
5741
5742
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
5742
|
-
* @returns {
|
|
5743
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
5743
5744
|
*/
|
|
5744
5745
|
renderLayout(ForcedLayout) {
|
|
5745
5746
|
const layout = ForcedLayout || this.layout;
|