@aurodesignsystem-dev/auro-formkit 0.0.0-pr802.0 → 0.0.0-pr805.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 (44) hide show
  1. package/components/bibtemplate/dist/index.js +1 -1
  2. package/components/bibtemplate/dist/registered.js +1 -1
  3. package/components/checkbox/demo/api.md +2 -1
  4. package/components/checkbox/demo/api.min.js +7 -0
  5. package/components/checkbox/demo/index.min.js +7 -0
  6. package/components/checkbox/dist/index.js +7 -0
  7. package/components/checkbox/dist/registered.js +7 -0
  8. package/components/combobox/demo/api.md +2 -0
  9. package/components/combobox/demo/api.min.js +11 -63
  10. package/components/combobox/demo/index.min.js +11 -63
  11. package/components/combobox/dist/auro-combobox.d.ts +2 -4
  12. package/components/combobox/dist/index.js +11 -63
  13. package/components/combobox/dist/registered.js +11 -63
  14. package/components/counter/demo/api.md +2 -0
  15. package/components/counter/demo/api.min.js +31 -61
  16. package/components/counter/demo/index.min.js +31 -61
  17. package/components/counter/dist/auro-counter-group.d.ts +10 -0
  18. package/components/counter/dist/index.js +31 -61
  19. package/components/counter/dist/registered.js +31 -61
  20. package/components/datepicker/README.md +1 -1
  21. package/components/datepicker/demo/api.md +41 -19
  22. package/components/datepicker/demo/api.min.js +242 -159
  23. package/components/datepicker/demo/index.md +4 -4
  24. package/components/datepicker/demo/index.min.js +242 -159
  25. package/components/datepicker/demo/readme.md +1 -1
  26. package/components/datepicker/dist/auro-datepicker.d.ts +73 -12
  27. package/components/datepicker/dist/index.js +242 -159
  28. package/components/datepicker/dist/registered.js +242 -159
  29. package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
  30. package/components/dropdown/demo/api.md +1 -1
  31. package/components/dropdown/demo/api.min.js +10 -60
  32. package/components/dropdown/demo/index.min.js +10 -60
  33. package/components/dropdown/dist/auro-dropdown.d.ts +0 -7
  34. package/components/dropdown/dist/index.js +10 -60
  35. package/components/dropdown/dist/registered.js +10 -60
  36. package/components/select/demo/api.md +46 -64
  37. package/components/select/demo/api.min.js +32 -72
  38. package/components/select/demo/index.md +1057 -137
  39. package/components/select/demo/index.min.js +32 -72
  40. package/components/select/dist/auro-select.d.ts +10 -5
  41. package/components/select/dist/index.js +32 -72
  42. package/components/select/dist/registered.js +32 -72
  43. package/package.json +1 -1
  44. /package/components/datepicker/dist/styles/{default → classic}/color-css.d.ts +0 -0
@@ -4507,6 +4507,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
4507
4507
  // See LICENSE in the project root for license information.
4508
4508
 
4509
4509
 
