@carbon/ibm-products 2.61.0 → 2.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +170 -22
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +170 -22
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +170 -22
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +170 -22
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/es/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/es/components/APIKeyModal/APIKeyModal.js +16 -16
- package/es/components/AboutModal/AboutModal.js +1 -1
- package/es/components/ActionBar/ActionBar.js +5 -5
- package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/es/components/ActionSet/ActionSet.js +5 -5
- package/es/components/AddSelect/AddSelect.js +5 -4
- package/es/components/AddSelect/AddSelectBody.js +12 -11
- package/es/components/AddSelect/AddSelectColumn.js +1 -1
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/es/components/AddSelect/AddSelectRow.js +21 -13
- package/es/components/AddSelect/AddSelectSidebar.js +14 -4
- package/es/components/AddSelect/AddSelectSort.js +5 -5
- package/es/components/AddSelect/add-select-utils.js +3 -3
- package/es/components/AddSelect/types/index.d.ts +1 -0
- package/es/components/BigNumbers/BigNumbers.js +11 -11
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/es/components/Card/Card.js +14 -14
- package/es/components/Card/CardFooter.js +4 -4
- package/es/components/Card/CardHeader.js +2 -2
- package/es/components/Carousel/Carousel.js +16 -16
- package/es/components/Cascade/Cascade.js +2 -2
- package/es/components/Checklist/Checklist.js +11 -11
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/Coachmark/Coachmark.js +10 -10
- package/es/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/es/components/Coachmark/CoachmarkHeader.js +4 -4
- package/es/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/es/components/Coachmark/CoachmarkTagline.js +3 -3
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/es/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/es/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/es/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/es/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/es/components/ConditionBuilder/utils/util.js +13 -13
- package/es/components/CreateFullPage/CreateFullPage.js +3 -3
- package/es/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/es/components/Datagrid/useActionsColumn.js +2 -2
- package/es/components/Datagrid/useColumnRightAlign.js +3 -3
- package/es/components/Datagrid/useCustomizeColumns.js +1 -1
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/es/components/Datagrid/useDisableSelectRows.js +16 -16
- package/es/components/Datagrid/useExpandedRow.js +1 -1
- package/es/components/Datagrid/useFiltering.js +1 -1
- package/es/components/Datagrid/useFloatingScroll.js +2 -2
- package/es/components/Datagrid/useFocusRowExpander.js +4 -4
- package/es/components/Datagrid/useInfiniteScroll.js +1 -1
- package/es/components/Datagrid/useInitialColumnSort.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +4 -4
- package/es/components/Datagrid/useNestedRowExpander.js +6 -6
- package/es/components/Datagrid/useNestedRows.js +6 -6
- package/es/components/Datagrid/useOnRowClick.js +1 -1
- package/es/components/Datagrid/useRowExpander.js +4 -4
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/es/components/Datagrid/useRowRenderer.js +6 -6
- package/es/components/Datagrid/useSelectAllToggle.js +2 -2
- package/es/components/Datagrid/useSelectRows.js +5 -5
- package/es/components/Datagrid/useSortableColumns.js +11 -11
- package/es/components/Datagrid/useStickyColumn.js +8 -8
- package/es/components/DecoratorBase/DecoratorBase.js +8 -8
- package/es/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/es/components/DelimitedList/DelimitedList.js +3 -3
- package/es/components/DescriptionList/DescriptionList.js +2 -2
- package/es/components/EditInPlace/EditInPlace.js +6 -6
- package/es/components/EditSidePanel/EditSidePanel.js +3 -3
- package/es/components/EditTearsheet/EditTearsheet.js +3 -3
- package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/es/components/EmptyStates/EmptyState.js +5 -5
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/EmptyStateV2.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/es/components/ExportModal/ExportModal.js +7 -7
- package/es/components/FeatureFlags/index.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +18 -34
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/Guidebanner/Guidebanner.js +8 -8
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/ImportModal/ImportModal.js +2 -2
- package/es/components/InlineTip/InlineTip.d.ts +0 -14
- package/es/components/InlineTip/InlineTip.js +13 -35
- package/es/components/InlineTip/utils.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/es/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/es/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/es/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/es/components/Nav/Nav.js +3 -3
- package/es/components/Nav/NavItem.js +8 -9
- package/es/components/Nav/NavList.js +14 -15
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/es/components/OptionsTile/OptionsTile.js +4 -3
- package/es/components/PageHeader/PageHeader.js +19 -19
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/ProductiveCard/ProductiveCard.js +1 -1
- package/es/components/RemoveModal/RemoveModal.js +2 -2
- package/es/components/Saving/Saving.js +4 -4
- package/es/components/ScrollGradient/ScrollGradient.js +6 -6
- package/es/components/SearchBar/SearchBar.js +6 -6
- package/es/components/SidePanel/SidePanel.js +45 -45
- package/es/components/SimpleHeader/SimpleHeader.js +4 -4
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/StatusIndicator/StatusIndicator.js +2 -2
- package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +4 -4
- package/es/components/TagOverflow/TagOverflow.js +7 -7
- package/es/components/TagOverflow/TagOverflowModal.js +4 -4
- package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/es/components/TagSet/TagSet.js +15 -15
- package/es/components/TagSet/TagSetModal.js +6 -6
- package/es/components/TagSet/TagSetOverflow.js +3 -3
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +6 -6
- package/es/components/Toolbar/Toolbar.js +6 -6
- package/es/components/Toolbar/ToolbarButton.js +4 -4
- package/es/components/TruncatedList/TruncatedList.js +8 -8
- package/es/components/UserAvatar/UserAvatar.js +4 -4
- package/es/components/UserProfileImage/UserProfileImage.js +2 -2
- package/es/components/WebTerminal/WebTerminal.js +8 -8
- package/es/global/js/hooks/useControllableState.js +1 -1
- package/es/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/es/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/es/global/js/hooks/useFocus.js +19 -19
- package/es/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/es/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/es/global/js/hooks/useOverflowString.js +6 -6
- package/es/global/js/hooks/usePresence.d.ts +23 -0
- package/es/global/js/hooks/usePresence.js +26 -6
- package/es/global/js/hooks/useResetCreateComponent.js +1 -1
- package/es/global/js/hooks/useResizeObserver.js +5 -5
- package/es/global/js/hooks/useRetrieveStepData.js +1 -1
- package/es/global/js/package-settings.js +4 -4
- package/es/global/js/utils/Wrap.js +2 -2
- package/es/global/js/utils/checkForOverflow.js +1 -1
- package/es/global/js/utils/debounce.d.ts +1 -1
- package/es/global/js/utils/debounce.js +2 -2
- package/es/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/es/global/js/utils/getSupportedLocale.js +2 -0
- package/es/global/js/utils/lastIndexInArray.js +1 -1
- package/es/global/js/utils/props-helper.js +1 -1
- package/es/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +894 -863
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/es/settings.js +2 -2
- package/lib/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/lib/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/lib/components/APIKeyModal/APIKeyModal.js +16 -16
- package/lib/components/AboutModal/AboutModal.js +1 -1
- package/lib/components/ActionBar/ActionBar.js +5 -5
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/lib/components/ActionSet/ActionSet.js +5 -5
- package/lib/components/AddSelect/AddSelect.js +5 -4
- package/lib/components/AddSelect/AddSelectBody.js +12 -11
- package/lib/components/AddSelect/AddSelectColumn.js +1 -1
- package/lib/components/AddSelect/AddSelectFilter.js +1 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/lib/components/AddSelect/AddSelectRow.js +20 -12
- package/lib/components/AddSelect/AddSelectSidebar.js +14 -4
- package/lib/components/AddSelect/AddSelectSort.js +5 -5
- package/lib/components/AddSelect/add-select-utils.js +3 -3
- package/lib/components/AddSelect/types/index.d.ts +1 -0
- package/lib/components/BigNumbers/BigNumbers.js +10 -10
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/lib/components/Card/Card.js +14 -14
- package/lib/components/Card/CardFooter.js +4 -4
- package/lib/components/Card/CardHeader.js +2 -2
- package/lib/components/Carousel/Carousel.js +16 -16
- package/lib/components/Cascade/Cascade.js +2 -2
- package/lib/components/Checklist/Checklist.js +11 -11
- package/lib/components/Checklist/ChecklistChart.js +1 -1
- package/lib/components/Checklist/ChecklistIcon.js +1 -1
- package/lib/components/Coachmark/Coachmark.js +10 -10
- package/lib/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/lib/components/Coachmark/CoachmarkHeader.js +4 -4
- package/lib/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/lib/components/Coachmark/CoachmarkTagline.js +3 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/lib/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/lib/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/lib/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/lib/components/ConditionBuilder/utils/util.js +13 -13
- package/lib/components/CreateFullPage/CreateFullPage.js +3 -3
- package/lib/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/lib/components/CreateModal/CreateModal.js +1 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/lib/components/Datagrid/useActionsColumn.js +2 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
- package/lib/components/Datagrid/useCustomizeColumns.js +1 -1
- package/lib/components/Datagrid/useDatagrid.js +2 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/lib/components/Datagrid/useDisableSelectRows.js +16 -16
- package/lib/components/Datagrid/useExpandedRow.js +1 -1
- package/lib/components/Datagrid/useFiltering.js +1 -1
- package/lib/components/Datagrid/useFloatingScroll.js +2 -2
- package/lib/components/Datagrid/useFocusRowExpander.js +4 -4
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -1
- package/lib/components/Datagrid/useInitialColumnSort.js +1 -1
- package/lib/components/Datagrid/useInlineEdit.js +4 -4
- package/lib/components/Datagrid/useNestedRowExpander.js +6 -6
- package/lib/components/Datagrid/useNestedRows.js +6 -6
- package/lib/components/Datagrid/useOnRowClick.js +1 -1
- package/lib/components/Datagrid/useRowExpander.js +4 -4
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/lib/components/Datagrid/useRowRenderer.js +6 -6
- package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
- package/lib/components/Datagrid/useSelectRows.js +5 -5
- package/lib/components/Datagrid/useSortableColumns.js +11 -11
- package/lib/components/Datagrid/useStickyColumn.js +8 -8
- package/lib/components/DecoratorBase/DecoratorBase.js +8 -8
- package/lib/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/lib/components/DelimitedList/DelimitedList.js +3 -3
- package/lib/components/DescriptionList/DescriptionList.js +2 -2
- package/lib/components/EditInPlace/EditInPlace.js +6 -6
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheet.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/lib/components/EmptyStates/EmptyState.js +5 -5
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/lib/components/ExportModal/ExportModal.js +7 -7
- package/lib/components/FeatureFlags/index.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/lib/components/FilterSummary/FilterSummary.js +18 -34
- package/lib/components/FullPageError/FullPageError.js +1 -1
- package/lib/components/Guidebanner/Guidebanner.js +8 -8
- package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/lib/components/ImportModal/ImportModal.js +2 -2
- package/lib/components/InlineTip/InlineTip.d.ts +0 -14
- package/lib/components/InlineTip/InlineTip.js +13 -35
- package/lib/components/InlineTip/utils.js +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/lib/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/lib/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/lib/components/Nav/Nav.js +3 -3
- package/lib/components/Nav/NavItem.js +12 -13
- package/lib/components/Nav/NavList.js +18 -19
- package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/lib/components/OptionsTile/OptionsTile.js +4 -3
- package/lib/components/PageHeader/PageHeader.js +19 -19
- package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
- package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
- package/lib/components/ProductiveCard/ProductiveCard.js +1 -1
- package/lib/components/RemoveModal/RemoveModal.js +2 -2
- package/lib/components/Saving/Saving.js +4 -4
- package/lib/components/ScrollGradient/ScrollGradient.js +6 -6
- package/lib/components/SearchBar/SearchBar.js +6 -6
- package/lib/components/SidePanel/SidePanel.js +45 -45
- package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
- package/lib/components/StatusIcon/StatusIcon.js +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.js +2 -2
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/lib/components/StringFormatter/StringFormatter.js +4 -4
- package/lib/components/TagOverflow/TagOverflow.js +7 -7
- package/lib/components/TagOverflow/TagOverflowModal.js +4 -4
- package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/lib/components/TagSet/TagSet.js +15 -15
- package/lib/components/TagSet/TagSetModal.js +6 -6
- package/lib/components/TagSet/TagSetOverflow.js +3 -3
- package/lib/components/Tearsheet/Tearsheet.js +2 -2
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/lib/components/Tearsheet/TearsheetShell.js +6 -6
- package/lib/components/Toolbar/Toolbar.js +6 -6
- package/lib/components/Toolbar/ToolbarButton.js +4 -4
- package/lib/components/TruncatedList/TruncatedList.js +8 -8
- package/lib/components/UserAvatar/UserAvatar.js +4 -4
- package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
- package/lib/components/WebTerminal/WebTerminal.js +8 -8
- package/lib/global/js/hooks/useControllableState.js +1 -1
- package/lib/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/lib/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/lib/global/js/hooks/useFocus.js +19 -19
- package/lib/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/lib/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/lib/global/js/hooks/useOverflowString.js +6 -6
- package/lib/global/js/hooks/usePresence.d.ts +23 -0
- package/lib/global/js/hooks/usePresence.js +26 -6
- package/lib/global/js/hooks/useResetCreateComponent.js +1 -1
- package/lib/global/js/hooks/useResizeObserver.js +5 -5
- package/lib/global/js/hooks/useRetrieveStepData.js +1 -1
- package/lib/global/js/package-settings.js +4 -4
- package/lib/global/js/utils/Wrap.js +2 -2
- package/lib/global/js/utils/checkForOverflow.js +1 -1
- package/lib/global/js/utils/debounce.d.ts +1 -1
- package/lib/global/js/utils/debounce.js +2 -2
- package/lib/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/lib/global/js/utils/getSupportedLocale.js +2 -0
- package/lib/global/js/utils/lastIndexInArray.js +1 -1
- package/lib/global/js/utils/props-helper.js +1 -1
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +902 -871
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/lib/settings.js +2 -2
- package/package.json +19 -19
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +100 -22
- package/scss/components/Datagrid/styles/addons/_animations.scss +56 -0
- package/scss/components/FilterSummary/_animations.scss +20 -0
- package/scss/components/FilterSummary/_filter-summary.scss +11 -0
- package/scss/components/FullPageError/_full-page-error.scss +4 -0
- package/scss/components/GetStartedCard/_get-started-card.scss +2 -2
- package/scss/components/NotificationsPanel/_notifications-panel.scss +35 -7
- package/scss/components/SidePanel/_side-panel.scss +4 -2
- package/scss/components/Tearsheet/_tearsheet.scss +6 -12
- package/telemetry.yml +9 -17
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -80
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -146
- package/es/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/es/global/js/utils/getBezierValues.d.ts +0 -1
- package/es/global/js/utils/getBezierValues.js +0 -28
- package/es/global/js/utils/motionConstants.d.ts +0 -23
- package/es/global/js/utils/motionConstants.js +0 -39
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -84
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -148
- package/lib/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/lib/global/js/utils/getBezierValues.d.ts +0 -1
- package/lib/global/js/utils/getBezierValues.js +0 -30
- package/lib/global/js/utils/motionConstants.d.ts +0 -23
- package/lib/global/js/utils/motionConstants.js +0 -42
- /package/es/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
- /package/lib/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
@@ -21,7 +21,7 @@ var handleCellDeletion = function handleCellDeletion(_ref) {
|
|
21
21
|
// This means that the delete key has been pressed when the active cell is in a header,
|
22
22
|
// not within the spreadsheet body. To delete an entire row/column, it must first be
|
23
23
|
// selected, and then can be deleted.
|
24
|
-
if ((activeCellCoordinates === null || activeCellCoordinates ===
|
24
|
+
if ((activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header') {
|
25
25
|
return;
|
26
26
|
}
|
27
27
|
var selectionAreaClone = deepCloneObject.deepCloneObject(selectionAreas);
|
@@ -29,14 +29,14 @@ var handleCellDeletion = function handleCellDeletion(_ref) {
|
|
29
29
|
return item.matcher === currentMatcher;
|
30
30
|
});
|
31
31
|
var selectionAreaToEmptyContents = selectionAreaClone[indexOfCurrentSelectionArea];
|
32
|
-
var lowestColumnIndex = Math.min(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents ===
|
33
|
-
var greatestColumnIndex = Math.max(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents ===
|
34
|
-
var lowestRowIndex = Math.min(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents ===
|
35
|
-
var greatestRowIndex = Math.max(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents ===
|
32
|
+
var lowestColumnIndex = Math.min(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === void 0 || (_selectionAreaToEmpty = selectionAreaToEmptyContents.point1) === null || _selectionAreaToEmpty === void 0 ? void 0 : _selectionAreaToEmpty.column, selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === void 0 || (_selectionAreaToEmpty2 = selectionAreaToEmptyContents.point2) === null || _selectionAreaToEmpty2 === void 0 ? void 0 : _selectionAreaToEmpty2.column);
|
33
|
+
var greatestColumnIndex = Math.max(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === void 0 || (_selectionAreaToEmpty3 = selectionAreaToEmptyContents.point1) === null || _selectionAreaToEmpty3 === void 0 ? void 0 : _selectionAreaToEmpty3.column, selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === void 0 || (_selectionAreaToEmpty4 = selectionAreaToEmptyContents.point2) === null || _selectionAreaToEmpty4 === void 0 ? void 0 : _selectionAreaToEmpty4.column);
|
34
|
+
var lowestRowIndex = Math.min(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === void 0 || (_selectionAreaToEmpty5 = selectionAreaToEmptyContents.point1) === null || _selectionAreaToEmpty5 === void 0 ? void 0 : _selectionAreaToEmpty5.row, selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === void 0 || (_selectionAreaToEmpty6 = selectionAreaToEmptyContents.point2) === null || _selectionAreaToEmpty6 === void 0 ? void 0 : _selectionAreaToEmpty6.row);
|
35
|
+
var greatestRowIndex = Math.max(selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === void 0 || (_selectionAreaToEmpty7 = selectionAreaToEmptyContents.point1) === null || _selectionAreaToEmpty7 === void 0 ? void 0 : _selectionAreaToEmpty7.row, selectionAreaToEmptyContents === null || selectionAreaToEmptyContents === void 0 || (_selectionAreaToEmpty8 = selectionAreaToEmptyContents.point2) === null || _selectionAreaToEmpty8 === void 0 ? void 0 : _selectionAreaToEmpty8.row);
|
36
36
|
rangeWithCallback.rangeWithCallback(lowestColumnIndex, greatestColumnIndex, function (columnIndex) {
|
37
37
|
rangeWithCallback.rangeWithCallback(lowestRowIndex, greatestRowIndex, function (rowIndex) {
|
38
38
|
var cellProps = rows[rowIndex].cells[columnIndex];
|
39
|
-
updateData(rowIndex, cellProps === null || cellProps ===
|
39
|
+
updateData(rowIndex, cellProps === null || cellProps === void 0 ? void 0 : cellProps.column.id, '');
|
40
40
|
});
|
41
41
|
});
|
42
42
|
setActiveCellContent(null);
|
@@ -29,10 +29,10 @@ var handleEditSubmit = function handleEditSubmit(_ref) {
|
|
29
29
|
var updateSelectionAreaOnCellEditSubmit = function updateSelectionAreaOnCellEditSubmit(_ref2) {
|
30
30
|
var type = _ref2.type;
|
31
31
|
var submitEditChanges = function submitEditChanges() {
|
32
|
-
var prevCoords = previousState === null || previousState ===
|
33
|
-
var cellProps = rows[prevCoords === null || prevCoords ===
|
32
|
+
var prevCoords = previousState === null || previousState === void 0 ? void 0 : previousState.activeCellCoordinates;
|
33
|
+
var cellProps = rows[prevCoords === null || prevCoords === void 0 ? void 0 : prevCoords.row].cells[prevCoords === null || prevCoords === void 0 ? void 0 : prevCoords.column];
|
34
34
|
removeCellEditor();
|
35
|
-
updateData(prevCoords === null || prevCoords ===
|
35
|
+
updateData(prevCoords === null || prevCoords === void 0 ? void 0 : prevCoords.row, cellProps.column.id);
|
36
36
|
};
|
37
37
|
removeCellSelections.removeCellSelections({
|
38
38
|
spreadsheetRef: spreadsheetRef
|
@@ -46,8 +46,8 @@ var handleHeaderCellSelection = function handleHeaderCellSelection(_ref2) {
|
|
46
46
|
spreadsheetRef: spreadsheetRef
|
47
47
|
});
|
48
48
|
}
|
49
|
-
var rowValue = isKeyboard ? activeCellCoordinates === null || activeCellCoordinates ===
|
50
|
-
var columnValue = isKeyboard ? activeCellCoordinates === null || activeCellCoordinates ===
|
49
|
+
var rowValue = isKeyboard ? activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row : index;
|
50
|
+
var columnValue = isKeyboard ? activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column : index;
|
51
51
|
var point1 = {
|
52
52
|
row: type === 'column' ? 0 : rowValue,
|
53
53
|
column: type === 'column' ? columnValue : 0
|
@@ -80,11 +80,11 @@ var handleHeaderCellSelection = function handleHeaderCellSelection(_ref2) {
|
|
80
80
|
if (isHoldingCommandKey) {
|
81
81
|
var selectionsFromHeaderCell = selectionsClone.filter(function (item) {
|
82
82
|
var _item$header;
|
83
|
-
return (_item$header = item.header) === null || _item$header ===
|
83
|
+
return (_item$header = item.header) === null || _item$header === void 0 ? void 0 : _item$header.type;
|
84
84
|
});
|
85
85
|
var previouslyCreatedHeaderSelection = selectionsFromHeaderCell.filter(function (item) {
|
86
86
|
var _item$header2;
|
87
|
-
return ((_item$header2 = item.header) === null || _item$header2 ===
|
87
|
+
return ((_item$header2 = item.header) === null || _item$header2 === void 0 ? void 0 : _item$header2.type) === type;
|
88
88
|
});
|
89
89
|
var isHeaderPartOfPreviousSelection = checkActiveHeaderCell.checkActiveHeaderCell(index, previouslyCreatedHeaderSelection, type);
|
90
90
|
// Prevents row/column header selections from being created multiple times
|
@@ -97,13 +97,13 @@ var handleHeaderCellSelection = function handleHeaderCellSelection(_ref2) {
|
|
97
97
|
var _selectionAreasClone$;
|
98
98
|
var _selectionsFromHeaderCell = selectionsClone.filter(function (item) {
|
99
99
|
var _item$header3;
|
100
|
-
return (_item$header3 = item.header) === null || _item$header3 ===
|
100
|
+
return (_item$header3 = item.header) === null || _item$header3 === void 0 ? void 0 : _item$header3.type;
|
101
101
|
});
|
102
102
|
// Shift/click behavior should not occur unless there are activeCellCoordinates set
|
103
103
|
var currentSelectionArea = _selectionsFromHeaderCell.filter(function (item) {
|
104
104
|
return item.matcher === currentMatcher;
|
105
105
|
})[0];
|
106
|
-
var originalAreaIndex = Math.max(currentSelectionArea === null || currentSelectionArea ===
|
106
|
+
var originalAreaIndex = Math.max(currentSelectionArea === null || currentSelectionArea === void 0 ? void 0 : currentSelectionArea.point1[type], currentSelectionArea === null || currentSelectionArea === void 0 ? void 0 : currentSelectionArea.point2[type], activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates[type]);
|
107
107
|
var newIndexValue = type === 'column' ? columnValue : rowValue;
|
108
108
|
var newPoint = {
|
109
109
|
row: originalAreaIndex < newIndexValue ? rows.length - 1 : 0,
|
@@ -114,9 +114,9 @@ var handleHeaderCellSelection = function handleHeaderCellSelection(_ref2) {
|
|
114
114
|
return item.matcher === currentMatcher;
|
115
115
|
});
|
116
116
|
var newIndexList = getSelectedItemIndexList({
|
117
|
-
indexList: ((_selectionAreasClone$ = selectionAreasClone[indexOfCurrentArea]) === null || _selectionAreasClone$ ===
|
117
|
+
indexList: ((_selectionAreasClone$ = selectionAreasClone[indexOfCurrentArea]) === null || _selectionAreasClone$ === void 0 || (_selectionAreasClone$ = _selectionAreasClone$.header) === null || _selectionAreasClone$ === void 0 ? void 0 : _selectionAreasClone$.selectedIndexList) || [type === 'column' ? columnValue : rowValue],
|
118
118
|
newIndex: newIndexValue,
|
119
|
-
activeCellIndex: activeCellCoordinates === null || activeCellCoordinates ===
|
119
|
+
activeCellIndex: activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates[type]
|
120
120
|
});
|
121
121
|
var setPoint1 = function setPoint1(value) {
|
122
122
|
return value < newIndexValue ? {
|
@@ -150,8 +150,8 @@ var handleHeaderCellSelection = function handleHeaderCellSelection(_ref2) {
|
|
150
150
|
});
|
151
151
|
return [firstSelectionArea];
|
152
152
|
}
|
153
|
-
selectionAreasClone[indexOfCurrentArea].point1 = setPoint1(activeCellCoordinates === null || activeCellCoordinates ===
|
154
|
-
selectionAreasClone[indexOfCurrentArea].point2 = setPoint2(activeCellCoordinates === null || activeCellCoordinates ===
|
153
|
+
selectionAreasClone[indexOfCurrentArea].point1 = setPoint1(activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates[type]);
|
154
|
+
selectionAreasClone[indexOfCurrentArea].point2 = setPoint2(activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates[type]);
|
155
155
|
selectionAreasClone[indexOfCurrentArea].areaCreated = false;
|
156
156
|
selectionAreasClone[indexOfCurrentArea].header.selectedIndexList = newIndexList;
|
157
157
|
return selectionAreasClone;
|
@@ -58,10 +58,10 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
58
58
|
var indexOfCurrentArea = selectionAreasClone.findIndex(function (item) {
|
59
59
|
return item.matcher === currentMatcher;
|
60
60
|
});
|
61
|
-
var pointToUpdate = (_selectionAreasClone$ = selectionAreasClone[indexOfCurrentArea]) !== null && _selectionAreasClone$ !==
|
61
|
+
var pointToUpdate = (_selectionAreasClone$ = selectionAreasClone[indexOfCurrentArea]) !== null && _selectionAreasClone$ !== void 0 && _selectionAreasClone$.point2 ? (_selectionAreasClone$2 = selectionAreasClone[indexOfCurrentArea]) === null || _selectionAreasClone$2 === void 0 ? void 0 : _selectionAreasClone$2.point2 : (_selectionAreasClone$3 = selectionAreasClone[indexOfCurrentArea]) === null || _selectionAreasClone$3 === void 0 ? void 0 : _selectionAreasClone$3.point1;
|
62
62
|
// Down + Shift
|
63
63
|
if (includesShift(keysPressedList) && keysPressedList.includes('ArrowDown') && keysPressedList.length === 2) {
|
64
|
-
if (rows.length - 1 === (pointToUpdate === null || pointToUpdate ===
|
64
|
+
if (rows.length - 1 === (pointToUpdate === null || pointToUpdate === void 0 ? void 0 : pointToUpdate.row) || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header') {
|
65
65
|
return;
|
66
66
|
}
|
67
67
|
var newPoint = {
|
@@ -74,7 +74,7 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
74
74
|
}
|
75
75
|
// Right + Shift
|
76
76
|
if (includesShift(keysPressedList) && keysPressedList.includes('ArrowRight') && keysPressedList.length === 2) {
|
77
|
-
if (columns.length - 1 === (pointToUpdate === null || pointToUpdate ===
|
77
|
+
if (columns.length - 1 === (pointToUpdate === null || pointToUpdate === void 0 ? void 0 : pointToUpdate.column) || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header') {
|
78
78
|
return;
|
79
79
|
}
|
80
80
|
var _newPoint = {
|
@@ -87,7 +87,7 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
87
87
|
}
|
88
88
|
// Up + Shift
|
89
89
|
if (includesShift(keysPressedList) && keysPressedList.includes('ArrowUp') && keysPressedList.length === 2) {
|
90
|
-
if ((pointToUpdate === null || pointToUpdate ===
|
90
|
+
if ((pointToUpdate === null || pointToUpdate === void 0 ? void 0 : pointToUpdate.row) === 0 || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header') {
|
91
91
|
return;
|
92
92
|
}
|
93
93
|
var _newPoint2 = {
|
@@ -100,7 +100,7 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
100
100
|
}
|
101
101
|
// Left + Shift
|
102
102
|
if (includesShift(keysPressedList) && keysPressedList.includes('ArrowLeft') && keysPressedList.length === 2) {
|
103
|
-
if ((pointToUpdate === null || pointToUpdate ===
|
103
|
+
if ((pointToUpdate === null || pointToUpdate === void 0 ? void 0 : pointToUpdate.column) === 0 || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' || (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header') {
|
104
104
|
return;
|
105
105
|
}
|
106
106
|
var _newPoint3 = {
|
@@ -143,11 +143,11 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
143
143
|
if (includesControl(keysPressedList) && keysPressedList.includes('Space')) {
|
144
144
|
var _selectionPoint = {
|
145
145
|
row: 0,
|
146
|
-
column: (activeCellCoordinates === null || activeCellCoordinates ===
|
146
|
+
column: (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column
|
147
147
|
};
|
148
148
|
var _selectionPoint2 = {
|
149
149
|
row: rows.length - 1,
|
150
|
-
column: (activeCellCoordinates === null || activeCellCoordinates ===
|
150
|
+
column: (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column
|
151
151
|
};
|
152
152
|
// If indexOfCurrentArea is -1, it means the active cell is in a cell header position
|
153
153
|
if (indexOfCurrentArea === -1) {
|
@@ -162,8 +162,8 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
162
162
|
updateActiveCellCoordinates({
|
163
163
|
coords: coordinatesClone,
|
164
164
|
updatedValue: {
|
165
|
-
column: (activeCellCoordinates === null || activeCellCoordinates ===
|
166
|
-
row: (activeCellCoordinates === null || activeCellCoordinates ===
|
165
|
+
column: (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column,
|
166
|
+
row: (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row
|
167
167
|
}
|
168
168
|
});
|
169
169
|
setCurrentMatcher(tempMatcher);
|
@@ -177,11 +177,11 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
177
177
|
// Shift + SPACE (Select current row)
|
178
178
|
if (includesShift(keysPressedList) && keysPressedList.includes('Space')) {
|
179
179
|
var _selectionPoint3 = {
|
180
|
-
row: (activeCellCoordinates === null || activeCellCoordinates ===
|
180
|
+
row: (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row,
|
181
181
|
column: 0
|
182
182
|
};
|
183
183
|
var _selectionPoint4 = {
|
184
|
-
row: (activeCellCoordinates === null || activeCellCoordinates ===
|
184
|
+
row: (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row,
|
185
185
|
column: columns.length - 1
|
186
186
|
};
|
187
187
|
// If indexOfCurrentArea is -1, it means the active cell is in a cell header position
|
@@ -197,8 +197,8 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
197
197
|
updateActiveCellCoordinates({
|
198
198
|
coords: _coordinatesClone,
|
199
199
|
updatedValue: {
|
200
|
-
column: (activeCellCoordinates === null || activeCellCoordinates ===
|
201
|
-
row: (activeCellCoordinates === null || activeCellCoordinates ===
|
200
|
+
column: (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.column,
|
201
|
+
row: (activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row) === 'header' ? 0 : activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row
|
202
202
|
}
|
203
203
|
});
|
204
204
|
setCurrentMatcher(_tempMatcher);
|
@@ -235,7 +235,7 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
235
235
|
removeCellSelections({
|
236
236
|
spreadsheetRef: spreadsheetRef
|
237
237
|
});
|
238
|
-
var lastCellExists = !!rows[(rows === null || rows ===
|
238
|
+
var lastCellExists = !!rows[(rows === null || rows === void 0 ? void 0 : rows.length) - 1].cells[(columns === null || columns === void 0 ? void 0 : columns.length) - 1];
|
239
239
|
var updateToLastCell = function updateToLastCell() {
|
240
240
|
updateActiveCellCoordinates({
|
241
241
|
coords: _coordinatesClone3,
|
@@ -12,17 +12,17 @@ var settings = require('../../../settings.js');
|
|
12
12
|
|
13
13
|
var moveColumnIndicatorLine = function moveColumnIndicatorLine(_ref) {
|
14
14
|
var _ref$blockClass = _ref.blockClass,
|
15
|
-
blockClass = _ref$blockClass ===
|
15
|
+
blockClass = _ref$blockClass === void 0 ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass,
|
16
16
|
clonedSelectionElement = _ref.clonedSelectionElement,
|
17
17
|
ref = _ref.ref,
|
18
18
|
spreadsheetCoords = _ref.spreadsheetCoords,
|
19
19
|
leftScrollAmount = _ref.leftScrollAmount;
|
20
20
|
var closestCell = event.target.closest(".".concat(blockClass, "--interactive-cell-element"));
|
21
|
-
var newColumnIndex = closestCell === null || closestCell ===
|
22
|
-
var originalColumnIndex = clonedSelectionElement === null || clonedSelectionElement ===
|
21
|
+
var newColumnIndex = closestCell === null || closestCell === void 0 ? void 0 : closestCell.getAttribute('data-column-index');
|
22
|
+
var originalColumnIndex = clonedSelectionElement === null || clonedSelectionElement === void 0 ? void 0 : clonedSelectionElement.getAttribute('data-column-index-original');
|
23
23
|
var closestCellCoords = closestCell.getBoundingClientRect();
|
24
24
|
var indicatorLineElement = ref.current.querySelector(".".concat(blockClass, "__reorder-indicator-line"));
|
25
|
-
var matcherId = clonedSelectionElement === null || clonedSelectionElement ===
|
25
|
+
var matcherId = clonedSelectionElement === null || clonedSelectionElement === void 0 ? void 0 : clonedSelectionElement.getAttribute('data-matcher-id');
|
26
26
|
var selectionAreaOrigin = ref.current.querySelector("[data-matcher-id=\"".concat(matcherId, "\"]"));
|
27
27
|
var listContainer = ref.current.querySelector(".".concat(blockClass, "__list--container"));
|
28
28
|
var scrollSpeed = 10; // Scrolling speed
|
@@ -15,7 +15,7 @@ var removeCellSelections = function removeCellSelections(_ref) {
|
|
15
15
|
var matcher = _ref.matcher,
|
16
16
|
spreadsheetRef = _ref.spreadsheetRef,
|
17
17
|
_ref$blockClass = _ref.blockClass,
|
18
|
-
blockClass = _ref$blockClass ===
|
18
|
+
blockClass = _ref$blockClass === void 0 ? "".concat(settings.pkg.prefix, "--data-spreadsheet") : _ref$blockClass;
|
19
19
|
if (matcher && typeof matcher === 'string') {
|
20
20
|
var selectionToRemove = spreadsheetRef.current.querySelector("[data-matcher-id=\"".concat(matcher, "\"]"));
|
21
21
|
if (selectionToRemove) {
|
@@ -46,14 +46,14 @@ exports.Datagrid = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
46
46
|
ariaToolbarLabel: ariaToolbarLabel
|
47
47
|
};
|
48
48
|
return /*#__PURE__*/React.createElement(FilterProvider.FilterProvider, {
|
49
|
-
filters: state === null || state ===
|
49
|
+
filters: state === null || state === void 0 ? void 0 : state.filters,
|
50
50
|
filterProps: filterProps,
|
51
51
|
tableId: tableId
|
52
52
|
}, /*#__PURE__*/React.createElement(InlineEditContext.InlineEditProvider, null, /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
53
53
|
id: tableId,
|
54
54
|
ref: ref,
|
55
55
|
className: cx(className, blockClass, withVirtualScroll ? "".concat(blockClass, "__datagridWrap") : "".concat(blockClass, "__datagridWrap-simple"), !isFetching && rows.length === 0 ? "".concat(blockClass, "__empty-state") : '')
|
56
|
-
}, devtools.getDevtoolsProps(componentName)), (filterProps === null || filterProps ===
|
56
|
+
}, devtools.getDevtoolsProps(componentName)), (filterProps === null || filterProps === void 0 ? void 0 : filterProps.variation) === 'panel' ? /*#__PURE__*/React.createElement("div", {
|
57
57
|
className: "".concat(blockClass, "__datagridWithPanel ").concat(blockClass, "__displayFlex")
|
58
58
|
}, /*#__PURE__*/React.createElement(DatagridContent.DatagridContent, props)) : /*#__PURE__*/React.createElement(DatagridContent.DatagridContent, props))));
|
59
59
|
});
|
@@ -18,7 +18,7 @@ var DatagridRefBody = require('./DatagridRefBody.js');
|
|
18
18
|
var DatagridBody = function DatagridBody(datagridState) {
|
19
19
|
var isFetching = datagridState.isFetching,
|
20
20
|
_datagridState$rows = datagridState.rows,
|
21
|
-
rows = _datagridState$rows ===
|
21
|
+
rows = _datagridState$rows === void 0 ? [] : _datagridState$rows,
|
22
22
|
withVirtualScroll = datagridState.withVirtualScroll,
|
23
23
|
withStickyColumn = datagridState.withStickyColumn;
|
24
24
|
if (!isFetching && rows.length === 0) {
|
@@ -57,7 +57,7 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
57
57
|
filterProps = datagridState.filterProps,
|
58
58
|
fullHeightDatagrid = datagridState.fullHeightDatagrid,
|
59
59
|
_datagridState$vertic = datagridState.verticalAlign,
|
60
|
-
verticalAlign = _datagridState$vertic ===
|
60
|
+
verticalAlign = _datagridState$vertic === void 0 ? 'center' : _datagridState$vertic,
|
61
61
|
variableRowHeight = datagridState.variableRowHeight,
|
62
62
|
gridTitle = datagridState.gridTitle,
|
63
63
|
gridDescription = datagridState.gridDescription,
|
@@ -89,7 +89,7 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
89
89
|
});
|
90
90
|
}, [dispatch, enableEditableCell, enableCustomizeCols, enableInlineEdit]);
|
91
91
|
React.useEffect(function () {
|
92
|
-
if (featureFlags && (featureFlags !== null && featureFlags !==
|
92
|
+
if (featureFlags && (featureFlags !== null && featureFlags !== void 0 && featureFlags['enable-datagrid-useEditableCell'] || featureFlags !== null && featureFlags !== void 0 && featureFlags['enable-datagrid-useInlineEdit'])) {
|
93
93
|
console.error("Datagrid useEditableCell/useInlineEdit extension has not been enabled via feature flag.");
|
94
94
|
}
|
95
95
|
}, [featureFlags]);
|
@@ -109,8 +109,8 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
109
109
|
});
|
110
110
|
});
|
111
111
|
var renderTable = function renderTable() {
|
112
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(react.Table, _rollupPluginBabelHelpers.extends({}, getTableProps === null || getTableProps ===
|
113
|
-
className: cx(withVirtualScroll ? "".concat(blockClass, "__table-virtual-scroll") : "".concat(blockClass, "__table-simple"), "".concat(blockClass, "__vertical-align-").concat(verticalAlign), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__variable-row-height"), variableRowHeight), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__table-with-inline-edit"), withInlineEdit), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__table-grid-active"), gridActive), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__table-is-resizing"), typeof (columnResizing === null || columnResizing ===
|
112
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(react.Table, _rollupPluginBabelHelpers.extends({}, getTableProps === null || getTableProps === void 0 ? void 0 : getTableProps(), {
|
113
|
+
className: cx(withVirtualScroll ? "".concat(blockClass, "__table-virtual-scroll") : "".concat(blockClass, "__table-simple"), "".concat(blockClass, "__vertical-align-").concat(verticalAlign), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__variable-row-height"), variableRowHeight), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__table-with-inline-edit"), withInlineEdit), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__table-grid-active"), gridActive), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__table-is-resizing"), typeof (columnResizing === null || columnResizing === void 0 ? void 0 : columnResizing.isResizingColumn) === 'string'), getTableProps === null || getTableProps === void 0 ? void 0 : getTableProps().className),
|
114
114
|
role: withInlineEdit ? 'grid' : undefined,
|
115
115
|
tabIndex: withInlineEdit ? 0 : -1,
|
116
116
|
onKeyDown: withInlineEdit && function (event) {
|
@@ -130,7 +130,7 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
130
130
|
title: title
|
131
131
|
}), (!withVirtualScroll || withVirtualScroll && !isFetching && !contentRows.length) && /*#__PURE__*/React.createElement(DatagridHead.default, datagridState), /*#__PURE__*/React.createElement(DatagridBody.default, _rollupPluginBabelHelpers.extends({}, datagridState, {
|
132
132
|
rows: contentRows
|
133
|
-
}))), (filterProps === null || filterProps ===
|
133
|
+
}))), (filterProps === null || filterProps === void 0 ? void 0 : filterProps.variation) === 'panel' && renderPagination());
|
134
134
|
};
|
135
135
|
var _useMultipleKeyTracki = useMultipleKeyTracking.useMultipleKeyTracking({
|
136
136
|
ref: withInlineEdit ? multiKeyTrackingRef : null,
|
@@ -147,10 +147,10 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
147
147
|
return;
|
148
148
|
}
|
149
149
|
var gridElement = document.querySelector("#".concat(tableId));
|
150
|
-
var tableHeader = gridElement === null || gridElement ===
|
151
|
-
gridElement === null || gridElement ===
|
150
|
+
var tableHeader = gridElement === null || gridElement === void 0 ? void 0 : gridElement.querySelector(".".concat(settings.carbon.prefix, "--data-table-header"));
|
151
|
+
gridElement === null || gridElement === void 0 || (_gridElement$style = gridElement.style) === null || _gridElement$style === void 0 || _gridElement$style.setProperty("--".concat(blockClass, "--grid-width"), layout.px((totalColumnsWidth || 0) + 32));
|
152
152
|
if (gridActive) {
|
153
|
-
gridElement === null || gridElement ===
|
153
|
+
gridElement === null || gridElement === void 0 || gridElement.style.setProperty("--".concat(blockClass, "--grid-header-height"), layout.px((tableHeader === null || tableHeader === void 0 ? void 0 : tableHeader.clientHeight) || 0));
|
154
154
|
}
|
155
155
|
}, [withInlineEdit, tableId, totalColumnsWidth, datagridState, gridActive]);
|
156
156
|
useSubscribeToEventEmitter.default(constants.CLEAR_SINGLE_FILTER, function (id) {
|
@@ -162,16 +162,16 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
162
162
|
filters: filterTags,
|
163
163
|
clearFilters: function clearFilters() {
|
164
164
|
EventEmitter.dispatch(constants.CLEAR_FILTERS, tableId);
|
165
|
-
if (typeof (filterProps === null || filterProps ===
|
165
|
+
if (typeof (filterProps === null || filterProps === void 0 ? void 0 : filterProps.onClearFilters) === 'function') {
|
166
166
|
filterProps.onClearFilters();
|
167
167
|
}
|
168
168
|
},
|
169
|
-
renderLabel: filterProps === null || filterProps ===
|
169
|
+
renderLabel: filterProps === null || filterProps === void 0 ? void 0 : filterProps.renderLabel,
|
170
170
|
overflowType: "tag"
|
171
171
|
});
|
172
172
|
};
|
173
173
|
var renderPagination = function renderPagination() {
|
174
|
-
if ((contentRows === null || contentRows ===
|
174
|
+
if ((contentRows === null || contentRows === void 0 ? void 0 : contentRows.length) > 0 && !isFetching && DatagridPagination) {
|
175
175
|
return /*#__PURE__*/React.createElement(DatagridPagination, datagridState);
|
176
176
|
}
|
177
177
|
};
|
@@ -184,10 +184,10 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
184
184
|
})), /*#__PURE__*/React.createElement("div", {
|
185
185
|
className: cx("".concat(blockClass, "__table-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__table-container--filter-open"), panelOpen)),
|
186
186
|
ref: gridAreaRef
|
187
|
-
}, (filterProps === null || filterProps ===
|
187
|
+
}, (filterProps === null || filterProps === void 0 ? void 0 : filterProps.variation) === 'panel' && /*#__PURE__*/React.createElement(FilterPanel.default, _rollupPluginBabelHelpers.extends({
|
188
188
|
updateMethod: undefined,
|
189
189
|
setAllFilters: undefined
|
190
|
-
}, getFilterFlyoutProps === null || getFilterFlyoutProps ===
|
190
|
+
}, getFilterFlyoutProps === null || getFilterFlyoutProps === void 0 ? void 0 : getFilterFlyoutProps(), {
|
191
191
|
title: filterProps.panelTitle,
|
192
192
|
filterSections: filterProps.sections,
|
193
193
|
autoHideFilters: filterProps.autoHideFilters,
|
@@ -199,7 +199,7 @@ var DatagridContent = function DatagridContent(_ref) {
|
|
199
199
|
}, renderTable()) : withVirtualScroll ? /*#__PURE__*/React.createElement("div", {
|
200
200
|
className: "".concat(blockClass, "__virtualScrollContainer"),
|
201
201
|
ref: gridRef
|
202
|
-
}, renderTable()) : renderTable()))), (filterProps === null || filterProps ===
|
202
|
+
}, renderTable()) : renderTable()))), (filterProps === null || filterProps === void 0 ? void 0 : filterProps.variation) !== 'panel' && renderPagination(), CustomizeColumnsTearsheet && /*#__PURE__*/React.createElement(CustomizeColumnsTearsheet, {
|
203
203
|
instance: datagridState
|
204
204
|
}));
|
205
205
|
};
|
@@ -30,7 +30,7 @@ var DatagridEmptyBody = function DatagridEmptyBody(datagridState) {
|
|
30
30
|
emptyStateDescription = datagridState.emptyStateDescription,
|
31
31
|
emptyStateSize = datagridState.emptyStateSize,
|
32
32
|
_datagridState$emptyS = datagridState.emptyStateType,
|
33
|
-
emptyStateType = _datagridState$emptyS ===
|
33
|
+
emptyStateType = _datagridState$emptyS === void 0 ? 'noData' : _datagridState$emptyS,
|
34
34
|
illustrationTheme = datagridState.illustrationTheme,
|
35
35
|
emptyStateAction = datagridState.emptyStateAction,
|
36
36
|
emptyStateLink = datagridState.emptyStateLink;
|
@@ -49,7 +49,7 @@ var DatagridEmptyBody = function DatagridEmptyBody(datagridState) {
|
|
49
49
|
"aria-live": "off",
|
50
50
|
className: "".concat(blockClass, "__empty-state-body")
|
51
51
|
}), /*#__PURE__*/React.createElement(react.TableRow, null, /*#__PURE__*/React.createElement(react.TableCell, {
|
52
|
-
colSpan: headers === null || headers ===
|
52
|
+
colSpan: headers === null || headers === void 0 ? void 0 : headers.length,
|
53
53
|
className: "".concat(blockClass, "__empty-state-cell")
|
54
54
|
}, validEmptyStates.includes(emptyStateType) ? /*#__PURE__*/React.createElement(React.Fragment, null, emptyStateType === 'error' && /*#__PURE__*/React.createElement(ErrorEmptyState.ErrorEmptyState, emptyStateProps), emptyStateType === 'noData' && /*#__PURE__*/React.createElement(NoDataEmptyState.NoDataEmptyState, emptyStateProps), emptyStateType === 'notFound' && /*#__PURE__*/React.createElement(NotFoundEmptyState.NotFoundEmptyState, emptyStateProps)) : /*#__PURE__*/React.createElement(EmptyState.EmptyState, emptyStateProps))));
|
55
55
|
};
|
@@ -25,9 +25,9 @@ var DatagridExpandedRow = function DatagridExpandedRow(ExpandedRowContentCompone
|
|
25
25
|
var _event$target;
|
26
26
|
var eventType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
27
27
|
/* istanbul ignore else */
|
28
|
-
if (event !== null && event !==
|
28
|
+
if (event !== null && event !== void 0 && (_event$target = event.target) !== null && _event$target !== void 0 && _event$target.closest('tr').previousElementSibling) {
|
29
29
|
var _event$target2;
|
30
|
-
var parentNode = event === null || event ===
|
30
|
+
var parentNode = event === null || event === void 0 || (_event$target2 = event.target) === null || _event$target2 === void 0 ? void 0 : _event$target2.closest('tr').previousElementSibling;
|
31
31
|
if (eventType === 'enter') {
|
32
32
|
parentNode.classList.add("".concat(blockClass, "__expandable-row--hover"));
|
33
33
|
} else {
|
@@ -38,7 +38,7 @@ var DatagridExpandedRow = function DatagridExpandedRow(ExpandedRowContentCompone
|
|
38
38
|
var key = datagridState.key,
|
39
39
|
_state = _rollupPluginBabelHelpers.objectWithoutProperties(datagridState, _excluded);
|
40
40
|
return /*#__PURE__*/React.createElement("tr", {
|
41
|
-
className: cx("".concat(blockClass, "__expanded-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__slug--row"), /*#__PURE__*/React.isValidElement(row === null || row ===
|
41
|
+
className: cx("".concat(blockClass, "__expanded-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__slug--row"), /*#__PURE__*/React.isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug)), "".concat(blockClass, "__ai-label--row"), /*#__PURE__*/React.isValidElement(row === null || row === void 0 || (_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.aiLabel))),
|
42
42
|
onMouseEnter: function onMouseEnter(event) {
|
43
43
|
return toggleParentHoverClass(event, 'enter');
|
44
44
|
},
|
@@ -14,12 +14,12 @@ var react = require('@carbon/react');
|
|
14
14
|
|
15
15
|
var DatagridHead = function DatagridHead(datagridState) {
|
16
16
|
var _datagridState$header = datagridState.headerGroups,
|
17
|
-
headerGroups = _datagridState$header ===
|
17
|
+
headerGroups = _datagridState$header === void 0 ? [] : _datagridState$header,
|
18
18
|
headRef = datagridState.headRef,
|
19
19
|
HeaderRow = datagridState.HeaderRow;
|
20
20
|
return /*#__PURE__*/React.createElement(react.TableHead, null, headerGroups.map(function (headerGroup) {
|
21
21
|
return (// doesn't support header grouping.
|
22
|
-
HeaderRow === null || HeaderRow ===
|
22
|
+
HeaderRow === null || HeaderRow === void 0 ? void 0 : HeaderRow(datagridState, headRef, headerGroup)
|
23
23
|
);
|
24
24
|
}));
|
25
25
|
};
|
@@ -48,16 +48,16 @@ var ResizeHeader = function ResizeHeader(_ref) {
|
|
48
48
|
isFetching = _ref.isFetching;
|
49
49
|
var headerProps = _rollupPluginBabelHelpers.extends({}, (_rollupPluginBabelHelpers.objectDestructuringEmpty(resizerProps), resizerProps));
|
50
50
|
var mouseDownHandler = function mouseDownHandler(evt) {
|
51
|
-
handleOnMouseDownResize === null || handleOnMouseDownResize ===
|
51
|
+
handleOnMouseDownResize === null || handleOnMouseDownResize === void 0 || handleOnMouseDownResize(evt, resizerProps);
|
52
52
|
};
|
53
53
|
var mouseUpHandler = function mouseUpHandler() {
|
54
|
-
stateReducer.handleColumnResizeEndEvent(dispatch, onColResizeEnd, header === null || header ===
|
54
|
+
stateReducer.handleColumnResizeEndEvent(dispatch, onColResizeEnd, header === null || header === void 0 ? void 0 : header.id, true);
|
55
55
|
};
|
56
56
|
var keyDownHandler = function keyDownHandler(evt) {
|
57
57
|
var key = evt.key;
|
58
58
|
if (key === 'ArrowLeft' || key === 'ArrowRight') {
|
59
|
-
var originalColMinWidth = (originalCol === null || originalCol ===
|
60
|
-
var currentColumnWidth = (header === null || header ===
|
59
|
+
var originalColMinWidth = (originalCol === null || originalCol === void 0 ? void 0 : originalCol.minWidth) || 90;
|
60
|
+
var currentColumnWidth = (header === null || header === void 0 ? void 0 : header.id) && (columnWidths === null || columnWidths === void 0 ? void 0 : columnWidths[header === null || header === void 0 ? void 0 : header.id]) || (datagridState !== null && datagridState !== void 0 && datagridState.isTableSortable && Number(originalCol === null || originalCol === void 0 ? void 0 : originalCol.width) < originalColMinWidth ? originalColMinWidth : originalCol === null || originalCol === void 0 ? void 0 : originalCol.width);
|
61
61
|
if (key === 'ArrowLeft') {
|
62
62
|
if (currentColumnWidth - incrementAmount > Math.max(Number(minWidth), 50)) {
|
63
63
|
var newWidth = currentColumnWidth - incrementAmount;
|
@@ -71,7 +71,7 @@ var ResizeHeader = function ResizeHeader(_ref) {
|
|
71
71
|
}
|
72
72
|
};
|
73
73
|
var keyUpHandler = function keyUpHandler() {
|
74
|
-
stateReducer.handleColumnResizeEndEvent(dispatch, onColResizeEnd, header === null || header ===
|
74
|
+
stateReducer.handleColumnResizeEndEvent(dispatch, onColResizeEnd, header === null || header === void 0 ? void 0 : header.id, true);
|
75
75
|
};
|
76
76
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", _rollupPluginBabelHelpers.extends({}, headerProps, {
|
77
77
|
onMouseDown: mouseDownHandler,
|
@@ -80,7 +80,7 @@ var ResizeHeader = function ResizeHeader(_ref) {
|
|
80
80
|
onKeyUp: keyUpHandler,
|
81
81
|
className: "".concat(blockClass, "__col-resizer-range"),
|
82
82
|
type: "range",
|
83
|
-
defaultValue: originalCol === null || originalCol ===
|
83
|
+
defaultValue: originalCol === null || originalCol === void 0 ? void 0 : originalCol.width,
|
84
84
|
"aria-label": resizerAriaLabel || 'Resize column',
|
85
85
|
disabled: isFetching
|
86
86
|
})), /*#__PURE__*/React.createElement("span", {
|
@@ -101,27 +101,27 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
101
101
|
React.useEffect(function () {
|
102
102
|
var tableId = datagridState.tableId;
|
103
103
|
var gridElement = document.querySelector("#".concat(tableId));
|
104
|
-
var tableElement = gridElement === null || gridElement ===
|
104
|
+
var tableElement = gridElement === null || gridElement === void 0 ? void 0 : gridElement.querySelector('table');
|
105
105
|
var headerRowElement = document.querySelector("#".concat(tableId, " .").concat(blockClass, "__head"));
|
106
106
|
var scrollBuffer = 2;
|
107
107
|
if (tableElement) {
|
108
|
-
var hasHorizontalScrollbar = (tableElement === null || tableElement ===
|
108
|
+
var hasHorizontalScrollbar = (tableElement === null || tableElement === void 0 ? void 0 : tableElement.scrollWidth) > (tableElement === null || tableElement === void 0 ? void 0 : tableElement.clientWidth);
|
109
109
|
if (hasHorizontalScrollbar) {
|
110
110
|
scrollBuffer = 18;
|
111
111
|
}
|
112
112
|
}
|
113
|
-
var tableToolbar = (gridElement === null || gridElement ===
|
114
|
-
var tableToolbarHeight = (tableToolbar === null || tableToolbar ===
|
113
|
+
var tableToolbar = (gridElement === null || gridElement === void 0 ? void 0 : gridElement.querySelector(".".concat(blockClass, "__table-toolbar"))) || null;
|
114
|
+
var tableToolbarHeight = (tableToolbar === null || tableToolbar === void 0 ? void 0 : tableToolbar.offsetHeight) || 0;
|
115
115
|
var setCustomValues = function setCustomValues(_ref2) {
|
116
116
|
var rowHeight = _ref2.rowHeight,
|
117
117
|
gridHeight = _ref2.gridHeight;
|
118
|
-
headerRowElement === null || headerRowElement ===
|
119
|
-
headerRowElement === null || headerRowElement ===
|
120
|
-
headerRowElement === null || headerRowElement ===
|
118
|
+
headerRowElement === null || headerRowElement === void 0 || headerRowElement.style.setProperty("--".concat(blockClass, "--row-height"), layout.px(rowHeight));
|
119
|
+
headerRowElement === null || headerRowElement === void 0 || headerRowElement.style.setProperty("--".concat(blockClass, "--grid-height"), layout.px(gridHeight - scrollBuffer - tableToolbarHeight));
|
120
|
+
headerRowElement === null || headerRowElement === void 0 || headerRowElement.style.setProperty("--".concat(blockClass, "--header-height"), layout.px(headerRowElement.offsetHeight));
|
121
121
|
};
|
122
122
|
setCustomValues({
|
123
|
-
gridHeight: gridElement === null || gridElement ===
|
124
|
-
rowHeight: headerRowElement === null || headerRowElement ===
|
123
|
+
gridHeight: gridElement === null || gridElement === void 0 ? void 0 : gridElement.offsetHeight,
|
124
|
+
rowHeight: headerRowElement === null || headerRowElement === void 0 ? void 0 : headerRowElement.clientHeight
|
125
125
|
});
|
126
126
|
}, [datagridState.rowSize, datagridState.tableId, datagridState]);
|
127
127
|
var _useState = React.useState(2),
|
@@ -130,14 +130,14 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
130
130
|
var handleOnMouseDownResize = function handleOnMouseDownResize(event, resizeProps) {
|
131
131
|
var _resizeProps = _rollupPluginBabelHelpers.objectSpread2({}, resizeProps),
|
132
132
|
_resizeProps$onMouseD = _resizeProps.onMouseDown,
|
133
|
-
onMouseDown = _resizeProps$onMouseD ===
|
133
|
+
onMouseDown = _resizeProps$onMouseD === void 0 ? function () {} : _resizeProps$onMouseD;
|
134
134
|
// When event.button is 2, that is a right click
|
135
135
|
// and we do not want to resize
|
136
136
|
if (event.button === 2 || event.ctrlKey) {
|
137
137
|
event.target.blur();
|
138
138
|
return;
|
139
139
|
}
|
140
|
-
onMouseDown === null || onMouseDown ===
|
140
|
+
onMouseDown === null || onMouseDown === void 0 || onMouseDown(event);
|
141
141
|
};
|
142
142
|
var _headerGroup$getHeade = headerGroup.getHeaderGroupProps({
|
143
143
|
role: undefined
|
@@ -154,7 +154,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
154
154
|
};
|
155
155
|
var foundAIRow = rows.some(function (r) {
|
156
156
|
var _r$original, _r$original2;
|
157
|
-
return /*#__PURE__*/React.isValidElement(r === null || r ===
|
157
|
+
return /*#__PURE__*/React.isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.aiLabel) || /*#__PURE__*/React.isValidElement(r === null || r === void 0 || (_r$original2 = r.original) === null || _r$original2 === void 0 ? void 0 : _r$original2.slug);
|
158
158
|
});
|
159
159
|
var key = headerGroupProps.key,
|
160
160
|
rowProps = _rollupPluginBabelHelpers.objectWithoutProperties(headerGroupProps, _excluded2);
|
@@ -169,10 +169,10 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
169
169
|
}), foundAIRow ? _th || (_th = /*#__PURE__*/React.createElement("th", {
|
170
170
|
scope: "col",
|
171
171
|
"aria-hidden": "false"
|
172
|
-
})) : null, datagridState === null || datagridState ===
|
172
|
+
})) : null, datagridState === null || datagridState === void 0 || (_datagridState$header = datagridState.headers) === null || _datagridState$header === void 0 || (_datagridState$header = _datagridState$header.filter(function (_ref3) {
|
173
173
|
var isVisible = _ref3.isVisible;
|
174
174
|
return isVisible;
|
175
|
-
})) === null || _datagridState$header ===
|
175
|
+
})) === null || _datagridState$header === void 0 ? void 0 : _datagridState$header.map(function (header, index) {
|
176
176
|
var _header$getResizerPro;
|
177
177
|
if (header.id === commonColumnIds.selectionColumnId) {
|
178
178
|
// render directly without the wrapper TableHeader
|
@@ -194,10 +194,10 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
194
194
|
role: undefined
|
195
195
|
}),
|
196
196
|
headerProps = _rollupPluginBabelHelpers.extends({}, (_rollupPluginBabelHelpers.objectDestructuringEmpty(_header$getHeaderProp), _header$getHeaderProp));
|
197
|
-
var resizerProps = header === null || header ===
|
197
|
+
var resizerProps = header === null || header === void 0 || (_header$getResizerPro = header.getResizerProps) === null || _header$getResizerPro === void 0 ? void 0 : _header$getResizerPro.call(header, {
|
198
198
|
role: undefined
|
199
199
|
});
|
200
|
-
var headerStyle = headerProps === null || headerProps ===
|
200
|
+
var headerStyle = headerProps === null || headerProps === void 0 ? void 0 : headerProps.style;
|
201
201
|
var lastVisibleIndex = withActionsColumn ? 2 : 1;
|
202
202
|
var isLastVisibleColumn = index === visibleColumns.length - lastVisibleIndex;
|
203
203
|
if (headerStyle) {
|
@@ -207,7 +207,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
207
207
|
});
|
208
208
|
}
|
209
209
|
return /*#__PURE__*/React.createElement(react.TableHeader, _rollupPluginBabelHelpers.extends({}, headerProps, {
|
210
|
-
className: cx(header === null || header ===
|
210
|
+
className: cx(header === null || header === void 0 ? void 0 : header.className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__resizableColumn"), resizerProps), "".concat(blockClass, "__isResizing"), header === null || header === void 0 ? void 0 : header.isResizing), "".concat(blockClass, "__sortableColumn"), datagridState.isTableSortable && header.id !== 'spacer'), "".concat(blockClass, "__isSorted"), header === null || header === void 0 ? void 0 : header.isSorted), "".concat(blockClass, "__header-actions-column"), header === null || header === void 0 ? void 0 : header.isAction), "".concat(blockClass, "__with-slug"), header.slug && /*#__PURE__*/React.isValidElement(header === null || header === void 0 ? void 0 : header.slug)), "".concat(blockClass, "__with-ai-label"), header.aiLabel && /*#__PURE__*/React.isValidElement(header === null || header === void 0 ? void 0 : header.aiLabel)), headerProps.className),
|
211
211
|
key: header.id,
|
212
212
|
"aria-hidden": header.id === 'spacer' && 'true'
|
213
213
|
}, getAccessibilityProps(header)), header.render('Header'), renderAILabel(header.aiLabel || header.slug), resizerProps && !header.isAction && /*#__PURE__*/React.createElement(ResizeHeader, {
|