@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.
- package/{ChatbotPortal-DxJ--qcL.js → ChatbotPortal-BaA_NA7_.js} +1 -1
- package/{ChatbotSideBarHeader-BMOJHacS.js → ChatbotSideBarHeader-oYI4GkN5.js} +1 -1
- package/PageCells/CopyCell.d.ts +1 -0
- package/PageDialogs/BulkConfirmationDialog.d.ts +2 -0
- package/PageDialogs/BulkConfirmationDialog.test.d.ts +1 -0
- package/{index-C6NqotJr.js → index-B6LYAG-t.js} +140 -136
- package/index.js +149 -148
- package/index.umd.cjs +165 -165
- package/package.json +1 -1
- package/publish/{index-C6NqotJr.d.ts → index-B6LYAG-t.d.ts} +9 -8
- package/publish/index.d.ts +156 -155
- /package/publish/{ChatbotPortal-DxJ--qcL.d.ts → ChatbotPortal-BaA_NA7_.d.ts} +0 -0
- /package/publish/{ChatbotSideBarHeader-BMOJHacS.d.ts → ChatbotSideBarHeader-oYI4GkN5.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-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";
|
package/PageCells/CopyCell.d.ts
CHANGED
|
@@ -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-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
|
-
|
|
34877
|
-
|
|
34878
|
-
|
|
34879
|
-
|
|
34880
|
-
|
|
34881
|
-
|
|
34882
|
-
|
|
34883
|
-
|
|
34884
|
-
|
|
34885
|
-
|
|
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: (
|
|
34890
|
+
cell: (D) => l(D) ? /* @__PURE__ */ p.jsx(
|
|
34889
34891
|
Gr,
|
|
34890
34892
|
{
|
|
34891
|
-
content:
|
|
34892
|
-
trigger:
|
|
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
|
-
...
|
|
34898
|
-
] :
|
|
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:
|
|
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:
|
|
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((
|
|
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
|
-
|
|
34925
|
+
isPlain: o,
|
|
34926
|
+
title: D,
|
|
34924
34927
|
variant: "warning"
|
|
34925
34928
|
},
|
|
34926
|
-
|
|
34929
|
+
T
|
|
34927
34930
|
)) }),
|
|
34928
34931
|
/* @__PURE__ */ p.jsx(
|
|
34929
34932
|
Gf,
|
|
34930
34933
|
{
|
|
34931
|
-
pageItems:
|
|
34934
|
+
pageItems: b.paged,
|
|
34932
34935
|
itemCount: n.length,
|
|
34933
|
-
tableColumns:
|
|
34936
|
+
tableColumns: O,
|
|
34934
34937
|
keyFn: r,
|
|
34935
34938
|
compact: !0,
|
|
34936
|
-
errorStateTitle:
|
|
34937
|
-
emptyStateTitle:
|
|
34939
|
+
errorStateTitle: j("Error"),
|
|
34940
|
+
emptyStateTitle: j("No items"),
|
|
34938
34941
|
autoHidePagination: !0,
|
|
34939
34942
|
disableBodyPadding: !0,
|
|
34940
|
-
...
|
|
34943
|
+
...b
|
|
34941
34944
|
},
|
|
34942
34945
|
"items"
|
|
34943
34946
|
),
|
|
34944
|
-
|
|
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:
|
|
34950
|
-
isChecked:
|
|
34951
|
-
onChange: (
|
|
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:
|
|
34964
|
+
variant: h ? "danger" : "primary",
|
|
34962
34965
|
onClick: () => {
|
|
34963
|
-
|
|
34966
|
+
x(), c();
|
|
34964
34967
|
},
|
|
34965
|
-
isAriaDisabled: !
|
|
34966
|
-
children:
|
|
34968
|
+
isAriaDisabled: !_,
|
|
34969
|
+
children: f
|
|
34967
34970
|
},
|
|
34968
34971
|
"submit"
|
|
34969
34972
|
),
|
|
34970
|
-
/* @__PURE__ */ p.jsx(we, { id: "cancel", variant: "link", onClick:
|
|
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
|
-
|
|
44287
|
+
tn as a$,
|
|
44285
44288
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|