@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.17 → 0.0.0-pr624.19

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 (40) hide show
  1. package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
  2. package/components/bibtemplate/dist/index.js +61 -10
  3. package/components/bibtemplate/dist/registered.js +61 -10
  4. package/components/combobox/demo/api.min.js +164 -33
  5. package/components/combobox/demo/index.min.js +164 -33
  6. package/components/combobox/dist/index.js +152 -33
  7. package/components/combobox/dist/registered.js +152 -33
  8. package/components/counter/demo/api.min.js +159 -33
  9. package/components/counter/demo/index.min.js +159 -33
  10. package/components/counter/dist/auro-counter.d.ts +6 -0
  11. package/components/counter/dist/index.js +159 -33
  12. package/components/counter/dist/registered.js +159 -33
  13. package/components/datepicker/demo/api.md +9 -1
  14. package/components/datepicker/demo/api.min.js +791 -339
  15. package/components/datepicker/demo/index.md +68 -6
  16. package/components/datepicker/demo/index.min.js +791 -339
  17. package/components/datepicker/dist/auro-datepicker.d.ts +50 -11
  18. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  19. package/components/datepicker/dist/index.js +628 -176
  20. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  21. package/components/datepicker/dist/registered.js +628 -176
  22. package/components/datepicker/dist/styles/snowflake/style-css.d.ts +2 -0
  23. package/components/input/demo/api.md +1 -0
  24. package/components/input/demo/api.min.js +90 -22
  25. package/components/input/demo/index.min.js +90 -22
  26. package/components/input/dist/auro-input.d.ts +174 -0
  27. package/components/input/dist/index.js +90 -22
  28. package/components/input/dist/registered.js +90 -22
  29. package/components/menu/demo/api.min.js +12 -0
  30. package/components/menu/demo/index.min.js +12 -0
  31. package/components/menu/dist/auro-menu.d.ts +6 -0
  32. package/components/menu/dist/index.js +12 -0
  33. package/components/menu/dist/registered.js +12 -0
  34. package/components/select/demo/api.min.js +94 -17
  35. package/components/select/demo/index.min.js +94 -17
  36. package/components/select/dist/auro-select.d.ts +7 -0
  37. package/components/select/dist/index.js +82 -17
  38. package/components/select/dist/registered.js +82 -17
  39. package/package.json +3 -3
  40. /package/components/datepicker/dist/styles/{emphasized/style-css.d.ts → snowflake/color-css.d.ts} +0 -0
