@ansible/ansible-ui-framework 2.4.2052 → 2.4.2054

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,13 +6,13 @@ type LabelsWithLinksProps = {
6
6
  labels?: never;
7
7
  labelsWithLinks: LabelWithLink[];
8
8
  numLabels?: number;
9
- wrapLabels?: boolean;
9
+ noWrap?: boolean;
10
10
  };
11
11
  type LabelsProps = {
12
12
  labels: string[];
13
13
  labelsWithLinks?: never;
14
14
  numLabels?: number;
15
- wrapLabels?: boolean;
15
+ noWrap?: boolean;
16
16
  };
17
17
  export declare function LabelsCell(props: LabelsProps | LabelsWithLinksProps): import("react/jsx-runtime").JSX.Element;
18
18
  export {};
package/index.js CHANGED
@@ -12085,7 +12085,7 @@ function uN(e) {
12085
12085
  Qv,
12086
12086
  {
12087
12087
  numLabels: e.numLabels ?? 999,
12088
- style: e.wrapLabels ? void 0 : { flexWrap: "nowrap" },
12088
+ style: e.noWrap ? { flexWrap: "nowrap" } : void 0,
12089
12089
  children: e.labels ? e.labels.map((t) => /* @__PURE__ */ g.jsx(co, { children: t }, t)) : e.labelsWithLinks.map((t) => /* @__PURE__ */ g.jsx(co, { color: "blue", children: /* @__PURE__ */ g.jsx(ea, { to: t.link, children: t.name }) }, t.name))
12090
12090
  }
12091
12091
  );
