@ansible/ansible-ui-framework 2.4.607 → 2.4.609
Sign up to get free protection for your applications and to get access to all the features.
- package/framework/PageForm/GenericForm.d.ts +14 -0
- package/framework/PageForm/PageForm.d.ts +10 -12
- package/framework/PageForm/PageFormButtons.d.ts +9 -0
- package/framework/components/Scrollable.d.ts +1 -0
- package/framework/index.d.ts +2 -0
- package/framework/publish/index.d.ts +101 -92
- package/index.js +7268 -7229
- package/index.umd.cjs +175 -169
- package/package.json +1 -1
- package/style.css +1 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { DefaultValues } from 'react-hook-form';
|
3
|
+
import { ErrorAdapter } from './typesErrorAdapter';
|
4
|
+
import { PageFormSubmitHandler } from './PageForm';
|
5
|
+
export interface GenericFormProps<T extends object> {
|
6
|
+
children?: ReactNode;
|
7
|
+
onSubmit: PageFormSubmitHandler<T>;
|
8
|
+
onCancel?: () => void;
|
9
|
+
defaultValue?: DefaultValues<T>;
|
10
|
+
isVertical?: boolean;
|
11
|
+
autoComplete?: 'on' | 'off';
|
12
|
+
errorAdapter?: ErrorAdapter;
|
13
|
+
}
|
14
|
+
export declare function GenericForm<T extends object>(props: GenericFormProps<T>): import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ReactNode } from 'react';
|
2
2
|
import { DefaultValues, ErrorOption, FieldPath, FieldValues, UseFormReturn } from 'react-hook-form';
|
3
3
|
import { ErrorAdapter } from './typesErrorAdapter';
|
4
4
|
export interface PageFormProps<T extends object> {
|
@@ -12,14 +12,20 @@ export interface PageFormProps<T extends object> {
|
|
12
12
|
defaultValue?: DefaultValues<T>;
|
13
13
|
isVertical?: boolean;
|
14
14
|
singleColumn?: boolean;
|
15
|
-
disableScrolling?: boolean;
|
16
|
-
disableBody?: boolean;
|
17
15
|
disablePadding?: boolean;
|
18
16
|
disableGrid?: boolean;
|
19
|
-
autoComplete?:
|
17
|
+
autoComplete?: 'on' | 'off';
|
20
18
|
footer?: ReactNode;
|
21
19
|
errorAdapter?: ErrorAdapter;
|
22
20
|
}
|
21
|
+
export declare function useFormErrors<T extends object>(defaultValue: DefaultValues<T> | undefined, errorAdapter: ErrorAdapter): {
|
22
|
+
form: UseFormReturn<T, any, undefined>;
|
23
|
+
handleSubmit: import("react-hook-form").UseFormHandleSubmit<T, undefined>;
|
24
|
+
error: string | ReactNode[] | null;
|
25
|
+
setError: import("react").Dispatch<import("react").SetStateAction<string | ReactNode[] | null>>;
|
26
|
+
handleSubmitError: (err: unknown) => void;
|
27
|
+
setFieldError: import("react-hook-form").UseFormSetError<T>;
|
28
|
+
};
|
23
29
|
export declare function PageForm<T extends object>(props: PageFormProps<T>): import("react/jsx-runtime").JSX.Element;
|
24
30
|
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>;
|
25
31
|
export declare function PageFormGrid(props: {
|
@@ -27,11 +33,3 @@ export declare function PageFormGrid(props: {
|
|
27
33
|
isVertical?: boolean;
|
28
34
|
singleColumn?: boolean;
|
29
35
|
}): import("react/jsx-runtime").JSX.Element;
|
30
|
-
export declare function PageFormSubmitButton(props: {
|
31
|
-
children: ReactNode;
|
32
|
-
style?: CSSProperties;
|
33
|
-
}): import("react/jsx-runtime").JSX.Element;
|
34
|
-
export declare function PageFormCancelButton(props: {
|
35
|
-
onCancel: () => void;
|
36
|
-
children: ReactNode;
|
37
|
-
}): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
2
|
+
export declare function PageFormSubmitButton(props: {
|
3
|
+
children: ReactNode;
|
4
|
+
style?: CSSProperties;
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
6
|
+
export declare function PageFormCancelButton(props: {
|
7
|
+
onCancel: () => void;
|
8
|
+
children: ReactNode;
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
package/framework/index.d.ts
CHANGED
@@ -31,6 +31,8 @@ export * from './PageForm/Inputs/PageFormSwitch';
|
|
31
31
|
export * from './PageForm/Inputs/PageFormTextArea';
|
32
32
|
export * from './PageForm/Inputs/PageFormTextInput';
|
33
33
|
export * from './PageForm/PageForm';
|
34
|
+
export * from './PageForm/GenericForm';
|
35
|
+
export * from './PageForm/PageFormButtons';
|
34
36
|
export * from './PageFramework';
|
35
37
|
export * from './PageHeader';
|
36
38
|
export * from './PageLayout';
|
@@ -1,120 +1,129 @@
|
|
1
|
-
declare function
|
2
|
-
declare function
|
3
|
-
declare function VAe(e: any): any;
|
1
|
+
declare function twe(e: any): any;
|
2
|
+
declare function f2e(e: any): any;
|
4
3
|
declare function GAe(e: any): any;
|
4
|
+
declare function KAe(e: any): any;
|
5
5
|
declare function nh(e: any): any;
|
6
|
-
declare var
|
7
|
-
declare var
|
8
|
-
declare var
|
6
|
+
declare var e2e: any;
|
7
|
+
declare var Qxe: any;
|
8
|
+
declare var t2e: any;
|
9
9
|
declare var Ba: any;
|
10
|
-
declare function
|
11
|
-
declare function
|
12
|
-
declare function
|
13
|
-
declare const
|
14
|
-
declare function
|
15
|
-
declare function
|
10
|
+
declare function XAe(e: any): any;
|
11
|
+
declare function ZAe(e: any): any;
|
12
|
+
declare function iL(e: any): any;
|
13
|
+
declare const qAe: C.Context<undefined>;
|
14
|
+
declare function JAe(e: any): any;
|
15
|
+
declare function bI(e: any): any;
|
16
|
+
declare function yEe(e: any): any;
|
16
17
|
declare function XO(e: any): any;
|
17
|
-
declare var
|
18
|
-
declare function
|
19
|
-
declare function
|
20
|
-
declare function
|
21
|
-
declare var
|
22
|
-
declare var
|
18
|
+
declare var sL: any;
|
19
|
+
declare function aL(e: any): any;
|
20
|
+
declare function CEe(e: any): any;
|
21
|
+
declare function uEe(e: any): any;
|
22
|
+
declare var oL: any;
|
23
|
+
declare var Ot: any;
|
23
24
|
declare var Jt: any;
|
24
|
-
declare function
|
25
|
+
declare function Lc(e: any): any;
|
25
26
|
declare const GO: C.Context<{
|
26
27
|
addAlert: () => null;
|
27
28
|
removeAlert: () => null;
|
28
29
|
replaceAlert: () => null;
|
29
30
|
removeAlerts: () => null;
|
30
31
|
}>;
|
31
|
-
declare function
|
32
|
-
declare function
|
33
|
-
declare function
|
32
|
+
declare function jI(e: any): any;
|
33
|
+
declare function _Ee(e: any): any;
|
34
|
+
declare function HAe(e: any): any;
|
34
35
|
declare function Eg(e: any): any;
|
35
|
-
declare function
|
36
|
-
declare function
|
37
|
-
declare function
|
36
|
+
declare function eEe(e: any): any;
|
37
|
+
declare function cy(e: any): any;
|
38
|
+
declare function tEe(e: any): any;
|
38
39
|
declare const sA: C.Context<{
|
39
40
|
columns: number;
|
40
41
|
}>;
|
41
|
-
declare function
|
42
|
-
declare function
|
43
|
-
declare function
|
42
|
+
declare function nEe(e: any): any;
|
43
|
+
declare function iEe(e: any): any;
|
44
|
+
declare function rEe(e: any): any;
|
44
45
|
declare function gf(e: any): any;
|
45
|
-
declare function
|
46
|
-
declare function
|
47
|
-
declare function
|
48
|
-
declare function
|
49
|
-
declare function
|
50
|
-
declare function JTe(e: any): any;
|
51
|
-
declare function cEe(e: any): any;
|
52
|
-
declare function uEe(e: any): any;
|
46
|
+
declare function Jxe(e: any): any;
|
47
|
+
declare function o2e(e: any): any;
|
48
|
+
declare function DI(e: any): any;
|
49
|
+
declare function Kxe(e: any): any;
|
50
|
+
declare function eAe(e: any): any;
|
53
51
|
declare function ZTe(e: any): any;
|
54
|
-
declare function fEe(e: any): any;
|
55
|
-
declare function _$(e: any): any;
|
56
52
|
declare function dEe(e: any): any;
|
57
53
|
declare function hEe(e: any): any;
|
58
|
-
declare function mEe(e: any): any;
|
59
54
|
declare function tAe(e: any): any;
|
60
|
-
declare function
|
61
|
-
declare function
|
55
|
+
declare function mEe(e: any): any;
|
56
|
+
declare function S$(e: any): any;
|
62
57
|
declare function pEe(e: any): any;
|
63
|
-
declare function
|
64
|
-
declare
|
58
|
+
declare function gEe(e: any): any;
|
59
|
+
declare function vEe(e: any): any;
|
60
|
+
declare function iAe(e: any): any;
|
61
|
+
declare function oAe(e: any): any;
|
62
|
+
declare function lAe(e: any): any;
|
63
|
+
declare function bEe(e: any): any;
|
64
|
+
declare function sAe(): any;
|
65
|
+
declare const O$: C.Context<{
|
65
66
|
isOpen: boolean;
|
66
67
|
setState: () => {};
|
67
68
|
}>;
|
68
|
-
declare function
|
69
|
-
declare function
|
70
|
-
declare function
|
69
|
+
declare function nAe(e: any): any;
|
70
|
+
declare function uAe(e: any): any;
|
71
|
+
declare function OC(e: any): any;
|
71
72
|
declare function Rm(e: any): any;
|
72
|
-
declare function
|
73
|
-
declare function
|
74
|
-
declare function
|
75
|
-
declare function
|
76
|
-
declare function
|
77
|
-
declare const
|
73
|
+
declare function MS(e: any): any;
|
74
|
+
declare function _Ae(e: any): any;
|
75
|
+
declare function C2e(e: any): any;
|
76
|
+
declare function y2e(e: any): any;
|
77
|
+
declare function SEe(e: any): any;
|
78
|
+
declare const EAe: any;
|
78
79
|
declare function Ga(e: any): any;
|
79
|
-
declare function
|
80
|
-
declare const
|
81
|
-
declare function
|
82
|
-
declare function
|
80
|
+
declare function cwe(e: any): any;
|
81
|
+
declare const Rl: C.Context<{}[]>;
|
82
|
+
declare function a4(e: any): any;
|
83
|
+
declare function i4(e: any): any;
|
83
84
|
declare function fn(e: any): any;
|
84
|
-
declare function
|
85
|
-
declare var
|
86
|
-
declare function
|
87
|
-
declare function
|
88
|
-
declare function
|
89
|
-
declare function
|
85
|
+
declare function Z_(e: any): any;
|
86
|
+
declare var v2e: any;
|
87
|
+
declare function gAe(e: any, t: any, n: any): void;
|
88
|
+
declare function vAe(e: any, t: any, n: any): void;
|
89
|
+
declare function yAe(e: any, t: any, n: any): void;
|
90
|
+
declare function iwe(e: any, t: any): 1 | -1 | 0;
|
90
91
|
declare function vf(e: any, t: any): 1 | -1 | 0;
|
91
|
-
declare function
|
92
|
-
declare function
|
92
|
+
declare function rwe(e: any, t: any): 1 | -1 | 0;
|
93
|
+
declare function UAe(e: any): {
|
93
94
|
title: string;
|
94
95
|
variant: string;
|
95
96
|
timeout: number;
|
96
97
|
};
|
97
|
-
declare function
|
98
|
+
declare function mAe(e: any, t: any): any;
|
98
99
|
declare function Tg(e: any): "var(--pf-v5-global--danger-color--100)" | "var(--pf-v5-global--success-color--100)" | "var(--pf-v5-global--warning-color--100)" | "var(--pf-v5-global--info-color--100)" | "var(--pf-v5-global--disabled-color--100)" | undefined;
|
99
100
|
declare const QT: "var(--pf-v5-global--danger-color--100)";
|
100
101
|
declare const tA: "var(--pf-v5-global--disabled-color--100)";
|
101
102
|
declare const eA: "var(--pf-v5-global--info-color--100)";
|
102
|
-
declare const
|
103
|
+
declare const QAe: "var(--pf-v5-global--link--Color)";
|
103
104
|
declare const JT: "var(--pf-v5-global--success-color--100)";
|
104
|
-
declare const
|
105
|
-
declare function
|
106
|
-
declare function
|
107
|
-
declare function
|
108
|
-
declare function
|
109
|
-
declare function
|
110
|
-
declare function
|
111
|
-
declare function
|
112
|
-
declare function
|
113
|
-
declare function
|
105
|
+
declare const lL: "var(--pf-v5-global--warning-color--100)";
|
106
|
+
declare function xEe(e: any): any;
|
107
|
+
declare function pAe(e: any, t: any): any;
|
108
|
+
declare function kn(e: any): boolean | undefined;
|
109
|
+
declare function nwe(): C.Dispatch<C.SetStateAction<undefined>>;
|
110
|
+
declare function cEe(): (n: any) => void;
|
111
|
+
declare function lEe(e: any): any;
|
112
|
+
declare function oEe(e: any): any;
|
113
|
+
declare function i2e(e: any): any;
|
114
|
+
declare function a2e(e: any): any;
|
114
115
|
declare function GP(e: any, t: any): {
|
115
116
|
filtered: never[];
|
116
117
|
setFilterFn: (c: any) => void;
|
117
118
|
};
|
119
|
+
declare function C$(e: any, t: any): {
|
120
|
+
form: undefined;
|
121
|
+
handleSubmit: any;
|
122
|
+
error: null;
|
123
|
+
setError: C.Dispatch<C.SetStateAction<null>>;
|
124
|
+
handleSubmitError: (s: any) => void;
|
125
|
+
setFieldError: any;
|
126
|
+
};
|
118
127
|
declare function Dt(): ({
|
119
128
|
by: string;
|
120
129
|
cancelText: string;
|
@@ -152,8 +161,8 @@ declare function Dt(): ({
|
|
152
161
|
unknownError: string;
|
153
162
|
validating: string;
|
154
163
|
} | (() => void))[];
|
155
|
-
declare function
|
156
|
-
declare function
|
164
|
+
declare function bAe(): (t: any, n: any) => any;
|
165
|
+
declare function OEe(e: any): {
|
157
166
|
selectedItems: any[];
|
158
167
|
selectItem: (h: any) => void;
|
159
168
|
unselectItem: (h: any) => void;
|
@@ -179,7 +188,7 @@ declare function xEe(e: any): {
|
|
179
188
|
pageItems: never[] | undefined;
|
180
189
|
error: any;
|
181
190
|
};
|
182
|
-
declare function
|
191
|
+
declare function BAe(): string;
|
183
192
|
declare function qO(): {
|
184
193
|
addAlert: () => null;
|
185
194
|
removeAlert: () => null;
|
@@ -187,12 +196,12 @@ declare function qO(): {
|
|
187
196
|
removeAlerts: () => null;
|
188
197
|
};
|
189
198
|
declare function ea(): ((() => void) | undefined)[];
|
190
|
-
declare function
|
191
|
-
declare function
|
199
|
+
declare function rAe(): (i: any) => void;
|
200
|
+
declare function k1(): {
|
192
201
|
isOpen: boolean;
|
193
202
|
setState: () => {};
|
194
203
|
};
|
195
|
-
declare function
|
204
|
+
declare function wEe(): (n: any, r: any) => void;
|
196
205
|
declare function Im(e: any): {
|
197
206
|
paged: never[];
|
198
207
|
page: number;
|
@@ -200,7 +209,7 @@ declare function Im(e: any): {
|
|
200
209
|
perPage: number;
|
201
210
|
setPerPage: C.Dispatch<C.SetStateAction<number>>;
|
202
211
|
};
|
203
|
-
declare function
|
212
|
+
declare function fEe(e: any): (p: any, y: any) => void;
|
204
213
|
declare function UP(e: any, t: any, n: any): {
|
205
214
|
selectedItems: any[];
|
206
215
|
selectItem: (m: any) => void;
|
@@ -213,7 +222,7 @@ declare function UP(e: any, t: any, n: any): {
|
|
213
222
|
keyFn: any;
|
214
223
|
unselectItems: (m: any) => void;
|
215
224
|
};
|
216
|
-
declare function
|
225
|
+
declare function P2e(e: any, t: any): {
|
217
226
|
selectedItems: any[];
|
218
227
|
selectItem: (h: any) => void;
|
219
228
|
unselectItem: (h: any) => void;
|
@@ -226,13 +235,13 @@ declare function T2e(e: any, t: any): {
|
|
226
235
|
unselectItems: (h: any) => void;
|
227
236
|
};
|
228
237
|
declare function Nc(): {};
|
229
|
-
declare function
|
238
|
+
declare function YAe(e: any): () => void;
|
230
239
|
declare function HP(e: any): {
|
231
240
|
sorted: any;
|
232
241
|
sort: undefined;
|
233
242
|
setSort: C.Dispatch<C.SetStateAction<undefined>>;
|
234
243
|
};
|
235
|
-
declare function
|
244
|
+
declare function sEe(e: any, t: any, n: any): {
|
236
245
|
allSelected: boolean;
|
237
246
|
filtered: never[];
|
238
247
|
isSelected: (m: any) => boolean;
|
@@ -256,7 +265,7 @@ declare function aEe(e: any, t: any, n: any): {
|
|
256
265
|
unselectAll: () => void;
|
257
266
|
unselectItem: (m: any) => void;
|
258
267
|
};
|
259
|
-
declare function
|
268
|
+
declare function IAe(e: any): {
|
260
269
|
page: number;
|
261
270
|
setPage: C.Dispatch<C.SetStateAction<number>>;
|
262
271
|
perPage: number;
|
@@ -269,11 +278,11 @@ declare function jAe(e: any): {
|
|
269
278
|
setFilterState: C.Dispatch<any>;
|
270
279
|
clearAllFilters: () => void;
|
271
280
|
};
|
272
|
-
declare function
|
273
|
-
declare function
|
274
|
-
declare function
|
281
|
+
declare function r2e(e: any): any;
|
282
|
+
declare function aEe(e: any, t: any): any;
|
283
|
+
declare function n2e(e: any): any;
|
275
284
|
declare function BP(e: any): any;
|
276
285
|
declare function WP(e: any): any;
|
277
|
-
declare function
|
286
|
+
declare function m7(): string;
|
278
287
|
import * as C from "react";
|
279
|
-
export {
|
288
|
+
export { twe as BulkActionDialog, f2e as BulkSelector, GAe as BytesCell, KAe as CapacityCell, nh as Collapse, e2e as ColumnCardOption, Qxe as ColumnListOption, t2e as ColumnModalOption, Ba as ColumnTableOption, XAe as CopyCell, ZAe as DateCell, iL as DateTimeCell, qAe as DialogContext, JAe as ElapsedTimeCell, bI as FrameworkTranslationsProvider, yEe as GenericForm, XO as Help, sL as LabelColorE, aL as LabelsCell, CEe as LoadingPage, uEe as MultiSelectDialog, oL as PFColorE, Ot as PageActionSelection, Jt as PageActionType, Lc as PageActions, GO as PageAlertToasterContext, jI as PageAlertToasterProvider, _Ee as PageApp, HAe as PageBody, Eg as PageChartContainer, eEe as PageDashboard, cy as PageDashboardCard, tEe as PageDashboardChart, sA as PageDashboardContext, nEe as PageDashboardCount, iEe as PageDashboardDonutCard, rEe as PageDashboardGettingStarted, gf as PageDetail, Jxe as PageDetails, o2e as PageDetailsFromColumns, DI as PageDialogProvider, Kxe as PageDonutChart, eAe as PageForm, ZTe as PageFormCancelButton, dEe as PageFormCheckbox, hEe as PageFormDataEditor, tAe as PageFormGrid, mEe as PageFormSelect, S$ as PageFormSubmitButton, pEe as PageFormSwitch, gEe as PageFormTextArea, vEe as PageFormTextInput, iAe as PageFramework, oAe as PageHeader, lAe as PageLayout, bEe as PageMasthead, sAe as PageMastheadToggle, O$ as PageNavSideBarContext, nAe as PageNavSideBarProvider, uAe as PageNavigation, OC as PageTab, Rm as PageTable, MS as PageTableCards, _Ae as PageTabs, C2e as PageToolbar, y2e as PageToolbarFilters, SEe as PageWizard, EAe as RunningIcon, Ga as Scrollable, cwe as SelectDialog, Rl as SettingsContext, a4 as SettingsDialog, i4 as SettingsProvider, fn as TableColumnCell, Z_ as TextCell, v2e as ToolbarFilterType, gAe as addNavigationItem, vAe as addNavigationItemAfter, yAe as addNavigationItemBefore, iwe as compareNumbers, vf as compareStrings, rwe as compareUnknowns, UAe as errorToAlertProps, mAe as findNavigationItemById, Tg as getPatternflyColor, QT as pfDanger, tA as pfDisabled, eA as pfInfo, QAe as pfLink, JT as pfSuccess, lL as pfWarning, xEe as removeLeadingSlash, pAe as removeNavigationItemById, kn as useBreakpoint, nwe as useBulkActionDialog, cEe as useBulkConfirmation, lEe as useColumnsWithoutExpandedRow, oEe as useColumnsWithoutSort, i2e as useDescriptionColumns, a2e as useExpandedColumns, GP as useFiltered, C$ as useFormErrors, Dt as useFrameworkTranslations, bAe as useGetPageUrl, OEe as useInMemoryView, BAe as useOrientation, qO as usePageAlertToaster, ea as usePageDialog, rAe as usePageNavBarClick, k1 as usePageNavSideBar, wEe as usePageNavigate, Im as usePaged, fEe as useSelectDialog, UP as useSelected, P2e as useSelectedInMemory, Nc as useSettings, YAe as useSettingsDialog, HP as useSorted, sEe as useTableItems, IAe as useView, r2e as useVisibleCardColumns, aEe as useVisibleColumns, n2e as useVisibleListColumns, BP as useVisibleModalColumns, WP as useVisibleTableColumns, m7 as useWindowSize };
|