@aurodesignsystem-dev/auro-formkit 0.0.0-pr1345.0 → 0.0.0-pr1345.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 +4 -0
- package/components/bibtemplate/dist/registered.js +4 -0
- package/components/checkbox/demo/api.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/api.min.js +35 -23
- package/components/combobox/demo/index.min.js +35 -23
- package/components/combobox/dist/index.js +35 -23
- package/components/combobox/dist/registered.js +35 -23
- package/components/counter/demo/api.min.js +6 -2
- package/components/counter/demo/index.min.js +6 -2
- package/components/counter/dist/index.js +6 -2
- package/components/counter/dist/registered.js +6 -2
- package/components/datepicker/demo/api.min.js +35 -23
- package/components/datepicker/demo/index.min.js +35 -23
- package/components/datepicker/dist/index.js +35 -23
- package/components/datepicker/dist/registered.js +35 -23
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/input/demo/api.min.js +29 -21
- package/components/input/demo/index.min.js +29 -21
- package/components/input/dist/index.js +29 -21
- package/components/input/dist/registered.js +29 -21
- package/components/radio/demo/api.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/api.min.js +6 -2
- package/components/select/demo/index.min.js +6 -2
- package/components/select/dist/index.js +6 -2
- package/components/select/dist/registered.js +6 -2
- package/package.json +1 -1
|
@@ -304,6 +304,10 @@ class AuroBibtemplate extends LitElement {
|
|
|
304
304
|
* @returns {void}
|
|
305
305
|
*/
|
|
306
306
|
preventBodyScroll(event) {
|
|
307
|
+
if (document.activeElement && (document.activeElement.tagName === 'AURO-COUNTER' || document.activeElement.hasAttribute('auro-counter'))) {
|
|
308
|
+
// allow default interaction when counter has focus (swiping up/down to control the value)
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
307
311
|
if (event.target === this) {
|
|
308
312
|
event.preventDefault();
|
|
309
313
|
}
|
|
@@ -304,6 +304,10 @@ class AuroBibtemplate extends LitElement {
|
|
|
304
304
|
* @returns {void}
|
|
305
305
|
*/
|
|
306
306
|
preventBodyScroll(event) {
|
|
307
|
+
if (document.activeElement && (document.activeElement.tagName === 'AURO-COUNTER' || document.activeElement.hasAttribute('auro-counter'))) {
|
|
308
|
+
// allow default interaction when counter has focus (swiping up/down to control the value)
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
307
311
|
if (event.target === this) {
|
|
308
312
|
event.preventDefault();
|
|
309
313
|
}
|
|
@@ -1687,7 +1687,7 @@ class AuroHelpText extends i$2 {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
var formkitVersion = '
|
|
1690
|
+
var formkitVersion = '202602201935';
|
|
1691
1691
|
|
|
1692
1692
|
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1693
1693
|
// See LICENSE in the project root for license information.
|
|
@@ -1679,7 +1679,7 @@ class AuroHelpText extends i$2 {
|
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
1681
|
|
|
1682
|
-
var formkitVersion = '
|
|
1682
|
+
var formkitVersion = '202602201935';
|
|
1683
1683
|
|
|
1684
1684
|
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1685
1685
|
// See LICENSE in the project root for license information.
|
|
@@ -1632,7 +1632,7 @@ class AuroHelpText extends LitElement {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
1634
|
|
|
1635
|
-
var formkitVersion = '
|
|
1635
|
+
var formkitVersion = '202602201935';
|
|
1636
1636
|
|
|
1637
1637
|
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1638
1638
|
// See LICENSE in the project root for license information.
|
|
@@ -1632,7 +1632,7 @@ class AuroHelpText extends LitElement {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
1634
|
|
|
1635
|
-
var formkitVersion = '
|
|
1635
|
+
var formkitVersion = '202602201935';
|
|
1636
1636
|
|
|
1637
1637
|
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1638
1638
|
// See LICENSE in the project root for license information.
|
|
@@ -4389,7 +4389,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
4389
4389
|
}
|
|
4390
4390
|
};
|
|
4391
4391
|
|
|
4392
|
-
var formkitVersion$2 = '
|
|
4392
|
+
var formkitVersion$2 = '202602201935';
|
|
4393
4393
|
|
|
4394
4394
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
4395
4395
|
static get properties() {
|
|
@@ -11311,31 +11311,34 @@ class BaseInput extends AuroElement$1 {
|
|
|
11311
11311
|
// Process credit card type detection and formatting during input
|
|
11312
11312
|
if (this.type === 'credit-card') {
|
|
11313
11313
|
this.processCreditCard();
|
|
11314
|
-
|
|
11314
|
+
this.touched = true;
|
|
11315
|
+
this.validation.validate(this);
|
|
11316
|
+
} else {
|
|
11315
11317
|
|
|
11316
|
-
|
|
11317
|
-
|
|
11318
|
+
// Sets value property to value of element value (el.value).
|
|
11319
|
+
this.value = this.inputElement.value;
|
|
11318
11320
|
|
|
11319
|
-
|
|
11320
|
-
|
|
11321
|
+
// Determine if the value change was programmatic, including autofill.
|
|
11322
|
+
const inputWasProgrammatic = !this.matches(":focus") || event.isProgrammatic;
|
|
11321
11323
|
|
|
11322
|
-
|
|
11323
|
-
|
|
11324
|
-
|
|
11325
|
-
|
|
11326
|
-
|
|
11324
|
+
// Validation on input or programmatic value change (including autofill).
|
|
11325
|
+
if (this.validateOnInput || inputWasProgrammatic) {
|
|
11326
|
+
this.touched = true;
|
|
11327
|
+
this.validation.validate(this);
|
|
11328
|
+
}
|
|
11327
11329
|
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
+
// Prevents cursor jumping in Safari.
|
|
11331
|
+
const { selectionStart } = this.inputElement;
|
|
11330
11332
|
|
|
11331
|
-
|
|
11332
|
-
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11333
|
+
if (this.setSelectionInputTypes.includes(this.type)) {
|
|
11334
|
+
this.updateComplete.then(() => {
|
|
11335
|
+
try {
|
|
11336
|
+
this.inputElement.setSelectionRange(selectionStart, selectionStart);
|
|
11337
|
+
} catch (error) { // eslint-disable-line
|
|
11338
|
+
// do nothing
|
|
11339
|
+
}
|
|
11340
|
+
});
|
|
11341
|
+
}
|
|
11339
11342
|
}
|
|
11340
11343
|
}
|
|
11341
11344
|
|
|
@@ -11368,6 +11371,11 @@ class BaseInput extends AuroElement$1 {
|
|
|
11368
11371
|
this.inputElement.scrollLeft = 100;
|
|
11369
11372
|
|
|
11370
11373
|
if (!this.noValidate) {
|
|
11374
|
+
// For credit card inputs with mask, ensure value is synced from mask instance
|
|
11375
|
+
if (this.type === 'credit-card' && this.maskInstance) {
|
|
11376
|
+
this.value = this.maskInstance.value;
|
|
11377
|
+
}
|
|
11378
|
+
|
|
11371
11379
|
this.validation.validate(this);
|
|
11372
11380
|
}
|
|
11373
11381
|
}
|
|
@@ -12016,7 +12024,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12016
12024
|
}
|
|
12017
12025
|
};
|
|
12018
12026
|
|
|
12019
|
-
var formkitVersion$1 = '
|
|
12027
|
+
var formkitVersion$1 = '202602201935';
|
|
12020
12028
|
|
|
12021
12029
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12022
12030
|
// See LICENSE in the project root for license information.
|
|
@@ -12966,6 +12974,10 @@ class AuroBibtemplate extends i$4 {
|
|
|
12966
12974
|
* @returns {void}
|
|
12967
12975
|
*/
|
|
12968
12976
|
preventBodyScroll(event) {
|
|
12977
|
+
if (document.activeElement && (document.activeElement.tagName === 'AURO-COUNTER' || document.activeElement.hasAttribute('auro-counter'))) {
|
|
12978
|
+
// allow default interaction when counter has focus (swiping up/down to control the value)
|
|
12979
|
+
return;
|
|
12980
|
+
}
|
|
12969
12981
|
if (event.target === this) {
|
|
12970
12982
|
event.preventDefault();
|
|
12971
12983
|
}
|
|
@@ -13042,7 +13054,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13042
13054
|
}
|
|
13043
13055
|
}
|
|
13044
13056
|
|
|
13045
|
-
var formkitVersion = '
|
|
13057
|
+
var formkitVersion = '202602201935';
|
|
13046
13058
|
|
|
13047
13059
|
var styleCss$3 = i$7`.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}`;
|
|
13048
13060
|
|
|
@@ -4312,7 +4312,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
4312
4312
|
}
|
|
4313
4313
|
};
|
|
4314
4314
|
|
|
4315
|
-
var formkitVersion$2 = '
|
|
4315
|
+
var formkitVersion$2 = '202602201935';
|
|
4316
4316
|
|
|
4317
4317
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
4318
4318
|
static get properties() {
|
|
@@ -11234,31 +11234,34 @@ class BaseInput extends AuroElement$1 {
|
|
|
11234
11234
|
// Process credit card type detection and formatting during input
|
|
11235
11235
|
if (this.type === 'credit-card') {
|
|
11236
11236
|
this.processCreditCard();
|
|
11237
|
-
|
|
11237
|
+
this.touched = true;
|
|
11238
|
+
this.validation.validate(this);
|
|
11239
|
+
} else {
|
|
11238
11240
|
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
+
// Sets value property to value of element value (el.value).
|
|
11242
|
+
this.value = this.inputElement.value;
|
|
11241
11243
|
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
+
// Determine if the value change was programmatic, including autofill.
|
|
11245
|
+
const inputWasProgrammatic = !this.matches(":focus") || event.isProgrammatic;
|
|
11244
11246
|
|
|
11245
|
-
|
|
11246
|
-
|
|
11247
|
-
|
|
11248
|
-
|
|
11249
|
-
|
|
11247
|
+
// Validation on input or programmatic value change (including autofill).
|
|
11248
|
+
if (this.validateOnInput || inputWasProgrammatic) {
|
|
11249
|
+
this.touched = true;
|
|
11250
|
+
this.validation.validate(this);
|
|
11251
|
+
}
|
|
11250
11252
|
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
+
// Prevents cursor jumping in Safari.
|
|
11254
|
+
const { selectionStart } = this.inputElement;
|
|
11253
11255
|
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
|
|
11258
|
-
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11256
|
+
if (this.setSelectionInputTypes.includes(this.type)) {
|
|
11257
|
+
this.updateComplete.then(() => {
|
|
11258
|
+
try {
|
|
11259
|
+
this.inputElement.setSelectionRange(selectionStart, selectionStart);
|
|
11260
|
+
} catch (error) { // eslint-disable-line
|
|
11261
|
+
// do nothing
|
|
11262
|
+
}
|
|
11263
|
+
});
|
|
11264
|
+
}
|
|
11262
11265
|
}
|
|
11263
11266
|
}
|
|
11264
11267
|
|
|
@@ -11291,6 +11294,11 @@ class BaseInput extends AuroElement$1 {
|
|
|
11291
11294
|
this.inputElement.scrollLeft = 100;
|
|
11292
11295
|
|
|
11293
11296
|
if (!this.noValidate) {
|
|
11297
|
+
// For credit card inputs with mask, ensure value is synced from mask instance
|
|
11298
|
+
if (this.type === 'credit-card' && this.maskInstance) {
|
|
11299
|
+
this.value = this.maskInstance.value;
|
|
11300
|
+
}
|
|
11301
|
+
|
|
11294
11302
|
this.validation.validate(this);
|
|
11295
11303
|
}
|
|
11296
11304
|
}
|
|
@@ -11939,7 +11947,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
11939
11947
|
}
|
|
11940
11948
|
};
|
|
11941
11949
|
|
|
11942
|
-
var formkitVersion$1 = '
|
|
11950
|
+
var formkitVersion$1 = '202602201935';
|
|
11943
11951
|
|
|
11944
11952
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11945
11953
|
// See LICENSE in the project root for license information.
|
|
@@ -12889,6 +12897,10 @@ class AuroBibtemplate extends i$4 {
|
|
|
12889
12897
|
* @returns {void}
|
|
12890
12898
|
*/
|
|
12891
12899
|
preventBodyScroll(event) {
|
|
12900
|
+
if (document.activeElement && (document.activeElement.tagName === 'AURO-COUNTER' || document.activeElement.hasAttribute('auro-counter'))) {
|
|
12901
|
+
// allow default interaction when counter has focus (swiping up/down to control the value)
|
|
12902
|
+
return;
|
|
12903
|
+
}
|
|
12892
12904
|
if (event.target === this) {
|
|
12893
12905
|
event.preventDefault();
|
|
12894
12906
|
}
|
|
@@ -12965,7 +12977,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
12965
12977
|
}
|
|
12966
12978
|
}
|
|
12967
12979
|
|
|
12968
|
-
var formkitVersion = '
|
|
12980
|
+
var formkitVersion = '202602201935';
|
|
12969
12981
|
|
|
12970
12982
|
var styleCss$3 = i$7`.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}`;
|
|
12971
12983
|
|
|
@@ -4249,7 +4249,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4249
4249
|
}
|
|
4250
4250
|
};
|
|
4251
4251
|
|
|
4252
|
-
var formkitVersion$2 = '
|
|
4252
|
+
var formkitVersion$2 = '202602201935';
|
|
4253
4253
|
|
|
4254
4254
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4255
4255
|
static get properties() {
|
|
@@ -11164,31 +11164,34 @@ class BaseInput extends AuroElement$1 {
|
|
|
11164
11164
|
// Process credit card type detection and formatting during input
|
|
11165
11165
|
if (this.type === 'credit-card') {
|
|
11166
11166
|
this.processCreditCard();
|
|
11167
|
-
|
|
11167
|
+
this.touched = true;
|
|
11168
|
+
this.validation.validate(this);
|
|
11169
|
+
} else {
|
|
11168
11170
|
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
+
// Sets value property to value of element value (el.value).
|
|
11172
|
+
this.value = this.inputElement.value;
|
|
11171
11173
|
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
+
// Determine if the value change was programmatic, including autofill.
|
|
11175
|
+
const inputWasProgrammatic = !this.matches(":focus") || event.isProgrammatic;
|
|
11174
11176
|
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11177
|
+
// Validation on input or programmatic value change (including autofill).
|
|
11178
|
+
if (this.validateOnInput || inputWasProgrammatic) {
|
|
11179
|
+
this.touched = true;
|
|
11180
|
+
this.validation.validate(this);
|
|
11181
|
+
}
|
|
11180
11182
|
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
+
// Prevents cursor jumping in Safari.
|
|
11184
|
+
const { selectionStart } = this.inputElement;
|
|
11183
11185
|
|
|
11184
|
-
|
|
11185
|
-
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
|
|
11190
|
-
|
|
11191
|
-
|
|
11186
|
+
if (this.setSelectionInputTypes.includes(this.type)) {
|
|
11187
|
+
this.updateComplete.then(() => {
|
|
11188
|
+
try {
|
|
11189
|
+
this.inputElement.setSelectionRange(selectionStart, selectionStart);
|
|
11190
|
+
} catch (error) { // eslint-disable-line
|
|
11191
|
+
// do nothing
|
|
11192
|
+
}
|
|
11193
|
+
});
|
|
11194
|
+
}
|
|
11192
11195
|
}
|
|
11193
11196
|
}
|
|
11194
11197
|
|
|
@@ -11221,6 +11224,11 @@ class BaseInput extends AuroElement$1 {
|
|
|
11221
11224
|
this.inputElement.scrollLeft = 100;
|
|
11222
11225
|
|
|
11223
11226
|
if (!this.noValidate) {
|
|
11227
|
+
// For credit card inputs with mask, ensure value is synced from mask instance
|
|
11228
|
+
if (this.type === 'credit-card' && this.maskInstance) {
|
|
11229
|
+
this.value = this.maskInstance.value;
|
|
11230
|
+
}
|
|
11231
|
+
|
|
11224
11232
|
this.validation.validate(this);
|
|
11225
11233
|
}
|
|
11226
11234
|
}
|
|
@@ -11869,7 +11877,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
11869
11877
|
}
|
|
11870
11878
|
};
|
|
11871
11879
|
|
|
11872
|
-
var formkitVersion$1 = '
|
|
11880
|
+
var formkitVersion$1 = '202602201935';
|
|
11873
11881
|
|
|
11874
11882
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11875
11883
|
// See LICENSE in the project root for license information.
|
|
@@ -12819,6 +12827,10 @@ class AuroBibtemplate extends LitElement {
|
|
|
12819
12827
|
* @returns {void}
|
|
12820
12828
|
*/
|
|
12821
12829
|
preventBodyScroll(event) {
|
|
12830
|
+
if (document.activeElement && (document.activeElement.tagName === 'AURO-COUNTER' || document.activeElement.hasAttribute('auro-counter'))) {
|
|
12831
|
+
// allow default interaction when counter has focus (swiping up/down to control the value)
|
|
12832
|
+
return;
|
|
12833
|
+
}
|
|
12822
12834
|
if (event.target === this) {
|
|
12823
12835
|
event.preventDefault();
|
|
12824
12836
|
}
|
|
@@ -12895,7 +12907,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
12895
12907
|
}
|
|
12896
12908
|
}
|
|
12897
12909
|
|
|
12898
|
-
var formkitVersion = '
|
|
12910
|
+
var formkitVersion = '202602201935';
|
|
12899
12911
|
|
|
12900
12912
|
var styleCss$1 = css`.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}`;
|
|
12901
12913
|
|
|
@@ -4249,7 +4249,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4249
4249
|
}
|
|
4250
4250
|
};
|
|
4251
4251
|
|
|
4252
|
-
var formkitVersion$2 = '
|
|
4252
|
+
var formkitVersion$2 = '202602201935';
|
|
4253
4253
|
|
|
4254
4254
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4255
4255
|
static get properties() {
|
|
@@ -11164,31 +11164,34 @@ class BaseInput extends AuroElement$1 {
|
|
|
11164
11164
|
// Process credit card type detection and formatting during input
|
|
11165
11165
|
if (this.type === 'credit-card') {
|
|
11166
11166
|
this.processCreditCard();
|
|
11167
|
-
|
|
11167
|
+
this.touched = true;
|
|
11168
|
+
this.validation.validate(this);
|
|
11169
|
+
} else {
|
|
11168
11170
|
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
+
// Sets value property to value of element value (el.value).
|
|
11172
|
+
this.value = this.inputElement.value;
|
|
11171
11173
|
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
+
// Determine if the value change was programmatic, including autofill.
|
|
11175
|
+
const inputWasProgrammatic = !this.matches(":focus") || event.isProgrammatic;
|
|
11174
11176
|
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11179
|
-
|
|
11177
|
+
// Validation on input or programmatic value change (including autofill).
|
|
11178
|
+
if (this.validateOnInput || inputWasProgrammatic) {
|
|
11179
|
+
this.touched = true;
|
|
11180
|
+
this.validation.validate(this);
|
|
11181
|
+
}
|
|
11180
11182
|
|
|
11181
|
-
|
|
11182
|
-
|
|
11183
|
+
// Prevents cursor jumping in Safari.
|
|
11184
|
+
const { selectionStart } = this.inputElement;
|
|
11183
11185
|
|
|
11184
|
-
|
|
11185
|
-
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
|
|
11190
|
-
|
|
11191
|
-
|
|
11186
|
+
if (this.setSelectionInputTypes.includes(this.type)) {
|
|
11187
|
+
this.updateComplete.then(() => {
|
|
11188
|
+
try {
|
|
11189
|
+
this.inputElement.setSelectionRange(selectionStart, selectionStart);
|
|
11190
|
+
} catch (error) { // eslint-disable-line
|
|
11191
|
+
// do nothing
|
|
11192
|
+
}
|
|
11193
|
+
});
|
|
11194
|
+
}
|
|
11192
11195
|
}
|
|
11193
11196
|
}
|
|
11194
11197
|
|
|
@@ -11221,6 +11224,11 @@ class BaseInput extends AuroElement$1 {
|
|
|
11221
11224
|
this.inputElement.scrollLeft = 100;
|
|
11222
11225
|
|
|
11223
11226
|
if (!this.noValidate) {
|
|
11227
|
+
// For credit card inputs with mask, ensure value is synced from mask instance
|
|
11228
|
+
if (this.type === 'credit-card' && this.maskInstance) {
|
|
11229
|
+
this.value = this.maskInstance.value;
|
|
11230
|
+
}
|
|
11231
|
+
|
|
11224
11232
|
this.validation.validate(this);
|
|
11225
11233
|
}
|
|
11226
11234
|
}
|
|
@@ -11869,7 +11877,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
11869
11877
|
}
|
|
11870
11878
|
};
|
|
11871
11879
|
|
|
11872
|
-
var formkitVersion$1 = '
|
|
11880
|
+
var formkitVersion$1 = '202602201935';
|
|
11873
11881
|
|
|
11874
11882
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11875
11883
|
// See LICENSE in the project root for license information.
|
|
@@ -12819,6 +12827,10 @@ class AuroBibtemplate extends LitElement {
|
|
|
12819
12827
|
* @returns {void}
|
|
12820
12828
|
*/
|
|
12821
12829
|
preventBodyScroll(event) {
|
|
12830
|
+
if (document.activeElement && (document.activeElement.tagName === 'AURO-COUNTER' || document.activeElement.hasAttribute('auro-counter'))) {
|
|
12831
|
+
// allow default interaction when counter has focus (swiping up/down to control the value)
|
|
12832
|
+
return;
|
|
12833
|
+
}
|
|
12822
12834
|
if (event.target === this) {
|
|
12823
12835
|
event.preventDefault();
|
|
12824
12836
|
}
|
|
@@ -12895,7 +12907,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
12895
12907
|
}
|
|
12896
12908
|
}
|
|
12897
12909
|
|
|
12898
|
-
var formkitVersion = '
|
|
12910
|
+
var formkitVersion = '202602201935';
|
|
12899
12911
|
|
|
12900
12912
|
var styleCss$1 = css`.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}`;
|
|
12901
12913
|
|
|
@@ -1442,7 +1442,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
};
|
|
1444
1444
|
|
|
1445
|
-
var formkitVersion$1 = '
|
|
1445
|
+
var formkitVersion$1 = '202602201935';
|
|
1446
1446
|
|
|
1447
1447
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1448
1448
|
// See LICENSE in the project root for license information.
|
|
@@ -5135,7 +5135,7 @@ class AuroHelpText extends i$2 {
|
|
|
5135
5135
|
}
|
|
5136
5136
|
}
|
|
5137
5137
|
|
|
5138
|
-
var formkitVersion = '
|
|
5138
|
+
var formkitVersion = '202602201935';
|
|
5139
5139
|
|
|
5140
5140
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5141
5141
|
static get properties() {
|
|
@@ -6488,6 +6488,10 @@ class AuroBibtemplate extends i$2 {
|
|
|
6488
6488
|
* @returns {void}
|
|
6489
6489
|
*/
|
|
6490
6490
|
preventBodyScroll(event) {
|
|
6491
|
+
if (document.activeElement && (document.activeElement.tagName === 'AURO-COUNTER' || document.activeElement.hasAttribute('auro-counter'))) {
|
|
6492
|
+
// allow default interaction when counter has focus (swiping up/down to control the value)
|
|
6493
|
+
return;
|
|
6494
|
+
}
|
|
6491
6495
|
if (event.target === this) {
|
|
6492
6496
|
event.preventDefault();
|
|
6493
6497
|
}
|
|
@@ -1442,7 +1442,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
};
|
|
1444
1444
|
|
|
1445
|
-
var formkitVersion$1 = '
|
|
1445
|
+
var formkitVersion$1 = '202602201935';
|
|
1446
1446
|
|
|
1447
1447
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1448
1448
|
// See LICENSE in the project root for license information.
|
|
@@ -5135,7 +5135,7 @@ class AuroHelpText extends i$2 {
|
|
|
5135
5135
|
}
|
|
5136
5136
|
}
|
|
5137
5137
|
|
|
5138
|
-
var formkitVersion = '
|
|
5138
|
+
var formkitVersion = '202602201935';
|
|
5139
5139
|
|
|
5140
5140
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5141
5141
|
static get properties() {
|
|
@@ -6488,6 +6488,10 @@ class AuroBibtemplate extends i$2 {
|
|
|
6488
6488
|
* @returns {void}
|
|
6489
6489
|
*/
|
|
6490
6490
|
preventBodyScroll(event) {
|
|
6491
|
+
if (document.activeElement && (document.activeElement.tagName === 'AURO-COUNTER' || document.activeElement.hasAttribute('auro-counter'))) {
|
|
6492
|
+
// allow default interaction when counter has focus (swiping up/down to control the value)
|
|
6493
|
+
return;
|
|
6494
|
+
}
|
|
6491
6495
|
if (event.target === this) {
|
|
6492
6496
|
event.preventDefault();
|
|
6493
6497
|
}
|
|
@@ -1392,7 +1392,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
};
|
|
1394
1394
|
|
|
1395
|
-
var formkitVersion$1 = '
|
|
1395
|
+
var formkitVersion$1 = '202602201935';
|
|
1396
1396
|
|
|
1397
1397
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1398
1398
|
// See LICENSE in the project root for license information.
|
|
@@ -5067,7 +5067,7 @@ class AuroHelpText extends LitElement {
|
|
|
5067
5067
|
}
|
|
5068
5068
|
}
|
|
5069
5069
|
|
|
5070
|
-
var formkitVersion = '
|
|
5070
|
+
var formkitVersion = '202602201935';
|
|
5071
5071
|
|
|
5072
5072
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5073
5073
|
static get properties() {
|
|
@@ -6420,6 +6420,10 @@ class AuroBibtemplate extends LitElement {
|
|
|
6420
6420
|
* @returns {void}
|
|
6421
6421
|
*/
|
|
6422
6422
|
preventBodyScroll(event) {
|
|
6423
|
+
if (document.activeElement && (document.activeElement.tagName === 'AURO-COUNTER' || document.activeElement.hasAttribute('auro-counter'))) {
|
|
6424
|
+
// allow default interaction when counter has focus (swiping up/down to control the value)
|
|
6425
|
+
return;
|
|
6426
|
+
}
|
|
6423
6427
|
if (event.target === this) {
|
|
6424
6428
|
event.preventDefault();
|
|
6425
6429
|
}
|
|
@@ -1392,7 +1392,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
};
|
|
1394
1394
|
|
|
1395
|
-
var formkitVersion$1 = '
|
|
1395
|
+
var formkitVersion$1 = '202602201935';
|
|
1396
1396
|
|
|
1397
1397
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1398
1398
|
// See LICENSE in the project root for license information.
|
|
@@ -5067,7 +5067,7 @@ class AuroHelpText extends LitElement {
|
|
|
5067
5067
|
}
|
|
5068
5068
|
}
|
|
5069
5069
|
|
|
5070
|
-
var formkitVersion = '
|
|
5070
|
+
var formkitVersion = '202602201935';
|
|
5071
5071
|
|
|
5072
5072
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5073
5073
|
static get properties() {
|
|
@@ -6420,6 +6420,10 @@ class AuroBibtemplate extends LitElement {
|
|
|
6420
6420
|
* @returns {void}
|
|
6421
6421
|
*/
|
|
6422
6422
|
preventBodyScroll(event) {
|
|
6423
|
+
if (document.activeElement && (document.activeElement.tagName === 'AURO-COUNTER' || document.activeElement.hasAttribute('auro-counter'))) {
|
|
6424
|
+
// allow default interaction when counter has focus (swiping up/down to control the value)
|
|
6425
|
+
return;
|
|
6426
|
+
}
|
|
6423
6427
|
if (event.target === this) {
|
|
6424
6428
|
event.preventDefault();
|
|
6425
6429
|
}
|