@aurodesignsystem-dev/auro-formkit 0.0.0-pr1504.0 → 0.0.0-pr1506.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/customize.min.js +2 -2
- package/components/checkbox/demo/getting-started.min.js +2 -2
- package/components/checkbox/demo/index.min.js +2 -2
- package/components/checkbox/dist/index.js +2 -2
- package/components/checkbox/dist/registered.js +2 -2
- package/components/combobox/demo/customize.md +7 -3
- package/components/combobox/demo/customize.min.js +1435 -1666
- package/components/combobox/demo/getting-started.min.js +1435 -1666
- package/components/combobox/demo/index.min.js +1435 -1666
- package/components/combobox/dist/auro-combobox.d.ts +14 -0
- package/components/combobox/dist/index.js +489 -145
- package/components/combobox/dist/registered.js +489 -145
- package/components/counter/demo/customize.min.js +3 -3
- package/components/counter/demo/index.min.js +3 -3
- package/components/counter/dist/index.js +3 -3
- package/components/counter/dist/registered.js +3 -3
- package/components/datepicker/demo/customize.min.js +140 -61
- package/components/datepicker/demo/index.min.js +140 -61
- package/components/datepicker/dist/index.js +140 -61
- package/components/datepicker/dist/registered.js +140 -61
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/customize.min.js +2336 -2269
- package/components/form/demo/getting-started.min.js +2336 -2269
- package/components/form/demo/index.min.js +2336 -2269
- package/components/form/demo/registerDemoDeps.min.js +2334 -2267
- package/components/input/demo/customize.min.js +138 -57
- package/components/input/demo/getting-started.min.js +138 -57
- package/components/input/demo/index.min.js +138 -57
- package/components/input/dist/base-input.d.ts +16 -0
- package/components/input/dist/index.js +138 -57
- package/components/input/dist/registered.js +138 -57
- package/components/menu/demo/api.md +41 -45
- package/components/menu/demo/customize.md +0 -28
- package/components/menu/demo/index.min.js +779 -1354
- package/components/menu/dist/auro-menu.d.ts +95 -110
- package/components/menu/dist/auro-menuoption.d.ts +32 -138
- package/components/menu/dist/index.js +753 -1308
- package/components/menu/dist/registered.js +765 -1308
- package/components/radio/demo/customize.min.js +2 -2
- package/components/radio/demo/getting-started.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.md +1 -0
- package/components/select/demo/customize.md +78 -3
- package/components/select/demo/customize.min.js +1140 -1577
- package/components/select/demo/getting-started.min.js +1140 -1577
- package/components/select/demo/index.min.js +1140 -1577
- package/components/select/demo/keyboard-behavior.md +18 -0
- package/components/select/dist/auro-select.d.ts +38 -2
- package/components/select/dist/index.js +177 -39
- package/components/select/dist/registered.js +177 -39
- package/components/select/dist/selectUtils.d.ts +24 -0
- package/custom-elements.json +503 -1037
- package/package.json +1 -1
- package/components/menu/dist/auro-menu.context.d.ts +0 -238
|
@@ -920,7 +920,7 @@ class AuroFormValidation {
|
|
|
920
920
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
921
921
|
const input = elem.renderRoot.querySelector('input');
|
|
922
922
|
|
|
923
|
-
if (input.validationMessage.length > 0) {
|
|
923
|
+
if (input && input.validationMessage.length > 0) {
|
|
924
924
|
elem.errorMessage = input.validationMessage;
|
|
925
925
|
}
|
|
926
926
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
|
|
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
-
var formkitVersion = '
|
|
1215
|
+
var formkitVersion = '202606190840';
|
|
1216
1216
|
|
|
1217
1217
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1218
1218
|
// See LICENSE in the project root for license information.
|
|
@@ -920,7 +920,7 @@ class AuroFormValidation {
|
|
|
920
920
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
921
921
|
const input = elem.renderRoot.querySelector('input');
|
|
922
922
|
|
|
923
|
-
if (input.validationMessage.length > 0) {
|
|
923
|
+
if (input && input.validationMessage.length > 0) {
|
|
924
924
|
elem.errorMessage = input.validationMessage;
|
|
925
925
|
}
|
|
926
926
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
|
|
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
-
var formkitVersion = '
|
|
1215
|
+
var formkitVersion = '202606190840';
|
|
1216
1216
|
|
|
1217
1217
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1218
1218
|
// See LICENSE in the project root for license information.
|
|
@@ -920,7 +920,7 @@ class AuroFormValidation {
|
|
|
920
920
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
921
921
|
const input = elem.renderRoot.querySelector('input');
|
|
922
922
|
|
|
923
|
-
if (input.validationMessage.length > 0) {
|
|
923
|
+
if (input && input.validationMessage.length > 0) {
|
|
924
924
|
elem.errorMessage = input.validationMessage;
|
|
925
925
|
}
|
|
926
926
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
|
|
@@ -1212,7 +1212,7 @@ class AuroHelpText extends i$2 {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
1215
|
-
var formkitVersion = '
|
|
1215
|
+
var formkitVersion = '202606190840';
|
|
1216
1216
|
|
|
1217
1217
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1218
1218
|
// See LICENSE in the project root for license information.
|
|
@@ -859,7 +859,7 @@ class AuroFormValidation {
|
|
|
859
859
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
860
860
|
const input = elem.renderRoot.querySelector('input');
|
|
861
861
|
|
|
862
|
-
if (input.validationMessage.length > 0) {
|
|
862
|
+
if (input && input.validationMessage.length > 0) {
|
|
863
863
|
elem.errorMessage = input.validationMessage;
|
|
864
864
|
}
|
|
865
865
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
|
|
@@ -1151,7 +1151,7 @@ class AuroHelpText extends LitElement {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
var formkitVersion = '
|
|
1154
|
+
var formkitVersion = '202606190840';
|
|
1155
1155
|
|
|
1156
1156
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1157
1157
|
// See LICENSE in the project root for license information.
|
|
@@ -859,7 +859,7 @@ class AuroFormValidation {
|
|
|
859
859
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input') && elem.errorMessage === '') {
|
|
860
860
|
const input = elem.renderRoot.querySelector('input');
|
|
861
861
|
|
|
862
|
-
if (input.validationMessage.length > 0) {
|
|
862
|
+
if (input && input.validationMessage.length > 0) {
|
|
863
863
|
elem.errorMessage = input.validationMessage;
|
|
864
864
|
}
|
|
865
865
|
} else if (this.runtimeUtils.elementMatch(elem, 'auro-combobox') && elem.errorMessage === '') {
|
|
@@ -1151,7 +1151,7 @@ class AuroHelpText extends LitElement {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
1153
|
|
|
1154
|
-
var formkitVersion = '
|
|
1154
|
+
var formkitVersion = '202606190840';
|
|
1155
1155
|
|
|
1156
1156
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
1157
1157
|
// See LICENSE in the project root for license information.
|
|
@@ -38,6 +38,7 @@ The `auro-select` element is a wrapper for auro-dropdown and auro-menu to create
|
|
|
38
38
|
| `shape` | `shape` | `'classic' \| 'pill' \| 'pill-left' \| 'pill-right' \| 'snowflake'` | | Determines the shape of the dropdown bib. |
|
|
39
39
|
| `shift` | `shift` | `boolean` | false | If set, the dropdown will shift its position to avoid being cut off by the viewport. |
|
|
40
40
|
| `size` | `size` | `'lg' \| 'xl'` | | Determines the size of the dropdown bib. Only the `emphasized` layout supports size=`xl`, while all other layouts support size=`lg`. |
|
|
41
|
+
| `typeaheadTimeoutMs` | `typeaheadTimeoutMs` | `number` | "500" | Milliseconds of keyboard inactivity before the type-ahead buffer resets.<br />Increase for users who type slowly. |
|
|
41
42
|
| `validity` | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
42
43
|
| `value` | `value` | `string` | | Value selected for the component. |
|
|
43
44
|
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
<auro-anchorlink fluid href="#cssParts" class="level2 body-xs">CSS Shadow Parts</auro-anchorlink>
|
|
23
23
|
<auro-anchorlink fluid href="#customBehavior">Behavior</auro-anchorlink>
|
|
24
24
|
<auro-anchorlink fluid href="#autoComplete" class="level2 body-xs">Autocomplete</auro-anchorlink>
|
|
25
|
+
<auro-anchorlink fluid href="#typeAhead" class="level2 body-xs">Type-Ahead</auro-anchorlink>
|
|
25
26
|
<auro-anchorlink fluid href="#disableComponent" class="level2 body-xs">Disable Component</auro-anchorlink>
|
|
26
27
|
<auro-anchorlink fluid href="#disableOptions" class="level2 body-xs">Disable Option(s)</auro-anchorlink>
|
|
27
28
|
<auro-anchorlink fluid href="#requireSelection" class="level2 body-xs">Require Selection</auro-anchorlink>
|
|
@@ -660,9 +661,11 @@
|
|
|
660
661
|
<auro-select class="css-parts-demo">
|
|
661
662
|
<span slot="label">CSS Parts Example</span>
|
|
662
663
|
<span slot="helpText">This select has custom styles applied via CSS Shadow Parts.</span>
|
|
664
|
+
<auro-menu>
|
|
663
665
|
<auro-menuoption value="one">Option One</auro-menuoption>
|
|
664
666
|
<auro-menuoption value="two">Option Two</auro-menuoption>
|
|
665
667
|
<auro-menuoption value="three">Option Three</auro-menuoption>
|
|
668
|
+
</auro-menu>
|
|
666
669
|
</auro-select>
|
|
667
670
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
668
671
|
</div>
|
|
@@ -687,9 +690,11 @@
|
|
|
687
690
|
<auro-select class="css-parts-demo">
|
|
688
691
|
<span slot="label">CSS Parts Example</span>
|
|
689
692
|
<span slot="helpText">This select has custom styles applied via CSS Shadow Parts.</span>
|
|
690
|
-
<auro-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
+
<auro-menu>
|
|
694
|
+
<auro-menuoption value="one">Option One</auro-menuoption>
|
|
695
|
+
<auro-menuoption value="two">Option Two</auro-menuoption>
|
|
696
|
+
<auro-menuoption value="three">Option Three</auro-menuoption>
|
|
697
|
+
</auro-menu>
|
|
693
698
|
</auro-select></code></pre>
|
|
694
699
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
695
700
|
</auro-accordion>
|
|
@@ -745,6 +750,76 @@
|
|
|
745
750
|
</form></code></pre>
|
|
746
751
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
747
752
|
</auro-accordion>
|
|
753
|
+
<auro-header level="3" id="typeAhead">Type-Ahead</auro-header>
|
|
754
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/typeahead.md) -->
|
|
755
|
+
<!-- The below content is automatically added from ./../docs/partials/customize/typeahead.md -->
|
|
756
|
+
<p>Type-ahead lets a guest jump to an option by typing. As keys are pressed, the active option advances to the first enabled option whose <strong>displayed text</strong> starts with the buffered keystrokes — following the <auro-hyperlink href="https://www.w3.org/WAI/ARIA/apg/patterns/listbox/">WAI-ARIA Listbox pattern</auro-hyperlink>, and mirroring native HTML <code><select></code> behavior. Matching uses the rendered text rather than the <code>value</code> attribute.</p>
|
|
757
|
+
<p>The <code>typeaheadTimeoutMs</code> attribute (default <code>500</code>) controls how long the buffer persists between keystrokes. Repeating the same character cycles through every enabled option starting with it; disabled options are skipped.</p>
|
|
758
|
+
<div class="note">
|
|
759
|
+
<strong>Note:</strong> The <kbd>Space</kbd> key is context-sensitive. When the type-ahead buffer is empty it toggles the bib open or closed, matching the rest of <code><auro-select></code>. When the buffer is active it extends the buffer instead, so multi-word options such as "San Francisco" can be matched by typing <kbd>s</kbd>, <kbd>a</kbd>, <kbd>n</kbd>, <kbd>Space</kbd>, <kbd>f</kbd>.
|
|
760
|
+
</div>
|
|
761
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
762
|
+
<div class="exampleWrapper">
|
|
763
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/typeahead.html) -->
|
|
764
|
+
<!-- The below content is automatically added from ./../apiExamples/typeahead.html -->
|
|
765
|
+
<auro-select>
|
|
766
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
767
|
+
<span slot="bib.fullscreen.headline">Airport</span>
|
|
768
|
+
<span slot="label">Destination airport</span>
|
|
769
|
+
<auro-menu>
|
|
770
|
+
<auro-menuoption value="ANC">Anchorage</auro-menuoption>
|
|
771
|
+
<auro-menuoption value="ATL">Atlanta</auro-menuoption>
|
|
772
|
+
<auro-menuoption value="AUS">Austin</auro-menuoption>
|
|
773
|
+
<auro-menuoption value="BOS">Boston</auro-menuoption>
|
|
774
|
+
<auro-menuoption value="DEN">Denver</auro-menuoption>
|
|
775
|
+
<auro-menuoption value="DFW" disabled>Dallas/Fort Worth</auro-menuoption>
|
|
776
|
+
<auro-menuoption value="DTW">Detroit</auro-menuoption>
|
|
777
|
+
<auro-menuoption value="HNL">Honolulu</auro-menuoption>
|
|
778
|
+
<auro-menuoption value="LAX">Los Angeles</auro-menuoption>
|
|
779
|
+
<auro-menuoption value="MIA">Miami</auro-menuoption>
|
|
780
|
+
<auro-menuoption value="ORD">Chicago</auro-menuoption>
|
|
781
|
+
<auro-menuoption value="PDX">Portland</auro-menuoption>
|
|
782
|
+
<auro-menuoption value="PHX">Phoenix</auro-menuoption>
|
|
783
|
+
<auro-menuoption value="SAN">San Diego</auro-menuoption>
|
|
784
|
+
<auro-menuoption value="SEA">Seattle</auro-menuoption>
|
|
785
|
+
<auro-menuoption value="SFO">San Francisco</auro-menuoption>
|
|
786
|
+
<auro-menuoption value="SJC" disabled>San Jose</auro-menuoption>
|
|
787
|
+
<auro-menuoption value="SLC">Salt Lake City</auro-menuoption>
|
|
788
|
+
</auro-menu>
|
|
789
|
+
</auro-select>
|
|
790
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
791
|
+
</div>
|
|
792
|
+
<auro-accordion alignRight>
|
|
793
|
+
<span slot="trigger">See code</span>
|
|
794
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/typeahead.html) -->
|
|
795
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/typeahead.html -->
|
|
796
|
+
<pre class="language-html"><code class="language-html"><auro-select>
|
|
797
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
798
|
+
<span slot="bib.fullscreen.headline">Airport</span>
|
|
799
|
+
<span slot="label">Destination airport</span>
|
|
800
|
+
<auro-menu>
|
|
801
|
+
<auro-menuoption value="ANC">Anchorage</auro-menuoption>
|
|
802
|
+
<auro-menuoption value="ATL">Atlanta</auro-menuoption>
|
|
803
|
+
<auro-menuoption value="AUS">Austin</auro-menuoption>
|
|
804
|
+
<auro-menuoption value="BOS">Boston</auro-menuoption>
|
|
805
|
+
<auro-menuoption value="DEN">Denver</auro-menuoption>
|
|
806
|
+
<auro-menuoption value="DFW" disabled>Dallas/Fort Worth</auro-menuoption>
|
|
807
|
+
<auro-menuoption value="DTW">Detroit</auro-menuoption>
|
|
808
|
+
<auro-menuoption value="HNL">Honolulu</auro-menuoption>
|
|
809
|
+
<auro-menuoption value="LAX">Los Angeles</auro-menuoption>
|
|
810
|
+
<auro-menuoption value="MIA">Miami</auro-menuoption>
|
|
811
|
+
<auro-menuoption value="ORD">Chicago</auro-menuoption>
|
|
812
|
+
<auro-menuoption value="PDX">Portland</auro-menuoption>
|
|
813
|
+
<auro-menuoption value="PHX">Phoenix</auro-menuoption>
|
|
814
|
+
<auro-menuoption value="SAN">San Diego</auro-menuoption>
|
|
815
|
+
<auro-menuoption value="SEA">Seattle</auro-menuoption>
|
|
816
|
+
<auro-menuoption value="SFO">San Francisco</auro-menuoption>
|
|
817
|
+
<auro-menuoption value="SJC" disabled>San Jose</auro-menuoption>
|
|
818
|
+
<auro-menuoption value="SLC">Salt Lake City</auro-menuoption>
|
|
819
|
+
</auro-menu>
|
|
820
|
+
</auro-select></code></pre>
|
|
821
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
822
|
+
</auro-accordion>
|
|
748
823
|
<auro-header level="3" id="disableComponent">Disable Component</auro-header>
|
|
749
824
|
<p>The entire component may be disabled. When disabled, the component will render to reflect the state, may not receive focus nor react to any key or pointer events.</p>
|
|
750
825
|
<p>When the component is disabled and part of a form, the components value is still included in the form submission.</p>
|