@ansible/ansible-ui-framework 2.4.2740 → 2.4.2742

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.
@@ -1,4 +1,4 @@
1
- import { u as De, j as M } from "./index-C6NqotJr.js";
1
+ import { u as De, j as M } from "./index-B6LYAG-t.js";
2
2
  import { useContext as He, createContext as je, useState as Se, useEffect as ye, useRef as qe } from "react";
3
3
  import Oe from "react-dom";
4
4
  import { R as Ye } from "./ansible-chatbot-rWVelQMf.js";
@@ -1,4 +1,4 @@
1
- import { u as a, j as e, d as i } from "./index-C6NqotJr.js";
1
+ import { u as a, j as e, d as i } from "./index-B6LYAG-t.js";
2
2
  import { t as s, L as r, P as n } from "./ansible-chatbot-rWVelQMf.js";
3
3
  import "@patternfly/react-core";
4
4
  import "react";
@@ -1,4 +1,5 @@
1
1
  export declare function CopyCell(props: {
2
2
  text?: string;
3
3
  minWidth?: number;
4
+ testId?: string;
4
5
  }): import("react/jsx-runtime").JSX.Element;
@@ -5,6 +5,7 @@ export interface BulkConfirmationDialog<T extends object> {
5
5
  title: string;
6
6
  prompt?: React.ReactNode;
7
7
  alertPrompts?: string[];
8
+ isPlain?: boolean;
8
9
  items: T[];
9
10
  isItemNonActionable?: (item: T) => string | undefined;
10
11
  keyFn: (item: T) => string | number;
@@ -16,4 +17,5 @@ export interface BulkConfirmationDialog<T extends object> {
16
17
  isDanger?: boolean;
17
18
  errorAdapter?: ErrorAdapter;
18
19
  }
20
+ export declare function BulkConfirmationDialog<T extends object>(props: BulkConfirmationDialog<T>): import("react/jsx-runtime").JSX.Element;
19
21
  export declare function useBulkConfirmation<T extends object>(errorAdapter?: ErrorAdapter, statusParser?: (response: unknown) => null | StatusWithMessageAndUrl): (options: Omit<BulkConfirmationDialog<T>, "onConfirm" | "onClose"> & Omit<BulkActionDialogProps<T>, "onClose">) => void;
@@ -0,0 +1 @@
1
+ export {};
@@ -3067,7 +3067,7 @@ const b4 = Xt({
3067
3067
  chatbotState: "disabled",
3068
3068
  setChatbotState: () => {
3069
3069
  }
3070
- }), _4 = () => pt(b4), S4 = Bk(() => import("./ChatbotPortal-DxJ--qcL.js")), w4 = () => /* @__PURE__ */ p.jsx(Vk, { fallback: /* @__PURE__ */ p.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ p.jsx(S4, {}) }), C4 = Bk(() => import("./ChatbotSideBarHeader-BMOJHacS.js")), O4 = () => {
3070
+ }), _4 = () => pt(b4), S4 = Bk(() => import("./ChatbotPortal-BaA_NA7_.js")), w4 = () => /* @__PURE__ */ p.jsx(Vk, { fallback: /* @__PURE__ */ p.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ p.jsx(S4, {}) }), C4 = Bk(() => import("./ChatbotSideBarHeader-oYI4GkN5.js")), O4 = () => {
3071
3071
  const { t: e } = Pe();
3072
3072
  return /* @__PURE__ */ p.jsx(Vk, { fallback: /* @__PURE__ */ p.jsx("span", { children: e("Loading...") }), children: /* @__PURE__ */ p.jsx(C4, {}) });
3073
3073
  }, k4 = ke(WM)`
@@ -3722,6 +3722,7 @@ function rue(e) {
3722
3722
  onCopy: () => {
3723
3723
  t(e.text ?? "");
3724
3724
  },
3725
+ "data-testid": e.testId,
3725
3726
  children: e.text
3726
3727
  }
3727
3728
  ) : /* @__PURE__ */ p.jsx(p.Fragment, {});
@@ -34873,82 +34874,84 @@ function Iie(e) {
34873
34874
  keyFn: r,
34874
34875
  prompt: i,
34875
34876
  alertPrompts: a,
34876
- confirmationColumns: o,
34877
- isItemNonActionable: s,
34878
- onConfirm: l,
34879
- onClose: c,
34880
- confirmText: u,
34881
- actionButtonText: d,
34882
- isDanger: f
34883
- } = e, [h, g] = ua(), [m] = kt(), y = Z(() => {
34884
- g(void 0), c == null || c();
34885
- }, [c, g]), x = ue(() => s && n.some(s) ? n.sort((j, D) => bu(s(j), s(D))) : n, [n, s]), v = Hf(x), [b, _] = K(!u), S = ue(() => s && n.some(s) ? [
34877
+ isPlain: o = !1,
34878
+ confirmationColumns: s,
34879
+ isItemNonActionable: l,
34880
+ onConfirm: c,
34881
+ onClose: u,
34882
+ confirmText: d,
34883
+ actionButtonText: f,
34884
+ isDanger: h
34885
+ } = e, [g, m] = ua(), [y] = kt(), x = Z(() => {
34886
+ m(void 0), u == null || u();
34887
+ }, [u, m]), v = ue(() => l && n.some(l) ? n.sort((D, T) => bu(l(D), l(T))) : n, [n, l]), b = Hf(v), [_, S] = K(!d), w = ue(() => l && n.some(l) ? [
34886
34888
  {
34887
34889
  header: "",
34888
- cell: (j) => s(j) ? /* @__PURE__ */ p.jsx(
34890
+ cell: (D) => l(D) ? /* @__PURE__ */ p.jsx(
34889
34891
  Gr,
34890
34892
  {
34891
- content: s(j),
34892
- trigger: s(j) ? void 0 : "manual",
34893
+ content: l(D),
34894
+ trigger: l(D) ? void 0 : "manual",
34893
34895
  children: /* @__PURE__ */ p.jsx(ui, { status: "warning", children: /* @__PURE__ */ p.jsx(iL, {}) })
34894
34896
  }
34895
34897
  ) : null
34896
34898
  },
34897
- ...o
34898
- ] : o, [o, s, n]), w = ue(() => s ? n.filter((j) => !s(j)) : n, [s, n]), C = f1(S), { t: O } = Pe();
34899
+ ...s
34900
+ ] : s, [s, l, n]), C = ue(() => l ? n.filter((D) => !l(D)) : n, [l, n]), O = f1(w), { t: j } = Pe();
34899
34901
  return /* @__PURE__ */ p.jsxs(
34900
34902
  zl,
34901
34903
  {
34902
34904
  ouiaId: t,
34903
34905
  variant: Wl.medium,
34904
34906
  isOpen: !0,
34905
- onClose: y,
34907
+ onClose: x,
34906
34908
  "aria-label": t,
34907
34909
  children: [
34908
34910
  /* @__PURE__ */ p.jsx(
34909
34911
  Bl,
34910
34912
  {
34911
34913
  title: t,
34912
- titleIconVariant: f ? "warning" : void 0,
34914
+ titleIconVariant: h ? "warning" : void 0,
34913
34915
  description: i
34914
34916
  }
34915
34917
  ),
34916
34918
  n.length > 0 && /* @__PURE__ */ p.jsxs(Fo, { children: [
34917
- /* @__PURE__ */ p.jsx(Hk, { children: a && a.length > 0 && a.map((j, D) => /* @__PURE__ */ p.jsx(
34919
+ /* @__PURE__ */ p.jsx(Hk, { children: a && a.length > 0 && a.map((D, T) => /* @__PURE__ */ p.jsx(
34918
34920
  si,
34919
34921
  {
34920
34922
  "data-cy": "alert-toaster",
34921
34923
  "data-testid": "alert-toaster",
34922
34924
  isInline: !0,
34923
- title: j,
34925
+ isPlain: o,
34926
+ title: D,
34924
34927
  variant: "warning"
34925
34928
  },
34926
- D
34929
+ T
34927
34930
  )) }),
34928
34931
  /* @__PURE__ */ p.jsx(
34929
34932
  Gf,
34930
34933
  {
34931
- pageItems: v.paged,
34934
+ pageItems: b.paged,
34932
34935
  itemCount: n.length,
34933
- tableColumns: C,
34936
+ tableColumns: O,
34934
34937
  keyFn: r,
34935
34938
  compact: !0,
34936
- errorStateTitle: O("Error"),
34937
- emptyStateTitle: O("No items"),
34939
+ errorStateTitle: j("Error"),
34940
+ emptyStateTitle: j("No items"),
34938
34941
  autoHidePagination: !0,
34939
34942
  disableBodyPadding: !0,
34940
- ...v
34943
+ ...b
34941
34944
  },
34942
34945
  "items"
34943
34946
  ),
34944
- u && w.length > 0 && /* @__PURE__ */ p.jsx(Mie, { children: /* @__PURE__ */ p.jsx(
34947
+ d && C.length > 0 && /* @__PURE__ */ p.jsx(Mie, { children: /* @__PURE__ */ p.jsx(
34945
34948
  aT,
34946
34949
  {
34947
34950
  id: "confirm",
34948
34951
  ouiaId: "confirm",
34949
- label: u,
34950
- isChecked: b,
34951
- onChange: (j, D) => _(D)
34952
+ label: d,
34953
+ isChecked: _,
34954
+ onChange: (D, T) => S(T)
34952
34955
  }
34953
34956
  ) })
34954
34957
  ] }),
@@ -34958,16 +34961,16 @@ function Iie(e) {
34958
34961
  {
34959
34962
  id: "submit",
34960
34963
  ouiaId: "submit",
34961
- variant: f ? "danger" : "primary",
34964
+ variant: h ? "danger" : "primary",
34962
34965
  onClick: () => {
34963
- y(), l();
34966
+ x(), c();
34964
34967
  },
34965
- isAriaDisabled: !b,
34966
- children: d
34968
+ isAriaDisabled: !_,
34969
+ children: f
34967
34970
  },
34968
34971
  "submit"
34969
34972
  ),
34970
- /* @__PURE__ */ p.jsx(we, { id: "cancel", variant: "link", onClick: c, children: m.cancelText }, "cancel")
34973
+ /* @__PURE__ */ p.jsx(we, { id: "cancel", variant: "link", onClick: u, children: y.cancelText }, "cancel")
34971
34974
  ] })
34972
34975
  ]
34973
34976
  }
@@ -44281,109 +44284,110 @@ export {
44281
44284
  gre as Z,
44282
44285
  Tre as _,
44283
44286
  HT as a,
44284
- PD as a$,
44287
+ tn as a$,
44285
44288
  jie as a0,
44286
- gue as a1,
44287
- mue as a2,
44288
- Zre as a3,
44289
- Xre as a4,
44290
- Jre as a5,
44291
- ua as a6,
44292
- yue as a7,
44293
- Fie as a8,
44294
- A4 as a9,
44295
- xce as aA,
44296
- bce as aB,
44297
- _ce as aC,
44298
- Sce as aD,
44299
- wce as aE,
44300
- QT as aF,
44301
- ux as aG,
44302
- E4 as aH,
44303
- j4 as aI,
44304
- Cce as aJ,
44305
- Pue as aK,
44306
- ms as aL,
44307
- SN as aM,
44308
- Gf as aN,
44309
- cie as aO,
44310
- mie as aP,
44311
- yie as aQ,
44312
- vie as aR,
44313
- xie as aS,
44314
- bie as aT,
44315
- ya as aU,
44316
- yre as aV,
44317
- vre as aW,
44318
- xre as aX,
44319
- bre as aY,
44320
- jv as aZ,
44321
- tn as a_,
44322
- vue as aa,
44323
- xue as ab,
44324
- bue as ac,
44325
- _ue as ad,
44326
- uce as ae,
44327
- dce as af,
44328
- Xr as ag,
44329
- dr as ah,
44330
- Sue as ai,
44331
- wue as aj,
44332
- Cue as ak,
44333
- Oue as al,
44334
- cP as am,
44335
- iae as an,
44336
- aae as ao,
44337
- lP as ap,
44338
- eae as aq,
44339
- kue as ar,
44340
- Tue as as,
44341
- yce as at,
44342
- Aue as au,
44343
- vce as av,
44344
- Eue as aw,
44345
- jue as ax,
44346
- D4 as ay,
44347
- Due as az,
44289
+ Iie as a1,
44290
+ gue as a2,
44291
+ mue as a3,
44292
+ Zre as a4,
44293
+ Xre as a5,
44294
+ Jre as a6,
44295
+ ua as a7,
44296
+ yue as a8,
44297
+ Fie as a9,
44298
+ Due as aA,
44299
+ xce as aB,
44300
+ bce as aC,
44301
+ _ce as aD,
44302
+ Sce as aE,
44303
+ wce as aF,
44304
+ QT as aG,
44305
+ ux as aH,
44306
+ E4 as aI,
44307
+ j4 as aJ,
44308
+ Cce as aK,
44309
+ Pue as aL,
44310
+ ms as aM,
44311
+ SN as aN,
44312
+ Gf as aO,
44313
+ cie as aP,
44314
+ mie as aQ,
44315
+ yie as aR,
44316
+ vie as aS,
44317
+ xie as aT,
44318
+ bie as aU,
44319
+ ya as aV,
44320
+ yre as aW,
44321
+ vre as aX,
44322
+ xre as aY,
44323
+ bre as aZ,
44324
+ jv as a_,
44325
+ A4 as aa,
44326
+ vue as ab,
44327
+ xue as ac,
44328
+ bue as ad,
44329
+ _ue as ae,
44330
+ uce as af,
44331
+ dce as ag,
44332
+ Xr as ah,
44333
+ dr as ai,
44334
+ Sue as aj,
44335
+ wue as ak,
44336
+ Cue as al,
44337
+ Oue as am,
44338
+ cP as an,
44339
+ iae as ao,
44340
+ aae as ap,
44341
+ lP as aq,
44342
+ eae as ar,
44343
+ kue as as,
44344
+ Tue as at,
44345
+ yce as au,
44346
+ Aue as av,
44347
+ vce as aw,
44348
+ Eue as ax,
44349
+ jue as ay,
44350
+ D4 as az,
44348
44351
  KR as b,
44349
- _re as b0,
44350
- Sre as b1,
44351
- f1 as b2,
44352
- fue as b3,
44353
- hue as b4,
44354
- wre as b5,
44355
- Cre as b6,
44356
- Ore as b7,
44357
- kre as b8,
44358
- pue as b9,
44359
- Nce as bA,
44360
- $ce as bB,
44361
- $D as ba,
44362
- Qre as bb,
44363
- qD as bc,
44364
- zD as bd,
44365
- Hf as be,
44366
- Mue as bf,
44367
- Rk as bg,
44368
- Hre as bh,
44369
- RD as bi,
44370
- zre as bj,
44371
- Iue as bk,
44372
- Lue as bl,
44373
- il as bm,
44374
- Nre as bn,
44375
- $re as bo,
44376
- qre as bp,
44377
- J0 as bq,
44378
- Rue as br,
44379
- RL as bs,
44380
- kt as bt,
44381
- Fue as bu,
44382
- Fce as bv,
44383
- Die as bw,
44384
- bu as bx,
44385
- Pie as by,
44386
- Nue as bz,
44352
+ PD as b0,
44353
+ _re as b1,
44354
+ Sre as b2,
44355
+ f1 as b3,
44356
+ fue as b4,
44357
+ hue as b5,
44358
+ wre as b6,
44359
+ Cre as b7,
44360
+ Ore as b8,
44361
+ kre as b9,
44362
+ Nue as bA,
44363
+ Nce as bB,
44364
+ $ce as bC,
44365
+ pue as ba,
44366
+ $D as bb,
44367
+ Qre as bc,
44368
+ qD as bd,
44369
+ zD as be,
44370
+ Hf as bf,
44371
+ Mue as bg,
44372
+ Rk as bh,
44373
+ Hre as bi,
44374
+ RD as bj,
44375
+ zre as bk,
44376
+ Iue as bl,
44377
+ Lue as bm,
44378
+ il as bn,
44379
+ Nre as bo,
44380
+ $re as bp,
44381
+ qre as bq,
44382
+ J0 as br,
44383
+ Rue as bs,
44384
+ RL as bt,
44385
+ kt as bu,
44386
+ Fue as bv,
44387
+ Fce as bw,
44388
+ Die as bx,
44389
+ bu as by,
44390
+ Pie as bz,
44387
44391
  GT as c,
44388
44392
  ke as d,
44389
44393
  YT as e,