@revolist/svelte-datagrid 4.15.1 → 4.15.3

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.
@@ -8,7 +8,6 @@ var root = $.template(`<revo-grid><!></revo-grid>`, 2);
8
8
  function RevoGrid($$anchor, $$props) {
9
9
  $.push($$props, false);
10
10
  let __ref = $.mutable_state();
11
- let __mounted = $.mutable_state(false);
12
11
  const dispatch = createEventDispatcher();
13
12
  let rowHeaders = $.prop($$props, "rowHeaders", 8, void 0);
14
13
  let frameSize = $.prop($$props, "frameSize", 8, void 0);
@@ -72,106 +71,11 @@ function RevoGrid($$anchor, $$props) {
72
71
  const refreshExtraElements = (...args) => $.get(__ref).refreshExtraElements(...args);
73
72
  const getWebComponent = () => $.get(__ref);
74
73
  onMount(() => {
75
- $.set(__mounted, true);
76
74
  });
77
- const setProp = (prop, value) => {
78
- if ($.get(__ref)) $.mutate(__ref, $.get(__ref)[prop] = value);
79
- };
80
75
  const onEvent = (e) => {
81
76
  e.stopPropagation();
82
77
  dispatch(e.type, e.detail);
83
78
  };
84
- $.legacy_pre_effect(
85
- () => ($.get(__mounted), $.deep_read_state(columns())),
86
- () => {
87
- if ($.get(__mounted)) setProp("columns", columns());
88
- }
89
- );
90
- $.legacy_pre_effect(
91
- () => ($.get(__mounted), $.deep_read_state(source())),
92
- () => {
93
- if ($.get(__mounted)) setProp("source", source());
94
- }
95
- );
96
- $.legacy_pre_effect(
97
- () => ($.get(__mounted), $.deep_read_state(pinnedTopSource())),
98
- () => {
99
- if ($.get(__mounted)) setProp("pinnedTopSource", pinnedTopSource());
100
- }
101
- );
102
- $.legacy_pre_effect(
103
- () => ($.get(__mounted), $.deep_read_state(pinnedBottomSource())),
104
- () => {
105
- if ($.get(__mounted)) setProp("pinnedBottomSource", pinnedBottomSource());
106
- }
107
- );
108
- $.legacy_pre_effect(
109
- () => ($.get(__mounted), $.deep_read_state(rowDefinitions())),
110
- () => {
111
- if ($.get(__mounted)) setProp("rowDefinitions", rowDefinitions());
112
- }
113
- );
114
- $.legacy_pre_effect(
115
- () => ($.get(__mounted), $.deep_read_state(editors())),
116
- () => {
117
- if ($.get(__mounted)) setProp("editors", editors());
118
- }
119
- );
120
- $.legacy_pre_effect(
121
- () => ($.get(__mounted), $.deep_read_state(plugins())),
122
- () => {
123
- if ($.get(__mounted)) setProp("plugins", plugins());
124
- }
125
- );
126
- $.legacy_pre_effect(
127
- () => ($.get(__mounted), $.deep_read_state(columnTypes())),
128
- () => {
129
- if ($.get(__mounted)) setProp("columnTypes", columnTypes());
130
- }
131
- );
132
- $.legacy_pre_effect(
133
- () => ($.get(__mounted), $.deep_read_state(sorting())),
134
- () => {
135
- if ($.get(__mounted)) setProp("sorting", sorting());
136
- }
137
- );
138
- $.legacy_pre_effect(
139
- () => ($.get(__mounted), $.deep_read_state(focusTemplate())),
140
- () => {
141
- if ($.get(__mounted)) setProp("focusTemplate", focusTemplate());
142
- }
143
- );
144
- $.legacy_pre_effect(
145
- () => ($.get(__mounted), $.deep_read_state(trimmedRows())),
146
- () => {
147
- if ($.get(__mounted)) setProp("trimmedRows", trimmedRows());
148
- }
149
- );
150
- $.legacy_pre_effect(
151
- () => ($.get(__mounted), $.deep_read_state(grouping())),
152
- () => {
153
- if ($.get(__mounted)) setProp("grouping", grouping());
154
- }
155
- );
156
- $.legacy_pre_effect(
157
- () => ($.get(__mounted), $.deep_read_state(additionalData())),
158
- () => {
159
- if ($.get(__mounted)) setProp("additionalData", additionalData());
160
- }
161
- );
162
- $.legacy_pre_effect(
163
- () => ($.get(__mounted), $.deep_read_state(jobsBeforeRender())),
164
- () => {
165
- if ($.get(__mounted)) setProp("jobsBeforeRender", jobsBeforeRender());
166
- }
167
- );
168
- $.legacy_pre_effect(
169
- () => ($.get(__mounted), $.deep_read_state(registerVNode())),
170
- () => {
171
- if ($.get(__mounted)) setProp("registerVNode", registerVNode());
172
- }
173
- );
174
- $.legacy_pre_effect_reset();
175
79
  $.init();
176
80
  var revo_grid = root();
177
81
  var node = $.child(revo_grid);
@@ -188,17 +92,32 @@ function RevoGrid($$anchor, $$props) {
188
92
  $.set_custom_element_data(revo_grid, "resize", resize());
189
93
  $.set_custom_element_data(revo_grid, "can-focus", canFocus());
190
94
  $.set_custom_element_data(revo_grid, "use-clipboard", useClipboard());
95
+ $.set_custom_element_data(revo_grid, "columns", columns());
96
+ $.set_custom_element_data(revo_grid, "source", source());
97
+ $.set_custom_element_data(revo_grid, "pinned-top-source", pinnedTopSource());
98
+ $.set_custom_element_data(revo_grid, "pinned-bottom-source", pinnedBottomSource());
99
+ $.set_custom_element_data(revo_grid, "row-definitions", rowDefinitions());
100
+ $.set_custom_element_data(revo_grid, "editors", editors());
191
101
  $.set_custom_element_data(revo_grid, "apply-on-close", applyOnClose());
102
+ $.set_custom_element_data(revo_grid, "plugins", plugins());
103
+ $.set_custom_element_data(revo_grid, "column-types", columnTypes());
192
104
  $.set_custom_element_data(revo_grid, "theme", theme());
193
105
  $.set_custom_element_data(revo_grid, "row-class", rowClass());
194
106
  $.set_custom_element_data(revo_grid, "auto-size-column", autoSizeColumn());
195
107
  $.set_custom_element_data(revo_grid, "filter", filter());
108
+ $.set_custom_element_data(revo_grid, "sorting", sorting());
109
+ $.set_custom_element_data(revo_grid, "focus-template", focusTemplate());
196
110
  $.set_custom_element_data(revo_grid, "can-move-columns", canMoveColumns());
111
+ $.set_custom_element_data(revo_grid, "trimmed-rows", trimmedRows());
197
112
  $.set_custom_element_data(revo_grid, "exporting", exporting());
113
+ $.set_custom_element_data(revo_grid, "grouping", grouping());
198
114
  $.set_custom_element_data(revo_grid, "stretch", stretch());
115
+ $.set_custom_element_data(revo_grid, "additional-data", additionalData());
199
116
  $.set_custom_element_data(revo_grid, "disable-virtual-x", disableVirtualX());
200
117
  $.set_custom_element_data(revo_grid, "disable-virtual-y", disableVirtualY());
201
118
  $.set_custom_element_data(revo_grid, "hide-attribution", hideAttribution());
119
+ $.set_custom_element_data(revo_grid, "jobs-before-render", jobsBeforeRender());
120
+ $.set_custom_element_data(revo_grid, "register-v-node", registerVNode());
202
121
  $.set_custom_element_data(revo_grid, "accessible", accessible());
203
122
  $.set_custom_element_data(revo_grid, "can-drag", canDrag());
204
123
  });
@@ -23,7 +23,6 @@
23
23
  function RevoGrid($$anchor, $$props) {
24
24
  $__namespace.push($$props, false);
25
25
  let __ref = $__namespace.mutable_state();
26
- let __mounted = $__namespace.mutable_state(false);
27
26
  const dispatch = svelte.createEventDispatcher();
28
27
  let rowHeaders = $__namespace.prop($$props, "rowHeaders", 8, void 0);
29
28
  let frameSize = $__namespace.prop($$props, "frameSize", 8, void 0);
@@ -87,106 +86,11 @@
87
86
  const refreshExtraElements = (...args) => $__namespace.get(__ref).refreshExtraElements(...args);
88
87
  const getWebComponent = () => $__namespace.get(__ref);
89
88
  svelte.onMount(() => {
90
- $__namespace.set(__mounted, true);
91
89
  });
92
- const setProp = (prop, value) => {
93
- if ($__namespace.get(__ref)) $__namespace.mutate(__ref, $__namespace.get(__ref)[prop] = value);
94
- };
95
90
  const onEvent = (e) => {
96
91
  e.stopPropagation();
97
92
  dispatch(e.type, e.detail);
98
93
  };
99
- $__namespace.legacy_pre_effect(
100
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(columns())),
101
- () => {
102
- if ($__namespace.get(__mounted)) setProp("columns", columns());
103
- }
104
- );
105
- $__namespace.legacy_pre_effect(
106
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(source())),
107
- () => {
108
- if ($__namespace.get(__mounted)) setProp("source", source());
109
- }
110
- );
111
- $__namespace.legacy_pre_effect(
112
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(pinnedTopSource())),
113
- () => {
114
- if ($__namespace.get(__mounted)) setProp("pinnedTopSource", pinnedTopSource());
115
- }
116
- );
117
- $__namespace.legacy_pre_effect(
118
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(pinnedBottomSource())),
119
- () => {
120
- if ($__namespace.get(__mounted)) setProp("pinnedBottomSource", pinnedBottomSource());
121
- }
122
- );
123
- $__namespace.legacy_pre_effect(
124
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(rowDefinitions())),
125
- () => {
126
- if ($__namespace.get(__mounted)) setProp("rowDefinitions", rowDefinitions());
127
- }
128
- );
129
- $__namespace.legacy_pre_effect(
130
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(editors())),
131
- () => {
132
- if ($__namespace.get(__mounted)) setProp("editors", editors());
133
- }
134
- );
135
- $__namespace.legacy_pre_effect(
136
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(plugins())),
137
- () => {
138
- if ($__namespace.get(__mounted)) setProp("plugins", plugins());
139
- }
140
- );
141
- $__namespace.legacy_pre_effect(
142
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(columnTypes())),
143
- () => {
144
- if ($__namespace.get(__mounted)) setProp("columnTypes", columnTypes());
145
- }
146
- );
147
- $__namespace.legacy_pre_effect(
148
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(sorting())),
149
- () => {
150
- if ($__namespace.get(__mounted)) setProp("sorting", sorting());
151
- }
152
- );
153
- $__namespace.legacy_pre_effect(
154
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(focusTemplate())),
155
- () => {
156
- if ($__namespace.get(__mounted)) setProp("focusTemplate", focusTemplate());
157
- }
158
- );
159
- $__namespace.legacy_pre_effect(
160
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(trimmedRows())),
161
- () => {
162
- if ($__namespace.get(__mounted)) setProp("trimmedRows", trimmedRows());
163
- }
164
- );
165
- $__namespace.legacy_pre_effect(
166
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(grouping())),
167
- () => {
168
- if ($__namespace.get(__mounted)) setProp("grouping", grouping());
169
- }
170
- );
171
- $__namespace.legacy_pre_effect(
172
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(additionalData())),
173
- () => {
174
- if ($__namespace.get(__mounted)) setProp("additionalData", additionalData());
175
- }
176
- );
177
- $__namespace.legacy_pre_effect(
178
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(jobsBeforeRender())),
179
- () => {
180
- if ($__namespace.get(__mounted)) setProp("jobsBeforeRender", jobsBeforeRender());
181
- }
182
- );
183
- $__namespace.legacy_pre_effect(
184
- () => ($__namespace.get(__mounted), $__namespace.deep_read_state(registerVNode())),
185
- () => {
186
- if ($__namespace.get(__mounted)) setProp("registerVNode", registerVNode());
187
- }
188
- );
189
- $__namespace.legacy_pre_effect_reset();
190
94
  $__namespace.init();
