@carbon/ibm-products 2.61.0 → 2.62.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
@@ -16,7 +16,7 @@ var React = require('react');
|
|
16
16
|
var useFocusRowExpander = function useFocusRowExpander(_ref) {
|
17
17
|
var instance = _ref.instance,
|
18
18
|
_ref$lastExpandedRowI = _ref.lastExpandedRowIndex,
|
19
|
-
lastExpandedRowIndex = _ref$lastExpandedRowI ===
|
19
|
+
lastExpandedRowIndex = _ref$lastExpandedRowI === void 0 ? 0 : _ref$lastExpandedRowI,
|
20
20
|
blockClass = _ref.blockClass,
|
21
21
|
activeElement = _ref.activeElement;
|
22
22
|
React.useEffect(function () {
|
@@ -25,7 +25,7 @@ var useFocusRowExpander = function useFocusRowExpander(_ref) {
|
|
25
25
|
if (!activeElement.classList.contains("".concat(blockClass, "__row-expander"))) {
|
26
26
|
return;
|
27
27
|
}
|
28
|
-
var tableId = instance === null || instance ===
|
28
|
+
var tableId = instance === null || instance === void 0 ? void 0 : instance.tableId;
|
29
29
|
var rowElements = document.querySelectorAll("#".concat(tableId, " tbody tr"));
|
30
30
|
var rowElementsArray = Array.from(rowElements);
|
31
31
|
var activeRow = rowElementsArray.filter(function (r) {
|
@@ -36,9 +36,9 @@ var useFocusRowExpander = function useFocusRowExpander(_ref) {
|
|
36
36
|
});
|
37
37
|
if (activeRow.length) {
|
38
38
|
var rowExpander = activeRow[0].querySelector(".".concat(blockClass, "__row-expander"));
|
39
|
-
rowExpander === null || rowExpander ===
|
39
|
+
rowExpander === null || rowExpander === void 0 || rowExpander.focus();
|
40
40
|
}
|
41
|
-
}, [instance === null || instance ===
|
41
|
+
}, [instance === null || instance === void 0 ? void 0 : instance.tableId, instance === null || instance === void 0 ? void 0 : instance.expandedRows, lastExpandedRowIndex, blockClass, activeElement]);
|
42
42
|
};
|
43
43
|
|
44
44
|
exports.useFocusRowExpander = useFocusRowExpander;
|
@@ -30,7 +30,7 @@ var useInfiniteScroll = function useInfiniteScroll(hooks) {
|
|
30
30
|
if (typeof document !== 'undefined') {
|
31
31
|
tableElement = document.querySelector("#".concat(tableId));
|
32
32
|
}
|
33
|
-
var totalTableHeight = tableHeight || ((_tableElement = tableElement) === null || _tableElement ===
|
33
|
+
var totalTableHeight = tableHeight || ((_tableElement = tableElement) === null || _tableElement === void 0 ? void 0 : _tableElement.clientHeight);
|
34
34
|
var loadMoreThresholdValue = typeof loadMoreThreshold === 'number' ? loadMoreThreshold : 200;
|
35
35
|
var emptyFetchData = function emptyFetchData() {};
|
36
36
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
@@ -38,7 +38,7 @@ var useInitialColumnSort = function useInitialColumnSort(instance) {
|
|
38
38
|
var _getNewSortOrder = useSortableColumns.getNewSortOrder(order),
|
39
39
|
newSortDesc = _getNewSortOrder.newSortDesc,
|
40
40
|
newOrder = _getNewSortOrder.newOrder;
|
41
|
-
onSort === null || onSort ===
|
41
|
+
onSort === null || onSort === void 0 || onSort(columnId, newOrder);
|
42
42
|
instance.toggleSortBy(columnId, newSortDesc, false);
|
43
43
|
setHasInitialSort(true);
|
44
44
|
}
|
@@ -22,9 +22,9 @@ var useInlineEdit = function useInlineEdit(hooks) {
|
|
22
22
|
var cell = _ref.cell,
|
23
23
|
instance = _ref.instance;
|
24
24
|
var columnInlineEditConfig = cell.column.inlineEdit;
|
25
|
-
var inlineEditType = (_cell$column = cell.column) === null || _cell$column ===
|
26
|
-
var isDisabled = (_cell$column2 = cell.column) === null || _cell$column2 ===
|
27
|
-
var staticCell = _rollupPluginBabelHelpers.typeof(cell.value) === 'object' && cell.column.id === ((_cell$value = cell.value) === null || _cell$value ===
|
25
|
+
var inlineEditType = (_cell$column = cell.column) === null || _cell$column === void 0 || (_cell$column = _cell$column.inlineEdit) === null || _cell$column === void 0 ? void 0 : _cell$column.type;
|
26
|
+
var isDisabled = (_cell$column2 = cell.column) === null || _cell$column2 === void 0 ? void 0 : _cell$column2.isDisabled;
|
27
|
+
var staticCell = _rollupPluginBabelHelpers.typeof(cell.value) === 'object' && cell.column.id === ((_cell$value = cell.value) === null || _cell$value === void 0 ? void 0 : _cell$value.columnId) && ((_cell$value2 = cell.value) === null || _cell$value2 === void 0 ? void 0 : _cell$value2.isStaticCell);
|
28
28
|
var renderInlineEditComponent = function renderInlineEditComponent(type) {
|
29
29
|
return /*#__PURE__*/React.createElement(InlineEditCell.InlineEditCell, {
|
30
30
|
config: columnInlineEditConfig,
|
@@ -47,7 +47,7 @@ var useInlineEdit = function useInlineEdit(hooks) {
|
|
47
47
|
children: /*#__PURE__*/React.createElement(React.Fragment, null, !staticCell && inlineEditType === 'text' && renderInlineEditComponent(inlineEditType), !staticCell && inlineEditType === 'number' && renderInlineEditComponent(inlineEditType), !staticCell && inlineEditType === 'selection' && renderInlineEditComponent(inlineEditType), inlineEditType === 'checkbox' && renderInlineEditComponent(inlineEditType), !staticCell && inlineEditType === 'date' && renderInlineEditComponent(inlineEditType), staticCell && /*#__PURE__*/React.createElement(InlineEditCell.InlineEditCell, {
|
48
48
|
config: columnInlineEditConfig,
|
49
49
|
tabIndex: -1,
|
50
|
-
value: (_cell$value3 = cell.value) === null || _cell$value3 ===
|
50
|
+
value: (_cell$value3 = cell.value) === null || _cell$value3 === void 0 ? void 0 : _cell$value3.value,
|
51
51
|
cell: cell,
|
52
52
|
instance: instance,
|
53
53
|
nonEditCell: true,
|
@@ -25,8 +25,8 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
|
|
25
25
|
tempState.current = instance;
|
26
26
|
};
|
27
27
|
useFocusRowExpander.useFocusRowExpander({
|
28
|
-
instance: tempState === null || tempState ===
|
29
|
-
lastExpandedRowIndex: lastExpandedRowIndex === null || lastExpandedRowIndex ===
|
28
|
+
instance: tempState === null || tempState === void 0 ? void 0 : tempState.current,
|
29
|
+
lastExpandedRowIndex: lastExpandedRowIndex === null || lastExpandedRowIndex === void 0 ? void 0 : lastExpandedRowIndex.current,
|
30
30
|
blockClass: blockClass,
|
31
31
|
activeElement: typeof document !== 'undefined' && document.activeElement
|
32
32
|
});
|
@@ -68,7 +68,7 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
|
|
68
68
|
break;
|
69
69
|
}
|
70
70
|
_context.next = 9;
|
71
|
-
return getAsyncSubRows === null || getAsyncSubRows ===
|
71
|
+
return getAsyncSubRows === null || getAsyncSubRows === void 0 ? void 0 : getAsyncSubRows(row);
|
72
72
|
case 9:
|
73
73
|
stateReducer.handleDynamicRowCheck({
|
74
74
|
dispatch: dispatch,
|
@@ -95,11 +95,11 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
|
|
95
95
|
return onClick;
|
96
96
|
}()
|
97
97
|
});
|
98
|
-
var _ref3 = (tempState === null || tempState ===
|
98
|
+
var _ref3 = (tempState === null || tempState === void 0 ? void 0 : tempState.current) || {},
|
99
99
|
_ref3$expanderButtonT = _ref3.expanderButtonTitleExpanded,
|
100
|
-
expanderButtonTitleExpanded = _ref3$expanderButtonT ===
|
100
|
+
expanderButtonTitleExpanded = _ref3$expanderButtonT === void 0 ? 'Collapse row' : _ref3$expanderButtonT,
|
101
101
|
_ref3$expanderButtonT2 = _ref3.expanderButtonTitleCollapsed,
|
102
|
-
expanderButtonTitleCollapsed = _ref3$expanderButtonT2 ===
|
102
|
+
expanderButtonTitleCollapsed = _ref3$expanderButtonT2 === void 0 ? 'Expand row' : _ref3$expanderButtonT2;
|
103
103
|
var expanderTitle = row.isExpanded ? expanderButtonTitleExpanded : expanderButtonTitleCollapsed;
|
104
104
|
return row.canExpand || getAsyncSubRows ? /*#__PURE__*/React.createElement("button", _rollupPluginBabelHelpers.extends({
|
105
105
|
type: "button",
|
@@ -24,13 +24,13 @@ var useNestedRows = function useNestedRows(hooks) {
|
|
24
24
|
rows = _ref.rows;
|
25
25
|
var defaultExpandedRows = rows.filter(function (row) {
|
26
26
|
var _row$original;
|
27
|
-
return row === null || row ===
|
27
|
+
return row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.defaultExpanded;
|
28
28
|
});
|
29
|
-
if (defaultExpandedRows !== null && defaultExpandedRows !==
|
29
|
+
if (defaultExpandedRows !== null && defaultExpandedRows !== void 0 && defaultExpandedRows.length) {
|
30
30
|
defaultExpandedRows.map(function (defaultExpandedRow) {
|
31
|
-
if (!(defaultExpandedRow !== null && defaultExpandedRow !==
|
31
|
+
if (!(defaultExpandedRow !== null && defaultExpandedRow !== void 0 && defaultExpandedRow.isExpanded) && !(defaultExpandedRow !== null && defaultExpandedRow !== void 0 && defaultExpandedRow.hasExpanded)) {
|
32
32
|
var _defaultExpandedRow$t;
|
33
|
-
defaultExpandedRow === null || defaultExpandedRow ===
|
33
|
+
defaultExpandedRow === null || defaultExpandedRow === void 0 || (_defaultExpandedRow$t = defaultExpandedRow.toggleRowExpanded) === null || _defaultExpandedRow$t === void 0 || _defaultExpandedRow$t.call(defaultExpandedRow);
|
34
34
|
defaultExpandedRow.hasExpanded = true;
|
35
35
|
return;
|
36
36
|
}
|
@@ -48,9 +48,9 @@ var useNestedRows = function useNestedRows(hooks) {
|
|
48
48
|
var _row$0$original;
|
49
49
|
var row = rows.filter(function (r) {
|
50
50
|
var _r$original;
|
51
|
-
return r.id.toString() === key.toString() || ((_r$original = r.original) === null || _r$original ===
|
51
|
+
return r.id.toString() === key.toString() || ((_r$original = r.original) === null || _r$original === void 0 || (_r$original = _r$original.id) === null || _r$original === void 0 ? void 0 : _r$original.toString()) === key.toString();
|
52
52
|
});
|
53
|
-
if (row.length && key.toString() === row[0].id.toString() || row.length && key.toString() === ((_row$0$original = row[0].original) === null || _row$0$original ===
|
53
|
+
if (row.length && key.toString() === row[0].id.toString() || row.length && key.toString() === ((_row$0$original = row[0].original) === null || _row$0$original === void 0 || (_row$0$original = _row$0$original.id) === null || _row$0$original === void 0 ? void 0 : _row$0$original.toString())) {
|
54
54
|
row[0].toggleRowExpanded();
|
55
55
|
}
|
56
56
|
});
|
@@ -41,7 +41,7 @@ var useOnRowClick = function useOnRowClick(hooks) {
|
|
41
41
|
if (instance.selectedFlatRows) {
|
42
42
|
instance.selectedFlatRows.map(function (toggleRow) {
|
43
43
|
var _toggleRow$toggleRowS;
|
44
|
-
return (_toggleRow$toggleRowS = toggleRow.toggleRowSelected) === null || _toggleRow$toggleRowS ===
|
44
|
+
return (_toggleRow$toggleRowS = toggleRow.toggleRowSelected) === null || _toggleRow$toggleRowS === void 0 ? void 0 : _toggleRow$toggleRowS.call(toggleRow, false);
|
45
45
|
});
|
46
46
|
}
|
47
47
|
toggleRowSelected(id, true);
|
@@ -24,8 +24,8 @@ var useRowExpander = function useRowExpander(hooks) {
|
|
24
24
|
tempState.current = instance;
|
25
25
|
};
|
26
26
|
useFocusRowExpander.useFocusRowExpander({
|
27
|
-
instance: tempState === null || tempState ===
|
28
|
-
lastExpandedRowIndex: lastExpandedRowIndex === null || lastExpandedRowIndex ===
|
27
|
+
instance: tempState === null || tempState === void 0 ? void 0 : tempState.current,
|
28
|
+
lastExpandedRowIndex: lastExpandedRowIndex === null || lastExpandedRowIndex === void 0 ? void 0 : lastExpandedRowIndex.current,
|
29
29
|
blockClass: blockClass,
|
30
30
|
activeElement: document.activeElement
|
31
31
|
});
|
@@ -40,12 +40,12 @@ var useRowExpander = function useRowExpander(hooks) {
|
|
40
40
|
// Prevents `onRowClick` from being called if `useOnRowClick` is included
|
41
41
|
event.stopPropagation();
|
42
42
|
row.toggleRowExpanded();
|
43
|
-
row === null || row ===
|
43
|
+
row === null || row === void 0 || (_row$onClick = row.onClick) === null || _row$onClick === void 0 || _row$onClick.call(row, row, event);
|
44
44
|
lastExpandedRowIndex.current = row.id;
|
45
45
|
},
|
46
46
|
title: null
|
47
47
|
});
|
48
|
-
var _ref2 = (tempState === null || tempState ===
|
48
|
+
var _ref2 = (tempState === null || tempState === void 0 ? void 0 : tempState.current) || {},
|
49
49
|
expanderButtonTitleExpanded = _ref2.expanderButtonTitleExpanded,
|
50
50
|
expanderButtonTitleCollapsed = _ref2.expanderButtonTitleCollapsed;
|
51
51
|
var expanderTitle = row.isExpanded ? expanderButtonTitleExpanded : expanderButtonTitleCollapsed;
|
@@ -21,7 +21,7 @@ var useRowIsMouseOver = function useRowIsMouseOver(hooks) {
|
|
21
21
|
setMouseOverRowIndex = _useState2[1];
|
22
22
|
var onMouseChange = useDebounce(function (datagridState) {
|
23
23
|
var row = datagridState.row;
|
24
|
-
setMouseOverRowIndex(row === null || row ===
|
24
|
+
setMouseOverRowIndex(row === null || row === void 0 ? void 0 : row.index);
|
25
25
|
}, 100);
|
26
26
|
var getRowProps = function getRowProps(props, datagridState) {
|
27
27
|
// @ts-expect-error
|
@@ -17,9 +17,9 @@ var useRowRenderer = function useRowRenderer(hooks) {
|
|
17
17
|
var rows = instance.rows,
|
18
18
|
state = instance.state;
|
19
19
|
var newRows = null;
|
20
|
-
if (state !== null && state !==
|
20
|
+
if (state !== null && state !== void 0 && state.dynamicRowSkeleton) {
|
21
21
|
var _state$dynamicRowSkel;
|
22
|
-
var depthIndexArray = state === null || state ===
|
22
|
+
var depthIndexArray = state === null || state === void 0 || (_state$dynamicRowSkel = state.dynamicRowSkeleton) === null || _state$dynamicRowSkel === void 0 ? void 0 : _state$dynamicRowSkel.id.split('').filter(function (r) {
|
23
23
|
return r !== '.';
|
24
24
|
});
|
25
25
|
if (depthIndexArray.length > 1) {
|
@@ -36,7 +36,7 @@ var useRowRenderer = function useRowRenderer(hooks) {
|
|
36
36
|
finalRow = subRows.find(function (r) {
|
37
37
|
return r.index === parseInt(depthIndex);
|
38
38
|
});
|
39
|
-
subRows.splice(finalRow.index + 1, 0, state === null || state ===
|
39
|
+
subRows.splice(finalRow.index + 1, 0, state === null || state === void 0 ? void 0 : state.dynamicRowSkeleton); // + 1 because we want to add the skeleton row after the row initiating the dynamic request
|
40
40
|
return;
|
41
41
|
}
|
42
42
|
var foundRow = subRows.find(function (r) {
|
@@ -47,14 +47,14 @@ var useRowRenderer = function useRowRenderer(hooks) {
|
|
47
47
|
}
|
48
48
|
var rootRowIndexWithDynamicRow = rows.findIndex(function (r) {
|
49
49
|
var _state$dynamicRowSkel2;
|
50
|
-
return r.id === (state === null || state ===
|
50
|
+
return r.id === (state === null || state === void 0 || (_state$dynamicRowSkel2 = state.dynamicRowSkeleton) === null || _state$dynamicRowSkel2 === void 0 ? void 0 : _state$dynamicRowSkel2.id);
|
51
51
|
});
|
52
52
|
if (rootRowIndexWithDynamicRow > -1) {
|
53
53
|
newRows = [].concat(_rollupPluginBabelHelpers.toConsumableArray(rows.slice(0, rootRowIndexWithDynamicRow + 1)), [// + 1 because we want to add the skeleton row after the row initiating the dynamic request
|
54
|
-
state === null || state ===
|
54
|
+
state === null || state === void 0 ? void 0 : state.dynamicRowSkeleton], _rollupPluginBabelHelpers.toConsumableArray(rows.slice(rootRowIndexWithDynamicRow + 1)));
|
55
55
|
}
|
56
56
|
}
|
57
|
-
newRows = newRows !== null && newRows !==
|
57
|
+
newRows = newRows !== null && newRows !== void 0 ? newRows : rows;
|
58
58
|
var _addRowRenderer = function addRowRenderer(row) {
|
59
59
|
return Object.assign(row, {
|
60
60
|
RowRenderer: DatagridRow.default,
|
@@ -27,7 +27,7 @@ var useSelectAllWithToggleComponent = function useSelectAllWithToggleComponent(h
|
|
27
27
|
var _ref = instance,
|
28
28
|
headers = _ref.headers,
|
29
29
|
DatagridPagination = _ref.DatagridPagination;
|
30
|
-
var headersWithSelectAllToggle = headers === null || headers ===
|
30
|
+
var headersWithSelectAllToggle = headers === null || headers === void 0 ? void 0 : headers.map(function (header) {
|
31
31
|
if (header.id === commonColumnIds.selectionColumnId && DatagridPagination) {
|
32
32
|
Object.assign(header, {
|
33
33
|
Header: Header
|
@@ -63,7 +63,7 @@ var useAddClassNameToSelectRow = function useAddClassNameToSelectRow(hooks) {
|
|
63
63
|
DatagridPagination = _ref2.DatagridPagination,
|
64
64
|
columns = _ref2.columns,
|
65
65
|
withStickyColumn = _ref2.withStickyColumn;
|
66
|
-
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ ===
|
66
|
+
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.sticky) === 'left' && withStickyColumn;
|
67
67
|
if (column.id === commonColumnIds.selectionColumnId && DatagridPagination) {
|
68
68
|
return [props, {
|
69
69
|
className: cx("".concat(blockClass, "-toggle-on"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "-sticky-left"), isFirstColumnStickyLeft && windowSize > 671))
|
@@ -73,7 +73,7 @@ var useHighlightSelection = function useHighlightSelection(hooks) {
|
|
73
73
|
var SelectRow = function SelectRow(datagridState) {
|
74
74
|
var _columns$;
|
75
75
|
var _datagridState$isFetc = datagridState.isFetching,
|
76
|
-
isFetching = _datagridState$isFetc ===
|
76
|
+
isFetching = _datagridState$isFetc === void 0 ? false : _datagridState$isFetc,
|
77
77
|
tableId = datagridState.tableId,
|
78
78
|
row = datagridState.row,
|
79
79
|
cell = datagridState.cell,
|
@@ -114,7 +114,7 @@ var SelectRow = function SelectRow(datagridState) {
|
|
114
114
|
}
|
115
115
|
}
|
116
116
|
onChange(event);
|
117
|
-
onRowSelect === null || onRowSelect ===
|
117
|
+
onRowSelect === null || onRowSelect === void 0 || onRowSelect(row, event);
|
118
118
|
stateReducer.handleToggleRowSelected({
|
119
119
|
dispatch: dispatch,
|
120
120
|
rowData: row,
|
@@ -123,11 +123,11 @@ var SelectRow = function SelectRow(datagridState) {
|
|
123
123
|
selectAll: null
|
124
124
|
});
|
125
125
|
// focus the radio / checkbox if lost
|
126
|
-
activeElement = (_document$activeEleme = (_document = document) === null || _document ===
|
126
|
+
activeElement = (_document$activeEleme = (_document = document) === null || _document === void 0 || (_document = _document.activeElement) === null || _document === void 0 ? void 0 : _document.id) !== null && _document$activeEleme !== void 0 ? _document$activeEleme : '';
|
127
127
|
_context.next = 8;
|
128
128
|
return undefined;
|
129
129
|
case 8:
|
130
|
-
(_document2 = document) === null || _document2 ===
|
130
|
+
(_document2 = document) === null || _document2 === void 0 || (_document2 = _document2.getElementById(activeElement)) === null || _document2 === void 0 || _document2.focus();
|
131
131
|
case 9:
|
132
132
|
case "end":
|
133
133
|
return _context.stop();
|
@@ -144,7 +144,7 @@ var SelectRow = function SelectRow(datagridState) {
|
|
144
144
|
title = _row$getToggleRowSele2.title,
|
145
145
|
selectProps = _rollupPluginBabelHelpers.objectWithoutProperties(_row$getToggleRowSele2, _excluded);
|
146
146
|
var cellProps = cell.getCellProps();
|
147
|
-
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ ===
|
147
|
+
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.sticky) === 'left' && withStickyColumn;
|
148
148
|
var rowId = "".concat(tableId, "-").concat(row.id, "-").concat(row.index);
|
149
149
|
var key = cellProps.key,
|
150
150
|
_cellProps = cellProps._cellProps;
|
@@ -106,7 +106,7 @@ var useSortableColumns = function useSortableColumns(hooks) {
|
|
106
106
|
}, props), {}, {
|
107
107
|
className: "".concat(blockClass, "__sortable-icon ").concat(settings.carbon.prefix, "--btn__icon")
|
108
108
|
});
|
109
|
-
if (col !== null && col !==
|
109
|
+
if (col !== null && col !== void 0 && col.isSorted) {
|
110
110
|
switch (col.isSortedDesc) {
|
111
111
|
case false:
|
112
112
|
return /*#__PURE__*/React.createElement(icons.ArrowUp, iconProps);
|
@@ -123,30 +123,30 @@ var useSortableColumns = function useSortableColumns(hooks) {
|
|
123
123
|
if (key === 'Enter') {
|
124
124
|
setTimeout(function () {
|
125
125
|
var _document$getElementB;
|
126
|
-
return (_document$getElementB = document.getElementById(columnId)) === null || _document$getElementB ===
|
126
|
+
return (_document$getElementB = document.getElementById(columnId)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
|
127
127
|
}, 0);
|
128
128
|
}
|
129
129
|
};
|
130
130
|
var Header = function Header(headerProp) {
|
131
131
|
return column.disableSortBy === true || column.id === 'datagridSelection' || column.isAction ? column.disableSortBy || column.isAction ? column.Header : /*#__PURE__*/React.createElement(DatagridSelectAll.SelectAll, instance) : /*#__PURE__*/React.createElement(react.Button, {
|
132
|
-
"aria-sort": getAriaSortValue(headerProp === null || headerProp ===
|
132
|
+
"aria-sort": getAriaSortValue(headerProp === null || headerProp === void 0 ? void 0 : headerProp.column, {
|
133
133
|
ascendingSortableLabelText: ascendingSortableLabelText,
|
134
134
|
descendingSortableLabelText: descendingSortableLabelText,
|
135
135
|
defaultSortableLabelText: defaultSortableLabelText
|
136
136
|
}),
|
137
|
-
"aria-pressed": getAriaPressedValue(headerProp === null || headerProp ===
|
137
|
+
"aria-pressed": getAriaPressedValue(headerProp === null || headerProp === void 0 ? void 0 : headerProp.column),
|
138
138
|
onClick: function onClick(event) {
|
139
|
-
return onSortClick(event, headerProp === null || headerProp ===
|
139
|
+
return onSortClick(event, headerProp === null || headerProp === void 0 ? void 0 : headerProp.column);
|
140
140
|
},
|
141
141
|
kind: "ghost",
|
142
142
|
renderIcon: function renderIcon(props) {
|
143
143
|
var _headerProp$column, _headerProp$column2;
|
144
144
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DatagridAiLabel.DatagridAILabel, {
|
145
|
-
aiLabel: (headerProp === null || headerProp ===
|
146
|
-
}), icon(headerProp === null || headerProp ===
|
145
|
+
aiLabel: (headerProp === null || headerProp === void 0 || (_headerProp$column = headerProp.column) === null || _headerProp$column === void 0 ? void 0 : _headerProp$column.aiLabel) || (headerProp === null || headerProp === void 0 || (_headerProp$column2 = headerProp.column) === null || _headerProp$column2 === void 0 ? void 0 : _headerProp$column2.slug)
|
146
|
+
}), icon(headerProp === null || headerProp === void 0 ? void 0 : headerProp.column, props));
|
147
147
|
},
|
148
|
-
id: column === null || column ===
|
149
|
-
className: cx("".concat(settings.carbon.prefix, "--table-sort ").concat(blockClass, "--table-sort"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--table-sort--desc"), headerProp === null || headerProp ===
|
148
|
+
id: column === null || column === void 0 ? void 0 : column.id,
|
149
|
+
className: cx("".concat(settings.carbon.prefix, "--table-sort ").concat(blockClass, "--table-sort"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--table-sort--desc"), headerProp === null || headerProp === void 0 ? void 0 : headerProp.column.isSortedDesc), "".concat(blockClass, "--table-sort--asc"), (headerProp === null || headerProp === void 0 ? void 0 : headerProp.column.isSortedDesc) === false)),
|
150
150
|
onKeyDown: function onKeyDown(event) {
|
151
151
|
return handleKey(event, column.id);
|
152
152
|
}
|
@@ -154,10 +154,10 @@ var useSortableColumns = function useSortableColumns(hooks) {
|
|
154
154
|
};
|
155
155
|
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, column), {}, {
|
156
156
|
Header: Header,
|
157
|
-
minWidth: column.disableSortBy ? 0 : (_column$minWidth = column.minWidth) !== null && _column$minWidth !==
|
157
|
+
minWidth: column.disableSortBy ? 0 : (_column$minWidth = column.minWidth) !== null && _column$minWidth !== void 0 ? _column$minWidth : column.isAction ? 50 : 90
|
158
158
|
});
|
159
159
|
});
|
160
|
-
return (_instance$customizeCo = instance.customizeColumnsProps) !== null && _instance$customizeCo !==
|
160
|
+
return (_instance$customizeCo = instance.customizeColumnsProps) !== null && _instance$customizeCo !== void 0 && _instance$customizeCo.isTearsheetOpen ? visibleColumns : _rollupPluginBabelHelpers.toConsumableArray(sortableColumns);
|
161
161
|
};
|
162
162
|
var sortInstanceProps = function sortInstanceProps(instance) {
|
163
163
|
var _ref3 = instance,
|
@@ -28,7 +28,7 @@ var useStickyColumn = function useStickyColumn(hooks) {
|
|
28
28
|
setWindowSize = _useState2[1];
|
29
29
|
React.useEffect(function () {
|
30
30
|
var _window;
|
31
|
-
setWindowSize((_window = window) === null || _window ===
|
31
|
+
setWindowSize((_window = window) === null || _window === void 0 ? void 0 : _window.innerWidth);
|
32
32
|
}, []);
|
33
33
|
React.useLayoutEffect(function () {
|
34
34
|
/* istanbul ignore next */
|
@@ -54,11 +54,11 @@ var useStickyColumn = function useStickyColumn(hooks) {
|
|
54
54
|
var useEventListener = function useEventListener(instance) {
|
55
55
|
React.useEffect(function () {
|
56
56
|
var tableBodyElement = tableBodyRef.current;
|
57
|
-
var headerCellElement = stickyHeaderCellRef === null || stickyHeaderCellRef ===
|
57
|
+
var headerCellElement = stickyHeaderCellRef === null || stickyHeaderCellRef === void 0 ? void 0 : stickyHeaderCellRef.current;
|
58
58
|
/* istanbul ignore next */
|
59
59
|
if (hasVertScroll(tableBodyElement) && headerCellElement) {
|
60
60
|
var _headerCellElement$cl;
|
61
|
-
headerCellElement === null || headerCellElement ===
|
61
|
+
headerCellElement === null || headerCellElement === void 0 || (_headerCellElement$cl = headerCellElement.classList) === null || _headerCellElement$cl === void 0 || _headerCellElement$cl.add(OFFSET_SCROLL_CLASS);
|
62
62
|
}
|
63
63
|
var boundListener = debounce.debounce(onBodyResize.bind(null, tableBodyElement, headerCellElement), 250);
|
64
64
|
/* istanbul ignore next */
|
@@ -80,7 +80,7 @@ var useStickyColumn = function useStickyColumn(hooks) {
|
|
80
80
|
};
|
81
81
|
toggleStickyShadow(tableBodyElement, headerCellElement);
|
82
82
|
if (tableBodyElement) {
|
83
|
-
tableBodyElement === null || tableBodyElement ===
|
83
|
+
tableBodyElement === null || tableBodyElement === void 0 || tableBodyElement.addEventListener('scroll', listener);
|
84
84
|
}
|
85
85
|
return function () {
|
86
86
|
if (tableBodyElement) {
|
@@ -145,18 +145,18 @@ var addTableBodyProps = function addTableBodyProps(tableBodyRef, props) {
|
|
145
145
|
};
|
146
146
|
var changeProps = function changeProps(elementName, headerCellRef, windowSize, props, data) {
|
147
147
|
var _data$cell;
|
148
|
-
var column = data.column || ((_data$cell = data.cell) === null || _data$cell ===
|
149
|
-
if ((column === null || column ===
|
148
|
+
var column = data.column || ((_data$cell = data.cell) === null || _data$cell === void 0 ? void 0 : _data$cell.column);
|
149
|
+
if ((column === null || column === void 0 ? void 0 : column.sticky) === 'right') {
|
150
150
|
return [props, _rollupPluginBabelHelpers.objectSpread2({
|
151
151
|
className: cx(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(styleClassPrefix, "-").concat(elementName), true), "".concat(blockClass, "__resizableColumn"), false), "".concat(blockClass, "__sortableColumn"), false))
|
152
152
|
}, headerCellRef && {
|
153
153
|
ref: headerCellRef
|
154
154
|
})];
|
155
155
|
}
|
156
|
-
if ((column === null || column ===
|
156
|
+
if ((column === null || column === void 0 ? void 0 : column.sticky) === 'left') {
|
157
157
|
var _data$instance;
|
158
158
|
return [props, _rollupPluginBabelHelpers.objectSpread2({
|
159
|
-
className: cx(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(leftStickyStyleClassPrefix, "-").concat(elementName), windowSize && windowSize > 671), "".concat(leftStickyStyleClassPrefix, "-").concat(elementName, "--with-extra-select-column"), (data === null || data ===
|
159
|
+
className: cx(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(leftStickyStyleClassPrefix, "-").concat(elementName), windowSize && windowSize > 671), "".concat(leftStickyStyleClassPrefix, "-").concat(elementName, "--with-extra-select-column"), (data === null || data === void 0 || (_data$instance = data.instance) === null || _data$instance === void 0 ? void 0 : _data$instance.withSelectRows) && windowSize && windowSize > 671))
|
160
160
|
}, headerCellRef && {
|
161
161
|
ref: headerCellRef
|
162
162
|
})];
|
@@ -42,20 +42,20 @@ var DecoratorBase = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
42
42
|
label = _ref.label,
|
43
43
|
setLabelTitle = _ref.setLabelTitle,
|
44
44
|
_ref$onClick = _ref.onClick,
|
45
|
-
onClick = _ref$onClick ===
|
45
|
+
onClick = _ref$onClick === void 0 ? defaults.onClick : _ref$onClick,
|
46
46
|
_ref$onClickLabel = _ref.onClickLabel,
|
47
|
-
onClickLabel = _ref$onClickLabel ===
|
47
|
+
onClickLabel = _ref$onClickLabel === void 0 ? defaults.onClickLabel : _ref$onClickLabel,
|
48
48
|
_ref$onClickValue = _ref.onClickValue,
|
49
|
-
onClickValue = _ref$onClickValue ===
|
49
|
+
onClickValue = _ref$onClickValue === void 0 ? defaults.onClickValue : _ref$onClickValue,
|
50
50
|
_ref$onContextMenu = _ref.onContextMenu,
|
51
|
-
onContextMenu = _ref$onContextMenu ===
|
51
|
+
onContextMenu = _ref$onContextMenu === void 0 ? defaults.onContextMenu : _ref$onContextMenu,
|
52
52
|
_ref$onContextMenuLab = _ref.onContextMenuLabel,
|
53
|
-
onContextMenuLabel = _ref$onContextMenuLab ===
|
53
|
+
onContextMenuLabel = _ref$onContextMenuLab === void 0 ? defaults.onContextMenuLabel : _ref$onContextMenuLab,
|
54
54
|
_ref$onContextMenuVal = _ref.onContextMenuValue,
|
55
|
-
onContextMenuValue = _ref$onContextMenuVal ===
|
55
|
+
onContextMenuValue = _ref$onContextMenuVal === void 0 ? defaults.onContextMenuValue : _ref$onContextMenuVal,
|
56
56
|
score = _ref.score,
|
57
57
|
_ref$scoreThresholds = _ref.scoreThresholds,
|
58
|
-
scoreThresholds = _ref$scoreThresholds ===
|
58
|
+
scoreThresholds = _ref$scoreThresholds === void 0 ? defaults.scoreThresholds : _ref$scoreThresholds,
|
59
59
|
small = _ref.small,
|
60
60
|
theme = _ref.theme,
|
61
61
|
truncateValue = _ref.truncateValue,
|
@@ -67,7 +67,7 @@ var DecoratorBase = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
67
67
|
var _value = utils.truncate(value, truncateValue);
|
68
68
|
|
69
69
|
// These class names apply to all types of DecoratorBase.
|
70
|
-
var classNames = cx(blockClass, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--").concat(theme), theme), "".concat(blockClass, "--sm"), small), "".concat(blockClass, "--truncate-end"), truncateValue === 'end'), "".concat(blockClass, "--truncate-start"), truncateValue === 'start'), "".concat(blockClass, "--truncate-midline"), truncateValue === null || truncateValue ===
|
70
|
+
var classNames = cx(blockClass, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--").concat(theme), theme), "".concat(blockClass, "--sm"), small), "".concat(blockClass, "--truncate-end"), truncateValue === 'end'), "".concat(blockClass, "--truncate-start"), truncateValue === 'start'), "".concat(blockClass, "--truncate-midline"), truncateValue === null || truncateValue === void 0 ? void 0 : truncateValue.maxLength));
|
71
71
|
|
72
72
|
// These properties apply to all <DecoratorIcons>.
|
73
73
|
var decoratorIconsProps = {
|
@@ -31,9 +31,9 @@ var defaults = {
|
|
31
31
|
exports.DecoratorIcon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
32
32
|
var className = _ref.className,
|
33
33
|
_ref$magnitude = _ref.magnitude,
|
34
|
-
magnitude = _ref$magnitude ===
|
34
|
+
magnitude = _ref$magnitude === void 0 ? defaults.magnitude : _ref$magnitude,
|
35
35
|
_ref$small = _ref.small,
|
36
|
-
small = _ref$small ===
|
36
|
+
small = _ref$small === void 0 ? defaults.small : _ref$small,
|
37
37
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
38
38
|
var Icon;
|
39
39
|
switch (magnitude) {
|
@@ -29,11 +29,11 @@ var defaults = {
|
|
29
29
|
exports.DelimitedList = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
30
30
|
var className = _ref.className,
|
31
31
|
_ref$delimiter = _ref.delimiter,
|
32
|
-
delimiter = _ref$delimiter ===
|
32
|
+
delimiter = _ref$delimiter === void 0 ? defaults.delimiter : _ref$delimiter,
|
33
33
|
_ref$items = _ref.items,
|
34
|
-
items = _ref$items ===
|
34
|
+
items = _ref$items === void 0 ? defaults.items : _ref$items,
|
35
35
|
_ref$truncate = _ref.truncate,
|
36
|
-
truncate = _ref$truncate ===
|
36
|
+
truncate = _ref$truncate === void 0 ? defaults.truncate : _ref$truncate,
|
37
37
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
38
38
|
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
39
39
|
className: cx(blockClass, className, [truncate && "".concat(blockClass, "-truncate")]),
|
@@ -45,11 +45,11 @@ var defaults = {
|
|
45
45
|
*/
|
46
46
|
exports.DescriptionList = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
47
47
|
var _ref$border = _ref.border,
|
48
|
-
border = _ref$border ===
|
48
|
+
border = _ref$border === void 0 ? defaults.border : _ref$border,
|
49
49
|
children = _ref.children,
|
50
50
|
className = _ref.className,
|
51
51
|
_ref$size = _ref.size,
|
52
|
-
size = _ref$size ===
|
52
|
+
size = _ref$size === void 0 ? defaults.size : _ref$size,
|
53
53
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
54
54
|
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
55
55
|
className: cx(blockClass, // Apply the block class to the main HTML element
|
@@ -30,7 +30,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30
30
|
inheritTypography = _ref.inheritTypography,
|
31
31
|
invalid = _ref.invalid,
|
32
32
|
_ref$invalidLabel = _ref.invalidLabel,
|
33
|
-
deprecated_invalidLabel = _ref$invalidLabel ===
|
33
|
+
deprecated_invalidLabel = _ref$invalidLabel === void 0 ? ' ' : _ref$invalidLabel,
|
34
34
|
invalidText = _ref.invalidText,
|
35
35
|
labelText = _ref.labelText,
|
36
36
|
onCancel = _ref.onCancel,
|
@@ -39,7 +39,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
39
39
|
onBlur = _ref.onBlur,
|
40
40
|
saveLabel = _ref.saveLabel,
|
41
41
|
_ref$size = _ref.size,
|
42
|
-
size = _ref$size ===
|
42
|
+
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
43
43
|
tooltipAlignment = _ref.tooltipAlignment,
|
44
44
|
value = _ref.value,
|
45
45
|
placeholder = _ref.placeholder,
|
@@ -62,7 +62,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
62
62
|
var tipAlignIsObject = _rollupPluginBabelHelpers.typeof(tooltipAlignment) === 'object';
|
63
63
|
var tipAlignments = ['edit', 'save', 'cancel'].reduce(function (acc, tips) {
|
64
64
|
var _ref2;
|
65
|
-
acc[tips] = (_ref2 = tipAlignIsObject ? tooltipAlignment[tips] : tooltipAlignment) !== null && _ref2 !==
|
65
|
+
acc[tips] = (_ref2 = tipAlignIsObject ? tooltipAlignment[tips] : tooltipAlignment) !== null && _ref2 !== void 0 ? _ref2 : defaults.tooltipAlignment;
|
66
66
|
return acc;
|
67
67
|
}, {});
|
68
68
|
React.useEffect(function () {
|
@@ -89,7 +89,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
89
89
|
|
90
90
|
if (!isTargetingChild(e)) {
|
91
91
|
var _inputRef$current;
|
92
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current ===
|
92
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
93
93
|
setFocused(true);
|
94
94
|
}
|
95
95
|
};
|
@@ -133,7 +133,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
133
133
|
};
|
134
134
|
var removeFocus = function removeFocus() {
|
135
135
|
var _inputRef$current2;
|
136
|
-
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 ===
|
136
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.blur();
|
137
137
|
setFocused(false);
|
138
138
|
};
|
139
139
|
var onKeyHandler = function onKeyHandler(e) {
|
@@ -211,7 +211,7 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
211
211
|
size: 16
|
212
212
|
}))))), invalid && /*#__PURE__*/React.createElement("p", {
|
213
213
|
className: "".concat(blockClass, "__warning-text")
|
214
|
-
}, invalidText !== null && invalidText !==
|
214
|
+
}, invalidText !== null && invalidText !== void 0 ? invalidText : deprecated_invalidLabel));
|
215
215
|
});
|
216
216
|
exports.EditInPlace = settings.pkg.checkComponentEnabled(exports.EditInPlace, componentName);
|
217
217
|
exports.EditInPlace.displayName = componentName;
|
@@ -42,13 +42,13 @@ exports.EditSidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
42
42
|
onRequestSubmit = _ref.onRequestSubmit,
|
43
43
|
open = _ref.open,
|
44
44
|
_ref$placement = _ref.placement,
|
45
|
-
placement = _ref$placement ===
|
45
|
+
placement = _ref$placement === void 0 ? 'right' : _ref$placement,
|
46
46
|
primaryButtonText = _ref.primaryButtonText,
|
47
47
|
secondaryButtonText = _ref.secondaryButtonText,
|
48
48
|
selectorPrimaryFocus = _ref.selectorPrimaryFocus,
|
49
49
|
selectorPageContent = _ref.selectorPageContent,
|
50
50
|
_ref$size = _ref.size,
|
51
|
-
size = _ref$size ===
|
51
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
52
52
|
slideIn = _ref.slideIn,
|
53
53
|
subtitle = _ref.subtitle,
|
54
54
|
title = _ref.title,
|
@@ -57,7 +57,7 @@ exports.EditSidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
57
57
|
label: primaryButtonText,
|
58
58
|
onClick: function onClick(event) {
|
59
59
|
event.preventDefault();
|
60
|
-
onRequestSubmit === null || onRequestSubmit ===
|
60
|
+
onRequestSubmit === null || onRequestSubmit === void 0 || onRequestSubmit();
|
61
61
|
},
|
62
62
|
kind: 'primary',
|
63
63
|
disabled: disableSubmit,
|
@@ -50,18 +50,18 @@ exports.EditTearsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50
50
|
className = _ref.className,
|
51
51
|
description = _ref.description,
|
52
52
|
_ref$influencerWidth = _ref.influencerWidth,
|
53
|
-
influencerWidth = _ref$influencerWidth ===
|
53
|
+
influencerWidth = _ref$influencerWidth === void 0 ? defaults.influencerWidth : _ref$influencerWidth,
|
54
54
|
label = _ref.label,
|
55
55
|
onClose = _ref.onClose,
|
56
56
|
open = _ref.open,
|
57
57
|
submitButtonText = _ref.submitButtonText,
|
58
58
|
title = _ref.title,
|
59
59
|
_ref$verticalPosition = _ref.verticalPosition,
|
60
|
-
verticalPosition = _ref$verticalPosition ===
|
60
|
+
verticalPosition = _ref$verticalPosition === void 0 ? defaults.verticalPosition : _ref$verticalPosition,
|
61
61
|
onRequestSubmit = _ref.onRequestSubmit,
|
62
62
|
onFormChange = _ref.onFormChange,
|
63
63
|
_ref$sideNavAriaLabel = _ref.sideNavAriaLabel,
|
64
|
-
sideNavAriaLabel = _ref$sideNavAriaLabel ===
|
64
|
+
sideNavAriaLabel = _ref$sideNavAriaLabel === void 0 ? defaults.sideNavAriaLabel : _ref$sideNavAriaLabel,
|
65
65
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
66
66
|
var _useState = React.useState(false),
|
67
67
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|