@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.14 → 0.0.0-pr624.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1022 -12
- package/components/bibtemplate/dist/registered.js +1022 -12
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.md +2 -2
- package/components/checkbox/demo/api.min.js +24 -19
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +24 -19
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
- package/components/checkbox/dist/index.js +24 -19
- package/components/checkbox/dist/registered.js +24 -19
- package/components/combobox/demo/api.md +52 -0
- package/components/combobox/demo/api.min.js +2059 -651
- package/components/combobox/demo/index.md +6 -0
- package/components/combobox/demo/index.min.js +2059 -651
- package/components/combobox/dist/auro-combobox.d.ts +4 -4
- package/components/combobox/dist/index.js +1978 -629
- package/components/combobox/dist/registered.js +1978 -629
- package/components/counter/demo/api.md +21 -19
- package/components/counter/demo/api.min.js +2326 -539
- package/components/counter/demo/index.md +99 -34
- package/components/counter/demo/index.min.js +2326 -539
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +92 -1
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +2326 -539
- package/components/counter/dist/registered.js +2326 -539
- package/components/datepicker/demo/api.md +3 -1
- package/components/datepicker/demo/api.min.js +5402 -3158
- package/components/datepicker/demo/index.md +6 -1
- package/components/datepicker/demo/index.min.js +5402 -3158
- package/components/datepicker/dist/auro-datepicker.d.ts +17 -7
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +5402 -3158
- package/components/datepicker/dist/registered.js +5402 -3158
- package/components/dropdown/demo/api.md +3 -4
- package/components/dropdown/demo/api.min.js +69 -119
- package/components/dropdown/demo/index.md +57 -9
- package/components/dropdown/demo/index.min.js +69 -119
- package/components/dropdown/dist/auro-dropdown.d.ts +0 -8
- package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
- package/components/dropdown/dist/index.js +69 -119
- package/components/dropdown/dist/registered.js +69 -119
- package/components/input/demo/api.md +12 -5
- package/components/input/demo/api.min.js +665 -285
- package/components/input/demo/index.min.js +665 -285
- package/components/input/dist/auro-input.d.ts +6 -0
- package/components/input/dist/base-input.d.ts +29 -6
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +665 -285
- package/components/input/dist/registered.js +665 -285
- package/components/layoutElement/dist/index.js +13 -10
- package/components/menu/demo/api.html +38 -0
- package/components/menu/demo/api.md +63 -2
- package/components/menu/demo/api.min.js +190 -36
- package/components/menu/demo/index.min.js +190 -36
- package/components/menu/dist/auro-menu.d.ts +22 -5
- package/components/menu/dist/auro-menuoption.d.ts +15 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +190 -36
- package/components/menu/dist/registered.js +190 -36
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.min.js +4 -2
- package/components/radio/demo/index.min.js +4 -2
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +4 -2
- package/components/radio/dist/registered.js +4 -2
- package/components/select/demo/api.md +5 -5
- package/components/select/demo/api.min.js +1412 -293
- package/components/select/demo/index.md +42 -1
- package/components/select/demo/index.min.js +1412 -293
- package/components/select/dist/auro-select.d.ts +8 -8
- package/components/select/dist/index.js +1321 -261
- package/components/select/dist/registered.js +1321 -261
- package/package.json +2 -2
- /package/components/{menu/dist/styles/color-menu-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{color-menuoption-css.d.ts → default/color-menu-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/style-menu-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{tokens-css.d.ts → default/style-menuoption-css.d.ts} +0 -0
|
@@ -8,7 +8,7 @@ import { repeat } from 'lit/directives/repeat.js';
|
|
|
8
8
|
// See LICENSE in the project root for license information.
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
let AuroDependencyVersioning$
|
|
11
|
+
let AuroDependencyVersioning$3 = class AuroDependencyVersioning {
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -809,7 +809,9 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
809
809
|
elem.validity = this.auroInputElements[0].validity;
|
|
810
810
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
811
811
|
|
|
812
|
-
|
|
812
|
+
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
813
|
+
// combobox's 2nd input will have noValidate set true.
|
|
814
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
|
|
813
815
|
elem.validity = this.auroInputElements[1].validity;
|
|
814
816
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
815
817
|
}
|
|
@@ -3130,7 +3132,7 @@ class AuroFloatingUI {
|
|
|
3130
3132
|
// See LICENSE in the project root for license information.
|
|
3131
3133
|
|
|
3132
3134
|
|
|
3133
|
-
let AuroDependencyVersioning$
|
|
3135
|
+
let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
3134
3136
|
|
|
3135
3137
|
/**
|
|
3136
3138
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -3316,9 +3318,9 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$1$2 {
|
|
|
3316
3318
|
}
|
|
3317
3319
|
};
|
|
3318
3320
|
|
|
3319
|
-
var tokensCss$2$
|
|
3321
|
+
var tokensCss$2$2 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
3320
3322
|
|
|
3321
|
-
var colorCss$3$
|
|
3323
|
+
var colorCss$3$2 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
3322
3324
|
|
|
3323
3325
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3324
3326
|
// See LICENSE in the project root for license information.
|
|
@@ -3476,9 +3478,9 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
3476
3478
|
static get styles() {
|
|
3477
3479
|
return [
|
|
3478
3480
|
super.styles,
|
|
3479
|
-
css`${tokensCss$2$
|
|
3481
|
+
css`${tokensCss$2$2}`,
|
|
3480
3482
|
css`${styleCss$2$2}`,
|
|
3481
|
-
css`${colorCss$3$
|
|
3483
|
+
css`${colorCss$3$2}`
|
|
3482
3484
|
];
|
|
3483
3485
|
}
|
|
3484
3486
|
|
|
@@ -3512,8 +3514,12 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
3512
3514
|
async firstUpdated() {
|
|
3513
3515
|
await super.firstUpdated();
|
|
3514
3516
|
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
+
/**
|
|
3518
|
+
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
3519
|
+
* depend on this description to provide context for the user using a screen reader.
|
|
3520
|
+
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
3521
|
+
*/
|
|
3522
|
+
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
3517
3523
|
const svgDesc = this.svg.querySelector('desc');
|
|
3518
3524
|
|
|
3519
3525
|
if (svgDesc) {
|
|
@@ -3559,11 +3565,11 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
3559
3565
|
|
|
3560
3566
|
var iconVersion$2 = '6.1.2';
|
|
3561
3567
|
|
|
3562
|
-
var styleCss$1$3 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{
|
|
3568
|
+
var styleCss$1$3 = 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}`;
|
|
3563
3569
|
|
|
3564
3570
|
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)}`;
|
|
3565
3571
|
|
|
3566
|
-
var tokensCss$1$2 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color:
|
|
3572
|
+
var tokensCss$1$2 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
|
|
3567
3573
|
|
|
3568
3574
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3569
3575
|
// See LICENSE in the project root for license information.
|
|
@@ -3584,7 +3590,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
3584
3590
|
*/
|
|
3585
3591
|
|
|
3586
3592
|
class AuroDropdownBib extends LitElement {
|
|
3587
|
-
|
|
3593
|
+
// not extending AuroElement because Bib needs only `shape` prop
|
|
3588
3594
|
constructor() {
|
|
3589
3595
|
super();
|
|
3590
3596
|
|
|
@@ -3594,6 +3600,9 @@ class AuroDropdownBib extends LitElement {
|
|
|
3594
3600
|
this._mobileBreakpointValue = undefined;
|
|
3595
3601
|
|
|
3596
3602
|
AuroLibraryRuntimeUtils$2$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
3603
|
+
|
|
3604
|
+
this.shape = "rounded";
|
|
3605
|
+
this.matchWidth = false;
|
|
3597
3606
|
}
|
|
3598
3607
|
|
|
3599
3608
|
static get styles() {
|
|
@@ -3631,6 +3640,15 @@ class AuroDropdownBib extends LitElement {
|
|
|
3631
3640
|
reflect: true
|
|
3632
3641
|
},
|
|
3633
3642
|
|
|
3643
|
+
/**
|
|
3644
|
+
* If declared, the bib width will match the trigger width.
|
|
3645
|
+
* @private
|
|
3646
|
+
*/
|
|
3647
|
+
matchWidth: {
|
|
3648
|
+
type: Boolean,
|
|
3649
|
+
reflect: true
|
|
3650
|
+
},
|
|
3651
|
+
|
|
3634
3652
|
/**
|
|
3635
3653
|
* If declared, will apply border-radius to the bib.
|
|
3636
3654
|
*/
|
|
@@ -3644,6 +3662,11 @@ class AuroDropdownBib extends LitElement {
|
|
|
3644
3662
|
*/
|
|
3645
3663
|
bibTemplate: {
|
|
3646
3664
|
type: Object
|
|
3665
|
+
},
|
|
3666
|
+
|
|
3667
|
+
shape: {
|
|
3668
|
+
type: String,
|
|
3669
|
+
reflect: true
|
|
3647
3670
|
}
|
|
3648
3671
|
};
|
|
3649
3672
|
}
|
|
@@ -3723,8 +3746,16 @@ class AuroDropdownBib extends LitElement {
|
|
|
3723
3746
|
|
|
3724
3747
|
// function that renders the HTML and CSS into the scope of the component
|
|
3725
3748
|
render() {
|
|
3749
|
+
const classes = {
|
|
3750
|
+
container: true
|
|
3751
|
+
};
|
|
3752
|
+
|
|
3753
|
+
// Since this class does not inherit from AuroElement, we apply the shape-related class within the `render` function,
|
|
3754
|
+
// mimicking the class naming convention used in AuroElement.resetShapeClasses.
|
|
3755
|
+
classes[`shape-${this.shape}`] = true;
|
|
3756
|
+
|
|
3726
3757
|
return html`
|
|
3727
|
-
<div class="
|
|
3758
|
+
<div class="${classMap(classes)}" part="bibContainer">
|
|
3728
3759
|
<slot></slot>
|
|
3729
3760
|
</div>
|
|
3730
3761
|
`;
|
|
@@ -3733,21 +3764,21 @@ class AuroDropdownBib extends LitElement {
|
|
|
3733
3764
|
|
|
3734
3765
|
var dropdownVersion$1 = '3.0.0';
|
|
3735
3766
|
|
|
3736
|
-
var shapeSizeCss$1 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:
|
|
3767
|
+
var shapeSizeCss$1 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
3737
3768
|
|
|
3738
3769
|
var colorCss$1$2 = css`:host .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,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
|
|
3739
3770
|
|
|
3740
|
-
var classicColorCss$1 = css`:host([layout*=classic]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)
|
|
3771
|
+
var classicColorCss$1 = css`:host([layout*=classic]:not([onDark])) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]:not([onDark])) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([layout*=classic]:not([onDark])) .trigger:focus-within,:host([layout*=classic]:not([onDark])) .trigger: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([layout*=classic][disabled]:not([onDark])){--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([layout*=classic][error]:not([onDark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic][error]:not([onDark])) .trigger:focus-within,:host([layout*=classic][error]:not([onDark])) .trigger: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([layout*=classic][onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic][onDark]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([layout*=classic][onDark]) .trigger:focus-within,:host([layout*=classic][onDark]) .trigger: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([layout*=classic][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([layout*=classic][onDark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic][onDark][error]) .trigger:focus-within,:host([layout*=classic][onDark][error]) .trigger: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)}`;
|
|
3741
3772
|
|
|
3742
|
-
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]) .trigger{display:flex;flex-direction:row}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;
|
|
3773
|
+
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]) .trigger{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]) .trigger: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)}:host([layout*=classic]:not([simple])) .triggerContentWrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}`;
|
|
3743
3774
|
|
|
3744
|
-
var styleEmphasizedCss$1 = css`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;
|
|
3775
|
+
var styleEmphasizedCss$1 = css`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;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([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)}`;
|
|
3745
3776
|
|
|
3746
|
-
var styleSnowflakeCss$1 = css`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;
|
|
3777
|
+
var styleSnowflakeCss$1 = css`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;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([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)}`;
|
|
3747
3778
|
|
|
3748
|
-
var colorCss$
|
|
3779
|
+
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-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
3749
3780
|
|
|
3750
|
-
var styleCss$
|
|
3781
|
+
var styleCss$7 = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
3751
3782
|
|
|
3752
3783
|
var tokensCss$6 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
3753
3784
|
|
|
@@ -3844,8 +3875,8 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
3844
3875
|
|
|
3845
3876
|
static get styles() {
|
|
3846
3877
|
return [
|
|
3847
|
-
colorCss$
|
|
3848
|
-
styleCss$
|
|
3878
|
+
colorCss$6,
|
|
3879
|
+
styleCss$7,
|
|
3849
3880
|
tokensCss$6
|
|
3850
3881
|
];
|
|
3851
3882
|
}
|
|
@@ -3953,7 +3984,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
3953
3984
|
|
|
3954
3985
|
var helpTextVersion$1 = '1.0.0';
|
|
3955
3986
|
|
|
3956
|
-
let AuroElement$
|
|
3987
|
+
let AuroElement$4 = class AuroElement extends LitElement {
|
|
3957
3988
|
static get properties() {
|
|
3958
3989
|
return {
|
|
3959
3990
|
|
|
@@ -3988,18 +4019,21 @@ let AuroElement$3 = class AuroElement extends LitElement {
|
|
|
3988
4019
|
}
|
|
3989
4020
|
|
|
3990
4021
|
resetShapeClasses() {
|
|
3991
|
-
|
|
3992
|
-
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4022
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
3993
4023
|
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4024
|
+
if (wrapper) {
|
|
4025
|
+
wrapper.classList.forEach((className) => {
|
|
4026
|
+
if (className.startsWith('shape-')) {
|
|
4027
|
+
wrapper.classList.remove(className);
|
|
4028
|
+
}
|
|
4029
|
+
});
|
|
4000
4030
|
|
|
4001
|
-
|
|
4002
|
-
|
|
4031
|
+
}
|
|
4032
|
+
|
|
4033
|
+
if (this.shape && this.size) {
|
|
4034
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
4035
|
+
} else {
|
|
4036
|
+
wrapper.classList.add('shape-none');
|
|
4003
4037
|
}
|
|
4004
4038
|
}
|
|
4005
4039
|
|
|
@@ -4062,7 +4096,7 @@ let AuroElement$3 = class AuroElement extends LitElement {
|
|
|
4062
4096
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
4063
4097
|
* @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
|
|
4064
4098
|
*/
|
|
4065
|
-
class AuroDropdown extends AuroElement$
|
|
4099
|
+
class AuroDropdown extends AuroElement$4 {
|
|
4066
4100
|
constructor() {
|
|
4067
4101
|
super();
|
|
4068
4102
|
|
|
@@ -4075,19 +4109,14 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4075
4109
|
|
|
4076
4110
|
// Layout Config
|
|
4077
4111
|
this.layout = 'classic';
|
|
4078
|
-
this.shape = '
|
|
4112
|
+
this.shape = 'classic';
|
|
4079
4113
|
this.size = 'xl';
|
|
4114
|
+
|
|
4080
4115
|
this.parentBorder = false;
|
|
4081
4116
|
|
|
4082
4117
|
this.privateDefaults();
|
|
4083
4118
|
}
|
|
4084
4119
|
|
|
4085
|
-
get commonLabelClasses() {
|
|
4086
|
-
return {
|
|
4087
|
-
// 'withValue': this.value && this.value.length > 0
|
|
4088
|
-
};
|
|
4089
|
-
}
|
|
4090
|
-
|
|
4091
4120
|
get commonWrapperClasses() {
|
|
4092
4121
|
return {
|
|
4093
4122
|
'trigger': true,
|
|
@@ -4156,7 +4185,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4156
4185
|
/**
|
|
4157
4186
|
* Generate unique names for dependency components.
|
|
4158
4187
|
*/
|
|
4159
|
-
const versioning = new AuroDependencyVersioning$
|
|
4188
|
+
const versioning = new AuroDependencyVersioning$2();
|
|
4160
4189
|
|
|
4161
4190
|
/**
|
|
4162
4191
|
* @private
|
|
@@ -4760,14 +4789,13 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4760
4789
|
* @returns {void}
|
|
4761
4790
|
*/
|
|
4762
4791
|
handleTriggerContentSlotChange(event) {
|
|
4763
|
-
|
|
4764
4792
|
this.floater.handleTriggerTabIndex();
|
|
4765
4793
|
|
|
4766
4794
|
// Get the trigger
|
|
4767
4795
|
const trigger = this.shadowRoot.querySelector('#trigger');
|
|
4768
4796
|
|
|
4769
4797
|
// Get the trigger slot
|
|
4770
|
-
const triggerSlot = this.shadowRoot.querySelector('.
|
|
4798
|
+
const triggerSlot = this.shadowRoot.querySelector('.triggerContentWrapper slot');
|
|
4771
4799
|
|
|
4772
4800
|
// If there's a trigger slot
|
|
4773
4801
|
if (triggerSlot) {
|
|
@@ -4839,29 +4867,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4839
4867
|
}
|
|
4840
4868
|
}
|
|
4841
4869
|
|
|
4842
|
-
/**
|
|
4843
|
-
* @private
|
|
4844
|
-
* @method handleLabelSlotChange
|
|
4845
|
-
* @param {event} event - The event object representing the slot change.
|
|
4846
|
-
* @description Handles the slot change event for the label slot.
|
|
4847
|
-
*/
|
|
4848
|
-
handleLabelSlotChange (event) {
|
|
4849
|
-
|
|
4850
|
-
// Get the nodes from the event
|
|
4851
|
-
const nodes = event.target.assignedNodes();
|
|
4852
|
-
|
|
4853
|
-
// Guard clause for no nodes
|
|
4854
|
-
if (!nodes) {
|
|
4855
|
-
return;
|
|
4856
|
-
}
|
|
4857
|
-
|
|
4858
|
-
// Convert the nodes to a measurable array so we can get the length
|
|
4859
|
-
const nodesArr = Array.from(nodes);
|
|
4860
|
-
|
|
4861
|
-
// If the nodes array has a length, the dropdown is labeled
|
|
4862
|
-
this.labeled = nodesArr.length > 0;
|
|
4863
|
-
}
|
|
4864
|
-
|
|
4865
4870
|
/**
|
|
4866
4871
|
* Returns HTML for the common portion of the layouts.
|
|
4867
4872
|
* @private
|
|
@@ -4876,22 +4881,17 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4876
4881
|
class="${classMap(this.commonWrapperClasses)}" part="wrapper"
|
|
4877
4882
|
tabindex="${this.tabIndex}"
|
|
4878
4883
|
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
4879
|
-
aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
4880
|
-
aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
4884
|
+
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
4885
|
+
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
4881
4886
|
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
4882
4887
|
@focusin="${this.handleFocusin}"
|
|
4883
4888
|
@blur="${this.handleFocusOut}">
|
|
4884
|
-
<div class="triggerContentWrapper">
|
|
4885
|
-
<
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
<div class="triggerContent">
|
|
4889
|
-
<slot
|
|
4890
|
-
name="trigger"
|
|
4891
|
-
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
4892
|
-
</div>
|
|
4889
|
+
<div class="triggerContentWrapper" id="triggerLabel">
|
|
4890
|
+
<slot
|
|
4891
|
+
name="trigger"
|
|
4892
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
4893
4893
|
</div>
|
|
4894
|
-
${this.chevron
|
|
4894
|
+
${this.chevron ? html`
|
|
4895
4895
|
<div
|
|
4896
4896
|
id="showStateIcon"
|
|
4897
4897
|
class="chevron"
|
|
@@ -4912,6 +4912,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4912
4912
|
<div id="bibSizer" part="size"></div>
|
|
4913
4913
|
<${this.dropdownBibTag}
|
|
4914
4914
|
id="bib"
|
|
4915
|
+
shape="${this.shape}"
|
|
4915
4916
|
?data-show="${this.isPopoverVisible}"
|
|
4916
4917
|
?isfullscreen="${this.isBibFullscreen}"
|
|
4917
4918
|
?common="${this.common}"
|
|
@@ -4931,62 +4932,13 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
4931
4932
|
* @returns {html} - Returns HTML for the classic layout.
|
|
4932
4933
|
*/
|
|
4933
4934
|
renderLayoutClassic() {
|
|
4935
|
+
// TODO: check with Doug why this was never used?
|
|
4936
|
+
const helpTextClasses = {
|
|
4937
|
+
'helpText': true
|
|
4938
|
+
};
|
|
4934
4939
|
|
|
4935
4940
|
return html`
|
|
4936
|
-
|
|
4937
|
-
<div
|
|
4938
|
-
id="trigger"
|
|
4939
|
-
class="trigger"
|
|
4940
|
-
part="trigger"
|
|
4941
|
-
tabindex="${this.tabIndex}"
|
|
4942
|
-
?showBorder="${this.showTriggerBorders}"
|
|
4943
|
-
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
4944
|
-
aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
4945
|
-
aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
4946
|
-
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
4947
|
-
>
|
|
4948
|
-
<div class="triggerContentWrapper">
|
|
4949
|
-
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
4950
|
-
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
4951
|
-
</label>
|
|
4952
|
-
<div class="triggerContent">
|
|
4953
|
-
<slot
|
|
4954
|
-
name="trigger"
|
|
4955
|
-
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
4956
|
-
</div>
|
|
4957
|
-
</div>
|
|
4958
|
-
${this.chevron || this.common ? html`
|
|
4959
|
-
<div
|
|
4960
|
-
id="showStateIcon"
|
|
4961
|
-
part="chevron">
|
|
4962
|
-
<${this.iconTag}
|
|
4963
|
-
category="interface"
|
|
4964
|
-
name="chevron-down"
|
|
4965
|
-
?onDark="${this.onDark}"
|
|
4966
|
-
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
4967
|
-
>
|
|
4968
|
-
</${this.iconTag}>
|
|
4969
|
-
</div>
|
|
4970
|
-
` : undefined }
|
|
4971
|
-
</div>
|
|
4972
|
-
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
4973
|
-
<slot name="helpText"></slot>
|
|
4974
|
-
</${this.helpTextTag}>
|
|
4975
|
-
|
|
4976
|
-
<div id="bibSizer" part="size"></div>
|
|
4977
|
-
<${this.dropdownBibTag}
|
|
4978
|
-
id="bib"
|
|
4979
|
-
?data-show="${this.isPopoverVisible}"
|
|
4980
|
-
?isfullscreen="${this.isBibFullscreen}"
|
|
4981
|
-
?common="${this.common}"
|
|
4982
|
-
?rounded="${this.common || this.rounded}"
|
|
4983
|
-
?inset="${this.common || this.inset}"
|
|
4984
|
-
>
|
|
4985
|
-
<div class="slotContent">
|
|
4986
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
4987
|
-
</div>
|
|
4988
|
-
</${this.dropdownBibTag}>
|
|
4989
|
-
</div>
|
|
4941
|
+
${this.renderBasicHtml(helpTextClasses)}
|
|
4990
4942
|
`;
|
|
4991
4943
|
}
|
|
4992
4944
|
|
|
@@ -5054,9 +5006,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
5054
5006
|
|
|
5055
5007
|
var dropdownVersion = '3.0.0';
|
|
5056
5008
|
|
|
5057
|
-
var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:
|
|
5009
|
+
var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
5058
5010
|
|
|
5059
|
-
var styleCss$4 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}`;
|
|
5011
|
+
var styleCss$4$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{overflow:hidden;width:100%;padding:0;border:0;background:unset;outline:none;text-overflow:ellipsis}.displayValue{display:none}.displayValue.hasContent:is(.withValue):not(.hasFocus){display:flex;align-items:center}.accents:not(.util_displayHidden){display:flex;flex-direction:row;align-items:center;justify-content:center}`;
|
|
5060
5012
|
|
|
5061
5013
|
var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}: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}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
5062
5014
|
|
|
@@ -5064,15 +5016,15 @@ var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);b
|
|
|
5064
5016
|
|
|
5065
5017
|
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: transparent}`;
|
|
5066
5018
|
|
|
5067
|
-
var classicStyleCss = css`.layout-classic{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}.layout-classic .mainContent{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center;cursor:text}.layout-classic .mainContent label{padding-top:4px;cursor:text;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{height:auto;padding-bottom:8px;font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);justify-self:flex-start;line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0;line-height:0}.layout-classic .
|
|
5019
|
+
var classicStyleCss = css`.layout-classic{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}.layout-classic .mainContent{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center;cursor:text}.layout-classic .mainContent label{padding-top:4px;cursor:text;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{height:auto;padding-bottom:8px;font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);justify-self:flex-start;line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0;line-height:0}.layout-classic .accents.left{padding-left:8px}.layout-classic .accents.right{padding-right:8px}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}`;
|
|
5068
5020
|
|
|
5069
5021
|
var classicColorCss = css`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.layout-classic:focus-within{--ds-auro-input-outline-color: var(--ds-auro-input-border-color)}:host(:not([ondark])) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
5070
5022
|
|
|
5071
|
-
var emphasizedStyleCss = css`:host
|
|
5023
|
+
var emphasizedStyleCss = css`:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-emphasized,.layout-emphasized-left,.layout-emphasized-right{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-emphasized label,.layout-emphasized-left label,.layout-emphasized-right label{text-transform:uppercase;font-size:32px;line-height:38px}.layout-emphasized input,.layout-emphasized-left input,.layout-emphasized-right input{text-align:center;font-size:14px;line-height:20px}.layout-emphasized .mainContent,.layout-emphasized-left .mainContent,.layout-emphasized-right .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-emphasized .displayValue,.layout-emphasized-left .displayValue,.layout-emphasized-right .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-emphasized .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-left .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-right .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-emphasized .displayValueWrapper,.layout-emphasized-left .displayValueWrapper,.layout-emphasized-right .displayValueWrapper{transform:translateY(-50%)}.layout-emphasized.withValue,.layout-emphasized-left.withValue,.layout-emphasized-right.withValue{justify-content:flex-start}.layout-emphasized.withValue label,.layout-emphasized-left.withValue label,.layout-emphasized-right.withValue label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized.withValue input,.layout-emphasized-left.withValue input,.layout-emphasized-right.withValue input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-left:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-right:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{justify-content:flex-start}.layout-emphasized:focus-within label,.layout-emphasized-left:focus-within label,.layout-emphasized-right:focus-within label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized:focus-within input,.layout-emphasized-left:focus-within input,.layout-emphasized-right:focus-within input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:focus-within .alertNotification,.layout-emphasized-left:focus-within .alertNotification,.layout-emphasized-right:focus-within .alertNotification{display:none}.layout-emphasized .accents.left,.layout-emphasized-left .accents.left,.layout-emphasized-right .accents.left{padding-left:24px}.layout-emphasized .accents.right,.layout-emphasized-left .accents.right,.layout-emphasized-right .accents.right{padding-right:24px}.layout-emphasized-left .alertNotification{margin-right:8px}.layout-emphasized-left .clear{margin-left:8px}.layout-emphasized-right .alertNotification{margin-left:8px}.layout-emphasized-right .clear{margin-right:8px}`;
|
|
5072
5024
|
|
|
5073
5025
|
var emphasizedColorCss = css`.layout-emphasized:focus-within,.layout-emphasized.withValue,.layout-emphasized-left:focus-within,.layout-emphasized-left.withValue,.layout-emphasized-right:focus-within,.layout-emphasized-right.withValue{--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
|
|
5074
5026
|
|
|
5075
|
-
var snowflakeStyleCss = css`:root{--ds-advanced-color-button-flat-text: #676767;--ds-advanced-color-button-flat-text-disabled: #d0d0d0;--ds-advanced-color-button-flat-text-hover: #525252;--ds-advanced-color-button-flat-text-inverse: #ffffff;--ds-advanced-color-button-flat-text-inverse-disabled: #7e8894;--ds-advanced-color-button-flat-text-inverse-hover: #adadad;--ds-advanced-color-button-ghost-background-hover: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-ghost-background-inverse-hover: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-ghost-text: #01426a;--ds-advanced-color-button-ghost-text-disabled: #d0d0d0;--ds-advanced-color-button-ghost-text-inverse: #ffffff;--ds-advanced-color-button-ghost-text-inverse-disabled: #7e8894;--ds-advanced-color-button-primary-background: #01426a;--ds-advanced-color-button-primary-background-disabled: #acc9e2;--ds-advanced-color-button-primary-background-hover: #00274a;--ds-advanced-color-button-primary-background-inactive: #cfe0ef;--ds-advanced-color-button-primary-background-inactive-hover: #89b2d4;--ds-advanced-color-button-primary-background-inverse: #ffffff;--ds-advanced-color-button-primary-background-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-background-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-border: #01426a;--ds-advanced-color-button-primary-border-disabled: #acc9e2;--ds-advanced-color-button-primary-border-hover: #00274a;--ds-advanced-color-button-primary-border-inverse: #ffffff;--ds-advanced-color-button-primary-border-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-border-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-text: #ffffff;--ds-advanced-color-button-primary-text-disabled: #ffffff;--ds-advanced-color-button-primary-text-inverse: #01426a;--ds-advanced-color-button-secondary-background: #ffffff;--ds-advanced-color-button-secondary-background-disabled: #f7f7f7;--ds-advanced-color-button-secondary-background-hover: #f2f2f2;--ds-advanced-color-button-secondary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-secondary-border: #01426a;--ds-advanced-color-button-secondary-border-hover: #00274a;--ds-advanced-color-button-secondary-border-disabled: #cfe0ef;--ds-advanced-color-button-secondary-border-inverse: #ffffff;--ds-advanced-color-button-secondary-border-inverse-disabled: #dddddd;--ds-advanced-color-button-secondary-text: #01426a;--ds-advanced-color-button-secondary-text-hover: #00274a;--ds-advanced-color-button-secondary-text-inverse: #ffffff;--ds-advanced-color-button-tertiary-background: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-tertiary-background-hover: rgba(0, 0, 0, 0.1);--ds-advanced-color-button-tertiary-background-inverse: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-tertiary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-tertiary-text: #01426a;--ds-advanced-color-button-tertiary-text-hover: #00274a;--ds-advanced-color-button-tertiary-text-inverse: #ffffff;--ds-advanced-color-accents-accent1: #b2d583;--ds-advanced-color-accents-accent1-bold: #92c450;--ds-advanced-color-accents-accent1-muted: #deedca;--ds-advanced-color-accents-accent2: #fad362;--ds-advanced-color-accents-accent2-bold: #f2ba14;--ds-advanced-color-accents-accent2-muted: #fde398;--ds-advanced-color-accents-accent3: #63beff;--ds-advanced-color-accents-accent3-bold: #0074ca;--ds-advanced-color-accents-accent3-muted: #aedeff;--ds-advanced-color-accents-accent4: #feb17a;--ds-advanced-color-accents-accent4-bold: #fb7f24;--ds-advanced-color-accents-accent4-muted: #ffe2cf;--ds-advanced-color-accents-transparency: rgba(0, 0, 0, 0.1);--ds-advanced-color-accents-transparency-inverse: rgba(255, 255, 255, 0.2);--ds-advanced-color-avatar-gradient-bottom: #cfe0ef;--ds-advanced-color-avatar-gradient-top: #6899c6;--ds-advanced-color-boolean-disabled-inverse: #7e8894;--ds-advanced-color-boolean-error: #e31f26;--ds-advanced-color-boolean-error-hover: #b1161c;--ds-advanced-color-boolean-error-inverse: #f9a4a8;--ds-advanced-color-boolean-error-inverse-hover: #f15f65;--ds-advanced-color-boolean-indicator: #ffffff;--ds-advanced-color-boolean-indicator-inverse: #00274a;--ds-advanced-color-boolean-isfalse: #ffffff;--ds-advanced-color-boolean-isfalse-border: #585e67;--ds-advanced-color-boolean-isfalse-border-inverse: #ffffff;--ds-advanced-color-boolean-isfalse-hover: #f2f2f2;--ds-advanced-color-boolean-isfalse-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-boolean-isfalse-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-boolean-istrue: #01426a;--ds-advanced-color-boolean-istrue-hover: #00274a;--ds-advanced-color-boolean-istrue-inverse: #ffffff;--ds-advanced-color-boolean-istrue-inverse-hover: rgba(255, 255, 255, 0.7);--ds-advanced-color-flightline-indicator: #00274a;--ds-advanced-color-flightline-line: #00274a;--ds-advanced-color-hyperlink-text: #2875b5;--ds-advanced-color-hyperlink-text-hover: #01426a;--ds-advanced-color-hyperlink-text-inverse: #ffffff;--ds-advanced-color-hyperlink-text-inverse-hover: #ebf3f9;--ds-advanced-color-shared-background: #ffffff;--ds-advanced-color-shared-background-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-shared-background-inverse-disabled: rgba(255, 255, 255, 0.1);--ds-advanced-color-shared-background-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-shared-background-muted: #f7f7f7;--ds-advanced-color-shared-background-strong: #7e7e7e;--ds-advanced-color-shared-scrim: rgba(0, 0, 0, 0.5);--ds-advanced-color-shared-text-accent: #2875b5;--ds-advanced-color-skeleton-background: #f7f8fa;--ds-advanced-color-skeleton-wave: #e4e8ec;--ds-advanced-color-state-background-disabled: #dddddd;--ds-advanced-color-state-background-hover: #f2f2f2;--ds-advanced-color-state-background-inverse-disabled: #7e8894;--ds-advanced-color-state-error-inverse: #f9a4a8;--ds-advanced-color-state-focused: #01426a;--ds-advanced-color-state-focused-inverse: #ffffff;--ds-advanced-color-state-selected: #01426a;--ds-advanced-color-state-selected-hover: #00274a;--ds-basic-color-border-bold: #585e67;--ds-basic-color-border-brand: #00274a;--ds-basic-color-border-default: #959595;--ds-basic-color-border-divider: rgba(0, 0, 0, 0.15);--ds-basic-color-border-divider-inverse: rgba(255, 255, 255, 0.4);--ds-basic-color-border-inverse: #ffffff;--ds-basic-color-border-subtle: #dddddd;--ds-basic-color-brand-primary: #01426a;--ds-basic-color-brand-primary-bold: #00274a;--ds-basic-color-brand-primary-muted: #ebf3f9;--ds-basic-color-brand-primary-subtle: #2875b5;--ds-basic-color-brand-secondary: #5de3f7;--ds-basic-color-brand-secondary-bold: #18c3dd;--ds-basic-color-brand-secondary-muted: #ebfafd;--ds-basic-color-brand-secondary-subtle: #b4eff9;--ds-basic-color-brand-tertiary: #a3cd6a;--ds-basic-color-brand-tertiary-bold: #7daf3b;--ds-basic-color-brand-tertiary-muted: #eaf3dd;--ds-basic-color-brand-tertiary-subtle: #c9e1a7;--ds-basic-color-fare-basiceconomy: #97eaf8;--ds-basic-color-fare-business: #01426a;--ds-basic-color-fare-economy: #0074ca;--ds-basic-color-fare-first: #00274a;--ds-basic-color-fare-premiumeconomy: #005154;--ds-basic-color-page-background-default: #ebfafd;--ds-basic-color-page-background-utility: #ffffff;--ds-basic-color-status-default: #afb9c6;--ds-basic-color-status-error: #e31f26;--ds-basic-color-status-error-subtle: #fbc6c6;--ds-basic-color-status-info: #01426a;--ds-basic-color-status-info-subtle: #ebf3f9;--ds-basic-color-status-success: #447a1f;--ds-basic-color-status-success-subtle: #d6eac7;--ds-basic-color-status-warning: #fac200;--ds-basic-color-status-warning-subtle: #fff0b2;--ds-basic-color-surface-accent1: #5de3f7;--ds-basic-color-surface-accent1-muted: #ebfafd;--ds-basic-color-surface-accent1-subtle: #b4eff9;--ds-basic-color-surface-accent2: #a3cd6a;--ds-basic-color-surface-accent2-muted: #eaf3dd;--ds-basic-color-surface-default: #ffffff;--ds-basic-color-surface-inverse: #00274a;--ds-basic-color-surface-inverse-subtle: #2875b5;--ds-basic-color-surface-neutral-medium: #c5c5c5;--ds-basic-color-surface-neutral-subtle: #f7f7f7;--ds-basic-color-texticon-accent1: #265688;--ds-basic-color-texticon-default: #2a2a2a;--ds-basic-color-texticon-disabled: #d0d0d0;--ds-basic-color-texticon-inverse: #ffffff;--ds-basic-color-texticon-inverse-disabled: #7e8894;--ds-basic-color-texticon-inverse-muted: #ccd2db;--ds-basic-color-texticon-muted: #676767;--ds-basic-color-tier-program-loungetier-lounge: #01426a;--ds-basic-color-tier-program-loungetier-loungeplus: #53b390;--ds-basic-color-tier-program-loyaltytier-bronze: #d99f6d;--ds-basic-color-tier-program-loyaltytier-bronze-muted: #eed4be;--ds-basic-color-tier-program-loyaltytier-cobalt: #030772;--ds-basic-color-tier-program-loyaltytier-cobalt-muted: #a9b6d6;--ds-basic-color-tier-program-loyaltytier-copper: #cb7457;--ds-basic-color-tier-program-loyaltytier-copper-muted: #e7bfb1;--ds-basic-color-tier-program-loyaltytier-gold: #fbdc7a;--ds-basic-color-tier-program-loyaltytier-gold-muted: #fdefc4;--ds-basic-color-tier-program-loyaltytier-nickel: #abaab1;--ds-basic-color-tier-program-loyaltytier-nickel-muted: #e5e4e7;--ds-basic-color-tier-program-loyaltytier-platinum: #bcb8a4;--ds-basic-color-tier-program-loyaltytier-platinum-muted: #dad8cd;--ds-basic-color-tier-program-loyaltytier-silver: #e4e9ec;--ds-basic-color-tier-program-loyaltytier-silver-muted: #f9fafb;--ds-basic-color-tier-program-loyaltytier-titanium: #282828;--ds-basic-color-tier-program-loyaltytier-titanium-muted: #545454;--ds-basic-color-tier-program-oneworld-emerald: #139142;--ds-basic-color-tier-program-oneworld-ruby: #a41d4a;--ds-basic-color-tier-program-oneworld-sapphire: #015daa;--ds-basic-type-brand-family-primary: "AS Circular";--ds-basic-type-brand-family-secondary: "Good OT";--ds-basic-type-brand-line-height-primary: "1.3";--ds-basic-type-brand-line-height-secondary: "1";--ds-basic-type-brand-letter-spacing-primary: "0";--ds-basic-type-brand-letter-spacing-secondary: "0.05em";--ds-basic-type-brand-letter-spacing-tertiary: "0.10em";--ds-basic-type-family-accent: "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-body: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-display: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-heading: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-letter-spacing-accent: "0.05em";--ds-basic-type-letter-spacing-accent2: "0.10em";--ds-basic-type-letter-spacing-body: "0";--ds-basic-type-letter-spacing-display: "0";--ds-basic-type-letter-spacing-heading: "0";--ds-basic-type-line-height-accent: "1.3";--ds-basic-type-line-height-accent2: "1";--ds-basic-type-line-height-body: "1.63";--ds-basic-type-line-height-body2: "1.5";--ds-basic-type-line-height-body3: "1.25";--ds-basic-type-line-height-body4: "1";--ds-basic-type-line-height-body5: "0.88";--ds-basic-type-line-height-display: "1.3";--ds-basic-type-line-height-heading: "1.3";--ds-basic-type-weight-accent: "450";--ds-basic-type-weight-accent2: "500";--ds-basic-type-weight-body: "450";--ds-basic-type-weight-display: "300";--ds-basic-type-weight-heading: "300";--ds-basic-type-weight-heading2: "450"}:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-snowflake{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-snowflake label{font-size:var(--ds-text-body-size-xs);line-height:20px}.layout-snowflake input{text-align:center;font-size:18px;line-height:26px}.layout-snowflake .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-snowflake .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-snowflake .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-snowflake .displayValueWrapper{transform:translateY(-50%)}.layout-snowflake .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-snowflake.withValue{justify-content:flex-start}.layout-snowflake:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-snowflake:focus-within{justify-content:flex-start}.layout-snowflake:focus-within .alertNotification{display:none}.layout-snowflake .accents{width:24px}.layout-snowflake .accents.left{padding-left:24px}.layout-snowflake .accents.right{padding-right:24px}.helpTextWrapper{text-align:center}`;
|
|
5027
|
+
var snowflakeStyleCss = css`:root{--ds-advanced-color-button-flat-text: #676767;--ds-advanced-color-button-flat-text-disabled: #d0d0d0;--ds-advanced-color-button-flat-text-hover: #525252;--ds-advanced-color-button-flat-text-inverse: #ffffff;--ds-advanced-color-button-flat-text-inverse-disabled: #7e8894;--ds-advanced-color-button-flat-text-inverse-hover: #adadad;--ds-advanced-color-button-ghost-background-hover: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-ghost-background-inverse-hover: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-ghost-text: #01426a;--ds-advanced-color-button-ghost-text-disabled: #d0d0d0;--ds-advanced-color-button-ghost-text-inverse: #ffffff;--ds-advanced-color-button-ghost-text-inverse-disabled: #7e8894;--ds-advanced-color-button-primary-background: #01426a;--ds-advanced-color-button-primary-background-disabled: #acc9e2;--ds-advanced-color-button-primary-background-hover: #00274a;--ds-advanced-color-button-primary-background-inactive: #cfe0ef;--ds-advanced-color-button-primary-background-inactive-hover: #89b2d4;--ds-advanced-color-button-primary-background-inverse: #ffffff;--ds-advanced-color-button-primary-background-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-background-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-border: #01426a;--ds-advanced-color-button-primary-border-disabled: #acc9e2;--ds-advanced-color-button-primary-border-hover: #00274a;--ds-advanced-color-button-primary-border-inverse: #ffffff;--ds-advanced-color-button-primary-border-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-border-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-text: #ffffff;--ds-advanced-color-button-primary-text-disabled: #ffffff;--ds-advanced-color-button-primary-text-inverse: #01426a;--ds-advanced-color-button-secondary-background: #ffffff;--ds-advanced-color-button-secondary-background-disabled: #f7f7f7;--ds-advanced-color-button-secondary-background-hover: #f2f2f2;--ds-advanced-color-button-secondary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-secondary-border: #01426a;--ds-advanced-color-button-secondary-border-hover: #00274a;--ds-advanced-color-button-secondary-border-disabled: #cfe0ef;--ds-advanced-color-button-secondary-border-inverse: #ffffff;--ds-advanced-color-button-secondary-border-inverse-disabled: #dddddd;--ds-advanced-color-button-secondary-text: #01426a;--ds-advanced-color-button-secondary-text-hover: #00274a;--ds-advanced-color-button-secondary-text-inverse: #ffffff;--ds-advanced-color-button-tertiary-background: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-tertiary-background-hover: rgba(0, 0, 0, 0.1);--ds-advanced-color-button-tertiary-background-inverse: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-tertiary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-tertiary-text: #01426a;--ds-advanced-color-button-tertiary-text-hover: #00274a;--ds-advanced-color-button-tertiary-text-inverse: #ffffff;--ds-advanced-color-accents-accent1: #b2d583;--ds-advanced-color-accents-accent1-bold: #92c450;--ds-advanced-color-accents-accent1-muted: #deedca;--ds-advanced-color-accents-accent2: #fad362;--ds-advanced-color-accents-accent2-bold: #f2ba14;--ds-advanced-color-accents-accent2-muted: #fde398;--ds-advanced-color-accents-accent3: #63beff;--ds-advanced-color-accents-accent3-bold: #0074ca;--ds-advanced-color-accents-accent3-muted: #aedeff;--ds-advanced-color-accents-accent4: #feb17a;--ds-advanced-color-accents-accent4-bold: #fb7f24;--ds-advanced-color-accents-accent4-muted: #ffe2cf;--ds-advanced-color-accents-transparency: rgba(0, 0, 0, 0.1);--ds-advanced-color-accents-transparency-inverse: rgba(255, 255, 255, 0.2);--ds-advanced-color-avatar-gradient-bottom: #cfe0ef;--ds-advanced-color-avatar-gradient-top: #6899c6;--ds-advanced-color-boolean-disabled-inverse: #7e8894;--ds-advanced-color-boolean-error: #e31f26;--ds-advanced-color-boolean-error-hover: #b1161c;--ds-advanced-color-boolean-error-inverse: #f9a4a8;--ds-advanced-color-boolean-error-inverse-hover: #f15f65;--ds-advanced-color-boolean-indicator: #ffffff;--ds-advanced-color-boolean-indicator-inverse: #00274a;--ds-advanced-color-boolean-isfalse: #ffffff;--ds-advanced-color-boolean-isfalse-border: #585e67;--ds-advanced-color-boolean-isfalse-border-inverse: #ffffff;--ds-advanced-color-boolean-isfalse-hover: #f2f2f2;--ds-advanced-color-boolean-isfalse-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-boolean-isfalse-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-boolean-istrue: #01426a;--ds-advanced-color-boolean-istrue-hover: #00274a;--ds-advanced-color-boolean-istrue-inverse: #ffffff;--ds-advanced-color-boolean-istrue-inverse-hover: rgba(255, 255, 255, 0.7);--ds-advanced-color-flightline-indicator: #00274a;--ds-advanced-color-flightline-line: #00274a;--ds-advanced-color-hyperlink-text: #2875b5;--ds-advanced-color-hyperlink-text-hover: #01426a;--ds-advanced-color-hyperlink-text-inverse: #ffffff;--ds-advanced-color-hyperlink-text-inverse-hover: #ebf3f9;--ds-advanced-color-shared-background: #ffffff;--ds-advanced-color-shared-background-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-shared-background-inverse-disabled: rgba(255, 255, 255, 0.1);--ds-advanced-color-shared-background-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-shared-background-muted: #f7f7f7;--ds-advanced-color-shared-background-strong: #7e7e7e;--ds-advanced-color-shared-scrim: rgba(0, 0, 0, 0.5);--ds-advanced-color-shared-text-accent: #2875b5;--ds-advanced-color-skeleton-background: #f7f8fa;--ds-advanced-color-skeleton-wave: #e4e8ec;--ds-advanced-color-state-background-disabled: #dddddd;--ds-advanced-color-state-background-hover: #f2f2f2;--ds-advanced-color-state-background-inverse-disabled: #7e8894;--ds-advanced-color-state-error-inverse: #f9a4a8;--ds-advanced-color-state-focused: #01426a;--ds-advanced-color-state-focused-inverse: #ffffff;--ds-advanced-color-state-selected: #01426a;--ds-advanced-color-state-selected-hover: #00274a;--ds-basic-color-border-bold: #585e67;--ds-basic-color-border-brand: #00274a;--ds-basic-color-border-default: #959595;--ds-basic-color-border-divider: rgba(0, 0, 0, 0.15);--ds-basic-color-border-divider-inverse: rgba(255, 255, 255, 0.4);--ds-basic-color-border-inverse: #ffffff;--ds-basic-color-border-subtle: #dddddd;--ds-basic-color-brand-primary: #01426a;--ds-basic-color-brand-primary-bold: #00274a;--ds-basic-color-brand-primary-muted: #ebf3f9;--ds-basic-color-brand-primary-subtle: #2875b5;--ds-basic-color-brand-secondary: #5de3f7;--ds-basic-color-brand-secondary-bold: #18c3dd;--ds-basic-color-brand-secondary-muted: #ebfafd;--ds-basic-color-brand-secondary-subtle: #b4eff9;--ds-basic-color-brand-tertiary: #a3cd6a;--ds-basic-color-brand-tertiary-bold: #7daf3b;--ds-basic-color-brand-tertiary-muted: #eaf3dd;--ds-basic-color-brand-tertiary-subtle: #c9e1a7;--ds-basic-color-fare-basiceconomy: #97eaf8;--ds-basic-color-fare-business: #01426a;--ds-basic-color-fare-economy: #0074ca;--ds-basic-color-fare-first: #00274a;--ds-basic-color-fare-premiumeconomy: #005154;--ds-basic-color-page-background-default: #ebfafd;--ds-basic-color-page-background-utility: #ffffff;--ds-basic-color-status-default: #afb9c6;--ds-basic-color-status-error: #e31f26;--ds-basic-color-status-error-subtle: #fbc6c6;--ds-basic-color-status-info: #01426a;--ds-basic-color-status-info-subtle: #ebf3f9;--ds-basic-color-status-success: #447a1f;--ds-basic-color-status-success-subtle: #d6eac7;--ds-basic-color-status-warning: #fac200;--ds-basic-color-status-warning-subtle: #fff0b2;--ds-basic-color-surface-accent1: #5de3f7;--ds-basic-color-surface-accent1-muted: #ebfafd;--ds-basic-color-surface-accent1-subtle: #b4eff9;--ds-basic-color-surface-accent2: #a3cd6a;--ds-basic-color-surface-accent2-muted: #eaf3dd;--ds-basic-color-surface-default: #ffffff;--ds-basic-color-surface-inverse: #00274a;--ds-basic-color-surface-inverse-subtle: #2875b5;--ds-basic-color-surface-neutral-medium: #c5c5c5;--ds-basic-color-surface-neutral-subtle: #f7f7f7;--ds-basic-color-texticon-accent1: #265688;--ds-basic-color-texticon-default: #2a2a2a;--ds-basic-color-texticon-disabled: #d0d0d0;--ds-basic-color-texticon-inverse: #ffffff;--ds-basic-color-texticon-inverse-disabled: #7e8894;--ds-basic-color-texticon-inverse-muted: #ccd2db;--ds-basic-color-texticon-muted: #676767;--ds-basic-color-tier-program-loungetier-lounge: #01426a;--ds-basic-color-tier-program-loungetier-loungeplus: #53b390;--ds-basic-color-tier-program-loyaltytier-bronze: #d99f6d;--ds-basic-color-tier-program-loyaltytier-bronze-muted: #eed4be;--ds-basic-color-tier-program-loyaltytier-cobalt: #030772;--ds-basic-color-tier-program-loyaltytier-cobalt-muted: #a9b6d6;--ds-basic-color-tier-program-loyaltytier-copper: #cb7457;--ds-basic-color-tier-program-loyaltytier-copper-muted: #e7bfb1;--ds-basic-color-tier-program-loyaltytier-gold: #fbdc7a;--ds-basic-color-tier-program-loyaltytier-gold-muted: #fdefc4;--ds-basic-color-tier-program-loyaltytier-nickel: #abaab1;--ds-basic-color-tier-program-loyaltytier-nickel-muted: #e5e4e7;--ds-basic-color-tier-program-loyaltytier-platinum: #bcb8a4;--ds-basic-color-tier-program-loyaltytier-platinum-muted: #dad8cd;--ds-basic-color-tier-program-loyaltytier-silver: #e4e9ec;--ds-basic-color-tier-program-loyaltytier-silver-muted: #f9fafb;--ds-basic-color-tier-program-loyaltytier-titanium: #282828;--ds-basic-color-tier-program-loyaltytier-titanium-muted: #545454;--ds-basic-color-tier-program-oneworld-emerald: #139142;--ds-basic-color-tier-program-oneworld-ruby: #a41d4a;--ds-basic-color-tier-program-oneworld-sapphire: #015daa;--ds-basic-type-brand-family-primary: "AS Circular";--ds-basic-type-brand-family-secondary: "Good OT";--ds-basic-type-brand-line-height-primary: "1.3";--ds-basic-type-brand-line-height-secondary: "1";--ds-basic-type-brand-letter-spacing-primary: "0";--ds-basic-type-brand-letter-spacing-secondary: "0.05em";--ds-basic-type-brand-letter-spacing-tertiary: "0.10em";--ds-basic-type-family-accent: "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-body: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-display: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-heading: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-letter-spacing-accent: "0.05em";--ds-basic-type-letter-spacing-accent2: "0.10em";--ds-basic-type-letter-spacing-body: "0";--ds-basic-type-letter-spacing-display: "0";--ds-basic-type-letter-spacing-heading: "0";--ds-basic-type-line-height-accent: "1.3";--ds-basic-type-line-height-accent2: "1";--ds-basic-type-line-height-body: "1.63";--ds-basic-type-line-height-body2: "1.5";--ds-basic-type-line-height-body3: "1.25";--ds-basic-type-line-height-body4: "1";--ds-basic-type-line-height-body5: "0.88";--ds-basic-type-line-height-display: "1.3";--ds-basic-type-line-height-heading: "1.3";--ds-basic-type-weight-accent: "450";--ds-basic-type-weight-accent2: "500";--ds-basic-type-weight-body: "450";--ds-basic-type-weight-display: "300";--ds-basic-type-weight-heading: "300";--ds-basic-type-weight-heading2: "450"}:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-snowflake{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-snowflake label{font-size:var(--ds-text-body-size-xs);line-height:20px}.layout-snowflake input{text-align:center;font-size:18px;line-height:26px}.layout-snowflake .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-snowflake .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-snowflake .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-snowflake .displayValueWrapper{transform:translateY(-50%)}.layout-snowflake.withValue{justify-content:flex-start}.layout-snowflake:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-snowflake:focus-within{justify-content:flex-start}.layout-snowflake:focus-within .alertNotification{display:none}.layout-snowflake .accents{width:24px}.layout-snowflake .accents.left{padding-left:24px}.layout-snowflake .accents.right{padding-right:24px}.helpTextWrapper{text-align:center}`;
|
|
5076
5028
|
|
|
5077
5029
|
const watchedItems = new Set();
|
|
5078
5030
|
|
|
@@ -5135,6 +5087,8 @@ const stringsES = {
|
|
|
5135
5087
|
'dateMM': 'Ingrese una fecha completa en el formato MM',
|
|
5136
5088
|
'dateDD': 'Ingrese una fecha completa en el formato DD',
|
|
5137
5089
|
'clearInput': 'Borrar campo de entrada',
|
|
5090
|
+
'showPassword': 'Mostrar contraseña',
|
|
5091
|
+
'hidePassword': 'Ocultar contraseña'
|
|
5138
5092
|
};
|
|
5139
5093
|
|
|
5140
5094
|
const stringsEN = {
|
|
@@ -5159,6 +5113,8 @@ const stringsEN = {
|
|
|
5159
5113
|
'dateMM': 'Please enter a complete date in the format MM',
|
|
5160
5114
|
'dateDD': 'Please enter a complete date in the format DD',
|
|
5161
5115
|
'clearInput': 'Clear input field',
|
|
5116
|
+
'showPassword': 'Show password',
|
|
5117
|
+
'hidePassword': 'Hide password'
|
|
5162
5118
|
};
|
|
5163
5119
|
|
|
5164
5120
|
/**
|
|
@@ -9453,7 +9409,7 @@ const {
|
|
|
9453
9409
|
|
|
9454
9410
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
9455
9411
|
|
|
9456
|
-
let AuroLibraryRuntimeUtils$
|
|
9412
|
+
let AuroLibraryRuntimeUtils$3$1 = class AuroLibraryRuntimeUtils {
|
|
9457
9413
|
|
|
9458
9414
|
/* eslint-disable jsdoc/require-param */
|
|
9459
9415
|
|
|
@@ -9523,7 +9479,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
9523
9479
|
class AuroFormValidation {
|
|
9524
9480
|
|
|
9525
9481
|
constructor() {
|
|
9526
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
9482
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3$1();
|
|
9527
9483
|
}
|
|
9528
9484
|
|
|
9529
9485
|
/**
|
|
@@ -9802,7 +9758,9 @@ class AuroFormValidation {
|
|
|
9802
9758
|
elem.validity = this.auroInputElements[0].validity;
|
|
9803
9759
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
9804
9760
|
|
|
9805
|
-
|
|
9761
|
+
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
9762
|
+
// combobox's 2nd input will have noValidate set true.
|
|
9763
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
|
|
9806
9764
|
elem.validity = this.auroInputElements[1].validity;
|
|
9807
9765
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
9808
9766
|
}
|
|
@@ -9882,7 +9840,7 @@ class AuroFormValidation {
|
|
|
9882
9840
|
}
|
|
9883
9841
|
}
|
|
9884
9842
|
|
|
9885
|
-
let AuroElement$
|
|
9843
|
+
let AuroElement$2$1 = class AuroElement extends LitElement {
|
|
9886
9844
|
static get properties() {
|
|
9887
9845
|
return {
|
|
9888
9846
|
|
|
@@ -9917,18 +9875,21 @@ let AuroElement$1$1 = class AuroElement extends LitElement {
|
|
|
9917
9875
|
}
|
|
9918
9876
|
|
|
9919
9877
|
resetShapeClasses() {
|
|
9920
|
-
|
|
9921
|
-
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
9878
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
9922
9879
|
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9880
|
+
if (wrapper) {
|
|
9881
|
+
wrapper.classList.forEach((className) => {
|
|
9882
|
+
if (className.startsWith('shape-')) {
|
|
9883
|
+
wrapper.classList.remove(className);
|
|
9884
|
+
}
|
|
9885
|
+
});
|
|
9929
9886
|
|
|
9930
|
-
|
|
9931
|
-
|
|
9887
|
+
}
|
|
9888
|
+
|
|
9889
|
+
if (this.shape && this.size) {
|
|
9890
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
9891
|
+
} else {
|
|
9892
|
+
wrapper.classList.add('shape-none');
|
|
9932
9893
|
}
|
|
9933
9894
|
}
|
|
9934
9895
|
|
|
@@ -9986,17 +9947,21 @@ let AuroElement$1$1 = class AuroElement extends LitElement {
|
|
|
9986
9947
|
*
|
|
9987
9948
|
* @slot helptext - Sets the help text displayed below the input.
|
|
9988
9949
|
* @slot label - Sets the label text for the input.
|
|
9950
|
+
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
9989
9951
|
*
|
|
9990
9952
|
* @csspart wrapper - Use for customizing the style of the root element
|
|
9991
9953
|
* @csspart label - Use for customizing the style of the label element
|
|
9992
9954
|
* @csspart helpText - Use for customizing the style of the helpText element
|
|
9955
|
+
* @csspart input - Use for customizing the style of the input element
|
|
9993
9956
|
* @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
|
|
9994
9957
|
* @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
|
|
9958
|
+
* @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
|
|
9959
|
+
* @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
|
|
9995
9960
|
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
9996
9961
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
9997
9962
|
*/
|
|
9998
9963
|
|
|
9999
|
-
class BaseInput extends AuroElement$
|
|
9964
|
+
class BaseInput extends AuroElement$2$1 {
|
|
10000
9965
|
|
|
10001
9966
|
constructor() {
|
|
10002
9967
|
super();
|
|
@@ -10089,7 +10054,6 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10089
10054
|
*/
|
|
10090
10055
|
a11yRole: {
|
|
10091
10056
|
type: String,
|
|
10092
|
-
attribute: true,
|
|
10093
10057
|
reflect: true
|
|
10094
10058
|
},
|
|
10095
10059
|
|
|
@@ -10098,7 +10062,6 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10098
10062
|
*/
|
|
10099
10063
|
a11yExpanded: {
|
|
10100
10064
|
type: Boolean,
|
|
10101
|
-
attribute: true,
|
|
10102
10065
|
reflect: true
|
|
10103
10066
|
},
|
|
10104
10067
|
|
|
@@ -10107,7 +10070,6 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10107
10070
|
*/
|
|
10108
10071
|
a11yControls: {
|
|
10109
10072
|
type: String,
|
|
10110
|
-
attribute: true,
|
|
10111
10073
|
reflect: true
|
|
10112
10074
|
},
|
|
10113
10075
|
|
|
@@ -10123,7 +10085,8 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10123
10085
|
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters].
|
|
10124
10086
|
*/
|
|
10125
10087
|
autocapitalize: {
|
|
10126
|
-
type: String
|
|
10088
|
+
type: String,
|
|
10089
|
+
reflect: true
|
|
10127
10090
|
},
|
|
10128
10091
|
|
|
10129
10092
|
/**
|
|
@@ -10138,7 +10101,8 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10138
10101
|
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
10139
10102
|
*/
|
|
10140
10103
|
autocorrect: {
|
|
10141
|
-
type: String
|
|
10104
|
+
type: String,
|
|
10105
|
+
reflect: true
|
|
10142
10106
|
},
|
|
10143
10107
|
|
|
10144
10108
|
/**
|
|
@@ -10183,7 +10147,6 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10183
10147
|
/** Exposes inputmode attribute for input. */
|
|
10184
10148
|
inputmode: {
|
|
10185
10149
|
type: String,
|
|
10186
|
-
attribute: true,
|
|
10187
10150
|
reflect: true
|
|
10188
10151
|
},
|
|
10189
10152
|
|
|
@@ -10191,7 +10154,8 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10191
10154
|
* Defines the language of an element.
|
|
10192
10155
|
*/
|
|
10193
10156
|
lang: {
|
|
10194
|
-
type: String
|
|
10157
|
+
type: String,
|
|
10158
|
+
reflect: true
|
|
10195
10159
|
},
|
|
10196
10160
|
|
|
10197
10161
|
/**
|
|
@@ -10205,7 +10169,8 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10205
10169
|
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
10206
10170
|
*/
|
|
10207
10171
|
maxLength: {
|
|
10208
|
-
type: Number
|
|
10172
|
+
type: Number,
|
|
10173
|
+
reflect: true
|
|
10209
10174
|
},
|
|
10210
10175
|
|
|
10211
10176
|
/**
|
|
@@ -10219,14 +10184,25 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10219
10184
|
* The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
10220
10185
|
*/
|
|
10221
10186
|
minLength: {
|
|
10222
|
-
type: Number
|
|
10187
|
+
type: Number,
|
|
10188
|
+
reflect: true
|
|
10223
10189
|
},
|
|
10224
10190
|
|
|
10225
10191
|
/**
|
|
10226
10192
|
* Populates the `name` attribute on the input.
|
|
10227
10193
|
*/
|
|
10228
10194
|
name: {
|
|
10229
|
-
type: String
|
|
10195
|
+
type: String,
|
|
10196
|
+
reflect: true
|
|
10197
|
+
},
|
|
10198
|
+
|
|
10199
|
+
/**
|
|
10200
|
+
* Sets styles for nested operation - removes borders, hides help + error text, and
|
|
10201
|
+
* hides accents.
|
|
10202
|
+
*/
|
|
10203
|
+
nested: {
|
|
10204
|
+
type: Boolean,
|
|
10205
|
+
reflect: true
|
|
10230
10206
|
},
|
|
10231
10207
|
|
|
10232
10208
|
/**
|
|
@@ -10257,7 +10233,8 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10257
10233
|
* Define custom placeholder text, only supported by date input formats.
|
|
10258
10234
|
*/
|
|
10259
10235
|
placeholder: {
|
|
10260
|
-
type: String
|
|
10236
|
+
type: String,
|
|
10237
|
+
reflect: true
|
|
10261
10238
|
},
|
|
10262
10239
|
|
|
10263
10240
|
/**
|
|
@@ -10346,6 +10323,14 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10346
10323
|
type: String
|
|
10347
10324
|
},
|
|
10348
10325
|
|
|
10326
|
+
/**
|
|
10327
|
+
* borderless
|
|
10328
|
+
*/
|
|
10329
|
+
simple: {
|
|
10330
|
+
type: Boolean,
|
|
10331
|
+
reflect: true
|
|
10332
|
+
},
|
|
10333
|
+
|
|
10349
10334
|
/**
|
|
10350
10335
|
* Custom help text message for email type validity.
|
|
10351
10336
|
*/
|
|
@@ -10357,7 +10342,8 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10357
10342
|
* An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
10358
10343
|
*/
|
|
10359
10344
|
spellcheck: {
|
|
10360
|
-
type: String
|
|
10345
|
+
type: String,
|
|
10346
|
+
reflect: true
|
|
10361
10347
|
},
|
|
10362
10348
|
|
|
10363
10349
|
/**
|
|
@@ -10372,7 +10358,8 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10372
10358
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
10373
10359
|
*/
|
|
10374
10360
|
value: {
|
|
10375
|
-
type: String
|
|
10361
|
+
type: String,
|
|
10362
|
+
reflect: true
|
|
10376
10363
|
},
|
|
10377
10364
|
|
|
10378
10365
|
/**
|
|
@@ -10652,7 +10639,6 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10652
10639
|
|
|
10653
10640
|
/**
|
|
10654
10641
|
* Function to set element focus.
|
|
10655
|
-
* @private
|
|
10656
10642
|
* @return {void}
|
|
10657
10643
|
*/
|
|
10658
10644
|
focus() {
|
|
@@ -10870,8 +10856,7 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
10870
10856
|
|
|
10871
10857
|
this.requestUpdate();
|
|
10872
10858
|
|
|
10873
|
-
|
|
10874
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
10859
|
+
return this.placeholderStr;
|
|
10875
10860
|
}
|
|
10876
10861
|
|
|
10877
10862
|
/**
|
|
@@ -11084,7 +11069,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
11084
11069
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
11085
11070
|
*/
|
|
11086
11071
|
|
|
11087
|
-
let AuroElement$
|
|
11072
|
+
let AuroElement$1$1 = class AuroElement extends LitElement {
|
|
11088
11073
|
|
|
11089
11074
|
// function to define props used within the scope of this component
|
|
11090
11075
|
static get properties() {
|
|
@@ -11152,7 +11137,7 @@ var styleCss$3$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
11152
11137
|
*/
|
|
11153
11138
|
|
|
11154
11139
|
// build the component class
|
|
11155
|
-
let BaseIcon$1 = class BaseIcon extends AuroElement$
|
|
11140
|
+
let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
11156
11141
|
constructor() {
|
|
11157
11142
|
super();
|
|
11158
11143
|
this.onDark = false;
|
|
@@ -11224,9 +11209,9 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$2 {
|
|
|
11224
11209
|
}
|
|
11225
11210
|
};
|
|
11226
11211
|
|
|
11227
|
-
var tokensCss$3 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
11212
|
+
var tokensCss$3$1 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
11228
11213
|
|
|
11229
|
-
var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
11214
|
+
var colorCss$3$1 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
11230
11215
|
|
|
11231
11216
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11232
11217
|
// See LICENSE in the project root for license information.
|
|
@@ -11235,7 +11220,7 @@ var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
11235
11220
|
|
|
11236
11221
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11237
11222
|
|
|
11238
|
-
let AuroLibraryRuntimeUtils$
|
|
11223
|
+
let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
|
|
11239
11224
|
|
|
11240
11225
|
/* eslint-disable jsdoc/require-param */
|
|
11241
11226
|
|
|
@@ -11317,7 +11302,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
11317
11302
|
*/
|
|
11318
11303
|
privateDefaults() {
|
|
11319
11304
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
11320
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11305
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
|
|
11321
11306
|
}
|
|
11322
11307
|
|
|
11323
11308
|
// function to define props used within the scope of this component
|
|
@@ -11384,9 +11369,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
11384
11369
|
static get styles() {
|
|
11385
11370
|
return [
|
|
11386
11371
|
super.styles,
|
|
11387
|
-
css`${tokensCss$3}`,
|
|
11372
|
+
css`${tokensCss$3$1}`,
|
|
11388
11373
|
css`${styleCss$3$1}`,
|
|
11389
|
-
css`${colorCss$3}`
|
|
11374
|
+
css`${colorCss$3$1}`
|
|
11390
11375
|
];
|
|
11391
11376
|
}
|
|
11392
11377
|
|
|
@@ -11399,7 +11384,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
11399
11384
|
*
|
|
11400
11385
|
*/
|
|
11401
11386
|
static register(name = "auro-icon") {
|
|
11402
|
-
AuroLibraryRuntimeUtils$
|
|
11387
|
+
AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroIcon);
|
|
11403
11388
|
}
|
|
11404
11389
|
|
|
11405
11390
|
connectedCallback() {
|
|
@@ -11420,8 +11405,12 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
11420
11405
|
async firstUpdated() {
|
|
11421
11406
|
await super.firstUpdated();
|
|
11422
11407
|
|
|
11423
|
-
|
|
11424
|
-
|
|
11408
|
+
/**
|
|
11409
|
+
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
11410
|
+
* depend on this description to provide context for the user using a screen reader.
|
|
11411
|
+
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
11412
|
+
*/
|
|
11413
|
+
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
11425
11414
|
const svgDesc = this.svg.querySelector('desc');
|
|
11426
11415
|
|
|
11427
11416
|
if (svgDesc) {
|
|
@@ -11465,123 +11454,481 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
11465
11454
|
}
|
|
11466
11455
|
};
|
|
11467
11456
|
|
|
11468
|
-
var iconVersion$1 = '8.0.
|
|
11469
|
-
|
|
11470
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11471
|
-
// See LICENSE in the project root for license information.
|
|
11457
|
+
var iconVersion$1 = '8.0.4';
|
|
11472
11458
|
|
|
11459
|
+
/**
|
|
11460
|
+
* Private module-level WeakMap to hold MutationObservers for each host element.
|
|
11461
|
+
*/
|
|
11462
|
+
const _observers$1 = new WeakMap();
|
|
11473
11463
|
|
|
11474
|
-
|
|
11464
|
+
/**
|
|
11465
|
+
* Private module-level WeakMap to hold attribute matchers and targets for each host element.
|
|
11466
|
+
* Structure: {
|
|
11467
|
+
* host: {
|
|
11468
|
+
* matchers: Set<Function>,
|
|
11469
|
+
* targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
|
|
11470
|
+
* }
|
|
11471
|
+
* }
|
|
11472
|
+
*/
|
|
11473
|
+
const _transportConfig$1 = new WeakMap();
|
|
11475
11474
|
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11475
|
+
/**
|
|
11476
|
+
* Transfers all matching attributes from a host element to a target element and observes for future changes.
|
|
11477
|
+
*
|
|
11478
|
+
* @param {Object} params - The parameters for the function.
|
|
11479
|
+
* @param {HTMLElement} params.host - The host element from which attributes will be transported.
|
|
11480
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
11481
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
|
|
11482
|
+
* @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
|
|
11483
|
+
* @returns {Function} A function to detach the observer when no longer needed.
|
|
11484
|
+
* @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
|
|
11485
|
+
*/
|
|
11486
|
+
const transportAttributes$1 = ({ host, target, match, removeOriginal = true }) => {
|
|
11487
|
+
// Guard Clause: Ensure host is valid HTMLElement instance
|
|
11488
|
+
if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
|
|
11489
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
|
|
11490
|
+
}
|
|
11485
11491
|
|
|
11486
|
-
|
|
11487
|
-
|
|
11492
|
+
// Guard Clause: Ensure target is valid HTMLElement instance
|
|
11493
|
+
if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
|
|
11494
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
|
|
11495
|
+
}
|
|
11488
11496
|
|
|
11489
|
-
|
|
11497
|
+
// Guard Clause: Ensure match is a function
|
|
11498
|
+
if (typeof match !== 'function') {
|
|
11499
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
|
|
11490
11500
|
}
|
|
11491
11501
|
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
|
|
11495
|
-
|
|
11496
|
-
|
|
11497
|
-
|
|
11498
|
-
|
|
11499
|
-
|
|
11500
|
-
|
|
11502
|
+
// Guard Clause: Ensure removeOriginal is a boolean
|
|
11503
|
+
if (typeof removeOriginal !== 'boolean') {
|
|
11504
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
|
|
11505
|
+
}
|
|
11506
|
+
|
|
11507
|
+
// Register this transport and get cleanup function
|
|
11508
|
+
return _registerTransport$1({
|
|
11509
|
+
host,
|
|
11510
|
+
target,
|
|
11511
|
+
matcher: match,
|
|
11512
|
+
removeOriginal
|
|
11513
|
+
});
|
|
11514
|
+
};
|
|
11501
11515
|
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11516
|
+
/**
|
|
11517
|
+
* Registers a matcher and target for a host element and attaches an observer if needed.
|
|
11518
|
+
*
|
|
11519
|
+
* @param {Object} params - The parameters object.
|
|
11520
|
+
* @param {HTMLElement} params.host - The host element to observe.
|
|
11521
|
+
* @param {HTMLElement} params.target - The target element to receive attributes.
|
|
11522
|
+
* @param {Function} params.matcher - Function that determines which attributes to transport.
|
|
11523
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
|
|
11524
|
+
* @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
|
|
11525
|
+
* @returns {Function} Function to detach the specific matcher and target pairing.
|
|
11526
|
+
* @private
|
|
11527
|
+
*/
|
|
11528
|
+
const _registerTransport$1 = ({ host, target, matcher, removeOriginal = true }) => {
|
|
11529
|
+
// Initialize config for this host if it doesn't exist
|
|
11530
|
+
if (!_transportConfig$1.has(host)) {
|
|
11531
|
+
_transportConfig$1.set(host, {
|
|
11532
|
+
matchers: new Set(),
|
|
11533
|
+
targets: new Map()
|
|
11534
|
+
});
|
|
11535
|
+
}
|
|
11505
11536
|
|
|
11506
|
-
|
|
11537
|
+
const config = _transportConfig$1.get(host);
|
|
11538
|
+
|
|
11539
|
+
// Add the matcher to the set of matchers for this host
|
|
11540
|
+
config.matchers.add(matcher);
|
|
11541
|
+
|
|
11542
|
+
// Initialize target entry if it doesn't exist
|
|
11543
|
+
if (!config.targets.has(target)) {
|
|
11544
|
+
config.targets.set(target, new Map());
|
|
11545
|
+
}
|
|
11546
|
+
|
|
11547
|
+
// Store the matcher with its removeOriginal setting for this target
|
|
11548
|
+
config.targets.get(target).set(matcher, {
|
|
11549
|
+
removeOriginal,
|
|
11550
|
+
currentAttributes: new Map()
|
|
11551
|
+
});
|
|
11552
|
+
|
|
11553
|
+
// Perform initial attribute transport
|
|
11554
|
+
_transportAttributes$1({ host, target, matcher, removeOriginal });
|
|
11555
|
+
|
|
11556
|
+
// Attach observer
|
|
11557
|
+
_attachObserver$1(host);
|
|
11558
|
+
|
|
11559
|
+
// Return cleanup function and utility functions
|
|
11560
|
+
return {
|
|
11561
|
+
cleanup: () => _cleanupTransport$1(host, target, matcher),
|
|
11562
|
+
getObservedAttributes: () => _getObservedAttributes$1(host, target, matcher),
|
|
11563
|
+
getObservedAttribute: (attr) => _getObservedAttribute$1(host, target, matcher, attr),
|
|
11507
11564
|
}
|
|
11508
11565
|
};
|
|
11509
11566
|
|
|
11510
|
-
|
|
11511
|
-
|
|
11567
|
+
/**
|
|
11568
|
+
* Cleans up resources associated with a specific matcher and target for a host element.
|
|
11569
|
+
*
|
|
11570
|
+
* @param {HTMLElement} host - The host element
|
|
11571
|
+
* @param {HTMLElement} target - The target element
|
|
11572
|
+
* @param {Function} matcher - The matcher function
|
|
11573
|
+
* @private
|
|
11574
|
+
*/
|
|
11575
|
+
const _cleanupTransport$1 = (host, target, matcher) => {
|
|
11576
|
+
const config = _transportConfig$1.get(host);
|
|
11577
|
+
if (!config) return;
|
|
11578
|
+
|
|
11579
|
+
// Remove this matcher from this target
|
|
11580
|
+
const targetMatchers = config.targets.get(target);
|
|
11581
|
+
if (targetMatchers) {
|
|
11582
|
+
targetMatchers.delete(matcher);
|
|
11583
|
+
|
|
11584
|
+
// If this target has no more matchers, remove it
|
|
11585
|
+
if (targetMatchers.size === 0) {
|
|
11586
|
+
config.targets.delete(target);
|
|
11587
|
+
}
|
|
11588
|
+
}
|
|
11589
|
+
|
|
11590
|
+
// Check if this matcher is still used by any target
|
|
11591
|
+
let matcherStillUsed = false;
|
|
11592
|
+
for (const matcherMap of config.targets.values()) {
|
|
11593
|
+
if (matcherMap.has(matcher)) {
|
|
11594
|
+
matcherStillUsed = true;
|
|
11595
|
+
break;
|
|
11596
|
+
}
|
|
11597
|
+
}
|
|
11598
|
+
|
|
11599
|
+
// If not used anymore, remove from matchers set
|
|
11600
|
+
if (!matcherStillUsed) {
|
|
11601
|
+
config.matchers.delete(matcher);
|
|
11602
|
+
}
|
|
11603
|
+
|
|
11604
|
+
// If no more targets or matchers, detach observer
|
|
11605
|
+
if (config.targets.size === 0 || config.matchers.size === 0) {
|
|
11606
|
+
_detachObserver$1(host);
|
|
11607
|
+
}
|
|
11608
|
+
};
|
|
11512
11609
|
|
|
11513
|
-
|
|
11610
|
+
/**
|
|
11611
|
+
* Generic function to transport attributes from a host element to a target element.
|
|
11612
|
+
*
|
|
11613
|
+
* @param {Object} params - The parameters object.
|
|
11614
|
+
* @param {HTMLElement} params.host - The host element from which to transport attributes.
|
|
11615
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
11616
|
+
* @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
|
|
11617
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
|
|
11618
|
+
* @returns {void}
|
|
11619
|
+
* @private
|
|
11620
|
+
*/
|
|
11621
|
+
const _transportAttributes$1 = ({ host, target, matcher, removeOriginal = true }) => {
|
|
11622
|
+
// Get a list of all matching attributes on the host element and their values
|
|
11623
|
+
const matchingAttributes = host.getAttributeNames()
|
|
11624
|
+
.filter(attr => matcher(attr))
|
|
11625
|
+
.reduce((acc, attr) => {
|
|
11626
|
+
acc[attr] = host.getAttribute(attr);
|
|
11627
|
+
return acc;
|
|
11628
|
+
}, {});
|
|
11629
|
+
|
|
11630
|
+
// Move matching attributes to the target element, removing them from the host if removeOriginal is true
|
|
11631
|
+
Object.entries(matchingAttributes).forEach(([key, value]) => {
|
|
11632
|
+
_setObservedAttribute$1(host, target, matcher, key, value);
|
|
11633
|
+
target.setAttribute(key, value);
|
|
11634
|
+
if (removeOriginal) {
|
|
11635
|
+
host.removeAttribute(key);
|
|
11636
|
+
}
|
|
11637
|
+
});
|
|
11638
|
+
};
|
|
11514
11639
|
|
|
11515
|
-
|
|
11640
|
+
/**
|
|
11641
|
+
* Attaches a MutationObserver to the host element to monitor attribute changes.
|
|
11642
|
+
*
|
|
11643
|
+
* @param {HTMLElement} host - The element to observe for attribute changes.
|
|
11644
|
+
* @returns {MutationObserver} The observer instance.
|
|
11645
|
+
* @private
|
|
11646
|
+
*/
|
|
11647
|
+
const _attachObserver$1 = (host) => {
|
|
11648
|
+
// If an observer for this host already exists, return it
|
|
11649
|
+
if (_observers$1.has(host)) {
|
|
11650
|
+
return _observers$1.get(host);
|
|
11651
|
+
}
|
|
11516
11652
|
|
|
11517
|
-
|
|
11653
|
+
// Create a new MutationObserver
|
|
11654
|
+
const observer = new MutationObserver((mutations) => {
|
|
11655
|
+
const config = _transportConfig$1.get(host);
|
|
11656
|
+
if (!config) return;
|
|
11657
|
+
|
|
11658
|
+
// For each mutation affecting attributes
|
|
11659
|
+
mutations
|
|
11660
|
+
.filter(mutation => mutation.type === 'attributes')
|
|
11661
|
+
.forEach(mutation => {
|
|
11662
|
+
const attributeName = mutation.attributeName;
|
|
11663
|
+
|
|
11664
|
+
// Find matchers that care about this attribute
|
|
11665
|
+
for (const matcher of config.matchers) {
|
|
11666
|
+
if (matcher(attributeName)) {
|
|
11667
|
+
// For each target that uses this matcher
|
|
11668
|
+
for (const [target, matcherConfigs] of config.targets.entries()) {
|
|
11669
|
+
if (matcherConfigs.has(matcher)) {
|
|
11670
|
+
const { removeOriginal } = matcherConfigs.get(matcher);
|
|
11671
|
+
_transportAttributes$1({
|
|
11672
|
+
host,
|
|
11673
|
+
target,
|
|
11674
|
+
matcher,
|
|
11675
|
+
removeOriginal
|
|
11676
|
+
});
|
|
11677
|
+
}
|
|
11678
|
+
}
|
|
11679
|
+
}
|
|
11680
|
+
}
|
|
11681
|
+
});
|
|
11682
|
+
});
|
|
11518
11683
|
|
|
11519
|
-
|
|
11684
|
+
// Start observing attribute changes
|
|
11685
|
+
observer.observe(host, { attributes: true });
|
|
11686
|
+
|
|
11687
|
+
// Store the observer
|
|
11688
|
+
_observers$1.set(host, observer);
|
|
11689
|
+
|
|
11690
|
+
return observer;
|
|
11691
|
+
};
|
|
11692
|
+
|
|
11693
|
+
/**
|
|
11694
|
+
* Detaches and cleans up the MutationObserver for a given host element.
|
|
11695
|
+
*
|
|
11696
|
+
* @param {HTMLElement} host - The element whose observer should be detached.
|
|
11697
|
+
* @private
|
|
11698
|
+
*/
|
|
11699
|
+
const _detachObserver$1 = (host) => {
|
|
11700
|
+
if (_observers$1.has(host)) {
|
|
11701
|
+
const observer = _observers$1.get(host);
|
|
11702
|
+
observer.disconnect();
|
|
11703
|
+
_observers$1.delete(host);
|
|
11704
|
+
}
|
|
11705
|
+
|
|
11706
|
+
// Clean up the transport config as well
|
|
11707
|
+
if (_transportConfig$1.has(host)) {
|
|
11708
|
+
_transportConfig$1.delete(host);
|
|
11709
|
+
}
|
|
11710
|
+
};
|
|
11711
|
+
|
|
11712
|
+
/**
|
|
11713
|
+
* Gets the matcher configuration for a specific host, target, and matcher
|
|
11714
|
+
* @param {HTMLElement} host - The host element
|
|
11715
|
+
* @param {HTMLElement} target - The target element
|
|
11716
|
+
* @param {Function} matcher - The matcher function
|
|
11717
|
+
* @returns {Object|undefined} The matcher configuration if found
|
|
11718
|
+
* @private
|
|
11719
|
+
*/
|
|
11720
|
+
const _getMatcherConfig$1 = (host, target, matcher) => {
|
|
11721
|
+
const config = _transportConfig$1.get(host);
|
|
11722
|
+
if (!config) return undefined;
|
|
11723
|
+
|
|
11724
|
+
const targetMatchers = config.targets.get(target);
|
|
11725
|
+
if (!targetMatchers) return undefined;
|
|
11726
|
+
|
|
11727
|
+
return targetMatchers.get(matcher);
|
|
11728
|
+
};
|
|
11729
|
+
|
|
11730
|
+
/**
|
|
11731
|
+
* Sets an observed attribute value
|
|
11732
|
+
* @param {HTMLElement} host - The host element
|
|
11733
|
+
* @param {HTMLElement} target - The target element
|
|
11734
|
+
* @param {Function} matcher - The matcher function
|
|
11735
|
+
* @param {string} key - The attribute name
|
|
11736
|
+
* @param {string} value - The attribute value
|
|
11737
|
+
* @private
|
|
11738
|
+
*/
|
|
11739
|
+
const _setObservedAttribute$1 = (host, target, matcher, key, value) => {
|
|
11740
|
+
const matcherConfig = _getMatcherConfig$1(host, target, matcher);
|
|
11741
|
+
if (matcherConfig) {
|
|
11742
|
+
matcherConfig.currentAttributes.set(key, value);
|
|
11743
|
+
}
|
|
11744
|
+
};
|
|
11745
|
+
|
|
11746
|
+
const _getObservedAttribute$1 = (host, target, matcher, attr) => {
|
|
11747
|
+
const matcherConfig = _getMatcherConfig$1(host, target, matcher);
|
|
11748
|
+
if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
|
|
11749
|
+
return undefined;
|
|
11750
|
+
};
|
|
11751
|
+
|
|
11752
|
+
const _getObservedAttributes$1 = (host, target, matcher) => {
|
|
11753
|
+
const matcherConfig = _getMatcherConfig$1(host, target, matcher);
|
|
11754
|
+
if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
|
|
11755
|
+
return [];
|
|
11756
|
+
};
|
|
11757
|
+
|
|
11758
|
+
const _matchers$1 = {
|
|
11759
|
+
'aria-': attr => attr.startsWith('aria-'),
|
|
11760
|
+
'role': attr => attr.match(/^role$/)
|
|
11761
|
+
};
|
|
11762
|
+
|
|
11763
|
+
const transportAllA11yAttributes$1 = ({ host, target, removeOriginal = true }) => {
|
|
11764
|
+
return transportAttributes$1({
|
|
11765
|
+
host,
|
|
11766
|
+
target,
|
|
11767
|
+
match: attr => {
|
|
11768
|
+
for (const key in _matchers$1) {
|
|
11769
|
+
if (_matchers$1[key](attr)) return true;
|
|
11770
|
+
}
|
|
11771
|
+
return false;
|
|
11772
|
+
},
|
|
11773
|
+
removeOriginal
|
|
11774
|
+
});
|
|
11775
|
+
};
|
|
11776
|
+
|
|
11777
|
+
let AuroElement$3 = class AuroElement extends LitElement {
|
|
11520
11778
|
|
|
11521
11779
|
/**
|
|
11522
|
-
*
|
|
11523
|
-
* @
|
|
11524
|
-
* @
|
|
11525
|
-
* @
|
|
11780
|
+
* @type {Object} return object from transportAttributes via a11yUtilities
|
|
11781
|
+
* @property {Function} cleanup - Function to clean up the attribute watcher.
|
|
11782
|
+
* @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
|
|
11783
|
+
* @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
|
|
11784
|
+
* @private
|
|
11526
11785
|
*/
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11786
|
+
attributeWatcher;
|
|
11787
|
+
|
|
11788
|
+
static get properties() {
|
|
11789
|
+
return {
|
|
11790
|
+
|
|
11791
|
+
/**
|
|
11792
|
+
* Defines the layout of an element.
|
|
11793
|
+
* @default {'default'}
|
|
11794
|
+
*/
|
|
11795
|
+
layout: {
|
|
11796
|
+
type: String,
|
|
11797
|
+
attribute: "layout",
|
|
11798
|
+
reflect: true
|
|
11799
|
+
},
|
|
11800
|
+
|
|
11801
|
+
/**
|
|
11802
|
+
* Defines the shape of an element.
|
|
11803
|
+
* @property {'default', 'rounded', 'pill', 'circle'}
|
|
11804
|
+
* @default {'default'}
|
|
11805
|
+
*/
|
|
11806
|
+
shape: {
|
|
11807
|
+
type: String,
|
|
11808
|
+
attribute: "shape",
|
|
11809
|
+
reflect: true
|
|
11810
|
+
},
|
|
11811
|
+
|
|
11812
|
+
/**
|
|
11813
|
+
* Defines the size of an element.
|
|
11814
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'}
|
|
11815
|
+
* @default {'md'}
|
|
11816
|
+
*/
|
|
11817
|
+
size: {
|
|
11818
|
+
type: String,
|
|
11819
|
+
attribute: "size",
|
|
11820
|
+
reflect: true
|
|
11821
|
+
},
|
|
11822
|
+
|
|
11823
|
+
/**
|
|
11824
|
+
* This Boolean attribute lets you specify that the element should be rendered in dark mode.
|
|
11825
|
+
* @default {false}
|
|
11826
|
+
*/
|
|
11827
|
+
onDark: {
|
|
11828
|
+
type: Boolean,
|
|
11829
|
+
attribute: "ondark",
|
|
11830
|
+
reflect: true
|
|
11831
|
+
},
|
|
11832
|
+
|
|
11833
|
+
/**
|
|
11834
|
+
* A reference to the wrapper element in the shadow DOM.
|
|
11835
|
+
* This is used to apply layout and shape classes dynamically.
|
|
11836
|
+
* @type {HTMLElement|null}
|
|
11837
|
+
* @default {null}
|
|
11838
|
+
* @private
|
|
11839
|
+
*/
|
|
11840
|
+
wrapper: {
|
|
11841
|
+
type: HTMLElement,
|
|
11842
|
+
attribute: false,
|
|
11843
|
+
reflect: false
|
|
11844
|
+
}
|
|
11845
|
+
};
|
|
11846
|
+
}
|
|
11847
|
+
|
|
11848
|
+
|
|
11849
|
+
|
|
11850
|
+
resetShapeClasses() {
|
|
11851
|
+
if (this.shape && this.size) {
|
|
11852
|
+
|
|
11853
|
+
if (this.wrapper) {
|
|
11854
|
+
this.wrapper.classList.forEach((className) => {
|
|
11855
|
+
if (className.startsWith('shape-')) {
|
|
11856
|
+
this.wrapper.classList.remove(className);
|
|
11857
|
+
}
|
|
11858
|
+
});
|
|
11859
|
+
|
|
11860
|
+
this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
11861
|
+
}
|
|
11530
11862
|
}
|
|
11531
11863
|
}
|
|
11532
11864
|
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
11546
|
-
) {
|
|
11547
|
-
return __Closest(base);
|
|
11865
|
+
resetLayoutClasses() {
|
|
11866
|
+
if (this.layout) {
|
|
11867
|
+
if (this.wrapper) {
|
|
11868
|
+
this.wrapper.classList.forEach((className) => {
|
|
11869
|
+
if (className.startsWith('layout-')) {
|
|
11870
|
+
this.wrapper.classList.remove(className);
|
|
11871
|
+
}
|
|
11872
|
+
});
|
|
11873
|
+
|
|
11874
|
+
this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
11875
|
+
}
|
|
11876
|
+
}
|
|
11548
11877
|
}
|
|
11549
|
-
/* eslint-enable jsdoc/require-param */
|
|
11550
11878
|
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
* @returns {void}
|
|
11556
|
-
*/
|
|
11557
|
-
handleComponentTagRename(elem, tagName) {
|
|
11558
|
-
const tag = tagName.toLowerCase();
|
|
11559
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
11879
|
+
updateComponentArchitecture() {
|
|
11880
|
+
this.resetLayoutClasses();
|
|
11881
|
+
this.resetShapeClasses();
|
|
11882
|
+
}
|
|
11560
11883
|
|
|
11561
|
-
|
|
11562
|
-
|
|
11884
|
+
updated(changedProperties) {
|
|
11885
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
11886
|
+
this.updateComponentArchitecture();
|
|
11563
11887
|
}
|
|
11564
11888
|
}
|
|
11565
11889
|
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
* @param {Object} elem - The element to validate.
|
|
11569
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
11570
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
11571
|
-
*/
|
|
11572
|
-
elementMatch(elem, tagName) {
|
|
11573
|
-
const tag = tagName.toLowerCase();
|
|
11574
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
11890
|
+
firstUpdated() {
|
|
11891
|
+
super.firstUpdated();
|
|
11575
11892
|
|
|
11576
|
-
|
|
11893
|
+
// Set a reference to the wrapper element in the shadow DOM
|
|
11894
|
+
this.wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
11895
|
+
|
|
11896
|
+
// Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
|
|
11897
|
+
this.attributeWatcher = transportAllA11yAttributes$1({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
|
|
11898
|
+
}
|
|
11899
|
+
|
|
11900
|
+
disconnectedCallback() {
|
|
11901
|
+
super.disconnectedCallback();
|
|
11902
|
+
|
|
11903
|
+
// Cleanup the ARIA observer if it exists
|
|
11904
|
+
if (this.attributeWatcher) {
|
|
11905
|
+
this.attributeWatcher.cleanup();
|
|
11906
|
+
this.attributeWatcher = null;
|
|
11907
|
+
}
|
|
11908
|
+
}
|
|
11909
|
+
|
|
11910
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
11911
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
11912
|
+
render() {
|
|
11913
|
+
try {
|
|
11914
|
+
return this.renderLayout();
|
|
11915
|
+
} catch (error) {
|
|
11916
|
+
// failed to get the defined layout
|
|
11917
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
11918
|
+
|
|
11919
|
+
// fallback to the default layout
|
|
11920
|
+
return this.getLayout('default');
|
|
11921
|
+
}
|
|
11577
11922
|
}
|
|
11578
11923
|
};
|
|
11579
11924
|
|
|
11580
|
-
var styleCss$2$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block
|
|
11925
|
+
var styleCss$2$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none;transition:padding 300ms ease-out}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible,.auro-button:focus{outline:none;outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]),.auro-button:focus:not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=ghost]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button.icon-only ::slotted(:not(auro-icon):not([auro-icon])){display:none}.auro-button--slim{min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]),.auro-button--iconOnly:not(.auro-button--rounded):focus:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:padding 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after,.auro-button--rounded:focus:not([variant=flat]):after{border-radius:100px}:host([size=xs]) .wrapper:focus-visible,:host([size=xs]) .wrapper:focus{outline-width:1px;outline-offset:-2px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
11581
11926
|
|
|
11582
|
-
var colorCss$2$1 = css`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
11927
|
+
var colorCss$2$1 = css`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text, #01426a)}.auro-button:not([ondark])[variant=ghost]:active:not(:disabled),.auro-button:not([ondark])[variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=ghost]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=ghost]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:active:not(:disabled),.auro-button[ondark][variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05))}.auro-button[ondark][variant=ghost]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
|
|
11583
11928
|
|
|
11584
|
-
var tokensCss$2 = css`:host{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}`;
|
|
11929
|
+
var tokensCss$2$1 = css`:host(:not([onDark])){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}:host([onDark]){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-tap-color:transparent}`;
|
|
11930
|
+
|
|
11931
|
+
var shapeSize$1 = css`.shape-rounded-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:6px;overflow:hidden;font-size:18px}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:6px;overflow:hidden;font-size:18px}.shape-rounded-md{min-height:44px;max-height:44px;border-style:solid;border-radius:6px;overflow:hidden;font-size:16px}.shape-rounded-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:6px;overflow:hidden;font-size:14px}.shape-rounded-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:4px;overflow:hidden;font-size:12px;outline-offset:-2px;outline-width:1px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:34px;overflow:hidden;font-size:18px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:34px 0 0 34px;overflow:hidden}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:0 34px 34px 0;overflow:hidden}.shape-pill-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:26px;overflow:hidden;font-size:18px}.shape-pill-left-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:26px 0 0 26px;overflow:hidden}.shape-pill-right-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:0 26px 26px 0;overflow:hidden}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-radius:22px;overflow:hidden}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-radius:22px 0 0 22px;overflow:hidden}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-radius:0 22px 22px 0;overflow:hidden;font-size:16px}.shape-pill-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:16px;overflow:hidden;font-size:14px}.shape-pill-left-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:16px 0 0 16px;overflow:hidden}.shape-pill-right-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:0 16px 16px 0;overflow:hidden}.shape-pill-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:10px;overflow:hidden;font-size:12px;outline-offset:-2px;outline-width:1px}.shape-pill-left-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:10px 0 0 10px;overflow:hidden;outline-offset:-2px;outline-width:1px}.shape-pill-right-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:0 10px 10px 0;overflow:hidden;outline-offset:-2px;outline-width:1px}.shape-circle-xl{min-height:68px;max-height:68px;min-width:68px;max-width:68px;border-style:solid;border-radius:34px;overflow:hidden;padding:0}.shape-circle-lg{min-height:52px;max-height:52px;min-width:52px;max-width:52px;border-style:solid;border-radius:26px;overflow:hidden;padding:0}.shape-circle-md{min-height:44px;max-height:44px;min-width:44px;max-width:44px;border-style:solid;border-radius:22px;overflow:hidden;padding:0}.shape-circle-sm{min-height:32px;max-height:32px;min-width:32px;max-width:32px;border-style:solid;border-radius:16px;overflow:hidden;padding:0}.shape-circle-xs{min-height:20px;max-height:20px;min-width:20px;max-width:20px;border-style:solid;border-radius:10px;overflow:hidden;padding:0;outline-offset:-2px;outline-width:1px}`;
|
|
11585
11932
|
|
|
11586
11933
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11587
11934
|
// See LICENSE in the project root for license information.
|
|
@@ -11663,7 +12010,7 @@ var tokensCss$1$1 = css`:host{--ds-auro-loader-background-color:currentcolor;--d
|
|
|
11663
12010
|
// See LICENSE in the project root for license information.
|
|
11664
12011
|
|
|
11665
12012
|
|
|
11666
|
-
class AuroLoader extends LitElement {
|
|
12013
|
+
let AuroLoader$1 = class AuroLoader extends LitElement {
|
|
11667
12014
|
constructor() {
|
|
11668
12015
|
super();
|
|
11669
12016
|
|
|
@@ -11796,18 +12143,17 @@ class AuroLoader extends LitElement {
|
|
|
11796
12143
|
}
|
|
11797
12144
|
`;
|
|
11798
12145
|
}
|
|
11799
|
-
}
|
|
12146
|
+
};
|
|
11800
12147
|
|
|
11801
|
-
var loaderVersion = '5.0.0';
|
|
12148
|
+
var loaderVersion$1 = '5.0.0';
|
|
11802
12149
|
|
|
11803
|
-
/* eslint-disable max-lines */
|
|
12150
|
+
/* eslint-disable max-lines, curly */
|
|
11804
12151
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11805
12152
|
// See LICENSE in the project root for license information.
|
|
11806
12153
|
|
|
11807
12154
|
|
|
11808
12155
|
/**
|
|
11809
12156
|
* @slot - Default slot for the text of the button.
|
|
11810
|
-
* @slot icon - Slot to provide auro-icon for the button.
|
|
11811
12157
|
* @csspart button - Apply CSS to HTML5 button.
|
|
11812
12158
|
* @csspart loader - Apply CSS to auro-loader.
|
|
11813
12159
|
* @csspart text - Apply CSS to text slot.
|
|
@@ -11816,7 +12162,18 @@ var loaderVersion = '5.0.0';
|
|
|
11816
12162
|
|
|
11817
12163
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
11818
12164
|
|
|
11819
|
-
|
|
12165
|
+
const ICON_ONLY_SHAPES$1 = ['circle'];
|
|
12166
|
+
|
|
12167
|
+
/**
|
|
12168
|
+
* AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
|
|
12169
|
+
* It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
|
|
12170
|
+
* @property {'default', 'rounded', 'pill', 'circle'} shape - Defines the shape of the button.
|
|
12171
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
|
|
12172
|
+
* @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
|
|
12173
|
+
* @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
|
|
12174
|
+
* @property {boolean} onDark - Indicates if the button is rendered in dark mode.
|
|
12175
|
+
*/
|
|
12176
|
+
let AuroButton$1 = class AuroButton extends AuroElement$3 {
|
|
11820
12177
|
|
|
11821
12178
|
/**
|
|
11822
12179
|
* Enables form association for this element.
|
|
@@ -11831,13 +12188,10 @@ class AuroButton extends LitElement {
|
|
|
11831
12188
|
super();
|
|
11832
12189
|
this.autofocus = false;
|
|
11833
12190
|
this.disabled = false;
|
|
11834
|
-
this.iconOnly = false;
|
|
11835
12191
|
this.loading = false;
|
|
12192
|
+
this.size = "md";
|
|
12193
|
+
this.shape = "rounded";
|
|
11836
12194
|
this.onDark = false;
|
|
11837
|
-
this.secondary = false;
|
|
11838
|
-
this.tertiary = false;
|
|
11839
|
-
this.rounded = false;
|
|
11840
|
-
this.slim = false;
|
|
11841
12195
|
this.fluid = false;
|
|
11842
12196
|
this.loadingText = this.loadingText || 'Loading...';
|
|
11843
12197
|
|
|
@@ -11854,55 +12208,50 @@ class AuroButton extends LitElement {
|
|
|
11854
12208
|
/**
|
|
11855
12209
|
* Generate unique names for dependency components.
|
|
11856
12210
|
*/
|
|
11857
|
-
const versioning = new AuroDependencyVersioning$
|
|
12211
|
+
const versioning = new AuroDependencyVersioning$1();
|
|
11858
12212
|
|
|
11859
12213
|
/**
|
|
11860
12214
|
* @private
|
|
11861
12215
|
*/
|
|
11862
|
-
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
12216
|
+
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
11863
12217
|
}
|
|
11864
12218
|
|
|
11865
12219
|
static get styles() {
|
|
11866
12220
|
return [
|
|
11867
|
-
tokensCss$2,
|
|
12221
|
+
tokensCss$2$1,
|
|
11868
12222
|
styleCss$2$1,
|
|
11869
|
-
colorCss$2$1
|
|
12223
|
+
colorCss$2$1,
|
|
12224
|
+
shapeSize$1
|
|
11870
12225
|
];
|
|
11871
12226
|
}
|
|
11872
12227
|
|
|
11873
12228
|
static get properties() {
|
|
11874
12229
|
return {
|
|
11875
12230
|
|
|
11876
|
-
|
|
11877
|
-
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
11878
|
-
*/
|
|
11879
|
-
autofocus: {
|
|
11880
|
-
type: Boolean,
|
|
11881
|
-
reflect: true
|
|
11882
|
-
},
|
|
12231
|
+
...super.properties,
|
|
11883
12232
|
|
|
11884
12233
|
/**
|
|
11885
|
-
*
|
|
12234
|
+
* Override layout since it isn't used in this component.
|
|
12235
|
+
* @private
|
|
11886
12236
|
*/
|
|
11887
|
-
|
|
12237
|
+
layout: {
|
|
11888
12238
|
type: Boolean,
|
|
11889
|
-
|
|
12239
|
+
attribute: false,
|
|
12240
|
+
reflect: false
|
|
11890
12241
|
},
|
|
11891
12242
|
|
|
11892
12243
|
/**
|
|
11893
|
-
*
|
|
11894
|
-
* @deprecated
|
|
12244
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
11895
12245
|
*/
|
|
11896
|
-
|
|
12246
|
+
autofocus: {
|
|
11897
12247
|
type: Boolean,
|
|
11898
12248
|
reflect: true
|
|
11899
12249
|
},
|
|
11900
12250
|
|
|
11901
12251
|
/**
|
|
11902
|
-
*
|
|
11903
|
-
* @deprecated
|
|
12252
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
11904
12253
|
*/
|
|
11905
|
-
|
|
12254
|
+
disabled: {
|
|
11906
12255
|
type: Boolean,
|
|
11907
12256
|
reflect: true
|
|
11908
12257
|
},
|
|
@@ -11910,15 +12259,7 @@ class AuroButton extends LitElement {
|
|
|
11910
12259
|
/**
|
|
11911
12260
|
* Alters the shape of the button to be full width of its parent container.
|
|
11912
12261
|
*/
|
|
11913
|
-
fluid:
|
|
11914
|
-
type: Boolean,
|
|
11915
|
-
reflect: true
|
|
11916
|
-
},
|
|
11917
|
-
|
|
11918
|
-
/**
|
|
11919
|
-
* If set to true, the button will contain an icon with no additional content.
|
|
11920
|
-
*/
|
|
11921
|
-
iconOnly: {
|
|
12262
|
+
fluid: {
|
|
11922
12263
|
type: Boolean,
|
|
11923
12264
|
reflect: true
|
|
11924
12265
|
},
|
|
@@ -11926,7 +12267,7 @@ class AuroButton extends LitElement {
|
|
|
11926
12267
|
/**
|
|
11927
12268
|
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
11928
12269
|
*/
|
|
11929
|
-
loading:
|
|
12270
|
+
loading: {
|
|
11930
12271
|
type: Boolean,
|
|
11931
12272
|
reflect: true
|
|
11932
12273
|
},
|
|
@@ -11934,34 +12275,10 @@ class AuroButton extends LitElement {
|
|
|
11934
12275
|
/**
|
|
11935
12276
|
* Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
|
|
11936
12277
|
*/
|
|
11937
|
-
loadingText:
|
|
12278
|
+
loadingText: {
|
|
11938
12279
|
type: String
|
|
11939
12280
|
},
|
|
11940
12281
|
|
|
11941
|
-
/**
|
|
11942
|
-
* Set value for on-dark version of auro-button.
|
|
11943
|
-
*/
|
|
11944
|
-
onDark: {
|
|
11945
|
-
type: Boolean,
|
|
11946
|
-
reflect: true
|
|
11947
|
-
},
|
|
11948
|
-
|
|
11949
|
-
/**
|
|
11950
|
-
* If set to true, the button will have a rounded shape.
|
|
11951
|
-
*/
|
|
11952
|
-
rounded: {
|
|
11953
|
-
type: Boolean,
|
|
11954
|
-
reflect: true
|
|
11955
|
-
},
|
|
11956
|
-
|
|
11957
|
-
/**
|
|
11958
|
-
* Set value for slim version of auro-button.
|
|
11959
|
-
*/
|
|
11960
|
-
slim: {
|
|
11961
|
-
type: Boolean,
|
|
11962
|
-
reflect: true
|
|
11963
|
-
},
|
|
11964
|
-
|
|
11965
12282
|
/**
|
|
11966
12283
|
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
11967
12284
|
*/
|
|
@@ -11971,77 +12288,39 @@ class AuroButton extends LitElement {
|
|
|
11971
12288
|
},
|
|
11972
12289
|
|
|
11973
12290
|
/**
|
|
11974
|
-
*
|
|
11975
|
-
*/
|
|
11976
|
-
ariahidden: {
|
|
11977
|
-
type: String,
|
|
11978
|
-
reflect: true,
|
|
11979
|
-
},
|
|
11980
|
-
|
|
11981
|
-
/**
|
|
11982
|
-
* Populates the `aria-label` attribute that is used to define a string that labels the current element.
|
|
11983
|
-
* Use it in cases where a text label is not visible on the screen.
|
|
11984
|
-
* If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
12291
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
11985
12292
|
*/
|
|
11986
|
-
|
|
12293
|
+
title: {
|
|
11987
12294
|
type: String,
|
|
11988
12295
|
reflect: true
|
|
11989
12296
|
},
|
|
11990
12297
|
|
|
11991
12298
|
/**
|
|
11992
|
-
*
|
|
11993
|
-
* and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
|
|
11994
|
-
* List multiple element IDs in a space delimited fashion.
|
|
12299
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
11995
12300
|
*/
|
|
11996
|
-
|
|
12301
|
+
type: {
|
|
11997
12302
|
type: String,
|
|
11998
12303
|
reflect: true
|
|
11999
12304
|
},
|
|
12000
12305
|
|
|
12001
12306
|
/**
|
|
12002
|
-
*
|
|
12003
|
-
* or another grouping element it controls, is currently expanded or collapsed.
|
|
12004
|
-
* This is an optional attribute for buttons.
|
|
12005
|
-
*/
|
|
12006
|
-
ariaexpanded: {
|
|
12007
|
-
type: Boolean,
|
|
12008
|
-
reflect: true
|
|
12009
|
-
},
|
|
12010
|
-
|
|
12011
|
-
/**
|
|
12012
|
-
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
12307
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
12013
12308
|
*/
|
|
12014
|
-
|
|
12309
|
+
value: {
|
|
12015
12310
|
type: String,
|
|
12016
12311
|
reflect: true
|
|
12017
12312
|
},
|
|
12018
12313
|
|
|
12019
12314
|
/**
|
|
12020
|
-
*
|
|
12315
|
+
* Sets button variant option.
|
|
12316
|
+
* @default primary
|
|
12021
12317
|
*/
|
|
12022
|
-
|
|
12318
|
+
variant: {
|
|
12023
12319
|
type: String,
|
|
12024
12320
|
reflect: true
|
|
12025
12321
|
},
|
|
12026
|
-
|
|
12027
|
-
|
|
12028
|
-
* Defines the value associated with the button which is submitted with the form data.
|
|
12029
|
-
*/
|
|
12030
|
-
value: {
|
|
12031
|
-
type: String,
|
|
12032
|
-
reflect: true
|
|
12033
|
-
},
|
|
12034
|
-
|
|
12035
|
-
/**
|
|
12036
|
-
* Sets button variant option. Possible values are: `secondary`, `tertiary`.
|
|
12037
|
-
*/
|
|
12038
|
-
variant: {
|
|
12039
|
-
type: String,
|
|
12040
|
-
reflect: true
|
|
12041
|
-
},
|
|
12042
|
-
ready: { type: Boolean },
|
|
12043
|
-
};
|
|
12044
|
-
}
|
|
12322
|
+
};
|
|
12323
|
+
}
|
|
12045
12324
|
|
|
12046
12325
|
/**
|
|
12047
12326
|
* This will register this element with the browser.
|
|
@@ -12052,7 +12331,7 @@ class AuroButton extends LitElement {
|
|
|
12052
12331
|
*
|
|
12053
12332
|
*/
|
|
12054
12333
|
static register(name = "auro-button") {
|
|
12055
|
-
AuroLibraryRuntimeUtils$
|
|
12334
|
+
AuroLibraryRuntimeUtils$3$1.prototype.registerComponent(name, AuroButton);
|
|
12056
12335
|
}
|
|
12057
12336
|
|
|
12058
12337
|
/**
|
|
@@ -12064,17 +12343,6 @@ class AuroButton extends LitElement {
|
|
|
12064
12343
|
this.renderRoot.querySelector('button').focus();
|
|
12065
12344
|
}
|
|
12066
12345
|
|
|
12067
|
-
updated() {
|
|
12068
|
-
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
12069
|
-
if (this.secondary) {
|
|
12070
|
-
this.setAttribute('variant', 'secondary');
|
|
12071
|
-
}
|
|
12072
|
-
|
|
12073
|
-
if (this.tertiary) {
|
|
12074
|
-
this.setAttribute('variant', 'tertiary');
|
|
12075
|
-
}
|
|
12076
|
-
}
|
|
12077
|
-
|
|
12078
12346
|
/**
|
|
12079
12347
|
* Submits the form that this button is associated with.
|
|
12080
12348
|
* @private
|
|
@@ -12095,25 +12363,57 @@ class AuroButton extends LitElement {
|
|
|
12095
12363
|
return this.internals ? this.internals.form : null;
|
|
12096
12364
|
}
|
|
12097
12365
|
|
|
12098
|
-
|
|
12366
|
+
/**
|
|
12367
|
+
* @private
|
|
12368
|
+
* @returns {Boolean}
|
|
12369
|
+
*/
|
|
12370
|
+
get hideText() {
|
|
12371
|
+
return ICON_ONLY_SHAPES$1.includes(this.shape);
|
|
12372
|
+
}
|
|
12373
|
+
|
|
12374
|
+
/**
|
|
12375
|
+
* Returns the current value of the projected `aria-label` attribute or undefined if not set.
|
|
12376
|
+
* @returns {string | undefined}
|
|
12377
|
+
* @private
|
|
12378
|
+
*/
|
|
12379
|
+
get currentAriaLabel() {
|
|
12380
|
+
if (!this.attributeWatcher) return undefined;
|
|
12381
|
+
|
|
12382
|
+
const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
|
|
12383
|
+
return ariaLabel || undefined;
|
|
12384
|
+
}
|
|
12385
|
+
|
|
12386
|
+
/**
|
|
12387
|
+
* Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
|
|
12388
|
+
* @returns {string | undefined}
|
|
12389
|
+
* @private
|
|
12390
|
+
*/
|
|
12391
|
+
get currentAriaLabelledBy() {
|
|
12392
|
+
if (!this.attributeWatcher) return undefined;
|
|
12393
|
+
|
|
12394
|
+
const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
|
|
12395
|
+
return ariaLabelledBy || undefined;
|
|
12396
|
+
}
|
|
12397
|
+
|
|
12398
|
+
/**
|
|
12399
|
+
* Renders the default layout for the button.
|
|
12400
|
+
* @returns {TemplateResult}
|
|
12401
|
+
* @private
|
|
12402
|
+
*/
|
|
12403
|
+
renderLayoutDefault() {
|
|
12099
12404
|
const classes = {
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
'auro-button--iconOnly': this.iconOnly,
|
|
12106
|
-
'auro-button--iconOnlySlim': this.iconOnly && this.slim,
|
|
12107
|
-
'loading': this.loading
|
|
12405
|
+
"util_insetLg--squish": true,
|
|
12406
|
+
"auro-button": true,
|
|
12407
|
+
"icon-only": this.hideText,
|
|
12408
|
+
wrapper: true,
|
|
12409
|
+
loading: this.loading,
|
|
12108
12410
|
};
|
|
12109
12411
|
|
|
12110
12412
|
return html`
|
|
12111
12413
|
<button
|
|
12112
12414
|
part="button"
|
|
12113
|
-
aria-
|
|
12114
|
-
aria-
|
|
12115
|
-
aria-labelledby="${ifDefined(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
12116
|
-
aria-expanded="${ifDefined(this.ariaexpanded)}"
|
|
12415
|
+
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
12416
|
+
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
12117
12417
|
tabIndex="${ifDefined(this.tIndex)}"
|
|
12118
12418
|
?autofocus="${this.autofocus}"
|
|
12119
12419
|
class="${classMap(classes)}"
|
|
@@ -12130,23 +12430,28 @@ class AuroButton extends LitElement {
|
|
|
12130
12430
|
|
|
12131
12431
|
<span class="contentWrapper">
|
|
12132
12432
|
<span class="textSlot" part="text">
|
|
12133
|
-
|
|
12134
|
-
</span>
|
|
12135
|
-
|
|
12136
|
-
<span part="icon">
|
|
12137
|
-
<slot name="icon"></slot>
|
|
12433
|
+
<slot></slot>
|
|
12138
12434
|
</span>
|
|
12139
12435
|
</span>
|
|
12140
12436
|
</button>
|
|
12141
12437
|
`;
|
|
12142
12438
|
}
|
|
12143
|
-
}
|
|
12144
12439
|
|
|
12145
|
-
|
|
12440
|
+
/**
|
|
12441
|
+
* Renders the layout of the button
|
|
12442
|
+
* @returns {TemplateResult}
|
|
12443
|
+
* @private
|
|
12444
|
+
*/
|
|
12445
|
+
renderLayout() {
|
|
12446
|
+
return this.renderLayoutDefault();
|
|
12447
|
+
}
|
|
12448
|
+
};
|
|
12449
|
+
|
|
12450
|
+
var buttonVersion$1 = '11.0.0';
|
|
12146
12451
|
|
|
12147
|
-
var colorCss$
|
|
12452
|
+
var colorCss$5 = 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-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
12148
12453
|
|
|
12149
|
-
var styleCss$
|
|
12454
|
+
var styleCss$6 = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
12150
12455
|
|
|
12151
12456
|
var tokensCss$5 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
12152
12457
|
|
|
@@ -12243,8 +12548,8 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
12243
12548
|
|
|
12244
12549
|
static get styles() {
|
|
12245
12550
|
return [
|
|
12246
|
-
colorCss$
|
|
12247
|
-
styleCss$
|
|
12551
|
+
colorCss$5,
|
|
12552
|
+
styleCss$6,
|
|
12248
12553
|
tokensCss$5
|
|
12249
12554
|
];
|
|
12250
12555
|
}
|
|
@@ -12370,7 +12675,7 @@ class AuroInput extends BaseInput {
|
|
|
12370
12675
|
/**
|
|
12371
12676
|
* @private
|
|
12372
12677
|
*/
|
|
12373
|
-
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
12678
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion$1, AuroButton$1);
|
|
12374
12679
|
|
|
12375
12680
|
/**
|
|
12376
12681
|
* @private
|
|
@@ -12394,7 +12699,7 @@ class AuroInput extends BaseInput {
|
|
|
12394
12699
|
css`${classicColorCss}`,
|
|
12395
12700
|
css`${shapeSizeCss}`,
|
|
12396
12701
|
css`${colorBaseCss}`,
|
|
12397
|
-
css`${styleCss$4}`,
|
|
12702
|
+
css`${styleCss$4$1}`,
|
|
12398
12703
|
css`${styleDefaultCss}`,
|
|
12399
12704
|
css`${tokensCss$4}`,
|
|
12400
12705
|
css`${emphasizedStyleCss}`,
|
|
@@ -12410,6 +12715,7 @@ class AuroInput extends BaseInput {
|
|
|
12410
12715
|
*/
|
|
12411
12716
|
get commonLabelClasses() {
|
|
12412
12717
|
return {
|
|
12718
|
+
'is-disabled': this.disabled,
|
|
12413
12719
|
'withValue': this.value && this.value.length > 0,
|
|
12414
12720
|
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
12415
12721
|
};
|
|
@@ -12446,11 +12752,23 @@ class AuroInput extends BaseInput {
|
|
|
12446
12752
|
get commonWrapperClasses() {
|
|
12447
12753
|
return {
|
|
12448
12754
|
'wrapper': true,
|
|
12755
|
+
'simple': this.simple,
|
|
12449
12756
|
'withValue': this.value && this.value.length > 0,
|
|
12450
12757
|
'hasFocus': this.hasFocus
|
|
12451
12758
|
};
|
|
12452
12759
|
}
|
|
12453
12760
|
|
|
12761
|
+
/**
|
|
12762
|
+
* Returns classmap configuration for accent elements in each layout.
|
|
12763
|
+
* @private
|
|
12764
|
+
* @returns {object} - Returns classmap.
|
|
12765
|
+
*/
|
|
12766
|
+
get commonAccentClasses() {
|
|
12767
|
+
return {
|
|
12768
|
+
'util_displayHidden': false
|
|
12769
|
+
};
|
|
12770
|
+
}
|
|
12771
|
+
|
|
12454
12772
|
/**
|
|
12455
12773
|
* Returns classmap configuration for helpText elements in each layout.
|
|
12456
12774
|
* @private
|
|
@@ -12473,7 +12791,7 @@ class AuroInput extends BaseInput {
|
|
|
12473
12791
|
*
|
|
12474
12792
|
*/
|
|
12475
12793
|
static register(name = "auro-input") {
|
|
12476
|
-
AuroLibraryRuntimeUtils$
|
|
12794
|
+
AuroLibraryRuntimeUtils$3$1.prototype.registerComponent(name, AuroInput);
|
|
12477
12795
|
}
|
|
12478
12796
|
|
|
12479
12797
|
/**
|
|
@@ -12546,28 +12864,33 @@ class AuroInput extends BaseInput {
|
|
|
12546
12864
|
: this.commonInputClasses;
|
|
12547
12865
|
|
|
12548
12866
|
return html`
|
|
12549
|
-
<label for=${this.
|
|
12867
|
+
<label for=${this.inputId} class="${classMap(this.commonLabelClasses)}" part="label">
|
|
12550
12868
|
<slot name="label">
|
|
12551
12869
|
${this.label}
|
|
12552
12870
|
</slot>
|
|
12553
12871
|
</label>
|
|
12872
|
+
|
|
12873
|
+
<!-- Attributes are grouped into: basic attributes, event handlers, ARIA attributes, and input-specific attributes -->
|
|
12554
12874
|
<input
|
|
12555
12875
|
@blur="${this.handleBlur}"
|
|
12556
12876
|
@focusin="${this.handleFocusin}"
|
|
12557
12877
|
@focusout="${this.handleFocusout}"
|
|
12558
12878
|
@input="${this.handleInput}"
|
|
12879
|
+
.placeholder=${this.placeholderStr}
|
|
12880
|
+
.role=${this.a11yRole}
|
|
12559
12881
|
?activeLabel="${this.activeLabel}"
|
|
12560
12882
|
?disabled="${this.disabled}"
|
|
12561
12883
|
?required="${this.required}"
|
|
12562
|
-
|
|
12884
|
+
aria-controls=${ifDefined(this.a11yControls)}
|
|
12563
12885
|
aria-describedby="${this.uniqueId}"
|
|
12886
|
+
aria-expanded=${ifDefined(this.a11yExpanded)}
|
|
12564
12887
|
aria-invalid="${this.validity !== 'valid'}"
|
|
12565
|
-
autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
12566
12888
|
autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
|
|
12889
|
+
autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
12567
12890
|
autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
|
|
12568
12891
|
class="${classMap(inputOverrideClasses)}"
|
|
12569
12892
|
id="${this.inputId}"
|
|
12570
|
-
|
|
12893
|
+
inputmode="${ifDefined(this.inputmode ? this.inputmode : undefined)}"
|
|
12571
12894
|
lang="${ifDefined(this.lang)}"
|
|
12572
12895
|
maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
|
|
12573
12896
|
minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
|
|
@@ -12575,7 +12898,8 @@ class AuroInput extends BaseInput {
|
|
|
12575
12898
|
part="input"
|
|
12576
12899
|
pattern="${ifDefined(this.definePattern())}"
|
|
12577
12900
|
spellcheck="${ifDefined(this.spellcheck ? this.spellcheck : undefined)}"
|
|
12578
|
-
type="${this.type ===
|
|
12901
|
+
type="${this.type === "password" && this.showPassword ? "text" : this.getInputType(this.type)}"
|
|
12902
|
+
/>
|
|
12579
12903
|
<div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
12580
12904
|
<div class="displayValueWrapper">
|
|
12581
12905
|
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
@@ -12597,11 +12921,12 @@ class AuroInput extends BaseInput {
|
|
|
12597
12921
|
?onDark="${this.onDark}"
|
|
12598
12922
|
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
12599
12923
|
class="notificationBtn clearBtn"
|
|
12600
|
-
|
|
12601
|
-
|
|
12924
|
+
shape="circle"
|
|
12925
|
+
size="sm"
|
|
12926
|
+
variant="ghost">
|
|
12602
12927
|
<${this.iconTag}
|
|
12928
|
+
?customColor="${this.onDark}"
|
|
12603
12929
|
category="interface"
|
|
12604
|
-
customColor
|
|
12605
12930
|
name="x-lg"
|
|
12606
12931
|
>
|
|
12607
12932
|
</${this.iconTag}>
|
|
@@ -12619,22 +12944,23 @@ class AuroInput extends BaseInput {
|
|
|
12619
12944
|
return html`
|
|
12620
12945
|
<div class="notification">
|
|
12621
12946
|
<${this.buttonTag}
|
|
12622
|
-
@click="${this.handleClickShowPassword}
|
|
12947
|
+
@click="${this.handleClickShowPassword}"
|
|
12623
12948
|
?onDark="${this.onDark}"
|
|
12624
|
-
aria-hidden="true"
|
|
12625
12949
|
class="notificationBtn passwordBtn"
|
|
12626
|
-
|
|
12627
|
-
|
|
12950
|
+
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
12951
|
+
shape="circle"
|
|
12952
|
+
size="sm"
|
|
12953
|
+
variant="ghost">
|
|
12628
12954
|
<${this.iconTag}
|
|
12955
|
+
?customColor="${this.onDark}"
|
|
12629
12956
|
?hidden=${!this.showPassword}
|
|
12630
12957
|
category="interface"
|
|
12631
|
-
customColor
|
|
12632
12958
|
name="hide-password-stroke">
|
|
12633
12959
|
</${this.iconTag}>
|
|
12634
12960
|
<${this.iconTag}
|
|
12961
|
+
?customColor="${this.onDark}"
|
|
12635
12962
|
?hidden=${this.showPassword}
|
|
12636
12963
|
category="interface"
|
|
12637
|
-
customColor
|
|
12638
12964
|
name="view-password-stroke">
|
|
12639
12965
|
</${this.iconTag}>
|
|
12640
12966
|
</${this.buttonTag}>
|
|
@@ -12714,19 +13040,25 @@ class AuroInput extends BaseInput {
|
|
|
12714
13040
|
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
12715
13041
|
*/
|
|
12716
13042
|
renderLayoutClassic() {
|
|
13043
|
+
const classicClassMap = {
|
|
13044
|
+
...this.commonWrapperClasses,
|
|
13045
|
+
'thin': !this.simple
|
|
13046
|
+
};
|
|
13047
|
+
|
|
12717
13048
|
return html`
|
|
12718
13049
|
<div
|
|
12719
13050
|
@click="${this.handleClick}"
|
|
12720
|
-
class="${classMap(
|
|
13051
|
+
class="${classMap(classicClassMap)}"
|
|
12721
13052
|
part="wrapper">
|
|
12722
|
-
<div class="accents left">
|
|
13053
|
+
<div part="accent-left" class="accents left ${classMap(this.commonAccentClasses)}">
|
|
12723
13054
|
${this.renderHtmlTypeIcon()}
|
|
12724
13055
|
</div>
|
|
12725
13056
|
<div class="mainContent">
|
|
12726
13057
|
${this.renderHtmlInput(true)}
|
|
12727
13058
|
</div>
|
|
12728
|
-
<div class="accents right">
|
|
13059
|
+
<div part="accent-right" class="accents right ${classMap(this.commonAccentClasses)}">
|
|
12729
13060
|
${this.renderValidationErrorIconHtml()}
|
|
13061
|
+
${this.hasValue && this.type === 'password' ? this.renderHtmlNotificationPassword() : undefined}
|
|
12730
13062
|
${this.hasValue ? html`
|
|
12731
13063
|
${!this.disabled && !this.readonly ? html`
|
|
12732
13064
|
${this.renderHtmlActionClear()}
|
|
@@ -12751,7 +13083,7 @@ class AuroInput extends BaseInput {
|
|
|
12751
13083
|
@click="${this.handleClick}"
|
|
12752
13084
|
class="${classMap(this.commonWrapperClasses)}"
|
|
12753
13085
|
part="wrapper">
|
|
12754
|
-
<div class="accents left">
|
|
13086
|
+
<div class="accents left ${this.commonAccentClasses}">
|
|
12755
13087
|
${this.layout.includes('left') ? html`
|
|
12756
13088
|
${this.renderValidationErrorIconHtml()}
|
|
12757
13089
|
` : undefined}
|
|
@@ -12759,7 +13091,7 @@ class AuroInput extends BaseInput {
|
|
|
12759
13091
|
<div class="mainContent">
|
|
12760
13092
|
${this.renderHtmlInput()}
|
|
12761
13093
|
</div>
|
|
12762
|
-
<div class="accents right">
|
|
13094
|
+
<div class="accents right ${this.commonAccentClasses}">
|
|
12763
13095
|
${this.layout.includes('right') || this.layout === "emphasized" ? html`
|
|
12764
13096
|
${this.renderValidationErrorIconHtml()}
|
|
12765
13097
|
` : undefined}
|
|
@@ -12838,122 +13170,1115 @@ class AuroInput extends BaseInput {
|
|
|
12838
13170
|
|
|
12839
13171
|
var inputVersion = '4.2.0';
|
|
12840
13172
|
|
|
12841
|
-
var colorCss$
|
|
13173
|
+
var colorCss$3 = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
12842
13174
|
|
|
12843
|
-
var styleCss$
|
|
13175
|
+
var styleCss$4 = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column}#header{display:flex;width:100%;min-height:var(--ds-size-1000, 5rem);box-sizing:border-box;align-items:end;padding-top:var(--ds-size-400, 2rem);padding-right:var(--ds-size-700, 3.5rem);padding-left:var(--ds-size-200, 1rem);pointer-events:none}#subheader{width:100%}#subheader ::slotted([auro-input]){box-sizing:border-box;padding:0 var(--ds-size-200, 1rem)}#closeButton{position:absolute;top:var(--ds-size-400, 2rem);right:var(--ds-size-200, 1rem);border:none;background-color:transparent;cursor:pointer}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
12844
13176
|
|
|
12845
13177
|
var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
12846
13178
|
|
|
12847
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
12848
|
-
// See LICENSE in the project root for license information.
|
|
13179
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13180
|
+
// See LICENSE in the project root for license information.
|
|
13181
|
+
|
|
13182
|
+
// ---------------------------------------------------------------------
|
|
13183
|
+
|
|
13184
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
13185
|
+
|
|
13186
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
13187
|
+
|
|
13188
|
+
/* eslint-disable jsdoc/require-param */
|
|
13189
|
+
|
|
13190
|
+
/**
|
|
13191
|
+
* This will register a new custom element with the browser.
|
|
13192
|
+
* @param {String} name - The name of the custom element.
|
|
13193
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
13194
|
+
* @returns {void}
|
|
13195
|
+
*/
|
|
13196
|
+
registerComponent(name, componentClass) {
|
|
13197
|
+
if (!customElements.get(name)) {
|
|
13198
|
+
customElements.define(name, class extends componentClass {});
|
|
13199
|
+
}
|
|
13200
|
+
}
|
|
13201
|
+
|
|
13202
|
+
/**
|
|
13203
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
13204
|
+
* @returns {void}
|
|
13205
|
+
*/
|
|
13206
|
+
closestElement(
|
|
13207
|
+
selector, // selector like in .closest()
|
|
13208
|
+
base = this, // extra functionality to skip a parent
|
|
13209
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
13210
|
+
!el || el === document || el === window
|
|
13211
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
13212
|
+
: found
|
|
13213
|
+
? found // found a selector INside this element
|
|
13214
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
13215
|
+
) {
|
|
13216
|
+
return __Closest(base);
|
|
13217
|
+
}
|
|
13218
|
+
/* eslint-enable jsdoc/require-param */
|
|
13219
|
+
|
|
13220
|
+
/**
|
|
13221
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
13222
|
+
* @param {Object} elem - The element to check.
|
|
13223
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
13224
|
+
* @returns {void}
|
|
13225
|
+
*/
|
|
13226
|
+
handleComponentTagRename(elem, tagName) {
|
|
13227
|
+
const tag = tagName.toLowerCase();
|
|
13228
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
13229
|
+
|
|
13230
|
+
if (elemTag !== tag) {
|
|
13231
|
+
elem.setAttribute(tag, true);
|
|
13232
|
+
}
|
|
13233
|
+
}
|
|
13234
|
+
|
|
13235
|
+
/**
|
|
13236
|
+
* Validates if an element is a specific Auro component.
|
|
13237
|
+
* @param {Object} elem - The element to validate.
|
|
13238
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
13239
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
13240
|
+
*/
|
|
13241
|
+
elementMatch(elem, tagName) {
|
|
13242
|
+
const tag = tagName.toLowerCase();
|
|
13243
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
13244
|
+
|
|
13245
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
13246
|
+
}
|
|
13247
|
+
};
|
|
13248
|
+
|
|
13249
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13250
|
+
// See LICENSE in the project root for license information.
|
|
13251
|
+
|
|
13252
|
+
|
|
13253
|
+
class AuroDependencyVersioning {
|
|
13254
|
+
|
|
13255
|
+
/**
|
|
13256
|
+
* Generates a unique string to be used for child auro element naming.
|
|
13257
|
+
* @private
|
|
13258
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
13259
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
13260
|
+
* @returns {string} - Unique string to be used for naming.
|
|
13261
|
+
*/
|
|
13262
|
+
generateElementName(baseName, version) {
|
|
13263
|
+
let result = baseName;
|
|
13264
|
+
|
|
13265
|
+
result += '-';
|
|
13266
|
+
result += version.replace(/[.]/g, '_');
|
|
13267
|
+
|
|
13268
|
+
return result;
|
|
13269
|
+
}
|
|
13270
|
+
|
|
13271
|
+
/**
|
|
13272
|
+
* Generates a unique string to be used for child auro element naming.
|
|
13273
|
+
* @param {string} baseName - Defines the first part of the unique element name.
|
|
13274
|
+
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
13275
|
+
* @returns {string} - Unique string to be used for naming.
|
|
13276
|
+
*/
|
|
13277
|
+
generateTag(baseName, version, tagClass) {
|
|
13278
|
+
const elementName = this.generateElementName(baseName, version);
|
|
13279
|
+
const tag = literal`${unsafeStatic(elementName)}`;
|
|
13280
|
+
|
|
13281
|
+
if (!customElements.get(elementName)) {
|
|
13282
|
+
customElements.define(elementName, class extends tagClass {});
|
|
13283
|
+
}
|
|
13284
|
+
|
|
13285
|
+
return tag;
|
|
13286
|
+
}
|
|
13287
|
+
}
|
|
13288
|
+
|
|
13289
|
+
/**
|
|
13290
|
+
* Private module-level WeakMap to hold MutationObservers for each host element.
|
|
13291
|
+
*/
|
|
13292
|
+
const _observers = new WeakMap();
|
|
13293
|
+
|
|
13294
|
+
/**
|
|
13295
|
+
* Private module-level WeakMap to hold attribute matchers and targets for each host element.
|
|
13296
|
+
* Structure: {
|
|
13297
|
+
* host: {
|
|
13298
|
+
* matchers: Set<Function>,
|
|
13299
|
+
* targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
|
|
13300
|
+
* }
|
|
13301
|
+
* }
|
|
13302
|
+
*/
|
|
13303
|
+
const _transportConfig = new WeakMap();
|
|
13304
|
+
|
|
13305
|
+
/**
|
|
13306
|
+
* Transfers all matching attributes from a host element to a target element and observes for future changes.
|
|
13307
|
+
*
|
|
13308
|
+
* @param {Object} params - The parameters for the function.
|
|
13309
|
+
* @param {HTMLElement} params.host - The host element from which attributes will be transported.
|
|
13310
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
13311
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
|
|
13312
|
+
* @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
|
|
13313
|
+
* @returns {Function} A function to detach the observer when no longer needed.
|
|
13314
|
+
* @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
|
|
13315
|
+
*/
|
|
13316
|
+
const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
|
|
13317
|
+
// Guard Clause: Ensure host is valid HTMLElement instance
|
|
13318
|
+
if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
|
|
13319
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
|
|
13320
|
+
}
|
|
13321
|
+
|
|
13322
|
+
// Guard Clause: Ensure target is valid HTMLElement instance
|
|
13323
|
+
if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
|
|
13324
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
|
|
13325
|
+
}
|
|
13326
|
+
|
|
13327
|
+
// Guard Clause: Ensure match is a function
|
|
13328
|
+
if (typeof match !== 'function') {
|
|
13329
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
|
|
13330
|
+
}
|
|
13331
|
+
|
|
13332
|
+
// Guard Clause: Ensure removeOriginal is a boolean
|
|
13333
|
+
if (typeof removeOriginal !== 'boolean') {
|
|
13334
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
|
|
13335
|
+
}
|
|
13336
|
+
|
|
13337
|
+
// Register this transport and get cleanup function
|
|
13338
|
+
return _registerTransport({
|
|
13339
|
+
host,
|
|
13340
|
+
target,
|
|
13341
|
+
matcher: match,
|
|
13342
|
+
removeOriginal
|
|
13343
|
+
});
|
|
13344
|
+
};
|
|
13345
|
+
|
|
13346
|
+
/**
|
|
13347
|
+
* Registers a matcher and target for a host element and attaches an observer if needed.
|
|
13348
|
+
*
|
|
13349
|
+
* @param {Object} params - The parameters object.
|
|
13350
|
+
* @param {HTMLElement} params.host - The host element to observe.
|
|
13351
|
+
* @param {HTMLElement} params.target - The target element to receive attributes.
|
|
13352
|
+
* @param {Function} params.matcher - Function that determines which attributes to transport.
|
|
13353
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
|
|
13354
|
+
* @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
|
|
13355
|
+
* @returns {Function} Function to detach the specific matcher and target pairing.
|
|
13356
|
+
* @private
|
|
13357
|
+
*/
|
|
13358
|
+
const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
|
|
13359
|
+
// Initialize config for this host if it doesn't exist
|
|
13360
|
+
if (!_transportConfig.has(host)) {
|
|
13361
|
+
_transportConfig.set(host, {
|
|
13362
|
+
matchers: new Set(),
|
|
13363
|
+
targets: new Map()
|
|
13364
|
+
});
|
|
13365
|
+
}
|
|
13366
|
+
|
|
13367
|
+
const config = _transportConfig.get(host);
|
|
13368
|
+
|
|
13369
|
+
// Add the matcher to the set of matchers for this host
|
|
13370
|
+
config.matchers.add(matcher);
|
|
13371
|
+
|
|
13372
|
+
// Initialize target entry if it doesn't exist
|
|
13373
|
+
if (!config.targets.has(target)) {
|
|
13374
|
+
config.targets.set(target, new Map());
|
|
13375
|
+
}
|
|
13376
|
+
|
|
13377
|
+
// Store the matcher with its removeOriginal setting for this target
|
|
13378
|
+
config.targets.get(target).set(matcher, {
|
|
13379
|
+
removeOriginal,
|
|
13380
|
+
currentAttributes: new Map()
|
|
13381
|
+
});
|
|
13382
|
+
|
|
13383
|
+
// Perform initial attribute transport
|
|
13384
|
+
_transportAttributes({ host, target, matcher, removeOriginal });
|
|
13385
|
+
|
|
13386
|
+
// Attach observer
|
|
13387
|
+
_attachObserver(host);
|
|
13388
|
+
|
|
13389
|
+
// Return cleanup function and utility functions
|
|
13390
|
+
return {
|
|
13391
|
+
cleanup: () => _cleanupTransport(host, target, matcher),
|
|
13392
|
+
getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
|
|
13393
|
+
getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
|
|
13394
|
+
}
|
|
13395
|
+
};
|
|
13396
|
+
|
|
13397
|
+
/**
|
|
13398
|
+
* Cleans up resources associated with a specific matcher and target for a host element.
|
|
13399
|
+
*
|
|
13400
|
+
* @param {HTMLElement} host - The host element
|
|
13401
|
+
* @param {HTMLElement} target - The target element
|
|
13402
|
+
* @param {Function} matcher - The matcher function
|
|
13403
|
+
* @private
|
|
13404
|
+
*/
|
|
13405
|
+
const _cleanupTransport = (host, target, matcher) => {
|
|
13406
|
+
const config = _transportConfig.get(host);
|
|
13407
|
+
if (!config) return;
|
|
13408
|
+
|
|
13409
|
+
// Remove this matcher from this target
|
|
13410
|
+
const targetMatchers = config.targets.get(target);
|
|
13411
|
+
if (targetMatchers) {
|
|
13412
|
+
targetMatchers.delete(matcher);
|
|
13413
|
+
|
|
13414
|
+
// If this target has no more matchers, remove it
|
|
13415
|
+
if (targetMatchers.size === 0) {
|
|
13416
|
+
config.targets.delete(target);
|
|
13417
|
+
}
|
|
13418
|
+
}
|
|
13419
|
+
|
|
13420
|
+
// Check if this matcher is still used by any target
|
|
13421
|
+
let matcherStillUsed = false;
|
|
13422
|
+
for (const matcherMap of config.targets.values()) {
|
|
13423
|
+
if (matcherMap.has(matcher)) {
|
|
13424
|
+
matcherStillUsed = true;
|
|
13425
|
+
break;
|
|
13426
|
+
}
|
|
13427
|
+
}
|
|
13428
|
+
|
|
13429
|
+
// If not used anymore, remove from matchers set
|
|
13430
|
+
if (!matcherStillUsed) {
|
|
13431
|
+
config.matchers.delete(matcher);
|
|
13432
|
+
}
|
|
13433
|
+
|
|
13434
|
+
// If no more targets or matchers, detach observer
|
|
13435
|
+
if (config.targets.size === 0 || config.matchers.size === 0) {
|
|
13436
|
+
_detachObserver(host);
|
|
13437
|
+
}
|
|
13438
|
+
};
|
|
13439
|
+
|
|
13440
|
+
/**
|
|
13441
|
+
* Generic function to transport attributes from a host element to a target element.
|
|
13442
|
+
*
|
|
13443
|
+
* @param {Object} params - The parameters object.
|
|
13444
|
+
* @param {HTMLElement} params.host - The host element from which to transport attributes.
|
|
13445
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
13446
|
+
* @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
|
|
13447
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
|
|
13448
|
+
* @returns {void}
|
|
13449
|
+
* @private
|
|
13450
|
+
*/
|
|
13451
|
+
const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
|
|
13452
|
+
// Get a list of all matching attributes on the host element and their values
|
|
13453
|
+
const matchingAttributes = host.getAttributeNames()
|
|
13454
|
+
.filter(attr => matcher(attr))
|
|
13455
|
+
.reduce((acc, attr) => {
|
|
13456
|
+
acc[attr] = host.getAttribute(attr);
|
|
13457
|
+
return acc;
|
|
13458
|
+
}, {});
|
|
13459
|
+
|
|
13460
|
+
// Move matching attributes to the target element, removing them from the host if removeOriginal is true
|
|
13461
|
+
Object.entries(matchingAttributes).forEach(([key, value]) => {
|
|
13462
|
+
_setObservedAttribute(host, target, matcher, key, value);
|
|
13463
|
+
target.setAttribute(key, value);
|
|
13464
|
+
if (removeOriginal) {
|
|
13465
|
+
host.removeAttribute(key);
|
|
13466
|
+
}
|
|
13467
|
+
});
|
|
13468
|
+
};
|
|
13469
|
+
|
|
13470
|
+
/**
|
|
13471
|
+
* Attaches a MutationObserver to the host element to monitor attribute changes.
|
|
13472
|
+
*
|
|
13473
|
+
* @param {HTMLElement} host - The element to observe for attribute changes.
|
|
13474
|
+
* @returns {MutationObserver} The observer instance.
|
|
13475
|
+
* @private
|
|
13476
|
+
*/
|
|
13477
|
+
const _attachObserver = (host) => {
|
|
13478
|
+
// If an observer for this host already exists, return it
|
|
13479
|
+
if (_observers.has(host)) {
|
|
13480
|
+
return _observers.get(host);
|
|
13481
|
+
}
|
|
13482
|
+
|
|
13483
|
+
// Create a new MutationObserver
|
|
13484
|
+
const observer = new MutationObserver((mutations) => {
|
|
13485
|
+
const config = _transportConfig.get(host);
|
|
13486
|
+
if (!config) return;
|
|
13487
|
+
|
|
13488
|
+
// For each mutation affecting attributes
|
|
13489
|
+
mutations
|
|
13490
|
+
.filter(mutation => mutation.type === 'attributes')
|
|
13491
|
+
.forEach(mutation => {
|
|
13492
|
+
const attributeName = mutation.attributeName;
|
|
13493
|
+
|
|
13494
|
+
// Find matchers that care about this attribute
|
|
13495
|
+
for (const matcher of config.matchers) {
|
|
13496
|
+
if (matcher(attributeName)) {
|
|
13497
|
+
// For each target that uses this matcher
|
|
13498
|
+
for (const [target, matcherConfigs] of config.targets.entries()) {
|
|
13499
|
+
if (matcherConfigs.has(matcher)) {
|
|
13500
|
+
const { removeOriginal } = matcherConfigs.get(matcher);
|
|
13501
|
+
_transportAttributes({
|
|
13502
|
+
host,
|
|
13503
|
+
target,
|
|
13504
|
+
matcher,
|
|
13505
|
+
removeOriginal
|
|
13506
|
+
});
|
|
13507
|
+
}
|
|
13508
|
+
}
|
|
13509
|
+
}
|
|
13510
|
+
}
|
|
13511
|
+
});
|
|
13512
|
+
});
|
|
13513
|
+
|
|
13514
|
+
// Start observing attribute changes
|
|
13515
|
+
observer.observe(host, { attributes: true });
|
|
13516
|
+
|
|
13517
|
+
// Store the observer
|
|
13518
|
+
_observers.set(host, observer);
|
|
13519
|
+
|
|
13520
|
+
return observer;
|
|
13521
|
+
};
|
|
13522
|
+
|
|
13523
|
+
/**
|
|
13524
|
+
* Detaches and cleans up the MutationObserver for a given host element.
|
|
13525
|
+
*
|
|
13526
|
+
* @param {HTMLElement} host - The element whose observer should be detached.
|
|
13527
|
+
* @private
|
|
13528
|
+
*/
|
|
13529
|
+
const _detachObserver = (host) => {
|
|
13530
|
+
if (_observers.has(host)) {
|
|
13531
|
+
const observer = _observers.get(host);
|
|
13532
|
+
observer.disconnect();
|
|
13533
|
+
_observers.delete(host);
|
|
13534
|
+
}
|
|
13535
|
+
|
|
13536
|
+
// Clean up the transport config as well
|
|
13537
|
+
if (_transportConfig.has(host)) {
|
|
13538
|
+
_transportConfig.delete(host);
|
|
13539
|
+
}
|
|
13540
|
+
};
|
|
13541
|
+
|
|
13542
|
+
/**
|
|
13543
|
+
* Gets the matcher configuration for a specific host, target, and matcher
|
|
13544
|
+
* @param {HTMLElement} host - The host element
|
|
13545
|
+
* @param {HTMLElement} target - The target element
|
|
13546
|
+
* @param {Function} matcher - The matcher function
|
|
13547
|
+
* @returns {Object|undefined} The matcher configuration if found
|
|
13548
|
+
* @private
|
|
13549
|
+
*/
|
|
13550
|
+
const _getMatcherConfig = (host, target, matcher) => {
|
|
13551
|
+
const config = _transportConfig.get(host);
|
|
13552
|
+
if (!config) return undefined;
|
|
13553
|
+
|
|
13554
|
+
const targetMatchers = config.targets.get(target);
|
|
13555
|
+
if (!targetMatchers) return undefined;
|
|
13556
|
+
|
|
13557
|
+
return targetMatchers.get(matcher);
|
|
13558
|
+
};
|
|
13559
|
+
|
|
13560
|
+
/**
|
|
13561
|
+
* Sets an observed attribute value
|
|
13562
|
+
* @param {HTMLElement} host - The host element
|
|
13563
|
+
* @param {HTMLElement} target - The target element
|
|
13564
|
+
* @param {Function} matcher - The matcher function
|
|
13565
|
+
* @param {string} key - The attribute name
|
|
13566
|
+
* @param {string} value - The attribute value
|
|
13567
|
+
* @private
|
|
13568
|
+
*/
|
|
13569
|
+
const _setObservedAttribute = (host, target, matcher, key, value) => {
|
|
13570
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
13571
|
+
if (matcherConfig) {
|
|
13572
|
+
matcherConfig.currentAttributes.set(key, value);
|
|
13573
|
+
}
|
|
13574
|
+
};
|
|
13575
|
+
|
|
13576
|
+
const _getObservedAttribute = (host, target, matcher, attr) => {
|
|
13577
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
13578
|
+
if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
|
|
13579
|
+
return undefined;
|
|
13580
|
+
};
|
|
13581
|
+
|
|
13582
|
+
const _getObservedAttributes = (host, target, matcher) => {
|
|
13583
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
13584
|
+
if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
|
|
13585
|
+
return [];
|
|
13586
|
+
};
|
|
13587
|
+
|
|
13588
|
+
const _matchers = {
|
|
13589
|
+
'aria-': attr => attr.startsWith('aria-'),
|
|
13590
|
+
'role': attr => attr.match(/^role$/)
|
|
13591
|
+
};
|
|
13592
|
+
|
|
13593
|
+
const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
|
|
13594
|
+
return transportAttributes({
|
|
13595
|
+
host,
|
|
13596
|
+
target,
|
|
13597
|
+
match: attr => {
|
|
13598
|
+
for (const key in _matchers) {
|
|
13599
|
+
if (_matchers[key](attr)) return true;
|
|
13600
|
+
}
|
|
13601
|
+
return false;
|
|
13602
|
+
},
|
|
13603
|
+
removeOriginal
|
|
13604
|
+
});
|
|
13605
|
+
};
|
|
13606
|
+
|
|
13607
|
+
let AuroElement$1 = class AuroElement extends LitElement {
|
|
13608
|
+
|
|
13609
|
+
/**
|
|
13610
|
+
* @type {Object} return object from transportAttributes via a11yUtilities
|
|
13611
|
+
* @property {Function} cleanup - Function to clean up the attribute watcher.
|
|
13612
|
+
* @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
|
|
13613
|
+
* @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
|
|
13614
|
+
* @private
|
|
13615
|
+
*/
|
|
13616
|
+
attributeWatcher;
|
|
13617
|
+
|
|
13618
|
+
static get properties() {
|
|
13619
|
+
return {
|
|
13620
|
+
|
|
13621
|
+
/**
|
|
13622
|
+
* Defines the layout of an element.
|
|
13623
|
+
* @default {'default'}
|
|
13624
|
+
*/
|
|
13625
|
+
layout: {
|
|
13626
|
+
type: String,
|
|
13627
|
+
attribute: "layout",
|
|
13628
|
+
reflect: true
|
|
13629
|
+
},
|
|
13630
|
+
|
|
13631
|
+
/**
|
|
13632
|
+
* Defines the shape of an element.
|
|
13633
|
+
* @property {'default', 'rounded', 'pill', 'circle'}
|
|
13634
|
+
* @default {'default'}
|
|
13635
|
+
*/
|
|
13636
|
+
shape: {
|
|
13637
|
+
type: String,
|
|
13638
|
+
attribute: "shape",
|
|
13639
|
+
reflect: true
|
|
13640
|
+
},
|
|
13641
|
+
|
|
13642
|
+
/**
|
|
13643
|
+
* Defines the size of an element.
|
|
13644
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'}
|
|
13645
|
+
* @default {'md'}
|
|
13646
|
+
*/
|
|
13647
|
+
size: {
|
|
13648
|
+
type: String,
|
|
13649
|
+
attribute: "size",
|
|
13650
|
+
reflect: true
|
|
13651
|
+
},
|
|
13652
|
+
|
|
13653
|
+
/**
|
|
13654
|
+
* This Boolean attribute lets you specify that the element should be rendered in dark mode.
|
|
13655
|
+
* @default {false}
|
|
13656
|
+
*/
|
|
13657
|
+
onDark: {
|
|
13658
|
+
type: Boolean,
|
|
13659
|
+
attribute: "ondark",
|
|
13660
|
+
reflect: true
|
|
13661
|
+
},
|
|
13662
|
+
|
|
13663
|
+
/**
|
|
13664
|
+
* A reference to the wrapper element in the shadow DOM.
|
|
13665
|
+
* This is used to apply layout and shape classes dynamically.
|
|
13666
|
+
* @type {HTMLElement|null}
|
|
13667
|
+
* @default {null}
|
|
13668
|
+
* @private
|
|
13669
|
+
*/
|
|
13670
|
+
wrapper: {
|
|
13671
|
+
type: HTMLElement,
|
|
13672
|
+
attribute: false,
|
|
13673
|
+
reflect: false
|
|
13674
|
+
}
|
|
13675
|
+
};
|
|
13676
|
+
}
|
|
13677
|
+
|
|
13678
|
+
|
|
13679
|
+
|
|
13680
|
+
resetShapeClasses() {
|
|
13681
|
+
if (this.shape && this.size) {
|
|
13682
|
+
|
|
13683
|
+
if (this.wrapper) {
|
|
13684
|
+
this.wrapper.classList.forEach((className) => {
|
|
13685
|
+
if (className.startsWith('shape-')) {
|
|
13686
|
+
this.wrapper.classList.remove(className);
|
|
13687
|
+
}
|
|
13688
|
+
});
|
|
13689
|
+
|
|
13690
|
+
this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
13691
|
+
}
|
|
13692
|
+
}
|
|
13693
|
+
}
|
|
13694
|
+
|
|
13695
|
+
resetLayoutClasses() {
|
|
13696
|
+
if (this.layout) {
|
|
13697
|
+
if (this.wrapper) {
|
|
13698
|
+
this.wrapper.classList.forEach((className) => {
|
|
13699
|
+
if (className.startsWith('layout-')) {
|
|
13700
|
+
this.wrapper.classList.remove(className);
|
|
13701
|
+
}
|
|
13702
|
+
});
|
|
13703
|
+
|
|
13704
|
+
this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
13705
|
+
}
|
|
13706
|
+
}
|
|
13707
|
+
}
|
|
13708
|
+
|
|
13709
|
+
updateComponentArchitecture() {
|
|
13710
|
+
this.resetLayoutClasses();
|
|
13711
|
+
this.resetShapeClasses();
|
|
13712
|
+
}
|
|
13713
|
+
|
|
13714
|
+
updated(changedProperties) {
|
|
13715
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
13716
|
+
this.updateComponentArchitecture();
|
|
13717
|
+
}
|
|
13718
|
+
}
|
|
13719
|
+
|
|
13720
|
+
firstUpdated() {
|
|
13721
|
+
super.firstUpdated();
|
|
13722
|
+
|
|
13723
|
+
// Set a reference to the wrapper element in the shadow DOM
|
|
13724
|
+
this.wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
13725
|
+
|
|
13726
|
+
// Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
|
|
13727
|
+
this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
|
|
13728
|
+
}
|
|
13729
|
+
|
|
13730
|
+
disconnectedCallback() {
|
|
13731
|
+
super.disconnectedCallback();
|
|
13732
|
+
|
|
13733
|
+
// Cleanup the ARIA observer if it exists
|
|
13734
|
+
if (this.attributeWatcher) {
|
|
13735
|
+
this.attributeWatcher.cleanup();
|
|
13736
|
+
this.attributeWatcher = null;
|
|
13737
|
+
}
|
|
13738
|
+
}
|
|
13739
|
+
|
|
13740
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
13741
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
13742
|
+
render() {
|
|
13743
|
+
try {
|
|
13744
|
+
return this.renderLayout();
|
|
13745
|
+
} catch (error) {
|
|
13746
|
+
// failed to get the defined layout
|
|
13747
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
13748
|
+
|
|
13749
|
+
// fallback to the default layout
|
|
13750
|
+
return this.getLayout('default');
|
|
13751
|
+
}
|
|
13752
|
+
}
|
|
13753
|
+
};
|
|
13754
|
+
|
|
13755
|
+
var styleCss$3 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none;transition:padding 300ms ease-out}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible,.auro-button:focus{outline:none;outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]),.auro-button:focus:not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=ghost]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button.icon-only ::slotted(:not(auro-icon):not([auro-icon])){display:none}.auro-button--slim{min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]),.auro-button--iconOnly:not(.auro-button--rounded):focus:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:padding 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after,.auro-button--rounded:focus:not([variant=flat]):after{border-radius:100px}:host([size=xs]) .wrapper:focus-visible,:host([size=xs]) .wrapper:focus{outline-width:1px;outline-offset:-2px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
13756
|
+
|
|
13757
|
+
var colorCss$2 = css`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text, #01426a)}.auro-button:not([ondark])[variant=ghost]:active:not(:disabled),.auro-button:not([ondark])[variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=ghost]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=ghost]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:active:not(:disabled),.auro-button[ondark][variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05))}.auro-button[ondark][variant=ghost]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
|
|
13758
|
+
|
|
13759
|
+
var tokensCss$2 = css`:host(:not([onDark])){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}:host([onDark]){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-tap-color:transparent}`;
|
|
13760
|
+
|
|
13761
|
+
var shapeSize = css`.shape-rounded-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:6px;overflow:hidden;font-size:18px}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:6px;overflow:hidden;font-size:18px}.shape-rounded-md{min-height:44px;max-height:44px;border-style:solid;border-radius:6px;overflow:hidden;font-size:16px}.shape-rounded-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:6px;overflow:hidden;font-size:14px}.shape-rounded-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:4px;overflow:hidden;font-size:12px;outline-offset:-2px;outline-width:1px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:34px;overflow:hidden;font-size:18px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:34px 0 0 34px;overflow:hidden}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:0 34px 34px 0;overflow:hidden}.shape-pill-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:26px;overflow:hidden;font-size:18px}.shape-pill-left-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:26px 0 0 26px;overflow:hidden}.shape-pill-right-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:0 26px 26px 0;overflow:hidden}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-radius:22px;overflow:hidden}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-radius:22px 0 0 22px;overflow:hidden}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-radius:0 22px 22px 0;overflow:hidden;font-size:16px}.shape-pill-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:16px;overflow:hidden;font-size:14px}.shape-pill-left-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:16px 0 0 16px;overflow:hidden}.shape-pill-right-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:0 16px 16px 0;overflow:hidden}.shape-pill-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:10px;overflow:hidden;font-size:12px;outline-offset:-2px;outline-width:1px}.shape-pill-left-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:10px 0 0 10px;overflow:hidden;outline-offset:-2px;outline-width:1px}.shape-pill-right-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:0 10px 10px 0;overflow:hidden;outline-offset:-2px;outline-width:1px}.shape-circle-xl{min-height:68px;max-height:68px;min-width:68px;max-width:68px;border-style:solid;border-radius:34px;overflow:hidden;padding:0}.shape-circle-lg{min-height:52px;max-height:52px;min-width:52px;max-width:52px;border-style:solid;border-radius:26px;overflow:hidden;padding:0}.shape-circle-md{min-height:44px;max-height:44px;min-width:44px;max-width:44px;border-style:solid;border-radius:22px;overflow:hidden;padding:0}.shape-circle-sm{min-height:32px;max-height:32px;min-width:32px;max-width:32px;border-style:solid;border-radius:16px;overflow:hidden;padding:0}.shape-circle-xs{min-height:20px;max-height:20px;min-width:20px;max-width:20px;border-style:solid;border-radius:10px;overflow:hidden;padding:0;outline-offset:-2px;outline-width:1px}`;
|
|
13762
|
+
|
|
13763
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13764
|
+
// See LICENSE in the project root for license information.
|
|
13765
|
+
|
|
13766
|
+
// ---------------------------------------------------------------------
|
|
13767
|
+
|
|
13768
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
13769
|
+
|
|
13770
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
13771
|
+
|
|
13772
|
+
/* eslint-disable jsdoc/require-param */
|
|
13773
|
+
|
|
13774
|
+
/**
|
|
13775
|
+
* This will register a new custom element with the browser.
|
|
13776
|
+
* @param {String} name - The name of the custom element.
|
|
13777
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
13778
|
+
* @returns {void}
|
|
13779
|
+
*/
|
|
13780
|
+
registerComponent(name, componentClass) {
|
|
13781
|
+
if (!customElements.get(name)) {
|
|
13782
|
+
customElements.define(name, class extends componentClass {});
|
|
13783
|
+
}
|
|
13784
|
+
}
|
|
13785
|
+
|
|
13786
|
+
/**
|
|
13787
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
13788
|
+
* @returns {void}
|
|
13789
|
+
*/
|
|
13790
|
+
closestElement(
|
|
13791
|
+
selector, // selector like in .closest()
|
|
13792
|
+
base = this, // extra functionality to skip a parent
|
|
13793
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
13794
|
+
!el || el === document || el === window
|
|
13795
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
13796
|
+
: found
|
|
13797
|
+
? found // found a selector INside this element
|
|
13798
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
13799
|
+
) {
|
|
13800
|
+
return __Closest(base);
|
|
13801
|
+
}
|
|
13802
|
+
/* eslint-enable jsdoc/require-param */
|
|
13803
|
+
|
|
13804
|
+
/**
|
|
13805
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
13806
|
+
* @param {Object} elem - The element to check.
|
|
13807
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
13808
|
+
* @returns {void}
|
|
13809
|
+
*/
|
|
13810
|
+
handleComponentTagRename(elem, tagName) {
|
|
13811
|
+
const tag = tagName.toLowerCase();
|
|
13812
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
13813
|
+
|
|
13814
|
+
if (elemTag !== tag) {
|
|
13815
|
+
elem.setAttribute(tag, true);
|
|
13816
|
+
}
|
|
13817
|
+
}
|
|
13818
|
+
|
|
13819
|
+
/**
|
|
13820
|
+
* Validates if an element is a specific Auro component.
|
|
13821
|
+
* @param {Object} elem - The element to validate.
|
|
13822
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
13823
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
13824
|
+
*/
|
|
13825
|
+
elementMatch(elem, tagName) {
|
|
13826
|
+
const tag = tagName.toLowerCase();
|
|
13827
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
13828
|
+
|
|
13829
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
13830
|
+
}
|
|
13831
|
+
};
|
|
13832
|
+
|
|
13833
|
+
var styleCss$2 = css`: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}: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:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.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(0deg)}100%{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{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{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%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
13834
|
+
|
|
13835
|
+
var colorCss$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]){--ds-auro-loader-color:var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--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}`;
|
|
13836
|
+
|
|
13837
|
+
var tokensCss$1 = css`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
13838
|
+
|
|
13839
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13840
|
+
// See LICENSE in the project root for license information.
|
|
13841
|
+
|
|
13842
|
+
|
|
13843
|
+
class AuroLoader extends LitElement {
|
|
13844
|
+
constructor() {
|
|
13845
|
+
super();
|
|
13846
|
+
|
|
13847
|
+
/**
|
|
13848
|
+
* @private
|
|
13849
|
+
*/
|
|
13850
|
+
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
13851
|
+
|
|
13852
|
+
/**
|
|
13853
|
+
* @private
|
|
13854
|
+
*/
|
|
13855
|
+
this.mdCount = 3;
|
|
13856
|
+
|
|
13857
|
+
/**
|
|
13858
|
+
* @private
|
|
13859
|
+
*/
|
|
13860
|
+
this.smCount = 2;
|
|
13861
|
+
|
|
13862
|
+
/**
|
|
13863
|
+
* @private
|
|
13864
|
+
*/
|
|
13865
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
13866
|
+
|
|
13867
|
+
this.orbit = false;
|
|
13868
|
+
this.ringworm = false;
|
|
13869
|
+
this.laser = false;
|
|
13870
|
+
this.pulse = false;
|
|
13871
|
+
}
|
|
13872
|
+
|
|
13873
|
+
// function to define props used within the scope of this component
|
|
13874
|
+
static get properties() {
|
|
13875
|
+
return {
|
|
13876
|
+
|
|
13877
|
+
/**
|
|
13878
|
+
* Sets loader to laser type.
|
|
13879
|
+
*/
|
|
13880
|
+
laser: {
|
|
13881
|
+
type: Boolean,
|
|
13882
|
+
reflect: true
|
|
13883
|
+
},
|
|
13884
|
+
|
|
13885
|
+
/**
|
|
13886
|
+
* Sets loader to orbit type.
|
|
13887
|
+
*/
|
|
13888
|
+
orbit: {
|
|
13889
|
+
type: Boolean,
|
|
13890
|
+
reflect: true
|
|
13891
|
+
},
|
|
13892
|
+
|
|
13893
|
+
/**
|
|
13894
|
+
* Sets loader to pulse type.
|
|
13895
|
+
*/
|
|
13896
|
+
pulse: {
|
|
13897
|
+
type: Boolean,
|
|
13898
|
+
reflect: true
|
|
13899
|
+
},
|
|
13900
|
+
|
|
13901
|
+
/**
|
|
13902
|
+
* Sets loader to ringworm type.
|
|
13903
|
+
*/
|
|
13904
|
+
ringworm: {
|
|
13905
|
+
type: Boolean,
|
|
13906
|
+
reflect: true
|
|
13907
|
+
}
|
|
13908
|
+
};
|
|
13909
|
+
}
|
|
13910
|
+
|
|
13911
|
+
static get styles() {
|
|
13912
|
+
return [
|
|
13913
|
+
css`${styleCss$2}`,
|
|
13914
|
+
css`${colorCss$1}`,
|
|
13915
|
+
css`${tokensCss$1}`
|
|
13916
|
+
];
|
|
13917
|
+
}
|
|
13918
|
+
|
|
13919
|
+
/**
|
|
13920
|
+
* This will register this element with the browser.
|
|
13921
|
+
* @param {string} [name="auro-loader"] - The name of element that you want to register to.
|
|
13922
|
+
*
|
|
13923
|
+
* @example
|
|
13924
|
+
* AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
|
|
13925
|
+
*
|
|
13926
|
+
*/
|
|
13927
|
+
static register(name = "auro-loader") {
|
|
13928
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroLoader);
|
|
13929
|
+
}
|
|
13930
|
+
|
|
13931
|
+
firstUpdated() {
|
|
13932
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
13933
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
|
|
13934
|
+
}
|
|
13935
|
+
|
|
13936
|
+
connectedCallback() {
|
|
13937
|
+
super.connectedCallback();
|
|
13938
|
+
}
|
|
13939
|
+
|
|
13940
|
+
/**
|
|
13941
|
+
* @private
|
|
13942
|
+
* @returns {Array} Numbered array for template map.
|
|
13943
|
+
*/
|
|
13944
|
+
defineTemplate() {
|
|
13945
|
+
let nodes = Array.from(Array(this.mdCount).keys());
|
|
13946
|
+
|
|
13947
|
+
if (this.orbit || this.laser) {
|
|
13948
|
+
nodes = Array.from(Array(this.smCount).keys());
|
|
13949
|
+
} else if (this.ringworm) {
|
|
13950
|
+
nodes = Array.from(Array(0).keys());
|
|
13951
|
+
}
|
|
13952
|
+
|
|
13953
|
+
return nodes;
|
|
13954
|
+
}
|
|
13955
|
+
|
|
13956
|
+
// When using auroElement, use the following attribute and function when hiding content from screen readers.
|
|
13957
|
+
// aria-hidden="${this.hideAudible(this.hiddenAudible)}"
|
|
13958
|
+
|
|
13959
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
13960
|
+
render() {
|
|
13961
|
+
return html$1`
|
|
13962
|
+
${this.defineTemplate().map((idx) => html$1`
|
|
13963
|
+
<span part="element" class="loader node-${idx}"></span>
|
|
13964
|
+
`)}
|
|
13965
|
+
|
|
13966
|
+
<div class="no-animation">Loading...</div>
|
|
13967
|
+
|
|
13968
|
+
${this.ringworm ? html$1`
|
|
13969
|
+
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
13970
|
+
<circle class="path" cx="50" cy="50" r="20" fill="none"/>
|
|
13971
|
+
</svg>`
|
|
13972
|
+
: ``
|
|
13973
|
+
}
|
|
13974
|
+
`;
|
|
13975
|
+
}
|
|
13976
|
+
}
|
|
13977
|
+
|
|
13978
|
+
var loaderVersion = '5.0.0';
|
|
13979
|
+
|
|
13980
|
+
/* eslint-disable max-lines, curly */
|
|
13981
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13982
|
+
// See LICENSE in the project root for license information.
|
|
13983
|
+
|
|
13984
|
+
|
|
13985
|
+
/**
|
|
13986
|
+
* @slot - Default slot for the text of the button.
|
|
13987
|
+
* @csspart button - Apply CSS to HTML5 button.
|
|
13988
|
+
* @csspart loader - Apply CSS to auro-loader.
|
|
13989
|
+
* @csspart text - Apply CSS to text slot.
|
|
13990
|
+
* @csspart icon - Apply CSS to icon slot.
|
|
13991
|
+
*/
|
|
13992
|
+
|
|
13993
|
+
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
13994
|
+
|
|
13995
|
+
const ICON_ONLY_SHAPES = ['circle'];
|
|
13996
|
+
|
|
13997
|
+
/**
|
|
13998
|
+
* AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
|
|
13999
|
+
* It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
|
|
14000
|
+
* @property {'default', 'rounded', 'pill', 'circle'} shape - Defines the shape of the button.
|
|
14001
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
|
|
14002
|
+
* @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
|
|
14003
|
+
* @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
|
|
14004
|
+
* @property {boolean} onDark - Indicates if the button is rendered in dark mode.
|
|
14005
|
+
*/
|
|
14006
|
+
class AuroButton extends AuroElement$1 {
|
|
14007
|
+
|
|
14008
|
+
/**
|
|
14009
|
+
* Enables form association for this element.
|
|
14010
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/attachInternals
|
|
14011
|
+
* @returns {boolean} - Returns true to enable form association.
|
|
14012
|
+
*/
|
|
14013
|
+
static get formAssociated() {
|
|
14014
|
+
return true;
|
|
14015
|
+
}
|
|
14016
|
+
|
|
14017
|
+
constructor() {
|
|
14018
|
+
super();
|
|
14019
|
+
this.autofocus = false;
|
|
14020
|
+
this.disabled = false;
|
|
14021
|
+
this.loading = false;
|
|
14022
|
+
this.size = "md";
|
|
14023
|
+
this.shape = "rounded";
|
|
14024
|
+
this.onDark = false;
|
|
14025
|
+
this.fluid = false;
|
|
14026
|
+
this.loadingText = this.loadingText || 'Loading...';
|
|
14027
|
+
|
|
14028
|
+
// Support for HTML5 forms
|
|
14029
|
+
if (typeof this.attachInternals === 'function') {
|
|
14030
|
+
this.internals = this.attachInternals();
|
|
14031
|
+
} else {
|
|
14032
|
+
this.internals = null;
|
|
14033
|
+
|
|
14034
|
+
// eslint-disable-next-line no-console
|
|
14035
|
+
console.warn('This browser does not support form association features. Some form-related functionality may not work as expected. Consider using a polyfill or handling click events manually.');
|
|
14036
|
+
}
|
|
14037
|
+
|
|
14038
|
+
/**
|
|
14039
|
+
* Generate unique names for dependency components.
|
|
14040
|
+
*/
|
|
14041
|
+
const versioning = new AuroDependencyVersioning();
|
|
14042
|
+
|
|
14043
|
+
/**
|
|
14044
|
+
* @private
|
|
14045
|
+
*/
|
|
14046
|
+
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
14047
|
+
}
|
|
14048
|
+
|
|
14049
|
+
static get styles() {
|
|
14050
|
+
return [
|
|
14051
|
+
tokensCss$2,
|
|
14052
|
+
styleCss$3,
|
|
14053
|
+
colorCss$2,
|
|
14054
|
+
shapeSize
|
|
14055
|
+
];
|
|
14056
|
+
}
|
|
14057
|
+
|
|
14058
|
+
static get properties() {
|
|
14059
|
+
return {
|
|
14060
|
+
|
|
14061
|
+
...super.properties,
|
|
14062
|
+
|
|
14063
|
+
/**
|
|
14064
|
+
* Override layout since it isn't used in this component.
|
|
14065
|
+
* @private
|
|
14066
|
+
*/
|
|
14067
|
+
layout: {
|
|
14068
|
+
type: Boolean,
|
|
14069
|
+
attribute: false,
|
|
14070
|
+
reflect: false
|
|
14071
|
+
},
|
|
14072
|
+
|
|
14073
|
+
/**
|
|
14074
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
14075
|
+
*/
|
|
14076
|
+
autofocus: {
|
|
14077
|
+
type: Boolean,
|
|
14078
|
+
reflect: true
|
|
14079
|
+
},
|
|
14080
|
+
|
|
14081
|
+
/**
|
|
14082
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
14083
|
+
*/
|
|
14084
|
+
disabled: {
|
|
14085
|
+
type: Boolean,
|
|
14086
|
+
reflect: true
|
|
14087
|
+
},
|
|
14088
|
+
|
|
14089
|
+
/**
|
|
14090
|
+
* Alters the shape of the button to be full width of its parent container.
|
|
14091
|
+
*/
|
|
14092
|
+
fluid: {
|
|
14093
|
+
type: Boolean,
|
|
14094
|
+
reflect: true
|
|
14095
|
+
},
|
|
14096
|
+
|
|
14097
|
+
/**
|
|
14098
|
+
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
14099
|
+
*/
|
|
14100
|
+
loading: {
|
|
14101
|
+
type: Boolean,
|
|
14102
|
+
reflect: true
|
|
14103
|
+
},
|
|
14104
|
+
|
|
14105
|
+
/**
|
|
14106
|
+
* Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
|
|
14107
|
+
*/
|
|
14108
|
+
loadingText: {
|
|
14109
|
+
type: String
|
|
14110
|
+
},
|
|
14111
|
+
|
|
14112
|
+
/**
|
|
14113
|
+
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
14114
|
+
*/
|
|
14115
|
+
tIndex: {
|
|
14116
|
+
type: String,
|
|
14117
|
+
reflect: true
|
|
14118
|
+
},
|
|
12849
14119
|
|
|
12850
|
-
|
|
14120
|
+
/**
|
|
14121
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
14122
|
+
*/
|
|
14123
|
+
title: {
|
|
14124
|
+
type: String,
|
|
14125
|
+
reflect: true
|
|
14126
|
+
},
|
|
12851
14127
|
|
|
12852
|
-
|
|
14128
|
+
/**
|
|
14129
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
14130
|
+
*/
|
|
14131
|
+
type: {
|
|
14132
|
+
type: String,
|
|
14133
|
+
reflect: true
|
|
14134
|
+
},
|
|
12853
14135
|
|
|
12854
|
-
|
|
14136
|
+
/**
|
|
14137
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
14138
|
+
*/
|
|
14139
|
+
value: {
|
|
14140
|
+
type: String,
|
|
14141
|
+
reflect: true
|
|
14142
|
+
},
|
|
12855
14143
|
|
|
12856
|
-
|
|
14144
|
+
/**
|
|
14145
|
+
* Sets button variant option.
|
|
14146
|
+
* @default primary
|
|
14147
|
+
*/
|
|
14148
|
+
variant: {
|
|
14149
|
+
type: String,
|
|
14150
|
+
reflect: true
|
|
14151
|
+
},
|
|
14152
|
+
};
|
|
14153
|
+
}
|
|
12857
14154
|
|
|
12858
14155
|
/**
|
|
12859
|
-
* This will register
|
|
12860
|
-
* @param {
|
|
12861
|
-
*
|
|
12862
|
-
* @
|
|
14156
|
+
* This will register this element with the browser.
|
|
14157
|
+
* @param {string} [name="auro-button"] - The name of element that you want to register to.
|
|
14158
|
+
*
|
|
14159
|
+
* @example
|
|
14160
|
+
* AuroButton.register("custom-button") // this will register this element to <custom-button/>
|
|
14161
|
+
*
|
|
12863
14162
|
*/
|
|
12864
|
-
|
|
12865
|
-
|
|
12866
|
-
customElements.define(name, class extends componentClass {});
|
|
12867
|
-
}
|
|
14163
|
+
static register(name = "auro-button") {
|
|
14164
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
|
|
12868
14165
|
}
|
|
12869
14166
|
|
|
12870
14167
|
/**
|
|
12871
|
-
*
|
|
14168
|
+
* Internal method to apply focus to the HTML5 button.
|
|
14169
|
+
* @private
|
|
12872
14170
|
* @returns {void}
|
|
12873
14171
|
*/
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
base = this, // extra functionality to skip a parent
|
|
12877
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
12878
|
-
!el || el === document || el === window
|
|
12879
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
12880
|
-
: found
|
|
12881
|
-
? found // found a selector INside this element
|
|
12882
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
12883
|
-
) {
|
|
12884
|
-
return __Closest(base);
|
|
14172
|
+
focus() {
|
|
14173
|
+
this.renderRoot.querySelector('button').focus();
|
|
12885
14174
|
}
|
|
12886
|
-
/* eslint-enable jsdoc/require-param */
|
|
12887
14175
|
|
|
12888
14176
|
/**
|
|
12889
|
-
*
|
|
12890
|
-
* @
|
|
12891
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
14177
|
+
* Submits the form that this button is associated with.
|
|
14178
|
+
* @private
|
|
12892
14179
|
* @returns {void}
|
|
12893
14180
|
*/
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
if (elemTag !== tag) {
|
|
12899
|
-
elem.setAttribute(tag, true);
|
|
14181
|
+
surfaceSubmitEvent() {
|
|
14182
|
+
if (this.form) {
|
|
14183
|
+
this.form.requestSubmit();
|
|
12900
14184
|
}
|
|
12901
14185
|
}
|
|
12902
14186
|
|
|
12903
14187
|
/**
|
|
12904
|
-
*
|
|
12905
|
-
* @
|
|
12906
|
-
* @
|
|
12907
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
14188
|
+
* Returns the form element that this button is associated with.
|
|
14189
|
+
* @private
|
|
14190
|
+
* @returns {HTMLFormElement | null}
|
|
12908
14191
|
*/
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
12912
|
-
|
|
12913
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
14192
|
+
get form() {
|
|
14193
|
+
return this.internals ? this.internals.form : null;
|
|
12914
14194
|
}
|
|
12915
|
-
};
|
|
12916
14195
|
|
|
12917
|
-
|
|
12918
|
-
|
|
14196
|
+
/**
|
|
14197
|
+
* @private
|
|
14198
|
+
* @returns {Boolean}
|
|
14199
|
+
*/
|
|
14200
|
+
get hideText() {
|
|
14201
|
+
return ICON_ONLY_SHAPES.includes(this.shape);
|
|
14202
|
+
}
|
|
12919
14203
|
|
|
14204
|
+
/**
|
|
14205
|
+
* Returns the current value of the projected `aria-label` attribute or undefined if not set.
|
|
14206
|
+
* @returns {string | undefined}
|
|
14207
|
+
* @private
|
|
14208
|
+
*/
|
|
14209
|
+
get currentAriaLabel() {
|
|
14210
|
+
if (!this.attributeWatcher) return undefined;
|
|
12920
14211
|
|
|
12921
|
-
|
|
14212
|
+
const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
|
|
14213
|
+
return ariaLabel || undefined;
|
|
14214
|
+
}
|
|
12922
14215
|
|
|
12923
14216
|
/**
|
|
12924
|
-
*
|
|
14217
|
+
* Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
|
|
14218
|
+
* @returns {string | undefined}
|
|
12925
14219
|
* @private
|
|
12926
|
-
* @param {string} baseName - Defines the first part of the unique element name.
|
|
12927
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
12928
|
-
* @returns {string} - Unique string to be used for naming.
|
|
12929
14220
|
*/
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
result += '-';
|
|
12934
|
-
result += version.replace(/[.]/g, '_');
|
|
14221
|
+
get currentAriaLabelledBy() {
|
|
14222
|
+
if (!this.attributeWatcher) return undefined;
|
|
12935
14223
|
|
|
12936
|
-
|
|
14224
|
+
const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
|
|
14225
|
+
return ariaLabelledBy || undefined;
|
|
12937
14226
|
}
|
|
12938
14227
|
|
|
12939
14228
|
/**
|
|
12940
|
-
*
|
|
12941
|
-
* @
|
|
12942
|
-
* @
|
|
12943
|
-
* @returns {string} - Unique string to be used for naming.
|
|
14229
|
+
* Renders the default layout for the button.
|
|
14230
|
+
* @returns {TemplateResult}
|
|
14231
|
+
* @private
|
|
12944
14232
|
*/
|
|
12945
|
-
|
|
12946
|
-
const
|
|
12947
|
-
|
|
14233
|
+
renderLayoutDefault() {
|
|
14234
|
+
const classes = {
|
|
14235
|
+
"util_insetLg--squish": true,
|
|
14236
|
+
"auro-button": true,
|
|
14237
|
+
"icon-only": this.hideText,
|
|
14238
|
+
wrapper: true,
|
|
14239
|
+
loading: this.loading,
|
|
14240
|
+
};
|
|
12948
14241
|
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
14242
|
+
return html`
|
|
14243
|
+
<button
|
|
14244
|
+
part="button"
|
|
14245
|
+
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
14246
|
+
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
14247
|
+
tabIndex="${ifDefined(this.tIndex)}"
|
|
14248
|
+
?autofocus="${this.autofocus}"
|
|
14249
|
+
class="${classMap(classes)}"
|
|
14250
|
+
?disabled="${this.disabled || this.loading}"
|
|
14251
|
+
?onDark="${this.onDark}"
|
|
14252
|
+
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
14253
|
+
name="${ifDefined(this.name ? this.name : undefined)}"
|
|
14254
|
+
type="${ifDefined(this.type ? this.type : undefined)}"
|
|
14255
|
+
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
14256
|
+
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
14257
|
+
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
14258
|
+
>
|
|
14259
|
+
${ifDefined(this.loading ? html`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
12952
14260
|
|
|
12953
|
-
|
|
14261
|
+
<span class="contentWrapper">
|
|
14262
|
+
<span class="textSlot" part="text">
|
|
14263
|
+
<slot></slot>
|
|
14264
|
+
</span>
|
|
14265
|
+
</span>
|
|
14266
|
+
</button>
|
|
14267
|
+
`;
|
|
14268
|
+
}
|
|
14269
|
+
|
|
14270
|
+
/**
|
|
14271
|
+
* Renders the layout of the button
|
|
14272
|
+
* @returns {TemplateResult}
|
|
14273
|
+
* @private
|
|
14274
|
+
*/
|
|
14275
|
+
renderLayout() {
|
|
14276
|
+
return this.renderLayoutDefault();
|
|
12954
14277
|
}
|
|
12955
14278
|
}
|
|
12956
14279
|
|
|
14280
|
+
var buttonVersion = '11.0.0';
|
|
14281
|
+
|
|
12957
14282
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12958
14283
|
// See LICENSE in the project root for license information.
|
|
12959
14284
|
|
|
@@ -12964,7 +14289,7 @@ class AuroDependencyVersioning {
|
|
|
12964
14289
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
12965
14290
|
*/
|
|
12966
14291
|
|
|
12967
|
-
let AuroElement$
|
|
14292
|
+
let AuroElement$2 = class AuroElement extends LitElement {
|
|
12968
14293
|
|
|
12969
14294
|
// function to define props used within the scope of this component
|
|
12970
14295
|
static get properties() {
|
|
@@ -13032,7 +14357,7 @@ var styleCss$1$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
13032
14357
|
*/
|
|
13033
14358
|
|
|
13034
14359
|
// build the component class
|
|
13035
|
-
class BaseIcon extends AuroElement$
|
|
14360
|
+
class BaseIcon extends AuroElement$2 {
|
|
13036
14361
|
constructor() {
|
|
13037
14362
|
super();
|
|
13038
14363
|
this.onDark = false;
|
|
@@ -13104,9 +14429,9 @@ class BaseIcon extends AuroElement$1 {
|
|
|
13104
14429
|
}
|
|
13105
14430
|
}
|
|
13106
14431
|
|
|
13107
|
-
var tokensCss$
|
|
14432
|
+
var tokensCss$3 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
13108
14433
|
|
|
13109
|
-
var colorCss$
|
|
14434
|
+
var colorCss$4 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
13110
14435
|
|
|
13111
14436
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13112
14437
|
// See LICENSE in the project root for license information.
|
|
@@ -13264,9 +14589,9 @@ class AuroIcon extends BaseIcon {
|
|
|
13264
14589
|
static get styles() {
|
|
13265
14590
|
return [
|
|
13266
14591
|
super.styles,
|
|
13267
|
-
css`${tokensCss$
|
|
14592
|
+
css`${tokensCss$3}`,
|
|
13268
14593
|
css`${styleCss$1$1}`,
|
|
13269
|
-
css`${colorCss$
|
|
14594
|
+
css`${colorCss$4}`
|
|
13270
14595
|
];
|
|
13271
14596
|
}
|
|
13272
14597
|
|
|
@@ -13300,8 +14625,12 @@ class AuroIcon extends BaseIcon {
|
|
|
13300
14625
|
async firstUpdated() {
|
|
13301
14626
|
await super.firstUpdated();
|
|
13302
14627
|
|
|
13303
|
-
|
|
13304
|
-
|
|
14628
|
+
/**
|
|
14629
|
+
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
14630
|
+
* depend on this description to provide context for the user using a screen reader.
|
|
14631
|
+
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
14632
|
+
*/
|
|
14633
|
+
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
13305
14634
|
const svgDesc = this.svg.querySelector('desc');
|
|
13306
14635
|
|
|
13307
14636
|
if (svgDesc) {
|
|
@@ -13345,7 +14674,7 @@ class AuroIcon extends BaseIcon {
|
|
|
13345
14674
|
}
|
|
13346
14675
|
}
|
|
13347
14676
|
|
|
13348
|
-
var iconVersion = '8.0.
|
|
14677
|
+
var iconVersion = '8.0.4';
|
|
13349
14678
|
|
|
13350
14679
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13351
14680
|
// See LICENSE in the project root for license information.
|
|
@@ -13354,7 +14683,7 @@ var iconVersion = '8.0.3';
|
|
|
13354
14683
|
|
|
13355
14684
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
13356
14685
|
|
|
13357
|
-
let AuroLibraryRuntimeUtils$
|
|
14686
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
13358
14687
|
|
|
13359
14688
|
/* eslint-disable jsdoc/require-param */
|
|
13360
14689
|
|
|
@@ -13417,7 +14746,7 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
|
13417
14746
|
}
|
|
13418
14747
|
};
|
|
13419
14748
|
|
|
13420
|
-
var styleCss$
|
|
14749
|
+
var styleCss$5 = css`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
13421
14750
|
|
|
13422
14751
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13423
14752
|
// See LICENSE in the project root for license information.
|
|
@@ -13446,7 +14775,7 @@ class AuroHeader extends LitElement {
|
|
|
13446
14775
|
/**
|
|
13447
14776
|
* @private
|
|
13448
14777
|
*/
|
|
13449
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
14778
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
13450
14779
|
}
|
|
13451
14780
|
|
|
13452
14781
|
// function to define props used within the scope of this component
|
|
@@ -13464,7 +14793,7 @@ class AuroHeader extends LitElement {
|
|
|
13464
14793
|
}
|
|
13465
14794
|
|
|
13466
14795
|
static get styles() {
|
|
13467
|
-
return [styleCss$
|
|
14796
|
+
return [styleCss$5];
|
|
13468
14797
|
}
|
|
13469
14798
|
|
|
13470
14799
|
/**
|
|
@@ -13476,7 +14805,7 @@ class AuroHeader extends LitElement {
|
|
|
13476
14805
|
*
|
|
13477
14806
|
*/
|
|
13478
14807
|
static register(name = "auro-header") {
|
|
13479
|
-
AuroLibraryRuntimeUtils$
|
|
14808
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHeader);
|
|
13480
14809
|
}
|
|
13481
14810
|
|
|
13482
14811
|
firstUpdated() {
|
|
@@ -13572,17 +14901,30 @@ class AuroBibtemplate extends LitElement {
|
|
|
13572
14901
|
|
|
13573
14902
|
this.large = false;
|
|
13574
14903
|
|
|
13575
|
-
AuroLibraryRuntimeUtils$
|
|
14904
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
13576
14905
|
|
|
13577
14906
|
const versioning = new AuroDependencyVersioning();
|
|
14907
|
+
|
|
14908
|
+
/**
|
|
14909
|
+
* @private
|
|
14910
|
+
*/
|
|
13578
14911
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
|
|
14912
|
+
|
|
14913
|
+
/**
|
|
14914
|
+
* @private
|
|
14915
|
+
*/
|
|
13579
14916
|
this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
|
|
14917
|
+
|
|
14918
|
+
/**
|
|
14919
|
+
* @private
|
|
14920
|
+
*/
|
|
14921
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
13580
14922
|
}
|
|
13581
14923
|
|
|
13582
14924
|
static get styles() {
|
|
13583
14925
|
return [
|
|
13584
|
-
colorCss$
|
|
13585
|
-
styleCss$
|
|
14926
|
+
colorCss$3,
|
|
14927
|
+
styleCss$4,
|
|
13586
14928
|
tokenCss
|
|
13587
14929
|
];
|
|
13588
14930
|
}
|
|
@@ -13611,7 +14953,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13611
14953
|
*
|
|
13612
14954
|
*/
|
|
13613
14955
|
static register(name = "auro-bibtemplate") {
|
|
13614
|
-
AuroLibraryRuntimeUtils$
|
|
14956
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroBibtemplate);
|
|
13615
14957
|
}
|
|
13616
14958
|
|
|
13617
14959
|
/**
|
|
@@ -13669,9 +15011,9 @@ class AuroBibtemplate extends LitElement {
|
|
|
13669
15011
|
<div id="bibTemplate" part="bibtemplate">
|
|
13670
15012
|
${this.isFullscreen ? html`
|
|
13671
15013
|
<div id="headerContainer">
|
|
13672
|
-
|
|
15014
|
+
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
13673
15015
|
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
13674
|
-
|
|
15016
|
+
</${this.buttonTag}>
|
|
13675
15017
|
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
13676
15018
|
<slot name="header"></slot>
|
|
13677
15019
|
</${this.headerTag}>
|
|
@@ -13736,18 +15078,21 @@ class AuroElement extends LitElement {
|
|
|
13736
15078
|
}
|
|
13737
15079
|
|
|
13738
15080
|
resetShapeClasses() {
|
|
13739
|
-
|
|
13740
|
-
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
15081
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
13741
15082
|
|
|
13742
|
-
|
|
13743
|
-
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
15083
|
+
if (wrapper) {
|
|
15084
|
+
wrapper.classList.forEach((className) => {
|
|
15085
|
+
if (className.startsWith('shape-')) {
|
|
15086
|
+
wrapper.classList.remove(className);
|
|
15087
|
+
}
|
|
15088
|
+
});
|
|
13748
15089
|
|
|
13749
|
-
|
|
13750
|
-
|
|
15090
|
+
}
|
|
15091
|
+
|
|
15092
|
+
if (this.shape && this.size) {
|
|
15093
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
15094
|
+
} else {
|
|
15095
|
+
wrapper.classList.add('shape-none');
|
|
13751
15096
|
}
|
|
13752
15097
|
}
|
|
13753
15098
|
|
|
@@ -14009,6 +15354,7 @@ class AuroHelpText extends LitElement {
|
|
|
14009
15354
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
14010
15355
|
* @slot label - Defines the content of the label.
|
|
14011
15356
|
* @slot helpText - Defines the content of the helpText.
|
|
15357
|
+
* @slot displayValue - Allows custom HTML content to display the selected value when the combobox is not focused. Only works with `snowflake` and `emphasized` layouts.
|
|
14012
15358
|
* @event auroCombobox-valueSet - Notifies that the component has a new value set.
|
|
14013
15359
|
* @event auroFormElement-validated - Notifies that the component value(s) have been validated.
|
|
14014
15360
|
*/
|
|
@@ -14071,7 +15417,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14071
15417
|
this.noFlip = false;
|
|
14072
15418
|
this.autoPlacement = false;
|
|
14073
15419
|
|
|
14074
|
-
const versioning = new AuroDependencyVersioning$
|
|
15420
|
+
const versioning = new AuroDependencyVersioning$3();
|
|
14075
15421
|
|
|
14076
15422
|
this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', dropdownVersion, AuroDropdown);
|
|
14077
15423
|
this.bibtemplateTag = versioning.generateTag('auro-formkit-combobox-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
@@ -14295,7 +15641,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14295
15641
|
* @type {string}
|
|
14296
15642
|
*/
|
|
14297
15643
|
value: {
|
|
14298
|
-
type:
|
|
15644
|
+
type: String
|
|
14299
15645
|
},
|
|
14300
15646
|
|
|
14301
15647
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
@@ -14500,6 +15846,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14500
15846
|
* @returns {void}
|
|
14501
15847
|
*/
|
|
14502
15848
|
configureDropdown() {
|
|
15849
|
+
this.dropdown.a11yRole = "combobox";
|
|
14503
15850
|
|
|
14504
15851
|
// Listen for the ID to be added to the dropdown so we can capture it and use it for accessibility.
|
|
14505
15852
|
this.dropdown.addEventListener('auroDropdown-idAdded', (event) => {
|
|
@@ -14511,7 +15858,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14511
15858
|
this.dropdownOpen = ev.detail.expanded;
|
|
14512
15859
|
|
|
14513
15860
|
// wait a frame in case the bib gets hide immediately after showing because there is no value
|
|
14514
|
-
setTimeout(this.
|
|
15861
|
+
setTimeout(this.setInputFocus, 0);
|
|
14515
15862
|
});
|
|
14516
15863
|
|
|
14517
15864
|
this.dropdown.addEventListener('auroDropdown-triggerClick', () => {
|
|
@@ -14519,7 +15866,8 @@ class AuroCombobox extends AuroElement {
|
|
|
14519
15866
|
});
|
|
14520
15867
|
|
|
14521
15868
|
// setting up bibtemplate
|
|
14522
|
-
this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
|
|
15869
|
+
this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$);
|
|
15870
|
+
this.inputInBib = this.bibtemplate.querySelector(this.inputTag._$litStatic$);
|
|
14523
15871
|
|
|
14524
15872
|
// Exposes the CSS parts from the bibtemplate for styling
|
|
14525
15873
|
this.bibtemplate.exposeCssParts();
|
|
@@ -14527,14 +15875,24 @@ class AuroCombobox extends AuroElement {
|
|
|
14527
15875
|
this.hideBib = this.hideBib.bind(this);
|
|
14528
15876
|
this.bibtemplate.addEventListener('close-click', this.hideBib);
|
|
14529
15877
|
|
|
14530
|
-
this.
|
|
14531
|
-
|
|
15878
|
+
this.setInputFocus = this.setInputFocus.bind(this);
|
|
14532
15879
|
this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
|
|
14533
15880
|
// event when the strategy(bib mode) is changed between fullscreen and floating
|
|
14534
|
-
setTimeout(this.
|
|
15881
|
+
setTimeout(this.setInputFocus, 0);
|
|
14535
15882
|
});
|
|
14536
15883
|
}
|
|
14537
15884
|
|
|
15885
|
+
/**
|
|
15886
|
+
* @private
|
|
15887
|
+
*/
|
|
15888
|
+
setInputFocus() {
|
|
15889
|
+
if (this.dropdown.isBibFullscreen && this.dropdown.isPopoverVisible) {
|
|
15890
|
+
this.inputInBib.focus();
|
|
15891
|
+
} else {
|
|
15892
|
+
this.input.focus();
|
|
15893
|
+
}
|
|
15894
|
+
}
|
|
15895
|
+
|
|
14538
15896
|
/**
|
|
14539
15897
|
* Binds all behavior needed to the menu after rendering.
|
|
14540
15898
|
* @private
|
|
@@ -14543,6 +15901,15 @@ class AuroCombobox extends AuroElement {
|
|
|
14543
15901
|
configureMenu() {
|
|
14544
15902
|
this.menu = this.querySelector('auro-menu, [auro-menu]');
|
|
14545
15903
|
|
|
15904
|
+
// set menu's default size if there it's not specified.
|
|
15905
|
+
if (!this.menu.getAttribute('size')) {
|
|
15906
|
+
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
15907
|
+
}
|
|
15908
|
+
|
|
15909
|
+
if (!this.getAttribute('shape')) {
|
|
15910
|
+
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
15911
|
+
}
|
|
15912
|
+
|
|
14546
15913
|
// a racing condition on custom-combobox with custom-menu
|
|
14547
15914
|
if (!this.menu || this.menuShadowRoot === null) {
|
|
14548
15915
|
setTimeout(() => {
|
|
@@ -14675,63 +16042,19 @@ class AuroCombobox extends AuroElement {
|
|
|
14675
16042
|
}
|
|
14676
16043
|
|
|
14677
16044
|
/**
|
|
14678
|
-
*
|
|
14679
|
-
* Otherwise, it's moved back to the trigger slot.
|
|
16045
|
+
* Handle changes to the input value and trigger changes that should result.
|
|
14680
16046
|
* @private
|
|
16047
|
+
* @param {Event} event - The input event triggered by the input element.
|
|
14681
16048
|
* @returns {void}
|
|
14682
16049
|
*/
|
|
14683
|
-
|
|
14684
|
-
if (
|
|
16050
|
+
handleInputValueChange(event) {
|
|
16051
|
+
if (event.target === this.inputInBib) {
|
|
16052
|
+
this.input.value = this.inputInBib.value;
|
|
14685
16053
|
return;
|
|
14686
16054
|
}
|
|
14687
16055
|
|
|
14688
|
-
|
|
14689
|
-
const inputAlertIcon = this.input.shadowRoot.querySelector(".alertNotification");
|
|
16056
|
+
this.inputInBib.value = this.input.value;
|
|
14690
16057
|
|
|
14691
|
-
if (this.dropdown.isPopoverVisible && this.dropdown.isBibFullscreen) {
|
|
14692
|
-
|
|
14693
|
-
if (this.input.parentNode === this.dropdown) {
|
|
14694
|
-
// keep the trigger size the same even after input gets removed
|
|
14695
|
-
const parentSize = window.getComputedStyle(this.dropdown.trigger);
|
|
14696
|
-
this.dropdown.trigger.style.height = parentSize.height;
|
|
14697
|
-
|
|
14698
|
-
// input will not have border on bib
|
|
14699
|
-
this.input.removeAttribute('bordered');
|
|
14700
|
-
this.input.setAttribute('borderless', true);
|
|
14701
|
-
this.input.setAttribute('slot', 'subheader');
|
|
14702
|
-
|
|
14703
|
-
// set display of helpText and alert icon programmatically
|
|
14704
|
-
// because ::slotted and ::part do not work together
|
|
14705
|
-
inputHelpText.style.display = 'none';
|
|
14706
|
-
if (inputAlertIcon) {
|
|
14707
|
-
inputAlertIcon.style.display = 'none';
|
|
14708
|
-
}
|
|
14709
|
-
|
|
14710
|
-
this.bibtemplate.prepend(this.input);
|
|
14711
|
-
this.input.focus();
|
|
14712
|
-
}
|
|
14713
|
-
} else if (this.input.parentNode !== this.dropdown) {
|
|
14714
|
-
this.input.setAttribute('bordered', true);
|
|
14715
|
-
this.input.removeAttribute('borderless');
|
|
14716
|
-
this.input.setAttribute('slot', 'trigger');
|
|
14717
|
-
|
|
14718
|
-
// reset display of helpText and alert icon to be visible
|
|
14719
|
-
inputHelpText.style.display = '';
|
|
14720
|
-
if (inputAlertIcon) {
|
|
14721
|
-
inputAlertIcon.style.display = '';
|
|
14722
|
-
}
|
|
14723
|
-
|
|
14724
|
-
this.dropdown.prepend(this.input);
|
|
14725
|
-
this.input.focus();
|
|
14726
|
-
}
|
|
14727
|
-
}
|
|
14728
|
-
|
|
14729
|
-
/**
|
|
14730
|
-
* Handle changes to the input value and trigger changes that should result.
|
|
14731
|
-
* @private
|
|
14732
|
-
* @returns {void}
|
|
14733
|
-
*/
|
|
14734
|
-
handleInputValueChange() {
|
|
14735
16058
|
this.menu.matchWord = this.input.value;
|
|
14736
16059
|
this.optionActive = null;
|
|
14737
16060
|
|
|
@@ -14847,8 +16170,8 @@ class AuroCombobox extends AuroElement {
|
|
|
14847
16170
|
// Add the tag name as an attribute if it is different than the component name
|
|
14848
16171
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-combobox');
|
|
14849
16172
|
|
|
14850
|
-
this.dropdown = this.shadowRoot.querySelector(this.dropdownTag._$litStatic$);
|
|
14851
|
-
this.input = this.dropdown.querySelector(this.inputTag._$litStatic$);
|
|
16173
|
+
this.dropdown = this.shadowRoot.querySelector(this.dropdownTag._$litStatic$);
|
|
16174
|
+
this.input = this.dropdown.querySelector(this.inputTag._$litStatic$);
|
|
14852
16175
|
|
|
14853
16176
|
this.configureMenu();
|
|
14854
16177
|
this.configureInput();
|
|
@@ -14921,6 +16244,14 @@ class AuroCombobox extends AuroElement {
|
|
|
14921
16244
|
this.input.setAttribute('error', this.getAttribute('error'));
|
|
14922
16245
|
this.validate();
|
|
14923
16246
|
}
|
|
16247
|
+
|
|
16248
|
+
if (changedProperties.has('shape') && this.menu) {
|
|
16249
|
+
this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
|
|
16250
|
+
}
|
|
16251
|
+
|
|
16252
|
+
if (changedProperties.has('size') && this.menu) {
|
|
16253
|
+
this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
|
|
16254
|
+
}
|
|
14924
16255
|
}
|
|
14925
16256
|
|
|
14926
16257
|
/**
|
|
@@ -14965,7 +16296,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14965
16296
|
case 'label':
|
|
14966
16297
|
// Programmatically inject as the slot cannot be carried over to bibtemplate.
|
|
14967
16298
|
// It's because the bib is/will be separated from dropdown to body.
|
|
14968
|
-
this.transportAssignedNodes(event.target, this.
|
|
16299
|
+
this.transportAssignedNodes(event.target, this.inputInBib, "label");
|
|
14969
16300
|
break;
|
|
14970
16301
|
case 'bib.fullscreen.headline':
|
|
14971
16302
|
this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
|
|
@@ -14995,20 +16326,15 @@ class AuroCombobox extends AuroElement {
|
|
|
14995
16326
|
: undefined
|
|
14996
16327
|
}
|
|
14997
16328
|
</div>
|
|
14998
|
-
<div class="util_displayHiddenVisually" aria-hidden="true">
|
|
14999
|
-
<slot name="label" @slotchange="${this.handleSlotChange}"></slot>
|
|
15000
|
-
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
15001
|
-
</div>
|
|
15002
16329
|
<${this.dropdownTag}
|
|
16330
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
16331
|
+
.offset="${this.offset}"
|
|
16332
|
+
.placement="${this.placement}"
|
|
15003
16333
|
?autoPlacement="${this.autoPlacement}"
|
|
15004
16334
|
?disabled="${this.disabled}"
|
|
15005
16335
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
15006
16336
|
?noFlip="${this.noFlip}"
|
|
15007
16337
|
?onDark="${this.onDark}"
|
|
15008
|
-
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
15009
|
-
.offset="${this.offset}"
|
|
15010
|
-
.placement="${this.placement}"
|
|
15011
|
-
simple
|
|
15012
16338
|
disableEventShow
|
|
15013
16339
|
fluid
|
|
15014
16340
|
for="dropdownMenu"
|
|
@@ -15016,34 +16342,57 @@ class AuroCombobox extends AuroElement {
|
|
|
15016
16342
|
matchWidth="${ifDefined(this.matchWidth)}"
|
|
15017
16343
|
nocheckmark
|
|
15018
16344
|
rounded
|
|
16345
|
+
simple
|
|
15019
16346
|
shape="${this.shape}"
|
|
15020
16347
|
size="${this.size}">
|
|
15021
|
-
|
|
15022
|
-
|
|
15023
|
-
|
|
15024
|
-
|
|
15025
|
-
|
|
15026
|
-
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
|
|
15030
|
-
|
|
15031
|
-
|
|
15032
|
-
|
|
15033
|
-
|
|
15034
|
-
|
|
15035
|
-
|
|
15036
|
-
|
|
15037
|
-
|
|
15038
|
-
|
|
15039
|
-
|
|
15040
|
-
|
|
15041
|
-
|
|
15042
|
-
|
|
15043
|
-
|
|
16348
|
+
<${this.inputTag}
|
|
16349
|
+
@input="${this.handleInputValueChange}"
|
|
16350
|
+
.a11yExpanded="${this.dropdownOpen}"
|
|
16351
|
+
.a11yControls="${this.dropdownId}"
|
|
16352
|
+
.autocomplete="${this.autocomplete}"
|
|
16353
|
+
.inputmode="${this.inputmode}"
|
|
16354
|
+
.placeholder="${this.placeholder}"
|
|
16355
|
+
.type="${this.type}"
|
|
16356
|
+
?disabled="${this.disabled}"
|
|
16357
|
+
?icon="${this.triggerIcon}"
|
|
16358
|
+
?noValidate="${this.noValidate}"
|
|
16359
|
+
?onDark="${this.onDark}"
|
|
16360
|
+
?required="${this.required}"
|
|
16361
|
+
a11yRole="combobox"
|
|
16362
|
+
id="${this.id}"
|
|
16363
|
+
layout="${this.layout}"
|
|
16364
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
16365
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
16366
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
16367
|
+
shape="${this.shape}"
|
|
16368
|
+
size="${this.size}"
|
|
16369
|
+
slot="trigger">
|
|
16370
|
+
<slot name="label" slot="label" @slotchange="${this.handleSlotChange}"></slot>
|
|
16371
|
+
<slot name="displayValue" slot="displayValue"></slot>
|
|
16372
|
+
</${this.inputTag}>
|
|
15044
16373
|
|
|
15045
16374
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
|
|
16375
|
+
<slot name="bib.fullscreen.headline" slot="header"></slot>
|
|
15046
16376
|
<slot></slot>
|
|
16377
|
+
<${this.inputTag}
|
|
16378
|
+
@input="${this.handleInputValueChange}"
|
|
16379
|
+
.a11yControls="${this.dropdownId}"
|
|
16380
|
+
.autocomplete="${this.autocomplete}"
|
|
16381
|
+
.inputmode="${this.inputmode}"
|
|
16382
|
+
.placeholder="${this.placeholder}"
|
|
16383
|
+
.type="${this.type}"
|
|
16384
|
+
?disabled="${this.disabled}"
|
|
16385
|
+
?icon="${this.triggerIcon}"
|
|
16386
|
+
?required="${this.required}"
|
|
16387
|
+
a11yRole="combobox"
|
|
16388
|
+
a11yExpanded="true"
|
|
16389
|
+
layout="classic"
|
|
16390
|
+
noValidate="true"
|
|
16391
|
+
shape="classic"
|
|
16392
|
+
simple
|
|
16393
|
+
size="sm"
|
|
16394
|
+
slot="subheader">
|
|
16395
|
+
</${this.inputTag}>
|
|
15047
16396
|
</${this.bibtemplateTag}>
|
|
15048
16397
|
|
|
15049
16398
|
<span slot="helpText">
|