@carbon/ibm-products 2.43.2-canary.111 → 2.43.2-canary.113

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. package/css/config-dev.css +6 -1
  2. package/css/config-dev.css.map +1 -1
  3. package/css/config.css +6 -1
  4. package/css/config.css.map +1 -1
  5. package/css/index-full-carbon.css +66 -56
  6. package/css/index-full-carbon.css.map +1 -1
  7. package/css/index-full-carbon.min.css.map +1 -1
  8. package/css/index-without-carbon-released-only.css +48 -56
  9. package/css/index-without-carbon-released-only.css.map +1 -1
  10. package/css/index-without-carbon-released-only.min.css.map +1 -1
  11. package/css/index-without-carbon.css +66 -56
  12. package/css/index-without-carbon.css.map +1 -1
  13. package/css/index-without-carbon.min.css.map +1 -1
  14. package/css/index.css +66 -56
  15. package/css/index.css.map +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/APIKeyModal/APIKeyModal.types.d.ts +6 -0
  18. package/es/components/AddSelect/types/index.d.ts +6 -0
  19. package/es/components/Coachmark/utils/enums.d.ts +6 -0
  20. package/es/components/DataSpreadsheet/types/index.d.ts +6 -0
  21. package/es/components/Datagrid/Datagrid/DatagridBody.d.ts +6 -0
  22. package/es/components/Datagrid/Datagrid/DatagridRefBody.d.ts +6 -0
  23. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +6 -0
  24. package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +6 -0
  25. package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +7 -0
  26. package/es/components/Datagrid/common-column-ids.d.ts +6 -0
  27. package/es/components/Datagrid/types/index.d.ts +6 -0
  28. package/es/components/Datagrid/useDatagrid.d.ts +6 -0
  29. package/es/components/Datagrid/useDisableSelectRows.d.ts +6 -0
  30. package/es/components/Datagrid/useInitialColumnSort.js +4 -0
  31. package/es/components/Datagrid/useRowIsMouseOver.d.ts +6 -0
  32. package/es/components/Datagrid/useSortableColumns.d.ts +5 -4
  33. package/es/components/Datagrid/useSortableColumns.js +18 -13
  34. package/es/components/StringFormatter/utils/enums.js +7 -0
  35. package/es/global/js/utils/scrollableAncestor.js +7 -0
  36. package/es/global/js/utils/uuidv4.d.ts +6 -0
  37. package/es/global/js/utils/uuidv4.js +2 -0
  38. package/es/global/js/utils/wait.d.ts +6 -0
  39. package/es/global/js/utils/wait.js +2 -0
  40. package/flags.js +7 -0
  41. package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +6 -0
  42. package/lib/components/AddSelect/types/index.d.ts +6 -0
  43. package/lib/components/Coachmark/utils/enums.d.ts +6 -0
  44. package/lib/components/DataSpreadsheet/types/index.d.ts +6 -0
  45. package/lib/components/Datagrid/Datagrid/DatagridBody.d.ts +6 -0
  46. package/lib/components/Datagrid/Datagrid/DatagridRefBody.d.ts +6 -0
  47. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +6 -0
  48. package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +6 -0
  49. package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +7 -0
  50. package/lib/components/Datagrid/common-column-ids.d.ts +6 -0
  51. package/lib/components/Datagrid/types/index.d.ts +6 -0
  52. package/lib/components/Datagrid/useDatagrid.d.ts +6 -0
  53. package/lib/components/Datagrid/useDisableSelectRows.d.ts +6 -0
  54. package/lib/components/Datagrid/useInitialColumnSort.js +4 -0
  55. package/lib/components/Datagrid/useRowIsMouseOver.d.ts +6 -0
  56. package/lib/components/Datagrid/useSortableColumns.d.ts +5 -4
  57. package/lib/components/Datagrid/useSortableColumns.js +18 -13
  58. package/lib/components/StringFormatter/utils/enums.js +7 -0
  59. package/lib/global/js/utils/scrollableAncestor.js +7 -0
  60. package/lib/global/js/utils/uuidv4.d.ts +6 -0
  61. package/lib/global/js/utils/uuidv4.js +2 -0
  62. package/lib/global/js/utils/wait.d.ts +6 -0
  63. package/lib/global/js/utils/wait.js +2 -0
  64. package/package.json +2 -2
  65. package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +7 -0
  66. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +7 -0
  67. package/scss/components/ConditionBuilder/styles/_index.scss +7 -0
  68. package/scss/components/Datagrid/styles/_useActionsColumn.scss +6 -7
  69. package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +6 -7
  70. package/scss/components/Datagrid/styles/_useExpandedRow.scss +6 -7
  71. package/scss/components/Datagrid/styles/_useInlineEdit.scss +6 -7
  72. package/scss/components/Datagrid/styles/_useNestedRows.scss +6 -7
  73. package/scss/components/Datagrid/styles/_useNestedTable.scss +6 -7
  74. package/scss/components/Datagrid/styles/_useStickyColumn.scss +6 -7
  75. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +6 -7
  76. package/scss/config-dev.scss +7 -0
  77. package/scss/config.scss +7 -0
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { DataGridState } from '../types';
2
8
  declare const DatagridRefBody: (datagridState: DataGridState) => import("react/jsx-runtime").JSX.Element;
