@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.12 → 0.0.0-pr624.14

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 (47) hide show
  1. package/components/bibtemplate/dist/index.js +79 -9
  2. package/components/bibtemplate/dist/registered.js +79 -9
  3. package/components/checkbox/demo/api.md +6 -7
  4. package/components/checkbox/demo/api.min.js +1 -1
  5. package/components/checkbox/demo/index.min.js +1 -1
  6. package/components/checkbox/dist/index.js +1 -1
  7. package/components/checkbox/dist/registered.js +1 -1
  8. package/components/combobox/demo/api.min.js +291 -41
  9. package/components/combobox/demo/index.min.js +291 -41
  10. package/components/combobox/dist/index.js +286 -36
  11. package/components/combobox/dist/registered.js +286 -36
  12. package/components/counter/demo/api.min.js +271 -21
  13. package/components/counter/demo/index.min.js +271 -21
  14. package/components/counter/dist/index.js +271 -21
  15. package/components/counter/dist/registered.js +271 -21
  16. package/components/datepicker/demo/api.md +13 -14
  17. package/components/datepicker/demo/api.min.js +560 -60
  18. package/components/datepicker/demo/index.min.js +560 -60
  19. package/components/datepicker/dist/index.js +560 -60
  20. package/components/datepicker/dist/registered.js +560 -60
  21. package/components/dropdown/demo/api.md +2 -2
  22. package/components/dropdown/demo/api.min.js +1 -1
  23. package/components/dropdown/demo/index.min.js +1 -1
  24. package/components/dropdown/dist/index.js +1 -1
  25. package/components/dropdown/dist/registered.js +1 -1
  26. package/components/form/demo/api.min.js +1 -1
  27. package/components/form/demo/index.min.js +1 -1
  28. package/components/form/dist/index.js +1 -1
  29. package/components/form/dist/registered.js +1 -1
  30. package/components/helptext/dist/index.js +1 -1
  31. package/components/helptext/dist/registered.js +1 -1
  32. package/components/input/demo/api.md +1 -1
  33. package/components/input/demo/api.min.js +194 -14
  34. package/components/input/demo/index.min.js +194 -14
  35. package/components/input/dist/index.js +194 -14
  36. package/components/input/dist/registered.js +194 -14
  37. package/components/menu/demo/api.md +5 -5
  38. package/components/radio/demo/api.md +2 -2
  39. package/components/radio/demo/api.min.js +1 -1
  40. package/components/radio/demo/index.min.js +1 -1
  41. package/components/radio/dist/index.js +1 -1
  42. package/components/radio/dist/registered.js +1 -1
  43. package/components/select/demo/api.min.js +91 -21
  44. package/components/select/demo/index.min.js +91 -21
  45. package/components/select/dist/index.js +87 -17
  46. package/components/select/dist/registered.js +87 -17
  47. package/package.json +3 -1
