@carbon/ibm-products 2.52.0 → 2.53.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/README.md +3 -3
- package/css/index-full-carbon.css +306 -298
- 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 +94 -27
- 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 +110 -44
- 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 +179 -118
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
- package/es/components/APIKeyModal/APIKeyModal.js +1 -1
- package/es/components/AboutModal/AboutModal.js +2 -4
- package/es/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
- package/es/components/AddSelect/AddSelectBody.js +8 -1
- package/es/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
- package/es/components/AddSelect/AddSelectColumn.d.ts +2 -1
- package/es/components/AddSelect/AddSelectFilter.d.ts +2 -1
- package/es/components/AddSelect/AddSelectFilter.js +5 -5
- package/es/components/AddSelect/AddSelectFormControl.d.ts +2 -1
- package/es/components/AddSelect/AddSelectList.d.ts +2 -1
- package/es/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
- package/es/components/AddSelect/AddSelectRow.d.ts +2 -1
- package/es/components/AddSelect/AddSelectSidebar.d.ts +2 -1
- package/es/components/AddSelect/AddSelectSidebar.js +1 -1
- package/es/components/AddSelect/AddSelectSort.d.ts +2 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
- package/es/components/Card/Card.d.ts +5 -1
- package/es/components/Card/Card.js +9 -2
- package/es/components/Card/CardFooter.d.ts +1 -1
- package/es/components/Card/CardHeader.d.ts +12 -2
- package/es/components/Card/CardHeader.js +17 -9
- package/es/components/Carousel/Carousel.js +17 -8
- package/es/components/Checklist/ChecklistChart.js +22 -6
- package/es/components/Coachmark/Coachmark.js +18 -11
- package/es/components/Coachmark/CoachmarkOverlay.js +30 -19
- package/es/components/Coachmark/utils/hooks.js +1 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
- package/es/components/CoachmarkStack/CoachmarkStack.js +1 -1
- package/es/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +3 -6
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -8
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +0 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +65 -61
- package/es/components/ConditionBuilder/utils/util.js +0 -2
- package/es/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -1
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -4
- package/es/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +13 -10
- package/es/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +14 -10
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
- package/es/components/Datagrid/Datagrid/addons/{Slug/DatagridSlug.d.ts → AiLabel/DatagridAiLabel.d.ts} +3 -3
- package/es/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +29 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/es/components/Datagrid/index.d.ts +29 -22
- package/es/components/Datagrid/types/index.d.ts +7 -7
- package/es/components/Datagrid/useActionsColumn.js +1 -2
- package/es/components/Datagrid/useColumnCenterAlign.js +1 -2
- package/es/components/Datagrid/useColumnRightAlign.js +1 -2
- package/es/components/Datagrid/useCustomizeColumns.js +1 -2
- package/es/components/Datagrid/useDatagrid.js +1 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +3 -3
- package/es/components/Datagrid/useDisableSelectRows.js +1 -2
- package/es/components/Datagrid/useExpandedRow.js +1 -2
- package/es/components/Datagrid/useFiltering.js +1 -2
- package/es/components/Datagrid/useFlexResize.js +1 -1
- package/es/components/Datagrid/useInfiniteScroll.js +1 -2
- package/es/components/Datagrid/useInlineEdit.js +1 -2
- package/es/components/Datagrid/useNestedRowExpander.js +2 -2
- package/es/components/Datagrid/useNestedRows.js +1 -2
- package/es/components/Datagrid/useOnRowClick.js +1 -2
- package/es/components/Datagrid/useParentDimensions.js +5 -5
- package/es/components/Datagrid/useRowExpander.js +6 -7
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -2
- package/es/components/Datagrid/useSelectAllToggle.js +1 -2
- package/es/components/Datagrid/useSelectRows.js +1 -2
- package/es/components/Datagrid/useSortableColumns.js +7 -8
- package/es/components/Datagrid/useStickyColumn.js +4 -5
- package/es/components/EmptyStates/EmptyState.d.ts +1 -1
- package/es/components/EmptyStates/EmptyState.js +8 -2
- package/es/components/EmptyStates/EmptyStateContent.d.ts +2 -1
- package/es/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
- package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/ErrorEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.js +5 -5
- package/es/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +8 -8
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
- package/es/components/EmptyStates/index.d.ts +22 -8
- package/es/components/ExportModal/ExportModal.js +1 -3
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
- package/es/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/es/components/FeatureFlags/index.d.ts +5 -4
- package/es/components/FeatureFlags/index.js +17 -10
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
- package/es/components/FullPageError/assets/Error403SVG.d.ts +2 -1
- package/es/components/FullPageError/assets/Error404SVG.d.ts +2 -1
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
- package/es/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +4 -4
- package/es/components/Nav/NavItem.d.ts +2 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +8 -1
- package/es/components/PageHeader/PageHeader.d.ts +2 -0
- package/es/components/PageHeader/PageHeader.js +4 -1
- package/es/components/PageHeader/PageHeaderTitle.d.ts +3 -1
- package/es/components/PageHeader/PageHeaderTitle.js +42 -8
- package/es/components/ProductiveCard/ProductiveCard.d.ts +5 -0
- package/es/components/ProductiveCard/ProductiveCard.js +4 -0
- package/es/components/ScrollGradient/ScrollGradient.js +2 -2
- package/es/components/SidePanel/SidePanel.d.ts +5 -0
- package/es/components/SidePanel/SidePanel.js +30 -16
- package/es/components/SimpleHeader/SimpleHeader.d.ts +2 -1
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/es/components/TagOverflow/TagOverflow.d.ts +3 -0
- package/es/components/TagOverflow/TagOverflow.js +9 -4
- package/es/components/TagOverflow/TagOverflowModal.d.ts +6 -1
- package/es/components/TagOverflow/TagOverflowModal.js +17 -6
- package/es/components/TagOverflow/TagOverflowPopover.js +17 -9
- package/es/components/TagSet/TagSet.d.ts +4 -0
- package/es/components/TagSet/TagSet.js +20 -8
- package/es/components/TagSet/TagSetModal.js +0 -1
- package/es/components/Tearsheet/TearsheetShell.d.ts +13 -4
- package/es/components/Tearsheet/TearsheetShell.js +31 -20
- package/es/components/Toolbar/Toolbar.js +1 -1
- package/es/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
- package/es/components/TruncatedList/TruncatedList.js +1 -1
- package/es/components/_Canary/Canary.d.ts +2 -1
- package/es/global/js/hooks/usePreviousValue.js +1 -1
- package/es/index.js +29 -29
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +742 -740
- package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
- package/lib/components/APIKeyModal/APIKeyModal.js +1 -1
- package/lib/components/AboutModal/AboutModal.js +2 -4
- package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
- package/lib/components/AddSelect/AddSelectBody.js +8 -1
- package/lib/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectColumn.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectFilter.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectFilter.js +4 -4
- package/lib/components/AddSelect/AddSelectFormControl.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectList.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectRow.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectSidebar.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectSidebar.js +1 -1
- package/lib/components/AddSelect/AddSelectSort.d.ts +2 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
- package/lib/components/Card/Card.d.ts +5 -1
- package/lib/components/Card/Card.js +9 -2
- package/lib/components/Card/CardFooter.d.ts +1 -1
- package/lib/components/Card/CardHeader.d.ts +12 -2
- package/lib/components/Card/CardHeader.js +17 -9
- package/lib/components/Carousel/Carousel.js +17 -8
- package/lib/components/Checklist/ChecklistChart.js +20 -4
- package/lib/components/Coachmark/Coachmark.js +17 -10
- package/lib/components/Coachmark/CoachmarkOverlay.js +29 -18
- package/lib/components/Coachmark/utils/hooks.js +1 -1
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
- package/lib/components/CoachmarkStack/CoachmarkStack.js +1 -1
- package/lib/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +3 -6
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -8
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +0 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +65 -61
- package/lib/components/ConditionBuilder/utils/util.js +0 -2
- package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -1
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -4
- package/lib/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +13 -10
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +14 -10
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
- package/lib/components/Datagrid/Datagrid/addons/{Slug/DatagridSlug.d.ts → AiLabel/DatagridAiLabel.d.ts} +3 -3
- package/lib/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +31 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/lib/components/Datagrid/index.d.ts +29 -22
- package/lib/components/Datagrid/types/index.d.ts +7 -7
- package/lib/components/Datagrid/useActionsColumn.js +1 -2
- package/lib/components/Datagrid/useColumnCenterAlign.js +1 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +1 -2
- package/lib/components/Datagrid/useCustomizeColumns.js +1 -2
- package/lib/components/Datagrid/useDatagrid.js +1 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +3 -3
- package/lib/components/Datagrid/useDisableSelectRows.js +1 -2
- package/lib/components/Datagrid/useExpandedRow.js +1 -2
- package/lib/components/Datagrid/useFiltering.js +1 -2
- package/lib/components/Datagrid/useFlexResize.js +1 -1
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -2
- package/lib/components/Datagrid/useInlineEdit.js +1 -2
- package/lib/components/Datagrid/useNestedRowExpander.js +2 -2
- package/lib/components/Datagrid/useNestedRows.js +1 -2
- package/lib/components/Datagrid/useOnRowClick.js +1 -2
- package/lib/components/Datagrid/useParentDimensions.js +5 -5
- package/lib/components/Datagrid/useRowExpander.js +6 -7
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -2
- package/lib/components/Datagrid/useSelectAllToggle.js +1 -2
- package/lib/components/Datagrid/useSelectRows.js +1 -2
- package/lib/components/Datagrid/useSortableColumns.js +7 -8
- package/lib/components/Datagrid/useStickyColumn.js +4 -5
- package/lib/components/EmptyStates/EmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/EmptyState.js +7 -1
- package/lib/components/EmptyStates/EmptyStateContent.d.ts +2 -1
- package/lib/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/ErrorEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NoDataEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NoTagsEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NotFoundEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NotificationsEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/UnauthorizedEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +5 -5
- package/lib/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +8 -8
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/index.d.ts +22 -8
- package/lib/components/ExportModal/ExportModal.js +1 -3
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
- package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/lib/components/FeatureFlags/index.d.ts +5 -4
- package/lib/components/FeatureFlags/index.js +16 -9
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +2 -1
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +2 -1
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
- package/lib/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.js +4 -4
- package/lib/components/Nav/NavItem.d.ts +2 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +8 -1
- package/lib/components/PageHeader/PageHeader.d.ts +2 -0
- package/lib/components/PageHeader/PageHeader.js +4 -1
- package/lib/components/PageHeader/PageHeaderTitle.d.ts +3 -1
- package/lib/components/PageHeader/PageHeaderTitle.js +39 -5
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +5 -0
- package/lib/components/ProductiveCard/ProductiveCard.js +4 -0
- package/lib/components/ScrollGradient/ScrollGradient.js +2 -2
- package/lib/components/SidePanel/SidePanel.d.ts +5 -0
- package/lib/components/SidePanel/SidePanel.js +30 -16
- package/lib/components/SimpleHeader/SimpleHeader.d.ts +2 -1
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/lib/components/TagOverflow/TagOverflow.d.ts +3 -0
- package/lib/components/TagOverflow/TagOverflow.js +8 -3
- package/lib/components/TagOverflow/TagOverflowModal.d.ts +6 -1
- package/lib/components/TagOverflow/TagOverflowModal.js +16 -5
- package/lib/components/TagOverflow/TagOverflowPopover.js +16 -8
- package/lib/components/TagSet/TagSet.d.ts +4 -0
- package/lib/components/TagSet/TagSet.js +19 -7
- package/lib/components/TagSet/TagSetModal.js +0 -1
- package/lib/components/Tearsheet/TearsheetShell.d.ts +13 -4
- package/lib/components/Tearsheet/TearsheetShell.js +31 -20
- package/lib/components/Toolbar/Toolbar.js +1 -1
- package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
- package/lib/components/TruncatedList/TruncatedList.js +1 -1
- package/lib/components/_Canary/Canary.d.ts +2 -1
- package/lib/global/js/hooks/usePreviousValue.js +1 -1
- package/lib/index.js +88 -88
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +742 -740
- package/package.json +11 -11
- package/scss/components/Card/_card.scss +14 -6
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +4 -0
- package/scss/components/Datagrid/styles/_datagrid.scss +82 -2
- package/scss/components/PageHeader/_page-header.scss +16 -3
- package/scss/components/SidePanel/_side-panel.scss +12 -6
- package/scss/components/Tearsheet/_tearsheet.scss +13 -3
- package/telemetry.yml +1 -0
- package/es/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +0 -29
- package/lib/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +0 -31
@@ -29,72 +29,76 @@ var excludeKeyPress = function excludeKeyPress(evt) {
|
|
29
29
|
return !['Escape'].includes(evt.key) && (evt.target.closest(".".concat(util.blockClass, "__item-date")) || evt.target.closest(".".concat(util.blockClass, "__item-time")));
|
30
30
|
};
|
31
31
|
var handleKeyPressForPopover = function handleKeyPressForPopover(evt, parentContainer, conditionBuilderRef) {
|
32
|
-
var _parentContainer$quer;
|
32
|
+
var _parentContainer$quer, _parentContainer$quer2, _evt$target$closest$q, _evt$target$closest;
|
33
33
|
var key = evt.key;
|
34
34
|
var isHoldingShiftKey = util.checkForHoldingKey(evt, 'shiftKey');
|
35
35
|
var isMultiSelect = (_parentContainer$quer = parentContainer.querySelector('ul')) === null || _parentContainer$quer === void 0 ? void 0 : _parentContainer$quer.dataset.multiSelect;
|
36
|
+
var isOptionInput = (_parentContainer$quer2 = parentContainer.querySelectorAll("[role=\"option\"]")) === null || _parentContainer$quer2 === void 0 ? void 0 : _parentContainer$quer2.length;
|
36
37
|
var allItems = [];
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
util.traverseClockVise(eachElem, index, allElements, null, null, conditionBuilderRef);
|
54
|
-
});
|
55
|
-
break;
|
56
|
-
case 'Tab':
|
57
|
-
allItems = [].concat(_rollupPluginBabelHelpers.toConsumableArray(Array.from(parentContainer.querySelectorAll(".".concat(util.blockClass, "__selectAll-button,[role=\"searchbox\"]")))), [parentContainer.querySelector("[role=\"option\"]")]);
|
58
|
-
allItems.forEach(function (eachElem, index, allElements) {
|
59
|
-
if (isHoldingShiftKey) {
|
60
|
-
util.traverseReverse(eachElem, index, allElements, true, true, conditionBuilderRef);
|
61
|
-
} else {
|
62
|
-
util.traverseClockVise(eachElem, index, allElements, true, true, conditionBuilderRef);
|
63
|
-
}
|
64
|
-
});
|
65
|
-
evt.preventDefault();
|
66
|
-
break;
|
67
|
-
case ' ':
|
68
|
-
if (isMultiSelect === 'true') {
|
69
|
-
if (document.activeElement.type !== 'button') {
|
70
|
-
var _document$activeEleme;
|
71
|
-
//for button , enter key is click which already handled by framework, for other elements trigger click
|
72
|
-
(_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 || _document$activeEleme.click();
|
38
|
+
if (key === 'Escape') {
|
39
|
+
//focus the corresponding field in which the popover is triggered from
|
40
|
+
util.focusThisField(evt, conditionBuilderRef);
|
41
|
+
evt.preventDefault();
|
42
|
+
}
|
43
|
+
if (isOptionInput) {
|
44
|
+
switch (key) {
|
45
|
+
case 'ArrowUp':
|
46
|
+
evt.preventDefault();
|
47
|
+
//traverse through the popover options, search box, selectAll button
|
48
|
+
parentContainer.querySelectorAll("[role=\"option\"]").forEach(function (eachElem, index, allElements) {
|
49
|
+
util.traverseReverse(eachElem, index, allElements, null, null, conditionBuilderRef);
|
50
|
+
});
|
51
|
+
//scroll to top when we reach a the top of the list to make search box visible
|
52
|
+
if (Array.from((_evt$target$closest$q = (_evt$target$closest = evt.target.closest('ul')) === null || _evt$target$closest === void 0 ? void 0 : _evt$target$closest.querySelectorAll('li')) !== null && _evt$target$closest$q !== void 0 ? _evt$target$closest$q : []).indexOf(evt.target) === 1) {
|
53
|
+
parentContainer.querySelector(".".concat(util.blockClass, "__popover-content-wrapper")).scrollTop = 0;
|
73
54
|
}
|
55
|
+
break;
|
56
|
+
case 'ArrowDown':
|
74
57
|
evt.preventDefault();
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
58
|
+
//traverse through the popover options, search box, selectAll button
|
59
|
+
parentContainer.querySelectorAll("[role=\"option\"]").forEach(function (eachElem, index, allElements) {
|
60
|
+
util.traverseClockVise(eachElem, index, allElements, null, null, conditionBuilderRef);
|
61
|
+
});
|
62
|
+
break;
|
63
|
+
case 'Tab':
|
64
|
+
allItems = [].concat(_rollupPluginBabelHelpers.toConsumableArray(Array.from(parentContainer.querySelectorAll(".".concat(util.blockClass, "__selectAll-button,[role=\"searchbox\"]")))), [parentContainer.querySelector("[role=\"option\"]")]);
|
65
|
+
allItems.forEach(function (eachElem, index, allElements) {
|
66
|
+
if (isHoldingShiftKey) {
|
67
|
+
util.traverseReverse(eachElem, index, allElements, true, true, conditionBuilderRef);
|
68
|
+
} else {
|
69
|
+
util.traverseClockVise(eachElem, index, allElements, true, true, conditionBuilderRef);
|
70
|
+
}
|
71
|
+
});
|
72
|
+
evt.preventDefault();
|
73
|
+
break;
|
74
|
+
case ' ':
|
75
|
+
if (isMultiSelect === 'true') {
|
76
|
+
if (document.activeElement.type !== 'button') {
|
77
|
+
var _document$activeEleme;
|
78
|
+
//for button , enter key is click which already handled by framework, for other elements trigger click
|
79
|
+
(_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 || _document$activeEleme.click();
|
80
|
+
}
|
82
81
|
evt.preventDefault();
|
83
|
-
(_document$activeEleme2 = document.activeElement) === null || _document$activeEleme2 === void 0 || _document$activeEleme2.click();
|
84
82
|
}
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
83
|
+
break;
|
84
|
+
case 'Enter':
|
85
|
+
if (isMultiSelect === 'true') {
|
86
|
+
if (document.activeElement.type !== 'button') {
|
87
|
+
var _document$activeEleme2;
|
88
|
+
//for button , enter key is click which already handled by framework, for other elements trigger click
|
89
|
+
evt.preventDefault();
|
90
|
+
(_document$activeEleme2 = document.activeElement) === null || _document$activeEleme2 === void 0 || _document$activeEleme2.click();
|
91
|
+
}
|
92
|
+
} else {
|
93
|
+
if (document.activeElement.type !== 'button') {
|
94
|
+
var _document$activeEleme3;
|
95
|
+
//for button , enter key is click which already handled by framework, else trigger click
|
96
|
+
util.focusThisField(evt, conditionBuilderRef);
|
97
|
+
(_document$activeEleme3 = document.activeElement) === null || _document$activeEleme3 === void 0 || _document$activeEleme3.click();
|
98
|
+
}
|
91
99
|
}
|
92
|
-
|
93
|
-
|
94
|
-
case 'Escape':
|
95
|
-
//focus the corresponding field in which the popover is triggered\
|
96
|
-
util.focusThisField(evt, conditionBuilderRef);
|
97
|
-
break;
|
100
|
+
break;
|
101
|
+
}
|
98
102
|
}
|
99
103
|
};
|
100
104
|
var handleKeyPressForMainContent = function handleKeyPressForMainContent(evt, conditionBuilderRef, variant) {
|
@@ -103,8 +107,8 @@ var handleKeyPressForMainContent = function handleKeyPressForMainContent(evt, co
|
|
103
107
|
case 'ArrowRight':
|
104
108
|
evt.preventDefault();
|
105
109
|
if (variant == util.HIERARCHICAL_VARIANT) {
|
106
|
-
var _evt$target$
|
107
|
-
var allCellsInRow = Array.from((_evt$target$
|
110
|
+
var _evt$target$closest2;
|
111
|
+
var allCellsInRow = Array.from((_evt$target$closest2 = evt.target.closest('[role="row"]')) === null || _evt$target$closest2 === void 0 ? void 0 : _evt$target$closest2.querySelectorAll('[role="gridcell"] button'));
|
108
112
|
if (allCellsInRow.length === 1) {
|
109
113
|
evt.target = evt.target.closest('[role="row"]');
|
110
114
|
handleRowNavigationHierarchical(evt, conditionBuilderRef, variant);
|
@@ -131,10 +135,10 @@ var handleKeyPressForMainContent = function handleKeyPressForMainContent(evt, co
|
|
131
135
|
evt.preventDefault();
|
132
136
|
if (variant == util.HIERARCHICAL_VARIANT) {
|
133
137
|
if (evt.target.getAttribute('role') !== 'row') {
|
134
|
-
var _evt$target$
|
138
|
+
var _evt$target$closest3;
|
135
139
|
//when any cell is focussed, arrow left will select the previous cell or current row
|
136
140
|
|
137
|
-
var _allCellsInRow = Array.from((_evt$target$
|
141
|
+
var _allCellsInRow = Array.from((_evt$target$closest3 = evt.target.closest('[role="row"]')) === null || _evt$target$closest3 === void 0 ? void 0 : _evt$target$closest3.querySelectorAll('[role="gridcell"] button'));
|
138
142
|
var _currentItemIndex = _allCellsInRow.indexOf(evt.target);
|
139
143
|
if (_currentItemIndex > 0) {
|
140
144
|
util.focusThisItem(_allCellsInRow[_currentItemIndex - 1], conditionBuilderRef);
|
@@ -24,8 +24,6 @@ var focusThisField = function focusThisField(evt, conditionBuilderRef) {
|
|
24
24
|
};
|
25
25
|
var focusThisItem = function focusThisItem(currentElement, conditionBuilderRef) {
|
26
26
|
setTimeout(function () {
|
27
|
-
//document.activeElement.setAttribute('tabindex', '-1');
|
28
|
-
// currentElement.setAttribute('tabindex', '0');
|
29
27
|
manageTabIndexAndFocus(currentElement, conditionBuilderRef);
|
30
28
|
}, 0);
|
31
29
|
};
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
7
|
+
import React, { PropsWithChildren, ReactNode } from 'react';
|
8
8
|
import PropTypes from 'prop-types';
|
9
9
|
import '../../global/js/utils/props-helper';
|
10
10
|
interface Step {
|
@@ -32,7 +32,7 @@ interface CreateInfluencerProps {
|
|
32
32
|
title?: string | undefined;
|
33
33
|
}
|
34
34
|
export declare const CreateInfluencer: {
|
35
|
-
({ className, currentStep, stepData, title, }: PropsWithChildren<CreateInfluencerProps>):
|
35
|
+
({ className, currentStep, stepData, title, }: PropsWithChildren<CreateInfluencerProps>): React.JSX.Element;
|
36
36
|
displayName: string;
|
37
37
|
propTypes: {
|
38
38
|
/**
|
@@ -86,7 +86,7 @@ exports.DataSpreadsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
86
86
|
totalVisibleColumns = _ref.totalVisibleColumns,
|
87
87
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
88
88
|
var multiKeyTrackingRef = React.useRef(null);
|
89
|
-
var localRef = React.useRef();
|
89
|
+
var localRef = React.useRef(undefined);
|
90
90
|
var spreadsheetRef = ref || localRef;
|
91
91
|
var focusedElement = useActiveElement.useActiveElement();
|
92
92
|
var _useState = React.useState(columns),
|
@@ -153,13 +153,13 @@ exports.DataSpreadsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
153
153
|
selectedHeaderReorderActive: selectedHeaderReorderActive
|
154
154
|
}) || {};
|
155
155
|
var cellSizeValue = getCellSize.getCellSize(cellSize);
|
156
|
-
var cellEditorRef = React.useRef();
|
156
|
+
var cellEditorRef = React.useRef(undefined);
|
157
157
|
var _useState29 = React.useState(),
|
158
158
|
_useState30 = _rollupPluginBabelHelpers.slicedToArray(_useState29, 2),
|
159
159
|
activeCellContent = _useState30[0],
|
160
160
|
setActiveCellContent = _useState30[1];
|
161
|
-
var activeCellRef = React.useRef();
|
162
|
-
var cellEditorRulerRef = React.useRef();
|
161
|
+
var activeCellRef = React.useRef(undefined);
|
162
|
+
var cellEditorRulerRef = React.useRef(undefined);
|
163
163
|
var hasCustomRowHeader = typeof renderRowHeader === 'function';
|
164
164
|
var maxNumRowsCount = data.length.toString().length;
|
165
165
|
var defaultColumn = React.useMemo(function () {
|
@@ -67,7 +67,7 @@ var DataSpreadsheetBody = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
67
67
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
68
68
|
validStartingPoint = _useState2[0],
|
69
69
|
setValidStartingPoint = _useState2[1];
|
70
|
-
var contentScrollRef = React.useRef();
|
70
|
+
var contentScrollRef = React.useRef(undefined);
|
71
71
|
var previousState = usePreviousValue.usePreviousValue({
|
72
72
|
selectionAreaData: selectionAreaData,
|
73
73
|
clickAndHoldActive: clickAndHoldActive,
|
@@ -379,7 +379,7 @@ var DataSpreadsheetBody = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
379
379
|
}));
|
380
380
|
}
|
381
381
|
}, [prepareRow, renderRowHeader, renderRowHeaderDirection, rows, hasCustomRowHeader, activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row, selectionAreas, handleRowHeaderClickEvent, handleBodyCellClickEvent, handleBodyCellHoverEvent, defaultColumn, columns]);
|
382
|
-
var spreadsheetBodyRef = React.useRef();
|
382
|
+
var spreadsheetBodyRef = React.useRef(undefined);
|
383
383
|
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
|
384
384
|
ref: spreadsheetBodyRef,
|
385
385
|
className: cx("".concat(blockClass, "__body--container"))
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import { DataGridState } from '../types';
|
8
|
-
declare const DatagridBody: (datagridState: DataGridState) =>
|
9
|
+
declare const DatagridBody: (datagridState: DataGridState) => React.JSX.Element;
|
9
10
|
export default DatagridBody;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import '../../../feature-flags';
|
2
|
+
import React from 'react';
|
2
3
|
import PropTypes from 'prop-types';
|
3
4
|
import { DataGridState } from '../types';
|
4
5
|
interface DatagridContentProps {
|
@@ -7,7 +8,7 @@ interface DatagridContentProps {
|
|
7
8
|
title?: string;
|
8
9
|
}
|
9
10
|
export declare const DatagridContent: {
|
10
|
-
({ datagridState, ariaToolbarLabel, title, }: DatagridContentProps):
|
11
|
+
({ datagridState, ariaToolbarLabel, title, }: DatagridContentProps): React.JSX.Element;
|
11
12
|
propTypes: {
|
12
13
|
ariaToolbarLabel: PropTypes.Requireable<string>;
|
13
14
|
datagridState: PropTypes.Requireable<PropTypes.InferProps<{
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import { DataGridState } from '../types';
|
8
|
-
declare const DatagridEmptyBody: (datagridState: DataGridState) =>
|
9
|
+
declare const DatagridEmptyBody: (datagridState: DataGridState) => React.JSX.Element;
|
9
10
|
export default DatagridEmptyBody;
|
@@ -13,10 +13,14 @@ var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHel
|
|
13
13
|
var React = require('react');
|
14
14
|
var settings = require('../../../settings.js');
|
15
15
|
var react = require('@carbon/react');
|
16
|
+
var EmptyState = require('../../EmptyStates/EmptyState.js');
|
17
|
+
require('../../EmptyStates/EmptyStateV2.js');
|
16
18
|
var ErrorEmptyState = require('../../EmptyStates/ErrorEmptyState/ErrorEmptyState.js');
|
17
19
|
var NoDataEmptyState = require('../../EmptyStates/NoDataEmptyState/NoDataEmptyState.js');
|
20
|
+
require('../../EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js');
|
18
21
|
var NotFoundEmptyState = require('../../EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js');
|
19
|
-
|
22
|
+
require('../../EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js');
|
23
|
+
require('../../EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js');
|
20
24
|
|
21
25
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
22
26
|
var DatagridEmptyBody = function DatagridEmptyBody(datagridState) {
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
-
import { JSXElementConstructor } from 'react';
|
7
|
+
import React, { JSXElementConstructor } from 'react';
|
8
8
|
import { DataGridState } from '../types';
|
9
|
-
declare const DatagridExpandedRow: (ExpandedRowContentComponent: JSXElementConstructor<any>) => (datagridState: DataGridState) =>
|
9
|
+
declare const DatagridExpandedRow: (ExpandedRowContentComponent: JSXElementConstructor<any>) => (datagridState: DataGridState) => React.JSX.Element;
|
10
10
|
export default DatagridExpandedRow;
|
@@ -20,7 +20,7 @@ var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
|
20
20
|
// eslint-disable-next-line react/prop-types
|
21
21
|
var DatagridExpandedRow = function DatagridExpandedRow(ExpandedRowContentComponent) {
|
22
22
|
return function (datagridState) {
|
23
|
-
var _row$original;
|
23
|
+
var _row$original, _row$original2;
|
24
24
|
var row = datagridState.row;
|
25
25
|
var expandedContentHeight = row.expandedContentHeight;
|
26
26
|
var toggleParentHoverClass = function toggleParentHoverClass(event) {
|
@@ -40,7 +40,7 @@ var DatagridExpandedRow = function DatagridExpandedRow(ExpandedRowContentCompone
|
|
40
40
|
var key = datagridState.key,
|
41
41
|
_state = _rollupPluginBabelHelpers.objectWithoutProperties(datagridState, _excluded);
|
42
42
|
return /*#__PURE__*/React.createElement("tr", {
|
43
|
-
className: cx("".concat(blockClass, "__expanded-row"), _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))),
|
43
|
+
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))),
|
44
44
|
onMouseEnter: function onMouseEnter(event) {
|
45
45
|
return toggleParentHoverClass(event, 'enter');
|
46
46
|
},
|
@@ -51,8 +51,10 @@ var DatagridExpandedRow = function DatagridExpandedRow(ExpandedRowContentCompone
|
|
51
51
|
className: "".concat(blockClass, "__expanded-row-cell-wrapper")
|
52
52
|
}, /*#__PURE__*/React.createElement("div", {
|
53
53
|
className: "".concat(blockClass, "__expanded-row-content"),
|
54
|
-
|
55
|
-
|
54
|
+
ref: function ref(el) {
|
55
|
+
if (el && el.style && expandedContentHeight) {
|
56
|
+
el.style.height = "".concat(expandedContentHeight, "px");
|
57
|
+
}
|
56
58
|
}
|
57
59
|
}, /*#__PURE__*/React.createElement(ExpandedRowContentComponent, _rollupPluginBabelHelpers.extends({
|
58
60
|
key: key
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import { DataGridState } from '../types';
|
8
|
-
declare const DatagridHead: (datagridState: DataGridState) =>
|
9
|
+
declare const DatagridHead: (datagridState: DataGridState) => React.JSX.Element;
|
9
10
|
export default DatagridHead;
|
@@ -18,7 +18,7 @@ var commonColumnIds = require('../common-column-ids.js');
|
|
18
18
|
var settings = require('../../../settings.js');
|
19
19
|
var stateReducer = require('./addons/stateReducer.js');
|
20
20
|
var getNodeTextContent = require('../../../global/js/utils/getNodeTextContent.js');
|
21
|
-
var
|
21
|
+
var DatagridAiLabel = require('./addons/AiLabel/DatagridAiLabel.js');
|
22
22
|
var useInitialColumnSort = require('../useInitialColumnSort.js');
|
23
23
|
|
24
24
|
var _th;
|
@@ -144,17 +144,17 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
144
144
|
}),
|
145
145
|
headerGroupClassName = _headerGroup$getHeade.className,
|
146
146
|
headerGroupProps = _rollupPluginBabelHelpers.objectWithoutProperties(_headerGroup$getHeade, _excluded);
|
147
|
-
var
|
147
|
+
var renderAILabel = function renderAILabel(aiLabel) {
|
148
148
|
if (isTableSortable) {
|
149
149
|
return;
|
150
150
|
}
|
151
|
-
return /*#__PURE__*/React.createElement(
|
152
|
-
|
151
|
+
return /*#__PURE__*/React.createElement(DatagridAiLabel.DatagridAILabel, {
|
152
|
+
aiLabel: aiLabel
|
153
153
|
});
|
154
154
|
};
|
155
155
|
var foundAIRow = rows.some(function (r) {
|
156
|
-
var _r$original;
|
157
|
-
return /*#__PURE__*/React.isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.slug);
|
156
|
+
var _r$original, _r$original2;
|
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);
|
@@ -199,15 +199,18 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
199
199
|
});
|
200
200
|
var headerStyle = headerProps === null || headerProps === void 0 ? void 0 : headerProps.style;
|
201
201
|
var lastVisibleIndex = withActionsColumn ? 2 : 1;
|
202
|
-
var
|
202
|
+
var isLastVisibleColumn = index === visibleColumns.length - lastVisibleIndex;
|
203
203
|
if (headerStyle) {
|
204
|
-
headerStyle
|
204
|
+
Object.assign(headerStyle, {
|
205
|
+
flex: isLastVisibleColumn ? '1 1 0' : '0 0 auto',
|
206
|
+
overflow: isLastVisibleColumn ? 'hidden' : headerStyle.overflow
|
207
|
+
});
|
205
208
|
}
|
206
209
|
return /*#__PURE__*/React.createElement(react.TableHeader, _rollupPluginBabelHelpers.extends({}, headerProps, {
|
207
|
-
className: cx(header === null || header === void 0 ? void 0 : header.className, _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)), headerProps.className),
|
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),
|
208
211
|
key: header.id,
|
209
212
|
"aria-hidden": header.id === 'spacer' && 'true'
|
210
|
-
}, getAccessibilityProps(header)), header.render('Header'),
|
213
|
+
}, getAccessibilityProps(header)), header.render('Header'), renderAILabel(header.aiLabel || header.slug), resizerProps && !header.isAction && /*#__PURE__*/React.createElement(ResizeHeader, {
|
211
214
|
resizerProps: resizerProps,
|
212
215
|
header: header,
|
213
216
|
handleOnMouseDownResize: handleOnMouseDownResize,
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import { DataGridState } from '../types';
|
8
|
-
declare const DatagridRefBody: (datagridState: DataGridState) =>
|
9
|
+
declare const DatagridRefBody: (datagridState: DataGridState) => React.JSX.Element;
|
9
10
|
export default DatagridRefBody;
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import { DataGridState } from '../types';
|
8
|
-
declare const DatagridRow: (datagridState: DataGridState) =>
|
9
|
+
declare const DatagridRow: (datagridState: DataGridState) => React.JSX.Element;
|
9
10
|
export default DatagridRow;
|
@@ -16,7 +16,7 @@ var layout = require('@carbon/layout');
|
|
16
16
|
var commonColumnIds = require('../common-column-ids.js');
|
17
17
|
var cx = require('classnames');
|
18
18
|
var settings = require('../../../settings.js');
|
19
|
-
var
|
19
|
+
var DatagridAiLabel = require('./addons/AiLabel/DatagridAiLabel.js');
|
20
20
|
|
21
21
|
var _SkeletonText;
|
22
22
|
var _excluded = ["className"],
|
@@ -32,7 +32,7 @@ var rowHeights = {
|
|
32
32
|
|
33
33
|
// eslint-disable-next-line react/prop-types
|
34
34
|
var DatagridRow = function DatagridRow(datagridState) {
|
35
|
-
var _row$original, _row$original2, _row$original3;
|
35
|
+
var _row$original, _row$original2, _row$original3, _row$original4, _row$original5, _row$original6;
|
36
36
|
var row = datagridState.row,
|
37
37
|
rows = datagridState.rows,
|
38
38
|
rowSize = datagridState.rowSize,
|
@@ -119,10 +119,10 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
119
119
|
className = _row$getRowProps.className,
|
120
120
|
rowProps = _rollupPluginBabelHelpers.objectWithoutProperties(_row$getRowProps, _excluded);
|
121
121
|
var foundAIRow = rows.some(function (r) {
|
122
|
-
var _r$original;
|
123
|
-
return /*#__PURE__*/React.isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.slug);
|
122
|
+
var _r$original, _r$original2;
|
123
|
+
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);
|
124
124
|
});
|
125
|
-
var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(blockClass, "__carbon-row-expandable--async"), getAsyncSubRows && row.depth > 0), "".concat(settings.carbon.prefix, "--data-table--selected"), row.isSelected), "".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)));
|
125
|
+
var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(blockClass, "__carbon-row-expandable--async"), getAsyncSubRows && row.depth > 0), "".concat(settings.carbon.prefix, "--data-table--selected"), row.isSelected), "".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)));
|
126
126
|
var withActionsColumn = headers ? !!headers.filter(function (header) {
|
127
127
|
return header.isAction;
|
128
128
|
}).length : false;
|
@@ -137,14 +137,18 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
137
137
|
onFocus: hoverHandler,
|
138
138
|
onBlur: focusRemover,
|
139
139
|
onKeyUp: handleOnKeyUp
|
140
|
-
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !== void 0 && (_row$
|
140
|
+
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !== void 0 && (_row$original3 = row.original) !== null && _row$original3 !== void 0 && _row$original3.aiLabel ? /*#__PURE__*/React.createElement("td", {
|
141
|
+
className: cx("".concat(blockClass, "__table-row-ai-enabled"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__ai-label--expanded"), row.isExpanded))
|
142
|
+
}, /*#__PURE__*/React.createElement(DatagridAiLabel.DatagridAILabel, {
|
143
|
+
aiLabel: row === null || row === void 0 || (_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.aiLabel
|
144
|
+
})) : row !== null && row !== void 0 && (_row$original5 = row.original) !== null && _row$original5 !== void 0 && _row$original5.slug ? /*#__PURE__*/React.createElement("td", {
|
141
145
|
className: cx("".concat(blockClass, "__table-row-ai-enabled"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__slug--expanded"), row.isExpanded))
|
142
|
-
}, /*#__PURE__*/React.createElement(
|
143
|
-
|
146
|
+
}, /*#__PURE__*/React.createElement(DatagridAiLabel.DatagridAILabel, {
|
147
|
+
aiLabel: row === null || row === void 0 || (_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.slug
|
144
148
|
})) : /*#__PURE__*/React.createElement("td", {
|
145
149
|
className: "".concat(blockClass, "__table-row-ai-spacer")
|
146
150
|
}) : null, row.cells.map(function (cell, index) {
|
147
|
-
var _cell$column, _cell$column2, _associatedHeader
|
151
|
+
var _cell$column, _cell$column2, _associatedHeader$, _associatedHeader$2;
|
148
152
|
var cellProps = cell.getCellProps({
|
149
153
|
role: undefined
|
150
154
|
});
|
@@ -170,7 +174,7 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
170
174
|
style.flex = lastVisibleFlexStyle;
|
171
175
|
}
|
172
176
|
return /*#__PURE__*/React.createElement(react.TableCell, _rollupPluginBabelHelpers.extends({
|
173
|
-
className: cx("".concat(blockClass, "__cell"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), (row.canExpand || getAsyncSubRows) && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/React.isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)), columnClassname)
|
177
|
+
className: cx("".concat(blockClass, "__cell"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), (row.canExpand || getAsyncSubRows) && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/React.isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)), "".concat(blockClass, "__ai-label--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/React.isValidElement((_associatedHeader$2 = associatedHeader[0]) === null || _associatedHeader$2 === void 0 ? void 0 : _associatedHeader$2.aiLabel)), columnClassname)
|
174
178
|
}, restProps, {
|
175
179
|
style: style,
|
176
180
|
key: cell.column.id
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import { DataGridState } from '../types';
|
8
|
-
declare const SelectAll: (datagridState: DataGridState) =>
|
9
|
+
declare const SelectAll: (datagridState: DataGridState) => React.JSX.Element;
|
9
10
|
export { SelectAll };
|
@@ -4,10 +4,11 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { DataGridState } from '../types';
|
9
10
|
declare const SelectAllWithToggle: {
|
10
|
-
({ tableId, isFetching, isAllRowsSelected, selectAllToggle, getToggleAllPageRowsSelectedProps, getToggleAllRowsSelectedProps, allPageRowsLabel, allRowsLabel, columns, withStickyColumn, }: DataGridState):
|
11
|
+
({ tableId, isFetching, isAllRowsSelected, selectAllToggle, getToggleAllPageRowsSelectedProps, getToggleAllRowsSelectedProps, allPageRowsLabel, allRowsLabel, columns, withStickyColumn, }: DataGridState): React.JSX.Element;
|
11
12
|
propTypes: {
|
12
13
|
allPageRowsLabel: PropTypes.Requireable<string>;
|
13
14
|
allRowsLabel: PropTypes.Requireable<string>;
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import { DataGridState } from '../types';
|
8
|
-
declare const DatagridSimpleBody: (datagridState: DataGridState) =>
|
9
|
+
declare const DatagridSimpleBody: (datagridState: DataGridState) => React.JSX.Element;
|
9
10
|
export default DatagridSimpleBody;
|
@@ -4,13 +4,14 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { DataGridState } from '../types';
|
9
10
|
interface DatagridToolbarProps {
|
10
11
|
ariaToolbarLabel?: string;
|
11
12
|
}
|
12
13
|
declare const DatagridToolbar: {
|
13
|
-
({ ariaToolbarLabel, ...datagridState }: DatagridToolbarProps & DataGridState):
|
14
|
+
({ ariaToolbarLabel, ...datagridState }: DatagridToolbarProps & DataGridState): React.JSX.Element | null;
|
14
15
|
propTypes: {
|
15
16
|
ariaToolbarLabel: PropTypes.Requireable<string>;
|
16
17
|
};
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import { DataGridState } from '../types';
|
8
|
-
declare const DatagridVirtualBody: (datagridState: DataGridState) =>
|
9
|
+
declare const DatagridVirtualBody: (datagridState: DataGridState) => React.JSX.Element;
|
9
10
|
export default DatagridVirtualBody;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
7
|
+
import React, { PropsWithChildren, ReactNode } from 'react';
|
8
8
|
import PropTypes from 'prop-types';
|
9
9
|
interface DraggableElementProps extends PropsWithChildren {
|
10
10
|
ariaLabel: string;
|
@@ -16,7 +16,7 @@ interface DraggableElementProps extends PropsWithChildren {
|
|
16
16
|
selected?: boolean;
|
17
17
|
}
|
18
18
|
declare const DraggableElement: {
|
19
|
-
({ id, children, classList, disabled, ariaLabel, isSticky, selected, }: DraggableElementProps):
|
19
|
+
({ id, children, classList, disabled, ariaLabel, isSticky, selected, }: DraggableElementProps): React.JSX.Element;
|
20
20
|
propTypes: {
|
21
21
|
ariaLabel: PropTypes.Validator<string>;
|
22
22
|
children: PropTypes.Validator<PropTypes.ReactElementLike>;
|
@@ -5,8 +5,8 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
import React, { ReactNode } from 'react';
|
8
|
-
interface
|
9
|
-
|
8
|
+
interface DatagridAILabelProps {
|
9
|
+
aiLabel?: ReactNode;
|
10
10
|
}
|
11
|
-
export declare const
|
11
|
+
export declare const DatagridAILabel: React.ForwardRefExoticComponent<DatagridAILabelProps & React.RefAttributes<HTMLDivElement>>;
|
12
12
|
export {};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
'use strict';
|
9
|
+
|
10
|
+
var React = require('react');
|
11
|
+
var index = require('../../../../../_virtual/index.js');
|
12
|
+
|
13
|
+
var DatagridAILabel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
14
|
+
var aiLabel = _ref.aiLabel;
|
15
|
+
if (aiLabel && /*#__PURE__*/React.isValidElement(aiLabel)) {
|
16
|
+
var normalizedAILabel = /*#__PURE__*/React.cloneElement(aiLabel, {
|
17
|
+
size: 'mini',
|
18
|
+
ref: ref
|
19
|
+
});
|
20
|
+
return normalizedAILabel;
|
21
|
+
}
|
22
|
+
return null;
|
23
|
+
});
|
24
|
+
DatagridAILabel.propTypes = {
|
25
|
+
/**
|
26
|
+
* Specify the AI AILabel to be displayed
|
27
|
+
*/
|
28
|
+
aiLabel: index.default.node
|
29
|
+
};
|
30
|
+
|
31
|
+
exports.DatagridAILabel = DatagridAILabel;
|