@ansible/ansible-ui-framework 2.4.1166 → 2.4.1168

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,5 +61,6 @@ export type PageTableProps<T extends object> = {
61
61
  toolbarContent?: React.ReactNode;
62
62
  scrollTopContent?: boolean;
63
63
  limitFiltersToOneOrOperation?: boolean;
64
+ defaultExpandedRows?: boolean;
64
65
  };
65
66
  export declare function PageTable<T extends object>(props: PageTableProps<T>): import("react/jsx-runtime").JSX.Element;
package/index.js CHANGED
@@ -39847,7 +39847,8 @@ function wC(e) {
39847
39847
  isLastRow: k === t.length - 1,
39848
39848
  disableLastRowBorder: e.disableLastRowBorder,
39849
39849
  maxSelections: h,
39850
- selectedItems: e.selectedItems
39850
+ selectedItems: e.selectedItems,
39851
+ defaultExpandedRows: e.defaultExpandedRows
39851
39852
  },
39852
39853
  o ? o(T) : k
39853
39854
  )) })
@@ -39972,7 +39973,7 @@ function LSe(e) {
39972
39973
  disableLastRowBorder: h,
39973
39974
  maxSelections: p,
39974
39975
  selectedItems: g
39975
- } = e, [v, y] = te(!1), b = Ou(), x = d == null ? void 0 : d(s), _ = re(
39976
+ } = e, v = d == null ? void 0 : d(s), [y, b] = te(!!e.defaultExpandedRows && !!v), x = Ou(), _ = re(
39976
39977
  (w) => (g == null ? void 0 : g.length) === p ? !(g != null && g.includes(w)) : !1,
39977
39978
  [p, g]
39978
39979
  );
