@aurodesignsystem-dev/auro-formkit 0.0.0-pr1424.2 → 0.0.0-pr1424.4

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +133 -183
  3. package/components/checkbox/demo/api.min.js +3 -3
  4. package/components/checkbox/demo/index.min.js +3 -3
  5. package/components/checkbox/dist/index.js +3 -3
  6. package/components/checkbox/dist/registered.js +3 -3
  7. package/components/combobox/demo/api.html +1 -0
  8. package/components/combobox/demo/api.js +3 -1
  9. package/components/combobox/demo/api.md +75 -0
  10. package/components/combobox/demo/api.min.js +314 -172
  11. package/components/combobox/demo/index.min.js +301 -171
  12. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +1 -1
  13. package/components/combobox/dist/index.js +291 -171
  14. package/components/combobox/dist/registered.js +291 -171
  15. package/components/counter/demo/api.html +3 -0
  16. package/components/counter/demo/api.js +4 -0
  17. package/components/counter/demo/api.md +130 -0
  18. package/components/counter/demo/api.min.js +320 -167
  19. package/components/counter/demo/index.min.js +300 -167
  20. package/components/counter/dist/counterGroupKeyboardStrategy.d.ts +3 -0
  21. package/components/counter/dist/index.js +300 -167
  22. package/components/counter/dist/registered.js +300 -167
  23. package/components/datepicker/demo/api.html +1 -0
  24. package/components/datepicker/demo/api.js +2 -0
  25. package/components/datepicker/demo/api.md +57 -0
  26. package/components/datepicker/demo/api.min.js +376 -171
  27. package/components/datepicker/demo/index.min.js +364 -171
  28. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -1
  29. package/components/datepicker/dist/index.js +364 -171
  30. package/components/datepicker/dist/registered.js +364 -171
  31. package/components/dropdown/demo/api.html +1 -0
  32. package/components/dropdown/demo/api.js +2 -0
  33. package/components/dropdown/demo/api.md +95 -0
  34. package/components/dropdown/demo/api.min.js +296 -165
  35. package/components/dropdown/demo/index.min.js +276 -165
  36. package/components/dropdown/dist/index.js +276 -165
  37. package/components/dropdown/dist/registered.js +276 -165
  38. package/components/form/demo/api.min.js +1254 -684
  39. package/components/form/demo/index.min.js +1254 -684
  40. package/components/input/demo/api.min.js +1 -1
  41. package/components/input/demo/index.min.js +1 -1
  42. package/components/input/dist/index.js +1 -1
  43. package/components/input/dist/registered.js +1 -1
  44. package/components/menu/demo/api.md +1 -0
  45. package/components/menu/demo/api.min.js +10 -0
  46. package/components/menu/demo/index.min.js +10 -0
  47. package/components/menu/dist/auro-menuoption.d.ts +9 -0
  48. package/components/menu/dist/index.js +10 -0
  49. package/components/menu/dist/registered.js +10 -0
  50. package/components/radio/demo/api.min.js +2 -2
  51. package/components/radio/demo/index.min.js +2 -2
  52. package/components/radio/dist/index.js +2 -2
  53. package/components/radio/dist/registered.js +2 -2
  54. package/components/select/demo/api.html +1 -0
  55. package/components/select/demo/api.js +2 -0
  56. package/components/select/demo/api.md +76 -0
  57. package/components/select/demo/api.min.js +306 -169
  58. package/components/select/demo/index.min.js +293 -169
  59. package/components/select/dist/index.js +283 -169
  60. package/components/select/dist/registered.js +283 -169
  61. package/custom-elements.json +48 -3
  62. package/package.json +5 -3
@@ -6759,7 +6759,7 @@ class AuroHelpText extends i$3 {
6759
6759
  }
6760
6760
  }
6761
6761
 
6762
- var formkitVersion = '202604072212';
6762
+ var formkitVersion = '202604091759';
6763
6763
 
