@carbon/ibm-products 1.73.1 → 1.73.3
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 +33 -55
- 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 +24 -41
- 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 +26 -49
- 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 +30 -53
- 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/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 +6 -11
- 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 +13 -13
- package/scss/components/AboutModal/_about-modal.scss +1 -2
- package/scss/components/Checklist/_checklist.scss +0 -1
- package/scss/components/Coachmark/styles/_coachmark-tagline.scss +1 -4
- package/scss/components/Datagrid/_datagrid.scss +0 -1
- package/scss/components/Datagrid/styles/_datagrid.scss +1 -2
- package/scss/components/SidePanel/_side-panel.scss +1 -4
@@ -9,9 +9,14 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
9
9
|
var _deepCloneObject = require("../../../global/js/utils/deepCloneObject");
|
10
10
|
var _uuidv = _interopRequireDefault(require("../../../global/js/utils/uuidv4"));
|
11
11
|
var _selectAllCells = require("./selectAllCells");
|
12
|
-
function ownKeys(
|
13
|
-
function _objectSpread(
|
14
|
-
|
12
|
+
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; }
|
13
|
+
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; } /**
|
14
|
+
* Copyright IBM Corp. 2022, 2022
|
15
|
+
*
|
16
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
18
|
+
*/
|
19
|
+
var includesResourceKey = exports.includesResourceKey = function includesResourceKey(arr, usingMac) {
|
15
20
|
if (usingMac) {
|
16
21
|
return includesMeta(arr);
|
17
22
|
}
|
@@ -19,14 +24,12 @@ var includesResourceKey = function includesResourceKey(arr, usingMac) {
|
|
19
24
|
return includesControl(arr);
|
20
25
|
}
|
21
26
|
};
|
22
|
-
exports.
|
23
|
-
var includesShift = function includesShift(arr) {
|
27
|
+
var includesShift = exports.includesShift = function includesShift(arr) {
|
24
28
|
if (arr.includes('ShiftLeft') || arr.includes('ShiftRight')) {
|
25
29
|
return true;
|
26
30
|
}
|
27
31
|
return false;
|
28
32
|
};
|
29
|
-
exports.includesShift = includesShift;
|
30
33
|
var includesMeta = function includesMeta(arr) {
|
31
34
|
if (arr.includes('MetaLeft') || arr.includes('MetaRight')) {
|
32
35
|
return true;
|
@@ -39,7 +42,7 @@ var includesControl = function includesControl(arr) {
|
|
39
42
|
}
|
40
43
|
return false;
|
41
44
|
};
|
42
|
-
var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
45
|
+
var handleMultipleKeys = exports.handleMultipleKeys = function handleMultipleKeys(_ref) {
|
43
46
|
var _selectionAreasClone$, _selectionAreasClone$2, _selectionAreasClone$3;
|
44
47
|
var activeCellCoordinates = _ref.activeCellCoordinates,
|
45
48
|
event = _ref.event,
|
@@ -258,5 +261,4 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
258
261
|
}, 1000);
|
259
262
|
}
|
260
263
|
}
|
261
|
-
};
|
262
|
-
exports.handleMultipleKeys = handleMultipleKeys;
|
264
|
+
};
|
@@ -13,7 +13,7 @@ var _settings = require("../../../settings");
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
14
14
|
*/
|
15
15
|
|
16
|
-
var moveColumnIndicatorLine = function moveColumnIndicatorLine(_ref) {
|
16
|
+
var moveColumnIndicatorLine = exports.moveColumnIndicatorLine = function moveColumnIndicatorLine(_ref) {
|
17
17
|
var _ref$blockClass = _ref.blockClass,
|
18
18
|
blockClass = _ref$blockClass === void 0 ? "".concat(_settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
|
19
19
|
clonedSelectionElement = _ref.clonedSelectionElement,
|
@@ -36,5 +36,4 @@ var moveColumnIndicatorLine = function moveColumnIndicatorLine(_ref) {
|
|
36
36
|
if (Number(newColumnIndex) === Number(originalColumnIndex)) {
|
37
37
|
indicatorLineElement.style.left = selectionAreaOrigin.style.left;
|
38
38
|
}
|
39
|
-
};
|
40
|
-
exports.moveColumnIndicatorLine = moveColumnIndicatorLine;
|
39
|
+
};
|
@@ -15,7 +15,7 @@ var _settings = require("../../../settings");
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
// Removes the cell selection elements
|
18
|
-
var removeCellSelections = function removeCellSelections(_ref) {
|
18
|
+
var removeCellSelections = exports.removeCellSelections = function removeCellSelections(_ref) {
|
19
19
|
var matcher = _ref.matcher,
|
20
20
|
spreadsheetRef = _ref.spreadsheetRef,
|
21
21
|
_ref$blockClass = _ref.blockClass,
|
@@ -31,5 +31,4 @@ var removeCellSelections = function removeCellSelections(_ref) {
|
|
31
31
|
return element.remove();
|
32
32
|
});
|
33
33
|
}
|
34
|
-
};
|
35
|
-
exports.removeCellSelections = removeCellSelections;
|
34
|
+
};
|
@@ -8,9 +8,14 @@ exports.selectAllCells = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
9
9
|
var _removeCellSelections = require("./removeCellSelections");
|
10
10
|
var _uuidv = _interopRequireDefault(require("../../../global/js/utils/uuidv4"));
|
11
|
-
function ownKeys(
|
12
|
-
function _objectSpread(
|
13
|
-
|
11
|
+
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
|
+
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; } /**
|
13
|
+
* Copyright IBM Corp. 2022, 2022
|
14
|
+
*
|
15
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
17
|
+
*/
|
18
|
+
var selectAllCells = exports.selectAllCells = function selectAllCells(_ref) {
|
14
19
|
var activeCellCoordinates = _ref.activeCellCoordinates,
|
15
20
|
columns = _ref.columns,
|
16
21
|
setCurrentMatcher = _ref.setCurrentMatcher,
|
@@ -46,5 +51,4 @@ var selectAllCells = function selectAllCells(_ref) {
|
|
46
51
|
});
|
47
52
|
setCurrentMatcher(tempMatcher);
|
48
53
|
return setSelectionAreas([newSelectionArea]);
|
49
|
-
};
|
50
|
-
exports.selectAllCells = selectAllCells;
|
54
|
+
};
|
@@ -17,9 +17,15 @@ var _InlineEditContext = require("./addons/InlineEdit/InlineEditContext");
|
|
17
17
|
var _DatagridContent = require("./DatagridContent");
|
18
18
|
var _FilterProvider = require("./addons/Filtering/FilterProvider");
|
19
19
|
var _excluded = ["ariaToolbarLabel", "datagridState", "title"];
|
20
|
+
/**
|
21
|
+
* Copyright IBM Corp. 2020, 2022
|
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
|
+
*/
|
20
26
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
21
27
|
var componentName = 'Datagrid';
|
22
|
-
var Datagrid = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
28
|
+
var Datagrid = exports.Datagrid = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
23
29
|
var ariaToolbarLabel = _ref.ariaToolbarLabel,
|
24
30
|
datagridState = _ref.datagridState,
|
25
31
|
title = _ref.title,
|
@@ -54,7 +60,6 @@ var Datagrid = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
54
60
|
});
|
55
61
|
|
56
62
|
// Return a placeholder if not released and not enabled by feature flag
|
57
|
-
exports.Datagrid = Datagrid;
|
58
63
|
exports.Datagrid = Datagrid = _settings.pkg.checkComponentEnabled(Datagrid, componentName);
|
59
64
|
|
60
65
|
// The display name of the component, used by React. Note that displayName
|
@@ -35,5 +35,4 @@ var DatagridBody = function DatagridBody(datagridState) {
|
|
35
35
|
}
|
36
36
|
return /*#__PURE__*/_react.default.createElement(_DatagridSimpleBody.default, datagridState);
|
37
37
|
};
|
38
|
-
var _default = DatagridBody;
|
39
|
-
exports.default = _default;
|
38
|
+
var _default = exports.default = DatagridBody;
|
@@ -28,8 +28,8 @@ var _Filtering = require("./addons/Filtering");
|
|
28
28
|
var _constants = require("./addons/Filtering/constants");
|
29
29
|
var _hooks3 = require("./addons/Filtering/hooks");
|
30
30
|
var _FilterProvider = require("./addons/Filtering/FilterProvider");
|
31
|
-
function _getRequireWildcardCache(
|
32
|
-
function _interopRequireWildcard(
|
31
|
+
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); }
|
32
|
+
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; }
|
33
33
|
/**
|
34
34
|
* Copyright IBM Corp. 2022, 2023
|
35
35
|
*
|
@@ -40,8 +40,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
40
40
|
var TableContainer = _carbonComponentsReact.DataTable.TableContainer,
|
41
41
|
Table = _carbonComponentsReact.DataTable.Table;
|
42
42
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
43
|
-
var DatagridContent = function DatagridContent(_ref) {
|
44
|
-
var _cx5;
|
43
|
+
var DatagridContent = exports.DatagridContent = function DatagridContent(_ref) {
|
45
44
|
var ariaToolbarLabel = _ref.ariaToolbarLabel,
|
46
45
|
datagridState = _ref.datagridState,
|
47
46
|
title = _ref.title;
|
@@ -162,7 +161,7 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
162
161
|
}
|
163
162
|
};
|
164
163
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(TableContainer, {
|
165
|
-
className: (0, _classnames.default)("".concat(blockClass, "__grid-container"), withVirtualScroll || fullHeightDatagrid ? "".concat(blockClass, "__full-height") : '', DatagridPagination ? "".concat(blockClass, "__with-pagination") : '', useDenseHeader ? "".concat(blockClass, "__dense-header") : '', (
|
164
|
+
className: (0, _classnames.default)("".concat(blockClass, "__grid-container"), withVirtualScroll || fullHeightDatagrid ? "".concat(blockClass, "__full-height") : '', DatagridPagination ? "".concat(blockClass, "__with-pagination") : '', useDenseHeader ? "".concat(blockClass, "__dense-header") : '', (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__grid-container-grid-active"), gridActive), "".concat(blockClass, "__grid-container-inline-edit"), withInlineEdit), "".concat(blockClass, "__grid-container-grid-active--without-toolbar"), withInlineEdit && !DatagridActions)),
|
166
165
|
title: gridTitle,
|
167
166
|
description: gridDescription
|
168
167
|
}, /*#__PURE__*/_react.default.createElement(_DatagridToolbar.default, (0, _extends2.default)({}, datagridState, {
|
@@ -185,7 +184,6 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
185
184
|
instance: datagridState
|
186
185
|
}));
|
187
186
|
};
|
188
|
-
exports.DatagridContent = DatagridContent;
|
189
187
|
DatagridContent.propTypes = {
|
190
188
|
ariaToolbarLabel: _propTypes.default.string,
|
191
189
|
datagridState: _propTypes.default.shape({
|
@@ -50,5 +50,4 @@ var DatagridEmptyBody = function DatagridEmptyBody(datagridState) {
|
|
50
50
|
colSpan: headers.length
|
51
51
|
}, validEmptyStates.includes(emptyStateType) ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, emptyStateType === 'error' && /*#__PURE__*/_react.default.createElement(_EmptyStates.ErrorEmptyState, emptyStateProps), emptyStateType === 'noData' && /*#__PURE__*/_react.default.createElement(_EmptyStates.NoDataEmptyState, emptyStateProps), emptyStateType === 'notFound' && /*#__PURE__*/_react.default.createElement(_EmptyStates.NotFoundEmptyState, emptyStateProps)) : /*#__PURE__*/_react.default.createElement(_EmptyStates.EmptyState, emptyStateProps))));
|
52
52
|
};
|
53
|
-
var _default = DatagridEmptyBody;
|
54
|
-
exports.default = _default;
|
53
|
+
var _default = exports.default = DatagridEmptyBody;
|
@@ -51,5 +51,4 @@ var DatagridExpandedRow = function DatagridExpandedRow(ExpandedRowContentCompone
|
|
51
51
|
}, /*#__PURE__*/_react.default.createElement(ExpandedRowContentComponent, datagridState))));
|
52
52
|
};
|
53
53
|
};
|
54
|
-
var _default = DatagridExpandedRow;
|
55
|
-
exports.default = _default;
|
54
|
+
var _default = exports.default = DatagridExpandedRow;
|
@@ -18,10 +18,15 @@ var _settings = require("../../../settings");
|
|
18
18
|
var _stateReducer = require("./addons/stateReducer");
|
19
19
|
var _getNodeTextContent = require("../../../global/js/utils/getNodeTextContent");
|
20
20
|
var _useInitialColumnSort = require("../useInitialColumnSort");
|
21
|
-
function _getRequireWildcardCache(
|
22
|
-
function _interopRequireWildcard(
|
23
|
-
function ownKeys(
|
24
|
-
function _objectSpread(
|
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; }
|
23
|
+
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; }
|
24
|
+
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; } /**
|
25
|
+
* Copyright IBM Corp. 2020, 2023
|
26
|
+
*
|
27
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
29
|
+
*/
|
25
30
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
26
31
|
var getAccessibilityProps = function getAccessibilityProps(header) {
|
27
32
|
var props = {};
|
@@ -74,7 +79,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
74
79
|
event.target.blur();
|
75
80
|
return;
|
76
81
|
}
|
77
|
-
onMouseDown === null || onMouseDown === void 0
|
82
|
+
onMouseDown === null || onMouseDown === void 0 || onMouseDown(event);
|
78
83
|
};
|
79
84
|
return /*#__PURE__*/_react.default.createElement(TableRow, (0, _extends2.default)({}, headerGroup.getHeaderGroupProps({
|
80
85
|
role: undefined
|
@@ -85,7 +90,6 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
85
90
|
var isVisible = _ref2.isVisible;
|
86
91
|
return isVisible;
|
87
92
|
}).map(function (header, index) {
|
88
|
-
var _cx;
|
89
93
|
if (header.id === _commonColumnIds.selectionColumnId) {
|
90
94
|
// render directly without the wrapper TableHeader
|
91
95
|
return header.render('Header', {
|
@@ -105,7 +109,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
105
109
|
return /*#__PURE__*/_react.default.createElement(TableHeader, (0, _extends2.default)({}, header.getHeaderProps({
|
106
110
|
role: undefined
|
107
111
|
}), {
|
108
|
-
className: (0, _classnames.default)((
|
112
|
+
className: (0, _classnames.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__resizableColumn"), header.getResizerProps), "".concat(blockClass, "__isResizing"), header.isResizing), "".concat(blockClass, "__sortableColumn"), datagridState.isTableSortable && header.id !== 'spacer'), "".concat(blockClass, "__isSorted"), header.isSorted), "".concat(blockClass, "__header-actions-column"), header.isAction), header.getHeaderProps().className),
|
109
113
|
key: header.id,
|
110
114
|
"aria-hidden": header.id === 'spacer' && 'true'
|
111
115
|
}, getAccessibilityProps(header)), header.render('Header'), header.getResizerProps && !header.isAction && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("input", (0, _extends2.default)({}, header.getResizerProps(), {
|
@@ -155,5 +159,4 @@ var useHeaderRow = function useHeaderRow(hooks) {
|
|
155
159
|
};
|
156
160
|
hooks.useInstance.push(useInstance);
|
157
161
|
};
|
158
|
-
var _default = useHeaderRow;
|
159
|
-
exports.default = _default;
|
162
|
+
var _default = exports.default = useHeaderRow;
|
@@ -10,8 +10,14 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
12
12
|
var _settings = require("../../../settings");
|
13
|
-
function ownKeys(
|
14
|
-
function _objectSpread(
|
13
|
+
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
|
+
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; } /*
|
15
|
+
* Licensed Materials - Property of IBM
|
16
|
+
* 5724-Q36
|
17
|
+
* (c) Copyright IBM Corp. 2021
|
18
|
+
* US Government Users Restricted Rights - Use, duplication or disclosure
|
19
|
+
* restricted by GSA ADP Schedule Contract with IBM Corp.
|
20
|
+
*/
|
15
21
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
16
22
|
|
17
23
|
// TableBody from carbon is a functional component
|
@@ -36,5 +42,4 @@ var DatagridRefBody = function DatagridRefBody(datagridState) {
|
|
36
42
|
}));
|
37
43
|
}));
|
38
44
|
};
|
39
|
-
var _default = DatagridRefBody;
|
40
|
-
exports.default = _default;
|
45
|
+
var _default = exports.default = DatagridRefBody;
|
@@ -15,8 +15,13 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
var _commonColumnIds = require("../common-column-ids");
|
16
16
|
var _settings = require("../../../settings");
|
17
17
|
var _excluded = ["children"];
|
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. 2020, 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 TableRow = _carbonComponentsReact.DataTable.TableRow,
|
22
27
|
TableCell = _carbonComponentsReact.DataTable.TableCell;
|
@@ -30,7 +35,6 @@ var rowHeights = {
|
|
30
35
|
|
31
36
|
// eslint-disable-next-line react/prop-types
|
32
37
|
var DatagridRow = function DatagridRow(datagridState) {
|
33
|
-
var _cx;
|
34
38
|
var row = datagridState.row,
|
35
39
|
rowSize = datagridState.rowSize,
|
36
40
|
withNestedRows = datagridState.withNestedRows,
|
@@ -40,14 +44,14 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
40
44
|
withExpandedRows = datagridState.withExpandedRows,
|
41
45
|
withMouseHover = datagridState.withMouseHover,
|
42
46
|
setMouseOverRowIndex = datagridState.setMouseOverRowIndex;
|
43
|
-
var
|
47
|
+
var _getVisibleNestedRowCount = function getVisibleNestedRowCount(_ref) {
|
44
48
|
var isExpanded = _ref.isExpanded,
|
45
49
|
subRows = _ref.subRows;
|
46
50
|
var size = 0;
|
47
51
|
if (isExpanded && subRows) {
|
48
52
|
size += subRows.length;
|
49
53
|
subRows.forEach(function (child) {
|
50
|
-
size +=
|
54
|
+
size += _getVisibleNestedRowCount(child);
|
51
55
|
});
|
52
56
|
}
|
53
57
|
return size;
|
@@ -57,15 +61,15 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
57
61
|
if (!withNestedRows) {
|
58
62
|
return;
|
59
63
|
}
|
60
|
-
var subRowCount =
|
64
|
+
var subRowCount = _getVisibleNestedRowCount(row);
|
61
65
|
var totalNestedRowIndicatorHeight = (0, _layout.px)(subRowCount * rowHeights[rowSize]);
|
62
66
|
var hoverRow = event.target.closest(".".concat(blockClass, "__carbon-row-expanded"));
|
63
|
-
hoverRow === null || hoverRow === void 0
|
67
|
+
hoverRow === null || hoverRow === void 0 || hoverRow.classList.add("".concat(blockClass, "__carbon-row-expanded-hover-active"));
|
64
68
|
var rowExpanderButton = hoverRow === null || hoverRow === void 0 ? void 0 : hoverRow.querySelector(".".concat(blockClass, "__row-expander"));
|
65
69
|
var rowSizeValue = rowSize || 'lg';
|
66
|
-
hoverRow === null || hoverRow === void 0
|
67
|
-
hoverRow === null || hoverRow === void 0
|
68
|
-
hoverRow === null || hoverRow === void 0
|
70
|
+
hoverRow === null || hoverRow === void 0 || (_hoverRow$style = hoverRow.style) === null || _hoverRow$style === void 0 || _hoverRow$style.setProperty("--".concat(blockClass, "--indicator-height"), totalNestedRowIndicatorHeight);
|
71
|
+
hoverRow === null || hoverRow === void 0 || (_hoverRow$style2 = hoverRow.style) === null || _hoverRow$style2 === void 0 || _hoverRow$style2.setProperty("--".concat(blockClass, "--row-height"), (0, _layout.px)(rowHeights[rowSizeValue]));
|
72
|
+
hoverRow === null || hoverRow === void 0 || (_hoverRow$style3 = hoverRow.style) === null || _hoverRow$style3 === void 0 || _hoverRow$style3.setProperty("--".concat(blockClass, "--indicator-offset-amount"), (0, _layout.px)((rowExpanderButton === null || rowExpanderButton === void 0 ? void 0 : rowExpanderButton.offsetLeft) || 0));
|
69
73
|
};
|
70
74
|
var focusRemover = function focusRemover() {
|
71
75
|
var elements = document.querySelectorAll("#".concat(tableId, " .").concat(blockClass, "__carbon-row-expanded"));
|
@@ -77,7 +81,7 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
77
81
|
if (row.isExpanded) {
|
78
82
|
var _row$RowExpansionRend;
|
79
83
|
prepareRow(row);
|
80
|
-
return row === null || row === void 0
|
84
|
+
return row === null || row === void 0 || (_row$RowExpansionRend = row.RowExpansionRenderer) === null || _row$RowExpansionRend === void 0 ? void 0 : _row$RowExpansionRend.call(row, _objectSpread(_objectSpread({}, datagridState), {}, {
|
81
85
|
row: row
|
82
86
|
}));
|
83
87
|
}
|
@@ -88,7 +92,7 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
88
92
|
setMouseOverRowIndex(null);
|
89
93
|
}
|
90
94
|
var hoverRow = event.target.closest(".".concat(blockClass, "__carbon-row-expanded"));
|
91
|
-
hoverRow === null || hoverRow === void 0
|
95
|
+
hoverRow === null || hoverRow === void 0 || hoverRow.classList.remove("".concat(blockClass, "__carbon-row-expanded-hover-active"));
|
92
96
|
};
|
93
97
|
var handleOnKeyUp = function handleOnKeyUp(event) {
|
94
98
|
if (!withNestedRows) {
|
@@ -101,7 +105,7 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
101
105
|
};
|
102
106
|
var _row$getRowProps = row.getRowProps(),
|
103
107
|
className = _row$getRowProps.className;
|
104
|
-
var rowClassNames = (0, _classnames.default)("".concat(blockClass, "__carbon-row"), (
|
108
|
+
var rowClassNames = (0, _classnames.default)("".concat(blockClass, "__carbon-row"), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(_settings.carbon.prefix, "--data-table--selected"), row.isSelected));
|
105
109
|
var setAdditionalRowProps = function setAdditionalRowProps() {
|
106
110
|
if (withNestedRows || withExpandedRows) {
|
107
111
|
return {
|
@@ -123,25 +127,24 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
123
127
|
onBlur: focusRemover,
|
124
128
|
onKeyUp: handleOnKeyUp
|
125
129
|
}, setAdditionalRowProps()), row.cells.map(function (cell, index) {
|
126
|
-
var _cell$column
|
130
|
+
var _cell$column;
|
127
131
|
var cellProps = cell.getCellProps({
|
128
132
|
role: undefined
|
129
133
|
});
|
130
134
|
var children = cellProps.children,
|
131
135
|
restProps = (0, _objectWithoutProperties2.default)(cellProps, _excluded);
|
132
136
|
var content = children || /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !row.isSkeleton && cell.render('Cell'), row.isSkeleton && /*#__PURE__*/_react.default.createElement(_carbonComponentsReact.SkeletonText, null));
|
133
|
-
if ((cell === null || cell === void 0
|
137
|
+
if ((cell === null || cell === void 0 || (_cell$column = cell.column) === null || _cell$column === void 0 ? void 0 : _cell$column.id) === _commonColumnIds.selectionColumnId) {
|
134
138
|
// directly render component without the wrapping TableCell
|
135
139
|
return cell.render('Cell', {
|
136
140
|
key: cell.column.id
|
137
141
|
});
|
138
142
|
}
|
139
143
|
return /*#__PURE__*/_react.default.createElement(TableCell, (0, _extends2.default)({
|
140
|
-
className: (0, _classnames.default)("".concat(blockClass, "__cell"), (
|
144
|
+
className: (0, _classnames.default)("".concat(blockClass, "__cell"), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__expandable-row-cell"), row.canExpand && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0))
|
141
145
|
}, restProps, {
|
142
146
|
key: cell.column.id
|
143
147
|
}), content);
|
144
148
|
})), renderExpandedRow());
|
145
149
|
};
|
146
|
-
var _default = DatagridRow;
|
147
|
-
exports.default = _default;
|
150
|
+
var _default = exports.default = DatagridRow;
|
@@ -16,10 +16,16 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
16
16
|
var _settings = require("../../../settings");
|
17
17
|
var _stateReducer = require("./addons/stateReducer");
|
18
18
|
var _excluded = ["onChange"];
|
19
|
-
|
20
|
-
|
19
|
+
/**
|
20
|
+
* Copyright IBM Corp. 2020, 2024
|
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
|
+
*/
|
25
|
+
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); }
|
26
|
+
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
27
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
22
|
-
var SelectAll = function SelectAll(datagridState) {
|
28
|
+
var SelectAll = exports.SelectAll = function SelectAll(datagridState) {
|
23
29
|
var _columns$;
|
24
30
|
var _useState = (0, _react.useState)(typeof window !== 'undefined' ? window.innerWidth : ''),
|
25
31
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
@@ -72,7 +78,7 @@ var SelectAll = function SelectAll(datagridState) {
|
|
72
78
|
indeterminate: true
|
73
79
|
});
|
74
80
|
toggleAllRowsSelected(false);
|
75
|
-
onAllRowSelect === null || onAllRowSelect === void 0
|
81
|
+
onAllRowSelect === null || onAllRowSelect === void 0 || onAllRowSelect(rows, event);
|
76
82
|
return onChange === null || onChange === void 0 ? void 0 : onChange({
|
77
83
|
target: {
|
78
84
|
checked: false
|
@@ -85,7 +91,7 @@ var SelectAll = function SelectAll(datagridState) {
|
|
85
91
|
getRowId: getRowId,
|
86
92
|
isChecked: event.target.checked
|
87
93
|
});
|
88
|
-
onAllRowSelect === null || onAllRowSelect === void 0
|
94
|
+
onAllRowSelect === null || onAllRowSelect === void 0 || onAllRowSelect(rows, event);
|
89
95
|
return onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
90
96
|
};
|
91
97
|
return /*#__PURE__*/_react.default.createElement("div", {
|
@@ -98,5 +104,4 @@ var SelectAll = function SelectAll(datagridState) {
|
|
98
104
|
id: "".concat(tableId, "-select-all-checkbox-id")
|
99
105
|
})));
|
100
106
|
};
|
101
|
-
exports.SelectAll = SelectAll;
|
102
107
|
var TableSelectAll = _carbonComponentsReact.DataTable.TableSelectAll;
|
@@ -17,8 +17,14 @@ var _carbonComponentsReact = require("carbon-components-react");
|
|
17
17
|
var _iconsReact = require("@carbon/icons-react");
|
18
18
|
var _settings = require("../../../settings");
|
19
19
|
var _excluded = ["onChange"];
|
20
|
-
|
21
|
-
|
20
|
+
/**
|
21
|
+
* Copyright IBM Corp. 2020, 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
|
+
*/
|
26
|
+
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); }
|
27
|
+
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; }
|
22
28
|
// cspell:words columnheader
|
23
29
|
|
24
30
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
@@ -133,5 +139,4 @@ SelectAllWithToggle.propTypes = {
|
|
133
139
|
tableId: _propTypes.default.string.isRequired,
|
134
140
|
withStickyColumn: _propTypes.default.bool
|
135
141
|
};
|
136
|
-
var _default = SelectAllWithToggle;
|
137
|
-
exports.default = _default;
|
142
|
+
var _default = exports.default = SelectAllWithToggle;
|
@@ -11,8 +11,14 @@ var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _carbonComponentsReact = require("carbon-components-react");
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
13
13
|
var _settings = require("../../../settings");
|
14
|
-
function ownKeys(
|
15
|
-
function _objectSpread(
|
14
|
+
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; }
|
15
|
+
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; } /*
|
16
|
+
* Licensed Materials - Property of IBM
|
17
|
+
* 5724-Q36
|
18
|
+
* (c) Copyright IBM Corp. 2020
|
19
|
+
* US Government Users Restricted Rights - Use, duplication or disclosure
|
20
|
+
* restricted by GSA ADP Schedule Contract with IBM Corp.
|
21
|
+
*/
|
16
22
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
17
23
|
var TableBody = _carbonComponentsReact.DataTable.TableBody;
|
18
24
|
var DatagridSimpleBody = function DatagridSimpleBody(datagridState) {
|
@@ -34,5 +40,4 @@ var DatagridSimpleBody = function DatagridSimpleBody(datagridState) {
|
|
34
40
|
}));
|
35
41
|
}));
|
36
42
|
};
|
37
|
-
var _default = DatagridSimpleBody;
|
38
|
-
exports.default = _default;
|
43
|
+
var _default = exports.default = DatagridSimpleBody;
|
@@ -19,8 +19,14 @@ var _settings = require("../../../settings");
|
|
19
19
|
var _classnames = _interopRequireDefault(require("classnames"));
|
20
20
|
var _stateReducer = require("./addons/stateReducer");
|
21
21
|
var _excluded = ["ariaToolbarLabel"];
|
22
|
-
|
23
|
-
|
22
|
+
/**
|
23
|
+
* Copyright IBM Corp. 2022, 2023
|
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
|
+
*/
|
28
|
+
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); }
|
29
|
+
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
30
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
25
31
|
var toolbarClass = "".concat(blockClass, "__table-toolbar");
|
26
32
|
var menuClass = "".concat(blockClass, "__button-menu");
|
@@ -170,5 +176,4 @@ var DatagridToolbar = function DatagridToolbar(_ref2) {
|
|
170
176
|
DatagridToolbar.propTypes = {
|
171
177
|
ariaToolbarLabel: _propTypes.default.string
|
172
178
|
};
|
173
|
-
var _default = DatagridToolbar;
|
174
|
-
exports.default = _default;
|
179
|
+
var _default = exports.default = DatagridToolbar;
|
@@ -15,10 +15,15 @@ var _layout = require("@carbon/layout");
|
|
15
15
|
var _useResizeObserver = require("../../../global/js/hooks/useResizeObserver");
|
16
16
|
var _settings = require("../../../settings");
|
17
17
|
var _DatagridHead = _interopRequireDefault(require("./DatagridHead"));
|
18
|
-
function _getRequireWildcardCache(
|
19
|
-
function _interopRequireWildcard(
|
20
|
-
function ownKeys(
|
21
|
-
function _objectSpread(
|
18
|
+
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); }
|
19
|
+
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; }
|
20
|
+
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; }
|
21
|
+
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; } /**
|
22
|
+
* Copyright IBM Corp. 2020, 2023
|
23
|
+
*
|
24
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
26
|
+
*/
|
22
27
|
var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
|
23
28
|
var TableBody = _carbonComponentsReact.DataTable.TableBody;
|
24
29
|
var rowSizeMap = {
|
@@ -60,7 +65,6 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
60
65
|
var spacerColumn = document.querySelector(".".concat(blockClass, "__head-wrap thead th:last-child"));
|
61
66
|
spacerColumn.style.width = (0, _layout.px)(32 + (virtualBody.offsetWidth - virtualBody.clientWidth)); // scrollbar width to header column to fix header alignment
|
62
67
|
};
|
63
|
-
|
64
68
|
(0, _react.useEffect)(function () {
|
65
69
|
handleResize();
|
66
70
|
}, [handleResize]);
|
@@ -109,5 +113,4 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
109
113
|
})));
|
110
114
|
})));
|
111
115
|
};
|
112
|
-
var _default = DatagridVirtualBody;
|
113
|
-
exports.default = _default;
|
116
|
+
var _default = exports.default = DatagridVirtualBody;
|