@@ -39982,7 +39983,7 @@ function LSe(e) {
39982
39983
  {
39983
39984
  style: {
39984
39985
  boxShadow: "unset",
39985
- borderBottom: v || e.isLastRow && h ? "unset" : void 0
39986
+ borderBottom: y || e.isLastRow && h ? "unset" : void 0
39986
39987
  },
39987
39988
  "data-cy": "id" in s && (typeof s.id == "string" || typeof s.id == "number") ? `row-id-${s.id.toString()}` : `row-${c}`,
39988
39989
  className: a ? "selected" : void 0,
@@ -39990,12 +39991,12 @@ function LSe(e) {
39990
39991
  d && /* @__PURE__ */ m.jsx(
39991
39992
  Xn,
39992
39993
  {
39993
- expand: x ? {
39994
+ expand: v ? {
39994
39995
  rowIndex: c,
39995
- isExpanded: v,
39996
- onToggle: () => y((w) => !w)
39996
+ isExpanded: y,
39997
+ onToggle: () => b((w) => !w)
39997
39998
  } : void 0,
39998
- style: { paddingLeft: x ? 8 : 4 },
39999
+ style: { paddingLeft: v ? 8 : 4 },
39999
40000
  "data-cy": "expand-column-cell"
40000
40001
  }
40001
40002
  ),
@@ -40048,10 +40049,10 @@ function LSe(e) {
40048
40049
  ]
40049
40050
  }
40050
40051
  ),
40051
- d && v && x && /* @__PURE__ */ m.jsxs(
40052
+ d && y && v && /* @__PURE__ */ m.jsxs(
40052
40053
  Ms,
40053
40054
  {
40054
- isExpanded: v,
40055
+ isExpanded: y,
40055
40056
  style: { boxShadow: "unset" },
40056
40057
  className: a ? "selected" : void 0,
40057
40058
  children: [
@@ -40070,8 +40071,8 @@ function LSe(e) {
40070
40071
  Xn,
40071
40072
  {
40072
40073
  colSpan: t.length,
40073
- style: { paddingBottom: b.tableLayout === "compact" ? 12 : 24, paddingTop: 0 },
40074
- children: /* @__PURE__ */ m.jsx(LI, { children: x })
40074
+ style: { paddingBottom: x.tableLayout === "compact" ? 12 : 24, paddingTop: 0 },
40075
+ children: /* @__PURE__ */ m.jsx(LI, { children: v })
40075
40076
  }
40076
40077
  ),
40077
40078
  l !== void 0 && l.length > 0 && /* @__PURE__ */ m.jsx(
package/index.umd.cjs CHANGED
@@ -495,7 +495,7 @@ ${o}${v}`}else p=`${g}${l}${h.join(" ")}${l}${v}`}return e&&(p+=So(p,o,c(e)),a&&
495
495
  align-items: baseline;
496
496
  `;function vxe(e){const{item:t,itemToCardFn:n,isSelected:r,selectItem:i,unselectItem:a,itemActions:o,showSelect:s,defaultCardSubtitle:l}=e,c=x.useMemo(()=>n(t),[t,n]),u=!!(r!=null&&r(t)),f=x.useCallback(()=>{r!=null&&r(t)?a==null||a(t):i==null||i(t)},[r,t,i,a]),d=o!==void 0&&o.length>0,h=s||d;return m.jsxs(k.Card,{id:c.id,ouiaId:c.id,isFlat:!0,isLarge:!0,isRounded:!0,isSelectable:u,isSelected:u,style:{transition:"box-shadow 0.25s",cursor:"default",maxWidth:"100%"},children:[m.jsx(k.CardHeader,{...h&&{actions:{actions:m.jsxs(m.Fragment,{children:[o&&o.length&&m.jsx(Ho,{actions:o,position:zn.right,selectedItem:t,iconOnly:!0,collapse:"always"}),s&&m.jsx(k.Checkbox,{isChecked:r==null?void 0:r(t),onChange:f,id:"check-1"})]}),hasNoOffset:!1,className:void 0}},style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:m.jsxs(cxe,{children:[m.jsxs(fxe,{children:[c.iconAboveTitle?null:c.icon&&m.jsx(Gl,{size:"xl",children:c.icon}),m.jsxs(dxe,{children:[c.iconAboveTitle?m.jsx(uxe,{children:c.icon&&m.jsx(Gl,{size:"xl",children:c.icon})}):null,m.jsx(k.CardTitle,{children:m.jsx(k.Truncate,{content:c.title})}),c.subtitle?m.jsx(k.Text,{component:"small",style:{opacity:.7},children:c.subtitle}):l&&m.jsx(k.Text,{component:"small",style:{opacity:.7},children:l})]})]}),c.badge&&c.badgeTooltip&&m.jsx(k.FlexItem,{children:m.jsx("div",{onClick:p=>p.stopPropagation(),children:m.jsx(k.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,children:m.jsx(k.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&m.jsx(k.FlexItem,{children:m.jsx(k.Label,{color:c.badgeColor,children:c.badge})})]})}),c.cardBody,c.labels&&m.jsx(k.CardFooter,{children:m.jsx(hxe,{children:m.jsx(pxe,{children:c.labels&&m.jsx(k.LabelGroup,{numLabels:999,children:c.labels.map(p=>m.jsx(k.Label,{color:p.color,icon:p.icon,variant:p.variant,children:m.jsx(k.Truncate,{content:p.label,style:{minWidth:0}})},p.label))})})})}),c.alertTitle&&m.jsx(k.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function yxe(e,t){const n=x.useMemo(()=>{let c,u,f;const d=[];let h;const p=[];for(const g of e)if(g.card!=="hidden")switch(g.type){case"description":f||(f=g);break;case"labels":h||(h=g);break;case"count":d.push(g);break;default:switch(g.card){case"name":c=g;break;case"subtitle":u=g;break;case"description":f=g;break;default:p.push(g);break}break}return{nameColumn:c,subtitleColumn:u,descriptionColumn:f,countColumns:d,cardColumns:p,labelColumn:h}},[e]),{nameColumn:r,subtitleColumn:i,descriptionColumn:a,countColumns:o,cardColumns:s,labelColumn:l}=n;return x.useMemo(()=>c=>{var h,p;let u=!!a;a!=null&&a.value&&!a.value(c)&&(u=!1);const f=s.filter(g=>!g.value||g.value(c)),d={id:t(c),icon:(h=r==null?void 0:r.icon)==null?void 0:h.call(r,c),title:m.jsx(tn,{column:r,item:c}),subtitle:i&&(!i.value||i.value(c))&&m.jsx(tn,{column:i,item:c}),cardBody:m.jsx(k.CardBody,{children:m.jsxs(k.DescriptionList,{isCompact:!0,children:[u&&a&&m.jsx(Bs,{children:a.type==="description"?m.jsx("div",{children:a.value(c)}):m.jsx(tn,{column:a,item:c})},a.id??a.header),f.map(g=>m.jsx(Bs,{label:g.header,children:m.jsx(tn,{column:g,item:c})},g.id??g.header)),o.length>0&&m.jsx(Bs,{children:m.jsx(gxe,{children:o.map((g,v)=>m.jsxs(mxe,{children:[m.jsx(tn,{column:g,item:c}),m.jsx(lxe,{children:g.header})]},v))})},"count-columns")]})}),labels:l&&((p=l.value(c))==null?void 0:p.map(g=>({label:g})))};return!u&&f.length===0&&o.length===0&&(d.cardBody=void 0),d},[s,o,a,l,r,i,t])}function Zb(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:a,unselectItem:o,rowActions:s,showSelect:l,defaultSubtitle:c}=e,u=yxe(r,t),f=x.useMemo(()=>m.jsx(sxe,{size:400,children:n==null?void 0:n.map(d=>m.jsx(vxe,{item:d,itemToCardFn:u,isSelected:i,selectItem:a,unselectItem:o,itemActions:s,showSelect:l,defaultCardSubtitle:c},t(d)))}),[n,t,u,i,a,o,s,l,c]);return m.jsx(k.PageSection,{style:{flexGrow:1},children:f})}function Y6(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:a,unselectItem:o,rowActions:s,defaultSubtitle:l,showSelect:c}=e,u=bxe(r,t,i,a,o,s,l,c);return m.jsx(k.DataList,{"aria-label":"TODO",style:{marginTop:-1,maxWidth:"100%",overflow:"hidden"},children:n==null?void 0:n.map(u)})}function bxe(e,t,n,r,i,a,o,s){const l=x.useMemo(()=>{let y,b,_;const w=[];let S;const O=[],C=[];for(const T of e)if(T.list!=="hidden")switch(T.type){case"description":_||(_=T);break;case"labels":S||(S=T);break;case"count":w.push(T);break;default:switch(T.list){case"name":y=T;break;case"subtitle":b=T;break;case"description":_=T;break;case"secondary":C.push(T);break;default:O.push(T);break}break}return{nameColumn:y,subtitleColumn:b,descriptionColumn:_,countColumns:w,primaryColumns:O,secondaryColumns:C,labelColumn:S}},[e]),c=x.useCallback(y=>{n!=null&&n(y)?i==null||i(y):r==null||r(y)},[n,r,i]),{nameColumn:u,subtitleColumn:f,descriptionColumn:d,countColumns:h,primaryColumns:p,secondaryColumns:g,labelColumn:v}=l;return x.useCallback(y=>{const b=t(y),_=n==null?void 0:n(y);return m.jsx(k.DataListItem,{"aria-labelledby":`data-list-${b}`,isExpanded:_,children:m.jsxs(k.DataListItemRow,{children:[s&&m.jsx(k.DataListCheck,{"aria-labelledby":`data-list-check-${b}`,name:`data-list-check-${b}`,isChecked:n==null?void 0:n(y),onClick:()=>c(y),"data-cy":"data-list-check"}),m.jsx(k.DataListItemCells,{dataListCells:[m.jsx(k.DataListCell,{width:5,children:m.jsx(k.Flex,{children:m.jsxs(k.Stack,{hasGutter:!0,children:[m.jsxs(k.Flex,{alignItems:{default:"alignItemsCenter"},children:[(u==null?void 0:u.icon)&&m.jsx(Gl,{size:"xl",children:u==null?void 0:u.icon(y)}),m.jsxs(k.Stack,{children:[m.jsx(k.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},"data-cy":"data-list-name",children:m.jsx("span",{id:`data-list-${b}`,children:m.jsx(tn,{column:u,item:y})})}),f?m.jsx(k.Text,{component:"small",style:{opacity:.7},children:m.jsx(tn,{column:f,item:y})}):o&&m.jsx(k.Text,{component:"small",style:{opacity:.7},children:o})]})]}),(d||p.length>0||h.length>0||v)&&m.jsxs(k.DescriptionList,{isCompact:!0,children:[d&&(!d.value||d.value(y))&&m.jsx(k.DescriptionListGroup,{children:m.jsx(k.DescriptionListDescription,{children:m.jsx(tn,{column:d,item:y})})},d.header),p.map(w=>w.value&&!w.value(y)?m.jsx(m.Fragment,{}):m.jsxs(k.DescriptionListGroup,{children:[m.jsx(k.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:w.header}),m.jsx(k.DescriptionListDescription,{children:m.jsx(tn,{column:w,item:y})})]},w.header)),h.length>0&&m.jsx(k.DescriptionListGroup,{children:m.jsx(k.DescriptionListDescription,{children:m.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:h.map((w,S)=>m.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[m.jsx(tn,{column:w,item:y}),m.jsx("small",{style:{opacity:.7},children:w.header})]},S))})})},"counts"),v&&m.jsx(k.DescriptionListGroup,{children:m.jsx(k.DescriptionListDescription,{children:m.jsx(tn,{column:v,item:y})})},v.header)]})]})})},"primary"),g.length>0?m.jsx(k.DataListCell,{children:m.jsx(k.DescriptionList,{isCompact:!0,children:g.map(w=>w.value&&!w.value(y)?m.jsx(m.Fragment,{}):m.jsxs(k.DescriptionListGroup,{children:[m.jsx(k.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:w.header}),m.jsx(k.DescriptionListDescription,{children:m.jsx(tn,{column:w,item:y})})]},w.header))})},"secondary"):null]}),a&&m.jsx(k.DataListAction,{"aria-labelledby":"check-action-item1 check-action-action1",id:"check-action-action1","aria-label":"Actions",isPlainButtonAction:!0,style:{whiteSpace:"nowrap"},"data-cy":"data-list-action",children:m.jsx(Ho,{actions:a,position:zn.right,selectedItem:y,iconOnly:!0,collapse:"always"})})]})},b)},[t,n,s,u,f,o,p,d,h,v,g,a,c])}const xxe=Ee.div`
497
497
  height: 100%;
498
- `;function Kc(e){const{id:t,toolbarActions:n,filterState:r,error:i,itemCount:a}=e,o=e.showSelect||(n==null?void 0:n.find(v=>"selection"in v&&v.selection===yt.Multiple))!==void 0,s=!e.disableTableView,l=!e.disableListView,[c,u]=x.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return et.Table;case"list":return et.List;case"cards":return et.Cards}return e.defaultTableView??(s?et.Table:l?et.List:et.Cards)}),f=x.useCallback(v=>{u(v),e.id&&localStorage.setItem(e.id+"-view",v)},[e.id]),{openColumnManagement:d,managedColumns:h}=ixe((t??"")+"-columns",e.tableColumns,c!==et.Table,c!==et.List,c!==et.Cards),p=q1e(e.tableColumns);if(i)return m.jsx(X1e,{titleProp:e.errorStateTitle,message:i.message});if(a===0&&Object.keys(r??{}).length===0)return m.jsx(J1e,{title:e.emptyStateTitle,description:e.emptyStateDescription,button:e.emptyStateButtonClick&&m.jsx(k.Button,{"data-cy":e.emptyStateButtonText?Oxe(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&m.jsx(k.Flex,{justifyContent:{default:"justifyContentCenter"},children:m.jsx(Ho,{actions:e.emptyStateActions})})});let g=e.topContent;return g&&(g=m.jsx(k.PageSection,{variant:"light",padding:{default:"noPadding"},style:{borderBottom:"thin solid var(--pf-v5-global--BorderColor--100)"},children:e.topContent})),m.jsxs(m.Fragment,{children:[m.jsx(G6,{...e,openColumnModal:e.id?d:void 0,showSelect:o,viewType:c,setViewType:f,sortOptions:p,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),c===et.Table&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(rr,{children:[g,!e.hideTable&&m.jsx(K6,{...e,tableColumns:h})]}):m.jsxs(m.Fragment,{children:[g,!e.hideTable&&m.jsx(K6,{...e,tableColumns:h})]})}),c===et.List&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(rr,{children:[g,m.jsx(k.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(Y6,{...e,showSelect:o,tableColumns:h})})]}):m.jsxs(m.Fragment,{children:[g,m.jsx(rr,{children:m.jsx(k.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(Y6,{...e,showSelect:o,tableColumns:h})})})]})}),c===et.Cards&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(rr,{children:[g,!e.hideTable&&m.jsx(Zb,{...e,showSelect:o,tableColumns:h})]}):m.jsxs(m.Fragment,{children:[g,m.jsx(rr,{children:!e.hideTable&&m.jsx(Zb,{...e,showSelect:o,tableColumns:h})})]})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&m.jsx(oxe,{...e,topBorder:!e.autoHidePagination})]})}function K6(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:i,isSelectMultiple:a,keyFn:o,rowActions:s,toolbarActions:l,itemCount:c,clearAllFilters:u,onSelect:f,unselectAll:d,maxSelections:h}=e,p=jb(e.tableColumns),g=g6(e.tableColumns),v=m6(e.tableColumns),y=x.useMemo(()=>{const A=[];if(g.length)for(const P of g)"value"in P?A.push($=>{var R;const M=(R=P.value)==null?void 0:R.call(P,$);if(M)return m.jsx("div",{children:M},P.id??P.header)}):A.push($=>P.cell($));return v.length&&A.push(P=>v.some(M=>{var R;return((R=M.value)==null?void 0:R.call(M,P))!==void 0})?m.jsx(l6,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:m.jsx(b6,{item:P,columns:v},o(P))}):null),e.expandedRow&&A.push(e.expandedRow),A.length===0?void 0:P=>A.map(M=>M(P)).filter(M=>M!=null).length===0?null:m.jsx(k.Stack,{hasGutter:!0,children:A.map(M=>M(P))})},[g,v,o,e.expandedRow]),[b]=Ct(),_=e.showSelect||(l==null?void 0:l.find(A=>"selection"in A&&A.selection===yt.Multiple))!==void 0,w=x.useRef(null),[S,O]=x.useState({left:0,right:0,top:0,bottom:0}),C=x.useCallback(A=>{A&&O({top:A.scrollTop,bottom:A.scrollHeight-A.clientHeight-A.scrollTop,left:A.scrollLeft,right:A.scrollWidth-A.clientWidth-A.scrollLeft})},[]),T=x.useCallback(A=>C(A.currentTarget),[C]);rs(w,()=>C(w.current)),x.useEffect(()=>C(w.current),[C]);const D=is();let I;return e.itemCount===void 0||t===void 0?I=m.jsx(axe,{}):I=m.jsxs(m.Fragment,{children:[m.jsxs(Le.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||D.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[m.jsx(_xe,{...e,showSelect:_,scrollLeft:S.left>0,scrollRight:S.right>1,tableColumns:p,onSelect:f,expandedRow:y}),m.jsx(Le.Tbody,{children:t.map((A,j)=>m.jsx(wxe,{columns:p,item:A,isItemSelected:i==null?void 0:i(A),isSelectMultiple:a,selectItem:n,unselectItem:r,rowActions:s,rowIndex:j,showSelect:_,scrollLeft:S.left>0,scrollRight:S.right>1,unselectAll:d,onSelect:f,expandedRow:y,isLastRow:j===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:h,selectedItems:e.selectedItems},o?o(A):j))})]}),c===0&&m.jsxs(k.EmptyState,{isFullHeight:!0,children:[m.jsx(k.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:b.noResultsFound}),icon:m.jsx(k.EmptyStateIcon,{icon:ve.SearchIcon}),headingLevel:"h2"}),m.jsx(k.EmptyStateBody,{children:b.noResultsMatchCriteria}),m.jsx(k.EmptyStateFooter,{children:u&&m.jsx(k.EmptyStateActions,{children:m.jsx(k.Button,{variant:"primary",onClick:u,children:b.clearAllFilters})})})]})]}),e.scrollTopContent||(I=m.jsx(xxe,{className:"pf-v5-c-scroll-inner-wrapper",ref:w,onScroll:T,style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:I})),I}function _xe(e){const{tableColumns:t,rowActions:n,sort:r,setSort:i,sortDirection:a,setSortDirection:o,showSelect:s,onSelect:l,expandedRow:c}=e,u=x.useCallback((f,d)=>{if(d.sort)return{onSort:(h,p,g)=>{d.sort&&(i==null||i(d.sort),o==null||o(g))},sortBy:{index:d.sort===r?f:void 0,direction:d.sort===r?a:void 0,defaultDirection:d.defaultSortDirection},columnIndex:f}},[i,o,r,a]);return m.jsx(Le.Thead,{children:m.jsxs(Le.Tr,{className:"bg-lighten",children:[c&&m.jsx(Le.Th,{style:{padding:0},className:"bg-lighten"}),(s||l)&&m.jsx(Le.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"selections-column-header",className:e.scrollLeft?"bg-lighten-2":"bg-lighten",children:" "}),t.map((f,d)=>m.jsx(Le.Th,{sort:u(d,f),modifier:"nowrap",style:{minWidth:f.minWidth===0?"1%":f.minWidth!==void 0?f.minWidth:void 0,maxWidth:f.maxWidth!==void 0?f.maxWidth:void 0,width:f.fullWidth?"100%":void 0},"data-cy":Oi(f.header+"-column-header"),className:"bg-lighten",children:f.header},f.header)),n!==void 0&&m.jsx(Le.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0,zIndex:302},className:e.scrollRight?"pf-m-border-left bg-lighten-2":"bg-lighten","data-cy":"action-column-header",children:" "})]})})}function wxe(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:i,isItemSelected:a,isSelectMultiple:o,item:s,rowActions:l,rowIndex:c,showSelect:u,onSelect:f,expandedRow:d,disableLastRowBorder:h,maxSelections:p,selectedItems:g}=e,[v,y]=x.useState(!1),b=is(),_=d==null?void 0:d(s),w=x.useCallback(S=>(g==null?void 0:g.length)===p?!(g!=null&&g.includes(S)):!1,[p,g]);return m.jsxs(m.Fragment,{children:[m.jsxs(Le.Tr,{style:{boxShadow:"unset",borderBottom:v||e.isLastRow&&h?"unset":void 0},"data-cy":"id"in s&&(typeof s.id=="string"||typeof s.id=="number")?`row-id-${s.id.toString()}`:`row-${c}`,className:a?"selected":void 0,children:[d&&m.jsx(Le.Td,{expand:_?{rowIndex:c,isExpanded:v,onToggle:()=>y(S=>!S)}:void 0,style:{paddingLeft:_?8:4},"data-cy":"expand-column-cell"}),u&&m.jsx(Le.Th,{select:a!==void 0?{onSelect:(S,O)=>{O?r==null||r(s):i==null||i(s)},isSelected:a,isDisabled:p&&g?w(s):!1}:void 0,isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),f&&m.jsx(Le.Td,{select:{rowIndex:c,onSelect:()=>{o||n==null||n(),r==null||r(s),f==null||f(s)},isSelected:a??!1,variant:o?"checkbox":"radio",isDisabled:p&&g?w(s):!1},isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),m.jsx(Sxe,{columns:t,item:s,rowActions:l,scrollLeft:e.scrollLeft,scrollRight:e.scrollRight})]}),d&&v&&_&&m.jsxs(Le.Tr,{isExpanded:v,style:{boxShadow:"unset"},className:a?"selected":void 0,children:[m.jsx(Le.Td,{}),u&&m.jsx(Le.Th,{isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,className:e.scrollLeft?"bg-lighten":void 0}),f&&m.jsx(Le.Td,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),m.jsx(Le.Td,{colSpan:t.length,style:{paddingBottom:b.tableLayout==="compact"?12:24,paddingTop:0},children:m.jsx(Le.CollapseColumn,{children:_})}),l!==void 0&&l.length>0&&m.jsx(Le.Td,{isActionCell:!0,isStickyColumn:e.scrollRight,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0},className:e.scrollRight?"pf-m-border-left bg-lighten":void 0,children:" "})]})]})}function Sxe(e){const{columns:t,item:n,rowActions:r}=e,[i,a]=x.useState(!1);return m.jsxs(x.Fragment,{children:[t.map(o=>m.jsx(Le.Td,{dataLabel:o.header,modifier:"nowrap",style:{width:o.minWidth===0?"0%":void 0},"data-cy":Oi(o.header+"-column-cell"),children:m.jsx(tn,{item:n,column:o})},o.header)),r!==void 0&&r.length>0&&m.jsx(Le.Td,{isActionCell:!0,isStickyColumn:e.scrollRight,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:8,zIndex:i?400:void 0},"data-cy":"actions-column-cell",className:e.scrollRight?"pf-m-border-left bg-lighten":void 0,children:m.jsx(Ho,{actions:r,selectedItem:n,position:zn.right,iconOnly:!0,onOpen:a})})]})}function Oxe(e){return e.toLowerCase().split(" ").join("-")}function X6(e){const{title:t,items:n,keyFn:r,actionColumns:i,actionFn:a,onComplete:o,onClose:s,processingText:l,isDanger:c,errorAdapter:u=qc}=e,{t:f}=Be(),[d]=Ct(),[h,p]=x.useState(!0),[g,v]=x.useState(!1),[y,b]=x.useState(0),[_,w]=x.useState(""),[S,O]=x.useState(),C=d1e(),[T,D]=ei(),I=x.useCallback(()=>{v(!0),C.abort(),p(!1),O($=>{const M={...$};for(const R of n){const W=r(R);M[W]===void 0&&(M[W]=f("Cancelled"))}return M})},[C,n,r,f]),A=x.useCallback(()=>{D(void 0),s==null||s()},[s,D]);x.useEffect(()=>{async function $(){const M=f1e(5);let R=0;const W=[];await Promise.all(n.map(V=>M(async()=>{if(C.signal.aborted)return;const z=r(V);try{await a(V,C.signal),C.signal.aborted||O(F=>({...F??{},[z]:null})),W.push(V)}catch(F){const{genericErrors:G,fieldErrors:ee}=u(F),ne=[...G,...ee.filter(te=>te.message)];if(!C.signal.aborted){if(F instanceof Error){const te=typeof ne[0].message=="string"&&ne.length===1?ne[0].message:f("Unknown error");O(Q=>({...Q??{},[z]:te}))}else O(te=>({...te??{},[z]:f("Unknown error")}));w(d.errorText)}}finally{C.signal.aborted||b(++R)}}))),C.signal.aborted||p(!1),o==null||o(W)}$()},[C,a,n,r,o,d.errorText,f,u]);const j=Yc(n),P=cp(i);return m.jsxs(k.Modal,{titleIconVariant:c?"warning":void 0,title:t,ouiaId:t,"aria-label":t,variant:k.ModalVariant.medium,isOpen:!0,onClose:()=>{I(),A()},actions:h?[m.jsx(k.Button,{variant:"link",onClick:I,children:d.cancelText},"cancel")]:[m.jsx(k.Button,{variant:"secondary",onClick:A,children:d.closeText},"close")],hasNoBodyWrapper:!0,children:[m.jsx(k.ModalBoxBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:m.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"thin solid var(--pf-v5-global--BorderColor--100)"},children:m.jsx(Kc,{pageItems:[...j.paged],itemCount:n.length,tableColumns:[...P,{header:f("Status"),cell:$=>{const M=r($),R=S==null?void 0:S[M];return R===void 0?m.jsxs("span",{style:{color:Am},children:[m.jsx(ve.PendingIcon,{}),"  ",d.pendingText]}):R===null?m.jsxs("span",{style:{color:km},children:[m.jsx(ve.CheckCircleIcon,{}),"  ",d.successText]}):m.jsxs("span",{style:{color:Tm},children:[m.jsx(ve.ExclamationCircleIcon,{}),"  ",S==null?void 0:S[M]]})}}],keyFn:r,compact:!0,errorStateTitle:"",emptyStateTitle:f("No items"),autoHidePagination:!0,disableBodyPadding:!0,...j},"status")})}),m.jsx(k.ModalBoxBody,{style:{paddingTop:0},children:m.jsx(k.Progress,{"data-cy":"progress",value:y/n.length*100,title:C.signal.aborted?d.canceledText:_?d.errorText:h?l??d.processingText:d.successText,size:k.ProgressSize.lg,variant:_||g?k.ProgressVariant.danger:y===n.length?k.ProgressVariant.success:void 0})})]})}function Z6(e=qc){const[t,n]=ei(),[r,i]=x.useState();return x.useEffect(()=>{if(r){const a=()=>{var o;i(void 0),(o=r.onClose)==null||o.call(r)};n(m.jsx(X6,{...r,errorAdapter:r.errorAdapter??e,onClose:a}))}else n(void 0)},[r,n,e]),i}function J6(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 Xc(e,t);if(typeof t=="number")return Xc(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return Q6(e,t);if(typeof t=="string")return Xc(e.toString(),t)}return 0}function Xc(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function Q6(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const Cxe=Ee.div`
498
+ `;function Kc(e){const{id:t,toolbarActions:n,filterState:r,error:i,itemCount:a}=e,o=e.showSelect||(n==null?void 0:n.find(v=>"selection"in v&&v.selection===yt.Multiple))!==void 0,s=!e.disableTableView,l=!e.disableListView,[c,u]=x.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return et.Table;case"list":return et.List;case"cards":return et.Cards}return e.defaultTableView??(s?et.Table:l?et.List:et.Cards)}),f=x.useCallback(v=>{u(v),e.id&&localStorage.setItem(e.id+"-view",v)},[e.id]),{openColumnManagement:d,managedColumns:h}=ixe((t??"")+"-columns",e.tableColumns,c!==et.Table,c!==et.List,c!==et.Cards),p=q1e(e.tableColumns);if(i)return m.jsx(X1e,{titleProp:e.errorStateTitle,message:i.message});if(a===0&&Object.keys(r??{}).length===0)return m.jsx(J1e,{title:e.emptyStateTitle,description:e.emptyStateDescription,button:e.emptyStateButtonClick&&m.jsx(k.Button,{"data-cy":e.emptyStateButtonText?Oxe(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&m.jsx(k.Flex,{justifyContent:{default:"justifyContentCenter"},children:m.jsx(Ho,{actions:e.emptyStateActions})})});let g=e.topContent;return g&&(g=m.jsx(k.PageSection,{variant:"light",padding:{default:"noPadding"},style:{borderBottom:"thin solid var(--pf-v5-global--BorderColor--100)"},children:e.topContent})),m.jsxs(m.Fragment,{children:[m.jsx(G6,{...e,openColumnModal:e.id?d:void 0,showSelect:o,viewType:c,setViewType:f,sortOptions:p,limitFiltersToOneOrOperation:e.limitFiltersToOneOrOperation}),c===et.Table&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(rr,{children:[g,!e.hideTable&&m.jsx(K6,{...e,tableColumns:h})]}):m.jsxs(m.Fragment,{children:[g,!e.hideTable&&m.jsx(K6,{...e,tableColumns:h})]})}),c===et.List&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(rr,{children:[g,m.jsx(k.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(Y6,{...e,showSelect:o,tableColumns:h})})]}):m.jsxs(m.Fragment,{children:[g,m.jsx(rr,{children:m.jsx(k.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(Y6,{...e,showSelect:o,tableColumns:h})})})]})}),c===et.Cards&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(rr,{children:[g,!e.hideTable&&m.jsx(Zb,{...e,showSelect:o,tableColumns:h})]}):m.jsxs(m.Fragment,{children:[g,m.jsx(rr,{children:!e.hideTable&&m.jsx(Zb,{...e,showSelect:o,tableColumns:h})})]})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&m.jsx(oxe,{...e,topBorder:!e.autoHidePagination})]})}function K6(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:i,isSelectMultiple:a,keyFn:o,rowActions:s,toolbarActions:l,itemCount:c,clearAllFilters:u,onSelect:f,unselectAll:d,maxSelections:h}=e,p=jb(e.tableColumns),g=g6(e.tableColumns),v=m6(e.tableColumns),y=x.useMemo(()=>{const A=[];if(g.length)for(const P of g)"value"in P?A.push($=>{var R;const M=(R=P.value)==null?void 0:R.call(P,$);if(M)return m.jsx("div",{children:M},P.id??P.header)}):A.push($=>P.cell($));return v.length&&A.push(P=>v.some(M=>{var R;return((R=M.value)==null?void 0:R.call(M,P))!==void 0})?m.jsx(l6,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:m.jsx(b6,{item:P,columns:v},o(P))}):null),e.expandedRow&&A.push(e.expandedRow),A.length===0?void 0:P=>A.map(M=>M(P)).filter(M=>M!=null).length===0?null:m.jsx(k.Stack,{hasGutter:!0,children:A.map(M=>M(P))})},[g,v,o,e.expandedRow]),[b]=Ct(),_=e.showSelect||(l==null?void 0:l.find(A=>"selection"in A&&A.selection===yt.Multiple))!==void 0,w=x.useRef(null),[S,O]=x.useState({left:0,right:0,top:0,bottom:0}),C=x.useCallback(A=>{A&&O({top:A.scrollTop,bottom:A.scrollHeight-A.clientHeight-A.scrollTop,left:A.scrollLeft,right:A.scrollWidth-A.clientWidth-A.scrollLeft})},[]),T=x.useCallback(A=>C(A.currentTarget),[C]);rs(w,()=>C(w.current)),x.useEffect(()=>C(w.current),[C]);const D=is();let I;return e.itemCount===void 0||t===void 0?I=m.jsx(axe,{}):I=m.jsxs(m.Fragment,{children:[m.jsxs(Le.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||D.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[m.jsx(_xe,{...e,showSelect:_,scrollLeft:S.left>0,scrollRight:S.right>1,tableColumns:p,onSelect:f,expandedRow:y}),m.jsx(Le.Tbody,{children:t.map((A,j)=>m.jsx(wxe,{columns:p,item:A,isItemSelected:i==null?void 0:i(A),isSelectMultiple:a,selectItem:n,unselectItem:r,rowActions:s,rowIndex:j,showSelect:_,scrollLeft:S.left>0,scrollRight:S.right>1,unselectAll:d,onSelect:f,expandedRow:y,isLastRow:j===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:h,selectedItems:e.selectedItems,defaultExpandedRows:e.defaultExpandedRows},o?o(A):j))})]}),c===0&&m.jsxs(k.EmptyState,{isFullHeight:!0,children:[m.jsx(k.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:b.noResultsFound}),icon:m.jsx(k.EmptyStateIcon,{icon:ve.SearchIcon}),headingLevel:"h2"}),m.jsx(k.EmptyStateBody,{children:b.noResultsMatchCriteria}),m.jsx(k.EmptyStateFooter,{children:u&&m.jsx(k.EmptyStateActions,{children:m.jsx(k.Button,{variant:"primary",onClick:u,children:b.clearAllFilters})})})]})]}),e.scrollTopContent||(I=m.jsx(xxe,{className:"pf-v5-c-scroll-inner-wrapper",ref:w,onScroll:T,style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:I})),I}function _xe(e){const{tableColumns:t,rowActions:n,sort:r,setSort:i,sortDirection:a,setSortDirection:o,showSelect:s,onSelect:l,expandedRow:c}=e,u=x.useCallback((f,d)=>{if(d.sort)return{onSort:(h,p,g)=>{d.sort&&(i==null||i(d.sort),o==null||o(g))},sortBy:{index:d.sort===r?f:void 0,direction:d.sort===r?a:void 0,defaultDirection:d.defaultSortDirection},columnIndex:f}},[i,o,r,a]);return m.jsx(Le.Thead,{children:m.jsxs(Le.Tr,{className:"bg-lighten",children:[c&&m.jsx(Le.Th,{style:{padding:0},className:"bg-lighten"}),(s||l)&&m.jsx(Le.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"selections-column-header",className:e.scrollLeft?"bg-lighten-2":"bg-lighten",children:" "}),t.map((f,d)=>m.jsx(Le.Th,{sort:u(d,f),modifier:"nowrap",style:{minWidth:f.minWidth===0?"1%":f.minWidth!==void 0?f.minWidth:void 0,maxWidth:f.maxWidth!==void 0?f.maxWidth:void 0,width:f.fullWidth?"100%":void 0},"data-cy":Oi(f.header+"-column-header"),className:"bg-lighten",children:f.header},f.header)),n!==void 0&&m.jsx(Le.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0,zIndex:302},className:e.scrollRight?"pf-m-border-left bg-lighten-2":"bg-lighten","data-cy":"action-column-header",children:" "})]})})}function wxe(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:i,isItemSelected:a,isSelectMultiple:o,item:s,rowActions:l,rowIndex:c,showSelect:u,onSelect:f,expandedRow:d,disableLastRowBorder:h,maxSelections:p,selectedItems:g}=e,v=d==null?void 0:d(s),[y,b]=x.useState(!!e.defaultExpandedRows&&!!v),_=is(),w=x.useCallback(S=>(g==null?void 0:g.length)===p?!(g!=null&&g.includes(S)):!1,[p,g]);return m.jsxs(m.Fragment,{children:[m.jsxs(Le.Tr,{style:{boxShadow:"unset",borderBottom:y||e.isLastRow&&h?"unset":void 0},"data-cy":"id"in s&&(typeof s.id=="string"||typeof s.id=="number")?`row-id-${s.id.toString()}`:`row-${c}`,className:a?"selected":void 0,children:[d&&m.jsx(Le.Td,{expand:v?{rowIndex:c,isExpanded:y,onToggle:()=>b(S=>!S)}:void 0,style:{paddingLeft:v?8:4},"data-cy":"expand-column-cell"}),u&&m.jsx(Le.Th,{select:a!==void 0?{onSelect:(S,O)=>{O?r==null||r(s):i==null||i(s)},isSelected:a,isDisabled:p&&g?w(s):!1}:void 0,isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),f&&m.jsx(Le.Td,{select:{rowIndex:c,onSelect:()=>{o||n==null||n(),r==null||r(s),f==null||f(s)},isSelected:a??!1,variant:o?"checkbox":"radio",isDisabled:p&&g?w(s):!1},isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),m.jsx(Sxe,{columns:t,item:s,rowActions:l,scrollLeft:e.scrollLeft,scrollRight:e.scrollRight})]}),d&&y&&v&&m.jsxs(Le.Tr,{isExpanded:y,style:{boxShadow:"unset"},className:a?"selected":void 0,children:[m.jsx(Le.Td,{}),u&&m.jsx(Le.Th,{isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,className:e.scrollLeft?"bg-lighten":void 0}),f&&m.jsx(Le.Td,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),m.jsx(Le.Td,{colSpan:t.length,style:{paddingBottom:_.tableLayout==="compact"?12:24,paddingTop:0},children:m.jsx(Le.CollapseColumn,{children:v})}),l!==void 0&&l.length>0&&m.jsx(Le.Td,{isActionCell:!0,isStickyColumn:e.scrollRight,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0},className:e.scrollRight?"pf-m-border-left bg-lighten":void 0,children:" "})]})]})}function Sxe(e){const{columns:t,item:n,rowActions:r}=e,[i,a]=x.useState(!1);return m.jsxs(x.Fragment,{children:[t.map(o=>m.jsx(Le.Td,{dataLabel:o.header,modifier:"nowrap",style:{width:o.minWidth===0?"0%":void 0},"data-cy":Oi(o.header+"-column-cell"),children:m.jsx(tn,{item:n,column:o})},o.header)),r!==void 0&&r.length>0&&m.jsx(Le.Td,{isActionCell:!0,isStickyColumn:e.scrollRight,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:8,zIndex:i?400:void 0},"data-cy":"actions-column-cell",className:e.scrollRight?"pf-m-border-left bg-lighten":void 0,children:m.jsx(Ho,{actions:r,selectedItem:n,position:zn.right,iconOnly:!0,onOpen:a})})]})}function Oxe(e){return e.toLowerCase().split(" ").join("-")}function X6(e){const{title:t,items:n,keyFn:r,actionColumns:i,actionFn:a,onComplete:o,onClose:s,processingText:l,isDanger:c,errorAdapter:u=qc}=e,{t:f}=Be(),[d]=Ct(),[h,p]=x.useState(!0),[g,v]=x.useState(!1),[y,b]=x.useState(0),[_,w]=x.useState(""),[S,O]=x.useState(),C=d1e(),[T,D]=ei(),I=x.useCallback(()=>{v(!0),C.abort(),p(!1),O($=>{const M={...$};for(const R of n){const W=r(R);M[W]===void 0&&(M[W]=f("Cancelled"))}return M})},[C,n,r,f]),A=x.useCallback(()=>{D(void 0),s==null||s()},[s,D]);x.useEffect(()=>{async function $(){const M=f1e(5);let R=0;const W=[];await Promise.all(n.map(V=>M(async()=>{if(C.signal.aborted)return;const z=r(V);try{await a(V,C.signal),C.signal.aborted||O(F=>({...F??{},[z]:null})),W.push(V)}catch(F){const{genericErrors:G,fieldErrors:ee}=u(F),ne=[...G,...ee.filter(te=>te.message)];if(!C.signal.aborted){if(F instanceof Error){const te=typeof ne[0].message=="string"&&ne.length===1?ne[0].message:f("Unknown error");O(Q=>({...Q??{},[z]:te}))}else O(te=>({...te??{},[z]:f("Unknown error")}));w(d.errorText)}}finally{C.signal.aborted||b(++R)}}))),C.signal.aborted||p(!1),o==null||o(W)}$()},[C,a,n,r,o,d.errorText,f,u]);const j=Yc(n),P=cp(i);return m.jsxs(k.Modal,{titleIconVariant:c?"warning":void 0,title:t,ouiaId:t,"aria-label":t,variant:k.ModalVariant.medium,isOpen:!0,onClose:()=>{I(),A()},actions:h?[m.jsx(k.Button,{variant:"link",onClick:I,children:d.cancelText},"cancel")]:[m.jsx(k.Button,{variant:"secondary",onClick:A,children:d.closeText},"close")],hasNoBodyWrapper:!0,children:[m.jsx(k.ModalBoxBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:m.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"thin solid var(--pf-v5-global--BorderColor--100)"},children:m.jsx(Kc,{pageItems:[...j.paged],itemCount:n.length,tableColumns:[...P,{header:f("Status"),cell:$=>{const M=r($),R=S==null?void 0:S[M];return R===void 0?m.jsxs("span",{style:{color:Am},children:[m.jsx(ve.PendingIcon,{}),"  ",d.pendingText]}):R===null?m.jsxs("span",{style:{color:km},children:[m.jsx(ve.CheckCircleIcon,{}),"  ",d.successText]}):m.jsxs("span",{style:{color:Tm},children:[m.jsx(ve.ExclamationCircleIcon,{}),"  ",S==null?void 0:S[M]]})}}],keyFn:r,compact:!0,errorStateTitle:"",emptyStateTitle:f("No items"),autoHidePagination:!0,disableBodyPadding:!0,...j},"status")})}),m.jsx(k.ModalBoxBody,{style:{paddingTop:0},children:m.jsx(k.Progress,{"data-cy":"progress",value:y/n.length*100,title:C.signal.aborted?d.canceledText:_?d.errorText:h?l??d.processingText:d.successText,size:k.ProgressSize.lg,variant:_||g?k.ProgressVariant.danger:y===n.length?k.ProgressVariant.success:void 0})})]})}function Z6(e=qc){const[t,n]=ei(),[r,i]=x.useState();return x.useEffect(()=>{if(r){const a=()=>{var o;i(void 0),(o=r.onClose)==null||o.call(r)};n(m.jsx(X6,{...r,errorAdapter:r.errorAdapter??e,onClose:a}))}else n(void 0)},[r,n,e]),i}function J6(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 Xc(e,t);if(typeof t=="number")return Xc(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return Q6(e,t);if(typeof t=="string")return Xc(e.toString(),t)}return 0}function Xc(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function Q6(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const Cxe=Ee.div`
499
499
  display: flex;
500
500
  flex-direction: column;
501
501
  max-height: 560px;
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.1166",
4
+ "version": "2.4.1168",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",