@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
|
@@ -103,7 +103,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
103
103
|
|
|
104
104
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
105
105
|
|
|
106
|
-
let AuroLibraryRuntimeUtils$
|
|
106
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
107
107
|
|
|
108
108
|
/* eslint-disable jsdoc/require-param */
|
|
109
109
|
|
|
@@ -204,7 +204,7 @@ class AuroLoader extends i$2 {
|
|
|
204
204
|
/**
|
|
205
205
|
* @private
|
|
206
206
|
*/
|
|
207
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
207
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
208
208
|
|
|
209
209
|
this.orbit = false;
|
|
210
210
|
this.ringworm = false;
|
|
@@ -267,7 +267,7 @@ class AuroLoader extends i$2 {
|
|
|
267
267
|
*
|
|
268
268
|
*/
|
|
269
269
|
static register(name = "auro-loader") {
|
|
270
|
-
AuroLibraryRuntimeUtils$
|
|
270
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroLoader);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
firstUpdated() {
|
|
@@ -571,7 +571,7 @@ class AuroButton extends i$2 {
|
|
|
571
571
|
*
|
|
572
572
|
*/
|
|
573
573
|
static register(name = "auro-button") {
|
|
574
|
-
AuroLibraryRuntimeUtils$
|
|
574
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroButton);
|
|
575
575
|
}
|
|
576
576
|
|
|
577
577
|
/**
|
|
@@ -685,7 +685,7 @@ class AuroCounterButton extends AuroButton {
|
|
|
685
685
|
*
|
|
686
686
|
*/
|
|
687
687
|
static register(name = "auro-counter-button") {
|
|
688
|
-
AuroLibraryRuntimeUtils$
|
|
688
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterButton);
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
|
|
@@ -849,6 +849,76 @@ var tokensCss$4 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
|
|
|
849
849
|
|
|
850
850
|
var colorCss$6 = i$5`: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)}`;
|
|
851
851
|
|
|
852
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
853
|
+
// See LICENSE in the project root for license information.
|
|
854
|
+
|
|
855
|
+
// ---------------------------------------------------------------------
|
|
856
|
+
|
|
857
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
858
|
+
|
|
859
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
860
|
+
|
|
861
|
+
/* eslint-disable jsdoc/require-param */
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* This will register a new custom element with the browser.
|
|
865
|
+
* @param {String} name - The name of the custom element.
|
|
866
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
867
|
+
* @returns {void}
|
|
868
|
+
*/
|
|
869
|
+
registerComponent(name, componentClass) {
|
|
870
|
+
if (!customElements.get(name)) {
|
|
871
|
+
customElements.define(name, class extends componentClass {});
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
877
|
+
* @returns {void}
|
|
878
|
+
*/
|
|
879
|
+
closestElement(
|
|
880
|
+
selector, // selector like in .closest()
|
|
881
|
+
base = this, // extra functionality to skip a parent
|
|
882
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
883
|
+
!el || el === document || el === window
|
|
884
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
885
|
+
: found
|
|
886
|
+
? found // found a selector INside this element
|
|
887
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
888
|
+
) {
|
|
889
|
+
return __Closest(base);
|
|
890
|
+
}
|
|
891
|
+
/* eslint-enable jsdoc/require-param */
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* 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.
|
|
895
|
+
* @param {Object} elem - The element to check.
|
|
896
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
897
|
+
* @returns {void}
|
|
898
|
+
*/
|
|
899
|
+
handleComponentTagRename(elem, tagName) {
|
|
900
|
+
const tag = tagName.toLowerCase();
|
|
901
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
902
|
+
|
|
903
|
+
if (elemTag !== tag) {
|
|
904
|
+
elem.setAttribute(tag, true);
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Validates if an element is a specific Auro component.
|
|
910
|
+
* @param {Object} elem - The element to validate.
|
|
911
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
912
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
913
|
+
*/
|
|
914
|
+
elementMatch(elem, tagName) {
|
|
915
|
+
const tag = tagName.toLowerCase();
|
|
916
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
917
|
+
|
|
918
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
919
|
+
}
|
|
920
|
+
};
|
|
921
|
+
|
|
852
922
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
853
923
|
// See LICENSE in the project root for license information.
|
|
854
924
|
|
|
@@ -868,7 +938,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
868
938
|
*/
|
|
869
939
|
privateDefaults() {
|
|
870
940
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
871
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
941
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
872
942
|
}
|
|
873
943
|
|
|
874
944
|
// function to define props used within the scope of this component
|
|
@@ -950,7 +1020,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
950
1020
|
*
|
|
951
1021
|
*/
|
|
952
1022
|
static register(name = "auro-icon") {
|
|
953
|
-
AuroLibraryRuntimeUtils$
|
|
1023
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroIcon);
|
|
954
1024
|
}
|
|
955
1025
|
|
|
956
1026
|
connectedCallback() {
|
|
@@ -1074,9 +1144,10 @@ class DateFormatter {
|
|
|
1074
1144
|
/**
|
|
1075
1145
|
* Convert a date object to string format.
|
|
1076
1146
|
* @param {Object} date - Date to convert to string.
|
|
1077
|
-
* @
|
|
1147
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
1148
|
+
* @returns {String} Returns the date as a string.
|
|
1078
1149
|
*/
|
|
1079
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
1150
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
1080
1151
|
year: "numeric",
|
|
1081
1152
|
month: "2-digit",
|
|
1082
1153
|
day: "2-digit",
|
|
@@ -1268,7 +1339,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
|
|
|
1268
1339
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
1269
1340
|
|
|
1270
1341
|
// Get the date string of the date object we created from the string date
|
|
1271
|
-
const actualDateStr = dateFormatter.getDateAsString(dateObj);
|
|
1342
|
+
const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
|
|
1272
1343
|
|
|
1273
1344
|
// Guard Clause: Generated date matches date string input
|
|
1274
1345
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -1433,7 +1504,7 @@ const {
|
|
|
1433
1504
|
class AuroFormValidation {
|
|
1434
1505
|
|
|
1435
1506
|
constructor() {
|
|
1436
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
1507
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
1437
1508
|
}
|
|
1438
1509
|
|
|
1439
1510
|
/**
|
|
@@ -1979,7 +2050,7 @@ class AuroCounter extends i$2 {
|
|
|
1979
2050
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
1980
2051
|
*/
|
|
1981
2052
|
static register(name = "auro-counter") {
|
|
1982
|
-
AuroLibraryRuntimeUtils$
|
|
2053
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounter);
|
|
1983
2054
|
}
|
|
1984
2055
|
|
|
1985
2056
|
static get styles() {
|
|
@@ -2165,7 +2236,7 @@ var styleCss$5 = i$5`:host{position:relative;display:block}[slot=trigger],::slot
|
|
|
2165
2236
|
|
|
2166
2237
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2167
2238
|
|
|
2168
|
-
let AuroLibraryRuntimeUtils$
|
|
2239
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
2169
2240
|
|
|
2170
2241
|
/* eslint-disable jsdoc/require-param */
|
|
2171
2242
|
|
|
@@ -2748,10 +2819,11 @@ const flip$1 = function (options) {
|
|
|
2748
2819
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
2749
2820
|
const nextPlacement = placements[nextIndex];
|
|
2750
2821
|
if (nextPlacement) {
|
|
2751
|
-
var _overflowsData$;
|
|
2752
2822
|
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
2753
|
-
|
|
2754
|
-
if
|
|
2823
|
+
if (!ignoreCrossAxisOverflow ||
|
|
2824
|
+
// We leave the current main axis only if every placement on that axis
|
|
2825
|
+
// overflows the main axis.
|
|
2826
|
+
overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
|
|
2755
2827
|
// Try next placement and re-run the lifecycle.
|
|
2756
2828
|
return {
|
|
2757
2829
|
data: {
|
|
@@ -3772,8 +3844,28 @@ class AuroFloatingUI {
|
|
|
3772
3844
|
if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
|
|
3773
3845
|
AuroFloatingUI.isMousePressHandlerInitialized = true;
|
|
3774
3846
|
|
|
3847
|
+
// Track timeout for isMousePressed reset to avoid race conditions
|
|
3848
|
+
if (!AuroFloatingUI._mousePressedTimeout) {
|
|
3849
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
3850
|
+
}
|
|
3775
3851
|
const mouseEventGlobalHandler = (event) => {
|
|
3776
|
-
|
|
3852
|
+
const isPressed = event.type === 'mousedown';
|
|
3853
|
+
if (isPressed) {
|
|
3854
|
+
// Clear any pending timeout to prevent race condition
|
|
3855
|
+
if (AuroFloatingUI._mousePressedTimeout !== null) {
|
|
3856
|
+
clearTimeout(AuroFloatingUI._mousePressedTimeout);
|
|
3857
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
3858
|
+
}
|
|
3859
|
+
if (!AuroFloatingUI.isMousePressed) {
|
|
3860
|
+
AuroFloatingUI.isMousePressed = true;
|
|
3861
|
+
}
|
|
3862
|
+
} else if (AuroFloatingUI.isMousePressed && !isPressed) {
|
|
3863
|
+
// Schedule reset and track timeout ID
|
|
3864
|
+
AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
|
|
3865
|
+
AuroFloatingUI.isMousePressed = false;
|
|
3866
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
3867
|
+
}, 0);
|
|
3868
|
+
}
|
|
3777
3869
|
};
|
|
3778
3870
|
|
|
3779
3871
|
window.addEventListener('mousedown', mouseEventGlobalHandler);
|
|
@@ -3900,6 +3992,7 @@ class AuroFloatingUI {
|
|
|
3900
3992
|
|
|
3901
3993
|
// Compute the position of the bib
|
|
3902
3994
|
computePosition(this.element.trigger, this.element.bib, {
|
|
3995
|
+
strategy: this.element.floaterConfig?.strategy || 'fixed',
|
|
3903
3996
|
placement: this.element.floaterConfig?.placement,
|
|
3904
3997
|
middleware: middleware || []
|
|
3905
3998
|
}).then(({ x, y }) => { // eslint-disable-line id-length
|
|
@@ -4034,8 +4127,9 @@ class AuroFloatingUI {
|
|
|
4034
4127
|
if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
|
|
4035
4128
|
return;
|
|
4036
4129
|
}
|
|
4037
|
-
|
|
4038
|
-
if
|
|
4130
|
+
|
|
4131
|
+
// if fullscreen bib is in fullscreen mode, do not close
|
|
4132
|
+
if (this.element.bib.hasAttribute('isfullscreen')) {
|
|
4039
4133
|
return;
|
|
4040
4134
|
}
|
|
4041
4135
|
|
|
@@ -4336,8 +4430,6 @@ class AuroFloatingUI {
|
|
|
4336
4430
|
this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
|
|
4337
4431
|
}
|
|
4338
4432
|
|
|
4339
|
-
document.body.append(this.element.bib);
|
|
4340
|
-
|
|
4341
4433
|
this.regenerateBibId();
|
|
4342
4434
|
this.handleTriggerTabIndex();
|
|
4343
4435
|
|
|
@@ -4568,6 +4660,76 @@ var tokensCss$2 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
|
|
|
4568
4660
|
|
|
4569
4661
|
var colorCss$3 = i$5`: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)}`;
|
|
4570
4662
|
|
|
4663
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4664
|
+
// See LICENSE in the project root for license information.
|
|
4665
|
+
|
|
4666
|
+
// ---------------------------------------------------------------------
|
|
4667
|
+
|
|
4668
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4669
|
+
|
|
4670
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
4671
|
+
|
|
4672
|
+
/* eslint-disable jsdoc/require-param */
|
|
4673
|
+
|
|
4674
|
+
/**
|
|
4675
|
+
* This will register a new custom element with the browser.
|
|
4676
|
+
* @param {String} name - The name of the custom element.
|
|
4677
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
4678
|
+
* @returns {void}
|
|
4679
|
+
*/
|
|
4680
|
+
registerComponent(name, componentClass) {
|
|
4681
|
+
if (!customElements.get(name)) {
|
|
4682
|
+
customElements.define(name, class extends componentClass {});
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4685
|
+
|
|
4686
|
+
/**
|
|
4687
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
4688
|
+
* @returns {void}
|
|
4689
|
+
*/
|
|
4690
|
+
closestElement(
|
|
4691
|
+
selector, // selector like in .closest()
|
|
4692
|
+
base = this, // extra functionality to skip a parent
|
|
4693
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4694
|
+
!el || el === document || el === window
|
|
4695
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
4696
|
+
: found
|
|
4697
|
+
? found // found a selector INside this element
|
|
4698
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4699
|
+
) {
|
|
4700
|
+
return __Closest(base);
|
|
4701
|
+
}
|
|
4702
|
+
/* eslint-enable jsdoc/require-param */
|
|
4703
|
+
|
|
4704
|
+
/**
|
|
4705
|
+
* 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.
|
|
4706
|
+
* @param {Object} elem - The element to check.
|
|
4707
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4708
|
+
* @returns {void}
|
|
4709
|
+
*/
|
|
4710
|
+
handleComponentTagRename(elem, tagName) {
|
|
4711
|
+
const tag = tagName.toLowerCase();
|
|
4712
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4713
|
+
|
|
4714
|
+
if (elemTag !== tag) {
|
|
4715
|
+
elem.setAttribute(tag, true);
|
|
4716
|
+
}
|
|
4717
|
+
}
|
|
4718
|
+
|
|
4719
|
+
/**
|
|
4720
|
+
* Validates if an element is a specific Auro component.
|
|
4721
|
+
* @param {Object} elem - The element to validate.
|
|
4722
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
4723
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4724
|
+
*/
|
|
4725
|
+
elementMatch(elem, tagName) {
|
|
4726
|
+
const tag = tagName.toLowerCase();
|
|
4727
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4728
|
+
|
|
4729
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
4730
|
+
}
|
|
4731
|
+
};
|
|
4732
|
+
|
|
4571
4733
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4572
4734
|
// See LICENSE in the project root for license information.
|
|
4573
4735
|
|
|
@@ -4587,7 +4749,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4587
4749
|
*/
|
|
4588
4750
|
privateDefaults() {
|
|
4589
4751
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
4590
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
4752
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
4591
4753
|
}
|
|
4592
4754
|
|
|
4593
4755
|
// function to define props used within the scope of this component
|
|
@@ -4669,7 +4831,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4669
4831
|
*
|
|
4670
4832
|
*/
|
|
4671
4833
|
static register(name = "auro-icon") {
|
|
4672
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
4834
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
|
|
4673
4835
|
}
|
|
4674
4836
|
|
|
4675
4837
|
connectedCallback() {
|
|
@@ -4737,7 +4899,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4737
4899
|
|
|
4738
4900
|
var iconVersion$1 = '6.1.2';
|
|
4739
4901
|
|
|
4740
|
-
var styleCss$1$1 = i$5`:host{position:
|
|
4902
|
+
var styleCss$1$1 = i$5`: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}`;
|
|
4741
4903
|
|
|
4742
4904
|
var colorCss$2$1 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
4743
4905
|
|
|
@@ -4747,7 +4909,6 @@ var tokensCss$1 = i$5`:host(:not([ondark])){--ds-auro-dropdown-label-text-color:
|
|
|
4747
4909
|
// See LICENSE in the project root for license information.
|
|
4748
4910
|
|
|
4749
4911
|
|
|
4750
|
-
|
|
4751
4912
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
4752
4913
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
4753
4914
|
'xl',
|
|
@@ -4772,7 +4933,7 @@ class AuroDropdownBib extends i$2 {
|
|
|
4772
4933
|
*/
|
|
4773
4934
|
this._mobileBreakpointValue = undefined;
|
|
4774
4935
|
|
|
4775
|
-
AuroLibraryRuntimeUtils$
|
|
4936
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
4776
4937
|
}
|
|
4777
4938
|
|
|
4778
4939
|
static get styles() {
|
|
@@ -4817,6 +4978,13 @@ class AuroDropdownBib extends i$2 {
|
|
|
4817
4978
|
type: Boolean,
|
|
4818
4979
|
reflect: true
|
|
4819
4980
|
},
|
|
4981
|
+
|
|
4982
|
+
/**
|
|
4983
|
+
* A reference to the associated bib template element.
|
|
4984
|
+
*/
|
|
4985
|
+
bibTemplate: {
|
|
4986
|
+
type: Object
|
|
4987
|
+
}
|
|
4820
4988
|
};
|
|
4821
4989
|
}
|
|
4822
4990
|
|
|
@@ -4849,9 +5017,50 @@ class AuroDropdownBib extends i$2 {
|
|
|
4849
5017
|
}
|
|
4850
5018
|
}
|
|
4851
5019
|
});
|
|
5020
|
+
|
|
5021
|
+
if (this.bibTemplate) {
|
|
5022
|
+
// If the bib template is found, set the fullscreen attribute
|
|
5023
|
+
if (this.isFullscreen) {
|
|
5024
|
+
this.bibTemplate.setAttribute('isFullscreen', 'true');
|
|
5025
|
+
} else {
|
|
5026
|
+
this.bibTemplate.removeAttribute('isFullscreen');
|
|
5027
|
+
}
|
|
5028
|
+
}
|
|
4852
5029
|
}
|
|
4853
5030
|
}
|
|
4854
5031
|
|
|
5032
|
+
connectedCallback() {
|
|
5033
|
+
super.connectedCallback();
|
|
5034
|
+
|
|
5035
|
+
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
5036
|
+
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
5037
|
+
const bibTemplate = event.detail.element;
|
|
5038
|
+
this.bibTemplate = bibTemplate;
|
|
5039
|
+
|
|
5040
|
+
if (bibTemplate) {
|
|
5041
|
+
// If the bib template is found, set the fullscreen attribute
|
|
5042
|
+
if (this.isFullscreen) {
|
|
5043
|
+
bibTemplate.setAttribute('isFullscreen', 'true');
|
|
5044
|
+
} else {
|
|
5045
|
+
bibTemplate.removeAttribute('isFullscreen');
|
|
5046
|
+
}
|
|
5047
|
+
}
|
|
5048
|
+
});
|
|
5049
|
+
}
|
|
5050
|
+
|
|
5051
|
+
firstUpdated(changedProperties) {
|
|
5052
|
+
super.firstUpdated(changedProperties);
|
|
5053
|
+
|
|
5054
|
+
// Dispatch a custom event when the component is connected
|
|
5055
|
+
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
5056
|
+
bubbles: true,
|
|
5057
|
+
composed: true,
|
|
5058
|
+
detail: {
|
|
5059
|
+
element: this
|
|
5060
|
+
}
|
|
5061
|
+
}));
|
|
5062
|
+
}
|
|
5063
|
+
|
|
4855
5064
|
// function that renders the HTML and CSS into the scope of the component
|
|
4856
5065
|
render() {
|
|
4857
5066
|
return u`
|
|
@@ -4864,7 +5073,7 @@ class AuroDropdownBib extends i$2 {
|
|
|
4864
5073
|
|
|
4865
5074
|
var dropdownVersion$1 = '3.0.0';
|
|
4866
5075
|
|
|
4867
|
-
var shapeSizeCss = i$5`.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:
|
|
5076
|
+
var shapeSizeCss = i$5`.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}`;
|
|
4868
5077
|
|
|
4869
5078
|
var colorCss$1$1 = i$5`: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)}`;
|
|
4870
5079
|
|
|
@@ -4872,9 +5081,9 @@ var classicColorCss = i$5`:host([layout*=classic]) .label{color:var(--ds-auro-dr
|
|
|
4872
5081
|
|
|
4873
5082
|
var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .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)}`;
|
|
4874
5083
|
|
|
4875
|
-
var styleEmphasizedCss = i$5`:host{display:block}.wrapper{display:flex;flex-direction:
|
|
5084
|
+
var styleEmphasizedCss = i$5`: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))}`;
|
|
4876
5085
|
|
|
4877
|
-
var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direction:
|
|
5086
|
+
var styleSnowflakeCss = i$5`: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)}`;
|
|
4878
5087
|
|
|
4879
5088
|
var colorCss$4 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
4880
5089
|
|
|
@@ -4889,7 +5098,7 @@ var tokensCss$3 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
4889
5098
|
|
|
4890
5099
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4891
5100
|
|
|
4892
|
-
let AuroLibraryRuntimeUtils$
|
|
5101
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4893
5102
|
|
|
4894
5103
|
/* eslint-disable jsdoc/require-param */
|
|
4895
5104
|
|
|
@@ -4970,7 +5179,7 @@ class AuroHelpText extends i$2 {
|
|
|
4970
5179
|
this.onDark = false;
|
|
4971
5180
|
this.hasTextContent = false;
|
|
4972
5181
|
|
|
4973
|
-
AuroLibraryRuntimeUtils$
|
|
5182
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
4974
5183
|
}
|
|
4975
5184
|
|
|
4976
5185
|
static get styles() {
|
|
@@ -5026,7 +5235,7 @@ class AuroHelpText extends i$2 {
|
|
|
5026
5235
|
*
|
|
5027
5236
|
*/
|
|
5028
5237
|
static register(name = "auro-helptext") {
|
|
5029
|
-
AuroLibraryRuntimeUtils$
|
|
5238
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
5030
5239
|
}
|
|
5031
5240
|
|
|
5032
5241
|
updated() {
|
|
@@ -5208,6 +5417,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5208
5417
|
this.layout = 'classic';
|
|
5209
5418
|
this.shape = 'rounded';
|
|
5210
5419
|
this.size = 'xl';
|
|
5420
|
+
this.parentBorder = false;
|
|
5211
5421
|
|
|
5212
5422
|
this.privateDefaults();
|
|
5213
5423
|
}
|
|
@@ -5223,7 +5433,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5223
5433
|
'trigger': true,
|
|
5224
5434
|
'wrapper': true,
|
|
5225
5435
|
'hasFocus': this.hasFocus,
|
|
5226
|
-
'simple': this.simple
|
|
5436
|
+
'simple': this.simple,
|
|
5437
|
+
'parentBorder': this.parentBorder
|
|
5227
5438
|
};
|
|
5228
5439
|
}
|
|
5229
5440
|
|
|
@@ -5275,7 +5486,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5275
5486
|
/**
|
|
5276
5487
|
* @private
|
|
5277
5488
|
*/
|
|
5278
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
5489
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
5279
5490
|
|
|
5280
5491
|
/**
|
|
5281
5492
|
* @private
|
|
@@ -5490,6 +5701,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5490
5701
|
reflect: true
|
|
5491
5702
|
},
|
|
5492
5703
|
|
|
5704
|
+
/**
|
|
5705
|
+
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
5706
|
+
* @private
|
|
5707
|
+
*/
|
|
5708
|
+
parentBorder: {
|
|
5709
|
+
type: Boolean,
|
|
5710
|
+
reflect: true
|
|
5711
|
+
},
|
|
5712
|
+
|
|
5493
5713
|
/**
|
|
5494
5714
|
* If declared, the popover and trigger will be set to the same width.
|
|
5495
5715
|
*/
|
|
@@ -5617,7 +5837,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5617
5837
|
*
|
|
5618
5838
|
*/
|
|
5619
5839
|
static register(name = "auro-dropdown") {
|
|
5620
|
-
AuroLibraryRuntimeUtils$
|
|
5840
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
5621
5841
|
}
|
|
5622
5842
|
|
|
5623
5843
|
/**
|
|
@@ -5953,8 +6173,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5953
6173
|
* @param {Event} event - The event object representing the slot change.
|
|
5954
6174
|
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
5955
6175
|
*/
|
|
5956
|
-
handleDefaultSlot(
|
|
5957
|
-
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
6176
|
+
handleDefaultSlot() {
|
|
5958
6177
|
|
|
5959
6178
|
if (this.onSlotChange) {
|
|
5960
6179
|
this.onSlotChange();
|
|
@@ -6016,6 +6235,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6016
6235
|
${this.chevron || this.common ? u`
|
|
6017
6236
|
<div
|
|
6018
6237
|
id="showStateIcon"
|
|
6238
|
+
class="chevron"
|
|
6019
6239
|
part="chevron">
|
|
6020
6240
|
<${this.iconTag}
|
|
6021
6241
|
category="interface"
|
|
@@ -6030,9 +6250,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6030
6250
|
<div class="${e(helpTextClasses)}">
|
|
6031
6251
|
<slot name="helpText"></slot>
|
|
6032
6252
|
</div>
|
|
6033
|
-
<div class="slotContent">
|
|
6034
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6035
|
-
</div>
|
|
6036
6253
|
<div id="bibSizer" part="size"></div>
|
|
6037
6254
|
<${this.dropdownBibTag}
|
|
6038
6255
|
id="bib"
|
|
@@ -6041,6 +6258,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6041
6258
|
?common="${this.common}"
|
|
6042
6259
|
?rounded="${this.common || this.rounded}"
|
|
6043
6260
|
?inset="${this.common || this.inset}">
|
|
6261
|
+
<div class="slotContent">
|
|
6262
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6263
|
+
</div>
|
|
6044
6264
|
</${this.dropdownBibTag}>
|
|
6045
6265
|
</div>
|
|
6046
6266
|
`;
|
|
@@ -6052,67 +6272,63 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6052
6272
|
* @returns {html} - Returns HTML for the classic layout.
|
|
6053
6273
|
*/
|
|
6054
6274
|
renderLayoutClassic() {
|
|
6055
|
-
const helpTextClasses = {
|
|
6056
|
-
'helpText': true,
|
|
6057
|
-
'leftIndent': false,
|
|
6058
|
-
'rightIndent': false
|
|
6059
|
-
};
|
|
6060
6275
|
|
|
6061
6276
|
return u`
|
|
6062
|
-
|
|
6277
|
+
<div>
|
|
6278
|
+
<div
|
|
6279
|
+
id="trigger"
|
|
6280
|
+
class="trigger"
|
|
6281
|
+
part="trigger"
|
|
6282
|
+
tabindex="${this.tabIndex}"
|
|
6283
|
+
?showBorder="${this.showTriggerBorders}"
|
|
6284
|
+
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
6285
|
+
aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
6286
|
+
aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
6287
|
+
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
6288
|
+
>
|
|
6289
|
+
<div class="triggerContentWrapper">
|
|
6290
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
6291
|
+
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
6292
|
+
</label>
|
|
6293
|
+
<div class="triggerContent">
|
|
6294
|
+
<slot
|
|
6295
|
+
name="trigger"
|
|
6296
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
6297
|
+
</div>
|
|
6298
|
+
</div>
|
|
6299
|
+
${this.chevron || this.common ? u`
|
|
6300
|
+
<div
|
|
6301
|
+
id="showStateIcon"
|
|
6302
|
+
part="chevron">
|
|
6303
|
+
<${this.iconTag}
|
|
6304
|
+
category="interface"
|
|
6305
|
+
name="chevron-down"
|
|
6306
|
+
?onDark="${this.onDark}"
|
|
6307
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
6308
|
+
>
|
|
6309
|
+
</${this.iconTag}>
|
|
6310
|
+
</div>
|
|
6311
|
+
` : undefined }
|
|
6312
|
+
</div>
|
|
6313
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
6314
|
+
<slot name="helpText"></slot>
|
|
6315
|
+
</${this.helpTextTag}>
|
|
6316
|
+
|
|
6317
|
+
<div id="bibSizer" part="size"></div>
|
|
6318
|
+
<${this.dropdownBibTag}
|
|
6319
|
+
id="bib"
|
|
6320
|
+
?data-show="${this.isPopoverVisible}"
|
|
6321
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
6322
|
+
?common="${this.common}"
|
|
6323
|
+
?rounded="${this.common || this.rounded}"
|
|
6324
|
+
?inset="${this.common || this.inset}"
|
|
6325
|
+
>
|
|
6326
|
+
<div class="slotContent">
|
|
6327
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6328
|
+
</div>
|
|
6329
|
+
</${this.dropdownBibTag}>
|
|
6330
|
+
</div>
|
|
6063
6331
|
`;
|
|
6064
|
-
// return html`
|
|
6065
|
-
// <div>
|
|
6066
|
-
// <div
|
|
6067
|
-
// id="trigger"
|
|
6068
|
-
// class="trigger"
|
|
6069
|
-
// part="trigger"
|
|
6070
|
-
// tabindex="${this.tabIndex}"
|
|
6071
|
-
// ?showBorder="${this.showTriggerBorders}"
|
|
6072
|
-
// role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
6073
|
-
// aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
6074
|
-
// aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
6075
|
-
// aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
6076
|
-
// >
|
|
6077
|
-
// <div class="triggerContentWrapper">
|
|
6078
|
-
// <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
6079
|
-
// <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
6080
|
-
// </label>
|
|
6081
|
-
// <div class="triggerContent">
|
|
6082
|
-
// <slot
|
|
6083
|
-
// name="trigger"
|
|
6084
|
-
// @slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
6085
|
-
// </div>
|
|
6086
|
-
// </div>
|
|
6087
|
-
// ${this.chevron || this.common ? html`
|
|
6088
|
-
// <div
|
|
6089
|
-
// id="showStateIcon"
|
|
6090
|
-
// part="chevron">
|
|
6091
|
-
// <${this.iconTag}
|
|
6092
|
-
// category="interface"
|
|
6093
|
-
// name="chevron-down"
|
|
6094
|
-
// ?onDark="${this.onDark}"
|
|
6095
|
-
// variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
6096
|
-
// >
|
|
6097
|
-
// </${this.iconTag}>
|
|
6098
|
-
// </div>
|
|
6099
|
-
// ` : undefined }
|
|
6100
|
-
// </div>
|
|
6101
|
-
// <div class="slotContent">
|
|
6102
|
-
// <slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6103
|
-
// </div>
|
|
6104
|
-
// <div id="bibSizer" part="size"></div>
|
|
6105
|
-
// <${this.dropdownBibTag}
|
|
6106
|
-
// id="bib"
|
|
6107
|
-
// ?data-show="${this.isPopoverVisible}"
|
|
6108
|
-
// ?isfullscreen="${this.isBibFullscreen}"
|
|
6109
|
-
// ?common="${this.common}"
|
|
6110
|
-
// ?rounded="${this.common || this.rounded}"
|
|
6111
|
-
// ?inset="${this.common || this.inset}"
|
|
6112
|
-
// >
|
|
6113
|
-
// </${this.dropdownBibTag}>
|
|
6114
|
-
// </div>
|
|
6115
|
-
// `;
|
|
6116
6332
|
}
|
|
6117
6333
|
|
|
6118
6334
|
/**
|
|
@@ -6192,7 +6408,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
6192
6408
|
|
|
6193
6409
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6194
6410
|
|
|
6195
|
-
class AuroLibraryRuntimeUtils {
|
|
6411
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
6196
6412
|
|
|
6197
6413
|
/* eslint-disable jsdoc/require-param */
|
|
6198
6414
|
|
|
@@ -6253,7 +6469,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
6253
6469
|
|
|
6254
6470
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
6255
6471
|
}
|
|
6256
|
-
}
|
|
6472
|
+
};
|
|
6257
6473
|
|
|
6258
6474
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6259
6475
|
// See LICENSE in the project root for license information.
|
|
@@ -6449,6 +6665,76 @@ var tokensCss = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-def
|
|
|
6449
6665
|
|
|
6450
6666
|
var colorCss$2 = i$5`: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)}`;
|
|
6451
6667
|
|
|
6668
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6669
|
+
// See LICENSE in the project root for license information.
|
|
6670
|
+
|
|
6671
|
+
// ---------------------------------------------------------------------
|
|
6672
|
+
|
|
6673
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6674
|
+
|
|
6675
|
+
class AuroLibraryRuntimeUtils {
|
|
6676
|
+
|
|
6677
|
+
/* eslint-disable jsdoc/require-param */
|
|
6678
|
+
|
|
6679
|
+
/**
|
|
6680
|
+
* This will register a new custom element with the browser.
|
|
6681
|
+
* @param {String} name - The name of the custom element.
|
|
6682
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
6683
|
+
* @returns {void}
|
|
6684
|
+
*/
|
|
6685
|
+
registerComponent(name, componentClass) {
|
|
6686
|
+
if (!customElements.get(name)) {
|
|
6687
|
+
customElements.define(name, class extends componentClass {});
|
|
6688
|
+
}
|
|
6689
|
+
}
|
|
6690
|
+
|
|
6691
|
+
/**
|
|
6692
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
6693
|
+
* @returns {void}
|
|
6694
|
+
*/
|
|
6695
|
+
closestElement(
|
|
6696
|
+
selector, // selector like in .closest()
|
|
6697
|
+
base = this, // extra functionality to skip a parent
|
|
6698
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
6699
|
+
!el || el === document || el === window
|
|
6700
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
6701
|
+
: found
|
|
6702
|
+
? found // found a selector INside this element
|
|
6703
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6704
|
+
) {
|
|
6705
|
+
return __Closest(base);
|
|
6706
|
+
}
|
|
6707
|
+
/* eslint-enable jsdoc/require-param */
|
|
6708
|
+
|
|
6709
|
+
/**
|
|
6710
|
+
* 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.
|
|
6711
|
+
* @param {Object} elem - The element to check.
|
|
6712
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
6713
|
+
* @returns {void}
|
|
6714
|
+
*/
|
|
6715
|
+
handleComponentTagRename(elem, tagName) {
|
|
6716
|
+
const tag = tagName.toLowerCase();
|
|
6717
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6718
|
+
|
|
6719
|
+
if (elemTag !== tag) {
|
|
6720
|
+
elem.setAttribute(tag, true);
|
|
6721
|
+
}
|
|
6722
|
+
}
|
|
6723
|
+
|
|
6724
|
+
/**
|
|
6725
|
+
* Validates if an element is a specific Auro component.
|
|
6726
|
+
* @param {Object} elem - The element to validate.
|
|
6727
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
6728
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6729
|
+
*/
|
|
6730
|
+
elementMatch(elem, tagName) {
|
|
6731
|
+
const tag = tagName.toLowerCase();
|
|
6732
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6733
|
+
|
|
6734
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
6735
|
+
}
|
|
6736
|
+
}
|
|
6737
|
+
|
|
6452
6738
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6453
6739
|
// See LICENSE in the project root for license information.
|
|
6454
6740
|
|
|
@@ -6647,7 +6933,7 @@ class AuroHeader extends i$2 {
|
|
|
6647
6933
|
/**
|
|
6648
6934
|
* @private
|
|
6649
6935
|
*/
|
|
6650
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
6936
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
6651
6937
|
}
|
|
6652
6938
|
|
|
6653
6939
|
// function to define props used within the scope of this component
|
|
@@ -6677,7 +6963,7 @@ class AuroHeader extends i$2 {
|
|
|
6677
6963
|
*
|
|
6678
6964
|
*/
|
|
6679
6965
|
static register(name = "auro-header") {
|
|
6680
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
|
|
6966
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHeader);
|
|
6681
6967
|
}
|
|
6682
6968
|
|
|
6683
6969
|
firstUpdated() {
|
|
@@ -6773,7 +7059,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
6773
7059
|
|
|
6774
7060
|
this.large = false;
|
|
6775
7061
|
|
|
6776
|
-
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
7062
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
6777
7063
|
|
|
6778
7064
|
const versioning = new AuroDependencyVersioning();
|
|
6779
7065
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
|
|
@@ -6812,7 +7098,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
6812
7098
|
*
|
|
6813
7099
|
*/
|
|
6814
7100
|
static register(name = "auro-bibtemplate") {
|
|
6815
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
|
|
7101
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
|
|
6816
7102
|
}
|
|
6817
7103
|
|
|
6818
7104
|
/**
|
|
@@ -6852,6 +7138,18 @@ class AuroBibtemplate extends i$2 {
|
|
|
6852
7138
|
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
6853
7139
|
}
|
|
6854
7140
|
|
|
7141
|
+
firstUpdated(changedProperties) {
|
|
7142
|
+
super.firstUpdated(changedProperties);
|
|
7143
|
+
|
|
7144
|
+
this.dispatchEvent(new CustomEvent("auro-bibtemplate-connected", {
|
|
7145
|
+
bubbles: true,
|
|
7146
|
+
composed: true,
|
|
7147
|
+
detail: {
|
|
7148
|
+
element: this
|
|
7149
|
+
}
|
|
7150
|
+
}));
|
|
7151
|
+
}
|
|
7152
|
+
|
|
6855
7153
|
// function that renders the HTML and CSS into the scope of the component
|
|
6856
7154
|
render() {
|
|
6857
7155
|
return u`
|
|
@@ -6919,7 +7217,7 @@ class AuroCounterWrapper extends i$2 {
|
|
|
6919
7217
|
* AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
|
|
6920
7218
|
*/
|
|
6921
7219
|
static register(name = "auro-counter-wrapper") {
|
|
6922
|
-
AuroLibraryRuntimeUtils$
|
|
7220
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterWrapper);
|
|
6923
7221
|
}
|
|
6924
7222
|
|
|
6925
7223
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -7373,7 +7671,7 @@ class AuroCounterGroup extends i$2 {
|
|
|
7373
7671
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
7374
7672
|
*/
|
|
7375
7673
|
static register(name = "auro-counter-group") {
|
|
7376
|
-
AuroLibraryRuntimeUtils$
|
|
7674
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterGroup);
|
|
7377
7675
|
}
|
|
7378
7676
|
|
|
7379
7677
|
// function that renders the HTML and CSS into the scope of the component
|