@carbon/ibm-products 2.43.2-canary.244 → 2.43.2-canary.247

Sign up to get free protection for your applications and to get access to all the features.
@@ -169,9 +169,6 @@ var EditInPlace = /*#__PURE__*/forwardRef(function (_ref, ref) {
169
169
  "aria-label": labelText,
170
170
  "aria-invalid": invalid
171
171
  }), /*#__PURE__*/React__default.createElement("div", {
172
- className: "".concat(blockClass, "__ellipsis"),
173
- "aria-hidden": !focused
174
- }, "\u2026"), /*#__PURE__*/React__default.createElement("div", {
175
172
  className: "".concat(blockClass, "__toolbar")
176
173
  }, invalid && /*#__PURE__*/React__default.createElement(WarningFilled, {
177
174
  size: 16,
@@ -168,8 +168,11 @@ var ExportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
168
168
  hidePasswordLabel: hidePasswordLabel,
169
169
  tooltipPosition: "left"
170
170
  })))), /*#__PURE__*/React__default.createElement("div", {
171
+ "aria-live": "polite",
171
172
  className: "".concat(blockClass, "__messaging")
172
173
  }, loading && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, _Loading || (_Loading = /*#__PURE__*/React__default.createElement(Loading, {
174
+ "aria-live": "off",
175
+ description: "",
173
176
  small: true,
174
177
  withOverlay: false
175
178
  })), /*#__PURE__*/React__default.createElement("p", null, loadingMessage)), successful && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(CheckmarkFilled, {
@@ -49,9 +49,20 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
49
49
  getRowId = datagridState.getRowId,
50
50
  batchActionMenuButtonLabel = datagridState.batchActionMenuButtonLabel,
51
51
  translateWithIdBatchActions = datagridState.translateWithIdBatchActions;
52
+ var _useState7 = React.useState(rows.length),
53
+ _useState8 = _rollupPluginBabelHelpers.slicedToArray(_useState7, 2),
54
+ availableRowsCount = _useState8[0],
55
+ setAvailableRowsCount = _useState8[1];
52
56
  var batchActionMenuButtonLabelText = batchActionMenuButtonLabel !== null && batchActionMenuButtonLabel !== void 0 ? batchActionMenuButtonLabel : 'More';
53
57
  var selectedKeys = Object.keys(selectedRowIds || {});
54
58
  var totalSelected = selectedKeys.length;
59
+ React.useEffect(function () {
60
+ var _rows$find, _rows$find$getRowProp;
61
+ var countDisabledRows = ((_rows$find = rows.find(function (row) {
62
+ return row.getRowProps;
63
+ })) === null || _rows$find === void 0 || (_rows$find$getRowProp = _rows$find.getRowProps) === null || _rows$find$getRowProp === void 0 || (_rows$find$getRowProp = _rows$find$getRowProp.call(_rows$find)) === null || _rows$find$getRowProp === void 0 || (_rows$find$getRowProp = _rows$find$getRowProp.nonselectablerows) === null || _rows$find$getRowProp === void 0 ? void 0 : _rows$find$getRowProp.length) || 0;
64
+ rows && setAvailableRowsCount(rows.length - countDisabledRows);
65
+ }, [rows]);
55
66
 
56
67
  // Get initial width of batch actions container,
57
68
  // used to measure when all items are put inside
@@ -154,7 +165,7 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
154
165
  totalSelected: totalSelected,
155
166
  onCancel: onCancelHandler,
156
167
  onSelectAll: onSelectAllHandler,
157
- totalCount: rows && rows.length,
168
+ totalCount: availableRowsCount,
158
169
  translateWithId: translateWithIdBatchActions
159
170
  }, !displayAllInMenu && toolbarBatchActions && (toolbarBatchActions === null || toolbarBatchActions === void 0 ? void 0 : toolbarBatchActions.map(function (batchAction, index) {
160
171
  if (!toolbarBatchActionsDisplayMin && index < 2 && toolbarBatchActions.length > 3 || index < 3 && toolbarBatchActions.length <= 3 || toolbarBatchActionsDisplayMin !== undefined && index < toolbarBatchActionsDisplayMin) {
@@ -11,6 +11,7 @@ import { RadioButtonProps } from '@carbon/react/lib/components/RadioButton/Radio
11
11
  import { RadioButtonGroupProps } from '@carbon/react/lib/components/RadioButtonGroup/RadioButtonGroup';
12
12
  import { CheckboxProps } from '@carbon/react/lib/components/Checkbox';
13
13
  import { NumberInputProps } from '@carbon/react/lib/components/NumberInput/NumberInput';
14
+ import { TableRowProps } from 'react-table';
14
15
  import React, { CSSProperties, ComponentType, FunctionComponent, JSXElementConstructor, MutableRefObject, ReactNode, TouchEventHandler } from 'react';
15
16
  import { Cell, Column, ColumnInstance, FilterValue, Filters, HeaderGroup, Meta, Row, TableCommonProps, TableDispatch, TableInstance, TableState, TableToggleAllRowsSelectedProps, UseExpandedRowProps, UseFiltersInstanceProps, UsePaginationInstanceProps, UseResizeColumnsColumnProps, UseResizeColumnsOptions, UseResizeColumnsState, UseRowSelectInstanceProps, UseRowSelectRowProps, UseRowSelectState, UseSortByColumnProps, UseSortByOptions, UseTableHooks } from 'react-table';
16
17
  import { CarbonIconType } from '@carbon/react/icons';
@@ -276,4 +277,7 @@ export interface PropGetterMeta {
276
277
  instance?: DataGridTableInstance;
277
278
  row?: Partial<Row<any> & DatagridRow<any>>;
278
279
  }
280
+ export interface DatagridRowProps extends TableRowProps {
281
+ nonselectablerows: Array<number>;
282
+ }
279
283
  export {};
@@ -178,9 +178,6 @@ exports.EditInPlace = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
178
178
  "aria-label": labelText,
179
179
  "aria-invalid": invalid
180
180
  }), /*#__PURE__*/React__default["default"].createElement("div", {
181
- className: "".concat(blockClass, "__ellipsis"),
182
- "aria-hidden": !focused
183
- }, "\u2026"), /*#__PURE__*/React__default["default"].createElement("div", {
184
181
  className: "".concat(blockClass, "__toolbar")
185
182
  }, invalid && /*#__PURE__*/React__default["default"].createElement(icons.WarningFilled, {
186
183
  size: 16,
@@ -177,8 +177,11 @@ exports.ExportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
177
177
  hidePasswordLabel: hidePasswordLabel,
178
178
  tooltipPosition: "left"
179
179
  })))), /*#__PURE__*/React__default["default"].createElement("div", {
180
+ "aria-live": "polite",
180
181
  className: "".concat(blockClass, "__messaging")
181
182
  }, loading && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, _Loading || (_Loading = /*#__PURE__*/React__default["default"].createElement(react.Loading, {
183
+ "aria-live": "off",
184
+ description: "",
182
185
  small: true,
183
186
  withOverlay: false
184
187
  })), /*#__PURE__*/React__default["default"].createElement("p", null, loadingMessage)), successful && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(icons.CheckmarkFilled, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.43.2-canary.244+ef4bfa87d",
4
+ "version": "2.43.2-canary.247+0b40cce84",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -96,7 +96,7 @@
96
96
  "dependencies": {
97
97
  "@babel/runtime": "^7.23.9",
98
98
  "@carbon/feature-flags": "^0.22.0",
99
- "@carbon/ibm-products-styles": "^2.46.0-rc.0",
99
+ "@carbon/ibm-products-styles": "^2.39.1-canary.257+0b40cce84",
100
100
  "@carbon/telemetry": "^0.1.0",
101
101
  "@dnd-kit/core": "^6.0.8",
102
102
  "@dnd-kit/modifiers": "^7.0.0",
@@ -120,5 +120,5 @@
120
120
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
121
121
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
122
122
  },
123
- "gitHead": "ef4bfa87d454eba9ce8b4cb83a464e95d66a189e"
123
+ "gitHead": "0b40cce8451abd0e509a6b16490fff862496b414"
124
124
  }
@@ -75,17 +75,6 @@ $carbon-input: #{$carbon-prefix}--text-input;
75
75
  line-height: inherit;
76
76
  }
77
77
 
78
- .#{$block-class}__ellipsis {
79
- position: relative;
80
- margin-left: calc(-1 * $spacing-05);
81
- opacity: 0;
82
- }
83
-
84
- .#{$block-class}--overflows:not(.#{$block-class}--focused)
85
- .#{$block-class}__ellipsis {
86
- opacity: 1;
87
- }
88
-
89
78
  .#{$block-class}__text-input-label {
90
79
  display: none;
91
80
  }