191
95
  var revo_grid = root();
192
96
  var node = $__namespace.child(revo_grid);
@@ -203,17 +107,32 @@
203
107
  $__namespace.set_custom_element_data(revo_grid, "resize", resize());
204
108
  $__namespace.set_custom_element_data(revo_grid, "can-focus", canFocus());
205
109
  $__namespace.set_custom_element_data(revo_grid, "use-clipboard", useClipboard());
110
+ $__namespace.set_custom_element_data(revo_grid, "columns", columns());
111
+ $__namespace.set_custom_element_data(revo_grid, "source", source());
112
+ $__namespace.set_custom_element_data(revo_grid, "pinned-top-source", pinnedTopSource());
113
+ $__namespace.set_custom_element_data(revo_grid, "pinned-bottom-source", pinnedBottomSource());
114
+ $__namespace.set_custom_element_data(revo_grid, "row-definitions", rowDefinitions());
115
+ $__namespace.set_custom_element_data(revo_grid, "editors", editors());
206
116
  $__namespace.set_custom_element_data(revo_grid, "apply-on-close", applyOnClose());
117
+ $__namespace.set_custom_element_data(revo_grid, "plugins", plugins());
118
+ $__namespace.set_custom_element_data(revo_grid, "column-types", columnTypes());
207
119
  $__namespace.set_custom_element_data(revo_grid, "theme", theme());
