@aurodesignsystem-dev/auro-formkit 0.0.0-pr1514.11 → 0.0.0-pr1514.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.min.js +97 -121
- package/components/combobox/demo/getting-started.min.js +97 -121
- package/components/combobox/demo/index.min.js +97 -121
- package/components/combobox/dist/index.js +96 -120
- package/components/combobox/dist/registered.js +96 -120
- package/components/counter/demo/customize.min.js +3 -11
- package/components/counter/demo/index.min.js +3 -11
- package/components/counter/dist/index.js +3 -11
- package/components/counter/dist/registered.js +3 -11
- package/components/datepicker/demo/customize.min.js +137 -249
- package/components/datepicker/demo/index.min.js +137 -249
- package/components/datepicker/dist/auro-calendar.d.ts +7 -26
- package/components/datepicker/dist/index.js +137 -249
- package/components/datepicker/dist/registered.js +137 -249
- package/components/dropdown/demo/customize.min.js +1 -2
- package/components/dropdown/demo/getting-started.min.js +1 -2
- package/components/dropdown/demo/index.min.js +1 -2
- package/components/dropdown/dist/index.js +1 -2
- package/components/dropdown/dist/registered.js +1 -2
- package/components/form/demo/customize.min.js +396 -687
- package/components/form/demo/getting-started.min.js +396 -687
- package/components/form/demo/index.min.js +396 -687
- package/components/form/demo/registerDemoDeps.min.js +396 -687
- package/components/input/demo/api.md +5 -5
- package/components/input/demo/customize.md +8 -8
- package/components/input/demo/customize.min.js +93 -116
- package/components/input/demo/getting-started.min.js +93 -116
- package/components/input/demo/index.min.js +93 -116
- package/components/input/dist/base-input.d.ts +44 -33
- package/components/input/dist/index.js +94 -129
- package/components/input/dist/registered.js +93 -116
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.md +0 -86
- package/components/select/demo/customize.min.js +63 -187
- package/components/select/demo/getting-started.min.js +110 -189
- package/components/select/demo/index.min.js +63 -187
- package/components/select/demo/keyboard-behavior.md +4 -18
- package/components/select/dist/auro-select.d.ts +8 -20
- package/components/select/dist/index.js +63 -187
- package/components/select/dist/registered.js +63 -187
- package/custom-elements.json +276 -482
- package/package.json +1 -1
|
@@ -4873,7 +4873,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
4873
4873
|
}
|
|
4874
4874
|
};
|
|
4875
4875
|
|
|
4876
|
-
var formkitVersion$2 = '
|
|
4876
|
+
var formkitVersion$2 = '202606291652';
|
|
4877
4877
|
|
|
4878
4878
|
let AuroElement$2 = class AuroElement extends i$3 {
|
|
4879
4879
|
static get properties() {
|
|
@@ -6145,7 +6145,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6145
6145
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
6146
6146
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
6147
6147
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
6148
|
-
aria-haspopup="${o(this.a11yRole === 'combobox' && !this.triggerContentFocusable ? 'listbox' : undefined)}"
|
|
6149
6148
|
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
6150
6149
|
aria-disabled="${o(this.disabled ? 'true' : undefined)}"
|
|
6151
6150
|
@focusin="${this.handleFocusin}"
|
|
@@ -16599,13 +16598,6 @@ class AuroInputUtilities {
|
|
|
16599
16598
|
* @returns {string | undefined}
|
|
16600
16599
|
*/
|
|
16601
16600
|
toFormattedValue(valueObject, format) {
|
|
16602
|
-
// Exposed publicly via `AuroInputUtil.toFormattedValue`, so a missing
|
|
16603
|
-
// `format` argument has to fail gracefully rather than throw on
|
|
16604
|
-
// `format.toLowerCase()`. Treat any falsy value (undefined, null, '')
|
|
16605
|
-
// as "no format → no display value".
|
|
16606
|
-
if (!format) {
|
|
16607
|
-
return undefined;
|
|
16608
|
-
}
|
|
16609
16601
|
const normalizedFormat = format.toLowerCase();
|
|
16610
16602
|
const maskOptions = this.getMaskOptions('date', normalizedFormat);
|
|
16611
16603
|
|
|
@@ -16756,18 +16748,79 @@ class BaseInput extends AuroElement$1 {
|
|
|
16756
16748
|
constructor() {
|
|
16757
16749
|
super();
|
|
16758
16750
|
|
|
16759
|
-
|
|
16760
|
-
|
|
16761
|
-
|
|
16762
|
-
|
|
16763
|
-
|
|
16764
|
-
|
|
16765
|
-
|
|
16766
|
-
|
|
16767
|
-
|
|
16768
|
-
|
|
16751
|
+
this.appearance = "default";
|
|
16752
|
+
this.disabled = false;
|
|
16753
|
+
this.layout = 'classic';
|
|
16754
|
+
this.locale = 'en-US';
|
|
16755
|
+
this.max = undefined;
|
|
16756
|
+
this._maxObject = undefined;
|
|
16757
|
+
this.maxLength = undefined;
|
|
16758
|
+
this.min = undefined;
|
|
16759
|
+
this._minObject = undefined;
|
|
16760
|
+
this.minLength = undefined;
|
|
16761
|
+
this.required = false;
|
|
16762
|
+
this.onDark = false;
|
|
16763
|
+
this.setCustomValidityForType = undefined;
|
|
16764
|
+
this.size = 'lg';
|
|
16765
|
+
this.shape = 'classic';
|
|
16766
|
+
this.value = undefined;
|
|
16767
|
+
this._valueObject = undefined;
|
|
16768
|
+
|
|
16769
|
+
this._initializePrivateDefaults();
|
|
16770
|
+
}
|
|
16771
|
+
|
|
16772
|
+
/**
|
|
16773
|
+
* Internal Defaults.
|
|
16774
|
+
* @private
|
|
16775
|
+
* @returns {void}
|
|
16776
|
+
*/
|
|
16777
|
+
_initializePrivateDefaults() {
|
|
16769
16778
|
this.activeLabel = false;
|
|
16770
|
-
|
|
16779
|
+
this.appearance = "default";
|
|
16780
|
+
this.icon = false;
|
|
16781
|
+
this.disabled = false;
|
|
16782
|
+
this.dvInputOnly = false;
|
|
16783
|
+
this.hideLabelVisually = false;
|
|
16784
|
+
this.max = undefined;
|
|
16785
|
+
this.maxLength = undefined;
|
|
16786
|
+
this.min = undefined;
|
|
16787
|
+
this.minLength = undefined;
|
|
16788
|
+
this.noValidate = false;
|
|
16789
|
+
this.onDark = false;
|
|
16790
|
+
this.required = false;
|
|
16791
|
+
this.setCustomValidityForType = undefined;
|
|
16792
|
+
|
|
16793
|
+
// Used for storing raw values returned from input mask.
|
|
16794
|
+
this._rawMaskValue = undefined;
|
|
16795
|
+
|
|
16796
|
+
/**
|
|
16797
|
+
* @private
|
|
16798
|
+
*/
|
|
16799
|
+
this.layout = 'classic';
|
|
16800
|
+
|
|
16801
|
+
/**
|
|
16802
|
+
* @private
|
|
16803
|
+
*/
|
|
16804
|
+
this.shape = 'classic';
|
|
16805
|
+
|
|
16806
|
+
/**
|
|
16807
|
+
* @private
|
|
16808
|
+
*/
|
|
16809
|
+
this.size = 'lg';
|
|
16810
|
+
|
|
16811
|
+
this.touched = false;
|
|
16812
|
+
this.util = new AuroInputUtilities({
|
|
16813
|
+
locale: "en-US",
|
|
16814
|
+
format: this.format
|
|
16815
|
+
});
|
|
16816
|
+
this.validation = new AuroFormValidation();
|
|
16817
|
+
this.inputIconName = undefined;
|
|
16818
|
+
this.showPassword = false;
|
|
16819
|
+
this.validationCCLength = undefined;
|
|
16820
|
+
this.hasValue = false;
|
|
16821
|
+
this.label = 'Input label is undefined';
|
|
16822
|
+
|
|
16823
|
+
|
|
16771
16824
|
this.allowedInputTypes = [
|
|
16772
16825
|
"text",
|
|
16773
16826
|
"number",
|
|
@@ -16776,8 +16829,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
16776
16829
|
"credit-card",
|
|
16777
16830
|
"tel"
|
|
16778
16831
|
];
|
|
16779
|
-
this.
|
|
16780
|
-
/** @private */
|
|
16832
|
+
this.icon = false;
|
|
16781
16833
|
this.dateFormatMap = {
|
|
16782
16834
|
'mm/dd/yyyy': 'dateMMDDYYYY',
|
|
16783
16835
|
'dd/mm/yyyy': 'dateDDMMYYYY',
|
|
@@ -16794,57 +16846,27 @@ class BaseInput extends AuroElement$1 {
|
|
|
16794
16846
|
'dd/mm': 'dateDDMM',
|
|
16795
16847
|
'mm/dd': 'dateMMDD'
|
|
16796
16848
|
};
|
|
16797
|
-
this.disabled = false;
|
|
16798
|
-
/** @private */
|
|
16799
16849
|
this.domHandler = new DomHandler();
|
|
16800
16850
|
this.dvInputOnly = false;
|
|
16801
16851
|
this.hasValue = false;
|
|
16802
|
-
this.hideLabelVisually = false;
|
|
16803
|
-
this.icon = false;
|
|
16804
|
-
/** @private */
|
|
16805
16852
|
this.inputIconName = undefined;
|
|
16806
|
-
/** @private */
|
|
16807
16853
|
this.label = 'Input label is undefined';
|
|
16808
|
-
this.layout = 'classic';
|
|
16809
|
-
this.locale = 'en-US';
|
|
16810
|
-
this.max = undefined;
|
|
16811
|
-
this._maxObject = undefined;
|
|
16812
|
-
this.maxLength = undefined;
|
|
16813
|
-
this.min = undefined;
|
|
16814
|
-
this._minObject = undefined;
|
|
16815
|
-
this.minLength = undefined;
|
|
16816
16854
|
this.noValidate = false;
|
|
16817
|
-
this.
|
|
16818
|
-
// Raw values returned from the input mask before model normalization.
|
|
16819
|
-
this._rawMaskValue = undefined;
|
|
16820
|
-
this.required = false;
|
|
16821
|
-
this.setCustomValidityForType = undefined;
|
|
16822
|
-
// Credit Card is intentionally excluded — its mask manages the cursor
|
|
16823
|
-
// itself, and listing it here caused cursor placement issues in Safari.
|
|
16824
|
-
/** @private */
|
|
16855
|
+
this._rawMaskValue = undefined; // Used for storing raw values returned from input mask.
|
|
16825
16856
|
this.setSelectionInputTypes = [
|
|
16826
16857
|
"text",
|
|
16827
16858
|
"password",
|
|
16828
16859
|
"email"
|
|
16829
|
-
];
|
|
16830
|
-
this.shape = 'classic';
|
|
16831
|
-
/** @private */
|
|
16860
|
+
]; // Credit Card is not included as this caused cursor placement issues in Safari.
|
|
16832
16861
|
this.showPassword = false;
|
|
16833
|
-
this.size = 'lg';
|
|
16834
16862
|
this.touched = false;
|
|
16835
|
-
/** @private */
|
|
16836
16863
|
this.uniqueId = new UniqueId().create();
|
|
16837
|
-
/** @private */
|
|
16838
16864
|
this.util = new AuroInputUtilities({
|
|
16839
16865
|
locale: this.locale,
|
|
16840
16866
|
format: this.format
|
|
16841
16867
|
});
|
|
16842
|
-
/** @private */
|
|
16843
16868
|
this.validation = new AuroFormValidation();
|
|
16844
|
-
/** @private */
|
|
16845
16869
|
this.validationCCLength = undefined;
|
|
16846
|
-
this.value = undefined;
|
|
16847
|
-
this._valueObject = undefined;
|
|
16848
16870
|
}
|
|
16849
16871
|
|
|
16850
16872
|
// function to define props used within the scope of this component
|
|
@@ -17392,15 +17414,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
17392
17414
|
|
|
17393
17415
|
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
17394
17416
|
|
|
17395
|
-
// Normalize the format token to lowercase so case-mixed values supplied
|
|
17396
|
-
// via attribute (e.g. `format="MM/DD/YYYY"`) hit the `dateFormatMap`
|
|
17397
|
-
// lookup inside `setCustomHelpTextMessage`. Without this, an uppercase
|
|
17398
|
-
// format silently misses the map and leaves `setCustomValidityForType`
|
|
17399
|
-
// unset.
|
|
17400
|
-
if (this.format) {
|
|
17401
|
-
this.format = this.format.toLowerCase();
|
|
17402
|
-
}
|
|
17403
|
-
|
|
17404
17417
|
// use validity message override if declared when initializing the component
|
|
17405
17418
|
if (this.hasAttribute('setCustomValidity')) {
|
|
17406
17419
|
this.ValidityMessageOverride = this.setCustomValidity;
|
|
@@ -17834,38 +17847,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
17834
17847
|
this.touched = true;
|
|
17835
17848
|
this.validation.validate(this);
|
|
17836
17849
|
}
|
|
17837
|
-
|
|
17838
|
-
// Prevents cursor jumping in Safari. Setting `this.value` triggers a Lit
|
|
17839
|
-
// update that can re-render the input and reset the native cursor; we
|
|
17840
|
-
// capture the caret position before that update commits and restore it
|
|
17841
|
-
// via `setSelectionRange` once the update has flushed. Gated on
|
|
17842
|
-
// `setSelectionInputTypes` so credit-card (and other masked types whose
|
|
17843
|
-
// formatter manages the cursor itself) doesn't get a competing write.
|
|
17844
|
-
// Capture the caret position INSIDE the gate — reading `selectionStart`
|
|
17845
|
-
// on input types that don't support text selection (number, email in
|
|
17846
|
-
// some browsers) throws InvalidStateError, which would crash all input
|
|
17847
|
-
// handling. Wrap the read in try/catch belt-and-suspenders even though
|
|
17848
|
-
// the gated types currently support it, since the list is a public
|
|
17849
|
-
// property a consumer could mutate.
|
|
17850
|
-
if (this.setSelectionInputTypes.includes(this.type)) {
|
|
17851
|
-
let selectionStart;
|
|
17852
|
-
try {
|
|
17853
|
-
selectionStart = this.inputElement.selectionStart;
|
|
17854
|
-
} catch (error) { // eslint-disable-line no-unused-vars
|
|
17855
|
-
return;
|
|
17856
|
-
}
|
|
17857
|
-
if (typeof selectionStart !== 'number') {
|
|
17858
|
-
return;
|
|
17859
|
-
}
|
|
17860
|
-
this.updateComplete.then(() => {
|
|
17861
|
-
try {
|
|
17862
|
-
this.inputElement.setSelectionRange(selectionStart, selectionStart);
|
|
17863
|
-
} catch (error) { // eslint-disable-line no-unused-vars
|
|
17864
|
-
// Some input types (number/email in certain UAs) throw on
|
|
17865
|
-
// setSelectionRange; swallow and let the native cursor stand.
|
|
17866
|
-
}
|
|
17867
|
-
});
|
|
17868
|
-
}
|
|
17869
17850
|
}
|
|
17870
17851
|
|
|
17871
17852
|
/**
|
|
@@ -18492,7 +18473,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
18492
18473
|
}
|
|
18493
18474
|
};
|
|
18494
18475
|
|
|
18495
|
-
var formkitVersion$1 = '
|
|
18476
|
+
var formkitVersion$1 = '202606291652';
|
|
18496
18477
|
|
|
18497
18478
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18498
18479
|
// See LICENSE in the project root for license information.
|
|
@@ -18995,7 +18976,6 @@ class AuroInput extends BaseInput {
|
|
|
18995
18976
|
<${this.buttonTag}
|
|
18996
18977
|
@click="${this.handleClickShowPassword}"
|
|
18997
18978
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
18998
|
-
aria-pressed="${this.showPassword ? 'true' : 'false'}"
|
|
18999
18979
|
class="notificationBtn passwordBtn"
|
|
19000
18980
|
shape="circle"
|
|
19001
18981
|
size="sm"
|
|
@@ -19069,29 +19049,25 @@ class AuroInput extends BaseInput {
|
|
|
19069
19049
|
* @returns {html} - Returns HTML for the help text and error message.
|
|
19070
19050
|
*/
|
|
19071
19051
|
renderHtmlHelpText() {
|
|
19072
|
-
// Single `<p>` with stable identity across validity transitions —
|
|
19073
|
-
// previously two distinct templates (valid vs invalid) caused Lit to
|
|
19074
|
-
// replace the node entirely on a flip, and VoiceOver wouldn't
|
|
19075
|
-
// re-announce because the live-region element it was watching had been
|
|
19076
|
-
// removed and a new one inserted. Keeping one node means the `role`,
|
|
19077
|
-
// `aria-live`, and text content all change in-place, which AT does
|
|
19078
|
-
// observe and announce.
|
|
19079
|
-
const isError = this.validity && this.validity !== 'valid';
|
|
19080
19052
|
return u$7`
|
|
19081
|
-
|
|
19082
|
-
|
|
19083
|
-
|
|
19084
|
-
|
|
19085
|
-
|
|
19086
|
-
|
|
19087
|
-
|
|
19088
|
-
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19092
|
-
|
|
19093
|
-
|
|
19094
|
-
|
|
19053
|
+
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
19054
|
+
? u$7`
|
|
19055
|
+
<${this.helpTextTag}
|
|
19056
|
+
appearance="${this.onDark ? 'inverse' : this.appearance}">
|
|
19057
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
19058
|
+
<slot name="helpText">${this.getHelpText()}</slot>
|
|
19059
|
+
</p>
|
|
19060
|
+
</${this.helpTextTag}>
|
|
19061
|
+
`
|
|
19062
|
+
: u$7`
|
|
19063
|
+
<${this.helpTextTag} error
|
|
19064
|
+
appearance="${this.onDark ? 'inverse' : this.appearance}">
|
|
19065
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
19066
|
+
${this.errorMessage}
|
|
19067
|
+
</p>
|
|
19068
|
+
</${this.helpTextTag}>
|
|
19069
|
+
`
|
|
19070
|
+
}
|
|
19095
19071
|
`;
|
|
19096
19072
|
}
|
|
19097
19073
|
|
|
@@ -19223,7 +19199,7 @@ class AuroInput extends BaseInput {
|
|
|
19223
19199
|
|
|
19224
19200
|
var colorCss$3 = i$6`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
19225
19201
|
|
|
19226
|
-
var styleCss$4 = i$6`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{padding:var(--ds-size-200, 1rem)}`;
|
|
19202
|
+
var styleCss$4 = i$6`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
19227
19203
|
|
|
19228
19204
|
var tokenCss = i$6`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
19229
19205
|
|
|
@@ -19618,7 +19594,7 @@ class AuroBibtemplate extends i$3 {
|
|
|
19618
19594
|
}
|
|
19619
19595
|
}
|
|
19620
19596
|
|
|
19621
|
-
var formkitVersion = '
|
|
19597
|
+
var formkitVersion = '202606291652';
|
|
19622
19598
|
|
|
19623
19599
|
var styleCss$3 = i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
19624
19600
|
|
|
@@ -4888,7 +4888,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
4888
4888
|
}
|
|
4889
4889
|
};
|
|
4890
4890
|
|
|
4891
|
-
var formkitVersion$2 = '
|
|
4891
|
+
var formkitVersion$2 = '202606291652';
|
|
4892
4892
|
|
|
4893
4893
|
let AuroElement$2 = class AuroElement extends i$3 {
|
|
4894
4894
|
static get properties() {
|
|
@@ -6160,7 +6160,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6160
6160
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
6161
6161
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
6162
6162
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
6163
|
-
aria-haspopup="${o(this.a11yRole === 'combobox' && !this.triggerContentFocusable ? 'listbox' : undefined)}"
|
|
6164
6163
|
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
6165
6164
|
aria-disabled="${o(this.disabled ? 'true' : undefined)}"
|
|
6166
6165
|
@focusin="${this.handleFocusin}"
|
|
@@ -16614,13 +16613,6 @@ class AuroInputUtilities {
|
|
|
16614
16613
|
* @returns {string | undefined}
|
|
16615
16614
|
*/
|
|
16616
16615
|
toFormattedValue(valueObject, format) {
|
|
16617
|
-
// Exposed publicly via `AuroInputUtil.toFormattedValue`, so a missing
|
|
16618
|
-
// `format` argument has to fail gracefully rather than throw on
|
|
16619
|
-
// `format.toLowerCase()`. Treat any falsy value (undefined, null, '')
|
|
16620
|
-
// as "no format → no display value".
|
|
16621
|
-
if (!format) {
|
|
16622
|
-
return undefined;
|
|
16623
|
-
}
|
|
16624
16616
|
const normalizedFormat = format.toLowerCase();
|
|
16625
16617
|
const maskOptions = this.getMaskOptions('date', normalizedFormat);
|
|
16626
16618
|
|
|
@@ -16771,18 +16763,79 @@ class BaseInput extends AuroElement$1 {
|
|
|
16771
16763
|
constructor() {
|
|
16772
16764
|
super();
|
|
16773
16765
|
|
|
16774
|
-
|
|
16775
|
-
|
|
16776
|
-
|
|
16777
|
-
|
|
16778
|
-
|
|
16779
|
-
|
|
16780
|
-
|
|
16781
|
-
|
|
16782
|
-
|
|
16783
|
-
|
|
16766
|
+
this.appearance = "default";
|
|
16767
|
+
this.disabled = false;
|
|
16768
|
+
this.layout = 'classic';
|
|
16769
|
+
this.locale = 'en-US';
|
|
16770
|
+
this.max = undefined;
|
|
16771
|
+
this._maxObject = undefined;
|
|
16772
|
+
this.maxLength = undefined;
|
|
16773
|
+
this.min = undefined;
|
|
16774
|
+
this._minObject = undefined;
|
|
16775
|
+
this.minLength = undefined;
|
|
16776
|
+
this.required = false;
|
|
16777
|
+
this.onDark = false;
|
|
16778
|
+
this.setCustomValidityForType = undefined;
|
|
16779
|
+
this.size = 'lg';
|
|
16780
|
+
this.shape = 'classic';
|
|
16781
|
+
this.value = undefined;
|
|
16782
|
+
this._valueObject = undefined;
|
|
16783
|
+
|
|
16784
|
+
this._initializePrivateDefaults();
|
|
16785
|
+
}
|
|
16786
|
+
|
|
16787
|
+
/**
|
|
16788
|
+
* Internal Defaults.
|
|
16789
|
+
* @private
|
|
16790
|
+
* @returns {void}
|
|
16791
|
+
*/
|
|
16792
|
+
_initializePrivateDefaults() {
|
|
16784
16793
|
this.activeLabel = false;
|
|
16785
|
-
|
|
16794
|
+
this.appearance = "default";
|
|
16795
|
+
this.icon = false;
|
|
16796
|
+
this.disabled = false;
|
|
16797
|
+
this.dvInputOnly = false;
|
|
16798
|
+
this.hideLabelVisually = false;
|
|
16799
|
+
this.max = undefined;
|
|
16800
|
+
this.maxLength = undefined;
|
|
16801
|
+
this.min = undefined;
|
|
16802
|
+
this.minLength = undefined;
|
|
16803
|
+
this.noValidate = false;
|
|
16804
|
+
this.onDark = false;
|
|
16805
|
+
this.required = false;
|
|
16806
|
+
this.setCustomValidityForType = undefined;
|
|
16807
|
+
|
|
16808
|
+
// Used for storing raw values returned from input mask.
|
|
16809
|
+
this._rawMaskValue = undefined;
|
|
16810
|
+
|
|
16811
|
+
/**
|
|
16812
|
+
* @private
|
|
16813
|
+
*/
|
|
16814
|
+
this.layout = 'classic';
|
|
16815
|
+
|
|
16816
|
+
/**
|
|
16817
|
+
* @private
|
|
16818
|
+
*/
|
|
16819
|
+
this.shape = 'classic';
|
|
16820
|
+
|
|
16821
|
+
/**
|
|
16822
|
+
* @private
|
|
16823
|
+
*/
|
|
16824
|
+
this.size = 'lg';
|
|
16825
|
+
|
|
16826
|
+
this.touched = false;
|
|
16827
|
+
this.util = new AuroInputUtilities({
|
|
16828
|
+
locale: "en-US",
|
|
16829
|
+
format: this.format
|
|
16830
|
+
});
|
|
16831
|
+
this.validation = new AuroFormValidation();
|
|
16832
|
+
this.inputIconName = undefined;
|
|
16833
|
+
this.showPassword = false;
|
|
16834
|
+
this.validationCCLength = undefined;
|
|
16835
|
+
this.hasValue = false;
|
|
16836
|
+
this.label = 'Input label is undefined';
|
|
16837
|
+
|
|
16838
|
+
|
|
16786
16839
|
this.allowedInputTypes = [
|
|
16787
16840
|
"text",
|
|
16788
16841
|
"number",
|
|
@@ -16791,8 +16844,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
16791
16844
|
"credit-card",
|
|
16792
16845
|
"tel"
|
|
16793
16846
|
];
|
|
16794
|
-
this.
|
|
16795
|
-
/** @private */
|
|
16847
|
+
this.icon = false;
|
|
16796
16848
|
this.dateFormatMap = {
|
|
16797
16849
|
'mm/dd/yyyy': 'dateMMDDYYYY',
|
|
16798
16850
|
'dd/mm/yyyy': 'dateDDMMYYYY',
|
|
@@ -16809,57 +16861,27 @@ class BaseInput extends AuroElement$1 {
|
|
|
16809
16861
|
'dd/mm': 'dateDDMM',
|
|
16810
16862
|
'mm/dd': 'dateMMDD'
|
|
16811
16863
|
};
|
|
16812
|
-
this.disabled = false;
|
|
16813
|
-
/** @private */
|
|
16814
16864
|
this.domHandler = new DomHandler();
|
|
16815
16865
|
this.dvInputOnly = false;
|
|
16816
16866
|
this.hasValue = false;
|
|
16817
|
-
this.hideLabelVisually = false;
|
|
16818
|
-
this.icon = false;
|
|
16819
|
-
/** @private */
|
|
16820
16867
|
this.inputIconName = undefined;
|
|
16821
|
-
/** @private */
|
|
16822
16868
|
this.label = 'Input label is undefined';
|
|
16823
|
-
this.layout = 'classic';
|
|
16824
|
-
this.locale = 'en-US';
|
|
16825
|
-
this.max = undefined;
|
|
16826
|
-
this._maxObject = undefined;
|
|
16827
|
-
this.maxLength = undefined;
|
|
16828
|
-
this.min = undefined;
|
|
16829
|
-
this._minObject = undefined;
|
|
16830
|
-
this.minLength = undefined;
|
|
16831
16869
|
this.noValidate = false;
|
|
16832
|
-
this.
|
|
16833
|
-
// Raw values returned from the input mask before model normalization.
|
|
16834
|
-
this._rawMaskValue = undefined;
|
|
16835
|
-
this.required = false;
|
|
16836
|
-
this.setCustomValidityForType = undefined;
|
|
16837
|
-
// Credit Card is intentionally excluded — its mask manages the cursor
|
|
16838
|
-
// itself, and listing it here caused cursor placement issues in Safari.
|
|
16839
|
-
/** @private */
|
|
16870
|
+
this._rawMaskValue = undefined; // Used for storing raw values returned from input mask.
|
|
16840
16871
|
this.setSelectionInputTypes = [
|
|
16841
16872
|
"text",
|
|
16842
16873
|
"password",
|
|
16843
16874
|
"email"
|
|
16844
|
-
];
|
|
16845
|
-
this.shape = 'classic';
|
|
16846
|
-
/** @private */
|
|
16875
|
+
]; // Credit Card is not included as this caused cursor placement issues in Safari.
|
|
16847
16876
|
this.showPassword = false;
|
|
16848
|
-
this.size = 'lg';
|
|
16849
16877
|
this.touched = false;
|
|
16850
|
-
/** @private */
|
|
16851
16878
|
this.uniqueId = new UniqueId().create();
|
|
16852
|
-
/** @private */
|
|
16853
16879
|
this.util = new AuroInputUtilities({
|
|
16854
16880
|
locale: this.locale,
|
|
16855
16881
|
format: this.format
|
|
16856
16882
|
});
|
|
16857
|
-
/** @private */
|
|
16858
16883
|
this.validation = new AuroFormValidation();
|
|
16859
|
-
/** @private */
|
|
16860
16884
|
this.validationCCLength = undefined;
|
|
16861
|
-
this.value = undefined;
|
|
16862
|
-
this._valueObject = undefined;
|
|
16863
16885
|
}
|
|
16864
16886
|
|
|
16865
16887
|
// function to define props used within the scope of this component
|
|
@@ -17407,15 +17429,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
17407
17429
|
|
|
17408
17430
|
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
17409
17431
|
|
|
17410
|
-
// Normalize the format token to lowercase so case-mixed values supplied
|
|
17411
|
-
// via attribute (e.g. `format="MM/DD/YYYY"`) hit the `dateFormatMap`
|
|
17412
|
-
// lookup inside `setCustomHelpTextMessage`. Without this, an uppercase
|
|
17413
|
-
// format silently misses the map and leaves `setCustomValidityForType`
|
|
17414
|
-
// unset.
|
|
17415
|
-
if (this.format) {
|
|
17416
|
-
this.format = this.format.toLowerCase();
|
|
17417
|
-
}
|
|
17418
|
-
|
|
17419
17432
|
// use validity message override if declared when initializing the component
|
|
17420
17433
|
if (this.hasAttribute('setCustomValidity')) {
|
|
17421
17434
|
this.ValidityMessageOverride = this.setCustomValidity;
|
|
@@ -17849,38 +17862,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
17849
17862
|
this.touched = true;
|
|
17850
17863
|
this.validation.validate(this);
|
|
17851
17864
|
}
|
|
17852
|
-
|
|
17853
|
-
// Prevents cursor jumping in Safari. Setting `this.value` triggers a Lit
|
|
17854
|
-
// update that can re-render the input and reset the native cursor; we
|
|
17855
|
-
// capture the caret position before that update commits and restore it
|
|
17856
|
-
// via `setSelectionRange` once the update has flushed. Gated on
|
|
17857
|
-
// `setSelectionInputTypes` so credit-card (and other masked types whose
|
|
17858
|
-
// formatter manages the cursor itself) doesn't get a competing write.
|
|
17859
|
-
// Capture the caret position INSIDE the gate — reading `selectionStart`
|
|
17860
|
-
// on input types that don't support text selection (number, email in
|
|
17861
|
-
// some browsers) throws InvalidStateError, which would crash all input
|
|
17862
|
-
// handling. Wrap the read in try/catch belt-and-suspenders even though
|
|
17863
|
-
// the gated types currently support it, since the list is a public
|
|
17864
|
-
// property a consumer could mutate.
|
|
17865
|
-
if (this.setSelectionInputTypes.includes(this.type)) {
|
|
17866
|
-
let selectionStart;
|
|
17867
|
-
try {
|
|
17868
|
-
selectionStart = this.inputElement.selectionStart;
|
|
17869
|
-
} catch (error) { // eslint-disable-line no-unused-vars
|
|
17870
|
-
return;
|
|
17871
|
-
}
|
|
17872
|
-
if (typeof selectionStart !== 'number') {
|
|
17873
|
-
return;
|
|
17874
|
-
}
|
|
17875
|
-
this.updateComplete.then(() => {
|
|
17876
|
-
try {
|
|
17877
|
-
this.inputElement.setSelectionRange(selectionStart, selectionStart);
|
|
17878
|
-
} catch (error) { // eslint-disable-line no-unused-vars
|
|
17879
|
-
// Some input types (number/email in certain UAs) throw on
|
|
17880
|
-
// setSelectionRange; swallow and let the native cursor stand.
|
|
17881
|
-
}
|
|
17882
|
-
});
|
|
17883
|
-
}
|
|
17884
17865
|
}
|
|
17885
17866
|
|
|
17886
17867
|
/**
|
|
@@ -18507,7 +18488,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
18507
18488
|
}
|
|
18508
18489
|
};
|
|
18509
18490
|
|
|
18510
|
-
var formkitVersion$1 = '
|
|
18491
|
+
var formkitVersion$1 = '202606291652';
|
|
18511
18492
|
|
|
18512
18493
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18513
18494
|
// See LICENSE in the project root for license information.
|
|
@@ -19010,7 +18991,6 @@ class AuroInput extends BaseInput {
|
|
|
19010
18991
|
<${this.buttonTag}
|
|
19011
18992
|
@click="${this.handleClickShowPassword}"
|
|
19012
18993
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
19013
|
-
aria-pressed="${this.showPassword ? 'true' : 'false'}"
|
|
19014
18994
|
class="notificationBtn passwordBtn"
|
|
19015
18995
|
shape="circle"
|
|
19016
18996
|
size="sm"
|
|
@@ -19084,29 +19064,25 @@ class AuroInput extends BaseInput {
|
|
|
19084
19064
|
* @returns {html} - Returns HTML for the help text and error message.
|
|
19085
19065
|
*/
|
|
19086
19066
|
renderHtmlHelpText() {
|
|
19087
|
-
// Single `<p>` with stable identity across validity transitions —
|
|
19088
|
-
// previously two distinct templates (valid vs invalid) caused Lit to
|
|
19089
|
-
// replace the node entirely on a flip, and VoiceOver wouldn't
|
|
19090
|
-
// re-announce because the live-region element it was watching had been
|
|
19091
|
-
// removed and a new one inserted. Keeping one node means the `role`,
|
|
19092
|
-
// `aria-live`, and text content all change in-place, which AT does
|
|
19093
|
-
// observe and announce.
|
|
19094
|
-
const isError = this.validity && this.validity !== 'valid';
|
|
19095
19067
|
return u$7`
|
|
19096
|
-
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19068
|
+
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
19069
|
+
? u$7`
|
|
19070
|
+
<${this.helpTextTag}
|
|
19071
|
+
appearance="${this.onDark ? 'inverse' : this.appearance}">
|
|
19072
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
19073
|
+
<slot name="helpText">${this.getHelpText()}</slot>
|
|
19074
|
+
</p>
|
|
19075
|
+
</${this.helpTextTag}>
|
|
19076
|
+
`
|
|
19077
|
+
: u$7`
|
|
19078
|
+
<${this.helpTextTag} error
|
|
19079
|
+
appearance="${this.onDark ? 'inverse' : this.appearance}">
|
|
19080
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
19081
|
+
${this.errorMessage}
|
|
19082
|
+
</p>
|
|
19083
|
+
</${this.helpTextTag}>
|
|
19084
|
+
`
|
|
19085
|
+
}
|
|
19110
19086
|
`;
|
|
19111
19087
|
}
|
|
19112
19088
|
|
|
@@ -19238,7 +19214,7 @@ class AuroInput extends BaseInput {
|
|
|
19238
19214
|
|
|
19239
19215
|
var colorCss$3 = i$6`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
19240
19216
|
|
|
19241
|
-
var styleCss$4 = i$6`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{padding:var(--ds-size-200, 1rem)}`;
|
|
19217
|
+
var styleCss$4 = i$6`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem));padding-top:var(--ds-size-200, 1rem)}#headerContainer .subheader{width:100%}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1 1 100%}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{position:absolute;right:0;bottom:0;left:0;padding:var(--ds-size-200, 1rem)}`;
|
|
19242
19218
|
|
|
19243
19219
|
var tokenCss = i$6`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
19244
19220
|
|
|
@@ -19633,7 +19609,7 @@ class AuroBibtemplate extends i$3 {
|
|
|
19633
19609
|
}
|
|
19634
19610
|
}
|
|
19635
19611
|
|
|
19636
|
-
var formkitVersion = '
|
|
19612
|
+
var formkitVersion = '202606291652';
|
|
19637
19613
|
|
|
19638
19614
|
var styleCss$3 = i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
19639
19615
|
|