@jspreadsheet/vue 10.0.26 → 10.0.30

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +21 -21
  2. package/dist/index.js +58 -58
  3. package/package.json +28 -28
package/dist/index.d.ts CHANGED
@@ -1,22 +1,22 @@
1
- /**
2
- * Official Type definitions for Jspreadsheet React
3
- * https://jspreadsheet.com/v10/docs/react
4
- * Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
- */
6
-
7
- interface Spreadsheet {
8
- (): any
9
- [key: string]: any
10
- }
11
-
12
- interface Worksheet {
13
- (): any
14
- [key: string]: any
15
- }
16
-
17
- declare function Spreadsheet<Spreadsheet>(props: Spreadsheet): any;
18
- declare function Worksheet<Worksheet>(props: Worksheet): any;
19
-
20
- import jspreadsheet from "jspreadsheet";
21
-
1
+ /**
2
+ * Official Type definitions for Jspreadsheet React
3
+ * https://jspreadsheet.com/v10/docs/react
4
+ * Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
+ */
6
+
7
+ interface Spreadsheet {
8
+ (): any
9
+ [key: string]: any
10
+ }
11
+
12
+ interface Worksheet {
13
+ (): any
14
+ [key: string]: any
15
+ }
16
+
17
+ declare function Spreadsheet<Spreadsheet>(props: Spreadsheet): any;
18
+ declare function Worksheet<Worksheet>(props: Worksheet): any;
19
+
20
+ import jspreadsheet from "jspreadsheet";
21
+
22
22
  export { Spreadsheet, Worksheet, jspreadsheet };
package/dist/index.js CHANGED
@@ -1,59 +1,59 @@
1
- import { h, getCurrentInstance } from 'vue';
2
- import jss from "jspreadsheet";
3
-
4
- import "jspreadsheet/dist/jspreadsheet.css";
5
- import "jsuites/dist/jsuites.css";
6
-
7
- export const Worksheet = {
8
- name: 'Worksheet',
9
- }
10
-
11
- export const Spreadsheet = {
12
- inheritAttrs: false,
13
- mounted() {
14
- const { attrs, slots } = getCurrentInstance();
15
-
16
- let options = {
17
- ...attrs
18
- };
19
- if (slots && typeof(slots.default) === 'function') {
20
- options.worksheets = slots.default().reduce((acc, vnode) => {
21
- if (vnode.type.name === "Worksheet") {
22
- acc.push({
23
- minDimensions: [4, 4],
24
- ...vnode.props
25
- });
26
- }
27
- return acc;
28
- }, []);
29
- } else {
30
- if (attrs.worksheets) {
31
- options.worksheets = attrs.worksheets;
32
- }
33
- }
34
-
35
- if (attrs.license) {
36
- jss.setLicense(attrs.license);
37
- }
38
- if (attrs.extensions) {
39
- jss.setExtensions(attrs.extensions);
40
- }
41
- if (attrs.id) {
42
- this.$refs.container.id = attrs.id;
43
- }
44
-
45
- this.el = this.$refs.container;
46
-
47
- this.current = jss(this.$refs.container, options);
48
- },
49
- setup() {
50
- let containerProps = {
51
- ref: 'container'
52
- };
53
- return () => h('div', containerProps);
54
- }
55
- }
56
-
57
- export let jspreadsheet = jss;
58
-
1
+ import { h, getCurrentInstance } from 'vue';
2
+ import jss from "jspreadsheet";
3
+
4
+ import "jspreadsheet/dist/jspreadsheet.css";
5
+ import "jsuites/dist/jsuites.css";
6
+
7
+ export const Worksheet = {
8
+ name: 'Worksheet',
9
+ }
10
+
11
+ export const Spreadsheet = {
12
+ inheritAttrs: false,
13
+ mounted() {
14
+ const { attrs, slots } = getCurrentInstance();
15
+
16
+ let options = {
17
+ ...attrs
18
+ };
19
+ if (slots && typeof(slots.default) === 'function') {
20
+ options.worksheets = slots.default().reduce((acc, vnode) => {
21
+ if (vnode.type.name === "Worksheet") {
22
+ acc.push({
23
+ minDimensions: [4, 4],
24
+ ...vnode.props
25
+ });
26
+ }
27
+ return acc;
28
+ }, []);
29
+ } else {
30
+ if (attrs.worksheets) {
31
+ options.worksheets = attrs.worksheets;
32
+ }
33
+ }
34
+
35
+ if (attrs.license) {
36
+ jss.setLicense(attrs.license);
37
+ }
38
+ if (attrs.extensions) {
39
+ jss.setExtensions(attrs.extensions);
40
+ }
41
+ if (attrs.id) {
42
+ this.$refs.container.id = attrs.id;
43
+ }
44
+
45
+ this.el = this.$refs.container;
46
+
47
+ this.current = jss(this.$refs.container, options);
48
+ },
49
+ setup() {
50
+ let containerProps = {
51
+ ref: 'container'
52
+ };
53
+ return () => h('div', containerProps);
54
+ }
55
+ }
56
+
57
+ export let jspreadsheet = jss;
58
+
59
59
  export default { Worksheet, Spreadsheet, jspreadsheet };
package/package.json CHANGED
@@ -1,28 +1,28 @@
1
- {
2
- "name": "@jspreadsheet/vue",
3
- "title": "Jspreadsheet Pro Vue Wrapper",
4
- "description": "Jspreadsheet is a lightweight, vanilla javascript plugin to create amazing web-based interactive tables and spreadsheets compatible with other spreadsheet software.",
5
- "author": {
6
- "name": "Contact <contact@jspreadsheet.com>",
7
- "url": "https://jspreadsheet.com/v9"
8
- },
9
- "keywords": [
10
- "spreadsheet",
11
- "spreadsheets",
12
- "tables",
13
- "table",
14
- "excel",
15
- "grid",
16
- "grid-editor",
17
- "data-table",
18
- "data-grid",
19
- "data-spreadsheet",
20
- "vue"
21
- ],
22
- "dependencies": {
23
- "jspreadsheet": "^10.0.26"
24
- },
25
- "main": "dist/index.js",
26
- "types": "dist/index.d.ts",
27
- "version": "10.0.26"
28
- }
1
+ {
2
+ "name": "@jspreadsheet/vue",
3
+ "title": "Jspreadsheet Pro Vue Wrapper",
4
+ "description": "Jspreadsheet is a lightweight, vanilla javascript plugin to create amazing web-based interactive tables and spreadsheets compatible with other spreadsheet software.",
5
+ "author": {
6
+ "name": "Contact <contact@jspreadsheet.com>",
7
+ "url": "https://jspreadsheet.com/v9"
8
+ },
9
+ "keywords": [
10
+ "spreadsheet",
11
+ "spreadsheets",
12
+ "tables",
13
+ "table",
14
+ "excel",
15
+ "grid",
16
+ "grid-editor",
17
+ "data-table",
18
+ "data-grid",
19
+ "data-spreadsheet",
20
+ "vue"
21
+ ],
22
+ "dependencies": {
23
+ "jspreadsheet": "^10.0.30"
24
+ },
25
+ "main": "dist/index.js",
26
+ "types": "dist/index.d.ts",
27
+ "version": "10.0.30"
28
+ }