Skip to content

Slickgrid-Universal is a monorepo which includes all Editors, Filters, Extensions, Services related to SlickGrid usage and is also Framework Agnostic

License

Notifications You must be signed in to change notification settings

ghiscoding/slickgrid-universal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slickgrid-Universal

License: MIT TypeScript lerna--lite NPM downloads npm

Actions Status Cypress Vitest codecov

Documentation

📘 Documentation website powered by GitBook for version 4.0+ (or use the Wikis for older versions)

Live Demo

Live Demo website

Also available in Stackblitz (Codeflow) below, this can also be used to provide an issue repro.

Open in Codeflow

Description

This is a monorepo project (using pnpm workspaces and Lerna-Lite) which is regrouping a few packages under a single repository. It was originally requiring SlickGrid as an external dependency, but since v4.0, that is no longer the case and it is now a standalone library. The main goal of this project is to create a common repo that includes all Editors, Filters, Extensions and Services that could be used by any Framework (it is framework agnostic). The original SlickGrid is like an IKEA product that requires assembling everything yourself, however the goal of the project here is to offer an all assembled product that already includes a set of built-in Editors, Filters, Formatters while also offering extra (but optional) packages like OData, GraphQL, Export to Excel ... which SlickGrid simply does not offer by default. The project also provides multiple Themes including Dark Mode. See below for more project details.

Why create this monorepo?

Below is a list of reasons why this project was created and why it is a monorepo project:

  1. it was originally created to remove duplicated code from these 2 repos Angular-Slickgrid and Aurelia-Slickgrid
    • prior to creating this monorepo, we had ~90% duplicated code in these 2 repos which was not very DRY.
    • it also becomes a lot easier to maintain by pushing fixes in 1 common project (this one here).
  2. it also decoupled a few Services which are not required in every project (OData, GraphQL, Export to CSV, Export to Excel, Composite Editor, RxJS, ...)
  3. and finally it is framework agnostic, it could be implemented in many different frameworks (if you are interested in adding a different framework port, which is not listed in the table below, then please open a new Discussion)
    • you can use it in plain JavaScript (ES6) or TypeScript, i.e. we use plain JS (ES6) in our Salesforce environment with LWC (Lightning Web Component)

Latest News & Releases

Check out the Releases section for all the latest News & Releases.

Like my work?

You could ⭐ the lib and perhaps support me with caffeine via the button below. Thanks in advance.

Buy Me a Coffee at ko-fi.com

Live Demos & Available Framework Ports

The GitHub live demo above shows 2 different UI themes (Material Design / Salesforce), but you could also choose the Bootstrap theme which is demoed in other frameworks with available links available in the table below. Also note that even though we use Bootstrap and Bulma in our demos, you could in theory use any other UI libraries. The project tries to be as much agnostic as possible and it does so by providing a ton of CSS/SASS variables which are available to customize it the way you want.

Available Framework Ports

Project Repo Live Demo UI used Description Downloads
Angular-Slickgrid demo Bootstrap for Angular framework NPM downloads
Aurelia-Slickgrid demo Bootstrap for Aurelia framework NPM downloads
Slickgrid-React demo Bootstrap for React framework NPM downloads
Slickgrid-Universal-WebPack-Demo demo Bulma Vanilla demo with WebPack & TypeScript
Slickgrid-Universal-Vite-Demo demo Bulma Vanilla demo with Vite & TypeScript

The Slickgrid-Universal live demo is a Vanilla Implementation (which is not associated to any framework) built with ViteJS (originally WebPack) and is also being used to run E2E tests with Cypress for testing all UI functionalities. The Vanilla-force-bundle, which extends the vanilla-bundle package is what we use in our SalesForce implementation (with Lightning Web Component) and can also be used as Standalone script (see zip file). These were all the original reasons to create this monorepo library and mainly to avoid code duplication. Dark Mode is also shown in some examples (not all), see Dark Mode documentation for more infos.

Fully Tested with Vitest (Unit Tests) - Cypress (E2E Tests)

Slickgrid-Universal has close to 100% Unit Test Coverage, ~5,000 Vitest unit tests and also 700 Cypress E2E tests to cover all Examples and most UI functionalities (each framework implementation also have an additional 600 tests), the goal is to test everything and offer peace of mind that pretty much all the code and PR changes are fully tested before being released.

Available Public Packages

Package Name Version NPM downloads Size (gzip) Changes
@slickgrid-universal/common npm NPM downloads npm bundle size changelog
@slickgrid-universal/binding npm NPM downloads npm bundle size changelog
@slickgrid-universal/event-pub-sub npm NPM downloads npm bundle size changelog
@slickgrid-universal/composite-editor-component npm NPM downloads npm bundle size changelog
@slickgrid-universal/custom-footer-component npm NPM downloads npm bundle size changelog
@slickgrid-universal/custom-tooltip-plugin npm NPM downloads npm bundle size changelog
@slickgrid-universal/empty-warning-component npm NPM downloads npm bundle size changelog
@slickgrid-universal/pagination-component npm NPM downloads npm bundle size changelog
@slickgrid-universal/excel-export npm NPM downloads npm bundle size changelog
@slickgrid-universal/text-export npm NPM downloads npm bundle size changelog
@slickgrid-universal/graphql npm NPM downloads npm bundle size changelog
@slickgrid-universal/odata npm NPM downloads npm bundle size changelog
@slickgrid-universal/row-detail-view-plugin npm NPM downloads npm bundle size changelog
@slickgrid-universal/rxjs-observable npm NPM downloads npm bundle size changelog
@slickgrid-universal/utils npm NPM downloads npm bundle size changelog
@slickgrid-universal/vanilla-bundle npm NPM downloads npm bundle size changelog
@slickgrid-universal/vanilla-force-bundle npm NPM downloads npm bundle size changelog

Installation

NOTE: the installation instructions below are only required if you want to contribute to this project, if however you just want to download a quick Slickgrid-Universal demo, then I would suggest to take a look at the following repos Slickgrid-Universal Vite Demo or Slickgrid-Universal WebPack Demo.

To get started and do development with this monorepo, you will need to clone the repo and follow the steps shown below. You must be at the root of the project in order to run the commands below. This project also requires pnpm.

  1. pnpm installation

This project uses pnpm workspaces, you can install pnpm by choosing 1 of these 2 choices:

a. following their installation

b. or install pnpm via Node corepack

corepack enable

# optionally update pnpm to latest
corepack prepare pnpm@latest --activate
  1. Run Dev (Vanilla Implementation)

There is a Vanilla flavour implementation of this monorepo, vanilla means that it is not associated to any framework and is written in plain TypeScript without being bound to any framework. The implementation is very similar to Angular and Aurelia. It could be used as a guideline to implement it for other framework ports.

pnpm run dev
  1. Build (bundle)

You also need to run a full build in order to run the Vitest unit tests

pnpm run bundle

Tests

You must go through Installation Steps 1-3 prior to running the Vitest unit tests OR steps 1-2 when running Cypress E2E tests.

Vitest Unit Tests

To run all unit tests (with Vitest), you can run one of the following commands (make sure that steps 1-3 were executed prior to running this command)

pnpm run test

# or run Vitest in watch mode
pnpm run test:watch

Cypress E2E Tests

To run all E2E tests (with Cypress), you can run one of the following commands (make sure that steps 1-2 were executed prior to running this command)

# will open the Cypress GUI
pnpm run cypress

# or run it in the shell (like a CI/CD would)
pnpm run cypress:ci

Sponsors