208
120
  $__namespace.set_custom_element_data(revo_grid, "row-class", rowClass());
209
121
  $__namespace.set_custom_element_data(revo_grid, "auto-size-column", autoSizeColumn());
210
122
  $__namespace.set_custom_element_data(revo_grid, "filter", filter());
123
+ $__namespace.set_custom_element_data(revo_grid, "sorting", sorting());
124
+ $__namespace.set_custom_element_data(revo_grid, "focus-template", focusTemplate());
211
125
  $__namespace.set_custom_element_data(revo_grid, "can-move-columns", canMoveColumns());
126
+ $__namespace.set_custom_element_data(revo_grid, "trimmed-rows", trimmedRows());
212
127
  $__namespace.set_custom_element_data(revo_grid, "exporting", exporting());
128
+ $__namespace.set_custom_element_data(revo_grid, "grouping", grouping());
213
129
  $__namespace.set_custom_element_data(revo_grid, "stretch", stretch());
130
+ $__namespace.set_custom_element_data(revo_grid, "additional-data", additionalData());
214
131
  $__namespace.set_custom_element_data(revo_grid, "disable-virtual-x", disableVirtualX());
215
132
  $__namespace.set_custom_element_data(revo_grid, "disable-virtual-y", disableVirtualY());
216
133
  $__namespace.set_custom_element_data(revo_grid, "hide-attribution", hideAttribution());