@@ -5834,22 +5834,17 @@ class BaseInput extends AuroElement$2 {
5834
5834
  * @returns {void}
5835
5835
  */
5836
5836
  getPlaceholder() {
5837
- const isFocused = this.inputElement === this.getActiveElement();
5837
+ this.inputElement === this.getActiveElement();
5838
5838
 
5839
5839
  // console.warn('isFocused', isFocused);
5840
5840
  // console.warn(this.inputElement);
5841
5841
  // console.warn(this.getActiveElement());
5842
5842
 
5843
- if (!isFocused) {
5844
- if (this.placeholder) {
5845
- this.placeholderStr = this.placeholder;
5846
- // return this.placeholder;
5847
- } else if (this.type === 'date') {
5848
- this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
5849
- // return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
5850
- }
5851
- } else {
5852
- this.placeholderStr = '';
5843
+ // if (!isFocused) {
5844
+ if (this.placeholder) {
5845
+ this.placeholderStr = this.placeholder;
5846
+ } else if (this.type === 'date') {
5847
+ this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
5853
5848
  }
5854
5849
 
5855
5850
  this.requestUpdate();
@@ -6836,7 +6831,6 @@ class AuroElement extends LitElement {
6836
6831
  * @private
6837
6832
  */
6838
6833
  wrapper: {
6839
- type: HTMLElement,
6840
6834
  attribute: false,
6841
6835
  reflect: false
6842
6836
  }
@@ -7145,7 +7139,7 @@ class AuroLoader extends LitElement {
7145
7139
 
7146
7140
  var loaderVersion = '5.0.0';
7147
7141
 
7148
- /* eslint-disable max-lines, curly */
7142
+ /* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
7149
7143
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
7150
7144
  // See LICENSE in the project root for license information.
7151
7145
 
@@ -7212,6 +7206,21 @@ class AuroButton extends AuroElement {
7212
7206
  * @private
7213
7207
  */
7214
7208
  this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
7209
+
7210
+ /**
7211
+ * @private
7212
+ */
7213
+ this.buttonHref = undefined;
7214
+
7215
+ /**
7216
+ * @private
7217
+ */
7218
+ this.buttonTarget = undefined;
7219
+
7220
+ /**
7221
+ * @private
7222
+ */
7223
+ this.buttonRel = undefined;
7215
7224
  }
7216
7225
 
7217
7226
  static get styles() {
@@ -7278,13 +7287,23 @@ class AuroButton extends AuroElement {
7278
7287
  },
7279
7288
 
7280
7289
  /**
7281
- * Populates `tabIndex` to define the focusable sequence in keyboard navigation.
7290
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
7282
7291
  */
7283
7292
  tIndex: {
7284
7293
  type: String,
7285
7294
  reflect: true
7286
7295
  },
7287
7296
 
7297
+ /**
7298
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
7299
+ * Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
7300
+ * Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
7301
+ */
7302
+ tabindex: {
7303
+ type: String,
7304
+ reflect: false
7305
+ },
7306
+
7288
7307
  /**
7289
7308
  * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
7290
7309
  */
@@ -7317,6 +7336,27 @@ class AuroButton extends AuroElement {
7317
7336
  type: String,
7318
7337
  reflect: true
7319
7338
  },
7339
+
7340
+ /**
7341
+ * @private
7342
+ */
7343
+ buttonHref: {
7344
+ type: String,
7345
+ },
7346
+
7347
+ /**
7348
+ * @private
7349
+ */
7350
+ buttonTarget: {
7351
+ type: String,
7352
+ },
7353
+
7354
+ /**
7355
+ * @private
7356
+ */
7357
+ buttonRel: {
7358
+ type: String,
7359
+ },
7320
7360
  };
7321
7361
  }
7322
7362
 
@@ -7407,14 +7447,17 @@ class AuroButton extends AuroElement {
7407
7447
  loading: this.loading,
7408
7448
  };
7409
7449
 
7450
+ const tag = this.buttonHref ? literal`a` : literal`button`;
7451
+ const part = this.buttonHref ? 'link' : 'button';
7452
+
7410
7453
  return html$1`
7411
- <button
7412
- part="button"
7454
+ <${tag}
7455
+ part="${part}"
7413
7456
  aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
7414
7457
  aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
7415
- tabIndex="${ifDefined(this.tIndex)}"
7458
+ tabindex="${ifDefined(this.tIndex || this.tabindex)}"
7416
7459
  ?autofocus="${this.autofocus}"
7417
- class="${classMap(classes)}"
7460
+ class=${classMap(classes)}
7418
7461
  ?disabled="${this.disabled || this.loading}"
7419
7462
  ?onDark="${this.onDark}"
7420
7463
  title="${ifDefined(this.title ? this.title : undefined)}"
@@ -7423,6 +7466,9 @@ class AuroButton extends AuroElement {
7423
7466
  variant="${ifDefined(this.variant ? this.variant : undefined)}"
7424
7467
  .value="${ifDefined(this.value ? this.value : undefined)}"
7425
7468
  @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
7469
+ href="${ifDefined(this.buttonHref || undefined)}"
7470
+ target="${ifDefined(this.buttonTarget || undefined)}"
7471
+ rel="${ifDefined(this.buttonRel || undefined)}"
7426
7472
  >
7427
7473
  ${ifDefined(this.loading ? html$1`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
7428
7474
 
@@ -7431,12 +7477,12 @@ class AuroButton extends AuroElement {
7431
7477
  <slot></slot>
7432
7478
  </span>
7433
7479
  </span>
7434
- </button>
7480
+ </${tag}>
7435
7481
  `;
7436
7482
  }
7437
7483
 
7438
7484
  /**
7439
- * Renders the layout of the button
7485
+ * Renders the layout of the button.
7440
7486
  * @returns {TemplateResult}
7441
7487
  * @private
7442
7488
  */
@@ -7691,6 +7737,20 @@ class AuroInput extends BaseInput {
7691
7737
  this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
7692
7738
  }
7693
7739
 
7740
+ static get properties() {
7741
+ return {
7742
+ ...super.properties,
7743
+
7744
+ /**
7745
+ * @type {boolean}
7746
+ */
7747
+ hideInputVisually: {
7748
+ type: Boolean,
7749
+ reflect: true,
7750
+ }
7751
+ };
7752
+ }
7753
+
7694
7754
  static get styles() {
7695
7755
  return [
7696
7756
  css`${classicStyleCss}`,
@@ -7725,8 +7785,13 @@ class AuroInput extends BaseInput {
7725
7785
  * @returns {object} - Returns classmap.
7726
7786
  */
7727
7787
  get commonInputClasses() {
7788
+ console.log(`hideInputVisually: ${JSON.stringify(this.hideInputVisually)}`);
7728
7789
  return {
7729
- 'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
7790
+ 'util_displayHiddenVisually': this.hideInputVisually !== undefined
7791
+ ? this.hideInputVisually
7792
+ // eslint-disable-next-line no-warning-comments
7793
+ // TODO: refactor this to use a less brittle/forced solution.
7794
+ : this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
7730
7795
  };
7731
7796
  }
7732
7797
 
@@ -7738,7 +7803,10 @@ class AuroInput extends BaseInput {
7738
7803
  get legacyInputClasses() {
7739
7804
  return {
7740
7805
  ...this.commonInputClasses,
7741
- 'util_displayHiddenVisually': !this.hasFocus && !this.value
7806
+ 'util_displayHiddenVisually':
7807
+ this.hideInputVisually !== undefined
7808
+ ? this.hideInputVisually
7809
+ : !this.hasFocus && !this.value
7742
7810
  };
7743
7811
  }
7744
7812
 
@@ -5834,22 +5834,17 @@ class BaseInput extends AuroElement$2 {
5834
5834
  * @returns {void}
5835
5835
  */
5836
5836
  getPlaceholder() {
5837
- const isFocused = this.inputElement === this.getActiveElement();
5837
+ this.inputElement === this.getActiveElement();
5838
5838
 
5839
5839
  // console.warn('isFocused', isFocused);
5840
5840
  // console.warn(this.inputElement);
5841
5841
  // console.warn(this.getActiveElement());
5842
5842
 
5843
- if (!isFocused) {
5844
- if (this.placeholder) {
5845
- this.placeholderStr = this.placeholder;
5846
- // return this.placeholder;
5847
- } else if (this.type === 'date') {
5848
- this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
5849
- // return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
5850
- }
5851
- } else {
5852
- this.placeholderStr = '';
5843
+ // if (!isFocused) {
5844
+ if (this.placeholder) {
5845
+ this.placeholderStr = this.placeholder;
5846
+ } else if (this.type === 'date') {
5847
+ this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
5853
5848
  }
5854
5849
 
5855
5850
  this.requestUpdate();
@@ -6836,7 +6831,6 @@ class AuroElement extends LitElement {
6836
6831
  * @private
6837
6832
  */
6838
6833
  wrapper: {
6839
- type: HTMLElement,
6840
6834
  attribute: false,
6841
6835
  reflect: false
6842
6836
  }
@@ -7145,7 +7139,7 @@ class AuroLoader extends LitElement {
7145
7139
 
7146
7140
  var loaderVersion = '5.0.0';
7147
7141
 
7148
- /* eslint-disable max-lines, curly */
7142
+ /* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
7149
7143
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
7150
7144
  // See LICENSE in the project root for license information.
7151
7145
 
@@ -7212,6 +7206,21 @@ class AuroButton extends AuroElement {
7212
7206
  * @private
7213
7207
  */
7214
7208
  this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
7209
+
7210
+ /**
7211
+ * @private
7212
+ */
7213
+ this.buttonHref = undefined;
7214
+
7215
+ /**
7216
+ * @private
7217
+ */
7218
+ this.buttonTarget = undefined;
7219
+
7220
+ /**
7221
+ * @private
7222
+ */
7223
+ this.buttonRel = undefined;
7215
7224
  }
7216
7225
 
7217
7226
  static get styles() {
@@ -7278,13 +7287,23 @@ class AuroButton extends AuroElement {
7278
7287
  },
7279
7288
 
7280
7289
  /**
7281
- * Populates `tabIndex` to define the focusable sequence in keyboard navigation.
7290
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
7282
7291
  */
7283
7292
  tIndex: {
7284
7293
  type: String,
7285
7294
  reflect: true
7286
7295
  },
7287
7296
 
7297
+ /**
7298
+ * Populates `tabindex` to define the focusable sequence in keyboard navigation.
7299
+ * Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
7300
+ * Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
7301
+ */
7302
+ tabindex: {
7303
+ type: String,
7304
+ reflect: false
7305
+ },
7306
+
7288
7307
  /**
7289
7308
  * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
7290
7309
  */
@@ -7317,6 +7336,27 @@ class AuroButton extends AuroElement {
7317
7336
  type: String,
7318
7337
  reflect: true
7319
7338
  },
7339
+
7340
+ /**
7341
+ * @private
7342
+ */
7343
+ buttonHref: {
7344
+ type: String,
7345
+ },
7346
+
7347
+ /**
7348
+ * @private
7349
+ */
7350
+ buttonTarget: {
7351
+ type: String,
7352
+ },
7353
+
7354
+ /**
7355
+ * @private
7356
+ */
7357
+ buttonRel: {
7358
+ type: String,
7359
+ },
7320
7360
  };
7321
7361
  }
7322
7362
 
@@ -7407,14 +7447,17 @@ class AuroButton extends AuroElement {
7407
7447
  loading: this.loading,
7408
7448
  };
7409
7449
 
7450
+ const tag = this.buttonHref ? literal`a` : literal`button`;
7451
+ const part = this.buttonHref ? 'link' : 'button';
7452
+
7410
7453
  return html$1`
7411
- <button
7412
- part="button"
7454
+ <${tag}
7455
+ part="${part}"
7413
7456
  aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
7414
7457
  aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
7415
- tabIndex="${ifDefined(this.tIndex)}"
7458
+ tabindex="${ifDefined(this.tIndex || this.tabindex)}"
7416
7459
  ?autofocus="${this.autofocus}"
7417
- class="${classMap(classes)}"
7460
+ class=${classMap(classes)}
7418
7461
  ?disabled="${this.disabled || this.loading}"
7419
7462
  ?onDark="${this.onDark}"
7420
7463
  title="${ifDefined(this.title ? this.title : undefined)}"
@@ -7423,6 +7466,9 @@ class AuroButton extends AuroElement {
7423
7466
  variant="${ifDefined(this.variant ? this.variant : undefined)}"
7424
7467
  .value="${ifDefined(this.value ? this.value : undefined)}"
7425
7468
  @click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
7469
+ href="${ifDefined(this.buttonHref || undefined)}"
7470
+ target="${ifDefined(this.buttonTarget || undefined)}"
7471
+ rel="${ifDefined(this.buttonRel || undefined)}"
7426
7472
  >
7427
7473
  ${ifDefined(this.loading ? html$1`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
7428
7474
 
@@ -7431,12 +7477,12 @@ class AuroButton extends AuroElement {
7431
7477
  <slot></slot>
7432
7478
  </span>
7433
7479
  </span>
7434
- </button>
7480
+ </${tag}>
7435
7481
  `;
7436
7482
  }
7437
7483
 
7438
7484
  /**
7439
- * Renders the layout of the button
7485
+ * Renders the layout of the button.
7440
7486
  * @returns {TemplateResult}
7441
7487
  * @private
7442
7488
  */
@@ -7691,6 +7737,20 @@ class AuroInput extends BaseInput {
7691
7737
  this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
7692
7738
  }
7693
7739
 
7740
+ static get properties() {
7741
+ return {
7742
+ ...super.properties,
7743
+
7744
+ /**
7745
+ * @type {boolean}
7746
+ */
7747
+ hideInputVisually: {
7748
+ type: Boolean,
7749
+ reflect: true,
7750
+ }
7751
+ };
7752
+ }
7753
+
7694
7754
  static get styles() {
7695
7755
  return [
7696
7756
  css`${classicStyleCss}`,
@@ -7725,8 +7785,13 @@ class AuroInput extends BaseInput {
7725
7785
  * @returns {object} - Returns classmap.
7726
7786
  */
7727
7787
  get commonInputClasses() {
7788
+ console.log(`hideInputVisually: ${JSON.stringify(this.hideInputVisually)}`);
7728
7789
  return {
7729
- 'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
7790
+ 'util_displayHiddenVisually': this.hideInputVisually !== undefined
7791
+ ? this.hideInputVisually
7792
+ // eslint-disable-next-line no-warning-comments
7793
+ // TODO: refactor this to use a less brittle/forced solution.
7794
+ : this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
7730
7795
  };
7731
7796
  }
7732
7797
 
@@ -7738,7 +7803,10 @@ class AuroInput extends BaseInput {
7738
7803
  get legacyInputClasses() {
7739
7804
  return {
7740
7805
  ...this.commonInputClasses,
7741
- 'util_displayHiddenVisually': !this.hasFocus && !this.value
7806
+ 'util_displayHiddenVisually':
7807
+ this.hideInputVisually !== undefined
7808
+ ? this.hideInputVisually
7809
+ : !this.hasFocus && !this.value
7742
7810
  };
7743
7811
  }
7744
7812
 
@@ -445,6 +445,7 @@ class AuroMenu extends AuroElement$1 {
445
445
  this.addEventListener('mousedown', this.handleMouseSelect);
446
446
  this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
447
447
  this.addEventListener('slotchange', this.handleSlotChange);
448
+ this.setTagAttribute("auro-menu");
448
449
  }
449
450
 
450
451
  disconnectedCallback() {
@@ -463,6 +464,17 @@ class AuroMenu extends AuroElement$1 {
463
464
  this.initializeMenu();
464
465
  }
465
466
 
467
+ /**
468
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
469
+ * @param {string} tagName - The tag name to set as an attribute.
470
+ * @private
471
+ */
472
+ setTagAttribute(tagName) {
473
+ if (this.tagName.toLowerCase() !== tagName) {
474
+ this.setAttribute(tagName, true);
475
+ }
476
+ }
477
+
466
478
  updated(changedProperties) {
467
479
  super.updated(changedProperties);
468
480
 
@@ -405,6 +405,7 @@ class AuroMenu extends AuroElement$1 {
405
405
  this.addEventListener('mousedown', this.handleMouseSelect);
406
406
  this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
407
407
  this.addEventListener('slotchange', this.handleSlotChange);
408
+ this.setTagAttribute("auro-menu");
408
409
  }
409
410
 
410
411
  disconnectedCallback() {
@@ -423,6 +424,17 @@ class AuroMenu extends AuroElement$1 {
423
424
  this.initializeMenu();
424
425
  }
425
426
 
427
+ /**
428
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
429
+ * @param {string} tagName - The tag name to set as an attribute.
430
+ * @private
431
+ */
432
+ setTagAttribute(tagName) {
433
+ if (this.tagName.toLowerCase() !== tagName) {
434
+ this.setAttribute(tagName, true);
435
+ }
436
+ }
437
+
426
438
  updated(changedProperties) {
427
439
  super.updated(changedProperties);
428
440
 
@@ -112,6 +112,12 @@ export class AuroMenu extends AuroElement {
112
112
  private handleSlotChange;
113
113
  firstUpdated(): void;
114
114
  loadingSlots: NodeListOf<Element>;
115
+ /**
116
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
117
+ * @param {string} tagName - The tag name to set as an attribute.
118
+ * @private
119
+ */
120
+ private setTagAttribute;
115
121
  updated(changedProperties: any): void;
116
122
  index: any;
117
123
  /**
@@ -425,6 +425,7 @@ class AuroMenu extends AuroElement$1 {
425
425
  this.addEventListener('mousedown', this.handleMouseSelect);
426
426
  this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
427
427
  this.addEventListener('slotchange', this.handleSlotChange);
428
+ this.setTagAttribute("auro-menu");
428
429
  }
429
430
 
430
431
  disconnectedCallback() {
@@ -443,6 +444,17 @@ class AuroMenu extends AuroElement$1 {
443
444
  this.initializeMenu();
444
445
  }
445
446
 
447
+ /**
448
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
449
+ * @param {string} tagName - The tag name to set as an attribute.
450
+ * @private
451
+ */
452
+ setTagAttribute(tagName) {
453
+ if (this.tagName.toLowerCase() !== tagName) {
454
+ this.setAttribute(tagName, true);
455
+ }
456
+ }
457
+
446
458
  updated(changedProperties) {
447
459
  super.updated(changedProperties);
448
460
 
@@ -384,6 +384,7 @@ class AuroMenu extends AuroElement$1 {
384
384
  this.addEventListener('mousedown', this.handleMouseSelect);
385
385
  this.addEventListener('auroMenuOption-mouseover', this.handleOptionHover);
386
386
  this.addEventListener('slotchange', this.handleSlotChange);
387
+ this.setTagAttribute("auro-menu");
387
388
  }
388
389
 
389
390
  disconnectedCallback() {
@@ -402,6 +403,17 @@ class AuroMenu extends AuroElement$1 {
402
403
  this.initializeMenu();
403
404
  }
404
405
 
406
+ /**
407
+ * Sets an attribute that matches the default tag name if the tag name is not the default.
408
+ * @param {string} tagName - The tag name to set as an attribute.
409
+ * @private
410
+ */
411
+ setTagAttribute(tagName) {
412
+ if (this.tagName.toLowerCase() !== tagName) {
413
+ this.setAttribute(tagName, true);
414
+ }
415
+ }
416
+
405
417
  updated(changedProperties) {
406
418
  super.updated(changedProperties);
407
419