@nexdom/uimed-vue 2.0.0-beta.29 → 2.0.0-beta.30
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/components.js +22 -1
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1200,6 +1200,25 @@ function useAutocompleteRules(options) {
|
|
|
1200
1200
|
return rules;
|
|
1201
1201
|
});
|
|
1202
1202
|
}
|
|
1203
|
+
/**
|
|
1204
|
+
* Menu props that keep the combobox semantics only on the field's `<input>`.
|
|
1205
|
+
*
|
|
1206
|
+
* The field's container gets `role="combobox"` from the field, which passes its
|
|
1207
|
+
* role to both the container and the input, and the menu's ARIA attributes,
|
|
1208
|
+
* since it's the menu's activator. Without these props, the container is
|
|
1209
|
+
* exposed as an unnamed combobox wrapping the input. The menu removes from its
|
|
1210
|
+
* activator the attributes set to `undefined`, role included, and the field
|
|
1211
|
+
* never sets that role again, since its value doesn't change. The input keeps
|
|
1212
|
+
* its role, label, `aria-expanded` and `aria-controls`. This only happens in
|
|
1213
|
+
* the browser: server-rendered HTML still has the role on the container.
|
|
1214
|
+
*/
|
|
1215
|
+
const autocompleteFieldMenuProps = { activatorProps: {
|
|
1216
|
+
role: void 0,
|
|
1217
|
+
"aria-haspopup": void 0,
|
|
1218
|
+
"aria-expanded": void 0,
|
|
1219
|
+
"aria-controls": void 0,
|
|
1220
|
+
"aria-owns": void 0
|
|
1221
|
+
} };
|
|
1203
1222
|
//#endregion
|
|
1204
1223
|
//#region src/components/inputs/autocomplete-field/autocomplete-field.vue
|
|
1205
1224
|
var autocomplete_field_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1302,6 +1321,7 @@ var autocomplete_field_default = /* @__PURE__ */ defineComponent({
|
|
|
1302
1321
|
multiple: isMultiple.value,
|
|
1303
1322
|
"item-title": "label",
|
|
1304
1323
|
rules: unref(rules),
|
|
1324
|
+
"menu-props": unref(autocompleteFieldMenuProps),
|
|
1305
1325
|
chips: ""
|
|
1306
1326
|
}, {
|
|
1307
1327
|
loader: withCtx((loader) => [createVNode(field_loader_default, normalizeProps(guardReactiveProps(loader)), null, 16)]),
|
|
@@ -1320,7 +1340,8 @@ var autocomplete_field_default = /* @__PURE__ */ defineComponent({
|
|
|
1320
1340
|
"hint",
|
|
1321
1341
|
"clearable",
|
|
1322
1342
|
"multiple",
|
|
1323
|
-
"rules"
|
|
1343
|
+
"rules",
|
|
1344
|
+
"menu-props"
|
|
1324
1345
|
]);
|
|
1325
1346
|
};
|
|
1326
1347
|
}
|