@aurodesignsystem-dev/auro-formkit 0.0.0-pr1428.1 → 0.0.0-pr1429.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.
Files changed (54) hide show
  1. package/components/checkbox/demo/api.min.js +1 -1
  2. package/components/checkbox/demo/index.min.js +1 -1
  3. package/components/checkbox/dist/index.js +1 -1
  4. package/components/checkbox/dist/registered.js +1 -1
  5. package/components/combobox/demo/api.html +1 -0
  6. package/components/combobox/demo/api.js +3 -1
  7. package/components/combobox/demo/api.md +75 -0
  8. package/components/combobox/demo/api.min.js +27 -6
  9. package/components/combobox/demo/index.min.js +14 -5
  10. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +1 -1
  11. package/components/combobox/dist/index.js +14 -5
  12. package/components/combobox/dist/registered.js +14 -5
  13. package/components/counter/demo/api.html +3 -0
  14. package/components/counter/demo/api.js +4 -0
  15. package/components/counter/demo/api.md +130 -0
  16. package/components/counter/demo/api.min.js +42 -2
  17. package/components/counter/demo/index.min.js +22 -2
  18. package/components/counter/dist/counterGroupKeyboardStrategy.d.ts +3 -0
  19. package/components/counter/dist/index.js +22 -2
  20. package/components/counter/dist/registered.js +22 -2
  21. package/components/datepicker/demo/api.html +1 -0
  22. package/components/datepicker/demo/api.js +2 -0
  23. package/components/datepicker/demo/api.md +55 -0
  24. package/components/datepicker/demo/api.min.js +99 -7
  25. package/components/datepicker/demo/index.min.js +87 -7
  26. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -1
  27. package/components/datepicker/dist/index.js +87 -7
  28. package/components/datepicker/dist/registered.js +87 -7
  29. package/components/dropdown/demo/api.html +1 -0
  30. package/components/dropdown/demo/api.js +2 -0
  31. package/components/dropdown/demo/api.md +95 -0
  32. package/components/dropdown/demo/api.min.js +21 -1
  33. package/components/dropdown/demo/index.min.js +1 -1
  34. package/components/dropdown/dist/index.js +1 -1
  35. package/components/dropdown/dist/registered.js +1 -1
  36. package/components/form/demo/api.min.js +131 -19
  37. package/components/form/demo/index.min.js +131 -19
  38. package/components/input/demo/api.min.js +1 -1
  39. package/components/input/demo/index.min.js +1 -1
  40. package/components/input/dist/index.js +1 -1
  41. package/components/input/dist/registered.js +1 -1
  42. package/components/radio/demo/api.min.js +1 -1
  43. package/components/radio/demo/index.min.js +1 -1
  44. package/components/radio/dist/index.js +1 -1
  45. package/components/radio/dist/registered.js +1 -1
  46. package/components/select/demo/api.html +1 -0
  47. package/components/select/demo/api.js +2 -0
  48. package/components/select/demo/api.md +79 -0
  49. package/components/select/demo/api.min.js +21 -2
  50. package/components/select/demo/index.min.js +5 -2
  51. package/components/select/dist/index.js +5 -2
  52. package/components/select/dist/registered.js +5 -2
  53. package/custom-elements.json +1459 -1435
  54. package/package.json +3 -1
@@ -1687,7 +1687,7 @@ class AuroHelpText extends i$2 {
1687
1687
  }
1688
1688
  }
1689
1689
 
1690
- var formkitVersion = '202604081450';
1690
+ var formkitVersion = '202604081917';
1691
1691
 
1692
1692
  // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1693
1693
  // See LICENSE in the project root for license information.
@@ -1679,7 +1679,7 @@ class AuroHelpText extends i$2 {
1679
1679
  }
1680
1680
  }
1681
1681
 
1682
- var formkitVersion = '202604081450';
1682
+ var formkitVersion = '202604081917';
1683
1683
 
1684
1684
  // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1685
1685
  // See LICENSE in the project root for license information.
@@ -1632,7 +1632,7 @@ class AuroHelpText extends LitElement {
1632
1632
  }
1633
1633
  }
