@carbon/ibm-products 2.52.0 → 2.53.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
@@ -27,72 +27,76 @@ var excludeKeyPress = function excludeKeyPress(evt) {
|
|
27
27
|
return !['Escape'].includes(evt.key) && (evt.target.closest(".".concat(blockClass, "__item-date")) || evt.target.closest(".".concat(blockClass, "__item-time")));
|
28
28
|
};
|
29
29
|
var handleKeyPressForPopover = function handleKeyPressForPopover(evt, parentContainer, conditionBuilderRef) {
|
30
|
-
var _parentContainer$quer;
|
30
|
+
var _parentContainer$quer, _parentContainer$quer2, _evt$target$closest$q, _evt$target$closest;
|
31
31
|
var key = evt.key;
|
32
32
|
var isHoldingShiftKey = checkForHoldingKey(evt, 'shiftKey');
|
33
33
|
var isMultiSelect = (_parentContainer$quer = parentContainer.querySelector('ul')) === null || _parentContainer$quer === void 0 ? void 0 : _parentContainer$quer.dataset.multiSelect;
|
34
|
+
var isOptionInput = (_parentContainer$quer2 = parentContainer.querySelectorAll("[role=\"option\"]")) === null || _parentContainer$quer2 === void 0 ? void 0 : _parentContainer$quer2.length;
|
34
35
|
var allItems = [];
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
traverseClockVise(eachElem, index, allElements, null, null, conditionBuilderRef);
|
52
|
-
});
|
53
|
-
break;
|
54
|
-
case 'Tab':
|
55
|
-
allItems = [].concat(_toConsumableArray(Array.from(parentContainer.querySelectorAll(".".concat(blockClass, "__selectAll-button,[role=\"searchbox\"]")))), [parentContainer.querySelector("[role=\"option\"]")]);
|
56
|
-
allItems.forEach(function (eachElem, index, allElements) {
|
57
|
-
if (isHoldingShiftKey) {
|
58
|
-
traverseReverse(eachElem, index, allElements, true, true, conditionBuilderRef);
|
59
|
-
} else {
|
60
|
-
traverseClockVise(eachElem, index, allElements, true, true, conditionBuilderRef);
|
61
|
-
}
|
62
|
-
});
|
63
|
-
evt.preventDefault();
|
64
|
-
break;
|
65
|
-
case ' ':
|
66
|
-
if (isMultiSelect === 'true') {
|
67
|
-
if (document.activeElement.type !== 'button') {
|
68
|
-
var _document$activeEleme;
|
69
|
-
//for button , enter key is click which already handled by framework, for other elements trigger click
|
70
|
-
(_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 || _document$activeEleme.click();
|
36
|
+
if (key === 'Escape') {
|
37
|
+
//focus the corresponding field in which the popover is triggered from
|
38
|
+
focusThisField(evt, conditionBuilderRef);
|
39
|
+
evt.preventDefault();
|
40
|
+
}
|
41
|
+
if (isOptionInput) {
|
42
|
+
switch (key) {
|
43
|
+
case 'ArrowUp':
|
44
|
+
evt.preventDefault();
|
45
|
+
//traverse through the popover options, search box, selectAll button
|
46
|
+
parentContainer.querySelectorAll("[role=\"option\"]").forEach(function (eachElem, index, allElements) {
|
47
|
+
traverseReverse(eachElem, index, allElements, null, null, conditionBuilderRef);
|
48
|
+
});
|
49
|
+
//scroll to top when we reach a the top of the list to make search box visible
|
50
|
+
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) {
|
51
|
+
parentContainer.querySelector(".".concat(blockClass, "__popover-content-wrapper")).scrollTop = 0;
|
71
52
|
}
|
53
|
+
break;
|
54
|
+
case 'ArrowDown':
|
72
55
|
evt.preventDefault();
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
56
|
+
//traverse through the popover options, search box, selectAll button
|
57
|
+
parentContainer.querySelectorAll("[role=\"option\"]").forEach(function (eachElem, index, allElements) {
|
58
|
+
traverseClockVise(eachElem, index, allElements, null, null, conditionBuilderRef);
|
59
|
+
});
|
60
|
+
break;
|
61
|
+
case 'Tab':
|
62
|
+
allItems = [].concat(_toConsumableArray(Array.from(parentContainer.querySelectorAll(".".concat(blockClass, "__selectAll-button,[role=\"searchbox\"]")))), [parentContainer.querySelector("[role=\"option\"]")]);
|
63
|
+
allItems.forEach(function (eachElem, index, allElements) {
|
64
|
+
if (isHoldingShiftKey) {
|
65
|
+
traverseReverse(eachElem, index, allElements, true, true, conditionBuilderRef);
|
66
|
+
} else {
|
67
|
+
traverseClockVise(eachElem, index, allElements, true, true, conditionBuilderRef);
|
68
|
+
}
|
69
|
+
});
|
70
|
+
evt.preventDefault();
|
71
|
+
break;
|
72
|
+
case ' ':
|
73
|
+
if (isMultiSelect === 'true') {
|
74
|
+
if (document.activeElement.type !== 'button') {
|
75
|
+
var _document$activeEleme;
|
76
|
+
//for button , enter key is click which already handled by framework, for other elements trigger click
|
77
|
+
(_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 || _document$activeEleme.click();
|
78
|
+
}
|
80
79
|
evt.preventDefault();
|
81
|
-
(_document$activeEleme2 = document.activeElement) === null || _document$activeEleme2 === void 0 || _document$activeEleme2.click();
|
82
80
|
}
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
81
|
+
break;
|
82
|
+
case 'Enter':
|
83
|
+
if (isMultiSelect === 'true') {
|
84
|
+
if (document.activeElement.type !== 'button') {
|
85
|
+
var _document$activeEleme2;
|
86
|
+
//for button , enter key is click which already handled by framework, for other elements trigger click
|
87
|
+
evt.preventDefault();
|
88
|
+
(_document$activeEleme2 = document.activeElement) === null || _document$activeEleme2 === void 0 || _document$activeEleme2.click();
|
89
|
+
}
|
90
|
+
} else {
|
91
|
+
if (document.activeElement.type !== 'button') {
|
92
|
+
var _document$activeEleme3;
|
93
|
+
//for button , enter key is click which already handled by framework, else trigger click
|
94
|
+
focusThisField(evt, conditionBuilderRef);
|
95
|
+
(_document$activeEleme3 = document.activeElement) === null || _document$activeEleme3 === void 0 || _document$activeEleme3.click();
|
96
|
+
}
|
89
97
|
}
|
90
|
-
|
91
|
-
|
92
|
-
case 'Escape':
|
93
|
-
//focus the corresponding field in which the popover is triggered\
|
94
|
-
focusThisField(evt, conditionBuilderRef);
|
95
|
-
break;
|
98
|
+
break;
|
99
|
+
}
|
96
100
|
}
|
97
101
|
};
|
98
102
|
var handleKeyPressForMainContent = function handleKeyPressForMainContent(evt, conditionBuilderRef, variant) {
|
@@ -101,8 +105,8 @@ var handleKeyPressForMainContent = function handleKeyPressForMainContent(evt, co
|
|
101
105
|
case 'ArrowRight':
|
102
106
|
evt.preventDefault();
|
103
107
|
if (variant == HIERARCHICAL_VARIANT) {
|
104
|
-
var _evt$target$
|
105
|
-
var allCellsInRow = Array.from((_evt$target$
|
108
|
+
var _evt$target$closest2;
|
109
|
+
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'));
|
106
110
|
if (allCellsInRow.length === 1) {
|
107
111
|
evt.target = evt.target.closest('[role="row"]');
|
108
112
|
handleRowNavigationHierarchical(evt, conditionBuilderRef, variant);
|
@@ -129,10 +133,10 @@ var handleKeyPressForMainContent = function handleKeyPressForMainContent(evt, co
|
|
129
133
|
evt.preventDefault();
|
130
134
|
if (variant == HIERARCHICAL_VARIANT) {
|
131
135
|
if (evt.target.getAttribute('role') !== 'row') {
|
132
|
-
var _evt$target$
|
136
|
+
var _evt$target$closest3;
|
133
137
|
//when any cell is focussed, arrow left will select the previous cell or current row
|
134
138
|
|
135
|
-
var _allCellsInRow = Array.from((_evt$target$
|
139
|
+
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'));
|
136
140
|
var _currentItemIndex = _allCellsInRow.indexOf(evt.target);
|
137
141
|
if (_currentItemIndex > 0) {
|
138
142
|
focusThisItem(_allCellsInRow[_currentItemIndex - 1], conditionBuilderRef);
|
@@ -22,8 +22,6 @@ var focusThisField = function focusThisField(evt, conditionBuilderRef) {
|
|
22
22
|
};
|
23
23
|
var focusThisItem = function focusThisItem(currentElement, conditionBuilderRef) {
|
24
24
|
setTimeout(function () {
|
25
|
-
//document.activeElement.setAttribute('tabindex', '-1');
|
26
|
-
// currentElement.setAttribute('tabindex', '0');
|
27
25
|
manageTabIndexAndFocus(currentElement, conditionBuilderRef);
|
28
26
|
}, 0);
|
29
27
|
};
|
@@ -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
|
/**
|
@@ -84,7 +84,7 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
|
|
84
84
|
totalVisibleColumns = _ref.totalVisibleColumns,
|
85
85
|
rest = _objectWithoutProperties(_ref, _excluded);
|
86
86
|
var multiKeyTrackingRef = useRef(null);
|
87
|
-
var localRef = useRef();
|
87
|
+
var localRef = useRef(undefined);
|
88
88
|
var spreadsheetRef = ref || localRef;
|
89
89
|
var focusedElement = useActiveElement();
|
90
90
|
var _useState = useState(columns),
|
@@ -151,13 +151,13 @@ var DataSpreadsheet = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
|
|
151
151
|
selectedHeaderReorderActive: selectedHeaderReorderActive
|
152
152
|
}) || {};
|
153
153
|
var cellSizeValue = getCellSize(cellSize);
|
154
|
-
var cellEditorRef = useRef();
|
154
|
+
var cellEditorRef = useRef(undefined);
|
155
155
|
var _useState29 = useState(),
|
156
156
|
_useState30 = _slicedToArray(_useState29, 2),
|
157
157
|
activeCellContent = _useState30[0],
|
158
158
|
setActiveCellContent = _useState30[1];
|
159
|
-
var activeCellRef = useRef();
|
160
|
-
var cellEditorRulerRef = useRef();
|
159
|
+
var activeCellRef = useRef(undefined);
|
160
|
+
var cellEditorRulerRef = useRef(undefined);
|
161
161
|
var hasCustomRowHeader = typeof renderRowHeader === 'function';
|
162
162
|
var maxNumRowsCount = data.length.toString().length;
|
163
163
|
var defaultColumn = useMemo(function () {
|
@@ -65,7 +65,7 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
65
65
|
_useState2 = _slicedToArray(_useState, 2),
|
66
66
|
validStartingPoint = _useState2[0],
|
67
67
|
setValidStartingPoint = _useState2[1];
|
68
|
-
var contentScrollRef = useRef();
|
68
|
+
var contentScrollRef = useRef(undefined);
|
69
69
|
var previousState = usePreviousValue({
|
70
70
|
selectionAreaData: selectionAreaData,
|
71
71
|
clickAndHoldActive: clickAndHoldActive,
|
@@ -377,7 +377,7 @@ var DataSpreadsheetBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
377
377
|
}));
|
378
378
|
}
|
379
379
|
}, [prepareRow, renderRowHeader, renderRowHeaderDirection, rows, hasCustomRowHeader, activeCellCoordinates === null || activeCellCoordinates === void 0 ? void 0 : activeCellCoordinates.row, selectionAreas, handleRowHeaderClickEvent, handleBodyCellClickEvent, handleBodyCellHoverEvent, defaultColumn, columns]);
|
380
|
-
var spreadsheetBodyRef = useRef();
|
380
|
+
var spreadsheetBodyRef = useRef(undefined);
|
381
381
|
return /*#__PURE__*/React__default.createElement("div", _extends({
|
382
382
|
ref: spreadsheetBodyRef,
|
383
383
|
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;
|
@@ -9,10 +9,14 @@ import { extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers
|
|
9
9
|
import React__default from 'react';
|
10
10
|
import { pkg } from '../../../settings.js';
|
11
11
|
import { TableBody, TableRow, TableCell } from '@carbon/react';
|
12
|
+
import { EmptyState } from '../../EmptyStates/EmptyState.js';
|
13
|
+
import '../../EmptyStates/EmptyStateV2.js';
|
12
14
|
import { ErrorEmptyState } from '../../EmptyStates/ErrorEmptyState/ErrorEmptyState.js';
|
13
15
|
import { NoDataEmptyState } from '../../EmptyStates/NoDataEmptyState/NoDataEmptyState.js';
|
16
|
+
import '../../EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js';
|
14
17
|
import { NotFoundEmptyState } from '../../EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js';
|
15
|
-
import
|
18
|
+
import '../../EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js';
|
19
|
+
import '../../EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js';
|
16
20
|
|
17
21
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
18
22
|
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;
|
@@ -16,7 +16,7 @@ var blockClass = "".concat(pkg.prefix, "--datagrid");
|
|
16
16
|
// eslint-disable-next-line react/prop-types
|
17
17
|
var DatagridExpandedRow = function DatagridExpandedRow(ExpandedRowContentComponent) {
|
18
18
|
return function (datagridState) {
|
19
|
-
var _row$original;
|
19
|
+
var _row$original, _row$original2;
|
20
20
|
var row = datagridState.row;
|
21
21
|
var expandedContentHeight = row.expandedContentHeight;
|
22
22
|
var toggleParentHoverClass = function toggleParentHoverClass(event) {
|
@@ -36,7 +36,7 @@ var DatagridExpandedRow = function DatagridExpandedRow(ExpandedRowContentCompone
|
|
36
36
|
var key = datagridState.key,
|
37
37
|
_state = _objectWithoutProperties(datagridState, _excluded);
|
38
38
|
return /*#__PURE__*/React__default.createElement("tr", {
|
39
|
-
className: cx("".concat(blockClass, "__expanded-row"), _defineProperty({}, "".concat(blockClass, "__slug--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug))),
|
39
|
+
className: cx("".concat(blockClass, "__expanded-row"), _defineProperty(_defineProperty({}, "".concat(blockClass, "__slug--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug)), "".concat(blockClass, "__ai-label--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.aiLabel))),
|
40
40
|
onMouseEnter: function onMouseEnter(event) {
|
41
41
|
return toggleParentHoverClass(event, 'enter');
|
42
42
|
},
|
@@ -47,8 +47,10 @@ var DatagridExpandedRow = function DatagridExpandedRow(ExpandedRowContentCompone
|
|
47
47
|
className: "".concat(blockClass, "__expanded-row-cell-wrapper")
|
48
48
|
}, /*#__PURE__*/React__default.createElement("div", {
|
49
49
|
className: "".concat(blockClass, "__expanded-row-content"),
|
50
|
-
|
51
|
-
|
50
|
+
ref: function ref(el) {
|
51
|
+
if (el && el.style && expandedContentHeight) {
|
52
|
+
el.style.height = "".concat(expandedContentHeight, "px");
|
53
|
+
}
|
52
54
|
}
|
53
55
|
}, /*#__PURE__*/React__default.createElement(ExpandedRowContentComponent, _extends({
|
54
56
|
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;
|
@@ -14,7 +14,7 @@ import { selectionColumnId } from '../common-column-ids.js';
|
|
14
14
|
import { pkg } from '../../../settings.js';
|
15
15
|
import { handleColumnResizeEndEvent, handleColumnResizingEvent } from './addons/stateReducer.js';
|
16
16
|
import { getNodeTextContent } from '../../../global/js/utils/getNodeTextContent.js';
|
17
|
-
import {
|
17
|
+
import { DatagridAILabel } from './addons/AiLabel/DatagridAiLabel.js';
|
18
18
|
import { useInitialColumnSort } from '../useInitialColumnSort.js';
|
19
19
|
|
20
20
|
var _th;
|
@@ -140,17 +140,17 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
140
140
|
}),
|
141
141
|
headerGroupClassName = _headerGroup$getHeade.className,
|
142
142
|
headerGroupProps = _objectWithoutProperties(_headerGroup$getHeade, _excluded);
|
143
|
-
var
|
143
|
+
var renderAILabel = function renderAILabel(aiLabel) {
|
144
144
|
if (isTableSortable) {
|
145
145
|
return;
|
146
146
|
}
|
147
|
-
return /*#__PURE__*/React__default.createElement(
|
148
|
-
|
147
|
+
return /*#__PURE__*/React__default.createElement(DatagridAILabel, {
|
148
|
+
aiLabel: aiLabel
|
149
149
|
});
|
150
150
|
};
|
151
151
|
var foundAIRow = rows.some(function (r) {
|
152
|
-
var _r$original;
|
153
|
-
return /*#__PURE__*/isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.slug);
|
152
|
+
var _r$original, _r$original2;
|
153
|
+
return /*#__PURE__*/isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.aiLabel) || /*#__PURE__*/isValidElement(r === null || r === void 0 || (_r$original2 = r.original) === null || _r$original2 === void 0 ? void 0 : _r$original2.slug);
|
154
154
|
});
|
155
155
|
var key = headerGroupProps.key,
|
156
156
|
rowProps = _objectWithoutProperties(headerGroupProps, _excluded2);
|
@@ -195,15 +195,18 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
195
195
|
});
|
196
196
|
var headerStyle = headerProps === null || headerProps === void 0 ? void 0 : headerProps.style;
|
197
197
|
var lastVisibleIndex = withActionsColumn ? 2 : 1;
|
198
|
-
var
|
198
|
+
var isLastVisibleColumn = index === visibleColumns.length - lastVisibleIndex;
|
199
199
|
if (headerStyle) {
|
200
|
-
headerStyle
|
200
|
+
Object.assign(headerStyle, {
|
201
|
+
flex: isLastVisibleColumn ? '1 1 0' : '0 0 auto',
|
202
|
+
overflow: isLastVisibleColumn ? 'hidden' : headerStyle.overflow
|
203
|
+
});
|
201
204
|
}
|
202
205
|
return /*#__PURE__*/React__default.createElement(TableHeader, _extends({}, headerProps, {
|
203
|
-
className: cx(header === null || header === void 0 ? void 0 : header.className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_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__default.isValidElement(header === null || header === void 0 ? void 0 : header.slug)), headerProps.className),
|
206
|
+
className: cx(header === null || header === void 0 ? void 0 : header.className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_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__default.isValidElement(header === null || header === void 0 ? void 0 : header.slug)), "".concat(blockClass, "__with-ai-label"), header.aiLabel && /*#__PURE__*/React__default.isValidElement(header === null || header === void 0 ? void 0 : header.aiLabel)), headerProps.className),
|
204
207
|
key: header.id,
|
205
208
|
"aria-hidden": header.id === 'spacer' && 'true'
|
206
|
-
}, getAccessibilityProps(header)), header.render('Header'),
|
209
|
+
}, getAccessibilityProps(header)), header.render('Header'), renderAILabel(header.aiLabel || header.slug), resizerProps && !header.isAction && /*#__PURE__*/React__default.createElement(ResizeHeader, {
|
207
210
|
resizerProps: resizerProps,
|
208
211
|
header: header,
|
209
212
|
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;
|
@@ -12,7 +12,7 @@ import { px } from '@carbon/layout';
|
|
12
12
|
import { selectionColumnId } from '../common-column-ids.js';
|
13
13
|
import cx from 'classnames';
|
14
14
|
import { pkg, carbon } from '../../../settings.js';
|
15
|
-
import {
|
15
|
+
import { DatagridAILabel } from './addons/AiLabel/DatagridAiLabel.js';
|
16
16
|
|
17
17
|
var _SkeletonText;
|
18
18
|
var _excluded = ["className"],
|
@@ -28,7 +28,7 @@ var rowHeights = {
|
|
28
28
|
|
29
29
|
// eslint-disable-next-line react/prop-types
|
30
30
|
var DatagridRow = function DatagridRow(datagridState) {
|
31
|
-
var _row$original, _row$original2, _row$original3;
|
31
|
+
var _row$original, _row$original2, _row$original3, _row$original4, _row$original5, _row$original6;
|
32
32
|
var row = datagridState.row,
|
33
33
|
rows = datagridState.rows,
|
34
34
|
rowSize = datagridState.rowSize,
|
@@ -115,10 +115,10 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
115
115
|
className = _row$getRowProps.className,
|
116
116
|
rowProps = _objectWithoutProperties(_row$getRowProps, _excluded);
|
117
117
|
var foundAIRow = rows.some(function (r) {
|
118
|
-
var _r$original;
|
119
|
-
return /*#__PURE__*/isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.slug);
|
118
|
+
var _r$original, _r$original2;
|
119
|
+
return /*#__PURE__*/isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.aiLabel) || /*#__PURE__*/isValidElement(r === null || r === void 0 || (_r$original2 = r.original) === null || _r$original2 === void 0 ? void 0 : _r$original2.slug);
|
120
120
|
});
|
121
|
-
var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(blockClass, "__carbon-row-expandable--async"), getAsyncSubRows && row.depth > 0), "".concat(carbon.prefix, "--data-table--selected"), row.isSelected), "".concat(blockClass, "__slug--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug)));
|
121
|
+
var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(blockClass, "__carbon-row-expandable--async"), getAsyncSubRows && row.depth > 0), "".concat(carbon.prefix, "--data-table--selected"), row.isSelected), "".concat(blockClass, "__slug--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug)), "".concat(blockClass, "__ai-label--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.aiLabel)));
|
122
122
|
var withActionsColumn = headers ? !!headers.filter(function (header) {
|
123
123
|
return header.isAction;
|
124
124
|
}).length : false;
|
@@ -133,14 +133,18 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
133
133
|
onFocus: hoverHandler,
|
134
134
|
onBlur: focusRemover,
|
135
135
|
onKeyUp: handleOnKeyUp
|
136
|
-
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !== void 0 && (_row$
|
136
|
+
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !== void 0 && (_row$original3 = row.original) !== null && _row$original3 !== void 0 && _row$original3.aiLabel ? /*#__PURE__*/React__default.createElement("td", {
|
137
|
+
className: cx("".concat(blockClass, "__table-row-ai-enabled"), _defineProperty({}, "".concat(blockClass, "__ai-label--expanded"), row.isExpanded))
|
138
|
+
}, /*#__PURE__*/React__default.createElement(DatagridAILabel, {
|
139
|
+
aiLabel: row === null || row === void 0 || (_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.aiLabel
|
140
|
+
})) : row !== null && row !== void 0 && (_row$original5 = row.original) !== null && _row$original5 !== void 0 && _row$original5.slug ? /*#__PURE__*/React__default.createElement("td", {
|
137
141
|
className: cx("".concat(blockClass, "__table-row-ai-enabled"), _defineProperty({}, "".concat(blockClass, "__slug--expanded"), row.isExpanded))
|
138
|
-
}, /*#__PURE__*/React__default.createElement(
|
139
|
-
|
142
|
+
}, /*#__PURE__*/React__default.createElement(DatagridAILabel, {
|
143
|
+
aiLabel: row === null || row === void 0 || (_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.slug
|
140
144
|
})) : /*#__PURE__*/React__default.createElement("td", {
|
141
145
|
className: "".concat(blockClass, "__table-row-ai-spacer")
|
142
146
|
}) : null, row.cells.map(function (cell, index) {
|
143
|
-
var _cell$column, _cell$column2, _associatedHeader
|
147
|
+
var _cell$column, _cell$column2, _associatedHeader$, _associatedHeader$2;
|
144
148
|
var cellProps = cell.getCellProps({
|
145
149
|
role: undefined
|
146
150
|
});
|
@@ -166,7 +170,7 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
166
170
|
style.flex = lastVisibleFlexStyle;
|
167
171
|
}
|
168
172
|
return /*#__PURE__*/React__default.createElement(TableCell, _extends({
|
169
|
-
className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), (row.canExpand || getAsyncSubRows) && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)), columnClassname)
|
173
|
+
className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), (row.canExpand || getAsyncSubRows) && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)), "".concat(blockClass, "__ai-label--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$2 = associatedHeader[0]) === null || _associatedHeader$2 === void 0 ? void 0 : _associatedHeader$2.aiLabel)), columnClassname)
|
170
174
|
}, restProps, {
|
171
175
|
style: style,
|
172
176
|
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,29 @@
|
|
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
|
+
import React__default, { forwardRef, isValidElement } from 'react';
|
9
|
+
import PropTypes from '../../../../../_virtual/index.js';
|
10
|
+
|
11
|
+
var DatagridAILabel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
12
|
+
var aiLabel = _ref.aiLabel;
|
13
|
+
if (aiLabel && /*#__PURE__*/isValidElement(aiLabel)) {
|
14
|
+
var normalizedAILabel = /*#__PURE__*/React__default.cloneElement(aiLabel, {
|
15
|
+
size: 'mini',
|
16
|
+
ref: ref
|
17
|
+
});
|
18
|
+
return normalizedAILabel;
|
19
|
+
}
|
20
|
+
return null;
|
21
|
+
});
|
22
|
+
DatagridAILabel.propTypes = {
|
23
|
+
/**
|
24
|
+
* Specify the AI AILabel to be displayed
|
25
|
+
*/
|
26
|
+
aiLabel: PropTypes.node
|
27
|
+
};
|
28
|
+
|
29
|
+
export { DatagridAILabel };
|