@ansible/ansible-ui-framework 2.4.341 → 2.4.343
Sign up to get free protection for your applications and to get access to all the features.
- package/framework/PageDashboard/PageDashboardChart.d.ts +10 -0
- package/framework/PageForm/Inputs/PageFormDateTimePicker.d.ts +3 -0
- package/framework/PageForm/Inputs/PageFormMultiSelect.d.ts +18 -0
- package/framework/PageForm/PageForm.d.ts +4 -2
- package/framework/PageInputs/PageMultiSelect.d.ts +1 -0
- package/framework/publish/index.d.ts +117 -117
- package/framework/utils/dateTimeHelpers.d.ts +1 -1
- package/index.js +19102 -18757
- package/index.umd.cjs +259 -259
- package/package.json +1 -1
@@ -1,10 +1,20 @@
|
|
1
1
|
import './PageDashboardChart.css';
|
2
2
|
export declare function PageDashboardChart(props: {
|
3
3
|
groups: {
|
4
|
+
label?: string;
|
4
5
|
color: string;
|
5
6
|
values: {
|
6
7
|
label: string;
|
7
8
|
value: number;
|
8
9
|
}[];
|
9
10
|
}[];
|
11
|
+
onlyIntegerTicks?: boolean;
|
12
|
+
minDomain?: number | {
|
13
|
+
x?: number;
|
14
|
+
y?: number;
|
15
|
+
};
|
16
|
+
yLabel?: string;
|
17
|
+
xLabel?: string;
|
18
|
+
allowZero?: boolean;
|
19
|
+
useLines?: boolean;
|
10
20
|
}): import("react/jsx-runtime").JSX.Element;
|
@@ -4,5 +4,8 @@ export type PageFormDateTimePickerProps<TFieldValues extends FieldValues = Field
|
|
4
4
|
datePlaceHolder?: string;
|
5
5
|
timePlaceHolder?: string;
|
6
6
|
label: string;
|
7
|
+
labelHelp?: string;
|
8
|
+
labelHelpTitle?: string;
|
9
|
+
isDisabled?: boolean;
|
7
10
|
};
|
8
11
|
export declare function PageFormDateTimePicker<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormDateTimePickerProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { FieldPath, FieldPathValue, FieldValues, Validate } from 'react-hook-form';
|
3
|
+
import { PageSelectOption } from '../../PageInputs/PageSelectOption';
|
4
|
+
export type PageFormMultiSelectProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, ValueT = FieldPathValue<TFieldValues, TFieldName>> = {
|
5
|
+
id?: string;
|
6
|
+
name: TFieldName;
|
7
|
+
label?: string;
|
8
|
+
labelHelpTitle?: string;
|
9
|
+
labelHelp?: ReactNode;
|
10
|
+
placeholderText?: string;
|
11
|
+
options: PageSelectOption<ValueT>[];
|
12
|
+
helperText?: string;
|
13
|
+
isDisabled?: boolean;
|
14
|
+
isReadOnly?: boolean;
|
15
|
+
isRequired?: boolean;
|
16
|
+
validate?: Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues> | Record<string, Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues>>;
|
17
|
+
};
|
18
|
+
export declare function PageFormMultiSelect<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormMultiSelectProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import { JSONSchema6 } from 'json-schema';
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
3
|
-
import { DefaultValues, ErrorOption, FieldPath, FieldValues } from 'react-hook-form';
|
3
|
+
import { DefaultValues, ErrorOption, FieldPath, FieldValues, UseFormReturn } from 'react-hook-form';
|
4
4
|
export declare function PageForm<T extends object>(props: {
|
5
5
|
schema?: JSONSchema6;
|
6
6
|
children?: ReactNode;
|
7
7
|
submitText: string;
|
8
|
+
additionalActionText?: string;
|
9
|
+
onClickAdditionalAction?: PageFormSubmitHandler<T>;
|
8
10
|
onSubmit: PageFormSubmitHandler<T>;
|
9
11
|
cancelText?: string;
|
10
12
|
onCancel?: () => void;
|
@@ -20,7 +22,7 @@ export declare function PageFormGrid(props: {
|
|
20
22
|
isVertical?: boolean;
|
21
23
|
singleColumn?: boolean;
|
22
24
|
}): import("react/jsx-runtime").JSX.Element;
|
23
|
-
export type PageFormSubmitHandler<T extends FieldValues> = (data: T, setError: (error: string) => void, setFieldError: (fieldName: FieldPath<T>, error: ErrorOption) => void) => Promise<unknown>;
|
25
|
+
export type PageFormSubmitHandler<T extends FieldValues> = (data: T, setError: (error: string) => void, setFieldError: (fieldName: FieldPath<T>, error: ErrorOption) => void, from: UseFormReturn<T> | undefined) => Promise<unknown>;
|
24
26
|
export declare function PageFormSubmitButton(props: {
|
25
27
|
children: ReactNode;
|
26
28
|
style?: CSSProperties;
|
@@ -6,6 +6,7 @@ export interface PageMultiSelectProps<ValueT> {
|
|
6
6
|
id?: string;
|
7
7
|
icon?: ReactNode;
|
8
8
|
placeholder: ReactNode;
|
9
|
+
isDisabled?: boolean;
|
9
10
|
values: ValueT[] | undefined | null;
|
10
11
|
onSelect: (setter: (currentValues: ValueT[] | undefined) => ValueT[] | undefined) => void;
|
11
12
|
options: PageSelectOption<ValueT>[];
|
@@ -1,113 +1,113 @@
|
|
1
|
-
declare function
|
2
|
-
declare function
|
3
|
-
declare function
|
4
|
-
declare function
|
5
|
-
declare var
|
6
|
-
declare var
|
7
|
-
declare var
|
8
|
-
declare var
|
9
|
-
declare function
|
10
|
-
declare function
|
11
|
-
declare function
|
12
|
-
declare const
|
13
|
-
declare function
|
14
|
-
declare function
|
15
|
-
declare function
|
16
|
-
declare function
|
17
|
-
declare function
|
18
|
-
declare function
|
19
|
-
declare function
|
20
|
-
declare var
|
21
|
-
declare function
|
22
|
-
declare function
|
23
|
-
declare var
|
1
|
+
declare function DWe(n: any): any;
|
2
|
+
declare function Kgt(n: any): any;
|
3
|
+
declare function Xgt(n: any): any;
|
4
|
+
declare function TB(n: any): any;
|
5
|
+
declare var vWe: any;
|
6
|
+
declare var pWe: any;
|
7
|
+
declare var _We: any;
|
8
|
+
declare var wh: any;
|
9
|
+
declare function Qgt(n: any): any;
|
10
|
+
declare function emt(n: any): any;
|
11
|
+
declare function Xle(n: any): any;
|
12
|
+
declare const Ggt: ae.Context<undefined>;
|
13
|
+
declare function tmt(n: any): any;
|
14
|
+
declare function lv(n: any): any;
|
15
|
+
declare function vmt(n: any): any;
|
16
|
+
declare function mHe(n: any): any;
|
17
|
+
declare function _mt(n: any): any;
|
18
|
+
declare function Noe(n: any): any;
|
19
|
+
declare function n1(n: any): any;
|
20
|
+
declare var tce: any;
|
21
|
+
declare function Qle(n: any): any;
|
22
|
+
declare function mmt(n: any): any;
|
23
|
+
declare var Jle: any;
|
24
24
|
declare var ci: any;
|
25
25
|
declare var gr: any;
|
26
|
-
declare function
|
27
|
-
declare const
|
26
|
+
declare function t1(n: any): any;
|
27
|
+
declare const tq: ae.Context<{
|
28
28
|
addAlert: () => null;
|
29
29
|
removeAlert: () => null;
|
30
30
|
replaceAlert: () => null;
|
31
31
|
removeAlerts: () => null;
|
32
32
|
}>;
|
33
|
-
declare function
|
34
|
-
declare function
|
35
|
-
declare function
|
36
|
-
declare function
|
37
|
-
declare function
|
38
|
-
declare function
|
39
|
-
declare const
|
33
|
+
declare function Koe(n: any): any;
|
34
|
+
declare function iq(n: any): any;
|
35
|
+
declare function KE(n: any): any;
|
36
|
+
declare function imt(n: any): any;
|
37
|
+
declare function g4(n: any): any;
|
38
|
+
declare function rmt(n: any): any;
|
39
|
+
declare const pK: ae.Context<{
|
40
40
|
columns: number;
|
41
41
|
}>;
|
42
|
-
declare function
|
43
|
-
declare function
|
44
|
-
declare function
|
45
|
-
declare function
|
46
|
-
declare function
|
47
|
-
declare function
|
48
|
-
declare function
|
49
|
-
declare function
|
50
|
-
declare function
|
51
|
-
declare function
|
52
|
-
declare function
|
53
|
-
declare function
|
54
|
-
declare function
|
55
|
-
declare function
|
56
|
-
declare function
|
57
|
-
declare function
|
58
|
-
declare function
|
59
|
-
declare function
|
60
|
-
declare function
|
61
|
-
declare function
|
62
|
-
declare function
|
63
|
-
declare function
|
64
|
-
declare function
|
65
|
-
declare const
|
42
|
+
declare function smt(n: any): any;
|
43
|
+
declare function amt(n: any): any;
|
44
|
+
declare function omt(n: any): any;
|
45
|
+
declare function zC(n: any): any;
|
46
|
+
declare function mWe(n: any): any;
|
47
|
+
declare function SWe(n: any): any;
|
48
|
+
declare function Goe(n: any): any;
|
49
|
+
declare function hWe(n: any): any;
|
50
|
+
declare function Xpt(n: any): any;
|
51
|
+
declare function Sgt(n: any): any;
|
52
|
+
declare function bmt(n: any): any;
|
53
|
+
declare function qpt(n: any): any;
|
54
|
+
declare function Jz(n: any): any;
|
55
|
+
declare function Kpt(n: any): any;
|
56
|
+
declare function eU(n: any): any;
|
57
|
+
declare function Gpt(n: any): any;
|
58
|
+
declare function Ypt(n: any): any;
|
59
|
+
declare function Zpt(n: any): any;
|
60
|
+
declare function Jpt(n: any): any;
|
61
|
+
declare function e0t(n: any): any;
|
62
|
+
declare function t0t(n: any): any;
|
63
|
+
declare function n0t(n: any): any;
|
64
|
+
declare function Egt(): any;
|
65
|
+
declare const ore: ae.Context<{
|
66
66
|
isOpen: boolean;
|
67
67
|
setState: () => {};
|
68
68
|
}>;
|
69
|
-
declare function
|
70
|
-
declare function
|
71
|
-
declare function
|
72
|
-
declare function
|
73
|
-
declare function
|
74
|
-
declare function
|
75
|
-
declare function
|
76
|
-
declare function
|
77
|
-
declare function
|
78
|
-
declare const
|
79
|
-
declare function
|
80
|
-
declare function
|
81
|
-
declare const
|
82
|
-
declare const
|
83
|
-
declare function
|
84
|
-
declare function
|
85
|
-
declare function
|
86
|
-
declare function
|
87
|
-
declare var
|
88
|
-
declare function
|
89
|
-
declare function
|
90
|
-
declare function
|
91
|
-
declare function
|
69
|
+
declare function xgt(n: any): any;
|
70
|
+
declare function ice(n: any): any;
|
71
|
+
declare function tU(n: any): any;
|
72
|
+
declare function PL(n: any): any;
|
73
|
+
declare function Y$e(n: any): any;
|
74
|
+
declare function Tgt(n: any): any;
|
75
|
+
declare function i0t(n: any): any;
|
76
|
+
declare function x$e(n: any): any;
|
77
|
+
declare function _$e(n: any): any;
|
78
|
+
declare const Agt: any;
|
79
|
+
declare function GE(n: any): any;
|
80
|
+
declare function gHe(n: any): any;
|
81
|
+
declare const Ygt: ae.Context<() => null>;
|
82
|
+
declare const i1: ae.Context<{}[]>;
|
83
|
+
declare function Xoe(n: any): any;
|
84
|
+
declare function Zoe(n: any): any;
|
85
|
+
declare function as(n: any): any;
|
86
|
+
declare function j3(n: any): any;
|
87
|
+
declare var v$e: any;
|
88
|
+
declare function cHe(n: any, e: any): 0 | 1 | -1;
|
89
|
+
declare function KC(n: any, e: any): 0 | 1 | -1;
|
90
|
+
declare function lHe(n: any, e: any): 0 | 1 | -1;
|
91
|
+
declare function qgt(n: any): {
|
92
92
|
title: string;
|
93
93
|
variant: string;
|
94
94
|
timeout: number;
|
95
95
|
};
|
96
|
-
declare function
|
97
|
-
declare const
|
98
|
-
declare const
|
99
|
-
declare const
|
100
|
-
declare const
|
101
|
-
declare const
|
102
|
-
declare const
|
103
|
-
declare function
|
104
|
-
declare function
|
105
|
-
declare function
|
106
|
-
declare function
|
107
|
-
declare function
|
108
|
-
declare function
|
109
|
-
declare function
|
110
|
-
declare function
|
96
|
+
declare function UE(n: 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;
|
97
|
+
declare const oK: "var(--pf-global--danger-color--100)";
|
98
|
+
declare const lK: "var(--pf-global--disabled-color--100)";
|
99
|
+
declare const aK: "var(--pf-global--info-color--100)";
|
100
|
+
declare const nmt: "var(--pf-global--link--Color)";
|
101
|
+
declare const sK: "var(--pf-global--success-color--100)";
|
102
|
+
declare const ece: "var(--pf-global--warning-color--100)";
|
103
|
+
declare function uo(n: any): boolean | undefined;
|
104
|
+
declare function aHe(): ae.Dispatch<ae.SetStateAction<undefined>>;
|
105
|
+
declare function gmt(): (t: any) => void;
|
106
|
+
declare function umt(n: any): any;
|
107
|
+
declare function cmt(n: any): any;
|
108
|
+
declare function CWe(n: any): any;
|
109
|
+
declare function wWe(n: any): any;
|
110
|
+
declare function eQ(n: any, e: any): {
|
111
111
|
filtered: never[];
|
112
112
|
setFilterFn: (c: any) => void;
|
113
113
|
};
|
@@ -147,7 +147,7 @@ declare function Gi(): ({
|
|
147
147
|
unknownError: string;
|
148
148
|
validating: string;
|
149
149
|
} | (() => void))[];
|
150
|
-
declare function
|
150
|
+
declare function r0t(n: any): {
|
151
151
|
selectedItems: any[];
|
152
152
|
selectItem: (f: any) => void;
|
153
153
|
unselectItem: (f: any) => void;
|
@@ -173,29 +173,29 @@ declare function Npt(n: any): {
|
|
173
173
|
pageItems: never[] | undefined;
|
174
174
|
error: any;
|
175
175
|
};
|
176
|
-
declare function
|
177
|
-
declare function
|
176
|
+
declare function Ugt(): string;
|
177
|
+
declare function qoe(): {
|
178
178
|
addAlert: () => null;
|
179
179
|
removeAlert: () => null;
|
180
180
|
replaceAlert: () => null;
|
181
181
|
removeAlerts: () => null;
|
182
182
|
};
|
183
|
-
declare function
|
184
|
-
declare function
|
185
|
-
declare function
|
183
|
+
declare function mu(): ((() => void) | undefined)[];
|
184
|
+
declare function Qpt(): (r: any) => void;
|
185
|
+
declare function K6(): {
|
186
186
|
isOpen: boolean;
|
187
187
|
setState: () => {};
|
188
188
|
};
|
189
|
-
declare function
|
190
|
-
declare function
|
189
|
+
declare function h4(): (t: any) => void;
|
190
|
+
declare function ML(n: any): {
|
191
191
|
paged: never[];
|
192
192
|
page: number;
|
193
193
|
setPage: ae.Dispatch<ae.SetStateAction<number>>;
|
194
194
|
perPage: number;
|
195
195
|
setPerPage: ae.Dispatch<ae.SetStateAction<number>>;
|
196
196
|
};
|
197
|
-
declare function
|
198
|
-
declare function
|
197
|
+
declare function pmt(n: any): (m: any, p: any) => void;
|
198
|
+
declare function QX(n: any, e: any, t: any): {
|
199
199
|
selectedItems: any[];
|
200
200
|
selectItem: (g: any) => void;
|
201
201
|
unselectItem: (g: any) => void;
|
@@ -207,7 +207,7 @@ declare function OX(n: any, e: any, t: any): {
|
|
207
207
|
keyFn: any;
|
208
208
|
unselectItems: (g: any) => void;
|
209
209
|
};
|
210
|
-
declare function
|
210
|
+
declare function I$e(n: any, e: any): {
|
211
211
|
selectedItems: any[];
|
212
212
|
selectItem: (f: any) => void;
|
213
213
|
unselectItem: (f: any) => void;
|
@@ -219,14 +219,14 @@ declare function r$e(n: any, e: any): {
|
|
219
219
|
keyFn: any;
|
220
220
|
unselectItems: (f: any) => void;
|
221
221
|
};
|
222
|
-
declare function
|
223
|
-
declare function
|
224
|
-
declare function
|
222
|
+
declare function r1(): {};
|
223
|
+
declare function Zgt(n: any): () => void;
|
224
|
+
declare function JX(n: any): {
|
225
225
|
sorted: any;
|
226
226
|
sort: undefined;
|
227
227
|
setSort: ae.Dispatch<ae.SetStateAction<undefined>>;
|
228
228
|
};
|
229
|
-
declare function
|
229
|
+
declare function fmt(n: any, e: any, t: any): {
|
230
230
|
allSelected: boolean;
|
231
231
|
filtered: never[];
|
232
232
|
isSelected: (g: any) => boolean;
|
@@ -250,7 +250,7 @@ declare function $gt(n: any, e: any, t: any): {
|
|
250
250
|
unselectAll: () => void;
|
251
251
|
unselectItem: (g: any) => void;
|
252
252
|
};
|
253
|
-
declare function
|
253
|
+
declare function Bgt(n: any): {
|
254
254
|
page: number;
|
255
255
|
setPage: ae.Dispatch<ae.SetStateAction<number>>;
|
256
256
|
perPage: number;
|
@@ -263,11 +263,11 @@ declare function hgt(n: any): {
|
|
263
263
|
setFilterState: ae.Dispatch<any>;
|
264
264
|
clearAllFilters: () => void;
|
265
265
|
};
|
266
|
-
declare function
|
267
|
-
declare function
|
268
|
-
declare function
|
269
|
-
declare function
|
270
|
-
declare function
|
271
|
-
declare function
|
266
|
+
declare function yWe(n: any): any;
|
267
|
+
declare function lmt(n: any, e: any): any;
|
268
|
+
declare function bWe(n: any): any;
|
269
|
+
declare function RX(n: any): any;
|
270
|
+
declare function PX(n: any): any;
|
271
|
+
declare function Rse(): string;
|
272
272
|
import * as ae from "react";
|
273
|
-
export {
|
273
|
+
export { DWe as BulkSelector, Kgt as BytesCell, Xgt as CapacityCell, TB as Collapse, vWe as ColumnCardOption, pWe as ColumnListOption, _We as ColumnModalOption, wh as ColumnTableOption, Qgt as CopyCell, emt as DateCell, Xle as DateTimeCell, Ggt as DialogContext, tmt as ElapsedTimeCell, lv as FormGroupSelect, vmt as FormGroupSelectOption, mHe as FormGroupTextArea, _mt as FormGroupTextInput, Noe as FrameworkTranslationsProvider, n1 as Help, tce as LabelColorE, Qle as LabelsCell, mmt as MultiSelectDialog, Jle as PFColorE, ci as PageActionSelection, gr as PageActionType, t1 as PageActions, tq as PageAlertToasterContext, Koe as PageAlertToasterProvider, iq as PageBody, KE as PageChartContainer, imt as PageDashboard, g4 as PageDashboardCard, rmt as PageDashboardChart, pK as PageDashboardContext, smt as PageDashboardCount, amt as PageDashboardDonutCard, omt as PageDashboardGettingStarted, zC as PageDetail, mWe as PageDetails, SWe as PageDetailsFromColumns, Goe as PageDialogProvider, hWe as PageDonutChart, Xpt as PageForm, Sgt as PageFormCancelButton, bmt as PageFormCheckbox, qpt as PageFormDataEditor, Jz as PageFormGrid, Kpt as PageFormSelect, eU as PageFormSubmitButton, Gpt as PageFormSwitch, Ypt as PageFormTextArea, Zpt as PageFormTextInput, Jpt as PageFramework, e0t as PageHeader, t0t as PageLayout, n0t as PageMasthead, Egt as PageMastheadToggle, ore as PageNavSideBarContext, xgt as PageNavSideBarProvider, ice as PageNavigateCallbackContextProvider, tU as PageTab, PL as PageTable, Y$e as PageTableCards, Tgt as PageTabs, i0t as PageTabsOld, x$e as PageToolbar, _$e as PageToolbarFilters, Agt as RunningIcon, GE as Scrollable, gHe as SelectDialog, Ygt as SetDialogContext, i1 as SettingsContext, Xoe as SettingsDialog, Zoe as SettingsProvider, as as TableColumnCell, j3 as TextCell, v$e as ToolbarFilterType, cHe as compareNumbers, KC as compareStrings, lHe as compareUnknowns, qgt as errorToAlertProps, UE as getPatternflyColor, oK as pfDanger, lK as pfDisabled, aK as pfInfo, nmt as pfLink, sK as pfSuccess, ece as pfWarning, uo as useBreakpoint, aHe as useBulkActionDialog, gmt as useBulkConfirmation, umt as useColumnsWithoutExpandedRow, cmt as useColumnsWithoutSort, CWe as useDescriptionColumns, wWe as useExpandedColumns, eQ as useFiltered, Gi as useFrameworkTranslations, r0t as useInMemoryView, Ugt as useOrientation, qoe as usePageAlertToaster, mu as usePageDialog, Qpt as usePageNavBarClick, K6 as usePageNavSideBar, h4 as usePageNavigate, ML as usePaged, pmt as useSelectDialog, QX as useSelected, I$e as useSelectedInMemory, r1 as useSettings, Zgt as useSettingsDialog, JX as useSorted, fmt as useTableItems, Bgt as useView, yWe as useVisibleCardColumns, lmt as useVisibleColumns, bWe as useVisibleListColumns, RX as useVisibleModalColumns, PX as useVisibleTableColumns, Rse as useWindowSize };
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare function formatDateString(dateObj: string
|
1
|
+
export declare function formatDateString(dateObj: string, tz?: string): string;
|
2
2
|
export declare function dateToInputDateTime(dt: string, tz?: string | null): string[];
|