@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
20 lines (19 loc) • 702 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { resolveTargets } from "../../utils/aria-labelledby";
import { Log, watchValidator } from "../utils";
export const validateAriaLabelledby = (component, host, internals, value) => {
watchValidator(component, '_ariaLabelledby', (value) => typeof value === 'string' || typeof value === 'undefined', new Set(['string']), value);
const elements = resolveTargets(host, value);
if (internals) {
try {
internals.ariaLabelledByElements = elements;
}
catch (_a) {
}
Log.debug(['WebComponent internals', internals]);
}
return elements;
};
//# sourceMappingURL=aria-labelledby.js.map