@carbon/ibm-products 2.54.0 → 2.55.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 +90 -21
- 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 +14 -8
- 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 +14 -8
- 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 +27 -11
- 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 +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.js +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +42 -6
- package/es/components/APIKeyModal/APIKeyModal.types.d.ts +10 -1
- package/es/components/AboutModal/AboutModal.js +3 -6
- package/es/components/AddSelect/AddSelect.d.ts +2 -2
- package/es/components/AddSelect/AddSelect.js +1 -0
- package/es/components/AddSelect/AddSelectBody.d.ts +2 -2
- package/es/components/AddSelect/AddSelectBody.js +1 -0
- package/es/components/AddSelect/hooks/useFocus.js +1 -2
- package/es/components/AddSelect/hooks/useParentSelect.js +1 -2
- package/es/components/AddSelect/hooks/usePath.js +1 -2
- package/es/components/Card/Card.js +13 -9
- package/es/components/Checklist/Checklist.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
- package/es/components/ConditionBuilder/utils/util.js +0 -4
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
- package/es/components/Datagrid/useCustomizeColumns.js +4 -4
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -2
- package/es/components/Datagrid/useEditableCell.js +1 -2
- package/es/components/Datagrid/useFlexResize.js +1 -2
- package/es/components/Datagrid/useFloatingScroll.js +1 -2
- package/es/components/Datagrid/useNestedRowExpander.js +1 -2
- package/es/components/Datagrid/useParentDimensions.js +1 -2
- package/es/components/Datagrid/useResizeTable.js +1 -2
- package/es/components/Datagrid/useRowExpander.js +1 -2
- package/es/components/Datagrid/useRowRenderer.js +1 -2
- package/es/components/Datagrid/useRowSize.js +1 -2
- package/es/components/Datagrid/useSkeletonRows.js +1 -2
- package/es/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
- package/es/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
- package/es/components/DecoratorLink/DecoratorLink.d.ts +1 -0
- package/es/components/DecoratorLink/DecoratorLink.js +5 -0
- package/es/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
- package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
- package/es/components/DescriptionList/DescriptionList.d.ts +1 -0
- package/es/components/DescriptionList/DescriptionList.js +5 -0
- package/es/components/EditFullPage/EditFullPage.d.ts +2 -0
- package/es/components/EditFullPage/EditFullPage.js +8 -0
- package/es/components/EditSidePanel/EditSidePanel.d.ts +2 -0
- package/es/components/EditSidePanel/EditSidePanel.js +8 -0
- package/es/components/EditTearsheet/EditTearsheet.d.ts +2 -0
- package/es/components/EditTearsheet/EditTearsheet.js +8 -0
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
- package/es/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
- package/es/components/EditUpdateCards/EditUpdateCards.js +8 -0
- package/es/components/EmptyStates/EmptyStateIllustration.js +1 -2
- package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -0
- package/es/components/EmptyStates/EmptyStateV2.js +7 -0
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.js +1 -2
- package/es/components/EmptyStates/assets/NoDataIllustration.js +1 -2
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
- package/es/components/FilterPanel/FilterPanel.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanel.js +6 -0
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
- package/es/components/Nav/Nav.d.ts +3 -0
- package/es/components/Nav/Nav.js +8 -0
- package/es/components/Nav/NavItemLink.js +1 -2
- package/es/components/StatusIndicator/StatusIndicator.d.ts +1 -0
- package/es/components/StatusIndicator/StatusIndicator.js +5 -0
- package/es/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
- package/es/components/StatusIndicator/StatusIndicatorStep.js +5 -0
- package/es/components/Tearsheet/Tearsheet.d.ts +1 -1
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
- package/es/components/Tearsheet/TearsheetShell.d.ts +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +3 -24
- package/es/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
- package/es/components/TooltipTrigger/TooltipTrigger.js +3 -2
- package/es/components/UserAvatar/UserAvatar.js +1 -3
- package/es/global/js/hooks/useFocus.d.ts +1 -0
- package/es/global/js/hooks/useFocus.js +21 -1
- package/es/global/js/hooks/usePrefersReducedMotion.js +1 -2
- package/es/index.js +1 -1
- package/lib/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/lib/components/APIKeyModal/APIKeyDownloader.js +1 -1
- package/lib/components/APIKeyModal/APIKeyModal.js +41 -5
- package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +10 -1
- package/lib/components/AboutModal/AboutModal.js +2 -5
- package/lib/components/AddSelect/AddSelect.d.ts +2 -2
- package/lib/components/AddSelect/AddSelect.js +1 -0
- package/lib/components/AddSelect/AddSelectBody.d.ts +2 -2
- package/lib/components/AddSelect/AddSelectBody.js +1 -0
- package/lib/components/AddSelect/hooks/useFocus.js +1 -2
- package/lib/components/AddSelect/hooks/useParentSelect.js +1 -2
- package/lib/components/AddSelect/hooks/usePath.js +1 -2
- package/lib/components/Card/Card.js +12 -8
- package/lib/components/Checklist/ChecklistChart.js +7 -7
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
- package/lib/components/ConditionBuilder/utils/util.js +0 -4
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
- package/lib/components/Datagrid/useColumnOrder.js +1 -1
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
- package/lib/components/Datagrid/useEditableCell.js +1 -2
- package/lib/components/Datagrid/useFlexResize.js +1 -2
- package/lib/components/Datagrid/useFloatingScroll.js +1 -2
- package/lib/components/Datagrid/useNestedRowExpander.js +1 -2
- package/lib/components/Datagrid/useParentDimensions.js +1 -2
- package/lib/components/Datagrid/useResizeTable.js +1 -2
- package/lib/components/Datagrid/useRowExpander.js +1 -2
- package/lib/components/Datagrid/useRowRenderer.js +1 -2
- package/lib/components/Datagrid/useRowSize.js +1 -2
- package/lib/components/Datagrid/useSkeletonRows.js +1 -2
- package/lib/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
- package/lib/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
- package/lib/components/DecoratorLink/DecoratorLink.d.ts +1 -0
- package/lib/components/DecoratorLink/DecoratorLink.js +5 -0
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
- package/lib/components/DescriptionList/DescriptionList.d.ts +1 -0
- package/lib/components/DescriptionList/DescriptionList.js +5 -0
- package/lib/components/EditFullPage/EditFullPage.d.ts +2 -0
- package/lib/components/EditFullPage/EditFullPage.js +8 -0
- package/lib/components/EditSidePanel/EditSidePanel.d.ts +2 -0
- package/lib/components/EditSidePanel/EditSidePanel.js +8 -0
- package/lib/components/EditTearsheet/EditTearsheet.d.ts +2 -0
- package/lib/components/EditTearsheet/EditTearsheet.js +8 -0
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
- package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
- package/lib/components/EditUpdateCards/EditUpdateCards.js +8 -0
- package/lib/components/EmptyStates/EmptyStateIllustration.js +1 -2
- package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -0
- package/lib/components/EmptyStates/EmptyStateV2.js +7 -0
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
- package/lib/components/FilterPanel/FilterPanel.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanel.js +6 -0
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
- package/lib/components/Nav/Nav.d.ts +3 -0
- package/lib/components/Nav/Nav.js +8 -0
- package/lib/components/Nav/NavItemLink.js +1 -2
- package/lib/components/StatusIndicator/StatusIndicator.d.ts +1 -0
- package/lib/components/StatusIndicator/StatusIndicator.js +5 -0
- package/lib/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +5 -0
- package/lib/components/Tearsheet/Tearsheet.d.ts +1 -1
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
- package/lib/components/Tearsheet/TearsheetShell.d.ts +1 -1
- package/lib/components/Tearsheet/TearsheetShell.js +2 -23
- package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
- package/lib/components/TooltipTrigger/TooltipTrigger.js +3 -2
- package/lib/components/UserAvatar/UserAvatar.js +1 -3
- package/lib/global/js/hooks/useFocus.d.ts +1 -0
- package/lib/global/js/hooks/useFocus.js +21 -0
- package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -2
- package/lib/index.js +109 -109
- package/package.json +11 -11
- package/scss/components/Datagrid/styles/_datagrid.scss +16 -6
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +2 -2
@@ -9,7 +9,7 @@ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _
|
|
9
9
|
import React__default, { forwardRef, useState, useRef, useEffect } from 'react';
|
10
10
|
import PropTypes from '../../_virtual/index.js';
|
11
11
|
import cx from 'classnames';
|
12
|
-
import { ComposedModal, ModalHeader, ModalBody, PasswordInput, TextInput, Form, InlineLoading, ModalFooter, Button } from '@carbon/react';
|
12
|
+
import { unstable_FeatureFlags, ComposedModal, ModalHeader, ModalBody, PasswordInput, TextInput, Form, InlineLoading, ModalFooter, Button } from '@carbon/react';
|
13
13
|
import { ErrorFilled, InformationFilled, Copy } from '@carbon/react/icons';
|
14
14
|
import { APIKeyDownloader } from './APIKeyDownloader.js';
|
15
15
|
import { pkg } from '../../settings.js';
|
@@ -17,9 +17,11 @@ import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
|
|
17
17
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
18
18
|
import { isRequiredIf } from '../../global/js/utils/props-helper.js';
|
19
19
|
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
20
|
+
import { useFocus, claimFocus } from '../../global/js/hooks/useFocus.js';
|
21
|
+
import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
|
20
22
|
|
21
23
|
var _ErrorFilled, _InformationFilled;
|
22
|
-
var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "closeButtonText", "copyButtonText", "copyErrorText", "copyIconDescription", "customSteps", "downloadBodyText", "downloadFileName", "downloadFileType", "downloadLinkText", "downloadLinkLabel", "editButtonText", "editSuccess", "editSuccessTitle", "editing", "error", "errorText", "generateButtonText", "generateSuccessBody", "generateSuccessTitle", "generateTitle", "hasAPIKeyVisibilityToggle", "hasDownloadLink", "hideAPIKeyLabel", "loading", "loadingText", "modalLabel", "nameHelperText", "nameLabel", "namePlaceholder", "nameRequired", "nextStepButtonText", "onClose", "onCopy", "onRequestEdit", "onRequestGenerate", "open", "portalTarget", "previousStepButtonText", "showAPIKeyLabel"];
|
24
|
+
var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "closeButtonText", "copyButtonText", "copyErrorText", "copyIconDescription", "customSteps", "downloadBodyText", "downloadFileName", "downloadFileType", "downloadLinkText", "downloadLinkLabel", "editButtonText", "editSuccess", "editSuccessTitle", "editing", "error", "errorText", "generateButtonText", "generateSuccessBody", "generateSuccessTitle", "generateTitle", "hasAPIKeyVisibilityToggle", "hasDownloadLink", "hideAPIKeyLabel", "launcherButtonRef", "loading", "loadingText", "modalLabel", "nameHelperText", "nameLabel", "namePlaceholder", "nameRequired", "nextStepButtonText", "onClose", "onCopy", "onRequestEdit", "onRequestGenerate", "open", "portalTarget", "previousStepButtonText", "selectorPrimaryFocus", "showAPIKeyLabel"];
|
23
25
|
var componentName = 'APIKeyModal';
|
24
26
|
|
25
27
|
// Default values for props
|
@@ -60,6 +62,7 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
60
62
|
hasAPIKeyVisibilityToggle = _ref.hasAPIKeyVisibilityToggle,
|
61
63
|
hasDownloadLink = _ref.hasDownloadLink,
|
62
64
|
hideAPIKeyLabel = _ref.hideAPIKeyLabel,
|
65
|
+
launcherButtonRef = _ref.launcherButtonRef,
|
63
66
|
loading = _ref.loading,
|
64
67
|
loadingText = _ref.loadingText,
|
65
68
|
modalLabel = _ref.modalLabel,
|
@@ -75,6 +78,7 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
75
78
|
open = _ref.open,
|
76
79
|
portalTargetIn = _ref.portalTarget,
|
77
80
|
previousStepButtonText = _ref.previousStepButtonText,
|
81
|
+
selectorPrimaryFocus = _ref.selectorPrimaryFocus,
|
78
82
|
showAPIKeyLabel = _ref.showAPIKeyLabel,
|
79
83
|
rest = _objectWithoutProperties(_ref, _excluded);
|
80
84
|
var _useState = useState(null),
|
@@ -111,11 +115,30 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
111
115
|
ref: copyRef
|
112
116
|
};
|
113
117
|
var blockClass = "".concat(pkg.prefix, "--apikey-modal");
|
118
|
+
var localRef = useRef(undefined);
|
119
|
+
var modalRef = ref || localRef;
|
120
|
+
var _useFocus = useFocus(modalRef, selectorPrimaryFocus),
|
121
|
+
firstElement = _useFocus.firstElement,
|
122
|
+
keyDownListener = _useFocus.keyDownListener;
|
123
|
+
var prevOpen = usePreviousValue(open);
|
114
124
|
useEffect(function () {
|
115
125
|
if (copyRef.current && open && apiKeyLoaded) {
|
116
126
|
copyRef.current.focus();
|
117
127
|
}
|
118
128
|
}, [open, apiKeyLoaded]);
|
129
|
+
useEffect(function () {
|
130
|
+
if (open) {
|
131
|
+
// Focusing the first element or selectorPrimaryFocus element
|
132
|
+
claimFocus(firstElement, modalRef, selectorPrimaryFocus);
|
133
|
+
}
|
134
|
+
}, [firstElement, modalRef, open, selectorPrimaryFocus]);
|
135
|
+
useEffect(function () {
|
136
|
+
if (prevOpen && !open && launcherButtonRef) {
|
137
|
+
setTimeout(function () {
|
138
|
+
launcherButtonRef.current.focus();
|
139
|
+
}, 0);
|
140
|
+
}
|
141
|
+
}, [launcherButtonRef, open, prevOpen]);
|
119
142
|
var isPrimaryButtonDisabled = function isPrimaryButtonDisabled() {
|
120
143
|
if (loading) {
|
121
144
|
return true;
|
@@ -230,10 +253,13 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
230
253
|
onCloseHandler();
|
231
254
|
}
|
232
255
|
};
|
233
|
-
return renderPortalUse( /*#__PURE__*/React__default.createElement(
|
234
|
-
|
235
|
-
|
256
|
+
return renderPortalUse( /*#__PURE__*/React__default.createElement(unstable_FeatureFlags, {
|
257
|
+
enableExperimentalFocusWrapWithoutSentinels: true
|
258
|
+
}, /*#__PURE__*/React__default.createElement(ComposedModal, _extends({}, rest, _objectSpread2({
|
259
|
+
open: open
|
236
260
|
}, getDevtoolsProps(componentName)), {
|
261
|
+
ref: modalRef,
|
262
|
+
onKeyDown: keyDownListener,
|
237
263
|
className: cx(className, blockClass),
|
238
264
|
onClose: onCloseHandler,
|
239
265
|
size: "sm",
|
@@ -306,7 +332,7 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
306
332
|
kind: "primary",
|
307
333
|
onClick: submitHandler,
|
308
334
|
disabled: isPrimaryButtonDisabled()
|
309
|
-
}), getPrimaryButtonText()))));
|
335
|
+
}), getPrimaryButtonText())))));
|
310
336
|
});
|
311
337
|
var customStepsRequiredProps = function customStepsRequiredProps(type) {
|
312
338
|
return isRequiredIf(type, function (_ref3) {
|
@@ -458,6 +484,11 @@ APIKeyModal.propTypes = {
|
|
458
484
|
* label text that's displayed when hovering over visibility toggler to hide key
|
459
485
|
*/
|
460
486
|
hideAPIKeyLabel: PropTypes.string,
|
487
|
+
/**
|
488
|
+
* Provide a ref to return focus to once the tearsheet is closed.
|
489
|
+
*/
|
490
|
+
/**@ts-ignore */
|
491
|
+
launcherButtonRef: PropTypes.any,
|
461
492
|
/**
|
462
493
|
* designates if the modal is in a loading state via a request or some other in progress operation
|
463
494
|
*/
|
@@ -519,6 +550,11 @@ APIKeyModal.propTypes = {
|
|
519
550
|
* text that displays in the secondary button when using custom steps to indicate to the user that there is a previous step
|
520
551
|
*/
|
521
552
|
previousStepButtonText: customStepsRequiredProps(PropTypes.string),
|
553
|
+
/**
|
554
|
+
* Specify a CSS selector that matches the DOM element that should be
|
555
|
+
* focused when the Modal opens.
|
556
|
+
*/
|
557
|
+
selectorPrimaryFocus: PropTypes.string,
|
522
558
|
/**
|
523
559
|
* label text that's displayed when hovering over visibility toggler to show key
|
524
560
|
*/
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
-
import { ReactNode } from 'react';
|
7
|
+
import { ReactNode, RefObject } from 'react';
|
8
8
|
interface APIKeyModalCommonProps {
|
9
9
|
/**
|
10
10
|
* the api key that's displayed to the user when a request to create is fulfilled.
|
@@ -92,6 +92,10 @@ interface APIKeyModalCommonProps {
|
|
92
92
|
* label text that's displayed when hovering over visibility toggler to hide key
|
93
93
|
*/
|
94
94
|
hideAPIKeyLabel?: string;
|
95
|
+
/**
|
96
|
+
* Provide a ref to return focus to once the tearsheet is closed.
|
97
|
+
*/
|
98
|
+
launcherButtonRef?: RefObject<any>;
|
95
99
|
/**
|
96
100
|
* designates if the modal is in a loading state via a request or some other in progress operation
|
97
101
|
*/
|
@@ -145,6 +149,11 @@ interface APIKeyModalCommonProps {
|
|
145
149
|
* The DOM node the tearsheet should be rendered within. Defaults to document.body.
|
146
150
|
*/
|
147
151
|
portalTarget?: ReactNode;
|
152
|
+
/**
|
153
|
+
* Specify a CSS selector that matches the DOM element that should be
|
154
|
+
* focused when the Modal opens.
|
155
|
+
*/
|
156
|
+
selectorPrimaryFocus?: string;
|
148
157
|
/**
|
149
158
|
* label text that's displayed when hovering over visibility toggler to show key
|
150
159
|
*/
|
@@ -11,7 +11,7 @@ import React__default, { useRef, useEffect } from 'react';
|
|
11
11
|
import PropTypes from '../../_virtual/index.js';
|
12
12
|
import cx from 'classnames';
|
13
13
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
14
|
-
import { useFocus } from '../../global/js/hooks/useFocus.js';
|
14
|
+
import { useFocus, claimFocus } from '../../global/js/hooks/useFocus.js';
|
15
15
|
import { pkg } from '../../settings.js';
|
16
16
|
import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
|
17
17
|
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
@@ -62,12 +62,9 @@ var AboutModal = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
62
62
|
}, [bodyRef]);
|
63
63
|
useEffect(function () {
|
64
64
|
if (open) {
|
65
|
-
|
66
|
-
return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
|
67
|
-
}, 0);
|
65
|
+
claimFocus(firstElement, modalRef);
|
68
66
|
}
|
69
|
-
|
70
|
-
}, [open]);
|
67
|
+
}, [firstElement, modalRef, open]);
|
71
68
|
return renderPortalUse( /*#__PURE__*/React__default.createElement(unstable_FeatureFlags, {
|
72
69
|
enableExperimentalFocusWrapWithoutSentinels: true
|
73
70
|
}, /*#__PURE__*/React__default.createElement(ComposedModal, _extends({}, rest, {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React
|
1
|
+
import React from 'react';
|
2
2
|
import { Filter, Item, Theme } from './types';
|
3
3
|
export interface AddSelectProps {
|
4
4
|
className?: string;
|
@@ -36,7 +36,7 @@ export interface AddSelectProps {
|
|
36
36
|
/**
|
37
37
|
* portal target for the all tags modal
|
38
38
|
*/
|
39
|
-
portalTarget?:
|
39
|
+
portalTarget?: HTMLElement;
|
40
40
|
searchResultsTitle?: string;
|
41
41
|
sortByLabel?: string;
|
42
42
|
title: string;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React
|
1
|
+
import React from 'react';
|
2
2
|
import { Item, Theme } from './types';
|
3
3
|
export interface AddSelectBodyProps {
|
4
4
|
className?: string;
|
@@ -35,7 +35,7 @@ export interface AddSelectBodyProps {
|
|
35
35
|
onSubmit?: (selection: any) => void;
|
36
36
|
onSubmitButtonText?: string;
|
37
37
|
open?: boolean;
|
38
|
-
portalTarget?:
|
38
|
+
portalTarget?: HTMLElement;
|
39
39
|
searchResultsTitle?: string;
|
40
40
|
sortByLabel?: string;
|
41
41
|
title?: string;
|
@@ -361,6 +361,7 @@ AddSelectBody.propTypes = {
|
|
361
361
|
onSubmit: PropTypes.func,
|
362
362
|
onSubmitButtonText: PropTypes.string,
|
363
363
|
open: PropTypes.bool,
|
364
|
+
/**@ts-ignore */
|
364
365
|
portalTarget: PropTypes.node,
|
365
366
|
searchResultsTitle: PropTypes.string,
|
366
367
|
sortByLabel: PropTypes.string,
|
@@ -8,7 +8,7 @@
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, objectSpread2 as _objectSpread2, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import React__default, { forwardRef } from 'react';
|
10
10
|
import cx from 'classnames';
|
11
|
-
import { Layer, OverflowMenu,
|
11
|
+
import { Layer, unstable_FeatureFlags, OverflowMenu, MenuItem, Button, IconButton } from '@carbon/react';
|
12
12
|
import { Incomplete, CheckmarkOutline } from '@carbon/react/icons';
|
13
13
|
import PropTypes from '../../_virtual/index.js';
|
14
14
|
import { CardHeader } from './CardHeader.js';
|
@@ -17,7 +17,7 @@ import { pkg } from '../../settings.js';
|
|
17
17
|
|
18
18
|
var _Incomplete, _CheckmarkOutline;
|
19
19
|
var _excluded = ["actionIcons", "actionsPlacement", "aiLabel", "metadata", "children", "className", "clickZone", "description", "disabled", "footerActionIcon", "getStarted", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "overflowAriaLabel", "onSecondaryButtonClick", "pictogram", "primaryButtonDisabled", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonDisabled", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonPlacement", "secondaryButtonText", "slug", "status", "sequence", "title", "titleSize", "iconDescription"],
|
20
|
-
_excluded2 = ["id"],
|
20
|
+
_excluded2 = ["id", "itemText"],
|
21
21
|
_excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
|
22
22
|
var componentName = 'Card';
|
23
23
|
var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
@@ -95,23 +95,27 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
95
95
|
// actions can either be an overflow menu or series of icons
|
96
96
|
var getActions = function getActions() {
|
97
97
|
if (overflowActions.length > 0) {
|
98
|
-
var pos = actionsPlacement === 'top' ? 'bottom' : 'top';
|
98
|
+
var pos = actionsPlacement === 'top' ? 'bottom-end' : 'top-end';
|
99
99
|
var size = actionsPlacement === 'top' ? 'sm' : 'md';
|
100
100
|
return /*#__PURE__*/React__default.createElement(Layer, {
|
101
101
|
level: 2
|
102
|
+
}, /*#__PURE__*/React__default.createElement(unstable_FeatureFlags, {
|
103
|
+
enableV12Overflowmenu: true
|
102
104
|
}, /*#__PURE__*/React__default.createElement(OverflowMenu, {
|
105
|
+
autoAlign: true,
|
106
|
+
menuAlignment: pos,
|
103
107
|
size: size,
|
104
|
-
direction: pos,
|
105
|
-
flipped: true,
|
106
108
|
"aria-label": overflowAriaLabel,
|
107
|
-
|
109
|
+
label: iconDescription
|
108
110
|
}, overflowActions.map(function (_ref2) {
|
109
111
|
var id = _ref2.id,
|
112
|
+
itemText = _ref2.itemText,
|
110
113
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
111
|
-
return /*#__PURE__*/React__default.createElement(
|
112
|
-
key: id
|
114
|
+
return /*#__PURE__*/React__default.createElement(MenuItem, _extends({
|
115
|
+
key: id,
|
116
|
+
label: itemText
|
113
117
|
}, rest));
|
114
|
-
})));
|
118
|
+
}))));
|
115
119
|
}
|
116
120
|
var icons = getIcons().map(function (_ref3) {
|
117
121
|
var id = _ref3.id,
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import { IconButton, Button } from '@carbon/react';
|
10
|
-
import {
|
10
|
+
import { Kinds, Themes } from './Checklist.types.js';
|
11
11
|
import React__default, { useState, useRef, useEffect } from 'react';
|
12
12
|
import { ChecklistChart } from './ChecklistChart.js';
|
13
13
|
import { ChecklistIcon } from './ChecklistIcon.js';
|
@@ -12,7 +12,7 @@ import cx from 'classnames';
|
|
12
12
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
13
13
|
import { pkg } from '../../settings.js';
|
14
14
|
import { CircleDash, CheckmarkOutline, Incomplete, Warning } from '@carbon/react/icons';
|
15
|
-
import {
|
15
|
+
import { Kinds, Themes } from './Checklist.types.js';
|
16
16
|
|
17
17
|
var _excluded = ["className", "kind", "theme"];
|
18
18
|
|
package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js
CHANGED
@@ -63,9 +63,6 @@ var ItemOption = function ItemOption(_ref) {
|
|
63
63
|
className: "".concat(blockClass, "__statement_wrapper")
|
64
64
|
}, /*#__PURE__*/React__default.createElement("div", null, option.text1, " (", option.connector, ")"), /*#__PURE__*/React__default.createElement("div", null, option.text2));
|
65
65
|
};
|
66
|
-
var preventDefault = function preventDefault(evt) {
|
67
|
-
return evt.preventDefault();
|
68
|
-
};
|
69
66
|
if (!allOptions) {
|
70
67
|
return;
|
71
68
|
}
|
@@ -78,8 +75,7 @@ var ItemOption = function ItemOption(_ref) {
|
|
78
75
|
size: "sm",
|
79
76
|
labelText: clearSearchText,
|
80
77
|
closeButtonLabelText: clearSearchText,
|
81
|
-
onChange: onSearchChangeHandler
|
82
|
-
onKeyDown: preventDefault
|
78
|
+
onChange: onSearchChangeHandler
|
83
79
|
})), /*#__PURE__*/React__default.createElement("ul", {
|
84
80
|
"aria-label": getAriaLabel(),
|
85
81
|
role: "listbox"
|
@@ -129,13 +129,14 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
129
129
|
} else {
|
130
130
|
onChange(option, evt);
|
131
131
|
}
|
132
|
+
if (evt.target instanceof SVGElement) {
|
133
|
+
evt.stopPropagation();
|
134
|
+
//stop propagate event , since this closes the popover when clicked on checkboxes which are SVGs.
|
135
|
+
}
|
132
136
|
};
|
133
137
|
var getAriaLabel = function getAriaLabel() {
|
134
138
|
return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : propertyText;
|
135
139
|
};
|
136
|
-
var preventDefault = function preventDefault(evt) {
|
137
|
-
return evt.preventDefault();
|
138
|
-
};
|
139
140
|
if (!allOptions) {
|
140
141
|
return _SelectSkeleton || (_SelectSkeleton = /*#__PURE__*/React__default.createElement(SelectSkeleton, null));
|
141
142
|
}
|
@@ -148,8 +149,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
|
|
148
149
|
size: "sm",
|
149
150
|
labelText: clearSearchText,
|
150
151
|
closeButtonLabelText: clearSearchText,
|
151
|
-
onChange: onSearchChangeHandler
|
152
|
-
onKeyDown: preventDefault
|
152
|
+
onChange: onSearchChangeHandler
|
153
153
|
})), multiSelectable && /*#__PURE__*/React__default.createElement("div", {
|
154
154
|
className: "".concat(blockClass, "__multiselectSelectionStatusContainer")
|
155
155
|
}, /*#__PURE__*/React__default.createElement("h4", null, /*#__PURE__*/React__default.createElement("label", null, selection.length, "/", allOptions.length, " Selected")), /*#__PURE__*/React__default.createElement(Button, {
|
@@ -48,10 +48,6 @@ var traverseReverse = function traverseReverse(eachElem, index, allElements, rot
|
|
48
48
|
}
|
49
49
|
};
|
50
50
|
var checkForHoldingKey = function checkForHoldingKey(evt, key) {
|
51
|
-
// possible key inputs: altKey,ctrlKey,metaKey,shiftKey
|
52
|
-
if (key === 'cmd') {
|
53
|
-
return evt.metaKey || evt.ctrlKey;
|
54
|
-
}
|
55
51
|
return evt[key];
|
56
52
|
};
|
57
53
|
var checkIsValid = function checkIsValid(item) {
|
@@ -57,12 +57,12 @@ var ResizeHeader = function ResizeHeader(_ref) {
|
|
57
57
|
if (key === 'ArrowLeft') {
|
58
58
|
if (currentColumnWidth - incrementAmount > Math.max(Number(minWidth), 50)) {
|
59
59
|
var newWidth = currentColumnWidth - incrementAmount;
|
60
|
-
handleColumnResizingEvent(dispatch, header, newWidth
|
60
|
+
handleColumnResizingEvent(dispatch, header, newWidth);
|
61
61
|
}
|
62
62
|
}
|
63
63
|
if (key === 'ArrowRight') {
|
64
64
|
var _newWidth = currentColumnWidth + incrementAmount;
|
65
|
-
handleColumnResizingEvent(dispatch, header, _newWidth
|
65
|
+
handleColumnResizingEvent(dispatch, header, _newWidth);
|
66
66
|
}
|
67
67
|
}
|
68
68
|
};
|
package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
CHANGED
@@ -187,6 +187,5 @@ CustomizeColumnsTearsheet.propTypes = {
|
|
187
187
|
selectAllLabel: PropTypes.string,
|
188
188
|
setIsTearsheetOpen: PropTypes.func.isRequired
|
189
189
|
};
|
190
|
-
var CustomizeColumnsTearsheet$1 = CustomizeColumnsTearsheet;
|
191
190
|
|
192
|
-
export { CustomizeColumnsTearsheet
|
191
|
+
export { CustomizeColumnsTearsheet as default };
|
@@ -61,6 +61,5 @@ var TearsheetWrapper = function TearsheetWrapper(_ref) {
|
|
61
61
|
TearsheetWrapper.propTypes = {
|
62
62
|
instance: PropTypes.object.isRequired
|
63
63
|
};
|
64
|
-
var CustomizeColumnsTearsheetWrapper = TearsheetWrapper;
|
65
64
|
|
66
|
-
export {
|
65
|
+
export { TearsheetWrapper as default };
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { slicedToArray as _slicedToArray, defineProperty as _defineProperty } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import { BATCH, INSTANT,
|
9
|
+
import { BATCH, INSTANT, CLEAR_FILTERS, FLYOUT, SAVED_FILTERS } from './constants.js';
|
10
10
|
import { usePrefix, IconButton } from '@carbon/react';
|
11
11
|
import React__default, { useState, useRef, useContext, useEffect } from 'react';
|
12
12
|
import { breakpoints, px } from '@carbon/layout';
|
@@ -327,6 +327,5 @@ FilterFlyout.propTypes = {
|
|
327
327
|
*/
|
328
328
|
updateMethod: PropTypes.oneOf([BATCH, INSTANT]).isRequired
|
329
329
|
};
|
330
|
-
var FilterFlyout$1 = FilterFlyout;
|
331
330
|
|
332
|
-
export { FilterFlyout
|
331
|
+
export { FilterFlyout as default };
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
import { slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import { Button, Layer, Search, Accordion, AccordionItem } from '@carbon/react';
|
10
|
-
import {
|
10
|
+
import { BATCH, CLEAR_FILTERS, INSTANT, PANEL, SAVED_FILTERS } from './constants.js';
|
11
11
|
import React__default, { useState, useContext, useRef, useMemo, useEffect, useCallback } from 'react';
|
12
12
|
import { panelVariants, innerContainerVariants, actionSetVariants } from './motion/variants.js';
|
13
13
|
import { motion, useReducedMotion } from 'framer-motion';
|
@@ -312,6 +312,5 @@ FilterPanel.propTypes = {
|
|
312
312
|
title: PropTypes.string,
|
313
313
|
updateMethod: PropTypes.oneOf([BATCH, INSTANT])
|
314
314
|
};
|
315
|
-
var FilterPanel$1 = FilterPanel;
|
316
315
|
|
317
|
-
export { componentClass, FilterPanel
|
316
|
+
export { componentClass, FilterPanel as default };
|
@@ -29,6 +29,5 @@ var useShouldDisableButtons = function useShouldDisableButtons(_ref) {
|
|
29
29
|
}, [filtersState, prevFiltersRef]);
|
30
30
|
return [shouldDisableButtons, setShouldDisableButtons];
|
31
31
|
};
|
32
|
-
var useShouldDisableButtons$1 = useShouldDisableButtons;
|
33
32
|
|
34
|
-
export { useShouldDisableButtons
|
33
|
+
export { useShouldDisableButtons as default };
|
package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js
CHANGED
@@ -21,6 +21,5 @@ var useSubscribeToEventEmitter = function useSubscribeToEventEmitter(type, callb
|
|
21
21
|
EventEmitter.subscribe(type, callback);
|
22
22
|
});
|
23
23
|
};
|
24
|
-
var useSubscribeToEventEmitter$1 = useSubscribeToEventEmitter;
|
25
24
|
|
26
|
-
export { useSubscribeToEventEmitter
|
25
|
+
export { useSubscribeToEventEmitter as default };
|
@@ -85,6 +85,5 @@ RowSizeRadioGroup.propTypes = {
|
|
85
85
|
selectedOption: PropTypes.string.isRequired,
|
86
86
|
tableId: PropTypes.string.isRequired
|
87
87
|
};
|
88
|
-
var RowSizeRadioGroup$1 = RowSizeRadioGroup;
|
89
88
|
|
90
|
-
export { RowSizeRadioGroup
|
89
|
+
export { RowSizeRadioGroup as default };
|
@@ -28,7 +28,7 @@ var handleColumnResizeEndEvent = function handleColumnResizeEndEvent(dispatch, o
|
|
28
28
|
});
|
29
29
|
};
|
30
30
|
var handleColumnResizingEvent = function handleColumnResizingEvent(dispatch, header, newWidth, isKeyEvent) {
|
31
|
-
|
31
|
+
{
|
32
32
|
dispatch({
|
33
33
|
type: COLUMN_RESIZE_START,
|
34
34
|
payload: {
|
@@ -7,8 +7,8 @@
|
|
7
7
|
|
8
8
|
import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
9
|
import * as React from 'react';
|
10
|
-
import
|
11
|
-
import
|
10
|
+
import ButtonWrapper from './Datagrid/addons/CustomizeColumns/ButtonWrapper.js';
|
11
|
+
import TearsheetWrapper from './Datagrid/addons/CustomizeColumns/TearsheetWrapper.js';
|
12
12
|
|
13
13
|
var useCustomizeColumns = function useCustomizeColumns(hooks) {
|
14
14
|
var _React$useState = React.useState(false),
|
@@ -26,13 +26,13 @@ var useCustomizeColumns = function useCustomizeColumns(hooks) {
|
|
26
26
|
setIsTearsheetOpen: setIsTearsheetOpen
|
27
27
|
}),
|
28
28
|
CustomizeColumnsButton: function CustomizeColumnsButton(props) {
|
29
|
-
return /*#__PURE__*/React.createElement(
|
29
|
+
return /*#__PURE__*/React.createElement(ButtonWrapper, _extends({
|
30
30
|
iconTooltipLabel: labels === null || labels === void 0 ? void 0 : labels.iconTooltipLabel,
|
31
31
|
isTearsheetOpen: isTearsheetOpen,
|
32
32
|
setIsTearsheetOpen: setIsTearsheetOpen
|
33
33
|
}, props));
|
34
34
|
},
|
35
|
-
CustomizeColumnsTearsheet:
|
35
|
+
CustomizeColumnsTearsheet: TearsheetWrapper
|
36
36
|
});
|
37
37
|
});
|
38
38
|
};
|
@@ -9,7 +9,7 @@ import { objectSpread2 as _objectSpread2, toConsumableArray as _toConsumableArra
|
|
9
9
|
import { useMemo } from 'react';
|
10
10
|
import { useTable, useFlexLayout, useResizeColumns, useFilters, useGlobalFilter, useSortBy, useExpanded, usePagination, useRowSelect } from 'react-table';
|
11
11
|
import uniqueId from 'lodash/uniqueId';
|
12
|
-
import
|
12
|
+
import useSkeletons from './useSkeletonRows.js';
|
13
13
|
import useDefaultStringRenderer from './useDefaultStringRenderer.js';
|
14
14
|
import useRowRenderer from './useRowRenderer.js';
|
15
15
|
import useRowSize from './useRowSize.js';
|
@@ -19,7 +19,7 @@ import useFloatingScroll from './useFloatingScroll.js';
|
|
19
19
|
import { stateReducer } from './Datagrid/addons/stateReducer.js';
|
20
20
|
|
21
21
|
var useDatagrid = function useDatagrid(params) {
|
22
|
-
var defaultPlugins = [useFlexLayout, useHeaderRow,
|
22
|
+
var defaultPlugins = [useFlexLayout, useHeaderRow, useSkeletons, useResizeColumns, useRowRenderer, useDefaultStringRenderer, useRowSize, useFilters, useGlobalFilter, useSortBy, useExpanded];
|
23
23
|
|
24
24
|
// Disable resizing
|
25
25
|
if (params.disableResizing) {
|
@@ -36,6 +36,5 @@ var useDefaultStringRenderer = function useDefaultStringRenderer(hooks) {
|
|
36
36
|
};
|
37
37
|
hooks.visibleColumns.push(visibleColumns);
|
38
38
|
};
|
39
|
-
var useDefaultStringRenderer$1 = useDefaultStringRenderer;
|
40
39
|
|
41
|
-
export { useDefaultStringRenderer
|
40
|
+
export { useDefaultStringRenderer as default };
|
@@ -10,6 +10,5 @@ import useInlineEdit from './useInlineEdit.js';
|
|
10
10
|
var useEditableCell = function useEditableCell(hooks) {
|
11
11
|
useInlineEdit(hooks);
|
12
12
|
};
|
13
|
-
var useEditableCell$1 = useEditableCell;
|
14
13
|
|
15
|
-
export { useEditableCell
|
14
|
+
export { useEditableCell as default };
|