@aurodesignsystem-dev/auro-formkit 0.0.0-pr788.0 → 0.0.0-pr792.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +99 -64
- package/components/bibtemplate/dist/registered.js +99 -64
- package/components/combobox/README.md +0 -2
- package/components/combobox/demo/api.md +0 -6
- package/components/combobox/demo/api.min.js +120 -98
- package/components/combobox/demo/index.md +0 -12
- package/components/combobox/demo/index.min.js +120 -98
- package/components/combobox/demo/readme.md +0 -2
- package/components/combobox/dist/auro-combobox.d.ts +0 -2
- package/components/combobox/dist/index.js +115 -93
- package/components/combobox/dist/registered.js +115 -93
- package/components/counter/demo/api.md +0 -9
- package/components/counter/demo/api.min.js +119 -86
- package/components/counter/demo/index.md +0 -6
- package/components/counter/demo/index.min.js +119 -86
- package/components/counter/dist/auro-counter-group.d.ts +0 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +119 -86
- package/components/counter/dist/registered.js +119 -86
- package/components/datepicker/README.md +0 -1
- package/components/datepicker/demo/api.md +0 -11
- package/components/datepicker/demo/api.min.js +100 -77
- package/components/datepicker/demo/index.md +0 -12
- package/components/datepicker/demo/index.min.js +100 -77
- package/components/datepicker/demo/readme.md +0 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +0 -1
- package/components/datepicker/dist/index.js +100 -77
- package/components/datepicker/dist/registered.js +100 -77
- package/components/input/README.md +0 -1
- package/components/input/demo/api.md +6 -14
- package/components/input/demo/api.min.js +2 -11
- package/components/input/demo/index.md +0 -7
- package/components/input/demo/index.min.js +2 -11
- package/components/input/demo/readme.md +0 -1
- package/components/input/dist/base-input.d.ts +0 -3
- package/components/input/dist/index.js +2 -11
- package/components/input/dist/registered.js +2 -11
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/dist/registered.js +1 -1
- package/components/select/README.md +0 -1
- package/components/select/demo/api.md +0 -3
- package/components/select/demo/api.min.js +110 -79
- package/components/select/demo/index.md +0 -8
- package/components/select/demo/index.min.js +110 -79
- package/components/select/demo/readme.md +0 -1
- package/components/select/dist/auro-select.d.ts +0 -1
- package/components/select/dist/index.js +105 -74
- package/components/select/dist/registered.js +105 -74
- package/package.json +1 -1
|
@@ -10915,7 +10915,7 @@ var tokenCss = i$2`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
10915
10915
|
|
|
10916
10916
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
10917
10917
|
|
|
10918
|
-
let AuroLibraryRuntimeUtils$
|
|
10918
|
+
let AuroLibraryRuntimeUtils$3$1 = class AuroLibraryRuntimeUtils {
|
|
10919
10919
|
|
|
10920
10920
|
/* eslint-disable jsdoc/require-param */
|
|
10921
10921
|
|
|
@@ -11498,7 +11498,7 @@ var shapeSize$2 = i$2`.shape-rounded-xl{min-height:68px;max-height:68px;border-s
|
|
|
11498
11498
|
|
|
11499
11499
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11500
11500
|
|
|
11501
|
-
let AuroLibraryRuntimeUtils$
|
|
11501
|
+
let AuroLibraryRuntimeUtils$2$2 = class AuroLibraryRuntimeUtils {
|
|
11502
11502
|
|
|
11503
11503
|
/* eslint-disable jsdoc/require-param */
|
|
11504
11504
|
|
|
@@ -11593,7 +11593,7 @@ let AuroLoader$2 = class AuroLoader extends i {
|
|
|
11593
11593
|
/**
|
|
11594
11594
|
* @private
|
|
11595
11595
|
*/
|
|
11596
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
11596
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2$2();
|
|
11597
11597
|
|
|
11598
11598
|
this.orbit = false;
|
|
11599
11599
|
this.ringworm = false;
|
|
@@ -11656,7 +11656,7 @@ let AuroLoader$2 = class AuroLoader extends i {
|
|
|
11656
11656
|
*
|
|
11657
11657
|
*/
|
|
11658
11658
|
static register(name = "auro-loader") {
|
|
11659
|
-
AuroLibraryRuntimeUtils$
|
|
11659
|
+
AuroLibraryRuntimeUtils$2$2.prototype.registerComponent(name, AuroLoader);
|
|
11660
11660
|
}
|
|
11661
11661
|
|
|
11662
11662
|
firstUpdated() {
|
|
@@ -11936,7 +11936,7 @@ let AuroButton$2 = class AuroButton extends AuroElement$1$3 {
|
|
|
11936
11936
|
*
|
|
11937
11937
|
*/
|
|
11938
11938
|
static register(name = "auro-button") {
|
|
11939
|
-
AuroLibraryRuntimeUtils$
|
|
11939
|
+
AuroLibraryRuntimeUtils$3$1.prototype.registerComponent(name, AuroButton);
|
|
11940
11940
|
}
|
|
11941
11941
|
|
|
11942
11942
|
/**
|
|
@@ -12273,7 +12273,7 @@ var colorCss$8 = i$2`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
12273
12273
|
|
|
12274
12274
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
12275
12275
|
|
|
12276
|
-
let AuroLibraryRuntimeUtils$
|
|
12276
|
+
let AuroLibraryRuntimeUtils$1$3 = class AuroLibraryRuntimeUtils {
|
|
12277
12277
|
|
|
12278
12278
|
/* eslint-disable jsdoc/require-param */
|
|
12279
12279
|
|
|
@@ -12355,7 +12355,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
|
|
|
12355
12355
|
*/
|
|
12356
12356
|
privateDefaults() {
|
|
12357
12357
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
12358
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
12358
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$3();
|
|
12359
12359
|
}
|
|
12360
12360
|
|
|
12361
12361
|
// function to define props used within the scope of this component
|
|
@@ -12437,7 +12437,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
|
|
|
12437
12437
|
*
|
|
12438
12438
|
*/
|
|
12439
12439
|
static register(name = "auro-icon") {
|
|
12440
|
-
AuroLibraryRuntimeUtils$
|
|
12440
|
+
AuroLibraryRuntimeUtils$1$3.prototype.registerComponent(name, AuroIcon);
|
|
12441
12441
|
}
|
|
12442
12442
|
|
|
12443
12443
|
connectedCallback() {
|
|
@@ -12507,9 +12507,79 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
|
|
|
12507
12507
|
}
|
|
12508
12508
|
};
|
|
12509
12509
|
|
|
12510
|
-
var iconVersion$3 = '8.
|
|
12510
|
+
var iconVersion$3 = '8.0.4';
|
|
12511
|
+
|
|
12512
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
12513
|
+
// See LICENSE in the project root for license information.
|
|
12514
|
+
|
|
12515
|
+
// ---------------------------------------------------------------------
|
|
12516
|
+
|
|
12517
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
12518
|
+
|
|
12519
|
+
let AuroLibraryRuntimeUtils$7 = class AuroLibraryRuntimeUtils {
|
|
12520
|
+
|
|
12521
|
+
/* eslint-disable jsdoc/require-param */
|
|
12522
|
+
|
|
12523
|
+
/**
|
|
12524
|
+
* This will register a new custom element with the browser.
|
|
12525
|
+
* @param {String} name - The name of the custom element.
|
|
12526
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
12527
|
+
* @returns {void}
|
|
12528
|
+
*/
|
|
12529
|
+
registerComponent(name, componentClass) {
|
|
12530
|
+
if (!customElements.get(name)) {
|
|
12531
|
+
customElements.define(name, class extends componentClass {});
|
|
12532
|
+
}
|
|
12533
|
+
}
|
|
12511
12534
|
|
|
12512
|
-
var styleCss$9 = i$2`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
12535
|
+
/**
|
|
12536
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
12537
|
+
* @returns {void}
|
|
12538
|
+
*/
|
|
12539
|
+
closestElement(
|
|
12540
|
+
selector, // selector like in .closest()
|
|
12541
|
+
base = this, // extra functionality to skip a parent
|
|
12542
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
12543
|
+
!el || el === document || el === window
|
|
12544
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
12545
|
+
: found
|
|
12546
|
+
? found // found a selector INside this element
|
|
12547
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
12548
|
+
) {
|
|
12549
|
+
return __Closest(base);
|
|
12550
|
+
}
|
|
12551
|
+
/* eslint-enable jsdoc/require-param */
|
|
12552
|
+
|
|
12553
|
+
/**
|
|
12554
|
+
* 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.
|
|
12555
|
+
* @param {Object} elem - The element to check.
|
|
12556
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
12557
|
+
* @returns {void}
|
|
12558
|
+
*/
|
|
12559
|
+
handleComponentTagRename(elem, tagName) {
|
|
12560
|
+
const tag = tagName.toLowerCase();
|
|
12561
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
12562
|
+
|
|
12563
|
+
if (elemTag !== tag) {
|
|
12564
|
+
elem.setAttribute(tag, true);
|
|
12565
|
+
}
|
|
12566
|
+
}
|
|
12567
|
+
|
|
12568
|
+
/**
|
|
12569
|
+
* Validates if an element is a specific Auro component.
|
|
12570
|
+
* @param {Object} elem - The element to validate.
|
|
12571
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
12572
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
12573
|
+
*/
|
|
12574
|
+
elementMatch(elem, tagName) {
|
|
12575
|
+
const tag = tagName.toLowerCase();
|
|
12576
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
12577
|
+
|
|
12578
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
12579
|
+
}
|
|
12580
|
+
};
|
|
12581
|
+
|
|
12582
|
+
var styleCss$9 = i$2`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
12513
12583
|
|
|
12514
12584
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12515
12585
|
// See LICENSE in the project root for license information.
|
|
@@ -12519,12 +12589,13 @@ var styleCss$9 = i$2`.body-default{font-size:var(--wcss-body-default-font-size,
|
|
|
12519
12589
|
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
12520
12590
|
*
|
|
12521
12591
|
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
12592
|
+
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
12593
|
+
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
12522
12594
|
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
12523
|
-
* @attr {String} display - Determines the visual appearance of the header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
12524
|
-
* @attr {String} level - Determines the semantic heading level of the HTML element. Options are `1` - `6`
|
|
12525
12595
|
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
12526
12596
|
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
12527
12597
|
*/
|
|
12598
|
+
|
|
12528
12599
|
/* eslint complexity: ["error", 21] */
|
|
12529
12600
|
|
|
12530
12601
|
// build the component class
|
|
@@ -12537,7 +12608,7 @@ class AuroHeader extends i {
|
|
|
12537
12608
|
/**
|
|
12538
12609
|
* @private
|
|
12539
12610
|
*/
|
|
12540
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
12611
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$7();
|
|
12541
12612
|
}
|
|
12542
12613
|
|
|
12543
12614
|
// function to define props used within the scope of this component
|
|
@@ -12558,22 +12629,6 @@ class AuroHeader extends i {
|
|
|
12558
12629
|
return [styleCss$9];
|
|
12559
12630
|
}
|
|
12560
12631
|
|
|
12561
|
-
/**
|
|
12562
|
-
* Mapping of display values to their corresponding CSS classes
|
|
12563
|
-
* @private
|
|
12564
|
-
*/
|
|
12565
|
-
static get displayClassMap() {
|
|
12566
|
-
return {
|
|
12567
|
-
'display': 'heading-xl',
|
|
12568
|
-
'800': 'heading-xl',
|
|
12569
|
-
'700': 'heading-lg',
|
|
12570
|
-
'600': 'heading-md',
|
|
12571
|
-
'500': 'heading-sm',
|
|
12572
|
-
'400': 'heading-xs',
|
|
12573
|
-
'300': 'heading-2xs'
|
|
12574
|
-
};
|
|
12575
|
-
}
|
|
12576
|
-
|
|
12577
12632
|
/**
|
|
12578
12633
|
* This will register this element with the browser.
|
|
12579
12634
|
* @param {string} [name="auro-header"] - The name of element that you want to register to.
|
|
@@ -12583,7 +12638,7 @@ class AuroHeader extends i {
|
|
|
12583
12638
|
*
|
|
12584
12639
|
*/
|
|
12585
12640
|
static register(name = "auro-header") {
|
|
12586
|
-
AuroLibraryRuntimeUtils$
|
|
12641
|
+
AuroLibraryRuntimeUtils$7.prototype.registerComponent(name, AuroHeader);
|
|
12587
12642
|
}
|
|
12588
12643
|
|
|
12589
12644
|
firstUpdated() {
|
|
@@ -12650,42 +12705,23 @@ class AuroHeader extends i {
|
|
|
12650
12705
|
this.display = 'display';
|
|
12651
12706
|
}
|
|
12652
12707
|
|
|
12653
|
-
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
'heading': true,
|
|
12661
|
-
[`heading--${this.display}`]: true,
|
|
12662
|
-
[headingClass]: true
|
|
12663
|
-
};
|
|
12664
|
-
|
|
12665
|
-
// Add spacing classes to the class object if they exist
|
|
12666
|
-
if (spacingClasses) {
|
|
12667
|
-
const spacingClassArray = spacingClasses.split(' ');
|
|
12668
|
-
spacingClassArray.forEach(cls => {
|
|
12669
|
-
if (cls.trim()) {
|
|
12670
|
-
classObject[cls.trim()] = true;
|
|
12671
|
-
}
|
|
12672
|
-
});
|
|
12708
|
+
switch (level) {
|
|
12709
|
+
case '2': return x`<h2 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h2>`;
|
|
12710
|
+
case '3': return x`<h3 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h3>`;
|
|
12711
|
+
case '4': return x`<h4 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h4>`;
|
|
12712
|
+
case '5': return x`<h5 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h5>`;
|
|
12713
|
+
case '6': return x`<h6 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h6>`;
|
|
12714
|
+
default: return x`<h1 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h1>`;
|
|
12673
12715
|
}
|
|
12674
|
-
|
|
12675
|
-
const headerClasses = e$2(classObject);
|
|
12676
|
-
|
|
12677
|
-
// unsafeStatic dynamically creates tag names at runtime
|
|
12678
|
-
const tag = s$3(`h${headingLevel}`);
|
|
12679
|
-
return u$3`<${tag} class="${headerClasses}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></${tag}>`;
|
|
12680
12716
|
}
|
|
12681
|
-
|
|
12682
12717
|
// function that renders the HTML and CSS into the scope of the component
|
|
12718
|
+
|
|
12683
12719
|
render() {
|
|
12684
12720
|
return this.template(this.level);
|
|
12685
12721
|
}
|
|
12686
12722
|
}
|
|
12687
12723
|
|
|
12688
|
-
var headerVersion = '4.0.
|
|
12724
|
+
var headerVersion = '4.0.1';
|
|
12689
12725
|
|
|
12690
12726
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12691
12727
|
// See LICENSE in the project root for license information.
|
|
@@ -12698,7 +12734,7 @@ class AuroBibtemplate extends i {
|
|
|
12698
12734
|
|
|
12699
12735
|
this.large = false;
|
|
12700
12736
|
|
|
12701
|
-
AuroLibraryRuntimeUtils$
|
|
12737
|
+
AuroLibraryRuntimeUtils$3$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
12702
12738
|
|
|
12703
12739
|
const versioning = new AuroDependencyVersioning$2();
|
|
12704
12740
|
|
|
@@ -12750,7 +12786,7 @@ class AuroBibtemplate extends i {
|
|
|
12750
12786
|
*
|
|
12751
12787
|
*/
|
|
12752
12788
|
static register(name = "auro-bibtemplate") {
|
|
12753
|
-
AuroLibraryRuntimeUtils$
|
|
12789
|
+
AuroLibraryRuntimeUtils$3$1.prototype.registerComponent(name, AuroBibtemplate);
|
|
12754
12790
|
}
|
|
12755
12791
|
|
|
12756
12792
|
/**
|
|
@@ -12808,9 +12844,8 @@ class AuroBibtemplate extends i {
|
|
|
12808
12844
|
<div id="bibTemplate" part="bibtemplate">
|
|
12809
12845
|
${this.isFullscreen ? u$3`
|
|
12810
12846
|
<div id="headerContainer">
|
|
12811
|
-
<${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
12812
|
-
|
|
12813
|
-
<${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
|
|
12847
|
+
<${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
|
|
12848
|
+
<${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
|
|
12814
12849
|
</${this.buttonTag}>
|
|
12815
12850
|
<${this.headerTag} display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
|
|
12816
12851
|
<slot name="header"></slot>
|
|
@@ -14245,7 +14280,6 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14245
14280
|
?large="${this.largeFullscreenHeadline}"
|
|
14246
14281
|
?isFullscreen="${this.isFullscreen}"
|
|
14247
14282
|
@close-click="${this.utilCal.requestDismiss}">
|
|
14248
|
-
<span slot="ariaLabel.close">${this.slots["ariaLabel.close"]}</span>
|
|
14249
14283
|
|
|
14250
14284
|
<span slot="header">${this.slots["bib.fullscreen.headline"]}</span>
|
|
14251
14285
|
|
|
@@ -23656,9 +23690,6 @@ let AuroElement$2 = class AuroElement extends i {
|
|
|
23656
23690
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
23657
23691
|
* @attr id
|
|
23658
23692
|
*
|
|
23659
|
-
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
23660
|
-
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
23661
|
-
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
23662
23693
|
* @slot helpText - Sets the help text displayed below the input.
|
|
23663
23694
|
* @slot label - Sets the label text for the input.
|
|
23664
23695
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -26724,13 +26755,12 @@ class AuroInput extends BaseInput {
|
|
|
26724
26755
|
<${this.buttonTag}
|
|
26725
26756
|
@click="${this.handleClickClear}"
|
|
26726
26757
|
?onDark="${this.onDark}"
|
|
26758
|
+
aria-label="${i18n$1(this.lang, 'clearInput')}"
|
|
26727
26759
|
class="notificationBtn clearBtn"
|
|
26728
26760
|
shape="circle"
|
|
26729
26761
|
size="sm"
|
|
26730
26762
|
variant="ghost">
|
|
26731
|
-
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
26732
26763
|
<${this.iconTag}
|
|
26733
|
-
aria-hidden="true"
|
|
26734
26764
|
?customColor="${this.onDark}"
|
|
26735
26765
|
category="interface"
|
|
26736
26766
|
name="x-lg"
|
|
@@ -26753,23 +26783,18 @@ class AuroInput extends BaseInput {
|
|
|
26753
26783
|
@click="${this.handleClickShowPassword}"
|
|
26754
26784
|
?onDark="${this.onDark}"
|
|
26755
26785
|
class="notificationBtn passwordBtn"
|
|
26786
|
+
aria-label="${this.showPassword ? i18n$1(this.lang, "hidePassword") : i18n$1(this.lang, "showPassword")}"
|
|
26756
26787
|
shape="circle"
|
|
26757
26788
|
size="sm"
|
|
26758
26789
|
variant="ghost">
|
|
26759
|
-
<span>
|
|
26760
|
-
${this.showPassword ? u$3`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
26761
|
-
: u$3`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
26762
|
-
</span>
|
|
26763
26790
|
<${this.iconTag}
|
|
26764
26791
|
?customColor="${this.onDark}"
|
|
26765
|
-
aria-hidden="true"
|
|
26766
26792
|
?hidden=${!this.showPassword}
|
|
26767
26793
|
category="interface"
|
|
26768
26794
|
name="hide-password-stroke">
|
|
26769
26795
|
</${this.iconTag}>
|
|
26770
26796
|
<${this.iconTag}
|
|
26771
26797
|
?customColor="${this.onDark}"
|
|
26772
|
-
aria-hidden="true"
|
|
26773
26798
|
?hidden=${this.showPassword}
|
|
26774
26799
|
category="interface"
|
|
26775
26800
|
name="view-password-stroke">
|
|
@@ -27795,7 +27820,6 @@ var iconVersion = '8.0.1';
|
|
|
27795
27820
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
27796
27821
|
/**
|
|
27797
27822
|
* @slot helpText - Defines the content of the helpText.
|
|
27798
|
-
* @slot ariaLabel.close - Sets aria-label on close button in fullscreen bib
|
|
27799
27823
|
* @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
|
|
27800
27824
|
* @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
27801
27825
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -29335,7 +29359,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29335
29359
|
.monthNames="${this.monthNames}"
|
|
29336
29360
|
part="calendar"
|
|
29337
29361
|
>
|
|
29338
|
-
<slot name="ariaLabel.close" slot="ariaLabel.close" @slotchange="${this.handleSlotToSlot}">Close</slot>
|
|
29339
29362
|
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29340
29363
|
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29341
29364
|
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
@@ -84,7 +84,6 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
86
|
<auro-datepicker required="">
|
|
87
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
88
87
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
89
88
|
<span slot="fromLabel">Choose a date</span>
|
|
90
89
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @slot helpText - Defines the content of the helpText.
|
|
3
|
-
* @slot ariaLabel.close - Sets aria-label on close button in fullscreen bib
|
|
4
3
|
* @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
|
|
5
4
|
* @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
6
5
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|