1634
1634
 
1635
- var formkitVersion = '202604081450';
1635
+ var formkitVersion = '202604081917';
1636
1636
 
1637
1637
  // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1638
1638
  // See LICENSE in the project root for license information.
@@ -1632,7 +1632,7 @@ class AuroHelpText extends LitElement {
1632
1632
  }
1633
1633
  }
1634
1634
 
1635
- var formkitVersion = '202604081450';
1635
+ var formkitVersion = '202604081917';
1636
1636
 
1637
1637
  // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1638
1638
  // See LICENSE in the project root for license information.
@@ -54,6 +54,7 @@
54
54
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
55
55
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
56
56
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@latest/+esm" type="module"></script>
57
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-drawer@latest/+esm" type="module"></script>
57
58
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-loader@latest/+esm" type="module"></script>
58
59
 
59
60
  <script type="module" data-demo-script="true">
@@ -5,6 +5,7 @@ import { resetStateExample } from '../apiExamples/reset-state';
5
5
  import { setupExternalSelectionExample } from '../apiExamples/external-selection';
6
6
  import { valueExample } from '../apiExamples/value';
7
7
  import { inDialogExample } from '../apiExamples/in-dialog';
8
+ import { inDrawerExample } from '../apiExamples/in-drawer';
8
9
  import { persistentExample } from '../apiExamples/persistent';
9
10
  import { swapValueExample } from '../apiExamples/swap-value';
10
11
 
@@ -22,7 +23,8 @@ export function initExamples(initCount) {
22
23
  resetStateExample();
23
24
  setupExternalSelectionExample();
24
25
  valueExample();
25
- inDialogExample();
26
+ inDialogExample();
27
+ inDrawerExample();
26
28
  persistentExample();
27
29
  swapValueExample();
28
30
  } catch (err) {
@@ -2097,6 +2097,81 @@ export function inDialogExample() {
2097
2097
  <!-- AURO-GENERATED-CONTENT:END -->
2098
2098
  </auro-accordion>
2099
2099
 
2100
+ ### In Drawer
2101
+
2102
+ Example use of component within an `auro-drawer`.
2103
+
2104
+ <div class="exampleWrapper">
2105
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-drawer.html) -->
2106
+ <!-- The below content is automatically added from ./../apiExamples/in-drawer.html -->
2107
+ <div>
2108
+ <auro-button id="combobox-drawer-opener">Combobox in Drawer</auro-button>
2109
+ <auro-drawer id="combobox-drawer">
2110
+ <span slot="header">Combobox in Drawer</span>
2111
+ <div slot="content">
2112
+ <auro-combobox>
2113
+ <span slot="bib.fullscreen.headline">Bib Header</span>
2114
+ <span slot="label">Name</span>
2115
+ <auro-menu>
2116
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
2117
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
2118
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
2119
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
2120
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
2121
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
2122
+ </auro-menu>
2123
+ </auro-combobox>
2124
+ </div>
2125
+ </auro-drawer>
2126
+ </div>
2127
+ <!-- AURO-GENERATED-CONTENT:END -->
2128
+ </div>
2129
+ <auro-accordion alignRight>
2130
+ <span slot="trigger">See code</span>
2131
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.html) -->
2132
+ <!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.html -->
2133
+
2134
+ ```html
2135
+ <div>
2136
+ <auro-button id="combobox-drawer-opener">Combobox in Drawer</auro-button>
2137
+ <auro-drawer id="combobox-drawer">
2138
+ <span slot="header">Combobox in Drawer</span>
2139
+ <div slot="content">
2140
+ <auro-combobox>
2141
+ <span slot="bib.fullscreen.headline">Bib Header</span>
2142
+ <span slot="label">Name</span>
2143
+ <auro-menu>
2144
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
2145
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
2146
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
2147
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
2148
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
2149
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
2150
+ </auro-menu>
2151
+ </auro-combobox>
2152
+ </div>
2153
+ </auro-drawer>
2154
+ </div>
2155
+ ```
2156
+ <!-- AURO-GENERATED-CONTENT:END -->
2157
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.js) -->
2158
+ <!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.js -->
2159
+
2160
+ ```js
2161
+ export function inDrawerExample() {
2162
+ document.querySelector("#combobox-drawer-opener").addEventListener("click", () => {
2163
+ const drawer = document.querySelector("#combobox-drawer");
2164
+ if (drawer.hasAttribute('open')) {
2165
+ drawer.removeAttribute('open');
2166
+ } else {
2167
+ drawer.setAttribute('open', true);
2168
+ }
2169
+ });
2170
+ };
2171
+ ```
2172
+ <!-- AURO-GENERATED-CONTENT:END -->
2173
+ </auro-accordion>
2174
+
2100
2175
  ### Persistent Menu Option with a Custom Event
