@ansible/ansible-ui-framework 2.4.515 → 2.4.517
Sign up to get free protection for your applications and to get access to all the features.
- package/framework/PageForm/ErrorAlert.cy.d.ts +1 -0
- package/framework/PageForm/ErrorAlert.d.ts +9 -0
- package/framework/PageForm/PageForm.d.ts +6 -3
- package/framework/PageForm/genericErrorAdapter.cy.d.ts +1 -0
- package/framework/PageForm/genericErrorAdapter.d.ts +2 -0
- package/framework/PageForm/typesErrorAdapter.d.ts +12 -0
- package/framework/PageWizard/PageWizard.d.ts +2 -0
- package/framework/PageWizard/PageWizardBody.d.ts +2 -0
- package/framework/publish/index.d.ts +94 -94
- package/index.js +6954 -6923
- package/index.umd.cjs +172 -172
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
type ErrorType = string | ReactNode | (string | ReactNode)[] | null;
|
3
|
+
interface ErrorAlertProps {
|
4
|
+
error: ErrorType;
|
5
|
+
isMd: boolean;
|
6
|
+
onCancel?: () => void;
|
7
|
+
}
|
8
|
+
export declare function ErrorAlert({ error, isMd, onCancel }: ErrorAlertProps): import("react/jsx-runtime").JSX.Element | null;
|
9
|
+
export {};
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
2
2
|
import { DefaultValues, ErrorOption, FieldPath, FieldValues, UseFormReturn } from 'react-hook-form';
|
3
|
-
|
3
|
+
import { ErrorAdapter } from './typesErrorAdapter';
|
4
|
+
export interface PageFormProps<T extends object> {
|
4
5
|
children?: ReactNode;
|
5
6
|
submitText?: string;
|
6
7
|
additionalActionText?: string;
|
@@ -17,8 +18,10 @@ export declare function PageForm<T extends object>(props: {
|
|
17
18
|
disableGrid?: boolean;
|
18
19
|
autoComplete?: string;
|
19
20
|
footer?: ReactNode;
|
20
|
-
|
21
|
-
|
21
|
+
errorAdapter?: ErrorAdapter;
|
22
|
+
}
|
23
|
+
export declare function PageForm<T extends object>(props: PageFormProps<T>): import("react/jsx-runtime").JSX.Element;
|
24
|
+
export type PageFormSubmitHandler<T extends FieldValues> = (data: T, setError: (error: string) => void, setFieldError: (fieldName: FieldPath<T>, error: ErrorOption) => void, form: UseFormReturn<T> | undefined) => Promise<unknown>;
|
22
25
|
export declare function PageFormGrid(props: {
|
23
26
|
children?: ReactNode;
|
24
27
|
isVertical?: boolean;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export interface GenericErrorDetail {
|
3
|
+
message: string | React.ReactNode;
|
4
|
+
}
|
5
|
+
export interface FieldErrorDetail extends GenericErrorDetail {
|
6
|
+
name: string;
|
7
|
+
}
|
8
|
+
export interface ErrorOutput {
|
9
|
+
genericErrors: GenericErrorDetail[];
|
10
|
+
fieldErrors: FieldErrorDetail[];
|
11
|
+
}
|
12
|
+
export type ErrorAdapter = (error: unknown) => ErrorOutput;
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import '@patternfly/patternfly/components/Wizard/wizard.css';
|
2
|
+
import { ErrorAdapter } from '../PageForm/typesErrorAdapter';
|
2
3
|
import type { PageWizardStep } from './types';
|
3
4
|
export default function PageWizard<T extends object>(props: {
|
4
5
|
steps: PageWizardStep[];
|
5
6
|
defaultValue?: Record<string, object>;
|
6
7
|
onCancel?: () => void;
|
7
8
|
onSubmit: (wizardData: T) => Promise<void>;
|
9
|
+
errorAdapter?: ErrorAdapter;
|
8
10
|
}): import("react/jsx-runtime").JSX.Element;
|
@@ -1,23 +1,23 @@
|
|
1
|
-
declare function
|
2
|
-
declare function
|
3
|
-
declare function
|
1
|
+
declare function qxe(e: any): any;
|
2
|
+
declare function kAe(e: any): any;
|
3
|
+
declare function MAe(e: any): any;
|
4
4
|
declare function ld(e: any): any;
|
5
|
-
declare var Ixe: any;
|
6
|
-
declare var Mxe: any;
|
7
5
|
declare var Lxe: any;
|
6
|
+
declare var Ixe: any;
|
7
|
+
declare var Rxe: any;
|
8
8
|
declare var yi: any;
|
9
|
-
declare function
|
10
|
-
declare function
|
11
|
-
declare function B4(e: any): any;
|
12
|
-
declare const AAe: R.Context<undefined>;
|
13
|
-
declare function DAe(e: any): any;
|
14
|
-
declare function b7(e: any): any;
|
15
|
-
declare function gl(e: any): any;
|
16
|
-
declare var q4: any;
|
9
|
+
declare function IAe(e: any): any;
|
10
|
+
declare function LAe(e: any): any;
|
17
11
|
declare function V4(e: any): any;
|
18
|
-
declare
|
19
|
-
declare function
|
20
|
-
declare
|
12
|
+
declare const PAe: R.Context<undefined>;
|
13
|
+
declare function RAe(e: any): any;
|
14
|
+
declare function _7(e: any): any;
|
15
|
+
declare function gl(e: any): any;
|
16
|
+
declare var G4: any;
|
17
|
+
declare function U4(e: any): any;
|
18
|
+
declare function sTe(e: any): any;
|
19
|
+
declare function KAe(e: any): any;
|
20
|
+
declare var H4: any;
|
21
21
|
declare var mt: any;
|
22
22
|
declare var zt: any;
|
23
23
|
declare function Ks(e: any): any;
|
@@ -27,90 +27,90 @@ declare const kO: R.Context<{
|
|
27
27
|
replaceAlert: () => null;
|
28
28
|
removeAlerts: () => null;
|
29
29
|
}>;
|
30
|
-
declare function j7(e: any): any;
|
31
|
-
declare function eTe(e: any): any;
|
32
30
|
declare function D7(e: any): any;
|
33
|
-
declare function
|
34
|
-
declare function
|
35
|
-
declare function
|
36
|
-
declare function
|
31
|
+
declare function aTe(e: any): any;
|
32
|
+
declare function M7(e: any): any;
|
33
|
+
declare function S0(e: any): any;
|
34
|
+
declare function FAe(e: any): any;
|
35
|
+
declare function rv(e: any): any;
|
36
|
+
declare function zAe(e: any): any;
|
37
37
|
declare const oA: R.Context<{
|
38
38
|
columns: number;
|
39
39
|
}>;
|
40
|
-
declare function
|
41
|
-
declare function
|
42
|
-
declare function
|
40
|
+
declare function WAe(e: any): any;
|
41
|
+
declare function VAe(e: any): any;
|
42
|
+
declare function BAe(e: any): any;
|
43
43
|
declare function wu(e: any): any;
|
44
|
-
declare function
|
45
|
-
declare function
|
46
|
-
declare function
|
47
|
-
declare function
|
48
|
-
declare function
|
49
|
-
declare function
|
50
|
-
declare function GAe(e: any): any;
|
51
|
-
declare function YAe(e: any): any;
|
52
|
-
declare function ICe(e: any): any;
|
53
|
-
declare function KAe(e: any): any;
|
54
|
-
declare function y3(e: any): any;
|
55
|
-
declare function ZAe(e: any): any;
|
44
|
+
declare function Mxe(e: any): any;
|
45
|
+
declare function Bxe(e: any): any;
|
46
|
+
declare function I7(e: any): any;
|
47
|
+
declare function $xe(e: any): any;
|
48
|
+
declare function NCe(e: any): any;
|
49
|
+
declare function zCe(e: any): any;
|
56
50
|
declare function XAe(e: any): any;
|
57
51
|
declare function JAe(e: any): any;
|
58
52
|
declare function FCe(e: any): any;
|
59
|
-
declare function WCe(e: any): any;
|
60
|
-
declare function BCe(e: any): any;
|
61
53
|
declare function QAe(e: any): any;
|
62
|
-
declare function
|
63
|
-
declare
|
54
|
+
declare function b3(e: any): any;
|
55
|
+
declare function eTe(e: any): any;
|
56
|
+
declare function tTe(e: any): any;
|
57
|
+
declare function nTe(e: any): any;
|
58
|
+
declare function VCe(e: any): any;
|
59
|
+
declare function HCe(e: any): any;
|
60
|
+
declare function qCe(e: any): any;
|
61
|
+
declare function rTe(e: any): any;
|
62
|
+
declare function GCe(): any;
|
63
|
+
declare const _3: R.Context<{
|
64
64
|
isOpen: boolean;
|
65
65
|
setState: () => {};
|
66
66
|
}>;
|
67
|
-
declare function
|
68
|
-
declare function
|
67
|
+
declare function WCe(e: any): any;
|
68
|
+
declare function KCe(e: any): any;
|
69
69
|
declare function MS(e: any): any;
|
70
|
-
declare function
|
70
|
+
declare function jh(e: any): any;
|
71
71
|
declare function Uw(e: any): any;
|
72
|
-
declare function
|
73
|
-
declare function
|
74
|
-
declare function
|
75
|
-
declare function
|
76
|
-
declare const
|
72
|
+
declare function iAe(e: any): any;
|
73
|
+
declare function i5e(e: any): any;
|
74
|
+
declare function Qxe(e: any): any;
|
75
|
+
declare function lTe(e: any): any;
|
76
|
+
declare const hAe: any;
|
77
77
|
declare function xi(e: any): any;
|
78
|
-
declare function
|
79
|
-
declare const
|
78
|
+
declare function U5e(e: any): any;
|
79
|
+
declare const $Ae: R.Context<() => null>;
|
80
80
|
declare const Qs: R.Context<{}[]>;
|
81
|
+
declare function HM(e: any): any;
|
81
82
|
declare function UM(e: any): any;
|
82
|
-
declare function VM(e: any): any;
|
83
83
|
declare function Jt(e: any): any;
|
84
84
|
declare function U1(e: any): any;
|
85
|
-
declare var
|
86
|
-
declare function
|
87
|
-
declare function
|
88
|
-
declare function
|
89
|
-
declare function
|
85
|
+
declare var Jxe: any;
|
86
|
+
declare function tAe(e: any, t: any, n: any): void;
|
87
|
+
declare function nAe(e: any, t: any, n: any): void;
|
88
|
+
declare function rAe(e: any, t: any, n: any): void;
|
89
|
+
declare function F5e(e: any, t: any): 1 | -1 | 0;
|
90
90
|
declare function Su(e: any, t: any): 1 | -1 | 0;
|
91
|
-
declare function
|
92
|
-
declare function
|
91
|
+
declare function N5e(e: any, t: any): 1 | -1 | 0;
|
92
|
+
declare function EAe(e: any): {
|
93
93
|
title: string;
|
94
94
|
variant: string;
|
95
95
|
timeout: number;
|
96
96
|
};
|
97
|
-
declare function
|
98
|
-
declare function
|
97
|
+
declare function QCe(e: any, t: any): any;
|
98
|
+
declare function x0(e: any): "var(--pf-global--danger-color--100)" | "var(--pf-global--success-color--100)" | "var(--pf-global--warning-color--100)" | "var(--pf-global--info-color--100)" | "var(--pf-global--disabled-color--100)" | undefined;
|
99
99
|
declare const XC: "var(--pf-global--danger-color--100)";
|
100
100
|
declare const QC: "var(--pf-global--disabled-color--100)";
|
101
101
|
declare const JC: "var(--pf-global--info-color--100)";
|
102
|
-
declare const
|
102
|
+
declare const NAe: "var(--pf-global--link--Color)";
|
103
103
|
declare const ZC: "var(--pf-global--success-color--100)";
|
104
|
-
declare const
|
105
|
-
declare function
|
106
|
-
declare function
|
104
|
+
declare const q4: "var(--pf-global--warning-color--100)";
|
105
|
+
declare function iTe(e: any): any;
|
106
|
+
declare function eAe(e: any, t: any): any;
|
107
107
|
declare function Ln(e: any): boolean | undefined;
|
108
|
-
declare function
|
109
|
-
declare function
|
110
|
-
declare function
|
111
|
-
declare function
|
112
|
-
declare function Fxe(e: any): any;
|
108
|
+
declare function R5e(): R.Dispatch<R.SetStateAction<undefined>>;
|
109
|
+
declare function YAe(): (n: any) => void;
|
110
|
+
declare function qAe(e: any): any;
|
111
|
+
declare function HAe(e: any): any;
|
113
112
|
declare function zxe(e: any): any;
|
113
|
+
declare function Wxe(e: any): any;
|
114
114
|
declare function Hk(e: any, t: any): {
|
115
115
|
filtered: never[];
|
116
116
|
setFilterFn: (c: any) => void;
|
@@ -152,8 +152,8 @@ declare function xt(): ({
|
|
152
152
|
unknownError: string;
|
153
153
|
validating: string;
|
154
154
|
} | (() => void))[];
|
155
|
-
declare function
|
156
|
-
declare function
|
155
|
+
declare function aAe(): (t: any, n: any) => any;
|
156
|
+
declare function cTe(e: any): {
|
157
157
|
selectedItems: any[];
|
158
158
|
selectItem: (h: any) => void;
|
159
159
|
unselectItem: (h: any) => void;
|
@@ -179,7 +179,7 @@ declare function iTe(e: any): {
|
|
179
179
|
pageItems: never[] | undefined;
|
180
180
|
error: any;
|
181
181
|
};
|
182
|
-
declare function
|
182
|
+
declare function TAe(): string;
|
183
183
|
declare function PO(): {
|
184
184
|
addAlert: () => null;
|
185
185
|
removeAlert: () => null;
|
@@ -187,33 +187,33 @@ declare function PO(): {
|
|
187
187
|
removeAlerts: () => null;
|
188
188
|
};
|
189
189
|
declare function Ea(): ((() => void) | undefined)[];
|
190
|
-
declare function
|
191
|
-
declare function
|
190
|
+
declare function BCe(): (a: any) => void;
|
191
|
+
declare function Fh(): {
|
192
192
|
isOpen: boolean;
|
193
193
|
setState: () => {};
|
194
194
|
};
|
195
|
-
declare function
|
196
|
-
declare function
|
195
|
+
declare function oTe(): (n: any, r: any) => void;
|
196
|
+
declare function $h(e: any): {
|
197
197
|
paged: never[];
|
198
198
|
page: number;
|
199
199
|
setPage: R.Dispatch<R.SetStateAction<number>>;
|
200
200
|
perPage: number;
|
201
201
|
setPerPage: R.Dispatch<R.SetStateAction<number>>;
|
202
202
|
};
|
203
|
-
declare function
|
203
|
+
declare function ZAe(e: any): (g: any, y: any) => void;
|
204
204
|
declare function Vk(e: any, t: any, n: any): {
|
205
205
|
selectedItems: any[];
|
206
|
-
selectItem: (
|
207
|
-
unselectItem: (
|
208
|
-
isSelected: (
|
209
|
-
selectItems: (
|
206
|
+
selectItem: (p: any) => void;
|
207
|
+
unselectItem: (p: any) => void;
|
208
|
+
isSelected: (p: any) => boolean;
|
209
|
+
selectItems: (p: any) => void;
|
210
210
|
selectAll: () => void;
|
211
211
|
unselectAll: () => void;
|
212
212
|
allSelected: boolean;
|
213
213
|
keyFn: any;
|
214
|
-
unselectItems: (
|
214
|
+
unselectItems: (p: any) => void;
|
215
215
|
};
|
216
|
-
declare function
|
216
|
+
declare function f5e(e: any, t: any): {
|
217
217
|
selectedItems: any[];
|
218
218
|
selectItem: (h: any) => void;
|
219
219
|
unselectItem: (h: any) => void;
|
@@ -226,23 +226,23 @@ declare function u5e(e: any, t: any): {
|
|
226
226
|
unselectItems: (h: any) => void;
|
227
227
|
};
|
228
228
|
declare function ec(): {};
|
229
|
-
declare function
|
229
|
+
declare function DAe(e: any): () => void;
|
230
230
|
declare function Uk(e: any): {
|
231
231
|
sorted: any;
|
232
232
|
sort: undefined;
|
233
233
|
setSort: R.Dispatch<R.SetStateAction<undefined>>;
|
234
234
|
};
|
235
|
-
declare function
|
235
|
+
declare function GAe(e: any, t: any, n: any): {
|
236
236
|
allSelected: boolean;
|
237
237
|
filtered: never[];
|
238
|
-
isSelected: (
|
238
|
+
isSelected: (p: any) => boolean;
|
239
239
|
page: number;
|
240
240
|
paged: never[];
|
241
241
|
perPage: number;
|
242
242
|
search: any;
|
243
243
|
searched: never[];
|
244
244
|
selectAll: () => void;
|
245
|
-
selectItem: (
|
245
|
+
selectItem: (p: any) => void;
|
246
246
|
selectPage: () => void;
|
247
247
|
selectedItems: any[];
|
248
248
|
setFilterFn: (c: any) => void;
|
@@ -254,9 +254,9 @@ declare function VAe(e: any, t: any, n: any): {
|
|
254
254
|
sort: undefined;
|
255
255
|
sorted: any;
|
256
256
|
unselectAll: () => void;
|
257
|
-
unselectItem: (
|
257
|
+
unselectItem: (p: any) => void;
|
258
258
|
};
|
259
|
-
declare function
|
259
|
+
declare function _Ae(e: any): {
|
260
260
|
page: number;
|
261
261
|
setPage: R.Dispatch<R.SetStateAction<number>>;
|
262
262
|
perPage: number;
|
@@ -269,11 +269,11 @@ declare function pAe(e: any): {
|
|
269
269
|
setFilterState: R.Dispatch<any>;
|
270
270
|
clearAllFilters: () => void;
|
271
271
|
};
|
272
|
+
declare function Fxe(e: any): any;
|
273
|
+
declare function UAe(e: any, t: any): any;
|
272
274
|
declare function Nxe(e: any): any;
|
273
|
-
declare function zAe(e: any, t: any): any;
|
274
|
-
declare function Rxe(e: any): any;
|
275
275
|
declare function Wk(e: any): any;
|
276
276
|
declare function zk(e: any): any;
|
277
|
-
declare function
|
277
|
+
declare function Sj(): string;
|
278
278
|
import * as R from "react";
|
279
|
-
export {
|
279
|
+
export { qxe as BulkSelector, kAe as BytesCell, MAe as CapacityCell, ld as Collapse, Lxe as ColumnCardOption, Ixe as ColumnListOption, Rxe as ColumnModalOption, yi as ColumnTableOption, IAe as CopyCell, LAe as DateCell, V4 as DateTimeCell, PAe as DialogContext, RAe as ElapsedTimeCell, _7 as FrameworkTranslationsProvider, gl as Help, G4 as LabelColorE, U4 as LabelsCell, sTe as LoadingPage, KAe as MultiSelectDialog, H4 as PFColorE, mt as PageActionSelection, zt as PageActionType, Ks as PageActions, kO as PageAlertToasterContext, D7 as PageAlertToasterProvider, aTe as PageApp, M7 as PageBody, S0 as PageChartContainer, FAe as PageDashboard, rv as PageDashboardCard, zAe as PageDashboardChart, oA as PageDashboardContext, WAe as PageDashboardCount, VAe as PageDashboardDonutCard, BAe as PageDashboardGettingStarted, wu as PageDetail, Mxe as PageDetails, Bxe as PageDetailsFromColumns, I7 as PageDialogProvider, $xe as PageDonutChart, NCe as PageForm, zCe as PageFormCancelButton, XAe as PageFormCheckbox, JAe as PageFormDataEditor, FCe as PageFormGrid, QAe as PageFormSelect, b3 as PageFormSubmitButton, eTe as PageFormSwitch, tTe as PageFormTextArea, nTe as PageFormTextInput, VCe as PageFramework, HCe as PageHeader, qCe as PageLayout, rTe as PageMasthead, GCe as PageMastheadToggle, _3 as PageNavSideBarContext, WCe as PageNavSideBarProvider, KCe as PageNavigation, MS as PageTab, jh as PageTable, Uw as PageTableCards, iAe as PageTabs, i5e as PageToolbar, Qxe as PageToolbarFilters, lTe as PageWizard, hAe as RunningIcon, xi as Scrollable, U5e as SelectDialog, $Ae as SetDialogContext, Qs as SettingsContext, HM as SettingsDialog, UM as SettingsProvider, Jt as TableColumnCell, U1 as TextCell, Jxe as ToolbarFilterType, tAe as addNavigationItem, nAe as addNavigationItemAfter, rAe as addNavigationItemBefore, F5e as compareNumbers, Su as compareStrings, N5e as compareUnknowns, EAe as errorToAlertProps, QCe as findNavigationItemById, x0 as getPatternflyColor, XC as pfDanger, QC as pfDisabled, JC as pfInfo, NAe as pfLink, ZC as pfSuccess, q4 as pfWarning, iTe as removeLeadingSlash, eAe as removeNavigationItemById, Ln as useBreakpoint, R5e as useBulkActionDialog, YAe as useBulkConfirmation, qAe as useColumnsWithoutExpandedRow, HAe as useColumnsWithoutSort, zxe as useDescriptionColumns, Wxe as useExpandedColumns, Hk as useFiltered, xt as useFrameworkTranslations, aAe as useGetPageUrl, cTe as useInMemoryView, TAe as useOrientation, PO as usePageAlertToaster, Ea as usePageDialog, BCe as usePageNavBarClick, Fh as usePageNavSideBar, oTe as usePageNavigate, $h as usePaged, ZAe as useSelectDialog, Vk as useSelected, f5e as useSelectedInMemory, ec as useSettings, DAe as useSettingsDialog, Uk as useSorted, GAe as useTableItems, _Ae as useView, Fxe as useVisibleCardColumns, UAe as useVisibleColumns, Nxe as useVisibleListColumns, Wk as useVisibleModalColumns, zk as useVisibleTableColumns, Sj as useWindowSize };
|