6764
6764
  /**
6765
6765
  * @license
@@ -6684,7 +6684,7 @@ class AuroHelpText extends i$3 {
6684
6684
  }
6685
6685
  }
6686
6686
 
6687
- var formkitVersion = '202604072212';
6687
+ var formkitVersion = '202604091759';
6688
6688
 
6689
6689
  /**
6690
6690
  * @license
@@ -6626,7 +6626,7 @@ class AuroHelpText extends LitElement {
6626
6626
  }
6627
6627
  }
6628
6628
 
6629
- var formkitVersion = '202604072212';
6629
+ var formkitVersion = '202604091759';
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 = '202604072212';
6629
+ var formkitVersion = '202604091759';
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.
@@ -67,6 +67,7 @@ The `auro-menuoption` element provides users a way to define a menu option.
67
67
  | [iconTag](#iconTag) | | | `string` | | |
68
68
  | [isActive](#isActive) | | readonly | `boolean` | | Returns whether the menu option is currently active and selectable.<br />An option is considered active if it is not hidden, not disabled, and not static. |
69
69
  | [key](#key) | `key` | | `string` | | Allows users to set a unique key for the menu option for specified option selection. If no key is provided, the value property will be used. |
70
+ | [noMatch](#noMatch) | `nomatch` | | `boolean` | false | 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. |
70
71
  | [selected](#selected) | `selected` | | `boolean` | false | Specifies that an option is selected. |
71
72
  | [tabIndex](#tabIndex) | `tabIndex` | | `number` | | Specifies the tab index of the menu option. |
72
73
  | [unsubscribe](#unsubscribe) | | | | null | |
@@ -527,6 +527,7 @@ class AuroMenuOption extends AuroElement {
527
527
  this.selected = false;
528
528
  this.noCheckmark = false;
529
529
  this.disabled = false;
530
+ this.noMatch = false;
530
531
 
531
532
  /**
532
533
  * @private
@@ -602,6 +603,15 @@ class AuroMenuOption extends AuroElement {
602
603
  reflect: true
603
604
  },
604
605
 
606
+ /**
607
+ * 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.
608
+ */
609
+ noMatch: {
610
+ type: Boolean,
611
+ reflect: true,
612
+ attribute: 'nomatch'
613
+ },
614
+
605
615
  /**
606
616
  * Specifies that an option is selected.
607
617
  */
@@ -435,6 +435,7 @@ class AuroMenuOption extends AuroElement {
435
435
  this.selected = false;
436
436
  this.noCheckmark = false;
437
437
  this.disabled = false;
438
+ this.noMatch = false;
438
439
 
439
440
  /**
440
441
  * @private
@@ -510,6 +511,15 @@ class AuroMenuOption extends AuroElement {
510
511
  reflect: true
511
512
  },
512
513
 
514
+ /**
515
+ * 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.
516
+ */
517
+ noMatch: {
518
+ type: Boolean,
519
+ reflect: true,
520
+ attribute: 'nomatch'
521
+ },
522
+
513
523
  /**
514
524
  * Specifies that an option is selected.
515
525
  */
@@ -65,6 +65,14 @@ export class AuroMenuOption extends AuroElement {
65
65
  type: BooleanConstructor;
66
66
  reflect: boolean;
67
67
  };
68
+ /**
69
+ * 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.
70
+ */
71
+ noMatch: {
72
+ type: BooleanConstructor;
73
+ reflect: boolean;
74
+ attribute: string;
75
+ };
68
76
  /**
69
77
  * Specifies that an option is selected.
70
78
  */
@@ -106,6 +114,7 @@ export class AuroMenuOption extends AuroElement {
106
114
  selected: boolean;
107
115
  noCheckmark: boolean;
108
116
  disabled: boolean;
117
+ noMatch: boolean;
109
118
  /**
110
119
  * @private
111
120
  */
@@ -409,6 +409,7 @@ class AuroMenuOption extends AuroElement {
409
409
  this.selected = false;
410
410
  this.noCheckmark = false;
411
411
  this.disabled = false;
412
+ this.noMatch = false;
412
413
 
413
414
  /**
414
415
  * @private
@@ -484,6 +485,15 @@ class AuroMenuOption extends AuroElement {
484
485
  reflect: true
485
486
  },
486
487
 
488
+ /**
489
+ * 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.
490
+ */
491
+ noMatch: {
492
+ type: Boolean,
493
+ reflect: true,
494
+ attribute: 'nomatch'
495
+ },
496
+
487
497
  /**
488
498
  * Specifies that an option is selected.
489
499
  */
@@ -356,6 +356,7 @@ class AuroMenuOption extends AuroElement {
356
356
  this.selected = false;
357
357
  this.noCheckmark = false;
358
358
  this.disabled = false;
359
+ this.noMatch = false;
359
360
 
360
361
  /**
361
362
  * @private
@@ -431,6 +432,15 @@ class AuroMenuOption extends AuroElement {
431
432
  reflect: true
432
433
  },
433
434
 
435
+ /**
436
+ * 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.
437
+ */
438
+ noMatch: {
439
+ type: Boolean,
440
+ reflect: true,
441
+ attribute: 'nomatch'
442
+ },
443
+
434
444
  /**
435
445
  * Specifies that an option is selected.
436
446
  */
@@ -160,7 +160,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
160
160
  };
161
161
 
162
162
  /* eslint-disable max-lines, no-underscore-dangle */
163
- // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
163
+ // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
164
164
  // See LICENSE in the project root for license information.
165
165
 
166
166
 
@@ -1645,7 +1645,7 @@ class AuroHelpText extends i$2 {
1645
1645
  }
1646
1646
  }
1647
1647
 
1648
- var formkitVersion = '202604072212';
1648
+ var formkitVersion = '202604091759';
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.
@@ -135,7 +135,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
135
135
  };
136
136
 
137
137
  /* eslint-disable max-lines, no-underscore-dangle */
138
- // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
138
+ // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
139
139
  // See LICENSE in the project root for license information.
140
140
 
141
141
 
@@ -1620,7 +1620,7 @@ class AuroHelpText extends i$2 {
1620
1620
  }
1621
1621
  }