134
+ $__namespace.set_custom_element_data(revo_grid, "jobs-before-render", jobsBeforeRender());
135
+ $__namespace.set_custom_element_data(revo_grid, "register-v-node", registerVNode());
217
136
  $__namespace.set_custom_element_data(revo_grid, "accessible", accessible());
218
137
  $__namespace.set_custom_element_data(revo_grid, "can-drag", canDrag());
219
138
  });
@@ -342,7 +342,7 @@ export default function RevoGrid($$anchor, $$props) {
342
342
  $.push($$props, false);
343
343
 
344
344
  let __ref = $.mutable_state();
345
- let __mounted = $.mutable_state(false);
345
+ let __mounted = false;
346
346
  const dispatch = createEventDispatcher();
347
347
  let rowHeaders = $.prop($$props, "rowHeaders", 8, undefined);
348
348
  let frameSize = $.prop($$props, "frameSize", 8, undefined);
@@ -407,7 +407,7 @@ export default function RevoGrid($$anchor, $$props) {
407
407
  const getWebComponent = () => $.get(__ref);
408
408
 
409
409
  onMount(() => {
410
- $.set(__mounted, true);
410
+ __mounted = true;
411
411
  });
412
412
 
413
413
  const setProp = (prop, value) => {
@@ -419,157 +419,6 @@ export default function RevoGrid($$anchor, $$props) {
419
419
  dispatch(e.type, e.detail);
420
420
  };
421
421
 
422
- $.legacy_pre_effect(
423
- () => (
424
- $.get(__mounted),
425
- $.deep_read_state(columns())
426
- ),
427
- () => {
428
- if ($.get(__mounted)) setProp('columns', columns());
429
- }
430
- );
431
-
432
- $.legacy_pre_effect(
433
- () => (
434
- $.get(__mounted),
435
- $.deep_read_state(source())
436
- ),
437
- () => {
438
- if ($.get(__mounted)) setProp('source', source());
439
- }
440
- );
441
-
442
- $.legacy_pre_effect(
443
- () => (
444
- $.get(__mounted),
445
- $.deep_read_state(pinnedTopSource())
446
- ),
447
- () => {
448
- if ($.get(__mounted)) setProp('pinnedTopSource', pinnedTopSource());
449
- }
450
- );
451
-
452
- $.legacy_pre_effect(
453
- () => (
454
- $.get(__mounted),
455
- $.deep_read_state(pinnedBottomSource())
456
- ),
457
- () => {
458
- if ($.get(__mounted)) setProp('pinnedBottomSource', pinnedBottomSource());
459
- }
460
- );
461
-
462
- $.legacy_pre_effect(
463
- () => (
464
- $.get(__mounted),
465
- $.deep_read_state(rowDefinitions())
466
- ),
467
- () => {
468
- if ($.get(__mounted)) setProp('rowDefinitions', rowDefinitions());
469
- }
470
- );
471
-
472
- $.legacy_pre_effect(
473
- () => (
474
- $.get(__mounted),
475
- $.deep_read_state(editors())
476
- ),
477
- () => {
478
- if ($.get(__mounted)) setProp('editors', editors());
479
- }
480
- );
481
-
482
- $.legacy_pre_effect(
483
- () => (
484
- $.get(__mounted),
485
- $.deep_read_state(plugins())
486
- ),
487
- () => {
488
- if ($.get(__mounted)) setProp('plugins', plugins());
489
- }
490
- );
491
-
492
- $.legacy_pre_effect(
493
- () => (
494
- $.get(__mounted),
495
- $.deep_read_state(columnTypes())
496
- ),
497
- () => {
498
- if ($.get(__mounted)) setProp('columnTypes', columnTypes());
499
- }
500
- );
501
-
502
- $.legacy_pre_effect(
503
- () => (
504
- $.get(__mounted),
505
- $.deep_read_state(sorting())
506
- ),
507
- () => {
508
- if ($.get(__mounted)) setProp('sorting', sorting());
509
- }
510
- );
511
-
512
- $.legacy_pre_effect(
513
- () => (
514
- $.get(__mounted),
515
- $.deep_read_state(focusTemplate())
516
- ),
517
- () => {
518
- if ($.get(__mounted)) setProp('focusTemplate', focusTemplate());
519
- }
520
- );
521
-
522
- $.legacy_pre_effect(
523
- () => (
524
- $.get(__mounted),
525
- $.deep_read_state(trimmedRows())
526
- ),
527
- () => {
528
- if ($.get(__mounted)) setProp('trimmedRows', trimmedRows());
529
- }
530
- );
531
-
532
- $.legacy_pre_effect(
533
- () => (
534
- $.get(__mounted),
535
- $.deep_read_state(grouping())
536
- ),
537
- () => {
538
- if ($.get(__mounted)) setProp('grouping', grouping());
539
- }
540
- );
541
-
542
- $.legacy_pre_effect(
543
- () => (
544
- $.get(__mounted),
545
- $.deep_read_state(additionalData())
546
- ),
547
- () => {
548
- if ($.get(__mounted)) setProp('additionalData', additionalData());
549
- }
550
- );
551
-
552
- $.legacy_pre_effect(
553
- () => (
554
- $.get(__mounted),
555
- $.deep_read_state(jobsBeforeRender())
556
- ),
557
- () => {
558
- if ($.get(__mounted)) setProp('jobsBeforeRender', jobsBeforeRender());
559
- }
560
- );
561
-
562
- $.legacy_pre_effect(
563
- () => (
564
- $.get(__mounted),
565
- $.deep_read_state(registerVNode())
566
- ),
567
- () => {
568
- if ($.get(__mounted)) setProp('registerVNode', registerVNode());
569
- }
570
- );
571
-
572
- $.legacy_pre_effect_reset();
573
422
  $.init();
574
423
 
575
424
  var revo_grid = root();
@@ -589,17 +438,32 @@ export default function RevoGrid($$anchor, $$props) {
589
438
  $.set_custom_element_data(revo_grid, "resize", resize());
590
439
  $.set_custom_element_data(revo_grid, "can-focus", canFocus());
591
440
  $.set_custom_element_data(revo_grid, "use-clipboard", useClipboard());
441
+ $.set_custom_element_data(revo_grid, "columns", columns());
442
+ $.set_custom_element_data(revo_grid, "source", source());
443
+ $.set_custom_element_data(revo_grid, "pinned-top-source", pinnedTopSource());
444
+ $.set_custom_element_data(revo_grid, "pinned-bottom-source", pinnedBottomSource());
445
+ $.set_custom_element_data(revo_grid, "row-definitions", rowDefinitions());
446
+ $.set_custom_element_data(revo_grid, "editors", editors());
592
447
  $.set_custom_element_data(revo_grid, "apply-on-close", applyOnClose());
448
+ $.set_custom_element_data(revo_grid, "plugins", plugins());
449
+ $.set_custom_element_data(revo_grid, "column-types", columnTypes());
593
450
  $.set_custom_element_data(revo_grid, "theme", theme());
594
451
  $.set_custom_element_data(revo_grid, "row-class", rowClass());
595
452
  $.set_custom_element_data(revo_grid, "auto-size-column", autoSizeColumn());
596
453
  $.set_custom_element_data(revo_grid, "filter", filter());
454
+ $.set_custom_element_data(revo_grid, "sorting", sorting());
455
+ $.set_custom_element_data(revo_grid, "focus-template", focusTemplate());
597
456
  $.set_custom_element_data(revo_grid, "can-move-columns", canMoveColumns());
457
+ $.set_custom_element_data(revo_grid, "trimmed-rows", trimmedRows());
598
458
  $.set_custom_element_data(revo_grid, "exporting", exporting());
459
+ $.set_custom_element_data(revo_grid, "grouping", grouping());
599
460
  $.set_custom_element_data(revo_grid, "stretch", stretch());
461
+ $.set_custom_element_data(revo_grid, "additional-data", additionalData());
600
462
  $.set_custom_element_data(revo_grid, "disable-virtual-x", disableVirtualX());
601
463
  $.set_custom_element_data(revo_grid, "disable-virtual-y", disableVirtualY());
602
464
  $.set_custom_element_data(revo_grid, "hide-attribution", hideAttribution());
465
+ $.set_custom_element_data(revo_grid, "jobs-before-render", jobsBeforeRender());
466
+ $.set_custom_element_data(revo_grid, "register-v-node", registerVNode());
603
467
  $.set_custom_element_data(revo_grid, "accessible", accessible());
604
468
  $.set_custom_element_data(revo_grid, "can-drag", canDrag());
605
469
  });
@@ -75,21 +75,7 @@ onMount(() => { __mounted = true; });
75
75
 
76
76
  const setProp = (prop, value) => { if (__ref) __ref[prop] = value; };
77
77
 
78
- $: if (__mounted) setProp('columns', columns);
79
- $: if (__mounted) setProp('source', source);
80
- $: if (__mounted) setProp('pinnedTopSource', pinnedTopSource);
81
- $: if (__mounted) setProp('pinnedBottomSource', pinnedBottomSource);
82
- $: if (__mounted) setProp('rowDefinitions', rowDefinitions);
83
- $: if (__mounted) setProp('editors', editors);
84
- $: if (__mounted) setProp('plugins', plugins);
85
- $: if (__mounted) setProp('columnTypes', columnTypes);
86
- $: if (__mounted) setProp('sorting', sorting);
87
- $: if (__mounted) setProp('focusTemplate', focusTemplate);
88
- $: if (__mounted) setProp('trimmedRows', trimmedRows);
89
- $: if (__mounted) setProp('grouping', grouping);
90
- $: if (__mounted) setProp('additionalData', additionalData);
91
- $: if (__mounted) setProp('jobsBeforeRender', jobsBeforeRender);
92
- $: if (__mounted) setProp('registerVNode', registerVNode);
78
+
93
79
 
94
80
  const onEvent = (e) => {
95
81
  e.stopPropagation();
@@ -107,17 +93,32 @@ const onEvent = (e) => {
107
93
  resize={resize}
108
94
  can-focus={canFocus}
109
95
  use-clipboard={useClipboard}
96
+ columns={columns}
97
+ source={source}
98
+ pinned-top-source={pinnedTopSource}
99
+ pinned-bottom-source={pinnedBottomSource}
100
+ row-definitions={rowDefinitions}
101
+ editors={editors}
110
102
  apply-on-close={applyOnClose}
103
+ plugins={plugins}
104
+ column-types={columnTypes}
111
105
  theme={theme}
112
106
  row-class={rowClass}
113
107
  auto-size-column={autoSizeColumn}
114
108
  filter={filter}
109
+ sorting={sorting}
110
+ focus-template={focusTemplate}
115
111
  can-move-columns={canMoveColumns}
112
+ trimmed-rows={trimmedRows}
116
113
  exporting={exporting}
114
+ grouping={grouping}
117
115
  stretch={stretch}
116
+ additional-data={additionalData}
118
117
  disable-virtual-x={disableVirtualX}
119
118
  disable-virtual-y={disableVirtualY}
120
119
  hide-attribution={hideAttribution}
120
+ jobs-before-render={jobsBeforeRender}
121
+ register-v-node={registerVNode}
121
122
  accessible={accessible}
122
123
  can-drag={canDrag}
123
124
  on:contentsizechanged={onEvent}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revolist/svelte-datagrid",
3
- "version": "4.15.1",
3
+ "version": "4.15.3",
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.15.1"
76
+ "@revolist/revogrid": "4.15.3"
77
77
  },
78
78
  "publishConfig": {
79
79
  "access": "public"