@ansible/ansible-ui-framework 2.4.2739 → 2.4.2741

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