@revolist/vue3-datagrid 4.8.0 → 4.8.2
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 +52 -16
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
### 🚨 Repository Notice 🚨
|
|
2
|
+
|
|
3
|
+
This repo is read-only and will be **deprecated** in v5+ in favor of monorepos. Post issues [here](https://github.com/revolist/revogrid). Happy coding! 🖥️💻
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
<p align="center">
|
|
2
8
|
<a href="https://rv-grid.com">
|
|
3
9
|
<img src="./assets/logo.svg" alt="RevoGrid" height="150" />
|
|
@@ -104,7 +110,7 @@ Support Millions of cells and thousands of columns easy and efficiently for fast
|
|
|
104
110
|
|
|
105
111
|
|
|
106
112
|
|
|
107
|
-
### Usage Vue 3
|
|
113
|
+
### Usage Vue 3
|
|
108
114
|
|
|
109
115
|
With NPM:
|
|
110
116
|
|
|
@@ -139,18 +145,19 @@ import { provide, readonly, ref } from 'vue';
|
|
|
139
145
|
/**
|
|
140
146
|
* Import Revogrid, Renderer and Editor for Vue
|
|
141
147
|
*/
|
|
142
|
-
import Grid, { VGridVueEditor, VGridVueTemplate } from '@revolist/vue3-datagrid';
|
|
148
|
+
import Grid, { VGridVueEditor, VGridVueTemplate, Editors } from '@revolist/vue3-datagrid';
|
|
143
149
|
|
|
144
150
|
import Editor from './Editor.vue';
|
|
145
151
|
import Cell from './Cell.vue';
|
|
146
|
-
import { Editors } from '@revolist/revogrid';
|
|
147
152
|
|
|
148
153
|
const count = ref(0)
|
|
149
154
|
provide('read-only-count', readonly(count));
|
|
150
155
|
|
|
151
156
|
const MY_EDITOR = 'custom-editor';
|
|
157
|
+
|
|
152
158
|
// Vue column editor register
|
|
153
159
|
const gridEditors: Editors = { [MY_EDITOR]: VGridVueEditor(Editor) };
|
|
160
|
+
|
|
154
161
|
// Define columns
|
|
155
162
|
const columns = [
|
|
156
163
|
{
|
|
@@ -197,7 +204,7 @@ function testAction(e: CustomEvent) {
|
|
|
197
204
|
|
|
198
205
|
<script lang="ts" setup>
|
|
199
206
|
import { defineProps, ref, inject } from 'vue';
|
|
200
|
-
import type { ColumnDataSchemaModel } from '@revolist/
|
|
207
|
+
import type { ColumnDataSchemaModel } from '@revolist/vue3-datagrid';
|
|
201
208
|
|
|
202
209
|
const props = defineProps<ColumnDataSchemaModel>();
|
|
203
210
|
const cell = ref<HTMLElement>();
|
|
@@ -244,27 +251,56 @@ export default defineComponent({
|
|
|
244
251
|
```
|
|
245
252
|
|
|
246
253
|
|
|
254
|
+
[Example and guide](https://rv-grid.com/guide/vue3/)
|
|
255
|
+
|
|
247
256
|
## Versions
|
|
248
257
|
|
|
249
258
|
- **2.0+**: Introduced the plugin system, grouping, sorting, and filtering.
|
|
250
|
-
- **3.0+**: Breaking changes introduced
|
|
251
|
-
|
|
252
|
-
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
- **3.0+**: Breaking changes introduced:
|
|
260
|
+
- Removed the redundant viewport component.
|
|
261
|
+
- Renamed classes to support Bootstrap and other libraries:
|
|
262
|
+
- `row` -> `rgRow`
|
|
263
|
+
- `col` -> `rgCol`
|
|
264
|
+
- `data-cell` -> `rgCell`
|
|
265
|
+
- `data-header-cell` -> `rgHeaderCell`
|
|
266
|
+
- Migrated all method names to lowercase to align with modern event naming conventions. For example, `afterEdit` is now `afteredit`. Check the API for details.
|
|
267
|
+
- Added support for pure ESM modules to enable the use of the grid in all modern frontend tooling like Vite, Parcel, etc. You can now import custom elements without lazy loading. Note that you are responsible for polyfills.
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
- **4.0+**: Breaking changes introduced. See the [migration guide](https://rv-grid.com/guide/migration).
|
|
271
|
+
|
|
272
|
+
- Redesigned type support:
|
|
273
|
+
- Removed deprecated namespaces:
|
|
274
|
+
- **Before**: `RevoGrid.ColumnDataSchemaRegular`
|
|
275
|
+
- **Now**: `ColumnDataSchemaRegular`;
|
|
276
|
+
- Improved type import:
|
|
277
|
+
- **Before**: `import { RevoGrid } from '@revolist/revogrid/dist/types/interfaces'`
|
|
278
|
+
- **Now**: `import { ColumnDataSchemaRegular } from '@revolist/revogrid'`.
|
|
279
|
+
- Changed viewport type names everywhere. For example, before: `rowDefinitions: [{ type: "row", index: 0, size: 145 }]`, after: `rowDefinitions: [{ type: "rgRow", index: 0, size: 145 }]`.
|
|
280
|
+
- Updated [event](https://rv-grid.com/guide/api/revoGrid.html#Events) naming convention. Review your [event](https://rv-grid.com/guide/api/revoGrid.html#Events) usage. [Event names](https://rv-grid.com/guide/api/revoGrid.html#Events) are all lowercase now and are aligned with modern event naming conventions. For example, `afterEdit` -> `afteredit`.
|
|
281
|
+
|
|
282
|
+
- **Major improvements**:
|
|
283
|
+
- Rethought the entire framework approach. Introduced Pro version with advance support and pro features.
|
|
284
|
+
- Introduced slot support.
|
|
285
|
+
- Updated scrolling system for better mobile support.
|
|
286
|
+
- Advance template support. Introduced `additionalData` for templates and editors. `Prop` gives access to parent/root app context.
|
|
287
|
+
- Redesigned the documentation.
|
|
288
|
+
- Fixed major issues and significantly improved overall performance, making the grid multiple time faster.
|
|
289
|
+
- Enhanced plugin support - now with full access to grid providers.
|
|
290
|
+
- Updated documentation.
|
|
291
|
+
- Provided full framework support and native render for Angular, React, Svelte and Vue.
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
## Our Sponsors
|
|
295
|
+
|
|
296
|
+
We would like to extend our heartfelt gratitude to our sponsors for their generous support. Their contributions help us maintain and develop RevoGrid, ensuring continuous improvements and updates.
|
|
261
297
|
|
|
262
298
|
[](https://altruistiq.com)
|
|
263
299
|
|
|
264
300
|
|
|
265
301
|
### Become a Sponsor
|
|
266
302
|
|
|
267
|
-
If you or your company would like to support the ongoing development of RevoGrid, please consider becoming a sponsor. Your support will help us continue to improve the project and provide the best possible tool for the community.
|
|
303
|
+
If you or your company would like to support the ongoing development of RevoGrid, please consider becoming a sponsor or use or [Pro version](https://rv-grid.com/pro/). Your support will help us continue to improve the project and provide the best possible tool for the community.
|
|
268
304
|
|
|
269
305
|
[](https://opencollective.com/revogrid)
|
|
270
306
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revolist/vue3-datagrid",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.2",
|
|
4
4
|
"description": "Vue 3 DataGrid Spreadsheet component with native Vue 3 cell render support",
|
|
5
5
|
"main": "./dist/vue3-datagrid.umd.cjs",
|
|
6
6
|
"module": "./dist/vue3-datagrid.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"homepage": "https://github.com/revolist/revogrid#readme",
|
|
66
66
|
"license": "MIT",
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@revolist/revogrid": "4.8.
|
|
68
|
+
"@revolist/revogrid": "4.8.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@stencil/core": "^4.19.2",
|