@innovaccer/design-system 2.13.5 → 2.13.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,10 +44,6 @@
44
44
  border-top: var(--spacing-xs) solid var(--secondary-light);
45
45
  }
46
46
 
47
- .Dropdown-errorWrapper {
48
- min-height: var(--spacing-7);
49
- }
50
-
51
47
  .Dropdown-buttonWrapper {
52
48
  display: flex;
53
49
  justify-content: flex-end;
@@ -222,6 +222,11 @@
222
222
  border-right: var(--border);
223
223
  } */
224
224
 
225
+ .Grid-row--disabled {
226
+ opacity: 0.4;
227
+ pointer-events: none;
228
+ }
229
+
225
230
  .Grid-cell--head.Grid-cell--selected {
226
231
  background: var(--primary-light);
227
232
  }
@@ -7,10 +7,16 @@
7
7
  align-items: center;
8
8
  }
9
9
 
10
- .InlineMessage-icon {
11
- margin-right: var(--spacing);
10
+ .InlineMessage-icon--regular {
12
11
  padding-top: var(--spacing-s);
13
12
  padding-bottom: var(--spacing-s);
13
+ margin-right: var(--spacing);
14
+ }
15
+
16
+ .InlineMessage-icon--small {
17
+ padding-top: var(--spacing-xs);
18
+ padding-bottom: var(--spacing-xs);
19
+ margin-right: var(--spacing-m);
14
20
  }
15
21
 
16
22
  .InlineMessage-text--warning,
@@ -447,7 +447,7 @@
447
447
  "affectsGlobalScope": false
448
448
  },
449
449
  "../../core/components/atoms/dropdown/DropdownList.tsx": {
450
- "version": "fcb8edd28df957e410fba966399de4a2bf9c72696871fee8583f8839bb4ecdbd",
450
+ "version": "c823990b91a3249066e44f760a37165fd854a1d8fd3214bf6175e3b40d60f500",
451
451
  "signature": "234919455eaca2c78423cb83922ab96afb3ecec5a0a6ddbf933118873cc88a3f",
452
452
  "affectsGlobalScope": false
453
453
  },
@@ -652,8 +652,8 @@
652
652
  "affectsGlobalScope": false
653
653
  },
654
654
  "../../core/components/atoms/metricInput/MetricInput.tsx": {
655
- "version": "02c545353a919694eae8d1695713bc0c5e646c342cd82d1fc84dc5a6e7006c18",
656
- "signature": "19fb9e48c5f886fabd568daf4efa0398e9704ed6e42eae12296a6c26ded4dcee",
655
+ "version": "a80716de3bf8e67aa6e75ca3c7a4480e42e4a9e6e10372475052687d258b71e1",
656
+ "signature": "d23c2fbe0827d45d447dc70aa5af9e43af8b4314b13cb16a7c48b666d10c256c",
657
657
  "affectsGlobalScope": false
658
658
  },
659
659
  "../../core/components/atoms/metricInput/index.tsx": {
@@ -1052,7 +1052,7 @@
1052
1052
  "affectsGlobalScope": false
1053
1053
  },
1054
1054
  "../../core/components/molecules/modal/Modal.tsx": {
1055
- "version": "cf3f3931924789cd628a8eb19f1a3b9c47af89a7b274f3c1cbecd9bfe2656ae1",
1055
+ "version": "0cc6aa475cf771c970c20a04c7ceb87d2dd260a3a1db6cb1e4e1929635e8e25a",
1056
1056
  "signature": "c3d5700b02359fe54053b47b58a29ba3aefe8271a9e372907edb04a61ebe9c2f",
1057
1057
  "affectsGlobalScope": false
1058
1058
  },
@@ -1237,7 +1237,7 @@
1237
1237
  "affectsGlobalScope": false
1238
1238
  },
1239
1239
  "../../core/components/molecules/tabs/Tabs.tsx": {
1240
- "version": "d3635f98db8bbf0ab7a2a43276352babcc2cd3709912aecc4a0f0d43679b3285",
1240
+ "version": "11493542e4ee690e96733a144ed715dee295c2d1c83d6955ec9f86a938d6900b",
1241
1241
  "signature": "c351f435454a458c4fac9f59838e9b5903c8e2dfadc4c467b82256022f61eb37",
1242
1242
  "affectsGlobalScope": false
1243
1243
  },
@@ -1332,13 +1332,13 @@
1332
1332
  "affectsGlobalScope": false
1333
1333
  },
