@aurodesignsystem-dev/auro-formkit 0.0.0-pr783.1 → 0.0.0-pr785.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 (64) hide show
  1. package/components/checkbox/demo/api.html +10 -16
  2. package/components/checkbox/demo/api.min.js +2 -2
  3. package/components/checkbox/demo/index.html +10 -16
  4. package/components/checkbox/demo/index.min.js +2 -2
  5. package/components/checkbox/demo/readme.html +9 -16
  6. package/components/checkbox/dist/index.js +2 -2
  7. package/components/checkbox/dist/registered.js +2 -2
  8. package/components/combobox/demo/api.html +10 -16
  9. package/components/combobox/demo/api.min.js +15 -32
  10. package/components/combobox/demo/index.html +10 -16
  11. package/components/combobox/demo/index.min.js +15 -32
  12. package/components/combobox/demo/readme.html +9 -16
  13. package/components/combobox/dist/index.js +15 -32
  14. package/components/combobox/dist/registered.js +15 -32
  15. package/components/counter/demo/api.html +10 -16
  16. package/components/counter/demo/api.min.js +13 -31
  17. package/components/counter/demo/index.html +10 -16
  18. package/components/counter/demo/index.min.js +13 -31
  19. package/components/counter/demo/readme.html +9 -16
  20. package/components/counter/dist/index.js +13 -31
  21. package/components/counter/dist/registered.js +13 -31
  22. package/components/datepicker/demo/api.html +10 -16
  23. package/components/datepicker/demo/api.md +1 -0
  24. package/components/datepicker/demo/api.min.js +16 -44
  25. package/components/datepicker/demo/index.html +10 -16
  26. package/components/datepicker/demo/index.min.js +16 -44
  27. package/components/datepicker/demo/readme.html +9 -16
  28. package/components/datepicker/dist/auro-datepicker.d.ts +2 -3
  29. package/components/datepicker/dist/index.js +16 -44
  30. package/components/datepicker/dist/registered.js +16 -44
  31. package/components/dropdown/demo/api.html +10 -16
  32. package/components/dropdown/demo/api.min.js +13 -30
  33. package/components/dropdown/demo/index.html +10 -16
  34. package/components/dropdown/demo/index.min.js +13 -30
  35. package/components/dropdown/demo/readme.html +9 -16
  36. package/components/dropdown/dist/auro-dropdown.d.ts +0 -6
  37. package/components/dropdown/dist/index.js +13 -30
  38. package/components/dropdown/dist/registered.js +13 -30
  39. package/components/form/demo/api.html +9 -16
  40. package/components/form/demo/autocomplete.html +3 -19
  41. package/components/form/demo/index.html +9 -16
  42. package/components/form/demo/readme.html +9 -16
  43. package/components/form/demo/working.html +13 -19
  44. package/components/input/demo/api.html +10 -16
  45. package/components/input/demo/api.min.js +2 -2
  46. package/components/input/demo/index.html +10 -16
  47. package/components/input/demo/index.min.js +2 -2
  48. package/components/input/demo/readme.html +9 -16
  49. package/components/input/dist/index.js +2 -2
  50. package/components/input/dist/registered.js +2 -2
  51. package/components/menu/demo/api.html +32 -16
  52. package/components/menu/demo/index.html +10 -16
  53. package/components/menu/demo/readme.html +9 -16
  54. package/components/radio/demo/api.html +10 -16
  55. package/components/radio/demo/index.html +10 -16
  56. package/components/radio/demo/readme.html +9 -16
  57. package/components/select/demo/api.html +10 -16
  58. package/components/select/demo/api.min.js +13 -30
  59. package/components/select/demo/index.html +11 -16
  60. package/components/select/demo/index.min.js +13 -30
  61. package/components/select/demo/readme.html +9 -16
  62. package/components/select/dist/index.js +13 -30
  63. package/components/select/dist/registered.js +13 -30
  64. package/package.json +3 -4
@@ -16064,7 +16064,7 @@ class AuroFloatingUI {
16064
16064
  return;
16065
16065
  }
16066
16066
 
16067
- this.hideBib("keydown");
16067
+ this.hideBib();
16068
16068
  }
16069
16069
 
16070
16070
  setupHideHandlers() {
@@ -16089,7 +16089,7 @@ class AuroFloatingUI {
16089
16089
  document.expandedAuroFormkitDropdown = null;
16090
16090
  document.expandedAuroFloater = this;
16091
16091
  } else {
16092
- this.hideBib("click");
16092
+ this.hideBib();
16093
16093
  }
16094
16094
  }
