@aurodesignsystem-dev/auro-formkit 0.0.0-pr1392.0 → 0.0.0-pr1393.1
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/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 +27 -11
- package/components/combobox/demo/index.min.js +27 -11
- package/components/combobox/dist/index.js +27 -11
- package/components/combobox/dist/registered.js +27 -11
- package/components/counter/demo/api.min.js +33 -37
- package/components/counter/demo/index.min.js +33 -37
- package/components/counter/dist/auro-counter.d.ts +0 -7
- package/components/counter/dist/index.js +33 -37
- package/components/counter/dist/registered.js +33 -37
- package/components/datepicker/demo/api.min.js +3 -3
- package/components/datepicker/demo/index.min.js +3 -3
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- 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/form/demo/api.min.js +68 -56
- package/components/form/demo/index.min.js +68 -56
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- 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 +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +0 -15
- package/package.json +1 -1
|
@@ -1687,7 +1687,7 @@ class AuroHelpText extends i$2 {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
var formkitVersion = '
|
|
1690
|
+
var formkitVersion = '202603232129';
|
|
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 = '202603232129';
|
|
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 = '202603232129';
|
|
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 = '202603232129';
|
|
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.
|
|
@@ -5036,7 +5036,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
5036
5036
|
}
|
|
5037
5037
|
};
|
|
5038
5038
|
|
|
5039
|
-
var formkitVersion$2 = '
|
|
5039
|
+
var formkitVersion$2 = '202603232129';
|
|
5040
5040
|
|
|
5041
5041
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
5042
5042
|
static get properties() {
|
|
@@ -12791,7 +12791,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12791
12791
|
}
|
|
12792
12792
|
};
|
|
12793
12793
|
|
|
12794
|
-
var formkitVersion$1 = '
|
|
12794
|
+
var formkitVersion$1 = '202603232129';
|
|
12795
12795
|
|
|
12796
12796
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12797
12797
|
// See LICENSE in the project root for license information.
|
|
@@ -13830,7 +13830,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13830
13830
|
}
|
|
13831
13831
|
}
|
|
13832
13832
|
|
|
13833
|
-
var formkitVersion = '
|
|
13833
|
+
var formkitVersion = '202603232129';
|
|
13834
13834
|
|
|
13835
13835
|
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}`;
|
|
13836
13836
|
|
|
@@ -14174,6 +14174,19 @@ class AuroHelpText extends i$4 {
|
|
|
14174
14174
|
// See LICENSE in the project root for license information.
|
|
14175
14175
|
|
|
14176
14176
|
|
|
14177
|
+
/**
|
|
14178
|
+
* Strips only trailing whitespace from an input value so residual spaces
|
|
14179
|
+
* from cursor editing don't break filtering or highlighting. Whitespace-only
|
|
14180
|
+
* values are preserved as-is to prevent a lone space from being treated as
|
|
14181
|
+
* empty input.
|
|
14182
|
+
* @param {string} value - Raw input value.
|
|
14183
|
+
* @returns {string} Normalized value.
|
|
14184
|
+
*/
|
|
14185
|
+
function normalizeFilterValue(value) {
|
|
14186
|
+
const raw = value || '';
|
|
14187
|
+
return raw.trim() ? raw.trimEnd() : raw;
|
|
14188
|
+
}
|
|
14189
|
+
|
|
14177
14190
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
14178
14191
|
/**
|
|
14179
14192
|
* The `auro-combobox` element provides users with a way to select an option from a list of filtered or suggested options based on user input.
|
|
@@ -14687,6 +14700,8 @@ class AuroCombobox extends AuroElement {
|
|
|
14687
14700
|
|
|
14688
14701
|
this.noMatchOption = undefined;
|
|
14689
14702
|
|
|
14703
|
+
const filterValue = normalizeFilterValue(this.input.value).toLowerCase();
|
|
14704
|
+
|
|
14690
14705
|
this.options.forEach((option) => {
|
|
14691
14706
|
let matchString = option.textContent.toLowerCase();
|
|
14692
14707
|
|
|
@@ -14703,12 +14718,12 @@ class AuroCombobox extends AuroElement {
|
|
|
14703
14718
|
}
|
|
14704
14719
|
|
|
14705
14720
|
// If input is empty, show all options (except static ones)
|
|
14706
|
-
if (!
|
|
14721
|
+
if (!filterValue) {
|
|
14707
14722
|
if (!option.hasAttribute('static')) {
|
|
14708
14723
|
option.removeAttribute('hidden');
|
|
14709
14724
|
this.availableOptions.push(option);
|
|
14710
14725
|
}
|
|
14711
|
-
} else if (matchString.includes(
|
|
14726
|
+
} else if (matchString.includes(filterValue) && !option.hasAttribute('static')) {
|
|
14712
14727
|
// only count options that match the typed input value AND are not static
|
|
14713
14728
|
option.removeAttribute('hidden');
|
|
14714
14729
|
this.availableOptions.push(option);
|
|
@@ -14739,7 +14754,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14739
14754
|
syncValuesAndStates() {
|
|
14740
14755
|
// Only sync matchWord, don't set menu.value here since setMenuValue should handle that
|
|
14741
14756
|
if (this.menu) {
|
|
14742
|
-
this.menu.matchWord = this.input.value;
|
|
14757
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
14743
14758
|
}
|
|
14744
14759
|
const label = this.menu.currentLabel;
|
|
14745
14760
|
this.updateTriggerTextDisplay(label || this.value);
|
|
@@ -15103,8 +15118,9 @@ class AuroCombobox extends AuroElement {
|
|
|
15103
15118
|
this.updateTriggerTextDisplay(event.detail.label || event.detail.value);
|
|
15104
15119
|
|
|
15105
15120
|
// Update match word for filtering
|
|
15106
|
-
|
|
15107
|
-
|
|
15121
|
+
const trimmedInput = normalizeFilterValue(this.input.value);
|
|
15122
|
+
if (this.menu.matchWord !== trimmedInput) {
|
|
15123
|
+
this.menu.matchWord = trimmedInput;
|
|
15108
15124
|
}
|
|
15109
15125
|
|
|
15110
15126
|
// Update available options based on selection
|
|
@@ -15242,7 +15258,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15242
15258
|
});
|
|
15243
15259
|
|
|
15244
15260
|
// Run filtering inline — the re-entrant event won't reach this code.
|
|
15245
|
-
this.menu.matchWord = this.inputInBib.value;
|
|
15261
|
+
this.menu.matchWord = normalizeFilterValue(this.inputInBib.value);
|
|
15246
15262
|
this.optionActive = null;
|
|
15247
15263
|
this.handleMenuOptions();
|
|
15248
15264
|
this.dispatchEvent(new CustomEvent('inputValue', { detail: { value: this.inputValue } }));
|
|
@@ -15256,7 +15272,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15256
15272
|
|
|
15257
15273
|
this.inputInBib.value = this.input.value;
|
|
15258
15274
|
|
|
15259
|
-
this.menu.matchWord = this.input.value;
|
|
15275
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
15260
15276
|
this.optionActive = null;
|
|
15261
15277
|
|
|
15262
15278
|
if (!this.input.value) {
|
|
@@ -15470,7 +15486,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15470
15486
|
|
|
15471
15487
|
// Sync the input and match word, but don't directly set menu.value again
|
|
15472
15488
|
if (this.menu) {
|
|
15473
|
-
this.menu.matchWord = this.input.value;
|
|
15489
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
15474
15490
|
}
|
|
15475
15491
|
|
|
15476
15492
|
this.dispatchEvent(new CustomEvent('input', {
|
|
@@ -4959,7 +4959,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
4959
4959
|
}
|
|
4960
4960
|
};
|
|
4961
4961
|
|
|
4962
|
-
var formkitVersion$2 = '
|
|
4962
|
+
var formkitVersion$2 = '202603232129';
|
|
4963
4963
|
|
|
4964
4964
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
4965
4965
|
static get properties() {
|
|
@@ -12714,7 +12714,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12714
12714
|
}
|
|
12715
12715
|
};
|
|
12716
12716
|
|
|
12717
|
-
var formkitVersion$1 = '
|
|
12717
|
+
var formkitVersion$1 = '202603232129';
|
|
12718
12718
|
|
|
12719
12719
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12720
12720
|
// See LICENSE in the project root for license information.
|
|
@@ -13753,7 +13753,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
13753
13753
|
}
|
|
13754
13754
|
}
|
|
13755
13755
|
|
|
13756
|
-
var formkitVersion = '
|
|
13756
|
+
var formkitVersion = '202603232129';
|
|
13757
13757
|
|
|
13758
13758
|
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}`;
|
|
13759
13759
|
|
|
@@ -14097,6 +14097,19 @@ class AuroHelpText extends i$4 {
|
|
|
14097
14097
|
// See LICENSE in the project root for license information.
|
|
14098
14098
|
|
|
14099
14099
|
|
|
14100
|
+
/**
|
|
14101
|
+
* Strips only trailing whitespace from an input value so residual spaces
|
|
14102
|
+
* from cursor editing don't break filtering or highlighting. Whitespace-only
|
|
14103
|
+
* values are preserved as-is to prevent a lone space from being treated as
|
|
14104
|
+
* empty input.
|
|
14105
|
+
* @param {string} value - Raw input value.
|
|
14106
|
+
* @returns {string} Normalized value.
|
|
14107
|
+
*/
|
|
14108
|
+
function normalizeFilterValue(value) {
|
|
14109
|
+
const raw = value || '';
|
|
14110
|
+
return raw.trim() ? raw.trimEnd() : raw;
|
|
14111
|
+
}
|
|
14112
|
+
|
|
14100
14113
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
14101
14114
|
/**
|
|
14102
14115
|
* The `auro-combobox` element provides users with a way to select an option from a list of filtered or suggested options based on user input.
|
|
@@ -14610,6 +14623,8 @@ class AuroCombobox extends AuroElement {
|
|
|
14610
14623
|
|
|
14611
14624
|
this.noMatchOption = undefined;
|
|
14612
14625
|
|
|
14626
|
+
const filterValue = normalizeFilterValue(this.input.value).toLowerCase();
|
|
14627
|
+
|
|
14613
14628
|
this.options.forEach((option) => {
|
|
14614
14629
|
let matchString = option.textContent.toLowerCase();
|
|
14615
14630
|
|
|
@@ -14626,12 +14641,12 @@ class AuroCombobox extends AuroElement {
|
|
|
14626
14641
|
}
|
|
14627
14642
|
|
|
14628
14643
|
// If input is empty, show all options (except static ones)
|
|
14629
|
-
if (!
|
|
14644
|
+
if (!filterValue) {
|
|
14630
14645
|
if (!option.hasAttribute('static')) {
|
|
14631
14646
|
option.removeAttribute('hidden');
|
|
14632
14647
|
this.availableOptions.push(option);
|
|
14633
14648
|
}
|
|
14634
|
-
} else if (matchString.includes(
|
|
14649
|
+
} else if (matchString.includes(filterValue) && !option.hasAttribute('static')) {
|
|
14635
14650
|
// only count options that match the typed input value AND are not static
|
|
14636
14651
|
option.removeAttribute('hidden');
|
|
14637
14652
|
this.availableOptions.push(option);
|
|
@@ -14662,7 +14677,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14662
14677
|
syncValuesAndStates() {
|
|
14663
14678
|
// Only sync matchWord, don't set menu.value here since setMenuValue should handle that
|
|
14664
14679
|
if (this.menu) {
|
|
14665
|
-
this.menu.matchWord = this.input.value;
|
|
14680
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
14666
14681
|
}
|
|
14667
14682
|
const label = this.menu.currentLabel;
|
|
14668
14683
|
this.updateTriggerTextDisplay(label || this.value);
|
|
@@ -15026,8 +15041,9 @@ class AuroCombobox extends AuroElement {
|
|
|
15026
15041
|
this.updateTriggerTextDisplay(event.detail.label || event.detail.value);
|
|
15027
15042
|
|
|
15028
15043
|
// Update match word for filtering
|
|
15029
|
-
|
|
15030
|
-
|
|
15044
|
+
const trimmedInput = normalizeFilterValue(this.input.value);
|
|
15045
|
+
if (this.menu.matchWord !== trimmedInput) {
|
|
15046
|
+
this.menu.matchWord = trimmedInput;
|
|
15031
15047
|
}
|
|
15032
15048
|
|
|
15033
15049
|
// Update available options based on selection
|
|
@@ -15165,7 +15181,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15165
15181
|
});
|
|
15166
15182
|
|
|
15167
15183
|
// Run filtering inline — the re-entrant event won't reach this code.
|
|
15168
|
-
this.menu.matchWord = this.inputInBib.value;
|
|
15184
|
+
this.menu.matchWord = normalizeFilterValue(this.inputInBib.value);
|
|
15169
15185
|
this.optionActive = null;
|
|
15170
15186
|
this.handleMenuOptions();
|
|
15171
15187
|
this.dispatchEvent(new CustomEvent('inputValue', { detail: { value: this.inputValue } }));
|
|
@@ -15179,7 +15195,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15179
15195
|
|
|
15180
15196
|
this.inputInBib.value = this.input.value;
|
|
15181
15197
|
|
|
15182
|
-
this.menu.matchWord = this.input.value;
|
|
15198
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
15183
15199
|
this.optionActive = null;
|
|
15184
15200
|
|
|
15185
15201
|
if (!this.input.value) {
|
|
@@ -15393,7 +15409,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15393
15409
|
|
|
15394
15410
|
// Sync the input and match word, but don't directly set menu.value again
|
|
15395
15411
|
if (this.menu) {
|
|
15396
|
-
this.menu.matchWord = this.input.value;
|
|
15412
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
15397
15413
|
}
|
|
15398
15414
|
|
|
15399
15415
|
this.dispatchEvent(new CustomEvent('input', {
|
|
@@ -4892,7 +4892,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4892
4892
|
}
|
|
4893
4893
|
};
|
|
4894
4894
|
|
|
4895
|
-
var formkitVersion$2 = '
|
|
4895
|
+
var formkitVersion$2 = '202603232129';
|
|
4896
4896
|
|
|
4897
4897
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4898
4898
|
static get properties() {
|
|
@@ -12640,7 +12640,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
12640
12640
|
}
|
|
12641
12641
|
};
|
|
12642
12642
|
|
|
12643
|
-
var formkitVersion$1 = '
|
|
12643
|
+
var formkitVersion$1 = '202603232129';
|
|
12644
12644
|
|
|
12645
12645
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12646
12646
|
// See LICENSE in the project root for license information.
|
|
@@ -13679,7 +13679,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13679
13679
|
}
|
|
13680
13680
|
}
|
|
13681
13681
|
|
|
13682
|
-
var formkitVersion = '
|
|
13682
|
+
var formkitVersion = '202603232129';
|
|
13683
13683
|
|
|
13684
13684
|
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}`;
|
|
13685
13685
|
|
|
@@ -14023,6 +14023,19 @@ class AuroHelpText extends LitElement {
|
|
|
14023
14023
|
// See LICENSE in the project root for license information.
|
|
14024
14024
|
|
|
14025
14025
|
|
|
14026
|
+
/**
|
|
14027
|
+
* Strips only trailing whitespace from an input value so residual spaces
|
|
14028
|
+
* from cursor editing don't break filtering or highlighting. Whitespace-only
|
|
14029
|
+
* values are preserved as-is to prevent a lone space from being treated as
|
|
14030
|
+
* empty input.
|
|
14031
|
+
* @param {string} value - Raw input value.
|
|
14032
|
+
* @returns {string} Normalized value.
|
|
14033
|
+
*/
|
|
14034
|
+
function normalizeFilterValue(value) {
|
|
14035
|
+
const raw = value || '';
|
|
14036
|
+
return raw.trim() ? raw.trimEnd() : raw;
|
|
14037
|
+
}
|
|
14038
|
+
|
|
14026
14039
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
14027
14040
|
/**
|
|
14028
14041
|
* The `auro-combobox` element provides users with a way to select an option from a list of filtered or suggested options based on user input.
|
|
@@ -14536,6 +14549,8 @@ class AuroCombobox extends AuroElement {
|
|
|
14536
14549
|
|
|
14537
14550
|
this.noMatchOption = undefined;
|
|
14538
14551
|
|
|
14552
|
+
const filterValue = normalizeFilterValue(this.input.value).toLowerCase();
|
|
14553
|
+
|
|
14539
14554
|
this.options.forEach((option) => {
|
|
14540
14555
|
let matchString = option.textContent.toLowerCase();
|
|
14541
14556
|
|
|
@@ -14552,12 +14567,12 @@ class AuroCombobox extends AuroElement {
|
|
|
14552
14567
|
}
|
|
14553
14568
|
|
|
14554
14569
|
// If input is empty, show all options (except static ones)
|
|
14555
|
-
if (!
|
|
14570
|
+
if (!filterValue) {
|
|
14556
14571
|
if (!option.hasAttribute('static')) {
|
|
14557
14572
|
option.removeAttribute('hidden');
|
|
14558
14573
|
this.availableOptions.push(option);
|
|
14559
14574
|
}
|
|
14560
|
-
} else if (matchString.includes(
|
|
14575
|
+
} else if (matchString.includes(filterValue) && !option.hasAttribute('static')) {
|
|
14561
14576
|
// only count options that match the typed input value AND are not static
|
|
14562
14577
|
option.removeAttribute('hidden');
|
|
14563
14578
|
this.availableOptions.push(option);
|
|
@@ -14588,7 +14603,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14588
14603
|
syncValuesAndStates() {
|
|
14589
14604
|
// Only sync matchWord, don't set menu.value here since setMenuValue should handle that
|
|
14590
14605
|
if (this.menu) {
|
|
14591
|
-
this.menu.matchWord = this.input.value;
|
|
14606
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
14592
14607
|
}
|
|
14593
14608
|
const label = this.menu.currentLabel;
|
|
14594
14609
|
this.updateTriggerTextDisplay(label || this.value);
|
|
@@ -14952,8 +14967,9 @@ class AuroCombobox extends AuroElement {
|
|
|
14952
14967
|
this.updateTriggerTextDisplay(event.detail.label || event.detail.value);
|
|
14953
14968
|
|
|
14954
14969
|
// Update match word for filtering
|
|
14955
|
-
|
|
14956
|
-
|
|
14970
|
+
const trimmedInput = normalizeFilterValue(this.input.value);
|
|
14971
|
+
if (this.menu.matchWord !== trimmedInput) {
|
|
14972
|
+
this.menu.matchWord = trimmedInput;
|
|
14957
14973
|
}
|
|
14958
14974
|
|
|
14959
14975
|
// Update available options based on selection
|
|
@@ -15091,7 +15107,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15091
15107
|
});
|
|
15092
15108
|
|
|
15093
15109
|
// Run filtering inline — the re-entrant event won't reach this code.
|
|
15094
|
-
this.menu.matchWord = this.inputInBib.value;
|
|
15110
|
+
this.menu.matchWord = normalizeFilterValue(this.inputInBib.value);
|
|
15095
15111
|
this.optionActive = null;
|
|
15096
15112
|
this.handleMenuOptions();
|
|
15097
15113
|
this.dispatchEvent(new CustomEvent('inputValue', { detail: { value: this.inputValue } }));
|
|
@@ -15105,7 +15121,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15105
15121
|
|
|
15106
15122
|
this.inputInBib.value = this.input.value;
|
|
15107
15123
|
|
|
15108
|
-
this.menu.matchWord = this.input.value;
|
|
15124
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
15109
15125
|
this.optionActive = null;
|
|
15110
15126
|
|
|
15111
15127
|
if (!this.input.value) {
|
|
@@ -15319,7 +15335,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15319
15335
|
|
|
15320
15336
|
// Sync the input and match word, but don't directly set menu.value again
|
|
15321
15337
|
if (this.menu) {
|
|
15322
|
-
this.menu.matchWord = this.input.value;
|
|
15338
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
15323
15339
|
}
|
|
15324
15340
|
|
|
15325
15341
|
this.dispatchEvent(new CustomEvent('input', {
|
|
@@ -4892,7 +4892,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4892
4892
|
}
|
|
4893
4893
|
};
|
|
4894
4894
|
|
|
4895
|
-
var formkitVersion$2 = '
|
|
4895
|
+
var formkitVersion$2 = '202603232129';
|
|
4896
4896
|
|
|
4897
4897
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4898
4898
|
static get properties() {
|
|
@@ -12640,7 +12640,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
12640
12640
|
}
|
|
12641
12641
|
};
|
|
12642
12642
|
|
|
12643
|
-
var formkitVersion$1 = '
|
|
12643
|
+
var formkitVersion$1 = '202603232129';
|
|
12644
12644
|
|
|
12645
12645
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12646
12646
|
// See LICENSE in the project root for license information.
|
|
@@ -13679,7 +13679,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
13679
13679
|
}
|
|
13680
13680
|
}
|
|
13681
13681
|
|
|
13682
|
-
var formkitVersion = '
|
|
13682
|
+
var formkitVersion = '202603232129';
|
|
13683
13683
|
|
|
13684
13684
|
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}`;
|
|
13685
13685
|
|
|
@@ -14023,6 +14023,19 @@ class AuroHelpText extends LitElement {
|
|
|
14023
14023
|
// See LICENSE in the project root for license information.
|
|
14024
14024
|
|
|
14025
14025
|
|
|
14026
|
+
/**
|
|
14027
|
+
* Strips only trailing whitespace from an input value so residual spaces
|
|
14028
|
+
* from cursor editing don't break filtering or highlighting. Whitespace-only
|
|
14029
|
+
* values are preserved as-is to prevent a lone space from being treated as
|
|
14030
|
+
* empty input.
|
|
14031
|
+
* @param {string} value - Raw input value.
|
|
14032
|
+
* @returns {string} Normalized value.
|
|
14033
|
+
*/
|
|
14034
|
+
function normalizeFilterValue(value) {
|
|
14035
|
+
const raw = value || '';
|
|
14036
|
+
return raw.trim() ? raw.trimEnd() : raw;
|
|
14037
|
+
}
|
|
14038
|
+
|
|
14026
14039
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
14027
14040
|
/**
|
|
14028
14041
|
* The `auro-combobox` element provides users with a way to select an option from a list of filtered or suggested options based on user input.
|
|
@@ -14536,6 +14549,8 @@ class AuroCombobox extends AuroElement {
|
|
|
14536
14549
|
|
|
14537
14550
|
this.noMatchOption = undefined;
|
|
14538
14551
|
|
|
14552
|
+
const filterValue = normalizeFilterValue(this.input.value).toLowerCase();
|
|
14553
|
+
|
|
14539
14554
|
this.options.forEach((option) => {
|
|
14540
14555
|
let matchString = option.textContent.toLowerCase();
|
|
14541
14556
|
|
|
@@ -14552,12 +14567,12 @@ class AuroCombobox extends AuroElement {
|
|
|
14552
14567
|
}
|
|
14553
14568
|
|
|
14554
14569
|
// If input is empty, show all options (except static ones)
|
|
14555
|
-
if (!
|
|
14570
|
+
if (!filterValue) {
|
|
14556
14571
|
if (!option.hasAttribute('static')) {
|
|
14557
14572
|
option.removeAttribute('hidden');
|
|
14558
14573
|
this.availableOptions.push(option);
|
|
14559
14574
|
}
|
|
14560
|
-
} else if (matchString.includes(
|
|
14575
|
+
} else if (matchString.includes(filterValue) && !option.hasAttribute('static')) {
|
|
14561
14576
|
// only count options that match the typed input value AND are not static
|
|
14562
14577
|
option.removeAttribute('hidden');
|
|
14563
14578
|
this.availableOptions.push(option);
|
|
@@ -14588,7 +14603,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14588
14603
|
syncValuesAndStates() {
|
|
14589
14604
|
// Only sync matchWord, don't set menu.value here since setMenuValue should handle that
|
|
14590
14605
|
if (this.menu) {
|
|
14591
|
-
this.menu.matchWord = this.input.value;
|
|
14606
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
14592
14607
|
}
|
|
14593
14608
|
const label = this.menu.currentLabel;
|
|
14594
14609
|
this.updateTriggerTextDisplay(label || this.value);
|
|
@@ -14952,8 +14967,9 @@ class AuroCombobox extends AuroElement {
|
|
|
14952
14967
|
this.updateTriggerTextDisplay(event.detail.label || event.detail.value);
|
|
14953
14968
|
|
|
14954
14969
|
// Update match word for filtering
|
|
14955
|
-
|
|
14956
|
-
|
|
14970
|
+
const trimmedInput = normalizeFilterValue(this.input.value);
|
|
14971
|
+
if (this.menu.matchWord !== trimmedInput) {
|
|
14972
|
+
this.menu.matchWord = trimmedInput;
|
|
14957
14973
|
}
|
|
14958
14974
|
|
|
14959
14975
|
// Update available options based on selection
|
|
@@ -15091,7 +15107,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15091
15107
|
});
|
|
15092
15108
|
|
|
15093
15109
|
// Run filtering inline — the re-entrant event won't reach this code.
|
|
15094
|
-
this.menu.matchWord = this.inputInBib.value;
|
|
15110
|
+
this.menu.matchWord = normalizeFilterValue(this.inputInBib.value);
|
|
15095
15111
|
this.optionActive = null;
|
|
15096
15112
|
this.handleMenuOptions();
|
|
15097
15113
|
this.dispatchEvent(new CustomEvent('inputValue', { detail: { value: this.inputValue } }));
|
|
@@ -15105,7 +15121,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15105
15121
|
|
|
15106
15122
|
this.inputInBib.value = this.input.value;
|
|
15107
15123
|
|
|
15108
|
-
this.menu.matchWord = this.input.value;
|
|
15124
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
15109
15125
|
this.optionActive = null;
|
|
15110
15126
|
|
|
15111
15127
|
if (!this.input.value) {
|
|
@@ -15319,7 +15335,7 @@ class AuroCombobox extends AuroElement {
|
|
|
15319
15335
|
|
|
15320
15336
|
// Sync the input and match word, but don't directly set menu.value again
|
|
15321
15337
|
if (this.menu) {
|
|
15322
|
-
this.menu.matchWord = this.input.value;
|
|
15338
|
+
this.menu.matchWord = normalizeFilterValue(this.input.value);
|
|
15323
15339
|
}
|
|
15324
15340
|
|
|
15325
15341
|
this.dispatchEvent(new CustomEvent('input', {
|