1334
1334
  "../../core/components/organisms/grid/rowUtility.tsx": {
1335
- "version": "4ee1df101aea7055357bb6bfa66719c08be259a7804215e3ab4503f529a4f197",
1336
- "signature": "c0be0026ce2c76d414c1161d0dd8874e46c32031da763536b7b3894886a5d461",
1335
+ "version": "628b7968b8ceb665b74e97fbc202248ddb90ea3824246a60a66f16be8e797f2d",
1336
+ "signature": "63a5a7611deda70302cceb0e40369573bd105247e5dd5fc5b3bd91e6f70b95f3",
1337
1337
  "affectsGlobalScope": false
1338
1338
  },
1339
1339
  "../../core/components/organisms/grid/utility.tsx": {
1340
- "version": "e3426711a54a58060410d820583685cf31ecd35bbc53bdfac0f631df5a004d8c",
1341
- "signature": "bc6f1f0ef36acf5b224b10e928f1402bd8b6e321657b2b4e925d9c2ac69ef225",
1340
+ "version": "21c97e62504eed458a5d78d6400407632f4c11138562a3c55b53a51a5c113e59",
1341
+ "signature": "8b1aa3bcb094b0f75fd2c6c9790e6d2de8f0a414c3859b45a27bd7135dd94be1",
1342
1342
  "affectsGlobalScope": false
1343
1343
  },
1344
1344
  "../../core/components/organisms/grid/defaultProps.tsx": {
@@ -1367,7 +1367,7 @@
1367
1367
  "affectsGlobalScope": false
1368
1368
  },
1369
1369
  "../../core/components/organisms/grid/GridRow.tsx": {
1370
- "version": "93c174da4a48bd86a27d9028763fd92bb40374958baacb759ede3cd2aef26cd5",
1370
+ "version": "12027e830bf211e967cf1f8cb4226bfd45a0d28abc2d3c5bed6c867ac1d34585",
1371
1371
  "signature": "e896c56db3e619dd4457355c752791be2e3f267ac73a43142d2481b1cea0a79d",
1372
1372
  "affectsGlobalScope": false
1373
1373
  },
@@ -1377,8 +1377,8 @@
1377
1377
  "affectsGlobalScope": false
1378
1378
  },
1379
1379
  "../../core/components/organisms/grid/Grid.tsx": {
1380
- "version": "3450273b3e99596d66def314ac22c3e69caf431d93740f166e1ea2e3a2e13780",
1381
- "signature": "e7156044d0b220beca6473c364973ddba95bd37dd3e17297efc9a87596e76b95",
1380
+ "version": "6269cf40c8e9d1658e649ddec58df0fa99b40b1c3cca6d11c41f550a9f81ca61",
1381
+ "signature": "d4c931213391f40cdc4e0a9af0e5f8ef76d328f5d84a27187aa95b4490ecec47",
1382
1382
  "affectsGlobalScope": false
1383
1383
  },
1384
1384
  "../../core/components/organisms/grid/index.tsx": {
@@ -1397,13 +1397,13 @@
1397
1397
  "affectsGlobalScope": false
1398
1398
  },
1399
1399
  "../../core/components/organisms/table/Header.tsx": {
1400
- "version": "8653214dbaa8b91b92a11927b329b92dcb7b4162f40e01c2198e5c744579aa5d",
1401
- "signature": "d917ebfa4e2718ff39cc4d5429b5950ba79c998312bb03dff1a1d860ccbe0067",
1400
+ "version": "155ab486d3fd0454dabf488e0490295052ba2bf7d6d04275a9467852721a0551",
1401
+ "signature": "a06c0e95559ca2c338477f2047f4d88168f3821e1ada9accc69da4a2f33af522",
1402
1402
  "affectsGlobalScope": false
1403
1403
  },
1404
1404
  "../../core/components/organisms/table/Table.tsx": {
1405
- "version": "f6c60e8a0cd7014edf8bc228b16f4067c122fc6dcd6e7d5bcbab3701670ce798",
1406
- "signature": "c2ef0a0fb360d95df090c7e44a4e1cd81120a7e0de97a4b2b3bc7e82352217ff",
1405
+ "version": "7954a1611344da7ab86fcac205c5c3d74ca4d2dfad0673b8875ee844a099592c",
1406
+ "signature": "cea82314047ca0d805c64b1e8779f9ff3afba79249111e62f9a49f0c6f656e88",
1407
1407
  "affectsGlobalScope": false
1408
1408
  },
1409
1409
  "../../core/components/organisms/table/index.tsx": {
@@ -1477,7 +1477,7 @@
1477
1477
  "affectsGlobalScope": false
1478
1478
  },
1479
1479
  "../../core/components/organisms/inlineMessage/InlineMessage.tsx": {
1480
- "version": "5451b4819d1a1eacadba34465f99f025726dbc76cff1466f4a3a01002a404ce3",
1480
+ "version": "b528820836b9603ed52eff27badad6595efbaf3e055521234c0bdf06f824a071",
1481
1481
  "signature": "bc5caa08869460d8ca36e9cb9aac7fafa64aa786f55f613c4cc6483f3959246a",
1482
1482
  "affectsGlobalScope": false
1483
1483
  },