4510
+
4510
4511
  /*
4511
4512
  * @slot - Default slot for the popover content.
4512
4513
  * @slot helpText - Defines the content of the helpText.
@@ -5010,6 +5011,13 @@ class AuroDropdown extends AuroElement$3 {
5010
5011
 
5011
5012
  // Add the tag name as an attribute if it is different than the component name
5012
5013
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
5014
+
5015
+ this.trigger.addEventListener('click', () => {
5016
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
5017
+ bubbles: true,
5018
+ composed: true
5019
+ }));
5020
+ });
5013
5021
  }
5014
5022
 
5015
5023
  /**
@@ -5082,64 +5090,6 @@ class AuroDropdown extends AuroElement$3 {
5082
5090
  this.hasFocus = false;
5083
5091
  }
5084
5092
 
5085
- /**
5086
- * Determines if the element or any children are focusable.
5087
- * @private
5088
- * @param {HTMLElement} element - Element to check.
5089
- * @returns {Boolean} - True if the element or any children are focusable.
5090
- */
5091
- containsFocusableElement(element) {
5092
- this.showTriggerBorders = true;
5093
-
5094
- const nodes = [
5095
- element,
5096
- ...element.children
5097
- ];
5098
-
5099
- const focusableElements = [
5100
- 'a',
5101
- 'auro-hyperlink',
5102
- 'button',
5103
- 'auro-button',
5104
- 'input',
5105
- 'auro-input',
5106
- ];
5107
-
5108
- const focusableElementsThatNeedBorders = ['auro-input'];
5109
-
5110
- const result = nodes.some((node) => {
5111
- const tagName = node.tagName.toLowerCase();
5112
-
5113
- if (node.tabIndex > -1) {
5114
- return true;
5115
- }
5116
-
5117
- if (focusableElements.includes(tagName)) {
5118
- if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
5119
- return true;
5120
- }
5121
- if (!node.hasAttribute('disabled')) {
5122
- return true;
5123
- }
5124
- }
5125
-
5126
- if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
5127
- return true;
5128
- }
5129
-
5130
- return false;
5131
- });
5132
-
5133
- if (result) {
5134
- this.showTriggerBorders = !nodes.some((node) => {
5135
- const tagName = node.tagName.toLowerCase();
5136
- return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
5137
- });
5138
- }
5139
-
5140
- return result;
5141
- }
5142
-
5143
5093
  /**
5144
5094
  * Creates and dispatches a duplicate focus event on the trigger element.
5145
5095
  * @private
@@ -5251,7 +5201,7 @@ class AuroDropdown extends AuroElement$3 {
5251
5201
  if (triggerContentNodes) {
5252
5202
 
5253
5203
  // See if any of them are focusable elements
5254
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
5204
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
5255
5205
 
5256
5206
  // If any of them are focusable elements
5257
5207
  if (this.triggerContentFocusable) {
@@ -5323,7 +5273,7 @@ class AuroDropdown extends AuroElement$3 {
5323
5273
  <div
5324
5274
  id="trigger"
5325
5275
  class="${e(this.commonWrapperClasses)}" part="wrapper"
5326
- tabindex="${this.tabIndex}"
5276
+ tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
5327
5277
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5328
5278
  aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5329
5279
  aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
@@ -7296,7 +7246,7 @@ class AuroBibtemplate extends i$2 {
7296
7246
  /**
7297
7247
  * @private
7298
7248
  */
7299
- this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
7249
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
7300
7250
  }
7301
7251
 
7302
7252
  static get styles() {
@@ -7623,7 +7573,7 @@ class AuroHelpText extends i$2 {
7623
7573
 
7624
7574
  var helpTextVersion = '1.0.0';
7625
7575
 
7626
- var styleCss$3 = i$5`.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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
7576
+ var styleCss$3 = i$5`.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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host{display:inline-block}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
7627
7577
 
7628
7578
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7629
7579
  // See LICENSE in the project root for license information.
@@ -8368,6 +8318,26 @@ class AuroSelect extends AuroElement$4 {
8368
8318
  }
8369
8319
  }
8370
8320
 
8321
+ /**
8322
+ * Hides the dropdown bib if its open.
8323
+ * @returns {void}
8324
+ */
8325
+ hideBib() {
8326
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
8327
+ this.dropdown.hide();
8328
+ }
8329
+ }
8330
+
8331
+ /**
8332
+ * Shows the dropdown bib if there are options to show.
8333
+ * @returns {void}
8334
+ */
8335
+ showBib() {
8336
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
8337
+ this.dropdown.show();
8338
+ }
8339
+ }
8340
+
8371
8341
  /**
8372
8342
  * Function to support @focusin event.
8373
8343
  * @private
@@ -8533,16 +8503,6 @@ class AuroSelect extends AuroElement$4 {
8533
8503
  this.validation.reset(this);
8534
8504
  }
8535
8505
 
8536
- /**
8537
- * Hide dropdownbib.
8538
- * @private
8539
- */
8540
- hideBib() {
8541
- if (this.dropdown) {
8542
- this.dropdown.hide();
8543
- }
8544
- }
8545
-
8546
8506
  /**
8547
8507
  * Validates value.
8548
8508
  * @param {boolean} [force=false] - Whether to force validation.
@@ -375,6 +375,16 @@ export class AuroSelect extends AuroElement {
375
375
  * @returns {void}
376
376
  */
