Skip to content

Commit

Permalink
perf: update min js files from build
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjones243 committed Dec 17, 2024
1 parent 0caba7e commit 414d19e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions components/combobox/demo/api.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -8386,9 +8386,9 @@ class AuroMenuOption extends r$6 {
const versioning = new AuroDependencyVersioning$2();
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);

this.selected = false;
this.nocheckmark = false;
this.disabled = false;
this.selected = false;

/**
* @private
Expand Down Expand Up @@ -8451,6 +8451,7 @@ class AuroMenuOption extends r$6 {
this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');

this.setAttribute('role', 'option');
this.setAttribute('aria-selected', 'false');

this.addEventListener('mouseover', () => {
this.dispatchEvent(new CustomEvent('auroMenuOption-mouseover', {
Expand All @@ -8462,6 +8463,12 @@ class AuroMenuOption extends r$6 {
});
}

// observer for selected property changes
updated(changedProperties) {
if (changedProperties.has('selected')) {
this.setAttribute('aria-selected', this.selected.toString());
}
}

/**
* Generates an HTML element containing an SVG icon based on the provided `svgContent`.
Expand Down Expand Up @@ -8663,7 +8670,6 @@ class AuroMenu extends r$6 {
this.items.forEach((item) => {
item.classList.remove('active');
item.removeAttribute('selected');
item.removeAttribute('aria-selected');
});
}
}
Expand Down
10 changes: 8 additions & 2 deletions components/combobox/demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -8290,9 +8290,9 @@ class AuroMenuOption extends r$6 {
const versioning = new AuroDependencyVersioning$2();
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);

this.selected = false;
this.nocheckmark = false;
this.disabled = false;
this.selected = false;

/**
* @private
Expand Down Expand Up @@ -8355,6 +8355,7 @@ class AuroMenuOption extends r$6 {
this.runtimeUtils.handleComponentTagRename(this, 'auro-menuoption');

this.setAttribute('role', 'option');
this.setAttribute('aria-selected', 'false');

this.addEventListener('mouseover', () => {
this.dispatchEvent(new CustomEvent('auroMenuOption-mouseover', {
Expand All @@ -8366,6 +8367,12 @@ class AuroMenuOption extends r$6 {
});
}

// observer for selected property changes
updated(changedProperties) {
if (changedProperties.has('selected')) {
this.setAttribute('aria-selected', this.selected.toString());
}
}

/**
* Generates an HTML element containing an SVG icon based on the provided `svgContent`.
Expand Down Expand Up @@ -8567,7 +8574,6 @@ class AuroMenu extends r$6 {
this.items.forEach((item) => {
item.classList.remove('active');
item.removeAttribute('selected');
item.removeAttribute('aria-selected');
});
}
}
Expand Down

0 comments on commit 414d19e

Please sign in to comment.