@epilot/base-elements 3.8.8 → 3.8.9

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/bundle.js CHANGED
@@ -841,7 +841,7 @@ The error may be correlated with this previous error:
841
841
  -moz-user-select: none;
842
842
  -ms-user-select: none;
843
843
  overflow-anchor: none;
844
- `}},te=[L,q,z,$];return{always:to(te,"always"),resting:to(te,"resting"),dragging:to(te,"dragging"),dropAnimating:to(te,"dropAnimating"),userCancel:to(te,"userCancel")}},Mr=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?O.useLayoutEffect:O.useEffect,xa=function(){var C=document.querySelector("head");return C||Et(!1),C},b0=function(C){var q=document.createElement("style");return C&&q.setAttribute("nonce",C),q.type="text/css",q};function E0(P,C){var q=ut(function(){return y0(P)},[P]),L=(0,O.useRef)(null),z=(0,O.useRef)(null),$=bt(Ve(function(Ae){var Te=z.current;Te||Et(!1),Te.textContent=Ae}),[]),te=bt(function(Ae){var Te=L.current;Te||Et(!1),Te.textContent=Ae},[]);Mr(function(){!L.current&&!z.current||Et(!1);var Ae=b0(C),Te=b0(C);return L.current=Ae,z.current=Te,Ae.setAttribute(Qr+"-always",P),Te.setAttribute(Qr+"-dynamic",P),xa().appendChild(Ae),xa().appendChild(Te),te(q.always),$(q.resting),function(){var Ue=function(Ct){var qt=Ct.current;qt||Et(!1),xa().removeChild(qt),Ct.current=null};Ue(L),Ue(z)}},[C,te,$,q.always,q.resting,P]);var le=bt(function(){return $(q.dragging)},[$,q.dragging]),Ce=bt(function(Ae){if(Ae==="DROP"){$(q.dropAnimating);return}$(q.userCancel)},[$,q.dropAnimating,q.userCancel]),qe=bt(function(){!z.current||$(q.resting)},[$,q.resting]),Ze=ut(function(){return{dragging:le,dropping:Ce,resting:qe}},[le,Ce,qe]);return Ze}var Mi=function(P){return P&&P.ownerDocument?P.ownerDocument.defaultView:window};function la(P){return P instanceof Mi(P).HTMLElement}function Di(P,C){var q="["+eo.contextId+'="'+P+'"]',L=q1(document.querySelectorAll(q));if(!L.length)return null;var z=T1(L,function($){return $.getAttribute(eo.draggableId)===C});return!z||!la(z)?null:z}function Y2(P){var C=(0,O.useRef)({}),q=(0,O.useRef)(null),L=(0,O.useRef)(null),z=(0,O.useRef)(!1),$=bt(function(Te,Ue){var st={id:Te,focus:Ue};return C.current[Te]=st,function(){var qt=C.current,Rt=qt[Te];Rt!==st&&delete qt[Te]}},[]),te=bt(function(Te){var Ue=Di(P,Te);Ue&&Ue!==document.activeElement&&Ue.focus()},[P]),le=bt(function(Te,Ue){q.current===Te&&(q.current=Ue)},[]),Ce=bt(function(){L.current||!z.current||(L.current=requestAnimationFrame(function(){L.current=null;var Te=q.current;Te&&te(Te)}))},[te]),qe=bt(function(Te){q.current=null;var Ue=document.activeElement;!Ue||Ue.getAttribute(eo.draggableId)===Te&&(q.current=Te)},[]);Mr(function(){return z.current=!0,function(){z.current=!1;var Te=L.current;Te&&cancelAnimationFrame(Te)}},[]);var Ze=ut(function(){return{register:$,tryRecordFocus:qe,tryRestoreFocusRecorded:Ce,tryShiftRecord:le}},[$,qe,Ce,le]);return Ze}function _i(){var P={draggables:{},droppables:{}},C=[];function q(Ae){return C.push(Ae),function(){var Ue=C.indexOf(Ae);Ue!==-1&&C.splice(Ue,1)}}function L(Ae){C.length&&C.forEach(function(Te){return Te(Ae)})}function z(Ae){return P.draggables[Ae]||null}function $(Ae){var Te=z(Ae);return Te||Et(!1),Te}var te={register:function(Te){P.draggables[Te.descriptor.id]=Te,L({type:"ADDITION",value:Te})},update:function(Te,Ue){var st=P.draggables[Ue.descriptor.id];!st||st.uniqueId===Te.uniqueId&&(delete P.draggables[Ue.descriptor.id],P.draggables[Te.descriptor.id]=Te)},unregister:function(Te){var Ue=Te.descriptor.id,st=z(Ue);!st||Te.uniqueId===st.uniqueId&&(delete P.draggables[Ue],L({type:"REMOVAL",value:Te}))},getById:$,findById:z,exists:function(Te){return Boolean(z(Te))},getAllByType:function(Te){return wt(P.draggables).filter(function(Ue){return Ue.descriptor.type===Te})}};function le(Ae){return P.droppables[Ae]||null}function Ce(Ae){var Te=le(Ae);return Te||Et(!1),Te}var qe={register:function(Te){P.droppables[Te.descriptor.id]=Te},unregister:function(Te){var Ue=le(Te.descriptor.id);!Ue||Te.uniqueId===Ue.uniqueId&&delete P.droppables[Te.descriptor.id]},getById:Ce,findById:le,exists:function(Te){return Boolean(le(Te))},getAllByType:function(Te){return wt(P.droppables).filter(function(Ue){return Ue.descriptor.type===Te})}};function Ze(){P.draggables={},P.droppables={},C.length=0}return{draggable:te,droppable:qe,subscribe:q,clean:Ze}}function X2(){var P=ut(_i,[]);return(0,O.useEffect)(function(){return function(){requestAnimationFrame(P.clean)}},[P]),P}var Si=O.default.createContext(null),ro=function(){var P=document.body;return P||Et(!1),P},J2={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},P0=function(C){return"rbd-announcement-"+C};function Ti(P){var C=ut(function(){return P0(P)},[P]),q=(0,O.useRef)(null);(0,O.useEffect)(function(){var $=document.createElement("div");return q.current=$,$.id=C,$.setAttribute("aria-live","assertive"),$.setAttribute("aria-atomic","true"),(0,E.Z)($.style,J2),ro().appendChild($),function(){setTimeout(function(){var Ce=ro();Ce.contains($)&&Ce.removeChild($),$===q.current&&(q.current=null)})}},[C]);var L=bt(function(z){var $=q.current;if($){$.textContent=z;return}},[]);return L}var Ai=0,Gn={separator:"::"};function O0(){Ai=0}function ei(P,C){return C===void 0&&(C=Gn),ut(function(){return""+P+C.separator+Ai++},[C.separator,P])}function Ml(P){var C=P.contextId,q=P.uniqueId;return"rbd-hidden-text-"+C+"-"+q}function w0(P){var C=P.contextId,q=P.text,L=ei("hidden-text",{separator:"-"}),z=ut(function(){return Ml({contextId:C,uniqueId:L})},[L,C]);return(0,O.useEffect)(function(){var te=document.createElement("div");return te.id=z,te.textContent=q,te.style.display="none",ro().appendChild(te),function(){var Ce=ro();Ce.contains(te)&&Ce.removeChild(te)}},[z,q]),z}var ti=O.default.createContext(null),Dl={react:"^16.8.5 || ^17.0.0","react-dom":"^16.8.5 || ^17.0.0"},zn=/(\d+)\.(\d+)\.(\d+)/,ri=function(C){var q=zn.exec(C);q==null&&Et(!1);var L=Number(q[1]),z=Number(q[2]),$=Number(q[3]);return{major:L,minor:z,patch:$,raw:C}},Zi=function(C,q){return q.major>C.major?!0:q.major<C.major?!1:q.minor>C.minor?!0:q.minor<C.minor?!1:q.patch>=C.patch},ni=function(P,C){var q=ri(P),L=ri(C);!Zi(q,L)},zo=`
844
+ `}},te=[L,q,z,$];return{always:to(te,"always"),resting:to(te,"resting"),dragging:to(te,"dragging"),dropAnimating:to(te,"dropAnimating"),userCancel:to(te,"userCancel")}},Mr=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?O.useLayoutEffect:O.useEffect,xa=function(){var C=document.querySelector("head");return C||Et(!1),C},b0=function(C){var q=document.createElement("style");return C&&q.setAttribute("nonce",C),q.type="text/css",q};function E0(P,C){var q=ut(function(){return y0(P)},[P]),L=(0,O.useRef)(null),z=(0,O.useRef)(null),$=bt(Ve(function(Ae){var Te=z.current;Te||Et(!1),Te.textContent=Ae}),[]),te=bt(function(Ae){var Te=L.current;Te||Et(!1),Te.textContent=Ae},[]);Mr(function(){!L.current&&!z.current||Et(!1);var Ae=b0(C),Te=b0(C);return L.current=Ae,z.current=Te,Ae.setAttribute(Qr+"-always",P),Te.setAttribute(Qr+"-dynamic",P),xa().appendChild(Ae),xa().appendChild(Te),te(q.always),$(q.resting),function(){var Ue=function(Ct){var qt=Ct.current;qt||Et(!1),xa().removeChild(qt),Ct.current=null};Ue(L),Ue(z)}},[C,te,$,q.always,q.resting,P]);var le=bt(function(){return $(q.dragging)},[$,q.dragging]),Ce=bt(function(Ae){if(Ae==="DROP"){$(q.dropAnimating);return}$(q.userCancel)},[$,q.dropAnimating,q.userCancel]),qe=bt(function(){!z.current||$(q.resting)},[$,q.resting]),Ze=ut(function(){return{dragging:le,dropping:Ce,resting:qe}},[le,Ce,qe]);return Ze}var Mi=function(P){return P&&P.ownerDocument?P.ownerDocument.defaultView:window};function la(P){return P instanceof Mi(P).HTMLElement}function Di(P,C){var q="["+eo.contextId+'="'+P+'"]',L=q1(document.querySelectorAll(q));if(!L.length)return null;var z=T1(L,function($){return $.getAttribute(eo.draggableId)===C});return!z||!la(z)?null:z}function Y2(P){var C=(0,O.useRef)({}),q=(0,O.useRef)(null),L=(0,O.useRef)(null),z=(0,O.useRef)(!1),$=bt(function(Te,Ue){var st={id:Te,focus:Ue};return C.current[Te]=st,function(){var qt=C.current,Rt=qt[Te];Rt!==st&&delete qt[Te]}},[]),te=bt(function(Te){var Ue=Di(P,Te);Ue&&Ue!==document.activeElement&&Ue.focus()},[P]),le=bt(function(Te,Ue){q.current===Te&&(q.current=Ue)},[]),Ce=bt(function(){L.current||!z.current||(L.current=requestAnimationFrame(function(){L.current=null;var Te=q.current;Te&&te(Te)}))},[te]),qe=bt(function(Te){q.current=null;var Ue=document.activeElement;!Ue||Ue.getAttribute(eo.draggableId)===Te&&(q.current=Te)},[]);Mr(function(){return z.current=!0,function(){z.current=!1;var Te=L.current;Te&&cancelAnimationFrame(Te)}},[]);var Ze=ut(function(){return{register:$,tryRecordFocus:qe,tryRestoreFocusRecorded:Ce,tryShiftRecord:le}},[$,qe,Ce,le]);return Ze}function _i(){var P={draggables:{},droppables:{}},C=[];function q(Ae){return C.push(Ae),function(){var Ue=C.indexOf(Ae);Ue!==-1&&C.splice(Ue,1)}}function L(Ae){C.length&&C.forEach(function(Te){return Te(Ae)})}function z(Ae){return P.draggables[Ae]||null}function $(Ae){var Te=z(Ae);return Te||Et(!1),Te}var te={register:function(Te){P.draggables[Te.descriptor.id]=Te,L({type:"ADDITION",value:Te})},update:function(Te,Ue){var st=P.draggables[Ue.descriptor.id];!st||st.uniqueId===Te.uniqueId&&(delete P.draggables[Ue.descriptor.id],P.draggables[Te.descriptor.id]=Te)},unregister:function(Te){var Ue=Te.descriptor.id,st=z(Ue);!st||Te.uniqueId===st.uniqueId&&(delete P.draggables[Ue],L({type:"REMOVAL",value:Te}))},getById:$,findById:z,exists:function(Te){return Boolean(z(Te))},getAllByType:function(Te){return wt(P.draggables).filter(function(Ue){return Ue.descriptor.type===Te})}};function le(Ae){return P.droppables[Ae]||null}function Ce(Ae){var Te=le(Ae);return Te||Et(!1),Te}var qe={register:function(Te){P.droppables[Te.descriptor.id]=Te},unregister:function(Te){var Ue=le(Te.descriptor.id);!Ue||Te.uniqueId===Ue.uniqueId&&delete P.droppables[Te.descriptor.id]},getById:Ce,findById:le,exists:function(Te){return Boolean(le(Te))},getAllByType:function(Te){return wt(P.droppables).filter(function(Ue){return Ue.descriptor.type===Te})}};function Ze(){P.draggables={},P.droppables={},C.length=0}return{draggable:te,droppable:qe,subscribe:q,clean:Ze}}function X2(){var P=ut(_i,[]);return(0,O.useEffect)(function(){return function(){requestAnimationFrame(P.clean)}},[P]),P}var Si=O.default.createContext(null),ro=function(){var P=document.body;return P||Et(!1),P},J2={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},P0=function(C){return"rbd-announcement-"+C};function Ti(P){var C=ut(function(){return P0(P)},[P]),q=(0,O.useRef)(null);(0,O.useEffect)(function(){var $=document.createElement("div");return q.current=$,$.id=C,$.setAttribute("aria-live","assertive"),$.setAttribute("aria-atomic","true"),(0,E.Z)($.style,J2),ro().appendChild($),function(){setTimeout(function(){var Ce=ro();Ce.contains($)&&Ce.removeChild($),$===q.current&&(q.current=null)})}},[C]);var L=bt(function(z){var $=q.current;if($){$.textContent=z;return}},[]);return L}var Ai=0,Gn={separator:"::"};function O0(){Ai=0}function ei(P,C){return C===void 0&&(C=Gn),ut(function(){return""+P+C.separator+Ai++},[C.separator,P])}function Ml(P){var C=P.contextId,q=P.uniqueId;return"rbd-hidden-text-"+C+"-"+q}function w0(P){var C=P.contextId,q=P.text,L=ei("hidden-text",{separator:"-"}),z=ut(function(){return Ml({contextId:C,uniqueId:L})},[L,C]);return(0,O.useEffect)(function(){var te=document.createElement("div");return te.id=z,te.textContent=q,te.style.display="none",ro().appendChild(te),function(){var Ce=ro();Ce.contains(te)&&Ce.removeChild(te)}},[z,q]),z}var ti=O.default.createContext(null),Dl={react:"^16.8.5 || ^17.0.0 || ^18.0.0","react-dom":"^16.8.5 || ^17.0.0 || ^18.0.0"},zn=/(\d+)\.(\d+)\.(\d+)/,ri=function(C){var q=zn.exec(C);q==null&&Et(!1);var L=Number(q[1]),z=Number(q[2]),$=Number(q[3]);return{major:L,minor:z,patch:$,raw:C}},Zi=function(C,q){return q.major>C.major?!0:q.major<C.major?!1:q.minor>C.minor?!0:q.minor<C.minor?!1:q.patch>=C.patch},ni=function(P,C){var q=ri(P),L=ri(C);!Zi(q,L)},zo=`
845
845
  We expect a html5 doctype: <!doctype html>
846
846
  This is to ensure consistent browser layout and measurement
847
847