@revolist/svelte-datagrid 4.10.6 → 4.10.8
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/index.d.ts +4 -0
- package/dist/svelte-datagrid.js +35 -26
- package/dist/svelte-datagrid.umd.cjs +35 -26
- package/lib/components/RevoGrid.ts +36 -25
- package/lib/svelte/RevoGrid.svelte +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,10 @@ export declare class RevoGrid extends SvelteComponent {
|
|
|
60
60
|
get getContentSize(): Components.RevoGrid["getContentSize"];
|
|
61
61
|
/** Get the currently selected Range. */
|
|
62
62
|
get getSelectedRange(): Components.RevoGrid["getSelectedRange"];
|
|
63
|
+
/** Refresh extra elements. Triggers re-rendering of extra elements and functions.
|
|
64
|
+
Part of extraElements and registerVNode methods.
|
|
65
|
+
Useful for plugins. */
|
|
66
|
+
get refreshExtraElements(): Components.RevoGrid["refreshExtraElements"];
|
|
63
67
|
get getWebComponent(): HTMLRevoGridElement | undefined;
|
|
64
68
|
}
|
|
65
69
|
|
package/dist/svelte-datagrid.js
CHANGED
|
@@ -13,13 +13,13 @@ function create_fragment(ctx) {
|
|
|
13
13
|
let dispose;
|
|
14
14
|
const default_slot_template = (
|
|
15
15
|
/*#slots*/
|
|
16
|
-
ctx[
|
|
16
|
+
ctx[63].default
|
|
17
17
|
);
|
|
18
18
|
const default_slot = create_slot(
|
|
19
19
|
default_slot_template,
|
|
20
20
|
ctx,
|
|
21
21
|
/*$$scope*/
|
|
22
|
-
ctx[
|
|
22
|
+
ctx[62],
|
|
23
23
|
null
|
|
24
24
|
);
|
|
25
25
|
return {
|
|
@@ -164,7 +164,7 @@ function create_fragment(ctx) {
|
|
|
164
164
|
if (default_slot) {
|
|
165
165
|
default_slot.m(revo_grid, null);
|
|
166
166
|
}
|
|
167
|
-
ctx[
|
|
167
|
+
ctx[64](revo_grid);
|
|
168
168
|
current = true;
|
|
169
169
|
if (!mounted) {
|
|
170
170
|
dispose = [
|
|
@@ -396,21 +396,21 @@ function create_fragment(ctx) {
|
|
|
396
396
|
},
|
|
397
397
|
p(ctx2, dirty) {
|
|
398
398
|
if (default_slot) {
|
|
399
|
-
if (default_slot.p && (!current || dirty[
|
|
400
|
-
|
|
399
|
+
if (default_slot.p && (!current || dirty[2] & /*$$scope*/
|
|
400
|
+
1)) {
|
|
401
401
|
update_slot_base(
|
|
402
402
|
default_slot,
|
|
403
403
|
default_slot_template,
|
|
404
404
|
ctx2,
|
|
405
405
|
/*$$scope*/
|
|
406
|
-
ctx2[
|
|
406
|
+
ctx2[62],
|
|
407
407
|
!current ? get_all_dirty_from_scope(
|
|
408
408
|
/*$$scope*/
|
|
409
|
-
ctx2[
|
|
409
|
+
ctx2[62]
|
|
410
410
|
) : get_slot_changes(
|
|
411
411
|
default_slot_template,
|
|
412
412
|
/*$$scope*/
|
|
413
|
-
ctx2[
|
|
413
|
+
ctx2[62],
|
|
414
414
|
dirty,
|
|
415
415
|
null
|
|
416
416
|
),
|
|
@@ -631,7 +631,7 @@ function create_fragment(ctx) {
|
|
|
631
631
|
detach(revo_grid);
|
|
632
632
|
}
|
|
633
633
|
if (default_slot) default_slot.d(detaching);
|
|
634
|
-
ctx[
|
|
634
|
+
ctx[64](null);
|
|
635
635
|
mounted = false;
|
|
636
636
|
run_all(dispose);
|
|
637
637
|
}
|
|
@@ -699,9 +699,10 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
699
699
|
const getFocused = (...args) => __ref.getFocused(...args);
|
|
700
700
|
const getContentSize = (...args) => __ref.getContentSize(...args);
|
|
701
701
|
const getSelectedRange = (...args) => __ref.getSelectedRange(...args);
|
|
702
|
+
const refreshExtraElements = (...args) => __ref.refreshExtraElements(...args);
|
|
702
703
|
const getWebComponent = () => __ref;
|
|
703
704
|
onMount(() => {
|
|
704
|
-
$$invalidate(
|
|
705
|
+
$$invalidate(61, __mounted = true);
|
|
705
706
|
});
|
|
706
707
|
const setProp = (prop, value) => {
|
|
707
708
|
if (__ref) $$invalidate(22, __ref[prop] = value, __ref);
|
|
@@ -752,66 +753,66 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
752
753
|
if ("jobsBeforeRender" in $$props2) $$invalidate(35, jobsBeforeRender = $$props2.jobsBeforeRender);
|
|
753
754
|
if ("registerVNode" in $$props2) $$invalidate(36, registerVNode = $$props2.registerVNode);
|
|
754
755
|
if ("accessible" in $$props2) $$invalidate(21, accessible = $$props2.accessible);
|
|
755
|
-
if ("$$scope" in $$props2) $$invalidate(
|
|
756
|
+
if ("$$scope" in $$props2) $$invalidate(62, $$scope = $$props2.$$scope);
|
|
756
757
|
};
|
|
757
758
|
$$self.$$.update = () => {
|
|
758
759
|
if ($$self.$$.dirty[0] & /*columns*/
|
|
759
760
|
16777216 | $$self.$$.dirty[1] & /*__mounted*/
|
|
760
|
-
|
|
761
|
+
1073741824) {
|
|
761
762
|
if (__mounted) setProp("columns", columns);
|
|
762
763
|
}
|
|
763
764
|
if ($$self.$$.dirty[0] & /*source*/
|
|
764
765
|
33554432 | $$self.$$.dirty[1] & /*__mounted*/
|
|
765
|
-
|
|
766
|
+
1073741824) {
|
|
766
767
|
if (__mounted) setProp("source", source);
|
|
767
768
|
}
|
|
768
769
|
if ($$self.$$.dirty[0] & /*pinnedTopSource*/
|
|
769
770
|
67108864 | $$self.$$.dirty[1] & /*__mounted*/
|
|
770
|
-
|
|
771
|
+
1073741824) {
|
|
771
772
|
if (__mounted) setProp("pinnedTopSource", pinnedTopSource);
|
|
772
773
|
}
|
|
773
774
|
if ($$self.$$.dirty[0] & /*pinnedBottomSource*/
|
|
774
775
|
134217728 | $$self.$$.dirty[1] & /*__mounted*/
|
|
775
|
-
|
|
776
|
+
1073741824) {
|
|
776
777
|
if (__mounted) setProp("pinnedBottomSource", pinnedBottomSource);
|
|
777
778
|
}
|
|
778
779
|
if ($$self.$$.dirty[0] & /*rowDefinitions*/
|
|
779
780
|
268435456 | $$self.$$.dirty[1] & /*__mounted*/
|
|
780
|
-
|
|
781
|
+
1073741824) {
|
|
781
782
|
if (__mounted) setProp("rowDefinitions", rowDefinitions);
|
|
782
783
|
}
|
|
783
784
|
if ($$self.$$.dirty[0] & /*editors*/
|
|
784
785
|
536870912 | $$self.$$.dirty[1] & /*__mounted*/
|
|
785
|
-
|
|
786
|
+
1073741824) {
|
|
786
787
|
if (__mounted) setProp("editors", editors);
|
|
787
788
|
}
|
|
788
789
|
if ($$self.$$.dirty[0] & /*plugins*/
|
|
789
790
|
1073741824 | $$self.$$.dirty[1] & /*__mounted*/
|
|
790
|
-
|
|
791
|
+
1073741824) {
|
|
791
792
|
if (__mounted) setProp("plugins", plugins);
|
|
792
793
|
}
|
|
793
794
|
if ($$self.$$.dirty[1] & /*__mounted, columnTypes*/
|
|
794
|
-
|
|
795
|
+
1073741825) {
|
|
795
796
|
if (__mounted) setProp("columnTypes", columnTypes);
|
|
796
797
|
}
|
|
797
798
|
if ($$self.$$.dirty[1] & /*__mounted, focusTemplate*/
|
|
798
|
-
|
|
799
|
+
1073741826) {
|
|
799
800
|
if (__mounted) setProp("focusTemplate", focusTemplate);
|
|
800
801
|
}
|
|
801
802
|
if ($$self.$$.dirty[1] & /*__mounted, trimmedRows*/
|
|
802
|
-
|
|
803
|
+
1073741828) {
|
|
803
804
|
if (__mounted) setProp("trimmedRows", trimmedRows);
|
|
804
805
|
}
|
|
805
806
|
if ($$self.$$.dirty[1] & /*__mounted, grouping*/
|
|
806
|
-
|
|
807
|
+
1073741832) {
|
|
807
808
|
if (__mounted) setProp("grouping", grouping);
|
|
808
809
|
}
|
|
809
810
|
if ($$self.$$.dirty[1] & /*__mounted, jobsBeforeRender*/
|
|
810
|
-
|
|
811
|
+
1073741840) {
|
|
811
812
|
if (__mounted) setProp("jobsBeforeRender", jobsBeforeRender);
|
|
812
813
|
}
|
|
813
814
|
if ($$self.$$.dirty[1] & /*__mounted, registerVNode*/
|
|
814
|
-
|
|
815
|
+
1073741856) {
|
|
815
816
|
if (__mounted) setProp("registerVNode", registerVNode);
|
|
816
817
|
}
|
|
817
818
|
};
|
|
@@ -875,6 +876,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
875
876
|
getFocused,
|
|
876
877
|
getContentSize,
|
|
877
878
|
getSelectedRange,
|
|
879
|
+
refreshExtraElements,
|
|
878
880
|
getWebComponent,
|
|
879
881
|
__mounted,
|
|
880
882
|
$$scope,
|
|
@@ -952,7 +954,8 @@ class RevoGrid extends SvelteComponent {
|
|
|
952
954
|
getFocused: 56,
|
|
953
955
|
getContentSize: 57,
|
|
954
956
|
getSelectedRange: 58,
|
|
955
|
-
|
|
957
|
+
refreshExtraElements: 59,
|
|
958
|
+
getWebComponent: 60
|
|
956
959
|
},
|
|
957
960
|
null,
|
|
958
961
|
[-1, -1, -1]
|
|
@@ -1059,9 +1062,15 @@ class RevoGrid extends SvelteComponent {
|
|
|
1059
1062
|
get getSelectedRange() {
|
|
1060
1063
|
return this.$$.ctx[58];
|
|
1061
1064
|
}
|
|
1062
|
-
|
|
1065
|
+
/** Refresh extra elements. Triggers re-rendering of extra elements and functions.
|
|
1066
|
+
Part of extraElements and registerVNode methods.
|
|
1067
|
+
Useful for plugins. */
|
|
1068
|
+
get refreshExtraElements() {
|
|
1063
1069
|
return this.$$.ctx[59];
|
|
1064
1070
|
}
|
|
1071
|
+
get getWebComponent() {
|
|
1072
|
+
return this.$$.ctx[60];
|
|
1073
|
+
}
|
|
1065
1074
|
}
|
|
1066
1075
|
defineCustomElements();
|
|
1067
1076
|
export {
|
|
@@ -12,13 +12,13 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
12
12
|
let dispose;
|
|
13
13
|
const default_slot_template = (
|
|
14
14
|
/*#slots*/
|
|
15
|
-
ctx[
|
|
15
|
+
ctx[63].default
|
|
16
16
|
);
|
|
17
17
|
const default_slot = internal.create_slot(
|
|
18
18
|
default_slot_template,
|
|
19
19
|
ctx,
|
|
20
20
|
/*$$scope*/
|
|
21
|
-
ctx[
|
|
21
|
+
ctx[62],
|
|
22
22
|
null
|
|
23
23
|
);
|
|
24
24
|
return {
|
|
@@ -163,7 +163,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
163
163
|
if (default_slot) {
|
|
164
164
|
default_slot.m(revo_grid, null);
|
|
165
165
|
}
|
|
166
|
-
ctx[
|
|
166
|
+
ctx[64](revo_grid);
|
|
167
167
|
current = true;
|
|
168
168
|
if (!mounted) {
|
|
169
169
|
dispose = [
|
|
@@ -395,21 +395,21 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
395
395
|
},
|
|
396
396
|
p(ctx2, dirty) {
|
|
397
397
|
if (default_slot) {
|
|
398
|
-
if (default_slot.p && (!current || dirty[
|
|
399
|
-
|
|
398
|
+
if (default_slot.p && (!current || dirty[2] & /*$$scope*/
|
|
399
|
+
1)) {
|
|
400
400
|
internal.update_slot_base(
|
|
401
401
|
default_slot,
|
|
402
402
|
default_slot_template,
|
|
403
403
|
ctx2,
|
|
404
404
|
/*$$scope*/
|
|
405
|
-
ctx2[
|
|
405
|
+
ctx2[62],
|
|
406
406
|
!current ? internal.get_all_dirty_from_scope(
|
|
407
407
|
/*$$scope*/
|
|
408
|
-
ctx2[
|
|
408
|
+
ctx2[62]
|
|
409
409
|
) : internal.get_slot_changes(
|
|
410
410
|
default_slot_template,
|
|
411
411
|
/*$$scope*/
|
|
412
|
-
ctx2[
|
|
412
|
+
ctx2[62],
|
|
413
413
|
dirty,
|
|
414
414
|
null
|
|
415
415
|
),
|
|
@@ -630,7 +630,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
630
630
|
internal.detach(revo_grid);
|
|
631
631
|
}
|
|
632
632
|
if (default_slot) default_slot.d(detaching);
|
|
633
|
-
ctx[
|
|
633
|
+
ctx[64](null);
|
|
634
634
|
mounted = false;
|
|
635
635
|
internal.run_all(dispose);
|
|
636
636
|
}
|
|
@@ -698,9 +698,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
698
698
|
const getFocused = (...args) => __ref.getFocused(...args);
|
|
699
699
|
const getContentSize = (...args) => __ref.getContentSize(...args);
|
|
700
700
|
const getSelectedRange = (...args) => __ref.getSelectedRange(...args);
|
|
701
|
+
const refreshExtraElements = (...args) => __ref.refreshExtraElements(...args);
|
|
701
702
|
const getWebComponent = () => __ref;
|
|
702
703
|
svelte.onMount(() => {
|
|
703
|
-
$$invalidate(
|
|
704
|
+
$$invalidate(61, __mounted = true);
|
|
704
705
|
});
|
|
705
706
|
const setProp = (prop, value) => {
|
|
706
707
|
if (__ref) $$invalidate(22, __ref[prop] = value, __ref);
|
|
@@ -751,66 +752,66 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
751
752
|
if ("jobsBeforeRender" in $$props2) $$invalidate(35, jobsBeforeRender = $$props2.jobsBeforeRender);
|
|
752
753
|
if ("registerVNode" in $$props2) $$invalidate(36, registerVNode = $$props2.registerVNode);
|
|
753
754
|
if ("accessible" in $$props2) $$invalidate(21, accessible = $$props2.accessible);
|
|
754
|
-
if ("$$scope" in $$props2) $$invalidate(
|
|
755
|
+
if ("$$scope" in $$props2) $$invalidate(62, $$scope = $$props2.$$scope);
|
|
755
756
|
};
|
|
756
757
|
$$self.$$.update = () => {
|
|
757
758
|
if ($$self.$$.dirty[0] & /*columns*/
|
|
758
759
|
16777216 | $$self.$$.dirty[1] & /*__mounted*/
|
|
759
|
-
|
|
760
|
+
1073741824) {
|
|
760
761
|
if (__mounted) setProp("columns", columns);
|
|
761
762
|
}
|
|
762
763
|
if ($$self.$$.dirty[0] & /*source*/
|
|
763
764
|
33554432 | $$self.$$.dirty[1] & /*__mounted*/
|
|
764
|
-
|
|
765
|
+
1073741824) {
|
|
765
766
|
if (__mounted) setProp("source", source);
|
|
766
767
|
}
|
|
767
768
|
if ($$self.$$.dirty[0] & /*pinnedTopSource*/
|
|
768
769
|
67108864 | $$self.$$.dirty[1] & /*__mounted*/
|
|
769
|
-
|
|
770
|
+
1073741824) {
|
|
770
771
|
if (__mounted) setProp("pinnedTopSource", pinnedTopSource);
|
|
771
772
|
}
|
|
772
773
|
if ($$self.$$.dirty[0] & /*pinnedBottomSource*/
|
|
773
774
|
134217728 | $$self.$$.dirty[1] & /*__mounted*/
|
|
774
|
-
|
|
775
|
+
1073741824) {
|
|
775
776
|
if (__mounted) setProp("pinnedBottomSource", pinnedBottomSource);
|
|
776
777
|
}
|
|
777
778
|
if ($$self.$$.dirty[0] & /*rowDefinitions*/
|
|
778
779
|
268435456 | $$self.$$.dirty[1] & /*__mounted*/
|
|
779
|
-
|
|
780
|
+
1073741824) {
|
|
780
781
|
if (__mounted) setProp("rowDefinitions", rowDefinitions);
|
|
781
782
|
}
|
|
782
783
|
if ($$self.$$.dirty[0] & /*editors*/
|
|
783
784
|
536870912 | $$self.$$.dirty[1] & /*__mounted*/
|
|
784
|
-
|
|
785
|
+
1073741824) {
|
|
785
786
|
if (__mounted) setProp("editors", editors);
|
|
786
787
|
}
|
|
787
788
|
if ($$self.$$.dirty[0] & /*plugins*/
|
|
788
789
|
1073741824 | $$self.$$.dirty[1] & /*__mounted*/
|
|
789
|
-
|
|
790
|
+
1073741824) {
|
|
790
791
|
if (__mounted) setProp("plugins", plugins);
|
|
791
792
|
}
|
|
792
793
|
if ($$self.$$.dirty[1] & /*__mounted, columnTypes*/
|
|
793
|
-
|
|
794
|
+
1073741825) {
|
|
794
795
|
if (__mounted) setProp("columnTypes", columnTypes);
|
|
795
796
|
}
|
|
796
797
|
if ($$self.$$.dirty[1] & /*__mounted, focusTemplate*/
|
|
797
|
-
|
|
798
|
+
1073741826) {
|
|
798
799
|
if (__mounted) setProp("focusTemplate", focusTemplate);
|
|
799
800
|
}
|
|
800
801
|
if ($$self.$$.dirty[1] & /*__mounted, trimmedRows*/
|
|
801
|
-
|
|
802
|
+
1073741828) {
|
|
802
803
|
if (__mounted) setProp("trimmedRows", trimmedRows);
|
|
803
804
|
}
|
|
804
805
|
if ($$self.$$.dirty[1] & /*__mounted, grouping*/
|
|
805
|
-
|
|
806
|
+
1073741832) {
|
|
806
807
|
if (__mounted) setProp("grouping", grouping);
|
|
807
808
|
}
|
|
808
809
|
if ($$self.$$.dirty[1] & /*__mounted, jobsBeforeRender*/
|
|
809
|
-
|
|
810
|
+
1073741840) {
|
|
810
811
|
if (__mounted) setProp("jobsBeforeRender", jobsBeforeRender);
|
|
811
812
|
}
|
|
812
813
|
if ($$self.$$.dirty[1] & /*__mounted, registerVNode*/
|
|
813
|
-
|
|
814
|
+
1073741856) {
|
|
814
815
|
if (__mounted) setProp("registerVNode", registerVNode);
|
|
815
816
|
}
|
|
816
817
|
};
|
|
@@ -874,6 +875,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
874
875
|
getFocused,
|
|
875
876
|
getContentSize,
|
|
876
877
|
getSelectedRange,
|
|
878
|
+
refreshExtraElements,
|
|
877
879
|
getWebComponent,
|
|
878
880
|
__mounted,
|
|
879
881
|
$$scope,
|
|
@@ -951,7 +953,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
951
953
|
getFocused: 56,
|
|
952
954
|
getContentSize: 57,
|
|
953
955
|
getSelectedRange: 58,
|
|
954
|
-
|
|
956
|
+
refreshExtraElements: 59,
|
|
957
|
+
getWebComponent: 60
|
|
955
958
|
},
|
|
956
959
|
null,
|
|
957
960
|
[-1, -1, -1]
|
|
@@ -1058,9 +1061,15 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1058
1061
|
get getSelectedRange() {
|
|
1059
1062
|
return this.$$.ctx[58];
|
|
1060
1063
|
}
|
|
1061
|
-
|
|
1064
|
+
/** Refresh extra elements. Triggers re-rendering of extra elements and functions.
|
|
1065
|
+
Part of extraElements and registerVNode methods.
|
|
1066
|
+
Useful for plugins. */
|
|
1067
|
+
get refreshExtraElements() {
|
|
1062
1068
|
return this.$$.ctx[59];
|
|
1063
1069
|
}
|
|
1070
|
+
get getWebComponent() {
|
|
1071
|
+
return this.$$.ctx[60];
|
|
1072
|
+
}
|
|
1064
1073
|
}
|
|
1065
1074
|
loader.defineCustomElements();
|
|
1066
1075
|
exports2.RevoGrid = RevoGrid;
|
|
@@ -335,8 +335,8 @@ function create_fragment(ctx) {
|
|
|
335
335
|
let current;
|
|
336
336
|
let mounted;
|
|
337
337
|
let dispose;
|
|
338
|
-
const default_slot_template = /*#slots*/ ctx[
|
|
339
|
-
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[
|
|
338
|
+
const default_slot_template = /*#slots*/ ctx[63].default;
|
|
339
|
+
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[62], null);
|
|
340
340
|
|
|
341
341
|
return {
|
|
342
342
|
c() {
|
|
@@ -372,7 +372,7 @@ function create_fragment(ctx) {
|
|
|
372
372
|
default_slot.m(revo_grid, null);
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
/*revo_grid_binding*/ ctx[
|
|
375
|
+
/*revo_grid_binding*/ ctx[64](revo_grid);
|
|
376
376
|
current = true;
|
|
377
377
|
|
|
378
378
|
if (!mounted) {
|
|
@@ -421,15 +421,15 @@ function create_fragment(ctx) {
|
|
|
421
421
|
},
|
|
422
422
|
p(ctx, dirty) {
|
|
423
423
|
if (default_slot) {
|
|
424
|
-
if (default_slot.p && (!current || dirty[
|
|
424
|
+
if (default_slot.p && (!current || dirty[2] & /*$$scope*/ 1)) {
|
|
425
425
|
update_slot_base(
|
|
426
426
|
default_slot,
|
|
427
427
|
default_slot_template,
|
|
428
428
|
ctx,
|
|
429
|
-
/*$$scope*/ ctx[
|
|
429
|
+
/*$$scope*/ ctx[62],
|
|
430
430
|
!current
|
|
431
|
-
? get_all_dirty_from_scope(/*$$scope*/ ctx[
|
|
432
|
-
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[
|
|
431
|
+
? get_all_dirty_from_scope(/*$$scope*/ ctx[62])
|
|
432
|
+
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[62], dirty, null),
|
|
433
433
|
null
|
|
434
434
|
);
|
|
435
435
|
}
|
|
@@ -538,7 +538,7 @@ function create_fragment(ctx) {
|
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
if (default_slot) default_slot.d(detaching);
|
|
541
|
-
/*revo_grid_binding*/ ctx[
|
|
541
|
+
/*revo_grid_binding*/ ctx[64](null);
|
|
542
542
|
mounted = false;
|
|
543
543
|
run_all(dispose);
|
|
544
544
|
}
|
|
@@ -607,10 +607,11 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
607
607
|
const getFocused = (...args) => __ref.getFocused(...args);
|
|
608
608
|
const getContentSize = (...args) => __ref.getContentSize(...args);
|
|
609
609
|
const getSelectedRange = (...args) => __ref.getSelectedRange(...args);
|
|
610
|
+
const refreshExtraElements = (...args) => __ref.refreshExtraElements(...args);
|
|
610
611
|
const getWebComponent = () => __ref;
|
|
611
612
|
|
|
612
613
|
onMount(() => {
|
|
613
|
-
$$invalidate(
|
|
614
|
+
$$invalidate(61, __mounted = true);
|
|
614
615
|
});
|
|
615
616
|
|
|
616
617
|
const setProp = (prop, value) => {
|
|
@@ -665,59 +666,59 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
665
666
|
if ('jobsBeforeRender' in $$props) $$invalidate(35, jobsBeforeRender = $$props.jobsBeforeRender);
|
|
666
667
|
if ('registerVNode' in $$props) $$invalidate(36, registerVNode = $$props.registerVNode);
|
|
667
668
|
if ('accessible' in $$props) $$invalidate(21, accessible = $$props.accessible);
|
|
668
|
-
if ('$$scope' in $$props) $$invalidate(
|
|
669
|
+
if ('$$scope' in $$props) $$invalidate(62, $$scope = $$props.$$scope);
|
|
669
670
|
};
|
|
670
671
|
|
|
671
672
|
$$self.$$.update = () => {
|
|
672
|
-
if ($$self.$$.dirty[0] & /*columns*/ 16777216 | $$self.$$.dirty[1] & /*__mounted*/
|
|
673
|
+
if ($$self.$$.dirty[0] & /*columns*/ 16777216 | $$self.$$.dirty[1] & /*__mounted*/ 1073741824) {
|
|
673
674
|
$: if (__mounted) setProp('columns', columns);
|
|
674
675
|
}
|
|
675
676
|
|
|
676
|
-
if ($$self.$$.dirty[0] & /*source*/ 33554432 | $$self.$$.dirty[1] & /*__mounted*/
|
|
677
|
+
if ($$self.$$.dirty[0] & /*source*/ 33554432 | $$self.$$.dirty[1] & /*__mounted*/ 1073741824) {
|
|
677
678
|
$: if (__mounted) setProp('source', source);
|
|
678
679
|
}
|
|
679
680
|
|
|
680
|
-
if ($$self.$$.dirty[0] & /*pinnedTopSource*/ 67108864 | $$self.$$.dirty[1] & /*__mounted*/
|
|
681
|
+
if ($$self.$$.dirty[0] & /*pinnedTopSource*/ 67108864 | $$self.$$.dirty[1] & /*__mounted*/ 1073741824) {
|
|
681
682
|
$: if (__mounted) setProp('pinnedTopSource', pinnedTopSource);
|
|
682
683
|
}
|
|
683
684
|
|
|
684
|
-
if ($$self.$$.dirty[0] & /*pinnedBottomSource*/ 134217728 | $$self.$$.dirty[1] & /*__mounted*/
|
|
685
|
+
if ($$self.$$.dirty[0] & /*pinnedBottomSource*/ 134217728 | $$self.$$.dirty[1] & /*__mounted*/ 1073741824) {
|
|
685
686
|
$: if (__mounted) setProp('pinnedBottomSource', pinnedBottomSource);
|
|
686
687
|
}
|
|
687
688
|
|
|
688
|
-
if ($$self.$$.dirty[0] & /*rowDefinitions*/ 268435456 | $$self.$$.dirty[1] & /*__mounted*/
|
|
689
|
+
if ($$self.$$.dirty[0] & /*rowDefinitions*/ 268435456 | $$self.$$.dirty[1] & /*__mounted*/ 1073741824) {
|
|
689
690
|
$: if (__mounted) setProp('rowDefinitions', rowDefinitions);
|
|
690
691
|
}
|
|
691
692
|
|
|
692
|
-
if ($$self.$$.dirty[0] & /*editors*/ 536870912 | $$self.$$.dirty[1] & /*__mounted*/
|
|
693
|
+
if ($$self.$$.dirty[0] & /*editors*/ 536870912 | $$self.$$.dirty[1] & /*__mounted*/ 1073741824) {
|
|
693
694
|
$: if (__mounted) setProp('editors', editors);
|
|
694
695
|
}
|
|
695
696
|
|
|
696
|
-
if ($$self.$$.dirty[0] & /*plugins*/ 1073741824 | $$self.$$.dirty[1] & /*__mounted*/
|
|
697
|
+
if ($$self.$$.dirty[0] & /*plugins*/ 1073741824 | $$self.$$.dirty[1] & /*__mounted*/ 1073741824) {
|
|
697
698
|
$: if (__mounted) setProp('plugins', plugins);
|
|
698
699
|
}
|
|
699
700
|
|
|
700
|
-
if ($$self.$$.dirty[1] & /*__mounted, columnTypes*/
|
|
701
|
+
if ($$self.$$.dirty[1] & /*__mounted, columnTypes*/ 1073741825) {
|
|
701
702
|
$: if (__mounted) setProp('columnTypes', columnTypes);
|
|
702
703
|
}
|
|
703
704
|
|
|
704
|
-
if ($$self.$$.dirty[1] & /*__mounted, focusTemplate*/
|
|
705
|
+
if ($$self.$$.dirty[1] & /*__mounted, focusTemplate*/ 1073741826) {
|
|
705
706
|
$: if (__mounted) setProp('focusTemplate', focusTemplate);
|
|
706
707
|
}
|
|
707
708
|
|
|
708
|
-
if ($$self.$$.dirty[1] & /*__mounted, trimmedRows*/
|
|
709
|
+
if ($$self.$$.dirty[1] & /*__mounted, trimmedRows*/ 1073741828) {
|
|
709
710
|
$: if (__mounted) setProp('trimmedRows', trimmedRows);
|
|
710
711
|
}
|
|
711
712
|
|
|
712
|
-
if ($$self.$$.dirty[1] & /*__mounted, grouping*/
|
|
713
|
+
if ($$self.$$.dirty[1] & /*__mounted, grouping*/ 1073741832) {
|
|
713
714
|
$: if (__mounted) setProp('grouping', grouping);
|
|
714
715
|
}
|
|
715
716
|
|
|
716
|
-
if ($$self.$$.dirty[1] & /*__mounted, jobsBeforeRender*/
|
|
717
|
+
if ($$self.$$.dirty[1] & /*__mounted, jobsBeforeRender*/ 1073741840) {
|
|
717
718
|
$: if (__mounted) setProp('jobsBeforeRender', jobsBeforeRender);
|
|
718
719
|
}
|
|
719
720
|
|
|
720
|
-
if ($$self.$$.dirty[1] & /*__mounted, registerVNode*/
|
|
721
|
+
if ($$self.$$.dirty[1] & /*__mounted, registerVNode*/ 1073741856) {
|
|
721
722
|
$: if (__mounted) setProp('registerVNode', registerVNode);
|
|
722
723
|
}
|
|
723
724
|
};
|
|
@@ -782,6 +783,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
782
783
|
getFocused,
|
|
783
784
|
getContentSize,
|
|
784
785
|
getSelectedRange,
|
|
786
|
+
refreshExtraElements,
|
|
785
787
|
getWebComponent,
|
|
786
788
|
__mounted,
|
|
787
789
|
$$scope,
|
|
@@ -870,7 +872,8 @@ class RevoGrid extends SvelteComponent {
|
|
|
870
872
|
getFocused: 56,
|
|
871
873
|
getContentSize: 57,
|
|
872
874
|
getSelectedRange: 58,
|
|
873
|
-
|
|
875
|
+
refreshExtraElements: 59,
|
|
876
|
+
getWebComponent: 60
|
|
874
877
|
},
|
|
875
878
|
null,
|
|
876
879
|
[-1, -1, -1]
|
|
@@ -1016,9 +1019,17 @@ Including all pinned data */
|
|
|
1016
1019
|
return this.$$.ctx[58];
|
|
1017
1020
|
}
|
|
1018
1021
|
|
|
1019
|
-
|
|
1022
|
+
|
|
1023
|
+
/** Refresh extra elements. Triggers re-rendering of extra elements and functions.
|
|
1024
|
+
Part of extraElements and registerVNode methods.
|
|
1025
|
+
Useful for plugins. */
|
|
1026
|
+
get refreshExtraElements(): Components.RevoGrid["refreshExtraElements"] {
|
|
1020
1027
|
return this.$$.ctx[59];
|
|
1021
1028
|
}
|
|
1029
|
+
|
|
1030
|
+
get getWebComponent(): HTMLRevoGridElement | undefined {
|
|
1031
|
+
return this.$$.ctx[60];
|
|
1032
|
+
}
|
|
1022
1033
|
}
|
|
1023
1034
|
|
|
1024
1035
|
export default RevoGrid;
|
|
@@ -65,6 +65,7 @@ export const getPlugins = (...args) => __ref.getPlugins(...args);
|
|
|
65
65
|
export const getFocused = (...args) => __ref.getFocused(...args);
|
|
66
66
|
export const getContentSize = (...args) => __ref.getContentSize(...args);
|
|
67
67
|
export const getSelectedRange = (...args) => __ref.getSelectedRange(...args);
|
|
68
|
+
export const refreshExtraElements = (...args) => __ref.refreshExtraElements(...args);
|
|
68
69
|
|
|
69
70
|
export const getWebComponent = () => __ref;
|
|
70
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revolist/svelte-datagrid",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.8",
|
|
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": "^3.9.1"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@revolist/revogrid": "4.10.
|
|
76
|
+
"@revolist/revogrid": "4.10.8"
|
|
77
77
|
},
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|