@@ -659,7 +659,7 @@ const {
659
659
 
660
660
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
661
661
 
662
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
662
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
663
663
 
664
664
  /* eslint-disable jsdoc/require-param */
665
665
 
@@ -729,7 +729,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
729
729
  class AuroFormValidation {
730
730
 
731
731
  constructor() {
732
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
732
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
733
733
  }
734
734
 
735
735
  /**
@@ -3992,7 +3992,7 @@ var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direc
3992
3992
 
3993
3993
  var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
3994
3994
 
3995
- var styleCss$6 = i$5`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3995
+ var styleCss$6 = i$5`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3996
3996
 
3997
3997
  var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3998
3998
 
@@ -4003,7 +4003,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
4003
4003
 
4004
4004
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
4005
4005
 
4006
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
4006
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
4007
4007
 
4008
4008
  /* eslint-disable jsdoc/require-param */
4009
4009
 
@@ -4084,7 +4084,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4084
4084
  this.onDark = false;
4085
4085
  this.hasTextContent = false;
4086
4086
 
4087
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
4087
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
4088
4088
  }
4089
4089
 
4090
4090
  static get styles() {
@@ -4140,7 +4140,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4140
4140
  *
4141
4141
  */
4142
4142
  static register(name = "auro-helptext") {
4143
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
4143
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
4144
4144
  }
4145
4145
 
4146
4146
  updated() {
@@ -5312,7 +5312,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
5312
5312
 
5313
5313
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5314
5314
 
5315
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5315
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5316
5316
 
5317
5317
  /* eslint-disable jsdoc/require-param */
5318
5318
 
@@ -5576,7 +5576,7 @@ var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
5576
5576
 
5577
5577
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5578
5578
 
5579
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5579
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5580
5580
 
5581
5581
  /* eslint-disable jsdoc/require-param */
5582
5582
 
@@ -5658,7 +5658,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5658
5658
  */
5659
5659
  privateDefaults() {
5660
5660
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
5661
- this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
5661
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
5662
5662
  }
5663
5663
 
5664
5664
  // function to define props used within the scope of this component
@@ -5740,7 +5740,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5740
5740
  *
5741
5741
  */
5742
5742
  static register(name = "auro-icon") {
5743
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
5743
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
5744
5744
  }
5745
5745
 
5746
5746
  connectedCallback() {
@@ -5808,6 +5808,76 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5808
5808
 
5809
5809
  var iconVersion$1 = '8.0.3';
5810
5810
 
5811
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5812
+ // See LICENSE in the project root for license information.
5813
+
5814
+ // ---------------------------------------------------------------------
5815
+
5816
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5817
+
5818
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
5819
+
5820
+ /* eslint-disable jsdoc/require-param */
5821
+
5822
+ /**
5823
+ * This will register a new custom element with the browser.
5824
+ * @param {String} name - The name of the custom element.
5825
+ * @param {Object} componentClass - The class to register as a custom element.
5826
+ * @returns {void}
5827
+ */
5828
+ registerComponent(name, componentClass) {
5829
+ if (!customElements.get(name)) {
5830
+ customElements.define(name, class extends componentClass {});
5831
+ }
5832
+ }
5833
+
5834
+ /**
5835
+ * Finds and returns the closest HTML Element based on a selector.
5836
+ * @returns {void}
5837
+ */
5838
+ closestElement(
5839
+ selector, // selector like in .closest()
5840
+ base = this, // extra functionality to skip a parent
5841
+ __Closest = (el, found = el && el.closest(selector)) =>
5842
+ !el || el === document || el === window
5843
+ ? null // standard .closest() returns null for non-found selectors also
5844
+ : found
5845
+ ? found // found a selector INside this element
5846
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
5847
+ ) {
5848
+ return __Closest(base);
5849
+ }
5850
+ /* eslint-enable jsdoc/require-param */
5851
+
5852
+ /**
5853
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
5854
+ * @param {Object} elem - The element to check.
5855
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5856
+ * @returns {void}
5857
+ */
5858
+ handleComponentTagRename(elem, tagName) {
5859
+ const tag = tagName.toLowerCase();
5860
+ const elemTag = elem.tagName.toLowerCase();
5861
+
5862
+ if (elemTag !== tag) {
5863
+ elem.setAttribute(tag, true);
5864
+ }
5865
+ }
5866
+
5867
+ /**
5868
+ * Validates if an element is a specific Auro component.
5869
+ * @param {Object} elem - The element to validate.
5870
+ * @param {String} tagName - The name of the Auro component to check against.
5871
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
5872
+ */
5873
+ elementMatch(elem, tagName) {
5874
+ const tag = tagName.toLowerCase();
5875
+ const elemTag = elem.tagName.toLowerCase();
5876
+
5877
+ return elemTag === tag || elem.hasAttribute(tag);
5878
+ }
5879
+ };
5880
+
5811
5881
  var styleCss$5 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
5812
5882
 
5813
5883
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -5837,7 +5907,7 @@ class AuroHeader extends i$2 {
5837
5907
  /**
5838
5908
  * @private
5839
5909
  */
5840
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
5910
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
5841
5911
  }
5842
5912
 
5843
5913
  // function to define props used within the scope of this component
@@ -5867,7 +5937,7 @@ class AuroHeader extends i$2 {
5867
5937
  *
5868
5938
  */
5869
5939
  static register(name = "auro-header") {
5870
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroHeader);
5940
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHeader);
5871
5941
  }
5872
5942
 
5873
5943
  firstUpdated() {
@@ -5963,7 +6033,7 @@ class AuroBibtemplate extends i$2 {
5963
6033
 
5964
6034
  this.large = false;
5965
6035
 
5966
- AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
6036
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5967
6037
 
5968
6038
  const versioning = new AuroDependencyVersioning();
5969
6039
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
@@ -6002,7 +6072,7 @@ class AuroBibtemplate extends i$2 {
6002
6072
  *
6003
6073
  */
6004
6074
  static register(name = "auro-bibtemplate") {
6005
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroBibtemplate);
6075
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
6006
6076
  }
6007
6077
 
6008
6078
  /**
@@ -6088,7 +6158,7 @@ var bibTemplateVersion = '1.0.0';
6088
6158
 
6089
6159
  var colorCss$3 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
6090
6160
 
6091
- var styleCss$4 = i$5`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
6161
+ var styleCss$4 = i$5`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
6092
6162
 
6093
6163
  var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
6094
6164
 
@@ -6418,7 +6488,7 @@ class AuroSelect extends AuroElement$3 {
6418
6488
  /**
6419
6489
  * @private
6420
6490
  */
6421
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
6491
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
6422
6492
 
6423
6493
  /**
6424
6494
  * Generate unique names for dependency components.
@@ -6787,7 +6857,7 @@ class AuroSelect extends AuroElement$3 {
6787
6857
  *
6788
6858
  */
6789
6859
  static register(name = "auro-select") {
6790
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroSelect);
6860
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
6791
6861
  }
6792
6862
 
6793
6863
  /**
@@ -7811,7 +7881,7 @@ class AuroMenu extends i$2 {
7811
7881
  *
7812
7882
  */
7813
7883
  static register(name = "auro-menu") {
7814
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenu);
7884
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
7815
7885
  }
7816
7886
 
7817
7887
  // Lifecycle Methods
@@ -7835,7 +7905,7 @@ class AuroMenu extends i$2 {
7835
7905
  }
7836
7906
 
7837
7907
  firstUpdated() {
7838
- AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-menu');
7908
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
7839
7909
 
7840
7910
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
7841
7911
  this.initializeMenu();
@@ -8821,7 +8891,7 @@ class AuroMenuOption extends i$2 {
8821
8891
  /**
8822
8892
  * @private
8823
8893
  */
8824
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
8894
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
8825
8895
  }
8826
8896
 
8827
8897
  static get properties() {
@@ -8865,7 +8935,7 @@ class AuroMenuOption extends i$2 {
8865
8935
  *
8866
8936
  */
8867
8937
  static register(name = "auro-menuoption") {
8868
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenuOption);
8938
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
8869
8939
  }
8870
8940
 
8871
8941
  firstUpdated() {
@@ -556,7 +556,7 @@ const {
556
556
 
557
557
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
558
558
 
559
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
559
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
560
560
 
561
561
  /* eslint-disable jsdoc/require-param */
562
562
 
@@ -626,7 +626,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
626
626
  class AuroFormValidation {
627
627
 
628
628
  constructor() {
629
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
629
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
630
630
  }
631
631
 
632
632
  /**
@@ -3889,7 +3889,7 @@ var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direc
3889
3889
 
3890
3890
  var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
3891
3891
 
3892
- var styleCss$6 = i$5`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3892
+ var styleCss$6 = i$5`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3893
3893
 
3894
3894
  var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3895
3895
 
@@ -3900,7 +3900,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
3900
3900
 
3901
3901
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3902
3902
 
3903
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
3903
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
3904
3904
 
3905
3905
  /* eslint-disable jsdoc/require-param */
3906
3906
 
@@ -3981,7 +3981,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
3981
3981
  this.onDark = false;
3982
3982
  this.hasTextContent = false;
3983
3983
 
3984
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
3984
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
3985
3985
  }
3986
3986
 
3987
3987
  static get styles() {
@@ -4037,7 +4037,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
4037
4037
  *
4038
4038
  */
4039
4039
  static register(name = "auro-helptext") {
4040
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
4040
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
4041
4041
  }
4042
4042
 
4043
4043
  updated() {
@@ -5209,7 +5209,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
5209
5209
 
5210
5210
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5211
5211
 
5212
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5212
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5213
5213
 
5214
5214
  /* eslint-disable jsdoc/require-param */
5215
5215
 
@@ -5473,7 +5473,7 @@ var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
5473
5473
 
5474
5474
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5475
5475
 
5476
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5476
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
5477
5477
 
5478
5478
  /* eslint-disable jsdoc/require-param */
5479
5479
 
@@ -5555,7 +5555,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5555
5555
  */
5556
5556
  privateDefaults() {
5557
5557
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
5558
- this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
5558
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
5559
5559
  }
5560
5560
 
5561
5561
  // function to define props used within the scope of this component
@@ -5637,7 +5637,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5637
5637
  *
5638
5638
  */
5639
5639
  static register(name = "auro-icon") {
5640
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
5640
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
5641
5641
  }
5642
5642
 
5643
5643
  connectedCallback() {
@@ -5705,6 +5705,76 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
5705
5705
 
5706
5706
  var iconVersion$1 = '8.0.3';
5707
5707
 
5708
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5709
+ // See LICENSE in the project root for license information.
5710
+
5711
+ // ---------------------------------------------------------------------
5712
+
5713
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5714
+
5715
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
5716
+
5717
+ /* eslint-disable jsdoc/require-param */
5718
+
5719
+ /**
5720
+ * This will register a new custom element with the browser.
5721
+ * @param {String} name - The name of the custom element.
5722
+ * @param {Object} componentClass - The class to register as a custom element.
5723
+ * @returns {void}
5724
+ */
5725
+ registerComponent(name, componentClass) {
5726
+ if (!customElements.get(name)) {
5727
+ customElements.define(name, class extends componentClass {});
5728
+ }
5729
+ }
5730
+
5731
+ /**
5732
+ * Finds and returns the closest HTML Element based on a selector.
5733
+ * @returns {void}
5734
+ */
5735
+ closestElement(
5736
+ selector, // selector like in .closest()
5737
+ base = this, // extra functionality to skip a parent
5738
+ __Closest = (el, found = el && el.closest(selector)) =>
5739
+ !el || el === document || el === window
5740
+ ? null // standard .closest() returns null for non-found selectors also
5741
+ : found
5742
+ ? found // found a selector INside this element
5743
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
5744
+ ) {
5745
+ return __Closest(base);
5746
+ }
5747
+ /* eslint-enable jsdoc/require-param */
5748
+
5749
+ /**
5750
+ * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
5751
+ * @param {Object} elem - The element to check.
5752
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5753
+ * @returns {void}
5754
+ */
5755
+ handleComponentTagRename(elem, tagName) {
5756
+ const tag = tagName.toLowerCase();
5757
+ const elemTag = elem.tagName.toLowerCase();
5758
+
5759
+ if (elemTag !== tag) {
5760
+ elem.setAttribute(tag, true);
5761
+ }
5762
+ }
5763
+
5764
+ /**
5765
+ * Validates if an element is a specific Auro component.
5766
+ * @param {Object} elem - The element to validate.
5767
+ * @param {String} tagName - The name of the Auro component to check against.
5768
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
5769
+ */
5770
+ elementMatch(elem, tagName) {
5771
+ const tag = tagName.toLowerCase();
5772
+ const elemTag = elem.tagName.toLowerCase();
5773
+
5774
+ return elemTag === tag || elem.hasAttribute(tag);
5775
+ }
5776
+ };
5777
+
5708
5778
  var styleCss$5 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
5709
5779
 
5710
5780
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -5734,7 +5804,7 @@ class AuroHeader extends i$2 {
5734
5804
  /**
5735
5805
  * @private
5736
5806
  */
5737
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
5807
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
5738
5808
  }
5739
5809
 
5740
5810
  // function to define props used within the scope of this component
@@ -5764,7 +5834,7 @@ class AuroHeader extends i$2 {
5764
5834
  *
5765
5835
  */
5766
5836
  static register(name = "auro-header") {
5767
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroHeader);
5837
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHeader);
5768
5838
  }
5769
5839
 
5770
5840
  firstUpdated() {
@@ -5860,7 +5930,7 @@ class AuroBibtemplate extends i$2 {
5860
5930
 
5861
5931
  this.large = false;
5862
5932
 
5863
- AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5933
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5864
5934
 
5865
5935
  const versioning = new AuroDependencyVersioning();
5866
5936
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
@@ -5899,7 +5969,7 @@ class AuroBibtemplate extends i$2 {
5899
5969
  *
5900
5970
  */
5901
5971
  static register(name = "auro-bibtemplate") {
5902
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroBibtemplate);
5972
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
5903
5973
  }
5904
5974
 
5905
5975
  /**
@@ -5985,7 +6055,7 @@ var bibTemplateVersion = '1.0.0';
5985
6055
 
5986
6056
  var colorCss$3 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
5987
6057
 
5988
- var styleCss$4 = i$5`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
6058
+ var styleCss$4 = i$5`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
5989
6059
 
5990
6060
  var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
5991
6061
 
@@ -6315,7 +6385,7 @@ class AuroSelect extends AuroElement$3 {
6315
6385
  /**
6316
6386
  * @private
6317
6387
  */
6318
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
6388
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
6319
6389
 
6320
6390
  /**
6321
6391
  * Generate unique names for dependency components.
@@ -6684,7 +6754,7 @@ class AuroSelect extends AuroElement$3 {
6684
6754
  *
6685
6755
  */
6686
6756
  static register(name = "auro-select") {
6687
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroSelect);
6757
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
6688
6758
  }
6689
6759
 
6690
6760
  /**
@@ -7708,7 +7778,7 @@ class AuroMenu extends i$2 {
7708
7778
  *
7709
7779
  */
7710
7780
  static register(name = "auro-menu") {
7711
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenu);
7781
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
7712
7782
  }
7713
7783
 
7714
7784
  // Lifecycle Methods
@@ -7732,7 +7802,7 @@ class AuroMenu extends i$2 {
7732
7802
  }
7733
7803
 
7734
7804
  firstUpdated() {
7735
- AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-menu');
7805
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
7736
7806
 
7737
7807
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
7738
7808
  this.initializeMenu();
@@ -8718,7 +8788,7 @@ class AuroMenuOption extends i$2 {
8718
8788
  /**
8719
8789
  * @private
8720
8790
  */
8721
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
8791
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
8722
8792
  }
8723
8793
 
8724
8794
  static get properties() {
@@ -8762,7 +8832,7 @@ class AuroMenuOption extends i$2 {
8762
8832
  *
8763
8833
  */
8764
8834
  static register(name = "auro-menuoption") {
8765
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroMenuOption);
8835
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
8766
8836
  }
8767
8837
 
8768
8838
  firstUpdated() {