@ansible/ansible-ui-framework 2.4.357 → 2.4.358

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -31766,7 +31766,15 @@ const oUe = mn.div`
31766
31766
  `;
31767
31767
  function sUe(n) {
31768
31768
  const { t: e } = Io(), { total: t } = n;
31769
- return t !== 0 ? /* @__PURE__ */ L.jsx(zT, { children: (i) => /* @__PURE__ */ L.jsx(Sk, { ...n, width: i.width, height: i.height }) }) : /* @__PURE__ */ L.jsx(zT, { children: (i) => /* @__PURE__ */ L.jsx(
31769
+ return t !== 0 ? /* @__PURE__ */ L.jsx(zT, { children: (i) => /* @__PURE__ */ L.jsx(
31770
+ Sk,
31771
+ {
31772
+ ...n,
31773
+ width: i.width,
31774
+ height: i.height,
31775
+ padding: { top: 0, left: 0, right: i.width - i.height, bottom: 0 }
31776
+ }
31777
+ ) }) : /* @__PURE__ */ L.jsx(zT, { children: (i) => /* @__PURE__ */ L.jsx(
31770
31778
  pR,
31771
31779
  {
31772
31780
  constrainToVisibleArea: !0,
@@ -31777,7 +31785,7 @@ function sUe(n) {
31777
31785
  legendOrientation: "vertical",
31778
31786
  colorScale: [XG],
31779
31787
  title: t.toString(),
31780
- padding: { top: 0, left: 0, right: 0, bottom: 0 }
31788
+ padding: { top: 0, left: 0, right: i.width - i.height, bottom: 0 }
31781
31789
  }
31782
31790
  ) });
31783
31791
  }
@@ -31798,7 +31806,6 @@ function t1t(n) {
31798
31806
  data: i.map((s) => ({ x: s.label, y: s.count })),
31799
31807
  title: o.toString(),
31800
31808
  colorScale: i.map((s) => s.color),
31801
- padding: { top: 0, left: 0, right: 0, bottom: 0 },
31802
31809
  legendData: i.map((s) => ({ name: `${s.label}: ${s.count}` })),
31803
31810
  legendOrientation: "vertical",
31804
31811
  legendPosition: "right",
package/index.umd.cjs CHANGED
@@ -330,7 +330,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
330
330
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BBe(n,e){return MBe(n)||PBe(n,e)||RBe(n,e)||FBe()}function MU(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function mA(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?MU(Object(t),!0).forEach(function(i){vBe(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):MU(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}var VBe=function(e,t){var i=T.useRef();return T.useEffect(function(){i.current=t?i.current:e},[e,t]),i.current};function oo(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.i18n,i=T.useContext(DBe)||{},r=i.i18n,o=i.defaultNS,s=t||r||IBe();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new TBe),!s){gA("You will need to pass in an i18next instance by using initReactI18next");var a=function(E){return Array.isArray(E)?E[E.length-1]:E},l=[a,{},!1];return l.t=a,l.i18n={},l.ready=!1,l}s.options.react&&s.options.react.wait!==void 0&&gA("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=mA(mA(mA({},EBe()),s.options.react),e),u=c.useSuspense,d=c.keyPrefix,h=n||o||s.options&&s.options.defaultNS;h=typeof h=="string"?[h]:h||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(h);var f=(s.isInitialized||s.initializedStoreOnce)&&h.every(function(D){return NBe(D,s,c)});function g(){return s.getFixedT(null,c.nsMode==="fallback"?h:h[0],d)}var m=T.useState(g),p=BBe(m,2),v=p[0],_=p[1],b=h.join(),y=VBe(b),C=T.useRef(!0);T.useEffect(function(){var D=c.bindI18n,E=c.bindI18nStore;C.current=!0,!f&&!u&&OU(s,h,function(){C.current&&_(g)}),f&&y&&y!==b&&C.current&&_(g);function O(){C.current&&_(g)}return D&&s&&s.on(D,O),E&&s&&s.store.on(E,O),function(){C.current=!1,D&&s&&D.split(" ").forEach(function(N){return s.off(N,O)}),E&&s&&E.split(" ").forEach(function(N){return s.store.off(N,O)})}},[s,b]);var k=T.useRef(!0);T.useEffect(function(){C.current&&!k.current&&_(g),k.current=!1},[s,d]);var x=[v,s,f];if(x.t=v,x.i18n=s,x.ready=f,f||!f&&!u)return x;throw new Promise(function(D){OU(s,h,function(){D()})})}function WBe(n){const{t:e}=oo(),{steps:t}=n;return t.every(r=>r.isComplete)?L.jsx(L.Fragment,{}):L.jsx(qy,{title:e("Getting Started"),width:"xxl",children:L.jsx(P.CardBody,{children:L.jsxs(P.Stack,{hasGutter:!0,children:[L.jsx("div",{children:n.children}),L.jsx(P.ProgressStepper,{children:t.map((r,o)=>L.jsx(P.ProgressStep,{titleId:`${r.title}-${o}`,id:`${r.title}-${o}`,variant:r.isComplete?"success":"info",description:r.description,children:L.jsx(yg.Link,{to:r.to,children:r.title})},o))})]})})})}const $Be=un.div`
331
331
  width: 12px;
332
332
  height: 12px;
333
- `;function PU(n){const{t:e}=oo(),{total:t}=n;return t!==0?L.jsx(zy,{children:i=>L.jsx(kS,{...n,width:i.width,height:i.height})}):L.jsx(zy,{children:i=>L.jsx(oA,{constrainToVisibleArea:!0,width:i.width,height:i.height,data:{x:e("Resource"),y:t},legendData:[{name:e(`Total: ${t}`)}],legendOrientation:"vertical",colorScale:[UD],title:t.toString(),padding:{top:0,left:0,right:0,bottom:0}})})}function jBe(n){const{t:e}=oo(),{title:t,items:i,loading:r}=n,o=i.reduce((s,a)=>s+a.count,0);return L.jsx(qy,{title:t,width:"sm",height:"xs",linkText:n.linkText,to:n.to,children:L.jsx(P.CardBody,{children:r===!0?L.jsxs(P.Split,{hasGutter:!0,children:[L.jsx(P.SplitItem,{children:L.jsx(P.Skeleton,{shape:"circle",width:"100px"})}),L.jsx(P.SplitItem,{style:{marginTop:"auto",marginBottom:"auto"},children:L.jsx(P.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsMd"},children:i.map(s=>L.jsx(P.FlexItem,{children:L.jsxs(P.Flex,{spaceItems:{default:"spaceItemsSm"},children:[L.jsx(P.FlexItem,{children:L.jsx($Be,{children:L.jsx(P.Skeleton,{shape:"square",width:"12",height:"12"})})}),L.jsx(P.FlexItem,{grow:{default:"grow"},children:L.jsx(P.Skeleton,{shape:"square",width:"70px",height:"14px"})})]})},s.label))})})]}):L.jsx(PU,{ariaDesc:e("Dashboard resource count"),ariaTitle:e("Dashboard resource count"),constrainToVisibleArea:!0,data:i.map(s=>({x:s.label,y:s.count})),title:o.toString(),colorScale:i.map(s=>s.color),padding:{top:0,left:0,right:0,bottom:0},legendData:i.map(s=>({name:`${s.label}: ${s.count}`})),legendOrientation:"vertical",legendPosition:"right",total:o})})})}const HBe=un.button`
333
+ `;function PU(n){const{t:e}=oo(),{total:t}=n;return t!==0?L.jsx(zy,{children:i=>L.jsx(kS,{...n,width:i.width,height:i.height,padding:{top:0,left:0,right:i.width-i.height,bottom:0}})}):L.jsx(zy,{children:i=>L.jsx(oA,{constrainToVisibleArea:!0,width:i.width,height:i.height,data:{x:e("Resource"),y:t},legendData:[{name:e(`Total: ${t}`)}],legendOrientation:"vertical",colorScale:[UD],title:t.toString(),padding:{top:0,left:0,right:i.width-i.height,bottom:0}})})}function jBe(n){const{t:e}=oo(),{title:t,items:i,loading:r}=n,o=i.reduce((s,a)=>s+a.count,0);return L.jsx(qy,{title:t,width:"sm",height:"xs",linkText:n.linkText,to:n.to,children:L.jsx(P.CardBody,{children:r===!0?L.jsxs(P.Split,{hasGutter:!0,children:[L.jsx(P.SplitItem,{children:L.jsx(P.Skeleton,{shape:"circle",width:"100px"})}),L.jsx(P.SplitItem,{style:{marginTop:"auto",marginBottom:"auto"},children:L.jsx(P.Flex,{direction:{default:"column"},spaceItems:{default:"spaceItemsMd"},children:i.map(s=>L.jsx(P.FlexItem,{children:L.jsxs(P.Flex,{spaceItems:{default:"spaceItemsSm"},children:[L.jsx(P.FlexItem,{children:L.jsx($Be,{children:L.jsx(P.Skeleton,{shape:"square",width:"12",height:"12"})})}),L.jsx(P.FlexItem,{grow:{default:"grow"},children:L.jsx(P.Skeleton,{shape:"square",width:"70px",height:"14px"})})]})},s.label))})})]}):L.jsx(PU,{ariaDesc:e("Dashboard resource count"),ariaTitle:e("Dashboard resource count"),constrainToVisibleArea:!0,data:i.map(s=>({x:s.label,y:s.count})),title:o.toString(),colorScale:i.map(s=>s.color),legendData:i.map(s=>({name:`${s.label}: ${s.count}`})),legendOrientation:"vertical",legendPosition:"right",total:o})})})}const HBe=un.button`
334
334
  padding: var(--pf-global--spacer--xs);
335
335
  margin: -(var(--pf-global--spacer--xs));
336
336
  font-size: var(--pf-global--FontSize--sm);
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.357",
4
+ "version": "2.4.358",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",