@carbon/ibm-products 2.59.0 → 2.60.0-rc.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 +9105 -9158
- 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 +1150 -1565
- 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 +2837 -4774
- 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 +2250 -1875
- 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 +167 -196
- package/es/components/APIKeyModal/APIKeyDownloader.d.ts +6 -7
- package/es/components/APIKeyModal/APIKeyDownloader.js +3 -3
- package/es/components/APIKeyModal/APIKeyModal.d.ts +2 -3
- package/es/components/APIKeyModal/APIKeyModal.js +18 -18
- package/es/components/AboutModal/AboutModal.js +2 -2
- package/es/components/ActionBar/ActionBar.d.ts +1 -2
- package/es/components/ActionBar/ActionBar.js +4 -4
- package/es/components/ActionBar/ActionBarItem.js +1 -1
- package/es/components/ActionBar/ActionBarOverflowItems.d.ts +6 -7
- package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/es/components/ActionSet/ActionSet.d.ts +0 -1
- package/es/components/ActionSet/ActionSet.js +23 -12
- package/es/components/AddSelect/AddSelect.js +8 -22
- package/es/components/AddSelect/AddSelectBody.js +12 -12
- package/es/components/AddSelect/AddSelectBreadcrumbs.d.ts +3 -4
- package/es/components/AddSelect/AddSelectColumn.d.ts +10 -11
- package/es/components/AddSelect/AddSelectColumn.js +6 -6
- package/es/components/AddSelect/AddSelectFilter.d.ts +15 -16
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectFormControl.d.ts +4 -5
- package/es/components/AddSelect/AddSelectList.d.ts +3 -4
- package/es/components/AddSelect/AddSelectMetaPanel.d.ts +4 -9
- package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/es/components/AddSelect/AddSelectRow.d.ts +21 -22
- package/es/components/AddSelect/AddSelectRow.js +3 -3
- package/es/components/AddSelect/AddSelectSidebar.d.ts +12 -13
- package/es/components/AddSelect/AddSelectSidebar.js +1 -1
- package/es/components/AddSelect/AddSelectSort.d.ts +4 -5
- package/es/components/AddSelect/AddSelectSort.js +5 -5
- package/es/components/AddSelect/add-select-utils.js +6 -17
- package/es/components/AddSelect/hooks/usePath.js +1 -1
- package/es/components/BigNumbers/BigNumbers.d.ts +26 -3
- package/es/components/BigNumbers/BigNumbers.js +55 -110
- package/es/components/BigNumbers/BigNumbersSkeleton.d.ts +17 -0
- package/es/components/BigNumbers/BigNumbersSkeleton.js +63 -0
- package/es/components/BigNumbers/constants.d.ts +17 -11
- package/es/components/BigNumbers/constants.js +17 -40
- package/es/components/BigNumbers/index.d.ts +7 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +5 -31
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -5
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +6 -7
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/es/components/Card/Card.js +14 -14
- package/es/components/Card/CardFooter.d.ts +20 -21
- package/es/components/Card/CardFooter.js +5 -8
- package/es/components/Card/CardHeader.d.ts +22 -23
- package/es/components/Card/CardHeader.js +3 -5
- package/es/components/Carousel/Carousel.js +25 -25
- package/es/components/Cascade/Cascade.d.ts +1 -3
- package/es/components/Cascade/Cascade.js +18 -17
- package/es/components/Checklist/Checklist.d.ts +0 -1
- package/es/components/Checklist/Checklist.js +12 -12
- package/es/components/Checklist/ChecklistChart.d.ts +2 -2
- package/es/components/Checklist/ChecklistChart.js +2 -2
- package/es/components/Checklist/ChecklistIcon.d.ts +3 -3
- package/es/components/Checklist/ChecklistIcon.js +2 -2
- 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/Coachmark/utils/context.js +1 -1
- package/es/components/Coachmark/utils/enums.d.ts +1 -1
- package/es/components/Coachmark/utils/enums.js +3 -2
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +8 -8
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +15 -15
- package/es/components/CoachmarkStack/CoachmarkStack.js +11 -7
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +4 -4
- package/es/components/ComboButton/ComboButton.d.ts +1 -1
- package/es/components/ComboButton/ComboButton.js +24 -25
- package/es/components/ComboButton/ComboButtonItem/index.d.ts +4 -4
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +18 -19
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +18 -13
- package/es/components/ConditionBuilder/ConditionBuilder.js +7 -4
- package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +24 -26
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -6
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +10 -11
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +17 -18
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +6 -4
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +3 -4
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +5 -19
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +21 -21
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +2 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +18 -18
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +23 -10
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -4
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +3 -4
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +3 -4
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +3 -4
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +9 -9
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +4 -5
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +5 -6
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +40 -36
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -4
- 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.d.ts +2 -9
- package/es/components/ConditionBuilder/utils/util.js +59 -44
- package/es/components/CreateFullPage/CreateFullPage.js +6 -10
- package/es/components/CreateFullPage/CreateFullPageStep.js +10 -10
- package/es/components/CreateInfluencer/CreateInfluencer.d.ts +5 -11
- package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/es/components/CreateModal/CreateModal.d.ts +1 -2
- package/es/components/CreateModal/CreateModal.js +2 -2
- package/es/components/CreateSidePanel/CreateSidePanel.d.ts +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +7 -9
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +17 -17
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +57 -59
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +40 -40
- 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 +8 -8
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +11 -11
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +5 -5
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +7 -7
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +6 -6
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +3 -3
- 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 +8 -8
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +13 -13
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +16 -16
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +6 -6
- 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.d.ts +3 -29
- package/es/components/Datagrid/Datagrid/DatagridContent.js +17 -14
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -5
- package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +25 -25
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +24 -26
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +10 -10
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +10 -11
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +1 -2
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +14 -12
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +7 -8
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +7 -8
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +4 -5
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +12 -13
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +10 -8
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +14 -15
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +8 -8
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +14 -23
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +16 -16
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +19 -24
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +27 -24
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +4 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +8 -9
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +3 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +21 -21
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +10 -11
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +9 -17
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +36 -36
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -2
- 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.d.ts +6 -7
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +6 -6
- 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/types/index.d.ts +2 -5
- package/es/components/Datagrid/useActionsColumn.js +3 -3
- package/es/components/Datagrid/useColumnRightAlign.js +3 -3
- package/es/components/Datagrid/useCustomizeColumns.js +2 -2
- package/es/components/Datagrid/useDatagrid.js +3 -3
- 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 +8 -8
- package/es/components/Datagrid/useNestedRows.js +6 -6
- package/es/components/Datagrid/useOnRowClick.js +6 -4
- package/es/components/Datagrid/useRowExpander.js +5 -5
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/es/components/Datagrid/useRowRenderer.js +9 -10
- package/es/components/Datagrid/useSelectAllToggle.js +2 -2
- package/es/components/Datagrid/useSelectRows.js +7 -7
- 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.d.ts +1 -2
- package/es/components/EditInPlace/EditInPlace.js +7 -9
- package/es/components/EditSidePanel/EditSidePanel.js +3 -3
- package/es/components/EditTearsheet/EditTearsheet.js +4 -4
- package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/es/components/EmptyStates/EmptyState.d.ts +0 -1
- package/es/components/EmptyStates/EmptyState.js +6 -6
- package/es/components/EmptyStates/EmptyStateContent.d.ts +6 -7
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/EmptyStateIllustration.d.ts +1 -2
- package/es/components/EmptyStates/EmptyStateV2.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +4 -4
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +4 -4
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +4 -4
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +4 -4
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +4 -4
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +4 -4
- package/es/components/EmptyStates/assets/ErrorIllustration.d.ts +3 -4
- package/es/components/EmptyStates/assets/NoDataIllustration.d.ts +3 -4
- package/es/components/EmptyStates/assets/NoTagsIllustration.d.ts +3 -4
- package/es/components/EmptyStates/assets/NotFoundIllustration.d.ts +3 -4
- package/es/components/EmptyStates/assets/NotificationsIllustration.d.ts +3 -4
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +3 -4
- package/es/components/ExportModal/ExportModal.d.ts +1 -2
- package/es/components/ExportModal/ExportModal.js +8 -9
- package/es/components/FeatureFlags/index.d.ts +2 -5
- package/es/components/FeatureFlags/index.js +3 -3
- 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 +12 -12
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/FullPageError/assets/Error403SVG.d.ts +0 -1
- package/es/components/FullPageError/assets/Error404SVG.d.ts +0 -1
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +0 -1
- package/es/components/Guidebanner/Guidebanner.js +9 -9
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/HTTPErrors/HTTPErrorContent.d.ts +4 -4
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +0 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +0 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +0 -1
- package/es/components/ImportModal/ImportModal.js +5 -5
- package/es/components/InlineTip/InlineTip.d.ts +1 -1
- package/es/components/InlineTip/InlineTip.js +11 -13
- package/es/components/InlineTip/InlineTipButton.d.ts +2 -1
- package/es/components/InlineTip/utils.js +5 -5
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +16 -0
- package/es/components/InterstitialScreen/InterstitialScreen.js +65 -49
- package/es/components/Nav/Nav.js +5 -5
- package/es/components/Nav/NavItem.d.ts +12 -13
- package/es/components/Nav/NavItem.js +7 -7
- package/es/components/Nav/NavList.js +12 -12
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +7 -10
- package/es/components/NotificationsPanel/NotificationsPanel.js +74 -98
- package/es/components/OptionsTile/OptionsTile.js +4 -5
- package/es/components/PageHeader/PageHeader.d.ts +3 -4
- package/es/components/PageHeader/PageHeader.js +20 -21
- package/es/components/PageHeader/PageHeaderTitle.d.ts +3 -20
- 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.d.ts +1 -2
- package/es/components/RemoveModal/RemoveModal.js +3 -3
- package/es/components/Saving/Saving.js +4 -4
- package/es/components/ScrollGradient/ScrollGradient.js +5 -5
- package/es/components/SearchBar/SearchBar.d.ts +2 -3
- package/es/components/SearchBar/SearchBar.js +6 -13
- package/es/components/SidePanel/SidePanel.d.ts +1 -2
- package/es/components/SidePanel/SidePanel.js +59 -73
- package/es/components/SimpleHeader/SimpleHeader.d.ts +5 -17
- package/es/components/SimpleHeader/SimpleHeader.js +4 -4
- package/es/components/SingleAddSelect/SingleAddSelect.js +3 -1
- package/es/components/StatusIcon/StatusIcon.js +2 -2
- package/es/components/StatusIndicator/StatusIndicator.js +2 -2
- package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +15 -9
- package/es/components/StringFormatter/StringFormatter.js +5 -5
- package/es/components/TagOverflow/TagOverflow.js +6 -6
- package/es/components/TagOverflow/TagOverflowModal.d.ts +10 -14
- package/es/components/TagOverflow/TagOverflowModal.js +5 -5
- package/es/components/TagOverflow/TagOverflowPopover.d.ts +0 -1
- package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/es/components/TagSet/TagSet.d.ts +1 -1
- package/es/components/TagSet/TagSet.js +16 -19
- package/es/components/TagSet/TagSetModal.d.ts +8 -12
- package/es/components/TagSet/TagSetModal.js +7 -7
- package/es/components/TagSet/TagSetOverflow.d.ts +1 -1
- package/es/components/TagSet/TagSetOverflow.js +5 -4
- package/es/components/Tearsheet/Tearsheet.d.ts +1 -3
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +1 -3
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.d.ts +2 -3
- package/es/components/Tearsheet/TearsheetShell.js +9 -9
- package/es/components/Toolbar/Toolbar.d.ts +1 -1
- package/es/components/Toolbar/Toolbar.js +18 -10
- package/es/components/Toolbar/ToolbarButton.d.ts +2 -3
- package/es/components/Toolbar/ToolbarButton.js +4 -4
- package/es/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/es/components/TruncatedList/TruncatedList.js +8 -8
- package/es/components/UserAvatar/UserAvatar.js +4 -4
- package/es/components/UserProfileImage/UserProfileImage.d.ts +0 -1
- package/es/components/UserProfileImage/UserProfileImage.js +3 -3
- package/es/components/WebTerminal/WebTerminal.d.ts +0 -1
- package/es/components/WebTerminal/WebTerminal.js +10 -10
- package/es/components/WebTerminal/hooks/index.js +1 -1
- package/es/components/_Canary/Canary.d.ts +2 -3
- package/es/global/js/hooks/index.d.ts +2 -0
- package/es/global/js/hooks/useControllableState.js +2 -2
- package/es/global/js/hooks/useCreateComponentFocus.js +2 -2
- package/es/global/js/hooks/useCreateComponentStepChange.js +14 -14
- package/es/global/js/hooks/useFocus.js +33 -38
- package/es/global/js/hooks/useOverflowItems.d.ts +1 -1
- package/es/global/js/hooks/useOverflowItems.js +4 -4
- package/es/global/js/hooks/usePrefersReducedMotion.d.ts +1 -2
- package/es/global/js/hooks/usePrefersReducedMotion.js +1 -1
- package/es/global/js/hooks/usePresence.d.ts +10 -0
- package/es/global/js/hooks/usePresence.js +43 -0
- 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/hooks/useWindowResize.js +1 -1
- package/es/global/js/package-settings.js +4 -4
- package/es/global/js/utils/Wrap.js +4 -4
- package/es/global/js/utils/checkForOverflow.js +2 -2
- package/es/global/js/utils/deepCloneObject.js +3 -3
- package/es/global/js/utils/getNodeTextContent.js +5 -5
- package/es/global/js/utils/getSupportedLocale.d.ts +10 -0
- package/es/global/js/utils/getSupportedLocale.js +27 -0
- package/es/global/js/utils/lastIndexInArray.js +1 -1
- package/es/global/js/utils/motionConstants.js +2 -9
- package/es/global/js/utils/props-helper.d.ts +1 -1
- package/es/global/js/utils/props-helper.js +1 -1
- package/es/global/js/utils/scrollableAncestor.js +3 -3
- package/es/index.js +1 -1
- package/es/node_modules/@carbon/icon-helpers/es/index.js +7 -7
- package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +862 -854
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +883 -879
- package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/es/settings.js +3 -6
- package/lib/_virtual/_rollupPluginBabelHelpers.js +166 -196
- package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +6 -7
- package/lib/components/APIKeyModal/APIKeyDownloader.js +3 -3
- package/lib/components/APIKeyModal/APIKeyModal.d.ts +2 -3
- package/lib/components/APIKeyModal/APIKeyModal.js +18 -18
- package/lib/components/AboutModal/AboutModal.js +2 -2
- package/lib/components/ActionBar/ActionBar.d.ts +1 -2
- package/lib/components/ActionBar/ActionBar.js +4 -4
- package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +6 -7
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/lib/components/ActionSet/ActionSet.d.ts +0 -1
- package/lib/components/ActionSet/ActionSet.js +23 -12
- package/lib/components/AddSelect/AddSelect.js +6 -20
- package/lib/components/AddSelect/AddSelectBody.js +10 -10
- package/lib/components/AddSelect/AddSelectBreadcrumbs.d.ts +3 -4
- package/lib/components/AddSelect/AddSelectColumn.d.ts +10 -11
- package/lib/components/AddSelect/AddSelectColumn.js +6 -6
- package/lib/components/AddSelect/AddSelectFilter.d.ts +15 -16
- package/lib/components/AddSelect/AddSelectFilter.js +1 -1
- package/lib/components/AddSelect/AddSelectFormControl.d.ts +4 -5
- package/lib/components/AddSelect/AddSelectList.d.ts +3 -4
- package/lib/components/AddSelect/AddSelectMetaPanel.d.ts +4 -9
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/lib/components/AddSelect/AddSelectRow.d.ts +21 -22
- package/lib/components/AddSelect/AddSelectRow.js +3 -3
- package/lib/components/AddSelect/AddSelectSidebar.d.ts +12 -13
- package/lib/components/AddSelect/AddSelectSidebar.js +1 -1
- package/lib/components/AddSelect/AddSelectSort.d.ts +4 -5
- package/lib/components/AddSelect/AddSelectSort.js +5 -5
- package/lib/components/AddSelect/add-select-utils.js +6 -17
- package/lib/components/BigNumbers/BigNumbers.d.ts +26 -3
- package/lib/components/BigNumbers/BigNumbers.js +51 -106
- package/lib/components/BigNumbers/BigNumbersSkeleton.d.ts +17 -0
- package/lib/components/BigNumbers/BigNumbersSkeleton.js +65 -0
- package/lib/components/BigNumbers/constants.d.ts +17 -11
- package/lib/components/BigNumbers/constants.js +17 -41
- package/lib/components/BigNumbers/index.d.ts +7 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +5 -31
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -5
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +6 -7
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/lib/components/Card/Card.js +14 -14
- package/lib/components/Card/CardFooter.d.ts +20 -21
- package/lib/components/Card/CardFooter.js +5 -8
- package/lib/components/Card/CardHeader.d.ts +22 -23
- package/lib/components/Card/CardHeader.js +3 -5
- package/lib/components/Carousel/Carousel.js +25 -25
- package/lib/components/Cascade/Cascade.d.ts +1 -3
- package/lib/components/Cascade/Cascade.js +18 -17
- package/lib/components/Checklist/Checklist.d.ts +0 -1
- package/lib/components/Checklist/Checklist.js +11 -11
- package/lib/components/Checklist/ChecklistChart.d.ts +2 -2
- package/lib/components/Checklist/ChecklistChart.js +8 -8
- package/lib/components/Checklist/ChecklistIcon.d.ts +3 -3
- 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/Coachmark/utils/enums.d.ts +1 -1
- package/lib/components/Coachmark/utils/enums.js +3 -2
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +8 -8
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +15 -15
- package/lib/components/CoachmarkStack/CoachmarkStack.js +11 -7
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +4 -4
- package/lib/components/ComboButton/ComboButton.d.ts +1 -1
- package/lib/components/ComboButton/ComboButton.js +23 -24
- package/lib/components/ComboButton/ComboButtonItem/index.d.ts +4 -4
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +18 -19
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +18 -13
- package/lib/components/ConditionBuilder/ConditionBuilder.js +6 -3
- package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +24 -26
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -6
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +10 -11
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +17 -18
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +6 -4
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +3 -4
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +5 -19
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +2 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +18 -18
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +22 -9
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -4
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +3 -4
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +3 -4
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +3 -4
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +8 -8
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +4 -5
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +5 -6
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +40 -36
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -4
- 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.d.ts +2 -9
- package/lib/components/ConditionBuilder/utils/util.js +59 -43
- package/lib/components/CreateFullPage/CreateFullPage.js +6 -10
- package/lib/components/CreateFullPage/CreateFullPageStep.js +10 -10
- package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +5 -11
- package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/lib/components/CreateModal/CreateModal.d.ts +1 -2
- package/lib/components/CreateModal/CreateModal.js +2 -2
- package/lib/components/CreateSidePanel/CreateSidePanel.d.ts +1 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +7 -9
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +17 -17
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +53 -55
- 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 +8 -8
- 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 +6 -6
- 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.d.ts +3 -29
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +16 -13
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -5
- 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 +23 -25
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +10 -11
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +14 -12
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +7 -8
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +7 -8
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +4 -5
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +12 -13
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +9 -7
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +14 -15
- 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.d.ts +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +14 -23
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +19 -24
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +25 -22
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +4 -5
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +8 -9
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +3 -3
- 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.d.ts +10 -11
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +9 -17
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -2
- 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.d.ts +6 -7
- 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/types/index.d.ts +2 -5
- package/lib/components/Datagrid/useActionsColumn.js +2 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
- package/lib/components/Datagrid/useCustomizeColumns.js +2 -2
- 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 +7 -7
- package/lib/components/Datagrid/useNestedRows.js +6 -6
- package/lib/components/Datagrid/useOnRowClick.js +6 -4
- package/lib/components/Datagrid/useRowExpander.js +4 -4
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/lib/components/Datagrid/useRowRenderer.js +9 -10
- package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
- package/lib/components/Datagrid/useSelectRows.js +6 -6
- 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.d.ts +1 -2
- package/lib/components/EditInPlace/EditInPlace.js +7 -9
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheet.js +4 -4
- package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/lib/components/EmptyStates/EmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/EmptyState.js +5 -5
- package/lib/components/EmptyStates/EmptyStateContent.d.ts +6 -7
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/EmptyStates/EmptyStateIllustration.d.ts +1 -2
- package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/lib/components/EmptyStates/assets/ErrorIllustration.d.ts +3 -4
- package/lib/components/EmptyStates/assets/NoDataIllustration.d.ts +3 -4
- package/lib/components/EmptyStates/assets/NoTagsIllustration.d.ts +3 -4
- package/lib/components/EmptyStates/assets/NotFoundIllustration.d.ts +3 -4
- package/lib/components/EmptyStates/assets/NotificationsIllustration.d.ts +3 -4
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +3 -4
- package/lib/components/ExportModal/ExportModal.d.ts +1 -2
- package/lib/components/ExportModal/ExportModal.js +8 -9
- package/lib/components/FeatureFlags/index.d.ts +2 -5
- 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 +11 -11
- package/lib/components/FullPageError/FullPageError.js +1 -1
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +0 -1
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +0 -1
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +0 -1
- package/lib/components/Guidebanner/Guidebanner.js +8 -8
- package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/lib/components/HTTPErrors/HTTPErrorContent.d.ts +4 -4
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +0 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +0 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +0 -1
- package/lib/components/ImportModal/ImportModal.js +4 -4
- package/lib/components/InlineTip/InlineTip.d.ts +1 -1
- package/lib/components/InlineTip/InlineTip.js +9 -11
- package/lib/components/InlineTip/InlineTipButton.d.ts +2 -1
- package/lib/components/InlineTip/utils.js +5 -5
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +16 -0
- package/lib/components/InterstitialScreen/InterstitialScreen.js +64 -48
- package/lib/components/Nav/Nav.js +1 -1
- package/lib/components/Nav/NavItem.d.ts +12 -13
- package/lib/components/Nav/NavItem.js +7 -7
- package/lib/components/Nav/NavList.js +12 -12
- package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +7 -10
- package/lib/components/NotificationsPanel/NotificationsPanel.js +74 -98
- package/lib/components/OptionsTile/OptionsTile.js +5 -6
- package/lib/components/PageHeader/PageHeader.d.ts +3 -4
- package/lib/components/PageHeader/PageHeader.js +19 -20
- package/lib/components/PageHeader/PageHeaderTitle.d.ts +3 -20
- 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.d.ts +1 -2
- package/lib/components/RemoveModal/RemoveModal.js +3 -3
- package/lib/components/Saving/Saving.js +4 -4
- package/lib/components/ScrollGradient/ScrollGradient.js +4 -4
- package/lib/components/SearchBar/SearchBar.d.ts +2 -3
- package/lib/components/SearchBar/SearchBar.js +6 -13
- package/lib/components/SidePanel/SidePanel.d.ts +1 -2
- package/lib/components/SidePanel/SidePanel.js +60 -74
- package/lib/components/SimpleHeader/SimpleHeader.d.ts +5 -17
- package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
- package/lib/components/SingleAddSelect/SingleAddSelect.js +3 -1
- 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/SteppedAnimatedMedia/SteppedAnimatedMedia.js +15 -9
- package/lib/components/StringFormatter/StringFormatter.js +4 -4
- package/lib/components/TagOverflow/TagOverflow.js +6 -6
- package/lib/components/TagOverflow/TagOverflowModal.d.ts +10 -14
- package/lib/components/TagOverflow/TagOverflowModal.js +5 -5
- package/lib/components/TagOverflow/TagOverflowPopover.d.ts +0 -1
- package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/lib/components/TagSet/TagSet.d.ts +1 -1
- package/lib/components/TagSet/TagSet.js +16 -19
- package/lib/components/TagSet/TagSetModal.d.ts +8 -12
- package/lib/components/TagSet/TagSetModal.js +7 -7
- package/lib/components/TagSet/TagSetOverflow.d.ts +1 -1
- package/lib/components/TagSet/TagSetOverflow.js +5 -4
- package/lib/components/Tearsheet/Tearsheet.d.ts +1 -3
- package/lib/components/Tearsheet/Tearsheet.js +2 -2
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +1 -3
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/lib/components/Tearsheet/TearsheetShell.d.ts +2 -3
- package/lib/components/Tearsheet/TearsheetShell.js +7 -7
- package/lib/components/Toolbar/Toolbar.d.ts +1 -1
- package/lib/components/Toolbar/Toolbar.js +18 -10
- package/lib/components/Toolbar/ToolbarButton.d.ts +2 -3
- package/lib/components/Toolbar/ToolbarButton.js +4 -4
- package/lib/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/lib/components/TruncatedList/TruncatedList.js +8 -8
- package/lib/components/UserAvatar/UserAvatar.js +4 -4
- package/lib/components/UserProfileImage/UserProfileImage.d.ts +0 -1
- package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
- package/lib/components/WebTerminal/WebTerminal.d.ts +0 -1
- package/lib/components/WebTerminal/WebTerminal.js +11 -11
- package/lib/components/_Canary/Canary.d.ts +2 -3
- package/lib/global/js/hooks/index.d.ts +2 -0
- package/lib/global/js/hooks/useControllableState.js +2 -2
- package/lib/global/js/hooks/useCreateComponentFocus.js +2 -2
- package/lib/global/js/hooks/useCreateComponentStepChange.js +14 -14
- package/lib/global/js/hooks/useFocus.js +33 -38
- package/lib/global/js/hooks/useOverflowItems.d.ts +1 -1
- package/lib/global/js/hooks/useOverflowItems.js +4 -4
- package/lib/global/js/hooks/usePrefersReducedMotion.d.ts +1 -2
- package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -3
- package/lib/global/js/hooks/usePresence.d.ts +10 -0
- package/lib/global/js/hooks/usePresence.js +45 -0
- 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 +4 -4
- package/lib/global/js/utils/checkForOverflow.js +2 -2
- package/lib/global/js/utils/deepCloneObject.js +3 -3
- package/lib/global/js/utils/getNodeTextContent.js +5 -5
- package/lib/global/js/utils/getSupportedLocale.d.ts +10 -0
- package/lib/global/js/utils/getSupportedLocale.js +29 -0
- package/lib/global/js/utils/lastIndexInArray.js +1 -1
- package/lib/global/js/utils/motionConstants.js +1 -8
- package/lib/global/js/utils/props-helper.d.ts +1 -1
- package/lib/global/js/utils/props-helper.js +1 -1
- package/lib/global/js/utils/scrollableAncestor.js +3 -3
- package/lib/index.js +5 -5
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +7 -7
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +863 -855
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +884 -880
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/lib/settings.js +3 -6
- package/package.json +34 -35
- package/scss/components/APIKeyModal/_api-key-modal.scss +7 -7
- package/scss/components/APIKeyModal/_carbon-imports.scss +5 -5
- package/scss/components/AboutModal/_about-modal.scss +13 -13
- package/scss/components/AboutModal/_carbon-imports.scss +2 -2
- package/scss/components/ActionBar/_action-bar.scss +2 -2
- package/scss/components/ActionBar/_carbon-imports.scss +2 -2
- package/scss/components/ActionSet/_action-set.scss +9 -10
- package/scss/components/ActionSet/_carbon-imports.scss +2 -2
- package/scss/components/AddSelect/_add-select.scss +43 -40
- package/scss/components/AddSelect/_carbon-imports.scss +10 -10
- package/scss/components/BigNumbers/_big-numbers.scss +26 -20
- package/scss/components/BigNumbers/_carbon-imports.scss +2 -2
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +8 -6
- package/scss/components/BreadcrumbWithOverflow/_carbon-imports.scss +3 -3
- package/scss/components/ButtonMenu/_button-menu.scss +3 -3
- package/scss/components/ButtonMenu/_carbon-imports.scss +2 -2
- package/scss/components/ButtonSetWithOverflow/_button-set-with-overflow.scss +2 -2
- package/scss/components/ButtonSetWithOverflow/_carbon-imports.scss +1 -1
- package/scss/components/Card/_carbon-imports.scss +2 -2
- package/scss/components/Card/_card.scss +23 -22
- package/scss/components/Carousel/_carousel.scss +5 -6
- package/scss/components/Cascade/_cascade.scss +2 -2
- package/scss/components/Checklist/_carbon-imports.scss +1 -1
- package/scss/components/Checklist/_checklist.scss +23 -24
- package/scss/components/Coachmark/_carbon-imports.scss +1 -1
- package/scss/components/Coachmark/_coachmark-dragbar.scss +1 -1
- package/scss/components/Coachmark/_coachmark-overlay.scss +34 -27
- package/scss/components/Coachmark/_coachmark-tagline.scss +18 -15
- package/scss/components/Coachmark/_coachmark.scss +1 -1
- package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +17 -17
- package/scss/components/CoachmarkButton/_coachmark-button.scss +1 -1
- package/scss/components/CoachmarkFixed/_coachmark-fixed.scss +1 -1
- package/scss/components/CoachmarkOverlayElement/_coachmark-overlay-element.scss +5 -5
- package/scss/components/CoachmarkOverlayElements/_coachmark-overlay-elements.scss +4 -4
- package/scss/components/CoachmarkStack/_coachmark-stack.scss +11 -11
- package/scss/components/ComboButton/_combo-button.scss +13 -9
- package/scss/components/ConditionBuilder/_condition-builder.scss +11 -12
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +10 -10
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +26 -30
- package/scss/components/CreateFullPage/_carbon-imports.scss +6 -6
- package/scss/components/CreateFullPage/_create-full-page.scss +36 -26
- package/scss/components/CreateInfluencer/_carbon-imports.scss +1 -1
- package/scss/components/CreateInfluencer/_create-influencer.scss +5 -2
- package/scss/components/CreateModal/_carbon-imports.scss +3 -3
- package/scss/components/CreateModal/_create-modal.scss +15 -14
- package/scss/components/CreateSidePanel/_carbon-imports.scss +1 -1
- package/scss/components/CreateSidePanel/_create-side-panel.scss +5 -5
- package/scss/components/CreateTearsheet/_carbon-imports.scss +1 -1
- package/scss/components/CreateTearsheet/_create-tearsheet.scss +22 -20
- package/scss/components/CreateTearsheetNarrow/_carbon-imports.scss +1 -1
- package/scss/components/CreateTearsheetNarrow/_create-tearsheet-narrow.scss +8 -8
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +33 -32
- package/scss/components/Datagrid/_datagrid.scss +12 -8
- package/scss/components/Datagrid/styles/_datagrid.scss +135 -120
- package/scss/components/Datagrid/styles/_draggableElement.scss +11 -11
- package/scss/components/Datagrid/styles/_useActionsColumn.scss +1 -1
- package/scss/components/Datagrid/styles/_useColumnCenterAlign.scss +2 -3
- package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +7 -7
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +13 -13
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +62 -63
- package/scss/components/Datagrid/styles/_useNestedRows.scss +16 -16
- package/scss/components/Datagrid/styles/_useNestedTable.scss +10 -7
- package/scss/components/Datagrid/styles/_useSelectAllToggle.scss +6 -6
- package/scss/components/Datagrid/styles/_useSortableColumns.scss +6 -6
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +11 -11
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +9 -9
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +19 -19
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +29 -29
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +10 -9
- package/scss/components/DecoratorBase/_decorator-base-mixins.scss +6 -8
- package/scss/components/DecoratorBase/_decorator-base.scss +11 -11
- package/scss/components/DelimitedList/_delimited-list.scss +1 -1
- package/scss/components/DescriptionList/_description-list.scss +9 -9
- package/scss/components/EditInPlace/_carbon-imports.scss +2 -2
- package/scss/components/EditInPlace/_edit-in-place.scss +8 -7
- package/scss/components/EditSidePanel/_carbon-imports.scss +1 -1
- package/scss/components/EditSidePanel/_edit-side-panel.scss +4 -4
- package/scss/components/EditTearsheet/_carbon-imports.scss +9 -0
- package/scss/components/EditTearsheet/_edit-tearsheet.scss +20 -21
- package/scss/components/EditTearsheet/_index-with-carbon.scss +9 -0
- package/scss/components/EmptyStates/_carbon-imports.scss +2 -2
- package/scss/components/EmptyStates/_empty-state.scss +12 -10
- package/scss/components/ExampleComponent/_carbon-imports.scss +1 -1
- package/scss/components/ExportModal/_carbon-imports.scss +6 -6
- package/scss/components/ExportModal/_export-modal.scss +6 -6
- package/scss/components/FilterPanel/_carbon-imports.scss +5 -5
- package/scss/components/FilterPanel/_filter-panel-accordion-item.scss +3 -3
- package/scss/components/FilterPanel/_filter-panel-checkbox-with-overflow.scss +5 -5
- package/scss/components/FilterPanel/_filter-panel-checkbox.scss +3 -3
- package/scss/components/FilterPanel/_filter-panel-group.scss +4 -6
- package/scss/components/FilterPanel/_filter-panel-label.scss +1 -1
- package/scss/components/FilterPanel/_filter-panel-search.scss +8 -6
- package/scss/components/FilterPanel/_filter-panel.scss +1 -2
- package/scss/components/FilterSummary/_filter-summary.scss +9 -9
- package/scss/components/FullPageError/_full-page-error.scss +8 -9
- package/scss/components/GetStartedCard/_get-started-card.scss +12 -14
- package/scss/components/Guidebanner/_guidebanner.scss +37 -36
- package/scss/components/HTTPErrors/_carbon-imports.scss +1 -1
- package/scss/components/HTTPErrors/_http-errors.scss +11 -11
- package/scss/components/ImportModal/_carbon-imports.scss +4 -4
- package/scss/components/ImportModal/_import-modal.scss +12 -13
- package/scss/components/InlineTip/_inline-tip.scss +26 -25
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +43 -44
- package/scss/components/InterstitialScreenView/_interstitial-screen-view.scss +2 -2
- package/scss/components/InterstitialScreenViewModule/_interstitial-screen-view-module.scss +2 -2
- package/scss/components/Nav/_nav.scss +32 -37
- package/scss/components/NonLinearReading/_non-linear-reading.scss +11 -7
- package/scss/components/NotificationsPanel/_carbon-imports.scss +3 -3
- package/scss/components/NotificationsPanel/_notifications-panel.scss +50 -40
- package/scss/components/OptionsTile/_carbon-imports.scss +1 -1
- package/scss/components/OptionsTile/_options-tile.scss +23 -25
- package/scss/components/PageHeader/_carbon-imports.scss +4 -4
- package/scss/components/PageHeader/_page-header.scss +109 -105
- package/scss/components/ProductiveCard/_productive-card.scss +11 -12
- package/scss/components/RemoveModal/_carbon-imports.scss +3 -3
- package/scss/components/RemoveModal/_remove-modal.scss +4 -4
- package/scss/components/Saving/_carbon-imports.scss +2 -2
- package/scss/components/Saving/_saving.scss +2 -2
- package/scss/components/ScrollGradient/_scroll-gradient.scss +18 -18
- package/scss/components/SidePanel/_animations.scss +78 -0
- package/scss/components/SidePanel/_carbon-imports.scss +1 -1
- package/scss/components/SidePanel/_side-panel.scss +154 -65
- package/scss/components/SimpleHeader/_simple-header.scss +3 -3
- package/scss/components/StatusIcon/_status-icon.scss +1 -1
- package/scss/components/StatusIndicator/_carbon-imports.scss +2 -2
- package/scss/components/StatusIndicator/_status-indicator.scss +11 -11
- package/scss/components/StringFormatter/_carbon-imports.scss +1 -1
- package/scss/components/StringFormatter/_string-formatter.scss +6 -7
- package/scss/components/TagOverflow/_tag-overflow.scss +14 -15
- package/scss/components/TagSet/_carbon-imports.scss +5 -5
- package/scss/components/TagSet/_tag-set.scss +13 -14
- package/scss/components/Tearsheet/_carbon-imports.scss +2 -2
- package/scss/components/Tearsheet/_tearsheet.scss +55 -41
- package/scss/components/Toolbar/_carbon-imports.scss +1 -1
- package/scss/components/Toolbar/_toolbar.scss +11 -11
- package/scss/components/TooltipTrigger/_tooltip-trigger.scss +2 -2
- package/scss/components/TruncatedList/_truncated-list.scss +8 -2
- package/scss/components/UserAvatar/_carbon-imports.scss +1 -1
- package/scss/components/UserAvatar/_user-avatar.scss +6 -16
- package/scss/components/UserProfileImage/_carbon-imports.scss +1 -1
- package/scss/components/UserProfileImage/_color-map.scss +1 -1
- package/scss/components/UserProfileImage/_user-profile-image.scss +5 -4
- package/scss/components/WebTerminal/_carbon-imports.scss +2 -2
- package/scss/components/WebTerminal/_web-terminal.scss +11 -11
- package/scss/components/_index-released-only-with-carbon.scss +1 -0
- package/scss/components/_index-with-carbon.scss +1 -0
- package/scss/global/decorators/_side-panel-decorator.scss +3 -3
- package/scss/global/styles/_display-box.scss +19 -19
- package/scss/global/styles/_mixins.scss +3 -3
- package/scss/index-full-carbon.scss +1 -1
- package/telemetry.yml +5 -2
- package/es/components/SidePanel/motion/variants.d.ts +0 -67
- package/es/components/SidePanel/motion/variants.js +0 -79
- package/es/global/js/utils/keyboardNavigation.d.ts +0 -27
- package/es/global/js/utils/keyboardNavigation.js +0 -37
- package/es/global/js/utils/wrapFocus.d.ts +0 -25
- package/es/global/js/utils/wrapFocus.js +0 -68
- package/lib/components/SidePanel/motion/variants.d.ts +0 -67
- package/lib/components/SidePanel/motion/variants.js +0 -83
- package/lib/global/js/utils/keyboardNavigation.d.ts +0 -27
- package/lib/global/js/utils/keyboardNavigation.js +0 -41
- package/lib/global/js/utils/wrapFocus.d.ts +0 -25
- package/lib/global/js/utils/wrapFocus.js +0 -73
@@ -26,7 +26,7 @@ var getSpreadsheetWidth = function getSpreadsheetWidth(_ref) {
|
|
26
26
|
}
|
27
27
|
if (totalVisibleColumns) {
|
28
28
|
var totalVisibleColumnWidth = visibleColumns.map(function (item, index) {
|
29
|
-
return index <= totalVisibleColumns - 1 && ((item === null || item ===
|
29
|
+
return index <= totalVisibleColumns - 1 && ((item === null || item === undefined ? undefined : item.width) || (defaultColumn === null || defaultColumn === undefined ? undefined : defaultColumn.width));
|
30
30
|
}).reduce(function (prev, curr) {
|
31
31
|
return prev + curr;
|
32
32
|
}, 0);
|
@@ -29,11 +29,11 @@ var handleActiveCellInSelectionEnter = function handleActiveCellInSelectionEnter
|
|
29
29
|
greatestRowIndex = _getSelectionAreaPoin.greatestRowIndex;
|
30
30
|
// Move active cell down one row if possible
|
31
31
|
var coordinatesClone = _objectSpread2({}, activeCellCoordinates);
|
32
|
-
if ((activeCellCoordinates === null || activeCellCoordinates ===
|
32
|
+
if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) < greatestRowIndex) {
|
33
33
|
updateActiveCellCoordinates({
|
34
34
|
coords: coordinatesClone,
|
35
35
|
updatedValue: {
|
36
|
-
row: (coordinatesClone === null || coordinatesClone ===
|
36
|
+
row: (coordinatesClone === null || coordinatesClone === undefined ? undefined : coordinatesClone.row) + 1
|
37
37
|
},
|
38
38
|
optOutOfSelectionAreaUpdate: true
|
39
39
|
});
|
@@ -41,12 +41,12 @@ var handleActiveCellInSelectionEnter = function handleActiveCellInSelectionEnter
|
|
41
41
|
// Move active cell to next column of selection area if it exists
|
42
42
|
// If not, find the next selection area and update active cell to
|
43
43
|
// be the first cell in that selection
|
44
|
-
if ((activeCellCoordinates === null || activeCellCoordinates ===
|
45
|
-
if ((activeCellCoordinates === null || activeCellCoordinates ===
|
44
|
+
if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === greatestRowIndex) {
|
45
|
+
if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) < greatestColumnIndex) {
|
46
46
|
updateActiveCellCoordinates({
|
47
47
|
coords: coordinatesClone,
|
48
48
|
updatedValue: {
|
49
|
-
column: (coordinatesClone === null || coordinatesClone ===
|
49
|
+
column: (coordinatesClone === null || coordinatesClone === undefined ? undefined : coordinatesClone.column) + 1,
|
50
50
|
row: lowestRowIndex
|
51
51
|
},
|
52
52
|
optOutOfSelectionAreaUpdate: true
|
@@ -54,7 +54,7 @@ var handleActiveCellInSelectionEnter = function handleActiveCellInSelectionEnter
|
|
54
54
|
}
|
55
55
|
// Move to next selection area if there is one, or back to
|
56
56
|
// the beginning of the current selection
|
57
|
-
if ((activeCellCoordinates === null || activeCellCoordinates ===
|
57
|
+
if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === greatestColumnIndex) {
|
58
58
|
if (selectionAreas.length > 1) {
|
59
59
|
if (selectionAreas[activeCellIndexInSelectionAreas + 1]) {
|
60
60
|
// Update activeCellRef data-selection-id attribute to the matcher of the next selection area
|
@@ -27,10 +27,10 @@ var handleActiveCellInSelectionTab = function handleActiveCellInSelectionTab(_re
|
|
27
27
|
greatestColumnIndex = _getSelectionAreaPoin.greatestColumnIndex,
|
28
28
|
greatestRowIndex = _getSelectionAreaPoin.greatestRowIndex;
|
29
29
|
// Move active cell to next column in selection area
|
30
|
-
if ((activeCellCoordinates === null || activeCellCoordinates ===
|
30
|
+
if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) < greatestColumnIndex) {
|
31
31
|
updateActiveCellCoordinates({
|
32
32
|
updatedValue: {
|
33
|
-
column: (activeCellCoordinates === null || activeCellCoordinates ===
|
33
|
+
column: (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) + 1
|
34
34
|
},
|
35
35
|
optOutOfSelectionAreaUpdate: true
|
36
36
|
});
|
@@ -38,19 +38,19 @@ var handleActiveCellInSelectionTab = function handleActiveCellInSelectionTab(_re
|
|
38
38
|
// Move active cell to next row of selection area if it exists
|
39
39
|
// If not, find the next selection area and update active cell to
|
40
40
|
// be the first cell in that selection
|
41
|
-
if ((activeCellCoordinates === null || activeCellCoordinates ===
|
42
|
-
if ((activeCellCoordinates === null || activeCellCoordinates ===
|
41
|
+
if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === greatestColumnIndex) {
|
42
|
+
if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) < greatestRowIndex) {
|
43
43
|
updateActiveCellCoordinates({
|
44
44
|
updatedValue: {
|
45
45
|
column: lowestColumnIndex,
|
46
|
-
row: (activeCellCoordinates === null || activeCellCoordinates ===
|
46
|
+
row: (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) + 1
|
47
47
|
},
|
48
48
|
optOutOfSelectionAreaUpdate: true
|
49
49
|
});
|
50
50
|
}
|
51
51
|
// Move to next selection area if there is on, or back to
|
52
52
|
// the beginning of the current selection
|
53
|
-
if ((activeCellCoordinates === null || activeCellCoordinates ===
|
53
|
+
if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === greatestRowIndex) {
|
54
54
|
if (selectionAreas.length > 1) {
|
55
55
|
if (selectionAreas[activeCellIndexInSelectionAreas + 1]) {
|
56
56
|
// Update activeCellRef data-selection-id attribute to the matcher of the next selection area
|
@@ -5,7 +5,7 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import { deepCloneObject } from '../../../global/js/utils/deepCloneObject.js';
|
8
|
+
import { deepCloneObject as _deepCloneObject } from '../../../global/js/utils/deepCloneObject.js';
|
9
9
|
import { rangeWithCallback } from '../../../global/js/utils/rangeWithCallback.js';
|
10
10
|
|
11
11
|
var handleCellDeletion = function handleCellDeletion(_ref) {
|
@@ -19,22 +19,22 @@ var handleCellDeletion = function handleCellDeletion(_ref) {
|
|
19
19
|
// This means that the delete key has been pressed when the active cell is in a header,
|
20
20
|
// not within the spreadsheet body. To delete an entire row/column, it must first be
|
21
21
|
// selected, and then can be deleted.
|
22
|
-
if ((activeCellCoordinates === null || activeCellCoordinates ===
|
22
|
+
if ((activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header') {
|
23
23
|
return;
|
24
24
|
}
|
25
|
-
var selectionAreaClone =
|
25
|
+
var selectionAreaClone = _deepCloneObject(selectionAreas);
|
26
26
|
var indexOfCurrentSelectionArea = selectionAreaClone.findIndex(function (item) {
|
27
27
|
return item.matcher === currentMatcher;
|
28
28
|
});
|
29
29
|
var selectionAreaToEmptyContents = selectionAreaClone[indexOfCurrentSelectionArea];
|
30
|
-
var lowestColumnIndex = Math.min(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents ===
|
31
|
-
var greatestColumnIndex = Math.max(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents ===
|
32
|
-
var lowestRowIndex = Math.min(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents ===
|
33
|
-
var greatestRowIndex = Math.max(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents ===
|
30
|
+
var lowestColumnIndex = Math.min(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === undefined || (_selectionAreaToEmpty = selectionAreaToEmptyContents.point1) === null || _selectionAreaToEmpty === undefined ? undefined : _selectionAreaToEmpty.column, selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === undefined || (_selectionAreaToEmpty2 = selectionAreaToEmptyContents.point2) === null || _selectionAreaToEmpty2 === undefined ? undefined : _selectionAreaToEmpty2.column);
|
31
|
+
var greatestColumnIndex = Math.max(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === undefined || (_selectionAreaToEmpty3 = selectionAreaToEmptyContents.point1) === null || _selectionAreaToEmpty3 === undefined ? undefined : _selectionAreaToEmpty3.column, selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === undefined || (_selectionAreaToEmpty4 = selectionAreaToEmptyContents.point2) === null || _selectionAreaToEmpty4 === undefined ? undefined : _selectionAreaToEmpty4.column);
|
32
|
+
var lowestRowIndex = Math.min(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === undefined || (_selectionAreaToEmpty5 = selectionAreaToEmptyContents.point1) === null || _selectionAreaToEmpty5 === undefined ? undefined : _selectionAreaToEmpty5.row, selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === undefined || (_selectionAreaToEmpty6 = selectionAreaToEmptyContents.point2) === null || _selectionAreaToEmpty6 === undefined ? undefined : _selectionAreaToEmpty6.row);
|
33
|
+
var greatestRowIndex = Math.max(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === undefined || (_selectionAreaToEmpty7 = selectionAreaToEmptyContents.point1) === null || _selectionAreaToEmpty7 === undefined ? undefined : _selectionAreaToEmpty7.row, selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === undefined || (_selectionAreaToEmpty8 = selectionAreaToEmptyContents.point2) === null || _selectionAreaToEmpty8 === undefined ? undefined : _selectionAreaToEmpty8.row);
|
34
34
|
rangeWithCallback(lowestColumnIndex, greatestColumnIndex, function (columnIndex) {
|
35
35
|
rangeWithCallback(lowestRowIndex, greatestRowIndex, function (rowIndex) {
|
36
36
|
var cellProps = rows[rowIndex].cells[columnIndex];
|
37
|
-
updateData(rowIndex, cellProps === null || cellProps ===
|
37
|
+
updateData(rowIndex, cellProps === null || cellProps === undefined ? undefined : cellProps.column.id, '');
|
38
38
|
});
|
39
39
|
});
|
40
40
|
setActiveCellContent(null);
|
@@ -27,10 +27,10 @@ var handleEditSubmit = function handleEditSubmit(_ref) {
|
|
27
27
|
var updateSelectionAreaOnCellEditSubmit = function updateSelectionAreaOnCellEditSubmit(_ref2) {
|
28
28
|
var type = _ref2.type;
|
29
29
|
var submitEditChanges = function submitEditChanges() {
|
30
|
-
var prevCoords = previousState === null || previousState ===
|
31
|
-
var cellProps = rows[prevCoords === null || prevCoords ===
|
30
|
+
var prevCoords = previousState === null || previousState === undefined ? undefined : previousState.activeCellCoordinates;
|
31
|
+
var cellProps = rows[prevCoords === null || prevCoords === undefined ? undefined : prevCoords.row].cells[prevCoords === null || prevCoords === undefined ? undefined : prevCoords.column];
|
32
32
|
removeCellEditor();
|
33
|
-
updateData(prevCoords === null || prevCoords ===
|
33
|
+
updateData(prevCoords === null || prevCoords === undefined ? undefined : prevCoords.row, cellProps.column.id);
|
34
34
|
};
|
35
35
|
removeCellSelections({
|
36
36
|
spreadsheetRef: spreadsheetRef
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { toConsumableArray as _toConsumableArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import { deepCloneObject } from '../../../global/js/utils/deepCloneObject.js';
|
9
|
+
import { deepCloneObject as _deepCloneObject } from '../../../global/js/utils/deepCloneObject.js';
|
10
10
|
import uuidv4 from '../../../global/js/utils/uuidv4.js';
|
11
11
|
import { removeCellSelections } from './removeCellSelections.js';
|
12
12
|
import { checkActiveHeaderCell } from './checkActiveHeaderCell.js';
|
@@ -44,8 +44,8 @@ var handleHeaderCellSelection = function handleHeaderCellSelection(_ref2) {
|
|
44
44
|
spreadsheetRef: spreadsheetRef
|
45
45
|
});
|
46
46
|
}
|
47
|
-
var rowValue = isKeyboard ? activeCellCoordinates === null || activeCellCoordinates ===
|
48
|
-
var columnValue = isKeyboard ? activeCellCoordinates === null || activeCellCoordinates ===
|
47
|
+
var rowValue = isKeyboard ? activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row : index;
|
48
|
+
var columnValue = isKeyboard ? activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column : index;
|
49
49
|
var point1 = {
|
50
50
|
row: type === 'column' ? 0 : rowValue,
|
51
51
|
column: type === 'column' ? columnValue : 0
|
@@ -74,15 +74,15 @@ var handleHeaderCellSelection = function handleHeaderCellSelection(_ref2) {
|
|
74
74
|
}
|
75
75
|
};
|
76
76
|
setSelectionAreas(function (prev) {
|
77
|
-
var selectionsClone =
|
77
|
+
var selectionsClone = _deepCloneObject(prev);
|
78
78
|
if (isHoldingCommandKey) {
|
79
79
|
var selectionsFromHeaderCell = selectionsClone.filter(function (item) {
|
80
80
|
var _item$header;
|
81
|
-
return (_item$header = item.header) === null || _item$header ===
|
81
|
+
return (_item$header = item.header) === null || _item$header === undefined ? undefined : _item$header.type;
|
82
82
|
});
|
83
83
|
var previouslyCreatedHeaderSelection = selectionsFromHeaderCell.filter(function (item) {
|
84
84
|
var _item$header2;
|
85
|
-
return ((_item$header2 = item.header) === null || _item$header2 ===
|
85
|
+
return ((_item$header2 = item.header) === null || _item$header2 === undefined ? undefined : _item$header2.type) === type;
|
86
86
|
});
|
87
87
|
var isHeaderPartOfPreviousSelection = checkActiveHeaderCell(index, previouslyCreatedHeaderSelection, type);
|
88
88
|
// Prevents row/column header selections from being created multiple times
|
@@ -95,26 +95,26 @@ var handleHeaderCellSelection = function handleHeaderCellSelection(_ref2) {
|
|
95
95
|
var _selectionAreasClone$;
|
96
96
|
var _selectionsFromHeaderCell = selectionsClone.filter(function (item) {
|
97
97
|
var _item$header3;
|
98
|
-
return (_item$header3 = item.header) === null || _item$header3 ===
|
98
|
+
return (_item$header3 = item.header) === null || _item$header3 === undefined ? undefined : _item$header3.type;
|
99
99
|
});
|
100
100
|
// Shift/click behavior should not occur unless there are activeCellCoordinates set
|
101
101
|
var currentSelectionArea = _selectionsFromHeaderCell.filter(function (item) {
|
102
102
|
return item.matcher === currentMatcher;
|
103
103
|
})[0];
|
104
|
-
var originalAreaIndex = Math.max(currentSelectionArea === null || currentSelectionArea ===
|
104
|
+
var originalAreaIndex = Math.max(currentSelectionArea === null || currentSelectionArea === undefined ? undefined : currentSelectionArea.point1[type], currentSelectionArea === null || currentSelectionArea === undefined ? undefined : currentSelectionArea.point2[type], activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates[type]);
|
105
105
|
var newIndexValue = type === 'column' ? columnValue : rowValue;
|
106
106
|
var newPoint = {
|
107
107
|
row: originalAreaIndex < newIndexValue ? rows.length - 1 : 0,
|
108
108
|
column: columnValue
|
109
109
|
};
|
110
|
-
var selectionAreasClone =
|
110
|
+
var selectionAreasClone = _deepCloneObject(prev);
|
111
111
|
var indexOfCurrentArea = selectionAreasClone.findIndex(function (item) {
|
112
112
|
return item.matcher === currentMatcher;
|
113
113
|
});
|
114
114
|
var newIndexList = getSelectedItemIndexList({
|
115
|
-
indexList: ((_selectionAreasClone$ = selectionAreasClone[indexOfCurrentArea]) === null || _selectionAreasClone$ ===
|
115
|
+
indexList: ((_selectionAreasClone$ = selectionAreasClone[indexOfCurrentArea]) === null || _selectionAreasClone$ === undefined || (_selectionAreasClone$ = _selectionAreasClone$.header) === null || _selectionAreasClone$ === undefined ? undefined : _selectionAreasClone$.selectedIndexList) || [type === 'column' ? columnValue : rowValue],
|
116
116
|
newIndex: newIndexValue,
|
117
|
-
activeCellIndex: activeCellCoordinates === null || activeCellCoordinates ===
|
117
|
+
activeCellIndex: activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates[type]
|
118
118
|
});
|
119
119
|
var setPoint1 = function setPoint1(value) {
|
120
120
|
return value < newIndexValue ? {
|
@@ -148,8 +148,8 @@ var handleHeaderCellSelection = function handleHeaderCellSelection(_ref2) {
|
|
148
148
|
});
|
149
149
|
return [firstSelectionArea];
|
150
150
|
}
|
151
|
-
selectionAreasClone[indexOfCurrentArea].point1 = setPoint1(activeCellCoordinates === null || activeCellCoordinates ===
|
152
|
-
selectionAreasClone[indexOfCurrentArea].point2 = setPoint2(activeCellCoordinates === null || activeCellCoordinates ===
|
151
|
+
selectionAreasClone[indexOfCurrentArea].point1 = setPoint1(activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates[type]);
|
152
|
+
selectionAreasClone[indexOfCurrentArea].point2 = setPoint2(activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates[type]);
|
153
153
|
selectionAreasClone[indexOfCurrentArea].areaCreated = false;
|
154
154
|
selectionAreasClone[indexOfCurrentArea].header.selectedIndexList = newIndexList;
|
155
155
|
return selectionAreasClone;
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { objectSpread2 as _objectSpread2 } from '../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import { deepCloneObject } from '../../../global/js/utils/deepCloneObject.js';
|
9
|
+
import { deepCloneObject as _deepCloneObject } from '../../../global/js/utils/deepCloneObject.js';
|
10
10
|
import uuidv4 from '../../../global/js/utils/uuidv4.js';
|
11
11
|
import { selectAllCells } from './selectAllCells.js';
|
12
12
|
|
@@ -52,14 +52,14 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
52
52
|
blockClass = _ref.blockClass,
|
53
53
|
setCurrentMatcher = _ref.setCurrentMatcher,
|
54
54
|
usingMac = _ref.usingMac;
|
55
|
-
var selectionAreasClone =
|
55
|
+
var selectionAreasClone = _deepCloneObject(selectionAreas);
|
56
56
|
var indexOfCurrentArea = selectionAreasClone.findIndex(function (item) {
|
57
57
|
return item.matcher === currentMatcher;
|
58
58
|
});
|
59
|
-
var pointToUpdate = (_selectionAreasClone$ = selectionAreasClone[indexOfCurrentArea]) !== null && _selectionAreasClone$ !==
|
59
|
+
var pointToUpdate = (_selectionAreasClone$ = selectionAreasClone[indexOfCurrentArea]) !== null && _selectionAreasClone$ !== undefined && _selectionAreasClone$.point2 ? (_selectionAreasClone$2 = selectionAreasClone[indexOfCurrentArea]) === null || _selectionAreasClone$2 === undefined ? undefined : _selectionAreasClone$2.point2 : (_selectionAreasClone$3 = selectionAreasClone[indexOfCurrentArea]) === null || _selectionAreasClone$3 === undefined ? undefined : _selectionAreasClone$3.point1;
|
60
60
|
// Down + Shift
|
61
61
|
if (includesShift(keysPressedList) && keysPressedList.includes('ArrowDown') && keysPressedList.length === 2) {
|
62
|
-
if (rows.length - 1 === (pointToUpdate === null || pointToUpdate ===
|
62
|
+
if (rows.length - 1 === (pointToUpdate === null || pointToUpdate === undefined ? undefined : pointToUpdate.row) || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header') {
|
63
63
|
return;
|
64
64
|
}
|
65
65
|
var newPoint = {
|
@@ -72,7 +72,7 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
72
72
|
}
|
73
73
|
// Right + Shift
|
74
74
|
if (includesShift(keysPressedList) && keysPressedList.includes('ArrowRight') && keysPressedList.length === 2) {
|
75
|
-
if (columns.length - 1 === (pointToUpdate === null || pointToUpdate ===
|
75
|
+
if (columns.length - 1 === (pointToUpdate === null || pointToUpdate === undefined ? undefined : pointToUpdate.column) || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header') {
|
76
76
|
return;
|
77
77
|
}
|
78
78
|
var _newPoint = {
|
@@ -85,7 +85,7 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
85
85
|
}
|
86
86
|
// Up + Shift
|
87
87
|
if (includesShift(keysPressedList) && keysPressedList.includes('ArrowUp') && keysPressedList.length === 2) {
|
88
|
-
if ((pointToUpdate === null || pointToUpdate ===
|
88
|
+
if ((pointToUpdate === null || pointToUpdate === undefined ? undefined : pointToUpdate.row) === 0 || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header') {
|
89
89
|
return;
|
90
90
|
}
|
91
91
|
var _newPoint2 = {
|
@@ -98,7 +98,7 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
98
98
|
}
|
99
99
|
// Left + Shift
|
100
100
|
if (includesShift(keysPressedList) && keysPressedList.includes('ArrowLeft') && keysPressedList.length === 2) {
|
101
|
-
if ((pointToUpdate === null || pointToUpdate ===
|
101
|
+
if ((pointToUpdate === null || pointToUpdate === undefined ? undefined : pointToUpdate.column) === 0 || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header') {
|
102
102
|
return;
|
103
103
|
}
|
104
104
|
var _newPoint3 = {
|
@@ -141,11 +141,11 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
141
141
|
if (includesControl(keysPressedList) && keysPressedList.includes('Space')) {
|
142
142
|
var _selectionPoint = {
|
143
143
|
row: 0,
|
144
|
-
column: (activeCellCoordinates === null || activeCellCoordinates ===
|
144
|
+
column: (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column
|
145
145
|
};
|
146
146
|
var _selectionPoint2 = {
|
147
147
|
row: rows.length - 1,
|
148
|
-
column: (activeCellCoordinates === null || activeCellCoordinates ===
|
148
|
+
column: (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column
|
149
149
|
};
|
150
150
|
// If indexOfCurrentArea is -1, it means the active cell is in a cell header position
|
151
151
|
if (indexOfCurrentArea === -1) {
|
@@ -160,8 +160,8 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
160
160
|
updateActiveCellCoordinates({
|
161
161
|
coords: coordinatesClone,
|
162
162
|
updatedValue: {
|
163
|
-
column: (activeCellCoordinates === null || activeCellCoordinates ===
|
164
|
-
row: (activeCellCoordinates === null || activeCellCoordinates ===
|
163
|
+
column: (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column,
|
164
|
+
row: (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row
|
165
165
|
}
|
166
166
|
});
|
167
167
|
setCurrentMatcher(tempMatcher);
|
@@ -175,11 +175,11 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
175
175
|
// Shift + SPACE (Select current row)
|
176
176
|
if (includesShift(keysPressedList) && keysPressedList.includes('Space')) {
|
177
177
|
var _selectionPoint3 = {
|
178
|
-
row: (activeCellCoordinates === null || activeCellCoordinates ===
|
178
|
+
row: (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row,
|
179
179
|
column: 0
|
180
180
|
};
|
181
181
|
var _selectionPoint4 = {
|
182
|
-
row: (activeCellCoordinates === null || activeCellCoordinates ===
|
182
|
+
row: (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row,
|
183
183
|
column: columns.length - 1
|
184
184
|
};
|
185
185
|
// If indexOfCurrentArea is -1, it means the active cell is in a cell header position
|
@@ -195,8 +195,8 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
195
195
|
updateActiveCellCoordinates({
|
196
196
|
coords: _coordinatesClone,
|
197
197
|
updatedValue: {
|
198
|
-
column: (activeCellCoordinates === null || activeCellCoordinates ===
|
199
|
-
row: (activeCellCoordinates === null || activeCellCoordinates ===
|
198
|
+
column: (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.column,
|
199
|
+
row: (activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === undefined ? undefined : activeCellCoordinates.row
|
200
200
|
}
|
201
201
|
});
|
202
202
|
setCurrentMatcher(_tempMatcher);
|
@@ -233,7 +233,7 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
233
233
|
removeCellSelections({
|
234
234
|
spreadsheetRef: spreadsheetRef
|
235
235
|
});
|
236
|
-
var lastCellExists = !!rows[(rows === null || rows ===
|
236
|
+
var lastCellExists = !!rows[(rows === null || rows === undefined ? undefined : rows.length) - 1].cells[(columns === null || columns === undefined ? undefined : columns.length) - 1];
|
237
237
|
var updateToLastCell = function updateToLastCell() {
|
238
238
|
updateActiveCellCoordinates({
|
239
239
|
coords: _coordinatesClone3,
|
@@ -10,17 +10,17 @@ import { pkg } from '../../../settings.js';
|
|
10
10
|
|
11
11
|
var moveColumnIndicatorLine = function moveColumnIndicatorLine(_ref) {
|
12
12
|
var _ref$blockClass = _ref.blockClass,
|
13
|
-
blockClass = _ref$blockClass ===
|
13
|
+
blockClass = _ref$blockClass === undefined ? "".concat(pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
|
14
14
|
clonedSelectionElement = _ref.clonedSelectionElement,
|
15
15
|
ref = _ref.ref,
|
16
16
|
spreadsheetCoords = _ref.spreadsheetCoords,
|
17
17
|
leftScrollAmount = _ref.leftScrollAmount;
|
18
18
|
var closestCell = event.target.closest(".".concat(blockClass, "--interactive-cell-element"));
|
19
|
-
var newColumnIndex = closestCell === null || closestCell ===
|
20
|
-
var originalColumnIndex = clonedSelectionElement === null || clonedSelectionElement ===
|
19
|
+
var newColumnIndex = closestCell === null || closestCell === undefined ? undefined : closestCell.getAttribute('data-column-index');
|
20
|
+
var originalColumnIndex = clonedSelectionElement === null || clonedSelectionElement === undefined ? undefined : clonedSelectionElement.getAttribute('data-column-index-original');
|
21
21
|
var closestCellCoords = closestCell.getBoundingClientRect();
|
22
22
|
var indicatorLineElement = ref.current.querySelector(".".concat(blockClass, "__reorder-indicator-line"));
|
23
|
-
var matcherId = clonedSelectionElement === null || clonedSelectionElement ===
|
23
|
+
var matcherId = clonedSelectionElement === null || clonedSelectionElement === undefined ? undefined : clonedSelectionElement.getAttribute('data-matcher-id');
|
24
24
|
var selectionAreaOrigin = ref.current.querySelector("[data-matcher-id=\"".concat(matcherId, "\"]"));
|
25
25
|
var listContainer = ref.current.querySelector(".".concat(blockClass, "__list--container"));
|
26
26
|
var scrollSpeed = 10; // Scrolling speed
|
@@ -35,7 +35,7 @@ var moveColumnIndicatorLine = function moveColumnIndicatorLine(_ref) {
|
|
35
35
|
|
36
36
|
// Is near left side of viewport
|
37
37
|
if (clientX < leftEdgeThreshold) {
|
38
|
-
window.scrollBy(-
|
38
|
+
window.scrollBy(-10, 0);
|
39
39
|
}
|
40
40
|
|
41
41
|
// Is near right side of viewport
|
@@ -45,7 +45,7 @@ var moveColumnIndicatorLine = function moveColumnIndicatorLine(_ref) {
|
|
45
45
|
|
46
46
|
// Is near left edge of table
|
47
47
|
if (clientX > left && clientX < left + leftEdgeThreshold) {
|
48
|
-
listContainer.scrollBy(-
|
48
|
+
listContainer.scrollBy(-10, 0);
|
49
49
|
}
|
50
50
|
|
51
51
|
// Is near right edge of table
|
@@ -13,7 +13,7 @@ var removeCellSelections = function removeCellSelections(_ref) {
|
|
13
13
|
var matcher = _ref.matcher,
|
14
14
|
spreadsheetRef = _ref.spreadsheetRef,
|
15
15
|
_ref$blockClass = _ref.blockClass,
|
16
|
-
blockClass = _ref$blockClass ===
|
16
|
+
blockClass = _ref$blockClass === undefined ? "".concat(pkg.prefix, "--data-spreadsheet") : _ref$blockClass;
|
17
17
|
if (matcher && typeof matcher === 'string') {
|
18
18
|
var selectionToRemove = spreadsheetRef.current.querySelector("[data-matcher-id=\"".concat(matcher, "\"]"));
|
19
19
|
if (selectionToRemove) {
|
@@ -44,14 +44,14 @@ var Datagrid = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
44
44
|
ariaToolbarLabel: ariaToolbarLabel
|
45
45
|
};
|
46
46
|
return /*#__PURE__*/React__default.createElement(FilterProvider, {
|
47
|
-
filters: state === null || state ===
|
47
|
+
filters: state === null || state === undefined ? undefined : state.filters,
|
48
48
|
filterProps: filterProps,
|
49
49
|
tableId: tableId
|
50
50
|
}, /*#__PURE__*/React__default.createElement(InlineEditProvider, null, /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
51
51
|
id: tableId,
|
52
52
|
ref: ref,
|
53
53
|
className: cx(className, blockClass, withVirtualScroll ? "".concat(blockClass, "__datagridWrap") : "".concat(blockClass, "__datagridWrap-simple"), !isFetching && rows.length === 0 ? "".concat(blockClass, "__empty-state") : '')
|
54
|
-
}, getDevtoolsProps(componentName)), (filterProps === null || filterProps ===
|
54
|
+
}, getDevtoolsProps(componentName)), (filterProps === null || filterProps === undefined ? undefined : filterProps.variation) === 'panel' ? /*#__PURE__*/React__default.createElement("div", {
|
55
55
|
className: "".concat(blockClass, "__datagridWithPanel ").concat(blockClass, "__displayFlex")
|
56
56
|
}, /*#__PURE__*/React__default.createElement(DatagridContent, props)) : /*#__PURE__*/React__default.createElement(DatagridContent, props))));
|
57
57
|
});
|
@@ -14,7 +14,7 @@ import DatagridRefBody from './DatagridRefBody.js';
|
|
14
14
|
var DatagridBody = function DatagridBody(datagridState) {
|
15
15
|
var isFetching = datagridState.isFetching,
|
16
16
|
_datagridState$rows = datagridState.rows,
|
17
|
-
rows = _datagridState$rows ===
|
17
|
+
rows = _datagridState$rows === undefined ? [] : _datagridState$rows,
|
18
18
|
withVirtualScroll = datagridState.withVirtualScroll,
|
19
19
|
withStickyColumn = datagridState.withStickyColumn;
|
20
20
|
if (!isFetching && rows.length === 0) {
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import '../../../feature-flags';
|
2
2
|
import React from 'react';
|
3
|
-
import PropTypes from 'prop-types';
|
4
3
|
import { DataGridState } from '../types';
|
5
4
|
interface DatagridContentProps {
|
6
5
|
ariaToolbarLabel?: string;
|
@@ -10,34 +9,9 @@ interface DatagridContentProps {
|
|
10
9
|
export declare const DatagridContent: {
|
11
10
|
({ datagridState, ariaToolbarLabel, title, }: DatagridContentProps): React.JSX.Element;
|
12
11
|
propTypes: {
|
13
|
-
ariaToolbarLabel:
|
14
|
-
datagridState:
|
15
|
-
|
16
|
-
getFilterFlyoutProps: PropTypes.Requireable<(...args: any[]) => any>;
|
17
|
-
withVirtualScroll: PropTypes.Requireable<boolean>;
|
18
|
-
DatagridActions: PropTypes.Requireable<NonNullable<PropTypes.ReactElementLike | ((...args: any[]) => any) | null | undefined>>;
|
19
|
-
DatagridPagination: PropTypes.Requireable<NonNullable<PropTypes.ReactElementLike | ((...args: any[]) => any) | null | undefined>>;
|
20
|
-
CustomizeColumnsTearsheet: PropTypes.Requireable<NonNullable<PropTypes.ReactElementLike | ((...args: any[]) => any) | null | undefined>>;
|
21
|
-
isFetching: PropTypes.Requireable<boolean>;
|
22
|
-
skeletonRowCount: PropTypes.Requireable<number>;
|
23
|
-
fullHeightDatagrid: PropTypes.Requireable<boolean>;
|
24
|
-
filterProps: PropTypes.Requireable<object>;
|
25
|
-
variableRowHeight: PropTypes.Requireable<boolean>;
|
26
|
-
useDenseHeader: PropTypes.Requireable<boolean>;
|
27
|
-
withInlineEdit: PropTypes.Requireable<boolean>;
|
28
|
-
verticalAlign: PropTypes.Requireable<string>;
|
29
|
-
gridTitle: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
30
|
-
gridDescription: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
31
|
-
page: PropTypes.Requireable<(object | null | undefined)[]>;
|
32
|
-
rows: PropTypes.Requireable<(object | null | undefined)[]>;
|
33
|
-
tableId: PropTypes.Requireable<string>;
|
34
|
-
totalColumnsWidth: PropTypes.Requireable<number>;
|
35
|
-
gridRef: PropTypes.Requireable<object>;
|
36
|
-
setAllFilters: PropTypes.Requireable<(...args: any[]) => any>;
|
37
|
-
getFilterProps: PropTypes.Requireable<(...args: any[]) => any>;
|
38
|
-
state: PropTypes.Requireable<object>;
|
39
|
-
}>>;
|
40
|
-
title: PropTypes.Requireable<string>;
|
12
|
+
ariaToolbarLabel: any;
|
13
|
+
datagridState: any;
|
14
|
+
title: any;
|
41
15
|
};
|
42
16
|
};
|
43
17
|
export {};
|
@@ -10,7 +10,7 @@ import '../../../feature-flags.js';
|
|
10
10
|
import React__default, { useContext, useRef, useEffect } from 'react';
|
11
11
|
import { TableContainer, Table } from '@carbon/react';
|
12
12
|
import { pkg, carbon } from '../../../settings.js';
|
13
|
-
import {
|
13
|
+
import { CLEAR_FILTERS, CLEAR_SINGLE_FILTER } from './addons/Filtering/constants.js';
|
14
14
|
import DatagridBody from './DatagridBody.js';
|
15
15
|
import DatagridHead from './DatagridHead.js';
|
16
16
|
import DatagridToolbar from './DatagridToolbar.js';
|
@@ -55,7 +55,7 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
55
55
|
filterProps = datagridState.filterProps,
|
56
56
|
fullHeightDatagrid = datagridState.fullHeightDatagrid,
|
57
57
|
_datagridState$vertic = datagridState.verticalAlign,
|
58
|
-
verticalAlign = _datagridState$vertic ===
|
58
|
+
verticalAlign = _datagridState$vertic === undefined ? 'center' : _datagridState$vertic,
|
59
59
|
variableRowHeight = datagridState.variableRowHeight,
|
60
60
|
gridTitle = datagridState.gridTitle,
|
61
61
|
gridDescription = datagridState.gridDescription,
|
@@ -87,7 +87,7 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
87
87
|
});
|
88
88
|
}, [dispatch, enableEditableCell, enableCustomizeCols, enableInlineEdit]);
|
89
89
|
useEffect(function () {
|
90
|
-
if (featureFlags && (featureFlags !== null && featureFlags !==
|
90
|
+
if (featureFlags && (featureFlags !== null && featureFlags !== undefined && featureFlags['enable-datagrid-useEditableCell'] || featureFlags !== null && featureFlags !== undefined && featureFlags['enable-datagrid-useInlineEdit'])) {
|
91
91
|
console.error("Datagrid useEditableCell/useInlineEdit extension has not been enabled via feature flag.");
|
92
92
|
}
|
93
93
|
}, [featureFlags]);
|
@@ -107,8 +107,8 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
107
107
|
});
|
108
108
|
});
|
109
109
|
var renderTable = function renderTable() {
|
110
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Table, _extends({}, getTableProps === null || getTableProps ===
|
111
|
-
className: cx(withVirtualScroll ? "".concat(blockClass, "__table-virtual-scroll") : "".concat(blockClass, "__table-simple"), "".concat(blockClass, "__vertical-align-").concat(verticalAlign), _defineProperty({}, "".concat(blockClass, "__variable-row-height"), variableRowHeight), _defineProperty({}, "".concat(blockClass, "__table-with-inline-edit"), withInlineEdit), _defineProperty({}, "".concat(blockClass, "__table-grid-active"), gridActive), _defineProperty({}, "".concat(blockClass, "__table-is-resizing"), typeof (columnResizing === null || columnResizing ===
|
110
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Table, _extends({}, getTableProps === null || getTableProps === undefined ? undefined : getTableProps(), {
|
111
|
+
className: cx(withVirtualScroll ? "".concat(blockClass, "__table-virtual-scroll") : "".concat(blockClass, "__table-simple"), "".concat(blockClass, "__vertical-align-").concat(verticalAlign), _defineProperty({}, "".concat(blockClass, "__variable-row-height"), variableRowHeight), _defineProperty({}, "".concat(blockClass, "__table-with-inline-edit"), withInlineEdit), _defineProperty({}, "".concat(blockClass, "__table-grid-active"), gridActive), _defineProperty({}, "".concat(blockClass, "__table-is-resizing"), typeof (columnResizing === null || columnResizing === undefined ? undefined : columnResizing.isResizingColumn) === 'string'), getTableProps === null || getTableProps === undefined ? undefined : getTableProps().className),
|
112
112
|
role: withInlineEdit ? 'grid' : undefined,
|
113
113
|
tabIndex: withInlineEdit ? 0 : -1,
|
114
114
|
onKeyDown: withInlineEdit && function (event) {
|
@@ -128,7 +128,7 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
128
128
|
title: title
|
129
129
|
}), (!withVirtualScroll || withVirtualScroll && !isFetching && !contentRows.length) && /*#__PURE__*/React__default.createElement(DatagridHead, datagridState), /*#__PURE__*/React__default.createElement(DatagridBody, _extends({}, datagridState, {
|
130
130
|
rows: contentRows
|
131
|
-
}))), (filterProps === null || filterProps ===
|
131
|
+
}))), (filterProps === null || filterProps === undefined ? undefined : filterProps.variation) === 'panel' && renderPagination());
|
132
132
|
};
|
133
133
|
var _useMultipleKeyTracki = useMultipleKeyTracking({
|
134
134
|
ref: withInlineEdit ? multiKeyTrackingRef : null,
|
@@ -145,10 +145,10 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
145
145
|
return;
|
146
146
|
}
|
147
147
|
var gridElement = document.querySelector("#".concat(tableId));
|
148
|
-
var tableHeader = gridElement === null || gridElement ===
|
149
|
-
gridElement === null || gridElement ===
|
148
|
+
var tableHeader = gridElement === null || gridElement === undefined ? undefined : gridElement.querySelector(".".concat(carbon.prefix, "--data-table-header"));
|
149
|
+
gridElement === null || gridElement === undefined || (_gridElement$style = gridElement.style) === null || _gridElement$style === undefined || _gridElement$style.setProperty("--".concat(blockClass, "--grid-width"), px((totalColumnsWidth || 0) + 32));
|
150
150
|
if (gridActive) {
|
151
|
-
gridElement === null || gridElement ===
|
151
|
+
gridElement === null || gridElement === undefined || gridElement.style.setProperty("--".concat(blockClass, "--grid-header-height"), px((tableHeader === null || tableHeader === undefined ? undefined : tableHeader.clientHeight) || 0));
|
152
152
|
}
|
153
153
|
}, [withInlineEdit, tableId, totalColumnsWidth, datagridState, gridActive]);
|
154
154
|
useSubscribeToEventEmitter(CLEAR_SINGLE_FILTER, function (id) {
|
@@ -160,16 +160,16 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
160
160
|
filters: filterTags,
|
161
161
|
clearFilters: function clearFilters() {
|
162
162
|
EventEmitter.dispatch(CLEAR_FILTERS, tableId);
|
163
|
-
if (typeof (filterProps === null || filterProps ===
|
163
|
+
if (typeof (filterProps === null || filterProps === undefined ? undefined : filterProps.onClearFilters) === 'function') {
|
164
164
|
filterProps.onClearFilters();
|
165
165
|
}
|
166
166
|
},
|
167
|
-
renderLabel: filterProps === null || filterProps ===
|
167
|
+
renderLabel: filterProps === null || filterProps === undefined ? undefined : filterProps.renderLabel,
|
168
168
|
overflowType: "tag"
|
169
169
|
});
|
170
170
|
};
|
171
171
|
var renderPagination = function renderPagination() {
|
172
|
-
if ((contentRows === null || contentRows ===
|
172
|
+
if ((contentRows === null || contentRows === undefined ? undefined : contentRows.length) > 0 && !isFetching && DatagridPagination) {
|
173
173
|
return /*#__PURE__*/React__default.createElement(DatagridPagination, datagridState);
|
174
174
|
}
|
175
175
|
};
|
@@ -182,7 +182,10 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
182
182
|
})), /*#__PURE__*/React__default.createElement("div", {
|
183
183
|
className: cx("".concat(blockClass, "__table-container"), _defineProperty({}, "".concat(blockClass, "__table-container--filter-open"), panelOpen)),
|
184
184
|
ref: gridAreaRef
|
185
|
-
}, (filterProps === null || filterProps ===
|
185
|
+
}, (filterProps === null || filterProps === undefined ? undefined : filterProps.variation) === 'panel' && /*#__PURE__*/React__default.createElement(FilterPanel, _extends({
|
186
|
+
updateMethod: undefined,
|
187
|
+
setAllFilters: undefined
|
188
|
+
}, getFilterFlyoutProps === null || getFilterFlyoutProps === undefined ? undefined : getFilterFlyoutProps(), {
|
186
189
|
title: filterProps.panelTitle,
|
187
190
|
filterSections: filterProps.sections,
|
188
191
|
autoHideFilters: filterProps.autoHideFilters,
|
@@ -194,7 +197,7 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
194
197
|
}, renderTable()) : withVirtualScroll ? /*#__PURE__*/React__default.createElement("div", {
|
195
198
|
className: "".concat(blockClass, "__virtualScrollContainer"),
|
196
199
|
ref: gridRef
|
197
|
-
}, renderTable()) : renderTable()))), (filterProps === null || filterProps ===
|
200
|
+
}, renderTable()) : renderTable()))), (filterProps === null || filterProps === undefined ? undefined : filterProps.variation) !== 'panel' && renderPagination(), CustomizeColumnsTearsheet && /*#__PURE__*/React__default.createElement(CustomizeColumnsTearsheet, {
|
198
201
|
instance: datagridState
|
199
202
|
}));
|
200
203
|
};
|
@@ -26,7 +26,7 @@ var DatagridEmptyBody = function DatagridEmptyBody(datagridState) {
|
|
26
26
|
emptyStateDescription = datagridState.emptyStateDescription,
|
27
27
|
emptyStateSize = datagridState.emptyStateSize,
|
28
28
|
_datagridState$emptyS = datagridState.emptyStateType,
|
29
|
-
emptyStateType = _datagridState$emptyS ===
|
29
|
+
emptyStateType = _datagridState$emptyS === undefined ? 'noData' : _datagridState$emptyS,
|
30
30
|
illustrationTheme = datagridState.illustrationTheme,
|
31
31
|
emptyStateAction = datagridState.emptyStateAction,
|
32
32
|
emptyStateLink = datagridState.emptyStateLink;
|
@@ -45,7 +45,7 @@ var DatagridEmptyBody = function DatagridEmptyBody(datagridState) {
|
|
45
45
|
"aria-live": "off",
|
46
46
|
className: "".concat(blockClass, "__empty-state-body")
|
47
47
|
}), /*#__PURE__*/React__default.createElement(TableRow, null, /*#__PURE__*/React__default.createElement(TableCell, {
|
48
|
-
colSpan: headers === null || headers ===
|
48
|
+
colSpan: headers === null || headers === undefined ? undefined : headers.length,
|
49
49
|
className: "".concat(blockClass, "__empty-state-cell")
|
50
50
|
}, validEmptyStates.includes(emptyStateType) ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, emptyStateType === 'error' && /*#__PURE__*/React__default.createElement(ErrorEmptyState, emptyStateProps), emptyStateType === 'noData' && /*#__PURE__*/React__default.createElement(NoDataEmptyState, emptyStateProps), emptyStateType === 'notFound' && /*#__PURE__*/React__default.createElement(NotFoundEmptyState, emptyStateProps)) : /*#__PURE__*/React__default.createElement(EmptyState, emptyStateProps))));
|
51
51
|
};
|