2101
2176
 
2102
2177
  This example demonstrates a static menu option that will always appears regardless of the suggestion filtering performed. In this example "Add new address" will always be a displayed menu option.
@@ -52,6 +52,17 @@ function inDialogExample() {
52
52
  });
53
53
  }
54
54
 
55
+ function inDrawerExample() {
56
+ document.querySelector("#combobox-drawer-opener").addEventListener("click", () => {
57
+ const drawer = document.querySelector("#combobox-drawer");
58
+ if (drawer.hasAttribute('open')) {
59
+ drawer.removeAttribute('open');
60
+ } else {
61
+ drawer.setAttribute('open', true);
62
+ }
63
+ });
64
+ }
65
+
55
66
  function persistentExample() {
56
67
  const persistentExample = document.querySelector('#persistent');
57
68
 
@@ -1421,10 +1432,19 @@ const comboboxKeyboardStrategy = {
1421
1432
  }
1422
1433
  },
1423
1434
 
1424
- Escape(component, _evt, ctx) {
1425
- if (ctx.isExpanded && ctx.isModal) {
1435
+ Escape(component, evt, ctx) {
1436
+ // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups
1437
+ evt.stopPropagation();
1438
+
1439
+ if (!ctx.isExpanded) {
1440
+ return;
1441
+ }
1442
+
1443
+ if (ctx.isModal) {
1426
1444
  component.setTriggerInputFocus();
1427
1445
  }
1446
+
1447
+ component.hideBib();
1428
1448
  },
1429
1449
 
1430
1450
  Home(component, evt, ctx) {
@@ -5180,7 +5200,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
5180
5200
  }
5181
5201
  };
5182
5202
 
5183
- var formkitVersion$2 = '202604081450';
5203
+ var formkitVersion$2 = '202604081917';
5184
5204
 
5185
5205
  let AuroElement$2 = class AuroElement extends i$4 {
5186
5206
  static get properties() {
@@ -12944,7 +12964,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
12944
12964
  }
12945
12965
  };
12946
12966
 
12947
- var formkitVersion$1 = '202604081450';
12967
+ var formkitVersion$1 = '202604081917';
12948
12968
 
12949
12969
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12950
12970
  // See LICENSE in the project root for license information.
@@ -14009,7 +14029,7 @@ class AuroBibtemplate extends i$4 {
14009
14029
  }
14010
14030
  }
14011
14031
 
14012
- var formkitVersion = '202604081450';
14032
+ var formkitVersion = '202604081917';
14013
14033
 
