From 3b8fec6e890fc0b8dc9754495c1022d898740b3e Mon Sep 17 00:00:00 2001 From: Ghislain B Date: Mon, 27 Jul 2020 15:55:24 -0400 Subject: [PATCH] feat(examples): add new sample to showcase queued editing (#28) * feat(examples): add new sample to showcase queued editing --- .github/ISSUE_TEMPLATE/bug_report.md | 10 +- .vscode/launch.json | 5 +- README.md | 5 +- .../webpack-demo-vanilla-bundle/package.json | 10 +- .../src/app-routing.ts | 1 + .../webpack-demo-vanilla-bundle/src/app.html | 7 +- .../src/examples/example02.ts | 3 +- .../src/examples/example03.html | 7 +- .../src/examples/example03.ts | 51 +- .../src/examples/example05.ts | 2 - .../src/examples/example06.ts | 1 - .../src/examples/example09.ts | 2 +- .../src/examples/example10.ts | 1 - .../src/examples/example11.html | 34 ++ .../src/examples/example11.scss | 4 + .../src/examples/example11.ts | 381 +++++++++++++++ package.json | 14 +- packages/common/package.json | 2 +- packages/common/src/editors/dateEditor.ts | 2 +- .../common/src/enums/slickControlList.enum.ts | 2 +- .../common/src/enums/slickPluginList.enum.ts | 2 +- .../groupItemMetaProviderExtension.spec.ts | 2 +- .../extensions/draggableGroupingExtension.ts | 2 +- packages/common/src/interfaces/index.ts | 1 - .../__tests__/extension.service.spec.ts | 3 +- packages/common/src/styles/extra-styling.scss | 14 +- .../common/src/styles/material-svg-icons.scss | 84 ++++ .../common/src/styles/slick-bootstrap.scss | 4 +- packages/common/src/styles/slick-plugins.scss | 15 +- .../styles/slickgrid-theme-salesforce.scss | 30 +- packages/vanilla-bundle/package.json | 13 +- .../slick-vanilla-grid-constructor.spec.ts | 98 +--- .../components/slick-vanilla-grid-bundle.ts | 112 +---- packages/vanilla-bundle/src/index.ts | 2 + .../vanilla-bundle/src/interfaces/index.ts | 1 + .../slickerGridInstance.interface.ts | 16 +- .../__tests__/resizer.service.spec.ts | 244 ++++++++++ packages/vanilla-bundle/src/services/index.ts | 1 + .../src/services/resizer.service.ts | 166 +++++++ test/cypress/integration/example07.spec.js | 7 - test/cypress/integration/example11.spec.js | 189 ++++++++ yarn.lock | 447 ++++++++++-------- 42 files changed, 1525 insertions(+), 472 deletions(-) create mode 100644 examples/webpack-demo-vanilla-bundle/src/examples/example11.html create mode 100644 examples/webpack-demo-vanilla-bundle/src/examples/example11.scss create mode 100644 examples/webpack-demo-vanilla-bundle/src/examples/example11.ts create mode 100644 packages/vanilla-bundle/src/interfaces/index.ts rename packages/{common => vanilla-bundle}/src/interfaces/slickerGridInstance.interface.ts (86%) create mode 100644 packages/vanilla-bundle/src/services/__tests__/resizer.service.spec.ts create mode 100644 packages/vanilla-bundle/src/services/resizer.service.ts create mode 100644 test/cypress/integration/example11.spec.js diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 820cec8fa..52d9fa1b0 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -20,11 +20,11 @@ Thanks for filing a Feature Request! However, before you submit, please read the ### Your Environment -| Software | Version(s) | -| -------------------- | ---------- | +| Software | Version(s) | +| --------------------- | ---------- | | Slickgrid-Universal | x.y | -| TypeScript | x.y | -| Package Name | x.y | +| TypeScript | x.y | +| Package Name | x.y | ### Describe the Bug @@ -43,4 +43,4 @@ Thanks for filing a Feature Request! However, before you submit, please read the ### Code Sample - \ No newline at end of file + diff --git a/.vscode/launch.json b/.vscode/launch.json index 731bdd5a6..647e291f2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -14,10 +14,7 @@ "userDataDir": "${workspaceRoot}/.chrome", "trace": true, "sourceMapPathOverrides": { - "webpack:///../../packages/common/*": "${webRoot}/packages/common/*", - "webpack:///../../packages/excel-export/*": "${webRoot}/packages/excel-export/*", - "webpack:///../../packages/file-export/*": "${webRoot}/packages/file-export/*", - "webpack:///../../packages/vanilla-bundle/*": "${webRoot}/packages/vanilla-bundle/*", + "webpack:///${workspaceRoot}/packages/*": "${webRoot}/packages/*", "webpack:///./src/*": "${webRoot}/examples/webpack-demo-vanilla-bundle/src/*" } }, diff --git a/README.md b/README.md index aea969afa..eccb6dd7a 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ yarn run test:watch - [x] Grid Menu - [x] Header Button - [x] Header Menu - - [ ] Resizer + - [x] Resizer - [ ] Row Detail - [x] Row Move Manager - [x] Row Selection @@ -157,5 +157,6 @@ yarn run test:watch - [x] Copy cell text (context menu) doesn't work in SF - [x] Remove all Services init method 2nd argument (we can get DataView directly from the Grid object) - [x] The Pagination/Footer width is a little off sometime compare to the width of the grid container -- [ ] See if we can make all vanilla-grid-bundle services as readonly - [ ] Check why `DOM Purify` doesn't work in SF +- [ ] See if we can get all the vanilla-grid-bundle `instances` as `readonly` class members +- [ ] Draggable Grouping pre-header (dragging) is not working as intended diff --git a/examples/webpack-demo-vanilla-bundle/package.json b/examples/webpack-demo-vanilla-bundle/package.json index f93db33c2..0b03c0bea 100644 --- a/examples/webpack-demo-vanilla-bundle/package.json +++ b/examples/webpack-demo-vanilla-bundle/package.json @@ -35,13 +35,13 @@ "devDependencies": { "@types/jquery": "^3.5.0", "@types/moment": "^2.13.0", - "@types/node": "^14.0.23", + "@types/node": "^14.0.26", "@types/webpack": "^4.41.21", "clean-webpack-plugin": "^3.0.0", "copy-webpack-plugin": "^6.0.3", - "css-loader": "^3.6.0", + "css-loader": "^4.0.0", "file-loader": "^6.0.0", - "fork-ts-checker-webpack-plugin": "^5.0.7", + "fork-ts-checker-webpack-plugin": "^5.0.11", "html-loader": "^1.1.0", "html-webpack-plugin": "^4.3.0", "json-loader": "^0.5.7", @@ -52,8 +52,8 @@ "ts-loader": "^8.0.1", "ts-node": "^8.10.2", "url-loader": "^4.1.0", - "webpack": "^4.43.0", + "webpack": "^4.44.0", "webpack-cli": "^3.3.12", "webpack-dev-server": "^3.11.0" } -} +} \ No newline at end of file diff --git a/examples/webpack-demo-vanilla-bundle/src/app-routing.ts b/examples/webpack-demo-vanilla-bundle/src/app-routing.ts index efc1d7efd..687a55188 100644 --- a/examples/webpack-demo-vanilla-bundle/src/app-routing.ts +++ b/examples/webpack-demo-vanilla-bundle/src/app-routing.ts @@ -14,6 +14,7 @@ export class AppRouting { { route: 'example08', name: 'example08', title: 'Example08', moduleId: './examples/example08' }, { route: 'example09', name: 'example09', title: 'Example09', moduleId: './examples/example09' }, { route: 'example10', name: 'example10', title: 'Example10', moduleId: './examples/example10' }, + { route: 'example11', name: 'example11', title: 'Example11', moduleId: './examples/example11' }, { route: 'example50', name: 'example50', title: 'Example50', moduleId: './examples/example50' }, { route: 'example51', name: 'example51', title: 'Example51', moduleId: './examples/example51' }, { route: '', redirect: 'example01' }, diff --git a/examples/webpack-demo-vanilla-bundle/src/app.html b/examples/webpack-demo-vanilla-bundle/src/app.html index 877774d8f..306cd99cd 100644 --- a/examples/webpack-demo-vanilla-bundle/src/app.html +++ b/examples/webpack-demo-vanilla-bundle/src/app.html @@ -9,12 +9,12 @@

Slickgrid-Universal

+ allowtransparency="true" scrolling="no" frameborder="0" width="170px" height="20px"> Example10 - Grid with GraphQL Backend Service + + Example11 - Queued Editing +