UNPKG

dap-design-system

Version:

Official design system for the DÁP (dap.gov.hu)

21 lines (20 loc) 640 B
import { desc as u } from "./base.js"; /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ function f(e) { return (i, l) => { const { slot: r, selector: s } = e != null ? e : {}, m = "slot" + (r ? `[name=${r}]` : ":not([name])"); return u(i, l, { get() { var o, c; const t = (o = this.renderRoot) == null ? void 0 : o.querySelector(m), n = (c = t == null ? void 0 : t.assignedElements(e)) != null ? c : []; return s === void 0 ? n : n.filter((a) => a.matches(s)); } }); }; } export { f as queryAssignedElements }; //# sourceMappingURL=query-assigned-elements.js.map