@carbon/ibm-products 2.61.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
@@ -339,7 +339,7 @@ function requireFactoryWithTypeCheckers() {
|
|
339
339
|
}
|
340
340
|
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
341
341
|
if (!Array.isArray(arrayOfTypeCheckers)) {
|
342
|
-
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') :
|
342
|
+
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
343
343
|
return emptyFunctionThatReturnsNull;
|
344
344
|
}
|
345
345
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
package/es/settings.js
CHANGED
@@ -18,12 +18,12 @@ var componentDeprecatedWarning = function componentDeprecatedWarning(name, detai
|
|
18
18
|
return "Carbon for IBM Products (WARNING): Component \"".concat(name, "\" is deprecated. ").concat(details);
|
19
19
|
};
|
20
20
|
pkg$1.logDeprecated = function (component, name) {
|
21
|
-
if (component !== null && component !==
|
21
|
+
if (component !== null && component !== void 0 && component.deprecated) {
|
22
22
|
var _pconsole$level;
|
23
23
|
var _component$deprecated = component.deprecated,
|
24
24
|
level = _component$deprecated.level,
|
25
25
|
details = _component$deprecated.details;
|
26
|
-
var logUsing = (_pconsole$level = pconsole === null || pconsole ===
|
26
|
+
var logUsing = (_pconsole$level = pconsole === null || pconsole === void 0 ? void 0 : pconsole[level]) !== null && _pconsole$level !== void 0 ? _pconsole$level : pconsole.error;
|
27
27
|
logUsing(componentDeprecatedWarning(name || component.displayName, details));
|
28
28
|
}
|
29
29
|
};
|
@@ -39,7 +39,7 @@ function _asyncToGenerator(n) {
|
|
39
39
|
function _throw(n) {
|
40
40
|
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
41
41
|
}
|
42
|
-
_next(
|
42
|
+
_next(void 0);
|
43
43
|
});
|
44
44
|
};
|
45
45
|
}
|
@@ -388,7 +388,7 @@ function _regeneratorRuntime() {
|
|
388
388
|
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
389
389
|
return this;
|
390
390
|
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
391
|
-
|
391
|
+
void 0 === i && (i = Promise);
|
392
392
|
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
393
393
|
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
394
394
|
return t.done ? t.value : a.next();
|
@@ -498,7 +498,7 @@ function _toConsumableArray(r) {
|
|
498
498
|
function _toPrimitive(t, r) {
|
499
499
|
if ("object" != typeof t || !t) return t;
|
500
500
|
var e = t[Symbol.toPrimitive];
|
501
|
-
if (
|
501
|
+
if (void 0 !== e) {
|
502
502
|
var i = e.call(t, r);
|
503
503
|
if ("object" != typeof i) return i;
|
504
504
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
@@ -522,7 +522,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
522
522
|
if (r) {
|
523
523
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
524
524
|
var t = {}.toString.call(r).slice(8, -1);
|
525
|
-
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) :
|
525
|
+
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;
|
526
526
|
}
|
527
527
|
}
|
528
528
|
|
@@ -65,9 +65,9 @@ var APIKeyDownloader = function APIKeyDownloader(_ref) {
|
|
65
65
|
className: "".concat(settings.pkg.prefix, "--apikey-modal__messaging-text")
|
66
66
|
}, body, ' ', /*#__PURE__*/React.createElement("a", _rollupPluginBabelHelpers.extends({}, linkProps, {
|
67
67
|
className: "".concat(settings.pkg.prefix, "--apikey-modal__download-link"),
|
68
|
-
"aria-label": downloadLinkLabel !== null && downloadLinkLabel !==
|
68
|
+
"aria-label": downloadLinkLabel !== null && downloadLinkLabel !== void 0 ? downloadLinkLabel : linkText,
|
69
69
|
role: "button"
|
70
|
-
}), downloadLinkLabel !== null && downloadLinkLabel !==
|
70
|
+
}), downloadLinkLabel !== null && downloadLinkLabel !== void 0 ? downloadLinkLabel : linkText)));
|
71
71
|
};
|
72
72
|
APIKeyDownloader.displayName = componentName;
|
73
73
|
APIKeyDownloader.propTypes = {
|
@@ -36,7 +36,7 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
36
36
|
var apiKey = _ref.apiKey,
|
37
37
|
apiKeyLabel = _ref.apiKeyLabel,
|
38
38
|
_ref$apiKeyName = _ref.apiKeyName,
|
39
|
-
apiKeyName = _ref$apiKeyName ===
|
39
|
+
apiKeyName = _ref$apiKeyName === void 0 ? defaults.apiKeyName : _ref$apiKeyName,
|
40
40
|
body = _ref.body,
|
41
41
|
className = _ref.className,
|
42
42
|
closeButtonText = _ref.closeButtonText,
|
@@ -44,13 +44,13 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
44
44
|
copyErrorText = _ref.copyErrorText,
|
45
45
|
copyIconDescription = _ref.copyIconDescription,
|
46
46
|
_ref$customSteps = _ref.customSteps,
|
47
|
-
customSteps = _ref$customSteps ===
|
47
|
+
customSteps = _ref$customSteps === void 0 ? defaults.customSteps : _ref$customSteps,
|
48
48
|
downloadBodyText = _ref.downloadBodyText,
|
49
49
|
downloadFileName = _ref.downloadFileName,
|
50
50
|
downloadFileType = _ref.downloadFileType,
|
51
51
|
downloadLinkText = _ref.downloadLinkText,
|
52
52
|
_ref$downloadLinkLabe = _ref.downloadLinkLabel,
|
53
|
-
downloadLinkLabel = _ref$downloadLinkLabe ===
|
53
|
+
downloadLinkLabel = _ref$downloadLinkLabe === void 0 ? downloadLinkText : _ref$downloadLinkLabe,
|
54
54
|
editButtonText = _ref.editButtonText,
|
55
55
|
editSuccess = _ref.editSuccess,
|
56
56
|
editSuccessTitle = _ref.editSuccessTitle,
|
@@ -134,14 +134,14 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
134
134
|
if (copyRef.current && open && apiKeyLoaded) {
|
135
135
|
copyRef.current.focus();
|
136
136
|
}
|
137
|
-
if (PasswordInputRef !== null && PasswordInputRef !==
|
138
|
-
PasswordInputRef === null || PasswordInputRef ===
|
137
|
+
if (PasswordInputRef !== null && PasswordInputRef !== void 0 && PasswordInputRef.current) {
|
138
|
+
PasswordInputRef === null || PasswordInputRef === void 0 || PasswordInputRef.current.setAttribute('readOnly', 'true');
|
139
139
|
}
|
140
140
|
}, [open, apiKeyLoaded]);
|
141
141
|
React.useEffect(function () {
|
142
142
|
if (open) {
|
143
143
|
// Focusing the first element or selectorPrimaryFocus element
|
144
|
-
useFocus.claimFocus(firstElement, modalRef, "#".concat(CSS.escape(apiKeyInputId === null || apiKeyInputId ===
|
144
|
+
useFocus.claimFocus(firstElement, modalRef, "#".concat(CSS.escape(apiKeyInputId === null || apiKeyInputId === void 0 ? void 0 : apiKeyInputId.current)));
|
145
145
|
}
|
146
146
|
}, [firstElement, modalRef, open]);
|
147
147
|
React.useEffect(function () {
|
@@ -155,9 +155,9 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
155
155
|
if (loading) {
|
156
156
|
return true;
|
157
157
|
}
|
158
|
-
if (hasSteps && 'valid' in ((customSteps === null || customSteps ===
|
158
|
+
if (hasSteps && 'valid' in ((customSteps === null || customSteps === void 0 ? void 0 : customSteps[currentStep]) || [])) {
|
159
159
|
var _customSteps$currentS;
|
160
|
-
return !((_customSteps$currentS = customSteps[currentStep]) !== null && _customSteps$currentS !==
|
160
|
+
return !((_customSteps$currentS = customSteps[currentStep]) !== null && _customSteps$currentS !== void 0 && _customSteps$currentS.valid);
|
161
161
|
}
|
162
162
|
if (!hasSteps && nameRequired && !name) {
|
163
163
|
return true;
|
@@ -185,13 +185,13 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
185
185
|
React.useEffect(function () {
|
186
186
|
if (editing && editSuccess) {
|
187
187
|
setTitle(generateTitle);
|
188
|
-
setSuccessMessage(editSuccessMessage !== null && editSuccessMessage !==
|
188
|
+
setSuccessMessage(editSuccessMessage !== null && editSuccessMessage !== void 0 ? editSuccessMessage : editSuccessTitle);
|
189
189
|
} else if (apiKeyLoaded) {
|
190
190
|
setTitle(generateTitle);
|
191
|
-
setSuccessMessage(generateSuccessMessage !== null && generateSuccessMessage !==
|
191
|
+
setSuccessMessage(generateSuccessMessage !== null && generateSuccessMessage !== void 0 ? generateSuccessMessage : generateSuccessTitle);
|
192
192
|
} else if (hasSteps) {
|
193
193
|
var _customSteps$currentS2;
|
194
|
-
setTitle((_customSteps$currentS2 = customSteps[currentStep]) === null || _customSteps$currentS2 ===
|
194
|
+
setTitle((_customSteps$currentS2 = customSteps[currentStep]) === null || _customSteps$currentS2 === void 0 ? void 0 : _customSteps$currentS2.title);
|
195
195
|
} else {
|
196
196
|
setTitle(generateTitle);
|
197
197
|
}
|
@@ -202,7 +202,7 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
202
202
|
var onCloseHandler = function onCloseHandler() {
|
203
203
|
setName('');
|
204
204
|
setCurrentStep(0);
|
205
|
-
onClose === null || onClose ===
|
205
|
+
onClose === null || onClose === void 0 || onClose();
|
206
206
|
};
|
207
207
|
var submitHandler = /*#__PURE__*/function () {
|
208
208
|
var _ref2 = _rollupPluginBabelHelpers.asyncToGenerator(/*#__PURE__*/_rollupPluginBabelHelpers.regeneratorRuntime().mark(function _callee(e) {
|
@@ -246,9 +246,9 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
246
246
|
break;
|
247
247
|
case 21:
|
248
248
|
if (editing) {
|
249
|
-
onRequestEdit === null || onRequestEdit ===
|
249
|
+
onRequestEdit === null || onRequestEdit === void 0 || onRequestEdit(name);
|
250
250
|
} else {
|
251
|
-
onRequestGenerate === null || onRequestGenerate ===
|
251
|
+
onRequestGenerate === null || onRequestGenerate === void 0 || onRequestGenerate(name);
|
252
252
|
}
|
253
253
|
case 22:
|
254
254
|
case "end":
|
@@ -285,7 +285,7 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
285
285
|
label: modalLabel
|
286
286
|
}), /*#__PURE__*/React.createElement(react.ModalBody, {
|
287
287
|
className: "".concat(blockClass, "__body-container")
|
288
|
-
}, hasSteps && !apiKeyLoaded ? (_customSteps$currentS3 = customSteps[currentStep]) === null || _customSteps$currentS3 ===
|
288
|
+
}, hasSteps && !apiKeyLoaded ? (_customSteps$currentS3 = customSteps[currentStep]) === null || _customSteps$currentS3 === void 0 ? void 0 : _customSteps$currentS3.content : /*#__PURE__*/React.createElement(React.Fragment, null, body && /*#__PURE__*/React.createElement("p", {
|
289
289
|
className: "".concat(blockClass, "__body")
|
290
290
|
}, body), !editing && apiKey && hasAPIKeyVisibilityToggle && /*#__PURE__*/React.createElement(react.PasswordInput, {
|
291
291
|
value: apiKey,
|
@@ -302,7 +302,7 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
302
302
|
id: apiKeyInputId.current
|
303
303
|
}), (editing || !apiKeyLoaded && nameRequired) && /*#__PURE__*/React.createElement(react.Form, {
|
304
304
|
onSubmit: submitHandler,
|
305
|
-
"aria-label": title !== null && title !==
|
305
|
+
"aria-label": title !== null && title !== void 0 ? title : undefined
|
306
306
|
}, /*#__PURE__*/React.createElement(react.TextInput, {
|
307
307
|
helperText: nameHelperText,
|
308
308
|
placeholder: namePlaceholder,
|
@@ -60,7 +60,7 @@ exports.AboutModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
60
60
|
// as the parent of the current bodyRef element
|
61
61
|
React.useEffect(function () {
|
62
62
|
var _contentRef$current;
|
63
|
-
bodyRef.current = (_contentRef$current = contentRef.current) === null || _contentRef$current ===
|
63
|
+
bodyRef.current = (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.parentElement;
|
64
64
|
}, [bodyRef]);
|
65
65
|
React.useEffect(function () {
|
66
66
|
if (open) {
|
@@ -17,7 +17,7 @@ var uuidv4 = require('../../global/js/utils/uuidv4.js');
|
|
17
17
|
var propsHelper = require('../../global/js/utils/props-helper.js');
|
18
18
|
var ActionBarItem = require('./ActionBarItem.js');
|
19
19
|
var ActionBarOverflowItems = require('./ActionBarOverflowItems.js');
|
20
|
-
var useOverflowItems = require('../../global/js/hooks/useOverflowItems.js');
|
20
|
+
var useOverflowItems = require('../../global/js/hooks/useOverflowItems/useOverflowItems.js');
|
21
21
|
|
22
22
|
var _excluded = ["actions", "className", "maxVisible", "menuOptionsClass", "onWidthChange", "overflowAriaLabel", "overflowMenuRef", "rightAlign"],
|
23
23
|
_excluded2 = ["id"],
|
@@ -38,7 +38,7 @@ var defaults = {
|
|
38
38
|
*/
|
39
39
|
exports.ActionBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
40
40
|
var _ref$actions = _ref.actions,
|
41
|
-
actions = _ref$actions ===
|
41
|
+
actions = _ref$actions === void 0 ? defaults.actions : _ref$actions,
|
42
42
|
className = _ref.className,
|
43
43
|
maxVisible = _ref.maxVisible,
|
44
44
|
menuOptionsClass = _ref.menuOptionsClass,
|
@@ -55,7 +55,7 @@ exports.ActionBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
55
55
|
var offsetRef = overflowMenuRef || _offsetRef;
|
56
56
|
var _items = actions.map(function (action) {
|
57
57
|
return _rollupPluginBabelHelpers.objectSpread2({
|
58
|
-
id: action === null || action ===
|
58
|
+
id: action === null || action === void 0 ? void 0 : action.key
|
59
59
|
}, action);
|
60
60
|
});
|
61
61
|
var _useOverflowItems = useOverflowItems.useOverflowItems(_items, localRef, offsetRef, maxVisible, onWidthChange),
|
@@ -63,7 +63,7 @@ exports.ActionBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
63
63
|
hiddenItems = _useOverflowItems.hiddenItems,
|
64
64
|
itemRefHandler = _useOverflowItems.itemRefHandler,
|
65
65
|
offsetRefHandler = _useOverflowItems.offsetRefHandler;
|
66
|
-
var overflowMenuItems = hiddenItems === null || hiddenItems ===
|
66
|
+
var overflowMenuItems = hiddenItems === null || hiddenItems === void 0 ? void 0 : hiddenItems.map(function (_ref2) {
|
67
67
|
var key = _ref2.id,
|
68
68
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded2);
|
69
69
|
return /*#__PURE__*/React.createElement(ActionBarItem.ActionBarItem, _rollupPluginBabelHelpers.extends({}, rest, {
|
@@ -88,7 +88,7 @@ exports.ActionBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
88
88
|
itemRefHandler(id, node);
|
89
89
|
}
|
90
90
|
}));
|
91
|
-
}), (overflowMenuItems === null || overflowMenuItems ===
|
91
|
+
}), (overflowMenuItems === null || overflowMenuItems === void 0 ? void 0 : overflowMenuItems.length) > 0 && /*#__PURE__*/React.createElement(ActionBarOverflowItems.ActionBarOverflowItems, {
|
92
92
|
menuOptionsClass: menuOptionsClass,
|
93
93
|
overflowAriaLabel: overflowAriaLabel,
|
94
94
|
overflowMenuRef: function overflowMenuRef(node) {
|
@@ -43,17 +43,17 @@ var ActionBarOverflowItems = function ActionBarOverflowItems(_ref) {
|
|
43
43
|
// This uses a copy of a menu item option
|
44
44
|
// NOTE: Cannot use a real Tooltip icon below as it uses a <button /> the
|
45
45
|
// div equivalent below is based on Carbon 10.25.0
|
46
|
-
var ItemIcon = item === null || item ===
|
46
|
+
var ItemIcon = item === null || item === void 0 ? void 0 : item.props.renderIcon;
|
47
47
|
return /*#__PURE__*/React.createElement(react.OverflowMenuItem, {
|
48
48
|
className: "".concat(blockClass, "__item"),
|
49
|
-
onClick: item === null || item ===
|
49
|
+
onClick: item === null || item === void 0 ? void 0 : item.props.onClick,
|
50
50
|
itemText: /*#__PURE__*/React.createElement("div", {
|
51
51
|
className: "".concat(blockClass, "__item-content"),
|
52
52
|
"aria-describedby": "".concat(internalId.current, "-").concat(index, "--item-label")
|
53
53
|
}, /*#__PURE__*/React.createElement("span", {
|
54
54
|
className: "".concat(blockClass, "__item-label"),
|
55
55
|
id: "".concat(internalId.current, "-").concat(index, "--item-label")
|
56
|
-
}, item === null || item ===
|
56
|
+
}, item === null || item === void 0 ? void 0 : item.props.label), typeof (item === null || item === void 0 ? void 0 : item.props.renderIcon) === 'function' ? /*#__PURE__*/React.createElement(ItemIcon, null) : item === null || item === void 0 ? void 0 : item.props.renderIcon)
|
57
57
|
});
|
58
58
|
})));
|
59
59
|
};
|
@@ -27,7 +27,7 @@ var ActionSetButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
27
27
|
label = _ref.label,
|
28
28
|
loading = _ref.loading,
|
29
29
|
_ref$isExpressive = _ref.isExpressive,
|
30
|
-
isExpressive = _ref$isExpressive ===
|
30
|
+
isExpressive = _ref$isExpressive === void 0 ? true : _ref$isExpressive,
|
31
31
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
32
32
|
return /*#__PURE__*/React.createElement(react.Button, _rollupPluginBabelHelpers.extends({}, rest, {
|
33
33
|
isExpressive: isExpressive,
|
@@ -70,9 +70,9 @@ var ActionSet = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
70
70
|
buttonSize = _ref3.buttonSize,
|
71
71
|
className = _ref3.className,
|
72
72
|
_ref3$size = _ref3.size,
|
73
|
-
size = _ref3$size ===
|
73
|
+
size = _ref3$size === void 0 ? defaults.size : _ref3$size,
|
74
74
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref3, _excluded2);
|
75
|
-
var buttons = actions && ((_actions$slice = actions.slice) === null || _actions$slice ===
|
75
|
+
var buttons = actions && ((_actions$slice = actions.slice) === null || _actions$slice === void 0 ? void 0 : _actions$slice.call(actions, 0)) || [];
|
76
76
|
|
77
77
|
// We stack the buttons in a sm set, or if there are three or more in a md set.
|
78
78
|
var stacking = willStack(size, buttons.length);
|
@@ -86,7 +86,7 @@ var ActionSet = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
86
86
|
'danger--ghost': 2,
|
87
87
|
danger: 4,
|
88
88
|
primary: 5
|
89
|
-
}[kind]) !== null && _ghost$dangerGhost$ !==
|
89
|
+
}[kind]) !== null && _ghost$dangerGhost$ !== void 0 ? _ghost$dangerGhost$ : 3;
|
90
90
|
};
|
91
91
|
|
92
92
|
// order the actions with ghost/ghost-danger buttons first and primary/danger buttons last
|
@@ -128,7 +128,7 @@ ActionSet.validateActions = function (sizeFn) {
|
|
128
128
|
return function (props, propName, componentName, location, propFullName) {
|
129
129
|
var name = propFullName || propName;
|
130
130
|
var prop = props[name];
|
131
|
-
var actions = prop && (prop === null || prop ===
|
131
|
+
var actions = prop && (prop === null || prop === void 0 ? void 0 : prop.length);
|
132
132
|
var problems = [];
|
133
133
|
if (actions > 0) {
|
134
134
|
var size = sizeFn ? sizeFn(props) : props.size || defaults.size;
|
@@ -17,7 +17,7 @@ var _excluded = ["items", "globalFilters"];
|
|
17
17
|
var componentName = 'AddSelect';
|
18
18
|
var AddSelect = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
19
19
|
var _ref$items = _ref.items,
|
20
|
-
items = _ref$items ===
|
20
|
+
items = _ref$items === void 0 ? {
|
21
21
|
entries: []
|
22
22
|
} : _ref$items,
|
23
23
|
globalFilters = _ref.globalFilters,
|
@@ -26,10 +26,10 @@ var AddSelect = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
26
26
|
return item.children;
|
27
27
|
});
|
28
28
|
var normalizedItems = useNormalizedItems ? addSelectUtils.normalize(items) : null;
|
29
|
-
var globalFilterOpts = props.multi && globalFilters !== null && globalFilters !==
|
29
|
+
var globalFilterOpts = props.multi && globalFilters !== null && globalFilters !== void 0 && globalFilters.length ? addSelectUtils.getGlobalFilterValues(globalFilters, normalizedItems) : null;
|
30
30
|
var defaultModifiers = props.multi && items.modifiers ? items.entries.map(function (item) {
|
31
31
|
var _items$modifiers;
|
32
|
-
var modifierAttribute = items === null || items ===
|
32
|
+
var modifierAttribute = items === null || items === void 0 || (_items$modifiers = items.modifiers) === null || _items$modifiers === void 0 ? void 0 : _items$modifiers.id;
|
33
33
|
var modifier = {
|
34
34
|
id: item.id
|
35
35
|
};
|
@@ -71,7 +71,8 @@ AddSelect.propTypes = {
|
|
71
71
|
modifiers: index.default.shape({
|
72
72
|
id: index.default.string,
|
73
73
|
label: index.default.string,
|
74
|
-
options: index.default.array
|
74
|
+
options: index.default.array,
|
75
|
+
multiSelect: index.default.bool
|
75
76
|
}),
|
76
77
|
sortBy: index.default.array,
|
77
78
|
filterBy: index.default.array,
|
@@ -131,7 +131,7 @@ var AddSelectBody = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
131
131
|
};
|
132
132
|
var onCloseHandler = function onCloseHandler() {
|
133
133
|
resetState();
|
134
|
-
onClose === null || onClose ===
|
134
|
+
onClose === null || onClose === void 0 || onClose();
|
135
135
|
};
|
136
136
|
var tearsheetClassnames = cx(className, blockClass, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__single"), !multi), "".concat(blockClass, "__multi"), multi));
|
137
137
|
var globalFilterKeys = Object.keys(appliedGlobalFilters);
|
@@ -145,17 +145,17 @@ var AddSelectBody = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
145
145
|
setAppliedGlobalFilters(filters);
|
146
146
|
};
|
147
147
|
var submitHandler = function submitHandler() {
|
148
|
-
if (multi && appliedModifiers && (appliedModifiers === null || appliedModifiers ===
|
148
|
+
if (multi && appliedModifiers && (appliedModifiers === null || appliedModifiers === void 0 ? void 0 : appliedModifiers.length) > 0) {
|
149
149
|
var selections = multiSelection.map(function (item) {
|
150
150
|
return appliedModifiers.find(function (mod) {
|
151
151
|
return mod.id === item;
|
152
152
|
});
|
153
153
|
});
|
154
|
-
onSubmit === null || onSubmit ===
|
155
|
-
} else if (multi && (appliedModifiers === null || appliedModifiers ===
|
156
|
-
onSubmit === null || onSubmit ===
|
154
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(selections);
|
155
|
+
} else if (multi && (appliedModifiers === null || appliedModifiers === void 0 ? void 0 : appliedModifiers.length) === 0) {
|
156
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(multiSelection);
|
157
157
|
} else {
|
158
|
-
onSubmit === null || onSubmit ===
|
158
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(singleSelection);
|
159
159
|
}
|
160
160
|
onCloseHandler();
|
161
161
|
};
|
@@ -222,9 +222,9 @@ var AddSelectBody = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
222
222
|
displayMetalPanel: displayMetalPanel,
|
223
223
|
illustrationTheme: illustrationTheme,
|
224
224
|
influencerTitle: influencerTitle,
|
225
|
-
items: useNormalizedItems ? normalizedItems : items === null || items ===
|
225
|
+
items: useNormalizedItems ? normalizedItems : items === null || items === void 0 ? void 0 : items.entries,
|
226
226
|
metaPanelTitle: metaPanelTitle,
|
227
|
-
modifiers: items === null || items ===
|
227
|
+
modifiers: items === null || items === void 0 ? void 0 : items.modifiers,
|
228
228
|
multiSelection: multiSelection,
|
229
229
|
noSelectionDescription: noSelectionDescription,
|
230
230
|
noSelectionTitle: noSelectionTitle,
|
@@ -274,12 +274,12 @@ var AddSelectBody = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
274
274
|
}, /*#__PURE__*/React.createElement(AddSelectColumn.AddSelectColumn, _rollupPluginBabelHelpers.extends({}, commonListProps, {
|
275
275
|
items: itemsToDisplay,
|
276
276
|
columnInputPlaceholder: columnInputPlaceholder,
|
277
|
-
header: (_path$ = path[0]) === null || _path$ ===
|
277
|
+
header: (_path$ = path[0]) === null || _path$ === void 0 ? void 0 : _path$.title,
|
278
278
|
filterByLabel: filterByLabel,
|
279
279
|
sortByLabel: sortByLabel
|
280
280
|
}))) : /*#__PURE__*/React.createElement("div", null, hasResults ? /*#__PURE__*/React.createElement(AddSelectList.AddSelectList, _rollupPluginBabelHelpers.extends({}, commonListProps, {
|
281
281
|
filteredItems: itemsToDisplay,
|
282
|
-
modifiers: items === null || items ===
|
282
|
+
modifiers: items === null || items === void 0 ? void 0 : items.modifiers,
|
283
283
|
appliedModifiers: appliedModifiers,
|
284
284
|
setAppliedModifiers: setAppliedModifiers,
|
285
285
|
setParentSelected: parentSelectionHandler,
|
@@ -324,7 +324,8 @@ AddSelectBody.propTypes = {
|
|
324
324
|
modifiers: index.default.shape({
|
325
325
|
id: index.default.string,
|
326
326
|
label: index.default.string,
|
327
|
-
options: index.default.array
|
327
|
+
options: index.default.array,
|
328
|
+
multiSelect: index.default.bool
|
328
329
|
}),
|
329
330
|
sortBy: index.default.array,
|
330
331
|
filterBy: index.default.array,
|
@@ -72,7 +72,7 @@ var _AddSelectColumn = function AddSelectColumn(_ref) {
|
|
72
72
|
}
|
73
73
|
return (_entries$find = entries.find(function (item) {
|
74
74
|
return item.id === parentSelected;
|
75
|
-
})) !== null && _entries$find !==
|
75
|
+
})) !== null && _entries$find !== void 0 ? _entries$find : null;
|
76
76
|
};
|
77
77
|
var selectedItem = getSelectedItem();
|
78
78
|
/**
|
@@ -76,7 +76,7 @@ var AddSelectFilter = function AddSelectFilter(_ref) {
|
|
76
76
|
var getSelectedItem = function getSelectedItem(id) {
|
77
77
|
return filters[id] || '';
|
78
78
|
};
|
79
|
-
var showFilter = multi && (filterOpts === null || filterOpts ===
|
79
|
+
var showFilter = multi && (filterOpts === null || filterOpts === void 0 ? void 0 : filterOpts.length) > 0;
|
80
80
|
var filterBtnClassnames = cx("".concat(blockClass, "-toggle"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "-toggle--open"), open));
|
81
81
|
var dirtyInput = Object.keys(filters).length > 0;
|
82
82
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
@@ -46,13 +46,13 @@ var AddSelectMetaPanel = function AddSelectMetaPanel(_ref) {
|
|
46
46
|
size: "sm"
|
47
47
|
})), /*#__PURE__*/React.isValidElement(meta) ? meta : meta.map(function (entry) {
|
48
48
|
return /*#__PURE__*/React.createElement("div", {
|
49
|
-
key: entry === null || entry ===
|
49
|
+
key: entry === null || entry === void 0 ? void 0 : entry.id,
|
50
50
|
className: "".concat(blockClass, "-entry")
|
51
51
|
}, /*#__PURE__*/React.createElement("p", {
|
52
52
|
className: "".concat(blockClass, "-entry-title")
|
53
|
-
}, entry === null || entry ===
|
53
|
+
}, entry === null || entry === void 0 ? void 0 : entry.title), /*#__PURE__*/React.createElement("p", {
|
54
54
|
className: "".concat(blockClass, "-entry-body")
|
55
|
-
}, entry === null || entry ===
|
55
|
+
}, entry === null || entry === void 0 ? void 0 : entry.value));
|
56
56
|
}));
|
57
57
|
};
|
58
58
|
AddSelectMetaPanel.propTypes = {
|
@@ -116,12 +116,20 @@ var AddSelectRow = function AddSelectRow(_ref) {
|
|
116
116
|
}
|
117
117
|
};
|
118
118
|
var isInMetaPanel = function isInMetaPanel(id) {
|
119
|
-
return id === (displayMetalPanel === null || displayMetalPanel ===
|
119
|
+
return id === (displayMetalPanel === null || displayMetalPanel === void 0 ? void 0 : displayMetalPanel.id);
|
120
120
|
};
|
121
|
-
var hasModifiers = (modifiers === null || modifiers ===
|
121
|
+
var hasModifiers = (modifiers === null || modifiers === void 0 || (_modifiers$options = modifiers.options) === null || _modifiers$options === void 0 ? void 0 : _modifiers$options.length) > 0;
|
122
122
|
var tabIndex = getTabIndex();
|
123
123
|
var selected = isSelected();
|
124
124
|
var expanded = parentSelected === item.id;
|
125
|
+
var sharedSelectProps = {
|
126
|
+
id: "add-select-modifier-".concat(item.id),
|
127
|
+
titleText: modifiers === null || modifiers === void 0 ? void 0 : modifiers.title,
|
128
|
+
type: 'inline',
|
129
|
+
disabled: !isSelected(),
|
130
|
+
label: modifiers === null || modifiers === void 0 ? void 0 : modifiers.label,
|
131
|
+
items: modifiers === null || modifiers === void 0 ? void 0 : modifiers.options
|
132
|
+
};
|
125
133
|
return /*#__PURE__*/React.createElement("div", {
|
126
134
|
className: cx("".concat(blockClass, "-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.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)),
|
127
135
|
onKeyDown: onSelectKeyDown,
|
@@ -143,20 +151,20 @@ var AddSelectRow = function AddSelectRow(_ref) {
|
|
143
151
|
item: item,
|
144
152
|
selected: selected,
|
145
153
|
onClick: handleMultiSelection
|
146
|
-
}), hasModifiers && /*#__PURE__*/React.createElement(react.Layer, null, /*#__PURE__*/React.createElement(react.
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
154
|
+
}), hasModifiers && /*#__PURE__*/React.createElement(react.Layer, null, modifiers !== null && modifiers !== void 0 && modifiers.multiSelect ? /*#__PURE__*/React.createElement(react.MultiSelect, _rollupPluginBabelHelpers.extends({}, sharedSelectProps, {
|
155
|
+
initialSelectedItems: item[modifiers.id],
|
156
|
+
onChange: function onChange(_ref3) {
|
157
|
+
var selectedItems = _ref3.selectedItems;
|
158
|
+
return modifierHandler(item.id, selectedItems);
|
159
|
+
}
|
160
|
+
})) : /*#__PURE__*/React.createElement(react.Dropdown, _rollupPluginBabelHelpers.extends({}, sharedSelectProps, {
|
153
161
|
className: "".concat(blockClass, "-dropdown"),
|
154
162
|
initialSelectedItem: item[modifiers.id],
|
155
|
-
onChange: function onChange(
|
156
|
-
var selectedItem =
|
163
|
+
onChange: function onChange(_ref4) {
|
164
|
+
var selectedItem = _ref4.selectedItem;
|
157
165
|
return modifierHandler(item.id, selectedItem);
|
158
166
|
}
|
159
|
-
}))) : /*#__PURE__*/React.createElement(AddSelectFormControl.AddSelectFormControl, {
|
167
|
+
})))) : /*#__PURE__*/React.createElement(AddSelectFormControl.AddSelectFormControl, {
|
160
168
|
type: "radio",
|
161
169
|
item: item,
|
162
170
|
selected: selected,
|
@@ -32,7 +32,7 @@ var AddSelectSidebar = function AddSelectSidebar(_ref) {
|
|
32
32
|
noSelectionDescription = _ref.noSelectionDescription,
|
33
33
|
noSelectionTitle = _ref.noSelectionTitle,
|
34
34
|
setDisplayMetaPanel = _ref.setDisplayMetaPanel;
|
35
|
-
var hasModifiers = (modifiers === null || modifiers ===
|
35
|
+
var hasModifiers = (modifiers === null || modifiers === void 0 || (_modifiers$options = modifiers.options) === null || _modifiers$options === void 0 ? void 0 : _modifiers$options.length) > 0;
|
36
36
|
var hasSelections = multiSelection.length > 0;
|
37
37
|
var getNewItem = function getNewItem(item) {
|
38
38
|
// certain properties should not be displayed in the sidebar
|
@@ -53,6 +53,18 @@ var AddSelectSidebar = function AddSelectSidebar(_ref) {
|
|
53
53
|
return getNewItem(items[selectionId]);
|
54
54
|
});
|
55
55
|
var getTitle = function getTitle(item) {
|
56
|
+
var modifierEl;
|
57
|
+
if (hasModifiers) {
|
58
|
+
var _modifiers = appliedModifiers === null || appliedModifiers === void 0 ? void 0 : appliedModifiers.find(function (modifier) {
|
59
|
+
return (modifier === null || modifier === void 0 ? void 0 : modifier.id) === (item === null || item === void 0 ? void 0 : item.id);
|
60
|
+
})[modifiers === null || modifiers === void 0 ? void 0 : modifiers.id];
|
61
|
+
modifierEl = _modifiers;
|
62
|
+
if (Array.isArray(_modifiers)) {
|
63
|
+
modifierEl = _modifiers === null || _modifiers === void 0 ? void 0 : _modifiers.map(function (_modifier, index) {
|
64
|
+
return "".concat(_modifier).concat(index + 1 !== _modifiers.length ? ', ' : '');
|
65
|
+
});
|
66
|
+
}
|
67
|
+
}
|
56
68
|
return /*#__PURE__*/React.createElement("div", {
|
57
69
|
className: "".concat(blockClass, "-accordion-title")
|
58
70
|
}, /*#__PURE__*/React.createElement("div", {
|
@@ -61,9 +73,7 @@ var AddSelectSidebar = function AddSelectSidebar(_ref) {
|
|
61
73
|
className: "".concat(blockClass, "-selected-item-title")
|
62
74
|
}, item.title), /*#__PURE__*/React.createElement("p", {
|
63
75
|
className: "".concat(blockClass, "-selected-item-subtitle")
|
64
|
-
}, item.subtitle)), hasModifiers && /*#__PURE__*/React.createElement("div", null,
|
65
|
-
return modifier.id === item.id;
|
66
|
-
})[modifiers.id]));
|
76
|
+
}, item.subtitle)), hasModifiers && /*#__PURE__*/React.createElement("div", null, modifierEl));
|
67
77
|
};
|
68
78
|
if (Object.keys(displayMetalPanel).length !== 0) {
|
69
79
|
return /*#__PURE__*/React.createElement(AddSelectMetaPanel.AddSelectMetaPanel, {
|
@@ -22,7 +22,7 @@ var AddSelectSort = function AddSelectSort(_ref) {
|
|
22
22
|
setSortDirection = _ref.setSortDirection,
|
23
23
|
sortBy = _ref.sortBy,
|
24
24
|
sortByLabel = _ref.sortByLabel;
|
25
|
-
var sortByOpts = sortBy ? sortBy === null || sortBy ===
|
25
|
+
var sortByOpts = sortBy ? sortBy === null || sortBy === void 0 ? void 0 : sortBy.reduce(function (acc, cur) {
|
26
26
|
var opts = [{
|
27
27
|
id: "".concat(cur, "-asc"),
|
28
28
|
itemText: /*#__PURE__*/React.createElement(React.Fragment, null, _ArrowUp || (_ArrowUp = /*#__PURE__*/React.createElement(icons.ArrowUp, {
|
@@ -45,8 +45,8 @@ var AddSelectSort = function AddSelectSort(_ref) {
|
|
45
45
|
var sortHandler = function sortHandler(_ref2) {
|
46
46
|
var direction = _ref2.direction,
|
47
47
|
attribute = _ref2.attribute;
|
48
|
-
setSortAttribute === null || setSortAttribute ===
|
49
|
-
setSortDirection === null || setSortDirection ===
|
48
|
+
setSortAttribute === null || setSortAttribute === void 0 || setSortAttribute(attribute);
|
49
|
+
setSortDirection === null || setSortDirection === void 0 || setSortDirection(direction);
|
50
50
|
};
|
51
51
|
return /*#__PURE__*/React.createElement("div", {
|
52
52
|
className: blockClass
|
@@ -63,8 +63,8 @@ var AddSelectSort = function AddSelectSort(_ref) {
|
|
63
63
|
}, sortByOpts.map(function (opt) {
|
64
64
|
return /*#__PURE__*/React.createElement(react.OverflowMenuItem, {
|
65
65
|
className: "".concat(blockClass, "_overflow-item"),
|
66
|
-
key: opt === null || opt ===
|
67
|
-
itemText: opt === null || opt ===
|
66
|
+
key: opt === null || opt === void 0 ? void 0 : opt.id,
|
67
|
+
itemText: opt === null || opt === void 0 ? void 0 : opt.itemText,
|
68
68
|
onClick: function onClick() {
|
69
69
|
return sortHandler(opt);
|
70
70
|
}
|
@@ -59,8 +59,8 @@ var getGlobalFilterValues = function getGlobalFilterValues(globalFilters, items)
|
|
59
59
|
var sortItems = function sortItems(attribute, direction) {
|
60
60
|
return function (a, b) {
|
61
61
|
var _a$attribute, _b$attribute;
|
62
|
-
var valueA = (_a$attribute = a[attribute]) === null || _a$attribute ===
|
63
|
-
var valueB = (_b$attribute = b[attribute]) === null || _b$attribute ===
|
62
|
+
var valueA = (_a$attribute = a[attribute]) === null || _a$attribute === void 0 ? void 0 : _a$attribute.split(' ').join('');
|
63
|
+
var valueB = (_b$attribute = b[attribute]) === null || _b$attribute === void 0 ? void 0 : _b$attribute.split(' ').join('');
|
64
64
|
if (direction === 'desc') {
|
65
65
|
return valueA > valueB ? -1 : 1;
|
66
66
|
}
|
@@ -107,7 +107,7 @@ var getFilteredItems = function getFilteredItems(useNormalizedItems, normalizedI
|
|
107
107
|
}
|
108
108
|
var item = (_prev$find = prev.find(function (item) {
|
109
109
|
return item.id === cur.id;
|
110
|
-
})) === null || _prev$find ===
|
110
|
+
})) === null || _prev$find === void 0 || (_prev$find = _prev$find.children) === null || _prev$find === void 0 ? void 0 : _prev$find.entries;
|
111
111
|
return item;
|
112
112
|
}, items.entries);
|
113
113
|
}
|