@aurodesignsystem-dev/auro-nav 0.0.0-pr91.1 → 0.0.0-pr91.3
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/custom-elements.json +1836 -1836
- package/demo/api.md +66 -68
- package/demo/auro-nav.min.js +3 -3
- package/dist/{auro-nav-CKl99nm7.js → auro-nav-DstqBH6d.js} +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/registered.js +1 -1
- package/package.json +5 -5
package/demo/api.md
CHANGED
|
@@ -5,98 +5,96 @@
|
|
|
5
5
|
|
|
6
6
|
### Properties & Attributes
|
|
7
7
|
|
|
8
|
-
| Properties
|
|
9
|
-
|
|
|
10
|
-
active
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
target
|
|
22
|
-
type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
8
|
+
| Properties | Attributes | Type | Default | Description |
|
|
9
|
+
| -------------- | -------------- | ------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
10
|
+
| active | active | boolean | | If set, the link is currently the active link in the parent auro-nav. |
|
|
11
|
+
| appearance | appearance | string | 'default' | Defines whether the component will be on lighter or darker backgrounds. |
|
|
12
|
+
| download | download | boolean | false | If true, the linked resource will be downloaded when the hyperlink is clicked. |
|
|
13
|
+
| fluid | fluid | boolean | | If true and `type="cta"`, the hyperlink will have a fluid-width UI. |
|
|
14
|
+
| href | href | string | | Defines the URL of the linked page. |
|
|
15
|
+
| ondark | ondark | boolean | false | DEPRECATED - use `appearance` instead. |
|
|
16
|
+
| referrerpolicy | referrerpolicy | boolean | | If true, sets `strict-origin-when-cross-origin` to control the referrer information sent with requests. |
|
|
17
|
+
| rel | rel | string | | Defines the relationship between the current document and the linked document. |
|
|
18
|
+
| relative | relative | boolean | false | If true, the auto URL re-write feature will be disabled. |
|
|
19
|
+
| role | | String | | Defines ARIA roles; currently supports `button` for extended experiences. |
|
|
20
|
+
| safeUri | | | | Returns a safe URI based on the provided `href` and `relative` parameters.<br>If `href` is truthy, it generates a safe URL using the `safeUrl` function.<br>Otherwise, it returns an empty string. |
|
|
21
|
+
| target | target | string | | Defines where to open the linked document. |
|
|
22
|
+
| type | type | string | | Defines the type of hyperlink; accepts `nav` or `cta`. |
|
|
23
|
+
| variant | variant | string | "primary" | Sets button variant option. |
|
|
24
|
+
|
|
26
25
|
### Methods
|
|
27
26
|
|
|
28
|
-
| Name
|
|
29
|
-
|
|
|
30
|
-
register | `name` (string) - The name of element that you want to register to. |
|
|
31
|
-
|
|
27
|
+
| Name | Parameters | Return | Description |
|
|
28
|
+
| -------- | ------------------------------------------------------------------- | ------ | ------------------------------------------------- |
|
|
29
|
+
| register | `name` (string) - The name of element that you want to register to. | | This will register this element with the browser. |
|
|
30
|
+
|
|
32
31
|
### CSS Shadow Parts
|
|
33
32
|
|
|
34
|
-
| Name
|
|
35
|
-
|
|
|
36
|
-
link
|
|
37
|
-
targetIcon | Allows styling to be applied to the icon that appears next to the hyperlink.
|
|
38
|
-
|
|
33
|
+
| Name | Description |
|
|
34
|
+
| ---------- | ---------------------------------------------------------------------------- |
|
|
35
|
+
| link | Allows styling to be applied to the `a` element. |
|
|
36
|
+
| targetIcon | Allows styling to be applied to the icon that appears next to the hyperlink. |
|
|
37
|
+
|
|
39
38
|
---
|
|
40
39
|
|
|
41
40
|
# auro-breadcrumb
|
|
42
41
|
|
|
43
42
|
### Properties & Attributes
|
|
44
43
|
|
|
45
|
-
| Properties
|
|
46
|
-
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
target
|
|
58
|
-
type
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
44
|
+
| Properties | Attributes | Type | Default | Description |
|
|
45
|
+
| -------------- | -------------- | ------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
46
|
+
| appearance | appearance | string | 'default' | Defines whether the component will be on lighter or darker backgrounds. |
|
|
47
|
+
| download | download | boolean | false | If true, the linked resource will be downloaded when the hyperlink is clicked. |
|
|
48
|
+
| fluid | fluid | boolean | | If true and `type="cta"`, the hyperlink will have a fluid-width UI. |
|
|
49
|
+
| href | href | string | | Defines the URL of the linked page. |
|
|
50
|
+
| ondark | ondark | boolean | false | DEPRECATED - use `appearance` instead. |
|
|
51
|
+
| referrerpolicy | referrerpolicy | boolean | | If true, sets `strict-origin-when-cross-origin` to control the referrer information sent with requests. |
|
|
52
|
+
| rel | rel | string | | Defines the relationship between the current document and the linked document. |
|
|
53
|
+
| relative | relative | boolean | false | If true, the auto URL re-write feature will be disabled. |
|
|
54
|
+
| role | | String | | Defines ARIA roles; currently supports `button` for extended experiences. |
|
|
55
|
+
| safeUri | | | | Returns a safe URI based on the provided `href` and `relative` parameters.<br>If `href` is truthy, it generates a safe URL using the `safeUrl` function.<br>Otherwise, it returns an empty string. |
|
|
56
|
+
| target | target | string | | Defines where to open the linked document. |
|
|
57
|
+
| type | type | string | | Defines the type of hyperlink; accepts `nav` or `cta`. |
|
|
58
|
+
| variant | variant | string | "primary" | Sets button variant option. |
|
|
59
|
+
|
|
62
60
|
### Methods
|
|
63
61
|
|
|
64
|
-
| Name
|
|
65
|
-
|
|
|
66
|
-
register | `name` (string) - The name of element that you want to register to. |
|
|
67
|
-
|
|
62
|
+
| Name | Parameters | Return | Description |
|
|
63
|
+
| -------- | ------------------------------------------------------------------- | ------ | ------------------------------------------------- |
|
|
64
|
+
| register | `name` (string) - The name of element that you want to register to. | | This will register this element with the browser. |
|
|
65
|
+
|
|
68
66
|
### CSS Shadow Parts
|
|
69
67
|
|
|
70
|
-
| Name
|
|
71
|
-
|
|
|
72
|
-
link
|
|
73
|
-
targetIcon | Allows styling to be applied to the icon that appears next to the hyperlink.
|
|
74
|
-
|
|
68
|
+
| Name | Description |
|
|
69
|
+
| ---------- | ---------------------------------------------------------------------------- |
|
|
70
|
+
| link | Allows styling to be applied to the `a` element. |
|
|
71
|
+
| targetIcon | Allows styling to be applied to the icon that appears next to the hyperlink. |
|
|
72
|
+
|
|
75
73
|
---
|
|
76
74
|
|
|
77
75
|
# auro-nav
|
|
78
76
|
|
|
79
77
|
### Properties & Attributes
|
|
80
78
|
|
|
81
|
-
| Properties
|
|
82
|
-
|
|
|
83
|
-
anchorNavContent | anchorNavContent | string
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
79
|
+
| Properties | Attributes | Type | Default | Description |
|
|
80
|
+
| ---------------- | ---------------- | ------- | --------- | -------------------------------------------------------------------------- |
|
|
81
|
+
| anchorNavContent | anchorNavContent | string | undefined | Defines the container that anchor links navigate within. |
|
|
82
|
+
| noHomeIcon | noHomeIcon | boolean | | If true, the home icon will not be displayed before first auro-breadcrumb. |
|
|
83
|
+
| | activeLink | object | undefined | If set, defines the currently active link. |
|
|
84
|
+
|
|
87
85
|
### Methods
|
|
88
86
|
|
|
89
|
-
| Name
|
|
90
|
-
|
|
|
91
|
-
register | `name` (string) - The name of element that you want to register to. |
|
|
92
|
-
|
|
87
|
+
| Name | Parameters | Return | Description |
|
|
88
|
+
| -------- | ------------------------------------------------------------------- | ------ | ------------------------------------------------- |
|
|
89
|
+
| register | `name` (string) - The name of element that you want to register to. | | This will register this element with the browser. |
|
|
90
|
+
|
|
93
91
|
### Slots
|
|
94
92
|
|
|
95
|
-
| Name
|
|
96
|
-
|
|
|
97
|
-
|
|
98
|
-
mobileToggleExpanded
|
|
99
|
-
|
|
93
|
+
| Name | Description |
|
|
94
|
+
| --------------------- | --------------------------------------------------------- |
|
|
95
|
+
| mobileToggleCollapsed | Slot for button text in mobile when content is collapsed. |
|
|
96
|
+
| mobileToggleExpanded | Slot for button text in mobile when content is expanded. |
|
|
97
|
+
| Slot | for insertion of navigation links. |
|
|
100
98
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
101
99
|
|
|
102
100
|
## API Examples
|
package/demo/auro-nav.min.js
CHANGED
|
@@ -352,7 +352,7 @@ class AuroAnchorlink extends be {
|
|
|
352
352
|
var colorBreadcrumbCss = i$5`:host{--ds-auro-hyperlink-visited-color-default: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-focus-color-default: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-hover-color-default: var(--ds-advanced-color-hyperlink-text-hover, #01426a)}:host:after{background-color:var(--ds-auro-breadcrumb-chevron-color)}:host ::slotted([auro-icon][name=home-stroke]),:host ::slotted([auro-icon][name=chevron-left]){color:var(--ds-auro-breadcrumb-icon-color)}:host(:hover){--ds-auro-breadcrumb-icon-color: var(--ds-advanced-color-hyperlink-text-hover, #01426a)}:host(:last-of-type){color:var(--ds-auro-breadcrumb-last-link-text-color)}
|
|
353
353
|
`;
|
|
354
354
|
|
|
355
|
-
var styleBreadcrumbCss = i$5`:host{display:inline-flex}:host .hyperlink:focus,:host .hyperlink:hover{text-decoration:underline}:host ::slotted([name=chevron-left]){display:none}:host:after{position:relative;display:inline-block;vertical-align:middle;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);
|
|
355
|
+
var styleBreadcrumbCss = i$5`:host{display:inline-flex!important;align-items:center;vertical-align:middle}:host .hyperlink{display:inline-flex!important;align-items:center}:host .hyperlink:focus,:host .hyperlink:hover{text-decoration:underline}:host ::slotted([name=chevron-left]){display:none}:host:after{position:relative;display:inline-block;vertical-align:middle;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:5px;margin-left:var(--ds-size-100, .5rem);content:"";-webkit-mask-box-image:url(https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist/icons/interface/chevron-right.svg);mask-image:url(https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist/icons/interface/chevron-right.svg);mask-repeat:no-repeat}:host a{text-decoration:none}@media screen and (max-width: 576px){:host ::slotted([name=chevron-left]){display:inline-block}:host ::slotted([name=home-stroke]){display:none}:host:after{content:unset}}:host(:not(:first-of-type)) ::slotted([name=home-stroke]){display:none}:host(:last-of-type):after{content:unset}@media screen and (max-width: 576px){:host(:not(:nth-last-of-type(2))){display:none}}
|
|
356
356
|
`;
|
|
357
357
|
|
|
358
358
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -451,7 +451,7 @@ class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),
|
|
|
451
451
|
</${this._renderTag}>
|
|
452
452
|
`}renderLayout(){return this.renderLayoutDefault()}}
|
|
453
453
|
|
|
454
|
-
class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}}var u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';class m extends i$2{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}}const g=new Map,f=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g.has(t)||g.set(t,fetch(t).then(e)),g.get(t)};var w=i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;
|
|
454
|
+
class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}}var u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';class m extends i$2{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}}const g=new Map,f=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g.has(t)||g.set(t,fetch(t).then(e)),g.get(t)};var w=i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;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;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
455
455
|
`;class z extends m{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...m.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return w}async fetchIcon(t,a){let e="";e="logos"===t?await f(`${this.uri}/${t}/${a}.svg`):await f(`${this.uri}/icons/${t}/${a}.svg`);return (new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const t=await this.fetchIcon(this.category,this.name);if(t)this.svg=t;else if(!t){const t=(new DOMParser).parseFromString(u,"text/html");this.svg=t.body.firstChild;}}}catch(t){this.svg=void 0;}}}i$5`.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}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
456
456
|
`;var y=i$5`:host{--ds-auro-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color: #02426D;--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}
|
|
457
457
|
`;var k=i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
@@ -517,7 +517,7 @@ class AuroDependencyVersioning {
|
|
|
517
517
|
|
|
518
518
|
var buttonVersion = '12.3.0';
|
|
519
519
|
|
|
520
|
-
var iconVersion = '9.1.
|
|
520
|
+
var iconVersion = '9.1.1';
|
|
521
521
|
|
|
522
522
|
var colorCss = i$5`:host([anchornav]) .label-container{color:var(--ds-auro-anchornav-label-color)}@media screen and (max-width: 576px){:host([anchornav]:not([aria-expanded])):before{background:var(--ds-auro-anchornav-mobile-background-gradient)}}.anchorMarker{background:var(--ds-auro-anchornav-selected-marker-color)}
|
|
523
523
|
`;
|
|
@@ -117,7 +117,7 @@ import{css as e,LitElement as t,html as o}from"lit";import{classMap as a}from"li
|
|
|
117
117
|
`,he=e`:host{display:block;border-width:1px;border-style:solid}:host a{display:block;text-decoration:none;width:100%;padding:var(--ds-size-100, .5rem) var(--ds-size-200, 1rem) var(--ds-size-100, .5rem) var(--ds-size-200, 1rem)}:host a:focus{outline:unset}:host .hyperlink{white-space:unset}:host(:focus){border-width:1px;border-style:solid;border-radius:5px}
|
|
118
118
|
`,ue=e`:host{--ds-auro-anchornav-label-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-anchornav-mobile-background-gradient: linear-gradient(180deg, rgba(255, 255, 255, .0001) 0%, rgba(255, 255, 255, .00874633) 6.67%, rgba(255, 255, 255, .0356065) 13.33%, rgba(255, 255, 255, .0817517) 20%, rgba(255, 255, 255, .147497) 26.67%, rgba(255, 255, 255, .231852) 33.33%, rgba(255, 255, 255, .331951) 40%, rgba(255, 255, 255, .442747) 46.67%, rgba(255, 255, 255, .557353) 53.33%, rgba(255, 255, 255, .668149) 60%, rgba(255, 255, 255, .768248) 66.67%, rgba(255, 255, 255, .852603) 73.33%, rgba(255, 255, 255, .918348) 80%, rgba(255, 255, 255, .964494) 86.67%, rgba(255, 255, 255, .991354) 93.33%, #FFFFFF 100%);--ds-auro-anchornav-selected-marker-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-anchorlink-border-color: transparent;--ds-auro-anchorlink-default-marker-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-anchorlink-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-anchorlink-text-hover-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-breadcrumb-chevron-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-breadcrumb-icon-color: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-breadcrumb-last-link-text-color: var(--ds-basic-color-texticon-muted, #676767)}
|
|
119
119
|
`;class pe extends le{static get properties(){return{...super.properties,active:{type:Boolean,reflect:!0}}}static get styles(){return[...le.styles,he,ce,ue]}static register(e="auro-anchorlink"){de.prototype.registerComponent(e,pe)}updated(e){e.has("active")&&this.active&&this.dispatchEvent(new CustomEvent("auroAnchorLink-activated",{bubbles:!0,composed:!0}))}firstUpdated(){de.prototype.handleComponentTagRename(this,"auro-anchorlink"),this.addEventListener("click",e=>{e.currentTarget.href?.startsWith("#")&&e.preventDefault(),this.active=!0})}}var be=e`:host{--ds-auro-hyperlink-visited-color-default: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-focus-color-default: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-hover-color-default: var(--ds-advanced-color-hyperlink-text-hover, #01426a)}:host:after{background-color:var(--ds-auro-breadcrumb-chevron-color)}:host ::slotted([auro-icon][name=home-stroke]),:host ::slotted([auro-icon][name=chevron-left]){color:var(--ds-auro-breadcrumb-icon-color)}:host(:hover){--ds-auro-breadcrumb-icon-color: var(--ds-advanced-color-hyperlink-text-hover, #01426a)}:host(:last-of-type){color:var(--ds-auro-breadcrumb-last-link-text-color)}
|
|
120
|
-
`,ve=e`:host{display:inline-flex}:host .hyperlink:focus,:host .hyperlink:hover{text-decoration:underline}:host ::slotted([name=chevron-left]){display:none}:host:after{position:relative;display:inline-block;vertical-align:middle;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);
|
|
120
|
+
`,ve=e`:host{display:inline-flex!important;align-items:center;vertical-align:middle}:host .hyperlink{display:inline-flex!important;align-items:center}:host .hyperlink:focus,:host .hyperlink:hover{text-decoration:underline}:host ::slotted([name=chevron-left]){display:none}:host:after{position:relative;display:inline-block;vertical-align:middle;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:5px;margin-left:var(--ds-size-100, .5rem);content:"";-webkit-mask-box-image:url(https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist/icons/interface/chevron-right.svg);mask-image:url(https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist/icons/interface/chevron-right.svg);mask-repeat:no-repeat}:host a{text-decoration:none}@media screen and (max-width: 576px){:host ::slotted([name=chevron-left]){display:inline-block}:host ::slotted([name=home-stroke]){display:none}:host:after{content:unset}}:host(:not(:first-of-type)) ::slotted([name=home-stroke]){display:none}:host(:last-of-type):after{content:unset}@media screen and (max-width: 576px){:host(:not(:nth-last-of-type(2))){display:none}}
|
|
121
121
|
`;class me extends le{static get styles(){return[...le.styles,ve,be,ue]}static register(e="auro-breadcrumb"){de.prototype.registerComponent(e,me)}firstUpdated(){de.prototype.handleComponentTagRename(this,"auro-breadcrumb"),this.addEventListener("click",e=>{e.currentTarget.href?.startsWith("#")&&e.preventDefault(),this.active=!0})}}class ge{generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const a=this.generateElementName(e,t),s=r`${n(a)}`;return customElements.get(a)||customElements.define(a,class extends o{}),s}}class fe{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,o=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,!0)}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}getSlotText(e,t){const o=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return(o?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}class xe{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,o=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,!0)}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}}var ye=e`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
122
122
|
`,we=e`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.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.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.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, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.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, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, 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"),var(--wcss-display-xl-family-fallback, 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"),var(--wcss-display-lg-family-fallback, 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"),var(--wcss-display-md-family-fallback, 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"),var(--wcss-display-sm-family-fallback, 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"),var(--wcss-display-xs-family-fallback, 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"),var(--wcss-heading-xl-family-fallback, 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"),var(--wcss-heading-lg-family-fallback, 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"),var(--wcss-heading-md-family-fallback, 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"),var(--wcss-heading-sm-family-fallback, 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"),var(--wcss-heading-xs-family-fallback, 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"),var(--wcss-heading-2xs-family-fallback, 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"),var(--wcss-accent-2xl-family-fallback, 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, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, 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, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, 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, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, 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, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, 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, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, 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, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs) * 6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
123
123
|
`,ze=e`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}
|
|
@@ -173,7 +173,7 @@ import{css as e,LitElement as t,html as o}from"lit";import{classMap as a}from"li
|
|
|
173
173
|
</span>
|
|
174
174
|
</span>
|
|
175
175
|
</${this._renderTag}>
|
|
176
|
-
`}renderLayout(){return this.renderLayoutDefault()}}class We{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,o=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,!0)}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}}class je extends t{static get properties(){return{hidden:{type:Boolean,reflect:!0},hiddenVisually:{type:Boolean,reflect:!0},hiddenAudible:{type:Boolean,reflect:!0}}}hideAudible(e){return e?"true":"false"}}const Xe=new Map,Ge=(e,t={})=>{const o=t.responseParser||(e=>e.text());return Xe.has(e)||Xe.set(e,fetch(e).then(o)),Xe.get(e)};var Pe=e`: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, .75rem))}:host{color:currentColor;vertical-align:middle;
|
|
176
|
+
`}renderLayout(){return this.renderLayoutDefault()}}class We{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,o=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,!0)}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}}class je extends t{static get properties(){return{hidden:{type:Boolean,reflect:!0},hiddenVisually:{type:Boolean,reflect:!0},hiddenAudible:{type:Boolean,reflect:!0}}}hideAudible(e){return e?"true":"false"}}const Xe=new Map,Ge=(e,t={})=>{const o=t.responseParser||(e=>e.text());return Xe.has(e)||Xe.set(e,fetch(e).then(o)),Xe.get(e)};var Pe=e`: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, .75rem))}:host{color:currentColor;vertical-align:middle;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;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
177
177
|
`;class Ve extends je{constructor(){super(),this.onDark=!1,this.appearance="default"}static get properties(){return{...je.properties,onDark:{type:Boolean,reflect:!0},appearance:{type:String,reflect:!0},svg:{attribute:!1,reflect:!0}}}static get styles(){return Pe}async fetchIcon(e,t){let o="";return o="logos"===e?await Ge(`${this.uri}/${e}/${t}.svg`):await Ge(`${this.uri}/icons/${e}/${t}.svg`),(new DOMParser).parseFromString(o,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const e=await this.fetchIcon(this.category,this.name);if(e)this.svg=e;else if(!e){const e=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>',"text/html");this.svg=e.body.firstChild}}}catch(e){this.svg=void 0}}}e`.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}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
178
178
|
`;var Je=e`:host{--ds-auro-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color: #02426D;--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}
|
|
179
179
|
`,Ke=e`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
@@ -197,7 +197,7 @@ import{css as e,LitElement as t,html as o}from"lit";import{classMap as a}from"li
|
|
|
197
197
|
</div>
|
|
198
198
|
`}}class Ye{generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const a=this.generateElementName(e,t),s=r`${n(a)}`;return customElements.get(a)||customElements.define(a,class extends o{}),s}}var Ze=e`:host([anchornav]) .label-container{color:var(--ds-auro-anchornav-label-color)}@media screen and (max-width: 576px){:host([anchornav]:not([aria-expanded])):before{background:var(--ds-auro-anchornav-mobile-background-gradient)}}.anchorMarker{background:var(--ds-auro-anchornav-selected-marker-color)}
|
|
199
199
|
`,et=e`:host([anchornav]){position:relative}:host([anchornav]) .label-container{padding-bottom:var(--ds-size-200, 1rem)}:host([anchornav]) .label-container.hidden{display:none}@media screen and (max-width: 576px){:host([anchornav]) .showHideBtn{display:block}}@media screen and (max-width: 576px){:host([anchornav]:not([aria-expanded])):before{position:absolute;bottom:0;left:0;display:block;width:100%;height:100%;content:"";pointer-events:none}:host([anchornav]:not([aria-expanded])) .showHideBtn [more]{display:none}:host([anchornav]:not([aria-expanded])) .showHideBtn [less]{display:inline}:host([anchornav]:not([aria-expanded])) ::slotted(auro-anchorlink){display:none}:host([anchornav]:not([aria-expanded])) ::slotted(auro-anchorlink:nth-of-type(1)),:host([anchornav]:not([aria-expanded])) ::slotted(auro-anchorlink:nth-of-type(2)),:host([anchornav]:not([aria-expanded])) ::slotted(auro-anchorlink:nth-of-type(3)){display:block}}.showHideBtn{display:none;margin-top:var(--ds-size-150, .75rem)}.showHideBtn [less]{display:none}.anchorMarker{position:absolute;left:0;display:none;width:2px}.anchorMarker:not([resizing]){transition:.4s ease-out}
|
|
200
|
-
`;class tt extends t{constructor(){super(),this.anchorNavContent=void 0;const e=new Ye;this.buttonTag=e.generateTag("auro-button","12.3.0",De),this.iconTag=e.generateTag("auro-icon","9.1.
|
|
200
|
+
`;class tt extends t{constructor(){super(),this.anchorNavContent=void 0;const e=new Ye;this.buttonTag=e.generateTag("auro-button","12.3.0",De),this.iconTag=e.generateTag("auro-icon","9.1.1",Qe),this.runtimeUtils=new de,this.activeLink=void 0,this.labelHidden=!0,this.mobileViewCollapsedNumLinks=3}static get properties(){return{activeLink:{type:Object},anchorNavContent:{type:String},noHomeIcon:{type:Boolean,reflect:!0}}}static get styles(){return[et,Ze,ue]}static register(e="auro-nav"){de.prototype.registerComponent(e,tt)}handleLabelSlot(){const e=this.shadowRoot.querySelector("#label");this.labelHidden=!0,e.assignedNodes().length>0&&(this.labelHidden=!1)}handleSlotItems(){this.manageBreadcrumbs(),this.manageAnchorlinks()}manageBreadcrumbs(){const e=[...this.querySelectorAll("auro-breadcrumb, [auro-breadcrumb]")];e.length>0&&e.forEach(e=>{this.noHomeIcon||this.insertIcon(e,"interface","home-stroke","--ds-auro-icon-size: var(--ds-size-200)"),this.insertIcon(e,"interface","chevron-left","--ds-auro-icon-size: var(--ds-size-300)")})}manageAnchorlinks(){this.anchorlinks=[...this.querySelectorAll("auro-anchorlink, [auro-anchorlink]")],this.anchorlinks.length>0&&(this.anchorlinks[0].setAttribute("active",!0),this.setAttribute("anchornav",!0),this.requestUpdate(),this.anchorlinks.forEach(e=>{e.active&&(this.activeLink=e),e.addEventListener("auroAnchorLink-activated",e=>{this.activeLink!==e.target&&(this.activeLink=e.target)}),e.addEventListener("click",e=>{if(this.scrollContainer&&this.activeLink){const t=document.querySelector(e.target.href);t&&t.scrollIntoView(t)}})}),this.assessActiveAnchorLink())}toggleAnchorLinks(){this.hasAttribute("aria-expanded")?this.removeAttribute("aria-expanded"):this.setAttribute("aria-expanded",!0),this.handleAnchorNavAnimation()}handleAnchorNavAnimation(){const e=this.shadowRoot.querySelector("#anchorMarker");e&&(this.activeLink?(e.style.display="block",e.style.height=`${this.activeLink.offsetHeight}px`,e.style.top=`${this.activeLink.offsetTop}px`):(e.style.display="none",e.style.height="unset",e.style.top="unset"))}insertIcon(e,t,o,a){const s=document.createElement(this.iconTag._$litStatic$);s.setAttribute("customColor",!0),s.category=t,s.name=o,s.style=a,s.style.position="relative",s.style.marginRight="0.25rem",e.insertAdjacentElement("afterbegin",s)}assessActiveAnchorLink(){let e;this.anchorlinks.forEach(t=>{const o=this.scrollContainer.querySelector(t.getAttribute("href"));o&&this.isScrolledIntoView(o)&&(e=t)}),this.activeLink!==e&&(this.activeLink=e)}isScrolledIntoView(e){return this.scrollContainer.scrollTop+this.scrollContainer.offsetHeight>=e.offsetTop+e.offsetHeight}updated(e){e.has("activeLink")&&this.hasAttribute("anchornav")&&(this.anchorlinks.forEach(e=>{this.activeLink!==e&&e.removeAttribute("active")}),this.handleAnchorNavAnimation())}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-nav"),this.scrollContainer=document.querySelector(this.anchorNavContent),this.scrollContainer&&this.scrollContainer.addEventListener("scroll",()=>{this.assessActiveAnchorLink()}),window.addEventListener("resize",()=>{const e=this.shadowRoot.querySelector("#anchorMarker");e&&(e.setAttribute("resizing",!0),this.handleAnchorNavAnimation(),e.removeAttribute("resizing"))})}render(){const e={hidden:this.labelHidden,"label-container":!0};return i`
|
|
201
201
|
<div aria-label="navigation" role="navigation">
|
|
202
202
|
<div class=${a(e)}>
|
|
203
203
|
<slot id="label" name="label" @slotchange="${this.handleLabelSlot}"></slot>
|
package/dist/index.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ let c=class{registerComponent(e,t){customElements.get(e)||customElements.define(
|
|
|
123
123
|
`,he=css`:host{display:block;border-width:1px;border-style:solid}:host a{display:block;text-decoration:none;width:100%;padding:var(--ds-size-100, .5rem) var(--ds-size-200, 1rem) var(--ds-size-100, .5rem) var(--ds-size-200, 1rem)}:host a:focus{outline:unset}:host .hyperlink{white-space:unset}:host(:focus){border-width:1px;border-style:solid;border-radius:5px}
|
|
124
124
|
`,ue=css`:host{--ds-auro-anchornav-label-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-anchornav-mobile-background-gradient: linear-gradient(180deg, rgba(255, 255, 255, .0001) 0%, rgba(255, 255, 255, .00874633) 6.67%, rgba(255, 255, 255, .0356065) 13.33%, rgba(255, 255, 255, .0817517) 20%, rgba(255, 255, 255, .147497) 26.67%, rgba(255, 255, 255, .231852) 33.33%, rgba(255, 255, 255, .331951) 40%, rgba(255, 255, 255, .442747) 46.67%, rgba(255, 255, 255, .557353) 53.33%, rgba(255, 255, 255, .668149) 60%, rgba(255, 255, 255, .768248) 66.67%, rgba(255, 255, 255, .852603) 73.33%, rgba(255, 255, 255, .918348) 80%, rgba(255, 255, 255, .964494) 86.67%, rgba(255, 255, 255, .991354) 93.33%, #FFFFFF 100%);--ds-auro-anchornav-selected-marker-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-anchorlink-border-color: transparent;--ds-auro-anchorlink-default-marker-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-anchorlink-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-anchorlink-text-hover-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-breadcrumb-chevron-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-breadcrumb-icon-color: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-breadcrumb-last-link-text-color: var(--ds-basic-color-texticon-muted, #676767)}
|
|
125
125
|
`;class pe extends le{static get properties(){return {...super.properties,active:{type:Boolean,reflect:true}}}static get styles(){return [...le.styles,he,ce,ue]}static register(e="auro-anchorlink"){de.prototype.registerComponent(e,pe);}updated(e){e.has("active")&&this.active&&this.dispatchEvent(new CustomEvent("auroAnchorLink-activated",{bubbles:true,composed:true}));}firstUpdated(){de.prototype.handleComponentTagRename(this,"auro-anchorlink"),this.addEventListener("click",e=>{e.currentTarget.href?.startsWith("#")&&e.preventDefault(),this.active=true;});}}var be=css`:host{--ds-auro-hyperlink-visited-color-default: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-focus-color-default: var(--ds-advanced-color-hyperlink-text, #2875b5);--ds-auro-hyperlink-hover-color-default: var(--ds-advanced-color-hyperlink-text-hover, #01426a)}:host:after{background-color:var(--ds-auro-breadcrumb-chevron-color)}:host ::slotted([auro-icon][name=home-stroke]),:host ::slotted([auro-icon][name=chevron-left]){color:var(--ds-auro-breadcrumb-icon-color)}:host(:hover){--ds-auro-breadcrumb-icon-color: var(--ds-advanced-color-hyperlink-text-hover, #01426a)}:host(:last-of-type){color:var(--ds-auro-breadcrumb-last-link-text-color)}
|
|
126
|
-
`,ve=css`:host{display:inline-flex}:host .hyperlink:focus,:host .hyperlink:hover{text-decoration:underline}:host ::slotted([name=chevron-left]){display:none}:host:after{position:relative;display:inline-block;vertical-align:middle;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);
|
|
126
|
+
`,ve=css`:host{display:inline-flex!important;align-items:center;vertical-align:middle}:host .hyperlink{display:inline-flex!important;align-items:center}:host .hyperlink:focus,:host .hyperlink:hover{text-decoration:underline}:host ::slotted([name=chevron-left]){display:none}:host:after{position:relative;display:inline-block;vertical-align:middle;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:5px;margin-left:var(--ds-size-100, .5rem);content:"";-webkit-mask-box-image:url(https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist/icons/interface/chevron-right.svg);mask-image:url(https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist/icons/interface/chevron-right.svg);mask-repeat:no-repeat}:host a{text-decoration:none}@media screen and (max-width: 576px){:host ::slotted([name=chevron-left]){display:inline-block}:host ::slotted([name=home-stroke]){display:none}:host:after{content:unset}}:host(:not(:first-of-type)) ::slotted([name=home-stroke]){display:none}:host(:last-of-type):after{content:unset}@media screen and (max-width: 576px){:host(:not(:nth-last-of-type(2))){display:none}}
|
|
127
127
|
`;class me extends le{static get styles(){return [...le.styles,ve,be,ue]}static register(e="auro-breadcrumb"){de.prototype.registerComponent(e,me);}firstUpdated(){de.prototype.handleComponentTagRename(this,"auro-breadcrumb"),this.addEventListener("click",e=>{e.currentTarget.href?.startsWith("#")&&e.preventDefault(),this.active=true;});}}class ge{generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const a=this.generateElementName(e,t),s=literal`${unsafeStatic(a)}`;return customElements.get(a)||customElements.define(a,class extends o{}),s}}class fe{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}getSlotText(e,t){const o=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return (o?.assignedNodes({flatten:true})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}class xe{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}}var ye=css`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
128
128
|
`,we=css`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.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.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.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, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.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, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, 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"),var(--wcss-display-xl-family-fallback, 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"),var(--wcss-display-lg-family-fallback, 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"),var(--wcss-display-md-family-fallback, 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"),var(--wcss-display-sm-family-fallback, 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"),var(--wcss-display-xs-family-fallback, 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"),var(--wcss-heading-xl-family-fallback, 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"),var(--wcss-heading-lg-family-fallback, 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"),var(--wcss-heading-md-family-fallback, 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"),var(--wcss-heading-sm-family-fallback, 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"),var(--wcss-heading-xs-family-fallback, 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"),var(--wcss-heading-2xs-family-fallback, 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"),var(--wcss-accent-2xl-family-fallback, 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, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, 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, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, 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, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, 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, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, 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, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, 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, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs) * 6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
129
129
|
`,ze=css`:host{--ds-auro-loader-background-color: currentcolor;--ds-auro-loader-border-color: currentcolor;--ds-auro-loader-color: currentcolor}
|
|
@@ -179,7 +179,7 @@ let c=class{registerComponent(e,t){customElements.get(e)||customElements.define(
|
|
|
179
179
|
</span>
|
|
180
180
|
</span>
|
|
181
181
|
</${this._renderTag}>
|
|
182
|
-
`}renderLayout(){return this.renderLayoutDefault()}}class We{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}}class je extends LitElement{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(e){return e?"true":"false"}}const Xe=new Map,Ge=(e,t={})=>{const o=t.responseParser||(e=>e.text());return Xe.has(e)||Xe.set(e,fetch(e).then(o)),Xe.get(e)};var Pe=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, .75rem))}:host{color:currentColor;vertical-align:middle;
|
|
182
|
+
`}renderLayout(){return this.renderLayoutDefault()}}class We{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{});}closestElement(e,t=this,o=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||o(t.getRootNode().host):null){return o(t)}handleComponentTagRename(e,t){const o=t.toLowerCase();e.tagName.toLowerCase()!==o&&e.setAttribute(o,true);}elementMatch(e,t){const o=t.toLowerCase();return e.tagName.toLowerCase()===o||e.hasAttribute(o)}}class je extends LitElement{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(e){return e?"true":"false"}}const Xe=new Map,Ge=(e,t={})=>{const o=t.responseParser||(e=>e.text());return Xe.has(e)||Xe.set(e,fetch(e).then(o)),Xe.get(e)};var Pe=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, .75rem))}:host{color:currentColor;vertical-align:middle;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;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
183
183
|
`;class Ve extends je{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...je.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return Pe}async fetchIcon(e,t){let o="";return o="logos"===e?await Ge(`${this.uri}/${e}/${t}.svg`):await Ge(`${this.uri}/icons/${e}/${t}.svg`),(new DOMParser).parseFromString(o,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const e=await this.fetchIcon(this.category,this.name);if(e)this.svg=e;else if(!e){const e=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>',"text/html");this.svg=e.body.firstChild;}}}catch(e){this.svg=void 0;}}}css`.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}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
184
184
|
`;var Je=css`:host{--ds-auro-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color: #02426D;--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}
|
|
185
185
|
`,Ke=css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
@@ -203,7 +203,7 @@ let c=class{registerComponent(e,t){customElements.get(e)||customElements.define(
|
|
|
203
203
|
</div>
|
|
204
204
|
`}}class Ye{generateElementName(e,t){let o=e;return o+="-",o+=t.replace(/[.]/g,"_"),o}generateTag(e,t,o){const a=this.generateElementName(e,t),s=literal`${unsafeStatic(a)}`;return customElements.get(a)||customElements.define(a,class extends o{}),s}}var Ze=css`:host([anchornav]) .label-container{color:var(--ds-auro-anchornav-label-color)}@media screen and (max-width: 576px){:host([anchornav]:not([aria-expanded])):before{background:var(--ds-auro-anchornav-mobile-background-gradient)}}.anchorMarker{background:var(--ds-auro-anchornav-selected-marker-color)}
|
|
205
205
|
`,et=css`:host([anchornav]){position:relative}:host([anchornav]) .label-container{padding-bottom:var(--ds-size-200, 1rem)}:host([anchornav]) .label-container.hidden{display:none}@media screen and (max-width: 576px){:host([anchornav]) .showHideBtn{display:block}}@media screen and (max-width: 576px){:host([anchornav]:not([aria-expanded])):before{position:absolute;bottom:0;left:0;display:block;width:100%;height:100%;content:"";pointer-events:none}:host([anchornav]:not([aria-expanded])) .showHideBtn [more]{display:none}:host([anchornav]:not([aria-expanded])) .showHideBtn [less]{display:inline}:host([anchornav]:not([aria-expanded])) ::slotted(auro-anchorlink){display:none}:host([anchornav]:not([aria-expanded])) ::slotted(auro-anchorlink:nth-of-type(1)),:host([anchornav]:not([aria-expanded])) ::slotted(auro-anchorlink:nth-of-type(2)),:host([anchornav]:not([aria-expanded])) ::slotted(auro-anchorlink:nth-of-type(3)){display:block}}.showHideBtn{display:none;margin-top:var(--ds-size-150, .75rem)}.showHideBtn [less]{display:none}.anchorMarker{position:absolute;left:0;display:none;width:2px}.anchorMarker:not([resizing]){transition:.4s ease-out}
|
|
206
|
-
`;class tt extends LitElement{constructor(){super(),this.anchorNavContent=void 0;const e=new Ye;this.buttonTag=e.generateTag("auro-button","12.3.0",De),this.iconTag=e.generateTag("auro-icon","9.1.
|
|
206
|
+
`;class tt extends LitElement{constructor(){super(),this.anchorNavContent=void 0;const e=new Ye;this.buttonTag=e.generateTag("auro-button","12.3.0",De),this.iconTag=e.generateTag("auro-icon","9.1.1",Qe),this.runtimeUtils=new de,this.activeLink=void 0,this.labelHidden=true,this.mobileViewCollapsedNumLinks=3;}static get properties(){return {activeLink:{type:Object},anchorNavContent:{type:String},noHomeIcon:{type:Boolean,reflect:true}}}static get styles(){return [et,Ze,ue]}static register(e="auro-nav"){de.prototype.registerComponent(e,tt);}handleLabelSlot(){const e=this.shadowRoot.querySelector("#label");this.labelHidden=true,e.assignedNodes().length>0&&(this.labelHidden=false);}handleSlotItems(){this.manageBreadcrumbs(),this.manageAnchorlinks();}manageBreadcrumbs(){const e=[...this.querySelectorAll("auro-breadcrumb, [auro-breadcrumb]")];e.length>0&&e.forEach(e=>{this.noHomeIcon||this.insertIcon(e,"interface","home-stroke","--ds-auro-icon-size: var(--ds-size-200)"),this.insertIcon(e,"interface","chevron-left","--ds-auro-icon-size: var(--ds-size-300)");});}manageAnchorlinks(){this.anchorlinks=[...this.querySelectorAll("auro-anchorlink, [auro-anchorlink]")],this.anchorlinks.length>0&&(this.anchorlinks[0].setAttribute("active",true),this.setAttribute("anchornav",true),this.requestUpdate(),this.anchorlinks.forEach(e=>{e.active&&(this.activeLink=e),e.addEventListener("auroAnchorLink-activated",e=>{this.activeLink!==e.target&&(this.activeLink=e.target);}),e.addEventListener("click",e=>{if(this.scrollContainer&&this.activeLink){const t=document.querySelector(e.target.href);t&&t.scrollIntoView(t);}});}),this.assessActiveAnchorLink());}toggleAnchorLinks(){this.hasAttribute("aria-expanded")?this.removeAttribute("aria-expanded"):this.setAttribute("aria-expanded",true),this.handleAnchorNavAnimation();}handleAnchorNavAnimation(){const e=this.shadowRoot.querySelector("#anchorMarker");e&&(this.activeLink?(e.style.display="block",e.style.height=`${this.activeLink.offsetHeight}px`,e.style.top=`${this.activeLink.offsetTop}px`):(e.style.display="none",e.style.height="unset",e.style.top="unset"));}insertIcon(e,t,o,a){const s=document.createElement(this.iconTag._$litStatic$);s.setAttribute("customColor",true),s.category=t,s.name=o,s.style=a,s.style.position="relative",s.style.marginRight="0.25rem",e.insertAdjacentElement("afterbegin",s);}assessActiveAnchorLink(){let e;this.anchorlinks.forEach(t=>{const o=this.scrollContainer.querySelector(t.getAttribute("href"));o&&this.isScrolledIntoView(o)&&(e=t);}),this.activeLink!==e&&(this.activeLink=e);}isScrolledIntoView(e){return this.scrollContainer.scrollTop+this.scrollContainer.offsetHeight>=e.offsetTop+e.offsetHeight}updated(e){e.has("activeLink")&&this.hasAttribute("anchornav")&&(this.anchorlinks.forEach(e=>{this.activeLink!==e&&e.removeAttribute("active");}),this.handleAnchorNavAnimation());}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-nav"),this.scrollContainer=document.querySelector(this.anchorNavContent),this.scrollContainer&&this.scrollContainer.addEventListener("scroll",()=>{this.assessActiveAnchorLink();}),window.addEventListener("resize",()=>{const e=this.shadowRoot.querySelector("#anchorMarker");e&&(e.setAttribute("resizing",true),this.handleAnchorNavAnimation(),e.removeAttribute("resizing"));});}render(){const e={hidden:this.labelHidden,"label-container":true};return html`
|
|
207
207
|
<div aria-label="navigation" role="navigation">
|
|
208
208
|
<div class=${classMap(e)}>
|
|
209
209
|
<slot id="label" name="label" @slotchange="${this.handleLabelSlot}"></slot>
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as AuroAnchorlink,A as AuroBreadcrumb,b as AuroNav}from"./auro-nav-
|
|
1
|
+
export{a as AuroAnchorlink,A as AuroBreadcrumb,b as AuroNav}from"./auro-nav-DstqBH6d.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"lit/static-html.js";import"lit/directives/ref.js";
|
package/dist/registered.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as i,a as t,b as r}from"./auro-nav-
|
|
1
|
+
import{A as i,a as t,b as r}from"./auro-nav-DstqBH6d.js";import"lit";import"lit/directives/class-map.js";import"lit/directives/if-defined.js";import"lit/static-html.js";import"lit/directives/ref.js";i.register(),t.register(),r.register();
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"================================================================================"
|
|
8
8
|
],
|
|
9
9
|
"name": "@aurodesignsystem-dev/auro-nav",
|
|
10
|
-
"version": "0.0.0-pr91.
|
|
10
|
+
"version": "0.0.0-pr91.3",
|
|
11
11
|
"description": "auro-nav HTML custom element",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@aurodesignsystem/auro-button": "^12.3.0",
|
|
28
|
-
"@aurodesignsystem/auro-cli": "^3.1.
|
|
28
|
+
"@aurodesignsystem/auro-cli": "^3.1.1",
|
|
29
29
|
"@aurodesignsystem/auro-config": "^1.3.1",
|
|
30
30
|
"@aurodesignsystem/auro-hyperlink": "^7.1.0",
|
|
31
|
-
"@aurodesignsystem/auro-icon": "^9.1.
|
|
31
|
+
"@aurodesignsystem/auro-icon": "^9.1.1",
|
|
32
32
|
"@aurodesignsystem/auro-library": "^5.5.4",
|
|
33
|
-
"@aurodesignsystem/design-tokens": "^8.
|
|
34
|
-
"@aurodesignsystem/webcorestylesheets": "^10.1.
|
|
33
|
+
"@aurodesignsystem/design-tokens": "^8.6.0",
|
|
34
|
+
"@aurodesignsystem/webcorestylesheets": "^10.1.4",
|
|
35
35
|
"husky": "^9.1.7"
|
|
36
36
|
},
|
|
37
37
|
"browserslist": [
|