14014
14034
  var styleCss$3 = i$7`.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}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
14015
14035
 
@@ -18009,7 +18029,8 @@ function initExamples(initCount) {
18009
18029
  resetStateExample();
18010
18030
  setupExternalSelectionExample();
18011
18031
  valueExample();
18012
- inDialogExample();
18032
+ inDialogExample();
18033
+ inDrawerExample();
18013
18034
  persistentExample();
18014
18035
  swapValueExample();
18015
18036
  } catch (err) {
@@ -1344,10 +1344,19 @@ const comboboxKeyboardStrategy = {
1344
1344
  }
1345
1345
  },
1346
1346
 
1347
- Escape(component, _evt, ctx) {
1348
- if (ctx.isExpanded && ctx.isModal) {
1347
+ Escape(component, evt, ctx) {
1348
+ // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups
1349
+ evt.stopPropagation();
1350
+
1351
+ if (!ctx.isExpanded) {
1352
+ return;
1353
+ }
1354
+
1355
+ if (ctx.isModal) {
1349
1356
  component.setTriggerInputFocus();
1350
1357
  }
1358
+
1359
+ component.hideBib();
1351
1360
  },
1352
1361
 
1353
1362
  Home(component, evt, ctx) {
@@ -5103,7 +5112,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$4 {
5103
5112
  }
5104
5113
  };
5105
5114
 
5106
- var formkitVersion$2 = '202604081450';
5115
+ var formkitVersion$2 = '202604081917';
5107
5116
 
5108
5117
  let AuroElement$2 = class AuroElement extends i$4 {
5109
5118
  static get properties() {
@@ -12867,7 +12876,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$4 {
12867
12876
  }
12868
12877
  };
12869
12878
 
12870
- var formkitVersion$1 = '202604081450';
12879
+ var formkitVersion$1 = '202604081917';
12871
12880
 
12872
12881
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12873
12882
  // See LICENSE in the project root for license information.
@@ -13932,7 +13941,7 @@ class AuroBibtemplate extends i$4 {
13932
13941
  }
13933
13942
  }
13934
13943
 
13935
- var formkitVersion = '202604081450';
13944
+ var formkitVersion = '202604081917';
13936
13945
 
13937
13946
  var styleCss$3 = i$7`.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}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
13938
13947
 
@@ -3,7 +3,7 @@ export namespace comboboxKeyboardStrategy {
3
3
  function ArrowUp(component: any, evt: any, ctx: any): void;
4
4
  function End(component: any, evt: any, ctx: any): void;
5
5
  function Enter(component: any, evt: any, ctx: any): void;
6
- function Escape(component: any, _evt: any, ctx: any): void;
6
+ function Escape(component: any, evt: any, ctx: any): void;
7
7
  function Home(component: any, evt: any, ctx: any): void;
8
8
  function Tab(component: any, evt: any, ctx: any): void;
9
9
  }
@@ -1301,10 +1301,19 @@ const comboboxKeyboardStrategy = {
1301
1301
  }
1302
1302
  },
1303
1303
 
1304
- Escape(component, _evt, ctx) {
1305
- if (ctx.isExpanded && ctx.isModal) {
1304
+ Escape(component, evt, ctx) {
1305
+ // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups
1306
+ evt.stopPropagation();
1307
+
1308
+ if (!ctx.isExpanded) {
1309
+ return;
1310
+ }
1311
+
1312
+ if (ctx.isModal) {
1306
1313
  component.setTriggerInputFocus();
1307
1314
  }
1315
+
1316
+ component.hideBib();
1308
1317
  },
1309
1318
 
1310
1319
  Home(component, evt, ctx) {
@@ -5036,7 +5045,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
5036
5045
  }
5037
5046
  };
5038
5047
 
5039
- var formkitVersion$2 = '202604081450';
5048
+ var formkitVersion$2 = '202604081917';
5040
5049
 
5041
5050
  let AuroElement$2 = class AuroElement extends LitElement {
5042
5051
  static get properties() {
@@ -12793,7 +12802,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
12793
12802
  }
12794
12803
  };
12795
12804
 
12796
- var formkitVersion$1 = '202604081450';
12805
+ var formkitVersion$1 = '202604081917';
12797
12806
 
12798
12807
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12799
12808
  // See LICENSE in the project root for license information.
@@ -13858,7 +13867,7 @@ class AuroBibtemplate extends LitElement {
13858
13867
  }
13859
13868
  }
13860
13869
 
13861
- var formkitVersion = '202604081450';
13870
+ var formkitVersion = '202604081917';
13862
13871
 
