UNPKG

@sandlada/mdc

Version:

@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.

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