@ansible/ansible-ui-framework 2.4.76 → 2.4.118
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/assets/editor.worker-cc8927cd.js +9 -0
- package/assets/json.worker-e09ec1a1.js +40 -0
- package/assets/yaml.worker-6d764edc.js +459 -0
- package/framework/PageActions/PageActionButton.d.ts +1 -1
- package/framework/PageActions/PageActionDropdown.d.ts +1 -1
- package/framework/PageActions/PageActionLink.d.ts +1 -1
- package/framework/PageActions/PageActionSwitch.d.ts +1 -1
- package/framework/PageActions/PageActions.d.ts +1 -1
- package/framework/PageActions/PageActionsPinned.d.ts +1 -1
- package/framework/PageAlertToaster.d.ts +1 -1
- package/framework/PageBody.d.ts +1 -1
- package/framework/PageCells/BytesCell.d.ts +1 -2
- package/framework/PageCells/CapacityCell.d.ts +1 -2
- package/framework/PageCells/CopyCell.d.ts +1 -2
- package/framework/PageCells/DateTimeCell.d.ts +2 -3
- package/framework/PageCells/ElapsedTimeCell.d.ts +1 -2
- package/framework/PageCells/LabelsCell.d.ts +1 -2
- package/framework/PageCells/TextCell.d.ts +1 -1
- package/framework/PageColumnModal.d.ts +1 -2
- package/framework/PageDashboard/PageChartContainer.d.ts +1 -1
- package/framework/PageDashboard/PageDashboard.d.ts +1 -1
- package/framework/PageDashboard/PageDashboardCard.d.ts +1 -1
- package/framework/PageDashboard/PageDashboardChart.d.ts +1 -2
- package/framework/PageDashboard/PageDonutChart.d.ts +2 -3
- package/framework/PageDashboard/PageScatterChart.d.ts +1 -2
- package/framework/PageDetails/PageDetail.d.ts +1 -1
- package/framework/PageDetails/PageDetailCodeEditor.d.ts +1 -2
- package/framework/PageDetails/PageDetails.d.ts +1 -1
- package/framework/PageDetails/PageDetailsFromColumns.d.ts +1 -2
- package/framework/PageDialogs/BulkConfirmationDialog.d.ts +1 -2
- package/framework/PageDialogs/MultiSelectDialog.d.ts +1 -2
- package/framework/PageDialogs/PageDialog.d.ts +1 -1
- package/framework/PageDialogs/SelectSingleDialog.d.ts +1 -2
- package/framework/PageDialogs/useSelectDialog.d.ts +1 -2
- package/framework/PageForm/Inputs/DataEditor.d.ts +12 -0
- package/framework/PageForm/Inputs/FormGroupSelect.d.ts +1 -1
- package/framework/PageForm/Inputs/FormGroupSelectOption.d.ts +1 -1
- package/framework/PageForm/Inputs/FormGroupTextArea.d.ts +1 -2
- package/framework/PageForm/Inputs/FormGroupTextInput.d.ts +1 -1
- package/framework/PageForm/Inputs/FormGroupTypeAheadMultiSelect.d.ts +1 -1
- package/framework/PageForm/Inputs/PageFormAsyncSelect.d.ts +4 -2
- package/framework/PageForm/Inputs/PageFormCheckbox.d.ts +1 -2
- package/framework/PageForm/Inputs/PageFormCreatableSelect.d.ts +1 -1
- package/framework/PageForm/Inputs/PageFormDataEditor.cy.d.ts +1 -0
- package/framework/PageForm/Inputs/PageFormDataEditor.d.ts +10 -0
- package/framework/PageForm/Inputs/PageFormFileUpload.d.ts +1 -2
- package/framework/PageForm/Inputs/PageFormGroup.d.ts +2 -2
- package/framework/PageForm/Inputs/PageFormMultiInput.d.ts +1 -2
- package/framework/PageForm/Inputs/PageFormSelect.d.ts +1 -2
- package/framework/PageForm/Inputs/PageFormSelectOption.d.ts +1 -2
- package/framework/PageForm/Inputs/PageFormSlider.d.ts +1 -2
- package/framework/PageForm/Inputs/PageFormSwitch.d.ts +1 -1
- package/framework/PageForm/Inputs/PageFormTextArea.d.ts +1 -2
- package/framework/PageForm/Inputs/PageFormTextInput.d.ts +1 -1
- package/framework/PageForm/Inputs/PageFormTextSelect.d.ts +1 -2
- package/framework/PageForm/PageForm.d.ts +4 -4
- package/framework/PageForm/PageFormAlerts.d.ts +1 -2
- package/framework/PageForm/PageFormButtons.d.ts +1 -2
- package/framework/PageForm/Utils/PageFormHidden.d.ts +1 -1
- package/framework/PageForm/Utils/PageFormSection.d.ts +1 -1
- package/framework/PageForm/Utils/PageFormWatch.d.ts +1 -1
- package/framework/PageFramework.d.ts +1 -1
- package/framework/PageHeader.d.ts +3 -3
- package/framework/PageLayout.d.ts +1 -1
- package/framework/PageNav/PageNavSidebar.d.ts +11 -0
- package/framework/PageTable/PagePagination.d.ts +1 -1
- package/framework/PageTable/PageTable.d.ts +1 -1
- package/framework/PageTable/PageTableCard.d.ts +1 -1
- package/framework/PageTable/PageTableCards.d.ts +1 -2
- package/framework/PageTable/PageTableList.d.ts +1 -1
- package/framework/PageTable/PageToolbar.d.ts +1 -1
- package/framework/PageTable/PageToolbarFilter.d.ts +1 -1
- package/framework/PageTable/PageToolbarSort.d.ts +1 -2
- package/framework/PageTable/PageToolbarView.d.ts +1 -2
- package/framework/PageTabs.d.ts +3 -3
- package/framework/Settings.d.ts +2 -2
- package/framework/components/BulkSelector.d.ts +1 -2
- package/framework/components/Collapse.d.ts +1 -1
- package/framework/components/DetailInfo.d.ts +1 -2
- package/framework/components/Dotted.d.ts +1 -1
- package/framework/components/DropdownControlled.d.ts +1 -1
- package/framework/components/EmptyStateCustom.d.ts +1 -1
- package/framework/components/EmptyStateError.d.ts +1 -2
- package/framework/components/EmptyStateFilter.d.ts +1 -2
- package/framework/components/EmptyStateNoData.d.ts +1 -1
- package/framework/components/EmptyStateUnauthorized.d.ts +1 -1
- package/framework/components/ErrorBoundary.d.ts +1 -1
- package/framework/components/Help.d.ts +1 -1
- package/framework/components/IconWrapper.d.ts +1 -1
- package/framework/components/LoadingPage.d.ts +1 -2
- package/framework/components/LoadingState.d.ts +1 -2
- package/framework/components/Masonry.d.ts +1 -1
- package/framework/components/PageGrid.d.ts +1 -1
- package/framework/components/Scrollable.d.ts +1 -1
- package/framework/components/StandardPopover.d.ts +1 -1
- package/framework/components/usePageNavigate.d.ts +1 -1
- package/framework/index.d.ts +1 -2
- package/framework/useFrameworkTranslations.d.ts +1 -1
- package/framework/utils/codeEditorUtils.d.ts +5 -0
- package/index.js +78491 -8109
- package/index.umd.cjs +740 -56
- package/package.json +1 -1
- package/style.css +1 -1
- package/framework/PageForm/Inputs/PageFormCodeEditor.d.ts +0 -17
- package/framework/RoutedTabs.d.ts +0 -16
|
@@ -14,6 +14,6 @@ interface PageActionDropdownProps<T extends object> {
|
|
|
14
14
|
tooltip?: string;
|
|
15
15
|
variant?: ButtonVariant;
|
|
16
16
|
}
|
|
17
|
-
export declare function PageActionDropdown<T extends object>(props: PageActionDropdownProps<T>): JSX.Element;
|
|
17
|
+
export declare function PageActionDropdown<T extends object>(props: PageActionDropdownProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export declare function filterActionSeperators<T extends object>(actions: IPageAction<T>[]): IPageAction<T>[];
|
|
19
19
|
export {};
|
|
@@ -12,5 +12,5 @@ interface PageActionProps<T extends object> {
|
|
|
12
12
|
iconOnly?: boolean;
|
|
13
13
|
onOpen?: (open: boolean) => void;
|
|
14
14
|
}
|
|
15
|
-
export declare function PageActions<T extends object>(props: PageActionProps<T>): JSX.Element;
|
|
15
|
+
export declare function PageActions<T extends object>(props: PageActionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -8,7 +8,7 @@ interface PageActionsPinnedProps<T extends object> {
|
|
|
8
8
|
iconOnly?: boolean;
|
|
9
9
|
onOpen?: (label: string, open: boolean) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare function PageActionsPinned<T extends object>(props: PageActionsPinnedProps<T>): JSX.Element;
|
|
11
|
+
export declare function PageActionsPinned<T extends object>(props: PageActionsPinnedProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
interface PageActionPinnedProps<T extends object> {
|
|
13
13
|
action: IPageAction<T>;
|
|
14
14
|
selectedItem?: T;
|
|
@@ -10,5 +10,5 @@ export declare const PageAlertToasterContext: import("react").Context<IPageAlert
|
|
|
10
10
|
export declare function usePageAlertToaster(): IPageAlertToaster;
|
|
11
11
|
export declare function PageAlertToasterProvider(props: {
|
|
12
12
|
children: ReactNode;
|
|
13
|
-
}): JSX.Element;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export declare function errorToAlertProps(err: unknown): AlertProps;
|
package/framework/PageBody.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare function DateCell(props: {
|
|
3
2
|
value: number | string;
|
|
4
|
-
}): JSX.Element;
|
|
3
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export declare function DateTimeCell(props: {
|
|
6
5
|
value: string | number | undefined | null;
|
|
7
6
|
author?: string;
|
|
8
7
|
format?: 'since' | 'date-time';
|
|
9
8
|
onClick?: () => void;
|
|
10
|
-
}): JSX.Element;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ITableColumn } from './PageTable/PageTableColumn';
|
|
3
2
|
export declare function useColumnModal<T extends object>(columns: ITableColumn<T>[]): {
|
|
4
3
|
openColumnModal: () => void;
|
|
5
|
-
columnModal: JSX.Element;
|
|
4
|
+
columnModal: import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
managedColumns: ITableColumn<T>[];
|
|
7
6
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import './PageDashboardChart.css';
|
|
3
2
|
export declare function PageDashboardChart(props: {
|
|
4
3
|
groups: {
|
|
@@ -8,4 +7,4 @@ export declare function PageDashboardChart(props: {
|
|
|
8
7
|
value: number;
|
|
9
8
|
}[];
|
|
10
9
|
}[];
|
|
11
|
-
}): JSX.Element;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ChartDonutProps } from '@patternfly/react-charts';
|
|
3
|
-
export declare function PageDonutChart(props: Omit<ChartDonutProps, 'width' | 'height'>): JSX.Element;
|
|
2
|
+
export declare function PageDonutChart(props: Omit<ChartDonutProps, 'width' | 'height'>): import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export declare function PageDashboardDonutCard(props: {
|
|
5
4
|
title: string;
|
|
6
5
|
linkText?: string;
|
|
@@ -11,4 +10,4 @@ export declare function PageDashboardDonutCard(props: {
|
|
|
11
10
|
color: string;
|
|
12
11
|
}[];
|
|
13
12
|
loading?: boolean;
|
|
14
|
-
}): JSX.Element;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ITableColumn } from '../PageTable/PageTableColumn';
|
|
3
2
|
export declare function PageDetailsFromColumns<T extends object>(props: {
|
|
4
3
|
item: T | undefined;
|
|
5
4
|
columns: ITableColumn<T>[];
|
|
6
5
|
disablePadding?: boolean;
|
|
7
6
|
numberOfColumns?: 'multiple' | 'single';
|
|
8
|
-
}): JSX.Element;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ITableColumn } from '../PageTable/PageTableColumn';
|
|
3
2
|
import { BulkActionDialogProps } from './BulkActionDialog';
|
|
4
3
|
export interface BulkConfirmationDialog<T extends object> {
|
|
@@ -15,6 +14,6 @@ export interface BulkConfirmationDialog<T extends object> {
|
|
|
15
14
|
actionButtonText: string;
|
|
16
15
|
isDanger?: boolean;
|
|
17
16
|
}
|
|
18
|
-
declare function BulkConfirmationDialog<T extends object>(props: BulkConfirmationDialog<T>): JSX.Element;
|
|
17
|
+
declare function BulkConfirmationDialog<T extends object>(props: BulkConfirmationDialog<T>): import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
export declare function useBulkConfirmation<T extends object>(): (options: Omit<BulkConfirmationDialog<T>, 'onConfirm' | 'onClose'> & Omit<BulkActionDialogProps<T>, 'onClose'>) => void;
|
|
20
19
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ITableColumn } from '../PageTable/PageTableColumn';
|
|
3
2
|
import { IToolbarFilter } from '../PageTable/PageToolbarFilter';
|
|
4
3
|
import { ISelected } from '../PageTable/useTableItems';
|
|
@@ -17,4 +16,4 @@ export type MultiSelectDialogProps<T extends object> = {
|
|
|
17
16
|
emptyStateTitle?: string;
|
|
18
17
|
errorStateTitle?: string;
|
|
19
18
|
};
|
|
20
|
-
export declare function MultiSelectDialog<T extends object>(props: MultiSelectDialogProps<T>): JSX.Element;
|
|
19
|
+
export declare function MultiSelectDialog<T extends object>(props: MultiSelectDialogProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ export declare const DialogContext: import("react").Context<ReactNode>;
|
|
|
3
3
|
export declare const SetDialogContext: import("react").Context<(dialog?: ReactNode) => void>;
|
|
4
4
|
export declare function PageDialogProvider(props: {
|
|
5
5
|
children: ReactNode;
|
|
6
|
-
}): JSX.Element;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare function usePageDialog(): [
|
|
8
8
|
dialog: ReactNode | undefined,
|
|
9
9
|
setDialog: Dispatch<SetStateAction<ReactNode | undefined>>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ITableColumn } from '../PageTable/PageTableColumn';
|
|
3
2
|
import { IToolbarFilter } from '../PageTable/PageToolbarFilter';
|
|
4
3
|
import { ISelected } from '../PageTable/useTableItems';
|
|
@@ -17,4 +16,4 @@ export type SelectSingleDialogProps<T extends object> = {
|
|
|
17
16
|
emptyStateTitle?: string;
|
|
18
17
|
errorStateTitle?: string;
|
|
19
18
|
};
|
|
20
|
-
export declare function SelectSingleDialog<T extends object>(props: SelectSingleDialogProps<T>): JSX.Element;
|
|
19
|
+
export declare function SelectSingleDialog<T extends object>(props: SelectSingleDialogProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ITableColumn } from '../PageTable/PageTableColumn';
|
|
3
2
|
import { IToolbarFilter } from '../PageTable/PageToolbarFilter';
|
|
4
3
|
import { ISelected } from '../PageTable/useTableItems';
|
|
@@ -30,5 +29,5 @@ export type SelectDialogProps<T extends object, TMultiple> = {
|
|
|
30
29
|
export declare function SelectDialog<T extends {
|
|
31
30
|
id: number | string;
|
|
32
31
|
name: string | undefined;
|
|
33
|
-
}, TMultiple = false>(props: SelectDialogProps<T, TMultiple>): JSX.Element;
|
|
32
|
+
}, TMultiple = false>(props: SelectDialogProps<T, TMultiple>): import("react/jsx-runtime").JSX.Element;
|
|
34
33
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FieldPath, FieldValues, UseFormClearErrors, UseFormSetError } from 'react-hook-form';
|
|
2
|
+
export declare function DataEditor<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: {
|
|
3
|
+
name: TFieldName;
|
|
4
|
+
language?: string;
|
|
5
|
+
setError: UseFormSetError<TFieldValues>;
|
|
6
|
+
clearErrors: UseFormClearErrors<TFieldValues>;
|
|
7
|
+
invalid?: boolean;
|
|
8
|
+
value: string;
|
|
9
|
+
id: string;
|
|
10
|
+
isReadOnly?: boolean;
|
|
11
|
+
onChange: (value: string) => void;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,4 +5,4 @@ export type FormGroupSelectProps = Pick<SelectProps, 'footer' | 'isCreatable' |
|
|
|
5
5
|
isReadOnly?: boolean;
|
|
6
6
|
placeholderText: string | React.ReactNode;
|
|
7
7
|
};
|
|
8
|
-
export declare function FormGroupSelect(props: FormGroupSelectProps): JSX.Element;
|
|
8
|
+
export declare function FormGroupSelect(props: FormGroupSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,4 +12,4 @@ export type FormGroupSelectOptionProps<T> = {
|
|
|
12
12
|
onSelect: (event: React.MouseEvent<Element, MouseEvent> | ChangeEvent<Element>, value: T | undefined) => void;
|
|
13
13
|
value: T | undefined;
|
|
14
14
|
} & Omit<FormGroupSelectProps, 'onSelect' | 'value' | 'children'>;
|
|
15
|
-
export declare function FormGroupSelectOption<T>(props: FormGroupSelectOptionProps<T>): JSX.Element;
|
|
15
|
+
export declare function FormGroupSelectOption<T>(props: FormGroupSelectOptionProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TextAreaProps } from '@patternfly/react-core';
|
|
3
2
|
import { PageFormGroupProps } from './PageFormGroup';
|
|
4
3
|
export type FormGroupTextAreaProps = Pick<TextAreaProps, 'placeholder' | 'value' | 'isDisabled' | 'isReadOnly' | 'isRequired' | 'validated' | 'onChange' | 'type' | 'aria-label' | 'minLength' | 'maxLength'> & PageFormGroupProps;
|
|
5
|
-
export declare function FormGroupTextArea(props: FormGroupTextAreaProps): JSX.Element;
|
|
4
|
+
export declare function FormGroupTextArea(props: FormGroupTextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,4 +4,4 @@ import { PageFormGroupProps } from './PageFormGroup';
|
|
|
4
4
|
export type FormGroupTextInputProps = Pick<TextInputProps, 'placeholder' | 'value' | 'isDisabled' | 'isReadOnly' | 'isRequired' | 'validated' | 'onChange' | 'type' | 'aria-label' | 'autoComplete' | 'autoFocus' | 'innerRef' | 'minLength' | 'maxLength' | 'onBlur'> & PageFormGroupProps & {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
};
|
|
7
|
-
export declare function FormGroupTextInput(props: FormGroupTextInputProps): JSX.Element;
|
|
7
|
+
export declare function FormGroupTextInput(props: FormGroupTextInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,4 +21,4 @@ export type FormGroupTypeAheadMultiSelectProps = Pick<FormGroupProps, 'helperTex
|
|
|
21
21
|
}>[];
|
|
22
22
|
onHandleClear: (chip?: string) => void;
|
|
23
23
|
};
|
|
24
|
-
export declare function FormGroupTypeAheadMultiSelect(props: FormGroupTypeAheadMultiSelectProps): JSX.Element;
|
|
24
|
+
export declare function FormGroupTypeAheadMultiSelect(props: FormGroupTypeAheadMultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,8 @@ export interface PageFormAsyncSelectProps<TFieldValues extends FieldValues = Fie
|
|
|
4
4
|
id?: string;
|
|
5
5
|
name: TFieldName;
|
|
6
6
|
label: string;
|
|
7
|
+
labelHelp?: string | ReactNode;
|
|
8
|
+
labelHelpTitle?: string;
|
|
7
9
|
placeholder: string;
|
|
8
10
|
loadingPlaceholder: string;
|
|
9
11
|
loadingErrorText: string;
|
|
@@ -18,7 +20,7 @@ export interface PageFormAsyncSelectProps<TFieldValues extends FieldValues = Fie
|
|
|
18
20
|
openSelectDialog?: (onSelect: (value: SelectionType | undefined) => void, defaultSelection?: SelectionType) => void;
|
|
19
21
|
limit: number;
|
|
20
22
|
}
|
|
21
|
-
export declare function PageFormAsyncSelect<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, SelectionType = any>(props: PageFormAsyncSelectProps<TFieldValues, TFieldName, SelectionType>): JSX.Element;
|
|
23
|
+
export declare function PageFormAsyncSelect<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, SelectionType = any>(props: PageFormAsyncSelectProps<TFieldValues, TFieldName, SelectionType>): import("react/jsx-runtime").JSX.Element;
|
|
22
24
|
export interface AsyncSelectProps<SelectionType> {
|
|
23
25
|
id?: string;
|
|
24
26
|
value: SelectionType | undefined;
|
|
@@ -41,4 +43,4 @@ export interface AsyncSelectProps<SelectionType> {
|
|
|
41
43
|
loadingError?: boolean;
|
|
42
44
|
openSelectDialog?: (onSelect: (value: SelectionType | undefined) => void, defaultSelection?: SelectionType) => void;
|
|
43
45
|
}
|
|
44
|
-
export declare function AsyncSelect<SelectionType>(props: AsyncSelectProps<SelectionType>): JSX.Element;
|
|
46
|
+
export declare function AsyncSelect<SelectionType>(props: AsyncSelectProps<SelectionType>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CheckboxProps } from '@patternfly/react-core';
|
|
3
2
|
import { FieldPath, FieldValues, Validate } from 'react-hook-form';
|
|
4
3
|
export type PageFormCheckboxProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
|
@@ -6,4 +5,4 @@ export type PageFormCheckboxProps<TFieldValues extends FieldValues = FieldValues
|
|
|
6
5
|
name: TFieldName;
|
|
7
6
|
validate?: Validate<boolean, TFieldValues> | Record<string, Validate<boolean, TFieldValues>>;
|
|
8
7
|
} & Omit<CheckboxProps, 'id' | 'onChange' | 'value'>;
|
|
9
|
-
export declare function PageFormCheckbox<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormCheckboxProps<TFieldValues, TFieldName>): JSX.Element;
|
|
8
|
+
export declare function PageFormCheckbox<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormCheckboxProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -17,4 +17,4 @@ export type PageFormCreatableSelectProps<TFieldValues extends FieldValues = Fiel
|
|
|
17
17
|
labelHelpTitle?: string;
|
|
18
18
|
validate?: Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues> | Record<string, Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues>>;
|
|
19
19
|
};
|
|
20
|
-
export declare function PageFormCreatableSelect<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormCreatableSelectProps<TFieldValues, TFieldName>): JSX.Element;
|
|
20
|
+
export declare function PageFormCreatableSelect<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormCreatableSelectProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FieldPathByValue, FieldValues, Validate } from 'react-hook-form';
|
|
2
|
+
import { FormGroupTextInputProps } from '../..';
|
|
3
|
+
export type PageFormDataEditorInputProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPathByValue<TFieldValues, undefined | string> = FieldPathByValue<TFieldValues, undefined | string>> = {
|
|
4
|
+
name: TFieldName;
|
|
5
|
+
validate?: Validate<string, TFieldValues> | Record<string, Validate<string, TFieldValues>>;
|
|
6
|
+
toggleLanguages?: string[];
|
|
7
|
+
isExpandable?: boolean;
|
|
8
|
+
defaultExpanded?: boolean;
|
|
9
|
+
} & Omit<FormGroupTextInputProps, 'onChange'>;
|
|
10
|
+
export declare function PageFormDataEditor<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPathByValue<TFieldValues, undefined | string> = FieldPathByValue<TFieldValues, undefined | string>>(props: PageFormDataEditorInputProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PageFormGroupProps } from './PageFormGroup';
|
|
3
2
|
export type PageFormFileUploadProps = {
|
|
4
3
|
name: string;
|
|
5
4
|
isReadOnly?: boolean;
|
|
6
5
|
placeholder?: string;
|
|
7
6
|
} & PageFormGroupProps;
|
|
8
|
-
export declare function PageFormFileUpload(props: PageFormFileUploadProps): JSX.Element;
|
|
7
|
+
export declare function PageFormFileUpload(props: PageFormFileUploadProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
export type PageFormGroupProps = Pick<FormGroupProps, 'children' | 'helperText' | 'helperTextInvalid' | 'isRequired' | 'label' | 'labelIcon'> & {
|
|
4
4
|
id?: string;
|
|
5
5
|
labelHelpTitle?: string;
|
|
6
|
-
labelHelp?: string;
|
|
6
|
+
labelHelp?: string | ReactNode;
|
|
7
7
|
additionalControls?: ReactNode;
|
|
8
8
|
};
|
|
9
|
-
export declare function PageFormGroup(props: PageFormGroupProps): JSX.Element;
|
|
9
|
+
export declare function PageFormGroup(props: PageFormGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ChipGroupProps } from '@patternfly/react-core';
|
|
3
2
|
import { FieldPath, FieldValues, Validate, ValidationRule } from 'react-hook-form';
|
|
4
3
|
import { PageFormGroupProps } from './PageFormGroup';
|
|
@@ -18,5 +17,5 @@ interface FieldValuesWithArray<T> extends FieldValues {
|
|
|
18
17
|
export declare function PageFormMultiInput<T extends {
|
|
19
18
|
id: number | string;
|
|
20
19
|
name: string;
|
|
21
|
-
}, TFieldValues extends FieldValuesWithArray<T> = FieldValuesWithArray<T>, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormMultiInputProps<T, TFieldValues, TFieldName>): JSX.Element;
|
|
20
|
+
}, TFieldValues extends FieldValuesWithArray<T> = FieldValuesWithArray<T>, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormMultiInputProps<T, TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|
|
22
21
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormGroupSelectProps } from './FormGroupSelect';
|
|
3
2
|
export type PageFormSelectProps = {
|
|
4
3
|
name: string;
|
|
5
4
|
} & Omit<FormGroupSelectProps, 'onSelect' | 'value'>;
|
|
6
|
-
export declare function PageFormSelect(props: PageFormSelectProps): JSX.Element;
|
|
5
|
+
export declare function PageFormSelect(props: PageFormSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FieldPath, FieldPathValue, FieldValues, Validate } from 'react-hook-form';
|
|
3
2
|
import { FormGroupSelectOptionProps } from './FormGroupSelectOption';
|
|
4
3
|
export type PageFormSelectOptionProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection = unknown> = {
|
|
5
4
|
name: TFieldName;
|
|
6
5
|
validate?: Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues> | Record<string, Validate<FieldPathValue<TFieldValues, TFieldName>, TFieldValues>>;
|
|
7
6
|
} & Omit<FormGroupSelectOptionProps<TSelection>, 'onSelect' | 'value'>;
|
|
8
|
-
export declare function PageFormSelectOption<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection = unknown>(props: PageFormSelectOptionProps<TFieldValues, TFieldName, TSelection>): JSX.Element;
|
|
7
|
+
export declare function PageFormSelectOption<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection = unknown>(props: PageFormSelectOptionProps<TFieldValues, TFieldName, TSelection>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare function PageFormSlider(props: {
|
|
3
2
|
id?: string;
|
|
4
3
|
label: string;
|
|
@@ -9,4 +8,4 @@ export declare function PageFormSlider(props: {
|
|
|
9
8
|
min?: number;
|
|
10
9
|
max?: number;
|
|
11
10
|
valueLabel?: string;
|
|
12
|
-
}): JSX.Element;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,4 +13,4 @@ export type PageFormSwitchProps<TFieldValues extends FieldValues = FieldValues,
|
|
|
13
13
|
labelHelp?: string;
|
|
14
14
|
labelHelpTitle?: string;
|
|
15
15
|
} & Omit<SwitchProps, 'onChange' | 'ref' | 'instance'>;
|
|
16
|
-
export declare function PageFormSwitch<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormSwitchProps<TFieldValues, TFieldName>): JSX.Element;
|
|
16
|
+
export declare function PageFormSwitch<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormSwitchProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FieldPath, FieldValues, Validate, ValidationRule } from 'react-hook-form';
|
|
3
2
|
import { FormGroupTextAreaProps } from './FormGroupTextArea';
|
|
4
3
|
export type PageFormTextAreaProps<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
|
@@ -8,4 +7,4 @@ export type PageFormTextAreaProps<TFieldValues extends FieldValues = FieldValues
|
|
|
8
7
|
pattern?: ValidationRule<RegExp>;
|
|
9
8
|
validate?: Validate<string, TFieldValues> | Record<string, Validate<string, TFieldValues>>;
|
|
10
9
|
} & Omit<FormGroupTextAreaProps, 'onChange' | 'value'>;
|
|
11
|
-
export declare function PageFormTextArea<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormTextAreaProps<TFieldValues, TFieldName>): JSX.Element;
|
|
10
|
+
export declare function PageFormTextArea<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: PageFormTextAreaProps<TFieldValues, TFieldName>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,4 +12,4 @@ export type PageFormTextInputProps<TFieldValues extends FieldValues = FieldValue
|
|
|
12
12
|
selectOpen?: (callback: (selection: TSelection) => void, title: string) => void;
|
|
13
13
|
button?: ReactElement;
|
|
14
14
|
} & Omit<FormGroupTextInputProps, 'onChange' | 'value'>;
|
|
15
|
-
export declare function PageFormTextInput<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection extends FieldValues = FieldValues>(props: PageFormTextInputProps<TFieldValues, TFieldName, TSelection>): JSX.Element;
|
|
15
|
+
export declare function PageFormTextInput<TFieldValues extends FieldValues = FieldValues, TFieldName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TSelection extends FieldValues = FieldValues>(props: PageFormTextInputProps<TFieldValues, TFieldName, TSelection>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare function FormTextSelect<T>(props: {
|
|
3
2
|
id?: string;
|
|
4
3
|
label: string;
|
|
@@ -11,4 +10,4 @@ export declare function FormTextSelect<T>(props: {
|
|
|
11
10
|
selectTitle?: string;
|
|
12
11
|
selectValue?: (item: T) => string | number;
|
|
13
12
|
selectOpen?: (callback: (item: T) => void, title: string) => void;
|
|
14
|
-
}): JSX.Element;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,18 +14,18 @@ export declare function PageForm<T extends object>(props: {
|
|
|
14
14
|
disableScrolling?: boolean;
|
|
15
15
|
disableBody?: boolean;
|
|
16
16
|
disablePadding?: boolean;
|
|
17
|
-
}): JSX.Element;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export declare function PageFormGrid(props: {
|
|
19
19
|
children?: ReactNode;
|
|
20
20
|
isVertical?: boolean;
|
|
21
21
|
singleColumn?: boolean;
|
|
22
|
-
}): JSX.Element;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export type PageFormSubmitHandler<T extends FieldValues> = (data: T, setError: (error: string) => void, setFieldError: (fieldName: FieldPath<T>, error: ErrorOption) => void) => Promise<unknown>;
|
|
24
24
|
export declare function PageFormSubmitButton(props: {
|
|
25
25
|
children: ReactNode;
|
|
26
26
|
style?: CSSProperties;
|
|
27
|
-
}): JSX.Element;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export declare function PageFormCancelButton(props: {
|
|
29
29
|
onCancel: () => void;
|
|
30
30
|
children: ReactNode;
|
|
31
|
-
}): JSX.Element;
|
|
31
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function PageFormAlerts(): JSX.Element;
|
|
1
|
+
export declare function PageFormAlerts(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import './PageFramework.css';
|
|
3
3
|
export interface ICatalogBreadcrumb {
|
|
4
4
|
id?: string;
|
|
5
|
-
label?: string;
|
|
5
|
+
label?: string | null;
|
|
6
6
|
to?: string;
|
|
7
7
|
target?: string;
|
|
8
8
|
component?: React.ElementType;
|
|
@@ -10,7 +10,7 @@ export interface ICatalogBreadcrumb {
|
|
|
10
10
|
export interface PageHeaderProps {
|
|
11
11
|
navigation?: ReactNode;
|
|
12
12
|
breadcrumbs?: ICatalogBreadcrumb[];
|
|
13
|
-
title?: string;
|
|
13
|
+
title?: string | null;
|
|
14
14
|
titleHelpTitle?: string;
|
|
15
15
|
titleHelp?: string | string[];
|
|
16
16
|
titleDocLink?: string;
|
|
@@ -19,4 +19,4 @@ export interface PageHeaderProps {
|
|
|
19
19
|
headerActions?: ReactNode;
|
|
20
20
|
footer?: ReactNode;
|
|
21
21
|
}
|
|
22
|
-
export declare function PageHeader(props: PageHeaderProps): JSX.Element;
|
|
22
|
+
export declare function PageHeader(props: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
|