slickgrid-vue 1.2.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,9 +5,9 @@
5
5
  [![NPM downloads](https://img.shields.io/npm/dy/slickgrid-vue)](https://npmjs.org/package/slickgrid-vue)
6
6
  [![npm](https://img.shields.io/npm/v/slickgrid-vue.svg?logo=npm&logoColor=fff&label=npm)](https://www.npmjs.com/package/slickgrid-vue)
7
7
  [![npm bundle size](https://img.shields.io/bundlephobia/minzip/slickgrid-vue?color=success&label=gzip)](https://bundlephobia.com/result?p=slickgrid-vue)
8
- [![Actions Status](https://github.com/ghiscoding/slickgrid-universal/actions/workflows/vue-cypress.yml/badge.svg)](https://github.com/ghiscoding/slickgrid-universal/actions/workflows/vue-cypress.yml)
8
+ [![Actions Status](https://github.com/ghiscoding/slickgrid-universal/actions/workflows/test-vue.yml/badge.svg)](https://github.com/ghiscoding/slickgrid-universal/actions/workflows/test-vue.yml)
9
9
 
10
- ## Description
10
+ ## Description
11
11
  SlickGrid-Vue is a custom component created specifically for [VueJS](https://vuejs.org/) framework, it is a wrapper on top of Slickgrid-Universal library which contains the core functionalities. Slickgrid-Universal is written with TypeScript in browser native code, it is framework agnostic and is a monorepo that includes all Editors, Filters, Extensions and Services related to SlickGrid usage with also a few optional packages (like GraphQL, OData, Export to Excel, ...).
12
12
 
13
13
  ## Documentation
@@ -15,9 +15,26 @@ SlickGrid-Vue is a custom component created specifically for [VueJS](https://vue
15
15
 
16
16
  ## Installation
17
17
 
18
+ You can also play with the live Stackbliz [Slickgrid-Vue-Demos](https://github.com/ghiscoding/slickgrid-vue-demos).
19
+ Stackblitz is also the recommended way to provide a repro when opening a new bug or feature request.
20
+
21
+ [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/ghiscoding/slickgrid-vue-demos)
22
+
23
+ Visit the **[Docs - Quick Start](https://ghiscoding.gitbook.io/slickgrid-vue/getting-started/quick-start)** and/or clone the [Slickgrid-Vue-Demos](https://github.com/ghiscoding/slickgrid-vue-demos) repository for a fully working local demo. Please make sure to read the documentation before opening any new issue and also consider asking installation and/or general questions on [Stack Overflow](https://stackoverflow.com/search?tab=newest&q=slickgrid) unless you think there's a bug with the library.
24
+
18
25
  ```sh
19
26
  npm install slickgrid-vue
20
27
  ```
28
+ Install any optional Slickgrid-Universal dependencies, for example Excel Export
29
+ ```sh
30
+ npm install @slickgrid-universal/excel-export
31
+ ```
32
+
33
+ ### Requirements
34
+ - Vue >=3.5
35
+
36
+ ## License
37
+ [MIT License](../../LICENSE)
21
38
 
22
39
  #### Basic Usage
23
40
 
@@ -42,50 +59,18 @@ const gridOptions = ref<GridOption>({ /*...*/ }); // optional grid options
42
59
  grid-id="grid1"
43
60
  v-model:columns="columnDefinitions"
44
61
  v-model:data="dataset"
45
- v-model:options="gridOptions"
62
+ v-model:options="gridOptions"
46
63
  ></slickgrid-vue>
47
64
  </template>
48
65
  ```
49
66
 
50
- #### Requirements
51
- - Vue >=3.4
52
-
53
- ### Stackblitz
54
-
55
- You can also play with the live Stackbliz [Slickgrid-Vue-Demos](https://github.com/ghiscoding/slickgrid-vue-demos).
56
- Stackblitz is also the recommended way to provide a repro when opening a new bug or feature request.
57
-
58
- [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/ghiscoding/slickgrid-vue-demos)
59
-
60
- Visit the **[Docs - Quick Start](https://ghiscoding.gitbook.io/slickgrid-vue/getting-started/quick-start)** and/or clone the [Slickgrid-Vue-Demos](https://github.com/ghiscoding/slickgrid-vue-demos) repository for a fully working local demo. Please make sure to read the documentation before opening any new issue and also consider asking installation and/or general questions on [Stack Overflow](https://stackoverflow.com/search?tab=newest&q=slickgrid) unless you think there's a bug with the library.
61
-
62
- ### Styling Themes
63
-
64
- Multiple styling themes are available
65
- - Default (UI agnostic)
66
- - Bootstrap (see all Slickgrid-Vue [live demos](https://ghiscoding.github.io/slickgrid-vue-demos/))
67
- - Material (see [Slickgrid-Universal](https://ghiscoding.github.io/slickgrid-universal/#/example07))
68
- - Salesforce (see [Slickgrid-Universal](https://ghiscoding.github.io/slickgrid-universal/#/example16))
69
-
70
- Also note that all of these themes also include a **Dark Theme** equivalent and even though Bootstrap is often used in the live demos, it also works well with any other UI framework like Bulma, Material, Quasar...
71
-
72
- ### Live Demo page
73
- `Slickgrid-Vue` works with Bootstrap or any other UI frameworks like Material, Bulma, Quasar... and there are also extra styling themes based on Material & Salesforce which are also available. You can also use different SVG icons, you may want to look at the [Docs - SVG Icons](https://ghiscoding.gitbook.io/slickgrid-vue/styling/svg-icons)
74
- - [Bootstrap 5 demo](https://ghiscoding.github.io/slickgrid-vue-demos) / [examples repo](https://github.com/ghiscoding/slickgrid-vue-demos)
75
-
76
- #### Working Demos
77
- For a complete set of working demos (45+ examples), we strongly suggest you to clone the [Slickgrid-Vue Demos](https://github.com/ghiscoding/slickgrid-vue-demos) repository (instructions are provided in it). The repo comes with multiple examples and are updated frequently (basically every time a new version is out) and it is also used as the GitHub [live demo]([https://github.com/ghiscoding/slickgrid-vue-demos](https://ghiscoding.github.io/slickgrid-vue-demos/) page.
67
+ ### Like it? ⭐ it
68
+ You like **Slickgrid-Vue**? Be sure to upvote ⭐ the project, and perhaps support me with caffeine [☕](https://ko-fi.com/ghiscoding) or sponsor me on GitHub. Any contributions are also very welcome. Thanks
78
69
 
79
- ## License
80
- [MIT License](LICENSE)
70
+ <a href='https://ko-fi.com/ghiscoding' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi3.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
81
71
 
82
72
  ## Latest News & Releases
83
73
  Check out the [Releases](https://github.com/ghiscoding/slickgrid-universal/releases) section for all latest News & Releases.
84
74
 
85
75
  ### Tested with [Cypress](https://www.cypress.io/) (E2E Tests)
86
76
  Slickgrid-Universal has **100%** Unit Test Coverage and all Slickgrid-Vue Examples are tested with [Cypress](https://www.cypress.io/) for E2E testing and they are running on every new PR.
87
-
88
- ### Like it? ⭐ it
89
- You like **Slickgrid-Vue**? Be sure to upvote ⭐ the project, and perhaps support me with caffeine [☕](https://ko-fi.com/ghiscoding) or sponsor me on GitHub. Any contributions are also very welcome. Thanks
90
-
91
- <a href='https://ko-fi.com/ghiscoding' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi3.png?v=6' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>
package/dist/index.d.ts CHANGED
@@ -64,7 +64,7 @@ import { OnHeaderMouseEventArgs } from '@slickgrid-universal/common';
64
64
  import { OnHeaderRowCellRenderedEventArgs } from '@slickgrid-universal/common';
65
65
  import { OnKeyDownEventArgs } from '@slickgrid-universal/common';
66
66
  import { OnRenderedEventArgs } from '@slickgrid-universal/common';
67
- import { OnRowBackToViewportRangeArgs } from '@slickgrid-universal/common';
67
+ import { OnRowBackOrOutOfViewportRangeArgs } from '@slickgrid-universal/common';
68
68
  import { OnRowCountChangedEventArgs } from '@slickgrid-universal/common';
69
69
  import { OnRowsChangedEventArgs } from '@slickgrid-universal/common';
70
70
  import { OnRowsOrCountChangedEventArgs } from '@slickgrid-universal/common';
@@ -219,7 +219,7 @@ export declare interface RowDetailView extends RowDetailView_2 {
219
219
  * Optionally pass your Parent Component reference to your Child Component (row detail component).
220
220
  * note:: If anyone finds a better way of passing the parent to the row detail extension, please reach out and/or create a PR
221
221
  */
222
- parent?: any;
222
+ parentRef?: any;
223
223
  /** View Model of the preload template which shows after opening row detail & before row detail data shows up */
224
224
  preloadComponent?: DefineComponent<any, any, any>;
225
225
  /** View Model template that will be loaded once the async function finishes */
@@ -255,8 +255,6 @@ export declare interface SlickgridVueInstance {
255
255
  gridEventService: GridEventService;
256
256
  /** Grid State Service */
257
257
  gridStateService: GridStateService;
258
- /** @deprecated @use `headerGroupingService` */
259
- groupingService: HeaderGroupingService;
260
258
  /** Grouping (and colspan) Service */
261
259
  headerGroupingService: HeaderGroupingService;
262
260
  /** Pagination Component */
@@ -634,7 +632,7 @@ export declare interface SlickgridVueProps {
634
632
  value: any;
635
633
  };
636
634
  }>) => void;
637
- onOnHeaderMenuHideColumns?: (e: CustomEvent<{
635
+ onOnHideColumns?: (e: CustomEvent<{
638
636
  eventData: any;
639
637
  args: {
640
638
  columns: Column[];
@@ -659,10 +657,10 @@ export declare interface SlickgridVueProps {
659
657
  eventData: any;
660
658
  args: HeaderMenuCommandItemCallbackArgs;
661
659
  }>) => void;
662
- onOnItemAdded?: (e: CustomEvent<any>) => void;
663
- onOnItemDeleted?: (e: CustomEvent<any>) => void;
664
- onOnItemUpdated?: (e: CustomEvent<any>) => void;
665
- onOnItemUpserted?: (e: CustomEvent<any>) => void;
660
+ onOnItemsAdded?: (e: CustomEvent<any>) => void;
661
+ onOnItemsDeleted?: (e: CustomEvent<any>) => void;
662
+ onOnItemsUpdated?: (e: CustomEvent<any>) => void;
663
+ onOnItemsUpserted?: (e: CustomEvent<any>) => void;
666
664
  onOnFullResizeByContentRequested?: (e: CustomEvent<any>) => void;
667
665
  onOnFilterChanged?: (e: CustomEvent<any>) => void;
668
666
  onOnFilterCleared?: (e: CustomEvent<any>) => void;
@@ -742,7 +740,7 @@ export declare class SlickRowDetailView extends SlickRowDetailView_2 {
742
740
  item: any;
743
741
  }): void;
744
742
  /** When Row comes back to Viewport Range, we need to redraw the View */
745
- protected handleOnRowBackToViewportRange(_e: SlickEventData<OnRowBackToViewportRangeArgs>, args: {
743
+ protected handleOnRowBackToViewportRange(_e: SlickEventData<OnRowBackOrOutOfViewportRangeArgs>, args: {
746
744
  item: any;
747
745
  rowId: string | number;
748
746
  rowIndex: number;
@@ -799,7 +797,7 @@ export declare interface ViewModelBindableInputData {
799
797
  addon: any;
800
798
  grid: SlickGrid;
801
799
  dataView: SlickDataView;
802
- parent?: any;
800
+ parentRef?: any;
803
801
  }
804
802
 
805
803