@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.5 → 0.0.0-pr624.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -0
- package/components/bibtemplate/dist/index.js +88 -6
- package/components/bibtemplate/dist/registered.js +88 -6
- package/components/checkbox/demo/api.min.js +4 -3
- package/components/checkbox/demo/index.min.js +4 -3
- package/components/checkbox/dist/index.js +4 -3
- package/components/checkbox/dist/registered.js +4 -3
- package/components/combobox/demo/api.min.js +514 -172
- package/components/combobox/demo/index.min.js +514 -172
- package/components/combobox/dist/auro-combobox.d.ts +0 -8
- package/components/combobox/dist/index.js +425 -153
- package/components/combobox/dist/registered.js +425 -153
- package/components/counter/demo/api.min.js +404 -106
- package/components/counter/demo/index.min.js +404 -106
- package/components/counter/dist/index.js +404 -106
- package/components/counter/dist/registered.js +404 -106
- package/components/datepicker/demo/api.md +13 -5
- package/components/datepicker/demo/api.min.js +876 -383
- package/components/datepicker/demo/index.md +13 -0
- package/components/datepicker/demo/index.min.js +876 -383
- package/components/datepicker/dist/auro-datepicker.d.ts +21 -2
- package/components/datepicker/dist/index.js +679 -186
- package/components/datepicker/dist/registered.js +679 -186
- package/components/datepicker/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +226 -81
- package/components/dropdown/demo/index.min.js +226 -81
- package/components/dropdown/dist/auro-dropdown.d.ts +10 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +8 -0
- package/components/dropdown/dist/index.js +226 -81
- package/components/dropdown/dist/registered.js +226 -81
- package/components/input/demo/api.md +46 -48
- package/components/input/demo/api.min.js +96 -15
- package/components/input/demo/index.min.js +96 -15
- package/components/input/dist/auro-input.d.ts +17 -15
- package/components/input/dist/index.js +96 -15
- package/components/input/dist/registered.js +96 -15
- package/components/menu/demo/api.min.js +76 -6
- package/components/menu/demo/index.min.js +76 -6
- package/components/menu/dist/index.js +76 -6
- package/components/menu/dist/registered.js +76 -6
- package/components/radio/demo/api.min.js +4 -3
- package/components/radio/demo/index.min.js +4 -3
- package/components/radio/dist/index.js +4 -3
- package/components/radio/dist/registered.js +4 -3
- package/components/select/demo/api.md +12 -4
- package/components/select/demo/api.min.js +1178 -200
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +298 -777
- package/components/select/demo/index.min.js +1178 -200
- package/components/select/dist/auro-select.d.ts +96 -4
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +1106 -198
- package/components/select/dist/registered.js +1106 -198
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +3 -3
- /package/components/{dropdown/dist/styles/style-css.d.ts → datepicker/dist/styles/default/color-css.d.ts} +0 -0
|
@@ -56,7 +56,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
56
56
|
|
|
57
57
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
58
58
|
|
|
59
|
-
let AuroLibraryRuntimeUtils$
|
|
59
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
60
60
|
|
|
61
61
|
/* eslint-disable jsdoc/require-param */
|
|
62
62
|
|
|
@@ -157,7 +157,7 @@ class AuroLoader extends LitElement {
|
|
|
157
157
|
/**
|
|
158
158
|
* @private
|
|
159
159
|
*/
|
|
160
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
160
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
161
161
|
|
|
162
162
|
this.orbit = false;
|
|
163
163
|
this.ringworm = false;
|
|
@@ -220,7 +220,7 @@ class AuroLoader extends LitElement {
|
|
|
220
220
|
*
|
|
221
221
|
*/
|
|
222
222
|
static register(name = "auro-loader") {
|
|
223
|
-
AuroLibraryRuntimeUtils$
|
|
223
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroLoader);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
firstUpdated() {
|
|
@@ -524,7 +524,7 @@ class AuroButton extends LitElement {
|
|
|
524
524
|
*
|
|
525
525
|
*/
|
|
526
526
|
static register(name = "auro-button") {
|
|
527
|
-
AuroLibraryRuntimeUtils$
|
|
527
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroButton);
|
|
528
528
|
}
|
|
529
529
|
|
|
530
530
|
/**
|
|
@@ -638,7 +638,7 @@ class AuroCounterButton extends AuroButton {
|
|
|
638
638
|
*
|
|
639
639
|
*/
|
|
640
640
|
static register(name = "auro-counter-button") {
|
|
641
|
-
AuroLibraryRuntimeUtils$
|
|
641
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterButton);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
|
|
@@ -802,6 +802,76 @@ var tokensCss$4 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
|
|
|
802
802
|
|
|
803
803
|
var colorCss$6 = 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)}`;
|
|
804
804
|
|
|
805
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
806
|
+
// See LICENSE in the project root for license information.
|
|
807
|
+
|
|
808
|
+
// ---------------------------------------------------------------------
|
|
809
|
+
|
|
810
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
811
|
+
|
|
812
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
813
|
+
|
|
814
|
+
/* eslint-disable jsdoc/require-param */
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* This will register a new custom element with the browser.
|
|
818
|
+
* @param {String} name - The name of the custom element.
|
|
819
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
820
|
+
* @returns {void}
|
|
821
|
+
*/
|
|
822
|
+
registerComponent(name, componentClass) {
|
|
823
|
+
if (!customElements.get(name)) {
|
|
824
|
+
customElements.define(name, class extends componentClass {});
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
830
|
+
* @returns {void}
|
|
831
|
+
*/
|
|
832
|
+
closestElement(
|
|
833
|
+
selector, // selector like in .closest()
|
|
834
|
+
base = this, // extra functionality to skip a parent
|
|
835
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
836
|
+
!el || el === document || el === window
|
|
837
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
838
|
+
: found
|
|
839
|
+
? found // found a selector INside this element
|
|
840
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
841
|
+
) {
|
|
842
|
+
return __Closest(base);
|
|
843
|
+
}
|
|
844
|
+
/* eslint-enable jsdoc/require-param */
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* 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.
|
|
848
|
+
* @param {Object} elem - The element to check.
|
|
849
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
850
|
+
* @returns {void}
|
|
851
|
+
*/
|
|
852
|
+
handleComponentTagRename(elem, tagName) {
|
|
853
|
+
const tag = tagName.toLowerCase();
|
|
854
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
855
|
+
|
|
856
|
+
if (elemTag !== tag) {
|
|
857
|
+
elem.setAttribute(tag, true);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Validates if an element is a specific Auro component.
|
|
863
|
+
* @param {Object} elem - The element to validate.
|
|
864
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
865
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
866
|
+
*/
|
|
867
|
+
elementMatch(elem, tagName) {
|
|
868
|
+
const tag = tagName.toLowerCase();
|
|
869
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
870
|
+
|
|
871
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
872
|
+
}
|
|
873
|
+
};
|
|
874
|
+
|
|
805
875
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
806
876
|
// See LICENSE in the project root for license information.
|
|
807
877
|
|
|
@@ -821,7 +891,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
821
891
|
*/
|
|
822
892
|
privateDefaults() {
|
|
823
893
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
824
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
894
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
825
895
|
}
|
|
826
896
|
|
|
827
897
|
// function to define props used within the scope of this component
|
|
@@ -903,7 +973,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
903
973
|
*
|
|
904
974
|
*/
|
|
905
975
|
static register(name = "auro-icon") {
|
|
906
|
-
AuroLibraryRuntimeUtils$
|
|
976
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroIcon);
|
|
907
977
|
}
|
|
908
978
|
|
|
909
979
|
connectedCallback() {
|
|
@@ -1027,9 +1097,10 @@ class DateFormatter {
|
|
|
1027
1097
|
/**
|
|
1028
1098
|
* Convert a date object to string format.
|
|
1029
1099
|
* @param {Object} date - Date to convert to string.
|
|
1030
|
-
* @
|
|
1100
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
1101
|
+
* @returns {String} Returns the date as a string.
|
|
1031
1102
|
*/
|
|
1032
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
1103
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
1033
1104
|
year: "numeric",
|
|
1034
1105
|
month: "2-digit",
|
|
1035
1106
|
day: "2-digit",
|
|
@@ -1221,7 +1292,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
|
|
|
1221
1292
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
1222
1293
|
|
|
1223
1294
|
// Get the date string of the date object we created from the string date
|
|
1224
|
-
const actualDateStr = dateFormatter.getDateAsString(dateObj);
|
|
1295
|
+
const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
|
|
1225
1296
|
|
|
1226
1297
|
// Guard Clause: Generated date matches date string input
|
|
1227
1298
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -1386,7 +1457,7 @@ const {
|
|
|
1386
1457
|
class AuroFormValidation {
|
|
1387
1458
|
|
|
1388
1459
|
constructor() {
|
|
1389
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
1460
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
1390
1461
|
}
|
|
1391
1462
|
|
|
1392
1463
|
/**
|
|
@@ -1932,7 +2003,7 @@ class AuroCounter extends LitElement {
|
|
|
1932
2003
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
1933
2004
|
*/
|
|
1934
2005
|
static register(name = "auro-counter") {
|
|
1935
|
-
AuroLibraryRuntimeUtils$
|
|
2006
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounter);
|
|
1936
2007
|
}
|
|
1937
2008
|
|
|
1938
2009
|
static get styles() {
|
|
@@ -2118,7 +2189,7 @@ var styleCss$5 = css`:host{position:relative;display:block}[slot=trigger],::slot
|
|
|
2118
2189
|
|
|
2119
2190
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2120
2191
|
|
|
2121
|
-
let AuroLibraryRuntimeUtils$
|
|
2192
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
2122
2193
|
|
|
2123
2194
|
/* eslint-disable jsdoc/require-param */
|
|
2124
2195
|
|
|
@@ -2701,10 +2772,11 @@ const flip$1 = function (options) {
|
|
|
2701
2772
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
2702
2773
|
const nextPlacement = placements[nextIndex];
|
|
2703
2774
|
if (nextPlacement) {
|
|
2704
|
-
var _overflowsData$;
|
|
2705
2775
|
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
2706
|
-
|
|
2707
|
-
if
|
|
2776
|
+
if (!ignoreCrossAxisOverflow ||
|
|
2777
|
+
// We leave the current main axis only if every placement on that axis
|
|
2778
|
+
// overflows the main axis.
|
|
2779
|
+
overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
|
|
2708
2780
|
// Try next placement and re-run the lifecycle.
|
|
2709
2781
|
return {
|
|
2710
2782
|
data: {
|
|
@@ -3725,8 +3797,28 @@ class AuroFloatingUI {
|
|
|
3725
3797
|
if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
|
|
3726
3798
|
AuroFloatingUI.isMousePressHandlerInitialized = true;
|
|
3727
3799
|
|
|
3800
|
+
// Track timeout for isMousePressed reset to avoid race conditions
|
|
3801
|
+
if (!AuroFloatingUI._mousePressedTimeout) {
|
|
3802
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
3803
|
+
}
|
|
3728
3804
|
const mouseEventGlobalHandler = (event) => {
|
|
3729
|
-
|
|
3805
|
+
const isPressed = event.type === 'mousedown';
|
|
3806
|
+
if (isPressed) {
|
|
3807
|
+
// Clear any pending timeout to prevent race condition
|
|
3808
|
+
if (AuroFloatingUI._mousePressedTimeout !== null) {
|
|
3809
|
+
clearTimeout(AuroFloatingUI._mousePressedTimeout);
|
|
3810
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
3811
|
+
}
|
|
3812
|
+
if (!AuroFloatingUI.isMousePressed) {
|
|
3813
|
+
AuroFloatingUI.isMousePressed = true;
|
|
3814
|
+
}
|
|
3815
|
+
} else if (AuroFloatingUI.isMousePressed && !isPressed) {
|
|
3816
|
+
// Schedule reset and track timeout ID
|
|
3817
|
+
AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
|
|
3818
|
+
AuroFloatingUI.isMousePressed = false;
|
|
3819
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
3820
|
+
}, 0);
|
|
3821
|
+
}
|
|
3730
3822
|
};
|
|
3731
3823
|
|
|
3732
3824
|
window.addEventListener('mousedown', mouseEventGlobalHandler);
|
|
@@ -3853,6 +3945,7 @@ class AuroFloatingUI {
|
|
|
3853
3945
|
|
|
3854
3946
|
// Compute the position of the bib
|
|
3855
3947
|
computePosition(this.element.trigger, this.element.bib, {
|
|
3948
|
+
strategy: this.element.floaterConfig?.strategy || 'fixed',
|
|
3856
3949
|
placement: this.element.floaterConfig?.placement,
|
|
3857
3950
|
middleware: middleware || []
|
|
3858
3951
|
}).then(({ x, y }) => { // eslint-disable-line id-length
|
|
@@ -3987,8 +4080,9 @@ class AuroFloatingUI {
|
|
|
3987
4080
|
if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
|
|
3988
4081
|
return;
|
|
3989
4082
|
}
|
|
3990
|
-
|
|
3991
|
-
if
|
|
4083
|
+
|
|
4084
|
+
// if fullscreen bib is in fullscreen mode, do not close
|
|
4085
|
+
if (this.element.bib.hasAttribute('isfullscreen')) {
|
|
3992
4086
|
return;
|
|
3993
4087
|
}
|
|
3994
4088
|
|
|
@@ -4289,8 +4383,6 @@ class AuroFloatingUI {
|
|
|
4289
4383
|
this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
|
|
4290
4384
|
}
|
|
4291
4385
|
|
|
4292
|
-
document.body.append(this.element.bib);
|
|
4293
|
-
|
|
4294
4386
|
this.regenerateBibId();
|
|
4295
4387
|
this.handleTriggerTabIndex();
|
|
4296
4388
|
|
|
@@ -4521,6 +4613,76 @@ var tokensCss$2 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
|
|
|
4521
4613
|
|
|
4522
4614
|
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)}`;
|
|
4523
4615
|
|
|
4616
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4617
|
+
// See LICENSE in the project root for license information.
|
|
4618
|
+
|
|
4619
|
+
// ---------------------------------------------------------------------
|
|
4620
|
+
|
|
4621
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4622
|
+
|
|
4623
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
4624
|
+
|
|
4625
|
+
/* eslint-disable jsdoc/require-param */
|
|
4626
|
+
|
|
4627
|
+
/**
|
|
4628
|
+
* This will register a new custom element with the browser.
|
|
4629
|
+
* @param {String} name - The name of the custom element.
|
|
4630
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
4631
|
+
* @returns {void}
|
|
4632
|
+
*/
|
|
4633
|
+
registerComponent(name, componentClass) {
|
|
4634
|
+
if (!customElements.get(name)) {
|
|
4635
|
+
customElements.define(name, class extends componentClass {});
|
|
4636
|
+
}
|
|
4637
|
+
}
|
|
4638
|
+
|
|
4639
|
+
/**
|
|
4640
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
4641
|
+
* @returns {void}
|
|
4642
|
+
*/
|
|
4643
|
+
closestElement(
|
|
4644
|
+
selector, // selector like in .closest()
|
|
4645
|
+
base = this, // extra functionality to skip a parent
|
|
4646
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4647
|
+
!el || el === document || el === window
|
|
4648
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
4649
|
+
: found
|
|
4650
|
+
? found // found a selector INside this element
|
|
4651
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4652
|
+
) {
|
|
4653
|
+
return __Closest(base);
|
|
4654
|
+
}
|
|
4655
|
+
/* eslint-enable jsdoc/require-param */
|
|
4656
|
+
|
|
4657
|
+
/**
|
|
4658
|
+
* 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.
|
|
4659
|
+
* @param {Object} elem - The element to check.
|
|
4660
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4661
|
+
* @returns {void}
|
|
4662
|
+
*/
|
|
4663
|
+
handleComponentTagRename(elem, tagName) {
|
|
4664
|
+
const tag = tagName.toLowerCase();
|
|
4665
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4666
|
+
|
|
4667
|
+
if (elemTag !== tag) {
|
|
4668
|
+
elem.setAttribute(tag, true);
|
|
4669
|
+
}
|
|
4670
|
+
}
|
|
4671
|
+
|
|
4672
|
+
/**
|
|
4673
|
+
* Validates if an element is a specific Auro component.
|
|
4674
|
+
* @param {Object} elem - The element to validate.
|
|
4675
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
4676
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4677
|
+
*/
|
|
4678
|
+
elementMatch(elem, tagName) {
|
|
4679
|
+
const tag = tagName.toLowerCase();
|
|
4680
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4681
|
+
|
|
4682
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
4683
|
+
}
|
|
4684
|
+
};
|
|
4685
|
+
|
|
4524
4686
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4525
4687
|
// See LICENSE in the project root for license information.
|
|
4526
4688
|
|
|
@@ -4540,7 +4702,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4540
4702
|
*/
|
|
4541
4703
|
privateDefaults() {
|
|
4542
4704
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
4543
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
4705
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
4544
4706
|
}
|
|
4545
4707
|
|
|
4546
4708
|
// function to define props used within the scope of this component
|
|
@@ -4622,7 +4784,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4622
4784
|
*
|
|
4623
4785
|
*/
|
|
4624
4786
|
static register(name = "auro-icon") {
|
|
4625
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
4787
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
|
|
4626
4788
|
}
|
|
4627
4789
|
|
|
4628
4790
|
connectedCallback() {
|
|
@@ -4690,7 +4852,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4690
4852
|
|
|
4691
4853
|
var iconVersion$1 = '6.1.2';
|
|
4692
4854
|
|
|
4693
|
-
var styleCss$1$1 = css`:host{position:
|
|
4855
|
+
var styleCss$1$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}: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}`;
|
|
4694
4856
|
|
|
4695
4857
|
var colorCss$2$1 = 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)}`;
|
|
4696
4858
|
|
|
@@ -4700,7 +4862,6 @@ var tokensCss$1 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-color:
|
|
|
4700
4862
|
// See LICENSE in the project root for license information.
|
|
4701
4863
|
|
|
4702
4864
|
|
|
4703
|
-
|
|
4704
4865
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
4705
4866
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
4706
4867
|
'xl',
|
|
@@ -4725,7 +4886,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4725
4886
|
*/
|
|
4726
4887
|
this._mobileBreakpointValue = undefined;
|
|
4727
4888
|
|
|
4728
|
-
AuroLibraryRuntimeUtils$
|
|
4889
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
4729
4890
|
}
|
|
4730
4891
|
|
|
4731
4892
|
static get styles() {
|
|
@@ -4770,6 +4931,13 @@ class AuroDropdownBib extends LitElement {
|
|
|
4770
4931
|
type: Boolean,
|
|
4771
4932
|
reflect: true
|
|
4772
4933
|
},
|
|
4934
|
+
|
|
4935
|
+
/**
|
|
4936
|
+
* A reference to the associated bib template element.
|
|
4937
|
+
*/
|
|
4938
|
+
bibTemplate: {
|
|
4939
|
+
type: Object
|
|
4940
|
+
}
|
|
4773
4941
|
};
|
|
4774
4942
|
}
|
|
4775
4943
|
|
|
@@ -4802,9 +4970,50 @@ class AuroDropdownBib extends LitElement {
|
|
|
4802
4970
|
}
|
|
4803
4971
|
}
|
|
4804
4972
|
});
|
|
4973
|
+
|
|
4974
|
+
if (this.bibTemplate) {
|
|
4975
|
+
// If the bib template is found, set the fullscreen attribute
|
|
4976
|
+
if (this.isFullscreen) {
|
|
4977
|
+
this.bibTemplate.setAttribute('isFullscreen', 'true');
|
|
4978
|
+
} else {
|
|
4979
|
+
this.bibTemplate.removeAttribute('isFullscreen');
|
|
4980
|
+
}
|
|
4981
|
+
}
|
|
4805
4982
|
}
|
|
4806
4983
|
}
|
|
4807
4984
|
|
|
4985
|
+
connectedCallback() {
|
|
4986
|
+
super.connectedCallback();
|
|
4987
|
+
|
|
4988
|
+
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
4989
|
+
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
4990
|
+
const bibTemplate = event.detail.element;
|
|
4991
|
+
this.bibTemplate = bibTemplate;
|
|
4992
|
+
|
|
4993
|
+
if (bibTemplate) {
|
|
4994
|
+
// If the bib template is found, set the fullscreen attribute
|
|
4995
|
+
if (this.isFullscreen) {
|
|
4996
|
+
bibTemplate.setAttribute('isFullscreen', 'true');
|
|
4997
|
+
} else {
|
|
4998
|
+
bibTemplate.removeAttribute('isFullscreen');
|
|
4999
|
+
}
|
|
5000
|
+
}
|
|
5001
|
+
});
|
|
5002
|
+
}
|
|
5003
|
+
|
|
5004
|
+
firstUpdated(changedProperties) {
|
|
5005
|
+
super.firstUpdated(changedProperties);
|
|
5006
|
+
|
|
5007
|
+
// Dispatch a custom event when the component is connected
|
|
5008
|
+
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
5009
|
+
bubbles: true,
|
|
5010
|
+
composed: true,
|
|
5011
|
+
detail: {
|
|
5012
|
+
element: this
|
|
5013
|
+
}
|
|
5014
|
+
}));
|
|
5015
|
+
}
|
|
5016
|
+
|
|
4808
5017
|
// function that renders the HTML and CSS into the scope of the component
|
|
4809
5018
|
render() {
|
|
4810
5019
|
return html$1`
|
|
@@ -4817,7 +5026,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4817
5026
|
|
|
4818
5027
|
var dropdownVersion$1 = '3.0.0';
|
|
4819
5028
|
|
|
4820
|
-
var shapeSizeCss = css`.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-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-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-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-pill-xl{min-height:
|
|
5029
|
+
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:72px;max-height:72px;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}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;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}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;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}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;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}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;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}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
|
|
4821
5030
|
|
|
4822
5031
|
var colorCss$1$1 = 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)}`;
|
|
4823
5032
|
|
|
@@ -4825,9 +5034,9 @@ var classicColorCss = css`:host([layout*=classic]) .label{color:var(--ds-auro-dr
|
|
|
4825
5034
|
|
|
4826
5035
|
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;margin-left:var(--ds-size-100, 0.5rem)}: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][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
4827
5036
|
|
|
4828
|
-
var styleEmphasizedCss = css`:host{display:block}.wrapper{display:flex;flex-direction:
|
|
5037
|
+
var styleEmphasizedCss = 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{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}`;
|
|
4829
5038
|
|
|
4830
|
-
var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direction:
|
|
5039
|
+
var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direction:wrapper}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
4831
5040
|
|
|
4832
5041
|
var colorCss$4 = 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)}`;
|
|
4833
5042
|
|
|
@@ -4842,7 +5051,7 @@ var tokensCss$3 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
4842
5051
|
|
|
4843
5052
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4844
5053
|
|
|
4845
|
-
let AuroLibraryRuntimeUtils$
|
|
5054
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4846
5055
|
|
|
4847
5056
|
/* eslint-disable jsdoc/require-param */
|
|
4848
5057
|
|
|
@@ -4923,7 +5132,7 @@ class AuroHelpText extends LitElement {
|
|
|
4923
5132
|
this.onDark = false;
|
|
4924
5133
|
this.hasTextContent = false;
|
|
4925
5134
|
|
|
4926
|
-
AuroLibraryRuntimeUtils$
|
|
5135
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
4927
5136
|
}
|
|
4928
5137
|
|
|
4929
5138
|
static get styles() {
|
|
@@ -4979,7 +5188,7 @@ class AuroHelpText extends LitElement {
|
|
|
4979
5188
|
*
|
|
4980
5189
|
*/
|
|
4981
5190
|
static register(name = "auro-helptext") {
|
|
4982
|
-
AuroLibraryRuntimeUtils$
|
|
5191
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
4983
5192
|
}
|
|
4984
5193
|
|
|
4985
5194
|
updated() {
|
|
@@ -5161,6 +5370,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5161
5370
|
this.layout = 'classic';
|
|
5162
5371
|
this.shape = 'rounded';
|
|
5163
5372
|
this.size = 'xl';
|
|
5373
|
+
this.parentBorder = false;
|
|
5164
5374
|
|
|
5165
5375
|
this.privateDefaults();
|
|
5166
5376
|
}
|
|
@@ -5176,7 +5386,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5176
5386
|
'trigger': true,
|
|
5177
5387
|
'wrapper': true,
|
|
5178
5388
|
'hasFocus': this.hasFocus,
|
|
5179
|
-
'simple': this.simple
|
|
5389
|
+
'simple': this.simple,
|
|
5390
|
+
'parentBorder': this.parentBorder
|
|
5180
5391
|
};
|
|
5181
5392
|
}
|
|
5182
5393
|
|
|
@@ -5228,7 +5439,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5228
5439
|
/**
|
|
5229
5440
|
* @private
|
|
5230
5441
|
*/
|
|
5231
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
5442
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
5232
5443
|
|
|
5233
5444
|
/**
|
|
5234
5445
|
* @private
|
|
@@ -5443,6 +5654,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5443
5654
|
reflect: true
|
|
5444
5655
|
},
|
|
5445
5656
|
|
|
5657
|
+
/**
|
|
5658
|
+
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
5659
|
+
* @private
|
|
5660
|
+
*/
|
|
5661
|
+
parentBorder: {
|
|
5662
|
+
type: Boolean,
|
|
5663
|
+
reflect: true
|
|
5664
|
+
},
|
|
5665
|
+
|
|
5446
5666
|
/**
|
|
5447
5667
|
* If declared, the popover and trigger will be set to the same width.
|
|
5448
5668
|
*/
|
|
@@ -5570,7 +5790,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5570
5790
|
*
|
|
5571
5791
|
*/
|
|
5572
5792
|
static register(name = "auro-dropdown") {
|
|
5573
|
-
AuroLibraryRuntimeUtils$
|
|
5793
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
5574
5794
|
}
|
|
5575
5795
|
|
|
5576
5796
|
/**
|
|
@@ -5906,8 +6126,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5906
6126
|
* @param {Event} event - The event object representing the slot change.
|
|
5907
6127
|
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
5908
6128
|
*/
|
|
5909
|
-
handleDefaultSlot(
|
|
5910
|
-
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
6129
|
+
handleDefaultSlot() {
|
|
5911
6130
|
|
|
5912
6131
|
if (this.onSlotChange) {
|
|
5913
6132
|
this.onSlotChange();
|
|
@@ -5969,6 +6188,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5969
6188
|
${this.chevron || this.common ? html$1`
|
|
5970
6189
|
<div
|
|
5971
6190
|
id="showStateIcon"
|
|
6191
|
+
class="chevron"
|
|
5972
6192
|
part="chevron">
|
|
5973
6193
|
<${this.iconTag}
|
|
5974
6194
|
category="interface"
|
|
@@ -5983,9 +6203,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5983
6203
|
<div class="${classMap(helpTextClasses)}">
|
|
5984
6204
|
<slot name="helpText"></slot>
|
|
5985
6205
|
</div>
|
|
5986
|
-
<div class="slotContent">
|
|
5987
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
5988
|
-
</div>
|
|
5989
6206
|
<div id="bibSizer" part="size"></div>
|
|
5990
6207
|
<${this.dropdownBibTag}
|
|
5991
6208
|
id="bib"
|
|
@@ -5994,6 +6211,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5994
6211
|
?common="${this.common}"
|
|
5995
6212
|
?rounded="${this.common || this.rounded}"
|
|
5996
6213
|
?inset="${this.common || this.inset}">
|
|
6214
|
+
<div class="slotContent">
|
|
6215
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6216
|
+
</div>
|
|
5997
6217
|
</${this.dropdownBibTag}>
|
|
5998
6218
|
</div>
|
|
5999
6219
|
`;
|
|
@@ -6005,67 +6225,63 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6005
6225
|
* @returns {html} - Returns HTML for the classic layout.
|
|
6006
6226
|
*/
|
|
6007
6227
|
renderLayoutClassic() {
|
|
6008
|
-
const helpTextClasses = {
|
|
6009
|
-
'helpText': true,
|
|
6010
|
-
'leftIndent': false,
|
|
6011
|
-
'rightIndent': false
|
|
6012
|
-
};
|
|
6013
6228
|
|
|
6014
6229
|
return html$1`
|
|
6015
|
-
|
|
6230
|
+
<div>
|
|
6231
|
+
<div
|
|
6232
|
+
id="trigger"
|
|
6233
|
+
class="trigger"
|
|
6234
|
+
part="trigger"
|
|
6235
|
+
tabindex="${this.tabIndex}"
|
|
6236
|
+
?showBorder="${this.showTriggerBorders}"
|
|
6237
|
+
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
6238
|
+
aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
6239
|
+
aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
6240
|
+
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
6241
|
+
>
|
|
6242
|
+
<div class="triggerContentWrapper">
|
|
6243
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
6244
|
+
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
6245
|
+
</label>
|
|
6246
|
+
<div class="triggerContent">
|
|
6247
|
+
<slot
|
|
6248
|
+
name="trigger"
|
|
6249
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
6250
|
+
</div>
|
|
6251
|
+
</div>
|
|
6252
|
+
${this.chevron || this.common ? html$1`
|
|
6253
|
+
<div
|
|
6254
|
+
id="showStateIcon"
|
|
6255
|
+
part="chevron">
|
|
6256
|
+
<${this.iconTag}
|
|
6257
|
+
category="interface"
|
|
6258
|
+
name="chevron-down"
|
|
6259
|
+
?onDark="${this.onDark}"
|
|
6260
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
6261
|
+
>
|
|
6262
|
+
</${this.iconTag}>
|
|
6263
|
+
</div>
|
|
6264
|
+
` : undefined }
|
|
6265
|
+
</div>
|
|
6266
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
6267
|
+
<slot name="helpText"></slot>
|
|
6268
|
+
</${this.helpTextTag}>
|
|
6269
|
+
|
|
6270
|
+
<div id="bibSizer" part="size"></div>
|
|
6271
|
+
<${this.dropdownBibTag}
|
|
6272
|
+
id="bib"
|
|
6273
|
+
?data-show="${this.isPopoverVisible}"
|
|
6274
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
6275
|
+
?common="${this.common}"
|
|
6276
|
+
?rounded="${this.common || this.rounded}"
|
|
6277
|
+
?inset="${this.common || this.inset}"
|
|
6278
|
+
>
|
|
6279
|
+
<div class="slotContent">
|
|
6280
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6281
|
+
</div>
|
|
6282
|
+
</${this.dropdownBibTag}>
|
|
6283
|
+
</div>
|
|
6016
6284
|
`;
|
|
6017
|
-
// return html`
|
|
6018
|
-
// <div>
|
|
6019
|
-
// <div
|
|
6020
|
-
// id="trigger"
|
|
6021
|
-
// class="trigger"
|
|
6022
|
-
// part="trigger"
|
|
6023
|
-
// tabindex="${this.tabIndex}"
|
|
6024
|
-
// ?showBorder="${this.showTriggerBorders}"
|
|
6025
|
-
// role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
6026
|
-
// aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
6027
|
-
// aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
6028
|
-
// aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
6029
|
-
// >
|
|
6030
|
-
// <div class="triggerContentWrapper">
|
|
6031
|
-
// <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
6032
|
-
// <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
6033
|
-
// </label>
|
|
6034
|
-
// <div class="triggerContent">
|
|
6035
|
-
// <slot
|
|
6036
|
-
// name="trigger"
|
|
6037
|
-
// @slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
6038
|
-
// </div>
|
|
6039
|
-
// </div>
|
|
6040
|
-
// ${this.chevron || this.common ? html`
|
|
6041
|
-
// <div
|
|
6042
|
-
// id="showStateIcon"
|
|
6043
|
-
// part="chevron">
|
|
6044
|
-
// <${this.iconTag}
|
|
6045
|
-
// category="interface"
|
|
6046
|
-
// name="chevron-down"
|
|
6047
|
-
// ?onDark="${this.onDark}"
|
|
6048
|
-
// variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
6049
|
-
// >
|
|
6050
|
-
// </${this.iconTag}>
|
|
6051
|
-
// </div>
|
|
6052
|
-
// ` : undefined }
|
|
6053
|
-
// </div>
|
|
6054
|
-
// <div class="slotContent">
|
|
6055
|
-
// <slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6056
|
-
// </div>
|
|
6057
|
-
// <div id="bibSizer" part="size"></div>
|
|
6058
|
-
// <${this.dropdownBibTag}
|
|
6059
|
-
// id="bib"
|
|
6060
|
-
// ?data-show="${this.isPopoverVisible}"
|
|
6061
|
-
// ?isfullscreen="${this.isBibFullscreen}"
|
|
6062
|
-
// ?common="${this.common}"
|
|
6063
|
-
// ?rounded="${this.common || this.rounded}"
|
|
6064
|
-
// ?inset="${this.common || this.inset}"
|
|
6065
|
-
// >
|
|
6066
|
-
// </${this.dropdownBibTag}>
|
|
6067
|
-
// </div>
|
|
6068
|
-
// `;
|
|
6069
6285
|
}
|
|
6070
6286
|
|
|
6071
6287
|
/**
|
|
@@ -6145,7 +6361,7 @@ var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
6145
6361
|
|
|
6146
6362
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6147
6363
|
|
|
6148
|
-
class AuroLibraryRuntimeUtils {
|
|
6364
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
6149
6365
|
|
|
6150
6366
|
/* eslint-disable jsdoc/require-param */
|
|
6151
6367
|
|
|
@@ -6206,7 +6422,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
6206
6422
|
|
|
6207
6423
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
6208
6424
|
}
|
|
6209
|
-
}
|
|
6425
|
+
};
|
|
6210
6426
|
|
|
6211
6427
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6212
6428
|
// See LICENSE in the project root for license information.
|
|
@@ -6402,6 +6618,76 @@ var tokensCss = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-def
|
|
|
6402
6618
|
|
|
6403
6619
|
var colorCss$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)}`;
|
|
6404
6620
|
|
|
6621
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6622
|
+
// See LICENSE in the project root for license information.
|
|
6623
|
+
|
|
6624
|
+
// ---------------------------------------------------------------------
|
|
6625
|
+
|
|
6626
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6627
|
+
|
|
6628
|
+
class AuroLibraryRuntimeUtils {
|
|
6629
|
+
|
|
6630
|
+
/* eslint-disable jsdoc/require-param */
|
|
6631
|
+
|
|
6632
|
+
/**
|
|
6633
|
+
* This will register a new custom element with the browser.
|
|
6634
|
+
* @param {String} name - The name of the custom element.
|
|
6635
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
6636
|
+
* @returns {void}
|
|
6637
|
+
*/
|
|
6638
|
+
registerComponent(name, componentClass) {
|
|
6639
|
+
if (!customElements.get(name)) {
|
|
6640
|
+
customElements.define(name, class extends componentClass {});
|
|
6641
|
+
}
|
|
6642
|
+
}
|
|
6643
|
+
|
|
6644
|
+
/**
|
|
6645
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
6646
|
+
* @returns {void}
|
|
6647
|
+
*/
|
|
6648
|
+
closestElement(
|
|
6649
|
+
selector, // selector like in .closest()
|
|
6650
|
+
base = this, // extra functionality to skip a parent
|
|
6651
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
6652
|
+
!el || el === document || el === window
|
|
6653
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
6654
|
+
: found
|
|
6655
|
+
? found // found a selector INside this element
|
|
6656
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6657
|
+
) {
|
|
6658
|
+
return __Closest(base);
|
|
6659
|
+
}
|
|
6660
|
+
/* eslint-enable jsdoc/require-param */
|
|
6661
|
+
|
|
6662
|
+
/**
|
|
6663
|
+
* 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.
|
|
6664
|
+
* @param {Object} elem - The element to check.
|
|
6665
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
6666
|
+
* @returns {void}
|
|
6667
|
+
*/
|
|
6668
|
+
handleComponentTagRename(elem, tagName) {
|
|
6669
|
+
const tag = tagName.toLowerCase();
|
|
6670
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6671
|
+
|
|
6672
|
+
if (elemTag !== tag) {
|
|
6673
|
+
elem.setAttribute(tag, true);
|
|
6674
|
+
}
|
|
6675
|
+
}
|
|
6676
|
+
|
|
6677
|
+
/**
|
|
6678
|
+
* Validates if an element is a specific Auro component.
|
|
6679
|
+
* @param {Object} elem - The element to validate.
|
|
6680
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
6681
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6682
|
+
*/
|
|
6683
|
+
elementMatch(elem, tagName) {
|
|
6684
|
+
const tag = tagName.toLowerCase();
|
|
6685
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6686
|
+
|
|
6687
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
6688
|
+
}
|
|
6689
|
+
}
|
|
6690
|
+
|
|
6405
6691
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6406
6692
|
// See LICENSE in the project root for license information.
|
|
6407
6693
|
|
|
@@ -6600,7 +6886,7 @@ class AuroHeader extends LitElement {
|
|
|
6600
6886
|
/**
|
|
6601
6887
|
* @private
|
|
6602
6888
|
*/
|
|
6603
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
6889
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
6604
6890
|
}
|
|
6605
6891
|
|
|
6606
6892
|
// function to define props used within the scope of this component
|
|
@@ -6630,7 +6916,7 @@ class AuroHeader extends LitElement {
|
|
|
6630
6916
|
*
|
|
6631
6917
|
*/
|
|
6632
6918
|
static register(name = "auro-header") {
|
|
6633
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
|
|
6919
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHeader);
|
|
6634
6920
|
}
|
|
6635
6921
|
|
|
6636
6922
|
firstUpdated() {
|
|
@@ -6726,7 +7012,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
6726
7012
|
|
|
6727
7013
|
this.large = false;
|
|
6728
7014
|
|
|
6729
|
-
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
7015
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
6730
7016
|
|
|
6731
7017
|
const versioning = new AuroDependencyVersioning();
|
|
6732
7018
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
|
|
@@ -6765,7 +7051,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
6765
7051
|
*
|
|
6766
7052
|
*/
|
|
6767
7053
|
static register(name = "auro-bibtemplate") {
|
|
6768
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
|
|
7054
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
|
|
6769
7055
|
}
|
|
6770
7056
|
|
|
6771
7057
|
/**
|
|
@@ -6805,6 +7091,18 @@ class AuroBibtemplate extends LitElement {
|
|
|
6805
7091
|
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
6806
7092
|
}
|
|
6807
7093
|
|
|
7094
|
+
firstUpdated(changedProperties) {
|
|
7095
|
+
super.firstUpdated(changedProperties);
|
|
7096
|
+
|
|
7097
|
+
this.dispatchEvent(new CustomEvent("auro-bibtemplate-connected", {
|
|
7098
|
+
bubbles: true,
|
|
7099
|
+
composed: true,
|
|
7100
|
+
detail: {
|
|
7101
|
+
element: this
|
|
7102
|
+
}
|
|
7103
|
+
}));
|
|
7104
|
+
}
|
|
7105
|
+
|
|
6808
7106
|
// function that renders the HTML and CSS into the scope of the component
|
|
6809
7107
|
render() {
|
|
6810
7108
|
return html$1`
|
|
@@ -6872,7 +7170,7 @@ class AuroCounterWrapper extends LitElement {
|
|
|
6872
7170
|
* AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
|
|
6873
7171
|
*/
|
|
6874
7172
|
static register(name = "auro-counter-wrapper") {
|
|
6875
|
-
AuroLibraryRuntimeUtils$
|
|
7173
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterWrapper);
|
|
6876
7174
|
}
|
|
6877
7175
|
|
|
6878
7176
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -7326,7 +7624,7 @@ class AuroCounterGroup extends LitElement {
|
|
|
7326
7624
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
7327
7625
|
*/
|
|
7328
7626
|
static register(name = "auro-counter-group") {
|
|
7329
|
-
AuroLibraryRuntimeUtils$
|
|
7627
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterGroup);
|
|
7330
7628
|
}
|
|
7331
7629
|
|
|
7332
7630
|
// function that renders the HTML and CSS into the scope of the component
|