@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.1 → 0.0.0-pr624.10
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.md +30 -29
- package/components/combobox/demo/api.min.js +598 -428
- package/components/combobox/demo/index.html +0 -1
- package/components/combobox/demo/index.md +43 -0
- package/components/combobox/demo/index.min.js +596 -426
- package/components/combobox/dist/auro-combobox.d.ts +13 -18
- package/components/combobox/dist/index.js +458 -273
- package/components/combobox/dist/registered.js +458 -273
- package/components/counter/demo/api.min.js +377 -62
- package/components/counter/demo/index.min.js +377 -62
- package/components/counter/dist/index.js +377 -62
- package/components/counter/dist/registered.js +377 -62
- package/components/datepicker/demo/api.md +13 -5
- package/components/datepicker/demo/api.min.js +847 -324
- package/components/datepicker/demo/index.md +13 -0
- package/components/datepicker/demo/index.min.js +847 -324
- package/components/datepicker/dist/auro-datepicker.d.ts +21 -2
- package/components/datepicker/dist/index.js +677 -154
- package/components/datepicker/dist/registered.js +677 -154
- package/components/dropdown/demo/api.md +2 -2
- package/components/dropdown/demo/api.min.js +199 -37
- package/components/dropdown/demo/index.md +45 -0
- package/components/dropdown/demo/index.min.js +199 -37
- package/components/dropdown/dist/auro-dropdown.d.ts +10 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +8 -0
- package/components/dropdown/dist/index.js +199 -37
- package/components/dropdown/dist/registered.js +199 -37
- package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/demo/api.md +53 -49
- package/components/input/demo/api.min.js +121 -27
- package/components/input/demo/index.min.js +121 -27
- package/components/input/dist/auro-input.d.ts +22 -14
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +121 -27
- package/components/input/dist/registered.js +121 -27
- package/components/layoutElement/dist/index.d.ts +1 -0
- package/components/layoutElement/dist/index.js +95 -1
- package/components/menu/demo/api.md +11 -11
- package/components/menu/demo/api.min.js +115 -130
- package/components/menu/demo/index.min.js +115 -130
- package/components/menu/dist/auro-menu-utils.d.ts +0 -8
- package/components/menu/dist/auro-menu.d.ts +3 -8
- package/components/menu/dist/index.d.ts +1 -1
- package/components/menu/dist/index.js +116 -90
- package/components/menu/dist/registered.js +115 -130
- 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.js +2 -0
- package/components/select/demo/api.md +108 -42
- package/components/select/demo/api.min.js +1264 -352
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +298 -777
- package/components/select/demo/index.min.js +1251 -351
- package/components/select/dist/auro-select.d.ts +110 -18
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +1105 -190
- package/components/select/dist/registered.js +1105 -190
- 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 → datepicker}/dist/styles/default/color-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/emphasized}/style-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
- /package/components/dropdown/dist/styles/{style-css.d.ts → classic/bibStyles-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
|
|
|
@@ -4480,7 +4572,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
4480
4572
|
return _fetchMap$1.get(uri);
|
|
4481
4573
|
};
|
|
4482
4574
|
|
|
4483
|
-
var styleCss$
|
|
4575
|
+
var styleCss$2$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
4484
4576
|
|
|
4485
4577
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4486
4578
|
// See LICENSE in the project root for license information.
|
|
@@ -4523,7 +4615,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
4523
4615
|
|
|
4524
4616
|
static get styles() {
|
|
4525
4617
|
return i$5`
|
|
4526
|
-
${styleCss$
|
|
4618
|
+
${styleCss$2$1}
|
|
4527
4619
|
`;
|
|
4528
4620
|
}
|
|
4529
4621
|
|
|
@@ -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
|
|
@@ -4655,7 +4817,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4655
4817
|
return [
|
|
4656
4818
|
super.styles,
|
|
4657
4819
|
i$5`${tokensCss$2}`,
|
|
4658
|
-
i$5`${styleCss$
|
|
4820
|
+
i$5`${styleCss$2$1}`,
|
|
4659
4821
|
i$5`${colorCss$3}`
|
|
4660
4822
|
];
|
|
4661
4823
|
}
|
|
@@ -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$
|
|
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,12 +4933,12 @@ 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() {
|
|
4779
4940
|
return [
|
|
4780
|
-
styleCss$
|
|
4941
|
+
styleCss$1$1,
|
|
4781
4942
|
colorCss$2$1,
|
|
4782
4943
|
tokensCss$1
|
|
4783
4944
|
];
|
|
@@ -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,15 +5073,17 @@ class AuroDropdownBib extends i$2 {
|
|
|
4864
5073
|
|
|
4865
5074
|
var dropdownVersion$1 = '3.0.0';
|
|
4866
5075
|
|
|
4867
|
-
var shapeSizeCss = i$5`.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:
|
|
4868
|
-
|
|
4869
|
-
var styleCss$1$1 = i$5`:host([layout*=classic]){position:relative;display:inline-block;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{position:relative;display:flex;align-items:center}:host([layout*=classic]) .trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@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)}`;
|
|
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}`;
|
|
4870
5077
|
|
|
4871
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)}`;
|
|
4872
5079
|
|
|
4873
|
-
var
|
|
5080
|
+
var classicColorCss = i$5`:host([layout*=classic]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}:host([layout*=classic]) .trigger:focus-within,:host([layout*=classic]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([layout*=classic])[common],:host([layout*=classic])[bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67)}:host([layout*=classic])[common] .trigger:active,:host([layout*=classic])[common] .trigger:focus-within,:host([layout*=classic])[bordered] .trigger:active,:host([layout*=classic])[bordered] .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[error]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic])[error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[error] .trigger:focus-within,:host([layout*=classic])[error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[disabled][common],:host([layout*=classic])[disabled][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic])[onDark]{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([layout*=classic])[onDark]:focus-within,:host([layout*=classic])[onDark]:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled]{--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([layout*=classic])[onDark][common],:host([layout*=classic])[onDark][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic])[onDark][common] .trigger:focus-within,:host([layout*=classic])[onDark][common] .trigger:active,:host([layout*=classic])[onDark][bordered] .trigger:focus-within,:host([layout*=classic])[onDark][bordered] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][error]{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic])[onDark][error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[onDark][error] .trigger:focus-within,:host([layout*=classic])[onDark][error] .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic])[onDark][disabled][common],:host([layout*=classic])[onDark][disabled][bordered]{--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
|
|
5081
|
+
|
|
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)}`;
|
|
5083
|
+
|
|
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{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
4874
5085
|
|
|
4875
|
-
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:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;width:100%;flex:1;align-items:center;justify-content:center}.triggerContent{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
4876
5087
|
|
|
4877
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)}`;
|
|
4878
5089
|
|
|
@@ -4887,7 +5098,7 @@ var tokensCss$3 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
4887
5098
|
|
|
4888
5099
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4889
5100
|
|
|
4890
|
-
let AuroLibraryRuntimeUtils$
|
|
5101
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4891
5102
|
|
|
4892
5103
|
/* eslint-disable jsdoc/require-param */
|
|
4893
5104
|
|
|
@@ -4968,7 +5179,7 @@ class AuroHelpText extends i$2 {
|
|
|
4968
5179
|
this.onDark = false;
|
|
4969
5180
|
this.hasTextContent = false;
|
|
4970
5181
|
|
|
4971
|
-
AuroLibraryRuntimeUtils$
|
|
5182
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
4972
5183
|
}
|
|
4973
5184
|
|
|
4974
5185
|
static get styles() {
|
|
@@ -5024,7 +5235,7 @@ class AuroHelpText extends i$2 {
|
|
|
5024
5235
|
*
|
|
5025
5236
|
*/
|
|
5026
5237
|
static register(name = "auro-helptext") {
|
|
5027
|
-
AuroLibraryRuntimeUtils$
|
|
5238
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
5028
5239
|
}
|
|
5029
5240
|
|
|
5030
5241
|
updated() {
|
|
@@ -5200,12 +5411,13 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5200
5411
|
this.matchWidth = false;
|
|
5201
5412
|
this.noHideOnThisFocusLoss = false;
|
|
5202
5413
|
|
|
5203
|
-
this.errorMessage = ''; // TODO
|
|
5414
|
+
this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
|
|
5204
5415
|
|
|
5205
5416
|
// Layout Config
|
|
5206
|
-
this.layout = '
|
|
5417
|
+
this.layout = 'classic';
|
|
5207
5418
|
this.shape = 'rounded';
|
|
5208
5419
|
this.size = 'xl';
|
|
5420
|
+
this.parentBorder = false;
|
|
5209
5421
|
|
|
5210
5422
|
this.privateDefaults();
|
|
5211
5423
|
}
|
|
@@ -5221,7 +5433,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5221
5433
|
'trigger': true,
|
|
5222
5434
|
'wrapper': true,
|
|
5223
5435
|
'hasFocus': this.hasFocus,
|
|
5224
|
-
'simple': this.simple
|
|
5436
|
+
'simple': this.simple,
|
|
5437
|
+
'parentBorder': this.parentBorder
|
|
5225
5438
|
};
|
|
5226
5439
|
}
|
|
5227
5440
|
|
|
@@ -5273,7 +5486,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5273
5486
|
/**
|
|
5274
5487
|
* @private
|
|
5275
5488
|
*/
|
|
5276
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
5489
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
5277
5490
|
|
|
5278
5491
|
/**
|
|
5279
5492
|
* @private
|
|
@@ -5488,6 +5701,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5488
5701
|
reflect: true
|
|
5489
5702
|
},
|
|
5490
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
|
+
|
|
5491
5713
|
/**
|
|
5492
5714
|
* If declared, the popover and trigger will be set to the same width.
|
|
5493
5715
|
*/
|
|
@@ -5590,10 +5812,18 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5590
5812
|
static get styles() {
|
|
5591
5813
|
return [
|
|
5592
5814
|
colorCss$1$1,
|
|
5593
|
-
styleCss$1$1,
|
|
5594
5815
|
tokensCss$1,
|
|
5816
|
+
|
|
5817
|
+
// default layout
|
|
5818
|
+
classicColorCss,
|
|
5819
|
+
classicLayoutCss,
|
|
5820
|
+
|
|
5821
|
+
// emphasized layout
|
|
5595
5822
|
styleEmphasizedCss,
|
|
5823
|
+
|
|
5824
|
+
// snowflake layout
|
|
5596
5825
|
styleSnowflakeCss,
|
|
5826
|
+
|
|
5597
5827
|
shapeSizeCss
|
|
5598
5828
|
];
|
|
5599
5829
|
}
|
|
@@ -5607,7 +5837,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5607
5837
|
*
|
|
5608
5838
|
*/
|
|
5609
5839
|
static register(name = "auro-dropdown") {
|
|
5610
|
-
AuroLibraryRuntimeUtils$
|
|
5840
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
5611
5841
|
}
|
|
5612
5842
|
|
|
5613
5843
|
/**
|
|
@@ -5940,11 +6170,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5940
6170
|
*
|
|
5941
6171
|
* @private
|
|
5942
6172
|
* @method handleDefaultSlot
|
|
5943
|
-
* @param {Event} event - The event object representing the slot change.
|
|
5944
6173
|
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
5945
6174
|
*/
|
|
5946
|
-
handleDefaultSlot(
|
|
5947
|
-
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
6175
|
+
handleDefaultSlot() {
|
|
5948
6176
|
|
|
5949
6177
|
if (this.onSlotChange) {
|
|
5950
6178
|
this.onSlotChange();
|
|
@@ -5987,7 +6215,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5987
6215
|
id="trigger"
|
|
5988
6216
|
class="${e(this.commonWrapperClasses)}" part="wrapper"
|
|
5989
6217
|
tabindex="${this.tabIndex}"
|
|
5990
|
-
?showBorder="${this.showTriggerBorders}"
|
|
5991
6218
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
5992
6219
|
aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
5993
6220
|
aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -6007,6 +6234,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6007
6234
|
${this.chevron || this.common ? u`
|
|
6008
6235
|
<div
|
|
6009
6236
|
id="showStateIcon"
|
|
6237
|
+
class="chevron"
|
|
6010
6238
|
part="chevron">
|
|
6011
6239
|
<${this.iconTag}
|
|
6012
6240
|
category="interface"
|
|
@@ -6021,9 +6249,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6021
6249
|
<div class="${e(helpTextClasses)}">
|
|
6022
6250
|
<slot name="helpText"></slot>
|
|
6023
6251
|
</div>
|
|
6024
|
-
<div class="slotContent">
|
|
6025
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6026
|
-
</div>
|
|
6027
6252
|
<div id="bibSizer" part="size"></div>
|
|
6028
6253
|
<${this.dropdownBibTag}
|
|
6029
6254
|
id="bib"
|
|
@@ -6032,6 +6257,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6032
6257
|
?common="${this.common}"
|
|
6033
6258
|
?rounded="${this.common || this.rounded}"
|
|
6034
6259
|
?inset="${this.common || this.inset}">
|
|
6260
|
+
<div class="slotContent">
|
|
6261
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6262
|
+
</div>
|
|
6035
6263
|
</${this.dropdownBibTag}>
|
|
6036
6264
|
</div>
|
|
6037
6265
|
`;
|
|
@@ -6043,6 +6271,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6043
6271
|
* @returns {html} - Returns HTML for the classic layout.
|
|
6044
6272
|
*/
|
|
6045
6273
|
renderLayoutClassic() {
|
|
6274
|
+
|
|
6046
6275
|
return u`
|
|
6047
6276
|
<div>
|
|
6048
6277
|
<div
|
|
@@ -6080,9 +6309,10 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6080
6309
|
</div>
|
|
6081
6310
|
` : undefined }
|
|
6082
6311
|
</div>
|
|
6083
|
-
|
|
6084
|
-
<slot
|
|
6085
|
-
|
|
6312
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
6313
|
+
<slot name="helpText"></slot>
|
|
6314
|
+
</${this.helpTextTag}>
|
|
6315
|
+
|
|
6086
6316
|
<div id="bibSizer" part="size"></div>
|
|
6087
6317
|
<${this.dropdownBibTag}
|
|
6088
6318
|
id="bib"
|
|
@@ -6092,6 +6322,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6092
6322
|
?rounded="${this.common || this.rounded}"
|
|
6093
6323
|
?inset="${this.common || this.inset}"
|
|
6094
6324
|
>
|
|
6325
|
+
<div class="slotContent">
|
|
6326
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6327
|
+
</div>
|
|
6095
6328
|
</${this.dropdownBibTag}>
|
|
6096
6329
|
</div>
|
|
6097
6330
|
`;
|
|
@@ -6174,7 +6407,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
6174
6407
|
|
|
6175
6408
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6176
6409
|
|
|
6177
|
-
class AuroLibraryRuntimeUtils {
|
|
6410
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
6178
6411
|
|
|
6179
6412
|
/* eslint-disable jsdoc/require-param */
|
|
6180
6413
|
|
|
@@ -6235,7 +6468,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
6235
6468
|
|
|
6236
6469
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
6237
6470
|
}
|
|
6238
|
-
}
|
|
6471
|
+
};
|
|
6239
6472
|
|
|
6240
6473
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6241
6474
|
// See LICENSE in the project root for license information.
|
|
@@ -6431,6 +6664,76 @@ var tokensCss = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-def
|
|
|
6431
6664
|
|
|
6432
6665
|
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)}`;
|
|
6433
6666
|
|
|
6667
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6668
|
+
// See LICENSE in the project root for license information.
|
|
6669
|
+
|
|
6670
|
+
// ---------------------------------------------------------------------
|
|
6671
|
+
|
|
6672
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6673
|
+
|
|
6674
|
+
class AuroLibraryRuntimeUtils {
|
|
6675
|
+
|
|
6676
|
+
/* eslint-disable jsdoc/require-param */
|
|
6677
|
+
|
|
6678
|
+
/**
|
|
6679
|
+
* This will register a new custom element with the browser.
|
|
6680
|
+
* @param {String} name - The name of the custom element.
|
|
6681
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
6682
|
+
* @returns {void}
|
|
6683
|
+
*/
|
|
6684
|
+
registerComponent(name, componentClass) {
|
|
6685
|
+
if (!customElements.get(name)) {
|
|
6686
|
+
customElements.define(name, class extends componentClass {});
|
|
6687
|
+
}
|
|
6688
|
+
}
|
|
6689
|
+
|
|
6690
|
+
/**
|
|
6691
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
6692
|
+
* @returns {void}
|
|
6693
|
+
*/
|
|
6694
|
+
closestElement(
|
|
6695
|
+
selector, // selector like in .closest()
|
|
6696
|
+
base = this, // extra functionality to skip a parent
|
|
6697
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
6698
|
+
!el || el === document || el === window
|
|
6699
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
6700
|
+
: found
|
|
6701
|
+
? found // found a selector INside this element
|
|
6702
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6703
|
+
) {
|
|
6704
|
+
return __Closest(base);
|
|
6705
|
+
}
|
|
6706
|
+
/* eslint-enable jsdoc/require-param */
|
|
6707
|
+
|
|
6708
|
+
/**
|
|
6709
|
+
* 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.
|
|
6710
|
+
* @param {Object} elem - The element to check.
|
|
6711
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
6712
|
+
* @returns {void}
|
|
6713
|
+
*/
|
|
6714
|
+
handleComponentTagRename(elem, tagName) {
|
|
6715
|
+
const tag = tagName.toLowerCase();
|
|
6716
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6717
|
+
|
|
6718
|
+
if (elemTag !== tag) {
|
|
6719
|
+
elem.setAttribute(tag, true);
|
|
6720
|
+
}
|
|
6721
|
+
}
|
|
6722
|
+
|
|
6723
|
+
/**
|
|
6724
|
+
* Validates if an element is a specific Auro component.
|
|
6725
|
+
* @param {Object} elem - The element to validate.
|
|
6726
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
6727
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6728
|
+
*/
|
|
6729
|
+
elementMatch(elem, tagName) {
|
|
6730
|
+
const tag = tagName.toLowerCase();
|
|
6731
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6732
|
+
|
|
6733
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
6734
|
+
}
|
|
6735
|
+
}
|
|
6736
|
+
|
|
6434
6737
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6435
6738
|
// See LICENSE in the project root for license information.
|
|
6436
6739
|
|
|
@@ -6629,7 +6932,7 @@ class AuroHeader extends i$2 {
|
|
|
6629
6932
|
/**
|
|
6630
6933
|
* @private
|
|
6631
6934
|
*/
|
|
6632
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
6935
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
6633
6936
|
}
|
|
6634
6937
|
|
|
6635
6938
|
// function to define props used within the scope of this component
|
|
@@ -6659,7 +6962,7 @@ class AuroHeader extends i$2 {
|
|
|
6659
6962
|
*
|
|
6660
6963
|
*/
|
|
6661
6964
|
static register(name = "auro-header") {
|
|
6662
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
|
|
6965
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHeader);
|
|
6663
6966
|
}
|
|
6664
6967
|
|
|
6665
6968
|
firstUpdated() {
|
|
@@ -6755,7 +7058,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
6755
7058
|
|
|
6756
7059
|
this.large = false;
|
|
6757
7060
|
|
|
6758
|
-
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
7061
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
6759
7062
|
|
|
6760
7063
|
const versioning = new AuroDependencyVersioning();
|
|
6761
7064
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
|
|
@@ -6794,7 +7097,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
6794
7097
|
*
|
|
6795
7098
|
*/
|
|
6796
7099
|
static register(name = "auro-bibtemplate") {
|
|
6797
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
|
|
7100
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
|
|
6798
7101
|
}
|
|
6799
7102
|
|
|
6800
7103
|
/**
|
|
@@ -6834,6 +7137,18 @@ class AuroBibtemplate extends i$2 {
|
|
|
6834
7137
|
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
6835
7138
|
}
|
|
6836
7139
|
|
|
7140
|
+
firstUpdated(changedProperties) {
|
|
7141
|
+
super.firstUpdated(changedProperties);
|
|
7142
|
+
|
|
7143
|
+
this.dispatchEvent(new CustomEvent("auro-bibtemplate-connected", {
|
|
7144
|
+
bubbles: true,
|
|
7145
|
+
composed: true,
|
|
7146
|
+
detail: {
|
|
7147
|
+
element: this
|
|
7148
|
+
}
|
|
7149
|
+
}));
|
|
7150
|
+
}
|
|
7151
|
+
|
|
6837
7152
|
// function that renders the HTML and CSS into the scope of the component
|
|
6838
7153
|
render() {
|
|
6839
7154
|
return u`
|
|
@@ -6901,7 +7216,7 @@ class AuroCounterWrapper extends i$2 {
|
|
|
6901
7216
|
* AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
|
|
6902
7217
|
*/
|
|
6903
7218
|
static register(name = "auro-counter-wrapper") {
|
|
6904
|
-
AuroLibraryRuntimeUtils$
|
|
7219
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterWrapper);
|
|
6905
7220
|
}
|
|
6906
7221
|
|
|
6907
7222
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -7355,7 +7670,7 @@ class AuroCounterGroup extends i$2 {
|
|
|
7355
7670
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
7356
7671
|
*/
|
|
7357
7672
|
static register(name = "auro-counter-group") {
|
|
7358
|
-
AuroLibraryRuntimeUtils$
|
|
7673
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterGroup);
|
|
7359
7674
|
}
|
|
7360
7675
|
|
|
7361
7676
|
// function that renders the HTML and CSS into the scope of the component
|