@aurodesignsystem-dev/auro-nav 0.0.0-pr94.0 → 0.0.0-pr95.0
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/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!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}}
|
|
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
|
|
@@ -519,10 +519,10 @@ var buttonVersion = '12.3.0';
|
|
|
519
519
|
|
|
520
520
|
var iconVersion = '9.1.1';
|
|
521
521
|
|
|
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)}
|
|
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
|
`;
|
|
524
524
|
|
|
525
|
-
var styleCss = i$5`: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}
|
|
525
|
+
var styleCss = i$5`: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}
|
|
526
526
|
`;
|
|
527
527
|
|
|
528
528
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -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!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}}
|
|
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}
|
|
@@ -195,8 +195,8 @@ import{css as e,LitElement as t,html as o}from"lit";import{classMap as a}from"li
|
|
|
195
195
|
<slot></slot>
|
|
196
196
|
</div>
|
|
197
197
|
</div>
|
|
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
|
-
`,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}
|
|
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
|
+
`,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
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)}>
|
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!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}}
|
|
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}
|
|
@@ -201,8 +201,8 @@ let c=class{registerComponent(e,t){customElements.get(e)||customElements.define(
|
|
|
201
201
|
<slot></slot>
|
|
202
202
|
</div>
|
|
203
203
|
</div>
|
|
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
|
-
`,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}
|
|
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
|
+
`,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
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)}>
|
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-
|
|
10
|
+
"version": "0.0.0-pr95.0",
|
|
11
11
|
"description": "auro-nav HTML custom element",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|