@aurodesignsystem-dev/auro-formkit 0.0.0-pr811.0 → 0.0.0-pr811.1
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/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +60 -96
- package/components/bibtemplate/dist/registered.js +60 -96
- package/components/combobox/demo/api.min.js +178 -122
- package/components/combobox/demo/index.md +2 -4
- package/components/combobox/demo/index.min.js +178 -122
- package/components/combobox/dist/auro-combobox.d.ts +8 -2
- package/components/combobox/dist/index.js +174 -118
- package/components/combobox/dist/registered.js +174 -118
- package/components/counter/demo/api.min.js +90 -124
- package/components/counter/demo/index.min.js +90 -124
- package/components/counter/dist/index.js +90 -124
- package/components/counter/dist/registered.js +90 -124
- package/components/datepicker/demo/api.min.js +187 -135
- package/components/datepicker/demo/index.min.js +187 -135
- package/components/datepicker/dist/index.js +187 -135
- package/components/datepicker/dist/registered.js +187 -135
- package/components/dropdown/demo/api.min.js +2 -2
- package/components/dropdown/demo/index.min.js +2 -2
- package/components/dropdown/dist/index.js +2 -2
- package/components/dropdown/dist/registered.js +2 -2
- package/components/input/demo/api.md +2 -5
- package/components/input/demo/api.min.js +91 -10
- package/components/input/demo/index.md +2 -2
- package/components/input/demo/index.min.js +91 -10
- package/components/input/dist/auro-input.d.ts +24 -0
- package/components/input/dist/base-input.d.ts +8 -2
- package/components/input/dist/index.js +91 -10
- package/components/input/dist/registered.js +91 -10
- package/components/select/demo/api.md +1 -3
- package/components/select/demo/api.min.js +113 -132
- package/components/select/demo/index.min.js +113 -132
- package/components/select/dist/auro-select.d.ts +11 -5
- package/components/select/dist/index.js +109 -128
- package/components/select/dist/registered.js +109 -128
- package/package.json +1 -1
- package/components/input/dist/styles/default/input-css.d.ts +0 -2
- package/components/input/dist/styles/default/label-css.d.ts +0 -2
- package/components/input/dist/styles/input-css.d.ts +0 -2
|
@@ -559,7 +559,7 @@ const {
|
|
|
559
559
|
|
|
560
560
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
561
561
|
|
|
562
|
-
let AuroLibraryRuntimeUtils$
|
|
562
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
563
563
|
|
|
564
564
|
/* eslint-disable jsdoc/require-param */
|
|
565
565
|
|
|
@@ -629,7 +629,7 @@ let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
|
629
629
|
class AuroFormValidation {
|
|
630
630
|
|
|
631
631
|
constructor() {
|
|
632
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
632
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
/**
|
|
@@ -4194,11 +4194,11 @@ var shapeSizeCss$1 = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-class
|
|
|
4194
4194
|
|
|
4195
4195
|
var colorCss$1$2 = i$5`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
4196
4196
|
|
|
4197
|
-
var styleCss$1$2 = i$5`:host{position:relative;display:block}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
4197
|
+
var styleCss$1$2 = i$5`:host{position:relative;display:block}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;box-sizing:border-box;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
4198
4198
|
|
|
4199
4199
|
var classicColorCss = i$5``;
|
|
4200
4200
|
|
|
4201
|
-
var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic])
|
|
4201
|
+
var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) label{transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .wrapper{display:flex;box-sizing:border-box;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}`;
|
|
4202
4202
|
|
|
4203
4203
|
var styleEmphasizedCss = i$5`.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
4204
4204
|
|
|
@@ -4217,7 +4217,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
4217
4217
|
|
|
4218
4218
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4219
4219
|
|
|
4220
|
-
let AuroLibraryRuntimeUtils$
|
|
4220
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
4221
4221
|
|
|
4222
4222
|
/* eslint-disable jsdoc/require-param */
|
|
4223
4223
|
|
|
@@ -4296,7 +4296,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
4296
4296
|
this.onDark = false;
|
|
4297
4297
|
this.hasTextContent = false;
|
|
4298
4298
|
|
|
4299
|
-
AuroLibraryRuntimeUtils$
|
|
4299
|
+
AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
4300
4300
|
}
|
|
4301
4301
|
|
|
4302
4302
|
static get styles() {
|
|
@@ -4352,7 +4352,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
4352
4352
|
*
|
|
4353
4353
|
*/
|
|
4354
4354
|
static register(name = "auro-helptext") {
|
|
4355
|
-
AuroLibraryRuntimeUtils$
|
|
4355
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
|
|
4356
4356
|
}
|
|
4357
4357
|
|
|
4358
4358
|
updated() {
|
|
@@ -5415,7 +5415,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
5415
5415
|
|
|
5416
5416
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5417
5417
|
|
|
5418
|
-
let AuroLibraryRuntimeUtils$
|
|
5418
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
5419
5419
|
|
|
5420
5420
|
/* eslint-disable jsdoc/require-param */
|
|
5421
5421
|
|
|
@@ -5998,7 +5998,7 @@ var shapeSize = i$5`.shape-rounded-xl{min-height:68px;max-height:68px;border-sty
|
|
|
5998
5998
|
|
|
5999
5999
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6000
6000
|
|
|
6001
|
-
let AuroLibraryRuntimeUtils$
|
|
6001
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
6002
6002
|
|
|
6003
6003
|
/* eslint-disable jsdoc/require-param */
|
|
6004
6004
|
|
|
@@ -6093,7 +6093,7 @@ class AuroLoader extends i$2 {
|
|
|
6093
6093
|
/**
|
|
6094
6094
|
* @private
|
|
6095
6095
|
*/
|
|
6096
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
6096
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
6097
6097
|
|
|
6098
6098
|
this.orbit = false;
|
|
6099
6099
|
this.ringworm = false;
|
|
@@ -6156,7 +6156,7 @@ class AuroLoader extends i$2 {
|
|
|
6156
6156
|
*
|
|
6157
6157
|
*/
|
|
6158
6158
|
static register(name = "auro-loader") {
|
|
6159
|
-
AuroLibraryRuntimeUtils$
|
|
6159
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
|
|
6160
6160
|
}
|
|
6161
6161
|
|
|
6162
6162
|
firstUpdated() {
|
|
@@ -6436,7 +6436,7 @@ class AuroButton extends AuroElement$1 {
|
|
|
6436
6436
|
*
|
|
6437
6437
|
*/
|
|
6438
6438
|
static register(name = "auro-button") {
|
|
6439
|
-
AuroLibraryRuntimeUtils$
|
|
6439
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroButton);
|
|
6440
6440
|
}
|
|
6441
6441
|
|
|
6442
6442
|
/**
|
|
@@ -6773,7 +6773,7 @@ var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
6773
6773
|
|
|
6774
6774
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6775
6775
|
|
|
6776
|
-
let AuroLibraryRuntimeUtils$
|
|
6776
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
6777
6777
|
|
|
6778
6778
|
/* eslint-disable jsdoc/require-param */
|
|
6779
6779
|
|
|
@@ -6855,7 +6855,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
6855
6855
|
*/
|
|
6856
6856
|
privateDefaults() {
|
|
6857
6857
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
6858
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
6858
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
6859
6859
|
}
|
|
6860
6860
|
|
|
6861
6861
|
// function to define props used within the scope of this component
|
|
@@ -6937,7 +6937,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
6937
6937
|
*
|
|
6938
6938
|
*/
|
|
6939
6939
|
static register(name = "auro-icon") {
|
|
6940
|
-
AuroLibraryRuntimeUtils$
|
|
6940
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
|
|
6941
6941
|
}
|
|
6942
6942
|
|
|
6943
6943
|
connectedCallback() {
|
|
@@ -7009,77 +7009,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
7009
7009
|
|
|
7010
7010
|
var iconVersion$1 = '8.1.0';
|
|
7011
7011
|
|
|
7012
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
7013
|
-
// See LICENSE in the project root for license information.
|
|
7014
|
-
|
|
7015
|
-
// ---------------------------------------------------------------------
|
|
7016
|
-
|
|
7017
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
7018
|
-
|
|
7019
|
-
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
7020
|
-
|
|
7021
|
-
/* eslint-disable jsdoc/require-param */
|
|
7022
|
-
|
|
7023
|
-
/**
|
|
7024
|
-
* This will register a new custom element with the browser.
|
|
7025
|
-
* @param {String} name - The name of the custom element.
|
|
7026
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
7027
|
-
* @returns {void}
|
|
7028
|
-
*/
|
|
7029
|
-
registerComponent(name, componentClass) {
|
|
7030
|
-
if (!customElements.get(name)) {
|
|
7031
|
-
customElements.define(name, class extends componentClass {});
|
|
7032
|
-
}
|
|
7033
|
-
}
|
|
7034
|
-
|
|
7035
|
-
/**
|
|
7036
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
7037
|
-
* @returns {void}
|
|
7038
|
-
*/
|
|
7039
|
-
closestElement(
|
|
7040
|
-
selector, // selector like in .closest()
|
|
7041
|
-
base = this, // extra functionality to skip a parent
|
|
7042
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
7043
|
-
!el || el === document || el === window
|
|
7044
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
7045
|
-
: found
|
|
7046
|
-
? found // found a selector INside this element
|
|
7047
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
7048
|
-
) {
|
|
7049
|
-
return __Closest(base);
|
|
7050
|
-
}
|
|
7051
|
-
/* eslint-enable jsdoc/require-param */
|
|
7052
|
-
|
|
7053
|
-
/**
|
|
7054
|
-
* 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.
|
|
7055
|
-
* @param {Object} elem - The element to check.
|
|
7056
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
7057
|
-
* @returns {void}
|
|
7058
|
-
*/
|
|
7059
|
-
handleComponentTagRename(elem, tagName) {
|
|
7060
|
-
const tag = tagName.toLowerCase();
|
|
7061
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
7062
|
-
|
|
7063
|
-
if (elemTag !== tag) {
|
|
7064
|
-
elem.setAttribute(tag, true);
|
|
7065
|
-
}
|
|
7066
|
-
}
|
|
7067
|
-
|
|
7068
|
-
/**
|
|
7069
|
-
* Validates if an element is a specific Auro component.
|
|
7070
|
-
* @param {Object} elem - The element to validate.
|
|
7071
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
7072
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
7073
|
-
*/
|
|
7074
|
-
elementMatch(elem, tagName) {
|
|
7075
|
-
const tag = tagName.toLowerCase();
|
|
7076
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
7077
|
-
|
|
7078
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
7079
|
-
}
|
|
7080
|
-
};
|
|
7081
|
-
|
|
7082
|
-
var styleCss$5 = i$5`.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)}`;
|
|
7012
|
+
var styleCss$5 = i$5`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3)}: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)}`;
|
|
7083
7013
|
|
|
7084
7014
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7085
7015
|
// See LICENSE in the project root for license information.
|
|
@@ -7089,13 +7019,12 @@ var styleCss$5 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-head
|
|
|
7089
7019
|
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
7090
7020
|
*
|
|
7091
7021
|
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
7092
|
-
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
7093
|
-
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
7094
7022
|
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
7023
|
+
* @attr {String} display - Determines the visual appearance of the header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
7024
|
+
* @attr {String} level - Determines the semantic heading level of the HTML element. Options are `1` - `6`
|
|
7095
7025
|
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
7096
7026
|
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
7097
7027
|
*/
|
|
7098
|
-
|
|
7099
7028
|
/* eslint complexity: ["error", 21] */
|
|
7100
7029
|
|
|
7101
7030
|
// build the component class
|
|
@@ -7108,7 +7037,7 @@ class AuroHeader extends i$2 {
|
|
|
7108
7037
|
/**
|
|
7109
7038
|
* @private
|
|
7110
7039
|
*/
|
|
7111
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
7040
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
7112
7041
|
}
|
|
7113
7042
|
|
|
7114
7043
|
// function to define props used within the scope of this component
|
|
@@ -7129,6 +7058,22 @@ class AuroHeader extends i$2 {
|
|
|
7129
7058
|
return [styleCss$5];
|
|
7130
7059
|
}
|
|
7131
7060
|
|
|
7061
|
+
/**
|
|
7062
|
+
* Mapping of display values to their corresponding CSS classes
|
|
7063
|
+
* @private
|
|
7064
|
+
*/
|
|
7065
|
+
static get displayClassMap() {
|
|
7066
|
+
return {
|
|
7067
|
+
'display': 'heading-xl',
|
|
7068
|
+
'800': 'heading-xl',
|
|
7069
|
+
'700': 'heading-lg',
|
|
7070
|
+
'600': 'heading-md',
|
|
7071
|
+
'500': 'heading-sm',
|
|
7072
|
+
'400': 'heading-xs',
|
|
7073
|
+
'300': 'heading-2xs'
|
|
7074
|
+
};
|
|
7075
|
+
}
|
|
7076
|
+
|
|
7132
7077
|
/**
|
|
7133
7078
|
* This will register this element with the browser.
|
|
7134
7079
|
* @param {string} [name="auro-header"] - The name of element that you want to register to.
|
|
@@ -7138,7 +7083,7 @@ class AuroHeader extends i$2 {
|
|
|
7138
7083
|
*
|
|
7139
7084
|
*/
|
|
7140
7085
|
static register(name = "auro-header") {
|
|
7141
|
-
AuroLibraryRuntimeUtils$
|
|
7086
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHeader);
|
|
7142
7087
|
}
|
|
7143
7088
|
|
|
7144
7089
|
firstUpdated() {
|
|
@@ -7205,23 +7150,42 @@ class AuroHeader extends i$2 {
|
|
|
7205
7150
|
this.display = 'display';
|
|
7206
7151
|
}
|
|
7207
7152
|
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7153
|
+
const headingLevel = level || '1';
|
|
7154
|
+
const spacingClasses = this.spacingDecision(this.size);
|
|
7155
|
+
|
|
7156
|
+
// Get the CSS class based on the display prop
|
|
7157
|
+
const headingClass = AuroHeader.displayClassMap[this.display];
|
|
7158
|
+
|
|
7159
|
+
const classObject = {
|
|
7160
|
+
'heading': true,
|
|
7161
|
+
[`heading--${this.display}`]: true,
|
|
7162
|
+
[headingClass]: true
|
|
7163
|
+
};
|
|
7164
|
+
|
|
7165
|
+
// Add spacing classes to the class object if they exist
|
|
7166
|
+
if (spacingClasses) {
|
|
7167
|
+
const spacingClassArray = spacingClasses.split(' ');
|
|
7168
|
+
spacingClassArray.forEach(cls => {
|
|
7169
|
+
if (cls.trim()) {
|
|
7170
|
+
classObject[cls.trim()] = true;
|
|
7171
|
+
}
|
|
7172
|
+
});
|
|
7215
7173
|
}
|
|
7174
|
+
|
|
7175
|
+
const headerClasses = e(classObject);
|
|
7176
|
+
|
|
7177
|
+
// unsafeStatic dynamically creates tag names at runtime
|
|
7178
|
+
const tag = s(`h${headingLevel}`);
|
|
7179
|
+
return u`<${tag} class="${headerClasses}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></${tag}>`;
|
|
7216
7180
|
}
|
|
7181
|
+
|
|
7217
7182
|
// function that renders the HTML and CSS into the scope of the component
|
|
7218
|
-
|
|
7219
7183
|
render() {
|
|
7220
7184
|
return this.template(this.level);
|
|
7221
7185
|
}
|
|
7222
7186
|
}
|
|
7223
7187
|
|
|
7224
|
-
var headerVersion = '4.0.
|
|
7188
|
+
var headerVersion = '4.0.2';
|
|
7225
7189
|
|
|
7226
7190
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7227
7191
|
// See LICENSE in the project root for license information.
|
|
@@ -7234,7 +7198,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
7234
7198
|
|
|
7235
7199
|
this.large = false;
|
|
7236
7200
|
|
|
7237
|
-
AuroLibraryRuntimeUtils$
|
|
7201
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
7238
7202
|
|
|
7239
7203
|
const versioning = new AuroDependencyVersioning();
|
|
7240
7204
|
|
|
@@ -7286,7 +7250,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
7286
7250
|
*
|
|
7287
7251
|
*/
|
|
7288
7252
|
static register(name = "auro-bibtemplate") {
|
|
7289
|
-
AuroLibraryRuntimeUtils$
|
|
7253
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
|
|
7290
7254
|
}
|
|
7291
7255
|
|
|
7292
7256
|
/**
|
|
@@ -7576,7 +7540,7 @@ class AuroHelpText extends i$2 {
|
|
|
7576
7540
|
|
|
7577
7541
|
var helpTextVersion = '1.0.0';
|
|
7578
7542
|
|
|
7579
|
-
var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host{display:inline-block}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7543
|
+
var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host{display:inline-block}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7580
7544
|
|
|
7581
7545
|
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7582
7546
|
// See LICENSE in the project root for license information.
|
|
@@ -7612,11 +7576,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7612
7576
|
|
|
7613
7577
|
this.matchWidth = false;
|
|
7614
7578
|
|
|
7615
|
-
// Layout Config
|
|
7616
|
-
this.layout = 'snowflake';
|
|
7617
|
-
this.shape = 'snowflake';
|
|
7618
|
-
this.size = 'xl';
|
|
7619
|
-
|
|
7620
7579
|
// floaterConfig
|
|
7621
7580
|
this.placement = 'bottom-start';
|
|
7622
7581
|
this.offset = 0;
|
|
@@ -7625,10 +7584,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7625
7584
|
|
|
7626
7585
|
this.forceDisplayValue = false;
|
|
7627
7586
|
|
|
7628
|
-
this.layout = 'classic';
|
|
7629
|
-
this.shape = 'classic';
|
|
7630
|
-
this.size = 'xl';
|
|
7631
|
-
|
|
7632
7587
|
/**
|
|
7633
7588
|
* @private
|
|
7634
7589
|
*/
|
|
@@ -7644,7 +7599,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7644
7599
|
/**
|
|
7645
7600
|
* @private
|
|
7646
7601
|
*/
|
|
7647
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
7602
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
7648
7603
|
|
|
7649
7604
|
/**
|
|
7650
7605
|
* Generate unique names for dependency components.
|
|
@@ -7694,6 +7649,11 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7694
7649
|
this.fullscreenBreakpoint = 'sm';
|
|
7695
7650
|
this.onDark = false;
|
|
7696
7651
|
this.isPopoverVisible = false;
|
|
7652
|
+
|
|
7653
|
+
// Layout Config
|
|
7654
|
+
this.layout = 'classic';
|
|
7655
|
+
this.shape = 'classic';
|
|
7656
|
+
this.size = 'lg';
|
|
7697
7657
|
}
|
|
7698
7658
|
|
|
7699
7659
|
// This function is to define props used within the scope of this component
|
|
@@ -7999,7 +7959,8 @@ class AuroSelect extends AuroElement$4 {
|
|
|
7999
7959
|
const obj = {
|
|
8000
7960
|
'is-disabled': this.disabled,
|
|
8001
7961
|
'withValue': false,
|
|
8002
|
-
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
7962
|
+
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0,
|
|
7963
|
+
[this.labelFontClass]: true
|
|
8003
7964
|
};
|
|
8004
7965
|
|
|
8005
7966
|
if (this.placeholder) {
|
|
@@ -8015,14 +7976,32 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8015
7976
|
}
|
|
8016
7977
|
|
|
8017
7978
|
/**
|
|
8018
|
-
* Returns
|
|
7979
|
+
* Returns the label font class based on layout and selection state.
|
|
8019
7980
|
* @private
|
|
8020
|
-
* @returns {
|
|
7981
|
+
* @returns {string} - The font class for the label.
|
|
8021
7982
|
*/
|
|
8022
|
-
get
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
7983
|
+
get labelFontClass() {
|
|
7984
|
+
const isSelected = this.hasValue;
|
|
7985
|
+
|
|
7986
|
+
if (this.layout.startsWith('emphasized')) {
|
|
7987
|
+
return isSelected ? 'body-sm' : 'accent-xl';
|
|
7988
|
+
}
|
|
7989
|
+
|
|
7990
|
+
if (this.layout === 'snowflake') {
|
|
7991
|
+
return isSelected ? 'body-xs' : 'body-lg';
|
|
7992
|
+
}
|
|
7993
|
+
|
|
7994
|
+
// classic layout (default)
|
|
7995
|
+
return isSelected ? 'body-xs' : 'body-default';
|
|
7996
|
+
}
|
|
7997
|
+
|
|
7998
|
+
/**
|
|
7999
|
+
* Whether or not the component has a value.
|
|
8000
|
+
* @returns {boolean} - Returns true if the component has a value or placeholder.
|
|
8001
|
+
* @private
|
|
8002
|
+
*/
|
|
8003
|
+
get hasValue() {
|
|
8004
|
+
return this.placeholder || (this.value && this.value.length > 0); // eslint-disable-line no-extra-parens
|
|
8026
8005
|
}
|
|
8027
8006
|
|
|
8028
8007
|
/**
|
|
@@ -8072,7 +8051,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8072
8051
|
*
|
|
8073
8052
|
*/
|
|
8074
8053
|
static register(name = "auro-select") {
|
|
8075
|
-
AuroLibraryRuntimeUtils$
|
|
8054
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
|
|
8076
8055
|
}
|
|
8077
8056
|
|
|
8078
8057
|
/**
|
|
@@ -8178,7 +8157,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8178
8157
|
|
|
8179
8158
|
this.menu.addEventListener('auroMenu-selectValueReset', () => {
|
|
8180
8159
|
this.optionSelected = this.menu.optionSelected;
|
|
8181
|
-
this.
|
|
8160
|
+
this.validate(this);
|
|
8182
8161
|
});
|
|
8183
8162
|
|
|
8184
8163
|
this.menu.addEventListener('auroMenu-activatedOption', (evt) => {
|
|
@@ -8262,7 +8241,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8262
8241
|
this.addEventListener('focusin', this.handleFocusin);
|
|
8263
8242
|
|
|
8264
8243
|
this.addEventListener('blur', () => {
|
|
8265
|
-
this.
|
|
8244
|
+
this.validate();
|
|
8266
8245
|
this.hasFocus = false;
|
|
8267
8246
|
});
|
|
8268
8247
|
}
|
|
@@ -8476,7 +8455,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8476
8455
|
}
|
|
8477
8456
|
|
|
8478
8457
|
this._updateNativeSelect();
|
|
8479
|
-
this.
|
|
8458
|
+
this.validate();
|
|
8480
8459
|
|
|
8481
8460
|
// LEGACY EVENT
|
|
8482
8461
|
this.dispatchEvent(new CustomEvent('auroSelect-valueSet', {
|
|
@@ -8684,7 +8663,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8684
8663
|
|
|
8685
8664
|
return u`
|
|
8686
8665
|
<div
|
|
8687
|
-
class="${e(this.commonWrapperClasses)}"
|
|
8688
8666
|
part="wrapper">
|
|
8689
8667
|
<div id="slotHolder" aria-hidden="true">
|
|
8690
8668
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
@@ -8763,7 +8741,6 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8763
8741
|
|
|
8764
8742
|
return u`
|
|
8765
8743
|
<div
|
|
8766
|
-
class="${e(this.commonWrapperClasses)}"
|
|
8767
8744
|
part="wrapper">
|
|
8768
8745
|
<div id="slotHolder" aria-hidden="true">
|
|
8769
8746
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
@@ -8840,9 +8817,13 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8840
8817
|
'util_displayHiddenVisually': (this.forceDisplayValue || !(this.dropdown && this.dropdown.isPopoverVisible)) && this.hasDisplayValueContent
|
|
8841
8818
|
};
|
|
8842
8819
|
|
|
8820
|
+
const valueClasses = {
|
|
8821
|
+
'value': true,
|
|
8822
|
+
'body-default': true
|
|
8823
|
+
};
|
|
8824
|
+
|
|
8843
8825
|
return u`
|
|
8844
8826
|
<div
|
|
8845
|
-
class="${e(this.commonWrapperClasses)}"
|
|
8846
8827
|
part="wrapper">
|
|
8847
8828
|
<div id="slotHolder" aria-hidden="true">
|
|
8848
8829
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
@@ -8872,7 +8853,7 @@ class AuroSelect extends AuroElement$4 {
|
|
|
8872
8853
|
<slot name="label"></slot>
|
|
8873
8854
|
${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8874
8855
|
</label>
|
|
8875
|
-
<div class="
|
|
8856
|
+
<div class="${e(valueClasses)}" id="value"></div>
|
|
8876
8857
|
<div id="placeholder" class="${e(placeholderClass)}">
|
|
8877
8858
|
${this.placeholder}
|
|
8878
8859
|
</div>
|
|
@@ -9145,7 +9126,7 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9145
9126
|
*
|
|
9146
9127
|
*/
|
|
9147
9128
|
static register(name = "auro-menu") {
|
|
9148
|
-
AuroLibraryRuntimeUtils$
|
|
9129
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
|
|
9149
9130
|
}
|
|
9150
9131
|
|
|
9151
9132
|
/**
|
|
@@ -9189,7 +9170,7 @@ class AuroMenu extends AuroElement$4 {
|
|
|
9189
9170
|
}
|
|
9190
9171
|
|
|
9191
9172
|
firstUpdated() {
|
|
9192
|
-
AuroLibraryRuntimeUtils$
|
|
9173
|
+
AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
|
|
9193
9174
|
|
|
9194
9175
|
this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
|
|
9195
9176
|
this.initializeMenu();
|
|
@@ -10240,7 +10221,7 @@ class AuroMenuOption extends AuroElement$4 {
|
|
|
10240
10221
|
/**
|
|
10241
10222
|
* @private
|
|
10242
10223
|
*/
|
|
10243
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
10224
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
10244
10225
|
}
|
|
10245
10226
|
|
|
10246
10227
|
static get properties() {
|
|
@@ -10286,7 +10267,7 @@ class AuroMenuOption extends AuroElement$4 {
|
|
|
10286
10267
|
*
|
|
10287
10268
|
*/
|
|
10288
10269
|
static register(name = "auro-menuoption") {
|
|
10289
|
-
AuroLibraryRuntimeUtils$
|
|
10270
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
|
|
10290
10271
|
}
|
|
10291
10272
|
|
|
10292
10273
|
firstUpdated() {
|
|
@@ -250,8 +250,6 @@ export class AuroSelect extends AuroElement {
|
|
|
250
250
|
*/
|
|
251
251
|
static register(name?: string): void;
|
|
252
252
|
matchWidth: boolean;
|
|
253
|
-
shape: string;
|
|
254
|
-
size: string;
|
|
255
253
|
placement: string;
|
|
256
254
|
offset: number;
|
|
257
255
|
noFlip: boolean;
|
|
@@ -305,6 +303,8 @@ export class AuroSelect extends AuroElement {
|
|
|
305
303
|
fullscreenBreakpoint: string;
|
|
306
304
|
onDark: boolean;
|
|
307
305
|
isPopoverVisible: any;
|
|
306
|
+
shape: string;
|
|
307
|
+
size: string;
|
|
308
308
|
/**
|
|
309
309
|
* Formatted value based on `multiSelect` state.
|
|
310
310
|
* Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
|
|
@@ -319,11 +319,17 @@ export class AuroSelect extends AuroElement {
|
|
|
319
319
|
*/
|
|
320
320
|
private get commonLabelClasses();
|
|
321
321
|
/**
|
|
322
|
-
* Returns
|
|
322
|
+
* Returns the label font class based on layout and selection state.
|
|
323
|
+
* @private
|
|
324
|
+
* @returns {string} - The font class for the label.
|
|
325
|
+
*/
|
|
326
|
+
private get labelFontClass();
|
|
327
|
+
/**
|
|
328
|
+
* Whether or not the component has a value.
|
|
329
|
+
* @returns {boolean} - Returns true if the component has a value or placeholder.
|
|
323
330
|
* @private
|
|
324
|
-
* @returns {object} - Returns classmap.
|
|
325
331
|
*/
|
|
326
|
-
private get
|
|
332
|
+
private get hasValue();
|
|
327
333
|
/**
|
|
328
334
|
* Binds all behavior needed to the dropdown after rendering.
|
|
329
335
|
* @private
|