@ansible/ansible-ui-framework 0.0.607 → 0.0.609
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/cjs/{PageForm → framework/PageForm}/Inputs/FormGroupSelect.js +13 -2
- package/cjs/{PageForm → framework/PageForm}/Inputs/FormGroupSelectOption.d.ts +2 -1
- package/cjs/{PageForm → framework/PageForm}/Inputs/FormGroupTextInput.d.ts +1 -1
- package/cjs/{PageForm → framework/PageForm}/Inputs/FormGroupTextInput.js +2 -2
- package/cjs/framework/PageForm/Inputs/FormGroupTypeAheadMultiSelect.d.ts +22 -0
- package/cjs/framework/PageForm/Inputs/FormGroupTypeAheadMultiSelect.js +67 -0
- package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormCheckbox.js +13 -2
- package/cjs/framework/PageForm/Inputs/PageFormCreatableSelect.d.ts +20 -0
- package/cjs/framework/PageForm/Inputs/PageFormCreatableSelect.js +82 -0
- package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormGroup.d.ts +3 -2
- package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormGroup.js +3 -3
- package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormMultiInput.d.ts +3 -1
- package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormMultiInput.js +2 -2
- package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormSelectOption.js +5 -0
- package/cjs/framework/PageForm/Inputs/PageFormSwitch.d.ts +16 -0
- package/cjs/framework/PageForm/Inputs/PageFormSwitch.js +38 -0
- package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormTextInput.d.ts +2 -1
- package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormTextInput.js +6 -7
- package/cjs/{PageTable → framework/PageTable}/PageTable.d.ts +0 -5
- package/cjs/{PageTable → framework/PageTable}/PageTable.js +8 -13
- package/cjs/{PageTable → framework/PageTable}/PageToolbar.js +2 -7
- package/cjs/{components → framework/components}/Help.js +1 -1
- package/cjs/{useSelectDialog.d.ts → framework/useSelectDialog.d.ts} +2 -0
- package/cjs/{useSelectDialog.js → framework/useSelectDialog.js} +7 -7
- package/cjs/frontend/awx/interfaces/Label.d.ts +28 -0
- package/cjs/frontend/awx/interfaces/Label.js +2 -0
- package/package.json +1 -1
- package/cjs/PageForm/Inputs/PageFormSwitch.d.ts +0 -11
- package/cjs/PageForm/Inputs/PageFormSwitch.js +0 -34
- /package/cjs/{BulkActionDialog.d.ts → framework/BulkActionDialog.d.ts} +0 -0
- /package/cjs/{BulkActionDialog.js → framework/BulkActionDialog.js} +0 -0
- /package/cjs/{BulkConfirmationDialog.d.ts → framework/BulkConfirmationDialog.d.ts} +0 -0
- /package/cjs/{BulkConfirmationDialog.js → framework/BulkConfirmationDialog.js} +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageAction.d.ts +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageAction.js +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageActionType.d.ts +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageActionType.js +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageActions.d.ts +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageActions.js +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageBulkAction.d.ts +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageBulkAction.js +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageButtonAction.d.ts +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageButtonAction.js +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageDropdownAction.d.ts +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageDropdownAction.js +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PagePinnedActions.d.ts +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PagePinnedActions.js +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageSingleAction.d.ts +0 -0
- /package/cjs/{PageActions → framework/PageActions}/PageSingleAction.js +0 -0
- /package/cjs/{PageAlertToaster.d.ts → framework/PageAlertToaster.d.ts} +0 -0
- /package/cjs/{PageAlertToaster.js → framework/PageAlertToaster.js} +0 -0
- /package/cjs/{PageAlerts.d.ts → framework/PageAlerts.d.ts} +0 -0
- /package/cjs/{PageAlerts.js → framework/PageAlerts.js} +0 -0
- /package/cjs/{PageBody.d.ts → framework/PageBody.d.ts} +0 -0
- /package/cjs/{PageBody.js → framework/PageBody.js} +0 -0
- /package/cjs/{PageCells → framework/PageCells}/BytesCell.d.ts +0 -0
- /package/cjs/{PageCells → framework/PageCells}/BytesCell.js +0 -0
- /package/cjs/{PageCells → framework/PageCells}/CapacityCell.d.ts +0 -0
- /package/cjs/{PageCells → framework/PageCells}/CapacityCell.js +0 -0
- /package/cjs/{PageCells → framework/PageCells}/CopyCell.d.ts +0 -0
- /package/cjs/{PageCells → framework/PageCells}/CopyCell.js +0 -0
- /package/cjs/{PageCells → framework/PageCells}/DateTimeCell.d.ts +0 -0
- /package/cjs/{PageCells → framework/PageCells}/DateTimeCell.js +0 -0
- /package/cjs/{PageCells → framework/PageCells}/ElapsedTimeCell.d.ts +0 -0
- /package/cjs/{PageCells → framework/PageCells}/ElapsedTimeCell.js +0 -0
- /package/cjs/{PageCells → framework/PageCells}/LabelsCell.d.ts +0 -0
- /package/cjs/{PageCells → framework/PageCells}/LabelsCell.js +0 -0
- /package/cjs/{PageCells → framework/PageCells}/TextCell.d.ts +0 -0
- /package/cjs/{PageCells → framework/PageCells}/TextCell.js +0 -0
- /package/cjs/{PageColumnModal.d.ts → framework/PageColumnModal.d.ts} +0 -0
- /package/cjs/{PageColumnModal.js → framework/PageColumnModal.js} +0 -0
- /package/cjs/{PageDashboard → framework/PageDashboard}/PageChartContainer.d.ts +0 -0
- /package/cjs/{PageDashboard → framework/PageDashboard}/PageChartContainer.js +0 -0
- /package/cjs/{PageDashboard → framework/PageDashboard}/PageDashboardCard.d.ts +0 -0
- /package/cjs/{PageDashboard → framework/PageDashboard}/PageDashboardCard.js +0 -0
- /package/cjs/{PageDashboard → framework/PageDashboard}/PageDashboardChart.d.ts +0 -0
- /package/cjs/{PageDashboard → framework/PageDashboard}/PageDashboardChart.js +0 -0
- /package/cjs/{PageDashboard → framework/PageDashboard}/PageDonutChart.d.ts +0 -0
- /package/cjs/{PageDashboard → framework/PageDashboard}/PageDonutChart.js +0 -0
- /package/cjs/{PageDashboard → framework/PageDashboard}/PageScatterChart.d.ts +0 -0
- /package/cjs/{PageDashboard → framework/PageDashboard}/PageScatterChart.js +0 -0
- /package/cjs/{PageDetails → framework/PageDetails}/PageDetail.d.ts +0 -0
- /package/cjs/{PageDetails → framework/PageDetails}/PageDetail.js +0 -0
- /package/cjs/{PageDetails → framework/PageDetails}/PageDetails.d.ts +0 -0
- /package/cjs/{PageDetails → framework/PageDetails}/PageDetails.js +0 -0
- /package/cjs/{PageDetails → framework/PageDetails}/PageDetailsFromColumns.d.ts +0 -0
- /package/cjs/{PageDetails → framework/PageDetails}/PageDetailsFromColumns.js +0 -0
- /package/cjs/{PageDialog.d.ts → framework/PageDialog.d.ts} +0 -0
- /package/cjs/{PageDialog.js → framework/PageDialog.js} +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/FormGroupSelect.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/FormGroupSelectOption.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/FormGroupTextArea.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/FormGroupTextArea.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormCheckbox.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormFileUpload.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormFileUpload.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormSelect.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormSelect.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormSelectOption.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormSlider.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormSlider.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormTextArea.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormTextArea.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormTextSelect.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Inputs/PageFormTextSelect.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/PageForm.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/PageForm.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/PageFormAlerts.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/PageFormAlerts.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/PageFormButtons.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/PageFormButtons.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/PageFormInputPopover.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/PageFormInputPopover.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/PageFormSchema.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/PageFormSchema.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Utils/PageFormHidden.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Utils/PageFormHidden.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Utils/PageFormSection.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Utils/PageFormSection.js +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Utils/PageFormWatch.d.ts +0 -0
- /package/cjs/{PageForm → framework/PageForm}/Utils/PageFormWatch.js +0 -0
- /package/cjs/{PageFramework.d.ts → framework/PageFramework.d.ts} +0 -0
- /package/cjs/{PageFramework.js → framework/PageFramework.js} +0 -0
- /package/cjs/{PageHeader.d.ts → framework/PageHeader.d.ts} +0 -0
- /package/cjs/{PageHeader.js → framework/PageHeader.js} +0 -0
- /package/cjs/{PageLayout.d.ts → framework/PageLayout.d.ts} +0 -0
- /package/cjs/{PageLayout.js → framework/PageLayout.js} +0 -0
- /package/cjs/{PageTable → framework/PageTable}/PagePagination.d.ts +0 -0
- /package/cjs/{PageTable → framework/PageTable}/PagePagination.js +0 -0
- /package/cjs/{PageTable → framework/PageTable}/PageTableCard.d.ts +0 -0
- /package/cjs/{PageTable → framework/PageTable}/PageTableCard.js +0 -0
- /package/cjs/{PageTable → framework/PageTable}/PageTableCards.d.ts +0 -0
- /package/cjs/{PageTable → framework/PageTable}/PageTableCards.js +0 -0
- /package/cjs/{PageTable → framework/PageTable}/PageTableList.d.ts +0 -0
- /package/cjs/{PageTable → framework/PageTable}/PageTableList.js +0 -0
- /package/cjs/{PageTable → framework/PageTable}/PageTableViewType.d.ts +0 -0
- /package/cjs/{PageTable → framework/PageTable}/PageTableViewType.js +0 -0
- /package/cjs/{PageTable → framework/PageTable}/PageToolbar.d.ts +0 -0
- /package/cjs/{PageTable → framework/PageTable}/useTableItems.d.ts +0 -0
- /package/cjs/{PageTable → framework/PageTable}/useTableItems.js +0 -0
- /package/cjs/{PageTabs.d.ts → framework/PageTabs.d.ts} +0 -0
- /package/cjs/{PageTabs.js → framework/PageTabs.js} +0 -0
- /package/cjs/{Settings.d.ts → framework/Settings.d.ts} +0 -0
- /package/cjs/{Settings.js → framework/Settings.js} +0 -0
- /package/cjs/{components → framework/components}/BulkSelector.d.ts +0 -0
- /package/cjs/{components → framework/components}/BulkSelector.js +0 -0
- /package/cjs/{components → framework/components}/Collapse.d.ts +0 -0
- /package/cjs/{components → framework/components}/Collapse.js +0 -0
- /package/cjs/{components → framework/components}/DetailInfo.d.ts +0 -0
- /package/cjs/{components → framework/components}/DetailInfo.js +0 -0
- /package/cjs/{components → framework/components}/Dotted.d.ts +0 -0
- /package/cjs/{components → framework/components}/Dotted.js +0 -0
- /package/cjs/{components → framework/components}/DropdownControlled.d.ts +0 -0
- /package/cjs/{components → framework/components}/DropdownControlled.js +0 -0
- /package/cjs/{components → framework/components}/EmptyStateCustom.d.ts +0 -0
- /package/cjs/{components → framework/components}/EmptyStateCustom.js +0 -0
- /package/cjs/{components → framework/components}/EmptyStateFilter.d.ts +0 -0
- /package/cjs/{components → framework/components}/EmptyStateFilter.js +0 -0
- /package/cjs/{components → framework/components}/EmptyStateNoData.d.ts +0 -0
- /package/cjs/{components → framework/components}/EmptyStateNoData.js +0 -0
- /package/cjs/{components → framework/components}/EmptyStateUnauthorized.d.ts +0 -0
- /package/cjs/{components → framework/components}/EmptyStateUnauthorized.js +0 -0
- /package/cjs/{components → framework/components}/ErrorBoundary.d.ts +0 -0
- /package/cjs/{components → framework/components}/ErrorBoundary.js +0 -0
- /package/cjs/{components → framework/components}/Help.d.ts +0 -0
- /package/cjs/{components → framework/components}/IconWrapper.d.ts +0 -0
- /package/cjs/{components → framework/components}/IconWrapper.js +0 -0
- /package/cjs/{components → framework/components}/LoadingPage.d.ts +0 -0
- /package/cjs/{components → framework/components}/LoadingPage.js +0 -0
- /package/cjs/{components → framework/components}/LoadingState.d.ts +0 -0
- /package/cjs/{components → framework/components}/LoadingState.js +0 -0
- /package/cjs/{components → framework/components}/Masonry.d.ts +0 -0
- /package/cjs/{components → framework/components}/Masonry.js +0 -0
- /package/cjs/{components → framework/components}/PageGrid.d.ts +0 -0
- /package/cjs/{components → framework/components}/PageGrid.js +0 -0
- /package/cjs/{components → framework/components}/Scrollable.d.ts +0 -0
- /package/cjs/{components → framework/components}/Scrollable.js +0 -0
- /package/cjs/{components → framework/components}/StandardPopover.d.ts +0 -0
- /package/cjs/{components → framework/components}/StandardPopover.js +0 -0
- /package/cjs/{components → framework/components}/icons/RunningIcon.d.ts +0 -0
- /package/cjs/{components → framework/components}/icons/RunningIcon.js +0 -0
- /package/cjs/{components → framework/components}/pfcolors.d.ts +0 -0
- /package/cjs/{components → framework/components}/pfcolors.js +0 -0
- /package/cjs/{components → framework/components}/useBreakPoint.d.ts +0 -0
- /package/cjs/{components → framework/components}/useBreakPoint.js +0 -0
- /package/cjs/{components → framework/components}/useIsMounted.d.ts +0 -0
- /package/cjs/{components → framework/components}/useIsMounted.js +0 -0
- /package/cjs/{components → framework/components}/useOpen.d.ts +0 -0
- /package/cjs/{components → framework/components}/useOpen.js +0 -0
- /package/cjs/{components → framework/components}/usePageNavigate.d.ts +0 -0
- /package/cjs/{components → framework/components}/usePageNavigate.js +0 -0
- /package/cjs/{components → framework/components}/useSearchParams.d.ts +0 -0
- /package/cjs/{components → framework/components}/useSearchParams.js +0 -0
- /package/cjs/{components → framework/components}/useWindowLocation.d.ts +0 -0
- /package/cjs/{components → framework/components}/useWindowLocation.js +0 -0
- /package/cjs/{index.d.ts → framework/index.d.ts} +0 -0
- /package/cjs/{index.js → framework/index.js} +0 -0
- /package/cjs/{useFrameworkTranslations.d.ts → framework/useFrameworkTranslations.d.ts} +0 -0
- /package/cjs/{useFrameworkTranslations.js → framework/useFrameworkTranslations.js} +0 -0
- /package/cjs/{useInMemoryView.d.ts → framework/useInMemoryView.d.ts} +0 -0
- /package/cjs/{useInMemoryView.js → framework/useInMemoryView.js} +0 -0
- /package/cjs/{useSelectMultipleDialog.d.ts → framework/useSelectMultipleDialog.d.ts} +0 -0
- /package/cjs/{useSelectMultipleDialog.js → framework/useSelectMultipleDialog.js} +0 -0
- /package/cjs/{useView.d.ts → framework/useView.d.ts} +0 -0
- /package/cjs/{useView.js → framework/useView.js} +0 -0
- /package/cjs/{utils → framework/utils}/capitalize.d.ts +0 -0
- /package/cjs/{utils → framework/utils}/capitalize.js +0 -0
- /package/cjs/{utils → framework/utils}/compare.d.ts +0 -0
- /package/cjs/{utils → framework/utils}/compare.js +0 -0
- /package/cjs/{utils → framework/utils}/download-file.d.ts +0 -0
- /package/cjs/{utils → framework/utils}/download-file.js +0 -0
- /package/cjs/{utils → framework/utils}/formatDateString.d.ts +0 -0
- /package/cjs/{utils → framework/utils}/formatDateString.js +0 -0
- /package/cjs/{utils → framework/utils}/random-string.d.ts +0 -0
- /package/cjs/{utils → framework/utils}/random-string.js +0 -0
|
@@ -17,6 +17,7 @@ interface ISelectDialogOptions<T extends object, TMultiple> {
|
|
|
17
17
|
}
|
|
18
18
|
export declare function useSelectDialog<T extends {
|
|
19
19
|
id: number;
|
|
20
|
+
name: string | undefined;
|
|
20
21
|
}, TMultiple = false>(options: ISelectDialogOptions<T, TMultiple>): (onSelect?: (TMultiple extends true ? (item: T[]) => void : (item: T) => void) | undefined, title?: string) => void;
|
|
21
22
|
export type SelectDialogProps<T extends object, TMultiple> = {
|
|
22
23
|
title: string;
|
|
@@ -28,5 +29,6 @@ export type SelectDialogProps<T extends object, TMultiple> = {
|
|
|
28
29
|
} & ISelectDialogOptions<T, TMultiple>;
|
|
29
30
|
export declare function SelectDialog<T extends {
|
|
30
31
|
id: number;
|
|
32
|
+
name: string | undefined;
|
|
31
33
|
}, TMultiple = false>(props: SelectDialogProps<T, TMultiple>): JSX.Element;
|
|
32
34
|
export {};
|
|
@@ -80,13 +80,13 @@ function SelectDialog(props) {
|
|
|
80
80
|
onClose();
|
|
81
81
|
}, isAriaDisabled: view.selectedItems.length === 0 }, { children: confirm }), "confirm"),
|
|
82
82
|
(0, jsx_runtime_1.jsx)(react_core_1.Button, __assign({ variant: "link", onClick: onClose }, { children: cancel }), "cancel"),
|
|
83
|
-
], hasNoBodyWrapper: true }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.ModalBoxBody, __assign({ style: { overflow: 'hidden' } }, { children: (0, jsx_runtime_1.jsxs)(react_core_1.Split, __assign({ hasGutter: true }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.SplitItem, __assign({ style: { opacity: view.selectedItems.length === 0 ? 0 : undefined } }, { children: selected })), (0, jsx_runtime_1.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
], hasNoBodyWrapper: true }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.ModalBoxBody, __assign({ style: { overflow: 'hidden' } }, { children: (0, jsx_runtime_1.jsxs)(react_core_1.Split, __assign({ hasGutter: true }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.SplitItem, __assign({ style: { opacity: view.selectedItems.length === 0 ? 0 : undefined } }, { children: selected })), (0, jsx_runtime_1.jsx)(react_core_1.ChipGroup, { children: view.selectedItems.map(function (item, i) {
|
|
84
|
+
var _a;
|
|
85
|
+
if (tableColumns && tableColumns.length > 0) {
|
|
86
|
+
return ((0, jsx_runtime_1.jsx)(react_core_1.Chip, __assign({ onClick: function () { return view.unselectItem(item); } }, { children: (0, jsx_runtime_1.jsx)(PageTable_1.TableColumnCell, { item: item, column: (_a = tableColumns.find(function (column) { return column.card === 'name' || column.list === 'name'; })) !== null && _a !== void 0 ? _a : tableColumns[0] }) }), i));
|
|
87
|
+
}
|
|
88
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
89
|
+
}) })] })) })), (0, jsx_runtime_1.jsx)(Collapse_1.Collapse, __assign({ open: view.itemCount === undefined }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Skeleton, { height: "80px" }) })), (0, jsx_runtime_1.jsx)(Collapse_1.Collapse, __assign({ open: view.itemCount !== undefined }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ style: {
|
|
90
90
|
display: 'flex',
|
|
91
91
|
flexDirection: 'column',
|
|
92
92
|
maxHeight: 500,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface Label {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
organization: number;
|
|
5
|
+
type: string;
|
|
6
|
+
url: string;
|
|
7
|
+
created: string;
|
|
8
|
+
modified: string;
|
|
9
|
+
summary_fields: {
|
|
10
|
+
created_by: {
|
|
11
|
+
username: string;
|
|
12
|
+
first_name: string;
|
|
13
|
+
last_name: string;
|
|
14
|
+
id: number;
|
|
15
|
+
};
|
|
16
|
+
modified_by: {
|
|
17
|
+
username: string;
|
|
18
|
+
first_name: string;
|
|
19
|
+
last_name: string;
|
|
20
|
+
id: number;
|
|
21
|
+
};
|
|
22
|
+
organization: {
|
|
23
|
+
id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare function PageFormSwitch(props: {
|
|
3
|
-
id?: string;
|
|
4
|
-
label: string;
|
|
5
|
-
labelOn?: string;
|
|
6
|
-
labelOff?: string;
|
|
7
|
-
name: string;
|
|
8
|
-
helperText?: string;
|
|
9
|
-
required?: boolean;
|
|
10
|
-
autoFocus?: boolean;
|
|
11
|
-
}): JSX.Element;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.PageFormSwitch = void 0;
|
|
15
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var react_core_1 = require("@patternfly/react-core");
|
|
17
|
-
var react_hook_form_1 = require("react-hook-form");
|
|
18
|
-
function PageFormSwitch(props) {
|
|
19
|
-
var _a;
|
|
20
|
-
var isSubmitting = (0, react_hook_form_1.useFormContext)().formState.isSubmitting;
|
|
21
|
-
var _b = (0, react_hook_form_1.useController)({ name: props.name }), field = _b.field, fieldState = _b.fieldState;
|
|
22
|
-
var error = fieldState.error;
|
|
23
|
-
var id = (_a = props.id) !== null && _a !== void 0 ? _a : props.name;
|
|
24
|
-
return ((0, jsx_runtime_1.jsx)(react_core_1.FormGroup, __assign({ id: "".concat(id, "-form-group"), fieldId: id, label: props.label, helperText: props.helperText, isRequired: props.required, validated: (error === null || error === void 0 ? void 0 : error.message) ? 'error' : undefined, helperTextInvalid: error === null || error === void 0 ? void 0 : error.message }, { children: (0, jsx_runtime_1.jsx)(react_core_1.Switch, { id: id, label: props.labelOn, labelOff: props.labelOff, "aria-describedby": "".concat(id, "-form-group"),
|
|
25
|
-
// isRequired={props.required}
|
|
26
|
-
// validated={error?.message ? 'error' : undefined}
|
|
27
|
-
autoFocus: props.autoFocus,
|
|
28
|
-
// placeholder={props.placeholder}
|
|
29
|
-
// {...registration}
|
|
30
|
-
isChecked: typeof field.value === 'boolean' ? field.value : false, onChange: function (e) { return field.onChange(e); },
|
|
31
|
-
// innerRef={registration.ref}
|
|
32
|
-
isDisabled: isSubmitting }) })));
|
|
33
|
-
}
|
|
34
|
-
exports.PageFormSwitch = PageFormSwitch;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|