@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.18 → 0.0.0-pr624.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/combobox/demo/api.min.js +30 -13
- package/components/combobox/demo/index.min.js +30 -13
- package/components/combobox/dist/index.js +30 -13
- package/components/combobox/dist/registered.js +30 -13
- package/components/datepicker/demo/api.md +9 -1
- package/components/datepicker/demo/api.min.js +680 -381
- package/components/datepicker/demo/index.md +68 -6
- package/components/datepicker/demo/index.min.js +680 -381
- package/components/datepicker/dist/auro-datepicker.d.ts +50 -11
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +516 -217
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +516 -217
- package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/input/demo/api.md +1 -0
- package/components/input/demo/api.min.js +30 -13
- package/components/input/demo/index.min.js +30 -13
- package/components/input/dist/auro-input.d.ts +174 -0
- package/components/input/dist/index.js +30 -13
- package/components/input/dist/registered.js +30 -13
- package/package.json +1 -1
- /package/components/datepicker/dist/styles/{emphasized/style-css.d.ts → snowflake/color-css.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
2
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
2
3
|
import { html, css, LitElement } from 'lit';
|
|
3
4
|
import { property } from 'lit/decorators.js';
|
|
4
|
-
import { classMap } from 'lit/directives/class-map.js';
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
6
|
import { repeat } from 'lit/directives/repeat.js';
|
|
7
7
|
|
|
@@ -1257,7 +1257,9 @@ var shapeSizeCss$2 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-class
|
|
|
1257
1257
|
|
|
1258
1258
|
var classicLayoutColor = css``;
|
|
1259
1259
|
|
|
1260
|
-
var
|
|
1260
|
+
var snowflakeStyle = css`.accents{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.accents.left{padding-right:var(--ds-size-100, 0.5rem)}.accents.right{width:var(--ds-size-400, 2rem)}.mainContent{height:100%;max-height:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.inputSection{display:flex;flex-direction:row;align-items:center}.inputSection:not(:is(.disabled,.hasFocus,.hasValue)) .inputDivider{display:none}.inputContainer{display:flex;flex-direction:row;align-items:center;width:100%}.inputContainer:first-of-type{justify-content:flex-end}.inputContainer:last-of-type{justify-content:flex-start}:host([disabled]) .inputSection{display:none}:host([layout*=snowflake]) [auro-input]{flex:1;text-align:center}:host([layout*=snowflake]) [auro-input]::part(label),:host([layout*=snowflake]) [auro-input]::part(accent-left),:host([layout*=snowflake]) [auro-input]::part(accent-right){display:none}:host([layout*=snowflake]) [auro-input]::part(input){padding-bottom:unset;text-align:center;font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);transition:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper){min-height:unset;max-height:unset;box-shadow:unset}:host([layout*=snowflake]) [auro-input]::part(wrapper) .mainContent{padding-bottom:unset}:host([layout*=snowflake]) [auro-input]::part(inputHelpText){display:none}:host([layout*=snowflake]) [auro-dropdown]::part(trigger){width:100%}:host([layout*=snowflake]) .dpTriggerContent{width:100%}:host([layout*=snowflake]) .wrapper{height:60px;width:calc(100% - 48px);display:flex;flex-direction:row;justify-content:space-between;padding-left:24px;padding-right:24px}:host([layout*=snowflake]) label{font-size:var(--ds-text-body-size-lg, 1.125rem);line-height:var(--ds-text-body-height-lg, 1.625rem);font-weight:450;letter-spacing:0}:host([layout*=snowflake]) label.hasFocus,:host([layout*=snowflake]) label.hasValue{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-height-xs, 1rem)}:host([layout*=snowflake]) .inputDivider{height:18px;margin:4px 12px;width:2px}`;
|
|
1261
|
+
|
|
1262
|
+
var snowflakeColors = css`:host([layout=snowflake])[disabled] .mainContent label ::slotted(*){color:var(--ds-auro-icon-color)}:host([layout=snowflake]) label{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .inputDivider{background-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) .error{color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout=snowflake]) [auro-input]::part(input)::placeholder{color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([layout=snowflake]) [auro-dropdown]:not(:is([error],.hasFocus))::part(wrapper){--ds-auro-dropdown-trigger-border-color: transparent}`;
|
|
1261
1263
|
|
|
1262
1264
|
var styleCss$d = css`:host{--calendar-width: 336px;--mobile-footer-height: 150px;--mobile-header-height: 68px;height:100vh;height:100dvh}.calendars{display:flex;flex-direction:row}.calendarNavButtons{position:absolute;top:var(--ds-size-200, 1rem);right:var(--ds-size-50, 0.25rem);left:var(--ds-size-50, 0.25rem)}.calendarNavBtn{display:flex;width:var(--ds-size-500, 2.5rem);height:var(--ds-size-500, 2.5rem);align-items:center;justify-content:center;border-width:1px;border-style:solid;border-radius:50%;cursor:pointer}.prevMonth,.nextMonth{position:absolute;top:0}.prevMonth{left:0}.nextMonth{right:0}.headerActions{padding:0 var(--ds-size-200, 1rem)}.mobileHeader{width:100%;height:var(--mobile-header-height);z-index:1;align-items:center;flex-direction:row}.headerDateFrom{display:flex;height:var(--mobile-header-height);flex:1;flex-direction:column;justify-content:center;padding:0 var(--ds-size-150, 0.75rem) 0 var(--ds-size-200, 1rem)}.mobileDateLabel{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}.headerDateTo{height:calc(var(--mobile-header-height) - var(--ds-size-300, 1.5rem));padding:var(--ds-size-300, 1.5rem) var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host(:not([noRange])) .headerDateTo{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center}:host(:not([noRange])) .headerDateTo:after{position:absolute;top:calc(50% + 10px);left:0;display:block;width:1px;height:var(--ds-size-300, 1.5rem);content:"";transform:translateY(-50%)}.mobileFooter{display:none;width:100%;align-items:flex-end;flex-direction:column;justify-content:flex-end}.mobileFooterActions{position:relative;bottom:0;left:50%;display:none;width:calc(100% - var(--ds-size-200, 1rem)*2);align-items:flex-end;flex-direction:column;justify-content:flex-end;padding:var(--ds-size-150) calc(var(--ds-size-200, 1rem));transform:translateX(-50%)}.mobileFooterActions auro-button{width:100%}:host([isfullscreen]){width:100%;max-height:100dvh;overflow:hidden}:host([isfullscreen]) .prevMonth,:host([isfullscreen]) .nextMonth{display:none}:host([isfullscreen]) .mobileHeader,:host([isfullscreen]) .mobileFooter,:host([isfullscreen]) .mobileFooterActions{display:flex}:host([isfullscreen]) .calendarWrapper{display:flex;flex-direction:column}:host([isfullscreen]) .calendars{display:flex;flex-direction:column;flex:1;align-items:center;width:100%;overscroll-behavior:contain}:host([isfullscreen]) .calendars:after{display:block;width:100%;height:var(--mobile-footer-height);content:""}`;
|
|
1263
1265
|
|
|
@@ -9914,7 +9916,7 @@ class AuroPopover extends LitElement {
|
|
|
9914
9916
|
}
|
|
9915
9917
|
}
|
|
9916
9918
|
|
|
9917
|
-
var popoverVersion = '
|
|
9919
|
+
var popoverVersion = '5.0.2';
|
|
9918
9920
|
|
|
9919
9921
|
/* eslint-disable max-lines, no-underscore-dangle, no-magic-numbers, no-underscore-dangle, max-params, no-void, init-declarations, no-extra-parens, arrow-parens, max-lines, line-comment-position, no-inline-comments, lit/binding-positions, lit/no-invalid-html */
|
|
9920
9922
|
|
|
@@ -11497,9 +11499,9 @@ let AuroLibraryRuntimeUtils$2$2 = class AuroLibraryRuntimeUtils {
|
|
|
11497
11499
|
|
|
11498
11500
|
var styleCss$2$2 = css`: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:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.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:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.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(0deg)}100%{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{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{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%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
11499
11501
|
|
|
11500
|
-
var colorCss$1$
|
|
11502
|
+
var colorCss$1$3 = 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}`;
|
|
11501
11503
|
|
|
11502
|
-
var tokensCss$1$
|
|
11504
|
+
var tokensCss$1$3 = css`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
11503
11505
|
|
|
11504
11506
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11505
11507
|
// See LICENSE in the project root for license information.
|
|
@@ -11576,8 +11578,8 @@ let AuroLoader$2 = class AuroLoader extends LitElement {
|
|
|
11576
11578
|
static get styles() {
|
|
11577
11579
|
return [
|
|
11578
11580
|
css`${styleCss$2$2}`,
|
|
11579
|
-
css`${colorCss$1$
|
|
11580
|
-
css`${tokensCss$1$
|
|
11581
|
+
css`${colorCss$1$3}`,
|
|
11582
|
+
css`${tokensCss$1$3}`
|
|
11581
11583
|
];
|
|
11582
11584
|
}
|
|
11583
11585
|
|
|
@@ -12062,7 +12064,7 @@ const cacheFetch$3 = (uri, options = {}) => {
|
|
|
12062
12064
|
return _fetchMap$3.get(uri);
|
|
12063
12065
|
};
|
|
12064
12066
|
|
|
12065
|
-
var styleCss$1$
|
|
12067
|
+
var styleCss$1$3 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
12066
12068
|
|
|
12067
12069
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12068
12070
|
// See LICENSE in the project root for license information.
|
|
@@ -12105,7 +12107,7 @@ let BaseIcon$3 = class BaseIcon extends AuroElement$6 {
|
|
|
12105
12107
|
|
|
12106
12108
|
static get styles() {
|
|
12107
12109
|
return css`
|
|
12108
|
-
${styleCss$1$
|
|
12110
|
+
${styleCss$1$3}
|
|
12109
12111
|
`;
|
|
12110
12112
|
}
|
|
12111
12113
|
|
|
@@ -12157,7 +12159,7 @@ var colorCss$8 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
12157
12159
|
|
|
12158
12160
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
12159
12161
|
|
|
12160
|
-
let AuroLibraryRuntimeUtils$1$
|
|
12162
|
+
let AuroLibraryRuntimeUtils$1$3 = class AuroLibraryRuntimeUtils {
|
|
12161
12163
|
|
|
12162
12164
|
/* eslint-disable jsdoc/require-param */
|
|
12163
12165
|
|
|
@@ -12239,7 +12241,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
|
|
|
12239
12241
|
*/
|
|
12240
12242
|
privateDefaults() {
|
|
12241
12243
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
12242
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$
|
|
12244
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$3();
|
|
12243
12245
|
}
|
|
12244
12246
|
|
|
12245
12247
|
// function to define props used within the scope of this component
|
|
@@ -12307,7 +12309,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
|
|
|
12307
12309
|
return [
|
|
12308
12310
|
super.styles,
|
|
12309
12311
|
css`${tokensCss$9}`,
|
|
12310
|
-
css`${styleCss$1$
|
|
12312
|
+
css`${styleCss$1$3}`,
|
|
12311
12313
|
css`${colorCss$8}`
|
|
12312
12314
|
];
|
|
12313
12315
|
}
|
|
@@ -12321,7 +12323,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
|
|
|
12321
12323
|
*
|
|
12322
12324
|
*/
|
|
12323
12325
|
static register(name = "auro-icon") {
|
|
12324
|
-
AuroLibraryRuntimeUtils$1$
|
|
12326
|
+
AuroLibraryRuntimeUtils$1$3.prototype.registerComponent(name, AuroIcon);
|
|
12325
12327
|
}
|
|
12326
12328
|
|
|
12327
12329
|
connectedCallback() {
|
|
@@ -13136,6 +13138,7 @@ let AuroElement$5 = class AuroElement extends LitElement {
|
|
|
13136
13138
|
* @private
|
|
13137
13139
|
*/
|
|
13138
13140
|
wrapper: {
|
|
13141
|
+
type: HTMLElement,
|
|
13139
13142
|
attribute: false,
|
|
13140
13143
|
reflect: false
|
|
13141
13144
|
}
|
|
@@ -13219,7 +13222,7 @@ let AuroElement$5 = class AuroElement extends LitElement {
|
|
|
13219
13222
|
}
|
|
13220
13223
|
};
|
|
13221
13224
|
|
|
13222
|
-
var styleCss$8 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none;transition:padding 300ms ease-out}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible,.auro-button:focus{outline:none;outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]),.auro-button:focus:not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=ghost]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button
|
|
13225
|
+
var styleCss$8 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none;transition:padding 300ms ease-out}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible,.auro-button:focus{outline:none;outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=secondary]):not([variant=tertiary]),.auro-button:focus:not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=ghost]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]),.auro-button--iconOnly:not(.auro-button--rounded):focus:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:padding 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after,.auro-button--rounded:focus:not([variant=flat]):after{border-radius:100px}:host([size=xs]) .wrapper:focus-visible,:host([size=xs]) .wrapper:focus{outline-width:1px;outline-offset:-2px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
13223
13226
|
|
|
13224
13227
|
var colorCss$7 = css`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text, #01426a)}.auro-button:not([ondark])[variant=ghost]:active:not(:disabled),.auro-button:not([ondark])[variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=ghost]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=ghost]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:active:not(:disabled),.auro-button[ondark][variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05))}.auro-button[ondark][variant=ghost]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
|
|
13225
13228
|
|
|
@@ -13444,13 +13447,14 @@ let AuroLoader$1 = class AuroLoader extends LitElement {
|
|
|
13444
13447
|
|
|
13445
13448
|
var loaderVersion$1 = '5.0.0';
|
|
13446
13449
|
|
|
13447
|
-
/* eslint-disable max-lines, curly
|
|
13450
|
+
/* eslint-disable max-lines, curly */
|
|
13448
13451
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13449
13452
|
// See LICENSE in the project root for license information.
|
|
13450
13453
|
|
|
13451
13454
|
|
|
13452
13455
|
/**
|
|
13453
13456
|
* @slot - Default slot for the text of the button.
|
|
13457
|
+
* @slot icon - Slot to provide auro-icon for the button.
|
|
13454
13458
|
* @csspart button - Apply CSS to HTML5 button.
|
|
13455
13459
|
* @csspart loader - Apply CSS to auro-loader.
|
|
13456
13460
|
* @csspart text - Apply CSS to text slot.
|
|
@@ -13511,21 +13515,6 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
13511
13515
|
* @private
|
|
13512
13516
|
*/
|
|
13513
13517
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion$1, AuroLoader$1);
|
|
13514
|
-
|
|
13515
|
-
/**
|
|
13516
|
-
* @private
|
|
13517
|
-
*/
|
|
13518
|
-
this.buttonHref = undefined;
|
|
13519
|
-
|
|
13520
|
-
/**
|
|
13521
|
-
* @private
|
|
13522
|
-
*/
|
|
13523
|
-
this.buttonTarget = undefined;
|
|
13524
|
-
|
|
13525
|
-
/**
|
|
13526
|
-
* @private
|
|
13527
|
-
*/
|
|
13528
|
-
this.buttonRel = undefined;
|
|
13529
13518
|
}
|
|
13530
13519
|
|
|
13531
13520
|
static get styles() {
|
|
@@ -13592,23 +13581,13 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
13592
13581
|
},
|
|
13593
13582
|
|
|
13594
13583
|
/**
|
|
13595
|
-
* Populates `
|
|
13584
|
+
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
13596
13585
|
*/
|
|
13597
13586
|
tIndex: {
|
|
13598
13587
|
type: String,
|
|
13599
13588
|
reflect: true
|
|
13600
13589
|
},
|
|
13601
13590
|
|
|
13602
|
-
/**
|
|
13603
|
-
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
13604
|
-
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
13605
|
-
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
13606
|
-
*/
|
|
13607
|
-
tabindex: {
|
|
13608
|
-
type: String,
|
|
13609
|
-
reflect: false
|
|
13610
|
-
},
|
|
13611
|
-
|
|
13612
13591
|
/**
|
|
13613
13592
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
13614
13593
|
*/
|
|
@@ -13641,27 +13620,6 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
13641
13620
|
type: String,
|
|
13642
13621
|
reflect: true
|
|
13643
13622
|
},
|
|
13644
|
-
|
|
13645
|
-
/**
|
|
13646
|
-
* @private
|
|
13647
|
-
*/
|
|
13648
|
-
buttonHref: {
|
|
13649
|
-
type: String,
|
|
13650
|
-
},
|
|
13651
|
-
|
|
13652
|
-
/**
|
|
13653
|
-
* @private
|
|
13654
|
-
*/
|
|
13655
|
-
buttonTarget: {
|
|
13656
|
-
type: String,
|
|
13657
|
-
},
|
|
13658
|
-
|
|
13659
|
-
/**
|
|
13660
|
-
* @private
|
|
13661
|
-
*/
|
|
13662
|
-
buttonRel: {
|
|
13663
|
-
type: String,
|
|
13664
|
-
},
|
|
13665
13623
|
};
|
|
13666
13624
|
}
|
|
13667
13625
|
|
|
@@ -13747,22 +13705,18 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
13747
13705
|
const classes = {
|
|
13748
13706
|
"util_insetLg--squish": true,
|
|
13749
13707
|
"auro-button": true,
|
|
13750
|
-
"icon-only": this.hideText,
|
|
13751
13708
|
wrapper: true,
|
|
13752
13709
|
loading: this.loading,
|
|
13753
13710
|
};
|
|
13754
13711
|
|
|
13755
|
-
const tag = this.buttonHref ? literal`a` : literal`button`;
|
|
13756
|
-
const part = this.buttonHref ? 'link' : 'button';
|
|
13757
|
-
|
|
13758
13712
|
return html$1`
|
|
13759
|
-
|
|
13760
|
-
part="
|
|
13713
|
+
<button
|
|
13714
|
+
part="button"
|
|
13761
13715
|
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
13762
13716
|
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
13763
|
-
|
|
13717
|
+
tabIndex="${ifDefined(this.tIndex)}"
|
|
13764
13718
|
?autofocus="${this.autofocus}"
|
|
13765
|
-
class
|
|
13719
|
+
class="${classMap(classes)}"
|
|
13766
13720
|
?disabled="${this.disabled || this.loading}"
|
|
13767
13721
|
?onDark="${this.onDark}"
|
|
13768
13722
|
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
@@ -13771,23 +13725,24 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
13771
13725
|
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
13772
13726
|
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
13773
13727
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
13774
|
-
href="${ifDefined(this.buttonHref || undefined)}"
|
|
13775
|
-
target="${ifDefined(this.buttonTarget || undefined)}"
|
|
13776
|
-
rel="${ifDefined(this.buttonRel || undefined)}"
|
|
13777
13728
|
>
|
|
13778
13729
|
${ifDefined(this.loading ? html$1`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
13779
13730
|
|
|
13780
13731
|
<span class="contentWrapper">
|
|
13781
13732
|
<span class="textSlot" part="text">
|
|
13782
|
-
|
|
13733
|
+
${this.hideText ? undefined : html$1`<slot></slot>`}
|
|
13734
|
+
</span>
|
|
13735
|
+
|
|
13736
|
+
<span part="icon">
|
|
13737
|
+
<slot name="icon"></slot>
|
|
13783
13738
|
</span>
|
|
13784
13739
|
</span>
|
|
13785
|
-
|
|
13740
|
+
</button>
|
|
13786
13741
|
`;
|
|
13787
13742
|
}
|
|
13788
13743
|
|
|
13789
13744
|
/**
|
|
13790
|
-
* Renders the layout of the button
|
|
13745
|
+
* Renders the layout of the button
|
|
13791
13746
|
* @returns {TemplateResult}
|
|
13792
13747
|
* @private
|
|
13793
13748
|
*/
|
|
@@ -13796,7 +13751,7 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
13796
13751
|
}
|
|
13797
13752
|
};
|
|
13798
13753
|
|
|
13799
|
-
var buttonVersion$1 = '
|
|
13754
|
+
var buttonVersion$1 = '10.0.0';
|
|
13800
13755
|
|
|
13801
13756
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
13802
13757
|
/**
|
|
@@ -16592,7 +16547,7 @@ var colorCss$3$1 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]
|
|
|
16592
16547
|
|
|
16593
16548
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
16594
16549
|
|
|
16595
|
-
let AuroLibraryRuntimeUtils$1$
|
|
16550
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
16596
16551
|
|
|
16597
16552
|
/* eslint-disable jsdoc/require-param */
|
|
16598
16553
|
|
|
@@ -16674,7 +16629,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
16674
16629
|
*/
|
|
16675
16630
|
privateDefaults() {
|
|
16676
16631
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
16677
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$
|
|
16632
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
16678
16633
|
}
|
|
16679
16634
|
|
|
16680
16635
|
// function to define props used within the scope of this component
|
|
@@ -16756,7 +16711,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
16756
16711
|
*
|
|
16757
16712
|
*/
|
|
16758
16713
|
static register(name = "auro-icon") {
|
|
16759
|
-
AuroLibraryRuntimeUtils$1$
|
|
16714
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroIcon);
|
|
16760
16715
|
}
|
|
16761
16716
|
|
|
16762
16717
|
connectedCallback() {
|
|
@@ -16828,11 +16783,11 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
16828
16783
|
|
|
16829
16784
|
var iconVersion$2 = '6.1.2';
|
|
16830
16785
|
|
|
16831
|
-
var styleCss$1$
|
|
16786
|
+
var styleCss$1$2 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
|
|
16832
16787
|
|
|
16833
16788
|
var colorCss$2$1 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
16834
16789
|
|
|
16835
|
-
var tokensCss$1$
|
|
16790
|
+
var tokensCss$1$2 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
|
|
16836
16791
|
|
|
16837
16792
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
16838
16793
|
// See LICENSE in the project root for license information.
|
|
@@ -16870,9 +16825,9 @@ class AuroDropdownBib extends LitElement {
|
|
|
16870
16825
|
|
|
16871
16826
|
static get styles() {
|
|
16872
16827
|
return [
|
|
16873
|
-
styleCss$1$
|
|
16828
|
+
styleCss$1$2,
|
|
16874
16829
|
colorCss$2$1,
|
|
16875
|
-
tokensCss$1$
|
|
16830
|
+
tokensCss$1$2
|
|
16876
16831
|
];
|
|
16877
16832
|
}
|
|
16878
16833
|
|
|
@@ -17029,7 +16984,7 @@ var dropdownVersion$1 = '3.0.0';
|
|
|
17029
16984
|
|
|
17030
16985
|
var shapeSizeCss$1 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
17031
16986
|
|
|
17032
|
-
var colorCss$1$
|
|
16987
|
+
var colorCss$1$2 = css`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
|
|
17033
16988
|
|
|
17034
16989
|
var classicColorCss$1 = css`:host([layout*=classic]:not([onDark])) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]:not([onDark])) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([layout*=classic]:not([onDark])) .trigger:focus-within,:host([layout*=classic]:not([onDark])) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic][disabled]:not([onDark])){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic][error]:not([onDark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic][error]:not([onDark])) .trigger:focus-within,:host([layout*=classic][error]:not([onDark])) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic][onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic][onDark]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([layout*=classic][onDark]) .trigger:focus-within,:host([layout*=classic][onDark]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic][onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([layout*=classic][onDark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic][onDark][error]) .trigger:focus-within,:host([layout*=classic][onDark][error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
|
|
17035
16990
|
|
|
@@ -17124,7 +17079,7 @@ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
|
17124
17079
|
*
|
|
17125
17080
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
17126
17081
|
*/
|
|
17127
|
-
let AuroHelpText$
|
|
17082
|
+
let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
17128
17083
|
|
|
17129
17084
|
constructor() {
|
|
17130
17085
|
super();
|
|
@@ -17245,7 +17200,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
17245
17200
|
}
|
|
17246
17201
|
};
|
|
17247
17202
|
|
|
17248
|
-
var helpTextVersion$
|
|
17203
|
+
var helpTextVersion$2 = '1.0.0';
|
|
17249
17204
|
|
|
17250
17205
|
let AuroElement$4 = class AuroElement extends LitElement {
|
|
17251
17206
|
static get properties() {
|
|
@@ -17463,7 +17418,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17463
17418
|
/**
|
|
17464
17419
|
* @private
|
|
17465
17420
|
*/
|
|
17466
|
-
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$
|
|
17421
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$2, AuroHelpText$2);
|
|
17467
17422
|
|
|
17468
17423
|
/**
|
|
17469
17424
|
* @private
|
|
@@ -17763,8 +17718,8 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
17763
17718
|
|
|
17764
17719
|
static get styles() {
|
|
17765
17720
|
return [
|
|
17766
|
-
colorCss$1$
|
|
17767
|
-
tokensCss$1$
|
|
17721
|
+
colorCss$1$2,
|
|
17722
|
+
tokensCss$1$2,
|
|
17768
17723
|
|
|
17769
17724
|
// default layout
|
|
17770
17725
|
classicColorCss$1,
|
|
@@ -24099,22 +24054,17 @@ class BaseInput extends AuroElement$2 {
|
|
|
24099
24054
|
* @returns {void}
|
|
24100
24055
|
*/
|
|
24101
24056
|
getPlaceholder() {
|
|
24102
|
-
|
|
24057
|
+
this.inputElement === this.getActiveElement();
|
|
24103
24058
|
|
|
24104
24059
|
// console.warn('isFocused', isFocused);
|
|
24105
24060
|
// console.warn(this.inputElement);
|
|
24106
24061
|
// console.warn(this.getActiveElement());
|
|
24107
24062
|
|
|
24108
|
-
if (!isFocused) {
|
|
24109
|
-
|
|
24110
|
-
|
|
24111
|
-
|
|
24112
|
-
|
|
24113
|
-
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
24114
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
24115
|
-
}
|
|
24116
|
-
} else {
|
|
24117
|
-
this.placeholderStr = '';
|
|
24063
|
+
// if (!isFocused) {
|
|
24064
|
+
if (this.placeholder) {
|
|
24065
|
+
this.placeholderStr = this.placeholder;
|
|
24066
|
+
} else if (this.type === 'date') {
|
|
24067
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
24118
24068
|
}
|
|
24119
24069
|
|
|
24120
24070
|
this.requestUpdate();
|
|
@@ -25199,7 +25149,7 @@ var shapeSize = css`.shape-rounded-xl{min-height:68px;max-height:68px;border-sty
|
|
|
25199
25149
|
|
|
25200
25150
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
25201
25151
|
|
|
25202
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
25152
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
25203
25153
|
|
|
25204
25154
|
/* eslint-disable jsdoc/require-param */
|
|
25205
25155
|
|
|
@@ -25262,11 +25212,11 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
25262
25212
|
}
|
|
25263
25213
|
};
|
|
25264
25214
|
|
|
25265
|
-
var styleCss$1 = css`: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:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.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:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.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(0deg)}100%{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{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{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%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
25215
|
+
var styleCss$1$1 = css`: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:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.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:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.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(0deg)}100%{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{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{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%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
25266
25216
|
|
|
25267
|
-
var colorCss$1 = 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}`;
|
|
25217
|
+
var colorCss$1$1 = 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}`;
|
|
25268
25218
|
|
|
25269
|
-
var tokensCss$1 = css`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
25219
|
+
var tokensCss$1$1 = css`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
25270
25220
|
|
|
25271
25221
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
25272
25222
|
// See LICENSE in the project root for license information.
|
|
@@ -25294,7 +25244,7 @@ class AuroLoader extends LitElement {
|
|
|
25294
25244
|
/**
|
|
25295
25245
|
* @private
|
|
25296
25246
|
*/
|
|
25297
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
25247
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
25298
25248
|
|
|
25299
25249
|
this.orbit = false;
|
|
25300
25250
|
this.ringworm = false;
|
|
@@ -25342,9 +25292,9 @@ class AuroLoader extends LitElement {
|
|
|
25342
25292
|
|
|
25343
25293
|
static get styles() {
|
|
25344
25294
|
return [
|
|
25345
|
-
css`${styleCss$1}`,
|
|
25346
|
-
css`${colorCss$1}`,
|
|
25347
|
-
css`${tokensCss$1}`
|
|
25295
|
+
css`${styleCss$1$1}`,
|
|
25296
|
+
css`${colorCss$1$1}`,
|
|
25297
|
+
css`${tokensCss$1$1}`
|
|
25348
25298
|
];
|
|
25349
25299
|
}
|
|
25350
25300
|
|
|
@@ -25357,7 +25307,7 @@ class AuroLoader extends LitElement {
|
|
|
25357
25307
|
*
|
|
25358
25308
|
*/
|
|
25359
25309
|
static register(name = "auro-loader") {
|
|
25360
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroLoader);
|
|
25310
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
|
|
25361
25311
|
}
|
|
25362
25312
|
|
|
25363
25313
|
firstUpdated() {
|
|
@@ -25848,7 +25798,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
25848
25798
|
*
|
|
25849
25799
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
25850
25800
|
*/
|
|
25851
|
-
class AuroHelpText extends LitElement {
|
|
25801
|
+
let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
25852
25802
|
|
|
25853
25803
|
constructor() {
|
|
25854
25804
|
super();
|
|
@@ -25967,9 +25917,9 @@ class AuroHelpText extends LitElement {
|
|
|
25967
25917
|
</div>
|
|
25968
25918
|
`;
|
|
25969
25919
|
}
|
|
25970
|
-
}
|
|
25920
|
+
};
|
|
25971
25921
|
|
|
25972
|
-
var helpTextVersion = '1.0.0';
|
|
25922
|
+
var helpTextVersion$1 = '1.0.0';
|
|
25973
25923
|
|
|
25974
25924
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
25975
25925
|
// See LICENSE in the project root for license information.
|
|
@@ -25999,7 +25949,7 @@ class AuroInput extends BaseInput {
|
|
|
25999
25949
|
/**
|
|
26000
25950
|
* @private
|
|
26001
25951
|
*/
|
|
26002
|
-
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
25952
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion$1, AuroHelpText$1);
|
|
26003
25953
|
|
|
26004
25954
|
/**
|
|
26005
25955
|
* @private
|
|
@@ -26007,6 +25957,20 @@ class AuroInput extends BaseInput {
|
|
|
26007
25957
|
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion$1, AuroIcon$1);
|
|
26008
25958
|
}
|
|
26009
25959
|
|
|
25960
|
+
static get properties() {
|
|
25961
|
+
return {
|
|
25962
|
+
...super.properties,
|
|
25963
|
+
|
|
25964
|
+
/**
|
|
25965
|
+
* @type {boolean}
|
|
25966
|
+
*/
|
|
25967
|
+
hideInputVisually: {
|
|
25968
|
+
type: Boolean,
|
|
25969
|
+
reflect: true,
|
|
25970
|
+
}
|
|
25971
|
+
};
|
|
25972
|
+
}
|
|
25973
|
+
|
|
26010
25974
|
static get styles() {
|
|
26011
25975
|
return [
|
|
26012
25976
|
css`${classicStyleCss}`,
|
|
@@ -26041,8 +26005,13 @@ class AuroInput extends BaseInput {
|
|
|
26041
26005
|
* @returns {object} - Returns classmap.
|
|
26042
26006
|
*/
|
|
26043
26007
|
get commonInputClasses() {
|
|
26008
|
+
console.log(`hideInputVisually: ${JSON.stringify(this.hideInputVisually)}`);
|
|
26044
26009
|
return {
|
|
26045
|
-
'util_displayHiddenVisually': this.
|
|
26010
|
+
'util_displayHiddenVisually': this.hideInputVisually !== undefined
|
|
26011
|
+
? this.hideInputVisually
|
|
26012
|
+
// eslint-disable-next-line no-warning-comments
|
|
26013
|
+
// TODO: refactor this to use a less brittle/forced solution.
|
|
26014
|
+
: this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
26046
26015
|
};
|
|
26047
26016
|
}
|
|
26048
26017
|
|
|
@@ -26054,7 +26023,10 @@ class AuroInput extends BaseInput {
|
|
|
26054
26023
|
get legacyInputClasses() {
|
|
26055
26024
|
return {
|
|
26056
26025
|
...this.commonInputClasses,
|
|
26057
|
-
'util_displayHiddenVisually':
|
|
26026
|
+
'util_displayHiddenVisually':
|
|
26027
|
+
this.hideInputVisually !== undefined
|
|
26028
|
+
? this.hideInputVisually
|
|
26029
|
+
: !this.hasFocus && !this.value
|
|
26058
26030
|
};
|
|
26059
26031
|
}
|
|
26060
26032
|
|
|
@@ -26484,6 +26456,214 @@ class AuroInput extends BaseInput {
|
|
|
26484
26456
|
|
|
26485
26457
|
var inputVersion = '4.2.0';
|
|
26486
26458
|
|
|
26459
|
+
var colorCss$1 = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
26460
|
+
|
|
26461
|
+
var styleCss$1 = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
26462
|
+
|
|
26463
|
+
var tokensCss$1 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
26464
|
+
|
|
26465
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
26466
|
+
// See LICENSE in the project root for license information.
|
|
26467
|
+
|
|
26468
|
+
// ---------------------------------------------------------------------
|
|
26469
|
+
|
|
26470
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
26471
|
+
|
|
26472
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
26473
|
+
|
|
26474
|
+
/* eslint-disable jsdoc/require-param */
|
|
26475
|
+
|
|
26476
|
+
/**
|
|
26477
|
+
* This will register a new custom element with the browser.
|
|
26478
|
+
* @param {String} name - The name of the custom element.
|
|
26479
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
26480
|
+
* @returns {void}
|
|
26481
|
+
*/
|
|
26482
|
+
registerComponent(name, componentClass) {
|
|
26483
|
+
if (!customElements.get(name)) {
|
|
26484
|
+
customElements.define(name, class extends componentClass {});
|
|
26485
|
+
}
|
|
26486
|
+
}
|
|
26487
|
+
|
|
26488
|
+
/**
|
|
26489
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
26490
|
+
* @returns {void}
|
|
26491
|
+
*/
|
|
26492
|
+
closestElement(
|
|
26493
|
+
selector, // selector like in .closest()
|
|
26494
|
+
base = this, // extra functionality to skip a parent
|
|
26495
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
26496
|
+
!el || el === document || el === window
|
|
26497
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
26498
|
+
: found
|
|
26499
|
+
? found // found a selector INside this element
|
|
26500
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
26501
|
+
) {
|
|
26502
|
+
return __Closest(base);
|
|
26503
|
+
}
|
|
26504
|
+
/* eslint-enable jsdoc/require-param */
|
|
26505
|
+
|
|
26506
|
+
/**
|
|
26507
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
26508
|
+
* @param {Object} elem - The element to check.
|
|
26509
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
26510
|
+
* @returns {void}
|
|
26511
|
+
*/
|
|
26512
|
+
handleComponentTagRename(elem, tagName) {
|
|
26513
|
+
const tag = tagName.toLowerCase();
|
|
26514
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
26515
|
+
|
|
26516
|
+
if (elemTag !== tag) {
|
|
26517
|
+
elem.setAttribute(tag, true);
|
|
26518
|
+
}
|
|
26519
|
+
}
|
|
26520
|
+
|
|
26521
|
+
/**
|
|
26522
|
+
* Validates if an element is a specific Auro component.
|
|
26523
|
+
* @param {Object} elem - The element to validate.
|
|
26524
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
26525
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
26526
|
+
*/
|
|
26527
|
+
elementMatch(elem, tagName) {
|
|
26528
|
+
const tag = tagName.toLowerCase();
|
|
26529
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
26530
|
+
|
|
26531
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
26532
|
+
}
|
|
26533
|
+
};
|
|
26534
|
+
|
|
26535
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
26536
|
+
// See LICENSE in the project root for license information.
|
|
26537
|
+
|
|
26538
|
+
|
|
26539
|
+
/**
|
|
26540
|
+
* Displays help text or error messages within form elements - Internal Use Only.
|
|
26541
|
+
*
|
|
26542
|
+
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
26543
|
+
*/
|
|
26544
|
+
class AuroHelpText extends LitElement {
|
|
26545
|
+
|
|
26546
|
+
constructor() {
|
|
26547
|
+
super();
|
|
26548
|
+
|
|
26549
|
+
this.error = false;
|
|
26550
|
+
this.onDark = false;
|
|
26551
|
+
this.hasTextContent = false;
|
|
26552
|
+
|
|
26553
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
26554
|
+
}
|
|
26555
|
+
|
|
26556
|
+
static get styles() {
|
|
26557
|
+
return [
|
|
26558
|
+
colorCss$1,
|
|
26559
|
+
styleCss$1,
|
|
26560
|
+
tokensCss$1
|
|
26561
|
+
];
|
|
26562
|
+
}
|
|
26563
|
+
|
|
26564
|
+
// function to define props used within the scope of this component
|
|
26565
|
+
static get properties() {
|
|
26566
|
+
return {
|
|
26567
|
+
|
|
26568
|
+
/**
|
|
26569
|
+
* @private
|
|
26570
|
+
*/
|
|
26571
|
+
slotNodes: {
|
|
26572
|
+
type: Boolean,
|
|
26573
|
+
},
|
|
26574
|
+
|
|
26575
|
+
/**
|
|
26576
|
+
* @private
|
|
26577
|
+
*/
|
|
26578
|
+
hasTextContent: {
|
|
26579
|
+
type: Boolean,
|
|
26580
|
+
},
|
|
26581
|
+
|
|
26582
|
+
/**
|
|
26583
|
+
* If declared, make font color red.
|
|
26584
|
+
*/
|
|
26585
|
+
error: {
|
|
26586
|
+
type: Boolean,
|
|
26587
|
+
reflect: true,
|
|
26588
|
+
},
|
|
26589
|
+
|
|
26590
|
+
/**
|
|
26591
|
+
* If declared, will apply onDark styles.
|
|
26592
|
+
*/
|
|
26593
|
+
onDark: {
|
|
26594
|
+
type: Boolean,
|
|
26595
|
+
reflect: true
|
|
26596
|
+
}
|
|
26597
|
+
};
|
|
26598
|
+
}
|
|
26599
|
+
|
|
26600
|
+
/**
|
|
26601
|
+
* This will register this element with the browser.
|
|
26602
|
+
* @param {string} [name="auro-helptext"] - The name of element that you want to register to.
|
|
26603
|
+
*
|
|
26604
|
+
* @example
|
|
26605
|
+
* AuroCheckbox.register("custom-helptext") // this will register this element to <custom-helptext/>
|
|
26606
|
+
*
|
|
26607
|
+
*/
|
|
26608
|
+
static register(name = "auro-helptext") {
|
|
26609
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHelpText);
|
|
26610
|
+
}
|
|
26611
|
+
|
|
26612
|
+
updated() {
|
|
26613
|
+
this.handleSlotChange();
|
|
26614
|
+
}
|
|
26615
|
+
|
|
26616
|
+
handleSlotChange(event) {
|
|
26617
|
+
if (event) {
|
|
26618
|
+
this.slotNodes = event.target.assignedNodes();
|
|
26619
|
+
}
|
|
26620
|
+
|
|
26621
|
+
this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
|
|
26622
|
+
}
|
|
26623
|
+
|
|
26624
|
+
/**
|
|
26625
|
+
* Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
|
|
26626
|
+
*
|
|
26627
|
+
* @param {NodeList|Array} nodes - The list of nodes to check for content.
|
|
26628
|
+
* @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
|
|
26629
|
+
* @private
|
|
26630
|
+
*/
|
|
26631
|
+
checkSlotsForContent(nodes) {
|
|
26632
|
+
if (!nodes) {
|
|
26633
|
+
return false;
|
|
26634
|
+
}
|
|
26635
|
+
|
|
26636
|
+
return nodes.some((node) => {
|
|
26637
|
+
if (node.textContent.trim()) {
|
|
26638
|
+
return true;
|
|
26639
|
+
}
|
|
26640
|
+
|
|
26641
|
+
if (!node.querySelector) {
|
|
26642
|
+
return false;
|
|
26643
|
+
}
|
|
26644
|
+
|
|
26645
|
+
const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
|
|
26646
|
+
if (!nestedSlot) {
|
|
26647
|
+
return false;
|
|
26648
|
+
}
|
|
26649
|
+
|
|
26650
|
+
const nestedSlotNodes = nestedSlot.assignedNodes();
|
|
26651
|
+
return this.checkSlotsForContent(nestedSlotNodes);
|
|
26652
|
+
});
|
|
26653
|
+
}
|
|
26654
|
+
|
|
26655
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
26656
|
+
render() {
|
|
26657
|
+
return html`
|
|
26658
|
+
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
26659
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
26660
|
+
</div>
|
|
26661
|
+
`;
|
|
26662
|
+
}
|
|
26663
|
+
}
|
|
26664
|
+
|
|
26665
|
+
var helpTextVersion = '1.0.0';
|
|
26666
|
+
|
|
26487
26667
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
26488
26668
|
static get properties() {
|
|
26489
26669
|
return {
|
|
@@ -27086,6 +27266,7 @@ var iconVersion = '8.0.1';
|
|
|
27086
27266
|
// See LICENSE in the project root for license information.
|
|
27087
27267
|
|
|
27088
27268
|
|
|
27269
|
+
|
|
27089
27270
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
27090
27271
|
/**
|
|
27091
27272
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -27162,8 +27343,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27162
27343
|
'December'
|
|
27163
27344
|
];
|
|
27164
27345
|
|
|
27165
|
-
this.monthFirst = true;
|
|
27166
|
-
|
|
27167
27346
|
// floaterConfig
|
|
27168
27347
|
this.placement = 'bottom-start';
|
|
27169
27348
|
this.offset = 0;
|
|
@@ -27220,7 +27399,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27220
27399
|
/**
|
|
27221
27400
|
* @private
|
|
27222
27401
|
*/
|
|
27223
|
-
this.
|
|
27402
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
27224
27403
|
|
|
27225
27404
|
// Layout Config
|
|
27226
27405
|
this.layout = 'classic';
|
|
@@ -27291,6 +27470,19 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27291
27470
|
reflect: true
|
|
27292
27471
|
},
|
|
27293
27472
|
|
|
27473
|
+
hasFocus: {
|
|
27474
|
+
type: Boolean,
|
|
27475
|
+
reflect: false,
|
|
27476
|
+
},
|
|
27477
|
+
|
|
27478
|
+
/**
|
|
27479
|
+
* @private
|
|
27480
|
+
*/
|
|
27481
|
+
hasValue: {
|
|
27482
|
+
type: Boolean,
|
|
27483
|
+
reflect: false,
|
|
27484
|
+
},
|
|
27485
|
+
|
|
27294
27486
|
/**
|
|
27295
27487
|
* Specifies the date format. The default is `mm/dd/yyyy`.
|
|
27296
27488
|
*/
|
|
@@ -27393,6 +27585,24 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27393
27585
|
reflect: true
|
|
27394
27586
|
},
|
|
27395
27587
|
|
|
27588
|
+
/**
|
|
27589
|
+
* Placeholder text to display in the input(s) when no value is set.
|
|
27590
|
+
*/
|
|
27591
|
+
placeholder: {
|
|
27592
|
+
type: String,
|
|
27593
|
+
reflect: true
|
|
27594
|
+
},
|
|
27595
|
+
|
|
27596
|
+
/**
|
|
27597
|
+
* Optional placeholder text to display in the second input when using date range.
|
|
27598
|
+
* By default, datepicker will use `placeholder` for both inputs if placeholder is
|
|
27599
|
+
* specified, but placeholderendDate is not.
|
|
27600
|
+
*/
|
|
27601
|
+
placeholderEndDate: {
|
|
27602
|
+
type: String,
|
|
27603
|
+
reflect: true
|
|
27604
|
+
},
|
|
27605
|
+
|
|
27396
27606
|
/**
|
|
27397
27607
|
* Position where the bib should appear relative to the trigger.
|
|
27398
27608
|
* Accepted values:
|
|
@@ -27513,7 +27723,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27513
27723
|
|
|
27514
27724
|
// layouts
|
|
27515
27725
|
classicLayoutColor,
|
|
27516
|
-
|
|
27726
|
+
snowflakeStyle,
|
|
27727
|
+
snowflakeColors
|
|
27517
27728
|
];
|
|
27518
27729
|
}
|
|
27519
27730
|
|
|
@@ -27579,6 +27790,10 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27579
27790
|
* @returns {void}
|
|
27580
27791
|
*/
|
|
27581
27792
|
focus(focusInput) {
|
|
27793
|
+
if (this.disabled) {
|
|
27794
|
+
return;
|
|
27795
|
+
}
|
|
27796
|
+
|
|
27582
27797
|
this.range && focusInput === 'endDate' ? this.inputList[1].focus() : this.inputList[0].focus();
|
|
27583
27798
|
}
|
|
27584
27799
|
|
|
@@ -27779,12 +27994,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27779
27994
|
* @returns {void}
|
|
27780
27995
|
*/
|
|
27781
27996
|
configureDatepicker() {
|
|
27782
|
-
document.addEventListener("focus", () => {
|
|
27783
|
-
console.info(document.activeElement);
|
|
27784
|
-
});
|
|
27785
|
-
|
|
27786
27997
|
this.addEventListener('focusin', () => {
|
|
27787
|
-
|
|
27788
27998
|
this.touched = true;
|
|
27789
27999
|
});
|
|
27790
28000
|
|
|
@@ -27854,6 +28064,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27854
28064
|
const convertedDate = this.convertWcTimeToDate(time);
|
|
27855
28065
|
const newDate = this.util.toCustomFormat(convertedDate, this.format);
|
|
27856
28066
|
|
|
28067
|
+
console.log(newDate);
|
|
28068
|
+
console.log(this.util.validDateStr(newDate, this.format));
|
|
28069
|
+
|
|
27857
28070
|
if (this.util.validDateStr(newDate, this.format)) {
|
|
27858
28071
|
if (this.inputList.length > 1) {
|
|
27859
28072
|
if (!this.value || !this.util.validDateStr(this.value, this.format)) {
|
|
@@ -27885,13 +28098,20 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27885
28098
|
}
|
|
27886
28099
|
|
|
27887
28100
|
/**
|
|
27888
|
-
* Resets
|
|
27889
|
-
* @returns {void}
|
|
28101
|
+
* Resets values without resetting validation.
|
|
27890
28102
|
*/
|
|
27891
|
-
|
|
28103
|
+
resetValues() {
|
|
27892
28104
|
this.inputList.forEach((input) => {
|
|
27893
28105
|
input.reset();
|
|
27894
28106
|
});
|
|
28107
|
+
}
|
|
28108
|
+
|
|
28109
|
+
/**
|
|
28110
|
+
* Resets component to initial state.
|
|
28111
|
+
* @returns {void}
|
|
28112
|
+
*/
|
|
28113
|
+
reset() {
|
|
28114
|
+
this.resetValues();
|
|
27895
28115
|
|
|
27896
28116
|
this.validation.reset(this);
|
|
27897
28117
|
}
|
|
@@ -27904,6 +28124,35 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27904
28124
|
this.validation.validate(this, force);
|
|
27905
28125
|
}
|
|
27906
28126
|
|
|
28127
|
+
setHasFocus() {
|
|
28128
|
+
if (this.disabled) {
|
|
28129
|
+
return;
|
|
28130
|
+
}
|
|
28131
|
+
|
|
28132
|
+
this.hasFocus = true;
|
|
28133
|
+
|
|
28134
|
+
// shadowroot active element is null if we focus the datepicker itself
|
|
28135
|
+
if (this.shadowRoot.activeElement === null) {
|
|
28136
|
+
// If the shadowRoot.activeElement is null, we can assume that the datepicker itself has focus
|
|
28137
|
+
// and we should focus the first input in the inputList
|
|
28138
|
+
this.inputList[0].focus();
|
|
28139
|
+
}
|
|
28140
|
+
}
|
|
28141
|
+
|
|
28142
|
+
setHasValue() {
|
|
28143
|
+
if (!this.range) {
|
|
28144
|
+
this.hasValue = this.value && this.value.length > 0;
|
|
28145
|
+
return;
|
|
28146
|
+
}
|
|
28147
|
+
|
|
28148
|
+
// eslint-disable-next-line no-extra-parens
|
|
28149
|
+
this.hasValue = (this.value && this.value.length > 0) || (this.valueEnd && this.valueEnd.length > 0);
|
|
28150
|
+
}
|
|
28151
|
+
|
|
28152
|
+
get hasError() {
|
|
28153
|
+
return this.validity !== undefined && this.validity !== 'valid';
|
|
28154
|
+
}
|
|
28155
|
+
|
|
27907
28156
|
updated(changedProperties) {
|
|
27908
28157
|
if (changedProperties.has('format')) {
|
|
27909
28158
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
@@ -27973,6 +28222,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27973
28222
|
}
|
|
27974
28223
|
|
|
27975
28224
|
this.validate();
|
|
28225
|
+
this.setHasValue();
|
|
27976
28226
|
}
|
|
27977
28227
|
|
|
27978
28228
|
if (changedProperties.has('valueEnd') && this.inputList[1]) {
|
|
@@ -28009,6 +28259,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28009
28259
|
}
|
|
28010
28260
|
|
|
28011
28261
|
this.validate();
|
|
28262
|
+
this.setHasValue();
|
|
28012
28263
|
}
|
|
28013
28264
|
|
|
28014
28265
|
if (changedProperties.has('error')) {
|
|
@@ -28141,26 +28392,15 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28141
28392
|
super.connectedCallback();
|
|
28142
28393
|
|
|
28143
28394
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
28144
|
-
}
|
|
28145
28395
|
|
|
28146
|
-
|
|
28147
|
-
|
|
28148
|
-
|
|
28149
|
-
|
|
28150
|
-
// eslint-disable-next-line no-extra-parens
|
|
28151
|
-
return (this.value && this.value.length > 0) || (this.valueEnd && this.valueEnd.length > 0);
|
|
28152
|
-
}
|
|
28396
|
+
// setup focus/blur event listeners
|
|
28397
|
+
this.addEventListener('focus', () => {
|
|
28398
|
+
this.setHasFocus();
|
|
28399
|
+
}, true);
|
|
28153
28400
|
|
|
28154
|
-
|
|
28155
|
-
|
|
28156
|
-
|
|
28157
|
-
hasFocus() {
|
|
28158
|
-
console.log(document.activeElement);
|
|
28159
|
-
return this.contains(document.activeElement);
|
|
28160
|
-
// return this.inputList ? this.inputList.some((input) => {
|
|
28161
|
-
// console.info("input.hasFocus", input.hasFocus);
|
|
28162
|
-
// return input.hasFocus
|
|
28163
|
-
// }) : false;
|
|
28401
|
+
this.addEventListener('blur', () => {
|
|
28402
|
+
this.hasFocus = false;
|
|
28403
|
+
}, true);
|
|
28164
28404
|
}
|
|
28165
28405
|
|
|
28166
28406
|
// layout render methods
|
|
@@ -28169,20 +28409,23 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28169
28409
|
/**
|
|
28170
28410
|
* Renders the snowflake layout for the datepicker.
|
|
28171
28411
|
* @private
|
|
28172
|
-
* @
|
|
28412
|
+
* @returns {import("lit").TemplateResult}
|
|
28173
28413
|
*/
|
|
28174
28414
|
renderSnowflakeLayout() {
|
|
28415
|
+
const accentsClassMap = {
|
|
28416
|
+
error: this.hasError
|
|
28417
|
+
};
|
|
28175
28418
|
|
|
28176
|
-
const
|
|
28177
|
-
|
|
28419
|
+
const inputSectionClassMap = {
|
|
28420
|
+
inputSection: true,
|
|
28178
28421
|
|
|
28179
|
-
|
|
28180
|
-
hasFocus:
|
|
28422
|
+
hasValue: this.hasValue,
|
|
28423
|
+
hasFocus: this.hasFocus,
|
|
28181
28424
|
};
|
|
28182
28425
|
|
|
28183
28426
|
const labelClassMap = {
|
|
28184
|
-
|
|
28185
|
-
hasFocus:
|
|
28427
|
+
hasValue: this.hasValue,
|
|
28428
|
+
hasFocus: this.hasFocus,
|
|
28186
28429
|
};
|
|
28187
28430
|
|
|
28188
28431
|
return html$1`
|
|
@@ -28194,14 +28437,17 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28194
28437
|
</div>
|
|
28195
28438
|
<div class="mainContent">
|
|
28196
28439
|
<label class="${classMap(labelClassMap)}" part="mainLabel">
|
|
28197
|
-
|
|
28440
|
+
<slot name="label"></slot>
|
|
28198
28441
|
</label>
|
|
28199
|
-
<div class="${classMap(
|
|
28200
|
-
${this.
|
|
28442
|
+
<div class="${classMap(inputSectionClassMap)}" part="inputSection">
|
|
28443
|
+
${this.renderHtmlInputs()}
|
|
28201
28444
|
</div>
|
|
28202
28445
|
</div>
|
|
28203
|
-
<div class="accents right">
|
|
28204
|
-
${this.
|
|
28446
|
+
<div class="accents right ${classMap(accentsClassMap)}">
|
|
28447
|
+
${this.hasError
|
|
28448
|
+
? this.renderHtmlIconError()
|
|
28449
|
+
: this.renderHtmlActionClear()
|
|
28450
|
+
}
|
|
28205
28451
|
</div>
|
|
28206
28452
|
</div>
|
|
28207
28453
|
`;
|
|
@@ -28219,62 +28465,70 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28219
28465
|
}
|
|
28220
28466
|
}
|
|
28221
28467
|
|
|
28222
|
-
|
|
28468
|
+
renderHtmlInputs() {
|
|
28223
28469
|
return html$1`
|
|
28224
|
-
|
|
28225
|
-
?disabled="${this.disabled}"
|
|
28226
|
-
?onDark="${this.onDark}"
|
|
28227
|
-
?required="${this.required}"
|
|
28228
|
-
id="${this.generateRandomString(12)}"
|
|
28229
|
-
.format="${this.format}"
|
|
28230
|
-
.max="${this.maxDate}"
|
|
28231
|
-
.min="${this.minDate}"
|
|
28232
|
-
.placeholder="${this.placeholder}"
|
|
28233
|
-
simple
|
|
28234
|
-
bordered
|
|
28235
|
-
noValidate
|
|
28236
|
-
class="dateFrom"
|
|
28237
|
-
type="date"
|
|
28238
|
-
part="input"
|
|
28239
|
-
shape="box"
|
|
28240
|
-
size="xl"
|
|
28241
|
-
setCustomValidity="${this.setCustomValidity}"
|
|
28242
|
-
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
28243
|
-
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
28244
|
-
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
28245
|
-
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
28246
|
-
inputmode="${ifDefined(this.inputmode)}"
|
|
28247
|
-
>
|
|
28248
|
-
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
28249
|
-
</${this.inputTag}>
|
|
28250
|
-
|
|
28251
|
-
<!-- Divider -->
|
|
28252
|
-
${this.range ? html$1`
|
|
28253
|
-
<div class="inputDivider"></div>
|
|
28254
|
-
` : undefined}
|
|
28255
|
-
|
|
28256
|
-
${this.range ? html$1`
|
|
28470
|
+
<div class="inputContainer">
|
|
28257
28471
|
<${this.inputTag}
|
|
28258
|
-
|
|
28259
|
-
bordered
|
|
28260
|
-
class="dateTo"
|
|
28472
|
+
?disabled="${this.disabled}"
|
|
28261
28473
|
?onDark="${this.onDark}"
|
|
28262
28474
|
?required="${this.required}"
|
|
28263
|
-
noValidate
|
|
28264
|
-
type="date"
|
|
28265
28475
|
.format="${this.format}"
|
|
28476
|
+
.hideInputVisually="${!this.hasValue && !this.hasFocus}"
|
|
28266
28477
|
.max="${this.maxDate}"
|
|
28267
28478
|
.min="${this.minDate}"
|
|
28479
|
+
id="${this.generateRandomString(12)}"
|
|
28480
|
+
placeholder="MM/DD"
|
|
28481
|
+
simple
|
|
28482
|
+
bordered
|
|
28483
|
+
noValidate
|
|
28484
|
+
class="dateFrom withValue"
|
|
28485
|
+
type="date"
|
|
28486
|
+
part="input"
|
|
28487
|
+
shape="box"
|
|
28488
|
+
size="xl"
|
|
28268
28489
|
setCustomValidity="${this.setCustomValidity}"
|
|
28269
28490
|
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
28270
28491
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
28271
28492
|
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
28272
28493
|
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
28273
|
-
|
|
28274
|
-
|
|
28275
|
-
<span slot="label"><slot name="
|
|
28494
|
+
inputmode="${ifDefined(this.inputmode)}"
|
|
28495
|
+
>
|
|
28496
|
+
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
28276
28497
|
</${this.inputTag}>
|
|
28277
|
-
|
|
28498
|
+
</div>
|
|
28499
|
+
|
|
28500
|
+
<!-- Divider -->
|
|
28501
|
+
${this.range ? html$1`
|
|
28502
|
+
<div class="inputDivider"></div>
|
|
28503
|
+
` : undefined}
|
|
28504
|
+
|
|
28505
|
+
${this.range ? html$1`
|
|
28506
|
+
<div class="inputContainer">
|
|
28507
|
+
<${this.inputTag}
|
|
28508
|
+
?onDark="${this.onDark}"
|
|
28509
|
+
?required="${this.required}"
|
|
28510
|
+
.format="${this.format}"
|
|
28511
|
+
.hideInputVisually="${!this.hasValue && !this.hasFocus}"
|
|
28512
|
+
.max="${this.maxDate}"
|
|
28513
|
+
.min="${this.minDate}"
|
|
28514
|
+
.placeholder="${this.placeholderEndDate || this.placeholder}"
|
|
28515
|
+
id="${this.generateRandomString(12)}"
|
|
28516
|
+
bordered
|
|
28517
|
+
class="dateTo"
|
|
28518
|
+
noValidate
|
|
28519
|
+
type="date"
|
|
28520
|
+
setCustomValidity="${this.setCustomValidity}"
|
|
28521
|
+
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
28522
|
+
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
28523
|
+
setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
|
|
28524
|
+
setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
|
|
28525
|
+
?disabled="${this.disabled}"
|
|
28526
|
+
part="input">
|
|
28527
|
+
<span slot="label"><slot name="toLabel"></slot></span>
|
|
28528
|
+
</${this.inputTag}>
|
|
28529
|
+
</div>
|
|
28530
|
+
` : undefined}
|
|
28531
|
+
`;
|
|
28278
28532
|
}
|
|
28279
28533
|
|
|
28280
28534
|
// ------------------------------------
|
|
@@ -28292,16 +28546,18 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28292
28546
|
return html$1`
|
|
28293
28547
|
<div class="${classMap(clearActionClassMap)}">
|
|
28294
28548
|
<${this.buttonTag}
|
|
28295
|
-
@click="${this.
|
|
28549
|
+
@click="${this.resetValues}"
|
|
28296
28550
|
?onDark="${this.onDark}"
|
|
28297
28551
|
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
28298
28552
|
class="notificationBtn clearBtn"
|
|
28299
|
-
|
|
28300
|
-
|
|
28553
|
+
shape="circle"
|
|
28554
|
+
size="sm"
|
|
28555
|
+
variant="ghost">
|
|
28301
28556
|
<${this.iconTag}
|
|
28557
|
+
?customColor="${this.onDark}"
|
|
28302
28558
|
category="interface"
|
|
28303
|
-
customColor
|
|
28304
28559
|
name="x-lg"
|
|
28560
|
+
slot="icon"
|
|
28305
28561
|
>
|
|
28306
28562
|
</${this.iconTag}>
|
|
28307
28563
|
</${this.buttonTag}>
|
|
@@ -28309,6 +28565,25 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28309
28565
|
`;
|
|
28310
28566
|
}
|
|
28311
28567
|
|
|
28568
|
+
renderHtmlIconError() {
|
|
28569
|
+
const clearActionClassMap = {
|
|
28570
|
+
'notification': true,
|
|
28571
|
+
'error': true,
|
|
28572
|
+
// 'util_displayHidden': (!this.value || this.value.length === 0) && (!this.valueEnd || this.valueEnd.length === 0),
|
|
28573
|
+
};
|
|
28574
|
+
|
|
28575
|
+
return html$1`
|
|
28576
|
+
<div class="${classMap(clearActionClassMap)}">
|
|
28577
|
+
<${this.iconTag}
|
|
28578
|
+
category="alert"
|
|
28579
|
+
customColor
|
|
28580
|
+
name="error-stroke"
|
|
28581
|
+
>
|
|
28582
|
+
</${this.iconTag}>
|
|
28583
|
+
</div>
|
|
28584
|
+
`;
|
|
28585
|
+
}
|
|
28586
|
+
|
|
28312
28587
|
renderHtmlIconCalendar() {
|
|
28313
28588
|
return html$1`
|
|
28314
28589
|
<${this.iconTag}
|
|
@@ -28321,8 +28596,38 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28321
28596
|
</${this.iconTag}>`;
|
|
28322
28597
|
}
|
|
28323
28598
|
|
|
28599
|
+
/**
|
|
28600
|
+
* Returns HTML for the help text and error message.
|
|
28601
|
+
* @private
|
|
28602
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
28603
|
+
*/
|
|
28604
|
+
renderHtmlHelpText() {
|
|
28605
|
+
return html$1`
|
|
28606
|
+
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
28607
|
+
? html$1`
|
|
28608
|
+
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
28609
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
28610
|
+
<slot name="helptext"></slot>
|
|
28611
|
+
</p>
|
|
28612
|
+
</${this.helpTextTag}>
|
|
28613
|
+
`
|
|
28614
|
+
: html$1`
|
|
28615
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
28616
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
28617
|
+
${this.errorMessage}
|
|
28618
|
+
</p>
|
|
28619
|
+
</${this.helpTextTag}>
|
|
28620
|
+
`
|
|
28621
|
+
}
|
|
28622
|
+
`;
|
|
28623
|
+
}
|
|
28624
|
+
|
|
28324
28625
|
// function that renders the HTML and CSS into the scope of the component
|
|
28325
28626
|
render() {
|
|
28627
|
+
const dropdownElementClassMap = {
|
|
28628
|
+
hasFocus: this.hasFocus
|
|
28629
|
+
};
|
|
28630
|
+
|
|
28326
28631
|
// Base HTML render() handles dropdown and calendar bib
|
|
28327
28632
|
return html$1`
|
|
28328
28633
|
<${this.dropdownTag}
|
|
@@ -28333,18 +28638,20 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28333
28638
|
?noFlip="${this.noFlip}"
|
|
28334
28639
|
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
28335
28640
|
.layout="${this.layout}"
|
|
28641
|
+
.matchWidth="${false}"
|
|
28336
28642
|
.offset="${this.offset}"
|
|
28337
28643
|
.placement="${this.placement}"
|
|
28338
28644
|
.shape="${this.shape}"
|
|
28339
28645
|
.size="${this.size}"
|
|
28340
28646
|
bordered
|
|
28647
|
+
class="${classMap(dropdownElementClassMap)}"
|
|
28341
28648
|
disableEventShow
|
|
28342
28649
|
fluid
|
|
28343
28650
|
for="dropdownMenu"
|
|
28344
28651
|
part="dropdown"
|
|
28345
28652
|
rounded
|
|
28346
28653
|
>
|
|
28347
|
-
<div slot="trigger" class="dpTriggerContent" part="trigger"
|
|
28654
|
+
<div slot="trigger" class="dpTriggerContent" part="trigger">
|
|
28348
28655
|
${this.renderLayoutFromAttributes()}
|
|
28349
28656
|
</div>
|
|
28350
28657
|
|
|
@@ -28367,17 +28674,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28367
28674
|
${this.range ? html$1`<span slot="mobileDateToStr">${this.valueEnd || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>` : undefined}
|
|
28368
28675
|
</auro-formkit-calendar>
|
|
28369
28676
|
</div>
|
|
28370
|
-
<
|
|
28371
|
-
|
|
28372
|
-
|
|
28373
|
-
? html$1`
|
|
28374
|
-
<slot name="helpText"></slot>
|
|
28375
|
-
` : html$1`
|
|
28376
|
-
<span role="alert" aria-live="assertive" part="helpText">
|
|
28377
|
-
${this.errorMessage}
|
|
28378
|
-
</span>`
|
|
28379
|
-
}
|
|
28380
|
-
</p>
|
|
28677
|
+
<div slot="helpText" part="helpTextSpan">
|
|
28678
|
+
${this.renderHtmlHelpText()}
|
|
28679
|
+
</div>
|
|
28381
28680
|
</${this.dropdownTag}>
|
|
28382
28681
|
`;
|
|
28383
28682
|
}
|