@comet/admin 8.17.1 → 9.0.0-beta.0
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/lib/ContentOverflow.js +42 -46
- package/lib/DeleteMutation.js +25 -31
- package/lib/EditDialog.js +33 -38
- package/lib/EditDialogApiContext.js +4 -11
- package/lib/FinalForm.d.ts +3 -3
- package/lib/FinalForm.d.ts.map +1 -1
- package/lib/FinalForm.js +44 -52
- package/lib/FinalFormSaveButton.js +11 -17
- package/lib/FinalFormSaveCancelButtonsLegacy.js +19 -25
- package/lib/FinalFormSaveSplitButton.js +22 -28
- package/lib/FormMutation.js +4 -10
- package/lib/Selected.js +17 -23
- package/lib/Selection.js +10 -17
- package/lib/SelectionApi.js +1 -5
- package/lib/SelectionRoute.js +19 -26
- package/lib/alert/Alert.js +26 -31
- package/lib/alert/__stories__/Alert.stories.js +25 -30
- package/lib/apollo/filterByFragment.js +12 -18
- package/lib/apollo/useFocusAwarePolling.js +4 -9
- package/lib/appHeader/AppHeader.js +12 -18
- package/lib/appHeader/button/AppHeaderButton.js +10 -16
- package/lib/appHeader/button/AppHeaderButton.styles.d.ts +1 -3
- package/lib/appHeader/button/AppHeaderButton.styles.d.ts.map +1 -1
- package/lib/appHeader/button/AppHeaderButton.styles.js +12 -18
- package/lib/appHeader/dropdown/AppHeaderDropdown.js +21 -27
- package/lib/appHeader/fillSpace/AppHeaderFillSpace.js +8 -14
- package/lib/appHeader/menuButton/AppHeaderMenuButton.js +15 -21
- package/lib/buildRestMutation.d.ts +3 -3
- package/lib/buildRestMutation.d.ts.map +1 -1
- package/lib/buildRestMutation.js +7 -15
- package/lib/clipboard/readClipboardText.js +4 -10
- package/lib/clipboard/writeClipboardText.js +3 -10
- package/lib/common/ClearInputAdornment.js +14 -20
- package/lib/common/CometLogo.js +9 -15
- package/lib/common/DeleteDialog.js +25 -29
- package/lib/common/Dialog.js +17 -21
- package/lib/common/FieldSet.js +34 -41
- package/lib/common/FillSpace.js +8 -14
- package/lib/common/FullHeightContent.js +12 -18
- package/lib/common/HoverActions.js +18 -24
- package/lib/common/Loading.js +15 -21
- package/lib/common/MainContent.js +17 -24
- package/lib/common/OpenPickerAdornment.js +10 -16
- package/lib/common/ReadOnlyAdornment.js +10 -16
- package/lib/common/Tooltip.d.ts +3 -3
- package/lib/common/Tooltip.d.ts.map +1 -1
- package/lib/common/Tooltip.js +27 -35
- package/lib/common/buttons/Button.js +19 -23
- package/lib/common/buttons/CopyToClipboardButton.js +27 -33
- package/lib/common/buttons/SaveButton.js +13 -19
- package/lib/common/buttons/cancel/CancelButton.js +13 -19
- package/lib/common/buttons/clearinput/ClearInputButton.js +15 -20
- package/lib/common/buttons/delete/DeleteButton.js +13 -19
- package/lib/common/buttons/delete/__stories__/DeleteButton.stories.js +4 -10
- package/lib/common/buttons/feedback/FeedbackButton.js +23 -29
- package/lib/common/buttons/helpDialogButton/HelpDialogButton.js +15 -21
- package/lib/common/buttons/helpDialogButton/HelpDialogButton.sc.d.ts +2 -4
- package/lib/common/buttons/helpDialogButton/HelpDialogButton.sc.d.ts.map +1 -1
- package/lib/common/buttons/helpDialogButton/HelpDialogButton.sc.js +6 -12
- package/lib/common/buttons/okay/OkayButton.js +13 -19
- package/lib/common/buttons/split/SplitButton.js +38 -40
- package/lib/common/buttons/split/SplitButtonContext.js +3 -7
- package/lib/common/buttons/split/useSplitButtonContext.js +4 -9
- package/lib/common/toolbar/DataGridToolbar.js +11 -17
- package/lib/common/toolbar/StackToolbar.js +6 -12
- package/lib/common/toolbar/Toolbar.js +28 -34
- package/lib/common/toolbar/ToolbarBreadcrumbs.js +64 -70
- package/lib/common/toolbar/actions/ToolbarActionButton.js +19 -24
- package/lib/common/toolbar/actions/ToolbarActions.js +8 -14
- package/lib/common/toolbar/automatictitleitem/ToolbarAutomaticTitleItem.js +12 -18
- package/lib/common/toolbar/backbutton/ToolbarBackButton.js +22 -28
- package/lib/common/toolbar/fillspace/ToolbarFillSpace.js +8 -14
- package/lib/common/toolbar/item/ToolbarItem.js +8 -14
- package/lib/common/toolbar/titleitem/ToolbarTitleItem.js +11 -17
- package/lib/dataGrid/CrudContextMenu.js +58 -64
- package/lib/dataGrid/CrudMoreActionsMenu.js +46 -54
- package/lib/dataGrid/CrudVisibility.js +26 -32
- package/lib/dataGrid/CrudVisibilityIcon.d.ts +1 -0
- package/lib/dataGrid/CrudVisibilityIcon.d.ts.map +1 -1
- package/lib/dataGrid/CrudVisibilityIcon.js +7 -13
- package/lib/dataGrid/DataGridPanel.js +83 -87
- package/lib/dataGrid/GridCellContent.js +21 -27
- package/lib/dataGrid/GridColDef.js +1 -5
- package/lib/dataGrid/GridColumnsButton.js +14 -20
- package/lib/dataGrid/GridFilterButton.js +16 -22
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagement.js +34 -39
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagement.sc.d.ts +3 -9
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagement.sc.d.ts.map +1 -1
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagement.sc.js +11 -17
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagementListItem.js +21 -27
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagementListItem.styles.d.ts +2 -6
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagementListItem.styles.d.ts.map +1 -1
- package/lib/dataGrid/columnsManagement/DataGridColumnsManagementListItem.styles.js +11 -17
- package/lib/dataGrid/excelExport/applyDefaultStyling.js +1 -7
- package/lib/dataGrid/excelExport/generateExcelFile.js +4 -11
- package/lib/dataGrid/excelExport/useDataGridExcelExport.js +14 -20
- package/lib/dataGrid/gridColumnTypes.js +30 -36
- package/lib/dataGrid/muiGridFilterToGql.js +1 -7
- package/lib/dataGrid/muiGridPagingToGql.js +1 -7
- package/lib/dataGrid/muiGridSortToGql.js +1 -7
- package/lib/dataGrid/pagination/DataGridPagination.js +21 -27
- package/lib/dataGrid/pagination/DataGridPagination.styles.d.ts +1 -3
- package/lib/dataGrid/pagination/DataGridPagination.styles.d.ts.map +1 -1
- package/lib/dataGrid/pagination/DataGridPagination.styles.js +5 -11
- package/lib/dataGrid/pagination/paginationActions/DataGridPaginationActions.js +21 -27
- package/lib/dataGrid/pagination/paginationActions/DataGridPaginationActions.styles.d.ts +1 -3
- package/lib/dataGrid/pagination/paginationActions/DataGridPaginationActions.styles.d.ts.map +1 -1
- package/lib/dataGrid/pagination/paginationActions/DataGridPaginationActions.styles.js +7 -13
- package/lib/dataGrid/renderStaticSelectCell.js +1 -7
- package/lib/dataGrid/useBufferedRowCount.js +4 -10
- package/lib/dataGrid/useDataGridRemote.js +3 -9
- package/lib/dataGrid/useDataGridUrlState.js +17 -24
- package/lib/dataGrid/usePersistentColumnState.d.ts +2 -2
- package/lib/dataGrid/usePersistentColumnState.d.ts.map +1 -1
- package/lib/dataGrid/usePersistentColumnState.js +20 -26
- package/lib/dateTime/datePicker/DatePicker.d.ts +8 -8
- package/lib/dateTime/datePicker/DatePicker.d.ts.map +1 -1
- package/lib/dateTime/datePicker/DatePicker.js +29 -35
- package/lib/dateTime/datePicker/__stories__/DatePicker.stories.js +37 -42
- package/lib/dateTime/datePickerField/DatePickerField.d.ts +3 -3
- package/lib/dateTime/datePickerField/DatePickerField.d.ts.map +1 -1
- package/lib/dateTime/datePickerField/DatePickerField.js +6 -12
- package/lib/dateTime/datePickerField/__stories__/DatePickerField.stories.js +27 -32
- package/lib/dateTime/dateRangePicker/DateRangePicker.d.ts +8 -8
- package/lib/dateTime/dateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/lib/dateTime/dateRangePicker/DateRangePicker.js +35 -43
- package/lib/dateTime/dateRangePicker/__stories__/DateRangePicker.stories.js +37 -42
- package/lib/dateTime/dateRangePickerField/DateRangePickerField.d.ts +2 -2
- package/lib/dateTime/dateRangePickerField/DateRangePickerField.d.ts.map +1 -1
- package/lib/dateTime/dateRangePickerField/DateRangePickerField.js +6 -12
- package/lib/dateTime/dateRangePickerField/__stories__/DateRangePickerField.stories.js +27 -32
- package/lib/dateTime/dateTimePicker/DateTimePicker.d.ts +8 -8
- package/lib/dateTime/dateTimePicker/DateTimePicker.d.ts.map +1 -1
- package/lib/dateTime/dateTimePicker/DateTimePicker.js +27 -33
- package/lib/dateTime/dateTimePicker/__stories__/DateTimePicker.stories.js +37 -42
- package/lib/dateTime/dateTimePickerField/DateTimePickerField.d.ts +2 -2
- package/lib/dateTime/dateTimePickerField/DateTimePickerField.d.ts.map +1 -1
- package/lib/dateTime/dateTimePickerField/DateTimePickerField.js +6 -12
- package/lib/dateTime/dateTimePickerField/__stories__/DateTimePickerField.stories.js +27 -32
- package/lib/dateTime/dateTimeRangePicker/DateTimeRangePicker.js +32 -40
- package/lib/dateTime/dateTimeRangePicker/__stories__/DateTimeRangePicker.stories.js +37 -42
- package/lib/dateTime/dateTimeRangePickerField/DateTimeRangePickerField.js +6 -12
- package/lib/dateTime/dateTimeRangePickerField/__stories__/DateTimeRangePickerField.stories.js +27 -32
- package/lib/dateTime/timePicker/TimePicker.d.ts +8 -8
- package/lib/dateTime/timePicker/TimePicker.d.ts.map +1 -1
- package/lib/dateTime/timePicker/TimePicker.js +28 -34
- package/lib/dateTime/timePicker/__stories__/TimePicker.stories.js +37 -42
- package/lib/dateTime/timePickerField/TimePickerField.d.ts +2 -2
- package/lib/dateTime/timePickerField/TimePickerField.d.ts.map +1 -1
- package/lib/dateTime/timePickerField/TimePickerField.js +6 -12
- package/lib/dateTime/timePickerField/__stories__/TimePickerField.stories.js +27 -32
- package/lib/dateTime/utils.js +5 -11
- package/lib/error/errorboundary/ErrorBoundary.js +39 -44
- package/lib/error/errorboundary/RouteWithErrorBoundary.js +8 -13
- package/lib/error/errordialog/ErrorDialog.d.ts.map +1 -1
- package/lib/error/errordialog/ErrorDialog.js +77 -83
- package/lib/error/errordialog/ErrorDialogHandler.js +11 -17
- package/lib/error/errordialog/ErrorScope.js +3 -9
- package/lib/error/errordialog/createErrorDialogApolloLink.js +11 -17
- package/lib/error/errordialog/errorDialogVar.js +2 -8
- package/lib/error/errordialog/useErrorDialog.js +5 -11
- package/lib/fetchProvider/fetch.js +6 -14
- package/lib/fileIcons/Excel.js +5 -12
- package/lib/fileIcons/File.js +5 -12
- package/lib/fileIcons/FileIcon.js +29 -35
- package/lib/fileIcons/Jpg.js +5 -12
- package/lib/fileIcons/Pdf.js +5 -12
- package/lib/fileIcons/Png.js +5 -12
- package/lib/fileIcons/Powerpoint.js +5 -12
- package/lib/fileIcons/Word.js +5 -12
- package/lib/fileIcons/Zip.js +5 -12
- package/lib/form/Autocomplete.d.ts +4 -2
- package/lib/form/Autocomplete.d.ts.map +1 -1
- package/lib/form/Autocomplete.js +25 -27
- package/lib/form/Checkbox.js +4 -11
- package/lib/form/Field.js +17 -23
- package/lib/form/FieldContainer.js +41 -47
- package/lib/form/FinalFormAsyncAutocomplete.js +5 -11
- package/lib/form/FinalFormAsyncSelect.js +5 -11
- package/lib/form/FinalFormContextProvider.js +7 -14
- package/lib/form/FinalFormDebug.js +16 -20
- package/lib/form/FinalFormFileSelect.js +14 -20
- package/lib/form/FinalFormInput.d.ts +1 -2
- package/lib/form/FinalFormInput.d.ts.map +1 -1
- package/lib/form/FinalFormInput.js +30 -30
- package/lib/form/FinalFormNumberInput.d.ts +1 -2
- package/lib/form/FinalFormNumberInput.d.ts.map +1 -1
- package/lib/form/FinalFormNumberInput.js +22 -22
- package/lib/form/FinalFormRangeInput.js +32 -38
- package/lib/form/FinalFormSearchTextField.d.ts +0 -1
- package/lib/form/FinalFormSearchTextField.d.ts.map +1 -1
- package/lib/form/FinalFormSearchTextField.js +13 -31
- package/lib/form/FinalFormSelect.js +25 -31
- package/lib/form/FinalFormSelect.sc.d.ts +1 -3
- package/lib/form/FinalFormSelect.sc.d.ts.map +1 -1
- package/lib/form/FinalFormSelect.sc.js +5 -11
- package/lib/form/FinalFormToggleButtonGroup.js +12 -18
- package/lib/form/FormSection.d.ts +1 -1
- package/lib/form/FormSection.js +18 -24
- package/lib/form/Radio.js +4 -11
- package/lib/form/Switch.js +4 -11
- package/lib/form/fields/AsyncAutocompleteField.js +6 -12
- package/lib/form/fields/AsyncSelectField.js +6 -12
- package/lib/form/fields/AutocompleteField.js +6 -12
- package/lib/form/fields/CheckboxField.js +8 -14
- package/lib/form/fields/CheckboxListField.js +8 -14
- package/lib/form/fields/NumberField.js +6 -12
- package/lib/form/fields/RadioGroupField.js +9 -16
- package/lib/form/fields/SearchField.js +6 -12
- package/lib/form/fields/SelectField.js +11 -15
- package/lib/form/fields/SwitchField.js +8 -14
- package/lib/form/fields/TextAreaField.js +6 -12
- package/lib/form/fields/TextField.js +6 -12
- package/lib/form/fields/ToggleButtonGroupField.js +6 -12
- package/lib/form/file/FileDropzone.js +35 -41
- package/lib/form/file/FileSelect.d.ts +2 -3
- package/lib/form/file/FileSelect.d.ts.map +1 -1
- package/lib/form/file/FileSelect.js +38 -52
- package/lib/form/file/FileSelectListItem.js +59 -65
- package/lib/form/file/commonErrorMessages.js +6 -12
- package/lib/form/file/fileSelectItemTypes.js +1 -5
- package/lib/form/helpers/OnChangeField.js +7 -13
- package/lib/form/useAsyncAutocompleteOptionsProps.js +10 -16
- package/lib/fullPageAlert/FullPageAlert.js +26 -32
- package/lib/fullPageAlert/FullPageAlert.styles.d.ts +3 -9
- package/lib/fullPageAlert/FullPageAlert.styles.d.ts.map +1 -1
- package/lib/fullPageAlert/FullPageAlert.styles.js +19 -25
- package/lib/fullPageAlert/FullPageAlertBackground.js +44 -50
- package/lib/helpers/PrettyBytes.js +4 -10
- package/lib/helpers/ThemedComponentBaseProps.js +1 -5
- package/lib/helpers/createComponentSlot.d.ts +1 -1
- package/lib/helpers/createComponentSlot.d.ts.map +1 -1
- package/lib/helpers/createComponentSlot.js +11 -15
- package/lib/helpers/useTopOffset.d.ts +1 -1
- package/lib/helpers/useTopOffset.d.ts.map +1 -1
- package/lib/helpers/useTopOffset.js +4 -10
- package/lib/helpers/useWindowSize.js +4 -10
- package/lib/hooks/useAsyncOptionsProps.js +6 -12
- package/lib/hooks/useElementIsOverflowing.d.ts +1 -1
- package/lib/hooks/useElementIsOverflowing.d.ts.map +1 -1
- package/lib/hooks/useElementIsOverflowing.js +4 -10
- package/lib/hooks/useStoredState.js +9 -12
- package/lib/index.d.ts +8 -8
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +225 -1860
- package/lib/inlineAlert/InlineAlert.js +19 -25
- package/lib/inlineAlert/InlineAlert.sc.d.ts +2 -6
- package/lib/inlineAlert/InlineAlert.sc.d.ts.map +1 -1
- package/lib/inlineAlert/InlineAlert.sc.js +13 -19
- package/lib/inputWithPopper/InputWithPopper.d.ts +1 -1
- package/lib/inputWithPopper/InputWithPopper.d.ts.map +1 -1
- package/lib/inputWithPopper/InputWithPopper.js +19 -25
- package/lib/inputWithPopper/InputWithPopper.slots.d.ts +2 -4
- package/lib/inputWithPopper/InputWithPopper.slots.d.ts.map +1 -1
- package/lib/inputWithPopper/InputWithPopper.slots.js +9 -15
- package/lib/messages.js +2 -8
- package/lib/mui/MasterLayout.js +34 -40
- package/lib/mui/MasterLayoutContext.js +2 -8
- package/lib/mui/ThemeProvider.js +7 -13
- package/lib/mui/mainNavigation/CollapsibleItem.js +32 -38
- package/lib/mui/mainNavigation/CollapsibleItem.styles.d.ts +1 -3
- package/lib/mui/mainNavigation/CollapsibleItem.styles.d.ts.map +1 -1
- package/lib/mui/mainNavigation/CollapsibleItem.styles.js +12 -18
- package/lib/mui/mainNavigation/Context.js +8 -14
- package/lib/mui/mainNavigation/Item.d.ts.map +1 -1
- package/lib/mui/mainNavigation/Item.js +14 -21
- package/lib/mui/mainNavigation/Item.styles.d.ts +1 -3
- package/lib/mui/mainNavigation/Item.styles.d.ts.map +1 -1
- package/lib/mui/mainNavigation/Item.styles.js +7 -13
- package/lib/mui/mainNavigation/ItemAnchorLink.js +6 -12
- package/lib/mui/mainNavigation/ItemGroup.js +27 -33
- package/lib/mui/mainNavigation/ItemRouterLink.js +9 -15
- package/lib/mui/mainNavigation/MainNavigation.js +25 -31
- package/lib/mui/mainNavigation/MainNavigation.styles.js +13 -19
- package/lib/mui/mui-private-theming.d.js +0 -1
- package/lib/renderFinalFormChildren.js +3 -9
- package/lib/router/BrowserRouter.js +12 -16
- package/lib/router/ConfirmationDialog.js +42 -47
- package/lib/router/Context.d.ts +2 -2
- package/lib/router/Context.d.ts.map +1 -1
- package/lib/router/Context.js +2 -8
- package/lib/router/ForcePromptRoute.js +12 -19
- package/lib/router/MemoryRouter.js +12 -16
- package/lib/router/Prompt.js +18 -25
- package/lib/router/PromptHandler.d.ts +2 -2
- package/lib/router/PromptHandler.d.ts.map +1 -1
- package/lib/router/PromptHandler.js +17 -23
- package/lib/router/SubRoute.js +15 -23
- package/lib/rowActions/RowActionsIconItem.d.ts +2 -1
- package/lib/rowActions/RowActionsIconItem.d.ts.map +1 -1
- package/lib/rowActions/RowActionsIconItem.js +8 -14
- package/lib/rowActions/RowActionsItem.js +9 -15
- package/lib/rowActions/RowActionsListItem.js +10 -16
- package/lib/rowActions/RowActionsMenu.js +9 -15
- package/lib/rowActions/RowActionsSubMenu.js +17 -23
- package/lib/saveBoundary/SaveBoundary.js +32 -41
- package/lib/saveBoundary/SaveBoundarySaveButton.js +7 -13
- package/lib/section/SectionHeadline.d.ts +1 -1
- package/lib/section/SectionHeadline.js +30 -36
- package/lib/snackbar/SnackbarProvider.js +13 -19
- package/lib/snackbar/UndoSnackbar.js +12 -18
- package/lib/stack/Api.d.ts +1 -1
- package/lib/stack/Api.d.ts.map +1 -1
- package/lib/stack/Api.js +8 -16
- package/lib/stack/Breadcrumb.js +11 -17
- package/lib/stack/Page.js +3 -9
- package/lib/stack/Stack.js +22 -28
- package/lib/stack/StackLink.js +7 -13
- package/lib/stack/StackPageTitle.js +7 -14
- package/lib/stack/Switch.js +40 -49
- package/lib/stack/SwitchMeta.js +9 -15
- package/lib/stack/backbutton/StackBackButton.js +15 -21
- package/lib/stack/breadcrumbs/BreadcrumbLink.js +5 -11
- package/lib/stack/breadcrumbs/BreadcrumbsEntry.js +23 -29
- package/lib/stack/breadcrumbs/BreadcrumbsOverflow.js +20 -26
- package/lib/stack/breadcrumbs/StackBreadcrumbs.js +35 -42
- package/lib/stack/breadcrumbs/utils.js +11 -17
- package/lib/stack/useIsActiveStackSwitch.js +5 -11
- package/lib/table/AddButton.js +11 -17
- package/lib/table/DeleteButton.js +19 -25
- package/lib/table/ExcelExportButton.js +11 -17
- package/lib/table/LocalChangesToolbar.js +11 -17
- package/lib/table/Pagination.js +22 -29
- package/lib/table/Table.d.ts.map +1 -1
- package/lib/table/Table.js +51 -54
- package/lib/table/TableBodyRow.js +12 -17
- package/lib/table/TableDndOrder.js +32 -39
- package/lib/table/TableFilterFinalForm.js +23 -29
- package/lib/table/TableLocalChanges.js +11 -15
- package/lib/table/TableQuery.js +27 -33
- package/lib/table/TableQueryContext.js +2 -7
- package/lib/table/excelexport/IExportApi.js +1 -5
- package/lib/table/excelexport/applyDefaultStyling.js +1 -7
- package/lib/table/excelexport/createExcelExportDownload.js +15 -19
- package/lib/table/excelexport/useExportDisplayedTableData.js +5 -11
- package/lib/table/excelexport/useExportPagedTableQuery.js +8 -14
- package/lib/table/excelexport/useExportTableQuery.js +7 -13
- package/lib/table/filterbar/FilterBar.js +15 -20
- package/lib/table/filterbar/dirtyFieldsCount.js +3 -8
- package/lib/table/filterbar/filterBarActiveFilterBadge/FilterBarActiveFilterBadge.js +14 -19
- package/lib/table/filterbar/filterBarButton/FilterBarButton.js +24 -28
- package/lib/table/filterbar/filterBarMoreFilters/FilterBarMoreFilters.js +23 -28
- package/lib/table/filterbar/filterBarPopoverFilter/FilterBarPopoverFilter.js +44 -48
- package/lib/table/isVisible.js +1 -7
- package/lib/table/paging/IPagingInfo.d.ts +1 -1
- package/lib/table/paging/IPagingInfo.d.ts.map +1 -1
- package/lib/table/paging/IPagingInfo.js +1 -5
- package/lib/table/paging/createOffsetLimitPagingAction.js +1 -7
- package/lib/table/paging/createPagePagingActions.js +1 -7
- package/lib/table/paging/createRelayPagingActions.js +1 -7
- package/lib/table/paging/createRestPagingActions.js +3 -10
- package/lib/table/paging/createRestStartLimitPagingActions.js +1 -7
- package/lib/table/safeColumnGet.js +3 -8
- package/lib/table/usePersistedState.js +4 -10
- package/lib/table/usePersistedStateId.js +5 -11
- package/lib/table/useTableQuery.js +8 -13
- package/lib/table/useTableQueryFilter.js +13 -19
- package/lib/table/useTableQueryPaging.d.ts +1 -1
- package/lib/table/useTableQueryPaging.d.ts.map +1 -1
- package/lib/table/useTableQueryPaging.js +5 -10
- package/lib/table/useTableQuerySort.js +7 -11
- package/lib/table/withTableQueryContext.js +11 -13
- package/lib/tabs/RouterTabs.js +37 -44
- package/lib/tabs/TabScrollButton.js +14 -21
- package/lib/tabs/Tabs.js +27 -35
- package/lib/theme/breakpointsOptions.js +2 -8
- package/lib/theme/colors.js +7 -13
- package/lib/theme/componentsTheme/MuiAccordion.js +3 -9
- package/lib/theme/componentsTheme/MuiAlert.js +9 -15
- package/lib/theme/componentsTheme/MuiAlertTitle.js +3 -9
- package/lib/theme/componentsTheme/MuiAppBar.js +1 -7
- package/lib/theme/componentsTheme/MuiAutocomplete.js +8 -14
- package/lib/theme/componentsTheme/MuiBadge.js +3 -9
- package/lib/theme/componentsTheme/MuiButton.js +14 -20
- package/lib/theme/componentsTheme/MuiButtonGroup.js +8 -14
- package/lib/theme/componentsTheme/MuiCard.js +5 -11
- package/lib/theme/componentsTheme/MuiCardContent.js +3 -9
- package/lib/theme/componentsTheme/MuiCardHeader.js +3 -9
- package/lib/theme/componentsTheme/MuiCheckbox.js +16 -22
- package/lib/theme/componentsTheme/MuiChip.js +6 -12
- package/lib/theme/componentsTheme/MuiDataGrid.js +48 -54
- package/lib/theme/componentsTheme/MuiDialog.js +3 -9
- package/lib/theme/componentsTheme/MuiDialogActions.js +3 -9
- package/lib/theme/componentsTheme/MuiDialogContent.js +6 -12
- package/lib/theme/componentsTheme/MuiDialogContentText.js +3 -9
- package/lib/theme/componentsTheme/MuiDialogTitle.js +3 -9
- package/lib/theme/componentsTheme/MuiDrawer.js +3 -9
- package/lib/theme/componentsTheme/MuiFormControlLabel.js +3 -9
- package/lib/theme/componentsTheme/MuiFormHelperText.js +3 -9
- package/lib/theme/componentsTheme/MuiFormLabel.js +3 -9
- package/lib/theme/componentsTheme/MuiIconButton.js +3 -9
- package/lib/theme/componentsTheme/MuiInput.js +1 -7
- package/lib/theme/componentsTheme/MuiInputAdornment.js +3 -9
- package/lib/theme/componentsTheme/MuiInputBase.js +7 -13
- package/lib/theme/componentsTheme/MuiLinearProgress.js +3 -9
- package/lib/theme/componentsTheme/MuiLink.js +3 -9
- package/lib/theme/componentsTheme/MuiList.js +5 -11
- package/lib/theme/componentsTheme/MuiListItem.js +5 -11
- package/lib/theme/componentsTheme/MuiListItemAvatar.js +3 -9
- package/lib/theme/componentsTheme/MuiListItemButton.js +5 -11
- package/lib/theme/componentsTheme/MuiListItemIcon.js +3 -9
- package/lib/theme/componentsTheme/MuiListItemText.js +3 -9
- package/lib/theme/componentsTheme/MuiMenu.js +3 -9
- package/lib/theme/componentsTheme/MuiMenuItem.js +8 -14
- package/lib/theme/componentsTheme/MuiNativeSelect.js +8 -14
- package/lib/theme/componentsTheme/MuiPaper.js +3 -9
- package/lib/theme/componentsTheme/MuiPickersInputBase.js +17 -23
- package/lib/theme/componentsTheme/MuiPickersPopper.js +3 -9
- package/lib/theme/componentsTheme/MuiPickersTextField.js +1 -7
- package/lib/theme/componentsTheme/MuiPopover.js +1 -7
- package/lib/theme/componentsTheme/MuiRadio.js +13 -19
- package/lib/theme/componentsTheme/MuiSelect.js +10 -16
- package/lib/theme/componentsTheme/MuiSvgIcon.js +3 -9
- package/lib/theme/componentsTheme/MuiSwitch.js +14 -20
- package/lib/theme/componentsTheme/MuiTab.js +5 -11
- package/lib/theme/componentsTheme/MuiTableCell.js +5 -11
- package/lib/theme/componentsTheme/MuiTableFooter.js +3 -9
- package/lib/theme/componentsTheme/MuiTablePagination.js +5 -11
- package/lib/theme/componentsTheme/MuiTableRow.js +3 -9
- package/lib/theme/componentsTheme/MuiTabs.js +3 -9
- package/lib/theme/componentsTheme/MuiToggleButton.js +5 -11
- package/lib/theme/componentsTheme/MuiToggleButtonGroup.js +3 -9
- package/lib/theme/componentsTheme/MuiTooltip.js +1 -7
- package/lib/theme/componentsTheme/MuiTypography.js +3 -9
- package/lib/theme/componentsTheme/commonListStyles.js +1 -7
- package/lib/theme/componentsTheme/getCommonSelectTheme.js +8 -14
- package/lib/theme/componentsTheme/getComponentsTheme.js +115 -121
- package/lib/theme/createCometTheme.js +20 -26
- package/lib/theme/paletteOptions.js +16 -22
- package/lib/theme/shadows.js +1 -7
- package/lib/theme/typographyOptions.js +1 -7
- package/lib/theme/utils/mergeOverrideStyles.js +4 -9
- package/lib/translator/BaseTranslationDialog.d.ts +1 -0
- package/lib/translator/BaseTranslationDialog.d.ts.map +1 -1
- package/lib/translator/BaseTranslationDialog.js +28 -32
- package/lib/translator/ContentTranslationServiceContext.js +2 -8
- package/lib/translator/ContentTranslationServiceProvider.js +4 -10
- package/lib/translator/PlainTextTranslationDialog.js +7 -13
- package/lib/translator/useContentTranslationService.js +4 -10
- package/lib/utils/test-utils.js +16 -33
- package/lib/utils/useObservedWidth.d.ts +1 -1
- package/lib/utils/useObservedWidth.d.ts.map +1 -1
- package/lib/utils/useObservedWidth.js +7 -14
- package/lib/vendor.d.js +0 -1
- package/package.json +18 -14
- package/lib/form/file/getFilesInfoText.d.ts +0 -3
- package/lib/form/file/getFilesInfoText.d.ts.map +0 -1
- package/lib/form/file/getFilesInfoText.js +0 -55
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FinalFormSelect = void 0;
|
|
7
|
-
var _adminIcons = require("@comet/admin-icons");
|
|
8
|
-
var _material = require("@mui/material");
|
|
9
|
-
var _reactIntl = require("react-intl");
|
|
10
|
-
var _ClearInputAdornment = require("../common/ClearInputAdornment");
|
|
11
|
-
var _FinalFormSelect = require("./FinalFormSelect.sc");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
1
|
var _excluded = ["checked", "value", "name", "onChange", "onFocus", "onBlur"],
|
|
14
2
|
_excluded2 = ["input", "meta", "isAsync", "options", "loading", "loadingError", "getOptionLabel", "getOptionValue", "noOptionsText", "errorText", "disabled", "children", "required"];
|
|
15
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -20,6 +8,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
20
8
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
21
9
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
22
10
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
|
+
import { Error } from "@comet/admin-icons";
|
|
12
|
+
import { InputAdornment, LinearProgress, MenuItem, Select, Typography } from "@mui/material";
|
|
13
|
+
import { FormattedMessage } from "react-intl";
|
|
14
|
+
import { ClearInputAdornment } from "../common/ClearInputAdornment";
|
|
15
|
+
import { LinearLoadingContainer, MenuItemDisabledOverrideOpacity } from "./FinalFormSelect.sc";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
17
|
var getHasClearableContent = function getHasClearableContent(value, multiple, disabled) {
|
|
24
18
|
if (disabled) {
|
|
25
19
|
return false;
|
|
@@ -35,7 +29,7 @@ var getHasClearableContent = function getHasClearableContent(value, multiple, di
|
|
|
35
29
|
*
|
|
36
30
|
* @see {@link SelectField} – preferred for typical form use. Use this only if no Field wrapper is needed.
|
|
37
31
|
*/
|
|
38
|
-
var FinalFormSelect =
|
|
32
|
+
export var FinalFormSelect = function FinalFormSelect(_ref) {
|
|
39
33
|
var _restInput$multiple;
|
|
40
34
|
var _ref$input = _ref.input,
|
|
41
35
|
checked = _ref$input.checked,
|
|
@@ -71,17 +65,17 @@ var FinalFormSelect = exports.FinalFormSelect = function FinalFormSelect(_ref) {
|
|
|
71
65
|
}
|
|
72
66
|
} : _ref$getOptionValue,
|
|
73
67
|
_ref$noOptionsText = _ref.noOptionsText,
|
|
74
|
-
noOptionsText = _ref$noOptionsText === void 0 ? /*#__PURE__*/(
|
|
68
|
+
noOptionsText = _ref$noOptionsText === void 0 ? /*#__PURE__*/_jsx(Typography, {
|
|
75
69
|
variant: "body2",
|
|
76
|
-
children: /*#__PURE__*/(
|
|
70
|
+
children: /*#__PURE__*/_jsx(FormattedMessage, {
|
|
77
71
|
id: "finalFormSelect.noOptions",
|
|
78
72
|
defaultMessage: "No options."
|
|
79
73
|
})
|
|
80
74
|
}) : _ref$noOptionsText,
|
|
81
75
|
_ref$errorText = _ref.errorText,
|
|
82
|
-
errorText = _ref$errorText === void 0 ? /*#__PURE__*/(
|
|
76
|
+
errorText = _ref$errorText === void 0 ? /*#__PURE__*/_jsx(Typography, {
|
|
83
77
|
variant: "body2",
|
|
84
|
-
children: /*#__PURE__*/(
|
|
78
|
+
children: /*#__PURE__*/_jsx(FormattedMessage, {
|
|
85
79
|
id: "finalFormSelect.error",
|
|
86
80
|
defaultMessage: "Error loading options."
|
|
87
81
|
})
|
|
@@ -95,7 +89,7 @@ var FinalFormSelect = exports.FinalFormSelect = function FinalFormSelect(_ref) {
|
|
|
95
89
|
// 2. <Field>{(props) => <FinalFormSelect {...props} multiple />}</Field> -> multiple is in rest
|
|
96
90
|
var multiple = (_restInput$multiple = restInput.multiple) !== null && _restInput$multiple !== void 0 ? _restInput$multiple : rest.multiple;
|
|
97
91
|
var value = multiple ? Array.isArray(incomingValue) ? incomingValue : [] : incomingValue;
|
|
98
|
-
var endAdornment = !required ? /*#__PURE__*/(
|
|
92
|
+
var endAdornment = !required ? /*#__PURE__*/_jsx(ClearInputAdornment, {
|
|
99
93
|
position: "end",
|
|
100
94
|
hasClearableContent: getHasClearableContent(value, multiple, disabled),
|
|
101
95
|
onClick: function onClick() {
|
|
@@ -113,7 +107,7 @@ var FinalFormSelect = exports.FinalFormSelect = function FinalFormSelect(_ref) {
|
|
|
113
107
|
required: required
|
|
114
108
|
});
|
|
115
109
|
if (children) {
|
|
116
|
-
return /*#__PURE__*/(
|
|
110
|
+
return /*#__PURE__*/_jsx(Select, _objectSpread(_objectSpread({}, selectProps), {}, {
|
|
117
111
|
value: value,
|
|
118
112
|
children: children
|
|
119
113
|
}));
|
|
@@ -123,10 +117,10 @@ var FinalFormSelect = exports.FinalFormSelect = function FinalFormSelect(_ref) {
|
|
|
123
117
|
var showOptions = options.length > 0 && loadingError == null;
|
|
124
118
|
var showError = loadingError != null && !loading;
|
|
125
119
|
var showNoOptions = loading === false && loadingError == null && options.length === 0;
|
|
126
|
-
return /*#__PURE__*/(
|
|
127
|
-
endAdornment: /*#__PURE__*/(
|
|
120
|
+
return /*#__PURE__*/_jsxs(Select, _objectSpread(_objectSpread({}, selectProps), {}, {
|
|
121
|
+
endAdornment: /*#__PURE__*/_jsxs(InputAdornment, {
|
|
128
122
|
position: "end",
|
|
129
|
-
children: [loadingError && /*#__PURE__*/(
|
|
123
|
+
children: [loadingError && /*#__PURE__*/_jsx(Error, {
|
|
130
124
|
color: "error"
|
|
131
125
|
}), endAdornment]
|
|
132
126
|
}),
|
|
@@ -152,39 +146,39 @@ var FinalFormSelect = exports.FinalFormSelect = function FinalFormSelect(_ref) {
|
|
|
152
146
|
return getOptionLabel(value);
|
|
153
147
|
}
|
|
154
148
|
},
|
|
155
|
-
children: [/*#__PURE__*/(
|
|
156
|
-
children: showLinearProgress && /*#__PURE__*/(
|
|
157
|
-
}), showLoadingMessage && /*#__PURE__*/(
|
|
149
|
+
children: [/*#__PURE__*/_jsx(LinearLoadingContainer, {
|
|
150
|
+
children: showLinearProgress && /*#__PURE__*/_jsx(LinearProgress, {})
|
|
151
|
+
}), showLoadingMessage && /*#__PURE__*/_jsx(MenuItemDisabledOverrideOpacity, {
|
|
158
152
|
value: "",
|
|
159
153
|
disabled: true,
|
|
160
|
-
children: /*#__PURE__*/(
|
|
154
|
+
children: /*#__PURE__*/_jsx(FormattedMessage, {
|
|
161
155
|
id: "common.loading",
|
|
162
156
|
defaultMessage: "Loading ..."
|
|
163
157
|
})
|
|
164
158
|
}), options.length === 0 && value && (Array.isArray(value) ? value.map(function (v) {
|
|
165
|
-
return /*#__PURE__*/(
|
|
159
|
+
return /*#__PURE__*/_jsx(MenuItem, {
|
|
166
160
|
value: getOptionValue(v),
|
|
167
161
|
sx: {
|
|
168
162
|
display: "none"
|
|
169
163
|
},
|
|
170
164
|
children: getOptionLabel(v)
|
|
171
165
|
}, getOptionValue(v));
|
|
172
|
-
}) : /*#__PURE__*/(
|
|
166
|
+
}) : /*#__PURE__*/_jsx(MenuItem, {
|
|
173
167
|
value: getOptionValue(value),
|
|
174
168
|
sx: {
|
|
175
169
|
display: "none"
|
|
176
170
|
},
|
|
177
171
|
children: getOptionLabel(value)
|
|
178
|
-
}, getOptionValue(value))), showNoOptions && /*#__PURE__*/(
|
|
172
|
+
}, getOptionValue(value))), showNoOptions && /*#__PURE__*/_jsx(MenuItemDisabledOverrideOpacity, {
|
|
179
173
|
value: "",
|
|
180
174
|
disabled: true,
|
|
181
175
|
children: noOptionsText
|
|
182
|
-
}), showError && /*#__PURE__*/(
|
|
176
|
+
}), showError && /*#__PURE__*/_jsx(MenuItemDisabledOverrideOpacity, {
|
|
183
177
|
value: "",
|
|
184
178
|
disabled: true,
|
|
185
179
|
children: errorText
|
|
186
180
|
}), showOptions && options.map(function (option) {
|
|
187
|
-
return /*#__PURE__*/(
|
|
181
|
+
return /*#__PURE__*/_jsx(MenuItem, {
|
|
188
182
|
value: getOptionValue(option),
|
|
189
183
|
children: getOptionLabel(option)
|
|
190
184
|
}, getOptionValue(option));
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export declare const MenuItemDisabledOverrideOpacity: import("@emotion/styled").StyledComponent<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<
|
|
2
|
-
ref?: ((instance: HTMLLIElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLLIElement> | null | undefined;
|
|
3
|
-
}, "style" | "className" | "tabIndex" | "children" | "autoFocus" | "disabled" | "action" | "selected" | "dense" | "sx" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
1
|
+
export declare const MenuItemDisabledOverrideOpacity: import("@emotion/styled").StyledComponent<import("@mui/material").MenuItemOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "style" | "className" | "tabIndex" | "children" | "autoFocus" | "disabled" | "action" | "selected" | "dense" | "sx" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableGutters" | "divider"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
2
|
export declare const LinearLoadingContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
3
|
//# sourceMappingURL=FinalFormSelect.sc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FinalFormSelect.sc.d.ts","sourceRoot":"","sources":["../../src/form/FinalFormSelect.sc.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"FinalFormSelect.sc.d.ts","sourceRoot":"","sources":["../../src/form/FinalFormSelect.sc.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,+BAA+B,6tBAI1C,CAAC;AAEH,eAAO,MAAM,sBAAsB,6NAEjC,CAAC"}
|
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.MenuItemDisabledOverrideOpacity = exports.LinearLoadingContainer = void 0;
|
|
8
|
-
var _material = require("@mui/material");
|
|
9
|
-
var _styles = require("@mui/material/styles");
|
|
10
2
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
4
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
5
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
14
|
-
|
|
6
|
+
import { MenuItem, menuItemClasses } from "@mui/material";
|
|
7
|
+
import { styled } from "@mui/material/styles";
|
|
8
|
+
export var MenuItemDisabledOverrideOpacity = /*#__PURE__*/styled(MenuItem, process.env.NODE_ENV === "production" ? {
|
|
15
9
|
target: "e1qtzls41"
|
|
16
10
|
} : {
|
|
17
11
|
target: "e1qtzls41",
|
|
18
12
|
label: "MenuItemDisabledOverrideOpacity"
|
|
19
|
-
})(_defineProperty({}, "&.".concat(
|
|
13
|
+
})(_defineProperty({}, "&.".concat(menuItemClasses.disabled), {
|
|
20
14
|
opacity: 1.0
|
|
21
15
|
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9mb3JtL0ZpbmFsRm9ybVNlbGVjdC5zYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHK0MiLCJmaWxlIjoiLi4vLi4vc3JjL2Zvcm0vRmluYWxGb3JtU2VsZWN0LnNjLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTWVudUl0ZW0sIG1lbnVJdGVtQ2xhc3NlcyB9IGZyb20gXCJAbXVpL21hdGVyaWFsXCI7XG5pbXBvcnQgeyBzdHlsZWQgfSBmcm9tIFwiQG11aS9tYXRlcmlhbC9zdHlsZXNcIjtcblxuZXhwb3J0IGNvbnN0IE1lbnVJdGVtRGlzYWJsZWRPdmVycmlkZU9wYWNpdHkgPSBzdHlsZWQoTWVudUl0ZW0pKHtcbiAgICBbYCYuJHttZW51SXRlbUNsYXNzZXMuZGlzYWJsZWR9YF06IHtcbiAgICAgICAgb3BhY2l0eTogMS4wLFxuICAgIH0sXG59KTtcblxuZXhwb3J0IGNvbnN0IExpbmVhckxvYWRpbmdDb250YWluZXIgPSBzdHlsZWQoXCJkaXZcIikoe1xuICAgIG1pbkhlaWdodDogXCIycHhcIixcbn0pO1xuIl19 */");
|
|
22
|
-
var LinearLoadingContainer =
|
|
16
|
+
export var LinearLoadingContainer = /*#__PURE__*/styled("div", process.env.NODE_ENV === "production" ? {
|
|
23
17
|
target: "e1qtzls40"
|
|
24
18
|
} : {
|
|
25
19
|
target: "e1qtzls40",
|
|
@@ -1,38 +1,32 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.FinalFormToggleButtonGroup = FinalFormToggleButtonGroup;
|
|
7
|
-
var _material = require("@mui/material");
|
|
8
|
-
var _styles = require("@mui/material/styles");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
1
|
var _templateObject, _templateObject2;
|
|
11
2
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
12
3
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
4
|
+
import { ButtonBase, Typography } from "@mui/material";
|
|
5
|
+
import { css, styled } from "@mui/material/styles";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
7
|
/**
|
|
14
8
|
* Final Form-compatible ToggleButtonGroup component.
|
|
15
9
|
*
|
|
16
10
|
* @see {@link ToggleButtonGroupField} – preferred for typical form use. Use this only if no Field wrapper is needed.
|
|
17
11
|
*/
|
|
18
|
-
function FinalFormToggleButtonGroup(_ref) {
|
|
12
|
+
export function FinalFormToggleButtonGroup(_ref) {
|
|
19
13
|
var _ref$input = _ref.input,
|
|
20
14
|
value = _ref$input.value,
|
|
21
15
|
onChange = _ref$input.onChange,
|
|
22
16
|
options = _ref.options,
|
|
23
17
|
optionsPerRow = _ref.optionsPerRow;
|
|
24
|
-
return /*#__PURE__*/(
|
|
18
|
+
return /*#__PURE__*/_jsx(Root, {
|
|
25
19
|
$optionsPerRow: optionsPerRow,
|
|
26
20
|
children: options.map(function (_ref2, index) {
|
|
27
21
|
var optionValue = _ref2.value,
|
|
28
22
|
label = _ref2.label;
|
|
29
|
-
return /*#__PURE__*/(
|
|
23
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
30
24
|
$selected: value === optionValue,
|
|
31
25
|
onClick: function onClick() {
|
|
32
26
|
return onChange(optionValue);
|
|
33
27
|
},
|
|
34
28
|
focusRipple: true,
|
|
35
|
-
children: /*#__PURE__*/(
|
|
29
|
+
children: /*#__PURE__*/_jsx(Label, {
|
|
36
30
|
component: "span",
|
|
37
31
|
variant: "body2",
|
|
38
32
|
children: label
|
|
@@ -41,7 +35,7 @@ function FinalFormToggleButtonGroup(_ref) {
|
|
|
41
35
|
})
|
|
42
36
|
});
|
|
43
37
|
}
|
|
44
|
-
var Label = /*#__PURE__*/
|
|
38
|
+
var Label = /*#__PURE__*/styled(Typography, process.env.NODE_ENV === "production" ? {
|
|
45
39
|
target: "ew0a0do2"
|
|
46
40
|
} : {
|
|
47
41
|
target: "ew0a0do2",
|
|
@@ -54,7 +48,7 @@ var Label = /*#__PURE__*/(0, _styles.styled)(_material.Typography, process.env.N
|
|
|
54
48
|
styles: "display:flex;align-items:center/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9mb3JtL0ZpbmFsRm9ybVRvZ2dsZUJ1dHRvbkdyb3VwLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtQzZFIiwiZmlsZSI6Ii4uLy4uL3NyYy9mb3JtL0ZpbmFsRm9ybVRvZ2dsZUJ1dHRvbkdyb3VwLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJ1dHRvbkJhc2UsIFR5cG9ncmFwaHksIHR5cGUgVHlwb2dyYXBoeVByb3BzIH0gZnJvbSBcIkBtdWkvbWF0ZXJpYWxcIjtcbmltcG9ydCB7IGNzcywgc3R5bGVkIH0gZnJvbSBcIkBtdWkvbWF0ZXJpYWwvc3R5bGVzXCI7XG5pbXBvcnQgeyB0eXBlIFJlYWN0Tm9kZSB9IGZyb20gXCJyZWFjdFwiO1xuaW1wb3J0IHsgdHlwZSBGaWVsZFJlbmRlclByb3BzIH0gZnJvbSBcInJlYWN0LWZpbmFsLWZvcm1cIjtcblxuZXhwb3J0IHR5cGUgRmluYWxGb3JtVG9nZ2xlQnV0dG9uR3JvdXBQcm9wczxGaWVsZFZhbHVlPiA9IHtcbiAgICBvcHRpb25zOiBBcnJheTx7IHZhbHVlOiBGaWVsZFZhbHVlOyBsYWJlbDogUmVhY3ROb2RlIH0+O1xuICAgIG9wdGlvbnNQZXJSb3c/OiBudW1iZXI7XG59O1xuXG50eXBlIEZpbmFsRm9ybVRvZ2dsZUJ1dHRvbkdyb3VwSW50ZXJuYWxQcm9wczxGaWVsZFZhbHVlPiA9IEZpZWxkUmVuZGVyUHJvcHM8RmllbGRWYWx1ZSwgSFRNTERpdkVsZW1lbnQ+O1xuXG4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FIED_CSS_ERROR__
|
|
56
50
|
});
|
|
57
|
-
var Root = /*#__PURE__*/
|
|
51
|
+
var Root = /*#__PURE__*/styled("div", process.env.NODE_ENV === "production" ? {
|
|
58
52
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
59
53
|
return prop !== "$optionsPerRow";
|
|
60
54
|
},
|
|
@@ -73,9 +67,9 @@ var Root = /*#__PURE__*/(0, _styles.styled)("div", process.env.NODE_ENV === "pro
|
|
|
73
67
|
return theme.palette.divider;
|
|
74
68
|
}, ";border-radius:2px;overflow:hidden;gap:1px;", function (_ref5) {
|
|
75
69
|
var $optionsPerRow = _ref5.$optionsPerRow;
|
|
76
|
-
return $optionsPerRow &&
|
|
70
|
+
return $optionsPerRow && css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-grid;\n grid-template-columns: repeat(", ", 1fr);\n "])), $optionsPerRow);
|
|
77
71
|
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9mb3JtL0ZpbmFsRm9ybVRvZ2dsZUJ1dHRvbkdyb3VwLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF3Q21IIiwiZmlsZSI6Ii4uLy4uL3NyYy9mb3JtL0ZpbmFsRm9ybVRvZ2dsZUJ1dHRvbkdyb3VwLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJ1dHRvbkJhc2UsIFR5cG9ncmFwaHksIHR5cGUgVHlwb2dyYXBoeVByb3BzIH0gZnJvbSBcIkBtdWkvbWF0ZXJpYWxcIjtcbmltcG9ydCB7IGNzcywgc3R5bGVkIH0gZnJvbSBcIkBtdWkvbWF0ZXJpYWwvc3R5bGVzXCI7XG5pbXBvcnQgeyB0eXBlIFJlYWN0Tm9kZSB9IGZyb20gXCJyZWFjdFwiO1xuaW1wb3J0IHsgdHlwZSBGaWVs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5Lm1haW59O1xuXG4gICAgICAgICAgICA6YmVmb3JlIHtcbiAgICAgICAgICAgICAgICBjb250ZW50OiBcIlwiO1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgICAgIHJpZ2h0OiAwO1xuICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IDJweDtcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLnBhbGV0dGUucHJpbWFyeS5tYWlufTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgYH1cbmA7XG4iXX0= */"));
|
|
78
|
-
var Button = /*#__PURE__*/
|
|
72
|
+
var Button = /*#__PURE__*/styled(ButtonBase, process.env.NODE_ENV === "production" ? {
|
|
79
73
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
80
74
|
return prop !== "$selected";
|
|
81
75
|
},
|
|
@@ -101,5 +95,5 @@ var Button = /*#__PURE__*/(0, _styles.styled)(_material.ButtonBase, process.env.
|
|
|
101
95
|
}, ";}", function (_ref0) {
|
|
102
96
|
var $selected = _ref0.$selected,
|
|
103
97
|
theme = _ref0.theme;
|
|
104
|
-
return $selected &&
|
|
98
|
+
return $selected && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n\n :before {\n content: \"\";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 2px;\n background-color: ", ";\n }\n "])), theme.palette.primary.main, theme.palette.primary.main);
|
|
105
99
|
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9mb3JtL0ZpbmFsRm9ybVRvZ2dsZUJ1dHRvbkdyb3VwLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoi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FkZGluZy1ib3R0b206IDlweDtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAkeyh7IHRoZW1lIH0pID0+IHRoZW1lLnBhbGV0dGUuYmFja2dyb3VuZC5wYXBlcn07XG5cbiAgICA6aG92ZXIge1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAkeyh7IHRoZW1lIH0pID0+IHRoZW1lLnBhbGV0dGUuZ3JleVs1MF19O1xuICAgIH1cblxuICAgICR7KHsgJHNlbGVjdGVkLCB0aGVtZSB9KSA9PlxuICAgICAgICAkc2VsZWN0ZWQgJiZcbiAgICAgICAgY3NzYFxuICAgICAgICAgICAgY29sb3I6ICR7dGhlbWUucGFsZXR0ZS5wcmltYXJ5Lm1haW59O1xuXG4gICAgICAgICAgICA6YmVmb3JlIHtcbiAgICAgICAgICAgICAgICBjb250ZW50OiBcIlwiO1xuICAgICAgICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgICAgICAgICBsZWZ0OiAwO1xuICAgICAgICAgICAgICAgIHJpZ2h0OiAwO1xuICAgICAgICAgICAgICAgIGJvdHRvbTogMDtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IDJweDtcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLnBhbGV0dGUucHJpbWFyeS5tYWlufTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgYH1cbmA7XG4iXX0= */"));
|
|
@@ -19,7 +19,7 @@ export interface FormSectionProps extends ThemedComponentBaseProps<{
|
|
|
19
19
|
disableTypography?: boolean;
|
|
20
20
|
}
|
|
21
21
|
export declare function FormSection(inProps: FormSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
declare const Title: import("react").ForwardRefExoticComponent<Pick<import("
|
|
22
|
+
declare const Title: import("react").ForwardRefExoticComponent<Pick<import("..").SectionHeadlineProps, keyof import("..").SectionHeadlineProps> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
23
23
|
ownerState?: undefined;
|
|
24
24
|
} & {
|
|
25
25
|
className?: string;
|
package/lib/form/FormSection.js
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.FormSection = FormSection;
|
|
8
|
-
var _styles = require("@mui/material/styles");
|
|
9
|
-
var _createComponentSlot = require("../helpers/createComponentSlot");
|
|
10
|
-
var _SectionHeadline = require("../section/SectionHeadline");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
13
3
|
var _excluded = ["children", "title", "disableMarginBottom", "disableTypography", "slotProps", "infoTooltip"];
|
|
14
4
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
@@ -19,8 +9,12 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
19
9
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
10
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21
11
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
import { css, useThemeProps } from "@mui/material/styles";
|
|
13
|
+
import { createComponentSlot } from "../helpers/createComponentSlot";
|
|
14
|
+
import { SectionHeadline } from "../section/SectionHeadline";
|
|
15
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
export function FormSection(inProps) {
|
|
17
|
+
var _useThemeProps = useThemeProps({
|
|
24
18
|
props: inProps,
|
|
25
19
|
name: "CometAdminFormSection"
|
|
26
20
|
}),
|
|
@@ -34,24 +28,24 @@ function FormSection(inProps) {
|
|
|
34
28
|
var ownerState = {
|
|
35
29
|
disableMarginBottom: disableMarginBottom
|
|
36
30
|
};
|
|
37
|
-
return /*#__PURE__*/(
|
|
31
|
+
return /*#__PURE__*/_jsxs(Root, _objectSpread(_objectSpread(_objectSpread({
|
|
38
32
|
ownerState: ownerState
|
|
39
33
|
}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.root), restProps), {}, {
|
|
40
|
-
children: [title && /*#__PURE__*/(
|
|
41
|
-
children: disableTypography ? /*#__PURE__*/(
|
|
34
|
+
children: [title && /*#__PURE__*/_jsx(_Fragment, {
|
|
35
|
+
children: disableTypography ? /*#__PURE__*/_jsx(LegacyTitle, _objectSpread(_objectSpread({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.title), {}, {
|
|
42
36
|
children: title
|
|
43
|
-
})) : /*#__PURE__*/(
|
|
37
|
+
})) : /*#__PURE__*/_jsx(Title, _objectSpread(_objectSpread({
|
|
44
38
|
infoTooltip: infoTooltip,
|
|
45
39
|
divider: true
|
|
46
40
|
}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.title), {}, {
|
|
47
41
|
children: title
|
|
48
42
|
}))
|
|
49
|
-
}), /*#__PURE__*/(
|
|
43
|
+
}), /*#__PURE__*/_jsx(Children, _objectSpread(_objectSpread({}, slotProps === null || slotProps === void 0 ? void 0 : slotProps.children), {}, {
|
|
50
44
|
children: children
|
|
51
45
|
}))]
|
|
52
46
|
}));
|
|
53
47
|
}
|
|
54
|
-
var Root =
|
|
48
|
+
var Root = createComponentSlot("div")({
|
|
55
49
|
componentName: "FormSection",
|
|
56
50
|
slotName: "root",
|
|
57
51
|
classesResolver: function classesResolver(ownerState) {
|
|
@@ -60,25 +54,25 @@ var Root = (0, _createComponentSlot.createComponentSlot)("div")({
|
|
|
60
54
|
})(function (_ref) {
|
|
61
55
|
var theme = _ref.theme,
|
|
62
56
|
ownerState = _ref.ownerState;
|
|
63
|
-
return
|
|
57
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n "])), !ownerState.disableMarginBottom && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n "])), theme.spacing(12)));
|
|
64
58
|
});
|
|
65
|
-
var Title =
|
|
59
|
+
var Title = createComponentSlot(SectionHeadline)({
|
|
66
60
|
componentName: "FormSection",
|
|
67
61
|
slotName: "title"
|
|
68
62
|
})(function (_ref2) {
|
|
69
63
|
var theme = _ref2.theme;
|
|
70
|
-
return
|
|
64
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n "])), theme.spacing(4));
|
|
71
65
|
});
|
|
72
66
|
|
|
73
67
|
// TODO: Remove this slot once the `disableTypography` prop has been removed
|
|
74
|
-
var LegacyTitle =
|
|
68
|
+
var LegacyTitle = createComponentSlot("div")({
|
|
75
69
|
componentName: "FormSection",
|
|
76
70
|
slotName: "title"
|
|
77
71
|
})(function (_ref3) {
|
|
78
72
|
var theme = _ref3.theme;
|
|
79
|
-
return
|
|
73
|
+
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n "])), theme.spacing(4));
|
|
80
74
|
});
|
|
81
|
-
var Children =
|
|
75
|
+
var Children = createComponentSlot("div")({
|
|
82
76
|
componentName: "FormSection",
|
|
83
77
|
slotName: "children"
|
|
84
78
|
})();
|
package/lib/form/Radio.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.FinalFormRadio = void 0;
|
|
8
|
-
var _Radio = _interopRequireDefault(require("@mui/material/Radio"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
2
|
var _excluded = ["checked", "value", "name", "onChange"],
|
|
11
3
|
_excluded2 = ["input", "meta"];
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
6
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -17,12 +8,14 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
17
8
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
9
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
19
10
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
|
+
import MuiRadio from "@mui/material/Radio";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
13
|
/**
|
|
21
14
|
* Final Form-compatible RadioGroup component.
|
|
22
15
|
*
|
|
23
16
|
* @see {@link RadioGroupField} – preferred for typical form use. Use this only if no Field wrapper is needed.
|
|
24
17
|
*/
|
|
25
|
-
var FinalFormRadio =
|
|
18
|
+
export var FinalFormRadio = function FinalFormRadio(_ref) {
|
|
26
19
|
var _ref$input = _ref.input,
|
|
27
20
|
checked = _ref$input.checked,
|
|
28
21
|
value = _ref$input.value,
|
|
@@ -31,7 +24,7 @@ var FinalFormRadio = exports.FinalFormRadio = function FinalFormRadio(_ref) {
|
|
|
31
24
|
restInput = _objectWithoutProperties(_ref$input, _excluded),
|
|
32
25
|
meta = _ref.meta,
|
|
33
26
|
rest = _objectWithoutProperties(_ref, _excluded2);
|
|
34
|
-
return /*#__PURE__*/(
|
|
27
|
+
return /*#__PURE__*/_jsx(MuiRadio, _objectSpread(_objectSpread({}, rest), {}, {
|
|
35
28
|
name: name,
|
|
36
29
|
inputProps: restInput,
|
|
37
30
|
onChange: onChange,
|
package/lib/form/Switch.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.FinalFormSwitch = void 0;
|
|
8
|
-
var _Switch = _interopRequireDefault(require("@mui/material/Switch"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
2
|
var _excluded = ["checked", "name", "onChange"],
|
|
11
3
|
_excluded2 = ["input", "meta"];
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
6
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -17,12 +8,14 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
17
8
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
9
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
19
10
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
11
|
+
import MuiSwitch from "@mui/material/Switch";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
13
|
/**
|
|
21
14
|
* Final Form-compatible Switch component.
|
|
22
15
|
*
|
|
23
16
|
* @see {@link SwitchField} – preferred for typical form use. Use this only if no Field wrapper is needed.
|
|
24
17
|
*/
|
|
25
|
-
var FinalFormSwitch =
|
|
18
|
+
export var FinalFormSwitch = function FinalFormSwitch(_ref) {
|
|
26
19
|
var _ref$input = _ref.input,
|
|
27
20
|
checked = _ref$input.checked,
|
|
28
21
|
name = _ref$input.name,
|
|
@@ -30,7 +23,7 @@ var FinalFormSwitch = exports.FinalFormSwitch = function FinalFormSwitch(_ref) {
|
|
|
30
23
|
restInput = _objectWithoutProperties(_ref$input, _excluded),
|
|
31
24
|
meta = _ref.meta,
|
|
32
25
|
rest = _objectWithoutProperties(_ref, _excluded2);
|
|
33
|
-
return /*#__PURE__*/(
|
|
26
|
+
return /*#__PURE__*/_jsx(MuiSwitch, _objectSpread(_objectSpread({}, rest), {}, {
|
|
34
27
|
name: name,
|
|
35
28
|
inputProps: restInput,
|
|
36
29
|
onChange: onChange,
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AsyncAutocompleteField = AsyncAutocompleteField;
|
|
7
|
-
var _Field = require("../Field");
|
|
8
|
-
var _FinalFormAsyncAutocomplete = require("../FinalFormAsyncAutocomplete");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
4
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
import { Field } from "../Field";
|
|
8
|
+
import { FinalFormAsyncAutocomplete } from "../FinalFormAsyncAutocomplete";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export function AsyncAutocompleteField(props) {
|
|
11
|
+
return /*#__PURE__*/_jsx(Field, _objectSpread({
|
|
12
|
+
component: FinalFormAsyncAutocomplete
|
|
19
13
|
}, props));
|
|
20
14
|
}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AsyncSelectField = AsyncSelectField;
|
|
7
|
-
var _Field = require("../Field");
|
|
8
|
-
var _FinalFormAsyncSelect = require("../FinalFormAsyncSelect");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
4
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
import { Field } from "../Field";
|
|
8
|
+
import { FinalFormAsyncSelect } from "../FinalFormAsyncSelect";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export function AsyncSelectField(props) {
|
|
11
|
+
return /*#__PURE__*/_jsx(Field, _objectSpread({
|
|
12
|
+
component: FinalFormAsyncSelect
|
|
19
13
|
}, props));
|
|
20
14
|
}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AutocompleteField = AutocompleteField;
|
|
7
|
-
var _Autocomplete = require("../Autocomplete");
|
|
8
|
-
var _Field = require("../Field");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
4
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
import { FinalFormAutocomplete } from "../Autocomplete";
|
|
8
|
+
import { Field } from "../Field";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export function AutocompleteField(props) {
|
|
11
|
+
return /*#__PURE__*/_jsx(Field, _objectSpread({
|
|
12
|
+
component: FinalFormAutocomplete
|
|
19
13
|
}, props));
|
|
20
14
|
}
|