@carbon/ibm-products 2.61.0 → 2.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +170 -22
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +170 -22
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +170 -22
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +170 -22
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/es/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/es/components/APIKeyModal/APIKeyModal.js +16 -16
- package/es/components/AboutModal/AboutModal.js +1 -1
- package/es/components/ActionBar/ActionBar.js +5 -5
- package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/es/components/ActionSet/ActionSet.js +5 -5
- package/es/components/AddSelect/AddSelect.js +5 -4
- package/es/components/AddSelect/AddSelectBody.js +12 -11
- package/es/components/AddSelect/AddSelectColumn.js +1 -1
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/es/components/AddSelect/AddSelectRow.js +21 -13
- package/es/components/AddSelect/AddSelectSidebar.js +14 -4
- package/es/components/AddSelect/AddSelectSort.js +5 -5
- package/es/components/AddSelect/add-select-utils.js +3 -3
- package/es/components/AddSelect/types/index.d.ts +1 -0
- package/es/components/BigNumbers/BigNumbers.js +11 -11
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/es/components/Card/Card.js +14 -14
- package/es/components/Card/CardFooter.js +4 -4
- package/es/components/Card/CardHeader.js +2 -2
- package/es/components/Carousel/Carousel.js +16 -16
- package/es/components/Cascade/Cascade.js +2 -2
- package/es/components/Checklist/Checklist.js +11 -11
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/Coachmark/Coachmark.js +10 -10
- package/es/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/es/components/Coachmark/CoachmarkHeader.js +4 -4
- package/es/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/es/components/Coachmark/CoachmarkTagline.js +3 -3
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/es/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/es/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/es/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/es/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/es/components/ConditionBuilder/utils/util.js +13 -13
- package/es/components/CreateFullPage/CreateFullPage.js +3 -3
- package/es/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/es/components/Datagrid/useActionsColumn.js +2 -2
- package/es/components/Datagrid/useColumnRightAlign.js +3 -3
- package/es/components/Datagrid/useCustomizeColumns.js +1 -1
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/es/components/Datagrid/useDisableSelectRows.js +16 -16
- package/es/components/Datagrid/useExpandedRow.js +1 -1
- package/es/components/Datagrid/useFiltering.js +1 -1
- package/es/components/Datagrid/useFloatingScroll.js +2 -2
- package/es/components/Datagrid/useFocusRowExpander.js +4 -4
- package/es/components/Datagrid/useInfiniteScroll.js +1 -1
- package/es/components/Datagrid/useInitialColumnSort.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +4 -4
- package/es/components/Datagrid/useNestedRowExpander.js +6 -6
- package/es/components/Datagrid/useNestedRows.js +6 -6
- package/es/components/Datagrid/useOnRowClick.js +1 -1
- package/es/components/Datagrid/useRowExpander.js +4 -4
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/es/components/Datagrid/useRowRenderer.js +6 -6
- package/es/components/Datagrid/useSelectAllToggle.js +2 -2
- package/es/components/Datagrid/useSelectRows.js +5 -5
- package/es/components/Datagrid/useSortableColumns.js +11 -11
- package/es/components/Datagrid/useStickyColumn.js +8 -8
- package/es/components/DecoratorBase/DecoratorBase.js +8 -8
- package/es/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/es/components/DelimitedList/DelimitedList.js +3 -3
- package/es/components/DescriptionList/DescriptionList.js +2 -2
- package/es/components/EditInPlace/EditInPlace.js +6 -6
- package/es/components/EditSidePanel/EditSidePanel.js +3 -3
- package/es/components/EditTearsheet/EditTearsheet.js +3 -3
- package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/es/components/EmptyStates/EmptyState.js +5 -5
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/EmptyStateV2.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/es/components/ExportModal/ExportModal.js +7 -7
- package/es/components/FeatureFlags/index.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +18 -34
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/Guidebanner/Guidebanner.js +8 -8
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/ImportModal/ImportModal.js +2 -2
- package/es/components/InlineTip/InlineTip.d.ts +0 -14
- package/es/components/InlineTip/InlineTip.js +13 -35
- package/es/components/InlineTip/utils.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/es/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/es/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/es/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/es/components/Nav/Nav.js +3 -3
- package/es/components/Nav/NavItem.js +8 -9
- package/es/components/Nav/NavList.js +14 -15
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/es/components/OptionsTile/OptionsTile.js +4 -3
- package/es/components/PageHeader/PageHeader.js +19 -19
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/ProductiveCard/ProductiveCard.js +1 -1
- package/es/components/RemoveModal/RemoveModal.js +2 -2
- package/es/components/Saving/Saving.js +4 -4
- package/es/components/ScrollGradient/ScrollGradient.js +6 -6
- package/es/components/SearchBar/SearchBar.js +6 -6
- package/es/components/SidePanel/SidePanel.js +45 -45
- package/es/components/SimpleHeader/SimpleHeader.js +4 -4
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/StatusIndicator/StatusIndicator.js +2 -2
- package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +4 -4
- package/es/components/TagOverflow/TagOverflow.js +7 -7
- package/es/components/TagOverflow/TagOverflowModal.js +4 -4
- package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/es/components/TagSet/TagSet.js +15 -15
- package/es/components/TagSet/TagSetModal.js +6 -6
- package/es/components/TagSet/TagSetOverflow.js +3 -3
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +6 -6
- package/es/components/Toolbar/Toolbar.js +6 -6
- package/es/components/Toolbar/ToolbarButton.js +4 -4
- package/es/components/TruncatedList/TruncatedList.js +8 -8
- package/es/components/UserAvatar/UserAvatar.js +4 -4
- package/es/components/UserProfileImage/UserProfileImage.js +2 -2
- package/es/components/WebTerminal/WebTerminal.js +8 -8
- package/es/global/js/hooks/useControllableState.js +1 -1
- package/es/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/es/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/es/global/js/hooks/useFocus.js +19 -19
- package/es/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/es/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/es/global/js/hooks/useOverflowString.js +6 -6
- package/es/global/js/hooks/usePresence.d.ts +23 -0
- package/es/global/js/hooks/usePresence.js +26 -6
- package/es/global/js/hooks/useResetCreateComponent.js +1 -1
- package/es/global/js/hooks/useResizeObserver.js +5 -5
- package/es/global/js/hooks/useRetrieveStepData.js +1 -1
- package/es/global/js/package-settings.js +4 -4
- package/es/global/js/utils/Wrap.js +2 -2
- package/es/global/js/utils/checkForOverflow.js +1 -1
- package/es/global/js/utils/debounce.d.ts +1 -1
- package/es/global/js/utils/debounce.js +2 -2
- package/es/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/es/global/js/utils/getSupportedLocale.js +2 -0
- package/es/global/js/utils/lastIndexInArray.js +1 -1
- package/es/global/js/utils/props-helper.js +1 -1
- package/es/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +894 -863
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/es/settings.js +2 -2
- package/lib/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/lib/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/lib/components/APIKeyModal/APIKeyModal.js +16 -16
- package/lib/components/AboutModal/AboutModal.js +1 -1
- package/lib/components/ActionBar/ActionBar.js +5 -5
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/lib/components/ActionSet/ActionSet.js +5 -5
- package/lib/components/AddSelect/AddSelect.js +5 -4
- package/lib/components/AddSelect/AddSelectBody.js +12 -11
- package/lib/components/AddSelect/AddSelectColumn.js +1 -1
- package/lib/components/AddSelect/AddSelectFilter.js +1 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/lib/components/AddSelect/AddSelectRow.js +20 -12
- package/lib/components/AddSelect/AddSelectSidebar.js +14 -4
- package/lib/components/AddSelect/AddSelectSort.js +5 -5
- package/lib/components/AddSelect/add-select-utils.js +3 -3
- package/lib/components/AddSelect/types/index.d.ts +1 -0
- package/lib/components/BigNumbers/BigNumbers.js +10 -10
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/lib/components/Card/Card.js +14 -14
- package/lib/components/Card/CardFooter.js +4 -4
- package/lib/components/Card/CardHeader.js +2 -2
- package/lib/components/Carousel/Carousel.js +16 -16
- package/lib/components/Cascade/Cascade.js +2 -2
- package/lib/components/Checklist/Checklist.js +11 -11
- package/lib/components/Checklist/ChecklistChart.js +1 -1
- package/lib/components/Checklist/ChecklistIcon.js +1 -1
- package/lib/components/Coachmark/Coachmark.js +10 -10
- package/lib/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/lib/components/Coachmark/CoachmarkHeader.js +4 -4
- package/lib/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/lib/components/Coachmark/CoachmarkTagline.js +3 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/lib/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/lib/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/lib/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/lib/components/ConditionBuilder/utils/util.js +13 -13
- package/lib/components/CreateFullPage/CreateFullPage.js +3 -3
- package/lib/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/lib/components/CreateModal/CreateModal.js +1 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/lib/components/Datagrid/useActionsColumn.js +2 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
- package/lib/components/Datagrid/useCustomizeColumns.js +1 -1
- package/lib/components/Datagrid/useDatagrid.js +2 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/lib/components/Datagrid/useDisableSelectRows.js +16 -16
- package/lib/components/Datagrid/useExpandedRow.js +1 -1
- package/lib/components/Datagrid/useFiltering.js +1 -1
- package/lib/components/Datagrid/useFloatingScroll.js +2 -2
- package/lib/components/Datagrid/useFocusRowExpander.js +4 -4
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -1
- package/lib/components/Datagrid/useInitialColumnSort.js +1 -1
- package/lib/components/Datagrid/useInlineEdit.js +4 -4
- package/lib/components/Datagrid/useNestedRowExpander.js +6 -6
- package/lib/components/Datagrid/useNestedRows.js +6 -6
- package/lib/components/Datagrid/useOnRowClick.js +1 -1
- package/lib/components/Datagrid/useRowExpander.js +4 -4
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/lib/components/Datagrid/useRowRenderer.js +6 -6
- package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
- package/lib/components/Datagrid/useSelectRows.js +5 -5
- package/lib/components/Datagrid/useSortableColumns.js +11 -11
- package/lib/components/Datagrid/useStickyColumn.js +8 -8
- package/lib/components/DecoratorBase/DecoratorBase.js +8 -8
- package/lib/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/lib/components/DelimitedList/DelimitedList.js +3 -3
- package/lib/components/DescriptionList/DescriptionList.js +2 -2
- package/lib/components/EditInPlace/EditInPlace.js +6 -6
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheet.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/lib/components/EmptyStates/EmptyState.js +5 -5
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/lib/components/ExportModal/ExportModal.js +7 -7
- package/lib/components/FeatureFlags/index.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/lib/components/FilterSummary/FilterSummary.js +18 -34
- package/lib/components/FullPageError/FullPageError.js +1 -1
- package/lib/components/Guidebanner/Guidebanner.js +8 -8
- package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/lib/components/ImportModal/ImportModal.js +2 -2
- package/lib/components/InlineTip/InlineTip.d.ts +0 -14
- package/lib/components/InlineTip/InlineTip.js +13 -35
- package/lib/components/InlineTip/utils.js +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/lib/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/lib/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/lib/components/Nav/Nav.js +3 -3
- package/lib/components/Nav/NavItem.js +12 -13
- package/lib/components/Nav/NavList.js +18 -19
- package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/lib/components/OptionsTile/OptionsTile.js +4 -3
- package/lib/components/PageHeader/PageHeader.js +19 -19
- package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
- package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
- package/lib/components/ProductiveCard/ProductiveCard.js +1 -1
- package/lib/components/RemoveModal/RemoveModal.js +2 -2
- package/lib/components/Saving/Saving.js +4 -4
- package/lib/components/ScrollGradient/ScrollGradient.js +6 -6
- package/lib/components/SearchBar/SearchBar.js +6 -6
- package/lib/components/SidePanel/SidePanel.js +45 -45
- package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
- package/lib/components/StatusIcon/StatusIcon.js +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.js +2 -2
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/lib/components/StringFormatter/StringFormatter.js +4 -4
- package/lib/components/TagOverflow/TagOverflow.js +7 -7
- package/lib/components/TagOverflow/TagOverflowModal.js +4 -4
- package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/lib/components/TagSet/TagSet.js +15 -15
- package/lib/components/TagSet/TagSetModal.js +6 -6
- package/lib/components/TagSet/TagSetOverflow.js +3 -3
- package/lib/components/Tearsheet/Tearsheet.js +2 -2
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/lib/components/Tearsheet/TearsheetShell.js +6 -6
- package/lib/components/Toolbar/Toolbar.js +6 -6
- package/lib/components/Toolbar/ToolbarButton.js +4 -4
- package/lib/components/TruncatedList/TruncatedList.js +8 -8
- package/lib/components/UserAvatar/UserAvatar.js +4 -4
- package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
- package/lib/components/WebTerminal/WebTerminal.js +8 -8
- package/lib/global/js/hooks/useControllableState.js +1 -1
- package/lib/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/lib/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/lib/global/js/hooks/useFocus.js +19 -19
- package/lib/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/lib/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/lib/global/js/hooks/useOverflowString.js +6 -6
- package/lib/global/js/hooks/usePresence.d.ts +23 -0
- package/lib/global/js/hooks/usePresence.js +26 -6
- package/lib/global/js/hooks/useResetCreateComponent.js +1 -1
- package/lib/global/js/hooks/useResizeObserver.js +5 -5
- package/lib/global/js/hooks/useRetrieveStepData.js +1 -1
- package/lib/global/js/package-settings.js +4 -4
- package/lib/global/js/utils/Wrap.js +2 -2
- package/lib/global/js/utils/checkForOverflow.js +1 -1
- package/lib/global/js/utils/debounce.d.ts +1 -1
- package/lib/global/js/utils/debounce.js +2 -2
- package/lib/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/lib/global/js/utils/getSupportedLocale.js +2 -0
- package/lib/global/js/utils/lastIndexInArray.js +1 -1
- package/lib/global/js/utils/props-helper.js +1 -1
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +902 -871
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/lib/settings.js +2 -2
- package/package.json +19 -19
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +100 -22
- package/scss/components/Datagrid/styles/addons/_animations.scss +56 -0
- package/scss/components/FilterSummary/_animations.scss +20 -0
- package/scss/components/FilterSummary/_filter-summary.scss +11 -0
- package/scss/components/FullPageError/_full-page-error.scss +4 -0
- package/scss/components/GetStartedCard/_get-started-card.scss +2 -2
- package/scss/components/NotificationsPanel/_notifications-panel.scss +35 -7
- package/scss/components/SidePanel/_side-panel.scss +4 -2
- package/scss/components/Tearsheet/_tearsheet.scss +6 -12
- package/telemetry.yml +9 -17
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -80
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -146
- package/es/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/es/global/js/utils/getBezierValues.d.ts +0 -1
- package/es/global/js/utils/getBezierValues.js +0 -28
- package/es/global/js/utils/motionConstants.d.ts +0 -23
- package/es/global/js/utils/motionConstants.js +0 -39
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -84
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -148
- package/lib/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/lib/global/js/utils/getBezierValues.d.ts +0 -1
- package/lib/global/js/utils/getBezierValues.js +0 -30
- package/lib/global/js/utils/motionConstants.d.ts +0 -23
- package/lib/global/js/utils/motionConstants.js +0 -42
- /package/es/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
- /package/lib/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
@@ -24,12 +24,12 @@ var DatagridRefBody = function DatagridRefBody(datagridState) {
|
|
24
24
|
role: undefined
|
25
25
|
}), {
|
26
26
|
className: cx("".concat(blockClass, "__simple-body"), getTableBodyProps().className)
|
27
|
-
}), rows === null || rows ===
|
27
|
+
}), rows === null || rows === void 0 ? void 0 : rows.map(function (row) {
|
28
28
|
var _row$RowRenderer;
|
29
29
|
prepareRow(row);
|
30
30
|
var _row$getRowProps = row.getRowProps(),
|
31
31
|
key = _row$getRowProps.key;
|
32
|
-
return row === null || row ===
|
32
|
+
return row === null || row === void 0 || (_row$RowRenderer = row.RowRenderer) === null || _row$RowRenderer === void 0 ? void 0 : _row$RowRenderer.call(row, _objectSpread2(_objectSpread2({}, datagridState), {}, {
|
33
33
|
row: row,
|
34
34
|
key: key
|
35
35
|
}));
|
@@ -60,12 +60,12 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
60
60
|
var subRowCount = _getVisibleNestedRowCount(row);
|
61
61
|
var totalNestedRowIndicatorHeight = px(subRowCount * rowHeights[Number(rowSize)]);
|
62
62
|
var hoverRow = event.target.closest(".".concat(blockClass, "__carbon-row-expanded"));
|
63
|
-
hoverRow === null || hoverRow ===
|
64
|
-
var rowExpanderButton = hoverRow === null || hoverRow ===
|
63
|
+
hoverRow === null || hoverRow === void 0 || hoverRow.classList.add("".concat(blockClass, "__carbon-row-expanded-hover-active"));
|
64
|
+
var rowExpanderButton = hoverRow === null || hoverRow === void 0 ? void 0 : hoverRow.querySelector(".".concat(blockClass, "__row-expander"));
|
65
65
|
var rowSizeValue = rowSize || 'lg';
|
66
|
-
hoverRow === null || hoverRow ===
|
67
|
-
hoverRow === null || hoverRow ===
|
68
|
-
hoverRow === null || hoverRow ===
|
66
|
+
hoverRow === null || hoverRow === void 0 || (_hoverRow$style = hoverRow.style) === null || _hoverRow$style === void 0 || _hoverRow$style.setProperty("--".concat(blockClass, "--indicator-height"), totalNestedRowIndicatorHeight);
|
67
|
+
hoverRow === null || hoverRow === void 0 || (_hoverRow$style2 = hoverRow.style) === null || _hoverRow$style2 === void 0 || _hoverRow$style2.setProperty("--".concat(blockClass, "--row-height"), px(rowHeights[rowSizeValue]));
|
68
|
+
hoverRow === null || hoverRow === void 0 || (_hoverRow$style3 = hoverRow.style) === null || _hoverRow$style3 === void 0 || _hoverRow$style3.setProperty("--".concat(blockClass, "--indicator-offset-amount"), px((rowExpanderButton === null || rowExpanderButton === void 0 ? void 0 : rowExpanderButton.offsetLeft) || 0));
|
69
69
|
};
|
70
70
|
var focusRemover = function focusRemover() {
|
71
71
|
var elements = document.querySelectorAll("#".concat(tableId, " .").concat(blockClass, "__carbon-row-expanded"));
|
@@ -77,7 +77,7 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
77
77
|
if (row.isExpanded) {
|
78
78
|
var _row$RowExpansionRend;
|
79
79
|
prepareRow(row);
|
80
|
-
return row === null || row ===
|
80
|
+
return row === null || row === void 0 || (_row$RowExpansionRend = row.RowExpansionRenderer) === null || _row$RowExpansionRend === void 0 ? void 0 : _row$RowExpansionRend.call(row, _objectSpread2(_objectSpread2({}, datagridState), {}, {
|
81
81
|
row: row
|
82
82
|
}));
|
83
83
|
}
|
@@ -85,10 +85,10 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
85
85
|
};
|
86
86
|
var handleMouseLeave = function handleMouseLeave(event) {
|
87
87
|
if (withMouseHover) {
|
88
|
-
setMouseOverRowIndex === null || setMouseOverRowIndex ===
|
88
|
+
setMouseOverRowIndex === null || setMouseOverRowIndex === void 0 || setMouseOverRowIndex(null);
|
89
89
|
}
|
90
90
|
var hoverRow = event.target.closest(".".concat(blockClass, "__carbon-row-expanded"));
|
91
|
-
hoverRow === null || hoverRow ===
|
91
|
+
hoverRow === null || hoverRow === void 0 || hoverRow.classList.remove("".concat(blockClass, "__carbon-row-expanded-hover-active"));
|
92
92
|
};
|
93
93
|
var handleOnKeyUp = function handleOnKeyUp(event) {
|
94
94
|
if (!withNestedRows) {
|
@@ -114,9 +114,9 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
114
114
|
rowProps = _objectWithoutProperties(_row$getRowProps, _excluded);
|
115
115
|
var foundAIRow = rows.some(function (r) {
|
116
116
|
var _r$original, _r$original2;
|
117
|
-
return /*#__PURE__*/isValidElement(r === null || r ===
|
117
|
+
return /*#__PURE__*/isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.aiLabel) || /*#__PURE__*/isValidElement(r === null || r === void 0 || (_r$original2 = r.original) === null || _r$original2 === void 0 ? void 0 : _r$original2.slug);
|
118
118
|
});
|
119
|
-
var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(blockClass, "__carbon-row-expandable--async"), getAsyncSubRows && row.depth > 0), "".concat(carbon.prefix, "--data-table--selected"), row.isSelected), "".concat(blockClass, "__slug--row"), /*#__PURE__*/isValidElement(row === null || row ===
|
119
|
+
var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(blockClass, "__carbon-row-expandable--async"), getAsyncSubRows && row.depth > 0), "".concat(carbon.prefix, "--data-table--selected"), row.isSelected), "".concat(blockClass, "__slug--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug)), "".concat(blockClass, "__ai-label--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.aiLabel)));
|
120
120
|
var withActionsColumn = headers ? !!headers.filter(function (header) {
|
121
121
|
return header.isAction;
|
122
122
|
}).length : false;
|
@@ -131,14 +131,14 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
131
131
|
onFocus: hoverHandler,
|
132
132
|
onBlur: focusRemover,
|
133
133
|
onKeyUp: handleOnKeyUp
|
134
|
-
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !==
|
134
|
+
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !== void 0 && (_row$original3 = row.original) !== null && _row$original3 !== void 0 && _row$original3.aiLabel ? /*#__PURE__*/React__default.createElement("td", {
|
135
135
|
className: cx("".concat(blockClass, "__table-row-ai-enabled"), _defineProperty({}, "".concat(blockClass, "__ai-label--expanded"), row.isExpanded))
|
136
136
|
}, /*#__PURE__*/React__default.createElement(DatagridAILabel, {
|
137
|
-
aiLabel: row === null || row ===
|
138
|
-
})) : row !== null && row !==
|
137
|
+
aiLabel: row === null || row === void 0 || (_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.aiLabel
|
138
|
+
})) : row !== null && row !== void 0 && (_row$original5 = row.original) !== null && _row$original5 !== void 0 && _row$original5.slug ? /*#__PURE__*/React__default.createElement("td", {
|
139
139
|
className: cx("".concat(blockClass, "__table-row-ai-enabled"), _defineProperty({}, "".concat(blockClass, "__slug--expanded"), row.isExpanded))
|
140
140
|
}, /*#__PURE__*/React__default.createElement(DatagridAILabel, {
|
141
|
-
aiLabel: row === null || row ===
|
141
|
+
aiLabel: row === null || row === void 0 || (_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.slug
|
142
142
|
})) : /*#__PURE__*/React__default.createElement("td", {
|
143
143
|
className: "".concat(blockClass, "__table-row-ai-spacer")
|
144
144
|
}) : null, row.cells.map(function (cell, index) {
|
@@ -150,15 +150,15 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
150
150
|
style = _ref2.style,
|
151
151
|
children = _ref2.children,
|
152
152
|
restProps = _objectWithoutProperties(_ref2, _excluded2);
|
153
|
-
var columnClassname = cell === null || cell ===
|
153
|
+
var columnClassname = cell === null || cell === void 0 || (_cell$column = cell.column) === null || _cell$column === void 0 ? void 0 : _cell$column.className;
|
154
154
|
var content = children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !row.isSkeleton && cell.render('Cell'), row.isSkeleton && (_SkeletonText || (_SkeletonText = /*#__PURE__*/React__default.createElement(SkeletonText, null))));
|
155
|
-
if ((cell === null || cell ===
|
155
|
+
if ((cell === null || cell === void 0 || (_cell$column2 = cell.column) === null || _cell$column2 === void 0 ? void 0 : _cell$column2.id) === selectionColumnId) {
|
156
156
|
// directly render component without the wrapping TableCell
|
157
157
|
return cell.render('Cell', {
|
158
158
|
key: cell.column.id
|
159
159
|
});
|
160
160
|
}
|
161
|
-
var associatedHeader = headers === null || headers ===
|
161
|
+
var associatedHeader = headers === null || headers === void 0 ? void 0 : headers.filter(function (h) {
|
162
162
|
return h.id === cell.column.id;
|
163
163
|
});
|
164
164
|
var lastVisibleIndex = withActionsColumn ? 2 : 1;
|
@@ -167,13 +167,13 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
167
167
|
style.flex = lastVisibleFlexStyle;
|
168
168
|
}
|
169
169
|
return /*#__PURE__*/React__default.createElement(TableCell, _extends({
|
170
|
-
className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), (row.canExpand || getAsyncSubRows) && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ ===
|
170
|
+
className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), (row.canExpand || getAsyncSubRows) && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)), "".concat(blockClass, "__ai-label--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$2 = associatedHeader[0]) === null || _associatedHeader$2 === void 0 ? void 0 : _associatedHeader$2.aiLabel)), columnClassname)
|
171
171
|
}, restProps, {
|
172
172
|
// eslint-disable-next-line react/forbid-component-props
|
173
173
|
style: style,
|
174
174
|
key: cell.column.id
|
175
175
|
}), content);
|
176
|
-
})), (renderExpandedRow === null || renderExpandedRow ===
|
176
|
+
})), (renderExpandedRow === null || renderExpandedRow === void 0 ? void 0 : renderExpandedRow()) || undefined);
|
177
177
|
};
|
178
178
|
|
179
179
|
export { DatagridRow as default };
|
@@ -48,7 +48,7 @@ var SelectAll = function SelectAll(datagridState) {
|
|
48
48
|
toggleAllRowsSelected = datagridState.toggleAllRowsSelected,
|
49
49
|
withVirtualScroll = datagridState.withVirtualScroll,
|
50
50
|
onAllRowSelect = datagridState.onAllRowSelect;
|
51
|
-
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ ===
|
51
|
+
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.sticky) === 'left' && withStickyColumn;
|
52
52
|
if (hideSelectAll || radio) {
|
53
53
|
return /*#__PURE__*/React__default.createElement("th", {
|
54
54
|
className: cx("".concat(blockClass, "__head-hidden-select-all"), _defineProperty({}, "".concat(blockClass, "__select-all-sticky-left"), /* istanbul ignore next */
|
@@ -68,8 +68,8 @@ var SelectAll = function SelectAll(datagridState) {
|
|
68
68
|
isChecked: event.target.checked,
|
69
69
|
indeterminate: indeterminate
|
70
70
|
});
|
71
|
-
onAllRowSelect === null || onAllRowSelect ===
|
72
|
-
return onChange === null || onChange ===
|
71
|
+
onAllRowSelect === null || onAllRowSelect === void 0 || onAllRowSelect(rows, event);
|
72
|
+
return onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
73
73
|
};
|
74
74
|
var handleSelectAllChange = function handleSelectAllChange(event) {
|
75
75
|
if (indeterminate) {
|
@@ -81,8 +81,8 @@ var SelectAll = function SelectAll(datagridState) {
|
|
81
81
|
isChecked: undefined
|
82
82
|
});
|
83
83
|
toggleAllRowsSelected(false);
|
84
|
-
onAllRowSelect === null || onAllRowSelect ===
|
85
|
-
return onChange === null || onChange ===
|
84
|
+
onAllRowSelect === null || onAllRowSelect === void 0 || onAllRowSelect(rows, event);
|
85
|
+
return onChange === null || onChange === void 0 ? void 0 : onChange({
|
86
86
|
target: {
|
87
87
|
checked: false
|
88
88
|
}
|
@@ -95,16 +95,16 @@ var SelectAll = function SelectAll(datagridState) {
|
|
95
95
|
isChecked: event.target.checked,
|
96
96
|
indeterminate: indeterminate
|
97
97
|
});
|
98
|
-
onAllRowSelect === null || onAllRowSelect ===
|
99
|
-
return onChange === null || onChange ===
|
98
|
+
onAllRowSelect === null || onAllRowSelect === void 0 || onAllRowSelect(rows, event);
|
99
|
+
return onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
100
100
|
};
|
101
101
|
return /*#__PURE__*/React__default.createElement(TableSelectAll, _extends({}, selectProps, {
|
102
|
-
checked: (selectProps === null || selectProps ===
|
102
|
+
checked: (selectProps === null || selectProps === void 0 ? void 0 : selectProps.checked) || false,
|
103
103
|
className: cx("".concat(blockClass, "__head-select-all"), "".concat(blockClass, "__checkbox-cell"), _defineProperty({}, "".concat(blockClass, "__checkbox-cell-sticky-left"), /* istanbul ignore next */
|
104
104
|
isFirstColumnStickyLeft && Number(windowSize) > 671)),
|
105
105
|
name: "".concat(tableId, "-select-all-checkbox-name"),
|
106
106
|
onSelect: withVirtualScroll ? handleSelectAllChange : handleOnPageSelectAllChange,
|
107
|
-
disabled: isFetching || (selectProps === null || selectProps ===
|
107
|
+
disabled: isFetching || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled),
|
108
108
|
id: "".concat(tableId, "-select-all-checkbox-id")
|
109
109
|
}));
|
110
110
|
};
|
@@ -26,9 +26,9 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
26
26
|
getToggleAllPageRowsSelectedProps = _ref.getToggleAllPageRowsSelectedProps,
|
27
27
|
getToggleAllRowsSelectedProps = _ref.getToggleAllRowsSelectedProps,
|
28
28
|
_ref$allPageRowsLabel = _ref.allPageRowsLabel,
|
29
|
-
allPageRowsLabel = _ref$allPageRowsLabel ===
|
29
|
+
allPageRowsLabel = _ref$allPageRowsLabel === void 0 ? 'Select all on page' : _ref$allPageRowsLabel,
|
30
30
|
_ref$allRowsLabel = _ref.allRowsLabel,
|
31
|
-
allRowsLabel = _ref$allRowsLabel ===
|
31
|
+
allRowsLabel = _ref$allRowsLabel === void 0 ? 'Select all' : _ref$allRowsLabel,
|
32
32
|
columns = _ref.columns,
|
33
33
|
withStickyColumn = _ref.withStickyColumn;
|
34
34
|
var _ref2 = selectAllToggle || {},
|
@@ -58,7 +58,7 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
58
58
|
};
|
59
59
|
}, []);
|
60
60
|
if (labels) {
|
61
|
-
allPageRowsLabel = (labels === null || labels ===
|
61
|
+
allPageRowsLabel = (labels === null || labels === void 0 ? void 0 : labels.allPageRows) || allPageRowsLabel;
|
62
62
|
allRowsLabel = labels.allRows || allRowsLabel;
|
63
63
|
}
|
64
64
|
var getProps = selectAllMode === SELECT_ALL_PAGE_ROWS ? getToggleAllPageRowsSelectedProps : getToggleAllRowsSelectedProps;
|
@@ -66,14 +66,14 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
66
66
|
onChange = _ref3.onChange,
|
67
67
|
selectProps = _objectWithoutProperties(_ref3, _excluded);
|
68
68
|
var disabled = isFetching || selectProps.disabled;
|
69
|
-
var isFirstColumnStickyLeft = (columns === null || columns ===
|
69
|
+
var isFirstColumnStickyLeft = (columns === null || columns === void 0 || (_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.sticky) === 'left' && withStickyColumn;
|
70
70
|
return /*#__PURE__*/React__default.createElement("th", {
|
71
71
|
scope: "col",
|
72
|
-
className: cx("".concat(blockClass, "__select-all-toggle-on"), _defineProperty({}, "".concat(blockClass, "__select-all-sticky-left"), isFirstColumnStickyLeft && (windowSize !== null && windowSize !==
|
72
|
+
className: cx("".concat(blockClass, "__select-all-toggle-on"), _defineProperty({}, "".concat(blockClass, "__select-all-sticky-left"), isFirstColumnStickyLeft && (windowSize !== null && windowSize !== void 0 ? windowSize : 0) > 671))
|
73
73
|
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(Checkbox, _extends({}, selectProps, {
|
74
74
|
name: "".concat(tableId, "-select-all-checkbox-name"),
|
75
75
|
onClick: function onClick(e) {
|
76
|
-
onChange === null || onChange ===
|
76
|
+
onChange === null || onChange === void 0 || onChange(e);
|
77
77
|
},
|
78
78
|
disabled: disabled,
|
79
79
|
id: "".concat(tableId, "-select-all-checkbox-id"),
|
@@ -96,7 +96,7 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
96
96
|
var _ref4;
|
97
97
|
setSelectAllMode(SELECT_ALL_PAGE_ROWS);
|
98
98
|
// deselect all rows first
|
99
|
-
getToggleAllRowsSelectedProps === null || getToggleAllRowsSelectedProps ===
|
99
|
+
getToggleAllRowsSelectedProps === null || getToggleAllRowsSelectedProps === void 0 || (_ref4 = getToggleAllRowsSelectedProps()) === null || _ref4 === void 0 || _ref4.onChange({
|
100
100
|
target: {
|
101
101
|
checked: false
|
102
102
|
}
|
@@ -26,7 +26,7 @@ var DatagridSimpleBody = function DatagridSimpleBody(datagridState) {
|
|
26
26
|
prepareRow(row);
|
27
27
|
var _row$getRowProps = row.getRowProps(),
|
28
28
|
key = _row$getRowProps.key;
|
29
|
-
return row === null || row ===
|
29
|
+
return row === null || row === void 0 || (_row$RowRenderer = row.RowRenderer) === null || _row$RowRenderer === void 0 ? void 0 : _row$RowRenderer.call(row, _objectSpread2(_objectSpread2({}, datagridState), {}, {
|
30
30
|
row: row,
|
31
31
|
key: key
|
32
32
|
}));
|
@@ -44,14 +44,14 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
44
44
|
_useState8 = _slicedToArray(_useState7, 2),
|
45
45
|
availableRowsCount = _useState8[0],
|
46
46
|
setAvailableRowsCount = _useState8[1];
|
47
|
-
var batchActionMenuButtonLabelText = batchActionMenuButtonLabel !== null && batchActionMenuButtonLabel !==
|
47
|
+
var batchActionMenuButtonLabelText = batchActionMenuButtonLabel !== null && batchActionMenuButtonLabel !== void 0 ? batchActionMenuButtonLabel : 'More';
|
48
48
|
var selectedKeys = Object.keys(selectedRowIds || {});
|
49
49
|
var totalSelected = selectedKeys.length;
|
50
50
|
useEffect(function () {
|
51
51
|
var _rows$find, _rows$find$getRowProp;
|
52
52
|
var countDisabledRows = ((_rows$find = rows.find(function (row) {
|
53
53
|
return row.getRowProps;
|
54
|
-
})) === null || _rows$find ===
|
54
|
+
})) === null || _rows$find === void 0 || (_rows$find$getRowProp = _rows$find.getRowProps) === null || _rows$find$getRowProp === void 0 || (_rows$find$getRowProp = _rows$find$getRowProp.call(_rows$find)) === null || _rows$find$getRowProp === void 0 || (_rows$find$getRowProp = _rows$find$getRowProp.nonselectablerows) === null || _rows$find$getRowProp === void 0 ? void 0 : _rows$find$getRowProp.length) || 0;
|
55
55
|
if (rows) {
|
56
56
|
setAvailableRowsCount(rows.length - countDisabledRows);
|
57
57
|
}
|
@@ -63,13 +63,13 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
63
63
|
useEffect(function () {
|
64
64
|
if (totalSelected === 1 && !receivedInitialWidth) {
|
65
65
|
var _ref$current;
|
66
|
-
var batchActionListWidth = ref === null || ref ===
|
66
|
+
var batchActionListWidth = ref === null || ref === void 0 || (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelector(".".concat(carbon.prefix, "--action-list")).offsetWidth;
|
67
67
|
setInitialListWidth(batchActionListWidth);
|
68
68
|
setReceivedInitialWidth(true);
|
69
69
|
}
|
70
70
|
}, [totalSelected, receivedInitialWidth, ref]);
|
71
71
|
useEffect(function () {
|
72
|
-
var summaryWidth = ref === null || ref ===
|
72
|
+
var summaryWidth = ref === null || ref === void 0 ? void 0 : ref.current.querySelector(".".concat(carbon.prefix, "--batch-summary")).offsetWidth;
|
73
73
|
if (width < summaryWidth + initialListWidth + 32) {
|
74
74
|
setDisplayAllInMenu(true);
|
75
75
|
} else {
|
@@ -94,7 +94,7 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
94
94
|
var minWidthBeforeOverflowIcon = 380;
|
95
95
|
// Do not render ButtonMenu when there are 3 or less items
|
96
96
|
// and if there is enough available space to render all the items
|
97
|
-
if (toolbarBatchActions && !displayAllInMenu && (!toolbarBatchActionsDisplayMin && (toolbarBatchActions === null || toolbarBatchActions ===
|
97
|
+
if (toolbarBatchActions && !displayAllInMenu && (!toolbarBatchActionsDisplayMin && (toolbarBatchActions === null || toolbarBatchActions === void 0 ? void 0 : toolbarBatchActions.length) <= 3 || toolbarBatchActionsDisplayMin !== undefined && (toolbarBatchActions === null || toolbarBatchActions === void 0 ? void 0 : toolbarBatchActions.length) <= toolbarBatchActionsDisplayMin)) {
|
98
98
|
return;
|
99
99
|
}
|
100
100
|
var renderItem = function renderItem(batchAction, index) {
|
@@ -111,7 +111,7 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
111
111
|
className: cx([menuClass, _defineProperty({}, "".concat(menuClass, "-icon-only"), width <= minWidthBeforeOverflowIcon)]),
|
112
112
|
tabIndex: totalSelected > 0 ? 0 : -1,
|
113
113
|
menuAlignment: "bottom"
|
114
|
-
}, toolbarBatchActions === null || toolbarBatchActions ===
|
114
|
+
}, toolbarBatchActions === null || toolbarBatchActions === void 0 ? void 0 : toolbarBatchActions.map(function (batchAction, index) {
|
115
115
|
var hidden = toolbarBatchActionsDisplayMin === undefined && index < 2 && !displayAllInMenu;
|
116
116
|
if (toolbarBatchActionsDisplayMin !== undefined && index < toolbarBatchActionsDisplayMin && !displayAllInMenu) {
|
117
117
|
hidden = true;
|
@@ -136,11 +136,11 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
136
136
|
indeterminate: undefined
|
137
137
|
});
|
138
138
|
toggleAllRowsSelected(false);
|
139
|
-
setGlobalFilter === null || setGlobalFilter ===
|
139
|
+
setGlobalFilter === null || setGlobalFilter === void 0 || setGlobalFilter(null);
|
140
140
|
};
|
141
141
|
var onSelectAllHandler = function onSelectAllHandler() {
|
142
142
|
toggleAllRowsSelected(true);
|
143
|
-
onSelectAllRows === null || onSelectAllRows ===
|
143
|
+
onSelectAllRows === null || onSelectAllRows === void 0 || onSelectAllRows(true);
|
144
144
|
handleSelectAllRowData({
|
145
145
|
dispatch: dispatch,
|
146
146
|
rows: rows,
|
@@ -160,7 +160,7 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
160
160
|
onSelectAll: onSelectAllHandler,
|
161
161
|
totalCount: availableRowsCount,
|
162
162
|
translateWithId: translateWithIdBatchActions
|
163
|
-
}, !displayAllInMenu && toolbarBatchActions && (toolbarBatchActions === null || toolbarBatchActions ===
|
163
|
+
}, !displayAllInMenu && toolbarBatchActions && (toolbarBatchActions === null || toolbarBatchActions === void 0 ? void 0 : toolbarBatchActions.map(function (batchAction, index) {
|
164
164
|
if (!toolbarBatchActionsDisplayMin && index < 2 && toolbarBatchActions.length > 3 || index < 3 && toolbarBatchActions.length <= 3 || toolbarBatchActionsDisplayMin !== undefined && index < toolbarBatchActionsDisplayMin) {
|
165
165
|
return /*#__PURE__*/React__default.createElement(TableBatchAction, {
|
166
166
|
key: "".concat(batchAction.label, "-").concat(index),
|
@@ -191,11 +191,11 @@ var DatagridToolbar = function DatagridToolbar(_ref2) {
|
|
191
191
|
className: cx([blockClass, "".concat(blockClass, "--").concat(getRowHeight)])
|
192
192
|
}, /*#__PURE__*/React__default.createElement(TableToolbar, {
|
193
193
|
"aria-label": ariaToolbarLabel
|
194
|
-
}, DatagridActions && /*#__PURE__*/React__default.createElement(DatagridActions, datagridState), DatagridBatchActionsToolbar === null || DatagridBatchActionsToolbar ===
|
194
|
+
}, DatagridActions && /*#__PURE__*/React__default.createElement(DatagridActions, datagridState), DatagridBatchActionsToolbar === null || DatagridBatchActionsToolbar === void 0 ? void 0 : DatagridBatchActionsToolbar(datagridState, width, ref))) : DatagridActions ? /*#__PURE__*/React__default.createElement("div", {
|
195
195
|
className: blockClass
|
196
196
|
}, /*#__PURE__*/React__default.createElement(TableToolbar, {
|
197
197
|
"aria-label": ariaToolbarLabel
|
198
|
-
}, DatagridActions && /*#__PURE__*/React__default.createElement(DatagridActions, datagridState), DatagridBatchActions === null || DatagridBatchActions ===
|
198
|
+
}, DatagridActions && /*#__PURE__*/React__default.createElement(DatagridActions, datagridState), DatagridBatchActions === null || DatagridBatchActions === void 0 ? void 0 : DatagridBatchActions(datagridState))) : null;
|
199
199
|
};
|
200
200
|
DatagridToolbar.propTypes = {
|
201
201
|
ariaToolbarLabel: PropTypes.string
|
@@ -31,7 +31,7 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
31
31
|
onScroll = datagridState.onScroll,
|
32
32
|
innerListRef = datagridState.innerListRef,
|
33
33
|
_datagridState$tableH = datagridState.tableHeight,
|
34
|
-
tableHeight = _datagridState$tableH ===
|
34
|
+
tableHeight = _datagridState$tableH === void 0 ? 400 : _datagridState$tableH,
|
35
35
|
virtualHeight = datagridState.virtualHeight,
|
36
36
|
listRef = datagridState.listRef,
|
37
37
|
rowSize = datagridState.rowSize,
|
@@ -43,20 +43,20 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
43
43
|
onVirtualScroll = datagridState.onVirtualScroll;
|
44
44
|
var headWrapRef = useRef(null);
|
45
45
|
var innerRef = useRef(null);
|
46
|
-
var gridWidth = gridRef === null || gridRef ===
|
46
|
+
var gridWidth = gridRef === null || gridRef === void 0 || (_gridRef$current = gridRef.current) === null || _gridRef$current === void 0 ? void 0 : _gridRef$current.clientWidth;
|
47
47
|
/* istanbul ignore next */
|
48
48
|
var handleVirtualGridResize = function handleVirtualGridResize() {
|
49
|
-
var gridRefElement = gridRef === null || gridRef ===
|
49
|
+
var gridRefElement = gridRef === null || gridRef === void 0 ? void 0 : gridRef.current;
|
50
50
|
// isHidden checks for an edge case where if the table is hidden by something like a Tab that the width can't be calculated to 0
|
51
|
-
var isHidden = (gridRefElement === null || gridRefElement ===
|
51
|
+
var isHidden = (gridRefElement === null || gridRefElement === void 0 ? void 0 : gridRefElement.offsetParent) === null;
|
52
52
|
if (gridRefElement && !isHidden) {
|
53
53
|
var _gridRefElement$clien;
|
54
|
-
gridRefElement.style.width = gridRefElement === null || gridRefElement ===
|
54
|
+
gridRefElement.style.width = gridRefElement === null || gridRefElement === void 0 || (_gridRefElement$clien = gridRefElement.clientWidth) === null || _gridRefElement$clien === void 0 ? void 0 : _gridRefElement$clien.toString();
|
55
55
|
}
|
56
56
|
};
|
57
57
|
useResizeObserver(gridRef, handleVirtualGridResize);
|
58
58
|
useEffect(function () {
|
59
|
-
handleResize === null || handleResize ===
|
59
|
+
handleResize === null || handleResize === void 0 || handleResize();
|
60
60
|
}, [handleResize]);
|
61
61
|
var rowHeight = rowSize && rowSizeMap[rowSize] || defaultRowHeight;
|
62
62
|
useEffect(function () {
|
@@ -70,13 +70,13 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
70
70
|
// Sync the scrollLeft position of the virtual body to the table header
|
71
71
|
useEffect(function () {
|
72
72
|
var _document;
|
73
|
-
var headWrapEl = (_document = document) === null || _document ===
|
73
|
+
var headWrapEl = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector("#".concat(tableId, " .").concat(blockClass, "__head-wrap"));
|
74
74
|
|
75
75
|
// Syncs header scroll position when virtual body is scrolled
|
76
76
|
function handleVirtualScrollX(event) {
|
77
77
|
var virtualBody = event.target;
|
78
78
|
if (headWrapEl) {
|
79
|
-
headWrapEl.scrollLeft = virtualBody === null || virtualBody ===
|
79
|
+
headWrapEl.scrollLeft = virtualBody === null || virtualBody === void 0 ? void 0 : virtualBody.scrollLeft;
|
80
80
|
}
|
81
81
|
}
|
82
82
|
|
@@ -84,17 +84,17 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
84
84
|
function handleHeaderScrollX(event) {
|
85
85
|
var header = event.target;
|
86
86
|
if (testRef && testRef.current) {
|
87
|
-
testRef.current.scrollLeft = header === null || header ===
|
87
|
+
testRef.current.scrollLeft = header === null || header === void 0 ? void 0 : header.scrollLeft;
|
88
88
|
// this prevents the scroll bar from over exceeding the vertical scroll bar compensation in the right
|
89
89
|
header.scrollLeft = testRef.current.scrollLeft;
|
90
90
|
}
|
91
91
|
}
|
92
|
-
var testRefValue = testRef === null || testRef ===
|
93
|
-
testRefValue === null || testRefValue ===
|
94
|
-
headWrapEl === null || headWrapEl ===
|
92
|
+
var testRefValue = testRef === null || testRef === void 0 ? void 0 : testRef.current;
|
93
|
+
testRefValue === null || testRefValue === void 0 || testRefValue.addEventListener('scroll', handleVirtualScrollX);
|
94
|
+
headWrapEl === null || headWrapEl === void 0 || headWrapEl.addEventListener('scroll', handleHeaderScrollX);
|
95
95
|
return function () {
|
96
|
-
testRefValue === null || testRefValue ===
|
97
|
-
headWrapEl === null || headWrapEl ===
|
96
|
+
testRefValue === null || testRefValue === void 0 || testRefValue.removeEventListener('scroll', handleVirtualScrollX);
|
97
|
+
headWrapEl === null || headWrapEl === void 0 || headWrapEl.removeEventListener('scroll', handleHeaderScrollX);
|
98
98
|
};
|
99
99
|
});
|
100
100
|
useIsomorphicEffect(function () {
|
@@ -104,7 +104,7 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
104
104
|
}
|
105
105
|
}, [headWrapRef, gridWidth]);
|
106
106
|
useIsomorphicEffect(function () {
|
107
|
-
if (testRef !== null && testRef !==
|
107
|
+
if (testRef !== null && testRef !== void 0 && testRef.current && testRef.current.style) {
|
108
108
|
testRef.current.style.width = "".concat(gridWidth, "px");
|
109
109
|
}
|
110
110
|
}, [testRef, gridWidth]);
|
@@ -120,12 +120,12 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
120
120
|
itemCount: visibleRows.length,
|
121
121
|
itemSize: function itemSize(index) {
|
122
122
|
var _visibleRows$index;
|
123
|
-
return (_visibleRows$index = visibleRows[index]) !== null && _visibleRows$index !==
|
123
|
+
return (_visibleRows$index = visibleRows[index]) !== null && _visibleRows$index !== void 0 && _visibleRows$index.isExpanded ? (visibleRows[index].expandedContentHeight || 0) + rowHeight : rowHeight;
|
124
124
|
},
|
125
125
|
estimatedItemSize: rowHeight,
|
126
126
|
onScroll: onScroll,
|
127
127
|
onItemsRendered: function onItemsRendered(e) {
|
128
|
-
return onVirtualScroll === null || onVirtualScroll ===
|
128
|
+
return onVirtualScroll === null || onVirtualScroll === void 0 ? void 0 : onVirtualScroll(e);
|
129
129
|
},
|
130
130
|
innerRef: innerListRef,
|
131
131
|
outerRef: testRef,
|
@@ -142,7 +142,7 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
142
142
|
return /*#__PURE__*/React__default.createElement("div", {
|
143
143
|
ref: innerRef,
|
144
144
|
style: _objectSpread2({}, style)
|
145
|
-
}, row === null || row ===
|
145
|
+
}, row === null || row === void 0 || (_row$RowRenderer = row.RowRenderer) === null || _row$RowRenderer === void 0 ? void 0 : _row$RowRenderer.call(row, _objectSpread2(_objectSpread2({}, datagridState), {}, {
|
146
146
|
row: row,
|
147
147
|
key: key
|
148
148
|
})));
|
@@ -19,7 +19,7 @@ var ButtonWrapper = function ButtonWrapper(_ref) {
|
|
19
19
|
setIsTearsheetOpen = _ref.setIsTearsheetOpen,
|
20
20
|
isTearsheetOpen = _ref.isTearsheetOpen,
|
21
21
|
_ref$iconTooltipLabel = _ref.iconTooltipLabel,
|
22
|
-
iconTooltipLabel = _ref$iconTooltipLabel ===
|
22
|
+
iconTooltipLabel = _ref$iconTooltipLabel === void 0 ? 'Customize columns' : _ref$iconTooltipLabel,
|
23
23
|
rest = _objectWithoutProperties(_ref, _excluded);
|
24
24
|
return /*#__PURE__*/React.createElement(Button, _extends({}, rest, {
|
25
25
|
renderIcon: function renderIcon(props) {
|
@@ -41,7 +41,7 @@ var Columns = function Columns(_ref) {
|
|
41
41
|
return prevClone;
|
42
42
|
});
|
43
43
|
}, [setColumnsObject]);
|
44
|
-
var filteredStickyColumn = columns === null || columns ===
|
44
|
+
var filteredStickyColumn = columns === null || columns === void 0 ? void 0 : columns.filter(function (item) {
|
45
45
|
return !item.sticky;
|
46
46
|
});
|
47
47
|
return /*#__PURE__*/React__default.createElement("div", {
|
package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
CHANGED
@@ -22,23 +22,23 @@ var CustomizeColumnsTearsheet = function CustomizeColumnsTearsheet(_ref) {
|
|
22
22
|
columnDefinitions = _ref.columnDefinitions,
|
23
23
|
originalColumnDefinitions = _ref.originalColumnDefinitions,
|
24
24
|
_ref$customizeTearshe = _ref.customizeTearsheetHeadingLabel,
|
25
|
-
customizeTearsheetHeadingLabel = _ref$customizeTearshe ===
|
25
|
+
customizeTearsheetHeadingLabel = _ref$customizeTearshe === void 0 ? 'Customize columns' : _ref$customizeTearshe,
|
26
26
|
_ref$primaryButtonTex = _ref.primaryButtonTextLabel,
|
27
|
-
primaryButtonTextLabel = _ref$primaryButtonTex ===
|
27
|
+
primaryButtonTextLabel = _ref$primaryButtonTex === void 0 ? 'Save' : _ref$primaryButtonTex,
|
28
28
|
_ref$secondaryButtonT = _ref.secondaryButtonTextLabel,
|
29
|
-
secondaryButtonTextLabel = _ref$secondaryButtonT ===
|
29
|
+
secondaryButtonTextLabel = _ref$secondaryButtonT === void 0 ? 'Cancel' : _ref$secondaryButtonT,
|
30
30
|
_ref$instructionsLabe = _ref.instructionsLabel,
|
31
|
-
instructionsLabel = _ref$instructionsLabe ===
|
31
|
+
instructionsLabel = _ref$instructionsLabe === void 0 ? 'Select columns to display them. Click and drag the box to reorder the columns. These specifications will be saved and persist if you leave and return to the data table.' : _ref$instructionsLabe,
|
32
32
|
_ref$findColumnPlaceh = _ref.findColumnPlaceholderLabel,
|
33
|
-
findColumnPlaceholderLabel = _ref$findColumnPlaceh ===
|
33
|
+
findColumnPlaceholderLabel = _ref$findColumnPlaceh === void 0 ? 'Find column' : _ref$findColumnPlaceh,
|
34
34
|
_ref$resetToDefaultLa = _ref.resetToDefaultLabel,
|
35
|
-
resetToDefaultLabel = _ref$resetToDefaultLa ===
|
35
|
+
resetToDefaultLabel = _ref$resetToDefaultLa === void 0 ? 'Reset to default' : _ref$resetToDefaultLa,
|
36
36
|
_ref$assistiveTextIns = _ref.assistiveTextInstructionsLabel,
|
37
|
-
assistiveTextInstructionsLabel = _ref$assistiveTextIns ===
|
37
|
+
assistiveTextInstructionsLabel = _ref$assistiveTextIns === void 0 ? 'Press space bar to toggle drag drop mode, use arrow keys to move selected elements.' : _ref$assistiveTextIns,
|
38
38
|
_ref$assistiveTextDis = _ref.assistiveTextDisabledInstructionsLabel,
|
39
|
-
assistiveTextDisabledInstructionsLabel = _ref$assistiveTextDis ===
|
39
|
+
assistiveTextDisabledInstructionsLabel = _ref$assistiveTextDis === void 0 ? 'Reordering columns are disabled because they are filtered currently.' : _ref$assistiveTextDis,
|
40
40
|
_ref$selectAllLabel = _ref.selectAllLabel,
|
41
|
-
selectAllLabel = _ref$selectAllLabel ===
|
41
|
+
selectAllLabel = _ref$selectAllLabel === void 0 ? 'Column name' : _ref$selectAllLabel;
|
42
42
|
var _useState = useState(''),
|
43
43
|
_useState2 = _slicedToArray(_useState, 2),
|
44
44
|
visibleColumnsCount = _useState2[0],
|
@@ -62,7 +62,7 @@ var DraggableItemsList = function DraggableItemsList(_ref) {
|
|
62
62
|
var destOverCol = updatedDragCols.filter(function (item) {
|
63
63
|
return item.id === over.id;
|
64
64
|
});
|
65
|
-
if (destOverCol !== null && destOverCol !==
|
65
|
+
if (destOverCol !== null && destOverCol !== void 0 && destOverCol.length && (_destOverCol$ = destOverCol[0]) !== null && _destOverCol$ !== void 0 && _destOverCol$.disabled) {
|
66
66
|
return;
|
67
67
|
}
|
68
68
|
var fromVisibleIndex = updatedDragCols.findIndex(function (col) {
|
@@ -26,7 +26,7 @@ var TearsheetWrapper = function TearsheetWrapper(_ref) {
|
|
26
26
|
var _ref2 = state || {},
|
27
27
|
featureFlags = _ref2.featureFlags;
|
28
28
|
useEffect(function () {
|
29
|
-
if (featureFlags && !(featureFlags !== null && featureFlags !==
|
29
|
+
if (featureFlags && !(featureFlags !== null && featureFlags !== void 0 && featureFlags['enable-datagrid-useCustomizeColumns'])) {
|
30
30
|
console.error("Datagrid useCustomizeColumns extension has not been enabled via feature flag.");
|
31
31
|
}
|
32
32
|
}, [featureFlags]);
|
@@ -38,30 +38,30 @@ var emptyArray = [];
|
|
38
38
|
var FilterFlyout = function FilterFlyout(_ref) {
|
39
39
|
var updateMethod = _ref.updateMethod,
|
40
40
|
_ref$flyoutIconDescri = _ref.flyoutIconDescription,
|
41
|
-
flyoutIconDescription = _ref$flyoutIconDescri ===
|
41
|
+
flyoutIconDescription = _ref$flyoutIconDescri === void 0 ? defaults.flyoutIconDescription : _ref$flyoutIconDescri,
|
42
42
|
_ref$align = _ref.align,
|
43
|
-
align = _ref$align ===
|
43
|
+
align = _ref$align === void 0 ? defaults.align : _ref$align,
|
44
44
|
_ref$filters = _ref.filters,
|
45
|
-
filters = _ref$filters ===
|
45
|
+
filters = _ref$filters === void 0 ? emptyArray : _ref$filters,
|
46
46
|
_ref$title = _ref.title,
|
47
|
-
title = _ref$title ===
|
47
|
+
title = _ref$title === void 0 ? defaults.title : _ref$title,
|
48
48
|
_ref$primaryActionLab = _ref.primaryActionLabel,
|
49
|
-
primaryActionLabel = _ref$primaryActionLab ===
|
49
|
+
primaryActionLabel = _ref$primaryActionLab === void 0 ? defaults.primaryActionLabel : _ref$primaryActionLab,
|
50
50
|
_ref$onFlyoutOpen = _ref.onFlyoutOpen,
|
51
|
-
onFlyoutOpen = _ref$onFlyoutOpen ===
|
51
|
+
onFlyoutOpen = _ref$onFlyoutOpen === void 0 ? function () {} : _ref$onFlyoutOpen,
|
52
52
|
_ref$onFlyoutClose = _ref.onFlyoutClose,
|
53
|
-
onFlyoutClose = _ref$onFlyoutClose ===
|
53
|
+
onFlyoutClose = _ref$onFlyoutClose === void 0 ? function () {} : _ref$onFlyoutClose,
|
54
54
|
_ref$onApply = _ref.onApply,
|
55
|
-
onApply = _ref$onApply ===
|
55
|
+
onApply = _ref$onApply === void 0 ? function () {} : _ref$onApply,
|
56
56
|
_ref$onCancel = _ref.onCancel,
|
57
|
-
onCancel = _ref$onCancel ===
|
57
|
+
onCancel = _ref$onCancel === void 0 ? function () {} : _ref$onCancel,
|
58
58
|
_ref$secondaryActionL = _ref.secondaryActionLabel,
|
59
|
-
secondaryActionLabel = _ref$secondaryActionL ===
|
59
|
+
secondaryActionLabel = _ref$secondaryActionL === void 0 ? defaults.secondaryActionLabel : _ref$secondaryActionL,
|
60
60
|
setAllFilters = _ref.setAllFilters,
|
61
61
|
_ref$data = _ref.data,
|
62
|
-
data = _ref$data ===
|
62
|
+
data = _ref$data === void 0 ? emptyArray : _ref$data,
|
63
63
|
_ref$reactTableFilter = _ref.reactTableFiltersState,
|
64
|
-
reactTableFiltersState = _ref$reactTableFilter ===
|
64
|
+
reactTableFiltersState = _ref$reactTableFilter === void 0 ? emptyArray : _ref$reactTableFilter;
|
65
65
|
/** State */
|
66
66
|
var _useState = useState(false),
|
67
67
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -112,8 +112,8 @@ var FilterFlyout = function FilterFlyout(_ref) {
|
|
112
112
|
// Skip resize testing
|
113
113
|
/* istanbul ignore next */
|
114
114
|
var handleResize = function handleResize(current) {
|
115
|
-
var filterFlyoutRefPosition = flyoutInnerRef === null || flyoutInnerRef ===
|
116
|
-
var originalFlyoutWidth = parseInt(window.getComputedStyle(flyoutInnerRef === null || flyoutInnerRef ===
|
115
|
+
var filterFlyoutRefPosition = flyoutInnerRef === null || flyoutInnerRef === void 0 ? void 0 : flyoutInnerRef.current.getBoundingClientRect();
|
116
|
+
var originalFlyoutWidth = parseInt(window.getComputedStyle(flyoutInnerRef === null || flyoutInnerRef === void 0 ? void 0 : flyoutInnerRef.current).getPropertyValue('width'));
|
117
117
|
// Check to see if left value from flyout getBoundingClientRect is a negative number
|
118
118
|
// If it is, that is the amount we need to subtract from the flyout width
|
119
119
|
if (Math.sign(filterFlyoutRefPosition.left) === -1) {
|
@@ -128,7 +128,7 @@ var FilterFlyout = function FilterFlyout(_ref) {
|
|
128
128
|
flyoutInnerRef.current.style.width = px(_newFlyoutWidth);
|
129
129
|
}
|
130
130
|
// Begin stacking filters at this specific point
|
131
|
-
if ((current === null || current ===
|
131
|
+
if ((current === null || current === void 0 ? void 0 : current.innerWidth) <= mdPxWidth + 254) {
|
132
132
|
setStackedLayout(true);
|
133
133
|
} else {
|
134
134
|
setStackedLayout(false);
|
@@ -19,7 +19,7 @@ declare function FilterPanel({ title, closeIconDescription, updateMethod, filter
|
|
19
19
|
reactTableFiltersState?: any[] | undefined;
|
20
20
|
autoHideFilters?: boolean | undefined;
|
21
21
|
isFetching?: boolean | undefined;
|
22
|
-
}): React.JSX.Element;
|
22
|
+
}): React.JSX.Element | null;
|
23
23
|
declare namespace FilterPanel {
|
24
24
|
namespace propTypes {
|
25
25
|
let autoHideFilters: any;
|