Skip to content

Commit

Permalink
feat(common): add optional scrollIntoView to GridService addItems (
Browse files Browse the repository at this point in the history
…#165)

- this feature was actually implemented in Slickgrid-Universal
  • Loading branch information
ghiscoding authored Jul 21, 2023
1 parent 3e35928 commit 2c4aa98
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 104 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@
]
},
"dependencies": {
"@slickgrid-universal/common": "3.0.1",
"@slickgrid-universal/custom-footer-component": "3.0.1",
"@slickgrid-universal/empty-warning-component": "3.0.1",
"@slickgrid-universal/event-pub-sub": "3.0.1",
"@slickgrid-universal/pagination-component": "3.0.1",
"@slickgrid-universal/common": "3.1.0",
"@slickgrid-universal/custom-footer-component": "3.1.0",
"@slickgrid-universal/empty-warning-component": "3.1.0",
"@slickgrid-universal/event-pub-sub": "3.1.0",
"@slickgrid-universal/pagination-component": "3.1.0",
"dequal": "^2.0.3",
"dompurify": "^3.0.5",
"font-awesome": "^4.7.0",
Expand All @@ -110,13 +110,13 @@
"@fnando/sparkline": "^0.3.10",
"@popperjs/core": "^2.11.8",
"@release-it/conventional-changelog": "^7.0.0",
"@slickgrid-universal/composite-editor-component": "3.0.1",
"@slickgrid-universal/custom-tooltip-plugin": "3.0.1",
"@slickgrid-universal/excel-export": "3.0.1",
"@slickgrid-universal/graphql": "3.0.1",
"@slickgrid-universal/odata": "3.0.1",
"@slickgrid-universal/rxjs-observable": "3.0.1",
"@slickgrid-universal/text-export": "3.0.1",
"@slickgrid-universal/composite-editor-component": "3.1.0",
"@slickgrid-universal/custom-tooltip-plugin": "3.1.0",
"@slickgrid-universal/excel-export": "3.1.0",
"@slickgrid-universal/graphql": "3.1.0",
"@slickgrid-universal/odata": "3.1.0",
"@slickgrid-universal/rxjs-observable": "3.1.0",
"@slickgrid-universal/text-export": "3.1.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
Expand All @@ -143,7 +143,7 @@
"css-loader": "^6.8.1",
"custom-event-polyfill": "^1.0.7",
"esbuild-loader": "^3.0.1",
"cypress": "^12.17.1",
"cypress": "^12.17.2",
"eslint": "^8.45.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prefer-arrow": "^1.2.3",
Expand Down
177 changes: 86 additions & 91 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1043,121 +1043,121 @@
dependencies:
"@sinonjs/commons" "^3.0.0"

"@slickgrid-universal/binding@~3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/binding/-/binding-3.0.1.tgz#afcf130f8d23a3ca1de3b15ec7c1f1940ba67553"
integrity sha512-QViDcnPfhxKvL6ajHSLlzysU0TJpaAnj4wKXVnR/KzIiIBHTxswiN6kZNkNYOdyavU9KTXAW4owmwzNcjyCTDQ==
"@slickgrid-universal/binding@~3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/binding/-/binding-3.1.0.tgz#4c741a5dca3a0ab4a35f7f97afdfeb94ab95cfe3"
integrity sha512-8nFG2fccIbxv2gTKnehlXNoybyokMoXejsXalHTaniAGL9HlRm5G4UXd72mzAvvWuJ1k9ytC91ce/+N4hgSyoQ==

"@slickgrid-universal/common@3.0.1", "@slickgrid-universal/common@~3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/common/-/common-3.0.1.tgz#f98aad7e1cc5bf39c4532fd2658e7fb03f44f777"
integrity sha512-M2fAsy4dKz1o3WpZpBwdJaZ1qwnsKPvTRTaxhMyo5NJSmZ05IyHwp2BGC5NIN3DDvxI8RLxFVGXWisPVDF/GjA==
"@slickgrid-universal/common@3.1.0", "@slickgrid-universal/common@~3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/common/-/common-3.1.0.tgz#472f93d25888747db53b8e4e81f9e9a648ba5874"
integrity sha512-f91qVBRNTE/yxxe59+JJPJrQiMj8xWDwZTYwxFC5Em1WLD/K82yjmYzlvkAJo8lZoZeY2BFcUqCzYXIqfTNC1w==
dependencies:
"@slickgrid-universal/event-pub-sub" "~3.0.1"
"@slickgrid-universal/utils" "~3.0.1"
"@slickgrid-universal/event-pub-sub" "~3.1.0"
"@slickgrid-universal/utils" "~3.1.0"
autocompleter "^8.0.4"
dequal "^2.0.3"
dompurify "^3.0.4"
dompurify "^3.0.5"
flatpickr "^4.6.13"
moment-mini "^2.29.4"
multiple-select-vanilla "^0.4.4"
multiple-select-vanilla "^0.4.5"
slickgrid "^4.0.1"
sortablejs "^1.15.0"
un-flatten-tree "^2.0.12"

"@slickgrid-universal/composite-editor-component@3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/composite-editor-component/-/composite-editor-component-3.0.1.tgz#2c02f2d78a367270697ee91b79ec49c3829aedf4"
integrity sha512-pbAs+7lm/lMkiisd3OvWe0U4zhKv8NUQFC6K2Io0ipVzs1jiKrkL4l/9zTat0gN4FMmB+WU6wVakkMo+iBwbJg==
"@slickgrid-universal/composite-editor-component@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/composite-editor-component/-/composite-editor-component-3.1.0.tgz#346ae9617b6ebb1f875c834201c47aa01af620cc"
integrity sha512-x2kyirklOm0oyaj8bxs6pvgnioWjG7CBG6GHcgS3ThpesYNr6AUxT+X4C+xFMP30T1sMI6JxgqOVn4HXa4o1Hg==
dependencies:
"@slickgrid-universal/common" "~3.0.1"
"@slickgrid-universal/utils" "~3.0.1"
"@slickgrid-universal/common" "~3.1.0"
"@slickgrid-universal/utils" "~3.1.0"

"@slickgrid-universal/custom-footer-component@3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/custom-footer-component/-/custom-footer-component-3.0.1.tgz#fe8047ea1a5d882af0aa5854651019096b7c34cc"
integrity sha512-/HSGrQiNzzY+HOeEtk+Rp9ROaw3C3WZbptpFexztE9UdBsBuFYpCI9Xx39g1YOxakn8UWA1zpGKGQzz2JLco0w==
"@slickgrid-universal/custom-footer-component@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/custom-footer-component/-/custom-footer-component-3.1.0.tgz#ab415fcfa3d326e58ce446647b2d51f433c130ed"
integrity sha512-r/NYu/0zM/lN7+n1+QK3edATpExttDh1Jr5xR7ZmJfn9R30HVVideXTgxka+P0I9PGS+nx9II/TdPzpreEQSJQ==
dependencies:
"@slickgrid-universal/binding" "~3.0.1"
"@slickgrid-universal/common" "~3.0.1"
"@slickgrid-universal/binding" "~3.1.0"
"@slickgrid-universal/common" "~3.1.0"
moment-mini "^2.29.4"

"@slickgrid-universal/custom-tooltip-plugin@3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/custom-tooltip-plugin/-/custom-tooltip-plugin-3.0.1.tgz#d8d85b7de4a107cca62cb9dba1bececa3f4cb8f0"
integrity sha512-MRpWdEazk7EMVwKlFHWfsRCgiGLolyEDz1j5pJWQ7o5e6uaSUBbXVMK62qhMmysF//cBWjOeohSUGp3TYtGrSA==
"@slickgrid-universal/custom-tooltip-plugin@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/custom-tooltip-plugin/-/custom-tooltip-plugin-3.1.0.tgz#012889f2be3cf7aba04e6a41b3585139b4414401"
integrity sha512-zNzELT6mDvm1xXYskbPfbKdZRKE0t9YfaqoyWmO4IWwfCshflpkam00nOAh6krksDuUL+uJjmBMnC2y5fyh6fw==
dependencies:
"@slickgrid-universal/common" "~3.0.1"
dompurify "^3.0.4"
"@slickgrid-universal/common" "~3.1.0"
dompurify "^3.0.5"

"@slickgrid-universal/empty-warning-component@3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/empty-warning-component/-/empty-warning-component-3.0.1.tgz#8ba4f3f6c8ee35161e8a1b7c27daf05f91f90312"
integrity sha512-Y3YpFaMEgfPOtK5Xn5OqJ+OITOfXB8b61HSl5wwCZ+/h/h8BU0MieJM5mP2A997dAEW2ePyEg6aUbgf4TUAtHg==
"@slickgrid-universal/empty-warning-component@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/empty-warning-component/-/empty-warning-component-3.1.0.tgz#0b79bcf02aeb39accc1fa9690dce686bbf802d19"
integrity sha512-pVkjQXqs83rGMCb4GPmVi5wUSg1KPJE4GIcwGh81ZDdlaaNf505SXkvOJ7YPdo24I+t68H3gD7g9XSiXS+fezw==
dependencies:
"@slickgrid-universal/common" "~3.0.1"
"@slickgrid-universal/common" "~3.1.0"

"@slickgrid-universal/event-pub-sub@3.0.1", "@slickgrid-universal/event-pub-sub@~3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/event-pub-sub/-/event-pub-sub-3.0.1.tgz#5f883e6f02b8ea7f521b2550fd65f061aff61165"
integrity sha512-l9Nfjy/1uC8//Pcm89FeKyZyTaxwc7qys5dMJWf5IhOOpeu7cJ9HQNmeriPv68YSqM28WOJbDoEH16K2MY1lNQ==
"@slickgrid-universal/event-pub-sub@3.1.0", "@slickgrid-universal/event-pub-sub@~3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/event-pub-sub/-/event-pub-sub-3.1.0.tgz#163485a8f9fe9edbe99469fa2f507808a2d21fa1"
integrity sha512-RWC7CAp5IiSZe5UpfjcEi8053H3X4GK8PkqRyhNliaMZNJIeibG0JPA9qA55MbbXagjkFb1YDAyf8HW2+ayRaA==
dependencies:
"@slickgrid-universal/utils" "~3.0.1"
"@slickgrid-universal/utils" "~3.1.0"

"@slickgrid-universal/excel-export@3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/excel-export/-/excel-export-3.0.1.tgz#dbb1ee51099d4e843ae7b3bf4156dfaba022e9d2"
integrity sha512-K9SCpNttHo6caUclCWmTryY5/tgB9iSnXUuMVMz6f4lsv66QVZh7ryfXM5REpE2jTqq5WYHCKH7aID6HNlAyBg==
"@slickgrid-universal/excel-export@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/excel-export/-/excel-export-3.1.0.tgz#4b09fb0b7d7d8f284bb61fe40ae182383fd016d8"
integrity sha512-1VyJL9+0uu/iMuwqsJ9DLoT3KNaZx4GblCCNohXv/iNvAmwlR4SiTe6DJfbajpTvdZ6JL6pVoO2h9N4Qy14ExQ==
dependencies:
"@slickgrid-universal/common" "~3.0.1"
"@slickgrid-universal/utils" "~3.0.1"
"@slickgrid-universal/common" "~3.1.0"
"@slickgrid-universal/utils" "~3.1.0"
excel-builder-webpacker "^2.1.8"
moment-mini "^2.29.4"

"@slickgrid-universal/graphql@3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/graphql/-/graphql-3.0.1.tgz#ce05e8370c2688d5c32dafc8e45cdb46da384b67"
integrity sha512-AdX/KFFhA1LeM4It5+Piaxk3+yX97fC/BFiZlKUaGlTQaf3DKZr9GruJ3AAxNblEm7TPjnLRt3gy1HdUhbwF0w==
"@slickgrid-universal/graphql@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/graphql/-/graphql-3.1.0.tgz#aaafe631871e5a46fbf9c6b2be66361b418b8835"
integrity sha512-UM2yvvxMBneTXJh7cQewXDc7Nf3xHWxIr+cCgUifNVjJE/NiofHJAkdXlc7Qg8BQMyIKzM4pLmtpqplbTwxKXw==
dependencies:
"@slickgrid-universal/common" "~3.0.1"
"@slickgrid-universal/common" "~3.1.0"

"@slickgrid-universal/odata@3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/odata/-/odata-3.0.1.tgz#be1fcf9ee5114acd564838292fdf3533e558c058"
integrity sha512-kRpufAMPpDiJWJScCzrNFhUv0LZf4woYEpJ9GwJppRSV1aRh0fhtHCQY1sHC0EyLsNq+LAC3PVyqKkl/N5XivQ==
"@slickgrid-universal/odata@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/odata/-/odata-3.1.0.tgz#4cc5d3228c7621a78d1fafc48ebd19fe9f01b808"
integrity sha512-HkX8yKdTXY1TccixkOs5ZNwvnlaebYQ2tw0zXsmcdhOylAQgxsg0HSgvFzg6EpyxXPL9+dmG/mGoIDXJU4WyLg==
dependencies:
"@slickgrid-universal/common" "~3.0.1"
"@slickgrid-universal/utils" "~3.0.1"
"@slickgrid-universal/common" "~3.1.0"
"@slickgrid-universal/utils" "~3.1.0"

"@slickgrid-universal/pagination-component@3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/pagination-component/-/pagination-component-3.0.1.tgz#0c03955559410ba875c63c4cd626c53dcd5a9ff2"
integrity sha512-cwrazjKzwDxsNePxfsX3joi/03BqqB3QD1C9jjYu5y9m5+SnXukNqfM7PENZlElXhAZiQetDLp0BWRc1Glm/+A==
"@slickgrid-universal/pagination-component@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/pagination-component/-/pagination-component-3.1.0.tgz#a4c8c316d29d804678e6b16dce4d7860f2c26eb4"
integrity sha512-gALXucKXmzjHs95/HsbA6C8ruguXc0PcXmpPycyy5/VJ0UtQLI0yFOhCsgiiqMuKVyO32iGgDAjeotFLsuR9Ow==
dependencies:
"@slickgrid-universal/binding" "~3.0.1"
"@slickgrid-universal/common" "~3.0.1"
"@slickgrid-universal/binding" "~3.1.0"
"@slickgrid-universal/common" "~3.1.0"

"@slickgrid-universal/rxjs-observable@3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/rxjs-observable/-/rxjs-observable-3.0.1.tgz#f515a7b6b7dca342a2caeee2e7e9fc2dfe8dbddf"
integrity sha512-7F0fc2BZnN5q9vTYRnPAPMg5qAyN83S28khcXmeUcoM9FNYD2iSycODhUYL2FoigLUJzJJpJ3dAzWTJ0+D6FHA==
"@slickgrid-universal/rxjs-observable@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/rxjs-observable/-/rxjs-observable-3.1.0.tgz#a45a7864e56bd343be6f423ba1e000d9fd7cb2ff"
integrity sha512-vzUzHejKlOBIiw1m/zdS0Eb5q5uYw6e42ZOlSjk3YXyZrXpjYAeCskjD2rtrEjEO2AtZLX7IRVxiDUtOzJUnRg==
dependencies:
"@slickgrid-universal/common" "~3.0.1"
"@slickgrid-universal/common" "~3.1.0"
rxjs "^7.8.1"

"@slickgrid-universal/text-export@3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/text-export/-/text-export-3.0.1.tgz#365c7e85226f8d4c32136a9c68608bc983a1eefb"
integrity sha512-B838vhhP7B/t2FG999TewgLZSPnzAIWkl0DJGSjdkJnkF5PZkm4I0oFnwgK+U8/dxC6cFx38c8d8IrGB+9TaQg==
"@slickgrid-universal/text-export@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/text-export/-/text-export-3.1.0.tgz#cbaf20568d745d6f113f84947682b8ea9852d01a"
integrity sha512-h8znAr3iojqnN8ZgPFFlG9lCZk1VWzIYZoJ7cqV/3W1xJCLun3GJ/XxTocs2yLXSz4lFeedwWBHiKTK536TdBA==
dependencies:
"@slickgrid-universal/common" "~3.0.1"
"@slickgrid-universal/utils" "~3.0.1"
"@slickgrid-universal/common" "~3.1.0"
"@slickgrid-universal/utils" "~3.1.0"
text-encoding-utf-8 "^1.0.2"

"@slickgrid-universal/utils@~3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/utils/-/utils-3.0.1.tgz#d1e3f2562e94132b696d7c28577473286cf6e979"
integrity sha512-ItuJCQGYbmN+ixlrbrkgF9/wNN4a/Y1oX32GWrrEbsXbnILcTzwpe9TfzZVz4QiTc9g7y3zfPNvot8uNEKakwg==
"@slickgrid-universal/utils@~3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@slickgrid-universal/utils/-/utils-3.1.0.tgz#9906d01e30efd69487c0b781a1b99079e4383e24"
integrity sha512-cjd4RoAsjO0IBH+U8Yfv9NiNZCX4JJXS2b55fYWdYsxdwDKviypHOZyN3ykj+0h1Xjc4vX//4FlPTB55e6M/ig==

"@szmarczak/http-timer@^5.0.1":
version "5.0.1"
Expand Down Expand Up @@ -3306,10 +3306,10 @@ custom-event-polyfill@^1.0.7:
resolved "https://registry.yarnpkg.com/custom-event-polyfill/-/custom-event-polyfill-1.0.7.tgz#9bc993ddda937c1a30ccd335614c6c58c4f87aee"
integrity sha512-TDDkd5DkaZxZFM8p+1I3yAlvM3rSr1wbrOliG4yJiwinMZN8z/iGL7BTlDkrJcYTmgUSb4ywVCc3ZaUtOtC76w==

cypress@^12.17.1:
version "12.17.1"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-12.17.1.tgz#777fdcceec4ecd642fc90795f5994853b6ea03f8"
integrity sha512-eKfBgO6t8waEyhegL4gxD7tcI6uTCGttu+ZU7y9Hq8BlpMztd7iLeIF4AJFAnbZH1xjX+wwgg4cRKFNSvv3VWQ==
cypress@^12.17.2:
version "12.17.2"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-12.17.2.tgz#040ac55de1e811f6e037d231a2869d5ab8c29c85"
integrity sha512-hxWAaWbqQBzzMuadSGSuQg5PDvIGOovm6xm0hIfpCVcORsCAj/gF2p0EvfnJ4f+jK2PCiDgP6D2eeE9/FK4Mjg==
dependencies:
"@cypress/request" "^2.88.11"
"@cypress/xvfb" "^1.2.4"
Expand Down Expand Up @@ -3687,11 +3687,6 @@ domhandler@^4.0.0, domhandler@^4.2.0, domhandler@^4.3.1:
dependencies:
domelementtype "^2.2.0"

dompurify@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.0.4.tgz#963116d05c94ee42f8353a3690f935475d8cd2f7"
integrity sha512-ae0mA+Qiqp6C29pqZX3fQgK+F91+F7wobM/v8DRzDqJdZJELXiFUx4PP4pK/mzUS0xkiSEx3Ncd9gr69jg3YsQ==

dompurify@^3.0.5:
version "3.0.5"
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.0.5.tgz#eb3d9cfa10037b6e73f32c586682c4b2ab01fbed"
Expand Down Expand Up @@ -6974,10 +6969,10 @@ multicast-dns@^7.2.5:
dns-packet "^5.2.2"
thunky "^1.0.2"

multiple-select-vanilla@^0.4.4:
version "0.4.4"
resolved "https://registry.yarnpkg.com/multiple-select-vanilla/-/multiple-select-vanilla-0.4.4.tgz#05cbc755b87b32a0966f190a0da63fc9e39b40af"
integrity sha512-R6Sl93PyYAGL8LFUkp8W+ojdBEdVNZYd/eV2H+37rcolMKgyssjA5KsHO1d+5JnO6rr4Xm7npAmGfuHNehBM0g==
multiple-select-vanilla@^0.4.5:
version "0.4.5"
resolved "https://registry.yarnpkg.com/multiple-select-vanilla/-/multiple-select-vanilla-0.4.5.tgz#3fe74e895175b87fb9f08c7d807c1a353aa861c5"
integrity sha512-3lLL7RIZuGg9JzNAYROG+Vi9qjsZLpG+f9RWjU9JVTda/PiX5FZMZb7E8lpR4SY4UskGCZuHiOU6GD5AS4mQ2w==

mute-stream@1.0.0:
version "1.0.0"
Expand Down

0 comments on commit 2c4aa98

Please sign in to comment.