@carbon/ibm-products 1.73.0 → 1.73.2
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/css/index-full-carbon.css +34 -53
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -14
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +25 -40
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -12
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +27 -47
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -14
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +31 -51
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -14
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.js +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +3 -3
- package/es/components/AboutModal/AboutModal.js +2 -2
- package/es/components/ActionBar/ActionBar.js +4 -4
- package/es/components/ActionBar/ActionBarItem.js +2 -2
- package/es/components/ActionSet/ActionSet.js +5 -6
- package/es/components/AddSelect/AddSelectBody.js +4 -4
- package/es/components/AddSelect/AddSelectColumn.js +5 -4
- package/es/components/AddSelect/AddSelectFilter.js +2 -2
- package/es/components/AddSelect/AddSelectList.js +2 -3
- package/es/components/AddSelect/AddSelectSidebar.js +1 -1
- package/es/components/AddSelect/add-select-utils.js +7 -6
- package/es/components/AddSelect/hooks/usePath.js +2 -2
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -5
- package/es/components/ButtonMenu/ButtonMenu.js +0 -1
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +5 -5
- package/es/components/Card/Card.js +3 -4
- package/es/components/Card/CardHeader.js +1 -2
- package/es/components/Cascade/Cascade.js +2 -2
- package/es/components/Coachmark/Coachmark.js +1 -1
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +2 -3
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -2
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +1 -1
- package/es/components/ComboButton/ComboButton.js +2 -2
- package/es/components/CreateFullPage/CreateFullPageStep.js +3 -4
- package/es/components/CreateInfluencer/CreateInfluencer.js +0 -1
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +2 -2
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +3 -4
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +3 -5
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +7 -8
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +4 -5
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +2 -3
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +4 -4
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +4 -4
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +1 -2
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +0 -1
- package/es/components/DataSpreadsheet/utils/generateData.js +2 -2
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +2 -2
- package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +4 -4
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +2 -4
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +2 -2
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +2 -2
- package/es/components/DataSpreadsheet/utils/selectAllCells.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +4 -5
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +15 -16
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +2 -3
- package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +3 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +11 -11
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +11 -11
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +3 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +0 -2
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +5 -5
- package/es/components/Datagrid/Datagrid.stories/common.js +5 -5
- package/es/components/Datagrid/useActionsColumn.js +3 -5
- package/es/components/Datagrid/useColumnCenterAlign.js +2 -2
- package/es/components/Datagrid/useColumnRightAlign.js +2 -2
- package/es/components/Datagrid/useCustomizeColumns.js +2 -2
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +2 -2
- package/es/components/Datagrid/useDisableSelectRows.js +4 -4
- package/es/components/Datagrid/useExpandedRow.js +2 -2
- package/es/components/Datagrid/useFiltering.js +7 -8
- package/es/components/Datagrid/useFloatingScroll.js +1 -1
- package/es/components/Datagrid/useInitialColumnSort.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +2 -2
- package/es/components/Datagrid/useNestedRowExpander.js +3 -4
- package/es/components/Datagrid/useNestedRows.js +1 -2
- package/es/components/Datagrid/useRowExpander.js +2 -2
- package/es/components/Datagrid/useRowIsMouseOver.js +2 -2
- package/es/components/Datagrid/useRowRenderer.js +3 -3
- package/es/components/Datagrid/useRowSize.js +2 -2
- package/es/components/Datagrid/useSelectRows.js +4 -5
- package/es/components/Datagrid/useSortableColumns.js +3 -4
- package/es/components/Datagrid/useStickyColumn.js +5 -7
- package/es/components/Datagrid/utils/DatagridPagination.js +0 -1
- package/es/components/Datagrid/utils/filterPropsForTesting.js +2 -3
- package/es/components/Datagrid/utils/makeData.js +5 -5
- package/es/components/EditInPlace/EditInPlace.js +2 -2
- package/es/components/EditSidePanel/EditSidePanel.js +2 -2
- package/es/components/EditTearsheet/EditTearsheetForm.js +1 -2
- package/es/components/EmptyStates/EmptyState.js +2 -2
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -2
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +2 -2
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -2
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -2
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -2
- package/es/components/ExampleComponent/ExampleComponent.js +2 -2
- package/es/components/ExportModal/ExportModal.js +5 -5
- package/es/components/FilterSummary/FilterSummary.js +3 -3
- package/es/components/HTTPErrors/HTTPErrorContent.js +2 -2
- package/es/components/ImportModal/ImportModal.js +3 -3
- package/es/components/InlineEdit/InlineEdit.js +2 -2
- package/es/components/InlineEditV1/InlineEditV1.js +5 -4
- package/es/components/InlineEditV2/InlineEditV2.js +3 -4
- package/es/components/InlineTip/utils.js +6 -5
- package/es/components/InterstitialScreen/InterstitialScreen.js +4 -5
- package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +0 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +2 -3
- package/es/components/PageHeader/PageHeader.js +11 -13
- package/es/components/PageHeader/PageHeaderUtils.js +2 -2
- package/es/components/ProductiveCard/ProductiveCard.js +2 -2
- package/es/components/RemoveModal/RemoveModal.js +2 -2
- package/es/components/Saving/Saving.js +6 -6
- package/es/components/SidePanel/SidePanel.js +17 -18
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +2 -2
- package/es/components/TagSet/TagSet.js +4 -4
- package/es/components/TagSet/TagSetModal.js +5 -5
- package/es/components/TagSet/TagSetOverflow.js +1 -2
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.js +2 -2
- package/es/components/Tearsheet/TearsheetShell.js +10 -11
- package/es/components/WebTerminal/WebTerminal.js +3 -4
- package/es/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/es/global/js/hooks/useCreateComponentStepChange.js +3 -3
- package/es/global/js/hooks/useFocus.js +4 -4
- package/es/global/js/hooks/useWindowResize.js +2 -2
- package/es/global/js/package-settings.js +2 -3
- package/es/global/js/utils/Wrap.js +3 -3
- package/es/global/js/utils/deepCloneObject.js +4 -3
- package/es/global/js/utils/getNodeTextContent.js +6 -5
- package/es/global/js/utils/motionConstants.js +0 -1
- package/es/global/js/utils/props-helper.js +3 -3
- package/es/global/js/utils/scrollableAncestor.js +3 -3
- package/es/global/js/utils/story-helper.js +1 -1
- package/es/global/js/utils/test-helper.js +1 -1
- package/es/global/js/utils/unwrap-if-fragment.js +6 -6
- package/lib/components/APIKeyModal/APIKeyDownloader.js +4 -5
- package/lib/components/APIKeyModal/APIKeyModal.js +12 -8
- package/lib/components/AboutModal/AboutModal.js +14 -6
- package/lib/components/ActionBar/ActionBar.js +16 -9
- package/lib/components/ActionBar/ActionBarItem.js +12 -5
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -4
- package/lib/components/ActionSet/ActionSet.js +15 -8
- package/lib/components/ActionSet/actions.js +4 -7
- package/lib/components/AddSelect/AddSelect.js +9 -5
- package/lib/components/AddSelect/AddSelectBody.js +13 -9
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +1 -2
- package/lib/components/AddSelect/AddSelectColumn.js +12 -8
- package/lib/components/AddSelect/AddSelectFilter.js +10 -6
- package/lib/components/AddSelect/AddSelectList.js +3 -5
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -4
- package/lib/components/AddSelect/AddSelectSidebar.js +8 -4
- package/lib/components/AddSelect/AddSelectSort.js +1 -2
- package/lib/components/AddSelect/add-select-utils.js +10 -14
- package/lib/components/AddSelect/hooks/useItemSort.js +2 -3
- package/lib/components/AddSelect/hooks/useParentSelect.js +1 -2
- package/lib/components/AddSelect/hooks/usePath.js +8 -4
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +16 -10
- package/lib/components/ButtonMenu/ButtonMenu.js +10 -3
- package/lib/components/ButtonMenu/ButtonMenuItem.js +1 -2
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +13 -9
- package/lib/components/Card/Card.js +12 -9
- package/lib/components/Card/CardFooter.js +1 -2
- package/lib/components/Card/CardHeader.js +2 -4
- package/lib/components/Carousel/Carousel.js +9 -4
- package/lib/components/Carousel/CarouselItem.js +8 -2
- package/lib/components/Cascade/Cascade.js +11 -7
- package/lib/components/Checklist/Checklist.js +19 -4
- package/lib/components/Checklist/ChecklistChart.js +15 -2
- package/lib/components/Checklist/ChecklistIcon.js +17 -2
- package/lib/components/Coachmark/Coachmark.js +10 -5
- package/lib/components/Coachmark/CoachmarkDragbar.js +11 -4
- package/lib/components/Coachmark/CoachmarkHeader.js +9 -2
- package/lib/components/Coachmark/CoachmarkOverlay.js +11 -4
- package/lib/components/Coachmark/CoachmarkTagline.js +9 -2
- package/lib/components/Coachmark/utils/constants.js +2 -3
- package/lib/components/Coachmark/utils/context.js +3 -5
- package/lib/components/Coachmark/utils/enums.js +4 -7
- package/lib/components/Coachmark/utils/hooks.js +2 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +11 -5
- package/lib/components/CoachmarkButton/CoachmarkButton.js +9 -2
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +12 -6
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +9 -2
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +11 -4
- package/lib/components/CoachmarkStack/CoachmarkStack.js +9 -4
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +10 -5
- package/lib/components/ComboButton/ComboButton.js +11 -6
- package/lib/components/ComboButton/ComboButtonItem/index.js +1 -2
- package/lib/components/CreateFullPage/CreateFullPage.js +14 -8
- package/lib/components/CreateFullPage/CreateFullPageStep.js +12 -8
- package/lib/components/CreateInfluencer/CreateInfluencer.js +1 -3
- package/lib/components/CreateModal/CreateModal.js +10 -3
- package/lib/components/CreateSidePanel/CreateSidePanel.js +12 -4
- package/lib/components/CreateTearsheet/CreateTearsheet.js +11 -8
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +9 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +12 -8
- package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +11 -5
- package/lib/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +4 -5
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +10 -3
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +14 -9
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +15 -12
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +12 -9
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +2 -3
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +2 -3
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +2 -3
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +4 -6
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +7 -8
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +11 -7
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +2 -3
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +2 -3
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +6 -7
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +3 -5
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +2 -4
- package/lib/components/DataSpreadsheet/utils/generateData.js +4 -5
- package/lib/components/DataSpreadsheet/utils/getCellSize.js +2 -3
- package/lib/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +2 -3
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +2 -3
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +9 -5
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +2 -3
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -7
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +9 -7
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +4 -5
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +11 -9
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +2 -3
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +2 -3
- package/lib/components/DataSpreadsheet/utils/selectAllCells.js +9 -5
- package/lib/components/Datagrid/Datagrid/Datagrid.js +7 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +4 -6
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +12 -9
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +9 -4
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +21 -18
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +11 -6
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +9 -4
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +9 -4
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +9 -4
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +10 -7
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +2 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +9 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +10 -6
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +8 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +9 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +4 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -8
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +12 -10
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +15 -30
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +19 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +4 -7
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +3 -5
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +19 -15
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +11 -8
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +10 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +12 -8
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +10 -5
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +3 -6
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +16 -16
- package/lib/components/Datagrid/Datagrid.stories/CustomizeColumnStory.js +2 -3
- package/lib/components/Datagrid/Datagrid.stories/RowSizeDropdownStory.js +2 -3
- package/lib/components/Datagrid/Datagrid.stories/SelectAllWithToggleStory.js +2 -3
- package/lib/components/Datagrid/Datagrid.stories/common.js +9 -12
- package/lib/components/Datagrid/common-column-ids.js +1 -2
- package/lib/components/Datagrid/useActionsColumn.js +10 -7
- package/lib/components/Datagrid/useColumnCenterAlign.js +8 -4
- package/lib/components/Datagrid/useColumnOrder.js +1 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +8 -4
- package/lib/components/Datagrid/useCustomizeColumns.js +10 -6
- package/lib/components/Datagrid/useDatagrid.js +9 -4
- package/lib/components/Datagrid/useDefaultStringRenderer.js +9 -4
- package/lib/components/Datagrid/useDisableSelectRows.js +5 -6
- package/lib/components/Datagrid/useEditableCell.js +1 -2
- package/lib/components/Datagrid/useExpandedRow.js +8 -4
- package/lib/components/Datagrid/useFiltering.js +13 -10
- package/lib/components/Datagrid/useFlexResize.js +1 -2
- package/lib/components/Datagrid/useFloatingScroll.js +2 -3
- package/lib/components/Datagrid/useFocusRowExpander.js +2 -3
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -2
- package/lib/components/Datagrid/useInitialColumnSort.js +3 -4
- package/lib/components/Datagrid/useInlineEdit.js +5 -6
- package/lib/components/Datagrid/useNestedRowExpander.js +11 -8
- package/lib/components/Datagrid/useNestedRows.js +2 -4
- package/lib/components/Datagrid/useOnRowClick.js +1 -2
- package/lib/components/Datagrid/useParentDimensions.js +1 -2
- package/lib/components/Datagrid/useResizeTable.js +1 -2
- package/lib/components/Datagrid/useRowExpander.js +10 -6
- package/lib/components/Datagrid/useRowIsMouseOver.js +9 -4
- package/lib/components/Datagrid/useRowRenderer.js +4 -5
- package/lib/components/Datagrid/useRowSize.js +9 -4
- package/lib/components/Datagrid/useSelectAllToggle.js +3 -4
- package/lib/components/Datagrid/useSelectRows.js +12 -9
- package/lib/components/Datagrid/useSkeletonRows.js +1 -2
- package/lib/components/Datagrid/useSortableColumns.js +10 -8
- package/lib/components/Datagrid/useStickyColumn.js +11 -9
- package/lib/components/Datagrid/utils/DatagridActions.js +4 -5
- package/lib/components/Datagrid/utils/DatagridPagination.js +2 -4
- package/lib/components/Datagrid/utils/Wrapper.js +2 -3
- package/lib/components/Datagrid/utils/filterPropsForTesting.js +5 -8
- package/lib/components/Datagrid/utils/getArgTypes.js +2 -3
- package/lib/components/Datagrid/utils/getAutoSizedColumnWidth.js +2 -3
- package/lib/components/Datagrid/utils/getInlineEditColumns.js +3 -5
- package/lib/components/Datagrid/utils/handleFilterTagLabelText.js +2 -3
- package/lib/components/Datagrid/utils/makeData.js +13 -11
- package/lib/components/EditFullPage/EditFullPage.js +9 -2
- package/lib/components/EditInPlace/EditInPlace.js +11 -6
- package/lib/components/EditSidePanel/EditSidePanel.js +12 -4
- package/lib/components/EditTearsheet/EditTearsheet.js +11 -8
- package/lib/components/EditTearsheet/EditTearsheetForm.js +10 -6
- package/lib/components/EditTearsheet/preview-components/MultiFormEditTearsheet.js +4 -5
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +9 -2
- package/lib/components/EditUpdateCards/EditUpdateCards.js +9 -2
- package/lib/components/EmptyStates/EmptyState.js +12 -6
- package/lib/components/EmptyStates/EmptyStateContent.js +10 -4
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +11 -4
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +11 -4
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +11 -4
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +11 -4
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +11 -4
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +11 -4
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +9 -2
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +9 -2
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +9 -2
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +9 -2
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +9 -2
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +9 -2
- package/lib/components/ExampleComponent/ExampleComponent.js +14 -6
- package/lib/components/ExampleComponent/useExample.js +1 -2
- package/lib/components/ExportModal/ExportModal.js +14 -10
- package/lib/components/ExpressiveCard/ExpressiveCard.js +3 -4
- package/lib/components/FilterSummary/FilterSummary.js +12 -7
- package/lib/components/Guidebanner/Guidebanner.js +11 -4
- package/lib/components/Guidebanner/GuidebannerElement.js +9 -2
- package/lib/components/Guidebanner/GuidebannerElementButton.js +9 -2
- package/lib/components/Guidebanner/GuidebannerElementLink.js +9 -2
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +9 -2
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +9 -2
- package/lib/components/HTTPErrors/HTTPErrorContent.js +10 -4
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +9 -2
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +1 -2
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +1 -2
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +1 -2
- package/lib/components/ImportModal/ImportModal.js +12 -8
- package/lib/components/InlineEdit/InlineEdit.js +11 -6
- package/lib/components/InlineEditV1/InlineEditV1.js +18 -8
- package/lib/components/InlineEditV2/InlineEditV2.js +13 -10
- package/lib/components/InlineTip/InlineTip.js +11 -4
- package/lib/components/InlineTip/InlineTipButton.js +9 -2
- package/lib/components/InlineTip/InlineTipLink.js +9 -2
- package/lib/components/InlineTip/utils.js +5 -6
- package/lib/components/InterstitialScreen/InterstitialScreen.js +15 -9
- package/lib/components/InterstitialScreen/assets/index.js +4 -8
- package/lib/components/InterstitialScreenView/InterstitialScreenView.js +9 -2
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +9 -3
- package/lib/components/ModifiedTabs/ModifiedTabLabelNew.js +1 -2
- package/lib/components/ModifiedTabs/ModifiedTabLabelWithClose.js +1 -2
- package/lib/components/ModifiedTabs/ModifiedTabs.js +3 -4
- package/lib/components/MultiAddSelect/MultiAddSelect.js +3 -4
- package/lib/components/NonLinearReading/NonLinearReading.js +9 -4
- package/lib/components/NotificationsPanel/NotificationsPanel.js +14 -7
- package/lib/components/NotificationsPanel/NotificationsPanel_data.js +1 -2
- package/lib/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +2 -3
- package/lib/components/NotificationsPanel/utils.js +1 -2
- package/lib/components/OptionsTile/OptionsTile.js +12 -4
- package/lib/components/PageHeader/PageHeader.js +21 -20
- package/lib/components/PageHeader/PageHeaderDemo.data.js +3 -4
- package/lib/components/PageHeader/PageHeaderTitle.js +2 -4
- package/lib/components/PageHeader/PageHeaderUtils.js +12 -11
- package/lib/components/ProductiveCard/ProductiveCard.js +11 -7
- package/lib/components/RemoveModal/RemoveModal.js +11 -7
- package/lib/components/Saving/Saving.js +15 -10
- package/lib/components/SidePanel/SidePanel.js +29 -22
- package/lib/components/SidePanel/constants.js +2 -3
- package/lib/components/SidePanel/motion/variants.js +3 -5
- package/lib/components/SingleAddSelect/SingleAddSelect.js +3 -4
- package/lib/components/StatusIcon/StatusIcon.js +7 -2
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +13 -6
- package/lib/components/SteppedAnimatedMedia/assets/index.js +3 -6
- package/lib/components/TagSet/TagSet.js +15 -13
- package/lib/components/TagSet/TagSetModal.js +14 -10
- package/lib/components/TagSet/TagSetOverflow.js +10 -7
- package/lib/components/Tearsheet/Tearsheet.js +13 -6
- package/lib/components/Tearsheet/TearsheetNarrow.js +13 -6
- package/lib/components/Tearsheet/TearsheetShell.js +26 -23
- package/lib/components/Toolbar/Toolbar.js +12 -10
- package/lib/components/Toolbar/ToolbarButton.js +10 -6
- package/lib/components/Toolbar/ToolbarGroup.js +9 -4
- package/lib/components/UserProfileImage/UserProfileImage.js +10 -2
- package/lib/components/WebTerminal/WebTerminal.js +15 -8
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +9 -2
- package/lib/components/WebTerminal/hooks/index.js +6 -9
- package/lib/components/WebTerminal/preview-components/Navigation.js +1 -2
- package/lib/components/WebTerminal/preview-components/documentationLinks.js +2 -3
- package/lib/components/_Canary/Canary.js +11 -2
- package/lib/global/js/hooks/useActiveElement.js +2 -3
- package/lib/global/js/hooks/useClickOutside.js +2 -3
- package/lib/global/js/hooks/useCreateComponentFocus.js +3 -4
- package/lib/global/js/hooks/useCreateComponentStepChange.js +5 -6
- package/lib/global/js/hooks/useFocus.js +6 -7
- package/lib/global/js/hooks/useIsomorphicEffect.js +1 -2
- package/lib/global/js/hooks/usePrefix.js +2 -3
- package/lib/global/js/hooks/usePreviousValue.js +2 -3
- package/lib/global/js/hooks/useResetCreateComponent.js +2 -3
- package/lib/global/js/hooks/useResizeObserver.js +2 -3
- package/lib/global/js/hooks/useRetrieveStepData.js +2 -3
- package/lib/global/js/hooks/useValidCreateStepCount.js +2 -3
- package/lib/global/js/hooks/useWindowResize.js +4 -5
- package/lib/global/js/package-settings.js +9 -6
- package/lib/global/js/utils/ClickListener.js +3 -4
- package/lib/global/js/utils/DisplayBox.js +1 -2
- package/lib/global/js/utils/Wrap.js +12 -5
- package/lib/global/js/utils/deepCloneObject.js +3 -4
- package/lib/global/js/utils/devtools.js +1 -2
- package/lib/global/js/utils/getBezierValues.js +2 -3
- package/lib/global/js/utils/getFocusableElements.js +2 -3
- package/lib/global/js/utils/getNodeTextContent.js +5 -6
- package/lib/global/js/utils/getNumberOfHiddenSteps.js +2 -3
- package/lib/global/js/utils/getScrollbarWidth.js +2 -3
- package/lib/global/js/utils/keyboardNavigation.js +4 -8
- package/lib/global/js/utils/lastIndexInArray.js +2 -3
- package/lib/global/js/utils/motionConstants.js +3 -5
- package/lib/global/js/utils/pconsole.js +8 -15
- package/lib/global/js/utils/props-helper.js +15 -17
- package/lib/global/js/utils/rangeWithCallback.js +2 -3
- package/lib/global/js/utils/scrollableAncestor.js +5 -6
- package/lib/global/js/utils/story-helper.js +7 -12
- package/lib/global/js/utils/test-helper.js +15 -28
- package/lib/global/js/utils/unwrap-if-fragment.js +7 -8
- package/lib/global/js/utils/uuidv4.js +1 -2
- package/lib/global/js/utils/wait.js +1 -2
- package/lib/global/js/utils/wrapFocus.js +1 -2
- package/lib/settings.js +2 -4
- package/package.json +4 -4
- package/scss/components/AboutModal/_about-modal.scss +1 -2
- package/scss/components/Coachmark/styles/_coachmark-tagline.scss +1 -4
- package/scss/components/Datagrid/styles/_datagrid.scss +1 -2
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +1 -0
- package/scss/components/SidePanel/_side-panel.scss +1 -4
@@ -25,7 +25,6 @@ var _sortable = require("@dnd-kit/sortable");
|
|
25
25
|
|
26
26
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
27
27
|
var DraggableElement = function DraggableElement(_ref) {
|
28
|
-
var _cx;
|
29
28
|
var id = _ref.id,
|
30
29
|
children = _ref.children,
|
31
30
|
classList = _ref.classList,
|
@@ -52,7 +51,7 @@ var DraggableElement = function DraggableElement(_ref) {
|
|
52
51
|
transition: transition
|
53
52
|
};
|
54
53
|
return /*#__PURE__*/_react.default.createElement("li", (0, _extends2.default)({
|
55
|
-
className: (0, _classnames.default)(classList, "".concat(blockClass, "__draggable-handleHolder"), (
|
54
|
+
className: (0, _classnames.default)(classList, "".concat(blockClass, "__draggable-handleHolder"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__draggable-handleHolder--selected"), selected), "".concat(blockClass, "__draggable-handleHolder--sticky"), isSticky), "".concat(blockClass, "__draggable-handleHolder--dragging"), isDragging)),
|
56
55
|
id: id,
|
57
56
|
ref: setNodeRef,
|
58
57
|
style: style
|
@@ -75,5 +74,4 @@ DraggableElement.propTypes = {
|
|
75
74
|
isSticky: _propTypes.default.bool,
|
76
75
|
selected: _propTypes.default.bool
|
77
76
|
};
|
78
|
-
var _default = DraggableElement;
|
79
|
-
exports.default = _default;
|
77
|
+
var _default = exports.default = DraggableElement;
|
@@ -10,8 +10,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
10
|
var _carbonComponentsReact = require("carbon-components-react");
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
12
12
|
var _settings = require("../../../../../settings");
|
13
|
-
function _getRequireWildcardCache(
|
14
|
-
function _interopRequireWildcard(
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
15
15
|
/**
|
16
16
|
* Copyright IBM Corp. 2022, 2022
|
17
17
|
*
|
@@ -46,5 +46,4 @@ Actions.propTypes = {
|
|
46
46
|
setColumnsObject: _propTypes.default.func.isRequired,
|
47
47
|
setSearchText: _propTypes.default.func.isRequired
|
48
48
|
};
|
49
|
-
var _default = Actions;
|
50
|
-
exports.default = _default;
|
49
|
+
var _default = exports.default = Actions;
|
@@ -14,8 +14,14 @@ var _iconsReact = require("@carbon/icons-react");
|
|
14
14
|
var _carbonComponentsReact = require("carbon-components-react");
|
15
15
|
var _settings = require("../../../../../settings");
|
16
16
|
var _excluded = ["onClick", "setIsTearsheetOpen", "isTearsheetOpen", "iconTooltipLabel", "tooltipPosition"];
|
17
|
-
|
18
|
-
|
17
|
+
/**
|
18
|
+
* Copyright IBM Corp. 2022, 2022
|
19
|
+
*
|
20
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
22
|
+
*/
|
23
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
19
25
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
20
26
|
var ButtonWrapper = function ButtonWrapper(_ref) {
|
21
27
|
var _onClick = _ref.onClick,
|
@@ -48,5 +54,4 @@ ButtonWrapper.propTypes = {
|
|
48
54
|
setIsTearsheetOpen: _propTypes.default.func.isRequired,
|
49
55
|
tooltipPosition: _carbonComponentsReact.Button.propTypes.tooltipPosition
|
50
56
|
};
|
51
|
-
var _default = ButtonWrapper;
|
52
|
-
exports.default = _default;
|
57
|
+
var _default = exports.default = ButtonWrapper;
|
@@ -16,8 +16,8 @@ var _settings = require("../../../../../settings");
|
|
16
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
17
17
|
var _DraggableItemsList = require("./DraggableItemsList");
|
18
18
|
var _uuidv = _interopRequireDefault(require("../../../../../global/js/utils/uuidv4"));
|
19
|
-
function _getRequireWildcardCache(
|
20
|
-
function _interopRequireWildcard(
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
21
21
|
/**
|
22
22
|
* Copyright IBM Corp. 2022, 2023
|
23
23
|
*
|
@@ -100,5 +100,4 @@ Columns.propTypes = {
|
|
100
100
|
setColumnStatus: _propTypes.default.func,
|
101
101
|
setColumnsObject: _propTypes.default.func.isRequired
|
102
102
|
};
|
103
|
-
var _default = Columns;
|
104
|
-
exports.default = _default;
|
103
|
+
var _default = exports.default = Columns;
|
package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
CHANGED
@@ -14,10 +14,15 @@ var _Columns = _interopRequireDefault(require("./Columns"));
|
|
14
14
|
var _Actions = _interopRequireDefault(require("./Actions"));
|
15
15
|
var _settings = require("../../../../../settings");
|
16
16
|
var _Tearsheet = require("../../../../Tearsheet");
|
17
|
-
function _getRequireWildcardCache(
|
18
|
-
function _interopRequireWildcard(
|
19
|
-
function ownKeys(
|
20
|
-
function _objectSpread(
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
19
|
+
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
|
+
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) { (0, _defineProperty2.default)(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; } /**
|
21
|
+
* Copyright IBM Corp. 2022, 2023
|
22
|
+
*
|
23
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
25
|
+
*/
|
21
26
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
22
27
|
var CustomizeColumnsTearsheet = function CustomizeColumnsTearsheet(_ref) {
|
23
28
|
var isOpen = _ref.isOpen,
|
@@ -160,5 +165,4 @@ CustomizeColumnsTearsheet.propTypes = {
|
|
160
165
|
selectAllLabel: _propTypes.default.string,
|
161
166
|
setIsTearsheetOpen: _propTypes.default.func.isRequired
|
162
167
|
};
|
163
|
-
var _default = CustomizeColumnsTearsheet;
|
164
|
-
exports.default = _default;
|
168
|
+
var _default = exports.default = CustomizeColumnsTearsheet;
|
@@ -15,13 +15,18 @@ var _settings = require("../../../../../settings");
|
|
15
15
|
var _getNodeTextContent = require("../../../../../global/js/utils/getNodeTextContent");
|
16
16
|
var _core = require("@dnd-kit/core");
|
17
17
|
var _sortable = require("@dnd-kit/sortable");
|
18
|
-
function ownKeys(
|
19
|
-
function _objectSpread(
|
18
|
+
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; }
|
19
|
+
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) { (0, _defineProperty2.default)(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; } /**
|
20
|
+
* Copyright IBM Corp. 2023, 2023
|
21
|
+
*
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
24
|
+
*/
|
20
25
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
21
26
|
var matchedColsById = function matchedColsById(col1, col2) {
|
22
27
|
return col1 && col2 && col1.id === col2.id;
|
23
28
|
};
|
24
|
-
var DraggableItemsList = function DraggableItemsList(_ref) {
|
29
|
+
var DraggableItemsList = exports.DraggableItemsList = function DraggableItemsList(_ref) {
|
25
30
|
var columns = _ref.columns,
|
26
31
|
filterString = _ref.filterString,
|
27
32
|
id = _ref.id,
|
@@ -178,7 +183,6 @@ var DraggableItemsList = function DraggableItemsList(_ref) {
|
|
178
183
|
}, listContents);
|
179
184
|
}))));
|
180
185
|
};
|
181
|
-
exports.DraggableItemsList = DraggableItemsList;
|
182
186
|
DraggableItemsList.propTypes = {
|
183
187
|
columns: _propTypes.PropTypes.array.isRequired,
|
184
188
|
filterString: _propTypes.PropTypes.string.isRequired,
|
@@ -12,8 +12,14 @@ var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
13
13
|
var _CustomizeColumnsTearsheet = _interopRequireDefault(require("./CustomizeColumnsTearsheet"));
|
14
14
|
var _excluded = ["onSaveColumnPrefs", "isTearsheetOpen", "setIsTearsheetOpen", "labels"];
|
15
|
-
|
16
|
-
|
15
|
+
/**
|
16
|
+
* Copyright IBM Corp. 2022, 2022
|
17
|
+
*
|
18
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
20
|
+
*/
|
21
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
22
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
17
23
|
var TearsheetWrapper = function TearsheetWrapper(_ref) {
|
18
24
|
var instance = _ref.instance;
|
19
25
|
var _instance$customizeCo = instance.customizeColumnsProps,
|
@@ -51,5 +57,4 @@ var TearsheetWrapper = function TearsheetWrapper(_ref) {
|
|
51
57
|
TearsheetWrapper.propTypes = {
|
52
58
|
instance: _propTypes.default.object.isRequired
|
53
59
|
};
|
54
|
-
var _default = TearsheetWrapper;
|
55
|
-
exports.default = _default;
|
60
|
+
var _default = exports.default = TearsheetWrapper;
|
@@ -15,7 +15,6 @@ var _isBoolean = _interopRequireDefault(require("lodash/isBoolean"));
|
|
15
15
|
* restricted by GSA ADP Schedule Contract with IBM Corp.
|
16
16
|
*/
|
17
17
|
|
18
|
-
var isColumnVisible = function isColumnVisible(colDef) {
|
18
|
+
var isColumnVisible = exports.isColumnVisible = function isColumnVisible(colDef) {
|
19
19
|
return (0, _isBoolean.default)(colDef.isVisible) ? colDef.isVisible : true;
|
20
|
-
};
|
21
|
-
exports.isColumnVisible = isColumnVisible;
|
20
|
+
};
|
@@ -19,8 +19,8 @@ var _settings = require("../../../../../settings");
|
|
19
19
|
var _ActionSet = require("../../../../ActionSet");
|
20
20
|
var _constants = require("./constants");
|
21
21
|
var _hooks2 = require("./hooks");
|
22
|
-
function _getRequireWildcardCache(
|
23
|
-
function _interopRequireWildcard(
|
22
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
23
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
24
24
|
/**
|
25
25
|
* Copyright IBM Corp. 2022, 2024
|
26
26
|
*
|
@@ -37,7 +37,6 @@ var defaults = {
|
|
37
37
|
secondaryActionLabel: 'Cancel'
|
38
38
|
};
|
39
39
|
var FilterFlyout = function FilterFlyout(_ref) {
|
40
|
-
var _cx2;
|
41
40
|
var updateMethod = _ref.updateMethod,
|
42
41
|
_ref$flyoutIconDescri = _ref.flyoutIconDescription,
|
43
42
|
flyoutIconDescription = _ref$flyoutIconDescri === void 0 ? defaults.flyoutIconDescription : _ref$flyoutIconDescri,
|
@@ -225,7 +224,7 @@ var FilterFlyout = function FilterFlyout(_ref) {
|
|
225
224
|
disabled: data.length === 0
|
226
225
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
227
226
|
ref: flyoutInnerRef,
|
228
|
-
className: (0, _classnames.default)(componentClass, (
|
227
|
+
className: (0, _classnames.default)(componentClass, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(componentClass, "--open"), open), "".concat(componentClass, "--batch"), showActionSet), "".concat(componentClass, "--instant"), !showActionSet))
|
229
228
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
230
229
|
className: "".concat(componentClass, "__inner-container")
|
231
230
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
@@ -297,5 +296,4 @@ FilterFlyout.propTypes = {
|
|
297
296
|
*/
|
298
297
|
updateMethod: _propTypes.default.oneOf([_constants.BATCH, _constants.INSTANT]).isRequired
|
299
298
|
};
|
300
|
-
var _default = FilterFlyout;
|
301
|
-
exports.default = _default;
|
299
|
+
var _default = exports.default = FilterFlyout;
|
@@ -21,8 +21,8 @@ var _iconsReact = require("@carbon/icons-react");
|
|
21
21
|
var _ActionSet = require("../../../../ActionSet");
|
22
22
|
var _ = require(".");
|
23
23
|
var _hooks = require("./hooks");
|
24
|
-
function _getRequireWildcardCache(
|
25
|
-
function _interopRequireWildcard(
|
24
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
25
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
26
26
|
/**
|
27
27
|
* Copyright IBM Corp. 2022, 2024
|
28
28
|
*
|
@@ -42,7 +42,6 @@ var defaults = {
|
|
42
42
|
searchPlaceholder: 'Find filters'
|
43
43
|
};
|
44
44
|
var FilterPanel = function FilterPanel(_ref) {
|
45
|
-
var _cx;
|
46
45
|
var _ref$title = _ref.title,
|
47
46
|
title = _ref$title === void 0 ? defaults.title : _ref$title,
|
48
47
|
_ref$closeIconDescrip = _ref.closeIconDescription,
|
@@ -185,7 +184,7 @@ var FilterPanel = function FilterPanel(_ref) {
|
|
185
184
|
}, [panelOpen, onPanelClose, onPanelOpen]);
|
186
185
|
(0, _react.useEffect)(function setPanelMinimumHeight() {
|
187
186
|
var _filterPanelRef$curre;
|
188
|
-
(_filterPanelRef$curre = filterPanelRef.current) === null || _filterPanelRef$curre === void 0
|
187
|
+
(_filterPanelRef$curre = filterPanelRef.current) === null || _filterPanelRef$curre === void 0 || _filterPanelRef$curre.style.setProperty('--filter-panel-min-height', (0, _layout.rem)(filterPanelMinHeight));
|
189
188
|
}, [filterPanelMinHeight]);
|
190
189
|
(0, _hooks.useSubscribeToEventEmitter)(_constants.CLEAR_FILTERS, reset);
|
191
190
|
var getScrollableContainerHeight = function getScrollableContainerHeight() {
|
@@ -193,13 +192,13 @@ var FilterPanel = function FilterPanel(_ref) {
|
|
193
192
|
var filterHeadingHeight = (_filterHeadingRef$cur = filterHeadingRef.current) === null || _filterHeadingRef$cur === void 0 ? void 0 : _filterHeadingRef$cur.getBoundingClientRect().height;
|
194
193
|
var filterSearchHeight = (_filterSearchRef$curr = filterSearchRef.current) === null || _filterSearchRef$curr === void 0 ? void 0 : _filterSearchRef$curr.getBoundingClientRect().height;
|
195
194
|
var actionSetHeight = (_actionSetRef$current = actionSetRef.current) === null || _actionSetRef$current === void 0 ? void 0 : _actionSetRef$current.getBoundingClientRect().height;
|
196
|
-
var height = panelOpen ? "calc(100vh - ".concat(filterHeadingHeight, "px - ").concat(
|
195
|
+
var height = panelOpen ? "calc(100vh - ".concat(filterHeadingHeight, "px - ").concat(/* istanbul ignore next */
|
197
196
|
showFilterSearch ? filterSearchHeight : 0, "px - ").concat(updateMethod === _constants.BATCH ? actionSetHeight : 0, "px)") : 0;
|
198
197
|
return height;
|
199
198
|
};
|
200
199
|
return /*#__PURE__*/_react.default.createElement(_framerMotion.motion.div, {
|
201
200
|
ref: filterPanelRef,
|
202
|
-
className: (0, _classnames.default)(componentClass, "".concat(componentClass, "__container"), (
|
201
|
+
className: (0, _classnames.default)(componentClass, "".concat(componentClass, "__container"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(componentClass, "--open"), panelOpen), "".concat(componentClass, "--batch"), showActionSet), "".concat(componentClass, "--instant"), !showActionSet)),
|
203
202
|
initial: false,
|
204
203
|
animate: panelOpen ? 'visible' : 'hidden',
|
205
204
|
custom: shouldReduceMotion,
|
@@ -288,5 +287,4 @@ FilterPanel.propTypes = {
|
|
288
287
|
title: _propTypes.default.string,
|
289
288
|
updateMethod: _propTypes.default.oneOf([_constants.BATCH, _constants.INSTANT])
|
290
289
|
};
|
291
|
-
var _default = FilterPanel;
|
292
|
-
exports.default = _default;
|
290
|
+
var _default = exports.default = FilterPanel;
|
@@ -12,12 +12,16 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
14
14
|
var _constants = require("./constants");
|
15
|
-
function _getRequireWildcardCache(
|
16
|
-
function _interopRequireWildcard(
|
17
|
-
function ownKeys(
|
18
|
-
function _objectSpread(
|
19
|
-
|
20
|
-
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
17
|
+
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; }
|
18
|
+
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) { (0, _defineProperty2.default)(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; } /**
|
19
|
+
* Copyright IBM Corp. 2022, 2024
|
20
|
+
*
|
21
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
23
|
+
*/
|
24
|
+
var FilterContext = exports.FilterContext = /*#__PURE__*/(0, _react.createContext)();
|
21
25
|
var EventEmitter = {
|
22
26
|
events: {},
|
23
27
|
dispatch: function dispatch(event, data) {
|
@@ -54,7 +58,7 @@ var updateFilterState = function updateFilterState(state, type, value) {
|
|
54
58
|
});
|
55
59
|
return removeFilterItem(state, filterTagIndex);
|
56
60
|
};
|
57
|
-
var clearSingleFilter = function clearSingleFilter(_ref, setAllFilters, state) {
|
61
|
+
var clearSingleFilter = exports.clearSingleFilter = function clearSingleFilter(_ref, setAllFilters, state) {
|
58
62
|
var key = _ref.key,
|
59
63
|
value = _ref.value;
|
60
64
|
var tempState = (0, _toConsumableArray2.default)(state.filters);
|
@@ -92,7 +96,6 @@ var clearSingleFilter = function clearSingleFilter(_ref, setAllFilters, state) {
|
|
92
96
|
});
|
93
97
|
setAllFilters(tempState);
|
94
98
|
};
|
95
|
-
exports.clearSingleFilter = clearSingleFilter;
|
96
99
|
var handleSingleFilterRemoval = function handleSingleFilterRemoval(key, value) {
|
97
100
|
EventEmitter.dispatch(_constants.CLEAR_SINGLE_FILTER, {
|
98
101
|
key: key,
|
@@ -161,7 +164,7 @@ var filteringReducer = function filteringReducer(state, action) {
|
|
161
164
|
return state;
|
162
165
|
}
|
163
166
|
};
|
164
|
-
var FilterProvider = function FilterProvider(_ref4) {
|
167
|
+
var FilterProvider = exports.FilterProvider = function FilterProvider(_ref4) {
|
165
168
|
var children = _ref4.children,
|
166
169
|
filters = _ref4.filters,
|
167
170
|
filterProps = _ref4.filterProps;
|
@@ -191,7 +194,6 @@ var FilterProvider = function FilterProvider(_ref4) {
|
|
191
194
|
value: value
|
192
195
|
}, children);
|
193
196
|
};
|
194
|
-
exports.FilterProvider = FilterProvider;
|
195
197
|
FilterProvider.propTypes = {
|
196
198
|
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]).isRequired,
|
197
199
|
filterProps: _propTypes.default.object,
|
@@ -12,43 +12,28 @@ exports.SAVED_FILTERS = exports.RADIO = exports.PANEL_WIDTH = exports.PANEL = ex
|
|
12
12
|
*/
|
13
13
|
|
14
14
|
/** Constants for update methods can either be batch or instant */
|
15
|
-
var BATCH = 'batch';
|
16
|
-
exports.
|
17
|
-
var INSTANT = 'instant';
|
15
|
+
var BATCH = exports.BATCH = 'batch';
|
16
|
+
var INSTANT = exports.INSTANT = 'instant';
|
18
17
|
|
19
18
|
/** Constants for filter variation */
|
20
|
-
exports.
|
21
|
-
var
|
22
|
-
exports.FLYOUT = FLYOUT;
|
23
|
-
var PANEL = 'panel';
|
19
|
+
var FLYOUT = exports.FLYOUT = 'flyout';
|
20
|
+
var PANEL = exports.PANEL = 'panel';
|
24
21
|
|
25
22
|
/** Constants for filter type */
|
26
|
-
exports.
|
27
|
-
var
|
28
|
-
exports.
|
29
|
-
var
|
30
|
-
exports.
|
31
|
-
var
|
32
|
-
exports.CHECKBOX = CHECKBOX;
|
33
|
-
var RADIO = 'radio';
|
34
|
-
exports.RADIO = RADIO;
|
35
|
-
var DROPDOWN = 'dropdown';
|
36
|
-
exports.DROPDOWN = DROPDOWN;
|
37
|
-
var MULTISELECT = 'multiSelect';
|
23
|
+
var DATE = exports.DATE = 'date';
|
24
|
+
var NUMBER = exports.NUMBER = 'number';
|
25
|
+
var CHECKBOX = exports.CHECKBOX = 'checkbox';
|
26
|
+
var RADIO = exports.RADIO = 'radio';
|
27
|
+
var DROPDOWN = exports.DROPDOWN = 'dropdown';
|
28
|
+
var MULTISELECT = exports.MULTISELECT = 'multiSelect';
|
38
29
|
|
39
30
|
/** Constants for event emitters */
|
40
|
-
exports.
|
41
|
-
var
|
42
|
-
exports.CLEAR_FILTERS = CLEAR_FILTERS;
|
43
|
-
var CLEAR_SINGLE_FILTER = 'clearSingleFilter';
|
31
|
+
var CLEAR_FILTERS = exports.CLEAR_FILTERS = 'clearFilters';
|
32
|
+
var CLEAR_SINGLE_FILTER = exports.CLEAR_SINGLE_FILTER = 'clearSingleFilter';
|
44
33
|
|
45
34
|
/** Constants for panel dimensions */
|
46
|
-
exports.
|
47
|
-
var
|
48
|
-
exports.PANEL_WIDTH = PANEL_WIDTH;
|
49
|
-
var ACTION_SET_HEIGHT = 64;
|
35
|
+
var PANEL_WIDTH = exports.PANEL_WIDTH = 320;
|
36
|
+
var ACTION_SET_HEIGHT = exports.ACTION_SET_HEIGHT = 64;
|
50
37
|
|
51
38
|
/** Constants for local reducer */
|
52
|
-
exports.
|
53
|
-
var SAVED_FILTERS = 'savedFilters';
|
54
|
-
exports.SAVED_FILTERS = SAVED_FILTERS;
|
39
|
+
var SAVED_FILTERS = exports.SAVED_FILTERS = 'savedFilters';
|
@@ -16,10 +16,15 @@ var _constants = require("../constants");
|
|
16
16
|
var _utils = require("../utils");
|
17
17
|
var _hooks = require("../../../../../../global/js/hooks");
|
18
18
|
var _FilterProvider = require("../FilterProvider");
|
19
|
-
function _getRequireWildcardCache(
|
20
|
-
function _interopRequireWildcard(
|
21
|
-
function ownKeys(
|
22
|
-
function _objectSpread(
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
21
|
+
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; }
|
22
|
+
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) { (0, _defineProperty2.default)(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; } /**
|
23
|
+
* Copyright IBM Corp. 2023, 2024
|
24
|
+
*
|
25
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
27
|
+
*/
|
23
28
|
var useFilters = function useFilters(_ref) {
|
24
29
|
var updateMethod = _ref.updateMethod,
|
25
30
|
_ref$filters = _ref.filters,
|
@@ -212,7 +217,7 @@ var useFilters = function useFilters(_ref) {
|
|
212
217
|
value: value,
|
213
218
|
type: type
|
214
219
|
});
|
215
|
-
(_components$DatePicke = (_components$DatePicke2 = components.DatePicker).onChange) === null || _components$DatePicke === void 0
|
220
|
+
(_components$DatePicke = (_components$DatePicke2 = components.DatePicker).onChange) === null || _components$DatePicke === void 0 || _components$DatePicke.call(_components$DatePicke2, value);
|
216
221
|
},
|
217
222
|
value: filtersState[column].value,
|
218
223
|
datePickerType: "range",
|
@@ -242,7 +247,7 @@ var useFilters = function useFilters(_ref) {
|
|
242
247
|
value: event.target.value,
|
243
248
|
type: type
|
244
249
|
});
|
245
|
-
(_components$NumberInp = (_components$NumberInp2 = components.NumberInput).onChange) === null || _components$NumberInp === void 0
|
250
|
+
(_components$NumberInp = (_components$NumberInp2 = components.NumberInput).onChange) === null || _components$NumberInp === void 0 || _components$NumberInp.call(_components$NumberInp2, event);
|
246
251
|
},
|
247
252
|
value: filtersState[column].value,
|
248
253
|
light: isPanel
|
@@ -269,7 +274,7 @@ var useFilters = function useFilters(_ref) {
|
|
269
274
|
value: (0, _toConsumableArray2.default)(filtersState[column].value),
|
270
275
|
type: type
|
271
276
|
});
|
272
|
-
(_option$onChange = option.onChange) === null || _option$onChange === void 0
|
277
|
+
(_option$onChange = option.onChange) === null || _option$onChange === void 0 || _option$onChange.call(option, isSelected);
|
273
278
|
},
|
274
279
|
checked: option.selected
|
275
280
|
}));
|
@@ -293,12 +298,12 @@ var useFilters = function useFilters(_ref) {
|
|
293
298
|
value: selected,
|
294
299
|
type: type
|
295
300
|
});
|
296
|
-
(_components$RadioButt2 = (_components$RadioButt3 = components.RadioButtonGroup).onChange) === null || _components$RadioButt2 === void 0
|
301
|
+
(_components$RadioButt2 = (_components$RadioButt3 = components.RadioButtonGroup).onChange) === null || _components$RadioButt2 === void 0 || _components$RadioButt2.call(_components$RadioButt3, selected);
|
297
302
|
}
|
298
303
|
}), /*#__PURE__*/_react.default.createElement(_carbonComponentsReact.RadioButton, (0, _extends2.default)({
|
299
|
-
id: (_components$DefaultRa3 = components === null || components === void 0
|
300
|
-
labelText: (_components$DefaultRa5 = components === null || components === void 0
|
301
|
-
value: (_components$DefaultRa7 = components === null || components === void 0
|
304
|
+
id: (_components$DefaultRa3 = components === null || components === void 0 || (_components$DefaultRa4 = components.DefaultRadioButton) === null || _components$DefaultRa4 === void 0 ? void 0 : _components$DefaultRa4.id) !== null && _components$DefaultRa3 !== void 0 ? _components$DefaultRa3 : "any__".concat(name),
|
305
|
+
labelText: (_components$DefaultRa5 = components === null || components === void 0 || (_components$DefaultRa6 = components.DefaultRadioButton) === null || _components$DefaultRa6 === void 0 ? void 0 : _components$DefaultRa6.labelText) !== null && _components$DefaultRa5 !== void 0 ? _components$DefaultRa5 : 'Any',
|
306
|
+
value: (_components$DefaultRa7 = components === null || components === void 0 || (_components$DefaultRa8 = components.DefaultRadioButton) === null || _components$DefaultRa8 === void 0 ? void 0 : _components$DefaultRa8.value) !== null && _components$DefaultRa7 !== void 0 ? _components$DefaultRa7 : 'Any'
|
302
307
|
}, components.DefaultRadioButton)), components.RadioButton.map(function (radio) {
|
303
308
|
var _ref4, _radio$id;
|
304
309
|
return /*#__PURE__*/_react.default.createElement(_carbonComponentsReact.RadioButton, (0, _extends2.default)({
|
@@ -323,7 +328,7 @@ var useFilters = function useFilters(_ref) {
|
|
323
328
|
value: selectedItem,
|
324
329
|
type: type
|
325
330
|
});
|
326
|
-
(_components$Dropdown$ = (_components$Dropdown = components.Dropdown).onChange) === null || _components$Dropdown$ === void 0
|
331
|
+
(_components$Dropdown$ = (_components$Dropdown = components.Dropdown).onChange) === null || _components$Dropdown$ === void 0 || _components$Dropdown$.call(_components$Dropdown, selectedItem);
|
327
332
|
},
|
328
333
|
light: isPanel
|
329
334
|
}));
|
@@ -387,7 +392,7 @@ var useFilters = function useFilters(_ref) {
|
|
387
392
|
value: (0, _toConsumableArray2.default)(filtersState[column].value),
|
388
393
|
type: type
|
389
394
|
});
|
390
|
-
(_components$MultiSele = components.MultiSelect) === null || _components$MultiSele === void 0
|
395
|
+
(_components$MultiSele = components.MultiSelect) === null || _components$MultiSele === void 0 || (_components$MultiSele2 = _components$MultiSele.onChange) === null || _components$MultiSele2 === void 0 || _components$MultiSele2.call(_components$MultiSele, selectedItems);
|
391
396
|
}
|
392
397
|
}));
|
393
398
|
break;
|
@@ -478,5 +483,4 @@ var useFilters = function useFilters(_ref) {
|
|
478
483
|
cancel: cancel
|
479
484
|
};
|
480
485
|
};
|
481
|
-
var _default = useFilters;
|
482
|
-
exports.default = _default;
|
486
|
+
var _default = exports.default = useFilters;
|
@@ -37,5 +37,4 @@ var useShouldDisableButtons = function useShouldDisableButtons(_ref) {
|
|
37
37
|
}, [filtersState, prevFiltersRef]);
|
38
38
|
return [shouldDisableButtons, setShouldDisableButtons];
|
39
39
|
};
|
40
|
-
var _default = useShouldDisableButtons;
|
41
|
-
exports.default = _default;
|
40
|
+
var _default = exports.default = useShouldDisableButtons;
|
package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js
CHANGED
@@ -26,5 +26,4 @@ var useSubscribeToEventEmitter = function useSubscribeToEventEmitter(type, callb
|
|
26
26
|
EventEmitter.subscribe(type, callback);
|
27
27
|
});
|
28
28
|
};
|
29
|
-
var _default = useSubscribeToEventEmitter;
|
30
|
-
exports.default = _default;
|
29
|
+
var _default = exports.default = useSubscribeToEventEmitter;
|
@@ -13,7 +13,7 @@ var _constants = require("../constants");
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
14
14
|
*/
|
15
15
|
|
16
|
-
var panelVariants = {
|
16
|
+
var panelVariants = exports.panelVariants = {
|
17
17
|
hidden: function hidden(shouldReduceMotion) {
|
18
18
|
return {
|
19
19
|
width: 0,
|
@@ -37,8 +37,7 @@ var panelVariants = {
|
|
37
37
|
};
|
38
38
|
}
|
39
39
|
};
|
40
|
-
exports.
|
41
|
-
var innerContainerVariants = {
|
40
|
+
var innerContainerVariants = exports.innerContainerVariants = {
|
42
41
|
hidden: function hidden(shouldReduceMotion) {
|
43
42
|
return {
|
44
43
|
opacity: 0,
|
@@ -59,8 +58,7 @@ var innerContainerVariants = {
|
|
59
58
|
};
|
60
59
|
}
|
61
60
|
};
|
62
|
-
exports.
|
63
|
-
var actionSetVariants = {
|
61
|
+
var actionSetVariants = exports.actionSetVariants = {
|
64
62
|
hidden: function hidden(shouldReduceMotion) {
|
65
63
|
return {
|
66
64
|
y: shouldReduceMotion ? 0 : _constants.ACTION_SET_HEIGHT,
|
@@ -82,5 +80,4 @@ var actionSetVariants = {
|
|
82
80
|
}
|
83
81
|
};
|
84
82
|
}
|
85
|
-
};
|
86
|
-
exports.actionSetVariants = actionSetVariants;
|
83
|
+
};
|