@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
|
@@ -56,7 +56,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
56
56
|
|
|
57
57
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
58
58
|
|
|
59
|
-
let AuroLibraryRuntimeUtils$
|
|
59
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
60
60
|
|
|
61
61
|
/* eslint-disable jsdoc/require-param */
|
|
62
62
|
|
|
@@ -157,7 +157,7 @@ class AuroLoader extends LitElement {
|
|
|
157
157
|
/**
|
|
158
158
|
* @private
|
|
159
159
|
*/
|
|
160
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
160
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
161
161
|
|
|
162
162
|
this.orbit = false;
|
|
163
163
|
this.ringworm = false;
|
|
@@ -220,7 +220,7 @@ class AuroLoader extends LitElement {
|
|
|
220
220
|
*
|
|
221
221
|
*/
|
|
222
222
|
static register(name = "auro-loader") {
|
|
223
|
-
AuroLibraryRuntimeUtils$
|
|
223
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroLoader);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
firstUpdated() {
|
|
@@ -524,7 +524,7 @@ class AuroButton extends LitElement {
|
|
|
524
524
|
*
|
|
525
525
|
*/
|
|
526
526
|
static register(name = "auro-button") {
|
|
527
|
-
AuroLibraryRuntimeUtils$
|
|
527
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroButton);
|
|
528
528
|
}
|
|
529
529
|
|
|
530
530
|
/**
|
|
@@ -638,7 +638,7 @@ class AuroCounterButton extends AuroButton {
|
|
|
638
638
|
*
|
|
639
639
|
*/
|
|
640
640
|
static register(name = "auro-counter-button") {
|
|
641
|
-
AuroLibraryRuntimeUtils$
|
|
641
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterButton);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
|
|
@@ -802,6 +802,76 @@ var tokensCss$4 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
|
|
|
802
802
|
|
|
803
803
|
var colorCss$6 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
804
804
|
|
|
805
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
806
|
+
// See LICENSE in the project root for license information.
|
|
807
|
+
|
|
808
|
+
// ---------------------------------------------------------------------
|
|
809
|
+
|
|
810
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
811
|
+
|
|
812
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
813
|
+
|
|
814
|
+
/* eslint-disable jsdoc/require-param */
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* This will register a new custom element with the browser.
|
|
818
|
+
* @param {String} name - The name of the custom element.
|
|
819
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
820
|
+
* @returns {void}
|
|
821
|
+
*/
|
|
822
|
+
registerComponent(name, componentClass) {
|
|
823
|
+
if (!customElements.get(name)) {
|
|
824
|
+
customElements.define(name, class extends componentClass {});
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
830
|
+
* @returns {void}
|
|
831
|
+
*/
|
|
832
|
+
closestElement(
|
|
833
|
+
selector, // selector like in .closest()
|
|
834
|
+
base = this, // extra functionality to skip a parent
|
|
835
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
836
|
+
!el || el === document || el === window
|
|
837
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
838
|
+
: found
|
|
839
|
+
? found // found a selector INside this element
|
|
840
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
841
|
+
) {
|
|
842
|
+
return __Closest(base);
|
|
843
|
+
}
|
|
844
|
+
/* eslint-enable jsdoc/require-param */
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
848
|
+
* @param {Object} elem - The element to check.
|
|
849
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
850
|
+
* @returns {void}
|
|
851
|
+
*/
|
|
852
|
+
handleComponentTagRename(elem, tagName) {
|
|
853
|
+
const tag = tagName.toLowerCase();
|
|
854
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
855
|
+
|
|
856
|
+
if (elemTag !== tag) {
|
|
857
|
+
elem.setAttribute(tag, true);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Validates if an element is a specific Auro component.
|
|
863
|
+
* @param {Object} elem - The element to validate.
|
|
864
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
865
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
866
|
+
*/
|
|
867
|
+
elementMatch(elem, tagName) {
|
|
868
|
+
const tag = tagName.toLowerCase();
|
|
869
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
870
|
+
|
|
871
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
872
|
+
}
|
|
873
|
+
};
|
|
874
|
+
|
|
805
875
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
806
876
|
// See LICENSE in the project root for license information.
|
|
807
877
|
|
|
@@ -821,7 +891,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
821
891
|
*/
|
|
822
892
|
privateDefaults() {
|
|
823
893
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
824
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
894
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
825
895
|
}
|
|
826
896
|
|
|
827
897
|
// function to define props used within the scope of this component
|
|
@@ -903,7 +973,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
903
973
|
*
|
|
904
974
|
*/
|
|
905
975
|
static register(name = "auro-icon") {
|
|
906
|
-
AuroLibraryRuntimeUtils$
|
|
976
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroIcon);
|
|
907
977
|
}
|
|
908
978
|
|
|
909
979
|
connectedCallback() {
|
|
@@ -1027,9 +1097,10 @@ class DateFormatter {
|
|
|
1027
1097
|
/**
|
|
1028
1098
|
* Convert a date object to string format.
|
|
1029
1099
|
* @param {Object} date - Date to convert to string.
|
|
1030
|
-
* @
|
|
1100
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
1101
|
+
* @returns {String} Returns the date as a string.
|
|
1031
1102
|
*/
|
|
1032
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
1103
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
1033
1104
|
year: "numeric",
|
|
1034
1105
|
month: "2-digit",
|
|
1035
1106
|
day: "2-digit",
|
|
@@ -1221,7 +1292,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
|
|
|
1221
1292
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
1222
1293
|
|
|
1223
1294
|
// Get the date string of the date object we created from the string date
|
|
1224
|
-
const actualDateStr = dateFormatter.getDateAsString(dateObj);
|
|
1295
|
+
const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
|
|
1225
1296
|
|
|
1226
1297
|
// Guard Clause: Generated date matches date string input
|
|
1227
1298
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -1386,7 +1457,7 @@ const {
|
|
|
1386
1457
|
class AuroFormValidation {
|
|
1387
1458
|
|
|
1388
1459
|
constructor() {
|
|
1389
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
1460
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
|
|
1390
1461
|
}
|
|
1391
1462
|
|
|
1392
1463
|
/**
|
|
@@ -1932,7 +2003,7 @@ class AuroCounter extends LitElement {
|
|
|
1932
2003
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
1933
2004
|
*/
|
|
1934
2005
|
static register(name = "auro-counter") {
|
|
1935
|
-
AuroLibraryRuntimeUtils$
|
|
2006
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounter);
|
|
1936
2007
|
}
|
|
1937
2008
|
|
|
1938
2009
|
static get styles() {
|
|
@@ -2118,7 +2189,7 @@ var styleCss$5 = css`:host{position:relative;display:block}[slot=trigger],::slot
|
|
|
2118
2189
|
|
|
2119
2190
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2120
2191
|
|
|
2121
|
-
let AuroLibraryRuntimeUtils$
|
|
2192
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
2122
2193
|
|
|
2123
2194
|
/* eslint-disable jsdoc/require-param */
|
|
2124
2195
|
|
|
@@ -2701,10 +2772,11 @@ const flip$1 = function (options) {
|
|
|
2701
2772
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
2702
2773
|
const nextPlacement = placements[nextIndex];
|
|
2703
2774
|
if (nextPlacement) {
|
|
2704
|
-
var _overflowsData$;
|
|
2705
2775
|
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
2706
|
-
|
|
2707
|
-
if
|
|
2776
|
+
if (!ignoreCrossAxisOverflow ||
|
|
2777
|
+
// We leave the current main axis only if every placement on that axis
|
|
2778
|
+
// overflows the main axis.
|
|
2779
|
+
overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
|
|
2708
2780
|
// Try next placement and re-run the lifecycle.
|
|
2709
2781
|
return {
|
|
2710
2782
|
data: {
|
|
@@ -3725,8 +3797,28 @@ class AuroFloatingUI {
|
|
|
3725
3797
|
if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
|
|
3726
3798
|
AuroFloatingUI.isMousePressHandlerInitialized = true;
|
|
3727
3799
|
|
|
3800
|
+
// Track timeout for isMousePressed reset to avoid race conditions
|
|
3801
|
+
if (!AuroFloatingUI._mousePressedTimeout) {
|
|
3802
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
3803
|
+
}
|
|
3728
3804
|
const mouseEventGlobalHandler = (event) => {
|
|
3729
|
-
|
|
3805
|
+
const isPressed = event.type === 'mousedown';
|
|
3806
|
+
if (isPressed) {
|
|
3807
|
+
// Clear any pending timeout to prevent race condition
|
|
3808
|
+
if (AuroFloatingUI._mousePressedTimeout !== null) {
|
|
3809
|
+
clearTimeout(AuroFloatingUI._mousePressedTimeout);
|
|
3810
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
3811
|
+
}
|
|
3812
|
+
if (!AuroFloatingUI.isMousePressed) {
|
|
3813
|
+
AuroFloatingUI.isMousePressed = true;
|
|
3814
|
+
}
|
|
3815
|
+
} else if (AuroFloatingUI.isMousePressed && !isPressed) {
|
|
3816
|
+
// Schedule reset and track timeout ID
|
|
3817
|
+
AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
|
|
3818
|
+
AuroFloatingUI.isMousePressed = false;
|
|
3819
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
3820
|
+
}, 0);
|
|
3821
|
+
}
|
|
3730
3822
|
};
|
|
3731
3823
|
|
|
3732
3824
|
window.addEventListener('mousedown', mouseEventGlobalHandler);
|
|
@@ -3853,6 +3945,7 @@ class AuroFloatingUI {
|
|
|
3853
3945
|
|
|
3854
3946
|
// Compute the position of the bib
|
|
3855
3947
|
computePosition(this.element.trigger, this.element.bib, {
|
|
3948
|
+
strategy: this.element.floaterConfig?.strategy || 'fixed',
|
|
3856
3949
|
placement: this.element.floaterConfig?.placement,
|
|
3857
3950
|
middleware: middleware || []
|
|
3858
3951
|
}).then(({ x, y }) => { // eslint-disable-line id-length
|
|
@@ -3987,8 +4080,9 @@ class AuroFloatingUI {
|
|
|
3987
4080
|
if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
|
|
3988
4081
|
return;
|
|
3989
4082
|
}
|
|
3990
|
-
|
|
3991
|
-
if
|
|
4083
|
+
|
|
4084
|
+
// if fullscreen bib is in fullscreen mode, do not close
|
|
4085
|
+
if (this.element.bib.hasAttribute('isfullscreen')) {
|
|
3992
4086
|
return;
|
|
3993
4087
|
}
|
|
3994
4088
|
|
|
@@ -4289,8 +4383,6 @@ class AuroFloatingUI {
|
|
|
4289
4383
|
this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
|
|
4290
4384
|
}
|
|
4291
4385
|
|
|
4292
|
-
document.body.append(this.element.bib);
|
|
4293
|
-
|
|
4294
4386
|
this.regenerateBibId();
|
|
4295
4387
|
this.handleTriggerTabIndex();
|
|
4296
4388
|
|
|
@@ -4433,7 +4525,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
4433
4525
|
return _fetchMap$1.get(uri);
|
|
4434
4526
|
};
|
|
4435
4527
|
|
|
4436
|
-
var styleCss$
|
|
4528
|
+
var styleCss$2$1 = css`: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}`;
|
|
4437
4529
|
|
|
4438
4530
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4439
4531
|
// See LICENSE in the project root for license information.
|
|
@@ -4476,7 +4568,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
4476
4568
|
|
|
4477
4569
|
static get styles() {
|
|
4478
4570
|
return css`
|
|
4479
|
-
${styleCss$
|
|
4571
|
+
${styleCss$2$1}
|
|
4480
4572
|
`;
|
|
4481
4573
|
}
|
|
4482
4574
|
|
|
@@ -4521,6 +4613,76 @@ var tokensCss$2 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
|
|
|
4521
4613
|
|
|
4522
4614
|
var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
4523
4615
|
|
|
4616
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4617
|
+
// See LICENSE in the project root for license information.
|
|
4618
|
+
|
|
4619
|
+
// ---------------------------------------------------------------------
|
|
4620
|
+
|
|
4621
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4622
|
+
|
|
4623
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
4624
|
+
|
|
4625
|
+
/* eslint-disable jsdoc/require-param */
|
|
4626
|
+
|
|
4627
|
+
/**
|
|
4628
|
+
* This will register a new custom element with the browser.
|
|
4629
|
+
* @param {String} name - The name of the custom element.
|
|
4630
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
4631
|
+
* @returns {void}
|
|
4632
|
+
*/
|
|
4633
|
+
registerComponent(name, componentClass) {
|
|
4634
|
+
if (!customElements.get(name)) {
|
|
4635
|
+
customElements.define(name, class extends componentClass {});
|
|
4636
|
+
}
|
|
4637
|
+
}
|
|
4638
|
+
|
|
4639
|
+
/**
|
|
4640
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
4641
|
+
* @returns {void}
|
|
4642
|
+
*/
|
|
4643
|
+
closestElement(
|
|
4644
|
+
selector, // selector like in .closest()
|
|
4645
|
+
base = this, // extra functionality to skip a parent
|
|
4646
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4647
|
+
!el || el === document || el === window
|
|
4648
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
4649
|
+
: found
|
|
4650
|
+
? found // found a selector INside this element
|
|
4651
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4652
|
+
) {
|
|
4653
|
+
return __Closest(base);
|
|
4654
|
+
}
|
|
4655
|
+
/* eslint-enable jsdoc/require-param */
|
|
4656
|
+
|
|
4657
|
+
/**
|
|
4658
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
4659
|
+
* @param {Object} elem - The element to check.
|
|
4660
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4661
|
+
* @returns {void}
|
|
4662
|
+
*/
|
|
4663
|
+
handleComponentTagRename(elem, tagName) {
|
|
4664
|
+
const tag = tagName.toLowerCase();
|
|
4665
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4666
|
+
|
|
4667
|
+
if (elemTag !== tag) {
|
|
4668
|
+
elem.setAttribute(tag, true);
|
|
4669
|
+
}
|
|
4670
|
+
}
|
|
4671
|
+
|
|
4672
|
+
/**
|
|
4673
|
+
* Validates if an element is a specific Auro component.
|
|
4674
|
+
* @param {Object} elem - The element to validate.
|
|
4675
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
4676
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4677
|
+
*/
|
|
4678
|
+
elementMatch(elem, tagName) {
|
|
4679
|
+
const tag = tagName.toLowerCase();
|
|
4680
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4681
|
+
|
|
4682
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
4683
|
+
}
|
|
4684
|
+
};
|
|
4685
|
+
|
|
4524
4686
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4525
4687
|
// See LICENSE in the project root for license information.
|
|
4526
4688
|
|
|
@@ -4540,7 +4702,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4540
4702
|
*/
|
|
4541
4703
|
privateDefaults() {
|
|
4542
4704
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
4543
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
4705
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
4544
4706
|
}
|
|
4545
4707
|
|
|
4546
4708
|
// function to define props used within the scope of this component
|
|
@@ -4608,7 +4770,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4608
4770
|
return [
|
|
4609
4771
|
super.styles,
|
|
4610
4772
|
css`${tokensCss$2}`,
|
|
4611
|
-
css`${styleCss$
|
|
4773
|
+
css`${styleCss$2$1}`,
|
|
4612
4774
|
css`${colorCss$3}`
|
|
4613
4775
|
];
|
|
4614
4776
|
}
|
|
@@ -4622,7 +4784,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4622
4784
|
*
|
|
4623
4785
|
*/
|
|
4624
4786
|
static register(name = "auro-icon") {
|
|
4625
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
4787
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
|
|
4626
4788
|
}
|
|
4627
4789
|
|
|
4628
4790
|
connectedCallback() {
|
|
@@ -4690,7 +4852,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
4690
4852
|
|
|
4691
4853
|
var iconVersion$1 = '6.1.2';
|
|
4692
4854
|
|
|
4693
|
-
var styleCss$
|
|
4855
|
+
var styleCss$1$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
4694
4856
|
|
|
4695
4857
|
var colorCss$2$1 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
4696
4858
|
|
|
@@ -4700,7 +4862,6 @@ var tokensCss$1 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-color:
|
|
|
4700
4862
|
// See LICENSE in the project root for license information.
|
|
4701
4863
|
|
|
4702
4864
|
|
|
4703
|
-
|
|
4704
4865
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
4705
4866
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
4706
4867
|
'xl',
|
|
@@ -4725,12 +4886,12 @@ class AuroDropdownBib extends LitElement {
|
|
|
4725
4886
|
*/
|
|
4726
4887
|
this._mobileBreakpointValue = undefined;
|
|
4727
4888
|
|
|
4728
|
-
AuroLibraryRuntimeUtils$
|
|
4889
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
4729
4890
|
}
|
|
4730
4891
|
|
|
4731
4892
|
static get styles() {
|
|
4732
4893
|
return [
|
|
4733
|
-
styleCss$
|
|
4894
|
+
styleCss$1$1,
|
|
4734
4895
|
colorCss$2$1,
|
|
4735
4896
|
tokensCss$1
|
|
4736
4897
|
];
|
|
@@ -4770,6 +4931,13 @@ class AuroDropdownBib extends LitElement {
|
|
|
4770
4931
|
type: Boolean,
|
|
4771
4932
|
reflect: true
|
|
4772
4933
|
},
|
|
4934
|
+
|
|
4935
|
+
/**
|
|
4936
|
+
* A reference to the associated bib template element.
|
|
4937
|
+
*/
|
|
4938
|
+
bibTemplate: {
|
|
4939
|
+
type: Object
|
|
4940
|
+
}
|
|
4773
4941
|
};
|
|
4774
4942
|
}
|
|
4775
4943
|
|
|
@@ -4802,9 +4970,50 @@ class AuroDropdownBib extends LitElement {
|
|
|
4802
4970
|
}
|
|
4803
4971
|
}
|
|
4804
4972
|
});
|
|
4973
|
+
|
|
4974
|
+
if (this.bibTemplate) {
|
|
4975
|
+
// If the bib template is found, set the fullscreen attribute
|
|
4976
|
+
if (this.isFullscreen) {
|
|
4977
|
+
this.bibTemplate.setAttribute('isFullscreen', 'true');
|
|
4978
|
+
} else {
|
|
4979
|
+
this.bibTemplate.removeAttribute('isFullscreen');
|
|
4980
|
+
}
|
|
4981
|
+
}
|
|
4805
4982
|
}
|
|
4806
4983
|
}
|
|
4807
4984
|
|
|
4985
|
+
connectedCallback() {
|
|
4986
|
+
super.connectedCallback();
|
|
4987
|
+
|
|
4988
|
+
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
4989
|
+
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
4990
|
+
const bibTemplate = event.detail.element;
|
|
4991
|
+
this.bibTemplate = bibTemplate;
|
|
4992
|
+
|
|
4993
|
+
if (bibTemplate) {
|
|
4994
|
+
// If the bib template is found, set the fullscreen attribute
|
|
4995
|
+
if (this.isFullscreen) {
|
|
4996
|
+
bibTemplate.setAttribute('isFullscreen', 'true');
|
|
4997
|
+
} else {
|
|
4998
|
+
bibTemplate.removeAttribute('isFullscreen');
|
|
4999
|
+
}
|
|
5000
|
+
}
|
|
5001
|
+
});
|
|
5002
|
+
}
|
|
5003
|
+
|
|
5004
|
+
firstUpdated(changedProperties) {
|
|
5005
|
+
super.firstUpdated(changedProperties);
|
|
5006
|
+
|
|
5007
|
+
// Dispatch a custom event when the component is connected
|
|
5008
|
+
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
5009
|
+
bubbles: true,
|
|
5010
|
+
composed: true,
|
|
5011
|
+
detail: {
|
|
5012
|
+
element: this
|
|
5013
|
+
}
|
|
5014
|
+
}));
|
|
5015
|
+
}
|
|
5016
|
+
|
|
4808
5017
|
// function that renders the HTML and CSS into the scope of the component
|
|
4809
5018
|
render() {
|
|
4810
5019
|
return html$1`
|
|
@@ -4817,15 +5026,17 @@ class AuroDropdownBib extends LitElement {
|
|
|
4817
5026
|
|
|
4818
5027
|
var dropdownVersion$1 = '3.0.0';
|
|
4819
5028
|
|
|
4820
|
-
var shapeSizeCss = css`.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:
|
|
4821
|
-
|
|
4822
|
-
var styleCss$1$1 = css`: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)}`;
|
|
5029
|
+
var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
|
|
4823
5030
|
|
|
4824
5031
|
var colorCss$1$1 = css`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
|
|
4825
5032
|
|
|
4826
|
-
var
|
|
5033
|
+
var classicColorCss = css`:host([layout*=classic]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);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))}`;
|
|
5034
|
+
|
|
5035
|
+
var classicLayoutCss = css`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{display:flex;flex-direction:row}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
5036
|
+
|
|
5037
|
+
var styleEmphasizedCss = css`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{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)}`;
|
|
4827
5038
|
|
|
4828
|
-
var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direction:
|
|
5039
|
+
var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;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)}`;
|
|
4829
5040
|
|
|
4830
5041
|
var colorCss$4 = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
4831
5042
|
|
|
@@ -4840,7 +5051,7 @@ var tokensCss$3 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
4840
5051
|
|
|
4841
5052
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4842
5053
|
|
|
4843
|
-
let AuroLibraryRuntimeUtils$
|
|
5054
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4844
5055
|
|
|
4845
5056
|
/* eslint-disable jsdoc/require-param */
|
|
4846
5057
|
|
|
@@ -4921,7 +5132,7 @@ class AuroHelpText extends LitElement {
|
|
|
4921
5132
|
this.onDark = false;
|
|
4922
5133
|
this.hasTextContent = false;
|
|
4923
5134
|
|
|
4924
|
-
AuroLibraryRuntimeUtils$
|
|
5135
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
4925
5136
|
}
|
|
4926
5137
|
|
|
4927
5138
|
static get styles() {
|
|
@@ -4977,7 +5188,7 @@ class AuroHelpText extends LitElement {
|
|
|
4977
5188
|
*
|
|
4978
5189
|
*/
|
|
4979
5190
|
static register(name = "auro-helptext") {
|
|
4980
|
-
AuroLibraryRuntimeUtils$
|
|
5191
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
4981
5192
|
}
|
|
4982
5193
|
|
|
4983
5194
|
updated() {
|
|
@@ -5153,12 +5364,13 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5153
5364
|
this.matchWidth = false;
|
|
5154
5365
|
this.noHideOnThisFocusLoss = false;
|
|
5155
5366
|
|
|
5156
|
-
this.errorMessage = ''; // TODO
|
|
5367
|
+
this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
|
|
5157
5368
|
|
|
5158
5369
|
// Layout Config
|
|
5159
|
-
this.layout = '
|
|
5370
|
+
this.layout = 'classic';
|
|
5160
5371
|
this.shape = 'rounded';
|
|
5161
5372
|
this.size = 'xl';
|
|
5373
|
+
this.parentBorder = false;
|
|
5162
5374
|
|
|
5163
5375
|
this.privateDefaults();
|
|
5164
5376
|
}
|
|
@@ -5174,7 +5386,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5174
5386
|
'trigger': true,
|
|
5175
5387
|
'wrapper': true,
|
|
5176
5388
|
'hasFocus': this.hasFocus,
|
|
5177
|
-
'simple': this.simple
|
|
5389
|
+
'simple': this.simple,
|
|
5390
|
+
'parentBorder': this.parentBorder
|
|
5178
5391
|
};
|
|
5179
5392
|
}
|
|
5180
5393
|
|
|
@@ -5226,7 +5439,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5226
5439
|
/**
|
|
5227
5440
|
* @private
|
|
5228
5441
|
*/
|
|
5229
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
5442
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
5230
5443
|
|
|
5231
5444
|
/**
|
|
5232
5445
|
* @private
|
|
@@ -5441,6 +5654,15 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5441
5654
|
reflect: true
|
|
5442
5655
|
},
|
|
5443
5656
|
|
|
5657
|
+
/**
|
|
5658
|
+
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
5659
|
+
* @private
|
|
5660
|
+
*/
|
|
5661
|
+
parentBorder: {
|
|
5662
|
+
type: Boolean,
|
|
5663
|
+
reflect: true
|
|
5664
|
+
},
|
|
5665
|
+
|
|
5444
5666
|
/**
|
|
5445
5667
|
* If declared, the popover and trigger will be set to the same width.
|
|
5446
5668
|
*/
|
|
@@ -5543,10 +5765,18 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5543
5765
|
static get styles() {
|
|
5544
5766
|
return [
|
|
5545
5767
|
colorCss$1$1,
|
|
5546
|
-
styleCss$1$1,
|
|
5547
5768
|
tokensCss$1,
|
|
5769
|
+
|
|
5770
|
+
// default layout
|
|
5771
|
+
classicColorCss,
|
|
5772
|
+
classicLayoutCss,
|
|
5773
|
+
|
|
5774
|
+
// emphasized layout
|
|
5548
5775
|
styleEmphasizedCss,
|
|
5776
|
+
|
|
5777
|
+
// snowflake layout
|
|
5549
5778
|
styleSnowflakeCss,
|
|
5779
|
+
|
|
5550
5780
|
shapeSizeCss
|
|
5551
5781
|
];
|
|
5552
5782
|
}
|
|
@@ -5560,7 +5790,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5560
5790
|
*
|
|
5561
5791
|
*/
|
|
5562
5792
|
static register(name = "auro-dropdown") {
|
|
5563
|
-
AuroLibraryRuntimeUtils$
|
|
5793
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
5564
5794
|
}
|
|
5565
5795
|
|
|
5566
5796
|
/**
|
|
@@ -5893,11 +6123,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5893
6123
|
*
|
|
5894
6124
|
* @private
|
|
5895
6125
|
* @method handleDefaultSlot
|
|
5896
|
-
* @param {Event} event - The event object representing the slot change.
|
|
5897
6126
|
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
5898
6127
|
*/
|
|
5899
|
-
handleDefaultSlot(
|
|
5900
|
-
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
6128
|
+
handleDefaultSlot() {
|
|
5901
6129
|
|
|
5902
6130
|
if (this.onSlotChange) {
|
|
5903
6131
|
this.onSlotChange();
|
|
@@ -5940,7 +6168,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5940
6168
|
id="trigger"
|
|
5941
6169
|
class="${classMap(this.commonWrapperClasses)}" part="wrapper"
|
|
5942
6170
|
tabindex="${this.tabIndex}"
|
|
5943
|
-
?showBorder="${this.showTriggerBorders}"
|
|
5944
6171
|
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
5945
6172
|
aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
5946
6173
|
aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -5960,6 +6187,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5960
6187
|
${this.chevron || this.common ? html$1`
|
|
5961
6188
|
<div
|
|
5962
6189
|
id="showStateIcon"
|
|
6190
|
+
class="chevron"
|
|
5963
6191
|
part="chevron">
|
|
5964
6192
|
<${this.iconTag}
|
|
5965
6193
|
category="interface"
|
|
@@ -5974,9 +6202,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5974
6202
|
<div class="${classMap(helpTextClasses)}">
|
|
5975
6203
|
<slot name="helpText"></slot>
|
|
5976
6204
|
</div>
|
|
5977
|
-
<div class="slotContent">
|
|
5978
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
5979
|
-
</div>
|
|
5980
6205
|
<div id="bibSizer" part="size"></div>
|
|
5981
6206
|
<${this.dropdownBibTag}
|
|
5982
6207
|
id="bib"
|
|
@@ -5985,6 +6210,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5985
6210
|
?common="${this.common}"
|
|
5986
6211
|
?rounded="${this.common || this.rounded}"
|
|
5987
6212
|
?inset="${this.common || this.inset}">
|
|
6213
|
+
<div class="slotContent">
|
|
6214
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6215
|
+
</div>
|
|
5988
6216
|
</${this.dropdownBibTag}>
|
|
5989
6217
|
</div>
|
|
5990
6218
|
`;
|
|
@@ -5996,6 +6224,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5996
6224
|
* @returns {html} - Returns HTML for the classic layout.
|
|
5997
6225
|
*/
|
|
5998
6226
|
renderLayoutClassic() {
|
|
6227
|
+
|
|
5999
6228
|
return html$1`
|
|
6000
6229
|
<div>
|
|
6001
6230
|
<div
|
|
@@ -6033,9 +6262,10 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6033
6262
|
</div>
|
|
6034
6263
|
` : undefined }
|
|
6035
6264
|
</div>
|
|
6036
|
-
|
|
6037
|
-
<slot
|
|
6038
|
-
|
|
6265
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
6266
|
+
<slot name="helpText"></slot>
|
|
6267
|
+
</${this.helpTextTag}>
|
|
6268
|
+
|
|
6039
6269
|
<div id="bibSizer" part="size"></div>
|
|
6040
6270
|
<${this.dropdownBibTag}
|
|
6041
6271
|
id="bib"
|
|
@@ -6045,6 +6275,9 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6045
6275
|
?rounded="${this.common || this.rounded}"
|
|
6046
6276
|
?inset="${this.common || this.inset}"
|
|
6047
6277
|
>
|
|
6278
|
+
<div class="slotContent">
|
|
6279
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6280
|
+
</div>
|
|
6048
6281
|
</${this.dropdownBibTag}>
|
|
6049
6282
|
</div>
|
|
6050
6283
|
`;
|
|
@@ -6127,7 +6360,7 @@ var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
6127
6360
|
|
|
6128
6361
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6129
6362
|
|
|
6130
|
-
class AuroLibraryRuntimeUtils {
|
|
6363
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
6131
6364
|
|
|
6132
6365
|
/* eslint-disable jsdoc/require-param */
|
|
6133
6366
|
|
|
@@ -6188,7 +6421,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
6188
6421
|
|
|
6189
6422
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
6190
6423
|
}
|
|
6191
|
-
}
|
|
6424
|
+
};
|
|
6192
6425
|
|
|
6193
6426
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6194
6427
|
// See LICENSE in the project root for license information.
|
|
@@ -6384,6 +6617,76 @@ var tokensCss = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-def
|
|
|
6384
6617
|
|
|
6385
6618
|
var colorCss$2 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
6386
6619
|
|
|
6620
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6621
|
+
// See LICENSE in the project root for license information.
|
|
6622
|
+
|
|
6623
|
+
// ---------------------------------------------------------------------
|
|
6624
|
+
|
|
6625
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6626
|
+
|
|
6627
|
+
class AuroLibraryRuntimeUtils {
|
|
6628
|
+
|
|
6629
|
+
/* eslint-disable jsdoc/require-param */
|
|
6630
|
+
|
|
6631
|
+
/**
|
|
6632
|
+
* This will register a new custom element with the browser.
|
|
6633
|
+
* @param {String} name - The name of the custom element.
|
|
6634
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
6635
|
+
* @returns {void}
|
|
6636
|
+
*/
|
|
6637
|
+
registerComponent(name, componentClass) {
|
|
6638
|
+
if (!customElements.get(name)) {
|
|
6639
|
+
customElements.define(name, class extends componentClass {});
|
|
6640
|
+
}
|
|
6641
|
+
}
|
|
6642
|
+
|
|
6643
|
+
/**
|
|
6644
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
6645
|
+
* @returns {void}
|
|
6646
|
+
*/
|
|
6647
|
+
closestElement(
|
|
6648
|
+
selector, // selector like in .closest()
|
|
6649
|
+
base = this, // extra functionality to skip a parent
|
|
6650
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
6651
|
+
!el || el === document || el === window
|
|
6652
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
6653
|
+
: found
|
|
6654
|
+
? found // found a selector INside this element
|
|
6655
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6656
|
+
) {
|
|
6657
|
+
return __Closest(base);
|
|
6658
|
+
}
|
|
6659
|
+
/* eslint-enable jsdoc/require-param */
|
|
6660
|
+
|
|
6661
|
+
/**
|
|
6662
|
+
* 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.
|
|
6663
|
+
* @param {Object} elem - The element to check.
|
|
6664
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
6665
|
+
* @returns {void}
|
|
6666
|
+
*/
|
|
6667
|
+
handleComponentTagRename(elem, tagName) {
|
|
6668
|
+
const tag = tagName.toLowerCase();
|
|
6669
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6670
|
+
|
|
6671
|
+
if (elemTag !== tag) {
|
|
6672
|
+
elem.setAttribute(tag, true);
|
|
6673
|
+
}
|
|
6674
|
+
}
|
|
6675
|
+
|
|
6676
|
+
/**
|
|
6677
|
+
* Validates if an element is a specific Auro component.
|
|
6678
|
+
* @param {Object} elem - The element to validate.
|
|
6679
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
6680
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6681
|
+
*/
|
|
6682
|
+
elementMatch(elem, tagName) {
|
|
6683
|
+
const tag = tagName.toLowerCase();
|
|
6684
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6685
|
+
|
|
6686
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
6687
|
+
}
|
|
6688
|
+
}
|
|
6689
|
+
|
|
6387
6690
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6388
6691
|
// See LICENSE in the project root for license information.
|
|
6389
6692
|
|
|
@@ -6582,7 +6885,7 @@ class AuroHeader extends LitElement {
|
|
|
6582
6885
|
/**
|
|
6583
6886
|
* @private
|
|
6584
6887
|
*/
|
|
6585
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
6888
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
6586
6889
|
}
|
|
6587
6890
|
|
|
6588
6891
|
// function to define props used within the scope of this component
|
|
@@ -6612,7 +6915,7 @@ class AuroHeader extends LitElement {
|
|
|
6612
6915
|
*
|
|
6613
6916
|
*/
|
|
6614
6917
|
static register(name = "auro-header") {
|
|
6615
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
|
|
6918
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHeader);
|
|
6616
6919
|
}
|
|
6617
6920
|
|
|
6618
6921
|
firstUpdated() {
|
|
@@ -6708,7 +7011,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
6708
7011
|
|
|
6709
7012
|
this.large = false;
|
|
6710
7013
|
|
|
6711
|
-
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
7014
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
6712
7015
|
|
|
6713
7016
|
const versioning = new AuroDependencyVersioning();
|
|
6714
7017
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
|
|
@@ -6747,7 +7050,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
6747
7050
|
*
|
|
6748
7051
|
*/
|
|
6749
7052
|
static register(name = "auro-bibtemplate") {
|
|
6750
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
|
|
7053
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
|
|
6751
7054
|
}
|
|
6752
7055
|
|
|
6753
7056
|
/**
|
|
@@ -6787,6 +7090,18 @@ class AuroBibtemplate extends LitElement {
|
|
|
6787
7090
|
this.setAttribute('exportparts', 'bibtemplate:dropdownBibTemplate');
|
|
6788
7091
|
}
|
|
6789
7092
|
|
|
7093
|
+
firstUpdated(changedProperties) {
|
|
7094
|
+
super.firstUpdated(changedProperties);
|
|
7095
|
+
|
|
7096
|
+
this.dispatchEvent(new CustomEvent("auro-bibtemplate-connected", {
|
|
7097
|
+
bubbles: true,
|
|
7098
|
+
composed: true,
|
|
7099
|
+
detail: {
|
|
7100
|
+
element: this
|
|
7101
|
+
}
|
|
7102
|
+
}));
|
|
7103
|
+
}
|
|
7104
|
+
|
|
6790
7105
|
// function that renders the HTML and CSS into the scope of the component
|
|
6791
7106
|
render() {
|
|
6792
7107
|
return html$1`
|
|
@@ -6854,7 +7169,7 @@ class AuroCounterWrapper extends LitElement {
|
|
|
6854
7169
|
* AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
|
|
6855
7170
|
*/
|
|
6856
7171
|
static register(name = "auro-counter-wrapper") {
|
|
6857
|
-
AuroLibraryRuntimeUtils$
|
|
7172
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterWrapper);
|
|
6858
7173
|
}
|
|
6859
7174
|
|
|
6860
7175
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -7308,7 +7623,7 @@ class AuroCounterGroup extends LitElement {
|
|
|
7308
7623
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
7309
7624
|
*/
|
|
7310
7625
|
static register(name = "auro-counter-group") {
|
|
7311
|
-
AuroLibraryRuntimeUtils$
|
|
7626
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroCounterGroup);
|
|
7312
7627
|
}
|
|
7313
7628
|
|
|
7314
7629
|
// function that renders the HTML and CSS into the scope of the component
|