@@ -2742,7 +2742,7 @@
2742
2742
  "affectsGlobalScope": false
2743
2743
  },
2744
2744
  "../../core/utils/docPage/sandbox.tsx": {
2745
- "version": "ba8a4a387f0dd03989668e771a499afdf1a771c0bfaadc84804405354fa6e686",
2745
+ "version": "ed47c74362e4b3726d6d63f7f7475b50f14f345c1dc5f20fb660a9ec3442d09c",
2746
2746
  "signature": "ec75976cfd242c0840083d2bbb758c4799f37de71948af17eef2327c93663ec3",
2747
2747
  "affectsGlobalScope": false
2748
2748
  },
@@ -18,6 +18,7 @@ export interface MetricInputProps extends BaseProps, BaseHtmlProps<HTMLInputElem
18
18
  min?: number;
19
19
  max?: number;
20
20
  error?: boolean;
21
+ showActionButton?: boolean;
21
22
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
22
23
  onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;
23
24
  onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
@@ -65,6 +65,7 @@ export declare type ColumnSchema = {
65
65
  };
66
66
  export declare type RowData = Record<string, any> & {
67
67
  _selected?: boolean;
68
+ disabled?: boolean;
68
69
  };
69
70
  export declare type GridSize = 'comfortable' | 'standard' | 'compressed' | 'tight';
70
71
  export declare type GridType = 'resource' | 'data';
@@ -1,8 +1,9 @@
1
1
  import { RowData, Data, ColumnSchema, Schema, FetchDataOptions } from "./Grid";
2
- export declare const updateBatchData: (data: Data, rowIndexes: number[], dataUpdate: Partial<RowData>) => Data;
2
+ export declare const updateBatchData: (data: Data, rowIndexes: number[], dataUpdate: Partial<RowData>, selectDisabledRow?: boolean | undefined) => Data;
3
3
  export declare function translateData(schema: ColumnSchema, data: RowData): {
4
4
  [x: string]: any;
5
5
  _selected?: boolean | undefined;
6
+ disabled?: boolean | undefined;
6
7
  };
7
8
  export declare const filterData: (schema: Schema | undefined, data: Data | undefined, filterList: FetchDataOptions['filterList']) => Data;
8
9
  export declare const sortData: (schema: Schema | undefined, data: Data | undefined, sortingList: FetchDataOptions['sortingList']) => Data;
@@ -4,7 +4,7 @@ export * from "./columnUtility";
4
4
  export * from "./rowUtility";
5
5
  export declare const moveToIndex: (arr: any[], from: number, to: number) => any[];
6
6
  export declare const getTotalPages: (totalRecords: number, pageSize: number) => number;