377
377
  private handleMenuLoadingChange;
378
+ /**
379
+ * Hides the dropdown bib if its open.
380
+ * @returns {void}
381
+ */
382
+ hideBib(): void;
383
+ /**
384
+ * Shows the dropdown bib if there are options to show.
385
+ * @returns {void}
386
+ */
387
+ showBib(): void;
378
388
  /**
379
389
  * Function to support @focusin event.
380
390
  * @private
@@ -414,11 +424,6 @@ export class AuroSelect extends AuroElement {
414
424
  * @returns {void}
415
425
  */
416
426
  reset(): void;
417
- /**
418
- * Hide dropdownbib.
419
- * @private
420
- */
421
- private hideBib;
422
427
  /**
423
428
  * Validates value.
424
429
  * @param {boolean} [force=false] - Whether to force validation.
@@ -4461,6 +4461,7 @@ let AuroElement$2 = class AuroElement extends LitElement {
4461
4461
  // See LICENSE in the project root for license information.
4462
4462
 
4463
4463
 
4464
+
4464
4465
  /*
4465
4466
  * @slot - Default slot for the popover content.
4466
4467
  * @slot helpText - Defines the content of the helpText.
@@ -4964,6 +4965,13 @@ class AuroDropdown extends AuroElement$2 {
4964
4965
 
4965
4966
  // Add the tag name as an attribute if it is different than the component name
4966
4967
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
4968
+
4969
+ this.trigger.addEventListener('click', () => {
4970
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
4971
+ bubbles: true,
4972
+ composed: true
4973
+ }));
4974
+ });
4967
4975
  }
4968
4976
 
4969
4977
  /**
@@ -5036,64 +5044,6 @@ class AuroDropdown extends AuroElement$2 {
5036
5044
  this.hasFocus = false;
5037
5045
  }
5038
5046
 
5039
- /**
5040
- * Determines if the element or any children are focusable.
5041
- * @private
5042
- * @param {HTMLElement} element - Element to check.
5043
- * @returns {Boolean} - True if the element or any children are focusable.
5044
- */
5045
- containsFocusableElement(element) {
5046
- this.showTriggerBorders = true;
5047
-
5048
- const nodes = [
5049
- element,
5050
- ...element.children
5051
- ];
5052
-
5053
- const focusableElements = [
5054
- 'a',
5055
- 'auro-hyperlink',
5056
- 'button',
5057
- 'auro-button',
5058
- 'input',
5059
- 'auro-input',
5060
- ];
5061
-
5062
- const focusableElementsThatNeedBorders = ['auro-input'];
5063
-
5064
- const result = nodes.some((node) => {
5065
- const tagName = node.tagName.toLowerCase();
5066
-
5067
- if (node.tabIndex > -1) {
5068
- return true;
5069
- }
5070
-
5071
- if (focusableElements.includes(tagName)) {
5072
- if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
5073
- return true;
5074
- }
5075
- if (!node.hasAttribute('disabled')) {
5076
- return true;
5077
- }
5078
- }
5079
-
5080
- if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
5081
- return true;
5082
- }
5083
-
5084
- return false;
5085
- });
5086
-
5087
- if (result) {
5088
- this.showTriggerBorders = !nodes.some((node) => {
5089
- const tagName = node.tagName.toLowerCase();
5090
- return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
5091
- });
5092
- }
5093
-
5094
- return result;
5095
- }
5096
-
5097
5047
  /**
5098
5048
  * Creates and dispatches a duplicate focus event on the trigger element.
5099
5049
  * @private
@@ -5205,7 +5155,7 @@ class AuroDropdown extends AuroElement$2 {
5205
5155
  if (triggerContentNodes) {
5206
5156
 
5207
5157
  // See if any of them are focusable elements
5208
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
5158
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
5209
5159
 
5210
5160
  // If any of them are focusable elements
5211
5161
  if (this.triggerContentFocusable) {
@@ -5277,7 +5227,7 @@ class AuroDropdown extends AuroElement$2 {
5277
5227
  <div
5278
5228
  id="trigger"
5279
5229
  class="${classMap(this.commonWrapperClasses)}" part="wrapper"
5280
- tabindex="${this.tabIndex}"
5230
+ tabindex="${ifDefined(this.triggerContentFocusable ? undefined : this.tabIndex)}"
5281
5231
  role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5282
5232
  aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5283
5233
  aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
@@ -7250,7 +7200,7 @@ class AuroBibtemplate extends LitElement {
7250
7200
  /**
7251
7201
  * @private
7252
7202
  */
