From 8550b735d140bd04bc9d6deb14ee522c2057e7ed Mon Sep 17 00:00:00 2001 From: Ovidijus Parsiunas Date: Mon, 8 Jan 2024 16:29:37 +0000 Subject: [PATCH] 1.1.2 - ability to change enter key behaviour to move down --- component/package-lock.json | 4 +- component/package.json | 2 +- other-packages/react/package-lock.json | 18 ++++---- other-packages/react/package.json | 4 +- website/docs/docs/installation.mdx | 2 +- website/docs/docs/table.mdx | 61 ++++++++++++++++++++++++++ website/package-lock.json | 30 ++++++------- website/package.json | 2 +- 8 files changed, 92 insertions(+), 31 deletions(-) diff --git a/component/package-lock.json b/component/package-lock.json index 9fddeac4..d7c5a953 100644 --- a/component/package-lock.json +++ b/component/package-lock.json @@ -1,12 +1,12 @@ { "name": "active-table", - "version": "1.1.1", + "version": "1.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "active-table", - "version": "1.1.1", + "version": "1.1.2", "license": "MIT", "dependencies": { "lit": "^3.0.2" diff --git a/component/package.json b/component/package.json index 1b362b20..34a13d2c 100644 --- a/component/package.json +++ b/component/package.json @@ -1,6 +1,6 @@ { "name": "active-table", - "version": "1.1.1", + "version": "1.1.2", "description": "Framework agnostic table component for editable data experience", "main": "./dist/activeTable.js", "module": "./dist/activeTable.js", diff --git a/other-packages/react/package-lock.json b/other-packages/react/package-lock.json index 66b09f54..8b6c23fc 100644 --- a/other-packages/react/package-lock.json +++ b/other-packages/react/package-lock.json @@ -1,16 +1,16 @@ { "name": "active-table-react", - "version": "1.1.1", + "version": "1.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "active-table-react", - "version": "1.1.1", + "version": "1.1.2", "license": "MIT", "dependencies": { "@lit-labs/react": "^1.1.1", - "active-table": "1.1.1" + "active-table": "1.1.2" }, "devDependencies": { "@types/react": "^18.0.28", @@ -67,9 +67,9 @@ "integrity": "sha512-HYtNooPvUY9WAVRBr4u+4Qa9fYD1ze2IUlAD3HoA6oehn1taGwBx3Oa52U4mTslTS+GAExKpaFu39Y5xUEwfjg==" }, "node_modules/active-table": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/active-table/-/active-table-1.1.1.tgz", - "integrity": "sha512-y0/XYREztZgx8ba15VLnkanKLHIAGfpBpUB/QQX69n9frwWPu8kk1kKkinQs49Oje4S7b2ZQ2HRO8rsfgMrfxw==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/active-table/-/active-table-1.1.2.tgz", + "integrity": "sha512-462lifrPI0RGsMd1756dww1egtQnz+JMAmEixFRFqOqOCFRIIuugwVgbtVr1bXsNORxjS6BoQ9/HXrtxdKQpGQ==", "dependencies": { "lit": "^3.0.2" } @@ -200,9 +200,9 @@ "integrity": "sha512-HYtNooPvUY9WAVRBr4u+4Qa9fYD1ze2IUlAD3HoA6oehn1taGwBx3Oa52U4mTslTS+GAExKpaFu39Y5xUEwfjg==" }, "active-table": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/active-table/-/active-table-1.1.1.tgz", - "integrity": "sha512-y0/XYREztZgx8ba15VLnkanKLHIAGfpBpUB/QQX69n9frwWPu8kk1kKkinQs49Oje4S7b2ZQ2HRO8rsfgMrfxw==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/active-table/-/active-table-1.1.2.tgz", + "integrity": "sha512-462lifrPI0RGsMd1756dww1egtQnz+JMAmEixFRFqOqOCFRIIuugwVgbtVr1bXsNORxjS6BoQ9/HXrtxdKQpGQ==", "requires": { "lit": "^3.0.2" } diff --git a/other-packages/react/package.json b/other-packages/react/package.json index d4116d6d..a1217dcf 100644 --- a/other-packages/react/package.json +++ b/other-packages/react/package.json @@ -1,6 +1,6 @@ { "name": "active-table-react", - "version": "1.1.1", + "version": "1.1.2", "description": "Active Table wrapper for React", "main": "./dist/activeTable.js", "module": "./dist/activeTable.js", @@ -33,7 +33,7 @@ "license": "MIT", "dependencies": { "@lit-labs/react": "^1.1.1", - "active-table": "1.1.1" + "active-table": "1.1.2" }, "devDependencies": { "@types/react": "^18.0.28", diff --git a/website/docs/docs/installation.mdx b/website/docs/docs/installation.mdx index d80dbf3c..7cba49f4 100644 --- a/website/docs/docs/installation.mdx +++ b/website/docs/docs/installation.mdx @@ -19,5 +19,5 @@ npm install active-table-react Access the component via CDN: ``` -https://unpkg.com/active-table@1.1.1/dist/activeTable.bundle.js +https://unpkg.com/active-table@1.1.2/dist/activeTable.bundle.js ``` diff --git a/website/docs/docs/table.mdx b/website/docs/docs/table.mdx index c99b3b42..2c6ca8b8 100644 --- a/website/docs/docs/table.mdx +++ b/website/docs/docs/table.mdx @@ -235,6 +235,67 @@ row's `backgroundColor` and text `color`. +### `enterKeyMoveDown` {#enterKeyMoveDown} + +- Type: `boolean` +- Default: _false_ + +When the user presses the ENTER key, the cursor focus is moved to the cell below. + +#### Example + + + + + + + + +```html + +``` + + + + +```html + + + +``` + + + + + + +:::caution +The autofocus does not work in the Safari browser. +::: + + + ### `auxiliaryStyle` {#auxiliaryStyle} - Type: `string` diff --git a/website/package-lock.json b/website/package-lock.json index 50e21516..26278652 100644 --- a/website/package-lock.json +++ b/website/package-lock.json @@ -12,7 +12,7 @@ "@docusaurus/preset-classic": "^2.3.0", "@docusaurus/theme-search-algolia": "^2.3.1", "@mdx-js/react": "^1.6.22", - "active-table-react": "^1.1.1", + "active-table-react": "^1.1.2", "clsx": "^1.2.1", "prism-react-renderer": "^1.3.5", "react": "^17.0.2", @@ -3777,20 +3777,20 @@ } }, "node_modules/active-table": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/active-table/-/active-table-1.1.1.tgz", - "integrity": "sha512-y0/XYREztZgx8ba15VLnkanKLHIAGfpBpUB/QQX69n9frwWPu8kk1kKkinQs49Oje4S7b2ZQ2HRO8rsfgMrfxw==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/active-table/-/active-table-1.1.2.tgz", + "integrity": "sha512-462lifrPI0RGsMd1756dww1egtQnz+JMAmEixFRFqOqOCFRIIuugwVgbtVr1bXsNORxjS6BoQ9/HXrtxdKQpGQ==", "dependencies": { "lit": "^3.0.2" } }, "node_modules/active-table-react": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/active-table-react/-/active-table-react-1.1.1.tgz", - "integrity": "sha512-8VpYFw71UxLAVnw2DwXsrzzJ2uVvaAus6Nxp9E3iPSUw0DIh/DZd6eMaRpFJlDCAcZ8B54z9Hbmomfv9I84Evg==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/active-table-react/-/active-table-react-1.1.2.tgz", + "integrity": "sha512-Cu81mRyk6/vli70zPMoXxT6DUYCjVD4nPBmYbKI64+w/LWfc8eV2xPbxdqbcu68EfXYi3K2+KqJWscKkoKL1yQ==", "dependencies": { "@lit-labs/react": "^1.1.1", - "active-table": "1.1.1" + "active-table": "1.1.2" }, "peerDependencies": { "react": ">=16.8.0 || >=17.0.0 || >=18.0.0" @@ -15564,20 +15564,20 @@ "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" }, "active-table": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/active-table/-/active-table-1.1.1.tgz", - "integrity": "sha512-y0/XYREztZgx8ba15VLnkanKLHIAGfpBpUB/QQX69n9frwWPu8kk1kKkinQs49Oje4S7b2ZQ2HRO8rsfgMrfxw==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/active-table/-/active-table-1.1.2.tgz", + "integrity": "sha512-462lifrPI0RGsMd1756dww1egtQnz+JMAmEixFRFqOqOCFRIIuugwVgbtVr1bXsNORxjS6BoQ9/HXrtxdKQpGQ==", "requires": { "lit": "^3.0.2" } }, "active-table-react": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/active-table-react/-/active-table-react-1.1.1.tgz", - "integrity": "sha512-8VpYFw71UxLAVnw2DwXsrzzJ2uVvaAus6Nxp9E3iPSUw0DIh/DZd6eMaRpFJlDCAcZ8B54z9Hbmomfv9I84Evg==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/active-table-react/-/active-table-react-1.1.2.tgz", + "integrity": "sha512-Cu81mRyk6/vli70zPMoXxT6DUYCjVD4nPBmYbKI64+w/LWfc8eV2xPbxdqbcu68EfXYi3K2+KqJWscKkoKL1yQ==", "requires": { "@lit-labs/react": "^1.1.1", - "active-table": "1.1.1" + "active-table": "1.1.2" } }, "address": { diff --git a/website/package.json b/website/package.json index 8eb804ea..833795d4 100644 --- a/website/package.json +++ b/website/package.json @@ -18,7 +18,7 @@ "@docusaurus/preset-classic": "^2.3.0", "@docusaurus/theme-search-algolia": "^2.3.1", "@mdx-js/react": "^1.6.22", - "active-table-react": "^1.1.1", + "active-table-react": "^1.1.2", "clsx": "^1.2.1", "prism-react-renderer": "^1.3.5", "react": "^17.0.2",