diff --git a/package-lock.json b/package-lock.json index ce7b558413e..23596da52a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43263,13 +43263,13 @@ } }, "packages/terra-data-grid": { - "version": "1.1.0", + "version": "1.2.0", "license": "Apache-2.0", "dependencies": { "classnames": "^2.2.5", "keycode-js": "^3.1.0", "prop-types": "^15.5.8", - "terra-table": "^5.1.1-alpha.1", + "terra-table": "^5.1.1-alpha.2", "terra-visually-hidden-text": "^2.36.0" }, "devDependencies": { @@ -43485,7 +43485,7 @@ }, "packages/terra-framework-docs": { "name": "@cerner/terra-framework-docs", - "version": "1.44.0", + "version": "1.45.0", "license": "Apache-2.0", "dependencies": { "@cerner/terra-docs": "^1.7.0", @@ -43501,7 +43501,7 @@ "terra-collapsible-menu-view": "^6.84.0", "terra-compact-interactive-list": "^0.1.0", "terra-content-container": "^3.0.0", - "terra-data-grid": "^1.1.0", + "terra-data-grid": "^1.2.0", "terra-date-input": "^1.46.0", "terra-date-picker": "^4.93.0", "terra-date-time-picker": "^4.99.0", @@ -43529,9 +43529,9 @@ "terra-slide-group": "^4.33.0", "terra-slide-panel": "^3.46.0", "terra-slide-panel-manager": "^5.84.0", - "terra-slider": "^1.1.0", + "terra-slider": "^1.1.1", "terra-spacer": "^3.59.0", - "terra-table": "^5.1.1-alpha.1", + "terra-table": "^5.1.1-alpha.2", "terra-tabs": "^7.11.2", "terra-text": "^4.49.0", "terra-theme-context": "^1.8.0", @@ -43827,7 +43827,7 @@ } }, "packages/terra-slider": { - "version": "1.1.0", + "version": "1.1.1", "license": "Apache-2.0", "dependencies": { "classnames": "^2.2.5", @@ -43854,7 +43854,7 @@ } }, "packages/terra-table": { - "version": "5.1.1-alpha.1", + "version": "5.1.1-alpha.2", "license": "Apache-2.0", "dependencies": { "classnames": "^2.2.5", diff --git a/packages/terra-data-grid/CHANGELOG.md b/packages/terra-data-grid/CHANGELOG.md index d6cd5491cc3..227022b5e39 100644 --- a/packages/terra-data-grid/CHANGELOG.md +++ b/packages/terra-data-grid/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +Changed + * Updated Table component to use new `rowSelectionMode` prop instead of `hasSelectableRows`. + +## 1.2.0 - (November 20, 2023) + * Fixed * Fixed issue where focus was given to the column header instead of its button element. * Fixed issue where row selection was being announced twice in Worklist Data Grid. @@ -10,9 +15,8 @@ * Added `hasVisibleColumnHeaders` prop for FlowsheetDataGrid to toggle visibility of column headers. * Added section support to FlowsheetDataGrid. -Changed - * Updated all columns and cells to be selectable in FlowsheetDataGrid, as `isSelectable` prop is not supported for columns or cells. - * Updated Table component to use new `rowSelectionMode` prop instead of `hasSelectableRows`. +* Changed + * Updated all cells to be selectable and columns unselectable in FlowsheetDataGrid, as `isSelectable` prop is not supported for columns or cells. ## 1.1.0 - (November 9, 2023) diff --git a/packages/terra-data-grid/package.json b/packages/terra-data-grid/package.json index dfa1ba72d43..2f3c57a6877 100644 --- a/packages/terra-data-grid/package.json +++ b/packages/terra-data-grid/package.json @@ -1,7 +1,7 @@ { "name": "terra-data-grid", "main": "lib/index.js", - "version": "1.1.0", + "version": "1.2.0", "description": "Package containing data grid container components that enable users to navigate the grid information using directional navigation keys.", "repository": { "type": "git", @@ -32,7 +32,7 @@ "classnames": "^2.2.5", "keycode-js": "^3.1.0", "prop-types": "^15.5.8", - "terra-table": "^5.1.1-alpha.1", + "terra-table": "^5.1.1-alpha.2", "terra-visually-hidden-text": "^2.36.0" }, "devDependencies": { diff --git a/packages/terra-data-grid/src/FlowsheetDataGrid.jsx b/packages/terra-data-grid/src/FlowsheetDataGrid.jsx index 896d924d725..4536b3afa6b 100644 --- a/packages/terra-data-grid/src/FlowsheetDataGrid.jsx +++ b/packages/terra-data-grid/src/FlowsheetDataGrid.jsx @@ -131,7 +131,7 @@ function FlowsheetDataGrid(props) { const inShiftDirectionalMode = useRef(false); const flowsheetColumns = useMemo(() => columns.map(column => ({ ...column, - isSelectable: true, + isSelectable: false, isResizable: false, })), [columns]); diff --git a/packages/terra-data-grid/tests/jest/FlowsheetDataGrid.test.jsx b/packages/terra-data-grid/tests/jest/FlowsheetDataGrid.test.jsx index 192301b04cb..2d2c667e6cf 100644 --- a/packages/terra-data-grid/tests/jest/FlowsheetDataGrid.test.jsx +++ b/packages/terra-data-grid/tests/jest/FlowsheetDataGrid.test.jsx @@ -54,7 +54,7 @@ const dataFile = { }; describe('FlowsheetDataGrid', () => { - it('renders the row header column as pinned and remaining columns as overflow, all columns as not resizable and all columns and row cells as selectable', () => { + it('renders the row header column as pinned and remaining columns as overflow, all columns as not resizable or selectable and all row cells as selectable', () => { const wrapper = shallowWithIntl( { displayName: 'Vitals', id: 'Column-0', isResizable: false, - isSelectable: true, + isSelectable: false, }, ]; @@ -78,13 +78,13 @@ describe('FlowsheetDataGrid', () => { displayName: 'March 16', id: 'Column-1', isResizable: false, - isSelectable: true, + isSelectable: false, }, { displayName: 'March 17', id: 'Column-2', isResizable: false, - isSelectable: true, + isSelectable: false, }, ]; diff --git a/packages/terra-data-grid/tests/jest/__snapshots__/FlowsheetDataGrid.test.jsx.snap b/packages/terra-data-grid/tests/jest/__snapshots__/FlowsheetDataGrid.test.jsx.snap index 5369011ecce..b5c69f2ded2 100644 --- a/packages/terra-data-grid/tests/jest/__snapshots__/FlowsheetDataGrid.test.jsx.snap +++ b/packages/terra-data-grid/tests/jest/__snapshots__/FlowsheetDataGrid.test.jsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`FlowsheetDataGrid renders the row header column as pinned and remaining columns as overflow, all columns as not resizable and all columns and row cells as selectable 1`] = ` +exports[`FlowsheetDataGrid renders the row header column as pinned and remaining columns as overflow, all columns as not resizable or selectable and all row cells as selectable 1`] = `
{ }); it('renders a default flowsheet data grid', () => { - browser.$$('thead tr')[0].$$('th')[0].moveTo(); // Explicitly hover over the first column to generate consistent screenshots. browser.keys(['Tab']); // Cell 0,0 gets focus - expect(browser.$('tr.column-header-row th:nth-child(1) div[role=button]').isFocused()).toBe(true); + expect(browser.$('tr.column-header-row th:nth-child(1)').isFocused()).toBe(true); Terra.validates.element('default-flowsheet-data-grid', { selector: defaultSelector }); }); }); @@ -141,7 +140,7 @@ Terra.describeViewports('FlowsheetDataGrid', ['medium', 'large'], () => { moveCurrentPositionBy(-3, 0); releaseShiftKey(); - expect(browser.$('tr.column-header-row th:nth-child(2) div[role=button]').isFocused()).toBe(true); + expect(browser.$('tr.column-header-row th:nth-child(2)').isFocused()).toBe(true); Terra.validates.element('selection-arrows-range-3-1-to-1-1-focus-0-1', { selector: defaultSelector }); }); diff --git a/packages/terra-framework-docs/CHANGELOG.md b/packages/terra-framework-docs/CHANGELOG.md index d7f9781be1a..782e87a48a5 100644 --- a/packages/terra-framework-docs/CHANGELOG.md +++ b/packages/terra-framework-docs/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 1.45.0 - (November 20, 2023) + * Added * Added example to `terra-table` to show column states and sorting; * Added new test for Terra Slider component for long field labels. diff --git a/packages/terra-framework-docs/package.json b/packages/terra-framework-docs/package.json index 12dcd711a64..41176212c52 100644 --- a/packages/terra-framework-docs/package.json +++ b/packages/terra-framework-docs/package.json @@ -1,6 +1,6 @@ { "name": "@cerner/terra-framework-docs", - "version": "1.44.0", + "version": "1.45.0", "description": "Contains documentation for packages in the terra-framework monorepo", "main": "index.js", "publishConfig": { @@ -44,7 +44,7 @@ "terra-collapsible-menu-view": "^6.84.0", "terra-compact-interactive-list": "^0.1.0", "terra-content-container": "^3.0.0", - "terra-data-grid": "^1.1.0", + "terra-data-grid": "^1.2.0", "terra-date-input": "^1.46.0", "terra-date-picker": "^4.93.0", "terra-date-time-picker": "^4.99.0", @@ -72,9 +72,9 @@ "terra-slide-group": "^4.33.0", "terra-slide-panel": "^3.46.0", "terra-slide-panel-manager": "^5.84.0", - "terra-slider": "^1.1.0", + "terra-slider": "^1.1.1", "terra-spacer": "^3.59.0", - "terra-table": "^5.1.1-alpha.1", + "terra-table": "^5.1.1-alpha.2", "terra-tabs": "^7.11.2", "terra-text": "^4.49.0", "terra-theme-context": "^1.8.0", diff --git a/packages/terra-slider/CHANGELOG.md b/packages/terra-slider/CHANGELOG.md index e7e193c2c0f..62780ae92b2 100644 --- a/packages/terra-slider/CHANGELOG.md +++ b/packages/terra-slider/CHANGELOG.md @@ -1,6 +1,9 @@ # Changelog ## Unreleased + +## 1.1.1 - (November 20, 2023) + * Fix * Fixed wrapping issue for min/max labels on slider. diff --git a/packages/terra-slider/package.json b/packages/terra-slider/package.json index 619bb39dbc1..8729952ea25 100644 --- a/packages/terra-slider/package.json +++ b/packages/terra-slider/package.json @@ -1,7 +1,7 @@ { "name": "terra-slider", "main": "lib/Slider.js", - "version": "1.1.0", + "version": "1.1.1", "description": "Terra Slider component provides users a way to select a value from a given range by sliding a thumb along a bar to track the value.", "repository": { "type": "git", diff --git a/packages/terra-table/CHANGELOG.md b/packages/terra-table/CHANGELOG.md index 15fe0c9bf89..740d94f66ce 100644 --- a/packages/terra-table/CHANGELOG.md +++ b/packages/terra-table/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 5.1.1-alpha.2 - (November 20, 2023) + * Breaking Changes * Renamed `hasColumnHeaders` prop to `hasVisibleColumnHeaders`. * Renamed `hasSelectableRows` prop to `rowSelectionMode` with an enumeration. diff --git a/packages/terra-table/package.json b/packages/terra-table/package.json index 6c65143057f..c7710145874 100644 --- a/packages/terra-table/package.json +++ b/packages/terra-table/package.json @@ -1,7 +1,7 @@ { "name": "terra-table", "main": "lib/index.js", - "version": "5.1.1-alpha.1", + "version": "5.1.1-alpha.2", "description": "The Terra Table component provides user a way to display data in an accessible table format.", "repository": { "type": "git",