7253
- this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
7203
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
7254
7204
  }
7255
7205
 
7256
7206
  static get styles() {
@@ -7577,7 +7527,7 @@ class AuroHelpText extends LitElement {
7577
7527
 
7578
7528
  var helpTextVersion = '1.0.0';
7579
7529
 
7580
- var styleCss = 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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
7530
+ var styleCss = 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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host{display:inline-block}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
7581
7531
 
7582
7532
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7583
7533
  // See LICENSE in the project root for license information.
@@ -8322,6 +8272,26 @@ class AuroSelect extends AuroElement$3 {
8322
8272
  }
8323
8273
  }
8324
8274
 
8275
+ /**
8276
+ * Hides the dropdown bib if its open.
8277
+ * @returns {void}
8278
+ */
8279
+ hideBib() {
8280
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
8281
+ this.dropdown.hide();
8282
+ }
8283
+ }
8284
+
8285
+ /**
8286
+ * Shows the dropdown bib if there are options to show.
8287
+ * @returns {void}
8288
+ */
8289
+ showBib() {
8290
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
8291
+ this.dropdown.show();
8292
+ }
8293
+ }
8294
+
8325
8295
  /**
8326
8296
  * Function to support @focusin event.
8327
8297
  * @private
@@ -8487,16 +8457,6 @@ class AuroSelect extends AuroElement$3 {
8487
8457
  this.validation.reset(this);
8488
8458
  }
8489
8459
 
8490
- /**
8491
- * Hide dropdownbib.
8492
- * @private
8493
- */
8494
- hideBib() {
8495
- if (this.dropdown) {
8496
- this.dropdown.hide();
8497
- }
8498
- }
8499
-
8500
8460
  /**
8501
8461
  * Validates value.
8502
8462
  * @param {boolean} [force=false] - Whether to force validation.
@@ -4461,6 +4461,7 @@ let AuroElement$2 = class AuroElement extends LitElement {
4461
4461
  // See LICENSE in the project root for license information.
4462
4462
 
4463
4463
 
4464
+
4464
4465
  /*
4465
4466
  * @slot - Default slot for the popover content.
4466
4467
  * @slot helpText - Defines the content of the helpText.
@@ -4964,6 +4965,13 @@ class AuroDropdown extends AuroElement$2 {
4964
4965
 
4965
4966
  // Add the tag name as an attribute if it is different than the component name
4966
4967
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
4968
+
4969
+ this.trigger.addEventListener('click', () => {
4970
+ this.dispatchEvent(new CustomEvent('auroDropdown-triggerClick', {
4971
+ bubbles: true,
4972
+ composed: true
4973
+ }));
4974
+ });
4967
4975
  }
4968
4976
 
4969
4977
  /**
@@ -5036,64 +5044,6 @@ class AuroDropdown extends AuroElement$2 {
5036
5044
  this.hasFocus = false;
5037
5045
  }
5038
5046
 
5039
- /**
5040
- * Determines if the element or any children are focusable.
5041
- * @private
5042
- * @param {HTMLElement} element - Element to check.
5043
- * @returns {Boolean} - True if the element or any children are focusable.
5044
- */
5045
- containsFocusableElement(element) {
5046
- this.showTriggerBorders = true;
5047
-
5048
- const nodes = [
5049
- element,
5050
- ...element.children
5051
- ];
5052
-
5053
- const focusableElements = [
5054
- 'a',
5055
- 'auro-hyperlink',
5056
- 'button',
5057
- 'auro-button',
5058
- 'input',
5059
- 'auro-input',
5060
- ];
5061
-
5062
- const focusableElementsThatNeedBorders = ['auro-input'];
5063
-
5064
- const result = nodes.some((node) => {
5065
- const tagName = node.tagName.toLowerCase();
5066
-
5067
- if (node.tabIndex > -1) {
5068
- return true;
5069
- }
5070
-
5071
- if (focusableElements.includes(tagName)) {
5072
- if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
5073
- return true;
5074
- }
5075
- if (!node.hasAttribute('disabled')) {
5076
- return true;
5077
- }
5078
- }
5079
-
5080
- if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
5081
- return true;
5082
- }
5083
-
5084
- return false;
5085
- });
5086
-
5087
- if (result) {
5088
- this.showTriggerBorders = !nodes.some((node) => {
5089
- const tagName = node.tagName.toLowerCase();
5090
- return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
5091
- });
5092
- }
5093
-
5094
- return result;
5095
- }
5096
-
5097
5047
  /**
5098
5048
  * Creates and dispatches a duplicate focus event on the trigger element.
5099
5049
  * @private
@@ -5205,7 +5155,7 @@ class AuroDropdown extends AuroElement$2 {
5205
5155
  if (triggerContentNodes) {
5206
5156
 
5207
5157
  // See if any of them are focusable elements
5208
- this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
5158
+ this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
5209
5159
 
5210
5160
  // If any of them are focusable elements
5211
5161
  if (this.triggerContentFocusable) {
@@ -5277,7 +5227,7 @@ class AuroDropdown extends AuroElement$2 {
5277
5227
  <div
5278
5228
  id="trigger"
5279
5229
  class="${classMap(this.commonWrapperClasses)}" part="wrapper"
5280
- tabindex="${this.tabIndex}"
5230
+ tabindex="${ifDefined(this.triggerContentFocusable ? undefined : this.tabIndex)}"
5281
5231
  role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5282
5232
  aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5283
5233
  aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
@@ -7250,7 +7200,7 @@ class AuroBibtemplate extends LitElement {
7250
7200
  /**
7251
7201
  * @private
7252
7202
  */