7
- export declare const getSelectAll: (data: Data) => {
7
+ export declare const getSelectAll: (tableData: Data, selectDisabledRow?: boolean | undefined) => {
8
8
  indeterminate: boolean;
9
9
  checked: boolean;
10
10
  };
@@ -6,6 +6,7 @@ export interface ExternalHeaderProps {
6
6
  searchPlaceholder?: string;
7
7
  dynamicColumn?: boolean;
8
8
  allowSelectAll?: boolean;
9
+ customSelectionLabel?: string;
9
10
  }
10
11
  export declare type updateSearchTermFunction = (newSearchTerm: string) => void;
11
12
  export interface HeaderProps extends ExternalHeaderProps {
@@ -45,6 +45,7 @@ interface SharedTableProps extends BaseProps {
45
45
  headCellTooltip?: GridProps['headCellTooltip'];
46
46
  separator?: GridProps['headCellTooltip'];
47
47
  filterPosition: FilterPosition;
48
+ selectDisabledRow?: boolean;
48
49
  }
49
50
  export declare type SyncTableProps = SharedTableProps & TableSyncProps;
50
51
  export declare type AsyncTableProps = SharedTableProps & AsyncProps;
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * Generated on: 1668603336127
3
+ * Generated on: 1670480135031
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.13.5
5
+ * Version: v2.13.6
6
6
  * License: MIT
7
7
  * Docs: https://innovaccer.github.io/design-system
8
8
  */
@@ -2119,6 +2119,17 @@ var DropdownList = function DropdownList(props) {
2119
2119
  cursor = _React$useState4[0],
2120
2120
  setCursor = _React$useState4[1];
2121
2121
 
2122
+ var _React$useState5 = React.useState(),
2123
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
2124
+ minHeight = _React$useState6[0],
2125
+ setMinHeight = _React$useState6[1];
2126
+
2127
+ var getMinHeight = function getMinHeight() {
2128
+ var dropdownWrapper = document.querySelector('.Dropdown-wrapper');
2129
+ var minHeight = dropdownWrapper === null || dropdownWrapper === void 0 ? void 0 : dropdownWrapper.offsetHeight;
2130
+ minHeight && setMinHeight(minHeight);
2131
+ };
2132
+
2122
2133
  React.useEffect(function () {
2123
2134
  var timer;
2124
2135
 
@@ -2135,6 +2146,7 @@ var DropdownList = function DropdownList(props) {
2135
2146
  minWidth: minWidth ? minWidth : popperMinWidth,
2136
2147
  maxWidth: maxWidth ? maxWidth : '100%'
2137
2148
  };
2149
+ requestAnimationFrame(getMinHeight);
2138
2150
  setPopoverStyle(popperWrapperStyle); // scrolls to current time
2139
2151
 
2140
2152
  if (scrollIndex && tempSelected.length === 0) {
@@ -2179,7 +2191,14 @@ var DropdownList = function DropdownList(props) {
2179
2191
  var dropdownStyle = {
2180
2192
  maxHeight: maxHeight,
2181
2193
  overflowY: 'auto',
2182
- overflowX: 'hidden'
2194
+ overflowX: 'hidden',
2195
+ minHeight: minHeight
2196
+ };
2197
+ var loaderStyle = {
2198
+ maxHeight: minHeight ? minHeight : maxHeight,
2199
+ overflowY: 'auto',
2200
+ overflowX: 'hidden',
2201
+ minHeight: minHeight
2183
2202
  };
2184
2203
 
2185
2204
  var getDropdownClass = function getDropdownClass(index, isGroup) {
@@ -2403,7 +2422,7 @@ var DropdownList = function DropdownList(props) {
2403
2422
  className: 'Dropdown-loading'
2404
2423
  }, /*#__PURE__*/React.createElement("div", {
2405
2424
  className: "Dropdown-wrapper",
2406
- style: dropdownStyle
2425
+ style: loaderStyle
2407
2426
  }, renderLoading(loadersCount)));
2408
2427
  }
2409
2428
 
@@ -2411,7 +2430,8 @@ var DropdownList = function DropdownList(props) {
2411
2430
  var _props$noResultMessag = props.noResultMessage,
2412
2431
  noResultMessage = _props$noResultMessag === void 0 ? 'No result found' : _props$noResultMessag;
2413
2432
  return /*#__PURE__*/React.createElement("div", {
2414
- className: 'Dropdown-errorWrapper',
2433
+ className: "Dropdown-wrapper",
2434
+ style: dropdownStyle,
2415
2435
  "data-test": "DesignSystem-Dropdown--errorWrapper"
2416
2436
  }, /*#__PURE__*/React.createElement("div", {
2417
2437
  className: 'Option'
@@ -6087,7 +6107,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6087
6107
  });
6088
6108
  Input.displayName = 'Input';
6089
6109
 
6090
- var _excluded$n = ["size", "defaultValue", "name", "placeholder", "icon", "prefix", "suffix", "error", "min", "max", "onChange", "onClick", "onBlur", "onFocus", "className", "autoFocus", "disabled", "readOnly", "value"];
6110
+ var _excluded$n = ["size", "defaultValue", "name", "placeholder", "icon", "prefix", "suffix", "error", "min", "max", "onChange", "onClick", "onBlur", "onFocus", "className", "autoFocus", "disabled", "readOnly", "value", "showActionButton"];
6091
6111
  var sizeMapping = {
6092
6112
  regular: 16,
6093
6113
  large: 20
@@ -6134,6 +6154,8 @@ var MetricInput = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6134
6154
  disabled = props.disabled,
6135
6155
  readOnly = props.readOnly,
6136
6156
  valueProp = props.value,
6157
+ _props$showActionButt = props.showActionButton,
6158
+ showActionButton = _props$showActionButt === void 0 ? true : _props$showActionButt,
6137
6159
  rest = _objectWithoutProperties(props, _excluded$n);
6138
6160
 
6139
6161
  var ref = React.useRef(null);
@@ -6161,7 +6183,7 @@ var MetricInput = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6161
6183
  }, [valueProp]);
6162
6184
  var baseProps = extractBaseProps(props);
6163
6185
  var classes = classnames((_classNames = {}, _defineProperty$1(_classNames, 'MetricInput', true), _defineProperty$1(_classNames, "MetricInput--".concat(size), size), _defineProperty$1(_classNames, 'MetricInput--disabled', disabled || readOnly), _defineProperty$1(_classNames, 'MetricInput--error', error), _classNames), className);
6164
- var inputClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'MetricInput-input', true), _defineProperty$1(_classNames2, "MetricInput-input--".concat(size), size), _classNames2));
6186
+ var inputClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'MetricInput-input', true), _defineProperty$1(_classNames2, "MetricInput-input--".concat(size), size), _defineProperty$1(_classNames2, "mr-4", !suffix && !showActionButton && size === 'regular'), _defineProperty$1(_classNames2, "mr-6", !suffix && !showActionButton && size === 'large'), _classNames2));
6165
6187
  var iconClass = classnames((_classNames3 = {}, _defineProperty$1(_classNames3, 'MetricInput-icon', true), _defineProperty$1(_classNames3, "MetricInput-icon--".concat(size), size), _classNames3));
6166
6188
  var actionButton = classnames((_classNames4 = {}, _defineProperty$1(_classNames4, 'p-0', true), _defineProperty$1(_classNames4, "MetricInput-arrowIcon--".concat(size), size), _defineProperty$1(_classNames4, 'ml-4', size === 'regular'), _defineProperty$1(_classNames4, 'ml-6', size === 'large'), _classNames4));
6167
6189
 
@@ -6212,6 +6234,12 @@ var MetricInput = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6212
6234
  }
