@carbon/ibm-products 2.34.0 → 2.36.0-alpha.27
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +32448 -32421
- 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 +105 -91
- 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 +765 -24496
- 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 +2543 -18127
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/ActionSet/ActionSet.d.ts +38 -2
- package/es/components/ActionSet/ActionSet.js +3 -5
- package/es/components/Coachmark/utils/enums.d.ts +36 -22
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +26 -2
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -3
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +28 -2
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +0 -1
- package/es/components/ConditionBuilder/ConditionBuilder.d.ts +5 -0
- package/es/components/ConditionBuilder/ConditionBuilder.js +125 -0
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +10 -0
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +92 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.d.ts +38 -0
- package/es/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.js +88 -0
- package/es/components/ConditionBuilder/assets/sampleInput.d.ts +58 -0
- package/es/components/ConditionBuilder/index.d.ts +1 -0
- package/es/components/CreateFullPage/CreateFullPage.d.ts +121 -4
- package/es/components/CreateFullPage/CreateFullPage.js +14 -26
- package/es/components/CreateFullPage/CreateFullPageStep.js +22 -7
- package/es/components/CreateTearsheet/CreateTearsheet.js +2 -0
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +82 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +4 -3
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +10 -6
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +2 -1
- package/es/components/Datagrid/useEditableCell.js +15 -0
- package/es/components/DelimitedList/DelimitedList.d.ts +27 -2
- package/es/components/DelimitedList/DelimitedList.js +0 -1
- package/es/components/EditFullPage/EditFullPage.d.ts +19 -2
- package/es/components/EditFullPage/EditFullPage.js +3 -3
- package/es/components/EditInPlace/EditInPlace.d.ts +97 -5
- package/es/components/EditInPlace/EditInPlace.js +10 -6
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -3
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -3
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -3
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +61 -2
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -2
- package/es/components/ExportModal/ExportModal.d.ts +110 -2
- package/es/components/ExportModal/ExportModal.js +10 -4
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -9
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +5 -0
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +92 -0
- package/es/components/FilterPanel/index.d.ts +1 -0
- package/es/components/FullPageError/FullPageError.d.ts +2 -1
- package/es/components/FullPageError/FullPageError.js +24 -49
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +40 -2
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +40 -2
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.d.ts +40 -2
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
- package/es/components/ImportModal/ImportModal.d.ts +136 -2
- package/es/components/ImportModal/ImportModal.js +3 -2
- package/es/components/InlineTip/InlineTip.d.ts +90 -2
- package/es/components/InlineTip/InlineTip.js +3 -2
- package/es/components/InlineTip/InlineTipLink.d.ts +19 -2
- package/es/components/InterstitialScreenView/InterstitialScreenView.d.ts +23 -2
- package/es/components/InterstitialScreenView/InterstitialScreenView.js +0 -1
- package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +23 -2
- package/es/components/Nav/Nav.js +1 -1
- package/es/components/Nav/NavList.js +7 -7
- package/es/components/NonLinearReading/NonLinearReading.d.ts +28 -2
- package/es/components/NonLinearReading/NonLinearReading.js +2 -7
- package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
- package/es/components/PageHeader/PageHeader.js +3 -3
- package/es/components/PageHeader/PageHeaderUtils.d.ts +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +4 -3
- package/es/components/SearchBar/SearchBar.d.ts +51 -3
- package/es/components/SearchBar/SearchBar.js +5 -6
- package/es/components/SidePanel/SidePanel.js +62 -41
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +23 -2
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +6 -5
- package/es/components/TagOverflow/TagOverflow.d.ts +5 -0
- package/es/components/TagOverflow/TagOverflow.js +209 -0
- package/es/components/TagOverflow/constants.d.ts +14 -0
- package/es/components/TagOverflow/constants.js +30 -0
- package/es/components/TagOverflow/index.d.ts +1 -0
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +105 -6
- package/es/components/Tearsheet/TearsheetNarrow.js +6 -1
- package/es/components/Toolbar/Toolbar.d.ts +23 -5
- package/es/components/Toolbar/Toolbar.js +30 -26
- package/es/components/TruncatedList/TruncatedList.d.ts +47 -2
- package/es/components/TruncatedList/TruncatedList.js +5 -4
- package/es/components/UserAvatar/UserAvatar.js +4 -2
- package/es/components/index.d.ts +4 -2
- package/es/global/js/package-settings.d.ts +3 -0
- package/es/global/js/package-settings.js +3 -0
- package/es/index.js +4 -0
- package/es/settings.d.ts +3 -0
- package/lib/components/ActionSet/ActionSet.d.ts +38 -2
- package/lib/components/ActionSet/ActionSet.js +3 -5
- package/lib/components/Coachmark/utils/enums.d.ts +36 -22
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +26 -2
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -3
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +28 -2
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +0 -1
- package/lib/components/ConditionBuilder/ConditionBuilder.d.ts +5 -0
- package/lib/components/ConditionBuilder/ConditionBuilder.js +132 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +10 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +100 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.d.ts +38 -0
- package/lib/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.js +98 -0
- package/lib/components/ConditionBuilder/assets/sampleInput.d.ts +58 -0
- package/lib/components/ConditionBuilder/index.d.ts +1 -0
- package/lib/components/CreateFullPage/CreateFullPage.d.ts +121 -4
- package/lib/components/CreateFullPage/CreateFullPage.js +13 -25
- package/lib/components/CreateFullPage/CreateFullPageStep.js +20 -5
- package/lib/components/CreateTearsheet/CreateTearsheet.js +2 -0
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +82 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +4 -3
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +2 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +11 -7
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +2 -1
- package/lib/components/Datagrid/useEditableCell.js +19 -0
- package/lib/components/DelimitedList/DelimitedList.d.ts +27 -2
- package/lib/components/DelimitedList/DelimitedList.js +0 -1
- package/lib/components/EditFullPage/EditFullPage.d.ts +19 -2
- package/lib/components/EditFullPage/EditFullPage.js +3 -3
- package/lib/components/EditInPlace/EditInPlace.d.ts +97 -5
- package/lib/components/EditInPlace/EditInPlace.js +10 -6
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -3
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -3
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +61 -2
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -2
- package/lib/components/ExportModal/ExportModal.d.ts +110 -2
- package/lib/components/ExportModal/ExportModal.js +10 -4
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -9
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +5 -0
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +99 -0
- package/lib/components/FilterPanel/index.d.ts +1 -0
- package/lib/components/FullPageError/FullPageError.d.ts +2 -1
- package/lib/components/FullPageError/FullPageError.js +24 -49
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +40 -2
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +40 -2
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.d.ts +40 -2
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
- package/lib/components/ImportModal/ImportModal.d.ts +136 -2
- package/lib/components/ImportModal/ImportModal.js +3 -2
- package/lib/components/InlineTip/InlineTip.d.ts +90 -2
- package/lib/components/InlineTip/InlineTip.js +3 -2
- package/lib/components/InlineTip/InlineTipLink.d.ts +19 -2
- package/lib/components/InterstitialScreenView/InterstitialScreenView.d.ts +23 -2
- package/lib/components/InterstitialScreenView/InterstitialScreenView.js +0 -1
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +23 -2
- package/lib/components/Nav/Nav.js +1 -1
- package/lib/components/Nav/NavList.js +7 -7
- package/lib/components/NonLinearReading/NonLinearReading.d.ts +28 -2
- package/lib/components/NonLinearReading/NonLinearReading.js +2 -7
- package/lib/components/NotificationsPanel/NotificationsPanel.js +1 -1
- package/lib/components/PageHeader/PageHeader.js +3 -3
- package/lib/components/PageHeader/PageHeaderUtils.d.ts +1 -1
- package/lib/components/PageHeader/PageHeaderUtils.js +4 -3
- package/lib/components/SearchBar/SearchBar.d.ts +51 -3
- package/lib/components/SearchBar/SearchBar.js +5 -6
- package/lib/components/SidePanel/SidePanel.js +62 -41
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +23 -2
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +6 -5
- package/lib/components/TagOverflow/TagOverflow.d.ts +5 -0
- package/lib/components/TagOverflow/TagOverflow.js +216 -0
- package/lib/components/TagOverflow/constants.d.ts +14 -0
- package/lib/components/TagOverflow/constants.js +34 -0
- package/lib/components/TagOverflow/index.d.ts +1 -0
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +105 -6
- package/lib/components/Tearsheet/TearsheetNarrow.js +6 -1
- package/lib/components/Toolbar/Toolbar.d.ts +23 -5
- package/lib/components/Toolbar/Toolbar.js +30 -26
- package/lib/components/TruncatedList/TruncatedList.d.ts +47 -2
- package/lib/components/TruncatedList/TruncatedList.js +5 -4
- package/lib/components/UserAvatar/UserAvatar.js +4 -2
- package/lib/components/index.d.ts +4 -2
- package/lib/global/js/package-settings.d.ts +3 -0
- package/lib/global/js/package-settings.js +3 -0
- package/lib/index.js +17 -0
- package/lib/settings.d.ts +3 -0
- package/package.json +5 -5
- package/scss/components/Coachmark/_coachmark-dragbar.scss +0 -1
- package/scss/components/Coachmark/_coachmark-tagline.scss +2 -2
- package/scss/components/ConditionBuilder/_carbon-imports.scss +9 -0
- package/scss/components/ConditionBuilder/_condition-builder.scss +25 -0
- package/scss/components/ConditionBuilder/_index-with-carbon.scss +9 -0
- package/scss/components/ConditionBuilder/_index.scss +8 -0
- package/scss/components/CreateFullPage/_create-full-page.scss +10 -10
- package/scss/components/Datagrid/styles/_useNestedRows.scss +5 -1
- package/scss/components/Datagrid/styles/_useSortableColumns.scss +2 -0
- package/scss/components/FilterPanel/_carbon-imports.scss +5 -0
- package/scss/components/FilterPanel/_filter-panel-accordion-item.scss +1 -3
- package/scss/components/FilterPanel/_filter-panel-checkbox-with-overflow.scss +0 -2
- package/scss/components/FilterPanel/_filter-panel-checkbox.scss +0 -1
- package/scss/components/FilterPanel/_filter-panel-search.scss +38 -0
- package/scss/components/FilterPanel/_index-with-carbon.scss +1 -0
- package/scss/components/FilterPanel/_index.scss +1 -0
- package/scss/components/FullPageError/_full-page-error.scss +10 -10
- package/scss/components/Guidebanner/_guidebanner.scss +1 -1
- package/scss/components/InlineTip/_inline-tip.scss +1 -1
- package/scss/components/ProductiveCard/_productive-card.scss +13 -0
- package/scss/components/SidePanel/_side-panel.scss +9 -9
- package/scss/components/TagOverflow/_carbon-imports.scss +9 -0
- package/scss/components/TagOverflow/_index-with-carbon.scss +9 -0
- package/scss/components/TagOverflow/_index.scss +8 -0
- package/scss/components/TagOverflow/_tag-overflow.scss +55 -0
- package/scss/components/Tearsheet/_tearsheet.scss +10 -0
- package/scss/components/UserAvatar/_user-avatar.scss +7 -3
- package/scss/components/_index-with-carbon.scss +2 -0
- package/scss/components/_index.scss +2 -0
@@ -1,5 +1,122 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2021, 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import React, { ReactNode } from 'react';
|
8
|
+
export declare const StepsContext: React.Context<null>;
|
9
|
+
export declare const StepNumberContext: React.Context<number>;
|
10
|
+
interface HeaderBreadcrumbs {
|
11
|
+
/** breadcrumb item key */
|
12
|
+
key: string;
|
13
|
+
/** breadcrumb item label */
|
14
|
+
label: string;
|
15
|
+
/** breadcrumb item link */
|
16
|
+
href?: string;
|
17
|
+
/** breadcrumb item title tooltip */
|
18
|
+
title?: string;
|
19
|
+
/** Provide if this breadcrumb item represents the current page */
|
20
|
+
isCurrentPage?: boolean;
|
21
|
+
}
|
22
|
+
type CreateFullPageBreadcrumbsProps = {
|
23
|
+
/** The header breadcrumbs */
|
24
|
+
breadcrumbs?: null | undefined;
|
25
|
+
/**
|
26
|
+
* Label for open/close overflow button used for breadcrumb items that do not fit
|
27
|
+
*/
|
28
|
+
breadcrumbsOverflowAriaLabel?: never;
|
29
|
+
} | {
|
30
|
+
/** The header breadcrumbs */
|
31
|
+
breadcrumbs: HeaderBreadcrumbs;
|
32
|
+
/**
|
33
|
+
* Label for open/close overflow button used for breadcrumb items that do not fit
|
34
|
+
*/
|
35
|
+
breadcrumbsOverflowAriaLabel: string;
|
36
|
+
};
|
37
|
+
type CreateFullPageBaseProps = {
|
38
|
+
/**
|
39
|
+
* The back button text
|
40
|
+
*/
|
41
|
+
backButtonText?: string;
|
42
|
+
/**
|
43
|
+
* The cancel button text
|
44
|
+
*/
|
45
|
+
cancelButtonText: string;
|
46
|
+
/**
|
47
|
+
* The main content of the full page
|
48
|
+
*/
|
49
|
+
children?: ReactNode;
|
50
|
+
/**
|
51
|
+
* Provide an optional class to be applied to the containing node.
|
52
|
+
*/
|
53
|
+
className?: string;
|
54
|
+
/**
|
55
|
+
* Specifies elements to focus on first on render.
|
56
|
+
*/
|
57
|
+
firstFocusElement?: string;
|
58
|
+
/**
|
59
|
+
* This can be used to open the component to a step other than the first step.
|
60
|
+
* For example, a create flow was previously in progress, data was saved, and
|
61
|
+
* is now being completed.
|
62
|
+
*/
|
63
|
+
initialStep?: number;
|
64
|
+
/** Maximum visible breadcrumb-items before overflow is used (values less than 1 are treated as 1) */
|
65
|
+
maxVisibleBreadcrumbs?: number;
|
66
|
+
/**
|
67
|
+
* The primary 'danger' button text in the modal
|
68
|
+
*/
|
69
|
+
modalDangerButtonText: string;
|
70
|
+
/**
|
71
|
+
* The description located below the title in the modal
|
72
|
+
*/
|
73
|
+
modalDescription?: string;
|
74
|
+
/**
|
75
|
+
* The secondary button text in the modal
|
76
|
+
*/
|
77
|
+
modalSecondaryButtonText: string;
|
78
|
+
/**
|
79
|
+
* The title located in the header of the modal
|
80
|
+
*/
|
81
|
+
modalTitle: string;
|
82
|
+
/**
|
83
|
+
* The next button text
|
84
|
+
*/
|
85
|
+
nextButtonText: string;
|
86
|
+
/**
|
87
|
+
* A prop to omit the trailing slash for the breadcrumbs
|
88
|
+
*/
|
89
|
+
noTrailingSlash?: boolean;
|
90
|
+
/**
|
91
|
+
* An optional handler that is called when the user closes the full page (by
|
92
|
+
* clicking the secondary button, located in the modal, which triggers after
|
93
|
+
* clicking the ghost button in the modal
|
94
|
+
*/
|
95
|
+
onClose?: () => void;
|
96
|
+
/**
|
97
|
+
* Specify a handler for submitting the multi step full page (final step).
|
98
|
+
* This function can _optionally_ return a promise that is either resolved or rejected and the CreateFullPage will handle the submitting state of the create button.
|
99
|
+
*/
|
100
|
+
onRequestSubmit: () => void;
|
101
|
+
/**
|
102
|
+
* A secondary title of the full page, displayed in the influencer area
|
103
|
+
*/
|
104
|
+
secondaryTitle?: string;
|
105
|
+
/**
|
106
|
+
* @ignore
|
107
|
+
* The aria label to be used for the UI Shell SideNav Carbon component
|
108
|
+
*/
|
109
|
+
sideNavAriaLabel?: string;
|
110
|
+
/**
|
111
|
+
* The submit button text
|
112
|
+
*/
|
113
|
+
submitButtonText: string;
|
114
|
+
/**
|
115
|
+
* The main title of the full page, displayed in the header area
|
116
|
+
*/
|
117
|
+
title?: string;
|
118
|
+
};
|
119
|
+
type CreateFullPageProps = CreateFullPageBaseProps & CreateFullPageBreadcrumbsProps;
|
3
120
|
/**
|
4
121
|
* Use with creations that must be completed in order for a service to be usable.
|
5
122
|
*
|
@@ -12,5 +129,5 @@ on the Carbon's grid system
|
|
12
129
|
include `<Row>` and `<Column>` components inside of each `CreateFullPageStep`
|
13
130
|
component to get the desired affect.
|
14
131
|
*/
|
15
|
-
export let CreateFullPage: React.ForwardRefExoticComponent<React.RefAttributes<
|
16
|
-
|
132
|
+
export declare let CreateFullPage: React.ForwardRefExoticComponent<CreateFullPageProps & React.RefAttributes<HTMLDivElement>>;
|
133
|
+
export {};
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import React__default, { useState,
|
9
|
+
import React__default, { useState, useEffect, createContext } from 'react';
|
10
10
|
import PropTypes from '../../node_modules/prop-types/index.js';
|
11
11
|
import cx from 'classnames';
|
12
12
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
@@ -35,7 +35,6 @@ var StepsContext = /*#__PURE__*/createContext(null);
|
|
35
35
|
// This is a context supplied separately to each step in the container
|
36
36
|
// to let it know what number it is in the sequence of steps
|
37
37
|
var StepNumberContext = /*#__PURE__*/createContext(-1);
|
38
|
-
|
39
38
|
/**
|
40
39
|
* Use with creations that must be completed in order for a service to be usable.
|
41
40
|
*
|
@@ -114,15 +113,10 @@ var CreateFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
114
113
|
_useState20 = _slicedToArray(_useState19, 2),
|
115
114
|
firstIncludedStep = _useState20[0],
|
116
115
|
setFirstIncludedStep = _useState20[1];
|
117
|
-
var _useState21 = useState(
|
116
|
+
var _useState21 = useState(),
|
118
117
|
_useState22 = _slicedToArray(_useState21, 2),
|
119
118
|
lastIncludedStep = _useState22[0],
|
120
119
|
setLastIncludedStep = _useState22[1];
|
121
|
-
var _useState23 = useState(0),
|
122
|
-
_useState24 = _slicedToArray(_useState23, 2),
|
123
|
-
headerHeight = _useState24[0],
|
124
|
-
setHeaderHeight = _useState24[1];
|
125
|
-
var headerRef = useRef(null);
|
126
120
|
useEffect(function () {
|
127
121
|
var firstItem = stepData.findIndex(function (item) {
|
128
122
|
return item === null || item === void 0 ? void 0 : item.shouldIncludeStep;
|
@@ -134,18 +128,13 @@ var CreateFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
134
128
|
if (lastItem !== lastIncludedStep) {
|
135
129
|
setLastIncludedStep(lastItem);
|
136
130
|
}
|
131
|
+
|
132
|
+
/**@ts-ignore */
|
137
133
|
if (open && initialStep) {
|
138
134
|
var numberOfHiddenSteps = getNumberOfHiddenSteps(stepData, initialStep);
|
139
135
|
setCurrentStep(Number(initialStep + numberOfHiddenSteps));
|
140
136
|
}
|
141
|
-
}, [stepData, firstIncludedStep, lastIncludedStep, initialStep]);
|
142
|
-
useEffect(function () {
|
143
|
-
var headerHeight = 0;
|
144
|
-
if (title || (breadcrumbs === null || breadcrumbs === void 0 ? void 0 : breadcrumbs.length) > 0) {
|
145
|
-
headerHeight = headerRef.current.getBoundingClientRect().height;
|
146
|
-
}
|
147
|
-
setHeaderHeight(headerHeight);
|
148
|
-
}, [title, breadcrumbs]);
|
137
|
+
}, [stepData, firstIncludedStep, lastIncludedStep, initialStep, modalIsOpen]);
|
149
138
|
useCreateComponentFocus({
|
150
139
|
previousState: previousState,
|
151
140
|
currentStep: currentStep,
|
@@ -157,9 +146,11 @@ var CreateFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
157
146
|
useResetCreateComponent({
|
158
147
|
firstIncludedStep: firstIncludedStep,
|
159
148
|
previousState: previousState,
|
149
|
+
/**@ts-ignore */
|
160
150
|
open: open,
|
161
151
|
setCurrentStep: setCurrentStep,
|
162
152
|
stepData: stepData,
|
153
|
+
/**@ts-ignore */
|
163
154
|
initialStep: initialStep,
|
164
155
|
totalSteps: stepData === null || stepData === void 0 ? void 0 : stepData.length,
|
165
156
|
componentName: componentName
|
@@ -172,6 +163,7 @@ var CreateFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
172
163
|
isSubmitDisabled: isDisabled,
|
173
164
|
setCurrentStep: setCurrentStep,
|
174
165
|
setIsSubmitting: setIsSubmitting,
|
166
|
+
/**@ts-ignore */
|
175
167
|
setShouldViewAll: setShouldViewAll,
|
176
168
|
onClose: onClose,
|
177
169
|
onRequestSubmit: onRequestSubmit,
|
@@ -192,20 +184,15 @@ var CreateFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
192
184
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
193
185
|
ref: ref,
|
194
186
|
className: cx(blockClass, className)
|
195
|
-
}, getDevtoolsProps(componentName)), (title ||
|
196
|
-
className: "".concat(blockClass, "__header"),
|
197
|
-
ref: headerRef
|
198
|
-
}, /*#__PURE__*/React__default.createElement(SimpleHeader, {
|
187
|
+
}, getDevtoolsProps(componentName)), (title || breadcrumbs) && /*#__PURE__*/React__default.createElement(SimpleHeader, {
|
199
188
|
title: title,
|
200
189
|
breadcrumbs: breadcrumbs,
|
201
190
|
noTrailingSlash: noTrailingSlash,
|
202
191
|
overflowAriaLabel: breadcrumbsOverflowAriaLabel,
|
203
|
-
maxVisible: maxVisibleBreadcrumbs
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
height: "calc(100vh - ".concat(headerHeight, "px)")
|
208
|
-
}
|
192
|
+
maxVisible: maxVisibleBreadcrumbs,
|
193
|
+
className: "".concat(blockClass, "__header")
|
194
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
195
|
+
className: "".concat(blockClass, "__influencer-and-body-container")
|
209
196
|
}, /*#__PURE__*/React__default.createElement("div", {
|
210
197
|
className: "".concat(blockClass, "__influencer")
|
211
198
|
}, /*#__PURE__*/React__default.createElement(CreateInfluencer, {
|
@@ -287,6 +274,7 @@ CreateFullPage.propTypes = {
|
|
287
274
|
*/
|
288
275
|
backButtonText: PropTypes.string.isRequired,
|
289
276
|
/** The header breadcrumbs */
|
277
|
+
/**@ts-ignore */
|
290
278
|
breadcrumbs: PropTypes.arrayOf(PropTypes.shape({
|
291
279
|
/** breadcrumb item key */
|
292
280
|
key: PropTypes.string.isRequired,
|
@@ -5,8 +5,8 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import React__default, { forwardRef, useContext, useState, useEffect } from 'react';
|
8
|
+
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
+
import React__default, { forwardRef, useContext, useState, useEffect, isValidElement } from 'react';
|
10
10
|
import PropTypes from '../../node_modules/prop-types/index.js';
|
11
11
|
import cx from 'classnames';
|
12
12
|
import { pkg } from '../../settings.js';
|
@@ -83,6 +83,24 @@ var CreateFullPageStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
83
83
|
span: 50
|
84
84
|
}; // Half.
|
85
85
|
|
86
|
+
var renderDescription = function renderDescription() {
|
87
|
+
if (description) {
|
88
|
+
var common = _objectSpread2({
|
89
|
+
children: description,
|
90
|
+
className: "".concat(blockClass, "-description")
|
91
|
+
}, span);
|
92
|
+
if (typeof description === 'string') {
|
93
|
+
return /*#__PURE__*/React__default.createElement(Column, _extends({}, common, {
|
94
|
+
as: "p"
|
95
|
+
}));
|
96
|
+
} else if ( /*#__PURE__*/isValidElement(description)) {
|
97
|
+
return /*#__PURE__*/React__default.createElement(Column, _extends({}, common, {
|
98
|
+
as: "div"
|
99
|
+
}));
|
100
|
+
}
|
101
|
+
}
|
102
|
+
return null;
|
103
|
+
};
|
86
104
|
return stepsContext ? /*#__PURE__*/React__default.createElement("section", _extends({}, rest, {
|
87
105
|
className: cx(blockClass, className, _defineProperty(_defineProperty({}, "".concat(blockClass, "__step--hidden-step"), stepNumber !== (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep)), "".concat(blockClass, "__step--visible-step"), stepNumber === (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep))),
|
88
106
|
ref: ref
|
@@ -92,10 +110,7 @@ var CreateFullPageStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
92
110
|
}, span), title), subtitle && /*#__PURE__*/React__default.createElement(Column, _extends({
|
93
111
|
className: "".concat(blockClass, "-subtitle"),
|
94
112
|
as: "h6"
|
95
|
-
}, span), subtitle),
|
96
|
-
className: "".concat(blockClass, "-description"),
|
97
|
-
as: "p"
|
98
|
-
}, span), description)))), hasFieldset ? /*#__PURE__*/React__default.createElement(FormGroup, {
|
113
|
+
}, span), subtitle), renderDescription()))), hasFieldset ? /*#__PURE__*/React__default.createElement(FormGroup, {
|
99
114
|
legendText: fieldsetLegendText,
|
100
115
|
className: "".concat(blockClass, "-fieldset")
|
101
116
|
}, children) : children) : pconsole.warn("You have tried using a ".concat(componentName, " component outside of a CreateFullPage. This is not allowed. ").concat(componentName, "s should always be children of the CreateFullPage"));
|
@@ -115,7 +130,7 @@ CreateFullPageStep.propTypes = {
|
|
115
130
|
/**
|
116
131
|
* Sets an optional description on the progress step component
|
117
132
|
*/
|
118
|
-
description: PropTypes.
|
133
|
+
description: PropTypes.node,
|
119
134
|
/**
|
120
135
|
* This will conditionally disable the submit button in the multi step CreateFullPage
|
121
136
|
*/
|
@@ -129,6 +129,8 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
129
129
|
if (open && initialStep) {
|
130
130
|
var numberOfHiddenSteps = getNumberOfHiddenSteps(stepData, initialStep);
|
131
131
|
setCurrentStep(Number(initialStep + numberOfHiddenSteps));
|
132
|
+
} else {
|
133
|
+
setCurrentStep(firstIncludedStep);
|
132
134
|
}
|
133
135
|
}, [stepData, firstIncludedStep, lastIncludedStep, initialStep, open]);
|
134
136
|
useCreateComponentFocus({
|
@@ -1,6 +1,86 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2021, 2021
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import React, { PropsWithChildren, ReactNode } from 'react';
|
8
|
+
type VerticalPosition = 'normal' | 'lower';
|
9
|
+
interface CreateTearsheetNarrowProps extends PropsWithChildren {
|
10
|
+
/**
|
11
|
+
* Provide the contents of the CreateTearsheetNarrow.
|
12
|
+
*/
|
13
|
+
children: ReactNode;
|
14
|
+
/**
|
15
|
+
* Provide an optional class to be applied to the containing node.
|
16
|
+
*/
|
17
|
+
className?: string;
|
18
|
+
/**
|
19
|
+
* A description of the flow, displayed in the header area of the tearsheet.
|
20
|
+
*/
|
21
|
+
description?: ReactNode;
|
22
|
+
/**
|
23
|
+
* Specifies a boolean for disabling or enabling the primary button. This is important for form validation
|
24
|
+
* Returning `true` prevents the primary button from being clicked until required fields are completed.
|
25
|
+
*/
|
26
|
+
disableSubmit?: boolean;
|
27
|
+
/**
|
28
|
+
* Specifies an optional field that provides a additional context for a form
|
29
|
+
*/
|
30
|
+
formDescription?: ReactNode;
|
31
|
+
/**
|
32
|
+
* Specifies a field that provides a title for a form
|
33
|
+
*/
|
34
|
+
formTitle?: ReactNode;
|
35
|
+
/**
|
36
|
+
* A label for the tearsheet, displayed in the header area of the tearsheet
|
37
|
+
* to maintain context for the tearsheet (e.g. as the title changes from page
|
38
|
+
* to page of a multi-page task).
|
39
|
+
*/
|
40
|
+
label?: ReactNode;
|
41
|
+
/**
|
42
|
+
* An optional handler that is called when the user closes the tearsheet (by
|
43
|
+
* clicking the close button, if enabled, or clicking outside, if enabled).
|
44
|
+
* Returning `false` here prevents the modal from closing.
|
45
|
+
*/
|
46
|
+
onRequestClose?: () => void;
|
47
|
+
/**
|
48
|
+
* Specifies an optional handler which is called when the CreateTearsheetNarrow
|
49
|
+
* primary button is pressed.
|
50
|
+
*/
|
51
|
+
onRequestSubmit?: () => void;
|
52
|
+
/**
|
53
|
+
* Specifies whether the tearsheet is currently open.
|
54
|
+
*/
|
55
|
+
open?: boolean;
|
56
|
+
/**
|
57
|
+
* Specifies the primary button's text in the CreateTearsheetNarrow.
|
58
|
+
*/
|
59
|
+
primaryButtonText: string;
|
60
|
+
/**
|
61
|
+
* Specifies the secondary button's text in the CreateTearsheetNarrow.
|
62
|
+
*/
|
63
|
+
secondaryButtonText: string;
|
64
|
+
/**
|
65
|
+
* Specifies which DOM element in the form should be focused.
|
66
|
+
*/
|
67
|
+
selectorPrimaryFocus?: ReactNode;
|
68
|
+
/**
|
69
|
+
* The main title of the tearsheet, displayed in the header area.
|
70
|
+
*/
|
71
|
+
title?: ReactNode;
|
72
|
+
/**
|
73
|
+
* The position of the top of tearsheet in the viewport. The 'normal'
|
74
|
+
* position (the default) is a short distance down from the top of the
|
75
|
+
* viewport, leaving room at the top for a global header bar to show through
|
76
|
+
* from below. The 'lower' position provides a little extra room at the top
|
77
|
+
* to allow an action bar navigation or breadcrumbs to also show through.
|
78
|
+
*/
|
79
|
+
verticalPosition?: VerticalPosition;
|
80
|
+
}
|
1
81
|
/**
|
2
82
|
* Use a narrow tearsheet as an alternative to a modal when there is scrolling.
|
3
83
|
* Use when the form fields can be broken down into sections using section headers.
|
4
84
|
*/
|
5
|
-
export let CreateTearsheetNarrow: React.ForwardRefExoticComponent<React.RefAttributes<
|
6
|
-
|
85
|
+
export declare let CreateTearsheetNarrow: React.ForwardRefExoticComponent<CreateTearsheetNarrowProps & React.RefAttributes<unknown>>;
|
86
|
+
export {};
|
@@ -135,14 +135,15 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
135
135
|
})) : /*#__PURE__*/React__default.createElement("td", {
|
136
136
|
className: "".concat(blockClass, "__table-row-ai-spacer")
|
137
137
|
}) : null, row.cells.map(function (cell, index) {
|
138
|
-
var _cell$column, _content$props, _associatedHeader$;
|
138
|
+
var _cell$column, _cell$column2, _content$props, _associatedHeader$;
|
139
139
|
var cellProps = cell.getCellProps();
|
140
140
|
// eslint-disable-next-line no-unused-vars
|
141
141
|
var children = cellProps.children;
|
142
142
|
cellProps.role;
|
143
143
|
var restProps = _objectWithoutProperties(cellProps, _excluded2);
|
144
|
+
var columnClassname = cell === null || cell === void 0 || (_cell$column = cell.column) === null || _cell$column === void 0 ? void 0 : _cell$column.className;
|
144
145
|
var content = children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !row.isSkeleton && cell.render('Cell'), row.isSkeleton && (_SkeletonText || (_SkeletonText = /*#__PURE__*/React__default.createElement(SkeletonText, null))));
|
145
|
-
if ((cell === null || cell === void 0 || (_cell$
|
146
|
+
if ((cell === null || cell === void 0 || (_cell$column2 = cell.column) === null || _cell$column2 === void 0 ? void 0 : _cell$column2.id) === selectionColumnId) {
|
146
147
|
// directly render component without the wrapping TableCell
|
147
148
|
return cell.render('Cell', {
|
148
149
|
key: cell.column.id
|
@@ -153,7 +154,7 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
153
154
|
return h.id === cell.column.id;
|
154
155
|
});
|
155
156
|
return /*#__PURE__*/React__default.createElement(TableCell, _extends({
|
156
|
-
className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), row.canExpand && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)))
|
157
|
+
className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), row.canExpand && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)), columnClassname)
|
157
158
|
}, restProps, {
|
158
159
|
key: cell.column.id,
|
159
160
|
title: title
|
@@ -166,9 +166,10 @@ var DraggableItemsList = function DraggableItemsList(_ref) {
|
|
166
166
|
var firstWord = res !== null ? res[0] === '' ? res[1].charAt(0).toUpperCase() + res[1].substring(1) : res[0].charAt(0).toUpperCase() + res[0].substring(1) : null;
|
167
167
|
var highlightedText = res !== null ? res[0] === '' ? "<strong>".concat(firstWord, "</strong>") + res[2] : firstWord + "<strong>".concat(res[1], "</strong>") + res[2] : colHeaderTitle;
|
168
168
|
var isFrozenColumn = !!colDef.sticky;
|
169
|
+
var isDisabled = colDef.disabled;
|
169
170
|
var listContents = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Checkbox, {
|
170
171
|
checked: isColumnVisible(colDef),
|
171
|
-
disabled: isFrozenColumn,
|
172
|
+
disabled: isDisabled || isFrozenColumn,
|
172
173
|
onChange: function onChange(_, _ref2) {
|
173
174
|
var checked = _ref2.checked;
|
174
175
|
return onSelectColumn(colDef, checked);
|
@@ -6,14 +6,14 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { slicedToArray as _slicedToArray, defineProperty as _defineProperty } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import {
|
9
|
+
import { BATCH, INSTANT, FLYOUT, CLEAR_FILTERS } from './constants.js';
|
10
10
|
import { usePrefix, IconButton } from '@carbon/react';
|
11
|
-
import cx from 'classnames';
|
12
|
-
import PropTypes from '../../../../../node_modules/prop-types/index.js';
|
13
11
|
import React__default, { useState, useRef, useEffect } from 'react';
|
14
|
-
import { pkg } from '../../../../../settings.js';
|
15
|
-
import { BATCH, INSTANT, FLYOUT, CLEAR_FILTERS } from './constants.js';
|
16
12
|
import { breakpoints, px } from '@carbon/layout';
|
13
|
+
import { Filter } from '@carbon/react/icons';
|
14
|
+
import PropTypes from '../../../../../node_modules/prop-types/index.js';
|
15
|
+
import cx from 'classnames';
|
16
|
+
import { pkg } from '../../../../../settings.js';
|
17
17
|
import useFilters from './hooks/useFilters.js';
|
18
18
|
import useShouldDisableButtons from './hooks/useShouldDisableButtons.js';
|
19
19
|
import { useWindowResize } from '../../../../../global/js/hooks/useWindowResize.js';
|
@@ -154,7 +154,11 @@ var FilterFlyout = function FilterFlyout(_ref) {
|
|
154
154
|
setAllFilters(filtersObjectArray);
|
155
155
|
closeFlyout();
|
156
156
|
// From the user
|
157
|
-
onApply(
|
157
|
+
onApply({
|
158
|
+
filtersState: filtersState,
|
159
|
+
filtersObjectArray: filtersObjectArray,
|
160
|
+
lastAppliedFilters: lastAppliedFilters
|
161
|
+
});
|
158
162
|
// When the user clicks apply, the action set buttons should be disabled again
|
159
163
|
setShouldDisableButtons(true);
|
160
164
|
|
@@ -10,11 +10,11 @@ import { Button, Layer, Search, Accordion, AccordionItem } from '@carbon/react';
|
|
10
10
|
import { PANEL, BATCH, CLEAR_FILTERS, INSTANT } from './constants.js';
|
11
11
|
import React__default, { useState, useContext, useRef, useMemo, useEffect } from 'react';
|
12
12
|
import { panelVariants, innerContainerVariants, actionSetVariants } from './motion/variants.js';
|
13
|
+
import { motion, useReducedMotion } from 'framer-motion';
|
13
14
|
import { Close } from '@carbon/react/icons';
|
14
15
|
import { FilterContext } from './FilterProvider.js';
|
15
16
|
import PropTypes from '../../../../../node_modules/prop-types/index.js';
|
16
17
|
import cx from 'classnames';
|
17
|
-
import { motion, useReducedMotion } from 'framer-motion';
|
18
18
|
import { pkg } from '../../../../../settings.js';
|
19
19
|
import { rem } from '@carbon/layout';
|
20
20
|
import { ActionSet } from '../../../../ActionSet/ActionSet.js';
|
@@ -127,7 +127,11 @@ var FilterPanel = function FilterPanel(_ref) {
|
|
127
127
|
var apply = function apply() {
|
128
128
|
setAllFilters(filtersObjectArray);
|
129
129
|
// From the user
|
130
|
-
onApply(
|
130
|
+
onApply({
|
131
|
+
filtersState: filtersState,
|
132
|
+
filtersObjectArray: filtersObjectArray,
|
133
|
+
lastAppliedFilters: lastAppliedFilters
|
134
|
+
});
|
131
135
|
// When the user clicks apply, the action set buttons should be disabled again
|
132
136
|
setShouldDisableButtons(true);
|
133
137
|
|
@@ -90,7 +90,8 @@ var stateReducer = function stateReducer(newState, action) {
|
|
90
90
|
if (rows) {
|
91
91
|
var newSelectedRowData = {};
|
92
92
|
rows.forEach(function (row) {
|
93
|
-
var
|
93
|
+
var _row$getRowProps;
|
94
|
+
var props = (_row$getRowProps = row.getRowProps) === null || _row$getRowProps === void 0 ? void 0 : _row$getRowProps.call(row);
|
94
95
|
if (props && props.disabled) {
|
95
96
|
return;
|
96
97
|
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
|
8
|
+
import useInlineEdit from './useInlineEdit.js';
|
9
|
+
|
10
|
+
var useEditableCell = function useEditableCell(hooks) {
|
11
|
+
useInlineEdit(hooks, 'usingEditableCell');
|
12
|
+
};
|
13
|
+
var useEditableCell$1 = useEditableCell;
|
14
|
+
|
15
|
+
export { useEditableCell$1 as default };
|
@@ -1,6 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2024, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import React, { PropsWithChildren } from 'react';
|
8
|
+
interface DelimitedListProps extends PropsWithChildren {
|
9
|
+
/**
|
10
|
+
* Provide an optional class to be applied to the containing node.
|
11
|
+
*/
|
12
|
+
className?: string;
|
13
|
+
/**
|
14
|
+
* The character(s) used to separate the items.
|
15
|
+
*/
|
16
|
+
delimiter?: string;
|
17
|
+
/**
|
18
|
+
* Array of items to be listed.
|
19
|
+
*/
|
20
|
+
items?: any[];
|
21
|
+
/**
|
22
|
+
* Toggle the component's ability to truncate or not.
|
23
|
+
*/
|
24
|
+
truncate?: boolean;
|
25
|
+
}
|
1
26
|
/**
|
2
27
|
* `DelimitedList` converts an array of items into a single line of
|
3
28
|
* comma-separated values.
|
4
29
|
*/
|
5
|
-
export let DelimitedList: React.ForwardRefExoticComponent<React.RefAttributes<
|
6
|
-
|
30
|
+
export declare let DelimitedList: React.ForwardRefExoticComponent<DelimitedListProps & React.RefAttributes<HTMLDivElement>>;
|
31
|
+
export {};
|
@@ -1,6 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2022, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import React, { ReactNode } from 'react';
|
8
|
+
interface EditFullPageProps {
|
9
|
+
/**
|
10
|
+
* Provide an optional class to be applied to the containing node.
|
11
|
+
*/
|
12
|
+
className?: string;
|
13
|
+
/**
|
14
|
+
* Provide the contents of the EditFullPage.
|
15
|
+
*/
|
16
|
+
children: ReactNode;
|
17
|
+
}
|
1
18
|
/**
|
2
19
|
* Use when settings on a page need to always be shown in edit mode, or when the context of the page is needed to make several changes.
|
3
20
|
* See usage guidance for further details.
|
4
21
|
*/
|
5
|
-
export let EditFullPage: React.ForwardRefExoticComponent<React.RefAttributes<
|
6
|
-
|
22
|
+
export declare let EditFullPage: React.ForwardRefExoticComponent<EditFullPageProps & React.RefAttributes<HTMLDivElement>>;
|
23
|
+
export {};
|
@@ -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
|
|
15
|
-
var _excluded = ["
|
15
|
+
var _excluded = ["className", "children"];
|
16
16
|
|
17
17
|
// Carbon and package components we use.
|
18
18
|
/* TODO: @import(s) of carbon components and other package components. */
|
@@ -42,8 +42,8 @@ var componentName = 'EditFullPage';
|
|
42
42
|
* See usage guidance for further details.
|
43
43
|
*/
|
44
44
|
var EditFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
45
|
-
var
|
46
|
-
|
45
|
+
var className = _ref.className,
|
46
|
+
children = _ref.children,
|
47
47
|
rest = _objectWithoutProperties(_ref, _excluded);
|
48
48
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
49
49
|
className: cx(blockClass,
|