@itrocks/table 0.1.6 → 0.1.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.
Files changed (2) hide show
  1. package/freeze.js +2 -2
  2. package/package.json +2 -6
package/freeze.js CHANGED
@@ -90,7 +90,7 @@ export class TableFreeze extends Plugin {
90
90
  const bodySel = [];
91
91
  const cornerSel = [];
92
92
  let counter = 1, left = .0, previousLeft = table.element.getBoundingClientRect().left;
93
- for (const colCell of Array.from(this.columns).toSpliced(this.leftColumnCount)) {
93
+ for (const colCell of Array.from(this.columns).slice(this.leftColumnCount)) {
94
94
  const actualLeft = colCell.getBoundingClientRect().left;
95
95
  left += actualLeft - previousLeft;
96
96
  previousLeft = actualLeft;
@@ -123,7 +123,7 @@ export class TableFreeze extends Plugin {
123
123
  const bodySel = [];
124
124
  const cornerSel = [];
125
125
  let counter = 1, right = .0, previousRight = table.element.getBoundingClientRect().right;
126
- for (const colCell of Array.from(this.columns).reverse().toSpliced(this.rightColumnCount)) {
126
+ for (const colCell of Array.from(this.columns).reverse().slice(this.rightColumnCount)) {
127
127
  const actualRight = colCell.getBoundingClientRect().right;
128
128
  right += previousRight - actualRight;
129
129
  previousRight = actualRight;
package/package.json CHANGED
@@ -10,9 +10,8 @@
10
10
  "description": "A lightweight, modular HTML table offering near-spreadsheet features such as edit, freeze, lock, scroll, and more",
11
11
  "devDependencies": {
12
12
  "@itrocks/prepare-module": "latest",
13
- "@types/node": "^24.10",
14
13
  "sass": "^1.95",
15
- "typescript": "~5.9"
14
+ "typescript": "^6.0"
16
15
  },
17
16
  "files": [
18
17
  "LICENSE",
@@ -45,7 +44,6 @@
45
44
  "UX"
46
45
  ],
47
46
  "license": "LGPL-3.0-or-later",
48
- "module": "./table.js",
49
47
  "name": "@itrocks/table",
50
48
  "repository": {
51
49
  "type": "git",
@@ -54,7 +52,5 @@
54
52
  "scripts": {
55
53
  "build": "tsc && sass --no-source-map demo:demo && ../prepare-module/prepare-module.js"
56
54
  },
57
- "type": "module",
58
- "types": "./table.d.ts",
59
- "version": "0.1.6"
55
+ "version": "0.1.8"
60
56
  }