@aurodesignsystem-dev/auro-formkit 0.0.0-pr1429.0 → 0.0.0-pr1430.0
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.html +0 -1
- package/components/combobox/demo/api.js +1 -3
- package/components/combobox/demo/api.md +0 -75
- package/components/combobox/demo/api.min.js +120 -30
- package/components/combobox/demo/index.min.js +119 -17
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +1 -1
- package/components/combobox/dist/index.js +119 -17
- package/components/combobox/dist/registered.js +119 -17
- package/components/counter/demo/api.html +0 -3
- package/components/counter/demo/api.js +0 -4
- package/components/counter/demo/api.md +0 -130
- package/components/counter/demo/api.min.js +129 -58
- package/components/counter/demo/index.min.js +129 -38
- package/components/counter/dist/index.js +129 -38
- package/components/counter/dist/registered.js +129 -38
- package/components/datepicker/demo/api.html +0 -1
- package/components/datepicker/demo/api.js +0 -2
- package/components/datepicker/demo/api.md +0 -55
- package/components/datepicker/demo/api.min.js +121 -102
- package/components/datepicker/demo/index.min.js +121 -90
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +1 -3
- package/components/datepicker/dist/index.js +121 -90
- package/components/datepicker/dist/registered.js +121 -90
- package/components/dropdown/demo/api.html +0 -1
- package/components/dropdown/demo/api.js +0 -2
- package/components/dropdown/demo/api.md +0 -95
- package/components/dropdown/demo/api.min.js +115 -24
- package/components/dropdown/demo/index.min.js +115 -4
- package/components/dropdown/dist/index.js +115 -4
- package/components/dropdown/dist/registered.js +115 -4
- package/components/form/demo/api.min.js +533 -201
- package/components/form/demo/index.min.js +533 -201
- 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.html +0 -1
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +0 -79
- package/components/select/demo/api.min.js +127 -35
- package/components/select/demo/index.min.js +127 -19
- package/components/select/dist/index.js +123 -15
- package/components/select/dist/registered.js +123 -15
- package/custom-elements.json +3 -27
- package/package.json +2 -3
- package/components/counter/dist/counterGroupKeyboardStrategy.d.ts +0 -3
|
@@ -6626,7 +6626,7 @@ class AuroHelpText extends LitElement {
|
|
|
6626
6626
|
}
|
|
6627
6627
|
}
|
|
6628
6628
|
|
|
6629
|
-
var formkitVersion = '
|
|
6629
|
+
var formkitVersion = '202604082129';
|
|
6630
6630
|
|
|
6631
6631
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6632
6632
|
// See LICENSE in the project root for license information.
|
|
@@ -6626,7 +6626,7 @@ class AuroHelpText extends LitElement {
|
|
|
6626
6626
|
}
|
|
6627
6627
|
}
|
|
6628
6628
|
|
|
6629
|
-
var formkitVersion = '
|
|
6629
|
+
var formkitVersion = '202604082129';
|
|
6630
6630
|
|
|
6631
6631
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6632
6632
|
// See LICENSE in the project root for license information.
|
|
@@ -1645,7 +1645,7 @@ class AuroHelpText extends i$2 {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
1647
|
|
|
1648
|
-
var formkitVersion = '
|
|
1648
|
+
var formkitVersion = '202604082129';
|
|
1649
1649
|
|
|
1650
1650
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1651
1651
|
// See LICENSE in the project root for license information.
|
|
@@ -1620,7 +1620,7 @@ class AuroHelpText extends i$2 {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
1622
|
|
|
1623
|
-
var formkitVersion = '
|
|
1623
|
+
var formkitVersion = '202604082129';
|
|
1624
1624
|
|
|
1625
1625
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1626
1626
|
// See LICENSE in the project root for license information.
|
|
@@ -1573,7 +1573,7 @@ class AuroHelpText extends LitElement {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
|
-
var formkitVersion = '
|
|
1576
|
+
var formkitVersion = '202604082129';
|
|
1577
1577
|
|
|
1578
1578
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1579
1579
|
// See LICENSE in the project root for license information.
|
|
@@ -1573,7 +1573,7 @@ class AuroHelpText extends LitElement {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
|
-
var formkitVersion = '
|
|
1576
|
+
var formkitVersion = '202604082129';
|
|
1577
1577
|
|
|
1578
1578
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1579
1579
|
// See LICENSE in the project root for license information.
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
58
58
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
59
59
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@latest/+esm" type="module"></script>
|
|
60
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-drawer@latest/+esm" type="module"></script>
|
|
61
60
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-loader@latest/+esm" type="module"></script>
|
|
62
61
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
63
62
|
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.2.4/auro-input/+esm"></script>
|
|
@@ -3,7 +3,6 @@ import { valueExample } from "../apiExamples/value";
|
|
|
3
3
|
import { valueExtractionExample } from "../apiExamples/value-extraction";
|
|
4
4
|
import { valueAlertExample } from "../apiExamples/value-alert";
|
|
5
5
|
import { inDialogExample } from '../apiExamples/in-dialog';
|
|
6
|
-
import { inDrawerExample } from '../apiExamples/in-drawer';
|
|
7
6
|
import { resetStateExample } from "../apiExamples/reset-state";
|
|
8
7
|
import { updateActiveOptionExample } from "../apiExamples/update-active-option.js";
|
|
9
8
|
// import { auroMenuLoadingExample } from "../apiExamples/loading";
|
|
@@ -24,7 +23,6 @@ export function initExamples(initCount) {
|
|
|
24
23
|
valueExtractionExample();
|
|
25
24
|
valueAlertExample();
|
|
26
25
|
inDialogExample();
|
|
27
|
-
inDrawerExample();
|
|
28
26
|
resetStateExample();
|
|
29
27
|
updateActiveOptionExample();
|
|
30
28
|
// auroMenuLoadingExample();
|
|
@@ -2284,85 +2284,6 @@ export function inDialogExample() {
|
|
|
2284
2284
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
2285
2285
|
</auro-accordion>
|
|
2286
2286
|
|
|
2287
|
-
### Select in Drawer
|
|
2288
|
-
|
|
2289
|
-
The component can be in a drawer.
|
|
2290
|
-
|
|
2291
|
-
<div class="exampleWrapper">
|
|
2292
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-drawer.html) -->
|
|
2293
|
-
<!-- The below content is automatically added from ./../apiExamples/in-drawer.html -->
|
|
2294
|
-
<div>
|
|
2295
|
-
<auro-button id="select-drawer-opener">Select in drawer</auro-button>
|
|
2296
|
-
<auro-drawer id="select-drawer">
|
|
2297
|
-
<span slot="header">Select in drawer</span>
|
|
2298
|
-
<div slot="content">
|
|
2299
|
-
<auro-select id="valueExample" value="price">
|
|
2300
|
-
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
2301
|
-
<span slot="label">Name</span>
|
|
2302
|
-
<auro-menu>
|
|
2303
|
-
<auro-menuoption id="option-0" value="stops">Stops</auro-menuoption>
|
|
2304
|
-
<auro-menuoption id="option-1" value="price">Price</auro-menuoption>
|
|
2305
|
-
<auro-menuoption id="option-2" value="duration">Duration</auro-menuoption>
|
|
2306
|
-
<auro-menuoption id="option-3" value="departure">Departure</auro-menuoption>
|
|
2307
|
-
<auro-menuoption id="option-4" value="arrival">Arrival</auro-menuoption>
|
|
2308
|
-
<auro-menuoption id="option-5" value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
2309
|
-
</auro-menu>
|
|
2310
|
-
</auro-select>
|
|
2311
|
-
</div>
|
|
2312
|
-
</auro-drawer>
|
|
2313
|
-
</div>
|
|
2314
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
2315
|
-
</div>
|
|
2316
|
-
<auro-accordion alignRight>
|
|
2317
|
-
<span slot="trigger">See code</span>
|
|
2318
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.html) -->
|
|
2319
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.html -->
|
|
2320
|
-
|
|
2321
|
-
```html
|
|
2322
|
-
<div>
|
|
2323
|
-
<auro-button id="select-drawer-opener">Select in drawer</auro-button>
|
|
2324
|
-
<auro-drawer id="select-drawer">
|
|
2325
|
-
<span slot="header">Select in drawer</span>
|
|
2326
|
-
<div slot="content">
|
|
2327
|
-
<auro-select id="valueExample" value="price">
|
|
2328
|
-
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
2329
|
-
<span slot="label">Name</span>
|
|
2330
|
-
<auro-menu>
|
|
2331
|
-
<auro-menuoption id="option-0" value="stops">Stops</auro-menuoption>
|
|
2332
|
-
<auro-menuoption id="option-1" value="price">Price</auro-menuoption>
|
|
2333
|
-
<auro-menuoption id="option-2" value="duration">Duration</auro-menuoption>
|
|
2334
|
-
<auro-menuoption id="option-3" value="departure">Departure</auro-menuoption>
|
|
2335
|
-
<auro-menuoption id="option-4" value="arrival">Arrival</auro-menuoption>
|
|
2336
|
-
<auro-menuoption id="option-5" value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
2337
|
-
</auro-menu>
|
|
2338
|
-
</auro-select>
|
|
2339
|
-
</div>
|
|
2340
|
-
</auro-drawer>
|
|
2341
|
-
</div>
|
|
2342
|
-
```
|
|
2343
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
2344
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.js) -->
|
|
2345
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.js -->
|
|
2346
|
-
|
|
2347
|
-
```js
|
|
2348
|
-
export function inDrawerExample() {
|
|
2349
|
-
document.querySelector("#select-drawer-opener").addEventListener("click", () => {
|
|
2350
|
-
const drawer = document.querySelector("#select-drawer");
|
|
2351
|
-
// drawer.open = true;
|
|
2352
|
-
|
|
2353
|
-
// const drawer = document.querySelector(drawerID);
|
|
2354
|
-
|
|
2355
|
-
if (drawer.hasAttribute('open')) {
|
|
2356
|
-
drawer.removeAttribute('open');
|
|
2357
|
-
} else {
|
|
2358
|
-
drawer.setAttribute('open', true);
|
|
2359
|
-
}
|
|
2360
|
-
});
|
|
2361
|
-
};
|
|
2362
|
-
```
|
|
2363
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
2364
|
-
</auro-accordion>
|
|
2365
|
-
|
|
2366
2287
|
### Watch for Value Changes
|
|
2367
2288
|
|
|
2368
2289
|
The following example listens for the `auroMenu-selectedOption` event. Once triggered, element.value or element.optionSelected may be queried for the new value or complete option object.
|
|
@@ -51,21 +51,6 @@ function inDialogExample() {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
function inDrawerExample() {
|
|
55
|
-
document.querySelector("#select-drawer-opener").addEventListener("click", () => {
|
|
56
|
-
const drawer = document.querySelector("#select-drawer");
|
|
57
|
-
// drawer.open = true;
|
|
58
|
-
|
|
59
|
-
// const drawer = document.querySelector(drawerID);
|
|
60
|
-
|
|
61
|
-
if (drawer.hasAttribute('open')) {
|
|
62
|
-
drawer.removeAttribute('open');
|
|
63
|
-
} else {
|
|
64
|
-
drawer.setAttribute('open', true);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
54
|
function resetStateExample() {
|
|
70
55
|
const elem = document.querySelector('#resetStateExample');
|
|
71
56
|
|
|
@@ -655,7 +640,7 @@ const {
|
|
|
655
640
|
|
|
656
641
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
657
642
|
|
|
658
|
-
let AuroLibraryRuntimeUtils$
|
|
643
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
659
644
|
|
|
660
645
|
/* eslint-disable jsdoc/require-param */
|
|
661
646
|
|
|
@@ -738,7 +723,7 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
|
738
723
|
class AuroFormValidation {
|
|
739
724
|
|
|
740
725
|
constructor() {
|
|
741
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
726
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
742
727
|
}
|
|
743
728
|
|
|
744
729
|
/**
|
|
@@ -1417,9 +1402,6 @@ const selectKeyboardStrategy = {
|
|
|
1417
1402
|
},
|
|
1418
1403
|
|
|
1419
1404
|
Escape(component, evt, ctx) {
|
|
1420
|
-
// Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups
|
|
1421
|
-
evt.stopPropagation();
|
|
1422
|
-
|
|
1423
1405
|
if (!ctx.isExpanded) {
|
|
1424
1406
|
return;
|
|
1425
1407
|
}
|
|
@@ -1558,7 +1540,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
1558
1540
|
|
|
1559
1541
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1560
1542
|
|
|
1561
|
-
let AuroLibraryRuntimeUtils$
|
|
1543
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
1562
1544
|
|
|
1563
1545
|
/* eslint-disable jsdoc/require-param */
|
|
1564
1546
|
|
|
@@ -3347,6 +3329,7 @@ class AuroFloatingUI {
|
|
|
3347
3329
|
this.focusHandler = null;
|
|
3348
3330
|
this.clickHandler = null;
|
|
3349
3331
|
this.keyDownHandler = null;
|
|
3332
|
+
this.touchHandler = null;
|
|
3350
3333
|
|
|
3351
3334
|
/**
|
|
3352
3335
|
* @private
|
|
@@ -3764,6 +3747,28 @@ class AuroFloatingUI {
|
|
|
3764
3747
|
setTimeout(() => {
|
|
3765
3748
|
window.addEventListener("click", this.clickHandler);
|
|
3766
3749
|
}, 0);
|
|
3750
|
+
|
|
3751
|
+
// iOS Safari does not fire `click` on non-interactive elements, so
|
|
3752
|
+
// tapping an inert backdrop never reaches the click handler above.
|
|
3753
|
+
// Mirror the same outside-tap logic with a passive touchstart listener.
|
|
3754
|
+
this.touchHandler = (evt) => {
|
|
3755
|
+
const element = this.element;
|
|
3756
|
+
if (!element?.bib) {
|
|
3757
|
+
return;
|
|
3758
|
+
}
|
|
3759
|
+
|
|
3760
|
+
// fullscreen (modal) dialog handles its own dismissal
|
|
3761
|
+
if (element.bib.hasAttribute("isfullscreen")) {
|
|
3762
|
+
return;
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
const path = evt.composedPath();
|
|
3766
|
+
if (!path.includes(element.trigger) && !path.includes(element.bib)) {
|
|
3767
|
+
this.hideBib("click");
|
|
3768
|
+
}
|
|
3769
|
+
};
|
|
3770
|
+
|
|
3771
|
+
window.addEventListener("touchstart", this.touchHandler, { passive: true });
|
|
3767
3772
|
}
|
|
3768
3773
|
|
|
3769
3774
|
cleanupHideHandlers() {
|
|
@@ -3779,6 +3784,11 @@ class AuroFloatingUI {
|
|
|
3779
3784
|
this.clickHandler = null;
|
|
3780
3785
|
}
|
|
3781
3786
|
|
|
3787
|
+
if (this.touchHandler) {
|
|
3788
|
+
window.removeEventListener("touchstart", this.touchHandler);
|
|
3789
|
+
this.touchHandler = null;
|
|
3790
|
+
}
|
|
3791
|
+
|
|
3782
3792
|
if (this.keyDownHandler) {
|
|
3783
3793
|
document.removeEventListener("keydown", this.keyDownHandler);
|
|
3784
3794
|
this.keyDownHandler = null;
|
|
@@ -4571,6 +4581,89 @@ let p$3 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
4571
4581
|
|
|
4572
4582
|
var iconVersion$2 = '9.1.2';
|
|
4573
4583
|
|
|
4584
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
4585
|
+
// See LICENSE in the project root for license information.
|
|
4586
|
+
|
|
4587
|
+
// ---------------------------------------------------------------------
|
|
4588
|
+
|
|
4589
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4590
|
+
|
|
4591
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
4592
|
+
|
|
4593
|
+
/* eslint-disable jsdoc/require-param */
|
|
4594
|
+
|
|
4595
|
+
/**
|
|
4596
|
+
* This will register a new custom element with the browser.
|
|
4597
|
+
* @param {String} name - The name of the custom element.
|
|
4598
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
4599
|
+
* @returns {void}
|
|
4600
|
+
*/
|
|
4601
|
+
registerComponent(name, componentClass) {
|
|
4602
|
+
if (!customElements.get(name)) {
|
|
4603
|
+
customElements.define(name, class extends componentClass {});
|
|
4604
|
+
}
|
|
4605
|
+
}
|
|
4606
|
+
|
|
4607
|
+
/**
|
|
4608
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
4609
|
+
* @returns {void}
|
|
4610
|
+
*/
|
|
4611
|
+
closestElement(
|
|
4612
|
+
selector, // selector like in .closest()
|
|
4613
|
+
base = this, // extra functionality to skip a parent
|
|
4614
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
4615
|
+
!el || el === document || el === window
|
|
4616
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
4617
|
+
: found
|
|
4618
|
+
? found // found a selector INside this element
|
|
4619
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
4620
|
+
) {
|
|
4621
|
+
return __Closest(base);
|
|
4622
|
+
}
|
|
4623
|
+
/* eslint-enable jsdoc/require-param */
|
|
4624
|
+
|
|
4625
|
+
/**
|
|
4626
|
+
* 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.
|
|
4627
|
+
* @param {Object} elem - The element to check.
|
|
4628
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
4629
|
+
* @returns {void}
|
|
4630
|
+
*/
|
|
4631
|
+
handleComponentTagRename(elem, tagName) {
|
|
4632
|
+
const tag = tagName.toLowerCase();
|
|
4633
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4634
|
+
|
|
4635
|
+
if (elemTag !== tag) {
|
|
4636
|
+
elem.setAttribute(tag, true);
|
|
4637
|
+
}
|
|
4638
|
+
}
|
|
4639
|
+
|
|
4640
|
+
/**
|
|
4641
|
+
* Validates if an element is a specific Auro component.
|
|
4642
|
+
* @param {Object} elem - The element to validate.
|
|
4643
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
4644
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
4645
|
+
*/
|
|
4646
|
+
elementMatch(elem, tagName) {
|
|
4647
|
+
const tag = tagName.toLowerCase();
|
|
4648
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
4649
|
+
|
|
4650
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4653
|
+
/**
|
|
4654
|
+
* Gets the text content of a named slot.
|
|
4655
|
+
* @returns {String}
|
|
4656
|
+
* @private
|
|
4657
|
+
*/
|
|
4658
|
+
getSlotText(elem, name) {
|
|
4659
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
4660
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
4661
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
4662
|
+
|
|
4663
|
+
return text || null;
|
|
4664
|
+
}
|
|
4665
|
+
};
|
|
4666
|
+
|
|
4574
4667
|
/**
|
|
4575
4668
|
* Computes display state once per keydown event.
|
|
4576
4669
|
* Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
|
|
@@ -5038,7 +5131,7 @@ var tokensCss$2 = i$6`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
5038
5131
|
|
|
5039
5132
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
5040
5133
|
|
|
5041
|
-
let AuroLibraryRuntimeUtils$
|
|
5134
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
5042
5135
|
|
|
5043
5136
|
/* eslint-disable jsdoc/require-param */
|
|
5044
5137
|
|
|
@@ -5131,7 +5224,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
5131
5224
|
this.onDark = false;
|
|
5132
5225
|
this.hasTextContent = false;
|
|
5133
5226
|
|
|
5134
|
-
AuroLibraryRuntimeUtils$
|
|
5227
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
5135
5228
|
}
|
|
5136
5229
|
|
|
5137
5230
|
static get styles() {
|
|
@@ -5197,7 +5290,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
5197
5290
|
*
|
|
5198
5291
|
*/
|
|
5199
5292
|
static register(name = "auro-helptext") {
|
|
5200
|
-
AuroLibraryRuntimeUtils$
|
|
5293
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
|
|
5201
5294
|
}
|
|
5202
5295
|
|
|
5203
5296
|
updated() {
|
|
@@ -5253,7 +5346,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
5253
5346
|
}
|
|
5254
5347
|
};
|
|
5255
5348
|
|
|
5256
|
-
var formkitVersion$1 = '
|
|
5349
|
+
var formkitVersion$1 = '202604082129';
|
|
5257
5350
|
|
|
5258
5351
|
class AuroElement extends i$3 {
|
|
5259
5352
|
static get properties() {
|
|
@@ -5464,7 +5557,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5464
5557
|
/**
|
|
5465
5558
|
* @private
|
|
5466
5559
|
*/
|
|
5467
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
5560
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
5468
5561
|
|
|
5469
5562
|
/**
|
|
5470
5563
|
* @private
|
|
@@ -5882,7 +5975,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5882
5975
|
*
|
|
5883
5976
|
*/
|
|
5884
5977
|
static register(name = "auro-dropdown") {
|
|
5885
|
-
AuroLibraryRuntimeUtils$
|
|
5978
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
5886
5979
|
}
|
|
5887
5980
|
|
|
5888
5981
|
/**
|
|
@@ -7006,7 +7099,7 @@ class AuroHelpText extends i$3 {
|
|
|
7006
7099
|
}
|
|
7007
7100
|
}
|
|
7008
7101
|
|
|
7009
|
-
var formkitVersion = '
|
|
7102
|
+
var formkitVersion = '202604082129';
|
|
7010
7103
|
|
|
7011
7104
|
var styleCss$2 = i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7012
7105
|
|
|
@@ -7075,7 +7168,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7075
7168
|
/**
|
|
7076
7169
|
* @private
|
|
7077
7170
|
*/
|
|
7078
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
7171
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
7079
7172
|
|
|
7080
7173
|
/**
|
|
7081
7174
|
* Generate unique names for dependency components.
|
|
@@ -7631,7 +7724,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
7631
7724
|
*
|
|
7632
7725
|
*/
|
|
7633
7726
|
static register(name = "auro-select") {
|
|
7634
|
-
AuroLibraryRuntimeUtils$
|
|
7727
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroSelect);
|
|
7635
7728
|
}
|
|
7636
7729
|
|
|
7637
7730
|
/**
|
|
@@ -8649,7 +8742,7 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
8649
8742
|
*
|
|
8650
8743
|
*/
|
|
8651
8744
|
static register(name = "auro-menuoption") {
|
|
8652
|
-
AuroLibraryRuntimeUtils$
|
|
8745
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenuOption);
|
|
8653
8746
|
}
|
|
8654
8747
|
|
|
8655
8748
|
/**
|
|
@@ -8691,7 +8784,7 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
8691
8784
|
/**
|
|
8692
8785
|
* @private
|
|
8693
8786
|
*/
|
|
8694
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
8787
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
|
|
8695
8788
|
|
|
8696
8789
|
// Initialize context-related properties
|
|
8697
8790
|
this.menuService = null;
|
|
@@ -10129,7 +10222,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
10129
10222
|
*
|
|
10130
10223
|
*/
|
|
10131
10224
|
static register(name = "auro-menu") {
|
|
10132
|
-
AuroLibraryRuntimeUtils$
|
|
10225
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenu);
|
|
10133
10226
|
}
|
|
10134
10227
|
|
|
10135
10228
|
/**
|
|
@@ -10279,7 +10372,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
10279
10372
|
}
|
|
10280
10373
|
|
|
10281
10374
|
firstUpdated() {
|
|
10282
|
-
AuroLibraryRuntimeUtils$
|
|
10375
|
+
AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-menu');
|
|
10283
10376
|
|
|
10284
10377
|
this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
|
|
10285
10378
|
this.initializeMenu();
|
|
@@ -10543,7 +10636,6 @@ function initExamples(initCount) {
|
|
|
10543
10636
|
valueExtractionExample();
|
|
10544
10637
|
valueAlertExample();
|
|
10545
10638
|
inDialogExample();
|
|
10546
|
-
inDrawerExample();
|
|
10547
10639
|
resetStateExample();
|
|
10548
10640
|
updateActiveOptionExample();
|
|
10549
10641
|
// auroMenuLoadingExample();
|