@aurodesignsystem-dev/auro-formkit 0.0.0-pr1430.0 → 0.0.0-pr1430.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 +3 -3
- package/components/checkbox/demo/index.min.js +3 -3
- package/components/checkbox/dist/index.js +3 -3
- package/components/checkbox/dist/registered.js +3 -3
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +3 -1
- package/components/combobox/demo/api.md +75 -0
- package/components/combobox/demo/api.min.js +44 -96
- package/components/combobox/demo/index.min.js +31 -95
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +1 -1
- package/components/combobox/dist/index.js +21 -95
- package/components/combobox/dist/registered.js +21 -95
- package/components/counter/demo/api.html +3 -0
- package/components/counter/demo/api.js +4 -0
- package/components/counter/demo/api.md +130 -0
- package/components/counter/demo/api.min.js +63 -104
- package/components/counter/demo/index.min.js +43 -104
- package/components/counter/dist/counterGroupKeyboardStrategy.d.ts +3 -0
- package/components/counter/dist/index.js +43 -104
- package/components/counter/dist/registered.js +43 -104
- package/components/datepicker/demo/api.html +1 -0
- package/components/datepicker/demo/api.js +2 -0
- package/components/datepicker/demo/api.md +57 -0
- package/components/datepicker/demo/api.min.js +106 -95
- package/components/datepicker/demo/index.min.js +94 -95
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -1
- package/components/datepicker/dist/index.js +94 -95
- package/components/datepicker/dist/registered.js +94 -95
- package/components/dropdown/demo/api.html +1 -0
- package/components/dropdown/demo/api.js +2 -0
- package/components/dropdown/demo/api.md +95 -0
- package/components/dropdown/demo/api.min.js +25 -88
- package/components/dropdown/demo/index.min.js +5 -88
- package/components/dropdown/dist/index.js +5 -88
- package/components/dropdown/dist/registered.js +5 -88
- package/components/form/demo/api.min.js +230 -435
- package/components/form/demo/index.min.js +230 -435
- 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/menu/demo/api.md +1 -0
- package/components/menu/demo/api.min.js +10 -0
- package/components/menu/demo/index.min.js +10 -0
- package/components/menu/dist/auro-menuoption.d.ts +9 -0
- package/components/menu/dist/index.js +10 -0
- package/components/menu/dist/registered.js +10 -0
- package/components/radio/demo/api.min.js +2 -2
- package/components/radio/demo/index.min.js +2 -2
- package/components/radio/dist/index.js +2 -2
- package/components/radio/dist/registered.js +2 -2
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +2 -0
- package/components/select/demo/api.md +76 -0
- package/components/select/demo/api.min.js +45 -101
- package/components/select/demo/index.min.js +32 -101
- package/components/select/dist/index.js +18 -97
- package/components/select/dist/registered.js +18 -97
- package/custom-elements.json +48 -3
- package/package.json +4 -3
|
@@ -142,7 +142,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
145
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
146
146
|
// See LICENSE in the project root for license information.
|
|
147
147
|
|
|
148
148
|
|
|
@@ -1687,9 +1687,9 @@ class AuroHelpText extends i$2 {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
var formkitVersion = '
|
|
1690
|
+
var formkitVersion = '202604091756';
|
|
1691
1691
|
|
|
1692
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
1692
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1693
1693
|
// See LICENSE in the project root for license information.
|
|
1694
1694
|
|
|
1695
1695
|
|
|
@@ -134,7 +134,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
136
|
|
|
137
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
137
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
138
138
|
// See LICENSE in the project root for license information.
|
|
139
139
|
|
|
140
140
|
|
|
@@ -1679,9 +1679,9 @@ class AuroHelpText extends i$2 {
|
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
1681
|
|
|
1682
|
-
var formkitVersion = '
|
|
1682
|
+
var formkitVersion = '202604091756';
|
|
1683
1683
|
|
|
1684
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
1684
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1685
1685
|
// See LICENSE in the project root for license information.
|
|
1686
1686
|
|
|
1687
1687
|
|
|
@@ -94,7 +94,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
97
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
98
98
|
// See LICENSE in the project root for license information.
|
|
99
99
|
|
|
100
100
|
|
|
@@ -1632,9 +1632,9 @@ class AuroHelpText extends LitElement {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
1634
|
|
|
1635
|
-
var formkitVersion = '
|
|
1635
|
+
var formkitVersion = '202604091756';
|
|
1636
1636
|
|
|
1637
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
1637
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1638
1638
|
// See LICENSE in the project root for license information.
|
|
1639
1639
|
|
|
1640
1640
|
|
|
@@ -94,7 +94,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
97
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
98
98
|
// See LICENSE in the project root for license information.
|
|
99
99
|
|
|
100
100
|
|
|
@@ -1632,9 +1632,9 @@ class AuroHelpText extends LitElement {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
}
|
|
1634
1634
|
|
|
1635
|
-
var formkitVersion = '
|
|
1635
|
+
var formkitVersion = '202604091756';
|
|
1636
1636
|
|
|
1637
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
1637
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1638
1638
|
// See LICENSE in the project root for license information.
|
|
1639
1639
|
|
|
1640
1640
|
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
55
55
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
56
56
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@latest/+esm" type="module"></script>
|
|
57
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-drawer@latest/+esm" type="module"></script>
|
|
57
58
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-loader@latest/+esm" type="module"></script>
|
|
58
59
|
|
|
59
60
|
<script type="module" data-demo-script="true">
|
|
@@ -5,6 +5,7 @@ import { resetStateExample } from '../apiExamples/reset-state';
|
|
|
5
5
|
import { setupExternalSelectionExample } from '../apiExamples/external-selection';
|
|
6
6
|
import { valueExample } from '../apiExamples/value';
|
|
7
7
|
import { inDialogExample } from '../apiExamples/in-dialog';
|
|
8
|
+
import { inDrawerExample } from '../apiExamples/in-drawer';
|
|
8
9
|
import { persistentExample } from '../apiExamples/persistent';
|
|
9
10
|
import { swapValueExample } from '../apiExamples/swap-value';
|
|
10
11
|
|
|
@@ -22,7 +23,8 @@ export function initExamples(initCount) {
|
|
|
22
23
|
resetStateExample();
|
|
23
24
|
setupExternalSelectionExample();
|
|
24
25
|
valueExample();
|
|
25
|
-
inDialogExample();
|
|
26
|
+
inDialogExample();
|
|
27
|
+
inDrawerExample();
|
|
26
28
|
persistentExample();
|
|
27
29
|
swapValueExample();
|
|
28
30
|
} catch (err) {
|
|
@@ -2097,6 +2097,81 @@ export function inDialogExample() {
|
|
|
2097
2097
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
2098
2098
|
</auro-accordion>
|
|
2099
2099
|
|
|
2100
|
+
### In Drawer
|
|
2101
|
+
|
|
2102
|
+
Example use of component within an `auro-drawer`.
|
|
2103
|
+
|
|
2104
|
+
<div class="exampleWrapper">
|
|
2105
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-drawer.html) -->
|
|
2106
|
+
<!-- The below content is automatically added from ./../apiExamples/in-drawer.html -->
|
|
2107
|
+
<div>
|
|
2108
|
+
<auro-button id="combobox-drawer-opener">Combobox in Drawer</auro-button>
|
|
2109
|
+
<auro-drawer id="combobox-drawer">
|
|
2110
|
+
<span slot="header">Combobox in Drawer</span>
|
|
2111
|
+
<div slot="content">
|
|
2112
|
+
<auro-combobox>
|
|
2113
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
2114
|
+
<span slot="label">Name</span>
|
|
2115
|
+
<auro-menu>
|
|
2116
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
2117
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
2118
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
2119
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
2120
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
2121
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
2122
|
+
</auro-menu>
|
|
2123
|
+
</auro-combobox>
|
|
2124
|
+
</div>
|
|
2125
|
+
</auro-drawer>
|
|
2126
|
+
</div>
|
|
2127
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
2128
|
+
</div>
|
|
2129
|
+
<auro-accordion alignRight>
|
|
2130
|
+
<span slot="trigger">See code</span>
|
|
2131
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.html) -->
|
|
2132
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.html -->
|
|
2133
|
+
|
|
2134
|
+
```html
|
|
2135
|
+
<div>
|
|
2136
|
+
<auro-button id="combobox-drawer-opener">Combobox in Drawer</auro-button>
|
|
2137
|
+
<auro-drawer id="combobox-drawer">
|
|
2138
|
+
<span slot="header">Combobox in Drawer</span>
|
|
2139
|
+
<div slot="content">
|
|
2140
|
+
<auro-combobox>
|
|
2141
|
+
<span slot="bib.fullscreen.headline">Bib Header</span>
|
|
2142
|
+
<span slot="label">Name</span>
|
|
2143
|
+
<auro-menu>
|
|
2144
|
+
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
2145
|
+
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
2146
|
+
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
2147
|
+
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
2148
|
+
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
2149
|
+
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
2150
|
+
</auro-menu>
|
|
2151
|
+
</auro-combobox>
|
|
2152
|
+
</div>
|
|
2153
|
+
</auro-drawer>
|
|
2154
|
+
</div>
|
|
2155
|
+
```
|
|
2156
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
2157
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.js) -->
|
|
2158
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.js -->
|
|
2159
|
+
|
|
2160
|
+
```js
|
|
2161
|
+
export function inDrawerExample() {
|
|
2162
|
+
document.querySelector("#combobox-drawer-opener").addEventListener("click", () => {
|
|
2163
|
+
const drawer = document.querySelector("#combobox-drawer");
|
|
2164
|
+
if (drawer.hasAttribute('open')) {
|
|
2165
|
+
drawer.removeAttribute('open');
|
|
2166
|
+
} else {
|
|
2167
|
+
drawer.setAttribute('open', true);
|
|
2168
|
+
}
|
|
2169
|
+
});
|
|
2170
|
+
};
|
|
2171
|
+
```
|
|
2172
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
2173
|
+
</auro-accordion>
|
|
2174
|
+
|
|
2100
2175
|
### Persistent Menu Option with a Custom Event
|
|
2101
2176
|
|
|
2102
2177
|
This example demonstrates a static menu option that will always appears regardless of the suggestion filtering performed. In this example "Add new address" will always be a displayed menu option.
|
|
@@ -52,6 +52,17 @@ function inDialogExample() {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
function inDrawerExample() {
|
|
56
|
+
document.querySelector("#combobox-drawer-opener").addEventListener("click", () => {
|
|
57
|
+
const drawer = document.querySelector("#combobox-drawer");
|
|
58
|
+
if (drawer.hasAttribute('open')) {
|
|
59
|
+
drawer.removeAttribute('open');
|
|
60
|
+
} else {
|
|
61
|
+
drawer.setAttribute('open', true);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
55
66
|
function persistentExample() {
|
|
56
67
|
const persistentExample = document.querySelector('#persistent');
|
|
57
68
|
|
|
@@ -1421,10 +1432,19 @@ const comboboxKeyboardStrategy = {
|
|
|
1421
1432
|
}
|
|
1422
1433
|
},
|
|
1423
1434
|
|
|
1424
|
-
Escape(component,
|
|
1425
|
-
if (ctx.isExpanded
|
|
1435
|
+
Escape(component, evt, ctx) {
|
|
1436
|
+
if (!ctx.isExpanded) {
|
|
1437
|
+
return;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
// Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups
|
|
1441
|
+
evt.stopPropagation();
|
|
1442
|
+
|
|
1443
|
+
if (ctx.isModal) {
|
|
1426
1444
|
component.setTriggerInputFocus();
|
|
1427
1445
|
}
|
|
1446
|
+
|
|
1447
|
+
component.hideBib();
|
|
1428
1448
|
},
|
|
1429
1449
|
|
|
1430
1450
|
Home(component, evt, ctx) {
|
|
@@ -1485,7 +1505,7 @@ const comboboxKeyboardStrategy = {
|
|
|
1485
1505
|
|
|
1486
1506
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1487
1507
|
|
|
1488
|
-
let AuroLibraryRuntimeUtils$2
|
|
1508
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
1489
1509
|
|
|
1490
1510
|
/* eslint-disable jsdoc/require-param */
|
|
1491
1511
|
|
|
@@ -4526,89 +4546,6 @@ let p$4 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
4526
4546
|
|
|
4527
4547
|
var iconVersion$3 = '9.1.2';
|
|
4528
4548
|
|
|
4529
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4530
|
-
// See LICENSE in the project root for license information.
|
|
4531
|
-
|
|
4532
|
-
// ---------------------------------------------------------------------
|
|
4533
|
-
|
|
4534
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4535
|
-
|
|
4536
|
-
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
4537
|
-
|
|
4538
|
-
/* eslint-disable jsdoc/require-param */
|
|
4539
|
-
|
|
4540
|
-
/**
|
|
4541
|
-
* This will register a new custom element with the browser.
|
|
4542
|
-
* @param {String} name - The name of the custom element.
|
|
4543
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
4544
|
-
* @returns {void}
|
|
4545
|
-
*/
|
|
4546
|
-
registerComponent(name, componentClass) {
|
|
4547
|
-
if (!customElements.get(name)) {
|
|
4548
|
-
customElements.define(name, class extends componentClass {});
|
|
4549
|
-
}
|
|
4550
|
-
}
|
|
4551
|
-
|
|
4552
|
-
/**
|
|
4553
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
4554
|
-
* @returns {void}
|
|
4555
|
-
*/
|
|
4556
|
-
closestElement(
|
|
4557
|
-
selector, // selector like in .closest()
|
|
4558
|
-
base = this, // extra functionality to skip a parent
|
|
4559
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4560
|
-
!el || el === document || el === window
|
|
4561
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
4562
|
-
: found
|
|
4563
|
-
? found // found a selector INside this element
|
|
4564
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4565
|
-
) {
|
|
4566
|
-
return __Closest(base);
|
|
4567
|
-
}
|
|
4568
|
-
/* eslint-enable jsdoc/require-param */
|
|
4569
|
-
|
|
4570
|
-
/**
|
|
4571
|
-
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
4572
|
-
* @param {Object} elem - The element to check.
|
|
4573
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4574
|
-
* @returns {void}
|
|
4575
|
-
*/
|
|
4576
|
-
handleComponentTagRename(elem, tagName) {
|
|
4577
|
-
const tag = tagName.toLowerCase();
|
|
4578
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
4579
|
-
|
|
4580
|
-
if (elemTag !== tag) {
|
|
4581
|
-
elem.setAttribute(tag, true);
|
|
4582
|
-
}
|
|
4583
|
-
}
|
|
4584
|
-
|
|
4585
|
-
/**
|
|
4586
|
-
* Validates if an element is a specific Auro component.
|
|
4587
|
-
* @param {Object} elem - The element to validate.
|
|
4588
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
4589
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4590
|
-
*/
|
|
4591
|
-
elementMatch(elem, tagName) {
|
|
4592
|
-
const tag = tagName.toLowerCase();
|
|
4593
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
4594
|
-
|
|
4595
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
4596
|
-
}
|
|
4597
|
-
|
|
4598
|
-
/**
|
|
4599
|
-
* Gets the text content of a named slot.
|
|
4600
|
-
* @returns {String}
|
|
4601
|
-
* @private
|
|
4602
|
-
*/
|
|
4603
|
-
getSlotText(elem, name) {
|
|
4604
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
4605
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
4606
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
4607
|
-
|
|
4608
|
-
return text || null;
|
|
4609
|
-
}
|
|
4610
|
-
};
|
|
4611
|
-
|
|
4612
4549
|
/**
|
|
4613
4550
|
* Computes display state once per keydown event.
|
|
4614
4551
|
* Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
|
|
@@ -5291,7 +5228,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
5291
5228
|
}
|
|
5292
5229
|
};
|
|
5293
5230
|
|
|
5294
|
-
var formkitVersion$2 = '
|
|
5231
|
+
var formkitVersion$2 = '202604091756';
|
|
5295
5232
|
|
|
5296
5233
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
5297
5234
|
static get properties() {
|
|
@@ -5397,7 +5334,7 @@ let AuroElement$2 = class AuroElement extends i$4 {
|
|
|
5397
5334
|
}
|
|
5398
5335
|
};
|
|
5399
5336
|
|
|
5400
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
5337
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
5401
5338
|
// See LICENSE in the project root for license information.
|
|
5402
5339
|
|
|
5403
5340
|
|
|
@@ -5502,7 +5439,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5502
5439
|
/**
|
|
5503
5440
|
* @private
|
|
5504
5441
|
*/
|
|
5505
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$2
|
|
5442
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
5506
5443
|
|
|
5507
5444
|
/**
|
|
5508
5445
|
* @private
|
|
@@ -5920,7 +5857,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5920
5857
|
*
|
|
5921
5858
|
*/
|
|
5922
5859
|
static register(name = "auro-dropdown") {
|
|
5923
|
-
AuroLibraryRuntimeUtils$2
|
|
5860
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
|
|
5924
5861
|
}
|
|
5925
5862
|
|
|
5926
5863
|
/**
|
|
@@ -13055,7 +12992,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
13055
12992
|
}
|
|
13056
12993
|
};
|
|
13057
12994
|
|
|
13058
|
-
var formkitVersion$1 = '
|
|
12995
|
+
var formkitVersion$1 = '202604091756';
|
|
13059
12996
|
|
|
13060
12997
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13061
12998
|
// See LICENSE in the project root for license information.
|
|
@@ -14120,7 +14057,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
14120
14057
|
}
|
|
14121
14058
|
}
|
|
14122
14059
|
|
|
14123
|
-
var formkitVersion = '
|
|
14060
|
+
var formkitVersion = '202604091756';
|
|
14124
14061
|
|
|
14125
14062
|
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}`;
|
|
14126
14063
|
|
|
@@ -14460,7 +14397,7 @@ class AuroHelpText extends i$4 {
|
|
|
14460
14397
|
}
|
|
14461
14398
|
}
|
|
14462
14399
|
|
|
14463
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
14400
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
14464
14401
|
// See LICENSE in the project root for license information.
|
|
14465
14402
|
|
|
14466
14403
|
|
|
@@ -14983,7 +14920,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14983
14920
|
* @returns {void}
|
|
14984
14921
|
*/
|
|
14985
14922
|
activateFirstEnabledAvailableOption() {
|
|
14986
|
-
const firstEnabledOptionIndex = this.availableOptions.findIndex((opt) => !opt.disabled);
|
|
14923
|
+
const firstEnabledOptionIndex = this.availableOptions.findIndex((opt) => !opt.disabled && !opt.hasAttribute('nomatch'));
|
|
14987
14924
|
this.updateActiveOption(firstEnabledOptionIndex);
|
|
14988
14925
|
}
|
|
14989
14926
|
|
|
@@ -14997,7 +14934,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14997
14934
|
|
|
14998
14935
|
// Work backwards through the available options array to find the last enabled option
|
|
14999
14936
|
for (let index = this.availableOptions.length - 1; index >= 0; index -= 1) {
|
|
15000
|
-
if (!this.availableOptions[index].disabled) {
|
|
14937
|
+
if (!this.availableOptions[index].disabled && !this.availableOptions[index].hasAttribute('nomatch')) {
|
|
15001
14938
|
lastEnabledOptionIndex = index;
|
|
15002
14939
|
break;
|
|
15003
14940
|
}
|
|
@@ -16262,6 +16199,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
16262
16199
|
this.selected = false;
|
|
16263
16200
|
this.noCheckmark = false;
|
|
16264
16201
|
this.disabled = false;
|
|
16202
|
+
this.noMatch = false;
|
|
16265
16203
|
|
|
16266
16204
|
/**
|
|
16267
16205
|
* @private
|
|
@@ -16337,6 +16275,15 @@ class AuroMenuOption extends AuroElement {
|
|
|
16337
16275
|
reflect: true
|
|
16338
16276
|
},
|
|
16339
16277
|
|
|
16278
|
+
/**
|
|
16279
|
+
* When true, marks this option as the "no matching results" placeholder shown by combobox when the user's input does not match any available options. Enables distinct styling and prevents the option from being treated as a selectable match.
|
|
16280
|
+
*/
|
|
16281
|
+
noMatch: {
|
|
16282
|
+
type: Boolean,
|
|
16283
|
+
reflect: true,
|
|
16284
|
+
attribute: 'nomatch'
|
|
16285
|
+
},
|
|
16286
|
+
|
|
16340
16287
|
/**
|
|
16341
16288
|
* Specifies that an option is selected.
|
|
16342
16289
|
*/
|
|
@@ -18120,7 +18067,8 @@ function initExamples(initCount) {
|
|
|
18120
18067
|
resetStateExample();
|
|
18121
18068
|
setupExternalSelectionExample();
|
|
18122
18069
|
valueExample();
|
|
18123
|
-
inDialogExample();
|
|
18070
|
+
inDialogExample();
|
|
18071
|
+
inDrawerExample();
|
|
18124
18072
|
persistentExample();
|
|
18125
18073
|
swapValueExample();
|
|
18126
18074
|
} catch (err) {
|
|
@@ -1344,10 +1344,19 @@ const comboboxKeyboardStrategy = {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
},
|
|
1346
1346
|
|
|
1347
|
-
Escape(component,
|
|
1348
|
-
if (ctx.isExpanded
|
|
1347
|
+
Escape(component, evt, ctx) {
|
|
1348
|
+
if (!ctx.isExpanded) {
|
|
1349
|
+
return;
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
// Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups
|
|
1353
|
+
evt.stopPropagation();
|
|
1354
|
+
|
|
1355
|
+
if (ctx.isModal) {
|
|
1349
1356
|
component.setTriggerInputFocus();
|
|
1350
1357
|
}
|
|
1358
|
+
|
|
1359
|
+
component.hideBib();
|
|
1351
1360
|
},
|
|
1352
1361
|
|
|
1353
1362
|
Home(component, evt, ctx) {
|
|
@@ -1408,7 +1417,7 @@ const comboboxKeyboardStrategy = {
|
|
|
1408
1417
|
|
|
1409
1418
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1410
1419
|
|
|
1411
|
-
let AuroLibraryRuntimeUtils$2
|
|
1420
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
1412
1421
|
|
|
1413
1422
|
/* eslint-disable jsdoc/require-param */
|
|
1414
1423
|
|
|
@@ -4449,89 +4458,6 @@ let p$4 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
4449
4458
|
|
|
4450
4459
|
var iconVersion$3 = '9.1.2';
|
|
4451
4460
|
|
|
4452
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4453
|
-
// See LICENSE in the project root for license information.
|
|
4454
|
-
|
|
4455
|
-
// ---------------------------------------------------------------------
|
|
4456
|
-
|
|
4457
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4458
|
-
|
|
4459
|
-
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
4460
|
-
|
|
4461
|
-
/* eslint-disable jsdoc/require-param */
|
|
4462
|
-
|
|
4463
|
-
/**
|
|
4464
|
-
* This will register a new custom element with the browser.
|
|
4465
|
-
* @param {String} name - The name of the custom element.
|
|
4466
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
4467
|
-
* @returns {void}
|
|
4468
|
-
*/
|
|
4469
|
-
registerComponent(name, componentClass) {
|
|
4470
|
-
if (!customElements.get(name)) {
|
|
4471
|
-
customElements.define(name, class extends componentClass {});
|
|
4472
|
-
}
|
|
4473
|
-
}
|
|
4474
|
-
|
|
4475
|
-
/**
|
|
4476
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
4477
|
-
* @returns {void}
|
|
4478
|
-
*/
|
|
4479
|
-
closestElement(
|
|
4480
|
-
selector, // selector like in .closest()
|
|
4481
|
-
base = this, // extra functionality to skip a parent
|
|
4482
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4483
|
-
!el || el === document || el === window
|
|
4484
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
4485
|
-
: found
|
|
4486
|
-
? found // found a selector INside this element
|
|
4487
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4488
|
-
) {
|
|
4489
|
-
return __Closest(base);
|
|
4490
|
-
}
|
|
4491
|
-
/* eslint-enable jsdoc/require-param */
|
|
4492
|
-
|
|
4493
|
-
/**
|
|
4494
|
-
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
4495
|
-
* @param {Object} elem - The element to check.
|
|
4496
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4497
|
-
* @returns {void}
|
|
4498
|
-
*/
|
|
4499
|
-
handleComponentTagRename(elem, tagName) {
|
|
4500
|
-
const tag = tagName.toLowerCase();
|
|
4501
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
4502
|
-
|
|
4503
|
-
if (elemTag !== tag) {
|
|
4504
|
-
elem.setAttribute(tag, true);
|
|
4505
|
-
}
|
|
4506
|
-
}
|
|
4507
|
-
|
|
4508
|
-
/**
|
|
4509
|
-
* Validates if an element is a specific Auro component.
|
|
4510
|
-
* @param {Object} elem - The element to validate.
|
|
4511
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
4512
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4513
|
-
*/
|
|
4514
|
-
elementMatch(elem, tagName) {
|
|
4515
|
-
const tag = tagName.toLowerCase();
|
|
4516
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
4517
|
-
|
|
4518
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
4519
|
-
}
|
|
4520
|
-
|
|
4521
|
-
/**
|
|
4522
|
-
* Gets the text content of a named slot.
|
|
4523
|
-
* @returns {String}
|
|
4524
|
-
* @private
|
|
4525
|
-
*/
|
|
4526
|
-
getSlotText(elem, name) {
|
|
4527
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
4528
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
4529
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
4530
|
-
|
|
4531
|
-
return text || null;
|
|
4532
|
-
}
|
|
4533
|
-
};
|
|
4534
|
-
|
|
4535
4461
|
/**
|
|
4536
4462
|
* Computes display state once per keydown event.
|
|
4537
4463
|
* Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
|
|
@@ -5214,7 +5140,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
|
|
|
5214
5140
|
}
|
|
5215
5141
|
};
|
|
5216
5142
|
|
|
5217
|
-
var formkitVersion$2 = '
|
|
5143
|
+
var formkitVersion$2 = '202604091756';
|
|
5218
5144
|
|
|
5219
5145
|
let AuroElement$2 = class AuroElement extends i$4 {
|
|
5220
5146
|
static get properties() {
|
|
@@ -5320,7 +5246,7 @@ let AuroElement$2 = class AuroElement extends i$4 {
|
|
|
5320
5246
|
}
|
|
5321
5247
|
};
|
|
5322
5248
|
|
|
5323
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
5249
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
5324
5250
|
// See LICENSE in the project root for license information.
|
|
5325
5251
|
|
|
5326
5252
|
|
|
@@ -5425,7 +5351,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5425
5351
|
/**
|
|
5426
5352
|
* @private
|
|
5427
5353
|
*/
|
|
5428
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$2
|
|
5354
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
5429
5355
|
|
|
5430
5356
|
/**
|
|
5431
5357
|
* @private
|
|
@@ -5843,7 +5769,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5843
5769
|
*
|
|
5844
5770
|
*/
|
|
5845
5771
|
static register(name = "auro-dropdown") {
|
|
5846
|
-
AuroLibraryRuntimeUtils$2
|
|
5772
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
|
|
5847
5773
|
}
|
|
5848
5774
|
|
|
5849
5775
|
/**
|
|
@@ -12978,7 +12904,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
|
|
|
12978
12904
|
}
|
|
12979
12905
|
};
|
|
12980
12906
|
|
|
12981
|
-
var formkitVersion$1 = '
|
|
12907
|
+
var formkitVersion$1 = '202604091756';
|
|
12982
12908
|
|
|
12983
12909
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12984
12910
|
// See LICENSE in the project root for license information.
|
|
@@ -14043,7 +13969,7 @@ class AuroBibtemplate extends i$4 {
|
|
|
14043
13969
|
}
|
|
14044
13970
|
}
|
|
14045
13971
|
|
|
14046
|
-
var formkitVersion = '
|
|
13972
|
+
var formkitVersion = '202604091756';
|
|
14047
13973
|
|
|
14048
13974
|
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}`;
|
|
14049
13975
|
|
|
@@ -14383,7 +14309,7 @@ class AuroHelpText extends i$4 {
|
|
|
14383
14309
|
}
|
|
14384
14310
|
}
|
|
14385
14311
|
|
|
14386
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
14312
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
14387
14313
|
// See LICENSE in the project root for license information.
|
|
14388
14314
|
|
|
14389
14315
|
|
|
@@ -14906,7 +14832,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14906
14832
|
* @returns {void}
|
|
14907
14833
|
*/
|
|
14908
14834
|
activateFirstEnabledAvailableOption() {
|
|
14909
|
-
const firstEnabledOptionIndex = this.availableOptions.findIndex((opt) => !opt.disabled);
|
|
14835
|
+
const firstEnabledOptionIndex = this.availableOptions.findIndex((opt) => !opt.disabled && !opt.hasAttribute('nomatch'));
|
|
14910
14836
|
this.updateActiveOption(firstEnabledOptionIndex);
|
|
14911
14837
|
}
|
|
14912
14838
|
|
|
@@ -14920,7 +14846,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14920
14846
|
|
|
14921
14847
|
// Work backwards through the available options array to find the last enabled option
|
|
14922
14848
|
for (let index = this.availableOptions.length - 1; index >= 0; index -= 1) {
|
|
14923
|
-
if (!this.availableOptions[index].disabled) {
|
|
14849
|
+
if (!this.availableOptions[index].disabled && !this.availableOptions[index].hasAttribute('nomatch')) {
|
|
14924
14850
|
lastEnabledOptionIndex = index;
|
|
14925
14851
|
break;
|
|
14926
14852
|
}
|
|
@@ -16185,6 +16111,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
16185
16111
|
this.selected = false;
|
|
16186
16112
|
this.noCheckmark = false;
|
|
16187
16113
|
this.disabled = false;
|
|
16114
|
+
this.noMatch = false;
|
|
16188
16115
|
|
|
16189
16116
|
/**
|
|
16190
16117
|
* @private
|
|
@@ -16260,6 +16187,15 @@ class AuroMenuOption extends AuroElement {
|
|
|
16260
16187
|
reflect: true
|
|
16261
16188
|
},
|
|
16262
16189
|
|
|
16190
|
+
/**
|
|
16191
|
+
* When true, marks this option as the "no matching results" placeholder shown by combobox when the user's input does not match any available options. Enables distinct styling and prevents the option from being treated as a selectable match.
|
|
16192
|
+
*/
|
|
16193
|
+
noMatch: {
|
|
16194
|
+
type: Boolean,
|
|
16195
|
+
reflect: true,
|
|
16196
|
+
attribute: 'nomatch'
|
|
16197
|
+
},
|
|
16198
|
+
|
|
16263
16199
|
/**
|
|
16264
16200
|
* Specifies that an option is selected.
|
|
16265
16201
|
*/
|
|
@@ -3,7 +3,7 @@ export namespace comboboxKeyboardStrategy {
|
|
|
3
3
|
function ArrowUp(component: any, evt: any, ctx: any): void;
|
|
4
4
|
function End(component: any, evt: any, ctx: any): void;
|
|
5
5
|
function Enter(component: any, evt: any, ctx: any): void;
|
|
6
|
-
function Escape(component: any,
|
|
6
|
+
function Escape(component: any, evt: any, ctx: any): void;
|
|
7
7
|
function Home(component: any, evt: any, ctx: any): void;
|
|
8
8
|
function Tab(component: any, evt: any, ctx: any): void;
|
|
9
9
|
}
|