6213
6235
  };
6214
6236
 
6237
+ var handleKeyDown = function handleKeyDown(e) {
6238
+ if (showActionButton) {
6239
+ onKeyDown(e);
6240
+ } else e.preventDefault();
6241
+ };
6242
+
6215
6243
  var actionButtonSize = size === 'large' ? 'regular' : 'tiny';
6216
6244
  return /*#__PURE__*/React.createElement("div", {
6217
6245
  "data-test": "DesignSystem-MetricInputWrapper",
@@ -6245,13 +6273,13 @@ var MetricInput = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
6245
6273
  onBlur: onBlur,
6246
6274
  onClick: onClick,
6247
6275
  onFocus: onFocus,
6248
- onKeyDown: onKeyDown
6276
+ onKeyDown: handleKeyDown
6249
6277
  })), suffix && /*#__PURE__*/React.createElement(Text, {
6250
6278
  "data-test": "DesignSystem-MetricInput--suffix",
6251
6279
  className: size === 'regular' ? 'ml-4' : 'ml-5',
6252
6280
  size: size,
6253
6281
  appearance: "subtle"
6254
- }, suffix), /*#__PURE__*/React.createElement("div", {
6282
+ }, suffix), showActionButton && /*#__PURE__*/React.createElement("div", {
6255
6283
  className: "MetricInput-arrowIcons"
6256
6284
  }, /*#__PURE__*/React.createElement(Button, {
6257
6285
  icon: "keyboard_arrow_up",
@@ -14395,7 +14423,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
14395
14423
  onClick: function onClick(event) {
14396
14424
  if (onClose) onClose(event, 'IconClick');
14397
14425
  }
14398
- })))), children && /*#__PURE__*/React.createElement(React.Fragment, null, headerOptions || footerOptions || footer || header ? /*#__PURE__*/React.createElement(OverlayBody, {
14426
+ })))), open && children && /*#__PURE__*/React.createElement(React.Fragment, null, headerOptions || footerOptions || footer || header ? /*#__PURE__*/React.createElement(OverlayBody, {
14399
14427
  className: bodyClass
14400
14428
  }, this.props.children) : children), (!!footer || !!footerOptions) && /*#__PURE__*/React.createElement(OverlayFooter, _extends$2({
14401
14429
  "data-test": "DesignSystem-Modal--footer"
@@ -16723,7 +16751,7 @@ var filterInlineComponent = function filterInlineComponent(children) {
16723
16751
  };
16724
16752
 
16725
16753
  var Tabs = function Tabs(props) {
16726
- var _classNames2, _classNames4, _props, _props2;
16754
+ var _classNames2, _classNames4;
16727
16755
 
16728
16756
  var children = props.children,
16729
16757
  withSeparator = props.withSeparator,
@@ -16754,19 +16782,24 @@ var Tabs = function Tabs(props) {
16754
16782
  return classnames((_classNames3 = {}, _defineProperty$1(_classNames3, 'Tab-pills', true), _defineProperty$1(_classNames3, 'Tab-pills--disabled', disabled), _classNames3));
16755
16783
  };
16756
16784
 
16757
- var activeTab;
16758
- var activeTabClass;
16785
+ var getActiveTabClass = function getActiveTabClass() {
16786
+ var activeTab;
16787
+ var activeTabClass;
16759
16788
 
16760
- if ('props' in tabs[activeIndex]) {
16761
- var _activeTab$props;
16789
+ if (tabs && tabs.length && tabs[activeIndex] && 'props' in tabs[activeIndex]) {
16790
+ var _activeTab$props;
16762
16791
 
16763
- activeTab = tabs[activeIndex];
16764
- activeTabClass = (_activeTab$props = activeTab.props) === null || _activeTab$props === void 0 ? void 0 : _activeTab$props.className;
16765
- } else {
16766
- activeTab = tabs[activeIndex];
16767
- activeTabClass = activeTab.className;
16768
- }
16792
+ activeTab = tabs[activeIndex];
16793
+ activeTabClass = (_activeTab$props = activeTab.props) === null || _activeTab$props === void 0 ? void 0 : _activeTab$props.className;
16794
+ } else {
16795
+ activeTab = tabs[activeIndex];
16796
+ activeTabClass = activeTab && activeTab.className;
16797
+ }
16798
+
16799
+ return activeTabClass;
16800
+ };
16769
16801
 
16802
+ var activeTabClass = getActiveTabClass();
16770
16803
  var tabContentClass = classnames((_classNames4 = {}, _defineProperty$1(_classNames4, 'TabsWrapper-content', true), _defineProperty$1(_classNames4, "".concat(activeTabClass), activeTabClass), _classNames4));
16771
16804
 
16772
16805
  var tabClickHandler = function tabClickHandler(tabIndex, isKeyboard) {
@@ -16912,19 +16945,10 @@ var Tabs = function Tabs(props) {
16912
16945
  className: wrapperClass
16913
16946
  }), /*#__PURE__*/React.createElement("div", {
16914
16947
  className: headerClass
16915
- }, renderTabs, inlineComponent), children && (_props = tabs[activeIndex].props) !== null && _props !== void 0 && _props.disabled ? /*#__PURE__*/React.createElement("div", {
16916
- className: "h-100 pb-5",
16917
- style: {
16918
- backgroundColor: 'var(--secondary-lightest)'
16919
- }
16920
- }, /*#__PURE__*/React.createElement(EmptyState, {
16921
- title: "There's a problem loading this page.",
16922
- description: "Tab is disabled and you are not authorized to see the content of this tab",
16923
- size: "large"
16924
- })) : children && !((_props2 = tabs[activeIndex].props) !== null && _props2 !== void 0 && _props2.disabled) ? /*#__PURE__*/React.createElement("div", {
16948
+ }, renderTabs, inlineComponent), children && /*#__PURE__*/React.createElement("div", {
16925
16949
  className: tabContentClass,
16926
16950
  "data-test": "DesignSystem-Tabs--Content"
16927
- }, tabs[activeIndex]) : null);
16951
+ }, tabs[activeIndex]));
16928
16952
  };
