@ansible/ansible-ui-framework 2.4.2719 → 2.4.2720
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/{ChatbotPortal-C5DnmbU4.js → ChatbotPortal-MF9ZBaBS.js} +1 -1
- package/{ChatbotSideBarHeader-D7AY3qUq.js → ChatbotSideBarHeader-C3faSODb.js} +1 -1
- package/{index-BBemku3R.js → index-BfT9FlOX.js} +2 -1
- package/index.js +1 -1
- package/index.umd.cjs +1 -1
- package/package.json +1 -1
- package/publish/index.d.ts +154 -154
- /package/publish/{ChatbotPortal-C5DnmbU4.d.ts → ChatbotPortal-MF9ZBaBS.d.ts} +0 -0
- /package/publish/{ChatbotSideBarHeader-D7AY3qUq.d.ts → ChatbotSideBarHeader-C3faSODb.d.ts} +0 -0
- /package/publish/{index-BBemku3R.d.ts → index-BfT9FlOX.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as He, j as M } from "./index-
|
|
1
|
+
import { u as He, j as M } from "./index-BfT9FlOX.js";
|
|
2
2
|
import { useContext as je, createContext as Oe, useState as Se, useEffect as Be, useRef as Ze } from "react";
|
|
3
3
|
import Ye from "react-dom";
|
|
4
4
|
import { A as Te } from "./ansible-chatbot-jXPBfTRi.js";
|
|
@@ -3042,7 +3042,7 @@ const j4 = tn({
|
|
|
3042
3042
|
chatbotState: "disabled",
|
|
3043
3043
|
setChatbotState: () => {
|
|
3044
3044
|
}
|
|
3045
|
-
}), D4 = () => mt(j4), M4 = GT(() => import("./ChatbotPortal-
|
|
3045
|
+
}), D4 = () => mt(j4), M4 = GT(() => import("./ChatbotPortal-MF9ZBaBS.js")), P4 = () => /* @__PURE__ */ g.jsx(YT, { fallback: /* @__PURE__ */ g.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ g.jsx(M4, {}) }), I4 = GT(() => import("./ChatbotSideBarHeader-C3faSODb.js")), L4 = () => {
|
|
3046
3046
|
const { t: e } = Me();
|
|
3047
3047
|
return /* @__PURE__ */ g.jsx(YT, { fallback: /* @__PURE__ */ g.jsx("span", { children: e("Loading...") }), children: /* @__PURE__ */ g.jsx(I4, {}) });
|
|
3048
3048
|
}, R4 = Te(JP)`
|
|
@@ -34878,6 +34878,7 @@ function Xie(e) {
|
|
|
34878
34878
|
MI,
|
|
34879
34879
|
{
|
|
34880
34880
|
"data-cy": "progress",
|
|
34881
|
+
"data-testid": "progress",
|
|
34881
34882
|
value: w / h.length * 100,
|
|
34882
34883
|
title: F,
|
|
34883
34884
|
size: PI.lg,
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as s, B as o, A as t, C as r, aW as l, aY as i, aV as n, aX as g, aZ as b, aU as u, aQ as P, D as d, af as m, ae as C, E as c, bo as T, bm as D, F as p, G as S, bs as h, ab as F, H as v, k as B, I as f, L as I, a2 as A, P as y, r as N, q as x, s as k, t as w, w as E, y as O, z as L, J as M, M as V, N as R, Q as W, O as j, K as G, U as z, X as U, V as H, Y as q, aP as Q, Z as J, _ as K, a4 as X, W as Y, an as Z, aq as _, ac as $, ad as aa, ao as ea, ai as sa, ap as oa, aj as ta, ak as ra, al as la, ar as ia, as as na, at as ga, au as ba, av as ua, aF as Pa, aH as da, ay as ma, a9 as Ca, aa as ca, aw as Ta, aL as Da, aM as pa, bg as Sa, aN as ha, aR as Fa, aT as va, bf as Ba, ax as fa, bh as Ia, bj as Aa, br as ya, R as Na, S as xa, a8 as ka, aO as wa, a_ as Ea, T as Oa, bn as La, bi as Ma, bq as Va, bp as Ra, aC as Wa, aD as ja, aE as Ga, bz as za, by as Ua, bx as Ha, bw as qa, x as Qa, bB as Ja, aA as Ka, g as Xa, bk as Ya, ah as Za, bA as _a, a as $a, e as ae, c as ee, f as se, p as oe, i as te, h as re, b as le, az as ie, aB as ne, bl as ge, n as be, a0 as ue, a1 as Pe, aS as de, b8 as me, b7 as Ce, b3 as ce, b5 as Te, b6 as De, bd as pe, am as Se, bt as he, aJ as Fe, bu as ve, a3 as Be, o as fe, v as Ie, a6 as Ae, a5 as ye, aI as Ne, aG as xe, aK as ke, u as we, be as Ee, l as Oe, a7 as Le, ba as Me, bb as Ve, bc as Re, b9 as We, bv as je, b1 as Ge, b4 as ze, b0 as Ue, b2 as He, a$ as qe, m as Qe, ag as Je } from "./index-
|
|
1
|
+
import { $ as s, B as o, A as t, C as r, aW as l, aY as i, aV as n, aX as g, aZ as b, aU as u, aQ as P, D as d, af as m, ae as C, E as c, bo as T, bm as D, F as p, G as S, bs as h, ab as F, H as v, k as B, I as f, L as I, a2 as A, P as y, r as N, q as x, s as k, t as w, w as E, y as O, z as L, J as M, M as V, N as R, Q as W, O as j, K as G, U as z, X as U, V as H, Y as q, aP as Q, Z as J, _ as K, a4 as X, W as Y, an as Z, aq as _, ac as $, ad as aa, ao as ea, ai as sa, ap as oa, aj as ta, ak as ra, al as la, ar as ia, as as na, at as ga, au as ba, av as ua, aF as Pa, aH as da, ay as ma, a9 as Ca, aa as ca, aw as Ta, aL as Da, aM as pa, bg as Sa, aN as ha, aR as Fa, aT as va, bf as Ba, ax as fa, bh as Ia, bj as Aa, br as ya, R as Na, S as xa, a8 as ka, aO as wa, a_ as Ea, T as Oa, bn as La, bi as Ma, bq as Va, bp as Ra, aC as Wa, aD as ja, aE as Ga, bz as za, by as Ua, bx as Ha, bw as qa, x as Qa, bB as Ja, aA as Ka, g as Xa, bk as Ya, ah as Za, bA as _a, a as $a, e as ae, c as ee, f as se, p as oe, i as te, h as re, b as le, az as ie, aB as ne, bl as ge, n as be, a0 as ue, a1 as Pe, aS as de, b8 as me, b7 as Ce, b3 as ce, b5 as Te, b6 as De, bd as pe, am as Se, bt as he, aJ as Fe, bu as ve, a3 as Be, o as fe, v as Ie, a6 as Ae, a5 as ye, aI as Ne, aG as xe, aK as ke, u as we, be as Ee, l as Oe, a7 as Le, ba as Me, bb as Ve, bc as Re, b9 as We, bv as je, b1 as Ge, b4 as ze, b0 as Ue, b2 as He, a$ as qe, m as Qe, ag as Je } from "./index-BfT9FlOX.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BulkActionDialog,
|
|
4
4
|
o as BulkSelector,
|
package/index.umd.cjs
CHANGED
|
@@ -468,7 +468,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[aT]+=1);const oT=Cn.button`
|
|
|
468
468
|
display: flex;
|
|
469
469
|
gap: 6px;
|
|
470
470
|
align-items: baseline;
|
|
471
|
-
`;function spe(e){const{item:t,itemToCardFn:n,isSelected:r,selectItem:a,unselectItem:o,itemActions:i,showSelect:l,defaultCardSubtitle:s}=e,c=w.useMemo(()=>n(t),[t,n]),p=!!(r!=null&&r(t)),f=w.useCallback(()=>{r!=null&&r(t)?o==null||o(t):a==null||a(t)},[r,t,a,o]);return I.jsxs(Q.Card,{id:`card-${c.id}`,ouiaId:c.id,isLarge:!0,isSelectable:l,isSelected:p,isClickable:l,style:{transition:"box-shadow 0.25s",cursor:"default",maxWidth:"100%"},children:[I.jsx(Q.CardHeader,{selectableActions:l?{selectableActionId:`card-${c.id}-checkbox`,onChange:f}:void 0,style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:I.jsxs(u$e,{children:[I.jsxs(f$e,{children:[c.iconAboveTitle?null:c.icon&&I.jsx(CS,{size:"xl",children:c.icon}),I.jsxs(m$e,{children:[c.iconAboveTitle?I.jsx(p$e,{children:c.icon&&I.jsx(CS,{size:"xl",children:c.icon})}):null,I.jsx(Q.CardTitle,{children:c.title}),c.subtitle?I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:c.subtitle}):s&&I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:s})]})]}),c.badge&&c.badgeTooltip&&I.jsx(Q.FlexItem,{children:I.jsx("div",{onClick:g=>g.stopPropagation(),children:I.jsx(Q.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,children:I.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&I.jsx(Q.FlexItem,{children:I.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})]})}),I.jsx("div",{style:{overflow:"hidden",display:"flex",paddingBottom:16,flexGrow:1},children:I.jsx(uu,{children:c.cardBody})}),c.labels||i&&i.length?I.jsx(Q.CardFooter,{children:I.jsxs(g$e,{children:[I.jsx(v$e,{children:c.labels&&I.jsx(Q.LabelGroup,{numLabels:999,children:c.labels.map(g=>I.jsx(Q.Label,{color:g.color,icon:g.icon,variant:g.variant,children:I.jsx(Q.Truncate,{content:g.label,style:{minWidth:0}})},g.label))})}),i&&i.length?I.jsx("div",{style:{marginRight:-16,alignSelf:"end",justifySelf:"flex-end",flexGrow:1},children:I.jsx(pu,{actions:i,position:"right",selectedItem:t,iconOnly:!0})}):null]})}):null,c.alertTitle&&I.jsx(Q.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function cpe(e,t){const n=w.useMemo(()=>{let c,p,f;const g=[];let v;const b=[];for(const y of e)if(y.card!=="hidden")switch(y.type){case"description":f||(f=y);break;case"labels":v||(v=y);break;case"count":g.push(y);break;default:switch(y.card){case"name":c=y;break;case"subtitle":p=y;break;case"description":f=y;break;default:b.push(y);break}break}return{nameColumn:c,subtitleColumn:p,descriptionColumn:f,countColumns:g,cardColumns:b,labelColumn:v}},[e]),{nameColumn:r,subtitleColumn:a,descriptionColumn:o,countColumns:i,cardColumns:l,labelColumn:s}=n;return w.useMemo(()=>c=>{var x,E;let p=!!o;o!=null&&o.value&&!o.value(c)&&(p=!1);const f=l.filter(C=>!C.value||C.value(c)),g=r&&"to"in r?r.to:void 0;let v=r&&"value"in r?r.value:void 0;v||(v=r&&"cell"in r?r.cell:void 0);const b=(v==null?void 0:v(c))??"",y={id:t(c),icon:(x=r==null?void 0:r.icon)==null?void 0:x.call(r,c),title:I.jsx(fa.Link,{to:(g==null?void 0:g(c))??"",style:{whiteSpace:"normal",textWrap:"balance"},children:typeof b=="string"?b.split("/").map((C,R)=>I.jsx("div",{children:C},R)):(v==null?void 0:v(c))??""}),subtitle:a&&(!a.value||a.value(c))&&I.jsx(si,{column:a,item:c}),cardBody:I.jsxs(Q.DescriptionList,{isCompact:!0,style:{paddingLeft:32,paddingRight:32},children:[p&&o&&I.jsx(ry,{children:o.type==="description"?I.jsx("div",{children:o.value(c)}):I.jsx(si,{column:o,item:c})},o.id??o.header),f.map(C=>I.jsx(ry,{label:C.header,children:I.jsx(si,{column:C,item:c})},C.id??C.header)),i.length>0&&I.jsx(ry,{children:I.jsx(ipe,{children:i.map((C,R)=>I.jsxs(lpe,{children:[I.jsx(si,{column:C,item:c}),I.jsx(ope,{children:C.header})]},R))})},"count-columns")]}),labels:s&&((E=s.value(c))==null?void 0:E.map(C=>({label:C})))};return!p&&f.length===0&&i.length===0&&(y.cardBody=I.jsx("div",{style:{flexGrow:1}})),y},[l,i,o,s,r,a,t])}function dpe(e){return I.jsxs(Q.EmptyState,{icon:e.icon??Ht.PlusCircleIcon,titleText:e.title,isFullHeight:!0,children:[e.description&&I.jsx(Q.EmptyStateBody,{style:{maxInlineSize:"50ch",textWrap:"pretty"},children:e.description}),e.children&&I.jsx(Q.EmptyStateFooter,{children:I.jsx(Q.EmptyStateActions,{children:e.children})})]})}function upe(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:a,selectItem:o,unselectItem:i,rowActions:l,showSelect:s,defaultSubtitle:c,itemCount:p,clearAllFilters:f}=e,[g]=Na(),v=cpe(r,t),b=w.useMemo(()=>I.jsx(d$e,{size:400,children:n==null?void 0:n.map(y=>I.jsx(spe,{item:y,itemToCardFn:v,isSelected:a,selectItem:o,unselectItem:i,itemActions:l,showSelect:s,defaultCardSubtitle:c},t(y)))}),[n,t,v,a,o,i,l,s,c]);return I.jsx(I.Fragment,{children:p===0?I.jsx(dpe,{icon:Ht.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:I.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):I.jsx(I.Fragment,{children:b})})}function h$e(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:a,selectItem:o,unselectItem:i,rowActions:l,defaultSubtitle:s,showSelect:c,itemCount:p,clearAllFilters:f}=e,[g]=Na(),v=b$e(r,t,a,o,i,l,s,c);return I.jsx(I.Fragment,{children:p===0?I.jsx(dpe,{icon:Ht.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:I.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):I.jsx(Q.DataList,{"aria-label":"TODO",children:n==null?void 0:n.map(v)})})}function b$e(e,t,n,r,a,o,i,l){const s=w.useMemo(()=>{let E,C,R;const N=[];let O;const P=[],M=[];for(const L of e)if(L.list!=="hidden")switch(L.type){case"description":R||(R=L);break;case"labels":O||(O=L);break;case"count":N.push(L);break;default:switch(L.list){case"name":E=L;break;case"subtitle":C=L;break;case"description":R=L;break;case"secondary":M.push(L);break;default:P.push(L);break}break}return{nameColumn:E,subtitleColumn:C,descriptionColumn:R,countColumns:N,primaryColumns:P,secondaryColumns:M,labelColumn:O}},[e]),c=w.useCallback(E=>{n!=null&&n(E)?a==null||a(E):r==null||r(E)},[n,r,a]),{nameColumn:p,subtitleColumn:f,descriptionColumn:g,countColumns:v,primaryColumns:b,secondaryColumns:y,labelColumn:x}=s;return w.useCallback(E=>{const C=t(E),R=n==null?void 0:n(E);return I.jsx(Q.DataListItem,{"aria-labelledby":`data-list-${C}`,isExpanded:R,children:I.jsxs(Q.DataListItemRow,{children:[l&&I.jsx(Q.DataListCheck,{"aria-labelledby":`data-list-check-${C}`,name:`data-list-check-${C}`,isChecked:n==null?void 0:n(E),onClick:()=>c(E),"data-cy":"data-list-check"}),I.jsx(Q.DataListItemCells,{dataListCells:[I.jsx(Q.DataListCell,{width:5,children:I.jsx(Q.Flex,{children:I.jsxs(Q.Stack,{hasGutter:!0,children:[I.jsxs(Q.Flex,{alignItems:{default:"alignItemsCenter"},children:[(p==null?void 0:p.icon)&&I.jsx(CS,{size:"xl",children:p==null?void 0:p.icon(E)}),I.jsxs(Q.Stack,{children:[I.jsx(Q.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},"data-cy":"data-list-name",children:I.jsx("span",{id:`data-list-${C}`,children:I.jsx(si,{column:p,item:E})})}),f?I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:I.jsx(si,{column:f,item:E})}):i&&I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:i})]})]}),(g||b.length>0||v.length>0||x)&&I.jsxs(Q.DescriptionList,{isCompact:!0,children:[g&&(!g.value||g.value(E))&&I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:g,item:E})})},g.header),b.map(N=>N.value&&!N.value(E)?I.jsx(I.Fragment,{}):I.jsxs(Q.DescriptionListGroup,{children:[I.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:N,item:E})})]},N.header)),v.length>0&&I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:v.map((N,O)=>I.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[I.jsx(si,{column:N,item:E}),I.jsx("small",{style:{opacity:.7},children:N.header})]},O))})})},"counts"),x&&I.jsxs(I.Fragment,{children:[I.jsx("div",{style:{flexGrow:1}}),I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:x,item:E})})},x.header)]})]})]})})},"primary"),y.length>0?I.jsx(Q.DataListCell,{children:I.jsx(Q.DescriptionList,{isCompact:!0,children:y.map(N=>N.value&&!N.value(E)?I.jsx(I.Fragment,{}):I.jsxs(Q.DescriptionListGroup,{children:[I.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:N,item:E})})]},N.header))})},"secondary"):null]}),o&&I.jsx(Q.DataListAction,{"aria-labelledby":"check-action-item1 check-action-action1",id:"check-action-action1","aria-label":"Actions",style:{whiteSpace:"nowrap"},"data-cy":"data-list-action",children:I.jsx(pu,{actions:o,position:"right",selectedItem:E,iconOnly:!0,collapse:"always"})})]})},C)},[t,n,l,p,f,i,b,g,v,x,y,o,c])}function SE(e){const{id:t,toolbarActions:n,filterState:r,error:a,itemCount:o}=e,{t:i}=jn(),l=e.showSelect||(n==null?void 0:n.find(E=>"selection"in E&&E.selection===vr.Multiple))!==void 0,s=!e.disableTableView,c=!e.disableListView,[p,f]=w.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return kr.Table;case"list":return kr.List;case"cards":return kr.Cards}return e.defaultTableView??(s?kr.Table:c?kr.List:kr.Cards)}),g=w.useCallback(E=>{f(E),e.id&&localStorage.setItem(e.id+"-view",E)},[e.id]),{openColumnManagement:v,managedColumns:b}=l$e((t??"")+"-columns",e.tableColumns,p!==kr.Table,p!==kr.List,p!==kr.Cards),y=XJe(e.tableColumns);if(a)return I.jsx(JJe,{titleProp:e.errorStateTitle,message:a.message});if(o===0&&Object.keys(r??{}).length===0)return e.emptyState?e.emptyState:I.jsx(e$e,{title:e.emptyStateTitle??i`No data`,description:e.emptyStateDescription,icon:e.emptyStateNoDataIcon,button:e.emptyStateButtonClick&&I.jsx(Q.Button,{"data-cy":e.emptyStateButtonText?E$e(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&I.jsx(Q.Flex,{justifyContent:{default:"justifyContentCenter"},children:I.jsx(pu,{actions:e.emptyStateActions})})});let x=e.topContent;return x&&(x=I.jsx(Q.PageSection,{hasBodyWrapper:!1,padding:{default:"noPadding"},children:e.topContent})),I.jsxs(I.Fragment,{children:[I.jsx(Jue,{...e,openColumnModal:e.id?v:void 0,showSelect:l,viewType:p,setViewType:g,sortOptions:y,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),x,p===kr.Table&&I.jsx(_$e,{...e,tableColumns:b}),p===kr.List&&I.jsx(uu,{marginLeft:20,marginRight:20,children:I.jsx(h$e,{...e,showSelect:l,tableColumns:b})}),p===kr.Cards&&I.jsx(uu,{marginLeft:20,marginRight:20,children:I.jsx(upe,{...e,showSelect:l,tableColumns:b})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&I.jsx(c$e,{...e,topBorder:!e.autoHidePagination})]})}function _$e(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:a,isSelectMultiple:o,keyFn:i,rowActions:l,toolbarActions:s,itemCount:c,clearAllFilters:p,onSelect:f,unselectAll:g,maxSelections:v}=e,b=hj(e.tableColumns),y=Pue(e.tableColumns),x=Due(e.tableColumns),E=w.useMemo(()=>{const L=[];if(y.length)for(const G of y)"value"in G?L.push(B=>{var q;const j=(q=G.value)==null?void 0:q.call(G,B);if(j)return I.jsx("div",{children:j},G.id??G.header)}):L.push(B=>G.cell(B));return x.length&&L.push(G=>x.some(j=>{var q;return((q=j.value)==null?void 0:q.call(j,G))!==void 0})?I.jsx(kue,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:I.jsx(Bue,{item:G,columns:x})},i(G)):null),e.expandedRow&&L.push(e.expandedRow),L.length===0?void 0:G=>L.map(j=>j(G)).filter(j=>j!=null).length===0?null:I.jsx(Q.Stack,{hasGutter:!0,children:L.map(j=>j(G))})},[y,x,i,e.expandedRow]),[C]=Na(),R=e.showSelect||(s==null?void 0:s.find(L=>"selection"in L&&L.selection===vr.Multiple))!==void 0,N=Em(),[O,P]=w.useState(0);let M;return c===void 0||t===void 0?M=I.jsx(s$e,{}):c===0?M=I.jsxs(Q.EmptyState,{icon:e.emptyStateIcon??Ht.SearchIcon,titleText:I.jsx(I.Fragment,{children:C.noResultsFound}),isFullHeight:!0,children:[I.jsx(Q.EmptyStateBody,{children:C.noResultsMatchCriteria}),I.jsx(Q.EmptyStateFooter,{children:p&&I.jsx(Q.EmptyStateActions,{children:I.jsx(Q.Button,{variant:"primary",onClick:p,children:C.clearAllFilters})})})]}):M=I.jsx(uu,{marginLeft:20,marginRight:20,children:I.jsxs(Xn.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||N.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,style:{borderCollapse:"separate"},children:[I.jsx(y$e,{...e,showSelect:R,tableColumns:b,onSelect:f,expandedRow:E,expandColumnWidth:O,setExpandColumnWidth:P}),I.jsx(Xn.Tbody,{children:t.map((L,W)=>I.jsx(x$e,{columns:b,item:L,isItemSelected:a==null?void 0:a(L),isSelectMultiple:o,selectItem:n,unselectItem:r,rowActions:l,rowIndex:W,showSelect:R,unselectAll:g,onSelect:f,expandedRow:E,isLastRow:W===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:v,selectedItems:e.selectedItems,defaultExpandedRows:e.defaultExpandedRows,expandColumnWidth:O},i?i(L):W))})]})}),M}function y$e(e){const{tableColumns:t,rowActions:n,sort:r,setSort:a,sortDirection:o,setSortDirection:i,showSelect:l,onSelect:s,expandedRow:c,pageItems:p,isSelected:f,selectItems:g,unselectAll:v}=e,[b,y]=xJ(),x=w.useRef(null),E=w.useCallback(()=>{if(!x.current)return;const q=x.current.clientHeight;y(Y=>({...Y,stickyTop:q}))},[y]);rd(x,E);const{expandColumnWidth:C,setExpandColumnWidth:R}=e,N=w.useRef(null),O=w.useCallback(()=>{N.current&&R(N.current.clientWidth)},[R]);rd(N,O);const[P,M]=w.useState(0),L=w.useRef(null),W=w.useCallback(()=>{L.current&&M(L.current.clientWidth)},[]);rd(L,W),w.useEffect(()=>{y(q=>({...q,stickyLeft:C+P}))},[C,P,y]);const G=w.useRef(null),B=w.useCallback(()=>{if(!G.current)return;const q=G.current.clientWidth;y(Y=>({...Y,stickyRight:q}))},[y]);rd(G,B);const j=w.useCallback((q,Y)=>{if(Y.sort)return{onSort:(K,ae,oe)=>{Y.sort&&(a==null||a(Y.sort),i==null||i(oe))},sortBy:{index:Y.sort===r?q:void 0,direction:Y.sort===r?o:void 0,defaultDirection:Y.defaultSortDirection},columnIndex:q}},[a,i,r,o]);return I.jsx(Xn.Thead,{style:{background:"inherit"},children:I.jsxs(Xn.Tr,{style:{background:"inherit"},ref:x,children:[c&&I.jsx(Xn.Th,{"aria-label":"Expand",isStickyColumn:!0,stickyMinWidth:"1px",ref:N}),(l||s)&&I.jsx(Xn.Th,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"selections-column-header",style:{left:C},ref:L,select:{onSelect:(q,Y)=>{Y?g==null||g(p??[]):v==null||v()},isSelected:p&&p.length>0?p.every(q=>f==null?void 0:f(q)):!1}}),t.map((q,Y)=>I.jsx(Xn.Th,{"aria-label":q.header,sort:j(Y,q),modifier:"nowrap",style:{minWidth:q.minWidth===0?"1%":q.minWidth!==void 0?q.minWidth:void 0,maxWidth:q.maxWidth!==void 0?q.maxWidth:void 0,width:q.fullWidth?"100%":void 0},"data-cy":ad(q.header+"-column-header"),children:q.header},q.header)),n!==void 0&&I.jsx(Xn.Th,{"aria-label":"Actions",isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"action-column-header",ref:G})]})})}function x$e(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:a,isItemSelected:o,isSelectMultiple:i,item:l,rowActions:s,rowIndex:c,showSelect:p,onSelect:f,expandedRow:g,disableLastRowBorder:v,maxSelections:b,selectedItems:y}=e,x=g==null?void 0:g(l),{expandColumnWidth:E}=e,[C,R]=w.useState(!!e.defaultExpandedRows&&!!x),N=w.useCallback(P=>(y==null?void 0:y.length)===b?!(y!=null&&y.includes(P)):!1,[b,y]),O="id"in l&&(typeof l.id=="string"||typeof l.id=="number")?`row-id-${l.id.toString()}`:`row-${c}`;return I.jsxs(I.Fragment,{children:[I.jsxs(Xn.Tr,{style:{boxShadow:"unset",borderBottom:C||e.isLastRow&&v?"unset":void 0,cursor:f?"pointer":"default"},"data-testid":O,"data-cy":O,onClick:()=>{f&&(i||n==null||n(),i&&o?a==null||a(l):r==null||r(l),f(l))},children:[g&&I.jsx(Xn.Td,{expand:x?{rowIndex:c,isExpanded:C,onToggle:()=>R(P=>!P)}:void 0,"data-cy":"expand-column-cell",isStickyColumn:!0,stickyMinWidth:"1px",className:C&&x?"expanded":void 0}),p&&I.jsx(Xn.Td,{select:o!==void 0?{rowIndex:c,onSelect:(P,M)=>{M?r==null||r(l):a==null||a(l)},isSelected:o,isDisabled:b&&y?N(l):!1}:void 0,isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"checkbox-column-cell",style:{left:E},className:g&&C&&x?"expanded":void 0}),f&&I.jsx(Xn.Td,{select:{rowIndex:c,isSelected:o??!1,variant:i?"checkbox":"radio",isDisabled:b&&y?N(l):!1,props:{"aria-label":"Select row"}},isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"checkbox-column-cell"}),I.jsx(S$e,{columns:t,item:l,rowActions:s,expanded:!!g&&!!C&&!!x})]}),g&&C&&x&&I.jsxs(Xn.Tr,{isExpanded:C,style:{boxShadow:"unset"},children:[I.jsx(Xn.Td,{isStickyColumn:!0,stickyMinWidth:"1px"}),p&&I.jsx(Xn.Td,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"1px",style:{left:E}}),f&&I.jsx(Xn.Td,{isStickyColumn:!0,stickyMinWidth:"1px",style:{left:E}}),I.jsx(Xn.Td,{colSpan:t.length,children:I.jsx(Xn.CollapseColumn,{children:x})}),s!==void 0&&s.length>0&&I.jsx(Xn.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"1px",children:" "})]})]})}function S$e(e){const{columns:t,item:n,rowActions:r}=e,[a,o]=w.useState(!1);return I.jsxs(w.Fragment,{children:[t.map(i=>I.jsx(Xn.Td,{dataLabel:i.header,modifier:"nowrap",style:{width:i.minWidth===0?"0%":void 0},"data-cy":ad(i.header+"-column-cell"),"data-testid":ad(i.header+"-column-cell"),className:e.expanded?"expanded":void 0,children:I.jsx(si,{item:n,column:i})},i.header)),r!==void 0&&r.length>0&&I.jsx(Xn.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"1px",style:{zIndex:a?400:void 0},"data-cy":"actions-column-cell",className:e.expanded?"expanded":void 0,children:I.jsx(pu,{actions:r,selectedItem:n,position:"right",iconOnly:!0,onOpen:o})})]})}function E$e(e){return e.toLowerCase().split(" ").join("-")}function w$e(){const e=w.useRef(new AbortController);return w.useEffect(()=>{const t=e.current;return()=>t.abort()},[]),e.current}function ppe(e){const{title:t,keyFn:n,actionColumns:r,actionFn:a,onComplete:o,onClose:i,processingText:l,isDanger:s,errorAdapter:c=yE,description:p,statusParser:f}=e,{t:g}=jn(),[v,b]=w.useState(e.items),[y]=Na(),[x,E]=w.useState(!0),[C,R]=w.useState(0),[N,O]=w.useState(!1),[P,M]=w.useState(0),[L,W]=w.useState(""),[G,B]=w.useState(),j=w$e(),[q,Y]=Kp(),[K,ae]=w.useState([]),oe=w.useCallback(()=>{O(!0),j.abort(),E(!1),B(be=>{const ue={...be};for(const ke of v){const Ce=n(ke);ue[Ce]===void 0&&(ue[Ce]=g("Cancelled"))}return ue})},[j,v,n,g]),te=w.useCallback(()=>{Y(void 0),i==null||i(N?"canceled":L?"failures":"success",v.filter(be=>(G==null?void 0:G[n(be)])===null||(G==null?void 0:G[n(be)]).message),v.filter(be=>(G==null?void 0:G[n(be)])!==null&&typeof(G==null?void 0:G[n(be)])=="string"),v.filter(be=>(G==null?void 0:G[n(be)])===void 0)),o==null||o(K)},[L,N,v,n,i,o,Y,G,K]),ee=w.useCallback(()=>{W(""),E(!0),B(void 0),b(v.filter(be=>(G==null?void 0:G[n(be)])!==null&&typeof(G==null?void 0:G[n(be)])=="string")),R(C+1)},[v,n,C,G]),z=w.useMemo(()=>j.signal.aborted?y.canceledText:L?y.errorText:x?l??y.processingText:y.successText,[j.signal.aborted,L,x,l,y.canceledText,y.errorText,y.processingText,y.successText]),re=w.useMemo(()=>{if(L||N)return Q.ProgressVariant.danger;if(P===v.length)return Q.ProgressVariant.success},[L,N,v.length,P]);w.useEffect(()=>{function be(Ce,he){if(j.signal.aborted)return;let xe;f&&(xe=f(he)),B(Pe=>({...Pe??{},[Ce]:xe!==void 0?xe:null}))}function ue(Ce,he,xe){if(!j.signal.aborted){if(xe instanceof Error){const Pe=typeof he[0].message=="string"&&he.length===1?he[0].message:g("Unknown error");B(ie=>({...ie??{},[Ce]:Pe}))}else B(Pe=>({...Pe??{},[Ce]:g("Unknown error")}));W(y.errorText)}}async function ke(){const Ce=UJe(5);let he=0;const xe=[];await Promise.all(v.map(Pe=>Ce(async()=>{if(j.signal.aborted)return;const ie=n(Pe);try{const tt=await a(Pe,j.signal);be(ie,tt),xe.push(Pe)}catch(tt){const{genericErrors:rt,fieldErrors:lt}=c(tt),St=[...rt,...lt.filter(st=>st.message)];ue(ie,St,tt)}finally{j.signal.aborted||M(++he)}}))),ae([...K,...xe]),j.signal.aborted||E(!1)}ke()},[j,a,v,n,o,y.errorText,g,c,f,C]),w.useEffect(()=>{let be;return!x&&!L&&(be=setTimeout(()=>{te()},1e3)),()=>clearTimeout(be)},[x,L,te]);const ce=xE(v),$=RR(r),de=w.useMemo(()=>x?[I.jsx(Q.Button,{variant:"link",onClick:oe,children:g("Cancel")},"cancel")]:L?[I.jsx(Q.Button,{variant:"primary",onClick:ee,children:g("Retry")},"retry"),I.jsx(Q.Button,{variant:"secondary",onClick:te,children:g("Close")},"close")]:[],[L,x,oe,te,ee,g]);return I.jsxs(Q.Modal,{ouiaId:t,variant:Q.ModalVariant.medium,isOpen:!0,onClose:()=>{oe(),te()},"aria-label":t,children:[I.jsx(Q.ModalHeader,{title:t,titleIconVariant:s?"warning":void 0,description:p}),I.jsx(Q.ModalBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:I.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"var(--pf-t--global--border--color--default)"},children:I.jsx(SE,{pageItems:[...ce.paged],itemCount:v.length,tableColumns:[...$,{header:g("Status"),cell:be=>{const ue=n(be),ke=G==null?void 0:G[ue];return ke===void 0?I.jsxs("span",{style:{color:gD},children:[I.jsx(Ht.PendingIcon,{})," ",y.pendingText]}):ke===null?I.jsxs("span",{style:{color:fD},children:[I.jsx(Ht.CheckCircleIcon,{})," ",y.successText]}):ke.message&&ke.url?I.jsx("a",{href:ke.url,children:ke.message}):I.jsxs("span",{style:{color:mD},children:[I.jsx(Ht.ExclamationCircleIcon,{})," ",G==null?void 0:G[ue]]})}}],keyFn:n,compact:!0,errorStateTitle:"",emptyStateTitle:g("No items"),autoHidePagination:!0,disableBodyPadding:!0,...ce},"status")})}),I.jsx(Q.ModalBody,{style:{paddingTop:0},children:I.jsx(Q.Progress,{"data-cy":"progress",value:P/v.length*100,title:z,size:Q.ProgressSize.lg,variant:re})}),I.jsx(Q.ModalFooter,{children:de})]})}function fpe(e=yE,t){const[n,r]=Kp(),[a,o]=w.useState();return w.useEffect(()=>{if(a){const i=(l,s,c,p)=>{var f;o(void 0),(f=a.onClose)==null||f.call(a,l,s,c,p)};r(I.jsx(ppe,{...a,errorAdapter:a.errorAdapter??e,statusParser:a.statusParser??t,onClose:i}))}else r(void 0)},[a,r,e,t]),o}function mpe(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;if(typeof e=="string"){if(typeof t=="string")return EE(e,t);if(typeof t=="number")return EE(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return gpe(e,t);if(typeof t=="string")return EE(e.toString(),t)}return 0}function EE(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function gpe(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const C$e=Cn.div`
|
|
471
|
+
`;function spe(e){const{item:t,itemToCardFn:n,isSelected:r,selectItem:a,unselectItem:o,itemActions:i,showSelect:l,defaultCardSubtitle:s}=e,c=w.useMemo(()=>n(t),[t,n]),p=!!(r!=null&&r(t)),f=w.useCallback(()=>{r!=null&&r(t)?o==null||o(t):a==null||a(t)},[r,t,a,o]);return I.jsxs(Q.Card,{id:`card-${c.id}`,ouiaId:c.id,isLarge:!0,isSelectable:l,isSelected:p,isClickable:l,style:{transition:"box-shadow 0.25s",cursor:"default",maxWidth:"100%"},children:[I.jsx(Q.CardHeader,{selectableActions:l?{selectableActionId:`card-${c.id}-checkbox`,onChange:f}:void 0,style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:I.jsxs(u$e,{children:[I.jsxs(f$e,{children:[c.iconAboveTitle?null:c.icon&&I.jsx(CS,{size:"xl",children:c.icon}),I.jsxs(m$e,{children:[c.iconAboveTitle?I.jsx(p$e,{children:c.icon&&I.jsx(CS,{size:"xl",children:c.icon})}):null,I.jsx(Q.CardTitle,{children:c.title}),c.subtitle?I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:c.subtitle}):s&&I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:s})]})]}),c.badge&&c.badgeTooltip&&I.jsx(Q.FlexItem,{children:I.jsx("div",{onClick:g=>g.stopPropagation(),children:I.jsx(Q.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,children:I.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&I.jsx(Q.FlexItem,{children:I.jsx(Q.Label,{color:c.badgeColor,children:c.badge})})]})}),I.jsx("div",{style:{overflow:"hidden",display:"flex",paddingBottom:16,flexGrow:1},children:I.jsx(uu,{children:c.cardBody})}),c.labels||i&&i.length?I.jsx(Q.CardFooter,{children:I.jsxs(g$e,{children:[I.jsx(v$e,{children:c.labels&&I.jsx(Q.LabelGroup,{numLabels:999,children:c.labels.map(g=>I.jsx(Q.Label,{color:g.color,icon:g.icon,variant:g.variant,children:I.jsx(Q.Truncate,{content:g.label,style:{minWidth:0}})},g.label))})}),i&&i.length?I.jsx("div",{style:{marginRight:-16,alignSelf:"end",justifySelf:"flex-end",flexGrow:1},children:I.jsx(pu,{actions:i,position:"right",selectedItem:t,iconOnly:!0})}):null]})}):null,c.alertTitle&&I.jsx(Q.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function cpe(e,t){const n=w.useMemo(()=>{let c,p,f;const g=[];let v;const b=[];for(const y of e)if(y.card!=="hidden")switch(y.type){case"description":f||(f=y);break;case"labels":v||(v=y);break;case"count":g.push(y);break;default:switch(y.card){case"name":c=y;break;case"subtitle":p=y;break;case"description":f=y;break;default:b.push(y);break}break}return{nameColumn:c,subtitleColumn:p,descriptionColumn:f,countColumns:g,cardColumns:b,labelColumn:v}},[e]),{nameColumn:r,subtitleColumn:a,descriptionColumn:o,countColumns:i,cardColumns:l,labelColumn:s}=n;return w.useMemo(()=>c=>{var x,E;let p=!!o;o!=null&&o.value&&!o.value(c)&&(p=!1);const f=l.filter(C=>!C.value||C.value(c)),g=r&&"to"in r?r.to:void 0;let v=r&&"value"in r?r.value:void 0;v||(v=r&&"cell"in r?r.cell:void 0);const b=(v==null?void 0:v(c))??"",y={id:t(c),icon:(x=r==null?void 0:r.icon)==null?void 0:x.call(r,c),title:I.jsx(fa.Link,{to:(g==null?void 0:g(c))??"",style:{whiteSpace:"normal",textWrap:"balance"},children:typeof b=="string"?b.split("/").map((C,R)=>I.jsx("div",{children:C},R)):(v==null?void 0:v(c))??""}),subtitle:a&&(!a.value||a.value(c))&&I.jsx(si,{column:a,item:c}),cardBody:I.jsxs(Q.DescriptionList,{isCompact:!0,style:{paddingLeft:32,paddingRight:32},children:[p&&o&&I.jsx(ry,{children:o.type==="description"?I.jsx("div",{children:o.value(c)}):I.jsx(si,{column:o,item:c})},o.id??o.header),f.map(C=>I.jsx(ry,{label:C.header,children:I.jsx(si,{column:C,item:c})},C.id??C.header)),i.length>0&&I.jsx(ry,{children:I.jsx(ipe,{children:i.map((C,R)=>I.jsxs(lpe,{children:[I.jsx(si,{column:C,item:c}),I.jsx(ope,{children:C.header})]},R))})},"count-columns")]}),labels:s&&((E=s.value(c))==null?void 0:E.map(C=>({label:C})))};return!p&&f.length===0&&i.length===0&&(y.cardBody=I.jsx("div",{style:{flexGrow:1}})),y},[l,i,o,s,r,a,t])}function dpe(e){return I.jsxs(Q.EmptyState,{icon:e.icon??Ht.PlusCircleIcon,titleText:e.title,isFullHeight:!0,children:[e.description&&I.jsx(Q.EmptyStateBody,{style:{maxInlineSize:"50ch",textWrap:"pretty"},children:e.description}),e.children&&I.jsx(Q.EmptyStateFooter,{children:I.jsx(Q.EmptyStateActions,{children:e.children})})]})}function upe(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:a,selectItem:o,unselectItem:i,rowActions:l,showSelect:s,defaultSubtitle:c,itemCount:p,clearAllFilters:f}=e,[g]=Na(),v=cpe(r,t),b=w.useMemo(()=>I.jsx(d$e,{size:400,children:n==null?void 0:n.map(y=>I.jsx(spe,{item:y,itemToCardFn:v,isSelected:a,selectItem:o,unselectItem:i,itemActions:l,showSelect:s,defaultCardSubtitle:c},t(y)))}),[n,t,v,a,o,i,l,s,c]);return I.jsx(I.Fragment,{children:p===0?I.jsx(dpe,{icon:Ht.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:I.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):I.jsx(I.Fragment,{children:b})})}function h$e(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:a,selectItem:o,unselectItem:i,rowActions:l,defaultSubtitle:s,showSelect:c,itemCount:p,clearAllFilters:f}=e,[g]=Na(),v=b$e(r,t,a,o,i,l,s,c);return I.jsx(I.Fragment,{children:p===0?I.jsx(dpe,{icon:Ht.SearchIcon,title:g.noResultsFound,description:g.noResultsMatchCriteria,children:I.jsx(Q.Button,{variant:"primary",onClick:f,children:g.clearAllFilters})}):I.jsx(Q.DataList,{"aria-label":"TODO",children:n==null?void 0:n.map(v)})})}function b$e(e,t,n,r,a,o,i,l){const s=w.useMemo(()=>{let E,C,R;const N=[];let O;const P=[],M=[];for(const L of e)if(L.list!=="hidden")switch(L.type){case"description":R||(R=L);break;case"labels":O||(O=L);break;case"count":N.push(L);break;default:switch(L.list){case"name":E=L;break;case"subtitle":C=L;break;case"description":R=L;break;case"secondary":M.push(L);break;default:P.push(L);break}break}return{nameColumn:E,subtitleColumn:C,descriptionColumn:R,countColumns:N,primaryColumns:P,secondaryColumns:M,labelColumn:O}},[e]),c=w.useCallback(E=>{n!=null&&n(E)?a==null||a(E):r==null||r(E)},[n,r,a]),{nameColumn:p,subtitleColumn:f,descriptionColumn:g,countColumns:v,primaryColumns:b,secondaryColumns:y,labelColumn:x}=s;return w.useCallback(E=>{const C=t(E),R=n==null?void 0:n(E);return I.jsx(Q.DataListItem,{"aria-labelledby":`data-list-${C}`,isExpanded:R,children:I.jsxs(Q.DataListItemRow,{children:[l&&I.jsx(Q.DataListCheck,{"aria-labelledby":`data-list-check-${C}`,name:`data-list-check-${C}`,isChecked:n==null?void 0:n(E),onClick:()=>c(E),"data-cy":"data-list-check"}),I.jsx(Q.DataListItemCells,{dataListCells:[I.jsx(Q.DataListCell,{width:5,children:I.jsx(Q.Flex,{children:I.jsxs(Q.Stack,{hasGutter:!0,children:[I.jsxs(Q.Flex,{alignItems:{default:"alignItemsCenter"},children:[(p==null?void 0:p.icon)&&I.jsx(CS,{size:"xl",children:p==null?void 0:p.icon(E)}),I.jsxs(Q.Stack,{children:[I.jsx(Q.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},"data-cy":"data-list-name",children:I.jsx("span",{id:`data-list-${C}`,children:I.jsx(si,{column:p,item:E})})}),f?I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:I.jsx(si,{column:f,item:E})}):i&&I.jsx(Q.Content,{component:"small",style:{opacity:.7},children:i})]})]}),(g||b.length>0||v.length>0||x)&&I.jsxs(Q.DescriptionList,{isCompact:!0,children:[g&&(!g.value||g.value(E))&&I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:g,item:E})})},g.header),b.map(N=>N.value&&!N.value(E)?I.jsx(I.Fragment,{}):I.jsxs(Q.DescriptionListGroup,{children:[I.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:N,item:E})})]},N.header)),v.length>0&&I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:v.map((N,O)=>I.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[I.jsx(si,{column:N,item:E}),I.jsx("small",{style:{opacity:.7},children:N.header})]},O))})})},"counts"),x&&I.jsxs(I.Fragment,{children:[I.jsx("div",{style:{flexGrow:1}}),I.jsx(Q.DescriptionListGroup,{children:I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:x,item:E})})},x.header)]})]})]})})},"primary"),y.length>0?I.jsx(Q.DataListCell,{children:I.jsx(Q.DescriptionList,{isCompact:!0,children:y.map(N=>N.value&&!N.value(E)?I.jsx(I.Fragment,{}):I.jsxs(Q.DescriptionListGroup,{children:[I.jsx(Q.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:N.header}),I.jsx(Q.DescriptionListDescription,{children:I.jsx(si,{column:N,item:E})})]},N.header))})},"secondary"):null]}),o&&I.jsx(Q.DataListAction,{"aria-labelledby":"check-action-item1 check-action-action1",id:"check-action-action1","aria-label":"Actions",style:{whiteSpace:"nowrap"},"data-cy":"data-list-action",children:I.jsx(pu,{actions:o,position:"right",selectedItem:E,iconOnly:!0,collapse:"always"})})]})},C)},[t,n,l,p,f,i,b,g,v,x,y,o,c])}function SE(e){const{id:t,toolbarActions:n,filterState:r,error:a,itemCount:o}=e,{t:i}=jn(),l=e.showSelect||(n==null?void 0:n.find(E=>"selection"in E&&E.selection===vr.Multiple))!==void 0,s=!e.disableTableView,c=!e.disableListView,[p,f]=w.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return kr.Table;case"list":return kr.List;case"cards":return kr.Cards}return e.defaultTableView??(s?kr.Table:c?kr.List:kr.Cards)}),g=w.useCallback(E=>{f(E),e.id&&localStorage.setItem(e.id+"-view",E)},[e.id]),{openColumnManagement:v,managedColumns:b}=l$e((t??"")+"-columns",e.tableColumns,p!==kr.Table,p!==kr.List,p!==kr.Cards),y=XJe(e.tableColumns);if(a)return I.jsx(JJe,{titleProp:e.errorStateTitle,message:a.message});if(o===0&&Object.keys(r??{}).length===0)return e.emptyState?e.emptyState:I.jsx(e$e,{title:e.emptyStateTitle??i`No data`,description:e.emptyStateDescription,icon:e.emptyStateNoDataIcon,button:e.emptyStateButtonClick&&I.jsx(Q.Button,{"data-cy":e.emptyStateButtonText?E$e(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&I.jsx(Q.Flex,{justifyContent:{default:"justifyContentCenter"},children:I.jsx(pu,{actions:e.emptyStateActions})})});let x=e.topContent;return x&&(x=I.jsx(Q.PageSection,{hasBodyWrapper:!1,padding:{default:"noPadding"},children:e.topContent})),I.jsxs(I.Fragment,{children:[I.jsx(Jue,{...e,openColumnModal:e.id?v:void 0,showSelect:l,viewType:p,setViewType:g,sortOptions:y,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),x,p===kr.Table&&I.jsx(_$e,{...e,tableColumns:b}),p===kr.List&&I.jsx(uu,{marginLeft:20,marginRight:20,children:I.jsx(h$e,{...e,showSelect:l,tableColumns:b})}),p===kr.Cards&&I.jsx(uu,{marginLeft:20,marginRight:20,children:I.jsx(upe,{...e,showSelect:l,tableColumns:b})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&I.jsx(c$e,{...e,topBorder:!e.autoHidePagination})]})}function _$e(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:a,isSelectMultiple:o,keyFn:i,rowActions:l,toolbarActions:s,itemCount:c,clearAllFilters:p,onSelect:f,unselectAll:g,maxSelections:v}=e,b=hj(e.tableColumns),y=Pue(e.tableColumns),x=Due(e.tableColumns),E=w.useMemo(()=>{const L=[];if(y.length)for(const G of y)"value"in G?L.push(B=>{var q;const j=(q=G.value)==null?void 0:q.call(G,B);if(j)return I.jsx("div",{children:j},G.id??G.header)}):L.push(B=>G.cell(B));return x.length&&L.push(G=>x.some(j=>{var q;return((q=j.value)==null?void 0:q.call(j,G))!==void 0})?I.jsx(kue,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:I.jsx(Bue,{item:G,columns:x})},i(G)):null),e.expandedRow&&L.push(e.expandedRow),L.length===0?void 0:G=>L.map(j=>j(G)).filter(j=>j!=null).length===0?null:I.jsx(Q.Stack,{hasGutter:!0,children:L.map(j=>j(G))})},[y,x,i,e.expandedRow]),[C]=Na(),R=e.showSelect||(s==null?void 0:s.find(L=>"selection"in L&&L.selection===vr.Multiple))!==void 0,N=Em(),[O,P]=w.useState(0);let M;return c===void 0||t===void 0?M=I.jsx(s$e,{}):c===0?M=I.jsxs(Q.EmptyState,{icon:e.emptyStateIcon??Ht.SearchIcon,titleText:I.jsx(I.Fragment,{children:C.noResultsFound}),isFullHeight:!0,children:[I.jsx(Q.EmptyStateBody,{children:C.noResultsMatchCriteria}),I.jsx(Q.EmptyStateFooter,{children:p&&I.jsx(Q.EmptyStateActions,{children:I.jsx(Q.Button,{variant:"primary",onClick:p,children:C.clearAllFilters})})})]}):M=I.jsx(uu,{marginLeft:20,marginRight:20,children:I.jsxs(Xn.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||N.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,style:{borderCollapse:"separate"},children:[I.jsx(y$e,{...e,showSelect:R,tableColumns:b,onSelect:f,expandedRow:E,expandColumnWidth:O,setExpandColumnWidth:P}),I.jsx(Xn.Tbody,{children:t.map((L,W)=>I.jsx(x$e,{columns:b,item:L,isItemSelected:a==null?void 0:a(L),isSelectMultiple:o,selectItem:n,unselectItem:r,rowActions:l,rowIndex:W,showSelect:R,unselectAll:g,onSelect:f,expandedRow:E,isLastRow:W===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:v,selectedItems:e.selectedItems,defaultExpandedRows:e.defaultExpandedRows,expandColumnWidth:O},i?i(L):W))})]})}),M}function y$e(e){const{tableColumns:t,rowActions:n,sort:r,setSort:a,sortDirection:o,setSortDirection:i,showSelect:l,onSelect:s,expandedRow:c,pageItems:p,isSelected:f,selectItems:g,unselectAll:v}=e,[b,y]=xJ(),x=w.useRef(null),E=w.useCallback(()=>{if(!x.current)return;const q=x.current.clientHeight;y(Y=>({...Y,stickyTop:q}))},[y]);rd(x,E);const{expandColumnWidth:C,setExpandColumnWidth:R}=e,N=w.useRef(null),O=w.useCallback(()=>{N.current&&R(N.current.clientWidth)},[R]);rd(N,O);const[P,M]=w.useState(0),L=w.useRef(null),W=w.useCallback(()=>{L.current&&M(L.current.clientWidth)},[]);rd(L,W),w.useEffect(()=>{y(q=>({...q,stickyLeft:C+P}))},[C,P,y]);const G=w.useRef(null),B=w.useCallback(()=>{if(!G.current)return;const q=G.current.clientWidth;y(Y=>({...Y,stickyRight:q}))},[y]);rd(G,B);const j=w.useCallback((q,Y)=>{if(Y.sort)return{onSort:(K,ae,oe)=>{Y.sort&&(a==null||a(Y.sort),i==null||i(oe))},sortBy:{index:Y.sort===r?q:void 0,direction:Y.sort===r?o:void 0,defaultDirection:Y.defaultSortDirection},columnIndex:q}},[a,i,r,o]);return I.jsx(Xn.Thead,{style:{background:"inherit"},children:I.jsxs(Xn.Tr,{style:{background:"inherit"},ref:x,children:[c&&I.jsx(Xn.Th,{"aria-label":"Expand",isStickyColumn:!0,stickyMinWidth:"1px",ref:N}),(l||s)&&I.jsx(Xn.Th,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"selections-column-header",style:{left:C},ref:L,select:{onSelect:(q,Y)=>{Y?g==null||g(p??[]):v==null||v()},isSelected:p&&p.length>0?p.every(q=>f==null?void 0:f(q)):!1}}),t.map((q,Y)=>I.jsx(Xn.Th,{"aria-label":q.header,sort:j(Y,q),modifier:"nowrap",style:{minWidth:q.minWidth===0?"1%":q.minWidth!==void 0?q.minWidth:void 0,maxWidth:q.maxWidth!==void 0?q.maxWidth:void 0,width:q.fullWidth?"100%":void 0},"data-cy":ad(q.header+"-column-header"),children:q.header},q.header)),n!==void 0&&I.jsx(Xn.Th,{"aria-label":"Actions",isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"action-column-header",ref:G})]})})}function x$e(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:a,isItemSelected:o,isSelectMultiple:i,item:l,rowActions:s,rowIndex:c,showSelect:p,onSelect:f,expandedRow:g,disableLastRowBorder:v,maxSelections:b,selectedItems:y}=e,x=g==null?void 0:g(l),{expandColumnWidth:E}=e,[C,R]=w.useState(!!e.defaultExpandedRows&&!!x),N=w.useCallback(P=>(y==null?void 0:y.length)===b?!(y!=null&&y.includes(P)):!1,[b,y]),O="id"in l&&(typeof l.id=="string"||typeof l.id=="number")?`row-id-${l.id.toString()}`:`row-${c}`;return I.jsxs(I.Fragment,{children:[I.jsxs(Xn.Tr,{style:{boxShadow:"unset",borderBottom:C||e.isLastRow&&v?"unset":void 0,cursor:f?"pointer":"default"},"data-testid":O,"data-cy":O,onClick:()=>{f&&(i||n==null||n(),i&&o?a==null||a(l):r==null||r(l),f(l))},children:[g&&I.jsx(Xn.Td,{expand:x?{rowIndex:c,isExpanded:C,onToggle:()=>R(P=>!P)}:void 0,"data-cy":"expand-column-cell",isStickyColumn:!0,stickyMinWidth:"1px",className:C&&x?"expanded":void 0}),p&&I.jsx(Xn.Td,{select:o!==void 0?{rowIndex:c,onSelect:(P,M)=>{M?r==null||r(l):a==null||a(l)},isSelected:o,isDisabled:b&&y?N(l):!1}:void 0,isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"checkbox-column-cell",style:{left:E},className:g&&C&&x?"expanded":void 0}),f&&I.jsx(Xn.Td,{select:{rowIndex:c,isSelected:o??!1,variant:i?"checkbox":"radio",isDisabled:b&&y?N(l):!1,props:{"aria-label":"Select row"}},isStickyColumn:!0,stickyMinWidth:"1px","data-cy":"checkbox-column-cell"}),I.jsx(S$e,{columns:t,item:l,rowActions:s,expanded:!!g&&!!C&&!!x})]}),g&&C&&x&&I.jsxs(Xn.Tr,{isExpanded:C,style:{boxShadow:"unset"},children:[I.jsx(Xn.Td,{isStickyColumn:!0,stickyMinWidth:"1px"}),p&&I.jsx(Xn.Td,{"aria-label":"Select",isStickyColumn:!0,stickyMinWidth:"1px",style:{left:E}}),f&&I.jsx(Xn.Td,{isStickyColumn:!0,stickyMinWidth:"1px",style:{left:E}}),I.jsx(Xn.Td,{colSpan:t.length,children:I.jsx(Xn.CollapseColumn,{children:x})}),s!==void 0&&s.length>0&&I.jsx(Xn.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"1px",children:" "})]})]})}function S$e(e){const{columns:t,item:n,rowActions:r}=e,[a,o]=w.useState(!1);return I.jsxs(w.Fragment,{children:[t.map(i=>I.jsx(Xn.Td,{dataLabel:i.header,modifier:"nowrap",style:{width:i.minWidth===0?"0%":void 0},"data-cy":ad(i.header+"-column-cell"),"data-testid":ad(i.header+"-column-cell"),className:e.expanded?"expanded":void 0,children:I.jsx(si,{item:n,column:i})},i.header)),r!==void 0&&r.length>0&&I.jsx(Xn.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"1px",style:{zIndex:a?400:void 0},"data-cy":"actions-column-cell",className:e.expanded?"expanded":void 0,children:I.jsx(pu,{actions:r,selectedItem:n,position:"right",iconOnly:!0,onOpen:o})})]})}function E$e(e){return e.toLowerCase().split(" ").join("-")}function w$e(){const e=w.useRef(new AbortController);return w.useEffect(()=>{const t=e.current;return()=>t.abort()},[]),e.current}function ppe(e){const{title:t,keyFn:n,actionColumns:r,actionFn:a,onComplete:o,onClose:i,processingText:l,isDanger:s,errorAdapter:c=yE,description:p,statusParser:f}=e,{t:g}=jn(),[v,b]=w.useState(e.items),[y]=Na(),[x,E]=w.useState(!0),[C,R]=w.useState(0),[N,O]=w.useState(!1),[P,M]=w.useState(0),[L,W]=w.useState(""),[G,B]=w.useState(),j=w$e(),[q,Y]=Kp(),[K,ae]=w.useState([]),oe=w.useCallback(()=>{O(!0),j.abort(),E(!1),B(be=>{const ue={...be};for(const ke of v){const Ce=n(ke);ue[Ce]===void 0&&(ue[Ce]=g("Cancelled"))}return ue})},[j,v,n,g]),te=w.useCallback(()=>{Y(void 0),i==null||i(N?"canceled":L?"failures":"success",v.filter(be=>(G==null?void 0:G[n(be)])===null||(G==null?void 0:G[n(be)]).message),v.filter(be=>(G==null?void 0:G[n(be)])!==null&&typeof(G==null?void 0:G[n(be)])=="string"),v.filter(be=>(G==null?void 0:G[n(be)])===void 0)),o==null||o(K)},[L,N,v,n,i,o,Y,G,K]),ee=w.useCallback(()=>{W(""),E(!0),B(void 0),b(v.filter(be=>(G==null?void 0:G[n(be)])!==null&&typeof(G==null?void 0:G[n(be)])=="string")),R(C+1)},[v,n,C,G]),z=w.useMemo(()=>j.signal.aborted?y.canceledText:L?y.errorText:x?l??y.processingText:y.successText,[j.signal.aborted,L,x,l,y.canceledText,y.errorText,y.processingText,y.successText]),re=w.useMemo(()=>{if(L||N)return Q.ProgressVariant.danger;if(P===v.length)return Q.ProgressVariant.success},[L,N,v.length,P]);w.useEffect(()=>{function be(Ce,he){if(j.signal.aborted)return;let xe;f&&(xe=f(he)),B(Pe=>({...Pe??{},[Ce]:xe!==void 0?xe:null}))}function ue(Ce,he,xe){if(!j.signal.aborted){if(xe instanceof Error){const Pe=typeof he[0].message=="string"&&he.length===1?he[0].message:g("Unknown error");B(ie=>({...ie??{},[Ce]:Pe}))}else B(Pe=>({...Pe??{},[Ce]:g("Unknown error")}));W(y.errorText)}}async function ke(){const Ce=UJe(5);let he=0;const xe=[];await Promise.all(v.map(Pe=>Ce(async()=>{if(j.signal.aborted)return;const ie=n(Pe);try{const tt=await a(Pe,j.signal);be(ie,tt),xe.push(Pe)}catch(tt){const{genericErrors:rt,fieldErrors:lt}=c(tt),St=[...rt,...lt.filter(st=>st.message)];ue(ie,St,tt)}finally{j.signal.aborted||M(++he)}}))),ae([...K,...xe]),j.signal.aborted||E(!1)}ke()},[j,a,v,n,o,y.errorText,g,c,f,C]),w.useEffect(()=>{let be;return!x&&!L&&(be=setTimeout(()=>{te()},1e3)),()=>clearTimeout(be)},[x,L,te]);const ce=xE(v),$=RR(r),de=w.useMemo(()=>x?[I.jsx(Q.Button,{variant:"link",onClick:oe,children:g("Cancel")},"cancel")]:L?[I.jsx(Q.Button,{variant:"primary",onClick:ee,children:g("Retry")},"retry"),I.jsx(Q.Button,{variant:"secondary",onClick:te,children:g("Close")},"close")]:[],[L,x,oe,te,ee,g]);return I.jsxs(Q.Modal,{ouiaId:t,variant:Q.ModalVariant.medium,isOpen:!0,onClose:()=>{oe(),te()},"aria-label":t,children:[I.jsx(Q.ModalHeader,{title:t,titleIconVariant:s?"warning":void 0,description:p}),I.jsx(Q.ModalBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:I.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"var(--pf-t--global--border--color--default)"},children:I.jsx(SE,{pageItems:[...ce.paged],itemCount:v.length,tableColumns:[...$,{header:g("Status"),cell:be=>{const ue=n(be),ke=G==null?void 0:G[ue];return ke===void 0?I.jsxs("span",{style:{color:gD},children:[I.jsx(Ht.PendingIcon,{})," ",y.pendingText]}):ke===null?I.jsxs("span",{style:{color:fD},children:[I.jsx(Ht.CheckCircleIcon,{})," ",y.successText]}):ke.message&&ke.url?I.jsx("a",{href:ke.url,children:ke.message}):I.jsxs("span",{style:{color:mD},children:[I.jsx(Ht.ExclamationCircleIcon,{})," ",G==null?void 0:G[ue]]})}}],keyFn:n,compact:!0,errorStateTitle:"",emptyStateTitle:g("No items"),autoHidePagination:!0,disableBodyPadding:!0,...ce},"status")})}),I.jsx(Q.ModalBody,{style:{paddingTop:0},children:I.jsx(Q.Progress,{"data-cy":"progress","data-testid":"progress",value:P/v.length*100,title:z,size:Q.ProgressSize.lg,variant:re})}),I.jsx(Q.ModalFooter,{children:de})]})}function fpe(e=yE,t){const[n,r]=Kp(),[a,o]=w.useState();return w.useEffect(()=>{if(a){const i=(l,s,c,p)=>{var f;o(void 0),(f=a.onClose)==null||f.call(a,l,s,c,p)};r(I.jsx(ppe,{...a,errorAdapter:a.errorAdapter??e,statusParser:a.statusParser??t,onClose:i}))}else r(void 0)},[a,r,e,t]),o}function mpe(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;if(typeof e=="string"){if(typeof t=="string")return EE(e,t);if(typeof t=="number")return EE(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return gpe(e,t);if(typeof t=="string")return EE(e.toString(),t)}return 0}function EE(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function gpe(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const C$e=Cn.div`
|
|
472
472
|
margin-left: 32px;
|
|
473
473
|
height: 64px;
|
|
474
474
|
display: flex;
|
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -1,155 +1,155 @@
|
|
|
1
|
-
import { $ as s } from "./index-
|
|
2
|
-
import { B as o } from "./index-
|
|
3
|
-
import { A as t } from "./index-
|
|
4
|
-
import { C as r } from "./index-
|
|
5
|
-
import { aW as l } from "./index-
|
|
6
|
-
import { aY as i } from "./index-
|
|
7
|
-
import { aV as n } from "./index-
|
|
8
|
-
import { aX as g } from "./index-
|
|
9
|
-
import { aZ as b } from "./index-
|
|
10
|
-
import { aU as u } from "./index-
|
|
11
|
-
import { aQ as P } from "./index-
|
|
12
|
-
import { D as d } from "./index-
|
|
13
|
-
import { af as m } from "./index-
|
|
14
|
-
import { ae as C } from "./index-
|
|
15
|
-
import { E as c } from "./index-
|
|
16
|
-
import { bo as T } from "./index-
|
|
17
|
-
import { bm as D } from "./index-
|
|
18
|
-
import { F as p } from "./index-
|
|
19
|
-
import { G as S } from "./index-
|
|
20
|
-
import { bs as h } from "./index-
|
|
21
|
-
import { ab as F } from "./index-
|
|
22
|
-
import { H as v } from "./index-
|
|
23
|
-
import { k as B } from "./index-
|
|
24
|
-
import { I as f } from "./index-
|
|
25
|
-
import { L as I } from "./index-
|
|
26
|
-
import { a2 as A } from "./index-
|
|
27
|
-
import { P as y } from "./index-
|
|
28
|
-
import { r as N } from "./index-
|
|
29
|
-
import { q as x } from "./index-
|
|
30
|
-
import { s as k } from "./index-
|
|
31
|
-
import { t as w } from "./index-
|
|
32
|
-
import { w as E } from "./index-
|
|
33
|
-
import { y as O } from "./index-
|
|
34
|
-
import { z as L } from "./index-
|
|
35
|
-
import { J as M } from "./index-
|
|
36
|
-
import { M as V } from "./index-
|
|
37
|
-
import { N as R } from "./index-
|
|
38
|
-
import { Q as W } from "./index-
|
|
39
|
-
import { O as j } from "./index-
|
|
40
|
-
import { K as G } from "./index-
|
|
41
|
-
import { U as z } from "./index-
|
|
42
|
-
import { X as U } from "./index-
|
|
43
|
-
import { V as H } from "./index-
|
|
44
|
-
import { Y as q } from "./index-
|
|
45
|
-
import { aP as Q } from "./index-
|
|
46
|
-
import { Z as J } from "./index-
|
|
47
|
-
import { _ as K } from "./index-
|
|
48
|
-
import { a4 as X } from "./index-
|
|
49
|
-
import { W as Y } from "./index-
|
|
50
|
-
import { an as Z } from "./index-
|
|
51
|
-
import { aq as _ } from "./index-
|
|
52
|
-
import { ac as $ } from "./index-
|
|
53
|
-
import { ad as aa } from "./index-
|
|
54
|
-
import { ao as ea } from "./index-
|
|
55
|
-
import { ai as sa } from "./index-
|
|
56
|
-
import { ap as oa } from "./index-
|
|
57
|
-
import { aj as ta } from "./index-
|
|
58
|
-
import { ak as ra } from "./index-
|
|
59
|
-
import { al as la } from "./index-
|
|
60
|
-
import { ar as ia } from "./index-
|
|
61
|
-
import { as as na } from "./index-
|
|
62
|
-
import { at as ga } from "./index-
|
|
63
|
-
import { au as ba } from "./index-
|
|
64
|
-
import { av as ua } from "./index-
|
|
65
|
-
import { aF as Pa } from "./index-
|
|
66
|
-
import { aH as da } from "./index-
|
|
67
|
-
import { ay as ma } from "./index-
|
|
68
|
-
import { a9 as Ca } from "./index-
|
|
69
|
-
import { aa as ca } from "./index-
|
|
70
|
-
import { aw as Ta } from "./index-
|
|
71
|
-
import { aL as Da } from "./index-
|
|
72
|
-
import { aM as pa } from "./index-
|
|
73
|
-
import { bg as Sa } from "./index-
|
|
74
|
-
import { aN as ha } from "./index-
|
|
75
|
-
import { aR as Fa } from "./index-
|
|
76
|
-
import { aT as va } from "./index-
|
|
77
|
-
import { bf as Ba } from "./index-
|
|
78
|
-
import { ax as fa } from "./index-
|
|
79
|
-
import { bh as Ia } from "./index-
|
|
80
|
-
import { bj as Aa } from "./index-
|
|
81
|
-
import { br as ya } from "./index-
|
|
82
|
-
import { R as Na } from "./index-
|
|
83
|
-
import { S as xa } from "./index-
|
|
84
|
-
import { a8 as ka } from "./index-
|
|
85
|
-
import { aO as wa } from "./index-
|
|
86
|
-
import { a_ as Ea } from "./index-
|
|
87
|
-
import { T as Oa } from "./index-
|
|
88
|
-
import { bn as La } from "./index-
|
|
89
|
-
import { bi as Ma } from "./index-
|
|
90
|
-
import { bq as Va } from "./index-
|
|
91
|
-
import { bp as Ra } from "./index-
|
|
92
|
-
import { aC as Wa } from "./index-
|
|
93
|
-
import { aD as ja } from "./index-
|
|
94
|
-
import { aE as Ga } from "./index-
|
|
95
|
-
import { bz as za } from "./index-
|
|
96
|
-
import { by as Ua } from "./index-
|
|
97
|
-
import { bx as Ha } from "./index-
|
|
98
|
-
import { bw as qa } from "./index-
|
|
99
|
-
import { x as Qa } from "./index-
|
|
100
|
-
import { bB as Ja } from "./index-
|
|
101
|
-
import { aA as Ka } from "./index-
|
|
102
|
-
import { g as Xa } from "./index-
|
|
103
|
-
import { bk as Ya } from "./index-
|
|
104
|
-
import { ah as Za } from "./index-
|
|
105
|
-
import { bA as _a } from "./index-
|
|
106
|
-
import { a as $a } from "./index-
|
|
107
|
-
import { e as ae } from "./index-
|
|
108
|
-
import { c as ee } from "./index-
|
|
109
|
-
import { f as se } from "./index-
|
|
110
|
-
import { p as oe } from "./index-
|
|
111
|
-
import { i as te } from "./index-
|
|
112
|
-
import { h as re } from "./index-
|
|
113
|
-
import { b as le } from "./index-
|
|
114
|
-
import { az as ie } from "./index-
|
|
115
|
-
import { aB as ne } from "./index-
|
|
116
|
-
import { bl as ge } from "./index-
|
|
117
|
-
import { n as be } from "./index-
|
|
118
|
-
import { a0 as ue } from "./index-
|
|
119
|
-
import { a1 as Pe } from "./index-
|
|
120
|
-
import { aS as de } from "./index-
|
|
121
|
-
import { b8 as me } from "./index-
|
|
122
|
-
import { b7 as Ce } from "./index-
|
|
123
|
-
import { b3 as ce } from "./index-
|
|
124
|
-
import { b5 as Te } from "./index-
|
|
125
|
-
import { b6 as De } from "./index-
|
|
126
|
-
import { bd as pe } from "./index-
|
|
127
|
-
import { am as Se } from "./index-
|
|
128
|
-
import { bt as he } from "./index-
|
|
129
|
-
import { aJ as Fe } from "./index-
|
|
130
|
-
import { bu as ve } from "./index-
|
|
131
|
-
import { a3 as Be } from "./index-
|
|
132
|
-
import { o as fe } from "./index-
|
|
133
|
-
import { v as Ie } from "./index-
|
|
134
|
-
import { a6 as Ae } from "./index-
|
|
135
|
-
import { a5 as ye } from "./index-
|
|
136
|
-
import { aI as Ne } from "./index-
|
|
137
|
-
import { aG as xe } from "./index-
|
|
138
|
-
import { aK as ke } from "./index-
|
|
139
|
-
import { u as we } from "./index-
|
|
140
|
-
import { be as Ee } from "./index-
|
|
141
|
-
import { l as Oe } from "./index-
|
|
142
|
-
import { a7 as Le } from "./index-
|
|
143
|
-
import { ba as Me } from "./index-
|
|
144
|
-
import { bb as Ve } from "./index-
|
|
145
|
-
import { bc as Re } from "./index-
|
|
146
|
-
import { b9 as We } from "./index-
|
|
147
|
-
import { bv as je } from "./index-
|
|
148
|
-
import { b1 as Ge } from "./index-
|
|
149
|
-
import { b4 as ze } from "./index-
|
|
150
|
-
import { b0 as Ue } from "./index-
|
|
151
|
-
import { b2 as He } from "./index-
|
|
152
|
-
import { a$ as qe } from "./index-
|
|
153
|
-
import { m as Qe } from "./index-
|
|
154
|
-
import { ag as Je } from "./index-
|
|
1
|
+
import { $ as s } from "./index-BfT9FlOX.js";
|
|
2
|
+
import { B as o } from "./index-BfT9FlOX.js";
|
|
3
|
+
import { A as t } from "./index-BfT9FlOX.js";
|
|
4
|
+
import { C as r } from "./index-BfT9FlOX.js";
|
|
5
|
+
import { aW as l } from "./index-BfT9FlOX.js";
|
|
6
|
+
import { aY as i } from "./index-BfT9FlOX.js";
|
|
7
|
+
import { aV as n } from "./index-BfT9FlOX.js";
|
|
8
|
+
import { aX as g } from "./index-BfT9FlOX.js";
|
|
9
|
+
import { aZ as b } from "./index-BfT9FlOX.js";
|
|
10
|
+
import { aU as u } from "./index-BfT9FlOX.js";
|
|
11
|
+
import { aQ as P } from "./index-BfT9FlOX.js";
|
|
12
|
+
import { D as d } from "./index-BfT9FlOX.js";
|
|
13
|
+
import { af as m } from "./index-BfT9FlOX.js";
|
|
14
|
+
import { ae as C } from "./index-BfT9FlOX.js";
|
|
15
|
+
import { E as c } from "./index-BfT9FlOX.js";
|
|
16
|
+
import { bo as T } from "./index-BfT9FlOX.js";
|
|
17
|
+
import { bm as D } from "./index-BfT9FlOX.js";
|
|
18
|
+
import { F as p } from "./index-BfT9FlOX.js";
|
|
19
|
+
import { G as S } from "./index-BfT9FlOX.js";
|
|
20
|
+
import { bs as h } from "./index-BfT9FlOX.js";
|
|
21
|
+
import { ab as F } from "./index-BfT9FlOX.js";
|
|
22
|
+
import { H as v } from "./index-BfT9FlOX.js";
|
|
23
|
+
import { k as B } from "./index-BfT9FlOX.js";
|
|
24
|
+
import { I as f } from "./index-BfT9FlOX.js";
|
|
25
|
+
import { L as I } from "./index-BfT9FlOX.js";
|
|
26
|
+
import { a2 as A } from "./index-BfT9FlOX.js";
|
|
27
|
+
import { P as y } from "./index-BfT9FlOX.js";
|
|
28
|
+
import { r as N } from "./index-BfT9FlOX.js";
|
|
29
|
+
import { q as x } from "./index-BfT9FlOX.js";
|
|
30
|
+
import { s as k } from "./index-BfT9FlOX.js";
|
|
31
|
+
import { t as w } from "./index-BfT9FlOX.js";
|
|
32
|
+
import { w as E } from "./index-BfT9FlOX.js";
|
|
33
|
+
import { y as O } from "./index-BfT9FlOX.js";
|
|
34
|
+
import { z as L } from "./index-BfT9FlOX.js";
|
|
35
|
+
import { J as M } from "./index-BfT9FlOX.js";
|
|
36
|
+
import { M as V } from "./index-BfT9FlOX.js";
|
|
37
|
+
import { N as R } from "./index-BfT9FlOX.js";
|
|
38
|
+
import { Q as W } from "./index-BfT9FlOX.js";
|
|
39
|
+
import { O as j } from "./index-BfT9FlOX.js";
|
|
40
|
+
import { K as G } from "./index-BfT9FlOX.js";
|
|
41
|
+
import { U as z } from "./index-BfT9FlOX.js";
|
|
42
|
+
import { X as U } from "./index-BfT9FlOX.js";
|
|
43
|
+
import { V as H } from "./index-BfT9FlOX.js";
|
|
44
|
+
import { Y as q } from "./index-BfT9FlOX.js";
|
|
45
|
+
import { aP as Q } from "./index-BfT9FlOX.js";
|
|
46
|
+
import { Z as J } from "./index-BfT9FlOX.js";
|
|
47
|
+
import { _ as K } from "./index-BfT9FlOX.js";
|
|
48
|
+
import { a4 as X } from "./index-BfT9FlOX.js";
|
|
49
|
+
import { W as Y } from "./index-BfT9FlOX.js";
|
|
50
|
+
import { an as Z } from "./index-BfT9FlOX.js";
|
|
51
|
+
import { aq as _ } from "./index-BfT9FlOX.js";
|
|
52
|
+
import { ac as $ } from "./index-BfT9FlOX.js";
|
|
53
|
+
import { ad as aa } from "./index-BfT9FlOX.js";
|
|
54
|
+
import { ao as ea } from "./index-BfT9FlOX.js";
|
|
55
|
+
import { ai as sa } from "./index-BfT9FlOX.js";
|
|
56
|
+
import { ap as oa } from "./index-BfT9FlOX.js";
|
|
57
|
+
import { aj as ta } from "./index-BfT9FlOX.js";
|
|
58
|
+
import { ak as ra } from "./index-BfT9FlOX.js";
|
|
59
|
+
import { al as la } from "./index-BfT9FlOX.js";
|
|
60
|
+
import { ar as ia } from "./index-BfT9FlOX.js";
|
|
61
|
+
import { as as na } from "./index-BfT9FlOX.js";
|
|
62
|
+
import { at as ga } from "./index-BfT9FlOX.js";
|
|
63
|
+
import { au as ba } from "./index-BfT9FlOX.js";
|
|
64
|
+
import { av as ua } from "./index-BfT9FlOX.js";
|
|
65
|
+
import { aF as Pa } from "./index-BfT9FlOX.js";
|
|
66
|
+
import { aH as da } from "./index-BfT9FlOX.js";
|
|
67
|
+
import { ay as ma } from "./index-BfT9FlOX.js";
|
|
68
|
+
import { a9 as Ca } from "./index-BfT9FlOX.js";
|
|
69
|
+
import { aa as ca } from "./index-BfT9FlOX.js";
|
|
70
|
+
import { aw as Ta } from "./index-BfT9FlOX.js";
|
|
71
|
+
import { aL as Da } from "./index-BfT9FlOX.js";
|
|
72
|
+
import { aM as pa } from "./index-BfT9FlOX.js";
|
|
73
|
+
import { bg as Sa } from "./index-BfT9FlOX.js";
|
|
74
|
+
import { aN as ha } from "./index-BfT9FlOX.js";
|
|
75
|
+
import { aR as Fa } from "./index-BfT9FlOX.js";
|
|
76
|
+
import { aT as va } from "./index-BfT9FlOX.js";
|
|
77
|
+
import { bf as Ba } from "./index-BfT9FlOX.js";
|
|
78
|
+
import { ax as fa } from "./index-BfT9FlOX.js";
|
|
79
|
+
import { bh as Ia } from "./index-BfT9FlOX.js";
|
|
80
|
+
import { bj as Aa } from "./index-BfT9FlOX.js";
|
|
81
|
+
import { br as ya } from "./index-BfT9FlOX.js";
|
|
82
|
+
import { R as Na } from "./index-BfT9FlOX.js";
|
|
83
|
+
import { S as xa } from "./index-BfT9FlOX.js";
|
|
84
|
+
import { a8 as ka } from "./index-BfT9FlOX.js";
|
|
85
|
+
import { aO as wa } from "./index-BfT9FlOX.js";
|
|
86
|
+
import { a_ as Ea } from "./index-BfT9FlOX.js";
|
|
87
|
+
import { T as Oa } from "./index-BfT9FlOX.js";
|
|
88
|
+
import { bn as La } from "./index-BfT9FlOX.js";
|
|
89
|
+
import { bi as Ma } from "./index-BfT9FlOX.js";
|
|
90
|
+
import { bq as Va } from "./index-BfT9FlOX.js";
|
|
91
|
+
import { bp as Ra } from "./index-BfT9FlOX.js";
|
|
92
|
+
import { aC as Wa } from "./index-BfT9FlOX.js";
|
|
93
|
+
import { aD as ja } from "./index-BfT9FlOX.js";
|
|
94
|
+
import { aE as Ga } from "./index-BfT9FlOX.js";
|
|
95
|
+
import { bz as za } from "./index-BfT9FlOX.js";
|
|
96
|
+
import { by as Ua } from "./index-BfT9FlOX.js";
|
|
97
|
+
import { bx as Ha } from "./index-BfT9FlOX.js";
|
|
98
|
+
import { bw as qa } from "./index-BfT9FlOX.js";
|
|
99
|
+
import { x as Qa } from "./index-BfT9FlOX.js";
|
|
100
|
+
import { bB as Ja } from "./index-BfT9FlOX.js";
|
|
101
|
+
import { aA as Ka } from "./index-BfT9FlOX.js";
|
|
102
|
+
import { g as Xa } from "./index-BfT9FlOX.js";
|
|
103
|
+
import { bk as Ya } from "./index-BfT9FlOX.js";
|
|
104
|
+
import { ah as Za } from "./index-BfT9FlOX.js";
|
|
105
|
+
import { bA as _a } from "./index-BfT9FlOX.js";
|
|
106
|
+
import { a as $a } from "./index-BfT9FlOX.js";
|
|
107
|
+
import { e as ae } from "./index-BfT9FlOX.js";
|
|
108
|
+
import { c as ee } from "./index-BfT9FlOX.js";
|
|
109
|
+
import { f as se } from "./index-BfT9FlOX.js";
|
|
110
|
+
import { p as oe } from "./index-BfT9FlOX.js";
|
|
111
|
+
import { i as te } from "./index-BfT9FlOX.js";
|
|
112
|
+
import { h as re } from "./index-BfT9FlOX.js";
|
|
113
|
+
import { b as le } from "./index-BfT9FlOX.js";
|
|
114
|
+
import { az as ie } from "./index-BfT9FlOX.js";
|
|
115
|
+
import { aB as ne } from "./index-BfT9FlOX.js";
|
|
116
|
+
import { bl as ge } from "./index-BfT9FlOX.js";
|
|
117
|
+
import { n as be } from "./index-BfT9FlOX.js";
|
|
118
|
+
import { a0 as ue } from "./index-BfT9FlOX.js";
|
|
119
|
+
import { a1 as Pe } from "./index-BfT9FlOX.js";
|
|
120
|
+
import { aS as de } from "./index-BfT9FlOX.js";
|
|
121
|
+
import { b8 as me } from "./index-BfT9FlOX.js";
|
|
122
|
+
import { b7 as Ce } from "./index-BfT9FlOX.js";
|
|
123
|
+
import { b3 as ce } from "./index-BfT9FlOX.js";
|
|
124
|
+
import { b5 as Te } from "./index-BfT9FlOX.js";
|
|
125
|
+
import { b6 as De } from "./index-BfT9FlOX.js";
|
|
126
|
+
import { bd as pe } from "./index-BfT9FlOX.js";
|
|
127
|
+
import { am as Se } from "./index-BfT9FlOX.js";
|
|
128
|
+
import { bt as he } from "./index-BfT9FlOX.js";
|
|
129
|
+
import { aJ as Fe } from "./index-BfT9FlOX.js";
|
|
130
|
+
import { bu as ve } from "./index-BfT9FlOX.js";
|
|
131
|
+
import { a3 as Be } from "./index-BfT9FlOX.js";
|
|
132
|
+
import { o as fe } from "./index-BfT9FlOX.js";
|
|
133
|
+
import { v as Ie } from "./index-BfT9FlOX.js";
|
|
134
|
+
import { a6 as Ae } from "./index-BfT9FlOX.js";
|
|
135
|
+
import { a5 as ye } from "./index-BfT9FlOX.js";
|
|
136
|
+
import { aI as Ne } from "./index-BfT9FlOX.js";
|
|
137
|
+
import { aG as xe } from "./index-BfT9FlOX.js";
|
|
138
|
+
import { aK as ke } from "./index-BfT9FlOX.js";
|
|
139
|
+
import { u as we } from "./index-BfT9FlOX.js";
|
|
140
|
+
import { be as Ee } from "./index-BfT9FlOX.js";
|
|
141
|
+
import { l as Oe } from "./index-BfT9FlOX.js";
|
|
142
|
+
import { a7 as Le } from "./index-BfT9FlOX.js";
|
|
143
|
+
import { ba as Me } from "./index-BfT9FlOX.js";
|
|
144
|
+
import { bb as Ve } from "./index-BfT9FlOX.js";
|
|
145
|
+
import { bc as Re } from "./index-BfT9FlOX.js";
|
|
146
|
+
import { b9 as We } from "./index-BfT9FlOX.js";
|
|
147
|
+
import { bv as je } from "./index-BfT9FlOX.js";
|
|
148
|
+
import { b1 as Ge } from "./index-BfT9FlOX.js";
|
|
149
|
+
import { b4 as ze } from "./index-BfT9FlOX.js";
|
|
150
|
+
import { b0 as Ue } from "./index-BfT9FlOX.js";
|
|
151
|
+
import { b2 as He } from "./index-BfT9FlOX.js";
|
|
152
|
+
import { a$ as qe } from "./index-BfT9FlOX.js";
|
|
153
|
+
import { m as Qe } from "./index-BfT9FlOX.js";
|
|
154
|
+
import { ag as Je } from "./index-BfT9FlOX.js";
|
|
155
155
|
export { s as BulkActionDialog, o as BulkSelector, t as BytesCell, r as Collapse, l as ColumnCardOption, i as ColumnDashboardOption, n as ColumnListOption, g as ColumnModalOption, b as ColumnPriority, u as ColumnTableOption, P as ColumnsDiv, d as CopyCell, m as DataEditorActions, C as DataEditorButtons, c as DateCell, T as DateRange, D as DateRangeFilterPresets, p as DateTimeCell, S as ElapsedTimeCell, h as FrameworkTranslationsProvider, F as GenericForm, v as Help, B as LabelColorE, f as LabelsCell, I as LoadingPage, A as MultiSelectDialog, y as PFColorE, N as PageActionSelection, x as PageActionType, k as PageActions, w as PageAlertToasterContext, E as PageAlertToasterProvider, O as PageApp, L as PageBody, M as PageChartContainer, V as PageDashboard, R as PageDashboardCard, W as PageDashboardChart, j as PageDashboardChartVariantE, G as PageDashboardContext, z as PageDashboardCount, U as PageDashboardDonutCard, H as PageDashboardGettingStarted, q as PageDetail, Q as PageDetailDiv, J as PageDetails, K as PageDetailsFromColumns, X as PageDialogProvider, Y as PageDonutChart, Z as PageForm, _ as PageFormCancelButton, $ as PageFormCheckbox, aa as PageFormDataEditor, ea as PageFormGrid, sa as PageFormSelect, oa as PageFormSubmitButton, ta as PageFormSwitch, ra as PageFormTextArea, la as PageFormTextInput, ia as PageFramework, na as PageHeader, ga as PageLayout, ba as PageMasthead, ua as PageMastheadToggle, Pa as PageNavSideBarContext, da as PageNavSideBarProvider, ma as PageNavigation, Ca as PageNotFound, ca as PageNotImplemented, Ta as PageNotificationsIcon, Da as PageSettingsContext, pa as PageSettingsProvider, Sa as PageTab, ha as PageTable, Fa as PageTableCard, va as PageTableCards, Ba as PageTabs, fa as PageThemeSwitcher, Ia as PageToolbar, Aa as PageToolbarFilters, ya as PageWizard, Na as RunningIcon, xa as Scrollable, ka as SelectDialog, wa as Small, Ea as TableColumnCell, Oa as TextCell, La as ToolbarDateRangeFilter, Ma as ToolbarFilterType, Va as ToolbarSingleTextFilter, Ra as ToolbarTextMultiFilter, Wa as addNavigationItem, ja as addNavigationItemAfter, Ga as addNavigationItemBefore, za as buildQueryString, Ua as compareNumbers, Ha as compareStrings, qa as compareUnknowns, Qa as errorToAlertProps, Ja as filtersToSearchObj, Ka as findNavigationItemById, Xa as getPatternflyColor, Ya as multiSelectBrowseAdapter, Za as objectToString, _a as paramsToSearchObj, $a as pfDanger, ae as pfDisabled, ee as pfInfo, se as pfLink, oe as pfSuccess, te as pfTopologyInfo, re as pfUnreachable, le as pfWarning, ie as removeLeadingSlash, ne as removeNavigationItemById, ge as singleSelectBrowseAdapter, be as useBreakpoint, ue as useBulkActionDialog, Pe as useBulkConfirmation, de as useColumnsToTableCardFn, me as useColumnsWithoutExpandedRow, Ce as useColumnsWithoutSort, ce as useDashboardColumns, Te as useDescriptionColumns, De as useExpandedColumns, pe as useFiltered, Se as useFormErrors, he as useFrameworkTranslations, Fe as useGetPageUrl, ve as useInMemoryView, Be as useIsPageDialog, fe as useOrientation, Ie as usePageAlertToaster, Ae as usePageDialog, ye as usePageDialogs, Ne as usePageNavBarClick, xe as usePageNavSideBar, ke as usePageNavigate, we as usePageSettings, Ee as usePaged, Oe as useScrollableState, Le as useSelectDialog, Me as useSelected, Ve as useSelectedInMemory, Re as useSorted, We as useTableItems, je as useView, Ge as useVisibleCardColumns, ze as useVisibleColumns, Ue as useVisibleListColumns, He as useVisibleModalColumns, qe as useVisibleTableColumns, Qe as useWindowSize, Je as valueToObject };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|