You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
6.4 KiB

2 years ago
{"version":3,"sources":["../sources/util.ts"],"names":["isElement","node","nodeType","ELEMENT_NODE","isHTMLTableCaptionElement","isHTMLInputElement","isHTMLOptGroupElement","isHTMLSelectElement","isHTMLTableElement","isHTMLTextAreaElement","safeWindow","ownerDocument","defaultView","TypeError","isHTMLFieldSetElement","isHTMLLegendElement","isHTMLSlotElement","isSVGElement","ownerSVGElement","undefined","isSVGSVGElement","isSVGTitleElement","queryIdRefs","attributeName","hasAttribute","ids","getAttribute","split","root","getRootNode","map","id","getElementById","filter","element","hasAnyConcreteRoles","roles","indexOf"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;AAGO,SAASA,SAAT,CAAmBC,IAAnB,EAAuD;AAC7D,SAAOA,IAAI,KAAK,IAAT,IAAiBA,IAAI,CAACC,QAAL,KAAkBD,IAAI,CAACE,YAA/C;AACA;;AAEM,SAASC,yBAAT,CACNH,IADM,EAE4B;AAClC,SAAOD,SAAS,CAACC,IAAD,CAAT,IAAmB,2BAAaA,IAAb,MAAuB,SAAjD;AACA;;AAEM,SAASI,kBAAT,CACNJ,IADM,EAEqB;AAC3B,SAAOD,SAAS,CAACC,IAAD,CAAT,IAAmB,2BAAaA,IAAb,MAAuB,OAAjD;AACA;;AAEM,SAASK,qBAAT,CACNL,IADM,EAEwB;AAC9B,SAAOD,SAAS,CAACC,IAAD,CAAT,IAAmB,2BAAaA,IAAb,MAAuB,UAAjD;AACA;;AAEM,SAASM,mBAAT,CACNN,IADM,EAEsB;AAC5B,SAAOD,SAAS,CAACC,IAAD,CAAT,IAAmB,2BAAaA,IAAb,MAAuB,QAAjD;AACA;;AAEM,SAASO,kBAAT,CACNP,IADM,EAEqB;AAC3B,SAAOD,SAAS,CAACC,IAAD,CAAT,IAAmB,2BAAaA,IAAb,MAAuB,OAAjD;AACA;;AAEM,SAASQ,qBAAT,CACNR,IADM,EAEw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A,IAAI,CAACuB,YAAL,CAAkBD,aAAlB,CAAvB,EAAyD;AACxD;AACA,QAAME,GAAG,GAAGxB,IAAI,CAACyB,YAAL,CAAkBH,aAAlB,EAAkCI,KAAlC,CAAwC,GAAxC,CAAZ,CAFwD,CAIxD;;AACA,QAAMC,IAAI,GAAG3B,IAAI,CAAC4B,WAAL,GACT5B,IAAI,CAAC4B,WAAL,EADS,GAEV5B,IAAI,CAACU,aAFR;AAIA,WAAOc,GAAG,CACRK,GADK,CACD,UAACC,EAAD;AAAA,aAAQH,IAAI,CAACI,cAAL,CAAoBD,EAApB,CAAR;AAAA,KADC,EAELE,MAFK,CAGL,UAACC,OAAD;AAAA,aAAiDA,OAAO,KAAK,IAA7D;AAAA,KAHK,CAIL;AAJK,KAAP;AAMA;;AAED,SAAO,EAAP;AACA;;AAEM,SAASC,mBAAT,CACNlC,IADM,EAENmC,KAFM,EAGY;AAClB,MAAIpC,SAAS,CAACC,IAAD,CAAb,EAAqB;AACpB,WAAOmC,KAAK,CAACC,OAAN,CAAc,sBAAQpC,IAAR,CAAd,MAAiC,CAAC,CAAzC;AACA;;AACD,SAAO,KAAP;AACA","sourcesContent":["export { getLocalName } from \"./getRole\";\nimport getRole, { getLocalName } from \"./getRole\";\n\nexport function isElement(node: Node | null): node is Element {\n\treturn node !== null && node.nodeType === node.ELEMENT_NODE;\n}\n\nexport function isHTMLTableCaptionElement(\n\tnode: Node | null\n): node is HTMLTableCaptionElement {\n\treturn isElement(node) && getLocalName(node) === \"caption\";\n}\n\nexport function isHTMLInputElement(\n\tnode: Node | null\n): node is HTMLInputElement {\n\treturn isElement(node) && getLocalName(node) === \"input\";\n}\n\nexport function isHTMLOptGroupElement(\n\tnode: Node | null\n): node is HTMLOptGroupElement {\n\treturn isElement(node) && getLocalName(node) === \"optgroup\";\n}\n\nexport function isHTMLSelectElement(\n\tnode: Node | null\n): node is HTMLSelectElement {\n\treturn isElement(node) && getLocalName(node) === \"select\";\n}\n\nexport function isHTMLTableElement(\n\tnode: Node | null\n): node is HTMLTableElement {\n\treturn isElement(node) && getLocalName(node) === \"table\";\n}\