13863
13872
  var styleCss$1 = css`.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}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
13864
13873
 
@@ -1301,10 +1301,19 @@ const comboboxKeyboardStrategy = {
1301
1301
  }
1302
1302
  },
1303
1303
 
1304
- Escape(component, _evt, ctx) {
1305
- if (ctx.isExpanded && ctx.isModal) {
1304
+ Escape(component, evt, ctx) {
1305
+ // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups
1306
+ evt.stopPropagation();
1307
+
1308
+ if (!ctx.isExpanded) {
1309
+ return;
1310
+ }
1311
+
1312
+ if (ctx.isModal) {
1306
1313
  component.setTriggerInputFocus();
1307
1314
  }
1315
+
1316
+ component.hideBib();
1308
1317
  },
1309
1318
 
1310
1319
  Home(component, evt, ctx) {
@@ -5036,7 +5045,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
5036
5045
  }
5037
5046
  };
5038
5047
 
5039
- var formkitVersion$2 = '202604081450';
5048
+ var formkitVersion$2 = '202604081917';
5040
5049
 
5041
5050
  let AuroElement$2 = class AuroElement extends LitElement {
5042
5051
  static get properties() {
@@ -12793,7 +12802,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
12793
12802
  }
12794
12803
  };
12795
12804
 
12796
- var formkitVersion$1 = '202604081450';
12805
+ var formkitVersion$1 = '202604081917';
12797
12806
 
12798
12807
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12799
12808
  // See LICENSE in the project root for license information.
@@ -13858,7 +13867,7 @@ class AuroBibtemplate extends LitElement {
13858
13867
  }
13859
13868
  }
13860
13869
 
13861
- var formkitVersion = '202604081450';
13870
+ var formkitVersion = '202604081917';
13862
13871
 
13863
13872
  var styleCss$1 = css`.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}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
13864
13873
 
@@ -56,5 +56,8 @@
56
56
 
57
57
  <!-- If additional elements are needed for the demo, add them here. -->
58
58
  <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
59
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
60
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@latest/+esm" type="module"></script>
61
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-drawer@latest/+esm" type="module"></script>
59
62
  </body>
60
63
  </html>
@@ -2,12 +2,16 @@
2
2
  import '../src/registered.js';
3
3
  // import { dropdownCounterExample } from "../apiExamples/dropdown-mobile-properties.js";
4
4
  import { eventCounterExample } from "../apiExamples/events.js";
5
+ import { inDialogExample } from "../apiExamples/in-dialog.js";
6
+ import { inDrawerExample } from "../apiExamples/in-drawer.js";
5
7
 
