@esri/calcite-components 5.1.0-next.43 → 5.1.0-next.44
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/cdn/{JFCOTF4X.js → 2E4FIHBE.js} +1 -1
- package/dist/cdn/{5RPSB6JK.js → 2NADES6F.js} +1 -1
- package/dist/cdn/{YVDXSNF7.js → 2SPYWGFB.js} +1 -1
- package/dist/cdn/{PZTXPQU2.js → 2W5ZYYC4.js} +1 -1
- package/dist/cdn/{VHPBKL2E.js → 3IEKKHVM.js} +1 -1
- package/dist/cdn/{3SITVGTE.js → 3R2X2KI2.js} +1 -1
- package/dist/cdn/{Q4P6Z6E5.js → 3XG6L35T.js} +1 -1
- package/dist/cdn/{7CO2P5IJ.js → 43V6LMLL.js} +1 -1
- package/dist/cdn/{3VTZNCUO.js → 45QCU53I.js} +1 -1
- package/dist/cdn/{GLWYDOXQ.js → 4H5IAVAV.js} +1 -1
- package/dist/cdn/{Z6W2R7TV.js → 4PO6VOS7.js} +1 -1
- package/dist/cdn/{X7IZ6MVC.js → 4UIBU3VM.js} +1 -1
- package/dist/cdn/{SCCN3HH6.js → 4XK4RC62.js} +1 -1
- package/dist/cdn/{L5KBXV6Y.js → 4XORBVCM.js} +1 -1
- package/dist/cdn/{BQNPOOMS.js → 4YEALEL7.js} +1 -1
- package/dist/cdn/{4NZGIFOM.js → 52JQBTSB.js} +1 -1
- package/dist/cdn/{6S5EWY5E.js → 556EVNDN.js} +1 -1
- package/dist/cdn/{6BGGPXMX.js → 5MEXEC6B.js} +1 -1
- package/dist/cdn/5RPMO7ZN.js +4 -0
- package/dist/cdn/{NEDMRCOF.js → 5UHBWXOQ.js} +1 -1
- package/dist/cdn/{RMQMFLJJ.js → 66SG5IJS.js} +1 -1
- package/dist/cdn/{LDY5MXXT.js → 6LWZDZB6.js} +1 -1
- package/dist/cdn/{HJBXD2RY.js → 6SR5PVW3.js} +1 -1
- package/dist/cdn/{ZMI2A2ER.js → 6UMQ4AJ3.js} +1 -1
- package/dist/cdn/{B2LLJTRB.js → 6VGG3446.js} +1 -1
- package/dist/cdn/{L43RMTAP.js → 6WASQCCE.js} +1 -1
- package/dist/cdn/{LYY5PKKO.js → 77CKEYVD.js} +1 -1
- package/dist/cdn/{5BUR7I6A.js → 7BFBAJI4.js} +1 -1
- package/dist/cdn/{XQOIEFK4.js → 7CQSY4M5.js} +1 -1
- package/dist/cdn/{D2P3RJ55.js → 7DRAYNE2.js} +1 -1
- package/dist/cdn/{K3G7H6HP.js → 7J6ZTRK2.js} +1 -1
- package/dist/cdn/{NN5QIMEH.js → 7KCPAUW3.js} +1 -1
- package/dist/cdn/{Z72HN4IE.js → 7ODSLEQC.js} +1 -1
- package/dist/cdn/{PYCAWNDZ.js → 7Q33SP3T.js} +1 -1
- package/dist/cdn/{GEXBHRBO.js → 7R65VUEZ.js} +1 -1
- package/dist/cdn/{LPKNS5AG.js → AADF3GZ4.js} +1 -1
- package/dist/cdn/{Z3LUJ6AB.js → AEESFQRC.js} +1 -1
- package/dist/cdn/{555SDRUZ.js → ANEHX5FZ.js} +1 -1
- package/dist/cdn/{VOLITLZQ.js → ANWCPQKQ.js} +1 -1
- package/dist/cdn/{TN4GX3CY.js → AO3U7TKD.js} +1 -1
- package/dist/cdn/{J6E2YQ2Y.js → AS2FYX5B.js} +1 -1
- package/dist/cdn/{4NYITE75.js → AYPUZCRQ.js} +1 -1
- package/dist/cdn/{TMTITIYU.js → BDQGRKAD.js} +1 -1
- package/dist/cdn/{ATBTFTHL.js → BJY5DSTS.js} +1 -1
- package/dist/cdn/{YU5BN3HW.js → BUPSOUMI.js} +1 -1
- package/dist/cdn/{TM5CULPA.js → BX2G7IU3.js} +1 -1
- package/dist/cdn/{ZFQIX6UA.js → CCI2KCT7.js} +1 -1
- package/dist/cdn/{5XSD4F2U.js → CNTMDW7V.js} +1 -1
- package/dist/cdn/{VNVUBN26.js → CQJH2ZR6.js} +1 -1
- package/dist/cdn/{EKDWQZ2F.js → CSKXBS5O.js} +1 -1
- package/dist/cdn/{UUEBQ77O.js → D23USH25.js} +1 -1
- package/dist/cdn/{TKZ7DC2I.js → D55T7U4Q.js} +1 -1
- package/dist/cdn/{5XHCDQFZ.js → D5VIOHLS.js} +1 -1
- package/dist/cdn/{JTFUSPQO.js → DKZJMKUK.js} +1 -1
- package/dist/cdn/{2RICINDY.js → DWDNTGTX.js} +1 -1
- package/dist/cdn/{KFED2RWY.js → E62KCKDK.js} +1 -1
- package/dist/cdn/{7VJGRTI2.js → EITOCIZW.js} +1 -1
- package/dist/cdn/{KAPFLKLZ.js → F4PC2OXL.js} +1 -1
- package/dist/cdn/{PG3YI3LJ.js → F6BNQTW5.js} +1 -1
- package/dist/cdn/{R7TTHQY6.js → F7SGGMJS.js} +1 -1
- package/dist/cdn/{PQJAXQQE.js → FBH4WDIE.js} +1 -1
- package/dist/cdn/{HWI7HSYY.js → FN4BRXTG.js} +1 -1
- package/dist/cdn/{WQPHWUXI.js → GDQHBDMH.js} +1 -1
- package/dist/cdn/{AIMJAYF5.js → GJEVB3L7.js} +1 -1
- package/dist/cdn/{JNABQYBK.js → GK26A6EO.js} +1 -1
- package/dist/cdn/{VYNP23UO.js → GMNC4R2E.js} +1 -1
- package/dist/cdn/{MDHWIWT5.js → H76JSRAO.js} +1 -1
- package/dist/cdn/{SFTGKQSB.js → HC64PJ5A.js} +1 -1
- package/dist/cdn/{7A2PGF7W.js → I23VPYZT.js} +1 -1
- package/dist/cdn/{ZEEKQWVY.js → I5V2R6BN.js} +1 -1
- package/dist/cdn/{LX4PMP3X.js → IE5XKTTF.js} +1 -1
- package/dist/cdn/{V2GF3JT4.js → IPNTBVG7.js} +1 -1
- package/dist/cdn/{ZV5MIE6S.js → IRJ2OHZR.js} +1 -1
- package/dist/cdn/{3HGJACZB.js → IYI7TRCK.js} +1 -1
- package/dist/cdn/{VHR5TDB3.js → J5OBW66S.js} +1 -1
- package/dist/cdn/{DICEHD76.js → J6MTJKWT.js} +1 -1
- package/dist/cdn/{24GPNKV7.js → JHS4XZ6R.js} +1 -1
- package/dist/cdn/{KUPS36J3.js → JPPAO6PE.js} +1 -1
- package/dist/cdn/{DPOTI7IX.js → JYDQMBDS.js} +1 -1
- package/dist/cdn/{7L5PN44P.js → KKYUSOAK.js} +1 -1
- package/dist/cdn/{XBC2NZ37.js → KOZKT4IM.js} +1 -1
- package/dist/cdn/{VKKNNVSC.js → KSXRKOXS.js} +1 -1
- package/dist/cdn/{GP7XSV5A.js → KU5E5MLT.js} +1 -1
- package/dist/cdn/{A6MVMCXA.js → LUPVJX5T.js} +1 -1
- package/dist/cdn/{O2H6HNOD.js → LZMB6G3Q.js} +1 -1
- package/dist/cdn/{A45SZDQV.js → M4R4MUEE.js} +1 -1
- package/dist/cdn/{IRRSSLTA.js → M4VUOJ7W.js} +1 -1
- package/dist/cdn/{HBJF6FOJ.js → MDLN5YTF.js} +1 -1
- package/dist/cdn/{GK4OCOP2.js → MKXLCJ4Q.js} +1 -1
- package/dist/cdn/{L2S4PCK6.js → MNCOI6AY.js} +1 -1
- package/dist/cdn/{3UY2ASYF.js → MRHORN25.js} +1 -1
- package/dist/cdn/{O5QY4PM5.js → MWO2EHEM.js} +1 -1
- package/dist/cdn/{UPPM5CEL.js → N6M4YH3W.js} +1 -1
- package/dist/cdn/{A6VHKAIA.js → NL6KYBDD.js} +1 -1
- package/dist/cdn/{5SLE5OTV.js → NLANVAL6.js} +1 -1
- package/dist/cdn/{7S5HZRYB.js → NXO3ANCO.js} +1 -1
- package/dist/cdn/{RMBCP4P6.js → OO4TPFER.js} +1 -1
- package/dist/cdn/{MC7VIWBS.js → P2OG22JG.js} +1 -1
- package/dist/cdn/{WDH6SQXQ.js → P2UT4MU3.js} +1 -1
- package/dist/cdn/{JAIZ2T5E.js → P3UMTGII.js} +1 -1
- package/dist/cdn/{B5BJEF6W.js → P77QKA4Y.js} +1 -1
- package/dist/cdn/{DNOXMQDS.js → PFIN3NUQ.js} +1 -1
- package/dist/cdn/{BYKYE7CW.js → PROHWX4S.js} +1 -1
- package/dist/cdn/{JMN7KYK5.js → PUEIK6ZR.js} +1 -1
- package/dist/cdn/{KYPH442R.js → Q6YZEHLR.js} +1 -1
- package/dist/cdn/{ZXRGCNES.js → QXMZT7DC.js} +1 -1
- package/dist/cdn/{GQGPEPRZ.js → QXZMZL54.js} +1 -1
- package/dist/cdn/{RVK7AGJY.js → R47PYSQL.js} +1 -1
- package/dist/cdn/{INLGIRKT.js → R7JNWZLX.js} +1 -1
- package/dist/cdn/{ZNY5I77U.js → RVOYZ2QR.js} +1 -1
- package/dist/cdn/{J35AD3PZ.js → RVREWDBC.js} +1 -1
- package/dist/cdn/{DKXGE3CW.js → RZGN4APS.js} +1 -1
- package/dist/cdn/{QHGI7X2A.js → SAPSSPEU.js} +1 -1
- package/dist/cdn/{ZYUBA3AR.js → SOT7JNUV.js} +1 -1
- package/dist/cdn/{WN6ABOQ2.js → SOVWIBBH.js} +1 -1
- package/dist/cdn/{R2MDKHXD.js → T3AM6WWD.js} +1 -1
- package/dist/cdn/{64ZTPB46.js → TDKLR2ZM.js} +1 -1
- package/dist/cdn/{WKISVZXP.js → TUX3JZDW.js} +1 -1
- package/dist/cdn/{7MX6K7I6.js → U3XNFZ7Y.js} +1 -1
- package/dist/cdn/{VKDMNBGB.js → U6XEQI6Z.js} +1 -1
- package/dist/cdn/{QC6TIX3T.js → U7S6R7KB.js} +1 -1
- package/dist/cdn/{XXUEJ7P4.js → UIJOA2G3.js} +1 -1
- package/dist/cdn/{LFXHGOMV.js → URISNP45.js} +1 -1
- package/dist/cdn/{HAOWQAZA.js → VK7DDCJI.js} +1 -1
- package/dist/cdn/{MPQHQY2O.js → VKR7FKAQ.js} +1 -1
- package/dist/cdn/{AP2ELCOL.js → VMLCAC4B.js} +1 -1
- package/dist/cdn/{WZFVGOB6.js → VTSVAJGL.js} +1 -1
- package/dist/cdn/{AVNNKHNX.js → W27FKWM6.js} +1 -1
- package/dist/cdn/{LMBRHECU.js → W55WURJZ.js} +1 -1
- package/dist/cdn/{2BB53E36.js → WMOURVJF.js} +1 -1
- package/dist/cdn/{SLPX32KY.js → WWHA4Z5P.js} +1 -1
- package/dist/cdn/{QJGDW4A3.js → XJVYBIHK.js} +1 -1
- package/dist/cdn/{U36XLIJO.js → XQIK4HBW.js} +1 -1
- package/dist/cdn/{YGWAEV4M.js → XS5BAKSN.js} +1 -1
- package/dist/cdn/{VJM5IWD3.js → XW776J74.js} +1 -1
- package/dist/cdn/{H3ZT7OKY.js → Y72OQ5WN.js} +1 -1
- package/dist/cdn/{WXL4CDTV.js → YDCWCJUH.js} +1 -1
- package/dist/cdn/{IQCRJABI.js → YJHGC4YC.js} +1 -1
- package/dist/cdn/{DCG527KT.js → YLDNLCEQ.js} +1 -1
- package/dist/cdn/{VAZMO2Z7.js → YZXV5WFJ.js} +1 -1
- package/dist/cdn/{CQEZT7CQ.js → ZPU3AGU5.js} +1 -1
- package/dist/cdn/{DMB3J5AA.js → ZTW5YOZY.js} +1 -1
- package/dist/cdn/{IKKIGQHK.js → ZY4GFPUN.js} +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.fr.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useFocusTrap.js +4 -4
- package/dist/components/calcite-card/customElement.d.ts +1 -1
- package/dist/components/calcite-card-group/customElement.d.ts +1 -1
- package/dist/components/calcite-list/customElement.js +4 -4
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/translations.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/cdn/SVKOELUR.js +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/calcite-components",
|
|
3
|
-
"version": "5.1.0-next.
|
|
3
|
+
"version": "5.1.0-next.44",
|
|
4
4
|
"description": "Web Components for Esri's Calcite Design System.",
|
|
5
5
|
"homepage": "https://developers.arcgis.com/calcite-design-system/",
|
|
6
6
|
"repository": {
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"dist/docs/vscode.html-custom-data.json"
|
|
109
109
|
],
|
|
110
110
|
"web-types": "dist/docs/web-types.json",
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "6817f57c2ceb9fa31a3f3899464452de94553e45"
|
|
112
112
|
}
|
package/dist/cdn/SVKOELUR.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{b as fe}from"./SLPX32KY.js";import{a as de,l as ve}from"./QHGI7X2A.js";import{Q as le}from"./WDH6SQXQ.js";var pe=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],$=pe.join(","),he=typeof Element>"u",G=he?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,J=!he&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r?.ownerDocument},Q=function(e,t){var a;t===void 0&&(t=!0);var u=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"inert"),c=u===""||u==="true",n=c||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Q(e.parentNode));return n},Ce=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},ye=function(e,t,a){if(Q(e))return[];var u=Array.prototype.slice.apply(e.querySelectorAll($));return t&&G.call(e,$)&&u.unshift(e),u=u.filter(a),u},ee=function(e,t,a){for(var u=[],c=Array.from(e);c.length;){var n=c.shift();if(!Q(n,!1))if(n.tagName==="SLOT"){var f=n.assignedElements(),l=f.length?f:n.children,p=ee(l,!0,a);a.flatten?u.push.apply(u,p):u.push({scopeParent:n,candidates:p})}else{var S=G.call(n,$);S&&a.filter(n)&&(t||!e.includes(n))&&u.push(n);var w=n.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(n),P=!Q(w,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(n));if(w&&P){var A=ee(w===!0?n.children:w.children,!0,a);a.flatten?u.push.apply(u,A):u.push({scopeParent:n,candidates:A})}else c.unshift.apply(c,n.children)}}return u},me=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},L=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Ce(e))&&!me(e)?0:e.tabIndex},je=function(e,t){var a=L(e);return a<0&&t&&!me(e)?0:a},xe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ge=function(e){return e.tagName==="INPUT"},Le=function(e){return ge(e)&&e.type==="hidden"},Be=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},_e=function(e,t){for(var a=0;a<e.length;a++)if(e[a].checked&&e[a].form===t)return e[a]},Ge=function(e){if(!e.name)return!0;var t=e.form||J(e),a=function(f){return t.querySelectorAll('input[type="radio"][name="'+f+'"]')},u;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")u=a(window.CSS.escape(e.name));else try{u=a(e.name)}catch(n){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",n.message),!1}var c=_e(u,e.form);return!c||c===e},Ke=function(e){return ge(e)&&e.type==="radio"},Me=function(e){return Ke(e)&&!Ge(e)},Ve=function(e){var t,a=e&&J(e),u=(t=a)===null||t===void 0?void 0:t.host,c=!1;if(a&&a!==e){var n,f,l;for(c=!!((n=u)!==null&&n!==void 0&&(f=n.ownerDocument)!==null&&f!==void 0&&f.contains(u)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!c&&u;){var p,S,w;a=J(u),u=(p=a)===null||p===void 0?void 0:p.host,c=!!((S=u)!==null&&S!==void 0&&(w=S.ownerDocument)!==null&&w!==void 0&&w.contains(u))}}return c},be=function(e){var t=e.getBoundingClientRect(),a=t.width,u=t.height;return a===0&&u===0},qe=function(e,t){var a=t.displayCheck,u=t.getShadowRoot;if(a==="full-native"&&"checkVisibility"in e){var c=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!c}if(getComputedStyle(e).visibility==="hidden")return!0;var n=G.call(e,"details>summary:first-of-type"),f=n?e.parentElement:e;if(G.call(f,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof u=="function"){for(var l=e;e;){var p=e.parentElement,S=J(e);if(p&&!p.shadowRoot&&u(p)===!0)return be(e);e.assignedSlot?e=e.assignedSlot:!p&&S!==e.ownerDocument?e=S.host:e=p}e=l}if(Ve(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return be(e);return!1},Ue=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a<t.children.length;a++){var u=t.children.item(a);if(u.tagName==="LEGEND")return G.call(t,"fieldset[disabled] *")?!0:!u.contains(e)}return!0}t=t.parentElement}return!1},te=function(e,t){return!(t.disabled||Le(t)||qe(t,e)||Be(t)||Ue(t))},ce=function(e,t){return!(Me(t)||L(t)<0||!te(e,t))},We=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},we=function(e){var t=[],a=[];return e.forEach(function(u,c){var n=!!u.scopeParent,f=n?u.scopeParent:u,l=je(f,n),p=n?we(u.candidates):f;l===0?n?t.push.apply(t,p):t.push(f):a.push({documentOrder:c,tabIndex:l,item:u,isScope:n,content:p})}),a.sort(xe).reduce(function(u,c){return c.isScope?u.push.apply(u,c.content):u.push(c.content),u},[]).concat(t)},Te=function(e,t){t=t||{};var a;return t.getShadowRoot?a=ee([e],t.includeContainer,{filter:ce.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:We}):a=ye(e,t.includeContainer,ce.bind(null,t)),we(a)},Se=function(e,t){t=t||{};var a;return t.getShadowRoot?a=ee([e],t.includeContainer,{filter:te.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=ye(e,t.includeContainer,te.bind(null,t)),a},K=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return G.call(e,$)===!1?!1:ce(t,e)},Ye=pe.concat("iframe:not([inert]):not([inert] *)").join(","),re=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return G.call(e,Ye)===!1?!1:te(t,e)};function se(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,a=Array(e);t<e;t++)a[t]=r[t];return a}function He(r){if(Array.isArray(r))return se(r)}function Fe(r,e,t,a,u,c,n){try{var f=r[c](n),l=f.value}catch(p){return void t(p)}f.done?e(l):Promise.resolve(l).then(a,u)}function Ee(r){return function(){var e=this,t=arguments;return new Promise(function(a,u){var c=r.apply(e,t);function n(l){Fe(c,a,u,n,f,"next",l)}function f(l){Fe(c,a,u,n,f,"throw",l)}n(void 0)})}}function Ne(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=Oe(r))||e){t&&(r=t);var a=0,u=function(){};return{s:u,n:function(){return a>=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function(l){throw l},f:u}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,n=!0,f=!1;return{s:function(){t=t.call(r)},n:function(){var l=t.next();return n=l.done,l},e:function(l){f=!0,c=l},f:function(){try{n||t.return==null||t.return()}finally{if(f)throw c}}}}function Ze(r,e,t){return(e=Qe(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function ze(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Xe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ke(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),t.push.apply(t,a)}return t}function Ae(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ke(Object(t),!0).forEach(function(a){Ze(r,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ke(Object(t)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(t,a))})}return r}function U(){var r,e,t=typeof Symbol=="function"?Symbol:{},a=t.iterator||"@@iterator",u=t.toStringTag||"@@toStringTag";function c(A,R,Y,H){var M=R&&R.prototype instanceof f?R:f,V=Object.create(M.prototype);return O(V,"_invoke",(function(ie,Z,z){var I,T,N,B=0,X=z||[],C=!1,E={p:0,n:0,v:r,a:y,f:y.bind(r,4),d:function(i,o){return I=i,T=0,N=r,E.n=o,n}};function y(i,o){for(T=i,N=o,e=0;!C&&B&&!s&&e<X.length;e++){var s,d=X[e],b=E.p,h=d[2];i>3?(s=h===o)&&(N=d[(T=d[4])?5:(T=3,3)],d[4]=d[5]=r):d[0]<=b&&((s=i<2&&b<d[1])?(T=0,E.v=o,E.n=d[1]):b<h&&(s=i<3||d[0]>o||o>h)&&(d[4]=i,d[5]=o,E.n=h,T=0))}if(s||i>1)return n;throw C=!0,o}return function(i,o,s){if(B>1)throw TypeError("Generator is already running");for(C&&o===1&&y(o,s),T=o,N=s;(e=T<2?r:N)||!C;){I||(T?T<3?(T>1&&(E.n=-1),y(T,N)):E.n=N:E.v=N);try{if(B=2,I){if(T||(i="next"),e=I[i]){if(!(e=e.call(I,N)))throw TypeError("iterator result is not an object");if(!e.done)return e;N=e.value,T<2&&(T=0)}else T===1&&(e=I.return)&&e.call(I),T<2&&(N=TypeError("The iterator does not provide a '"+i+"' method"),T=1);I=r}else if((e=(C=E.n<0)?N:ie.call(Z,E))!==n)break}catch(d){I=r,T=1,N=d}finally{B=1}}return{value:e,done:C}}})(A,Y,H),!0),V}var n={};function f(){}function l(){}function p(){}e=Object.getPrototypeOf;var S=[][a]?e(e([][a]())):(O(e={},a,function(){return this}),e),w=p.prototype=f.prototype=Object.create(S);function P(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,p):(A.__proto__=p,O(A,u,"GeneratorFunction")),A.prototype=Object.create(w),A}return l.prototype=p,O(w,"constructor",p),O(p,"constructor",l),l.displayName="GeneratorFunction",O(p,u,"GeneratorFunction"),O(w),O(w,u,"Generator"),O(w,a,function(){return this}),O(w,"toString",function(){return"[object Generator]"}),(U=function(){return{w:c,m:P}})()}function O(r,e,t,a){var u=Object.defineProperty;try{u({},"",{})}catch{u=0}O=function(c,n,f,l){function p(S,w){O(c,S,function(P){return this._invoke(S,w,P)})}n?u?u(c,n,{value:f,enumerable:!l,configurable:!l,writable:!l}):c[n]=f:(p("next",0),p("throw",1),p("return",2))},O(r,e,t,a)}function $e(r){return He(r)||ze(r)||Oe(r)||Xe()}function Je(r,e){if(typeof r!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var a=t.call(r,e);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Qe(r){var e=Je(r,"string");return typeof e=="symbol"?e:e+""}function Oe(r,e){if(r){if(typeof r=="string")return se(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?se(r,e):void 0}}var j={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){var a=j.getActiveTrap(e);t!==a&&j.pauseTrap(e);var u=e.indexOf(t);u===-1||e.splice(u,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),j.unpauseTrap(e)},pauseTrap:function(e){var t=j.getActiveTrap(e);t?._setPausedState(!0)},unpauseTrap:function(e){var t=j.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},et=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},tt=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},W=function(e){return e?.key==="Tab"||e?.keyCode===9},rt=function(e){return W(e)&&!e.shiftKey},at=function(e){return W(e)&&e.shiftKey},De=function(e){return setTimeout(e,0)},q=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),u=1;u<t;u++)a[u-1]=arguments[u];return typeof e=="function"?e.apply(void 0,a):e},ae=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},nt=[],Re=function(e,t){var a=t?.document||document,u=t?.trapStack||nt,c=Ae({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:rt,isKeyBackward:at},t),n={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},f,l=function(i,o,s){return i&&i[o]!==void 0?i[o]:c[s||o]},p=function(i,o){var s=typeof o?.composedPath=="function"?o.composedPath():void 0;return n.containerGroups.findIndex(function(d){var b=d.container,h=d.tabbableNodes;return b.contains(i)||s?.includes(b)||h.find(function(v){return v===i})})},S=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.hasFallback,d=s===void 0?!1:s,b=o.params,h=b===void 0?[]:b,v=c[i];if(typeof v=="function"&&(v=v.apply(void 0,$e(h))),v===!0&&(v=void 0),!v){if(v===void 0||v===!1)return v;throw new Error("`".concat(i,"` was specified but was not a node, or did not return a node"))}var m=v;if(typeof v=="string"){try{m=a.querySelector(v)}catch(g){throw new Error("`".concat(i,'` appears to be an invalid selector; error="').concat(g.message,'"'))}if(!m&&!d)throw new Error("`".concat(i,"` as selector refers to no known node"))}return m},w=function(){var i=S("initialFocus",{hasFallback:!0});if(i===!1)return!1;if(i===void 0||i&&!re(i,c.tabbableOptions))if(p(a.activeElement)>=0)i=a.activeElement;else{var o=n.tabbableGroups[0],s=o&&o.firstTabbableNode;i=s||S("fallbackFocus")}else i===null&&(i=S("fallbackFocus"));if(!i)throw new Error("Your focus-trap needs to have at least one focusable element");return i},P=function(){if(n.containerGroups=n.containers.map(function(i){var o=Te(i,c.tabbableOptions),s=Se(i,c.tabbableOptions),d=o.length>0?o[0]:void 0,b=o.length>0?o[o.length-1]:void 0,h=s.find(function(g){return K(g)}),v=s.slice().reverse().find(function(g){return K(g)}),m=!!o.find(function(g){return L(g)>0});return{container:i,tabbableNodes:o,focusableNodes:s,posTabIndexesFound:m,firstTabbableNode:d,lastTabbableNode:b,firstDomTabbableNode:h,lastDomTabbableNode:v,nextTabbableNode:function(F){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,k=o.indexOf(F);return k<0?D?s.slice(s.indexOf(F)+1).find(function(_){return K(_)}):s.slice(0,s.indexOf(F)).reverse().find(function(_){return K(_)}):o[k+(D?1:-1)]}}}),n.tabbableGroups=n.containerGroups.filter(function(i){return i.tabbableNodes.length>0}),n.tabbableGroups.length<=0&&!S("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(n.containerGroups.find(function(i){return i.posTabIndexesFound})&&n.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},A=function(i){var o=i.activeElement;if(o)return o.shadowRoot&&o.shadowRoot.activeElement!==null?A(o.shadowRoot):o},R=function(i){if(i!==!1&&i!==A(document)){if(!i||!i.focus){R(w());return}i.focus({preventScroll:!!c.preventScroll}),n.mostRecentlyFocusedNode=i,et(i)&&i.select()}},Y=function(i){var o=S("setReturnFocus",{params:[i]});return o||(o===!1?!1:i)},H=function(i){var o=i.target,s=i.event,d=i.isBackward,b=d===void 0?!1:d;o=o||ae(s),P();var h=null;if(n.tabbableGroups.length>0){var v=p(o,s),m=v>=0?n.containerGroups[v]:void 0;if(v<0)b?h=n.tabbableGroups[n.tabbableGroups.length-1].lastTabbableNode:h=n.tabbableGroups[0].firstTabbableNode;else if(b){var g=n.tabbableGroups.findIndex(function(oe){var ue=oe.firstTabbableNode;return o===ue});if(g<0&&(m.container===o||re(o,c.tabbableOptions)&&!K(o,c.tabbableOptions)&&!m.nextTabbableNode(o,!1))&&(g=v),g>=0){var F=g===0?n.tabbableGroups.length-1:g-1,D=n.tabbableGroups[F];h=L(o)>=0?D.lastTabbableNode:D.lastDomTabbableNode}else W(s)||(h=m.nextTabbableNode(o,!1))}else{var k=n.tabbableGroups.findIndex(function(oe){var ue=oe.lastTabbableNode;return o===ue});if(k<0&&(m.container===o||re(o,c.tabbableOptions)&&!K(o,c.tabbableOptions)&&!m.nextTabbableNode(o))&&(k=v),k>=0){var _=k===n.tabbableGroups.length-1?0:k+1,x=n.tabbableGroups[_];h=L(o)>=0?x.firstTabbableNode:x.firstDomTabbableNode}else W(s)||(h=m.nextTabbableNode(o))}}else h=S("fallbackFocus");return h},M=function(i){var o=ae(i);if(!(p(o,i)>=0)){if(q(c.clickOutsideDeactivates,i)){f.deactivate({returnFocus:c.returnFocusOnDeactivate});return}q(c.allowOutsideClick,i)||i.preventDefault()}},V=function(i){var o=ae(i),s=p(o,i)>=0;if(s||o instanceof Document)s&&(n.mostRecentlyFocusedNode=o);else{i.stopImmediatePropagation();var d,b=!0;if(n.mostRecentlyFocusedNode)if(L(n.mostRecentlyFocusedNode)>0){var h=p(n.mostRecentlyFocusedNode),v=n.containerGroups[h].tabbableNodes;if(v.length>0){var m=v.findIndex(function(g){return g===n.mostRecentlyFocusedNode});m>=0&&(c.isKeyForward(n.recentNavEvent)?m+1<v.length&&(d=v[m+1],b=!1):m-1>=0&&(d=v[m-1],b=!1))}}else n.containerGroups.some(function(g){return g.tabbableNodes.some(function(F){return L(F)>0})})||(b=!1);else b=!1;b&&(d=H({target:n.mostRecentlyFocusedNode,isBackward:c.isKeyBackward(n.recentNavEvent)})),R(d||n.mostRecentlyFocusedNode||w())}n.recentNavEvent=void 0},ie=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n.recentNavEvent=i;var s=H({event:i,isBackward:o});s&&(W(i)&&i.preventDefault(),R(s))},Z=function(i){(c.isKeyForward(i)||c.isKeyBackward(i))&&ie(i,c.isKeyBackward(i))},z=function(i){tt(i)&&q(c.escapeDeactivates,i)!==!1&&(i.preventDefault(),f.deactivate())},I=function(i){var o=ae(i);p(o,i)>=0||q(c.clickOutsideDeactivates,i)||q(c.allowOutsideClick,i)||(i.preventDefault(),i.stopImmediatePropagation())},T=function(){if(!n.active)return Promise.resolve();j.activateTrap(u,f);var i;return c.delayInitialFocus?i=new Promise(function(o){n.delayInitialFocusTimer=De(function(){R(w()),o()})}):(i=Promise.resolve(),R(w())),a.addEventListener("focusin",V,!0),a.addEventListener("mousedown",M,{capture:!0,passive:!1}),a.addEventListener("touchstart",M,{capture:!0,passive:!1}),a.addEventListener("click",I,{capture:!0,passive:!1}),a.addEventListener("keydown",Z,{capture:!0,passive:!1}),a.addEventListener("keydown",z),i},N=function(i){n.active&&!n.paused&&f._setSubtreeIsolation(!1),n.adjacentElements.clear(),n.alreadySilent.clear();var o=new Set,s=new Set,d=Ne(i),b;try{for(d.s();!(b=d.n()).done;){var h=b.value;o.add(h);for(var v=typeof ShadowRoot<"u"&&h.getRootNode()instanceof ShadowRoot,m=h;m;){o.add(m);var g=m.parentElement,F=[];g?F=g.children:!g&&v&&(F=m.getRootNode().children,g=m.getRootNode().host,v=typeof ShadowRoot<"u"&&g.getRootNode()instanceof ShadowRoot);var D=Ne(F),k;try{for(D.s();!(k=D.n()).done;){var _=k.value;s.add(_)}}catch(x){D.e(x)}finally{D.f()}m=g}}}catch(x){d.e(x)}finally{d.f()}o.forEach(function(x){s.delete(x)}),n.adjacentElements=s},B=function(){if(n.active)return a.removeEventListener("focusin",V,!0),a.removeEventListener("mousedown",M,!0),a.removeEventListener("touchstart",M,!0),a.removeEventListener("click",I,!0),a.removeEventListener("keydown",Z,!0),a.removeEventListener("keydown",z),f},X=function(i){var o=i.some(function(s){var d=Array.from(s.removedNodes);return d.some(function(b){return b===n.mostRecentlyFocusedNode})});o&&R(w())},C=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(X):void 0,E=function(){C&&(C.disconnect(),n.active&&!n.paused&&n.containers.map(function(i){C.observe(i,{subtree:!0,childList:!0})}))};return f={get active(){return n.active},get paused(){return n.paused},activate:function(i){if(n.active)return this;var o=l(i,"onActivate"),s=l(i,"onPostActivate"),d=l(i,"checkCanFocusTrap"),b=j.getActiveTrap(u),h=!1;if(b&&!b.paused){var v;(v=b._setSubtreeIsolation)===null||v===void 0||v.call(b,!1),h=!0}try{d||P(),n.active=!0,n.paused=!1,n.nodeFocusedBeforeActivation=A(a),o?.();var m=(function(){var F=Ee(U().m(function D(){return U().w(function(k){for(;;)switch(k.n){case 0:return d&&P(),k.n=1,T();case 1:f._setSubtreeIsolation(!0),E(),s?.();case 2:return k.a(2)}},D)}));return function(){return F.apply(this,arguments)}})();if(d)return d(n.containers.concat()).then(m,m),this;m()}catch(F){if(b===j.getActiveTrap(u)&&h){var g;(g=b._setSubtreeIsolation)===null||g===void 0||g.call(b,!0)}throw F}return this},deactivate:function(i){if(!n.active)return this;var o=Ae({onDeactivate:c.onDeactivate,onPostDeactivate:c.onPostDeactivate,checkCanReturnFocus:c.checkCanReturnFocus},i);clearTimeout(n.delayInitialFocusTimer),n.delayInitialFocusTimer=void 0,n.paused||f._setSubtreeIsolation(!1),n.alreadySilent.clear(),B(),n.active=!1,n.paused=!1,E(),j.deactivateTrap(u,f);var s=l(o,"onDeactivate"),d=l(o,"onPostDeactivate"),b=l(o,"checkCanReturnFocus"),h=l(o,"returnFocus","returnFocusOnDeactivate");s?.();var v=function(){De(function(){h&&R(Y(n.nodeFocusedBeforeActivation)),d?.()})};return h&&b?(b(Y(n.nodeFocusedBeforeActivation)).then(v,v),this):(v(),this)},pause:function(i){return n.active?(n.manuallyPaused=!0,this._setPausedState(!0,i)):this},unpause:function(i){return n.active?(n.manuallyPaused=!1,u[u.length-1]!==this?this:this._setPausedState(!1,i)):this},updateContainerElements:function(i){var o=[].concat(i).filter(Boolean);return n.containers=o.map(function(s){return typeof s=="string"?a.querySelector(s):s}),c.isolateSubtrees&&N(n.containers),n.active&&(P(),n.paused||f._setSubtreeIsolation(!0)),E(),this}},Object.defineProperties(f,{_isManuallyPaused:{value:function(){return n.manuallyPaused}},_setPausedState:{value:function(i,o){if(n.paused===i)return this;if(n.paused=i,i){var s=l(o,"onPause"),d=l(o,"onPostPause");s?.(),B(),f._setSubtreeIsolation(!1),E(),d?.()}else{var b=l(o,"onUnpause"),h=l(o,"onPostUnpause");b?.();var v=(function(){var m=Ee(U().m(function g(){return U().w(function(F){for(;;)switch(F.n){case 0:return P(),F.n=1,T();case 1:f._setSubtreeIsolation(!0),E(),h?.();case 2:return F.a(2)}},g)}));return function(){return m.apply(this,arguments)}})();v()}return this}},_setSubtreeIsolation:{value:function(i){c.isolateSubtrees&&n.adjacentElements.forEach(function(o){var s;if(i)switch(c.isolateSubtrees){case"aria-hidden":(o.ariaHidden==="true"||((s=o.getAttribute("aria-hidden"))===null||s===void 0?void 0:s.toLowerCase())==="true")&&n.alreadySilent.add(o),o.setAttribute("aria-hidden","true");break;default:(o.inert||o.hasAttribute("inert"))&&n.alreadySilent.add(o),o.setAttribute("inert",!0);break}else if(!n.alreadySilent.has(o))switch(c.isolateSubtrees){case"aria-hidden":o.removeAttribute("aria-hidden");break;default:o.removeAttribute("inert");break}})}}}),f.updateContainerElements(e),f};function Ie(r,{focusTrapOptions:e},t){return!e?.extraContainers&&!t?r:[r,...Pe(e?.extraContainers),...Pe(t)]}function Pe(r=[]){return Array.isArray(r)?r:[r]}var ne=new WeakSet;function it(r,e){let t=e&&e!==document.body&&e!==document.documentElement;return!ne.has(r)&&t&&ve(e),!1}function ot(r,e){let t=e?.fallbackFocus||r,a=e?.clickOutsideDeactivates??!0,u;return{fallbackFocus:t,...e,document:r.ownerDocument,tabbableOptions:de,trapStack:le().focusTrapStack,clickOutsideDeactivates:c=>(ne.has(r)||ne.add(r),typeof a=="function"?a(c):a),onActivate:()=>{e?.escapeDeactivates&&(u=new AbortController,r.addEventListener("keydown",c=>{c.key==="Escape"&&typeof e?.escapeDeactivates=="function"&&e.escapeDeactivates(c)},{signal:u.signal})),e?.onActivate?.()},onDeactivate:()=>{u?.abort(),u=void 0,e?.onDeactivate?.()},onPostDeactivate:()=>{ne.delete(r)},setReturnFocus:c=>{let n=typeof e?.setReturnFocus=="function"?e.setReturnFocus(c):e?.setReturnFocus;return n===void 0?it(r,c):n}}}var bt=r=>fe((e,t)=>{let a,u,c,n=r.focusTrapOptions;t.onConnected(()=>{e[r.triggerProp]&&a&&f.activate()}),t.onUpdate(l=>{e.hasUpdated&&l.has("focusTrapDisabled")&&(e.focusTrapDisabled?f.deactivate():f.activate())}),t.onDisconnected(()=>f.deactivate());let f={get _instance(){},activate:()=>{let l=u||e.el;l.isConnected&&(a||(c||=Ie(l,e),a=Re(c,ot(l,{...n,...e.focusTrapOptions}))),(typeof e.focusTrapDisabledOverride=="function"?!e.focusTrapDisabledOverride():!e.focusTrapDisabled)&&a.activate())},deactivate:()=>a?.deactivate(),overrideFocusTrapEl:l=>{if(a)throw new Error("Focus trap already created");u=l},setExtraContainers:l=>{let p=u||e.el;c=Ie(p,e,l)},updateContainerElements:()=>a?.updateContainerElements(c)};return f});export{bt as a};
|