@carbon/ibm-products 2.42.1-canary.17 → 2.42.1-canary.2
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +9 -302
- 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.css +9 -302
- 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 +9 -302
- 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/Carousel/Carousel.d.ts +1 -1
- package/es/components/Carousel/Carousel.js +1 -1
- package/es/components/Coachmark/CoachmarkDragbar.d.ts +1 -1
- package/es/components/Coachmark/CoachmarkDragbar.js +1 -1
- package/es/components/Coachmark/CoachmarkHeader.d.ts +1 -1
- package/es/components/Coachmark/CoachmarkHeader.js +1 -1
- package/es/components/Coachmark/CoachmarkOverlay.d.ts +1 -1
- package/es/components/Coachmark/CoachmarkOverlay.js +1 -1
- package/es/components/Coachmark/CoachmarkTagline.d.ts +1 -1
- package/es/components/Coachmark/CoachmarkTagline.js +1 -1
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +1 -1
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +2 -2
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +0 -6
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +33 -74
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +1 -15
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +12 -95
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +2 -11
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +9 -27
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +0 -5
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +14 -95
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +0 -1
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +0 -1
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +0 -7
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +1 -8
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +1 -1
- package/es/components/ConditionBuilder/{ConditionBuilderConnector → ConditionConnector}/ConditionConnector.js +33 -38
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +67 -197
- package/es/components/ConditionBuilder/utils/util.d.ts +0 -1
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.d.ts +1 -7
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +0 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +3 -13
- package/es/components/Datagrid/types/index.d.ts +0 -2
- package/es/components/Datagrid/useColumnOrder.d.ts +1 -7
- package/es/components/Datagrid/useNestedRows.js +0 -17
- package/es/components/Datagrid/useOnRowClick.d.ts +1 -8
- package/es/components/Datagrid/useOnRowClick.js +1 -2
- package/es/components/Datagrid/useRowIsMouseOver.d.ts +1 -2
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/es/components/Datagrid/useSortableColumns.d.ts +3 -10
- package/es/components/Datagrid/useSortableColumns.js +2 -3
- package/es/components/InterstitialScreenView/InterstitialScreenView.d.ts +1 -1
- package/es/components/InterstitialScreenView/InterstitialScreenView.js +1 -1
- package/es/components/SidePanel/SidePanel.d.ts +2 -2
- package/es/components/SidePanel/SidePanel.js +3 -5
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +1 -1
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/es/global/js/package-settings.js +2 -2
- package/es/index.d.ts +0 -1
- package/es/index.js +0 -1
- package/lib/components/Carousel/Carousel.d.ts +1 -1
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Coachmark/CoachmarkDragbar.d.ts +1 -1
- package/lib/components/Coachmark/CoachmarkDragbar.js +1 -1
- package/lib/components/Coachmark/CoachmarkHeader.d.ts +1 -1
- package/lib/components/Coachmark/CoachmarkHeader.js +1 -1
- package/lib/components/Coachmark/CoachmarkOverlay.d.ts +1 -1
- package/lib/components/Coachmark/CoachmarkOverlay.js +1 -1
- package/lib/components/Coachmark/CoachmarkTagline.d.ts +1 -1
- package/lib/components/Coachmark/CoachmarkTagline.js +1 -1
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +1 -1
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +0 -6
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +32 -73
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +1 -15
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +9 -92
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +2 -11
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +8 -26
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +0 -5
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +11 -92
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts +0 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +0 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.d.ts +0 -7
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +1 -8
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +1 -1
- package/lib/components/ConditionBuilder/{ConditionBuilderConnector → ConditionConnector}/ConditionConnector.js +31 -36
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +64 -195
- package/lib/components/ConditionBuilder/utils/util.d.ts +0 -1
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.d.ts +1 -7
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +0 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +3 -13
- package/lib/components/Datagrid/types/index.d.ts +0 -2
- package/lib/components/Datagrid/useColumnOrder.d.ts +1 -7
- package/lib/components/Datagrid/useNestedRows.js +0 -17
- package/lib/components/Datagrid/useOnRowClick.d.ts +1 -8
- package/lib/components/Datagrid/useOnRowClick.js +1 -2
- package/lib/components/Datagrid/useRowIsMouseOver.d.ts +1 -2
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/lib/components/Datagrid/useSortableColumns.d.ts +3 -10
- package/lib/components/Datagrid/useSortableColumns.js +2 -3
- package/lib/components/InterstitialScreenView/InterstitialScreenView.d.ts +1 -1
- package/lib/components/InterstitialScreenView/InterstitialScreenView.js +1 -1
- package/lib/components/SidePanel/SidePanel.d.ts +2 -2
- package/lib/components/SidePanel/SidePanel.js +3 -5
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +1 -1
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
- package/lib/global/js/package-settings.js +2 -2
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/package.json +3 -3
- package/scss/components/ConditionBuilder/_condition-builder.scss +1 -21
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +3 -22
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +21 -58
- package/scss/components/NonLinearReading/_non-linear-reading.scss +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +0 -2
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +0 -44
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +0 -10
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +0 -69
- package/es/feature-flags.js +0 -18
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +0 -2
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +0 -52
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +0 -10
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +0 -77
- package/lib/feature-flags.js +0 -40
- /package/es/components/ConditionBuilder/{ConditionBuilderConnector → ConditionConnector}/ConditionConnector.d.ts +0 -0
- /package/lib/components/ConditionBuilder/{ConditionBuilderConnector → ConditionConnector}/ConditionConnector.d.ts +0 -0
@@ -2,4 +2,3 @@ export function focusThisField(evt: any): void;
|
|
2
2
|
export function focusThisItem(currentElement: any): void;
|
3
3
|
export function traverseClockVise(eachElem: any, index: any, allElements: any, rotate: any, trapFocus: any): void;
|
4
4
|
export function traverseReverse(eachElem: any, index: any, allElements: any, rotate: any, trapFocus: any): void;
|
5
|
-
export function checkForHoldingKey(evt: any, key: any): any;
|
@@ -185,7 +185,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
185
185
|
headerProps = _extends({}, (_objectDestructuringEmpty(_header$getHeaderProp), _header$getHeaderProp));
|
186
186
|
var resizerProps = header === null || header === void 0 || (_header$getResizerPro = header.getResizerProps) === null || _header$getResizerPro === void 0 ? void 0 : _header$getResizerPro.call(header);
|
187
187
|
return /*#__PURE__*/React__default.createElement(TableHeader, _extends({}, headerProps, {
|
188
|
-
className: cx(header === null || header === void 0 ? void 0 : header.className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__resizableColumn"), resizerProps), "".concat(blockClass, "__isResizing"), header === null || header === void 0 ? void 0 : header.isResizing), "".concat(blockClass, "__sortableColumn"), datagridState.isTableSortable && header.id !== 'spacer'), "".concat(blockClass, "__isSorted"), header === null || header === void 0 ? void 0 : header.isSorted), "".concat(blockClass, "__header-actions-column"), header === null || header === void 0 ? void 0 : header.isAction), "".concat(blockClass, "__with-slug"), header.slug && /*#__PURE__*/React__default.isValidElement(header === null || header === void 0 ? void 0 : header.slug))
|
188
|
+
className: cx(header === null || header === void 0 ? void 0 : header.className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__resizableColumn"), resizerProps), "".concat(blockClass, "__isResizing"), header === null || header === void 0 ? void 0 : header.isResizing), "".concat(blockClass, "__sortableColumn"), datagridState.isTableSortable && header.id !== 'spacer'), "".concat(blockClass, "__isSorted"), header === null || header === void 0 ? void 0 : header.isSorted), "".concat(blockClass, "__header-actions-column"), header === null || header === void 0 ? void 0 : header.isAction), "".concat(blockClass, "__with-slug"), header.slug && /*#__PURE__*/React__default.isValidElement(header === null || header === void 0 ? void 0 : header.slug))),
|
189
189
|
key: header.id,
|
190
190
|
"aria-hidden": header.id === 'spacer' && 'true'
|
191
191
|
}, getAccessibilityProps(header)), header.render('Header'), renderSlug(header.slug), resizerProps && !header.isAction && /*#__PURE__*/React__default.createElement(ResizeHeader, {
|
@@ -1,8 +1,2 @@
|
|
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
|
-
declare const useFilterContext: () => any;
|
8
1
|
export default useFilterContext;
|
2
|
+
declare function useFilterContext(): any;
|
package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts
CHANGED
@@ -20,7 +20,6 @@ export namespace InlineEditCell {
|
|
20
20
|
rows: PropTypes.Requireable<(object | null | undefined)[]>;
|
21
21
|
rowSize: PropTypes.Requireable<string>;
|
22
22
|
tableId: PropTypes.Requireable<string>;
|
23
|
-
cellEditing: PropTypes.Requireable<object>;
|
24
23
|
}>>;
|
25
24
|
let nonEditCell: PropTypes.Requireable<boolean>;
|
26
25
|
let placeholder: PropTypes.Requireable<string>;
|
@@ -36,8 +36,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
36
36
|
var columnIndex = instance.columns.findIndex(function (col) {
|
37
37
|
return col.id === columnId;
|
38
38
|
});
|
39
|
-
var
|
40
|
-
var cellId = "column-".concat(columnIndex, "-row-").concat(rowIndex);
|
39
|
+
var cellId = "column-".concat(columnIndex, "-row-").concat(cell.row.index);
|
41
40
|
var _useContext = useContext(InlineEditContext),
|
42
41
|
state = _useContext.state,
|
43
42
|
dispatch = _useContext.dispatch;
|
@@ -73,14 +72,6 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
73
72
|
var rowSize = instance.rowSize,
|
74
73
|
onDataUpdate = instance.onDataUpdate;
|
75
74
|
var saveCellData;
|
76
|
-
if (inEditMode) {
|
77
|
-
instance.cellEditing = {
|
78
|
-
cellId: cellId,
|
79
|
-
columnIndex: columnIndex,
|
80
|
-
rowIndex: rowIndex,
|
81
|
-
curCellValue: cellValue
|
82
|
-
};
|
83
|
-
}
|
84
75
|
useEffect(function () {
|
85
76
|
setInitialValue(value);
|
86
77
|
var columnId = cell.column.id;
|
@@ -454,7 +445,7 @@ var InlineEditCell = function InlineEditCell(_ref) {
|
|
454
445
|
"data-inline-type": type,
|
455
446
|
onClick: !nonEditCell ? handleInlineCellClick : addActiveState,
|
456
447
|
onKeyDown: !nonEditCell ? handleKeyDown : null,
|
457
|
-
className: cx("".concat(blockClass, "__inline-edit--outer-cell-button"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__inline-edit--outer-cell-button--").concat(rowSize), rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--lg"), !rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--invalid"),
|
448
|
+
className: cx("".concat(blockClass, "__inline-edit--outer-cell-button"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__inline-edit--outer-cell-button--").concat(rowSize), rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--lg"), !rowSize), "".concat(blockClass, "__inline-edit--outer-cell-button--invalid"), config === null || config === void 0 || (_config$validator = config.validator) === null || _config$validator === void 0 ? void 0 : _config$validator.call(config, cellValue)), "".concat(blockClass, "__static--outer-cell"), !disabledCell))
|
458
449
|
}, !nonEditCell && !disabledCell && renderRegularCell(), (!inEditMode || disabledCell) && /*#__PURE__*/React__default.createElement(InlineEditButton, {
|
459
450
|
isActiveCell: cellId === activeCellId,
|
460
451
|
renderIcon: setRenderIcon(),
|
@@ -478,8 +469,7 @@ InlineEditCell.propTypes = {
|
|
478
469
|
onDataUpdate: PropTypes.func,
|
479
470
|
rows: PropTypes.arrayOf(PropTypes.object),
|
480
471
|
rowSize: PropTypes.string,
|
481
|
-
tableId: PropTypes.string
|
482
|
-
cellEditing: PropTypes.object
|
472
|
+
tableId: PropTypes.string
|
483
473
|
}),
|
484
474
|
nonEditCell: PropTypes.bool,
|
485
475
|
placeholder: PropTypes.string,
|
@@ -192,8 +192,6 @@ export interface DataGridState<T extends object = any> extends TableCommonProps,
|
|
192
192
|
onVirtualScroll?: (evt?: boolean) => void;
|
193
193
|
fetchMoreData?: () => void;
|
194
194
|
loadMoreThreshold?: number;
|
195
|
-
onRowClick?: (row: any, event: any) => void;
|
196
|
-
onSort?: boolean;
|
197
195
|
}
|
198
196
|
export interface ResizeHeaderProps {
|
199
197
|
resizerProps?: ResizerProps;
|
@@ -1,8 +1,2 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright IBM Corp. 2022, 2022
|
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 { useColumnOrder } from 'react-table';
|
8
1
|
export default useColumnOrder;
|
2
|
+
import { useColumnOrder } from 'react-table';
|
@@ -15,23 +15,6 @@ var blockClass = "".concat(pkg.prefix, "--datagrid");
|
|
15
15
|
var useNestedRows = function useNestedRows(hooks) {
|
16
16
|
useNestedRowExpander(hooks);
|
17
17
|
var useInstance = function useInstance(instance) {
|
18
|
-
useEffect(function () {
|
19
|
-
var rows = instance.rows;
|
20
|
-
var defaultExpandedRows = rows.filter(function (row) {
|
21
|
-
var _row$original;
|
22
|
-
return row === null || row === void 0 || (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.defaultExpanded;
|
23
|
-
});
|
24
|
-
if (defaultExpandedRows !== null && defaultExpandedRows !== void 0 && defaultExpandedRows.length) {
|
25
|
-
defaultExpandedRows.map(function (defaultExpandedRow) {
|
26
|
-
if (!defaultExpandedRow.isExpanded && !defaultExpandedRow.hasExpanded) {
|
27
|
-
var _defaultExpandedRow$t;
|
28
|
-
defaultExpandedRow === null || defaultExpandedRow === void 0 || (_defaultExpandedRow$t = defaultExpandedRow.toggleRowExpanded) === null || _defaultExpandedRow$t === void 0 || _defaultExpandedRow$t.call(defaultExpandedRow);
|
29
|
-
defaultExpandedRow.hasExpanded = true;
|
30
|
-
return;
|
31
|
-
}
|
32
|
-
});
|
33
|
-
}
|
34
|
-
}, [instance, instance.rows]);
|
35
18
|
// This useEffect will expand rows if they exist in the initialState obj
|
36
19
|
useEffect(function () {
|
37
20
|
var rows = instance.rows,
|
@@ -1,9 +1,2 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright IBM Corp. 2020, 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 { Hooks } from 'react-table';
|
8
|
-
declare const useOnRowClick: (hooks: Hooks) => void;
|
9
1
|
export default useOnRowClick;
|
2
|
+
declare function useOnRowClick(hooks: any): void;
|
@@ -9,8 +9,7 @@ import { pkg, carbon } from '../../settings.js';
|
|
9
9
|
|
10
10
|
var useOnRowClick = function useOnRowClick(hooks) {
|
11
11
|
var useInstance = function useInstance(rowInstance) {
|
12
|
-
var
|
13
|
-
onRowClick = _ref.onRowClick;
|
12
|
+
var onRowClick = rowInstance.onRowClick;
|
14
13
|
var getRowProps = function getRowProps(props, datagridState) {
|
15
14
|
var isFetching = datagridState.isFetching,
|
16
15
|
row = datagridState.row,
|
@@ -17,7 +17,7 @@ var useRowIsMouseOver = function useRowIsMouseOver(hooks) {
|
|
17
17
|
setMouseOverRowIndex = _useState2[1];
|
18
18
|
var onMouseChange = useDebounce(function (datagridState) {
|
19
19
|
var row = datagridState.row;
|
20
|
-
setMouseOverRowIndex(row
|
20
|
+
setMouseOverRowIndex(row.index);
|
21
21
|
}, 100);
|
22
22
|
var getRowProps = function getRowProps(props, datagridState) {
|
23
23
|
var onMouseOver = function onMouseOver() {
|
@@ -1,13 +1,6 @@
|
|
1
|
-
|
2
|
-
|
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 { Hooks } from 'react-table';
|
8
|
-
export declare const getNewSortOrder: (sortOrder?: boolean | string) => {
|
9
|
-
newSortDesc: boolean;
|
1
|
+
export function getNewSortOrder(sortOrder: any): {
|
2
|
+
newSortDesc: undefined;
|
10
3
|
newOrder: string;
|
11
4
|
};
|
12
|
-
declare const useSortableColumns: (hooks: Hooks) => void;
|
13
5
|
export default useSortableColumns;
|
6
|
+
declare function useSortableColumns(hooks: any): void;
|
@@ -22,7 +22,7 @@ var ordering = {
|
|
22
22
|
};
|
23
23
|
var getNewSortOrder = function getNewSortOrder(sortOrder) {
|
24
24
|
var order = {
|
25
|
-
newSortDesc:
|
25
|
+
newSortDesc: undefined,
|
26
26
|
newOrder: ordering.NONE
|
27
27
|
};
|
28
28
|
if (sortOrder === false || sortOrder === ordering.DESC) {
|
@@ -137,8 +137,7 @@ var useSortableColumns = function useSortableColumns(hooks) {
|
|
137
137
|
return (_instance$customizeCo = instance.customizeColumnsProps) !== null && _instance$customizeCo !== void 0 && _instance$customizeCo.isTearsheetOpen ? visibleColumns : _toConsumableArray(sortableColumns);
|
138
138
|
};
|
139
139
|
var sortInstanceProps = function sortInstanceProps(instance) {
|
140
|
-
var
|
141
|
-
onSort = _ref3.onSort;
|
140
|
+
var onSort = instance.onSort;
|
142
141
|
Object.assign(instance, {
|
143
142
|
manualSortBy: !!onSort,
|
144
143
|
isTableSortable: true
|
@@ -20,7 +20,7 @@ interface InterstitialScreenViewProps extends PropsWithChildren {
|
|
20
20
|
stepTitle: string;
|
21
21
|
}
|
22
22
|
/**
|
23
|
-
*
|
23
|
+
* A Novice to Pro component intended to be used as the child elements of the InterstitialScreen component.
|
24
24
|
*/
|
25
25
|
export declare let InterstitialScreenView: React.ForwardRefExoticComponent<InterstitialScreenViewProps & React.RefAttributes<HTMLDivElement>>;
|
26
26
|
export {};
|
@@ -21,7 +21,7 @@ var _excluded = ["children", "className", "stepTitle"];
|
|
21
21
|
var blockClass = "".concat(pkg.prefix, "--interstitial-screen-view");
|
22
22
|
var componentName = 'InterstitialScreenView';
|
23
23
|
/**
|
24
|
-
*
|
24
|
+
* A Novice to Pro component intended to be used as the child elements of the InterstitialScreen component.
|
25
25
|
*/
|
26
26
|
var InterstitialScreenView = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
27
27
|
var children = _ref.children,
|
@@ -11,7 +11,7 @@ type SidePanelBaseProps = {
|
|
11
11
|
/**
|
12
12
|
* Sets the action toolbar buttons
|
13
13
|
*/
|
14
|
-
actionToolbarButtons?: ButtonProps
|
14
|
+
actionToolbarButtons?: ButtonProps[];
|
15
15
|
/**
|
16
16
|
* The primary actions to be shown in the side panel. Each action is
|
17
17
|
* specified as an object that will render expressive Buttons. Any Button
|
@@ -20,7 +20,7 @@ type SidePanelBaseProps = {
|
|
20
20
|
*
|
21
21
|
* See https://react.carbondesignsystem.com/?path=/docs/components-button--default#component-api
|
22
22
|
*/
|
23
|
-
actions?: ButtonProps
|
23
|
+
actions?: ButtonProps[];
|
24
24
|
/**
|
25
25
|
* Determines if the title will animate on scroll
|
26
26
|
*/
|
@@ -323,12 +323,12 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
323
323
|
if (primeFocusEl) {
|
324
324
|
primeFocusEl === null || primeFocusEl === void 0 || primeFocusEl.focus();
|
325
325
|
}
|
326
|
-
} else
|
326
|
+
} else {
|
327
327
|
firstElement === null || firstElement === void 0 || firstElement.focus();
|
328
328
|
}
|
329
329
|
}, 0);
|
330
330
|
}
|
331
|
-
}, [animationComplete, firstElement, open, selectorPrimaryFocus
|
331
|
+
}, [animationComplete, firstElement, open, selectorPrimaryFocus]);
|
332
332
|
var primaryActionContainerClassNames = cx(["".concat(blockClass, "__actions-container"), _defineProperty({}, "".concat(blockClass, "__actions-container--condensed"), condensedActions)]);
|
333
333
|
var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-slug"), slug), "".concat(blockClass, "--condensed-actions"), condensedActions), "".concat(blockClass, "--has-overlay"), includeOverlay)]);
|
334
334
|
var renderTitle = function renderTitle() {
|
@@ -448,7 +448,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
448
448
|
placement: placement,
|
449
449
|
shouldReduceMotion: shouldReduceMotion
|
450
450
|
},
|
451
|
-
onKeyDown:
|
451
|
+
onKeyDown: keyDownListener
|
452
452
|
}), /*#__PURE__*/React__default.createElement(React__default.Fragment, null, renderHeader(), renderMain()), /*#__PURE__*/React__default.createElement(MotionActionSet, {
|
453
453
|
actions: actions !== null && actions !== void 0 ? actions : [],
|
454
454
|
className: primaryActionContainerClassNames,
|
@@ -471,7 +471,6 @@ SidePanel.propTypes = {
|
|
471
471
|
/**
|
472
472
|
* Sets the action toolbar buttons
|
473
473
|
*/
|
474
|
-
/**@ts-ignore */
|
475
474
|
actionToolbarButtons: PropTypes.arrayOf(PropTypes.shape({
|
476
475
|
label: PropTypes.string,
|
477
476
|
leading: PropTypes.bool,
|
@@ -505,7 +504,6 @@ SidePanel.propTypes = {
|
|
505
504
|
label: PropTypes.string,
|
506
505
|
loading: PropTypes.bool,
|
507
506
|
// we duplicate this Button prop to improve the DocGen here
|
508
|
-
/**@ts-ignore */
|
509
507
|
onClick: Button.propTypes.onClick
|
510
508
|
})))]),
|
511
509
|
/**
|
@@ -20,7 +20,7 @@ interface SteppedAnimatedMediaProps {
|
|
20
20
|
playStep?: number;
|
21
21
|
}
|
22
22
|
/**
|
23
|
-
* The SteppedAnimatedMedia is
|
23
|
+
* The SteppedAnimatedMedia is a Novice to Pro internal component and is not intended for general use.
|
24
24
|
*/
|
25
25
|
export declare const SteppedAnimatedMedia: React.ForwardRefExoticComponent<SteppedAnimatedMediaProps & React.RefAttributes<HTMLDivElement>>;
|
26
26
|
export {};
|
@@ -27,7 +27,7 @@ var defaults = {
|
|
27
27
|
playStep: 0
|
28
28
|
};
|
29
29
|
/**
|
30
|
-
* The SteppedAnimatedMedia is
|
30
|
+
* The SteppedAnimatedMedia is a Novice to Pro internal component and is not intended for general use.
|
31
31
|
*/
|
32
32
|
var SteppedAnimatedMedia = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
33
33
|
var className = _ref.className,
|
@@ -98,7 +98,7 @@ var defaults = {
|
|
98
98
|
GetStartedCard: false,
|
99
99
|
/* new component flags here - comment used by generate CLI */
|
100
100
|
|
101
|
-
//
|
101
|
+
// Novice to pro components not yet reviewed and released:
|
102
102
|
Coachmark: false,
|
103
103
|
CoachmarkBeacon: false,
|
104
104
|
CoachmarkButton: false,
|
@@ -118,7 +118,7 @@ var defaults = {
|
|
118
118
|
UserAvatar: false,
|
119
119
|
/* new component flags here - comment used by generate CLI */
|
120
120
|
|
121
|
-
//
|
121
|
+
// Novice to pro components not yet reviewed and released:
|
122
122
|
EmptyStateV2: false,
|
123
123
|
Guidebanner: false,
|
124
124
|
GuidebannerElement: false,
|
package/es/index.d.ts
CHANGED
@@ -4,7 +4,6 @@
|
|
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 './feature-flags';
|
8
7
|
export { pkg } from './settings';
|
9
8
|
export { usePrefix } from './global/js/hooks';
|
10
9
|
export * from './components';
|
package/es/index.js
CHANGED
@@ -47,7 +47,7 @@ export interface CarouselProps {
|
|
47
47
|
[key: string]: any;
|
48
48
|
}
|
49
49
|
/**
|
50
|
-
* The Carousel acts as a scaffold for other
|
50
|
+
* The Carousel acts as a scaffold for other Novice to Pro content.
|
51
51
|
*
|
52
52
|
* This component is not intended for general use.
|
53
53
|
*
|
@@ -38,7 +38,7 @@ interface CoachmarkDragbarProps {
|
|
38
38
|
}
|
39
39
|
/**
|
40
40
|
* DO NOT USE. This component is for the exclusive use
|
41
|
-
* of other
|
41
|
+
* of other Novice to Pro components.
|
42
42
|
*/
|
43
43
|
export declare let CoachmarkDragbar: React.ForwardRefExoticComponent<Omit<CoachmarkDragbarProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
44
44
|
export {};
|
@@ -42,7 +42,7 @@ var defaults = {
|
|
42
42
|
};
|
43
43
|
/**
|
44
44
|
* DO NOT USE. This component is for the exclusive use
|
45
|
-
* of other
|
45
|
+
* of other Novice to Pro components.
|
46
46
|
*/
|
47
47
|
exports.CoachmarkDragbar = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
48
48
|
var a11yKeyboardHandler = _ref.a11yKeyboardHandler,
|
@@ -25,7 +25,7 @@ interface CoachmarkHeaderProps {
|
|
25
25
|
}
|
26
26
|
/**
|
27
27
|
* DO NOT USE. This component is for the exclusive use
|
28
|
-
* of other
|
28
|
+
* of other Novice to Pro components.
|
29
29
|
*/
|
30
30
|
export declare let CoachmarkHeader: React.ForwardRefExoticComponent<CoachmarkHeaderProps & React.RefAttributes<HTMLElement>>;
|
31
31
|
export {};
|
@@ -37,7 +37,7 @@ var defaults = {
|
|
37
37
|
};
|
38
38
|
/**
|
39
39
|
* DO NOT USE. This component is for the exclusive use
|
40
|
-
* of other
|
40
|
+
* of other Novice to Pro components.
|
41
41
|
*/
|
42
42
|
exports.CoachmarkHeader = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
43
43
|
var _ref$closeIconDescrip = _ref.closeIconDescription,
|
@@ -40,7 +40,7 @@ interface CoachmarkOverlayProps {
|
|
40
40
|
}
|
41
41
|
/**
|
42
42
|
* DO NOT USE. This component is for the exclusive use
|
43
|
-
* of other
|
43
|
+
* of other Novice to Pro components.
|
44
44
|
*/
|
45
45
|
export declare let CoachmarkOverlay: React.ForwardRefExoticComponent<Omit<CoachmarkOverlayProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
46
46
|
export {};
|
@@ -41,7 +41,7 @@ var defaults = {
|
|
41
41
|
};
|
42
42
|
/**
|
43
43
|
* DO NOT USE. This component is for the exclusive use
|
44
|
-
* of other
|
44
|
+
* of other Novice to Pro components.
|
45
45
|
*/
|
46
46
|
exports.CoachmarkOverlay = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
47
47
|
var children = _ref.children,
|
@@ -25,7 +25,7 @@ interface CoachmarkTaglineProps {
|
|
25
25
|
}
|
26
26
|
/**
|
27
27
|
* DO NOT USE. This component is for the exclusive use
|
28
|
-
* of other
|
28
|
+
* of other Novice to Pro components.
|
29
29
|
*/
|
30
30
|
export declare let CoachmarkTagline: React.ForwardRefExoticComponent<CoachmarkTaglineProps & React.RefAttributes<HTMLDivElement>>;
|
31
31
|
export {};
|
@@ -37,7 +37,7 @@ var defaults = {
|
|
37
37
|
};
|
38
38
|
/**
|
39
39
|
* DO NOT USE. This component is for the exclusive use
|
40
|
-
* of other
|
40
|
+
* of other Novice to Pro components.
|
41
41
|
*/
|
42
42
|
exports.CoachmarkTagline = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
43
43
|
var _ref$closeIconDescrip = _ref.closeIconDescription,
|
@@ -39,7 +39,7 @@ var componentName = 'CoachmarkStackHome';
|
|
39
39
|
|
40
40
|
/**
|
41
41
|
* DO NOT USE. This component is for the exclusive use
|
42
|
-
* of other
|
42
|
+
* of other Novice to Pro components.
|
43
43
|
*/
|
44
44
|
exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
45
45
|
var _document$querySelect;
|
@@ -67,7 +67,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
67
67
|
}, 100);
|
68
68
|
}, [isOpen]);
|
69
69
|
if (!navLinkLabels) {
|
70
|
-
return pconsole["default"].warn("".concat(componentName, " is
|
70
|
+
return pconsole["default"].warn("".concat(componentName, " is a Novice to Pro internal component and is not intended for general use."));
|
71
71
|
}
|
72
72
|
var portalNode = portalTarget ? (_document$querySelect = document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : document.querySelector('body') : document.querySelector('body');
|
73
73
|
return /*#__PURE__*/reactDom.createPortal( /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
@@ -6,23 +6,17 @@ declare function ConditionBlock(props: any): import("react/jsx-runtime").JSX.Ele
|
|
6
6
|
declare namespace ConditionBlock {
|
7
7
|
namespace propTypes {
|
8
8
|
let addConditionHandler: PropTypes.Requireable<(...args: any[]) => any>;
|
9
|
-
let addConditionSubGroupHandler: PropTypes.Requireable<(...args: any[]) => any>;
|
10
9
|
let aria: PropTypes.Requireable<object>;
|
11
10
|
let condition: PropTypes.Requireable<object>;
|
12
11
|
let conditionIndex: PropTypes.Requireable<number>;
|
13
12
|
let conjunction: PropTypes.Requireable<string>;
|
14
13
|
let group: PropTypes.Requireable<object>;
|
15
|
-
let hideConditionPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
|
16
|
-
let hideConditionSubGroupPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
|
17
14
|
let isLastCondition: PropTypes.Requireable<(...args: any[]) => any>;
|
18
15
|
let isStatement: PropTypes.Requireable<boolean>;
|
19
16
|
let onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
20
17
|
let onConnectorOperatorChange: PropTypes.Requireable<(...args: any[]) => any>;
|
21
18
|
let onRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
22
19
|
let onStatementChange: PropTypes.Requireable<(...args: any[]) => any>;
|
23
|
-
let showConditionPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
|
24
|
-
let showConditionSubGroupPreviewHandler: PropTypes.Requireable<(...args: any[]) => any>;
|
25
|
-
let state: PropTypes.Requireable<object>;
|
26
20
|
}
|
27
21
|
}
|
28
22
|
import PropTypes from 'prop-types';
|