@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
|
@@ -225,7 +225,7 @@ class AuroRadio extends LitElement {
|
|
|
225
225
|
},
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
|
-
* ID
|
|
228
|
+
* Holds the ID of the inner `<input>` element, which its `<label>` points to.
|
|
229
229
|
* @private
|
|
230
230
|
*/
|
|
231
231
|
inputId: {
|
|
@@ -271,7 +271,7 @@ class AuroRadio extends LitElement {
|
|
|
271
271
|
},
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
|
-
* Kept out of the API docs, because changing it can easily break accessibility.
|
|
274
|
+
* Sets the host's ARIA role, `radio`. Kept out of the API docs, because changing it can easily break accessibility.
|
|
275
275
|
* @private
|
|
276
276
|
*/
|
|
277
277
|
role: {
|
|
@@ -280,7 +280,7 @@ class AuroRadio extends LitElement {
|
|
|
280
280
|
},
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
|
-
*
|
|
283
|
+
* Records whether someone has interacted with the radio button.
|
|
284
284
|
* @private
|
|
285
285
|
*/
|
|
286
286
|
touched: {
|
|
@@ -1224,7 +1224,7 @@ class AuroHelpText extends LitElement {
|
|
|
1224
1224
|
}
|
|
1225
1225
|
|
|
1226
1226
|
/**
|
|
1227
|
-
* Called when the slot
|
|
1227
|
+
* 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.
|
|
1228
1228
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
1229
1229
|
* @returns {void}
|
|
1230
1230
|
*/
|
|
@@ -1277,7 +1277,7 @@ class AuroHelpText extends LitElement {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
|
-
var formkitVersion = '
|
|
1280
|
+
var formkitVersion = '202611091610';
|
|
1281
1281
|
|
|
1282
1282
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1283
1283
|
// See LICENSE in the project root for license information.
|
|
@@ -1312,7 +1312,7 @@ var formkitVersion = '202611081756';
|
|
|
1312
1312
|
* @csspart radio-group - The `<fieldset>` element, with `role="radiogroup"`, that wraps the legend and the radio buttons.
|
|
1313
1313
|
* @csspart helpText - The help text element below the group, which shows the help text or the error message.
|
|
1314
1314
|
* @slot {HTMLSlotElement} legend - Label for the group, such as "Seat preference". Screen readers announce it as the group's name. {@requiredWhen always} {@category ui}
|
|
1315
|
-
* @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as "
|
|
1315
|
+
* @slot {HTMLSlotElement} optionalLabel - Text shown after the legend when the group isn't `required`, such as a translated "(optional)". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
|
|
1316
1316
|
* @slot {HTMLSlotElement} helpText - Help text shown below the group, such as "Choose one". While the group shows an error, the error message replaces it. {@category ui}
|
|
1317
1317
|
* @slot default - The `auro-radio` elements in the group.
|
|
1318
1318
|
* @event auroFormElement-validated - Fires each time the group runs validation, with the result in `event.detail.validity` and `event.detail.message`.
|
|
@@ -1422,7 +1422,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1422
1422
|
},
|
|
1423
1423
|
|
|
1424
1424
|
/**
|
|
1425
|
-
*
|
|
1425
|
+
* Records whether the `legend` slot has content.
|
|
1426
1426
|
* @private
|
|
1427
1427
|
*/
|
|
1428
1428
|
hasLegend: {
|
|
@@ -1473,8 +1473,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1473
1473
|
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Requires a selection in the group and hides the "(optional)" text after the legend.
|
|
1476
|
-
*
|
|
1477
|
-
* @relevantWhen !noValidate
|
|
1476
|
+
* Unless `noValidate` is set, the group shows an error when focus leaves it with nothing selected.
|
|
1478
1477
|
* @category behavior
|
|
1479
1478
|
*/
|
|
1480
1479
|
required: {
|
|
@@ -1485,7 +1484,6 @@ class AuroRadioGroup extends LitElement {
|
|
|
1485
1484
|
/**
|
|
1486
1485
|
* Sets one error message for every kind of error, such as "Choose an option".
|
|
1487
1486
|
* It replaces the `error` text and the `setCustomValidityValueMissing` and `setCustomValidityCustomError` messages.
|
|
1488
|
-
* @relevantWhen !noValidate
|
|
1489
1487
|
* @category behavior
|
|
1490
1488
|
*/
|
|
1491
1489
|
setCustomValidity: {
|
|
@@ -1496,7 +1494,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1496
1494
|
/**
|
|
1497
1495
|
* Sets the error message shown while the `error` attribute is set, in place of the attribute's own text.
|
|
1498
1496
|
* `setCustomValidity` takes priority when both are set.
|
|
1499
|
-
* @relevantWhen
|
|
1497
|
+
* @relevantWhen error
|
|
1500
1498
|
* @category behavior
|
|
1501
1499
|
*/
|
|
1502
1500
|
setCustomValidityCustomError: {
|
|
@@ -1507,7 +1505,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1507
1505
|
/**
|
|
1508
1506
|
* Sets the error message shown when the group is `required` and nothing is selected, such as "Select an option".
|
|
1509
1507
|
* The group has no default message, so set this or `setCustomValidity` to show one. `setCustomValidity` takes priority when both are set.
|
|
1510
|
-
* @relevantWhen
|
|
1508
|
+
* @relevantWhen required
|
|
1511
1509
|
* @category behavior
|
|
1512
1510
|
*/
|
|
1513
1511
|
setCustomValidityValueMissing: {
|
|
@@ -1516,7 +1514,7 @@ class AuroRadioGroup extends LitElement {
|
|
|
1516
1514
|
},
|
|
1517
1515
|
|
|
1518
1516
|
/**
|
|
1519
|
-
*
|
|
1517
|
+
* Records whether someone has interacted with the group.
|
|
1520
1518
|
* @private
|
|
1521
1519
|
*/
|
|
1522
1520
|
touched: {
|
|
@@ -43,7 +43,7 @@ A form control that lets people choose one option, or several, from a list, such
|
|
|
43
43
|
| shape | shape | | `classic` \| `pill` \| `pill-left` \| `pill-right` \| `snowflake` | `classic` | ui | | Sets the shape of the trigger. Use `classic` with the classic layout, `pill`, `pill-left`, or `pill-right` with the emphasized layout, and `snowflake` with the snowflake layout. |
|
|
44
44
|
| shift | shift | | boolean | `false` | ui | `layout === 'emphasized'` | Slides the bib along the trigger's edge to keep it on screen when it would otherwise be cut off.<br>Applies only when `layout="emphasized"`. |
|
|
45
45
|
| size | size | | `lg` \| `xl` | `lg` | ui | | Sets the height of the trigger. Use `xl` only with the emphasized layout, and `lg` with the other layouts. |
|
|
46
|
-
| autoPlacement | autoplacement | | boolean | `false` | ui | | Deprecated: Use `placement` instead.<br>The bib already flips to the opposite side when it doesn't fit, unless `noFlip` is set.
|
|
46
|
+
| autoPlacement | autoplacement | | boolean | `false` | 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. |
|
|
47
47
|
| onDark | ondark | | boolean | | ui | | Deprecated: Use `appearance="inverse"` instead.<br>Sets the colors for a dark background. |
|
|
48
48
|
| autocomplete | autocomplete | | string | | behavior | `layout !== 'emphasized'` | Sets the autofill hint for the hidden native select, such as `country-name` (the native `autocomplete` attribute).<br>Doesn't currently apply when `layout="emphasized"`, which has no hidden native select. |
|
|
49
49
|
| error | error | | string | | behavior | | Forces the select into the `customError` state and shows this text as the error message, such as `Choose another option`.<br>When `setCustomValidityCustomError` or `setCustomValidity` is set, that message replaces this text.<br>Remove the attribute to clear the error and validate normally. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<auro-header level="1">CSS only with native select</auro-header>
|
|
2
2
|
<p>For situations where the <code><auro-select></code> web component can't be used, a native HTML <code><select></code> element with <code><option></code> children can be styled with the Auro Design System tokens to approximate the visual appearance of <code>auro-select</code>. Unlike <auro-hyperlink href="https://auro.alaskaair.com/components/auro/hyperlink/css-only" target="_blank">auro-hyperlink</auro-hyperlink>, <auro-hyperlink href="https://alaskaairlines.github.io/WebCoreStyleSheets/" target="_blank">Web Core Style Sheets</auro-hyperlink> doesn't provide a prebuilt <code>.select</code> class, so the styling must be authored manually using Auro design tokens.</p>
|
|
3
3
|
<auro-header level="2">Styling a native select</auro-header>
|
|
4
|
-
<p>
|
|
4
|
+
<p>Reset and restyle the native select with the Auro design tokens published by <auro-hyperlink href="https://github.com/AlaskaAirlines/AuroDesignTokens" target="_blank">@aurodesignsystem/design-tokens</auro-hyperlink>. Only the closed chrome of <code><select></code> can be styled. The dropdown panel that opens when the user activates the control is browser-controlled and largely can't be styled. The pattern below replicates the border, padding, caret, and focus-state colors used by <code>auro-select</code> in its collapsed state.</p>
|
|
5
5
|
<pre><code>/* Color tokens */
|
|
6
6
|
@import "./node_modules/@aurodesignsystem/design-tokens/dist/themes/alaska/CSSCustomProperties--alaska.css";
|
|
7
7
|
/* Size, border-radius, and typography tokens */
|
|
@@ -788,7 +788,7 @@
|
|
|
788
788
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/typeahead.md) -->
|
|
789
789
|
<!-- The below content is automatically added from ./../docs/partials/customize/typeahead.md -->
|
|
790
790
|
<p>Type-ahead lets a guest jump to an option by typing. As people type, the active option moves to the first option whose <strong>displayed text</strong> starts with the typed characters. This follows the <auro-hyperlink href="https://www.w3.org/WAI/ARIA/apg/patterns/listbox/">WAI-ARIA Listbox pattern</auro-hyperlink> and mirrors native HTML <code><select></code> behavior. Matching uses the shown text, not the <code>value</code> attribute.</p>
|
|
791
|
-
<p>The <code>typeaheadTimeoutMs</code> attribute (default <code>500</code>) sets how long typed characters keep adding to the search between keystrokes. Repeating the same character cycles through
|
|
791
|
+
<p>The <code>typeaheadTimeoutMs</code> attribute (default <code>500</code>) sets how long typed characters keep adding to the search between keystrokes. Repeating the same character cycles through the options that start with it. When an option starts with the repeated characters themselves, such as "Aachen" for <kbd>a</kbd>, <kbd>a</kbd>, type-ahead moves to that option instead. Type-ahead skips <code>disabled</code>, <code>hidden</code>, and <code>static</code> options.</p>
|
|
792
792
|
<div class="note">
|
|
793
793
|
<strong>Note:</strong> The <kbd>Space</kbd> key depends on context. When no type-ahead search is in progress, it opens or closes the bib, as elsewhere in <code><auro-select></code>. While a type-ahead search is in progress, it adds a space to the search instead, so multi-word options such as "San Francisco" can be matched by typing <kbd>s</kbd>, <kbd>a</kbd>, <kbd>n</kbd>, <kbd>Space</kbd>, <kbd>f</kbd>.
|
|
794
794
|
</div>
|
|
@@ -5132,7 +5132,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
5132
5132
|
}
|
|
5133
5133
|
|
|
5134
5134
|
/**
|
|
5135
|
-
* Called when the slot
|
|
5135
|
+
* 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.
|
|
5136
5136
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
5137
5137
|
* @returns {void}
|
|
5138
5138
|
*/
|
|
@@ -5185,7 +5185,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
5185
5185
|
}
|
|
5186
5186
|
};
|
|
5187
5187
|
|
|
5188
|
-
var formkitVersion$1 = '
|
|
5188
|
+
var formkitVersion$1 = '202611091610';
|
|
5189
5189
|
|
|
5190
5190
|
/**
|
|
5191
5191
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -5351,8 +5351,8 @@ class AuroElement extends i$2 {
|
|
|
5351
5351
|
* @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
|
|
5352
5352
|
* @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.
|
|
5353
5353
|
* @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.
|
|
5354
|
-
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
|
|
5355
|
-
* @event auroDropdown-toggled - Notifies that the bib opened or closed.
|
|
5354
|
+
* @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.
|
|
5355
|
+
* @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`.
|
|
5356
5356
|
* @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`.
|
|
5357
5357
|
*/
|
|
5358
5358
|
class AuroDropdown extends AuroElement {
|
|
@@ -5681,6 +5681,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5681
5681
|
/**
|
|
5682
5682
|
* Removes the trigger's border, background, and shadow.
|
|
5683
5683
|
* Applies only when `shape` and `size` are both set.
|
|
5684
|
+
* @relevantWhen shape !== undefined
|
|
5684
5685
|
* @category ui
|
|
5685
5686
|
*/
|
|
5686
5687
|
simple: {
|
|
@@ -5973,6 +5974,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5973
5974
|
/**
|
|
5974
5975
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
5975
5976
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
5977
|
+
* @default 0
|
|
5976
5978
|
* @category a11y
|
|
5977
5979
|
*/
|
|
5978
5980
|
tabIndex: {
|
|
@@ -6664,7 +6666,6 @@ class AuroDropdown extends AuroElement {
|
|
|
6664
6666
|
*
|
|
6665
6667
|
* @private
|
|
6666
6668
|
* @method handleDefaultSlot
|
|
6667
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
6668
6669
|
*/
|
|
6669
6670
|
handleDefaultSlot() {
|
|
6670
6671
|
|
|
@@ -6677,7 +6678,7 @@ class AuroDropdown extends AuroElement {
|
|
|
6677
6678
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
6678
6679
|
* @private
|
|
6679
6680
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
6680
|
-
* @returns {
|
|
6681
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
6681
6682
|
*/
|
|
6682
6683
|
renderBasicHtml(helpTextClasses) {
|
|
6683
6684
|
return u$4`
|
|
@@ -6739,7 +6740,7 @@ class AuroDropdown extends AuroElement {
|
|
|
6739
6740
|
/**
|
|
6740
6741
|
* Renders the classic layout.
|
|
6741
6742
|
* @private
|
|
6742
|
-
* @returns {
|
|
6743
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
6743
6744
|
*/
|
|
6744
6745
|
renderLayoutClassic() {
|
|
6745
6746
|
// TODO: check with Doug why this was never used?
|
|
@@ -6755,7 +6756,7 @@ class AuroDropdown extends AuroElement {
|
|
|
6755
6756
|
/**
|
|
6756
6757
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
6757
6758
|
* @private
|
|
6758
|
-
* @returns {
|
|
6759
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
6759
6760
|
*/
|
|
6760
6761
|
renderLayoutSnowflake() {
|
|
6761
6762
|
const helpTextClasses = {
|
|
@@ -6772,7 +6773,7 @@ class AuroDropdown extends AuroElement {
|
|
|
6772
6773
|
/**
|
|
6773
6774
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
6774
6775
|
* @private
|
|
6775
|
-
* @returns {
|
|
6776
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
6776
6777
|
*/
|
|
6777
6778
|
renderLayoutEmphasized() {
|
|
6778
6779
|
const helpTextClasses = {
|
|
@@ -6790,7 +6791,7 @@ class AuroDropdown extends AuroElement {
|
|
|
6790
6791
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
6791
6792
|
* @private
|
|
6792
6793
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
6793
|
-
* @returns {
|
|
6794
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
6794
6795
|
*/
|
|
6795
6796
|
renderLayout(ForcedLayout) {
|
|
6796
6797
|
const layout = ForcedLayout || this.layout;
|
|
@@ -7175,7 +7176,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
7175
7176
|
}
|
|
7176
7177
|
|
|
7177
7178
|
/**
|
|
7178
|
-
* Called
|
|
7179
|
+
* Called when a `touchmove` event reaches the element. Stops the page behind the bib from scrolling when the touch is on the bibtemplate's own layout, such as its padding, instead of on slotted content.
|
|
7179
7180
|
* @param {Event} event - The `touchmove` event.
|
|
7180
7181
|
* @returns {void}
|
|
7181
7182
|
*/
|
|
@@ -7472,7 +7473,7 @@ class AuroHelpText extends i$2 {
|
|
|
7472
7473
|
}
|
|
7473
7474
|
|
|
7474
7475
|
/**
|
|
7475
|
-
* Called when the slot
|
|
7476
|
+
* 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.
|
|
7476
7477
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
7477
7478
|
* @returns {void}
|
|
7478
7479
|
*/
|
|
@@ -7525,7 +7526,7 @@ class AuroHelpText extends i$2 {
|
|
|
7525
7526
|
}
|
|
7526
7527
|
}
|
|
7527
7528
|
|
|
7528
|
-
var formkitVersion = '
|
|
7529
|
+
var formkitVersion = '202611091610';
|
|
7529
7530
|
|
|
7530
7531
|
var styleCss$2 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-variant-ligatures:none;font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-variant-ligatures:none;font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-font-size, 0.875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-sm-emphasized-font-size, 0.875rem);font-variant-ligatures:none;font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-font-size, 0.75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-xs-emphasized-font-size, 0.75rem);font-variant-ligatures:none;font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.body-2xs,.body-2xs-emphasized{letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-emphasized-font-size, 0.625rem);font-variant-ligatures:none;font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-variant-ligatures:none;font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-variant-ligatures:none;font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-variant-ligatures:none;font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-variant-ligatures:none;font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-variant-ligatures:none;font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer{max-width:100%}#dropdownLabel,.value,#placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#dropdownLabel{display:block}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7531
7532
|
|
|
@@ -7703,6 +7704,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7703
7704
|
|
|
7704
7705
|
/**
|
|
7705
7706
|
* Deprecated: Use `placement` instead.
|
|
7707
|
+
* Moves the bib to whichever side of the trigger has the most space.
|
|
7706
7708
|
* The bib already flips to the opposite side when it doesn't fit, unless `noFlip` is set.
|
|
7707
7709
|
* @deprecated Use `placement` instead.
|
|
7708
7710
|
* @category ui
|
|
@@ -8032,7 +8034,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
8032
8034
|
},
|
|
8033
8035
|
|
|
8034
8036
|
/**
|
|
8035
|
-
*
|
|
8037
|
+
* Records whether focus has moved into the select since it was created or last reset.
|
|
8036
8038
|
* @private
|
|
8037
8039
|
*/
|
|
8038
8040
|
touched: {
|
|
@@ -8320,7 +8322,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
8320
8322
|
}
|
|
8321
8323
|
|
|
8322
8324
|
/**
|
|
8323
|
-
* Updates the
|
|
8325
|
+
* Updates the value and `displayValue` content shown in the trigger to match `optionSelected`.
|
|
8324
8326
|
* @private
|
|
8325
8327
|
* @returns {void}
|
|
8326
8328
|
*/
|
|
@@ -8405,7 +8407,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
8405
8407
|
}
|
|
8406
8408
|
|
|
8407
8409
|
/**
|
|
8408
|
-
* Sets aria-setsize and aria-posinset on each menu option so screen readers
|
|
8410
|
+
* Sets `aria-setsize` and `aria-posinset` on each menu option so screen readers
|
|
8409
8411
|
* can announce position even when the listbox context is broken by
|
|
8410
8412
|
* shadow DOM boundaries.
|
|
8411
8413
|
* @private
|
|
@@ -9651,7 +9653,7 @@ let menuInstanceIdCounter = 0;
|
|
|
9651
9653
|
*
|
|
9652
9654
|
* @event {CustomEvent<Element>} auroMenu-activatedOption - Fires when an option becomes the active (highlighted) option, through the arrow keys, hover, or `updateActiveOption()`. The option is in `detail`.
|
|
9653
9655
|
* @event {CustomEvent<any>} auroMenu-customEventFired - Fires right after the menu fires the event named in an option's `event` attribute. The option is in `detail.option`.
|
|
9654
|
-
* @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Fires when `loading` changes.
|
|
9656
|
+
* @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Fires when `loading` changes, and once when the menu first renders.
|
|
9655
9657
|
* @event {CustomEvent<{ options: Array<HTMLElement> }>} auroMenu-optionsChange - Fires when the set of options in the menu changes.
|
|
9656
9658
|
* @event {CustomEvent<any>} auroMenu-selectValueFailure - Fires when a value doesn't match any option that can be selected, or when someone chooses an option with no `value` in multi-select mode.
|
|
9657
9659
|
* @event {CustomEvent<any>} auroMenu-selectValueReset - Fires when `reset()` clears the menu.
|
|
@@ -9796,7 +9798,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
9796
9798
|
},
|
|
9797
9799
|
|
|
9798
9800
|
/**
|
|
9799
|
-
*
|
|
9801
|
+
* Holds how deeply a nested menu is indented, which sets how many spacers its options get.
|
|
9800
9802
|
* @private
|
|
9801
9803
|
*/
|
|
9802
9804
|
level: {
|
|
@@ -9968,8 +9970,8 @@ class AuroMenu extends AuroElement$1 {
|
|
|
9968
9970
|
}
|
|
9969
9971
|
|
|
9970
9972
|
/**
|
|
9971
|
-
*
|
|
9972
|
-
*
|
|
9973
|
+
* Gets `value` in the shape the menu works with: the string itself, or, in multi-select mode,
|
|
9974
|
+
* an array of values parsed from the JSON array string.
|
|
9973
9975
|
* @private
|
|
9974
9976
|
* @returns {String|Array<String>}
|
|
9975
9977
|
*/
|
|
@@ -10779,7 +10781,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
10779
10781
|
}
|
|
10780
10782
|
|
|
10781
10783
|
/**
|
|
10782
|
-
*
|
|
10784
|
+
* Called when a key is pressed in the menu. The arrow keys move the active option, and Enter and Tab select it.
|
|
10783
10785
|
* @private
|
|
10784
10786
|
* @param {KeyboardEvent} event - The keydown event.
|
|
10785
10787
|
*/
|
|
@@ -10805,7 +10807,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
10805
10807
|
}
|
|
10806
10808
|
|
|
10807
10809
|
/**
|
|
10808
|
-
*
|
|
10810
|
+
* Called when an option fires `auroMenuOption-click`. Selects the clicked option, unless the menu is disabled or nested in another menu.
|
|
10809
10811
|
* @private
|
|
10810
10812
|
* @param {CustomEvent} event - The auroMenuOption-click event.
|
|
10811
10813
|
*/
|
|
@@ -10825,7 +10827,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
10825
10827
|
}
|
|
10826
10828
|
|
|
10827
10829
|
/**
|
|
10828
|
-
*
|
|
10830
|
+
* Called when the pointer moves over an option. Makes it the active option, unless it can't be highlighted.
|
|
10829
10831
|
* @private
|
|
10830
10832
|
* @param {CustomEvent} event - The `auroMenuOption-mouseover` event.
|
|
10831
10833
|
*/
|
|
@@ -10849,7 +10851,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
10849
10851
|
}
|
|
10850
10852
|
|
|
10851
10853
|
/**
|
|
10852
|
-
*
|
|
10854
|
+
* Called when the menu's content changes. Sets the menu up again, and re-applies a `value` that was set before the options arrived.
|
|
10853
10855
|
* @private
|
|
10854
10856
|
*/
|
|
10855
10857
|
handleSlotChange() {
|
|
@@ -10945,7 +10947,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
10945
10947
|
}
|
|
10946
10948
|
|
|
10947
10949
|
/**
|
|
10948
|
-
*
|
|
10950
|
+
* Fires the event named in the option's `event` attribute, then `auroMenu-customEventFired`, with the option in `detail.option`.
|
|
10949
10951
|
* @private
|
|
10950
10952
|
* @param {HTMLElement} option - Option with custom event.
|
|
10951
10953
|
*/
|
|
@@ -10965,6 +10967,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
10965
10967
|
}
|
|
10966
10968
|
|
|
10967
10969
|
/**
|
|
10970
|
+
* Checks whether two selections hold the same options, in any order.
|
|
10968
10971
|
* @private
|
|
10969
10972
|
* @param {any} current - The current selection.
|
|
10970
10973
|
* @param {any} next - The new selection to compare.
|
|
@@ -11394,7 +11397,7 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
11394
11397
|
}
|
|
11395
11398
|
|
|
11396
11399
|
/**
|
|
11397
|
-
*
|
|
11400
|
+
* Called when the option is clicked. Fires `auroMenuOption-click`, unless the option or a menu containing it is disabled.
|
|
11398
11401
|
* @private
|
|
11399
11402
|
*/
|
|
11400
11403
|
handleClick() {
|