@progress/kendo-spreadsheet-common 1.1.1 → 1.1.2-develop.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/index-esm.js CHANGED
@@ -22647,7 +22647,13 @@ class View extends Observable {
22647
22647
  this.scroller = element.querySelector(DOT + classNames.scroller);
22648
22648
  this.clipboard = element.querySelector(DOT + classNames.clipboard);
22649
22649
 
22650
- this.viewSize = this.scroller && this.scroller.firstChild; // $(this.scroller.firstChild);
22650
+ this.viewSize = this.scroller ?
22651
+ this.scroller.querySelector(".k-spreadsheet-view-size") || this.scroller.firstElementChild :
22652
+ null;
22653
+
22654
+ if (!this.viewSize) {
22655
+ throw new Error("The scroller element does not contain a view size element.");
22656
+ }
22651
22657
 
22652
22658
  this.tree = new dom.Tree(this.container);
22653
22659
  this.clipboardContents = new dom.Tree(this.clipboard);
@@ -25654,6 +25660,11 @@ async function loadSheets(items, workbook) {
25654
25660
  for (let i = 0; i < items.length; i++) {
25655
25661
  const ctx = items[i];
25656
25662
  let sheet = workbook.insertSheet(ctx.options);
25663
+
25664
+ if (!sheet) {
25665
+ continue;
25666
+ }
25667
+
25657
25668
  sheet.suspendChanges(true);
25658
25669
  await readSheet(ctx.zip, ctx.file, sheet, ctx.strings, ctx.styles);
25659
25670
  }
package/dist/index.js CHANGED
@@ -22648,7 +22648,13 @@
22648
22648
  this.scroller = element.querySelector(DOT + classNames.scroller);
22649
22649
  this.clipboard = element.querySelector(DOT + classNames.clipboard);
22650
22650
 
22651
- this.viewSize = this.scroller && this.scroller.firstChild; // $(this.scroller.firstChild);
22651
+ this.viewSize = this.scroller ?
22652
+ this.scroller.querySelector(".k-spreadsheet-view-size") || this.scroller.firstElementChild :
22653
+ null;
22654
+
22655
+ if (!this.viewSize) {
22656
+ throw new Error("The scroller element does not contain a view size element.");
22657
+ }
22652
22658
 
22653
22659
  this.tree = new dom.Tree(this.container);
22654
22660
  this.clipboardContents = new dom.Tree(this.clipboard);
@@ -25655,6 +25661,11 @@
25655
25661
  for (let i = 0; i < items.length; i++) {
25656
25662
  const ctx = items[i];
25657
25663
  let sheet = workbook.insertSheet(ctx.options);
25664
+
25665
+ if (!sheet) {
25666
+ continue;
25667
+ }
25668
+
25658
25669
  sheet.suspendChanges(true);
25659
25670
  await readSheet(ctx.zip, ctx.file, sheet, ctx.strings, ctx.styles);
25660
25671
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-spreadsheet-common",
3
3
  "description": "Kendo UI platform-independent Spreadsheet library",
4
- "version": "1.1.1",
4
+ "version": "1.1.2-develop.2",
5
5
  "keywords": [
6
6
  "Kendo UI"
7
7
  ],
@@ -13,23 +13,23 @@
13
13
  "sideEffects": false,
14
14
  "scripts": {
15
15
  "build": "rollup -c",
16
+ "watch": "rollup --config --watch",
16
17
  "lint": "eslint src",
17
18
  "test": "jest",
18
19
  "e2e": "jest --config ./jest.e2e.config.json",
19
20
  "e2e:visual": "jest --config ./jest.e2e.visual.config.json",
20
21
  "prepare": "husky install"
21
22
  },
22
- "dependencies": {},
23
23
  "peerDependencies": {
24
+ "@progress/jszip-esm": "^1.0.3",
24
25
  "@progress/kendo-common": "^0.2.2",
25
26
  "@progress/kendo-date-math": "^1.5.10",
26
- "@progress/kendo-drawing": "^1.17.5",
27
- "@progress/jszip-esm": "^1.0.3"
27
+ "@progress/kendo-drawing": "^1.17.5"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@commitlint/cli": "^17.3.0",
31
31
  "@commitlint/config-conventional": "^17.3.0",
32
- "@progress/kendo-e2e": "^1.3.0",
32
+ "@progress/kendo-e2e": "^2.0.0",
33
33
  "@progress/kendo-intl": "^3.1.1",
34
34
  "@types/jest": "^29.0.0",
35
35
  "es-jest": "^2.1.0",
@@ -38,6 +38,7 @@
38
38
  "jest-cli": "^29.0.0",
39
39
  "jest-environment-jsdom": "^29.5.0",
40
40
  "rollup": "^3.5.1",
41
+ "rollup-plugin-watch": "^1.0.4",
41
42
  "semantic-release": "^19.0.5"
42
43
  },
43
44
  "repository": {