package/index.umd.cjs CHANGED
@@ -110,7 +110,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Ou]+=1);var Cu=(e=>(e.Default
110
110
  * LICENSE file in the root directory of this source tree.
111
111
  */var A_;function LI(){return A_||(A_=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=b,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(_){{for(var S=arguments.length,w=new Array(S>1?S-1:0),O=1;O<S;O++)w[O-1]=arguments[O];r("error",_,w)}}function r(_,S,w){{var O=t.ReactDebugCurrentFrame,C=O.getStackAddendum();C!==""&&(S+="%s",w=w.concat([C]));var k=w.map(function($){return String($)});k.unshift("Warning: "+S),Function.prototype.apply.call(console[_],console,k)}}function i(_,S){return _===S&&(_!==0||1/_===1/S)||_!==_&&S!==S}var a=typeof Object.is=="function"?Object.is:i,o=e.useState,s=e.useEffect,l=e.useLayoutEffect,c=e.useDebugValue,u=!1,f=!1;function d(_,S,w){u||e.startTransition!==void 0&&(u=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var O=S();if(!f){var C=S();a(O,C)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}var k=o({inst:{value:O,getSnapshot:S}}),$=k[0].inst,M=k[1];return l(function(){$.value=O,$.getSnapshot=S,h($)&&M({inst:$})},[_,O,S]),s(function(){h($)&&M({inst:$});var A=function(){h($)&&M({inst:$})};return _(A)},[_]),c(O),O}function h(_){var S=_.getSnapshot,w=_.value;try{var O=S();return!a(w,O)}catch{return!0}}function p(_,S,w){return S()}var m=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",v=!m,y=v?p:d,x=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y;Lg.useSyncExternalStore=x,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Lg}process.env.NODE_ENV==="production"?II():LI();const na=()=>{},Fn=na(),Gu=Object,Cr=e=>e===Fn,ra=e=>typeof e=="function",Ra=(e,t)=>({...e,...t}),NI=e=>ra(e.then),qu=new WeakMap;let FI=0;const Tl=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,a;if(Gu(e)===e&&!r&&n!=RegExp){if(i=qu.get(e),i)return i;if(i=++FI+"~",qu.set(e,i),n==Array){for(i="@",a=0;a<e.length;a++)i+=Tl(e[a])+",";qu.set(e,i)}if(n==Gu){i="#";const o=Gu.keys(e).sort();for(;!Cr(a=o.pop());)Cr(e[a])||(i+=a+":"+Tl(e[a])+",");qu.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},ia=new WeakMap,Ng={},Yu={},P_="undefined",Fg=typeof window!=P_,Rg=typeof document!=P_,RI=(e,t)=>{const n=ia.get(e);return[()=>!Cr(t)&&e.get(t)||Ng,r=>{if(!Cr(t)){const i=e.get(t);t in Yu||(Yu[t]=i),n[5](t,Ra(i,r),i||Ng)}},n[6],()=>!Cr(t)&&t in Yu?Yu[t]:!Cr(t)&&e.get(t)||Ng]};let zg=!0;const zI=()=>zg,[Bg,Wg]=Fg&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[na,na],BI=()=>{const e=Rg&&document.visibilityState;return Cr(e)||e!=="hidden"},WI=e=>(Rg&&document.addEventListener("visibilitychange",e),Bg("focus",e),()=>{Rg&&document.removeEventListener("visibilitychange",e),Wg("focus",e)}),VI=e=>{const t=()=>{zg=!0,e()},n=()=>{zg=!1};return Bg("online",t),Bg("offline",n),()=>{Wg("online",t),Wg("offline",n)}},UI={isOnline:zI,isVisible:BI},HI={initFocus:WI,initReconnect:VI};b.useId;const Vg=!Fg||"Deno"in window,GI=Vg?b.useEffect:b.useLayoutEffect,Ug=typeof navigator<"u"&&navigator.connection,j_=!Vg&&Ug&&(["slow-2g","2g"].includes(Ug.effectiveType)||Ug.saveData),D_=e=>{if(ra(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Tl(e):"",[e,t]};let qI=0;const $_=()=>++qI,YI=0,KI=1,XI=2;async function ZI(...e){const[t,n,r,i]=e,a=Ra({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let o=a.populateCache;const s=a.rollbackOnError;let l=a.optimisticData;const c=d=>typeof s=="function"?s(d):s!==!1,u=a.throwOnError;if(ra(n)){const d=n,h=[],p=t.keys();for(const m of p)!/^\$(inf|sub)\$/.test(m)&&d(t.get(m)._k)&&h.push(m);return Promise.all(h.map(f))}return f(n);async function f(d){const[h]=D_(d);if(!h)return;const[p,m]=RI(t,h),[v,y,x,_]=ia.get(t),S=()=>{const P=v[h];return(ra(a.revalidate)?a.revalidate(p().data,d):a.revalidate!==!1)&&(delete x[h],delete _[h],P&&P[0])?P[0](XI).then(()=>p().data):p().data};if(e.length<3)return S();let w=r,O;const C=$_();y[h]=[C,0];const k=!Cr(l),$=p(),M=$.data,A=$._c,j=Cr(A)?M:A;if(k&&(l=ra(l)?l(j,M):l,m({data:l,_c:j})),ra(w))try{w=w(j)}catch(P){O=P}if(w&&NI(w))if(w=await w.catch(P=>{O=P}),C!==y[h][0]){if(O)throw O;return w}else O&&k&&c(O)&&(o=!0,m({data:j,_c:Fn}));if(o&&!O)if(ra(o)){const P=o(w,j);m({data:P,error:Fn,_c:Fn})}else m({data:w,error:Fn,_c:Fn});if(y[h][1]=$_(),Promise.resolve(S()).then(()=>{m({_c:Fn})}),O){if(u)throw O;return}return w}}const M_=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},I_=(e,t)=>{if(!ia.has(e)){const n=Ra(HI,t),r={},i=ZI.bind(Fn,e);let a=na;const o={},s=(u,f)=>{const d=o[u]||[];return o[u]=d,d.push(f),()=>d.splice(d.indexOf(f),1)},l=(u,f,d)=>{e.set(u,f);const h=o[u];if(h)for(const p of h)p(f,d)},c=()=>{if(!ia.has(e)&&(ia.set(e,[r,{},{},{},i,l,s]),!Vg)){const u=n.initFocus(setTimeout.bind(Fn,M_.bind(Fn,r,YI))),f=n.initReconnect(setTimeout.bind(Fn,M_.bind(Fn,r,KI)));a=()=>{u&&u(),f&&f(),ia.delete(e)}}};return c(),[e,i,c,a]}return[e,ia.get(e)[4]]},JI=(e,t,n,r,i)=>{const a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!Cr(a)&&o>a||setTimeout(r,s,i)},QI=(e,t)=>Tl(e)==Tl(t),[Hg,eL]=I_(new Map),tL=Ra({onLoadingSlow:na,onSuccess:na,onError:na,onErrorRetry:JI,onDiscarded:na,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:j_?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:j_?5e3:3e3,compare:QI,isPaused:()=>!1,cache:Hg,mutate:eL,fallback:{}},UI),nL=(e,t)=>{const n=Ra(e,t);if(t){const{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=Ra(i,o))}return n},L_=b.createContext({}),rL=e=>{const{value:t}=e,n=b.useContext(L_),r=ra(t),i=b.useMemo(()=>r?t(n):t,[r,n,t]),a=b.useMemo(()=>r?i:nL(n,i),[r,n,i]),o=i&&i.provider,s=b.useRef(Fn);o&&!s.current&&(s.current=I_(o(a.cache||Hg),i));const l=s.current;return l&&(a.cache=l[0],a.mutate=l[1]),GI(()=>{if(l)return l[2]&&l[2](),l[3]},[]),b.createElement(L_.Provider,Ra(e,{value:a}))},iL="$inf$",N_=Fg&&window.__SWR_DEVTOOLS_USE__,aL=N_?window.__SWR_DEVTOOLS_USE__:[],oL=()=>{N_&&(window.__SWR_DEVTOOLS_REACT__=b)},sL=e=>(t,n,r)=>e(t,n&&((...a)=>{const[o]=D_(t),[,,,s]=ia.get(Hg);if(o.startsWith(iL))return n(...a);const l=s[o];return Cr(l)?n(...a):(delete s[o],l)}),r);aL.concat(sL),oL(),b.use;const lL=Gu.defineProperty(rL,"defaultValue",{value:tL}),za=b.createContext([{},()=>null]);function Ba(){const[e]=b.useContext(za);return e}function F_(e){const[t,n]=b.useState(()=>{const a=localStorage.getItem("user-preferences");let o={};if(a)try{o=JSON.parse(a)}catch{}return o={refreshInterval:e.defaultRefreshInterval,theme:"system",tableLayout:"comfortable",formColumns:"multiple",formLayout:"vertical",dateFormat:"date-time",dataEditorFormat:"yaml",...o},o}),r=b.useCallback(a=>{localStorage.setItem("user-preferences",JSON.stringify(a)),n(a)},[]),i=b.useMemo(()=>t.theme!=="light"&&t.theme!=="dark"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t.theme,[t.theme]);return b.useEffect(()=>{n(a=>a.activeTheme===i?a:{...a,activeTheme:i}),i==="dark"?document.documentElement.classList.add("pf-v5-theme-dark"):document.documentElement.classList.remove("pf-v5-theme-dark")},[i]),g.jsx(lL,{value:{refreshInterval:t.refreshInterval?t.refreshInterval*1e3:0},children:g.jsx(za.Provider,{value:[t,r],children:e.children})})}function cL(e){return e?(typeof e=="string"&&(e=new Date(e)),e.toLocaleString()):""}function uL(e){const t=new Date(e.value);return g.jsxs(T.Split,{hasGutter:!0,children:[g.jsx(T.SplitItem,{children:t.toLocaleDateString()}),g.jsx(T.SplitItem,{children:t.toLocaleTimeString()})]})}const fL=Pe.span`
112
112
  white-space: nowrap;
113
- `;function R_(e){const{t}=Ie(),[n]=Pt(),{author:r,onClick:i}=e,[a,o]=b.useState(null),s=Ba(),l=s.dateFormat?s.dateFormat:"date-time",c=b.useCallback((u,f)=>{let d;switch(typeof u=="number"?d=Ae.fromMillis(u):d=Ae.fromISO(u),f){case"since":{Ae.now().toMillis()-d.toMillis()<60*1e3?o(t("Less than a minute ago")):o(d.toRelative());break}default:o(cL(d.toJSDate()));break}},[t]);return b.useEffect(()=>{if(c(e.value,l),l==="since"){const u=setInterval(()=>c(e.value,l),1e3);return()=>clearTimeout(u)}},[l,e.value,c]),e.value?g.jsxs(fL,{className:"date-time",children:[a,r&&g.jsxs("span",{children:[" ",n.by," "]}),i?g.jsx(T.Button,{variant:"link",isInline:!0,onClick:i,children:r}):g.jsx("span",{children:r})]}):g.jsx(g.Fragment,{})}function dL(e){const t=b.useMemo(()=>new Date(e.start??0).valueOf(),[e.start]),n=b.useMemo(()=>new Date(e.finish??0).valueOf(),[e.finish]),[r,i]=b.useState(Math.max(0,n-t.valueOf()));b.useEffect(()=>{const u=setInterval(()=>{t&&(e.finish?i(Math.max(0,n-t)):i(Math.max(0,Date.now()-t)))},1e3);return()=>clearTimeout(u)},[t,n,e.finish]);const a=Math.floor(r/1e3),o=Math.floor(a%60),s=Math.floor(a/60%60),l=Math.floor(a/60/60%24),c=Math.floor(a/60/60/24);return t?g.jsxs(T.Split,{children:[c!==0&&g.jsxs(T.SplitItem,{children:[c,"d"," "]}),l!==0&&g.jsxs(T.SplitItem,{children:[l,"h"," "]}),s!==0&&g.jsxs(T.SplitItem,{children:[s,"m"," "]}),g.jsxs(T.SplitItem,{children:[o,"s"]})]}):g.jsx(g.Fragment,{})}function z_(e){return g.jsx(T.LabelGroup,{numLabels:e.numLabels??999,style:e.wrapLabels?void 0:{flexWrap:"nowrap"},children:e.labels?e.labels.map(t=>g.jsx(T.Label,{children:t},t)):e.labelsWithLinks.map(t=>g.jsx(T.Label,{color:"blue",children:g.jsx(Ot.Link,{to:t.link,children:t.name})},t.name))})}function kl(e){const t={};e.color&&(t.color=Lo(e.color)),e.size&&(t.size=e.size);let n=0;if(e.padRight)switch(e.size){case"sm":n=6;break;case"md":n=6;break;case"lg":n=8;break;case"xl":n=12;break}let r=0;if(e.padLeft)switch(e.size){case"sm":r=6;break;case"md":r=6;break;case"lg":r=8;break;case"xl":r=12;break}const i=b.Children.toArray(e.children).map(a=>b.isValidElement(a)?b.cloneElement(a,t):a);return g.jsx("div",{style:{paddingRight:n,paddingLeft:r},children:i})}function B_(e){const t=Ot.useNavigate();return g.jsxs(T.Flex,{spaceItems:{default:"spaceItemsNone"},flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsBaseline"},children:[e.icon&&((e==null?void 0:e.iconAlign)===void 0||e.iconAlign&&e.iconAlign!=="right")&&g.jsx(T.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:g.jsx(kl,{size:e.iconSize??"sm",color:e.iconColor??e.color,padRight:!0,children:e.icon})}),e.text&&g.jsx(T.FlexItem,{style:{maxWidth:"100%"},children:g.jsx("div",{style:{maxWidth:e.maxWidth??"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:e.color?Lo(e.color):void 0},children:!e.disableLinks&&(e.to||e.onClick)?g.jsx("a",{style:{color:e.color?Lo(e.color):void 0},href:e.to,onClick:n=>{if(n.preventDefault(),e.onClick)e.onClick();else{if(!e.to)return;t(e.to)}},children:e.text}):g.jsx(g.Fragment,{children:e.text})})}),e.icon&&e.iconAlign==="right"&&g.jsx(T.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:g.jsx(kl,{size:e.iconSize??"sm",padLeft:!0,color:e.iconColor??e.color,children:e.icon})})]})}var Wa=[],hL=function(){return Wa.some(function(e){return e.activeTargets.length>0})},pL=function(){return Wa.some(function(e){return e.skippedTargets.length>0})},W_="ResizeObserver loop completed with undelivered notifications.",gL=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:W_}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=W_),window.dispatchEvent(e)},Al;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Al||(Al={}));var Va=function(e){return Object.freeze(e)},mL=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Va(this)}return e}(),V_=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Va(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,a=t.right,o=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:r,top:i,right:a,bottom:o,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Gg=function(e){return e instanceof SVGElement&&"getBBox"in e},U_=function(e){if(Gg(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},H_=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},vL=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Pl=typeof window<"u"?window:{},Ku=new WeakMap,G_=/auto|scroll/,yL=/^tb|vertical/,bL=/msie|trident/i.test(Pl.navigator&&Pl.navigator.userAgent),Vr=function(e){return parseFloat(e||"0")},qo=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new mL((n?t:e)||0,(n?e:t)||0)},q_=Va({devicePixelContentBoxSize:qo(),borderBoxSize:qo(),contentBoxSize:qo(),contentRect:new V_(0,0,0,0)}),Y_=function(e,t){if(t===void 0&&(t=!1),Ku.has(e)&&!t)return Ku.get(e);if(U_(e))return Ku.set(e,q_),q_;var n=getComputedStyle(e),r=Gg(e)&&e.ownerSVGElement&&e.getBBox(),i=!bL&&n.boxSizing==="border-box",a=yL.test(n.writingMode||""),o=!r&&G_.test(n.overflowY||""),s=!r&&G_.test(n.overflowX||""),l=r?0:Vr(n.paddingTop),c=r?0:Vr(n.paddingRight),u=r?0:Vr(n.paddingBottom),f=r?0:Vr(n.paddingLeft),d=r?0:Vr(n.borderTopWidth),h=r?0:Vr(n.borderRightWidth),p=r?0:Vr(n.borderBottomWidth),m=r?0:Vr(n.borderLeftWidth),v=f+c,y=l+u,x=m+h,_=d+p,S=s?e.offsetHeight-_-e.clientHeight:0,w=o?e.offsetWidth-x-e.clientWidth:0,O=i?v+x:0,C=i?y+_:0,k=r?r.width:Vr(n.width)-O-w,$=r?r.height:Vr(n.height)-C-S,M=k+v+w+x,A=$+y+S+_,j=Va({devicePixelContentBoxSize:qo(Math.round(k*devicePixelRatio),Math.round($*devicePixelRatio),a),borderBoxSize:qo(M,A,a),contentBoxSize:qo(k,$,a),contentRect:new V_(f,l,k,$)});return Ku.set(e,j),j},K_=function(e,t,n){var r=Y_(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Al.DEVICE_PIXEL_CONTENT_BOX:return o;case Al.BORDER_BOX:return i;default:return a}},xL=function(){function e(t){var n=Y_(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Va([n.borderBoxSize]),this.contentBoxSize=Va([n.contentBoxSize]),this.devicePixelContentBoxSize=Va([n.devicePixelContentBoxSize])}return e}(),X_=function(e){if(U_(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},_L=function(){var e=1/0,t=[];Wa.forEach(function(o){if(o.activeTargets.length!==0){var s=[];o.activeTargets.forEach(function(c){var u=new xL(c.target),f=X_(c.target);s.push(u),c.lastReportedSize=K_(c.target,c.observedBox),f<e&&(e=f)}),t.push(function(){o.callback.call(o.observer,s,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Z_=function(e){Wa.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(X_(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},wL=function(){var e=0;for(Z_(e);hL();)e=_L(),Z_(e);return pL()&&gL(),e>0},qg,J_=[],SL=function(){return J_.splice(0).forEach(function(e){return e()})},OL=function(e){if(!qg){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return SL()}).observe(n,r),qg=function(){n.textContent="".concat(t?t--:t++)}}J_.push(e),qg()},CL=function(e){OL(function(){requestAnimationFrame(e)})},Xu=0,EL=function(){return!!Xu},TL=250,kL={attributes:!0,characterData:!0,childList:!0,subtree:!0},Q_=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],e2=function(e){return e===void 0&&(e=0),Date.now()+e},Yg=!1,AL=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=TL),!Yg){Yg=!0;var r=e2(t);CL(function(){var i=!1;try{i=wL()}finally{if(Yg=!1,t=r-e2(),!EL())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,kL)};document.body?n():Pl.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Q_.forEach(function(n){return Pl.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Q_.forEach(function(n){return Pl.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Kg=new AL,t2=function(e){!Xu&&e>0&&Kg.start(),Xu+=e,!Xu&&Kg.stop()},PL=function(e){return!Gg(e)&&!vL(e)&&getComputedStyle(e).display==="inline"},jL=function(){function e(t,n){this.target=t,this.observedBox=n||Al.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=K_(this.target,this.observedBox,!0);return PL(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),DL=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Zu=new WeakMap,n2=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ju=function(){function e(){}return e.connect=function(t,n){var r=new DL(t,n);Zu.set(t,r)},e.observe=function(t,n,r){var i=Zu.get(t),a=i.observationTargets.length===0;n2(i.observationTargets,n)<0&&(a&&Wa.push(i),i.observationTargets.push(new jL(n,r&&r.box)),t2(1),Kg.schedule())},e.unobserve=function(t,n){var r=Zu.get(t),i=n2(r.observationTargets,n),a=r.observationTargets.length===1;i>=0&&(a&&Wa.splice(Wa.indexOf(r),1),r.observationTargets.splice(i,1),t2(-1))},e.disconnect=function(t){var n=this,r=Zu.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),$L=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ju.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!H_(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ju.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!H_(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ju.unobserve(this,t)},e.prototype.disconnect=function(){Ju.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const ML=b[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"],IL=e=>{const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),t},LL=typeof window<"u"&&"ResizeObserver"in window?window.ResizeObserver:$L;function NL(){}function Yo(e,t){const n=RL(),r=IL(t);return ML(()=>{let i=!1;const a=e&&"current"in e?e.current:e;if(!a)return NL;function o(s,l){i||r.current(s,l)}return n.subscribe(a,o),()=>{i=!0,n.unsubscribe(a,o)}},[e,n,r]),n.observer}function FL(){let e=!1,t=[];const n=new Map,r=new LL((i,a)=>{t=t.concat(i);function o(){const s=new Set;for(let l=0;l<t.length;l++){if(s.has(t[l].target))continue;s.add(t[l].target);const c=n.get(t[l].target);c==null||c.forEach(u=>u(t[l],a))}t=[],e=!1}e||window.requestAnimationFrame(o),e=!0});return{observer:r,subscribe(i,a){var o;r.observe(i);const s=(o=n.get(i))!==null&&o!==void 0?o:[];s.push(a),n.set(i,s)},unsubscribe(i,a){var o;const s=(o=n.get(i))!==null&&o!==void 0?o:[];if(s.length===1){r.unobserve(i),n.delete(i);return}const l=s.indexOf(a);l!==-1&&s.splice(l,1),n.set(i,s)}}}let Xg;const RL=()=>Xg||(Xg=FL());function Qu(e){var a,o;const t=b.useRef(null),[n,r]=b.useState({width:((a=t.current)==null?void 0:a.clientWidth)??0,height:((o=t.current)==null?void 0:o.clientWidth)??0}),i=b.useCallback(()=>r(s=>{var c,u;const l={width:((c=t.current)==null?void 0:c.clientWidth)??0,height:((u=t.current)==null?void 0:u.clientHeight)??0};return l.width!==s.width||l.height!==s.height?l:s}),[]);return b.useEffect(()=>i(),[t,i]),Yo(t,()=>i()),g.jsx(zL,{ref:t,className:e.className,style:{height:e.height},children:g.jsx(BL,{children:e.children(n)})})}const zL=Pe.div`
113
+ `;function R_(e){const{t}=Ie(),[n]=Pt(),{author:r,onClick:i}=e,[a,o]=b.useState(null),s=Ba(),l=s.dateFormat?s.dateFormat:"date-time",c=b.useCallback((u,f)=>{let d;switch(typeof u=="number"?d=Ae.fromMillis(u):d=Ae.fromISO(u),f){case"since":{Ae.now().toMillis()-d.toMillis()<60*1e3?o(t("Less than a minute ago")):o(d.toRelative());break}default:o(cL(d.toJSDate()));break}},[t]);return b.useEffect(()=>{if(c(e.value,l),l==="since"){const u=setInterval(()=>c(e.value,l),1e3);return()=>clearTimeout(u)}},[l,e.value,c]),e.value?g.jsxs(fL,{className:"date-time",children:[a,r&&g.jsxs("span",{children:[" ",n.by," "]}),i?g.jsx(T.Button,{variant:"link",isInline:!0,onClick:i,children:r}):g.jsx("span",{children:r})]}):g.jsx(g.Fragment,{})}function dL(e){const t=b.useMemo(()=>new Date(e.start??0).valueOf(),[e.start]),n=b.useMemo(()=>new Date(e.finish??0).valueOf(),[e.finish]),[r,i]=b.useState(Math.max(0,n-t.valueOf()));b.useEffect(()=>{const u=setInterval(()=>{t&&(e.finish?i(Math.max(0,n-t)):i(Math.max(0,Date.now()-t)))},1e3);return()=>clearTimeout(u)},[t,n,e.finish]);const a=Math.floor(r/1e3),o=Math.floor(a%60),s=Math.floor(a/60%60),l=Math.floor(a/60/60%24),c=Math.floor(a/60/60/24);return t?g.jsxs(T.Split,{children:[c!==0&&g.jsxs(T.SplitItem,{children:[c,"d"," "]}),l!==0&&g.jsxs(T.SplitItem,{children:[l,"h"," "]}),s!==0&&g.jsxs(T.SplitItem,{children:[s,"m"," "]}),g.jsxs(T.SplitItem,{children:[o,"s"]})]}):g.jsx(g.Fragment,{})}function z_(e){return g.jsx(T.LabelGroup,{numLabels:e.numLabels??999,style:e.noWrap?{flexWrap:"nowrap"}:void 0,children:e.labels?e.labels.map(t=>g.jsx(T.Label,{children:t},t)):e.labelsWithLinks.map(t=>g.jsx(T.Label,{color:"blue",children:g.jsx(Ot.Link,{to:t.link,children:t.name})},t.name))})}function kl(e){const t={};e.color&&(t.color=Lo(e.color)),e.size&&(t.size=e.size);let n=0;if(e.padRight)switch(e.size){case"sm":n=6;break;case"md":n=6;break;case"lg":n=8;break;case"xl":n=12;break}let r=0;if(e.padLeft)switch(e.size){case"sm":r=6;break;case"md":r=6;break;case"lg":r=8;break;case"xl":r=12;break}const i=b.Children.toArray(e.children).map(a=>b.isValidElement(a)?b.cloneElement(a,t):a);return g.jsx("div",{style:{paddingRight:n,paddingLeft:r},children:i})}function B_(e){const t=Ot.useNavigate();return g.jsxs(T.Flex,{spaceItems:{default:"spaceItemsNone"},flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsBaseline"},children:[e.icon&&((e==null?void 0:e.iconAlign)===void 0||e.iconAlign&&e.iconAlign!=="right")&&g.jsx(T.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:g.jsx(kl,{size:e.iconSize??"sm",color:e.iconColor??e.color,padRight:!0,children:e.icon})}),e.text&&g.jsx(T.FlexItem,{style:{maxWidth:"100%"},children:g.jsx("div",{style:{maxWidth:e.maxWidth??"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:e.color?Lo(e.color):void 0},children:!e.disableLinks&&(e.to||e.onClick)?g.jsx("a",{style:{color:e.color?Lo(e.color):void 0},href:e.to,onClick:n=>{if(n.preventDefault(),e.onClick)e.onClick();else{if(!e.to)return;t(e.to)}},children:e.text}):g.jsx(g.Fragment,{children:e.text})})}),e.icon&&e.iconAlign==="right"&&g.jsx(T.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:g.jsx(kl,{size:e.iconSize??"sm",padLeft:!0,color:e.iconColor??e.color,children:e.icon})})]})}var Wa=[],hL=function(){return Wa.some(function(e){return e.activeTargets.length>0})},pL=function(){return Wa.some(function(e){return e.skippedTargets.length>0})},W_="ResizeObserver loop completed with undelivered notifications.",gL=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:W_}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=W_),window.dispatchEvent(e)},Al;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Al||(Al={}));var Va=function(e){return Object.freeze(e)},mL=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Va(this)}return e}(),V_=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Va(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,a=t.right,o=t.bottom,s=t.left,l=t.width,c=t.height;return{x:n,y:r,top:i,right:a,bottom:o,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Gg=function(e){return e instanceof SVGElement&&"getBBox"in e},U_=function(e){if(Gg(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},H_=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},vL=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Pl=typeof window<"u"?window:{},Ku=new WeakMap,G_=/auto|scroll/,yL=/^tb|vertical/,bL=/msie|trident/i.test(Pl.navigator&&Pl.navigator.userAgent),Vr=function(e){return parseFloat(e||"0")},qo=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new mL((n?t:e)||0,(n?e:t)||0)},q_=Va({devicePixelContentBoxSize:qo(),borderBoxSize:qo(),contentBoxSize:qo(),contentRect:new V_(0,0,0,0)}),Y_=function(e,t){if(t===void 0&&(t=!1),Ku.has(e)&&!t)return Ku.get(e);if(U_(e))return Ku.set(e,q_),q_;var n=getComputedStyle(e),r=Gg(e)&&e.ownerSVGElement&&e.getBBox(),i=!bL&&n.boxSizing==="border-box",a=yL.test(n.writingMode||""),o=!r&&G_.test(n.overflowY||""),s=!r&&G_.test(n.overflowX||""),l=r?0:Vr(n.paddingTop),c=r?0:Vr(n.paddingRight),u=r?0:Vr(n.paddingBottom),f=r?0:Vr(n.paddingLeft),d=r?0:Vr(n.borderTopWidth),h=r?0:Vr(n.borderRightWidth),p=r?0:Vr(n.borderBottomWidth),m=r?0:Vr(n.borderLeftWidth),v=f+c,y=l+u,x=m+h,_=d+p,S=s?e.offsetHeight-_-e.clientHeight:0,w=o?e.offsetWidth-x-e.clientWidth:0,O=i?v+x:0,C=i?y+_:0,k=r?r.width:Vr(n.width)-O-w,$=r?r.height:Vr(n.height)-C-S,M=k+v+w+x,A=$+y+S+_,j=Va({devicePixelContentBoxSize:qo(Math.round(k*devicePixelRatio),Math.round($*devicePixelRatio),a),borderBoxSize:qo(M,A,a),contentBoxSize:qo(k,$,a),contentRect:new V_(f,l,k,$)});return Ku.set(e,j),j},K_=function(e,t,n){var r=Y_(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Al.DEVICE_PIXEL_CONTENT_BOX:return o;case Al.BORDER_BOX:return i;default:return a}},xL=function(){function e(t){var n=Y_(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Va([n.borderBoxSize]),this.contentBoxSize=Va([n.contentBoxSize]),this.devicePixelContentBoxSize=Va([n.devicePixelContentBoxSize])}return e}(),X_=function(e){if(U_(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},_L=function(){var e=1/0,t=[];Wa.forEach(function(o){if(o.activeTargets.length!==0){var s=[];o.activeTargets.forEach(function(c){var u=new xL(c.target),f=X_(c.target);s.push(u),c.lastReportedSize=K_(c.target,c.observedBox),f<e&&(e=f)}),t.push(function(){o.callback.call(o.observer,s,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Z_=function(e){Wa.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(X_(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},wL=function(){var e=0;for(Z_(e);hL();)e=_L(),Z_(e);return pL()&&gL(),e>0},qg,J_=[],SL=function(){return J_.splice(0).forEach(function(e){return e()})},OL=function(e){if(!qg){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return SL()}).observe(n,r),qg=function(){n.textContent="".concat(t?t--:t++)}}J_.push(e),qg()},CL=function(e){OL(function(){requestAnimationFrame(e)})},Xu=0,EL=function(){return!!Xu},TL=250,kL={attributes:!0,characterData:!0,childList:!0,subtree:!0},Q_=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],e2=function(e){return e===void 0&&(e=0),Date.now()+e},Yg=!1,AL=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=TL),!Yg){Yg=!0;var r=e2(t);CL(function(){var i=!1;try{i=wL()}finally{if(Yg=!1,t=r-e2(),!EL())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,kL)};document.body?n():Pl.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Q_.forEach(function(n){return Pl.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Q_.forEach(function(n){return Pl.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Kg=new AL,t2=function(e){!Xu&&e>0&&Kg.start(),Xu+=e,!Xu&&Kg.stop()},PL=function(e){return!Gg(e)&&!vL(e)&&getComputedStyle(e).display==="inline"},jL=function(){function e(t,n){this.target=t,this.observedBox=n||Al.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=K_(this.target,this.observedBox,!0);return PL(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),DL=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Zu=new WeakMap,n2=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ju=function(){function e(){}return e.connect=function(t,n){var r=new DL(t,n);Zu.set(t,r)},e.observe=function(t,n,r){var i=Zu.get(t),a=i.observationTargets.length===0;n2(i.observationTargets,n)<0&&(a&&Wa.push(i),i.observationTargets.push(new jL(n,r&&r.box)),t2(1),Kg.schedule())},e.unobserve=function(t,n){var r=Zu.get(t),i=n2(r.observationTargets,n),a=r.observationTargets.length===1;i>=0&&(a&&Wa.splice(Wa.indexOf(r),1),r.observationTargets.splice(i,1),t2(-1))},e.disconnect=function(t){var n=this,r=Zu.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),$L=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Ju.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!H_(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ju.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!H_(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ju.unobserve(this,t)},e.prototype.disconnect=function(){Ju.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const ML=b[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"],IL=e=>{const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),t},LL=typeof window<"u"&&"ResizeObserver"in window?window.ResizeObserver:$L;function NL(){}function Yo(e,t){const n=RL(),r=IL(t);return ML(()=>{let i=!1;const a=e&&"current"in e?e.current:e;if(!a)return NL;function o(s,l){i||r.current(s,l)}return n.subscribe(a,o),()=>{i=!0,n.unsubscribe(a,o)}},[e,n,r]),n.observer}function FL(){let e=!1,t=[];const n=new Map,r=new LL((i,a)=>{t=t.concat(i);function o(){const s=new Set;for(let l=0;l<t.length;l++){if(s.has(t[l].target))continue;s.add(t[l].target);const c=n.get(t[l].target);c==null||c.forEach(u=>u(t[l],a))}t=[],e=!1}e||window.requestAnimationFrame(o),e=!0});return{observer:r,subscribe(i,a){var o;r.observe(i);const s=(o=n.get(i))!==null&&o!==void 0?o:[];s.push(a),n.set(i,s)},unsubscribe(i,a){var o;const s=(o=n.get(i))!==null&&o!==void 0?o:[];if(s.length===1){r.unobserve(i),n.delete(i);return}const l=s.indexOf(a);l!==-1&&s.splice(l,1),n.set(i,s)}}}let Xg;const RL=()=>Xg||(Xg=FL());function Qu(e){var a,o;const t=b.useRef(null),[n,r]=b.useState({width:((a=t.current)==null?void 0:a.clientWidth)??0,height:((o=t.current)==null?void 0:o.clientWidth)??0}),i=b.useCallback(()=>r(s=>{var c,u;const l={width:((c=t.current)==null?void 0:c.clientWidth)??0,height:((u=t.current)==null?void 0:u.clientHeight)??0};return l.width!==s.width||l.height!==s.height?l:s}),[]);return b.useEffect(()=>i(),[t,i]),Yo(t,()=>i()),g.jsx(zL,{ref:t,className:e.className,style:{height:e.height},children:g.jsx(BL,{children:e.children(n)})})}const zL=Pe.div`
114
114
  width: 100%;
115
115
  height: 100%;
116
116
  flex-grow: 1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "2.4.2052",
4
+ "version": "2.4.2054",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",