@ansible/ansible-ui-framework 2.4.1977 → 2.4.1979

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ export interface BulkActionDialogProps<T extends object> {
9
9
  actionColumns: ITableColumn<T>[];
10
10
  actionFn: (item: T, signal: AbortSignal) => Promise<unknown>;
11
11
  onComplete?: (successfulItems: T[]) => void;
12
- onClose?: () => void;
12
+ onClose?: (status: 'success' | 'failures' | 'canceled', successfulItems: T[], failedItems: T[], canceledItems: T[]) => void;
13
13
  processingText?: string;
14
14
  isDanger?: boolean;
15
15
  errorAdapter?: ErrorAdapter;
package/index.js CHANGED
@@ -38049,8 +38049,13 @@ function jxe(e) {
38049
38049
  return F;
38050
38050
  });
38051
38051
  }, [E, n, r, d]), k = ee(() => {
38052
- $(void 0), s == null || s();
38053
- }, [s, $]);
38052
+ $(void 0), s == null || s(
38053
+ v ? "canceled" : w ? "failures" : "success",
38054
+ n.filter((I) => (S == null ? void 0 : S[r(I)]) === null),
38055
+ n.filter((I) => (S == null ? void 0 : S[r(I)]) !== null),
38056
+ n.filter((I) => (S == null ? void 0 : S[r(I)]) === void 0)
38057
+ );
38058
+ }, [w, v, n, r, s, $, S]);
38054
38059
  ye(() => {
38055
38060
  async function I() {
38056
38061
  const F = I1e(5);
@@ -38185,9 +38190,9 @@ function Dxe(e = wu) {
38185
38190
  const [t, n] = Ba(), [r, i] = ne();
38186
38191
  return ye(() => {
38187
38192
  if (r) {
38188
- const a = () => {
38189
- var o;
38190
- i(void 0), (o = r.onClose) == null || o.call(r);
38193
+ const a = (o, s, l, c) => {
38194
+ var u;
38195
+ i(void 0), (u = r.onClose) == null || u.call(r, o, s, l, c);
38191
38196
  };
38192
38197
  n(
38193
38198
  /* @__PURE__ */ g.jsx(
package/index.umd.cjs CHANGED
@@ -439,7 +439,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
439
439
  align-items: baseline;
440
440
  `;function a6(e){const{item:t,itemToCardFn:n,isSelected:r,selectItem:i,unselectItem:a,itemActions:o,showSelect:s,defaultCardSubtitle:l}=e,c=b.useMemo(()=>n(t),[t,n]),u=!!(r!=null&&r(t)),f=b.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(T.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(T.CardHeader,{...h&&{actions:{actions:m.jsxs(m.Fragment,{children:[o&&o.length&&m.jsx(Wr,{actions:o,position:Qt.right,selectedItem:t,iconOnly:!0,collapse:"always"}),s&&m.jsx(T.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(tye,{children:[m.jsxs(rye,{children:[c.iconAboveTitle?null:c.icon&&m.jsx(kl,{size:"xl",children:c.icon}),m.jsxs(iye,{children:[c.iconAboveTitle?m.jsx(nye,{children:c.icon&&m.jsx(kl,{size:"xl",children:c.icon})}):null,m.jsx(T.CardTitle,{children:m.jsx(T.Truncate,{content:c.title})}),c.subtitle?m.jsx(T.Text,{component:"small",style:{opacity:.7},children:c.subtitle}):l&&m.jsx(T.Text,{component:"small",style:{opacity:.7},children:l})]})]}),c.badge&&c.badgeTooltip&&m.jsx(T.FlexItem,{children:m.jsx("div",{onClick:p=>p.stopPropagation(),children:m.jsx(T.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,children:m.jsx(T.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&m.jsx(T.FlexItem,{children:m.jsx(T.Label,{color:c.badgeColor,children:c.badge})})]})}),c.cardBody,c.labels&&m.jsx(T.CardFooter,{children:m.jsx(aye,{children:m.jsx(oye,{children:c.labels&&m.jsx(T.LabelGroup,{numLabels:999,children:c.labels.map(p=>m.jsx(T.Label,{color:p.color,icon:p.icon,variant:p.variant,children:m.jsx(T.Truncate,{content:p.label,style:{minWidth:0}})},p.label))})})})}),c.alertTitle&&m.jsx(T.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function o6(e,t){const n=b.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 b.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(Jt,{column:r,item:c}),subtitle:i&&(!i.value||i.value(c))&&m.jsx(Jt,{column:i,item:c}),cardBody:m.jsx(T.CardBody,{children:m.jsxs(T.DescriptionList,{isCompact:!0,children:[u&&a&&m.jsx(js,{children:a.type==="description"?m.jsx("div",{children:a.value(c)}):m.jsx(Jt,{column:a,item:c})},a.id??a.header),f.map(g=>m.jsx(js,{label:g.header,children:m.jsx(Jt,{column:g,item:c})},g.id??g.header)),o.length>0&&m.jsx(js,{children:m.jsx(r6,{children:o.map((g,v)=>m.jsxs(i6,{children:[m.jsx(Jt,{column:g,item:c}),m.jsx(n6,{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 tb(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:a,unselectItem:o,rowActions:s,showSelect:l,defaultSubtitle:c}=e,u=o6(r,t),f=b.useMemo(()=>m.jsx(eye,{size:400,children:n==null?void 0:n.map(d=>m.jsx(a6,{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(T.PageSection,{style:{flexGrow:1},children:f})}function s6(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:a,unselectItem:o,rowActions:s,defaultSubtitle:l,showSelect:c}=e,u=sye(r,t,i,a,o,s,l,c);return m.jsx(T.DataList,{"aria-label":"TODO",style:{marginTop:-1,maxWidth:"100%",overflow:"hidden"},children:n==null?void 0:n.map(u)})}function sye(e,t,n,r,i,a,o,s){const l=b.useMemo(()=>{let y,x,_;const S=[];let w;const O=[],C=[];for(const k of e)if(k.list!=="hidden")switch(k.type){case"description":_||(_=k);break;case"labels":w||(w=k);break;case"count":S.push(k);break;default:switch(k.list){case"name":y=k;break;case"subtitle":x=k;break;case"description":_=k;break;case"secondary":C.push(k);break;default:O.push(k);break}break}return{nameColumn:y,subtitleColumn:x,descriptionColumn:_,countColumns:S,primaryColumns:O,secondaryColumns:C,labelColumn:w}},[e]),c=b.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 b.useCallback(y=>{const x=t(y),_=n==null?void 0:n(y);return m.jsx(T.DataListItem,{"aria-labelledby":`data-list-${x}`,isExpanded:_,children:m.jsxs(T.DataListItemRow,{children:[s&&m.jsx(T.DataListCheck,{"aria-labelledby":`data-list-check-${x}`,name:`data-list-check-${x}`,isChecked:n==null?void 0:n(y),onClick:()=>c(y),"data-cy":"data-list-check"}),m.jsx(T.DataListItemCells,{dataListCells:[m.jsx(T.DataListCell,{width:5,children:m.jsx(T.Flex,{children:m.jsxs(T.Stack,{hasGutter:!0,children:[m.jsxs(T.Flex,{alignItems:{default:"alignItemsCenter"},children:[(u==null?void 0:u.icon)&&m.jsx(kl,{size:"xl",children:u==null?void 0:u.icon(y)}),m.jsxs(T.Stack,{children:[m.jsx(T.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},"data-cy":"data-list-name",children:m.jsx("span",{id:`data-list-${x}`,children:m.jsx(Jt,{column:u,item:y})})}),f?m.jsx(T.Text,{component:"small",style:{opacity:.7},children:m.jsx(Jt,{column:f,item:y})}):o&&m.jsx(T.Text,{component:"small",style:{opacity:.7},children:o})]})]}),(d||p.length>0||h.length>0||v)&&m.jsxs(T.DescriptionList,{isCompact:!0,children:[d&&(!d.value||d.value(y))&&m.jsx(T.DescriptionListGroup,{children:m.jsx(T.DescriptionListDescription,{children:m.jsx(Jt,{column:d,item:y})})},d.header),p.map(S=>S.value&&!S.value(y)?m.jsx(m.Fragment,{}):m.jsxs(T.DescriptionListGroup,{children:[m.jsx(T.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:S.header}),m.jsx(T.DescriptionListDescription,{children:m.jsx(Jt,{column:S,item:y})})]},S.header)),h.length>0&&m.jsx(T.DescriptionListGroup,{children:m.jsx(T.DescriptionListDescription,{children:m.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:h.map((S,w)=>m.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[m.jsx(Jt,{column:S,item:y}),m.jsx("small",{style:{opacity:.7},children:S.header})]},w))})})},"counts"),v&&m.jsx(T.DescriptionListGroup,{children:m.jsx(T.DescriptionListDescription,{children:m.jsx(Jt,{column:v,item:y})})},v.header)]})]})})},"primary"),g.length>0?m.jsx(T.DataListCell,{children:m.jsx(T.DescriptionList,{isCompact:!0,children:g.map(S=>S.value&&!S.value(y)?m.jsx(m.Fragment,{}):m.jsxs(T.DescriptionListGroup,{children:[m.jsx(T.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:S.header}),m.jsx(T.DescriptionListDescription,{children:m.jsx(Jt,{column:S,item:y})})]},S.header))})},"secondary"):null]}),a&&m.jsx(T.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(Wr,{actions:a,position:Qt.right,selectedItem:y,iconOnly:!0,collapse:"always"})})]})},x)},[t,n,s,u,f,o,p,d,h,v,g,a,c])}const lye=Pe.div`
441
441
  flex: 1;
442
- `;function Oc(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===qe.Multiple))!==void 0,s=!e.disableTableView,l=!e.disableListView,[c,u]=b.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=b.useCallback(v=>{u(v),e.id&&localStorage.setItem(e.id+"-view",v)},[e.id]),{openColumnManagement:d,managedColumns:h}=Z0e((t??"")+"-columns",e.tableColumns,c!==et.Table,c!==et.List,c!==et.Cards),p=B0e(e.tableColumns);if(i)return m.jsx(V0e,{titleProp:e.errorStateTitle,message:i.message});if(a===0&&Object.keys(r??{}).length===0)return m.jsx(H0e,{title:e.emptyStateTitle,description:e.emptyStateDescription,icon:e.emptyStateNoDataIcon,button:e.emptyStateButtonClick&&m.jsx(T.Button,{"data-cy":e.emptyStateButtonText?dye(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&m.jsx(T.Flex,{justifyContent:{default:"justifyContentCenter"},children:m.jsx(Wr,{actions:e.emptyStateActions})})});let g=e.topContent;return g&&(g=m.jsx(T.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(ZA,{...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(Er,{children:[g,!e.hideTable&&m.jsx(l6,{...e,tableColumns:h})]}):m.jsxs(m.Fragment,{children:[g,!e.hideTable&&m.jsx(l6,{...e,tableColumns:h})]})}),c===et.List&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Er,{children:[g,m.jsx(T.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(s6,{...e,showSelect:o,tableColumns:h})})]}):m.jsxs(m.Fragment,{children:[g,m.jsx(Er,{children:m.jsx(T.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(s6,{...e,showSelect:o,tableColumns:h})})})]})}),c===et.Cards&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Er,{children:[g,!e.hideTable&&m.jsx(tb,{...e,showSelect:o,tableColumns:h})]}):m.jsxs(m.Fragment,{children:[g,m.jsx(Er,{children:!e.hideTable&&m.jsx(tb,{...e,showSelect:o,tableColumns:h})})]})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&m.jsx(Q0e,{...e,topBorder:!e.autoHidePagination})]})}function l6(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=qy(e.tableColumns),g=DA(e.tableColumns),v=$A(e.tableColumns),y=b.useMemo(()=>{const A=[];if(g.length)for(const P of g)"value"in P?A.push(D=>{var B;const I=(B=P.value)==null?void 0:B.call(P,D);if(I)return m.jsx("div",{children:I},P.id??P.header)}):A.push(D=>P.cell(D));return v.length&&A.push(P=>v.some(I=>{var B;return((B=I.value)==null?void 0:B.call(I,P))!==void 0})?m.jsx(CA,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:m.jsx(LA,{item:P,columns:v},o(P))}):null),e.expandedRow&&A.push(e.expandedRow),A.length===0?void 0:P=>A.map(I=>I(P)).filter(I=>I!=null).length===0?null:m.jsx(T.Stack,{hasGutter:!0,children:A.map(I=>I(P))})},[g,v,o,e.expandedRow]),[x]=Pt(),_=e.showSelect||(l==null?void 0:l.find(A=>"selection"in A&&A.selection===qe.Multiple))!==void 0,S=b.useRef(null),[w,O]=b.useState({left:0,right:0,top:0,bottom:0}),C=b.useCallback(A=>{A&&O({top:A.scrollTop,bottom:A.scrollHeight-A.clientHeight-A.scrollTop,left:A.scrollLeft,right:A.scrollWidth-A.clientWidth-A.scrollLeft})},[]),k=b.useCallback(A=>C(A.currentTarget),[C]);Yo(S,()=>C(S.current)),b.useEffect(()=>C(S.current),[C]);const $=za();let M;return e.itemCount===void 0||t===void 0?M=m.jsx(J0e,{}):M=m.jsxs(m.Fragment,{children:[m.jsxs(Le.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||$.tableLayout==="compact"?"compact":void 0,borders:!e.borderless,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[m.jsx(cye,{...e,showSelect:_,scrollLeft:w.left>0,scrollRight:w.right>1,tableColumns:p,onSelect:f,expandedRow:y}),m.jsx(Le.Tbody,{children:t.map((A,j)=>m.jsx(uye,{columns:p,item:A,isItemSelected:i==null?void 0:i(A),isSelectMultiple:a,selectItem:n,unselectItem:r,rowActions:s,rowIndex:j,showSelect:_,scrollLeft:w.left>0,scrollRight:w.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(T.EmptyState,{isFullHeight:!0,children:[m.jsx(T.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:x.noResultsFound}),icon:m.jsx(T.EmptyStateIcon,{icon:e.emptyStateIcon??ve.SearchIcon}),headingLevel:"h2"}),m.jsx(T.EmptyStateBody,{children:x.noResultsMatchCriteria}),m.jsx(T.EmptyStateFooter,{children:u&&m.jsx(T.EmptyStateActions,{children:m.jsx(T.Button,{variant:"primary",onClick:u,children:x.clearAllFilters})})})]})]}),e.scrollTopContent||(M=m.jsx(lye,{className:"pf-v5-c-scroll-inner-wrapper",ref:S,onScroll:k,style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:M})),M}function cye(e){const{tableColumns:t,rowActions:n,sort:r,setSort:i,sortDirection:a,setSortDirection:o,showSelect:s,onSelect:l,expandedRow:c}=e,u=b.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":vi(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 uye(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,x]=b.useState(!!e.defaultExpandedRows&&!!v),_=za(),S=b.useCallback(w=>(g==null?void 0:g.length)===p?!(g!=null&&g.includes(w)):!1,[p,g]);return m.jsxs(m.Fragment,{children:[m.jsxs(Le.Tr,{style:{boxShadow:"unset",borderBottom:y||e.isLastRow&&h?"unset":void 0,cursor:f?"pointer":"default"},"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,onClick:()=>{f&&(o||n==null||n(),o&&a?i==null||i(s):r==null||r(s),f(s))},children:[d&&m.jsx(Le.Td,{expand:v?{rowIndex:c,isExpanded:y,onToggle:()=>x(w=>!w)}:void 0,style:{paddingLeft:v?8:4},"data-cy":"expand-column-cell"}),u&&m.jsx(Le.Th,{select:a!==void 0?{onSelect:(w,O)=>{O?r==null||r(s):i==null||i(s)},isSelected:a,isDisabled:p&&g?S(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,isSelected:a??!1,variant:o?"checkbox":"radio",isDisabled:p&&g?S(s):!1},isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),m.jsx(fye,{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 fye(e){const{columns:t,item:n,rowActions:r}=e,[i,a]=b.useState(!1);return m.jsxs(b.Fragment,{children:[t.map(o=>m.jsx(Le.Td,{dataLabel:o.header,modifier:"nowrap",style:{width:o.minWidth===0?"0%":void 0},"data-cy":vi(o.header+"-column-cell"),children:m.jsx(Jt,{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(Wr,{actions:r,selectedItem:n,position:Qt.right,iconOnly:!0,onOpen:a})})]})}function dye(e){return e.toLowerCase().split(" ").join("-")}function hye(){const e=b.useRef(new AbortController);return b.useEffect(()=>{const t=e.current;return()=>t.abort()},[]),e.current}function c6(e){const{title:t,items:n,keyFn:r,actionColumns:i,actionFn:a,onComplete:o,onClose:s,processingText:l,isDanger:c,errorAdapter:u=wc,description:f}=e,{t:d}=Ie(),[h]=Pt(),[p,g]=b.useState(!0),[v,y]=b.useState(!1),[x,_]=b.useState(0),[S,w]=b.useState(""),[O,C]=b.useState(),k=hye(),[$,M]=Ri(),A=b.useCallback(()=>{y(!0),k.abort(),g(!1),C(I=>{const B={...I};for(const R of n){const V=r(R);B[V]===void 0&&(B[V]=d("Cancelled"))}return B})},[k,n,r,d]),j=b.useCallback(()=>{M(void 0),s==null||s()},[s,M]);b.useEffect(()=>{async function I(){const B=k0e(5);let R=0;const V=[];await Promise.all(n.map(W=>B(async()=>{if(k.signal.aborted)return;const L=r(W);try{await a(W,k.signal),k.signal.aborted||C(H=>({...H??{},[L]:null})),V.push(W)}catch(H){const{genericErrors:J,fieldErrors:ne}=u(H),te=[...J,...ne.filter(K=>K.message)];if(!k.signal.aborted){if(H instanceof Error){const K=typeof te[0].message=="string"&&te.length===1?te[0].message:d("Unknown error");C(re=>({...re??{},[L]:K}))}else C(K=>({...K??{},[L]:d("Unknown error")}));w(h.errorText)}}finally{k.signal.aborted||_(++R)}}))),k.signal.aborted||g(!1),o==null||o(V)}I()},[k,a,n,r,o,h.errorText,d,u]);const P=Sc(n),D=Lh(i);return m.jsxs(T.Modal,{titleIconVariant:c?"warning":void 0,title:t,ouiaId:t,"aria-label":t,description:f,variant:T.ModalVariant.medium,isOpen:!0,onClose:()=>{A(),j()},actions:p?[m.jsx(T.Button,{variant:"link",onClick:A,children:h.cancelText},"cancel")]:[m.jsx(T.Button,{variant:"secondary",onClick:j,children:h.closeText},"close")],hasNoBodyWrapper:!0,children:[m.jsx(T.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(Oc,{pageItems:[...P.paged],itemCount:n.length,tableColumns:[...D,{header:d("Status"),cell:I=>{const B=r(I),R=O==null?void 0:O[B];return R===void 0?m.jsxs("span",{style:{color:lm},children:[m.jsx(ve.PendingIcon,{}),"  ",h.pendingText]}):R===null?m.jsxs("span",{style:{color:om},children:[m.jsx(ve.CheckCircleIcon,{}),"  ",h.successText]}):m.jsxs("span",{style:{color:sm},children:[m.jsx(ve.ExclamationCircleIcon,{}),"  ",O==null?void 0:O[B]]})}}],keyFn:r,compact:!0,errorStateTitle:"",emptyStateTitle:d("No items"),autoHidePagination:!0,disableBodyPadding:!0,...P},"status")})}),m.jsx(T.ModalBoxBody,{style:{paddingTop:0},children:m.jsx(T.Progress,{"data-cy":"progress",value:x/n.length*100,title:k.signal.aborted?h.canceledText:S?h.errorText:p?l??h.processingText:h.successText,size:T.ProgressSize.lg,variant:S||v?T.ProgressVariant.danger:x===n.length?T.ProgressVariant.success:void 0})})]})}function u6(e=wc){const[t,n]=Ri(),[r,i]=b.useState();return b.useEffect(()=>{if(r){const a=()=>{var o;i(void 0),(o=r.onClose)==null||o.call(r)};n(m.jsx(c6,{...r,errorAdapter:r.errorAdapter??e,onClose:a}))}else n(void 0)},[r,n,e]),i}function f6(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 Cc(e,t);if(typeof t=="number")return Cc(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return d6(e,t);if(typeof t=="string")return Cc(e.toString(),t)}return 0}function Cc(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function d6(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const pye=Pe.div`
442
+ `;function Oc(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===qe.Multiple))!==void 0,s=!e.disableTableView,l=!e.disableListView,[c,u]=b.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=b.useCallback(v=>{u(v),e.id&&localStorage.setItem(e.id+"-view",v)},[e.id]),{openColumnManagement:d,managedColumns:h}=Z0e((t??"")+"-columns",e.tableColumns,c!==et.Table,c!==et.List,c!==et.Cards),p=B0e(e.tableColumns);if(i)return m.jsx(V0e,{titleProp:e.errorStateTitle,message:i.message});if(a===0&&Object.keys(r??{}).length===0)return m.jsx(H0e,{title:e.emptyStateTitle,description:e.emptyStateDescription,icon:e.emptyStateNoDataIcon,button:e.emptyStateButtonClick&&m.jsx(T.Button,{"data-cy":e.emptyStateButtonText?dye(e.emptyStateButtonText):"create-resource",variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&m.jsx(T.Flex,{justifyContent:{default:"justifyContentCenter"},children:m.jsx(Wr,{actions:e.emptyStateActions})})});let g=e.topContent;return g&&(g=m.jsx(T.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(ZA,{...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(Er,{children:[g,!e.hideTable&&m.jsx(l6,{...e,tableColumns:h})]}):m.jsxs(m.Fragment,{children:[g,!e.hideTable&&m.jsx(l6,{...e,tableColumns:h})]})}),c===et.List&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Er,{children:[g,m.jsx(T.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(s6,{...e,showSelect:o,tableColumns:h})})]}):m.jsxs(m.Fragment,{children:[g,m.jsx(Er,{children:m.jsx(T.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&m.jsx(s6,{...e,showSelect:o,tableColumns:h})})})]})}),c===et.Cards&&m.jsx(m.Fragment,{children:e.scrollTopContent?m.jsxs(Er,{children:[g,!e.hideTable&&m.jsx(tb,{...e,showSelect:o,tableColumns:h})]}):m.jsxs(m.Fragment,{children:[g,m.jsx(Er,{children:!e.hideTable&&m.jsx(tb,{...e,showSelect:o,tableColumns:h})})]})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&m.jsx(Q0e,{...e,topBorder:!e.autoHidePagination})]})}function l6(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=qy(e.tableColumns),g=DA(e.tableColumns),v=$A(e.tableColumns),y=b.useMemo(()=>{const A=[];if(g.length)for(const P of g)"value"in P?A.push(D=>{var B;const I=(B=P.value)==null?void 0:B.call(P,D);if(I)return m.jsx("div",{children:I},P.id??P.header)}):A.push(D=>P.cell(D));return v.length&&A.push(P=>v.some(I=>{var B;return((B=I.value)==null?void 0:B.call(I,P))!==void 0})?m.jsx(CA,{disablePadding:!0,numberOfColumns:"multiple",labelOrientation:"vertical",isCompact:!0,disableScroll:!0,children:m.jsx(LA,{item:P,columns:v},o(P))}):null),e.expandedRow&&A.push(e.expandedRow),A.length===0?void 0:P=>A.map(I=>I(P)).filter(I=>I!=null).length===0?null:m.jsx(T.Stack,{hasGutter:!0,children:A.map(I=>I(P))})},[g,v,o,e.expandedRow]),[x]=Pt(),_=e.showSelect||(l==null?void 0:l.find(A=>"selection"in A&&A.selection===qe.Multiple))!==void 0,S=b.useRef(null),[w,O]=b.useState({left:0,right:0,top:0,bottom:0}),C=b.useCallback(A=>{A&&O({top:A.scrollTop,bottom:A.scrollHeight-A.clientHeight-A.scrollTop,left:A.scrollLeft,right:A.scrollWidth-A.clientWidth-A.scrollLeft})},[]),k=b.useCallback(A=>C(A.currentTarget),[C]);Yo(S,()=>C(S.current)),b.useEffect(()=>C(S.current),[C]);const $=za();let M;return e.itemCount===void 0||t===void 0?M=m.jsx(J0e,{}):M=m.jsxs(m.Fragment,{children:[m.jsxs(Le.Table,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||$.tableLayout==="compact"?"compact":void 0,borders:!e.borderless,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[m.jsx(cye,{...e,showSelect:_,scrollLeft:w.left>0,scrollRight:w.right>1,tableColumns:p,onSelect:f,expandedRow:y}),m.jsx(Le.Tbody,{children:t.map((A,j)=>m.jsx(uye,{columns:p,item:A,isItemSelected:i==null?void 0:i(A),isSelectMultiple:a,selectItem:n,unselectItem:r,rowActions:s,rowIndex:j,showSelect:_,scrollLeft:w.left>0,scrollRight:w.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(T.EmptyState,{isFullHeight:!0,children:[m.jsx(T.EmptyStateHeader,{titleText:m.jsx(m.Fragment,{children:x.noResultsFound}),icon:m.jsx(T.EmptyStateIcon,{icon:e.emptyStateIcon??ve.SearchIcon}),headingLevel:"h2"}),m.jsx(T.EmptyStateBody,{children:x.noResultsMatchCriteria}),m.jsx(T.EmptyStateFooter,{children:u&&m.jsx(T.EmptyStateActions,{children:m.jsx(T.Button,{variant:"primary",onClick:u,children:x.clearAllFilters})})})]})]}),e.scrollTopContent||(M=m.jsx(lye,{className:"pf-v5-c-scroll-inner-wrapper",ref:S,onScroll:k,style:{backgroundColor:"var(--pf-v5-global--BackgroundColor--100)"},children:M})),M}function cye(e){const{tableColumns:t,rowActions:n,sort:r,setSort:i,sortDirection:a,setSortDirection:o,showSelect:s,onSelect:l,expandedRow:c}=e,u=b.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":vi(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 uye(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,x]=b.useState(!!e.defaultExpandedRows&&!!v),_=za(),S=b.useCallback(w=>(g==null?void 0:g.length)===p?!(g!=null&&g.includes(w)):!1,[p,g]);return m.jsxs(m.Fragment,{children:[m.jsxs(Le.Tr,{style:{boxShadow:"unset",borderBottom:y||e.isLastRow&&h?"unset":void 0,cursor:f?"pointer":"default"},"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,onClick:()=>{f&&(o||n==null||n(),o&&a?i==null||i(s):r==null||r(s),f(s))},children:[d&&m.jsx(Le.Td,{expand:v?{rowIndex:c,isExpanded:y,onToggle:()=>x(w=>!w)}:void 0,style:{paddingLeft:v?8:4},"data-cy":"expand-column-cell"}),u&&m.jsx(Le.Th,{select:a!==void 0?{onSelect:(w,O)=>{O?r==null||r(s):i==null||i(s)},isSelected:a,isDisabled:p&&g?S(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,isSelected:a??!1,variant:o?"checkbox":"radio",isDisabled:p&&g?S(s):!1},isStickyColumn:e.scrollLeft,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell",className:e.scrollLeft?"bg-lighten":void 0}),m.jsx(fye,{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 fye(e){const{columns:t,item:n,rowActions:r}=e,[i,a]=b.useState(!1);return m.jsxs(b.Fragment,{children:[t.map(o=>m.jsx(Le.Td,{dataLabel:o.header,modifier:"nowrap",style:{width:o.minWidth===0?"0%":void 0},"data-cy":vi(o.header+"-column-cell"),children:m.jsx(Jt,{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(Wr,{actions:r,selectedItem:n,position:Qt.right,iconOnly:!0,onOpen:a})})]})}function dye(e){return e.toLowerCase().split(" ").join("-")}function hye(){const e=b.useRef(new AbortController);return b.useEffect(()=>{const t=e.current;return()=>t.abort()},[]),e.current}function c6(e){const{title:t,items:n,keyFn:r,actionColumns:i,actionFn:a,onComplete:o,onClose:s,processingText:l,isDanger:c,errorAdapter:u=wc,description:f}=e,{t:d}=Ie(),[h]=Pt(),[p,g]=b.useState(!0),[v,y]=b.useState(!1),[x,_]=b.useState(0),[S,w]=b.useState(""),[O,C]=b.useState(),k=hye(),[$,M]=Ri(),A=b.useCallback(()=>{y(!0),k.abort(),g(!1),C(I=>{const B={...I};for(const R of n){const V=r(R);B[V]===void 0&&(B[V]=d("Cancelled"))}return B})},[k,n,r,d]),j=b.useCallback(()=>{M(void 0),s==null||s(v?"canceled":S?"failures":"success",n.filter(I=>(O==null?void 0:O[r(I)])===null),n.filter(I=>(O==null?void 0:O[r(I)])!==null),n.filter(I=>(O==null?void 0:O[r(I)])===void 0))},[S,v,n,r,s,M,O]);b.useEffect(()=>{async function I(){const B=k0e(5);let R=0;const V=[];await Promise.all(n.map(W=>B(async()=>{if(k.signal.aborted)return;const L=r(W);try{await a(W,k.signal),k.signal.aborted||C(H=>({...H??{},[L]:null})),V.push(W)}catch(H){const{genericErrors:J,fieldErrors:ne}=u(H),te=[...J,...ne.filter(K=>K.message)];if(!k.signal.aborted){if(H instanceof Error){const K=typeof te[0].message=="string"&&te.length===1?te[0].message:d("Unknown error");C(re=>({...re??{},[L]:K}))}else C(K=>({...K??{},[L]:d("Unknown error")}));w(h.errorText)}}finally{k.signal.aborted||_(++R)}}))),k.signal.aborted||g(!1),o==null||o(V)}I()},[k,a,n,r,o,h.errorText,d,u]);const P=Sc(n),D=Lh(i);return m.jsxs(T.Modal,{titleIconVariant:c?"warning":void 0,title:t,ouiaId:t,"aria-label":t,description:f,variant:T.ModalVariant.medium,isOpen:!0,onClose:()=>{A(),j()},actions:p?[m.jsx(T.Button,{variant:"link",onClick:A,children:h.cancelText},"cancel")]:[m.jsx(T.Button,{variant:"secondary",onClick:j,children:h.closeText},"close")],hasNoBodyWrapper:!0,children:[m.jsx(T.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(Oc,{pageItems:[...P.paged],itemCount:n.length,tableColumns:[...D,{header:d("Status"),cell:I=>{const B=r(I),R=O==null?void 0:O[B];return R===void 0?m.jsxs("span",{style:{color:lm},children:[m.jsx(ve.PendingIcon,{}),"  ",h.pendingText]}):R===null?m.jsxs("span",{style:{color:om},children:[m.jsx(ve.CheckCircleIcon,{}),"  ",h.successText]}):m.jsxs("span",{style:{color:sm},children:[m.jsx(ve.ExclamationCircleIcon,{}),"  ",O==null?void 0:O[B]]})}}],keyFn:r,compact:!0,errorStateTitle:"",emptyStateTitle:d("No items"),autoHidePagination:!0,disableBodyPadding:!0,...P},"status")})}),m.jsx(T.ModalBoxBody,{style:{paddingTop:0},children:m.jsx(T.Progress,{"data-cy":"progress",value:x/n.length*100,title:k.signal.aborted?h.canceledText:S?h.errorText:p?l??h.processingText:h.successText,size:T.ProgressSize.lg,variant:S||v?T.ProgressVariant.danger:x===n.length?T.ProgressVariant.success:void 0})})]})}function u6(e=wc){const[t,n]=Ri(),[r,i]=b.useState();return b.useEffect(()=>{if(r){const a=(o,s,l,c)=>{var u;i(void 0),(u=r.onClose)==null||u.call(r,o,s,l,c)};n(m.jsx(c6,{...r,errorAdapter:r.errorAdapter??e,onClose:a}))}else n(void 0)},[r,n,e]),i}function f6(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 Cc(e,t);if(typeof t=="number")return Cc(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return d6(e,t);if(typeof t=="string")return Cc(e.toString(),t)}return 0}function Cc(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}function d6(e,t){return e===void 0&&t===void 0?0:e==null?1:t==null||e<t?-1:e>t?1:0}const pye=Pe.div`
443
443
  display: flex;
444
444
  flex-direction: column;
445
445
  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.1977",
4
+ "version": "2.4.1979",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",