1622
1622
 
1623
- var formkitVersion = '202604072212';
1623
+ var formkitVersion = '202604091759';
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.
@@ -95,7 +95,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
95
95
  };
96
96
 
97
97
  /* eslint-disable max-lines, no-underscore-dangle */
98
- // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
98
+ // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
99
99
  // See LICENSE in the project root for license information.
100
100
 
101
101
 
@@ -1573,7 +1573,7 @@ class AuroHelpText extends LitElement {
1573
1573
  }
1574
1574
  }
1575
1575
 
1576
- var formkitVersion = '202604072212';
1576
+ var formkitVersion = '202604091759';
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.
@@ -95,7 +95,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
95
95
  };
96
96
 
97
97
  /* eslint-disable max-lines, no-underscore-dangle */
98
- // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
98
+ // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
99
99
  // See LICENSE in the project root for license information.
100
100
 
101
101
 
@@ -1573,7 +1573,7 @@ class AuroHelpText extends LitElement {
1573
1573
  }
1574
1574
  }
1575
1575
 
1576
- var formkitVersion = '202604072212';
1576
+ var formkitVersion = '202604091759';
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,6 +57,7 @@
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>
60
61
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-loader@latest/+esm" type="module"></script>
61
62
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
62
63
  <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.2.4/auro-input/+esm"></script>
@@ -3,6 +3,7 @@ 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';
6
7
  import { resetStateExample } from "../apiExamples/reset-state";
7
8
  import { updateActiveOptionExample } from "../apiExamples/update-active-option.js";
8
9
  // import { auroMenuLoadingExample } from "../apiExamples/loading";
@@ -23,6 +24,7 @@ export function initExamples(initCount) {
23
24
  valueExtractionExample();
24
25
  valueAlertExample();
25
26
  inDialogExample();
27
+ inDrawerExample();
26
28
  resetStateExample();
27
29
  updateActiveOptionExample();
28
30
  // auroMenuLoadingExample();
@@ -2284,6 +2284,82 @@ 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
+
2352
+ if (drawer.hasAttribute('open')) {
2353
+ drawer.removeAttribute('open');
2354
+ } else {
2355
+ drawer.setAttribute('open', true);
2356
+ }
2357
+ });
2358
+ };
2359
+ ```
2360
+ <!-- AURO-GENERATED-CONTENT:END -->
2361
+ </auro-accordion>
2362
+
2287
2363
  ### Watch for Value Changes
2288
2364
 
2289
2365
  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.