@carbon/ibm-products 2.61.0-rc.0 → 2.62.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/css/index-full-carbon.css +170 -22
- 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 +170 -22
- 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 +170 -22
- 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 +170 -22
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/es/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/es/components/APIKeyModal/APIKeyModal.js +16 -16
- package/es/components/AboutModal/AboutModal.js +1 -1
- package/es/components/ActionBar/ActionBar.js +5 -5
- package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/es/components/ActionSet/ActionSet.js +5 -5
- package/es/components/AddSelect/AddSelect.js +5 -4
- package/es/components/AddSelect/AddSelectBody.js +12 -11
- package/es/components/AddSelect/AddSelectColumn.js +1 -1
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/es/components/AddSelect/AddSelectRow.js +21 -13
- package/es/components/AddSelect/AddSelectSidebar.js +14 -4
- package/es/components/AddSelect/AddSelectSort.js +5 -5
- package/es/components/AddSelect/add-select-utils.js +3 -3
- package/es/components/AddSelect/types/index.d.ts +1 -0
- package/es/components/BigNumbers/BigNumbers.js +11 -11
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/es/components/Card/Card.js +14 -14
- package/es/components/Card/CardFooter.js +4 -4
- package/es/components/Card/CardHeader.js +2 -2
- package/es/components/Carousel/Carousel.js +16 -16
- package/es/components/Cascade/Cascade.js +2 -2
- package/es/components/Checklist/Checklist.js +11 -11
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/Coachmark/Coachmark.js +10 -10
- package/es/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/es/components/Coachmark/CoachmarkHeader.js +4 -4
- package/es/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/es/components/Coachmark/CoachmarkTagline.js +3 -3
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/es/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/es/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/es/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/es/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/es/components/ConditionBuilder/utils/util.js +13 -13
- package/es/components/CreateFullPage/CreateFullPage.js +3 -3
- package/es/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/es/components/Datagrid/useActionsColumn.js +2 -2
- package/es/components/Datagrid/useColumnRightAlign.js +3 -3
- package/es/components/Datagrid/useCustomizeColumns.js +1 -1
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/es/components/Datagrid/useDisableSelectRows.js +16 -16
- package/es/components/Datagrid/useExpandedRow.js +1 -1
- package/es/components/Datagrid/useFiltering.js +1 -1
- package/es/components/Datagrid/useFloatingScroll.js +2 -2
- package/es/components/Datagrid/useFocusRowExpander.js +4 -4
- package/es/components/Datagrid/useInfiniteScroll.js +1 -1
- package/es/components/Datagrid/useInitialColumnSort.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +4 -4
- package/es/components/Datagrid/useNestedRowExpander.js +6 -6
- package/es/components/Datagrid/useNestedRows.js +6 -6
- package/es/components/Datagrid/useOnRowClick.js +1 -1
- package/es/components/Datagrid/useRowExpander.js +4 -4
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/es/components/Datagrid/useRowRenderer.js +6 -6
- package/es/components/Datagrid/useSelectAllToggle.js +2 -2
- package/es/components/Datagrid/useSelectRows.js +5 -5
- package/es/components/Datagrid/useSortableColumns.js +11 -11
- package/es/components/Datagrid/useStickyColumn.js +8 -8
- package/es/components/DecoratorBase/DecoratorBase.js +8 -8
- package/es/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/es/components/DelimitedList/DelimitedList.js +3 -3
- package/es/components/DescriptionList/DescriptionList.js +2 -2
- package/es/components/EditInPlace/EditInPlace.js +6 -6
- package/es/components/EditSidePanel/EditSidePanel.js +3 -3
- package/es/components/EditTearsheet/EditTearsheet.js +3 -3
- package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/es/components/EmptyStates/EmptyState.js +5 -5
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/EmptyStateV2.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/es/components/ExportModal/ExportModal.js +7 -7
- package/es/components/FeatureFlags/index.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +18 -34
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/Guidebanner/Guidebanner.js +8 -8
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/ImportModal/ImportModal.js +2 -2
- package/es/components/InlineTip/InlineTip.d.ts +0 -14
- package/es/components/InlineTip/InlineTip.js +13 -35
- package/es/components/InlineTip/utils.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/es/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/es/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/es/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/es/components/Nav/Nav.js +3 -3
- package/es/components/Nav/NavItem.js +8 -9
- package/es/components/Nav/NavList.js +14 -15
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/es/components/OptionsTile/OptionsTile.js +4 -3
- package/es/components/PageHeader/PageHeader.js +19 -19
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/ProductiveCard/ProductiveCard.js +1 -1
- package/es/components/RemoveModal/RemoveModal.js +2 -2
- package/es/components/Saving/Saving.js +4 -4
- package/es/components/ScrollGradient/ScrollGradient.js +6 -6
- package/es/components/SearchBar/SearchBar.js +6 -6
- package/es/components/SidePanel/SidePanel.js +45 -45
- package/es/components/SimpleHeader/SimpleHeader.js +4 -4
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/StatusIndicator/StatusIndicator.js +2 -2
- package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +4 -4
- package/es/components/TagOverflow/TagOverflow.js +7 -7
- package/es/components/TagOverflow/TagOverflowModal.js +4 -4
- package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/es/components/TagSet/TagSet.js +15 -15
- package/es/components/TagSet/TagSetModal.js +6 -6
- package/es/components/TagSet/TagSetOverflow.js +3 -3
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +6 -6
- package/es/components/Toolbar/Toolbar.js +6 -6
- package/es/components/Toolbar/ToolbarButton.js +4 -4
- package/es/components/TruncatedList/TruncatedList.js +8 -8
- package/es/components/UserAvatar/UserAvatar.js +4 -4
- package/es/components/UserProfileImage/UserProfileImage.js +2 -2
- package/es/components/WebTerminal/WebTerminal.js +8 -8
- package/es/global/js/hooks/useControllableState.js +1 -1
- package/es/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/es/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/es/global/js/hooks/useFocus.js +19 -19
- package/es/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/es/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/es/global/js/hooks/useOverflowString.js +6 -6
- package/es/global/js/hooks/usePresence.d.ts +23 -0
- package/es/global/js/hooks/usePresence.js +26 -6
- package/es/global/js/hooks/useResetCreateComponent.js +1 -1
- package/es/global/js/hooks/useResizeObserver.js +5 -5
- package/es/global/js/hooks/useRetrieveStepData.js +1 -1
- package/es/global/js/package-settings.js +4 -4
- package/es/global/js/utils/Wrap.js +2 -2
- package/es/global/js/utils/checkForOverflow.js +1 -1
- package/es/global/js/utils/debounce.d.ts +1 -1
- package/es/global/js/utils/debounce.js +2 -2
- package/es/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/es/global/js/utils/getSupportedLocale.js +2 -0
- package/es/global/js/utils/lastIndexInArray.js +1 -1
- package/es/global/js/utils/props-helper.js +1 -1
- package/es/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +894 -863
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/es/settings.js +2 -2
- package/lib/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/lib/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/lib/components/APIKeyModal/APIKeyModal.js +16 -16
- package/lib/components/AboutModal/AboutModal.js +1 -1
- package/lib/components/ActionBar/ActionBar.js +5 -5
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/lib/components/ActionSet/ActionSet.js +5 -5
- package/lib/components/AddSelect/AddSelect.js +5 -4
- package/lib/components/AddSelect/AddSelectBody.js +12 -11
- package/lib/components/AddSelect/AddSelectColumn.js +1 -1
- package/lib/components/AddSelect/AddSelectFilter.js +1 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/lib/components/AddSelect/AddSelectRow.js +20 -12
- package/lib/components/AddSelect/AddSelectSidebar.js +14 -4
- package/lib/components/AddSelect/AddSelectSort.js +5 -5
- package/lib/components/AddSelect/add-select-utils.js +3 -3
- package/lib/components/AddSelect/types/index.d.ts +1 -0
- package/lib/components/BigNumbers/BigNumbers.js +10 -10
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/lib/components/Card/Card.js +14 -14
- package/lib/components/Card/CardFooter.js +4 -4
- package/lib/components/Card/CardHeader.js +2 -2
- package/lib/components/Carousel/Carousel.js +16 -16
- package/lib/components/Cascade/Cascade.js +2 -2
- package/lib/components/Checklist/Checklist.js +11 -11
- package/lib/components/Checklist/ChecklistChart.js +1 -1
- package/lib/components/Checklist/ChecklistIcon.js +1 -1
- package/lib/components/Coachmark/Coachmark.js +10 -10
- package/lib/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/lib/components/Coachmark/CoachmarkHeader.js +4 -4
- package/lib/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/lib/components/Coachmark/CoachmarkTagline.js +3 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/lib/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/lib/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/lib/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/lib/components/ConditionBuilder/utils/util.js +13 -13
- package/lib/components/CreateFullPage/CreateFullPage.js +3 -3
- package/lib/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/lib/components/CreateModal/CreateModal.js +1 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/lib/components/Datagrid/useActionsColumn.js +2 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
- package/lib/components/Datagrid/useCustomizeColumns.js +1 -1
- package/lib/components/Datagrid/useDatagrid.js +2 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/lib/components/Datagrid/useDisableSelectRows.js +16 -16
- package/lib/components/Datagrid/useExpandedRow.js +1 -1
- package/lib/components/Datagrid/useFiltering.js +1 -1
- package/lib/components/Datagrid/useFloatingScroll.js +2 -2
- package/lib/components/Datagrid/useFocusRowExpander.js +4 -4
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -1
- package/lib/components/Datagrid/useInitialColumnSort.js +1 -1
- package/lib/components/Datagrid/useInlineEdit.js +4 -4
- package/lib/components/Datagrid/useNestedRowExpander.js +6 -6
- package/lib/components/Datagrid/useNestedRows.js +6 -6
- package/lib/components/Datagrid/useOnRowClick.js +1 -1
- package/lib/components/Datagrid/useRowExpander.js +4 -4
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/lib/components/Datagrid/useRowRenderer.js +6 -6
- package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
- package/lib/components/Datagrid/useSelectRows.js +5 -5
- package/lib/components/Datagrid/useSortableColumns.js +11 -11
- package/lib/components/Datagrid/useStickyColumn.js +8 -8
- package/lib/components/DecoratorBase/DecoratorBase.js +8 -8
- package/lib/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/lib/components/DelimitedList/DelimitedList.js +3 -3
- package/lib/components/DescriptionList/DescriptionList.js +2 -2
- package/lib/components/EditInPlace/EditInPlace.js +6 -6
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheet.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/lib/components/EmptyStates/EmptyState.js +5 -5
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/lib/components/ExportModal/ExportModal.js +7 -7
- package/lib/components/FeatureFlags/index.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/lib/components/FilterSummary/FilterSummary.js +18 -34
- package/lib/components/FullPageError/FullPageError.js +1 -1
- package/lib/components/Guidebanner/Guidebanner.js +8 -8
- package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/lib/components/ImportModal/ImportModal.js +2 -2
- package/lib/components/InlineTip/InlineTip.d.ts +0 -14
- package/lib/components/InlineTip/InlineTip.js +13 -35
- package/lib/components/InlineTip/utils.js +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/lib/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/lib/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/lib/components/Nav/Nav.js +3 -3
- package/lib/components/Nav/NavItem.js +12 -13
- package/lib/components/Nav/NavList.js +18 -19
- package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/lib/components/OptionsTile/OptionsTile.js +4 -3
- package/lib/components/PageHeader/PageHeader.js +19 -19
- package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
- package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
- package/lib/components/ProductiveCard/ProductiveCard.js +1 -1
- package/lib/components/RemoveModal/RemoveModal.js +2 -2
- package/lib/components/Saving/Saving.js +4 -4
- package/lib/components/ScrollGradient/ScrollGradient.js +6 -6
- package/lib/components/SearchBar/SearchBar.js +6 -6
- package/lib/components/SidePanel/SidePanel.js +45 -45
- package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
- package/lib/components/StatusIcon/StatusIcon.js +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.js +2 -2
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/lib/components/StringFormatter/StringFormatter.js +4 -4
- package/lib/components/TagOverflow/TagOverflow.js +7 -7
- package/lib/components/TagOverflow/TagOverflowModal.js +4 -4
- package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/lib/components/TagSet/TagSet.js +15 -15
- package/lib/components/TagSet/TagSetModal.js +6 -6
- package/lib/components/TagSet/TagSetOverflow.js +3 -3
- package/lib/components/Tearsheet/Tearsheet.js +2 -2
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/lib/components/Tearsheet/TearsheetShell.js +6 -6
- package/lib/components/Toolbar/Toolbar.js +6 -6
- package/lib/components/Toolbar/ToolbarButton.js +4 -4
- package/lib/components/TruncatedList/TruncatedList.js +8 -8
- package/lib/components/UserAvatar/UserAvatar.js +4 -4
- package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
- package/lib/components/WebTerminal/WebTerminal.js +8 -8
- package/lib/global/js/hooks/useControllableState.js +1 -1
- package/lib/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/lib/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/lib/global/js/hooks/useFocus.js +19 -19
- package/lib/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/lib/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/lib/global/js/hooks/useOverflowString.js +6 -6
- package/lib/global/js/hooks/usePresence.d.ts +23 -0
- package/lib/global/js/hooks/usePresence.js +26 -6
- package/lib/global/js/hooks/useResetCreateComponent.js +1 -1
- package/lib/global/js/hooks/useResizeObserver.js +5 -5
- package/lib/global/js/hooks/useRetrieveStepData.js +1 -1
- package/lib/global/js/package-settings.js +4 -4
- package/lib/global/js/utils/Wrap.js +2 -2
- package/lib/global/js/utils/checkForOverflow.js +1 -1
- package/lib/global/js/utils/debounce.d.ts +1 -1
- package/lib/global/js/utils/debounce.js +2 -2
- package/lib/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/lib/global/js/utils/getSupportedLocale.js +2 -0
- package/lib/global/js/utils/lastIndexInArray.js +1 -1
- package/lib/global/js/utils/props-helper.js +1 -1
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +902 -871
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/lib/settings.js +2 -2
- package/package.json +19 -19
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +100 -22
- package/scss/components/Datagrid/styles/addons/_animations.scss +56 -0
- package/scss/components/FilterSummary/_animations.scss +20 -0
- package/scss/components/FilterSummary/_filter-summary.scss +11 -0
- package/scss/components/FullPageError/_full-page-error.scss +4 -0
- package/scss/components/GetStartedCard/_get-started-card.scss +2 -2
- package/scss/components/NotificationsPanel/_notifications-panel.scss +35 -7
- package/scss/components/SidePanel/_side-panel.scss +4 -2
- package/scss/components/Tearsheet/_tearsheet.scss +6 -12
- package/telemetry.yml +9 -17
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -80
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -146
- package/es/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/es/global/js/utils/getBezierValues.d.ts +0 -1
- package/es/global/js/utils/getBezierValues.js +0 -28
- package/es/global/js/utils/motionConstants.d.ts +0 -23
- package/es/global/js/utils/motionConstants.js +0 -39
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -84
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -148
- package/lib/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/lib/global/js/utils/getBezierValues.d.ts +0 -1
- package/lib/global/js/utils/getBezierValues.js +0 -30
- package/lib/global/js/utils/motionConstants.d.ts +0 -23
- package/lib/global/js/utils/motionConstants.js +0 -42
- /package/es/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
- /package/lib/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
@@ -37,7 +37,7 @@ function _asyncToGenerator(n) {
|
|
37
37
|
function _throw(n) {
|
38
38
|
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
39
39
|
}
|
40
|
-
_next(
|
40
|
+
_next(void 0);
|
41
41
|
});
|
42
42
|
};
|
43
43
|
}
|
@@ -386,7 +386,7 @@ function _regeneratorRuntime() {
|
|
386
386
|
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
387
387
|
return this;
|
388
388
|
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
389
|
-
|
389
|
+
void 0 === i && (i = Promise);
|
390
390
|
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
391
391
|
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
392
392
|
return t.done ? t.value : a.next();
|
@@ -496,7 +496,7 @@ function _toConsumableArray(r) {
|
|
496
496
|
function _toPrimitive(t, r) {
|
497
497
|
if ("object" != typeof t || !t) return t;
|
498
498
|
var e = t[Symbol.toPrimitive];
|
499
|
-
if (
|
499
|
+
if (void 0 !== e) {
|
500
500
|
var i = e.call(t, r);
|
501
501
|
if ("object" != typeof i) return i;
|
502
502
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
@@ -520,7 +520,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
520
520
|
if (r) {
|
521
521
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
522
522
|
var t = {}.toString.call(r).slice(8, -1);
|
523
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
523
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
524
524
|
}
|
525
525
|
}
|
526
526
|
|
@@ -63,9 +63,9 @@ var APIKeyDownloader = function APIKeyDownloader(_ref) {
|
|
63
63
|
className: "".concat(pkg.prefix, "--apikey-modal__messaging-text")
|
64
64
|
}, body, ' ', /*#__PURE__*/React__default.createElement("a", _extends({}, linkProps, {
|
65
65
|
className: "".concat(pkg.prefix, "--apikey-modal__download-link"),
|
66
|
-
"aria-label": downloadLinkLabel !== null && downloadLinkLabel !==
|
66
|
+
"aria-label": downloadLinkLabel !== null && downloadLinkLabel !== void 0 ? downloadLinkLabel : linkText,
|
67
67
|
role: "button"
|
68
|
-
}), downloadLinkLabel !== null && downloadLinkLabel !==
|
68
|
+
}), downloadLinkLabel !== null && downloadLinkLabel !== void 0 ? downloadLinkLabel : linkText)));
|
69
69
|
};
|
70
70
|
APIKeyDownloader.displayName = componentName;
|
71
71
|
APIKeyDownloader.propTypes = {
|
@@ -34,7 +34,7 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
34
34
|
var apiKey = _ref.apiKey,
|
35
35
|
apiKeyLabel = _ref.apiKeyLabel,
|
36
36
|
_ref$apiKeyName = _ref.apiKeyName,
|
37
|
-
apiKeyName = _ref$apiKeyName ===
|
37
|
+
apiKeyName = _ref$apiKeyName === void 0 ? defaults.apiKeyName : _ref$apiKeyName,
|
38
38
|
body = _ref.body,
|
39
39
|
className = _ref.className,
|
40
40
|
closeButtonText = _ref.closeButtonText,
|
@@ -42,13 +42,13 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
42
42
|
copyErrorText = _ref.copyErrorText,
|
43
43
|
copyIconDescription = _ref.copyIconDescription,
|
44
44
|
_ref$customSteps = _ref.customSteps,
|
45
|
-
customSteps = _ref$customSteps ===
|
45
|
+
customSteps = _ref$customSteps === void 0 ? defaults.customSteps : _ref$customSteps,
|
46
46
|
downloadBodyText = _ref.downloadBodyText,
|
47
47
|
downloadFileName = _ref.downloadFileName,
|
48
48
|
downloadFileType = _ref.downloadFileType,
|
49
49
|
downloadLinkText = _ref.downloadLinkText,
|
50
50
|
_ref$downloadLinkLabe = _ref.downloadLinkLabel,
|
51
|
-
downloadLinkLabel = _ref$downloadLinkLabe ===
|
51
|
+
downloadLinkLabel = _ref$downloadLinkLabe === void 0 ? downloadLinkText : _ref$downloadLinkLabe,
|
52
52
|
editButtonText = _ref.editButtonText,
|
53
53
|
editSuccess = _ref.editSuccess,
|
54
54
|
editSuccessTitle = _ref.editSuccessTitle,
|
@@ -132,14 +132,14 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
132
132
|
if (copyRef.current && open && apiKeyLoaded) {
|
133
133
|
copyRef.current.focus();
|
134
134
|
}
|
135
|
-
if (PasswordInputRef !== null && PasswordInputRef !==
|
136
|
-
PasswordInputRef === null || PasswordInputRef ===
|
135
|
+
if (PasswordInputRef !== null && PasswordInputRef !== void 0 && PasswordInputRef.current) {
|
136
|
+
PasswordInputRef === null || PasswordInputRef === void 0 || PasswordInputRef.current.setAttribute('readOnly', 'true');
|
137
137
|
}
|
138
138
|
}, [open, apiKeyLoaded]);
|
139
139
|
useEffect(function () {
|
140
140
|
if (open) {
|
141
141
|
// Focusing the first element or selectorPrimaryFocus element
|
142
|
-
claimFocus(firstElement, modalRef, "#".concat(CSS.escape(apiKeyInputId === null || apiKeyInputId ===
|
142
|
+
claimFocus(firstElement, modalRef, "#".concat(CSS.escape(apiKeyInputId === null || apiKeyInputId === void 0 ? void 0 : apiKeyInputId.current)));
|
143
143
|
}
|
144
144
|
}, [firstElement, modalRef, open]);
|
145
145
|
useEffect(function () {
|
@@ -153,9 +153,9 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
153
153
|
if (loading) {
|
154
154
|
return true;
|
155
155
|
}
|
156
|
-
if (hasSteps && 'valid' in ((customSteps === null || customSteps ===
|
156
|
+
if (hasSteps && 'valid' in ((customSteps === null || customSteps === void 0 ? void 0 : customSteps[currentStep]) || [])) {
|
157
157
|
var _customSteps$currentS;
|
158
|
-
return !((_customSteps$currentS = customSteps[currentStep]) !== null && _customSteps$currentS !==
|
158
|
+
return !((_customSteps$currentS = customSteps[currentStep]) !== null && _customSteps$currentS !== void 0 && _customSteps$currentS.valid);
|
159
159
|
}
|
160
160
|
if (!hasSteps && nameRequired && !name) {
|
161
161
|
return true;
|
@@ -183,13 +183,13 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
183
183
|
useEffect(function () {
|
184
184
|
if (editing && editSuccess) {
|
185
185
|
setTitle(generateTitle);
|
186
|
-
setSuccessMessage(editSuccessMessage !== null && editSuccessMessage !==
|
186
|
+
setSuccessMessage(editSuccessMessage !== null && editSuccessMessage !== void 0 ? editSuccessMessage : editSuccessTitle);
|
187
187
|
} else if (apiKeyLoaded) {
|
188
188
|
setTitle(generateTitle);
|
189
|
-
setSuccessMessage(generateSuccessMessage !== null && generateSuccessMessage !==
|
189
|
+
setSuccessMessage(generateSuccessMessage !== null && generateSuccessMessage !== void 0 ? generateSuccessMessage : generateSuccessTitle);
|
190
190
|
} else if (hasSteps) {
|
191
191
|
var _customSteps$currentS2;
|
192
|
-
setTitle((_customSteps$currentS2 = customSteps[currentStep]) === null || _customSteps$currentS2 ===
|
192
|
+
setTitle((_customSteps$currentS2 = customSteps[currentStep]) === null || _customSteps$currentS2 === void 0 ? void 0 : _customSteps$currentS2.title);
|
193
193
|
} else {
|
194
194
|
setTitle(generateTitle);
|
195
195
|
}
|
@@ -200,7 +200,7 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
200
200
|
var onCloseHandler = function onCloseHandler() {
|
201
201
|
setName('');
|
202
202
|
setCurrentStep(0);
|
203
|
-
onClose === null || onClose ===
|
203
|
+
onClose === null || onClose === void 0 || onClose();
|
204
204
|
};
|
205
205
|
var submitHandler = /*#__PURE__*/function () {
|
206
206
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(e) {
|
@@ -244,9 +244,9 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
244
244
|
break;
|
245
245
|
case 21:
|
246
246
|
if (editing) {
|
247
|
-
onRequestEdit === null || onRequestEdit ===
|
247
|
+
onRequestEdit === null || onRequestEdit === void 0 || onRequestEdit(name);
|
248
248
|
} else {
|
249
|
-
onRequestGenerate === null || onRequestGenerate ===
|
249
|
+
onRequestGenerate === null || onRequestGenerate === void 0 || onRequestGenerate(name);
|
250
250
|
}
|
251
251
|
case 22:
|
252
252
|
case "end":
|
@@ -283,7 +283,7 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
283
283
|
label: modalLabel
|
284
284
|
}), /*#__PURE__*/React__default.createElement(ModalBody, {
|
285
285
|
className: "".concat(blockClass, "__body-container")
|
286
|
-
}, hasSteps && !apiKeyLoaded ? (_customSteps$currentS3 = customSteps[currentStep]) === null || _customSteps$currentS3 ===
|
286
|
+
}, hasSteps && !apiKeyLoaded ? (_customSteps$currentS3 = customSteps[currentStep]) === null || _customSteps$currentS3 === void 0 ? void 0 : _customSteps$currentS3.content : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, body && /*#__PURE__*/React__default.createElement("p", {
|
287
287
|
className: "".concat(blockClass, "__body")
|
288
288
|
}, body), !editing && apiKey && hasAPIKeyVisibilityToggle && /*#__PURE__*/React__default.createElement(PasswordInput, {
|
289
289
|
value: apiKey,
|
@@ -300,7 +300,7 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
300
300
|
id: apiKeyInputId.current
|
301
301
|
}), (editing || !apiKeyLoaded && nameRequired) && /*#__PURE__*/React__default.createElement(Form, {
|
302
302
|
onSubmit: submitHandler,
|
303
|
-
"aria-label": title !== null && title !==
|
303
|
+
"aria-label": title !== null && title !== void 0 ? title : undefined
|
304
304
|
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
305
305
|
helperText: nameHelperText,
|
306
306
|
placeholder: namePlaceholder,
|
@@ -58,7 +58,7 @@ var AboutModal = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
58
58
|
// as the parent of the current bodyRef element
|
59
59
|
useEffect(function () {
|
60
60
|
var _contentRef$current;
|
61
|
-
bodyRef.current = (_contentRef$current = contentRef.current) === null || _contentRef$current ===
|
61
|
+
bodyRef.current = (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.parentElement;
|
62
62
|
}, [bodyRef]);
|
63
63
|
useEffect(function () {
|
64
64
|
if (open) {
|
@@ -15,7 +15,7 @@ import uuidv4 from '../../global/js/utils/uuidv4.js';
|
|
15
15
|
import { prepareProps } from '../../global/js/utils/props-helper.js';
|
16
16
|
import { ActionBarItem } from './ActionBarItem.js';
|
17
17
|
import { ActionBarOverflowItems } from './ActionBarOverflowItems.js';
|
18
|
-
import { useOverflowItems } from '../../global/js/hooks/useOverflowItems.js';
|
18
|
+
import { useOverflowItems } from '../../global/js/hooks/useOverflowItems/useOverflowItems.js';
|
19
19
|
|
20
20
|
var _excluded = ["actions", "className", "maxVisible", "menuOptionsClass", "onWidthChange", "overflowAriaLabel", "overflowMenuRef", "rightAlign"],
|
21
21
|
_excluded2 = ["id"],
|
@@ -36,7 +36,7 @@ var defaults = {
|
|
36
36
|
*/
|
37
37
|
var ActionBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
38
38
|
var _ref$actions = _ref.actions,
|
39
|
-
actions = _ref$actions ===
|
39
|
+
actions = _ref$actions === void 0 ? defaults.actions : _ref$actions,
|
40
40
|
className = _ref.className,
|
41
41
|
maxVisible = _ref.maxVisible,
|
42
42
|
menuOptionsClass = _ref.menuOptionsClass,
|
@@ -53,7 +53,7 @@ var ActionBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
53
53
|
var offsetRef = overflowMenuRef || _offsetRef;
|
54
54
|
var _items = actions.map(function (action) {
|
55
55
|
return _objectSpread2({
|
56
|
-
id: action === null || action ===
|
56
|
+
id: action === null || action === void 0 ? void 0 : action.key
|
57
57
|
}, action);
|
58
58
|
});
|
59
59
|
var _useOverflowItems = useOverflowItems(_items, localRef, offsetRef, maxVisible, onWidthChange),
|
@@ -61,7 +61,7 @@ var ActionBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
61
61
|
hiddenItems = _useOverflowItems.hiddenItems,
|
62
62
|
itemRefHandler = _useOverflowItems.itemRefHandler,
|
63
63
|
offsetRefHandler = _useOverflowItems.offsetRefHandler;
|
64
|
-
var overflowMenuItems = hiddenItems === null || hiddenItems ===
|
64
|
+
var overflowMenuItems = hiddenItems === null || hiddenItems === void 0 ? void 0 : hiddenItems.map(function (_ref2) {
|
65
65
|
var key = _ref2.id,
|
66
66
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
67
67
|
return /*#__PURE__*/React__default.createElement(ActionBarItem, _extends({}, rest, {
|
@@ -86,7 +86,7 @@ var ActionBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
86
86
|
itemRefHandler(id, node);
|
87
87
|
}
|
88
88
|
}));
|
89
|
-
}), (overflowMenuItems === null || overflowMenuItems ===
|
89
|
+
}), (overflowMenuItems === null || overflowMenuItems === void 0 ? void 0 : overflowMenuItems.length) > 0 && /*#__PURE__*/React__default.createElement(ActionBarOverflowItems, {
|
90
90
|
menuOptionsClass: menuOptionsClass,
|
91
91
|
overflowAriaLabel: overflowAriaLabel,
|
92
92
|
overflowMenuRef: function overflowMenuRef(node) {
|
@@ -41,17 +41,17 @@ var ActionBarOverflowItems = function ActionBarOverflowItems(_ref) {
|
|
41
41
|
// This uses a copy of a menu item option
|
42
42
|
// NOTE: Cannot use a real Tooltip icon below as it uses a <button /> the
|
43
43
|
// div equivalent below is based on Carbon 10.25.0
|
44
|
-
var ItemIcon = item === null || item ===
|
44
|
+
var ItemIcon = item === null || item === void 0 ? void 0 : item.props.renderIcon;
|
45
45
|
return /*#__PURE__*/React__default.createElement(OverflowMenuItem, {
|
46
46
|
className: "".concat(blockClass, "__item"),
|
47
|
-
onClick: item === null || item ===
|
47
|
+
onClick: item === null || item === void 0 ? void 0 : item.props.onClick,
|
48
48
|
itemText: /*#__PURE__*/React__default.createElement("div", {
|
49
49
|
className: "".concat(blockClass, "__item-content"),
|
50
50
|
"aria-describedby": "".concat(internalId.current, "-").concat(index, "--item-label")
|
51
51
|
}, /*#__PURE__*/React__default.createElement("span", {
|
52
52
|
className: "".concat(blockClass, "__item-label"),
|
53
53
|
id: "".concat(internalId.current, "-").concat(index, "--item-label")
|
54
|
-
}, item === null || item ===
|
54
|
+
}, item === null || item === void 0 ? void 0 : item.props.label), typeof (item === null || item === void 0 ? void 0 : item.props.renderIcon) === 'function' ? /*#__PURE__*/React__default.createElement(ItemIcon, null) : item === null || item === void 0 ? void 0 : item.props.renderIcon)
|
55
55
|
});
|
56
56
|
})));
|
57
57
|
};
|
@@ -25,7 +25,7 @@ var ActionSetButton = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
|
|
25
25
|
label = _ref.label,
|
26
26
|
loading = _ref.loading,
|
27
27
|
_ref$isExpressive = _ref.isExpressive,
|
28
|
-
isExpressive = _ref$isExpressive ===
|
28
|
+
isExpressive = _ref$isExpressive === void 0 ? true : _ref$isExpressive,
|
29
29
|
rest = _objectWithoutProperties(_ref, _excluded);
|
30
30
|
return /*#__PURE__*/React__default.createElement(Button, _extends({}, rest, {
|
31
31
|
isExpressive: isExpressive,
|
@@ -68,9 +68,9 @@ var ActionSet = /*#__PURE__*/React__default.forwardRef(function (_ref3, ref) {
|
|
68
68
|
buttonSize = _ref3.buttonSize,
|
69
69
|
className = _ref3.className,
|
70
70
|
_ref3$size = _ref3.size,
|
71
|
-
size = _ref3$size ===
|
71
|
+
size = _ref3$size === void 0 ? defaults.size : _ref3$size,
|
72
72
|
rest = _objectWithoutProperties(_ref3, _excluded2);
|
73
|
-
var buttons = actions && ((_actions$slice = actions.slice) === null || _actions$slice ===
|
73
|
+
var buttons = actions && ((_actions$slice = actions.slice) === null || _actions$slice === void 0 ? void 0 : _actions$slice.call(actions, 0)) || [];
|
74
74
|
|
75
75
|
// We stack the buttons in a sm set, or if there are three or more in a md set.
|
76
76
|
var stacking = willStack(size, buttons.length);
|
@@ -84,7 +84,7 @@ var ActionSet = /*#__PURE__*/React__default.forwardRef(function (_ref3, ref) {
|
|
84
84
|
'danger--ghost': 2,
|
85
85
|
danger: 4,
|
86
86
|
primary: 5
|
87
|
-
}[kind]) !== null && _ghost$dangerGhost$ !==
|
87
|
+
}[kind]) !== null && _ghost$dangerGhost$ !== void 0 ? _ghost$dangerGhost$ : 3;
|
88
88
|
};
|
89
89
|
|
90
90
|
// order the actions with ghost/ghost-danger buttons first and primary/danger buttons last
|
@@ -126,7 +126,7 @@ ActionSet.validateActions = function (sizeFn) {
|
|
126
126
|
return function (props, propName, componentName, location, propFullName) {
|
127
127
|
var name = propFullName || propName;
|
128
128
|
var prop = props[name];
|
129
|
-
var actions = prop && (prop === null || prop ===
|
129
|
+
var actions = prop && (prop === null || prop === void 0 ? void 0 : prop.length);
|
130
130
|
var problems = [];
|
131
131
|
if (actions > 0) {
|
132
132
|
var size = sizeFn ? sizeFn(props) : props.size || defaults.size;
|
@@ -15,7 +15,7 @@ var _excluded = ["items", "globalFilters"];
|
|
15
15
|
var componentName = 'AddSelect';
|
16
16
|
var AddSelect = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
17
17
|
var _ref$items = _ref.items,
|
18
|
-
items = _ref$items ===
|
18
|
+
items = _ref$items === void 0 ? {
|
19
19
|
entries: []
|
20
20
|
} : _ref$items,
|
21
21
|
globalFilters = _ref.globalFilters,
|
@@ -24,10 +24,10 @@ var AddSelect = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
24
24
|
return item.children;
|
25
25
|
});
|
26
26
|
var normalizedItems = useNormalizedItems ? _normalize(items) : null;
|
27
|
-
var globalFilterOpts = props.multi && globalFilters !== null && globalFilters !==
|
27
|
+
var globalFilterOpts = props.multi && globalFilters !== null && globalFilters !== void 0 && globalFilters.length ? getGlobalFilterValues(globalFilters, normalizedItems) : null;
|
28
28
|
var defaultModifiers = props.multi && items.modifiers ? items.entries.map(function (item) {
|
29
29
|
var _items$modifiers;
|
30
|
-
var modifierAttribute = items === null || items ===
|
30
|
+
var modifierAttribute = items === null || items === void 0 || (_items$modifiers = items.modifiers) === null || _items$modifiers === void 0 ? void 0 : _items$modifiers.id;
|
31
31
|
var modifier = {
|
32
32
|
id: item.id
|
33
33
|
};
|
@@ -69,7 +69,8 @@ AddSelect.propTypes = {
|
|
69
69
|
modifiers: PropTypes.shape({
|
70
70
|
id: PropTypes.string,
|
71
71
|
label: PropTypes.string,
|
72
|
-
options: PropTypes.array
|
72
|
+
options: PropTypes.array,
|
73
|
+
multiSelect: PropTypes.bool
|
73
74
|
}),
|
74
75
|
sortBy: PropTypes.array,
|
75
76
|
filterBy: PropTypes.array,
|
@@ -129,7 +129,7 @@ var AddSelectBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
129
129
|
};
|
130
130
|
var onCloseHandler = function onCloseHandler() {
|
131
131
|
resetState();
|
132
|
-
onClose === null || onClose ===
|
132
|
+
onClose === null || onClose === void 0 || onClose();
|
133
133
|
};
|
134
134
|
var tearsheetClassnames = cx(className, blockClass, _defineProperty(_defineProperty({}, "".concat(blockClass, "__single"), !multi), "".concat(blockClass, "__multi"), multi));
|
135
135
|
var globalFilterKeys = Object.keys(appliedGlobalFilters);
|
@@ -143,17 +143,17 @@ var AddSelectBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
143
143
|
setAppliedGlobalFilters(filters);
|
144
144
|
};
|
145
145
|
var submitHandler = function submitHandler() {
|
146
|
-
if (multi && appliedModifiers && (appliedModifiers === null || appliedModifiers ===
|
146
|
+
if (multi && appliedModifiers && (appliedModifiers === null || appliedModifiers === void 0 ? void 0 : appliedModifiers.length) > 0) {
|
147
147
|
var selections = multiSelection.map(function (item) {
|
148
148
|
return appliedModifiers.find(function (mod) {
|
149
149
|
return mod.id === item;
|
150
150
|
});
|
151
151
|
});
|
152
|
-
onSubmit === null || onSubmit ===
|
153
|
-
} else if (multi && (appliedModifiers === null || appliedModifiers ===
|
154
|
-
onSubmit === null || onSubmit ===
|
152
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(selections);
|
153
|
+
} else if (multi && (appliedModifiers === null || appliedModifiers === void 0 ? void 0 : appliedModifiers.length) === 0) {
|
154
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(multiSelection);
|
155
155
|
} else {
|
156
|
-
onSubmit === null || onSubmit ===
|
156
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(singleSelection);
|
157
157
|
}
|
158
158
|
onCloseHandler();
|
159
159
|
};
|
@@ -220,9 +220,9 @@ var AddSelectBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
220
220
|
displayMetalPanel: displayMetalPanel,
|
221
221
|
illustrationTheme: illustrationTheme,
|
222
222
|
influencerTitle: influencerTitle,
|
223
|
-
items: useNormalizedItems ? normalizedItems : items === null || items ===
|
223
|
+
items: useNormalizedItems ? normalizedItems : items === null || items === void 0 ? void 0 : items.entries,
|
224
224
|
metaPanelTitle: metaPanelTitle,
|
225
|
-
modifiers: items === null || items ===
|
225
|
+
modifiers: items === null || items === void 0 ? void 0 : items.modifiers,
|
226
226
|
multiSelection: multiSelection,
|
227
227
|
noSelectionDescription: noSelectionDescription,
|
228
228
|
noSelectionTitle: noSelectionTitle,
|
@@ -272,12 +272,12 @@ var AddSelectBody = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
272
272
|
}, /*#__PURE__*/React__default.createElement(_AddSelectColumn, _extends({}, commonListProps, {
|
273
273
|
items: itemsToDisplay,
|
274
274
|
columnInputPlaceholder: columnInputPlaceholder,
|
275
|
-
header: (_path$ = path[0]) === null || _path$ ===
|
275
|
+
header: (_path$ = path[0]) === null || _path$ === void 0 ? void 0 : _path$.title,
|
276
276
|
filterByLabel: filterByLabel,
|
277
277
|
sortByLabel: sortByLabel
|
278
278
|
}))) : /*#__PURE__*/React__default.createElement("div", null, hasResults ? /*#__PURE__*/React__default.createElement(AddSelectList, _extends({}, commonListProps, {
|
279
279
|
filteredItems: itemsToDisplay,
|
280
|
-
modifiers: items === null || items ===
|
280
|
+
modifiers: items === null || items === void 0 ? void 0 : items.modifiers,
|
281
281
|
appliedModifiers: appliedModifiers,
|
282
282
|
setAppliedModifiers: setAppliedModifiers,
|
283
283
|
setParentSelected: parentSelectionHandler,
|
@@ -322,7 +322,8 @@ AddSelectBody.propTypes = {
|
|
322
322
|
modifiers: PropTypes.shape({
|
323
323
|
id: PropTypes.string,
|
324
324
|
label: PropTypes.string,
|
325
|
-
options: PropTypes.array
|
325
|
+
options: PropTypes.array,
|
326
|
+
multiSelect: PropTypes.bool
|
326
327
|
}),
|
327
328
|
sortBy: PropTypes.array,
|
328
329
|
filterBy: PropTypes.array,
|
@@ -70,7 +70,7 @@ var _AddSelectColumn = function AddSelectColumn(_ref) {
|
|
70
70
|
}
|
71
71
|
return (_entries$find = entries.find(function (item) {
|
72
72
|
return item.id === parentSelected;
|
73
|
-
})) !== null && _entries$find !==
|
73
|
+
})) !== null && _entries$find !== void 0 ? _entries$find : null;
|
74
74
|
};
|
75
75
|
var selectedItem = getSelectedItem();
|
76
76
|
/**
|
@@ -74,7 +74,7 @@ var AddSelectFilter = function AddSelectFilter(_ref) {
|
|
74
74
|
var getSelectedItem = function getSelectedItem(id) {
|
75
75
|
return filters[id] || '';
|
76
76
|
};
|
77
|
-
var showFilter = multi && (filterOpts === null || filterOpts ===
|
77
|
+
var showFilter = multi && (filterOpts === null || filterOpts === void 0 ? void 0 : filterOpts.length) > 0;
|
78
78
|
var filterBtnClassnames = cx("".concat(blockClass, "-toggle"), _defineProperty({}, "".concat(blockClass, "-toggle--open"), open));
|
79
79
|
var dirtyInput = Object.keys(filters).length > 0;
|
80
80
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
@@ -44,13 +44,13 @@ var AddSelectMetaPanel = function AddSelectMetaPanel(_ref) {
|
|
44
44
|
size: "sm"
|
45
45
|
})), /*#__PURE__*/isValidElement(meta) ? meta : meta.map(function (entry) {
|
46
46
|
return /*#__PURE__*/React__default.createElement("div", {
|
47
|
-
key: entry === null || entry ===
|
47
|
+
key: entry === null || entry === void 0 ? void 0 : entry.id,
|
48
48
|
className: "".concat(blockClass, "-entry")
|
49
49
|
}, /*#__PURE__*/React__default.createElement("p", {
|
50
50
|
className: "".concat(blockClass, "-entry-title")
|
51
|
-
}, entry === null || entry ===
|
51
|
+
}, entry === null || entry === void 0 ? void 0 : entry.title), /*#__PURE__*/React__default.createElement("p", {
|
52
52
|
className: "".concat(blockClass, "-entry-body")
|
53
|
-
}, entry === null || entry ===
|
53
|
+
}, entry === null || entry === void 0 ? void 0 : entry.value));
|
54
54
|
}));
|
55
55
|
};
|
56
56
|
AddSelectMetaPanel.propTypes = {
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
import { defineProperty as _defineProperty, extends as _extends, toConsumableArray as _toConsumableArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default, { useRef, useEffect, useCallback } from 'react';
|
10
|
-
import { Layer, Dropdown, Button } from '@carbon/react';
|
10
|
+
import { Layer, MultiSelect, Dropdown, Button } from '@carbon/react';
|
11
11
|
import { ChevronRight, View } from '@carbon/react/icons';
|
12
12
|
import PropTypes from '../../_virtual/index.js';
|
13
13
|
import cx from 'classnames';
|
@@ -114,12 +114,20 @@ var AddSelectRow = function AddSelectRow(_ref) {
|
|
114
114
|
}
|
115
115
|
};
|
116
116
|
var isInMetaPanel = function isInMetaPanel(id) {
|
117
|
-
return id === (displayMetalPanel === null || displayMetalPanel ===
|
117
|
+
return id === (displayMetalPanel === null || displayMetalPanel === void 0 ? void 0 : displayMetalPanel.id);
|
118
118
|
};
|
119
|
-
var hasModifiers = (modifiers === null || modifiers ===
|
119
|
+
var hasModifiers = (modifiers === null || modifiers === void 0 || (_modifiers$options = modifiers.options) === null || _modifiers$options === void 0 ? void 0 : _modifiers$options.length) > 0;
|
120
120
|
var tabIndex = getTabIndex();
|
121
121
|
var selected = isSelected();
|
122
122
|
var expanded = parentSelected === item.id;
|
123
|
+
var sharedSelectProps = {
|
124
|
+
id: "add-select-modifier-".concat(item.id),
|
125
|
+
titleText: modifiers === null || modifiers === void 0 ? void 0 : modifiers.title,
|
126
|
+
type: 'inline',
|
127
|
+
disabled: !isSelected(),
|
128
|
+
label: modifiers === null || modifiers === void 0 ? void 0 : modifiers.label,
|
129
|
+
items: modifiers === null || modifiers === void 0 ? void 0 : modifiers.options
|
130
|
+
};
|
123
131
|
return /*#__PURE__*/React__default.createElement("div", {
|
124
132
|
className: cx("".concat(blockClass, "-row"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "-row--selected"), isSelected()), "".concat(blockClass, "-row-meta--selected"), isInMetaPanel(item.id)), "".concat(blockClass, "-row--active"), expanded), "".concat(blockClass, "-row--focused"), focus === index)),
|
125
133
|
onKeyDown: onSelectKeyDown,
|
@@ -141,20 +149,20 @@ var AddSelectRow = function AddSelectRow(_ref) {
|
|
141
149
|
item: item,
|
142
150
|
selected: selected,
|
143
151
|
onClick: handleMultiSelection
|
144
|
-
}), hasModifiers && /*#__PURE__*/React__default.createElement(Layer, null, /*#__PURE__*/React__default.createElement(
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
152
|
+
}), hasModifiers && /*#__PURE__*/React__default.createElement(Layer, null, modifiers !== null && modifiers !== void 0 && modifiers.multiSelect ? /*#__PURE__*/React__default.createElement(MultiSelect, _extends({}, sharedSelectProps, {
|
153
|
+
initialSelectedItems: item[modifiers.id],
|
154
|
+
onChange: function onChange(_ref3) {
|
155
|
+
var selectedItems = _ref3.selectedItems;
|
156
|
+
return modifierHandler(item.id, selectedItems);
|
157
|
+
}
|
158
|
+
})) : /*#__PURE__*/React__default.createElement(Dropdown, _extends({}, sharedSelectProps, {
|
151
159
|
className: "".concat(blockClass, "-dropdown"),
|
152
160
|
initialSelectedItem: item[modifiers.id],
|
153
|
-
onChange: function onChange(
|
154
|
-
var selectedItem =
|
161
|
+
onChange: function onChange(_ref4) {
|
162
|
+
var selectedItem = _ref4.selectedItem;
|
155
163
|
return modifierHandler(item.id, selectedItem);
|
156
164
|
}
|
157
|
-
}))) : /*#__PURE__*/React__default.createElement(AddSelectFormControl, {
|
165
|
+
})))) : /*#__PURE__*/React__default.createElement(AddSelectFormControl, {
|
158
166
|
type: "radio",
|
159
167
|
item: item,
|
160
168
|
selected: selected,
|
@@ -30,7 +30,7 @@ var AddSelectSidebar = function AddSelectSidebar(_ref) {
|
|
30
30
|
noSelectionDescription = _ref.noSelectionDescription,
|
31
31
|
noSelectionTitle = _ref.noSelectionTitle,
|
32
32
|
setDisplayMetaPanel = _ref.setDisplayMetaPanel;
|
33
|
-
var hasModifiers = (modifiers === null || modifiers ===
|
33
|
+
var hasModifiers = (modifiers === null || modifiers === void 0 || (_modifiers$options = modifiers.options) === null || _modifiers$options === void 0 ? void 0 : _modifiers$options.length) > 0;
|
34
34
|
var hasSelections = multiSelection.length > 0;
|
35
35
|
var getNewItem = function getNewItem(item) {
|
36
36
|
// certain properties should not be displayed in the sidebar
|
@@ -51,6 +51,18 @@ var AddSelectSidebar = function AddSelectSidebar(_ref) {
|
|
51
51
|
return getNewItem(items[selectionId]);
|
52
52
|
});
|
53
53
|
var getTitle = function getTitle(item) {
|
54
|
+
var modifierEl;
|
55
|
+
if (hasModifiers) {
|
56
|
+
var _modifiers = appliedModifiers === null || appliedModifiers === void 0 ? void 0 : appliedModifiers.find(function (modifier) {
|
57
|
+
return (modifier === null || modifier === void 0 ? void 0 : modifier.id) === (item === null || item === void 0 ? void 0 : item.id);
|
58
|
+
})[modifiers === null || modifiers === void 0 ? void 0 : modifiers.id];
|
59
|
+
modifierEl = _modifiers;
|
60
|
+
if (Array.isArray(_modifiers)) {
|
61
|
+
modifierEl = _modifiers === null || _modifiers === void 0 ? void 0 : _modifiers.map(function (_modifier, index) {
|
62
|
+
return "".concat(_modifier).concat(index + 1 !== _modifiers.length ? ', ' : '');
|
63
|
+
});
|
64
|
+
}
|
65
|
+
}
|
54
66
|
return /*#__PURE__*/React__default.createElement("div", {
|
55
67
|
className: "".concat(blockClass, "-accordion-title")
|
56
68
|
}, /*#__PURE__*/React__default.createElement("div", {
|
@@ -59,9 +71,7 @@ var AddSelectSidebar = function AddSelectSidebar(_ref) {
|
|
59
71
|
className: "".concat(blockClass, "-selected-item-title")
|
60
72
|
}, item.title), /*#__PURE__*/React__default.createElement("p", {
|
61
73
|
className: "".concat(blockClass, "-selected-item-subtitle")
|
62
|
-
}, item.subtitle)), hasModifiers && /*#__PURE__*/React__default.createElement("div", null,
|
63
|
-
return modifier.id === item.id;
|
64
|
-
})[modifiers.id]));
|
74
|
+
}, item.subtitle)), hasModifiers && /*#__PURE__*/React__default.createElement("div", null, modifierEl));
|
65
75
|
};
|
66
76
|
if (Object.keys(displayMetalPanel).length !== 0) {
|
67
77
|
return /*#__PURE__*/React__default.createElement(AddSelectMetaPanel, {
|
@@ -20,7 +20,7 @@ var AddSelectSort = function AddSelectSort(_ref) {
|
|
20
20
|
setSortDirection = _ref.setSortDirection,
|
21
21
|
sortBy = _ref.sortBy,
|
22
22
|
sortByLabel = _ref.sortByLabel;
|
23
|
-
var sortByOpts = sortBy ? sortBy === null || sortBy ===
|
23
|
+
var sortByOpts = sortBy ? sortBy === null || sortBy === void 0 ? void 0 : sortBy.reduce(function (acc, cur) {
|
24
24
|
var opts = [{
|
25
25
|
id: "".concat(cur, "-asc"),
|
26
26
|
itemText: /*#__PURE__*/React__default.createElement(React__default.Fragment, null, _ArrowUp || (_ArrowUp = /*#__PURE__*/React__default.createElement(ArrowUp, {
|
@@ -43,8 +43,8 @@ var AddSelectSort = function AddSelectSort(_ref) {
|
|
43
43
|
var sortHandler = function sortHandler(_ref2) {
|
44
44
|
var direction = _ref2.direction,
|
45
45
|
attribute = _ref2.attribute;
|
46
|
-
setSortAttribute === null || setSortAttribute ===
|
47
|
-
setSortDirection === null || setSortDirection ===
|
46
|
+
setSortAttribute === null || setSortAttribute === void 0 || setSortAttribute(attribute);
|
47
|
+
setSortDirection === null || setSortDirection === void 0 || setSortDirection(direction);
|
48
48
|
};
|
49
49
|
return /*#__PURE__*/React__default.createElement("div", {
|
50
50
|
className: blockClass
|
@@ -61,8 +61,8 @@ var AddSelectSort = function AddSelectSort(_ref) {
|
|
61
61
|
}, sortByOpts.map(function (opt) {
|
62
62
|
return /*#__PURE__*/React__default.createElement(OverflowMenuItem, {
|
63
63
|
className: "".concat(blockClass, "_overflow-item"),
|
64
|
-
key: opt === null || opt ===
|
65
|
-
itemText: opt === null || opt ===
|
64
|
+
key: opt === null || opt === void 0 ? void 0 : opt.id,
|
65
|
+
itemText: opt === null || opt === void 0 ? void 0 : opt.itemText,
|
66
66
|
onClick: function onClick() {
|
67
67
|
return sortHandler(opt);
|
68
68
|
}
|
@@ -57,8 +57,8 @@ var getGlobalFilterValues = function getGlobalFilterValues(globalFilters, items)
|
|
57
57
|
var sortItems = function sortItems(attribute, direction) {
|
58
58
|
return function (a, b) {
|
59
59
|
var _a$attribute, _b$attribute;
|
60
|
-
var valueA = (_a$attribute = a[attribute]) === null || _a$attribute ===
|
61
|
-
var valueB = (_b$attribute = b[attribute]) === null || _b$attribute ===
|
60
|
+
var valueA = (_a$attribute = a[attribute]) === null || _a$attribute === void 0 ? void 0 : _a$attribute.split(' ').join('');
|
61
|
+
var valueB = (_b$attribute = b[attribute]) === null || _b$attribute === void 0 ? void 0 : _b$attribute.split(' ').join('');
|
62
62
|
if (direction === 'desc') {
|
63
63
|
return valueA > valueB ? -1 : 1;
|
64
64
|
}
|
@@ -105,7 +105,7 @@ var getFilteredItems = function getFilteredItems(useNormalizedItems, normalizedI
|
|
105
105
|
}
|
106
106
|
var item = (_prev$find = prev.find(function (item) {
|
107
107
|
return item.id === cur.id;
|
108
|
-
})) === null || _prev$find ===
|
108
|
+
})) === null || _prev$find === void 0 || (_prev$find = _prev$find.children) === null || _prev$find === void 0 ? void 0 : _prev$find.entries;
|
109
109
|
return item;
|
110
110
|
}, items.entries);
|
111
111
|
}
|