@immense/vue-pom-generator 1.0.94 → 1.0.95

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.
package/dist/index.mjs CHANGED
@@ -7959,7 +7959,7 @@ function getStaticAttributeContent$1(element, name) {
7959
7959
  });
7960
7960
  return attribute?.value?.content?.trim() || null;
7961
7961
  }
7962
- function mapExplicitAriaRole(role) {
7962
+ function mapExplicitAriaRole(role, elementTag) {
7963
7963
  switch (role.toLowerCase()) {
7964
7964
  case "button":
7965
7965
  case "checkbox":
@@ -7971,6 +7971,7 @@ function mapExplicitAriaRole(role) {
7971
7971
  case "radiogroup":
7972
7972
  return "radio";
7973
7973
  case "combobox":
7974
+ return elementTag === "input" || elementTag === "uinput" ? "input" : "select";
7974
7975
  case "listbox":
7975
7976
  return "select";
7976
7977
  case "searchbox":
@@ -7992,11 +7993,11 @@ function hasAttribute(element, name) {
7992
7993
  });
7993
7994
  }
7994
7995
  function getElementControlRole(element) {
7996
+ const tag = element.tag.toLowerCase();
7995
7997
  const explicitRole = getStaticAttributeContent$1(element, "role");
7996
7998
  if (explicitRole) {
7997
- return mapExplicitAriaRole(explicitRole);
7999
+ return mapExplicitAriaRole(explicitRole, tag);
7998
8000
  }
7999
- const tag = element.tag.toLowerCase();
8000
8001
  const type = (getStaticAttributeContent$1(element, "type") || "").toLowerCase();
8001
8002
  if (tag === "input" || tag === "uinput") {
8002
8003
  if (type === "radio") {