@carbon/ibm-products 2.27.0 → 2.28.0-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +192 -116
- 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 +56 -11
- 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 +192 -116
- 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 +180 -112
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/index.js +2 -2
- package/es/components/APIKeyModal/APIKeyModal.js +1 -1
- package/es/components/AboutModal/AboutModal.js +1 -1
- package/es/components/ActionBar/ActionBar.js +1 -1
- package/es/components/ActionBar/ActionBarItem.js +1 -1
- package/es/components/ActionBar/ActionBarOverflowItems.js +1 -1
- package/es/components/ActionSet/ActionSet.js +1 -1
- package/es/components/AddSelect/AddSelectBody.js +1 -1
- package/es/components/AddSelect/AddSelectBreadcrumbs.js +1 -1
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectList.js +1 -1
- package/es/components/AddSelect/AddSelectRow.js +1 -1
- package/es/components/BigNumbers/BigNumbers.js +1 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +1 -1
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +1 -1
- package/es/components/Card/Card.js +1 -1
- package/es/components/Card/CardFooter.js +1 -1
- package/es/components/Card/CardHeader.js +1 -1
- package/es/components/Carousel/Carousel.js +1 -1
- package/es/components/Carousel/CarouselItem.js +1 -1
- package/es/components/Cascade/Cascade.js +1 -1
- package/es/components/Checklist/Checklist.js +1 -1
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/Coachmark/Coachmark.js +1 -1
- package/es/components/Coachmark/CoachmarkDragbar.js +1 -1
- package/es/components/Coachmark/CoachmarkHeader.js +1 -1
- package/es/components/Coachmark/CoachmarkOverlay.js +1 -1
- package/es/components/Coachmark/CoachmarkTagline.js +1 -1
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkButton/CoachmarkButton.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +1 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +1 -1
- package/es/components/CoachmarkStack/CoachmarkStack.js +1 -1
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +1 -1
- package/es/components/ComboButton/ComboButton.js +1 -1
- package/es/components/CreateFullPage/CreateFullPage.js +1 -1
- package/es/components/CreateFullPage/CreateFullPageStep.js +1 -1
- package/es/components/CreateInfluencer/CreateInfluencer.js +1 -1
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +8 -2
- package/es/components/CreateTearsheet/CreateTearsheetDivider.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +1 -1
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -4
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -15
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +1 -1
- package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +8 -8
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +1 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +68 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +12 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/es/components/Datagrid/useActionsColumn.js +1 -1
- package/es/components/Datagrid/useColumnCenterAlign.js +1 -1
- package/es/components/Datagrid/useColumnRightAlign.js +1 -1
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/es/components/Datagrid/useFiltering.js +48 -47
- package/es/components/Datagrid/useFloatingScroll.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +1 -1
- package/es/components/Datagrid/useNestedRowExpander.js +1 -1
- package/es/components/Datagrid/useNestedRows.js +1 -1
- package/es/components/Datagrid/useRowExpander.js +1 -1
- package/es/components/Datagrid/useSelectAllToggle.js +1 -1
- package/es/components/Datagrid/useSelectRows.js +2 -2
- package/es/components/Datagrid/useSortableColumns.js +1 -1
- package/es/components/Datagrid/useStickyColumn.js +1 -1
- package/es/components/DelimitedList/DelimitedList.js +1 -1
- package/es/components/EditFullPage/EditFullPage.js +1 -1
- package/es/components/EditInPlace/EditInPlace.js +1 -1
- package/es/components/EditSidePanel/EditSidePanel.js +1 -1
- package/es/components/EditTearsheet/EditTearsheet.js +1 -1
- package/es/components/EditTearsheet/EditTearsheetForm.js +1 -1
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -1
- package/es/components/EditUpdateCards/EditUpdateCards.js +1 -1
- package/es/components/EmptyStates/EmptyState.js +1 -1
- package/es/components/EmptyStates/EmptyStateContent.js +1 -1
- package/es/components/EmptyStates/EmptyStateV2.js +1 -1
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +1 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +1 -1
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -1
- package/es/components/ExportModal/ExportModal.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +1 -1
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/Guidebanner/Guidebanner.js +1 -1
- package/es/components/Guidebanner/GuidebannerElement.js +1 -1
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/Guidebanner/GuidebannerElementLink.js +1 -1
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
- package/es/components/ImportModal/ImportModal.js +1 -1
- package/es/components/InlineTip/InlineTip.js +1 -1
- package/es/components/InlineTip/InlineTipButton.js +1 -1
- package/es/components/InlineTip/InlineTipLink.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +1 -1
- package/es/components/InterstitialScreenView/InterstitialScreenView.js +1 -1
- package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +1 -1
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
- package/es/components/OptionsTile/OptionsTile.js +1 -1
- package/es/components/PageHeader/PageHeader.js +1 -1
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/RemoveModal/RemoveModal.js +1 -1
- package/es/components/Saving/Saving.js +1 -1
- package/es/components/SearchBar/SearchBar.js +1 -1
- package/es/components/SidePanel/SidePanel.js +1 -1
- package/es/components/SimpleHeader/SimpleHeader.js +1 -1
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +1 -1
- package/es/components/TagSet/TagSet.js +1 -1
- package/es/components/TagSet/TagSetModal.js +1 -1
- package/es/components/TagSet/TagSetOverflow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +4 -5
- package/es/components/Toolbar/Toolbar.js +1 -1
- package/es/components/Toolbar/ToolbarButton.js +1 -1
- package/es/components/Toolbar/ToolbarGroup.js +1 -1
- package/es/components/TooltipTrigger/TooltipTrigger.js +1 -1
- package/es/components/TruncatedList/TruncatedList.js +1 -1
- package/es/components/UserAvatar/UserAvatar.js +1 -1
- package/es/components/UserProfileImage/UserProfileImage.js +1 -1
- package/es/components/WebTerminal/WebTerminal.js +1 -1
- package/es/components/WebTerminal/WebTerminalContentWrapper.js +1 -1
- package/es/components/_Canary/Canary.js +1 -1
- package/es/node_modules/prop-types/index.js +1 -1
- package/lib/_virtual/index.js +2 -2
- package/lib/components/APIKeyModal/APIKeyModal.js +50 -49
- package/lib/components/AboutModal/AboutModal.js +17 -16
- package/lib/components/ActionBar/ActionBar.js +16 -15
- package/lib/components/ActionBar/ActionBarItem.js +8 -7
- package/lib/components/ActionBar/ActionBarOverflowItems.js +9 -8
- package/lib/components/ActionSet/ActionSet.js +4 -3
- package/lib/components/AddSelect/AddSelectBody.js +67 -66
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +7 -6
- package/lib/components/AddSelect/AddSelectFilter.js +19 -18
- package/lib/components/AddSelect/AddSelectList.js +7 -6
- package/lib/components/AddSelect/AddSelectRow.js +33 -32
- package/lib/components/BigNumbers/BigNumbers.js +23 -22
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +20 -19
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -2
- package/lib/components/Card/Card.js +5 -4
- package/lib/components/Card/CardFooter.js +22 -21
- package/lib/components/Card/CardHeader.js +27 -26
- package/lib/components/Carousel/Carousel.js +13 -12
- package/lib/components/Carousel/CarouselItem.js +6 -5
- package/lib/components/Cascade/Cascade.js +9 -8
- package/lib/components/Checklist/Checklist.js +33 -32
- package/lib/components/Checklist/ChecklistChart.js +7 -6
- package/lib/components/Checklist/ChecklistIcon.js +7 -6
- package/lib/components/Coachmark/Coachmark.js +21 -20
- package/lib/components/Coachmark/CoachmarkDragbar.js +10 -9
- package/lib/components/Coachmark/CoachmarkHeader.js +8 -7
- package/lib/components/Coachmark/CoachmarkOverlay.js +10 -9
- package/lib/components/Coachmark/CoachmarkTagline.js +8 -7
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +7 -6
- package/lib/components/CoachmarkButton/CoachmarkButton.js +6 -5
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +11 -10
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +8 -7
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -15
- package/lib/components/CoachmarkStack/CoachmarkStack.js +20 -19
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +17 -16
- package/lib/components/ComboButton/ComboButton.js +7 -6
- package/lib/components/CreateFullPage/CreateFullPage.js +29 -28
- package/lib/components/CreateFullPage/CreateFullPageStep.js +18 -17
- package/lib/components/CreateInfluencer/CreateInfluencer.js +13 -12
- package/lib/components/CreateModal/CreateModal.js +16 -15
- package/lib/components/CreateSidePanel/CreateSidePanel.js +21 -20
- package/lib/components/CreateTearsheet/CreateTearsheet.js +27 -20
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +5 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +19 -18
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +21 -20
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +22 -21
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +56 -55
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +39 -38
- package/lib/components/Datagrid/Datagrid/Datagrid.js +7 -6
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +32 -31
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +8 -3
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +6 -5
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +20 -15
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -3
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +14 -13
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +3 -2
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +6 -5
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +13 -12
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +15 -14
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +25 -24
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +27 -26
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +7 -7
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.d.ts +1 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +2 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +65 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +11 -0
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +15 -14
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +20 -19
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +9 -8
- package/lib/components/Datagrid/useActionsColumn.js +7 -6
- package/lib/components/Datagrid/useColumnCenterAlign.js +3 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +4 -3
- package/lib/components/Datagrid/useFiltering.js +46 -45
- package/lib/components/Datagrid/useFloatingScroll.js +6 -2
- package/lib/components/Datagrid/useInlineEdit.js +4 -3
- package/lib/components/Datagrid/useNestedRowExpander.js +4 -3
- package/lib/components/Datagrid/useNestedRows.js +6 -2
- package/lib/components/Datagrid/useRowExpander.js +3 -2
- package/lib/components/Datagrid/useSelectAllToggle.js +3 -2
- package/lib/components/Datagrid/useSelectRows.js +5 -4
- package/lib/components/Datagrid/useSortableColumns.js +3 -2
- package/lib/components/Datagrid/useStickyColumn.js +4 -3
- package/lib/components/DelimitedList/DelimitedList.js +8 -7
- package/lib/components/EditFullPage/EditFullPage.js +6 -5
- package/lib/components/EditInPlace/EditInPlace.js +23 -22
- package/lib/components/EditSidePanel/EditSidePanel.js +23 -22
- package/lib/components/EditTearsheet/EditTearsheet.js +18 -17
- package/lib/components/EditTearsheet/EditTearsheetForm.js +11 -10
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +6 -5
- package/lib/components/EditUpdateCards/EditUpdateCards.js +31 -30
- package/lib/components/EmptyStates/EmptyState.js +20 -19
- package/lib/components/EmptyStates/EmptyStateContent.js +16 -15
- package/lib/components/EmptyStates/EmptyStateV2.js +20 -19
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +18 -17
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +18 -17
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +18 -17
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +18 -17
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +18 -17
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +18 -17
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +7 -6
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +7 -6
- package/lib/components/ExportModal/ExportModal.js +30 -29
- package/lib/components/FilterSummary/FilterSummary.js +13 -12
- package/lib/components/FullPageError/FullPageError.js +13 -12
- package/lib/components/Guidebanner/Guidebanner.js +20 -19
- package/lib/components/Guidebanner/GuidebannerElement.js +8 -7
- package/lib/components/Guidebanner/GuidebannerElementButton.js +8 -7
- package/lib/components/Guidebanner/GuidebannerElementLink.js +6 -5
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +11 -10
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +11 -10
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +11 -10
- package/lib/components/ImportModal/ImportModal.js +32 -31
- package/lib/components/InlineTip/InlineTip.js +21 -20
- package/lib/components/InlineTip/InlineTipButton.js +6 -5
- package/lib/components/InlineTip/InlineTipLink.js +6 -5
- package/lib/components/InterstitialScreen/InterstitialScreen.js +13 -12
- package/lib/components/InterstitialScreenView/InterstitialScreenView.js +7 -6
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +7 -6
- package/lib/components/NonLinearReading/NonLinearReading.js +9 -8
- package/lib/components/NotificationsPanel/NotificationsPanel.js +59 -58
- package/lib/components/OptionsTile/OptionsTile.js +21 -20
- package/lib/components/PageHeader/PageHeader.js +74 -73
- package/lib/components/PageHeader/PageHeaderTitle.js +21 -20
- package/lib/components/PageHeader/PageHeaderUtils.js +3 -2
- package/lib/components/RemoveModal/RemoveModal.js +22 -21
- package/lib/components/Saving/Saving.js +18 -17
- package/lib/components/SearchBar/SearchBar.js +20 -19
- package/lib/components/SidePanel/SidePanel.js +47 -46
- package/lib/components/SimpleHeader/SimpleHeader.js +17 -16
- package/lib/components/StatusIcon/StatusIcon.js +9 -8
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +7 -6
- package/lib/components/StringFormatter/StringFormatter.js +11 -10
- package/lib/components/TagSet/TagSet.js +21 -20
- package/lib/components/TagSet/TagSetModal.js +13 -12
- package/lib/components/TagSet/TagSetOverflow.js +18 -17
- package/lib/components/Tearsheet/TearsheetShell.js +35 -35
- package/lib/components/Toolbar/Toolbar.js +7 -6
- package/lib/components/Toolbar/ToolbarButton.js +9 -8
- package/lib/components/Toolbar/ToolbarGroup.js +6 -5
- package/lib/components/TooltipTrigger/TooltipTrigger.js +6 -5
- package/lib/components/TruncatedList/TruncatedList.js +14 -13
- package/lib/components/UserAvatar/UserAvatar.js +3 -2
- package/lib/components/UserProfileImage/UserProfileImage.js +3 -2
- package/lib/components/WebTerminal/WebTerminal.js +14 -13
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +5 -4
- package/lib/components/_Canary/Canary.js +6 -5
- package/lib/node_modules/prop-types/index.js +1 -1
- package/package.json +6 -5
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +0 -1
- package/scss/components/Datagrid/styles/_datagrid.scss +61 -4
- package/scss/components/SidePanel/_side-panel.scss +8 -1
- package/scss/components/Tearsheet/_tearsheet.scss +4 -5
- package/es/_virtual/index2.js +0 -10
- package/es/node_modules/classnames/index.js +0 -70
- package/lib/_virtual/index2.js +0 -14
- package/lib/node_modules/classnames/index.js +0 -74
@@ -11,11 +11,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
|
-
var index
|
14
|
+
var index = require('../../../../../node_modules/prop-types/index.js');
|
15
15
|
var react = require('@carbon/react');
|
16
16
|
var update = require('immutability-helper');
|
17
17
|
var settings = require('../../../../../settings.js');
|
18
|
-
var
|
18
|
+
var cx = require('classnames');
|
19
19
|
var DraggableItemsList = require('./DraggableItemsList.js');
|
20
20
|
var uuidv4 = require('../../../../../global/js/utils/uuidv4.js');
|
21
21
|
|
@@ -23,6 +23,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
23
23
|
|
24
24
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
25
25
|
var update__default = /*#__PURE__*/_interopDefaultLegacy(update);
|
26
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
26
27
|
|
27
28
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
28
29
|
var Columns = function Columns(_ref) {
|
@@ -66,7 +67,7 @@ var Columns = function Columns(_ref) {
|
|
66
67
|
className: "".concat(blockClass, "__shared-ui--assistive-text")
|
67
68
|
}, filterString.length === 0 ? assistiveTextInstructionsLabel : assistiveTextDisabledInstructionsLabel), /*#__PURE__*/React__default["default"].createElement("div", {
|
68
69
|
id: "".concat(blockClass, "__customize-columns-select-all"),
|
69
|
-
className:
|
70
|
+
className: cx__default["default"]("".concat(blockClass, "__customize-columns-select-all"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__customize-columns-select-all--selected"), getVisibleColumnsCount() > 0)),
|
70
71
|
selected: getVisibleColumnsCount() > 0
|
71
72
|
}, /*#__PURE__*/React__default["default"].createElement(react.Checkbox, {
|
72
73
|
className: "".concat(blockClass, "__customize-columns-checkbox-wrapper"),
|
@@ -87,17 +88,17 @@ var Columns = function Columns(_ref) {
|
|
87
88
|
})));
|
88
89
|
};
|
89
90
|
Columns.propTypes = {
|
90
|
-
assistiveTextDisabledInstructionsLabel: index
|
91
|
-
assistiveTextInstructionsLabel: index
|
92
|
-
columns: index
|
93
|
-
disabledInstructionsLabel: index
|
94
|
-
filterString: index
|
95
|
-
getVisibleColumnsCount: index
|
96
|
-
instructionsLabel: index
|
97
|
-
onSelectColumn: index
|
98
|
-
selectAllLabel: index
|
99
|
-
setColumnStatus: index
|
100
|
-
setColumnsObject: index
|
91
|
+
assistiveTextDisabledInstructionsLabel: index["default"].string,
|
92
|
+
assistiveTextInstructionsLabel: index["default"].string,
|
93
|
+
columns: index["default"].array.isRequired,
|
94
|
+
disabledInstructionsLabel: index["default"].string,
|
95
|
+
filterString: index["default"].string.isRequired,
|
96
|
+
getVisibleColumnsCount: index["default"].func.isRequired,
|
97
|
+
instructionsLabel: index["default"].string,
|
98
|
+
onSelectColumn: index["default"].func.isRequired,
|
99
|
+
selectAllLabel: index["default"].string,
|
100
|
+
setColumnStatus: index["default"].func,
|
101
|
+
setColumnsObject: index["default"].func.isRequired
|
101
102
|
};
|
102
103
|
var Columns$1 = Columns;
|
103
104
|
|
@@ -12,8 +12,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var icons = require('@carbon/react/icons');
|
14
14
|
var react = require('@carbon/react');
|
15
|
-
var
|
16
|
-
var index
|
15
|
+
var cx = require('classnames');
|
16
|
+
var index = require('../../../../../node_modules/prop-types/index.js');
|
17
17
|
var React = require('react');
|
18
18
|
var settings = require('../../../../../settings.js');
|
19
19
|
var constants = require('./constants.js');
|
@@ -27,6 +27,7 @@ var ActionSet = require('../../../../ActionSet/ActionSet.js');
|
|
27
27
|
|
28
28
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
29
29
|
|
30
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
30
31
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
31
32
|
|
32
33
|
var _Filter;
|
@@ -225,17 +226,17 @@ var FilterFlyout = function FilterFlyout(_ref) {
|
|
225
226
|
kind: "ghost",
|
226
227
|
align: "bottom",
|
227
228
|
onClick: open ? closeFlyout : openFlyout,
|
228
|
-
className:
|
229
|
+
className: cx__default["default"]("".concat(componentClass, "__trigger"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(componentClass, "__trigger--open"), open)),
|
229
230
|
disabled: data.length === 0
|
230
231
|
}, _Filter || (_Filter = /*#__PURE__*/React__default["default"].createElement(icons.Filter, null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
231
|
-
className:
|
232
|
+
className: cx__default["default"](componentClass, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(componentClass, "--open"), open), "".concat(componentClass, "--batch"), showActionSet), "".concat(componentClass, "--instant"), !showActionSet)),
|
232
233
|
ref: flyoutInnerRef
|
233
234
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
234
235
|
className: "".concat(componentClass, "__inner-container")
|
235
236
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
236
237
|
className: "".concat(componentClass, "__title")
|
237
238
|
}, title), /*#__PURE__*/React__default["default"].createElement("div", {
|
238
|
-
className:
|
239
|
+
className: cx__default["default"]("".concat(componentClass, "__filters"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(componentClass, "__stacked"), stackedLayout)),
|
239
240
|
ref: flyoutFiltersContainerRef
|
240
241
|
}, renderFilters())), renderActionSet()));
|
241
242
|
};
|
@@ -243,63 +244,63 @@ FilterFlyout.propTypes = {
|
|
243
244
|
/**
|
244
245
|
* All data rows in the table
|
245
246
|
*/
|
246
|
-
data: index
|
247
|
+
data: index["default"].array.isRequired,
|
247
248
|
/**
|
248
249
|
* Array of filters to render
|
249
250
|
*/
|
250
|
-
filters: index
|
251
|
-
type: index
|
252
|
-
column: index
|
253
|
-
props: index
|
251
|
+
filters: index["default"].arrayOf(index["default"].shape({
|
252
|
+
type: index["default"].string.isRequired,
|
253
|
+
column: index["default"].string.isRequired,
|
254
|
+
props: index["default"].object.isRequired
|
254
255
|
})).isRequired,
|
255
256
|
/**
|
256
257
|
* Icon description for the filter flyout button
|
257
258
|
*/
|
258
|
-
flyoutIconDescription: index
|
259
|
+
flyoutIconDescription: index["default"].string,
|
259
260
|
/**
|
260
261
|
* Callback when the apply button is clicked
|
261
262
|
*/
|
262
|
-
onApply: index
|
263
|
+
onApply: index["default"].func,
|
263
264
|
/**
|
264
265
|
* Callback when the cancel button is clicked
|
265
266
|
*/
|
266
|
-
onCancel: index
|
267
|
+
onCancel: index["default"].func,
|
267
268
|
/**
|
268
269
|
* Callback when the flyout closes
|
269
270
|
*/
|
270
|
-
onFlyoutClose: index
|
271
|
+
onFlyoutClose: index["default"].func,
|
271
272
|
/**
|
272
273
|
* Callback when the flyout opens
|
273
274
|
*/
|
274
|
-
onFlyoutOpen: index
|
275
|
+
onFlyoutOpen: index["default"].func,
|
275
276
|
/**
|
276
277
|
* Label text of the primary action in the flyout
|
277
278
|
*/
|
278
|
-
primaryActionLabel: index
|
279
|
+
primaryActionLabel: index["default"].string,
|
279
280
|
/**
|
280
281
|
* Filters from react table's state
|
281
282
|
*/
|
282
|
-
reactTableFiltersState: index
|
283
|
-
id: index
|
284
|
-
type: index
|
285
|
-
value: index
|
283
|
+
reactTableFiltersState: index["default"].arrayOf(index["default"].shape({
|
284
|
+
id: index["default"].string.isRequired,
|
285
|
+
type: index["default"].string.isRequired,
|
286
|
+
value: index["default"].any.isRequired
|
286
287
|
})),
|
287
288
|
/**
|
288
289
|
* Label text of the secondary action in the flyout
|
289
290
|
*/
|
290
|
-
secondaryActionLabel: index
|
291
|
+
secondaryActionLabel: index["default"].string,
|
291
292
|
/**
|
292
293
|
* Function that sets all the filters, this comes from the datagridState
|
293
294
|
*/
|
294
|
-
setAllFilters: index
|
295
|
+
setAllFilters: index["default"].func.isRequired,
|
295
296
|
/**
|
296
297
|
* Title of the filter flyout
|
297
298
|
*/
|
298
|
-
title: index
|
299
|
+
title: index["default"].string,
|
299
300
|
/**
|
300
301
|
* The update method used to apply the filters
|
301
302
|
*/
|
302
|
-
updateMethod: index
|
303
|
+
updateMethod: index["default"].oneOf([constants.BATCH, constants.INSTANT]).isRequired
|
303
304
|
};
|
304
305
|
var FilterFlyout$1 = FilterFlyout;
|
305
306
|
|
@@ -16,8 +16,8 @@ var React = require('react');
|
|
16
16
|
var variants = require('./motion/variants.js');
|
17
17
|
var icons = require('@carbon/react/icons');
|
18
18
|
var FilterProvider = require('./FilterProvider.js');
|
19
|
-
var index
|
20
|
-
var
|
19
|
+
var index = require('../../../../../node_modules/prop-types/index.js');
|
20
|
+
var cx = require('classnames');
|
21
21
|
var framerMotion = require('framer-motion');
|
22
22
|
var settings = require('../../../../../settings.js');
|
23
23
|
var layout = require('@carbon/layout');
|
@@ -29,6 +29,7 @@ var useSubscribeToEventEmitter = require('./hooks/useSubscribeToEventEmitter.js'
|
|
29
29
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
30
30
|
|
31
31
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
32
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
32
33
|
|
33
34
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
34
35
|
var componentClass = "".concat(blockClass, "-filter-panel");
|
@@ -199,7 +200,7 @@ var FilterPanel = function FilterPanel(_ref) {
|
|
199
200
|
};
|
200
201
|
return /*#__PURE__*/React__default["default"].createElement(framerMotion.motion.div, {
|
201
202
|
ref: filterPanelRef,
|
202
|
-
className:
|
203
|
+
className: cx__default["default"](componentClass, "".concat(componentClass, "__container"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(componentClass, "--open"), panelOpen), "".concat(componentClass, "--batch"), showActionSet), "".concat(componentClass, "--instant"), !showActionSet)),
|
203
204
|
initial: false,
|
204
205
|
animate: panelOpen ? 'visible' : 'hidden',
|
205
206
|
custom: shouldReduceMotion,
|
@@ -209,7 +210,7 @@ var FilterPanel = function FilterPanel(_ref) {
|
|
209
210
|
variants: variants.innerContainerVariants
|
210
211
|
}, /*#__PURE__*/React__default["default"].createElement("header", {
|
211
212
|
ref: filterHeadingRef,
|
212
|
-
className:
|
213
|
+
className: cx__default["default"]("".concat(componentClass, "__heading"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(componentClass, "__heading--with-divider"), showDividerLine))
|
213
214
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
214
215
|
className: "".concat(componentClass, "__title")
|
215
216
|
}, title), /*#__PURE__*/React__default["default"].createElement(react.Button, {
|
@@ -265,32 +266,32 @@ var FilterPanel = function FilterPanel(_ref) {
|
|
265
266
|
})), renderActionSet()));
|
266
267
|
};
|
267
268
|
FilterPanel.propTypes = {
|
268
|
-
autoHideFilters: index
|
269
|
-
closeIconDescription: index
|
270
|
-
filterPanelMinHeight: index
|
271
|
-
filterSections: index
|
272
|
-
isFetching: index
|
273
|
-
onApply: index
|
274
|
-
onCancel: index
|
275
|
-
onPanelClose: index
|
276
|
-
onPanelOpen: index
|
277
|
-
open: index
|
278
|
-
primaryActionLabel: index
|
269
|
+
autoHideFilters: index["default"].bool,
|
270
|
+
closeIconDescription: index["default"].string,
|
271
|
+
filterPanelMinHeight: index["default"].number,
|
272
|
+
filterSections: index["default"].array,
|
273
|
+
isFetching: index["default"].bool,
|
274
|
+
onApply: index["default"].func,
|
275
|
+
onCancel: index["default"].func,
|
276
|
+
onPanelClose: index["default"].func,
|
277
|
+
onPanelOpen: index["default"].func,
|
278
|
+
open: index["default"].bool,
|
279
|
+
primaryActionLabel: index["default"].string,
|
279
280
|
/**
|
280
281
|
* Filters from react table's state
|
281
282
|
*/
|
282
|
-
reactTableFiltersState: index
|
283
|
-
id: index
|
284
|
-
type: index
|
285
|
-
value: index
|
283
|
+
reactTableFiltersState: index["default"].arrayOf(index["default"].shape({
|
284
|
+
id: index["default"].string.isRequired,
|
285
|
+
type: index["default"].string.isRequired,
|
286
|
+
value: index["default"].any.isRequired
|
286
287
|
})),
|
287
|
-
searchLabelText: index
|
288
|
-
searchPlaceholder: index
|
289
|
-
secondaryActionLabel: index
|
290
|
-
setAllFilters: index
|
291
|
-
showFilterSearch: index
|
292
|
-
title: index
|
293
|
-
updateMethod: index
|
288
|
+
searchLabelText: index["default"].string,
|
289
|
+
searchPlaceholder: index["default"].string,
|
290
|
+
secondaryActionLabel: index["default"].string,
|
291
|
+
setAllFilters: index["default"].func.isRequired,
|
292
|
+
showFilterSearch: index["default"].bool,
|
293
|
+
title: index["default"].string,
|
294
|
+
updateMethod: index["default"].oneOf([constants.BATCH, constants.INSTANT])
|
294
295
|
};
|
295
296
|
var FilterPanel$1 = FilterPanel;
|
296
297
|
|
@@ -41,7 +41,7 @@ var removeFilterItem = function removeFilterItem(state, index) {
|
|
41
41
|
return state.splice(index, 1);
|
42
42
|
};
|
43
43
|
var updateFilterState = function updateFilterState(state, type, value) {
|
44
|
-
if (type === constants.CHECKBOX) {
|
44
|
+
if (type === constants.CHECKBOX || type === constants.MULTISELECT) {
|
45
45
|
return;
|
46
46
|
}
|
47
47
|
if (type === constants.DATE) {
|
@@ -64,7 +64,7 @@ var clearSingleFilter = function clearSingleFilter(_ref, setAllFilters, state) {
|
|
64
64
|
var filterValues = f.value;
|
65
65
|
var filterType = f.type;
|
66
66
|
updateFilterState(tempState, filterType, value);
|
67
|
-
if (filterType === constants.CHECKBOX) {
|
67
|
+
if (filterType === constants.CHECKBOX || filterType === constants.MULTISELECT) {
|
68
68
|
/**
|
69
69
|
When all checkboxes of a group are all unselected the value still exists in the filtersObjectArray
|
70
70
|
This checks if all the checkboxes are selected = false and removes it from the array
|
@@ -130,15 +130,15 @@ var prepareFiltersForTags = function prepareFiltersForTags(filters, renderDateLa
|
|
130
130
|
key: id,
|
131
131
|
value: (_renderDateLabel = renderDateLabel === null || renderDateLabel === void 0 ? void 0 : renderDateLabel(startDate, endDate)) !== null && _renderDateLabel !== void 0 ? _renderDateLabel : formatDateRange(startDate, endDate)
|
132
132
|
}, sharedFilterProps));
|
133
|
-
} else if (type === constants.CHECKBOX) {
|
134
|
-
value.forEach(function (
|
135
|
-
if (
|
133
|
+
} else if (type === constants.CHECKBOX || type === constants.MULTISELECT) {
|
134
|
+
value.forEach(function (option) {
|
135
|
+
if (option.selected) {
|
136
136
|
tags.push(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({
|
137
137
|
key: id,
|
138
|
-
value:
|
138
|
+
value: option.value
|
139
139
|
}, sharedFilterProps), {}, {
|
140
140
|
onClose: function onClose() {
|
141
|
-
return handleSingleFilterRemoval(id,
|
141
|
+
return handleSingleFilterRemoval(id, option.value);
|
142
142
|
}
|
143
143
|
}));
|
144
144
|
}
|
@@ -16,6 +16,7 @@ export const NUMBER: "number";
|
|
16
16
|
export const CHECKBOX: "checkbox";
|
17
17
|
export const RADIO: "radio";
|
18
18
|
export const DROPDOWN: "dropdown";
|
19
|
+
export const MULTISELECT: "multiSelect";
|
19
20
|
/** Constants for event emitters */
|
20
21
|
export const CLEAR_FILTERS: "clearFilters";
|
21
22
|
export const CLEAR_SINGLE_FILTER: "clearSingleFilter";
|
@@ -23,6 +23,7 @@ var NUMBER = 'number';
|
|
23
23
|
var CHECKBOX = 'checkbox';
|
24
24
|
var RADIO = 'radio';
|
25
25
|
var DROPDOWN = 'dropdown';
|
26
|
+
var MULTISELECT = 'multiSelect';
|
26
27
|
|
27
28
|
/** Constants for event emitters */
|
28
29
|
var CLEAR_FILTERS = 'clearFilters';
|
@@ -44,6 +45,7 @@ exports.DATE = DATE;
|
|
44
45
|
exports.DROPDOWN = DROPDOWN;
|
45
46
|
exports.FLYOUT = FLYOUT;
|
46
47
|
exports.INSTANT = INSTANT;
|
48
|
+
exports.MULTISELECT = MULTISELECT;
|
47
49
|
exports.NUMBER = NUMBER;
|
48
50
|
exports.PANEL = PANEL;
|
49
51
|
exports.PANEL_WIDTH = PANEL_WIDTH;
|
@@ -123,7 +123,7 @@ var useFilters = function useFilters(_ref) {
|
|
123
123
|
var id = _ref3.id;
|
124
124
|
return id === column;
|
125
125
|
});
|
126
|
-
var clearCheckbox = type === constants.CHECKBOX && filterCopy[index].value.every(function (_ref4) {
|
126
|
+
var clearCheckbox = (type === constants.CHECKBOX || type === constants.MULTISELECT) && filterCopy[index].value.every(function (_ref4) {
|
127
127
|
var selected = _ref4.selected;
|
128
128
|
return selected === false;
|
129
129
|
});
|
@@ -295,6 +295,70 @@ var useFilters = function useFilters(_ref) {
|
|
295
295
|
}
|
296
296
|
}));
|
297
297
|
break;
|
298
|
+
case constants.MULTISELECT:
|
299
|
+
{
|
300
|
+
var _filtersState$column5;
|
301
|
+
var isStringArray = components.MultiSelect.items.length && typeof components.MultiSelect.items[0] === 'string';
|
302
|
+
var selectedFilters = (_filtersState$column5 = filtersState[column]) === null || _filtersState$column5 === void 0 ? void 0 : _filtersState$column5.value.filter(function (i) {
|
303
|
+
return i.selected;
|
304
|
+
});
|
305
|
+
var filteredItems = components.MultiSelect.items.map(function (item) {
|
306
|
+
if (selectedFilters.filter(function (a) {
|
307
|
+
return isStringArray ? a.id === item : a.id === item.id;
|
308
|
+
}).length) {
|
309
|
+
return item;
|
310
|
+
}
|
311
|
+
return null;
|
312
|
+
}).filter(Boolean);
|
313
|
+
filter = /*#__PURE__*/React__default["default"].createElement(react.MultiSelect, _rollupPluginBabelHelpers["extends"]({}, components.MultiSelect, {
|
314
|
+
selectedItems: filteredItems,
|
315
|
+
onChange: function onChange(_ref9) {
|
316
|
+
var _components$MultiSele, _components$MultiSele2;
|
317
|
+
var selectedItems = _ref9.selectedItems;
|
318
|
+
var allOptions = filtersState[column].value;
|
319
|
+
// Find selected items from list of options
|
320
|
+
var foundItems = selectedItems.map(function (item) {
|
321
|
+
if (allOptions.filter(function (option) {
|
322
|
+
return isStringArray ? option.id === item : option.id === item.id;
|
323
|
+
})) {
|
324
|
+
return allOptions.filter(function (option) {
|
325
|
+
return isStringArray ? option.id === item : option.id === item.id;
|
326
|
+
})[0];
|
327
|
+
}
|
328
|
+
return null;
|
329
|
+
}).filter(Boolean);
|
330
|
+
|
331
|
+
// Change selected state for those items that have been selected
|
332
|
+
allOptions.map(function (a) {
|
333
|
+
return a.selected = false;
|
334
|
+
});
|
335
|
+
foundItems.map(function (item) {
|
336
|
+
var foundOriginalItem = allOptions.filter(function (a) {
|
337
|
+
return isStringArray ? a === item : a.id === item.id;
|
338
|
+
});
|
339
|
+
if (foundOriginalItem && foundOriginalItem.length) {
|
340
|
+
foundOriginalItem[0].selected = true;
|
341
|
+
}
|
342
|
+
});
|
343
|
+
if (!selectedItems.length) {
|
344
|
+
allOptions.map(function (a) {
|
345
|
+
return a.selected = false;
|
346
|
+
});
|
347
|
+
}
|
348
|
+
setFiltersState(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, filtersState), {}, _rollupPluginBabelHelpers.defineProperty({}, column, {
|
349
|
+
value: allOptions,
|
350
|
+
type: type
|
351
|
+
})));
|
352
|
+
applyFilters({
|
353
|
+
column: column,
|
354
|
+
value: _rollupPluginBabelHelpers.toConsumableArray(filtersState[column].value),
|
355
|
+
type: type
|
356
|
+
});
|
357
|
+
(_components$MultiSele = components.MultiSelect) === null || _components$MultiSele === void 0 || (_components$MultiSele2 = _components$MultiSele.onChange) === null || _components$MultiSele2 === void 0 || _components$MultiSele2.call(_components$MultiSele, selectedItems);
|
358
|
+
}
|
359
|
+
}));
|
360
|
+
break;
|
361
|
+
}
|
298
362
|
}
|
299
363
|
if (isPanel) {
|
300
364
|
return /*#__PURE__*/React__default["default"].createElement(react.Layer, {
|
@@ -67,6 +67,17 @@ var getInitialStateFromFilters = function getInitialStateFromFilters(filters, va
|
|
67
67
|
value: '',
|
68
68
|
type: type
|
69
69
|
};
|
70
|
+
} else if (type === constants.MULTISELECT) {
|
71
|
+
initialFilterState[column] = {
|
72
|
+
value: props.MultiSelect.items.map(function (item) {
|
73
|
+
return {
|
74
|
+
id: typeof item === 'string' ? item : item.id,
|
75
|
+
value: typeof item === 'string' ? item : item.text,
|
76
|
+
selected: false
|
77
|
+
};
|
78
|
+
}),
|
79
|
+
type: type
|
80
|
+
};
|
70
81
|
}
|
71
82
|
};
|
72
83
|
if (variation === constants.FLYOUT) {
|
package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js
CHANGED
@@ -11,13 +11,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
|
-
var
|
15
|
-
var index
|
14
|
+
var cx = require('classnames');
|
15
|
+
var index = require('../../../../../../node_modules/prop-types/index.js');
|
16
16
|
var settings = require('../../../../../../settings.js');
|
17
17
|
|
18
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
19
19
|
|
20
20
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
21
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
21
22
|
|
22
23
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
23
24
|
var InlineEditButton = function InlineEditButton(_ref) {
|
@@ -31,7 +32,7 @@ var InlineEditButton = function InlineEditButton(_ref) {
|
|
31
32
|
columnConfig = _ref.columnConfig,
|
32
33
|
type = _ref.type;
|
33
34
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
34
|
-
className:
|
35
|
+
className: cx__default["default"]("".concat(blockClass, "__inline-edit-button"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__inline-edit-button--disabled"), disabled || nonEditCell), "".concat(blockClass, "__inline-edit-button--with-label-icon"), LabelIcon), "".concat(blockClass, "__inline-edit-button--non-edit"), nonEditCell), "".concat(blockClass, "__inline-edit-button--active"), isActiveCell), "".concat(blockClass, "__inline-edit-button--").concat(type), type === 'date' || type === 'selection')),
|
35
36
|
tabIndex: isActiveCell ? 0 : -1,
|
36
37
|
"data-disabled": disabled || nonEditCell,
|
37
38
|
"aria-disabled": disabled || nonEditCell,
|
@@ -40,7 +41,7 @@ var InlineEditButton = function InlineEditButton(_ref) {
|
|
40
41
|
}, LabelIcon && /*#__PURE__*/React__default["default"].createElement("div", {
|
41
42
|
className: "".concat(blockClass, "__label-icon")
|
42
43
|
}, /*#__PURE__*/React__default["default"].createElement(LabelIcon, null)), label !== '' ? /*#__PURE__*/React__default["default"].createElement("span", {
|
43
|
-
className:
|
44
|
+
className: cx__default["default"]("".concat(blockClass, "__inline-edit-button-label"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__inline-edit-button-label-with-icon"), !nonEditCell), "".concat(blockClass, "__defaultStringRenderer--multiline"), columnConfig === null || columnConfig === void 0 ? void 0 : columnConfig.multiLineWrap))
|
44
45
|
}, label) : /*#__PURE__*/React__default["default"].createElement("span", {
|
45
46
|
className: "".concat(blockClass, "__placeholder")
|
46
47
|
}, placeholder), !nonEditCell && Icon && /*#__PURE__*/React__default["default"].createElement("div", {
|
@@ -48,16 +49,16 @@ var InlineEditButton = function InlineEditButton(_ref) {
|
|
48
49
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, null)));
|
49
50
|
};
|
50
51
|
InlineEditButton.propTypes = {
|
51
|
-
columnConfig: index
|
52
|
-
disabled: index
|
53
|
-
isActiveCell: index
|
54
|
-
label: index
|
55
|
-
labelIcon: index
|
56
|
-
nonEditCell: index
|
57
|
-
placeholder: index
|
58
|
-
renderIcon: index
|
59
|
-
type: index
|
60
|
-
value: index
|
52
|
+
columnConfig: index["default"].object,
|
53
|
+
disabled: index["default"].bool,
|
54
|
+
isActiveCell: index["default"].bool,
|
55
|
+
label: index["default"].oneOfType([index["default"].string, index["default"].number]),
|
56
|
+
labelIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
57
|
+
nonEditCell: index["default"].bool,
|
58
|
+
placeholder: index["default"].string,
|
59
|
+
renderIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
60
|
+
type: index["default"].oneOf(['text', 'number', 'selection', 'date']),
|
61
|
+
value: index["default"].oneOfType([index["default"].string, index["default"].node])
|
61
62
|
};
|
62
63
|
|
63
64
|
exports.InlineEditButton = InlineEditButton;
|
@@ -11,11 +11,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
11
11
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
13
|
var React = require('react');
|
14
|
-
var index
|
14
|
+
var index = require('../../../../../../node_modules/prop-types/index.js');
|
15
15
|
var react = require('@carbon/react');
|
16
16
|
var icons = require('@carbon/react/icons');
|
17
17
|
var settings = require('../../../../../../settings.js');
|
18
|
-
var
|
18
|
+
var cx = require('classnames');
|
19
19
|
var propsHelper = require('../../../../../../global/js/utils/props-helper.js');
|
20
20
|
var InlineEditContext = require('../InlineEditContext/InlineEditContext.js');
|
21
21
|
var usePreviousValue = require('../../../../../../global/js/hooks/usePreviousValue.js');
|
@@ -24,6 +24,7 @@ var InlineEditButton = require('../InlineEditButton/InlineEditButton.js');
|
|
24
24
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
25
25
|
|
26
26
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
27
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
27
28
|
|
28
29
|
var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
|
29
30
|
var InlineEditCell = function InlineEditCell(_ref) {
|
@@ -252,7 +253,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
252
253
|
var renderDropdownItem = function renderDropdownItem(item) {
|
253
254
|
var includesIcon = !!(item !== null && item !== void 0 && item.icon);
|
254
255
|
return includesIcon ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(item.icon), /*#__PURE__*/React__default["default"].createElement("span", {
|
255
|
-
className:
|
256
|
+
className: cx__default["default"]("".concat(blockClass, "__inline-edit--select-item"))
|
256
257
|
}, item === null || item === void 0 ? void 0 : item.text)) : item === null || item === void 0 ? void 0 : item.text;
|
257
258
|
};
|
258
259
|
var handleTransformedItem = function handleTransformedItem(items) {
|
@@ -272,7 +273,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
272
273
|
style: {
|
273
274
|
width: cell.column.totalWidth
|
274
275
|
},
|
275
|
-
className:
|
276
|
+
className: cx__default["default"]("".concat(blockClass, "__inline-edit--select"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__inline-edit--select-").concat(rowSize), rowSize)),
|
276
277
|
items: (inputProps === null || inputProps === void 0 ? void 0 : inputProps.items) || [],
|
277
278
|
initialSelectedItem: cell.value,
|
278
279
|
itemToElement: handleTransformedItem(inputProps === null || inputProps === void 0 ? void 0 : inputProps.items),
|
@@ -334,7 +335,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
334
335
|
width: cell.column.totalWidth
|
335
336
|
},
|
336
337
|
datePickerType: "single",
|
337
|
-
className:
|
338
|
+
className: cx__default["default"]("".concat(blockClass, "__inline-edit--date"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__inline-edit--date-").concat(rowSize), rowSize)),
|
338
339
|
onChange: function onChange(newDate) {
|
339
340
|
var _datePickerPreparedPr;
|
340
341
|
var newDateObj = newDate[0];
|
@@ -442,7 +443,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
442
443
|
"data-inline-type": type,
|
443
444
|
onClick: !nonEditCell ? handleInlineCellClick : addActiveState,
|
444
445
|
onKeyDown: !nonEditCell ? handleKeyDown : null,
|
445
|
-
className:
|
446
|
+
className: cx__default["default"]("".concat(blockClass, "__inline-edit--outer-cell-button"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__inline-edit--outer-cell-button--").concat(rowSize), rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--lg"), !rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--invalid"), config === null || config === void 0 || (_config$validator = config.validator) === null || _config$validator === void 0 ? void 0 : _config$validator.call(config, cellValue)))
|
446
447
|
}, !inEditMode && /*#__PURE__*/React__default["default"].createElement(InlineEditButton.InlineEditButton, {
|
447
448
|
isActiveCell: cellId === activeCellId,
|
448
449
|
renderIcon: setRenderIcon(),
|
@@ -457,20 +458,20 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
457
458
|
);
|
458
459
|
};
|
459
460
|
InlineEditCell.propTypes = {
|
460
|
-
cell: index
|
461
|
-
config: index
|
462
|
-
instance: index
|
463
|
-
columns: index
|
464
|
-
onDataUpdate: index
|
465
|
-
rows: index
|
466
|
-
rowSize: index
|
467
|
-
tableId: index
|
461
|
+
cell: index["default"].object,
|
462
|
+
config: index["default"].object,
|
463
|
+
instance: index["default"].shape({
|
464
|
+
columns: index["default"].arrayOf(index["default"].object),
|
465
|
+
onDataUpdate: index["default"].func,
|
466
|
+
rows: index["default"].arrayOf(index["default"].object),
|
467
|
+
rowSize: index["default"].string,
|
468
|
+
tableId: index["default"].string
|
468
469
|
}),
|
469
|
-
nonEditCell: index
|
470
|
-
placeholder: index
|
471
|
-
tabIndex: index
|
472
|
-
type: index
|
473
|
-
value: index
|
470
|
+
nonEditCell: index["default"].bool,
|
471
|
+
placeholder: index["default"].string,
|
472
|
+
tabIndex: index["default"].number,
|
473
|
+
type: index["default"].oneOf(['text', 'number', 'selection', 'date']),
|
474
|
+
value: index["default"].oneOfType([index["default"].string, index["default"].node, index["default"].object])
|
474
475
|
};
|
475
476
|
|
476
477
|
exports.InlineEditCell = InlineEditCell;
|