@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
@@ -24,14 +24,14 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
24
24
|
var cell = _ref.cell,
|
25
25
|
config = _ref.config,
|
26
26
|
_ref$disabledCell = _ref.disabledCell,
|
27
|
-
disabledCell = _ref$disabledCell ===
|
27
|
+
disabledCell = _ref$disabledCell === void 0 ? false : _ref$disabledCell,
|
28
28
|
instance = _ref.instance,
|
29
29
|
_ref$placeholder = _ref.placeholder,
|
30
|
-
placeholder = _ref$placeholder ===
|
30
|
+
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
|
31
31
|
tabIndex = _ref.tabIndex,
|
32
32
|
value = _ref.value,
|
33
33
|
_ref$nonEditCell = _ref.nonEditCell,
|
34
|
-
nonEditCell = _ref$nonEditCell ===
|
34
|
+
nonEditCell = _ref$nonEditCell === void 0 ? false : _ref$nonEditCell,
|
35
35
|
type = _ref.type;
|
36
36
|
var columnId = cell.column.id;
|
37
37
|
var columnIndex = instance.columns.findIndex(function (col) {
|
@@ -96,17 +96,17 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
96
96
|
// of the cell (either on a regular cell or clicking into another inline edit cell) and the
|
97
97
|
// edit input is in an invalid state
|
98
98
|
useEffect(function () {
|
99
|
-
if ((previousState === null || previousState ===
|
99
|
+
if ((previousState === null || previousState === void 0 ? void 0 : previousState.editId) === cellId && !editId || (previousState === null || previousState === void 0 ? void 0 : previousState.editId) === cellId && cellId !== editId) {
|
100
100
|
var _ref3 = config || {},
|
101
101
|
validator = _ref3.validator;
|
102
|
-
var isInvalid = validator === null || validator ===
|
102
|
+
var isInvalid = validator === null || validator === void 0 ? void 0 : validator(cellValue);
|
103
103
|
if (isInvalid) {
|
104
104
|
setCellValue(initialValue);
|
105
105
|
saveCellData(initialValue);
|
106
106
|
return;
|
107
107
|
}
|
108
108
|
}
|
109
|
-
}, [previousState === null || previousState ===
|
109
|
+
}, [previousState === null || previousState === void 0 ? void 0 : previousState.editId, editId, cellId, cellValue, config, initialValue, saveCellData]);
|
110
110
|
|
111
111
|
// If you are in edit mode and click outside of the cell,
|
112
112
|
// this changes the cell back to the InlineEditButton
|
@@ -124,20 +124,20 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
124
124
|
// Only added this querySelector because v11 Datepicker isn't forwarding the ref which breaks how we were handling this in v10
|
125
125
|
// *****
|
126
126
|
var datePickerInputElement = document.querySelector("#".concat(blockClass, "__inline-edit--date-picker--").concat(cell.row.index));
|
127
|
-
var dropdownTrigger = type === 'selection' ? dropdownRef === null || dropdownRef ===
|
127
|
+
var dropdownTrigger = type === 'selection' ? dropdownRef === null || dropdownRef === void 0 ? void 0 : dropdownRef.current : datePickerInputElement;
|
128
128
|
dropdownTrigger.click();
|
129
129
|
if (type === 'date') {
|
130
|
-
dropdownTrigger === null || dropdownTrigger ===
|
130
|
+
dropdownTrigger === null || dropdownTrigger === void 0 || dropdownTrigger.focus();
|
131
131
|
}
|
132
132
|
};
|
133
133
|
|
134
134
|
// Re-initializes initialValue if clicking outside of a cell that was previously
|
135
135
|
// in edit mode, otherwise `initialValue` becomes stale
|
136
136
|
useEffect(function () {
|
137
|
-
if ((previousState === null || previousState ===
|
137
|
+
if ((previousState === null || previousState === void 0 ? void 0 : previousState.editId) === cellId && (previousState === null || previousState === void 0 ? void 0 : previousState.activeCellId) === cellId && activeCellId !== cellId) {
|
138
138
|
var _ref4 = config || {},
|
139
139
|
validator = _ref4.validator;
|
140
|
-
var isInvalid = validator === null || validator ===
|
140
|
+
var isInvalid = validator === null || validator === void 0 ? void 0 : validator(cellValue);
|
141
141
|
if (!isInvalid) {
|
142
142
|
setInitialValue(cellValue);
|
143
143
|
}
|
@@ -172,7 +172,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
172
172
|
}
|
173
173
|
if (type === 'selection') {
|
174
174
|
var _dropdownRef$current;
|
175
|
-
dropdownRef === null || dropdownRef ===
|
175
|
+
dropdownRef === null || dropdownRef === void 0 || (_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 || _dropdownRef$current.focus();
|
176
176
|
}
|
177
177
|
}
|
178
178
|
}, [inEditMode, type]);
|
@@ -246,7 +246,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
246
246
|
}
|
247
247
|
var _ref5 = config || {},
|
248
248
|
validator = _ref5.validator;
|
249
|
-
var isInvalid = validator === null || validator ===
|
249
|
+
var isInvalid = validator === null || validator === void 0 ? void 0 : validator(cellValue);
|
250
250
|
// If an invalid state is detected, Tab/Enter should not do anything
|
251
251
|
// until the input has a valid state once again
|
252
252
|
if (isInvalid) {
|
@@ -289,13 +289,13 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
289
289
|
});
|
290
290
|
};
|
291
291
|
var renderDropdownItem = function renderDropdownItem(item) {
|
292
|
-
var includesIcon = !!(item !== null && item !==
|
292
|
+
var includesIcon = !!(item !== null && item !== void 0 && item.icon);
|
293
293
|
return includesIcon ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(item.icon), /*#__PURE__*/React__default.createElement("span", {
|
294
294
|
className: cx("".concat(blockClass, "__inline-edit--select-item"))
|
295
|
-
}, item === null || item ===
|
295
|
+
}, item === null || item === void 0 ? void 0 : item.text)) : item === null || item === void 0 ? void 0 : item.text;
|
296
296
|
};
|
297
297
|
var handleTransformedItem = function handleTransformedItem(items) {
|
298
|
-
return items !== null && items !==
|
298
|
+
return items !== null && items !== void 0 && items.length && _typeof(items[0]) === 'object' ? function (item) {
|
299
299
|
return renderDropdownItem(item);
|
300
300
|
} : null;
|
301
301
|
};
|
@@ -316,10 +316,10 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
316
316
|
}, inputProps, {
|
317
317
|
hideLabel: true,
|
318
318
|
className: cx("".concat(blockClass, "__inline-edit--select"), _defineProperty({}, "".concat(blockClass, "__inline-edit--select-").concat(rowSize), rowSize)),
|
319
|
-
items: (inputProps === null || inputProps ===
|
319
|
+
items: (inputProps === null || inputProps === void 0 ? void 0 : inputProps.items) || [],
|
320
320
|
initialSelectedItem: cell.value,
|
321
|
-
itemToElement: handleTransformedItem(inputProps === null || inputProps ===
|
322
|
-
renderSelectedItem: handleTransformedItem(inputProps === null || inputProps ===
|
321
|
+
itemToElement: handleTransformedItem(inputProps === null || inputProps === void 0 ? void 0 : inputProps.items),
|
322
|
+
renderSelectedItem: handleTransformedItem(inputProps === null || inputProps === void 0 ? void 0 : inputProps.items),
|
323
323
|
onChange: function onChange(item) {
|
324
324
|
var _inputProps$onChange;
|
325
325
|
var newCellId = getNewCellId('Enter');
|
@@ -331,7 +331,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
331
331
|
});
|
332
332
|
setInEditMode(false);
|
333
333
|
sendFocusBackToGrid();
|
334
|
-
inputProps === null || inputProps ===
|
334
|
+
inputProps === null || inputProps === void 0 || (_inputProps$onChange = inputProps.onChange) === null || _inputProps$onChange === void 0 || _inputProps$onChange.call(inputProps, item.selectedItem);
|
335
335
|
},
|
336
336
|
downshiftProps: {
|
337
337
|
onStateChange: function onStateChange(downshiftState) {
|
@@ -370,9 +370,9 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
370
370
|
var renderDateCell = function renderDateCell() {
|
371
371
|
var _config$inputProps, _outerButtonElement$c;
|
372
372
|
var datePickerPreparedProps = prepareProps(config.inputProps, ['datePickerInputProps']);
|
373
|
-
var datePickerInputProps = config === null || config ===
|
373
|
+
var datePickerInputProps = config === null || config === void 0 || (_config$inputProps = config.inputProps) === null || _config$inputProps === void 0 ? void 0 : _config$inputProps.datePickerInputProps;
|
374
374
|
return /*#__PURE__*/React__default.createElement(DatePicker, _extends({}, datePickerPreparedProps, {
|
375
|
-
appendTo: outerButtonElement === null || outerButtonElement ===
|
375
|
+
appendTo: outerButtonElement === null || outerButtonElement === void 0 || (_outerButtonElement$c = outerButtonElement.current) === null || _outerButtonElement$c === void 0 ? void 0 : _outerButtonElement$c.parentElement,
|
376
376
|
ref: function ref(el) {
|
377
377
|
if (el && el.style) {
|
378
378
|
el.style.width = "".concat(cell.column.totalWidth, "px");
|
@@ -388,7 +388,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
388
388
|
onChange: function onChange(newDate) {
|
389
389
|
var _datePickerPreparedPr;
|
390
390
|
var newDateObj = newDate[0];
|
391
|
-
datePickerPreparedProps === null || datePickerPreparedProps ===
|
391
|
+
datePickerPreparedProps === null || datePickerPreparedProps === void 0 || (_datePickerPreparedPr = datePickerPreparedProps.onChange) === null || _datePickerPreparedPr === void 0 || _datePickerPreparedPr.call(datePickerPreparedProps, newDateObj, cell);
|
392
392
|
var newCellId = getNewCellId('Enter');
|
393
393
|
saveCellData(newDateObj);
|
394
394
|
setCellValue(newDateObj);
|
@@ -404,8 +404,8 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
404
404
|
},
|
405
405
|
value: cell.value
|
406
406
|
}), /*#__PURE__*/React__default.createElement(DatePickerInput, _extends({}, datePickerInputProps, {
|
407
|
-
placeholder: (datePickerInputProps === null || datePickerInputProps ===
|
408
|
-
labelText: (datePickerInputProps === null || datePickerInputProps ===
|
407
|
+
placeholder: (datePickerInputProps === null || datePickerInputProps === void 0 ? void 0 : datePickerInputProps.placeholder) || 'mm/dd/yyyy',
|
408
|
+
labelText: (datePickerInputProps === null || datePickerInputProps === void 0 ? void 0 : datePickerInputProps.labelText) || cellLabel || 'Set date',
|
409
409
|
id: "".concat(blockClass, "__inline-edit--date-picker--").concat(cell.row.index),
|
410
410
|
hideLabel: true
|
411
411
|
})));
|
@@ -417,7 +417,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
417
417
|
};
|
418
418
|
var buildDate = function buildDate(value) {
|
419
419
|
var _config$inputProps2;
|
420
|
-
var dateFormat = config === null || config ===
|
420
|
+
var dateFormat = config === null || config === void 0 || (_config$inputProps2 = config.inputProps) === null || _config$inputProps2 === void 0 ? void 0 : _config$inputProps2.dateFormat;
|
421
421
|
if (value instanceof Date) {
|
422
422
|
var maskedFullYear = value.getFullYear();
|
423
423
|
var maskedMonth = padTo2Digits(value.getMonth() + 1);
|
@@ -443,8 +443,8 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
443
443
|
id: cellId,
|
444
444
|
hideLabel: true,
|
445
445
|
defaultValue: cellValue,
|
446
|
-
invalid: validator === null || validator ===
|
447
|
-
invalidText: (inputProps === null || inputProps ===
|
446
|
+
invalid: validator === null || validator === void 0 ? void 0 : validator(cellValue),
|
447
|
+
invalidText: (inputProps === null || inputProps === void 0 ? void 0 : inputProps.invalidText) || 'Provide missing invalidText',
|
448
448
|
onChange: function onChange(event, _ref9) {
|
449
449
|
var value = _ref9.value;
|
450
450
|
setCellValue(value);
|
@@ -476,7 +476,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
476
476
|
var renderTextInput = function renderTextInput() {
|
477
477
|
var _ref11 = config || {},
|
478
478
|
validator = _ref11.validator;
|
479
|
-
var isInvalid = validator === null || validator ===
|
479
|
+
var isInvalid = validator === null || validator === void 0 ? void 0 : validator(cellValue);
|
480
480
|
return /*#__PURE__*/React__default.createElement(TextInput, _extends({
|
481
481
|
labelText: cellLabel,
|
482
482
|
placeholder: placeholder
|
@@ -485,7 +485,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
485
485
|
hideLabel: true,
|
486
486
|
defaultValue: cellValue,
|
487
487
|
invalid: isInvalid,
|
488
|
-
invalidText: (inputProps === null || inputProps ===
|
488
|
+
invalidText: (inputProps === null || inputProps === void 0 ? void 0 : inputProps.invalidText) || 'Provide missing invalidText',
|
489
489
|
onChange: function onChange(event) {
|
490
490
|
setCellValue(event.target.value);
|
491
491
|
if (inputProps.onChange) {
|
@@ -498,19 +498,19 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
498
498
|
var getLabel = function getLabel() {
|
499
499
|
var _value$text, _checkStaticCell;
|
500
500
|
var checkStaticCell = function checkStaticCell(val) {
|
501
|
-
if (_typeof(val) === 'object' && val !== null && val !==
|
502
|
-
return val === null || val ===
|
501
|
+
if (_typeof(val) === 'object' && val !== null && val !== void 0 && val.isStaticCell) {
|
502
|
+
return val === null || val === void 0 ? void 0 : val.value;
|
503
503
|
}
|
504
504
|
};
|
505
505
|
switch (type) {
|
506
506
|
case 'selection':
|
507
507
|
checkStaticCell(value);
|
508
|
-
return (_value$text = value === null || value ===
|
508
|
+
return (_value$text = value === null || value === void 0 ? void 0 : value.text) !== null && _value$text !== void 0 ? _value$text : value;
|
509
509
|
case 'date':
|
510
510
|
checkStaticCell(value);
|
511
511
|
return buildDate(value);
|
512
512
|
default:
|
513
|
-
return (_checkStaticCell = checkStaticCell(value)) !== null && _checkStaticCell !==
|
513
|
+
return (_checkStaticCell = checkStaticCell(value)) !== null && _checkStaticCell !== void 0 ? _checkStaticCell : value;
|
514
514
|
}
|
515
515
|
};
|
516
516
|
return (
|
@@ -525,13 +525,13 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
525
525
|
"data-inline-type": type,
|
526
526
|
onClick: !nonEditCell ? handleInlineCellClick : addActiveState,
|
527
527
|
onKeyDown: !nonEditCell ? handleKeyDown : null,
|
528
|
-
className: cx("".concat(blockClass, "__inline-edit--outer-cell-button"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__inline-edit--outer-cell-button--").concat(rowSize), rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--lg"), !rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--invalid"), inEditMode && (config === null || config ===
|
528
|
+
className: cx("".concat(blockClass, "__inline-edit--outer-cell-button"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__inline-edit--outer-cell-button--").concat(rowSize), rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--lg"), !rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--invalid"), inEditMode && (config === null || config === void 0 || (_config$validator = config.validator) === null || _config$validator === void 0 ? void 0 : _config$validator.call(config, cellValue))), "".concat(blockClass, "__static--outer-cell"), !disabledCell))
|
529
529
|
}, (!inEditMode || disabledCell) && type !== 'checkbox' && /*#__PURE__*/React__default.createElement(InlineEditButton, {
|
530
530
|
isActiveCell: cellId === activeCellId,
|
531
531
|
renderIcon: setRenderIcon(),
|
532
532
|
label: getLabel(),
|
533
533
|
disabledCell: disabledCell,
|
534
|
-
labelIcon: (value === null || value ===
|
534
|
+
labelIcon: (value === null || value === void 0 ? void 0 : value.icon) || null,
|
535
535
|
placeholder: placeholder,
|
536
536
|
tabIndex: tabIndex,
|
537
537
|
nonEditCell: nonEditCell,
|
package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js
CHANGED
@@ -77,7 +77,7 @@ var inlineEditReducer = function inlineEditReducer(state, action) {
|
|
77
77
|
{
|
78
78
|
var _action$payload2;
|
79
79
|
return _objectSpread2(_objectSpread2({}, state), {}, {
|
80
|
-
featureFlags: (_action$payload2 = action.payload) !== null && _action$payload2 !==
|
80
|
+
featureFlags: (_action$payload2 = action.payload) !== null && _action$payload2 !== void 0 ? _action$payload2 : {}
|
81
81
|
});
|
82
82
|
}
|
83
83
|
default:
|
@@ -25,7 +25,7 @@ var returnUpdatedActiveCell = function returnUpdatedActiveCell(_ref) {
|
|
25
25
|
var newCellIdButton = document.querySelector("#".concat(instance.tableId, " .").concat(blockClass, "__table-with-inline-edit [data-cell-id=\"").concat(newActiveCellId, "\"] .").concat(blockClass, "__inline-edit-button"));
|
26
26
|
// Allows scrollable area to keep focused/active cell id visible
|
27
27
|
if (newCellIdButton) {
|
28
|
-
newCellIdButton === null || newCellIdButton ===
|
28
|
+
newCellIdButton === null || newCellIdButton === void 0 || newCellIdButton.focus();
|
29
29
|
}
|
30
30
|
return _objectSpread2(_objectSpread2({}, state), {}, {
|
31
31
|
activeCellId: newActiveCellId
|
@@ -55,7 +55,7 @@ var handleGridKeyPress = function handleGridKeyPress(_ref) {
|
|
55
55
|
|
56
56
|
// Checks if the dropdown menu is open
|
57
57
|
var dropdownIsActive = function dropdownIsActive() {
|
58
|
-
var selectedDropdown = ref === null || ref ===
|
58
|
+
var selectedDropdown = ref === null || ref === void 0 ? void 0 : ref.current.querySelector("\n #".concat(instance.tableId, " .").concat(blockClass, "__table-with-inline-edit [data-cell-id=\"").concat(activeCellId, "\"] button[role='combobox']\n "));
|
59
59
|
if (selectedDropdown) {
|
60
60
|
// Prevents arrow keys from scrolling any other content when dropdown menu is open
|
61
61
|
event.preventDefault();
|
@@ -205,21 +205,21 @@ var handleGridKeyPress = function handleGridKeyPress(_ref) {
|
|
205
205
|
if (focusedType === 'selection') {
|
206
206
|
setTimeout(function () {
|
207
207
|
var dropdownTrigger = focusedCell.querySelector('button');
|
208
|
-
dropdownTrigger === null || dropdownTrigger ===
|
208
|
+
dropdownTrigger === null || dropdownTrigger === void 0 || dropdownTrigger.click();
|
209
209
|
}, 1);
|
210
210
|
}
|
211
211
|
if (focusedType === 'checkbox') {
|
212
212
|
setTimeout(function () {
|
213
213
|
var checkboxTrigger = focusedCell.querySelector('input');
|
214
|
-
checkboxTrigger === null || checkboxTrigger ===
|
215
|
-
checkboxTrigger === null || checkboxTrigger ===
|
214
|
+
checkboxTrigger === null || checkboxTrigger === void 0 || checkboxTrigger.click();
|
215
|
+
checkboxTrigger === null || checkboxTrigger === void 0 || checkboxTrigger.focus();
|
216
216
|
}, 1);
|
217
217
|
}
|
218
218
|
if (focusedType === 'date') {
|
219
219
|
setTimeout(function () {
|
220
220
|
var dateInputTrigger = focusedCell.querySelector('input');
|
221
|
-
dateInputTrigger === null || dateInputTrigger ===
|
222
|
-
dateInputTrigger === null || dateInputTrigger ===
|
221
|
+
dateInputTrigger === null || dateInputTrigger === void 0 || dateInputTrigger.click();
|
222
|
+
dateInputTrigger === null || dateInputTrigger === void 0 || dateInputTrigger.focus();
|
223
223
|
}, 1);
|
224
224
|
}
|
225
225
|
dispatch({
|
@@ -36,7 +36,7 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
36
36
|
var totalVisibleColumns = instance.visibleColumns.filter(function (item) {
|
37
37
|
return item.id !== 'spacer';
|
38
38
|
}).length;
|
39
|
-
var totalRows = (_instance$rows = instance.rows) === null || _instance$rows ===
|
39
|
+
var totalRows = (_instance$rows = instance.rows) === null || _instance$rows === void 0 ? void 0 : _instance$rows.length;
|
40
40
|
var lastCellDataId = "column-".concat(totalVisibleColumns - 1, "-row-").concat(totalRows - 1);
|
41
41
|
var lastCellElement = document.querySelector("#".concat(instance.tableId, " .").concat(blockClass, "__table-with-inline-edit [data-cell-id=\"").concat(activeCellId, "\"]"));
|
42
42
|
var _scrollElement = document.querySelector("#".concat(instance.tableId, " .").concat(pkg.prefix, "--datagrid__table-container"));
|
@@ -75,7 +75,7 @@ var handleMultipleKeys = function handleMultipleKeys(_ref) {
|
|
75
75
|
});
|
76
76
|
if (indexOfTable && Number.isFinite(indexOfTable)) {
|
77
77
|
var _datagridFocusableEle;
|
78
|
-
(_datagridFocusableEle = datagridFocusableElements[indexOfTable]) === null || _datagridFocusableEle ===
|
78
|
+
(_datagridFocusableEle = datagridFocusableElements[indexOfTable]) === null || _datagridFocusableEle === void 0 || _datagridFocusableEle.focus();
|
79
79
|
}
|
80
80
|
}
|
81
81
|
};
|
@@ -19,9 +19,9 @@ var _excluded = ["align", "legendText", "autoAlign"];
|
|
19
19
|
var blockClass = "".concat(pkg.prefix, "--datagrid__row-size");
|
20
20
|
var RowSizeDropdown = function RowSizeDropdown(_ref) {
|
21
21
|
var _ref$align = _ref.align,
|
22
|
-
align = _ref$align ===
|
22
|
+
align = _ref$align === void 0 ? 'bottom-right' : _ref$align,
|
23
23
|
_ref$legendText = _ref.legendText,
|
24
|
-
legendText = _ref$legendText ===
|
24
|
+
legendText = _ref$legendText === void 0 ? 'Row settings' : _ref$legendText,
|
25
25
|
autoAlign = _ref.autoAlign,
|
26
26
|
props = _objectWithoutProperties(_ref, _excluded);
|
27
27
|
var radioGroupRef = useRef(undefined);
|
@@ -44,9 +44,9 @@ var RowSizeDropdown = function RowSizeDropdown(_ref) {
|
|
44
44
|
};
|
45
45
|
useEffect(function () {
|
46
46
|
if (isOpen) {
|
47
|
-
var radioGroupParentElement = radioGroupRef === null || radioGroupRef ===
|
48
|
-
var checkedRadioChild = radioGroupParentElement === null || radioGroupParentElement ===
|
49
|
-
checkedRadioChild === null || checkedRadioChild ===
|
47
|
+
var radioGroupParentElement = radioGroupRef === null || radioGroupRef === void 0 ? void 0 : radioGroupRef.current;
|
48
|
+
var checkedRadioChild = radioGroupParentElement === null || radioGroupParentElement === void 0 ? void 0 : radioGroupParentElement.querySelector(".".concat(carbon.prefix, "--radio-button:checked"));
|
49
|
+
checkedRadioChild === null || checkedRadioChild === void 0 || checkedRadioChild.focus();
|
50
50
|
}
|
51
51
|
}, [isOpen]);
|
52
52
|
var onClickHandler = function onClickHandler() {
|
@@ -17,7 +17,7 @@ var RowSizeRadioGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
17
17
|
onChange = _ref.onChange,
|
18
18
|
legendText = _ref.legendText,
|
19
19
|
_ref$rowSizeLabels = _ref.rowSizeLabels,
|
20
|
-
rowSizeLabels = _ref$rowSizeLabels ===
|
20
|
+
rowSizeLabels = _ref$rowSizeLabels === void 0 ? {
|
21
21
|
xl: 'Extra large',
|
22
22
|
lg: 'Large (default)',
|
23
23
|
md: 'Medium',
|
@@ -152,7 +152,7 @@ var stateReducer = function stateReducer(newState, action) {
|
|
152
152
|
var newSelectedRowData = {};
|
153
153
|
var nonSelectableRows = ((_rows$find = rows.find(function (row) {
|
154
154
|
return row.getRowProps;
|
155
|
-
})) === null || _rows$find ===
|
155
|
+
})) === null || _rows$find === void 0 || (_rows$find$getRowProp = _rows$find.getRowProps) === null || _rows$find$getRowProp === void 0 || (_rows$find$getRowProp = _rows$find$getRowProp.call(_rows$find)) === null || _rows$find$getRowProp === void 0 ? void 0 : _rows$find$getRowProp.nonselectablerows) || [];
|
156
156
|
rows.forEach(function (row) {
|
157
157
|
if (nonSelectableRows.length > 0 && nonSelectableRows.includes(row.id)) {
|
158
158
|
return;
|
@@ -181,7 +181,7 @@ var stateReducer = function stateReducer(newState, action) {
|
|
181
181
|
var _newSelectedRowData = {};
|
182
182
|
_rows.forEach(function (row) {
|
183
183
|
var _row$getRowProps;
|
184
|
-
var props = (_row$getRowProps = row.getRowProps) === null || _row$getRowProps ===
|
184
|
+
var props = (_row$getRowProps = row.getRowProps) === null || _row$getRowProps === void 0 ? void 0 : _row$getRowProps.call(row);
|
185
185
|
if (props && props.disabled) {
|
186
186
|
return;
|
187
187
|
}
|
@@ -283,13 +283,13 @@ var stateReducer = function stateReducer(newState, action) {
|
|
283
283
|
var currentColumn = {};
|
284
284
|
currentColumn[_headerId2] = newState.columnResizing.columnWidths[_headerId2];
|
285
285
|
var allChangedColumns = newState.columnResizing.columnWidths;
|
286
|
-
onColResizeEnd === null || onColResizeEnd ===
|
286
|
+
onColResizeEnd === null || onColResizeEnd === void 0 || onColResizeEnd(currentColumn, allChangedColumns);
|
287
287
|
if (!isKeyEvent) {
|
288
288
|
if (typeof isKeyEvent === 'undefined') {
|
289
289
|
// Blur resizer input if it has focus and is not from a key event resize
|
290
290
|
if (document.activeElement.classList.contains("".concat(blockClass, "__col-resizer-range"))) {
|
291
291
|
var _document;
|
292
|
-
(_document = document) === null || _document ===
|
292
|
+
(_document = document) === null || _document === void 0 || (_document = _document.activeElement) === null || _document === void 0 || _document.blur();
|
293
293
|
}
|
294
294
|
return;
|
295
295
|
}
|
@@ -77,7 +77,7 @@ var useActionsColumn = function useActionsColumn(hooks) {
|
|
77
77
|
return;
|
78
78
|
}
|
79
79
|
e.stopPropagation();
|
80
|
-
_onClick === null || _onClick ===
|
80
|
+
_onClick === null || _onClick === void 0 || _onClick(id, row, e);
|
81
81
|
},
|
82
82
|
disabled: isDisabledByRow
|
83
83
|
}), Icon && /*#__PURE__*/React__default.createElement(Icon, null)));
|
@@ -106,7 +106,7 @@ var useActionsColumn = function useActionsColumn(hooks) {
|
|
106
106
|
disabled: isDisabledByRow,
|
107
107
|
onClick: function onClick(e) {
|
108
108
|
e.stopPropagation();
|
109
|
-
_onClick2 === null || _onClick2 ===
|
109
|
+
_onClick2 === null || _onClick2 === void 0 || _onClick2(id, row, e);
|
110
110
|
},
|
111
111
|
key: id
|
112
112
|
}));
|
@@ -16,14 +16,14 @@ var useColumnRightAlign = function useColumnRightAlign(hooks) {
|
|
16
16
|
var _tableProps$column, _column$Cell;
|
17
17
|
return /*#__PURE__*/React__default.createElement("div", {
|
18
18
|
className: cx("".concat(blockClass, "__right-align-cell-renderer"), {
|
19
|
-
sortDisabled: !tableProps.isTableSortable || (tableProps === null || tableProps ===
|
19
|
+
sortDisabled: !tableProps.isTableSortable || (tableProps === null || tableProps === void 0 || (_tableProps$column = tableProps.column) === null || _tableProps$column === void 0 ? void 0 : _tableProps$column.disableSortBy) === true
|
20
20
|
})
|
21
|
-
}, column === null || column ===
|
21
|
+
}, column === null || column === void 0 || (_column$Cell = column.Cell) === null || _column$Cell === void 0 ? void 0 : _column$Cell.call(column, tableProps));
|
22
22
|
};
|
23
23
|
var RightAlignHeader = function RightAlignHeader(headerProp, column) {
|
24
24
|
return /*#__PURE__*/React__default.createElement("div", {
|
25
25
|
className: "".concat(blockClass, "__right-align-header")
|
26
|
-
}, typeof column.Header === 'function' ? (column === null || column ===
|
26
|
+
}, typeof column.Header === 'function' ? (column === null || column === void 0 ? void 0 : column.Header.bind(column))(headerProp) : column.Header);
|
27
27
|
};
|
28
28
|
var rightAlignedColumns = function rightAlignedColumns(columns) {
|
29
29
|
var columnsWithDefaultCells = columns.map(function (column) {
|
@@ -27,7 +27,7 @@ var useCustomizeColumns = function useCustomizeColumns(hooks) {
|
|
27
27
|
}),
|
28
28
|
CustomizeColumnsButton: function CustomizeColumnsButton(props) {
|
29
29
|
return /*#__PURE__*/React.createElement(ButtonWrapper, _extends({
|
30
|
-
iconTooltipLabel: labels === null || labels ===
|
30
|
+
iconTooltipLabel: labels === null || labels === void 0 ? void 0 : labels.iconTooltipLabel,
|
31
31
|
isTearsheetOpen: isTearsheetOpen,
|
32
32
|
setIsTearsheetOpen: setIsTearsheetOpen
|
33
33
|
}, props));
|
@@ -24,7 +24,7 @@ var useDatagrid = function useDatagrid(params) {
|
|
24
24
|
// Disable resizing
|
25
25
|
if (params.disableResizing) {
|
26
26
|
var resizeIndex = defaultPlugins.findIndex(function (p) {
|
27
|
-
return (p === null || p ===
|
27
|
+
return (p === null || p === void 0 ? void 0 : p['pluginName']) === 'useResizeColumns';
|
28
28
|
});
|
29
29
|
defaultPlugins.splice(resizeIndex, 1);
|
30
30
|
}
|
@@ -39,7 +39,7 @@ var useDatagrid = function useDatagrid(params) {
|
|
39
39
|
for (var _len = arguments.length, plugins = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
40
40
|
plugins[_key - 1] = arguments[_key];
|
41
41
|
}
|
42
|
-
var tableState = useTable.apply(
|
42
|
+
var tableState = useTable.apply(void 0, [_objectSpread2(_objectSpread2({
|
43
43
|
tableId: tableId
|
44
44
|
}, params), {}, {
|
45
45
|
stateReducer: stateReducer,
|
@@ -15,7 +15,7 @@ var useDefaultStringRenderer = function useDefaultStringRenderer(hooks) {
|
|
15
15
|
var StringRenderer = function StringRenderer(tableProps) {
|
16
16
|
var _tableProps$column;
|
17
17
|
return /*#__PURE__*/React__default.createElement("div", {
|
18
|
-
className: cx("".concat(blockClass, "__defaultStringRenderer"), _defineProperty({}, "".concat(blockClass, "__defaultStringRenderer--multiline"), ((_tableProps$column = tableProps.column) === null || _tableProps$column ===
|
18
|
+
className: cx("".concat(blockClass, "__defaultStringRenderer"), _defineProperty({}, "".concat(blockClass, "__defaultStringRenderer--multiline"), ((_tableProps$column = tableProps.column) === null || _tableProps$column === void 0 ? void 0 : _tableProps$column.multiLineWrap) || (tableProps === null || tableProps === void 0 ? void 0 : tableProps.multiLineWrapAll)))
|
19
19
|
}, tableProps.value);
|
20
20
|
};
|
21
21
|
var HeaderRenderer = function HeaderRenderer(header, slug, aiLabel) {
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
var nonselectablerowsList = function nonselectablerowsList(instance) {
|
9
9
|
var _instance$rows;
|
10
|
-
var nonselectablerows = (instance === null || instance ===
|
10
|
+
var nonselectablerows = (instance === null || instance === void 0 || (_instance$rows = instance.rows) === null || _instance$rows === void 0 ? void 0 : _instance$rows.filter(function (row) {
|
11
11
|
return instance.shouldDisableSelectRow && instance.shouldDisableSelectRow(row);
|
12
12
|
}).map(function (row) {
|
13
13
|
return row.id;
|
@@ -27,7 +27,7 @@ var useDisableSelectRows = function useDisableSelectRows(hooks) {
|
|
27
27
|
var row = _ref.row,
|
28
28
|
instance = _ref.instance;
|
29
29
|
return [props, {
|
30
|
-
disabled: instance === null || instance ===
|
30
|
+
disabled: instance === null || instance === void 0 || (_instance$shouldDisab = instance.shouldDisableSelectRow) === null || _instance$shouldDisab === void 0 ? void 0 : _instance$shouldDisab.call(instance, row),
|
31
31
|
nonselectablerows: nonselectablerows
|
32
32
|
}];
|
33
33
|
};
|
@@ -37,28 +37,28 @@ var updateSelectAll = function updateSelectAll(hooks) {
|
|
37
37
|
var getToggleAllRowsSelectedProps = function getToggleAllRowsSelectedProps(props, _ref2) {
|
38
38
|
var _instance$rows2, _instance$disableSele, _instance$state2;
|
39
39
|
var instance = _ref2.instance;
|
40
|
-
var selectableRows = (instance === null || instance ===
|
40
|
+
var selectableRows = (instance === null || instance === void 0 || (_instance$rows2 = instance.rows) === null || _instance$rows2 === void 0 ? void 0 : _instance$rows2.filter(function (row) {
|
41
41
|
return !(instance.shouldDisableSelectRow && instance.shouldDisableSelectRow(row));
|
42
42
|
})) || [];
|
43
|
-
var isAllRowsSelected = (selectableRows === null || selectableRows ===
|
43
|
+
var isAllRowsSelected = (selectableRows === null || selectableRows === void 0 ? void 0 : selectableRows.length) > 0 && selectableRows.every(function (_ref3) {
|
44
44
|
var _instance$state;
|
45
45
|
var id = _ref3.id;
|
46
|
-
return instance === null || instance ===
|
46
|
+
return instance === null || instance === void 0 || (_instance$state = instance.state) === null || _instance$state === void 0 || (_instance$state = _instance$state.selectedRowIds) === null || _instance$state === void 0 ? void 0 : _instance$state[id];
|
47
47
|
});
|
48
48
|
return [props, {
|
49
49
|
onChange: function onChange(e) {
|
50
50
|
selectableRows.forEach(function (row) {
|
51
51
|
var _toggleRowSelected, _ref4;
|
52
|
-
return row === null || row ===
|
52
|
+
return row === null || row === void 0 || (_toggleRowSelected = (_ref4 = row).toggleRowSelected) === null || _toggleRowSelected === void 0 ? void 0 : _toggleRowSelected.call(_ref4, e.target.checked);
|
53
53
|
});
|
54
54
|
},
|
55
55
|
style: {
|
56
56
|
cursor: 'pointer'
|
57
57
|
},
|
58
58
|
checked: isAllRowsSelected,
|
59
|
-
disabled: instance === null || instance ===
|
60
|
-
title: (instance === null || instance ===
|
61
|
-
indeterminate: Boolean(!isAllRowsSelected && Object.keys((instance === null || instance ===
|
59
|
+
disabled: instance === null || instance === void 0 ? void 0 : instance.disableSelectAll,
|
60
|
+
title: (instance === null || instance === void 0 || (_instance$disableSele = instance.disableSelectRowsProps) === null || _instance$disableSele === void 0 || (_instance$disableSele = _instance$disableSele.labels) === null || _instance$disableSele === void 0 ? void 0 : _instance$disableSele.toggleAllRowsLabel) || 'Toggle All Rows Selected',
|
61
|
+
indeterminate: Boolean(!isAllRowsSelected && Object.keys((instance === null || instance === void 0 || (_instance$state2 = instance.state) === null || _instance$state2 === void 0 ? void 0 : _instance$state2.selectedRowIds) || {}).length)
|
62
62
|
}];
|
63
63
|
};
|
64
64
|
hooks.getToggleAllRowsSelectedProps.push(getToggleAllRowsSelectedProps);
|
@@ -67,13 +67,13 @@ var updatePageSelectAll = function updatePageSelectAll(hooks) {
|
|
67
67
|
var getToggleAllPageRowsSelectedProps = function getToggleAllPageRowsSelectedProps(props, _ref5) {
|
68
68
|
var _instance$page, _instance$disableSele2, _instance$page2;
|
69
69
|
var instance = _ref5.instance;
|
70
|
-
var selectableRows = (instance === null || instance ===
|
70
|
+
var selectableRows = (instance === null || instance === void 0 || (_instance$page = instance.page) === null || _instance$page === void 0 ? void 0 : _instance$page.filter(function (row) {
|
71
71
|
return !(instance.shouldDisableSelectRow && instance.shouldDisableSelectRow(row));
|
72
72
|
})) || [];
|
73
|
-
var isAllRowsSelected = (selectableRows === null || selectableRows ===
|
73
|
+
var isAllRowsSelected = (selectableRows === null || selectableRows === void 0 ? void 0 : selectableRows.length) > 0 && selectableRows.every(function (_ref6) {
|
74
74
|
var _instance$state3;
|
75
75
|
var id = _ref6.id;
|
76
|
-
return instance === null || instance ===
|
76
|
+
return instance === null || instance === void 0 || (_instance$state3 = instance.state) === null || _instance$state3 === void 0 || (_instance$state3 = _instance$state3.selectedRowIds) === null || _instance$state3 === void 0 ? void 0 : _instance$state3[id];
|
77
77
|
});
|
78
78
|
return [props, {
|
79
79
|
onChange: function onChange(e) {
|
@@ -85,12 +85,12 @@ var updatePageSelectAll = function updatePageSelectAll(hooks) {
|
|
85
85
|
cursor: 'pointer'
|
86
86
|
},
|
87
87
|
checked: isAllRowsSelected,
|
88
|
-
disabled: instance === null || instance ===
|
89
|
-
title: (instance === null || instance ===
|
90
|
-
indeterminate: Boolean(!isAllRowsSelected && (instance === null || instance ===
|
88
|
+
disabled: instance === null || instance === void 0 ? void 0 : instance.disableSelectAll,
|
89
|
+
title: (instance === null || instance === void 0 || (_instance$disableSele2 = instance.disableSelectRowsProps) === null || _instance$disableSele2 === void 0 || (_instance$disableSele2 = _instance$disableSele2.labels) === null || _instance$disableSele2 === void 0 ? void 0 : _instance$disableSele2.toggleAllRowsLabel) || 'Toggle All Rows Selected',
|
90
|
+
indeterminate: Boolean(!isAllRowsSelected && (instance === null || instance === void 0 || (_instance$page2 = instance.page) === null || _instance$page2 === void 0 ? void 0 : _instance$page2.some(function (_ref7) {
|
91
91
|
var _instance$state4;
|
92
92
|
var id = _ref7.id;
|
93
|
-
return instance === null || instance ===
|
93
|
+
return instance === null || instance === void 0 || (_instance$state4 = instance.state) === null || _instance$state4 === void 0 || (_instance$state4 = _instance$state4.selectedRowIds) === null || _instance$state4 === void 0 ? void 0 : _instance$state4[id];
|
94
94
|
})))
|
95
95
|
}];
|
96
96
|
};
|
@@ -31,7 +31,7 @@ var useExpandedRow = function useExpandedRow(hooks) {
|
|
31
31
|
expandedContentHeight: expandedRowsHeight[row.index] || expandedContentHeight,
|
32
32
|
RowExpansionRenderer: ExpandedRowContentComponent && DatagridExpandedRow(ExpandedRowContentComponent),
|
33
33
|
onClick: function onClick(row, event) {
|
34
|
-
return onRowExpand === null || onRowExpand ===
|
34
|
+
return onRowExpand === null || onRowExpand === void 0 ? void 0 : onRowExpand(row, event);
|
35
35
|
}
|
36
36
|
});
|
37
37
|
});
|
@@ -96,7 +96,7 @@ var useFiltering = function useFiltering(hooks) {
|
|
96
96
|
});
|
97
97
|
};
|
98
98
|
Object.assign(instance, {
|
99
|
-
filterProps: _objectSpread2(_objectSpread2({}, defaultProps), instance === null || instance ===
|
99
|
+
filterProps: _objectSpread2(_objectSpread2({}, defaultProps), instance === null || instance === void 0 ? void 0 : instance.filterProps),
|
100
100
|
filterTypes: filterTypes,
|
101
101
|
getFilterFlyoutProps: getFilterFlyoutProps,
|
102
102
|
FilterFlyout: FilterFlyout
|
@@ -22,7 +22,7 @@ var useFloatingScroll = function useFloatingScroll(hooks) {
|
|
22
22
|
}
|
23
23
|
var datagrid = document.getElementById(tableId);
|
24
24
|
// eslint-disable-next-line no-unused-expressions
|
25
|
-
datagrid === null || datagrid ===
|
25
|
+
datagrid === null || datagrid === void 0 || datagrid.classList.add("".concat(blockClass, "__sticky"));
|
26
26
|
}, [ExpandedRowContentComponent, tableId, withVirtualScroll]);
|
27
27
|
};
|
28
28
|
var useAddStickyClass = function useAddStickyClass(instance) {
|
@@ -58,7 +58,7 @@ var useFloatingScroll = function useFloatingScroll(hooks) {
|
|
58
58
|
simpleThead = memoHead;
|
59
59
|
} else {
|
60
60
|
var datagrid = document.getElementById(tableId);
|
61
|
-
simpleThead = datagrid === null || datagrid ===
|
61
|
+
simpleThead = datagrid === null || datagrid === void 0 ? void 0 : datagrid.querySelector(".".concat(blockClass, "__table-simple thead > div"));
|
62
62
|
memoHead = simpleThead;
|
63
63
|
}
|
64
64
|
if (simpleThead) {
|