@revolist/svelte-datagrid 4.12.0 → 4.12.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/dist/svelte-datagrid.js
CHANGED
|
@@ -46,6 +46,7 @@ function RevoGrid($$anchor, $$props) {
|
|
|
46
46
|
let jobsBeforeRender = $.prop($$props, "jobsBeforeRender", 8, void 0);
|
|
47
47
|
let registerVNode = $.prop($$props, "registerVNode", 8, void 0);
|
|
48
48
|
let accessible = $.prop($$props, "accessible", 8, void 0);
|
|
49
|
+
let canDrag = $.prop($$props, "canDrag", 8, void 0);
|
|
49
50
|
const refresh = (...args) => $.get(__ref).refresh(...args);
|
|
50
51
|
const setDataAt = (...args) => $.get(__ref).setDataAt(...args);
|
|
51
52
|
const scrollToRow = (...args) => $.get(__ref).scrollToRow(...args);
|
|
@@ -194,6 +195,7 @@ function RevoGrid($$anchor, $$props) {
|
|
|
194
195
|
$.set_custom_element_data(revo_grid, "disable-virtual-y", disableVirtualY());
|
|
195
196
|
$.set_custom_element_data(revo_grid, "hide-attribution", hideAttribution());
|
|
196
197
|
$.set_custom_element_data(revo_grid, "accessible", accessible());
|
|
198
|
+
$.set_custom_element_data(revo_grid, "can-drag", canDrag());
|
|
197
199
|
});
|
|
198
200
|
$.event("contentsizechanged", revo_grid, onEvent);
|
|
199
201
|
$.event("beforeedit", revo_grid, onEvent);
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
let jobsBeforeRender = $__namespace.prop($$props, "jobsBeforeRender", 8, void 0);
|
|
62
62
|
let registerVNode = $__namespace.prop($$props, "registerVNode", 8, void 0);
|
|
63
63
|
let accessible = $__namespace.prop($$props, "accessible", 8, void 0);
|
|
64
|
+
let canDrag = $__namespace.prop($$props, "canDrag", 8, void 0);
|
|
64
65
|
const refresh = (...args) => $__namespace.get(__ref).refresh(...args);
|
|
65
66
|
const setDataAt = (...args) => $__namespace.get(__ref).setDataAt(...args);
|
|
66
67
|
const scrollToRow = (...args) => $__namespace.get(__ref).scrollToRow(...args);
|
|
@@ -209,6 +210,7 @@
|
|
|
209
210
|
$__namespace.set_custom_element_data(revo_grid, "disable-virtual-y", disableVirtualY());
|
|
210
211
|
$__namespace.set_custom_element_data(revo_grid, "hide-attribution", hideAttribution());
|
|
211
212
|
$__namespace.set_custom_element_data(revo_grid, "accessible", accessible());
|
|
213
|
+
$__namespace.set_custom_element_data(revo_grid, "can-drag", canDrag());
|
|
212
214
|
});
|
|
213
215
|
$__namespace.event("contentsizechanged", revo_grid, onEvent);
|
|
214
216
|
$__namespace.event("beforeedit", revo_grid, onEvent);
|
|
@@ -156,6 +156,9 @@ Function can be used for performance improvement and additional renders. */
|
|
|
156
156
|
|
|
157
157
|
/** Enable accessibility. If disabled, the grid will not be accessible. */
|
|
158
158
|
accessible?: Components.RevoGrid["accessible"]
|
|
159
|
+
|
|
160
|
+
/** Disable native drag&drop plugin. */
|
|
161
|
+
canDrag?: Components.RevoGrid["canDrag"]
|
|
159
162
|
}
|
|
160
163
|
|
|
161
164
|
interface RevoGridEvents {
|
|
@@ -375,6 +378,7 @@ export default function RevoGrid($$anchor, $$props) {
|
|
|
375
378
|
let jobsBeforeRender = $.prop($$props, "jobsBeforeRender", 8, undefined);
|
|
376
379
|
let registerVNode = $.prop($$props, "registerVNode", 8, undefined);
|
|
377
380
|
let accessible = $.prop($$props, "accessible", 8, undefined);
|
|
381
|
+
let canDrag = $.prop($$props, "canDrag", 8, undefined);
|
|
378
382
|
const refresh = (...args) => $.get(__ref).refresh(...args);
|
|
379
383
|
const setDataAt = (...args) => $.get(__ref).setDataAt(...args);
|
|
380
384
|
const scrollToRow = (...args) => $.get(__ref).scrollToRow(...args);
|
|
@@ -586,6 +590,7 @@ export default function RevoGrid($$anchor, $$props) {
|
|
|
586
590
|
$.set_custom_element_data(revo_grid, "disable-virtual-y", disableVirtualY());
|
|
587
591
|
$.set_custom_element_data(revo_grid, "hide-attribution", hideAttribution());
|
|
588
592
|
$.set_custom_element_data(revo_grid, "accessible", accessible());
|
|
593
|
+
$.set_custom_element_data(revo_grid, "can-drag", canDrag());
|
|
589
594
|
});
|
|
590
595
|
|
|
591
596
|
$.event("contentsizechanged", revo_grid, onEvent);
|
|
@@ -43,6 +43,7 @@ export let hideAttribution = undefined;
|
|
|
43
43
|
export let jobsBeforeRender = undefined;
|
|
44
44
|
export let registerVNode = undefined;
|
|
45
45
|
export let accessible = undefined;
|
|
46
|
+
export let canDrag = undefined;
|
|
46
47
|
|
|
47
48
|
export const refresh = (...args) => __ref.refresh(...args);
|
|
48
49
|
export const setDataAt = (...args) => __ref.setDataAt(...args);
|
|
@@ -118,6 +119,7 @@ const onEvent = (e) => {
|
|
|
118
119
|
disable-virtual-y={disableVirtualY}
|
|
119
120
|
hide-attribution={hideAttribution}
|
|
120
121
|
accessible={accessible}
|
|
122
|
+
can-drag={canDrag}
|
|
121
123
|
on:contentsizechanged={onEvent}
|
|
122
124
|
on:beforeedit={onEvent}
|
|
123
125
|
on:beforerangeedit={onEvent}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revolist/svelte-datagrid",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.2",
|
|
4
4
|
"description": "Svelte DataGrid Spreadsheet component with native cell render support",
|
|
5
5
|
"main": "./dist/svelte-datagrid.umd.cjs",
|
|
6
6
|
"module": "./dist/svelte-datagrid.js",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"vite-plugin-dts": "^4.3.0"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@revolist/revogrid": "4.12.
|
|
76
|
+
"@revolist/revogrid": "4.12.2"
|
|
77
77
|
},
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|