@ansible/ansible-ui-framework 2.4.481 → 2.4.482

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +24 -14
  2. package/index.umd.cjs +138 -138
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -8992,7 +8992,7 @@ function Zp(e) {
8992
8992
  },
8993
8993
  isCompact: e.isCompact,
8994
8994
  className: "page-dashboard-card",
8995
- "data-cy": e.title,
8995
+ "data-cy": e.supertitle,
8996
8996
  children: [
8997
8997
  (e.title || e.linkText) && /* @__PURE__ */ v.jsx(JS, { children: /* @__PURE__ */ v.jsxs(mn, { style: { width: "100%" }, children: [
8998
8998
  /* @__PURE__ */ v.jsxs(
@@ -9005,9 +9005,9 @@ function Zp(e) {
9005
9005
  style: { columnGap: 24, rowGap: 8 },
9006
9006
  children: [
9007
9007
  /* @__PURE__ */ v.jsx(Xe, { grow: { default: "grow" }, children: /* @__PURE__ */ v.jsx(At, { spaceItems: { default: "spaceItemsNone" }, children: /* @__PURE__ */ v.jsx(Xe, { children: /* @__PURE__ */ v.jsxs(mn, { children: [
9008
- e.supertitle && /* @__PURE__ */ v.jsx(ga, { component: "small", style: { opacity: 0.8 }, children: e.supertitle }),
9008
+ e.supertitle && /* @__PURE__ */ v.jsx(ga, { "data-cy": e.supertitle, component: "small", style: { opacity: 0.8 }, children: e.supertitle }),
9009
9009
  /* @__PURE__ */ v.jsxs(At, { spaceItems: { default: "spaceItemsNone" }, children: [
9010
- /* @__PURE__ */ v.jsx(_r, { headingLevel: "h3", size: "xl", children: e.title }),
9010
+ /* @__PURE__ */ v.jsx(_r, { "data-cy": e.title, headingLevel: "h3", size: "xl", children: e.title }),
9011
9011
  /* @__PURE__ */ v.jsx(Xe, { alignSelf: { default: "alignSelfFlexStart" }, children: /* @__PURE__ */ v.jsx(
9012
9012
  Zs,
9013
9013
  {
@@ -9017,10 +9017,10 @@ function Zp(e) {
9017
9017
  }
9018
9018
  ) })
9019
9019
  ] }),
9020
- e.subtitle && /* @__PURE__ */ v.jsx(ga, { component: "small", style: { opacity: 0.8 }, children: e.subtitle })
9020
+ e.subtitle && /* @__PURE__ */ v.jsx(ga, { "data-cy": e.subtitle, component: "small", style: { opacity: 0.8 }, children: e.subtitle })
9021
9021
  ] }) }) }) }),
9022
9022
  e.headerControls && /* @__PURE__ */ v.jsx(Xe, { children: e.headerControls }),
9023
- /* @__PURE__ */ v.jsx(Xe, { children: /* @__PURE__ */ v.jsx(ga, { component: "small", children: e.linkText && /* @__PURE__ */ v.jsx(rl, { to: e.to, children: e.linkText }) }) })
9023
+ /* @__PURE__ */ v.jsx(Xe, { children: /* @__PURE__ */ v.jsx(ga, { "data-cy": e.linkText, component: "small", children: e.linkText && /* @__PURE__ */ v.jsx(rl, { to: e.to, children: e.linkText }) }) })
9024
9024
  ]
9025
9025
  }
9026
9026
  ),
@@ -34550,6 +34550,7 @@ function e5e(e) {
34550
34550
  je,
34551
34551
  {
34552
34552
  variant: n ? "primary" : "control",
34553
+ "data-cy": "apply-filter",
34553
34554
  "aria-label": "apply filter",
34554
34555
  onClick: () => {
34555
34556
  e.addFilter(n), r("");
@@ -35159,8 +35160,8 @@ function u5e(e) {
35159
35160
  const { title: t, description: n, icon: r, button: a, footNote: i, image: o, variant: l, style: s } = e;
35160
35161
  return /* @__PURE__ */ v.jsxs($d, { variant: l || aj.full, style: s, isFullHeight: !0, children: [
35161
35162
  r && /* @__PURE__ */ v.jsx(Dd, { icon: r }),
35162
- /* @__PURE__ */ v.jsx(_r, { headingLevel: "h4", size: "lg", children: t }),
35163
- /* @__PURE__ */ v.jsx(Mi, { children: n }),
35163
+ /* @__PURE__ */ v.jsx(_r, { "data-cy": e.title, headingLevel: "h4", size: "lg", children: t }),
35164
+ /* @__PURE__ */ v.jsx(Mi, { "data-cy": e.description, children: n }),
35164
35165
  a && /* @__PURE__ */ v.jsx(ij, { children: a }),
35165
35166
  o && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
35166
35167
  " ",
@@ -43775,7 +43776,7 @@ function HCe(e) {
43775
43776
  ] }),
43776
43777
  position: "bottom-start",
43777
43778
  removeFindDomNode: !0,
43778
- children: /* @__PURE__ */ v.jsxs(_r, { headingLevel: "h1", children: [
43779
+ children: /* @__PURE__ */ v.jsxs(_r, { "data-cy": "page-title", headingLevel: "h1", children: [
43779
43780
  n,
43780
43781
  /* @__PURE__ */ v.jsx(
43781
43782
  je,
@@ -43792,12 +43793,21 @@ function HCe(e) {
43792
43793
  )
43793
43794
  ] })
43794
43795
  }
43795
- ) : /* @__PURE__ */ v.jsx(_r, { headingLevel: "h1", children: n }) : /* @__PURE__ */ v.jsx(_r, { headingLevel: "h1", children: /* @__PURE__ */ v.jsx(Ln, { width: "160px" }) }),
43796
- c && r && /* @__PURE__ */ v.jsx(ga, { component: "p", style: { paddingTop: s ? 4 : 2, opacity: 0.8 }, children: typeof r == "string" ? /* @__PURE__ */ v.jsx(Io, { content: r }) : /* @__PURE__ */ v.jsx(mn, { children: r.map((h) => /* @__PURE__ */ v.jsx(Oi, { children: h }, h)) }) })
43796
+ ) : /* @__PURE__ */ v.jsx(_r, { "data-cy": "page-title", headingLevel: "h1", children: n }) : /* @__PURE__ */ v.jsx(_r, { headingLevel: "h1", children: /* @__PURE__ */ v.jsx(Ln, { width: "160px" }) }),
43797
+ c && r && /* @__PURE__ */ v.jsx(
43798
+ ga,
43799
+ {
43800
+ "data-cy": "app-description",
43801
+ component: "p",
43802
+ style: { paddingTop: s ? 4 : 2, opacity: 0.8 },
43803
+ children: typeof r == "string" ? /* @__PURE__ */ v.jsx(Io, { content: r }) : /* @__PURE__ */ v.jsx(mn, { children: r.map((h) => /* @__PURE__ */ v.jsx(Oi, { children: h }, h)) })
43804
+ }
43805
+ )
43797
43806
  ] }),
43798
43807
  n && (i || a) && /* @__PURE__ */ v.jsxs(
43799
43808
  At,
43800
43809
  {
43810
+ "data-cy": "manage-view",
43801
43811
  direction: { default: "column" },
43802
43812
  spaceItems: { default: "spaceItemsSm", xl: "spaceItemsMd" },
43803
43813
  justifyContent: { default: "justifyContentCenter" },
@@ -43842,7 +43852,7 @@ function iTe(e) {
43842
43852
  children: [
43843
43853
  /* @__PURE__ */ v.jsx(GCe, {}),
43844
43854
  /* @__PURE__ */ v.jsx(Cj, { children: /* @__PURE__ */ v.jsx(Aj, { children: e.icon }) }),
43845
- /* @__PURE__ */ v.jsx(Tj, { style: { marginLeft: 0 }, children: /* @__PURE__ */ v.jsx(o0, { id: "toolbar", inset: { default: "insetNone" }, children: /* @__PURE__ */ v.jsxs(iO, { children: [
43855
+ /* @__PURE__ */ v.jsx(Tj, { style: { marginLeft: 0 }, children: /* @__PURE__ */ v.jsx(o0, { id: "toolbar", "data-cy": "toolbar", inset: { default: "insetNone" }, children: /* @__PURE__ */ v.jsxs(iO, { children: [
43846
43856
  t && /* @__PURE__ */ v.jsx(Dn, { children: /* @__PURE__ */ v.jsxs(
43847
43857
  mn,
43848
43858
  {
@@ -43869,13 +43879,13 @@ function YCe(e) {
43869
43879
  }
43870
43880
  function KCe(e) {
43871
43881
  const { navigation: t } = e, n = Uh();
43872
- return /* @__PURE__ */ v.jsx(
43882
+ return /* @__PURE__ */ v.jsx(v.Fragment, { children: /* @__PURE__ */ v.jsx(
43873
43883
  Pj,
43874
43884
  {
43875
43885
  isNavOpen: n.isOpen,
43876
- nav: /* @__PURE__ */ v.jsx(jj, { className: "side-nav", children: /* @__PURE__ */ v.jsx($j, { children: /* @__PURE__ */ v.jsx(Pu, { baseRoute: "", items: t }) }) })
43886
+ nav: /* @__PURE__ */ v.jsx(jj, { "data-cy": "page-navigation", className: "side-nav", children: /* @__PURE__ */ v.jsx($j, { children: /* @__PURE__ */ v.jsx(Pu, { baseRoute: "", items: t }) }) })
43877
43887
  }
43878
- );
43888
+ ) });
43879
43889
  }
43880
43890
  function Pu(e) {
43881
43891
  return /* @__PURE__ */ v.jsx(v.Fragment, { children: e.items.map((t, n) => /* @__PURE__ */ v.jsx(ZCe, { item: t, baseRoute: e.baseRoute }, n)) });