@aurodesignsystem-dev/auro-formkit 0.0.0-pr794.2 → 0.0.0-pr794.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/combobox/demo/api.min.js +26 -71
- package/components/combobox/demo/index.min.js +26 -71
- package/components/combobox/dist/index.js +19 -69
- package/components/combobox/dist/registered.js +19 -69
- package/components/counter/demo/api.min.js +20 -70
- package/components/counter/demo/index.min.js +20 -70
- package/components/counter/dist/index.js +19 -69
- package/components/counter/dist/registered.js +19 -69
- package/components/datepicker/demo/api.min.js +90 -106
- package/components/datepicker/demo/index.min.js +90 -106
- package/components/datepicker/dist/auro-datepicker.d.ts +14 -1
- package/components/datepicker/dist/index.js +89 -105
- package/components/datepicker/dist/registered.js +89 -105
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +20 -70
- package/components/dropdown/demo/index.min.js +20 -70
- package/components/dropdown/dist/auro-dropdown.d.ts +2 -7
- package/components/dropdown/dist/index.js +19 -69
- package/components/dropdown/dist/registered.js +19 -69
- package/components/dropdown/dist/styles/style-css.d.ts +2 -0
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/menu/demo/api.md +12 -13
- package/components/menu/demo/api.min.js +7 -2
- package/components/menu/demo/index.min.js +7 -2
- package/components/menu/dist/auro-menu.d.ts +6 -1
- package/components/menu/dist/index.js +6 -1
- package/components/menu/dist/registered.js +6 -1
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/select/demo/api.min.js +26 -71
- package/components/select/demo/index.min.js +26 -71
- package/components/select/dist/index.js +19 -69
- package/components/select/dist/registered.js +19 -69
- package/package.json +3 -3
|
@@ -2724,6 +2724,7 @@ class AuroFloatingUI {
|
|
|
2724
2724
|
this.element.bib.style.left = "0px";
|
|
2725
2725
|
this.element.bib.style.width = '';
|
|
2726
2726
|
this.element.bib.style.height = '';
|
|
2727
|
+
this.element.style.contain = '';
|
|
2727
2728
|
|
|
2728
2729
|
// reset the size that was mirroring `size` css-part
|
|
2729
2730
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
@@ -2748,6 +2749,7 @@ class AuroFloatingUI {
|
|
|
2748
2749
|
this.element.bib.style.position = '';
|
|
2749
2750
|
this.element.bib.removeAttribute('isfullscreen');
|
|
2750
2751
|
this.element.isBibFullscreen = false;
|
|
2752
|
+
this.element.style.contain = 'layout';
|
|
2751
2753
|
}
|
|
2752
2754
|
|
|
2753
2755
|
const isChanged = this.strategy && this.strategy !== value;
|
|
@@ -3513,7 +3515,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
3513
3515
|
return _fetchMap$2.get(uri);
|
|
3514
3516
|
};
|
|
3515
3517
|
|
|
3516
|
-
var styleCss$
|
|
3518
|
+
var styleCss$3$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
3517
3519
|
|
|
3518
3520
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3519
3521
|
// See LICENSE in the project root for license information.
|
|
@@ -3556,7 +3558,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$2 {
|
|
|
3556
3558
|
|
|
3557
3559
|
static get styles() {
|
|
3558
3560
|
return css`
|
|
3559
|
-
${styleCss$
|
|
3561
|
+
${styleCss$3$2}
|
|
3560
3562
|
`;
|
|
3561
3563
|
}
|
|
3562
3564
|
|
|
@@ -3758,7 +3760,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
3758
3760
|
return [
|
|
3759
3761
|
super.styles,
|
|
3760
3762
|
css`${tokensCss$2$2}`,
|
|
3761
|
-
css`${styleCss$
|
|
3763
|
+
css`${styleCss$3$2}`,
|
|
3762
3764
|
css`${colorCss$3$2}`
|
|
3763
3765
|
];
|
|
3764
3766
|
}
|
|
@@ -3844,7 +3846,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
3844
3846
|
|
|
3845
3847
|
var iconVersion$2 = '6.1.2';
|
|
3846
3848
|
|
|
3847
|
-
var styleCss$
|
|
3849
|
+
var styleCss$2$2 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
|
|
3848
3850
|
|
|
3849
3851
|
var colorCss$2$2 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
3850
3852
|
|
|
@@ -3886,7 +3888,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
3886
3888
|
|
|
3887
3889
|
static get styles() {
|
|
3888
3890
|
return [
|
|
3889
|
-
styleCss$
|
|
3891
|
+
styleCss$2$2,
|
|
3890
3892
|
colorCss$2$2,
|
|
3891
3893
|
tokensCss$1$2
|
|
3892
3894
|
];
|
|
@@ -4047,13 +4049,15 @@ var shapeSizeCss$1 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-class
|
|
|
4047
4049
|
|
|
4048
4050
|
var colorCss$1$2 = css`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
4049
4051
|
|
|
4052
|
+
var styleCss$1$3 = css`:host{display:block;position:relative}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
4053
|
+
|
|
4050
4054
|
var classicColorCss$1 = css``;
|
|
4051
4055
|
|
|
4052
|
-
var classicLayoutCss = css`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}
|
|
4056
|
+
var classicLayoutCss = css`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}`;
|
|
4053
4057
|
|
|
4054
|
-
var styleEmphasizedCss$1 = css
|
|
4058
|
+
var styleEmphasizedCss$1 = css`.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
4055
4059
|
|
|
4056
|
-
var styleSnowflakeCss$1 = css`:host
|
|
4060
|
+
var styleSnowflakeCss$1 = css`:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
4057
4061
|
|
|
4058
4062
|
var colorCss$6 = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
4059
4063
|
|
|
@@ -4360,6 +4364,7 @@ let AuroElement$4 = class AuroElement extends LitElement {
|
|
|
4360
4364
|
// See LICENSE in the project root for license information.
|
|
4361
4365
|
|
|
4362
4366
|
|
|
4367
|
+
|
|
4363
4368
|
/*
|
|
4364
4369
|
* @slot - Default slot for the popover content.
|
|
4365
4370
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -4626,7 +4631,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4626
4631
|
* If true, the dropdown bib is displayed.
|
|
4627
4632
|
*/
|
|
4628
4633
|
isPopoverVisible: {
|
|
4629
|
-
type: Boolean
|
|
4634
|
+
type: Boolean,
|
|
4635
|
+
reflect: true,
|
|
4636
|
+
attribute: 'open'
|
|
4630
4637
|
},
|
|
4631
4638
|
|
|
4632
4639
|
/**
|
|
@@ -4762,6 +4769,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4762
4769
|
|
|
4763
4770
|
static get styles() {
|
|
4764
4771
|
return [
|
|
4772
|
+
styleCss$1$3,
|
|
4765
4773
|
tokensCss$1$2,
|
|
4766
4774
|
colorCss$1$2,
|
|
4767
4775
|
|
|
@@ -4942,64 +4950,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4942
4950
|
this.hasFocus = false;
|
|
4943
4951
|
}
|
|
4944
4952
|
|
|
4945
|
-
/**
|
|
4946
|
-
* Determines if the element or any children are focusable.
|
|
4947
|
-
* @private
|
|
4948
|
-
* @param {HTMLElement} element - Element to check.
|
|
4949
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
4950
|
-
*/
|
|
4951
|
-
containsFocusableElement(element) {
|
|
4952
|
-
this.showTriggerBorders = true;
|
|
4953
|
-
|
|
4954
|
-
const nodes = [
|
|
4955
|
-
element,
|
|
4956
|
-
...element.children
|
|
4957
|
-
];
|
|
4958
|
-
|
|
4959
|
-
const focusableElements = [
|
|
4960
|
-
'a',
|
|
4961
|
-
'auro-hyperlink',
|
|
4962
|
-
'button',
|
|
4963
|
-
'auro-button',
|
|
4964
|
-
'input',
|
|
4965
|
-
'auro-input',
|
|
4966
|
-
];
|
|
4967
|
-
|
|
4968
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
4969
|
-
|
|
4970
|
-
const result = nodes.some((node) => {
|
|
4971
|
-
const tagName = node.tagName.toLowerCase();
|
|
4972
|
-
|
|
4973
|
-
if (node.tabIndex > -1) {
|
|
4974
|
-
return true;
|
|
4975
|
-
}
|
|
4976
|
-
|
|
4977
|
-
if (focusableElements.includes(tagName)) {
|
|
4978
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
4979
|
-
return true;
|
|
4980
|
-
}
|
|
4981
|
-
if (!node.hasAttribute('disabled')) {
|
|
4982
|
-
return true;
|
|
4983
|
-
}
|
|
4984
|
-
}
|
|
4985
|
-
|
|
4986
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
4987
|
-
return true;
|
|
4988
|
-
}
|
|
4989
|
-
|
|
4990
|
-
return false;
|
|
4991
|
-
});
|
|
4992
|
-
|
|
4993
|
-
if (result) {
|
|
4994
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
4995
|
-
const tagName = node.tagName.toLowerCase();
|
|
4996
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
4997
|
-
});
|
|
4998
|
-
}
|
|
4999
|
-
|
|
5000
|
-
return result;
|
|
5001
|
-
}
|
|
5002
|
-
|
|
5003
4953
|
/**
|
|
5004
4954
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
5005
4955
|
* @private
|
|
@@ -5111,7 +5061,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
5111
5061
|
if (triggerContentNodes) {
|
|
5112
5062
|
|
|
5113
5063
|
// See if any of them are focusable elements
|
|
5114
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
5064
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
5115
5065
|
|
|
5116
5066
|
// If any of them are focusable elements
|
|
5117
5067
|
if (this.triggerContentFocusable) {
|
|
@@ -5183,7 +5133,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
5183
5133
|
<div
|
|
5184
5134
|
id="trigger"
|
|
5185
5135
|
class="${classMap(this.commonWrapperClasses)}" part="wrapper"
|
|
5186
|
-
tabindex="${this.tabIndex}"
|
|
5136
|
+
tabindex="${ifDefined(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
5187
5137
|
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
5188
5138
|
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
5189
5139
|
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -2724,6 +2724,7 @@ class AuroFloatingUI {
|
|
|
2724
2724
|
this.element.bib.style.left = "0px";
|
|
2725
2725
|
this.element.bib.style.width = '';
|
|
2726
2726
|
this.element.bib.style.height = '';
|
|
2727
|
+
this.element.style.contain = '';
|
|
2727
2728
|
|
|
2728
2729
|
// reset the size that was mirroring `size` css-part
|
|
2729
2730
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
@@ -2748,6 +2749,7 @@ class AuroFloatingUI {
|
|
|
2748
2749
|
this.element.bib.style.position = '';
|
|
2749
2750
|
this.element.bib.removeAttribute('isfullscreen');
|
|
2750
2751
|
this.element.isBibFullscreen = false;
|
|
2752
|
+
this.element.style.contain = 'layout';
|
|
2751
2753
|
}
|
|
2752
2754
|
|
|
2753
2755
|
const isChanged = this.strategy && this.strategy !== value;
|
|
@@ -3513,7 +3515,7 @@ const cacheFetch$2 = (uri, options = {}) => {
|
|
|
3513
3515
|
return _fetchMap$2.get(uri);
|
|
3514
3516
|
};
|
|
3515
3517
|
|
|
3516
|
-
var styleCss$
|
|
3518
|
+
var styleCss$3$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
3517
3519
|
|
|
3518
3520
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3519
3521
|
// See LICENSE in the project root for license information.
|
|
@@ -3556,7 +3558,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$2 {
|
|
|
3556
3558
|
|
|
3557
3559
|
static get styles() {
|
|
3558
3560
|
return css`
|
|
3559
|
-
${styleCss$
|
|
3561
|
+
${styleCss$3$2}
|
|
3560
3562
|
`;
|
|
3561
3563
|
}
|
|
3562
3564
|
|
|
@@ -3758,7 +3760,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
3758
3760
|
return [
|
|
3759
3761
|
super.styles,
|
|
3760
3762
|
css`${tokensCss$2$2}`,
|
|
3761
|
-
css`${styleCss$
|
|
3763
|
+
css`${styleCss$3$2}`,
|
|
3762
3764
|
css`${colorCss$3$2}`
|
|
3763
3765
|
];
|
|
3764
3766
|
}
|
|
@@ -3844,7 +3846,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
3844
3846
|
|
|
3845
3847
|
var iconVersion$2 = '6.1.2';
|
|
3846
3848
|
|
|
3847
|
-
var styleCss$
|
|
3849
|
+
var styleCss$2$2 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
|
|
3848
3850
|
|
|
3849
3851
|
var colorCss$2$2 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
3850
3852
|
|
|
@@ -3886,7 +3888,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
3886
3888
|
|
|
3887
3889
|
static get styles() {
|
|
3888
3890
|
return [
|
|
3889
|
-
styleCss$
|
|
3891
|
+
styleCss$2$2,
|
|
3890
3892
|
colorCss$2$2,
|
|
3891
3893
|
tokensCss$1$2
|
|
3892
3894
|
];
|
|
@@ -4047,13 +4049,15 @@ var shapeSizeCss$1 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-class
|
|
|
4047
4049
|
|
|
4048
4050
|
var colorCss$1$2 = css`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
4049
4051
|
|
|
4052
|
+
var styleCss$1$3 = css`:host{display:block;position:relative}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
4053
|
+
|
|
4050
4054
|
var classicColorCss$1 = css``;
|
|
4051
4055
|
|
|
4052
|
-
var classicLayoutCss = css`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}
|
|
4056
|
+
var classicLayoutCss = css`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}`;
|
|
4053
4057
|
|
|
4054
|
-
var styleEmphasizedCss$1 = css
|
|
4058
|
+
var styleEmphasizedCss$1 = css`.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
4055
4059
|
|
|
4056
|
-
var styleSnowflakeCss$1 = css`:host
|
|
4060
|
+
var styleSnowflakeCss$1 = css`:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
4057
4061
|
|
|
4058
4062
|
var colorCss$6 = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
4059
4063
|
|
|
@@ -4360,6 +4364,7 @@ let AuroElement$4 = class AuroElement extends LitElement {
|
|
|
4360
4364
|
// See LICENSE in the project root for license information.
|
|
4361
4365
|
|
|
4362
4366
|
|
|
4367
|
+
|
|
4363
4368
|
/*
|
|
4364
4369
|
* @slot - Default slot for the popover content.
|
|
4365
4370
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -4626,7 +4631,9 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4626
4631
|
* If true, the dropdown bib is displayed.
|
|
4627
4632
|
*/
|
|
4628
4633
|
isPopoverVisible: {
|
|
4629
|
-
type: Boolean
|
|
4634
|
+
type: Boolean,
|
|
4635
|
+
reflect: true,
|
|
4636
|
+
attribute: 'open'
|
|
4630
4637
|
},
|
|
4631
4638
|
|
|
4632
4639
|
/**
|
|
@@ -4762,6 +4769,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4762
4769
|
|
|
4763
4770
|
static get styles() {
|
|
4764
4771
|
return [
|
|
4772
|
+
styleCss$1$3,
|
|
4765
4773
|
tokensCss$1$2,
|
|
4766
4774
|
colorCss$1$2,
|
|
4767
4775
|
|
|
@@ -4942,64 +4950,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
4942
4950
|
this.hasFocus = false;
|
|
4943
4951
|
}
|
|
4944
4952
|
|
|
4945
|
-
/**
|
|
4946
|
-
* Determines if the element or any children are focusable.
|
|
4947
|
-
* @private
|
|
4948
|
-
* @param {HTMLElement} element - Element to check.
|
|
4949
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
4950
|
-
*/
|
|
4951
|
-
containsFocusableElement(element) {
|
|
4952
|
-
this.showTriggerBorders = true;
|
|
4953
|
-
|
|
4954
|
-
const nodes = [
|
|
4955
|
-
element,
|
|
4956
|
-
...element.children
|
|
4957
|
-
];
|
|
4958
|
-
|
|
4959
|
-
const focusableElements = [
|
|
4960
|
-
'a',
|
|
4961
|
-
'auro-hyperlink',
|
|
4962
|
-
'button',
|
|
4963
|
-
'auro-button',
|
|
4964
|
-
'input',
|
|
4965
|
-
'auro-input',
|
|
4966
|
-
];
|
|
4967
|
-
|
|
4968
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
4969
|
-
|
|
4970
|
-
const result = nodes.some((node) => {
|
|
4971
|
-
const tagName = node.tagName.toLowerCase();
|
|
4972
|
-
|
|
4973
|
-
if (node.tabIndex > -1) {
|
|
4974
|
-
return true;
|
|
4975
|
-
}
|
|
4976
|
-
|
|
4977
|
-
if (focusableElements.includes(tagName)) {
|
|
4978
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
4979
|
-
return true;
|
|
4980
|
-
}
|
|
4981
|
-
if (!node.hasAttribute('disabled')) {
|
|
4982
|
-
return true;
|
|
4983
|
-
}
|
|
4984
|
-
}
|
|
4985
|
-
|
|
4986
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
4987
|
-
return true;
|
|
4988
|
-
}
|
|
4989
|
-
|
|
4990
|
-
return false;
|
|
4991
|
-
});
|
|
4992
|
-
|
|
4993
|
-
if (result) {
|
|
4994
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
4995
|
-
const tagName = node.tagName.toLowerCase();
|
|
4996
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
4997
|
-
});
|
|
4998
|
-
}
|
|
4999
|
-
|
|
5000
|
-
return result;
|
|
5001
|
-
}
|
|
5002
|
-
|
|
5003
4953
|
/**
|
|
5004
4954
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
5005
4955
|
* @private
|
|
@@ -5111,7 +5061,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
5111
5061
|
if (triggerContentNodes) {
|
|
5112
5062
|
|
|
5113
5063
|
// See if any of them are focusable elements
|
|
5114
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
5064
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
5115
5065
|
|
|
5116
5066
|
// If any of them are focusable elements
|
|
5117
5067
|
if (this.triggerContentFocusable) {
|
|
@@ -5183,7 +5133,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
5183
5133
|
<div
|
|
5184
5134
|
id="trigger"
|
|
5185
5135
|
class="${classMap(this.commonWrapperClasses)}" part="wrapper"
|
|
5186
|
-
tabindex="${this.tabIndex}"
|
|
5136
|
+
tabindex="${ifDefined(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
5187
5137
|
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
5188
5138
|
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
5189
5139
|
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -9,7 +9,7 @@ const t$2=globalThis,e$4=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.na
|
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$1,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),b={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1 = class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$1(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e
|
|
12
|
+
*/const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$1,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),b={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1 = class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$1(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f$1)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM();}catch(s){throw t=false,this._$EM(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}};y$1.elementStyles=[],y$1.shadowRootOptions={mode:"open"},y$1[d$1("elementProperties")]=new Map,y$1[d$1("finalized")]=new Map,p$1?.({ReactiveElement:y$1}),(a$2.reactiveElementVersions??=[]).push("2.1.1");
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
@@ -4944,6 +4944,7 @@ class AuroFloatingUI {
|
|
|
4944
4944
|
this.element.bib.style.left = "0px";
|
|
4945
4945
|
this.element.bib.style.width = '';
|
|
4946
4946
|
this.element.bib.style.height = '';
|
|
4947
|
+
this.element.style.contain = '';
|
|
4947
4948
|
|
|
4948
4949
|
// reset the size that was mirroring `size` css-part
|
|
4949
4950
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
@@ -4968,6 +4969,7 @@ class AuroFloatingUI {
|
|
|
4968
4969
|
this.element.bib.style.position = '';
|
|
4969
4970
|
this.element.bib.removeAttribute('isfullscreen');
|
|
4970
4971
|
this.element.isBibFullscreen = false;
|
|
4972
|
+
this.element.style.contain = 'layout';
|
|
4971
4973
|
}
|
|
4972
4974
|
|
|
4973
4975
|
const isChanged = this.strategy && this.strategy !== value;
|
|
@@ -5733,7 +5735,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
5733
5735
|
return _fetchMap$1.get(uri);
|
|
5734
5736
|
};
|
|
5735
5737
|
|
|
5736
|
-
var styleCss$
|
|
5738
|
+
var styleCss$3$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
5737
5739
|
|
|
5738
5740
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5739
5741
|
// See LICENSE in the project root for license information.
|
|
@@ -5776,7 +5778,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
5776
5778
|
|
|
5777
5779
|
static get styles() {
|
|
5778
5780
|
return i$5`
|
|
5779
|
-
${styleCss$
|
|
5781
|
+
${styleCss$3$1}
|
|
5780
5782
|
`;
|
|
5781
5783
|
}
|
|
5782
5784
|
|
|
@@ -5978,7 +5980,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
5978
5980
|
return [
|
|
5979
5981
|
super.styles,
|
|
5980
5982
|
i$5`${tokensCss$2$1}`,
|
|
5981
|
-
i$5`${styleCss$
|
|
5983
|
+
i$5`${styleCss$3$1}`,
|
|
5982
5984
|
i$5`${colorCss$3$1}`
|
|
5983
5985
|
];
|
|
5984
5986
|
}
|
|
@@ -6064,7 +6066,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
6064
6066
|
|
|
6065
6067
|
var iconVersion$1 = '6.1.2';
|
|
6066
6068
|
|
|
6067
|
-
var styleCss$
|
|
6069
|
+
var styleCss$2$1 = i$5`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
|
|
6068
6070
|
|
|
6069
6071
|
var colorCss$2$1 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
6070
6072
|
|
|
@@ -6106,7 +6108,7 @@ class AuroDropdownBib extends i$2 {
|
|
|
6106
6108
|
|
|
6107
6109
|
static get styles() {
|
|
6108
6110
|
return [
|
|
6109
|
-
styleCss$
|
|
6111
|
+
styleCss$2$1,
|
|
6110
6112
|
colorCss$2$1,
|
|
6111
6113
|
tokensCss$1$1
|
|
6112
6114
|
];
|
|
@@ -6267,13 +6269,15 @@ var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic
|
|
|
6267
6269
|
|
|
6268
6270
|
var colorCss$1$1 = i$5`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
6269
6271
|
|
|
6272
|
+
var styleCss$1$1 = i$5`:host{display:block;position:relative}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
6273
|
+
|
|
6270
6274
|
var classicColorCss = i$5``;
|
|
6271
6275
|
|
|
6272
|
-
var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}
|
|
6276
|
+
var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}`;
|
|
6273
6277
|
|
|
6274
|
-
var styleEmphasizedCss = i$5
|
|
6278
|
+
var styleEmphasizedCss = i$5`.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
6275
6279
|
|
|
6276
|
-
var styleSnowflakeCss = i$5`:host
|
|
6280
|
+
var styleSnowflakeCss = i$5`:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
6277
6281
|
|
|
6278
6282
|
var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
6279
6283
|
|
|
@@ -6580,6 +6584,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
6580
6584
|
// See LICENSE in the project root for license information.
|
|
6581
6585
|
|
|
6582
6586
|
|
|
6587
|
+
|
|
6583
6588
|
/*
|
|
6584
6589
|
* @slot - Default slot for the popover content.
|
|
6585
6590
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -6846,7 +6851,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6846
6851
|
* If true, the dropdown bib is displayed.
|
|
6847
6852
|
*/
|
|
6848
6853
|
isPopoverVisible: {
|
|
6849
|
-
type: Boolean
|
|
6854
|
+
type: Boolean,
|
|
6855
|
+
reflect: true,
|
|
6856
|
+
attribute: 'open'
|
|
6850
6857
|
},
|
|
6851
6858
|
|
|
6852
6859
|
/**
|
|
@@ -6982,6 +6989,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6982
6989
|
|
|
6983
6990
|
static get styles() {
|
|
6984
6991
|
return [
|
|
6992
|
+
styleCss$1$1,
|
|
6985
6993
|
tokensCss$1$1,
|
|
6986
6994
|
colorCss$1$1,
|
|
6987
6995
|
|
|
@@ -7162,64 +7170,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7162
7170
|
this.hasFocus = false;
|
|
7163
7171
|
}
|
|
7164
7172
|
|
|
7165
|
-
/**
|
|
7166
|
-
* Determines if the element or any children are focusable.
|
|
7167
|
-
* @private
|
|
7168
|
-
* @param {HTMLElement} element - Element to check.
|
|
7169
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
7170
|
-
*/
|
|
7171
|
-
containsFocusableElement(element) {
|
|
7172
|
-
this.showTriggerBorders = true;
|
|
7173
|
-
|
|
7174
|
-
const nodes = [
|
|
7175
|
-
element,
|
|
7176
|
-
...element.children
|
|
7177
|
-
];
|
|
7178
|
-
|
|
7179
|
-
const focusableElements = [
|
|
7180
|
-
'a',
|
|
7181
|
-
'auro-hyperlink',
|
|
7182
|
-
'button',
|
|
7183
|
-
'auro-button',
|
|
7184
|
-
'input',
|
|
7185
|
-
'auro-input',
|
|
7186
|
-
];
|
|
7187
|
-
|
|
7188
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
7189
|
-
|
|
7190
|
-
const result = nodes.some((node) => {
|
|
7191
|
-
const tagName = node.tagName.toLowerCase();
|
|
7192
|
-
|
|
7193
|
-
if (node.tabIndex > -1) {
|
|
7194
|
-
return true;
|
|
7195
|
-
}
|
|
7196
|
-
|
|
7197
|
-
if (focusableElements.includes(tagName)) {
|
|
7198
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
7199
|
-
return true;
|
|
7200
|
-
}
|
|
7201
|
-
if (!node.hasAttribute('disabled')) {
|
|
7202
|
-
return true;
|
|
7203
|
-
}
|
|
7204
|
-
}
|
|
7205
|
-
|
|
7206
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
7207
|
-
return true;
|
|
7208
|
-
}
|
|
7209
|
-
|
|
7210
|
-
return false;
|
|
7211
|
-
});
|
|
7212
|
-
|
|
7213
|
-
if (result) {
|
|
7214
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
7215
|
-
const tagName = node.tagName.toLowerCase();
|
|
7216
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
7217
|
-
});
|
|
7218
|
-
}
|
|
7219
|
-
|
|
7220
|
-
return result;
|
|
7221
|
-
}
|
|
7222
|
-
|
|
7223
7173
|
/**
|
|
7224
7174
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
7225
7175
|
* @private
|
|
@@ -7331,7 +7281,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7331
7281
|
if (triggerContentNodes) {
|
|
7332
7282
|
|
|
7333
7283
|
// See if any of them are focusable elements
|
|
7334
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
7284
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
7335
7285
|
|
|
7336
7286
|
// If any of them are focusable elements
|
|
7337
7287
|
if (this.triggerContentFocusable) {
|
|
@@ -7403,7 +7353,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7403
7353
|
<div
|
|
7404
7354
|
id="trigger"
|
|
7405
7355
|
class="${e(this.commonWrapperClasses)}" part="wrapper"
|
|
7406
|
-
tabindex="${this.tabIndex}"
|
|
7356
|
+
tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
7407
7357
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
7408
7358
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
7409
7359
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|