3
9
  export default DatagridRefBody;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { DataGridState } from '../types';
2
8
  declare const DatagridSimpleBody: (datagridState: DataGridState) => import("react/jsx-runtime").JSX.Element;
3
9
  export default DatagridSimpleBody;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { PropsWithChildren, ReactNode } from 'react';
2
8
  import PropTypes from 'prop-types';
3
9
  interface DraggableElementProps extends PropsWithChildren {
@@ -7,6 +7,13 @@
7
7
 
8
8
  import { objectSpread2 as _objectSpread2, defineProperty as _defineProperty, toConsumableArray as _toConsumableArray } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
9
9
 
10
+ /**
11
+ * Copyright IBM Corp. 2024
12
+ *
13
+ * This source code is licensed under the Apache-2.0 license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+
10
17
  var handleCheckboxChange = function handleCheckboxChange(_ref) {
11
18
  var _option$onChange;
12
19
  var checked = _ref.checked,
@@ -1 +1,7 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  export const selectionColumnId: "datagridSelection";
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  /// <reference path="../../../../src/custom-typings/index.d.ts" />
2
8
  import { MultiSelectProps } from '@carbon/react/lib/components/MultiSelect/MultiSelect';
3
9
  import { FormGroupProps } from '@carbon/react/lib/components/FormGroup/FormGroup';
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { TableInstance } from 'react-table';
2
8
  declare const useDatagrid: (params: any, ...plugins: any[]) => TableInstance;
3
9
  export default useDatagrid;
@@ -1,3 +1,9 @@
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
+ */
1
7
  import { Hooks } from 'react-table';
2
8
  declare const useDisableSelectRows: (hooks: Hooks) => void;
3
9
  export default useDisableSelectRows;
@@ -29,6 +29,10 @@ var useInitialColumnSort = function useInitialColumnSort(instance) {
29
29
  if (sortableColumn) {
30
30
  var columnId = sortableColumn.id,
31
31
  order = sortableColumn.order;
32
+ // prevents edge case where initial sort state of none actually starts out as ascending
33
+ if (order !== 'ASC' && order !== 'DESC') {
34
+ return;
35
+ }
32
36
  var _getNewSortOrder = getNewSortOrder(order),
33
37
  newSortDesc = _getNewSortOrder.newSortDesc,
34
38
  newOrder = _getNewSortOrder.newOrder;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { Hooks } from 'react-table';
2
8
  declare const useRowIsMouseOver: (hooks: Hooks) => void;
3
9
  export default useRowIsMouseOver;
@@ -5,9 +5,10 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import { Hooks } from 'react-table';
8
- export declare const getNewSortOrder: (sortOrder?: boolean | string) => {
9
- newSortDesc: boolean;
10
- newOrder: string;
11
- };
8
+ interface Order {
9
+ newOrder: 'ASC' | 'DESC' | 'NONE';
10
+ newSortDesc: undefined | boolean;
11
+ }
12
+ export declare const getNewSortOrder: (currentOrder?: boolean | string) => Order;
12
13
  declare const useSortableColumns: (hooks: Hooks) => void;
13
14
  export default useSortableColumns;
@@ -15,23 +15,28 @@ import { SelectAll } from './Datagrid/DatagridSelectAll.js';
15
15
  import { DatagridSlug } from './Datagrid/addons/Slug/DatagridSlug.js';
16
16
 
17
17
  var blockClass = "".concat(pkg.prefix, "--datagrid");
18
- var ordering = {
19
- ASC: 'ASC',
20
- DESC: 'DESC',
21
- NONE: 'NONE'
22
- };
23
- var getNewSortOrder = function getNewSortOrder(sortOrder) {
18
+ var getNewSortOrder = function getNewSortOrder(currentOrder) {
24
19
  var order = {
25
- newSortDesc: false,
26
- newOrder: ordering.NONE
20
+ newOrder: 'NONE',
21
+ newSortDesc: undefined
27
22
  };
28
- if (sortOrder === false || sortOrder === ordering.DESC) {
29
- order.newOrder = ordering.DESC;
23
+
24
+ // NONE => ASC
25
+ if (currentOrder === undefined) {
26
+ order.newOrder = 'ASC';
27
+ order.newSortDesc = false;
28
+ }
29
+
30
+ // ACS => DESC
31
+ if (currentOrder === false || currentOrder === 'DESC') {
32
+ order.newOrder = 'DESC';
30
33
  order.newSortDesc = true;
31
34
  }
32
- if (sortOrder === undefined || sortOrder === ordering.ASC) {
33
- order.newOrder = ordering.ASC;
34
- order.newSortDesc = false;
35
+
36
+ // DESC => NONE
37
+ if (currentOrder === true || currentOrder === 'ASC') {
38
+ order.newOrder = 'NONE';
39
+ order.newSortDesc = undefined;
35
40
  }
36
41
  return order;
37
42
  };
@@ -7,6 +7,13 @@
7
7
 
8
8
  import { defineProperty as _defineProperty } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
9
 
10
+ /**
11
+ * Copyright IBM Corp. 2024
12
+ *
13
+ * This source code is licensed under the Apache-2.0 license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+
10
17
  var deprecated_StringFormatterAlignment = {
11
18
  TOP: 'top',
12
19
  TOP_LEFT: 'top-left',
@@ -7,6 +7,13 @@
7
7
 
8
8
  import { typeof as _typeof } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
9
 
10
+ /**
11
+ * Copyright IBM Corp. 2024
12
+ *
13
+ * This source code is licensed under the Apache-2.0 license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+
10
17
  var windowExists = (typeof window === "undefined" ? "undefined" : _typeof(window)) !== "undefined";
11
18
 
12
19
  // determine whether the target is scrollable
@@ -1,2 +1,8 @@
1
1
  export default uuidv4;
2
+ /**
3
+ * Copyright IBM Corp. 2024
4
+ *
5
+ * This source code is licensed under the Apache-2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
2
8
  declare function uuidv4(): any;
@@ -5,6 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
+ // https://stackoverflow.com/a/2117523
9
+
8
10
  function uuidv4() {
9
11
  var randomValues = function randomValues(c) {
10
12
  return typeof crypto !== 'undefined' ? crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4 : Math.random() * 16 >> c / 4;
@@ -1,2 +1,8 @@
1
1
  export default wait;
2
+ /**
3
+ * Copyright IBM Corp. 2024
4
+ *
5
+ * This source code is licensed under the Apache-2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
2
8
  declare function wait(ms: any): Promise<any>;
@@ -5,6 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
+ // utility function for an async timeout
9
+
8
10
  function wait(ms) {
9
11
  return new Promise(function (resolve) {
10
12
  return setTimeout(resolve, ms);
package/flags.js CHANGED
@@ -1,3 +1,10 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+
1
8
  const { pkg } = require('./lib/settings.js');
2
9
  const { component, feature } = pkg;
3
10
 
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { ReactNode } from 'react';
2
8
  interface APIKeyModalCommonProps {
3
9
  /**
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { ReactNode } from 'react';
2
8
  export type Theme = 'light' | 'dark';
3
9
  export interface Filter {
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  /**
2
8
  * Reserved for future expansion, i.e. "RING".
3
9
  */
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  export type Size = 'xs' | 'sm' | 'md' | 'lg';
2
8
  export type Theme = 'light' | 'dark';
3
9
  export interface SpreadsheetColumn {
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { DataGridState } from '../types';
2
8
  declare const DatagridBody: (datagridState: DataGridState) => import("react/jsx-runtime").JSX.Element;
3
9
  export default DatagridBody;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { DataGridState } from '../types';
2
8
  declare const DatagridRefBody: (datagridState: DataGridState) => import("react/jsx-runtime").JSX.Element;
3
9
  export default DatagridRefBody;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { DataGridState } from '../types';
2
8
  declare const DatagridSimpleBody: (datagridState: DataGridState) => import("react/jsx-runtime").JSX.Element;
3
9
  export default DatagridSimpleBody;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { PropsWithChildren, ReactNode } from 'react';
2
8
  import PropTypes from 'prop-types';
3
9
  interface DraggableElementProps extends PropsWithChildren {
@@ -11,6 +11,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
12
  var _rollupPluginBabelHelpers = require('../../../../../_virtual/_rollupPluginBabelHelpers.js');
13
13
 
14
+ /**
15
+ * Copyright IBM Corp. 2024
16
+ *
17
+ * This source code is licensed under the Apache-2.0 license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */
20
+
14
21
  var handleCheckboxChange = function handleCheckboxChange(_ref) {
15
22
  var _option$onChange;
16
23
  var checked = _ref.checked,
@@ -1 +1,7 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  export const selectionColumnId: "datagridSelection";
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  /// <reference path="../../../../src/custom-typings/index.d.ts" />
2
8
  import { MultiSelectProps } from '@carbon/react/lib/components/MultiSelect/MultiSelect';
3
9
  import { FormGroupProps } from '@carbon/react/lib/components/FormGroup/FormGroup';
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { TableInstance } from 'react-table';
2
8
  declare const useDatagrid: (params: any, ...plugins: any[]) => TableInstance;
3
9
  export default useDatagrid;
@@ -1,3 +1,9 @@
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
+ */
1
7
  import { Hooks } from 'react-table';
2
8
  declare const useDisableSelectRows: (hooks: Hooks) => void;
3
9
  export default useDisableSelectRows;
@@ -33,6 +33,10 @@ var useInitialColumnSort = function useInitialColumnSort(instance) {
33
33
  if (sortableColumn) {
34
34
  var columnId = sortableColumn.id,
35
35
  order = sortableColumn.order;
36
+ // prevents edge case where initial sort state of none actually starts out as ascending
37
+ if (order !== 'ASC' && order !== 'DESC') {
38
+ return;
39
+ }
36
40
  var _getNewSortOrder = useSortableColumns.getNewSortOrder(order),
37
41
  newSortDesc = _getNewSortOrder.newSortDesc,
38
42
  newOrder = _getNewSortOrder.newOrder;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
1
7
  import { Hooks } from 'react-table';
2
8
  declare const useRowIsMouseOver: (hooks: Hooks) => void;
3
9
  export default useRowIsMouseOver;
@@ -5,9 +5,10 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import { Hooks } from 'react-table';
8
- export declare const getNewSortOrder: (sortOrder?: boolean | string) => {
9
- newSortDesc: boolean;
10
- newOrder: string;
11
- };
8
+ interface Order {
9
+ newOrder: 'ASC' | 'DESC' | 'NONE';
10
+ newSortDesc: undefined | boolean;
11
+ }
12
+ export declare const getNewSortOrder: (currentOrder?: boolean | string) => Order;
12
13
  declare const useSortableColumns: (hooks: Hooks) => void;
13
14
  export default useSortableColumns;
@@ -24,23 +24,28 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
24
24
  var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
25
25
 
26
26
  var blockClass = "".concat(settings.pkg.prefix, "--datagrid");
27
- var ordering = {
28
- ASC: 'ASC',
29
- DESC: 'DESC',
30
- NONE: 'NONE'
31
- };
32
- var getNewSortOrder = function getNewSortOrder(sortOrder) {
27
+ var getNewSortOrder = function getNewSortOrder(currentOrder) {
33
28
  var order = {
34
- newSortDesc: false,
35
- newOrder: ordering.NONE
29
+ newOrder: 'NONE',
30
+ newSortDesc: undefined
36
31
  };
37
- if (sortOrder === false || sortOrder === ordering.DESC) {
38
- order.newOrder = ordering.DESC;
32
+
33
+ // NONE => ASC
34
+ if (currentOrder === undefined) {
35
+ order.newOrder = 'ASC';
36
+ order.newSortDesc = false;
37
+ }
38
+
39
+ // ACS => DESC
40
+ if (currentOrder === false || currentOrder === 'DESC') {
41
+ order.newOrder = 'DESC';
39
42
  order.newSortDesc = true;
40
43
  }
41
- if (sortOrder === undefined || sortOrder === ordering.ASC) {
42
- order.newOrder = ordering.ASC;
43
- order.newSortDesc = false;
44
+
45
+ // DESC => NONE
46
+ if (currentOrder === true || currentOrder === 'ASC') {
47
+ order.newOrder = 'NONE';
48
+ order.newSortDesc = undefined;
44
49
  }
45
50
  return order;
46
51
  };
@@ -11,6 +11,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
12
  var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
13
13
 
14
+ /**
15
+ * Copyright IBM Corp. 2024
16
+ *
17
+ * This source code is licensed under the Apache-2.0 license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */
20
+
14
21
  var deprecated_StringFormatterAlignment = {
15
22
  TOP: 'top',
16
23
  TOP_LEFT: 'top-left',
@@ -11,6 +11,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
12
  var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
13
13
 
14
+ /**
15
+ * Copyright IBM Corp. 2024
16
+ *
17
+ * This source code is licensed under the Apache-2.0 license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */
20
+
14
21
  var windowExists = (typeof window === "undefined" ? "undefined" : _rollupPluginBabelHelpers["typeof"](window)) !== "undefined";
15
22
 
16
23
  // determine whether the target is scrollable
@@ -1,2 +1,8 @@
1
1
  export default uuidv4;
2
+ /**
3
+ * Copyright IBM Corp. 2024
4
+ *
5
+ * This source code is licensed under the Apache-2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
2
8
  declare function uuidv4(): any;
@@ -9,6 +9,8 @@
9
9
 
10
10
  Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
+ // https://stackoverflow.com/a/2117523
13
+
12
14
  function uuidv4() {
13
15
  var randomValues = function randomValues(c) {
14
16
  return typeof crypto !== 'undefined' ? crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4 : Math.random() * 16 >> c / 4;
@@ -1,2 +1,8 @@
1
1
  export default wait;
2
+ /**
3
+ * Copyright IBM Corp. 2024
4
+ *
5
+ * This source code is licensed under the Apache-2.0 license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
2
8
  declare function wait(ms: any): Promise<any>;
@@ -9,6 +9,8 @@
9
9
 
10
10
  Object.defineProperty(exports, '__esModule', { value: true });
11
11
 
12
+ // utility function for an async timeout
13
+
12
14
  function wait(ms) {
13
15
  return new Promise(function (resolve) {
14
16
  return setTimeout(resolve, ms);
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.111+2deeb8325",
4
+ "version": "2.43.2-canary.113+c246a3d4c",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -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": "2deeb8325e99cfa3f435b5ae6004a2cb45368082"
123
+ "gitHead": "c246a3d4cebb84b68cc879805e84466fd81dc1ab"
124
124
  }
@@ -1,3 +1,10 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+
1
8
  @use '@carbon/react/scss/theme' as *;
2
9
  @use '@carbon/react/scss/spacing' as *;
3
10
  @use '@carbon/react/scss/motion' as *;
@@ -1,3 +1,10 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+
1
8
  @use 'sass:list';
2
9
  @use 'sass:math';
3
10
  @use 'sass:string';
@@ -1,2 +1,9 @@
1
+ /**
2
+ * Copyright IBM Corp. 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
+
1
8
  @use './conditionBuilderItem';
2
9
  @use './conditionBuilderCondition';
@@ -1,10 +1,9 @@
1
- /*
2
- * Licensed Materials - Property of IBM
3
- * 5724-Q36
4
- * (c) Copyright IBM Corp. 2021
5
- * US Government Users Restricted Rights - Use, duplication or disclosure
6
- * restricted by GSA ADP Schedule Contract with IBM Corp.
7
- */
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
8
7
 
9
8
  @use '@carbon/styles/scss/spacing' as *;
10
9
  @use '@carbon/styles/scss/theme';
@@ -1,10 +1,9 @@
1
- /*
2
- * Licensed Materials - Property of IBM
3
- * 5724-Q36
4
- * (c) Copyright IBM Corp. 2020
5
- * US Government Users Restricted Rights - Use, duplication or disclosure
6
- * restricted by GSA ADP Schedule Contract with IBM Corp.
7
- */
1
+ /**
2
+ * Copyright IBM Corp. 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
+ */
8
7
 
9
8
  @use './variables';
10
9