@carbon/ibm-products 2.50.0-rc.1 → 2.51.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 +1 -1
- package/css/index-full-carbon.css +56 -29
- 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 +3 -10
- 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 +3 -10
- 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 +34 -28
- 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/ActionBar/ActionBarOverflowItems.js +5 -0
- package/es/components/AddSelect/AddSelectBody.js +1 -1
- package/es/components/BigNumbers/BigNumbers.js +1 -1
- package/es/components/Coachmark/utils/enums.js +1 -0
- package/es/components/ConditionBuilder/ConditionBuilder.js +26 -20
- package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +6 -2
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +11 -8
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +44 -24
- package/es/components/CreateFullPage/CreateFullPage.d.ts +4 -2
- package/es/components/CreateFullPage/CreateFullPage.js +10 -3
- package/es/components/CreateFullPage/CreateFullPageStep.d.ts +3 -1
- package/es/components/CreateFullPage/CreateFullPageStep.js +5 -2
- package/es/components/Datagrid/Datagrid/Datagrid.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +12 -1
- package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +3 -8
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +15 -13
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +17 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +13 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -12
- package/es/components/Datagrid/types/index.d.ts +4 -0
- package/es/components/Datagrid/useSelectRows.js +40 -19
- package/es/components/EditInPlace/EditInPlace.js +0 -3
- package/es/components/ExportModal/ExportModal.js +18 -5
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +5 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +14 -1
- package/es/components/OptionsTile/OptionsTile.d.ts +1 -1
- package/es/components/OptionsTile/OptionsTile.js +0 -1
- package/es/components/ProductiveCard/ProductiveCard.d.ts +4 -0
- package/es/components/ProductiveCard/ProductiveCard.js +4 -0
- package/es/components/ScrollGradient/ScrollGradient.js +1 -1
- package/es/components/SimpleHeader/SimpleHeader.d.ts +3 -1
- package/es/components/SimpleHeader/SimpleHeader.js +9 -2
- package/es/components/StringFormatter/StringFormatter.js +1 -1
- package/es/components/TagSet/TagSet.js +5 -0
- package/es/components/TagSet/TagSetOverflow.d.ts +4 -0
- package/es/components/TagSet/TagSetOverflow.js +13 -6
- package/es/components/Tearsheet/TearsheetShell.js +9 -2
- package/es/components/UserProfileImage/UserProfileImage.d.ts +1 -1
- package/es/components/UserProfileImage/UserProfileImage.js +1 -1
- package/es/global/js/utils/Wrap.d.ts +4 -0
- package/es/global/js/utils/Wrap.js +9 -3
- package/es/global/js/utils/devtools.js +1 -2
- package/es/node_modules/@carbon/icon-helpers/es/index.js +3 -3
- package/lib/_virtual/_commonjsHelpers.js +0 -2
- package/lib/_virtual/_rollupPluginBabelHelpers.js +2 -4
- package/lib/_virtual/index.js +0 -2
- package/lib/components/APIKeyModal/APIKeyDownloader.js +8 -14
- package/lib/components/APIKeyModal/APIKeyModal.js +70 -77
- package/lib/components/AboutModal/AboutModal.js +29 -36
- package/lib/components/ActionBar/ActionBar.js +26 -33
- package/lib/components/ActionBar/ActionBarItem.js +9 -16
- package/lib/components/ActionBar/ActionBarOverflowItems.js +23 -25
- package/lib/components/ActionSet/ActionSet.js +17 -24
- package/lib/components/AddSelect/AddSelect.js +62 -68
- package/lib/components/AddSelect/AddSelectBody.js +82 -89
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +6 -13
- package/lib/components/AddSelect/AddSelectColumn.js +29 -35
- package/lib/components/AddSelect/AddSelectFilter.js +30 -37
- package/lib/components/AddSelect/AddSelectFormControl.js +15 -21
- package/lib/components/AddSelect/AddSelectList.js +9 -16
- package/lib/components/AddSelect/AddSelectMetaPanel.js +16 -22
- package/lib/components/AddSelect/AddSelectRow.js +32 -39
- package/lib/components/AddSelect/AddSelectSidebar.js +29 -35
- package/lib/components/AddSelect/AddSelectSort.js +10 -16
- package/lib/components/AddSelect/add-select-utils.js +0 -2
- package/lib/components/AddSelect/hooks/useFocus.js +1 -1
- package/lib/components/AddSelect/hooks/useItemSort.js +0 -2
- package/lib/components/AddSelect/hooks/useParentSelect.js +1 -1
- package/lib/components/AddSelect/hooks/usePath.js +1 -1
- package/lib/components/BigNumbers/BigNumbers.js +39 -46
- package/lib/components/BigNumbers/constants.js +0 -2
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +35 -42
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +22 -29
- package/lib/components/Card/Card.js +73 -80
- package/lib/components/Card/CardFooter.js +28 -35
- package/lib/components/Card/CardHeader.js +37 -44
- package/lib/components/Carousel/Carousel.js +21 -28
- package/lib/components/Carousel/CarouselItem.js +5 -12
- package/lib/components/Cascade/Cascade.js +15 -22
- package/lib/components/Checklist/Checklist.js +50 -57
- package/lib/components/Checklist/Checklist.types.js +0 -2
- package/lib/components/Checklist/ChecklistChart.js +7 -15
- package/lib/components/Checklist/ChecklistIcon.js +7 -14
- package/lib/components/Coachmark/Coachmark.js +24 -31
- package/lib/components/Coachmark/CoachmarkDragbar.js +12 -19
- package/lib/components/Coachmark/CoachmarkHeader.js +9 -16
- package/lib/components/Coachmark/CoachmarkOverlay.js +14 -21
- package/lib/components/Coachmark/CoachmarkTagline.js +12 -19
- package/lib/components/Coachmark/utils/constants.js +0 -2
- package/lib/components/Coachmark/utils/context.js +0 -2
- package/lib/components/Coachmark/utils/enums.js +1 -2
- package/lib/components/Coachmark/utils/hooks.js +0 -2
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +10 -17
- package/lib/components/CoachmarkButton/CoachmarkButton.js +6 -13
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +13 -20
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +11 -18
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +25 -32
- package/lib/components/CoachmarkStack/CoachmarkStack.js +23 -30
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +29 -36
- package/lib/components/ComboButton/ComboButton.js +11 -18
- package/lib/components/ComboButton/ComboButtonItem/index.js +2 -8
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +34 -39
- package/lib/components/ConditionBuilder/ConditionBuilder.js +58 -59
- package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +6 -2
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +18 -23
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +15 -20
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +20 -27
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +8 -12
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +4 -8
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +11 -8
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +63 -47
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +25 -31
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +0 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +17 -23
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +9 -15
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +5 -11
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +13 -19
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +17 -23
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +6 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +9 -15
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +27 -32
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +25 -30
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +0 -2
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +0 -2
- package/lib/components/ConditionBuilder/utils/useTranslations.js +0 -2
- package/lib/components/ConditionBuilder/utils/util.js +0 -2
- package/lib/components/CreateFullPage/CreateFullPage.d.ts +4 -2
- package/lib/components/CreateFullPage/CreateFullPage.js +53 -53
- package/lib/components/CreateFullPage/CreateFullPageStep.d.ts +3 -1
- package/lib/components/CreateFullPage/CreateFullPageStep.js +27 -31
- package/lib/components/CreateInfluencer/CreateInfluencer.js +15 -22
- package/lib/components/CreateModal/CreateModal.js +22 -29
- package/lib/components/CreateSidePanel/CreateSidePanel.js +24 -31
- package/lib/components/CreateTearsheet/CreateTearsheet.js +26 -33
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +3 -10
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +31 -38
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +24 -31
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +37 -44
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +54 -61
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +37 -44
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +0 -2
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +0 -2
- package/lib/components/DataSpreadsheet/utils/checkForHoldingKey.js +0 -2
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +0 -2
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +1 -3
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +0 -2
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +0 -2
- package/lib/components/DataSpreadsheet/utils/getCellSize.js +0 -2
- package/lib/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +0 -2
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +1 -3
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +1 -3
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +2 -4
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +0 -2
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +0 -2
- package/lib/components/DataSpreadsheet/utils/selectAllCells.js +1 -3
- package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/Datagrid.js +10 -17
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +5 -9
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +43 -50
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -8
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -11
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -6
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +12 -17
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -8
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +12 -17
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -11
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +18 -23
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +3 -8
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +26 -20
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +5 -9
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +18 -22
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +11 -12
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +10 -11
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +25 -31
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +21 -30
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +7 -13
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +18 -20
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -7
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +49 -39
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +54 -48
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +5 -11
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +11 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +16 -31
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +18 -25
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +32 -39
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +2 -8
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +12 -17
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +11 -16
- package/lib/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +2 -8
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +0 -2
- package/lib/components/Datagrid/common-column-ids.js +0 -2
- package/lib/components/Datagrid/types/index.d.ts +4 -0
- package/lib/components/Datagrid/useActionsColumn.js +12 -17
- package/lib/components/Datagrid/useColumnCenterAlign.js +4 -9
- package/lib/components/Datagrid/useColumnRightAlign.js +4 -9
- package/lib/components/Datagrid/useCustomizeColumns.js +6 -7
- package/lib/components/Datagrid/useDatagrid.js +4 -8
- package/lib/components/Datagrid/useDefaultStringRenderer.js +5 -10
- package/lib/components/Datagrid/useDisableSelectRows.js +1 -1
- package/lib/components/Datagrid/useEditableCell.js +2 -2
- package/lib/components/Datagrid/useExpandedRow.js +3 -3
- package/lib/components/Datagrid/useFiltering.js +5 -5
- package/lib/components/Datagrid/useFlexResize.js +1 -1
- package/lib/components/Datagrid/useFloatingScroll.js +2 -6
- package/lib/components/Datagrid/useFocusRowExpander.js +0 -2
- package/lib/components/Datagrid/useInfiniteScroll.js +4 -8
- package/lib/components/Datagrid/useInitialColumnSort.js +0 -2
- package/lib/components/Datagrid/useInlineEdit.js +7 -12
- package/lib/components/Datagrid/useNestedRowExpander.js +5 -10
- package/lib/components/Datagrid/useNestedRows.js +3 -7
- package/lib/components/Datagrid/useOnRowClick.js +1 -1
- package/lib/components/Datagrid/useParentDimensions.js +1 -1
- package/lib/components/Datagrid/useResizeTable.js +1 -1
- package/lib/components/Datagrid/useRowExpander.js +5 -10
- package/lib/components/Datagrid/useRowIsMouseOver.js +2 -6
- package/lib/components/Datagrid/useRowRenderer.js +2 -2
- package/lib/components/Datagrid/useRowSize.js +2 -2
- package/lib/components/Datagrid/useSelectAllToggle.js +3 -8
- package/lib/components/Datagrid/useSelectRows.js +45 -29
- package/lib/components/Datagrid/useSkeletonRows.js +1 -1
- package/lib/components/Datagrid/useSortableColumns.js +8 -13
- package/lib/components/Datagrid/useStickyColumn.js +4 -9
- package/lib/components/Datagrid/utils/getAutoSizedColumnWidth.js +0 -2
- package/lib/components/Decorator/Decorator.js +16 -22
- package/lib/components/DecoratorBase/DecoratorBase.js +41 -48
- package/lib/components/DecoratorBase/DecoratorIcon.js +6 -13
- package/lib/components/DecoratorBase/utils.js +0 -2
- package/lib/components/DecoratorDualButton/DecoratorDualButton.js +21 -27
- package/lib/components/DecoratorLink/DecoratorLink.js +19 -25
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +19 -25
- package/lib/components/DelimitedList/DelimitedList.js +7 -14
- package/lib/components/DescriptionList/DescriptionList.js +8 -15
- package/lib/components/DescriptionList/DescriptionListBody.js +5 -12
- package/lib/components/DescriptionList/DescriptionListCell.js +5 -12
- package/lib/components/DescriptionList/DescriptionListRow.js +5 -12
- package/lib/components/DescriptionList/constants.js +0 -2
- package/lib/components/EditFullPage/EditFullPage.js +5 -12
- package/lib/components/EditInPlace/EditInPlace.js +35 -45
- package/lib/components/EditSidePanel/EditSidePanel.js +26 -33
- package/lib/components/EditTearsheet/EditTearsheet.js +24 -31
- package/lib/components/EditTearsheet/EditTearsheetForm.js +16 -23
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +5 -12
- package/lib/components/EditUpdateCards/EditUpdateCards.js +32 -39
- package/lib/components/EmptyStates/EmptyState.js +22 -29
- package/lib/components/EmptyStates/EmptyStateContent.js +18 -25
- package/lib/components/EmptyStates/EmptyStateIllustration.js +3 -7
- package/lib/components/EmptyStates/EmptyStateV2.js +25 -32
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +19 -26
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +19 -26
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +19 -26
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +19 -26
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +19 -26
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +19 -26
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +53 -58
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +43 -48
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +114 -119
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +84 -89
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +81 -86
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +74 -79
- package/lib/components/ExportModal/ExportModal.js +59 -53
- package/lib/components/ExpressiveCard/ExpressiveCard.js +28 -34
- package/lib/components/FeatureFlags/index.js +3 -9
- package/lib/components/FilterPanel/FilterPanel.js +7 -14
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +10 -17
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +13 -20
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +9 -16
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +17 -24
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +11 -18
- package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +9 -16
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +9 -16
- package/lib/components/FilterSummary/FilterSummary.js +22 -28
- package/lib/components/FullPageError/FullPageError.js +21 -28
- package/lib/components/FullPageError/assets/Error403SVG.js +129 -135
- package/lib/components/FullPageError/assets/Error404SVG.js +114 -120
- package/lib/components/FullPageError/assets/ErrorGenericSVG.js +128 -134
- package/lib/components/GetStartedCard/GetStartedCard.js +16 -22
- package/lib/components/Guidebanner/Guidebanner.js +32 -39
- package/lib/components/Guidebanner/GuidebannerElement.js +10 -17
- package/lib/components/Guidebanner/GuidebannerElementButton.js +9 -16
- package/lib/components/Guidebanner/GuidebannerElementLink.js +5 -12
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +5 -12
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +5 -12
- package/lib/components/HTTPErrors/HTTPErrorContent.js +5 -11
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +5 -12
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +358 -364
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +309 -315
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +321 -327
- package/lib/components/ImportModal/ImportModal.js +48 -55
- package/lib/components/InlineTip/InlineTip.js +38 -45
- package/lib/components/InlineTip/InlineTipButton.js +5 -12
- package/lib/components/InlineTip/InlineTipLink.js +6 -13
- package/lib/components/InlineTip/utils.js +2 -4
- package/lib/components/InterstitialScreen/InterstitialScreen.js +73 -80
- package/lib/components/InterstitialScreenView/InterstitialScreenView.js +6 -13
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +8 -15
- package/lib/components/MultiAddSelect/MultiAddSelect.js +45 -51
- package/lib/components/Nav/Nav.js +14 -21
- package/lib/components/Nav/NavItem.js +19 -24
- package/lib/components/Nav/NavItemLink.js +4 -8
- package/lib/components/Nav/NavList.js +12 -17
- package/lib/components/NonLinearReading/NonLinearReading.js +12 -19
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +5 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +104 -98
- package/lib/components/NotificationsPanel/utils.js +0 -2
- package/lib/components/OptionsTile/OptionsTile.d.ts +1 -1
- package/lib/components/OptionsTile/OptionsTile.js +40 -48
- package/lib/components/PageHeader/PageHeader.js +105 -112
- package/lib/components/PageHeader/PageHeaderTitle.js +23 -30
- package/lib/components/PageHeader/PageHeaderUtils.js +2 -9
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +4 -0
- package/lib/components/ProductiveCard/ProductiveCard.js +39 -41
- package/lib/components/RemoveModal/RemoveModal.js +27 -34
- package/lib/components/Saving/Saving.js +27 -34
- package/lib/components/ScrollGradient/ScrollGradient.js +17 -24
- package/lib/components/ScrollGradient/constants.js +0 -2
- package/lib/components/SearchBar/SearchBar.js +22 -29
- package/lib/components/SidePanel/SidePanel.js +66 -73
- package/lib/components/SidePanel/constants.js +0 -2
- package/lib/components/SidePanel/motion/variants.js +0 -2
- package/lib/components/SimpleHeader/SimpleHeader.d.ts +3 -1
- package/lib/components/SimpleHeader/SimpleHeader.js +27 -27
- package/lib/components/SingleAddSelect/SingleAddSelect.js +21 -27
- package/lib/components/StatusIcon/StatusIcon.js +52 -59
- package/lib/components/StatusIndicator/StatusIndicator.js +13 -20
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +14 -21
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +8 -17
- package/lib/components/StringFormatter/StringFormatter.js +12 -19
- package/lib/components/StringFormatter/utils/enums.js +0 -2
- package/lib/components/TagOverflow/TagOverflow.js +26 -33
- package/lib/components/TagOverflow/TagOverflowModal.js +17 -24
- package/lib/components/TagOverflow/TagOverflowPopover.js +22 -29
- package/lib/components/TagOverflow/constants.js +0 -2
- package/lib/components/TagSet/TagSet.js +39 -41
- package/lib/components/TagSet/TagSetModal.js +16 -23
- package/lib/components/TagSet/TagSetOverflow.d.ts +4 -0
- package/lib/components/TagSet/TagSetOverflow.js +32 -32
- package/lib/components/Tearsheet/Tearsheet.js +23 -29
- package/lib/components/Tearsheet/TearsheetNarrow.js +18 -24
- package/lib/components/Tearsheet/TearsheetShell.js +63 -63
- package/lib/components/Toolbar/Toolbar.js +3 -10
- package/lib/components/Toolbar/ToolbarButton.js +3 -10
- package/lib/components/Toolbar/ToolbarGroup.js +2 -9
- package/lib/components/TooltipTrigger/TooltipTrigger.js +4 -11
- package/lib/components/TruncatedList/TruncatedList.js +15 -22
- package/lib/components/UserAvatar/UserAvatar.js +18 -25
- package/lib/components/UserProfileImage/UserProfileImage.d.ts +1 -1
- package/lib/components/UserProfileImage/UserProfileImage.js +25 -32
- package/lib/components/WebTerminal/WebTerminal.js +26 -33
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +4 -11
- package/lib/components/WebTerminal/hooks/index.js +2 -8
- package/lib/components/_Canary/Canary.js +7 -14
- package/lib/feature-flags.js +3 -4
- package/lib/global/js/hooks/useActiveElement.js +0 -2
- package/lib/global/js/hooks/useClickOutside.js +0 -2
- package/lib/global/js/hooks/useControllableState.js +2 -4
- package/lib/global/js/hooks/useCreateComponentFocus.js +1 -3
- package/lib/global/js/hooks/useCreateComponentStepChange.js +0 -2
- package/lib/global/js/hooks/useFocus.js +1 -3
- package/lib/global/js/hooks/useIsomorphicEffect.js +0 -2
- package/lib/global/js/hooks/usePortalTarget.js +0 -2
- package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -1
- package/lib/global/js/hooks/usePrefix.js +1 -3
- package/lib/global/js/hooks/usePreviousValue.js +0 -2
- package/lib/global/js/hooks/useResetCreateComponent.js +0 -2
- package/lib/global/js/hooks/useResizeObserver.js +0 -2
- package/lib/global/js/hooks/useRetrieveFormTitles.js +0 -2
- package/lib/global/js/hooks/useRetrieveStepData.js +0 -2
- package/lib/global/js/hooks/useValidCreateStepCount.js +0 -2
- package/lib/global/js/hooks/useWindowResize.js +1 -3
- package/lib/global/js/hooks/useWindowScroll.js +1 -3
- package/lib/global/js/package-settings.js +1 -1
- package/lib/global/js/utils/Wrap.d.ts +4 -0
- package/lib/global/js/utils/Wrap.js +16 -16
- package/lib/global/js/utils/deepCloneObject.js +1 -3
- package/lib/global/js/utils/devtools.js +0 -2
- package/lib/global/js/utils/getBezierValues.js +0 -2
- package/lib/global/js/utils/getFocusableElements.js +0 -2
- package/lib/global/js/utils/getNodeTextContent.js +1 -3
- package/lib/global/js/utils/getNumberOfHiddenSteps.js +0 -2
- package/lib/global/js/utils/getScrollbarWidth.js +0 -2
- package/lib/global/js/utils/keyboardNavigation.js +0 -2
- package/lib/global/js/utils/lastIndexInArray.js +0 -2
- package/lib/global/js/utils/motionConstants.js +0 -2
- package/lib/global/js/utils/pconsole.js +1 -1
- package/lib/global/js/utils/props-helper.js +10 -12
- package/lib/global/js/utils/rangeWithCallback.js +0 -2
- package/lib/global/js/utils/scrollableAncestor.js +1 -3
- package/lib/global/js/utils/uuidv4.js +1 -1
- package/lib/global/js/utils/wait.js +1 -1
- package/lib/global/js/utils/wrapFocus.js +1 -1
- package/lib/index.js +19 -21
- package/lib/node_modules/@carbon/colors/es/index.js +0 -2
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +6 -8
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +14 -18
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-2.js +525 -531
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +500 -506
- package/lib/node_modules/@carbon/icons-react/es/iconPropTypes-4cbeb95d.js +1 -3
- package/lib/node_modules/object-assign/index.js +0 -2
- package/lib/node_modules/prop-types/checkPropTypes.js +2 -4
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +0 -2
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +4 -10
- package/lib/node_modules/prop-types/index.js +2 -6
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -2
- package/lib/node_modules/prop-types/lib/has.js +0 -2
- package/lib/settings.js +9 -15
- package/package.json +11 -11
- package/scss/components/EditInPlace/_edit-in-place.scss +0 -11
- package/scss/components/SidePanel/_side-panel.scss +1 -0
- package/scss/components/TagSet/_tag-set.scss +2 -0
- package/telemetry.yml +3 -3
@@ -21,11 +21,6 @@ var getNodeTextContent = require('../../../global/js/utils/getNodeTextContent.js
|
|
21
21
|
var DatagridSlug = require('./addons/Slug/DatagridSlug.js');
|
22
22
|
var useInitialColumnSort = require('../useInitialColumnSort.js');
|
23
23
|
|
24
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
25
|
-
|
26
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
27
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
28
|
-
|
29
24
|
var _th;
|
30
25
|
var _excluded = ["className"],
|
31
26
|
_excluded2 = ["key"];
|
@@ -51,7 +46,7 @@ var ResizeHeader = function ResizeHeader(_ref) {
|
|
51
46
|
onColResizeEnd = _ref.onColResizeEnd,
|
52
47
|
resizerAriaLabel = _ref.resizerAriaLabel,
|
53
48
|
isFetching = _ref.isFetching;
|
54
|
-
var headerProps = _rollupPluginBabelHelpers
|
49
|
+
var headerProps = _rollupPluginBabelHelpers.extends({}, (_rollupPluginBabelHelpers.objectDestructuringEmpty(resizerProps), resizerProps));
|
55
50
|
var mouseDownHandler = function mouseDownHandler(evt) {
|
56
51
|
handleOnMouseDownResize === null || handleOnMouseDownResize === void 0 || handleOnMouseDownResize(evt, resizerProps);
|
57
52
|
};
|
@@ -78,7 +73,7 @@ var ResizeHeader = function ResizeHeader(_ref) {
|
|
78
73
|
var keyUpHandler = function keyUpHandler() {
|
79
74
|
stateReducer.handleColumnResizeEndEvent(dispatch, onColResizeEnd, header === null || header === void 0 ? void 0 : header.id, true);
|
80
75
|
};
|
81
|
-
return /*#__PURE__*/
|
76
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", _rollupPluginBabelHelpers.extends({}, headerProps, {
|
82
77
|
onMouseDown: mouseDownHandler,
|
83
78
|
onMouseUp: mouseUpHandler,
|
84
79
|
onKeyDown: keyDownHandler,
|
@@ -88,7 +83,7 @@ var ResizeHeader = function ResizeHeader(_ref) {
|
|
88
83
|
defaultValue: originalCol === null || originalCol === void 0 ? void 0 : originalCol.width,
|
89
84
|
"aria-label": resizerAriaLabel || 'Resize column',
|
90
85
|
disabled: isFetching
|
91
|
-
})), /*#__PURE__*/
|
86
|
+
})), /*#__PURE__*/React.createElement("span", {
|
92
87
|
role: "separator",
|
93
88
|
className: "".concat(blockClass, "__col-resize-indicator")
|
94
89
|
}));
|
@@ -153,7 +148,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
153
148
|
if (isTableSortable) {
|
154
149
|
return;
|
155
150
|
}
|
156
|
-
return /*#__PURE__*/
|
151
|
+
return /*#__PURE__*/React.createElement(DatagridSlug.DatagridSlug, {
|
157
152
|
slug: slug
|
158
153
|
});
|
159
154
|
};
|
@@ -166,12 +161,12 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
166
161
|
var withActionsColumn = headers ? !!headers.filter(function (header) {
|
167
162
|
return header.isAction;
|
168
163
|
}).length : false;
|
169
|
-
return /*#__PURE__*/
|
164
|
+
return /*#__PURE__*/React.createElement(react.TableRow, _rollupPluginBabelHelpers.extends({
|
170
165
|
key: key
|
171
166
|
}, rowProps, {
|
172
|
-
className:
|
167
|
+
className: cx("".concat(blockClass, "__head"), headerGroupClassName),
|
173
168
|
ref: headRef
|
174
|
-
}), foundAIRow ? _th || (_th = /*#__PURE__*/
|
169
|
+
}), foundAIRow ? _th || (_th = /*#__PURE__*/React.createElement("th", {
|
175
170
|
scope: "col",
|
176
171
|
"aria-hidden": "false"
|
177
172
|
})) : null, datagridState === null || datagridState === void 0 || (_datagridState$header = datagridState.headers) === null || _datagridState$header === void 0 || (_datagridState$header = _datagridState$header.filter(function (_ref3) {
|
@@ -198,7 +193,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
198
193
|
var _header$getHeaderProp = header.getHeaderProps({
|
199
194
|
role: undefined
|
200
195
|
}),
|
201
|
-
headerProps = _rollupPluginBabelHelpers
|
196
|
+
headerProps = _rollupPluginBabelHelpers.extends({}, (_rollupPluginBabelHelpers.objectDestructuringEmpty(_header$getHeaderProp), _header$getHeaderProp));
|
202
197
|
var resizerProps = header === null || header === void 0 || (_header$getResizerPro = header.getResizerProps) === null || _header$getResizerPro === void 0 ? void 0 : _header$getResizerPro.call(header, {
|
203
198
|
role: undefined
|
204
199
|
});
|
@@ -208,11 +203,11 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
208
203
|
if (headerStyle) {
|
209
204
|
headerStyle.flex = lastVisibleFlexStyle;
|
210
205
|
}
|
211
|
-
return /*#__PURE__*/
|
212
|
-
className:
|
206
|
+
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),
|
213
208
|
key: header.id,
|
214
209
|
"aria-hidden": header.id === 'spacer' && 'true'
|
215
|
-
}, getAccessibilityProps(header)), header.render('Header'), renderSlug(header.slug), resizerProps && !header.isAction && /*#__PURE__*/
|
210
|
+
}, getAccessibilityProps(header)), header.render('Header'), renderSlug(header.slug), resizerProps && !header.isAction && /*#__PURE__*/React.createElement(ResizeHeader, {
|
216
211
|
resizerProps: resizerProps,
|
217
212
|
header: header,
|
218
213
|
handleOnMouseDownResize: handleOnMouseDownResize,
|
@@ -237,4 +232,4 @@ var useHeaderRow = function useHeaderRow(hooks) {
|
|
237
232
|
hooks.useInstance.push(useInstance);
|
238
233
|
};
|
239
234
|
|
240
|
-
exports
|
235
|
+
exports.default = useHeaderRow;
|
@@ -14,11 +14,6 @@ var React = require('react');
|
|
14
14
|
var cx = require('classnames');
|
15
15
|
var settings = require('../../../settings.js');
|
16
16
|
|
17
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
18
|
-
|
19
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
20
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
21
|
-
|
22
17
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
23
18
|
|
24
19
|
// TableBody from carbon is a functional component
|
@@ -29,10 +24,10 @@ var DatagridRefBody = function DatagridRefBody(datagridState) {
|
|
29
24
|
var getTableBodyProps = datagridState.getTableBodyProps,
|
30
25
|
rows = datagridState.rows,
|
31
26
|
prepareRow = datagridState.prepareRow;
|
32
|
-
return /*#__PURE__*/
|
27
|
+
return /*#__PURE__*/React.createElement("tbody", _rollupPluginBabelHelpers.extends({}, getTableBodyProps({
|
33
28
|
role: undefined
|
34
29
|
}), {
|
35
|
-
className:
|
30
|
+
className: cx("".concat(blockClass, "__simple-body"), getTableBodyProps().className)
|
36
31
|
}), rows === null || rows === void 0 ? void 0 : rows.map(function (row) {
|
37
32
|
var _row$RowRenderer;
|
38
33
|
prepareRow(row);
|
@@ -45,4 +40,4 @@ var DatagridRefBody = function DatagridRefBody(datagridState) {
|
|
45
40
|
}));
|
46
41
|
};
|
47
42
|
|
48
|
-
exports
|
43
|
+
exports.default = DatagridRefBody;
|
@@ -18,11 +18,6 @@ var cx = require('classnames');
|
|
18
18
|
var settings = require('../../../settings.js');
|
19
19
|
var DatagridSlug = require('./addons/Slug/DatagridSlug.js');
|
20
20
|
|
21
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
|
-
|
23
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
25
|
-
|
26
21
|
var _SkeletonText;
|
27
22
|
var _excluded = ["className"],
|
28
23
|
_excluded2 = ["style", "children"];
|
@@ -127,26 +122,26 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
127
122
|
var _r$original;
|
128
123
|
return /*#__PURE__*/React.isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.slug);
|
129
124
|
});
|
130
|
-
var rowClassNames =
|
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)));
|
131
126
|
var withActionsColumn = headers ? !!headers.filter(function (header) {
|
132
127
|
return header.isAction;
|
133
128
|
}).length : false;
|
134
129
|
var rowKey = !row.isSkeleton ? key : row.skeletonKey;
|
135
|
-
return /*#__PURE__*/
|
130
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
136
131
|
key: "".concat(rowKey, "__").concat(key, "__row--fragment")
|
137
|
-
}, /*#__PURE__*/
|
138
|
-
className:
|
132
|
+
}, /*#__PURE__*/React.createElement(react.TableRow, _rollupPluginBabelHelpers.extends({}, rowProps, {
|
133
|
+
className: cx(rowClassNames, className),
|
139
134
|
key: rowKey,
|
140
135
|
onMouseEnter: hoverHandler,
|
141
136
|
onMouseLeave: handleMouseLeave,
|
142
137
|
onFocus: hoverHandler,
|
143
138
|
onBlur: focusRemover,
|
144
139
|
onKeyUp: handleOnKeyUp
|
145
|
-
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !== void 0 && (_row$original2 = row.original) !== null && _row$original2 !== void 0 && _row$original2.slug ? /*#__PURE__*/
|
146
|
-
className:
|
147
|
-
}, /*#__PURE__*/
|
140
|
+
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !== void 0 && (_row$original2 = row.original) !== null && _row$original2 !== void 0 && _row$original2.slug ? /*#__PURE__*/React.createElement("td", {
|
141
|
+
className: cx("".concat(blockClass, "__table-row-ai-enabled"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__slug--expanded"), row.isExpanded))
|
142
|
+
}, /*#__PURE__*/React.createElement(DatagridSlug.DatagridSlug, {
|
148
143
|
slug: row === null || row === void 0 || (_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.slug
|
149
|
-
})) : /*#__PURE__*/
|
144
|
+
})) : /*#__PURE__*/React.createElement("td", {
|
150
145
|
className: "".concat(blockClass, "__table-row-ai-spacer")
|
151
146
|
}) : null, row.cells.map(function (cell, index) {
|
152
147
|
var _cell$column, _cell$column2, _associatedHeader$;
|
@@ -159,7 +154,7 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
159
154
|
children = _ref2.children,
|
160
155
|
restProps = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded2);
|
161
156
|
var columnClassname = cell === null || cell === void 0 || (_cell$column = cell.column) === null || _cell$column === void 0 ? void 0 : _cell$column.className;
|
162
|
-
var content = children || /*#__PURE__*/
|
157
|
+
var content = children || /*#__PURE__*/React.createElement(React.Fragment, null, !row.isSkeleton && cell.render('Cell'), row.isSkeleton && (_SkeletonText || (_SkeletonText = /*#__PURE__*/React.createElement(react.SkeletonText, null))));
|
163
158
|
if ((cell === null || cell === void 0 || (_cell$column2 = cell.column) === null || _cell$column2 === void 0 ? void 0 : _cell$column2.id) === commonColumnIds.selectionColumnId) {
|
164
159
|
// directly render component without the wrapping TableCell
|
165
160
|
return cell.render('Cell', {
|
@@ -174,8 +169,8 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
174
169
|
if (style) {
|
175
170
|
style.flex = lastVisibleFlexStyle;
|
176
171
|
}
|
177
|
-
return /*#__PURE__*/
|
178
|
-
className:
|
172
|
+
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)
|
179
174
|
}, restProps, {
|
180
175
|
style: style,
|
181
176
|
key: cell.column.id
|
@@ -183,4 +178,4 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
183
178
|
})), (renderExpandedRow === null || renderExpandedRow === void 0 ? void 0 : renderExpandedRow()) || undefined);
|
184
179
|
};
|
185
180
|
|
186
|
-
exports
|
181
|
+
exports.default = DatagridRow;
|
@@ -7,8 +7,6 @@
|
|
7
7
|
|
8
8
|
'use strict';
|
9
9
|
|
10
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
-
|
12
10
|
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
11
|
var React = require('react');
|
14
12
|
var react = require('@carbon/react');
|
@@ -16,11 +14,6 @@ var cx = require('classnames');
|
|
16
14
|
var settings = require('../../../settings.js');
|
17
15
|
var stateReducer = require('./addons/stateReducer.js');
|
18
16
|
|
19
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
20
|
-
|
21
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
22
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
23
|
-
|
24
17
|
var _excluded = ["onChange"];
|
25
18
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
26
19
|
var SelectAll = function SelectAll(datagridState) {
|
@@ -57,8 +50,8 @@ var SelectAll = function SelectAll(datagridState) {
|
|
57
50
|
onAllRowSelect = datagridState.onAllRowSelect;
|
58
51
|
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.sticky) === 'left' && withStickyColumn;
|
59
52
|
if (hideSelectAll || radio) {
|
60
|
-
return /*#__PURE__*/
|
61
|
-
className:
|
53
|
+
return /*#__PURE__*/React.createElement("th", {
|
54
|
+
className: cx("".concat(blockClass, "__head-hidden-select-all"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__select-all-sticky-left"), /* istanbul ignore next */
|
62
55
|
isFirstColumnStickyLeft && Number(windowSize) > 671))
|
63
56
|
});
|
64
57
|
}
|
@@ -78,8 +71,8 @@ var SelectAll = function SelectAll(datagridState) {
|
|
78
71
|
onAllRowSelect === null || onAllRowSelect === void 0 || onAllRowSelect(rows, event);
|
79
72
|
return onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
80
73
|
};
|
81
|
-
return /*#__PURE__*/
|
82
|
-
className:
|
74
|
+
return /*#__PURE__*/React.createElement(react.TableSelectAll, _rollupPluginBabelHelpers.extends({}, selectProps, {
|
75
|
+
className: cx("".concat(blockClass, "__head-select-all"), "".concat(blockClass, "__checkbox-cell"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__checkbox-cell-sticky-left"), /* istanbul ignore next */
|
83
76
|
isFirstColumnStickyLeft && Number(windowSize) > 671)),
|
84
77
|
name: "".concat(tableId, "-select-all-checkbox-name"),
|
85
78
|
onSelect: handleOnPageSelectAllChange,
|
@@ -17,11 +17,6 @@ var react = require('@carbon/react');
|
|
17
17
|
var icons = require('@carbon/react/icons');
|
18
18
|
var settings = require('../../../settings.js');
|
19
19
|
|
20
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
21
|
-
|
22
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
23
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
24
|
-
|
25
20
|
var _excluded = ["onChange"];
|
26
21
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
27
22
|
var SELECT_ALL_PAGE_ROWS = 'pageRows';
|
@@ -76,10 +71,10 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
76
71
|
selectProps = _rollupPluginBabelHelpers.objectWithoutProperties(_ref3, _excluded);
|
77
72
|
var disabled = isFetching || selectProps.disabled;
|
78
73
|
var isFirstColumnStickyLeft = (columns === null || columns === void 0 || (_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.sticky) === 'left' && withStickyColumn;
|
79
|
-
return /*#__PURE__*/
|
74
|
+
return /*#__PURE__*/React.createElement("th", {
|
80
75
|
scope: "col",
|
81
|
-
className:
|
82
|
-
}, /*#__PURE__*/
|
76
|
+
className: cx("".concat(blockClass, "__select-all-toggle-on"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__select-all-sticky-left"), isFirstColumnStickyLeft && (windowSize !== null && windowSize !== void 0 ? windowSize : 0) > 671))
|
77
|
+
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(react.Checkbox, _rollupPluginBabelHelpers.extends({}, selectProps, {
|
83
78
|
name: "".concat(tableId, "-select-all-checkbox-name"),
|
84
79
|
onClick: function onClick(e) {
|
85
80
|
onChange === null || onChange === void 0 || onChange(e);
|
@@ -88,16 +83,16 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
88
83
|
id: "".concat(tableId, "-select-all-checkbox-id"),
|
89
84
|
labelText: allRowsLabel,
|
90
85
|
hideLabel: true
|
91
|
-
}))), /*#__PURE__*/
|
86
|
+
}))), /*#__PURE__*/React.createElement(react.OverflowMenu, {
|
92
87
|
renderIcon: function renderIcon(props) {
|
93
|
-
return /*#__PURE__*/
|
88
|
+
return /*#__PURE__*/React.createElement(icons.CaretDown, _rollupPluginBabelHelpers.extends({
|
94
89
|
size: 16
|
95
90
|
}, props));
|
96
91
|
},
|
97
92
|
size: "sm",
|
98
93
|
"aria-label": allRowsLabel,
|
99
94
|
menuOptionsClass: "".concat(blockClass, "__select-all-toggle-overflow")
|
100
|
-
}, /*#__PURE__*/
|
95
|
+
}, /*#__PURE__*/React.createElement(react.OverflowMenuItem, {
|
101
96
|
itemText: allPageRowsLabel,
|
102
97
|
requireTitle: true,
|
103
98
|
disabled: disabled,
|
@@ -117,7 +112,7 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
117
112
|
}
|
118
113
|
});
|
119
114
|
}
|
120
|
-
}), /*#__PURE__*/
|
115
|
+
}), /*#__PURE__*/React.createElement(react.OverflowMenuItem, {
|
121
116
|
itemText: allRowsLabel,
|
122
117
|
requireTitle: true,
|
123
118
|
disabled: disabled,
|
@@ -132,16 +127,16 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
132
127
|
})));
|
133
128
|
};
|
134
129
|
SelectAllWithToggle.propTypes = {
|
135
|
-
allPageRowsLabel: index
|
136
|
-
allRowsLabel: index
|
137
|
-
columns: index
|
138
|
-
getToggleAllPageRowsSelectedProps: index
|
139
|
-
getToggleAllRowsSelectedProps: index
|
140
|
-
isAllRowsSelected: index
|
141
|
-
isFetching: index
|
142
|
-
selectAllToggle: index
|
143
|
-
tableId: index
|
144
|
-
withStickyColumn: index
|
130
|
+
allPageRowsLabel: index.default.string,
|
131
|
+
allRowsLabel: index.default.string,
|
132
|
+
columns: index.default.arrayOf(index.default.object),
|
133
|
+
getToggleAllPageRowsSelectedProps: index.default.func.isRequired,
|
134
|
+
getToggleAllRowsSelectedProps: index.default.func.isRequired,
|
135
|
+
isAllRowsSelected: index.default.bool.isRequired,
|
136
|
+
isFetching: index.default.bool,
|
137
|
+
selectAllToggle: index.default.object,
|
138
|
+
tableId: index.default.string.isRequired,
|
139
|
+
withStickyColumn: index.default.bool
|
145
140
|
};
|
146
141
|
|
147
|
-
exports
|
142
|
+
exports.default = SelectAllWithToggle;
|
@@ -15,21 +15,16 @@ var react = require('@carbon/react');
|
|
15
15
|
var cx = require('classnames');
|
16
16
|
var settings = require('../../../settings.js');
|
17
17
|
|
18
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
19
|
-
|
20
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
21
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
22
|
-
|
23
18
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
24
19
|
var DatagridSimpleBody = function DatagridSimpleBody(datagridState) {
|
25
20
|
var getTableBodyProps = datagridState.getTableBodyProps,
|
26
21
|
rows = datagridState.rows,
|
27
22
|
prepareRow = datagridState.prepareRow;
|
28
|
-
return /*#__PURE__*/
|
23
|
+
return /*#__PURE__*/React.createElement(react.TableBody, _rollupPluginBabelHelpers.extends({}, getTableBodyProps({
|
29
24
|
role: undefined
|
30
25
|
}), {
|
31
26
|
"aria-live": undefined,
|
32
|
-
className:
|
27
|
+
className: cx("".concat(blockClass, "__simple-body"), getTableBodyProps().className)
|
33
28
|
}), rows.map(function (row) {
|
34
29
|
var _row$RowRenderer;
|
35
30
|
prepareRow(row);
|
@@ -42,4 +37,4 @@ var DatagridSimpleBody = function DatagridSimpleBody(datagridState) {
|
|
42
37
|
}));
|
43
38
|
};
|
44
39
|
|
45
|
-
exports
|
40
|
+
exports.default = DatagridSimpleBody;
|
@@ -18,11 +18,6 @@ var settings = require('../../../settings.js');
|
|
18
18
|
var cx = require('classnames');
|
19
19
|
var stateReducer = require('./addons/stateReducer.js');
|
20
20
|
|
21
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
|
-
|
23
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
25
|
-
|
26
21
|
var _excluded = ["ariaToolbarLabel"];
|
27
22
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid__table-toolbar");
|
28
23
|
var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridState, width, ref) {
|
@@ -49,9 +44,20 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
49
44
|
getRowId = datagridState.getRowId,
|
50
45
|
batchActionMenuButtonLabel = datagridState.batchActionMenuButtonLabel,
|
51
46
|
translateWithIdBatchActions = datagridState.translateWithIdBatchActions;
|
47
|
+
var _useState7 = React.useState(rows.length),
|
48
|
+
_useState8 = _rollupPluginBabelHelpers.slicedToArray(_useState7, 2),
|
49
|
+
availableRowsCount = _useState8[0],
|
50
|
+
setAvailableRowsCount = _useState8[1];
|
52
51
|
var batchActionMenuButtonLabelText = batchActionMenuButtonLabel !== null && batchActionMenuButtonLabel !== void 0 ? batchActionMenuButtonLabel : 'More';
|
53
52
|
var selectedKeys = Object.keys(selectedRowIds || {});
|
54
53
|
var totalSelected = selectedKeys.length;
|
54
|
+
React.useEffect(function () {
|
55
|
+
var _rows$find, _rows$find$getRowProp;
|
56
|
+
var countDisabledRows = ((_rows$find = rows.find(function (row) {
|
57
|
+
return row.getRowProps;
|
58
|
+
})) === null || _rows$find === void 0 || (_rows$find$getRowProp = _rows$find.getRowProps) === null || _rows$find$getRowProp === void 0 || (_rows$find$getRowProp = _rows$find$getRowProp.call(_rows$find)) === null || _rows$find$getRowProp === void 0 || (_rows$find$getRowProp = _rows$find$getRowProp.nonselectablerows) === null || _rows$find$getRowProp === void 0 ? void 0 : _rows$find$getRowProp.length) || 0;
|
59
|
+
rows && setAvailableRowsCount(rows.length - countDisabledRows);
|
60
|
+
}, [rows]);
|
55
61
|
|
56
62
|
// Get initial width of batch actions container,
|
57
63
|
// used to measure when all items are put inside
|
@@ -94,7 +100,7 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
94
100
|
return;
|
95
101
|
}
|
96
102
|
var renderItem = function renderItem(batchAction, index) {
|
97
|
-
return /*#__PURE__*/
|
103
|
+
return /*#__PURE__*/React.createElement(react.MenuItem, {
|
98
104
|
key: "".concat(batchAction.label, "-").concat(index),
|
99
105
|
label: batchAction.label,
|
100
106
|
onClick: function onClick(event) {
|
@@ -102,9 +108,9 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
102
108
|
}
|
103
109
|
});
|
104
110
|
};
|
105
|
-
return /*#__PURE__*/
|
111
|
+
return /*#__PURE__*/React.createElement(react.MenuButton, {
|
106
112
|
label: batchActionMenuButtonLabelText,
|
107
|
-
className:
|
113
|
+
className: cx([menuClass, _rollupPluginBabelHelpers.defineProperty({}, "".concat(menuClass, "-icon-only"), width <= minWidthBeforeOverflowIcon)]),
|
108
114
|
tabIndex: totalSelected > 0 ? 0 : -1,
|
109
115
|
menuAlignment: "bottom"
|
110
116
|
}, toolbarBatchActions === null || toolbarBatchActions === void 0 ? void 0 : toolbarBatchActions.map(function (batchAction, index) {
|
@@ -149,22 +155,22 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
149
155
|
// Only display the first two batch actions, the rest are
|
150
156
|
// displayed inside of the ButtonMenu if there are more than
|
151
157
|
// 3 batch actions
|
152
|
-
return /*#__PURE__*/
|
158
|
+
return /*#__PURE__*/React.createElement(react.TableBatchActions, {
|
153
159
|
shouldShowBatchActions: totalSelected > 0,
|
154
160
|
totalSelected: totalSelected,
|
155
161
|
onCancel: onCancelHandler,
|
156
162
|
onSelectAll: onSelectAllHandler,
|
157
|
-
totalCount:
|
163
|
+
totalCount: availableRowsCount,
|
158
164
|
translateWithId: translateWithIdBatchActions
|
159
165
|
}, !displayAllInMenu && toolbarBatchActions && (toolbarBatchActions === null || toolbarBatchActions === void 0 ? void 0 : toolbarBatchActions.map(function (batchAction, index) {
|
160
166
|
if (!toolbarBatchActionsDisplayMin && index < 2 && toolbarBatchActions.length > 3 || index < 3 && toolbarBatchActions.length <= 3 || toolbarBatchActionsDisplayMin !== undefined && index < toolbarBatchActionsDisplayMin) {
|
161
|
-
return /*#__PURE__*/
|
167
|
+
return /*#__PURE__*/React.createElement(react.TableBatchAction, {
|
162
168
|
key: "".concat(batchAction.label, "-").concat(index),
|
163
169
|
renderIcon: batchAction.renderIcon,
|
164
170
|
onClick: function onClick(event) {
|
165
171
|
return onClickHandler(event, batchAction);
|
166
172
|
},
|
167
|
-
className:
|
173
|
+
className: cx(_rollupPluginBabelHelpers.defineProperty({}, "".concat(settings.carbon.prefix, "--noLabel"), !batchAction.label || batchAction.label === '')),
|
168
174
|
iconDescription: batchAction.label,
|
169
175
|
tabIndex: totalSelected > 0 ? 0 : -1
|
170
176
|
}, batchAction.label);
|
@@ -182,19 +188,19 @@ var DatagridToolbar = function DatagridToolbar(_ref2) {
|
|
182
188
|
batchActions = datagridState.batchActions,
|
183
189
|
rowSize = datagridState.rowSize;
|
184
190
|
var getRowHeight = rowSize || 'lg';
|
185
|
-
return batchActions && DatagridActions ? /*#__PURE__*/
|
191
|
+
return batchActions && DatagridActions ? /*#__PURE__*/React.createElement("div", {
|
186
192
|
ref: ref,
|
187
|
-
className:
|
188
|
-
}, /*#__PURE__*/
|
193
|
+
className: cx([blockClass, "".concat(blockClass, "--").concat(getRowHeight)])
|
194
|
+
}, /*#__PURE__*/React.createElement(react.TableToolbar, {
|
189
195
|
"aria-label": ariaToolbarLabel
|
190
|
-
}, DatagridActions && /*#__PURE__*/
|
196
|
+
}, DatagridActions && /*#__PURE__*/React.createElement(DatagridActions, datagridState), DatagridBatchActionsToolbar === null || DatagridBatchActionsToolbar === void 0 ? void 0 : DatagridBatchActionsToolbar(datagridState, width, ref))) : DatagridActions ? /*#__PURE__*/React.createElement("div", {
|
191
197
|
className: blockClass
|
192
|
-
}, /*#__PURE__*/
|
198
|
+
}, /*#__PURE__*/React.createElement(react.TableToolbar, {
|
193
199
|
"aria-label": ariaToolbarLabel
|
194
|
-
}, DatagridActions && /*#__PURE__*/
|
200
|
+
}, DatagridActions && /*#__PURE__*/React.createElement(DatagridActions, datagridState), DatagridBatchActions === null || DatagridBatchActions === void 0 ? void 0 : DatagridBatchActions(datagridState))) : null;
|
195
201
|
};
|
196
202
|
DatagridToolbar.propTypes = {
|
197
|
-
ariaToolbarLabel: index
|
203
|
+
ariaToolbarLabel: index.default.string
|
198
204
|
};
|
199
205
|
|
200
|
-
exports
|
206
|
+
exports.default = DatagridToolbar;
|
@@ -18,10 +18,6 @@ var DatagridHead = require('./DatagridHead.js');
|
|
18
18
|
var useResizeObserver = require('../../../global/js/hooks/useResizeObserver.js');
|
19
19
|
var useIsomorphicEffect = require('../../../global/js/hooks/useIsomorphicEffect.js');
|
20
20
|
|
21
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
|
-
|
23
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
-
|
25
21
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
26
22
|
var rowSizeMap = {
|
27
23
|
xs: 24,
|
@@ -107,14 +103,14 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
107
103
|
testRef.current.style.width = "".concat(gridRef === null || gridRef === void 0 || (_gridRef$current2 = gridRef.current) === null || _gridRef$current2 === void 0 ? void 0 : _gridRef$current2.clientWidth, "px");
|
108
104
|
}
|
109
105
|
}, [testRef, gridRef]);
|
110
|
-
return /*#__PURE__*/
|
106
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
111
107
|
className: "".concat(blockClass, "__head-wrap"),
|
112
108
|
ref: headWrapRef
|
113
|
-
}, /*#__PURE__*/
|
109
|
+
}, /*#__PURE__*/React.createElement(DatagridHead.default, datagridState)), /*#__PURE__*/React.createElement(react.TableBody, _rollupPluginBabelHelpers.extends({}, getTableBodyProps({
|
114
110
|
role: undefined
|
115
111
|
}), {
|
116
112
|
"aria-live": undefined
|
117
|
-
}), /*#__PURE__*/
|
113
|
+
}), /*#__PURE__*/React.createElement(reactWindow.VariableSizeList, {
|
118
114
|
height: virtualHeight || tableHeight,
|
119
115
|
itemCount: visibleRows.length,
|
120
116
|
itemSize: function itemSize(index) {
|
@@ -138,7 +134,7 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
138
134
|
prepareRow(row);
|
139
135
|
var _row$getRowProps = row.getRowProps(),
|
140
136
|
key = _row$getRowProps.key;
|
141
|
-
return /*#__PURE__*/
|
137
|
+
return /*#__PURE__*/React.createElement("div", {
|
142
138
|
ref: innerRef,
|
143
139
|
style: _rollupPluginBabelHelpers.objectSpread2({}, style)
|
144
140
|
}, row === null || row === void 0 || (_row$RowRenderer = row.RowRenderer) === null || _row$RowRenderer === void 0 ? void 0 : _row$RowRenderer.call(row, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, datagridState), {}, {
|
@@ -148,4 +144,4 @@ var DatagridVirtualBody = function DatagridVirtualBody(datagridState) {
|
|
148
144
|
})));
|
149
145
|
};
|
150
146
|
|
151
|
-
exports
|
147
|
+
exports.default = DatagridVirtualBody;
|
@@ -18,11 +18,6 @@ var settings = require('../../../settings.js');
|
|
18
18
|
var utilities = require('@dnd-kit/utilities');
|
19
19
|
var sortable = require('@dnd-kit/sortable');
|
20
20
|
|
21
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
|
-
|
23
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
25
|
-
|
26
21
|
var _Locked, _DraggableIcon;
|
27
22
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
28
23
|
var DraggableElement = function DraggableElement(_ref) {
|
@@ -43,41 +38,42 @@ var DraggableElement = function DraggableElement(_ref) {
|
|
43
38
|
setNodeRef = _useSortable.setNodeRef,
|
44
39
|
transform = _useSortable.transform,
|
45
40
|
transition = _useSortable.transition;
|
46
|
-
var content = /*#__PURE__*/
|
47
|
-
className:
|
41
|
+
var content = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
42
|
+
className: cx({
|
48
43
|
disabled: disabled
|
49
44
|
}, "".concat(blockClass, "__draggable-handleStyle"))
|
50
|
-
}, isSticky ? _Locked || (_Locked = /*#__PURE__*/
|
45
|
+
}, isSticky ? _Locked || (_Locked = /*#__PURE__*/React.createElement(icons.Locked, {
|
51
46
|
size: 16
|
52
|
-
})) : _DraggableIcon || (_DraggableIcon = /*#__PURE__*/
|
47
|
+
})) : _DraggableIcon || (_DraggableIcon = /*#__PURE__*/React.createElement(icons.Draggable, {
|
53
48
|
size: 16
|
54
49
|
}))), children);
|
55
50
|
var style = {
|
56
51
|
transform: !disabled ? utilities.CSS.Transform.toString(transform) : undefined,
|
57
52
|
transition: transition
|
58
53
|
};
|
59
|
-
return /*#__PURE__*/
|
60
|
-
className:
|
54
|
+
return /*#__PURE__*/React.createElement("li", _rollupPluginBabelHelpers.extends({
|
55
|
+
className: cx(classList, "".concat(blockClass, "__draggable-handleHolder"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__draggable-handleHolder--selected"), selected), "".concat(blockClass, "__draggable-handleHolder--sticky"), isSticky), "".concat(blockClass, "__draggable-handleHolder--dragging"), isDragging)),
|
61
56
|
id: id,
|
62
57
|
ref: setNodeRef,
|
63
58
|
style: style
|
64
59
|
}, attributes, listeners, {
|
60
|
+
"aria-disabled": undefined,
|
65
61
|
"aria-selected": selected,
|
66
62
|
role: "option"
|
67
|
-
}), /*#__PURE__*/
|
63
|
+
}), /*#__PURE__*/React.createElement("span", {
|
68
64
|
className: "".concat(blockClass, "__shared-ui--assistive-text")
|
69
|
-
}, ariaLabel), /*#__PURE__*/
|
70
|
-
className:
|
65
|
+
}, ariaLabel), /*#__PURE__*/React.createElement("div", {
|
66
|
+
className: cx(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__draggable-handleStyle"), !disabled), ["".concat(blockClass, "__draggable-handleHolder-droppable")])
|
71
67
|
}, content));
|
72
68
|
};
|
73
69
|
DraggableElement.propTypes = {
|
74
|
-
ariaLabel: index
|
75
|
-
children: index
|
76
|
-
classList: index
|
77
|
-
disabled: index
|
78
|
-
id: index
|
79
|
-
isSticky: index
|
80
|
-
selected: index
|
70
|
+
ariaLabel: index.default.string.isRequired,
|
71
|
+
children: index.default.element.isRequired,
|
72
|
+
classList: index.default.string,
|
73
|
+
disabled: index.default.bool,
|
74
|
+
id: index.default.string.isRequired,
|
75
|
+
isSticky: index.default.bool,
|
76
|
+
selected: index.default.bool
|
81
77
|
};
|
82
78
|
|
83
|
-
exports
|
79
|
+
exports.default = DraggableElement;
|