@carbon/ibm-products 2.47.0 → 2.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +165 -50
- 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 +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 +30 -16
- 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 +165 -50
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/index.d.ts +2 -1
- package/es/components/AboutModal/AboutModal.d.ts +1 -2
- package/es/components/AboutModal/index.d.ts +8 -1
- package/es/components/ActionSet/ActionSet.d.ts +1 -2
- package/es/components/ActionSet/ActionSet.js +2 -2
- package/es/components/ActionSet/index.d.ts +8 -1
- package/es/components/AddSelect/AddSelectBody.js +3 -3
- package/es/components/AddSelect/index.d.ts +2 -1
- package/es/components/Card/Card.d.ts +1 -0
- package/es/components/Card/Card.js +5 -2
- package/es/components/Carousel/index.d.ts +9 -2
- package/es/components/Cascade/Cascade.d.ts +1 -2
- package/es/components/Cascade/Cascade.js +2 -2
- package/es/components/Cascade/index.d.ts +2 -1
- package/es/components/Checklist/Checklist.d.ts +2 -2
- package/es/components/Checklist/Checklist.js +6 -6
- package/es/components/Checklist/index.d.ts +8 -1
- package/es/components/Coachmark/Coachmark.d.ts +1 -2
- package/es/components/Coachmark/Coachmark.js +5 -5
- package/es/components/Coachmark/index.d.ts +10 -3
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +2 -3
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +4 -3
- package/es/components/CoachmarkBeacon/index.d.ts +8 -1
- package/es/components/CoachmarkButton/CoachmarkButton.d.ts +1 -2
- package/es/components/CoachmarkButton/CoachmarkButton.js +4 -2
- package/es/components/CoachmarkButton/index.d.ts +8 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -2
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +6 -5
- package/es/components/CoachmarkFixed/index.d.ts +8 -1
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +1 -2
- package/es/components/CoachmarkOverlayElement/index.d.ts +8 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +1 -2
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +10 -6
- package/es/components/CoachmarkOverlayElements/index.d.ts +8 -1
- package/es/components/CoachmarkStack/CoachmarkStack.d.ts +67 -2
- package/es/components/CoachmarkStack/CoachmarkStack.js +16 -9
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +71 -2
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +19 -21
- package/es/components/ComboButton/ComboButton.d.ts +1 -1
- package/es/components/ComboButton/ComboButton.js +4 -4
- package/es/components/ComboButton/index.d.ts +9 -2
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +0 -1
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +28 -20
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +6 -19
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +29 -36
- package/es/components/CreateFullPage/CreateFullPage.d.ts +1 -1
- package/es/components/CreateFullPage/CreateFullPage.js +5 -5
- package/es/components/CreateFullPage/index.d.ts +9 -2
- package/es/components/CreateModal/CreateModal.d.ts +2 -3
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateModal/index.d.ts +2 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateSidePanel/index.d.ts +7 -1
- package/es/components/CreateTearsheet/CreateTearsheet.d.ts +2 -2
- package/es/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/es/components/CreateTearsheet/index.d.ts +10 -3
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +1 -1
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
- package/es/components/CreateTearsheetNarrow/index.d.ts +8 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +3 -4
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +11 -10
- package/es/components/DataSpreadsheet/index.d.ts +8 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +7 -5
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +4 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +3 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +10 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -1
- package/es/components/Datagrid/Datagrid/addons/stateReducer.d.ts +7 -0
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +70 -27
- package/es/components/Datagrid/types/index.d.ts +2 -0
- package/es/components/Datagrid/useFiltering.js +1 -1
- package/es/components/Datagrid/useNestedRowExpander.js +65 -16
- package/es/components/Datagrid/useRowRenderer.js +44 -2
- package/es/components/Datagrid/useSortableColumns.js +14 -1
- package/es/components/DelimitedList/DelimitedList.d.ts +1 -2
- package/es/components/DelimitedList/index.d.ts +8 -1
- package/es/components/EditFullPage/EditFullPage.d.ts +1 -2
- package/es/components/EditFullPage/index.d.ts +8 -1
- package/es/components/EditInPlace/EditInPlace.d.ts +5 -1
- package/es/components/EditInPlace/EditInPlace.js +11 -5
- package/es/components/EditInPlace/index.d.ts +8 -1
- package/es/components/EditSidePanel/EditSidePanel.d.ts +2 -3
- package/es/components/EditSidePanel/EditSidePanel.js +3 -3
- package/es/components/EditSidePanel/index.d.ts +8 -1
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +1 -2
- package/es/components/EditTearsheetNarrow/index.d.ts +8 -1
- package/es/components/EditUpdateCards/EditUpdateCards.d.ts +1 -1
- package/es/components/EditUpdateCards/EditUpdateCards.js +2 -1
- package/es/components/EditUpdateCards/index.d.ts +8 -1
- package/es/components/ExportModal/ExportModal.d.ts +3 -3
- package/es/components/ExportModal/ExportModal.js +3 -3
- package/es/components/ExportModal/index.d.ts +2 -1
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +1 -1
- package/es/components/ExpressiveCard/ExpressiveCard.js +1 -1
- package/es/components/ExpressiveCard/index.d.ts +2 -1
- package/es/components/FeatureFlags/index.d.ts +26 -21
- package/es/components/FeatureFlags/index.js +1 -10
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +1 -1
- package/es/components/FilterSummary/FilterSummary.d.ts +1 -1
- package/es/components/FilterSummary/FilterSummary.js +7 -8
- package/es/components/FilterSummary/index.d.ts +8 -1
- package/es/components/FullPageError/FullPageError.d.ts +1 -2
- package/es/components/FullPageError/FullPageError.js +10 -7
- package/es/components/FullPageError/assets/Error403SVG.d.ts +3 -1
- package/es/components/FullPageError/assets/Error403SVG.js +6 -3
- package/es/components/FullPageError/assets/Error404SVG.d.ts +3 -1
- package/es/components/FullPageError/assets/Error404SVG.js +6 -3
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +3 -1
- package/es/components/FullPageError/assets/ErrorGenericSVG.js +6 -3
- package/es/components/FullPageError/index.d.ts +8 -1
- package/es/components/GetStartedCard/GetStartedCard.d.ts +1 -1
- package/es/components/GetStartedCard/index.d.ts +8 -1
- package/es/components/Guidebanner/Guidebanner.d.ts +1 -2
- package/es/components/Guidebanner/Guidebanner.js +5 -4
- package/es/components/Guidebanner/GuidebannerElement.d.ts +1 -2
- package/es/components/Guidebanner/GuidebannerElementButton.d.ts +2 -3
- package/es/components/Guidebanner/GuidebannerElementButton.js +2 -2
- package/es/components/Guidebanner/GuidebannerElementLink.d.ts +2 -3
- package/es/components/Guidebanner/GuidebannerElementLink.js +1 -1
- package/es/components/Guidebanner/index.d.ts +14 -4
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +2 -1
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +2 -1
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -0
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +3 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.js +6 -3
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +3 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.js +6 -3
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +3 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.js +6 -3
- package/es/components/ImportModal/ImportModal.d.ts +1 -1
- package/es/components/ImportModal/ImportModal.js +3 -3
- package/es/components/ImportModal/index.d.ts +2 -1
- package/es/components/InlineTip/InlineTip.d.ts +1 -1
- package/es/components/InlineTip/InlineTip.js +4 -4
- package/es/components/InlineTip/InlineTipButton.d.ts +1 -2
- package/es/components/InlineTip/InlineTipButton.js +1 -1
- package/es/components/InlineTip/InlineTipLink.d.ts +1 -2
- package/es/components/InlineTip/InlineTipLink.js +2 -2
- package/es/components/InlineTip/index.d.ts +12 -3
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +6 -5
- package/es/components/InterstitialScreen/index.d.ts +8 -1
- package/es/components/InterstitialScreenView/InterstitialScreenView.d.ts +1 -2
- package/es/components/InterstitialScreenView/index.d.ts +8 -1
- package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +1 -2
- package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +1 -1
- package/es/components/InterstitialScreenViewModule/index.d.ts +8 -1
- package/es/components/MultiAddSelect/MultiAddSelect.d.ts +1 -1
- package/es/components/MultiAddSelect/MultiAddSelect.js +1 -1
- package/es/components/MultiAddSelect/index.d.ts +2 -1
- package/es/components/Nav/NavItem.js +4 -1
- package/es/components/Nav/NavList.js +3 -0
- package/es/components/NonLinearReading/NonLinearReading.d.ts +1 -1
- package/es/components/NonLinearReading/NonLinearReading.js +2 -2
- package/es/components/NonLinearReading/index.d.ts +8 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +2 -2
- package/es/components/NotificationsPanel/NotificationsPanel.js +3 -3
- package/es/components/NotificationsPanel/index.d.ts +8 -1
- package/es/components/OptionsTile/OptionsTile.d.ts +2 -3
- package/es/components/OptionsTile/OptionsTile.js +4 -5
- package/es/components/OptionsTile/index.d.ts +8 -1
- package/es/components/PageHeader/PageHeader.d.ts +2 -2
- package/es/components/PageHeader/PageHeader.js +9 -9
- package/es/components/PageHeader/index.d.ts +2 -1
- package/es/components/ProductiveCard/ProductiveCard.d.ts +5 -1
- package/es/components/ProductiveCard/ProductiveCard.js +8 -2
- package/es/components/ProductiveCard/index.d.ts +2 -1
- package/es/components/RemoveModal/RemoveModal.d.ts +3 -4
- package/es/components/RemoveModal/RemoveModal.js +6 -6
- package/es/components/RemoveModal/index.d.ts +2 -1
- package/es/components/Saving/Saving.d.ts +1 -1
- package/es/components/Saving/Saving.js +3 -3
- package/es/components/Saving/index.d.ts +2 -1
- package/es/components/SearchBar/SearchBar.d.ts +1 -1
- package/es/components/SearchBar/SearchBar.js +2 -2
- package/es/components/SearchBar/index.d.ts +8 -1
- package/es/components/SidePanel/SidePanel.d.ts +1 -1
- package/es/components/SidePanel/SidePanel.js +23 -11
- package/es/components/SidePanel/index.d.ts +8 -1
- package/es/components/SingleAddSelect/SingleAddSelect.d.ts +1 -2
- package/es/components/SingleAddSelect/SingleAddSelect.js +1 -1
- package/es/components/SingleAddSelect/index.d.ts +2 -1
- package/es/components/StatusIcon/StatusIcon.d.ts +1 -1
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/StatusIcon/index.d.ts +8 -1
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +1 -2
- package/es/components/SteppedAnimatedMedia/index.d.ts +8 -1
- package/es/components/TagOverflow/TagOverflow.d.ts +3 -3
- package/es/components/TagOverflow/TagOverflow.js +4 -4
- package/es/components/TagOverflow/index.d.ts +8 -1
- package/es/components/TagSet/TagSet.d.ts +2 -2
- package/es/components/TagSet/TagSet.js +5 -5
- package/es/components/TagSet/index.d.ts +2 -1
- package/es/components/Tearsheet/Tearsheet.d.ts +2 -3
- package/es/components/Tearsheet/Tearsheet.js +5 -5
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +3 -3
- package/es/components/Tearsheet/TearsheetNarrow.js +5 -5
- package/es/components/Tearsheet/TearsheetShell.js +10 -5
- package/es/components/Tearsheet/index.d.ts +10 -2
- package/es/components/Toolbar/Toolbar.d.ts +1 -1
- package/es/components/Toolbar/Toolbar.js +3 -3
- package/es/components/Toolbar/ToolbarButton.d.ts +2 -3
- package/es/components/Toolbar/ToolbarButton.js +3 -3
- package/es/components/Toolbar/ToolbarGroup.d.ts +1 -2
- package/es/components/Toolbar/ToolbarGroup.js +3 -3
- package/es/components/Toolbar/index.d.ts +12 -3
- package/es/components/TruncatedList/TruncatedList.d.ts +1 -2
- package/es/components/TruncatedList/TruncatedList.js +2 -2
- package/es/components/TruncatedList/index.d.ts +8 -1
- package/es/components/UserProfileImage/UserProfileImage.d.ts +3 -3
- package/es/components/UserProfileImage/UserProfileImage.js +5 -4
- package/es/components/UserProfileImage/index.d.ts +2 -1
- package/es/components/WebTerminal/WebTerminal.d.ts +4 -4
- package/es/components/WebTerminal/WebTerminal.js +6 -6
- package/es/components/WebTerminal/WebTerminalContentWrapper.d.ts +2 -3
- package/es/components/WebTerminal/index.d.ts +11 -3
- package/es/components/index.d.ts +73 -72
- package/es/global/js/hooks/useFocus.d.ts +1 -1
- package/es/global/js/hooks/useFocus.js +5 -4
- package/es/global/js/package-settings.d.ts +2 -0
- package/es/global/js/package-settings.js +2 -0
- package/es/index.js +46 -44
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +2 -4
- package/es/settings.d.ts +2 -0
- package/lib/components/APIKeyModal/index.d.ts +2 -1
- package/lib/components/AboutModal/AboutModal.d.ts +1 -2
- package/lib/components/AboutModal/index.d.ts +8 -1
- package/lib/components/ActionSet/ActionSet.d.ts +1 -2
- package/lib/components/ActionSet/ActionSet.js +2 -2
- package/lib/components/ActionSet/index.d.ts +8 -1
- package/lib/components/AddSelect/AddSelectBody.js +2 -2
- package/lib/components/AddSelect/index.d.ts +2 -1
- package/lib/components/Card/Card.d.ts +1 -0
- package/lib/components/Card/Card.js +5 -2
- package/lib/components/Carousel/index.d.ts +9 -2
- package/lib/components/Cascade/Cascade.d.ts +1 -2
- package/lib/components/Cascade/Cascade.js +2 -2
- package/lib/components/Cascade/index.d.ts +2 -1
- package/lib/components/Checklist/Checklist.d.ts +2 -2
- package/lib/components/Checklist/Checklist.js +6 -6
- package/lib/components/Checklist/index.d.ts +8 -1
- package/lib/components/Coachmark/Coachmark.d.ts +1 -2
- package/lib/components/Coachmark/Coachmark.js +5 -5
- package/lib/components/Coachmark/index.d.ts +10 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +2 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +4 -3
- package/lib/components/CoachmarkBeacon/index.d.ts +8 -1
- package/lib/components/CoachmarkButton/CoachmarkButton.d.ts +1 -2
- package/lib/components/CoachmarkButton/CoachmarkButton.js +4 -2
- package/lib/components/CoachmarkButton/index.d.ts +8 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.d.ts +1 -2
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +6 -5
- package/lib/components/CoachmarkFixed/index.d.ts +8 -1
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +1 -2
- package/lib/components/CoachmarkOverlayElement/index.d.ts +8 -1
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +1 -2
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +10 -6
- package/lib/components/CoachmarkOverlayElements/index.d.ts +8 -1
- package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +67 -2
- package/lib/components/CoachmarkStack/CoachmarkStack.js +16 -9
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +71 -2
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +19 -21
- package/lib/components/ComboButton/ComboButton.d.ts +1 -1
- package/lib/components/ComboButton/ComboButton.js +5 -5
- package/lib/components/ComboButton/index.d.ts +9 -2
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +0 -1
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +27 -19
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +4 -17
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +29 -36
- package/lib/components/CreateFullPage/CreateFullPage.d.ts +1 -1
- package/lib/components/CreateFullPage/CreateFullPage.js +5 -5
- package/lib/components/CreateFullPage/index.d.ts +9 -2
- package/lib/components/CreateModal/CreateModal.d.ts +2 -3
- package/lib/components/CreateModal/CreateModal.js +1 -1
- package/lib/components/CreateModal/index.d.ts +2 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/lib/components/CreateSidePanel/index.d.ts +7 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +2 -2
- package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/lib/components/CreateTearsheet/index.d.ts +10 -3
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +1 -1
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +2 -2
- package/lib/components/CreateTearsheetNarrow/index.d.ts +8 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +3 -4
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +11 -10
- package/lib/components/DataSpreadsheet/index.d.ts +8 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +7 -5
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +4 -4
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +3 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +10 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +2 -1
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.d.ts +7 -0
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +70 -26
- package/lib/components/Datagrid/types/index.d.ts +2 -0
- package/lib/components/Datagrid/useNestedRowExpander.js +64 -15
- package/lib/components/Datagrid/useRowRenderer.js +44 -2
- package/lib/components/Datagrid/useSortableColumns.js +14 -1
- package/lib/components/DelimitedList/DelimitedList.d.ts +1 -2
- package/lib/components/DelimitedList/index.d.ts +8 -1
- package/lib/components/EditFullPage/EditFullPage.d.ts +1 -2
- package/lib/components/EditFullPage/index.d.ts +8 -1
- package/lib/components/EditInPlace/EditInPlace.d.ts +5 -1
- package/lib/components/EditInPlace/EditInPlace.js +10 -4
- package/lib/components/EditInPlace/index.d.ts +8 -1
- package/lib/components/EditSidePanel/EditSidePanel.d.ts +2 -3
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditSidePanel/index.d.ts +8 -1
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +1 -2
- package/lib/components/EditTearsheetNarrow/index.d.ts +8 -1
- package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +1 -1
- package/lib/components/EditUpdateCards/EditUpdateCards.js +2 -1
- package/lib/components/EditUpdateCards/index.d.ts +8 -1
- package/lib/components/ExportModal/ExportModal.d.ts +3 -3
- package/lib/components/ExportModal/ExportModal.js +3 -3
- package/lib/components/ExportModal/index.d.ts +2 -1
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +1 -1
- package/lib/components/ExpressiveCard/ExpressiveCard.js +1 -1
- package/lib/components/ExpressiveCard/index.d.ts +2 -1
- package/lib/components/FeatureFlags/index.d.ts +26 -21
- package/lib/components/FeatureFlags/index.js +1 -10
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +1 -1
- package/lib/components/FilterSummary/FilterSummary.d.ts +1 -1
- package/lib/components/FilterSummary/FilterSummary.js +7 -8
- package/lib/components/FilterSummary/index.d.ts +8 -1
- package/lib/components/FullPageError/FullPageError.d.ts +1 -2
- package/lib/components/FullPageError/FullPageError.js +10 -7
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +3 -1
- package/lib/components/FullPageError/assets/Error403SVG.js +6 -3
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +3 -1
- package/lib/components/FullPageError/assets/Error404SVG.js +6 -3
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +3 -1
- package/lib/components/FullPageError/assets/ErrorGenericSVG.js +6 -3
- package/lib/components/FullPageError/index.d.ts +8 -1
- package/lib/components/GetStartedCard/GetStartedCard.d.ts +1 -1
- package/lib/components/GetStartedCard/index.d.ts +8 -1
- package/lib/components/Guidebanner/Guidebanner.d.ts +1 -2
- package/lib/components/Guidebanner/Guidebanner.js +18 -17
- package/lib/components/Guidebanner/GuidebannerElement.d.ts +1 -2
- package/lib/components/Guidebanner/GuidebannerElementButton.d.ts +2 -3
- package/lib/components/Guidebanner/GuidebannerElementButton.js +2 -2
- package/lib/components/Guidebanner/GuidebannerElementLink.d.ts +2 -3
- package/lib/components/Guidebanner/GuidebannerElementLink.js +1 -1
- package/lib/components/Guidebanner/index.d.ts +14 -4
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +2 -1
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +2 -1
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -0
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +3 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +6 -3
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +3 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +6 -3
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +3 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +6 -3
- package/lib/components/ImportModal/ImportModal.d.ts +1 -1
- package/lib/components/ImportModal/ImportModal.js +3 -3
- package/lib/components/ImportModal/index.d.ts +2 -1
- package/lib/components/InlineTip/InlineTip.d.ts +1 -1
- package/lib/components/InlineTip/InlineTip.js +4 -4
- package/lib/components/InlineTip/InlineTipButton.d.ts +1 -2
- package/lib/components/InlineTip/InlineTipButton.js +1 -1
- package/lib/components/InlineTip/InlineTipLink.d.ts +1 -2
- package/lib/components/InlineTip/InlineTipLink.js +2 -2
- package/lib/components/InlineTip/index.d.ts +12 -3
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.js +6 -5
- package/lib/components/InterstitialScreen/index.d.ts +8 -1
- package/lib/components/InterstitialScreenView/InterstitialScreenView.d.ts +1 -2
- package/lib/components/InterstitialScreenView/index.d.ts +8 -1
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +1 -2
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +1 -1
- package/lib/components/InterstitialScreenViewModule/index.d.ts +8 -1
- package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +1 -1
- package/lib/components/MultiAddSelect/MultiAddSelect.js +1 -1
- package/lib/components/MultiAddSelect/index.d.ts +2 -1
- package/lib/components/Nav/NavItem.js +9 -7
- package/lib/components/Nav/NavList.js +8 -6
- package/lib/components/NonLinearReading/NonLinearReading.d.ts +1 -1
- package/lib/components/NonLinearReading/NonLinearReading.js +2 -2
- package/lib/components/NonLinearReading/index.d.ts +8 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +2 -2
- package/lib/components/NotificationsPanel/NotificationsPanel.js +3 -3
- package/lib/components/NotificationsPanel/index.d.ts +8 -1
- package/lib/components/OptionsTile/OptionsTile.d.ts +2 -3
- package/lib/components/OptionsTile/OptionsTile.js +5 -6
- package/lib/components/OptionsTile/index.d.ts +8 -1
- package/lib/components/PageHeader/PageHeader.d.ts +2 -2
- package/lib/components/PageHeader/PageHeader.js +8 -8
- package/lib/components/PageHeader/index.d.ts +2 -1
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +5 -1
- package/lib/components/ProductiveCard/ProductiveCard.js +8 -2
- package/lib/components/ProductiveCard/index.d.ts +2 -1
- package/lib/components/RemoveModal/RemoveModal.d.ts +3 -4
- package/lib/components/RemoveModal/RemoveModal.js +6 -6
- package/lib/components/RemoveModal/index.d.ts +2 -1
- package/lib/components/Saving/Saving.d.ts +1 -1
- package/lib/components/Saving/Saving.js +2 -2
- package/lib/components/Saving/index.d.ts +2 -1
- package/lib/components/SearchBar/SearchBar.d.ts +1 -1
- package/lib/components/SearchBar/SearchBar.js +1 -1
- package/lib/components/SearchBar/index.d.ts +8 -1
- package/lib/components/SidePanel/SidePanel.d.ts +1 -1
- package/lib/components/SidePanel/SidePanel.js +22 -10
- package/lib/components/SidePanel/index.d.ts +8 -1
- package/lib/components/SingleAddSelect/SingleAddSelect.d.ts +1 -2
- package/lib/components/SingleAddSelect/SingleAddSelect.js +1 -1
- package/lib/components/SingleAddSelect/index.d.ts +2 -1
- package/lib/components/StatusIcon/StatusIcon.d.ts +1 -1
- package/lib/components/StatusIcon/StatusIcon.js +1 -1
- package/lib/components/StatusIcon/index.d.ts +8 -1
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +1 -2
- package/lib/components/SteppedAnimatedMedia/index.d.ts +8 -1
- package/lib/components/TagOverflow/TagOverflow.d.ts +3 -3
- package/lib/components/TagOverflow/TagOverflow.js +4 -4
- package/lib/components/TagOverflow/index.d.ts +8 -1
- package/lib/components/TagSet/TagSet.d.ts +2 -2
- package/lib/components/TagSet/TagSet.js +4 -4
- package/lib/components/TagSet/index.d.ts +2 -1
- package/lib/components/Tearsheet/Tearsheet.d.ts +2 -3
- package/lib/components/Tearsheet/Tearsheet.js +4 -4
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +3 -3
- package/lib/components/Tearsheet/TearsheetNarrow.js +4 -4
- package/lib/components/Tearsheet/TearsheetShell.js +10 -5
- package/lib/components/Tearsheet/index.d.ts +10 -2
- package/lib/components/Toolbar/Toolbar.d.ts +1 -1
- package/lib/components/Toolbar/Toolbar.js +4 -4
- package/lib/components/Toolbar/ToolbarButton.d.ts +2 -3
- package/lib/components/Toolbar/ToolbarButton.js +4 -4
- package/lib/components/Toolbar/ToolbarGroup.d.ts +1 -2
- package/lib/components/Toolbar/ToolbarGroup.js +4 -4
- package/lib/components/Toolbar/index.d.ts +12 -3
- package/lib/components/TruncatedList/TruncatedList.d.ts +1 -2
- package/lib/components/TruncatedList/TruncatedList.js +2 -2
- package/lib/components/TruncatedList/index.d.ts +8 -1
- package/lib/components/UserProfileImage/UserProfileImage.d.ts +3 -3
- package/lib/components/UserProfileImage/UserProfileImage.js +5 -4
- package/lib/components/UserProfileImage/index.d.ts +2 -1
- package/lib/components/WebTerminal/WebTerminal.d.ts +4 -4
- package/lib/components/WebTerminal/WebTerminal.js +18 -18
- package/lib/components/WebTerminal/WebTerminalContentWrapper.d.ts +2 -3
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +4 -4
- package/lib/components/WebTerminal/index.d.ts +11 -3
- package/lib/components/index.d.ts +73 -72
- package/lib/global/js/hooks/useFocus.d.ts +1 -1
- package/lib/global/js/hooks/useFocus.js +5 -4
- package/lib/global/js/package-settings.d.ts +2 -0
- package/lib/global/js/package-settings.js +2 -0
- package/lib/index.js +169 -159
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +2 -4
- package/lib/settings.d.ts +2 -0
- package/package.json +9 -9
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +2 -10
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +30 -10
- package/scss/components/Datagrid/styles/_useNestedRows.scss +1 -1
- package/telemetry.yml +1 -1
@@ -1 +1,2 @@
|
|
1
|
-
export { CreateModal } from
|
1
|
+
export { CreateModal } from './CreateModal';
|
2
|
+
export type { CreateModalProps } from './CreateModal';
|
@@ -12,8 +12,8 @@ import cx from 'classnames';
|
|
12
12
|
import { pkg } from '../../settings.js';
|
13
13
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
14
14
|
import { Form } from '@carbon/react';
|
15
|
-
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
16
15
|
import { SidePanel } from '../SidePanel/SidePanel.js';
|
16
|
+
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
17
17
|
|
18
18
|
var _excluded = ["className", "children", "disableSubmit", "formTitle", "formDescription", "id", "onRequestClose", "onRequestSubmit", "open", "primaryButtonText", "secondaryButtonText", "selectorPageContent", "selectorPrimaryFocus", "subtitle", "title"];
|
19
19
|
|
@@ -1 +1,7 @@
|
|
1
|
-
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2021
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
export { CreateSidePanel } from './CreateSidePanel';
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
-
import React, {
|
7
|
+
import React, { Dispatch, PropsWithChildren, ReactNode, SetStateAction } from 'react';
|
8
8
|
export interface StepsContextType {
|
9
9
|
currentStep: number;
|
10
10
|
setIsDisabled: Dispatch<SetStateAction<boolean>>;
|
@@ -16,7 +16,7 @@ export interface StepsContextType {
|
|
16
16
|
}
|
17
17
|
export declare const StepsContext: React.Context<StepsContextType | null>;
|
18
18
|
export declare const StepNumberContext: React.Context<number>;
|
19
|
-
interface CreateTearsheetProps extends PropsWithChildren {
|
19
|
+
export interface CreateTearsheetProps extends PropsWithChildren {
|
20
20
|
/**
|
21
21
|
* The back button text
|
22
22
|
*/
|
@@ -7,14 +7,14 @@
|
|
7
7
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default, { forwardRef, useState, useRef, useEffect, createContext } from 'react';
|
10
|
-
import PropTypes from '../../node_modules/prop-types/index.js';
|
11
|
-
import cx from 'classnames';
|
12
10
|
import { Form } from '@carbon/react';
|
11
|
+
import PropTypes from '../../node_modules/prop-types/index.js';
|
13
12
|
import { TearsheetShell } from '../Tearsheet/TearsheetShell.js';
|
14
|
-
import
|
13
|
+
import cx from 'classnames';
|
15
14
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
16
|
-
import { lastIndexInArray } from '../../global/js/utils/lastIndexInArray.js';
|
17
15
|
import { getNumberOfHiddenSteps } from '../../global/js/utils/getNumberOfHiddenSteps.js';
|
16
|
+
import { lastIndexInArray } from '../../global/js/utils/lastIndexInArray.js';
|
17
|
+
import { pkg } from '../../settings.js';
|
18
18
|
import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
|
19
19
|
import { useCreateComponentFocus } from '../../global/js/hooks/useCreateComponentFocus.js';
|
20
20
|
import { useValidCreateStepCount } from '../../global/js/hooks/useValidCreateStepCount.js';
|
@@ -1,3 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2021, 2021
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
export { CreateTearsheet } from './CreateTearsheet';
|
8
|
+
export { CreateTearsheetStep } from './CreateTearsheetStep';
|
9
|
+
export { CreateTearsheetDivider } from './CreateTearsheetDivider';
|
10
|
+
export type { CreateTearsheetProps } from './CreateTearsheet';
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
import React, { PropsWithChildren, ReactNode } from 'react';
|
8
8
|
type VerticalPosition = 'normal' | 'lower';
|
9
|
-
interface CreateTearsheetNarrowProps extends PropsWithChildren {
|
9
|
+
export interface CreateTearsheetNarrowProps extends PropsWithChildren {
|
10
10
|
/**
|
11
11
|
* Provide the contents of the CreateTearsheetNarrow.
|
12
12
|
*/
|
@@ -7,12 +7,12 @@
|
|
7
7
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default from 'react';
|
10
|
+
import { Form } from '@carbon/react';
|
10
11
|
import PropTypes from '../../node_modules/prop-types/index.js';
|
12
|
+
import { TearsheetNarrow } from '../Tearsheet/TearsheetNarrow.js';
|
11
13
|
import cx from 'classnames';
|
12
|
-
import { Form } from '@carbon/react';
|
13
14
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
14
15
|
import { pkg } from '../../settings.js';
|
15
|
-
import { TearsheetNarrow } from '../Tearsheet/TearsheetNarrow.js';
|
16
16
|
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
17
17
|
|
18
18
|
var _excluded = ["children", "className", "description", "disableSubmit", "formDescription", "formTitle", "label", "open", "onRequestClose", "onRequestSubmit", "primaryButtonText", "secondaryButtonText", "selectorPrimaryFocus", "title", "verticalPosition"];
|
@@ -1 +1,8 @@
|
|
1
|
-
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2021, 2021
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
export { CreateTearsheetNarrow } from './CreateTearsheetNarrow';
|
8
|
+
export type { CreateTearsheetNarrowProps } from './CreateTearsheetNarrow';
|
@@ -4,10 +4,10 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
-
import React from 'react';
|
8
|
-
import { Column } from 'react-table';
|
9
7
|
import { Size, Theme } from './types';
|
10
|
-
|
8
|
+
import { Column } from 'react-table';
|
9
|
+
import React from 'react';
|
10
|
+
export interface DataSpreadsheetProps {
|
11
11
|
/**
|
12
12
|
* Specifies the cell height
|
13
13
|
*/
|
@@ -94,4 +94,3 @@ interface DataSpreadsheetProps {
|
|
94
94
|
* DataSpreadsheet: used to organize and display large amounts of structured data, separated by columns and rows in a grid-like format.
|
95
95
|
*/
|
96
96
|
export declare let DataSpreadsheet: React.ForwardRefExoticComponent<DataSpreadsheetProps & React.RefAttributes<HTMLDivElement>>;
|
97
|
-
export {};
|
@@ -6,24 +6,24 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, defineProperty as _defineProperty, typeof as _typeof, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import React__default, { useRef, useState, useMemo, useCallback, useEffect } from 'react';
|
10
9
|
import { useTable, useBlockLayout, useColumnOrder } from 'react-table';
|
11
|
-
import
|
12
|
-
import cx from 'classnames';
|
13
|
-
import { pkg } from '../../settings.js';
|
10
|
+
import React__default, { useRef, useState, useMemo, useCallback, useEffect } from 'react';
|
14
11
|
import { DataSpreadsheetBody } from './DataSpreadsheetBody.js';
|
15
12
|
import { DataSpreadsheetHeader } from './DataSpreadsheetHeader.js';
|
16
|
-
import
|
17
|
-
import { getScrollbarWidth } from '../../global/js/utils/getScrollbarWidth.js';
|
18
|
-
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
19
|
-
import { deepCloneObject } from '../../global/js/utils/deepCloneObject.js';
|
13
|
+
import PropTypes from '../../node_modules/prop-types/index.js';
|
20
14
|
import { createActiveCellFn } from './utils/createActiveCellFn.js';
|
15
|
+
import cx from 'classnames';
|
16
|
+
import { deepCloneObject } from '../../global/js/utils/deepCloneObject.js';
|
21
17
|
import { getCellSize } from './utils/getCellSize.js';
|
18
|
+
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
19
|
+
import { getScrollbarWidth } from '../../global/js/utils/getScrollbarWidth.js';
|
20
|
+
import { handleEditSubmit } from './utils/handleEditSubmit.js';
|
22
21
|
import { handleHeaderCellSelection } from './utils/handleHeaderCellSelection.js';
|
22
|
+
import { handleKeyPress } from './utils/commonEventHandlers.js';
|
23
|
+
import { pkg } from '../../settings.js';
|
23
24
|
import { removeCellSelections } from './utils/removeCellSelections.js';
|
24
25
|
import { selectAllCells } from './utils/selectAllCells.js';
|
25
|
-
import
|
26
|
-
import { handleKeyPress } from './utils/commonEventHandlers.js';
|
26
|
+
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
27
27
|
import { useActiveElement } from '../../global/js/hooks/useActiveElement.js';
|
28
28
|
import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
|
29
29
|
import { useMultipleKeyTracking } from './hooks/useMultipleKeyTracking.js';
|
@@ -33,6 +33,7 @@ import { useMoveActiveCell } from './hooks/useMoveActiveCell.js';
|
|
33
33
|
import { useSpreadsheetEdit } from './hooks/useSpreadsheetEdit.js';
|
34
34
|
|
35
35
|
var _excluded = ["cellSize", "className", "columns", "data", "defaultEmptyRowCount", "onDataUpdate", "onColDrag", "id", "onActiveCellChange", "onSelectionAreaChange", "renderRowHeader", "renderRowHeaderDirection", "disableColumnSwapping", "readOnlyTable", "selectAllAriaLabel", "spreadsheetAriaLabel", "theme", "totalVisibleColumns"];
|
36
|
+
|
36
37
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
37
38
|
var blockClass = "".concat(pkg.prefix, "--data-spreadsheet");
|
38
39
|
var componentName = 'DataSpreadsheet';
|
@@ -1 +1,8 @@
|
|
1
|
-
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2022, 2022
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
export { DataSpreadsheet } from './DataSpreadsheet';
|
8
|
+
export type { DataSpreadsheetProps } from './DataSpreadsheet';
|
@@ -14,6 +14,7 @@ import { CLEAR_SINGLE_FILTER, CLEAR_FILTERS } from './addons/Filtering/constants
|
|
14
14
|
import DatagridBody from './DatagridBody.js';
|
15
15
|
import DatagridHead from './DatagridHead.js';
|
16
16
|
import DatagridToolbar from './DatagridToolbar.js';
|
17
|
+
import FilterSummary from '../../FilterSummary/FilterSummary.js';
|
17
18
|
import PropTypes from '../../../node_modules/prop-types/index.js';
|
18
19
|
import cx from 'classnames';
|
19
20
|
import { handleGridFocus } from './addons/InlineEdit/handleGridFocus.js';
|
@@ -26,7 +27,6 @@ import { useClickOutside } from '../../../global/js/hooks/useClickOutside.js';
|
|
26
27
|
import { useMultipleKeyTracking } from '../../DataSpreadsheet/hooks/useMultipleKeyTracking.js';
|
27
28
|
import useSubscribeToEventEmitter from './addons/Filtering/hooks/useSubscribeToEventEmitter.js';
|
28
29
|
import FilterPanel from './addons/Filtering/FilterPanel.js';
|
29
|
-
import FilterSummary from '../../FilterSummary/FilterSummary.js';
|
30
30
|
|
31
31
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
32
32
|
var gcClass = "".concat(blockClass, "__grid-container");
|
@@ -40,7 +40,8 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
40
40
|
withMouseHover = datagridState.withMouseHover,
|
41
41
|
setMouseOverRowIndex = datagridState.setMouseOverRowIndex,
|
42
42
|
headers = datagridState.headers,
|
43
|
-
visibleColumns = datagridState.visibleColumns
|
43
|
+
visibleColumns = datagridState.visibleColumns,
|
44
|
+
getAsyncSubRows = datagridState.getAsyncSubRows;
|
44
45
|
var getVisibleNestedRowCount = function getVisibleNestedRowCount(_ref) {
|
45
46
|
var isExpanded = _ref.isExpanded,
|
46
47
|
subRows = _ref.subRows;
|
@@ -117,15 +118,16 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
117
118
|
var _r$original;
|
118
119
|
return /*#__PURE__*/isValidElement(r === null || r === void 0 || (_r$original = r.original) === null || _r$original === void 0 ? void 0 : _r$original.slug);
|
119
120
|
});
|
120
|
-
var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(carbon.prefix, "--data-table--selected"), row.isSelected), "".concat(blockClass, "__slug--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug)));
|
121
|
+
var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(blockClass, "__carbon-row-expandable--async"), getAsyncSubRows && row.depth > 0), "".concat(carbon.prefix, "--data-table--selected"), row.isSelected), "".concat(blockClass, "__slug--row"), /*#__PURE__*/isValidElement(row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.slug)));
|
121
122
|
var withActionsColumn = headers ? !!headers.filter(function (header) {
|
122
123
|
return header.isAction;
|
123
124
|
}).length : false;
|
125
|
+
var rowKey = !row.isSkeleton ? key : row.skeletonKey;
|
124
126
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
125
|
-
key: key
|
127
|
+
key: "".concat(rowKey, "__").concat(key, "__row--fragment")
|
126
128
|
}, /*#__PURE__*/React__default.createElement(TableRow, _extends({}, rowProps, {
|
127
129
|
className: cx(rowClassNames, className),
|
128
|
-
key:
|
130
|
+
key: rowKey,
|
129
131
|
onMouseEnter: hoverHandler,
|
130
132
|
onMouseLeave: handleMouseLeave,
|
131
133
|
onFocus: hoverHandler,
|
@@ -164,7 +166,7 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
164
166
|
style.flex = lastVisibleFlexStyle;
|
165
167
|
}
|
166
168
|
return /*#__PURE__*/React__default.createElement(TableCell, _extends({
|
167
|
-
className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), row.canExpand && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)), columnClassname)
|
169
|
+
className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), (row.canExpand || getAsyncSubRows) && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)), columnClassname)
|
168
170
|
}, restProps, {
|
169
171
|
style: style,
|
170
172
|
key: cell.column.id
|
package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
CHANGED
@@ -8,10 +8,11 @@
|
|
8
8
|
import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default, { useState, useCallback, useEffect } from 'react';
|
10
10
|
import PropTypes from '../../../../../node_modules/prop-types/index.js';
|
11
|
+
import '../../../../Tearsheet/Tearsheet.js';
|
12
|
+
import { TearsheetNarrow } from '../../../../Tearsheet/TearsheetNarrow.js';
|
11
13
|
import Columns from './Columns.js';
|
12
14
|
import Actions from './Actions.js';
|
13
15
|
import { pkg } from '../../../../../settings.js';
|
14
|
-
import { TearsheetNarrow } from '../../../../Tearsheet/TearsheetNarrow.js';
|
15
16
|
|
16
17
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
17
18
|
var CustomizeColumnsTearsheet = function CustomizeColumnsTearsheet(_ref) {
|
@@ -161,10 +161,10 @@ var DraggableItemsList = function DraggableItemsList(_ref) {
|
|
161
161
|
strategy: verticalListSortingStrategy
|
162
162
|
}, visibleCols.map(function (colDef) {
|
163
163
|
var colHeaderTitle = getNodeTextContent(colDef.Header);
|
164
|
-
var
|
165
|
-
var
|
166
|
-
|
167
|
-
|
164
|
+
var parts = colHeaderTitle.split(new RegExp("(".concat(filterString, ")"), 'gi'));
|
165
|
+
var highlightedText = parts.map(function (part) {
|
166
|
+
return part.toLowerCase() === filterString.toLowerCase() ? "<strong>".concat(part, "</strong>") : part;
|
167
|
+
}).join('');
|
168
168
|
var isFrozenColumn = !!colDef.sticky;
|
169
169
|
var isDisabled = colDef.disabled;
|
170
170
|
var listContents = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Checkbox, {
|
@@ -1,7 +1,8 @@
|
|
1
1
|
export default FilterFlyout;
|
2
|
-
declare function FilterFlyout({ updateMethod, flyoutIconDescription, filters, title, primaryActionLabel, onFlyoutOpen, onFlyoutClose, onApply, onCancel, secondaryActionLabel, setAllFilters, data, reactTableFiltersState, }: {
|
2
|
+
declare function FilterFlyout({ updateMethod, flyoutIconDescription, align, filters, title, primaryActionLabel, onFlyoutOpen, onFlyoutClose, onApply, onCancel, secondaryActionLabel, setAllFilters, data, reactTableFiltersState, }: {
|
3
3
|
updateMethod: any;
|
4
4
|
flyoutIconDescription?: string | undefined;
|
5
|
+
align?: string | undefined;
|
5
6
|
filters?: any[] | undefined;
|
6
7
|
title?: string | undefined;
|
7
8
|
primaryActionLabel?: string | undefined;
|
@@ -16,6 +17,7 @@ declare function FilterFlyout({ updateMethod, flyoutIconDescription, filters, ti
|
|
16
17
|
}): import("react/jsx-runtime").JSX.Element;
|
17
18
|
declare namespace FilterFlyout {
|
18
19
|
namespace propTypes {
|
20
|
+
let align: PropTypes.Requireable<string>;
|
19
21
|
let data: PropTypes.Validator<any[]>;
|
20
22
|
let filters: PropTypes.Validator<(PropTypes.InferProps<{
|
21
23
|
type: PropTypes.Validator<string>;
|
@@ -10,6 +10,7 @@ import { BATCH, INSTANT, FLYOUT, CLEAR_FILTERS } from './constants.js';
|
|
10
10
|
import { usePrefix, IconButton } from '@carbon/react';
|
11
11
|
import React__default, { useState, useRef, useEffect } from 'react';
|
12
12
|
import { breakpoints, px } from '@carbon/layout';
|
13
|
+
import { ActionSet } from '../../../../ActionSet/ActionSet.js';
|
13
14
|
import { Filter } from '@carbon/react/icons';
|
14
15
|
import PropTypes from '../../../../../node_modules/prop-types/index.js';
|
15
16
|
import cx from 'classnames';
|
@@ -19,7 +20,6 @@ import useShouldDisableButtons from './hooks/useShouldDisableButtons.js';
|
|
19
20
|
import { useWindowResize } from '../../../../../global/js/hooks/useWindowResize.js';
|
20
21
|
import { useClickOutside } from '../../../../../global/js/hooks/useClickOutside.js';
|
21
22
|
import useSubscribeToEventEmitter from './hooks/useSubscribeToEventEmitter.js';
|
22
|
-
import { ActionSet } from '../../../../ActionSet/ActionSet.js';
|
23
23
|
|
24
24
|
var _Filter;
|
25
25
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
@@ -28,12 +28,15 @@ var defaults = {
|
|
28
28
|
flyoutIconDescription: 'Open filters',
|
29
29
|
title: 'Filter',
|
30
30
|
primaryActionLabel: 'Apply',
|
31
|
-
secondaryActionLabel: 'Cancel'
|
31
|
+
secondaryActionLabel: 'Cancel',
|
32
|
+
align: 'bottom'
|
32
33
|
};
|
33
34
|
var FilterFlyout = function FilterFlyout(_ref) {
|
34
35
|
var updateMethod = _ref.updateMethod,
|
35
36
|
_ref$flyoutIconDescri = _ref.flyoutIconDescription,
|
36
37
|
flyoutIconDescription = _ref$flyoutIconDescri === void 0 ? defaults.flyoutIconDescription : _ref$flyoutIconDescri,
|
38
|
+
_ref$align = _ref.align,
|
39
|
+
align = _ref$align === void 0 ? defaults.align : _ref$align,
|
37
40
|
_ref$filters = _ref.filters,
|
38
41
|
filters = _ref$filters === void 0 ? [] : _ref$filters,
|
39
42
|
_ref$title = _ref.title,
|
@@ -224,7 +227,7 @@ var FilterFlyout = function FilterFlyout(_ref) {
|
|
224
227
|
}, /*#__PURE__*/React__default.createElement(IconButton, {
|
225
228
|
label: flyoutIconDescription,
|
226
229
|
kind: "ghost",
|
227
|
-
align:
|
230
|
+
align: align,
|
228
231
|
onClick: open ? closeFlyout : openFlyout,
|
229
232
|
className: cx("".concat(componentClass, "__trigger"), _defineProperty({}, "".concat(componentClass, "__trigger--open"), open)),
|
230
233
|
disabled: data.length === 0
|
@@ -241,6 +244,10 @@ var FilterFlyout = function FilterFlyout(_ref) {
|
|
241
244
|
}, renderFilters())), renderActionSet()));
|
242
245
|
};
|
243
246
|
FilterFlyout.propTypes = {
|
247
|
+
/**
|
248
|
+
* Tooltip alignment for the filter button
|
249
|
+
*/
|
250
|
+
align: PropTypes.string,
|
244
251
|
/**
|
245
252
|
* All data rows in the table
|
246
253
|
*/
|
@@ -11,13 +11,13 @@ import { PANEL, BATCH, CLEAR_FILTERS, INSTANT } from './constants.js';
|
|
11
11
|
import React__default, { useState, useContext, useRef, useMemo, useEffect } from 'react';
|
12
12
|
import { panelVariants, innerContainerVariants, actionSetVariants } from './motion/variants.js';
|
13
13
|
import { motion, useReducedMotion } from 'framer-motion';
|
14
|
+
import { ActionSet } from '../../../../ActionSet/ActionSet.js';
|
14
15
|
import { Close } from '@carbon/react/icons';
|
15
16
|
import { FilterContext } from './FilterProvider.js';
|
16
17
|
import PropTypes from '../../../../../node_modules/prop-types/index.js';
|
17
18
|
import cx from 'classnames';
|
18
19
|
import { pkg } from '../../../../../settings.js';
|
19
20
|
import { rem } from '@carbon/layout';
|
20
|
-
import { ActionSet } from '../../../../ActionSet/ActionSet.js';
|
21
21
|
import useFilters from './hooks/useFilters.js';
|
22
22
|
import useShouldDisableButtons from './hooks/useShouldDisableButtons.js';
|
23
23
|
import useSubscribeToEventEmitter from './hooks/useSubscribeToEventEmitter.js';
|
@@ -14,4 +14,11 @@ export function handleSelectAllRowData({ dispatch, rows, getRowId, indeterminate
|
|
14
14
|
indeterminate: any;
|
15
15
|
isChecked: any;
|
16
16
|
}): any;
|
17
|
+
export function handleDynamicRowCheck({ dispatch, status, rowId, depth, index, }: {
|
18
|
+
dispatch: any;
|
19
|
+
status: any;
|
20
|
+
rowId: any;
|
21
|
+
depth: any;
|
22
|
+
index: any;
|
23
|
+
}): any;
|
17
24
|
export function stateReducer(newState: any, action: any): any;
|
@@ -14,6 +14,7 @@ var COLUMN_RESIZE_END = 'columnDoneResizing';
|
|
14
14
|
var INIT = 'init';
|
15
15
|
var TOGGLE_ROW_SELECTED = 'toggleRowSelected';
|
16
16
|
var TOGGLE_ALL_ROWS_SELECTED = 'toggleAllRowsSelected';
|
17
|
+
var DYNAMIC_ROW_CHECK = 'dynamicRowCheck';
|
17
18
|
var blockClass = "".concat(pkg.prefix, "--datagrid");
|
18
19
|
var handleColumnResizeEndEvent = function handleColumnResizeEndEvent(dispatch, onColResizeEnd, headerId, isKeyEvent) {
|
19
20
|
dispatch({
|
@@ -77,15 +78,57 @@ var handleSelectAllRowData = function handleSelectAllRowData(_ref2) {
|
|
77
78
|
}
|
78
79
|
});
|
79
80
|
};
|
81
|
+
var handleDynamicRowCheck = function handleDynamicRowCheck(_ref3) {
|
82
|
+
var dispatch = _ref3.dispatch,
|
83
|
+
status = _ref3.status,
|
84
|
+
rowId = _ref3.rowId,
|
85
|
+
depth = _ref3.depth,
|
86
|
+
index = _ref3.index;
|
87
|
+
return dispatch({
|
88
|
+
type: DYNAMIC_ROW_CHECK,
|
89
|
+
payload: {
|
90
|
+
status: status,
|
91
|
+
rowId: rowId,
|
92
|
+
depth: depth,
|
93
|
+
index: index
|
94
|
+
}
|
95
|
+
});
|
96
|
+
};
|
80
97
|
var stateReducer = function stateReducer(newState, action) {
|
81
98
|
switch (action.type) {
|
99
|
+
case DYNAMIC_ROW_CHECK:
|
100
|
+
{
|
101
|
+
var _action$payload = action.payload,
|
102
|
+
status = _action$payload.status,
|
103
|
+
rowId = _action$payload.rowId,
|
104
|
+
depth = _action$payload.depth,
|
105
|
+
index = _action$payload.index;
|
106
|
+
if (status === 'start') {
|
107
|
+
var skeletonRow = function skeletonRow(id) {
|
108
|
+
return {
|
109
|
+
isSkeleton: true,
|
110
|
+
values: 'skeleton',
|
111
|
+
id: id,
|
112
|
+
depth: depth,
|
113
|
+
index: index,
|
114
|
+
skeletonKey: "".concat(id, "__skeleton")
|
115
|
+
};
|
116
|
+
};
|
117
|
+
return _objectSpread2(_objectSpread2({}, newState), {}, {
|
118
|
+
dynamicRowSkeleton: skeletonRow(rowId)
|
119
|
+
});
|
120
|
+
}
|
121
|
+
return _objectSpread2(_objectSpread2({}, newState), {}, {
|
122
|
+
dynamicRowSkeleton: null
|
123
|
+
});
|
124
|
+
}
|
82
125
|
case TOGGLE_ALL_ROWS_SELECTED:
|
83
126
|
{
|
84
|
-
var
|
85
|
-
rows =
|
86
|
-
getRowId =
|
87
|
-
indeterminate =
|
88
|
-
isChecked =
|
127
|
+
var _ref4 = action.payload || {},
|
128
|
+
rows = _ref4.rows,
|
129
|
+
getRowId = _ref4.getRowId,
|
130
|
+
indeterminate = _ref4.indeterminate,
|
131
|
+
isChecked = _ref4.isChecked;
|
89
132
|
var newSelectedRowIds = {};
|
90
133
|
if (rows) {
|
91
134
|
var newSelectedRowData = {};
|
@@ -107,10 +150,10 @@ var stateReducer = function stateReducer(newState, action) {
|
|
107
150
|
}
|
108
151
|
case TOGGLE_ROW_SELECTED:
|
109
152
|
{
|
110
|
-
var
|
111
|
-
rowData =
|
112
|
-
_isChecked =
|
113
|
-
_getRowId =
|
153
|
+
var _ref5 = action.payload || {},
|
154
|
+
rowData = _ref5.rowData,
|
155
|
+
_isChecked = _ref5.isChecked,
|
156
|
+
_getRowId = _ref5.getRowId;
|
114
157
|
if (!rowData) {
|
115
158
|
return;
|
116
159
|
}
|
@@ -121,9 +164,9 @@ var stateReducer = function stateReducer(newState, action) {
|
|
121
164
|
}
|
122
165
|
if (rowData && !_isChecked) {
|
123
166
|
var newData = _objectSpread2({}, newState.selectedRowData);
|
124
|
-
var dataWithRemovedRow = Object.fromEntries(Object.entries(newData).filter(function (
|
125
|
-
var
|
126
|
-
key =
|
167
|
+
var dataWithRemovedRow = Object.fromEntries(Object.entries(newData).filter(function (_ref6) {
|
168
|
+
var _ref7 = _slicedToArray(_ref6, 1),
|
169
|
+
key = _ref7[0];
|
127
170
|
return parseInt(key) !== parseInt(_getRowId(rowData.original, rowData.index));
|
128
171
|
}));
|
129
172
|
return _objectSpread2(_objectSpread2({}, newState), {}, {
|
@@ -140,27 +183,27 @@ var stateReducer = function stateReducer(newState, action) {
|
|
140
183
|
}
|
141
184
|
case COLUMN_RESIZE_START:
|
142
185
|
{
|
143
|
-
var
|
144
|
-
headerId =
|
186
|
+
var _ref8 = action.payload || {},
|
187
|
+
headerId = _ref8.headerId;
|
145
188
|
return _objectSpread2(_objectSpread2({}, newState), {}, {
|
146
189
|
isResizing: headerId
|
147
190
|
});
|
148
191
|
}
|
149
192
|
case COLUMN_RESIZING:
|
150
193
|
{
|
151
|
-
var
|
152
|
-
_headerId =
|
153
|
-
newWidth =
|
154
|
-
defaultWidth =
|
194
|
+
var _ref9 = action.payload || {},
|
195
|
+
_headerId = _ref9.headerId,
|
196
|
+
newWidth = _ref9.newWidth,
|
197
|
+
defaultWidth = _ref9.defaultWidth;
|
155
198
|
var newColumnWidth = {};
|
156
199
|
if (typeof _headerId === 'undefined') {
|
157
200
|
return _objectSpread2({}, newState);
|
158
201
|
}
|
159
202
|
newColumnWidth[_headerId] = newWidth;
|
160
|
-
var cleanedWidths = Object.fromEntries(Object.entries(newState.columnResizing.columnWidths).filter(function (
|
161
|
-
var
|
162
|
-
|
163
|
-
var value =
|
203
|
+
var cleanedWidths = Object.fromEntries(Object.entries(newState.columnResizing.columnWidths).filter(function (_ref10) {
|
204
|
+
var _ref11 = _slicedToArray(_ref10, 2);
|
205
|
+
_ref11[0];
|
206
|
+
var value = _ref11[1];
|
164
207
|
return !isNaN(value);
|
165
208
|
}));
|
166
209
|
var headerIdArray = newState.columnResizing.headerIdWidths || [];
|
@@ -175,10 +218,10 @@ var stateReducer = function stateReducer(newState, action) {
|
|
175
218
|
}
|
176
219
|
case COLUMN_RESIZE_END:
|
177
220
|
{
|
178
|
-
var
|
179
|
-
onColResizeEnd =
|
180
|
-
_headerId2 =
|
181
|
-
isKeyEvent =
|
221
|
+
var _ref12 = action.payload || {},
|
222
|
+
onColResizeEnd = _ref12.onColResizeEnd,
|
223
|
+
_headerId2 = _ref12.headerId,
|
224
|
+
isKeyEvent = _ref12.isKeyEvent;
|
182
225
|
var currentColumn = {};
|
183
226
|
currentColumn[_headerId2] = newState.columnResizing.columnWidths[_headerId2];
|
184
227
|
var allChangedColumns = newState.columnResizing.columnWidths;
|
@@ -204,4 +247,4 @@ var stateReducer = function stateReducer(newState, action) {
|
|
204
247
|
}
|
205
248
|
};
|
206
249
|
|
207
|
-
export { handleColumnResizeEndEvent, handleColumnResizingEvent, handleSelectAllRowData, handleToggleRowSelected, stateReducer };
|
250
|
+
export { handleColumnResizeEndEvent, handleColumnResizingEvent, handleDynamicRowCheck, handleSelectAllRowData, handleToggleRowSelected, stateReducer };
|
@@ -120,6 +120,7 @@ export interface DatagridRow<T extends object = any> extends Omit<Row<T>, 'cells
|
|
120
120
|
cells: Array<DataGridCell>;
|
121
121
|
isSkeleton?: boolean;
|
122
122
|
hasExpanded?: boolean;
|
123
|
+
skeletonKey?: string;
|
123
124
|
}
|
124
125
|
export interface DataGridHeader<T extends object = any> extends ColumnInstance, UseResizeColumnsColumnProps<T>, UseSortByColumnProps<T> {
|
125
126
|
className(className: any, arg1: {
|
@@ -245,6 +246,7 @@ export interface DataGridState<T extends object = any> extends TableCommonProps,
|
|
245
246
|
expandedContentHeight?: number;
|
246
247
|
onRowExpand?: (row: DatagridRow, event: React.MouseEvent<HTMLElement>) => void;
|
247
248
|
ExpandedRowContentComponent?: JSXElementConstructor<any>;
|
249
|
+
getAsyncSubRows?: (row: DatagridRow) => void;
|
248
250
|
}
|
249
251
|
export interface DataGridData {
|
250
252
|
instance?: DataGridTableInstance;
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
import { defineProperty as _defineProperty, slicedToArray as _slicedToArray, typeof as _typeof, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import { useMemo } from 'react';
|
10
|
-
import { DATE, NUMBER, CHECKBOX, BATCH
|
10
|
+
import { MULTISELECT, DATE, NUMBER, CHECKBOX, BATCH } from './Datagrid/addons/Filtering/constants.js';
|
11
11
|
import FilterFlyout from './Datagrid/addons/Filtering/FilterFlyout.js';
|
12
12
|
|
13
13
|
var handleMultiFilter = function handleMultiFilter(rows, id, value) {
|