16929
16953
  Tabs.displayName = 'Tabs';
16930
16954
  Tabs.defaultProps = {
@@ -18230,7 +18254,7 @@ function getCellSize(cellType) {
18230
18254
  return sizes[cellType];
18231
18255
  }
18232
18256
 
18233
- var updateBatchData = function updateBatchData(data, rowIndexes, dataUpdate) {
18257
+ var updateBatchData = function updateBatchData(data, rowIndexes, dataUpdate, selectDisabledRow) {
18234
18258
  var updatedData = _toConsumableArray(data);
18235
18259
 
18236
18260
  var _iterator = _createForOfIteratorHelper(rowIndexes),
@@ -18239,7 +18263,10 @@ var updateBatchData = function updateBatchData(data, rowIndexes, dataUpdate) {
18239
18263
  try {
18240
18264
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
18241
18265
  var rowIndex = _step.value;
18242
- updatedData[rowIndex] = _objectSpread2(_objectSpread2({}, updatedData[rowIndex]), dataUpdate);
18266
+
18267
+ if (data[rowIndex].disabled && selectDisabledRow || !data[rowIndex].disabled) {
18268
+ updatedData[rowIndex] = _objectSpread2(_objectSpread2({}, updatedData[rowIndex]), dataUpdate);
18269
+ }
18243
18270
  }
18244
18271
  } catch (err) {
18245
18272
  _iterator.e(err);
@@ -18341,7 +18368,11 @@ var moveToIndex = function moveToIndex(arr, from, to) {
18341
18368
  var getTotalPages = function getTotalPages(totalRecords, pageSize) {
18342
18369
  return Math.ceil(totalRecords / pageSize);
18343
18370
  };
18344
- var getSelectAll = function getSelectAll(data) {
18371
+ var getSelectAll = function getSelectAll(tableData, selectDisabledRow) {
18372
+ var data = tableData.filter(function (d) {
18373
+ return d.disabled && selectDisabledRow || !d.disabled;
18374
+ });
18375
+
18345
18376
  if (data.length) {
18346
18377
  var anyUnSelected = data.some(function (d) {
18347
18378
  return !d._selected;
@@ -18884,7 +18915,8 @@ var GridRow = function GridRow(props) {
18884
18915
  setExpanded = _React$useState2[1];
18885
18916
 
18886
18917
  var rowClasses = classnames('Grid-row', 'Grid-row--body', {
18887
- 'Grid-row--selected': data._selected
18918
+ 'Grid-row--selected': data._selected,
18919
+ 'Grid-row--disabled': data.disabled
18888
18920
  });
18889
18921
  var onClickHandler = React.useCallback(function () {
18890
18922
  if (type === 'resource' && !loading) {
@@ -18961,6 +18993,7 @@ var GridRow = function GridRow(props) {
18961
18993
  return /*#__PURE__*/React.createElement("div", {
18962
18994
  className: wrapperClasses
18963
18995
  }, /*#__PURE__*/React.createElement("div", {
18996
+ "data-test": "DesignSystem-Grid-row",
18964
18997
  className: rowClasses,
18965
18998
  onClick: onClickHandler,
18966
18999
  ref: rowRef
@@ -19740,7 +19773,8 @@ var Header = function Header(props) {
19740
19773
  updateSearchTerm = props.updateSearchTerm,
19741
19774
  dynamicColumn = props.dynamicColumn,
19742
19775
  allowSelectAll = props.allowSelectAll,
19743
- showFilters = props.showFilters;
19776
+ showFilters = props.showFilters,
19777
+ customSelectionLabel = props.customSelectionLabel;
19744
19778
 
19745
19779
  var _React$useState = React.useState(false),
19746
19780
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -19806,12 +19840,13 @@ var Header = function Header(props) {
19806
19840
  if (updateSchema) updateSchema(newSchema);
19807
19841
  };
19808
19842
 
19843
+ var customLabel = customSelectionLabel ? customSelectionLabel : 'item';
19809
19844
  var selectedCount = data.filter(function (d) {
19810
19845
  return d._selected;
19811
19846
  }).length;
19812
19847
  var startIndex = (page - 1) * pageSize + 1;
19813
19848
  var endIndex = Math.min(page * pageSize, totalRecords);
19814
- var label = error ? 'Showing 0 items' : withCheckbox && selectedCount ? selectAllRecords ? "Selected all ".concat(totalRecords, " item").concat(getPluralSuffix(totalRecords)) : "Selected ".concat(selectedCount, " item").concat(getPluralSuffix(totalRecords), " on this page") : withPagination ? "Showing ".concat(startIndex, "-").concat(endIndex, " of ").concat(totalRecords, " item").concat(getPluralSuffix(totalRecords)) : "Showing ".concat(totalRecords, " item").concat(getPluralSuffix(totalRecords));
19849
+ var label = error ? "Showing 0 ".concat(customLabel, "s") : withCheckbox && selectedCount ? selectAllRecords ? "Selected all ".concat(totalRecords, " ").concat(customLabel).concat(getPluralSuffix(totalRecords)) : "Selected ".concat(selectedCount, " ").concat(customLabel).concat(getPluralSuffix(totalRecords), " on this page") : withPagination ? "Showing ".concat(startIndex, "-").concat(endIndex, " of ").concat(totalRecords, " ").concat(customLabel).concat(getPluralSuffix(totalRecords)) : "Showing ".concat(totalRecords, " ").concat(customLabel).concat(getPluralSuffix(totalRecords));
19815
19850
  return /*#__PURE__*/React.createElement("div", {
19816
19851
  className: "Header"
19817
19852
  }, /*#__PURE__*/React.createElement("div", {
@@ -19828,7 +19863,8 @@ var Header = function Header(props) {
19828
19863
  onClear: function onClear() {
19829
19864
  return updateSearchTerm && updateSearchTerm('');
19830
19865
  },
19831
- disabled: loading && !hasSchema(schema)
19866
+ disabled: loading && !hasSchema(schema),
19867
+ autoComplete: "off"
19832
19868
  })), showFilters && filterSchema.length > 0 && /*#__PURE__*/React.createElement("div", {
19833
19869
  className: "Header-dropdown"
19834
19870
  }, /*#__PURE__*/React.createElement("div", {
@@ -19878,7 +19914,7 @@ var Header = function Header(props) {
19878
19914
  onClick: function onClick() {
19879
19915
  return setSelectAllRecords(true);
19880
19916
  }
19881
- }, "Select all ".concat(totalRecords, " items")) : /*#__PURE__*/React.createElement(Button, {
19917
+ }, "Select all ".concat(totalRecords, " ").concat(customLabel, "s")) : /*#__PURE__*/React.createElement(Button, {
19882
19918
  "data-test": "DesignSystem-Table-Header--clearSelectionItemsButton",
19883
19919
  size: "tiny",
19884
19920
  onClick: function onClick() {
@@ -20029,7 +20065,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
20029
20065
  _this.setState({
20030
20066
  data: _data2,
20031
20067
  schema: schema,
20032
- selectAll: getSelectAll(_data2),
20068
+ selectAll: getSelectAll(_data2, _this.props.selectDisabledRow),
20033
20069
  totalRecords: res.count,
20034
20070
  loading: false,
20035
20071
  error: !_data2.length,
@@ -20062,7 +20098,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
20062
20098
  totalRecords: totalRecords,
20063
20099
  error: !renderedData.length,
20064
20100
  errorType: 'NO_RECORDS_FOUND',
20065
- selectAll: getSelectAll(renderedData),
20101
+ selectAll: getSelectAll(renderedData, _this.props.selectDisabledRow),
20066
20102
  schema: renderedSchema,
20067
20103
  data: renderedData
20068
20104
  });
@@ -20078,11 +20114,11 @@ var Table = /*#__PURE__*/function (_React$Component) {
20078
20114
  if (rowIndexes >= 0) {
20079
20115
  newData = updateBatchData(data, indexes, {
20080
20116
  _selected: selected
20081
- });
20117
+ }, _this.props.selectDisabledRow);
20082
20118
 
20083
20119
  _this.setState({
20084
20120
  data: newData,
20085
- selectAll: getSelectAll(newData)
20121
+ selectAll: getSelectAll(newData, _this.props.selectDisabledRow)
20086
20122
  });
20087
20123
  }
20088
20124
 
@@ -20103,17 +20139,23 @@ var Table = /*#__PURE__*/function (_React$Component) {
20103
20139
  });
20104
20140
  var newData = updateBatchData(data, indexes, {
20105
20141
  _selected: selected
20142
+ }, _this.props.selectDisabledRow);
20143
+ var selectedIndex = [];
20144
+ newData.forEach(function (item, key) {
20145
+ if (item._selected) {
20146
+ selectedIndex.push(key);
20147
+ }
20106
20148
  });
20107
20149
 
20108
20150
  if (onSelect) {
20109
- onSelect(indexes, selected, newData.filter(function (d) {
20151
+ onSelect(selectedIndex, selected, newData.filter(function (d) {
20110
20152
  return d._selected;
20111
20153
  }), selectAll);
20112
20154
  }
20113
20155
 
20114
20156
  _this.setState({
20115
20157
  data: newData,
20116
- selectAll: getSelectAll(newData)
20158
+ selectAll: getSelectAll(newData, _this.props.selectDisabledRow)
20117
20159
  });
20118
20160
  });
20119
20161
 
@@ -20187,7 +20229,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
20187
20229
  var _this2 = this;
20188
20230
 
20189
20231
  if (!this.state.async) {
20190
- if (prevProps.loading !== this.props.loading || prevProps.error !== this.props.error || this.props.schema !== prevProps.schema) {
20232
+ if (prevProps.loading !== this.props.loading || prevProps.error !== this.props.error) {
20191
20233
  var _this$props2 = this.props,
20192
20234
  _this$props2$data = _this$props2.data,
20193
20235
  _data3 = _this$props2$data === void 0 ? [] : _this$props2$data,
@@ -20980,7 +21022,7 @@ var InlineMessage = function InlineMessage(props) {
20980
21022
  size = props.size;
20981
21023
  var baseProps = extractBaseProps(props);
20982
21024
  var InlineMessageClass = classnames(_defineProperty$1({}, 'InlineMessage', true), className);
20983
- var IconClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'InlineMessage-icon', true), _defineProperty$1(_classNames2, 'InlineMessage-icon--warning', appearance === 'warning'), _classNames2));
21025
+ var IconClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'InlineMessage-icon--warning', appearance === 'warning'), _defineProperty$1(_classNames2, 'InlineMessage-icon--small', size === 'small'), _defineProperty$1(_classNames2, 'InlineMessage-icon--regular', size === 'regular'), _classNames2));
20984
21026
  var DescriptionClass = classnames(_defineProperty$1({}, "InlineMessage-text--".concat(appearance), appearance));
20985
21027
  var IconSize = size === 'small' ? 14 : 16;
20986
21028
  var TextWeight = size === 'small' ? 'medium' : undefined;
@@ -21166,6 +21208,6 @@ var HelpText = function HelpText(props) {
21166
21208
  };
21167
21209
  HelpText.displayName = 'HelpText';
21168
21210
 
21169
- var version = "2.13.5";
21211
+ var version = "2.13.6";
21170
21212
 
21171
21213
  export { Avatar, AvatarGroup, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, ChoiceList, Collapsible, Column, DatePicker, DateRangePicker, Dialog, Divider, Dropdown, Dropzone, EditableChipInput, EditableDropdown, EditableInput, EmptyState, FileList, FileUploader, FileUploaderList, FullscreenModal, Grid, GridCell, Heading, HelpText, HorizontalNav, Icon, InlineMessage, Input, X as InputMask, Label, Legend, Link, List, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderImage, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, Textarea, TimePicker, Toast, Tooltip, index as Utils, VerificationCodeInput, VerticalNav, version };