@carbon/ibm-products 2.52.0 → 2.53.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/css/index-full-carbon.css +306 -298
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +94 -27
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +110 -44
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +179 -118
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
- package/es/components/APIKeyModal/APIKeyModal.js +1 -1
- package/es/components/AboutModal/AboutModal.js +2 -4
- package/es/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
- package/es/components/AddSelect/AddSelectBody.js +8 -1
- package/es/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
- package/es/components/AddSelect/AddSelectColumn.d.ts +2 -1
- package/es/components/AddSelect/AddSelectFilter.d.ts +2 -1
- package/es/components/AddSelect/AddSelectFilter.js +5 -5
- package/es/components/AddSelect/AddSelectFormControl.d.ts +2 -1
- package/es/components/AddSelect/AddSelectList.d.ts +2 -1
- package/es/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
- package/es/components/AddSelect/AddSelectRow.d.ts +2 -1
- package/es/components/AddSelect/AddSelectSidebar.d.ts +2 -1
- package/es/components/AddSelect/AddSelectSidebar.js +1 -1
- package/es/components/AddSelect/AddSelectSort.d.ts +2 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
- package/es/components/Card/Card.d.ts +5 -1
- package/es/components/Card/Card.js +9 -2
- package/es/components/Card/CardFooter.d.ts +1 -1
- package/es/components/Card/CardHeader.d.ts +12 -2
- package/es/components/Card/CardHeader.js +17 -9
- package/es/components/Carousel/Carousel.js +17 -8
- package/es/components/Checklist/ChecklistChart.js +22 -6
- package/es/components/Coachmark/Coachmark.js +18 -11
- package/es/components/Coachmark/CoachmarkOverlay.js +30 -19
- package/es/components/Coachmark/utils/hooks.js +1 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
- package/es/components/CoachmarkStack/CoachmarkStack.js +1 -1
- package/es/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +3 -6
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -8
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +0 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +65 -61
- package/es/components/ConditionBuilder/utils/util.js +0 -2
- package/es/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -1
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -4
- package/es/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +13 -10
- package/es/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +14 -10
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
- package/es/components/Datagrid/Datagrid/addons/{Slug/DatagridSlug.d.ts → AiLabel/DatagridAiLabel.d.ts} +3 -3
- package/es/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +29 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/es/components/Datagrid/index.d.ts +29 -22
- package/es/components/Datagrid/types/index.d.ts +7 -7
- package/es/components/Datagrid/useActionsColumn.js +1 -2
- package/es/components/Datagrid/useColumnCenterAlign.js +1 -2
- package/es/components/Datagrid/useColumnRightAlign.js +1 -2
- package/es/components/Datagrid/useCustomizeColumns.js +1 -2
- package/es/components/Datagrid/useDatagrid.js +1 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +3 -3
- package/es/components/Datagrid/useDisableSelectRows.js +1 -2
- package/es/components/Datagrid/useExpandedRow.js +1 -2
- package/es/components/Datagrid/useFiltering.js +1 -2
- package/es/components/Datagrid/useFlexResize.js +1 -1
- package/es/components/Datagrid/useInfiniteScroll.js +1 -2
- package/es/components/Datagrid/useInlineEdit.js +1 -2
- package/es/components/Datagrid/useNestedRowExpander.js +2 -2
- package/es/components/Datagrid/useNestedRows.js +1 -2
- package/es/components/Datagrid/useOnRowClick.js +1 -2
- package/es/components/Datagrid/useParentDimensions.js +5 -5
- package/es/components/Datagrid/useRowExpander.js +6 -7
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -2
- package/es/components/Datagrid/useSelectAllToggle.js +1 -2
- package/es/components/Datagrid/useSelectRows.js +1 -2
- package/es/components/Datagrid/useSortableColumns.js +7 -8
- package/es/components/Datagrid/useStickyColumn.js +4 -5
- package/es/components/EmptyStates/EmptyState.d.ts +1 -1
- package/es/components/EmptyStates/EmptyState.js +8 -2
- package/es/components/EmptyStates/EmptyStateContent.d.ts +2 -1
- package/es/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
- package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/ErrorEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.js +5 -5
- package/es/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +8 -8
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
- package/es/components/EmptyStates/index.d.ts +22 -8
- package/es/components/ExportModal/ExportModal.js +1 -3
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
- package/es/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/es/components/FeatureFlags/index.d.ts +5 -4
- package/es/components/FeatureFlags/index.js +17 -10
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
- package/es/components/FullPageError/assets/Error403SVG.d.ts +2 -1
- package/es/components/FullPageError/assets/Error404SVG.d.ts +2 -1
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
- package/es/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +4 -4
- package/es/components/Nav/NavItem.d.ts +2 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +8 -1
- package/es/components/PageHeader/PageHeader.d.ts +2 -0
- package/es/components/PageHeader/PageHeader.js +4 -1
- package/es/components/PageHeader/PageHeaderTitle.d.ts +3 -1
- package/es/components/PageHeader/PageHeaderTitle.js +42 -8
- package/es/components/ProductiveCard/ProductiveCard.d.ts +5 -0
- package/es/components/ProductiveCard/ProductiveCard.js +4 -0
- package/es/components/ScrollGradient/ScrollGradient.js +2 -2
- package/es/components/SidePanel/SidePanel.d.ts +5 -0
- package/es/components/SidePanel/SidePanel.js +30 -16
- package/es/components/SimpleHeader/SimpleHeader.d.ts +2 -1
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/es/components/TagOverflow/TagOverflow.d.ts +3 -0
- package/es/components/TagOverflow/TagOverflow.js +9 -4
- package/es/components/TagOverflow/TagOverflowModal.d.ts +6 -1
- package/es/components/TagOverflow/TagOverflowModal.js +17 -6
- package/es/components/TagOverflow/TagOverflowPopover.js +17 -9
- package/es/components/TagSet/TagSet.d.ts +4 -0
- package/es/components/TagSet/TagSet.js +20 -8
- package/es/components/TagSet/TagSetModal.js +0 -1
- package/es/components/Tearsheet/TearsheetShell.d.ts +13 -4
- package/es/components/Tearsheet/TearsheetShell.js +31 -20
- package/es/components/Toolbar/Toolbar.js +1 -1
- package/es/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
- package/es/components/TruncatedList/TruncatedList.js +1 -1
- package/es/components/_Canary/Canary.d.ts +2 -1
- package/es/global/js/hooks/usePreviousValue.js +1 -1
- package/es/index.js +29 -29
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +742 -740
- package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
- package/lib/components/APIKeyModal/APIKeyModal.js +1 -1
- package/lib/components/AboutModal/AboutModal.js +2 -4
- package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
- package/lib/components/AddSelect/AddSelectBody.js +8 -1
- package/lib/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectColumn.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectFilter.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectFilter.js +4 -4
- package/lib/components/AddSelect/AddSelectFormControl.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectList.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectRow.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectSidebar.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectSidebar.js +1 -1
- package/lib/components/AddSelect/AddSelectSort.d.ts +2 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
- package/lib/components/Card/Card.d.ts +5 -1
- package/lib/components/Card/Card.js +9 -2
- package/lib/components/Card/CardFooter.d.ts +1 -1
- package/lib/components/Card/CardHeader.d.ts +12 -2
- package/lib/components/Card/CardHeader.js +17 -9
- package/lib/components/Carousel/Carousel.js +17 -8
- package/lib/components/Checklist/ChecklistChart.js +20 -4
- package/lib/components/Coachmark/Coachmark.js +17 -10
- package/lib/components/Coachmark/CoachmarkOverlay.js +29 -18
- package/lib/components/Coachmark/utils/hooks.js +1 -1
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
- package/lib/components/CoachmarkStack/CoachmarkStack.js +1 -1
- package/lib/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +3 -6
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -8
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +0 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +65 -61
- package/lib/components/ConditionBuilder/utils/util.js +0 -2
- package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -1
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -4
- package/lib/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +13 -10
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +14 -10
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
- package/lib/components/Datagrid/Datagrid/addons/{Slug/DatagridSlug.d.ts → AiLabel/DatagridAiLabel.d.ts} +3 -3
- package/lib/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +31 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/lib/components/Datagrid/index.d.ts +29 -22
- package/lib/components/Datagrid/types/index.d.ts +7 -7
- package/lib/components/Datagrid/useActionsColumn.js +1 -2
- package/lib/components/Datagrid/useColumnCenterAlign.js +1 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +1 -2
- package/lib/components/Datagrid/useCustomizeColumns.js +1 -2
- package/lib/components/Datagrid/useDatagrid.js +1 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +3 -3
- package/lib/components/Datagrid/useDisableSelectRows.js +1 -2
- package/lib/components/Datagrid/useExpandedRow.js +1 -2
- package/lib/components/Datagrid/useFiltering.js +1 -2
- package/lib/components/Datagrid/useFlexResize.js +1 -1
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -2
- package/lib/components/Datagrid/useInlineEdit.js +1 -2
- package/lib/components/Datagrid/useNestedRowExpander.js +2 -2
- package/lib/components/Datagrid/useNestedRows.js +1 -2
- package/lib/components/Datagrid/useOnRowClick.js +1 -2
- package/lib/components/Datagrid/useParentDimensions.js +5 -5
- package/lib/components/Datagrid/useRowExpander.js +6 -7
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -2
- package/lib/components/Datagrid/useSelectAllToggle.js +1 -2
- package/lib/components/Datagrid/useSelectRows.js +1 -2
- package/lib/components/Datagrid/useSortableColumns.js +7 -8
- package/lib/components/Datagrid/useStickyColumn.js +4 -5
- package/lib/components/EmptyStates/EmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/EmptyState.js +7 -1
- package/lib/components/EmptyStates/EmptyStateContent.d.ts +2 -1
- package/lib/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/ErrorEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NoDataEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NoTagsEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NotFoundEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NotificationsEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/UnauthorizedEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +5 -5
- package/lib/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +8 -8
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/index.d.ts +22 -8
- package/lib/components/ExportModal/ExportModal.js +1 -3
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
- package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/lib/components/FeatureFlags/index.d.ts +5 -4
- package/lib/components/FeatureFlags/index.js +16 -9
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +2 -1
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +2 -1
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
- package/lib/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.js +4 -4
- package/lib/components/Nav/NavItem.d.ts +2 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +8 -1
- package/lib/components/PageHeader/PageHeader.d.ts +2 -0
- package/lib/components/PageHeader/PageHeader.js +4 -1
- package/lib/components/PageHeader/PageHeaderTitle.d.ts +3 -1
- package/lib/components/PageHeader/PageHeaderTitle.js +39 -5
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +5 -0
- package/lib/components/ProductiveCard/ProductiveCard.js +4 -0
- package/lib/components/ScrollGradient/ScrollGradient.js +2 -2
- package/lib/components/SidePanel/SidePanel.d.ts +5 -0
- package/lib/components/SidePanel/SidePanel.js +30 -16
- package/lib/components/SimpleHeader/SimpleHeader.d.ts +2 -1
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/lib/components/TagOverflow/TagOverflow.d.ts +3 -0
- package/lib/components/TagOverflow/TagOverflow.js +8 -3
- package/lib/components/TagOverflow/TagOverflowModal.d.ts +6 -1
- package/lib/components/TagOverflow/TagOverflowModal.js +16 -5
- package/lib/components/TagOverflow/TagOverflowPopover.js +16 -8
- package/lib/components/TagSet/TagSet.d.ts +4 -0
- package/lib/components/TagSet/TagSet.js +19 -7
- package/lib/components/TagSet/TagSetModal.js +0 -1
- package/lib/components/Tearsheet/TearsheetShell.d.ts +13 -4
- package/lib/components/Tearsheet/TearsheetShell.js +31 -20
- package/lib/components/Toolbar/Toolbar.js +1 -1
- package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
- package/lib/components/TruncatedList/TruncatedList.js +1 -1
- package/lib/components/_Canary/Canary.d.ts +2 -1
- package/lib/global/js/hooks/usePreviousValue.js +1 -1
- package/lib/index.js +88 -88
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +742 -740
- package/package.json +11 -11
- package/scss/components/Card/_card.scss +14 -6
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +4 -0
- package/scss/components/Datagrid/styles/_datagrid.scss +82 -2
- package/scss/components/PageHeader/_page-header.scss +16 -3
- package/scss/components/SidePanel/_side-panel.scss +12 -6
- package/scss/components/Tearsheet/_tearsheet.scss +13 -3
- package/telemetry.yml +1 -0
- package/es/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +0 -29
- package/lib/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +0 -31
@@ -5,7 +5,7 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray,
|
8
|
+
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default, { forwardRef, useState, useRef, useCallback, useEffect } from 'react';
|
10
10
|
import { useClickOutsideElement, useWindowEvent } from './utils/hooks.js';
|
11
11
|
import { COACHMARK_OVERLAY_KIND } from './utils/enums.js';
|
@@ -39,7 +39,6 @@ var defaults = {
|
|
39
39
|
*/
|
40
40
|
|
41
41
|
var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
42
|
-
var _positionTune$y, _positionTune$x;
|
43
42
|
var _ref$align = _ref.align,
|
44
43
|
align = _ref$align === void 0 ? defaults.align : _ref$align,
|
45
44
|
autoAlign = _ref.autoAlign,
|
@@ -78,11 +77,12 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
78
77
|
_useState8 = _slicedToArray(_useState7, 2),
|
79
78
|
targetOffset = _useState8[0],
|
80
79
|
setTargetOffset = _useState8[1];
|
81
|
-
var overlayBackupRef = useRef();
|
82
|
-
var backupRef = useRef();
|
80
|
+
var overlayBackupRef = useRef(undefined);
|
81
|
+
var backupRef = useRef(undefined);
|
83
82
|
var _coachmarkRef = ref || backupRef;
|
84
83
|
var _overlayRef = overlayRef || overlayBackupRef;
|
85
84
|
var portalNode = useRef(null);
|
85
|
+
var popoverRef = useRef(null);
|
86
86
|
useIsomorphicEffect(function () {
|
87
87
|
var _document$querySelect, _document, _document2, _document3;
|
88
88
|
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector('body') : (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.querySelector('body');
|
@@ -128,10 +128,6 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
128
128
|
setShouldResetPosition(true);
|
129
129
|
}
|
130
130
|
};
|
131
|
-
var overlayPositionStyle = {
|
132
|
-
top: ((_positionTune$y = positionTune === null || positionTune === void 0 ? void 0 : positionTune.y) !== null && _positionTune$y !== void 0 ? _positionTune$y : 0) - 16,
|
133
|
-
left: ((_positionTune$x = positionTune === null || positionTune === void 0 ? void 0 : positionTune.x) !== null && _positionTune$x !== void 0 ? _positionTune$x : 0) - 16
|
134
|
-
};
|
135
131
|
var contextValue = {
|
136
132
|
buttonProps: {
|
137
133
|
'aria-expanded': isOpen,
|
@@ -162,6 +158,19 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
162
158
|
setIsOpen(true);
|
163
159
|
}
|
164
160
|
}, [shouldResetPosition]);
|
161
|
+
useIsomorphicEffect(function () {
|
162
|
+
var _positionTune$y, _positionTune$x;
|
163
|
+
var overlayPositionStyle = {
|
164
|
+
top: "".concat(((_positionTune$y = positionTune === null || positionTune === void 0 ? void 0 : positionTune.y) !== null && _positionTune$y !== void 0 ? _positionTune$y : 0) - 16, "px"),
|
165
|
+
left: "".concat(((_positionTune$x = positionTune === null || positionTune === void 0 ? void 0 : positionTune.x) !== null && _positionTune$x !== void 0 ? _positionTune$x : 0) - 16, "px")
|
166
|
+
};
|
167
|
+
if (popoverRef.current && popoverRef.current.style && overlayPositionStyle) {
|
168
|
+
var combinedStyle = _objectSpread2({
|
169
|
+
position: 'absolute'
|
170
|
+
}, overlayPositionStyle);
|
171
|
+
Object.assign(popoverRef.current.style, combinedStyle);
|
172
|
+
}
|
173
|
+
}, [popoverRef, positionTune]);
|
165
174
|
|
166
175
|
// On unmount:
|
167
176
|
// - DO NOT "Close()" the coachmark.
|
@@ -193,9 +202,7 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
193
202
|
portalNode === null || portalNode === void 0 ? void 0 : portalNode.current)) : /*#__PURE__*/React__default.createElement(Popover, {
|
194
203
|
highContrast: true,
|
195
204
|
caret: true,
|
196
|
-
|
197
|
-
position: 'absolute'
|
198
|
-
}, overlayPositionStyle),
|
205
|
+
ref: popoverRef,
|
199
206
|
align: align,
|
200
207
|
autoAlign: autoAlign,
|
201
208
|
open: isOpen
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import React__default, { forwardRef, useState, useRef, useEffect } from 'react';
|
9
|
+
import React__default, { forwardRef, useState, useRef, useMemo, useEffect } from 'react';
|
10
10
|
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
11
11
|
import PropTypes from '../../_virtual/index.js';
|
12
12
|
import cx from 'classnames';
|
@@ -17,6 +17,7 @@ import { CoachmarkHeader } from './CoachmarkHeader.js';
|
|
17
17
|
import { getOffsetTune } from './utils/constants.js';
|
18
18
|
import { useCoachmark } from './utils/context.js';
|
19
19
|
import { COACHMARK_OVERLAY_KIND } from './utils/enums.js';
|
20
|
+
import { useIsomorphicEffect } from '../../global/js/hooks/useIsomorphicEffect.js';
|
20
21
|
|
21
22
|
var _excluded = ["children", "onClose", "fixedIsVisible", "className", "kind", "theme"];
|
22
23
|
|
@@ -81,26 +82,27 @@ var CoachmarkOverlay = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
81
82
|
}
|
82
83
|
}
|
83
84
|
};
|
84
|
-
var styledTune = {
|
85
|
-
|
86
|
-
if (
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
if (styledTune.left && styledTune.top) {
|
91
|
-
if (isBeacon) {
|
92
|
-
// Compensate for radius of beacon
|
93
|
-
styledTune.left += 16;
|
94
|
-
styledTune.top += 16;
|
85
|
+
var styledTune = useMemo(function () {
|
86
|
+
var style = {};
|
87
|
+
if (isBeacon || isDraggable) {
|
88
|
+
if (coachmark.targetRect) {
|
89
|
+
style.left = coachmark.targetRect.x + window.scrollX;
|
90
|
+
style.top = coachmark.targetRect.y + window.scrollY;
|
95
91
|
}
|
96
|
-
if (
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
92
|
+
if (style.left && style.top) {
|
93
|
+
if (isBeacon) {
|
94
|
+
style.left = style.left + 16;
|
95
|
+
style.top = style.top + 16;
|
96
|
+
}
|
97
|
+
if (isDraggable) {
|
98
|
+
var offsetTune = getOffsetTune(coachmark, kind);
|
99
|
+
style.left = style.left + offsetTune.left;
|
100
|
+
style.top = style.top + offsetTune.top;
|
101
|
+
}
|
101
102
|
}
|
102
103
|
}
|
103
|
-
|
104
|
+
return style;
|
105
|
+
}, [isBeacon, isDraggable, coachmark, kind]);
|
104
106
|
function handleDragBounds(x, y) {
|
105
107
|
var xRes = x;
|
106
108
|
var yRes = y;
|
@@ -139,10 +141,19 @@ var CoachmarkOverlay = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
139
141
|
overlay.style.bottom = 'auto';
|
140
142
|
}
|
141
143
|
var contentId = uuidv4();
|
144
|
+
useIsomorphicEffect(function () {
|
145
|
+
if (overlayRef.current) {
|
146
|
+
var _overlayRef$current;
|
147
|
+
var currentStyle = (_overlayRef$current = overlayRef.current) === null || _overlayRef$current === void 0 ? void 0 : _overlayRef$current.style;
|
148
|
+
Object.keys(styledTune).forEach(function (key) {
|
149
|
+
var value = styledTune[key];
|
150
|
+
currentStyle.setProperty(key, "".concat(value, "px"));
|
151
|
+
});
|
152
|
+
}
|
153
|
+
}, [styledTune, overlayRef]);
|
142
154
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
143
155
|
className: cx(blockClass, "".concat(blockClass, "--").concat(kind), "".concat(blockClass, "__").concat(theme), (isBeacon || isDraggable) && "".concat(blockClass, "--").concat(coachmark.align), fixedIsVisible && "".concat(blockClass, "--is-visible"), a11yDragMode && "".concat(blockClass, "--is-dragmode"), className),
|
144
156
|
ref: overlayRef,
|
145
|
-
style: styledTune,
|
146
157
|
"aria-labelledby": contentId,
|
147
158
|
tabIndex: -1
|
148
159
|
}, getDevtoolsProps(componentName)), isDraggable ? /*#__PURE__*/React__default.createElement(CoachmarkDragbar, {
|
@@ -17,7 +17,7 @@ import { COACHMARK_OVERLAY_KIND } from './enums.js';
|
|
17
17
|
*/
|
18
18
|
|
19
19
|
function useClickOutsideElement(coachmarkRef, overlayRef, overlayKind, callback) {
|
20
|
-
var cb = useRef();
|
20
|
+
var cb = useRef(undefined);
|
21
21
|
var isTooltip = overlayKind === COACHMARK_OVERLAY_KIND.TOOLTIP;
|
22
22
|
useLayoutEffect(function () {
|
23
23
|
cb.current = callback;
|
@@ -60,8 +60,8 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
|
|
60
60
|
_ref$closeButtonLabel = _ref.closeButtonLabel,
|
61
61
|
closeButtonLabel = _ref$closeButtonLabel === void 0 ? defaults.closeButtonLabel : _ref$closeButtonLabel,
|
62
62
|
rest = _objectWithoutProperties(_ref, _excluded);
|
63
|
-
var buttonFocusRef = useRef();
|
64
|
-
var scrollRef = useRef();
|
63
|
+
var buttonFocusRef = useRef(undefined);
|
64
|
+
var scrollRef = useRef(undefined);
|
65
65
|
var _useState = useState(0),
|
66
66
|
_useState2 = _slicedToArray(_useState, 2),
|
67
67
|
scrollPosition = _useState2[0],
|
@@ -89,7 +89,7 @@ var CoachmarkStack = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
89
89
|
setParentHeight = _useState6[1];
|
90
90
|
// parent height = child height when stacked behind a child that is shorter
|
91
91
|
var childArray = Children.toArray(children);
|
92
|
-
var mountedRef = useRef();
|
92
|
+
var mountedRef = useRef(undefined);
|
93
93
|
// same value as CSS animation speed
|
94
94
|
var delayMs = 240;
|
95
95
|
|
@@ -4,13 +4,14 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
/**
|
8
9
|
* The combo button item provides additional actions a user can take.
|
9
10
|
*/
|
10
11
|
declare const ComboButtonItem: {
|
11
12
|
({ ...rest }: {
|
12
13
|
[x: string]: any;
|
13
|
-
}):
|
14
|
+
}): React.JSX.Element;
|
14
15
|
propTypes: {
|
15
16
|
/** Provide the contents of the `ComboButtonItem` */
|
16
17
|
children: import("prop-types").Validator<NonNullable<import("prop-types").ReactNodeLike>>;
|
@@ -34,7 +34,7 @@ interface ConditionBlockProps {
|
|
34
34
|
isLastCondition: (index: number, conditions: (ConditionGroup | Condition)[]) => void;
|
35
35
|
}
|
36
36
|
declare const ConditionBlock: {
|
37
|
-
(props: ConditionBlockProps):
|
37
|
+
(props: ConditionBlockProps): React.JSX.Element;
|
38
38
|
propTypes: {
|
39
39
|
/**
|
40
40
|
* callback to add a new condition
|
@@ -25,8 +25,6 @@ import { ItemOptionForValueField } from '../ConditionBuilderItem/ConditionBuilde
|
|
25
25
|
import { useTranslations } from '../utils/useTranslations.js';
|
26
26
|
import { useDataConfigs } from '../utils/useDataConfigs.js';
|
27
27
|
|
28
|
-
var _div;
|
29
|
-
|
30
28
|
/**
|
31
29
|
* This component build each block of condition consisting of property, operator value and close button.
|
32
30
|
*/
|
@@ -188,9 +186,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
188
186
|
onChange: function onChange(op) {
|
189
187
|
return onConnectorOperatorChange === null || onConnectorOperatorChange === void 0 ? void 0 : onConnectorOperatorChange(op);
|
190
188
|
}
|
191
|
-
}) :
|
192
|
-
role: "gridcell"
|
193
|
-
})), isStatement && /*#__PURE__*/React__default.createElement(ConditionBuilderItem, {
|
189
|
+
}) : '', isStatement && /*#__PURE__*/React__default.createElement(ConditionBuilderItem, {
|
194
190
|
label: group.statement,
|
195
191
|
title: conditionText,
|
196
192
|
"data-name": "connectorField",
|
@@ -264,7 +260,8 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
264
260
|
onBlur: handleHideDeletionPreview,
|
265
261
|
renderIcon: Close,
|
266
262
|
className: "".concat(blockClass, "__close-condition"),
|
267
|
-
"data-name": "closeCondition"
|
263
|
+
"data-name": "closeCondition",
|
264
|
+
wrapperClassName: "".concat(blockClass, "__close-condition-wrapper")
|
268
265
|
})), manageActionButtons(conditionIndex, group.conditions) && /*#__PURE__*/React__default.createElement(ConditionBuilderAdd, {
|
269
266
|
onClick: function onClick() {
|
270
267
|
addConditionHandler === null || addConditionHandler === void 0 || addConditionHandler(conditionIndex);
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { Action, Option } from '../ConditionBuilder.types';
|
9
10
|
interface ConditionBuilderActionsProps {
|
@@ -11,7 +12,7 @@ interface ConditionBuilderActionsProps {
|
|
11
12
|
className?: string;
|
12
13
|
}
|
13
14
|
declare const ConditionBuilderActions: {
|
14
|
-
({ actions, className, }: ConditionBuilderActionsProps):
|
15
|
+
({ actions, className, }: ConditionBuilderActionsProps): React.JSX.Element;
|
15
16
|
propTypes: {
|
16
17
|
/**
|
17
18
|
* optional array of object that give the list of actions.
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
interface ConditionBuilderAddProps {
|
9
10
|
className?: string;
|
@@ -18,7 +19,7 @@ interface ConditionBuilderAddProps {
|
|
18
19
|
tabIndex?: number;
|
19
20
|
}
|
20
21
|
declare const ConditionBuilderAdd: {
|
21
|
-
({ className, onClick, addConditionSubGroupHandler, showConditionSubGroupPreviewHandler, hideConditionSubGroupPreviewHandler, showConditionPreviewHandler, hideConditionPreviewHandler, enableSubGroup, buttonLabel, tabIndex, }: ConditionBuilderAddProps):
|
22
|
+
({ className, onClick, addConditionSubGroupHandler, showConditionSubGroupPreviewHandler, hideConditionSubGroupPreviewHandler, showConditionPreviewHandler, hideConditionPreviewHandler, enableSubGroup, buttonLabel, tabIndex, }: ConditionBuilderAddProps): React.JSX.Element;
|
22
23
|
propTypes: {
|
23
24
|
/**
|
24
25
|
* handler for hiding sub group preview
|
@@ -27,7 +27,7 @@ interface ConditionBuilderButtonProps {
|
|
27
27
|
tabIndex?: number;
|
28
28
|
}
|
29
29
|
export declare const ConditionBuilderButton: {
|
30
|
-
({ className, label, hideLabel, tooltipAlign, renderIcon: Icon, onClick, showToolTip, wrapperProps, onBlur, onFocus, onMouseEnter, onMouseLeave, isInvalid, wrapperClassName, tabIndex, ...rest }: ConditionBuilderButtonProps):
|
30
|
+
({ className, label, hideLabel, tooltipAlign, renderIcon: Icon, onClick, showToolTip, wrapperProps, onBlur, onFocus, onMouseEnter, onMouseLeave, isInvalid, wrapperClassName, tabIndex, ...rest }: ConditionBuilderButtonProps): React.JSX.Element;
|
31
31
|
propTypes: {
|
32
32
|
/**
|
33
33
|
* Provide an optional class to be applied to the containing node.
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
interface ConditionConnectorProps {
|
9
10
|
operator: string;
|
@@ -11,7 +12,7 @@ interface ConditionConnectorProps {
|
|
11
12
|
onChange?: (op: string) => void;
|
12
13
|
}
|
13
14
|
declare const ConditionConnector: {
|
14
|
-
({ operator, className, onChange, ...rest }: ConditionConnectorProps):
|
15
|
+
({ operator, className, onChange, ...rest }: ConditionConnectorProps): React.JSX.Element;
|
15
16
|
propTypes: {
|
16
17
|
/**
|
17
18
|
* Provide an optional class to be applied to the containing node.
|
@@ -53,10 +53,7 @@ var ConditionConnector = function ConditionConnector(_ref) {
|
|
53
53
|
className: "".concat(className, " ").concat(blockClass, "__connector--disabled")
|
54
54
|
}, /*#__PURE__*/React__default.createElement(ConditionBuilderButton, {
|
55
55
|
label: operator
|
56
|
-
})) :
|
57
|
-
/*#__PURE__*/
|
58
|
-
// <div className={className} {...rest}>
|
59
|
-
React__default.createElement(ConditionBuilderItem, _extends({
|
56
|
+
})) : /*#__PURE__*/React__default.createElement(ConditionBuilderItem, _extends({
|
60
57
|
label: operator,
|
61
58
|
title: connectorText,
|
62
59
|
"data-name": "connectorField",
|
@@ -76,10 +73,7 @@ var ConditionConnector = function ConditionConnector(_ref) {
|
|
76
73
|
label: connectorText
|
77
74
|
},
|
78
75
|
onChange: onChangeHandler
|
79
|
-
}))
|
80
|
-
|
81
|
-
// </div>
|
82
|
-
;
|
76
|
+
}));
|
83
77
|
};
|
84
78
|
ConditionConnector.propTypes = {
|
85
79
|
/**
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { Action, ConditionBuilderState, InitialState } from '../ConditionBuilder.types';
|
9
10
|
interface ConditionBuilderContentProps {
|
@@ -14,7 +15,7 @@ interface ConditionBuilderContentProps {
|
|
14
15
|
actions?: Action[];
|
15
16
|
}
|
16
17
|
declare const ConditionBuilderContent: {
|
17
|
-
({ startConditionLabel, getConditionState, getActionsState, initialState, actions, }: ConditionBuilderContentProps):
|
18
|
+
({ startConditionLabel, getConditionState, getActionsState, initialState, actions, }: ConditionBuilderContentProps): React.JSX.Element;
|
18
19
|
propTypes: {
|
19
20
|
/**
|
20
21
|
* optional array of object that give the list of actions.
|
@@ -113,7 +113,6 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
113
113
|
var addConditionGroupHandler = function addConditionGroupHandler() {
|
114
114
|
var newGroup = {
|
115
115
|
statement: 'ifAll',
|
116
|
-
// 'if|exclude if',
|
117
116
|
groupOperator: 'and',
|
118
117
|
id: uuidv4(),
|
119
118
|
conditions: [{
|
@@ -27,7 +27,7 @@ interface ConditionBuilderItemProps extends PropsWithChildren {
|
|
27
27
|
onBlur?: React.FocusEventHandler<HTMLButtonElement>;
|
28
28
|
}
|
29
29
|
export declare const ConditionBuilderItem: {
|
30
|
-
({ children, className, label, renderIcon, title, type, showToolTip, condition, popOverClassName, config, renderChildren, onChange, ...rest }: ConditionBuilderItemProps):
|
30
|
+
({ children, className, label, renderIcon, title, type, showToolTip, condition, popOverClassName, config, renderChildren, onChange, ...rest }: ConditionBuilderItemProps): React.JSX.Element;
|
31
31
|
propTypes: {
|
32
32
|
/**
|
33
33
|
* provide the contents of the popover
|
@@ -4,13 +4,14 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
export declare const ConditionBuilderItemDate: {
|
9
10
|
({ conditionState, onChange, parentRef, }: {
|
10
11
|
conditionState: any;
|
11
12
|
onChange: any;
|
12
13
|
parentRef: any;
|
13
|
-
}):
|
14
|
+
}): React.JSX.Element;
|
14
15
|
propTypes: {
|
15
16
|
/**
|
16
17
|
* current condition object
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { Condition, PropertyConfigNumber } from '../../ConditionBuilder.types';
|
9
10
|
interface ConditionBuilderItemNumberProps {
|
@@ -12,7 +13,7 @@ interface ConditionBuilderItemNumberProps {
|
|
12
13
|
onChange: (value: string) => void;
|
13
14
|
}
|
14
15
|
export declare const ConditionBuilderItemNumber: {
|
15
|
-
({ conditionState, config, onChange, }: ConditionBuilderItemNumberProps):
|
16
|
+
({ conditionState, config, onChange, }: ConditionBuilderItemNumberProps): React.JSX.Element;
|
16
17
|
propTypes: {
|
17
18
|
/**
|
18
19
|
* current condition object
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { PropertyConfigOption } from '../../ConditionBuilder.types';
|
9
10
|
interface ItemOptionProps {
|
@@ -17,7 +18,7 @@ interface ItemOptionProps {
|
|
17
18
|
onChange: (value: string, e: Event) => void;
|
18
19
|
}
|
19
20
|
export declare const ItemOption: {
|
20
|
-
({ conditionState, config, onChange, }: ItemOptionProps):
|
21
|
+
({ conditionState, config, onChange, }: ItemOptionProps): React.JSX.Element | undefined;
|
21
22
|
propTypes: {
|
22
23
|
/**
|
23
24
|
* current condition object
|
package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js
CHANGED
@@ -63,6 +63,9 @@ var ItemOption = function ItemOption(_ref) {
|
|
63
63
|
className: "".concat(blockClass, "__statement_wrapper")
|
64
64
|
}, /*#__PURE__*/React__default.createElement("div", null, option.text1, " (", option.connector, ")"), /*#__PURE__*/React__default.createElement("div", null, option.text2));
|
65
65
|
};
|
66
|
+
var preventDefault = function preventDefault(evt) {
|
67
|
+
return evt.preventDefault();
|
68
|
+
};
|
66
69
|
if (!allOptions) {
|
67
70
|
return;
|
68
71
|
}
|
@@ -75,7 +78,8 @@ var ItemOption = function ItemOption(_ref) {
|
|
75
78
|
size: "sm",
|
76
79
|
labelText: clearSearchText,
|
77
80
|
closeButtonLabelText: clearSearchText,
|
78
|
-
onChange: onSearchChangeHandler
|
81
|
+
onChange: onSearchChangeHandler,
|
82
|
+
onKeyDown: preventDefault
|
79
83
|
})), /*#__PURE__*/React__default.createElement("ul", {
|
80
84
|
"aria-label": getAriaLabel(),
|
81
85
|
role: "listbox"
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { Condition, PropertyConfigOption } from '../../ConditionBuilder.types';
|
9
10
|
interface ItemOptionForValueFieldProps {
|
@@ -14,7 +15,7 @@ interface ItemOptionForValueFieldProps {
|
|
14
15
|
onChange: (value: any, e?: Event) => void;
|
15
16
|
}
|
16
17
|
export declare const ItemOptionForValueField: {
|
17
|
-
({ conditionState, config, onChange, }: ItemOptionForValueFieldProps):
|
18
|
+
({ conditionState, config, onChange, }: ItemOptionForValueFieldProps): React.JSX.Element;
|
18
19
|
propTypes: {
|
19
20
|
/**
|
20
21
|
* current condition object
|
@@ -44,6 +44,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
44
44
|
});
|
45
45
|
var selection = Array.isArray(conditionState.value) ? conditionState.value : conditionState.value !== undefined ? [conditionState.value] : [];
|
46
46
|
useEffect(function () {
|
47
|
+
//this commented code is kept as intentional. Alternate approach to pass async options instead of getOptions callback.
|
47
48
|
// if(rest['data-name'] == 'valueField'){
|
48
49
|
// const fetchData = async () => {
|
49
50
|
// const response = await config.options(conditionState);
|
@@ -132,6 +133,9 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
132
133
|
var getAriaLabel = function getAriaLabel() {
|
133
134
|
return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : propertyText;
|
134
135
|
};
|
136
|
+
var preventDefault = function preventDefault(evt) {
|
137
|
+
return evt.preventDefault();
|
138
|
+
};
|
135
139
|
if (!allOptions) {
|
136
140
|
return _SelectSkeleton || (_SelectSkeleton = /*#__PURE__*/React__default.createElement(SelectSkeleton, null));
|
137
141
|
}
|
@@ -144,7 +148,8 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
144
148
|
size: "sm",
|
145
149
|
labelText: clearSearchText,
|
146
150
|
closeButtonLabelText: clearSearchText,
|
147
|
-
onChange: onSearchChangeHandler
|
151
|
+
onChange: onSearchChangeHandler,
|
152
|
+
onKeyDown: preventDefault
|
148
153
|
})), multiSelectable && /*#__PURE__*/React__default.createElement("div", {
|
149
154
|
className: "".concat(blockClass, "__multiselectSelectionStatusContainer")
|
150
155
|
}, /*#__PURE__*/React__default.createElement("h4", null, /*#__PURE__*/React__default.createElement("label", null, selection.length, "/", allOptions.length, " Selected")), /*#__PURE__*/React__default.createElement(Button, {
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { Condition, PropertyConfigText, PropertyConfigTextArea } from '../../ConditionBuilder.types';
|
9
10
|
interface ConditionBuilderItemTextProps {
|
@@ -13,7 +14,7 @@ interface ConditionBuilderItemTextProps {
|
|
13
14
|
type: 'textarea' | 'text';
|
14
15
|
}
|
15
16
|
export declare const ConditionBuilderItemText: {
|
16
|
-
({ conditionState, onChange, config, type, }: ConditionBuilderItemTextProps):
|
17
|
+
({ conditionState, onChange, config, type, }: ConditionBuilderItemTextProps): React.JSX.Element;
|
17
18
|
propTypes: {
|
18
19
|
/**
|
19
20
|
* current condition object
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { PropertyConfigTime } from '../../ConditionBuilder.types';
|
9
10
|
interface ConditionBuilderItemTime {
|
@@ -11,7 +12,7 @@ interface ConditionBuilderItemTime {
|
|
11
12
|
config: PropertyConfigTime['config'];
|
12
13
|
}
|
13
14
|
export declare const ConditionBuilderItemTime: {
|
14
|
-
({ onChange, config, }: ConditionBuilderItemTime):
|
15
|
+
({ onChange, config, }: ConditionBuilderItemTime): React.JSX.Element;
|
15
16
|
propTypes: {
|
16
17
|
/**
|
17
18
|
* current config object that this property is part of
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { ConditionGroup } from '../ConditionBuilder.types';
|
9
10
|
/**
|
@@ -24,7 +25,7 @@ interface ConditionGroupBuilderProps {
|
|
24
25
|
};
|
25
26
|
}
|
26
27
|
declare const ConditionGroupBuilder: {
|
27
|
-
({ group, aria, onRemove, onChange, className, }: ConditionGroupBuilderProps):
|
28
|
+
({ group, aria, onRemove, onChange, className, }: ConditionGroupBuilderProps): React.JSX.Element;
|
28
29
|
propTypes: {
|
29
30
|
/**
|
30
31
|
* object contains the aria attributes
|
@@ -4,6 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
+
import React from 'react';
|
7
8
|
import PropTypes from 'prop-types';
|
8
9
|
import { ConditionGroup } from '../ConditionBuilder.types';
|
9
10
|
interface ConditionPreviewProps {
|
@@ -12,7 +13,7 @@ interface ConditionPreviewProps {
|
|
12
13
|
colorIndex?: number;
|
13
14
|
}
|
14
15
|
declare const ConditionPreview: {
|
15
|
-
({ previewType, group, colorIndex, }: ConditionPreviewProps):
|
16
|
+
({ previewType, group, colorIndex, }: ConditionPreviewProps): React.JSX.Element;
|
16
17
|
propTypes: {
|
17
18
|
/**
|
18
19
|
* index of the color for next group
|