@aurodesignsystem-dev/auro-formkit 0.0.0-pr1413.0 → 0.0.0-pr1413.2
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/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +121 -129
- package/components/combobox/demo/index.min.js +121 -129
- package/components/combobox/demo/keyboardBehavior.md +9 -36
- package/components/combobox/dist/auro-combobox.d.ts +13 -0
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +4 -2
- package/components/combobox/dist/index.js +120 -128
- package/components/combobox/dist/registered.js +120 -128
- package/components/counter/demo/api.min.js +13 -3
- package/components/counter/demo/index.min.js +13 -3
- package/components/counter/dist/index.js +13 -3
- package/components/counter/dist/registered.js +13 -3
- package/components/datepicker/demo/api.min.js +44 -21
- package/components/datepicker/demo/index.min.js +44 -21
- package/components/datepicker/dist/index.js +44 -21
- package/components/datepicker/dist/registered.js +44 -21
- package/components/dropdown/demo/api.md +29 -28
- package/components/dropdown/demo/api.min.js +12 -2
- package/components/dropdown/demo/index.min.js +12 -2
- package/components/dropdown/dist/auro-dropdown.d.ts +8 -0
- package/components/dropdown/dist/index.js +12 -2
- package/components/dropdown/dist/registered.js +12 -2
- package/components/form/demo/api.min.js +363 -264
- package/components/form/demo/index.min.js +363 -264
- package/components/input/demo/api.min.js +102 -77
- package/components/input/demo/index.min.js +102 -77
- package/components/input/dist/auro-input.d.ts +11 -0
- package/components/input/dist/base-input.d.ts +1 -0
- package/components/input/dist/index.js +32 -18
- package/components/input/dist/registered.js +32 -18
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/dist/registered.js +1 -1
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.min.js +87 -26
- package/components/select/demo/index.min.js +87 -26
- package/components/select/demo/keyboardBehavior.md +3 -3
- package/components/select/dist/index.js +86 -25
- package/components/select/dist/registered.js +86 -25
- package/components/select/dist/selectKeyboardStrategy.d.ts +5 -2
- package/custom-elements.json +62 -4
- package/package.json +1 -1
|
@@ -9242,7 +9242,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
9242
9242
|
}
|
|
9243
9243
|
}
|
|
9244
9244
|
|
|
9245
|
-
var formkitVersion$2 = '
|
|
9245
|
+
var formkitVersion$2 = '202604031554';
|
|
9246
9246
|
|
|
9247
9247
|
let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=literal`${unsafeStatic(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`),s=(o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim();return s||null}};let h$1 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$1=css`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
9248
9248
|
`,u$4=css`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-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, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .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-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-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-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-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-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-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-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-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-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-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-weight:var(--wcss-heading-xs-weight, 450);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-weight:var(--wcss-heading-2xs-weight, 450);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-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .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-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .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-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .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-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .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-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .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-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .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(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0;box-sizing:border-box}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
@@ -13295,7 +13295,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
13295
13295
|
}
|
|
13296
13296
|
};
|
|
13297
13297
|
|
|
13298
|
-
var formkitVersion$1 = '
|
|
13298
|
+
var formkitVersion$1 = '202604031554';
|
|
13299
13299
|
|
|
13300
13300
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
13301
13301
|
static get properties() {
|
|
@@ -13476,6 +13476,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
13476
13476
|
this.appearance = 'default';
|
|
13477
13477
|
this.chevron = false;
|
|
13478
13478
|
this.disabled = false;
|
|
13479
|
+
this.disableKeyboardHandling = false;
|
|
13479
13480
|
this.error = false;
|
|
13480
13481
|
this.tabIndex = 0;
|
|
13481
13482
|
this.noToggle = false;
|
|
@@ -13687,6 +13688,14 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
13687
13688
|
reflect: true
|
|
13688
13689
|
},
|
|
13689
13690
|
|
|
13691
|
+
/**
|
|
13692
|
+
* If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior.
|
|
13693
|
+
*/
|
|
13694
|
+
disableKeyboardHandling: {
|
|
13695
|
+
type: Boolean,
|
|
13696
|
+
reflect: true
|
|
13697
|
+
},
|
|
13698
|
+
|
|
13690
13699
|
/**
|
|
13691
13700
|
* @private
|
|
13692
13701
|
*/
|
|
@@ -13992,7 +14001,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
13992
14001
|
|
|
13993
14002
|
firstUpdated() {
|
|
13994
14003
|
// Configure the floater to, this will generate the ID for the bib
|
|
13995
|
-
this.floater.configure(this, 'auroDropdown');
|
|
14004
|
+
this.floater.configure(this, 'auroDropdown', !this.disableKeyboardHandling);
|
|
13996
14005
|
|
|
13997
14006
|
// Prevent `contain: layout` on the dropdown host. Layout containment
|
|
13998
14007
|
// creates a containing block for position:fixed descendants (the bib),
|
|
@@ -14300,6 +14309,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
14300
14309
|
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
14301
14310
|
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
14302
14311
|
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
14312
|
+
aria-disabled="${ifDefined(this.disabled ? 'true' : undefined)}"
|
|
14303
14313
|
@focusin="${this.handleFocusin}"
|
|
14304
14314
|
@blur="${this.handleFocusOut}">
|
|
14305
14315
|
<div class="triggerContentWrapper" id="triggerLabel">
|
|
@@ -20019,6 +20029,12 @@ class BaseInput extends AuroElement$1 {
|
|
|
20019
20029
|
this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
|
|
20020
20030
|
this.inputElement = this.renderRoot.querySelector('input');
|
|
20021
20031
|
this.labelElement = this.shadowRoot.querySelector('label');
|
|
20032
|
+
this.clearBtn = this.clearButtonRef.value;
|
|
20033
|
+
|
|
20034
|
+
// This must get moved into inputKeyboardStrategy when implemented
|
|
20035
|
+
this.clearBtn.addEventListener('keydown', (evt) => {
|
|
20036
|
+
evt.stopPropagation();
|
|
20037
|
+
});
|
|
20022
20038
|
|
|
20023
20039
|
this.patchInputEvent(this.inputElement);
|
|
20024
20040
|
|
|
@@ -21042,7 +21058,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
21042
21058
|
}
|
|
21043
21059
|
};
|
|
21044
21060
|
|
|
21045
|
-
var formkitVersion = '
|
|
21061
|
+
var formkitVersion = '202604031554';
|
|
21046
21062
|
|
|
21047
21063
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
21048
21064
|
// See LICENSE in the project root for license information.
|
|
@@ -21099,6 +21115,11 @@ class AuroInput extends BaseInput {
|
|
|
21099
21115
|
* @private
|
|
21100
21116
|
*/
|
|
21101
21117
|
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion$1, _$1);
|
|
21118
|
+
|
|
21119
|
+
/**
|
|
21120
|
+
* @private
|
|
21121
|
+
*/
|
|
21122
|
+
this.clearButtonRef = createRef();
|
|
21102
21123
|
}
|
|
21103
21124
|
|
|
21104
21125
|
static get styles() {
|
|
@@ -21116,6 +21137,19 @@ class AuroInput extends BaseInput {
|
|
|
21116
21137
|
];
|
|
21117
21138
|
}
|
|
21118
21139
|
|
|
21140
|
+
/**
|
|
21141
|
+
* Returns classmap configuration for the clear button visibility.
|
|
21142
|
+
* The button is hidden when the input has no value, is read-only, or is disabled.
|
|
21143
|
+
* @private
|
|
21144
|
+
* @returns {Record<string, boolean>} - Classmap object controlling clear button display state.
|
|
21145
|
+
*/
|
|
21146
|
+
get clearBtnClassMap() {
|
|
21147
|
+
return {
|
|
21148
|
+
'util_displayHidden': !this.hasValue || this.readyOnly || this.disabled
|
|
21149
|
+
};
|
|
21150
|
+
}
|
|
21151
|
+
|
|
21152
|
+
|
|
21119
21153
|
/**
|
|
21120
21154
|
* Determines if the HTML input element should be visually hidden.
|
|
21121
21155
|
* Returns true when display value content exists without focus and has a value,
|
|
@@ -21435,10 +21469,11 @@ class AuroInput extends BaseInput {
|
|
|
21435
21469
|
<${this.buttonTag}
|
|
21436
21470
|
@click="${this.handleClickClear}"
|
|
21437
21471
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
21438
|
-
class="notificationBtn clearBtn"
|
|
21472
|
+
class="notificationBtn clearBtn ${classMap(this.clearBtnClassMap)}"
|
|
21439
21473
|
shape="circle"
|
|
21440
21474
|
size="sm"
|
|
21441
|
-
variant="ghost"
|
|
21475
|
+
variant="ghost"
|
|
21476
|
+
${ref(this.clearButtonRef)}>
|
|
21442
21477
|
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
21443
21478
|
<${this.iconTag}
|
|
21444
21479
|
aria-hidden="true"
|
|
@@ -21583,11 +21618,7 @@ class AuroInput extends BaseInput {
|
|
|
21583
21618
|
<div part="accent-right" class="accents right">
|
|
21584
21619
|
${this.renderValidationErrorIconHtml()}
|
|
21585
21620
|
${this.hasValue && this.type === 'password' ? this.renderHtmlNotificationPassword() : undefined}
|
|
21586
|
-
${this.
|
|
21587
|
-
${!this.disabled && !this.readonly ? html$1`
|
|
21588
|
-
${this.renderHtmlActionClear()}
|
|
21589
|
-
` : undefined}
|
|
21590
|
-
` : undefined}
|
|
21621
|
+
${this.renderHtmlActionClear()}
|
|
21591
21622
|
</div>
|
|
21592
21623
|
</div>
|
|
21593
21624
|
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
@@ -21619,11 +21650,7 @@ class AuroInput extends BaseInput {
|
|
|
21619
21650
|
${this.layout.includes('right') || this.layout === "emphasized" ? html$1`
|
|
21620
21651
|
${this.renderValidationErrorIconHtml()}
|
|
21621
21652
|
` : undefined}
|
|
21622
|
-
${this.
|
|
21623
|
-
${!this.disabled && !this.readonly ? html$1`
|
|
21624
|
-
${this.renderHtmlActionClear()}
|
|
21625
|
-
` : undefined}
|
|
21626
|
-
` : undefined}
|
|
21653
|
+
${this.renderHtmlActionClear()}
|
|
21627
21654
|
</div>
|
|
21628
21655
|
</div>
|
|
21629
21656
|
<div class="${classMap(this.helpTextClasses)}" part="inputHelpText">
|
|
@@ -21651,11 +21678,7 @@ class AuroInput extends BaseInput {
|
|
|
21651
21678
|
</div>
|
|
21652
21679
|
<div class="accents right">
|
|
21653
21680
|
${this.renderValidationErrorIconHtml()}
|
|
21654
|
-
${this.
|
|
21655
|
-
${!this.disabled && !this.readonly ? html$1`
|
|
21656
|
-
${this.renderHtmlActionClear()}
|
|
21657
|
-
` : undefined}
|
|
21658
|
-
` : undefined}
|
|
21681
|
+
${this.renderHtmlActionClear()}
|
|
21659
21682
|
</div>
|
|
21660
21683
|
</div>
|
|
21661
21684
|
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
@@ -7,34 +7,35 @@ The `auro-dropdown` element provides a way to place content in a bib that can be
|
|
|
7
7
|
|
|
8
8
|
## Properties
|
|
9
9
|
|
|
10
|
-
| Property
|
|
11
|
-
|
|
12
|
-
| `a11yRole`
|
|
13
|
-
| [appearance](#appearance)
|
|
14
|
-
| [autoPlacement](#autoPlacement)
|
|
15
|
-
| [chevron](#chevron)
|
|
16
|
-
| [disableEventShow](#disableEventShow)
|
|
17
|
-
| [
|
|
18
|
-
| [
|
|
19
|
-
| [
|
|
20
|
-
| [
|
|
21
|
-
| [
|
|
22
|
-
| [
|
|
23
|
-
| [
|
|
24
|
-
| [
|
|
25
|
-
| [
|
|
26
|
-
| [
|
|
27
|
-
| [
|
|
28
|
-
| [
|
|
29
|
-
| [
|
|
30
|
-
| [
|
|
31
|
-
| [
|
|
32
|
-
| [
|
|
33
|
-
| [
|
|
34
|
-
| [
|
|
35
|
-
| [
|
|
36
|
-
| [
|
|
37
|
-
| [
|
|
10
|
+
| Property | Attribute | Type | Default | Description |
|
|
11
|
+
|---------------------------|---------------------------|--------------------------------------------------|------------------|--------------------------------------------------|
|
|
12
|
+
| `a11yRole` | | `string` | | The value for the role attribute of the trigger element. |
|
|
13
|
+
| [appearance](#appearance) | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
14
|
+
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | | If declared, bib's position will be automatically calculated where to appear. |
|
|
15
|
+
| [chevron](#chevron) | `chevron` | `boolean` | | If declared, the dropdown displays a chevron on the right. |
|
|
16
|
+
| [disableEventShow](#disableEventShow) | `disableEventShow` | `boolean` | | If declared, the dropdown will only show by calling the API .show() public method. |
|
|
17
|
+
| [disableKeyboardHandling](#disableKeyboardHandling) | `disableKeyboardHandling` | `boolean` | | If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior. |
|
|
18
|
+
| [disabled](#disabled) | `disabled` | `boolean` | | If declared, the dropdown is not interactive. |
|
|
19
|
+
| [error](#error) | `error` | `boolean` | | If declared, will apply error UI to the dropdown. |
|
|
20
|
+
| [errorMessage](#errorMessage) | `errorMessage` | `string` | "undefined" | Contains the help text message for the current validity error. |
|
|
21
|
+
| [focusShow](#focusShow) | `focusShow` | `boolean` | | If declared, the bib will display when focus is applied to the trigger. |
|
|
22
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'" | Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
23
|
+
| [hoverToggle](#hoverToggle) | `hoverToggle` | `boolean` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
|
|
24
|
+
| [isBibFullscreen](#isBibFullscreen) | `isBibFullscreen` | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
|
|
25
|
+
| [isPopoverVisible](#isPopoverVisible) | `open` | `boolean` | false | If true, the dropdown bib is displayed. |
|
|
26
|
+
| [layout](#layout) | `layout` | `'classic' \| 'emphasized' \| 'snowflake'` | "'classic'" | Sets the layout of the dropdown. |
|
|
27
|
+
| [matchWidth](#matchWidth) | `matchWidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
|
|
28
|
+
| [noFlip](#noFlip) | `noFlip` | `boolean` | | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
29
|
+
| [noHideOnThisFocusLoss](#noHideOnThisFocusLoss) | `noHideOnThisFocusLoss` | `boolean` | false | If declared, the dropdown will not hide when moving focus outside the element. |
|
|
30
|
+
| [noToggle](#noToggle) | `noToggle` | `boolean` | | If declared, the trigger will only show the dropdown bib. |
|
|
31
|
+
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
32
|
+
| [onDark](#onDark) | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
|
|
33
|
+
| [onSlotChange](#onSlotChange) | `onSlotChange` | | | If declared, and a function is set, that function will execute when the slot content is updated. |
|
|
34
|
+
| [placement](#placement) | `placement` | `'top' \| 'right' \| 'bottom' \| 'left' \| 'bottom-start' \| 'top-start' \| 'top-end' \| 'right-start' \| 'right-end' \| 'bottom-end' \| 'left-start' \| 'left-end'` | "'bottom-start'" | Position where the bib should appear relative to the trigger. |
|
|
35
|
+
| [shape](#shape) | | | "undefined" | |
|
|
36
|
+
| [shift](#shift) | `shift` | `boolean` | | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
|
|
37
|
+
| [simple](#simple) | `simple` | `boolean` | | If declared, applies a border around the trigger slot. |
|
|
38
|
+
| [size](#size) | | | "undefined" | |
|
|
38
39
|
|
|
39
40
|
## Methods
|
|
40
41
|
|
|
@@ -3738,7 +3738,7 @@ class AuroHelpText extends i {
|
|
|
3738
3738
|
}
|
|
3739
3739
|
}
|
|
3740
3740
|
|
|
3741
|
-
var formkitVersion = '
|
|
3741
|
+
var formkitVersion = '202604031554';
|
|
3742
3742
|
|
|
3743
3743
|
class AuroElement extends i {
|
|
3744
3744
|
static get properties() {
|
|
@@ -3919,6 +3919,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3919
3919
|
this.appearance = 'default';
|
|
3920
3920
|
this.chevron = false;
|
|
3921
3921
|
this.disabled = false;
|
|
3922
|
+
this.disableKeyboardHandling = false;
|
|
3922
3923
|
this.error = false;
|
|
3923
3924
|
this.tabIndex = 0;
|
|
3924
3925
|
this.noToggle = false;
|
|
@@ -4130,6 +4131,14 @@ class AuroDropdown extends AuroElement {
|
|
|
4130
4131
|
reflect: true
|
|
4131
4132
|
},
|
|
4132
4133
|
|
|
4134
|
+
/**
|
|
4135
|
+
* If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior.
|
|
4136
|
+
*/
|
|
4137
|
+
disableKeyboardHandling: {
|
|
4138
|
+
type: Boolean,
|
|
4139
|
+
reflect: true
|
|
4140
|
+
},
|
|
4141
|
+
|
|
4133
4142
|
/**
|
|
4134
4143
|
* @private
|
|
4135
4144
|
*/
|
|
@@ -4435,7 +4444,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4435
4444
|
|
|
4436
4445
|
firstUpdated() {
|
|
4437
4446
|
// Configure the floater to, this will generate the ID for the bib
|
|
4438
|
-
this.floater.configure(this, 'auroDropdown');
|
|
4447
|
+
this.floater.configure(this, 'auroDropdown', !this.disableKeyboardHandling);
|
|
4439
4448
|
|
|
4440
4449
|
// Prevent `contain: layout` on the dropdown host. Layout containment
|
|
4441
4450
|
// creates a containing block for position:fixed descendants (the bib),
|
|
@@ -4743,6 +4752,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4743
4752
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
4744
4753
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
4745
4754
|
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
4755
|
+
aria-disabled="${o(this.disabled ? 'true' : undefined)}"
|
|
4746
4756
|
@focusin="${this.handleFocusin}"
|
|
4747
4757
|
@blur="${this.handleFocusOut}">
|
|
4748
4758
|
<div class="triggerContentWrapper" id="triggerLabel">
|
|
@@ -3678,7 +3678,7 @@ class AuroHelpText extends i {
|
|
|
3678
3678
|
}
|
|
3679
3679
|
}
|
|
3680
3680
|
|
|
3681
|
-
var formkitVersion = '
|
|
3681
|
+
var formkitVersion = '202604031554';
|
|
3682
3682
|
|
|
3683
3683
|
class AuroElement extends i {
|
|
3684
3684
|
static get properties() {
|
|
@@ -3859,6 +3859,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3859
3859
|
this.appearance = 'default';
|
|
3860
3860
|
this.chevron = false;
|
|
3861
3861
|
this.disabled = false;
|
|
3862
|
+
this.disableKeyboardHandling = false;
|
|
3862
3863
|
this.error = false;
|
|
3863
3864
|
this.tabIndex = 0;
|
|
3864
3865
|
this.noToggle = false;
|
|
@@ -4070,6 +4071,14 @@ class AuroDropdown extends AuroElement {
|
|
|
4070
4071
|
reflect: true
|
|
4071
4072
|
},
|
|
4072
4073
|
|
|
4074
|
+
/**
|
|
4075
|
+
* If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior.
|
|
4076
|
+
*/
|
|
4077
|
+
disableKeyboardHandling: {
|
|
4078
|
+
type: Boolean,
|
|
4079
|
+
reflect: true
|
|
4080
|
+
},
|
|
4081
|
+
|
|
4073
4082
|
/**
|
|
4074
4083
|
* @private
|
|
4075
4084
|
*/
|
|
@@ -4375,7 +4384,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4375
4384
|
|
|
4376
4385
|
firstUpdated() {
|
|
4377
4386
|
// Configure the floater to, this will generate the ID for the bib
|
|
4378
|
-
this.floater.configure(this, 'auroDropdown');
|
|
4387
|
+
this.floater.configure(this, 'auroDropdown', !this.disableKeyboardHandling);
|
|
4379
4388
|
|
|
4380
4389
|
// Prevent `contain: layout` on the dropdown host. Layout containment
|
|
4381
4390
|
// creates a containing block for position:fixed descendants (the bib),
|
|
@@ -4683,6 +4692,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4683
4692
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
4684
4693
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
4685
4694
|
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
4695
|
+
aria-disabled="${o(this.disabled ? 'true' : undefined)}"
|
|
4686
4696
|
@focusin="${this.handleFocusin}"
|
|
4687
4697
|
@blur="${this.handleFocusOut}">
|
|
4688
4698
|
<div class="triggerContentWrapper" id="triggerLabel">
|
|
@@ -73,6 +73,13 @@ export class AuroDropdown extends AuroElement {
|
|
|
73
73
|
type: BooleanConstructor;
|
|
74
74
|
reflect: boolean;
|
|
75
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior.
|
|
78
|
+
*/
|
|
79
|
+
disableKeyboardHandling: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
reflect: boolean;
|
|
82
|
+
};
|
|
76
83
|
/**
|
|
77
84
|
* @private
|
|
78
85
|
*/
|
|
@@ -279,6 +286,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
279
286
|
appearance: string;
|
|
280
287
|
chevron: boolean;
|
|
281
288
|
disabled: boolean;
|
|
289
|
+
disableKeyboardHandling: boolean;
|
|
282
290
|
error: boolean;
|
|
283
291
|
noToggle: boolean;
|
|
284
292
|
a11yRole: string;
|
|
@@ -3583,7 +3583,7 @@ class AuroHelpText extends LitElement {
|
|
|
3583
3583
|
}
|
|
3584
3584
|
}
|
|
3585
3585
|
|
|
3586
|
-
var formkitVersion = '
|
|
3586
|
+
var formkitVersion = '202604031554';
|
|
3587
3587
|
|
|
3588
3588
|
class AuroElement extends LitElement {
|
|
3589
3589
|
static get properties() {
|
|
@@ -3764,6 +3764,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3764
3764
|
this.appearance = 'default';
|
|
3765
3765
|
this.chevron = false;
|
|
3766
3766
|
this.disabled = false;
|
|
3767
|
+
this.disableKeyboardHandling = false;
|
|
3767
3768
|
this.error = false;
|
|
3768
3769
|
this.tabIndex = 0;
|
|
3769
3770
|
this.noToggle = false;
|
|
@@ -3975,6 +3976,14 @@ class AuroDropdown extends AuroElement {
|
|
|
3975
3976
|
reflect: true
|
|
3976
3977
|
},
|
|
3977
3978
|
|
|
3979
|
+
/**
|
|
3980
|
+
* If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior.
|
|
3981
|
+
*/
|
|
3982
|
+
disableKeyboardHandling: {
|
|
3983
|
+
type: Boolean,
|
|
3984
|
+
reflect: true
|
|
3985
|
+
},
|
|
3986
|
+
|
|
3978
3987
|
/**
|
|
3979
3988
|
* @private
|
|
3980
3989
|
*/
|
|
@@ -4280,7 +4289,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4280
4289
|
|
|
4281
4290
|
firstUpdated() {
|
|
4282
4291
|
// Configure the floater to, this will generate the ID for the bib
|
|
4283
|
-
this.floater.configure(this, 'auroDropdown');
|
|
4292
|
+
this.floater.configure(this, 'auroDropdown', !this.disableKeyboardHandling);
|
|
4284
4293
|
|
|
4285
4294
|
// Prevent `contain: layout` on the dropdown host. Layout containment
|
|
4286
4295
|
// creates a containing block for position:fixed descendants (the bib),
|
|
@@ -4588,6 +4597,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4588
4597
|
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
4589
4598
|
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
4590
4599
|
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
4600
|
+
aria-disabled="${ifDefined(this.disabled ? 'true' : undefined)}"
|
|
4591
4601
|
@focusin="${this.handleFocusin}"
|
|
4592
4602
|
@blur="${this.handleFocusOut}">
|
|
4593
4603
|
<div class="triggerContentWrapper" id="triggerLabel">
|
|
@@ -3583,7 +3583,7 @@ class AuroHelpText extends LitElement {
|
|
|
3583
3583
|
}
|
|
3584
3584
|
}
|
|
3585
3585
|
|
|
3586
|
-
var formkitVersion = '
|
|
3586
|
+
var formkitVersion = '202604031554';
|
|
3587
3587
|
|
|
3588
3588
|
class AuroElement extends LitElement {
|
|
3589
3589
|
static get properties() {
|
|
@@ -3764,6 +3764,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3764
3764
|
this.appearance = 'default';
|
|
3765
3765
|
this.chevron = false;
|
|
3766
3766
|
this.disabled = false;
|
|
3767
|
+
this.disableKeyboardHandling = false;
|
|
3767
3768
|
this.error = false;
|
|
3768
3769
|
this.tabIndex = 0;
|
|
3769
3770
|
this.noToggle = false;
|
|
@@ -3975,6 +3976,14 @@ class AuroDropdown extends AuroElement {
|
|
|
3975
3976
|
reflect: true
|
|
3976
3977
|
},
|
|
3977
3978
|
|
|
3979
|
+
/**
|
|
3980
|
+
* If declared, the dropdown will not handle keyboard events and will require the consumer to manage this behavior.
|
|
3981
|
+
*/
|
|
3982
|
+
disableKeyboardHandling: {
|
|
3983
|
+
type: Boolean,
|
|
3984
|
+
reflect: true
|
|
3985
|
+
},
|
|
3986
|
+
|
|
3978
3987
|
/**
|
|
3979
3988
|
* @private
|
|
3980
3989
|
*/
|
|
@@ -4280,7 +4289,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4280
4289
|
|
|
4281
4290
|
firstUpdated() {
|
|
4282
4291
|
// Configure the floater to, this will generate the ID for the bib
|
|
4283
|
-
this.floater.configure(this, 'auroDropdown');
|
|
4292
|
+
this.floater.configure(this, 'auroDropdown', !this.disableKeyboardHandling);
|
|
4284
4293
|
|
|
4285
4294
|
// Prevent `contain: layout` on the dropdown host. Layout containment
|
|
4286
4295
|
// creates a containing block for position:fixed descendants (the bib),
|
|
@@ -4588,6 +4597,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4588
4597
|
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
4589
4598
|
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
4590
4599
|
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
4600
|
+
aria-disabled="${ifDefined(this.disabled ? 'true' : undefined)}"
|
|
4591
4601
|
@focusin="${this.handleFocusin}"
|
|
4592
4602
|
@blur="${this.handleFocusOut}">
|
|
4593
4603
|
<div class="triggerContentWrapper" id="triggerLabel">
|