@ansible/ansible-ui-framework 2.4.2740 → 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.
- package/{ChatbotPortal-DxJ--qcL.js → ChatbotPortal-BpIfFkDm.js} +1 -1
- package/{ChatbotSideBarHeader-BMOJHacS.js → ChatbotSideBarHeader-BuEhbLG2.js} +1 -1
- package/PageDialogs/BulkConfirmationDialog.d.ts +2 -0
- package/PageDialogs/BulkConfirmationDialog.test.d.ts +1 -0
- package/{index-C6NqotJr.js → index-Cswvy27r.js} +139 -136
- package/index.js +149 -148
- package/index.umd.cjs +165 -165
- package/package.json +1 -1
- package/publish/{index-C6NqotJr.d.ts → index-Cswvy27r.d.ts} +9 -8
- package/publish/index.d.ts +156 -155
- /package/publish/{ChatbotPortal-DxJ--qcL.d.ts → ChatbotPortal-BpIfFkDm.d.ts} +0 -0
- /package/publish/{ChatbotSideBarHeader-BMOJHacS.d.ts → ChatbotSideBarHeader-BuEhbLG2.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as De, j as M } from "./index-
|
|
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";
|
|
@@ -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-
|
|
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
|
-
|
|
34877
|
-
|
|
34878
|
-
|
|
34879
|
-
|
|
34880
|
-
|
|
34881
|
-
|
|
34882
|
-
|
|
34883
|
-
|
|
34884
|
-
|
|
34885
|
-
|
|
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: (
|
|
34889
|
+
cell: (D) => l(D) ? /* @__PURE__ */ p.jsx(
|
|
34889
34890
|
Gr,
|
|
34890
34891
|
{
|
|
34891
|
-
content:
|
|
34892
|
-
trigger:
|
|
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
|
-
...
|
|
34898
|
-
] :
|
|
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:
|
|
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:
|
|
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((
|
|
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
|
-
|
|
34924
|
+
isPlain: o,
|
|
34925
|
+
title: D,
|
|
34924
34926
|
variant: "warning"
|
|
34925
34927
|
},
|
|
34926
|
-
|
|
34928
|
+
T
|
|
34927
34929
|
)) }),
|
|
34928
34930
|
/* @__PURE__ */ p.jsx(
|
|
34929
34931
|
Gf,
|
|
34930
34932
|
{
|
|
34931
|
-
pageItems:
|
|
34933
|
+
pageItems: b.paged,
|
|
34932
34934
|
itemCount: n.length,
|
|
34933
|
-
tableColumns:
|
|
34935
|
+
tableColumns: O,
|
|
34934
34936
|
keyFn: r,
|
|
34935
34937
|
compact: !0,
|
|
34936
|
-
errorStateTitle:
|
|
34937
|
-
emptyStateTitle:
|
|
34938
|
+
errorStateTitle: j("Error"),
|
|
34939
|
+
emptyStateTitle: j("No items"),
|
|
34938
34940
|
autoHidePagination: !0,
|
|
34939
34941
|
disableBodyPadding: !0,
|
|
34940
|
-
...
|
|
34942
|
+
...b
|
|
34941
34943
|
},
|
|
34942
34944
|
"items"
|
|
34943
34945
|
),
|
|
34944
|
-
|
|
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:
|
|
34950
|
-
isChecked:
|
|
34951
|
-
onChange: (
|
|
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:
|
|
34963
|
+
variant: h ? "danger" : "primary",
|
|
34962
34964
|
onClick: () => {
|
|
34963
|
-
|
|
34965
|
+
x(), c();
|
|
34964
34966
|
},
|
|
34965
|
-
isAriaDisabled: !
|
|
34966
|
-
children:
|
|
34967
|
+
isAriaDisabled: !_,
|
|
34968
|
+
children: f
|
|
34967
34969
|
},
|
|
34968
34970
|
"submit"
|
|
34969
34971
|
),
|
|
34970
|
-
/* @__PURE__ */ p.jsx(we, { id: "cancel", variant: "link", onClick:
|
|
34972
|
+
/* @__PURE__ */ p.jsx(we, { id: "cancel", variant: "link", onClick: u, children: y.cancelText }, "cancel")
|
|
34971
34973
|
] })
|
|
34972
34974
|
]
|
|
34973
34975
|
}
|
|
@@ -44281,109 +44283,110 @@ export {
|
|
|
44281
44283
|
gre as Z,
|
|
44282
44284
|
Tre as _,
|
|
44283
44285
|
HT as a,
|
|
44284
|
-
|
|
44286
|
+
tn as a$,
|
|
44285
44287
|
jie as a0,
|
|
44286
|
-
|
|
44287
|
-
|
|
44288
|
-
|
|
44289
|
-
|
|
44290
|
-
|
|
44291
|
-
|
|
44292
|
-
|
|
44293
|
-
|
|
44294
|
-
|
|
44295
|
-
|
|
44296
|
-
|
|
44297
|
-
|
|
44298
|
-
|
|
44299
|
-
|
|
44300
|
-
|
|
44301
|
-
|
|
44302
|
-
|
|
44303
|
-
|
|
44304
|
-
|
|
44305
|
-
|
|
44306
|
-
|
|
44307
|
-
|
|
44308
|
-
|
|
44309
|
-
|
|
44310
|
-
|
|
44311
|
-
|
|
44312
|
-
|
|
44313
|
-
|
|
44314
|
-
|
|
44315
|
-
|
|
44316
|
-
|
|
44317
|
-
|
|
44318
|
-
|
|
44319
|
-
|
|
44320
|
-
|
|
44321
|
-
|
|
44322
|
-
|
|
44323
|
-
|
|
44324
|
-
|
|
44325
|
-
|
|
44326
|
-
|
|
44327
|
-
|
|
44328
|
-
|
|
44329
|
-
|
|
44330
|
-
|
|
44331
|
-
|
|
44332
|
-
|
|
44333
|
-
|
|
44334
|
-
|
|
44335
|
-
|
|
44336
|
-
|
|
44337
|
-
|
|
44338
|
-
|
|
44339
|
-
|
|
44340
|
-
|
|
44341
|
-
|
|
44342
|
-
|
|
44343
|
-
|
|
44344
|
-
|
|
44345
|
-
|
|
44346
|
-
|
|
44347
|
-
|
|
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
|
-
|
|
44350
|
-
|
|
44351
|
-
|
|
44352
|
-
|
|
44353
|
-
|
|
44354
|
-
|
|
44355
|
-
|
|
44356
|
-
|
|
44357
|
-
|
|
44358
|
-
|
|
44359
|
-
|
|
44360
|
-
|
|
44361
|
-
$
|
|
44362
|
-
|
|
44363
|
-
|
|
44364
|
-
|
|
44365
|
-
|
|
44366
|
-
|
|
44367
|
-
|
|
44368
|
-
|
|
44369
|
-
|
|
44370
|
-
|
|
44371
|
-
|
|
44372
|
-
|
|
44373
|
-
|
|
44374
|
-
|
|
44375
|
-
|
|
44376
|
-
|
|
44377
|
-
|
|
44378
|
-
|
|
44379
|
-
|
|
44380
|
-
|
|
44381
|
-
|
|
44382
|
-
|
|
44383
|
-
|
|
44384
|
-
|
|
44385
|
-
|
|
44386
|
-
|
|
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,
|