diff --git a/app/gui/.dev-env b/app/gui/.dev-env index ef1288096eb7..82c228604e46 160000 --- a/app/gui/.dev-env +++ b/app/gui/.dev-env @@ -1 +1 @@ -Subproject commit ef1288096eb773d3a28e91e90d17b695a5985ac9 +Subproject commit 82c228604e4662ab6adaa3a896455de2d1b3c9db diff --git a/app/gui/integration-test/project-view/tableVisualisation.spec.ts b/app/gui/integration-test/project-view/tableVisualisation.spec.ts index 70b127503d6b..811cd533bbf1 100644 --- a/app/gui/integration-test/project-view/tableVisualisation.spec.ts +++ b/app/gui/integration-test/project-view/tableVisualisation.spec.ts @@ -91,6 +91,7 @@ test('Copy/paste from Table Visualization', async ({ page, editorPage }) => { page.evaluate(() => window.navigator.clipboard.readText()), ) await editorPage + await actions.openVisualization(page, 'Table') const tableVisualization = locate.tableVisualization(page) await expect(tableVisualization).toExist() @@ -129,19 +130,25 @@ test('Copy/paste from Table Visualization', async ({ page, editorPage }) => { await editorPage.press('Mod+V') await expectTableInputContent(page, node) - // Copy from table input widget + // Select a range in table input widget await node.getByText('0,0').hover() await page.mouse.down() await node.getByText('2,1').hover() await page.mouse.up() + + // Copy from table input widget await editorPage.press('Mod+C') await expectClipboard.toMatch(/^0,0\t0,1\r\n1,0\t1,1\r\n2,0\t2,1$/) - // Copy from table input widget with headers + // Copy from table input widget by menu + await node.getByText('0,0').hover() + await page.mouse.down({ button: 'right' }) + await page.mouse.up({ button: 'right' }) + await page.getByText('Copy', { exact: true }).click() + await expectClipboard.toMatch(/^0,0\t0,1\r\n1,0\t1,1\r\n2,0\t2,1$/) + + // Copy from table input widget by menu with headers await node.getByText('0,0').hover() - await page.mouse.down() - await node.getByText('2,1').hover() - await page.mouse.up() await page.mouse.down({ button: 'right' }) await page.mouse.up({ button: 'right' }) await page.getByText('Copy with Headers').click() diff --git a/app/gui/package.json b/app/gui/package.json index 572609c1a617..483853a9c6ec 100644 --- a/app/gui/package.json +++ b/app/gui/package.json @@ -40,12 +40,6 @@ "playwright:install": "playwright install chromium" }, "dependencies": { - "@ag-grid-community/client-side-row-model": "^32.3.3", - "@ag-grid-community/core": "^32.3.3", - "@ag-grid-community/locale": "^32.3.3", - "@ag-grid-community/styles": "^32.3.3", - "@ag-grid-enterprise/core": "^32.3.3", - "@ag-grid-enterprise/range-selection": "^32.3.3", "aws-amplify": "^6.16.0", "@babel/parser": "^7.26.3", "@codemirror/autocomplete": "catalog:", @@ -78,8 +72,9 @@ "@vue/reactivity": "^3.5.13", "@vueuse/core": "^13.0.0", "@vueuse/gesture": "^2.0.0", - "ag-grid-community": "^32.3.3", - "ag-grid-enterprise": "^32.3.3", + "ag-grid-community": "^35.2.1", + "ag-grid-enterprise": "^35.2.1", + "ag-grid-vue3": "^35.2.1", "ajv": "^8.17.1", "amazon-cognito-identity-js": "6.3.6", "codemirror": "^6.0.2", diff --git a/app/gui/src/project-view/components/AgGridTableView.vue b/app/gui/src/project-view/components/AgGridTableView.vue index 75eca5804ae6..22888bae2097 100644 --- a/app/gui/src/project-view/components/AgGridTableView.vue +++ b/app/gui/src/project-view/components/AgGridTableView.vue @@ -29,6 +29,4 @@ defineOptions({ inheritAttrs: false }) -