@aurodesignsystem/auro-formkit 6.0.1 → 6.0.3-rc-1579.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/CHANGELOG.md +8 -5
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +20 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.html +1 -0
- package/components/combobox/demo/customize.md +69 -0
- package/components/combobox/demo/customize.min.js +466 -66
- package/components/combobox/demo/getting-started.min.js +423 -66
- package/components/combobox/demo/index.html +1 -1
- package/components/combobox/demo/index.min.js +423 -66
- package/components/combobox/dist/index.js +93 -32
- package/components/combobox/dist/registered.js +93 -32
- package/components/counter/demo/customize.min.js +69 -21
- package/components/counter/demo/index.min.js +43 -21
- package/components/counter/dist/index.js +39 -17
- package/components/counter/dist/registered.js +39 -17
- package/components/datepicker/demo/customize.min.js +73 -16
- package/components/datepicker/demo/index.min.js +38 -16
- package/components/datepicker/dist/index.js +33 -11
- package/components/datepicker/dist/registered.js +33 -11
- package/components/dropdown/demo/customize.md +4 -4
- package/components/dropdown/demo/customize.min.js +68 -10
- package/components/dropdown/demo/getting-started.html +3 -0
- package/components/dropdown/demo/getting-started.md +4 -4
- package/components/dropdown/demo/getting-started.min.js +13098 -78
- package/components/dropdown/demo/index.min.js +45 -16
- package/components/dropdown/dist/index.js +21 -2
- package/components/dropdown/dist/registered.js +21 -2
- package/components/form/demo/customize.min.js +541 -110
- package/components/form/demo/getting-started.min.js +541 -110
- package/components/form/demo/index.min.js +541 -110
- package/components/form/demo/registerDemoDeps.min.js +529 -106
- package/components/form/dist/index.js +12 -4
- package/components/form/dist/registered.js +12 -4
- package/components/input/demo/customize.min.js +1 -1
- package/components/input/demo/getting-started.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/customize.md +50 -0
- package/components/menu/demo/index.min.js +325 -29
- package/components/menu/dist/auro-menu-utils.d.ts +30 -0
- package/components/menu/dist/auro-menu.d.ts +23 -0
- package/components/menu/dist/index.js +325 -29
- package/components/menu/dist/registered.js +325 -29
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.html +1 -0
- package/components/select/demo/customize.md +121 -0
- package/components/select/demo/customize.min.js +415 -39
- package/components/select/demo/getting-started.min.js +356 -38
- package/components/select/demo/index.min.js +356 -38
- package/components/select/dist/index.js +27 -5
- package/components/select/dist/registered.js +27 -5
- package/custom-elements.json +1614 -1511
- package/package.json +3 -1
- /package/components/counter/dist/styles/{counter-wrapper-color-css.d.ts → counter-group-color-css.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
## [6.0.1](https://github.com/AlaskaAirlines/auro-formkit/compare/v6.0.
|
|
1
|
+
## [6.0.3-rc-1579.1](https://github.com/AlaskaAirlines/auro-formkit/compare/v6.0.2...v6.0.3-rc-1579.1) (2026-08-11)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* **dropdown:** align js example system AB[#1611713](https://github.com/AlaskaAirlines/auro-formkit/issues/1611713) ([2e06af7](https://github.com/AlaskaAirlines/auro-formkit/commit/2e06af7babdf13323fd71d67380916dca0172af2))
|
|
7
|
+
* **dropdown:** re-configure floater on reconnect to restore trigger event listeners AB[#1611656](https://github.com/AlaskaAirlines/auro-formkit/issues/1611656) ([e782512](https://github.com/AlaskaAirlines/auro-formkit/commit/e78251238cf4d751c19585acf94b71d84c590d6a))
|
|
8
|
+
* ellipses dp value at small widths AB[#1602084](https://github.com/AlaskaAirlines/auro-formkit/issues/1602084) ([2fe60e2](https://github.com/AlaskaAirlines/auro-formkit/commit/2fe60e25d415053805abae83e94c1002b77f30fc))
|
|
9
|
+
* ensure range inputs maintain equal size with long labels AB[#1494482](https://github.com/AlaskaAirlines/auro-formkit/issues/1494482) ([146a039](https://github.com/AlaskaAirlines/auro-formkit/commit/146a0398fb491ecd857d496ff7ec89e5977fc012))
|
|
10
|
+
* **menu:** distinguish menu options that share a value AB[#1602086](https://github.com/AlaskaAirlines/auro-formkit/issues/1602086) ([cc880c9](https://github.com/AlaskaAirlines/auro-formkit/commit/cc880c9c6254bcec133e54990c85839bf3428e68))
|
|
11
|
+
* **menu:** re-select highlighted option via Enter after emptying selection AB[#1606433](https://github.com/AlaskaAirlines/auro-formkit/issues/1606433) ([50b3af2](https://github.com/AlaskaAirlines/auro-formkit/commit/50b3af20b08fe4a1cf46ed849ea14d7c7df1fac3))
|
|
12
|
+
* stringfy counter's aria-valuetext AB[#1443553](https://github.com/AlaskaAirlines/auro-formkit/issues/1443553) ([f8d33f9](https://github.com/AlaskaAirlines/auro-formkit/commit/f8d33f9db67f55f1e45d4d45d442a21c94e6127b))
|
|
10
13
|
|
|
11
14
|
# Changelog
|
|
12
15
|
|
|
@@ -5,7 +5,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
5
5
|
|
|
6
6
|
var colorCss = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
7
7
|
|
|
8
|
-
var styleCss = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem))
|
|
8
|
+
var styleCss = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:var(--ds-size-200, 1rem);gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem))}#headerContainer .subheader{width:100%}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{padding:var(--ds-size-200, 1rem)}`;
|
|
9
9
|
|
|
10
10
|
var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
5
5
|
|
|
6
6
|
var colorCss = css`#headerContainer{box-shadow:var(--ds-auro-dropdownbib-header-boxshadow-color)}#footerContainer{background-color:var(--ds-auro-dropdownbib-footer-container-color)}`;
|
|
7
7
|
|
|
8
|
-
var styleCss = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem))
|
|
8
|
+
var styleCss = css`#bibTemplate{display:flex;overflow:hidden;height:100%;max-height:100%;flex-direction:column}#headerContainer{display:flex;flex-direction:column;padding:var(--ds-size-200, 1rem);padding-top:var(--ds-size-400, 2rem);padding-bottom:0}#headerContainer .titleRow{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:var(--ds-size-200, 1rem);gap:var(--ds-size-100, 0.5rem)}#headerContainer .header{max-width:calc(100vw - var(--ds-size-900, 4.5rem))}#headerContainer .subheader{width:100%}#closeButton [auro-icon]{--ds-auro-icon-size: var(--ds-size-500, 2.5rem)}#bodyContainer{position:relative;overflow:auto;flex:1}:host([isfullscreen]) #bibTemplate{max-height:100dvh}:host([isfullscreen]) #bodyContainer{margin-top:var(--ds-size-100, 0.5rem)}#footerContainer{padding:var(--ds-size-200, 1rem)}`;
|
|
9
9
|
|
|
10
10
|
var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-footer-container-color: var(--ds-basic-color-surface-default, #ffffff)}`;
|
|
11
11
|
|
|
@@ -1275,7 +1275,7 @@ class AuroHelpText extends i$2 {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
-
var formkitVersion = '
|
|
1278
|
+
var formkitVersion = '202608111728';
|
|
1279
1279
|
|
|
1280
1280
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1281
1281
|
// See LICENSE in the project root for license information.
|
|
@@ -1275,7 +1275,7 @@ class AuroHelpText extends i$2 {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
-
var formkitVersion = '
|
|
1278
|
+
var formkitVersion = '202608111728';
|
|
1279
1279
|
|
|
1280
1280
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1281
1281
|
// See LICENSE in the project root for license information.
|
|
@@ -1691,6 +1691,14 @@ class AuroCheckboxGroup extends i$2 {
|
|
|
1691
1691
|
}
|
|
1692
1692
|
}
|
|
1693
1693
|
|
|
1694
|
+
function resetStateExample() {
|
|
1695
|
+
const elem = document.querySelector('#resetStateExample');
|
|
1696
|
+
|
|
1697
|
+
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
1698
|
+
elem.reset();
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1694
1702
|
AuroCheckbox.register(); // registering to `auro-checkbox`
|
|
1695
1703
|
AuroCheckboxGroup.register(); // registering to `auro-checkbox-group`
|
|
1696
1704
|
|
|
@@ -1698,6 +1706,17 @@ AuroCheckbox.register('custom-checkbox');
|
|
|
1698
1706
|
AuroCheckboxGroup.register('custom-checkbox-group');
|
|
1699
1707
|
|
|
1700
1708
|
function initExamples(initCount) {
|
|
1709
|
+
initCount = initCount || 0;
|
|
1710
|
+
|
|
1711
|
+
try {
|
|
1712
|
+
resetStateExample();
|
|
1713
|
+
} catch (err) {
|
|
1714
|
+
if (initCount <= 20) {
|
|
1715
|
+
setTimeout(() => {
|
|
1716
|
+
initExamples(initCount + 1);
|
|
1717
|
+
}, 100);
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1701
1720
|
}
|
|
1702
1721
|
|
|
1703
1722
|
export { initExamples };
|
|
@@ -1275,7 +1275,7 @@ class AuroHelpText extends i$2 {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
-
var formkitVersion = '
|
|
1278
|
+
var formkitVersion = '202608111728';
|
|
1279
1279
|
|
|
1280
1280
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1281
1281
|
// See LICENSE in the project root for license information.
|
|
@@ -1228,7 +1228,7 @@ class AuroHelpText extends LitElement {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
|
-
var formkitVersion = '
|
|
1231
|
+
var formkitVersion = '202608111728';
|
|
1232
1232
|
|
|
1233
1233
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1234
1234
|
// See LICENSE in the project root for license information.
|
|
@@ -1228,7 +1228,7 @@ class AuroHelpText extends LitElement {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
|
-
var formkitVersion = '
|
|
1231
|
+
var formkitVersion = '202608111728';
|
|
1232
1232
|
|
|
1233
1233
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1234
1234
|
// See LICENSE in the project root for license information.
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm" type="module"></script>
|
|
42
42
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
43
43
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
44
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-loader@latest/+esm" type="module"></script>
|
|
44
45
|
<script type="module" data-demo-script="true">
|
|
45
46
|
import { renderPage } from './demo-support.min.js';
|
|
46
47
|
await renderPage('./customize.md');
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
<auro-anchorlink fluid href="#customValidation" class="level2 body-xs">Custom Validation</auro-anchorlink>
|
|
29
29
|
<auro-anchorlink fluid href="#noValidate" class="level2 body-xs">No Validation</auro-anchorlink>
|
|
30
30
|
<auro-anchorlink fluid href="#dynamicMenu" class="level2 body-xs">Dynamic Menu</auro-anchorlink>
|
|
31
|
+
<auro-anchorlink fluid href="#loading" class="level2 body-xs">Loading</auro-anchorlink>
|
|
32
|
+
<auro-anchorlink fluid href="#nonUniqueValues" class="level2 body-xs">Non-Unique Option Values</auro-anchorlink>
|
|
31
33
|
</auro-nav>
|
|
32
34
|
</nav>
|
|
33
35
|
<div class="mainContent">
|
|
@@ -1267,6 +1269,73 @@
|
|
|
1267
1269
|
</auro-button></code></pre>
|
|
1268
1270
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1269
1271
|
</auro-accordion>
|
|
1272
|
+
<auro-header level="3" id="loading">Loading</auro-header>
|
|
1273
|
+
<p>Use the <code>loading</code> attribute on <code>auro-menu</code> to display a loading state while menu options are being fetched. Define the <code>loadingIcon</code> and <code>loadingText</code> slots inside the menu to provide visual feedback during the loading state.</p>
|
|
1274
|
+
<p>In this example, the combobox will load for 5 seconds before displaying the options. </p>
|
|
1275
|
+
<div class="exampleWrapper">
|
|
1276
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/loading.html) -->
|
|
1277
|
+
<!-- The below content is automatically added from ./../apiExamples/loading.html -->
|
|
1278
|
+
<auro-combobox id="loadingExample">
|
|
1279
|
+
<span slot="bib.fullscreen.headline">Loading Combobox Header</span>
|
|
1280
|
+
<span slot="label">Please select a preference</span>
|
|
1281
|
+
<auro-menu id="loadingExampleComboboxMenu">
|
|
1282
|
+
<auro-loader slot="loadingIcon" orbit xs></auro-loader><span slot="loadingText">Loading...</span>
|
|
1283
|
+
</auro-menu>
|
|
1284
|
+
</auro-combobox>
|
|
1285
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1286
|
+
</div>
|
|
1287
|
+
<auro-accordion alignRight>
|
|
1288
|
+
<span slot="trigger">See code</span>
|
|
1289
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/loading.html) -->
|
|
1290
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/loading.html -->
|
|
1291
|
+
<pre class="language-html"><code class="language-html"><auro-combobox id="loadingExample">
|
|
1292
|
+
<span slot="bib.fullscreen.headline">Loading Combobox Header</span>
|
|
1293
|
+
<span slot="label">Please select a preference</span>
|
|
1294
|
+
<auro-menu id="loadingExampleComboboxMenu">
|
|
1295
|
+
<auro-loader slot="loadingIcon" orbit xs></auro-loader><span slot="loadingText">Loading...</span>
|
|
1296
|
+
</auro-menu>
|
|
1297
|
+
</auro-combobox></code></pre>
|
|
1298
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1299
|
+
</auro-accordion>
|
|
1300
|
+
<auro-header level="3" id="nonUniqueValues">Non-Unique Option Values</auro-header>
|
|
1301
|
+
<p>Two or more <code>auro-menuoption</code> elements may share the same <code>value</code>. This is common when the <code>value</code> represents a coarser grouping than the option label — for example, several airports that all serve the same city. When the user filters the list and selects one of several options that share a <code>value</code>, the combobox resolves to the exact option chosen, so the correct label is displayed even though the underlying <code>value</code> is duplicated.</p>
|
|
1302
|
+
<div class="exampleWrapper">
|
|
1303
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/duplicate-values.html) -->
|
|
1304
|
+
<!-- The below content is automatically added from ./../apiExamples/duplicate-values.html -->
|
|
1305
|
+
<auro-combobox>
|
|
1306
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
1307
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
1308
|
+
<span slot="bib.fullscreen.headline">Choose an airport</span>
|
|
1309
|
+
<span slot="label">Departure airport</span>
|
|
1310
|
+
<auro-menu>
|
|
1311
|
+
<auro-menuoption value="seattle" suggest="seattle sea seatac tacoma">Seattle–Tacoma International (SEA)</auro-menuoption>
|
|
1312
|
+
<auro-menuoption value="seattle" suggest="seattle pae paine field everett">Seattle Paine Field (PAE)</auro-menuoption>
|
|
1313
|
+
<auro-menuoption value="portland" suggest="portland pdx oregon">Portland International (PDX)</auro-menuoption>
|
|
1314
|
+
<auro-menuoption value="spokane" suggest="spokane geg washington">Spokane International (GEG)</auro-menuoption>
|
|
1315
|
+
<auro-menuoption static nomatch>No matching airport</auro-menuoption>
|
|
1316
|
+
</auro-menu>
|
|
1317
|
+
</auro-combobox>
|
|
1318
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1319
|
+
</div>
|
|
1320
|
+
<auro-accordion alignRight>
|
|
1321
|
+
<span slot="trigger">See code</span>
|
|
1322
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/duplicate-values.html) -->
|
|
1323
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/duplicate-values.html -->
|
|
1324
|
+
<pre class="language-html"><code class="language-html"><auro-combobox>
|
|
1325
|
+
<span slot="ariaLabel.bib.close">Close combobox</span>
|
|
1326
|
+
<span slot="ariaLabel.input.clear">Clear All</span>
|
|
1327
|
+
<span slot="bib.fullscreen.headline">Choose an airport</span>
|
|
1328
|
+
<span slot="label">Departure airport</span>
|
|
1329
|
+
<auro-menu>
|
|
1330
|
+
<auro-menuoption value="seattle" suggest="seattle sea seatac tacoma">Seattle&ndash;Tacoma International (SEA)</auro-menuoption>
|
|
1331
|
+
<auro-menuoption value="seattle" suggest="seattle pae paine field everett">Seattle Paine Field (PAE)</auro-menuoption>
|
|
1332
|
+
<auro-menuoption value="portland" suggest="portland pdx oregon">Portland International (PDX)</auro-menuoption>
|
|
1333
|
+
<auro-menuoption value="spokane" suggest="spokane geg washington">Spokane International (GEG)</auro-menuoption>
|
|
1334
|
+
<auro-menuoption static nomatch>No matching airport</auro-menuoption>
|
|
1335
|
+
</auro-menu>
|
|
1336
|
+
</auro-combobox></code></pre>
|
|
1337
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1338
|
+
</auro-accordion>
|
|
1270
1339
|
</section>
|
|
1271
1340
|
</div>
|
|
1272
1341
|
</div>
|