6
8
  export function initExamples(initialCount = 0) {
7
9
  try {
8
10
  // javascript example function calls to be added here upon creation to test examples
9
11
  // dropdownCounterExample();
10
12
  eventCounterExample();
13
+ inDialogExample();
14
+ inDrawerExample();
11
15
 
12
16
  } catch (err) {
13
17
  if (initialCount <= 20) {
@@ -1232,6 +1232,136 @@ All available slots for both components.
1232
1232
  <!-- AURO-GENERATED-CONTENT:END -->
1233
1233
  </auro-accordion>
1234
1234
 
1235
+ ### Counter Group in Dialog
1236
+
1237
+ The element used within an `auro-dialog`.
1238
+
1239
+ <div class="exampleWrapper">
1240
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-dialog.html) -->
1241
+ <!-- The below content is automatically added from ./../apiExamples/in-dialog.html -->
1242
+ <div>
1243
+ <auro-button id="counter-dialog-opener">Counter Group in Dialog</auro-button>
1244
+ <auro-dialog id="counter-dialog">
1245
+ <span slot="header">Counter Group in Dialog</span>
1246
+ <div slot="content">
1247
+ <auro-counter-group isDropdown>
1248
+ <span slot="ariaLabel.bib.close">Close Popup</span>
1249
+ <div slot="bib.fullscreen.headline">Group fullscreen label</div>
1250
+ <div slot="label">Counter Group</div>
1251
+ <div slot="helpText">Select a value</div>
1252
+ <auro-counter>Counter 1</auro-counter>
1253
+ <auro-counter>Counter 2</auro-counter>
1254
+ </auro-counter-group>
1255
+ </div>
1256
+ </auro-dialog>
1257
+ </div>
1258
+ <!-- AURO-GENERATED-CONTENT:END -->
1259
+ </div>
1260
+ <auro-accordion alignRight>
1261
+ <span slot="trigger">See code</span>
1262
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.html) -->
1263
+ <!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.html -->
1264
+
1265
+ ```html
1266
+ <div>
1267
+ <auro-button id="counter-dialog-opener">Counter Group in Dialog</auro-button>
1268
+ <auro-dialog id="counter-dialog">
1269
+ <span slot="header">Counter Group in Dialog</span>
1270
+ <div slot="content">
1271
+ <auro-counter-group isDropdown>
1272
+ <span slot="ariaLabel.bib.close">Close Popup</span>
1273
+ <div slot="bib.fullscreen.headline">Group fullscreen label</div>
1274
+ <div slot="label">Counter Group</div>
1275
+ <div slot="helpText">Select a value</div>
1276
+ <auro-counter>Counter 1</auro-counter>
1277
+ <auro-counter>Counter 2</auro-counter>
1278
+ </auro-counter-group>
1279
+ </div>
1280
+ </auro-dialog>
1281
+ </div>
1282
+ ```
1283
+ <!-- AURO-GENERATED-CONTENT:END -->
1284
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.js) -->
1285
+ <!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.js -->
1286
+
1287
+ ```js
1288
+ export function inDialogExample() {
1289
+ document.querySelector("#counter-dialog-opener").addEventListener("click", () => {
1290
+ const dialog = document.querySelector("#counter-dialog");
1291
+ dialog.open = true;
1292
+ });
1293
+ };
1294
+ ```
1295
+ <!-- AURO-GENERATED-CONTENT:END -->
1296
+ </auro-accordion>
1297
+
1298
+ ### Counter Group in Drawer
1299
+
1300
+ The element used within an `auro-drawer`.
1301
+
1302
+ <div class="exampleWrapper">
1303
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-drawer.html) -->
1304
+ <!-- The below content is automatically added from ./../apiExamples/in-drawer.html -->
1305
+ <div>
1306
+ <auro-button id="counter-drawer-opener">Counter Group in Drawer</auro-button>
1307
+ <auro-drawer id="counter-drawer">
1308
+ <span slot="header">Counter Group in Drawer</span>
1309
+ <div slot="content">
1310
+ <auro-counter-group isDropdown>
1311
+ <span slot="ariaLabel.bib.close">Close Popup</span>
1312
+ <div slot="bib.fullscreen.headline">Group fullscreen label</div>
1313
+ <div slot="label">Counter Group</div>
1314
+ <div slot="helpText">Select a value</div>
1315
+ <auro-counter>Counter 1</auro-counter>
1316
+ <auro-counter>Counter 2</auro-counter>
1317
+ </auro-counter-group>
1318
+ </div>
1319
+ </auro-drawer>
1320
+ </div>
1321
+ <!-- AURO-GENERATED-CONTENT:END -->
1322
+ </div>
1323
+ <auro-accordion alignRight>
1324
+ <span slot="trigger">See code</span>
1325
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.html) -->
1326
+ <!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.html -->
1327
+
1328
+ ```html
1329
+ <div>
1330
+ <auro-button id="counter-drawer-opener">Counter Group in Drawer</auro-button>
1331
+ <auro-drawer id="counter-drawer">
1332
+ <span slot="header">Counter Group in Drawer</span>
1333
+ <div slot="content">
1334
+ <auro-counter-group isDropdown>
1335
+ <span slot="ariaLabel.bib.close">Close Popup</span>
1336
+ <div slot="bib.fullscreen.headline">Group fullscreen label</div>
1337
+ <div slot="label">Counter Group</div>
1338
+ <div slot="helpText">Select a value</div>
1339
+ <auro-counter>Counter 1</auro-counter>
1340
+ <auro-counter>Counter 2</auro-counter>
1341
+ </auro-counter-group>
1342
+ </div>
1343
+ </auro-drawer>
1344
+ </div>
1345
+ ```
1346
+ <!-- AURO-GENERATED-CONTENT:END -->
1347
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.js) -->
1348
+ <!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.js -->
1349
+
1350
+ ```js
1351
+ export function inDrawerExample() {
1352
+ document.querySelector("#counter-drawer-opener").addEventListener("click", () => {
1353
+ const drawer = document.querySelector("#counter-drawer");
1354
+ if (drawer.hasAttribute('open')) {
1355
+ drawer.removeAttribute('open');
1356
+ } else {
1357
+ drawer.setAttribute('open', true);
1358
+ }
1359
+ });
1360
+ };
1361
+ ```
1362
+ <!-- AURO-GENERATED-CONTENT:END -->
1363
+ </auro-accordion>
1364
+
1235
1365
  ## Restyle Component with CSS Variables