16095
16095
  };
@@ -16102,7 +16102,7 @@ class AuroFloatingUI {
16102
16102
  // if something else is open, let it handle itself
16103
16103
  return;
16104
16104
  }
16105
- this.hideBib("keydown");
16105
+ this.hideBib();
16106
16106
  }
16107
16107
  };
16108
16108
 
@@ -16185,11 +16185,7 @@ class AuroFloatingUI {
16185
16185
  }
16186
16186
  }
16187
16187
 
16188
- /**
16189
- * Hides the floating UI element.
16190
- * @param {String} eventType - The event type that triggered the hiding action.
16191
- */
16192
- hideBib(eventType = "unknown") {
16188
+ hideBib() {
16193
16189
  if (!this.element.disabled && !this.element.noToggle) {
16194
16190
  this.lockScroll(false);
16195
16191
  this.element.triggerChevron?.removeAttribute('data-expanded');
@@ -16200,7 +16196,7 @@ class AuroFloatingUI {
16200
16196
  if (this.showing) {
16201
16197
  this.cleanupHideHandlers();
16202
16198
  this.showing = false;
16203
- this.dispatchEventDropdownToggle(eventType);
16199
+ this.dispatchEventDropdownToggle();
16204
16200
  }
16205
16201
  }
16206
16202
  document.expandedAuroFloater = null;
@@ -16209,13 +16205,11 @@ class AuroFloatingUI {
16209
16205
  /**
16210
16206
  * @private
16211
16207
  * @returns {void} Dispatches event with an object showing the state of the dropdown.
16212
- * @param {String} eventType - The event type that triggered the toggle action.
16213
16208
  */
16214
- dispatchEventDropdownToggle(eventType) {
16209
+ dispatchEventDropdownToggle() {
16215
16210
  const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
16216
16211
  detail: {
16217
16212
  expanded: this.showing,
16218
- eventType: eventType || "unknown",
16219
16213
  },
16220
16214
  composed: true
16221
16215
  });
@@ -16225,7 +16219,7 @@ class AuroFloatingUI {
16225
16219
 
16226
16220
  handleClick() {
16227
16221
  if (this.element.isPopoverVisible) {
16228
- this.hideBib("click");
16222
+ this.hideBib();
16229
16223
  } else {
16230
16224
  this.showBib();
16231
16225
  }
@@ -16261,7 +16255,7 @@ class AuroFloatingUI {
16261
16255
  break;
16262
16256
  case 'mouseleave':
16263
16257
  if (this.element.hoverToggle) {
16264
- this.hideBib("mouseleave");
16258
+ this.hideBib();
16265
16259
  }
16266
16260
  break;
16267
16261
  case 'focus':
@@ -17649,9 +17643,6 @@ class AuroDropdown extends AuroElement$4 {
17649
17643
 
17650
17644
  this.parentBorder = false;
17651
17645
 
17652
- /** @private */
17653
- this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
17654
-
17655
17646
  this.privateDefaults();
17656
17647
  }
17657
17648
 
@@ -18085,19 +18076,12 @@ class AuroDropdown extends AuroElement$4 {
18085
18076
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
18086
18077
  this.handleTriggerContentSlotChange();
18087
18078
  }
18088
- }
18089
18079
 
18090
- /**
18091
- * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
18092
- * @private
18093
- * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
18094
- */
18095
- handleDropdownToggle(event) {
18096
- this.updateFocusTrap();
18097
- this.isPopoverVisible = event.detail.expanded;
18098
- const eventType = event.detail.eventType || "unknown";
18099
- if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
18100
- this.trigger.focus();
18080
+ if (changedProperties.has('isPopoverVisible')) {
18081
+ this.updateFocusTrap();
18082
+ if (!this.isPopoverVisible && this.hasFocus) {
18083
+ this.trigger.focus();
18084
+ }
18101
18085
  }
18102
18086
  }
18103
18087
 
@@ -18105,7 +18089,6 @@ class AuroDropdown extends AuroElement$4 {
18105
18089
 
18106
18090
  // Configure the floater to, this will generate the ID for the bib
18107
18091
  this.floater.configure(this, 'auroDropdown');
18108
- this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
18109
18092
 
18110
18093
  /**
18111
18094
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -24095,9 +24078,9 @@ class BaseInput extends AuroElement$2 {
24095
24078
  if (!this.shadowRoot.contains(this.getActiveElement())) {
24096
24079
  this.validation.validate(this);
24097
24080
  }
24098
- }
24099
24081
 
24100
- this.notifyValueChanged();
24082
+ this.notifyValueChanged();
24083
+ }
24101
24084
  }
24102
24085
 
24103
24086
  if (changedProperties.has('error')) {
@@ -27731,15 +27714,6 @@ class AuroDatePicker extends AuroElement$1 {
27731
27714
  this.layout = 'classic';
27732
27715
  this.shape = 'classic';
27733
27716
  this.size = 'lg';
27734
-
27735
- /**
27736
- * @private
27737
- * @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
27738
- */
27739
- this.constructor.shadowRootOptions = {
27740
- ...i.shadowRootOptions,
27741
- delegatesFocus: true,
27742
- };
27743
27717
  }
27744
27718
 
27745
27719
  // This function is to define props used within the scope of this component
@@ -28477,7 +28451,6 @@ class AuroDatePicker extends AuroElement$1 {
28477
28451
  }
28478
28452
 
28479
28453
  this.hasFocus = true;
28480
- this.dropdown.show();
28481
28454
 
28482
28455
  // shadowroot active element is null if we focus the datepicker itself
28483
28456
  if (this.shadowRoot.activeElement === null) {
@@ -28821,8 +28794,7 @@ class AuroDatePicker extends AuroElement$1 {
28821
28794
  /**
28822
28795
  * Simple formatter that ONLY WORKS FOR US DATES.
28823
28796
  * Returns formatted date like Apr 21 or Dec 25.
28824
- * @private
28825
- * @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
28797
+ * @param date
28826
28798
  * @return {string}
28827
28799
  */
28828
28800
  formatShortDate(date) {
@@ -16,24 +16,17 @@
16
16
  <head>
17
17
  <meta charset="UTF-8" />
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
- <title>Auro Web Component Demo | auro-datepicker</title>
20
-
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
23
-
24
- <!-- Legacy reference is still needed to support auro-datepicker's use of legacy token values at this time -->
25
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
-
27
- <!-- Design Token Alaska Theme -->
28
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
-
30
- <!-- Webcore Stylesheet Alaska Theme -->
31
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
-
33
- <!-- Demo Specific Styles -->
19
+ <title>Auro Web Component Generator | auro-datepicker custom element</title>
20
+ <link
21
+ rel="stylesheet"
22
+ type="text/css"
23
+ href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
+ />
25
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
26
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
34
27
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
35
28
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
- </head>
29
+ </head>
37
30
  <body class="auro-markdown">
38
31
  <main></main>
39
32
 
@@ -531,11 +531,10 @@ export class AuroDatePicker extends AuroElement {
531
531
  /**
532
532
  * Simple formatter that ONLY WORKS FOR US DATES.
533
533
  * Returns formatted date like Apr 21 or Dec 25.
534
- * @private
535
- * @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
534
+ * @param date
536
535
  * @return {string}
537
536
  */
538
- private formatShortDate;
537
+ formatShortDate(date: any): string;
539
538
  /**
540
539
  * Format and render the provided date value.
541
540
  * @private
@@ -16013,7 +16013,7 @@ class AuroFloatingUI {
16013
16013
  return;
16014
16014
  }
16015
16015
 
16016
- this.hideBib("keydown");
16016
+ this.hideBib();
16017
16017
  }
16018
16018
 
16019
16019
  setupHideHandlers() {
@@ -16038,7 +16038,7 @@ class AuroFloatingUI {
16038
16038
  document.expandedAuroFormkitDropdown = null;
16039
16039
  document.expandedAuroFloater = this;
16040
16040
  } else {
16041
- this.hideBib("click");
16041
+ this.hideBib();
16042
16042
  }
16043
16043
  }
16044
16044
  };
@@ -16051,7 +16051,7 @@ class AuroFloatingUI {
16051
16051
  // if something else is open, let it handle itself
16052
16052
  return;
16053
16053
  }
16054
- this.hideBib("keydown");
16054
+ this.hideBib();
16055
16055
  }
16056
16056
  };
16057
16057
 
@@ -16134,11 +16134,7 @@ class AuroFloatingUI {
16134
16134
  }
16135
16135
  }
16136
16136
 
16137
- /**
16138
- * Hides the floating UI element.
16139
- * @param {String} eventType - The event type that triggered the hiding action.
16140
- */
16141
- hideBib(eventType = "unknown") {
16137
+ hideBib() {
16142
16138
  if (!this.element.disabled && !this.element.noToggle) {
16143
16139
  this.lockScroll(false);
16144
16140
  this.element.triggerChevron?.removeAttribute('data-expanded');
@@ -16149,7 +16145,7 @@ class AuroFloatingUI {
16149
16145
  if (this.showing) {
16150
16146
  this.cleanupHideHandlers();
16151
16147
  this.showing = false;
16152
- this.dispatchEventDropdownToggle(eventType);
16148
+ this.dispatchEventDropdownToggle();
16153
16149
  }
16154
16150
  }
16155
16151
  document.expandedAuroFloater = null;
@@ -16158,13 +16154,11 @@ class AuroFloatingUI {
16158
16154
  /**
16159
16155
  * @private
16160
16156
  * @returns {void} Dispatches event with an object showing the state of the dropdown.
16161
- * @param {String} eventType - The event type that triggered the toggle action.
16162
16157
  */
16163
- dispatchEventDropdownToggle(eventType) {
16158
+ dispatchEventDropdownToggle() {
16164
16159
  const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
16165
16160
  detail: {
16166
16161
  expanded: this.showing,
16167
- eventType: eventType || "unknown",
16168
16162
  },
16169
16163
  composed: true
16170
16164
  });
@@ -16174,7 +16168,7 @@ class AuroFloatingUI {
16174
16168
 
16175
16169
  handleClick() {
16176
16170
  if (this.element.isPopoverVisible) {
16177
- this.hideBib("click");
16171
+ this.hideBib();
16178
16172
  } else {
16179
16173
  this.showBib();
16180
16174
  }
@@ -16210,7 +16204,7 @@ class AuroFloatingUI {
16210
16204
  break;
16211
16205
  case 'mouseleave':
16212
16206
  if (this.element.hoverToggle) {
16213
- this.hideBib("mouseleave");
16207
+ this.hideBib();
16214
16208
  }
16215
16209
  break;
16216
16210
  case 'focus':
@@ -17598,9 +17592,6 @@ class AuroDropdown extends AuroElement$4 {
17598
17592
 
17599
17593
  this.parentBorder = false;
17600
17594
 
17601
- /** @private */
17602
- this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
17603
-
17604
17595
  this.privateDefaults();
17605
17596
  }
17606
17597
 
@@ -18034,19 +18025,12 @@ class AuroDropdown extends AuroElement$4 {
18034
18025
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
18035
18026
  this.handleTriggerContentSlotChange();
18036
18027
  }
18037
- }
18038
18028
 
18039
- /**
18040
- * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
18041
- * @private
18042
- * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
18043
- */
18044
- handleDropdownToggle(event) {
18045
- this.updateFocusTrap();
18046
- this.isPopoverVisible = event.detail.expanded;
18047
- const eventType = event.detail.eventType || "unknown";
18048
- if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
18049
- this.trigger.focus();
18029
+ if (changedProperties.has('isPopoverVisible')) {
18030
+ this.updateFocusTrap();
18031
+ if (!this.isPopoverVisible && this.hasFocus) {
18032
+ this.trigger.focus();
18033
+ }
18050
18034
  }
18051
18035
  }
18052
18036
 
@@ -18054,7 +18038,6 @@ class AuroDropdown extends AuroElement$4 {
18054
18038
 
18055
18039
  // Configure the floater to, this will generate the ID for the bib
18056
18040
  this.floater.configure(this, 'auroDropdown');
18057
- this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
18058
18041
 
18059
18042
  /**
18060
18043
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -24031,9 +24014,9 @@ class BaseInput extends AuroElement$2 {
24031
24014
  if (!this.shadowRoot.contains(this.getActiveElement())) {
24032
24015
  this.validation.validate(this);
24033
24016
  }
24034
- }
24035
24017
 
24036
- this.notifyValueChanged();
24018
+ this.notifyValueChanged();
24019
+ }
24037
24020
  }
24038
24021
 
24039
24022
  if (changedProperties.has('error')) {
@@ -27667,15 +27650,6 @@ class AuroDatePicker extends AuroElement$1 {
27667
27650
  this.layout = 'classic';
27668
27651
  this.shape = 'classic';
27669
27652
  this.size = 'lg';
27670
-
27671
- /**
27672
- * @private
27673
- * @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
27674
- */
27675
- this.constructor.shadowRootOptions = {
27676
- ...LitElement.shadowRootOptions,
27677
- delegatesFocus: true,
27678
- };
27679
27653
  }
27680
27654
 
27681
27655
  // This function is to define props used within the scope of this component
@@ -28413,7 +28387,6 @@ class AuroDatePicker extends AuroElement$1 {
28413
28387
  }
28414
28388
 
28415
28389
  this.hasFocus = true;
28416
- this.dropdown.show();
28417
28390
 
28418
28391
  // shadowroot active element is null if we focus the datepicker itself
28419
28392
  if (this.shadowRoot.activeElement === null) {
@@ -28757,8 +28730,7 @@ class AuroDatePicker extends AuroElement$1 {
28757
28730
  /**
28758
28731
  * Simple formatter that ONLY WORKS FOR US DATES.
28759
28732
  * Returns formatted date like Apr 21 or Dec 25.
28760
- * @private
28761
- * @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
28733
+ * @param date
28762
28734
  * @return {string}
28763
28735
  */
28764
28736
  formatShortDate(date) {
@@ -16013,7 +16013,7 @@ class AuroFloatingUI {
16013
16013
  return;
16014
16014
  }
16015
16015
 
16016
- this.hideBib("keydown");
16016
+ this.hideBib();
16017
16017
  }
16018
16018
 
16019
16019
  setupHideHandlers() {
@@ -16038,7 +16038,7 @@ class AuroFloatingUI {
16038
16038
  document.expandedAuroFormkitDropdown = null;
16039
16039
  document.expandedAuroFloater = this;
16040
16040
  } else {
16041
- this.hideBib("click");
16041
+ this.hideBib();
16042
16042
  }
16043
16043
  }
16044
16044
  };
@@ -16051,7 +16051,7 @@ class AuroFloatingUI {
16051
16051
  // if something else is open, let it handle itself
16052
16052
  return;
16053
16053
  }
16054
- this.hideBib("keydown");
16054
+ this.hideBib();
16055
16055
  }
16056
16056
  };
16057
16057
 
@@ -16134,11 +16134,7 @@ class AuroFloatingUI {
16134
16134
  }
16135
16135
  }
16136
16136
 
16137
- /**
16138
- * Hides the floating UI element.
16139
- * @param {String} eventType - The event type that triggered the hiding action.
16140
- */
16141
- hideBib(eventType = "unknown") {
16137
+ hideBib() {
16142
16138
  if (!this.element.disabled && !this.element.noToggle) {
16143
16139
  this.lockScroll(false);
16144
16140
  this.element.triggerChevron?.removeAttribute('data-expanded');
@@ -16149,7 +16145,7 @@ class AuroFloatingUI {
16149
16145
  if (this.showing) {
16150
16146
  this.cleanupHideHandlers();
16151
16147
  this.showing = false;
16152
- this.dispatchEventDropdownToggle(eventType);
16148
+ this.dispatchEventDropdownToggle();
16153
16149
  }
16154
16150
  }
16155
16151
  document.expandedAuroFloater = null;
@@ -16158,13 +16154,11 @@ class AuroFloatingUI {
16158
16154
  /**
16159
16155
  * @private
16160
16156
  * @returns {void} Dispatches event with an object showing the state of the dropdown.
16161
- * @param {String} eventType - The event type that triggered the toggle action.
16162
16157
  */
16163
- dispatchEventDropdownToggle(eventType) {
16158
+ dispatchEventDropdownToggle() {
16164
16159
  const event = new CustomEvent(this.eventPrefix ? `${this.eventPrefix}-toggled` : 'toggled', {
16165
16160
  detail: {
16166
16161
  expanded: this.showing,
16167
- eventType: eventType || "unknown",
16168
16162
  },
16169
16163
  composed: true
16170
16164
  });
@@ -16174,7 +16168,7 @@ class AuroFloatingUI {
16174
16168
 
16175
16169
  handleClick() {
16176
16170
  if (this.element.isPopoverVisible) {
16177
- this.hideBib("click");
16171
+ this.hideBib();
16178
16172
  } else {
16179
16173
  this.showBib();
16180
16174
  }
@@ -16210,7 +16204,7 @@ class AuroFloatingUI {
16210
16204
  break;
16211
16205
  case 'mouseleave':
16212
16206
  if (this.element.hoverToggle) {
16213
- this.hideBib("mouseleave");
16207
+ this.hideBib();
16214
16208
  }
16215
16209
  break;
16216
16210
  case 'focus':
@@ -17598,9 +17592,6 @@ class AuroDropdown extends AuroElement$4 {
17598
17592
 
17599
17593
  this.parentBorder = false;
17600
17594
 
17601
- /** @private */
17602
- this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
17603
-
17604
17595
  this.privateDefaults();
17605
17596
  }
17606
17597
 
@@ -18034,19 +18025,12 @@ class AuroDropdown extends AuroElement$4 {
18034
18025
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
18035
18026
  this.handleTriggerContentSlotChange();
18036
18027
  }
18037
- }
18038
18028
 
18039
- /**
18040
- * Handles the custom event `auroDropdown-toggled` to update the visibility of the dropdown bib.
18041
- * @private
18042
- * @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
18043
- */
18044
- handleDropdownToggle(event) {
18045
- this.updateFocusTrap();
18046
- this.isPopoverVisible = event.detail.expanded;
18047
- const eventType = event.detail.eventType || "unknown";
18048
- if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
18049
- this.trigger.focus();
18029
+ if (changedProperties.has('isPopoverVisible')) {
18030
+ this.updateFocusTrap();
18031
+ if (!this.isPopoverVisible && this.hasFocus) {
18032
+ this.trigger.focus();
18033
+ }
18050
18034
  }
18051
18035
  }
18052
18036
 
@@ -18054,7 +18038,6 @@ class AuroDropdown extends AuroElement$4 {
18054
18038
 
18055
18039
  // Configure the floater to, this will generate the ID for the bib
18056
18040
  this.floater.configure(this, 'auroDropdown');
18057
- this.addEventListener('auroDropdown-toggled', this.handleDropdownToggle);
18058
18041
 
18059
18042
  /**
18060
18043
  * @description Let subscribers know that the dropdown ID ha been generated and added.
@@ -24031,9 +24014,9 @@ class BaseInput extends AuroElement$2 {
24031
24014
  if (!this.shadowRoot.contains(this.getActiveElement())) {
24032
24015
  this.validation.validate(this);
24033
24016
  }
24034
- }
24035
24017
 
24036
- this.notifyValueChanged();
24018
+ this.notifyValueChanged();
24019
+ }
24037
24020
  }
24038
24021
 
24039
24022
  if (changedProperties.has('error')) {
@@ -27667,15 +27650,6 @@ class AuroDatePicker extends AuroElement$1 {
27667
27650
  this.layout = 'classic';
27668
27651
  this.shape = 'classic';
27669
27652
  this.size = 'lg';
27670
-
27671
- /**
27672
- * @private
27673
- * @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
27674
- */
27675
- this.constructor.shadowRootOptions = {
27676
- ...LitElement.shadowRootOptions,
27677
- delegatesFocus: true,
27678
- };
27679
27653
  }
27680
27654
 
27681
27655
  // This function is to define props used within the scope of this component
@@ -28413,7 +28387,6 @@ class AuroDatePicker extends AuroElement$1 {
28413
28387
  }
28414
28388
 
28415
28389
  this.hasFocus = true;
28416
- this.dropdown.show();
28417
28390
 
28418
28391
  // shadowroot active element is null if we focus the datepicker itself
28419
28392
  if (this.shadowRoot.activeElement === null) {
@@ -28757,8 +28730,7 @@ class AuroDatePicker extends AuroElement$1 {
28757
28730
  /**
28758
28731
  * Simple formatter that ONLY WORKS FOR US DATES.
28759
28732
  * Returns formatted date like Apr 21 or Dec 25.
28760
- * @private
28761
- * @param {string} date - Date format should be in a format Date constructor accepts, like '2023-04-21' or '2023/04/21'.
28733
+ * @param date
28762
28734
  * @return {string}
28763
28735
  */
28764
28736
  formatShortDate(date) {
@@ -16,24 +16,18 @@
16
16
  <head>
17
17
  <meta charset="UTF-8" />
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
- <title>Auro Web Component Demo | auro-dropdown</title>
20
-
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
23
-
24
- <!-- Legacy reference is still needed to support auro-dropdown's use of legacy token values at this time -->
25
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
-
27
- <!-- Design Token Alaska Theme -->
28
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
-
30
- <!-- Webcore Stylesheet Alaska Theme -->
31
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
-
33
- <!-- Demo Specific Styles -->
19
+ <title>Auro Web Component Generator | auro-dropdown custom element</title>
20
+ <link
21
+ rel="stylesheet"
22
+ type="text/css"
23
+ href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
+ />
25
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
26
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
34
27
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
35
28
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
- </head>
29
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/essentials-as.css" />
30
+ </head>
37
31
  <body class="auro-markdown">
38
32
  <main></main>
39
33