jquery.dgtable 0.5.59 → 0.6.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jquery.dgtable",
3
3
  "description": "High-performance table View for jQuery",
4
- "version": "0.5.59",
4
+ "version": "0.6.0",
5
5
  "main": "dist/jquery.dgtable.cjs.min.js",
6
6
  "module": "dist/jquery.dgtable.es6.min.js",
7
7
  "broswer": "dist/jquery.dgtable.umd.min.js",
@@ -34,22 +34,23 @@
34
34
  }
35
35
  ],
36
36
  "dependencies": {
37
- "@danielgindi/dom-utils": "^1.0.8"
37
+ "@danielgindi/dom-utils": "^1.0.8",
38
+ "@danielgindi/virtual-list-helper": "^1.0.5"
38
39
  },
39
40
  "devDependencies": {
40
- "@babel/core": "^7.19.3",
41
- "@babel/preset-env": "^7.19.4",
42
- "@babel/runtime": "^7.19.4",
43
- "@rollup/plugin-babel": "^6.0.0",
44
- "@rollup/plugin-commonjs": "^23.0.0",
45
- "@rollup/plugin-node-resolve": "^15.0.0",
46
- "core-js": "^3.25.5",
47
- "eslint": "^8.25.0",
41
+ "@babel/core": "^7.20.2",
42
+ "@babel/preset-env": "^7.20.2",
43
+ "@babel/runtime": "^7.20.1",
44
+ "@rollup/plugin-babel": "^6.0.2",
45
+ "@rollup/plugin-commonjs": "^23.0.2",
46
+ "@rollup/plugin-node-resolve": "^15.0.1",
47
+ "core-js": "^3.26.0",
48
+ "eslint": "^8.27.0",
48
49
  "eslint-formatter-codeframe": "^7.32.1",
49
50
  "fs-extra": "^10.1.0",
50
51
  "husky": "^8.0.1",
51
52
  "pinst": "^3.0.0",
52
- "rollup": "^3.1.0",
53
+ "rollup": "^3.2.5",
53
54
  "rollup-plugin-terser": "^7.0.2"
54
55
  }
55
56
  }
@@ -25,12 +25,12 @@ ColumnCollection.prototype.initialize = function () {
25
25
 
26
26
  /**
27
27
  * Get the column by this name
28
- * @param {String} column column name
28
+ * @param {string} column column name
29
29
  * @returns {Object} the column object
30
30
  */
31
31
  ColumnCollection.prototype.get = function (column) {
32
32
  for (let i = 0, len = this.length; i < len; i++) {
33
- if (this[i].name == column) {
33
+ if (this[i].name === column) {
34
34
  return this[i];
35
35
  }
36
36
  }
@@ -39,12 +39,12 @@ ColumnCollection.prototype.get = function (column) {
39
39
 
40
40
  /**
41
41
  * Get the index of the column by this name
42
- * @param {String} column column name
42
+ * @param {string} column column name
43
43
  * @returns {int} the index of this column
44
44
  */
45
45
  ColumnCollection.prototype.indexOf = function (column) {
46
46
  for (let i = 0, len = this.length; i < len; i++) {
47
- if (this[i].name == column) {
47
+ if (this[i].name === column) {
48
48
  return i;
49
49
  }
50
50
  }
@@ -53,12 +53,12 @@ ColumnCollection.prototype.indexOf = function (column) {
53
53
 
54
54
  /**
55
55
  * Get the column by the specified order
56
- * @param {Number} order the column's order
56
+ * @param {number} order the column's order
57
57
  * @returns {Object} the column object
58
58
  */
59
59
  ColumnCollection.prototype.getByOrder = function (order) {
60
60
  for (let i = 0, len = this.length; i < len; i++) {
61
- if (this[i].order == order) {
61
+ if (this[i].order === order) {
62
62
  return this[i];
63
63
  }
64
64
  }
@@ -150,4 +150,4 @@ ColumnCollection.prototype.moveColumn = function (src, dest) {
150
150
  return this;
151
151
  };
152
152
 
153
- export default ColumnCollection;
153
+ export default ColumnCollection;