1236
1366
 
1237
1367
  The component may be restyled by changing the values of the following token(s).
@@ -1521,7 +1521,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
1521
1521
  }
1522
1522
  };
1523
1523
 
1524
- var formkitVersion$1 = '202604081450';
1524
+ var formkitVersion$1 = '202604081917';
1525
1525
 
1526
1526
  // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
1527
1527
  // See LICENSE in the project root for license information.
@@ -5705,7 +5705,7 @@ class AuroHelpText extends i$2 {
5705
5705
  }
5706
5706
  }
5707
5707
 
5708
- var formkitVersion = '202604081450';
5708
+ var formkitVersion = '202604081917';
5709
5709
 
5710
5710
  let AuroElement$1 = class AuroElement extends i$2 {
5711
5711
  static get properties() {
@@ -7379,6 +7379,22 @@ class AuroElement extends i$2 {
7379
7379
  }
7380
7380
  }
7381
7381
 
7382
+ // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7383
+ // See LICENSE in the project root for license information.
7384
+
7385
+ const counterGroupKeyboardStrategy = {
7386
+ Escape(component, evt) {
7387
+ // Prevent the Escape key from bubbling up and closing any parent dialogs / drawers / popups.
7388
+ // Because stopPropagation prevents the document-level floatingUI keydown handler from
7389
+ // seeing this event, we must also close the dropdown explicitly.
7390
+ evt.stopPropagation();
7391
+
7392
+ if (component.dropdown && component.dropdown.isPopoverVisible) {
7393
+ component.dropdown.hide();
7394
+ }
7395
+ },
7396
+ };
7397
+
7382
7398
  /* eslint-disable lit/no-invalid-html, lit/binding-positions, max-lines, no-underscore-dangle, arrow-parens, no-confusing-arrow, curly, dot-location, no-inline-comments, line-comment-position,
7383
7399
  */
7384
7400
 
@@ -7979,6 +7995,10 @@ class AuroCounterGroup extends AuroElement {
7979
7995
  super.firstUpdated();
7980
7996
  this.updateValue();
7981
7997
  this.updateValueText();
7998
+
7999
+ if (this.isDropdown) {
8000
+ applyKeyboardStrategy$1(this, counterGroupKeyboardStrategy);
8001
+ }
7982
8002
  }
7983
8003
 
7984
8004
  /**
@@ -8216,6 +8236,24 @@ function eventCounterExample() {
8216
8236
  });
8217
8237
  }
8218
8238
 
8239
+ function inDialogExample() {
8240
+ document.querySelector("#counter-dialog-opener").addEventListener("click", () => {
8241
+ const dialog = document.querySelector("#counter-dialog");
8242
+ dialog.open = true;
8243
+ });
8244
+ }
8245
+
8246
+ function inDrawerExample() {
8247
+ document.querySelector("#counter-drawer-opener").addEventListener("click", () => {
8248
+ const drawer = document.querySelector("#counter-drawer");
8249
+ if (drawer.hasAttribute('open')) {
8250
+ drawer.removeAttribute('open');
8251
+ } else {
8252
+ drawer.setAttribute('open', true);
8253
+ }
8254
+ });
8255
+ }
8256
+
8219
8257
  /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers */
8220
8258
 
8221
8259
  function initExamples(initialCount = 0) {
@@ -8223,6 +8261,8 @@ function initExamples(initialCount = 0) {
8223
8261
  // javascript example function calls to be added here upon creation to test examples
8224
8262
  // dropdownCounterExample();
8225
8263
  eventCounterExample();
8264
+ inDialogExample();
8265
+ inDrawerExample();
8226
8266
 
8227
8267
  } catch (err) {
8228
8268
  if (initialCount <= 20) {