slickgrid-vue 9.13.0 → 10.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
@@ -65,12 +65,22 @@ const gridOptions = ref<GridOption>({ /*...*/ }); // optional grid options
65
65
  <slickgrid-vue
66
66
  grid-id="grid1"
67
67
  v-model:columns="columnDefinitions"
68
- v-model:data="dataset"
68
+ v-model:dataset="dataset"
69
69
  v-model:options="gridOptions"
70
70
  ></slickgrid-vue>
71
71
  </template>
72
72
  ```
73
73
 
74
+
75
+ ### Versions Compatibility
76
+
77
+ > **Note** Please be aware that only the latest major version of Slickgrid-Vue will be supported and receive bug fixes.
78
+
79
+ | Slickgrid-Vue | Vue | Migration Guide | Notes | Date |
80
+ |:---------------:| --------- | --------------- | ----- | ---- |
81
+ | 10.x | Vue >=3.5.0 | [Migration 10.x](https://ghiscoding.gitbook.io/slickgrid-vue/migrations/migration-to-10.x) | Smaller code, requires Slickgrid-Universal [10.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v10.0.0) | 2026-02-28 |
82
+ | 9.x | Vue >=3.5.0 | [Migration 9.x](https://ghiscoding.gitbook.io/slickgrid-vue/migrations/migration-to-9.x) | ESM-Only, requires Slickgrid-Universal [9.x](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v9.0.0) | 2025-05-10 |
83
+
74
84
  ### Like it? ⭐ it
75
85
  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
76
86
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Aggregators } from '@slickgrid-universal/common';
2
- import { App } from 'vue';
3
2
  import { BackendService } from '@slickgrid-universal/common';
4
3
  import { BasePaginationComponent } from '@slickgrid-universal/common';
5
4
  import { BasePaginationModel } from '@slickgrid-universal/common';
@@ -7,7 +6,6 @@ import { Column } from '@slickgrid-universal/common';
7
6
  import { ColumnSort } from '@slickgrid-universal/common';
8
7
  import { ComponentOptionsMixin } from 'vue';
9
8
  import { ComponentProvideOptions } from 'vue';
10
- import { ComponentPublicInstance } from 'vue';
11
9
  import { CurrentFilter } from '@slickgrid-universal/common';
12
10
  import { CurrentSorter } from '@slickgrid-universal/common';
13
11
  import { DefineComponent } from 'vue';
@@ -47,7 +45,6 @@ import { OnBeforeEditCellEventArgs } from '@slickgrid-universal/common';
47
45
  import { OnBeforeFooterRowCellDestroyEventArgs } from '@slickgrid-universal/common';
48
46
  import { OnBeforeHeaderCellDestroyEventArgs } from '@slickgrid-universal/common';
49
47
  import { OnBeforeHeaderRowCellDestroyEventArgs } from '@slickgrid-universal/common';
50
- import { OnBeforeRowDetailToggleArgs } from '@slickgrid-universal/common';
51
48
  import { OnBeforeSetColumnsEventArgs } from '@slickgrid-universal/common';
52
49
  import { OnCellChangeEventArgs } from '@slickgrid-universal/common';
53
50
  import { OnCellCssStylesChangedEventArgs } from '@slickgrid-universal/common';
@@ -72,7 +69,6 @@ import { OnHeaderMouseEventArgs } from '@slickgrid-universal/common';
72
69
  import { OnHeaderRowCellRenderedEventArgs } from '@slickgrid-universal/common';
73
70
  import { OnKeyDownEventArgs } from '@slickgrid-universal/common';
74
71
  import { OnRenderedEventArgs } from '@slickgrid-universal/common';
75
- import { OnRowBackOrOutOfViewportRangeArgs } from '@slickgrid-universal/common';
76
72
  import { OnRowCountChangedEventArgs } from '@slickgrid-universal/common';
77
73
  import { OnRowsChangedEventArgs } from '@slickgrid-universal/common';
78
74
  import { OnRowsOrCountChangedEventArgs } from '@slickgrid-universal/common';
@@ -90,16 +86,12 @@ import { PagingInfo } from '@slickgrid-universal/common';
90
86
  import { PublicProps } from 'vue';
91
87
  import { ResizerService } from '@slickgrid-universal/common';
92
88
  import { RowDetailView as RowDetailView_2 } from '@slickgrid-universal/common';
93
- import { RowDetailViewOption } from '@slickgrid-universal/common';
94
- import { SelectionModel } from '@slickgrid-universal/common';
95
89
  import { SingleColumnSort } from '@slickgrid-universal/common';
96
90
  import { SlickControlList } from '@slickgrid-universal/common';
97
91
  import { SlickDataView } from '@slickgrid-universal/common';
98
- import { SlickEventData } from '@slickgrid-universal/common';
99
92
  import { SlickGrid } from '@slickgrid-universal/common';
100
93
  import { SlickPluginList } from '@slickgrid-universal/common';
101
94
  import { SlickRange } from '@slickgrid-universal/common';
102
- import { SlickRowDetailView as SlickRowDetailView_2 } from '@slickgrid-universal/row-detail-view-plugin';
103
95
  import { Slot } from 'vue';
104
96
  import { SortComparers } from '@slickgrid-universal/common';
105
97
  import { SortService } from '@slickgrid-universal/common';
@@ -114,13 +106,13 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
114
106
  "update:options": (value: GridOption<Column<any>>) => any;
115
107
  "update:pagination": (value: Pagination) => any;
116
108
  "update:columns": (value: Column<any>[]) => any;
117
- "update:data": (value: any[]) => any;
109
+ "update:dataset": (value: any[]) => any;
118
110
  "update:hierarchical": (value: any[]) => any;
119
111
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
120
112
  "onUpdate:options"?: ((value: GridOption<Column<any>>) => any) | undefined;
121
113
  "onUpdate:pagination"?: ((value: Pagination) => any) | undefined;
122
114
  "onUpdate:columns"?: ((value: Column<any>[]) => any) | undefined;
123
- "onUpdate:data"?: ((value: any[]) => any) | undefined;
115
+ "onUpdate:dataset"?: ((value: any[]) => any) | undefined;
124
116
  "onUpdate:hierarchical"?: ((value: any[]) => any) | undefined;
125
117
  }>, {
126
118
  gridId: string;
@@ -134,7 +126,7 @@ declare type __VLS_PublicProps = {
134
126
  'options'?: GridOption;
135
127
  'pagination'?: Pagination;
136
128
  'columns': Column[];
137
- 'data'?: any[];
129
+ 'dataset'?: any[];
138
130
  'hierarchical'?: any[];
139
131
  } & __VLS_Props;
140
132
 
@@ -164,14 +156,6 @@ declare type Callback = (error: any, t: Function) => void;
164
156
 
165
157
  export { Column }
166
158
 
167
- declare interface CreatedView {
168
- id: string | number;
169
- dataContext: any;
170
- app: App | null;
171
- rendered?: boolean;
172
- instance: ComponentPublicInstance | null;
173
- }
174
-
175
159
  /**
176
160
  * Loop through and dispose of all subscriptions when they are disposable
177
161
  * @param subscriptions
@@ -466,83 +450,6 @@ export declare interface SlickgridVueProps {
466
450
  onOnLanguageChange?: VueRegularEventHandler<string>;
467
451
  }
468
452
 
469
- export declare class SlickRowDetailView extends SlickRowDetailView_2 {
470
- private readonly eventPubSubService;
471
- protected _component?: any;
472
- protected _preloadComponent?: any;
473
- protected _preloadApp?: App<Element>;
474
- protected _views: CreatedView[];
475
- protected _subscriptions: EventSubscription[];
476
- protected _userProcessFn?: (item: any) => Promise<any>;
477
- protected gridContainerElement: HTMLElement;
478
- constructor(eventPubSubService: EventPubSubService);
479
- get addonOptions(): RowDetailViewOption;
480
- protected get datasetIdPropName(): string;
481
- get gridOptions(): GridOption;
482
- get rowDetailViewOptions(): RowDetailView | undefined;
483
- /** Dispose of the RowDetailView Extension */
484
- dispose(): void;
485
- /** Dispose of all the opened Row Detail Panels Components */
486
- disposeAllViewComponents(): void;
487
- disposeViewByItem(item: any, removeFromArray?: boolean): void;
488
- /** Get the instance of the SlickGrid addon (control or plugin). */
489
- getAddonInstance(): SlickRowDetailView | null;
490
- init(grid: SlickGrid): void;
491
- /**
492
- * Create the plugin before the Grid creation, else it will behave oddly.
493
- * Mostly because the column definitions might change after the grid creation
494
- */
495
- register(rowSelectionPlugin?: SelectionModel): this;
496
- /** Redraw (re-render) all the expanded row detail View Components */
497
- redrawAllViewComponents(forceRedraw?: boolean): void;
498
- /** Render all the expanded row detail View Components */
499
- renderAllViewModels(): void;
500
- /** Redraw the necessary View Component */
501
- redrawViewComponent(view: CreatedView): void;
502
- /** Render (or re-render) the View Component (Row Detail) */
503
- renderPreloadView(item: any): void;
504
- /** Render (or re-render) the View Component (Row Detail) */
505
- renderViewModel(item: any): void;
506
- /** remove any previous mounted views, if found then unmount them and delete them from our references array */
507
- protected unmountViewWhenExists(itemId: string | number): void;
508
- protected upsertViewRefs(item: any, options: {
509
- app: App | null;
510
- instance: ComponentPublicInstance | null;
511
- rendered: boolean;
512
- }): void;
513
- protected disposeViewComponent(expandedView: CreatedView): CreatedView | void;
514
- /**
515
- * Just before the row get expanded or collapsed we will do the following
516
- * First determine if the row is expanding or collapsing,
517
- * if it's expanding we will add it to our View Components reference array if we don't already have it
518
- * or if it's collapsing we will remove it from our View Components reference array
519
- */
520
- protected handleOnBeforeRowDetailToggle(_e: SlickEventData<OnBeforeRowDetailToggleArgs>, args: {
521
- grid: SlickGrid;
522
- item: any;
523
- }): void;
524
- /** When Row comes back to Viewport Range, we need to redraw the View */
525
- protected handleOnRowBackToViewportRange(_e: SlickEventData<OnRowBackOrOutOfViewportRangeArgs>, args: {
526
- item: any;
527
- rowId: string | number;
528
- rowIndex: number;
529
- expandedRows: (string | number)[];
530
- rowIdsOutOfViewport: (string | number)[];
531
- grid: SlickGrid;
532
- }): void;
533
- /**
534
- * notify the onAsyncResponse with the "args.item" (required property)
535
- * the plugin will then use item to populate the row detail panel with the "postTemplate"
536
- * @param item
537
- */
538
- protected notifyTemplate(item: any): void;
539
- /**
540
- * On Processing, we will notify the plugin with the new item detail once backend server call completes
541
- * @param item
542
- */
543
- protected onProcessing(item: any): Promise<void>;
544
- }
545
-
546
453
  export { SortComparers }
547
454
 
548
455
  /**