@aurodesignsystem-dev/auro-formkit 0.0.0-pr1104.1 → 0.0.0-pr1104.2

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.
@@ -393,7 +393,7 @@ This is useful for situations like matching IATA codes (sea -> SeaTac airport)
393
393
  <p style="color: white;">
394
394
  Type 'a' in the combobox for best testing results :)
395
395
  </p>
396
- <auro-combobox id="externalSelectionExample" layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
396
+ <auro-combobox ondark id="externalSelectionExample" layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
397
397
  <span slot="ariaLabel.bib.close">Close combobox</span>
398
398
  <span slot="ariaLabel.input.clear">Clear All</span>
399
399
  <span slot="bib.fullscreen.headline">Bib Header</span>
@@ -421,7 +421,7 @@ This is useful for situations like matching IATA codes (sea -> SeaTac airport)
421
421
  <p style="color: white;">
422
422
  Type 'a' in the combobox for best testing results :)
423
423
  </p>
424
- <auro-combobox id="externalSelectionExample" layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
424
+ <auro-combobox ondark id="externalSelectionExample" layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
425
425
  <span slot="ariaLabel.bib.close">Close combobox</span>
426
426
  <span slot="ariaLabel.input.clear">Clear All</span>
427
427
  <span slot="bib.fullscreen.headline">Bib Header</span>
@@ -440,6 +440,31 @@ This is useful for situations like matching IATA codes (sea -> SeaTac airport)
440
440
  </auro-combobox>
441
441
  ```
442
442
  <!-- AURO-GENERATED-CONTENT:END -->
443
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/externalSelection.js) -->
444
+ <!-- The below code snippet is automatically added from ./../apiExamples/externalSelection.js -->
445
+
446
+ ```js
447
+ import { AuroCombobox } from "../src/auro-combobox";
448
+
449
+ /**
450
+ * Demonstrates how to make external selection in the combobox.
451
+ */
452
+ export function setupExternalSelectionExample() {
453
+
454
+ /** @type {AuroCombobox} */
455
+ const combobox = document.getElementById('externalSelectionExample');
456
+
457
+ combobox.addEventListener('input', () => {
458
+ // Perform whatever matching logic you need here
459
+
460
+ // This comes from your custom code, for example matching SEA to SeaTac IATA code.
461
+ // This matches "peaches" as configured.
462
+ const matchingMenuOption = 2;
463
+ combobox.updateActiveOption(matchingMenuOption);
464
+ });
465
+ }
466
+ ```
467
+ <!-- AURO-GENERATED-CONTENT:END -->
443
468
  </auro-accordion>
444
469
 
445
470
  ### Property Examples
@@ -17558,7 +17558,7 @@ class AuroCombobox extends AuroElement$1 {
17558
17558
  }
17559
17559
 
17560
17560
  /**
17561
- * Sets up demo external selection in the combobox.
17561
+ * Demonstrates how to make external selection in the combobox.
17562
17562
  */
17563
17563
  function setupExternalSelectionExample() {
17564
17564
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr1104.1",
3
+ "version": "0.0.0-pr1104.2",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
6
6
  "bugs": {