@carbon/ibm-products 2.52.0 → 2.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/css/index-full-carbon.css +306 -298
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +94 -27
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +110 -44
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +179 -118
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
- package/es/components/APIKeyModal/APIKeyModal.js +1 -1
- package/es/components/AboutModal/AboutModal.js +2 -4
- package/es/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
- package/es/components/AddSelect/AddSelectBody.js +8 -1
- package/es/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
- package/es/components/AddSelect/AddSelectColumn.d.ts +2 -1
- package/es/components/AddSelect/AddSelectFilter.d.ts +2 -1
- package/es/components/AddSelect/AddSelectFilter.js +5 -5
- package/es/components/AddSelect/AddSelectFormControl.d.ts +2 -1
- package/es/components/AddSelect/AddSelectList.d.ts +2 -1
- package/es/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
- package/es/components/AddSelect/AddSelectRow.d.ts +2 -1
- package/es/components/AddSelect/AddSelectSidebar.d.ts +2 -1
- package/es/components/AddSelect/AddSelectSidebar.js +1 -1
- package/es/components/AddSelect/AddSelectSort.d.ts +2 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
- package/es/components/Card/Card.d.ts +5 -1
- package/es/components/Card/Card.js +9 -2
- package/es/components/Card/CardFooter.d.ts +1 -1
- package/es/components/Card/CardHeader.d.ts +12 -2
- package/es/components/Card/CardHeader.js +17 -9
- package/es/components/Carousel/Carousel.js +17 -8
- package/es/components/Checklist/ChecklistChart.js +22 -6
- package/es/components/Coachmark/Coachmark.js +18 -11
- package/es/components/Coachmark/CoachmarkOverlay.js +30 -19
- package/es/components/Coachmark/utils/hooks.js +1 -1
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
- package/es/components/CoachmarkStack/CoachmarkStack.js +1 -1
- package/es/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +3 -6
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -8
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +0 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +65 -61
- package/es/components/ConditionBuilder/utils/util.js +0 -2
- package/es/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -1
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -4
- package/es/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +13 -10
- package/es/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +14 -10
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
- package/es/components/Datagrid/Datagrid/addons/{Slug/DatagridSlug.d.ts → AiLabel/DatagridAiLabel.d.ts} +3 -3
- package/es/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +29 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/es/components/Datagrid/index.d.ts +29 -22
- package/es/components/Datagrid/types/index.d.ts +7 -7
- package/es/components/Datagrid/useActionsColumn.js +1 -2
- package/es/components/Datagrid/useColumnCenterAlign.js +1 -2
- package/es/components/Datagrid/useColumnRightAlign.js +1 -2
- package/es/components/Datagrid/useCustomizeColumns.js +1 -2
- package/es/components/Datagrid/useDatagrid.js +1 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +3 -3
- package/es/components/Datagrid/useDisableSelectRows.js +1 -2
- package/es/components/Datagrid/useExpandedRow.js +1 -2
- package/es/components/Datagrid/useFiltering.js +1 -2
- package/es/components/Datagrid/useFlexResize.js +1 -1
- package/es/components/Datagrid/useInfiniteScroll.js +1 -2
- package/es/components/Datagrid/useInlineEdit.js +1 -2
- package/es/components/Datagrid/useNestedRowExpander.js +2 -2
- package/es/components/Datagrid/useNestedRows.js +1 -2
- package/es/components/Datagrid/useOnRowClick.js +1 -2
- package/es/components/Datagrid/useParentDimensions.js +5 -5
- package/es/components/Datagrid/useRowExpander.js +6 -7
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -2
- package/es/components/Datagrid/useSelectAllToggle.js +1 -2
- package/es/components/Datagrid/useSelectRows.js +1 -2
- package/es/components/Datagrid/useSortableColumns.js +7 -8
- package/es/components/Datagrid/useStickyColumn.js +4 -5
- package/es/components/EmptyStates/EmptyState.d.ts +1 -1
- package/es/components/EmptyStates/EmptyState.js +8 -2
- package/es/components/EmptyStates/EmptyStateContent.d.ts +2 -1
- package/es/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
- package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/ErrorEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -2
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/index.d.ts +8 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NoDataIllustration.js +5 -5
- package/es/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +8 -8
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
- package/es/components/EmptyStates/index.d.ts +22 -8
- package/es/components/ExportModal/ExportModal.js +1 -3
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
- package/es/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/es/components/FeatureFlags/index.d.ts +5 -4
- package/es/components/FeatureFlags/index.js +17 -10
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
- package/es/components/FullPageError/assets/Error403SVG.d.ts +2 -1
- package/es/components/FullPageError/assets/Error404SVG.d.ts +2 -1
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
- package/es/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
- package/es/components/InterstitialScreen/InterstitialScreen.js +4 -4
- package/es/components/Nav/NavItem.d.ts +2 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +8 -1
- package/es/components/PageHeader/PageHeader.d.ts +2 -0
- package/es/components/PageHeader/PageHeader.js +4 -1
- package/es/components/PageHeader/PageHeaderTitle.d.ts +3 -1
- package/es/components/PageHeader/PageHeaderTitle.js +42 -8
- package/es/components/ProductiveCard/ProductiveCard.d.ts +5 -0
- package/es/components/ProductiveCard/ProductiveCard.js +4 -0
- package/es/components/ScrollGradient/ScrollGradient.js +2 -2
- package/es/components/SidePanel/SidePanel.d.ts +5 -0
- package/es/components/SidePanel/SidePanel.js +30 -16
- package/es/components/SimpleHeader/SimpleHeader.d.ts +2 -1
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/es/components/TagOverflow/TagOverflow.d.ts +3 -0
- package/es/components/TagOverflow/TagOverflow.js +9 -4
- package/es/components/TagOverflow/TagOverflowModal.d.ts +6 -1
- package/es/components/TagOverflow/TagOverflowModal.js +17 -6
- package/es/components/TagOverflow/TagOverflowPopover.js +17 -9
- package/es/components/TagSet/TagSet.d.ts +4 -0
- package/es/components/TagSet/TagSet.js +20 -8
- package/es/components/TagSet/TagSetModal.js +0 -1
- package/es/components/Tearsheet/TearsheetShell.d.ts +13 -4
- package/es/components/Tearsheet/TearsheetShell.js +31 -20
- package/es/components/Toolbar/Toolbar.js +1 -1
- package/es/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
- package/es/components/TruncatedList/TruncatedList.js +1 -1
- package/es/components/_Canary/Canary.d.ts +2 -1
- package/es/global/js/hooks/usePreviousValue.js +1 -1
- package/es/index.js +29 -29
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +742 -740
- package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
- package/lib/components/APIKeyModal/APIKeyModal.js +1 -1
- package/lib/components/AboutModal/AboutModal.js +2 -4
- package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
- package/lib/components/AddSelect/AddSelectBody.js +8 -1
- package/lib/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectColumn.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectFilter.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectFilter.js +4 -4
- package/lib/components/AddSelect/AddSelectFormControl.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectList.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectRow.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectSidebar.d.ts +2 -1
- package/lib/components/AddSelect/AddSelectSidebar.js +1 -1
- package/lib/components/AddSelect/AddSelectSort.d.ts +2 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
- package/lib/components/Card/Card.d.ts +5 -1
- package/lib/components/Card/Card.js +9 -2
- package/lib/components/Card/CardFooter.d.ts +1 -1
- package/lib/components/Card/CardHeader.d.ts +12 -2
- package/lib/components/Card/CardHeader.js +17 -9
- package/lib/components/Carousel/Carousel.js +17 -8
- package/lib/components/Checklist/ChecklistChart.js +20 -4
- package/lib/components/Coachmark/Coachmark.js +17 -10
- package/lib/components/Coachmark/CoachmarkOverlay.js +29 -18
- package/lib/components/Coachmark/utils/hooks.js +1 -1
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
- package/lib/components/CoachmarkStack/CoachmarkStack.js +1 -1
- package/lib/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +3 -6
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -8
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +0 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +65 -61
- package/lib/components/ConditionBuilder/utils/util.js +0 -2
- package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -1
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -4
- package/lib/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +13 -10
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +14 -10
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
- package/lib/components/Datagrid/Datagrid/addons/{Slug/DatagridSlug.d.ts → AiLabel/DatagridAiLabel.d.ts} +3 -3
- package/lib/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +31 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/lib/components/Datagrid/index.d.ts +29 -22
- package/lib/components/Datagrid/types/index.d.ts +7 -7
- package/lib/components/Datagrid/useActionsColumn.js +1 -2
- package/lib/components/Datagrid/useColumnCenterAlign.js +1 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +1 -2
- package/lib/components/Datagrid/useCustomizeColumns.js +1 -2
- package/lib/components/Datagrid/useDatagrid.js +1 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +3 -3
- package/lib/components/Datagrid/useDisableSelectRows.js +1 -2
- package/lib/components/Datagrid/useExpandedRow.js +1 -2
- package/lib/components/Datagrid/useFiltering.js +1 -2
- package/lib/components/Datagrid/useFlexResize.js +1 -1
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -2
- package/lib/components/Datagrid/useInlineEdit.js +1 -2
- package/lib/components/Datagrid/useNestedRowExpander.js +2 -2
- package/lib/components/Datagrid/useNestedRows.js +1 -2
- package/lib/components/Datagrid/useOnRowClick.js +1 -2
- package/lib/components/Datagrid/useParentDimensions.js +5 -5
- package/lib/components/Datagrid/useRowExpander.js +6 -7
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -2
- package/lib/components/Datagrid/useSelectAllToggle.js +1 -2
- package/lib/components/Datagrid/useSelectRows.js +1 -2
- package/lib/components/Datagrid/useSortableColumns.js +7 -8
- package/lib/components/Datagrid/useStickyColumn.js +4 -5
- package/lib/components/EmptyStates/EmptyState.d.ts +1 -1
- package/lib/components/EmptyStates/EmptyState.js +7 -1
- package/lib/components/EmptyStates/EmptyStateContent.d.ts +2 -1
- package/lib/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/ErrorEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NoDataEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NoTagsEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NotFoundEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/NotificationsEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -2
- package/lib/components/EmptyStates/UnauthorizedEmptyState/index.d.ts +8 -1
- package/lib/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +5 -5
- package/lib/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +8 -8
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
- package/lib/components/EmptyStates/index.d.ts +22 -8
- package/lib/components/ExportModal/ExportModal.js +1 -3
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
- package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -0
- package/lib/components/FeatureFlags/index.d.ts +5 -4
- package/lib/components/FeatureFlags/index.js +16 -9
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +2 -1
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +2 -1
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
- package/lib/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.js +4 -4
- package/lib/components/Nav/NavItem.d.ts +2 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +8 -1
- package/lib/components/PageHeader/PageHeader.d.ts +2 -0
- package/lib/components/PageHeader/PageHeader.js +4 -1
- package/lib/components/PageHeader/PageHeaderTitle.d.ts +3 -1
- package/lib/components/PageHeader/PageHeaderTitle.js +39 -5
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +5 -0
- package/lib/components/ProductiveCard/ProductiveCard.js +4 -0
- package/lib/components/ScrollGradient/ScrollGradient.js +2 -2
- package/lib/components/SidePanel/SidePanel.d.ts +5 -0
- package/lib/components/SidePanel/SidePanel.js +30 -16
- package/lib/components/SimpleHeader/SimpleHeader.d.ts +2 -1
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/lib/components/TagOverflow/TagOverflow.d.ts +3 -0
- package/lib/components/TagOverflow/TagOverflow.js +8 -3
- package/lib/components/TagOverflow/TagOverflowModal.d.ts +6 -1
- package/lib/components/TagOverflow/TagOverflowModal.js +16 -5
- package/lib/components/TagOverflow/TagOverflowPopover.js +16 -8
- package/lib/components/TagSet/TagSet.d.ts +4 -0
- package/lib/components/TagSet/TagSet.js +19 -7
- package/lib/components/TagSet/TagSetModal.js +0 -1
- package/lib/components/Tearsheet/TearsheetShell.d.ts +13 -4
- package/lib/components/Tearsheet/TearsheetShell.js +31 -20
- package/lib/components/Toolbar/Toolbar.js +1 -1
- package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
- package/lib/components/TruncatedList/TruncatedList.js +1 -1
- package/lib/components/_Canary/Canary.d.ts +2 -1
- package/lib/global/js/hooks/usePreviousValue.js +1 -1
- package/lib/index.js +88 -88
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +742 -740
- package/package.json +11 -11
- package/scss/components/Card/_card.scss +14 -6
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +4 -0
- package/scss/components/Datagrid/styles/_datagrid.scss +82 -2
- package/scss/components/PageHeader/_page-header.scss +16 -3
- package/scss/components/SidePanel/_side-panel.scss +12 -6
- package/scss/components/Tearsheet/_tearsheet.scss +13 -3
- package/telemetry.yml +1 -0
- package/es/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +0 -29
- package/lib/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +0 -31
@@ -41,7 +41,6 @@ var defaults = {
|
|
41
41
|
*/
|
42
42
|
|
43
43
|
exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
44
|
-
var _positionTune$y, _positionTune$x;
|
45
44
|
var _ref$align = _ref.align,
|
46
45
|
align = _ref$align === void 0 ? defaults.align : _ref$align,
|
47
46
|
autoAlign = _ref.autoAlign,
|
@@ -80,11 +79,12 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
80
79
|
_useState8 = _rollupPluginBabelHelpers.slicedToArray(_useState7, 2),
|
81
80
|
targetOffset = _useState8[0],
|
82
81
|
setTargetOffset = _useState8[1];
|
83
|
-
var overlayBackupRef = React.useRef();
|
84
|
-
var backupRef = React.useRef();
|
82
|
+
var overlayBackupRef = React.useRef(undefined);
|
83
|
+
var backupRef = React.useRef(undefined);
|
85
84
|
var _coachmarkRef = ref || backupRef;
|
86
85
|
var _overlayRef = overlayRef || overlayBackupRef;
|
87
86
|
var portalNode = React.useRef(null);
|
87
|
+
var popoverRef = React.useRef(null);
|
88
88
|
useIsomorphicEffect.useIsomorphicEffect(function () {
|
89
89
|
var _document$querySelect, _document, _document2, _document3;
|
90
90
|
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');
|
@@ -130,10 +130,6 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
130
130
|
setShouldResetPosition(true);
|
131
131
|
}
|
132
132
|
};
|
133
|
-
var overlayPositionStyle = {
|
134
|
-
top: ((_positionTune$y = positionTune === null || positionTune === void 0 ? void 0 : positionTune.y) !== null && _positionTune$y !== void 0 ? _positionTune$y : 0) - 16,
|
135
|
-
left: ((_positionTune$x = positionTune === null || positionTune === void 0 ? void 0 : positionTune.x) !== null && _positionTune$x !== void 0 ? _positionTune$x : 0) - 16
|
136
|
-
};
|
137
133
|
var contextValue = {
|
138
134
|
buttonProps: {
|
139
135
|
'aria-expanded': isOpen,
|
@@ -164,6 +160,19 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
164
160
|
setIsOpen(true);
|
165
161
|
}
|
166
162
|
}, [shouldResetPosition]);
|
163
|
+
useIsomorphicEffect.useIsomorphicEffect(function () {
|
164
|
+
var _positionTune$y, _positionTune$x;
|
165
|
+
var overlayPositionStyle = {
|
166
|
+
top: "".concat(((_positionTune$y = positionTune === null || positionTune === void 0 ? void 0 : positionTune.y) !== null && _positionTune$y !== void 0 ? _positionTune$y : 0) - 16, "px"),
|
167
|
+
left: "".concat(((_positionTune$x = positionTune === null || positionTune === void 0 ? void 0 : positionTune.x) !== null && _positionTune$x !== void 0 ? _positionTune$x : 0) - 16, "px")
|
168
|
+
};
|
169
|
+
if (popoverRef.current && popoverRef.current.style && overlayPositionStyle) {
|
170
|
+
var combinedStyle = _rollupPluginBabelHelpers.objectSpread2({
|
171
|
+
position: 'absolute'
|
172
|
+
}, overlayPositionStyle);
|
173
|
+
Object.assign(popoverRef.current.style, combinedStyle);
|
174
|
+
}
|
175
|
+
}, [popoverRef, positionTune]);
|
167
176
|
|
168
177
|
// On unmount:
|
169
178
|
// - DO NOT "Close()" the coachmark.
|
@@ -195,9 +204,7 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
195
204
|
portalNode === null || portalNode === void 0 ? void 0 : portalNode.current)) : /*#__PURE__*/React.createElement(react.Popover, {
|
196
205
|
highContrast: true,
|
197
206
|
caret: true,
|
198
|
-
|
199
|
-
position: 'absolute'
|
200
|
-
}, overlayPositionStyle),
|
207
|
+
ref: popoverRef,
|
201
208
|
align: align,
|
202
209
|
autoAlign: autoAlign,
|
203
210
|
open: isOpen
|
@@ -19,6 +19,7 @@ var CoachmarkHeader = require('./CoachmarkHeader.js');
|
|
19
19
|
var constants = require('./utils/constants.js');
|
20
20
|
var context = require('./utils/context.js');
|
21
21
|
var enums = require('./utils/enums.js');
|
22
|
+
var useIsomorphicEffect = require('../../global/js/hooks/useIsomorphicEffect.js');
|
22
23
|
|
23
24
|
var _excluded = ["children", "onClose", "fixedIsVisible", "className", "kind", "theme"];
|
24
25
|
|
@@ -83,26 +84,27 @@ exports.CoachmarkOverlay = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
83
84
|
}
|
84
85
|
}
|
85
86
|
};
|
86
|
-
var styledTune = {
|
87
|
-
|
88
|
-
if (
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
if (styledTune.left && styledTune.top) {
|
93
|
-
if (isBeacon) {
|
94
|
-
// Compensate for radius of beacon
|
95
|
-
styledTune.left += 16;
|
96
|
-
styledTune.top += 16;
|
87
|
+
var styledTune = React.useMemo(function () {
|
88
|
+
var style = {};
|
89
|
+
if (isBeacon || isDraggable) {
|
90
|
+
if (coachmark.targetRect) {
|
91
|
+
style.left = coachmark.targetRect.x + window.scrollX;
|
92
|
+
style.top = coachmark.targetRect.y + window.scrollY;
|
97
93
|
}
|
98
|
-
if (
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
94
|
+
if (style.left && style.top) {
|
95
|
+
if (isBeacon) {
|
96
|
+
style.left = style.left + 16;
|
97
|
+
style.top = style.top + 16;
|
98
|
+
}
|
99
|
+
if (isDraggable) {
|
100
|
+
var offsetTune = constants.getOffsetTune(coachmark, kind);
|
101
|
+
style.left = style.left + offsetTune.left;
|
102
|
+
style.top = style.top + offsetTune.top;
|
103
|
+
}
|
103
104
|
}
|
104
105
|
}
|
105
|
-
|
106
|
+
return style;
|
107
|
+
}, [isBeacon, isDraggable, coachmark, kind]);
|
106
108
|
function handleDragBounds(x, y) {
|
107
109
|
var xRes = x;
|
108
110
|
var yRes = y;
|
@@ -141,10 +143,19 @@ exports.CoachmarkOverlay = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
141
143
|
overlay.style.bottom = 'auto';
|
142
144
|
}
|
143
145
|
var contentId = uuidv4.default();
|
146
|
+
useIsomorphicEffect.useIsomorphicEffect(function () {
|
147
|
+
if (overlayRef.current) {
|
148
|
+
var _overlayRef$current;
|
149
|
+
var currentStyle = (_overlayRef$current = overlayRef.current) === null || _overlayRef$current === void 0 ? void 0 : _overlayRef$current.style;
|
150
|
+
Object.keys(styledTune).forEach(function (key) {
|
151
|
+
var value = styledTune[key];
|
152
|
+
currentStyle.setProperty(key, "".concat(value, "px"));
|
153
|
+
});
|
154
|
+
}
|
155
|
+
}, [styledTune, overlayRef]);
|
144
156
|
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
145
157
|
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),
|
146
158
|
ref: overlayRef,
|
147
|
-
style: styledTune,
|
148
159
|
"aria-labelledby": contentId,
|
149
160
|
tabIndex: -1
|
150
161
|
}, devtools.getDevtoolsProps(componentName)), isDraggable ? /*#__PURE__*/React.createElement(CoachmarkDragbar.CoachmarkDragbar, {
|
@@ -19,7 +19,7 @@ var enums = require('./enums.js');
|
|
19
19
|
*/
|
20
20
|
|
21
21
|
function useClickOutsideElement(coachmarkRef, overlayRef, overlayKind, callback) {
|
22
|
-
var cb = React.useRef();
|
22
|
+
var cb = React.useRef(undefined);
|
23
23
|
var isTooltip = overlayKind === enums.COACHMARK_OVERLAY_KIND.TOOLTIP;
|
24
24
|
React.useLayoutEffect(function () {
|
25
25
|
cb.current = callback;
|
@@ -62,8 +62,8 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
62
62
|
_ref$closeButtonLabel = _ref.closeButtonLabel,
|
63
63
|
closeButtonLabel = _ref$closeButtonLabel === void 0 ? defaults.closeButtonLabel : _ref$closeButtonLabel,
|
64
64
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
65
|
-
var buttonFocusRef = React.useRef();
|
66
|
-
var scrollRef = React.useRef();
|
65
|
+
var buttonFocusRef = React.useRef(undefined);
|
66
|
+
var scrollRef = React.useRef(undefined);
|
67
67
|
var _useState = React.useState(0),
|
68
68
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
69
69
|
scrollPosition = _useState2[0],
|
@@ -91,7 +91,7 @@ exports.CoachmarkStack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
91
91
|
setParentHeight = _useState6[1];
|
92
92
|
// parent height = child height when stacked behind a child that is shorter
|
93
93
|
var childArray = React.Children.toArray(children);
|
94
|
-
var mountedRef = React.useRef();
|
94
|
+
var mountedRef = React.useRef(undefined);
|
95
95
|
// same value as CSS animation speed
|
96
96
|
var delayMs = 240;
|
97
97
|
|
@@ -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
|
@@ -29,8 +29,6 @@ var ItemOptionForValueField = require('../ConditionBuilderItem/ConditionBuilderI
|
|
29
29
|
var useTranslations = require('../utils/useTranslations.js');
|
30
30
|
var useDataConfigs = require('../utils/useDataConfigs.js');
|
31
31
|
|
32
|
-
var _div;
|
33
|
-
|
34
32
|
/**
|
35
33
|
* This component build each block of condition consisting of property, operator value and close button.
|
36
34
|
*/
|
@@ -192,9 +190,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
192
190
|
onChange: function onChange(op) {
|
193
191
|
return onConnectorOperatorChange === null || onConnectorOperatorChange === void 0 ? void 0 : onConnectorOperatorChange(op);
|
194
192
|
}
|
195
|
-
}) :
|
196
|
-
role: "gridcell"
|
197
|
-
})), isStatement && /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
193
|
+
}) : '', isStatement && /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
198
194
|
label: group.statement,
|
199
195
|
title: conditionText,
|
200
196
|
"data-name": "connectorField",
|
@@ -268,7 +264,8 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
268
264
|
onBlur: handleHideDeletionPreview,
|
269
265
|
renderIcon: icons.Close,
|
270
266
|
className: "".concat(util.blockClass, "__close-condition"),
|
271
|
-
"data-name": "closeCondition"
|
267
|
+
"data-name": "closeCondition",
|
268
|
+
wrapperClassName: "".concat(util.blockClass, "__close-condition-wrapper")
|
272
269
|
})), manageActionButtons(conditionIndex, group.conditions) && /*#__PURE__*/React.createElement(ConditionBuilderAdd.default, {
|
273
270
|
onClick: function onClick() {
|
274
271
|
addConditionHandler === null || addConditionHandler === void 0 || addConditionHandler(conditionIndex);
|
package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts
CHANGED
@@ -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.
|
@@ -57,10 +57,7 @@ var ConditionConnector = function ConditionConnector(_ref) {
|
|
57
57
|
className: "".concat(className, " ").concat(util.blockClass, "__connector--disabled")
|
58
58
|
}, /*#__PURE__*/React.createElement(ConditionBuilderButton.ConditionBuilderButton, {
|
59
59
|
label: operator
|
60
|
-
})) :
|
61
|
-
/*#__PURE__*/
|
62
|
-
// <div className={className} {...rest}>
|
63
|
-
React.createElement(ConditionBuilderItem.ConditionBuilderItem, _rollupPluginBabelHelpers.extends({
|
60
|
+
})) : /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, _rollupPluginBabelHelpers.extends({
|
64
61
|
label: operator,
|
65
62
|
title: connectorText,
|
66
63
|
"data-name": "connectorField",
|
@@ -80,10 +77,7 @@ var ConditionConnector = function ConditionConnector(_ref) {
|
|
80
77
|
label: connectorText
|
81
78
|
},
|
82
79
|
onChange: onChangeHandler
|
83
|
-
}))
|
84
|
-
|
85
|
-
// </div>
|
86
|
-
;
|
80
|
+
}));
|
87
81
|
};
|
88
82
|
ConditionConnector.propTypes = {
|
89
83
|
/**
|
package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts
CHANGED
@@ -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.
|
@@ -117,7 +117,6 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
|
|
117
117
|
var addConditionGroupHandler = function addConditionGroupHandler() {
|
118
118
|
var newGroup = {
|
119
119
|
statement: 'ifAll',
|
120
|
-
// 'if|exclude if',
|
121
120
|
groupOperator: 'and',
|
122
121
|
id: uuidv4.default(),
|
123
122
|
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
|
@@ -65,6 +65,9 @@ var ItemOption = function ItemOption(_ref) {
|
|
65
65
|
className: "".concat(util.blockClass, "__statement_wrapper")
|
66
66
|
}, /*#__PURE__*/React.createElement("div", null, option.text1, " (", option.connector, ")"), /*#__PURE__*/React.createElement("div", null, option.text2));
|
67
67
|
};
|
68
|
+
var preventDefault = function preventDefault(evt) {
|
69
|
+
return evt.preventDefault();
|
70
|
+
};
|
68
71
|
if (!allOptions) {
|
69
72
|
return;
|
70
73
|
}
|
@@ -77,7 +80,8 @@ var ItemOption = function ItemOption(_ref) {
|
|
77
80
|
size: "sm",
|
78
81
|
labelText: clearSearchText,
|
79
82
|
closeButtonLabelText: clearSearchText,
|
80
|
-
onChange: onSearchChangeHandler
|
83
|
+
onChange: onSearchChangeHandler,
|
84
|
+
onKeyDown: preventDefault
|
81
85
|
})), /*#__PURE__*/React.createElement("ul", {
|
82
86
|
"aria-label": getAriaLabel(),
|
83
87
|
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
|
@@ -46,6 +46,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
46
46
|
});
|
47
47
|
var selection = Array.isArray(conditionState.value) ? conditionState.value : conditionState.value !== undefined ? [conditionState.value] : [];
|
48
48
|
React.useEffect(function () {
|
49
|
+
//this commented code is kept as intentional. Alternate approach to pass async options instead of getOptions callback.
|
49
50
|
// if(rest['data-name'] == 'valueField'){
|
50
51
|
// const fetchData = async () => {
|
51
52
|
// const response = await config.options(conditionState);
|
@@ -134,6 +135,9 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
134
135
|
var getAriaLabel = function getAriaLabel() {
|
135
136
|
return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : propertyText;
|
136
137
|
};
|
138
|
+
var preventDefault = function preventDefault(evt) {
|
139
|
+
return evt.preventDefault();
|
140
|
+
};
|
137
141
|
if (!allOptions) {
|
138
142
|
return _SelectSkeleton || (_SelectSkeleton = /*#__PURE__*/React.createElement(react.SelectSkeleton, null));
|
139
143
|
}
|
@@ -146,7 +150,8 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
146
150
|
size: "sm",
|
147
151
|
labelText: clearSearchText,
|
148
152
|
closeButtonLabelText: clearSearchText,
|
149
|
-
onChange: onSearchChangeHandler
|
153
|
+
onChange: onSearchChangeHandler,
|
154
|
+
onKeyDown: preventDefault
|
150
155
|
})), multiSelectable && /*#__PURE__*/React.createElement("div", {
|
151
156
|
className: "".concat(util.blockClass, "__multiselectSelectionStatusContainer")
|
152
157
|
}, /*#__PURE__*/React.createElement("h4", null, /*#__PURE__*/React.createElement("label", null, selection.length, "/", allOptions.length, " Selected")), /*#__PURE__*/React.createElement(react.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
|