@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
@@ -31,7 +31,6 @@ var componentName = 'CoachmarkBeacon';
|
|
31
31
|
var defaults = {
|
32
32
|
kind: 'default'
|
33
33
|
};
|
34
|
-
|
35
34
|
/**
|
36
35
|
* Use beacon for the target prop of a Coachmark component.
|
37
36
|
*/
|
@@ -63,8 +62,7 @@ exports.CoachmarkBeacon = /*#__PURE__*/React__default["default"].forwardRef(func
|
|
63
62
|
"aria-label": label,
|
64
63
|
className: "".concat(blockClass, "__target")
|
65
64
|
}), /*#__PURE__*/React__default["default"].createElement("svg", {
|
66
|
-
className: "".concat(blockClass, "__center")
|
67
|
-
alt: ""
|
65
|
+
className: "".concat(blockClass, "__center")
|
68
66
|
}, _circle || (_circle = /*#__PURE__*/React__default["default"].createElement("circle", {
|
69
67
|
r: 1,
|
70
68
|
cx: 38,
|
@@ -94,7 +94,7 @@ exports.CoachmarkFixed = /*#__PURE__*/React__default["default"].forwardRef(funct
|
|
94
94
|
}
|
95
95
|
}, [prefersReducedMotion.matches]);
|
96
96
|
var handleTransitionEnd = function handleTransitionEnd(e) {
|
97
|
-
console.log('
|
97
|
+
console.log('Here at transition end... ', e.propertyName === 'transform' && !fixedIsVisible);
|
98
98
|
if (e.propertyName === 'transform' && !fixedIsVisible) {
|
99
99
|
setIsOpen(false);
|
100
100
|
onClose();
|
@@ -1,7 +1,33 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2023, 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 CoachmarkOverlayElementProps {
|
9
|
+
/**
|
10
|
+
* An optional button can be rendered below the description.
|
11
|
+
* This can be a link, button, Coachmark button, etc.
|
12
|
+
*/
|
13
|
+
button?: ReactNode;
|
14
|
+
/**
|
15
|
+
* Optional class name for this component.
|
16
|
+
*/
|
17
|
+
className?: string;
|
18
|
+
/**
|
19
|
+
* The description of the Coachmark.
|
20
|
+
*/
|
21
|
+
description: ReactNode;
|
22
|
+
/**
|
23
|
+
* The title of the Coachmark.
|
24
|
+
*/
|
25
|
+
title: string;
|
26
|
+
}
|
1
27
|
/**
|
2
28
|
* Component to be displayed within a CoachmarkOverlayElements container.
|
3
29
|
* Can be used 1 to N number, to display content in a Coachmark's overlay
|
4
30
|
* in a carousel fashion.
|
5
31
|
*/
|
6
|
-
export let CoachmarkOverlayElement: React.ForwardRefExoticComponent<React.RefAttributes<
|
7
|
-
|
32
|
+
export declare let CoachmarkOverlayElement: React.ForwardRefExoticComponent<CoachmarkOverlayElementProps & React.RefAttributes<HTMLDivElement>>;
|
33
|
+
export {};
|
@@ -26,7 +26,6 @@ var _excluded = ["button", "className", "description", "title"];
|
|
26
26
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
27
27
|
var blockClass = "".concat(settings.pkg.prefix, "--coachmark-overlay-element");
|
28
28
|
var componentName = 'CoachmarkOverlayElement';
|
29
|
-
|
30
29
|
/**
|
31
30
|
* Component to be displayed within a CoachmarkOverlayElements container.
|
32
31
|
* Can be used 1 to N number, to display content in a Coachmark's overlay
|
@@ -0,0 +1,132 @@
|
|
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
|
+
'use strict';
|
9
|
+
|
10
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
+
|
12
|
+
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
13
|
+
var React = require('react');
|
14
|
+
var react = require('@carbon/react');
|
15
|
+
var index = require('../../node_modules/prop-types/index.js');
|
16
|
+
var cx = require('classnames');
|
17
|
+
var devtools = require('../../global/js/utils/devtools.js');
|
18
|
+
var settings = require('../../settings.js');
|
19
|
+
var ConditionBuilderContent = require('./ConditionBuilderContent/ConditionBuilderContent.js');
|
20
|
+
var DataTreeContext = require('./ConditionBuilderContext/DataTreeContext.js');
|
21
|
+
|
22
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
23
|
+
|
24
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
25
|
+
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
26
|
+
|
27
|
+
var _excluded = ["className", "inputConfig", "startConditionLabel", "popOverSearchThreshold"];
|
28
|
+
|
29
|
+
// Carbon and package components we use.
|
30
|
+
/* TODO: @import(s) of carbon components and other package components. */
|
31
|
+
|
32
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
33
|
+
var blockClass = "".concat(settings.pkg.prefix, "--condition-builder");
|
34
|
+
var componentName = 'ConditionBuilder';
|
35
|
+
|
36
|
+
// NOTE: the component SCSS is not imported here: it is rolled up separately.
|
37
|
+
|
38
|
+
// Default values can be included here and then assigned to the prop params,
|
39
|
+
// e.g. prop = defaults.prop,
|
40
|
+
// This gathers default values together neatly and ensures non-primitive
|
41
|
+
// values are initialized early to avoid react making unnecessary re-renders.
|
42
|
+
// Note that default values are not required for props that are 'required',
|
43
|
+
// nor for props where the component can apply undefined values reasonably.
|
44
|
+
// Default values should be provided when the component needs to make a choice
|
45
|
+
// or assumption when a prop is not supplied.
|
46
|
+
|
47
|
+
// Default values for props
|
48
|
+
// const defaults = {
|
49
|
+
// /* TODO: add defaults for relevant props if needed */
|
50
|
+
// };
|
51
|
+
|
52
|
+
/**
|
53
|
+
* TODO: A description of the component.
|
54
|
+
*/
|
55
|
+
|
56
|
+
exports.ConditionBuilder = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
57
|
+
var className = _ref.className,
|
58
|
+
inputConfig = _ref.inputConfig,
|
59
|
+
startConditionLabel = _ref.startConditionLabel,
|
60
|
+
popOverSearchThreshold = _ref.popOverSearchThreshold,
|
61
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
62
|
+
return /*#__PURE__*/React__default["default"].createElement(DataTreeContext.ConditionBuilderProvider, {
|
63
|
+
inputConfig: inputConfig,
|
64
|
+
popOverSearchThreshold: popOverSearchThreshold
|
65
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
66
|
+
className: cx__default["default"](blockClass,
|
67
|
+
// Apply the block class to the main HTML element
|
68
|
+
className,
|
69
|
+
// Apply any supplied class names to the main HTML element.
|
70
|
+
// example: `${blockClass}__template-string-class-${kind}-n-${size}`,
|
71
|
+
{
|
72
|
+
// switched classes dependant on props or state
|
73
|
+
// example: [`${blockClass}__here-if-small`]: size === 'sm',
|
74
|
+
}),
|
75
|
+
ref: ref,
|
76
|
+
role: "main"
|
77
|
+
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React__default["default"].createElement(react.VStack, null, /*#__PURE__*/React__default["default"].createElement(ConditionBuilderContent["default"], {
|
78
|
+
startConditionLabel: startConditionLabel
|
79
|
+
}))));
|
80
|
+
});
|
81
|
+
|
82
|
+
// Return a placeholder if not released and not enabled by feature flag
|
83
|
+
exports.ConditionBuilder = settings.pkg.checkComponentEnabled(exports.ConditionBuilder, componentName);
|
84
|
+
|
85
|
+
// The display name of the component, used by React. Note that displayName
|
86
|
+
// is used in preference to relying on function.name.
|
87
|
+
exports.ConditionBuilder.displayName = componentName;
|
88
|
+
|
89
|
+
// The types and DocGen commentary for the component props,
|
90
|
+
// in alphabetical order (for consistency).
|
91
|
+
// See https://www.npmjs.com/package/prop-types#usage.
|
92
|
+
exports.ConditionBuilder.propTypes = {
|
93
|
+
/**
|
94
|
+
* Provide the contents of the ConditionBuilder.
|
95
|
+
*/
|
96
|
+
//children: PropTypes.node.isRequired,
|
97
|
+
|
98
|
+
/**
|
99
|
+
* Provide an optional class to be applied to the containing node.
|
100
|
+
*/
|
101
|
+
className: index["default"].string,
|
102
|
+
/**
|
103
|
+
* This is a mandatory prop that defines the input to the condition builder.
|
104
|
+
|
105
|
+
*/
|
106
|
+
inputConfig: index["default"].shape({
|
107
|
+
properties: index["default"].arrayOf(index["default"].shape({
|
108
|
+
id: index["default"].string,
|
109
|
+
label: index["default"].string,
|
110
|
+
icon: index["default"].func,
|
111
|
+
type: index["default"].oneOf(['text', 'number', 'date', 'option']),
|
112
|
+
config: index["default"].shape({
|
113
|
+
options: index["default"].arrayOf(index["default"].shape({
|
114
|
+
id: index["default"].string,
|
115
|
+
label: index["default"].string,
|
116
|
+
icon: index["default"].func
|
117
|
+
})),
|
118
|
+
includeSearch: index["default"].bool
|
119
|
+
})
|
120
|
+
}))
|
121
|
+
}).isRequired,
|
122
|
+
/**
|
123
|
+
* Provide an mandatory numeric value that will be used to enable search option in the popovers with list.
|
124
|
+
*/
|
125
|
+
popOverSearchThreshold: index["default"].number.isRequired,
|
126
|
+
/**
|
127
|
+
* Provide a label to the button that starts condition builder
|
128
|
+
*/
|
129
|
+
startConditionLabel: index["default"].string.isRequired
|
130
|
+
|
131
|
+
/* TODO: add types and DocGen for all props. */
|
132
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export default ConditionBuilderContent;
|
2
|
+
declare function ConditionBuilderContent({ startConditionLabel }: {
|
3
|
+
startConditionLabel: any;
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
5
|
+
declare namespace ConditionBuilderContent {
|
6
|
+
namespace propTypes {
|
7
|
+
let startConditionLabel: PropTypes.Validator<string>;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,100 @@
|
|
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
|
+
'use strict';
|
9
|
+
|
10
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
+
|
12
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
|
+
var React = require('react');
|
14
|
+
var settings = require('../../../settings.js');
|
15
|
+
var index = require('../../../node_modules/prop-types/index.js');
|
16
|
+
var react = require('@carbon/react');
|
17
|
+
var icons = require('@carbon/react/icons');
|
18
|
+
var DataTreeContext = require('../ConditionBuilderContext/DataTreeContext.js');
|
19
|
+
|
20
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
21
|
+
|
22
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
23
|
+
|
24
|
+
var blockClass = "".concat(settings.pkg.prefix, "--condition-builder");
|
25
|
+
function ConditionBuilderContent(_ref) {
|
26
|
+
var _rootState$groups2;
|
27
|
+
var startConditionLabel = _ref.startConditionLabel;
|
28
|
+
var _useContext = React.useContext(DataTreeContext.ConditionBuilderContext),
|
29
|
+
rootState = _useContext.rootState,
|
30
|
+
setRootState = _useContext.setRootState;
|
31
|
+
var _useState = React.useState(true),
|
32
|
+
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
33
|
+
isConditionBuilderActive = _useState2[0],
|
34
|
+
setIsConditionBuilderActive = _useState2[1];
|
35
|
+
var conditionBuilderRef = React.useRef();
|
36
|
+
React.useEffect(function () {
|
37
|
+
var _rootState$groups;
|
38
|
+
if (rootState !== null && rootState !== void 0 && (_rootState$groups = rootState.groups) !== null && _rootState$groups !== void 0 && _rootState$groups.length) {
|
39
|
+
setIsConditionBuilderActive(false);
|
40
|
+
if (rootState.groups[0].conditions.length == 1 && rootState.groups[0].conditions[0].property == undefined) {
|
41
|
+
// when the add condition clicked to start the condition building, we by default open the popover of the first property
|
42
|
+
setTimeout(function () {
|
43
|
+
conditionBuilderRef.current.querySelector('.propertyField').click();
|
44
|
+
}, 0);
|
45
|
+
}
|
46
|
+
} else {
|
47
|
+
setIsConditionBuilderActive(true);
|
48
|
+
}
|
49
|
+
}, [rootState]);
|
50
|
+
var onStartConditionBuilder = function onStartConditionBuilder() {
|
51
|
+
//when add condition button is clicked.
|
52
|
+
setIsConditionBuilderActive(false);
|
53
|
+
setRootState(DataTreeContext.emptyState); //here we can set an empty skeleton object for an empty condition builder,
|
54
|
+
//or we can even pre-populate some existing builder and continue editing
|
55
|
+
};
|
56
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
57
|
+
ref: conditionBuilderRef,
|
58
|
+
className: "".concat(blockClass, "__content-container")
|
59
|
+
}, isConditionBuilderActive && /*#__PURE__*/React__default["default"].createElement(react.Button, {
|
60
|
+
className: "".concat(blockClass, "__condition-builder"),
|
61
|
+
renderIcon: function renderIcon(props) {
|
62
|
+
return /*#__PURE__*/React__default["default"].createElement(icons.Add, _rollupPluginBabelHelpers["extends"]({
|
63
|
+
size: 16
|
64
|
+
}, props));
|
65
|
+
},
|
66
|
+
iconDescription: startConditionLabel,
|
67
|
+
kind: "ghost",
|
68
|
+
size: "sm",
|
69
|
+
onClick: onStartConditionBuilder
|
70
|
+
}, startConditionLabel), rootState && (rootState === null || rootState === void 0 || (_rootState$groups2 = rootState.groups) === null || _rootState$groups2 === void 0 ? void 0 : _rootState$groups2.map(function () {
|
71
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, "conditionBuilder group renders here")
|
72
|
+
// <ConditionBuilderGroup
|
73
|
+
// state={eachGroup}
|
74
|
+
// onRemove={() => {
|
75
|
+
// onRemove(groupIndex);
|
76
|
+
// }}
|
77
|
+
// onChange={(updatedGroup) => {
|
78
|
+
// /**
|
79
|
+
// * This method is triggered from inner components. This will be called every time when any change is to be updated in the rootState.
|
80
|
+
// * This gets the updated group as argument.
|
81
|
+
// */
|
82
|
+
// setRootState({
|
83
|
+
// ...rootState,
|
84
|
+
// groups: rootState.groups.map((group, gIndex) =>
|
85
|
+
// groupIndex === gIndex ? updatedGroup : group
|
86
|
+
// ),
|
87
|
+
// });
|
88
|
+
// }}
|
89
|
+
//>
|
90
|
+
;
|
91
|
+
})));
|
92
|
+
}
|
93
|
+
ConditionBuilderContent.propTypes = {
|
94
|
+
/**
|
95
|
+
* Provide a label to the button that starts condition builder
|
96
|
+
*/
|
97
|
+
startConditionLabel: index["default"].string.isRequired
|
98
|
+
};
|
99
|
+
|
100
|
+
exports["default"] = ConditionBuilderContent;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
export namespace emptyState {
|
2
|
+
let groups: {
|
3
|
+
groupSeparateOperator: null;
|
4
|
+
groupOperator: string;
|
5
|
+
statement: string;
|
6
|
+
conditions: {
|
7
|
+
property: undefined;
|
8
|
+
operator: string;
|
9
|
+
value: string;
|
10
|
+
}[];
|
11
|
+
}[];
|
12
|
+
}
|
13
|
+
export const ConditionBuilderContext: React.Context<any>;
|
14
|
+
export function ConditionBuilderProvider(props: any): import("react/jsx-runtime").JSX.Element;
|
15
|
+
export namespace ConditionBuilderProvider {
|
16
|
+
namespace propTypes {
|
17
|
+
let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
18
|
+
let inputConfig: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
19
|
+
properties: PropTypes.Requireable<(PropTypes.InferProps<{
|
20
|
+
id: PropTypes.Requireable<string>;
|
21
|
+
label: PropTypes.Requireable<string>;
|
22
|
+
icon: PropTypes.Requireable<(...args: any[]) => any>;
|
23
|
+
type: PropTypes.Requireable<string>;
|
24
|
+
config: PropTypes.Requireable<PropTypes.InferProps<{
|
25
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
26
|
+
id: PropTypes.Requireable<string>;
|
27
|
+
label: PropTypes.Requireable<string>;
|
28
|
+
icon: PropTypes.Requireable<(...args: any[]) => any>;
|
29
|
+
}> | null | undefined)[]>;
|
30
|
+
includeSearch: PropTypes.Requireable<boolean>;
|
31
|
+
}>>;
|
32
|
+
}> | null | undefined)[]>;
|
33
|
+
}>>>;
|
34
|
+
let popOverSearchThreshold: PropTypes.Validator<number>;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
import React from 'react';
|
38
|
+
import PropTypes from 'prop-types';
|
@@ -0,0 +1,98 @@
|
|
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
|
+
'use strict';
|
9
|
+
|
10
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
+
|
12
|
+
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
13
|
+
var React = require('react');
|
14
|
+
var index = require('../../../node_modules/prop-types/index.js');
|
15
|
+
|
16
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
17
|
+
|
18
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
19
|
+
|
20
|
+
var emptyState = {
|
21
|
+
groups: [{
|
22
|
+
groupSeparateOperator: null,
|
23
|
+
groupOperator: 'and',
|
24
|
+
statement: 'if',
|
25
|
+
conditions: [{
|
26
|
+
property: undefined,
|
27
|
+
operator: '',
|
28
|
+
value: ''
|
29
|
+
}]
|
30
|
+
}]
|
31
|
+
};
|
32
|
+
var ConditionBuilderContext = /*#__PURE__*/React.createContext();
|
33
|
+
|
34
|
+
// const rootReducer=(state,action)=>{
|
35
|
+
// switch(action.type){
|
36
|
+
// case 'update':
|
37
|
+
// ;
|
38
|
+
// return {
|
39
|
+
// ...state,
|
40
|
+
// ...action.payload
|
41
|
+
// }
|
42
|
+
// break;
|
43
|
+
// default:
|
44
|
+
// return state;
|
45
|
+
// }
|
46
|
+
|
47
|
+
// }
|
48
|
+
|
49
|
+
var ConditionBuilderProvider = function ConditionBuilderProvider(props) {
|
50
|
+
var _useState = React.useState({
|
51
|
+
groups: []
|
52
|
+
}),
|
53
|
+
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
54
|
+
rootState = _useState2[0],
|
55
|
+
setRootState = _useState2[1];
|
56
|
+
return /*#__PURE__*/React__default["default"].createElement(ConditionBuilderContext.Provider, {
|
57
|
+
value: {
|
58
|
+
rootState: rootState,
|
59
|
+
setRootState: setRootState,
|
60
|
+
inputConfig: props.inputConfig,
|
61
|
+
popOverSearchThreshold: props.popOverSearchThreshold
|
62
|
+
}
|
63
|
+
},
|
64
|
+
// eslint-disable-next-line react/prop-types
|
65
|
+
props.children);
|
66
|
+
};
|
67
|
+
ConditionBuilderProvider.propTypes = {
|
68
|
+
/**
|
69
|
+
* Provide the contents of the ConditionBuilder.
|
70
|
+
*/
|
71
|
+
children: index["default"].node.isRequired,
|
72
|
+
/**
|
73
|
+
* This is a mandatory prop that defines the input to the condition builder.
|
74
|
+
|
75
|
+
*/
|
76
|
+
inputConfig: index["default"].shape({
|
77
|
+
properties: index["default"].arrayOf(index["default"].shape({
|
78
|
+
id: index["default"].string,
|
79
|
+
label: index["default"].string,
|
80
|
+
icon: index["default"].func,
|
81
|
+
type: index["default"].oneOf(['text', 'number', 'date', 'option']),
|
82
|
+
config: index["default"].shape({
|
83
|
+
options: index["default"].arrayOf(index["default"].shape({
|
84
|
+
id: index["default"].string,
|
85
|
+
label: index["default"].string,
|
86
|
+
icon: index["default"].func
|
87
|
+
})),
|
88
|
+
includeSearch: index["default"].bool
|
89
|
+
})
|
90
|
+
}))
|
91
|
+
}).isRequired,
|
92
|
+
popOverSearchThreshold: index["default"].number.isRequired
|
93
|
+
/* TODO: add types and DocGen for all props. */
|
94
|
+
};
|
95
|
+
|
96
|
+
exports.ConditionBuilderContext = ConditionBuilderContext;
|
97
|
+
exports.ConditionBuilderProvider = ConditionBuilderProvider;
|
98
|
+
exports.emptyState = emptyState;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
export declare const inputData: {
|
2
|
+
properties: ({
|
3
|
+
id: string;
|
4
|
+
label: string;
|
5
|
+
icon: import("@carbon/react/icons").CarbonIconType;
|
6
|
+
type: string;
|
7
|
+
config: {
|
8
|
+
options: {
|
9
|
+
label: string;
|
10
|
+
id: string;
|
11
|
+
}[];
|
12
|
+
includeSearch?: undefined;
|
13
|
+
min?: undefined;
|
14
|
+
step?: undefined;
|
15
|
+
unit?: undefined;
|
16
|
+
};
|
17
|
+
} | {
|
18
|
+
id: string;
|
19
|
+
label: string;
|
20
|
+
icon: import("@carbon/react/icons").CarbonIconType;
|
21
|
+
type: string;
|
22
|
+
config: {
|
23
|
+
options: {
|
24
|
+
label: string;
|
25
|
+
id: string;
|
26
|
+
icon: import("@carbon/react/icons").CarbonIconType;
|
27
|
+
}[];
|
28
|
+
includeSearch: boolean;
|
29
|
+
min?: undefined;
|
30
|
+
step?: undefined;
|
31
|
+
unit?: undefined;
|
32
|
+
};
|
33
|
+
} | {
|
34
|
+
id: string;
|
35
|
+
label: string;
|
36
|
+
icon: import("@carbon/react/icons").CarbonIconType;
|
37
|
+
type: string;
|
38
|
+
config: {
|
39
|
+
options?: undefined;
|
40
|
+
includeSearch?: undefined;
|
41
|
+
min?: undefined;
|
42
|
+
step?: undefined;
|
43
|
+
unit?: undefined;
|
44
|
+
};
|
45
|
+
} | {
|
46
|
+
id: string;
|
47
|
+
label: string;
|
48
|
+
icon: import("@carbon/react/icons").CarbonIconType;
|
49
|
+
type: string;
|
50
|
+
config: {
|
51
|
+
min: number;
|
52
|
+
step: number;
|
53
|
+
unit: string;
|
54
|
+
options?: undefined;
|
55
|
+
includeSearch?: undefined;
|
56
|
+
};
|
57
|
+
})[];
|
58
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ConditionBuilder } from "./ConditionBuilder";
|
@@ -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 {};
|