7253
- this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
7203
+ this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
7254
7204
  }
7255
7205
 
7256
7206
  static get styles() {
@@ -7577,7 +7527,7 @@ class AuroHelpText extends LitElement {
7577
7527
 
7578
7528
  var helpTextVersion = '1.0.0';
7579
7529
 
7580
- var styleCss = 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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
7530
+ var styleCss = 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}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host{display:inline-block}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
7581
7531
 
7582
7532
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7583
7533
  // See LICENSE in the project root for license information.
@@ -8322,6 +8272,26 @@ class AuroSelect extends AuroElement$3 {
8322
8272
  }
8323
8273
  }
8324
8274
 
8275
+ /**
8276
+ * Hides the dropdown bib if its open.
8277
+ * @returns {void}
8278
+ */
8279
+ hideBib() {
8280
+ if (this.dropdown && this.dropdown.isPopoverVisible) {
8281
+ this.dropdown.hide();
8282
+ }
8283
+ }
8284
+
8285
+ /**
8286
+ * Shows the dropdown bib if there are options to show.
8287
+ * @returns {void}
8288
+ */
8289
+ showBib() {
8290
+ if (this.dropdown && !this.dropdown.isPopoverVisible) {
8291
+ this.dropdown.show();
8292
+ }
8293
+ }
8294
+
8325
8295
  /**
8326
8296
  * Function to support @focusin event.
8327
8297
  * @private
@@ -8487,16 +8457,6 @@ class AuroSelect extends AuroElement$3 {
8487
8457
  this.validation.reset(this);
8488
8458
  }
8489
8459
 
8490
- /**
8491
- * Hide dropdownbib.
8492
- * @private
8493
- */
8494
- hideBib() {
8495
- if (this.dropdown) {
8496
- this.dropdown.hide();
8497
- }
8498
- }
8499
-
8500
8460
  /**
8501
8461
  * Validates value.
8502
8462
  * @param {boolean} [force=false] - Whether to force validation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr802.0",
3
+ "version": "0.0.0-pr805.0",
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": {